{"version":3,"file":"oeb.js","names":["$","Drupal","behaviors","alterchooseratesText","attach","context","settings","each","$this","this","newText","html","replace","index","hide","removelineBreaks","window","width","remove","jQuery"],"sources":["oeb.js"],"mappings":"CAAA,SAAWA,EAAGC,GACZA,EAAOC,UAAUC,qBAAuB,CACtCC,OAAQ,SAAUC,EAASC,GACTN,EAAE,kBAAmBK,GAC3BE,MAAK,WACb,IAAIC,EAAQR,EAAES,MAEVC,EADOF,EAAMG,OACEC,QAAQ,wBAAyB,IAEpDF,GADAA,EAAUA,EAAQE,QAAQ,KAAM,KACdA,QAAQ,UAAW,SACrCJ,EAAMG,KAAKD,EACb,IACeV,EAAE,oBAAqBK,GAC7BE,MAAK,SAAUM,IACjBA,EAAQ,GAAK,GAAM,GACtBb,EAAES,MAAMK,MAEZ,GACF,GAIFb,EAAOC,UAAUa,iBAAmB,CAClCX,OAAQ,SAAUC,EAASC,GACrBN,EAAEgB,QAAQC,QAAU,MACtBjB,EAAE,6EAA8EK,GAASa,SACzFlB,EAAE,6EAA8EK,GAASa,SAE7F,EAEH,CA9BD,CA8BGC,OAAQlB","sourcesContent":["(function ($, Drupal) {\n Drupal.behaviors.alterchooseratesText = {\n attach: function (context, settings) {\n var ratesText = $(\".ulo-text>div>p\", context);\n ratesText.each(function () {\n var $this = $(this);\n var html = $this.html();\n var newText = html.replace(\"Learn more about your\", \"\");\n newText = newText.replace(\"or\", \"\");\n newText = newText.replace(/click\\b/, \"Click\");\n $this.html(newText);\n });\n var rateLink = $(\".ulo-text>div>p>a\", context);\n rateLink.each(function (index) {\n if ((index + 1) % 2 !== 0) {\n $(this).hide();\n }\n });\n }\n };\n\n /* Remove
from OEB titles under 640px width */\n Drupal.behaviors.removelineBreaks = {\n attach: function (context, settings) {\n if ($(window).width() < 640) {\n $(\".field-name-field-weekday-bar-chart-text > .field-items > .field-item > br\", context).remove();\n $(\".field-name-field-weekend-bar-chart-text > .field-items > .field-item > br\", context).remove();\n }\n }\n }\n})(jQuery, Drupal); "]}