Changeset 3279451
- Timestamp:
- 04/22/2025 09:57:16 PM (11 months ago)
- Location:
- matador-jobs/trunk
- Files:
-
- 60 edited
-
CHANGELOG.md (modified) (1 diff)
-
assets/css/matador-admin-styles.css (modified) (4 diffs)
-
class-matador.php (modified) (2 diffs)
-
includes/admin/class-settings-actions.php (modified) (1 diff)
-
includes/admin/class-settings-fields.php (modified) (1 diff)
-
includes/admin/class-upgrade.php (modified) (1 diff)
-
includes/bullhorn/class-bullhorn-import.php (modified) (14 diffs)
-
includes/class-application-handler.php (modified) (4 diffs)
-
includes/class-application-sync.php (modified) (7 diffs)
-
includes/class-helper.php (modified) (5 diffs)
-
includes/class-job-listing.php (modified) (3 diffs)
-
includes/class-job-taxonomies.php (modified) (4 diffs)
-
includes/class-scheduled-events.php (modified) (3 diffs)
-
includes/class-shortcodes.php (modified) (7 diffs)
-
includes/class-template-support.php (modified) (9 diffs)
-
includes/class-variables.php (modified) (9 diffs)
-
includes/template-functions.php (modified) (1 diff)
-
languages/matador-jobs.pot (modified) (20 diffs)
-
matador-jobs.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
src/Editors/Blocks/Blocks.php (modified) (1 diff)
-
src/Editors/Blocks/build/job-application-link/index.asset.php (modified) (1 diff)
-
src/Editors/Blocks/build/job-application-link/index.js (modified) (1 diff)
-
src/Editors/Blocks/build/job-application/index.asset.php (modified) (1 diff)
-
src/Editors/Blocks/build/job-application/index.js (modified) (1 diff)
-
src/Editors/Blocks/build/job-description/index.asset.php (modified) (1 diff)
-
src/Editors/Blocks/build/job-description/index.js (modified) (1 diff)
-
src/Editors/Blocks/build/job-field/index.asset.php (modified) (1 diff)
-
src/Editors/Blocks/build/job-field/index.js (modified) (1 diff)
-
src/Editors/Blocks/build/job-taxonomy-filters/index.asset.php (modified) (1 diff)
-
src/Editors/Blocks/build/job-taxonomy-filters/index.js (modified) (1 diff)
-
src/Editors/Blocks/build/jobs-orderby/index.asset.php (modified) (1 diff)
-
src/Editors/Blocks/build/jobs-orderby/index.js (modified) (1 diff)
-
src/Editors/Blocks/build/jobs-search-id/index.asset.php (modified) (1 diff)
-
src/Editors/Blocks/build/jobs-search-id/index.js (modified) (1 diff)
-
src/Editors/Blocks/build/jobs-search-keyword/index.asset.php (modified) (1 diff)
-
src/Editors/Blocks/build/jobs-search-keyword/index.js (modified) (1 diff)
-
src/Editors/Blocks/build/jobs-search-reset/index.asset.php (modified) (1 diff)
-
src/Editors/Blocks/build/jobs-search-reset/index.js (modified) (1 diff)
-
src/Editors/Blocks/build/jobs-search-submit/index.asset.php (modified) (1 diff)
-
src/Editors/Blocks/build/jobs-search-submit/index.js (modified) (1 diff)
-
src/Editors/Blocks/build/jobs-search-taxonomy/index.asset.php (modified) (1 diff)
-
src/Editors/Blocks/build/jobs-search-taxonomy/index.js (modified) (1 diff)
-
src/Editors/Blocks/build/jobs-search/index.asset.php (modified) (1 diff)
-
src/Editors/Blocks/build/jobs-search/index.js (modified) (1 diff)
-
src/Integrations/Bullhorn/Bullhorn.php (modified) (1 diff)
-
src/Integrations/Bullhorn/Helper.php (modified) (1 diff)
-
src/Rest/Endpoint/Jobs/JobListings.php (modified) (2 diffs)
-
src/Rest/Endpoint/Jobs/Taxonomies.php (modified) (3 diffs)
-
src/Sync/Bullhorn/Jobs.php (modified) (2 diffs)
-
templates/application.php (modified) (1 diff)
-
templates/jobs-portal.php (modified) (2 diffs)
-
templates/jobs-search.php (modified) (1 diff)
-
templates/jobs-table.php (modified) (1 diff)
-
vendor/autoload.php (modified) (1 diff)
-
vendor/composer/ClassLoader.php (modified) (24 diffs)
-
vendor/composer/InstalledVersions.php (modified) (6 diffs)
-
vendor/composer/autoload_real.php (modified) (2 diffs)
-
vendor/composer/autoload_static.php (modified) (2 diffs)
-
vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
matador-jobs/trunk/CHANGELOG.md
r3257995 r3279451 1 1 # Matador Jobs Lite/Pro Changelog 2 3 ## 3.9.7 4 5 - Bugfix: To update Matador Jobs for WordPress 6.7 & 6.8 just-in-time translations features, some translatable strings declared at Matador instantiation were moved elsewhere in load order. This fixes an issue where, when WP_DEBUG was on, PHP NOTICE messages would cause Translations files to not load. Please note: some Matador Jobs extensions are also causing this issue, but WordPress PHP NOTICE messages are associating the issue with Matador Jobs core. We are actively working on updating all extensions so this issue is resolved finally. 6 - Bugfix: (Bullhorn Integration) Some processed Bullhorn resumes were too large to be processed by the solution we devised to remove presentational tags from the resume text in 3.9.6. A new solution requiring greater processing time, but is more reliable, is included in this version. 7 - Bugfix: (Bullhorn Integration) Fixed issue causing the import categories cache to not save as expected. 8 - Bugfix: (Bullhorn Integration) Modified the process in which the Bullhorn Country data cache is refreshed, preventing a stale cache from returning invalid/missing Country data and impacting user applications. The cache is now persistent and a separate mechanism is in place to refresh it regularly. 9 - Enhancement: Added WordPress filter `matador_application_field_should_skip` on the default Application form template to give developers using the default template access to a way to programmatically skip application fields. Users on modified application templates should refresh their template version. 10 - Enhancement: (Bullhorn Integration) In the event of missing Bullhorn Country data, the Country field in the application will now be disabled, and authenticated editor and administrator users will be shown a message encouraging them to initialize a Bullhorn sync. This will only occur, due to changes to how the Bullhorn Country data is cached, when new sites are created or object caches or transients are cleared. This requires users to be using the default application template or that they have added the new `matador_application_field_should_skip` filter to their customized template. 11 12 ## 3.9.6 13 14 - Bugfix: (Bullhorn Integration) Candidate objects returned from the Bullhorn API following resume processing will have presentational HTML tags removed to prevent situations where highly stylized HTML candidate descriptions cause the data object to exceed data limits. 15 16 ## 3.9.5 17 18 - Enhancement: Allowed HTML tags in a job description is expanded to now also support `<blockquote>`, `<s>`, `<sub>`, `<sup>`, and `<u>`. This is largely to support updates in the Bullhorn ATS rich text editor, but is good practice for all job descriptions in future integrations. 19 - Enhancement: Added filter `matador_get_currency_codes` to give developers the ability to modify the list of currency codes used by Matador. The defaults are from an ISO Currency Codes list, so should be good for most users without modification. 20 - Bugfix: Fixed an issue causing currency code data to not load as intended for users of certain world currencies. 21 - Bugfix: Fixed an issue causing the Application Processing log data to not save to the database as intended, leaving the sync log data section of the application transcript blank. 22 - Bugfix: Fixed an issue causing WordPress to experience a fatal error on versions prior to 6.7. Matador Jobs Block Editor blocks leveraged improved WordPress Editor Blocks loading routines introduced WordPress 6.7, but was missing a required check. This check is now added and in place. That said, we always strongly recommend our users run the most up-to-date version of WordPress for security and stability purposes. 23 - Bugfix: Fixed an issue causing translatable strings to be untranslatable due to WordPress 6.8 "just-in-time" translation loading. This affected labels for Jobs Orderby Search Options. Note: there are more strings that are affected by the WordPress 6.8 "just-in-time" changes, and we are working hard to get all of them fixed before WordPress 6.8 releases. 24 - Bugfix: Updated Matador Jobs Block Editor Blocks to support changes to block registration slated for the soon-to-be WordPress 6.8 release. 25 - Bugfix: (Bullhorn Integration) Fixed an issue that was causing Matador Jobs Pro to sync applications slower than intended. For high-volume sites this could create a backlog over long periods of time resulting in the volume getting too far ahead of incoming applications. This fix will ease that problem and prevent it in the future. 26 - Misc: Updated references to our Matador Jobs Pro documentation website to ensure links match valid articles. 27 - Misc: Matador Jobs is tested up to WordPress 6.8, with no fatal or blocking errors, however full support for changes to translations loading will come in an upcoming patch. 2 28 3 29 ## 3.9.4 -
matador-jobs/trunk/assets/css/matador-admin-styles.css
r3254249 r3279451 517 517 } 518 518 .wp-admin .matador-application-screen .application-screen-apply:hover { 519 background-color: rgb(69.036437247, 160.2914979757, 35.7085020243);519 background-color: #45a024; 520 520 } 521 521 .wp-admin .matador-application-screen .application-screen-add { … … 523 523 } 524 524 .wp-admin .matador-application-screen .application-screen-add:hover { 525 background-color: rgb(160.2914979757, 135.6923076923, 35.7085020243);525 background-color: #a08824; 526 526 } 527 527 .wp-admin .matador-application-screen .application-screen-delete { … … 529 529 } 530 530 .wp-admin .matador-application-screen .application-screen-delete:hover { 531 background-color: rgb(160.2914979757, 61.1012145749, 35.7085020243);531 background-color: #a03d24; 532 532 } 533 533 .wp-admin .matador-application-screen .application-screen-reset { … … 535 535 } 536 536 .wp-admin .matador-application-screen .application-screen-reset:hover { 537 background-color: rgb(43.5, 43.5, 43.5);538 } 537 background-color: #2c2c2c; 538 } -
matador-jobs/trunk/class-matador.php
r3257995 r3279451 44 44 * @var string 45 45 */ 46 const VERSION = '3.9. 4';46 const VERSION = '3.9.7'; 47 47 48 48 /** … … 434 434 new MatadorJobs\Rest\Api(); 435 435 436 new MatadorJobs\Integrations\Bullhorn\Bullhorn ;436 new MatadorJobs\Integrations\Bullhorn\Bullhorn(); 437 437 438 438 new MatadorJobs\ThirdParty\Akismet\Akismet(); -
matador-jobs/trunk/includes/admin/class-settings-actions.php
r3254249 r3279451 58 58 $triggers = array( 'post_type_slug_job_listing' ); 59 59 60 foreach ( Matador::variable( 'job_taxonomies' ) as $name =>$taxonomy ) {61 $triggers[] = strtolower( 'taxonomy_slug_' . $ name);60 foreach ( Job_Taxonomies::taxonomies_list() as $taxonomy ) { 61 $triggers[] = strtolower( 'taxonomy_slug_' . $taxonomy ); 62 62 } 63 63 -
matador-jobs/trunk/includes/admin/class-settings-fields.php
r3254249 r3279451 1241 1241 */ 1242 1242 public static function taxonomy_rewrites( $fields ) { 1243 foreach ( Matador::variable( 'job_taxonomies') as $key => $taxonomy ) {1243 foreach ( Job_Taxonomies::taxonomies() as $key => $taxonomy ) { 1244 1244 $fields[ 'taxonomy_slug_' . $key ] = array( 1245 1245 'type' => 'text', -
matador-jobs/trunk/includes/admin/class-upgrade.php
r2477308 r3279451 42 42 return; 43 43 } 44 45 add_filter( '_matador_plugin_upgrades', function( $upgrades ) {46 $upgrades['3.5.6'] = __(47 '<p>Matador Jobs 3.5.6 corrected an issue that may require you to update your theme. Please see our <a href="https://matadorjobs.com/support/documentation/upgrading-to-3-5-6/" target="_blank">upgrade guide</a> before completing the upgrade. The upgrade is irreversible. The upgrade will be automatically applied with version 3.7.0.</p>', 'matador-jobs' );48 return $upgrades;49 } );50 44 51 45 if ( ! self::has_upgrade() ) { -
matador-jobs/trunk/includes/bullhorn/class-bullhorn-import.php
r3257995 r3279451 60 60 parent::__construct(); 61 61 62 add_action( 'matador_bullhorn_before_import', [ $this, 'get_countries' ], 10, 1 ); 62 63 add_action( 'matador_bullhorn_import_save_job', array( $this, 'save_job_categories' ), 5, 2 ); 63 64 add_action( 'matador_bullhorn_import_save_job', array( $this, 'save_job_type' ), 10, 2 ); … … 414 415 */ 415 416 private function get_category_terms( $job_id = null ) { 416 $cache_key = 'matador_bullhorn_categories_list' . ( null !== $job_id ) ? '_' . $job_id : '';417 $cache_key = Matador::variable( 'bullhorn_categories_cache', 'transients' ) . ( ( null !== $job_id ) ? '_' . $job_id : '' ); 417 418 $cache = get_transient( $cache_key ); 418 419 … … 464 465 * IDs and names. 465 466 * 466 * @return array|boolean; 467 * @since 3.0.0 468 * @since 3.9.7 Updated function to set a permanent transient with data but track a refresh transient, so data is 469 * always available as needed. 470 * 471 * @return array; 467 472 * 468 473 * @throws Exception 469 474 */ 470 public function get_countries() { 471 472 $cache_key = Matador::variable( 'bullhorn_countries_cache', 'transients' ); 475 public function get_countries(): array { 476 477 $cache_key = Matador::variable( 'bullhorn_countries_cache', 'transients' ); 478 $cache_refresh_key = Matador::variable( 'bullhorn_countries_cache_refresh', 'transients' ); 473 479 474 480 $cache = get_transient( $cache_key ); 475 481 476 if ( false !== $cache ) {482 if ( false !== $cache && false !== $cache_refresh_key ) { 477 483 return $cache; 478 484 } … … 498 504 } else { 499 505 500 return false;501 502 } 503 504 set_transient( $cache_ key, $country_list, DAY_IN_SECONDS );506 return []; 507 } 508 509 set_transient( $cache_key, $country_list ); 510 set_transient( $cache_refresh_key, true, DAY_IN_SECONDS ); 505 511 506 512 return $country_list; … … 518 524 do_action( 'matador_bullhorn_import_save_taxonomies', $this ); 519 525 520 $category = Matador::variable( 'category', 'job_taxonomies' ); 521 $this->save_taxonomy( $this->get_category_terms(), $category['key'] ); 522 523 // Translators: Placeholder for datettime. 524 // Admin_Notices::add( sprintf( esc_html__( 'Taxonomies Sync completed successfully at %s', 'matador-jobs' ), date( 'G:i j-M-Y T' ) ), 'success', 'bullhorn-sync' ); 525 Logger::entry( 'sync_bullhorn_tax_to_wp', __( 'Finished Category Sync with bullhorn.', 'matador-jobs' ), Severity::INFO ); 526 $category = Job_Taxonomies::registered_taxonomy( 'category' ); 527 528 if ( $category ) { 529 $this->save_taxonomy( $this->get_category_terms(), $category['key'] ); 530 531 // Translators: Placeholder for datettime. 532 // Admin_Notices::add( sprintf( esc_html__( 'Taxonomies Sync completed successfully at %s', 'matador-jobs' ), date( 'G:i j-M-Y T' ) ), 'success', 'bullhorn-sync' ); 533 Logger::entry( 'sync_bullhorn_tax_to_wp', __( 'Finished Category Sync with bullhorn.', 'matador-jobs' ), Severity::INFO ); 534 } 526 535 } 527 536 … … 865 874 } 866 875 867 $ taxonomies = Matador::variable( 'job_taxonomies' );868 869 if ( ! isset( $taxonomies['category'] )) {876 $category = Job_Taxonomies::registered_taxonomy( 'category' ); 877 878 if ( ! $category ) { 870 879 871 880 return false; … … 891 900 892 901 if ( ( 0 < $count ) && ( $count <= 5 ) ) { 893 foreach ( $job->categories->data as $ category ) {894 $categories[] = $ category->name;902 foreach ( $job->categories->data as $imported_category ) { 903 $categories[] = $imported_category->name; 895 904 } 896 905 } else { … … 903 912 set_transient( 'matador_import_categories_job_' . $wpid, $categories, MINUTE_IN_SECONDS * 5 ); 904 913 905 return wp_set_object_terms( $wpid, $categories, $ taxonomies['category']['key'] );914 return wp_set_object_terms( $wpid, $categories, $category['key'] ); 906 915 } 907 916 … … 921 930 922 931 if ( isset( $job->employmentType ) ) { 923 $taxonomies = Matador::variable( 'job_taxonomies' ); 924 925 if ( isset( $taxonomies['type']['key'] ) ) { 926 927 return wp_set_object_terms( $wpid, $job->employmentType, $taxonomies['type']['key'] ); 932 933 $type_taxonomy = Job_Taxonomies::registered_taxonomy( 'type' ); 934 935 if ( $type_taxonomy && isset( $type_taxonomy['key'] ) ) { 936 937 return wp_set_object_terms( $wpid, $job->employmentType, $type_taxonomy['key'] ); 928 938 } 929 939 } … … 1430 1440 } 1431 1441 1432 $taxonomies = Matador::variable( 'job_taxonomies');1442 $taxonomies = Job_Taxonomies::taxonomies(); 1433 1443 1434 1444 if ( isset( $taxonomies['location']['key'] ) ) { … … 1519 1529 if ( $location_taxonomy_term ) { 1520 1530 1521 $taxonomies = Matador::variable( 'job_taxonomies' ); 1522 1523 $location_taxonomy_key = $taxonomies['location']['key'] ?? ''; 1524 1525 if ( $location_taxonomy_key ) { 1526 wp_set_object_terms( $wpid, $location_taxonomy_term, $location_taxonomy_key, true ); 1531 $location_taxonomy = Job_Taxonomies::registered_taxonomy( 'location' ); 1532 1533 if ( $location_taxonomy && isset( $location_taxonomy['key'] ) ) { 1534 1535 wp_set_object_terms( $wpid, $location_taxonomy_term, $location_taxonomy['key'], true ); 1527 1536 } 1528 1537 } … … 2895 2904 */ 2896 2905 private function the_jobs_description_allowed_tags() { 2897 return apply_filters( 'matador_the_jobs_description_allowed_tags', array(2898 'a' => array(2906 return apply_filters( 'matador_the_jobs_description_allowed_tags', [ 2907 'a' => [ 2899 2908 'href' => true, 2900 2909 'title' => true, 2901 2910 'target' => true, 2902 ),2903 'br' => array(),2904 'hr' => array(),2905 'em' => array(),2906 'i' => array(),2907 'strong' => array(),2908 'b' => array(),2909 'p' => array(2911 ], 2912 'br' => [], 2913 'hr' => [], 2914 'em' => [], 2915 'i' => [], 2916 'strong' => [], 2917 'b' => [], 2918 'p' => [ 2910 2919 'align' => true, 2911 ), 2912 'img' => array( 2920 ], 2921 'blockquote' => true, 2922 'img' => [ 2913 2923 'alt' => true, 2914 2924 'align' => true, … … 2916 2926 'src' => true, 2917 2927 'width' => true, 2918 ),2919 'div' => array(2928 ], 2929 'div' => [ 2920 2930 'align' => true, 2921 ),2922 'table' => array(2931 ], 2932 'table' => [ 2923 2933 'border' => true, 2924 2934 'cellspacing' => true, 2925 2935 'cellpadding' => true, 2926 ),2927 'thead' => array(),2928 'tbody' => array(),2929 'tr' => array(),2930 'th' => array(2936 ], 2937 'thead' => [], 2938 'tbody' => [], 2939 'tr' => [], 2940 'th' => [ 2931 2941 'colspan' => true, 2932 2942 'rowspan' => true, 2933 ),2934 'td' => array(2943 ], 2944 'td' => [ 2935 2945 'colspan' => true, 2936 2946 'rowspan' => true, 2937 ),2938 'span' => array(),2939 'h1' => array(2947 ], 2948 'span' => [], 2949 'h1' => [ 2940 2950 'align' => true, 2941 ),2942 'h2' => array(2951 ], 2952 'h2' => [ 2943 2953 'align' => true, 2944 ),2945 'h3' => array(2954 ], 2955 'h3' => [ 2946 2956 'align' => true, 2947 ),2948 'h4' => array(2957 ], 2958 'h4' => [ 2949 2959 'align' => true, 2950 ),2951 'h5' => array(2960 ], 2961 'h5' => [ 2952 2962 'align' => true, 2953 ),2954 'h6' => array(2963 ], 2964 'h6' => [ 2955 2965 'align' => true, 2956 ), 2957 'ul' => array(), 2958 'ol' => array(), 2959 'li' => array(), 2960 'dl' => array(), 2961 'dt' => array(), 2962 'dd' => array(), 2963 'video' => array( 2966 ], 2967 'ul' => [], 2968 'ol' => [], 2969 'li' => [], 2970 'dl' => [], 2971 'dt' => [], 2972 'dd' => [], 2973 's' => [], 2974 'sub' => [], 2975 'sup' => [], 2976 'video' => [ 2964 2977 'autoplay' => true, 2965 2978 'controls' => true, … … 2971 2984 'src' => true, 2972 2985 'width' => true, 2973 ), 2974 ) ); 2986 ], 2987 'u' => [], 2988 ] ); 2975 2989 } 2976 2990 -
matador-jobs/trunk/includes/class-application-handler.php
r3254249 r3279451 495 495 $name['firstName'] = $name_parts[0]; 496 496 497 $allowed_suffixes = Matador::variable( 'application_name_suffixes');497 $allowed_suffixes = Helper::name_suffixes(); 498 498 499 499 if ( 2 < count( $name_parts ) ) { … … 1505 1505 'label' => sprintf( esc_html__( 'Upload %1$s File', 'matador-jobs' ), esc_html( Helper::resume_or_cv() ) ) . $colon, 1506 1506 // translators: Placeholders are the user setting result for how to refer to the CV/Resume and the list of accepted file types 1507 'description' => sprintf( esc_html__( 'Attach a %1$s file. Accepted file types are %2$s.', 'matador-jobs' ), Helper::resume_or_cv(), Matador::variable( 'accepted_files_types') ),1507 'description' => sprintf( esc_html__( 'Attach a %1$s file. Accepted file types are %2$s.', 'matador-jobs' ), Helper::resume_or_cv(), Helper::allowed_file_types() ), 1508 1508 'attributes' => array( 1509 1509 'required' => true, … … 1515 1515 'label' => esc_html__( 'Upload Cover Letter', 'matador-jobs' ) . $colon, 1516 1516 // translators: Placeholders are list of accepted file types 1517 'description' => sprintf( esc_html__( 'Attach a cover letter file. Accepted file types are %s.', 'matador-jobs' ), Matador::variable( 'accepted_files_types') ),1517 'description' => sprintf( esc_html__( 'Attach a cover letter file. Accepted file types are %s.', 'matador-jobs' ), Helper::allowed_file_types() ), 1518 1518 'attributes' => array( 1519 1519 'accept' => implode( ',', Matador::variable( 'accepted_file_extensions' ) ), … … 1524 1524 'label' => esc_html__( 'Upload Additional Files', 'matador-jobs' ) . $colon, 1525 1525 // translators: Placeholders are list of accepted file types 1526 'description' => sprintf( esc_html__( 'Attach additional files. Accepted file types are %s.', 'matador-jobs' ), Matador::variable( 'accepted_files_types') ),1526 'description' => sprintf( esc_html__( 'Attach additional files. Accepted file types are %s.', 'matador-jobs' ), Helper::allowed_file_types() ), 1527 1527 'attributes' => array( 1528 1528 'accept' => implode( ',', Matador::variable( 'accepted_file_extensions' ) ), -
matador-jobs/trunk/includes/class-application-sync.php
r3254249 r3279451 16 16 namespace matador; 17 17 18 use stdClass; 18 19 use DateTime; 19 20 use matador\MatadorJobs\Core\Logger; 20 21 use matador\MatadorJobs\Core\Severity; 21 use stdClass;22 22 use matador\MatadorJobs\Email\ApplicationApplicantMessage; 23 23 use matador\MatadorJobs\Email\ApplicationRecruiterMessage; … … 380 380 public function add_bullhorn_candidate() { 381 381 382 add_action( 'matador_ log', array( $this, 'add_to_log' ), 10, 2);382 add_action( 'matador_activity_log_entry_after_write', array( $this, 'add_to_log' ), 10, 3 ); 383 383 384 384 /** … … 431 431 } 432 432 433 remove_action( 'matador_ log', array( $this, 'add_to_log' ), 10 );433 remove_action( 'matador_activity_log_entry_after_write', array( $this, 'add_to_log' ), 10 ); 434 434 435 435 return; … … 676 676 } 677 677 678 remove_action( 'matador_log', array( $this, 'add_to_log' ), 10 ); 678 remove_action( 'matador_activity_log_entry_after_write', array( $this, 'add_to_log' ), 10 ); 679 679 680 return true; 680 681 } … … 853 854 } elseif ( ! $resume ) { 854 855 Logger::entry( 'bullhorn-application-processing-error', __( 'No resume for applicant.', 'matador-jobs' ), Severity::ERROR ); 856 } 857 858 // @since 3.9.7, removed <style></style> tags, as BH was returning too large of data strings with encoded fonts 859 if ( $resume && $resume->candidate->description && class_exists( '\DOMDocument' ) ) { 860 $document = new \DOMDocument(); 861 $document->loadHTML( $resume->candidate->description ); 862 $styles = $document->getElementsByTagName( 'style' ); 863 foreach ( $styles as $style ) { 864 $style->parentNode->removeChild( $style ); 865 } 866 $resume->candidate->description = $document->saveHTML(); 855 867 } 856 868 } … … 1795 1807 /** 1796 1808 * Add to Application Sync Log 1797 * @since 3.0.0 1798 * 1799 * @param string $level 1809 * 1810 * @since 3.0.0 1811 * 1812 * @param string $key 1800 1813 * @param string $message 1801 */ 1802 public function add_to_log( $level, $message ) { 1803 1804 unset( $level ); // until PHPCS 3.4+ 1814 * @param string $severity 1815 * 1816 * return void 1817 */ 1818 public function add_to_log( string $key, string $message, string $severity ): void { 1805 1819 1806 1820 if ( null === $this->application_id ) { … … 1813 1827 $now = new DateTime(); 1814 1828 1815 $append = PHP_EOL . $now->format( 'Y-m-d H:i:s: ' ) . $message;1829 $append = PHP_EOL . sprintf( '%1$s [%2$s]: %3$s (%4$s)', $now->format( 'Y-m-d H:i:s: ' ), strtoupper( $severity ), $message, $key ); 1816 1830 1817 1831 $updated = $log . $append; -
matador-jobs/trunk/includes/class-helper.php
r3254249 r3279451 59 59 if ( empty( $file_path ) || is_array( $file_path ) ) { 60 60 61 Logger::entry( __( 'No file path provided in get_filetype().', 'matador-jobs' ), Severity::ERROR );61 Logger::entry( 'no-path-in-\matador\Helper::get_file_type', __( 'No file path provided in get_filetype().', 'matador-jobs' ), Severity::ERROR ); 62 62 63 63 return false; … … 337 337 if ( null === self::$categories || ! isset( self::$categories[ $id ] ) ) { 338 338 $names = $slug = array(); 339 $taxonomies = Matador::variable( 'job_taxonomies' ); 340 $categories = wp_get_post_terms( $id, $taxonomies['category']['key'] ); 339 $category_taxonomy = Job_Taxonomies::registered_taxonomy( 'category' ); 340 341 if ( $category_taxonomy && isset( $category_taxonomy['key'] ) ) { 342 $categories = wp_get_post_terms( $id, $category_taxonomy['key'] ); 343 } else { 344 $categories = []; 345 } 341 346 342 347 if ( $categories && ! is_wp_error( $categories ) ) { 343 348 foreach ( $categories as $category ) { 344 349 $names[] = ucwords( $category->name ); 345 $slug[] = $ taxonomies['category']['key'] . '-' . $category->slug;350 $slug[] = $category_taxonomy['key'] . '-' . $category->slug; 346 351 } 347 352 } … … 365 370 if ( null === self::$locations || ! isset( self::$locations[ $id ] ) ) { 366 371 $names = $slug = array(); 367 $taxonomies = Matador::variable( 'job_taxonomies' ); 368 $locations = wp_get_post_terms( $id, $taxonomies['location']['key'] ); 372 373 $location_taxonomy = Job_Taxonomies::registered_taxonomy( 'location' ); 374 375 if ( $location_taxonomy && isset( $location_taxonomy['key'] ) ) { 376 $locations = wp_get_post_terms( $id, $location_taxonomy['key'] ); 377 } else { 378 $locations = []; 379 } 369 380 370 381 if ( $locations && ! is_wp_error( $locations ) ) { 371 382 foreach ( $locations as $location ) { 372 383 $names[] = ucwords( $location->name ); 373 $slug[] = $ taxonomies['location']['key'] . '-' . $location->slug;384 $slug[] = $location_taxonomy['key'] . '-' . $location->slug; 374 385 } 375 386 } … … 1126 1137 public static function get_currency_codes() : array { 1127 1138 1128 $xml = wp_remote_get( Matador::$directory . 'assets/xml/iso-currencies.xml' ); 1129 1130 $data = json_decode( wp_json_encode( (array) simplexml_load_string( $xml )), 1); 1131 1132 $output = []; 1133 1134 foreach( $data['CcyTbl']['CcyNtry'] as $country ) { 1135 if ( empty( $country['Ccy'] ) || empty( $country['CtryNm'] ) || empty( $country['CcyNm'] ) ) { continue; } 1136 $output[ $country['Ccy'] ] = [ 'country' => $country['CtryNm'], 'currency' => $country['CcyNm'] ]; 1137 } 1138 1139 return $output; 1139 $xml = wp_remote_get( Matador::$path . 'assets/xml/iso-currencies.xml' ); 1140 1141 if ( is_wp_error( $xml ) ) { 1142 1143 Logger::entry( 'matador_import_get_currency_file_error', esc_html__( 'Failed to get the iso-currencies.xml file', 'matador-jobs' ), Severity::ERROR, (array) $xml ); 1144 1145 $output = [ 1146 'USD' => [ 'country' => 'United States', 'currency' => 'US Dollar' ], 1147 'EUR' => [ 'country' => 'European Union', 'currency' => 'Euro' ], 1148 'GBP' => [ 'country' => 'United Kingdom', 'currency' => 'Pound Sterling' ], 1149 'AUD' => [ 'country' => 'Australia', 'currency' => 'Australian Dollar' ], 1150 'CAD' => [ 'country' => 'Canada', 'currency' => 'Canadian Dollar' ], 1151 'CHF' => [ 'country' => 'Switzerland', 'currency' => 'Swiss Franc' ], 1152 'CNY' => [ 'country' => 'China', 'currency' => 'Chinese Yuan Renminbi' ], 1153 'HKD' => [ 'country' => 'Hong Kong', 'currency' => 'Hong Kong Dollar'], 1154 'JPY' => [ 'country' => 'Japan', 'currency' => 'Japanese Yen' ], 1155 ]; 1156 1157 } else { 1158 1159 $xml = wp_remote_retrieve_body( $xml ); 1160 1161 $data = json_decode( wp_json_encode( (array) simplexml_load_string( $xml ) ), 1 ); 1162 1163 $output = []; 1164 1165 foreach ( $data['CcyTbl']['CcyNtry'] as $country ) { 1166 1167 if ( empty( $country['Ccy'] ) || empty( $country['CtryNm'] ) || empty( $country['CcyNm'] ) ) { 1168 continue; 1169 } 1170 1171 $output[ $country['Ccy'] ] = [ 'country' => $country['CtryNm'], 'currency' => $country['CcyNm'] ]; 1172 } 1173 } 1174 1175 /** 1176 * @wordpress-filter `matador_get_currency_codes` 1177 * Get Currency Codes 1178 * 1179 * @since 3.9.5 1180 * 1181 * @param array $output in form of [ 'USD' => [ 'country' => 'United States', 'currency' => 'US Dollar' ] ]. 1182 * @return array 1183 */ 1184 return apply_filters( 'matador_get_currency_codes', $output ); 1140 1185 } 1141 1186 … … 1451 1496 * @since 3.8.16 1452 1497 * 1453 * @param array $countries Array of country with two-letter code as key and country name as the value. 1498 * @param array $countries Array of country code with translated name. ATS integrations may need to reformat 1499 * this array to use as country values. 1454 1500 * @return array 1455 1501 */ 1456 1502 return apply_filters( 'matador_jobs_general_countries', $countries ); 1457 1503 } 1504 1505 /** 1506 * Person Name Suffixes 1507 * 1508 * This function was added to provide an alternate method to reference and modify the array of name suffixes. It was 1509 * made necessary by just-in-time translation features introduced in WordPress 6.7 and 6.8. 1510 * 1511 * @since 3.9.7 1512 * 1513 * @return array 1514 */ 1515 public static function name_suffixes(): array { 1516 1517 $suffixes = [ 1518 _x( 'jr', 'Person name suffix', 'matador-jobs' ), 1519 _x( 'sr', 'Person name suffix', 'matador-jobs' ), 1520 _x( 'ii', 'Person name suffix', 'matador-jobs' ), 1521 _x( 'iii', 'Person name suffix', 'matador-jobs' ), 1522 _x( 'iv', 'Person name suffix', 'matador-jobs' ), 1523 _x( 'v', 'Person name suffix', 'matador-jobs' ), 1524 _x( 'vi', 'Person name suffix', 'matador-jobs' ), 1525 _x( 'vii', 'Person name suffix', 'matador-jobs' ), 1526 _x( '1st', 'Person name suffix', 'matador-jobs' ), 1527 _x( '2nd', 'Person name suffix', 'matador-jobs' ), 1528 _x( '3rd', 'Person name suffix', 'matador-jobs' ), 1529 _x( '4th', 'Person name suffix', 'matador-jobs' ), 1530 _x( '5th', 'Person name suffix', 'matador-jobs' ), 1531 _x( '6th', 'Person name suffix', 'matador-jobs' ), 1532 _x( '7th', 'Person name suffix', 'matador-jobs' ), 1533 ]; 1534 1535 /** 1536 * Matador Configuration Person Name Suffixes 1537 * @wordpress-filter `matador_configuration_name_suffixes` 1538 * 1539 * @since 3.9.7 1540 * 1541 * @param array $suffixes Array of suffixes, translated. 1542 */ 1543 return apply_filters( 'matador_configuration_name_suffixes', $suffixes ); 1544 } 1545 1546 /** 1547 * Allowed Files Types 1548 * 1549 * This function was added to provide an alternate method to reference and modify the string describing allowed file 1550 * types. The change was made necessary by just-in-time translation features introduced in WordPress 6.7 and 6.8. 1551 * 1552 * @since 3.9.7 1553 * 1554 * @return string 1555 */ 1556 public static function allowed_file_types(): string { 1557 1558 // Get the array of allowed extensions 1559 $allowed_file_types = Matador::variable( 'accepted_file_extensions' ); 1560 1561 // strip period, make uppercase. 1562 $allowed_file_types = array_map( function( $value ) { 1563 1564 return strtoupper( str_replace( '.', '', $value ) ); 1565 }, $allowed_file_types ); 1566 1567 // In case we need it, the translated word we will use for "and". 1568 $and = _x( 'and', 'word to finalize a list of allowed file types, ie: "docx, and pdf"', 'matador-jobs' ); 1569 1570 // If there are more than one, combine them into a string with punctuation and "and". 1571 if ( count( $allowed_file_types ) > 1 ) { 1572 1573 // Pop the last entry. 1574 $last = array_pop( $allowed_file_types ); 1575 1576 // If the popped array has more than one left, combine with a comma and space, then add "and" and the final entry. 1577 if ( count( $allowed_file_types ) > 1 ) { 1578 $string = implode( ', ', $allowed_file_types ) . ', ' . $and . ' ' . $last; 1579 // If the popped array has only one left, combine it with a simple "and". 1580 } else { 1581 $string = implode( " $and ", $allowed_file_types ); 1582 } 1583 // If there is only one, just pop the value. 1584 } else { 1585 $string = $allowed_file_types[0]; 1586 } 1587 1588 /** 1589 * Matador Allowed File Types String 1590 * 1591 * @since 3.9.7 1592 * 1593 * @param string $string The generated human-readable string of allowed file types. 1594 * @param array $allowed_file_types Don't like ours? Generate your own! 1595 * @param string $and But don't go alone, have our translated "and" to help you. 1596 * 1597 * @return string 1598 */ 1599 return apply_filters( 'matador_configuration_allowed_file_types_string', $string, Matador::variable( 'accepted_file_extensions' ), $and ); 1600 } 1458 1601 } 1602 -
matador-jobs/trunk/includes/class-job-listing.php
r3254249 r3279451 654 654 655 655 // Check if we are in our taxonomy. 656 foreach ( Matador::variable( 'job_taxonomies') as $taxonomy ) {656 foreach ( Job_Taxonomies::taxonomies() as $taxonomy ) { 657 657 if ( $query->is_tax( $taxonomy['key'] ) && $query->is_main_query() ) { 658 658 $should_sort = true; … … 710 710 711 711 $orderby_value = sanitize_text_field( wp_unslash( $_GET['matador-jobs-orderby'] ) ); 712 $accepted_orderby_mappings = Matador::variable( 'job_orderby_mappings');712 $accepted_orderby_mappings = self::job_orderby_options(); 713 713 // phpcs:ignore WordPress.Security.NonceVerification -- Nonce check. 714 714 $selected_orderby = $accepted_orderby_mappings[ $orderby_value ] ?? null; … … 736 736 } 737 737 return $query; 738 } 739 740 /** 741 * Job Orderby Options 742 * 743 * Returns an array of orderby options for the job listings. 744 * 745 * @since 3.9.5 746 * 747 * @return array 748 */ 749 public static function job_orderby_options(): array { 750 751 $options = [ 752 'publication_date_newest' => [ 753 'label' => __( 'Date Published (newest first)', 'matador-jobs' ), 754 'orderby' => 'date', 755 'order' => 'DESC', 756 ], 757 'closing_date_newest' => [ 758 'label' => __( 'Closing Date (newest first)', 'matador-jobs' ), 759 'orderby' => 'meta_value_num', 760 'meta_key' => 'dateEnd', 761 'order' => 'DESC', 762 ], 763 'title' => [ 764 'label' => __( 'Job Title (a-z)', 'matador-jobs' ), 765 'orderby' => 'title', 766 'order' => 'ASC', 767 ], 768 'source_id' => [ 769 'label' => __( 'Source ID (ascending)', 'matador-jobs' ), 770 'orderby' => 'meta_value_num', 771 'meta_key' => '_matador_source_id', 772 'order' => 'ASC', 773 ], 774 'random' => [ 775 'label' => __( 'Random', 'matador-jobs' ), 776 'orderby' => 'rand', 777 'order' => 'ASC', 778 ], 779 ]; 780 781 /** 782 * @wordpress-filter `matador_template_job_info_show_pay` 783 * Show the Pay in the Template (formerly just Job Info Bar) 784 * 785 * Override the settings option on whether to show/hide the Salary in the Template 786 * 787 * @since 3.8.4 788 * 789 * @return boolean 790 */ 791 if ( apply_filters( 'matador_template_job_info_show_pay', Matador::setting( 'jsonld_salary' ) ) ) { 792 $salary_orderby_field = Matador::setting( 'salary_orderby_field' ); 793 794 $options['salary'] = [ 795 'label' => __( 'Salary (highest first)', 'matador-jobs' ), 796 'orderby' => 'meta_value_num', 797 // @todo - Nesting settings call like this feels wrong - see if there's a better way to do this. 798 'meta_key' => Matador::setting( $salary_orderby_field ), 799 'order' => 'DESC', 800 ]; 801 } 802 803 /** 804 * @wordpress-filter `matador_job_search_orderby_options` 805 * Modify the Options for the Job Search Orderby 806 * 807 * @since 3.9.5 808 * 809 * @param array $options 810 * @return array 811 */ 812 return apply_filters( 'matador_job_search_orderby_options', $options ); 738 813 } 739 814 -
matador-jobs/trunk/includes/class-job-taxonomies.php
r3254249 r3279451 41 41 42 42 /** 43 * Taxonomies 44 * 45 * @since 3.9.7 46 */ 47 public static function taxonomies(): array { 48 49 $taxonomies = []; 50 51 // Instantiate the Category Taxonomy 52 $taxonomies['category'] = [ 53 'key' => 'matador-categories', 54 'single' => _x( 'category', 'Job Category Singular Name.', 'matador-jobs' ), 55 'plural' => _x( 'categories', 'Job Category Plural Name.', 'matador-jobs' ), 56 'args' => array( 57 'public' => true, 58 'show_ui' => true, 59 'show_in_menu' => true, 60 'show_in_nav_menus' => true, 61 'show_tagcloud' => true, 62 'show_in_quick_edit' => true, 63 'show_admin_column' => true, 64 'hierarchical' => false, 65 ), 66 ]; 67 68 // Instantiate the Location Taxonomy 69 $taxonomies['location'] = [ 70 'key' => 'matador-locations', 71 'single' => _x( 'location', 'Job Location Singular Name.', 'matador-jobs' ), 72 'plural' => _x( 'locations', 'Job Location Plural Name.', 'matador-jobs' ), 73 'args' => array( 74 'show_admin_column' => true, 75 ), 76 ]; 77 78 // Instantiate the Type Taxonomy 79 $taxonomies['type'] = [ 80 'key' => 'matador-types', 81 'single' => _x( 'type', 'Job Type Singular Name.', 'matador-jobs' ), 82 'plural' => _x( 'types', 'Job Type Plural Name.', 'matador-jobs' ), 83 ]; 84 85 // BEGIN: Backwards Compatibility for 3.9.7 86 // 87 // With Matador Jobs 3.0.0 and forward, taxonomies were created by modifying the Variables array for taxonomies. 88 // With WordPress 6.7 and 6.8, the implementation of Just In Time translations sped up WordPress loading time 89 // but made the load order more fickle. Taxonomies had to move out of Variables. To make it so integrations that 90 // read the old Variable via `Matador::variable('job_taxonomies');`, a filter on the now ghost variable is 91 // called that reads this function. To make it so old filters that added taxonomies to the variable to work, we 92 // need to read those too. So this block removes the "read ghost variable" filter, reads the other filters, 93 // removes them, then re-adds the "read ghost variable" filter. This makes everything (in theory) work with full 94 // backwards compatibility 95 // 96 // Step 1: in the event this function is called by the "read ghost variable" filter, remove it so we don't get 97 // stuck in a loop. 98 remove_filter( 'matador_variable_job_taxonomies', [ 'matador\Variables', '_deprecated_variables_397_job_taxonomies' ], 5 ); 99 // Step 2: get the array of other functions from the $wp_filter global, and remove them 100 if ( has_filter( 'matador_variable_job_taxonomies' ) ) { 101 global $wp_filter; 102 foreach ( $wp_filter['matador_variable_job_taxonomies'] as $priority => $filters ) { 103 foreach ( $filters as $filter ) { 104 if ( is_array( $filter['function'] ) ) { 105 // Remove the filter 106 remove_filter( 'matador_variable_job_taxonomies', $filter['function'], $priority ); 107 add_filter( 'matador_job_taxonomies', $filter['function'], $priority ); 108 } 109 } 110 } 111 } 112 // Step 3: restore the "read ghost variable" filter 113 add_filter( 'matador_variable_job_taxonomies', [ 'matador\Variables', '_deprecated_variables_397_job_taxonomies' ], 5, 1 ); 114 // END: Backwards Compatibility for 3.9.7 115 116 /** 117 * Matador Job Taxonomies 118 * 119 * @wordpress-filter 120 * 121 * A filter to allow other plugins to add their own taxonomies to the job listing post type. 122 * 123 * @since 3.0.0 124 * 125 * @param array $taxonomies An array of taxonomy args 126 * 127 * @return array 128 */ 129 $taxonomies = apply_filters( 'matador_job_taxonomies', $taxonomies ); 130 131 foreach ( array_keys( $taxonomies ) as $taxonomy ) { 132 $slug_key = 'taxonomy_slug_' . $taxonomy; 133 134 $taxonomies[ $taxonomy ]['slug'] = Matador::setting( $slug_key ) ?: 'matador-' . $taxonomy; 135 } 136 137 return $taxonomies; 138 } 139 140 /** 141 * Registered Taxonomies 142 * 143 * @since 3.4.0 144 * 145 * @return array 146 */ 147 public static function taxonomies_list(): array { 148 return array_keys( self::taxonomies() ); 149 } 150 151 /** 152 * Registered Taxonomy 153 * 154 * @since 3.4.0 155 * 156 * @param string $taxonomy The taxonomy key. 157 * 158 * @return array 159 */ 160 public static function registered_taxonomy( string $taxonomy ): array { 161 162 if ( ! array_key_exists( strtolower( $taxonomy ), self::taxonomies() ) ) { 163 164 return []; 165 } 166 167 return self::taxonomies()[ $taxonomy ]; 168 } 169 170 /** 43 171 * Taxonomy Constructor 44 172 * @since 3.0.0 45 173 */ 46 public function register_taxonomies() {47 foreach ( Matador::variable( 'job_taxonomies') as $key => $taxonomy ) {174 public function register_taxonomies(): void { 175 foreach ( self::taxonomies() as $key => $taxonomy ) { 48 176 register_taxonomy( $taxonomy['key'], Matador::variable( 'post_type_key_job_listing' ), self::taxonomy_args( $key, $taxonomy ) ); 49 177 add_action( 'after-' . $taxonomy['key'] . '-table', array( $this, 'add_recount_link' ) ); … … 287 415 288 416 // loop through all the taxonomies and see if any of them match 289 foreach ( Matador::variable( 'job_taxonomies') as $taxonomy ) {290 if ( array_key_exists( $taxonomy ["key"], $query->query_vars ) ) {417 foreach ( self::taxonomies_list() as $taxonomy ) { 418 if ( array_key_exists( $taxonomy, $query->query_vars ) ) { 291 419 $is_matador_taxonomy = true; 292 420 } … … 356 484 357 485 /** 358 * @return array359 */360 public static function registered_taxonomies() {361 return array_keys( Matador::variable( 'job_taxonomies' ) );362 }363 364 /**365 486 * Maybe Recount Taxonomy Terms 366 487 * … … 381 502 } 382 503 383 foreach ( Matador::variable( 'job_taxonomies' ) as $key =>$taxonomy ) {504 foreach ( self::taxonomies() as $taxonomy ) { 384 505 385 506 $get_terms_args = array( -
matador-jobs/trunk/includes/class-scheduled-events.php
r3254249 r3279451 215 215 * 216 216 * @since 3.0.0 217 * @deprecated 3.9.0 217 218 * 218 219 * @param string $method Default 'auto' … … 358 359 ); 359 360 360 if ( $last ) { 361 $application_query['date_query'][0]['before'] = $last; 361 if ( ! $last ) { 362 $last_application_query = $application_query; 363 $last_application_query['order'] = 'DESC'; 364 $last_application = new WP_Query( $last_application_query ); 365 366 if ( $last_application->have_posts() && ! is_wp_error( $last_application ) ) { 367 $last = $last_application->posts[0]->post_date; 368 } 362 369 } 370 371 $application_query['date_query'][0]['before'] = $last; 363 372 364 373 $application = new WP_Query( $application_query ); … … 366 375 if ( $application->have_posts() && ! is_wp_error( $application ) ) { 367 376 $id = $application->posts[0]->ID; 368 $last = $application->posts[0]->post_date;369 377 } else { 370 378 delete_transient( Matador::variable( 'doing_sync', 'transients' ) ); -
matador-jobs/trunk/includes/class-shortcodes.php
r3254249 r3279451 167 167 168 168 // Dynamically Support Taxonomy Args 169 foreach ( array_keys( (array) Matador::variable( 'job_taxonomies' )) as $taxonomy ) {169 foreach ( Job_Taxonomies::taxonomies_list() as $taxonomy ) { 170 170 $pairs[ $taxonomy ] = null; 171 171 } … … 212 212 213 213 // Dynamically Support Taxonomy Args 214 foreach ( array_keys( (array) Matador::variable( 'job_taxonomies' ) ) as $taxonomy ) { 214 // Dynamically Support Taxonomy Args 215 foreach ( Job_Taxonomies::taxonomies_list() as $taxonomy ) { 215 216 $pairs[ $taxonomy ] = null; 216 217 } … … 257 258 258 259 // Dynamically Support Taxonomy Args 259 foreach ( array_keys( (array) Matador::variable( 'job_taxonomies' ) ) as $taxonomy ) { 260 // Dynamically Support Taxonomy Args 261 foreach ( Job_Taxonomies::taxonomies_list() as $taxonomy ) { 260 262 $pairs[ $taxonomy ] = null; 261 263 } … … 309 311 310 312 // Dynamically Support Taxonomy Args 311 foreach ( array_keys( (array) Matador::variable( 'job_taxonomies' ) ) as $taxonomy ) { 313 // Dynamically Support Taxonomy Args 314 foreach ( Job_Taxonomies::taxonomies_list() as $taxonomy ) { 312 315 $pairs[ $taxonomy ] = null; 313 316 } … … 427 430 */ 428 431 public static function matador_category_shortcode( $atts ) { 429 if ( ! array_key_exists( 'category', (array) Matador::variable( 'job_taxonomies') ) ) {432 if ( ! in_array( 'category', Job_Taxonomies::taxonomies_list() ) ) { 430 433 _doing_it_wrong( __FUNCTION__, sprintf( esc_html__( 'You cannot use the [matador_categories] shortcode because the Category taxonomy is not available.', 'matador-jobs' ), '[matador_categories]' ), '3.0.0' ); 431 434 432 return false;435 return ''; 433 436 } 434 437 … … 448 451 */ 449 452 public static function matador_location_shortcode( $atts ) { 450 if ( ! array_key_exists( 'location', (array) Matador::variable( 'job_taxonomies') ) ) {453 if ( ! in_array( 'location', Job_Taxonomies::taxonomies_list() ) ) { 451 454 _doing_it_wrong( __FUNCTION__, sprintf( esc_html__( 'You cannot use the [matador_locations] shortcode because the Location taxonomy is not available.', 'matador-jobs' ), '[matador_locations]' ), '3.0.0' ); 452 455 … … 473 476 */ 474 477 public static function matador_types_shortcode( $atts ) { 475 if ( ! array_key_exists( 'type', (array) Matador::variable( 'job_taxonomies') ) ) {478 if ( ! in_array( 'type', Job_Taxonomies::taxonomies_list() ) ) { 476 479 _doing_it_wrong( __FUNCTION__, sprintf( esc_html__( 'You cannot use the [matador_types] shortcode because the Type taxonomy is not available.', 'matador-jobs' ), '[matador_types]' ), '3.0.0' ); 477 480 -
matador-jobs/trunk/includes/class-template-support.php
r3254249 r3279451 667 667 668 668 /** 669 * Filter: Show the Pay in the Info Bar 670 * 671 * Override the Settings Option on whether to show/hide the Salary in the Info Bar 669 * @wordpress-filter `matador_template_job_info_show_pay` 670 * Show the Pay in the Template (formerly just Job Info Bar) 671 * 672 * Override the settings option on whether to show/hide the Salary in the Template 672 673 * 673 674 * @since 3.8.4 674 675 * 675 * @return boolean (or string "0"/"1")676 * @return boolean 676 677 */ 677 678 if ( apply_filters( 'matador_template_job_info_show_pay', Matador::setting( 'jsonld_salary' ) ) ) { … … 1593 1594 // '$taxonomy' parameter. Allows user to pass slugs and IDs. 1594 1595 // 1595 foreach ( Matador::variable( 'job_taxonomies') as $taxonomy => $tax_args ) {1596 foreach ( Job_Taxonomies::taxonomies() as $taxonomy => $tax_args ) { 1596 1597 if ( ! empty( $args[ $taxonomy ] ) ) { 1597 1598 $args[ $tax_args['key'] ] = esc_attr( strtolower( $args[ $taxonomy ] ) ); … … 1710 1711 $defaults['fields']['info'] = __( 'Job Info', 'matador-jobs' ); 1711 1712 } 1712 foreach ( Matador::variable( 'job_taxonomies' ) as $taxonomy =>$tax_args ) {1713 foreach ( Job_Taxonomies::taxonomies() as $tax_args ) { 1713 1714 $defaults[ $tax_args['key'] ] = null; 1714 1715 } … … 1855 1856 1856 1857 // Include taxonomies: 1857 foreach ( Matador::variable( 'job_taxonomies' ) as $key =>$taxonomy ) {1858 foreach ( Job_Taxonomies::taxonomies() as $taxonomy ) { 1858 1859 1859 1860 // phpcs:ignore WordPress.Security.NonceVerification -- Nonce check. … … 2000 2001 } 2001 2002 2002 // Get the Registered Taxonomies2003 $taxonomies = (array) Matador::variable( 'job_taxonomies');2003 // Get array of registered Taxonomies 2004 $taxonomies = Job_Taxonomies::taxonomies(); 2004 2005 2005 2006 // If no taxonomy was passed, use all, otherwise check and convert … … 2171 2172 2172 2173 // Get array of registered Taxonomies 2173 $taxonomies = (array) Matador::variable( 'job_taxonomies');2174 $taxonomies = Job_Taxonomies::taxonomies(); 2174 2175 2175 2176 // Validate the taxonomy exists ( even the default could technically be unset by developers ) … … 2533 2534 $allowed_fields = apply_filters( 2534 2535 'matador_search_form_arg_fields', 2535 array_merge( Job_Taxonomies:: registered_taxonomies(), array( 'keyword', 'id', 'reset' ) )2536 array_merge( Job_Taxonomies::taxonomies_list(), array( 'keyword', 'id', 'reset' ) ) 2536 2537 ); 2537 2538 … … 2771 2772 public static function jobs_orderby( $args = [] ) { 2772 2773 2773 $args['options'] = Matador::variable( 'job_orderby_mappings');2774 $args['options'] = Job_Listing::job_orderby_options(); 2774 2775 2775 2776 if ( empty( $args['default_value'] ) ) { 2776 // Mapping Matador::setting( 'jobs_sort ) keys to Matador::variable( 'job_orderby_mappings' ) keys.2777 2777 switch ( Matador::setting( 'jobs_sort' ) ) { 2778 case 'date':2779 $args['default_value'] = 'publication_date_newest';2780 break;2781 2778 case 'name': 2782 2779 $args['default_value'] = 'title_az'; … … 2789 2786 $args['default_value'] = 'random'; 2790 2787 break; 2788 case 'date': 2791 2789 default: 2792 2790 $args['default_value'] = 'publication_date_newest'; -
matador-jobs/trunk/includes/class-variables.php
r3254249 r3279451 43 43 public function __construct() { 44 44 45 // Backwards Compatibility for Variables promoted in version 3.9.7 46 add_filter( 'matador_variable_accepted_files_types', [ __CLASS__, '_deprecated_variables_397_accepted_files_types' ], 5, 1 ); 47 add_filter( 'matador_variable_application_name_suffixes', [ __CLASS__, '_deprecated_variables_397_application_name_suffixes' ], 5, 1 ); 48 45 49 // Simple Default Assignments; 46 50 $d = array(); … … 53 57 // Applications Related 54 58 $d['application_data'] = '_application_data'; 55 $d['accepted_files_types'] = __( 'DOC, DOCX, PDF, HTML, and TXT', 'matador-jobs' );56 59 $d['accepted_file_extensions'] = array( '.doc', '.docx', '.pdf', '.html', '.txt' ); 57 60 $d['accepted_file_size_limit'] = 2; //in megabyte(s). Max per Bullhorn is 5mb. 58 $d['application_name_suffixes'] = array(59 'jr',60 'sr',61 'ii',62 'iii',63 'iv',64 'v',65 'vi',66 'vii',67 '1st',68 '2nd',69 '3rd',70 '4th',71 '5th',72 '6th',73 '7th'74 );75 61 $d['application_allowed_files_keys'] = array( 'resume', 'letter', 'files' ); 76 62 $d['submission_type'] = '_matador_submission_type'; … … 121 107 $d['css_class_prefix'] = 'matador'; 122 108 123 // Accepted Values for job query orderby & order.124 $d['job_orderby_mappings'] = array(125 'publication_date_newest' => [126 'label' => __( 'Date Published (newest first)', 'matador-jobs' ),127 'orderby' => 'date',128 'order' => 'DESC',129 ],130 'closing_date_newest' => [131 'label' => __( 'Closing Date (newest first)', 'matador-jobs' ),132 'orderby' => 'meta_value_num',133 'meta_key' => 'dateEnd',134 'order' => 'DESC',135 ],136 'title' => [137 'label' => __( 'Job Title (a-z)', 'matador-jobs' ),138 'orderby' => 'title',139 'order' => 'ASC',140 ],141 'source_id' => [142 'label' => __( 'Source ID (ascending)', 'matador-jobs' ),143 'orderby' => 'meta_value_num',144 'meta_key' => '_matador_source_id',145 'order' => 'ASC',146 ],147 'random' => [148 'label' => __( 'Random', 'matador-jobs' ),149 'orderby' => 'rand',150 'order' => 'ASC',151 ],152 );153 154 if ( apply_filters( 'matador_template_job_info_show_pay', Matador::setting( 'jsonld_salary' ) ) ) {155 $d['job_orderby_mappings']['salary'] = [156 'label' => __( 'Salary (highest first)', 'matador-jobs' ),157 'orderby' => 'meta_value_num',158 // @todo - Nesting settings call like this feels wrong - see if there's a better way to do this.159 'meta_key' => Matador::setting( Matador::setting( 'salary_orderby_field' ) ),160 'order' => 'DESC',161 ];162 }163 164 109 // Transient Keys 165 110 $d['transients'] = array( … … 176 121 'bullhorn_companies_cache' => 'matador_bullhorn_companies_cache', 177 122 'bullhorn_countries_cache' => 'matador_bullhorn_countries_cache', 123 'bullhorn_countries_cache_refresh' => 'matador_bullhorn_countries_cache_refresh', 178 124 'bullhorn_contact_meta_cache' => 'matador_bullhorn_contact_meta_cache', 179 125 'bullhorn_entitlements' => 'matador_bullhorn_entitlements', … … 191 137 'email_timeout-administrator-notice-general' => 'email_timeout_administrator_notice_general', 192 138 'email_delay-administrator-notice-disconnected' => 'email_delay_administrator_notice_disconnected', 193 // "ET" = "E.T. Phone Home" = Analytics 194 'analytics_recent_applications' => 'matador_ET_recent_applications', 139 'analytics_recent_applications' => 'matador_ET_recent_applications', // ET = "Phone Home" = Analytics 195 140 'doing_sync' => 'matador_doing_sync', 196 141 'doing_sync_task' => 'matador_doing_sync_task', … … 217 162 ); 218 163 219 $d['job_taxonomies'] = apply_filters( 'matador_job_taxonomies', array(220 'category' => array(221 'key' => 'matador-categories',222 'single' => _x( 'category', 'Job Category Singular Name.', 'matador-jobs' ),223 'plural' => _x( 'categories', 'Job Category Plural Name.', 'matador-jobs' ),224 'args' => array(225 'public' => true,226 'show_ui' => true,227 'show_in_menu' => true,228 'show_in_nav_menus' => true,229 'show_tagcloud' => true,230 'show_in_quick_edit' => true,231 'show_admin_column' => true,232 'hierarchical' => false,233 ),234 ),235 'location' => array(236 'key' => 'matador-locations',237 'single' => _x( 'location', 'Job Location Singular Name.', 'matador-jobs' ),238 'plural' => _x( 'locations', 'Job Location Plural Name.', 'matador-jobs' ),239 'args' => array(240 'show_admin_column' => true,241 ),242 ),243 'type' => array(244 'key' => 'matador-types',245 'single' => _x( 'type', 'Job Type Singular Name.', 'matador-jobs' ),246 'plural' => _x( 'types', 'Job Type Plural Name.', 'matador-jobs' ),247 ),248 ) );249 250 foreach ( $d['job_taxonomies'] as $taxonomy => $args ) {251 $slug_key = 'taxonomy_slug_' . $taxonomy;252 253 $d['job_taxonomies'][ $taxonomy ]['slug'] = Matador::setting( $slug_key ) ?: 'matador-' . $taxonomy;254 }255 256 164 self::$_values = apply_filters( 'matador_variable_all', $d ); 257 165 } … … 269 177 */ 270 178 public function __get( $key ) { 179 271 180 $raw = array_key_exists( $key, self::$_values ) ? self::$_values[ $key ] : null; 272 181 … … 274 183 * Dynamic Filter: Get Option 275 184 * 276 * Filter the option after its been pulled out of the database.185 * Filter the variable before it is used. 277 186 * 278 187 * @since 3.0.0 … … 289 198 } 290 199 200 /** 201 * Deprecated: Job Taxonomies Handling 202 * 203 * Written to help with backwards compatibility from when the Variables class held this variable. 204 * 205 * @since 3.9.7 206 * @deprecated 3.9.7 207 * 208 * @return array Array of taxonomy data 209 */ 210 public static function _deprecated_variables_397_job_taxonomies(): array { 211 212 return Job_Taxonomies::taxonomies(); 213 } 214 215 /** 216 * Deprecated: Accepted File Types Handling 217 * 218 * Written to help with backwards compatibility from when the Variables class held this variable. 219 * 220 * @since 3.9.7 221 * @deprecated 3.9.7 222 * 223 * @return string Description of allowed file types 224 */ 225 public static function _deprecated_variables_397_accepted_files_types(): string { 226 227 return Helper::allowed_file_types(); 228 } 229 230 /** 231 * Deprecated: Application Name Suffixes Handling 232 * 233 * Written to help with backwards compatibility from when the Variables class held this variable. 234 * 235 * @since 3.9.7 236 * @deprecated 3.9.7 237 * 238 * @return array Array of name suffixes 239 */ 240 public static function _deprecated_variables_397_application_name_suffixes(): array { 241 242 return Helper::name_suffixes(); 243 } 291 244 } -
matador-jobs/trunk/includes/template-functions.php
r3254249 r3279451 552 552 function matador_get_the_job_meta( $key, $id = null, $context = '' ) { 553 553 554 if ( in_array( $key, Job_Taxonomies:: registered_taxonomies(), true ) ) {554 if ( in_array( $key, Job_Taxonomies::taxonomies_list(), true ) ) { 555 555 556 556 /** -
matador-jobs/trunk/languages/matador-jobs.pot
r3257995 r3279451 7 7 "Content-Type: text/plain; charset=UTF-8\n" 8 8 "Content-Transfer-Encoding: 8bit\n" 9 "POT-Creation-Date: 2025-0 3-18 16:24+0000\n"9 "POT-Creation-Date: 2025-04-22 21:55+0000\n" 10 10 "X-Poedit-Basepath: ..\n" 11 11 "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n" … … 48 48 msgstr "" 49 49 50 #: ../includes/class-application-handler.php:821, ../includes/class-application-sync.php:13 8050 #: ../includes/class-application-handler.php:821, ../includes/class-application-sync.php:1392 51 51 msgid "Message: " 52 52 msgstr "" … … 249 249 msgstr "" 250 250 251 #: ../includes/class-application-screening.php:113, ../includes/class-template-support.php:169 8251 #: ../includes/class-application-screening.php:113, ../includes/class-template-support.php:1699 252 252 msgid "Apply" 253 253 msgstr "" … … 342 342 msgstr "" 343 343 344 #: ../includes/class-application-sync.php:77 7344 #: ../includes/class-application-sync.php:778 345 345 msgid "Submission was not applied to a job per Application Screening selection." 346 346 msgstr "" 347 347 348 #: ../includes/class-application-sync.php:78 5348 #: ../includes/class-application-sync.php:786 349 349 msgid "Linked candidate to Default application with Bullhorn ID" 350 350 msgstr "" 351 351 352 #: ../includes/class-application-sync.php:79 7352 #: ../includes/class-application-sync.php:798 353 353 msgid "Linked candidate to an application with the Bullhorn ID of" 354 354 msgstr "" 355 355 356 #: ../includes/class-application-sync.php:79 7356 #: ../includes/class-application-sync.php:798 357 357 msgid "and Submission ID" 358 358 msgstr "" 359 359 360 #: ../includes/class-application-sync.php:8 39360 #: ../includes/class-application-sync.php:840 361 361 msgid "Unprocessable resume." 362 362 msgstr "" 363 363 364 #: ../includes/class-application-sync.php:85 4364 #: ../includes/class-application-sync.php:855 365 365 msgid "No resume for applicant." 366 366 msgstr "" 367 367 368 #: ../includes/class-application-sync.php:85 1368 #: ../includes/class-application-sync.php:852 369 369 msgid "Error on resume process from Bullhorn: " 370 370 msgstr "" 371 371 372 #: ../includes/class-application-sync.php:1 396372 #: ../includes/class-application-sync.php:1408 373 373 msgid "Applied via the website for this position: " 374 374 msgstr "" 375 375 376 #: ../includes/class-application-sync.php:16 34376 #: ../includes/class-application-sync.php:1646 377 377 msgid "Skipping candidate consent data save." 378 378 msgstr "" 379 379 380 #: ../includes/class-application-sync.php:16 49380 #: ../includes/class-application-sync.php:1661 381 381 msgid "Candidate accepted Privacy Policy." 382 382 msgstr "" 383 383 384 #: ../includes/class-application-sync.php:16 65, ../includes/class-application-sync.php:1713384 #: ../includes/class-application-sync.php:1677, ../includes/class-application-sync.php:1725 385 385 msgid "Recruiting" 386 386 msgstr "" 387 387 388 #: ../includes/class-application-sync.php:16 67388 #: ../includes/class-application-sync.php:1679 389 389 msgid "Legal Obligation" 390 390 msgstr "" 391 391 392 #: ../includes/class-application-sync.php:16 69, ../includes/class-application-sync.php:1717392 #: ../includes/class-application-sync.php:1681, ../includes/class-application-sync.php:1729 393 393 msgid "Web Response" 394 394 msgstr "" 395 395 396 #: ../includes/class-application-sync.php:1 697396 #: ../includes/class-application-sync.php:1709 397 397 msgid "Candidate accepted Terms of Service." 398 398 msgstr "" 399 399 400 #: ../includes/class-application-sync.php:17 15400 #: ../includes/class-application-sync.php:1727 401 401 msgid "Contract Necessity" 402 402 msgstr "" … … 488 488 msgstr "" 489 489 490 #: ../includes/class-application.php:404, ../includes/class-application.php:641, ../includes/class-job-listing.php: 860, ../includes/class-job-listing.php:921490 #: ../includes/class-application.php:404, ../includes/class-application.php:641, ../includes/class-job-listing.php:935, ../includes/class-job-listing.php:996 491 491 msgid "Open in Bullhorn" 492 492 msgstr "" … … 624 624 625 625 #. translators: placeholder 1 is the 'type' of deprecated item, ie: a function. Placeholder 2 is the old 626 #: ../includes/class-helper.php:7 01626 #: ../includes/class-helper.php:712 627 627 msgid "Your theme or extension is using the deprecated \"%2$s\" %1$s. Please consider an alternative solution. We will remove this %1$s in a future version." 628 628 msgstr "" 629 629 630 #: ../includes/class-helper.php: 694630 #: ../includes/class-helper.php:705 631 631 msgid "Your theme or extension is using the deprecated \"%2$s\" %1$s. Please update the %1$s to \"%3$s\". We will remove this %1$s in a future version." 632 632 msgstr "" 633 633 634 #: ../includes/class-helper.php:7 09634 #: ../includes/class-helper.php:720 635 635 msgid "Deprecation Notice" 636 636 msgstr "" 637 637 638 #: ../includes/class-helper.php:7 11638 #: ../includes/class-helper.php:722 639 639 msgid "Only you, a logged in user who can edit content, can see this notice." 640 640 msgstr "" 641 641 642 #: ../includes/class-helper.php:1197 642 #: ../includes/class-helper.php:1143 643 msgid "Failed to get the iso-currencies.xml file" 644 msgstr "" 645 646 #: ../includes/class-helper.php:1242 643 647 msgid "Afghanistan" 644 648 msgstr "" 645 649 646 #: ../includes/class-helper.php:1 198650 #: ../includes/class-helper.php:1243 647 651 msgid "Albania" 648 652 msgstr "" 649 653 650 #: ../includes/class-helper.php:1 199654 #: ../includes/class-helper.php:1244 651 655 msgid "Åland Islands" 652 656 msgstr "" 653 657 654 #: ../includes/class-helper.php:12 00658 #: ../includes/class-helper.php:1245 655 659 msgid "Algeria" 656 660 msgstr "" 657 661 658 #: ../includes/class-helper.php:12 01662 #: ../includes/class-helper.php:1246 659 663 msgid "American Samoa" 660 664 msgstr "" 661 665 662 #: ../includes/class-helper.php:12 02666 #: ../includes/class-helper.php:1247 663 667 msgid "Andorra" 664 668 msgstr "" 665 669 666 #: ../includes/class-helper.php:12 03670 #: ../includes/class-helper.php:1248 667 671 msgid "Angola" 668 672 msgstr "" 669 673 670 #: ../includes/class-helper.php:12 04674 #: ../includes/class-helper.php:1249 671 675 msgid "Anguilla" 672 676 msgstr "" 673 677 674 #: ../includes/class-helper.php:12 05678 #: ../includes/class-helper.php:1250 675 679 msgid "Antarctica" 676 680 msgstr "" 677 681 678 #: ../includes/class-helper.php:12 06682 #: ../includes/class-helper.php:1251 679 683 msgid "Antigua and Barbuda" 680 684 msgstr "" 681 685 682 #: ../includes/class-helper.php:12 07686 #: ../includes/class-helper.php:1252 683 687 msgid "Argentina" 684 688 msgstr "" 685 689 686 #: ../includes/class-helper.php:12 08690 #: ../includes/class-helper.php:1253 687 691 msgid "Armenia" 688 692 msgstr "" 689 693 690 #: ../includes/class-helper.php:12 09694 #: ../includes/class-helper.php:1254 691 695 msgid "Aruba" 692 696 msgstr "" 693 697 694 #: ../includes/class-helper.php:12 10698 #: ../includes/class-helper.php:1255 695 699 msgid "Australia" 696 700 msgstr "" 697 701 698 #: ../includes/class-helper.php:12 11702 #: ../includes/class-helper.php:1256 699 703 msgid "Austria" 700 704 msgstr "" 701 705 702 #: ../includes/class-helper.php:12 12706 #: ../includes/class-helper.php:1257 703 707 msgid "Azerbaijan" 704 708 msgstr "" 705 709 706 #: ../includes/class-helper.php:12 13710 #: ../includes/class-helper.php:1258 707 711 msgid "Bahamas" 708 712 msgstr "" 709 713 710 #: ../includes/class-helper.php:12 14714 #: ../includes/class-helper.php:1259 711 715 msgid "Bahrain" 712 716 msgstr "" 713 717 714 #: ../includes/class-helper.php:12 15718 #: ../includes/class-helper.php:1260 715 719 msgid "Bangladesh" 716 720 msgstr "" 717 721 718 #: ../includes/class-helper.php:12 16722 #: ../includes/class-helper.php:1261 719 723 msgid "Barbados" 720 724 msgstr "" 721 725 722 #: ../includes/class-helper.php:12 17726 #: ../includes/class-helper.php:1262 723 727 msgid "Belarus" 724 728 msgstr "" 725 729 726 #: ../includes/class-helper.php:12 18730 #: ../includes/class-helper.php:1263 727 731 msgid "Belgium" 728 732 msgstr "" 729 733 730 #: ../includes/class-helper.php:12 19734 #: ../includes/class-helper.php:1264 731 735 msgid "Belize" 732 736 msgstr "" 733 737 734 #: ../includes/class-helper.php:12 20738 #: ../includes/class-helper.php:1265 735 739 msgid "Benin" 736 740 msgstr "" 737 741 738 #: ../includes/class-helper.php:12 21742 #: ../includes/class-helper.php:1266 739 743 msgid "Bermuda" 740 744 msgstr "" 741 745 742 #: ../includes/class-helper.php:12 22746 #: ../includes/class-helper.php:1267 743 747 msgid "Bhutan" 744 748 msgstr "" 745 749 746 #: ../includes/class-helper.php:12 23750 #: ../includes/class-helper.php:1268 747 751 msgid "Bolivia" 748 752 msgstr "" 749 753 750 #: ../includes/class-helper.php:12 24754 #: ../includes/class-helper.php:1269 751 755 msgid "Bonaire, Sint Eustatius and Saba" 752 756 msgstr "" 753 757 754 #: ../includes/class-helper.php:12 25758 #: ../includes/class-helper.php:1270 755 759 msgid "Bosnia and Herzegovina" 756 760 msgstr "" 757 761 758 #: ../includes/class-helper.php:12 26762 #: ../includes/class-helper.php:1271 759 763 msgid "Botswana" 760 764 msgstr "" 761 765 762 #: ../includes/class-helper.php:12 27766 #: ../includes/class-helper.php:1272 763 767 msgid "Bouvet Island" 764 768 msgstr "" 765 769 766 #: ../includes/class-helper.php:12 28770 #: ../includes/class-helper.php:1273 767 771 msgid "Brazil" 768 772 msgstr "" 769 773 770 #: ../includes/class-helper.php:12 29774 #: ../includes/class-helper.php:1274 771 775 msgid "British Indian Ocean Territory" 772 776 msgstr "" 773 777 774 #: ../includes/class-helper.php:12 30778 #: ../includes/class-helper.php:1275 775 779 msgid "Brunei" 776 780 msgstr "" 777 781 778 #: ../includes/class-helper.php:12 31782 #: ../includes/class-helper.php:1276 779 783 msgid "Bulgaria" 780 784 msgstr "" 781 785 782 #: ../includes/class-helper.php:12 32786 #: ../includes/class-helper.php:1277 783 787 msgid "Burkina Faso" 784 788 msgstr "" 785 789 786 #: ../includes/class-helper.php:12 33790 #: ../includes/class-helper.php:1278 787 791 msgid "Burundi" 788 792 msgstr "" 789 793 790 #: ../includes/class-helper.php:12 34794 #: ../includes/class-helper.php:1279 791 795 msgid "Cabo Verde" 792 796 msgstr "" 793 797 794 #: ../includes/class-helper.php:12 35798 #: ../includes/class-helper.php:1280 795 799 msgid "Cambodia" 796 800 msgstr "" 797 801 798 #: ../includes/class-helper.php:12 36802 #: ../includes/class-helper.php:1281 799 803 msgid "Cameroon" 800 804 msgstr "" 801 805 802 #: ../includes/class-helper.php:12 37806 #: ../includes/class-helper.php:1282 803 807 msgid "Canada" 804 808 msgstr "" 805 809 806 #: ../includes/class-helper.php:12 38810 #: ../includes/class-helper.php:1283 807 811 msgid "Cayman Islands" 808 812 msgstr "" 809 813 810 #: ../includes/class-helper.php:12 39814 #: ../includes/class-helper.php:1284 811 815 msgid "Central African Republic" 812 816 msgstr "" 813 817 814 #: ../includes/class-helper.php:12 40818 #: ../includes/class-helper.php:1285 815 819 msgid "Chad" 816 820 msgstr "" 817 821 818 #: ../includes/class-helper.php:12 41822 #: ../includes/class-helper.php:1286 819 823 msgid "Chile" 820 824 msgstr "" 821 825 822 #: ../includes/class-helper.php:12 42826 #: ../includes/class-helper.php:1287 823 827 msgid "China" 824 828 msgstr "" 825 829 826 #: ../includes/class-helper.php:12 43830 #: ../includes/class-helper.php:1288 827 831 msgid "Christmas Island" 828 832 msgstr "" 829 833 830 #: ../includes/class-helper.php:12 44834 #: ../includes/class-helper.php:1289 831 835 msgid "Cocos [Keeling] Islands" 832 836 msgstr "" 833 837 834 #: ../includes/class-helper.php:12 45838 #: ../includes/class-helper.php:1290 835 839 msgid "Colombia" 836 840 msgstr "" 837 841 838 #: ../includes/class-helper.php:12 46842 #: ../includes/class-helper.php:1291 839 843 msgid "Comoros" 840 844 msgstr "" 841 845 842 #: ../includes/class-helper.php:12 47846 #: ../includes/class-helper.php:1292 843 847 msgid "Congo - Brazzaville" 844 848 msgstr "" 845 849 846 #: ../includes/class-helper.php:12 48850 #: ../includes/class-helper.php:1293 847 851 msgid "Congo - Kinshasa" 848 852 msgstr "" 849 853 850 #: ../includes/class-helper.php:12 49854 #: ../includes/class-helper.php:1294 851 855 msgid "Cook Islands" 852 856 msgstr "" 853 857 854 #: ../includes/class-helper.php:12 50858 #: ../includes/class-helper.php:1295 855 859 msgid "Costa Rica" 856 860 msgstr "" 857 861 858 #: ../includes/class-helper.php:12 51862 #: ../includes/class-helper.php:1296 859 863 msgid "Côte d’Ivoire" 860 864 msgstr "" 861 865 862 #: ../includes/class-helper.php:12 52866 #: ../includes/class-helper.php:1297 863 867 msgid "Croatia" 864 868 msgstr "" 865 869 866 #: ../includes/class-helper.php:12 53870 #: ../includes/class-helper.php:1298 867 871 msgid "Cuba" 868 872 msgstr "" 869 873 870 #: ../includes/class-helper.php:12 54874 #: ../includes/class-helper.php:1299 871 875 msgid "Curaco" 872 876 msgstr "" 873 877 874 #: ../includes/class-helper.php:1 255878 #: ../includes/class-helper.php:1300 875 879 msgid "Cyprus" 876 880 msgstr "" 877 881 878 #: ../includes/class-helper.php:1 256882 #: ../includes/class-helper.php:1301 879 883 msgid "Czechia" 880 884 msgstr "" 881 885 882 #: ../includes/class-helper.php:1 257886 #: ../includes/class-helper.php:1302 883 887 msgid "Denmark" 884 888 msgstr "" 885 889 886 #: ../includes/class-helper.php:1 258890 #: ../includes/class-helper.php:1303 887 891 msgid "Djibouti" 888 892 msgstr "" 889 893 890 #: ../includes/class-helper.php:1 259894 #: ../includes/class-helper.php:1304 891 895 msgid "Dominica" 892 896 msgstr "" 893 897 894 #: ../includes/class-helper.php:1 260898 #: ../includes/class-helper.php:1305 895 899 msgid "Dominican Republic" 896 900 msgstr "" 897 901 898 #: ../includes/class-helper.php:1 261902 #: ../includes/class-helper.php:1306 899 903 msgid "Ecuador" 900 904 msgstr "" 901 905 902 #: ../includes/class-helper.php:1 262906 #: ../includes/class-helper.php:1307 903 907 msgid "Egypt" 904 908 msgstr "" 905 909 906 #: ../includes/class-helper.php:1 263910 #: ../includes/class-helper.php:1308 907 911 msgid "El Salvador" 908 912 msgstr "" 909 913 910 #: ../includes/class-helper.php:1 264914 #: ../includes/class-helper.php:1309 911 915 msgid "Equatorial Guinea" 912 916 msgstr "" 913 917 914 #: ../includes/class-helper.php:1 265918 #: ../includes/class-helper.php:1310 915 919 msgid "Eritrea" 916 920 msgstr "" 917 921 918 #: ../includes/class-helper.php:1 266922 #: ../includes/class-helper.php:1311 919 923 msgid "Estonia" 920 924 msgstr "" 921 925 922 #: ../includes/class-helper.php:1 267926 #: ../includes/class-helper.php:1312 923 927 msgid "Eswatini" 924 928 msgstr "" 925 929 926 #: ../includes/class-helper.php:1 268930 #: ../includes/class-helper.php:1313 927 931 msgid "Ethiopia" 928 932 msgstr "" 929 933 930 #: ../includes/class-helper.php:1 269934 #: ../includes/class-helper.php:1314 931 935 msgid "Falkland Islands" 932 936 msgstr "" 933 937 934 #: ../includes/class-helper.php:1 270938 #: ../includes/class-helper.php:1315 935 939 msgid "Faroe Islands" 936 940 msgstr "" 937 941 938 #: ../includes/class-helper.php:1 271942 #: ../includes/class-helper.php:1316 939 943 msgid "Fiji" 940 944 msgstr "" 941 945 942 #: ../includes/class-helper.php:1 272946 #: ../includes/class-helper.php:1317 943 947 msgid "Finland" 944 948 msgstr "" 945 949 946 #: ../includes/class-helper.php:1 273950 #: ../includes/class-helper.php:1318 947 951 msgid "France" 948 952 msgstr "" 949 953 950 #: ../includes/class-helper.php:1 274954 #: ../includes/class-helper.php:1319 951 955 msgid "French Guiana" 952 956 msgstr "" 953 957 954 #: ../includes/class-helper.php:1 275958 #: ../includes/class-helper.php:1320 955 959 msgid "French Polynesia" 956 960 msgstr "" 957 961 958 #: ../includes/class-helper.php:1 276962 #: ../includes/class-helper.php:1321 959 963 msgid "French Southern Territories" 960 964 msgstr "" 961 965 962 #: ../includes/class-helper.php:1 277966 #: ../includes/class-helper.php:1322 963 967 msgid "Gabon" 964 968 msgstr "" 965 969 966 #: ../includes/class-helper.php:1 278970 #: ../includes/class-helper.php:1323 967 971 msgid "Gambia" 968 972 msgstr "" 969 973 970 #: ../includes/class-helper.php:1 279974 #: ../includes/class-helper.php:1324 971 975 msgid "Georgia" 972 976 msgstr "" 973 977 974 #: ../includes/class-helper.php:1 280978 #: ../includes/class-helper.php:1325 975 979 msgid "Germany" 976 980 msgstr "" 977 981 978 #: ../includes/class-helper.php:1 281982 #: ../includes/class-helper.php:1326 979 983 msgid "Ghana" 980 984 msgstr "" 981 985 982 #: ../includes/class-helper.php:1 282986 #: ../includes/class-helper.php:1327 983 987 msgid "Gibraltar" 984 988 msgstr "" 985 989 986 #: ../includes/class-helper.php:1 283990 #: ../includes/class-helper.php:1328 987 991 msgid "Greece" 988 992 msgstr "" 989 993 990 #: ../includes/class-helper.php:1 284994 #: ../includes/class-helper.php:1329 991 995 msgid "Greenland" 992 996 msgstr "" 993 997 994 #: ../includes/class-helper.php:1 285998 #: ../includes/class-helper.php:1330 995 999 msgid "Grenada" 996 1000 msgstr "" 997 1001 998 #: ../includes/class-helper.php:1 2861002 #: ../includes/class-helper.php:1331 999 1003 msgid "Guadeloupe" 1000 1004 msgstr "" 1001 1005 1002 #: ../includes/class-helper.php:1 2871006 #: ../includes/class-helper.php:1332 1003 1007 msgid "Guam" 1004 1008 msgstr "" 1005 1009 1006 #: ../includes/class-helper.php:1 2881010 #: ../includes/class-helper.php:1333 1007 1011 msgid "Guatemala" 1008 1012 msgstr "" 1009 1013 1010 #: ../includes/class-helper.php:1 2891014 #: ../includes/class-helper.php:1334 1011 1015 msgid "Guernsey" 1012 1016 msgstr "" 1013 1017 1014 #: ../includes/class-helper.php:1 2901018 #: ../includes/class-helper.php:1335 1015 1019 msgid "Guinea" 1016 1020 msgstr "" 1017 1021 1018 #: ../includes/class-helper.php:1 2911022 #: ../includes/class-helper.php:1336 1019 1023 msgid "Guinea-Bissau" 1020 1024 msgstr "" 1021 1025 1022 #: ../includes/class-helper.php:1 2921026 #: ../includes/class-helper.php:1337 1023 1027 msgid "Guyana" 1024 1028 msgstr "" 1025 1029 1026 #: ../includes/class-helper.php:1 2931030 #: ../includes/class-helper.php:1338 1027 1031 msgid "Haiti" 1028 1032 msgstr "" 1029 1033 1030 #: ../includes/class-helper.php:1 2941034 #: ../includes/class-helper.php:1339 1031 1035 msgid "Heard Island and McDonald Islands" 1032 1036 msgstr "" 1033 1037 1034 #: ../includes/class-helper.php:1 2951038 #: ../includes/class-helper.php:1340 1035 1039 msgid "Holy See (Vatican)" 1036 1040 msgstr "" 1037 1041 1038 #: ../includes/class-helper.php:1 2961042 #: ../includes/class-helper.php:1341 1039 1043 msgid "Honduras" 1040 1044 msgstr "" 1041 1045 1042 #: ../includes/class-helper.php:1 2971046 #: ../includes/class-helper.php:1342 1043 1047 msgid "Hong Kong SAR China" 1044 1048 msgstr "" 1045 1049 1046 #: ../includes/class-helper.php:1 2981050 #: ../includes/class-helper.php:1343 1047 1051 msgid "Hungary" 1048 1052 msgstr "" 1049 1053 1050 #: ../includes/class-helper.php:1 2991054 #: ../includes/class-helper.php:1344 1051 1055 msgid "Iceland" 1052 1056 msgstr "" 1053 1057 1054 #: ../includes/class-helper.php:13 001058 #: ../includes/class-helper.php:1345 1055 1059 msgid "India" 1056 1060 msgstr "" 1057 1061 1058 #: ../includes/class-helper.php:13 011062 #: ../includes/class-helper.php:1346 1059 1063 msgid "Indonesia" 1060 1064 msgstr "" 1061 1065 1062 #: ../includes/class-helper.php:13 021066 #: ../includes/class-helper.php:1347 1063 1067 msgid "Iran" 1064 1068 msgstr "" 1065 1069 1066 #: ../includes/class-helper.php:13 031070 #: ../includes/class-helper.php:1348 1067 1071 msgid "Iraq" 1068 1072 msgstr "" 1069 1073 1070 #: ../includes/class-helper.php:13 041074 #: ../includes/class-helper.php:1349 1071 1075 msgid "Ireland" 1072 1076 msgstr "" 1073 1077 1074 #: ../includes/class-helper.php:13 051078 #: ../includes/class-helper.php:1350 1075 1079 msgid "Isle of Man" 1076 1080 msgstr "" 1077 1081 1078 #: ../includes/class-helper.php:13 061082 #: ../includes/class-helper.php:1351 1079 1083 msgid "Israel" 1080 1084 msgstr "" 1081 1085 1082 #: ../includes/class-helper.php:13 071086 #: ../includes/class-helper.php:1352 1083 1087 msgid "Italy" 1084 1088 msgstr "" 1085 1089 1086 #: ../includes/class-helper.php:13 081090 #: ../includes/class-helper.php:1353 1087 1091 msgid "Jamaica" 1088 1092 msgstr "" 1089 1093 1090 #: ../includes/class-helper.php:13 091094 #: ../includes/class-helper.php:1354 1091 1095 msgid "Japan" 1092 1096 msgstr "" 1093 1097 1094 #: ../includes/class-helper.php:13 101098 #: ../includes/class-helper.php:1355 1095 1099 msgid "Jersey" 1096 1100 msgstr "" 1097 1101 1098 #: ../includes/class-helper.php:13 111102 #: ../includes/class-helper.php:1356 1099 1103 msgid "Jordan" 1100 1104 msgstr "" 1101 1105 1102 #: ../includes/class-helper.php:13 121106 #: ../includes/class-helper.php:1357 1103 1107 msgid "Kazakhstan" 1104 1108 msgstr "" 1105 1109 1106 #: ../includes/class-helper.php:13 131110 #: ../includes/class-helper.php:1358 1107 1111 msgid "Kenya" 1108 1112 msgstr "" 1109 1113 1110 #: ../includes/class-helper.php:13 141114 #: ../includes/class-helper.php:1359 1111 1115 msgid "Kiribati" 1112 1116 msgstr "" 1113 1117 1114 #: ../includes/class-helper.php:13 151118 #: ../includes/class-helper.php:1360 1115 1119 msgid "North Korea" 1116 1120 msgstr "" 1117 1121 1118 #: ../includes/class-helper.php:13 161122 #: ../includes/class-helper.php:1361 1119 1123 msgid "South Korea" 1120 1124 msgstr "" 1121 1125 1122 #: ../includes/class-helper.php:13 171126 #: ../includes/class-helper.php:1362 1123 1127 msgid "Kuwait" 1124 1128 msgstr "" 1125 1129 1126 #: ../includes/class-helper.php:13 181130 #: ../includes/class-helper.php:1363 1127 1131 msgid "Kyrgyzstan" 1128 1132 msgstr "" 1129 1133 1130 #: ../includes/class-helper.php:13 191134 #: ../includes/class-helper.php:1364 1131 1135 msgid "Laos" 1132 1136 msgstr "" 1133 1137 1134 #: ../includes/class-helper.php:13 201138 #: ../includes/class-helper.php:1365 1135 1139 msgid "Latvia" 1136 1140 msgstr "" 1137 1141 1138 #: ../includes/class-helper.php:13 211142 #: ../includes/class-helper.php:1366 1139 1143 msgid "Lebanon" 1140 1144 msgstr "" 1141 1145 1142 #: ../includes/class-helper.php:13 221146 #: ../includes/class-helper.php:1367 1143 1147 msgid "Lesotho" 1144 1148 msgstr "" 1145 1149 1146 #: ../includes/class-helper.php:13 231150 #: ../includes/class-helper.php:1368 1147 1151 msgid "Liberia" 1148 1152 msgstr "" 1149 1153 1150 #: ../includes/class-helper.php:13 241154 #: ../includes/class-helper.php:1369 1151 1155 msgid "Libya" 1152 1156 msgstr "" 1153 1157 1154 #: ../includes/class-helper.php:13 251158 #: ../includes/class-helper.php:1370 1155 1159 msgid "Liechtenstein" 1156 1160 msgstr "" 1157 1161 1158 #: ../includes/class-helper.php:13 261162 #: ../includes/class-helper.php:1371 1159 1163 msgid "Lithuania" 1160 1164 msgstr "" 1161 1165 1162 #: ../includes/class-helper.php:13 271166 #: ../includes/class-helper.php:1372 1163 1167 msgid "Luxembourg" 1164 1168 msgstr "" 1165 1169 1166 #: ../includes/class-helper.php:13 281170 #: ../includes/class-helper.php:1373 1167 1171 msgid "Macau SAR China" 1168 1172 msgstr "" 1169 1173 1170 #: ../includes/class-helper.php:13 291174 #: ../includes/class-helper.php:1374 1171 1175 msgid "Madagascar" 1172 1176 msgstr "" 1173 1177 1174 #: ../includes/class-helper.php:13 301178 #: ../includes/class-helper.php:1375 1175 1179 msgid "Malawi" 1176 1180 msgstr "" 1177 1181 1178 #: ../includes/class-helper.php:13 311182 #: ../includes/class-helper.php:1376 1179 1183 msgid "Malaysia" 1180 1184 msgstr "" 1181 1185 1182 #: ../includes/class-helper.php:13 321186 #: ../includes/class-helper.php:1377 1183 1187 msgid "Maldives" 1184 1188 msgstr "" 1185 1189 1186 #: ../includes/class-helper.php:13 331190 #: ../includes/class-helper.php:1378 1187 1191 msgid "Mali" 1188 1192 msgstr "" 1189 1193 1190 #: ../includes/class-helper.php:13 341194 #: ../includes/class-helper.php:1379 1191 1195 msgid "Malta" 1192 1196 msgstr "" 1193 1197 1194 #: ../includes/class-helper.php:13 351198 #: ../includes/class-helper.php:1380 1195 1199 msgid "Marshall Islands" 1196 1200 msgstr "" 1197 1201 1198 #: ../includes/class-helper.php:13 361202 #: ../includes/class-helper.php:1381 1199 1203 msgid "Martinique" 1200 1204 msgstr "" 1201 1205 1202 #: ../includes/class-helper.php:13 371206 #: ../includes/class-helper.php:1382 1203 1207 msgid "Mauritania" 1204 1208 msgstr "" 1205 1209 1206 #: ../includes/class-helper.php:13 381210 #: ../includes/class-helper.php:1383 1207 1211 msgid "Mauritius" 1208 1212 msgstr "" 1209 1213 1210 #: ../includes/class-helper.php:13 391214 #: ../includes/class-helper.php:1384 1211 1215 msgid "Mayotte" 1212 1216 msgstr "" 1213 1217 1214 #: ../includes/class-helper.php:13 401218 #: ../includes/class-helper.php:1385 1215 1219 msgid "Mexico" 1216 1220 msgstr "" 1217 1221 1218 #: ../includes/class-helper.php:13 411222 #: ../includes/class-helper.php:1386 1219 1223 msgid "Micronesia" 1220 1224 msgstr "" 1221 1225 1222 #: ../includes/class-helper.php:13 421226 #: ../includes/class-helper.php:1387 1223 1227 msgid "Moldova" 1224 1228 msgstr "" 1225 1229 1226 #: ../includes/class-helper.php:13 431230 #: ../includes/class-helper.php:1388 1227 1231 msgid "Monaco" 1228 1232 msgstr "" 1229 1233 1230 #: ../includes/class-helper.php:13 441234 #: ../includes/class-helper.php:1389 1231 1235 msgid "Mongolia" 1232 1236 msgstr "" 1233 1237 1234 #: ../includes/class-helper.php:13 451238 #: ../includes/class-helper.php:1390 1235 1239 msgid "Montenegro" 1236 1240 msgstr "" 1237 1241 1238 #: ../includes/class-helper.php:13 461242 #: ../includes/class-helper.php:1391 1239 1243 msgid "Montserrat" 1240 1244 msgstr "" 1241 1245 1242 #: ../includes/class-helper.php:13 471246 #: ../includes/class-helper.php:1392 1243 1247 msgid "Morocco" 1244 1248 msgstr "" 1245 1249 1246 #: ../includes/class-helper.php:13 481250 #: ../includes/class-helper.php:1393 1247 1251 msgid "Mozambique" 1248 1252 msgstr "" 1249 1253 1250 #: ../includes/class-helper.php:13 491254 #: ../includes/class-helper.php:1394 1251 1255 msgid "Myanmar [Burma]" 1252 1256 msgstr "" 1253 1257 1254 #: ../includes/class-helper.php:13 501258 #: ../includes/class-helper.php:1395 1255 1259 msgid "Namibia" 1256 1260 msgstr "" 1257 1261 1258 #: ../includes/class-helper.php:13 511262 #: ../includes/class-helper.php:1396 1259 1263 msgid "Nauru" 1260 1264 msgstr "" 1261 1265 1262 #: ../includes/class-helper.php:13 521266 #: ../includes/class-helper.php:1397 1263 1267 msgid "Nepal" 1264 1268 msgstr "" 1265 1269 1266 #: ../includes/class-helper.php:13 531270 #: ../includes/class-helper.php:1398 1267 1271 msgid "Netherlands" 1268 1272 msgstr "" 1269 1273 1270 #: ../includes/class-helper.php:13 541274 #: ../includes/class-helper.php:1399 1271 1275 msgid "New Caledonia" 1272 1276 msgstr "" 1273 1277 1274 #: ../includes/class-helper.php:1 3551278 #: ../includes/class-helper.php:1400 1275 1279 msgid "New Zealand" 1276 1280 msgstr "" 1277 1281 1278 #: ../includes/class-helper.php:1 3561282 #: ../includes/class-helper.php:1401 1279 1283 msgid "Nicaragua" 1280 1284 msgstr "" 1281 1285 1282 #: ../includes/class-helper.php:1 3571286 #: ../includes/class-helper.php:1402 1283 1287 msgid "Niger" 1284 1288 msgstr "" 1285 1289 1286 #: ../includes/class-helper.php:1 3581290 #: ../includes/class-helper.php:1403 1287 1291 msgid "Nigeria" 1288 1292 msgstr "" 1289 1293 1290 #: ../includes/class-helper.php:1 3591294 #: ../includes/class-helper.php:1404 1291 1295 msgid "Niue" 1292 1296 msgstr "" 1293 1297 1294 #: ../includes/class-helper.php:1 3601298 #: ../includes/class-helper.php:1405 1295 1299 msgid "Norfolk Island" 1296 1300 msgstr "" 1297 1301 1298 #: ../includes/class-helper.php:1 3611302 #: ../includes/class-helper.php:1406 1299 1303 msgid "North Macedonia" 1300 1304 msgstr "" 1301 1305 1302 #: ../includes/class-helper.php:1 3621306 #: ../includes/class-helper.php:1407 1303 1307 msgid "Northern Mariana Islands" 1304 1308 msgstr "" 1305 1309 1306 #: ../includes/class-helper.php:1 3631310 #: ../includes/class-helper.php:1408 1307 1311 msgid "Norway" 1308 1312 msgstr "" 1309 1313 1310 #: ../includes/class-helper.php:1 3641314 #: ../includes/class-helper.php:1409 1311 1315 msgid "Oman" 1312 1316 msgstr "" 1313 1317 1314 #: ../includes/class-helper.php:1 3651318 #: ../includes/class-helper.php:1410 1315 1319 msgid "Pakistan" 1316 1320 msgstr "" 1317 1321 1318 #: ../includes/class-helper.php:1 3661322 #: ../includes/class-helper.php:1411 1319 1323 msgid "Palau" 1320 1324 msgstr "" 1321 1325 1322 #: ../includes/class-helper.php:1 3671326 #: ../includes/class-helper.php:1412 1323 1327 msgid "Palestinian Territories" 1324 1328 msgstr "" 1325 1329 1326 #: ../includes/class-helper.php:1 3681330 #: ../includes/class-helper.php:1413 1327 1331 msgid "Panama" 1328 1332 msgstr "" 1329 1333 1330 #: ../includes/class-helper.php:1 3691334 #: ../includes/class-helper.php:1414 1331 1335 msgid "Papua New Guinea" 1332 1336 msgstr "" 1333 1337 1334 #: ../includes/class-helper.php:1 3701338 #: ../includes/class-helper.php:1415 1335 1339 msgid "Paraguay" 1336 1340 msgstr "" 1337 1341 1338 #: ../includes/class-helper.php:1 3711342 #: ../includes/class-helper.php:1416 1339 1343 msgid "Peru" 1340 1344 msgstr "" 1341 1345 1342 #: ../includes/class-helper.php:1 3721346 #: ../includes/class-helper.php:1417 1343 1347 msgid "Philippines" 1344 1348 msgstr "" 1345 1349 1346 #: ../includes/class-helper.php:1 3731350 #: ../includes/class-helper.php:1418 1347 1351 msgid "Pitcairn Islands" 1348 1352 msgstr "" 1349 1353 1350 #: ../includes/class-helper.php:1 3741354 #: ../includes/class-helper.php:1419 1351 1355 msgid "Poland" 1352 1356 msgstr "" 1353 1357 1354 #: ../includes/class-helper.php:1 3751358 #: ../includes/class-helper.php:1420 1355 1359 msgid "Portugal" 1356 1360 msgstr "" 1357 1361 1358 #: ../includes/class-helper.php:1 3761362 #: ../includes/class-helper.php:1421 1359 1363 msgid "Puerto Rico" 1360 1364 msgstr "" 1361 1365 1362 #: ../includes/class-helper.php:1 3771366 #: ../includes/class-helper.php:1422 1363 1367 msgid "Qatar" 1364 1368 msgstr "" 1365 1369 1366 #: ../includes/class-helper.php:1 3781370 #: ../includes/class-helper.php:1423 1367 1371 msgid "Reunion" 1368 1372 msgstr "" 1369 1373 1370 #: ../includes/class-helper.php:1 3791374 #: ../includes/class-helper.php:1424 1371 1375 msgid "Romania" 1372 1376 msgstr "" 1373 1377 1374 #: ../includes/class-helper.php:1 3801378 #: ../includes/class-helper.php:1425 1375 1379 msgid "Russia" 1376 1380 msgstr "" 1377 1381 1378 #: ../includes/class-helper.php:1 3811382 #: ../includes/class-helper.php:1426 1379 1383 msgid "Rwanda" 1380 1384 msgstr "" 1381 1385 1382 #: ../includes/class-helper.php:1 3821386 #: ../includes/class-helper.php:1427 1383 1387 msgid "Saint Barthélemy" 1384 1388 msgstr "" 1385 1389 1386 #: ../includes/class-helper.php:1 3831390 #: ../includes/class-helper.php:1428 1387 1391 msgid "Saint Helena" 1388 1392 msgstr "" 1389 1393 1390 #: ../includes/class-helper.php:1 3841394 #: ../includes/class-helper.php:1429 1391 1395 msgid "Saint Kitts and Nevis" 1392 1396 msgstr "" 1393 1397 1394 #: ../includes/class-helper.php:1 3851398 #: ../includes/class-helper.php:1430 1395 1399 msgid "Saint Lucia" 1396 1400 msgstr "" 1397 1401 1398 #: ../includes/class-helper.php:1 3861402 #: ../includes/class-helper.php:1431 1399 1403 msgid "Saint Martin" 1400 1404 msgstr "" 1401 1405 1402 #: ../includes/class-helper.php:1 3871406 #: ../includes/class-helper.php:1432 1403 1407 msgid "Saint Pierre and Miquelon" 1404 1408 msgstr "" 1405 1409 1406 #: ../includes/class-helper.php:1 3881410 #: ../includes/class-helper.php:1433 1407 1411 msgid "Saint Vincent and the Grenadines" 1408 1412 msgstr "" 1409 1413 1410 #: ../includes/class-helper.php:1 3891414 #: ../includes/class-helper.php:1434 1411 1415 msgid "Samoa" 1412 1416 msgstr "" 1413 1417 1414 #: ../includes/class-helper.php:1 3901418 #: ../includes/class-helper.php:1435 1415 1419 msgid "San Marino" 1416 1420 msgstr "" 1417 1421 1418 #: ../includes/class-helper.php:1 3911422 #: ../includes/class-helper.php:1436 1419 1423 msgid "Sao Tome and Principe" 1420 1424 msgstr "" 1421 1425 1422 #: ../includes/class-helper.php:1 3921426 #: ../includes/class-helper.php:1437 1423 1427 msgid "Saudi Arabia" 1424 1428 msgstr "" 1425 1429 1426 #: ../includes/class-helper.php:1 3931430 #: ../includes/class-helper.php:1438 1427 1431 msgid "Senegal" 1428 1432 msgstr "" 1429 1433 1430 #: ../includes/class-helper.php:1 3941434 #: ../includes/class-helper.php:1439 1431 1435 msgid "Serbia" 1432 1436 msgstr "" 1433 1437 1434 #: ../includes/class-helper.php:1 3951438 #: ../includes/class-helper.php:1440 1435 1439 msgid "Seychelles" 1436 1440 msgstr "" 1437 1441 1438 #: ../includes/class-helper.php:1 3961442 #: ../includes/class-helper.php:1441 1439 1443 msgid "Sierra Leone" 1440 1444 msgstr "" 1441 1445 1442 #: ../includes/class-helper.php:1 3971446 #: ../includes/class-helper.php:1442 1443 1447 msgid "Singapore" 1444 1448 msgstr "" 1445 1449 1446 #: ../includes/class-helper.php:1 3981450 #: ../includes/class-helper.php:1443 1447 1451 msgid "Sint Maarten" 1448 1452 msgstr "" 1449 1453 1450 #: ../includes/class-helper.php:1 3991454 #: ../includes/class-helper.php:1444 1451 1455 msgid "Slovakia" 1452 1456 msgstr "" 1453 1457 1454 #: ../includes/class-helper.php:14 001458 #: ../includes/class-helper.php:1445 1455 1459 msgid "Slovenia" 1456 1460 msgstr "" 1457 1461 1458 #: ../includes/class-helper.php:14 011462 #: ../includes/class-helper.php:1446 1459 1463 msgid "Solomon Islands" 1460 1464 msgstr "" 1461 1465 1462 #: ../includes/class-helper.php:14 021466 #: ../includes/class-helper.php:1447 1463 1467 msgid "Somalia" 1464 1468 msgstr "" 1465 1469 1466 #: ../includes/class-helper.php:14 031470 #: ../includes/class-helper.php:1448 1467 1471 msgid "South Africa" 1468 1472 msgstr "" 1469 1473 1470 #: ../includes/class-helper.php:14 041474 #: ../includes/class-helper.php:1449 1471 1475 msgid "South Sudan" 1472 1476 msgstr "" 1473 1477 1474 #: ../includes/class-helper.php:14 051478 #: ../includes/class-helper.php:1450 1475 1479 msgid "Spain" 1476 1480 msgstr "" 1477 1481 1478 #: ../includes/class-helper.php:14 061482 #: ../includes/class-helper.php:1451 1479 1483 msgid "Sri Lanka" 1480 1484 msgstr "" 1481 1485 1482 #: ../includes/class-helper.php:14 071486 #: ../includes/class-helper.php:1452 1483 1487 msgid "Sudan" 1484 1488 msgstr "" 1485 1489 1486 #: ../includes/class-helper.php:14 081490 #: ../includes/class-helper.php:1453 1487 1491 msgid "Suriname" 1488 1492 msgstr "" 1489 1493 1490 #: ../includes/class-helper.php:14 091494 #: ../includes/class-helper.php:1454 1491 1495 msgid "Svalbard and Jan Mayen" 1492 1496 msgstr "" 1493 1497 1494 #: ../includes/class-helper.php:14 101498 #: ../includes/class-helper.php:1455 1495 1499 msgid "Sweden" 1496 1500 msgstr "" 1497 1501 1498 #: ../includes/class-helper.php:14 111502 #: ../includes/class-helper.php:1456 1499 1503 msgid "Switzerland" 1500 1504 msgstr "" 1501 1505 1502 #: ../includes/class-helper.php:14 121506 #: ../includes/class-helper.php:1457 1503 1507 msgid "Syria" 1504 1508 msgstr "" 1505 1509 1506 #: ../includes/class-helper.php:14 131510 #: ../includes/class-helper.php:1458 1507 1511 msgid "Taiwan" 1508 1512 msgstr "" 1509 1513 1510 #: ../includes/class-helper.php:14 141514 #: ../includes/class-helper.php:1459 1511 1515 msgid "Tajikistan" 1512 1516 msgstr "" 1513 1517 1514 #: ../includes/class-helper.php:14 151518 #: ../includes/class-helper.php:1460 1515 1519 msgid "Tanzania" 1516 1520 msgstr "" 1517 1521 1518 #: ../includes/class-helper.php:14 161522 #: ../includes/class-helper.php:1461 1519 1523 msgid "Thailand" 1520 1524 msgstr "" 1521 1525 1522 #: ../includes/class-helper.php:14 171526 #: ../includes/class-helper.php:1462 1523 1527 msgid "Timor-Leste" 1524 1528 msgstr "" 1525 1529 1526 #: ../includes/class-helper.php:14 181530 #: ../includes/class-helper.php:1463 1527 1531 msgid "Togo" 1528 1532 msgstr "" 1529 1533 1530 #: ../includes/class-helper.php:14 191534 #: ../includes/class-helper.php:1464 1531 1535 msgid "Tokelau" 1532 1536 msgstr "" 1533 1537 1534 #: ../includes/class-helper.php:14 201538 #: ../includes/class-helper.php:1465 1535 1539 msgid "Tonga" 1536 1540 msgstr "" 1537 1541 1538 #: ../includes/class-helper.php:14 211542 #: ../includes/class-helper.php:1466 1539 1543 msgid "Trinidad and Tobago" 1540 1544 msgstr "" 1541 1545 1542 #: ../includes/class-helper.php:14 221546 #: ../includes/class-helper.php:1467 1543 1547 msgid "Tunisia" 1544 1548 msgstr "" 1545 1549 1546 #: ../includes/class-helper.php:14 231550 #: ../includes/class-helper.php:1468 1547 1551 msgid "Turkey" 1548 1552 msgstr "" 1549 1553 1550 #: ../includes/class-helper.php:14 241554 #: ../includes/class-helper.php:1469 1551 1555 msgid "Turkmenistan" 1552 1556 msgstr "" 1553 1557 1554 #: ../includes/class-helper.php:14 251558 #: ../includes/class-helper.php:1470 1555 1559 msgid "Turks and Caicos Islands" 1556 1560 msgstr "" 1557 1561 1558 #: ../includes/class-helper.php:14 261562 #: ../includes/class-helper.php:1471 1559 1563 msgid "Tuvalu" 1560 1564 msgstr "" 1561 1565 1562 #: ../includes/class-helper.php:14 271566 #: ../includes/class-helper.php:1472 1563 1567 msgid "Uganda" 1564 1568 msgstr "" 1565 1569 1566 #: ../includes/class-helper.php:14 281570 #: ../includes/class-helper.php:1473 1567 1571 msgid "Ukraine" 1568 1572 msgstr "" 1569 1573 1570 #: ../includes/class-helper.php:14 291574 #: ../includes/class-helper.php:1474 1571 1575 msgid "United Arab Emirates" 1572 1576 msgstr "" 1573 1577 1574 #: ../includes/class-helper.php:14 301578 #: ../includes/class-helper.php:1475 1575 1579 msgid "United Kingdom" 1576 1580 msgstr "" 1577 1581 1578 #: ../includes/class-helper.php:14 311582 #: ../includes/class-helper.php:1476 1579 1583 msgid "United States" 1580 1584 msgstr "" 1581 1585 1582 #: ../includes/class-helper.php:14 321586 #: ../includes/class-helper.php:1477 1583 1587 msgid "US Minor Outlying Islands" 1584 1588 msgstr "" 1585 1589 1586 #: ../includes/class-helper.php:14 331590 #: ../includes/class-helper.php:1478 1587 1591 msgid "Uruguay" 1588 1592 msgstr "" 1589 1593 1590 #: ../includes/class-helper.php:14 341594 #: ../includes/class-helper.php:1479 1591 1595 msgid "Uzbekistan" 1592 1596 msgstr "" 1593 1597 1594 #: ../includes/class-helper.php:14 351598 #: ../includes/class-helper.php:1480 1595 1599 msgid "Vanuatu" 1596 1600 msgstr "" 1597 1601 1598 #: ../includes/class-helper.php:14 361602 #: ../includes/class-helper.php:1481 1599 1603 msgid "Venezuela" 1600 1604 msgstr "" 1601 1605 1602 #: ../includes/class-helper.php:14 371606 #: ../includes/class-helper.php:1482 1603 1607 msgid "Vietnam" 1604 1608 msgstr "" 1605 1609 1606 #: ../includes/class-helper.php:14 381610 #: ../includes/class-helper.php:1483 1607 1611 msgid "Virgin Islands (US)" 1608 1612 msgstr "" 1609 1613 1610 #: ../includes/class-helper.php:14 391614 #: ../includes/class-helper.php:1484 1611 1615 msgid "Wallis and Futuna" 1612 1616 msgstr "" 1613 1617 1614 #: ../includes/class-helper.php:14 401618 #: ../includes/class-helper.php:1485 1615 1619 msgid "Western Sahara" 1616 1620 msgstr "" 1617 1621 1618 #: ../includes/class-helper.php:14 411622 #: ../includes/class-helper.php:1486 1619 1623 msgid "Yemen" 1620 1624 msgstr "" 1621 1625 1622 #: ../includes/class-helper.php:14 421626 #: ../includes/class-helper.php:1487 1623 1627 msgid "Zambia" 1624 1628 msgstr "" 1625 1629 1626 #: ../includes/class-helper.php:14 431630 #: ../includes/class-helper.php:1488 1627 1631 msgid "Zimbabwe" 1632 msgstr "" 1633 1634 #: ../includes/class-helper.php:1518 1635 msgctxt "Person name suffix" 1636 msgid "jr" 1637 msgstr "" 1638 1639 #: ../includes/class-helper.php:1519 1640 msgctxt "Person name suffix" 1641 msgid "sr" 1642 msgstr "" 1643 1644 #: ../includes/class-helper.php:1520 1645 msgctxt "Person name suffix" 1646 msgid "ii" 1647 msgstr "" 1648 1649 #: ../includes/class-helper.php:1521 1650 msgctxt "Person name suffix" 1651 msgid "iii" 1652 msgstr "" 1653 1654 #: ../includes/class-helper.php:1522 1655 msgctxt "Person name suffix" 1656 msgid "iv" 1657 msgstr "" 1658 1659 #: ../includes/class-helper.php:1523 1660 msgctxt "Person name suffix" 1661 msgid "v" 1662 msgstr "" 1663 1664 #: ../includes/class-helper.php:1524 1665 msgctxt "Person name suffix" 1666 msgid "vi" 1667 msgstr "" 1668 1669 #: ../includes/class-helper.php:1525 1670 msgctxt "Person name suffix" 1671 msgid "vii" 1672 msgstr "" 1673 1674 #: ../includes/class-helper.php:1526 1675 msgctxt "Person name suffix" 1676 msgid "1st" 1677 msgstr "" 1678 1679 #: ../includes/class-helper.php:1527 1680 msgctxt "Person name suffix" 1681 msgid "2nd" 1682 msgstr "" 1683 1684 #: ../includes/class-helper.php:1528 1685 msgctxt "Person name suffix" 1686 msgid "3rd" 1687 msgstr "" 1688 1689 #: ../includes/class-helper.php:1529 1690 msgctxt "Person name suffix" 1691 msgid "4th" 1692 msgstr "" 1693 1694 #: ../includes/class-helper.php:1530 1695 msgctxt "Person name suffix" 1696 msgid "5th" 1697 msgstr "" 1698 1699 #: ../includes/class-helper.php:1531 1700 msgctxt "Person name suffix" 1701 msgid "6th" 1702 msgstr "" 1703 1704 #: ../includes/class-helper.php:1532 1705 msgctxt "Person name suffix" 1706 msgid "7th" 1707 msgstr "" 1708 1709 #: ../includes/class-helper.php:1568 1710 msgctxt "word to finalize a list of allowed file types, ie: \"docx, and pdf\"" 1711 msgid "and" 1628 1712 msgstr "" 1629 1713 … … 1686 1770 msgstr "" 1687 1771 1688 #: ../includes/class-job-listing.php:321, ../includes/class-template-support.php:137 8, ../templates/parts/jobs-search-field-keyword.php:711772 #: ../includes/class-job-listing.php:321, ../includes/class-template-support.php:1379, ../templates/parts/jobs-search-field-keyword.php:71 1689 1773 msgid "Search Jobs" 1690 1774 msgstr "" … … 1769 1853 msgstr "" 1770 1854 1771 #: ../includes/class-job-listing.php:830 1855 #: ../includes/class-job-listing.php:753 1856 msgid "Date Published (newest first)" 1857 msgstr "" 1858 1859 #: ../includes/class-job-listing.php:758 1860 msgid "Closing Date (newest first)" 1861 msgstr "" 1862 1863 #: ../includes/class-job-listing.php:764 1864 msgid "Job Title (a-z)" 1865 msgstr "" 1866 1867 #: ../includes/class-job-listing.php:769 1868 msgid "Source ID (ascending)" 1869 msgstr "" 1870 1871 #: ../includes/class-job-listing.php:775 1872 msgid "Random" 1873 msgstr "" 1874 1875 #: ../includes/class-job-listing.php:795 1876 msgid "Salary (highest first)" 1877 msgstr "" 1878 1879 #: ../includes/class-job-listing.php:905 1772 1880 msgid "Bullhorn ID" 1773 1881 msgstr "" 1774 1882 1775 #: ../includes/class-job-listing.php:9 221883 #: ../includes/class-job-listing.php:997 1776 1884 msgid "Edit the Job in Bullhorn" 1777 1885 msgstr "" 1778 1886 1779 #: ../includes/class-job-listing.php: 9311887 #: ../includes/class-job-listing.php:1006 1780 1888 msgid "Sync this Job" 1781 1889 msgstr "" 1782 1890 1783 #: ../includes/class-job-listing.php: 9611891 #: ../includes/class-job-listing.php:1036 1784 1892 msgid "Sync Jobs Now" 1785 1893 msgstr "" 1786 1894 1787 #: ../includes/class-job-listing.php:12 02, ../includes/class-job-taxonomies.php:3291895 #: ../includes/class-job-listing.php:1277, ../includes/class-job-taxonomies.php:457 1788 1896 msgid "This feed is unavailable." 1789 1897 msgstr "" 1790 1898 1791 #: ../includes/class-job-listing.php:12 001899 #: ../includes/class-job-listing.php:1275 1792 1900 msgid "This feed is disabled by Matador Jobs for Job Listing posts." 1793 1901 msgstr "" 1794 1902 1903 #: ../includes/class-job-taxonomies.php:54 1904 msgctxt "Job Category Singular Name." 1905 msgid "category" 1906 msgstr "" 1907 1908 #: ../includes/class-job-taxonomies.php:55 1909 msgctxt "Job Category Plural Name." 1910 msgid "categories" 1911 msgstr "" 1912 1913 #: ../includes/class-job-taxonomies.php:71 1914 msgctxt "Job Location Singular Name." 1915 msgid "location" 1916 msgstr "" 1917 1918 #: ../includes/class-job-taxonomies.php:72 1919 msgctxt "Job Location Plural Name." 1920 msgid "locations" 1921 msgstr "" 1922 1923 #: ../includes/class-job-taxonomies.php:81 1924 msgctxt "Job Type Singular Name." 1925 msgid "type" 1926 msgstr "" 1927 1928 #: ../includes/class-job-taxonomies.php:82 1929 msgctxt "Job Type Plural Name." 1930 msgid "types" 1931 msgstr "" 1932 1795 1933 #. translators: Placeholder for Uppercased Taxonomy Name (Plural) 1796 #: ../includes/class-job-taxonomies.php: 1451934 #: ../includes/class-job-taxonomies.php:273 1797 1935 msgctxt "Uppercased Taxonomy Name Plural, eg: \"Job Categories\"" 1798 1936 msgid "Job %1$s" … … 1800 1938 1801 1939 #. translators: Placeholder for Uppercased Taxonomy Name (Singular) 1802 #: ../includes/class-job-taxonomies.php: 1471940 #: ../includes/class-job-taxonomies.php:275 1803 1941 msgctxt "Uppercased Taxonomy Name Singular, eg: \"Job Category\"" 1804 1942 msgid "Job %1$s" … … 1806 1944 1807 1945 #. translators: Placeholder for Uppercased Taxonomy Name (Plural) 1808 #: ../includes/class-job-taxonomies.php: 1491946 #: ../includes/class-job-taxonomies.php:277 1809 1947 msgid "Job %1$s" 1810 1948 msgstr "" 1811 1949 1812 1950 #. translators: Placeholder for Uppercased Taxonomy Name (Plural) 1813 #: ../includes/class-job-taxonomies.php: 1511951 #: ../includes/class-job-taxonomies.php:279 1814 1952 msgid "All %1$s" 1815 1953 msgstr "" 1816 1954 1817 1955 #. translators: Placeholder for Uppercased Taxonomy Name (Singular) 1818 #: ../includes/class-job-taxonomies.php: 1531956 #: ../includes/class-job-taxonomies.php:281 1819 1957 msgid "Edit Job %1$s" 1820 1958 msgstr "" 1821 1959 1822 1960 #. translators: Placeholder for Uppercased Taxonomy Name (Singular) 1823 #: ../includes/class-job-taxonomies.php: 1551961 #: ../includes/class-job-taxonomies.php:283 1824 1962 msgid "View Job %1$s" 1825 1963 msgstr "" 1826 1964 1827 1965 #. translators: Placeholder for Uppercased Taxonomy Name (Singular) 1828 #: ../includes/class-job-taxonomies.php: 1571966 #: ../includes/class-job-taxonomies.php:285 1829 1967 msgid "Update Job %1$s" 1830 1968 msgstr "" 1831 1969 1832 1970 #. translators: Placeholder for Uppercased Taxonomy Name (Singular) 1833 #: ../includes/class-job-taxonomies.php: 1591971 #: ../includes/class-job-taxonomies.php:287 1834 1972 msgid "Add New %1$s" 1835 1973 msgstr "" 1836 1974 1837 1975 #. translators: Placeholder for Uppercased Taxonomy Name (Singular) 1838 #: ../includes/class-job-taxonomies.php: 1611976 #: ../includes/class-job-taxonomies.php:289 1839 1977 msgid "New %1$s Name" 1840 1978 msgstr "" 1841 1979 1842 #: ../includes/class-job-taxonomies.php: 1621980 #: ../includes/class-job-taxonomies.php:290 1843 1981 msgid "Separate each with commas" 1844 1982 msgstr "" 1845 1983 1846 #: ../includes/class-job-taxonomies.php: 1631984 #: ../includes/class-job-taxonomies.php:291 1847 1985 msgid "Add or Remove" 1848 1986 msgstr "" 1849 1987 1850 1988 #. translators: Placeholder for Taxonomy Name (Plural) 1851 #: ../includes/class-job-taxonomies.php: 1651989 #: ../includes/class-job-taxonomies.php:293 1852 1990 msgid "Choose from the most common %1$s" 1853 1991 msgstr "" 1854 1992 1855 #: ../includes/class-job-taxonomies.php: 1661993 #: ../includes/class-job-taxonomies.php:294 1856 1994 msgid "Popular" 1857 1995 msgstr "" 1858 1996 1859 #: ../includes/class-job-taxonomies.php: 167, ../templates/parts/jobs-search-field-submit.php:471997 #: ../includes/class-job-taxonomies.php:295, ../templates/parts/jobs-search-field-submit.php:47 1860 1998 msgid "Search" 1861 1999 msgstr "" 1862 2000 1863 2001 #. translators: Placeholder for Uppercased Taxonomy Name (Plural) 1864 #: ../includes/class-job-taxonomies.php: 1692002 #: ../includes/class-job-taxonomies.php:297 1865 2003 msgid "No %1$s Found" 1866 2004 msgstr "" 1867 2005 1868 #: ../includes/class-job-taxonomies.php: 3272006 #: ../includes/class-job-taxonomies.php:455 1869 2007 msgid "This feed is disabled by Matador Jobs for Job Taxonomy archives." 1870 2008 msgstr "" 1871 2009 1872 2010 #. translators: Placeholder for name of Taxonomy (already translated) 1873 #: ../includes/class-job-taxonomies.php: 4252011 #: ../includes/class-job-taxonomies.php:546 1874 2012 msgid "Recount %s" 1875 2013 msgstr "" … … 1880 2018 1881 2019 #. translators: Placeholder is for the unexpected method name 1882 #: ../includes/class-scheduled-events.php:2 392020 #: ../includes/class-scheduled-events.php:240 1883 2021 msgid "Invalid method (%s) called on jobs_sync()" 1884 2022 msgstr "" 1885 2023 1886 #: ../includes/class-scheduled-events.php:23 62024 #: ../includes/class-scheduled-events.php:237 1887 2025 msgid "Automatic Sync Starting" 1888 2026 msgstr "" 1889 2027 1890 #: ../includes/class-scheduled-events.php:23 42028 #: ../includes/class-scheduled-events.php:235 1891 2029 msgid "Manual Sync Starting" 1892 2030 msgstr "" 1893 2031 1894 #: ../includes/class-scheduled-events.php:2 592032 #: ../includes/class-scheduled-events.php:260 1895 2033 msgid "Bullhorn Automatic Jobs Sync failed. See log for details." 1896 2034 msgstr "" 1897 2035 1898 #: ../includes/class-scheduled-events.php:3 762036 #: ../includes/class-scheduled-events.php:384 1899 2037 msgid "Manual Application Sync Start" 1900 2038 msgstr "" 1901 2039 1902 #: ../includes/class-scheduled-events.php:30 42040 #: ../includes/class-scheduled-events.php:305 1903 2041 msgid "Batch Application Sync Start" 1904 2042 msgstr "" 1905 2043 1906 #: ../includes/class-scheduled-events.php:3 722044 #: ../includes/class-scheduled-events.php:380 1907 2045 msgid "No applications found to sync" 1908 2046 msgstr "" 1909 2047 1910 2048 #. translators: placeholder is the wpid of the post type "application" to be synced 1911 #: ../includes/class-scheduled-events.php:38 02049 #: ../includes/class-scheduled-events.php:388 1912 2050 msgid "Syncing local application with ID %s" 1913 2051 msgstr "" 1914 2052 1915 #: ../includes/class-scheduled-events.php:4 052053 #: ../includes/class-scheduled-events.php:413 1916 2054 msgid "Every Ten Minutes (for Matador Jobs)" 1917 2055 msgstr "" … … 2000 2138 msgstr "" 2001 2139 2002 #: ../includes/class-shortcodes.php:165, ../includes/class-shortcodes.php:29 2, ../includes/admin/class-settings-fields.php:5922140 #: ../includes/class-shortcodes.php:165, ../includes/class-shortcodes.php:294, ../includes/admin/class-settings-fields.php:592 2003 2141 msgid "Job Title" 2004 2142 msgstr "" 2005 2143 2006 #: ../includes/class-shortcodes.php:43 02144 #: ../includes/class-shortcodes.php:433 2007 2145 msgid "You cannot use the [matador_categories] shortcode because the Category taxonomy is not available." 2008 2146 msgstr "" 2009 2147 2010 #: ../includes/class-shortcodes.php:45 12148 #: ../includes/class-shortcodes.php:454 2011 2149 msgid "You cannot use the [matador_locations] shortcode because the Location taxonomy is not available." 2012 2150 msgstr "" 2013 2151 2014 #: ../includes/class-shortcodes.php:47 62152 #: ../includes/class-shortcodes.php:479 2015 2153 msgid "You cannot use the [matador_types] shortcode because the Type taxonomy is not available." 2016 2154 msgstr "" 2017 2155 2018 #: ../includes/class-shortcodes.php:52 62156 #: ../includes/class-shortcodes.php:529 2019 2157 msgid "You cannot use the [matador_application] shortcode if you've disabled Application Processing." 2020 2158 msgstr "" … … 2058 2196 msgstr "" 2059 2197 2060 #: ../includes/class-template-support.php:67 82198 #: ../includes/class-template-support.php:679 2061 2199 msgctxt "Label for salary string in job info block" 2062 2200 msgid "Salary" 2063 2201 msgstr "" 2064 2202 2065 #: ../includes/class-template-support.php:88 12203 #: ../includes/class-template-support.php:882 2066 2204 msgid "The matador_{get}_the_general_application_url() functions will produce no output until you've set the General Application page in settings." 2067 2205 msgstr "" 2068 2206 2069 #: ../includes/class-template-support.php:9 092207 #: ../includes/class-template-support.php:910 2070 2208 msgid "Functions referencing the General Application will produce no output until you've set the General Application page in settings." 2071 2209 msgstr "" 2072 2210 2073 #: ../includes/class-template-support.php:98 82211 #: ../includes/class-template-support.php:989 2074 2212 msgid "View Jobs" 2075 2213 msgstr "" 2076 2214 2077 #: ../includes/class-template-support.php:99 7, ../includes/class-template-support.php:1007, ../includes/class-template-support.php:9682215 #: ../includes/class-template-support.php:998, ../includes/class-template-support.php:1008, ../includes/class-template-support.php:969 2078 2216 msgid "Apply Now" 2079 2217 msgstr "" 2080 2218 2081 #: ../includes/class-template-support.php:99 8, ../includes/admin/class-settings-fields.php:5132219 #: ../includes/class-template-support.php:999, ../includes/admin/class-settings-fields.php:513 2082 2220 msgid "More Info" 2083 2221 msgstr "" 2084 2222 2085 #: ../includes/class-template-support.php:9 492223 #: ../includes/class-template-support.php:950 2086 2224 msgid "More Jobs" 2087 2225 msgstr "" 2088 2226 2089 #: ../includes/class-template-support.php:95 82227 #: ../includes/class-template-support.php:959 2090 2228 msgid "More About this Job" 2091 2229 msgstr "" 2092 2230 2093 #: ../includes/class-template-support.php:9 59, ../includes/class-template-support.php:969, ../includes/class-template-support.php:9782231 #: ../includes/class-template-support.php:960, ../includes/class-template-support.php:970, ../includes/class-template-support.php:979 2094 2232 msgid "See All Jobs" 2095 2233 msgstr "" 2096 2234 2097 #: ../includes/class-template-support.php:169 72235 #: ../includes/class-template-support.php:1698 2098 2236 msgid "Title" 2099 2237 msgstr "" 2100 2238 2101 #: ../includes/class-template-support.php:17 092239 #: ../includes/class-template-support.php:1710 2102 2240 msgid "Description" 2103 2241 msgstr "" 2104 2242 2105 #: ../includes/class-template-support.php:171 02243 #: ../includes/class-template-support.php:1711 2106 2244 msgid "Job Info" 2107 msgstr ""2108 2109 #: ../includes/class-variables.php:552110 msgid "DOC, DOCX, PDF, HTML, and TXT"2111 msgstr ""2112 2113 #: ../includes/class-variables.php:1262114 msgid "Date Published (newest first)"2115 msgstr ""2116 2117 #: ../includes/class-variables.php:1312118 msgid "Closing Date (newest first)"2119 msgstr ""2120 2121 #: ../includes/class-variables.php:1372122 msgid "Job Title (a-z)"2123 msgstr ""2124 2125 #: ../includes/class-variables.php:1422126 msgid "Source ID (ascending)"2127 msgstr ""2128 2129 #: ../includes/class-variables.php:1482130 msgid "Random"2131 msgstr ""2132 2133 #: ../includes/class-variables.php:1562134 msgid "Salary (highest first)"2135 msgstr ""2136 2137 #: ../includes/class-variables.php:2222138 msgctxt "Job Category Singular Name."2139 msgid "category"2140 msgstr ""2141 2142 #: ../includes/class-variables.php:2232143 msgctxt "Job Category Plural Name."2144 msgid "categories"2145 msgstr ""2146 2147 #: ../includes/class-variables.php:2372148 msgctxt "Job Location Singular Name."2149 msgid "location"2150 msgstr ""2151 2152 #: ../includes/class-variables.php:2382153 msgctxt "Job Location Plural Name."2154 msgid "locations"2155 msgstr ""2156 2157 #: ../includes/class-variables.php:2452158 msgctxt "Job Type Singular Name."2159 msgid "type"2160 msgstr ""2161 2162 #: ../includes/class-variables.php:2462163 msgctxt "Job Type Plural Name."2164 msgid "types"2165 2245 msgstr "" 2166 2246 … … 3186 3266 msgstr "" 3187 3267 3188 #: ../includes/admin/class-upgrade.php:46 3189 msgid "<p>Matador Jobs 3.5.6 corrected an issue that may require you to update your theme. Please see our <a href=\"https://matadorjobs.com/support/documentation/upgrading-to-3-5-6/\" target=\"_blank\">upgrade guide</a> before completing the upgrade. The upgrade is irreversible. The upgrade will be automatically applied with version 3.7.0.</p>" 3190 msgstr "" 3191 3192 #: ../includes/admin/class-upgrade.php:84 3268 #: ../includes/admin/class-upgrade.php:78 3193 3269 msgctxt "Upgrade Matador Admin Page Title" 3194 3270 msgid "Upgrade Matador" 3195 3271 msgstr "" 3196 3272 3197 #: ../includes/admin/class-upgrade.php:9 73273 #: ../includes/admin/class-upgrade.php:91 3198 3274 msgctxt "Upgrade Matador Admin Page Menu Label" 3199 3275 msgid "Upgrade" 3200 3276 msgstr "" 3201 3277 3202 #: ../includes/admin/class-upgrade.php:1 423278 #: ../includes/admin/class-upgrade.php:136 3203 3279 msgid "Please click here to complete the Matador Jobs upgrade." 3204 3280 msgstr "" … … 3508 3584 msgstr "" 3509 3585 3510 #: ../includes/bullhorn/class-bullhorn-import.php:9 33586 #: ../includes/bullhorn/class-bullhorn-import.php:94 3511 3587 msgid "Starting Sync with bullhorn." 3512 3588 msgstr "" 3513 3589 3514 #: ../includes/bullhorn/class-bullhorn-import.php:10 33590 #: ../includes/bullhorn/class-bullhorn-import.php:104 3515 3591 msgid "Bullhorn not logged in and cannot import." 3516 3592 msgstr "" 3517 3593 3518 #: ../includes/bullhorn/class-bullhorn-import.php:14 33594 #: ../includes/bullhorn/class-bullhorn-import.php:144 3519 3595 msgid "Bullhorn Jobs Sync completed successfully at " 3520 3596 msgstr "" 3521 3597 3522 #: ../includes/bullhorn/class-bullhorn-import.php:14 53598 #: ../includes/bullhorn/class-bullhorn-import.php:146 3523 3599 msgid "Finished Sync with bullhorn." 3524 3600 msgstr "" 3525 3601 3526 #: ../includes/bullhorn/class-bullhorn-import.php:12 03602 #: ../includes/bullhorn/class-bullhorn-import.php:121 3527 3603 msgid "We encountered an error during sync and ended sync early. Will try again later." 3528 3604 msgstr "" 3529 3605 3530 #: ../includes/bullhorn/class-bullhorn-import.php:22 3, ../src/Sync/Bullhorn/Jobs.php:216, ../src/Sync/Bullhorn/Jobs.php:3153606 #: ../includes/bullhorn/class-bullhorn-import.php:224, ../src/Sync/Bullhorn/Jobs.php:231, ../src/Sync/Bullhorn/Jobs.php:330 3531 3607 msgid "Operation failed for an unknown reason. Raw response data will be output. Please contact Matador Support." 3532 3608 msgstr "" 3533 3609 3534 #: ../includes/bullhorn/class-bullhorn-import.php:22 1, ../src/Sync/Bullhorn/Jobs.php:214, ../src/Sync/Bullhorn/Jobs.php:3133610 #: ../includes/bullhorn/class-bullhorn-import.php:222, ../src/Sync/Bullhorn/Jobs.php:229, ../src/Sync/Bullhorn/Jobs.php:328 3535 3611 msgid "Bullhorn Request Jobs failed due to Bullhorn error. Will stop routine and try again later. Error message: %s" 3536 3612 msgstr "" 3537 3613 3538 #: ../includes/bullhorn/class-bullhorn-import.php:2 19, ../src/Sync/Bullhorn/Jobs.php:212, ../src/Sync/Bullhorn/Jobs.php:3113614 #: ../includes/bullhorn/class-bullhorn-import.php:220, ../src/Sync/Bullhorn/Jobs.php:227, ../src/Sync/Bullhorn/Jobs.php:326 3539 3615 msgid "Operation timed out. Will try again." 3540 3616 msgstr "" 3541 3617 3542 #: ../includes/bullhorn/class-bullhorn-import.php:23 2, ../src/Sync/Bullhorn/Jobs.php:2313618 #: ../includes/bullhorn/class-bullhorn-import.php:233, ../src/Sync/Bullhorn/Jobs.php:246 3543 3619 msgid "Sync found no eligible jobs for import." 3544 3620 msgstr "" 3545 3621 3546 3622 #. translators: Placeholder is for number of found jobs. 3547 #: ../includes/bullhorn/class-bullhorn-import.php:24 4, ../src/Sync/Bullhorn/Jobs.php:2393623 #: ../includes/bullhorn/class-bullhorn-import.php:245, ../src/Sync/Bullhorn/Jobs.php:254 3548 3624 msgid "Sync found %1$s jobs." 3549 3625 msgstr "" 3550 3626 3551 #: ../includes/bullhorn/class-bullhorn-import.php:33 83627 #: ../includes/bullhorn/class-bullhorn-import.php:339 3552 3628 msgid "Matador found duplicate entries for your jobs. Will remove newest copies." 3553 3629 msgstr "" 3554 3630 3555 3631 #. translators: Placeholder(s) are for numeric ID's of local entry (WP Post) and remote entry (ie: Bullhorn Job) 3556 #: ../includes/bullhorn/class-bullhorn-import.php:34 23632 #: ../includes/bullhorn/class-bullhorn-import.php:343 3557 3633 msgid "Removing duplicate local entry #%1$s for remote id #%2$s." 3558 3634 msgstr "" 3559 3635 3560 #: ../includes/bullhorn/class-bullhorn-import.php:34 83636 #: ../includes/bullhorn/class-bullhorn-import.php:349 3561 3637 msgid "No existing jobs were found" 3562 3638 msgstr "" 3563 3639 3564 3640 #. translators: placeholder is number of jobs found. 3565 #: ../includes/bullhorn/class-bullhorn-import.php:35 43641 #: ../includes/bullhorn/class-bullhorn-import.php:355 3566 3642 msgid "%s existing jobs were found" 3567 3643 msgstr "" 3568 3644 3569 #: ../includes/bullhorn/class-bullhorn-import.php:5 163645 #: ../includes/bullhorn/class-bullhorn-import.php:522 3570 3646 msgid "Starting taxonomies sync." 3571 3647 msgstr "" 3572 3648 3573 3649 #. translators: Placeholder for datettime. 3574 #: ../includes/bullhorn/class-bullhorn-import.php:5 253650 #: ../includes/bullhorn/class-bullhorn-import.php:533 3575 3651 msgid "Finished Category Sync with bullhorn." 3576 3652 msgstr "" 3577 3653 3578 3654 #. translators: placeholder for organization ID 3579 #: ../includes/bullhorn/class-bullhorn-import.php:5 593655 #: ../includes/bullhorn/class-bullhorn-import.php:568 3580 3656 msgid "Requesting organization URL for organization id #%s" 3581 3657 msgstr "" 3582 3658 3583 #: ../includes/bullhorn/class-bullhorn-import.php:5 813659 #: ../includes/bullhorn/class-bullhorn-import.php:590 3584 3660 msgid "Call to ClientCorporation failed. Client Corporation data is set to blank." 3585 3661 msgstr "" 3586 3662 3587 3663 #. translators:: placeholder 1 is Job ID 3588 #: ../includes/bullhorn/class-bullhorn-import.php:6 243664 #: ../includes/bullhorn/class-bullhorn-import.php:633 3589 3665 msgid "Bullhorn Job #%1$s is was in recent synced list skipping this time." 3590 3666 msgstr "" 3591 3667 3592 3668 #. translators: Placeholders are for Bullhorn ID 3593 #: ../includes/bullhorn/class-bullhorn-import.php:7 12, ../src/Sync/Bullhorn/Jobs.php:4573669 #: ../includes/bullhorn/class-bullhorn-import.php:721, ../src/Sync/Bullhorn/Jobs.php:472 3594 3670 msgid "Bullhorn Job #%1$s is not created." 3595 3671 msgstr "" 3596 3672 3597 3673 #. translators: Placeholders are for Bullhorn ID 3598 #: ../includes/bullhorn/class-bullhorn-import.php:7 17, ../src/Sync/Bullhorn/Jobs.php:4623674 #: ../includes/bullhorn/class-bullhorn-import.php:726, ../src/Sync/Bullhorn/Jobs.php:477 3599 3675 msgid "Bullhorn Job #%1$s is new and will be added." 3600 3676 msgstr "" 3601 3677 3602 #: ../includes/bullhorn/class-bullhorn-import.php:6 79, ../src/Sync/Bullhorn/Jobs.php:4303678 #: ../includes/bullhorn/class-bullhorn-import.php:688, ../src/Sync/Bullhorn/Jobs.php:445 3603 3679 msgid "Bullhorn Job #%1$s exists as WP post #%2$s and is skipped." 3604 3680 msgstr "" 3605 3681 3606 #: ../includes/bullhorn/class-bullhorn-import.php:6 853682 #: ../includes/bullhorn/class-bullhorn-import.php:694 3607 3683 msgid "Bullhorn Job #%1$s was not modified since last import skipping save." 3608 3684 msgstr "" 3609 3685 3610 #: ../includes/bullhorn/class-bullhorn-import.php: 694, ../src/Sync/Bullhorn/Jobs.php:4403686 #: ../includes/bullhorn/class-bullhorn-import.php:703, ../src/Sync/Bullhorn/Jobs.php:455 3611 3687 msgid "Bullhorn Job #%1$s exists as WP post #%2$s and is updated." 3612 3688 msgstr "" 3613 3689 3614 #: ../includes/bullhorn/class-bullhorn-import.php: 691, ../src/Sync/Bullhorn/Jobs.php:4363690 #: ../includes/bullhorn/class-bullhorn-import.php:700, ../src/Sync/Bullhorn/Jobs.php:451 3615 3691 msgid "Bullhorn Job #%1$s exists as WP post #%2$s and is force updated due to user action." 3616 3692 msgstr "" 3617 3693 3618 #: ../includes/bullhorn/class-bullhorn-import.php:7 34, ../src/Sync/Bullhorn/Jobs.php:4773694 #: ../includes/bullhorn/class-bullhorn-import.php:743, ../src/Sync/Bullhorn/Jobs.php:492 3619 3695 msgid "Unable to save job." 3620 3696 msgstr "" 3621 3697 3622 3698 #. translators: Placeholder is Job ID number. 3623 #: ../includes/bullhorn/class-bullhorn-import.php:7 44, ../src/Sync/Bullhorn/Jobs.php:4813699 #: ../includes/bullhorn/class-bullhorn-import.php:753, ../src/Sync/Bullhorn/Jobs.php:496 3624 3700 msgid "Bullhorn Job #%1$s has been imported." 3625 3701 msgstr "" 3626 3702 3627 #: ../includes/bullhorn/class-bullhorn-import.php: 8973703 #: ../includes/bullhorn/class-bullhorn-import.php:906 3628 3704 msgid "More than 5 terms doing a full term sync" 3629 3705 msgstr "" 3630 3706 3631 #: ../includes/bullhorn/class-bullhorn-import.php:1 4963707 #: ../includes/bullhorn/class-bullhorn-import.php:1506 3632 3708 msgid "Remote" 3633 3709 msgstr "" 3634 3710 3635 #: ../includes/bullhorn/class-bullhorn-import.php:15 123711 #: ../includes/bullhorn/class-bullhorn-import.php:1522 3636 3712 msgid "Hybrid" 3637 3713 msgstr "" 3638 3714 3639 #: ../includes/bullhorn/class-bullhorn-import.php:22 093715 #: ../includes/bullhorn/class-bullhorn-import.php:2218 3640 3716 msgid "Requesting currency Format" 3641 3717 msgstr "" 3642 3718 3643 #: ../includes/bullhorn/class-bullhorn-import.php:22 523719 #: ../includes/bullhorn/class-bullhorn-import.php:2261 3644 3720 msgid "More than 5 assignedUsers doing a full sync" 3645 3721 msgstr "" 3646 3722 3647 #: ../includes/bullhorn/class-bullhorn-import.php:22 843723 #: ../includes/bullhorn/class-bullhorn-import.php:2293 3648 3724 msgid "Unable to fetch additional assignedUsers: no WordPress ID provided for the job" 3649 3725 msgstr "" 3650 3726 3651 #: ../includes/bullhorn/class-bullhorn-import.php:2 2983727 #: ../includes/bullhorn/class-bullhorn-import.php:2307 3652 3728 msgid "Unable to fetch additional assignedUsers: no job source ID found" 3653 3729 msgstr "" 3654 3730 3655 #: ../includes/bullhorn/class-bullhorn-import.php:232 03731 #: ../includes/bullhorn/class-bullhorn-import.php:2329 3656 3732 msgid "Additional assignedUsers data successfully retrieved" 3657 3733 msgstr "" 3658 3734 3659 #: ../includes/bullhorn/class-bullhorn-import.php:23 473735 #: ../includes/bullhorn/class-bullhorn-import.php:2356 3660 3736 msgid "Requesting Bullhorn user data for user ID %1$s" 3661 3737 msgstr "" 3662 3738 3663 3739 #. translators: placeholder is Job ID 3664 #: ../includes/bullhorn/class-bullhorn-import.php:23 873740 #: ../includes/bullhorn/class-bullhorn-import.php:2396 3665 3741 msgid "Delete Job(%1$s)." 3666 3742 msgstr "" … … 4813 4889 msgstr "" 4814 4890 4891 #: ../src/Integrations/Bullhorn/Helper.php:83 4892 msgid "The country form field is skipped, as the Bullhorn Countries List is not synced. Please connect to and sync Bullhorn to download country data. This message is only shown to administrators." 4893 msgstr "" 4894 4815 4895 #: ../src/Rest/Endpoint/Application.php:92 4816 4896 msgid "No form data was submitted." … … 4927 5007 msgstr "" 4928 5008 4929 #: ../src/Sync/Bullhorn/Jobs.php:5 225009 #: ../src/Sync/Bullhorn/Jobs.php:537 4930 5010 msgid "Sync found %1$s jobs on remote, of which %2$s are new, %3$s require an update, and %4$s require no update. Further, %5$s are expired and will be removed." 4931 5011 msgstr "" 4932 5012 4933 #: ../src/Sync/Bullhorn/Jobs.php:5 555013 #: ../src/Sync/Bullhorn/Jobs.php:570 4934 5014 msgid "The following jobs are deemed expired, but will not be removed due to user filter: %1$s." 4935 5015 msgstr "" 4936 5016 4937 #: ../src/Sync/Bullhorn/Jobs.php:5 715017 #: ../src/Sync/Bullhorn/Jobs.php:586 4938 5018 msgid "Deleting Expired Jobs with WordPress IDs of %1$s." 4939 5019 msgstr "" … … 4967 5047 msgstr "" 4968 5048 4969 #: ../src/Rest/Endpoint/Jobs/Taxonomies.php:10 05049 #: ../src/Rest/Endpoint/Jobs/Taxonomies.php:101 4970 5050 msgid "Failed to retrieve taxonomies for the job post type." 4971 5051 msgstr "" 4972 5052 4973 #: ../src/Rest/Endpoint/Jobs/Taxonomies.php:1 295053 #: ../src/Rest/Endpoint/Jobs/Taxonomies.php:130 4974 5054 msgid "Failed to retrieve taxonomy for the job post type due to internal error." 4975 5055 msgstr "" 4976 5056 4977 #: ../src/Rest/Endpoint/Jobs/Taxonomies.php:16 85057 #: ../src/Rest/Endpoint/Jobs/Taxonomies.php:169 4978 5058 msgid "Taxonomy for the job post type not found." 4979 5059 msgstr "" … … 4991 5071 msgstr "" 4992 5072 4993 #: ../templates/application.php:1 545073 #: ../templates/application.php:168 4994 5074 msgid "No fields passed to form. Set default fields in the Matador settings." 4995 5075 msgstr "" 4996 5076 4997 #: ../templates/application.php:1 305077 #: ../templates/application.php:144 4998 5078 msgid "Submit Application" 4999 5079 msgstr "" 5000 5080 5001 #: ../templates/application.php:1 425081 #: ../templates/application.php:156 5002 5082 msgid "We are uploading your application. It may take a few moments to read your resume. Please wait!" 5003 5083 msgstr "" … … 5027 5107 msgstr "" 5028 5108 5029 #: ../templates/jobs-table.php:9 45109 #: ../templates/jobs-table.php:95 5030 5110 msgid "Sort the %s column in ascending order" 5031 5111 msgstr "" 5032 5112 5033 #: ../templates/jobs-table.php:10 25113 #: ../templates/jobs-table.php:103 5034 5114 msgid "Sort the %s column in descending order" 5035 5115 msgstr "" -
matador-jobs/trunk/matador-jobs.php
r3257995 r3279451 12 12 * Plugin URI: https://matadorjobs.com 13 13 * Description: Connect your Bullhorn Account with your WordPress site and display your jobs on your WordPress site. 14 * Version: 3.9. 414 * Version: 3.9.7 15 15 * Requires at least: 5.5.0 16 * Tested up to: 6. 716 * Tested up to: 6.8 17 17 * Requires PHP: 8.1 18 18 * Author: Matador Software LLC, Jeremy Scott, Paul Bearne -
matador-jobs/trunk/readme.txt
r3257995 r3279451 5 5 - Tags: Bullhorn, Job Board, Career Portal, OSCP, ATS 6 6 - Requires at least: 5.5.0 7 - Tested up to: 6. 7.28 - Stable tag: 3.9. 49 - Version: 3.9. 47 - Tested up to: 6.8 8 - Stable tag: 3.9.7 9 - Version: 3.9.7 10 10 - Requires PHP: 8.1 11 11 - License: GPLv3 or later … … 51 51 = How Can I Customize the Look of Matador? = 52 52 53 Our documentation site <https:// matadorjobs.com/support/documentation/> explains how to use our template system, theme functions, shortcodes, and actions and filters to make your site look amazing. You can also watch out for occasional client showcases on our where we feature creative and amazing looking implementations of Matador.53 Our documentation site <https://docs.matadorjobs.com/> explains how to use our template system, theme functions, shortcodes, and actions and filters to make your site look amazing. You can also watch out for occasional client showcases on our where we feature creative and amazing looking implementations of Matador. 54 54 55 55 = How Can I Customize the Function of Matador? = 56 56 57 Matador is built by WordPress users for WordPress users. We included hundreds of Actions and Filters to help you customize how it works just like WordPress core. Some of those are documented at <https:// matadorjobs.com/support/documentation/> while others can be discovered with a quick code review.57 Matador is built by WordPress users for WordPress users. We included hundreds of Actions and Filters to help you customize how it works just like WordPress core. Some of those are documented at <https://docs.matadorjobs.com/> while others can be discovered with a quick code review. 58 58 59 59 But that requires a developer and hours of work! If you haven't already, check out our many official extensions that are viewable at <https://matadorjobs.com/products/>. These extend Matador's core functionality in ways that can make each site feel unique! You can use an unlimited number of these All-Access Add-Ons with any Matador Jobs All-Access plan. … … 73 73 74 74 == Changelog == 75 76 ## 3.9.7 77 78 - Bugfix: To update Matador Jobs for WordPress 6.7 & 6.8 just-in-time translations features, some translatable strings declared at Matador instantiation were moved elsewhere in load order. This fixes an issue where, when WP_DEBUG was on, PHP NOTICE messages would cause Translations files to not load. Please note: some Matador Jobs extensions are also causing this issue, but WordPress PHP NOTICE messages are associating the issue with Matador Jobs core. We are actively working on updating all extensions so this issue is resolved finally. 79 - Bugfix: (Bullhorn Integration) Some processed Bullhorn resumes were too large to be processed by the solution we devised to remove presentational tags from the resume text in 3.9.6. A new solution requiring greater processing time, but is more reliable, is included in this version. 80 - Bugfix: (Bullhorn Integration) Fixed issue causing the import categories cache to not save as expected. 81 - Bugfix: (Bullhorn Integration) Modified the process in which the Bullhorn Country data cache is refreshed, preventing a stale cache from returning invalid/missing Country data and impacting user applications. The cache is now persistent and a separate mechanism is in place to refresh it regularly. 82 - Enhancement: Added WordPress filter `matador_application_field_should_skip` on the default Application form template to give developers using the default template access to a way to programmatically skip application fields. Users on modified application templates should refresh their template version. 83 - Enhancement: (Bullhorn Integration) In the event of missing Bullhorn Country data, the Country field in the application will now be disabled, and authenticated editor and administrator users will be shown a message encouraging them to initialize a Bullhorn sync. This will only occur, due to changes to how the Bullhorn Country data is cached, when new sites are created or object caches or transients are cleared. This requires users to be using the default application template or that they have added the new `matador_application_field_should_skip` filter to their customized template. 84 85 ## 3.9.6 86 87 - Bugfix: (Bullhorn Integration) Candidate objects returned from the Bullhorn API following resume processing will have presentational HTML tags removed to prevent situations where highly stylized HTML candidate descriptions cause the data object to exceed data limits. 88 89 ## 3.9.5 90 91 - Enhancement: Allowed HTML tags in a job description is expanded to now also support `<blockquote>`, `<s>`, `<sub>`, `<sup>`, and `<u>`. This is largely to support updates in the Bullhorn ATS rich text editor, but is good practice for all job descriptions in future integrations. 92 - Enhancement: Added filter `matador_get_currency_codes` to give developers the ability to modify the list of currency codes used by Matador. The defaults are from an ISO Currency Codes list, so should be good for most users without modification. 93 - Bugfix: Fixed an issue causing currency code data to not load as intended for users of certain world currencies. 94 - Bugfix: Fixed an issue causing the Application Processing log data to not save to the database as intended, leaving the sync log data section of the application transcript blank. 95 - Bugfix: Fixed an issue causing WordPress to experience a fatal error on versions prior to 6.7. Matador Jobs Block Editor blocks leveraged improved WordPress Editor Blocks loading routines introduced WordPress 6.7, but was missing a required check. This check is now added and in place. That said, we always strongly recommend our users run the most up-to-date version of WordPress for security and stability purposes. 96 - Bugfix: Fixed an issue causing translatable strings to be untranslatable due to WordPress 6.8 "just-in-time" translation loading. This affected labels for Jobs Orderby Search Options. Note: there are more strings that are affected by the WordPress 6.8 "just-in-time" changes, and we are working hard to get all of them fixed before WordPress 6.8 releases. 97 - Bugfix: Updated Matador Jobs Block Editor Blocks to support changes to block registration slated for the soon-to-be WordPress 6.8 release. 98 - Bugfix: (Bullhorn Integration) Fixed an issue that was causing Matador Jobs Pro to sync applications slower than intended. For high-volume sites this could create a backlog over long periods of time resulting in the volume getting too far ahead of incoming applications. This fix will ease that problem and prevent it in the future. 99 - Misc: Updated references to our Matador Jobs Pro documentation website to ensure links match valid articles. 100 - Misc: Matador Jobs is tested up to WordPress 6.8, with no fatal or blocking errors, however full support for changes to translations loading will come in an upcoming patch. 75 101 76 102 ## 3.9.4 -
matador-jobs/trunk/src/Editors/Blocks/Blocks.php
r3254249 r3279451 74 74 // Register the Block Metadata Collection 75 75 $base_path = __DIR__ . '/build/'; 76 if ( f ile_exists( $base_path . 'blocks-manifest.php' ) ) {76 if ( function_exists( 'wp_register_block_metadata_collection' ) && file_exists( $base_path . 'blocks-manifest.php' ) ) { 77 77 \wp_register_block_metadata_collection( 78 78 $base_path, -
matador-jobs/trunk/src/Editors/Blocks/build/job-application-link/index.asset.php
r3254249 r3279451 1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' e1f54b32b069f5ec5c14');1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '020901962cf3700b3dd5'); -
matador-jobs/trunk/src/Editors/Blocks/build/job-application-link/index.js
r3254249 r3279451 1 (()=>{"use strict";var e,t={878:()=>{const e=window.wp.blocks,t=window.wp.i18n,a=window.wp.blockEditor,o=window.wp.components,r=JSON.parse('{"UU":"matador-jobs/job-application-link"}');(0,e.registerBlockType)(r.UU,{edit:function(e){var r=e.attributes,n=e.setAttributes,l=e.context,i=(0,a.useBlockProps)({className:"wp-block-matador-jobs-job-application-link"}),s=(void 0===r.postId&&l.postId,r.displayText);return React.createElement(React.Fragment,null,React.createElement(a.InspectorControls,null,React.createElement(o.PanelBody,{title:(0,t.__)("Settings","matador-jobs"),initialOpen:!0},React.createElement(o.PanelRow,null,React.createElement(o.TextControl,{label:(0,t.__)("Display Text","matador-jobs"),help:(0,t.__)("The text to display","matador-jobs"),value:s,onChange:function(e){n({displayText:e})} })))),React.createElement("div",i,React.createElement(o.Disabled,null,React.createElement("a",{href:"/"},s))))}})}},a={};function o(e){var r=a[e];if(void 0!==r)return r.exports;var n=a[e]={exports:{}};return t[e](n,n.exports,o),n.exports}o.m=t,e=[],o.O=(t,a,r,n)=>{if(!a){var l=1/0;for(p=0;p<e.length;p++){for(var[a,r,n]=e[p],i=!0,s=0;s<a.length;s++)(!1&n||l>=n)&&Object.keys(o.O).every((e=>o.O[e](a[s])))?a.splice(s--,1):(i=!1,n<l&&(l=n));if(i){e.splice(p--,1);var c=r();void 0!==c&&(t=c)}}return t}n=n||0;for(var p=e.length;p>0&&e[p-1][2]>n;p--)e[p]=e[p-1];e[p]=[a,r,n]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={967:0,943:0};o.O.j=t=>0===e[t];var t=(t,a)=>{var r,n,[l,i,s]=a,c=0;if(l.some((t=>0!==e[t]))){for(r in i)o.o(i,r)&&(o.m[r]=i[r]);if(s)var p=s(o)}for(t&&t(a);c<l.length;c++)n=l[c],o.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return o.O(p)},a=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();var r=o.O(void 0,[943],(()=>o(878)));r=o.O(r)})();1 (()=>{"use strict";var e,t={878:()=>{const e=window.wp.blocks,t=window.wp.i18n,a=window.wp.blockEditor,o=window.wp.components,r=JSON.parse('{"UU":"matador-jobs/job-application-link"}');(0,e.registerBlockType)(r.UU,{edit:function(e){var r=e.attributes,n=e.setAttributes,l=e.context,i=(0,a.useBlockProps)({className:"wp-block-matador-jobs-job-application-link"}),s=(void 0===r.postId&&l.postId,r.displayText);return React.createElement(React.Fragment,null,React.createElement(a.InspectorControls,null,React.createElement(o.PanelBody,{title:(0,t.__)("Settings","matador-jobs"),initialOpen:!0},React.createElement(o.PanelRow,null,React.createElement(o.TextControl,{label:(0,t.__)("Display Text","matador-jobs"),help:(0,t.__)("The text to display","matador-jobs"),value:s,onChange:function(e){n({displayText:e})},__next40pxDefaultSize:!0})))),React.createElement("div",i,React.createElement(o.Disabled,null,React.createElement("a",{href:"/"},s))))}})}},a={};function o(e){var r=a[e];if(void 0!==r)return r.exports;var n=a[e]={exports:{}};return t[e](n,n.exports,o),n.exports}o.m=t,e=[],o.O=(t,a,r,n)=>{if(!a){var l=1/0;for(p=0;p<e.length;p++){for(var[a,r,n]=e[p],i=!0,s=0;s<a.length;s++)(!1&n||l>=n)&&Object.keys(o.O).every((e=>o.O[e](a[s])))?a.splice(s--,1):(i=!1,n<l&&(l=n));if(i){e.splice(p--,1);var c=r();void 0!==c&&(t=c)}}return t}n=n||0;for(var p=e.length;p>0&&e[p-1][2]>n;p--)e[p]=e[p-1];e[p]=[a,r,n]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={967:0,943:0};o.O.j=t=>0===e[t];var t=(t,a)=>{var r,n,[l,i,s]=a,c=0;if(l.some((t=>0!==e[t]))){for(r in i)o.o(i,r)&&(o.m[r]=i[r]);if(s)var p=s(o)}for(t&&t(a);c<l.length;c++)n=l[c],o.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return o.O(p)},a=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();var r=o.O(void 0,[943],(()=>o(878)));r=o.O(r)})(); -
matador-jobs/trunk/src/Editors/Blocks/build/job-application/index.asset.php
r3254249 r3279451 1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-i18n', 'wp-server-side-render'), 'version' => ' 0c864e800d4fcd045f7d');1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-i18n', 'wp-server-side-render'), 'version' => 'c791e516a565917443f9'); -
matador-jobs/trunk/src/Editors/Blocks/build/job-application/index.js
r3254249 r3279451 1 (()=>{"use strict";var t,e={818:(t,e,o)=>{const a=window.wp.blocks,n=window.wp.i18n,r=window.wp.blockEditor,l=window.wp.serverSideRender;var i=o.n(l);const u=window.wp.components,s=JSON.parse('{"UU":"matador-jobs/job-application"}'),c=window.wp.data;function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function d(){return d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var a in o)({}).hasOwnProperty.call(o,a)&&(t[a]=o[a])}return t},d.apply(null,arguments)}function b(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,a)}return o}function m(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?b(Object(o),!0).forEach((function(e){g(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):b(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function g(t,e,o){return(e=function(t){var e=function(t){if("object"!=p(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,"string");if("object"!=p(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==p(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}(0,a.registerBlockType)(s.UU,{edit:function(t){var e,o=t.attributes,a=t.setAttributes,l=(t.context,o.labelsTextColor),p=o.labelsBackgroundColor,b=o.labelsPadding,g=o.labelsMargin,f=o.labelsPosition,_=o.inputsTextColor,B=o.inputsBackgroundColor,h=o.inputsPadding,C=o.inputsMargin,x=o.inputsBorders,R=o.inputsBorderRadius,v=o.submitButtonTextColor,S=o.submitButtonBackgroundColor,y=o.submitButtonPadding,j=o.submitButtonMargin,w=o.submitButtonBorders,P=o.submitButtonBorderRadius,E=o.isFullWidthSubmitButton,k=(0,r.useBlockProps)({className:"matador-jobs-job-application ".concat(E?"is-style-matador-full-width-submit-button":"")});return React.createElement(React.Fragment,null,React.createElement(u.Notice,{politeness:"polite",isDismissible:!1,status:"warning",style:{color:"#000"}},(0,n.__)("Please note: the Job Application Block may not show all changes in the editor. Please check a page preview to ensure this block is styled as you wish.","matador-jobs")),function(t){var e=t.labelsTextColor,o=t.setLabelsTextColor,a=t.labelsBackgroundColor,l=t.setLabelsBackgroundColor,i=t.inputsTextColor,s=t.setInputsTextColor,p=t.inputsBackgroundColor,d=t.setInputsBackgroundColor,b=t.submitButtonTextColor,m=t.setSubmitButtonTextColor,g=t.submitButtonBackgroundColor,f=t.setSubmitButtonBackgroundColor,_=(0,c.useSelect)((function(t){return t(r.store).getSettings().colors||[]}));return React.createElement(React.Fragment,null,React.createElement(r.InspectorControls,{group:"color"},React.createElement(u.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement("h4",null,(0,n.__)("Labels Text Color","matador-jobs")),React.createElement(u.ColorPalette,{colors:_,value:e,onChange:function(t){return o(t)},enableAlpha:!0}),React.createElement("h4",null,(0,n.__)("Labels Background Color","matador-jobs")),React.createElement(u.ColorPalette,{colors:_,value:a,onChange:function(t){return l(t)},enableAlpha:!0}),React.createElement("h4",null,(0,n.__)("Inputs Text Color","matador-jobs")),React.createElement(u.ColorPalette,{colors:_,value:i,onChange:function(t){return s(t)},enableAlpha:!0}),React.createElement("h4",null,(0,n.__)("Inputs Background Color","matador-jobs")),React.createElement(u.ColorPalette,{colors:_,value:p,onChange:function(t){return d(t)},enableAlpha:!0}),React.createElement("h4",null,(0,n.__)("Submit Button Text Color","matador-jobs")),React.createElement(u.ColorPalette,{colors:_,value:b,onChange:function(t){return m(t)},enableAlpha:!0}),React.createElement("h4",null,(0,n.__)("Submit Button Background Color","matador-jobs")),React.createElement(u.ColorPalette,{colors:_,value:g,onChange:function(t){return f(t)},enableAlpha:!0}))))}({labelsTextColor:l,setLabelsTextColor:function(t){return a({labelsTextColor:t})},labelsBackgroundColor:p,setLabelsBackgroundColor:function(t){return a({labelsBackgroundColor:t})},inputsTextColor:_,setInputsTextColor:function(t){return a({inputsTextColor:t})},inputsBackgroundColor:B,setInputsBackgroundColor:function(t){return a({inputsBackgroundColor:t})},submitButtonTextColor:v,setSubmitButtonTextColor:function(t){return a({submitButtonTextColor:t})},submitButtonBackgroundColor:S,setSubmitButtonBackgroundColor:function(t){return a({submitButtonBackgroundColor:t})}}),function(t){var e=t.labelsPadding,o=t.setLabelsPadding,a=t.labelsMargin,l=t.setLabelsMargin,i=t.inputsPadding,s=t.setInputsPadding,c=t.inputsMargin,p=t.setInputsMargin,d=t.submitButtonPadding,b=t.setSubmitButtonPadding,m=t.submitButtonMargin,g=t.setSubmitButtonMargin;return React.createElement(r.InspectorControls,{group:"dimensions"},React.createElement(u.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement(u.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,n.__)("Labels Padding","matador-jobs"),values:e,onChange:function(t){return o(t)}}),React.createElement("p",null,(0,n.__)("Set padding for the labels","matador-jobs")),React.createElement(u.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,n.__)("Labels Margin","matador-jobs"),values:a,onChange:function(t){return l(t)}}),React.createElement("p",null,(0,n.__)("Set margin for label","matador-jobs")),React.createElement(u.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,n.__)("Inputs Padding","matador-jobs"),values:i,onChange:function(t){return s(t)}}),React.createElement("p",null,(0,n.__)("Set padding for the inputs","matador-jobs")),React.createElement(u.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,n.__)("Inputs Margin","matador-jobs"),values:c,onChange:function(t){return p(t)}}),React.createElement("p",null,(0,n.__)("Set margin for inputs","matador-jobs")),React.createElement(u.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,n.__)("Submit Button Padding","matador-jobs"),values:d,onChange:function(t){return b(t)}}),React.createElement("p",null,(0,n.__)("Set padding for the submit button","matador-jobs")),React.createElement(u.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,n.__)("Submit Button Margin","matador-jobs"),values:m,onChange:function(t){return g(t)}}),React.createElement("p",null,(0,n.__)("Set margin for submit button","matador-jobs"))))}({labelsPadding:b,setLabelsPadding:function(t){return a({labelsPadding:t})},labelsMargin:g,setLabelsMargin:function(t){return a({labelsMargin:t})},inputsPadding:h,setInputsPadding:function(t){return a({inputsPadding:t})},inputsMargin:C,setInputsMargin:function(t){return a({inputsMargin:t})},submitButtonPadding:y,setSubmitButtonPadding:function(t){return a({submitButtonPadding:t})},submitButtonMargin:j,setSubmitButtonMargin:function(t){return a({submitButtonMargin:t})}}),function(t){var e=t.inputsBorders,o=t.setInputsBorders,a=t.inputsBorderRadius,l=t.setInputsBorderRadius,i=t.submitButtonBorders,s=t.setSubmitButtonBorders,p=t.submitButtonBorderRadius,d=t.setSubmitButtonBorderRadius,b=(0,c.useSelect)((function(t){return t(r.store).getSettings().colors||[]}));return React.createElement(React.Fragment,null,React.createElement(r.InspectorControls,{group:"border"},React.createElement(u.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement(u.__experimentalBorderBoxControl,{__next40pxDefaultSize:!0,colors:b,label:(0,n.__)("Inputs Borders","matador-jobs"),onChange:function(t){return o(t)},value:e,enableStyle:!0,enableAlpha:!0}),React.createElement(u.RangeControl,{label:(0,n.__)("Inputs Border Radius (px)","matador-jobs"),onChange:function(t){return l(t)},value:a,min:0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),React.createElement(u.__experimentalBorderBoxControl,{__next40pxDefaultSize:!0,colors:b,label:(0,n.__)("Submit Button Borders","matador-jobs"),onChange:function(t){return s(t)},value:i,enableStyle:!0,enableAlpha:!0}),React.createElement(u.RangeControl,{label:(0,n.__)("Submit Button Border Radius (px)","matador-jobs"),onChange:function(t){return d(t)},value:p,min:0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}))))}({inputsBorders:x,setInputsBorders:function(t){void 0===t.style&&(t.style="solid"),a({inputsBorders:t})},inputsBorderRadius:R,setInputsBorderRadius:function(t){return a({inputsBorderRadius:t+"px"})},submitButtonBorders:w,setSubmitButtonBorders:function(t){return a({submitButtonBorders:t})},submitButtonBorderRadius:P,setSubmitButtonBorderRadius:function(t){return a({submitButtonBorderRadius:t+"px"})}}),React.createElement(r.InspectorControls,null,React.createElement(u.PanelBody,{title:(0,n.__)("Settings","matador-jobs"),initialOpen:!0},function(t){var e=t.labelsPosition,o=t.setLabelsPosition;return React.createElement(React.Fragment,null,React.createElement(u.PanelRow,null,React.createElement(u.SelectControl,{label:(0,n.__)("Labels Position","matador-jobs"),help:(0,n.__)("Choose how the labels are positioned relative to their input field","matador-jobs"),value:e,options:[{value:"column",label:(0,n.__)("Above","matador-jobs")},{value:"column-reverse",label:(0,n.__)("Below","matador-jobs")},{value:"row",label:(0,n.__)("To Left","matador-jobs")},{value:"row-reverse",label:(0,n.__)("To Right","matador-jobs")}],onChange:function(t){return o(t)},__nextHasNoMarginBottom:!0 })))}({labelsPosition:f,setLabelsPosition:function(t){return a({labelsPosition:t})}}),function(t){var e=t.isFullWidthSubmitButton,o=t.setIsFullWidthSubmitButton;return React.createElement(u.PanelRow,null,React.createElement(u.ToggleControl,{__nextHasNoMarginBottom:!0,checked:e,label:(0,n.__)("Full Width Submit Button","matador-jobs"),help:(0,n.__)("Make the submit button take up the full width of its container","matador-jobs"),onChange:function(){return o(!e)}}))}({isFullWidthSubmitButton:E,setIsFullWidthSubmitButton:function(t){return a({isFullWidthSubmitButton:t})}}))),React.createElement("div",d({},k,{style:(e={"--matador-application-labels-text-color":l,"--matador-application-labels-background-color":p,"--matador-application-labels-padding-top":b.top,"--matador-application-labels-padding-right":b.right,"--matador-application-labels-padding-bottom":b.bottom,"--matador-application-labels-padding-left":b.left,"--matador-application-labels-margin-top":g.top,"--matador-application-labels-margin-right":g.right,"--matador-application-labels-margin-bottom":g.bottom,"--matador-application-labels-margin-left":g.left,"--matador-application-labels-position":f,"--matador-application-inputs-text-color":_,"--matador-application-inputs-background-color":B,"--matador-application-inputs-padding-top":h.top,"--matador-application-inputs-padding-right":h.right,"--matador-application-inputs-padding-bottom":h.bottom,"--matador-application-inputs-padding-left":h.left,"--matador-application-inputs-margin-top":C.top,"--matador-application-inputs-margin-right":C.right,"--matador-application-inputs-margin-bottom":C.bottom,"--matador-application-inputs-margin-left":C.left,"--matador-application-inputs-border-radius":R,"--matador-application-submit-button-text-color":v,"--matador-application-submit-button-background-color":S,"--matador-application-submit-button-padding-top":y.top,"--matador-application-submit-button-padding-right":y.right,"--matador-application-submit-button-padding-bottom":y.bottom,"--matador-application-submit-button-padding-left":y.left,"--matador-application-submit-button-margin-top":j.top,"--matador-application-submit-button-margin-right":j.right,"--matador-application-submit-button-margin-bottom":j.bottom,"--matador-application-submit-button-margin-left":j.left,"--matador-application-submit-button-border-radius":P},x&&Object.hasOwn(x,"top")?e=m(m({},e),{},{"--matador-application-inputs-borders-top":"".concat(x.top.style," ").concat(x.top.width," ").concat(x.top.color),"--matador-application-inputs-borders-right":"".concat(x.right.style," ").concat(x.right.width," ").concat(x.right.color),"--matador-application-inputs-borders-bottom":"".concat(x.bottom.style," ").concat(x.bottom.width," ").concat(x.bottom.color),"--matador-application-inputs-borders-left":"".concat(x.left.style," ").concat(x.left.width," ").concat(x.left.color)}):x&&Object.hasOwn(x,"color")&&(e=m(m({},e),{},{"--matador-application-inputs-borders-style":x.style,"--matador-application-inputs-borders-width":x.width,"--matador-application-inputs-borders-color":x.color})),w&&Object.hasOwn(w,"top")?e=m(m({},e),{},{"--matador-application-submit-button-borders-top":"".concat(w.top.style," ").concat(w.top.width," ").concat(w.top.color),"--matador-application-submit-button-borders-right":"".concat(w.right.style," ").concat(w.right.width," ").concat(w.right.color),"--matador-application-submit-button-borders-bottom":"".concat(w.bottom.style," ").concat(w.bottom.width," ").concat(w.bottom.color),"--matador-application-submit-button-borders-left":"".concat(w.left.style," ").concat(w.left.width," ").concat(w.left.color)}):w&&Object.hasOwn(w,"color")&&(e=m(m({},e),{},{"--matador-application-submit-button-borders-style":w.style,"--matador-application-submit-button-borders-width":w.width,"--matador-application-submit-button-borders-color":w.color})),e)}),React.createElement(i(),{block:s.UU})))}})}},o={};function a(t){var n=o[t];if(void 0!==n)return n.exports;var r=o[t]={exports:{}};return e[t](r,r.exports,a),r.exports}a.m=e,t=[],a.O=(e,o,n,r)=>{if(!o){var l=1/0;for(c=0;c<t.length;c++){for(var[o,n,r]=t[c],i=!0,u=0;u<o.length;u++)(!1&r||l>=r)&&Object.keys(a.O).every((t=>a.O[t](o[u])))?o.splice(u--,1):(i=!1,r<l&&(l=r));if(i){t.splice(c--,1);var s=n();void 0!==s&&(e=s)}}return e}r=r||0;for(var c=t.length;c>0&&t[c-1][2]>r;c--)t[c]=t[c-1];t[c]=[o,n,r]},a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var o in e)a.o(e,o)&&!a.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={896:0,288:0};a.O.j=e=>0===t[e];var e=(e,o)=>{var n,r,[l,i,u]=o,s=0;if(l.some((e=>0!==t[e]))){for(n in i)a.o(i,n)&&(a.m[n]=i[n]);if(u)var c=u(a)}for(e&&e(o);s<l.length;s++)r=l[s],a.o(t,r)&&t[r]&&t[r][0](),t[r]=0;return a.O(c)},o=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];o.forEach(e.bind(null,0)),o.push=e.bind(null,o.push.bind(o))})();var n=a.O(void 0,[288],(()=>a(818)));n=a.O(n)})();1 (()=>{"use strict";var t,e={818:(t,e,o)=>{const a=window.wp.blocks,n=window.wp.i18n,r=window.wp.blockEditor,l=window.wp.serverSideRender;var i=o.n(l);const u=window.wp.components,s=JSON.parse('{"UU":"matador-jobs/job-application"}'),c=window.wp.data;function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function d(){return d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var a in o)({}).hasOwnProperty.call(o,a)&&(t[a]=o[a])}return t},d.apply(null,arguments)}function b(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,a)}return o}function m(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?b(Object(o),!0).forEach((function(e){g(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):b(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function g(t,e,o){return(e=function(t){var e=function(t){if("object"!=p(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,"string");if("object"!=p(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==p(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}(0,a.registerBlockType)(s.UU,{edit:function(t){var e,o=t.attributes,a=t.setAttributes,l=(t.context,o.labelsTextColor),p=o.labelsBackgroundColor,b=o.labelsPadding,g=o.labelsMargin,f=o.labelsPosition,_=o.inputsTextColor,B=o.inputsBackgroundColor,h=o.inputsPadding,C=o.inputsMargin,x=o.inputsBorders,R=o.inputsBorderRadius,v=o.submitButtonTextColor,S=o.submitButtonBackgroundColor,y=o.submitButtonPadding,j=o.submitButtonMargin,w=o.submitButtonBorders,P=o.submitButtonBorderRadius,E=o.isFullWidthSubmitButton,k=(0,r.useBlockProps)({className:"matador-jobs-job-application ".concat(E?"is-style-matador-full-width-submit-button":"")});return React.createElement(React.Fragment,null,React.createElement(u.Notice,{politeness:"polite",isDismissible:!1,status:"warning",style:{color:"#000"}},(0,n.__)("Please note: the Job Application Block may not show all changes in the editor. Please check a page preview to ensure this block is styled as you wish.","matador-jobs")),function(t){var e=t.labelsTextColor,o=t.setLabelsTextColor,a=t.labelsBackgroundColor,l=t.setLabelsBackgroundColor,i=t.inputsTextColor,s=t.setInputsTextColor,p=t.inputsBackgroundColor,d=t.setInputsBackgroundColor,b=t.submitButtonTextColor,m=t.setSubmitButtonTextColor,g=t.submitButtonBackgroundColor,f=t.setSubmitButtonBackgroundColor,_=(0,c.useSelect)((function(t){return t(r.store).getSettings().colors||[]}));return React.createElement(React.Fragment,null,React.createElement(r.InspectorControls,{group:"color"},React.createElement(u.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement("h4",null,(0,n.__)("Labels Text Color","matador-jobs")),React.createElement(u.ColorPalette,{colors:_,value:e,onChange:function(t){return o(t)},enableAlpha:!0}),React.createElement("h4",null,(0,n.__)("Labels Background Color","matador-jobs")),React.createElement(u.ColorPalette,{colors:_,value:a,onChange:function(t){return l(t)},enableAlpha:!0}),React.createElement("h4",null,(0,n.__)("Inputs Text Color","matador-jobs")),React.createElement(u.ColorPalette,{colors:_,value:i,onChange:function(t){return s(t)},enableAlpha:!0}),React.createElement("h4",null,(0,n.__)("Inputs Background Color","matador-jobs")),React.createElement(u.ColorPalette,{colors:_,value:p,onChange:function(t){return d(t)},enableAlpha:!0}),React.createElement("h4",null,(0,n.__)("Submit Button Text Color","matador-jobs")),React.createElement(u.ColorPalette,{colors:_,value:b,onChange:function(t){return m(t)},enableAlpha:!0}),React.createElement("h4",null,(0,n.__)("Submit Button Background Color","matador-jobs")),React.createElement(u.ColorPalette,{colors:_,value:g,onChange:function(t){return f(t)},enableAlpha:!0}))))}({labelsTextColor:l,setLabelsTextColor:function(t){return a({labelsTextColor:t})},labelsBackgroundColor:p,setLabelsBackgroundColor:function(t){return a({labelsBackgroundColor:t})},inputsTextColor:_,setInputsTextColor:function(t){return a({inputsTextColor:t})},inputsBackgroundColor:B,setInputsBackgroundColor:function(t){return a({inputsBackgroundColor:t})},submitButtonTextColor:v,setSubmitButtonTextColor:function(t){return a({submitButtonTextColor:t})},submitButtonBackgroundColor:S,setSubmitButtonBackgroundColor:function(t){return a({submitButtonBackgroundColor:t})}}),function(t){var e=t.labelsPadding,o=t.setLabelsPadding,a=t.labelsMargin,l=t.setLabelsMargin,i=t.inputsPadding,s=t.setInputsPadding,c=t.inputsMargin,p=t.setInputsMargin,d=t.submitButtonPadding,b=t.setSubmitButtonPadding,m=t.submitButtonMargin,g=t.setSubmitButtonMargin;return React.createElement(r.InspectorControls,{group:"dimensions"},React.createElement(u.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement(u.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,n.__)("Labels Padding","matador-jobs"),values:e,onChange:function(t){return o(t)}}),React.createElement("p",null,(0,n.__)("Set padding for the labels","matador-jobs")),React.createElement(u.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,n.__)("Labels Margin","matador-jobs"),values:a,onChange:function(t){return l(t)}}),React.createElement("p",null,(0,n.__)("Set margin for label","matador-jobs")),React.createElement(u.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,n.__)("Inputs Padding","matador-jobs"),values:i,onChange:function(t){return s(t)}}),React.createElement("p",null,(0,n.__)("Set padding for the inputs","matador-jobs")),React.createElement(u.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,n.__)("Inputs Margin","matador-jobs"),values:c,onChange:function(t){return p(t)}}),React.createElement("p",null,(0,n.__)("Set margin for inputs","matador-jobs")),React.createElement(u.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,n.__)("Submit Button Padding","matador-jobs"),values:d,onChange:function(t){return b(t)}}),React.createElement("p",null,(0,n.__)("Set padding for the submit button","matador-jobs")),React.createElement(u.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,n.__)("Submit Button Margin","matador-jobs"),values:m,onChange:function(t){return g(t)}}),React.createElement("p",null,(0,n.__)("Set margin for submit button","matador-jobs"))))}({labelsPadding:b,setLabelsPadding:function(t){return a({labelsPadding:t})},labelsMargin:g,setLabelsMargin:function(t){return a({labelsMargin:t})},inputsPadding:h,setInputsPadding:function(t){return a({inputsPadding:t})},inputsMargin:C,setInputsMargin:function(t){return a({inputsMargin:t})},submitButtonPadding:y,setSubmitButtonPadding:function(t){return a({submitButtonPadding:t})},submitButtonMargin:j,setSubmitButtonMargin:function(t){return a({submitButtonMargin:t})}}),function(t){var e=t.inputsBorders,o=t.setInputsBorders,a=t.inputsBorderRadius,l=t.setInputsBorderRadius,i=t.submitButtonBorders,s=t.setSubmitButtonBorders,p=t.submitButtonBorderRadius,d=t.setSubmitButtonBorderRadius,b=(0,c.useSelect)((function(t){return t(r.store).getSettings().colors||[]}));return React.createElement(React.Fragment,null,React.createElement(r.InspectorControls,{group:"border"},React.createElement(u.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement(u.__experimentalBorderBoxControl,{__next40pxDefaultSize:!0,colors:b,label:(0,n.__)("Inputs Borders","matador-jobs"),onChange:function(t){return o(t)},value:e,enableStyle:!0,enableAlpha:!0}),React.createElement(u.RangeControl,{label:(0,n.__)("Inputs Border Radius (px)","matador-jobs"),onChange:function(t){return l(t)},value:a,min:0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),React.createElement(u.__experimentalBorderBoxControl,{__next40pxDefaultSize:!0,colors:b,label:(0,n.__)("Submit Button Borders","matador-jobs"),onChange:function(t){return s(t)},value:i,enableStyle:!0,enableAlpha:!0}),React.createElement(u.RangeControl,{label:(0,n.__)("Submit Button Border Radius (px)","matador-jobs"),onChange:function(t){return d(t)},value:p,min:0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}))))}({inputsBorders:x,setInputsBorders:function(t){void 0===t.style&&(t.style="solid"),a({inputsBorders:t})},inputsBorderRadius:R,setInputsBorderRadius:function(t){return a({inputsBorderRadius:t+"px"})},submitButtonBorders:w,setSubmitButtonBorders:function(t){return a({submitButtonBorders:t})},submitButtonBorderRadius:P,setSubmitButtonBorderRadius:function(t){return a({submitButtonBorderRadius:t+"px"})}}),React.createElement(r.InspectorControls,null,React.createElement(u.PanelBody,{title:(0,n.__)("Settings","matador-jobs"),initialOpen:!0},function(t){var e=t.labelsPosition,o=t.setLabelsPosition;return React.createElement(React.Fragment,null,React.createElement(u.PanelRow,null,React.createElement(u.SelectControl,{label:(0,n.__)("Labels Position","matador-jobs"),help:(0,n.__)("Choose how the labels are positioned relative to their input field","matador-jobs"),value:e,options:[{value:"column",label:(0,n.__)("Above","matador-jobs")},{value:"column-reverse",label:(0,n.__)("Below","matador-jobs")},{value:"row",label:(0,n.__)("To Left","matador-jobs")},{value:"row-reverse",label:(0,n.__)("To Right","matador-jobs")}],onChange:function(t){return o(t)},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})))}({labelsPosition:f,setLabelsPosition:function(t){return a({labelsPosition:t})}}),function(t){var e=t.isFullWidthSubmitButton,o=t.setIsFullWidthSubmitButton;return React.createElement(u.PanelRow,null,React.createElement(u.ToggleControl,{__nextHasNoMarginBottom:!0,checked:e,label:(0,n.__)("Full Width Submit Button","matador-jobs"),help:(0,n.__)("Make the submit button take up the full width of its container","matador-jobs"),onChange:function(){return o(!e)}}))}({isFullWidthSubmitButton:E,setIsFullWidthSubmitButton:function(t){return a({isFullWidthSubmitButton:t})}}))),React.createElement("div",d({},k,{style:(e={"--matador-application-labels-text-color":l,"--matador-application-labels-background-color":p,"--matador-application-labels-padding-top":b.top,"--matador-application-labels-padding-right":b.right,"--matador-application-labels-padding-bottom":b.bottom,"--matador-application-labels-padding-left":b.left,"--matador-application-labels-margin-top":g.top,"--matador-application-labels-margin-right":g.right,"--matador-application-labels-margin-bottom":g.bottom,"--matador-application-labels-margin-left":g.left,"--matador-application-labels-position":f,"--matador-application-inputs-text-color":_,"--matador-application-inputs-background-color":B,"--matador-application-inputs-padding-top":h.top,"--matador-application-inputs-padding-right":h.right,"--matador-application-inputs-padding-bottom":h.bottom,"--matador-application-inputs-padding-left":h.left,"--matador-application-inputs-margin-top":C.top,"--matador-application-inputs-margin-right":C.right,"--matador-application-inputs-margin-bottom":C.bottom,"--matador-application-inputs-margin-left":C.left,"--matador-application-inputs-border-radius":R,"--matador-application-submit-button-text-color":v,"--matador-application-submit-button-background-color":S,"--matador-application-submit-button-padding-top":y.top,"--matador-application-submit-button-padding-right":y.right,"--matador-application-submit-button-padding-bottom":y.bottom,"--matador-application-submit-button-padding-left":y.left,"--matador-application-submit-button-margin-top":j.top,"--matador-application-submit-button-margin-right":j.right,"--matador-application-submit-button-margin-bottom":j.bottom,"--matador-application-submit-button-margin-left":j.left,"--matador-application-submit-button-border-radius":P},x&&Object.hasOwn(x,"top")?e=m(m({},e),{},{"--matador-application-inputs-borders-top":"".concat(x.top.style," ").concat(x.top.width," ").concat(x.top.color),"--matador-application-inputs-borders-right":"".concat(x.right.style," ").concat(x.right.width," ").concat(x.right.color),"--matador-application-inputs-borders-bottom":"".concat(x.bottom.style," ").concat(x.bottom.width," ").concat(x.bottom.color),"--matador-application-inputs-borders-left":"".concat(x.left.style," ").concat(x.left.width," ").concat(x.left.color)}):x&&Object.hasOwn(x,"color")&&(e=m(m({},e),{},{"--matador-application-inputs-borders-style":x.style,"--matador-application-inputs-borders-width":x.width,"--matador-application-inputs-borders-color":x.color})),w&&Object.hasOwn(w,"top")?e=m(m({},e),{},{"--matador-application-submit-button-borders-top":"".concat(w.top.style," ").concat(w.top.width," ").concat(w.top.color),"--matador-application-submit-button-borders-right":"".concat(w.right.style," ").concat(w.right.width," ").concat(w.right.color),"--matador-application-submit-button-borders-bottom":"".concat(w.bottom.style," ").concat(w.bottom.width," ").concat(w.bottom.color),"--matador-application-submit-button-borders-left":"".concat(w.left.style," ").concat(w.left.width," ").concat(w.left.color)}):w&&Object.hasOwn(w,"color")&&(e=m(m({},e),{},{"--matador-application-submit-button-borders-style":w.style,"--matador-application-submit-button-borders-width":w.width,"--matador-application-submit-button-borders-color":w.color})),e)}),React.createElement(i(),{block:s.UU})))}})}},o={};function a(t){var n=o[t];if(void 0!==n)return n.exports;var r=o[t]={exports:{}};return e[t](r,r.exports,a),r.exports}a.m=e,t=[],a.O=(e,o,n,r)=>{if(!o){var l=1/0;for(c=0;c<t.length;c++){for(var[o,n,r]=t[c],i=!0,u=0;u<o.length;u++)(!1&r||l>=r)&&Object.keys(a.O).every((t=>a.O[t](o[u])))?o.splice(u--,1):(i=!1,r<l&&(l=r));if(i){t.splice(c--,1);var s=n();void 0!==s&&(e=s)}}return e}r=r||0;for(var c=t.length;c>0&&t[c-1][2]>r;c--)t[c]=t[c-1];t[c]=[o,n,r]},a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var o in e)a.o(e,o)&&!a.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={896:0,288:0};a.O.j=e=>0===t[e];var e=(e,o)=>{var n,r,[l,i,u]=o,s=0;if(l.some((e=>0!==t[e]))){for(n in i)a.o(i,n)&&(a.m[n]=i[n]);if(u)var c=u(a)}for(e&&e(o);s<l.length;s++)r=l[s],a.o(t,r)&&t[r]&&t[r][0](),t[r]=0;return a.O(c)},o=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];o.forEach(e.bind(null,0)),o.push=e.bind(null,o.push.bind(o))})();var n=a.O(void 0,[288],(()=>a(818)));n=a.O(n)})(); -
matador-jobs/trunk/src/Editors/Blocks/build/job-description/index.asset.php
r3254249 r3279451 1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => ' 809f1c0fae7595be6507');1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '4f170e72415afb1b543c'); -
matador-jobs/trunk/src/Editors/Blocks/build/job-description/index.js
r3254249 r3279451 1 (()=>{"use strict";var e,t={961:()=>{const e=window.wp.blocks,t=window.wp.i18n,i=window.wp.blockEditor,n=window.wp.url,r=window.wp.element,o=window.wp.components;function a(e){var t=e.description,i=e.isLimited,n=e.limit;return React.createElement(r.RawHTML,null,i?t.substring(0,n):t)}function l(e){var i=e.isLimited,n=e.setIsLimited,r=e.limit,a=e.setLimit;return React.createElement(React.Fragment,null,React.createElement(o.PanelRow,null,React.createElement(o.ToggleControl,{label:(0,t.__)("Limit Text Length?","matador-jobs"),checked:i,onChange:function(e){return n(e)}})),React.createElement(o.PanelRow,null,i&&React.createElement(o.RangeControl,{ label:(0,t.__)("Limit","matador-jobs"),help:(0,t.__)("Set the limit for how many characters to display","matador-jobs"),value:r,onChange:function(e){return a(e)},min:20,max:4e3})))}const c=JSON.parse('{"UU":"matador-jobs/job-description"}');(0,e.registerBlockType)(c.UU,{edit:function(e){var c=e.attributes,s=e.setAttributes,m=e.context,d=(0,i.useBlockProps)({className:"matador-description-block"}),u=c.postId,p=void 0===u?m.postId:u,f=c.descriptionContent,v=c.limit,w=c.isLimited;return(0,r.useEffect)((function(){if(p){var e={fields:"description",limit:v};wp.apiFetch({path:(0,n.addQueryArgs)("matador/v1/jobs/job-listings/".concat(p),e)}).then((function(e){var t;null!=e&&e.description&&(t=null==e?void 0:e.description,s({descriptionContent:t}))}))}}),[p,v,w,s]),React.createElement(React.Fragment,null,React.createElement(i.InspectorControls,null,React.createElement(o.PanelBody,{title:(0,t.__)("Settings","matador-jobs"),initialOpen:!0},React.createElement(l,{isLimited:w,setIsLimited:function(e){s({isLimited:e})},limit:v,setLimit:function(e){return s({limit:e})}}))),React.createElement("div",d,React.createElement(a,{description:f,isLimited:w,limit:v})))}})}},i={};function n(e){var r=i[e];if(void 0!==r)return r.exports;var o=i[e]={exports:{}};return t[e](o,o.exports,n),o.exports}n.m=t,e=[],n.O=(t,i,r,o)=>{if(!i){var a=1/0;for(m=0;m<e.length;m++){for(var[i,r,o]=e[m],l=!0,c=0;c<i.length;c++)(!1&o||a>=o)&&Object.keys(n.O).every((e=>n.O[e](i[c])))?i.splice(c--,1):(l=!1,o<a&&(a=o));if(l){e.splice(m--,1);var s=r();void 0!==s&&(t=s)}}return t}o=o||0;for(var m=e.length;m>0&&e[m-1][2]>o;m--)e[m]=e[m-1];e[m]=[i,r,o]},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={660:0,652:0};n.O.j=t=>0===e[t];var t=(t,i)=>{var r,o,[a,l,c]=i,s=0;if(a.some((t=>0!==e[t]))){for(r in l)n.o(l,r)&&(n.m[r]=l[r]);if(c)var m=c(n)}for(t&&t(i);s<a.length;s++)o=a[s],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.O(m)},i=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var r=n.O(void 0,[652],(()=>n(961)));r=n.O(r)})();1 (()=>{"use strict";var e,t={961:()=>{const e=window.wp.blocks,t=window.wp.i18n,i=window.wp.blockEditor,n=window.wp.url,r=window.wp.element,o=window.wp.components;function a(e){var t=e.description,i=e.isLimited,n=e.limit;return React.createElement(r.RawHTML,null,i?t.substring(0,n):t)}function l(e){var i=e.isLimited,n=e.setIsLimited,r=e.limit,a=e.setLimit;return React.createElement(React.Fragment,null,React.createElement(o.PanelRow,null,React.createElement(o.ToggleControl,{label:(0,t.__)("Limit Text Length?","matador-jobs"),checked:i,onChange:function(e){return n(e)}})),React.createElement(o.PanelRow,null,i&&React.createElement(o.RangeControl,{__next40pxDefaultSize:!0,label:(0,t.__)("Limit","matador-jobs"),help:(0,t.__)("Set the limit for how many characters to display","matador-jobs"),value:r,onChange:function(e){return a(e)},min:20,max:4e3})))}const c=JSON.parse('{"UU":"matador-jobs/job-description"}');(0,e.registerBlockType)(c.UU,{edit:function(e){var c=e.attributes,s=e.setAttributes,m=e.context,d=(0,i.useBlockProps)({className:"matador-description-block"}),u=c.postId,p=void 0===u?m.postId:u,f=c.descriptionContent,v=c.limit,w=c.isLimited;return(0,r.useEffect)((function(){if(p){var e={fields:"description",limit:v};wp.apiFetch({path:(0,n.addQueryArgs)("matador/v1/jobs/job-listings/".concat(p),e)}).then((function(e){var t;null!=e&&e.description&&(t=null==e?void 0:e.description,s({descriptionContent:t}))}))}}),[p,v,w,s]),React.createElement(React.Fragment,null,React.createElement(i.InspectorControls,null,React.createElement(o.PanelBody,{title:(0,t.__)("Settings","matador-jobs"),initialOpen:!0},React.createElement(l,{isLimited:w,setIsLimited:function(e){s({isLimited:e})},limit:v,setLimit:function(e){return s({limit:e})}}))),React.createElement("div",d,React.createElement(a,{description:f,isLimited:w,limit:v})))}})}},i={};function n(e){var r=i[e];if(void 0!==r)return r.exports;var o=i[e]={exports:{}};return t[e](o,o.exports,n),o.exports}n.m=t,e=[],n.O=(t,i,r,o)=>{if(!i){var a=1/0;for(m=0;m<e.length;m++){for(var[i,r,o]=e[m],l=!0,c=0;c<i.length;c++)(!1&o||a>=o)&&Object.keys(n.O).every((e=>n.O[e](i[c])))?i.splice(c--,1):(l=!1,o<a&&(a=o));if(l){e.splice(m--,1);var s=r();void 0!==s&&(t=s)}}return t}o=o||0;for(var m=e.length;m>0&&e[m-1][2]>o;m--)e[m]=e[m-1];e[m]=[i,r,o]},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={660:0,652:0};n.O.j=t=>0===e[t];var t=(t,i)=>{var r,o,[a,l,c]=i,s=0;if(a.some((t=>0!==e[t]))){for(r in l)n.o(l,r)&&(n.m[r]=l[r]);if(c)var m=c(n)}for(t&&t(i);s<a.length;s++)o=a[s],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.O(m)},i=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var r=n.O(void 0,[652],(()=>n(961)));r=n.O(r)})(); -
matador-jobs/trunk/src/Editors/Blocks/build/job-field/index.asset.php
r3254249 r3279451 1 <?php return array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => ' f18babd1aa5ddf77a2d4');1 <?php return array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '17df6eccacbf4b9348b4'); -
matador-jobs/trunk/src/Editors/Blocks/build/job-field/index.js
r3254249 r3279451 1 (()=>{"use strict";var t,e={ 754:(t,e,r)=>{const n=window.wp.blocks,o=window.wp.i18n,a=window.wp.blockEditor,i=window.wp.url,l=window.wp.element,c=window.wp.components,u=window.wp.apiFetch;var s=r.n(u),f=r(953);function h(t){var e=t.elementFieldValue,r=t.selectedFieldValue;return e&&"No Field"!==e?React.createElement(l.RawHTML,null,"".concat(e)):r?React.createElement(l.RawHTML,null,(0,o.__)(function(t){var e=t;switch(t.toLowerCase()){case"category":e="Category";break;case"location":e="Location";break;case"salary":e="Salary";break;case"employmenttype":e="Employment Type";break;case"externalid":e="ATS ID";break;default:e=f.A.titleize(t)}return e}(r),"matador-jobs")):React.createElement(l.RawHTML,null,(0,o.__)("Choose a Job Field","matador-jobs"))}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,l=[],c=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(l.push(n.value),l.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}const m=JSON.parse('{"UU":"matador-jobs/job-field"}');(0,n.registerBlockType)(m.UU,{edit:function(t){var e=t.attributes,r=t.setAttributes,n=t.context,u=(0,a.useBlockProps)({className:"matador-field-block"}),p=d((0,l.useState)(!1),2),m=p[0],y=p[1],v=d((0,l.useState)({}),2),b=v[0],g=v[1];(0,l.useEffect)((function(){s()({path:"matador/v1/jobs/job-fields"}).then((function(t){0<Object.keys(t).length&&g(t)})).catch((function(t){console.error("Error fetching job fields:",t)}))}),[]);var w=e.selectedField,E=e.postId,_=void 0===E?n.postId:E,j=e.fieldValue,x=e.displayLabel;return(0,l.useEffect)((function(){if(_&&w){var t={fields:w};s()({path:(0,i.addQueryArgs)("matador/v1/jobs/job-listings/".concat(_),t)}).then((function(t){if(t[w]){var e=t[w];Array===e.constructor&&(e=t[w][0]),Object===e.constructor&&(e=Object.hasOwn(e,"name")?e.name:JSON.stringify(e)),r({fieldValue:e})}}))}}),[_,w,r]),React.createElement(React.Fragment,null,React.createElement(a.InspectorControls,null,React.createElement(c.PanelBody,{title:(0,o.__)("Settings","matador-jobs"),initialOpen:!0},React.createElement(c.PanelRow,null,function(t){var e=t.availableFields,r=t.selectedField,n=t.setSelectedField,a=t.jobFieldModalOpen,i=t.setJobFieldModalOpen;if(!e||0===Object.keys(e).length)return React.createElement(c.Spinner,null);var l=e.metaKeys,u=e.registeredTaxonomies;return React.createElement(React.Fragment,null,React.createElement(c.__experimentalVStack,{style:{marginBottom:"10px",paddingBottom:"10px"}},React.createElement("p",null,"Current Field is: ",r?f.A.titleize(r):"No Field Set"),React.createElement(c.Button,{variant:"primary",onClick:function(){return i(!0)},label:(0,o.__)("Choose a Job Field","matador-jobs"),text:(0,o.__)("Choose a Job Field","matador-jobs"),icon:"info"})),a&&React.createElement(c.Modal,{onRequestClose:function(){return i(!1)},title:(0,o.__)("Job Fields","matador-jobs"),size:"medium"},React.createElement(c.Panel,{header:"Which job field should be displayed?"},React.createElement(c.PanelBody,{title:(0,o.__)("Job Meta Fields","matador-jobs"),initialOpen:!1},l.map((function(t){return React.createElement("div",{key:t},React.createElement(c.__experimentalHStack,{style:{marginBottom:"10px",paddingBottom:"10px"}},React.createElement(c.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)(f.A.titleize(t),"matador-jobs"),checked:r===t,onChange:function(e){return n(e?t:"")}})))}))),React.createElement(c.PanelBody,{title:(0,o.__)("Job Taxonomy Fields","matador-jobs"),initialOpen:!1},u.map((function(t){return React.createElement("div",{key:t},React.createElement(c.__experimentalHStack,{style:{marginBottom:"10px",paddingBottom:"10px"}},React.createElement(c.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)(f.A.titleize(t),"matador-jobs"),checked:r===t,onChange:function(){return n(t)}})))}))))))}({availableFields:b,selectedField:w,setSelectedField:function(t){r({selectedField:t})},jobFieldModalOpen:m,setJobFieldModalOpen:y})),React.createElement(c.PanelRow,null,React.createElement(c.TextControl,{label:(0,o.__)("Display Label","matador-jobs"),help:(0,o.__)("A label to be shown next to the field","matador-jobs"),value:x,onChange:function(t){r({displayLabel:t})}})))),React.createElement("div",u,React.createElement("span",null,x),React.createElement(h,{elementFieldValue:j,selectedFieldValue:w})))}})},953:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){o=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",s=l.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),l=new A(n||[]);return i(a,"_invoke",{value:R(t,r,l)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",m="suspendedYield",y="executing",v="completed",b={};function g(){}function w(){}function E(){}var _={};f(_,c,(function(){return this}));var j=Object.getPrototypeOf,x=j&&j(j(T([])));x&&x!==r&&a.call(x,c)&&(_=x);var O=E.prototype=g.prototype=Object.create(_);function L(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,i,l,c){var u=d(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==n(f)&&a.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,l,c)}),(function(t){r("throw",t,l,c)})):e.resolve(f).then((function(t){s.value=t,l(s)}),(function(t){return r("throw",t,l,c)}))}c(u.arg)}var o;i(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(a,a):a()}})}function R(e,r,n){var o=p;return function(a,i){if(o===y)throw Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var l=n.delegate;if(l){var c=F(l,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=d(e,r,n);if("normal"===u.type){if(o=n.done?v:m,u.arg===b)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function F(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,F(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var a=d(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,b;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(a.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(n(e)+" is not iterable")}return w.prototype=E,i(O,"constructor",{value:E,configurable:!0}),i(E,"constructor",{value:w,configurable:!0}),w.displayName=f(E,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,f(t,s,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},L(k.prototype),f(k.prototype,u,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new k(h(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(O),f(O,s,"Generator"),f(O,c,(function(){return this})),f(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return l.type="throw",l.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function a(t,e,r,n,o,a,i){try{var l=t[a](i),c=l.value}catch(t){return void r(t)}l.done?e(c):Promise.resolve(c).then(n,o)}var i,l;r.d(e,{A:()=>c}),window.wp.coreData;const c={titleize:function(t){var e=t.replace(/[-_]/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").toLowerCase().split(" ").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ");return e},publishedJobCount:(i=o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,wp.apiFetch({path:"/matador/v1/jobs/job-listings"});case 3:if(e=t.sent){t.next=6;break}return t.abrupt("return",0);case 6:return t.abrupt("return",e.length);case 9:return t.prev=9,t.t0=t.catch(0),console.error("Error fetching job listings:",t.t0),t.abrupt("return",0);case 13:case"end":return t.stop()}}),t,null,[[0,9]])})),l=function(){var t=this,e=arguments;return new Promise((function(r,n){var o=i.apply(t,e);function l(t){a(o,r,n,l,c,"next",t)}function c(t){a(o,r,n,l,c,"throw",t)}l(void 0)}))},function(){return l.apply(this,arguments)})}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var a=r[t]={exports:{}};return e[t](a,a.exports,n),a.exports}n.m=e,t=[],n.O=(e,r,o,a)=>{if(!r){var i=1/0;for(s=0;s<t.length;s++){for(var[r,o,a]=t[s],l=!0,c=0;c<r.length;c++)(!1&a||i>=a)&&Object.keys(n.O).every((t=>n.O[t](r[c])))?r.splice(c--,1):(l=!1,a<i&&(i=a));if(l){t.splice(s--,1);var u=o();void 0!==u&&(e=u)}}return e}a=a||0;for(var s=t.length;s>0&&t[s-1][2]>a;s--)t[s]=t[s-1];t[s]=[r,o,a]},n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={59:0,78:0,458:0};n.O.j=e=>0===t[e];var e=(e,r)=>{var o,a,[i,l,c]=r,u=0;if(i.some((e=>0!==t[e]))){for(o in l)n.o(l,o)&&(n.m[o]=l[o]);if(c)var s=c(n)}for(e&&e(r);u<i.length;u++)a=i[u],n.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return n.O(s)},r=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})();var o=n.O(void 0,[458],(()=>n(754)));o=n.O(o)})();1 (()=>{"use strict";var t,e={953:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){o=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",s=l.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),l=new A(n||[]);return i(a,"_invoke",{value:R(t,r,l)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",m="suspendedYield",y="executing",v="completed",b={};function g(){}function w(){}function E(){}var _={};f(_,c,(function(){return this}));var x=Object.getPrototypeOf,j=x&&x(x(T([])));j&&j!==r&&a.call(j,c)&&(_=j);var O=E.prototype=g.prototype=Object.create(_);function L(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,i,l,c){var u=p(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==n(f)&&a.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,l,c)}),(function(t){r("throw",t,l,c)})):e.resolve(f).then((function(t){s.value=t,l(s)}),(function(t){return r("throw",t,l,c)}))}c(u.arg)}var o;i(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(a,a):a()}})}function R(e,r,n){var o=d;return function(a,i){if(o===y)throw Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var l=n.delegate;if(l){var c=F(l,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=p(e,r,n);if("normal"===u.type){if(o=n.done?v:m,u.arg===b)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function F(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,F(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var a=p(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,b;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(a.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(n(e)+" is not iterable")}return w.prototype=E,i(O,"constructor",{value:E,configurable:!0}),i(E,"constructor",{value:w,configurable:!0}),w.displayName=f(E,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,f(t,s,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},L(k.prototype),f(k.prototype,u,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new k(h(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(O),f(O,s,"Generator"),f(O,c,(function(){return this})),f(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return l.type="throw",l.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function a(t,e,r,n,o,a,i){try{var l=t[a](i),c=l.value}catch(t){return void r(t)}l.done?e(c):Promise.resolve(c).then(n,o)}var i,l;r.d(e,{A:()=>c}),window.wp.coreData;const c={titleize:function(t){var e=t.replace(/[-_]/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").toLowerCase().split(" ").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ");return e},publishedJobCount:(i=o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,wp.apiFetch({path:"/matador/v1/jobs/job-listings"});case 3:if(e=t.sent){t.next=6;break}return t.abrupt("return",0);case 6:return t.abrupt("return",e.length);case 9:return t.prev=9,t.t0=t.catch(0),console.error("Error fetching job listings:",t.t0),t.abrupt("return",0);case 13:case"end":return t.stop()}}),t,null,[[0,9]])})),l=function(){var t=this,e=arguments;return new Promise((function(r,n){var o=i.apply(t,e);function l(t){a(o,r,n,l,c,"next",t)}function c(t){a(o,r,n,l,c,"throw",t)}l(void 0)}))},function(){return l.apply(this,arguments)})}},754:(t,e,r)=>{const n=window.wp.blocks,o=window.wp.i18n,a=window.wp.blockEditor,i=window.wp.url,l=window.wp.element,c=window.wp.components,u=window.wp.apiFetch;var s=r.n(u),f=r(953);function h(t){var e=t.elementFieldValue,r=t.selectedFieldValue;return e&&"No Field"!==e?React.createElement(l.RawHTML,null,"".concat(e)):r?React.createElement(l.RawHTML,null,(0,o.__)(function(t){var e=t;switch(t.toLowerCase()){case"category":e="Category";break;case"location":e="Location";break;case"salary":e="Salary";break;case"employmenttype":e="Employment Type";break;case"externalid":e="ATS ID";break;default:e=f.A.titleize(t)}return e}(r),"matador-jobs")):React.createElement(l.RawHTML,null,(0,o.__)("Choose a Job Field","matador-jobs"))}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,l=[],c=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(l.push(n.value),l.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}const m=JSON.parse('{"UU":"matador-jobs/job-field"}');(0,n.registerBlockType)(m.UU,{edit:function(t){var e=t.attributes,r=t.setAttributes,n=t.context,u=(0,a.useBlockProps)({className:"matador-field-block"}),d=p((0,l.useState)(!1),2),m=d[0],y=d[1],v=p((0,l.useState)({}),2),b=v[0],g=v[1];(0,l.useEffect)((function(){s()({path:"matador/v1/jobs/job-fields"}).then((function(t){0<Object.keys(t).length&&g(t)})).catch((function(t){console.error("Error fetching job fields:",t)}))}),[]);var w=e.selectedField,E=e.postId,_=void 0===E?n.postId:E,x=e.fieldValue,j=e.displayLabel;return(0,l.useEffect)((function(){if(_&&w){var t={fields:w};s()({path:(0,i.addQueryArgs)("matador/v1/jobs/job-listings/".concat(_),t)}).then((function(t){if(t[w]){var e=t[w];Array===e.constructor&&(e=t[w][0]),Object===e.constructor&&(e=Object.hasOwn(e,"name")?e.name:JSON.stringify(e)),r({fieldValue:e})}}))}}),[_,w,r]),React.createElement(React.Fragment,null,React.createElement(a.InspectorControls,null,React.createElement(c.PanelBody,{title:(0,o.__)("Settings","matador-jobs"),initialOpen:!0},React.createElement(c.PanelRow,null,function(t){var e=t.availableFields,r=t.selectedField,n=t.setSelectedField,a=t.jobFieldModalOpen,i=t.setJobFieldModalOpen;if(!e||0===Object.keys(e).length)return React.createElement(c.Spinner,null);var l=e.metaKeys,u=e.registeredTaxonomies;return React.createElement(React.Fragment,null,React.createElement(c.__experimentalVStack,{style:{marginBottom:"10px",paddingBottom:"10px"}},React.createElement("p",null,"Current Field is: ",r?f.A.titleize(r):"No Field Set"),React.createElement(c.Button,{variant:"primary",onClick:function(){return i(!0)},label:(0,o.__)("Choose a Job Field","matador-jobs"),text:(0,o.__)("Choose a Job Field","matador-jobs"),icon:"info"})),a&&React.createElement(c.Modal,{onRequestClose:function(){return i(!1)},title:(0,o.__)("Job Fields","matador-jobs"),size:"medium"},React.createElement(c.Panel,{header:"Which job field should be displayed?"},React.createElement(c.PanelBody,{title:(0,o.__)("Job Meta Fields","matador-jobs"),initialOpen:!1},l.map((function(t){return React.createElement("div",{key:t},React.createElement(c.__experimentalHStack,{style:{marginBottom:"10px",paddingBottom:"10px"}},React.createElement(c.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)(f.A.titleize(t),"matador-jobs"),checked:r===t,onChange:function(e){return n(e?t:"")}})))}))),React.createElement(c.PanelBody,{title:(0,o.__)("Job Taxonomy Fields","matador-jobs"),initialOpen:!1},u.map((function(t){return React.createElement("div",{key:t},React.createElement(c.__experimentalHStack,{style:{marginBottom:"10px",paddingBottom:"10px"}},React.createElement(c.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,o.__)(f.A.titleize(t),"matador-jobs"),checked:r===t,onChange:function(){return n(t)}})))}))))))}({availableFields:b,selectedField:w,setSelectedField:function(t){r({selectedField:t})},jobFieldModalOpen:m,setJobFieldModalOpen:y})),React.createElement(c.PanelRow,null,React.createElement(c.TextControl,{label:(0,o.__)("Display Label","matador-jobs"),help:(0,o.__)("A label to be shown next to the field","matador-jobs"),value:j,onChange:function(t){r({displayLabel:t})},__next40pxDefaultSize:!0})))),React.createElement("div",u,React.createElement("span",null,j),React.createElement(h,{elementFieldValue:x,selectedFieldValue:w})))}})}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var a=r[t]={exports:{}};return e[t](a,a.exports,n),a.exports}n.m=e,t=[],n.O=(e,r,o,a)=>{if(!r){var i=1/0;for(s=0;s<t.length;s++){for(var[r,o,a]=t[s],l=!0,c=0;c<r.length;c++)(!1&a||i>=a)&&Object.keys(n.O).every((t=>n.O[t](r[c])))?r.splice(c--,1):(l=!1,a<i&&(i=a));if(l){t.splice(s--,1);var u=o();void 0!==u&&(e=u)}}return e}a=a||0;for(var s=t.length;s>0&&t[s-1][2]>a;s--)t[s]=t[s-1];t[s]=[r,o,a]},n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={59:0,78:0,458:0};n.O.j=e=>0===t[e];var e=(e,r)=>{var o,a,[i,l,c]=r,u=0;if(i.some((e=>0!==t[e]))){for(o in l)n.o(l,o)&&(n.m[o]=l[o]);if(c)var s=c(n)}for(e&&e(r);u<i.length;u++)a=i[u],n.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return n.O(s)},r=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})();var o=n.O(void 0,[458],(()=>n(754)));o=n.O(o)})(); -
matador-jobs/trunk/src/Editors/Blocks/build/job-taxonomy-filters/index.asset.php
r3254249 r3279451 1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => ' a6c557e21ce430e89f21');1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => 'b442bb7b60bd81adc60a'); -
matador-jobs/trunk/src/Editors/Blocks/build/job-taxonomy-filters/index.js
r3254249 r3279451 1 (()=>{"use strict";var t,e={953:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){o=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",s=l.toStringTag||"@@toStringTag";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),l=new P(n||[]);return i(a,"_invoke",{value: k(t,r,l)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var d="suspendedStart",m="suspendedYield",v="executing",y="completed",b={};function g(){}function w(){}function _(){}var x={};h(x,c,(function(){return this}));var E=Object.getPrototypeOf,j=E&&E(E(T([])));j&&j!==r&&a.call(j,c)&&(x=j);var L=_.prototype=g.prototype=Object.create(x);function O(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function R(t,e){function r(o,i,l,c){var u=p(t[o],t,i);if("throw"!==u.type){var s=u.arg,h=s.value;return h&&"object"==n(h)&&a.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,l,c)}),(function(t){r("throw",t,l,c)})):e.resolve(h).then((function(t){s.value=t,l(s)}),(function(t){return r("throw",t,l,c)}))}c(u.arg)}var o;i(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(a,a):a()}})}function k(e,r,n){var o=d;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var l=n.delegate;if(l){var c=C(l,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var u=p(e,r,n);if("normal"===u.type){if(o=n.done?y:m,u.arg===b)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=y,n.method="throw",n.arg=u.arg)}}}function C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var a=p(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,b;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(a.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(n(e)+" is not iterable")}return w.prototype=_,i(L,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:w,configurable:!0}),w.displayName=h(_,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,h(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},O(R.prototype),h(R.prototype,u,(function(){return this})),e.AsyncIterator=R,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new R(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},O(L),h(L,s,"Generator"),h(L,c,(function(){return this})),h(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return l.type="throw",l.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function a(t,e,r,n,o,a,i){try{var l=t[a](i),c=l.value}catch(t){return void r(t)}l.done?e(c):Promise.resolve(c).then(n,o)}var i,l;r.d(e,{A:()=>c}),window.wp.coreData;const c={titleize:function(t){var e=t.replace(/[-_]/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").toLowerCase().split(" ").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ");return e},publishedJobCount:(i=o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,wp.apiFetch({path:"/matador/v1/jobs/job-listings"});case 3:if(e=t.sent){t.next=6;break}return t.abrupt("return",0);case 6:return t.abrupt("return",e.length);case 9:return t.prev=9,t.t0=t.catch(0),console.error("Error fetching job listings:",t.t0),t.abrupt("return",0);case 13:case"end":return t.stop()}}),t,null,[[0,9]])})),l=function(){var t=this,e=arguments;return new Promise((function(r,n){var o=i.apply(t,e);function l(t){a(o,r,n,l,c,"next",t)}function c(t){a(o,r,n,l,c,"throw",t)}l(void 0)}))},function(){return l.apply(this,arguments)})}},955:(t,e,r)=>{const n=window.wp.blocks,o=window.wp.i18n,a=window.wp.blockEditor,i=window.wp.serverSideRender;var l=r.n(i);const c=window.wp.components,u=window.wp.element,s=JSON.parse('{"UU":"matador-jobs/job-taxonomy-filters"}');var h=r(953);(0,n.registerBlockType)(s.UU,{edit:function(t){var e=t.attributes,r=t.setAttributes,n=(0,a.useBlockProps)({className:"matador-job-taxonomy-filters-block"}),i=e.taxonomies,f=e.chosenTaxonomy,p=e.label,d=e.displayAs,m=e.method,v=e.showAll,y=e.orderBy,b=e.hideEmpty,g=function(t){r({taxonomies:t})};return(0,u.useEffect)((function(){wp.apiFetch({path:"/matador/v1/jobs/taxonomies"}).then((function(t){var e=Object.values(t);0<e.length&&Object.hasOwn(e[0],"key")&&g(e)})).catch((function(t){console.error(t)}))}),[g]),React.createElement(React.Fragment,null,React.createElement(a.InspectorControls,null,React.createElement(c.PanelBody,{title:(0,o.__)("Settings","matador-jobs"),initialOpen:!0},React.createElement(c.PanelRow,null,function(t){var e=t.chosenTaxonomy,r=t.setChosenTaxonomy,n=t.taxonomies;return n?React.createElement(c.SelectControl,{label:(0,o.__)("Chosen Taxonomy","matador-jobs"),value:e,options:n.map((function(t){return{label:h.A.titleize(t.single),value:t.slug}})),onChange:function(t){return r(t)},__nextHasNoMarginBottom:!0}):React.createElement(c.Spinner,null)}({chosenTaxonomy:f,setChosenTaxonomy:function(t){r({chosenTaxonomy:t})},taxonomies:i})),React.createElement(c.PanelRow,null,function(t){var e=t.label,r=t.setLabel;return React.createElement(c.TextControl,{label:(0,o.__)("Label Text","matador-jobs"),help:(0,o.__)("A label for the list (leave blank if no title desired)","matador-jobs"),value:e,onChange:function(t){return r(t)},__nextHasNoMarginBottom:!0})}({label:p,setLabel:function(t){r({label:t})}})),React.createElement(c.PanelRow,null,function(t){var e=t.displayAs,r=t.setDisplayAs;return React.createElement(c.SelectControl,{label:(0,o.__)("Display as","matador-jobs"),help:(0,o.__)("Choose how the taxonomies are displayed","matador-jobs"),value:e,options:[{label:(0,o.__)("List","matador-jobs"),value:"list"},{label:(0,o.__)("Dropdown","matador-jobs"),value:"dropdown"},{label:(0,o.__)("Multiselect","matador-jobs"),value:"multiselect"}],onChange:function(t){return r(t)},__nextHasNoMarginBottom:!0})}({displayAs:d,setDisplayAs:function(t){r({displayAs:t})}})),"list"!==d&&React.createElement(c.PanelRow,null,function(t){var e=t.method,r=t.setMethod;return React.createElement(c.SelectControl,{label:(0,o.__)("Method","matador-jobs"),help:(0,o.__)("Choose how the taxonomies should behave","matador-jobs"),value:e,options:[{label:(0,o.__)("Link","matador-jobs"),value:"link"},{label:(0,o.__)("Filter","matador-jobs"),value:"filter"},{label:(0,o.__)("Value","matador-jobs"),value:"value"}],onChange:function(t){return r(t)},__nextHasNoMarginBottom:!0})}({method:m,setMethod:function(t){r({method:t})}})),React.createElement(c.PanelRow,null,function(t){var e=t.orderBy,r=t.setOrderBy;return React.createElement(c.SelectControl,{label:(0,o.__)("Order By","matador-jobs"),help:(0,o.__)("Choose how to order the taxonomies","matador-jobs"),value:e,options:[{label:(0,o.__)("Name","matador-jobs"),value:"name"},{label:(0,o.__)("Slug","matador-jobs"),value:"slug"},{label:(0,o.__)("Description","matador-jobs"),value:"description"},{label:(0,o.__)("Number of Jobs","matador-jobs"),value:"count"}],onChange:function(t){return r(t)},__nextHasNoMarginBottom:!0})}({orderBy:y,setOrderBy:function(t){r({orderBy:t})}})),React.createElement(c.PanelRow,null,function(t){var e=t.showAll,r=t.setShowAll;return React.createElement(c.ToggleControl,{label:(0,o.__)("Show All","matador-jobs"),help:(0,o.__)("Include a show all option","matador-jobs"),checked:e,onChange:function(t){return r(t)},__nextHasNoMarginBottom:!0})}({showAll:v,setShowAll:function(t){r({showAll:t})}})),React.createElement(c.PanelRow,null,function(t){var e=t.hideEmpty,r=t.setHideEmpty;return React.createElement(c.ToggleControl,{label:(0,o.__)("Hide Empty","matador-jobs"),help:(0,o.__)("Hide taxonomies with no jobs currently","matador-jobs"),checked:e,onChange:function(t){return r(t)},__nextHasNoMarginBottom:!0})}({hideEmpty:b,setHideEmpty:function(t){r({hideEmpty:t})}})))),React.createElement("div",n,React.createElement(c.Disabled,null,React.createElement(l(),{block:s.UU,attributes:e}))))}})}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var a=r[t]={exports:{}};return e[t](a,a.exports,n),a.exports}n.m=e,t=[],n.O=(e,r,o,a)=>{if(!r){var i=1/0;for(s=0;s<t.length;s++){for(var[r,o,a]=t[s],l=!0,c=0;c<r.length;c++)(!1&a||i>=a)&&Object.keys(n.O).every((t=>n.O[t](r[c])))?r.splice(c--,1):(l=!1,a<i&&(i=a));if(l){t.splice(s--,1);var u=o();void 0!==u&&(e=u)}}return e}a=a||0;for(var s=t.length;s>0&&t[s-1][2]>a;s--)t[s]=t[s-1];t[s]=[r,o,a]},n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={59:0,619:0,203:0};n.O.j=e=>0===t[e];var e=(e,r)=>{var o,a,[i,l,c]=r,u=0;if(i.some((e=>0!==t[e]))){for(o in l)n.o(l,o)&&(n.m[o]=l[o]);if(c)var s=c(n)}for(e&&e(r);u<i.length;u++)a=i[u],n.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return n.O(s)},r=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})();var o=n.O(void 0,[203],(()=>n(955)));o=n.O(o)})();1 (()=>{"use strict";var t,e={953:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){o=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",s=l.toStringTag||"@@toStringTag";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),l=new P(n||[]);return i(a,"_invoke",{value:S(t,r,l)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var d="suspendedStart",m="suspendedYield",v="executing",y="completed",b={};function g(){}function w(){}function _(){}var x={};h(x,c,(function(){return this}));var E=Object.getPrototypeOf,j=E&&E(E(T([])));j&&j!==r&&a.call(j,c)&&(x=j);var L=_.prototype=g.prototype=Object.create(x);function O(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function R(t,e){function r(o,i,l,c){var u=p(t[o],t,i);if("throw"!==u.type){var s=u.arg,h=s.value;return h&&"object"==n(h)&&a.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,l,c)}),(function(t){r("throw",t,l,c)})):e.resolve(h).then((function(t){s.value=t,l(s)}),(function(t){return r("throw",t,l,c)}))}c(u.arg)}var o;i(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(a,a):a()}})}function S(e,r,n){var o=d;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var l=n.delegate;if(l){var c=k(l,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var u=p(e,r,n);if("normal"===u.type){if(o=n.done?y:m,u.arg===b)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=y,n.method="throw",n.arg=u.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var a=p(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,b;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(a.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(n(e)+" is not iterable")}return w.prototype=_,i(L,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:w,configurable:!0}),w.displayName=h(_,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,h(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},O(R.prototype),h(R.prototype,u,(function(){return this})),e.AsyncIterator=R,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new R(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},O(L),h(L,s,"Generator"),h(L,c,(function(){return this})),h(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return l.type="throw",l.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function a(t,e,r,n,o,a,i){try{var l=t[a](i),c=l.value}catch(t){return void r(t)}l.done?e(c):Promise.resolve(c).then(n,o)}var i,l;r.d(e,{A:()=>c}),window.wp.coreData;const c={titleize:function(t){var e=t.replace(/[-_]/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").toLowerCase().split(" ").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ");return e},publishedJobCount:(i=o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,wp.apiFetch({path:"/matador/v1/jobs/job-listings"});case 3:if(e=t.sent){t.next=6;break}return t.abrupt("return",0);case 6:return t.abrupt("return",e.length);case 9:return t.prev=9,t.t0=t.catch(0),console.error("Error fetching job listings:",t.t0),t.abrupt("return",0);case 13:case"end":return t.stop()}}),t,null,[[0,9]])})),l=function(){var t=this,e=arguments;return new Promise((function(r,n){var o=i.apply(t,e);function l(t){a(o,r,n,l,c,"next",t)}function c(t){a(o,r,n,l,c,"throw",t)}l(void 0)}))},function(){return l.apply(this,arguments)})}},955:(t,e,r)=>{const n=window.wp.blocks,o=window.wp.i18n,a=window.wp.blockEditor,i=window.wp.serverSideRender;var l=r.n(i);const c=window.wp.components,u=window.wp.element,s=JSON.parse('{"UU":"matador-jobs/job-taxonomy-filters"}');var h=r(953);(0,n.registerBlockType)(s.UU,{edit:function(t){var e=t.attributes,r=t.setAttributes,n=(0,a.useBlockProps)({className:"matador-job-taxonomy-filters-block"}),i=e.taxonomies,f=e.chosenTaxonomy,p=e.label,d=e.displayAs,m=e.method,v=e.showAll,y=e.orderBy,b=e.hideEmpty,g=function(t){r({taxonomies:t})};return(0,u.useEffect)((function(){wp.apiFetch({path:"/matador/v1/jobs/taxonomies"}).then((function(t){var e=Object.values(t);0<e.length&&Object.hasOwn(e[0],"key")&&g(e)})).catch((function(t){console.error(t)}))}),[g]),React.createElement(React.Fragment,null,React.createElement(a.InspectorControls,null,React.createElement(c.PanelBody,{title:(0,o.__)("Settings","matador-jobs"),initialOpen:!0},React.createElement(c.PanelRow,null,function(t){var e=t.chosenTaxonomy,r=t.setChosenTaxonomy,n=t.taxonomies;return n?React.createElement(c.SelectControl,{label:(0,o.__)("Chosen Taxonomy","matador-jobs"),value:e,options:n.map((function(t){return{label:h.A.titleize(t.single),value:t.slug}})),onChange:function(t){return r(t)},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}):React.createElement(c.Spinner,null)}({chosenTaxonomy:f,setChosenTaxonomy:function(t){r({chosenTaxonomy:t})},taxonomies:i})),React.createElement(c.PanelRow,null,function(t){var e=t.label,r=t.setLabel;return React.createElement(c.TextControl,{label:(0,o.__)("Label Text","matador-jobs"),help:(0,o.__)("A label for the list (leave blank if no title desired)","matador-jobs"),value:e,onChange:function(t){return r(t)},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}({label:p,setLabel:function(t){r({label:t})}})),React.createElement(c.PanelRow,null,function(t){var e=t.displayAs,r=t.setDisplayAs;return React.createElement(c.SelectControl,{label:(0,o.__)("Display as","matador-jobs"),help:(0,o.__)("Choose how the taxonomies are displayed","matador-jobs"),value:e,options:[{label:(0,o.__)("List","matador-jobs"),value:"list"},{label:(0,o.__)("Dropdown","matador-jobs"),value:"dropdown"},{label:(0,o.__)("Multiselect","matador-jobs"),value:"multiselect"}],onChange:function(t){return r(t)},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}({displayAs:d,setDisplayAs:function(t){r({displayAs:t})}})),"list"!==d&&React.createElement(c.PanelRow,null,function(t){var e=t.method,r=t.setMethod;return React.createElement(c.SelectControl,{label:(0,o.__)("Method","matador-jobs"),help:(0,o.__)("Choose how the taxonomies should behave","matador-jobs"),value:e,options:[{label:(0,o.__)("Link","matador-jobs"),value:"link"},{label:(0,o.__)("Filter","matador-jobs"),value:"filter"},{label:(0,o.__)("Value","matador-jobs"),value:"value"}],onChange:function(t){return r(t)},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}({method:m,setMethod:function(t){r({method:t})}})),React.createElement(c.PanelRow,null,function(t){var e=t.orderBy,r=t.setOrderBy;return React.createElement(c.SelectControl,{label:(0,o.__)("Order By","matador-jobs"),help:(0,o.__)("Choose how to order the taxonomies","matador-jobs"),value:e,options:[{label:(0,o.__)("Name","matador-jobs"),value:"name"},{label:(0,o.__)("Slug","matador-jobs"),value:"slug"},{label:(0,o.__)("Description","matador-jobs"),value:"description"},{label:(0,o.__)("Number of Jobs","matador-jobs"),value:"count"}],onChange:function(t){return r(t)},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}({orderBy:y,setOrderBy:function(t){r({orderBy:t})}})),React.createElement(c.PanelRow,null,function(t){var e=t.showAll,r=t.setShowAll;return React.createElement(c.ToggleControl,{label:(0,o.__)("Show All","matador-jobs"),help:(0,o.__)("Include a show all option","matador-jobs"),checked:e,onChange:function(t){return r(t)},__nextHasNoMarginBottom:!0})}({showAll:v,setShowAll:function(t){r({showAll:t})}})),React.createElement(c.PanelRow,null,function(t){var e=t.hideEmpty,r=t.setHideEmpty;return React.createElement(c.ToggleControl,{label:(0,o.__)("Hide Empty","matador-jobs"),help:(0,o.__)("Hide taxonomies with no jobs currently","matador-jobs"),checked:e,onChange:function(t){return r(t)},__nextHasNoMarginBottom:!0})}({hideEmpty:b,setHideEmpty:function(t){r({hideEmpty:t})}})))),React.createElement("div",n,React.createElement(c.Disabled,null,React.createElement(l(),{block:s.UU,attributes:e}))))}})}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var a=r[t]={exports:{}};return e[t](a,a.exports,n),a.exports}n.m=e,t=[],n.O=(e,r,o,a)=>{if(!r){var i=1/0;for(s=0;s<t.length;s++){for(var[r,o,a]=t[s],l=!0,c=0;c<r.length;c++)(!1&a||i>=a)&&Object.keys(n.O).every((t=>n.O[t](r[c])))?r.splice(c--,1):(l=!1,a<i&&(i=a));if(l){t.splice(s--,1);var u=o();void 0!==u&&(e=u)}}return e}a=a||0;for(var s=t.length;s>0&&t[s-1][2]>a;s--)t[s]=t[s-1];t[s]=[r,o,a]},n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={59:0,619:0,203:0};n.O.j=e=>0===t[e];var e=(e,r)=>{var o,a,[i,l,c]=r,u=0;if(i.some((e=>0!==t[e]))){for(o in l)n.o(l,o)&&(n.m[o]=l[o]);if(c)var s=c(n)}for(e&&e(r);u<i.length;u++)a=i[u],n.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return n.O(s)},r=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})();var o=n.O(void 0,[203],(()=>n(955)));o=n.O(o)})(); -
matador-jobs/trunk/src/Editors/Blocks/build/jobs-orderby/index.asset.php
r3254249 r3279451 1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-i18n'), 'version' => ' 0272ece651f40a1f9d48');1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-i18n'), 'version' => 'eae9250ea5b65d5806c3'); -
matador-jobs/trunk/src/Editors/Blocks/build/jobs-orderby/index.js
r3254249 r3279451 1 (()=>{"use strict";var e,t={732:()=>{const e=window.wp.blocks,t=window.wp.i18n,o=window.wp.blockEditor,r=window.wp.components,a=window.wp.data;function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},n.apply(null,arguments)}const l=JSON.parse('{"UU":"matador-jobs/jobs-orderby"}');(0,e.registerBlockType)(l.UU,{edit:function(e){var l=e.attributes,i=e.setAttributes,d=(e.context,(0,o.useBlockProps)({className:"wp-block-matador-jobs-jobs-orderby"})),s=l.labelText,u=l.labelPosition,c=l.inputTextColor,b=l.inputBackgroundColor,p=l.inputPadding,m=l.inputMargin,g=[{option:"publicationDateNewest",label:(0,t.__)("Date Published (newest first)","matador-jobs"),orderby:"date",order:"DESC"},{option:"closingDateNewest",label:(0,t.__)("Closing Date (newest first)","matador-jobs"),orderby:"meta_value_num",metaKey:"dateEnd",order:"DESC"},{option:"title",label:(0,t.__)("Job Title (a-z)","matador-jobs"),orderby:"title",order:"ASC"},{option:"source_id",label:(0,t.__)("Source ID (ascending)","matador-jobs"),orderby:"meta_value_num",metaKey:"_matador_source_id",order:"ASC"},{option:"random",label:(0,t.__)("Random","matador-jobs"),orderby:"rand",order:"ASC"}];return React.createElement(React.Fragment,null,React.createElement(o.InspectorControls,null,React.createElement(r.PanelBody,{title:(0,t.__)("Settings","matador-jobs"),initialOpen:!0},React.createElement(r.PanelRow,null,function(e){var o=e.labelPosition,a=e.setLabelPosition;return React.createElement(React.Fragment,null,React.createElement(r.PanelRow,null,React.createElement(r.SelectControl,{label:(0,t.__)("Label Position","matador-jobs"),help:(0,t.__)("Choose how the label is positioned relative to the input field","matador-jobs"),value:o,options:[{value:"column",label:(0,t.__)("Above","matador-jobs")},{value:"column-reverse",label:(0,t.__)("Below","matador-jobs")},{value:"row",label:(0,t.__)("To Left","matador-jobs")},{value:"row-reverse",label:(0,t.__)("To Right","matador-jobs")}],onChange:function(e){return a(e)},__nextHasNoMarginBottom:!0 })))}({labelPosition:u,setLabelPosition:function(e){return i({labelPosition:e})}})))),function(e){var n=e.inputTextColor,l=e.setInputTextColor,i=e.inputBackgroundColor,d=e.setInputBackgroundColor,s=(0,a.useSelect)((function(e){return e(o.store).getSettings().colors||[]}));return React.createElement(React.Fragment,null,React.createElement(o.InspectorControls,{group:"color"},React.createElement(r.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement("h4",null,(0,t.__)("Dropdown Text Color","matador-jobs")),React.createElement(r.ColorPalette,{colors:s,value:n,onChange:function(e){return l(e)},enableAlpha:!0}),React.createElement("h4",null,(0,t.__)("Dropdown Background Color","matador-jobs")),React.createElement(r.ColorPalette,{colors:s,value:i,onChange:function(e){return d(e)},enableAlpha:!0}))))}({inputTextColor:c,setInputTextColor:function(e){return i({inputTextColor:e})},inputBackgroundColor:b,setInputBackgroundColor:function(e){return i({inputBackgroundColor:e})}}),function(e){var a=e.inputPadding,n=e.setInputPadding,l=e.inputMargin,i=e.setInputMargin;return React.createElement(o.InspectorControls,{group:"dimensions"},React.createElement(r.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement(r.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,t.__)("Dropdown Padding","matador-jobs"),values:a,onChange:function(e){return n(e)}}),React.createElement("p",null,(0,t.__)("Set padding for the dropdown","matador-jobs")),React.createElement(r.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,t.__)("Dropdown Margin","matador-jobs"),values:l,onChange:function(e){return i(e)}}),React.createElement("p",null,(0,t.__)("Set margin for dropdown","matador-jobs"))))}({inputPadding:p,setInputPadding:function(e){return i({inputPadding:e})},inputMargin:m,setInputMargin:function(e){return i({inputMargin:e})}}),React.createElement("div",n({},d,{style:{"--matador-jobs-orderby-label-position":u,"--matador-jobs-orderby-input-text-color":c,"--matador-jobs-orderby-input-background-color":b,"--matador-jobs-orderby-input-padding-top":p.top,"--matador-jobs-orderby-input-padding-right":p.right,"--matador-jobs-orderby-input-padding-bottom":p.bottom,"--matador-jobs-orderby-input-padding-left":p.left,"--matador-jobs-orderby-input-margin-top":m.top,"--matador-jobs-orderby-input-margin-right":m.right,"--matador-jobs-orderby-input-margin-bottom":m.bottom,"--matador-jobs-orderby-input-margin-left":m.left}}),React.createElement("form",{role:"complementary",method:"get",className:"matador-orderby-form"},React.createElement("label",{htmlFor:"matador-jobs-orderby-select","aria-label":(0,t.__)("Order Jobs by")},React.createElement(o.RichText,{tagName:"span",identifier:"labelText",value:s,onChange:function(e){return i({labelText:e})},placeholder:(0,t.__)("Label","matador-jobs")})),React.createElement("select",{name:"matador-jobs-orderby-select",id:"matador-jobs-orderby-select","aria-label":(0,t.__)("Select an option to order the job results","matador-jobs"),title:(0,t.__)("Select an option to order the job results","matador-jobs")},g.map((function(e){return React.createElement("option",{key:e.option,value:e.option},e.label)}))))))}})}},o={};function r(e){var a=o[e];if(void 0!==a)return a.exports;var n=o[e]={exports:{}};return t[e](n,n.exports,r),n.exports}r.m=t,e=[],r.O=(t,o,a,n)=>{if(!o){var l=1/0;for(u=0;u<e.length;u++){for(var[o,a,n]=e[u],i=!0,d=0;d<o.length;d++)(!1&n||l>=n)&&Object.keys(r.O).every((e=>r.O[e](o[d])))?o.splice(d--,1):(i=!1,n<l&&(l=n));if(i){e.splice(u--,1);var s=a();void 0!==s&&(t=s)}}return t}n=n||0;for(var u=e.length;u>0&&e[u-1][2]>n;u--)e[u]=e[u-1];e[u]=[o,a,n]},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={870:0,74:0};r.O.j=t=>0===e[t];var t=(t,o)=>{var a,n,[l,i,d]=o,s=0;if(l.some((t=>0!==e[t]))){for(a in i)r.o(i,a)&&(r.m[a]=i[a]);if(d)var u=d(r)}for(t&&t(o);s<l.length;s++)n=l[s],r.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return r.O(u)},o=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var a=r.O(void 0,[74],(()=>r(732)));a=r.O(a)})();1 (()=>{"use strict";var e,t={732:()=>{const e=window.wp.blocks,t=window.wp.i18n,o=window.wp.blockEditor,r=window.wp.components,a=window.wp.data;function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},n.apply(null,arguments)}const l=JSON.parse('{"UU":"matador-jobs/jobs-orderby"}');(0,e.registerBlockType)(l.UU,{edit:function(e){var l=e.attributes,i=e.setAttributes,d=(e.context,(0,o.useBlockProps)({className:"wp-block-matador-jobs-jobs-orderby"})),s=l.labelText,u=l.labelPosition,c=l.inputTextColor,b=l.inputBackgroundColor,p=l.inputPadding,m=l.inputMargin,g=[{option:"publicationDateNewest",label:(0,t.__)("Date Published (newest first)","matador-jobs"),orderby:"date",order:"DESC"},{option:"closingDateNewest",label:(0,t.__)("Closing Date (newest first)","matador-jobs"),orderby:"meta_value_num",metaKey:"dateEnd",order:"DESC"},{option:"title",label:(0,t.__)("Job Title (a-z)","matador-jobs"),orderby:"title",order:"ASC"},{option:"source_id",label:(0,t.__)("Source ID (ascending)","matador-jobs"),orderby:"meta_value_num",metaKey:"_matador_source_id",order:"ASC"},{option:"random",label:(0,t.__)("Random","matador-jobs"),orderby:"rand",order:"ASC"}];return React.createElement(React.Fragment,null,React.createElement(o.InspectorControls,null,React.createElement(r.PanelBody,{title:(0,t.__)("Settings","matador-jobs"),initialOpen:!0},React.createElement(r.PanelRow,null,function(e){var o=e.labelPosition,a=e.setLabelPosition;return React.createElement(React.Fragment,null,React.createElement(r.PanelRow,null,React.createElement(r.SelectControl,{label:(0,t.__)("Label Position","matador-jobs"),help:(0,t.__)("Choose how the label is positioned relative to the input field","matador-jobs"),value:o,options:[{value:"column",label:(0,t.__)("Above","matador-jobs")},{value:"column-reverse",label:(0,t.__)("Below","matador-jobs")},{value:"row",label:(0,t.__)("To Left","matador-jobs")},{value:"row-reverse",label:(0,t.__)("To Right","matador-jobs")}],onChange:function(e){return a(e)},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})))}({labelPosition:u,setLabelPosition:function(e){return i({labelPosition:e})}})))),function(e){var n=e.inputTextColor,l=e.setInputTextColor,i=e.inputBackgroundColor,d=e.setInputBackgroundColor,s=(0,a.useSelect)((function(e){return e(o.store).getSettings().colors||[]}));return React.createElement(React.Fragment,null,React.createElement(o.InspectorControls,{group:"color"},React.createElement(r.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement("h4",null,(0,t.__)("Dropdown Text Color","matador-jobs")),React.createElement(r.ColorPalette,{colors:s,value:n,onChange:function(e){return l(e)},enableAlpha:!0}),React.createElement("h4",null,(0,t.__)("Dropdown Background Color","matador-jobs")),React.createElement(r.ColorPalette,{colors:s,value:i,onChange:function(e){return d(e)},enableAlpha:!0}))))}({inputTextColor:c,setInputTextColor:function(e){return i({inputTextColor:e})},inputBackgroundColor:b,setInputBackgroundColor:function(e){return i({inputBackgroundColor:e})}}),function(e){var a=e.inputPadding,n=e.setInputPadding,l=e.inputMargin,i=e.setInputMargin;return React.createElement(o.InspectorControls,{group:"dimensions"},React.createElement(r.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement(r.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,t.__)("Dropdown Padding","matador-jobs"),values:a,onChange:function(e){return n(e)}}),React.createElement("p",null,(0,t.__)("Set padding for the dropdown","matador-jobs")),React.createElement(r.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,t.__)("Dropdown Margin","matador-jobs"),values:l,onChange:function(e){return i(e)}}),React.createElement("p",null,(0,t.__)("Set margin for dropdown","matador-jobs"))))}({inputPadding:p,setInputPadding:function(e){return i({inputPadding:e})},inputMargin:m,setInputMargin:function(e){return i({inputMargin:e})}}),React.createElement("div",n({},d,{style:{"--matador-jobs-orderby-label-position":u,"--matador-jobs-orderby-input-text-color":c,"--matador-jobs-orderby-input-background-color":b,"--matador-jobs-orderby-input-padding-top":p.top,"--matador-jobs-orderby-input-padding-right":p.right,"--matador-jobs-orderby-input-padding-bottom":p.bottom,"--matador-jobs-orderby-input-padding-left":p.left,"--matador-jobs-orderby-input-margin-top":m.top,"--matador-jobs-orderby-input-margin-right":m.right,"--matador-jobs-orderby-input-margin-bottom":m.bottom,"--matador-jobs-orderby-input-margin-left":m.left}}),React.createElement("form",{role:"complementary",method:"get",className:"matador-orderby-form"},React.createElement("label",{htmlFor:"matador-jobs-orderby-select","aria-label":(0,t.__)("Order Jobs by")},React.createElement(o.RichText,{tagName:"span",identifier:"labelText",value:s,onChange:function(e){return i({labelText:e})},placeholder:(0,t.__)("Label","matador-jobs")})),React.createElement("select",{name:"matador-jobs-orderby-select",id:"matador-jobs-orderby-select","aria-label":(0,t.__)("Select an option to order the job results","matador-jobs"),title:(0,t.__)("Select an option to order the job results","matador-jobs")},g.map((function(e){return React.createElement("option",{key:e.option,value:e.option},e.label)}))))))}})}},o={};function r(e){var a=o[e];if(void 0!==a)return a.exports;var n=o[e]={exports:{}};return t[e](n,n.exports,r),n.exports}r.m=t,e=[],r.O=(t,o,a,n)=>{if(!o){var l=1/0;for(u=0;u<e.length;u++){for(var[o,a,n]=e[u],i=!0,d=0;d<o.length;d++)(!1&n||l>=n)&&Object.keys(r.O).every((e=>r.O[e](o[d])))?o.splice(d--,1):(i=!1,n<l&&(l=n));if(i){e.splice(u--,1);var s=a();void 0!==s&&(t=s)}}return t}n=n||0;for(var u=e.length;u>0&&e[u-1][2]>n;u--)e[u]=e[u-1];e[u]=[o,a,n]},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={870:0,74:0};r.O.j=t=>0===e[t];var t=(t,o)=>{var a,n,[l,i,d]=o,s=0;if(l.some((t=>0!==e[t]))){for(a in i)r.o(i,a)&&(r.m[a]=i[a]);if(d)var u=d(r)}for(t&&t(o);s<l.length;s++)n=l[s],r.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return r.O(u)},o=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var a=r.O(void 0,[74],(()=>r(732)));a=r.O(a)})(); -
matador-jobs/trunk/src/Editors/Blocks/build/jobs-search-id/index.asset.php
r3254249 r3279451 1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'e 4a0e2ee992be04cd3e3');1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'ead9b145d711e1bb1f0b'); -
matador-jobs/trunk/src/Editors/Blocks/build/jobs-search-id/index.js
r3254249 r3279451 1 (()=>{"use strict";var t,e={483:()=>{const t=window.wp.blocks,e=window.wp.blockEditor,n=window.wp.i18n,r=window.wp.components,o=window.wp.data,a=window.wp.element;function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,l,i=[],u=!0,c=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(i.push(r.value),i.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}const c=JSON.parse('{"UU":"matador-jobs/jobs-search-id"}');(0,t.registerBlockType)(c.UU,{edit:function(t){var i,c,p,s=t.attributes,d=t.setAttributes,m=t.context,f=(0,e.useBlockProps)({className:"matador-jobs-search-id-block matador-search-form-field-group"}),g=s.label,b=s.placeholder,h=s.inputTextColor,y=s.inputBackgroundColor,v=s.inputPadding,_=s.inputMargin,x=m["matador-jobs/searchFieldInputsPadding"]||{top:null,right:null,bottom:null,left:null},C=m["matador-jobs/searchFieldInputsMargin"]||{top:null,right:null,bottom:null,left:null},w=function(t){return d({inputMargin:t})};return React.createElement(React.Fragment,null,React.createElement(e.InspectorControls,null,React.createElement(r.PanelBody,{title:(0,n.__)("Settings","matador-jobs"),initialOpen:!0},React.createElement(r.PanelRow,null,function(t){var e=t.label,o=t.setLabel;return React.createElement(r.TextControl,{label:(0,n.__)("Label Text","matador-jobs"),help:(0,n.__)("A label for the keyword field (leave blank if no label desired)","matador-jobs"),value:e,onChange:function(t){return o(t)},__nextHasNoMarginBottom:!0 })}({label:g,setLabel:function(t){return d({label:t})}})),React.createElement(r.PanelRow,null,function(t){var e=t.label,o=t.setPlaceholder;return React.createElement(r.TextControl,{label:(0,n.__)("Placeholder Text","matador-jobs"),help:(0,n.__)("A placeholder for the keyword field (leave blank if no placeholder desired)","matador-jobs"),value:e,onChange:function(t){return o(t)},__nextHasNoMarginBottom:!0})}({placeholder:b,setPlaceholder:function(t){return d({placeholder:t})}})))),function(t){var i=t.inputTextColor,u=t.inputBackgroundColor,c=t.setInputTextColor,p=t.setInputBackgroundColor,s=(0,o.useSelect)((function(t){return t(e.store).getSettings().colors||[]})),d=l((0,a.useState)(!1),2),m=d[0],f=d[1],g=function(){return f((function(t){return!t}))},b=l((0,a.useState)(!1),2),h=b[0],y=b[1];return React.createElement(React.Fragment,null,React.createElement(e.InspectorControls,{group:"color"},React.createElement(r.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement(r.Button,{variant:"secondary",onClick:g,text:(0,n.__)("Input Text Color","matador-jobs")},m&&React.createElement(r.Popover,{placement:"left",style:{padding:"20px"},onClose:function(){return g()}},React.createElement("h4",{style:{margin:"20px"}},(0,n.__)("Input Text Color","matador-jobs")),React.createElement(r.ColorPalette,{style:{margin:"20px"},colors:s,value:i,onChange:function(t){return c(t)},enableAlpha:!0}))),React.createElement(r.Button,{variant:"secondary",onClick:function(){return arguments.length>0&&void 0!==arguments[0]||state,y((function(t){return!t}))},text:(0,n.__)("Input Background Color","matador-jobs")},h&&React.createElement(r.Popover,{placement:"left",style:{padding:"20px"},onClose:function(){return g()}},React.createElement("h4",{style:{margin:"20px"}},(0,n.__)("Input Background Color","matador-jobs")),React.createElement(r.ColorPalette,{style:{margin:"20px"},colors:s,value:u,onChange:function(t){return p(t)},enableAlpha:!0}))))))}({inputTextColor:h,inputBackgroundColor:y,setInputTextColor:function(t){return d({inputTextColor:t})},setInputBackgroundColor:function(t){return d({inputBackgroundColor:t})}}),function(t){var o=t.inputPadding,a=t.setInputPadding,l=t.inputMargin,i=t.setInputMargin;return React.createElement(e.InspectorControls,{group:"dimensions"},React.createElement(r.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement(r.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,n.__)("Input Padding","matador-jobs"),values:o,onChange:function(t){return a(t)}}),React.createElement(r.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,n.__)("Input Margin","matador-jobs"),values:l,onChange:function(t){return i(t)}})))}((i={inputPadding:v,setInputPadding:function(t){return d({inputPadding:t})},setInputMargin:w},p=w,(c=function(t){var e=function(t){if("object"!=u(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}(c="setInputMargin"))in i?Object.defineProperty(i,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):i[c]=p,i)),React.createElement("div",f,g&&React.createElement("label",{htmlFor:"matador_xid"},g),React.createElement("input",{type:"text",id:"matador_xid",name:"matador_xid",placeholder:b,style:{backgroundColor:y,color:h,paddingTop:v.top||x.top,paddingBottom:v.bottom||x.bottom,paddingRight:v.right||x.right,paddingLeft:v.left||x.left,marginTop:_.top||C.top,marginBottom:_.bottom||C.bottom,marginLeft:_.left||C.left,marginRight:_.right||C.right}})))}})}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var a=n[t]={exports:{}};return e[t](a,a.exports,r),a.exports}r.m=e,t=[],r.O=(e,n,o,a)=>{if(!n){var l=1/0;for(p=0;p<t.length;p++){for(var[n,o,a]=t[p],i=!0,u=0;u<n.length;u++)(!1&a||l>=a)&&Object.keys(r.O).every((t=>r.O[t](n[u])))?n.splice(u--,1):(i=!1,a<l&&(l=a));if(i){t.splice(p--,1);var c=o();void 0!==c&&(e=c)}}return e}a=a||0;for(var p=t.length;p>0&&t[p-1][2]>a;p--)t[p]=t[p-1];t[p]=[n,o,a]},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={451:0,659:0};r.O.j=e=>0===t[e];var e=(e,n)=>{var o,a,[l,i,u]=n,c=0;if(l.some((e=>0!==t[e]))){for(o in i)r.o(i,o)&&(r.m[o]=i[o]);if(u)var p=u(r)}for(e&&e(n);c<l.length;c++)a=l[c],r.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return r.O(p)},n=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})();var o=r.O(void 0,[659],(()=>r(483)));o=r.O(o)})();1 (()=>{"use strict";var t,e={483:()=>{const t=window.wp.blocks,e=window.wp.blockEditor,n=window.wp.i18n,r=window.wp.components,o=window.wp.data,a=window.wp.element;function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,l,i=[],u=!0,c=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(i.push(r.value),i.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}const c=JSON.parse('{"UU":"matador-jobs/jobs-search-id"}');(0,t.registerBlockType)(c.UU,{edit:function(t){var i,c,p,s=t.attributes,d=t.setAttributes,m=t.context,f=(0,e.useBlockProps)({className:"matador-jobs-search-id-block matador-search-form-field-group"}),g=s.label,b=s.placeholder,h=s.inputTextColor,y=s.inputBackgroundColor,v=s.inputPadding,_=s.inputMargin,x=m["matador-jobs/searchFieldInputsPadding"]||{top:null,right:null,bottom:null,left:null},C=m["matador-jobs/searchFieldInputsMargin"]||{top:null,right:null,bottom:null,left:null},w=function(t){return d({inputMargin:t})};return React.createElement(React.Fragment,null,React.createElement(e.InspectorControls,null,React.createElement(r.PanelBody,{title:(0,n.__)("Settings","matador-jobs"),initialOpen:!0},React.createElement(r.PanelRow,null,function(t){var e=t.label,o=t.setLabel;return React.createElement(r.TextControl,{label:(0,n.__)("Label Text","matador-jobs"),help:(0,n.__)("A label for the keyword field (leave blank if no label desired)","matador-jobs"),value:e,onChange:function(t){return o(t)},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}({label:g,setLabel:function(t){return d({label:t})}})),React.createElement(r.PanelRow,null,function(t){var e=t.label,o=t.setPlaceholder;return React.createElement(r.TextControl,{label:(0,n.__)("Placeholder Text","matador-jobs"),help:(0,n.__)("A placeholder for the keyword field (leave blank if no placeholder desired)","matador-jobs"),value:e,onChange:function(t){return o(t)},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}({placeholder:b,setPlaceholder:function(t){return d({placeholder:t})}})))),function(t){var i=t.inputTextColor,u=t.inputBackgroundColor,c=t.setInputTextColor,p=t.setInputBackgroundColor,s=(0,o.useSelect)((function(t){return t(e.store).getSettings().colors||[]})),d=l((0,a.useState)(!1),2),m=d[0],f=d[1],g=function(){return f((function(t){return!t}))},b=l((0,a.useState)(!1),2),h=b[0],y=b[1];return React.createElement(React.Fragment,null,React.createElement(e.InspectorControls,{group:"color"},React.createElement(r.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement(r.Button,{variant:"secondary",onClick:g,text:(0,n.__)("Input Text Color","matador-jobs")},m&&React.createElement(r.Popover,{placement:"left",style:{padding:"20px"},onClose:function(){return g()}},React.createElement("h4",{style:{margin:"20px"}},(0,n.__)("Input Text Color","matador-jobs")),React.createElement(r.ColorPalette,{style:{margin:"20px"},colors:s,value:i,onChange:function(t){return c(t)},enableAlpha:!0}))),React.createElement(r.Button,{variant:"secondary",onClick:function(){return arguments.length>0&&void 0!==arguments[0]||state,y((function(t){return!t}))},text:(0,n.__)("Input Background Color","matador-jobs")},h&&React.createElement(r.Popover,{placement:"left",style:{padding:"20px"},onClose:function(){return g()}},React.createElement("h4",{style:{margin:"20px"}},(0,n.__)("Input Background Color","matador-jobs")),React.createElement(r.ColorPalette,{style:{margin:"20px"},colors:s,value:u,onChange:function(t){return p(t)},enableAlpha:!0}))))))}({inputTextColor:h,inputBackgroundColor:y,setInputTextColor:function(t){return d({inputTextColor:t})},setInputBackgroundColor:function(t){return d({inputBackgroundColor:t})}}),function(t){var o=t.inputPadding,a=t.setInputPadding,l=t.inputMargin,i=t.setInputMargin;return React.createElement(e.InspectorControls,{group:"dimensions"},React.createElement(r.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement(r.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,n.__)("Input Padding","matador-jobs"),values:o,onChange:function(t){return a(t)}}),React.createElement(r.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,n.__)("Input Margin","matador-jobs"),values:l,onChange:function(t){return i(t)}})))}((i={inputPadding:v,setInputPadding:function(t){return d({inputPadding:t})},setInputMargin:w},p=w,(c=function(t){var e=function(t){if("object"!=u(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}(c="setInputMargin"))in i?Object.defineProperty(i,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):i[c]=p,i)),React.createElement("div",f,g&&React.createElement("label",{htmlFor:"matador_xid"},g),React.createElement("input",{type:"text",id:"matador_xid",name:"matador_xid",placeholder:b,style:{backgroundColor:y,color:h,paddingTop:v.top||x.top,paddingBottom:v.bottom||x.bottom,paddingRight:v.right||x.right,paddingLeft:v.left||x.left,marginTop:_.top||C.top,marginBottom:_.bottom||C.bottom,marginLeft:_.left||C.left,marginRight:_.right||C.right}})))}})}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var a=n[t]={exports:{}};return e[t](a,a.exports,r),a.exports}r.m=e,t=[],r.O=(e,n,o,a)=>{if(!n){var l=1/0;for(p=0;p<t.length;p++){for(var[n,o,a]=t[p],i=!0,u=0;u<n.length;u++)(!1&a||l>=a)&&Object.keys(r.O).every((t=>r.O[t](n[u])))?n.splice(u--,1):(i=!1,a<l&&(l=a));if(i){t.splice(p--,1);var c=o();void 0!==c&&(e=c)}}return e}a=a||0;for(var p=t.length;p>0&&t[p-1][2]>a;p--)t[p]=t[p-1];t[p]=[n,o,a]},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={451:0,659:0};r.O.j=e=>0===t[e];var e=(e,n)=>{var o,a,[l,i,u]=n,c=0;if(l.some((e=>0!==t[e]))){for(o in i)r.o(i,o)&&(r.m[o]=i[o]);if(u)var p=u(r)}for(e&&e(n);c<l.length;c++)a=l[c],r.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return r.O(p)},n=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})();var o=r.O(void 0,[659],(()=>r(483)));o=r.O(o)})(); -
matador-jobs/trunk/src/Editors/Blocks/build/jobs-search-keyword/index.asset.php
r3254249 r3279451 1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => ' 88267e0c0f931cebc7ea');1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '72f4e1e2e37b83b05bcc'); -
matador-jobs/trunk/src/Editors/Blocks/build/jobs-search-keyword/index.js
r3254249 r3279451 1 (()=>{"use strict";var e,t={125:()=>{const e=window.wp.blocks,t=window.wp.blockEditor,n=window.wp.i18n,r=window.wp.components,o=window.wp.data,a=window.wp.element;function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,l,i=[],u=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const u=JSON.parse('{"UU":"matador-jobs/jobs-search-keyword"}');(0,e.registerBlockType)(u.UU,{edit:function(e){var i=e.attributes,u=e.setAttributes,c=e.context, s=(0,t.useBlockProps)({className:"matador-jobs-search-keyword-block matador-search-form-field-group"}),d=i.label,p=i.placeholder,m=i.inputTextColor,g=i.inputBackgroundColor,f=i.inputPadding,b=i.inputMargin,h=c["matador-jobs/searchFieldInputsPadding"]||{top:null,right:null,bottom:null,left:null},v=c["matador-jobs/searchFieldInputsMargin"]||{top:null,right:null,bottom:null,left:null};return React.createElement(React.Fragment,null,React.createElement(t.InspectorControls,null,React.createElement(r.PanelBody,{title:(0,n.__)("Settings","matador-jobs"),initialOpen:!0},React.createElement(r.PanelRow,null,function(e){var t=e.label,o=e.setLabel;return React.createElement(r.TextControl,{label:(0,n.__)("Label Text","matador-jobs"),help:(0,n.__)("A label for the keyword field (leave blank if no label desired)","matador-jobs"),value:t,onChange:function(e){return o(e)},__nextHasNoMarginBottom:!0})}({label:d,setLabel:function(e){return u({label:e})}})),React.createElement(r.PanelRow,null,function(e){var t=e.label,o=e.setPlaceholder;return React.createElement(r.TextControl,{label:(0,n.__)("Placeholder Text","matador-jobs"),help:(0,n.__)("A placeholder for the keyword field (leave blank if no placeholder desired)","matador-jobs"),value:t,onChange:function(e){return o(e)},__nextHasNoMarginBottom:!0})}({placeholder:p,setPlaceholder:function(e){return u({placeholder:e})}})))),function(e){var i=e.inputTextColor,u=e.inputBackgroundColor,c=e.setInputTextColor,s=e.setInputBackgroundColor,d=(0,o.useSelect)((function(e){return e(t.store).getSettings().colors||[]})),p=l((0,a.useState)(!1),2),m=p[0],g=p[1],f=function(){return g((function(e){return!e}))},b=l((0,a.useState)(!1),2),h=b[0],v=b[1];return React.createElement(React.Fragment,null,React.createElement(t.InspectorControls,{group:"color"},React.createElement(r.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement(r.Button,{variant:"secondary",onClick:f,text:(0,n.__)("Input Text Color","matador-jobs")},m&&React.createElement(r.Popover,{placement:"left",style:{padding:"20px"},onClose:function(){return f()}},React.createElement("h4",{style:{margin:"20px"}},(0,n.__)("Input Text Color","matador-jobs")),React.createElement(r.ColorPalette,{style:{margin:"20px"},colors:d,value:i,onChange:function(e){return c(e)},enableAlpha:!0}))),React.createElement(r.Button,{variant:"secondary",onClick:function(){return arguments.length>0&&void 0!==arguments[0]||state,v((function(e){return!e}))},text:(0,n.__)("Input Background Color","matador-jobs")},h&&React.createElement(r.Popover,{placement:"left",style:{padding:"20px"},onClose:function(){return f()}},React.createElement("h4",{style:{margin:"20px"}},(0,n.__)("Input Background Color","matador-jobs")),React.createElement(r.ColorPalette,{style:{margin:"20px"},colors:d,value:u,onChange:function(e){return s(e)},enableAlpha:!0}))))))}({inputTextColor:m,inputBackgroundColor:g,setInputTextColor:function(e){return u({inputTextColor:e})},setInputBackgroundColor:function(e){return u({inputBackgroundColor:e})}}),function(e){var o=e.inputPadding,a=e.setInputPadding,l=e.inputMargin,i=e.setInputMargin;return React.createElement(t.InspectorControls,{group:"dimensions"},React.createElement(r.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement(r.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,n.__)("Input Padding","matador-jobs"),values:o,onChange:function(e){return a(e)}}),React.createElement(r.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,n.__)("Input Margin","matador-jobs"),values:l,onChange:function(e){return i(e)}})))}({inputPadding:f,setInputPadding:function(e){return u({inputPadding:e})},inputMargin:b,setInputMargin:function(e){return u({inputMargin:e})}}),React.createElement("div",s,d&&React.createElement("label",{htmlFor:"matador_xid"},d),React.createElement("input",{type:"text",id:"matador_s",name:"matador_s",placeholder:p,style:{backgroundColor:g,color:m,paddingTop:f.top||h.top,paddingBottom:f.bottom||h.bottom,paddingRight:f.right||h.right,paddingLeft:f.left||h.left,marginTop:b.top||v.top,marginBottom:b.bottom||v.bottom,marginLeft:b.left||v.left,marginRight:b.right||v.right}})))}})}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.m=t,e=[],r.O=(t,n,o,a)=>{if(!n){var l=1/0;for(s=0;s<e.length;s++){for(var[n,o,a]=e[s],i=!0,u=0;u<n.length;u++)(!1&a||l>=a)&&Object.keys(r.O).every((e=>r.O[e](n[u])))?n.splice(u--,1):(i=!1,a<l&&(l=a));if(i){e.splice(s--,1);var c=o();void 0!==c&&(t=c)}}return t}a=a||0;for(var s=e.length;s>0&&e[s-1][2]>a;s--)e[s]=e[s-1];e[s]=[n,o,a]},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={947:0,531:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,a,[l,i,u]=n,c=0;if(l.some((t=>0!==e[t]))){for(o in i)r.o(i,o)&&(r.m[o]=i[o]);if(u)var s=u(r)}for(t&&t(n);c<l.length;c++)a=l[c],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return r.O(s)},n=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o=r.O(void 0,[531],(()=>r(125)));o=r.O(o)})();1 (()=>{"use strict";var e,t={125:()=>{const e=window.wp.blocks,t=window.wp.blockEditor,n=window.wp.i18n,r=window.wp.components,o=window.wp.data,a=window.wp.element;function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,l,i=[],u=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const u=JSON.parse('{"UU":"matador-jobs/jobs-search-keyword"}');(0,e.registerBlockType)(u.UU,{edit:function(e){var i=e.attributes,u=e.setAttributes,c=e.context,p=(0,t.useBlockProps)({className:"matador-jobs-search-keyword-block matador-search-form-field-group"}),s=i.label,d=i.placeholder,m=i.inputTextColor,g=i.inputBackgroundColor,f=i.inputPadding,b=i.inputMargin,h=c["matador-jobs/searchFieldInputsPadding"]||{top:null,right:null,bottom:null,left:null},_=c["matador-jobs/searchFieldInputsMargin"]||{top:null,right:null,bottom:null,left:null};return React.createElement(React.Fragment,null,React.createElement(t.InspectorControls,null,React.createElement(r.PanelBody,{title:(0,n.__)("Settings","matador-jobs"),initialOpen:!0},React.createElement(r.PanelRow,null,function(e){var t=e.label,o=e.setLabel;return React.createElement(r.TextControl,{label:(0,n.__)("Label Text","matador-jobs"),help:(0,n.__)("A label for the keyword field (leave blank if no label desired)","matador-jobs"),value:t,onChange:function(e){return o(e)},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}({label:s,setLabel:function(e){return u({label:e})}})),React.createElement(r.PanelRow,null,function(e){var t=e.label,o=e.setPlaceholder;return React.createElement(r.TextControl,{label:(0,n.__)("Placeholder Text","matador-jobs"),help:(0,n.__)("A placeholder for the keyword field (leave blank if no placeholder desired)","matador-jobs"),value:t,onChange:function(e){return o(e)},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}({placeholder:d,setPlaceholder:function(e){return u({placeholder:e})}})))),function(e){var i=e.inputTextColor,u=e.inputBackgroundColor,c=e.setInputTextColor,p=e.setInputBackgroundColor,s=(0,o.useSelect)((function(e){return e(t.store).getSettings().colors||[]})),d=l((0,a.useState)(!1),2),m=d[0],g=d[1],f=function(){return g((function(e){return!e}))},b=l((0,a.useState)(!1),2),h=b[0],_=b[1];return React.createElement(React.Fragment,null,React.createElement(t.InspectorControls,{group:"color"},React.createElement(r.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement(r.Button,{variant:"secondary",onClick:f,text:(0,n.__)("Input Text Color","matador-jobs")},m&&React.createElement(r.Popover,{placement:"left",style:{padding:"20px"},onClose:function(){return f()}},React.createElement("h4",{style:{margin:"20px"}},(0,n.__)("Input Text Color","matador-jobs")),React.createElement(r.ColorPalette,{style:{margin:"20px"},colors:s,value:i,onChange:function(e){return c(e)},enableAlpha:!0}))),React.createElement(r.Button,{variant:"secondary",onClick:function(){return arguments.length>0&&void 0!==arguments[0]||state,_((function(e){return!e}))},text:(0,n.__)("Input Background Color","matador-jobs")},h&&React.createElement(r.Popover,{placement:"left",style:{padding:"20px"},onClose:function(){return f()}},React.createElement("h4",{style:{margin:"20px"}},(0,n.__)("Input Background Color","matador-jobs")),React.createElement(r.ColorPalette,{style:{margin:"20px"},colors:s,value:u,onChange:function(e){return p(e)},enableAlpha:!0}))))))}({inputTextColor:m,inputBackgroundColor:g,setInputTextColor:function(e){return u({inputTextColor:e})},setInputBackgroundColor:function(e){return u({inputBackgroundColor:e})}}),function(e){var o=e.inputPadding,a=e.setInputPadding,l=e.inputMargin,i=e.setInputMargin;return React.createElement(t.InspectorControls,{group:"dimensions"},React.createElement(r.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement(r.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,n.__)("Input Padding","matador-jobs"),values:o,onChange:function(e){return a(e)}}),React.createElement(r.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,n.__)("Input Margin","matador-jobs"),values:l,onChange:function(e){return i(e)}})))}({inputPadding:f,setInputPadding:function(e){return u({inputPadding:e})},inputMargin:b,setInputMargin:function(e){return u({inputMargin:e})}}),React.createElement("div",p,s&&React.createElement("label",{htmlFor:"matador_xid"},s),React.createElement("input",{type:"text",id:"matador_s",name:"matador_s",placeholder:d,style:{backgroundColor:g,color:m,paddingTop:f.top||h.top,paddingBottom:f.bottom||h.bottom,paddingRight:f.right||h.right,paddingLeft:f.left||h.left,marginTop:b.top||_.top,marginBottom:b.bottom||_.bottom,marginLeft:b.left||_.left,marginRight:b.right||_.right}})))}})}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.m=t,e=[],r.O=(t,n,o,a)=>{if(!n){var l=1/0;for(p=0;p<e.length;p++){for(var[n,o,a]=e[p],i=!0,u=0;u<n.length;u++)(!1&a||l>=a)&&Object.keys(r.O).every((e=>r.O[e](n[u])))?n.splice(u--,1):(i=!1,a<l&&(l=a));if(i){e.splice(p--,1);var c=o();void 0!==c&&(t=c)}}return t}a=a||0;for(var p=e.length;p>0&&e[p-1][2]>a;p--)e[p]=e[p-1];e[p]=[n,o,a]},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={947:0,531:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,a,[l,i,u]=n,c=0;if(l.some((t=>0!==e[t]))){for(o in i)r.o(i,o)&&(r.m[o]=i[o]);if(u)var p=u(r)}for(t&&t(n);c<l.length;c++)a=l[c],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return r.O(p)},n=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o=r.O(void 0,[531],(()=>r(125)));o=r.O(o)})(); -
matador-jobs/trunk/src/Editors/Blocks/build/jobs-search-reset/index.asset.php
r3254249 r3279451 1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '0 28560194a530108d5bf');1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '03707050cc929925e55f'); -
matador-jobs/trunk/src/Editors/Blocks/build/jobs-search-reset/index.js
r3254249 r3279451 1 (()=>{"use strict";var t,e={446:()=>{const t=window.wp.blocks,e=window.wp.blockEditor,o=window.wp.i18n,n=window.wp.components,r=JSON.parse('{"UU":"matador-jobs/jobs-search-reset"}');(0,t.registerBlockType)(r.UU,{edit:function(t){var r=t.attributes,a=t.setAttributes,l=t.context,i=(0,e.useBlockProps)({className:"matador-jobs-search-id-block matador-search-form-field-group"}),s=r.buttonText,u=l["matador-jobs/searchFieldInputsPadding"]||{top:null,right:null,bottom:null,left:null},c=l["matador-jobs/searchFieldInputsMargin"]||{top:null,right:null,bottom:null,left:null};return React.createElement(React.Fragment,null,React.createElement(e.InspectorControls,null,React.createElement(n.PanelBody,{title:(0,o.__)("Settings","matador-jobs"),initialOpen:!0},React.createElement(n.PanelRow,null,function(t){var e=t.buttonText,r=t.setButtonText;return React.createElement(n.TextControl,{label:(0,o.__)("Button Text","matador-jobs"),help:(0,o.__)("The text for the search reset button","matador-jobs"),value:e,onChange:function(t){return r(t)},__nextHasNoMarginBottom:!0 })}({buttonText:s,setButtonText:function(t){return a({buttonText:t})}})))),React.createElement("div",i,React.createElement("button",{className:"matador-button wp-element-button",style:{paddingTop:u.top,paddingBottom:u.bottom,paddingRight:u.right,paddingLeft:u.left,marginTop:c.top,marginBottom:c.bottom,marginRight:c.right,marginLeft:c.left}},s)))}})}},o={};function n(t){var r=o[t];if(void 0!==r)return r.exports;var a=o[t]={exports:{}};return e[t](a,a.exports,n),a.exports}n.m=e,t=[],n.O=(e,o,r,a)=>{if(!o){var l=1/0;for(c=0;c<t.length;c++){for(var[o,r,a]=t[c],i=!0,s=0;s<o.length;s++)(!1&a||l>=a)&&Object.keys(n.O).every((t=>n.O[t](o[s])))?o.splice(s--,1):(i=!1,a<l&&(l=a));if(i){t.splice(c--,1);var u=r();void 0!==u&&(e=u)}}return e}a=a||0;for(var c=t.length;c>0&&t[c-1][2]>a;c--)t[c]=t[c-1];t[c]=[o,r,a]},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={407:0,839:0};n.O.j=e=>0===t[e];var e=(e,o)=>{var r,a,[l,i,s]=o,u=0;if(l.some((e=>0!==t[e]))){for(r in i)n.o(i,r)&&(n.m[r]=i[r]);if(s)var c=s(n)}for(e&&e(o);u<l.length;u++)a=l[u],n.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return n.O(c)},o=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];o.forEach(e.bind(null,0)),o.push=e.bind(null,o.push.bind(o))})();var r=n.O(void 0,[839],(()=>n(446)));r=n.O(r)})();1 (()=>{"use strict";var t,e={446:()=>{const t=window.wp.blocks,e=window.wp.blockEditor,o=window.wp.i18n,n=window.wp.components,r=JSON.parse('{"UU":"matador-jobs/jobs-search-reset"}');(0,t.registerBlockType)(r.UU,{edit:function(t){var r=t.attributes,a=t.setAttributes,l=t.context,i=(0,e.useBlockProps)({className:"matador-jobs-search-id-block matador-search-form-field-group"}),s=r.buttonText,u=l["matador-jobs/searchFieldInputsPadding"]||{top:null,right:null,bottom:null,left:null},c=l["matador-jobs/searchFieldInputsMargin"]||{top:null,right:null,bottom:null,left:null};return React.createElement(React.Fragment,null,React.createElement(e.InspectorControls,null,React.createElement(n.PanelBody,{title:(0,o.__)("Settings","matador-jobs"),initialOpen:!0},React.createElement(n.PanelRow,null,function(t){var e=t.buttonText,r=t.setButtonText;return React.createElement(n.TextControl,{label:(0,o.__)("Button Text","matador-jobs"),help:(0,o.__)("The text for the search reset button","matador-jobs"),value:e,onChange:function(t){return r(t)},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}({buttonText:s,setButtonText:function(t){return a({buttonText:t})}})))),React.createElement("div",i,React.createElement("button",{className:"matador-button wp-element-button",style:{paddingTop:u.top,paddingBottom:u.bottom,paddingRight:u.right,paddingLeft:u.left,marginTop:c.top,marginBottom:c.bottom,marginRight:c.right,marginLeft:c.left}},s)))}})}},o={};function n(t){var r=o[t];if(void 0!==r)return r.exports;var a=o[t]={exports:{}};return e[t](a,a.exports,n),a.exports}n.m=e,t=[],n.O=(e,o,r,a)=>{if(!o){var l=1/0;for(c=0;c<t.length;c++){for(var[o,r,a]=t[c],i=!0,s=0;s<o.length;s++)(!1&a||l>=a)&&Object.keys(n.O).every((t=>n.O[t](o[s])))?o.splice(s--,1):(i=!1,a<l&&(l=a));if(i){t.splice(c--,1);var u=r();void 0!==u&&(e=u)}}return e}a=a||0;for(var c=t.length;c>0&&t[c-1][2]>a;c--)t[c]=t[c-1];t[c]=[o,r,a]},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={407:0,839:0};n.O.j=e=>0===t[e];var e=(e,o)=>{var r,a,[l,i,s]=o,u=0;if(l.some((e=>0!==t[e]))){for(r in i)n.o(i,r)&&(n.m[r]=i[r]);if(s)var c=s(n)}for(e&&e(o);u<l.length;u++)a=l[u],n.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return n.O(c)},o=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];o.forEach(e.bind(null,0)),o.push=e.bind(null,o.push.bind(o))})();var r=n.O(void 0,[839],(()=>n(446)));r=n.O(r)})(); -
matador-jobs/trunk/src/Editors/Blocks/build/jobs-search-submit/index.asset.php
r3254249 r3279451 1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => ' d7b62343679956f53035');1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '453677036d68483cb982'); -
matador-jobs/trunk/src/Editors/Blocks/build/jobs-search-submit/index.js
r3254249 r3279451 1 (()=>{"use strict";var t,e={559:()=>{const t=window.wp.blocks,e=window.wp.blockEditor,o=window.wp.i18n,n=window.wp.components,r=JSON.parse('{"UU":"matador-jobs/jobs-search-submit"}');(0,t.registerBlockType)(r.UU,{edit:function(t){var r=t.attributes,a=t.setAttributes,l=t.context,i=(0,e.useBlockProps)({className:"matador-jobs-search-submit-block matador-search-form-field-group"}),s=r.buttonText,u=l["matador-jobs/searchFieldInputsPadding"]||{top:null,right:null,bottom:null,left:null},c=l["matador-jobs/searchFieldInputsMargin"]||{top:null,right:null,bottom:null,left:null};return React.createElement(React.Fragment,null,React.createElement(e.InspectorControls,null,React.createElement(n.PanelBody,{title:(0,o.__)("Settings","matador-jobs"),initialOpen:!0},React.createElement(n.PanelRow,null,function(t){var e=t.buttonText,r=t.setButtonText;return React.createElement(n.TextControl,{label:(0,o.__)("Button Text","matador-jobs"),help:(0,o.__)("The text for the search submit button","matador-jobs"),value:e,onChange:function(t){return r(t)},__nextHasNoMarginBottom:!0 })}({buttonText:s,setButtonText:function(t){return a({buttonText:t})}})))),React.createElement("div",i,React.createElement("button",{className:"matador-button wp-element-button",style:{paddingTop:u.top,paddingBottom:u.bottom,paddingRight:u.right,paddingLeft:u.left,marginTop:c.top,marginBottom:c.bottom,marginRight:c.right,marginLeft:c.left}},s)))}})}},o={};function n(t){var r=o[t];if(void 0!==r)return r.exports;var a=o[t]={exports:{}};return e[t](a,a.exports,n),a.exports}n.m=e,t=[],n.O=(e,o,r,a)=>{if(!o){var l=1/0;for(c=0;c<t.length;c++){for(var[o,r,a]=t[c],i=!0,s=0;s<o.length;s++)(!1&a||l>=a)&&Object.keys(n.O).every((t=>n.O[t](o[s])))?o.splice(s--,1):(i=!1,a<l&&(l=a));if(i){t.splice(c--,1);var u=r();void 0!==u&&(e=u)}}return e}a=a||0;for(var c=t.length;c>0&&t[c-1][2]>a;c--)t[c]=t[c-1];t[c]=[o,r,a]},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={384:0,272:0};n.O.j=e=>0===t[e];var e=(e,o)=>{var r,a,[l,i,s]=o,u=0;if(l.some((e=>0!==t[e]))){for(r in i)n.o(i,r)&&(n.m[r]=i[r]);if(s)var c=s(n)}for(e&&e(o);u<l.length;u++)a=l[u],n.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return n.O(c)},o=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];o.forEach(e.bind(null,0)),o.push=e.bind(null,o.push.bind(o))})();var r=n.O(void 0,[272],(()=>n(559)));r=n.O(r)})();1 (()=>{"use strict";var t,e={559:()=>{const t=window.wp.blocks,e=window.wp.blockEditor,o=window.wp.i18n,n=window.wp.components,r=JSON.parse('{"UU":"matador-jobs/jobs-search-submit"}');(0,t.registerBlockType)(r.UU,{edit:function(t){var r=t.attributes,a=t.setAttributes,l=t.context,i=(0,e.useBlockProps)({className:"matador-jobs-search-submit-block matador-search-form-field-group"}),s=r.buttonText,u=l["matador-jobs/searchFieldInputsPadding"]||{top:null,right:null,bottom:null,left:null},c=l["matador-jobs/searchFieldInputsMargin"]||{top:null,right:null,bottom:null,left:null};return React.createElement(React.Fragment,null,React.createElement(e.InspectorControls,null,React.createElement(n.PanelBody,{title:(0,o.__)("Settings","matador-jobs"),initialOpen:!0},React.createElement(n.PanelRow,null,function(t){var e=t.buttonText,r=t.setButtonText;return React.createElement(n.TextControl,{label:(0,o.__)("Button Text","matador-jobs"),help:(0,o.__)("The text for the search submit button","matador-jobs"),value:e,onChange:function(t){return r(t)},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}({buttonText:s,setButtonText:function(t){return a({buttonText:t})}})))),React.createElement("div",i,React.createElement("button",{className:"matador-button wp-element-button",style:{paddingTop:u.top,paddingBottom:u.bottom,paddingRight:u.right,paddingLeft:u.left,marginTop:c.top,marginBottom:c.bottom,marginRight:c.right,marginLeft:c.left}},s)))}})}},o={};function n(t){var r=o[t];if(void 0!==r)return r.exports;var a=o[t]={exports:{}};return e[t](a,a.exports,n),a.exports}n.m=e,t=[],n.O=(e,o,r,a)=>{if(!o){var l=1/0;for(c=0;c<t.length;c++){for(var[o,r,a]=t[c],i=!0,s=0;s<o.length;s++)(!1&a||l>=a)&&Object.keys(n.O).every((t=>n.O[t](o[s])))?o.splice(s--,1):(i=!1,a<l&&(l=a));if(i){t.splice(c--,1);var u=r();void 0!==u&&(e=u)}}return e}a=a||0;for(var c=t.length;c>0&&t[c-1][2]>a;c--)t[c]=t[c-1];t[c]=[o,r,a]},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={384:0,272:0};n.O.j=e=>0===t[e];var e=(e,o)=>{var r,a,[l,i,s]=o,u=0;if(l.some((e=>0!==t[e]))){for(r in i)n.o(i,r)&&(n.m[r]=i[r]);if(s)var c=s(n)}for(e&&e(o);u<l.length;u++)a=l[u],n.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return n.O(c)},o=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];o.forEach(e.bind(null,0)),o.push=e.bind(null,o.push.bind(o))})();var r=n.O(void 0,[272],(()=>n(559)));r=n.O(r)})(); -
matador-jobs/trunk/src/Editors/Blocks/build/jobs-search-taxonomy/index.asset.php
r3254249 r3279451 1 <?php return array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => ' 9a0dde4f27f1e9bfb5a1');1 <?php return array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'd0a5970044cbbee0433b'); -
matador-jobs/trunk/src/Editors/Blocks/build/jobs-search-taxonomy/index.js
r3254249 r3279451 1 (()=>{"use strict";var t,e={ 695:(t,e,r)=>{const n=window.wp.blocks,o=window.wp.blockEditor,a=window.wp.i18n,i=window.wp.components,l=window.wp.element,u=window.wp.apiFetch;var c=r.n(u),s=r(953);const f=window.wp.data;function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,l=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return h(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function d(){return d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},d.apply(null,arguments)}const m=JSON.parse('{"UU":"matador-jobs/jobs-search-taxonomy"}');(0,n.registerBlockType)(m.UU,{edit:function(t){var e=t.attributes,r=t.setAttributes,n=t.context,u=(0,o.useBlockProps)({className:"matador-jobs-search-taxonomy-block matador-search-form-field-group"}),h=e.taxonomies,m=e.chosenTaxonomy,g=e.label,y=e.inputTextColor,v=e.inputBackgroundColor,b=e.inputPadding,w=e.inputMargin,x=n["matador-jobs/searchFieldInputsPadding"]||{top:null,right:null,bottom:null,left:null},_=n["matador-jobs/searchFieldInputsMargin"]||{top:null,right:null,bottom:null,left:null},E=function(t){r({taxonomies:t})};(0,l.useEffect)((function(){c()({path:"/matador/v1/jobs/taxonomies"}).then((function(t){var e=Object.values(t);0<e.length&&Object.hasOwn(e[0],"key")&&E(e)})).catch((function(t){console.error(t)}))}),[E]);var C=function(t){r({chosenTaxonomy:t})};return React.createElement(React.Fragment,null,React.createElement(o.InspectorControls,null,React.createElement(i.PanelBody,{title:(0,a.__)("Settings","matador-jobs"),initialOpen:!0},React.createElement(i.PanelRow,null,function(t){var e=t.chosenTaxonomy,r=t.setChosenTaxonomy,n=t.taxonomies;return n?React.createElement(i.SelectControl,{label:(0,a.__)("Chosen Taxonomy","matador-jobs"),value:e,options:n.map((function(t){return{label:s.A.titleize(t.single),value:t.slug}})),onChange:function(t){return r(t)},__nextHasNoMarginBottom:!0}):React.createElement(i.Spinner,null)}({chosenTaxonomy:m,setChosenTaxonomy:C,taxonomies:h})),React.createElement(i.PanelRow,null,function(t){var e=t.label,r=t.setLabel;return React.createElement(i.TextControl,{label:(0,a.__)("Label Text","matador-jobs"),help:(0,a.__)("A label for the keyword field (leave blank if no label desired)","matador-jobs"),value:e,onChange:function(t){return r(t)},__nextHasNoMarginBottom:!0})}({label:g,setLabel:function(t){r({label:t})}})))),function(t){var e=t.inputTextColor,r=t.inputBackgroundColor,n=t.setInputTextColor,u=t.setInputBackgroundColor,c=(0,f.useSelect)((function(t){return t(o.store).getSettings().colors||[]})),s=p((0,l.useState)(!1),2),h=s[0],d=s[1],m=function(){return d((function(t){return!t}))},g=p((0,l.useState)(!1),2),y=g[0],v=g[1];return React.createElement(React.Fragment,null,React.createElement(o.InspectorControls,{group:"color"},React.createElement(i.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement(i.Button,{variant:"secondary",onClick:m,text:(0,a.__)("Input Text Color","matador-jobs")},h&&React.createElement(i.Popover,{placement:"left",style:{padding:"20px"},onClose:function(){return m()}},React.createElement("h4",{style:{margin:"20px"}},(0,a.__)("Input Text Color","matador-jobs")),React.createElement(i.ColorPalette,{style:{margin:"20px"},colors:c,value:e,onChange:function(t){return n(t)},enableAlpha:!0}))),React.createElement(i.Button,{variant:"secondary",onClick:function(){return arguments.length>0&&void 0!==arguments[0]||state,v((function(t){return!t}))},text:(0,a.__)("Input Background Color","matador-jobs")},y&&React.createElement(i.Popover,{placement:"left",style:{padding:"20px"},onClose:function(){return m()}},React.createElement("h4",{style:{margin:"20px"}},(0,a.__)("Input Background Color","matador-jobs")),React.createElement(i.ColorPalette,{style:{margin:"20px"},colors:c,value:r,onChange:function(t){return u(t)},enableAlpha:!0}))))))}({inputTextColor:y,inputBackgroundColor:v,setInputTextColor:function(t){return r({inputTextColor:t})},setInputBackgroundColor:function(t){return r({inputBackgroundColor:t})}}),function(t){var e=t.inputPadding,r=t.setInputPadding,n=t.inputMargin,l=t.setInputMargin;return React.createElement(o.InspectorControls,{group:"dimensions"},React.createElement(i.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement(i.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,a.__)("Input Padding","matador-jobs"),values:e,onChange:function(t){return r(t)}}),React.createElement(i.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,a.__)("Input Margin","matador-jobs"),values:n,onChange:function(t){return l(t)}})))}({inputPadding:b,setInputPadding:function(t){return r({inputPadding:t})},inputMargin:w,setInputMargin:function(t){return r({inputMargin:t})}}),React.createElement("div",d({},u,{style:{backgroundColor:v,color:y}}),g&&React.createElement("label",null,g),React.createElement("select",{value:m,onChange:function(t){return C(t.target.value)},style:{paddingTop:b.top||x.top,paddingBottom:b.bottom||x.bottom,paddingRight:b.right||x.right,paddingLeft:b.left||x.left,marginTop:w.top||_.top,marginBottom:w.bottom||_.bottom,marginLeft:w.left||_.left,marginRight:w.right||_.right}},React.createElement("option",{value:""},m?s.A.titleize(m):(0,a.__)("Select a taxonomy","matador-jobs")))))}})},953:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){o=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",s=l.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),l=new P(n||[]);return i(a,"_invoke",{value:L(t,r,l)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var d="suspendedStart",m="suspendedYield",g="executing",y="completed",v={};function b(){}function w(){}function x(){}var _={};f(_,u,(function(){return this}));var E=Object.getPrototypeOf,C=E&&E(E(I([])));C&&C!==r&&a.call(C,u)&&(_=C);var j=x.prototype=b.prototype=Object.create(_);function k(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,l,u){var c=h(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==n(f)&&a.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,l,u)}),(function(t){r("throw",t,l,u)})):e.resolve(f).then((function(t){s.value=t,l(s)}),(function(t){return r("throw",t,l,u)}))}u(c.arg)}var o;i(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(a,a):a()}})}function L(e,r,n){var o=d;return function(a,i){if(o===g)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var l=n.delegate;if(l){var u=R(l,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var c=h(e,r,n);if("normal"===c.type){if(o=n.done?y:m,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=y,n.method="throw",n.arg=c.arg)}}}function R(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,R(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(a.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(n(e)+" is not iterable")}return w.prototype=x,i(j,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,s,"GeneratorFunction")),t.prototype=Object.create(j),t},e.awrap=function(t){return{__await:t}},k(O.prototype),f(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(p(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(j),f(j,s,"Generator"),f(j,u,(function(){return this})),f(j,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return l.type="throw",l.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function a(t,e,r,n,o,a,i){try{var l=t[a](i),u=l.value}catch(t){return void r(t)}l.done?e(u):Promise.resolve(u).then(n,o)}var i,l;r.d(e,{A:()=>u}),window.wp.coreData;const u={titleize:function(t){var e=t.replace(/[-_]/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").toLowerCase().split(" ").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ");return e},publishedJobCount:(i=o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,wp.apiFetch({path:"/matador/v1/jobs/job-listings"});case 3:if(e=t.sent){t.next=6;break}return t.abrupt("return",0);case 6:return t.abrupt("return",e.length);case 9:return t.prev=9,t.t0=t.catch(0),console.error("Error fetching job listings:",t.t0),t.abrupt("return",0);case 13:case"end":return t.stop()}}),t,null,[[0,9]])})),l=function(){var t=this,e=arguments;return new Promise((function(r,n){var o=i.apply(t,e);function l(t){a(o,r,n,l,u,"next",t)}function u(t){a(o,r,n,l,u,"throw",t)}l(void 0)}))},function(){return l.apply(this,arguments)})}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var a=r[t]={exports:{}};return e[t](a,a.exports,n),a.exports}n.m=e,t=[],n.O=(e,r,o,a)=>{if(!r){var i=1/0;for(s=0;s<t.length;s++){for(var[r,o,a]=t[s],l=!0,u=0;u<r.length;u++)(!1&a||i>=a)&&Object.keys(n.O).every((t=>n.O[t](r[u])))?r.splice(u--,1):(l=!1,a<i&&(i=a));if(l){t.splice(s--,1);var c=o();void 0!==c&&(e=c)}}return e}a=a||0;for(var s=t.length;s>0&&t[s-1][2]>a;s--)t[s]=t[s-1];t[s]=[r,o,a]},n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={59:0,801:0,821:0};n.O.j=e=>0===t[e];var e=(e,r)=>{var o,a,[i,l,u]=r,c=0;if(i.some((e=>0!==t[e]))){for(o in l)n.o(l,o)&&(n.m[o]=l[o]);if(u)var s=u(n)}for(e&&e(r);c<i.length;c++)a=i[c],n.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return n.O(s)},r=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})();var o=n.O(void 0,[821],(()=>n(695)));o=n.O(o)})();1 (()=>{"use strict";var t,e={953:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){o=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",s=l.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),l=new P(n||[]);return i(a,"_invoke",{value:L(t,r,l)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var d="suspendedStart",m="suspendedYield",g="executing",y="completed",v={};function b(){}function w(){}function x(){}var _={};f(_,u,(function(){return this}));var E=Object.getPrototypeOf,C=E&&E(E(I([])));C&&C!==r&&a.call(C,u)&&(_=C);var j=x.prototype=b.prototype=Object.create(_);function k(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,l,u){var c=h(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==n(f)&&a.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,l,u)}),(function(t){r("throw",t,l,u)})):e.resolve(f).then((function(t){s.value=t,l(s)}),(function(t){return r("throw",t,l,u)}))}u(c.arg)}var o;i(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(a,a):a()}})}function L(e,r,n){var o=d;return function(a,i){if(o===g)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var l=n.delegate;if(l){var u=R(l,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var c=h(e,r,n);if("normal"===c.type){if(o=n.done?y:m,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=y,n.method="throw",n.arg=c.arg)}}}function R(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,R(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(a.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(n(e)+" is not iterable")}return w.prototype=x,i(j,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,s,"GeneratorFunction")),t.prototype=Object.create(j),t},e.awrap=function(t){return{__await:t}},k(O.prototype),f(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(p(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(j),f(j,s,"Generator"),f(j,u,(function(){return this})),f(j,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return l.type="throw",l.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function a(t,e,r,n,o,a,i){try{var l=t[a](i),u=l.value}catch(t){return void r(t)}l.done?e(u):Promise.resolve(u).then(n,o)}var i,l;r.d(e,{A:()=>u}),window.wp.coreData;const u={titleize:function(t){var e=t.replace(/[-_]/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").toLowerCase().split(" ").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ");return e},publishedJobCount:(i=o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,wp.apiFetch({path:"/matador/v1/jobs/job-listings"});case 3:if(e=t.sent){t.next=6;break}return t.abrupt("return",0);case 6:return t.abrupt("return",e.length);case 9:return t.prev=9,t.t0=t.catch(0),console.error("Error fetching job listings:",t.t0),t.abrupt("return",0);case 13:case"end":return t.stop()}}),t,null,[[0,9]])})),l=function(){var t=this,e=arguments;return new Promise((function(r,n){var o=i.apply(t,e);function l(t){a(o,r,n,l,u,"next",t)}function u(t){a(o,r,n,l,u,"throw",t)}l(void 0)}))},function(){return l.apply(this,arguments)})}},695:(t,e,r)=>{const n=window.wp.blocks,o=window.wp.blockEditor,a=window.wp.i18n,i=window.wp.components,l=window.wp.element,u=window.wp.apiFetch;var c=r.n(u),s=r(953);const f=window.wp.data;function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,l=[],u=!0,c=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return h(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function d(){return d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},d.apply(null,arguments)}const m=JSON.parse('{"UU":"matador-jobs/jobs-search-taxonomy"}');(0,n.registerBlockType)(m.UU,{edit:function(t){var e=t.attributes,r=t.setAttributes,n=t.context,u=(0,o.useBlockProps)({className:"matador-jobs-search-taxonomy-block matador-search-form-field-group"}),h=e.taxonomies,m=e.chosenTaxonomy,g=e.label,y=e.inputTextColor,v=e.inputBackgroundColor,b=e.inputPadding,w=e.inputMargin,x=n["matador-jobs/searchFieldInputsPadding"]||{top:null,right:null,bottom:null,left:null},_=n["matador-jobs/searchFieldInputsMargin"]||{top:null,right:null,bottom:null,left:null},E=function(t){r({taxonomies:t})};(0,l.useEffect)((function(){c()({path:"/matador/v1/jobs/taxonomies"}).then((function(t){var e=Object.values(t);0<e.length&&Object.hasOwn(e[0],"key")&&E(e)})).catch((function(t){console.error(t)}))}),[E]);var C=function(t){r({chosenTaxonomy:t})};return React.createElement(React.Fragment,null,React.createElement(o.InspectorControls,null,React.createElement(i.PanelBody,{title:(0,a.__)("Settings","matador-jobs"),initialOpen:!0},React.createElement(i.PanelRow,null,function(t){var e=t.chosenTaxonomy,r=t.setChosenTaxonomy,n=t.taxonomies;return n?React.createElement(i.SelectControl,{label:(0,a.__)("Chosen Taxonomy","matador-jobs"),value:e,options:n.map((function(t){return{label:s.A.titleize(t.single),value:t.slug}})),onChange:function(t){return r(t)},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}):React.createElement(i.Spinner,null)}({chosenTaxonomy:m,setChosenTaxonomy:C,taxonomies:h})),React.createElement(i.PanelRow,null,function(t){var e=t.label,r=t.setLabel;return React.createElement(i.TextControl,{label:(0,a.__)("Label Text","matador-jobs"),help:(0,a.__)("A label for the keyword field (leave blank if no label desired)","matador-jobs"),value:e,onChange:function(t){return r(t)},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}({label:g,setLabel:function(t){r({label:t})}})))),function(t){var e=t.inputTextColor,r=t.inputBackgroundColor,n=t.setInputTextColor,u=t.setInputBackgroundColor,c=(0,f.useSelect)((function(t){return t(o.store).getSettings().colors||[]})),s=p((0,l.useState)(!1),2),h=s[0],d=s[1],m=function(){return d((function(t){return!t}))},g=p((0,l.useState)(!1),2),y=g[0],v=g[1];return React.createElement(React.Fragment,null,React.createElement(o.InspectorControls,{group:"color"},React.createElement(i.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement(i.Button,{variant:"secondary",onClick:m,text:(0,a.__)("Input Text Color","matador-jobs")},h&&React.createElement(i.Popover,{placement:"left",style:{padding:"20px"},onClose:function(){return m()}},React.createElement("h4",{style:{margin:"20px"}},(0,a.__)("Input Text Color","matador-jobs")),React.createElement(i.ColorPalette,{style:{margin:"20px"},colors:c,value:e,onChange:function(t){return n(t)},enableAlpha:!0}))),React.createElement(i.Button,{variant:"secondary",onClick:function(){return arguments.length>0&&void 0!==arguments[0]||state,v((function(t){return!t}))},text:(0,a.__)("Input Background Color","matador-jobs")},y&&React.createElement(i.Popover,{placement:"left",style:{padding:"20px"},onClose:function(){return m()}},React.createElement("h4",{style:{margin:"20px"}},(0,a.__)("Input Background Color","matador-jobs")),React.createElement(i.ColorPalette,{style:{margin:"20px"},colors:c,value:r,onChange:function(t){return u(t)},enableAlpha:!0}))))))}({inputTextColor:y,inputBackgroundColor:v,setInputTextColor:function(t){return r({inputTextColor:t})},setInputBackgroundColor:function(t){return r({inputBackgroundColor:t})}}),function(t){var e=t.inputPadding,r=t.setInputPadding,n=t.inputMargin,l=t.setInputMargin;return React.createElement(o.InspectorControls,{group:"dimensions"},React.createElement(i.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement(i.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,a.__)("Input Padding","matador-jobs"),values:e,onChange:function(t){return r(t)}}),React.createElement(i.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,a.__)("Input Margin","matador-jobs"),values:n,onChange:function(t){return l(t)}})))}({inputPadding:b,setInputPadding:function(t){return r({inputPadding:t})},inputMargin:w,setInputMargin:function(t){return r({inputMargin:t})}}),React.createElement("div",d({},u,{style:{backgroundColor:v,color:y}}),g&&React.createElement("label",null,g),React.createElement("select",{value:m,onChange:function(t){return C(t.target.value)},style:{paddingTop:b.top||x.top,paddingBottom:b.bottom||x.bottom,paddingRight:b.right||x.right,paddingLeft:b.left||x.left,marginTop:w.top||_.top,marginBottom:w.bottom||_.bottom,marginLeft:w.left||_.left,marginRight:w.right||_.right}},React.createElement("option",{value:""},m?s.A.titleize(m):(0,a.__)("Select a taxonomy","matador-jobs")))))}})}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var a=r[t]={exports:{}};return e[t](a,a.exports,n),a.exports}n.m=e,t=[],n.O=(e,r,o,a)=>{if(!r){var i=1/0;for(s=0;s<t.length;s++){for(var[r,o,a]=t[s],l=!0,u=0;u<r.length;u++)(!1&a||i>=a)&&Object.keys(n.O).every((t=>n.O[t](r[u])))?r.splice(u--,1):(l=!1,a<i&&(i=a));if(l){t.splice(s--,1);var c=o();void 0!==c&&(e=c)}}return e}a=a||0;for(var s=t.length;s>0&&t[s-1][2]>a;s--)t[s]=t[s-1];t[s]=[r,o,a]},n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={59:0,801:0,821:0};n.O.j=e=>0===t[e];var e=(e,r)=>{var o,a,[i,l,u]=r,c=0;if(i.some((e=>0!==t[e]))){for(o in l)n.o(l,o)&&(n.m[o]=l[o]);if(u)var s=u(n)}for(e&&e(r);c<i.length;c++)a=i[c],n.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return n.O(s)},r=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})();var o=n.O(void 0,[821],(()=>n(695)));o=n.O(o)})(); -
matador-jobs/trunk/src/Editors/Blocks/build/jobs-search/index.asset.php
r3254249 r3279451 1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => ' 85dd638191ddae7947c4');1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'c665cbbacb6d87e2c054'); -
matador-jobs/trunk/src/Editors/Blocks/build/jobs-search/index.js
r3254249 r3279451 1 (()=>{"use strict";var e,t={807:()=>{const e=window.wp.blocks,t=window.wp.blockEditor,r=window.wp.i18n,o=window.wp.components,n=window.wp.data,a=window.wp.element;function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,a,l,s=[],c=!0,i=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(o=a.call(r)).done)&&(s.push(o.value),s.length!==t);c=!0);}catch(e){i=!0,n=e}finally{try{if(!c&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(i)throw n}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},i.apply(null,arguments)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const b=JSON.parse('{"UU":"matador-jobs/jobs-search"}');(0,e.registerBlockType)(b.UU,{edit:function(e){var s,c=e.attributes,u=e.setAttributes,p=(e.context,(0,t.useBlockProps)({className:"matador-jobs-search-block"})),b=c.labelsPosition,m=c.labelsTextColor,f=c.labelsBackgroundColor,h=c.inputsBackgroundColor,g=c.inputsPlaceholderColor,y=c.inputsPadding,v=c.inputsMargin,j=c.inputsBorders,C=c.inputsBorderRadius;return React.createElement(React.Fragment,null,React.createElement(t.InspectorControls,null,React.createElement(o.PanelBody,{title:(0,r.__)("Settings","matador-jobs"),initialOpen:!0},function(e){var t=e.labelsPosition,n=e.setLabelsPosition;return React.createElement(React.Fragment,null,React.createElement(o.PanelRow,null,React.createElement(o.SelectControl,{label:(0,r.__)("Labels Position","matador-jobs"),help:(0,r.__)("Choose how the labels are positioned relative to their input field","matador-jobs"),value:t,options:[{value:"column",label:(0,r.__)("Above","matador-jobs")},{value:"column-reverse",label:(0,r.__)("Below","matador-jobs")},{value:"row",label:(0,r.__)("To Left","matador-jobs")},{value:"row-reverse",label:(0,r.__)("To Right","matador-jobs")}],onChange:function(e){return n(e)},__nextHasNoMarginBottom:!0 })))}({labelsPosition:b,setLabelsPosition:function(e){return u({labelsPosition:e})}}))),function(e){var s=e.inputsBackgroundColor,c=e.setInputsBackgroundColor,i=e.inputsPlaceholderColor,u=e.setInputsPlaceholderColor,d=e.labelsTextColor,p=e.setLabelsTextColor,b=e.labelsBackgroundColor,m=e.setLabelsBackgroundColor,f=(0,n.useSelect)((function(e){return e(t.store).getSettings().colors||[]})),h=l((0,a.useState)(!1),2),g=h[0],y=h[1],v=function(){return arguments.length>0&&void 0!==arguments[0]||state,y((function(e){return!e}))},j=l((0,a.useState)(!1),2),C=j[0],_=j[1],x=function(){return arguments.length>0&&void 0!==arguments[0]||state,_((function(e){return!e}))},w=l((0,a.useState)(!1),2),R=w[0],B=w[1],E=function(){return arguments.length>0&&void 0!==arguments[0]||state,B((function(e){return!e}))},P=l((0,a.useState)(!1),2),k=P[0],O=P[1],S=function(){return arguments.length>0&&void 0!==arguments[0]||state,O((function(e){return!e}))};return React.createElement(React.Fragment,null,React.createElement(t.InspectorControls,{group:"color"},React.createElement(o.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement(o.Button,{variant:"secondary",onClick:v,text:(0,r.__)("Input Background Color","matador-jobs")},g&&React.createElement(o.Popover,{placement:"left",style:{padding:"20px"},onClose:function(){return v(!1)}},React.createElement("h4",{style:{margin:"20px"}},(0,r.__)("Input Background Color","matador-jobs")),React.createElement(o.ColorPalette,{style:{margin:"20px"},colors:f,value:s,onChange:function(e){return c(e)},enableAlpha:!0}))),React.createElement(o.Button,{variant:"secondary",onClick:x,text:(0,r.__)("Input Placeholder Color","matador-jobs")},C&&React.createElement(o.Popover,{placement:"left",style:{padding:"20px"},onClose:function(){return x(!1)}},React.createElement("h4",{style:{margin:"20px"}},(0,r.__)("Input Placeholder Color","matador-jobs")),React.createElement(o.ColorPalette,{style:{margin:"20px"},colors:f,value:i,onChange:function(e){return u(e)},enableAlpha:!0}))),React.createElement(o.Button,{variant:"secondary",onClick:E,text:(0,r.__)("Label Text Color","matador-jobs")},R&&React.createElement(o.Popover,{placement:"left",style:{padding:"20px"},onClose:function(){return E(!1)}},React.createElement("h4",{style:{margin:"20px"}},(0,r.__)("Label Text Color","matador-jobs")),React.createElement(o.ColorPalette,{style:{margin:"20px"},colors:f,value:d,onChange:function(e){return p(e)},enableAlpha:!0}))),React.createElement(o.Button,{variant:"secondary",onClick:S,text:(0,r.__)("Label Background Color","matador-jobs")},k&&React.createElement(o.Popover,{placement:"left",style:{padding:"20px"},onClose:function(){return S(!1)}},React.createElement("h4",{style:{margin:"20px"}},(0,r.__)("Label Background Color","matador-jobs")),React.createElement(o.ColorPalette,{style:{margin:"20px"},colors:f,value:b,onChange:function(e){return m(e)},enableAlpha:!0}))))))}({inputsBackgroundColor:h,setInputsBackgroundColor:function(e){return u({inputsBackgroundColor:e})},labelsTextColor:m,setLabelsTextColor:function(e){return u({labelsTextColor:e})},labelsBackgroundColor:f,setLabelsBackgroundColor:function(e){return u({labelsBackgroundColor:e})},inputsPlaceholderColor:g,setInputsPlaceholderColor:function(e){return u({inputsPlaceholderColor:e})}}),function(e){var n=e.inputsPadding,a=e.setInputsPadding,l=e.inputsMargin,s=e.setInputsMargin;return React.createElement(t.InspectorControls,{group:"dimensions"},React.createElement(o.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement(o.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,r.__)("Elements Padding","matador-jobs"),values:n,onChange:function(e){return a(e)}}),React.createElement("p",null,(0,r.__)("Set padding for the child blocks within this job search block.","matador-jobs")),React.createElement(o.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,r.__)("Elements Margin","matador-jobs"),values:l,onChange:function(e){return s(e)}}),React.createElement("p",null,(0,r.__)("Set margin for the child blocks within this job search block.","matador-jobs"))))}({inputsPadding:y,setInputsPadding:function(e){return u({inputsPadding:e})},inputsMargin:v,setInputsMargin:function(e){return u({inputsMargin:e})}}),function(e){var a=e.inputsBorders,l=e.setInputsBorders,s=e.inputsBorderRadius,c=e.setInputsBorderRadius,i=(0,n.useSelect)((function(e){return e(t.store).getSettings().colors||[]}));return React.createElement(React.Fragment,null,React.createElement(t.InspectorControls,{group:"border"},React.createElement(o.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement(o.__experimentalBorderBoxControl,{__next40pxDefaultSize:!0,colors:i,label:(0,r.__)("Input Borders","matador-jobs"),onChange:function(e){return l(e)},value:a,enableStyle:!0,enableAlpha:!0}),React.createElement(o.RangeControl,{label:(0,r.__)("Input Border Radius (px)","matador-jobs"),onChange:function(e){return c(e)},value:s,min:0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}))))}({inputsBorders:j,setInputsBorders:function(e){void 0===e.style&&(e.style="solid"),u({inputsBorders:e})},inputsBorderRadius:C,setInputsBorderRadius:function(e){return u({inputsBorderRadius:e+"px"})}}),React.createElement("div",i({},p,{style:(s={"--matador-search-labels-position":b,"--matador-search-labels-text-color":m,"--matador-search-labels-background-color":f,"--matador-search-inputs-background-color":h,"--matador-search-inputs-placeholder-color":g,"--matador-search-inputs-border-radius":C},j&&Object.hasOwn(j,"top")?s=d(d({},s),{},{"--matador-search-inputs-borders-top":"".concat(j.top.style," ").concat(j.top.width," ").concat(j.top.color),"--matador-search-inputs-borders-right":"".concat(j.right.style," ").concat(j.right.width," ").concat(j.right.color),"--matador-search-inputs-borders-bottom":"".concat(j.bottom.style," ").concat(j.bottom.width," ").concat(j.bottom.color),"--matador-search-inputs-borders-left":"".concat(j.left.style," ").concat(j.left.width," ").concat(j.left.color)}):j&&Object.hasOwn(j,"color")&&(s=d(d({},s),{},{"--matador-search-inputs-borders-style":j.style,"--matador-search-inputs-borders-width":j.width,"--matador-search-inputs-borders-color":j.color})),s)}),React.createElement(t.InnerBlocks,{allowedBlocks:["matador-jobs/jobs-search-keyword","matador-jobs/jobs-search-id","matador-jobs/jobs-search-taxonomy","matador-jobs/jobs-search-reset","matador-jobs/jobs-search-submit","core/group"],template:[["core/group",{layout:{type:"flex",orientation:"horizontal",justifyContent:"space-between"}},[["matador-jobs/jobs-search-keyword",{}],["matador-jobs/jobs-search-id",{}],["matador-jobs/jobs-search-taxonomy",{}],["matador-jobs/jobs-search-reset",{}],["matador-jobs/jobs-search-submit",{}]]]]})))},save:function(e){return React.createElement(t.InnerBlocks.Content,null)}})}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.m=t,e=[],o.O=(t,r,n,a)=>{if(!r){var l=1/0;for(u=0;u<e.length;u++){for(var[r,n,a]=e[u],s=!0,c=0;c<r.length;c++)(!1&a||l>=a)&&Object.keys(o.O).every((e=>o.O[e](r[c])))?r.splice(c--,1):(s=!1,a<l&&(l=a));if(s){e.splice(u--,1);var i=n();void 0!==i&&(t=i)}}return t}a=a||0;for(var u=e.length;u>0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[r,n,a]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={5:0,985:0};o.O.j=t=>0===e[t];var t=(t,r)=>{var n,a,[l,s,c]=r,i=0;if(l.some((t=>0!==e[t]))){for(n in s)o.o(s,n)&&(o.m[n]=s[n]);if(c)var u=c(o)}for(t&&t(r);i<l.length;i++)a=l[i],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return o.O(u)},r=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var n=o.O(void 0,[985],(()=>o(807)));n=o.O(n)})();1 (()=>{"use strict";var e,t={807:()=>{const e=window.wp.blocks,t=window.wp.blockEditor,r=window.wp.i18n,o=window.wp.components,n=window.wp.data,a=window.wp.element;function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,a,l,s=[],c=!0,i=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(o=a.call(r)).done)&&(s.push(o.value),s.length!==t);c=!0);}catch(e){i=!0,n=e}finally{try{if(!c&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(i)throw n}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},i.apply(null,arguments)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const b=JSON.parse('{"UU":"matador-jobs/jobs-search"}');(0,e.registerBlockType)(b.UU,{edit:function(e){var s,c=e.attributes,u=e.setAttributes,p=(e.context,(0,t.useBlockProps)({className:"matador-jobs-search-block"})),b=c.labelsPosition,m=c.labelsTextColor,f=c.labelsBackgroundColor,h=c.inputsBackgroundColor,g=c.inputsPlaceholderColor,y=c.inputsPadding,v=c.inputsMargin,j=c.inputsBorders,C=c.inputsBorderRadius;return React.createElement(React.Fragment,null,React.createElement(t.InspectorControls,null,React.createElement(o.PanelBody,{title:(0,r.__)("Settings","matador-jobs"),initialOpen:!0},function(e){var t=e.labelsPosition,n=e.setLabelsPosition;return React.createElement(React.Fragment,null,React.createElement(o.PanelRow,null,React.createElement(o.SelectControl,{label:(0,r.__)("Labels Position","matador-jobs"),help:(0,r.__)("Choose how the labels are positioned relative to their input field","matador-jobs"),value:t,options:[{value:"column",label:(0,r.__)("Above","matador-jobs")},{value:"column-reverse",label:(0,r.__)("Below","matador-jobs")},{value:"row",label:(0,r.__)("To Left","matador-jobs")},{value:"row-reverse",label:(0,r.__)("To Right","matador-jobs")}],onChange:function(e){return n(e)},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})))}({labelsPosition:b,setLabelsPosition:function(e){return u({labelsPosition:e})}}))),function(e){var s=e.inputsBackgroundColor,c=e.setInputsBackgroundColor,i=e.inputsPlaceholderColor,u=e.setInputsPlaceholderColor,d=e.labelsTextColor,p=e.setLabelsTextColor,b=e.labelsBackgroundColor,m=e.setLabelsBackgroundColor,f=(0,n.useSelect)((function(e){return e(t.store).getSettings().colors||[]})),h=l((0,a.useState)(!1),2),g=h[0],y=h[1],v=function(){return arguments.length>0&&void 0!==arguments[0]||state,y((function(e){return!e}))},j=l((0,a.useState)(!1),2),C=j[0],_=j[1],x=function(){return arguments.length>0&&void 0!==arguments[0]||state,_((function(e){return!e}))},w=l((0,a.useState)(!1),2),R=w[0],B=w[1],E=function(){return arguments.length>0&&void 0!==arguments[0]||state,B((function(e){return!e}))},P=l((0,a.useState)(!1),2),k=P[0],O=P[1],S=function(){return arguments.length>0&&void 0!==arguments[0]||state,O((function(e){return!e}))};return React.createElement(React.Fragment,null,React.createElement(t.InspectorControls,{group:"color"},React.createElement(o.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement(o.Button,{variant:"secondary",onClick:v,text:(0,r.__)("Input Background Color","matador-jobs")},g&&React.createElement(o.Popover,{placement:"left",style:{padding:"20px"},onClose:function(){return v(!1)}},React.createElement("h4",{style:{margin:"20px"}},(0,r.__)("Input Background Color","matador-jobs")),React.createElement(o.ColorPalette,{style:{margin:"20px"},colors:f,value:s,onChange:function(e){return c(e)},enableAlpha:!0}))),React.createElement(o.Button,{variant:"secondary",onClick:x,text:(0,r.__)("Input Placeholder Color","matador-jobs")},C&&React.createElement(o.Popover,{placement:"left",style:{padding:"20px"},onClose:function(){return x(!1)}},React.createElement("h4",{style:{margin:"20px"}},(0,r.__)("Input Placeholder Color","matador-jobs")),React.createElement(o.ColorPalette,{style:{margin:"20px"},colors:f,value:i,onChange:function(e){return u(e)},enableAlpha:!0}))),React.createElement(o.Button,{variant:"secondary",onClick:E,text:(0,r.__)("Label Text Color","matador-jobs")},R&&React.createElement(o.Popover,{placement:"left",style:{padding:"20px"},onClose:function(){return E(!1)}},React.createElement("h4",{style:{margin:"20px"}},(0,r.__)("Label Text Color","matador-jobs")),React.createElement(o.ColorPalette,{style:{margin:"20px"},colors:f,value:d,onChange:function(e){return p(e)},enableAlpha:!0}))),React.createElement(o.Button,{variant:"secondary",onClick:S,text:(0,r.__)("Label Background Color","matador-jobs")},k&&React.createElement(o.Popover,{placement:"left",style:{padding:"20px"},onClose:function(){return S(!1)}},React.createElement("h4",{style:{margin:"20px"}},(0,r.__)("Label Background Color","matador-jobs")),React.createElement(o.ColorPalette,{style:{margin:"20px"},colors:f,value:b,onChange:function(e){return m(e)},enableAlpha:!0}))))))}({inputsBackgroundColor:h,setInputsBackgroundColor:function(e){return u({inputsBackgroundColor:e})},labelsTextColor:m,setLabelsTextColor:function(e){return u({labelsTextColor:e})},labelsBackgroundColor:f,setLabelsBackgroundColor:function(e){return u({labelsBackgroundColor:e})},inputsPlaceholderColor:g,setInputsPlaceholderColor:function(e){return u({inputsPlaceholderColor:e})}}),function(e){var n=e.inputsPadding,a=e.setInputsPadding,l=e.inputsMargin,s=e.setInputsMargin;return React.createElement(t.InspectorControls,{group:"dimensions"},React.createElement(o.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement(o.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,r.__)("Elements Padding","matador-jobs"),values:n,onChange:function(e){return a(e)}}),React.createElement("p",null,(0,r.__)("Set padding for the child blocks within this job search block.","matador-jobs")),React.createElement(o.__experimentalBoxControl,{__next40pxDefaultSize:!0,label:(0,r.__)("Elements Margin","matador-jobs"),values:l,onChange:function(e){return s(e)}}),React.createElement("p",null,(0,r.__)("Set margin for the child blocks within this job search block.","matador-jobs"))))}({inputsPadding:y,setInputsPadding:function(e){return u({inputsPadding:e})},inputsMargin:v,setInputsMargin:function(e){return u({inputsMargin:e})}}),function(e){var a=e.inputsBorders,l=e.setInputsBorders,s=e.inputsBorderRadius,c=e.setInputsBorderRadius,i=(0,n.useSelect)((function(e){return e(t.store).getSettings().colors||[]}));return React.createElement(React.Fragment,null,React.createElement(t.InspectorControls,{group:"border"},React.createElement(o.__experimentalVStack,{style:{gridColumn:"1 / -1"}},React.createElement(o.__experimentalBorderBoxControl,{__next40pxDefaultSize:!0,colors:i,label:(0,r.__)("Input Borders","matador-jobs"),onChange:function(e){return l(e)},value:a,enableStyle:!0,enableAlpha:!0}),React.createElement(o.RangeControl,{label:(0,r.__)("Input Border Radius (px)","matador-jobs"),onChange:function(e){return c(e)},value:s,min:0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}))))}({inputsBorders:j,setInputsBorders:function(e){void 0===e.style&&(e.style="solid"),u({inputsBorders:e})},inputsBorderRadius:C,setInputsBorderRadius:function(e){return u({inputsBorderRadius:e+"px"})}}),React.createElement("div",i({},p,{style:(s={"--matador-search-labels-position":b,"--matador-search-labels-text-color":m,"--matador-search-labels-background-color":f,"--matador-search-inputs-background-color":h,"--matador-search-inputs-placeholder-color":g,"--matador-search-inputs-border-radius":C},j&&Object.hasOwn(j,"top")?s=d(d({},s),{},{"--matador-search-inputs-borders-top":"".concat(j.top.style," ").concat(j.top.width," ").concat(j.top.color),"--matador-search-inputs-borders-right":"".concat(j.right.style," ").concat(j.right.width," ").concat(j.right.color),"--matador-search-inputs-borders-bottom":"".concat(j.bottom.style," ").concat(j.bottom.width," ").concat(j.bottom.color),"--matador-search-inputs-borders-left":"".concat(j.left.style," ").concat(j.left.width," ").concat(j.left.color)}):j&&Object.hasOwn(j,"color")&&(s=d(d({},s),{},{"--matador-search-inputs-borders-style":j.style,"--matador-search-inputs-borders-width":j.width,"--matador-search-inputs-borders-color":j.color})),s)}),React.createElement(t.InnerBlocks,{allowedBlocks:["matador-jobs/jobs-search-keyword","matador-jobs/jobs-search-id","matador-jobs/jobs-search-taxonomy","matador-jobs/jobs-search-reset","matador-jobs/jobs-search-submit","core/group"],template:[["core/group",{layout:{type:"flex",orientation:"horizontal",justifyContent:"space-between"}},[["matador-jobs/jobs-search-keyword",{}],["matador-jobs/jobs-search-id",{}],["matador-jobs/jobs-search-taxonomy",{}],["matador-jobs/jobs-search-reset",{}],["matador-jobs/jobs-search-submit",{}]]]]})))},save:function(e){return React.createElement(t.InnerBlocks.Content,null)}})}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.m=t,e=[],o.O=(t,r,n,a)=>{if(!r){var l=1/0;for(u=0;u<e.length;u++){for(var[r,n,a]=e[u],s=!0,c=0;c<r.length;c++)(!1&a||l>=a)&&Object.keys(o.O).every((e=>o.O[e](r[c])))?r.splice(c--,1):(s=!1,a<l&&(l=a));if(s){e.splice(u--,1);var i=n();void 0!==i&&(t=i)}}return t}a=a||0;for(var u=e.length;u>0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[r,n,a]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={5:0,985:0};o.O.j=t=>0===e[t];var t=(t,r)=>{var n,a,[l,s,c]=r,i=0;if(l.some((t=>0!==e[t]))){for(n in s)o.o(s,n)&&(o.m[n]=s[n]);if(c)var u=c(o)}for(t&&t(r);i<l.length;i++)a=l[i],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return o.O(u)},r=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var n=o.O(void 0,[985],(()=>o(807)));n=o.O(n)})(); -
matador-jobs/trunk/src/Integrations/Bullhorn/Bullhorn.php
r3254249 r3279451 31 31 */ 32 32 public function __construct() { 33 add_filter( 'matador_jobs_general_countries', [ __CLASS__, 'bullhorn_countries' ] );34 }35 33 36 /** 37 * Replace Default Countries with Bullhorn Countries 38 * 39 * @since 3.9.0 40 * 41 * @param array $countries Array with [ CountryID => CountryName, ... ] shape. 42 * 43 * @return array 44 */ 45 public static function bullhorn_countries( array $countries ): array { 46 47 $bullhorn_countries = Helper::get_country_list(); 48 49 if ( ! empty( $bullhorn_countries ) ) { 50 51 return $bullhorn_countries; 52 } 53 54 return $countries; 34 // Replace Matador Countries with Bullhorn Countries 35 add_filter( 'matador_jobs_general_countries', [ 'matador\MatadorJobs\Integrations\Bullhorn\Helper', 'get_country_list' ] ); 36 add_filter( 'matador_application_field_should_skip', [ 'matador\MatadorJobs\Integrations\Bullhorn\Helper', 'maybe_skip_application_country_field' ], 10, 3 ); 55 37 } 56 38 } -
matador-jobs/trunk/src/Integrations/Bullhorn/Helper.php
r3254249 r3279451 35 35 return ( get_transient( $cache_key ) ) ?: []; 36 36 } 37 38 39 /** 40 * Skip the Application Country Field for Bullhorn when the Array of Countries is Empty 41 * 42 * @since 3.9.7 43 * 44 * @param bool $skip Whether to skip the field. 45 * @param array $args The field arguments. 46 * @param string $field The field name. 47 * 48 * @return bool 49 */ 50 public static function maybe_skip_application_country_field( bool $skip, array $args, string $field ): bool { 51 52 if ( 'country' !== $field ) { 53 54 return $skip; 55 } 56 57 if ( empty( $args['options'] ) ) { 58 59 self::skip_application_country_field_message(); 60 61 return true; 62 } 63 64 return $skip; 65 } 66 67 /** 68 * Admin Message When Array of Bullhorn Countries is Empty 69 * 70 * @since 3.9.7 71 * 72 * @return void 73 */ 74 public static function skip_application_country_field_message(): void { 75 76 if ( ! current_user_can( 'edit_posts' ) ) { 77 78 return; 79 } 80 81 $format = "<div class='matador-admin-frontend-notice'><em>%s</em></div>"; 82 83 printf( $format, __( 'The country form field is skipped, as the Bullhorn Countries List is not synced. Please connect to and sync Bullhorn to download country data. This message is only shown to administrators.', 'matador-jobs' ) ); 84 } 37 85 } -
matador-jobs/trunk/src/Rest/Endpoint/Jobs/JobListings.php
r3254249 r3279451 245 245 break; 246 246 default: 247 if ( in_array( $field, Job_Taxonomies:: registered_taxonomies(), true ) ) {247 if ( in_array( $field, Job_Taxonomies::taxonomies_list(), true ) ) { 248 248 $value = []; 249 249 $terms = Template_Support::the_job_terms( $field, $id ); … … 352 352 if ( 'all' === $request['include'] || 'taxonomies' === $request['include'] ) { 353 353 354 $taxonomies = Job_Taxonomies:: registered_taxonomies();354 $taxonomies = Job_Taxonomies::taxonomies_list(); 355 355 356 356 if ( is_wp_error( $taxonomies ) ) { -
matador-jobs/trunk/src/Rest/Endpoint/Jobs/Taxonomies.php
r3254249 r3279451 22 22 23 23 use matador\Matador; 24 use matador\Job_Taxonomies; 24 25 use matador\MatadorJobs\Rest\Endpoint\EndpointAbstract; 25 26 use matador\MatadorJobs\Core\Logger; … … 86 87 public static function index( WP_REST_Request $request ): WP_REST_Response|WP_Error { 87 88 88 $taxonomies = Matador::variable( 'job_taxonomies');89 $taxonomies = Job_Taxonomies::taxonomies_list(); 89 90 90 91 if ( ! empty( $taxonomies ) ) { … … 122 123 public static function show( WP_REST_Request $request ): WP_REST_Response|WP_Error { 123 124 124 $taxonomies = Matador::variable( 'job_taxonomies');125 $taxonomies = Job_Taxonomies::taxonomies_list(); 125 126 126 127 if ( empty( $taxonomies ) ) { -
matador-jobs/trunk/src/Sync/Bullhorn/Jobs.php
r3254249 r3279451 91 91 */ 92 92 $this->steps = apply_filters( 'matador_sync_task_steps_' . self::$name, [ 93 'get_countries', 93 94 'get_local_jobs', 94 95 'get_remote_jobs', … … 158 159 159 160 /** 161 * Get Bullhorn Countries 162 * 163 * This runs the Bullhorn Countries call each sync. 164 * 165 * @since 3.9.7 166 * 167 * @return array 168 * @throws Exception 169 */ 170 public function get_countries(): array { 171 return $this->bullhorn->get_countries(); 172 } 173 174 /** 160 175 * Get Bullhorn Jobs 161 176 * -
matador-jobs/trunk/templates/application.php
r3254249 r3279451 95 95 foreach ( $fields as $field => $args ) : 96 96 97 /** 98 * Matador Application Field Should Skip 99 * 100 * @since 3.9.7 101 * 102 * @param bool $should Default false. 103 * @param array $args The array of args. 104 * @param string $field The field name 105 */ 106 if ( apply_filters( 'matador_application_field_should_skip', false, $args, $field ) ) { 107 108 continue; 109 } 110 97 111 // Prepare Field Args. 98 112 list( $args, $template ) = matador_form_field_args( $args, $field ); -
matador-jobs/trunk/templates/jobs-portal.php
r3254249 r3279451 21 21 22 22 use matador\Matador; 23 use matador\Job_Taxonomies; 23 24 24 25 /** … … 146 147 <?php matador_search_form( [ 'fields' => $part['search'] ] ); ?> 147 148 148 <?php elseif ( in_array( $part, array_keys( Matador::variable( 'job_taxonomies' )), true ) ) : ?>149 <?php elseif ( in_array( $part, Job_Taxonomies::taxonomies_list(), true ) ) : ?> 149 150 150 151 <?php matador_taxonomy( [ 'taxonomy' => $part, 'method' => 'filter' ] ); ?> -
matador-jobs/trunk/templates/jobs-search.php
r3254249 r3279451 98 98 <?php matador_get_template_part( 'jobs-search-field', 'reset' ); ?> 99 99 100 <?php elseif ( in_array( $field, Job_Taxonomies:: registered_taxonomies(), true ) ) : ?>100 <?php elseif ( in_array( $field, Job_Taxonomies::taxonomies_list(), true ) ) : ?> 101 101 102 102 <?php matador_get_template_part( 'jobs-search-field', 'taxonomy', array( 'field' => $field, 'as' => $taxonomy_type ) ); ?> -
matador-jobs/trunk/templates/jobs-table.php
r3254249 r3279451 74 74 break; 75 75 default: 76 if ( array_key_exists( $field, matador\Matador::variable( 'job_orderby_mappings' ) ) ) { 76 $job_orderby_options = \matador\Job_Listing::job_orderby_options(); 77 if ( array_key_exists( $field, $job_orderby_options ) ) { 77 78 $orderby_key = apply_filters( 'matador_jobs_table_orderby_key', $field ); 78 79 } -
matador-jobs/trunk/vendor/autoload.php
r3254249 r3279451 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 98bcf1a2611bbfda608da10553e798e6::getLoader();25 return ComposerAutoloaderInitfd23c05c512ba39a91c3a1e3e5bacf21::getLoader(); -
matador-jobs/trunk/vendor/composer/ClassLoader.php
r3254249 r3279451 46 46 private static $includeFile; 47 47 48 /** @var string|null*/48 /** @var ?string */ 49 49 private $vendorDir; 50 50 51 51 // PSR-4 52 52 /** 53 * @var array<string, array<string, int>> 53 * @var array[] 54 * @psalm-var array<string, array<string, int>> 54 55 */ 55 56 private $prefixLengthsPsr4 = array(); 56 57 /** 57 * @var array<string, list<string>> 58 * @var array[] 59 * @psalm-var array<string, array<int, string>> 58 60 */ 59 61 private $prefixDirsPsr4 = array(); 60 62 /** 61 * @var list<string> 63 * @var array[] 64 * @psalm-var array<string, string> 62 65 */ 63 66 private $fallbackDirsPsr4 = array(); … … 65 68 // PSR-0 66 69 /** 67 * List of PSR-0 prefixes 68 * 69 * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) 70 * 71 * @var array<string, array<string, list<string>>> 70 * @var array[] 71 * @psalm-var array<string, array<string, string[]>> 72 72 */ 73 73 private $prefixesPsr0 = array(); 74 74 /** 75 * @var list<string> 75 * @var array[] 76 * @psalm-var array<string, string> 76 77 */ 77 78 private $fallbackDirsPsr0 = array(); … … 81 82 82 83 /** 83 * @var array<string, string> 84 * @var string[] 85 * @psalm-var array<string, string> 84 86 */ 85 87 private $classMap = array(); … … 89 91 90 92 /** 91 * @var array<string, bool> 93 * @var bool[] 94 * @psalm-var array<string, bool> 92 95 */ 93 96 private $missingClasses = array(); 94 97 95 /** @var string|null*/98 /** @var ?string */ 96 99 private $apcuPrefix; 97 100 98 101 /** 99 * @var array<string, self>102 * @var self[] 100 103 */ 101 104 private static $registeredLoaders = array(); 102 105 103 106 /** 104 * @param string|null$vendorDir107 * @param ?string $vendorDir 105 108 */ 106 109 public function __construct($vendorDir = null) … … 111 114 112 115 /** 113 * @return array<string, list<string>>116 * @return string[] 114 117 */ 115 118 public function getPrefixes() … … 123 126 124 127 /** 125 * @return array<string, list<string>> 128 * @return array[] 129 * @psalm-return array<string, array<int, string>> 126 130 */ 127 131 public function getPrefixesPsr4() … … 131 135 132 136 /** 133 * @return list<string> 137 * @return array[] 138 * @psalm-return array<string, string> 134 139 */ 135 140 public function getFallbackDirs() … … 139 144 140 145 /** 141 * @return list<string> 146 * @return array[] 147 * @psalm-return array<string, string> 142 148 */ 143 149 public function getFallbackDirsPsr4() … … 147 153 148 154 /** 149 * @return array<string, string> Array of classname => path 155 * @return string[] Array of classname => path 156 * @psalm-return array<string, string> 150 157 */ 151 158 public function getClassMap() … … 155 162 156 163 /** 157 * @param array<string, string> $classMap Class to filename map 164 * @param string[] $classMap Class to filename map 165 * @psalm-param array<string, string> $classMap 158 166 * 159 167 * @return void … … 172 180 * appending or prepending to the ones previously set for this prefix. 173 181 * 174 * @param string $prefix The prefix175 * @param list<string>|string $paths The PSR-0 root directories176 * @param bool $prepend Whether to prepend the directories182 * @param string $prefix The prefix 183 * @param string[]|string $paths The PSR-0 root directories 184 * @param bool $prepend Whether to prepend the directories 177 185 * 178 186 * @return void … … 180 188 public function add($prefix, $paths, $prepend = false) 181 189 { 182 $paths = (array) $paths;183 190 if (!$prefix) { 184 191 if ($prepend) { 185 192 $this->fallbackDirsPsr0 = array_merge( 186 $paths,193 (array) $paths, 187 194 $this->fallbackDirsPsr0 188 195 ); … … 190 197 $this->fallbackDirsPsr0 = array_merge( 191 198 $this->fallbackDirsPsr0, 192 $paths199 (array) $paths 193 200 ); 194 201 } … … 199 206 $first = $prefix[0]; 200 207 if (!isset($this->prefixesPsr0[$first][$prefix])) { 201 $this->prefixesPsr0[$first][$prefix] = $paths;208 $this->prefixesPsr0[$first][$prefix] = (array) $paths; 202 209 203 210 return; … … 205 212 if ($prepend) { 206 213 $this->prefixesPsr0[$first][$prefix] = array_merge( 207 $paths,214 (array) $paths, 208 215 $this->prefixesPsr0[$first][$prefix] 209 216 ); … … 211 218 $this->prefixesPsr0[$first][$prefix] = array_merge( 212 219 $this->prefixesPsr0[$first][$prefix], 213 $paths220 (array) $paths 214 221 ); 215 222 } … … 220 227 * appending or prepending to the ones previously set for this namespace. 221 228 * 222 * @param string $prefix The prefix/namespace, with trailing '\\'223 * @param list<string>|string $paths The PSR-4 base directories224 * @param bool $prepend Whether to prepend the directories229 * @param string $prefix The prefix/namespace, with trailing '\\' 230 * @param string[]|string $paths The PSR-4 base directories 231 * @param bool $prepend Whether to prepend the directories 225 232 * 226 233 * @throws \InvalidArgumentException … … 230 237 public function addPsr4($prefix, $paths, $prepend = false) 231 238 { 232 $paths = (array) $paths;233 239 if (!$prefix) { 234 240 // Register directories for the root namespace. 235 241 if ($prepend) { 236 242 $this->fallbackDirsPsr4 = array_merge( 237 $paths,243 (array) $paths, 238 244 $this->fallbackDirsPsr4 239 245 ); … … 241 247 $this->fallbackDirsPsr4 = array_merge( 242 248 $this->fallbackDirsPsr4, 243 $paths249 (array) $paths 244 250 ); 245 251 } … … 251 257 } 252 258 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 253 $this->prefixDirsPsr4[$prefix] = $paths;259 $this->prefixDirsPsr4[$prefix] = (array) $paths; 254 260 } elseif ($prepend) { 255 261 // Prepend directories for an already registered namespace. 256 262 $this->prefixDirsPsr4[$prefix] = array_merge( 257 $paths,263 (array) $paths, 258 264 $this->prefixDirsPsr4[$prefix] 259 265 ); … … 262 268 $this->prefixDirsPsr4[$prefix] = array_merge( 263 269 $this->prefixDirsPsr4[$prefix], 264 $paths270 (array) $paths 265 271 ); 266 272 } … … 271 277 * replacing any others previously set for this prefix. 272 278 * 273 * @param string $prefix The prefix274 * @param list<string>|string $paths The PSR-0 base directories279 * @param string $prefix The prefix 280 * @param string[]|string $paths The PSR-0 base directories 275 281 * 276 282 * @return void … … 289 295 * replacing any others previously set for this namespace. 290 296 * 291 * @param string $prefix The prefix/namespace, with trailing '\\'292 * @param list<string>|string $paths The PSR-4 base directories297 * @param string $prefix The prefix/namespace, with trailing '\\' 298 * @param string[]|string $paths The PSR-4 base directories 293 299 * 294 300 * @throws \InvalidArgumentException … … 476 482 477 483 /** 478 * Returns the currently registered loaders keyed by their corresponding vendor directories.479 * 480 * @return array<string, self>484 * Returns the currently registered loaders indexed by their corresponding vendor directories. 485 * 486 * @return self[] 481 487 */ 482 488 public static function getRegisteredLoaders() -
matador-jobs/trunk/vendor/composer/InstalledVersions.php
r3254249 r3279451 34 34 35 35 /** 36 * @var bool37 */38 private static $installedIsLocalDir;39 40 /**41 36 * @var bool|null 42 37 */ … … 104 99 foreach (self::getInstalled() as $installed) { 105 100 if (isset($installed['versions'][$packageName])) { 106 return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false;101 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']); 107 102 } 108 103 } … … 125 120 public static function satisfies(VersionParser $parser, $packageName, $constraint) 126 121 { 127 $constraint = $parser->parseConstraints( (string)$constraint);122 $constraint = $parser->parseConstraints($constraint); 128 123 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 129 124 … … 315 310 self::$installed = $data; 316 311 self::$installedByVendor = array(); 317 318 // when using reload, we disable the duplicate protection to ensure that self::$installed data is319 // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,320 // so we have to assume it does not, and that may result in duplicate data being returned when listing321 // all installed packages for example322 self::$installedIsLocalDir = false;323 312 } 324 313 … … 334 323 335 324 $installed = array(); 336 $copiedLocalDir = false;337 325 338 326 if (self::$canGetVendors) { 339 $selfDir = strtr(__DIR__, '\\', '/');340 327 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 341 $vendorDir = strtr($vendorDir, '\\', '/');342 328 if (isset(self::$installedByVendor[$vendorDir])) { 343 329 $installed[] = self::$installedByVendor[$vendorDir]; 344 330 } elseif (is_file($vendorDir.'/composer/installed.php')) { 345 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 346 $required = require $vendorDir.'/composer/installed.php'; 347 self::$installedByVendor[$vendorDir] = $required; 348 $installed[] = $required; 349 if (self::$installed === null && $vendorDir.'/composer' === $selfDir) { 350 self::$installed = $required; 351 self::$installedIsLocalDir = true; 331 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; 332 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 333 self::$installed = $installed[count($installed) - 1]; 352 334 } 353 }354 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {355 $copiedLocalDir = true;356 335 } 357 336 } … … 362 341 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 363 342 if (substr(__DIR__, -8, 1) !== 'C') { 364 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 365 $required = require __DIR__ . '/installed.php'; 366 self::$installed = $required; 343 self::$installed = require __DIR__ . '/installed.php'; 367 344 } else { 368 345 self::$installed = array(); 369 346 } 370 347 } 371 372 if (self::$installed !== array() && !$copiedLocalDir) { 373 $installed[] = self::$installed; 374 } 348 $installed[] = self::$installed; 375 349 376 350 return $installed; -
matador-jobs/trunk/vendor/composer/autoload_real.php
r3254249 r3279451 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 98bcf1a2611bbfda608da10553e798e65 class ComposerAutoloaderInitfd23c05c512ba39a91c3a1e3e5bacf21 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 98bcf1a2611bbfda608da10553e798e6', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitfd23c05c512ba39a91c3a1e3e5bacf21', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 98bcf1a2611bbfda608da10553e798e6', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitfd23c05c512ba39a91c3a1e3e5bacf21', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 98bcf1a2611bbfda608da10553e798e6::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInitfd23c05c512ba39a91c3a1e3e5bacf21::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
matador-jobs/trunk/vendor/composer/autoload_static.php
r3254249 r3279451 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 98bcf1a2611bbfda608da10553e798e67 class ComposerStaticInitfd23c05c512ba39a91c3a1e3e5bacf21 8 8 { 9 9 public static $prefixesPsr0 = array ( … … 24 24 { 25 25 return \Closure::bind(function () use ($loader) { 26 $loader->prefixesPsr0 = ComposerStaticInit 98bcf1a2611bbfda608da10553e798e6::$prefixesPsr0;27 $loader->classMap = ComposerStaticInit 98bcf1a2611bbfda608da10553e798e6::$classMap;26 $loader->prefixesPsr0 = ComposerStaticInitfd23c05c512ba39a91c3a1e3e5bacf21::$prefixesPsr0; 27 $loader->classMap = ComposerStaticInitfd23c05c512ba39a91c3a1e3e5bacf21::$classMap; 28 28 29 29 }, null, ClassLoader::class); -
matador-jobs/trunk/vendor/composer/installed.php
r3257995 r3279451 2 2 'root' => array( 3 3 'name' => 'matador/matador-jobs', 4 'pretty_version' => 'dev- release',5 'version' => 'dev- release',6 'reference' => ' 09c5f7e37f15738eccbad02f5b5d6a7882e18501',4 'pretty_version' => 'dev-develop', 5 'version' => 'dev-develop', 6 'reference' => '496e40a38b0f6177a28e9b1b55e9afaa93d7e60d', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'matador/matador-jobs' => array( 14 'pretty_version' => 'dev- release',15 'version' => 'dev- release',16 'reference' => ' 09c5f7e37f15738eccbad02f5b5d6a7882e18501',14 'pretty_version' => 'dev-develop', 15 'version' => 'dev-develop', 16 'reference' => '496e40a38b0f6177a28e9b1b55e9afaa93d7e60d', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.