@sapui5/sap.webanalytics.core 1.93.0 → 1.97.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/package.json +1 -1
  2. package/src/sap/webanalytics/core/.library +1 -1
  3. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/Component.js +2 -2
  4. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/css/style.css +36 -1
  5. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_ar.properties +1 -2
  6. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_bg.properties +1 -2
  7. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_ca.properties +1 -2
  8. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_cs.properties +1 -2
  9. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_cy.properties +1 -2
  10. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_da.properties +1 -2
  11. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_de.properties +1 -2
  12. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_el.properties +1 -2
  13. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_en.properties +1 -1
  14. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_en_GB.properties +1 -2
  15. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_en_US_sappsd.properties +1 -2
  16. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_en_US_saprigi.properties +1 -1
  17. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_en_US_saptrc.properties +1 -2
  18. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_es.properties +1 -2
  19. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_es_MX.properties +1 -2
  20. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_et.properties +1 -2
  21. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_fi.properties +1 -2
  22. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_fr.properties +1 -2
  23. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_fr_CA.properties +1 -2
  24. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_hi.properties +1 -2
  25. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_hr.properties +1 -2
  26. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_hu.properties +1 -2
  27. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_id.properties +1 -2
  28. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_it.properties +1 -2
  29. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_iw.properties +1 -2
  30. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_ja.properties +1 -2
  31. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_kk.properties +1 -2
  32. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_ko.properties +1 -2
  33. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_lt.properties +1 -2
  34. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_lv.properties +1 -2
  35. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_ms.properties +1 -2
  36. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_nl.properties +1 -2
  37. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_no.properties +1 -2
  38. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_pl.properties +1 -2
  39. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_pt.properties +1 -2
  40. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_pt_PT.properties +1 -2
  41. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_ro.properties +1 -2
  42. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_ru.properties +1 -2
  43. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_sh.properties +1 -2
  44. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_sk.properties +1 -2
  45. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_sl.properties +1 -2
  46. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_sv.properties +1 -2
  47. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_th.properties +1 -2
  48. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_tr.properties +1 -2
  49. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_uk.properties +1 -2
  50. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_vi.properties +1 -2
  51. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_zh_CN.properties +1 -2
  52. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_zh_TW.properties +1 -2
  53. package/src/sap/webanalytics/core/library.js +1 -1
  54. package/src/sap/webanalytics/core/tracker/js/track.js +51 -24
@@ -182,6 +182,8 @@
182
182
  if(typeof swa.anonymousTrackingConsent === "undefined"){
183
183
  swa.anonymousTrackingConsent = false;
184
184
  }
185
+ //include the external css to load banner/consent form
186
+ swa.addCss();
185
187
  };
186
188
 
187
189
  function canSessionIncrement(){
@@ -193,6 +195,27 @@
193
195
  } else if(document.cookie.indexOf("_swa_ses." + swa.pubToken) == -1 && document.cookie.indexOf("_swa_id." + swa.pubToken) == -1) {window.localStorage.setItem('id_vc.' + swa.pubToken, 1);} //Create the first session of the user if no cookies exist
194
196
  }
195
197
 
198
+ //Called to load the external stylesheet for banner and consent form
199
+ swa.addCss = function(){
200
+ var cssurl = swa.baseUrl+ "js/css/style.css";
201
+ if(window.sap.ui !== undefined && parseFloat(sap.ui.version) >= 1.94 ) {
202
+ cssurl = sap.ui.require.toUrl(
203
+ "sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/css/style.css"
204
+ );
205
+ }
206
+ var d = document,
207
+ g = d.createElement("link");
208
+ g.rel = 'stylesheet';
209
+ g.type = 'text/css';
210
+ g.href = cssurl;
211
+ if (d.body) {
212
+ d.body.appendChild(g);
213
+ } else {
214
+ var ss = d.getElementsByTagName("link"),
215
+ s = ss[ss.length - 1];
216
+ s.parentNode.insertBefore(g, s.nextSibling);
217
+ }
218
+ };
196
219
  //Called to init SWA after we made sure jQuery exists
