1
var $jscomp=$jscomp||{}
2
;$jscomp.scope={}
3
;$jscomp.findInternal=function(a,e,b){a instanceof String&&(a=String(a));for(var g=a.length,c=0;c<g;c++){var d=a[c];if(e.call(b,d,c,a))return{i:c,v:d}
4
}
5
return{i:-1,v:void 0}
6
}
7
;$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,e,b){a!=Array.prototype&&a!=Object.prototype&&(a[e]=b.value)}
8
;
9
$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a}
10
;$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,e,b,g){if(e){b=$jscomp.global;a=a.split(".");for(g=0;g<a.length-1;g++){var c=a[g];c in b||(b[c]={}
11
);b=b[c]}
12
a=a[a.length-1];g=b[a];e=e(g);e!=g&&null!=e&&$jscomp.defineProperty(b,a,{configurable:!0,writable:!0,value:e}
13
)}
14
}
15
;
16
$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,b){return $jscomp.findInternal(this,a,b).v}
17
}
18
,"es6","es3");
19
!function(a,e,b,g){XF.Notices=XF.Element.newHandler({options:{type:"block",target:".js-notice",scrollInterval:5}
20
,$notices:null,slider:null,dismissing:!1,init:function(){this.updateNoticeList();this.filter();this.handleNoticeListChange()&&(this.$target.on("click",".js-noticeDismiss",XF.proxy(this,"dismiss")),this.start())}
21
,updateNoticeList:function(){a(b).trigger("xf:notice-change");return this.$notices=this.$target.find(this.options.target).not(".clone")}
22
,handleNoticeListChange:function(){var c=this.$notices.length;
23
c?1==c&&this.$target.removeClass("notices--isMulti"):(this.slider&&(this.slider.destroy(),this.slider=null),this.$target.remove());return c}
24
,filter:function(){var c=this.getCookies(),d=!1;this.$notices.each(function(){var f=a(this),h=parseInt(f.data("notice-id"),10),b=f.data("visibility");c&&h&&-1!=a.inArray(h,c)&&(f.remove(),d=!0);b&&("hidden"==f.css("visibility")?(f.remove(),d=!0):f.addClass("is-vis-processed"))}
25
);d&&this.updateNoticeList()}
26
,start:function(){var c=this,d=this.$notices,f=this.options.type;
27
"floating"==f?d.each(function(){var d=a(this),f=d.data("display-duration"),b=d.data("delay-duration"),e=d.data("auto-dismiss");b?setTimeout(function(){c.displayFloating(d,XF.config.speed.normal,f,e)}
28
,b):c.displayFloating(d,XF.config.speed.fast,f,e)}
29
):"scrolling"==f&&1<this.$notices.length&&(a.fn.lightSlider?(this.slider=this.$target.lightSlider({item:1,addClass:"noticeScrollContainer",slideMargin:0,galleryMargin:0,controls:!1,auto:!0,pause:1E3*this.options.scrollInterval,speed:400,pauseOnHover:!0,
30
loop:!0,rtl:XF.isRtl(),enableDrag:!1}
31
),a(e).on("resize",XF.proxy(this,"refreshSlider"))):console.error("Lightslider must be loaded first."))}
32
,displayFloating:function(c,a,f,b){c.xfFadeDown(a,function(){f&&setTimeout(function(){c.xfFadeUp(XF.config.speed.normal);b&&c.find("a.js-noticeDismiss").trigger("click")}
33
,f)}
34
)}
35
,getCookies:function(){if(!XF.config.userId){var a=XF.Cookie.get("notice_dismiss");a=a?a.split(","):[];for(var d=[],f,b=0;b<a.length;b++)(f=parseInt(a[b],10))&&d.push(f);return d}
36
}
37
,dismiss:function(c){c.preventDefault();
38
if(!this.dismissing){this.dismissing=!0;var d=a(c.target);c=d.parents(".js-notice");var b=parseInt(c.data("notice-id"),10),e=XF.config.userId,g=this.getCookies();e?XF.ajax("post",d.attr("href"),{}
39
,function(){}
40
,{skipDefault:!0}
...
</html>