text: /*!
   * Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
   * wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html
   * v4.0.40 - 2020-12-15
   *
   */
  !function(a,b,c,d){"use strict";var e,f,g,h,i,j="wb-date",k="input[type=date]",l="wb-init."+j,m="setfocus.wb",n="wb-picker",o="-picker-toggle",p=new Date,q=d.doc,r=d.date.fromDateISO,s={minDate:new Date(1800,0,1),maxDate:new Date(2100,0,1),year:p.getFullYear(),month:p.getMonth(),daysCallback:function(a,b,c,d){var e,f=c,g=this.date;d&&(d.max&&(f=f.filter(":lt("+(d.max+1)+")")),d.min&&(f=f.filter(":gt("+(d.min-1)+")"))),f.wrap("<a href='javascript:;' tabindex='-1'></a>"),g&&a===g.getFullYear()&&b===g.getMonth()?(e=c.eq(g.getDate()-1),e.parent().attr("aria-selected",!0)):e=a===p.getFullYear()&&b===p.getMonth()?c.eq(p.getDate()-1):f.eq(0),e.parent().removeAttr("tabindex")}},t=function(b){var c,g,i,l,m,n,o=d.init(b,j,k),q={};if(o){if(c=o.id,-1!==o.className.indexOf("picker-field"))return;f||(e=d.i18n,g=e("space").replace("&#32;"," ").replace("&#178;",""),f={show:e("date-show").replace("\\'","'")+g,hide:e("date-hide").replace("\\'","'")+g+g+e("esc-key").replace("\\'","'"),selected:e("date-sel").replace("\\'","'")}),o.className+=" picker-field",i={field:this,$field:a(this),labelText:a("label[for="+d.jqEscape(o.id)+"]").clone().find(".datepicker-format, .error").remove().end().text()},l=r(o.getAttribute("min")),m=r(o.getAttribute("max")),l&&(i.minDate=l),m&&(i.maxDate=m),o.state=a.extend(q,s,i),n=p>=q.minDate&&p<=q.maxDate?p:q.minDate>p?q.minDate:q.maxDate,n&&(q.year=n.getFullYear(),q.month=n.getMonth()),w.call(o),h||u(o),c&&v(o),d.ready(a(o),j)}},u=function(b){var c=f.hide;g=a("<div id='"+n+"' class='picker-overlay' role='dialog' tabindex='-1' aria-hidden='true'></div>"),g.find("a").attr("tabindex","-1"),a("main").after(g),h=d.calendar.create(g,b.state),a("<button type='button' class='picker-close mfp-close overlay-close' title=\""+c+"\">&#xd7;<span class='wb-inv'> "+c+"</span></button>").appendTo(g)},v=function(b){var c=b.id,e=b.state.labelText,h=f.show+e,i="<span class='input-group-btn'><a href='javascript:;' button id='"+c+"-picker-toggle' class='btn btn-default picker-toggle' href='javascript:;' title=\""+h+"\"><span class='glyphicon glyphicon-calendar'></span><span class='wb-inv'>"+h+"</span></a></span>";a("#"+d.jqEscape(c)).wrap("<span class='wb-date-wrap input-group'/>").after(i),g.slideUp(0)},w=function(){var a=this.state,b=r(this.getAttribute("min"))||a.minDate,c=r(this.getAttribute("max"))||a.maxDate,d=r(this.value);this.state.minDate=b,this.state.maxDate=c,d&&d>=b&&c>=d?(a.date=d,a.year=d.getFullYear(),a.month=d.getMonth()):a.date=null},x=function(a){"false"!==g.attr("aria-hidden")?z(a):y()},y=function(){var b=h.field,c=h.$field,e=f.show+h.labelText;a("#"+d.jqEscape(b.id+o)).attr("title",e.replace("&#32;"," ")).children(".wb-inv").html(e),g.removeClass("open").attr("aria-hidden","true"),c.trigger(m)},z=function(b){var c=b.id,e=f.hide;w.call(b),h.reInit(b.state),A(),g.addClass("open").attr({"aria-controls":c,"aria-labelledby":c+o,"aria-hidden":"false"}).get(0).focus(),a("#"+d.jqEscape(c+o)).attr("title",e).children(".wb-inv").text(e)},A=function(){var a=h.field,b=h.$field.offset();g.attr("style","top:"+(b.top+a.offsetHeight)+"px;left:"+b.left+"px")};q.on("timerpoke.wb "+l,k,t),q.on("focusout focusin","#"+n+" .wb-clndr",function(a){switch(a.type){case"focusout":i=setTimeout(y,10);break;case"focusin":clearTimeout(i)}}),q.on("keydown","#"+n,function(a){27===a.which&&y()}),q.on("click",".picker-overlay .cal-days a",function(b){var c=b.which,d=h.field;return c&&1!==c||d.disabled||d.readOnly?void 0:(d.value=a(b.currentTarget).find("time").attr("datetime"),a(d).trigger("change"),y(),!1)}),q.on("click",".picker-toggle",function(b){b.preventDefault();var c,e,f=b.which;return f&&1!==f||(c=b.currentTarget.id,e=a("#"+d.jqEscape(c.substring(0,c.indexOf(o)))).get(0),e.disabled||e.readOnly)?void 0:(x(e),!1)}),q.on("click",".picker-close",function(a){var b=a.which;b&&1!==b||(a.stopPropagation?a.stopImmediatePropagation():a.cancelBubble=!0,y())}),q.on("txt-rsz.wb win-rsz-width.wb win-rsz-height.wb",function(){g&&g.hasClass("open")&&A()}),d.add(k)}(jQuery,window,document,wb);
  //# sourceMappingURL=datepicker.min.js.map