PageSourceSearch

https://www.bankingdive.com/static/js/dist/storylinesCarousel.bundle.js?162315011026

js bankingdive.com collected 2026-10-02 02:31:38 UTC 11,119 bytes, 2 lines download raw bytes

1!function(){"use strict";var e={},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.rv=function(){return"1.5.2"},r.ruid="[email protected]";var n=Object.prototype.toString,s=Array.isArray||function(e){return"[object Array]"===n.call(e)};function o(e){return"function"==typeof e}function a(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function i(e,t){return null!=e&&"object"==typeof e&&t in e}var l=RegExp.prototype.test,c=/\S/,u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},p=/\s*/,h=/\s+/,d=/\s*=/,f=/\s*\}/,g=/#|\^|\/|>|\{|&|=|!/;function v(e){this.string=e,this.tail=e,this.pos=0}function w(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function m(){this.templateCache={_cache:{},set:function(e,t){this._cache[e]=t},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}v.prototype.eos=function(){return""===this.tail},v.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var r=t[0];return this.tail=this.tail.substring(r.length),this.pos+=r.length,r},v.prototype.scanUntil=function(e){var t,r=this.tail.search(e);switch(r){case -1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=t.length,t},w.prototype.push=function(e){return new w(e,this)},w.prototype.lookup=function(e){var t=this.cache;if(t.hasOwnProperty(e))s=t[e];else{for(var r,n,s,a,l,c,u=this,p=!1;u;){if(e.indexOf(".")>0)for(a=u.view,l=e.split("."),c=0;null!=a&&c<l.length;)c===l.length-1&&(p=i(a,l[c])||(r=a,n=l[c],null!=r&&"object"!=typeof r&&r.hasOwnProperty&&r.hasOwnProperty(n))),a=a[l[c++]];else a=u.view[e],p=i(u.view,e);if(p){s=a;break}u=u.parent}t[e]=s}return o(s)&&(s=s.call(this.view)),s},m.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},m.prototype.parse=function(e,t){var r=this.templateCache,n=e+":"+(t||y.tags).join(":"),o=void 0!==r,i=o?r.get(n):void 0;return void 0==i&&(i=function(e,t){if(!e)return[];var r,n,o,i,u,w,m,b,k,j=!1,x=[],T=[],C=[],_=!1,S=!1,E="",U=0;function W(){if(_&&!S)for(;C.length;)delete T[C.pop()];else C=[];_=!1,S=!1}function R(e){if("string"==typeof e&&(e=e.split(h,2)),!s(e)||2!==e.length)throw Error("Invalid tags: "+e);r=RegExp(a(e[0])+"\\s*"),n=RegExp("\\s*"+a(e[1])),o=RegExp("\\s*"+a("}"+e[1]))}R(t||y.tags);for(var P=new v(e);!P.eos();){if(i=P.pos,w=P.scanUntil(r))for(var A=0,I=w.length;A<I;++A)!function(e){return!l.call(c,e)}(m=w.charAt(A))?(S=!0,j=!0,E+=" "):(C.push(T.length),E+=m),T.push(["text",m,i,i+1]),i+=1,"\n"===m&&(W(),E="",U=0,j=!1);if(!P.scan(r))break;if(_=!0,u=P.scan(g)||"name",P.scan(p),"="===u?(w=P.scanUntil(d),P.scan(d),P.scanUntil(n)):"{"===u?(w=P.scanUntil(o),P.scan(f),P.scanUntil(n),u="&"):w=P.scanUntil(n),!P.scan(n))throw Error("Unclosed tag at "+P.pos);if(b=">"==u?[u,w,i,P.pos,E,U,j]:[u,w,i,P.pos],U++,T.push(b),"#"===u||"^"===u)x.push(b);else if("/"===u){if(!(k=x.pop()))throw Error('Unopened section "'+w+'" at '+i);if(k[1]!==w)throw Error('Unclosed section "'+k[1]+'" at '+i)}else"name"===u||"{"===u||"&"===u?S=!0:"="===u&&R(w)}if(W(),k=x.pop())throw Error('Unclosed section "'+k[1]+'" at '+P.pos);return function(e){for(var t,r=[],n=r,s=[],o=0,a=e.length;o<a;++o)switch((t=e[o])[0]){case"#":case"^":n.push(t),s.push(t),n=t[4]=[];break;case"/":s.pop()[5]=t[2],n=s.length>0?s[s.length-1][4]:r;break;default:n.push(t)}return r}(function(e){for(var t,r,n=[],s=0,o=e.length;s<o;++s)(t=e[s])&&("text"===t[0]&&r&&"text"===r[0]?(r[1]+=t[1],r[3]=t[3]):(n.push(t),r=t));return n}(T))}(e,t),o&&r.set(n,i)),i},m.prototype.render=function(e,t,r,n){var s=this.getConfigTags(n),o=this.parse(e,s),a=t instanceof w?t:new w(t,void 0);return this.renderTokens(o,a,r,e,n)},m.prototype.renderTokens=function(e,t,r,n,s){for(var o,a,i,l="",c=0,u=e.length;c<u;++c)i=void 0,"#"===(a=(o=e[c])[0])?i=this.renderSection(o,t,r,n,s):"^"===a?i=this.renderInverted(o,t,r,n,s):">"===a?i=this.renderPartial(o,t,r,s):"&"===a?i=this.unescapedValue(o,t):"name"===a?i=this.escapedValue(o,t,s):"text"===a&&(i=this.rawValue(o)),void 0!==i&&(l+=i);return l},m.prototype.renderSection=function(e,t,r,n,a){var i=this,l="",c=t.lookup(e[1]);if(c){if(s(c))for(var u=0,p=c.length;u<p;++u)l+=this.renderTokens(e[4],t.push(c[u]),r,n,a);else if("object"==typeof c||"string"==typeof c||"number"==typeof c)l+=this.renderTokens(e[4],t.push(c),r,n,a);else if(o(c)){if("string"!=typeof n)throw Error("Cannot use higher-order sections without the original template");null!=(c=c.call(t.view,n.slice(e[3],e[5]),function(e){return i.render(e,t,r,a)}))&&(l+=c)}else l+=this.renderTokens(e[4],t,r,n,a);return l}},m.prototype.renderInverted=function(e,t,r,n,o){var a=t.lookup(e[1]);if(!a||s(a)&&0===a.length)return this.renderTokens(e[4],t,r,n,o)},m.prototype.indentPartial=function(e,t,r){for(var n=t.replace(/[^ \t]/g,""),s=e.split("\n"),o=0;o<s.length;o++)s[o].length&&(o>0||!r)&&(s[o]=n+s[o]);return s.join("\n")},m.prototype.renderPartial=function(e,t,r,n){if(r){var s=this.getConfigTags(n),a=o(r)?r(e[1]):r[e[1]];if(null!=a){var i=e[6],l=e[5],c=e[4],u=a;0==l&&c&&(u=this.indentPartial(a,c,i));var p=this.parse(u,s);return this.renderTokens(p,t,r,u,n)}}},m.prototype.unescapedValue=function(e,t){var r=t.lookup(e[1]);if(null!=r)return r},m.prototype.escapedValue=function(e,t,r){var n=this.getConfigEscape(r)||y.escape,s=t.lookup(e[1]);
1if(null!=s)return"number"==typeof s&&n===y.escape?String(s):n(s)},m.prototype.rawValue=function(e){return e[1]},m.prototype.getConfigTags=function(e){return s(e)?e:e&&"object"==typeof e?e.tags:void 0},m.prototype.getConfigEscape=function(e){return e&&"object"==typeof e&&!s(e)?e.escape:void 0};var y={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(cache){b.templateCache=cache},get templateCache(){return b.templateCache}},b=new m;y.clearCache=function(){return b.clearCache()},y.parse=function(e,t){return b.parse(e,t)},y.render=function(e,t,r,n){if("string"!=typeof e)throw TypeError('Invalid template! Template should be a "string" but "'+(s(e)?"array":typeof e)+'" was given as the first argument for mustache#render(template, view, partials)');return b.render(e,t,r,n)},y.escape=function(e){return String(e).replace(/[&<>"'`=\/]/g,function(e){return u[e]})},y.Scanner=v,y.Context=w,y.Writer=m;let{carouselStories:k,preferredTopic:j,preferredTopicLink:x,storylineTitle:T}=window.carouselData,C=k.map((e,t)=>({...e,index:t})),_=C.length>3,S=y.render('{{! This is a .mustache template. Read the docs: https://mustache.github.io/mustache.5.html }}\n<section class="storylines-carousel" aria-labelledby="carousel-header">\n    <div class="carousel-header">\n        <h3>\n            {{# storylineTitle }}\n            STORYLINE // <span class="carousel-header-storyline">{{ storylineTitle }}</span>\n            {{/ storylineTitle }}\n            {{^ storylineTitle }}\n                {{# preferredTopic }}\n                Read More in <span class="carousel-header-topic">{{ preferredTopic }}</span>\n                {{/ preferredTopic }}\n            {{/ storylineTitle }}\n        </h3>\n        {{# showArrowWrapper }}\n            <div>\n                <button\n                    class="carousel-arrow carousel-arrow-left carousel-lighten js-carousel-arrow-left"\n                    alt="Scroll carousel left"\n                    tabindex="-1"\n                >\n                </button>\n                <button\n                    class="carousel-arrow carousel-arrow-right js-carousel-arrow-right"\n                    alt="Scroll carousel right"\n                    tabindex="-1"\n                >\n                </button>\n            </div>\n        {{/ showArrowWrapper }}\n    </div>\n    <div class="carousel-wrapper js-carousel-wrapper" role="list">\n        {{# carouselStories }}\n        <div class="carousel-item" role="listitem">\n            <div class="carousel-item__content">\n                {{! note that index is a function from the JS that provides context }}\n                <a class="analytics t-article-carousel-item-{{ index }} js-carousel-item__link" href="{{{ link }}}">\n                    {{{ proximizedImage }}}\n                </a>\n                <time class="carousel-item__date">{{ pub_date }}</time>\n                <a class="analytics t-article-carousel-item-{{ index }} js-carousel-item__link" href="{{{ link }}}">\n                    <div class="carousel-item__title">{{ title }}</div>\n                </a>\n            </div>\n        </div>\n        {{/ carouselStories }}\n        {{^ storylineTitle }}\n        <div class="carousel-item carousel-last-card">\n            <div class="carousel-item__content">\n                <a class="analytics t-article-carousel-topic" href="{{{ preferredTopicLink }}}">\n                    <div class="carousel-topic-card-inner">\n                        <div class="carousel-last-card__byline">\n                            Want to see more stories in <strong>{{ preferredTopic }}</strong>?\n                        </div>\n                        <span class="carousel-last-card__readmore t-article-carousel-topic-card">\n                            Read More <span class="call-out-link__arrow">➔</span>\n                        </span>\n                    </div>\n                </a>\n            </div>\n        </div>\n        {{/ storylineTitle }}\n    </div>\n</section>\n',{carouselStories:C,preferredTopic:j,preferredTopicLink:x,storylineTitle:T,showArrowWrapper:_}),E=e=>{let t=T?3:2;
10===e?($(".js-carousel-arrow-left").addClass("carousel-lighten"),$(".js-carousel-arrow-right").removeClass("carousel-lighten")):e>=k.length-t?($(".js-carousel-arrow-right").addClass("carousel-lighten"),$(".js-carousel-arrow-left").removeClass("carousel-lighten")):$(".js-carousel-arrow-left, .js-carousel-arrow-right").removeClass("carousel-lighten")};function U(e,t){$(`${e} .js-carousel-wrapper`).on("scroll",()=>{E(t.slide)}),$(e).on("click",".js-carousel-arrow-left, .js-carousel-arrow-right",()=>{E(t.slide)}),$(e).on("focus",".js-carousel-item__link",()=>{E(t.slide)})}function W(e){return{exactWidth:!0,itemWidth:216,slidesToScroll:1,duration:3,arrows:{prev:`${e} .js-carousel-arrow-left`,next:`${e} .js-carousel-arrow-right`},responsive:[{breakpoint:480,settings:{exactWidth:!0,itemWidth:241}}]}}$(window).on("load",()=>{$(".storylines-carousel-wrapper").length>0&&($(".storylines-carousel-wrapper").html(S),$(".full-width").length>0?U("#full-width-carousel",new window.Glider(document.querySelector("#full-width-carousel .js-carousel-wrapper"),W("#full-width-carousel"))):(U("#desktop-carousel",new window.Glider(document.querySelector("#desktop-carousel .js-carousel-wrapper"),W("#desktop-carousel"))),$("#mobile-carousel").length>0&&U("#mobile-carousel",new window.Glider(document.querySelector("#mobile-carousel .js-carousel-wrapper"),W("#mobile-carousel")))))})}();
2//# sourceMappingURL=storylinesCarousel.bundle.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.