j1-template 2022.0.1 → 2022.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/blocks/ads/ad.html +14 -14
  3. data/_includes/themes/j1/layouts/content_generator_post.html +1 -1
  4. data/_includes/themes/j1/modules/connectors/analytic/google-analytics.html +3 -13
  5. data/_includes/themes/j1/modules/connectors/comment/hyvor.html +4 -5
  6. data/_includes/themes/j1/modules/navigator/generator.html +3 -3
  7. data/_includes/themes/j1/modules/search/docsearch.html +1 -1
  8. data/_includes/themes/j1/procedures/global/create_bs_button.proc +4 -4
  9. data/_includes/themes/j1/procedures/posts/collate_timeline.proc +2 -2
  10. data/_includes/themes/j1/procedures/posts/create_series_header.proc +1 -1
  11. data/_includes/themes/j1/procedures/posts/pager.proc +2 -2
  12. data/_layouts/default.html +3 -11
  13. data/assets/data/authclient.html +11 -11
  14. data/assets/data/cookieconsent.html +8 -8
  15. data/assets/data/gallery_customizer.html +4 -4
  16. data/assets/data/menu.html +13 -13
  17. data/assets/data/mmenu.html +2 -2
  18. data/assets/data/private.json +1 -5
  19. data/assets/data/quicklinks.html +62 -47
  20. data/assets/data/rtext_resizer.html +1 -1
  21. data/assets/data/themes.bootswatch.json +2 -2
  22. data/assets/data/themes.json +4 -4
  23. data/assets/data/translator.html +8 -8
  24. data/assets/themes/j1/adapter/js/clipboard.js +1 -1
  25. data/assets/themes/j1/adapter/js/cookieConsent.js +18 -13
  26. data/assets/themes/j1/adapter/js/j1.js +23 -23
  27. data/assets/themes/j1/adapter/js/navigator.js +3 -3
  28. data/assets/themes/j1/adapter/js/themer.js +13 -4
  29. data/assets/themes/j1/adapter/js/translator.js +10 -6
  30. data/assets/themes/j1/core/css/themes/{uno-dark → unodark}/bootstrap.css +0 -0
  31. data/assets/themes/j1/core/css/themes/{uno-dark → unodark}/bootstrap.min.css +0 -0
  32. data/assets/themes/j1/core/css/themes/{uno-light → unolight}/bootstrap.css +326 -18
  33. data/assets/themes/j1/core/css/themes/{uno-light → unolight}/bootstrap.min.css +1 -1
  34. data/assets/themes/j1/core/js/template.js +143 -65
  35. data/assets/themes/j1/core/js/template.min.js +5 -5
  36. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  37. data/assets/themes/j1/modules/bmd/js/bmd.js +3 -3
  38. data/assets/themes/j1/modules/bmd/js/bmd.min.js +1 -1
  39. data/assets/themes/j1/modules/cryptoJS/js/aes.js +35 -0
  40. data/assets/themes/j1/modules/cryptoJS/js/aes.min.js +35 -0
  41. data/assets/themes/j1/modules/cryptoJS/js/hmac-md5.js +21 -0
  42. data/assets/themes/j1/modules/cryptoJS/js/hmac-ripemd160.js +31 -0
  43. data/assets/themes/j1/modules/cryptoJS/js/hmac-sha1.js +17 -0
  44. data/assets/themes/j1/modules/cryptoJS/js/hmac-sha224.js +19 -0
  45. data/assets/themes/j1/modules/cryptoJS/js/hmac-sha256.js +18 -0
  46. data/assets/themes/j1/modules/cryptoJS/js/hmac-sha3.js +21 -0
  47. data/assets/themes/j1/modules/cryptoJS/js/hmac-sha384.js +27 -0
  48. data/assets/themes/j1/modules/cryptoJS/js/hmac-sha512.js +25 -0
  49. data/assets/themes/j1/modules/cryptoJS/js/md5.js +19 -0
  50. data/assets/themes/j1/modules/cryptoJS/js/pbkdf2.js +19 -0
  51. data/assets/themes/j1/modules/cryptoJS/js/rabbit-legacy.js +36 -0
  52. data/assets/themes/j1/modules/cryptoJS/js/rabbit.js +36 -0
  53. data/assets/themes/j1/modules/cryptoJS/js/rc4.js +33 -0
  54. data/assets/themes/j1/modules/cryptoJS/js/ripemd160.js +29 -0
  55. data/assets/themes/j1/modules/cryptoJS/js/sha1.js +15 -0
  56. data/assets/themes/j1/modules/cryptoJS/js/sha224.js +17 -0
  57. data/assets/themes/j1/modules/cryptoJS/js/sha256.js +16 -0
  58. data/assets/themes/j1/modules/cryptoJS/js/sha3.js +19 -0
  59. data/assets/themes/j1/modules/cryptoJS/js/sha384.js +25 -0
  60. data/assets/themes/j1/modules/cryptoJS/js/sha512.js +23 -0
  61. data/assets/themes/j1/modules/cryptoJS/js/tripledes.js +51 -0
  62. data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.2.js +460 -0
  63. data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.js +379 -353
  64. data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.min.js +1 -1
  65. data/assets/themes/j1/modules/gtag-opt-in/js/gtag-opt-in.js +93 -1
  66. data/assets/themes/j1/modules/materialize/js/autocomplete.js +1 -1
  67. data/assets/themes/j1/modules/materialize/js/bin/materialize.js +4 -4
  68. data/assets/themes/j1/modules/materialize/js/bin/materialize.min.js +1 -1
  69. data/assets/themes/j1/modules/materialize/js/global.js +1 -1
  70. data/assets/themes/j1/modules/materialize/js/select.js +1 -1
  71. data/assets/themes/j1/modules/materialize/js/tapTarget.cash.js +1 -1
  72. data/assets/themes/j1/modules/scroller/js/scroller.js +6 -6
  73. data/assets/themes/j1/modules/scroller/js/scroller.min.js +1 -1
  74. data/assets/themes/j1/modules/twemoji/js/picker/twemoji-picker.js +2 -2
  75. data/assets/themes/j1/modules/twemoji/js/picker/twemoji-picker.min.js +1 -1
  76. data/exe/j1 +6 -7
  77. data/lib/j1/commands/generate.rb +15 -16
  78. data/lib/j1/version.rb +1 -1
  79. data/lib/starter_web/Gemfile +7 -1
  80. data/lib/starter_web/_config.yml +1 -1
  81. data/lib/starter_web/_data/_defaults/j1_config.yml +1 -1
  82. data/lib/starter_web/_data/_defaults/private.yml +3 -2
  83. data/lib/starter_web/_data/_defaults/resources.yml +1 -1
  84. data/lib/starter_web/_data/blocks/banner.yml +5 -5
  85. data/lib/starter_web/_data/blocks/defaults/banner.yml +5 -5
  86. data/lib/starter_web/_data/blocks/defaults/panel.yml +3 -3
  87. data/lib/starter_web/_data/builder/defaults/blog_navigator.yml +50 -44
  88. data/lib/starter_web/_data/j1_config.yml +2 -2
  89. data/lib/starter_web/_data/modules/defaults/attics.yml +1 -1
  90. data/lib/starter_web/_data/modules/defaults/navigator.yml +31 -11
  91. data/lib/starter_web/_data/modules/translator.yml +3 -3
  92. data/lib/starter_web/_data/private.yml +3 -2
  93. data/lib/starter_web/_data/resources.yml +28 -3
  94. data/lib/starter_web/_includes/attributes.asciidoc +1 -1
  95. data/lib/starter_web/_plugins/encodeBase64.rb +46 -0
  96. data/lib/starter_web/_plugins/encryptAES.rb +53 -0
  97. data/lib/starter_web/_plugins/filters.rb +2 -1
  98. data/lib/starter_web/_plugins/lunr_index.rb +1 -1
  99. data/lib/starter_web/_plugins/minifyJSON.rb +2 -2
  100. data/lib/starter_web/assets/images/pages/roundtrip/500_themes/themes-menu-1280x800.jpg +0 -0
  101. data/lib/starter_web/package.json +1 -1
  102. data/lib/starter_web/pages/_test_pages/100_side-bar-tester.adoc +1 -1
  103. data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_info.asciidoc +3 -3
  104. data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_left_warning.asciidoc +1 -1
  105. data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_right_danger.asciidoc +1 -1
  106. data/lib/starter_web/pages/_test_pages/_includes/documents/410_central_success.asciidoc +1 -1
  107. data/lib/starter_web/pages/_test_pages/_includes/documents/410_full_height_left_info.asciidoc +1 -1
  108. data/lib/starter_web/pages/_test_pages/_includes/documents/410_full_height_right_success.asciidoc +1 -1
  109. data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_info.asciidoc +1 -1
  110. data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_left_info.asciidoc +1 -1
  111. data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_right_success.asciidoc +1 -1
  112. data/lib/starter_web/pages/_test_pages/_includes/documents/419_advanced_modals_demo.asciidoc +22 -22
  113. data/lib/starter_web/pages/_test_pages/accordion-01-tester.adoc +3 -3
  114. data/lib/starter_web/pages/_test_pages/accordion-02-tester.adoc +3 -3
  115. data/lib/starter_web/pages/_test_pages/accordion-03-tester.adoc +4 -4
  116. data/lib/starter_web/pages/_test_pages/backdrop-tester.adoc +3 -3
  117. data/lib/starter_web/pages/_test_pages/button-tester-1.adoc +2 -2
  118. data/lib/starter_web/pages/_test_pages/cookieConsent.adoc +1 -1
  119. data/lib/starter_web/pages/_test_pages/infinite-scroll-tester.adoc +3 -3
  120. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +1 -1
  121. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +1 -1
  122. data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +1 -1
  123. data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +0 -21
  124. data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +1 -1
  125. data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +1 -0
  126. data/lib/starter_web/pages/public/blog/navigator/archive.html +1 -1
  127. data/lib/starter_web/pages/public/learn/quickstart.adoc +1 -1
  128. data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +4 -5
  129. data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +1 -1
  130. data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +2 -2
  131. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_bottom_info.asciidoc +3 -3
  132. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_bottom_left_warning.asciidoc +1 -1
  133. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_bottom_right_danger.asciidoc +1 -1
  134. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_central_success.asciidoc +1 -1
  135. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_full_height_left_info.asciidoc +1 -1
  136. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_full_height_right_success.asciidoc +1 -1
  137. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_top_info.asciidoc +1 -1
  138. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_top_left_info.asciidoc +1 -1
  139. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_top_right_success.asciidoc +1 -1
  140. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/419_advanced_modals_demo.asciidoc +51 -51
  141. data/lib/starter_web/pages/public/learn/where_to_go.adoc +1 -1
  142. data/lib/starter_web/pages/public/legal/de/100_copyright.adoc +1 -1
  143. data/lib/starter_web/pages/public/legal/de/100_impress.adoc +1 -1
  144. data/lib/starter_web/pages/public/legal/de/300_privacy.adoc +5 -5
  145. data/lib/starter_web/pages/public/legal/de/400_comment_policy.adoc +1 -1
  146. data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +1 -1
  147. data/lib/starter_web/pages/public/legal/en/200_impress.adoc +1 -1
  148. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +4 -5
  149. data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +1 -1
  150. data/lib/starter_web/pages/public/panels/intro_panel/_includes/attributes.asciidoc +55 -0
  151. data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +51 -3
  152. data/lib/starter_web/pages/public/previewer/preview_bootstrap_theme.adoc +163 -73
  153. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  154. data/lib/starter_web/utilsrv/package.json +1 -1
  155. metadata +34 -9
  156. data/lib/j1/commands/help.rb +0 -32
  157. data/lib/j1/commands/module.rb +0 -69
