Plugin Directory

Changeset 3279451


Ignore:
Timestamp:
04/22/2025 09:57:16 PM (11 months ago)
Author:
jeremyescott
Message:

3.9.7

Location:
matador-jobs/trunk
Files:
60 edited

Legend:

Unmodified
Added
Removed
  • matador-jobs/trunk/CHANGELOG.md

    r3257995 r3279451  
    11# 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.
    228
    329## 3.9.4
  • matador-jobs/trunk/assets/css/matador-admin-styles.css

    r3254249 r3279451  
    517517}
    518518.wp-admin .matador-application-screen .application-screen-apply:hover {
    519   background-color: rgb(69.036437247, 160.2914979757, 35.7085020243);
     519  background-color: #45a024;
    520520}
    521521.wp-admin .matador-application-screen .application-screen-add {
     
    523523}
    524524.wp-admin .matador-application-screen .application-screen-add:hover {
    525   background-color: rgb(160.2914979757, 135.6923076923, 35.7085020243);
     525  background-color: #a08824;
    526526}
    527527.wp-admin .matador-application-screen .application-screen-delete {
     
    529529}
    530530.wp-admin .matador-application-screen .application-screen-delete:hover {
    531   background-color: rgb(160.2914979757, 61.1012145749, 35.7085020243);
     531  background-color: #a03d24;
    532532}
    533533.wp-admin .matador-application-screen .application-screen-reset {
     
    535535}
    536536.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  
    4444     * @var string
    4545     */
    46     const VERSION = '3.9.4';
     46    const VERSION = '3.9.7';
    4747
    4848    /**
     
    434434        new MatadorJobs\Rest\Api();
    435435
    436         new MatadorJobs\Integrations\Bullhorn\Bullhorn;
     436        new MatadorJobs\Integrations\Bullhorn\Bullhorn();
    437437
    438438        new MatadorJobs\ThirdParty\Akismet\Akismet();
  • matador-jobs/trunk/includes/admin/class-settings-actions.php

    r3254249 r3279451  
    5858        $triggers = array( 'post_type_slug_job_listing' );
    5959
    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 );
    6262        }
    6363
  • matador-jobs/trunk/includes/admin/class-settings-fields.php

    r3254249 r3279451  
    12411241     */
    12421242    public static function taxonomy_rewrites( $fields ) {
    1243         foreach ( Matador::variable( 'job_taxonomies' ) as $key => $taxonomy ) {
     1243        foreach ( Job_Taxonomies::taxonomies() as $key => $taxonomy ) {
    12441244            $fields[ 'taxonomy_slug_' . $key ] = array(
    12451245                'type'     => 'text',
  • matador-jobs/trunk/includes/admin/class-upgrade.php

    r2477308 r3279451  
    4242            return;
    4343        }
    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         } );
    5044
    5145        if ( ! self::has_upgrade() ) {
  • matador-jobs/trunk/includes/bullhorn/class-bullhorn-import.php

    r3257995 r3279451  
    6060        parent::__construct();
    6161
     62        add_action( 'matador_bullhorn_before_import', [ $this, 'get_countries' ], 10, 1 );
    6263        add_action( 'matador_bullhorn_import_save_job', array( $this, 'save_job_categories' ), 5, 2 );
    6364        add_action( 'matador_bullhorn_import_save_job', array( $this, 'save_job_type' ), 10, 2 );
     
    414415     */
    415416    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 : '' );
    417418        $cache     = get_transient( $cache_key );
    418419
     
    464465     * IDs and names.
    465466     *
    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;
    467472     *
    468473     * @throws Exception
    469474     */
    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' );
    473479
    474480        $cache = get_transient( $cache_key );
    475481
    476         if ( false !== $cache ) {
     482        if ( false !== $cache && false !== $cache_refresh_key ) {
    477483            return $cache;
    478484        }
     
    498504        } else {
    499505
    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 );
    505511
    506512        return $country_list;
     
    518524        do_action( 'matador_bullhorn_import_save_taxonomies', $this );
    519525
    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        }
    526535    }
    527536
     
    865874        }
    866875
    867         $taxonomies = Matador::variable( 'job_taxonomies' );
    868 
    869         if ( ! isset( $taxonomies['category'] ) ) {
     876        $category = Job_Taxonomies::registered_taxonomy( 'category' );
     877
     878        if ( ! $category ) {
    870879
    871880            return false;
     
    891900
    892901            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;
    895904                }
    896905            } else {
     
    903912        set_transient( 'matador_import_categories_job_' . $wpid, $categories, MINUTE_IN_SECONDS * 5 );
    904913
    905         return wp_set_object_terms( $wpid, $categories, $taxonomies['category']['key'] );
     914        return wp_set_object_terms( $wpid, $categories, $category['key'] );
    906915    }
    907916
     
    921930
    922931        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'] );
    928938            }
    929939        }
     
    14301440        }
    14311441
    1432         $taxonomies = Matador::variable( 'job_taxonomies' );
     1442        $taxonomies = Job_Taxonomies::taxonomies();
    14331443
    14341444        if ( isset( $taxonomies['location']['key'] ) ) {
     
    15191529        if ( $location_taxonomy_term ) {
    15201530
    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 );
    15271536            }
    15281537        }
     
    28952904     */
    28962905    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'          => [
    28992908                'href'   => true,
    29002909                'title'  => true,
    29012910                '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'          => [
    29102919                'align' => true,
    2911             ),
    2912             'img'    => array(
     2920            ],
     2921            'blockquote' => true,
     2922            'img'        => [
    29132923                'alt'    => true,
    29142924                'align'  => true,
     
    29162926                'src'    => true,
    29172927                'width'  => true,
    2918             ),
    2919             'div'    => array(
     2928            ],
     2929            'div'        => [
    29202930                'align' => true,
    2921             ),
    2922             'table'  => array(
     2931            ],
     2932            'table'      => [
    29232933                'border'      => true,
    29242934                'cellspacing' => true,
    29252935                'cellpadding' => true,
    2926             ),
    2927             'thead'  => array(),
    2928             'tbody'  => array(),
    2929             'tr'     => array(),
    2930             'th'     => array(
     2936            ],
     2937            'thead'      => [],
     2938            'tbody'      => [],
     2939            'tr'         => [],
     2940            'th'         => [
    29312941                'colspan' => true,
    29322942                'rowspan' => true,
    2933             ),
    2934             'td'     => array(
     2943            ],
     2944            'td'         => [
    29352945                'colspan' => true,
    29362946                'rowspan' => true,
    2937             ),
    2938             'span'   => array(),
    2939             'h1'     => array(
     2947            ],
     2948            'span'       => [],
     2949            'h1'         => [
    29402950                'align' => true,
    2941             ),
    2942             'h2'     => array(
     2951            ],
     2952            'h2'         => [
    29432953                'align' => true,
    2944             ),
    2945             'h3'     => array(
     2954            ],
     2955            'h3'         => [
    29462956                'align' => true,
    2947             ),
    2948             'h4'     => array(
     2957            ],
     2958            'h4'         => [
    29492959                'align' => true,
    2950             ),
    2951             'h5'     => array(
     2960            ],
     2961            'h5'         => [
    29522962                'align' => true,
    2953             ),
    2954             'h6'     => array(
     2963            ],
     2964            'h6'         => [
    29552965                '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'      => [
    29642977                'autoplay' => true,
    29652978                'controls' => true,
     
    29712984                'src'      => true,
    29722985                'width'    => true,
    2973             ),
    2974         ) );
     2986            ],
     2987            'u'          => [],
     2988        ] );
    29752989    }
    29762990
  • matador-jobs/trunk/includes/class-application-handler.php

    r3254249 r3279451  
    495495        $name['firstName'] = $name_parts[0];
    496496
    497         $allowed_suffixes = Matador::variable( 'application_name_suffixes' );
     497        $allowed_suffixes = Helper::name_suffixes();
    498498
    499499        if ( 2 < count( $name_parts ) ) {
     
    15051505                'label'       => sprintf( esc_html__( 'Upload %1$s File', 'matador-jobs' ), esc_html( Helper::resume_or_cv() ) ) . $colon,
    15061506                // 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() ),
    15081508                'attributes'  => array(
    15091509                    'required' => true,
     
    15151515                'label'       => esc_html__( 'Upload Cover Letter', 'matador-jobs' ) . $colon,
    15161516                // 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() ),
    15181518                'attributes'  => array(
    15191519                    'accept' => implode( ',', Matador::variable( 'accepted_file_extensions' ) ),
     
    15241524                'label'       => esc_html__( 'Upload Additional  Files', 'matador-jobs' ) . $colon,
    15251525                // 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() ),
    15271527                'attributes'  => array(
    15281528                    'accept' => implode( ',', Matador::variable( 'accepted_file_extensions' ) ),
  • matador-jobs/trunk/includes/class-application-sync.php

    r3254249 r3279451  
    1616namespace matador;
    1717
     18use stdClass;
    1819use DateTime;
    1920use matador\MatadorJobs\Core\Logger;
    2021use matador\MatadorJobs\Core\Severity;
    21 use stdClass;
    2222use matador\MatadorJobs\Email\ApplicationApplicantMessage;
    2323use matador\MatadorJobs\Email\ApplicationRecruiterMessage;
     
    380380    public function add_bullhorn_candidate() {
    381381
    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 );
    383383
    384384        /**
     
    431431            }
    432432
    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 );
    434434
    435435            return;
     
    676676        }
    677677
    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
    679680        return true;
    680681    }
     
    853854            } elseif ( ! $resume ) {
    854855                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();
    855867            }
    856868        }
     
    17951807    /**
    17961808     * 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
    18001813     * @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 {
    18051819
    18061820        if ( null === $this->application_id ) {
     
    18131827        $now = new DateTime();
    18141828
    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 );
    18161830
    18171831        $updated = $log . $append;
  • matador-jobs/trunk/includes/class-helper.php

    r3254249 r3279451  
    5959        if ( empty( $file_path ) || is_array( $file_path ) ) {
    6060
    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 );
    6262
    6363            return false;
     
    337337        if ( null === self::$categories || ! isset( self::$categories[ $id ] ) ) {
    338338            $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            }
    341346
    342347            if ( $categories && ! is_wp_error( $categories ) ) {
    343348                foreach ( $categories as $category ) {
    344349                    $names[] = ucwords( $category->name );
    345                     $slug[]  = $taxonomies['category']['key'] . '-' . $category->slug;
     350                    $slug[]  = $category_taxonomy['key'] . '-' . $category->slug;
    346351                }
    347352            }
     
    365370        if ( null === self::$locations || ! isset( self::$locations[ $id ] ) ) {
    366371            $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            }
    369380
    370381            if ( $locations && ! is_wp_error( $locations ) ) {
    371382                foreach ( $locations as $location ) {
    372383                    $names[] = ucwords( $location->name );
    373                     $slug[]  = $taxonomies['location']['key'] . '-' . $location->slug;
     384                    $slug[]  = $location_taxonomy['key'] . '-' . $location->slug;
    374385                }
    375386            }
     
    11261137    public static function get_currency_codes() : array {
    11271138
    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 );
    11401185    }
    11411186
     
    14511496         * @since 3.8.16
    14521497         *
    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.
    14541500         * @return array
    14551501         */
    14561502        return apply_filters( 'matador_jobs_general_countries', $countries );
    14571503    }
     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    }
    14581601}
     1602
  • matador-jobs/trunk/includes/class-job-listing.php

    r3254249 r3279451  
    654654
    655655        // Check if we are in our taxonomy.
    656         foreach ( Matador::variable( 'job_taxonomies' ) as $taxonomy ) {
     656        foreach ( Job_Taxonomies::taxonomies() as $taxonomy ) {
    657657            if ( $query->is_tax( $taxonomy['key'] ) && $query->is_main_query() ) {
    658658                $should_sort = true;
     
    710710
    711711                $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();
    713713                // phpcs:ignore WordPress.Security.NonceVerification -- Nonce check.
    714714                $selected_orderby = $accepted_orderby_mappings[ $orderby_value ] ?? null;
     
    736736        }
    737737        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 );
    738813    }
    739814
  • matador-jobs/trunk/includes/class-job-taxonomies.php

    r3254249 r3279451  
    4141
    4242    /**
     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    /**
    43171     * Taxonomy Constructor
    44172     * @since  3.0.0
    45173     */
    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 ) {
    48176            register_taxonomy( $taxonomy['key'], Matador::variable( 'post_type_key_job_listing' ), self::taxonomy_args( $key, $taxonomy ) );
    49177            add_action( 'after-' . $taxonomy['key'] . '-table', array( $this, 'add_recount_link' ) );
     
    287415
    288416        // 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 ) ) {
    291419                $is_matador_taxonomy = true;
    292420            }
     
    356484
    357485    /**
    358      * @return array
    359      */
    360     public static function registered_taxonomies() {
    361         return array_keys( Matador::variable( 'job_taxonomies' ) );
    362     }
    363 
    364     /**
    365486     * Maybe Recount Taxonomy Terms
    366487     *
     
    381502        }
    382503
    383         foreach ( Matador::variable( 'job_taxonomies' ) as $key => $taxonomy ) {
     504        foreach ( self::taxonomies() as $taxonomy ) {
    384505
    385506            $get_terms_args = array(
  • matador-jobs/trunk/includes/class-scheduled-events.php

    r3254249 r3279451  
    215215     *
    216216     * @since 3.0.0
     217     * @deprecated 3.9.0
    217218     *
    218219     * @param string $method Default 'auto'
     
    358359            );
    359360
    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                }
    362369            }
     370
     371            $application_query['date_query'][0]['before'] = $last;
    363372
    364373            $application = new WP_Query( $application_query );
     
    366375            if ( $application->have_posts() && ! is_wp_error( $application ) ) {
    367376                $id   = $application->posts[0]->ID;
    368                 $last = $application->posts[0]->post_date;
    369377            } else {
    370378                delete_transient( Matador::variable( 'doing_sync', 'transients' ) );
  • matador-jobs/trunk/includes/class-shortcodes.php

    r3254249 r3279451  
    167167
    168168        // Dynamically Support Taxonomy Args
    169         foreach ( array_keys( (array) Matador::variable( 'job_taxonomies' ) ) as $taxonomy ) {
     169        foreach ( Job_Taxonomies::taxonomies_list() as $taxonomy ) {
    170170            $pairs[ $taxonomy ] = null;
    171171        }
     
    212212
    213213        // 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 ) {
    215216            $pairs[ $taxonomy ] = null;
    216217        }
     
    257258
    258259        // 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 ) {
    260262            $pairs[ $taxonomy ] = null;
    261263        }
     
    309311
    310312        // 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 ) {
    312315            $pairs[ $taxonomy ] = null;
    313316        }
     
    427430     */
    428431    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() ) ) {
    430433            _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' );
    431434
    432             return false;
     435            return '';
    433436        }
    434437
     
    448451     */
    449452    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() ) ) {
    451454            _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' );
    452455
     
    473476     */
    474477    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() ) ) {
    476479            _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' );
    477480
  • matador-jobs/trunk/includes/class-template-support.php

    r3254249 r3279451  
    667667
    668668        /**
    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
    672673         *
    673674         * @since   3.8.4
    674675         *
    675          * @return boolean (or string "0"/"1")
     676         * @return boolean
    676677         */
    677678        if ( apply_filters( 'matador_template_job_info_show_pay', Matador::setting( 'jsonld_salary' ) ) ) {
     
    15931594        // '$taxonomy' parameter. Allows user to pass slugs and IDs.
    15941595        //
    1595         foreach ( Matador::variable( 'job_taxonomies' ) as $taxonomy => $tax_args ) {
     1596        foreach ( Job_Taxonomies::taxonomies() as $taxonomy => $tax_args ) {
    15961597            if ( ! empty( $args[ $taxonomy ] ) ) {
    15971598                $args[ $tax_args['key'] ] = esc_attr( strtolower( $args[ $taxonomy ] ) );
     
    17101711            $defaults['fields']['info']    = __( 'Job Info', 'matador-jobs' );
    17111712        }
    1712         foreach ( Matador::variable( 'job_taxonomies' ) as $taxonomy => $tax_args ) {
     1713        foreach ( Job_Taxonomies::taxonomies() as $tax_args ) {
    17131714            $defaults[ $tax_args['key'] ] = null;
    17141715        }
     
    18551856
    18561857        // Include taxonomies:
    1857         foreach ( Matador::variable( 'job_taxonomies' ) as $key => $taxonomy ) {
     1858        foreach ( Job_Taxonomies::taxonomies() as $taxonomy ) {
    18581859
    18591860            // phpcs:ignore WordPress.Security.NonceVerification -- Nonce check.
     
    20002001        }
    20012002
    2002         // Get the Registered Taxonomies
    2003         $taxonomies = (array) Matador::variable( 'job_taxonomies' );
     2003        // Get array of registered Taxonomies
     2004        $taxonomies = Job_Taxonomies::taxonomies();
    20042005
    20052006        // If no taxonomy was passed, use all, otherwise check and convert
     
    21712172
    21722173        // Get array of registered Taxonomies
    2173         $taxonomies = (array) Matador::variable( 'job_taxonomies' );
     2174        $taxonomies = Job_Taxonomies::taxonomies();
    21742175
    21752176        // Validate the taxonomy exists ( even the default could technically be unset by developers )
     
    25332534        $allowed_fields = apply_filters(
    25342535            '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' ) )
    25362537        );
    25372538
     
    27712772    public static function jobs_orderby( $args = [] ) {
    27722773
    2773         $args['options'] = Matador::variable( 'job_orderby_mappings' );
     2774        $args['options'] = Job_Listing::job_orderby_options();
    27742775
    27752776        if ( empty( $args['default_value'] ) ) {
    2776             // Mapping Matador::setting( 'jobs_sort ) keys to Matador::variable( 'job_orderby_mappings' ) keys.
    27772777            switch ( Matador::setting( 'jobs_sort' ) ) {
    2778                 case 'date':
    2779                     $args['default_value'] = 'publication_date_newest';
    2780                     break;
    27812778                case 'name':
    27822779                    $args['default_value'] = 'title_az';
     
    27892786                    $args['default_value'] = 'random';
    27902787                    break;
     2788                case 'date':
    27912789                default:
    27922790                    $args['default_value'] = 'publication_date_newest';
  • matador-jobs/trunk/includes/class-variables.php

    r3254249 r3279451  
    4343    public function __construct() {
    4444
     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
    4549        // Simple Default Assignments;
    4650        $d = array();
     
    5357        // Applications Related
    5458        $d['application_data']               = '_application_data';
    55         $d['accepted_files_types']           = __( 'DOC, DOCX, PDF, HTML, and TXT', 'matador-jobs' );
    5659        $d['accepted_file_extensions']       = array( '.doc', '.docx', '.pdf', '.html', '.txt' );
    5760        $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         );
    7561        $d['application_allowed_files_keys'] = array( 'resume', 'letter', 'files' );
    7662        $d['submission_type']                = '_matador_submission_type';
     
    121107        $d['css_class_prefix'] = 'matador';
    122108
    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 
    164109        // Transient Keys
    165110        $d['transients'] = array(
     
    176121            'bullhorn_companies_cache'                                     => 'matador_bullhorn_companies_cache',
    177122            'bullhorn_countries_cache'                                     => 'matador_bullhorn_countries_cache',
     123            'bullhorn_countries_cache_refresh'                             => 'matador_bullhorn_countries_cache_refresh',
    178124            'bullhorn_contact_meta_cache'                                  => 'matador_bullhorn_contact_meta_cache',
    179125            'bullhorn_entitlements'                                        => 'matador_bullhorn_entitlements',
     
    191137            'email_timeout-administrator-notice-general'                   => 'email_timeout_administrator_notice_general',
    192138            '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
    195140            'doing_sync'                                                   => 'matador_doing_sync',
    196141            'doing_sync_task'                                              => 'matador_doing_sync_task',
     
    217162        );
    218163
    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 
    256164        self::$_values = apply_filters( 'matador_variable_all', $d );
    257165    }
     
    269177     */
    270178    public function __get( $key ) {
     179
    271180        $raw = array_key_exists( $key, self::$_values ) ? self::$_values[ $key ] : null;
    272181
     
    274183         * Dynamic Filter: Get Option
    275184         *
    276          * Filter the option after its been pulled out of the database.
     185         * Filter the variable before it is used.
    277186         *
    278187         * @since   3.0.0
     
    289198    }
    290199
     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    }
    291244}
  • matador-jobs/trunk/includes/template-functions.php

    r3254249 r3279451  
    552552function matador_get_the_job_meta( $key, $id = null, $context = '' ) {
    553553
    554     if ( in_array( $key, Job_Taxonomies::registered_taxonomies(), true ) ) {
     554    if ( in_array( $key, Job_Taxonomies::taxonomies_list(), true ) ) {
    555555
    556556        /**
  • matador-jobs/trunk/languages/matador-jobs.pot

    r3257995 r3279451  
    77"Content-Type: text/plain; charset=UTF-8\n"
    88"Content-Transfer-Encoding: 8bit\n"
    9 "POT-Creation-Date: 2025-03-18 16:24+0000\n"
     9"POT-Creation-Date: 2025-04-22 21:55+0000\n"
    1010"X-Poedit-Basepath: ..\n"
    1111"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"
     
    4848msgstr ""
    4949
    50 #: ../includes/class-application-handler.php:821, ../includes/class-application-sync.php:1380
     50#: ../includes/class-application-handler.php:821, ../includes/class-application-sync.php:1392
    5151msgid "Message: "
    5252msgstr ""
     
    249249msgstr ""
    250250
    251 #: ../includes/class-application-screening.php:113, ../includes/class-template-support.php:1698
     251#: ../includes/class-application-screening.php:113, ../includes/class-template-support.php:1699
    252252msgid "Apply"
    253253msgstr ""
     
    342342msgstr ""
    343343
    344 #: ../includes/class-application-sync.php:777
     344#: ../includes/class-application-sync.php:778
    345345msgid "Submission was not applied to a job per Application Screening selection."
    346346msgstr ""
    347347
    348 #: ../includes/class-application-sync.php:785
     348#: ../includes/class-application-sync.php:786
    349349msgid "Linked candidate to Default application with Bullhorn ID"
    350350msgstr ""
    351351
    352 #: ../includes/class-application-sync.php:797
     352#: ../includes/class-application-sync.php:798
    353353msgid "Linked candidate to an application with the Bullhorn ID of"
    354354msgstr ""
    355355
    356 #: ../includes/class-application-sync.php:797
     356#: ../includes/class-application-sync.php:798
    357357msgid "and Submission ID"
    358358msgstr ""
    359359
    360 #: ../includes/class-application-sync.php:839
     360#: ../includes/class-application-sync.php:840
    361361msgid "Unprocessable resume."
    362362msgstr ""
    363363
    364 #: ../includes/class-application-sync.php:854
     364#: ../includes/class-application-sync.php:855
    365365msgid "No resume for applicant."
    366366msgstr ""
    367367
    368 #: ../includes/class-application-sync.php:851
     368#: ../includes/class-application-sync.php:852
    369369msgid "Error on resume process from Bullhorn: "
    370370msgstr ""
    371371
    372 #: ../includes/class-application-sync.php:1396
     372#: ../includes/class-application-sync.php:1408
    373373msgid "Applied via the website for this position: "
    374374msgstr ""
    375375
    376 #: ../includes/class-application-sync.php:1634
     376#: ../includes/class-application-sync.php:1646
    377377msgid "Skipping candidate consent data save."
    378378msgstr ""
    379379
    380 #: ../includes/class-application-sync.php:1649
     380#: ../includes/class-application-sync.php:1661
    381381msgid "Candidate accepted Privacy Policy."
    382382msgstr ""
    383383
    384 #: ../includes/class-application-sync.php:1665, ../includes/class-application-sync.php:1713
     384#: ../includes/class-application-sync.php:1677, ../includes/class-application-sync.php:1725
    385385msgid "Recruiting"
    386386msgstr ""
    387387
    388 #: ../includes/class-application-sync.php:1667
     388#: ../includes/class-application-sync.php:1679
    389389msgid "Legal Obligation"
    390390msgstr ""
    391391
    392 #: ../includes/class-application-sync.php:1669, ../includes/class-application-sync.php:1717
     392#: ../includes/class-application-sync.php:1681, ../includes/class-application-sync.php:1729
    393393msgid "Web Response"
    394394msgstr ""
    395395
    396 #: ../includes/class-application-sync.php:1697
     396#: ../includes/class-application-sync.php:1709
    397397msgid "Candidate accepted Terms of Service."
    398398msgstr ""
    399399
    400 #: ../includes/class-application-sync.php:1715
     400#: ../includes/class-application-sync.php:1727
    401401msgid "Contract Necessity"
    402402msgstr ""
     
    488488msgstr ""
    489489
    490 #: ../includes/class-application.php:404, ../includes/class-application.php:641, ../includes/class-job-listing.php:860, ../includes/class-job-listing.php:921
     490#: ../includes/class-application.php:404, ../includes/class-application.php:641, ../includes/class-job-listing.php:935, ../includes/class-job-listing.php:996
    491491msgid "Open in Bullhorn"
    492492msgstr ""
     
    624624
    625625#. translators: placeholder 1 is the 'type' of deprecated item, ie: a function. Placeholder 2 is the old
    626 #: ../includes/class-helper.php:701
     626#: ../includes/class-helper.php:712
    627627msgid "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."
    628628msgstr ""
    629629
    630 #: ../includes/class-helper.php:694
     630#: ../includes/class-helper.php:705
    631631msgid "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."
    632632msgstr ""
    633633
    634 #: ../includes/class-helper.php:709
     634#: ../includes/class-helper.php:720
    635635msgid "Deprecation Notice"
    636636msgstr ""
    637637
    638 #: ../includes/class-helper.php:711
     638#: ../includes/class-helper.php:722
    639639msgid "Only you, a logged in user who can edit content, can see this notice."
    640640msgstr ""
    641641
    642 #: ../includes/class-helper.php:1197
     642#: ../includes/class-helper.php:1143
     643msgid "Failed to get the iso-currencies.xml file"
     644msgstr ""
     645
     646#: ../includes/class-helper.php:1242
    643647msgid "Afghanistan"
    644648msgstr ""
    645649
    646 #: ../includes/class-helper.php:1198
     650#: ../includes/class-helper.php:1243
    647651msgid "Albania"
    648652msgstr ""
    649653
    650 #: ../includes/class-helper.php:1199
     654#: ../includes/class-helper.php:1244
    651655msgid "Åland Islands"
    652656msgstr ""
    653657
    654 #: ../includes/class-helper.php:1200
     658#: ../includes/class-helper.php:1245
    655659msgid "Algeria"
    656660msgstr ""
    657661
    658 #: ../includes/class-helper.php:1201
     662#: ../includes/class-helper.php:1246
    659663msgid "American Samoa"
    660664msgstr ""
    661665
    662 #: ../includes/class-helper.php:1202
     666#: ../includes/class-helper.php:1247
    663667msgid "Andorra"
    664668msgstr ""
    665669
    666 #: ../includes/class-helper.php:1203
     670#: ../includes/class-helper.php:1248
    667671msgid "Angola"
    668672msgstr ""
    669673
    670 #: ../includes/class-helper.php:1204
     674#: ../includes/class-helper.php:1249
    671675msgid "Anguilla"
    672676msgstr ""
    673677
    674 #: ../includes/class-helper.php:1205
     678#: ../includes/class-helper.php:1250
    675679msgid "Antarctica"
    676680msgstr ""
    677681
    678 #: ../includes/class-helper.php:1206
     682#: ../includes/class-helper.php:1251
    679683msgid "Antigua and Barbuda"
    680684msgstr ""
    681685
    682 #: ../includes/class-helper.php:1207
     686#: ../includes/class-helper.php:1252
    683687msgid "Argentina"
    684688msgstr ""
    685689
    686 #: ../includes/class-helper.php:1208
     690#: ../includes/class-helper.php:1253
    687691msgid "Armenia"
    688692msgstr ""
    689693
    690 #: ../includes/class-helper.php:1209
     694#: ../includes/class-helper.php:1254
    691695msgid "Aruba"
    692696msgstr ""
    693697
    694 #: ../includes/class-helper.php:1210
     698#: ../includes/class-helper.php:1255
    695699msgid "Australia"
    696700msgstr ""
    697701
    698 #: ../includes/class-helper.php:1211
     702#: ../includes/class-helper.php:1256
    699703msgid "Austria"
    700704msgstr ""
    701705
    702 #: ../includes/class-helper.php:1212
     706#: ../includes/class-helper.php:1257
    703707msgid "Azerbaijan"
    704708msgstr ""
    705709
    706 #: ../includes/class-helper.php:1213
     710#: ../includes/class-helper.php:1258
    707711msgid "Bahamas"
    708712msgstr ""
    709713
    710 #: ../includes/class-helper.php:1214
     714#: ../includes/class-helper.php:1259
    711715msgid "Bahrain"
    712716msgstr ""
    713717
    714 #: ../includes/class-helper.php:1215
     718#: ../includes/class-helper.php:1260
    715719msgid "Bangladesh"
    716720msgstr ""
    717721
    718 #: ../includes/class-helper.php:1216
     722#: ../includes/class-helper.php:1261
    719723msgid "Barbados"
    720724msgstr ""
    721725
    722 #: ../includes/class-helper.php:1217
     726#: ../includes/class-helper.php:1262
    723727msgid "Belarus"
    724728msgstr ""
    725729
    726 #: ../includes/class-helper.php:1218
     730#: ../includes/class-helper.php:1263
    727731msgid "Belgium"
    728732msgstr ""
    729733
    730 #: ../includes/class-helper.php:1219
     734#: ../includes/class-helper.php:1264
    731735msgid "Belize"
    732736msgstr ""
    733737
    734 #: ../includes/class-helper.php:1220
     738#: ../includes/class-helper.php:1265
    735739msgid "Benin"
    736740msgstr ""
    737741
    738 #: ../includes/class-helper.php:1221
     742#: ../includes/class-helper.php:1266
    739743msgid "Bermuda"
    740744msgstr ""
    741745
    742 #: ../includes/class-helper.php:1222
     746#: ../includes/class-helper.php:1267
    743747msgid "Bhutan"
    744748msgstr ""
    745749
    746 #: ../includes/class-helper.php:1223
     750#: ../includes/class-helper.php:1268
    747751msgid "Bolivia"
    748752msgstr ""
    749753
    750 #: ../includes/class-helper.php:1224
     754#: ../includes/class-helper.php:1269
    751755msgid "Bonaire, Sint Eustatius and Saba"
    752756msgstr ""
    753757
    754 #: ../includes/class-helper.php:1225
     758#: ../includes/class-helper.php:1270
    755759msgid "Bosnia and Herzegovina"
    756760msgstr ""
    757761
    758 #: ../includes/class-helper.php:1226
     762#: ../includes/class-helper.php:1271
    759763msgid "Botswana"
    760764msgstr ""
    761765
    762 #: ../includes/class-helper.php:1227
     766#: ../includes/class-helper.php:1272
    763767msgid "Bouvet Island"
    764768msgstr ""
    765769
    766 #: ../includes/class-helper.php:1228
     770#: ../includes/class-helper.php:1273
    767771msgid "Brazil"
    768772msgstr ""
    769773
    770 #: ../includes/class-helper.php:1229
     774#: ../includes/class-helper.php:1274
    771775msgid "British Indian Ocean Territory"
    772776msgstr ""
    773777
    774 #: ../includes/class-helper.php:1230
     778#: ../includes/class-helper.php:1275
    775779msgid "Brunei"
    776780msgstr ""
    777781
    778 #: ../includes/class-helper.php:1231
     782#: ../includes/class-helper.php:1276
    779783msgid "Bulgaria"
    780784msgstr ""
    781785
    782 #: ../includes/class-helper.php:1232
     786#: ../includes/class-helper.php:1277
    783787msgid "Burkina Faso"
    784788msgstr ""
    785789
    786 #: ../includes/class-helper.php:1233
     790#: ../includes/class-helper.php:1278
    787791msgid "Burundi"
    788792msgstr ""
    789793
    790 #: ../includes/class-helper.php:1234
     794#: ../includes/class-helper.php:1279
    791795msgid "Cabo Verde"
    792796msgstr ""
    793797
    794 #: ../includes/class-helper.php:1235
     798#: ../includes/class-helper.php:1280
    795799msgid "Cambodia"
    796800msgstr ""
    797801
    798 #: ../includes/class-helper.php:1236
     802#: ../includes/class-helper.php:1281
    799803msgid "Cameroon"
    800804msgstr ""
    801805
    802 #: ../includes/class-helper.php:1237
     806#: ../includes/class-helper.php:1282
    803807msgid "Canada"
    804808msgstr ""
    805809
    806 #: ../includes/class-helper.php:1238
     810#: ../includes/class-helper.php:1283
    807811msgid "Cayman Islands"
    808812msgstr ""
    809813
    810 #: ../includes/class-helper.php:1239
     814#: ../includes/class-helper.php:1284
    811815msgid "Central African Republic"
    812816msgstr ""
    813817
    814 #: ../includes/class-helper.php:1240
     818#: ../includes/class-helper.php:1285
    815819msgid "Chad"
    816820msgstr ""
    817821
    818 #: ../includes/class-helper.php:1241
     822#: ../includes/class-helper.php:1286
    819823msgid "Chile"
    820824msgstr ""
    821825
    822 #: ../includes/class-helper.php:1242
     826#: ../includes/class-helper.php:1287
    823827msgid "China"
    824828msgstr ""
    825829
    826 #: ../includes/class-helper.php:1243
     830#: ../includes/class-helper.php:1288
    827831msgid "Christmas Island"
    828832msgstr ""
    829833
    830 #: ../includes/class-helper.php:1244
     834#: ../includes/class-helper.php:1289
    831835msgid "Cocos [Keeling] Islands"
    832836msgstr ""
    833837
    834 #: ../includes/class-helper.php:1245
     838#: ../includes/class-helper.php:1290
    835839msgid "Colombia"
    836840msgstr ""
    837841
    838 #: ../includes/class-helper.php:1246
     842#: ../includes/class-helper.php:1291
    839843msgid "Comoros"
    840844msgstr ""
    841845
    842 #: ../includes/class-helper.php:1247
     846#: ../includes/class-helper.php:1292
    843847msgid "Congo - Brazzaville"
    844848msgstr ""
    845849
    846 #: ../includes/class-helper.php:1248
     850#: ../includes/class-helper.php:1293
    847851msgid "Congo - Kinshasa"
    848852msgstr ""
    849853
    850 #: ../includes/class-helper.php:1249
     854#: ../includes/class-helper.php:1294
    851855msgid "Cook Islands"
    852856msgstr ""
    853857
    854 #: ../includes/class-helper.php:1250
     858#: ../includes/class-helper.php:1295
    855859msgid "Costa Rica"
    856860msgstr ""
    857861
    858 #: ../includes/class-helper.php:1251
     862#: ../includes/class-helper.php:1296
    859863msgid "Côte d’Ivoire"
    860864msgstr ""
    861865
    862 #: ../includes/class-helper.php:1252
     866#: ../includes/class-helper.php:1297
    863867msgid "Croatia"
    864868msgstr ""
    865869
    866 #: ../includes/class-helper.php:1253
     870#: ../includes/class-helper.php:1298
    867871msgid "Cuba"
    868872msgstr ""
    869873
    870 #: ../includes/class-helper.php:1254
     874#: ../includes/class-helper.php:1299
    871875msgid "Curaco"
    872876msgstr ""
    873877
    874 #: ../includes/class-helper.php:1255
     878#: ../includes/class-helper.php:1300
    875879msgid "Cyprus"
    876880msgstr ""
    877881
    878 #: ../includes/class-helper.php:1256
     882#: ../includes/class-helper.php:1301
    879883msgid "Czechia"
    880884msgstr ""
    881885
    882 #: ../includes/class-helper.php:1257
     886#: ../includes/class-helper.php:1302
    883887msgid "Denmark"
    884888msgstr ""
    885889
    886 #: ../includes/class-helper.php:1258
     890#: ../includes/class-helper.php:1303
    887891msgid "Djibouti"
    888892msgstr ""
    889893
    890 #: ../includes/class-helper.php:1259
     894#: ../includes/class-helper.php:1304
    891895msgid "Dominica"
    892896msgstr ""
    893897
    894 #: ../includes/class-helper.php:1260
     898#: ../includes/class-helper.php:1305
    895899msgid "Dominican Republic"
    896900msgstr ""
    897901
    898 #: ../includes/class-helper.php:1261
     902#: ../includes/class-helper.php:1306
    899903msgid "Ecuador"
    900904msgstr ""
    901905
    902 #: ../includes/class-helper.php:1262
     906#: ../includes/class-helper.php:1307
    903907msgid "Egypt"
    904908msgstr ""
    905909
    906 #: ../includes/class-helper.php:1263
     910#: ../includes/class-helper.php:1308
    907911msgid "El Salvador"
    908912msgstr ""
    909913
    910 #: ../includes/class-helper.php:1264
     914#: ../includes/class-helper.php:1309
    911915msgid "Equatorial Guinea"
    912916msgstr ""
    913917
    914 #: ../includes/class-helper.php:1265
     918#: ../includes/class-helper.php:1310
    915919msgid "Eritrea"
    916920msgstr ""
    917921
    918 #: ../includes/class-helper.php:1266
     922#: ../includes/class-helper.php:1311
    919923msgid "Estonia"
    920924msgstr ""
    921925
    922 #: ../includes/class-helper.php:1267
     926#: ../includes/class-helper.php:1312
    923927msgid "Eswatini"
    924928msgstr ""
    925929
    926 #: ../includes/class-helper.php:1268
     930#: ../includes/class-helper.php:1313
    927931msgid "Ethiopia"
    928932msgstr ""
    929933
    930 #: ../includes/class-helper.php:1269
     934#: ../includes/class-helper.php:1314
    931935msgid "Falkland Islands"
    932936msgstr ""
    933937
    934 #: ../includes/class-helper.php:1270
     938#: ../includes/class-helper.php:1315
    935939msgid "Faroe Islands"
    936940msgstr ""
    937941
    938 #: ../includes/class-helper.php:1271
     942#: ../includes/class-helper.php:1316
    939943msgid "Fiji"
    940944msgstr ""
    941945
    942 #: ../includes/class-helper.php:1272
     946#: ../includes/class-helper.php:1317
    943947msgid "Finland"
    944948msgstr ""
    945949
    946 #: ../includes/class-helper.php:1273
     950#: ../includes/class-helper.php:1318
    947951msgid "France"
    948952msgstr ""
    949953
    950 #: ../includes/class-helper.php:1274
     954#: ../includes/class-helper.php:1319
    951955msgid "French Guiana"
    952956msgstr ""
    953957
    954 #: ../includes/class-helper.php:1275
     958#: ../includes/class-helper.php:1320
    955959msgid "French Polynesia"
    956960msgstr ""
    957961
    958 #: ../includes/class-helper.php:1276
     962#: ../includes/class-helper.php:1321
    959963msgid "French Southern Territories"
    960964msgstr ""
    961965
    962 #: ../includes/class-helper.php:1277
     966#: ../includes/class-helper.php:1322
    963967msgid "Gabon"
    964968msgstr ""
    965969
    966 #: ../includes/class-helper.php:1278
     970#: ../includes/class-helper.php:1323
    967971msgid "Gambia"
    968972msgstr ""
    969973
    970 #: ../includes/class-helper.php:1279
     974#: ../includes/class-helper.php:1324
    971975msgid "Georgia"
    972976msgstr ""
    973977
    974 #: ../includes/class-helper.php:1280
     978#: ../includes/class-helper.php:1325
    975979msgid "Germany"
    976980msgstr ""
    977981
    978 #: ../includes/class-helper.php:1281
     982#: ../includes/class-helper.php:1326
    979983msgid "Ghana"
    980984msgstr ""
    981985
    982 #: ../includes/class-helper.php:1282
     986#: ../includes/class-helper.php:1327
    983987msgid "Gibraltar"
    984988msgstr ""
    985989
    986 #: ../includes/class-helper.php:1283
     990#: ../includes/class-helper.php:1328
    987991msgid "Greece"
    988992msgstr ""
    989993
    990 #: ../includes/class-helper.php:1284
     994#: ../includes/class-helper.php:1329
    991995msgid "Greenland"
    992996msgstr ""
    993997
    994 #: ../includes/class-helper.php:1285
     998#: ../includes/class-helper.php:1330
    995999msgid "Grenada"
    9961000msgstr ""
    9971001
    998 #: ../includes/class-helper.php:1286
     1002#: ../includes/class-helper.php:1331
    9991003msgid "Guadeloupe"
    10001004msgstr ""
    10011005
    1002 #: ../includes/class-helper.php:1287
     1006#: ../includes/class-helper.php:1332
    10031007msgid "Guam"
    10041008msgstr ""
    10051009
    1006 #: ../includes/class-helper.php:1288
     1010#: ../includes/class-helper.php:1333
    10071011msgid "Guatemala"
    10081012msgstr ""
    10091013
    1010 #: ../includes/class-helper.php:1289
     1014#: ../includes/class-helper.php:1334
    10111015msgid "Guernsey"
    10121016msgstr ""
    10131017
    1014 #: ../includes/class-helper.php:1290
     1018#: ../includes/class-helper.php:1335
    10151019msgid "Guinea"
    10161020msgstr ""
    10171021
    1018 #: ../includes/class-helper.php:1291
     1022#: ../includes/class-helper.php:1336
    10191023msgid "Guinea-Bissau"
    10201024msgstr ""
    10211025
    1022 #: ../includes/class-helper.php:1292
     1026#: ../includes/class-helper.php:1337
    10231027msgid "Guyana"
    10241028msgstr ""
    10251029
    1026 #: ../includes/class-helper.php:1293
     1030#: ../includes/class-helper.php:1338
    10271031msgid "Haiti"
    10281032msgstr ""
    10291033
    1030 #: ../includes/class-helper.php:1294
     1034#: ../includes/class-helper.php:1339
    10311035msgid "Heard Island and McDonald Islands"
    10321036msgstr ""
    10331037
    1034 #: ../includes/class-helper.php:1295
     1038#: ../includes/class-helper.php:1340
    10351039msgid "Holy See (Vatican)"
    10361040msgstr ""
    10371041
    1038 #: ../includes/class-helper.php:1296
     1042#: ../includes/class-helper.php:1341
    10391043msgid "Honduras"
    10401044msgstr ""
    10411045
    1042 #: ../includes/class-helper.php:1297
     1046#: ../includes/class-helper.php:1342
    10431047msgid "Hong Kong SAR China"
    10441048msgstr ""
    10451049
    1046 #: ../includes/class-helper.php:1298
     1050#: ../includes/class-helper.php:1343
    10471051msgid "Hungary"
    10481052msgstr ""
    10491053
    1050 #: ../includes/class-helper.php:1299
     1054#: ../includes/class-helper.php:1344
    10511055msgid "Iceland"
    10521056msgstr ""
    10531057
    1054 #: ../includes/class-helper.php:1300
     1058#: ../includes/class-helper.php:1345
    10551059msgid "India"
    10561060msgstr ""
    10571061
    1058 #: ../includes/class-helper.php:1301
     1062#: ../includes/class-helper.php:1346
    10591063msgid "Indonesia"
    10601064msgstr ""
    10611065
    1062 #: ../includes/class-helper.php:1302
     1066#: ../includes/class-helper.php:1347
    10631067msgid "Iran"
    10641068msgstr ""
    10651069
    1066 #: ../includes/class-helper.php:1303
     1070#: ../includes/class-helper.php:1348
    10671071msgid "Iraq"
    10681072msgstr ""
    10691073
    1070 #: ../includes/class-helper.php:1304
     1074#: ../includes/class-helper.php:1349
    10711075msgid "Ireland"
    10721076msgstr ""
    10731077
    1074 #: ../includes/class-helper.php:1305
     1078#: ../includes/class-helper.php:1350
    10751079msgid "Isle of Man"
    10761080msgstr ""
    10771081
    1078 #: ../includes/class-helper.php:1306
     1082#: ../includes/class-helper.php:1351
    10791083msgid "Israel"
    10801084msgstr ""
    10811085
    1082 #: ../includes/class-helper.php:1307
     1086#: ../includes/class-helper.php:1352
    10831087msgid "Italy"
    10841088msgstr ""
    10851089
    1086 #: ../includes/class-helper.php:1308
     1090#: ../includes/class-helper.php:1353
    10871091msgid "Jamaica"
    10881092msgstr ""
    10891093
    1090 #: ../includes/class-helper.php:1309
     1094#: ../includes/class-helper.php:1354
    10911095msgid "Japan"
    10921096msgstr ""
    10931097
    1094 #: ../includes/class-helper.php:1310
     1098#: ../includes/class-helper.php:1355
    10951099msgid "Jersey"
    10961100msgstr ""
    10971101
    1098 #: ../includes/class-helper.php:1311
     1102#: ../includes/class-helper.php:1356
    10991103msgid "Jordan"
    11001104msgstr ""
    11011105
    1102 #: ../includes/class-helper.php:1312
     1106#: ../includes/class-helper.php:1357
    11031107msgid "Kazakhstan"
    11041108msgstr ""
    11051109
    1106 #: ../includes/class-helper.php:1313
     1110#: ../includes/class-helper.php:1358
    11071111msgid "Kenya"
    11081112msgstr ""
    11091113
    1110 #: ../includes/class-helper.php:1314
     1114#: ../includes/class-helper.php:1359
    11111115msgid "Kiribati"
    11121116msgstr ""
    11131117
    1114 #: ../includes/class-helper.php:1315
     1118#: ../includes/class-helper.php:1360
    11151119msgid "North Korea"
    11161120msgstr ""
    11171121
    1118 #: ../includes/class-helper.php:1316
     1122#: ../includes/class-helper.php:1361
    11191123msgid "South Korea"
    11201124msgstr ""
    11211125
    1122 #: ../includes/class-helper.php:1317
     1126#: ../includes/class-helper.php:1362
    11231127msgid "Kuwait"
    11241128msgstr ""
    11251129
    1126 #: ../includes/class-helper.php:1318
     1130#: ../includes/class-helper.php:1363
    11271131msgid "Kyrgyzstan"
    11281132msgstr ""
    11291133
    1130 #: ../includes/class-helper.php:1319
     1134#: ../includes/class-helper.php:1364
    11311135msgid "Laos"
    11321136msgstr ""
    11331137
    1134 #: ../includes/class-helper.php:1320
     1138#: ../includes/class-helper.php:1365
    11351139msgid "Latvia"
    11361140msgstr ""
    11371141
    1138 #: ../includes/class-helper.php:1321
     1142#: ../includes/class-helper.php:1366
    11391143msgid "Lebanon"
    11401144msgstr ""
    11411145
    1142 #: ../includes/class-helper.php:1322
     1146#: ../includes/class-helper.php:1367
    11431147msgid "Lesotho"
    11441148msgstr ""
    11451149
    1146 #: ../includes/class-helper.php:1323
     1150#: ../includes/class-helper.php:1368
    11471151msgid "Liberia"
    11481152msgstr ""
    11491153
    1150 #: ../includes/class-helper.php:1324
     1154#: ../includes/class-helper.php:1369
    11511155msgid "Libya"
    11521156msgstr ""
    11531157
    1154 #: ../includes/class-helper.php:1325
     1158#: ../includes/class-helper.php:1370
    11551159msgid "Liechtenstein"
    11561160msgstr ""
    11571161
    1158 #: ../includes/class-helper.php:1326
     1162#: ../includes/class-helper.php:1371
    11591163msgid "Lithuania"
    11601164msgstr ""
    11611165
    1162 #: ../includes/class-helper.php:1327
     1166#: ../includes/class-helper.php:1372
    11631167msgid "Luxembourg"
    11641168msgstr ""
    11651169
    1166 #: ../includes/class-helper.php:1328
     1170#: ../includes/class-helper.php:1373
    11671171msgid "Macau SAR China"
    11681172msgstr ""
    11691173
    1170 #: ../includes/class-helper.php:1329
     1174#: ../includes/class-helper.php:1374
    11711175msgid "Madagascar"
    11721176msgstr ""
    11731177
    1174 #: ../includes/class-helper.php:1330
     1178#: ../includes/class-helper.php:1375
    11751179msgid "Malawi"
    11761180msgstr ""
    11771181
    1178 #: ../includes/class-helper.php:1331
     1182#: ../includes/class-helper.php:1376
    11791183msgid "Malaysia"
    11801184msgstr ""
    11811185
    1182 #: ../includes/class-helper.php:1332
     1186#: ../includes/class-helper.php:1377
    11831187msgid "Maldives"
    11841188msgstr ""
    11851189
    1186 #: ../includes/class-helper.php:1333
     1190#: ../includes/class-helper.php:1378
    11871191msgid "Mali"
    11881192msgstr ""
    11891193
    1190 #: ../includes/class-helper.php:1334
     1194#: ../includes/class-helper.php:1379
    11911195msgid "Malta"
    11921196msgstr ""
    11931197
    1194 #: ../includes/class-helper.php:1335
     1198#: ../includes/class-helper.php:1380
    11951199msgid "Marshall Islands"
    11961200msgstr ""
    11971201
    1198 #: ../includes/class-helper.php:1336
     1202#: ../includes/class-helper.php:1381
    11991203msgid "Martinique"
    12001204msgstr ""
    12011205
    1202 #: ../includes/class-helper.php:1337
     1206#: ../includes/class-helper.php:1382
    12031207msgid "Mauritania"
    12041208msgstr ""
    12051209
    1206 #: ../includes/class-helper.php:1338
     1210#: ../includes/class-helper.php:1383
    12071211msgid "Mauritius"
    12081212msgstr ""
    12091213
    1210 #: ../includes/class-helper.php:1339
     1214#: ../includes/class-helper.php:1384
    12111215msgid "Mayotte"
    12121216msgstr ""
    12131217
    1214 #: ../includes/class-helper.php:1340
     1218#: ../includes/class-helper.php:1385
    12151219msgid "Mexico"
    12161220msgstr ""
    12171221
    1218 #: ../includes/class-helper.php:1341
     1222#: ../includes/class-helper.php:1386
    12191223msgid "Micronesia"
    12201224msgstr ""
    12211225
    1222 #: ../includes/class-helper.php:1342
     1226#: ../includes/class-helper.php:1387
    12231227msgid "Moldova"
    12241228msgstr ""
    12251229
    1226 #: ../includes/class-helper.php:1343
     1230#: ../includes/class-helper.php:1388
    12271231msgid "Monaco"
    12281232msgstr ""
    12291233
    1230 #: ../includes/class-helper.php:1344
     1234#: ../includes/class-helper.php:1389
    12311235msgid "Mongolia"
    12321236msgstr ""
    12331237
    1234 #: ../includes/class-helper.php:1345
     1238#: ../includes/class-helper.php:1390
    12351239msgid "Montenegro"
    12361240msgstr ""
    12371241
    1238 #: ../includes/class-helper.php:1346
     1242#: ../includes/class-helper.php:1391
    12391243msgid "Montserrat"
    12401244msgstr ""
    12411245
    1242 #: ../includes/class-helper.php:1347
     1246#: ../includes/class-helper.php:1392
    12431247msgid "Morocco"
    12441248msgstr ""
    12451249
    1246 #: ../includes/class-helper.php:1348
     1250#: ../includes/class-helper.php:1393
    12471251msgid "Mozambique"
    12481252msgstr ""
    12491253
    1250 #: ../includes/class-helper.php:1349
     1254#: ../includes/class-helper.php:1394
    12511255msgid "Myanmar [Burma]"
    12521256msgstr ""
    12531257
    1254 #: ../includes/class-helper.php:1350
     1258#: ../includes/class-helper.php:1395
    12551259msgid "Namibia"
    12561260msgstr ""
    12571261
    1258 #: ../includes/class-helper.php:1351
     1262#: ../includes/class-helper.php:1396
    12591263msgid "Nauru"
    12601264msgstr ""
    12611265
    1262 #: ../includes/class-helper.php:1352
     1266#: ../includes/class-helper.php:1397
    12631267msgid "Nepal"
    12641268msgstr ""
    12651269
    1266 #: ../includes/class-helper.php:1353
     1270#: ../includes/class-helper.php:1398
    12671271msgid "Netherlands"
    12681272msgstr ""
    12691273
    1270 #: ../includes/class-helper.php:1354
     1274#: ../includes/class-helper.php:1399
    12711275msgid "New Caledonia"
    12721276msgstr ""
    12731277
    1274 #: ../includes/class-helper.php:1355
     1278#: ../includes/class-helper.php:1400
    12751279msgid "New Zealand"
    12761280msgstr ""
    12771281
    1278 #: ../includes/class-helper.php:1356
     1282#: ../includes/class-helper.php:1401
    12791283msgid "Nicaragua"
    12801284msgstr ""
    12811285
    1282 #: ../includes/class-helper.php:1357
     1286#: ../includes/class-helper.php:1402
    12831287msgid "Niger"
    12841288msgstr ""
    12851289
    1286 #: ../includes/class-helper.php:1358
     1290#: ../includes/class-helper.php:1403
    12871291msgid "Nigeria"
    12881292msgstr ""
    12891293
    1290 #: ../includes/class-helper.php:1359
     1294#: ../includes/class-helper.php:1404
    12911295msgid "Niue"
    12921296msgstr ""
    12931297
    1294 #: ../includes/class-helper.php:1360
     1298#: ../includes/class-helper.php:1405
    12951299msgid "Norfolk Island"
    12961300msgstr ""
    12971301
    1298 #: ../includes/class-helper.php:1361
     1302#: ../includes/class-helper.php:1406
    12991303msgid "North Macedonia"
    13001304msgstr ""
    13011305
    1302 #: ../includes/class-helper.php:1362
     1306#: ../includes/class-helper.php:1407
    13031307msgid "Northern Mariana Islands"
    13041308msgstr ""
    13051309
    1306 #: ../includes/class-helper.php:1363
     1310#: ../includes/class-helper.php:1408
    13071311msgid "Norway"
    13081312msgstr ""
    13091313
    1310 #: ../includes/class-helper.php:1364
     1314#: ../includes/class-helper.php:1409
    13111315msgid "Oman"
    13121316msgstr ""
    13131317
    1314 #: ../includes/class-helper.php:1365
     1318#: ../includes/class-helper.php:1410
    13151319msgid "Pakistan"
    13161320msgstr ""
    13171321
    1318 #: ../includes/class-helper.php:1366
     1322#: ../includes/class-helper.php:1411
    13191323msgid "Palau"
    13201324msgstr ""
    13211325
    1322 #: ../includes/class-helper.php:1367
     1326#: ../includes/class-helper.php:1412
    13231327msgid "Palestinian Territories"
    13241328msgstr ""
    13251329
    1326 #: ../includes/class-helper.php:1368
     1330#: ../includes/class-helper.php:1413
    13271331msgid "Panama"
    13281332msgstr ""
    13291333
    1330 #: ../includes/class-helper.php:1369
     1334#: ../includes/class-helper.php:1414
    13311335msgid "Papua New Guinea"
    13321336msgstr ""
    13331337
    1334 #: ../includes/class-helper.php:1370
     1338#: ../includes/class-helper.php:1415
    13351339msgid "Paraguay"
    13361340msgstr ""
    13371341
    1338 #: ../includes/class-helper.php:1371
     1342#: ../includes/class-helper.php:1416
    13391343msgid "Peru"
    13401344msgstr ""
    13411345
    1342 #: ../includes/class-helper.php:1372
     1346#: ../includes/class-helper.php:1417
    13431347msgid "Philippines"
    13441348msgstr ""
    13451349
    1346 #: ../includes/class-helper.php:1373
     1350#: ../includes/class-helper.php:1418
    13471351msgid "Pitcairn Islands"
    13481352msgstr ""
    13491353
    1350 #: ../includes/class-helper.php:1374
     1354#: ../includes/class-helper.php:1419
    13511355msgid "Poland"
    13521356msgstr ""
    13531357
    1354 #: ../includes/class-helper.php:1375
     1358#: ../includes/class-helper.php:1420
    13551359msgid "Portugal"
    13561360msgstr ""
    13571361
    1358 #: ../includes/class-helper.php:1376
     1362#: ../includes/class-helper.php:1421
    13591363msgid "Puerto Rico"
    13601364msgstr ""
    13611365
    1362 #: ../includes/class-helper.php:1377
     1366#: ../includes/class-helper.php:1422
    13631367msgid "Qatar"
    13641368msgstr ""
    13651369
    1366 #: ../includes/class-helper.php:1378
     1370#: ../includes/class-helper.php:1423
    13671371msgid "Reunion"
    13681372msgstr ""
    13691373
    1370 #: ../includes/class-helper.php:1379
     1374#: ../includes/class-helper.php:1424
    13711375msgid "Romania"
    13721376msgstr ""
    13731377
    1374 #: ../includes/class-helper.php:1380
     1378#: ../includes/class-helper.php:1425
    13751379msgid "Russia"
    13761380msgstr ""
    13771381
    1378 #: ../includes/class-helper.php:1381
     1382#: ../includes/class-helper.php:1426
    13791383msgid "Rwanda"
    13801384msgstr ""
    13811385
    1382 #: ../includes/class-helper.php:1382
     1386#: ../includes/class-helper.php:1427
    13831387msgid "Saint Barthélemy"
    13841388msgstr ""
    13851389
    1386 #: ../includes/class-helper.php:1383
     1390#: ../includes/class-helper.php:1428
    13871391msgid "Saint Helena"
    13881392msgstr ""
    13891393
    1390 #: ../includes/class-helper.php:1384
     1394#: ../includes/class-helper.php:1429
    13911395msgid "Saint Kitts and Nevis"
    13921396msgstr ""
    13931397
    1394 #: ../includes/class-helper.php:1385
     1398#: ../includes/class-helper.php:1430
    13951399msgid "Saint Lucia"
    13961400msgstr ""
    13971401
    1398 #: ../includes/class-helper.php:1386
     1402#: ../includes/class-helper.php:1431
    13991403msgid "Saint Martin"
    14001404msgstr ""
    14011405
    1402 #: ../includes/class-helper.php:1387
     1406#: ../includes/class-helper.php:1432
    14031407msgid "Saint Pierre and Miquelon"
    14041408msgstr ""
    14051409
    1406 #: ../includes/class-helper.php:1388
     1410#: ../includes/class-helper.php:1433
    14071411msgid "Saint Vincent and the Grenadines"
    14081412msgstr ""
    14091413
    1410 #: ../includes/class-helper.php:1389
     1414#: ../includes/class-helper.php:1434
    14111415msgid "Samoa"
    14121416msgstr ""
    14131417
    1414 #: ../includes/class-helper.php:1390
     1418#: ../includes/class-helper.php:1435
    14151419msgid "San Marino"
    14161420msgstr ""
    14171421
    1418 #: ../includes/class-helper.php:1391
     1422#: ../includes/class-helper.php:1436
    14191423msgid "Sao Tome and Principe"
    14201424msgstr ""
    14211425
    1422 #: ../includes/class-helper.php:1392
     1426#: ../includes/class-helper.php:1437
    14231427msgid "Saudi Arabia"
    14241428msgstr ""
    14251429
    1426 #: ../includes/class-helper.php:1393
     1430#: ../includes/class-helper.php:1438
    14271431msgid "Senegal"
    14281432msgstr ""
    14291433
    1430 #: ../includes/class-helper.php:1394
     1434#: ../includes/class-helper.php:1439
    14311435msgid "Serbia"
    14321436msgstr ""
    14331437
    1434 #: ../includes/class-helper.php:1395
     1438#: ../includes/class-helper.php:1440
    14351439msgid "Seychelles"
    14361440msgstr ""
    14371441
    1438 #: ../includes/class-helper.php:1396
     1442#: ../includes/class-helper.php:1441
    14391443msgid "Sierra Leone"
    14401444msgstr ""
    14411445
    1442 #: ../includes/class-helper.php:1397
     1446#: ../includes/class-helper.php:1442
    14431447msgid "Singapore"
    14441448msgstr ""
    14451449
    1446 #: ../includes/class-helper.php:1398
     1450#: ../includes/class-helper.php:1443
    14471451msgid "Sint Maarten"
    14481452msgstr ""
    14491453
    1450 #: ../includes/class-helper.php:1399
     1454#: ../includes/class-helper.php:1444
    14511455msgid "Slovakia"
    14521456msgstr ""
    14531457
    1454 #: ../includes/class-helper.php:1400
     1458#: ../includes/class-helper.php:1445
    14551459msgid "Slovenia"
    14561460msgstr ""
    14571461
    1458 #: ../includes/class-helper.php:1401
     1462#: ../includes/class-helper.php:1446
    14591463msgid "Solomon Islands"
    14601464msgstr ""
    14611465
    1462 #: ../includes/class-helper.php:1402
     1466#: ../includes/class-helper.php:1447
    14631467msgid "Somalia"
    14641468msgstr ""
    14651469
    1466 #: ../includes/class-helper.php:1403
     1470#: ../includes/class-helper.php:1448
    14671471msgid "South Africa"
    14681472msgstr ""
    14691473
    1470 #: ../includes/class-helper.php:1404
     1474#: ../includes/class-helper.php:1449
    14711475msgid "South Sudan"
    14721476msgstr ""
    14731477
    1474 #: ../includes/class-helper.php:1405
     1478#: ../includes/class-helper.php:1450
    14751479msgid "Spain"
    14761480msgstr ""
    14771481
    1478 #: ../includes/class-helper.php:1406
     1482#: ../includes/class-helper.php:1451
    14791483msgid "Sri Lanka"
    14801484msgstr ""
    14811485
    1482 #: ../includes/class-helper.php:1407
     1486#: ../includes/class-helper.php:1452
    14831487msgid "Sudan"
    14841488msgstr ""
    14851489
    1486 #: ../includes/class-helper.php:1408
     1490#: ../includes/class-helper.php:1453
    14871491msgid "Suriname"
    14881492msgstr ""
    14891493
    1490 #: ../includes/class-helper.php:1409
     1494#: ../includes/class-helper.php:1454
    14911495msgid "Svalbard and Jan Mayen"
    14921496msgstr ""
    14931497
    1494 #: ../includes/class-helper.php:1410
     1498#: ../includes/class-helper.php:1455
    14951499msgid "Sweden"
    14961500msgstr ""
    14971501
    1498 #: ../includes/class-helper.php:1411
     1502#: ../includes/class-helper.php:1456
    14991503msgid "Switzerland"
    15001504msgstr ""
    15011505
    1502 #: ../includes/class-helper.php:1412
     1506#: ../includes/class-helper.php:1457
    15031507msgid "Syria"
    15041508msgstr ""
    15051509
    1506 #: ../includes/class-helper.php:1413
     1510#: ../includes/class-helper.php:1458
    15071511msgid "Taiwan"
    15081512msgstr ""
    15091513
    1510 #: ../includes/class-helper.php:1414
     1514#: ../includes/class-helper.php:1459
    15111515msgid "Tajikistan"
    15121516msgstr ""
    15131517
    1514 #: ../includes/class-helper.php:1415
     1518#: ../includes/class-helper.php:1460
    15151519msgid "Tanzania"
    15161520msgstr ""
    15171521
    1518 #: ../includes/class-helper.php:1416
     1522#: ../includes/class-helper.php:1461
    15191523msgid "Thailand"
    15201524msgstr ""
    15211525
    1522 #: ../includes/class-helper.php:1417
     1526#: ../includes/class-helper.php:1462
    15231527msgid "Timor-Leste"
    15241528msgstr ""
    15251529
    1526 #: ../includes/class-helper.php:1418
     1530#: ../includes/class-helper.php:1463
    15271531msgid "Togo"
    15281532msgstr ""
    15291533
    1530 #: ../includes/class-helper.php:1419
     1534#: ../includes/class-helper.php:1464
    15311535msgid "Tokelau"
    15321536msgstr ""
    15331537
    1534 #: ../includes/class-helper.php:1420
     1538#: ../includes/class-helper.php:1465
    15351539msgid "Tonga"
    15361540msgstr ""
    15371541
    1538 #: ../includes/class-helper.php:1421
     1542#: ../includes/class-helper.php:1466
    15391543msgid "Trinidad and Tobago"
    15401544msgstr ""
    15411545
    1542 #: ../includes/class-helper.php:1422
     1546#: ../includes/class-helper.php:1467
    15431547msgid "Tunisia"
    15441548msgstr ""
    15451549
    1546 #: ../includes/class-helper.php:1423
     1550#: ../includes/class-helper.php:1468
    15471551msgid "Turkey"
    15481552msgstr ""
    15491553
    1550 #: ../includes/class-helper.php:1424
     1554#: ../includes/class-helper.php:1469
    15511555msgid "Turkmenistan"
    15521556msgstr ""
    15531557
    1554 #: ../includes/class-helper.php:1425
     1558#: ../includes/class-helper.php:1470
    15551559msgid "Turks and Caicos Islands"
    15561560msgstr ""
    15571561
    1558 #: ../includes/class-helper.php:1426
     1562#: ../includes/class-helper.php:1471
    15591563msgid "Tuvalu"
    15601564msgstr ""
    15611565
    1562 #: ../includes/class-helper.php:1427
     1566#: ../includes/class-helper.php:1472
    15631567msgid "Uganda"
    15641568msgstr ""
    15651569
    1566 #: ../includes/class-helper.php:1428
     1570#: ../includes/class-helper.php:1473
    15671571msgid "Ukraine"
    15681572msgstr ""
    15691573
    1570 #: ../includes/class-helper.php:1429
     1574#: ../includes/class-helper.php:1474
    15711575msgid "United Arab Emirates"
    15721576msgstr ""
    15731577
    1574 #: ../includes/class-helper.php:1430
     1578#: ../includes/class-helper.php:1475
    15751579msgid "United Kingdom"
    15761580msgstr ""
    15771581
    1578 #: ../includes/class-helper.php:1431
     1582#: ../includes/class-helper.php:1476
    15791583msgid "United States"
    15801584msgstr ""
    15811585
    1582 #: ../includes/class-helper.php:1432
     1586#: ../includes/class-helper.php:1477
    15831587msgid "US Minor Outlying Islands"
    15841588msgstr ""
    15851589
    1586 #: ../includes/class-helper.php:1433
     1590#: ../includes/class-helper.php:1478
    15871591msgid "Uruguay"
    15881592msgstr ""
    15891593
    1590 #: ../includes/class-helper.php:1434
     1594#: ../includes/class-helper.php:1479
    15911595msgid "Uzbekistan"
    15921596msgstr ""
    15931597
    1594 #: ../includes/class-helper.php:1435
     1598#: ../includes/class-helper.php:1480
    15951599msgid "Vanuatu"
    15961600msgstr ""
    15971601
    1598 #: ../includes/class-helper.php:1436
     1602#: ../includes/class-helper.php:1481
    15991603msgid "Venezuela"
    16001604msgstr ""
    16011605
    1602 #: ../includes/class-helper.php:1437
     1606#: ../includes/class-helper.php:1482
    16031607msgid "Vietnam"
    16041608msgstr ""
    16051609
    1606 #: ../includes/class-helper.php:1438
     1610#: ../includes/class-helper.php:1483
    16071611msgid "Virgin Islands (US)"
    16081612msgstr ""
    16091613
    1610 #: ../includes/class-helper.php:1439
     1614#: ../includes/class-helper.php:1484
    16111615msgid "Wallis and Futuna"
    16121616msgstr ""
    16131617
    1614 #: ../includes/class-helper.php:1440
     1618#: ../includes/class-helper.php:1485
    16151619msgid "Western Sahara"
    16161620msgstr ""
    16171621
    1618 #: ../includes/class-helper.php:1441
     1622#: ../includes/class-helper.php:1486
    16191623msgid "Yemen"
    16201624msgstr ""
    16211625
    1622 #: ../includes/class-helper.php:1442
     1626#: ../includes/class-helper.php:1487
    16231627msgid "Zambia"
    16241628msgstr ""
    16251629
    1626 #: ../includes/class-helper.php:1443
     1630#: ../includes/class-helper.php:1488
    16271631msgid "Zimbabwe"
     1632msgstr ""
     1633
     1634#: ../includes/class-helper.php:1518
     1635msgctxt "Person name suffix"
     1636msgid "jr"
     1637msgstr ""
     1638
     1639#: ../includes/class-helper.php:1519
     1640msgctxt "Person name suffix"
     1641msgid "sr"
     1642msgstr ""
     1643
     1644#: ../includes/class-helper.php:1520
     1645msgctxt "Person name suffix"
     1646msgid "ii"
     1647msgstr ""
     1648
     1649#: ../includes/class-helper.php:1521
     1650msgctxt "Person name suffix"
     1651msgid "iii"
     1652msgstr ""
     1653
     1654#: ../includes/class-helper.php:1522
     1655msgctxt "Person name suffix"
     1656msgid "iv"
     1657msgstr ""
     1658
     1659#: ../includes/class-helper.php:1523
     1660msgctxt "Person name suffix"
     1661msgid "v"
     1662msgstr ""
     1663
     1664#: ../includes/class-helper.php:1524
     1665msgctxt "Person name suffix"
     1666msgid "vi"
     1667msgstr ""
     1668
     1669#: ../includes/class-helper.php:1525
     1670msgctxt "Person name suffix"
     1671msgid "vii"
     1672msgstr ""
     1673
     1674#: ../includes/class-helper.php:1526
     1675msgctxt "Person name suffix"
     1676msgid "1st"
     1677msgstr ""
     1678
     1679#: ../includes/class-helper.php:1527
     1680msgctxt "Person name suffix"
     1681msgid "2nd"
     1682msgstr ""
     1683
     1684#: ../includes/class-helper.php:1528
     1685msgctxt "Person name suffix"
     1686msgid "3rd"
     1687msgstr ""
     1688
     1689#: ../includes/class-helper.php:1529
     1690msgctxt "Person name suffix"
     1691msgid "4th"
     1692msgstr ""
     1693
     1694#: ../includes/class-helper.php:1530
     1695msgctxt "Person name suffix"
     1696msgid "5th"
     1697msgstr ""
     1698
     1699#: ../includes/class-helper.php:1531
     1700msgctxt "Person name suffix"
     1701msgid "6th"
     1702msgstr ""
     1703
     1704#: ../includes/class-helper.php:1532
     1705msgctxt "Person name suffix"
     1706msgid "7th"
     1707msgstr ""
     1708
     1709#: ../includes/class-helper.php:1568
     1710msgctxt "word to finalize a list of allowed file types, ie: \"docx, and pdf\""
     1711msgid "and"
    16281712msgstr ""
    16291713
     
    16861770msgstr ""
    16871771
    1688 #: ../includes/class-job-listing.php:321, ../includes/class-template-support.php:1378, ../templates/parts/jobs-search-field-keyword.php:71
     1772#: ../includes/class-job-listing.php:321, ../includes/class-template-support.php:1379, ../templates/parts/jobs-search-field-keyword.php:71
    16891773msgid "Search Jobs"
    16901774msgstr ""
     
    17691853msgstr ""
    17701854
    1771 #: ../includes/class-job-listing.php:830
     1855#: ../includes/class-job-listing.php:753
     1856msgid "Date Published (newest first)"
     1857msgstr ""
     1858
     1859#: ../includes/class-job-listing.php:758
     1860msgid "Closing Date (newest first)"
     1861msgstr ""
     1862
     1863#: ../includes/class-job-listing.php:764
     1864msgid "Job Title (a-z)"
     1865msgstr ""
     1866
     1867#: ../includes/class-job-listing.php:769
     1868msgid "Source ID (ascending)"
     1869msgstr ""
     1870
     1871#: ../includes/class-job-listing.php:775
     1872msgid "Random"
     1873msgstr ""
     1874
     1875#: ../includes/class-job-listing.php:795
     1876msgid "Salary (highest first)"
     1877msgstr ""
     1878
     1879#: ../includes/class-job-listing.php:905
    17721880msgid "Bullhorn ID"
    17731881msgstr ""
    17741882
    1775 #: ../includes/class-job-listing.php:922
     1883#: ../includes/class-job-listing.php:997
    17761884msgid "Edit the Job in Bullhorn"
    17771885msgstr ""
    17781886
    1779 #: ../includes/class-job-listing.php:931
     1887#: ../includes/class-job-listing.php:1006
    17801888msgid "Sync this Job"
    17811889msgstr ""
    17821890
    1783 #: ../includes/class-job-listing.php:961
     1891#: ../includes/class-job-listing.php:1036
    17841892msgid "Sync Jobs Now"
    17851893msgstr ""
    17861894
    1787 #: ../includes/class-job-listing.php:1202, ../includes/class-job-taxonomies.php:329
     1895#: ../includes/class-job-listing.php:1277, ../includes/class-job-taxonomies.php:457
    17881896msgid "This feed is unavailable."
    17891897msgstr ""
    17901898
    1791 #: ../includes/class-job-listing.php:1200
     1899#: ../includes/class-job-listing.php:1275
    17921900msgid "This feed is disabled by Matador Jobs for Job Listing posts."
    17931901msgstr ""
    17941902
     1903#: ../includes/class-job-taxonomies.php:54
     1904msgctxt "Job Category Singular Name."
     1905msgid "category"
     1906msgstr ""
     1907
     1908#: ../includes/class-job-taxonomies.php:55
     1909msgctxt "Job Category Plural Name."
     1910msgid "categories"
     1911msgstr ""
     1912
     1913#: ../includes/class-job-taxonomies.php:71
     1914msgctxt "Job Location Singular Name."
     1915msgid "location"
     1916msgstr ""
     1917
     1918#: ../includes/class-job-taxonomies.php:72
     1919msgctxt "Job Location Plural Name."
     1920msgid "locations"
     1921msgstr ""
     1922
     1923#: ../includes/class-job-taxonomies.php:81
     1924msgctxt "Job Type Singular Name."
     1925msgid "type"
     1926msgstr ""
     1927
     1928#: ../includes/class-job-taxonomies.php:82
     1929msgctxt "Job Type Plural Name."
     1930msgid "types"
     1931msgstr ""
     1932
    17951933#. translators: Placeholder for Uppercased Taxonomy Name (Plural)
    1796 #: ../includes/class-job-taxonomies.php:145
     1934#: ../includes/class-job-taxonomies.php:273
    17971935msgctxt "Uppercased Taxonomy Name Plural, eg: \"Job Categories\""
    17981936msgid "Job %1$s"
     
    18001938
    18011939#. translators: Placeholder for Uppercased Taxonomy Name (Singular)
    1802 #: ../includes/class-job-taxonomies.php:147
     1940#: ../includes/class-job-taxonomies.php:275
    18031941msgctxt "Uppercased Taxonomy Name Singular, eg: \"Job Category\""
    18041942msgid "Job %1$s"
     
    18061944
    18071945#. translators: Placeholder for Uppercased Taxonomy Name (Plural)
    1808 #: ../includes/class-job-taxonomies.php:149
     1946#: ../includes/class-job-taxonomies.php:277
    18091947msgid "Job %1$s"
    18101948msgstr ""
    18111949
    18121950#. translators: Placeholder for Uppercased Taxonomy Name (Plural)
    1813 #: ../includes/class-job-taxonomies.php:151
     1951#: ../includes/class-job-taxonomies.php:279
    18141952msgid "All %1$s"
    18151953msgstr ""
    18161954
    18171955#. translators: Placeholder for Uppercased Taxonomy Name (Singular)
    1818 #: ../includes/class-job-taxonomies.php:153
     1956#: ../includes/class-job-taxonomies.php:281
    18191957msgid "Edit Job %1$s"
    18201958msgstr ""
    18211959
    18221960#. translators: Placeholder for Uppercased Taxonomy Name (Singular)
    1823 #: ../includes/class-job-taxonomies.php:155
     1961#: ../includes/class-job-taxonomies.php:283
    18241962msgid "View Job %1$s"
    18251963msgstr ""
    18261964
    18271965#. translators: Placeholder for Uppercased Taxonomy Name (Singular)
    1828 #: ../includes/class-job-taxonomies.php:157
     1966#: ../includes/class-job-taxonomies.php:285
    18291967msgid "Update Job %1$s"
    18301968msgstr ""
    18311969
    18321970#. translators: Placeholder for Uppercased Taxonomy Name (Singular)
    1833 #: ../includes/class-job-taxonomies.php:159
     1971#: ../includes/class-job-taxonomies.php:287
    18341972msgid "Add New %1$s"
    18351973msgstr ""
    18361974
    18371975#. translators: Placeholder for Uppercased Taxonomy Name (Singular)
    1838 #: ../includes/class-job-taxonomies.php:161
     1976#: ../includes/class-job-taxonomies.php:289
    18391977msgid "New %1$s Name"
    18401978msgstr ""
    18411979
    1842 #: ../includes/class-job-taxonomies.php:162
     1980#: ../includes/class-job-taxonomies.php:290
    18431981msgid "Separate each with commas"
    18441982msgstr ""
    18451983
    1846 #: ../includes/class-job-taxonomies.php:163
     1984#: ../includes/class-job-taxonomies.php:291
    18471985msgid "Add or Remove"
    18481986msgstr ""
    18491987
    18501988#. translators: Placeholder for Taxonomy Name (Plural)
    1851 #: ../includes/class-job-taxonomies.php:165
     1989#: ../includes/class-job-taxonomies.php:293
    18521990msgid "Choose from the most common %1$s"
    18531991msgstr ""
    18541992
    1855 #: ../includes/class-job-taxonomies.php:166
     1993#: ../includes/class-job-taxonomies.php:294
    18561994msgid "Popular"
    18571995msgstr ""
    18581996
    1859 #: ../includes/class-job-taxonomies.php:167, ../templates/parts/jobs-search-field-submit.php:47
     1997#: ../includes/class-job-taxonomies.php:295, ../templates/parts/jobs-search-field-submit.php:47
    18601998msgid "Search"
    18611999msgstr ""
    18622000
    18632001#. translators: Placeholder for Uppercased Taxonomy Name (Plural)
    1864 #: ../includes/class-job-taxonomies.php:169
     2002#: ../includes/class-job-taxonomies.php:297
    18652003msgid "No %1$s Found"
    18662004msgstr ""
    18672005
    1868 #: ../includes/class-job-taxonomies.php:327
     2006#: ../includes/class-job-taxonomies.php:455
    18692007msgid "This feed is disabled by Matador Jobs for Job Taxonomy archives."
    18702008msgstr ""
    18712009
    18722010#. translators: Placeholder for name of Taxonomy (already translated)
    1873 #: ../includes/class-job-taxonomies.php:425
     2011#: ../includes/class-job-taxonomies.php:546
    18742012msgid "Recount %s"
    18752013msgstr ""
     
    18802018
    18812019#. translators: Placeholder is for the unexpected method name
    1882 #: ../includes/class-scheduled-events.php:239
     2020#: ../includes/class-scheduled-events.php:240
    18832021msgid "Invalid method (%s) called on jobs_sync()"
    18842022msgstr ""
    18852023
    1886 #: ../includes/class-scheduled-events.php:236
     2024#: ../includes/class-scheduled-events.php:237
    18872025msgid "Automatic Sync Starting"
    18882026msgstr ""
    18892027
    1890 #: ../includes/class-scheduled-events.php:234
     2028#: ../includes/class-scheduled-events.php:235
    18912029msgid "Manual Sync Starting"
    18922030msgstr ""
    18932031
    1894 #: ../includes/class-scheduled-events.php:259
     2032#: ../includes/class-scheduled-events.php:260
    18952033msgid "Bullhorn Automatic Jobs Sync failed. See log for details."
    18962034msgstr ""
    18972035
    1898 #: ../includes/class-scheduled-events.php:376
     2036#: ../includes/class-scheduled-events.php:384
    18992037msgid "Manual Application Sync Start"
    19002038msgstr ""
    19012039
    1902 #: ../includes/class-scheduled-events.php:304
     2040#: ../includes/class-scheduled-events.php:305
    19032041msgid "Batch Application Sync Start"
    19042042msgstr ""
    19052043
    1906 #: ../includes/class-scheduled-events.php:372
     2044#: ../includes/class-scheduled-events.php:380
    19072045msgid "No applications found to sync"
    19082046msgstr ""
    19092047
    19102048#. translators: placeholder is the wpid of the post type "application" to be synced
    1911 #: ../includes/class-scheduled-events.php:380
     2049#: ../includes/class-scheduled-events.php:388
    19122050msgid "Syncing local application with ID %s"
    19132051msgstr ""
    19142052
    1915 #: ../includes/class-scheduled-events.php:405
     2053#: ../includes/class-scheduled-events.php:413
    19162054msgid "Every Ten Minutes (for Matador Jobs)"
    19172055msgstr ""
     
    20002138msgstr ""
    20012139
    2002 #: ../includes/class-shortcodes.php:165, ../includes/class-shortcodes.php:292, ../includes/admin/class-settings-fields.php:592
     2140#: ../includes/class-shortcodes.php:165, ../includes/class-shortcodes.php:294, ../includes/admin/class-settings-fields.php:592
    20032141msgid "Job Title"
    20042142msgstr ""
    20052143
    2006 #: ../includes/class-shortcodes.php:430
     2144#: ../includes/class-shortcodes.php:433
    20072145msgid "You cannot use the [matador_categories] shortcode because the Category taxonomy is not available."
    20082146msgstr ""
    20092147
    2010 #: ../includes/class-shortcodes.php:451
     2148#: ../includes/class-shortcodes.php:454
    20112149msgid "You cannot use the [matador_locations] shortcode because the Location taxonomy is not available."
    20122150msgstr ""
    20132151
    2014 #: ../includes/class-shortcodes.php:476
     2152#: ../includes/class-shortcodes.php:479
    20152153msgid "You cannot use the [matador_types] shortcode because the Type taxonomy is not available."
    20162154msgstr ""
    20172155
    2018 #: ../includes/class-shortcodes.php:526
     2156#: ../includes/class-shortcodes.php:529
    20192157msgid "You cannot use the [matador_application] shortcode if you've disabled Application Processing."
    20202158msgstr ""
     
    20582196msgstr ""
    20592197
    2060 #: ../includes/class-template-support.php:678
     2198#: ../includes/class-template-support.php:679
    20612199msgctxt "Label for salary string in job info block"
    20622200msgid "Salary"
    20632201msgstr ""
    20642202
    2065 #: ../includes/class-template-support.php:881
     2203#: ../includes/class-template-support.php:882
    20662204msgid "The matador_{get}_the_general_application_url() functions will produce no output until you've set the General Application page in settings."
    20672205msgstr ""
    20682206
    2069 #: ../includes/class-template-support.php:909
     2207#: ../includes/class-template-support.php:910
    20702208msgid "Functions referencing the General Application will produce no output until you've set the General Application page in settings."
    20712209msgstr ""
    20722210
    2073 #: ../includes/class-template-support.php:988
     2211#: ../includes/class-template-support.php:989
    20742212msgid "View Jobs"
    20752213msgstr ""
    20762214
    2077 #: ../includes/class-template-support.php:997, ../includes/class-template-support.php:1007, ../includes/class-template-support.php:968
     2215#: ../includes/class-template-support.php:998, ../includes/class-template-support.php:1008, ../includes/class-template-support.php:969
    20782216msgid "Apply Now"
    20792217msgstr ""
    20802218
    2081 #: ../includes/class-template-support.php:998, ../includes/admin/class-settings-fields.php:513
     2219#: ../includes/class-template-support.php:999, ../includes/admin/class-settings-fields.php:513
    20822220msgid "More Info"
    20832221msgstr ""
    20842222
    2085 #: ../includes/class-template-support.php:949
     2223#: ../includes/class-template-support.php:950
    20862224msgid "More Jobs"
    20872225msgstr ""
    20882226
    2089 #: ../includes/class-template-support.php:958
     2227#: ../includes/class-template-support.php:959
    20902228msgid "More About this Job"
    20912229msgstr ""
    20922230
    2093 #: ../includes/class-template-support.php:959, ../includes/class-template-support.php:969, ../includes/class-template-support.php:978
     2231#: ../includes/class-template-support.php:960, ../includes/class-template-support.php:970, ../includes/class-template-support.php:979
    20942232msgid "See All Jobs"
    20952233msgstr ""
    20962234
    2097 #: ../includes/class-template-support.php:1697
     2235#: ../includes/class-template-support.php:1698
    20982236msgid "Title"
    20992237msgstr ""
    21002238
    2101 #: ../includes/class-template-support.php:1709
     2239#: ../includes/class-template-support.php:1710
    21022240msgid "Description"
    21032241msgstr ""
    21042242
    2105 #: ../includes/class-template-support.php:1710
     2243#: ../includes/class-template-support.php:1711
    21062244msgid "Job Info"
    2107 msgstr ""
    2108 
    2109 #: ../includes/class-variables.php:55
    2110 msgid "DOC, DOCX, PDF, HTML, and TXT"
    2111 msgstr ""
    2112 
    2113 #: ../includes/class-variables.php:126
    2114 msgid "Date Published (newest first)"
    2115 msgstr ""
    2116 
    2117 #: ../includes/class-variables.php:131
    2118 msgid "Closing Date (newest first)"
    2119 msgstr ""
    2120 
    2121 #: ../includes/class-variables.php:137
    2122 msgid "Job Title (a-z)"
    2123 msgstr ""
    2124 
    2125 #: ../includes/class-variables.php:142
    2126 msgid "Source ID (ascending)"
    2127 msgstr ""
    2128 
    2129 #: ../includes/class-variables.php:148
    2130 msgid "Random"
    2131 msgstr ""
    2132 
    2133 #: ../includes/class-variables.php:156
    2134 msgid "Salary (highest first)"
    2135 msgstr ""
    2136 
    2137 #: ../includes/class-variables.php:222
    2138 msgctxt "Job Category Singular Name."
    2139 msgid "category"
    2140 msgstr ""
    2141 
    2142 #: ../includes/class-variables.php:223
    2143 msgctxt "Job Category Plural Name."
    2144 msgid "categories"
    2145 msgstr ""
    2146 
    2147 #: ../includes/class-variables.php:237
    2148 msgctxt "Job Location Singular Name."
    2149 msgid "location"
    2150 msgstr ""
    2151 
    2152 #: ../includes/class-variables.php:238
    2153 msgctxt "Job Location Plural Name."
    2154 msgid "locations"
    2155 msgstr ""
    2156 
    2157 #: ../includes/class-variables.php:245
    2158 msgctxt "Job Type Singular Name."
    2159 msgid "type"
    2160 msgstr ""
    2161 
    2162 #: ../includes/class-variables.php:246
    2163 msgctxt "Job Type Plural Name."
    2164 msgid "types"
    21652245msgstr ""
    21662246
     
    31863266msgstr ""
    31873267
    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
    31933269msgctxt "Upgrade Matador Admin Page Title"
    31943270msgid "Upgrade Matador"
    31953271msgstr ""
    31963272
    3197 #: ../includes/admin/class-upgrade.php:97
     3273#: ../includes/admin/class-upgrade.php:91
    31983274msgctxt "Upgrade Matador Admin Page Menu Label"
    31993275msgid "Upgrade"
    32003276msgstr ""
    32013277
    3202 #: ../includes/admin/class-upgrade.php:142
     3278#: ../includes/admin/class-upgrade.php:136
    32033279msgid "Please click here to complete the Matador Jobs upgrade."
    32043280msgstr ""
     
    35083584msgstr ""
    35093585
    3510 #: ../includes/bullhorn/class-bullhorn-import.php:93
     3586#: ../includes/bullhorn/class-bullhorn-import.php:94
    35113587msgid "Starting Sync with bullhorn."
    35123588msgstr ""
    35133589
    3514 #: ../includes/bullhorn/class-bullhorn-import.php:103
     3590#: ../includes/bullhorn/class-bullhorn-import.php:104
    35153591msgid "Bullhorn not logged in and cannot import."
    35163592msgstr ""
    35173593
    3518 #: ../includes/bullhorn/class-bullhorn-import.php:143
     3594#: ../includes/bullhorn/class-bullhorn-import.php:144
    35193595msgid "Bullhorn Jobs Sync completed successfully at "
    35203596msgstr ""
    35213597
    3522 #: ../includes/bullhorn/class-bullhorn-import.php:145
     3598#: ../includes/bullhorn/class-bullhorn-import.php:146
    35233599msgid "Finished Sync with bullhorn."
    35243600msgstr ""
    35253601
    3526 #: ../includes/bullhorn/class-bullhorn-import.php:120
     3602#: ../includes/bullhorn/class-bullhorn-import.php:121
    35273603msgid "We encountered an error during sync and ended sync early. Will try again later."
    35283604msgstr ""
    35293605
    3530 #: ../includes/bullhorn/class-bullhorn-import.php:223, ../src/Sync/Bullhorn/Jobs.php:216, ../src/Sync/Bullhorn/Jobs.php:315
     3606#: ../includes/bullhorn/class-bullhorn-import.php:224, ../src/Sync/Bullhorn/Jobs.php:231, ../src/Sync/Bullhorn/Jobs.php:330
    35313607msgid "Operation failed for an unknown reason. Raw response data will be output. Please contact Matador Support."
    35323608msgstr ""
    35333609
    3534 #: ../includes/bullhorn/class-bullhorn-import.php:221, ../src/Sync/Bullhorn/Jobs.php:214, ../src/Sync/Bullhorn/Jobs.php:313
     3610#: ../includes/bullhorn/class-bullhorn-import.php:222, ../src/Sync/Bullhorn/Jobs.php:229, ../src/Sync/Bullhorn/Jobs.php:328
    35353611msgid "Bullhorn Request Jobs failed due to Bullhorn error. Will stop routine and try again later. Error message: %s"
    35363612msgstr ""
    35373613
    3538 #: ../includes/bullhorn/class-bullhorn-import.php:219, ../src/Sync/Bullhorn/Jobs.php:212, ../src/Sync/Bullhorn/Jobs.php:311
     3614#: ../includes/bullhorn/class-bullhorn-import.php:220, ../src/Sync/Bullhorn/Jobs.php:227, ../src/Sync/Bullhorn/Jobs.php:326
    35393615msgid "Operation timed out. Will try again."
    35403616msgstr ""
    35413617
    3542 #: ../includes/bullhorn/class-bullhorn-import.php:232, ../src/Sync/Bullhorn/Jobs.php:231
     3618#: ../includes/bullhorn/class-bullhorn-import.php:233, ../src/Sync/Bullhorn/Jobs.php:246
    35433619msgid "Sync found no eligible jobs for import."
    35443620msgstr ""
    35453621
    35463622#. translators: Placeholder is for number of found jobs.
    3547 #: ../includes/bullhorn/class-bullhorn-import.php:244, ../src/Sync/Bullhorn/Jobs.php:239
     3623#: ../includes/bullhorn/class-bullhorn-import.php:245, ../src/Sync/Bullhorn/Jobs.php:254
    35483624msgid "Sync found %1$s jobs."
    35493625msgstr ""
    35503626
    3551 #: ../includes/bullhorn/class-bullhorn-import.php:338
     3627#: ../includes/bullhorn/class-bullhorn-import.php:339
    35523628msgid "Matador found duplicate entries for your jobs. Will remove newest copies."
    35533629msgstr ""
    35543630
    35553631#. 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:342
     3632#: ../includes/bullhorn/class-bullhorn-import.php:343
    35573633msgid "Removing duplicate local entry #%1$s for remote id #%2$s."
    35583634msgstr ""
    35593635
    3560 #: ../includes/bullhorn/class-bullhorn-import.php:348
     3636#: ../includes/bullhorn/class-bullhorn-import.php:349
    35613637msgid "No existing jobs were found"
    35623638msgstr ""
    35633639
    35643640#. translators: placeholder is number of jobs found.
    3565 #: ../includes/bullhorn/class-bullhorn-import.php:354
     3641#: ../includes/bullhorn/class-bullhorn-import.php:355
    35663642msgid "%s existing jobs were found"
    35673643msgstr ""
    35683644
    3569 #: ../includes/bullhorn/class-bullhorn-import.php:516
     3645#: ../includes/bullhorn/class-bullhorn-import.php:522
    35703646msgid "Starting taxonomies sync."
    35713647msgstr ""
    35723648
    35733649#. translators: Placeholder for datettime.
    3574 #: ../includes/bullhorn/class-bullhorn-import.php:525
     3650#: ../includes/bullhorn/class-bullhorn-import.php:533
    35753651msgid "Finished Category Sync with bullhorn."
    35763652msgstr ""
    35773653
    35783654#. translators: placeholder for organization ID
    3579 #: ../includes/bullhorn/class-bullhorn-import.php:559
     3655#: ../includes/bullhorn/class-bullhorn-import.php:568
    35803656msgid "Requesting organization URL for organization id #%s"
    35813657msgstr ""
    35823658
    3583 #: ../includes/bullhorn/class-bullhorn-import.php:581
     3659#: ../includes/bullhorn/class-bullhorn-import.php:590
    35843660msgid "Call to ClientCorporation failed. Client Corporation data is set to blank."
    35853661msgstr ""
    35863662
    35873663#. translators:: placeholder 1 is Job ID
    3588 #: ../includes/bullhorn/class-bullhorn-import.php:624
     3664#: ../includes/bullhorn/class-bullhorn-import.php:633
    35893665msgid "Bullhorn Job #%1$s is was in recent synced list skipping this time."
    35903666msgstr ""
    35913667
    35923668#. translators: Placeholders are for Bullhorn ID
    3593 #: ../includes/bullhorn/class-bullhorn-import.php:712, ../src/Sync/Bullhorn/Jobs.php:457
     3669#: ../includes/bullhorn/class-bullhorn-import.php:721, ../src/Sync/Bullhorn/Jobs.php:472
    35943670msgid "Bullhorn Job #%1$s is not created."
    35953671msgstr ""
    35963672
    35973673#. translators: Placeholders are for Bullhorn ID
    3598 #: ../includes/bullhorn/class-bullhorn-import.php:717, ../src/Sync/Bullhorn/Jobs.php:462
     3674#: ../includes/bullhorn/class-bullhorn-import.php:726, ../src/Sync/Bullhorn/Jobs.php:477
    35993675msgid "Bullhorn Job #%1$s is new and will be added."
    36003676msgstr ""
    36013677
    3602 #: ../includes/bullhorn/class-bullhorn-import.php:679, ../src/Sync/Bullhorn/Jobs.php:430
     3678#: ../includes/bullhorn/class-bullhorn-import.php:688, ../src/Sync/Bullhorn/Jobs.php:445
    36033679msgid "Bullhorn Job #%1$s exists as WP post #%2$s and is skipped."
    36043680msgstr ""
    36053681
    3606 #: ../includes/bullhorn/class-bullhorn-import.php:685
     3682#: ../includes/bullhorn/class-bullhorn-import.php:694
    36073683msgid "Bullhorn Job #%1$s was not modified since last import skipping save."
    36083684msgstr ""
    36093685
    3610 #: ../includes/bullhorn/class-bullhorn-import.php:694, ../src/Sync/Bullhorn/Jobs.php:440
     3686#: ../includes/bullhorn/class-bullhorn-import.php:703, ../src/Sync/Bullhorn/Jobs.php:455
    36113687msgid "Bullhorn Job #%1$s exists as WP post #%2$s and is updated."
    36123688msgstr ""
    36133689
    3614 #: ../includes/bullhorn/class-bullhorn-import.php:691, ../src/Sync/Bullhorn/Jobs.php:436
     3690#: ../includes/bullhorn/class-bullhorn-import.php:700, ../src/Sync/Bullhorn/Jobs.php:451
    36153691msgid "Bullhorn Job #%1$s exists as WP post #%2$s and is force updated due to user action."
    36163692msgstr ""
    36173693
    3618 #: ../includes/bullhorn/class-bullhorn-import.php:734, ../src/Sync/Bullhorn/Jobs.php:477
     3694#: ../includes/bullhorn/class-bullhorn-import.php:743, ../src/Sync/Bullhorn/Jobs.php:492
    36193695msgid "Unable to save job."
    36203696msgstr ""
    36213697
    36223698#. translators: Placeholder is Job ID number.
    3623 #: ../includes/bullhorn/class-bullhorn-import.php:744, ../src/Sync/Bullhorn/Jobs.php:481
     3699#: ../includes/bullhorn/class-bullhorn-import.php:753, ../src/Sync/Bullhorn/Jobs.php:496
    36243700msgid "Bullhorn Job #%1$s has been imported."
    36253701msgstr ""
    36263702
    3627 #: ../includes/bullhorn/class-bullhorn-import.php:897
     3703#: ../includes/bullhorn/class-bullhorn-import.php:906
    36283704msgid "More than 5 terms doing a full term sync"
    36293705msgstr ""
    36303706
    3631 #: ../includes/bullhorn/class-bullhorn-import.php:1496
     3707#: ../includes/bullhorn/class-bullhorn-import.php:1506
    36323708msgid "Remote"
    36333709msgstr ""
    36343710
    3635 #: ../includes/bullhorn/class-bullhorn-import.php:1512
     3711#: ../includes/bullhorn/class-bullhorn-import.php:1522
    36363712msgid "Hybrid"
    36373713msgstr ""
    36383714
    3639 #: ../includes/bullhorn/class-bullhorn-import.php:2209
     3715#: ../includes/bullhorn/class-bullhorn-import.php:2218
    36403716msgid "Requesting currency Format"
    36413717msgstr ""
    36423718
    3643 #: ../includes/bullhorn/class-bullhorn-import.php:2252
     3719#: ../includes/bullhorn/class-bullhorn-import.php:2261
    36443720msgid "More than 5 assignedUsers doing a full sync"
    36453721msgstr ""
    36463722
    3647 #: ../includes/bullhorn/class-bullhorn-import.php:2284
     3723#: ../includes/bullhorn/class-bullhorn-import.php:2293
    36483724msgid "Unable to fetch additional assignedUsers: no WordPress ID provided for the job"
    36493725msgstr ""
    36503726
    3651 #: ../includes/bullhorn/class-bullhorn-import.php:2298
     3727#: ../includes/bullhorn/class-bullhorn-import.php:2307
    36523728msgid "Unable to fetch additional assignedUsers: no job source ID found"
    36533729msgstr ""
    36543730
    3655 #: ../includes/bullhorn/class-bullhorn-import.php:2320
     3731#: ../includes/bullhorn/class-bullhorn-import.php:2329
    36563732msgid "Additional assignedUsers data successfully retrieved"
    36573733msgstr ""
    36583734
    3659 #: ../includes/bullhorn/class-bullhorn-import.php:2347
     3735#: ../includes/bullhorn/class-bullhorn-import.php:2356
    36603736msgid "Requesting Bullhorn user data for user ID %1$s"
    36613737msgstr ""
    36623738
    36633739#. translators: placeholder is Job ID
    3664 #: ../includes/bullhorn/class-bullhorn-import.php:2387
     3740#: ../includes/bullhorn/class-bullhorn-import.php:2396
    36653741msgid "Delete Job(%1$s)."
    36663742msgstr ""
     
    48134889msgstr ""
    48144890
     4891#: ../src/Integrations/Bullhorn/Helper.php:83
     4892msgid "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."
     4893msgstr ""
     4894
    48154895#: ../src/Rest/Endpoint/Application.php:92
    48164896msgid "No form data was submitted."
     
    49275007msgstr ""
    49285008
    4929 #: ../src/Sync/Bullhorn/Jobs.php:522
     5009#: ../src/Sync/Bullhorn/Jobs.php:537
    49305010msgid "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."
    49315011msgstr ""
    49325012
    4933 #: ../src/Sync/Bullhorn/Jobs.php:555
     5013#: ../src/Sync/Bullhorn/Jobs.php:570
    49345014msgid "The following jobs are deemed expired, but will not be removed due to user filter: %1$s."
    49355015msgstr ""
    49365016
    4937 #: ../src/Sync/Bullhorn/Jobs.php:571
     5017#: ../src/Sync/Bullhorn/Jobs.php:586
    49385018msgid "Deleting Expired Jobs with WordPress IDs of %1$s."
    49395019msgstr ""
     
    49675047msgstr ""
    49685048
    4969 #: ../src/Rest/Endpoint/Jobs/Taxonomies.php:100
     5049#: ../src/Rest/Endpoint/Jobs/Taxonomies.php:101
    49705050msgid "Failed to retrieve taxonomies for the job post type."
    49715051msgstr ""
    49725052
    4973 #: ../src/Rest/Endpoint/Jobs/Taxonomies.php:129
     5053#: ../src/Rest/Endpoint/Jobs/Taxonomies.php:130
    49745054msgid "Failed to retrieve taxonomy for the job post type due to internal error."
    49755055msgstr ""
    49765056
    4977 #: ../src/Rest/Endpoint/Jobs/Taxonomies.php:168
     5057#: ../src/Rest/Endpoint/Jobs/Taxonomies.php:169
    49785058msgid "Taxonomy for the job post type not found."
    49795059msgstr ""
     
    49915071msgstr ""
    49925072
    4993 #: ../templates/application.php:154
     5073#: ../templates/application.php:168
    49945074msgid "No fields passed to form. Set default fields in the Matador settings."
    49955075msgstr ""
    49965076
    4997 #: ../templates/application.php:130
     5077#: ../templates/application.php:144
    49985078msgid "Submit Application"
    49995079msgstr ""
    50005080
    5001 #: ../templates/application.php:142
     5081#: ../templates/application.php:156
    50025082msgid "We are uploading your application. It may take a few moments to read your resume. Please wait!"
    50035083msgstr ""
     
    50275107msgstr ""
    50285108
    5029 #: ../templates/jobs-table.php:94
     5109#: ../templates/jobs-table.php:95
    50305110msgid "Sort the %s column in ascending order"
    50315111msgstr ""
    50325112
    5033 #: ../templates/jobs-table.php:102
     5113#: ../templates/jobs-table.php:103
    50345114msgid "Sort the %s column in descending order"
    50355115msgstr ""
  • matador-jobs/trunk/matador-jobs.php

    r3257995 r3279451  
    1212 * Plugin URI:  https://matadorjobs.com
    1313 * Description: Connect your Bullhorn Account with your WordPress site and display your jobs on your WordPress site.
    14  * Version:     3.9.4
     14 * Version:     3.9.7
    1515 * Requires at least: 5.5.0
    16  * Tested up to: 6.7
     16 * Tested up to: 6.8
    1717 * Requires PHP: 8.1
    1818 * Author:      Matador Software LLC, Jeremy Scott, Paul Bearne
  • matador-jobs/trunk/readme.txt

    r3257995 r3279451  
    55- Tags: Bullhorn, Job Board, Career Portal, OSCP, ATS
    66- Requires at least: 5.5.0
    7 - Tested up to: 6.7.2
    8 - Stable tag: 3.9.4
    9 - Version: 3.9.4
     7- Tested up to: 6.8
     8- Stable tag: 3.9.7
     9- Version: 3.9.7
    1010- Requires PHP: 8.1
    1111- License: GPLv3 or later
     
    5151= How Can I Customize the Look of Matador? =
    5252
    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.
     53Our 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.
    5454
    5555= How Can I Customize the Function of Matador? =
    5656
    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.
     57Matador 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.
    5858
    5959But 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.
     
    7373
    7474== 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.
    75101
    76102## 3.9.4
  • matador-jobs/trunk/src/Editors/Blocks/Blocks.php

    r3254249 r3279451  
    7474        // Register the Block Metadata Collection
    7575        $base_path = __DIR__ . '/build/';
    76         if ( file_exists( $base_path . 'blocks-manifest.php' ) ) {
     76        if ( function_exists( 'wp_register_block_metadata_collection' ) && file_exists( $base_path . 'blocks-manifest.php' ) ) {
    7777            \wp_register_block_metadata_collection(
    7878                $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' => 'e4a0e2ee992be04cd3e3');
     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' => '028560194a530108d5bf');
     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  
    3131     */
    3232    public function __construct() {
    33         add_filter( 'matador_jobs_general_countries', [ __CLASS__, 'bullhorn_countries' ] );
    34     }
    3533
    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 );
    5537    }
    5638}
  • matador-jobs/trunk/src/Integrations/Bullhorn/Helper.php

    r3254249 r3279451  
    3535        return ( get_transient( $cache_key ) ) ?: [];
    3636    }
     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    }
    3785}
  • matador-jobs/trunk/src/Rest/Endpoint/Jobs/JobListings.php

    r3254249 r3279451  
    245245                break;
    246246            default:
    247                 if ( in_array( $field, Job_Taxonomies::registered_taxonomies(), true ) ) {
     247                if ( in_array( $field, Job_Taxonomies::taxonomies_list(), true ) ) {
    248248                    $value = [];
    249249                    $terms = Template_Support::the_job_terms( $field, $id );
     
    352352        if ( 'all' === $request['include'] || 'taxonomies' === $request['include'] ) {
    353353
    354             $taxonomies = Job_Taxonomies::registered_taxonomies();
     354            $taxonomies = Job_Taxonomies::taxonomies_list();
    355355
    356356            if ( is_wp_error( $taxonomies ) ) {
  • matador-jobs/trunk/src/Rest/Endpoint/Jobs/Taxonomies.php

    r3254249 r3279451  
    2222
    2323use matador\Matador;
     24use matador\Job_Taxonomies;
    2425use matador\MatadorJobs\Rest\Endpoint\EndpointAbstract;
    2526use matador\MatadorJobs\Core\Logger;
     
    8687    public static function index( WP_REST_Request $request ): WP_REST_Response|WP_Error {
    8788
    88         $taxonomies = Matador::variable( 'job_taxonomies' );
     89        $taxonomies = Job_Taxonomies::taxonomies_list();
    8990
    9091        if ( ! empty( $taxonomies ) ) {
     
    122123    public static function show( WP_REST_Request $request ): WP_REST_Response|WP_Error {
    123124
    124         $taxonomies = Matador::variable( 'job_taxonomies' );
     125        $taxonomies = Job_Taxonomies::taxonomies_list();
    125126
    126127        if ( empty( $taxonomies ) ) {
  • matador-jobs/trunk/src/Sync/Bullhorn/Jobs.php

    r3254249 r3279451  
    9191         */
    9292        $this->steps = apply_filters( 'matador_sync_task_steps_' . self::$name, [
     93            'get_countries',
    9394            'get_local_jobs',
    9495            'get_remote_jobs',
     
    158159
    159160    /**
     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    /**
    160175     * Get Bullhorn Jobs
    161176     *
  • matador-jobs/trunk/templates/application.php

    r3254249 r3279451  
    9595        foreach ( $fields as $field => $args ) :
    9696
     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
    97111            // Prepare Field Args.
    98112            list( $args, $template ) = matador_form_field_args( $args, $field );
  • matador-jobs/trunk/templates/jobs-portal.php

    r3254249 r3279451  
    2121
    2222use matador\Matador;
     23use matador\Job_Taxonomies;
    2324
    2425/**
     
    146147                        <?php matador_search_form( [ 'fields' => $part['search'] ] ); ?>
    147148
    148                     <?php elseif ( in_array( $part, array_keys( Matador::variable( 'job_taxonomies' ) ), true ) ) : ?>
     149                    <?php elseif ( in_array( $part, Job_Taxonomies::taxonomies_list(), true ) ) : ?>
    149150
    150151                        <?php matador_taxonomy( [ 'taxonomy' => $part, 'method' => 'filter' ] ); ?>
  • matador-jobs/trunk/templates/jobs-search.php

    r3254249 r3279451  
    9898                <?php matador_get_template_part( 'jobs-search-field', 'reset' ); ?>
    9999
    100             <?php elseif ( in_array( $field, Job_Taxonomies::registered_taxonomies(), true ) ) : ?>
     100            <?php elseif ( in_array( $field, Job_Taxonomies::taxonomies_list(), true ) ) : ?>
    101101
    102102                <?php matador_get_template_part( 'jobs-search-field', 'taxonomy', array( 'field' => $field, 'as' => $taxonomy_type ) ); ?>
  • matador-jobs/trunk/templates/jobs-table.php

    r3254249 r3279451  
    7474                            break;
    7575                        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 ) ) {
    7778                                $orderby_key = apply_filters( 'matador_jobs_table_orderby_key', $field );
    7879                            }
  • matador-jobs/trunk/vendor/autoload.php

    r3254249 r3279451  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit98bcf1a2611bbfda608da10553e798e6::getLoader();
     25return ComposerAutoloaderInitfd23c05c512ba39a91c3a1e3e5bacf21::getLoader();
  • matador-jobs/trunk/vendor/composer/ClassLoader.php

    r3254249 r3279451  
    4646    private static $includeFile;
    4747
    48     /** @var string|null */
     48    /** @var ?string */
    4949    private $vendorDir;
    5050
    5151    // PSR-4
    5252    /**
    53      * @var array<string, array<string, int>>
     53     * @var array[]
     54     * @psalm-var array<string, array<string, int>>
    5455     */
    5556    private $prefixLengthsPsr4 = array();
    5657    /**
    57      * @var array<string, list<string>>
     58     * @var array[]
     59     * @psalm-var array<string, array<int, string>>
    5860     */
    5961    private $prefixDirsPsr4 = array();
    6062    /**
    61      * @var list<string>
     63     * @var array[]
     64     * @psalm-var array<string, string>
    6265     */
    6366    private $fallbackDirsPsr4 = array();
     
    6568    // PSR-0
    6669    /**
    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[]>>
    7272     */
    7373    private $prefixesPsr0 = array();
    7474    /**
    75      * @var list<string>
     75     * @var array[]
     76     * @psalm-var array<string, string>
    7677     */
    7778    private $fallbackDirsPsr0 = array();
     
    8182
    8283    /**
    83      * @var array<string, string>
     84     * @var string[]
     85     * @psalm-var array<string, string>
    8486     */
    8587    private $classMap = array();
     
    8991
    9092    /**
    91      * @var array<string, bool>
     93     * @var bool[]
     94     * @psalm-var array<string, bool>
    9295     */
    9396    private $missingClasses = array();
    9497
    95     /** @var string|null */
     98    /** @var ?string */
    9699    private $apcuPrefix;
    97100
    98101    /**
    99      * @var array<string, self>
     102     * @var self[]
    100103     */
    101104    private static $registeredLoaders = array();
    102105
    103106    /**
    104      * @param string|null $vendorDir
     107     * @param ?string $vendorDir
    105108     */
    106109    public function __construct($vendorDir = null)
     
    111114
    112115    /**
    113      * @return array<string, list<string>>
     116     * @return string[]
    114117     */
    115118    public function getPrefixes()
     
    123126
    124127    /**
    125      * @return array<string, list<string>>
     128     * @return array[]
     129     * @psalm-return array<string, array<int, string>>
    126130     */
    127131    public function getPrefixesPsr4()
     
    131135
    132136    /**
    133      * @return list<string>
     137     * @return array[]
     138     * @psalm-return array<string, string>
    134139     */
    135140    public function getFallbackDirs()
     
    139144
    140145    /**
    141      * @return list<string>
     146     * @return array[]
     147     * @psalm-return array<string, string>
    142148     */
    143149    public function getFallbackDirsPsr4()
     
    147153
    148154    /**
    149      * @return array<string, string> Array of classname => path
     155     * @return string[] Array of classname => path
     156     * @psalm-return array<string, string>
    150157     */
    151158    public function getClassMap()
     
    155162
    156163    /**
    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
    158166     *
    159167     * @return void
     
    172180     * appending or prepending to the ones previously set for this prefix.
    173181     *
    174      * @param string              $prefix  The prefix
    175      * @param list<string>|string $paths   The PSR-0 root directories
    176      * @param bool                $prepend Whether to prepend the directories
     182     * @param string          $prefix  The prefix
     183     * @param string[]|string $paths   The PSR-0 root directories
     184     * @param bool            $prepend Whether to prepend the directories
    177185     *
    178186     * @return void
     
    180188    public function add($prefix, $paths, $prepend = false)
    181189    {
    182         $paths = (array) $paths;
    183190        if (!$prefix) {
    184191            if ($prepend) {
    185192                $this->fallbackDirsPsr0 = array_merge(
    186                     $paths,
     193                    (array) $paths,
    187194                    $this->fallbackDirsPsr0
    188195                );
     
    190197                $this->fallbackDirsPsr0 = array_merge(
    191198                    $this->fallbackDirsPsr0,
    192                     $paths
     199                    (array) $paths
    193200                );
    194201            }
     
    199206        $first = $prefix[0];
    200207        if (!isset($this->prefixesPsr0[$first][$prefix])) {
    201             $this->prefixesPsr0[$first][$prefix] = $paths;
     208            $this->prefixesPsr0[$first][$prefix] = (array) $paths;
    202209
    203210            return;
     
    205212        if ($prepend) {
    206213            $this->prefixesPsr0[$first][$prefix] = array_merge(
    207                 $paths,
     214                (array) $paths,
    208215                $this->prefixesPsr0[$first][$prefix]
    209216            );
     
    211218            $this->prefixesPsr0[$first][$prefix] = array_merge(
    212219                $this->prefixesPsr0[$first][$prefix],
    213                 $paths
     220                (array) $paths
    214221            );
    215222        }
     
    220227     * appending or prepending to the ones previously set for this namespace.
    221228     *
    222      * @param string              $prefix  The prefix/namespace, with trailing '\\'
    223      * @param list<string>|string $paths   The PSR-4 base directories
    224      * @param bool                $prepend Whether to prepend the directories
     229     * @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
    225232     *
    226233     * @throws \InvalidArgumentException
     
    230237    public function addPsr4($prefix, $paths, $prepend = false)
    231238    {
    232         $paths = (array) $paths;
    233239        if (!$prefix) {
    234240            // Register directories for the root namespace.
    235241            if ($prepend) {
    236242                $this->fallbackDirsPsr4 = array_merge(
    237                     $paths,
     243                    (array) $paths,
    238244                    $this->fallbackDirsPsr4
    239245                );
     
    241247                $this->fallbackDirsPsr4 = array_merge(
    242248                    $this->fallbackDirsPsr4,
    243                     $paths
     249                    (array) $paths
    244250                );
    245251            }
     
    251257            }
    252258            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
    253             $this->prefixDirsPsr4[$prefix] = $paths;
     259            $this->prefixDirsPsr4[$prefix] = (array) $paths;
    254260        } elseif ($prepend) {
    255261            // Prepend directories for an already registered namespace.
    256262            $this->prefixDirsPsr4[$prefix] = array_merge(
    257                 $paths,
     263                (array) $paths,
    258264                $this->prefixDirsPsr4[$prefix]
    259265            );
     
    262268            $this->prefixDirsPsr4[$prefix] = array_merge(
    263269                $this->prefixDirsPsr4[$prefix],
    264                 $paths
     270                (array) $paths
    265271            );
    266272        }
     
    271277     * replacing any others previously set for this prefix.
    272278     *
    273      * @param string              $prefix The prefix
    274      * @param list<string>|string $paths  The PSR-0 base directories
     279     * @param string          $prefix The prefix
     280     * @param string[]|string $paths  The PSR-0 base directories
    275281     *
    276282     * @return void
     
    289295     * replacing any others previously set for this namespace.
    290296     *
    291      * @param string              $prefix The prefix/namespace, with trailing '\\'
    292      * @param list<string>|string $paths  The PSR-4 base directories
     297     * @param string          $prefix The prefix/namespace, with trailing '\\'
     298     * @param string[]|string $paths  The PSR-4 base directories
    293299     *
    294300     * @throws \InvalidArgumentException
     
    476482
    477483    /**
    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[]
    481487     */
    482488    public static function getRegisteredLoaders()
  • matador-jobs/trunk/vendor/composer/InstalledVersions.php

    r3254249 r3279451  
    3434
    3535    /**
    36      * @var bool
    37      */
    38     private static $installedIsLocalDir;
    39 
    40     /**
    4136     * @var bool|null
    4237     */
     
    10499        foreach (self::getInstalled() as $installed) {
    105100            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']);
    107102            }
    108103        }
     
    125120    public static function satisfies(VersionParser $parser, $packageName, $constraint)
    126121    {
    127         $constraint = $parser->parseConstraints((string) $constraint);
     122        $constraint = $parser->parseConstraints($constraint);
    128123        $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
    129124
     
    315310        self::$installed = $data;
    316311        self::$installedByVendor = array();
    317 
    318         // when using reload, we disable the duplicate protection to ensure that self::$installed data is
    319         // 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 listing
    321         // all installed packages for example
    322         self::$installedIsLocalDir = false;
    323312    }
    324313
     
    334323
    335324        $installed = array();
    336         $copiedLocalDir = false;
    337325
    338326        if (self::$canGetVendors) {
    339             $selfDir = strtr(__DIR__, '\\', '/');
    340327            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
    341                 $vendorDir = strtr($vendorDir, '\\', '/');
    342328                if (isset(self::$installedByVendor[$vendorDir])) {
    343329                    $installed[] = self::$installedByVendor[$vendorDir];
    344330                } 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];
    352334                    }
    353                 }
    354                 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
    355                     $copiedLocalDir = true;
    356335                }
    357336            }
     
    362341            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
    363342            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';
    367344            } else {
    368345                self::$installed = array();
    369346            }
    370347        }
    371 
    372         if (self::$installed !== array() && !$copiedLocalDir) {
    373             $installed[] = self::$installed;
    374         }
     348        $installed[] = self::$installed;
    375349
    376350        return $installed;
  • matador-jobs/trunk/vendor/composer/autoload_real.php

    r3254249 r3279451  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit98bcf1a2611bbfda608da10553e798e6
     5class ComposerAutoloaderInitfd23c05c512ba39a91c3a1e3e5bacf21
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit98bcf1a2611bbfda608da10553e798e6', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInitfd23c05c512ba39a91c3a1e3e5bacf21', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit98bcf1a2611bbfda608da10553e798e6', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitfd23c05c512ba39a91c3a1e3e5bacf21', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit98bcf1a2611bbfda608da10553e798e6::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInitfd23c05c512ba39a91c3a1e3e5bacf21::getInitializer($loader));
    3333
    3434        $loader->register(true);
  • matador-jobs/trunk/vendor/composer/autoload_static.php

    r3254249 r3279451  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit98bcf1a2611bbfda608da10553e798e6
     7class ComposerStaticInitfd23c05c512ba39a91c3a1e3e5bacf21
    88{
    99    public static $prefixesPsr0 = array (
     
    2424    {
    2525        return \Closure::bind(function () use ($loader) {
    26             $loader->prefixesPsr0 = ComposerStaticInit98bcf1a2611bbfda608da10553e798e6::$prefixesPsr0;
    27             $loader->classMap = ComposerStaticInit98bcf1a2611bbfda608da10553e798e6::$classMap;
     26            $loader->prefixesPsr0 = ComposerStaticInitfd23c05c512ba39a91c3a1e3e5bacf21::$prefixesPsr0;
     27            $loader->classMap = ComposerStaticInitfd23c05c512ba39a91c3a1e3e5bacf21::$classMap;
    2828
    2929        }, null, ClassLoader::class);
  • matador-jobs/trunk/vendor/composer/installed.php

    r3257995 r3279451  
    22    'root' => array(
    33        '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',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        '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',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.