require(["jquery"],function(a){var g=function(){var c=a("input[name*\x3d'Events.EventPostClass_0_publishDate']").val(),d=a("input[name*\x3d'Events.EventPostClass_0_endeventdate']").val(),e="January February March April May June July August September October November December".split(" ");if("undefined"!=typeof c&&""!=c){var b=c.split(" ")[0].split("/"),h=b[2]+""+b[1]-1+""+b[0];c=b[0];var f=e[b[1]-1];b=b[2]}else b=f=c="";if("undefined"!=typeof d&&""!=d){b=d.split(" ")[0].split("/");var k=b[2]+""+b[1]-
1+""+b[0];d=b[0];e=e[b[1]-1];b=b[2]}else e=d="";h=h==k||"undefined"==typeof k?f+" "+c+", "+b:f!=e?f+" "+c+" - "+e+" "+d+", "+b:f+" "+c+" - "+d+", "+b;a(".FromToDate").text(h)};a("input[name*\x3d'Events.EventPostClass_0_publishDate']").focusin(function(){g()}).focusout(function(){g()});a("input[name*\x3d'Events.EventPostClass_0_endeventdate']").focusin(function(){g()}).focusout(function(){g()});a("input[name*\x3d'Events.EventPostClass_0_place']").on("input",function(){a(".placeheaderInlineDisplayEditplace").text(a(this).val())});
a("input[name*\x3d'Events.EventPostClass_0_title']").on("input",function(){a(".textheaderInlineDisplayEdittitle").text(a(this).val())});a(".attachment-picker").css({overflow:"hidden"});a("input[value\x3d'Events.HomePage']").on("click",function(){"Events.HomePage"==a(this).attr("value")&&a(this).is(":checked")?a("#boxHomepage").css({display:"block"}):a("#boxHomepage").css({display:"none"})});a("input[value\x3d'Events.HomePage']").is(":checked")?a("#boxHomepage").css({display:"block"}):a("#boxHomepage").css({display:"none"});
a("input[name\x3d'Events.EventPostClass_0_activeredirection']").on("click",function(){a(this).is(":checked")?a("#boxActivateRedirecting").css({display:"block"}):a("#boxActivateRedirecting").css({display:"none"})});a("input[name\x3d'Events.EventPostClass_0_activeredirection']").is(":checked")?a("#boxActivateRedirecting").css({display:"block"}):a("#boxActivateRedirecting").css({display:"none"})});