@@ -15,4 +15,4 @@
15
15
  # See: https://www.dotnetcurry.com/jquery/1069/authoring-jquery-plugins
16
16
  # -----------------------------------------------------------------------------
17
17
  */
18
- (function(e,c,a,g){var d="deeplAPI",f={api:"free",auth_key:"",source_lang:"auto",target_lang:"DE",max_chars:false,split_sentences:"1",preserve_formatting:"0",formality:"default",tag_handling:false,outline_detection:true,non_splitting_tags:false,splitting_tags:false,ignore_tags:false,onInit:function(){},onBeforeTranslation:function(){},onAfterTranslation:function(){}};function b(i,h){this.element=i;this.settings=e.extend({},f,h);this.settings.elementID="#"+this.element.id;this.xhr=new XMLHttpRequest();this.init(this.settings)}e.extend(b.prototype,{init:function(i){var n=this;var h=log4javascript.getLogger("deeplAPI.init");var j="/assets/data/private.json";var k=i;var l;h.info("\ninitializing plugin: started");e.ajax({url:j,dataType:"json",success:function(o){l=o.translators.deepl.auth_key},error:function(o,q,p){h.error("\nfailed to retrieve Yaml data from: "+j)}});var m=setInterval(function(){if(typeof l!=="undefined"){k.auth_key=l;n.translate(k);h.info("\ntranslation: in progress");clearInterval(m)}})},prepareXHR:function(h){if(h.api==="free"){this.xhr.open("POST","https://api-free.deepl.com/v2/translate",true)}else{if(h.api==="pro"){this.xhr.open("POST","https://api.deepl.com/v2/translate",true)}else{this.xhr.open("POST","https://api-free.deepl.com/v2/translate",true)}}this.xhr.setRequestHeader("Accept","*/*");this.xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded")},prepareText:function(h){return h.split("\n")},translate:function(C){const H=log4javascript.getLogger("deeplAPI.translate");const n=4;const t=200;const u=["BG","CS","DA","DE","EL","EN-GB","EN-US","EN","ES","ET","FI","FR","HU","IT","JA","LT","LV","NL","PL","PT-PT","PT-BR","PT","RO","RU","SK","SL","SV","ZH"];const h=["DE","FR","IT","ES","NL","PL","PT","PT-BR","RU"];const r=["xml"];const w=C.targetElement;const q=e(w).length;const D="Translation failed.\nReason: ";const o="Translation skipped.\nReason: ";var y;var F;var v;var x={};x["400"]="Bad request. Please check error message and your parameters.";x["401"]="Authorization failed. Please supply a valid DeepL-Auth-Key.";x["403"]="Forbidden. The access to the requested resource is denied, because of insufficient access rights.";x["404"]="The requested resource could not be found.";x["413"]="The request size exceeds the limit.";x["415"]="The requested entries format specified in the Accept header is not supported.";x["429"]="Too many requests. Please wait and resend your request.";x["456"]="Quota exceeded. The maximum amount of glossaries has been reached.";x["500"]="Internal server error";x["503"]="Resource currently unavailable. Try again later.";x["529"]="Too many requests. Please wait and resend your request.";var l;var k="";var j="";var B="";var E="";var m;var G;if(q){y=(w.includes(".")||w.includes("#"))?w.substring(1):w;F=e(w).get(0).nodeName;if(F==="TEXTAREA"){B=this.element.value}else{if(F==="P"){j=this.element;B=e(w).text()}}v=B.length}else{H.error("\ntarget element does not exists: "+w);return false}if(C.max_char&&B.length>C.max_char){var s=B.substring(0,C.max_char-3);B=s+" ...";H.info("\nlimit for source text (max: "+C.max_char+") reached: "+B.length)}E=this.prepareText(B);this.prepareXHR(C);var p="";for(var A=0;A<E.length;A++){p+="&text="+E[A]}this.xhr.onload=function(){if(this.readyState===n){if(this.status===t){var I=JSON.parse(this.responseText);var J="";for(var K=0;K<I.translations.length;K++){J+=I.translations[K].text;J+="\n"}H.info("\ntranslation: finished");if(F==="TEXTAREA"){e(w).val(J)}else{if(F==="P"){e(w).text(J)}}}else{H.error("\nAPI returned "+this.status+": "+x[this.status])}}};m=this.settings.source_lang;G=this.settings.target_lang;if(this.settings.source_lang!=="auto"){this.settings.source_lang=(u.indexOf(this.settings.source_lang)>-1)?this.settings.source_lang:false}this.settings.target_lang=(u.indexOf(this.settings.target_lang)>-1)?this.settings.target_lang:false;if(!this.settings.auth_key||!this.settings.source_lang||!this.settings.target_lang){if(!this.settings.auth_key){l="NO AUTH key passed.";H.error("\ninvalid option found. "+l)}if(!this.settings.source_lang){l="WRONG source language passed: "+m;H.error("\ninvalid option found. "+l)}if(!this.settings.target_lang){l="WRONG target language passed: "+G;H.error("\ninvalid option found. "+l)}if(F==="TEXTAREA"){e(w).val(D+l)}else{if(F==="P"){e(w).text(D+l)}}return false}if(!v){l="NO text found for translation";if(F==="TEXTAREA"){e(w).val(o+l)}else{if(F==="P"){e(w).text(o+l)}}H.warn("\nno text found for translation");return false}if(this.settings.formality!=="default"){if(!(h.indexOf(this.settings.target_lang)>-1)){H.warn("\nwrong language found for formality setting: "+this.settings.target_lang)}this.settings.formality=(h.indexOf(this.settings.target_lang)>-1)?this.settings.formality:"default"}if(this.settings.tag_handling){var z=this.settings.tag_handling;this.settings.tag_handling=(r.indexOf(this.settings.tag_handling)>-1)?this.settings.tag_handling:false;if(this.settings.tag_handling){this.settings.non_splitting_tags=this.settings.non_splitting_tags?encodeURIComponent(this.settings.non_splitting_tags):false;this.settings.splitting_tags=this.settings.splitting_tags?encodeURIComponent(this.settings.splitting_tags):false;this.settings.ignore_tags=this.settings.ignore_tags?encodeURIComponent(this.settings.ignore_tags):false}else{H.error("\ninvalid option found for tag handling : "+z);H.warn("\ndisable option: tag_handling");if(this.settings.non_splitting_tags){H.warn("\ndisable option: "+this.settings.non_splitting_tags);this.settings.non_splitting_tags=false}if(this.settings.splitting_tags){H.warn("\ndisable option : "+this.settings.splitting_tags);this.settings.splitting_tags=false}if(this.settings.ignore_tags){H.warn("\ndisable option: "+this.settings.ignore_tags);this.settings.ignore_tags=false}}}else{if(this.settings.non_splitting_tags){H.warn("\ninvalid option found: "+this.settings.non_splitting_tags);this.settings.non_splitting_tags=false}if(this.settings.splitting_tags){H.warn("\ninvalid option found: "+this.settings.splitting_tags);this.settings.splitting_tags=false}if(this.settings.ignore_tags){H.warn("\ninvalid option found: "+this.settings.ignore_tags);this.settings.ignore_tags=false}}k="auth_key="+this.settings.auth_key;k+=(this.settings.source_lang!=="auto")?"&source_lang="+this.settings.source_lang:"";k+="&target_lang="+this.settings.target_lang;k+=(this.settings.formality!=="default")?"&formality="+this.settings.formality:"";k+=(this.settings.split_sentences)?"&split_sentences="+this.settings.formality:"";k+=(this.settings.tag_handling)?"&tag_handling="+this.settings.tag_handling:"&tag_handling=0";k+=(this.settings.tag_handling&&this.settings.non_splitting_tags)?"&non_splitting_tags="+this.settings.non_splitting_tags:"";k+=(this.settings.tag_handling&&this.settings.splitting_tags)?"&splitting_tags="+this.settings.splitting_tags:"";k+=(this.settings.tag_handling&&this.settings.ignore_tags)?"&ignore_tags="+this.settings.ignore_tags:"";k+=p;this.xhr.send(k)}});e.fn[d]=function(i){var h=arguments;if(i===g||typeof i==="object"){return this.each(function(){if(!e.data(this,"plugin_"+d)){e.data(this,"plugin_"+d,new b(this,i))}})}else{if(typeof i==="string"&&i[0]!=="_"&&i!=="init"){var j;this.each(function(){var k=e.data(this,"plugin_"+d);if(k instanceof b&&typeof k[i]==="function"){j=k[i].apply(k,Array.prototype.slice.call(h,1))}if(i==="destroy"){e.data(this,"plugin_"+d,null)}});return j!==g?j:this}}}})(jQuery,window,document);
18
+ (function(e,c,a,g){var d="deeplAPI",f={api:"free",auth_key:"",source_lang:"auto",target_lang:"DE",max_chars:false,split_sentences:"1",preserve_formatting:"0",formality:"default",tag_handling:false,outline_detection:true,non_splitting_tags:false,splitting_tags:false,ignore_tags:false,onInit:function(){},onBeforeTranslation:function(){},onAfterTranslation:function(){}};function b(i,h){this.element=i;this.settings=e.extend({},f,h);this.settings.elementID="#"+this.element.id;this.xhr=new XMLHttpRequest();this.init(this.settings)}e.extend(b.prototype,{init:function(q){var k=this;var o=log4javascript.getLogger("deeplAPI.init");var h="/assets/data/private.json";var i=q;var m;var p;var j;var l;o.info("\ninitialize: started");e.ajax({url:h,dataType:"text",success:function(r){p=atob(r);l=JSON.parse(p);m=l.translators.deepl.auth_key},error:function(r,t,s){o.error("\nfailed to retrieve JSON data from: "+h)}});var n=setInterval(function(){if(typeof m!=="undefined"){i.auth_key=m;k.translate(i);o.info("\ninitialize: finished");o.info("\ntranslate: started");clearInterval(n)}})},prepareXHR:function(h){if(h.api==="free"){this.xhr.open("POST","https://api-free.deepl.com/v2/translate",true)}else{if(h.api==="pro"){this.xhr.open("POST","https://api.deepl.com/v2/translate",true)}else{this.xhr.open("POST","https://api-free.deepl.com/v2/translate",true)}}this.xhr.setRequestHeader("Accept","*/*");this.xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded")},prepareText:function(h){return h.split("\n")},translate:function(C){const H=log4javascript.getLogger("deeplAPI.translate");const n=4;const t=200;const u=["BG","CS","DA","DE","EL","EN-GB","EN-US","EN","ES","ET","FI","FR","HU","IT","JA","LT","LV","NL","PL","PT-PT","PT-BR","PT","RO","RU","SK","SL","SV","ZH"];const h=["DE","FR","IT","ES","NL","PL","PT","PT-BR","RU"];const r=["xml"];const w=C.targetElement;const q=e(w).length;const D="Translation failed.\nReason: ";const o="Translation skipped.\nReason: ";var y;var F;var v;var x={};x["400"]="Bad request. Please check error message and your parameters.";x["401"]="Authorization failed. Please supply a valid DeepL-Auth-Key.";x["403"]="Forbidden. The access to the requested resource is denied, because of insufficient access rights.";x["404"]="The requested resource could not be found.";x["413"]="The request size exceeds the limit.";x["415"]="The requested entries format specified in the Accept header is not supported.";x["429"]="Too many requests. Please wait and resend your request.";x["456"]="Quota exceeded. The maximum amount of glossaries has been reached.";x["500"]="Internal server error";x["503"]="Resource currently unavailable. Try again later.";x["529"]="Too many requests. Please wait and resend your request.";var l;var k="";var j="";var B="";var E="";var m;var G;if(q){y=(w.includes(".")||w.includes("#"))?w.substring(1):w;F=e(w).get(0).nodeName;if(F==="TEXTAREA"){B=this.element.value}else{if(F==="P"){j=this.element;B=e(w).text()}}v=B.length}else{H.error("\ntarget element does not exists: "+w);return false}if(C.max_char&&B.length>C.max_char){var s=B.substring(0,C.max_char-3);B=s+" ...";H.info("\nlimit for source text (max: "+C.max_char+") reached: "+B.length)}E=this.prepareText(B);this.prepareXHR(C);var p="";for(var A=0;A<E.length;A++){p+="&text="+E[A]}this.xhr.onload=function(){if(this.readyState===n){if(this.status===t){var I=JSON.parse(this.responseText);var J="";for(var K=0;K<I.translations.length;K++){J+=I.translations[K].text;J+="\n"}H.info("\ntranslation: finished");if(F==="TEXTAREA"){e(w).val(J)}else{if(F==="P"){e(w).text(J)}}}else{H.error("\nAPI returned "+this.status+": "+x[this.status])}}};m=this.settings.source_lang;G=this.settings.target_lang;if(this.settings.source_lang!=="auto"){this.settings.source_lang=(u.indexOf(this.settings.source_lang)>-1)?this.settings.source_lang:false}this.settings.target_lang=(u.indexOf(this.settings.target_lang)>-1)?this.settings.target_lang:false;if(!this.settings.auth_key||!this.settings.source_lang||!this.settings.target_lang){if(!this.settings.auth_key){l="NO AUTH key passed.";H.error("\ninvalid option found. "+l)}if(!this.settings.source_lang){l="WRONG source language passed: "+m;H.error("\ninvalid option found. "+l)}if(!this.settings.target_lang){l="WRONG target language passed: "+G;H.error("\ninvalid option found. "+l)}if(F==="TEXTAREA"){e(w).val(D+l)}else{if(F==="P"){e(w).text(D+l)}}return false}if(!v){l="NO text found for translation";if(F==="TEXTAREA"){e(w).val(o+l)}else{if(F==="P"){e(w).text(o+l)}}H.warn("\nno text found for translation");return false}if(this.settings.formality!=="default"){if(!(h.indexOf(this.settings.target_lang)>-1)){H.warn("\nwrong language found for formality setting: "+this.settings.target_lang)}this.settings.formality=(h.indexOf(this.settings.target_lang)>-1)?this.settings.formality:"default"}if(this.settings.tag_handling){var z=this.settings.tag_handling;this.settings.tag_handling=(r.indexOf(this.settings.tag_handling)>-1)?this.settings.tag_handling:false;if(this.settings.tag_handling){this.settings.non_splitting_tags=this.settings.non_splitting_tags?encodeURIComponent(this.settings.non_splitting_tags):false;this.settings.splitting_tags=this.settings.splitting_tags?encodeURIComponent(this.settings.splitting_tags):false;this.settings.ignore_tags=this.settings.ignore_tags?encodeURIComponent(this.settings.ignore_tags):false}else{H.error("\ninvalid option found for tag handling : "+z);H.warn("\ndisable option: tag_handling");if(this.settings.non_splitting_tags){H.warn("\ndisable option: "+this.settings.non_splitting_tags);this.settings.non_splitting_tags=false}if(this.settings.splitting_tags){H.warn("\ndisable option : "+this.settings.splitting_tags);this.settings.splitting_tags=false}if(this.settings.ignore_tags){H.warn("\ndisable option: "+this.settings.ignore_tags);this.settings.ignore_tags=false}}}else{if(this.settings.non_splitting_tags){H.warn("\ninvalid option found: "+this.settings.non_splitting_tags);this.settings.non_splitting_tags=false}if(this.settings.splitting_tags){H.warn("\ninvalid option found: "+this.settings.splitting_tags);this.settings.splitting_tags=false}if(this.settings.ignore_tags){H.warn("\ninvalid option found: "+this.settings.ignore_tags);this.settings.ignore_tags=false}}k="auth_key="+this.settings.auth_key;k+=(this.settings.source_lang!=="auto")?"&source_lang="+this.settings.source_lang:"";k+="&target_lang="+this.settings.target_lang;k+=(this.settings.formality!=="default")?"&formality="+this.settings.formality:"";k+=(this.settings.split_sentences)?"&split_sentences="+this.settings.formality:"";k+=(this.settings.tag_handling)?"&tag_handling="+this.settings.tag_handling:"&tag_handling=0";k+=(this.settings.tag_handling&&this.settings.non_splitting_tags)?"&non_splitting_tags="+this.settings.non_splitting_tags:"";k+=(this.settings.tag_handling&&this.settings.splitting_tags)?"&splitting_tags="+this.settings.splitting_tags:"";k+=(this.settings.tag_handling&&this.settings.ignore_tags)?"&ignore_tags="+this.settings.ignore_tags:"";k+=p;this.xhr.send(k)}});e.fn[d]=function(i){var h=arguments;if(i===g||typeof i==="object"){return this.each(function(){if(!e.data(this,"plugin_"+d)){e.data(this,"plugin_"+d,new b(this,i))}})}else{if(typeof i==="string"&&i[0]!=="_"&&i!=="init"){var j;this.each(function(){var k=e.data(this,"plugin_"+d);if(k instanceof b&&typeof k[i]==="function"){j=k[i].apply(k,Array.prototype.slice.call(h,1))}if(i==="destroy"){e.data(this,"plugin_"+d,null)}});return j!==g?j:this}}}})(jQuery,window,document);
@@ -12,4 +12,96 @@
12
12
  # For details, see https://github.com/luciomartinez/gtag-opt-in/blob/main/LICENSE
13
13
  # -----------------------------------------------------------------------------
14
14
  */
15
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.GTagOptIn=t():e.GTagOptIn=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t),n.d(t,"register",(function(){return i})),n.d(t,"optIn",(function(){return f})),n.d(t,"optOut",(function(){return a}));let r=!1,o=void 0;const i=e=>{u(e),o=e},u=e=>{if(!e)throw new Error("gtag-opt-in: invalid value passed to `register` method. Make sure to use a valid Analytics ID.")},a=()=>{d(),window["ga-disable-"+o]=!0},f=()=>{d(),c(),window["ga-disable-"+o]=!1},d=()=>{if(!o)throw new Error("gtag-opt-in: no value found for Analytics ID. Make sure to register before by calling the `register` method.")},c=()=>{r||(l(),r=!0)},l=()=>{const e=s();p(e)},s=()=>(window.dataLayer=window.dataLayer||[],function(){dataLayer.push(arguments)}),p=e=>{e("js",new Date),e("config",o,{anonymize_ip:!0})}}])}));
15
+ !function (e, t) {
16
+ "object" == typeof exports && "object" == typeof module
17
+ ? module.exports = t() : "function" == typeof define && define.amd ? define([], t)
18
+ : "object" == typeof exports ? exports.GTagOptIn = t() : e.GTagOptIn = t()
19
+ } (window, (function () {
20
+ return function (e) {
21
+ var t = {};
22
+
23
+ function n(r) {
24
+ if (t[r]) return t[r].exports;
25
+ var o = t[r] = {
26
+ i: r,
27
+ l: !1,
28
+ exports: {}
29
+ };
30
+ return e[r].call(o.exports, o, o.exports, n), o.l = !0, o.exports
31
+ }
32
+ return n.m = e, n.c = t, n.d = function (e, t, r) {
33
+ n.o(e, t) || Object.defineProperty(e, t, {
34
+ enumerable: !0,
35
+ get: r
36
+ })
37
+ }, n.r = function (e) {
38
+ "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
39
+ value: "Module"
40
+ }), Object.defineProperty(e, "__esModule", {
41
+ value: !0
42
+ })
43
+ }, n.t = function (e, t) {
44
+ if (1 & t && (e = n(e)), 8 & t) return e;
45
+ if (4 & t && "object" == typeof e && e && e.__esModule) return e;
46
+ var r = Object.create(null);
47
+ if (n.r(r), Object.defineProperty(r, "default", {
48
+ enumerable: !0,
49
+ value: e
50
+ }), 2 & t && "string" != typeof e)
51
+ for (var o in e) n.d(r, o, function (t) {
52
+ return e[t]
53
+ }.bind(null, o));
54
+ return r
55
+ }, n.n = function (e) {
56
+ var t = e && e.__esModule ? function () {
57
+ return e.default
58
+ } : function () {
59
+ return e
60
+ };
61
+ return n.d(t, "a", t), t
62
+ }, n.o = function (e, t) {
63
+ return Object.prototype.hasOwnProperty.call(e, t)
64
+ }, n.p = "", n(n.s = 0)
65
+ }([function (e, t, n) {
66
+ "use strict";
67
+ n.r(t), n.d(t, "register", (function () {
68
+ return i
69
+ })), n.d(t, "optIn", (function () {
70
+ return f
71
+ })), n.d(t, "optOut", (function () {
72
+ return a
73
+ }));
74
+ let r = !1,
75
+ o = void 0;
76
+ const i = e => {
77
+ u(e), o = e
78
+ },
79
+ u = e => {
80
+ if (!e) throw new Error("gtag-opt-in: invalid value passed to `register` method. Make sure to use a valid Analytics ID.")
81
+ },
82
+ a = () => {
83
+ d(), window["ga-disable-" + o] = !0
84
+ },
85
+ f = () => {
86
+ d(), c(), window["ga-disable-" + o] = !1
87
+ },
88
+ d = () => {
89
+ if (!o) throw new Error("gtag-opt-in: no value found for Analytics ID. Make sure to register before by calling the `register` method.")
90
+ },
91
+ c = () => {
92
+ r || (l(), r = !0)
93
+ },
94
+ l = () => {
95
+ const e = s();
96
+ p(e)
97
+ },
98
+ s = () => (window.dataLayer = window.dataLayer || [], function () {
99
+ dataLayer.push(arguments)
100
+ }),
101
+ p = e => {
102
+ e("js", new Date), e("config", o, {
103
+ anonymize_ip: !0
104
+ })
105
+ }
106
+ }])
107
+ }));
@@ -150,7 +150,7 @@
150
150
  this.container.id = `autocomplete-options-${M.guid()}`;
151
151
  $(this.container).addClass('autocomplete-content dropdown-content');
152
152
  this.$inputField.append(this.container);
153
- this.el.setAttribute('data-target', this.container.id);
153
+ this.el.setAttribute('data-bs-target', this.container.id);
154
154
 
155
155
  this.dropdown = M.Dropdown.init(this.el, {
156
156
  autoFocus: false,
@@ -1369,7 +1369,7 @@ M.getOverflowParent = function (element) {
1369
1369
  * @returns {string}
1370
1370
  */
1371
1371
  M.getIdFromTrigger = function (trigger) {
1372
- var id = trigger.getAttribute('data-target');
1372
+ var id = trigger.getAttribute('data-bs-target');
1373
1373
  if (!id) {
1374
1374
  id = trigger.getAttribute('href');
1375
1375
  if (id) {
@@ -6556,7 +6556,7 @@ $jscomp.polyfill = function (e, r, p, m) {
6556
6556
  this.container.id = "autocomplete-options-" + M.guid();
6557
6557
  $(this.container).addClass('autocomplete-content dropdown-content');
6558
6558
  this.$inputField.append(this.container);
6559
- this.el.setAttribute('data-target', this.container.id);
6559
+ this.el.setAttribute('data-bs-target', this.container.id);
6560
6560
 
6561
6561
  this.dropdown = M.Dropdown.init(this.el, {
6562
6562
  autoFocus: false,
@@ -11282,7 +11282,7 @@ $jscomp.polyfill = function (e, r, p, m) {
11282
11282
  _this67.isOpen = false;
11283
11283
 
11284
11284
  // setup
11285
- _this67.$origin = $('#' + _this67.$el.attr('data-target'));
11285
+ _this67.$origin = $('#' + _this67.$el.attr('data-bs-target'));
11286
11286
  _this67._setup();
11287
11287
 
11288
11288
  _this67._calculatePositioning();
@@ -11818,7 +11818,7 @@ $jscomp.polyfill = function (e, r, p, m) {
11818
11818
  $(this.input).addClass('select-dropdown dropdown-trigger');
11819
11819
  this.input.setAttribute('type', 'text');
11820
11820
  this.input.setAttribute('readonly', 'true');
11821
- this.input.setAttribute('data-target', this.dropdownOptions.id);
11821
+ this.input.setAttribute('data-bs-target', this.dropdownOptions.id);
11822
11822
  if (this.el.disabled) {
11823
11823
  $(this.input).prop('disabled', 'true');
11824
11824
  }