Plugin Directory

Changeset 3181790


Ignore:
Timestamp:
11/04/2024 08:47:04 PM (16 months ago)
Author:
seebeen
Message:

Update to version 3.9.3 from GitHub

Location:
serbian-addons-for-woocommerce
Files:
62 added
10 deleted
132 edited
1 copied

Legend:

Unmodified
Added
Removed
  • serbian-addons-for-woocommerce/tags/3.9.3/dist/assets.json

    r3159568 r3181790  
    55  "images/qr-code.png": "images/qr-code.png",
    66  "js/admin/admin.js": "js/admin/admin.2afdfd.js",
    7   "js/front/main.js": "js/front/main.74e8ef.js"
     7  "js/front/main.js": "js/front/main.35f32e.js"
    88}
  • serbian-addons-for-woocommerce/tags/3.9.3/dist/assets.php

    r3159568 r3181790  
    1515    'images/qr-code.png'     => 'images/qr-code.png',
    1616    'js/admin/admin.js'      => 'js/admin/admin.2afdfd.js',
    17     'js/front/main.js'       => 'js/front/main.74e8ef.js',
     17    'js/front/main.js'       => 'js/front/main.35f32e.js',
    1818);
  • serbian-addons-for-woocommerce/tags/3.9.3/lib/App.php

    r3167131 r3181790  
    1414use XWP\DI\Decorators\Module;
    1515use XWP\DI\Interfaces\On_Initialize;
    16 use XWP_Asset_Retriever;
    1716
    1817/**
     
    3534)]
    3635class App implements On_Initialize {
    37     use XWP_Asset_Retriever;
    38 
    3936    /**
    4037     * DI Definitions
     
    4441    public static function configure(): array {
    4542        return array(
    46             'ips.basedir'          => \DI\factory(
     43            'ips.basedir'            => \DI\factory(
    4744                static fn() => \defined( 'WCRS_IPS_DIR' )
    4845                    ? WCRS_IPS_DIR
    4946                    : \wp_upload_dir()['basedir'] . '/wcrs-ips',
    5047            ),
    51             'ips.generator'        => \DI\factory(
     48            'ips.generator'          => \DI\factory(
    5249                static fn() => \class_exists( \Imagick::class )
    5350                    ? QR\QR_Generator_ImageMagick::class
    5451                    : QR\QR_Generator_GD::class
    5552            ),
    56             QRCode::class          => \DI\factory(
     53            QRCode::class            => \DI\factory(
    5754                static fn( QR\QR_Code_Options $opts ) => new QRCode( $opts )
    5855            ),
    59             Utils\Installer::class => \DI\factory( array( Utils\Installer::class, 'instance' ) ),
     56            Utils\Installer::class   => \DI\factory( array( Utils\Installer::class, 'instance' ) ),
     57            \XWP_Asset_Bundle::class => \DI\factory( static fn() => \XWP_Asset_Loader::get_bundle( 'wcrs' ) ),
    6058        );
    61     }
    62 
    63     /**
    64      * Constructor
    65      *
    66      * @param Config $config Config instance.
    67      */
    68     public function __construct( private Config $config ) {
    6959    }
    7060
     
    7363     */
    7464    public function on_initialize(): void {
    75         $this->load_bundle_config( WCRS_PLUGIN_PATH . 'config/assets.php' );
     65        \XWP_Asset_Loader::load_bundle( include WCRS_PLUGIN_PATH . 'config/assets.php' );
    7666    }
    7767
     
    119109     * @param  string $symbol   Currency symbol to change.
    120110     * @param  string $currency Currency we're changing.
     111     * @param  Config $config   Configuration service.
    121112     * @return string           Transliterated currency symbol
    122113     */
    123     #[Filter( tag: 'woocommerce_currency_symbol', priority: 99 )]
    124     public function change_currency_symbol( string $symbol, string $currency ): string {
    125         if ( ! $this->config->get( 'core', 'fix_currency_symbol' ) ) {
     114    #[Filter( tag: 'woocommerce_currency_symbol', priority: 99, invoke: Filter::INV_PROXIED, args: 2 )]
     115    public function change_currency_symbol( string $symbol, string $currency, Config $config ): string {
     116        if ( ! $config->get( 'core', 'fix_currency_symbol' ) ) {
    126117            return $symbol;
    127118        }
  • serbian-addons-for-woocommerce/tags/3.9.3/lib/Core/Address_Field_Controller.php

    r3167131 r3181790  
    5151                $type_field,
    5252                array(
    53                     'default'     => $enabled_type,
    54                     'description' => \wcsrb_get_entity_types()[ $enabled_type ],
    55                     'type'        => 'hidden',
    56                     'value'       => $enabled_type,
     53                    'custom_attributes' => array(
     54                        'data-default' => $enabled_type,
     55                    ),
     56                    'default'           => $enabled_type,
     57                    'description'       => \wcsrb_get_entity_types()[ $enabled_type ],
     58                    'type'              => 'hidden',
    5759                ),
    5860            );
  • serbian-addons-for-woocommerce/tags/3.9.3/lib/Functions/wcsrb-helpers.php

    r3159568 r3181790  
    6666    );
    6767}
     68
     69/**
     70 * Format a bank account number
     71 *
     72 * @param  string $acct   The account number.
     73 * @param  string $format The format to use. Short or long.
     74 * @param  string $sep    The separator to use.
     75 * @return string
     76 */
     77function wcsrb_format_bank_acct( string $acct, string $format = 'short', string $sep = '-' ): string {
     78    $acct   = str_replace( '-', '', $acct );
     79    $middle = ltrim( substr( $acct, 3, -2 ), '0' );
     80
     81    if ( 'short' !== $format ) {
     82        $middle = str_pad( $middle, 13, '0', STR_PAD_LEFT );
     83    }
     84
     85    return sprintf( '%1$s%4$s%2$s%4$s%3$s', substr( $acct, 0, 3 ), $middle, substr( $acct, -2 ), $sep );
     86}
  • serbian-addons-for-woocommerce/tags/3.9.3/lib/Functions/wcsrb-payment-slip.php

    r3167131 r3181790  
    66 * @subpackage Utils
    77 */
    8 
    9 use chillerlan\QRCode\Common\EccLevel;
    10 use chillerlan\QRCode\Data\QRMatrix;
    118
    129/**
  • serbian-addons-for-woocommerce/tags/3.9.3/lib/Gateway/Gateway_Payment_Slip.php

    r3170400 r3181790  
    1717use XWP\DI\Decorators\Filter;
    1818use XWP\DI\Decorators\Handler;
     19use XWP_Asset_Bundle;
    1920
    2021/**
     
    243244     * @return string           Modified email CSS.
    244245     */
    245     #[Filter( tag: 'woocommerce_email_styles', priority: 9999 )]
    246     public function add_css_to_emails( string $css, WC_Email $email ) {
     246    #[Filter( tag: 'woocommerce_email_styles', priority: 9999, invoke: Filter::INV_PROXIED, args: 2 )]
     247    public function add_css_to_emails( string $css, WC_Email $email, XWP_Asset_Bundle $bundle ) {
    247248        if ( 'customer_on_hold_order' === $email->id && \wcsrb_order_has_slip( $email->object, true ) ) {
    248             $css .= \WCSRB()->asset_data( 'css/email/template.css' ) . "\n";
    249             $css .= \WCSRB()->asset_data( 'css/front/main.css' ) . "\n";
     249            $css .= $bundle['css/email/template.css']->data() . "\n";
     250            $css .= $bundle['css/front/main.css']->data() . "\n";
    250251        }
    251252
  • serbian-addons-for-woocommerce/tags/3.9.3/lib/Services/Config.php

    r3167131 r3181790  
    4646
    4747        $this->settings['company'] = array(
    48             'accounts'  => \wcsrb_get_bank_accounts(),
     48            'accounts'  => $this->get_bank_accounts(),
    4949            'address_1' => \get_option( 'woocommerce_store_address', '' ),
    5050            'address_2' => \get_option( 'woocommerce_store_address_2', '' ),
     
    5555            'postcode'  => \get_option( 'woocommerce_store_postcode', '' ),
    5656        );
     57    }
     58
     59    /**
     60     * Get the saved bank accounts.
     61     *
     62     * @return array<int,string>
     63     */
     64    private function get_bank_accounts(): array {
     65        $accounts = \get_option( 'woocommerce_store_bank_accounts', array() );
     66
     67        return \xwp_str_to_arr( $accounts['acct'] ?? $accounts );
    5768    }
    5869
  • serbian-addons-for-woocommerce/tags/3.9.3/readme.txt

    r3170400 r3181790  
    88WC requires at least: 8.5
    99WC tested up to: 9.2
    10 Stable tag: 3.9.2
     10Stable tag: 3.9.3
    1111License: GPLv2 or later
    1212License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • serbian-addons-for-woocommerce/tags/3.9.3/serbian-addons-for-woocommerce.php

    r3170400 r3181790  
    44 * Plugin URI:           https://oblak.studio/open-source/srpski-woocommerce
    55 * Description:          Various addons and tweaks that make WooCommerce compatible with Serbian bureaucracy.
    6  * Version:              3.9.2
     6 * Version:              3.9.3
    77 * Requires PHP:         8.0
    88 * Author:               Oblak Studio
     
    2727defined( 'WCRS_PLUGIN_BASE' ) || define( 'WCRS_PLUGIN_BASE', plugin_basename( WCRS_PLUGIN_FILE ) );
    2828defined( 'WCRS_PLUGIN_PATH' ) || define( 'WCRS_PLUGIN_PATH', plugin_dir_path( WCRS_PLUGIN_FILE ) );
    29 defined( 'WCRS_VERSION' )     || define( 'WCRS_VERSION', '3.9.2' );
     29defined( 'WCRS_VERSION' )     || define( 'WCRS_VERSION', '3.9.3' );
    3030// phpcs:enable WordPress.WhiteSpace.OperatorSpacing.SpacingBefore
    3131
    3232require __DIR__ . '/vendor/autoload_packages.php';
    3333
    34 wcsrb_init();
     34xwp_load_app(
     35    app: array(
     36        'compile'     => false,
     37        'compile_dir' => __DIR__ . '/cache',
     38        'id'          => 'wcsrb',
     39        'module'      => \Oblak\WCSRB\App::class,
     40    ),
     41    priority: -2,
     42);
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/autoload.php

    r3167131 r3181790  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInitf15f7664b060de4a95ba0e02111b557f::getLoader();
     25return ComposerAutoloaderInit70816f8d2f2f8cd20b8d4badcf146258::getLoader();
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/autoload_packages.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/automattic/jetpack-autoloader/CHANGELOG.md

    r3170400 r3181790  
    55The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
    66and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
     7
     8## [3.1.3] - 2024-11-04
     9### Added
     10- Enable test coverage. [#39961]
    711
    812## [3.1.2] - 2024-10-15
     
    386390- Add Custom Autoloader
    387391
     392[3.1.3]: https://github.com/Automattic/jetpack-autoloader/compare/v3.1.2...v3.1.3
    388393[3.1.2]: https://github.com/Automattic/jetpack-autoloader/compare/v3.1.1...v3.1.2
    389394[3.1.1]: https://github.com/Automattic/jetpack-autoloader/compare/v3.1.0...v3.1.1
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/automattic/jetpack-autoloader/composer.json

    r3155827 r3181790  
    1919        "composer/composer": "^1.1 || ^2.0",
    2020        "yoast/phpunit-polyfills": "^1.1.1",
    21         "automattic/jetpack-changelogger": "^4.2.6"
     21        "automattic/jetpack-changelogger": "^4.2.8"
    2222    },
    2323    "autoload": {
     
    3232        "phpunit": [
    3333            "./vendor/phpunit/phpunit/phpunit --colors=always"
     34        ],
     35        "test-coverage": [
     36            "php -dpcov.directory=. ./vendor/bin/phpunit --coverage-php \"./tests/php/tmp/coverage-report.php\"",
     37            "php ./tests/php/bin/test-coverage.php \"$COVERAGE_DIR/php.cov\""
    3438        ],
    3539        "test-php": [
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/automattic/jetpack-autoloader/src/AutoloadGenerator.php

    r3170400 r3181790  
    2222class AutoloadGenerator {
    2323
    24     const VERSION = '3.1.2';
     24    const VERSION = '3.1.3';
    2525
    2626    /**
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/automattic/jetpack-constants/CHANGELOG.md

    r3155827 r3181790  
    55The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
    66and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
     7
     8## [2.0.5] - 2024-11-04
     9### Added
     10- Enable test coverage. [#39961]
    711
    812## [2.0.4] - 2024-08-23
     
    175179- Packages: Finish the constants package
    176180
     181[2.0.5]: https://github.com/Automattic/jetpack-constants/compare/v2.0.4...v2.0.5
    177182[2.0.4]: https://github.com/Automattic/jetpack-constants/compare/v2.0.3...v2.0.4
    178183[2.0.3]: https://github.com/Automattic/jetpack-constants/compare/v2.0.2...v2.0.3
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/automattic/jetpack-constants/composer.json

    r3155827 r3181790  
    1010        "brain/monkey": "2.6.1",
    1111        "yoast/phpunit-polyfills": "^1.1.1",
    12         "automattic/jetpack-changelogger": "^4.2.6"
     12        "automattic/jetpack-changelogger": "^4.2.8"
    1313    },
    1414    "suggest": {
     
    2323        "phpunit": [
    2424            "./vendor/phpunit/phpunit/phpunit --colors=always"
     25        ],
     26        "test-coverage": [
     27            "php -dpcov.directory=. ./vendor/bin/phpunit --coverage-php \"$COVERAGE_DIR/php.cov\""
    2528        ],
    2629        "test-php": [
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/composer/autoload_classmap.php

    r3167131 r3181790  
    1313    'Automattic\\Jetpack\\Autoloader\\ManifestGenerator' => $vendorDir . '/automattic/jetpack-autoloader/src/ManifestGenerator.php',
    1414    'Automattic\\Jetpack\\Constants' => $vendorDir . '/automattic/jetpack-constants/src/class-constants.php',
     15    'CURLStringFile' => $vendorDir . '/symfony/polyfill-php81/Resources/stubs/CURLStringFile.php',
    1516    'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
    1617    'DI\\Attribute\\Inject' => $vendorDir . '/php-di/php-di/src/Attribute/Inject.php',
     
    120121    'Oblak\\WCSRB\\Utils\\Installer' => $baseDir . '/lib/Utils/Installer.php',
    121122    'Oblak\\WCSRB\\Utils\\Template_Extender' => $baseDir . '/lib/Utils/Template_Extender.php',
    122     'Oblak\\WP\\Admin_Notice_Manager' => $vendorDir . '/oblak/admin-notice-manager/src/Admin_Notice_Manager.php',
    123123    'Oblak\\WP\\Base_Plugin_Installer' => $vendorDir . '/oblak/wp-plugin-installer/src/Base_Plugin_Installer.php',
    124124    'Oblak\\WP\\Update_Callback_Handler' => $vendorDir . '/oblak/wp-plugin-installer/src/Update_Callback_Handler.php',
     
    126126    'Psr\\Container\\ContainerInterface' => $vendorDir . '/psr/container/src/ContainerInterface.php',
    127127    'Psr\\Container\\NotFoundExceptionInterface' => $vendorDir . '/psr/container/src/NotFoundExceptionInterface.php',
     128    'ReturnTypeWillChange' => $vendorDir . '/symfony/polyfill-php81/Resources/stubs/ReturnTypeWillChange.php',
     129    'Symfony\\Polyfill\\Php81\\Php81' => $vendorDir . '/symfony/polyfill-php81/Php81.php',
    128130    'WP_Filesystem_Streaming' => $vendorDir . '/x-wp/helper-classes/WP/Filesystem_Streaming.php',
    129131    'XWC\\Admin\\Settings_Page_Base' => $vendorDir . '/x-wp/helper-woocommerce/Admin/Settings_Page_Base.php',
     
    132134    'XWC\\Template\\Customizer_Base' => $vendorDir . '/x-wp/wc-template-customizer/src/Customizer_Base.php',
    133135    'XWC\\Traits\\Settings_API_Methods' => $vendorDir . '/x-wp/helper-woocommerce/Traits/Settings_API_Methods.php',
     136    'XWP\\ANM\\Notice_Manager' => $vendorDir . '/x-wp/admin-notice-manager/src/Notice_Manager.php',
     137    'XWP\\ANM\\Notice_Repository' => $vendorDir . '/x-wp/admin-notice-manager/src/Notice_Repository.php',
    134138    'XWP\\DI\\App_Builder' => $vendorDir . '/x-wp/di/src/App_Builder.php',
    135139    'XWP\\DI\\App_Factory' => $vendorDir . '/x-wp/di/src/App_Factory.php',
     
    141145    'XWP\\DI\\Decorators\\Hook' => $vendorDir . '/x-wp/di/src/Decorators/Hook.php',
    142146    'XWP\\DI\\Decorators\\Module' => $vendorDir . '/x-wp/di/src/Decorators/Module.php',
     147    'XWP\\DI\\Decorators\\REST_Handler' => $vendorDir . '/x-wp/di/src/Decorators/REST_Handler.php',
     148    'XWP\\DI\\Decorators\\REST_Route' => $vendorDir . '/x-wp/di/src/Decorators/REST_Route.php',
    143149    'XWP\\DI\\Handler_Factory' => $vendorDir . '/x-wp/di/src/Handler_Factory.php',
    144150    'XWP\\DI\\Hook_Context' => $vendorDir . '/x-wp/di/src/Hook_Context.php',
     
    172178    'XWP\\Helper\\Traits\\Singleton_Ex' => $vendorDir . '/x-wp/helper-traits/Singleton_Ex.php',
    173179    'XWP\\Helper\\Traits\\View_Loader' => $vendorDir . '/x-wp/helper-traits/View_Loader.php',
     180    'XWP_Admin_Notice' => $vendorDir . '/x-wp/admin-notice-manager/src/Core/Notice.php',
    174181    'XWP_Asset_Bundle' => $vendorDir . '/x-wp/asset-loader/src/Core/Asset_Bundle.php',
    175182    'XWP_Asset_Loader' => $vendorDir . '/x-wp/asset-loader/src/Core/Asset_Loader.php',
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/composer/autoload_files.php

    r3170400 r3181790  
    77
    88return array(
    9     '6c427d7d289e1cfc9c7756e71133bee6' => $vendorDir . '/x-wp/helper-functions/xwp-helper-fns.php',
     9    'e7e6bab1ed2be1042591496e1ad3e230' => $vendorDir . '/x-wp/helper-functions/xwp-helper-fns-arr.php',
    1010    '6f4d42339b919aad008d719d6274512f' => $vendorDir . '/x-wp/helper-functions/xwp-helper-fns-num.php',
    1111    'eac005e7ae06387970897430e20a14f8' => $vendorDir . '/x-wp/helper-functions/xwp-helper-fns-req.php',
     12    '6c427d7d289e1cfc9c7756e71133bee6' => $vendorDir . '/x-wp/helper-functions/xwp-helper-fns.php',
    1213    'b33e3d135e5d9e47d845c576147bda89' => $vendorDir . '/php-di/php-di/src/functions.php',
     14    '23c18046f52bef3eea034657bafda50f' => $vendorDir . '/symfony/polyfill-php81/bootstrap.php',
     15    'c4eb3dd9806877a728c0b0fecfd8a0a8' => $vendorDir . '/x-wp/admin-notice-manager/src/Functions/xwp-anm-fns.php',
     16    'fc42141d84284e25c97732976f63c9e2' => $vendorDir . '/x-wp/admin-notice-manager/src/Functions/xwp-anm-init.php',
    1317    '601305a3774ec67d18e3b43f7ff1eba8' => $vendorDir . '/oblak/serbian-validators/src/serbian-validator-utils.php',
    1418    'bbaf26909e2f3126d0f4bb53f73f87d1' => $vendorDir . '/oblak/serbian-validators/src/validate-jmbg.php',
     
    2125    '289d5db207f260edee5d940f2b0874b1' => $vendorDir . '/x-wp/di/src/Functions/xwp-di-helper-fns.php',
    2226    '7442b89bc178a54ca68a1f7be9a62dd1' => $baseDir . '/lib/Functions/wcsrb-address-field-fns.php',
    23     'f45becae259e3085ac94c414354b9e11' => $baseDir . '/lib/Functions/wcsrb-core.php',
    2427    '2cbbb54dca44ace1c636c9aedd6c2704' => $baseDir . '/lib/Functions/wcsrb-helpers.php',
    2528    '230a030de422f339e1c51f92a5d8d054' => $baseDir . '/lib/Functions/wcsrb-payment-slip.php',
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/composer/autoload_psr4.php

    r3167131 r3181790  
    1414    'XWP\\Dependency\\' => array($vendorDir . '/x-wp/asset-loader/src'),
    1515    'XWP\\DI\\' => array($vendorDir . '/x-wp/di/src'),
     16    'XWP\\ANM\\' => array($vendorDir . '/x-wp/admin-notice-manager/src'),
    1617    'XWC\\Template\\' => array($vendorDir . '/x-wp/wc-template-customizer/src'),
    1718    'XWC\\' => array($vendorDir . '/x-wp/helper-woocommerce'),
     19    'Symfony\\Polyfill\\Php81\\' => array($vendorDir . '/symfony/polyfill-php81'),
    1820    'Psr\\Container\\' => array($vendorDir . '/psr/container/src'),
    19     'Oblak\\WP\\' => array($vendorDir . '/oblak/admin-notice-manager/src', $vendorDir . '/oblak/wp-plugin-installer/src'),
     21    'Oblak\\WP\\' => array($vendorDir . '/oblak/wp-plugin-installer/src'),
    2022    'Oblak\\WCSRB\\' => array($baseDir . '/lib'),
    2123    'Laravel\\SerializableClosure\\' => array($vendorDir . '/laravel/serializable-closure/src'),
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/composer/autoload_real.php

    r3167131 r3181790  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitf15f7664b060de4a95ba0e02111b557f
     5class ComposerAutoloaderInit70816f8d2f2f8cd20b8d4badcf146258
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInitf15f7664b060de4a95ba0e02111b557f', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit70816f8d2f2f8cd20b8d4badcf146258', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInitf15f7664b060de4a95ba0e02111b557f', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit70816f8d2f2f8cd20b8d4badcf146258', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInitf15f7664b060de4a95ba0e02111b557f::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit70816f8d2f2f8cd20b8d4badcf146258::getInitializer($loader));
    3333
    3434        $loader->setClassMapAuthoritative(true);
    3535        $loader->register(true);
    3636
    37         $filesToLoad = \Composer\Autoload\ComposerStaticInitf15f7664b060de4a95ba0e02111b557f::$files;
     37        $filesToLoad = \Composer\Autoload\ComposerStaticInit70816f8d2f2f8cd20b8d4badcf146258::$files;
    3838        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3939            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/composer/autoload_static.php

    r3170400 r3181790  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitf15f7664b060de4a95ba0e02111b557f
     7class ComposerStaticInit70816f8d2f2f8cd20b8d4badcf146258
    88{
    99    public static $files = array (
    10         '6c427d7d289e1cfc9c7756e71133bee6' => __DIR__ . '/..' . '/x-wp/helper-functions/xwp-helper-fns.php',
     10        'e7e6bab1ed2be1042591496e1ad3e230' => __DIR__ . '/..' . '/x-wp/helper-functions/xwp-helper-fns-arr.php',
    1111        '6f4d42339b919aad008d719d6274512f' => __DIR__ . '/..' . '/x-wp/helper-functions/xwp-helper-fns-num.php',
    1212        'eac005e7ae06387970897430e20a14f8' => __DIR__ . '/..' . '/x-wp/helper-functions/xwp-helper-fns-req.php',
     13        '6c427d7d289e1cfc9c7756e71133bee6' => __DIR__ . '/..' . '/x-wp/helper-functions/xwp-helper-fns.php',
    1314        'b33e3d135e5d9e47d845c576147bda89' => __DIR__ . '/..' . '/php-di/php-di/src/functions.php',
     15        '23c18046f52bef3eea034657bafda50f' => __DIR__ . '/..' . '/symfony/polyfill-php81/bootstrap.php',
     16        'c4eb3dd9806877a728c0b0fecfd8a0a8' => __DIR__ . '/..' . '/x-wp/admin-notice-manager/src/Functions/xwp-anm-fns.php',
     17        'fc42141d84284e25c97732976f63c9e2' => __DIR__ . '/..' . '/x-wp/admin-notice-manager/src/Functions/xwp-anm-init.php',
    1418        '601305a3774ec67d18e3b43f7ff1eba8' => __DIR__ . '/..' . '/oblak/serbian-validators/src/serbian-validator-utils.php',
    1519        'bbaf26909e2f3126d0f4bb53f73f87d1' => __DIR__ . '/..' . '/oblak/serbian-validators/src/validate-jmbg.php',
     
    2226        '289d5db207f260edee5d940f2b0874b1' => __DIR__ . '/..' . '/x-wp/di/src/Functions/xwp-di-helper-fns.php',
    2327        '7442b89bc178a54ca68a1f7be9a62dd1' => __DIR__ . '/../..' . '/lib/Functions/wcsrb-address-field-fns.php',
    24         'f45becae259e3085ac94c414354b9e11' => __DIR__ . '/../..' . '/lib/Functions/wcsrb-core.php',
    2528        '2cbbb54dca44ace1c636c9aedd6c2704' => __DIR__ . '/../..' . '/lib/Functions/wcsrb-helpers.php',
    2629        '230a030de422f339e1c51f92a5d8d054' => __DIR__ . '/../..' . '/lib/Functions/wcsrb-payment-slip.php',
     
    4144            'XWP\\Dependency\\' => 15,
    4245            'XWP\\DI\\' => 7,
     46            'XWP\\ANM\\' => 8,
    4347            'XWC\\Template\\' => 13,
    4448            'XWC\\' => 4,
    4549        ),
     50        'S' =>
     51        array (
     52            'Symfony\\Polyfill\\Php81\\' => 23,
     53        ),
    4654        'P' =>
    4755        array (
     
    100108            0 => __DIR__ . '/..' . '/x-wp/di/src',
    101109        ),
     110        'XWP\\ANM\\' =>
     111        array (
     112            0 => __DIR__ . '/..' . '/x-wp/admin-notice-manager/src',
     113        ),
    102114        'XWC\\Template\\' =>
    103115        array (
     
    108120            0 => __DIR__ . '/..' . '/x-wp/helper-woocommerce',
    109121        ),
     122        'Symfony\\Polyfill\\Php81\\' =>
     123        array (
     124            0 => __DIR__ . '/..' . '/symfony/polyfill-php81',
     125        ),
    110126        'Psr\\Container\\' =>
    111127        array (
     
    114130        'Oblak\\WP\\' =>
    115131        array (
    116             0 => __DIR__ . '/..' . '/oblak/admin-notice-manager/src',
    117             1 => __DIR__ . '/..' . '/oblak/wp-plugin-installer/src',
     132            0 => __DIR__ . '/..' . '/oblak/wp-plugin-installer/src',
    118133        ),
    119134        'Oblak\\WCSRB\\' =>
     
    146161        'Automattic\\Jetpack\\Autoloader\\ManifestGenerator' => __DIR__ . '/..' . '/automattic/jetpack-autoloader/src/ManifestGenerator.php',
    147162        'Automattic\\Jetpack\\Constants' => __DIR__ . '/..' . '/automattic/jetpack-constants/src/class-constants.php',
     163        'CURLStringFile' => __DIR__ . '/..' . '/symfony/polyfill-php81/Resources/stubs/CURLStringFile.php',
    148164        'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
    149165        'DI\\Attribute\\Inject' => __DIR__ . '/..' . '/php-di/php-di/src/Attribute/Inject.php',
     
    253269        'Oblak\\WCSRB\\Utils\\Installer' => __DIR__ . '/../..' . '/lib/Utils/Installer.php',
    254270        'Oblak\\WCSRB\\Utils\\Template_Extender' => __DIR__ . '/../..' . '/lib/Utils/Template_Extender.php',
    255         'Oblak\\WP\\Admin_Notice_Manager' => __DIR__ . '/..' . '/oblak/admin-notice-manager/src/Admin_Notice_Manager.php',
    256271        'Oblak\\WP\\Base_Plugin_Installer' => __DIR__ . '/..' . '/oblak/wp-plugin-installer/src/Base_Plugin_Installer.php',
    257272        'Oblak\\WP\\Update_Callback_Handler' => __DIR__ . '/..' . '/oblak/wp-plugin-installer/src/Update_Callback_Handler.php',
     
    259274        'Psr\\Container\\ContainerInterface' => __DIR__ . '/..' . '/psr/container/src/ContainerInterface.php',
    260275        'Psr\\Container\\NotFoundExceptionInterface' => __DIR__ . '/..' . '/psr/container/src/NotFoundExceptionInterface.php',
     276        'ReturnTypeWillChange' => __DIR__ . '/..' . '/symfony/polyfill-php81/Resources/stubs/ReturnTypeWillChange.php',
     277        'Symfony\\Polyfill\\Php81\\Php81' => __DIR__ . '/..' . '/symfony/polyfill-php81/Php81.php',
    261278        'WP_Filesystem_Streaming' => __DIR__ . '/..' . '/x-wp/helper-classes/WP/Filesystem_Streaming.php',
    262279        'XWC\\Admin\\Settings_Page_Base' => __DIR__ . '/..' . '/x-wp/helper-woocommerce/Admin/Settings_Page_Base.php',
     
    265282        'XWC\\Template\\Customizer_Base' => __DIR__ . '/..' . '/x-wp/wc-template-customizer/src/Customizer_Base.php',
    266283        'XWC\\Traits\\Settings_API_Methods' => __DIR__ . '/..' . '/x-wp/helper-woocommerce/Traits/Settings_API_Methods.php',
     284        'XWP\\ANM\\Notice_Manager' => __DIR__ . '/..' . '/x-wp/admin-notice-manager/src/Notice_Manager.php',
     285        'XWP\\ANM\\Notice_Repository' => __DIR__ . '/..' . '/x-wp/admin-notice-manager/src/Notice_Repository.php',
    267286        'XWP\\DI\\App_Builder' => __DIR__ . '/..' . '/x-wp/di/src/App_Builder.php',
    268287        'XWP\\DI\\App_Factory' => __DIR__ . '/..' . '/x-wp/di/src/App_Factory.php',
     
    274293        'XWP\\DI\\Decorators\\Hook' => __DIR__ . '/..' . '/x-wp/di/src/Decorators/Hook.php',
    275294        'XWP\\DI\\Decorators\\Module' => __DIR__ . '/..' . '/x-wp/di/src/Decorators/Module.php',
     295        'XWP\\DI\\Decorators\\REST_Handler' => __DIR__ . '/..' . '/x-wp/di/src/Decorators/REST_Handler.php',
     296        'XWP\\DI\\Decorators\\REST_Route' => __DIR__ . '/..' . '/x-wp/di/src/Decorators/REST_Route.php',
    276297        'XWP\\DI\\Handler_Factory' => __DIR__ . '/..' . '/x-wp/di/src/Handler_Factory.php',
    277298        'XWP\\DI\\Hook_Context' => __DIR__ . '/..' . '/x-wp/di/src/Hook_Context.php',
     
    305326        'XWP\\Helper\\Traits\\Singleton_Ex' => __DIR__ . '/..' . '/x-wp/helper-traits/Singleton_Ex.php',
    306327        'XWP\\Helper\\Traits\\View_Loader' => __DIR__ . '/..' . '/x-wp/helper-traits/View_Loader.php',
     328        'XWP_Admin_Notice' => __DIR__ . '/..' . '/x-wp/admin-notice-manager/src/Core/Notice.php',
    307329        'XWP_Asset_Bundle' => __DIR__ . '/..' . '/x-wp/asset-loader/src/Core/Asset_Bundle.php',
    308330        'XWP_Asset_Loader' => __DIR__ . '/..' . '/x-wp/asset-loader/src/Core/Asset_Loader.php',
     
    377399    {
    378400        return \Closure::bind(function () use ($loader) {
    379             $loader->prefixLengthsPsr4 = ComposerStaticInitf15f7664b060de4a95ba0e02111b557f::$prefixLengthsPsr4;
    380             $loader->prefixDirsPsr4 = ComposerStaticInitf15f7664b060de4a95ba0e02111b557f::$prefixDirsPsr4;
    381             $loader->classMap = ComposerStaticInitf15f7664b060de4a95ba0e02111b557f::$classMap;
     401            $loader->prefixLengthsPsr4 = ComposerStaticInit70816f8d2f2f8cd20b8d4badcf146258::$prefixLengthsPsr4;
     402            $loader->prefixDirsPsr4 = ComposerStaticInit70816f8d2f2f8cd20b8d4badcf146258::$prefixDirsPsr4;
     403            $loader->classMap = ComposerStaticInit70816f8d2f2f8cd20b8d4badcf146258::$classMap;
    382404
    383405        }, null, ClassLoader::class);
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/composer/installed.json

    r3170400 r3181790  
    33        {
    44            "name": "automattic/jetpack-autoloader",
    5             "version": "v3.1.2",
    6             "version_normalized": "3.1.2.0",
     5            "version": "v3.1.3",
     6            "version_normalized": "3.1.3.0",
    77            "source": {
    88                "type": "git",
    99                "url": "https://github.com/Automattic/jetpack-autoloader.git",
    10                 "reference": "c111020cac7c6a830af6f6827c175e3c76a60f75"
    11             },
    12             "dist": {
    13                 "type": "zip",
    14                 "url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/c111020cac7c6a830af6f6827c175e3c76a60f75",
    15                 "reference": "c111020cac7c6a830af6f6827c175e3c76a60f75",
     10                "reference": "e7e49a4e2f16cb2dfd3e58c478499a60d7d51839"
     11            },
     12            "dist": {
     13                "type": "zip",
     14                "url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/e7e49a4e2f16cb2dfd3e58c478499a60d7d51839",
     15                "reference": "e7e49a4e2f16cb2dfd3e58c478499a60d7d51839",
    1616                "shasum": ""
    1717            },
     
    2121            },
    2222            "require-dev": {
    23                 "automattic/jetpack-changelogger": "^4.2.6",
     23                "automattic/jetpack-changelogger": "^4.2.8",
    2424                "composer/composer": "^1.1 || ^2.0",
    2525                "yoast/phpunit-polyfills": "^1.1.1"
    2626            },
    27             "time": "2024-10-15T22:10:35+00:00",
     27            "time": "2024-11-04T09:23:56+00:00",
    2828            "type": "composer-plugin",
    2929            "extra": {
     
    6464            ],
    6565            "support": {
    66                 "source": "https://github.com/Automattic/jetpack-autoloader/tree/v3.1.2"
     66                "source": "https://github.com/Automattic/jetpack-autoloader/tree/v3.1.3"
    6767            },
    6868            "install-path": "../automattic/jetpack-autoloader"
     
    7070        {
    7171            "name": "automattic/jetpack-constants",
    72             "version": "v2.0.4",
    73             "version_normalized": "2.0.4.0",
     72            "version": "v2.0.5",
     73            "version_normalized": "2.0.5.0",
    7474            "source": {
    7575                "type": "git",
    7676                "url": "https://github.com/Automattic/jetpack-constants.git",
    77                 "reference": "f6958c313a34c5e92171c45a57d9dc978e5975ed"
    78             },
    79             "dist": {
    80                 "type": "zip",
    81                 "url": "https://api.github.com/repos/Automattic/jetpack-constants/zipball/f6958c313a34c5e92171c45a57d9dc978e5975ed",
    82                 "reference": "f6958c313a34c5e92171c45a57d9dc978e5975ed",
     77                "reference": "0c2644d642b06ae2a31c561f5bfc6f74a4abc8f1"
     78            },
     79            "dist": {
     80                "type": "zip",
     81                "url": "https://api.github.com/repos/Automattic/jetpack-constants/zipball/0c2644d642b06ae2a31c561f5bfc6f74a4abc8f1",
     82                "reference": "0c2644d642b06ae2a31c561f5bfc6f74a4abc8f1",
    8383                "shasum": ""
    8484            },
     
    8787            },
    8888            "require-dev": {
    89                 "automattic/jetpack-changelogger": "^4.2.6",
     89                "automattic/jetpack-changelogger": "^4.2.8",
    9090                "brain/monkey": "2.6.1",
    9191                "yoast/phpunit-polyfills": "^1.1.1"
     
    9494                "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
    9595            },
    96             "time": "2024-08-23T14:28:14+00:00",
     96            "time": "2024-11-04T09:23:35+00:00",
    9797            "type": "jetpack-library",
    9898            "extra": {
     
    118118            "description": "A wrapper for defining constants in a more testable way.",
    119119            "support": {
    120                 "source": "https://github.com/Automattic/jetpack-constants/tree/v2.0.4"
     120                "source": "https://github.com/Automattic/jetpack-constants/tree/v2.0.5"
    121121            },
    122122            "install-path": "../automattic/jetpack-constants"
     
    354354        },
    355355        {
    356             "name": "oblak/admin-notice-manager",
    357             "version": "2.0.0",
    358             "version_normalized": "2.0.0.0",
    359             "source": {
    360                 "type": "git",
    361                 "url": "https://github.com/oblakstudio/admin-notice-manager.git",
    362                 "reference": "53a32b62d9799fd486adf0bb09aeb5d80a7a214d"
    363             },
    364             "dist": {
    365                 "type": "zip",
    366                 "url": "https://api.github.com/repos/oblakstudio/admin-notice-manager/zipball/53a32b62d9799fd486adf0bb09aeb5d80a7a214d",
    367                 "reference": "53a32b62d9799fd486adf0bb09aeb5d80a7a214d",
    368                 "shasum": ""
    369             },
    370             "require": {
    371                 "php": ">=7.3"
    372             },
    373             "require-dev": {
    374                 "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
    375                 "phpcompatibility/phpcompatibility-wp": "*",
    376                 "squizlabs/php_codesniffer": "3.*",
    377                 "wp-coding-standards/wpcs": "*"
    378             },
    379             "time": "2022-10-23T15:30:02+00:00",
    380             "type": "library",
    381             "installation-source": "dist",
    382             "autoload": {
    383                 "psr-4": {
    384                     "Oblak\\WP\\": "src/"
    385                 }
    386             },
    387             "notification-url": "https://packagist.org/downloads/",
    388             "license": [
    389                 "GPL-2.0-only"
    390             ],
    391             "description": "Admin Notice manager for WordPress Admin",
    392             "support": {
    393                 "issues": "https://github.com/oblakstudio/admin-notice-manager/issues",
    394                 "source": "https://github.com/oblakstudio/admin-notice-manager/tree/v2.0.0"
    395             },
    396             "install-path": "../oblak/admin-notice-manager"
    397         },
    398         {
    399356            "name": "oblak/serbian-validators",
    400357            "version": "1.1.1",
     
    448405        {
    449406            "name": "oblak/wp-plugin-installer",
    450             "version": "v2.1.3",
    451             "version_normalized": "2.1.3.0",
     407            "version": "v2.1.4",
     408            "version_normalized": "2.1.4.0",
    452409            "source": {
    453410                "type": "git",
    454411                "url": "https://github.com/oblakstudio/wp-plugin-installer.git",
    455                 "reference": "9a8726f5e659dd81e84ff8408b267829f8fa695a"
    456             },
    457             "dist": {
    458                 "type": "zip",
    459                 "url": "https://api.github.com/repos/oblakstudio/wp-plugin-installer/zipball/9a8726f5e659dd81e84ff8408b267829f8fa695a",
    460                 "reference": "9a8726f5e659dd81e84ff8408b267829f8fa695a",
     412                "reference": "e34702944c37cf834fb4ee303039cb66b00b979b"
     413            },
     414            "dist": {
     415                "type": "zip",
     416                "url": "https://api.github.com/repos/oblakstudio/wp-plugin-installer/zipball/e34702944c37cf834fb4ee303039cb66b00b979b",
     417                "reference": "e34702944c37cf834fb4ee303039cb66b00b979b",
    461418                "shasum": ""
    462419            },
    463420            "require": {
    464421                "automattic/jetpack-constants": "^2",
    465                 "oblak/admin-notice-manager": "^2",
    466422                "php": ">= 8.0",
    467                 "woocommerce/action-scheduler": "^3.7"
     423                "woocommerce/action-scheduler": "^3.7",
     424                "x-wp/admin-notice-manager": "^1.0"
    468425            },
    469426            "require-dev": {
    470427                "ergebnis/composer-normalize": "^2.42",
    471                 "oblak/wordpress-coding-standard": "^1"
     428                "oblak/wordpress-coding-standard": "^1",
     429                "wp-cli/wp-cli": "^2.11"
    472430            },
    473431            "suggest": {
    474432                "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
    475433            },
    476             "time": "2024-02-09T21:39:23+00:00",
     434            "time": "2024-11-01T12:02:40+00:00",
    477435            "type": "library",
    478436            "installation-source": "dist",
     
    498456            "support": {
    499457                "issues": "https://github.com/oblakstudio/wp-plugin-installer/issues",
    500                 "source": "https://github.com/oblakstudio/wp-plugin-installer/tree/v2.1.3"
     458                "source": "https://github.com/oblakstudio/wp-plugin-installer/tree/v2.1.4"
    501459            },
    502460            "install-path": "../oblak/wp-plugin-installer"
     
    693651        },
    694652        {
     653            "name": "symfony/polyfill-php81",
     654            "version": "v1.31.0",
     655            "version_normalized": "1.31.0.0",
     656            "source": {
     657                "type": "git",
     658                "url": "https://github.com/symfony/polyfill-php81.git",
     659                "reference": "4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c"
     660            },
     661            "dist": {
     662                "type": "zip",
     663                "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c",
     664                "reference": "4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c",
     665                "shasum": ""
     666            },
     667            "require": {
     668                "php": ">=7.2"
     669            },
     670            "time": "2024-09-09T11:45:10+00:00",
     671            "type": "library",
     672            "extra": {
     673                "thanks": {
     674                    "name": "symfony/polyfill",
     675                    "url": "https://github.com/symfony/polyfill"
     676                }
     677            },
     678            "installation-source": "dist",
     679            "autoload": {
     680                "files": [
     681                    "bootstrap.php"
     682                ],
     683                "psr-4": {
     684                    "Symfony\\Polyfill\\Php81\\": ""
     685                },
     686                "classmap": [
     687                    "Resources/stubs"
     688                ]
     689            },
     690            "notification-url": "https://packagist.org/downloads/",
     691            "license": [
     692                "MIT"
     693            ],
     694            "authors": [
     695                {
     696                    "name": "Nicolas Grekas",
     697                    "email": "p@tchwork.com"
     698                },
     699                {
     700                    "name": "Symfony Community",
     701                    "homepage": "https://symfony.com/contributors"
     702                }
     703            ],
     704            "description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions",
     705            "homepage": "https://symfony.com",
     706            "keywords": [
     707                "compatibility",
     708                "polyfill",
     709                "portable",
     710                "shim"
     711            ],
     712            "support": {
     713                "source": "https://github.com/symfony/polyfill-php81/tree/v1.31.0"
     714            },
     715            "funding": [
     716                {
     717                    "url": "https://symfony.com/sponsor",
     718                    "type": "custom"
     719                },
     720                {
     721                    "url": "https://github.com/fabpot",
     722                    "type": "github"
     723                },
     724                {
     725                    "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
     726                    "type": "tidelift"
     727                }
     728            ],
     729            "install-path": "../symfony/polyfill-php81"
     730        },
     731        {
    695732            "name": "woocommerce/action-scheduler",
    696733            "version": "3.8.2",
     
    739776        },
    740777        {
    741             "name": "x-wp/asset-loader",
    742             "version": "v1.0.0",
    743             "version_normalized": "1.0.0.0",
    744             "source": {
    745                 "type": "git",
    746                 "url": "https://github.com/x-wp/asset-loader.git",
    747                 "reference": "8198e2337bee579fc96a6f09e2c74fd745c98b6f"
    748             },
    749             "dist": {
    750                 "type": "zip",
    751                 "url": "https://api.github.com/repos/x-wp/asset-loader/zipball/8198e2337bee579fc96a6f09e2c74fd745c98b6f",
    752                 "reference": "8198e2337bee579fc96a6f09e2c74fd745c98b6f",
    753                 "shasum": ""
    754             },
    755             "require": {
    756                 "automattic/jetpack-constants": "^2.0",
     778            "name": "x-wp/admin-notice-manager",
     779            "version": "v1.0.1",
     780            "version_normalized": "1.0.1.0",
     781            "source": {
     782                "type": "git",
     783                "url": "https://github.com/x-wp/admin-notice-manager.git",
     784                "reference": "61bfbf90f90117d24af5130bbc80911b1c10f3cc"
     785            },
     786            "dist": {
     787                "type": "zip",
     788                "url": "https://api.github.com/repos/x-wp/admin-notice-manager/zipball/61bfbf90f90117d24af5130bbc80911b1c10f3cc",
     789                "reference": "61bfbf90f90117d24af5130bbc80911b1c10f3cc",
     790                "shasum": ""
     791            },
     792            "require": {
    757793                "php": ">=8.0",
    758                 "x-wp/helper-functions": "^1.9",
    759                 "x-wp/helper-traits": "^1.9"
    760             },
    761             "provide": {
    762                 "x-wp/asset-loader-implementation": "1.0"
     794                "x-wp/helper-functions": "^1.16",
     795                "x-wp/helper-traits": "^1.16"
     796            },
     797            "replace": {
     798                "oblak/admin-notice-manager": "*"
    763799            },
    764800            "require-dev": {
     
    774810                "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
    775811            },
    776             "time": "2024-09-17T12:29:39+00:00",
     812            "time": "2024-11-01T13:09:35+00:00",
     813            "type": "library",
     814            "installation-source": "dist",
     815            "autoload": {
     816                "files": [
     817                    "src/Functions/xwp-anm-fns.php",
     818                    "src/Functions/xwp-anm-init.php"
     819                ],
     820                "psr-4": {
     821                    "XWP\\ANM\\": "src/"
     822                },
     823                "classmap": [
     824                    "src/Core/"
     825                ]
     826            },
     827            "notification-url": "https://packagist.org/downloads/",
     828            "license": [
     829                "GPL-2.0-only"
     830            ],
     831            "authors": [
     832                {
     833                    "name": "Sibin Grasic",
     834                    "email": "i.am@sib.ing"
     835                }
     836            ],
     837            "description": "Simplifies the process of working with admin notices in WordPress.",
     838            "homepage": "https://extended.wp.rs/docs/packages/admin-notice-manager",
     839            "keywords": [
     840                "admin",
     841                "admin notices",
     842                "notices",
     843                "wordpress"
     844            ],
     845            "support": {
     846                "issues": "https://github.com/x-wp/admin-notice-manager/issues",
     847                "source": "https://github.com/x-wp/admin-notice-manager/tree/v1.0.1"
     848            },
     849            "install-path": "../x-wp/admin-notice-manager"
     850        },
     851        {
     852            "name": "x-wp/asset-loader",
     853            "version": "v1.1.1",
     854            "version_normalized": "1.1.1.0",
     855            "source": {
     856                "type": "git",
     857                "url": "https://github.com/x-wp/asset-loader.git",
     858                "reference": "f4a445e27fc913c20ab42ac7467b83514b750794"
     859            },
     860            "dist": {
     861                "type": "zip",
     862                "url": "https://api.github.com/repos/x-wp/asset-loader/zipball/f4a445e27fc913c20ab42ac7467b83514b750794",
     863                "reference": "f4a445e27fc913c20ab42ac7467b83514b750794",
     864                "shasum": ""
     865            },
     866            "require": {
     867                "automattic/jetpack-constants": "^2.0",
     868                "php": ">=8.0",
     869                "x-wp/helper-functions": "^1.18",
     870                "x-wp/helper-traits": "^1.9"
     871            },
     872            "provide": {
     873                "x-wp/asset-loader-implementation": "1.0"
     874            },
     875            "require-dev": {
     876                "oblak/wordpress-coding-standard": "^1",
     877                "php-stubs/wordpress-stubs": "^6.5",
     878                "phpstan/extension-installer": "^1.3",
     879                "phpstan/phpstan": "^1.10",
     880                "phpstan/phpstan-deprecation-rules": "^1.1",
     881                "swissspidy/phpstan-no-private": "^0.2.0",
     882                "szepeviktor/phpstan-wordpress": "^1.3"
     883            },
     884            "suggest": {
     885                "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
     886            },
     887            "time": "2024-11-04T19:51:33+00:00",
    777888            "type": "library",
    778889            "installation-source": "dist",
     
    801912            "support": {
    802913                "issues": "https://github.com/x-wp/asset-loader/issues",
    803                 "source": "https://github.com/x-wp/asset-loader/tree/v1.0.0"
     914                "source": "https://github.com/x-wp/asset-loader/tree/v1.1.1"
    804915            },
    805916            "install-path": "../x-wp/asset-loader"
     
    807918        {
    808919            "name": "x-wp/di",
    809             "version": "v1.0.0-beta.8",
    810             "version_normalized": "1.0.0.0-beta8",
     920            "version": "v1.0.0",
     921            "version_normalized": "1.0.0.0",
    811922            "source": {
    812923                "type": "git",
    813924                "url": "https://github.com/x-wp/di.git",
    814                 "reference": "5c6928fcc9181e3221c87a46f01234f59971a67a"
    815             },
    816             "dist": {
    817                 "type": "zip",
    818                 "url": "https://api.github.com/repos/x-wp/di/zipball/5c6928fcc9181e3221c87a46f01234f59971a67a",
    819                 "reference": "5c6928fcc9181e3221c87a46f01234f59971a67a",
     925                "reference": "3cea33921ef8cf1cab14a1da88ffe43d168bcce1"
     926            },
     927            "dist": {
     928                "type": "zip",
     929                "url": "https://api.github.com/repos/x-wp/di/zipball/3cea33921ef8cf1cab14a1da88ffe43d168bcce1",
     930                "reference": "3cea33921ef8cf1cab14a1da88ffe43d168bcce1",
    820931                "shasum": ""
    821932            },
     
    824935                "php": ">=8.0",
    825936                "php-di/php-di": "^7",
     937                "symfony/polyfill-php81": "^1.31",
    826938                "x-wp/helper-classes": "^1.13",
    827939                "x-wp/helper-functions": "^1.13"
    828940            },
     941            "conflict": {
     942                "oblak/wp-hook-di": "*"
     943            },
    829944            "provide": {
     945                "psr/container-implementation": "^1.0",
    830946                "x-wp/di-implementation": "^1.0"
     947            },
     948            "replace": {
     949                "x-wp/hook-invoker": "*"
    831950            },
    832951            "require-dev": {
     
    842961                "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
    843962            },
    844             "time": "2024-10-14T06:17:14+00:00",
     963            "time": "2024-11-03T17:43:29+00:00",
    845964            "type": "library",
    846965            "installation-source": "dist",
     
    875994            "support": {
    876995                "issues": "https://github.com/x-wp/hook-manager/issues",
    877                 "source": "https://github.com/x-wp/di/tree/v1.0.0-beta.8"
     996                "source": "https://github.com/x-wp/di/tree/v1.0.0"
    878997            },
    879998            "install-path": "../x-wp/di"
     
    8811000        {
    8821001            "name": "x-wp/helper-classes",
    883             "version": "v1.15.1",
    884             "version_normalized": "1.15.1.0",
     1002            "version": "v1.18.1",
     1003            "version_normalized": "1.18.1.0",
    8851004            "source": {
    8861005                "type": "git",
     
    9341053            "support": {
    9351054                "issues": "https://github.com/x-wp/helper-classes/issues",
    936                 "source": "https://github.com/x-wp/helper-classes/tree/v1.15.1"
     1055                "source": "https://github.com/x-wp/helper-classes/tree/v1.18.1"
    9371056            },
    9381057            "install-path": "../x-wp/helper-classes"
     
    9401059        {
    9411060            "name": "x-wp/helper-functions",
    942             "version": "v1.15.1",
    943             "version_normalized": "1.15.1.0",
     1061            "version": "v1.18.1",
     1062            "version_normalized": "1.18.1.0",
    9441063            "source": {
    9451064                "type": "git",
    9461065                "url": "https://github.com/x-wp/helper-functions.git",
    947                 "reference": "4a22f9db18cfe7a93a3cddaff5b7f83a9e3abef1"
    948             },
    949             "dist": {
    950                 "type": "zip",
    951                 "url": "https://api.github.com/repos/x-wp/helper-functions/zipball/4a22f9db18cfe7a93a3cddaff5b7f83a9e3abef1",
    952                 "reference": "4a22f9db18cfe7a93a3cddaff5b7f83a9e3abef1",
     1066                "reference": "edd258d0b2ad90a78893ffcabf6626cebf56a281"
     1067            },
     1068            "dist": {
     1069                "type": "zip",
     1070                "url": "https://api.github.com/repos/x-wp/helper-functions/zipball/edd258d0b2ad90a78893ffcabf6626cebf56a281",
     1071                "reference": "edd258d0b2ad90a78893ffcabf6626cebf56a281",
    9531072                "shasum": ""
    9541073            },
     
    9591078                "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
    9601079            },
    961             "time": "2024-10-11T21:23:12+00:00",
     1080            "time": "2024-11-04T00:58:34+00:00",
    9621081            "type": "library",
    9631082            "installation-source": "dist",
    9641083            "autoload": {
    9651084                "files": [
    966                     "xwp-helper-fns.php",
     1085                    "xwp-helper-fns-arr.php",
    9671086                    "xwp-helper-fns-num.php",
    968                     "xwp-helper-fns-req.php"
     1087                    "xwp-helper-fns-req.php",
     1088                    "xwp-helper-fns.php"
    9691089                ],
    9701090                "psr-4": {
     
    9941114            "support": {
    9951115                "issues": "https://github.com/x-wp/helper-functions/issues",
    996                 "source": "https://github.com/x-wp/helper-functions/tree/v1.15.1"
     1116                "source": "https://github.com/x-wp/helper-functions/tree/v1.18.1"
    9971117            },
    9981118            "install-path": "../x-wp/helper-functions"
     
    10001120        {
    10011121            "name": "x-wp/helper-traits",
    1002             "version": "v1.15.1",
    1003             "version_normalized": "1.15.1.0",
     1122            "version": "v1.18.1",
     1123            "version_normalized": "1.18.1.0",
    10041124            "source": {
    10051125                "type": "git",
     
    10491169            "support": {
    10501170                "issues": "https://github.com/x-wp/helper-traits/issues",
    1051                 "source": "https://github.com/x-wp/helper-traits/tree/v1.15.1"
     1171                "source": "https://github.com/x-wp/helper-traits/tree/v1.18.1"
    10521172            },
    10531173            "install-path": "../x-wp/helper-traits"
     
    10551175        {
    10561176            "name": "x-wp/helper-woocommerce",
    1057             "version": "v1.15.1",
    1058             "version_normalized": "1.15.1.0",
     1177            "version": "v1.18.1",
     1178            "version_normalized": "1.18.1.0",
    10591179            "source": {
    10601180                "type": "git",
    10611181                "url": "https://github.com/x-wp/helper-woocommerce.git",
    1062                 "reference": "b8c373d14fba2757f094ed56ae8649acef85f7ae"
    1063             },
    1064             "dist": {
    1065                 "type": "zip",
    1066                 "url": "https://api.github.com/repos/x-wp/helper-woocommerce/zipball/b8c373d14fba2757f094ed56ae8649acef85f7ae",
    1067                 "reference": "b8c373d14fba2757f094ed56ae8649acef85f7ae",
     1182                "reference": "8429f9ed7612fe2e09862548aba8d09b1324177f"
     1183            },
     1184            "dist": {
     1185                "type": "zip",
     1186                "url": "https://api.github.com/repos/x-wp/helper-woocommerce/zipball/8429f9ed7612fe2e09862548aba8d09b1324177f",
     1187                "reference": "8429f9ed7612fe2e09862548aba8d09b1324177f",
    10681188                "shasum": ""
    10691189            },
     
    10751195                "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
    10761196            },
    1077             "time": "2024-10-11T21:23:12+00:00",
     1197            "time": "2024-10-17T20:47:30+00:00",
    10781198            "type": "library",
    10791199            "installation-source": "dist",
     
    11031223            "support": {
    11041224                "issues": "https://github.com/x-wp/helper-woocommerce/issues",
    1105                 "source": "https://github.com/x-wp/helper-woocommerce/tree/v1.15.1"
     1225                "source": "https://github.com/x-wp/helper-woocommerce/tree/v1.18.1"
    11061226            },
    11071227            "install-path": "../x-wp/helper-woocommerce"
     
    11091229        {
    11101230            "name": "x-wp/wc-template-customizer",
    1111             "version": "v1.0.0",
    1112             "version_normalized": "1.0.0.0",
     1231            "version": "v1.0.2",
     1232            "version_normalized": "1.0.2.0",
    11131233            "source": {
    11141234                "type": "git",
    11151235                "url": "https://github.com/x-wp/wc-template-customizer.git",
    1116                 "reference": "cb4ce03bfd900908b4dd06a3bd47b960e2bc4706"
    1117             },
    1118             "dist": {
    1119                 "type": "zip",
    1120                 "url": "https://api.github.com/repos/x-wp/wc-template-customizer/zipball/cb4ce03bfd900908b4dd06a3bd47b960e2bc4706",
    1121                 "reference": "cb4ce03bfd900908b4dd06a3bd47b960e2bc4706",
     1236                "reference": "b38df4993b8fbefe0af0f27f44be4bb853418465"
     1237            },
     1238            "dist": {
     1239                "type": "zip",
     1240                "url": "https://api.github.com/repos/x-wp/wc-template-customizer/zipball/b38df4993b8fbefe0af0f27f44be4bb853418465",
     1241                "reference": "b38df4993b8fbefe0af0f27f44be4bb853418465",
    11221242                "shasum": ""
    11231243            },
     
    11391259                "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
    11401260            },
    1141             "time": "2024-07-02T19:27:36+00:00",
     1261            "time": "2024-10-20T17:39:43+00:00",
    11421262            "type": "library",
    11431263            "installation-source": "dist",
     
    11591279            "support": {
    11601280                "issues": "https://github.com/x-wp/wc-template-customizer/issues",
    1161                 "source": "https://github.com/x-wp/wc-template-customizer/tree/v1.0.0"
     1281                "source": "https://github.com/x-wp/wc-template-customizer/tree/v1.0.2"
    11621282            },
    11631283            "install-path": "../x-wp/wc-template-customizer"
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/composer/installed.php

    r3170400 r3181790  
    2121        ),
    2222        'automattic/jetpack-autoloader' => array(
    23             'pretty_version' => 'v3.1.2',
    24             'version' => '3.1.2.0',
    25             'reference' => 'c111020cac7c6a830af6f6827c175e3c76a60f75',
     23            'pretty_version' => 'v3.1.3',
     24            'version' => '3.1.3.0',
     25            'reference' => 'e7e49a4e2f16cb2dfd3e58c478499a60d7d51839',
    2626            'type' => 'composer-plugin',
    2727            'install_path' => __DIR__ . '/../automattic/jetpack-autoloader',
     
    3030        ),
    3131        'automattic/jetpack-constants' => array(
    32             'pretty_version' => 'v2.0.4',
    33             'version' => '2.0.4.0',
    34             'reference' => 'f6958c313a34c5e92171c45a57d9dc978e5975ed',
     32            'pretty_version' => 'v2.0.5',
     33            'version' => '2.0.5.0',
     34            'reference' => '0c2644d642b06ae2a31c561f5bfc6f74a4abc8f1',
    3535            'type' => 'jetpack-library',
    3636            'install_path' => __DIR__ . '/../automattic/jetpack-constants',
     
    6666        ),
    6767        'oblak/admin-notice-manager' => array(
    68             'pretty_version' => '2.0.0',
    69             'version' => '2.0.0.0',
    70             'reference' => '53a32b62d9799fd486adf0bb09aeb5d80a7a214d',
    71             'type' => 'library',
    72             'install_path' => __DIR__ . '/../oblak/admin-notice-manager',
    73             'aliases' => array(),
    74             'dev_requirement' => false,
     68            'dev_requirement' => false,
     69            'replaced' => array(
     70                0 => '*',
     71            ),
    7572        ),
    7673        'oblak/serbian-validators' => array(
     
    8481        ),
    8582        'oblak/wp-plugin-installer' => array(
    86             'pretty_version' => 'v2.1.3',
    87             'version' => '2.1.3.0',
    88             'reference' => '9a8726f5e659dd81e84ff8408b267829f8fa695a',
     83            'pretty_version' => 'v2.1.4',
     84            'version' => '2.1.4.0',
     85            'reference' => 'e34702944c37cf834fb4ee303039cb66b00b979b',
    8986            'type' => 'library',
    9087            'install_path' => __DIR__ . '/../oblak/wp-plugin-installer',
     
    124121                0 => '^1.0',
    125122            ),
     123        ),
     124        'symfony/polyfill-php81' => array(
     125            'pretty_version' => 'v1.31.0',
     126            'version' => '1.31.0.0',
     127            'reference' => '4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c',
     128            'type' => 'library',
     129            'install_path' => __DIR__ . '/../symfony/polyfill-php81',
     130            'aliases' => array(),
     131            'dev_requirement' => false,
    126132        ),
    127133        'woocommerce/action-scheduler' => array(
     
    134140            'dev_requirement' => false,
    135141        ),
     142        'x-wp/admin-notice-manager' => array(
     143            'pretty_version' => 'v1.0.1',
     144            'version' => '1.0.1.0',
     145            'reference' => '61bfbf90f90117d24af5130bbc80911b1c10f3cc',
     146            'type' => 'library',
     147            'install_path' => __DIR__ . '/../x-wp/admin-notice-manager',
     148            'aliases' => array(),
     149            'dev_requirement' => false,
     150        ),
    136151        'x-wp/asset-loader' => array(
     152            'pretty_version' => 'v1.1.1',
     153            'version' => '1.1.1.0',
     154            'reference' => 'f4a445e27fc913c20ab42ac7467b83514b750794',
     155            'type' => 'library',
     156            'install_path' => __DIR__ . '/../x-wp/asset-loader',
     157            'aliases' => array(),
     158            'dev_requirement' => false,
     159        ),
     160        'x-wp/asset-loader-implementation' => array(
     161            'dev_requirement' => false,
     162            'provided' => array(
     163                0 => '1.0',
     164            ),
     165        ),
     166        'x-wp/di' => array(
    137167            'pretty_version' => 'v1.0.0',
    138168            'version' => '1.0.0.0',
    139             'reference' => '8198e2337bee579fc96a6f09e2c74fd745c98b6f',
    140             'type' => 'library',
    141             'install_path' => __DIR__ . '/../x-wp/asset-loader',
    142             'aliases' => array(),
    143             'dev_requirement' => false,
    144         ),
    145         'x-wp/asset-loader-implementation' => array(
    146             'dev_requirement' => false,
    147             'provided' => array(
    148                 0 => '1.0',
    149             ),
    150         ),
    151         'x-wp/di' => array(
    152             'pretty_version' => 'v1.0.0-beta.8',
    153             'version' => '1.0.0.0-beta8',
    154             'reference' => '5c6928fcc9181e3221c87a46f01234f59971a67a',
     169            'reference' => '3cea33921ef8cf1cab14a1da88ffe43d168bcce1',
    155170            'type' => 'library',
    156171            'install_path' => __DIR__ . '/../x-wp/di',
     
    165180        ),
    166181        'x-wp/helper-classes' => array(
    167             'pretty_version' => 'v1.15.1',
    168             'version' => '1.15.1.0',
     182            'pretty_version' => 'v1.18.1',
     183            'version' => '1.18.1.0',
    169184            'reference' => '451dff53964c2fbdf086882c868709e4e36fb1cd',
    170185            'type' => 'library',
     
    174189        ),
    175190        'x-wp/helper-functions' => array(
    176             'pretty_version' => 'v1.15.1',
    177             'version' => '1.15.1.0',
    178             'reference' => '4a22f9db18cfe7a93a3cddaff5b7f83a9e3abef1',
     191            'pretty_version' => 'v1.18.1',
     192            'version' => '1.18.1.0',
     193            'reference' => 'edd258d0b2ad90a78893ffcabf6626cebf56a281',
    179194            'type' => 'library',
    180195            'install_path' => __DIR__ . '/../x-wp/helper-functions',
     
    183198        ),
    184199        'x-wp/helper-traits' => array(
    185             'pretty_version' => 'v1.15.1',
    186             'version' => '1.15.1.0',
     200            'pretty_version' => 'v1.18.1',
     201            'version' => '1.18.1.0',
    187202            'reference' => '0367d136d6ba36e2ae0fe1854584ef760ea7cae9',
    188203            'type' => 'library',
     
    192207        ),
    193208        'x-wp/helper-woocommerce' => array(
    194             'pretty_version' => 'v1.15.1',
    195             'version' => '1.15.1.0',
    196             'reference' => 'b8c373d14fba2757f094ed56ae8649acef85f7ae',
     209            'pretty_version' => 'v1.18.1',
     210            'version' => '1.18.1.0',
     211            'reference' => '8429f9ed7612fe2e09862548aba8d09b1324177f',
    197212            'type' => 'library',
    198213            'install_path' => __DIR__ . '/../x-wp/helper-woocommerce',
     
    200215            'dev_requirement' => false,
    201216        ),
     217        'x-wp/hook-invoker' => array(
     218            'dev_requirement' => false,
     219            'replaced' => array(
     220                0 => '*',
     221            ),
     222        ),
    202223        'x-wp/wc-template-customizer' => array(
    203             'pretty_version' => 'v1.0.0',
    204             'version' => '1.0.0.0',
    205             'reference' => 'cb4ce03bfd900908b4dd06a3bd47b960e2bc4706',
     224            'pretty_version' => 'v1.0.2',
     225            'version' => '1.0.2.0',
     226            'reference' => 'b38df4993b8fbefe0af0f27f44be4bb853418465',
    206227            'type' => 'library',
    207228            'install_path' => __DIR__ . '/../x-wp/wc-template-customizer',
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/composer/jetpack_autoload_classmap.php

    r3170400 r3181790  
    88return array(
    99    'Autoloader' => array(
    10         'version' => '3.1.2',
     10        'version' => '3.1.3',
    1111        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-autoloader.php'
    1212    ),
    1313    'Autoloader_Handler' => array(
    14         'version' => '3.1.2',
     14        'version' => '3.1.3',
    1515        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-autoloader-handler.php'
    1616    ),
    1717    'Autoloader_Locator' => array(
    18         'version' => '3.1.2',
     18        'version' => '3.1.3',
    1919        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-autoloader-locator.php'
    2020    ),
    2121    'Automattic\\Jetpack\\Autoloader\\AutoloadFileWriter' => array(
    22         'version' => '3.1.2',
     22        'version' => '3.1.3',
    2323        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadFileWriter.php'
    2424    ),
    2525    'Automattic\\Jetpack\\Autoloader\\AutoloadGenerator' => array(
    26         'version' => '3.1.2',
     26        'version' => '3.1.3',
    2727        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadGenerator.php'
    2828    ),
    2929    'Automattic\\Jetpack\\Autoloader\\AutoloadProcessor' => array(
    30         'version' => '3.1.2',
     30        'version' => '3.1.3',
    3131        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadProcessor.php'
    3232    ),
    3333    'Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin' => array(
    34         'version' => '3.1.2',
     34        'version' => '3.1.3',
    3535        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php'
    3636    ),
    3737    'Automattic\\Jetpack\\Autoloader\\ManifestGenerator' => array(
    38         'version' => '3.1.2',
     38        'version' => '3.1.3',
    3939        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/ManifestGenerator.php'
    4040    ),
    4141    'Automattic\\Jetpack\\Constants' => array(
    42         'version' => '2.0.4.0',
     42        'version' => '2.0.5.0',
    4343        'path'    => $vendorDir . '/automattic/jetpack-constants/src/class-constants.php'
    4444    ),
     45    'CURLStringFile' => array(
     46        'version' => '1.31.0.0',
     47        'path'    => $vendorDir . '/symfony/polyfill-php81/Resources/stubs/CURLStringFile.php'
     48    ),
    4549    'Container' => array(
    46         'version' => '3.1.2',
     50        'version' => '3.1.3',
    4751        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-container.php'
    4852    ),
     
    280284    ),
    281285    'Hook_Manager' => array(
    282         'version' => '3.1.2',
     286        'version' => '3.1.3',
    283287        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-hook-manager.php'
    284288    ),
     
    400404    ),
    401405    'Latest_Autoloader_Guard' => array(
    402         'version' => '3.1.2',
     406        'version' => '3.1.3',
    403407        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-latest-autoloader-guard.php'
    404408    ),
    405409    'Manifest_Reader' => array(
    406         'version' => '3.1.2',
     410        'version' => '3.1.3',
    407411        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-manifest-reader.php'
    408412    ),
     
    483487        'path'    => $baseDir . '/lib/Utils/Template_Extender.php'
    484488    ),
    485     'Oblak\\WP\\Admin_Notice_Manager' => array(
    486         'version' => '2.0.0.0',
    487         'path'    => $vendorDir . '/oblak/admin-notice-manager/src/Admin_Notice_Manager.php'
    488     ),
    489489    'Oblak\\WP\\Base_Plugin_Installer' => array(
    490         'version' => '2.1.3.0',
     490        'version' => '2.1.4.0',
    491491        'path'    => $vendorDir . '/oblak/wp-plugin-installer/src/Base_Plugin_Installer.php'
    492492    ),
    493493    'Oblak\\WP\\Update_Callback_Handler' => array(
    494         'version' => '2.1.3.0',
     494        'version' => '2.1.4.0',
    495495        'path'    => $vendorDir . '/oblak/wp-plugin-installer/src/Update_Callback_Handler.php'
    496496    ),
    497497    'PHP_Autoloader' => array(
    498         'version' => '3.1.2',
     498        'version' => '3.1.3',
    499499        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-php-autoloader.php'
    500500    ),
    501501    'Path_Processor' => array(
    502         'version' => '3.1.2',
     502        'version' => '3.1.3',
    503503        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-path-processor.php'
    504504    ),
    505505    'Plugin_Locator' => array(
    506         'version' => '3.1.2',
     506        'version' => '3.1.3',
    507507        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-plugin-locator.php'
    508508    ),
    509509    'Plugins_Handler' => array(
    510         'version' => '3.1.2',
     510        'version' => '3.1.3',
    511511        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-plugins-handler.php'
    512512    ),
     
    523523        'path'    => $vendorDir . '/psr/container/src/NotFoundExceptionInterface.php'
    524524    ),
     525    'ReturnTypeWillChange' => array(
     526        'version' => '1.31.0.0',
     527        'path'    => $vendorDir . '/symfony/polyfill-php81/Resources/stubs/ReturnTypeWillChange.php'
     528    ),
    525529    'Shutdown_Handler' => array(
    526         'version' => '3.1.2',
     530        'version' => '3.1.3',
    527531        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-shutdown-handler.php'
    528532    ),
     533    'Symfony\\Polyfill\\Php81\\Php81' => array(
     534        'version' => '1.31.0.0',
     535        'path'    => $vendorDir . '/symfony/polyfill-php81/Php81.php'
     536    ),
    529537    'Version_Loader' => array(
    530         'version' => '3.1.2',
     538        'version' => '3.1.3',
    531539        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-version-loader.php'
    532540    ),
    533541    'Version_Selector' => array(
    534         'version' => '3.1.2',
     542        'version' => '3.1.3',
    535543        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-version-selector.php'
    536544    ),
    537545    'WP_Filesystem_Streaming' => array(
    538         'version' => '1.15.1.0',
     546        'version' => '1.18.1.0',
    539547        'path'    => $vendorDir . '/x-wp/helper-classes/WP/Filesystem_Streaming.php'
    540548    ),
    541549    'XWC\\Admin\\Settings_Page_Base' => array(
    542         'version' => '1.15.1.0',
     550        'version' => '1.18.1.0',
    543551        'path'    => $vendorDir . '/x-wp/helper-woocommerce/Admin/Settings_Page_Base.php'
    544552    ),
    545553    'XWC\\Gateway\\Gateway_Base' => array(
    546         'version' => '1.15.1.0',
     554        'version' => '1.18.1.0',
    547555        'path'    => $vendorDir . '/x-wp/helper-woocommerce/Gateway/Gateway_Base.php'
    548556    ),
    549557    'XWC\\Template\\Customizer_Admin' => array(
    550         'version' => '1.0.0.0',
     558        'version' => '1.0.2.0',
    551559        'path'    => $vendorDir . '/x-wp/wc-template-customizer/src/Customizer_Admin.php'
    552560    ),
    553561    'XWC\\Template\\Customizer_Base' => array(
    554         'version' => '1.0.0.0',
     562        'version' => '1.0.2.0',
    555563        'path'    => $vendorDir . '/x-wp/wc-template-customizer/src/Customizer_Base.php'
    556564    ),
    557565    'XWC\\Traits\\Settings_API_Methods' => array(
    558         'version' => '1.15.1.0',
     566        'version' => '1.18.1.0',
    559567        'path'    => $vendorDir . '/x-wp/helper-woocommerce/Traits/Settings_API_Methods.php'
    560568    ),
     569    'XWP\\ANM\\Notice_Manager' => array(
     570        'version' => '1.0.1.0',
     571        'path'    => $vendorDir . '/x-wp/admin-notice-manager/src/Notice_Manager.php'
     572    ),
     573    'XWP\\ANM\\Notice_Repository' => array(
     574        'version' => '1.0.1.0',
     575        'path'    => $vendorDir . '/x-wp/admin-notice-manager/src/Notice_Repository.php'
     576    ),
    561577    'XWP\\DI\\App_Builder' => array(
    562         'version' => '1.0.0.0-beta8',
     578        'version' => '1.0.0.0',
    563579        'path'    => $vendorDir . '/x-wp/di/src/App_Builder.php'
    564580    ),
    565581    'XWP\\DI\\App_Factory' => array(
    566         'version' => '1.0.0.0-beta8',
     582        'version' => '1.0.0.0',
    567583        'path'    => $vendorDir . '/x-wp/di/src/App_Factory.php'
    568584    ),
    569585    'XWP\\DI\\Decorators\\Action' => array(
    570         'version' => '1.0.0.0-beta8',
     586        'version' => '1.0.0.0',
    571587        'path'    => $vendorDir . '/x-wp/di/src/Decorators/Action.php'
    572588    ),
    573589    'XWP\\DI\\Decorators\\Ajax_Action' => array(
    574         'version' => '1.0.0.0-beta8',
     590        'version' => '1.0.0.0',
    575591        'path'    => $vendorDir . '/x-wp/di/src/Decorators/Ajax_Action.php'
    576592    ),
    577593    'XWP\\DI\\Decorators\\Ajax_Handler' => array(
    578         'version' => '1.0.0.0-beta8',
     594        'version' => '1.0.0.0',
    579595        'path'    => $vendorDir . '/x-wp/di/src/Decorators/Ajax_Handler.php'
    580596    ),
    581597    'XWP\\DI\\Decorators\\Filter' => array(
    582         'version' => '1.0.0.0-beta8',
     598        'version' => '1.0.0.0',
    583599        'path'    => $vendorDir . '/x-wp/di/src/Decorators/Filter.php'
    584600    ),
    585601    'XWP\\DI\\Decorators\\Handler' => array(
    586         'version' => '1.0.0.0-beta8',
     602        'version' => '1.0.0.0',
    587603        'path'    => $vendorDir . '/x-wp/di/src/Decorators/Handler.php'
    588604    ),
    589605    'XWP\\DI\\Decorators\\Hook' => array(
    590         'version' => '1.0.0.0-beta8',
     606        'version' => '1.0.0.0',
    591607        'path'    => $vendorDir . '/x-wp/di/src/Decorators/Hook.php'
    592608    ),
    593609    'XWP\\DI\\Decorators\\Module' => array(
    594         'version' => '1.0.0.0-beta8',
     610        'version' => '1.0.0.0',
    595611        'path'    => $vendorDir . '/x-wp/di/src/Decorators/Module.php'
    596612    ),
     613    'XWP\\DI\\Decorators\\REST_Handler' => array(
     614        'version' => '1.0.0.0',
     615        'path'    => $vendorDir . '/x-wp/di/src/Decorators/REST_Handler.php'
     616    ),
     617    'XWP\\DI\\Decorators\\REST_Route' => array(
     618        'version' => '1.0.0.0',
     619        'path'    => $vendorDir . '/x-wp/di/src/Decorators/REST_Route.php'
     620    ),
    597621    'XWP\\DI\\Handler_Factory' => array(
    598         'version' => '1.0.0.0-beta8',
     622        'version' => '1.0.0.0',
    599623        'path'    => $vendorDir . '/x-wp/di/src/Handler_Factory.php'
    600624    ),
    601625    'XWP\\DI\\Hook_Context' => array(
    602         'version' => '1.0.0.0-beta8',
     626        'version' => '1.0.0.0',
    603627        'path'    => $vendorDir . '/x-wp/di/src/Hook_Context.php'
    604628    ),
    605629    'XWP\\DI\\Interfaces\\Can_Handle' => array(
    606         'version' => '1.0.0.0-beta8',
     630        'version' => '1.0.0.0',
    607631        'path'    => $vendorDir . '/x-wp/di/src/Interfaces/Can_Handle.php'
    608632    ),
    609633    'XWP\\DI\\Interfaces\\Can_Hook' => array(
    610         'version' => '1.0.0.0-beta8',
     634        'version' => '1.0.0.0',
    611635        'path'    => $vendorDir . '/x-wp/di/src/Interfaces/Can_Hook.php'
    612636    ),
    613637    'XWP\\DI\\Interfaces\\Can_Invoke' => array(
    614         'version' => '1.0.0.0-beta8',
     638        'version' => '1.0.0.0',
    615639        'path'    => $vendorDir . '/x-wp/di/src/Interfaces/Can_Invoke.php'
    616640    ),
    617641    'XWP\\DI\\Interfaces\\On_Initialize' => array(
    618         'version' => '1.0.0.0-beta8',
     642        'version' => '1.0.0.0',
    619643        'path'    => $vendorDir . '/x-wp/di/src/Interfaces/On_Initialize.php'
    620644    ),
    621645    'XWP\\DI\\Invoker' => array(
    622         'version' => '1.0.0.0-beta8',
     646        'version' => '1.0.0.0',
    623647        'path'    => $vendorDir . '/x-wp/di/src/Invoker.php'
    624648    ),
    625649    'XWP\\DI\\Traits\\Accessible_Hook_Methods' => array(
    626         'version' => '1.0.0.0-beta8',
     650        'version' => '1.0.0.0',
    627651        'path'    => $vendorDir . '/x-wp/di/src/Traits/Accessible_Hook_Methods.php'
    628652    ),
    629653    'XWP\\DI\\Utils\\Reflection' => array(
    630         'version' => '1.0.0.0-beta8',
     654        'version' => '1.0.0.0',
    631655        'path'    => $vendorDir . '/x-wp/di/src/Utils/Reflection.php'
    632656    ),
    633657    'XWP\\Dependency\\Interfaces\\Can_Enqueue' => array(
    634         'version' => '1.0.0.0',
     658        'version' => '1.1.1.0',
    635659        'path'    => $vendorDir . '/x-wp/asset-loader/src/Interfaces/Can_Enqueue.php'
    636660    ),
    637661    'XWP\\Dependency\\Interfaces\\Can_Register' => array(
    638         'version' => '1.0.0.0',
     662        'version' => '1.1.1.0',
    639663        'path'    => $vendorDir . '/x-wp/asset-loader/src/Interfaces/Can_Register.php'
    640664    ),
    641665    'XWP\\Dependency\\Interfaces\\Has_Context' => array(
    642         'version' => '1.0.0.0',
     666        'version' => '1.1.1.0',
    643667        'path'    => $vendorDir . '/x-wp/asset-loader/src/Interfaces/Has_Context.php'
    644668    ),
    645669    'XWP\\Dependency\\Manifest' => array(
    646         'version' => '1.0.0.0',
     670        'version' => '1.1.1.0',
    647671        'path'    => $vendorDir . '/x-wp/asset-loader/src/Manifest.php'
    648672    ),
    649673    'XWP\\Dependency\\Resources\\Asset' => array(
    650         'version' => '1.0.0.0',
     674        'version' => '1.1.1.0',
    651675        'path'    => $vendorDir . '/x-wp/asset-loader/src/Resources/Asset.php'
    652676    ),
    653677    'XWP\\Dependency\\Resources\\File' => array(
    654         'version' => '1.0.0.0',
     678        'version' => '1.1.1.0',
    655679        'path'    => $vendorDir . '/x-wp/asset-loader/src/Resources/File.php'
    656680    ),
    657681    'XWP\\Dependency\\Resources\\Font' => array(
    658         'version' => '1.0.0.0',
     682        'version' => '1.1.1.0',
    659683        'path'    => $vendorDir . '/x-wp/asset-loader/src/Resources/Font.php'
    660684    ),
    661685    'XWP\\Dependency\\Resources\\Image' => array(
    662         'version' => '1.0.0.0',
     686        'version' => '1.1.1.0',
    663687        'path'    => $vendorDir . '/x-wp/asset-loader/src/Resources/Image.php'
    664688    ),
    665689    'XWP\\Dependency\\Resources\\Script' => array(
    666         'version' => '1.0.0.0',
     690        'version' => '1.1.1.0',
    667691        'path'    => $vendorDir . '/x-wp/asset-loader/src/Resources/Script.php'
    668692    ),
    669693    'XWP\\Dependency\\Resources\\Style' => array(
    670         'version' => '1.0.0.0',
     694        'version' => '1.1.1.0',
    671695        'path'    => $vendorDir . '/x-wp/asset-loader/src/Resources/Style.php'
    672696    ),
    673697    'XWP\\Helper\\Classes\\Reflection' => array(
    674         'version' => '1.15.1.0',
     698        'version' => '1.18.1.0',
    675699        'path'    => $vendorDir . '/x-wp/helper-classes/Reflection.php'
    676700    ),
    677701    'XWP\\Helper\\Classes\\Simple_Array_Object' => array(
    678         'version' => '1.15.1.0',
     702        'version' => '1.18.1.0',
    679703        'path'    => $vendorDir . '/x-wp/helper-classes/Simple_Array_Object.php'
    680704    ),
    681705    'XWP\\Helper\\Functions\\Array_Extra' => array(
    682         'version' => '1.15.1.0',
     706        'version' => '1.18.1.0',
    683707        'path'    => $vendorDir . '/x-wp/helper-functions/Array_Extra.php'
    684708    ),
    685709    'XWP\\Helper\\Functions\\Block' => array(
    686         'version' => '1.15.1.0',
     710        'version' => '1.18.1.0',
    687711        'path'    => $vendorDir . '/x-wp/helper-functions/Block.php'
    688712    ),
    689713    'XWP\\Helper\\Functions\\Hook_Remover' => array(
    690         'version' => '1.15.1.0',
     714        'version' => '1.18.1.0',
    691715        'path'    => $vendorDir . '/x-wp/helper-functions/Hook_Remover.php'
    692716    ),
    693717    'XWP\\Helper\\Functions\\Request' => array(
    694         'version' => '1.15.1.0',
     718        'version' => '1.18.1.0',
    695719        'path'    => $vendorDir . '/x-wp/helper-functions/Request.php'
    696720    ),
    697721    'XWP\\Helper\\Functions\\Term' => array(
    698         'version' => '1.15.1.0',
     722        'version' => '1.18.1.0',
    699723        'path'    => $vendorDir . '/x-wp/helper-functions/Term.php'
    700724    ),
    701725    'XWP\\Helper\\Functions\\WPFS' => array(
    702         'version' => '1.15.1.0',
     726        'version' => '1.18.1.0',
    703727        'path'    => $vendorDir . '/x-wp/helper-functions/WPFS.php'
    704728    ),
    705729    'XWP\\Helper\\Traits\\Array_Access' => array(
    706         'version' => '1.15.1.0',
     730        'version' => '1.18.1.0',
    707731        'path'    => $vendorDir . '/x-wp/helper-traits/Array_Access.php'
    708732    ),
    709733    'XWP\\Helper\\Traits\\Singleton' => array(
    710         'version' => '1.15.1.0',
     734        'version' => '1.18.1.0',
    711735        'path'    => $vendorDir . '/x-wp/helper-traits/Singleton.php'
    712736    ),
    713737    'XWP\\Helper\\Traits\\Singleton_Ex' => array(
    714         'version' => '1.15.1.0',
     738        'version' => '1.18.1.0',
    715739        'path'    => $vendorDir . '/x-wp/helper-traits/Singleton_Ex.php'
    716740    ),
    717741    'XWP\\Helper\\Traits\\View_Loader' => array(
    718         'version' => '1.15.1.0',
     742        'version' => '1.18.1.0',
    719743        'path'    => $vendorDir . '/x-wp/helper-traits/View_Loader.php'
    720744    ),
     745    'XWP_Admin_Notice' => array(
     746        'version' => '1.0.1.0',
     747        'path'    => $vendorDir . '/x-wp/admin-notice-manager/src/Core/Notice.php'
     748    ),
    721749    'XWP_Asset_Bundle' => array(
    722         'version' => '1.0.0.0',
     750        'version' => '1.1.1.0',
    723751        'path'    => $vendorDir . '/x-wp/asset-loader/src/Core/Asset_Bundle.php'
    724752    ),
    725753    'XWP_Asset_Loader' => array(
    726         'version' => '1.0.0.0',
     754        'version' => '1.1.1.0',
    727755        'path'    => $vendorDir . '/x-wp/asset-loader/src/Core/Asset_Loader.php'
    728756    ),
    729757    'XWP_Asset_Retriever' => array(
    730         'version' => '1.0.0.0',
     758        'version' => '1.1.1.0',
    731759        'path'    => $vendorDir . '/x-wp/asset-loader/src/Core/Asset_Retriever.php'
     760    ),
     761    'XWP_REST_Controller' => array(
     762        'version' => '1.0.0.0',
     763        'path'    => $vendorDir . '/x-wp/di/src/Core/REST_Controller.php'
    732764    ),
    733765    'chillerlan\\QRCode\\Common\\BitBuffer' => array(
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/composer/jetpack_autoload_filemap.php

    r3170400 r3181790  
    77
    88return array(
    9     '6c427d7d289e1cfc9c7756e71133bee6' => array(
    10         'version' => '1.15.1.0',
    11         'path'    => $vendorDir . '/x-wp/helper-functions/xwp-helper-fns.php'
     9    'e7e6bab1ed2be1042591496e1ad3e230' => array(
     10        'version' => '1.18.1.0',
     11        'path'    => $vendorDir . '/x-wp/helper-functions/xwp-helper-fns-arr.php'
    1212    ),
    1313    '6f4d42339b919aad008d719d6274512f' => array(
    14         'version' => '1.15.1.0',
     14        'version' => '1.18.1.0',
    1515        'path'    => $vendorDir . '/x-wp/helper-functions/xwp-helper-fns-num.php'
    1616    ),
    1717    'eac005e7ae06387970897430e20a14f8' => array(
    18         'version' => '1.15.1.0',
     18        'version' => '1.18.1.0',
    1919        'path'    => $vendorDir . '/x-wp/helper-functions/xwp-helper-fns-req.php'
     20    ),
     21    '6c427d7d289e1cfc9c7756e71133bee6' => array(
     22        'version' => '1.18.1.0',
     23        'path'    => $vendorDir . '/x-wp/helper-functions/xwp-helper-fns.php'
    2024    ),
    2125    'b33e3d135e5d9e47d845c576147bda89' => array(
    2226        'version' => '7.0.7.0',
    2327        'path'    => $vendorDir . '/php-di/php-di/src/functions.php'
     28    ),
     29    '23c18046f52bef3eea034657bafda50f' => array(
     30        'version' => '1.31.0.0',
     31        'path'    => $vendorDir . '/symfony/polyfill-php81/bootstrap.php'
     32    ),
     33    'c4eb3dd9806877a728c0b0fecfd8a0a8' => array(
     34        'version' => '1.0.1.0',
     35        'path'    => $vendorDir . '/x-wp/admin-notice-manager/src/Functions/xwp-anm-fns.php'
     36    ),
     37    'fc42141d84284e25c97732976f63c9e2' => array(
     38        'version' => '1.0.1.0',
     39        'path'    => $vendorDir . '/x-wp/admin-notice-manager/src/Functions/xwp-anm-init.php'
    2440    ),
    2541    '601305a3774ec67d18e3b43f7ff1eba8' => array(
     
    4460    ),
    4561    '02b2f2d806f84ba3df3bd5d983b40927' => array(
    46         'version' => '2.1.3.0',
     62        'version' => '2.1.4.0',
    4763        'path'    => $vendorDir . '/oblak/wp-plugin-installer/src/wppi-as-loader.php'
    4864    ),
    4965    'e4ffa605a46af5dc51a06d0428d74700' => array(
    50         'version' => '1.0.0.0',
     66        'version' => '1.1.1.0',
    5167        'path'    => $vendorDir . '/x-wp/asset-loader/src/Functions/xwp-loader-init.php'
    5268    ),
    5369    '89887658aecc79fae17e75f8e6949680' => array(
    54         'version' => '1.0.0.0-beta8',
     70        'version' => '1.0.0.0',
    5571        'path'    => $vendorDir . '/x-wp/di/src/Functions/xwp-di-container-fns.php'
    5672    ),
    5773    '289d5db207f260edee5d940f2b0874b1' => array(
    58         'version' => '1.0.0.0-beta8',
     74        'version' => '1.0.0.0',
    5975        'path'    => $vendorDir . '/x-wp/di/src/Functions/xwp-di-helper-fns.php'
    6076    ),
     
    6278        'version' => '1.0.0.0',
    6379        'path'    => $baseDir . '/lib/Functions/wcsrb-address-field-fns.php'
    64     ),
    65     'f45becae259e3085ac94c414354b9e11' => array(
    66         'version' => '1.0.0.0',
    67         'path'    => $baseDir . '/lib/Functions/wcsrb-core.php'
    6880    ),
    6981    '2cbbb54dca44ace1c636c9aedd6c2704' => array(
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/jetpack-autoloader/class-autoloader-handler.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/jetpack-autoloader/class-autoloader-locator.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/jetpack-autoloader/class-autoloader.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/jetpack-autoloader/class-container.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/jetpack-autoloader/class-hook-manager.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/jetpack-autoloader/class-latest-autoloader-guard.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/jetpack-autoloader/class-manifest-reader.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/jetpack-autoloader/class-path-processor.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/jetpack-autoloader/class-php-autoloader.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/jetpack-autoloader/class-plugin-locator.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/jetpack-autoloader/class-plugins-handler.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/jetpack-autoloader/class-shutdown-handler.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/jetpack-autoloader/class-version-loader.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/jetpack-autoloader/class-version-selector.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/oblak/wp-plugin-installer/composer.json

    r3155827 r3181790  
    1313    "php": ">= 8.0",
    1414    "automattic/jetpack-constants": "^2",
    15     "oblak/admin-notice-manager": "^2",
    16     "woocommerce/action-scheduler": "^3.7"
     15    "woocommerce/action-scheduler": "^3.7",
     16    "x-wp/admin-notice-manager": "^1.0"
    1717  },
    1818  "require-dev": {
    1919    "ergebnis/composer-normalize": "^2.42",
    20     "oblak/wordpress-coding-standard": "^1"
     20    "oblak/wordpress-coding-standard": "^1",
     21    "wp-cli/wp-cli": "^2.11"
    2122  },
    2223  "suggest": {
     
    3233  },
    3334  "config": {
     35    "platform": {
     36      "php": "8.0"
     37    },
    3438    "allow-plugins": {
    3539      "automattic/jetpack-autoloader": true,
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/oblak/wp-plugin-installer/src/Base_Plugin_Installer.php

    r3092652 r3181790  
    276276        }
    277277
    278         Admin_Notice_Manager::get_instance()->add_notice(
    279             "{$this->slug}_missing_tables",
    280             array(
    281                 'caps'        => 'manage_woocommerce',
    282                 'dismissible' => false,
    283                 'message'     => \sprintf(
    284                     '<p><strong>%s</strong> - %s: %s</p>',
    285                     \esc_html( $this->slug ),
    286                     \esc_html__( 'The following tables are missing: ', 'oblak-plugin-installer' ),
    287                     \implode( ', ', $missing_tables ),
     278        \xwp_get_notice( "{$this->slug}_missing_tables" )
     279            ->set_defaults()
     280            ->set_props(
     281                array(
     282                    'caps'        => 'manage_woocommerce',
     283                    'classes'     => 'alt',
     284                    'dismissible' => false,
     285                    'message'     => \sprintf(
     286                        '<p><strong>%s</strong> - %s: %s</p>',
     287                        \esc_html( $this->slug ),
     288                        \esc_html__( 'The following tables are missing: ', 'oblak-plugin-installer' ),
     289                        \implode( ', ', $missing_tables ),
     290                    ),
     291                    'persistent'  => true,
     292                    'type'        => 'error',
    288293                ),
    289                 'persistent'  => true,
    290                 'type'        => 'error',
    291             ),
    292             true,
    293         );
     294            )
     295            ->save( true );
    294296    }
    295297
     
    313315            $this->display_missing_tables_notice( $modify_notice );
    314316        } elseif ( $modify_notice && $this->show_admin_notices ) {
    315                 Admin_Notice_Manager::get_instance()->remove_notice( "{$this->slug}_missing_tables", true );
     317                \xwp_delete_notice( "{$this->slug}_missing_tables", true );
    316318        } else {
    317319            \update_option( "{$this->slug}_schema_version", $this->db_version );
     
    417419        $args = $this->get_notice_args( $name );
    418420
    419         Admin_Notice_Manager::get_instance()->add_notice(
    420             "{$this->slug}_update_notice",
    421             array(
    422                 'caps'        => 'manage_options',
    423                 'dismissible' => 'update-complete' === $file,
    424                 'file_args'   => $args,
    425                 'message'     => $file,
    426                 'persistent'  => false,
    427                 'type'        => 'info',
    428             ),
    429             true,
    430         );
     421        \xwp_get_notice( "{$this->slug}_update_notice" )
     422            ->set_defaults()
     423            ->set_props(
     424                array(
     425                    'caps'        => 'manage_options',
     426                    'dismissible' => 'update-complete' === $file,
     427                    'params'      => $args,
     428                    'persistent'  => false,
     429                    'template'    => $file,
     430                    'type'        => 'info',
     431                ),
     432            )
     433            ->save( true );
    431434    }
    432435
     
    638641        $progress->finish();
    639642
    640         Admin_Notice_Manager::get_instance()->remove_notice( "{$this->slug}_update_notice", true );
     643        \xwp_delete_notice( "{$this->slug}_update_notice", true );
    641644
    642645        WP_CLI::success(
     
    741744     */
    742745    public function debug_verify_db_tables() {
    743         Admin_Notice_Manager::get_instance()->remove_notice( "{$this->slug}_missing_tables", true );
     746        \xwp_delete_notice( "{$this->slug}_missing_tables", true );
    744747
    745748        $missing_tables = $this->verify_base_tables( false, true );
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/x-wp/asset-loader/composer.json

    r3155827 r3181790  
    1212    "php": ">=8.0",
    1313    "automattic/jetpack-constants": "^2.0",
    14     "x-wp/helper-functions": "^1.9",
     14    "x-wp/helper-functions": "^1.18",
    1515    "x-wp/helper-traits": "^1.9"
    1616  },
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/x-wp/asset-loader/src/Core/Asset_Bundle.php

    r3155827 r3181790  
    360360     * @return array<string,T>
    361361     */
    362     public function get( string $type ): array {
     362    public function collect( string $type ): array {
    363363        $found = array();
    364364
     
    373373        return $found;
    374374    }
     375
     376    /**
     377     * Get an asset by field.
     378     *
     379     * @param  string $id The ID of the asset to get.
     380     * @param  string $field The field to search by.
     381     * @return Style|Script|Image|Font|null
     382     */
     383    public function get( string $id, string $field = 'handle' ): Style|Script|Image|Font|null {
     384        foreach ( array_keys( $this->manifest ) as $src ) {
     385            if ( $id === $this[ $src ]->{"{$field}"}() ) {
     386                return $this[ $src ];
     387            }
     388        }
     389
     390        return null;
     391    }
    375392}
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/x-wp/asset-loader/src/Resources/File.php

    r3155827 r3181790  
    5858     * Get the WP_Filesystem instance.
    5959     *
    60      * @return \WP_Filesystem_Base|null
     60     * @return \WP_Filesystem_Direct|null
    6161     */
    62     protected function wpfs(): ?\WP_Filesystem_Base {
    63         return \wp_load_filesystem() ?: null;
     62    protected function wpfs(): ?\WP_Filesystem_Direct {
     63        return \xwp_wpfs() ?: null;
     64    }
     65
     66    /**
     67     * Get the bundle instance.
     68     *
     69     * @return XWP_Asset_Bundle
     70     */
     71    public function bundle(): XWP_Asset_Bundle {
     72        return $this->bundle;
    6473    }
    6574
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/x-wp/di/composer.json

    r3167131 r3181790  
    2525    "automattic/jetpack-constants": "^2",
    2626    "php-di/php-di": "^7",
     27    "symfony/polyfill-php81": "^1.31",
    2728    "x-wp/helper-classes": "^1.13",
    2829    "x-wp/helper-functions": "^1.13"
     
    3738    "szepeviktor/phpstan-wordpress": "^1.3"
    3839  },
     40  "conflict": {
     41    "oblak/wp-hook-di": "*"
     42  },
    3943  "provide": {
     44    "psr/container-implementation": "^1.0",
    4045    "x-wp/di-implementation": "^1.0"
     46  },
     47  "replace": {
     48    "x-wp/hook-invoker": "*"
    4149  },
    4250  "suggest": {
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/x-wp/di/composer.lock

    r3167131 r3181790  
    55        "This file is @generated automatically"
    66    ],
    7     "content-hash": "5a76f9ef4bfd4bcfe1cfc7de0b6024ad",
     7    "content-hash": "3879411c4b4bea5e32cc13d31fdcb283",
    88    "packages": [
    99        {
     
    301301        },
    302302        {
     303            "name": "symfony/polyfill-php81",
     304            "version": "v1.31.0",
     305            "source": {
     306                "type": "git",
     307                "url": "https://github.com/symfony/polyfill-php81.git",
     308                "reference": "4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c"
     309            },
     310            "dist": {
     311                "type": "zip",
     312                "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c",
     313                "reference": "4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c",
     314                "shasum": ""
     315            },
     316            "require": {
     317                "php": ">=7.2"
     318            },
     319            "type": "library",
     320            "extra": {
     321                "thanks": {
     322                    "name": "symfony/polyfill",
     323                    "url": "https://github.com/symfony/polyfill"
     324                }
     325            },
     326            "autoload": {
     327                "files": [
     328                    "bootstrap.php"
     329                ],
     330                "psr-4": {
     331                    "Symfony\\Polyfill\\Php81\\": ""
     332                },
     333                "classmap": [
     334                    "Resources/stubs"
     335                ]
     336            },
     337            "notification-url": "https://packagist.org/downloads/",
     338            "license": [
     339                "MIT"
     340            ],
     341            "authors": [
     342                {
     343                    "name": "Nicolas Grekas",
     344                    "email": "p@tchwork.com"
     345                },
     346                {
     347                    "name": "Symfony Community",
     348                    "homepage": "https://symfony.com/contributors"
     349                }
     350            ],
     351            "description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions",
     352            "homepage": "https://symfony.com",
     353            "keywords": [
     354                "compatibility",
     355                "polyfill",
     356                "portable",
     357                "shim"
     358            ],
     359            "support": {
     360                "source": "https://github.com/symfony/polyfill-php81/tree/v1.31.0"
     361            },
     362            "funding": [
     363                {
     364                    "url": "https://symfony.com/sponsor",
     365                    "type": "custom"
     366                },
     367                {
     368                    "url": "https://github.com/fabpot",
     369                    "type": "github"
     370                },
     371                {
     372                    "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
     373                    "type": "tidelift"
     374                }
     375            ],
     376            "time": "2024-09-09T11:45:10+00:00"
     377        },
     378        {
    303379            "name": "x-wp/helper-classes",
    304             "version": "v1.14.0",
     380            "version": "v1.18.0",
    305381            "source": {
    306382                "type": "git",
     
    352428            "support": {
    353429                "issues": "https://github.com/x-wp/helper-classes/issues",
    354                 "source": "https://github.com/x-wp/helper-classes/tree/v1.14.0"
     430                "source": "https://github.com/x-wp/helper-classes/tree/v1.18.0"
    355431            },
    356432            "time": "2024-09-23T14:31:15+00:00"
     
    358434        {
    359435            "name": "x-wp/helper-functions",
    360             "version": "v1.14.0",
     436            "version": "v1.18.0",
    361437            "source": {
    362438                "type": "git",
    363439                "url": "https://github.com/x-wp/helper-functions.git",
    364                 "reference": "1b2dab0fbdedbaac6b9bc554eda79f804cb7ed97"
    365             },
    366             "dist": {
    367                 "type": "zip",
    368                 "url": "https://api.github.com/repos/x-wp/helper-functions/zipball/1b2dab0fbdedbaac6b9bc554eda79f804cb7ed97",
    369                 "reference": "1b2dab0fbdedbaac6b9bc554eda79f804cb7ed97",
     440                "reference": "1e3392e49d0fe95eb13e8980081b9ceb0268e0bd"
     441            },
     442            "dist": {
     443                "type": "zip",
     444                "url": "https://api.github.com/repos/x-wp/helper-functions/zipball/1e3392e49d0fe95eb13e8980081b9ceb0268e0bd",
     445                "reference": "1e3392e49d0fe95eb13e8980081b9ceb0268e0bd",
    370446                "shasum": ""
    371447            },
     
    379455            "autoload": {
    380456                "files": [
    381                     "xwp-helper-fns.php",
    382                     "xwp-helper-fns-req.php"
     457                    "xwp-helper-fns-arr.php",
     458                    "xwp-helper-fns-num.php",
     459                    "xwp-helper-fns-req.php",
     460                    "xwp-helper-fns.php"
    383461                ],
    384462                "psr-4": {
     
    408486            "support": {
    409487                "issues": "https://github.com/x-wp/helper-functions/issues",
    410                 "source": "https://github.com/x-wp/helper-functions/tree/v1.14.0"
    411             },
    412             "time": "2024-10-09T10:17:05+00:00"
     488                "source": "https://github.com/x-wp/helper-functions/tree/v1.18.0"
     489            },
     490            "time": "2024-10-29T22:53:16+00:00"
    413491        },
    414492        {
    415493            "name": "x-wp/helper-traits",
    416             "version": "v1.14.0",
     494            "version": "v1.18.0",
    417495            "source": {
    418496                "type": "git",
     
    460538            "support": {
    461539                "issues": "https://github.com/x-wp/helper-traits/issues",
    462                 "source": "https://github.com/x-wp/helper-traits/tree/v1.14.0"
     540                "source": "https://github.com/x-wp/helper-traits/tree/v1.18.0"
    463541            },
    464542            "time": "2024-09-18T12:43:44+00:00"
     
    10211099        {
    10221100            "name": "phpstan/phpdoc-parser",
    1023             "version": "1.32.0",
     1101            "version": "1.33.0",
    10241102            "source": {
    10251103                "type": "git",
    10261104                "url": "https://github.com/phpstan/phpdoc-parser.git",
    1027                 "reference": "6ca22b154efdd9e3c68c56f5d94670920a1c19a4"
    1028             },
    1029             "dist": {
    1030                 "type": "zip",
    1031                 "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/6ca22b154efdd9e3c68c56f5d94670920a1c19a4",
    1032                 "reference": "6ca22b154efdd9e3c68c56f5d94670920a1c19a4",
     1105                "reference": "82a311fd3690fb2bf7b64d5c98f912b3dd746140"
     1106            },
     1107            "dist": {
     1108                "type": "zip",
     1109                "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/82a311fd3690fb2bf7b64d5c98f912b3dd746140",
     1110                "reference": "82a311fd3690fb2bf7b64d5c98f912b3dd746140",
    10331111                "shasum": ""
    10341112            },
     
    10621140            "support": {
    10631141                "issues": "https://github.com/phpstan/phpdoc-parser/issues",
    1064                 "source": "https://github.com/phpstan/phpdoc-parser/tree/1.32.0"
    1065             },
    1066             "time": "2024-09-26T07:23:32+00:00"
     1142                "source": "https://github.com/phpstan/phpdoc-parser/tree/1.33.0"
     1143            },
     1144            "time": "2024-10-13T11:25:22+00:00"
    10671145        },
    10681146        {
    10691147            "name": "phpstan/phpstan",
    1070             "version": "1.12.6",
     1148            "version": "1.12.7",
    10711149            "source": {
    10721150                "type": "git",
    10731151                "url": "https://github.com/phpstan/phpstan.git",
    1074                 "reference": "dc4d2f145a88ea7141ae698effd64d9df46527ae"
    1075             },
    1076             "dist": {
    1077                 "type": "zip",
    1078                 "url": "https://api.github.com/repos/phpstan/phpstan/zipball/dc4d2f145a88ea7141ae698effd64d9df46527ae",
    1079                 "reference": "dc4d2f145a88ea7141ae698effd64d9df46527ae",
     1152                "reference": "dc2b9976bd8b0f84ec9b0e50cc35378551de7af0"
     1153            },
     1154            "dist": {
     1155                "type": "zip",
     1156                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/dc2b9976bd8b0f84ec9b0e50cc35378551de7af0",
     1157                "reference": "dc2b9976bd8b0f84ec9b0e50cc35378551de7af0",
    10801158                "shasum": ""
    10811159            },
     
    11221200                }
    11231201            ],
    1124             "time": "2024-10-06T15:03:59+00:00"
     1202            "time": "2024-10-18T11:12:07+00:00"
    11251203        },
    11261204        {
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/x-wp/di/src/App_Builder.php

    r3167131 r3181790  
    2626     */
    2727    public static function configure( array $config = array() ): App_Builder {
    28         $config = static::getDefaultConfig( $config );
    29 
    3028        return ( new App_Builder() )
    3129            ->useAttributes( $config['attributes'] )
     
    3937    }
    4038
    41     /**
    42      * Get the default configuration.
    43      *
    44      * @param  array<string, mixed> $config Configuration options.
    45      * @return array<string, mixed>
    46      */
    47     protected static function getDefaultConfig( array $config ): array {
    48         return \wp_parse_args(
    49             $config,
    50             array(
    51                 'attributes'    => true,
    52                 'autowiring'    => true,
    53                 'compile'       => 'production' === \wp_get_environment_type(),
    54                 'compile_class' => 'CompiledContainer' . \strtoupper( $config['id'] ),
    55                 'compile_dir'   => __DIR__ . '/cache',
    56                 'proxies'       => false,
    57             ),
    58         );
    59     }
    60 
    6139    //phpcs:ignore Squiz.Commenting.FunctionComment.Missing
    6240    public function enableCompilation(
     
    6644        bool $compile = true,
    6745    ): static {
     46        if ( ! $compile ) {
     47            return $this;
     48        }
     49
     50        if ( ! \is_dir( $directory ) && ! \wp_mkdir_p( $directory ) ) {
     51            return $this;
     52        }
     53
    6854        // @phpstan-ignore return.type
    69         return $compile
    70             ? parent::enableCompilation( $directory, $containerClass, $containerParentClass )
    71             : $this;
     55        return parent::enableCompilation( $directory, $containerClass, $containerParentClass );
    7256    }
    7357
     
    8165     */
    8266    public function addDefinitions( string|array|DefinitionSource ...$definitions ): static {
    83         return \class_exists( $definitions[0] )
     67        return \is_string( $definitions[0] ) && \class_exists( $definitions[0] )
    8468            ? parent::addDefinitions( \xwp_register_module( $definitions[0] )->get_definitions() )
    8569            : parent::addDefinitions( ...$definitions );
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/x-wp/di/src/App_Factory.php

    r3167131 r3181790  
    1515 * Create and manage DI containers.
    1616 *
    17  * @method static Container create(array $config)     Create a new container.
    18  * @method static Container get(string $container_id) Get a container instance.
     17 * @method static Container create( array $config)                                                        Create a new container.
     18 * @method static Container get( string $id )                                                             Get a container instance.
     19 * @method static void      extend( string $container, array $module, string $position, ?string $target ) Extend an application container definition.
     20 * @method static bool      decompile( string $id, bool $now )                                            Decompile a container.
    1921 */
    2022final class App_Factory {
     
    5254        }
    5355
     56        $config = $this->parse_config( $config );
     57
    5458        return $this->containers[ $config['id'] ] ??= App_Builder::configure( $config )
    5559            ->addDefinitions( $config['module'] )
     60            ->addDefinitions( array( 'xwp.app.config' => $config ) )
    5661            ->build();
     62    }
     63
     64    /**
     65     * Extend an application container definition.
     66     *
     67     * @param  string              $container Container ID.
     68     * @param  array<class-string> $module    Module classname or array of module classnames.
     69     * @param  'before'|'after'    $position  Position to insert the module.
     70     * @param  string|null         $target    Target module to extend.
     71     */
     72    protected function call_extend( string $container, array $module, string $position = 'after', ?string $target = null ): void {
     73        \add_filter(
     74            "xwp_extend_import_{$container}",
     75            static function ( array $imports, string $classname ) use( $module, $position, $target ): array {
     76                if ( $target && $target !== $classname ) {
     77                    return $imports;
     78                }
     79
     80                $params = 'after' === $position
     81                    ? array( $imports, $module )
     82                    : array( $module, $imports );
     83
     84                return \array_merge( ...$params );
     85            },
     86            10,
     87            2,
     88        );
    5789    }
    5890
     
    6698        return $this->containers[ $id ];
    6799    }
     100
     101    /**
     102     * Decompile a container.
     103     *
     104     * @param  string $id  Container ID.
     105     * @param  bool   $now Decompile now or on shutdown.
     106     * @return bool
     107     */
     108    protected function call_decompile( string $id, bool $now = false ): bool {
     109        $config = $this->containers[ $id ]->get( 'xwp.app.config' );
     110
     111        if ( ! $config['compile'] || ! \xwp_wpfs()->is_dir( $config['compile_dir'] ) ) {
     112            return false;
     113        }
     114
     115        $cb = static fn() => \xwp_wpfs()->rmdir( $config['compile_dir'], true );
     116
     117        // @phpstan-ignore return.void
     118        return ! $now ? \add_action( 'shutdown', $cb ) : $cb();
     119    }
     120
     121    /**
     122     * Get the default configuration.
     123     *
     124     * @param  array<string, mixed> $config Configuration options.
     125     * @return array<string, mixed>
     126     */
     127    protected function parse_config( array $config ): array {
     128        return \wp_parse_args(
     129            $config,
     130            array(
     131                'attributes'    => true,
     132                'autowiring'    => true,
     133                'compile'       => 'production' === \wp_get_environment_type(),
     134                'compile_class' => 'CompiledContainer' . \strtoupper( $config['id'] ),
     135                'compile_dir'   => \WP_CONTENT_DIR . '/cache/xwp-di/' . $config['id'],
     136                'proxies'       => false,
     137            ),
     138        );
     139    }
    68140}
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/x-wp/di/src/Decorators/Action.php

    r3167131 r3181790  
    99namespace XWP\DI\Decorators;
    1010
     11use XWP\DI\Interfaces\Can_Handle;
     12
    1113/**
    1214 * Action hook decorator.
    1315 *
    1416 * @template T of object
    15  * @extends Filter<T>
     17 * @template H of Can_Handle<T>
     18 * @extends Filter<T,H>
    1619 *
    1720 * @since 1.0.0
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/x-wp/di/src/Decorators/Ajax_Action.php

    r3167131 r3181790  
    1515 *
    1616 * @template T of object
    17  * @extends Action<T>
     17 * @template H of Ajax_Handler<T>
     18 * @extends Action<T,H>
    1819 */
    1920#[\Attribute( \Attribute::IS_REPEATABLE | \Attribute::TARGET_METHOD )]
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/x-wp/di/src/Decorators/Filter.php

    r3167131 r3181790  
    2020 *
    2121 * @template T of object
     22 * @template H of Can_Handle<T>
    2223 * @extends Hook<T, ReflectionMethod>
    23  * @implements Can_Invoke<T>
     24 * @implements Can_Invoke<T,H>
    2425 */
    2526#[\Attribute( \Attribute::IS_REPEATABLE | \Attribute::TARGET_METHOD )]
     
    2829     * The handler.
    2930     *
    30      * @var Can_Handle<T>
     31     * @var H
    3132     */
    3233    protected Can_Handle $handler;
     
    100101     * Set the handler.
    101102     *
    102      * @param  Can_Handle<T> $handler The handler.
     103     * @param  H $handler The handler.
    103104     * @return static
    104105     */
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/x-wp/di/src/Decorators/Handler.php

    r3170400 r3181790  
    5454     */
    5555    protected string $container_id;
     56
     57    /**
     58     * Is the handler hookable.
     59     *
     60     * @var bool
     61     */
     62    protected bool $hookable;
    5663
    5764    /**
     
    6572     * @param array<int,string>|string|false                 $modifiers   Values to replace in the tag name.
    6673     * @param string                                         $strategy    Initialization strategy.
     74     * @param bool                                           $hookable    Is the handler hookable.
    6775     */
    6876    public function __construct(
     
    7482        string|array|false $modifiers = false,
    7583        string $strategy = self::INIT_DEFFERED,
     84        bool $hookable = true,
    7685    ) {
    7786        $this->strategy     = $strategy;
    7887        $this->loaded       = self::INIT_DYNAMICALY === $strategy;
    7988        $this->container_id = $container;
     89        $this->hookable     = $hookable;
    8090
    8191        parent::__construct( $tag, $tag ? $priority : null, $context, $conditional, $modifiers );
     
    95105
    96106    public function with_container( ?string $container ): static {
    97         $this->container_id ??= $container;
     107        if ( null !== $container ) {
     108            $this->container_id ??= $container;
     109        }
    98110
    99111        return $this;
     
    132144        }
    133145
    134         $this->instance ??= $this->container->get( $this->classname );
     146        $this->instance ??= $this->initialize();
    135147
    136148        return $this->on_initialize();
     149    }
     150
     151    /**
     152     * Initialize the handler.
     153     *
     154     * @return T
     155     */
     156    protected function initialize(): object {
     157        return $this->container->get( $this->classname );
    137158    }
    138159
     
    146167
    147168        if ( \method_exists( $this->classname, 'on_initialize' ) ) {
    148             $this->target->on_initialize();
     169            $this->container->call( array( $this->classname, 'on_initialize' ) );
    149170        }
    150171
     
    194215        return self::INIT_ON_DEMAND === $this->strategy || self::INIT_JUST_IN_TIME === $this->strategy;
    195216    }
     217
     218    public function is_hookable(): bool {
     219        return $this->hookable;
     220    }
    196221}
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/x-wp/di/src/Decorators/Module.php

    r3167131 r3181790  
    2929     * Constructor.
    3030     *
    31      * @param  string                  $container Container ID.
    32      * @param  string                  $hook      Hook name.
    33      * @param  int                     $priority  Hook priority.
    34      * @param  array<int,class-string> $imports   Array of submodules to import.
    35      * @param  array<int,class-string> $handlers  Array of handlers to register.
     31     * @param  string                  $container  Container ID.
     32     * @param  string                  $hook       Hook name.
     33     * @param  int                     $priority   Hook priority.
     34     * @param  array<int,class-string> $imports    Array of submodules to import.
     35     * @param  array<int,class-string> $handlers   Array of handlers to register.
     36     * @param  bool                    $extendable Is the module extendable.
    3637     */
    3738    public function __construct(
     
    5152         */
    5253        protected array $handlers = array(),
     54        /**
     55         * Is the module extendable?
     56         *
     57         * @var bool
     58         */
     59        protected bool $extendable = false,
    5360    ) {
    5461        parent::__construct(
     
    8390        $definitions = $this->get_definition();
    8491
    85         foreach ( $this->imports as $import ) {
     92        foreach ( $this->get_imports() as $import ) {
    8693            $module = $this->imported ? \xwp_get_module( $import ) : \xwp_register_module( $import );
    8794
     
    9299
    93100        return $definitions;
     101    }
     102
     103    /**
     104     * Get the module imports.
     105     *
     106     * @return array<int,class-string>
     107     */
     108    protected function get_imports(): array {
     109        if ( ! $this->extendable ) {
     110            return $this->imports;
     111        }
     112
     113        $tag = "xwp_extend_import_{$this->container_id}";
     114
     115        /**
     116         * Filter the module imports.
     117         *
     118         * @param  array<int,class-string> $imports    Array of submodules to import.
     119         * @param  class-string            $classname  Module classname.
     120         * @return array<int,class-string>
     121         *
     122         * @since 1.0@beta.8
     123         */
     124        return \apply_filters( $tag, $this->imports, $this->classname );
    94125    }
    95126
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/x-wp/di/src/Functions/xwp-di-container-fns.php

    r3167131 r3181790  
    3131 *   compile_dir?: string,
    3232 *   proxies?: bool,
     33 * } $app Application configuration.
     34 * @param  string $hook     Hook to create the container on.
     35 * @param  int    $priority Hook priority.
     36 * @return true
     37 */
     38function xwp_load_app( array $app, string $hook = 'plugins_loaded', int $priority = PHP_INT_MIN ): bool {
     39    return add_action(
     40        $hook,
     41        static function () use( $app ): void {
     42            xwp_create_app( $app );
     43        },
     44        $priority,
     45    );
     46}
     47
     48/**
     49 * Create a new app container.
     50 *
     51 * @param  array{
     52 *   id: string,
     53 *   module: class-string,
     54 *   attributes?: bool,
     55 *   autowiring?: bool,
     56 *   compile?: bool,
     57 *   compile_class?: string,
     58 *   compile_dir?: string,
     59 *   proxies?: bool,
    3360 * } $args Application configuration.
    3461 * @return Container
     
    3764    return \XWP\DI\App_Factory::create( $args );
    3865}
     66
     67/**
     68 * Extend an application container definition.
     69 *
     70 * @param  string                     $container Container ID.
     71 * @param  string|array<class-string> $module    Module classname or array of module classnames.
     72 * @param  'before'|'after'           $position  Position to insert the module.
     73 * @param  string|null                $target    Target module to extend.
     74 */
     75function xwp_extend_app( string $container, string|array $module, string $position = 'after', ?string $target = null ): void {
     76    if ( ! is_array( $module ) ) {
     77        $module = array( $module );
     78    }
     79
     80    \XWP\DI\App_Factory::extend( $container, $module, $position, $target );
     81}
     82
     83/**
     84 * Decompile an application container.
     85 *
     86 * @param  string $container_id Container ID.
     87 * @param  bool   $immediately  Decompile now or on shutdown.
     88 * @return bool
     89 */
     90function xwp_decompile_app( string $container_id, bool $immediately = false ): bool {
     91    return \XWP\DI\App_Factory::decompile( $container_id, $immediately );
     92}
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/x-wp/di/src/Interfaces/Can_Handle.php

    r3167131 r3181790  
    7272     */
    7373    public function is_lazy(): bool;
     74
     75    /**
     76     * Is the handler hookable?
     77     *
     78     * @return bool
     79     */
     80    public function is_hookable(): bool;
    7481}
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/x-wp/di/src/Interfaces/Can_Invoke.php

    r3167131 r3181790  
    1212 * Defines decorators that can invoke WordPress hooks.
    1313 *
    14  * @template THndlr of object
    15  * @extends Can_Hook<THndlr,\ReflectionMethod>
     14 * @template TInst of object
     15 * @template THndl of Can_Handle<TInst>
     16 * @extends Can_Hook<TInst,\ReflectionMethod>
    1617 *
    1718 * @property-read bool $firing Is the hook firing?
    18  * @property-read int $fired   Number of times the hook has fired.
     19 * @property-read int  $fired   Number of times the hook has fired.
    1920
    20  * @property-read array{THndlr,string} $target The target method.
     21 * @property-read array{TInst,string} $target The target method.
     22 * @property-read Thndl $handler The handler instance.
    2123 */
    2224interface Can_Invoke extends Can_Hook {
     
    4850     * Set the handler instance.
    4951     *
    50      * @template Thndlr of object
    51      * @param  Can_Handle<Thndlr> $handler Handler instance.
     52     * @param  THndl $handler Handler instance.
    5253     * @return static
    5354     */
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/x-wp/di/src/Invoker.php

    r3167131 r3181790  
    9696     * @template T of object
    9797     * @param  class-string<T> $classname The handler classname.
    98      * @return array<string,array<int,Can_Invoke<T>>>
     98     * @return array<string,array<int,Can_Invoke<T,Can_Handle<T>>>>
    9999     */
    100100    public function get_hooks( string $classname ): array {
     
    227227     */
    228228    protected function register_methods( Can_Handle $handler ): static {
    229         if ( $this->has_hooks( $handler->classname ) ) {
     229        if ( $this->has_hooks( $handler->classname ) || ! $handler->is_hookable() ) {
    230230            return $this;
    231231        }
     
    248248     *
    249249     * @template T of object
    250      * @param  Can_Handle<T>     $handler The handler to register the method for.
    251      * @param  \ReflectionMethod $m       The method to register.
    252      * @return array<int,Can_Invoke<T>>
    253      */
    254     private function register_method( Can_Handle $handler, \ReflectionMethod $m ) {
     250     * @template H of Can_Handle<T>
     251     *
     252     * @param  H                 $handler The handler to register the method for.
     253     * @param  \ReflectionMethod $method       The method to register.
     254     * @return array<int,Can_Invoke<T,H>>
     255     */
     256    private function register_method( Can_Handle $handler, \ReflectionMethod $method ) {
    255257        $hooks = array();
    256258
    257         foreach ( Reflection::get_decorators( $m, Can_Invoke::class ) as $hook ) {
     259        foreach ( Reflection::get_decorators( $method, Can_Invoke::class ) as $hook ) {
    258260            $hooks[] = $hook
    259                 ->with_handler( $handler )
    260                 ->with_target( $m->getName() )
    261                 ->with_reflector( $m );
     261            ->with_reflector( $method )
     262            ->with_target( $method->getName() )
     263            ->with_handler( $handler );
    262264        }
    263265
     
    312314        }
    313315
     316        \do_action( 'xwp_di_hooks_loaded_' . $handler->classname, $handler );
     317
    314318        return $this;
    315319    }
     
    319323     *
    320324     * @template T of object
    321      * @param  Can_Handle<T>                          $handler The handler to load hooks for.
    322      * @param  array<string,array<int,Can_Invoke<T>>> $hooks The hooks to load.
     325     * @template H of Can_Handle<T>
     326     * @param  H                                        $handler The handler to load hooks for.
     327     * @param  array<string,array<int,Can_Invoke<T,H>>> $hooks The hooks to load.
    323328     * @return static
    324329     */
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/x-wp/helper-functions/Array_Extra.php

    r3111341 r3181790  
    4040        return \array_intersect_key( $input_array, \array_flip( $keys ) );
    4141    }
     42
     43    final public static function from_string( string|array $target, string $delim ): array {
     44        if ( \is_array( $target ) ) {
     45            return $target;
     46        }
     47
     48        return \array_values(
     49            \array_filter(
     50                \array_map( 'trim', \explode( $delim, $target ) ),
     51                static fn( $v ) => '' !== $v,
     52            ),
     53        );
     54    }
    4255}
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/x-wp/helper-functions/Request.php

    r3155827 r3181790  
    77 */
    88final class Request {
     9    /**
     10     * Check if a REST namespace should be loaded. Useful to maintain site performance even when lots of REST namespaces are registered.
     11     *
     12     * @since 9.2.0.
     13     *
     14     * @param string        $space The namespace to check.
     15     * @param string        $route (Optional) The REST route being checked.
     16     * @param array<string> $known Known namespaces that we know are safe to not load if the request is not for them.
     17     *
     18     * @return bool True if the namespace should be loaded, false otherwise.
     19     */
     20    public static function should_load_rest_ns( string $space, ?string $route = null, array $known = array() ): bool {
     21        $route ??= $GLOBALS['wp']->query_vars['rest_route'] ?? false;
     22
     23        if ( ! $route ) {
     24            return true;
     25        }
     26
     27        $route = \trailingslashit( \ltrim( $route, '/' ) );
     28        $space = \trailingslashit( $space );
     29        $known = \array_map( 'trailingslashit', $known );
     30
     31        /**
     32         * Known namespaces that we know are safe to not load if the request is not for them.
     33         * Namespaces not in this namespace should always be loaded, because we don't know if they won't be making another internal REST request to an unloaded namespace.
     34         *
     35         * @param  array<string> $known_ns Known namespaces that we know are safe to not load if the request is not for them.
     36         * @param  string        $space    The namespace to check.
     37         * @param  string        $route    The REST route being checked.
     38         * @return array<string>
     39         *
     40         * @since 1.16.0
     41         */
     42        foreach ( \apply_filters( 'xwp_known_rest_namespaces', $known, $space, $route ) as $k ) {
     43            if ( \str_starts_with( $route, $k ) ) {
     44                return true;
     45            }
     46        }
     47
     48        $load = \str_starts_with( $route, $space );
     49
     50        /**
     51         * Filters whether a namespace should be loaded.
     52         *
     53         * @param bool   $load  True if the namespace should be loaded, false otherwise.
     54         * @param string $space The namespace to check.
     55         * @param string $route The REST route being checked.
     56         * @param array  $known Known namespaces that we know are safe to not load if the request is not for them.
     57         * @return bool
     58         *
     59         * @since 1.16.0
     60         */
     61        return \apply_filters( 'xwp_rest_can_load_namespace', $load, $space, $route, $known );
     62    }
     63
    964    /**
    1065     * Clean input data.
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/x-wp/helper-functions/composer.json

    r3170400 r3181790  
    3232    },
    3333    "files": [
    34       "xwp-helper-fns.php",
     34      "xwp-helper-fns-arr.php",
    3535      "xwp-helper-fns-num.php",
    36       "xwp-helper-fns-req.php"
     36      "xwp-helper-fns-req.php",
     37      "xwp-helper-fns.php"
    3738    ]
    3839  }
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/x-wp/helper-functions/xwp-helper-fns-num.php

    r3170400 r3181790  
    77 */
    88
    9 if ( ! function_exists( 'xwp_is_float_str' ) ) :
     9if ( ! function_exists( 'xwp_is_int_str' ) ) :
    1010
    1111    /**
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/x-wp/helper-functions/xwp-helper-fns-req.php

    r3167131 r3181790  
    88
    99use XWP\Helper\Functions as f;
     10
     11if ( ! function_exists( 'xwp_can_load_rest_ns' ) ) :
     12    /**
     13     * Check if a REST namespace should be loaded. Useful to maintain site performance even when lots of REST namespaces are registered.
     14     *
     15     * @param  string      $space The namespace to check.
     16     * @param  string|null $route REST route being checked. Optional.
     17     * @param  array       $known Known namespaces that we know are safe to not load if the request is not for them.
     18     * @return bool
     19     */
     20    function xwp_can_load_rest_ns( string $space, ?string $route = null, array $known = array() ): bool {
     21        return f\Request::should_load_rest_ns( $space, $route, $known );
     22    }
     23
     24endif;
    1025
    1126if ( ! function_exists( 'xwp_fetch_get_var' ) ) :
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/x-wp/helper-functions/xwp-helper-fns.php

    r3167131 r3181790  
    5050     */
    5151    function xwp_wpfs(
    52         string $method = null,
     52        string $method = WP_Filesystem_Direct::class,
    5353        array|bool $args = false,
    5454        string|bool $context = false,
     
    7979    ): WP_Filesystem_Base|bool|null {
    8080        return xwp_wpfs( null, $args, $context );
    81     }
    82 endif;
    83 
    84 if ( ! function_exists( 'xwp_array_flatmap' ) ) :
    85     /**
    86      * Flattens and maps an array.
    87      *
    88      * @template T The type of the elements in the input array.
    89      * @template R The type of the elements in the returned array.
    90      *
    91      * @param  callable(T): R      $callback    Function to apply to each element.
    92      * @param  array<array-key, T> $input_array  Array to flatten and map.
    93      *
    94      * @return array<array-key, R>
    95      */
    96     function xwp_array_flatmap( callable $callback, array $input_array ) {
    97         return f\Array_Extra::flatmap( $callback, $input_array );
    98     }
    99 endif;
    100 
    101 if ( ! function_exists( 'wp_array_flatmap' ) ) :
    102     /**
    103      * Flattens and maps an array.
    104      *
    105      * @template T The type of the elements in the input array.
    106      * @template R The type of the elements in the returned array.
    107      *
    108      * @param  array<array-key, T>|callable(T): R $callback    Function to apply to each element.
    109      * @param  array<array-key, T>|callable(T): R $input_array  Array to flatten and map.
    110      *
    111      * @return array<array-key, R>
    112      */
    113     function wp_array_flatmap( callable|array $callback, array|callable $input_array ) {
    114         return is_array( $input_array )
    115             ? xwp_array_flatmap( $callback, $input_array )
    116             : xwp_array_flatmap( $input_array, $callback );
    117     }
    118 endif;
    119 
    120 if ( ! function_exists( 'wp_array_flatmap_assoc' ) ) :
    121     /**
    122      * Flatten and map an associative array of arrays.
    123      *
    124      * @template R
    125      * @template T — Applies the callback to the elements of the given arrays
    126      *
    127      * @param  callable(T): R           $callback Callback function to run for each element in each array.
    128      * @param  array<string, <array<T>> $input    The input array.
    129      * @param  key-of<T>                $key      Key whose value will be used as the key for the returned array.
    130      * @param  bool                     $unkey    Optional. Whether to remove the key from the returned array. Default true.
    131      *
    132      * @return array<value-of<key-of<T>>, R> An array containing all the elements of arr1 after applying the callback function to each one.
    133      */
    134     function wp_array_flatmap_assoc( callable $callback, array $input, string $key, bool $unkey = true ) {
    135         return f\Array_Extra::flatmap_assoc( $callback, $input, $key, $unkey );
    136     }
    137 endif;
    138 
    139 if ( ! function_exists( 'wp_array_diff_assoc' ) ) :
    140     /**
    141      * Legacy function to extract a slice of an array not including the specified keys.
    142      *
    143      * @param  array $input_array Input array.
    144      * @param  array $keys        Keys to exclude.
    145      */
    146     function wp_array_diff_assoc( array $input_array, array $keys ) {
    147         return xwp_array_diff_assoc( $input_array, ...$keys );
    148     }
    149 endif;
    150 
    151 if ( ! function_exists( 'xwp_array_diff_assoc' ) ) :
    152     /**
    153      * Extracts a slice of array not including the specified keys.
    154      *
    155      * @template T The type of the elements in the input array.
    156      *
    157      * @param  array<string, T>     $input_array Input array.
    158      * @param  array<string>|string ...$keys     Keys to exclude.
    159      * @return array<string, T>                  Array with the keys removed.
    160      */
    161     function xwp_array_diff_assoc( array $input_array, string ...$keys ) {
    162         if ( is_array( $keys[0] ) ) {
    163             $keys = $keys[0];
    164         }
    165 
    166         return f\Array_Extra::diff_assoc( $input_array, $keys );
    167     }
    168 
    169 endif;
    170 
    171 if ( ! function_exists( 'wp_array_rekey' ) ) :
    172     /**
    173      * Rekey an array of arrays by a specific key.
    174      *
    175      * @param  array<string, array<string, mixed>> $arr The input array.
    176      * @param  string                              $key The key to rekey by.
    177      * @return array<string, array<string, mixed>>      The rekeyed array.
    178      */
    179     function wp_array_rekey( array $arr, string $key ): array {
    180         return f\Array_Extra::rekey( $arr, $key );
    181     }
    182 endif;
    183 
    184 if ( ! function_exists( 'xwp_array_slice_assoc' ) ) :
    185     /**
    186      * Extracts a slice of an array.
    187      *
    188      * @template T The type of the elements in the input array.
    189      *
    190      * @param  array<string, T> $input_array Input array.
    191      * @param  string           ...$keys     Keys to include.
    192      * @return array<string, T>              Array with only the keys specified.
    193      */
    194     function xwp_array_slice_assoc( array $input_array, string ...$keys ) {
    195         return f\Array_Extra::slice_assoc( $input_array, $keys );
    19681    }
    19782endif;
     
    274159    }
    275160endif;
     161
     162
     163if ( ! function_exists( 'xwp_str_to_bool' ) ) :
     164    /**
     165     * Convert a string to a boolean.
     166     *
     167     * @param  string|bool|null $str The string to convert.
     168     * @return bool
     169     */
     170    function xwp_str_to_bool( string|bool|null $str = '' ): bool {
     171        if ( is_bool( $str ) ) {
     172            return $str;
     173        }
     174
     175        if ( xwp_is_int_str( $str ) ) {
     176            return intval( $str ) > 0;
     177        }
     178
     179        return match ( strtolower( $str ) ) {
     180            'yes', 'true', 'on'  => true,
     181            'no', 'false', 'off' => false,
     182            default              => false,
     183        };
     184    }
     185endif;
     186
     187if ( ! function_exists( 'xwp_bool_to_str' ) ) :
     188    /**
     189     * Convert a boolean to a string.
     190     *
     191     * @param  bool $boolean The boolean to convert.
     192     * @return 'yes'|'no'
     193     */
     194    function xwp_bool_to_str( bool|string $boolean ): string {
     195        return xwp_str_to_bool( $boolean ) ? 'yes' : 'no';
     196    }
     197endif;
     198
     199
     200if ( ! function_exists( 'xwp_get_template' ) ) :
     201
     202    /**
     203     * Get a template passing variables and including the file.
     204     *
     205     * @param  string                   $template The template file.
     206     * @param  null|array<string,mixed> $params Optional. The variables to pass to the template file.
     207     *
     208     * @since 1.18.0
     209     */
     210    function xwp_get_template( string $template, ?array $params = null ): void {
     211        if ( ! file_exists( $template ) ) {
     212            _doing_it_wrong(
     213                __FUNCTION__,
     214                sprintf( 'The template file %s does not exist.', esc_html( basename( $template ) ), ),
     215                '1.0.0',
     216            );
     217            return;
     218        }
     219
     220        if ( is_array( $params ) && $params ) {
     221            //phpcs:ignore WordPress.PHP.DontExtract.extract_extract
     222            extract( $params );
     223        }
     224
     225        include $template;
     226    }
     227
     228endif;
     229
     230
     231if ( ! function_exists( 'xwp_get_template_html' ) ) :
     232
     233    /**
     234     * Like `xwp_get_template` but returns the HTML instead of outputting it.
     235     *
     236     * @param  string                   $template The template file.
     237     * @param  null|array<string,mixed> $params   Optional. The variables to pass to the template file.
     238     * @return string
     239     *
     240     * @since 1.18.0
     241     */
     242    function xwp_get_template_html( string $template, ?array $params = null ): string {
     243        ob_start();
     244        xwp_get_template( $template, $params );
     245        return (string) ob_get_clean();
     246    }
     247
     248endif;
  • serbian-addons-for-woocommerce/tags/3.9.3/vendor/x-wp/wc-template-customizer/src/Customizer_Base.php

    r3111341 r3181790  
    5151     * }>
    5252     */
    53     protected static array $file_def;
     53    protected static array $parsed_templates;
    5454
    5555    /**
     
    5858     * @var array<string, string>
    5959     */
    60     protected static array $templates;
     60    protected static array $custom_templates;
    6161
    6262    /**
     
    6565     * @var array<string>
    6666     */
    67     protected static array $locked;
     67    protected static array $locked_templates;
    6868
    6969    /**
     
    129129        static::$tokens   ??= $this->define_tokens();
    130130
    131         static::$file_def ??= $this->define_files();
    132         static::$templates ??= $this->define_templates();
    133         static::$locked    ??= $this->define_locked();
     131        static::$parsed_templates ??= $this->define_files();
     132        static::$custom_templates ??= $this->define_templates();
     133        static::$locked_templates ??= $this->define_locked();
    134134
    135135        static::$admin ??= $this->define_admin();
     
    245245     */
    246246    final protected function define_templates(): array {
    247         return \wp_list_pluck( static::$file_def, 'path' );
     247        return \wp_list_pluck( static::$parsed_templates, 'path' );
    248248    }
    249249
     
    254254     */
    255255    final protected function define_locked(): array {
    256         return \wp_list_pluck( static::$file_def, 'lock' );
     256        return \wp_list_pluck( static::$parsed_templates, 'lock' );
    257257    }
    258258
     
    263263     */
    264264    protected function define_admin(): ?Customizer_Admin {
    265         return \is_admin() ? new Customizer_Admin( static::$file_def ) : null;
     265        return \is_admin() ? new Customizer_Admin( static::$parsed_templates ) : null;
    266266    }
    267267
     
    290290     */
    291291    public function modify_template_path( string $path, string $name ): string {
    292         if ( ! isset( static::$templates[ $name ] ) ) {
     292        if ( ! isset( static::$custom_templates[ $name ] ) ) {
    293293            return $path;
    294294        }
    295295
    296         if ( ! static::$locked[ $name ] ) {
    297             $path = \locate_template( array( $name, \WC()->template_path() . $name ) );
    298         }
    299 
    300         return $path ?: static::$templates[ $name ];
     296        $path = static::$locked_templates[ $name ] === false
     297            ? \locate_template( array( $name, \WC()->template_path() . $name ) )
     298            : false;
     299
     300        return $path ?: static::$custom_templates[ $name ];
    301301    }
    302302}
  • serbian-addons-for-woocommerce/tags/3.9.3/woocommerce/checkout/payment-slip.php

    r3159568 r3181790  
    5252                            </tr>
    5353                            <tr>
    54 
    5554                                <td class="block-content large">
    5655                                    <?php echo wp_kses_post( $customer ); ?>
  • serbian-addons-for-woocommerce/trunk/dist/assets.json

    r3159568 r3181790  
    55  "images/qr-code.png": "images/qr-code.png",
    66  "js/admin/admin.js": "js/admin/admin.2afdfd.js",
    7   "js/front/main.js": "js/front/main.74e8ef.js"
     7  "js/front/main.js": "js/front/main.35f32e.js"
    88}
  • serbian-addons-for-woocommerce/trunk/dist/assets.php

    r3159568 r3181790  
    1515    'images/qr-code.png'     => 'images/qr-code.png',
    1616    'js/admin/admin.js'      => 'js/admin/admin.2afdfd.js',
    17     'js/front/main.js'       => 'js/front/main.74e8ef.js',
     17    'js/front/main.js'       => 'js/front/main.35f32e.js',
    1818);
  • serbian-addons-for-woocommerce/trunk/lib/App.php

    r3167131 r3181790  
    1414use XWP\DI\Decorators\Module;
    1515use XWP\DI\Interfaces\On_Initialize;
    16 use XWP_Asset_Retriever;
    1716
    1817/**
     
    3534)]
    3635class App implements On_Initialize {
    37     use XWP_Asset_Retriever;
    38 
    3936    /**
    4037     * DI Definitions
     
    4441    public static function configure(): array {
    4542        return array(
    46             'ips.basedir'          => \DI\factory(
     43            'ips.basedir'            => \DI\factory(
    4744                static fn() => \defined( 'WCRS_IPS_DIR' )
    4845                    ? WCRS_IPS_DIR
    4946                    : \wp_upload_dir()['basedir'] . '/wcrs-ips',
    5047            ),
    51             'ips.generator'        => \DI\factory(
     48            'ips.generator'          => \DI\factory(
    5249                static fn() => \class_exists( \Imagick::class )
    5350                    ? QR\QR_Generator_ImageMagick::class
    5451                    : QR\QR_Generator_GD::class
    5552            ),
    56             QRCode::class          => \DI\factory(
     53            QRCode::class            => \DI\factory(
    5754                static fn( QR\QR_Code_Options $opts ) => new QRCode( $opts )
    5855            ),
    59             Utils\Installer::class => \DI\factory( array( Utils\Installer::class, 'instance' ) ),
     56            Utils\Installer::class   => \DI\factory( array( Utils\Installer::class, 'instance' ) ),
     57            \XWP_Asset_Bundle::class => \DI\factory( static fn() => \XWP_Asset_Loader::get_bundle( 'wcrs' ) ),
    6058        );
    61     }
    62 
    63     /**
    64      * Constructor
    65      *
    66      * @param Config $config Config instance.
    67      */
    68     public function __construct( private Config $config ) {
    6959    }
    7060
     
    7363     */
    7464    public function on_initialize(): void {
    75         $this->load_bundle_config( WCRS_PLUGIN_PATH . 'config/assets.php' );
     65        \XWP_Asset_Loader::load_bundle( include WCRS_PLUGIN_PATH . 'config/assets.php' );
    7666    }
    7767
     
    119109     * @param  string $symbol   Currency symbol to change.
    120110     * @param  string $currency Currency we're changing.
     111     * @param  Config $config   Configuration service.
    121112     * @return string           Transliterated currency symbol
    122113     */
    123     #[Filter( tag: 'woocommerce_currency_symbol', priority: 99 )]
    124     public function change_currency_symbol( string $symbol, string $currency ): string {
    125         if ( ! $this->config->get( 'core', 'fix_currency_symbol' ) ) {
     114    #[Filter( tag: 'woocommerce_currency_symbol', priority: 99, invoke: Filter::INV_PROXIED, args: 2 )]
     115    public function change_currency_symbol( string $symbol, string $currency, Config $config ): string {
     116        if ( ! $config->get( 'core', 'fix_currency_symbol' ) ) {
    126117            return $symbol;
    127118        }
  • serbian-addons-for-woocommerce/trunk/lib/Core/Address_Field_Controller.php

    r3167131 r3181790  
    5151                $type_field,
    5252                array(
    53                     'default'     => $enabled_type,
    54                     'description' => \wcsrb_get_entity_types()[ $enabled_type ],
    55                     'type'        => 'hidden',
    56                     'value'       => $enabled_type,
     53                    'custom_attributes' => array(
     54                        'data-default' => $enabled_type,
     55                    ),
     56                    'default'           => $enabled_type,
     57                    'description'       => \wcsrb_get_entity_types()[ $enabled_type ],
     58                    'type'              => 'hidden',
    5759                ),
    5860            );
  • serbian-addons-for-woocommerce/trunk/lib/Functions/wcsrb-helpers.php

    r3159568 r3181790  
    6666    );
    6767}
     68
     69/**
     70 * Format a bank account number
     71 *
     72 * @param  string $acct   The account number.
     73 * @param  string $format The format to use. Short or long.
     74 * @param  string $sep    The separator to use.
     75 * @return string
     76 */
     77function wcsrb_format_bank_acct( string $acct, string $format = 'short', string $sep = '-' ): string {
     78    $acct   = str_replace( '-', '', $acct );
     79    $middle = ltrim( substr( $acct, 3, -2 ), '0' );
     80
     81    if ( 'short' !== $format ) {
     82        $middle = str_pad( $middle, 13, '0', STR_PAD_LEFT );
     83    }
     84
     85    return sprintf( '%1$s%4$s%2$s%4$s%3$s', substr( $acct, 0, 3 ), $middle, substr( $acct, -2 ), $sep );
     86}
  • serbian-addons-for-woocommerce/trunk/lib/Functions/wcsrb-payment-slip.php

    r3167131 r3181790  
    66 * @subpackage Utils
    77 */
    8 
    9 use chillerlan\QRCode\Common\EccLevel;
    10 use chillerlan\QRCode\Data\QRMatrix;
    118
    129/**
  • serbian-addons-for-woocommerce/trunk/lib/Gateway/Gateway_Payment_Slip.php

    r3170400 r3181790  
    1717use XWP\DI\Decorators\Filter;
    1818use XWP\DI\Decorators\Handler;
     19use XWP_Asset_Bundle;
    1920
    2021/**
     
    243244     * @return string           Modified email CSS.
    244245     */
    245     #[Filter( tag: 'woocommerce_email_styles', priority: 9999 )]
    246     public function add_css_to_emails( string $css, WC_Email $email ) {
     246    #[Filter( tag: 'woocommerce_email_styles', priority: 9999, invoke: Filter::INV_PROXIED, args: 2 )]
     247    public function add_css_to_emails( string $css, WC_Email $email, XWP_Asset_Bundle $bundle ) {
    247248        if ( 'customer_on_hold_order' === $email->id && \wcsrb_order_has_slip( $email->object, true ) ) {
    248             $css .= \WCSRB()->asset_data( 'css/email/template.css' ) . "\n";
    249             $css .= \WCSRB()->asset_data( 'css/front/main.css' ) . "\n";
     249            $css .= $bundle['css/email/template.css']->data() . "\n";
     250            $css .= $bundle['css/front/main.css']->data() . "\n";
    250251        }
    251252
  • serbian-addons-for-woocommerce/trunk/lib/Services/Config.php

    r3167131 r3181790  
    4646
    4747        $this->settings['company'] = array(
    48             'accounts'  => \wcsrb_get_bank_accounts(),
     48            'accounts'  => $this->get_bank_accounts(),
    4949            'address_1' => \get_option( 'woocommerce_store_address', '' ),
    5050            'address_2' => \get_option( 'woocommerce_store_address_2', '' ),
     
    5555            'postcode'  => \get_option( 'woocommerce_store_postcode', '' ),
    5656        );
     57    }
     58
     59    /**
     60     * Get the saved bank accounts.
     61     *
     62     * @return array<int,string>
     63     */
     64    private function get_bank_accounts(): array {
     65        $accounts = \get_option( 'woocommerce_store_bank_accounts', array() );
     66
     67        return \xwp_str_to_arr( $accounts['acct'] ?? $accounts );
    5768    }
    5869
  • serbian-addons-for-woocommerce/trunk/readme.txt

    r3170400 r3181790  
    88WC requires at least: 8.5
    99WC tested up to: 9.2
    10 Stable tag: 3.9.2
     10Stable tag: 3.9.3
    1111License: GPLv2 or later
    1212License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • serbian-addons-for-woocommerce/trunk/serbian-addons-for-woocommerce.php

    r3170400 r3181790  
    44 * Plugin URI:           https://oblak.studio/open-source/srpski-woocommerce
    55 * Description:          Various addons and tweaks that make WooCommerce compatible with Serbian bureaucracy.
    6  * Version:              3.9.2
     6 * Version:              3.9.3
    77 * Requires PHP:         8.0
    88 * Author:               Oblak Studio
     
    2727defined( 'WCRS_PLUGIN_BASE' ) || define( 'WCRS_PLUGIN_BASE', plugin_basename( WCRS_PLUGIN_FILE ) );
    2828defined( 'WCRS_PLUGIN_PATH' ) || define( 'WCRS_PLUGIN_PATH', plugin_dir_path( WCRS_PLUGIN_FILE ) );
    29 defined( 'WCRS_VERSION' )     || define( 'WCRS_VERSION', '3.9.2' );
     29defined( 'WCRS_VERSION' )     || define( 'WCRS_VERSION', '3.9.3' );
    3030// phpcs:enable WordPress.WhiteSpace.OperatorSpacing.SpacingBefore
    3131
    3232require __DIR__ . '/vendor/autoload_packages.php';
    3333
    34 wcsrb_init();
     34xwp_load_app(
     35    app: array(
     36        'compile'     => false,
     37        'compile_dir' => __DIR__ . '/cache',
     38        'id'          => 'wcsrb',
     39        'module'      => \Oblak\WCSRB\App::class,
     40    ),
     41    priority: -2,
     42);
  • serbian-addons-for-woocommerce/trunk/vendor/autoload.php

    r3167131 r3181790  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInitf15f7664b060de4a95ba0e02111b557f::getLoader();
     25return ComposerAutoloaderInit70816f8d2f2f8cd20b8d4badcf146258::getLoader();
  • serbian-addons-for-woocommerce/trunk/vendor/autoload_packages.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/trunk/vendor/automattic/jetpack-autoloader/CHANGELOG.md

    r3170400 r3181790  
    55The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
    66and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
     7
     8## [3.1.3] - 2024-11-04
     9### Added
     10- Enable test coverage. [#39961]
    711
    812## [3.1.2] - 2024-10-15
     
    386390- Add Custom Autoloader
    387391
     392[3.1.3]: https://github.com/Automattic/jetpack-autoloader/compare/v3.1.2...v3.1.3
    388393[3.1.2]: https://github.com/Automattic/jetpack-autoloader/compare/v3.1.1...v3.1.2
    389394[3.1.1]: https://github.com/Automattic/jetpack-autoloader/compare/v3.1.0...v3.1.1
  • serbian-addons-for-woocommerce/trunk/vendor/automattic/jetpack-autoloader/composer.json

    r3155827 r3181790  
    1919        "composer/composer": "^1.1 || ^2.0",
    2020        "yoast/phpunit-polyfills": "^1.1.1",
    21         "automattic/jetpack-changelogger": "^4.2.6"
     21        "automattic/jetpack-changelogger": "^4.2.8"
    2222    },
    2323    "autoload": {
     
    3232        "phpunit": [
    3333            "./vendor/phpunit/phpunit/phpunit --colors=always"
     34        ],
     35        "test-coverage": [
     36            "php -dpcov.directory=. ./vendor/bin/phpunit --coverage-php \"./tests/php/tmp/coverage-report.php\"",
     37            "php ./tests/php/bin/test-coverage.php \"$COVERAGE_DIR/php.cov\""
    3438        ],
    3539        "test-php": [
  • serbian-addons-for-woocommerce/trunk/vendor/automattic/jetpack-autoloader/src/AutoloadGenerator.php

    r3170400 r3181790  
    2222class AutoloadGenerator {
    2323
    24     const VERSION = '3.1.2';
     24    const VERSION = '3.1.3';
    2525
    2626    /**
  • serbian-addons-for-woocommerce/trunk/vendor/automattic/jetpack-constants/CHANGELOG.md

    r3155827 r3181790  
    55The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
    66and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
     7
     8## [2.0.5] - 2024-11-04
     9### Added
     10- Enable test coverage. [#39961]
    711
    812## [2.0.4] - 2024-08-23
     
    175179- Packages: Finish the constants package
    176180
     181[2.0.5]: https://github.com/Automattic/jetpack-constants/compare/v2.0.4...v2.0.5
    177182[2.0.4]: https://github.com/Automattic/jetpack-constants/compare/v2.0.3...v2.0.4
    178183[2.0.3]: https://github.com/Automattic/jetpack-constants/compare/v2.0.2...v2.0.3
  • serbian-addons-for-woocommerce/trunk/vendor/automattic/jetpack-constants/composer.json

    r3155827 r3181790  
    1010        "brain/monkey": "2.6.1",
    1111        "yoast/phpunit-polyfills": "^1.1.1",
    12         "automattic/jetpack-changelogger": "^4.2.6"
     12        "automattic/jetpack-changelogger": "^4.2.8"
    1313    },
    1414    "suggest": {
     
    2323        "phpunit": [
    2424            "./vendor/phpunit/phpunit/phpunit --colors=always"
     25        ],
     26        "test-coverage": [
     27            "php -dpcov.directory=. ./vendor/bin/phpunit --coverage-php \"$COVERAGE_DIR/php.cov\""
    2528        ],
    2629        "test-php": [
  • serbian-addons-for-woocommerce/trunk/vendor/composer/autoload_classmap.php

    r3167131 r3181790  
    1313    'Automattic\\Jetpack\\Autoloader\\ManifestGenerator' => $vendorDir . '/automattic/jetpack-autoloader/src/ManifestGenerator.php',
    1414    'Automattic\\Jetpack\\Constants' => $vendorDir . '/automattic/jetpack-constants/src/class-constants.php',
     15    'CURLStringFile' => $vendorDir . '/symfony/polyfill-php81/Resources/stubs/CURLStringFile.php',
    1516    'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
    1617    'DI\\Attribute\\Inject' => $vendorDir . '/php-di/php-di/src/Attribute/Inject.php',
     
    120121    'Oblak\\WCSRB\\Utils\\Installer' => $baseDir . '/lib/Utils/Installer.php',
    121122    'Oblak\\WCSRB\\Utils\\Template_Extender' => $baseDir . '/lib/Utils/Template_Extender.php',
    122     'Oblak\\WP\\Admin_Notice_Manager' => $vendorDir . '/oblak/admin-notice-manager/src/Admin_Notice_Manager.php',
    123123    'Oblak\\WP\\Base_Plugin_Installer' => $vendorDir . '/oblak/wp-plugin-installer/src/Base_Plugin_Installer.php',
    124124    'Oblak\\WP\\Update_Callback_Handler' => $vendorDir . '/oblak/wp-plugin-installer/src/Update_Callback_Handler.php',
     
    126126    'Psr\\Container\\ContainerInterface' => $vendorDir . '/psr/container/src/ContainerInterface.php',
    127127    'Psr\\Container\\NotFoundExceptionInterface' => $vendorDir . '/psr/container/src/NotFoundExceptionInterface.php',
     128    'ReturnTypeWillChange' => $vendorDir . '/symfony/polyfill-php81/Resources/stubs/ReturnTypeWillChange.php',
     129    'Symfony\\Polyfill\\Php81\\Php81' => $vendorDir . '/symfony/polyfill-php81/Php81.php',
    128130    'WP_Filesystem_Streaming' => $vendorDir . '/x-wp/helper-classes/WP/Filesystem_Streaming.php',
    129131    'XWC\\Admin\\Settings_Page_Base' => $vendorDir . '/x-wp/helper-woocommerce/Admin/Settings_Page_Base.php',
     
    132134    'XWC\\Template\\Customizer_Base' => $vendorDir . '/x-wp/wc-template-customizer/src/Customizer_Base.php',
    133135    'XWC\\Traits\\Settings_API_Methods' => $vendorDir . '/x-wp/helper-woocommerce/Traits/Settings_API_Methods.php',
     136    'XWP\\ANM\\Notice_Manager' => $vendorDir . '/x-wp/admin-notice-manager/src/Notice_Manager.php',
     137    'XWP\\ANM\\Notice_Repository' => $vendorDir . '/x-wp/admin-notice-manager/src/Notice_Repository.php',
    134138    'XWP\\DI\\App_Builder' => $vendorDir . '/x-wp/di/src/App_Builder.php',
    135139    'XWP\\DI\\App_Factory' => $vendorDir . '/x-wp/di/src/App_Factory.php',
     
    141145    'XWP\\DI\\Decorators\\Hook' => $vendorDir . '/x-wp/di/src/Decorators/Hook.php',
    142146    'XWP\\DI\\Decorators\\Module' => $vendorDir . '/x-wp/di/src/Decorators/Module.php',
     147    'XWP\\DI\\Decorators\\REST_Handler' => $vendorDir . '/x-wp/di/src/Decorators/REST_Handler.php',
     148    'XWP\\DI\\Decorators\\REST_Route' => $vendorDir . '/x-wp/di/src/Decorators/REST_Route.php',
    143149    'XWP\\DI\\Handler_Factory' => $vendorDir . '/x-wp/di/src/Handler_Factory.php',
    144150    'XWP\\DI\\Hook_Context' => $vendorDir . '/x-wp/di/src/Hook_Context.php',
     
    172178    'XWP\\Helper\\Traits\\Singleton_Ex' => $vendorDir . '/x-wp/helper-traits/Singleton_Ex.php',
    173179    'XWP\\Helper\\Traits\\View_Loader' => $vendorDir . '/x-wp/helper-traits/View_Loader.php',
     180    'XWP_Admin_Notice' => $vendorDir . '/x-wp/admin-notice-manager/src/Core/Notice.php',
    174181    'XWP_Asset_Bundle' => $vendorDir . '/x-wp/asset-loader/src/Core/Asset_Bundle.php',
    175182    'XWP_Asset_Loader' => $vendorDir . '/x-wp/asset-loader/src/Core/Asset_Loader.php',
  • serbian-addons-for-woocommerce/trunk/vendor/composer/autoload_files.php

    r3170400 r3181790  
    77
    88return array(
    9     '6c427d7d289e1cfc9c7756e71133bee6' => $vendorDir . '/x-wp/helper-functions/xwp-helper-fns.php',
     9    'e7e6bab1ed2be1042591496e1ad3e230' => $vendorDir . '/x-wp/helper-functions/xwp-helper-fns-arr.php',
    1010    '6f4d42339b919aad008d719d6274512f' => $vendorDir . '/x-wp/helper-functions/xwp-helper-fns-num.php',
    1111    'eac005e7ae06387970897430e20a14f8' => $vendorDir . '/x-wp/helper-functions/xwp-helper-fns-req.php',
     12    '6c427d7d289e1cfc9c7756e71133bee6' => $vendorDir . '/x-wp/helper-functions/xwp-helper-fns.php',
    1213    'b33e3d135e5d9e47d845c576147bda89' => $vendorDir . '/php-di/php-di/src/functions.php',
     14    '23c18046f52bef3eea034657bafda50f' => $vendorDir . '/symfony/polyfill-php81/bootstrap.php',
     15    'c4eb3dd9806877a728c0b0fecfd8a0a8' => $vendorDir . '/x-wp/admin-notice-manager/src/Functions/xwp-anm-fns.php',
     16    'fc42141d84284e25c97732976f63c9e2' => $vendorDir . '/x-wp/admin-notice-manager/src/Functions/xwp-anm-init.php',
    1317    '601305a3774ec67d18e3b43f7ff1eba8' => $vendorDir . '/oblak/serbian-validators/src/serbian-validator-utils.php',
    1418    'bbaf26909e2f3126d0f4bb53f73f87d1' => $vendorDir . '/oblak/serbian-validators/src/validate-jmbg.php',
     
    2125    '289d5db207f260edee5d940f2b0874b1' => $vendorDir . '/x-wp/di/src/Functions/xwp-di-helper-fns.php',
    2226    '7442b89bc178a54ca68a1f7be9a62dd1' => $baseDir . '/lib/Functions/wcsrb-address-field-fns.php',
    23     'f45becae259e3085ac94c414354b9e11' => $baseDir . '/lib/Functions/wcsrb-core.php',
    2427    '2cbbb54dca44ace1c636c9aedd6c2704' => $baseDir . '/lib/Functions/wcsrb-helpers.php',
    2528    '230a030de422f339e1c51f92a5d8d054' => $baseDir . '/lib/Functions/wcsrb-payment-slip.php',
  • serbian-addons-for-woocommerce/trunk/vendor/composer/autoload_psr4.php

    r3167131 r3181790  
    1414    'XWP\\Dependency\\' => array($vendorDir . '/x-wp/asset-loader/src'),
    1515    'XWP\\DI\\' => array($vendorDir . '/x-wp/di/src'),
     16    'XWP\\ANM\\' => array($vendorDir . '/x-wp/admin-notice-manager/src'),
    1617    'XWC\\Template\\' => array($vendorDir . '/x-wp/wc-template-customizer/src'),
    1718    'XWC\\' => array($vendorDir . '/x-wp/helper-woocommerce'),
     19    'Symfony\\Polyfill\\Php81\\' => array($vendorDir . '/symfony/polyfill-php81'),
    1820    'Psr\\Container\\' => array($vendorDir . '/psr/container/src'),
    19     'Oblak\\WP\\' => array($vendorDir . '/oblak/admin-notice-manager/src', $vendorDir . '/oblak/wp-plugin-installer/src'),
     21    'Oblak\\WP\\' => array($vendorDir . '/oblak/wp-plugin-installer/src'),
    2022    'Oblak\\WCSRB\\' => array($baseDir . '/lib'),
    2123    'Laravel\\SerializableClosure\\' => array($vendorDir . '/laravel/serializable-closure/src'),
  • serbian-addons-for-woocommerce/trunk/vendor/composer/autoload_real.php

    r3167131 r3181790  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitf15f7664b060de4a95ba0e02111b557f
     5class ComposerAutoloaderInit70816f8d2f2f8cd20b8d4badcf146258
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInitf15f7664b060de4a95ba0e02111b557f', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit70816f8d2f2f8cd20b8d4badcf146258', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInitf15f7664b060de4a95ba0e02111b557f', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit70816f8d2f2f8cd20b8d4badcf146258', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInitf15f7664b060de4a95ba0e02111b557f::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit70816f8d2f2f8cd20b8d4badcf146258::getInitializer($loader));
    3333
    3434        $loader->setClassMapAuthoritative(true);
    3535        $loader->register(true);
    3636
    37         $filesToLoad = \Composer\Autoload\ComposerStaticInitf15f7664b060de4a95ba0e02111b557f::$files;
     37        $filesToLoad = \Composer\Autoload\ComposerStaticInit70816f8d2f2f8cd20b8d4badcf146258::$files;
    3838        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3939            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • serbian-addons-for-woocommerce/trunk/vendor/composer/autoload_static.php

    r3170400 r3181790  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitf15f7664b060de4a95ba0e02111b557f
     7class ComposerStaticInit70816f8d2f2f8cd20b8d4badcf146258
    88{
    99    public static $files = array (
    10         '6c427d7d289e1cfc9c7756e71133bee6' => __DIR__ . '/..' . '/x-wp/helper-functions/xwp-helper-fns.php',
     10        'e7e6bab1ed2be1042591496e1ad3e230' => __DIR__ . '/..' . '/x-wp/helper-functions/xwp-helper-fns-arr.php',
    1111        '6f4d42339b919aad008d719d6274512f' => __DIR__ . '/..' . '/x-wp/helper-functions/xwp-helper-fns-num.php',
    1212        'eac005e7ae06387970897430e20a14f8' => __DIR__ . '/..' . '/x-wp/helper-functions/xwp-helper-fns-req.php',
     13        '6c427d7d289e1cfc9c7756e71133bee6' => __DIR__ . '/..' . '/x-wp/helper-functions/xwp-helper-fns.php',
    1314        'b33e3d135e5d9e47d845c576147bda89' => __DIR__ . '/..' . '/php-di/php-di/src/functions.php',
     15        '23c18046f52bef3eea034657bafda50f' => __DIR__ . '/..' . '/symfony/polyfill-php81/bootstrap.php',
     16        'c4eb3dd9806877a728c0b0fecfd8a0a8' => __DIR__ . '/..' . '/x-wp/admin-notice-manager/src/Functions/xwp-anm-fns.php',
     17        'fc42141d84284e25c97732976f63c9e2' => __DIR__ . '/..' . '/x-wp/admin-notice-manager/src/Functions/xwp-anm-init.php',
    1418        '601305a3774ec67d18e3b43f7ff1eba8' => __DIR__ . '/..' . '/oblak/serbian-validators/src/serbian-validator-utils.php',
    1519        'bbaf26909e2f3126d0f4bb53f73f87d1' => __DIR__ . '/..' . '/oblak/serbian-validators/src/validate-jmbg.php',
     
    2226        '289d5db207f260edee5d940f2b0874b1' => __DIR__ . '/..' . '/x-wp/di/src/Functions/xwp-di-helper-fns.php',
    2327        '7442b89bc178a54ca68a1f7be9a62dd1' => __DIR__ . '/../..' . '/lib/Functions/wcsrb-address-field-fns.php',
    24         'f45becae259e3085ac94c414354b9e11' => __DIR__ . '/../..' . '/lib/Functions/wcsrb-core.php',
    2528        '2cbbb54dca44ace1c636c9aedd6c2704' => __DIR__ . '/../..' . '/lib/Functions/wcsrb-helpers.php',
    2629        '230a030de422f339e1c51f92a5d8d054' => __DIR__ . '/../..' . '/lib/Functions/wcsrb-payment-slip.php',
     
    4144            'XWP\\Dependency\\' => 15,
    4245            'XWP\\DI\\' => 7,
     46            'XWP\\ANM\\' => 8,
    4347            'XWC\\Template\\' => 13,
    4448            'XWC\\' => 4,
    4549        ),
     50        'S' =>
     51        array (
     52            'Symfony\\Polyfill\\Php81\\' => 23,
     53        ),
    4654        'P' =>
    4755        array (
     
    100108            0 => __DIR__ . '/..' . '/x-wp/di/src',
    101109        ),
     110        'XWP\\ANM\\' =>
     111        array (
     112            0 => __DIR__ . '/..' . '/x-wp/admin-notice-manager/src',
     113        ),
    102114        'XWC\\Template\\' =>
    103115        array (
     
    108120            0 => __DIR__ . '/..' . '/x-wp/helper-woocommerce',
    109121        ),
     122        'Symfony\\Polyfill\\Php81\\' =>
     123        array (
     124            0 => __DIR__ . '/..' . '/symfony/polyfill-php81',
     125        ),
    110126        'Psr\\Container\\' =>
    111127        array (
     
    114130        'Oblak\\WP\\' =>
    115131        array (
    116             0 => __DIR__ . '/..' . '/oblak/admin-notice-manager/src',
    117             1 => __DIR__ . '/..' . '/oblak/wp-plugin-installer/src',
     132            0 => __DIR__ . '/..' . '/oblak/wp-plugin-installer/src',
    118133        ),
    119134        'Oblak\\WCSRB\\' =>
     
    146161        'Automattic\\Jetpack\\Autoloader\\ManifestGenerator' => __DIR__ . '/..' . '/automattic/jetpack-autoloader/src/ManifestGenerator.php',
    147162        'Automattic\\Jetpack\\Constants' => __DIR__ . '/..' . '/automattic/jetpack-constants/src/class-constants.php',
     163        'CURLStringFile' => __DIR__ . '/..' . '/symfony/polyfill-php81/Resources/stubs/CURLStringFile.php',
    148164        'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
    149165        'DI\\Attribute\\Inject' => __DIR__ . '/..' . '/php-di/php-di/src/Attribute/Inject.php',
     
    253269        'Oblak\\WCSRB\\Utils\\Installer' => __DIR__ . '/../..' . '/lib/Utils/Installer.php',
    254270        'Oblak\\WCSRB\\Utils\\Template_Extender' => __DIR__ . '/../..' . '/lib/Utils/Template_Extender.php',
    255         'Oblak\\WP\\Admin_Notice_Manager' => __DIR__ . '/..' . '/oblak/admin-notice-manager/src/Admin_Notice_Manager.php',
    256271        'Oblak\\WP\\Base_Plugin_Installer' => __DIR__ . '/..' . '/oblak/wp-plugin-installer/src/Base_Plugin_Installer.php',
    257272        'Oblak\\WP\\Update_Callback_Handler' => __DIR__ . '/..' . '/oblak/wp-plugin-installer/src/Update_Callback_Handler.php',
     
    259274        'Psr\\Container\\ContainerInterface' => __DIR__ . '/..' . '/psr/container/src/ContainerInterface.php',
    260275        'Psr\\Container\\NotFoundExceptionInterface' => __DIR__ . '/..' . '/psr/container/src/NotFoundExceptionInterface.php',
     276        'ReturnTypeWillChange' => __DIR__ . '/..' . '/symfony/polyfill-php81/Resources/stubs/ReturnTypeWillChange.php',
     277        'Symfony\\Polyfill\\Php81\\Php81' => __DIR__ . '/..' . '/symfony/polyfill-php81/Php81.php',
    261278        'WP_Filesystem_Streaming' => __DIR__ . '/..' . '/x-wp/helper-classes/WP/Filesystem_Streaming.php',
    262279        'XWC\\Admin\\Settings_Page_Base' => __DIR__ . '/..' . '/x-wp/helper-woocommerce/Admin/Settings_Page_Base.php',
     
    265282        'XWC\\Template\\Customizer_Base' => __DIR__ . '/..' . '/x-wp/wc-template-customizer/src/Customizer_Base.php',
    266283        'XWC\\Traits\\Settings_API_Methods' => __DIR__ . '/..' . '/x-wp/helper-woocommerce/Traits/Settings_API_Methods.php',
     284        'XWP\\ANM\\Notice_Manager' => __DIR__ . '/..' . '/x-wp/admin-notice-manager/src/Notice_Manager.php',
     285        'XWP\\ANM\\Notice_Repository' => __DIR__ . '/..' . '/x-wp/admin-notice-manager/src/Notice_Repository.php',
    267286        'XWP\\DI\\App_Builder' => __DIR__ . '/..' . '/x-wp/di/src/App_Builder.php',
    268287        'XWP\\DI\\App_Factory' => __DIR__ . '/..' . '/x-wp/di/src/App_Factory.php',
     
    274293        'XWP\\DI\\Decorators\\Hook' => __DIR__ . '/..' . '/x-wp/di/src/Decorators/Hook.php',
    275294        'XWP\\DI\\Decorators\\Module' => __DIR__ . '/..' . '/x-wp/di/src/Decorators/Module.php',
     295        'XWP\\DI\\Decorators\\REST_Handler' => __DIR__ . '/..' . '/x-wp/di/src/Decorators/REST_Handler.php',
     296        'XWP\\DI\\Decorators\\REST_Route' => __DIR__ . '/..' . '/x-wp/di/src/Decorators/REST_Route.php',
    276297        'XWP\\DI\\Handler_Factory' => __DIR__ . '/..' . '/x-wp/di/src/Handler_Factory.php',
    277298        'XWP\\DI\\Hook_Context' => __DIR__ . '/..' . '/x-wp/di/src/Hook_Context.php',
     
    305326        'XWP\\Helper\\Traits\\Singleton_Ex' => __DIR__ . '/..' . '/x-wp/helper-traits/Singleton_Ex.php',
    306327        'XWP\\Helper\\Traits\\View_Loader' => __DIR__ . '/..' . '/x-wp/helper-traits/View_Loader.php',
     328        'XWP_Admin_Notice' => __DIR__ . '/..' . '/x-wp/admin-notice-manager/src/Core/Notice.php',
    307329        'XWP_Asset_Bundle' => __DIR__ . '/..' . '/x-wp/asset-loader/src/Core/Asset_Bundle.php',
    308330        'XWP_Asset_Loader' => __DIR__ . '/..' . '/x-wp/asset-loader/src/Core/Asset_Loader.php',
     
    377399    {
    378400        return \Closure::bind(function () use ($loader) {
    379             $loader->prefixLengthsPsr4 = ComposerStaticInitf15f7664b060de4a95ba0e02111b557f::$prefixLengthsPsr4;
    380             $loader->prefixDirsPsr4 = ComposerStaticInitf15f7664b060de4a95ba0e02111b557f::$prefixDirsPsr4;
    381             $loader->classMap = ComposerStaticInitf15f7664b060de4a95ba0e02111b557f::$classMap;
     401            $loader->prefixLengthsPsr4 = ComposerStaticInit70816f8d2f2f8cd20b8d4badcf146258::$prefixLengthsPsr4;
     402            $loader->prefixDirsPsr4 = ComposerStaticInit70816f8d2f2f8cd20b8d4badcf146258::$prefixDirsPsr4;
     403            $loader->classMap = ComposerStaticInit70816f8d2f2f8cd20b8d4badcf146258::$classMap;
    382404
    383405        }, null, ClassLoader::class);
  • serbian-addons-for-woocommerce/trunk/vendor/composer/installed.json

    r3170400 r3181790  
    33        {
    44            "name": "automattic/jetpack-autoloader",
    5             "version": "v3.1.2",
    6             "version_normalized": "3.1.2.0",
     5            "version": "v3.1.3",
     6            "version_normalized": "3.1.3.0",
    77            "source": {
    88                "type": "git",
    99                "url": "https://github.com/Automattic/jetpack-autoloader.git",
    10                 "reference": "c111020cac7c6a830af6f6827c175e3c76a60f75"
    11             },
    12             "dist": {
    13                 "type": "zip",
    14                 "url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/c111020cac7c6a830af6f6827c175e3c76a60f75",
    15                 "reference": "c111020cac7c6a830af6f6827c175e3c76a60f75",
     10                "reference": "e7e49a4e2f16cb2dfd3e58c478499a60d7d51839"
     11            },
     12            "dist": {
     13                "type": "zip",
     14                "url": "https://api.github.com/repos/Automattic/jetpack-autoloader/zipball/e7e49a4e2f16cb2dfd3e58c478499a60d7d51839",
     15                "reference": "e7e49a4e2f16cb2dfd3e58c478499a60d7d51839",
    1616                "shasum": ""
    1717            },
     
    2121            },
    2222            "require-dev": {
    23                 "automattic/jetpack-changelogger": "^4.2.6",
     23                "automattic/jetpack-changelogger": "^4.2.8",
    2424                "composer/composer": "^1.1 || ^2.0",
    2525                "yoast/phpunit-polyfills": "^1.1.1"
    2626            },
    27             "time": "2024-10-15T22:10:35+00:00",
     27            "time": "2024-11-04T09:23:56+00:00",
    2828            "type": "composer-plugin",
    2929            "extra": {
     
    6464            ],
    6565            "support": {
    66                 "source": "https://github.com/Automattic/jetpack-autoloader/tree/v3.1.2"
     66                "source": "https://github.com/Automattic/jetpack-autoloader/tree/v3.1.3"
    6767            },
    6868            "install-path": "../automattic/jetpack-autoloader"
     
    7070        {
    7171            "name": "automattic/jetpack-constants",
    72             "version": "v2.0.4",
    73             "version_normalized": "2.0.4.0",
     72            "version": "v2.0.5",
     73            "version_normalized": "2.0.5.0",
    7474            "source": {
    7575                "type": "git",
    7676                "url": "https://github.com/Automattic/jetpack-constants.git",
    77                 "reference": "f6958c313a34c5e92171c45a57d9dc978e5975ed"
    78             },
    79             "dist": {
    80                 "type": "zip",
    81                 "url": "https://api.github.com/repos/Automattic/jetpack-constants/zipball/f6958c313a34c5e92171c45a57d9dc978e5975ed",
    82                 "reference": "f6958c313a34c5e92171c45a57d9dc978e5975ed",
     77                "reference": "0c2644d642b06ae2a31c561f5bfc6f74a4abc8f1"
     78            },
     79            "dist": {
     80                "type": "zip",
     81                "url": "https://api.github.com/repos/Automattic/jetpack-constants/zipball/0c2644d642b06ae2a31c561f5bfc6f74a4abc8f1",
     82                "reference": "0c2644d642b06ae2a31c561f5bfc6f74a4abc8f1",
    8383                "shasum": ""
    8484            },
     
    8787            },
    8888            "require-dev": {
    89                 "automattic/jetpack-changelogger": "^4.2.6",
     89                "automattic/jetpack-changelogger": "^4.2.8",
    9090                "brain/monkey": "2.6.1",
    9191                "yoast/phpunit-polyfills": "^1.1.1"
     
    9494                "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
    9595            },
    96             "time": "2024-08-23T14:28:14+00:00",
     96            "time": "2024-11-04T09:23:35+00:00",
    9797            "type": "jetpack-library",
    9898            "extra": {
     
    118118            "description": "A wrapper for defining constants in a more testable way.",
    119119            "support": {
    120                 "source": "https://github.com/Automattic/jetpack-constants/tree/v2.0.4"
     120                "source": "https://github.com/Automattic/jetpack-constants/tree/v2.0.5"
    121121            },
    122122            "install-path": "../automattic/jetpack-constants"
     
    354354        },
    355355        {
    356             "name": "oblak/admin-notice-manager",
    357             "version": "2.0.0",
    358             "version_normalized": "2.0.0.0",
    359             "source": {
    360                 "type": "git",
    361                 "url": "https://github.com/oblakstudio/admin-notice-manager.git",
    362                 "reference": "53a32b62d9799fd486adf0bb09aeb5d80a7a214d"
    363             },
    364             "dist": {
    365                 "type": "zip",
    366                 "url": "https://api.github.com/repos/oblakstudio/admin-notice-manager/zipball/53a32b62d9799fd486adf0bb09aeb5d80a7a214d",
    367                 "reference": "53a32b62d9799fd486adf0bb09aeb5d80a7a214d",
    368                 "shasum": ""
    369             },
    370             "require": {
    371                 "php": ">=7.3"
    372             },
    373             "require-dev": {
    374                 "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
    375                 "phpcompatibility/phpcompatibility-wp": "*",
    376                 "squizlabs/php_codesniffer": "3.*",
    377                 "wp-coding-standards/wpcs": "*"
    378             },
    379             "time": "2022-10-23T15:30:02+00:00",
    380             "type": "library",
    381             "installation-source": "dist",
    382             "autoload": {
    383                 "psr-4": {
    384                     "Oblak\\WP\\": "src/"
    385                 }
    386             },
    387             "notification-url": "https://packagist.org/downloads/",
    388             "license": [
    389                 "GPL-2.0-only"
    390             ],
    391             "description": "Admin Notice manager for WordPress Admin",
    392             "support": {
    393                 "issues": "https://github.com/oblakstudio/admin-notice-manager/issues",
    394                 "source": "https://github.com/oblakstudio/admin-notice-manager/tree/v2.0.0"
    395             },
    396             "install-path": "../oblak/admin-notice-manager"
    397         },
    398         {
    399356            "name": "oblak/serbian-validators",
    400357            "version": "1.1.1",
     
    448405        {
    449406            "name": "oblak/wp-plugin-installer",
    450             "version": "v2.1.3",
    451             "version_normalized": "2.1.3.0",
     407            "version": "v2.1.4",
     408            "version_normalized": "2.1.4.0",
    452409            "source": {
    453410                "type": "git",
    454411                "url": "https://github.com/oblakstudio/wp-plugin-installer.git",
    455                 "reference": "9a8726f5e659dd81e84ff8408b267829f8fa695a"
    456             },
    457             "dist": {
    458                 "type": "zip",
    459                 "url": "https://api.github.com/repos/oblakstudio/wp-plugin-installer/zipball/9a8726f5e659dd81e84ff8408b267829f8fa695a",
    460                 "reference": "9a8726f5e659dd81e84ff8408b267829f8fa695a",
     412                "reference": "e34702944c37cf834fb4ee303039cb66b00b979b"
     413            },
     414            "dist": {
     415                "type": "zip",
     416                "url": "https://api.github.com/repos/oblakstudio/wp-plugin-installer/zipball/e34702944c37cf834fb4ee303039cb66b00b979b",
     417                "reference": "e34702944c37cf834fb4ee303039cb66b00b979b",
    461418                "shasum": ""
    462419            },
    463420            "require": {
    464421                "automattic/jetpack-constants": "^2",
    465                 "oblak/admin-notice-manager": "^2",
    466422                "php": ">= 8.0",
    467                 "woocommerce/action-scheduler": "^3.7"
     423                "woocommerce/action-scheduler": "^3.7",
     424                "x-wp/admin-notice-manager": "^1.0"
    468425            },
    469426            "require-dev": {
    470427                "ergebnis/composer-normalize": "^2.42",
    471                 "oblak/wordpress-coding-standard": "^1"
     428                "oblak/wordpress-coding-standard": "^1",
     429                "wp-cli/wp-cli": "^2.11"
    472430            },
    473431            "suggest": {
    474432                "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
    475433            },
    476             "time": "2024-02-09T21:39:23+00:00",
     434            "time": "2024-11-01T12:02:40+00:00",
    477435            "type": "library",
    478436            "installation-source": "dist",
     
    498456            "support": {
    499457                "issues": "https://github.com/oblakstudio/wp-plugin-installer/issues",
    500                 "source": "https://github.com/oblakstudio/wp-plugin-installer/tree/v2.1.3"
     458                "source": "https://github.com/oblakstudio/wp-plugin-installer/tree/v2.1.4"
    501459            },
    502460            "install-path": "../oblak/wp-plugin-installer"
     
    693651        },
    694652        {
     653            "name": "symfony/polyfill-php81",
     654            "version": "v1.31.0",
     655            "version_normalized": "1.31.0.0",
     656            "source": {
     657                "type": "git",
     658                "url": "https://github.com/symfony/polyfill-php81.git",
     659                "reference": "4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c"
     660            },
     661            "dist": {
     662                "type": "zip",
     663                "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c",
     664                "reference": "4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c",
     665                "shasum": ""
     666            },
     667            "require": {
     668                "php": ">=7.2"
     669            },
     670            "time": "2024-09-09T11:45:10+00:00",
     671            "type": "library",
     672            "extra": {
     673                "thanks": {
     674                    "name": "symfony/polyfill",
     675                    "url": "https://github.com/symfony/polyfill"
     676                }
     677            },
     678            "installation-source": "dist",
     679            "autoload": {
     680                "files": [
     681                    "bootstrap.php"
     682                ],
     683                "psr-4": {
     684                    "Symfony\\Polyfill\\Php81\\": ""
     685                },
     686                "classmap": [
     687                    "Resources/stubs"
     688                ]
     689            },
     690            "notification-url": "https://packagist.org/downloads/",
     691            "license": [
     692                "MIT"
     693            ],
     694            "authors": [
     695                {
     696                    "name": "Nicolas Grekas",
     697                    "email": "p@tchwork.com"
     698                },
     699                {
     700                    "name": "Symfony Community",
     701                    "homepage": "https://symfony.com/contributors"
     702                }
     703            ],
     704            "description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions",
     705            "homepage": "https://symfony.com",
     706            "keywords": [
     707                "compatibility",
     708                "polyfill",
     709                "portable",
     710                "shim"
     711            ],
     712            "support": {
     713                "source": "https://github.com/symfony/polyfill-php81/tree/v1.31.0"
     714            },
     715            "funding": [
     716                {
     717                    "url": "https://symfony.com/sponsor",
     718                    "type": "custom"
     719                },
     720                {
     721                    "url": "https://github.com/fabpot",
     722                    "type": "github"
     723                },
     724                {
     725                    "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
     726                    "type": "tidelift"
     727                }
     728            ],
     729            "install-path": "../symfony/polyfill-php81"
     730        },
     731        {
    695732            "name": "woocommerce/action-scheduler",
    696733            "version": "3.8.2",
     
    739776        },
    740777        {
    741             "name": "x-wp/asset-loader",
    742             "version": "v1.0.0",
    743             "version_normalized": "1.0.0.0",
    744             "source": {
    745                 "type": "git",
    746                 "url": "https://github.com/x-wp/asset-loader.git",
    747                 "reference": "8198e2337bee579fc96a6f09e2c74fd745c98b6f"
    748             },
    749             "dist": {
    750                 "type": "zip",
    751                 "url": "https://api.github.com/repos/x-wp/asset-loader/zipball/8198e2337bee579fc96a6f09e2c74fd745c98b6f",
    752                 "reference": "8198e2337bee579fc96a6f09e2c74fd745c98b6f",
    753                 "shasum": ""
    754             },
    755             "require": {
    756                 "automattic/jetpack-constants": "^2.0",
     778            "name": "x-wp/admin-notice-manager",
     779            "version": "v1.0.1",
     780            "version_normalized": "1.0.1.0",
     781            "source": {
     782                "type": "git",
     783                "url": "https://github.com/x-wp/admin-notice-manager.git",
     784                "reference": "61bfbf90f90117d24af5130bbc80911b1c10f3cc"
     785            },
     786            "dist": {
     787                "type": "zip",
     788                "url": "https://api.github.com/repos/x-wp/admin-notice-manager/zipball/61bfbf90f90117d24af5130bbc80911b1c10f3cc",
     789                "reference": "61bfbf90f90117d24af5130bbc80911b1c10f3cc",
     790                "shasum": ""
     791            },
     792            "require": {
    757793                "php": ">=8.0",
    758                 "x-wp/helper-functions": "^1.9",
    759                 "x-wp/helper-traits": "^1.9"
    760             },
    761             "provide": {
    762                 "x-wp/asset-loader-implementation": "1.0"
     794                "x-wp/helper-functions": "^1.16",
     795                "x-wp/helper-traits": "^1.16"
     796            },
     797            "replace": {
     798                "oblak/admin-notice-manager": "*"
    763799            },
    764800            "require-dev": {
     
    774810                "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
    775811            },
    776             "time": "2024-09-17T12:29:39+00:00",
     812            "time": "2024-11-01T13:09:35+00:00",
     813            "type": "library",
     814            "installation-source": "dist",
     815            "autoload": {
     816                "files": [
     817                    "src/Functions/xwp-anm-fns.php",
     818                    "src/Functions/xwp-anm-init.php"
     819                ],
     820                "psr-4": {
     821                    "XWP\\ANM\\": "src/"
     822                },
     823                "classmap": [
     824                    "src/Core/"
     825                ]
     826            },
     827            "notification-url": "https://packagist.org/downloads/",
     828            "license": [
     829                "GPL-2.0-only"
     830            ],
     831            "authors": [
     832                {
     833                    "name": "Sibin Grasic",
     834                    "email": "i.am@sib.ing"
     835                }
     836            ],
     837            "description": "Simplifies the process of working with admin notices in WordPress.",
     838            "homepage": "https://extended.wp.rs/docs/packages/admin-notice-manager",
     839            "keywords": [
     840                "admin",
     841                "admin notices",
     842                "notices",
     843                "wordpress"
     844            ],
     845            "support": {
     846                "issues": "https://github.com/x-wp/admin-notice-manager/issues",
     847                "source": "https://github.com/x-wp/admin-notice-manager/tree/v1.0.1"
     848            },
     849            "install-path": "../x-wp/admin-notice-manager"
     850        },
     851        {
     852            "name": "x-wp/asset-loader",
     853            "version": "v1.1.1",
     854            "version_normalized": "1.1.1.0",
     855            "source": {
     856                "type": "git",
     857                "url": "https://github.com/x-wp/asset-loader.git",
     858                "reference": "f4a445e27fc913c20ab42ac7467b83514b750794"
     859            },
     860            "dist": {
     861                "type": "zip",
     862                "url": "https://api.github.com/repos/x-wp/asset-loader/zipball/f4a445e27fc913c20ab42ac7467b83514b750794",
     863                "reference": "f4a445e27fc913c20ab42ac7467b83514b750794",
     864                "shasum": ""
     865            },
     866            "require": {
     867                "automattic/jetpack-constants": "^2.0",
     868                "php": ">=8.0",
     869                "x-wp/helper-functions": "^1.18",
     870                "x-wp/helper-traits": "^1.9"
     871            },
     872            "provide": {
     873                "x-wp/asset-loader-implementation": "1.0"
     874            },
     875            "require-dev": {
     876                "oblak/wordpress-coding-standard": "^1",
     877                "php-stubs/wordpress-stubs": "^6.5",
     878                "phpstan/extension-installer": "^1.3",
     879                "phpstan/phpstan": "^1.10",
     880                "phpstan/phpstan-deprecation-rules": "^1.1",
     881                "swissspidy/phpstan-no-private": "^0.2.0",
     882                "szepeviktor/phpstan-wordpress": "^1.3"
     883            },
     884            "suggest": {
     885                "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
     886            },
     887            "time": "2024-11-04T19:51:33+00:00",
    777888            "type": "library",
    778889            "installation-source": "dist",
     
    801912            "support": {
    802913                "issues": "https://github.com/x-wp/asset-loader/issues",
    803                 "source": "https://github.com/x-wp/asset-loader/tree/v1.0.0"
     914                "source": "https://github.com/x-wp/asset-loader/tree/v1.1.1"
    804915            },
    805916            "install-path": "../x-wp/asset-loader"
     
    807918        {
    808919            "name": "x-wp/di",
    809             "version": "v1.0.0-beta.8",
    810             "version_normalized": "1.0.0.0-beta8",
     920            "version": "v1.0.0",
     921            "version_normalized": "1.0.0.0",
    811922            "source": {
    812923                "type": "git",
    813924                "url": "https://github.com/x-wp/di.git",
    814                 "reference": "5c6928fcc9181e3221c87a46f01234f59971a67a"
    815             },
    816             "dist": {
    817                 "type": "zip",
    818                 "url": "https://api.github.com/repos/x-wp/di/zipball/5c6928fcc9181e3221c87a46f01234f59971a67a",
    819                 "reference": "5c6928fcc9181e3221c87a46f01234f59971a67a",
     925                "reference": "3cea33921ef8cf1cab14a1da88ffe43d168bcce1"
     926            },
     927            "dist": {
     928                "type": "zip",
     929                "url": "https://api.github.com/repos/x-wp/di/zipball/3cea33921ef8cf1cab14a1da88ffe43d168bcce1",
     930                "reference": "3cea33921ef8cf1cab14a1da88ffe43d168bcce1",
    820931                "shasum": ""
    821932            },
     
    824935                "php": ">=8.0",
    825936                "php-di/php-di": "^7",
     937                "symfony/polyfill-php81": "^1.31",
    826938                "x-wp/helper-classes": "^1.13",
    827939                "x-wp/helper-functions": "^1.13"
    828940            },
     941            "conflict": {
     942                "oblak/wp-hook-di": "*"
     943            },
    829944            "provide": {
     945                "psr/container-implementation": "^1.0",
    830946                "x-wp/di-implementation": "^1.0"
     947            },
     948            "replace": {
     949                "x-wp/hook-invoker": "*"
    831950            },
    832951            "require-dev": {
     
    842961                "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
    843962            },
    844             "time": "2024-10-14T06:17:14+00:00",
     963            "time": "2024-11-03T17:43:29+00:00",
    845964            "type": "library",
    846965            "installation-source": "dist",
     
    875994            "support": {
    876995                "issues": "https://github.com/x-wp/hook-manager/issues",
    877                 "source": "https://github.com/x-wp/di/tree/v1.0.0-beta.8"
     996                "source": "https://github.com/x-wp/di/tree/v1.0.0"
    878997            },
    879998            "install-path": "../x-wp/di"
     
    8811000        {
    8821001            "name": "x-wp/helper-classes",
    883             "version": "v1.15.1",
    884             "version_normalized": "1.15.1.0",
     1002            "version": "v1.18.1",
     1003            "version_normalized": "1.18.1.0",
    8851004            "source": {
    8861005                "type": "git",
     
    9341053            "support": {
    9351054                "issues": "https://github.com/x-wp/helper-classes/issues",
    936                 "source": "https://github.com/x-wp/helper-classes/tree/v1.15.1"
     1055                "source": "https://github.com/x-wp/helper-classes/tree/v1.18.1"
    9371056            },
    9381057            "install-path": "../x-wp/helper-classes"
     
    9401059        {
    9411060            "name": "x-wp/helper-functions",
    942             "version": "v1.15.1",
    943             "version_normalized": "1.15.1.0",
     1061            "version": "v1.18.1",
     1062            "version_normalized": "1.18.1.0",
    9441063            "source": {
    9451064                "type": "git",
    9461065                "url": "https://github.com/x-wp/helper-functions.git",
    947                 "reference": "4a22f9db18cfe7a93a3cddaff5b7f83a9e3abef1"
    948             },
    949             "dist": {
    950                 "type": "zip",
    951                 "url": "https://api.github.com/repos/x-wp/helper-functions/zipball/4a22f9db18cfe7a93a3cddaff5b7f83a9e3abef1",
    952                 "reference": "4a22f9db18cfe7a93a3cddaff5b7f83a9e3abef1",
     1066                "reference": "edd258d0b2ad90a78893ffcabf6626cebf56a281"
     1067            },
     1068            "dist": {
     1069                "type": "zip",
     1070                "url": "https://api.github.com/repos/x-wp/helper-functions/zipball/edd258d0b2ad90a78893ffcabf6626cebf56a281",
     1071                "reference": "edd258d0b2ad90a78893ffcabf6626cebf56a281",
    9531072                "shasum": ""
    9541073            },
     
    9591078                "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
    9601079            },
    961             "time": "2024-10-11T21:23:12+00:00",
     1080            "time": "2024-11-04T00:58:34+00:00",
    9621081            "type": "library",
    9631082            "installation-source": "dist",
    9641083            "autoload": {
    9651084                "files": [
    966                     "xwp-helper-fns.php",
     1085                    "xwp-helper-fns-arr.php",
    9671086                    "xwp-helper-fns-num.php",
    968                     "xwp-helper-fns-req.php"
     1087                    "xwp-helper-fns-req.php",
     1088                    "xwp-helper-fns.php"
    9691089                ],
    9701090                "psr-4": {
     
    9941114            "support": {
    9951115                "issues": "https://github.com/x-wp/helper-functions/issues",
    996                 "source": "https://github.com/x-wp/helper-functions/tree/v1.15.1"
     1116                "source": "https://github.com/x-wp/helper-functions/tree/v1.18.1"
    9971117            },
    9981118            "install-path": "../x-wp/helper-functions"
     
    10001120        {
    10011121            "name": "x-wp/helper-traits",
    1002             "version": "v1.15.1",
    1003             "version_normalized": "1.15.1.0",
     1122            "version": "v1.18.1",
     1123            "version_normalized": "1.18.1.0",
    10041124            "source": {
    10051125                "type": "git",
     
    10491169            "support": {
    10501170                "issues": "https://github.com/x-wp/helper-traits/issues",
    1051                 "source": "https://github.com/x-wp/helper-traits/tree/v1.15.1"
     1171                "source": "https://github.com/x-wp/helper-traits/tree/v1.18.1"
    10521172            },
    10531173            "install-path": "../x-wp/helper-traits"
     
    10551175        {
    10561176            "name": "x-wp/helper-woocommerce",
    1057             "version": "v1.15.1",
    1058             "version_normalized": "1.15.1.0",
     1177            "version": "v1.18.1",
     1178            "version_normalized": "1.18.1.0",
    10591179            "source": {
    10601180                "type": "git",
    10611181                "url": "https://github.com/x-wp/helper-woocommerce.git",
    1062                 "reference": "b8c373d14fba2757f094ed56ae8649acef85f7ae"
    1063             },
    1064             "dist": {
    1065                 "type": "zip",
    1066                 "url": "https://api.github.com/repos/x-wp/helper-woocommerce/zipball/b8c373d14fba2757f094ed56ae8649acef85f7ae",
    1067                 "reference": "b8c373d14fba2757f094ed56ae8649acef85f7ae",
     1182                "reference": "8429f9ed7612fe2e09862548aba8d09b1324177f"
     1183            },
     1184            "dist": {
     1185                "type": "zip",
     1186                "url": "https://api.github.com/repos/x-wp/helper-woocommerce/zipball/8429f9ed7612fe2e09862548aba8d09b1324177f",
     1187                "reference": "8429f9ed7612fe2e09862548aba8d09b1324177f",
    10681188                "shasum": ""
    10691189            },
     
    10751195                "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
    10761196            },
    1077             "time": "2024-10-11T21:23:12+00:00",
     1197            "time": "2024-10-17T20:47:30+00:00",
    10781198            "type": "library",
    10791199            "installation-source": "dist",
     
    11031223            "support": {
    11041224                "issues": "https://github.com/x-wp/helper-woocommerce/issues",
    1105                 "source": "https://github.com/x-wp/helper-woocommerce/tree/v1.15.1"
     1225                "source": "https://github.com/x-wp/helper-woocommerce/tree/v1.18.1"
    11061226            },
    11071227            "install-path": "../x-wp/helper-woocommerce"
     
    11091229        {
    11101230            "name": "x-wp/wc-template-customizer",
    1111             "version": "v1.0.0",
    1112             "version_normalized": "1.0.0.0",
     1231            "version": "v1.0.2",
     1232            "version_normalized": "1.0.2.0",
    11131233            "source": {
    11141234                "type": "git",
    11151235                "url": "https://github.com/x-wp/wc-template-customizer.git",
    1116                 "reference": "cb4ce03bfd900908b4dd06a3bd47b960e2bc4706"
    1117             },
    1118             "dist": {
    1119                 "type": "zip",
    1120                 "url": "https://api.github.com/repos/x-wp/wc-template-customizer/zipball/cb4ce03bfd900908b4dd06a3bd47b960e2bc4706",
    1121                 "reference": "cb4ce03bfd900908b4dd06a3bd47b960e2bc4706",
     1236                "reference": "b38df4993b8fbefe0af0f27f44be4bb853418465"
     1237            },
     1238            "dist": {
     1239                "type": "zip",
     1240                "url": "https://api.github.com/repos/x-wp/wc-template-customizer/zipball/b38df4993b8fbefe0af0f27f44be4bb853418465",
     1241                "reference": "b38df4993b8fbefe0af0f27f44be4bb853418465",
    11221242                "shasum": ""
    11231243            },
     
    11391259                "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
    11401260            },
    1141             "time": "2024-07-02T19:27:36+00:00",
     1261            "time": "2024-10-20T17:39:43+00:00",
    11421262            "type": "library",
    11431263            "installation-source": "dist",
     
    11591279            "support": {
    11601280                "issues": "https://github.com/x-wp/wc-template-customizer/issues",
    1161                 "source": "https://github.com/x-wp/wc-template-customizer/tree/v1.0.0"
     1281                "source": "https://github.com/x-wp/wc-template-customizer/tree/v1.0.2"
    11621282            },
    11631283            "install-path": "../x-wp/wc-template-customizer"
  • serbian-addons-for-woocommerce/trunk/vendor/composer/installed.php

    r3170400 r3181790  
    2121        ),
    2222        'automattic/jetpack-autoloader' => array(
    23             'pretty_version' => 'v3.1.2',
    24             'version' => '3.1.2.0',
    25             'reference' => 'c111020cac7c6a830af6f6827c175e3c76a60f75',
     23            'pretty_version' => 'v3.1.3',
     24            'version' => '3.1.3.0',
     25            'reference' => 'e7e49a4e2f16cb2dfd3e58c478499a60d7d51839',
    2626            'type' => 'composer-plugin',
    2727            'install_path' => __DIR__ . '/../automattic/jetpack-autoloader',
     
    3030        ),
    3131        'automattic/jetpack-constants' => array(
    32             'pretty_version' => 'v2.0.4',
    33             'version' => '2.0.4.0',
    34             'reference' => 'f6958c313a34c5e92171c45a57d9dc978e5975ed',
     32            'pretty_version' => 'v2.0.5',
     33            'version' => '2.0.5.0',
     34            'reference' => '0c2644d642b06ae2a31c561f5bfc6f74a4abc8f1',
    3535            'type' => 'jetpack-library',
    3636            'install_path' => __DIR__ . '/../automattic/jetpack-constants',
     
    6666        ),
    6767        'oblak/admin-notice-manager' => array(
    68             'pretty_version' => '2.0.0',
    69             'version' => '2.0.0.0',
    70             'reference' => '53a32b62d9799fd486adf0bb09aeb5d80a7a214d',
    71             'type' => 'library',
    72             'install_path' => __DIR__ . '/../oblak/admin-notice-manager',
    73             'aliases' => array(),
    74             'dev_requirement' => false,
     68            'dev_requirement' => false,
     69            'replaced' => array(
     70                0 => '*',
     71            ),
    7572        ),
    7673        'oblak/serbian-validators' => array(
     
    8481        ),
    8582        'oblak/wp-plugin-installer' => array(
    86             'pretty_version' => 'v2.1.3',
    87             'version' => '2.1.3.0',
    88             'reference' => '9a8726f5e659dd81e84ff8408b267829f8fa695a',
     83            'pretty_version' => 'v2.1.4',
     84            'version' => '2.1.4.0',
     85            'reference' => 'e34702944c37cf834fb4ee303039cb66b00b979b',
    8986            'type' => 'library',
    9087            'install_path' => __DIR__ . '/../oblak/wp-plugin-installer',
     
    124121                0 => '^1.0',
    125122            ),
     123        ),
     124        'symfony/polyfill-php81' => array(
     125            'pretty_version' => 'v1.31.0',
     126            'version' => '1.31.0.0',
     127            'reference' => '4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c',
     128            'type' => 'library',
     129            'install_path' => __DIR__ . '/../symfony/polyfill-php81',
     130            'aliases' => array(),
     131            'dev_requirement' => false,
    126132        ),
    127133        'woocommerce/action-scheduler' => array(
     
    134140            'dev_requirement' => false,
    135141        ),
     142        'x-wp/admin-notice-manager' => array(
     143            'pretty_version' => 'v1.0.1',
     144            'version' => '1.0.1.0',
     145            'reference' => '61bfbf90f90117d24af5130bbc80911b1c10f3cc',
     146            'type' => 'library',
     147            'install_path' => __DIR__ . '/../x-wp/admin-notice-manager',
     148            'aliases' => array(),
     149            'dev_requirement' => false,
     150        ),
    136151        'x-wp/asset-loader' => array(
     152            'pretty_version' => 'v1.1.1',
     153            'version' => '1.1.1.0',
     154            'reference' => 'f4a445e27fc913c20ab42ac7467b83514b750794',
     155            'type' => 'library',
     156            'install_path' => __DIR__ . '/../x-wp/asset-loader',
     157            'aliases' => array(),
     158            'dev_requirement' => false,
     159        ),
     160        'x-wp/asset-loader-implementation' => array(
     161            'dev_requirement' => false,
     162            'provided' => array(
     163                0 => '1.0',
     164            ),
     165        ),
     166        'x-wp/di' => array(
    137167            'pretty_version' => 'v1.0.0',
    138168            'version' => '1.0.0.0',
    139             'reference' => '8198e2337bee579fc96a6f09e2c74fd745c98b6f',
    140             'type' => 'library',
    141             'install_path' => __DIR__ . '/../x-wp/asset-loader',
    142             'aliases' => array(),
    143             'dev_requirement' => false,
    144         ),
    145         'x-wp/asset-loader-implementation' => array(
    146             'dev_requirement' => false,
    147             'provided' => array(
    148                 0 => '1.0',
    149             ),
    150         ),
    151         'x-wp/di' => array(
    152             'pretty_version' => 'v1.0.0-beta.8',
    153             'version' => '1.0.0.0-beta8',
    154             'reference' => '5c6928fcc9181e3221c87a46f01234f59971a67a',
     169            'reference' => '3cea33921ef8cf1cab14a1da88ffe43d168bcce1',
    155170            'type' => 'library',
    156171            'install_path' => __DIR__ . '/../x-wp/di',
     
    165180        ),
    166181        'x-wp/helper-classes' => array(
    167             'pretty_version' => 'v1.15.1',
    168             'version' => '1.15.1.0',
     182            'pretty_version' => 'v1.18.1',
     183            'version' => '1.18.1.0',
    169184            'reference' => '451dff53964c2fbdf086882c868709e4e36fb1cd',
    170185            'type' => 'library',
     
    174189        ),
    175190        'x-wp/helper-functions' => array(
    176             'pretty_version' => 'v1.15.1',
    177             'version' => '1.15.1.0',
    178             'reference' => '4a22f9db18cfe7a93a3cddaff5b7f83a9e3abef1',
     191            'pretty_version' => 'v1.18.1',
     192            'version' => '1.18.1.0',
     193            'reference' => 'edd258d0b2ad90a78893ffcabf6626cebf56a281',
    179194            'type' => 'library',
    180195            'install_path' => __DIR__ . '/../x-wp/helper-functions',
     
    183198        ),
    184199        'x-wp/helper-traits' => array(
    185             'pretty_version' => 'v1.15.1',
    186             'version' => '1.15.1.0',
     200            'pretty_version' => 'v1.18.1',
     201            'version' => '1.18.1.0',
    187202            'reference' => '0367d136d6ba36e2ae0fe1854584ef760ea7cae9',
    188203            'type' => 'library',
     
    192207        ),
    193208        'x-wp/helper-woocommerce' => array(
    194             'pretty_version' => 'v1.15.1',
    195             'version' => '1.15.1.0',
    196             'reference' => 'b8c373d14fba2757f094ed56ae8649acef85f7ae',
     209            'pretty_version' => 'v1.18.1',
     210            'version' => '1.18.1.0',
     211            'reference' => '8429f9ed7612fe2e09862548aba8d09b1324177f',
    197212            'type' => 'library',
    198213            'install_path' => __DIR__ . '/../x-wp/helper-woocommerce',
     
    200215            'dev_requirement' => false,
    201216        ),
     217        'x-wp/hook-invoker' => array(
     218            'dev_requirement' => false,
     219            'replaced' => array(
     220                0 => '*',
     221            ),
     222        ),
    202223        'x-wp/wc-template-customizer' => array(
    203             'pretty_version' => 'v1.0.0',
    204             'version' => '1.0.0.0',
    205             'reference' => 'cb4ce03bfd900908b4dd06a3bd47b960e2bc4706',
     224            'pretty_version' => 'v1.0.2',
     225            'version' => '1.0.2.0',
     226            'reference' => 'b38df4993b8fbefe0af0f27f44be4bb853418465',
    206227            'type' => 'library',
    207228            'install_path' => __DIR__ . '/../x-wp/wc-template-customizer',
  • serbian-addons-for-woocommerce/trunk/vendor/composer/jetpack_autoload_classmap.php

    r3170400 r3181790  
    88return array(
    99    'Autoloader' => array(
    10         'version' => '3.1.2',
     10        'version' => '3.1.3',
    1111        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-autoloader.php'
    1212    ),
    1313    'Autoloader_Handler' => array(
    14         'version' => '3.1.2',
     14        'version' => '3.1.3',
    1515        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-autoloader-handler.php'
    1616    ),
    1717    'Autoloader_Locator' => array(
    18         'version' => '3.1.2',
     18        'version' => '3.1.3',
    1919        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-autoloader-locator.php'
    2020    ),
    2121    'Automattic\\Jetpack\\Autoloader\\AutoloadFileWriter' => array(
    22         'version' => '3.1.2',
     22        'version' => '3.1.3',
    2323        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadFileWriter.php'
    2424    ),
    2525    'Automattic\\Jetpack\\Autoloader\\AutoloadGenerator' => array(
    26         'version' => '3.1.2',
     26        'version' => '3.1.3',
    2727        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadGenerator.php'
    2828    ),
    2929    'Automattic\\Jetpack\\Autoloader\\AutoloadProcessor' => array(
    30         'version' => '3.1.2',
     30        'version' => '3.1.3',
    3131        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/AutoloadProcessor.php'
    3232    ),
    3333    'Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin' => array(
    34         'version' => '3.1.2',
     34        'version' => '3.1.3',
    3535        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php'
    3636    ),
    3737    'Automattic\\Jetpack\\Autoloader\\ManifestGenerator' => array(
    38         'version' => '3.1.2',
     38        'version' => '3.1.3',
    3939        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/ManifestGenerator.php'
    4040    ),
    4141    'Automattic\\Jetpack\\Constants' => array(
    42         'version' => '2.0.4.0',
     42        'version' => '2.0.5.0',
    4343        'path'    => $vendorDir . '/automattic/jetpack-constants/src/class-constants.php'
    4444    ),
     45    'CURLStringFile' => array(
     46        'version' => '1.31.0.0',
     47        'path'    => $vendorDir . '/symfony/polyfill-php81/Resources/stubs/CURLStringFile.php'
     48    ),
    4549    'Container' => array(
    46         'version' => '3.1.2',
     50        'version' => '3.1.3',
    4751        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-container.php'
    4852    ),
     
    280284    ),
    281285    'Hook_Manager' => array(
    282         'version' => '3.1.2',
     286        'version' => '3.1.3',
    283287        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-hook-manager.php'
    284288    ),
     
    400404    ),
    401405    'Latest_Autoloader_Guard' => array(
    402         'version' => '3.1.2',
     406        'version' => '3.1.3',
    403407        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-latest-autoloader-guard.php'
    404408    ),
    405409    'Manifest_Reader' => array(
    406         'version' => '3.1.2',
     410        'version' => '3.1.3',
    407411        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-manifest-reader.php'
    408412    ),
     
    483487        'path'    => $baseDir . '/lib/Utils/Template_Extender.php'
    484488    ),
    485     'Oblak\\WP\\Admin_Notice_Manager' => array(
    486         'version' => '2.0.0.0',
    487         'path'    => $vendorDir . '/oblak/admin-notice-manager/src/Admin_Notice_Manager.php'
    488     ),
    489489    'Oblak\\WP\\Base_Plugin_Installer' => array(
    490         'version' => '2.1.3.0',
     490        'version' => '2.1.4.0',
    491491        'path'    => $vendorDir . '/oblak/wp-plugin-installer/src/Base_Plugin_Installer.php'
    492492    ),
    493493    'Oblak\\WP\\Update_Callback_Handler' => array(
    494         'version' => '2.1.3.0',
     494        'version' => '2.1.4.0',
    495495        'path'    => $vendorDir . '/oblak/wp-plugin-installer/src/Update_Callback_Handler.php'
    496496    ),
    497497    'PHP_Autoloader' => array(
    498         'version' => '3.1.2',
     498        'version' => '3.1.3',
    499499        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-php-autoloader.php'
    500500    ),
    501501    'Path_Processor' => array(
    502         'version' => '3.1.2',
     502        'version' => '3.1.3',
    503503        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-path-processor.php'
    504504    ),
    505505    'Plugin_Locator' => array(
    506         'version' => '3.1.2',
     506        'version' => '3.1.3',
    507507        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-plugin-locator.php'
    508508    ),
    509509    'Plugins_Handler' => array(
    510         'version' => '3.1.2',
     510        'version' => '3.1.3',
    511511        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-plugins-handler.php'
    512512    ),
     
    523523        'path'    => $vendorDir . '/psr/container/src/NotFoundExceptionInterface.php'
    524524    ),
     525    'ReturnTypeWillChange' => array(
     526        'version' => '1.31.0.0',
     527        'path'    => $vendorDir . '/symfony/polyfill-php81/Resources/stubs/ReturnTypeWillChange.php'
     528    ),
    525529    'Shutdown_Handler' => array(
    526         'version' => '3.1.2',
     530        'version' => '3.1.3',
    527531        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-shutdown-handler.php'
    528532    ),
     533    'Symfony\\Polyfill\\Php81\\Php81' => array(
     534        'version' => '1.31.0.0',
     535        'path'    => $vendorDir . '/symfony/polyfill-php81/Php81.php'
     536    ),
    529537    'Version_Loader' => array(
    530         'version' => '3.1.2',
     538        'version' => '3.1.3',
    531539        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-version-loader.php'
    532540    ),
    533541    'Version_Selector' => array(
    534         'version' => '3.1.2',
     542        'version' => '3.1.3',
    535543        'path'    => $vendorDir . '/automattic/jetpack-autoloader/src/class-version-selector.php'
    536544    ),
    537545    'WP_Filesystem_Streaming' => array(
    538         'version' => '1.15.1.0',
     546        'version' => '1.18.1.0',
    539547        'path'    => $vendorDir . '/x-wp/helper-classes/WP/Filesystem_Streaming.php'
    540548    ),
    541549    'XWC\\Admin\\Settings_Page_Base' => array(
    542         'version' => '1.15.1.0',
     550        'version' => '1.18.1.0',
    543551        'path'    => $vendorDir . '/x-wp/helper-woocommerce/Admin/Settings_Page_Base.php'
    544552    ),
    545553    'XWC\\Gateway\\Gateway_Base' => array(
    546         'version' => '1.15.1.0',
     554        'version' => '1.18.1.0',
    547555        'path'    => $vendorDir . '/x-wp/helper-woocommerce/Gateway/Gateway_Base.php'
    548556    ),
    549557    'XWC\\Template\\Customizer_Admin' => array(
    550         'version' => '1.0.0.0',
     558        'version' => '1.0.2.0',
    551559        'path'    => $vendorDir . '/x-wp/wc-template-customizer/src/Customizer_Admin.php'
    552560    ),
    553561    'XWC\\Template\\Customizer_Base' => array(
    554         'version' => '1.0.0.0',
     562        'version' => '1.0.2.0',
    555563        'path'    => $vendorDir . '/x-wp/wc-template-customizer/src/Customizer_Base.php'
    556564    ),
    557565    'XWC\\Traits\\Settings_API_Methods' => array(
    558         'version' => '1.15.1.0',
     566        'version' => '1.18.1.0',
    559567        'path'    => $vendorDir . '/x-wp/helper-woocommerce/Traits/Settings_API_Methods.php'
    560568    ),
     569    'XWP\\ANM\\Notice_Manager' => array(
     570        'version' => '1.0.1.0',
     571        'path'    => $vendorDir . '/x-wp/admin-notice-manager/src/Notice_Manager.php'
     572    ),
     573    'XWP\\ANM\\Notice_Repository' => array(
     574        'version' => '1.0.1.0',
     575        'path'    => $vendorDir . '/x-wp/admin-notice-manager/src/Notice_Repository.php'
     576    ),
    561577    'XWP\\DI\\App_Builder' => array(
    562         'version' => '1.0.0.0-beta8',
     578        'version' => '1.0.0.0',
    563579        'path'    => $vendorDir . '/x-wp/di/src/App_Builder.php'
    564580    ),
    565581    'XWP\\DI\\App_Factory' => array(
    566         'version' => '1.0.0.0-beta8',
     582        'version' => '1.0.0.0',
    567583        'path'    => $vendorDir . '/x-wp/di/src/App_Factory.php'
    568584    ),
    569585    'XWP\\DI\\Decorators\\Action' => array(
    570         'version' => '1.0.0.0-beta8',
     586        'version' => '1.0.0.0',
    571587        'path'    => $vendorDir . '/x-wp/di/src/Decorators/Action.php'
    572588    ),
    573589    'XWP\\DI\\Decorators\\Ajax_Action' => array(
    574         'version' => '1.0.0.0-beta8',
     590        'version' => '1.0.0.0',
    575591        'path'    => $vendorDir . '/x-wp/di/src/Decorators/Ajax_Action.php'
    576592    ),
    577593    'XWP\\DI\\Decorators\\Ajax_Handler' => array(
    578         'version' => '1.0.0.0-beta8',
     594        'version' => '1.0.0.0',
    579595        'path'    => $vendorDir . '/x-wp/di/src/Decorators/Ajax_Handler.php'
    580596    ),
    581597    'XWP\\DI\\Decorators\\Filter' => array(
    582         'version' => '1.0.0.0-beta8',
     598        'version' => '1.0.0.0',
    583599        'path'    => $vendorDir . '/x-wp/di/src/Decorators/Filter.php'
    584600    ),
    585601    'XWP\\DI\\Decorators\\Handler' => array(
    586         'version' => '1.0.0.0-beta8',
     602        'version' => '1.0.0.0',
    587603        'path'    => $vendorDir . '/x-wp/di/src/Decorators/Handler.php'
    588604    ),
    589605    'XWP\\DI\\Decorators\\Hook' => array(
    590         'version' => '1.0.0.0-beta8',
     606        'version' => '1.0.0.0',
    591607        'path'    => $vendorDir . '/x-wp/di/src/Decorators/Hook.php'
    592608    ),
    593609    'XWP\\DI\\Decorators\\Module' => array(
    594         'version' => '1.0.0.0-beta8',
     610        'version' => '1.0.0.0',
    595611        'path'    => $vendorDir . '/x-wp/di/src/Decorators/Module.php'
    596612    ),
     613    'XWP\\DI\\Decorators\\REST_Handler' => array(
     614        'version' => '1.0.0.0',
     615        'path'    => $vendorDir . '/x-wp/di/src/Decorators/REST_Handler.php'
     616    ),
     617    'XWP\\DI\\Decorators\\REST_Route' => array(
     618        'version' => '1.0.0.0',
     619        'path'    => $vendorDir . '/x-wp/di/src/Decorators/REST_Route.php'
     620    ),
    597621    'XWP\\DI\\Handler_Factory' => array(
    598         'version' => '1.0.0.0-beta8',
     622        'version' => '1.0.0.0',
    599623        'path'    => $vendorDir . '/x-wp/di/src/Handler_Factory.php'
    600624    ),
    601625    'XWP\\DI\\Hook_Context' => array(
    602         'version' => '1.0.0.0-beta8',
     626        'version' => '1.0.0.0',
    603627        'path'    => $vendorDir . '/x-wp/di/src/Hook_Context.php'
    604628    ),
    605629    'XWP\\DI\\Interfaces\\Can_Handle' => array(
    606         'version' => '1.0.0.0-beta8',
     630        'version' => '1.0.0.0',
    607631        'path'    => $vendorDir . '/x-wp/di/src/Interfaces/Can_Handle.php'
    608632    ),
    609633    'XWP\\DI\\Interfaces\\Can_Hook' => array(
    610         'version' => '1.0.0.0-beta8',
     634        'version' => '1.0.0.0',
    611635        'path'    => $vendorDir . '/x-wp/di/src/Interfaces/Can_Hook.php'
    612636    ),
    613637    'XWP\\DI\\Interfaces\\Can_Invoke' => array(
    614         'version' => '1.0.0.0-beta8',
     638        'version' => '1.0.0.0',
    615639        'path'    => $vendorDir . '/x-wp/di/src/Interfaces/Can_Invoke.php'
    616640    ),
    617641    'XWP\\DI\\Interfaces\\On_Initialize' => array(
    618         'version' => '1.0.0.0-beta8',
     642        'version' => '1.0.0.0',
    619643        'path'    => $vendorDir . '/x-wp/di/src/Interfaces/On_Initialize.php'
    620644    ),
    621645    'XWP\\DI\\Invoker' => array(
    622         'version' => '1.0.0.0-beta8',
     646        'version' => '1.0.0.0',
    623647        'path'    => $vendorDir . '/x-wp/di/src/Invoker.php'
    624648    ),
    625649    'XWP\\DI\\Traits\\Accessible_Hook_Methods' => array(
    626         'version' => '1.0.0.0-beta8',
     650        'version' => '1.0.0.0',
    627651        'path'    => $vendorDir . '/x-wp/di/src/Traits/Accessible_Hook_Methods.php'
    628652    ),
    629653    'XWP\\DI\\Utils\\Reflection' => array(
    630         'version' => '1.0.0.0-beta8',
     654        'version' => '1.0.0.0',
    631655        'path'    => $vendorDir . '/x-wp/di/src/Utils/Reflection.php'
    632656    ),
    633657    'XWP\\Dependency\\Interfaces\\Can_Enqueue' => array(
    634         'version' => '1.0.0.0',
     658        'version' => '1.1.1.0',
    635659        'path'    => $vendorDir . '/x-wp/asset-loader/src/Interfaces/Can_Enqueue.php'
    636660    ),
    637661    'XWP\\Dependency\\Interfaces\\Can_Register' => array(
    638         'version' => '1.0.0.0',
     662        'version' => '1.1.1.0',
    639663        'path'    => $vendorDir . '/x-wp/asset-loader/src/Interfaces/Can_Register.php'
    640664    ),
    641665    'XWP\\Dependency\\Interfaces\\Has_Context' => array(
    642         'version' => '1.0.0.0',
     666        'version' => '1.1.1.0',
    643667        'path'    => $vendorDir . '/x-wp/asset-loader/src/Interfaces/Has_Context.php'
    644668    ),
    645669    'XWP\\Dependency\\Manifest' => array(
    646         'version' => '1.0.0.0',
     670        'version' => '1.1.1.0',
    647671        'path'    => $vendorDir . '/x-wp/asset-loader/src/Manifest.php'
    648672    ),
    649673    'XWP\\Dependency\\Resources\\Asset' => array(
    650         'version' => '1.0.0.0',
     674        'version' => '1.1.1.0',
    651675        'path'    => $vendorDir . '/x-wp/asset-loader/src/Resources/Asset.php'
    652676    ),
    653677    'XWP\\Dependency\\Resources\\File' => array(
    654         'version' => '1.0.0.0',
     678        'version' => '1.1.1.0',
    655679        'path'    => $vendorDir . '/x-wp/asset-loader/src/Resources/File.php'
    656680    ),
    657681    'XWP\\Dependency\\Resources\\Font' => array(
    658         'version' => '1.0.0.0',
     682        'version' => '1.1.1.0',
    659683        'path'    => $vendorDir . '/x-wp/asset-loader/src/Resources/Font.php'
    660684    ),
    661685    'XWP\\Dependency\\Resources\\Image' => array(
    662         'version' => '1.0.0.0',
     686        'version' => '1.1.1.0',
    663687        'path'    => $vendorDir . '/x-wp/asset-loader/src/Resources/Image.php'
    664688    ),
    665689    'XWP\\Dependency\\Resources\\Script' => array(
    666         'version' => '1.0.0.0',
     690        'version' => '1.1.1.0',
    667691        'path'    => $vendorDir . '/x-wp/asset-loader/src/Resources/Script.php'
    668692    ),
    669693    'XWP\\Dependency\\Resources\\Style' => array(
    670         'version' => '1.0.0.0',
     694        'version' => '1.1.1.0',
    671695        'path'    => $vendorDir . '/x-wp/asset-loader/src/Resources/Style.php'
    672696    ),
    673697    'XWP\\Helper\\Classes\\Reflection' => array(
    674         'version' => '1.15.1.0',
     698        'version' => '1.18.1.0',
    675699        'path'    => $vendorDir . '/x-wp/helper-classes/Reflection.php'
    676700    ),
    677701    'XWP\\Helper\\Classes\\Simple_Array_Object' => array(
    678         'version' => '1.15.1.0',
     702        'version' => '1.18.1.0',
    679703        'path'    => $vendorDir . '/x-wp/helper-classes/Simple_Array_Object.php'
    680704    ),
    681705    'XWP\\Helper\\Functions\\Array_Extra' => array(
    682         'version' => '1.15.1.0',
     706        'version' => '1.18.1.0',
    683707        'path'    => $vendorDir . '/x-wp/helper-functions/Array_Extra.php'
    684708    ),
    685709    'XWP\\Helper\\Functions\\Block' => array(
    686         'version' => '1.15.1.0',
     710        'version' => '1.18.1.0',
    687711        'path'    => $vendorDir . '/x-wp/helper-functions/Block.php'
    688712    ),
    689713    'XWP\\Helper\\Functions\\Hook_Remover' => array(
    690         'version' => '1.15.1.0',
     714        'version' => '1.18.1.0',
    691715        'path'    => $vendorDir . '/x-wp/helper-functions/Hook_Remover.php'
    692716    ),
    693717    'XWP\\Helper\\Functions\\Request' => array(
    694         'version' => '1.15.1.0',
     718        'version' => '1.18.1.0',
    695719        'path'    => $vendorDir . '/x-wp/helper-functions/Request.php'
    696720    ),
    697721    'XWP\\Helper\\Functions\\Term' => array(
    698         'version' => '1.15.1.0',
     722        'version' => '1.18.1.0',
    699723        'path'    => $vendorDir . '/x-wp/helper-functions/Term.php'
    700724    ),
    701725    'XWP\\Helper\\Functions\\WPFS' => array(
    702         'version' => '1.15.1.0',
     726        'version' => '1.18.1.0',
    703727        'path'    => $vendorDir . '/x-wp/helper-functions/WPFS.php'
    704728    ),
    705729    'XWP\\Helper\\Traits\\Array_Access' => array(
    706         'version' => '1.15.1.0',
     730        'version' => '1.18.1.0',
    707731        'path'    => $vendorDir . '/x-wp/helper-traits/Array_Access.php'
    708732    ),
    709733    'XWP\\Helper\\Traits\\Singleton' => array(
    710         'version' => '1.15.1.0',
     734        'version' => '1.18.1.0',
    711735        'path'    => $vendorDir . '/x-wp/helper-traits/Singleton.php'
    712736    ),
    713737    'XWP\\Helper\\Traits\\Singleton_Ex' => array(
    714         'version' => '1.15.1.0',
     738        'version' => '1.18.1.0',
    715739        'path'    => $vendorDir . '/x-wp/helper-traits/Singleton_Ex.php'
    716740    ),
    717741    'XWP\\Helper\\Traits\\View_Loader' => array(
    718         'version' => '1.15.1.0',
     742        'version' => '1.18.1.0',
    719743        'path'    => $vendorDir . '/x-wp/helper-traits/View_Loader.php'
    720744    ),
     745    'XWP_Admin_Notice' => array(
     746        'version' => '1.0.1.0',
     747        'path'    => $vendorDir . '/x-wp/admin-notice-manager/src/Core/Notice.php'
     748    ),
    721749    'XWP_Asset_Bundle' => array(
    722         'version' => '1.0.0.0',
     750        'version' => '1.1.1.0',
    723751        'path'    => $vendorDir . '/x-wp/asset-loader/src/Core/Asset_Bundle.php'
    724752    ),
    725753    'XWP_Asset_Loader' => array(
    726         'version' => '1.0.0.0',
     754        'version' => '1.1.1.0',
    727755        'path'    => $vendorDir . '/x-wp/asset-loader/src/Core/Asset_Loader.php'
    728756    ),
    729757    'XWP_Asset_Retriever' => array(
    730         'version' => '1.0.0.0',
     758        'version' => '1.1.1.0',
    731759        'path'    => $vendorDir . '/x-wp/asset-loader/src/Core/Asset_Retriever.php'
     760    ),
     761    'XWP_REST_Controller' => array(
     762        'version' => '1.0.0.0',
     763        'path'    => $vendorDir . '/x-wp/di/src/Core/REST_Controller.php'
    732764    ),
    733765    'chillerlan\\QRCode\\Common\\BitBuffer' => array(
  • serbian-addons-for-woocommerce/trunk/vendor/composer/jetpack_autoload_filemap.php

    r3170400 r3181790  
    77
    88return array(
    9     '6c427d7d289e1cfc9c7756e71133bee6' => array(
    10         'version' => '1.15.1.0',
    11         'path'    => $vendorDir . '/x-wp/helper-functions/xwp-helper-fns.php'
     9    'e7e6bab1ed2be1042591496e1ad3e230' => array(
     10        'version' => '1.18.1.0',
     11        'path'    => $vendorDir . '/x-wp/helper-functions/xwp-helper-fns-arr.php'
    1212    ),
    1313    '6f4d42339b919aad008d719d6274512f' => array(
    14         'version' => '1.15.1.0',
     14        'version' => '1.18.1.0',
    1515        'path'    => $vendorDir . '/x-wp/helper-functions/xwp-helper-fns-num.php'
    1616    ),
    1717    'eac005e7ae06387970897430e20a14f8' => array(
    18         'version' => '1.15.1.0',
     18        'version' => '1.18.1.0',
    1919        'path'    => $vendorDir . '/x-wp/helper-functions/xwp-helper-fns-req.php'
     20    ),
     21    '6c427d7d289e1cfc9c7756e71133bee6' => array(
     22        'version' => '1.18.1.0',
     23        'path'    => $vendorDir . '/x-wp/helper-functions/xwp-helper-fns.php'
    2024    ),
    2125    'b33e3d135e5d9e47d845c576147bda89' => array(
    2226        'version' => '7.0.7.0',
    2327        'path'    => $vendorDir . '/php-di/php-di/src/functions.php'
     28    ),
     29    '23c18046f52bef3eea034657bafda50f' => array(
     30        'version' => '1.31.0.0',
     31        'path'    => $vendorDir . '/symfony/polyfill-php81/bootstrap.php'
     32    ),
     33    'c4eb3dd9806877a728c0b0fecfd8a0a8' => array(
     34        'version' => '1.0.1.0',
     35        'path'    => $vendorDir . '/x-wp/admin-notice-manager/src/Functions/xwp-anm-fns.php'
     36    ),
     37    'fc42141d84284e25c97732976f63c9e2' => array(
     38        'version' => '1.0.1.0',
     39        'path'    => $vendorDir . '/x-wp/admin-notice-manager/src/Functions/xwp-anm-init.php'
    2440    ),
    2541    '601305a3774ec67d18e3b43f7ff1eba8' => array(
     
    4460    ),
    4561    '02b2f2d806f84ba3df3bd5d983b40927' => array(
    46         'version' => '2.1.3.0',
     62        'version' => '2.1.4.0',
    4763        'path'    => $vendorDir . '/oblak/wp-plugin-installer/src/wppi-as-loader.php'
    4864    ),
    4965    'e4ffa605a46af5dc51a06d0428d74700' => array(
    50         'version' => '1.0.0.0',
     66        'version' => '1.1.1.0',
    5167        'path'    => $vendorDir . '/x-wp/asset-loader/src/Functions/xwp-loader-init.php'
    5268    ),
    5369    '89887658aecc79fae17e75f8e6949680' => array(
    54         'version' => '1.0.0.0-beta8',
     70        'version' => '1.0.0.0',
    5571        'path'    => $vendorDir . '/x-wp/di/src/Functions/xwp-di-container-fns.php'
    5672    ),
    5773    '289d5db207f260edee5d940f2b0874b1' => array(
    58         'version' => '1.0.0.0-beta8',
     74        'version' => '1.0.0.0',
    5975        'path'    => $vendorDir . '/x-wp/di/src/Functions/xwp-di-helper-fns.php'
    6076    ),
     
    6278        'version' => '1.0.0.0',
    6379        'path'    => $baseDir . '/lib/Functions/wcsrb-address-field-fns.php'
    64     ),
    65     'f45becae259e3085ac94c414354b9e11' => array(
    66         'version' => '1.0.0.0',
    67         'path'    => $baseDir . '/lib/Functions/wcsrb-core.php'
    6880    ),
    6981    '2cbbb54dca44ace1c636c9aedd6c2704' => array(
  • serbian-addons-for-woocommerce/trunk/vendor/jetpack-autoloader/class-autoloader-handler.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/trunk/vendor/jetpack-autoloader/class-autoloader-locator.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/trunk/vendor/jetpack-autoloader/class-autoloader.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/trunk/vendor/jetpack-autoloader/class-container.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/trunk/vendor/jetpack-autoloader/class-hook-manager.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/trunk/vendor/jetpack-autoloader/class-latest-autoloader-guard.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/trunk/vendor/jetpack-autoloader/class-manifest-reader.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/trunk/vendor/jetpack-autoloader/class-path-processor.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/trunk/vendor/jetpack-autoloader/class-php-autoloader.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/trunk/vendor/jetpack-autoloader/class-plugin-locator.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/trunk/vendor/jetpack-autoloader/class-plugins-handler.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/trunk/vendor/jetpack-autoloader/class-shutdown-handler.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/trunk/vendor/jetpack-autoloader/class-version-loader.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/trunk/vendor/jetpack-autoloader/class-version-selector.php

    r3170400 r3181790  
    66 */
    77
    8 namespace Automattic\Jetpack\Autoloader\jpf15f7664b060de4a95ba0e02111b557f\al3_1_2;
     8namespace Automattic\Jetpack\Autoloader\jp70816f8d2f2f8cd20b8d4badcf146258\al3_1_3;
    99
    1010 // phpcs:ignore
  • serbian-addons-for-woocommerce/trunk/vendor/oblak/wp-plugin-installer/composer.json

    r3155827 r3181790  
    1313    "php": ">= 8.0",
    1414    "automattic/jetpack-constants": "^2",
    15     "oblak/admin-notice-manager": "^2",
    16     "woocommerce/action-scheduler": "^3.7"
     15    "woocommerce/action-scheduler": "^3.7",
     16    "x-wp/admin-notice-manager": "^1.0"
    1717  },
    1818  "require-dev": {
    1919    "ergebnis/composer-normalize": "^2.42",
    20     "oblak/wordpress-coding-standard": "^1"
     20    "oblak/wordpress-coding-standard": "^1",
     21    "wp-cli/wp-cli": "^2.11"
    2122  },
    2223  "suggest": {
     
    3233  },
    3334  "config": {
     35    "platform": {
     36      "php": "8.0"
     37    },
    3438    "allow-plugins": {
    3539      "automattic/jetpack-autoloader": true,
  • serbian-addons-for-woocommerce/trunk/vendor/oblak/wp-plugin-installer/src/Base_Plugin_Installer.php

    r3092652 r3181790  
    276276        }
    277277
    278         Admin_Notice_Manager::get_instance()->add_notice(
    279             "{$this->slug}_missing_tables",
    280             array(
    281                 'caps'        => 'manage_woocommerce',
    282                 'dismissible' => false,
    283                 'message'     => \sprintf(
    284                     '<p><strong>%s</strong> - %s: %s</p>',
    285                     \esc_html( $this->slug ),
    286                     \esc_html__( 'The following tables are missing: ', 'oblak-plugin-installer' ),
    287                     \implode( ', ', $missing_tables ),
     278        \xwp_get_notice( "{$this->slug}_missing_tables" )
     279            ->set_defaults()
     280            ->set_props(
     281                array(
     282                    'caps'        => 'manage_woocommerce',
     283                    'classes'     => 'alt',
     284                    'dismissible' => false,
     285                    'message'     => \sprintf(
     286                        '<p><strong>%s</strong> - %s: %s</p>',
     287                        \esc_html( $this->slug ),
     288                        \esc_html__( 'The following tables are missing: ', 'oblak-plugin-installer' ),
     289                        \implode( ', ', $missing_tables ),
     290                    ),
     291                    'persistent'  => true,
     292                    'type'        => 'error',
    288293                ),
    289                 'persistent'  => true,
    290                 'type'        => 'error',
    291             ),
    292             true,
    293         );
     294            )
     295            ->save( true );
    294296    }
    295297
     
    313315            $this->display_missing_tables_notice( $modify_notice );
    314316        } elseif ( $modify_notice && $this->show_admin_notices ) {
    315                 Admin_Notice_Manager::get_instance()->remove_notice( "{$this->slug}_missing_tables", true );
     317                \xwp_delete_notice( "{$this->slug}_missing_tables", true );
    316318        } else {
    317319            \update_option( "{$this->slug}_schema_version", $this->db_version );
     
    417419        $args = $this->get_notice_args( $name );
    418420
    419         Admin_Notice_Manager::get_instance()->add_notice(
    420             "{$this->slug}_update_notice",
    421             array(
    422                 'caps'        => 'manage_options',
    423                 'dismissible' => 'update-complete' === $file,
    424                 'file_args'   => $args,
    425                 'message'     => $file,
    426                 'persistent'  => false,
    427                 'type'        => 'info',
    428             ),
    429             true,
    430         );
     421        \xwp_get_notice( "{$this->slug}_update_notice" )
     422            ->set_defaults()
     423            ->set_props(
     424                array(
     425                    'caps'        => 'manage_options',
     426                    'dismissible' => 'update-complete' === $file,
     427                    'params'      => $args,
     428                    'persistent'  => false,
     429                    'template'    => $file,
     430                    'type'        => 'info',
     431                ),
     432            )
     433            ->save( true );
    431434    }
    432435
     
    638641        $progress->finish();
    639642
    640         Admin_Notice_Manager::get_instance()->remove_notice( "{$this->slug}_update_notice", true );
     643        \xwp_delete_notice( "{$this->slug}_update_notice", true );
    641644
    642645        WP_CLI::success(
     
    741744     */
    742745    public function debug_verify_db_tables() {
    743         Admin_Notice_Manager::get_instance()->remove_notice( "{$this->slug}_missing_tables", true );
     746        \xwp_delete_notice( "{$this->slug}_missing_tables", true );
    744747
    745748        $missing_tables = $this->verify_base_tables( false, true );
  • serbian-addons-for-woocommerce/trunk/vendor/x-wp/asset-loader/composer.json

    r3155827 r3181790  
    1212    "php": ">=8.0",
    1313    "automattic/jetpack-constants": "^2.0",
    14     "x-wp/helper-functions": "^1.9",
     14    "x-wp/helper-functions": "^1.18",
    1515    "x-wp/helper-traits": "^1.9"
    1616  },
  • serbian-addons-for-woocommerce/trunk/vendor/x-wp/asset-loader/src/Core/Asset_Bundle.php

    r3155827 r3181790  
    360360     * @return array<string,T>
    361361     */
    362     public function get( string $type ): array {
     362    public function collect( string $type ): array {
    363363        $found = array();
    364364
     
    373373        return $found;
    374374    }
     375
     376    /**
     377     * Get an asset by field.
     378     *
     379     * @param  string $id The ID of the asset to get.
     380     * @param  string $field The field to search by.
     381     * @return Style|Script|Image|Font|null
     382     */
     383    public function get( string $id, string $field = 'handle' ): Style|Script|Image|Font|null {
     384        foreach ( array_keys( $this->manifest ) as $src ) {
     385            if ( $id === $this[ $src ]->{"{$field}"}() ) {
     386                return $this[ $src ];
     387            }
     388        }
     389
     390        return null;
     391    }
    375392}
  • serbian-addons-for-woocommerce/trunk/vendor/x-wp/asset-loader/src/Resources/File.php

    r3155827 r3181790  
    5858     * Get the WP_Filesystem instance.
    5959     *
    60      * @return \WP_Filesystem_Base|null
     60     * @return \WP_Filesystem_Direct|null
    6161     */
    62     protected function wpfs(): ?\WP_Filesystem_Base {
    63         return \wp_load_filesystem() ?: null;
     62    protected function wpfs(): ?\WP_Filesystem_Direct {
     63        return \xwp_wpfs() ?: null;
     64    }
     65
     66    /**
     67     * Get the bundle instance.
     68     *
     69     * @return XWP_Asset_Bundle
     70     */
     71    public function bundle(): XWP_Asset_Bundle {
     72        return $this->bundle;
    6473    }
    6574
  • serbian-addons-for-woocommerce/trunk/vendor/x-wp/di/composer.json

    r3167131 r3181790  
    2525    "automattic/jetpack-constants": "^2",
    2626    "php-di/php-di": "^7",
     27    "symfony/polyfill-php81": "^1.31",
    2728    "x-wp/helper-classes": "^1.13",
    2829    "x-wp/helper-functions": "^1.13"
     
    3738    "szepeviktor/phpstan-wordpress": "^1.3"
    3839  },
     40  "conflict": {
     41    "oblak/wp-hook-di": "*"
     42  },
    3943  "provide": {
     44    "psr/container-implementation": "^1.0",
    4045    "x-wp/di-implementation": "^1.0"
     46  },
     47  "replace": {
     48    "x-wp/hook-invoker": "*"
    4149  },
    4250  "suggest": {
  • serbian-addons-for-woocommerce/trunk/vendor/x-wp/di/composer.lock

    r3167131 r3181790  
    55        "This file is @generated automatically"
    66    ],
    7     "content-hash": "5a76f9ef4bfd4bcfe1cfc7de0b6024ad",
     7    "content-hash": "3879411c4b4bea5e32cc13d31fdcb283",
    88    "packages": [
    99        {
     
    301301        },
    302302        {
     303            "name": "symfony/polyfill-php81",
     304            "version": "v1.31.0",
     305            "source": {
     306                "type": "git",
     307                "url": "https://github.com/symfony/polyfill-php81.git",
     308                "reference": "4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c"
     309            },
     310            "dist": {
     311                "type": "zip",
     312                "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c",
     313                "reference": "4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c",
     314                "shasum": ""
     315            },
     316            "require": {
     317                "php": ">=7.2"
     318            },
     319            "type": "library",
     320            "extra": {
     321                "thanks": {
     322                    "name": "symfony/polyfill",
     323                    "url": "https://github.com/symfony/polyfill"
     324                }
     325            },
     326            "autoload": {
     327                "files": [
     328                    "bootstrap.php"
     329                ],
     330                "psr-4": {
     331                    "Symfony\\Polyfill\\Php81\\": ""
     332                },
     333                "classmap": [
     334                    "Resources/stubs"
     335                ]
     336            },
     337            "notification-url": "https://packagist.org/downloads/",
     338            "license": [
     339                "MIT"
     340            ],
     341            "authors": [
     342                {
     343                    "name": "Nicolas Grekas",
     344                    "email": "p@tchwork.com"
     345                },
     346                {
     347                    "name": "Symfony Community",
     348                    "homepage": "https://symfony.com/contributors"
     349                }
     350            ],
     351            "description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions",
     352            "homepage": "https://symfony.com",
     353            "keywords": [
     354                "compatibility",
     355                "polyfill",
     356                "portable",
     357                "shim"
     358            ],
     359            "support": {
     360                "source": "https://github.com/symfony/polyfill-php81/tree/v1.31.0"
     361            },
     362            "funding": [
     363                {
     364                    "url": "https://symfony.com/sponsor",
     365                    "type": "custom"
     366                },
     367                {
     368                    "url": "https://github.com/fabpot",
     369                    "type": "github"
     370                },
     371                {
     372                    "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
     373                    "type": "tidelift"
     374                }
     375            ],
     376            "time": "2024-09-09T11:45:10+00:00"
     377        },
     378        {
    303379            "name": "x-wp/helper-classes",
    304             "version": "v1.14.0",
     380            "version": "v1.18.0",
    305381            "source": {
    306382                "type": "git",
     
    352428            "support": {
    353429                "issues": "https://github.com/x-wp/helper-classes/issues",
    354                 "source": "https://github.com/x-wp/helper-classes/tree/v1.14.0"
     430                "source": "https://github.com/x-wp/helper-classes/tree/v1.18.0"
    355431            },
    356432            "time": "2024-09-23T14:31:15+00:00"
     
    358434        {
    359435            "name": "x-wp/helper-functions",
    360             "version": "v1.14.0",
     436            "version": "v1.18.0",
    361437            "source": {
    362438                "type": "git",
    363439                "url": "https://github.com/x-wp/helper-functions.git",
    364                 "reference": "1b2dab0fbdedbaac6b9bc554eda79f804cb7ed97"
    365             },
    366             "dist": {
    367                 "type": "zip",
    368                 "url": "https://api.github.com/repos/x-wp/helper-functions/zipball/1b2dab0fbdedbaac6b9bc554eda79f804cb7ed97",
    369                 "reference": "1b2dab0fbdedbaac6b9bc554eda79f804cb7ed97",
     440                "reference": "1e3392e49d0fe95eb13e8980081b9ceb0268e0bd"
     441            },
     442            "dist": {
     443                "type": "zip",
     444                "url": "https://api.github.com/repos/x-wp/helper-functions/zipball/1e3392e49d0fe95eb13e8980081b9ceb0268e0bd",
     445                "reference": "1e3392e49d0fe95eb13e8980081b9ceb0268e0bd",
    370446                "shasum": ""
    371447            },
     
    379455            "autoload": {
    380456                "files": [
    381                     "xwp-helper-fns.php",
    382                     "xwp-helper-fns-req.php"
     457                    "xwp-helper-fns-arr.php",
     458                    "xwp-helper-fns-num.php",
     459                    "xwp-helper-fns-req.php",
     460                    "xwp-helper-fns.php"
    383461                ],
    384462                "psr-4": {
     
    408486            "support": {
    409487                "issues": "https://github.com/x-wp/helper-functions/issues",
    410                 "source": "https://github.com/x-wp/helper-functions/tree/v1.14.0"
    411             },
    412             "time": "2024-10-09T10:17:05+00:00"
     488                "source": "https://github.com/x-wp/helper-functions/tree/v1.18.0"
     489            },
     490            "time": "2024-10-29T22:53:16+00:00"
    413491        },
    414492        {
    415493            "name": "x-wp/helper-traits",
    416             "version": "v1.14.0",
     494            "version": "v1.18.0",
    417495            "source": {
    418496                "type": "git",
     
    460538            "support": {
    461539                "issues": "https://github.com/x-wp/helper-traits/issues",
    462                 "source": "https://github.com/x-wp/helper-traits/tree/v1.14.0"
     540                "source": "https://github.com/x-wp/helper-traits/tree/v1.18.0"
    463541            },
    464542            "time": "2024-09-18T12:43:44+00:00"
     
    10211099        {
    10221100            "name": "phpstan/phpdoc-parser",
    1023             "version": "1.32.0",
     1101            "version": "1.33.0",
    10241102            "source": {
    10251103                "type": "git",
    10261104                "url": "https://github.com/phpstan/phpdoc-parser.git",
    1027                 "reference": "6ca22b154efdd9e3c68c56f5d94670920a1c19a4"
    1028             },
    1029             "dist": {
    1030                 "type": "zip",
    1031                 "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/6ca22b154efdd9e3c68c56f5d94670920a1c19a4",
    1032                 "reference": "6ca22b154efdd9e3c68c56f5d94670920a1c19a4",
     1105                "reference": "82a311fd3690fb2bf7b64d5c98f912b3dd746140"
     1106            },
     1107            "dist": {
     1108                "type": "zip",
     1109                "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/82a311fd3690fb2bf7b64d5c98f912b3dd746140",
     1110                "reference": "82a311fd3690fb2bf7b64d5c98f912b3dd746140",
    10331111                "shasum": ""
    10341112            },
     
    10621140            "support": {
    10631141                "issues": "https://github.com/phpstan/phpdoc-parser/issues",
    1064                 "source": "https://github.com/phpstan/phpdoc-parser/tree/1.32.0"
    1065             },
    1066             "time": "2024-09-26T07:23:32+00:00"
     1142                "source": "https://github.com/phpstan/phpdoc-parser/tree/1.33.0"
     1143            },
     1144            "time": "2024-10-13T11:25:22+00:00"
    10671145        },
    10681146        {
    10691147            "name": "phpstan/phpstan",
    1070             "version": "1.12.6",
     1148            "version": "1.12.7",
    10711149            "source": {
    10721150                "type": "git",
    10731151                "url": "https://github.com/phpstan/phpstan.git",
    1074                 "reference": "dc4d2f145a88ea7141ae698effd64d9df46527ae"
    1075             },
    1076             "dist": {
    1077                 "type": "zip",
    1078                 "url": "https://api.github.com/repos/phpstan/phpstan/zipball/dc4d2f145a88ea7141ae698effd64d9df46527ae",
    1079                 "reference": "dc4d2f145a88ea7141ae698effd64d9df46527ae",
     1152                "reference": "dc2b9976bd8b0f84ec9b0e50cc35378551de7af0"
     1153            },
     1154            "dist": {
     1155                "type": "zip",
     1156                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/dc2b9976bd8b0f84ec9b0e50cc35378551de7af0",
     1157                "reference": "dc2b9976bd8b0f84ec9b0e50cc35378551de7af0",
    10801158                "shasum": ""
    10811159            },
     
    11221200                }
    11231201            ],
    1124             "time": "2024-10-06T15:03:59+00:00"
     1202            "time": "2024-10-18T11:12:07+00:00"
    11251203        },
    11261204        {
  • serbian-addons-for-woocommerce/trunk/vendor/x-wp/di/src/App_Builder.php

    r3167131 r3181790  
    2626     */
    2727    public static function configure( array $config = array() ): App_Builder {
    28         $config = static::getDefaultConfig( $config );
    29 
    3028        return ( new App_Builder() )
    3129            ->useAttributes( $config['attributes'] )
     
    3937    }
    4038
    41     /**
    42      * Get the default configuration.
    43      *
    44      * @param  array<string, mixed> $config Configuration options.
    45      * @return array<string, mixed>
    46      */
    47     protected static function getDefaultConfig( array $config ): array {
    48         return \wp_parse_args(
    49             $config,
    50             array(
    51                 'attributes'    => true,
    52                 'autowiring'    => true,
    53                 'compile'       => 'production' === \wp_get_environment_type(),
    54                 'compile_class' => 'CompiledContainer' . \strtoupper( $config['id'] ),
    55                 'compile_dir'   => __DIR__ . '/cache',
    56                 'proxies'       => false,
    57             ),
    58         );
    59     }
    60 
    6139    //phpcs:ignore Squiz.Commenting.FunctionComment.Missing
    6240    public function enableCompilation(
     
    6644        bool $compile = true,
    6745    ): static {
     46        if ( ! $compile ) {
     47            return $this;
     48        }
     49
     50        if ( ! \is_dir( $directory ) && ! \wp_mkdir_p( $directory ) ) {
     51            return $this;
     52        }
     53
    6854        // @phpstan-ignore return.type
    69         return $compile
    70             ? parent::enableCompilation( $directory, $containerClass, $containerParentClass )
    71             : $this;
     55        return parent::enableCompilation( $directory, $containerClass, $containerParentClass );
    7256    }
    7357
     
    8165     */
    8266    public function addDefinitions( string|array|DefinitionSource ...$definitions ): static {
    83         return \class_exists( $definitions[0] )
     67        return \is_string( $definitions[0] ) && \class_exists( $definitions[0] )
    8468            ? parent::addDefinitions( \xwp_register_module( $definitions[0] )->get_definitions() )
    8569            : parent::addDefinitions( ...$definitions );
  • serbian-addons-for-woocommerce/trunk/vendor/x-wp/di/src/App_Factory.php

    r3167131 r3181790  
    1515 * Create and manage DI containers.
    1616 *
    17  * @method static Container create(array $config)     Create a new container.
    18  * @method static Container get(string $container_id) Get a container instance.
     17 * @method static Container create( array $config)                                                        Create a new container.
     18 * @method static Container get( string $id )                                                             Get a container instance.
     19 * @method static void      extend( string $container, array $module, string $position, ?string $target ) Extend an application container definition.
     20 * @method static bool      decompile( string $id, bool $now )                                            Decompile a container.
    1921 */
    2022final class App_Factory {
     
    5254        }
    5355
     56        $config = $this->parse_config( $config );
     57
    5458        return $this->containers[ $config['id'] ] ??= App_Builder::configure( $config )
    5559            ->addDefinitions( $config['module'] )
     60            ->addDefinitions( array( 'xwp.app.config' => $config ) )
    5661            ->build();
     62    }
     63
     64    /**
     65     * Extend an application container definition.
     66     *
     67     * @param  string              $container Container ID.
     68     * @param  array<class-string> $module    Module classname or array of module classnames.
     69     * @param  'before'|'after'    $position  Position to insert the module.
     70     * @param  string|null         $target    Target module to extend.
     71     */
     72    protected function call_extend( string $container, array $module, string $position = 'after', ?string $target = null ): void {
     73        \add_filter(
     74            "xwp_extend_import_{$container}",
     75            static function ( array $imports, string $classname ) use( $module, $position, $target ): array {
     76                if ( $target && $target !== $classname ) {
     77                    return $imports;
     78                }
     79
     80                $params = 'after' === $position
     81                    ? array( $imports, $module )
     82                    : array( $module, $imports );
     83
     84                return \array_merge( ...$params );
     85            },
     86            10,
     87            2,
     88        );
    5789    }
    5890
     
    6698        return $this->containers[ $id ];
    6799    }
     100
     101    /**
     102     * Decompile a container.
     103     *
     104     * @param  string $id  Container ID.
     105     * @param  bool   $now Decompile now or on shutdown.
     106     * @return bool
     107     */
     108    protected function call_decompile( string $id, bool $now = false ): bool {
     109        $config = $this->containers[ $id ]->get( 'xwp.app.config' );
     110
     111        if ( ! $config['compile'] || ! \xwp_wpfs()->is_dir( $config['compile_dir'] ) ) {
     112            return false;
     113        }
     114
     115        $cb = static fn() => \xwp_wpfs()->rmdir( $config['compile_dir'], true );
     116
     117        // @phpstan-ignore return.void
     118        return ! $now ? \add_action( 'shutdown', $cb ) : $cb();
     119    }
     120
     121    /**
     122     * Get the default configuration.
     123     *
     124     * @param  array<string, mixed> $config Configuration options.
     125     * @return array<string, mixed>
     126     */
     127    protected function parse_config( array $config ): array {
     128        return \wp_parse_args(
     129            $config,
     130            array(
     131                'attributes'    => true,
     132                'autowiring'    => true,
     133                'compile'       => 'production' === \wp_get_environment_type(),
     134                'compile_class' => 'CompiledContainer' . \strtoupper( $config['id'] ),
     135                'compile_dir'   => \WP_CONTENT_DIR . '/cache/xwp-di/' . $config['id'],
     136                'proxies'       => false,
     137            ),
     138        );
     139    }
    68140}
  • serbian-addons-for-woocommerce/trunk/vendor/x-wp/di/src/Decorators/Action.php

    r3167131 r3181790  
    99namespace XWP\DI\Decorators;
    1010
     11use XWP\DI\Interfaces\Can_Handle;
     12
    1113/**
    1214 * Action hook decorator.
    1315 *
    1416 * @template T of object
    15  * @extends Filter<T>
     17 * @template H of Can_Handle<T>
     18 * @extends Filter<T,H>
    1619 *
    1720 * @since 1.0.0
  • serbian-addons-for-woocommerce/trunk/vendor/x-wp/di/src/Decorators/Ajax_Action.php

    r3167131 r3181790  
    1515 *
    1616 * @template T of object
    17  * @extends Action<T>
     17 * @template H of Ajax_Handler<T>
     18 * @extends Action<T,H>
    1819 */
    1920#[\Attribute( \Attribute::IS_REPEATABLE | \Attribute::TARGET_METHOD )]
  • serbian-addons-for-woocommerce/trunk/vendor/x-wp/di/src/Decorators/Filter.php

    r3167131 r3181790  
    2020 *
    2121 * @template T of object
     22 * @template H of Can_Handle<T>
    2223 * @extends Hook<T, ReflectionMethod>
    23  * @implements Can_Invoke<T>
     24 * @implements Can_Invoke<T,H>
    2425 */
    2526#[\Attribute( \Attribute::IS_REPEATABLE | \Attribute::TARGET_METHOD )]
     
    2829     * The handler.
    2930     *
    30      * @var Can_Handle<T>
     31     * @var H
    3132     */
    3233    protected Can_Handle $handler;
     
    100101     * Set the handler.
    101102     *
    102      * @param  Can_Handle<T> $handler The handler.
     103     * @param  H $handler The handler.
    103104     * @return static
    104105     */
  • serbian-addons-for-woocommerce/trunk/vendor/x-wp/di/src/Decorators/Handler.php

    r3170400 r3181790  
    5454     */
    5555    protected string $container_id;
     56
     57    /**
     58     * Is the handler hookable.
     59     *
     60     * @var bool
     61     */
     62    protected bool $hookable;
    5663
    5764    /**
     
    6572     * @param array<int,string>|string|false                 $modifiers   Values to replace in the tag name.
    6673     * @param string                                         $strategy    Initialization strategy.
     74     * @param bool                                           $hookable    Is the handler hookable.
    6775     */
    6876    public function __construct(
     
    7482        string|array|false $modifiers = false,
    7583        string $strategy = self::INIT_DEFFERED,
     84        bool $hookable = true,
    7685    ) {
    7786        $this->strategy     = $strategy;
    7887        $this->loaded       = self::INIT_DYNAMICALY === $strategy;
    7988        $this->container_id = $container;
     89        $this->hookable     = $hookable;
    8090
    8191        parent::__construct( $tag, $tag ? $priority : null, $context, $conditional, $modifiers );
     
    95105
    96106    public function with_container( ?string $container ): static {
    97         $this->container_id ??= $container;
     107        if ( null !== $container ) {
     108            $this->container_id ??= $container;
     109        }
    98110
    99111        return $this;
     
    132144        }
    133145
    134         $this->instance ??= $this->container->get( $this->classname );
     146        $this->instance ??= $this->initialize();
    135147
    136148        return $this->on_initialize();
     149    }
     150
     151    /**
     152     * Initialize the handler.
     153     *
     154     * @return T
     155     */
     156    protected function initialize(): object {
     157        return $this->container->get( $this->classname );
    137158    }
    138159
     
    146167
    147168        if ( \method_exists( $this->classname, 'on_initialize' ) ) {
    148             $this->target->on_initialize();
     169            $this->container->call( array( $this->classname, 'on_initialize' ) );
    149170        }
    150171
     
    194215        return self::INIT_ON_DEMAND === $this->strategy || self::INIT_JUST_IN_TIME === $this->strategy;
    195216    }
     217
     218    public function is_hookable(): bool {
     219        return $this->hookable;
     220    }
    196221}
  • serbian-addons-for-woocommerce/trunk/vendor/x-wp/di/src/Decorators/Module.php

    r3167131 r3181790  
    2929     * Constructor.
    3030     *
    31      * @param  string                  $container Container ID.
    32      * @param  string                  $hook      Hook name.
    33      * @param  int                     $priority  Hook priority.
    34      * @param  array<int,class-string> $imports   Array of submodules to import.
    35      * @param  array<int,class-string> $handlers  Array of handlers to register.
     31     * @param  string                  $container  Container ID.
     32     * @param  string                  $hook       Hook name.
     33     * @param  int                     $priority   Hook priority.
     34     * @param  array<int,class-string> $imports    Array of submodules to import.
     35     * @param  array<int,class-string> $handlers   Array of handlers to register.
     36     * @param  bool                    $extendable Is the module extendable.
    3637     */
    3738    public function __construct(
     
    5152         */
    5253        protected array $handlers = array(),
     54        /**
     55         * Is the module extendable?
     56         *
     57         * @var bool
     58         */
     59        protected bool $extendable = false,
    5360    ) {
    5461        parent::__construct(
     
    8390        $definitions = $this->get_definition();
    8491
    85         foreach ( $this->imports as $import ) {
     92        foreach ( $this->get_imports() as $import ) {
    8693            $module = $this->imported ? \xwp_get_module( $import ) : \xwp_register_module( $import );
    8794
     
    9299
    93100        return $definitions;
     101    }
     102
     103    /**
     104     * Get the module imports.
     105     *
     106     * @return array<int,class-string>
     107     */
     108    protected function get_imports(): array {
     109        if ( ! $this->extendable ) {
     110            return $this->imports;
     111        }
     112
     113        $tag = "xwp_extend_import_{$this->container_id}";
     114
     115        /**
     116         * Filter the module imports.
     117         *
     118         * @param  array<int,class-string> $imports    Array of submodules to import.
     119         * @param  class-string            $classname  Module classname.
     120         * @return array<int,class-string>
     121         *
     122         * @since 1.0@beta.8
     123         */
     124        return \apply_filters( $tag, $this->imports, $this->classname );
    94125    }
    95126
  • serbian-addons-for-woocommerce/trunk/vendor/x-wp/di/src/Functions/xwp-di-container-fns.php

    r3167131 r3181790  
    3131 *   compile_dir?: string,
    3232 *   proxies?: bool,
     33 * } $app Application configuration.
     34 * @param  string $hook     Hook to create the container on.
     35 * @param  int    $priority Hook priority.
     36 * @return true
     37 */
     38function xwp_load_app( array $app, string $hook = 'plugins_loaded', int $priority = PHP_INT_MIN ): bool {
     39    return add_action(
     40        $hook,
     41        static function () use( $app ): void {
     42            xwp_create_app( $app );
     43        },
     44        $priority,
     45    );
     46}
     47
     48/**
     49 * Create a new app container.
     50 *
     51 * @param  array{
     52 *   id: string,
     53 *   module: class-string,
     54 *   attributes?: bool,
     55 *   autowiring?: bool,
     56 *   compile?: bool,
     57 *   compile_class?: string,
     58 *   compile_dir?: string,
     59 *   proxies?: bool,
    3360 * } $args Application configuration.
    3461 * @return Container
     
    3764    return \XWP\DI\App_Factory::create( $args );
    3865}
     66
     67/**
     68 * Extend an application container definition.
     69 *
     70 * @param  string                     $container Container ID.
     71 * @param  string|array<class-string> $module    Module classname or array of module classnames.
     72 * @param  'before'|'after'           $position  Position to insert the module.
     73 * @param  string|null                $target    Target module to extend.
     74 */
     75function xwp_extend_app( string $container, string|array $module, string $position = 'after', ?string $target = null ): void {
     76    if ( ! is_array( $module ) ) {
     77        $module = array( $module );
     78    }
     79
     80    \XWP\DI\App_Factory::extend( $container, $module, $position, $target );
     81}
     82
     83/**
     84 * Decompile an application container.
     85 *
     86 * @param  string $container_id Container ID.
     87 * @param  bool   $immediately  Decompile now or on shutdown.
     88 * @return bool
     89 */
     90function xwp_decompile_app( string $container_id, bool $immediately = false ): bool {
     91    return \XWP\DI\App_Factory::decompile( $container_id, $immediately );
     92}
  • serbian-addons-for-woocommerce/trunk/vendor/x-wp/di/src/Interfaces/Can_Handle.php

    r3167131 r3181790  
    7272     */
    7373    public function is_lazy(): bool;
     74
     75    /**
     76     * Is the handler hookable?
     77     *
     78     * @return bool
     79     */
     80    public function is_hookable(): bool;
    7481}
  • serbian-addons-for-woocommerce/trunk/vendor/x-wp/di/src/Interfaces/Can_Invoke.php

    r3167131 r3181790  
    1212 * Defines decorators that can invoke WordPress hooks.
    1313 *
    14  * @template THndlr of object
    15  * @extends Can_Hook<THndlr,\ReflectionMethod>
     14 * @template TInst of object
     15 * @template THndl of Can_Handle<TInst>
     16 * @extends Can_Hook<TInst,\ReflectionMethod>
    1617 *
    1718 * @property-read bool $firing Is the hook firing?
    18  * @property-read int $fired   Number of times the hook has fired.
     19 * @property-read int  $fired   Number of times the hook has fired.
    1920
    20  * @property-read array{THndlr,string} $target The target method.
     21 * @property-read array{TInst,string} $target The target method.
     22 * @property-read Thndl $handler The handler instance.
    2123 */
    2224interface Can_Invoke extends Can_Hook {
     
    4850     * Set the handler instance.
    4951     *
    50      * @template Thndlr of object
    51      * @param  Can_Handle<Thndlr> $handler Handler instance.
     52     * @param  THndl $handler Handler instance.
    5253     * @return static
    5354     */
  • serbian-addons-for-woocommerce/trunk/vendor/x-wp/di/src/Invoker.php

    r3167131 r3181790  
    9696     * @template T of object
    9797     * @param  class-string<T> $classname The handler classname.
    98      * @return array<string,array<int,Can_Invoke<T>>>
     98     * @return array<string,array<int,Can_Invoke<T,Can_Handle<T>>>>
    9999     */
    100100    public function get_hooks( string $classname ): array {
     
    227227     */
    228228    protected function register_methods( Can_Handle $handler ): static {
    229         if ( $this->has_hooks( $handler->classname ) ) {
     229        if ( $this->has_hooks( $handler->classname ) || ! $handler->is_hookable() ) {
    230230            return $this;
    231231        }
     
    248248     *
    249249     * @template T of object
    250      * @param  Can_Handle<T>     $handler The handler to register the method for.
    251      * @param  \ReflectionMethod $m       The method to register.
    252      * @return array<int,Can_Invoke<T>>
    253      */
    254     private function register_method( Can_Handle $handler, \ReflectionMethod $m ) {
     250     * @template H of Can_Handle<T>
     251     *
     252     * @param  H                 $handler The handler to register the method for.
     253     * @param  \ReflectionMethod $method       The method to register.
     254     * @return array<int,Can_Invoke<T,H>>
     255     */
     256    private function register_method( Can_Handle $handler, \ReflectionMethod $method ) {
    255257        $hooks = array();
    256258
    257         foreach ( Reflection::get_decorators( $m, Can_Invoke::class ) as $hook ) {
     259        foreach ( Reflection::get_decorators( $method, Can_Invoke::class ) as $hook ) {
    258260            $hooks[] = $hook
    259                 ->with_handler( $handler )
    260                 ->with_target( $m->getName() )
    261                 ->with_reflector( $m );
     261            ->with_reflector( $method )
     262            ->with_target( $method->getName() )
     263            ->with_handler( $handler );
    262264        }
    263265
     
    312314        }
    313315
     316        \do_action( 'xwp_di_hooks_loaded_' . $handler->classname, $handler );
     317
    314318        return $this;
    315319    }
     
    319323     *
    320324     * @template T of object
    321      * @param  Can_Handle<T>                          $handler The handler to load hooks for.
    322      * @param  array<string,array<int,Can_Invoke<T>>> $hooks The hooks to load.
     325     * @template H of Can_Handle<T>
     326     * @param  H                                        $handler The handler to load hooks for.
     327     * @param  array<string,array<int,Can_Invoke<T,H>>> $hooks The hooks to load.
    323328     * @return static
    324329     */
  • serbian-addons-for-woocommerce/trunk/vendor/x-wp/helper-functions/Array_Extra.php

    r3111341 r3181790  
    4040        return \array_intersect_key( $input_array, \array_flip( $keys ) );
    4141    }
     42
     43    final public static function from_string( string|array $target, string $delim ): array {
     44        if ( \is_array( $target ) ) {
     45            return $target;
     46        }
     47
     48        return \array_values(
     49            \array_filter(
     50                \array_map( 'trim', \explode( $delim, $target ) ),
     51                static fn( $v ) => '' !== $v,
     52            ),
     53        );
     54    }
    4255}
  • serbian-addons-for-woocommerce/trunk/vendor/x-wp/helper-functions/Request.php

    r3155827 r3181790  
    77 */
    88final class Request {
     9    /**
     10     * Check if a REST namespace should be loaded. Useful to maintain site performance even when lots of REST namespaces are registered.
     11     *
     12     * @since 9.2.0.
     13     *
     14     * @param string        $space The namespace to check.
     15     * @param string        $route (Optional) The REST route being checked.
     16     * @param array<string> $known Known namespaces that we know are safe to not load if the request is not for them.
     17     *
     18     * @return bool True if the namespace should be loaded, false otherwise.
     19     */
     20    public static function should_load_rest_ns( string $space, ?string $route = null, array $known = array() ): bool {
     21        $route ??= $GLOBALS['wp']->query_vars['rest_route'] ?? false;
     22
     23        if ( ! $route ) {
     24            return true;
     25        }
     26
     27        $route = \trailingslashit( \ltrim( $route, '/' ) );
     28        $space = \trailingslashit( $space );
     29        $known = \array_map( 'trailingslashit', $known );
     30
     31        /**
     32         * Known namespaces that we know are safe to not load if the request is not for them.
     33         * Namespaces not in this namespace should always be loaded, because we don't know if they won't be making another internal REST request to an unloaded namespace.
     34         *
     35         * @param  array<string> $known_ns Known namespaces that we know are safe to not load if the request is not for them.
     36         * @param  string        $space    The namespace to check.
     37         * @param  string        $route    The REST route being checked.
     38         * @return array<string>
     39         *
     40         * @since 1.16.0
     41         */
     42        foreach ( \apply_filters( 'xwp_known_rest_namespaces', $known, $space, $route ) as $k ) {
     43            if ( \str_starts_with( $route, $k ) ) {
     44                return true;
     45            }
     46        }
     47
     48        $load = \str_starts_with( $route, $space );
     49
     50        /**
     51         * Filters whether a namespace should be loaded.
     52         *
     53         * @param bool   $load  True if the namespace should be loaded, false otherwise.
     54         * @param string $space The namespace to check.
     55         * @param string $route The REST route being checked.
     56         * @param array  $known Known namespaces that we know are safe to not load if the request is not for them.
     57         * @return bool
     58         *
     59         * @since 1.16.0
     60         */
     61        return \apply_filters( 'xwp_rest_can_load_namespace', $load, $space, $route, $known );
     62    }
     63
    964    /**
    1065     * Clean input data.
  • serbian-addons-for-woocommerce/trunk/vendor/x-wp/helper-functions/composer.json

    r3170400 r3181790  
    3232    },
    3333    "files": [
    34       "xwp-helper-fns.php",
     34      "xwp-helper-fns-arr.php",
    3535      "xwp-helper-fns-num.php",
    36       "xwp-helper-fns-req.php"
     36      "xwp-helper-fns-req.php",
     37      "xwp-helper-fns.php"
    3738    ]
    3839  }
  • serbian-addons-for-woocommerce/trunk/vendor/x-wp/helper-functions/xwp-helper-fns-num.php

    r3170400 r3181790  
    77 */
    88
    9 if ( ! function_exists( 'xwp_is_float_str' ) ) :
     9if ( ! function_exists( 'xwp_is_int_str' ) ) :
    1010
    1111    /**
  • serbian-addons-for-woocommerce/trunk/vendor/x-wp/helper-functions/xwp-helper-fns-req.php

    r3167131 r3181790  
    88
    99use XWP\Helper\Functions as f;
     10
     11if ( ! function_exists( 'xwp_can_load_rest_ns' ) ) :
     12    /**
     13     * Check if a REST namespace should be loaded. Useful to maintain site performance even when lots of REST namespaces are registered.
     14     *
     15     * @param  string      $space The namespace to check.
     16     * @param  string|null $route REST route being checked. Optional.
     17     * @param  array       $known Known namespaces that we know are safe to not load if the request is not for them.
     18     * @return bool
     19     */
     20    function xwp_can_load_rest_ns( string $space, ?string $route = null, array $known = array() ): bool {
     21        return f\Request::should_load_rest_ns( $space, $route, $known );
     22    }
     23
     24endif;
    1025
    1126if ( ! function_exists( 'xwp_fetch_get_var' ) ) :
  • serbian-addons-for-woocommerce/trunk/vendor/x-wp/helper-functions/xwp-helper-fns.php

    r3167131 r3181790  
    5050     */
    5151    function xwp_wpfs(
    52         string $method = null,
     52        string $method = WP_Filesystem_Direct::class,
    5353        array|bool $args = false,
    5454        string|bool $context = false,
     
    7979    ): WP_Filesystem_Base|bool|null {
    8080        return xwp_wpfs( null, $args, $context );
    81     }
    82 endif;
    83 
    84 if ( ! function_exists( 'xwp_array_flatmap' ) ) :
    85     /**
    86      * Flattens and maps an array.
    87      *
    88      * @template T The type of the elements in the input array.
    89      * @template R The type of the elements in the returned array.
    90      *
    91      * @param  callable(T): R      $callback    Function to apply to each element.
    92      * @param  array<array-key, T> $input_array  Array to flatten and map.
    93      *
    94      * @return array<array-key, R>
    95      */
    96     function xwp_array_flatmap( callable $callback, array $input_array ) {
    97         return f\Array_Extra::flatmap( $callback, $input_array );
    98     }
    99 endif;
    100 
    101 if ( ! function_exists( 'wp_array_flatmap' ) ) :
    102     /**
    103      * Flattens and maps an array.
    104      *
    105      * @template T The type of the elements in the input array.
    106      * @template R The type of the elements in the returned array.
    107      *
    108      * @param  array<array-key, T>|callable(T): R $callback    Function to apply to each element.
    109      * @param  array<array-key, T>|callable(T): R $input_array  Array to flatten and map.
    110      *
    111      * @return array<array-key, R>
    112      */
    113     function wp_array_flatmap( callable|array $callback, array|callable $input_array ) {
    114         return is_array( $input_array )
    115             ? xwp_array_flatmap( $callback, $input_array )
    116             : xwp_array_flatmap( $input_array, $callback );
    117     }
    118 endif;
    119 
    120 if ( ! function_exists( 'wp_array_flatmap_assoc' ) ) :
    121     /**
    122      * Flatten and map an associative array of arrays.
    123      *
    124      * @template R
    125      * @template T — Applies the callback to the elements of the given arrays
    126      *
    127      * @param  callable(T): R           $callback Callback function to run for each element in each array.
    128      * @param  array<string, <array<T>> $input    The input array.
    129      * @param  key-of<T>                $key      Key whose value will be used as the key for the returned array.
    130      * @param  bool                     $unkey    Optional. Whether to remove the key from the returned array. Default true.
    131      *
    132      * @return array<value-of<key-of<T>>, R> An array containing all the elements of arr1 after applying the callback function to each one.
    133      */
    134     function wp_array_flatmap_assoc( callable $callback, array $input, string $key, bool $unkey = true ) {
    135         return f\Array_Extra::flatmap_assoc( $callback, $input, $key, $unkey );
    136     }
    137 endif;
    138 
    139 if ( ! function_exists( 'wp_array_diff_assoc' ) ) :
    140     /**
    141      * Legacy function to extract a slice of an array not including the specified keys.
    142      *
    143      * @param  array $input_array Input array.
    144      * @param  array $keys        Keys to exclude.
    145      */
    146     function wp_array_diff_assoc( array $input_array, array $keys ) {
    147         return xwp_array_diff_assoc( $input_array, ...$keys );
    148     }
    149 endif;
    150 
    151 if ( ! function_exists( 'xwp_array_diff_assoc' ) ) :
    152     /**
    153      * Extracts a slice of array not including the specified keys.
    154      *
    155      * @template T The type of the elements in the input array.
    156      *
    157      * @param  array<string, T>     $input_array Input array.
    158      * @param  array<string>|string ...$keys     Keys to exclude.
    159      * @return array<string, T>                  Array with the keys removed.
    160      */
    161     function xwp_array_diff_assoc( array $input_array, string ...$keys ) {
    162         if ( is_array( $keys[0] ) ) {
    163             $keys = $keys[0];
    164         }
    165 
    166         return f\Array_Extra::diff_assoc( $input_array, $keys );
    167     }
    168 
    169 endif;
    170 
    171 if ( ! function_exists( 'wp_array_rekey' ) ) :
    172     /**
    173      * Rekey an array of arrays by a specific key.
    174      *
    175      * @param  array<string, array<string, mixed>> $arr The input array.
    176      * @param  string                              $key The key to rekey by.
    177      * @return array<string, array<string, mixed>>      The rekeyed array.
    178      */
    179     function wp_array_rekey( array $arr, string $key ): array {
    180         return f\Array_Extra::rekey( $arr, $key );
    181     }
    182 endif;
    183 
    184 if ( ! function_exists( 'xwp_array_slice_assoc' ) ) :
    185     /**
    186      * Extracts a slice of an array.
    187      *
    188      * @template T The type of the elements in the input array.
    189      *
    190      * @param  array<string, T> $input_array Input array.
    191      * @param  string           ...$keys     Keys to include.
    192      * @return array<string, T>              Array with only the keys specified.
    193      */
    194     function xwp_array_slice_assoc( array $input_array, string ...$keys ) {
    195         return f\Array_Extra::slice_assoc( $input_array, $keys );
    19681    }
    19782endif;
     
    274159    }
    275160endif;
     161
     162
     163if ( ! function_exists( 'xwp_str_to_bool' ) ) :
     164    /**
     165     * Convert a string to a boolean.
     166     *
     167     * @param  string|bool|null $str The string to convert.
     168     * @return bool
     169     */
     170    function xwp_str_to_bool( string|bool|null $str = '' ): bool {
     171        if ( is_bool( $str ) ) {
     172            return $str;
     173        }
     174
     175        if ( xwp_is_int_str( $str ) ) {
     176            return intval( $str ) > 0;
     177        }
     178
     179        return match ( strtolower( $str ) ) {
     180            'yes', 'true', 'on'  => true,
     181            'no', 'false', 'off' => false,
     182            default              => false,
     183        };
     184    }
     185endif;
     186
     187if ( ! function_exists( 'xwp_bool_to_str' ) ) :
     188    /**
     189     * Convert a boolean to a string.
     190     *
     191     * @param  bool $boolean The boolean to convert.
     192     * @return 'yes'|'no'
     193     */
     194    function xwp_bool_to_str( bool|string $boolean ): string {
     195        return xwp_str_to_bool( $boolean ) ? 'yes' : 'no';
     196    }
     197endif;
     198
     199
     200if ( ! function_exists( 'xwp_get_template' ) ) :
     201
     202    /**
     203     * Get a template passing variables and including the file.
     204     *
     205     * @param  string                   $template The template file.
     206     * @param  null|array<string,mixed> $params Optional. The variables to pass to the template file.
     207     *
     208     * @since 1.18.0
     209     */
     210    function xwp_get_template( string $template, ?array $params = null ): void {
     211        if ( ! file_exists( $template ) ) {
     212            _doing_it_wrong(
     213                __FUNCTION__,
     214                sprintf( 'The template file %s does not exist.', esc_html( basename( $template ) ), ),
     215                '1.0.0',
     216            );
     217            return;
     218        }
     219
     220        if ( is_array( $params ) && $params ) {
     221            //phpcs:ignore WordPress.PHP.DontExtract.extract_extract
     222            extract( $params );
     223        }
     224
     225        include $template;
     226    }
     227
     228endif;
     229
     230
     231if ( ! function_exists( 'xwp_get_template_html' ) ) :
     232
     233    /**
     234     * Like `xwp_get_template` but returns the HTML instead of outputting it.
     235     *
     236     * @param  string                   $template The template file.
     237     * @param  null|array<string,mixed> $params   Optional. The variables to pass to the template file.
     238     * @return string
     239     *
     240     * @since 1.18.0
     241     */
     242    function xwp_get_template_html( string $template, ?array $params = null ): string {
     243        ob_start();
     244        xwp_get_template( $template, $params );
     245        return (string) ob_get_clean();
     246    }
     247
     248endif;
  • serbian-addons-for-woocommerce/trunk/vendor/x-wp/wc-template-customizer/src/Customizer_Base.php

    r3111341 r3181790  
    5151     * }>
    5252     */
    53     protected static array $file_def;
     53    protected static array $parsed_templates;
    5454
    5555    /**
     
    5858     * @var array<string, string>
    5959     */
    60     protected static array $templates;
     60    protected static array $custom_templates;
    6161
    6262    /**
     
    6565     * @var array<string>
    6666     */
    67     protected static array $locked;
     67    protected static array $locked_templates;
    6868
    6969    /**
     
    129129        static::$tokens   ??= $this->define_tokens();
    130130
    131         static::$file_def ??= $this->define_files();
    132         static::$templates ??= $this->define_templates();
    133         static::$locked    ??= $this->define_locked();
     131        static::$parsed_templates ??= $this->define_files();
     132        static::$custom_templates ??= $this->define_templates();
     133        static::$locked_templates ??= $this->define_locked();
    134134
    135135        static::$admin ??= $this->define_admin();
     
    245245     */
    246246    final protected function define_templates(): array {
    247         return \wp_list_pluck( static::$file_def, 'path' );
     247        return \wp_list_pluck( static::$parsed_templates, 'path' );
    248248    }
    249249
     
    254254     */
    255255    final protected function define_locked(): array {
    256         return \wp_list_pluck( static::$file_def, 'lock' );
     256        return \wp_list_pluck( static::$parsed_templates, 'lock' );
    257257    }
    258258
     
    263263     */
    264264    protected function define_admin(): ?Customizer_Admin {
    265         return \is_admin() ? new Customizer_Admin( static::$file_def ) : null;
     265        return \is_admin() ? new Customizer_Admin( static::$parsed_templates ) : null;
    266266    }
    267267
     
    290290     */
    291291    public function modify_template_path( string $path, string $name ): string {
    292         if ( ! isset( static::$templates[ $name ] ) ) {
     292        if ( ! isset( static::$custom_templates[ $name ] ) ) {
    293293            return $path;
    294294        }
    295295
    296         if ( ! static::$locked[ $name ] ) {
    297             $path = \locate_template( array( $name, \WC()->template_path() . $name ) );
    298         }
    299 
    300         return $path ?: static::$templates[ $name ];
     296        $path = static::$locked_templates[ $name ] === false
     297            ? \locate_template( array( $name, \WC()->template_path() . $name ) )
     298            : false;
     299
     300        return $path ?: static::$custom_templates[ $name ];
    301301    }
    302302}
  • serbian-addons-for-woocommerce/trunk/woocommerce/checkout/payment-slip.php

    r3159568 r3181790  
    5252                            </tr>
    5353                            <tr>
    54 
    5554                                <td class="block-content large">
    5655                                    <?php echo wp_kses_post( $customer ); ?>
Note: See TracChangeset for help on using the changeset viewer.