(function(){"use strict";if(page.process){page.process.onStepChange.bind(function(e,t,a){u8.using({texts:["merge_texts"]},r);function r(){if(!e.storage){return}var t=e.storage.get("sourceUid");var a=e.storage.get("targetUid");if(!t){return i()}u8.services.tableCaptions.read({uid:t},function(e,t){if(!a){return i(t.tableCaption)}u8.services.tableCaptions.read({uid:a},function(e,a){i(t.tableCaption,a.tableCaption)})})}function i(e,t){var a=$t("TXT_merge_texts_12");if(!e){return n([a])}var r=[a,$t("TXT_merge_texts_66").format({1:e.text})];if(t){r.push($t("TXT_merge_texts_67").format({1:t.text}))}n(r)}function n(e){var t=$u(".Header");if(!t||t.length!=1){return}t=t[0];if(e.length==1){t.fixedText=e[0];return}var a=t.$(t.element);a.empty();var r="<table><tbody>"+"<tr><td class='u8-header-cell u8-header-cell-caption page'>"+"<h2 class='u8-header-caption'>"+"<div class='u8-header-item u8-header-item-text'>"+"<div class='u8-tablecaption multiline'>"+"<strong>"+u8.Base.Html.escape(e[0])+"</strong>";for(var i=1;i<e.length;i++){r+="<p class='extralines'>"+u8.Base.Html.escape(e[i])+"</p>"}r+="</div>"+"</div>"+"</h2>"+"</td></tr>"+"</tbody></table>";a.append(r)}})}})();