<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[12656] sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers: Translate: sync gp-translation-helpers from git</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://meta.trac.wordpress.org/changeset/12656">12656</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://meta.trac.wordpress.org/changeset/12656","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>akirk</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2023-06-14 10:54:45 +0000 (Wed, 14 Jun 2023)</dd>
</dl>

<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Translate: sync gp-translation-helpers from git</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsgptranslationhelperscssdiscussioncss">sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/css/discussion.css</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsgptranslationhelpershelpersassetsjstranslationdiscussionjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/helpers-assets/js/translation-discussion.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsgptranslationhelpersincludesclassgpopenaireviewphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/includes/class-gp-openai-review.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsgptranslationhelpersjseditorjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/js/editor.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsgptranslationhelpersjsrejectfeedbackjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/js/reject-feedback.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsgptranslationhelpersjstranslationhelpersjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/js/translation-helpers.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsgptranslationhelperstemplatestranslationroweditormetafeedbackphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/templates/translation-row-editor-meta-feedback.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsgptranslationhelperscssdiscussioncss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/css/discussion.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/css/discussion.css        2023-06-13 19:48:06 UTC (rev 12655)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/css/discussion.css  2023-06-14 10:54:45 UTC (rev 12656)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -196,8 +196,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">        font-size: 1.2em;
</span><span class="cx" style="display: block; padding: 0 10px">        padding: 8px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.meta summary.feedback-summary{
-       font-size: 1.2em;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.meta summary.feedback-summary, .meta summary.chatgpt-summary{
+       font-size: 1.1em;
</ins><span class="cx" style="display: block; padding: 0 10px">         font-weight: bold;
</span><span class="cx" style="display: block; padding: 0 10px">        padding: 7px 0;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsgptranslationhelpershelpersassetsjstranslationdiscussionjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/helpers-assets/js/translation-discussion.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/helpers-assets/js/translation-discussion.js       2023-06-13 19:48:06 UTC (rev 12655)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/helpers-assets/js/translation-discussion.js 2023-06-14 10:54:45 UTC (rev 12656)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,13 +1,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /* global $gp, document, wpApiSettings */
</span><span class="cx" style="display: block; padding: 0 10px"> jQuery( function( $ ) {
</span><span class="cx" style="display: block; padding: 0 10px">        $( document ).on( 'click', '.helper-translation-discussion .comments-selector a', function( e ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                var $comments, $selector;
-
</del><span class="cx" style="display: block; padding: 0 10px">                 e.preventDefault();
</span><span class="cx" style="display: block; padding: 0 10px">                $( '.comments-selector a' ).removeClass( 'active-link' );
</span><span class="cx" style="display: block; padding: 0 10px">                $( this ).addClass( 'active-link' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $comments = jQuery( e.target ).parents( 'h6' ).next( '.discussion-list' );
-               $selector = $( e.target ).data( 'selector' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         const $comments = jQuery( e.target ).parents( 'h6' ).next( '.discussion-list' );
+               const $selector = $( e.target ).data( 'selector' );
</ins><span class="cx" style="display: block; padding: 0 10px">                 if ( 'all' === $selector ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $comments.children().show();
</span><span class="cx" style="display: block; padding: 0 10px">                } else if ( 'rejection-feedback' === $selector ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -22,7 +20,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        } );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        function createShadowPost( formdata, submitComment ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                var data = {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         const data = {
</ins><span class="cx" style="display: block; padding: 0 10px">                         action: 'create_shadow_post',
</span><span class="cx" style="display: block; padding: 0 10px">                        data: formdata,
</span><span class="cx" style="display: block; padding: 0 10px">                        _ajax_nonce: wpApiSettings.nonce,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -32,24 +30,24 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        {
</span><span class="cx" style="display: block; padding: 0 10px">                                type: 'POST',
</span><span class="cx" style="display: block; padding: 0 10px">                                url: wpApiSettings.admin_ajax_url,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                data: data,
-                       }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         data,
+                       },
</ins><span class="cx" style="display: block; padding: 0 10px">                 ).done(
</span><span class="cx" style="display: block; padding: 0 10px">                        function( response ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                formdata.post = response.data;
</span><span class="cx" style="display: block; padding: 0 10px">                                submitComment( formdata );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 },
</ins><span class="cx" style="display: block; padding: 0 10px">                 );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        $( document ).on( 'submit', '.helper-translation-discussion .comment-form', function( e ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                var $commentform = $( e.target );
-               var postId = $commentform.attr( 'id' ).split( '-' )[ 1 ];
-               var submitComment = function( formdata ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         const $commentform = $( e.target );
+               const postId = $commentform.attr( 'id' ).split( '-' )[ 1 ];
+               const submitComment = function( formdata ) {
</ins><span class="cx" style="display: block; padding: 0 10px">                         $.ajax( {
</span><span class="cx" style="display: block; padding: 0 10px">                                url: wpApiSettings.root + 'wp/v2/comments',
</span><span class="cx" style="display: block; padding: 0 10px">                                method: 'POST',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                beforeSend: function( xhr ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         beforeSend( xhr ) {
</ins><span class="cx" style="display: block; padding: 0 10px">                                         xhr.setRequestHeader( 'X-WP-Nonce', wpApiSettings.nonce );
</span><span class="cx" style="display: block; padding: 0 10px">                                },
</span><span class="cx" style="display: block; padding: 0 10px">                                data: formdata,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -64,7 +62,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        } );
</span><span class="cx" style="display: block; padding: 0 10px">                };
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                var formdata = {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         const formdata = {
</ins><span class="cx" style="display: block; padding: 0 10px">                         content: $commentform.find( 'textarea[name=comment]' ).val(),
</span><span class="cx" style="display: block; padding: 0 10px">                        parent: $commentform.find( 'input[name=comment_parent]' ).val(),
</span><span class="cx" style="display: block; padding: 0 10px">                        post: postId,
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsgptranslationhelpersincludesclassgpopenaireviewphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/includes/class-gp-openai-review.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/includes/class-gp-openai-review.php       2023-06-13 19:48:06 UTC (rev 12655)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/includes/class-gp-openai-review.php 2023-06-14 10:54:45 UTC (rev 12656)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -26,7 +26,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                if ( empty( trim( $openai_key ) ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        return array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'status' => 404,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'error' => 'No OpenAI Key defined',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'error' => 'no-openai-key',
</ins><span class="cx" style="display: block; padding: 0 10px">                         );
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsgptranslationhelpersjseditorjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/js/editor.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/js/editor.js      2023-06-13 19:48:06 UTC (rev 12655)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/js/editor.js        2023-06-14 10:54:45 UTC (rev 12656)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,4 +1,4 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-/* global $gp, $gp_translation_helpers_editor, wpApiSettings, $gp_comment_feedback_settings, console, $gp_editor_options, EventSource */
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+/* global $gp, $gp_translation_helpers_editor, wpApiSettings, $gp_comment_feedback_settings, $gp_editor_options, fetch, TextDecoderStream */
</ins><span class="cx" style="display: block; padding: 0 10px"> /* eslint camelcase: "off" */
</span><span class="cx" style="display: block; padding: 0 10px"> jQuery( function( $ ) {
</span><span class="cx" style="display: block; padding: 0 10px">        let focusedRowId = '';
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -68,12 +68,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                type: 'POST',
</span><span class="cx" style="display: block; padding: 0 10px">                                url: wpApiSettings.admin_ajax_url,
</span><span class="cx" style="display: block; padding: 0 10px">                                data,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 },
</ins><span class="cx" style="display: block; padding: 0 10px">                 ).done(
</span><span class="cx" style="display: block; padding: 0 10px">                        function( response ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                formdata.post = response.data;
</span><span class="cx" style="display: block; padding: 0 10px">                                submitComment( formdata );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 },
</ins><span class="cx" style="display: block; padding: 0 10px">                 );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -338,7 +338,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        lineBuffer,
</span><span class="cx" style="display: block; padding: 0 10px">                        index,
</span><span class="cx" style="display: block; padding: 0 10px">                        fieldLength,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        lineLength
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 lineLength,
</ins><span class="cx" style="display: block; padding: 0 10px">                 ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        if ( lineLength === 0 ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                // We reached the last line of this event
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -408,11 +408,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        } else if ( event.type === 'invalid_request_error' ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                response_span.text( event.value );
</span><span class="cx" style="display: block; padding: 0 10px">                        } else if ( event.type === 'reconnect-interval' ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                console.log( 'We should set reconnect interval to %d milliseconds', event.value );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         // console.log( 'We should set reconnect interval to %d milliseconds', event.value );
</ins><span class="cx" style="display: block; padding: 0 10px">                         }
</span><span class="cx" style="display: block; padding: 0 10px">                } );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                let response = await fetch(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         const response = await fetch(
</ins><span class="cx" style="display: block; padding: 0 10px">                         'https://api.openai.com/v1/chat/completions',
</span><span class="cx" style="display: block; padding: 0 10px">                        {
</span><span class="cx" style="display: block; padding: 0 10px">                                headers: {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -421,13 +421,15 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                },
</span><span class="cx" style="display: block; padding: 0 10px">                                method: 'POST',
</span><span class="cx" style="display: block; padding: 0 10px">                                body: JSON.stringify( request ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 },
</ins><span class="cx" style="display: block; padding: 0 10px">                 );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                const reader = response.body.pipeThrough(new TextDecoderStream()).getReader();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         const reader = response.body.pipeThrough( new TextDecoderStream() ).getReader();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                while (true) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         while ( true ) {
</ins><span class="cx" style="display: block; padding: 0 10px">                         const { value, done } = await reader.read();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        if ( done ) break;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 if ( done ) {
+                               break;
+                       }
</ins><span class="cx" style="display: block; padding: 0 10px">                         parser.feed( value );
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -437,12 +439,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @param {string}  rowId      The row-id attribute of the current row.
</span><span class="cx" style="display: block; padding: 0 10px">         * @param {string}  currentRow The current row.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         * @param {boolean} isRetry    This is a retry.
</ins><span class="cx" style="display: block; padding: 0 10px">          */
</span><span class="cx" style="display: block; padding: 0 10px">        function fetchOpenAIReviewResponse( rowId, currentRow, isRetry ) {
</span><span class="cx" style="display: block; padding: 0 10px">                const messages = [];
</span><span class="cx" style="display: block; padding: 0 10px">                const original_str = currentRow.find( '.original' );
</span><span class="cx" style="display: block; padding: 0 10px">                let glossary_prompt = '';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                let result = '';
</del><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $.each( $( original_str ).find( '.glossary-word' ), function( k, word ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $.each( $( word ).data( 'translations' ), function( i, e ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -467,6 +469,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                currentRow.find( '.openai-review .suggestions__loading-indicator' ).hide();
</span><span class="cx" style="display: block; padding: 0 10px">                currentRow.find( '.openai-review .auto-review-result' ).html( '<h4>Review by ChatGPT' ).append( '<span style="white-space: pre-line">' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                invokeChatGPT( messages, currentRow.find( '.openai-review .auto-review-result span' ) ).then(()=>currentRow.find( '.openai-review .auto-review-result' ).append( ' <a href="#" class="retry-auto-review">Retry</a>' ));
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         invokeChatGPT( messages, currentRow.find( '.openai-review .auto-review-result span' ) ).then( () => currentRow.find( '.openai-review .auto-review-result' ).append( ' <a href="#" class="retry-auto-review">Retry</a>' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">         }
</span><span class="cx" style="display: block; padding: 0 10px"> } );
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsgptranslationhelpersjsrejectfeedbackjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/js/reject-feedback.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/js/reject-feedback.js     2023-06-13 19:48:06 UTC (rev 12655)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/js/reject-feedback.js       2023-06-14 10:54:45 UTC (rev 12656)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2,13 +2,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> ( function( $, $gp ) {
</span><span class="cx" style="display: block; padding: 0 10px">        $( document ).ready(
</span><span class="cx" style="display: block; padding: 0 10px">                function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        var rowIds = [];
-                       var translationIds = [];
-                       var originalIds = [];
-                       var bulkTranslationStatus = [];
-                       var translationStatuses = {};
-                       var statusIndex = 0;
-                       var modalFeedbackForm =
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 let rowIds = [];
+                       const translationIds = [];
+                       const originalIds = [];
+                       const bulkTranslationStatus = [];
+                       const translationStatuses = {};
+                       let statusIndex = 0;
+                       const modalFeedbackForm =
</ins><span class="cx" style="display: block; padding: 0 10px">                         '<div id="reject-feedback-form" style="display:none;">' +
</span><span class="cx" style="display: block; padding: 0 10px">                        '<form>' +
</span><span class="cx" style="display: block; padding: 0 10px">                        '<h3>Type (Optional)</h3>' +
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -31,8 +31,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                function( e ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                        rowIds = $( 'input:checked', $( 'table#translations th.checkbox' ) ).map(
</span><span class="cx" style="display: block; padding: 0 10px">                                                function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                        var selectedRow = $( this ).parents( 'tr.preview' );
-                                                       var translationStatus = '';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                                 const selectedRow = $( this ).parents( 'tr.preview' );
+                                                       let translationStatus = '';
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                                        if ( ( selectedRow.length ) && ( ! selectedRow.hasClass( 'untranslated' ) ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                                                translationStatus = selectedRow.attr( 'class' ).split( ' ' )[ 1 ].substring( 7 );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -41,13 +41,13 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                                        }
</span><span class="cx" style="display: block; padding: 0 10px">                                                        $( this ).prop( 'checked', false );
</span><span class="cx" style="display: block; padding: 0 10px">                                                        return null;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                         },
</ins><span class="cx" style="display: block; padding: 0 10px">                                         ).get();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                        rowIds.forEach(
</span><span class="cx" style="display: block; padding: 0 10px">                                                function( rowId ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                        var originalId = $gp.editor.original_id_from_row_id( rowId );
-                                                       var translationId = $gp.editor.translation_id_from_row_id( rowId );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                                 const originalId = $gp.editor.original_id_from_row_id( rowId );
+                                                       const translationId = $gp.editor.translation_id_from_row_id( rowId );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                                        if ( originalId && translationId ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                                                originalIds.push( originalId );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -55,7 +55,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                                                translationStatuses[ translationId ] = bulkTranslationStatus[ statusIndex ];
</span><span class="cx" style="display: block; padding: 0 10px">                                                        }
</span><span class="cx" style="display: block; padding: 0 10px">                                                        statusIndex++;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                         },
</ins><span class="cx" style="display: block; padding: 0 10px">                                         );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                        if ( $( 'select[name="bulk[action]"]' ).val() === 'reject' ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -69,7 +69,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                                // eslint-disable-next-line no-undef
</span><span class="cx" style="display: block; padding: 0 10px">                                                tb_show( 'Reject with Feedback', '#TB_inline?inlineId=reject-feedback-form' );
</span><span class="cx" style="display: block; padding: 0 10px">                                        }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         },
</ins><span class="cx" style="display: block; padding: 0 10px">                         );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -78,9 +78,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                         * @param {Object} thisObj The object that dispatches this call.
</span><span class="cx" style="display: block; padding: 0 10px">                         */
</span><span class="cx" style="display: block; padding: 0 10px">                        function updateBulkRejectStatus( thisObj ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                var form = thisObj.closest( 'form' );
-                               var commentText = form.find( 'textarea[name="modal_feedback_comment"]' ).val();
-                               var numberOfCheckedReasons = form.find( 'input[name="modal_feedback_reason"]:checked' ).length;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         const form = thisObj.closest( 'form' );
+                               const commentText = form.find( 'textarea[name="modal_feedback_comment"]' ).val();
+                               const numberOfCheckedReasons = form.find( 'input[name="modal_feedback_reason"]:checked' ).length;
</ins><span class="cx" style="display: block; padding: 0 10px">                                 if ( commentText || numberOfCheckedReasons ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                        $( 'form#bulk-actions-toolbar-top  option[value="reject"]' ).attr( 'value', 'changesrequested' ).text( 'Changes requested' );
</span><span class="cx" style="display: block; padding: 0 10px">                                }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -90,15 +90,15 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                'click',
</span><span class="cx" style="display: block; padding: 0 10px">                                '#modal-reject-btn, #modal-requestchanges-btn',
</span><span class="cx" style="display: block; padding: 0 10px">                                function( e ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        var comment = '';
-                                       var commentReason = [];
-                                       var commentData = {};
-                                       var form = $( this ).closest( 'form' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                 let comment = '';
+                                       const commentReason = [];
+                                       const commentData = {};
+                                       const form = $( this ).closest( 'form' );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                        form.find( 'input[name="modal_feedback_reason"]:checked' ).each(
</span><span class="cx" style="display: block; padding: 0 10px">                                                function() {
</span><span class="cx" style="display: block; padding: 0 10px">                                                        commentReason.push( this.value );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                         },
</ins><span class="cx" style="display: block; padding: 0 10px">                                         );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                        comment = form.find( 'textarea[name="modal_feedback_comment"]' ).val();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -117,7 +117,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                        commentWithFeedback( commentData, false, 'rejected' );
</span><span class="cx" style="display: block; padding: 0 10px">                                        e.preventDefault();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         },
</ins><span class="cx" style="display: block; padding: 0 10px">                         );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        $( '.feedback-reason-list' ).on(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -124,13 +124,13 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                'click',
</span><span class="cx" style="display: block; padding: 0 10px">                                function( e ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                        toggleButtons( $( this ), e );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         },
</ins><span class="cx" style="display: block; padding: 0 10px">                         );
</span><span class="cx" style="display: block; padding: 0 10px">                        $( '.feedback-comment' ).on(
</span><span class="cx" style="display: block; padding: 0 10px">                                'input',
</span><span class="cx" style="display: block; padding: 0 10px">                                function( e ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                        toggleButtons( $( this ), e );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         },
</ins><span class="cx" style="display: block; padding: 0 10px">                         );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -144,12 +144,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">                         * @param {document#event} event   The event.
</span><span class="cx" style="display: block; padding: 0 10px">                         */
</span><span class="cx" style="display: block; padding: 0 10px">                        function toggleButtons( thisObj, event ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                var form = thisObj.closest( 'form' );
-                               var commentText = form.find( 'textarea[name="feedback_comment"]' ).val();
-                               var div = thisObj.closest( '.meta' );
-                               var rejectButton = $( '.reject', div );
-                               var changesRequestedtButton = $( '.changesrequested', div );
-                               var numberOfCheckedReasons = form.find( 'input[name="feedback_reason"]:checked' ).length;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         const form = thisObj.closest( 'form' );
+                               const commentText = form.find( 'textarea[name="feedback_comment"]' ).val();
+                               const div = thisObj.closest( '.meta' );
+                               const rejectButton = $( '.reject', div );
+                               const changesRequestedtButton = $( '.changesrequested', div );
+                               const numberOfCheckedReasons = form.find( 'input[name="feedback_reason"]:checked' ).length;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                if ( commentText.trim() !== '' || numberOfCheckedReasons ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                        rejectButton.hide();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -165,13 +165,13 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                'click',
</span><span class="cx" style="display: block; padding: 0 10px">                                function( e ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                        toggleModalButtons( $( this ), e );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         },
</ins><span class="cx" style="display: block; padding: 0 10px">                         );
</span><span class="cx" style="display: block; padding: 0 10px">                        $( 'textarea[name="modal_feedback_comment"]' ).on(
</span><span class="cx" style="display: block; padding: 0 10px">                                'input',
</span><span class="cx" style="display: block; padding: 0 10px">                                function( e ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                        toggleModalButtons( $( this ), e );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         },
</ins><span class="cx" style="display: block; padding: 0 10px">                         );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -185,12 +185,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">                         * @param {document#event} event   The event.
</span><span class="cx" style="display: block; padding: 0 10px">                         */
</span><span class="cx" style="display: block; padding: 0 10px">                        function toggleModalButtons( thisObj, event ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                var form = thisObj.closest( 'form' );
-                               var commentText = form.find( 'textarea[name="modal_feedback_comment"]' ).val();
-                               var div = thisObj.closest( '#TB_ajaxContent' );
-                               var rejectButton = $( '#modal-reject-btn', div );
-                               var changesRequestedtButton = $( '#modal-requestchanges-btn', div );
-                               var numberOfCheckedReasons = form.find( 'input[name="modal_feedback_reason"]:checked' ).length;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         const form = thisObj.closest( 'form' );
+                               const commentText = form.find( 'textarea[name="modal_feedback_comment"]' ).val();
+                               const div = thisObj.closest( '#TB_ajaxContent' );
+                               const rejectButton = $( '#modal-reject-btn', div );
+                               const changesRequestedtButton = $( '#modal-requestchanges-btn', div );
+                               const numberOfCheckedReasons = form.find( 'input[name="modal_feedback_reason"]:checked' ).length;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                if ( commentText.trim() !== '' || numberOfCheckedReasons ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                        rejectButton.hide();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -205,26 +205,26 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        $( '.tooltip' ).tooltip(
</span><span class="cx" style="display: block; padding: 0 10px">                                {
</span><span class="cx" style="display: block; padding: 0 10px">                                        tooltipClass: 'hoverTooltip',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         },
</ins><span class="cx" style="display: block; padding: 0 10px">                         );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        $( 'input[name="feedback_reason"][value="glossary"]' ).change(
</span><span class="cx" style="display: block; padding: 0 10px">                                function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        var glossaryWords = $( this ).closest( 'tr' ).find( '.original .glossary-word' ).get().map( function( word ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                 const glossaryWords = $( this ).closest( 'tr' ).find( '.original .glossary-word' ).get().map( function( word ) {
</ins><span class="cx" style="display: block; padding: 0 10px">                                                 return word.innerText;
</span><span class="cx" style="display: block; padding: 0 10px">                                        } );
</span><span class="cx" style="display: block; padding: 0 10px">                                        if ( $( this ).is( ':checked' ) && glossaryWords.length ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                                // eslint-disable-next-line vars-on-top
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                var glossaryList = document.createElement( 'ul' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                         const glossaryList = document.createElement( 'ul' );
</ins><span class="cx" style="display: block; padding: 0 10px">                                                 glossaryList.innerHTML = '<h6>Glossary Words</h6>';
</span><span class="cx" style="display: block; padding: 0 10px">                                                $( glossaryList ).attr( 'id', 'glossary-item-list' );
</span><span class="cx" style="display: block; padding: 0 10px">                                                glossaryWords.forEach(
</span><span class="cx" style="display: block; padding: 0 10px">                                                        function( item ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                                var li = document.createElement( 'li' );
-                                                               var checkbox = $( '<input />', { type: 'checkbox', class: 'glossary-word-item', value: item } );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                                         const li = document.createElement( 'li' );
+                                                               const checkbox = $( '<input />', { type: 'checkbox', class: 'glossary-word-item', value: item } );
</ins><span class="cx" style="display: block; padding: 0 10px">                                                                 $( '<label></label>' ).html( checkbox ).append( item ).appendTo( li );
</span><span class="cx" style="display: block; padding: 0 10px">                                                                glossaryList.appendChild( li );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                        }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                                 },
</ins><span class="cx" style="display: block; padding: 0 10px">                                                 );
</span><span class="cx" style="display: block; padding: 0 10px">                                                $( this ).closest( 'ul' ).after( glossaryList );
</span><span class="cx" style="display: block; padding: 0 10px">                                        } else {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -231,25 +231,25 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                                $( '#glossary-item-list' ).remove();
</span><span class="cx" style="display: block; padding: 0 10px">                                                $( this ).closest( '.feedback-reason-list' ).siblings( '.feedback-comment' ).find( 'textarea' ).val( '' );
</span><span class="cx" style="display: block; padding: 0 10px">                                        }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         },
</ins><span class="cx" style="display: block; padding: 0 10px">                         );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        $( 'body' ).on(
</span><span class="cx" style="display: block; padding: 0 10px">                                'change',
</span><span class="cx" style="display: block; padding: 0 10px">                                'input.glossary-word-item', function( ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        var textArea = $( this ).closest( 'ul' ).next().find( 'textarea' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                 const textArea = $( this ).closest( 'ul' ).next().find( 'textarea' );
</ins><span class="cx" style="display: block; padding: 0 10px">                                         if ( $( this ).closest( 'ul' ).find( 'input:checked' ).length === 0 ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                                textArea.val( '' );
</span><span class="cx" style="display: block; padding: 0 10px">                                                return;
</span><span class="cx" style="display: block; padding: 0 10px">                                        }
</span><span class="cx" style="display: block; padding: 0 10px">                                        // eslint-disable-next-line vars-on-top
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        var message = 'There is a problem with ' + ( $( this ).closest( 'ul' ).find( 'input:checked' ).length === 1 ? 'the glossary term' : 'the following glossary terms' ) + ': ' + $( this ).closest( 'ul' ).find( 'input:checked' ).get().map( function( word ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                 const message = 'There is a problem with ' + ( $( this ).closest( 'ul' ).find( 'input:checked' ).length === 1 ? 'the glossary term' : 'the following glossary terms' ) + ': ' + $( this ).closest( 'ul' ).find( 'input:checked' ).get().map( function( word ) {
</ins><span class="cx" style="display: block; padding: 0 10px">                                                 return word.defaultValue;
</span><span class="cx" style="display: block; padding: 0 10px">                                        } ).join( ', ' );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                        textArea.val( message );
</span><span class="cx" style="display: block; padding: 0 10px">                                } );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         },
</ins><span class="cx" style="display: block; padding: 0 10px">         );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        $gp.editor.hooks.set_status_current = function() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -269,16 +269,16 @@
</span><span class="cx" style="display: block; padding: 0 10px">        };
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        function setStatus( that, status ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                var button = $( that );
-               var feedbackData = {};
-               var commentReason = [];
-               var comment = '';
-               var div = button.closest( 'div.meta' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         const button = $( that );
+               const feedbackData = {};
+               const commentReason = [];
+               let comment = '';
+               const div = button.closest( 'div.meta' );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                div.find( 'input[name="feedback_reason"]:checked' ).each(
</span><span class="cx" style="display: block; padding: 0 10px">                        function() {
</span><span class="cx" style="display: block; padding: 0 10px">                                commentReason.push( this.value );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 },
</ins><span class="cx" style="display: block; padding: 0 10px">                 );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                comment = div.find( 'textarea[name="feedback_comment"]' ).val();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -299,8 +299,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        function commentWithFeedback( feedbackData, button, status ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                var data = {};
-               var div = {};
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         let data = {};
+               let div = {};
</ins><span class="cx" style="display: block; padding: 0 10px">                 if ( button ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        div = button.closest( 'div.meta' );
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -317,8 +317,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                type: 'POST',
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                url: $gp_comment_feedback_settings.url,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                data: data,
-                       }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         data,
+                       },
</ins><span class="cx" style="display: block; padding: 0 10px">                 ).done(
</span><span class="cx" style="display: block; padding: 0 10px">                        function() {
</span><span class="cx" style="display: block; padding: 0 10px">                                if ( feedbackData.is_bulk_reject ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -328,7 +328,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        div.find( 'input[name="feedback_reason"]' ).prop( 'checked', false );
</span><span class="cx" style="display: block; padding: 0 10px">                                        div.find( 'textarea[name="feedback_comment"]' ).val( '' );
</span><span class="cx" style="display: block; padding: 0 10px">                                }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 },
</ins><span class="cx" style="display: block; padding: 0 10px">                 ).fail(
</span><span class="cx" style="display: block; padding: 0 10px">                        function( xhr, msg ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                /* eslint no-console: ["error", { allow: ["error"] }] */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -339,19 +339,19 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                }
</span><span class="cx" style="display: block; padding: 0 10px">                                msg += '. Please, take a screenshot of the output in the browser console, send it to the developers, and reload the page to see if it works.';
</span><span class="cx" style="display: block; padding: 0 10px">                                $gp.notices.error( msg );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 },
</ins><span class="cx" style="display: block; padding: 0 10px">                 );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        function getReasonList( ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                var commentReasons = $gp_comment_feedback_settings.comment_reasons;
-               var commentList = '';
-               var prefix = '';
-               var suffix = '';
-               var inputName = '';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         const commentReasons = $gp_comment_feedback_settings.comment_reasons;
+               let commentList = '';
+               let prefix = '';
+               let suffix = '';
+               let inputName = '';
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // eslint-disable-next-line vars-on-top
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                for ( var reason in commentReasons ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         for ( const reason in commentReasons ) {
</ins><span class="cx" style="display: block; padding: 0 10px">                         prefix = '<div class="modal-item"><label>';
</span><span class="cx" style="display: block; padding: 0 10px">                        suffix = '<span class="tooltip dashicons dashicons-info" title="' + commentReasons[ reason ].explanation + '"></span></label></div>';
</span><span class="cx" style="display: block; padding: 0 10px">                        inputName = 'modal_feedback_reason';
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsgptranslationhelpersjstranslationhelpersjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/js/translation-helpers.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/js/translation-helpers.js 2023-06-13 19:48:06 UTC (rev 12655)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/js/translation-helpers.js   2023-06-14 10:54:45 UTC (rev 12656)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2,7 +2,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $gp.translation_helpers = (
</span><span class="cx" style="display: block; padding: 0 10px">        function( $ ) {
</span><span class="cx" style="display: block; padding: 0 10px">                return {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        init: function( table, fetchNow ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 init( table, fetchNow ) {
</ins><span class="cx" style="display: block; padding: 0 10px">                                 $gp.translation_helpers.table = table;
</span><span class="cx" style="display: block; padding: 0 10px">                                $gp.translation_helpers.install_hooks();
</span><span class="cx" style="display: block; padding: 0 10px">                                if ( fetchNow ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -9,7 +9,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        $gp.translation_helpers.fetch( false, $( '.translations' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                                }
</span><span class="cx" style="display: block; padding: 0 10px">                        },
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        install_hooks: function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 install_hooks() {
</ins><span class="cx" style="display: block; padding: 0 10px">                                 $( $gp.translation_helpers.table )
</span><span class="cx" style="display: block; padding: 0 10px">                                        .on( 'beforeShow', '.editor', $gp.translation_helpers.hooks.initial_fetch )
</span><span class="cx" style="display: block; padding: 0 10px">                                        .on( 'click', '.helpers-tabs li', $gp.translation_helpers.hooks.tab_select )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -16,8 +16,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        .on( 'click', 'a.comment-reply-link', $gp.translation_helpers.hooks.reply_comment_form )
</span><span class="cx" style="display: block; padding: 0 10px">                                        .on( 'click', 'a.opt-out-discussion,a.opt-in-discussion', $gp.translation_helpers.hooks.optin_optout_discussion );
</span><span class="cx" style="display: block; padding: 0 10px">                        },
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        initial_fetch: function( $element ) {
-                               var $helpers = $element.find( '.translation-helpers' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 initial_fetch( $element ) {
+                               const $helpers = $element.find( '.translation-helpers' );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                if ( $helpers.hasClass( 'loaded' ) || $helpers.hasClass( 'loading' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                        return;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -25,8 +25,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                $gp.translation_helpers.fetch( false, $element );
</span><span class="cx" style="display: block; padding: 0 10px">                        },
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        fetch: function( which, $element ) {
-                               var $helpers;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 fetch( which, $element ) {
+                               let $helpers;
</ins><span class="cx" style="display: block; padding: 0 10px">                                 if ( $element ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                        $helpers = $element.find( '.translation-helpers' );
</span><span class="cx" style="display: block; padding: 0 10px">                                } else {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -33,8 +33,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        $helpers = $( '.editor:visible, .translations' ).find( '.translation-helpers' ).first();
</span><span class="cx" style="display: block; padding: 0 10px">                                }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                var originalId = $helpers.parent().attr( 'row' ); // eslint-disable-line vars-on-top
-                               var replytocom = $helpers.parent().attr( 'replytocom' ); // eslint-disable-line vars-on-top
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         const originalId = $helpers.parent().attr( 'row' ); // eslint-disable-line vars-on-top
+                               const replytocom = $helpers.parent().attr( 'replytocom' ); // eslint-disable-line vars-on-top
</ins><span class="cx" style="display: block; padding: 0 10px">                                 var requestUrl = $gp_translation_helpers_settings.th_url + originalId + '?nohc'; // eslint-disable-line
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                if ( which ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -60,11 +60,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                                        $( '#' + id ).find( '.async-content' ).html( result.content );
</span><span class="cx" style="display: block; padding: 0 10px">                                                } );
</span><span class="cx" style="display: block; padding: 0 10px">                                                $( '.helper-translation-discussion' ).find( 'form.comment-form' ).removeAttr( 'novalidate' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                 },
</ins><span class="cx" style="display: block; padding: 0 10px">                                 );
</span><span class="cx" style="display: block; padding: 0 10px">                        },
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        tab_select: function( $tab ) {
-                               var tabId = $tab.attr( 'data-tab' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 tab_select( $tab ) {
+                               const tabId = $tab.attr( 'data-tab' );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                $tab.siblings().removeClass( 'current' );
</span><span class="cx" style="display: block; padding: 0 10px">                                $tab.parents( '.translation-helpers ' ).find( '.helper' ).removeClass( 'current' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -72,8 +72,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                $tab.addClass( 'current' );
</span><span class="cx" style="display: block; padding: 0 10px">                                $( '#' + tabId ).addClass( 'current' );
</span><span class="cx" style="display: block; padding: 0 10px">                        },
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        reply_comment_form: function( $comment ) {
-                               var commentId = $comment.attr( 'data-commentid' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 reply_comment_form( $comment ) {
+                               const commentId = $comment.attr( 'data-commentid' );
</ins><span class="cx" style="display: block; padding: 0 10px">                                 $( '#comment-reply-' + commentId ).toggle().find( 'textarea' ).focus();
</span><span class="cx" style="display: block; padding: 0 10px">                                if ( 'Reply' === $comment.text() ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                        $comment.text( 'Cancel Reply' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -81,8 +81,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        $comment.text( 'Reply' );
</span><span class="cx" style="display: block; padding: 0 10px">                                }
</span><span class="cx" style="display: block; padding: 0 10px">                        },
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        optin_optout_discussion: function( $link ) {
-                               var data = {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 optin_optout_discussion( $link ) {
+                               const data = {
</ins><span class="cx" style="display: block; padding: 0 10px">                                         action: 'optout_discussion_notifications',
</span><span class="cx" style="display: block; padding: 0 10px">                                        data: {
</span><span class="cx" style="display: block; padding: 0 10px">                                                nonce: $gp_translation_helpers_settings.nonce,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -94,29 +94,29 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        {
</span><span class="cx" style="display: block; padding: 0 10px">                                                type: 'POST',
</span><span class="cx" style="display: block; padding: 0 10px">                                                url: $gp_translation_helpers_settings.ajax_url,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                data: data,
-                                       }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                         data,
+                                       },
</ins><span class="cx" style="display: block; padding: 0 10px">                                 ).done(
</span><span class="cx" style="display: block; padding: 0 10px">                                        function() {
</span><span class="cx" style="display: block; padding: 0 10px">                                                $gp.translation_helpers.fetch( 'discussion' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                 },
</ins><span class="cx" style="display: block; padding: 0 10px">                                 );
</span><span class="cx" style="display: block; padding: 0 10px">                        },
</span><span class="cx" style="display: block; padding: 0 10px">                        hooks: {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                initial_fetch: function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         initial_fetch() {
</ins><span class="cx" style="display: block; padding: 0 10px">                                         $gp.translation_helpers.initial_fetch( $( this ) );
</span><span class="cx" style="display: block; padding: 0 10px">                                        return false;
</span><span class="cx" style="display: block; padding: 0 10px">                                },
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                tab_select: function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         tab_select() {
</ins><span class="cx" style="display: block; padding: 0 10px">                                         $gp.translation_helpers.tab_select( $( this ) );
</span><span class="cx" style="display: block; padding: 0 10px">                                        return false;
</span><span class="cx" style="display: block; padding: 0 10px">                                },
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                reply_comment_form: function( event ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         reply_comment_form( event ) {
</ins><span class="cx" style="display: block; padding: 0 10px">                                         event.preventDefault();
</span><span class="cx" style="display: block; padding: 0 10px">                                        $gp.translation_helpers.reply_comment_form( $( this ) );
</span><span class="cx" style="display: block; padding: 0 10px">                                        return false;
</span><span class="cx" style="display: block; padding: 0 10px">                                },
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                optin_optout_discussion: function( event ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         optin_optout_discussion( event ) {
</ins><span class="cx" style="display: block; padding: 0 10px">                                         event.preventDefault();
</span><span class="cx" style="display: block; padding: 0 10px">                                        $gp.translation_helpers.optin_optout_discussion( $( this ) );
</span><span class="cx" style="display: block; padding: 0 10px">                                        return false;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -127,13 +127,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> jQuery( function( $ ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        var _oldShow = $.fn.show;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ const _oldShow = $.fn.show;
</ins><span class="cx" style="display: block; padding: 0 10px">         $gp.translation_helpers.init( $( '.translations' ), true );
</span><span class="cx" style="display: block; padding: 0 10px">        if ( typeof window.newShowFunctionAttached === 'undefined' ) {
</span><span class="cx" style="display: block; padding: 0 10px">                window.newShowFunctionAttached = true;
</span><span class="cx" style="display: block; padding: 0 10px">                $.fn.show = function( speed, oldCallback ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        return $( this ).each( function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                var obj = $( this ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         const obj = $( this ),
</ins><span class="cx" style="display: block; padding: 0 10px">                                         newCallback = function() {
</span><span class="cx" style="display: block; padding: 0 10px">                                                if ( $.isFunction( oldCallback ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                                        oldCallback.apply( obj );
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsgptranslationhelperstemplatestranslationroweditormetafeedbackphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/templates/translation-row-editor-meta-feedback.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/templates/translation-row-editor-meta-feedback.php        2023-06-13 19:48:06 UTC (rev 12655)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/templates/translation-row-editor-meta-feedback.php  2023-06-14 10:54:45 UTC (rev 12656)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4,12 +4,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 'waiting' === $translation->translation_status || 'fuzzy' === $translation->translation_status ) :
</span><span class="cx" style="display: block; padding: 0 10px">        ?>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<div>
-       <div class="openai-review">
-               <p class="suggestions__loading-indicator">ChatGPT review in progress <span aria-hidden="true" class="suggestions__loading-indicator__icon"><span></span><span></span><span></span></span></p>
-               <div class="auto-review-result"></div>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<details open>
+       <summary class="chatgpt-summary"><?php esc_html_e( 'ChatGPT Review', 'glotpress' ); ?></summary>
+       <div>
+               <div class="openai-review">
+                       <p class="suggestions__loading-indicator">ChatGPT review in progress <span aria-hidden="true" class="suggestions__loading-indicator__icon"><span></span><span></span><span></span></span></p>
+                       <div class="auto-review-result"></div>
+               </div>
</ins><span class="cx" style="display: block; padding: 0 10px">         </div>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-</div>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+</details>
</ins><span class="cx" style="display: block; padding: 0 10px"> <?php endif; ?>
</span><span class="cx" style="display: block; padding: 0 10px"> <details open>
</span><span class="cx" style="display: block; padding: 0 10px">        <summary class="feedback-summary"><?php esc_html_e( 'Give feedback', 'glotpress' ); ?></summary>
</span></span></pre>
</div>
</div>

</body>
</html>