197
220
  swa.documentReady = function() {
198
221
  //Init variables
@@ -289,7 +312,7 @@
289
312
  swa
290
313
  .jQuery("body")
291
314
  .append(
292
- '<style>.swa_banner {font-family:Arial,Helvetica,sans-serif;width: 100%;height: auto;bottom:0;min-height: 20px;background-color: #FFFFFF;z-index: 9999;position: absolute;left: 0;font-size:80%; padding: 10px 10px 10px 10px;}.swa_banner p {display: inline;position: static;left: 0px; word-spacing:1px;line-height: 17px; color: #000;}.swa_banner img{vertical-align:top;}.swa_banner form {display: inline;position: absolute;right: 0px;margin-right: 25px;}#buttonsDiv{float: right;margin-right:30px;padding: 5px 5px 0 0;}.bannerButton {margin-right:15px;background-color: #0066ff;border: none;color: white;padding:5px 5px;font-size: 12px;cursor: pointer;width: 80px;border-radius:4px;}.bannerButton:hover{background-color: #075caf;} button#yesButton:disabled { opacity: 0.3; background-color:#0066ff}</style><div id="swa_banner" class="swa_banner"><p><strong>' +
315
+ '<div id="swa_banner " class="swa_banner bannerbottom"><p><strong>' +
293
316
  consentText +
294
317
  '</strong></p></br><hr><div id="buttonsDiv" ><button type="button" id="yesButton" title=' +
295
318
  swa.consentAllowButton +
@@ -301,13 +324,13 @@ swa
301
324
  swa.consentDenyButton +
302
325
  '</button><a href="#" title=' +
303
326
  swa.consentCloseButton +
304
- ' style="margin-top:5px; margin-left:20px;" ><img id="closeButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAACIiIhaeOqmAAAAAXRSTlMAQObYZgAAAC9JREFUaN5jYGBgEOBgsJBhqLFjsKthkP/BwP+Bgf0BCAEZQC5QECgFVABUxsAAAOcxCbuaDAybAAAAAElFTkSuQmCC" /></a></div>'
327
+ ' class="consentCloseButton" ><img id="closeButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAACIiIhaeOqmAAAAAXRSTlMAQObYZgAAAC9JREFUaN5jYGBgEOBgsJBhqLFjsKthkP/BwP+Bgf0BCAEZQC5QECgFVABUxsAAAOcxCbuaDAybAAAAAElFTkSuQmCC" /></a></div>'
305
328
  );
306
329
  } else {
307
330
  swa
308
331
  .jQuery("body")
309
332
  .append(
310
- '<style>.swa_banner {font-family:Arial,Helvetica,sans-serif;width: 100%;height: auto;top:0;min-height: 20px;background-color: #FFFFFF;z-index: 9999;position: absolute;left: 0;font-size:80%; padding: 10px 10px 10px 10px;}.swa_banner p {display: inline;position: static;left: 0px; word-spacing:1px;line-height: 17px; color: #000;}.swa_banner img{vertical-align:top;}.swa_banner form {display: inline;position: absolute;right: 0px;margin-right: 25px;}#buttonsDiv{float: right;margin-right:30px;padding: 5px 5px 0 0;}.bannerButton {margin-right:15px;background-color: #0066ff;border: none;color: white;padding:5px 5px;font-size: 12px;cursor: pointer;width: 80px;border-radius:4px;}.bannerButton:hover{background-color: #075caf;} button#yesButton:disabled { opacity: 0.3; background-color:#0066ff}</style><div id="swa_banner" class="swa_banner"><p><strong>' +
333
+ '<div id="swa_banner" class="swa_banner bannertop"><p><strong>' +
311
334
  consentText +
312
335
  '</strong></p></br><hr><div id="buttonsDiv" ><button type="button" id="yesButton" title=' +
313
336
  swa.consentAllowButton +
@@ -319,7 +342,7 @@ swa
319
342
  swa.consentDenyButton +
320
343
  '</button><a href="#" title=' +
321
344
  swa.consentCloseButton +
322
- ' style="margin-top:5px; margin-left:20px;" ><img id="closeButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAACIiIhaeOqmAAAAAXRSTlMAQObYZgAAAC9JREFUaN5jYGBgEOBgsJBhqLFjsKthkP/BwP+Bgf0BCAEZQC5QECgFVABUxsAAAOcxCbuaDAybAAAAAElFTkSuQmCC" /></a></div>'
345
+ ' class="consentCloseButton" ><img id="closeButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAACIiIhaeOqmAAAAAXRSTlMAQObYZgAAAC9JREFUaN5jYGBgEOBgsJBhqLFjsKthkP/BwP+Bgf0BCAEZQC5QECgFVABUxsAAAOcxCbuaDAybAAAAAElFTkSuQmCC" /></a></div>'
323
346
  );
324
347
  }
