(function(window) { "use strict"; if ( !('oninput' in document.createElement('input')) ) return; const tagPattern = /\(\(([^\)\((\?)]+)(\?\?)?([^\)\(]*)\)\)/g; window.NotifyModules['enhanced-textbox'] = function() { this.start = function(element) { let textarea = $(element); let visibleTextbox; this.highlightPlaceholders = ( typeof textarea.data('highlightPlaceholders') === 'undefined' || !!textarea.data('highlightPlaceholders') ); this.$textbox = textarea .wrap(`
`) .after(this.$background = $(`