�PNG  IHDR22?�� pHYs  �� OiCCPPhotoshop ICC profilexڝSgTS�=���BK���KoR RB���&*! J�!��Q�EEȠ�����Q, � ��!���������{�kּ������>���� �H3Q5� �B�������.@� $p�d!s�#�~<<+"��x� �M��0���B�\���t�8K�@z�B�@F���&S�`�cb�P-`'������{[�!�� e�Dh;��V�EX0fK�9�-0IWfH���� � 0Q��){`�##x��F�W<�+��*x��<�$9E�[-qWW.(�I+6aa�@.�y�2�4���������x����6��_-��"bb���ϫp@�t~��,/��;�m��%�h^ �u��f�@����W�p�~<�5�j>{�-�]c�K'Xt����o��(�h���w��?�G�%�fI�q^D$.Tʳ?�D��*�A��,���� �`6�B$��BB d�r`)��B(�Ͱ*`/�@4�Qh��p.�U�=p�a��(�� A�a!ڈb�X#����!�H�$ ɈQ"K�5H1R�T UH�=r9�\F��;�2����G1���Q=� �C��7�F� �dt1�����r�=�6��Ыhڏ>C�0��3�l0.��B�8, �c˱"� ���V����cϱw�E� 6wB aAHXLXN�H� $4� 7 �Q�'"��K�&���b21�XH,#��/{�C�7$�C2'��I��T��F�nR#�,��4H#���dk�9�, +ȅ����3��!�[ �b@q��S�(R�jJ��4�e�2AU��Rݨ�T5�ZB���R�Q��4u�9̓IK�����hh�i��t�ݕN��W���G���w ��Ljg(�gw��L�Ӌ�T071���oUX*�*|�� �J�&�*/T����ު U�U�T��^S}�FU3S� Ԗ�U��P�SSg�;���g�oT?�~Y��Y�L�OC�Q��_�� c�x,!k ��u�5�&���|v*�����=���9C3J3W�R�f?�q��tN �(���~���)�)�4L�1e\k����X�H�Q�G�6������E�Y��A�J'\'Gg����S�Sݧ �M=:��.�k���Dw�n��^��Lo��y���}/�T�m���G X� $� �<�5qo</���QC]�@C�a�a�ᄑ��<��F�F�i�\�$�m�mƣ&&!&KM�M�RM��)�;L;L���͢�֙5�=1�2��כ߷`ZxZ,����eI��Z�Yn�Z9Y�XUZ]�F���%ֻ�����N�N���gð�ɶ�����ۮ�m�}agbg�Ů��}�}��= ���Z~s�r:V:ޚΜ�?}����/gX���3��)�i�S��Ggg�s�󈋉K��.�>.���Ƚ�Jt�q]�z���������ۯ�6�i�ܟ�4�)�Y3s���C�Q��? ��0k߬~OCO�g��#/c/�W�װ��w��a�>�>r��>�<7�2�Y_�7��ȷ�O�o�_��C#�d�z����%g��A�[��z|!��?:�e����A���AA�������!h�쐭!��Α�i�P~���a�a��~ '���W�?�p�X�1�5w��Cs�D�D�Dޛg1O9�-J5*>�.j<�7�4�?�.fY��X�XIlK9.*�6nl������� �{�/�]py�����.,:�@L�N8��A*��%�w%� y��g"/�6ш�C\*N�H*Mz�쑼5y$�3�,幄'���L Lݛ:��v m2=:�1����qB�!M��g�g�fvˬe����n��/��k���Y- �B��TZ(�*�geWf�͉�9���+��̳�ې7�����ᒶ��KW-X潬j9�������(�x��oʿ�ܔ���Ĺd�f�f���-�[����n �ڴ �V����E�/��(ۻ��C���<��e����;?T�T�T�T6��ݵa��n��{��4���[���>ɾ�UUM�f�e�I���?�������m]�Nmq����#�׹���=TR��+�G�����w- 6 U����#pDy��� �� :�v�{���vg/jB��F�S��[b[�O�>����z�G��499�?r����C�d�&����ˮ/~�����јѡ�򗓿m|������������x31^�V���w�w��O�| (�h���SЧ��������c3-� cHRMz%������u0�`:�o�_�F5IDATx��ytUս�?�;���fN$$��@B�!�k��� -*�gE���j�O�kQ�ʠ`U�B_ �AÐ0%�Ȕ�@r3ޛ;߳��$�@��v����^�s����������$��ߢ !�W��5�̱'-٘������4�>�Rƫ$�G��0U�H}�_ _� #��k�MJ/=�9Du *ڲ�k�PQ;0��j|�*�$�^컂脛y���>�z×� B��� ��(�:$�ʔ_�6��C!B����MVx��a��ζyY����j��ƋY2�9�F�{r��r�딟F��Q��hY6��� x��[l��RC��������nt@��;P��3��� F�w��7��:�P���ɋ'���mj���Bƪ�$�Q�L��y��߷g��\���z����v5�p�v$�v櫻�`6~K �Y�X����,�:��"�o�e0II"(��,������l_�C���/4�+f�E�!q��:����u����c��樼.UE�@� �]K�W���$-�h]�JG���Dz)�`��.�A/ ���mᏣc�3jK� �!�>���$�Q�!�_�? \�C2(E �M$Z I{�U���s�ǣ���=��@Բe ޻��W�����@ �w����}�9v,)��.}*|"�s��di���,���G�]W�AC�������|<����[��ߕ������K�*�G nߴ!��‹��J�!��6(L�a)��Am��������;adf��:�xm��nh�;֦I��(���o�C~ډa?�=��s����h��E������xp����)���_���t��W�����´;8���`dz=(��@@�+,�;�`�fhl��XȌ�3,uI�~z(J����� �ZX�A����H'�À�㜦�82|��a�n�z2��I���� ���EY�h�ε<�0�q�{��C��v�˅��?"@��χ�x�WS+��N�~�KQ�J�8ل�� _.W��� !TU{�����,��"�� �;�������HI S� ��))�o�1�H�D� ���� (� ;����"Ҕ��,���� �F=���O��&�Ph>�`���y��߲ &S��P�<��'��1s�1cĂ�N����2)����@�u��tv��<�+�-&�����h��[!FSG���' � z z0��<����8d&�����E0�,��<��"!P�b4��� �{S�����X����.�囤���T��hEF��X�q0"-<����h���]�Py*����F⩍��@v�˂�Y08�� .q��a��s����(!<̫1�3�L�H��7sYW�`��qtu�\7��?�@�Y�� %Ka�x�GZ�*W�P��y�����N0r9��Z�c�%���q,��k�����!!,��>���IB��� �x1�Xu�Y���v-���ֺ��N������JP��a�2`�e5��w��u;�6�i���̃��(K���ťa��(l51��JL��O'%���]���ٖ뿉!��{*�p+f ���i8��D�ȑ���ܩ�M��V��ӟz��x�7Z�1i}�^͜���6e����x��)u�d�ˏ�V�eG�\�X1�����=n�U'�~Y����L�\,�(d!x ,�:�TW8� M`r���@��r+v�Q0��>^;˴�VbF��('����� �*O��i��j�Ӆ����^�S3&� ���{������.ی�� N;��NU%d0�Ce\r"�C�b��&t7N�7��� �ȪD�[%l�۪�$��'m?�A9tI�9>��NVL ��� 6v~M�����ъ�B���0����9$&=ώm��W�0���L���&��E���f�f��'+�9��hv��7,���M��6�D�&�^� �����8 D֮�����o��k^z��O��hP�8q�5d*��YVq3�{��������#LX4�?��jP=3�~�؅c�ݰ�̱�ұ��8̲��2�G�����j��έ�9��w7���U�X�w�85C��?!I&���o&����L���I#�^�eV�,�^t5�k� �xs˛\��U�8��."���{���ǵ�l4��ݼ�;��r"���G�/~���gJV�N糦��ZZ^k+NN�D��I$�=OE�z����|*�*{��%k���G��>�`9��b;�s���8,�qs��c��.b��q�%�>r��n�R�Ƨ�%�,�A��le#�8���}; 21�0�b�&�QX�f���q�00����$>�h�N�'�a3��A���/�r ��L5�8�GԲ'�����w;��c#�q1���h$*��V^�k��QĽ�b:i������� ����H F#�_���,��]g����Ը����`RUU���� ��"�qD���>-��ϤI�~��3�̴�����NZ[[555�eeek7�m����YF#[��Đ��R��i��L�H�r ��@��J-�Pŝ��_|�-��6y��ks�V�U~��6���w.����(��0A� 4��f��� /���C�xŊ�ٳ����z=6�����rg���mKo��o�/����a�g���?'9%9��P��斓��~���L{�� �H��{AW��B��$����v�1b�&Mb�ر��ر#�0`�`xMBp! )Z�Nmo�mZ�g�}�eذaWTVV ���'99��C5��&�&+5�bT>|8��PUUETT����&���t��~TE%��'������b�tEGG;RSS�S�N�v��ѯ��t����u1@�ޚ"f��͈���r'L�Ph��m��ƌ�74o��`�x�q�P���NRSS�X,�����l&&&��MFFA!-��`��ҷ�n��Yuu�����x<I�LB%����KԒ50�!�3�bz�����ʸKL���;---�l6[��`��������Ȏ;�����egg4��!D�T��jWujyZ��������K����%����p�^���X,6��sV=�ܖ����6�3�X ���4ҿ��A2�&����_k�;d�� �VfOIEND�B`�
Warning: session_start(): Session cannot be started after headers have already been sent in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 124

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 130

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 131

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 132

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 133

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 134

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 135

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 547

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 548

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 549

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 550

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 551
*/ private const TRACKED_BLOCKS = array( 'woocommerce/checkout', 'woocommerce/cart', 'woocommerce/mini-cart', ); /** * Maps window.wc.* property names to their required script handles. * * This is the source of truth for both PHP and JS dependency detection. * Based on wcDepMap and wcHandleMap in client/blocks/bin/webpack-helpers.js. * * @var array */ private const WC_GLOBAL_EXPORTS = array( 'wcBlocksRegistry' => 'wc-blocks-registry', 'wcSettings' => 'wc-settings', 'wcBlocksData' => 'wc-blocks-data-store', 'data' => 'wc-store-data', 'wcBlocksSharedContext' => 'wc-blocks-shared-context', 'wcBlocksSharedHocs' => 'wc-blocks-shared-hocs', 'priceFormat' => 'wc-price-format', 'blocksCheckout' => 'wc-blocks-checkout', 'blocksCheckoutEvents' => 'wc-blocks-checkout-events', 'blocksComponents' => 'wc-blocks-components', 'wcTypes' => 'wc-types', 'sanitize' => 'wc-sanitize', ); /** * Whether the proxy script was output. * * Used to ensure we only output the registry if the proxy was set up. * * @var bool */ private bool $proxy_output = false; /** * Constructor. */ public function __construct() { $this->init(); } /** * Initialize hooks. * * @since 10.5.0 */ public function init(): void { // Only run when debugging is enabled. if ( ! defined( 'WP_DEBUG' ) || ! WP_DEBUG ) { return; } // Output an early inline script to set up the Proxy before any other scripts run. add_action( 'wp_head', array( $this, 'output_early_proxy_setup' ), 1 ); add_action( 'admin_head', array( $this, 'output_early_proxy_setup' ), 1 ); // Output registry late when all scripts (including IntegrationInterface) are registered. add_action( 'wp_print_footer_scripts', array( $this, 'output_script_registry' ), 1 ); add_action( 'admin_print_footer_scripts', array( $this, 'output_script_registry' ), 1 ); } /** * Output early inline script to set up the Proxy on window.wc. * * This must run before any WooCommerce scripts to intercept access. * The script is loaded from a separate file for better IDE support and testing, * but output inline to ensure correct timing (before any enqueued scripts). * * @since 10.5.0 */ public function output_early_proxy_setup(): void { // Only run on pages that have the tracked blocks. if ( ! $this->page_has_tracked_blocks() ) { return; } // Load from the production assets directory (built by webpack and copied during release build). $script_path = __DIR__ . '/../../assets/client/blocks/dependency-detection.js'; if ( ! file_exists( $script_path ) ) { return; } // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents -- Local file read for inline script output. $script_content = file_get_contents( $script_path ); if ( ! $script_content ) { return; } // Inject the global-to-handle mapping from PHP (source of truth). $mapping_json = \wp_json_encode( self::WC_GLOBAL_EXPORTS ); if ( false === $mapping_json ) { return; } $script_content = str_replace( '__WC_GLOBAL_EXPORTS_PLACEHOLDER__', $mapping_json, $script_content ); // Inject the WooCommerce plugin URL for script origin detection. // This accounts for custom plugin directories (WP_PLUGIN_DIR, WP_CONTENT_DIR). $wc_plugin_url = \plugins_url( '/', WC_PLUGIN_FILE ); $script_content = str_replace( '__WC_PLUGIN_URL_PLACEHOLDER__', '"' . esc_js( $wc_plugin_url ) . '"', $script_content ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Script content is from a trusted local file, JSON is safely encoded. echo '' . "\n"; $this->proxy_output = true; } /** * Output the script registry JSON for dependency checking. * * This runs late (wp_print_footer_scripts) to ensure all scripts, * including those registered via IntegrationInterface, are captured. * * @since 10.5.0 */ public function output_script_registry(): void { // Only output registry if the proxy was set up earlier. // This avoids the duplicate page_has_tracked_blocks() check and ensures // we don't output a registry without a proxy to consume it. if ( ! $this->proxy_output ) { return; } // Build the script registry mapping URLs to handles and dependencies. $script_registry = $this->build_script_registry(); $registry_json = \wp_json_encode( $script_registry ); if ( false === $registry_json ) { return; } // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- JSON is safely encoded by wp_json_encode. echo '' . "\n"; } /** * Build a registry of all enqueued scripts with their URLs and dependencies. * * @return array}> */ private function build_script_registry(): array { $wp_scripts = wp_scripts(); $registry = array(); foreach ( $wp_scripts->registered as $handle => $script ) { // Skip scripts without a source URL. if ( empty( $script->src ) ) { continue; } // Get the full URL. $src = $script->src; if ( ! is_string( $src ) ) { // Skip malformed src. continue; } // Resolve relative URLs to absolute the same way WordPress core does. $src = Utils::get_absolute_script_url( $src ); // Skip WooCommerce's own scripts - we don't need to check those. if ( $this->is_woocommerce_script( $src ) ) { continue; } // Skip WordPress core scripts - they won't use wc.* globals. if ( $this->is_wordpress_core_script( $src ) ) { continue; } // Normalize the URL for consistent matching. $src = $this->normalize_url( $src ); $registry[ $src ] = array( 'handle' => $handle, 'deps' => $this->get_all_dependencies( $script->deps ), ); } return $registry; } /** * Check if a script URL belongs to WooCommerce core. * * Checks if the script is loaded from the WooCommerce core plugin directory, * not from third-party extensions that may use similar handle naming. * * @param string $url Script URL. * @return bool */ private function is_woocommerce_script( string $url ): bool { // Get the WooCommerce plugin URL (accounts for custom plugin directories). $wc_plugin_url = \plugins_url( '/', WC_PLUGIN_FILE ); // Check if the URL starts with the WooCommerce plugin URL and is in a known subdirectory. if ( strpos( $url, $wc_plugin_url ) !== 0 ) { return false; } // Get the path after the WooCommerce plugin URL. $relative_path = substr( $url, strlen( $wc_plugin_url ) ); // Check if it's in one of the known WooCommerce asset directories. return (bool) preg_match( '#^(client|assets|build|vendor)/#', $relative_path ); } /** * Check if a script URL belongs to WordPress core. * * WordPress core scripts (wp-includes, wp-admin) won't use wc.* globals, * so we can skip them to reduce registry size. * * @param string $url Script URL. * @return bool */ private function is_wordpress_core_script( string $url ): bool { return (bool) preg_match( '#/(wp-includes|wp-admin)/#', $url ); } /** * Recursively get all dependencies including nested ones. * * @param array $deps Direct dependencies. * @return array All dependencies (flattened). */ private function get_all_dependencies( array $deps ): array { $wp_scripts = wp_scripts(); $all_deps = array(); $deps_to_process = $deps; while ( ! empty( $deps_to_process ) ) { $handle = array_shift( $deps_to_process ); if ( in_array( $handle, $all_deps, true ) ) { continue; } $all_deps[] = $handle; // Add nested dependencies to process. if ( isset( $wp_scripts->registered[ $handle ] ) ) { foreach ( $wp_scripts->registered[ $handle ]->deps as $nested_dep ) { if ( ! in_array( $nested_dep, $all_deps, true ) ) { $deps_to_process[] = $nested_dep; } } } } // Filter to only include WooCommerce handles we care about. $wc_handles = array_values( self::WC_GLOBAL_EXPORTS ); return array_values( array_filter( $all_deps, function ( $dep ) use ( $wc_handles ) { return in_array( $dep, $wc_handles, true ); } ) ); } /** * Check if the current page contains any of the tracked blocks. * Checks post content, widget areas, and template parts (header) for blocks. * * @return bool True if page has tracked blocks. */ private function page_has_tracked_blocks(): bool { // Check post content for blocks. foreach ( self::TRACKED_BLOCKS as $block_name ) { if ( \has_block( $block_name ) ) { return true; } } // Check widget areas for mini-cart (classic themes). $mini_cart_in_widgets = BlocksUtil::get_blocks_from_widget_area( 'woocommerce/mini-cart' ); if ( ! empty( $mini_cart_in_widgets ) ) { return true; } // Check header template part for mini-cart (block themes). try { $mini_cart_in_header = BlocksUtil::get_block_from_template_part( 'woocommerce/mini-cart', 'header' ); if ( ! empty( $mini_cart_in_header ) ) { return true; } } catch ( \Throwable $e ) { // phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedCatch // Template part may not exist in all themes, silently continue. } return false; } /** * Normalize a URL by removing query strings and hash fragments. * * This helps match URLs in stack traces which don't include query strings. * * @param string $url URL to normalize. * @return string Normalized URL without query string or hash. */ private function normalize_url( string $url ): string { $scheme = wp_parse_url( $url, PHP_URL_SCHEME ); $host = wp_parse_url( $url, PHP_URL_HOST ); $path = wp_parse_url( $url, PHP_URL_PATH ); if ( $scheme && $host && $path ) { $port = wp_parse_url( $url, PHP_URL_PORT ); return $scheme . '://' . $host . ( $port ? ':' . $port : '' ) . $path; } return $url; } }