325
348
  swa.jQuery("#yesButton,#noButton,#closeButton").click(function() {
@@ -2131,7 +2154,7 @@ cookie =
2131
2154
  function loadPromise(callback) {
2132
2155
  //Load the ui5 es6 promise polyfill for IE promise issues
2133
2156
  swa._addScript(
2134
- "https://sapui5.hana.ondemand.com/resources/sap/ui/thirdparty/es6-promise.js",
2157
+ "https://sapui5.hana.ondemand.com/1.88.0/resources/sap/ui/thirdparty/es6-promise.js",
2135
2158
  function() {
2136
2159
  callback();
2137
2160
  }
@@ -2304,11 +2327,9 @@ cookie =
2304
2327
 
2305
2328
  }
2306
2329
  if (swa.jQuery('#swa_consentform').length === 0) {
2307
- swa.jQuery('body').append('<style> #swa_background { position: fixed; top: 0px; left: 0px; height: 100%; width: 100%; display: none; background-color: black; z-index: 9999;}#swa_consentform { font-family: Arial, Helvetica, sans-serif; background-color: white; color: black; position: fixed; z-index: 11100; width: 100%; max-width: 520px; left: 0 !important; right: 0 !important; margin: auto; padding:10px; background: #FFF; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.7); -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.7); -moz-box-shadow: 0 0px 4px rgba(0, 0, 0, 0.7);}.close_swaconsent { position: absolute; top: 0px; right: 12px; display: block; width: 16px; height: 15px; z-index: 2; }.swaconsentbutton { background-color: #458bc5 ; color: #ffffff; float: right; font-size: 16px; margin: 0% cursor: pointer; border-style: none; height: 8% ; width: inherit; padding : 4px 12px; margin-right:15px;}#swa_form{ border-top: 1px solid #808082; padding: 1% 0%;}.headcenter{text-align: center;font-family:sans-serif;}.textfix{ font-family: sans-serif ;font-size: 13px; -webkit-margin-start: 3%; -webkit-margin-end: 3%;}</style><div id="swa_background"></div> <div id="swa_consentform" style="top:40px"> <a href="#" title='+swa.consentCloseButton+'> <img id="closeButton" class="close_swaconsent" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAACIiIhaeOqmAAAAAXRSTlMAQObYZgAAAC9JREFUaN5jYGBgEOBgsJBhqLFjsKthkP/BwP+Bgf0BCAEZQC5QECgFVABUxsAAAOcxCbuaDAybAAAAAElFTkSuQmCC" /><hr /> </a> <div id="swa_consent_text_window" class="swalicensetxt" ><div> <p> <strong>'+consentText+'</strong></p> </div> <div id="swa_form"> <button class="swaconsentbutton" type="button" title='+swa.consentDenyButton+' id="swaconsent_notnow_modal" >'+swa.consentDenyButton+'</Button> <button class="swaconsentbutton" type="button" title='+swa.consentAllowButton+' id="swaconsent_allow_modal" >'+swa.consentAllowButton+'</button> </div></div></div>');
2308
-
2309
-
2330
+ swa.jQuery('body').append('<div id="swa_background"></div> <div id="swa_consentform" class="consentFormTop"> <a href="#" title='+swa.consentCloseButton+'> <img id="closeButton" class="close_swaconsent" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAACIiIhaeOqmAAAAAXRSTlMAQObYZgAAAC9JREFUaN5jYGBgEOBgsJBhqLFjsKthkP/BwP+Bgf0BCAEZQC5QECgFVABUxsAAAOcxCbuaDAybAAAAAElFTkSuQmCC" /><hr /> </a> <div id="swa_consent_text_window" class="swalicensetxt" ><div> <p> <strong>'+consentText+'</strong></p> </div> <div id="swa_form"> <button class="swaconsentbutton" type="button" title='+swa.consentDenyButton+' id="swaconsent_notnow_modal" >'+swa.consentDenyButton+'</Button> <button class="swaconsentbutton" type="button" title='+swa.consentAllowButton+' id="swaconsent_allow_modal" >'+swa.consentAllowButton+'</button> </div></div></div>');
2310
2331
  swa.jQuery('#swaconsent_allow_modal,#swaconsent_notnow_modal,#closeButton').click(function() {
2311
- banner_save(event);
2332
+ banner_save(event);
2312
2333
  return false;
2313
2334
  });
2314
2335
  swa.jQuery('#swa_background, .close_swaconsent').click(function (event) {
@@ -2410,10 +2431,10 @@ cookie =
2410
2431
  var consentStopButton = swa.anonymousTrackingConsent?swa.anonymizeButtonText:swa.consentStopButton;
2411
2432
  if (swa.jQuery('.optoutbanner').length === 0) {
2412
2433
  if(swa.consentStyle =="bannerbottom")
2413
- swa.jQuery('body').append('<style>.optoutbanner {font-family:Arial,Helvetica,sans-serif;width: 100%;height: auto;bottom:0;min-height: 20px;background-color: #FFFFFF;z-index: 9999;position: absolute;left: 0;font-size:80%; padding: 10px 10px 10px 10px;}.optoutbanner p {display: inline;position: static;left: 0px; word-spacing:1px;line-height: 17px; color: #000;}.optoutbanner img{vertical-align:top;}.optoutbanner form {display: inline;position: absolute;right: 0px;margin-right: 25px;}#buttonsDiv{float: right;margin-right:30px;padding: 5px 5px 0 0;}.bannerButton {margin-right:15px;background-color: #0066ff;border: none;color: white;padding:5px 5px;font-size: 12px;cursor: pointer;width: 80px;border-radius:4px; white-space: nowrap;}.bannerButton:hover{background-color:#075caf;} button#yesButton:disabled { opacity: 0.3; background-color:#0066ff }</style><div id="swa_optout_banner" class="optoutbanner"><p><strong>'+consentText+'</strong> </p></br><hr><div id="buttonsDiv" ><button type="button" class = "bannerButton" title='+consentStopButton+' id="noButton" >'+consentStopButton+'</button><a href="#" title='+swa.consentCloseButton+' style="margin-top:5px; margin-left:20px;" ><img id="closeButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAACIiIhaeOqmAAAAAXRSTlMAQObYZgAAAC9JREFUaN5jYGBgEOBgsJBhqLFjsKthkP/BwP+Bgf0BCAEZQC5QECgFVABUxsAAAOcxCbuaDAybAAAAAElFTkSuQmCC" /></a></div>');
2434
+ swa.jQuery('body').append('<div id="swa_optout_banner" class="optoutbanner bannerbottom"><p><strong>'+consentText+'</strong> </p></br><hr><div id="buttonsDiv" ><button type="button" class = "bannerButton" title='+consentStopButton+' id="noButton" >'+consentStopButton+'</button><a href="#" title='+swa.consentCloseButton+' class="consentCloseButton" ><img id="closeButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAACIiIhaeOqmAAAAAXRSTlMAQObYZgAAAC9JREFUaN5jYGBgEOBgsJBhqLFjsKthkP/BwP+Bgf0BCAEZQC5QECgFVABUxsAAAOcxCbuaDAybAAAAAElFTkSuQmCC" /></a></div>');
2414
2435
  //swa.jQuery(".optoutbanner").css(swa.consentStyle =="bannerbottom"?'bottom:0;':'top:0;');
2415
2436
  else
2416
- swa.jQuery('body').append('<style>.optoutbanner {font-family:Arial,Helvetica,sans-serif;width: 100%;height: auto;top:0;min-height: 20px;background-color: #FFFFFF;z-index: 9999;position: absolute;left: 0;font-size:80%; padding: 10px 10px 10px 10px;}.optoutbanner p {display: inline;position: static;left: 0px; word-spacing:1px;line-height: 17px; color: #000;}.optoutbanner img{vertical-align:top;}.optoutbanner form {display: inline;position: absolute;right: 0px;margin-right: 25px;}#buttonsDiv{float: right;margin-right:30px;padding: 5px 5px 0 0;}.bannerButton {margin-right:15px;background-color: #0066ff;border: none;color: white;padding:5px 5px;font-size: 12px;cursor: pointer;width: 80px;border-radius:4px; white-space: nowrap;}.bannerButton:hover{background-color:#075caf;} button#yesButton:disabled { opacity: 0.3; background-color:#0066ff }</style><div id="swa_optout_banner" class="optoutbanner"><p><strong>'+consentText+'</strong> </p></br><hr><div id="buttonsDiv" ><button type="button" class = "bannerButton" title='+consentStopButton+' id="noButton" >'+consentStopButton+'</button><a href="#" title='+swa.consentCloseButton+' style="margin-top:5px; margin-left:20px;" ><img id="closeButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAACIiIhaeOqmAAAAAXRSTlMAQObYZgAAAC9JREFUaN5jYGBgEOBgsJBhqLFjsKthkP/BwP+Bgf0BCAEZQC5QECgFVABUxsAAAOcxCbuaDAybAAAAAElFTkSuQmCC" /></a></div>');
2437
+ swa.jQuery('body').append('<div id="swa_optout_banner" class="optoutbanner bannertop"><p><strong>'+consentText+'</strong> </p></br><hr><div id="buttonsDiv" ><button type="button" class = "bannerButton" title='+consentStopButton+' id="noButton" >'+consentStopButton+'</button><a href="#" title='+swa.consentCloseButton+' class="consentCloseButton" ><img id="closeButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAACIiIhaeOqmAAAAAXRSTlMAQObYZgAAAC9JREFUaN5jYGBgEOBgsJBhqLFjsKthkP/BwP+Bgf0BCAEZQC5QECgFVABUxsAAAOcxCbuaDAybAAAAAElFTkSuQmCC" /></a></div>');
2417
2438
 
2418
2439
  }else{
2419
2440
  //display the loaded one
@@ -2455,7 +2476,7 @@ cookie =
2455
2476
  var consentStopButton = swa.anonymousTrackingConsent?swa.anonymizeButtonText:swa.consentStopButton;
2456
2477
  if (swa.jQuery('#swa_optout_consentform').length === 0) {
2457
2478
 
2458
- swa.jQuery('body').append('<style> #swa_background_optout { position: fixed; top: 0px; left: 0px; height: 100%; width: 100%; display: none; background-color: black; z-index: 100;}#swa_optout_consentform { font-family: Arial, Helvetica, sans-serif; background-color: white; color: black; border: 1px solid gray; position: fixed; z-index: 11100; width: 100%; max-width: 520px; left: 0 !important; right: 0 !important; margin: auto; padding:10px; background: #FFF; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.7); -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.7); -moz-box-shadow: 0 0px 4px rgba(0, 0, 0, 0.7);}.close_swaoptoutconsent { position: absolute; top: 0px; right: 12px; display: block; width: 16px; height: 15px; z-index: 2; }.swaconsentbutton { background-color: #458bc5 ; color: #ffffff; float: right; font-size: 16px; margin: 0% cursor: pointer; border-style: none; height: 8% ; width: inherit; padding : 4px 12px; -webkit-border-radius: 4px; }.swaconsentbutton3{ float: right; display: inline; color:#346187; background-color: #ffffff; font-size: 13px; margin: 0% 4%; border-style: none; height: 8%; width: inherit; padding:1%;}#swa_form1{ border-top: 1px solid #808082; padding: 1% 0%;}.headcenter{text-align: center;font-family:sans-serif;}.textfix{ font-family: sans-serif ;font-size: 13px; -webkit-margin-start: 3%; -webkit-margin-end: 3%;}</style><div id="swa_background_optout"></div> <div id="swa_optout_consentform"> <a title='+swa.consentCloseButton+' class="close_swaopoutconsent" href="#"> <img id="closeButton" class="close_swaoptoutconsent" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAACIiIhaeOqmAAAAAXRSTlMAQObYZgAAAC9JREFUaN5jYGBgEOBgsJBhqLFjsKthkP/BwP+Bgf0BCAEZQC5QECgFVABUxsAAAOcxCbuaDAybAAAAAElFTkSuQmCC" /><hr /> </a> <div id="swa_consent_text_window1" class="swalicensetxt" > <div> <p><strong>'+consentText+'</strong></p> </div> <div id="swa_form1"> <button class="swaconsentbutton" type="button" title='+consentStopButton+' id="swaconsent_notnow_modal" >'+consentStopButton+'</Button> </div></div></div>');
2479
+ swa.jQuery('body').append('<div id="swa_background_optout"></div> <div id="swa_optout_consentform"> <a title='+swa.consentCloseButton+' class="close_swaopoutconsent" href="#"> <img id="closeButton" class="close_swaoptoutconsent" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAACIiIhaeOqmAAAAAXRSTlMAQObYZgAAAC9JREFUaN5jYGBgEOBgsJBhqLFjsKthkP/BwP+Bgf0BCAEZQC5QECgFVABUxsAAAOcxCbuaDAybAAAAAElFTkSuQmCC" /><hr /> </a> <div id="swa_consent_text_window1" class="swalicensetxt" > <div> <p><strong>'+consentText+'</strong></p> </div> <div id="swa_form1"> <button class="swaconsentbutton" type="button" title='+consentStopButton+' id="swaconsent_notnow_modal" >'+consentStopButton+'</Button> </div></div></div>');
2459
2480
  }
2460
2481
 
2461
2482
  swa.jQuery('#swa_optout_consentform #swaconsent_notnow_modal').click(function () {
@@ -2512,10 +2533,10 @@ cookie =
2512
2533
  }
2513
2534
  if (swa.jQuery('div[swa_banner=1]').length === 0) {
2514
2535
  if(swa.consentStyle =="bannerbottom")
2515
- swa.jQuery('body').append('<style>.swa_banner {font-family:Arial,Helvetica,sans-serif;width: 100%;height: auto; bottom:0;min-height: 20px;background-color: #FFFFFF;z-index: 9999;position: absolute;left: 0;font-size:80%; padding: 10px 10px 10px 10px;}.swa_banner p {display: inline;position: static;left: 0px; word-spacing:1px;line-height: 17px; color: #000;}.swa_banner img{vertical-align:top;}.swa_banner form {display: inline;position: absolute;right: 0px;margin-right: 25px;}#buttonsDiv{float: right;margin-right:30px;padding: 5px 5px 0 0;}.bannerButton {margin-right:15px;background-color: #0066ff;border: none;color: white;padding:5px 5px;font-size: 12px;cursor: pointer;width: 80px;border-radius:4px;}.bannerButton:hover{background-color: #075caf;} button#yesButton:disabled { opacity: 0.3; background-color:#0066ff}</style><div id="swa_banner" class="swa_banner"><p><strong>'+consentText+'</strong></p></br><hr><div id="buttonsDiv" ><button type="button" id="yesButton" title='+swa.consentAllowButton+' class = "bannerButton" >'+swa.consentAllowButton+'</button><button type="button" class = "bannerButton" title='+swa.consentDenyButton+' id="noButton" >'+swa.consentDenyButton+'</button><a href="#" title='+swa.consentCloseButton+' style="margin-top:5px; margin-left:20px;" ><img id="closeButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAACIiIhaeOqmAAAAAXRSTlMAQObYZgAAAC9JREFUaN5jYGBgEOBgsJBhqLFjsKthkP/BwP+Bgf0BCAEZQC5QECgFVABUxsAAAOcxCbuaDAybAAAAAElFTkSuQmCC" /></a></div>');
2536
+ swa.jQuery('body').append('<div id="swa_banner" class="swa_banner bannerbottom"><p><strong>'+consentText+'</strong></p></br><hr><div id="buttonsDiv" ><button type="button" id="yesButton" title='+swa.consentAllowButton+' class = "bannerButton" >'+swa.consentAllowButton+'</button><button type="button" class = "bannerButton" title='+swa.consentDenyButton+' id="noButton" >'+swa.consentDenyButton+'</button><a href="#" title='+swa.consentCloseButton+' class="consentCloseButton" ><img id="closeButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAACIiIhaeOqmAAAAAXRSTlMAQObYZgAAAC9JREFUaN5jYGBgEOBgsJBhqLFjsKthkP/BwP+Bgf0BCAEZQC5QECgFVABUxsAAAOcxCbuaDAybAAAAAElFTkSuQmCC" /></a></div>');
2516
2537
  //swa.jQuery(".swa_banner").css(swa.consentStyle =="bannerbottom"?'bottom:0;':'top:0;')
2517
2538
  else
2518
- swa.jQuery('body').append('<style>.swa_banner {font-family:Arial,Helvetica,sans-serif;width: 100%;height: auto; top:0;min-height: 20px;background-color: #FFFFFF;z-index: 9999;position: absolute;left: 0;font-size:80%; padding: 10px 10px 10px 10px;}.swa_banner p {display: inline;position: static;left: 0px; word-spacing:1px;line-height: 17px; color: #000;}.swa_banner img{vertical-align:top;}.swa_banner form {display: inline;position: absolute;right: 0px;margin-right: 25px;}#buttonsDiv{float: right;margin-right:30px;padding: 5px 5px 0 0;}.bannerButton {margin-right:15px;background-color: #0066ff;border: none;color: white;padding:5px 5px;font-size: 12px;cursor: pointer;width: 80px;border-radius:4px;}.bannerButton:hover{background-color: #075caf;} button#yesButton:disabled { opacity: 0.3; background-color:#0066ff}</style><div id="swa_banner" class="swa_banner"><p><strong>'+consentText+'</strong></p></br><hr><div id="buttonsDiv" ><button type="button" id="yesButton" title='+swa.consentAllowButton+' class = "bannerButton" >'+swa.consentAllowButton+'</button><button type="button" class = "bannerButton" title='+swa.consentDenyButton+' id="noButton" >'+swa.consentDenyButton+'</button><a href="#" title='+swa.consentCloseButton+' style="margin-top:5px; margin-left:20px;" ><img id="closeButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAACIiIhaeOqmAAAAAXRSTlMAQObYZgAAAC9JREFUaN5jYGBgEOBgsJBhqLFjsKthkP/BwP+Bgf0BCAEZQC5QECgFVABUxsAAAOcxCbuaDAybAAAAAElFTkSuQmCC" /></a></div>');
2539
+ swa.jQuery('body').append('<div id="swa_banner" class="swa_banner bannertop"><p><strong>'+consentText+'</strong></p></br><hr><div id="buttonsDiv" ><button type="button" id="yesButton" title='+swa.consentAllowButton+' class = "bannerButton" >'+swa.consentAllowButton+'</button><button type="button" class = "bannerButton" title='+swa.consentDenyButton+' id="noButton" >'+swa.consentDenyButton+'</button><a href="#" title='+swa.consentCloseButton+' class="consentCloseButton" ><img id="closeButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAACIiIhaeOqmAAAAAXRSTlMAQObYZgAAAC9JREFUaN5jYGBgEOBgsJBhqLFjsKthkP/BwP+Bgf0BCAEZQC5QECgFVABUxsAAAOcxCbuaDAybAAAAAElFTkSuQmCC" /></a></div>');
2519
2540
 
2520
2541
  swa.jQuery('#yesButton,#noButton,#closeButton').click(function() {
2521
2542
  banner_save(event);
@@ -2569,18 +2590,23 @@ banner_save(event);
2569
2590
  consentTextPresent = true;
2570
2591
  }
2571
2592
  count++;
2572
- if(window.sap.ui !== undefined && parseFloat(sap.ui.version) > 1.8 && swa.jQuery.sap !== undefined) {
2593
+ if(window.sap.ui !== undefined && parseFloat(sap.ui.version) > 1.8 ) {
2573
2594
  i18nurl = sap.ui.require.toUrl(
2574
2595
  "sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n.properties"
2575
2596
  );
2576
- swa.jQuery.sap.require("jquery.sap.resources");
2577
- var oBundle = swa.jQuery.sap.resources({
2578
- url: i18nurl,
2579
- locale: swa.consentFormLanguage,
2580
- fallbackLocale: "en"
2581
- });
2582
- isUI5 = true;
2583
- getTranslatedText(oBundle, isUI5);
2597
+ //since sap.jQuery.require is deprecated replaced with ResourceBundle
2598
+ sap.ui.require(["sap/base/i18n/ResourceBundle"], function(ResourceBundle){
2599
+ ResourceBundle.create({
2600
+ url : i18nurl,
2601
+ async : true,
2602
+ locale: swa.consentFormLanguage,
2603
+ fallbackLocale: "en"
2604
+ }).then(function(oBundle){
2605
+ // now you can access the bundle
2606
+ isUI5 = true;
2607
+ getTranslatedText(oBundle, isUI5);
2608
+ });
2609
+ });
2584
2610
  } else {
2585
2611
  i18nurl =
2586
2612
  swa.baseUrl +
@@ -2592,8 +2618,9 @@ banner_save(event);
2592
2618
  swa._addScript(i18nurl, function() {
2593
2619
  getTranslatedText(window.data[0], isUI5);
2594
2620
  });
2595
- }
2621
+
2596
2622
  }
2623
+ }
2597
2624
 
2598
2625
  function getTranslatedText(oBundle, isUI5) {
2599
2626
  if (consentTextPresent) {