WP User Avatar - Version 3.2.3

Version Description

  • Fixed bug where custom content protection message wasn't properly formatted.
  • Escaped html attributes in html response returned on ajax form request.
  • Removed display-name as title for user profile in member directory.
Download this release

Release Info

Developer Collizo4sky
Plugin Icon 128x128 WP User Avatar
Version 3.2.3
Comparing to
See all releases

Code changes from version 3.2.2 to 3.2.3

assets/flatpickr/flatpickr.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /* flatpickr v4.6.3,, @license MIT */
2
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).flatpickr=t()}(this,function(){"use strict";var e=function(){return(e=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},t=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],n={_disable:[],_enable:[],allowInput:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enable:[],enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},a={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},i=function(e){return("0"+e).slice(-2)},o=function(e){return!0===e?1:0};function r(e,t,n){var a;return void 0===n&&(n=!1),function(){var i=this,o=arguments;null!==a&&clearTimeout(a),a=window.setTimeout(function(){a=null,n||e.apply(i,o)},t),n&&!a&&e.apply(i,o)}}var l=function(e){return e instanceof Array?e:[e]};function c(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function d(e,t,n){var a=window.document.createElement(e);return t=t||"",n=n||"",a.className=t,void 0!==n&&(a.textContent=n),a}function s(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function u(e,t){var n=d("div","numInputWrapper"),a=d("input","numInput "+e),i=d("span","arrowUp"),o=d("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?a.type="number":(a.type="text",a.pattern="\\d*"),void 0!==t)for(var r in t)a.setAttribute(r,t[r]);return n.appendChild(a),n.appendChild(i),n.appendChild(o),n}var f=function(){},m=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},g={D:f,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*o(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var a=parseInt(t),i=new Date(e.getFullYear(),0,2+7*(a-1),0,0,0,0);return i.setDate(i.getDate()-i.getDay()+n.firstDayOfWeek),i},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:f,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:f,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},p={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},h={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[h.w(e,t,n)]},F:function(e,t,n){return m(h.n(e,t,n)-1,!1,t)},G:function(e,t,n){return i(h.h(e,t,n))},H:function(e){return i(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[o(e.getHours()>11)]},M:function(e,t){return m(e.getMonth(),!0,t)},S:function(e){return i(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(e){return i(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return i(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return i(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},v=function(e){var t=e.config,i=void 0===t?n:t,o=e.l10n,r=void 0===o?a:o;return function(e,t,n){var a=n||r;return void 0!==i.formatDate?i.formatDate(e,t,a):t.split("").map(function(t,n,o){return h[t]&&"\\"!==o[n-1]?h[t](e,a,i):"\\"!==t?t:""}).join("")}},D=function(e){var t=e.config,i=void 0===t?n:t,o=e.l10n,r=void 0===o?a:o;return function(e,t,a,o){if(0===e||e){var l,c=o||r,d=e;if(e instanceof Date)l=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)l=new Date(e);else if("string"==typeof e){var s=t||(i||n).dateFormat,u=String(e).trim();if("today"===u)l=new Date,a=!0;else if(/Z$/.test(u)||/GMT$/.test(u))l=new Date(e);else if(i&&i.parseDate)l=i.parseDate(e,s);else{l=i&&i.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var f=void 0,m=[],h=0,v=0,D="";h<s.length;h++){var w=s[h],b="\\"===w,C="\\"===s[h-1]||b;if(p[w]&&!C){D+=p[w];var M=new RegExp(D).exec(e);M&&(f=!0)&&m["Y"!==w?"push":"unshift"]({fn:g[w],val:M[++v]})}else b||(D+=".");m.forEach(function(e){var t=e.fn,n=e.val;return l=t(l,n,c)||l})}l=f?l:void 0}}if(l instanceof Date&&!isNaN(l.getTime()))return!0===a&&l.setHours(0,0,0,0),l;i.errorHandler(new Error("Invalid date provided: "+d))}}};function w(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var b=function(e,t,n){return e>Math.min(t,n)&&e<Math.max(t,n)},C={DAY:864e5};"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var a=function(t){t&&Object.keys(t).forEach(function(n){return e[n]=t[n]})},i=0,o=t;i<o.length;i++){a(o[i])}return e});var M=300;function y(f,g){var h={config:e({},n,E.defaultConfig),l10n:a};function y(e){return e.bind(h)}function x(){var e=h.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame(function(){if(void 0!==h.calendarContainer&&(h.calendarContainer.style.visibility="hidden",h.calendarContainer.style.display="block"),void 0!==h.daysContainer){var t=(h.days.offsetWidth+1)*e.showMonths;h.daysContainer.style.width=t+"px",h.calendarContainer.style.width=t+(void 0!==h.weekWrapper?h.weekWrapper.offsetWidth:0)+"px",h.calendarContainer.style.removeProperty("visibility"),h.calendarContainer.style.removeProperty("display")}})}function T(e){0===h.selectedDates.length&&ie(),void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=e.target;void 0!==h.amPM&&e.target===h.amPM&&(h.amPM.textContent=h.l10n.amPM[o(h.amPM.textContent===h.l10n.amPM[0])]);var a=parseFloat(n.getAttribute("min")),r=parseFloat(n.getAttribute("max")),l=parseFloat(n.getAttribute("step")),c=parseInt(n.value,10),d=e.delta||(t?38===e.which?1:-1:0),s=c+l*d;if(void 0!==n.value&&2===n.value.length){var u=n===h.hourElement,f=n===h.minuteElement;s<a?(s=r+s+o(!u)+(o(u)&&o(!h.amPM)),f&&j(void 0,-1,h.hourElement)):s>r&&(s=n===h.hourElement?s-r-o(!h.amPM):a,f&&j(void 0,1,h.hourElement)),h.amPM&&u&&(1===l?s+c===23:Math.abs(s-c)>l)&&(h.amPM.textContent=h.l10n.amPM[o(h.amPM.textContent===h.l10n.amPM[0])]),n.value=i(s)}}(e);var t=h._input.value;k(),we(),h._input.value!==t&&h._debouncedChange()}function k(){if(void 0!==h.hourElement&&void 0!==h.minuteElement){var e,t,n=(parseInt(h.hourElement.value.slice(-2),10)||0)%24,a=(parseInt(h.minuteElement.value,10)||0)%60,i=void 0!==h.secondElement?(parseInt(h.secondElement.value,10)||0)%60:0;void 0!==h.amPM&&(e=n,t=h.amPM.textContent,n=e%12+12*o(t===h.l10n.amPM[1]));var r=void 0!==h.config.minTime||h.config.minDate&&h.minDateHasTime&&h.latestSelectedDateObj&&0===w(h.latestSelectedDateObj,h.config.minDate,!0);if(void 0!==h.config.maxTime||h.config.maxDate&&h.maxDateHasTime&&h.latestSelectedDateObj&&0===w(h.latestSelectedDateObj,h.config.maxDate,!0)){var l=void 0!==h.config.maxTime?h.config.maxTime:h.config.maxDate;(n=Math.min(n,l.getHours()))===l.getHours()&&(a=Math.min(a,l.getMinutes())),a===l.getMinutes()&&(i=Math.min(i,l.getSeconds()))}if(r){var c=void 0!==h.config.minTime?h.config.minTime:h.config.minDate;(n=Math.max(n,c.getHours()))===c.getHours()&&(a=Math.max(a,c.getMinutes())),a===c.getMinutes()&&(i=Math.max(i,c.getSeconds()))}O(n,a,i)}}function I(e){var t=e||h.latestSelectedDateObj;t&&O(t.getHours(),t.getMinutes(),t.getSeconds())}function S(){var e=h.config.defaultHour,t=h.config.defaultMinute,n=h.config.defaultSeconds;if(void 0!==h.config.minDate){var a=h.config.minDate.getHours(),i=h.config.minDate.getMinutes();(e=Math.max(e,a))===a&&(t=Math.max(i,t)),e===a&&t===i&&(n=h.config.minDate.getSeconds())}if(void 0!==h.config.maxDate){var o=h.config.maxDate.getHours(),r=h.config.maxDate.getMinutes();(e=Math.min(e,o))===o&&(t=Math.min(r,t)),e===o&&t===r&&(n=h.config.maxDate.getSeconds())}O(e,t,n)}function O(e,t,n){void 0!==h.latestSelectedDateObj&&h.latestSelectedDateObj.setHours(e%24,t,n||0,0),h.hourElement&&h.minuteElement&&!h.isMobile&&(h.hourElement.value=i(h.config.time_24hr?e:(12+e)%12+12*o(e%12==0)),h.minuteElement.value=i(t),void 0!==h.amPM&&(h.amPM.textContent=h.l10n.amPM[o(e>=12)]),void 0!==h.secondElement&&(h.secondElement.value=i(n)))}function _(e){var t=parseInt(e.target.value)+(e.delta||0);(t/1e3>1||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&Q(t)}function F(e,t,n,a){return t instanceof Array?t.forEach(function(t){return F(e,t,n,a)}):e instanceof Array?e.forEach(function(e){return F(e,t,n,a)}):(e.addEventListener(t,n,a),void h._handlers.push({element:e,event:t,handler:n,options:a}))}function N(e){return function(t){1===t.which&&e(t)}}function Y(){ge("onChange")}function A(e,t){var n=void 0!==e?h.parseDate(e):h.latestSelectedDateObj||(h.config.minDate&&h.config.minDate>h.now?h.config.minDate:h.config.maxDate&&h.config.maxDate<h.now?h.config.maxDate:h.now),a=h.currentYear,i=h.currentMonth;try{void 0!==n&&(h.currentYear=n.getFullYear(),h.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,h.config.errorHandler(e)}t&&h.currentYear!==a&&(ge("onYearChange"),K()),!t||h.currentYear===a&&h.currentMonth===i||ge("onMonthChange"),h.redraw()}function P(e){~e.target.className.indexOf("arrow")&&j(e,e.target.classList.contains("arrowUp")?1:-1)}function j(e,t,n){var a=e&&e.target,i=n||a&&a.parentNode&&a.parentNode.firstChild,o=pe("increment");o.delta=t,i&&i.dispatchEvent(o)}function H(e,t,n,a){var i=X(t,!0),o=d("span","flatpickr-day "+e,t.getDate().toString());return o.dateObj=t,o.$i=a,o.setAttribute("aria-label",h.formatDate(t,h.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===w(t,h.now)&&(h.todayDateElem=o,o.classList.add("today"),o.setAttribute("aria-current","date")),i?(o.tabIndex=-1,he(t)&&(o.classList.add("selected"),h.selectedDateElem=o,"range"===h.config.mode&&(c(o,"startRange",h.selectedDates[0]&&0===w(t,h.selectedDates[0],!0)),c(o,"endRange",h.selectedDates[1]&&0===w(t,h.selectedDates[1],!0)),"nextMonthDay"===e&&o.classList.add("inRange")))):o.classList.add("flatpickr-disabled"),"range"===h.config.mode&&function(e){return!("range"!==h.config.mode||h.selectedDates.length<2)&&w(e,h.selectedDates[0])>=0&&w(e,h.selectedDates[1])<=0}(t)&&!he(t)&&o.classList.add("inRange"),h.weekNumbers&&1===h.config.showMonths&&"prevMonthDay"!==e&&n%7==1&&h.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+h.config.getWeek(t)+"</span>"),ge("onDayCreate",o),o}function L(e){e.focus(),"range"===h.config.mode&&ne(e)}function W(e){for(var t=e>0?0:h.config.showMonths-1,n=e>0?h.config.showMonths:-1,a=t;a!=n;a+=e)for(var i=h.daysContainer.children[a],o=e>0?0:i.children.length-1,r=e>0?i.children.length:-1,l=o;l!=r;l+=e){var c=i.children[l];if(-1===c.className.indexOf("hidden")&&X(c.dateObj))return c}}function R(e,t){var n=ee(document.activeElement||document.body),a=void 0!==e?e:n?document.activeElement:void 0!==h.selectedDateElem&&ee(h.selectedDateElem)?h.selectedDateElem:void 0!==h.todayDateElem&&ee(h.todayDateElem)?h.todayDateElem:W(t>0?1:-1);return void 0===a?h._input.focus():n?void function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():h.currentMonth,a=t>0?h.config.showMonths:-1,i=t>0?1:-1,o=n-h.currentMonth;o!=a;o+=i)for(var r=h.daysContainer.children[o],l=n-h.currentMonth===o?e.$i+t:t<0?r.children.length-1:0,c=r.children.length,d=l;d>=0&&d<c&&d!=(t>0?c:-1);d+=i){var s=r.children[d];if(-1===s.className.indexOf("hidden")&&X(s.dateObj)&&Math.abs(e.$i-d)>=Math.abs(t))return L(s)}h.changeMonth(i),R(W(i),0)}(a,t):L(a)}function B(e,t){for(var n=(new Date(e,t,1).getDay()-h.l10n.firstDayOfWeek+7)%7,a=h.utils.getDaysInMonth((t-1+12)%12),i=h.utils.getDaysInMonth(t),o=window.document.createDocumentFragment(),r=h.config.showMonths>1,l=r?"prevMonthDay hidden":"prevMonthDay",c=r?"nextMonthDay hidden":"nextMonthDay",s=a+1-n,u=0;s<=a;s++,u++)o.appendChild(H(l,new Date(e,t-1,s),s,u));for(s=1;s<=i;s++,u++)o.appendChild(H("",new Date(e,t,s),s,u));for(var f=i+1;f<=42-n&&(1===h.config.showMonths||u%7!=0);f++,u++)o.appendChild(H(c,new Date(e,t+1,f%i),f,u));var m=d("div","dayContainer");return m.appendChild(o),m}function J(){if(void 0!==h.daysContainer){s(h.daysContainer),h.weekNumbers&&s(h.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<h.config.showMonths;t++){var n=new Date(h.currentYear,h.currentMonth,1);n.setMonth(h.currentMonth+t),e.appendChild(B(n.getFullYear(),n.getMonth()))}h.daysContainer.appendChild(e),h.days=h.daysContainer.firstChild,"range"===h.config.mode&&1===h.selectedDates.length&&ne()}}function K(){if(!(h.config.showMonths>1||"dropdown"!==h.config.monthSelectorType)){var e=function(e){return!(void 0!==h.config.minDate&&h.currentYear===h.config.minDate.getFullYear()&&e<h.config.minDate.getMonth())&&!(void 0!==h.config.maxDate&&h.currentYear===h.config.maxDate.getFullYear()&&e>h.config.maxDate.getMonth())};h.monthsDropdownContainer.tabIndex=-1,h.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var n=d("option","flatpickr-monthDropdown-month");n.value=new Date(h.currentYear,t).getMonth().toString(),n.textContent=m(t,h.config.shorthandCurrentMonth,h.l10n),n.tabIndex=-1,h.currentMonth===t&&(n.selected=!0),h.monthsDropdownContainer.appendChild(n)}}}function U(){var e,t=d("div","flatpickr-month"),n=window.document.createDocumentFragment();h.config.showMonths>1||"static"===h.config.monthSelectorType?e=d("span","cur-month"):(h.monthsDropdownContainer=d("select","flatpickr-monthDropdown-months"),F(h.monthsDropdownContainer,"change",function(e){var t=e.target,n=parseInt(t.value,10);h.changeMonth(n-h.currentMonth),ge("onMonthChange")}),K(),e=h.monthsDropdownContainer);var a=u("cur-year",{tabindex:"-1"}),i=a.getElementsByTagName("input")[0];i.setAttribute("aria-label",h.l10n.yearAriaLabel),h.config.minDate&&i.setAttribute("min",h.config.minDate.getFullYear().toString()),h.config.maxDate&&(i.setAttribute("max",h.config.maxDate.getFullYear().toString()),i.disabled=!!h.config.minDate&&h.config.minDate.getFullYear()===h.config.maxDate.getFullYear());var o=d("div","flatpickr-current-month");return o.appendChild(e),o.appendChild(a),n.appendChild(o),t.appendChild(n),{container:t,yearElement:i,monthElement:e}}function q(){s(h.monthNav),h.monthNav.appendChild(h.prevMonthNav),h.config.showMonths&&(h.yearElements=[],h.monthElements=[]);for(var e=h.config.showMonths;e--;){var t=U();h.yearElements.push(t.yearElement),h.monthElements.push(t.monthElement),h.monthNav.appendChild(t.container)}h.monthNav.appendChild(h.nextMonthNav)}function $(){h.weekdayContainer?s(h.weekdayContainer):h.weekdayContainer=d("div","flatpickr-weekdays");for(var e=h.config.showMonths;e--;){var t=d("div","flatpickr-weekdaycontainer");h.weekdayContainer.appendChild(t)}return z(),h.weekdayContainer}function z(){if(h.weekdayContainer){var e=h.l10n.firstDayOfWeek,t=h.l10n.weekdays.shorthand.slice();e>0&&e<t.length&&(t=t.splice(e,t.length).concat(t.splice(0,e)));for(var n=h.config.showMonths;n--;)h.weekdayContainer.children[n].innerHTML="\n <span class='flatpickr-weekday'>\n "+t.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function G(e,t){void 0===t&&(t=!0);var n=t?e:e-h.currentMonth;n<0&&!0===h._hidePrevMonthArrow||n>0&&!0===h._hideNextMonthArrow||(h.currentMonth+=n,(h.currentMonth<0||h.currentMonth>11)&&(h.currentYear+=h.currentMonth>11?1:-1,h.currentMonth=(h.currentMonth+12)%12,ge("onYearChange"),K()),J(),ge("onMonthChange"),ve())}function V(e){return!(!h.config.appendTo||!h.config.appendTo.contains(e))||h.calendarContainer.contains(e)}function Z(e){if(h.isOpen&&!h.config.inline){var t="function"==typeof(r=e).composedPath?r.composedPath()[0]:r.target,n=V(t),a=t===h.input||t===h.altInput||h.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(h.input)||~e.path.indexOf(h.altInput)),i="blur"===e.type?a&&e.relatedTarget&&!V(e.relatedTarget):!a&&!n&&!V(e.relatedTarget),o=!h.config.ignoredFocusElements.some(function(e){return e.contains(t)});i&&o&&(void 0!==h.timeContainer&&void 0!==h.minuteElement&&void 0!==h.hourElement&&T(),h.close(),"range"===h.config.mode&&1===h.selectedDates.length&&(h.clear(!1),h.redraw()))}var r}function Q(e){if(!(!e||h.config.minDate&&e<h.config.minDate.getFullYear()||h.config.maxDate&&e>h.config.maxDate.getFullYear())){var t=e,n=h.currentYear!==t;h.currentYear=t||h.currentYear,h.config.maxDate&&h.currentYear===h.config.maxDate.getFullYear()?h.currentMonth=Math.min(h.config.maxDate.getMonth(),h.currentMonth):h.config.minDate&&h.currentYear===h.config.minDate.getFullYear()&&(h.currentMonth=Math.max(h.config.minDate.getMonth(),h.currentMonth)),n&&(h.redraw(),ge("onYearChange"),K())}}function X(e,t){void 0===t&&(t=!0);var n=h.parseDate(e,void 0,t);if(h.config.minDate&&n&&w(n,h.config.minDate,void 0!==t?t:!h.minDateHasTime)<0||h.config.maxDate&&n&&w(n,h.config.maxDate,void 0!==t?t:!h.maxDateHasTime)>0)return!1;if(0===h.config.enable.length&&0===h.config.disable.length)return!0;if(void 0===n)return!1;for(var a=h.config.enable.length>0,i=a?h.config.enable:h.config.disable,o=0,r=void 0;o<i.length;o++){if("function"==typeof(r=i[o])&&r(n))return a;if(r instanceof Date&&void 0!==n&&r.getTime()===n.getTime())return a;if("string"==typeof r&&void 0!==n){var l=h.parseDate(r,void 0,!0);return l&&l.getTime()===n.getTime()?a:!a}if("object"==typeof r&&void 0!==n&&r.from&&r.to&&n.getTime()>=r.from.getTime()&&n.getTime()<=r.to.getTime())return a}return!a}function ee(e){return void 0!==h.daysContainer&&(-1===e.className.indexOf("hidden")&&h.daysContainer.contains(e))}function te(e){var t=e.target===h._input,n=h.config.allowInput,a=h.isOpen&&(!n||!t),i=h.config.inline&&t&&!n;if(13===e.keyCode&&t){if(n)return h.setDate(h._input.value,!0,e.target===h.altInput?h.config.altFormat:h.config.dateFormat),e.target.blur();h.open()}else if(V(e.target)||a||i){var o=!!h.timeContainer&&h.timeContainer.contains(e.target);switch(e.keyCode){case 13:o?(e.preventDefault(),T(),de()):se(e);break;case 27:e.preventDefault(),de();break;case 8:case 46:t&&!h.config.allowInput&&(e.preventDefault(),h.clear());break;case 37:case 39:if(o||t)h.hourElement&&h.hourElement.focus();else if(e.preventDefault(),void 0!==h.daysContainer&&(!1===n||document.activeElement&&ee(document.activeElement))){var r=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),G(r),R(W(1),0)):R(void 0,r)}break;case 38:case 40:e.preventDefault();var l=40===e.keyCode?1:-1;h.daysContainer&&void 0!==e.target.$i||e.target===h.input||e.target===h.altInput?e.ctrlKey?(e.stopPropagation(),Q(h.currentYear-l),R(W(1),0)):o||R(void 0,7*l):e.target===h.currentYearElement?Q(h.currentYear-l):h.config.enableTime&&(!o&&h.hourElement&&h.hourElement.focus(),T(e),h._debouncedChange());break;case 9:if(o){var c=[h.hourElement,h.minuteElement,h.secondElement,h.amPM].concat(h.pluginElements).filter(function(e){return e}),d=c.indexOf(e.target);if(-1!==d){var s=c[d+(e.shiftKey?-1:1)];e.preventDefault(),(s||h._input).focus()}}else!h.config.noCalendar&&h.daysContainer&&h.daysContainer.contains(e.target)&&e.shiftKey&&(e.preventDefault(),h._input.focus())}}if(void 0!==h.amPM&&e.target===h.amPM)switch(e.key){case h.l10n.amPM[0].charAt(0):case h.l10n.amPM[0].charAt(0).toLowerCase():h.amPM.textContent=h.l10n.amPM[0],k(),we();break;case h.l10n.amPM[1].charAt(0):case h.l10n.amPM[1].charAt(0).toLowerCase():h.amPM.textContent=h.l10n.amPM[1],k(),we()}(t||V(e.target))&&ge("onKeyDown",e)}function ne(e){if(1===h.selectedDates.length&&(!e||e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled"))){for(var t=e?e.dateObj.getTime():h.days.firstElementChild.dateObj.getTime(),n=h.parseDate(h.selectedDates[0],void 0,!0).getTime(),a=Math.min(t,h.selectedDates[0].getTime()),i=Math.max(t,h.selectedDates[0].getTime()),o=!1,r=0,l=0,c=a;c<i;c+=C.DAY)X(new Date(c),!0)||(o=o||c>a&&c<i,c<n&&(!r||c>r)?r=c:c>n&&(!l||c<l)&&(l=c));for(var d=0;d<h.config.showMonths;d++)for(var s=h.daysContainer.children[d],u=function(a,i){var c=s.children[a],d=c.dateObj.getTime(),u=r>0&&d<r||l>0&&d>l;return u?(c.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){c.classList.remove(e)}),"continue"):o&&!u?"continue":(["startRange","inRange","endRange","notAllowed"].forEach(function(e){c.classList.remove(e)}),void(void 0!==e&&(e.classList.add(t<=h.selectedDates[0].getTime()?"startRange":"endRange"),n<t&&d===n?c.classList.add("startRange"):n>t&&d===n&&c.classList.add("endRange"),d>=r&&(0===l||d<=l)&&b(d,n,t)&&c.classList.add("inRange"))))},f=0,m=s.children.length;f<m;f++)u(f)}}function ae(){!h.isOpen||h.config.static||h.config.inline||le()}function ie(){h.setDate(void 0!==h.config.minDate?new Date(h.config.minDate.getTime()):new Date,!0),S(),we()}function oe(e){return function(t){var n=h.config["_"+e+"Date"]=h.parseDate(t,h.config.dateFormat),a=h.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(h["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),h.selectedDates&&(h.selectedDates=h.selectedDates.filter(function(e){return X(e)}),h.selectedDates.length||"min"!==e||I(n),we()),h.daysContainer&&(ce(),void 0!==n?h.currentYearElement[e]=n.getFullYear().toString():h.currentYearElement.removeAttribute(e),h.currentYearElement.disabled=!!a&&void 0!==n&&a.getFullYear()===n.getFullYear())}}function re(){"object"!=typeof h.config.locale&&void 0===E.l10ns[h.config.locale]&&h.config.errorHandler(new Error("flatpickr: invalid locale "+h.config.locale)),h.l10n=e({},E.l10ns.default,"object"==typeof h.config.locale?h.config.locale:"default"!==h.config.locale?E.l10ns[h.config.locale]:void 0),p.K="("+h.l10n.amPM[0]+"|"+h.l10n.amPM[1]+"|"+h.l10n.amPM[0].toLowerCase()+"|"+h.l10n.amPM[1].toLowerCase()+")",void 0===e({},g,JSON.parse(JSON.stringify(f.dataset||{}))).time_24hr&&void 0===E.defaultConfig.time_24hr&&(h.config.time_24hr=h.l10n.time_24hr),h.formatDate=v(h),h.parseDate=D({config:h.config,l10n:h.l10n})}function le(e){if(void 0!==h.calendarContainer){ge("onPreCalendarPosition");var t=e||h._positionElement,n=Array.prototype.reduce.call(h.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),a=h.calendarContainer.offsetWidth,i=h.config.position.split(" "),o=i[0],r=i.length>1?i[1]:null,l=t.getBoundingClientRect(),d=window.innerHeight-l.bottom,s="above"===o||"below"!==o&&d<n&&l.top>n,u=window.pageYOffset+l.top+(s?-n-2:t.offsetHeight+2);if(c(h.calendarContainer,"arrowTop",!s),c(h.calendarContainer,"arrowBottom",s),!h.config.inline){var f=window.pageXOffset+l.left-(null!=r&&"center"===r?(a-l.width)/2:0),m=window.document.body.offsetWidth-(window.pageXOffset+l.right),g=f+a>window.document.body.offsetWidth,p=m+a>window.document.body.offsetWidth;if(c(h.calendarContainer,"rightMost",g),!h.config.static)if(h.calendarContainer.style.top=u+"px",g)if(p){var v=document.styleSheets[0];if(void 0===v)return;var D=window.document.body.offsetWidth,w=Math.max(0,D/2-a/2),b=v.cssRules.length,C="{left:"+l.left+"px;right:auto;}";c(h.calendarContainer,"rightMost",!1),c(h.calendarContainer,"centerMost",!0),v.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+C,b),h.calendarContainer.style.left=w+"px",h.calendarContainer.style.right="auto"}else h.calendarContainer.style.left="auto",h.calendarContainer.style.right=m+"px";else h.calendarContainer.style.left=f+"px",h.calendarContainer.style.right="auto"}}}function ce(){h.config.noCalendar||h.isMobile||(ve(),J())}function de(){h._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(h.close,0):h.close()}function se(e){e.preventDefault(),e.stopPropagation();var t=function e(t,n){return n(t)?t:t.parentNode?e(t.parentNode,n):void 0}(e.target,function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")});if(void 0!==t){var n=t,a=h.latestSelectedDateObj=new Date(n.dateObj.getTime()),i=(a.getMonth()<h.currentMonth||a.getMonth()>h.currentMonth+h.config.showMonths-1)&&"range"!==h.config.mode;if(h.selectedDateElem=n,"single"===h.config.mode)h.selectedDates=[a];else if("multiple"===h.config.mode){var o=he(a);o?h.selectedDates.splice(parseInt(o),1):h.selectedDates.push(a)}else"range"===h.config.mode&&(2===h.selectedDates.length&&h.clear(!1,!1),h.latestSelectedDateObj=a,h.selectedDates.push(a),0!==w(a,h.selectedDates[0],!0)&&h.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(k(),i){var r=h.currentYear!==a.getFullYear();h.currentYear=a.getFullYear(),h.currentMonth=a.getMonth(),r&&(ge("onYearChange"),K()),ge("onMonthChange")}if(ve(),J(),we(),h.config.enableTime&&setTimeout(function(){return h.showTimeInput=!0},50),i||"range"===h.config.mode||1!==h.config.showMonths?void 0!==h.selectedDateElem&&void 0===h.hourElement&&h.selectedDateElem&&h.selectedDateElem.focus():L(n),void 0!==h.hourElement&&void 0!==h.hourElement&&h.hourElement.focus(),h.config.closeOnSelect){var l="single"===h.config.mode&&!h.config.enableTime,c="range"===h.config.mode&&2===h.selectedDates.length&&!h.config.enableTime;(l||c)&&de()}Y()}}h.parseDate=D({config:h.config,l10n:h.l10n}),h._handlers=[],h.pluginElements=[],h.loadedPlugins=[],h._bind=F,h._setHoursFromDate=I,h._positionCalendar=le,h.changeMonth=G,h.changeYear=Q,h.clear=function(e,t){void 0===e&&(e=!0);void 0===t&&(t=!0);h.input.value="",void 0!==h.altInput&&(h.altInput.value="");void 0!==h.mobileInput&&(h.mobileInput.value="");h.selectedDates=[],h.latestSelectedDateObj=void 0,!0===t&&(h.currentYear=h._initialDate.getFullYear(),h.currentMonth=h._initialDate.getMonth());h.showTimeInput=!1,!0===h.config.enableTime&&S();h.redraw(),e&&ge("onChange")},h.close=function(){h.isOpen=!1,h.isMobile||(void 0!==h.calendarContainer&&h.calendarContainer.classList.remove("open"),void 0!==h._input&&h._input.classList.remove("active"));ge("onClose")},h._createElement=d,h.destroy=function(){void 0!==h.config&&ge("onDestroy");for(var e=h._handlers.length;e--;){var t=h._handlers[e];t.element.removeEventListener(t.event,t.handler,t.options)}if(h._handlers=[],h.mobileInput)h.mobileInput.parentNode&&h.mobileInput.parentNode.removeChild(h.mobileInput),h.mobileInput=void 0;else if(h.calendarContainer&&h.calendarContainer.parentNode)if(h.config.static&&h.calendarContainer.parentNode){var n=h.calendarContainer.parentNode;if(n.lastChild&&n.removeChild(n.lastChild),n.parentNode){for(;n.firstChild;)n.parentNode.insertBefore(n.firstChild,n);n.parentNode.removeChild(n)}}else h.calendarContainer.parentNode.removeChild(h.calendarContainer);h.altInput&&(h.input.type="text",h.altInput.parentNode&&h.altInput.parentNode.removeChild(h.altInput),delete h.altInput);h.input&&(h.input.type=h.input._type,h.input.classList.remove("flatpickr-input"),h.input.removeAttribute("readonly"),h.input.value="");["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete h[e]}catch(e){}})},h.isEnabled=X,h.jumpToDate=A,h.open=function(e,t){void 0===t&&(t=h._positionElement);if(!0===h.isMobile)return e&&(e.preventDefault(),e.target&&e.target.blur()),void 0!==h.mobileInput&&(h.mobileInput.focus(),h.mobileInput.click()),void ge("onOpen");if(h._input.disabled||h.config.inline)return;var n=h.isOpen;h.isOpen=!0,n||(h.calendarContainer.classList.add("open"),h._input.classList.add("active"),ge("onOpen"),le(t));!0===h.config.enableTime&&!0===h.config.noCalendar&&(0===h.selectedDates.length&&ie(),!1!==h.config.allowInput||void 0!==e&&h.timeContainer.contains(e.relatedTarget)||setTimeout(function(){return h.hourElement.select()},50))},h.redraw=ce,h.set=function(e,n){if(null!==e&&"object"==typeof e)for(var a in Object.assign(h.config,e),e)void 0!==ue[a]&&ue[a].forEach(function(e){return e()});else h.config[e]=n,void 0!==ue[e]?ue[e].forEach(function(e){return e()}):t.indexOf(e)>-1&&(h.config[e]=l(n));h.redraw(),we(!1)},h.setDate=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=h.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return h.clear(t);fe(e,n),h.showTimeInput=h.selectedDates.length>0,h.latestSelectedDateObj=h.selectedDates[h.selectedDates.length-1],h.redraw(),A(),I(),0===h.selectedDates.length&&h.clear(!1);we(t),t&&ge("onChange")},h.toggle=function(e){if(!0===h.isOpen)return h.close();h.open(e)};var ue={locale:[re,z],showMonths:[q,x,$],minDate:[A],maxDate:[A]};function fe(e,t){var n=[];if(e instanceof Array)n=e.map(function(e){return h.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)n=[h.parseDate(e,t)];else if("string"==typeof e)switch(h.config.mode){case"single":case"time":n=[h.parseDate(e,t)];break;case"multiple":n=e.split(h.config.conjunction).map(function(e){return h.parseDate(e,t)});break;case"range":n=e.split(h.l10n.rangeSeparator).map(function(e){return h.parseDate(e,t)})}else h.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));h.selectedDates=n.filter(function(e){return e instanceof Date&&X(e,!1)}),"range"===h.config.mode&&h.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function me(e){return e.slice().map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?h.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:h.parseDate(e.from,void 0),to:h.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function ge(e,t){if(void 0!==h.config){var n=h.config[e];if(void 0!==n&&n.length>0)for(var a=0;n[a]&&a<n.length;a++)n[a](h.selectedDates,h.input.value,h,t);"onChange"===e&&(h.input.dispatchEvent(pe("change")),h.input.dispatchEvent(pe("input")))}}function pe(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function he(e){for(var t=0;t<h.selectedDates.length;t++)if(0===w(h.selectedDates[t],e))return""+t;return!1}function ve(){h.config.noCalendar||h.isMobile||!h.monthNav||(h.yearElements.forEach(function(e,t){var n=new Date(h.currentYear,h.currentMonth,1);n.setMonth(h.currentMonth+t),h.config.showMonths>1||"static"===h.config.monthSelectorType?h.monthElements[t].textContent=m(n.getMonth(),h.config.shorthandCurrentMonth,h.l10n)+" ":h.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()}),h._hidePrevMonthArrow=void 0!==h.config.minDate&&(h.currentYear===h.config.minDate.getFullYear()?h.currentMonth<=h.config.minDate.getMonth():h.currentYear<h.config.minDate.getFullYear()),h._hideNextMonthArrow=void 0!==h.config.maxDate&&(h.currentYear===h.config.maxDate.getFullYear()?h.currentMonth+1>h.config.maxDate.getMonth():h.currentYear>h.config.maxDate.getFullYear()))}function De(e){return h.selectedDates.map(function(t){return h.formatDate(t,e)}).filter(function(e,t,n){return"range"!==h.config.mode||h.config.enableTime||n.indexOf(e)===t}).join("range"!==h.config.mode?h.config.conjunction:h.l10n.rangeSeparator)}function we(e){void 0===e&&(e=!0),void 0!==h.mobileInput&&h.mobileFormatStr&&(h.mobileInput.value=void 0!==h.latestSelectedDateObj?h.formatDate(h.latestSelectedDateObj,h.mobileFormatStr):""),h.input.value=De(h.config.dateFormat),void 0!==h.altInput&&(h.altInput.value=De(h.config.altFormat)),!1!==e&&ge("onValueUpdate")}function be(e){var t=h.prevMonthNav.contains(e.target),n=h.nextMonthNav.contains(e.target);t||n?G(t?-1:1):h.yearElements.indexOf(e.target)>=0?e.target.select():e.target.classList.contains("arrowUp")?h.changeYear(h.currentYear+1):e.target.classList.contains("arrowDown")&&h.changeYear(h.currentYear-1)}return function(){h.element=h.input=f,h.isOpen=!1,function(){var a=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],i=e({},g,JSON.parse(JSON.stringify(f.dataset||{}))),o={};h.config.parseDate=i.parseDate,h.config.formatDate=i.formatDate,Object.defineProperty(h.config,"enable",{get:function(){return h.config._enable},set:function(e){h.config._enable=me(e)}}),Object.defineProperty(h.config,"disable",{get:function(){return h.config._disable},set:function(e){h.config._disable=me(e)}});var r="time"===i.mode;if(!i.dateFormat&&(i.enableTime||r)){var c=E.defaultConfig.dateFormat||n.dateFormat;o.dateFormat=i.noCalendar||r?"H:i"+(i.enableSeconds?":S":""):c+" H:i"+(i.enableSeconds?":S":"")}if(i.altInput&&(i.enableTime||r)&&!i.altFormat){var d=E.defaultConfig.altFormat||n.altFormat;o.altFormat=i.noCalendar||r?"h:i"+(i.enableSeconds?":S K":" K"):d+" h:i"+(i.enableSeconds?":S":"")+" K"}i.altInputClass||(h.config.altInputClass=h.input.className+" "+h.config.altInputClass),Object.defineProperty(h.config,"minDate",{get:function(){return h.config._minDate},set:oe("min")}),Object.defineProperty(h.config,"maxDate",{get:function(){return h.config._maxDate},set:oe("max")});var s=function(e){return function(t){h.config["min"===e?"_minTime":"_maxTime"]=h.parseDate(t,"H:i:S")}};Object.defineProperty(h.config,"minTime",{get:function(){return h.config._minTime},set:s("min")}),Object.defineProperty(h.config,"maxTime",{get:function(){return h.config._maxTime},set:s("max")}),"time"===i.mode&&(h.config.noCalendar=!0,h.config.enableTime=!0),Object.assign(h.config,o,i);for(var u=0;u<a.length;u++)h.config[a[u]]=!0===h.config[a[u]]||"true"===h.config[a[u]];t.filter(function(e){return void 0!==h.config[e]}).forEach(function(e){h.config[e]=l(h.config[e]||[]).map(y)}),h.isMobile=!h.config.disableMobile&&!h.config.inline&&"single"===h.config.mode&&!h.config.disable.length&&!h.config.enable.length&&!h.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var u=0;u<h.config.plugins.length;u++){var m=h.config.plugins[u](h)||{};for(var p in m)t.indexOf(p)>-1?h.config[p]=l(m[p]).map(y).concat(h.config[p]):void 0===i[p]&&(h.config[p]=m[p])}ge("onParseConfig")}(),re(),h.input=h.config.wrap?f.querySelector("[data-input]"):f,h.input?(h.input._type=h.input.type,h.input.type="text",h.input.classList.add("flatpickr-input"),h._input=h.input,h.config.altInput&&(h.altInput=d(h.input.nodeName,h.config.altInputClass),h._input=h.altInput,h.altInput.placeholder=h.input.placeholder,h.altInput.disabled=h.input.disabled,h.altInput.required=h.input.required,h.altInput.tabIndex=h.input.tabIndex,h.altInput.type="text",h.input.setAttribute("type","hidden"),!h.config.static&&h.input.parentNode&&h.input.parentNode.insertBefore(h.altInput,h.input.nextSibling)),h.config.allowInput||h._input.setAttribute("readonly","readonly"),h._positionElement=h.config.positionElement||h._input):h.config.errorHandler(new Error("Invalid input element specified")),function(){h.selectedDates=[],h.now=h.parseDate(h.config.now)||new Date;var e=h.config.defaultDate||("INPUT"!==h.input.nodeName&&"TEXTAREA"!==h.input.nodeName||!h.input.placeholder||h.input.value!==h.input.placeholder?h.input.value:null);e&&fe(e,h.config.dateFormat),h._initialDate=h.selectedDates.length>0?h.selectedDates[0]:h.config.minDate&&h.config.minDate.getTime()>h.now.getTime()?h.config.minDate:h.config.maxDate&&h.config.maxDate.getTime()<h.now.getTime()?h.config.maxDate:h.now,h.currentYear=h._initialDate.getFullYear(),h.currentMonth=h._initialDate.getMonth(),h.selectedDates.length>0&&(h.latestSelectedDateObj=h.selectedDates[0]),void 0!==h.config.minTime&&(h.config.minTime=h.parseDate(h.config.minTime,"H:i")),void 0!==h.config.maxTime&&(h.config.maxTime=h.parseDate(h.config.maxTime,"H:i")),h.minDateHasTime=!!h.config.minDate&&(h.config.minDate.getHours()>0||h.config.minDate.getMinutes()>0||h.config.minDate.getSeconds()>0),h.maxDateHasTime=!!h.config.maxDate&&(h.config.maxDate.getHours()>0||h.config.maxDate.getMinutes()>0||h.config.maxDate.getSeconds()>0),Object.defineProperty(h,"showTimeInput",{get:function(){return h._showTimeInput},set:function(e){h._showTimeInput=e,h.calendarContainer&&c(h.calendarContainer,"showTimeInput",e),h.isOpen&&le()}})}(),h.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=h.currentMonth),void 0===t&&(t=h.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:h.l10n.daysInMonth[e]}},h.isMobile||function(){var e=window.document.createDocumentFragment();if(h.calendarContainer=d("div","flatpickr-calendar"),h.calendarContainer.tabIndex=-1,!h.config.noCalendar){if(e.appendChild((h.monthNav=d("div","flatpickr-months"),h.yearElements=[],h.monthElements=[],h.prevMonthNav=d("span","flatpickr-prev-month"),h.prevMonthNav.innerHTML=h.config.prevArrow,h.nextMonthNav=d("span","flatpickr-next-month"),h.nextMonthNav.innerHTML=h.config.nextArrow,q(),Object.defineProperty(h,"_hidePrevMonthArrow",{get:function(){return h.__hidePrevMonthArrow},set:function(e){h.__hidePrevMonthArrow!==e&&(c(h.prevMonthNav,"flatpickr-disabled",e),h.__hidePrevMonthArrow=e)}}),Object.defineProperty(h,"_hideNextMonthArrow",{get:function(){return h.__hideNextMonthArrow},set:function(e){h.__hideNextMonthArrow!==e&&(c(h.nextMonthNav,"flatpickr-disabled",e),h.__hideNextMonthArrow=e)}}),h.currentYearElement=h.yearElements[0],ve(),h.monthNav)),h.innerContainer=d("div","flatpickr-innerContainer"),h.config.weekNumbers){var t=function(){h.calendarContainer.classList.add("hasWeeks");var e=d("div","flatpickr-weekwrapper");e.appendChild(d("span","flatpickr-weekday",h.l10n.weekAbbreviation));var t=d("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,a=t.weekNumbers;h.innerContainer.appendChild(n),h.weekNumbers=a,h.weekWrapper=n}h.rContainer=d("div","flatpickr-rContainer"),h.rContainer.appendChild($()),h.daysContainer||(h.daysContainer=d("div","flatpickr-days"),h.daysContainer.tabIndex=-1),J(),h.rContainer.appendChild(h.daysContainer),h.innerContainer.appendChild(h.rContainer),e.appendChild(h.innerContainer)}h.config.enableTime&&e.appendChild(function(){h.calendarContainer.classList.add("hasTime"),h.config.noCalendar&&h.calendarContainer.classList.add("noCalendar"),h.timeContainer=d("div","flatpickr-time"),h.timeContainer.tabIndex=-1;var e=d("span","flatpickr-time-separator",":"),t=u("flatpickr-hour",{"aria-label":h.l10n.hourAriaLabel});h.hourElement=t.getElementsByTagName("input")[0];var n=u("flatpickr-minute",{"aria-label":h.l10n.minuteAriaLabel});if(h.minuteElement=n.getElementsByTagName("input")[0],h.hourElement.tabIndex=h.minuteElement.tabIndex=-1,h.hourElement.value=i(h.latestSelectedDateObj?h.latestSelectedDateObj.getHours():h.config.time_24hr?h.config.defaultHour:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(h.config.defaultHour)),h.minuteElement.value=i(h.latestSelectedDateObj?h.latestSelectedDateObj.getMinutes():h.config.defaultMinute),h.hourElement.setAttribute("step",h.config.hourIncrement.toString()),h.minuteElement.setAttribute("step",h.config.minuteIncrement.toString()),h.hourElement.setAttribute("min",h.config.time_24hr?"0":"1"),h.hourElement.setAttribute("max",h.config.time_24hr?"23":"12"),h.minuteElement.setAttribute("min","0"),h.minuteElement.setAttribute("max","59"),h.timeContainer.appendChild(t),h.timeContainer.appendChild(e),h.timeContainer.appendChild(n),h.config.time_24hr&&h.timeContainer.classList.add("time24hr"),h.config.enableSeconds){h.timeContainer.classList.add("hasSeconds");var a=u("flatpickr-second");h.secondElement=a.getElementsByTagName("input")[0],h.secondElement.value=i(h.latestSelectedDateObj?h.latestSelectedDateObj.getSeconds():h.config.defaultSeconds),h.secondElement.setAttribute("step",h.minuteElement.getAttribute("step")),h.secondElement.setAttribute("min","0"),h.secondElement.setAttribute("max","59"),h.timeContainer.appendChild(d("span","flatpickr-time-separator",":")),h.timeContainer.appendChild(a)}return h.config.time_24hr||(h.amPM=d("span","flatpickr-am-pm",h.l10n.amPM[o((h.latestSelectedDateObj?h.hourElement.value:h.config.defaultHour)>11)]),h.amPM.title=h.l10n.toggleTitle,h.amPM.tabIndex=-1,h.timeContainer.appendChild(h.amPM)),h.timeContainer}()),c(h.calendarContainer,"rangeMode","range"===h.config.mode),c(h.calendarContainer,"animate",!0===h.config.animate),c(h.calendarContainer,"multiMonth",h.config.showMonths>1),h.calendarContainer.appendChild(e);var r=void 0!==h.config.appendTo&&void 0!==h.config.appendTo.nodeType;if((h.config.inline||h.config.static)&&(h.calendarContainer.classList.add(h.config.inline?"inline":"static"),h.config.inline&&(!r&&h.element.parentNode?h.element.parentNode.insertBefore(h.calendarContainer,h._input.nextSibling):void 0!==h.config.appendTo&&h.config.appendTo.appendChild(h.calendarContainer)),h.config.static)){var l=d("div","flatpickr-wrapper");h.element.parentNode&&h.element.parentNode.insertBefore(l,h.element),l.appendChild(h.element),h.altInput&&l.appendChild(h.altInput),l.appendChild(h.calendarContainer)}h.config.static||h.config.inline||(void 0!==h.config.appendTo?h.config.appendTo:window.document.body).appendChild(h.calendarContainer)}(),function(){if(h.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(h.element.querySelectorAll("[data-"+e+"]"),function(t){return F(t,"click",h[e])})}),h.isMobile)!function(){var e=h.config.enableTime?h.config.noCalendar?"time":"datetime-local":"date";h.mobileInput=d("input",h.input.className+" flatpickr-mobile"),h.mobileInput.step=h.input.getAttribute("step")||"any",h.mobileInput.tabIndex=1,h.mobileInput.type=e,h.mobileInput.disabled=h.input.disabled,h.mobileInput.required=h.input.required,h.mobileInput.placeholder=h.input.placeholder,h.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",h.selectedDates.length>0&&(h.mobileInput.defaultValue=h.mobileInput.value=h.formatDate(h.selectedDates[0],h.mobileFormatStr)),h.config.minDate&&(h.mobileInput.min=h.formatDate(h.config.minDate,"Y-m-d")),h.config.maxDate&&(h.mobileInput.max=h.formatDate(h.config.maxDate,"Y-m-d")),h.input.type="hidden",void 0!==h.altInput&&(h.altInput.type="hidden");try{h.input.parentNode&&h.input.parentNode.insertBefore(h.mobileInput,h.input.nextSibling)}catch(e){}F(h.mobileInput,"change",function(e){h.setDate(e.target.value,!1,h.mobileFormatStr),ge("onChange"),ge("onClose")})}();else{var e=r(ae,50);h._debouncedChange=r(Y,M),h.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&F(h.daysContainer,"mouseover",function(e){"range"===h.config.mode&&ne(e.target)}),F(window.document.body,"keydown",te),h.config.inline||h.config.static||F(window,"resize",e),void 0!==window.ontouchstart?F(window.document,"touchstart",Z):F(window.document,"mousedown",N(Z)),F(window.document,"focus",Z,{capture:!0}),!0===h.config.clickOpens&&(F(h._input,"focus",h.open),F(h._input,"mousedown",N(h.open))),void 0!==h.daysContainer&&(F(h.monthNav,"mousedown",N(be)),F(h.monthNav,["keyup","increment"],_),F(h.daysContainer,"mousedown",N(se))),void 0!==h.timeContainer&&void 0!==h.minuteElement&&void 0!==h.hourElement&&(F(h.timeContainer,["increment"],T),F(h.timeContainer,"blur",T,{capture:!0}),F(h.timeContainer,"mousedown",N(P)),F([h.hourElement,h.minuteElement],["focus","click"],function(e){return e.target.select()}),void 0!==h.secondElement&&F(h.secondElement,"focus",function(){return h.secondElement&&h.secondElement.select()}),void 0!==h.amPM&&F(h.amPM,"mousedown",N(function(e){T(e),Y()})))}}(),(h.selectedDates.length||h.config.noCalendar)&&(h.config.enableTime&&I(h.config.noCalendar?h.latestSelectedDateObj||h.config.minDate:void 0),we(!1)),x(),h.showTimeInput=h.selectedDates.length>0||h.config.noCalendar;var a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!h.isMobile&&a&&le(),ge("onReady")}(),h}function x(e,t){for(var n=Array.prototype.slice.call(e).filter(function(e){return e instanceof HTMLElement}),a=[],i=0;i<n.length;i++){var o=n[i];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=y(o,t||{}),a.push(o._flatpickr)}catch(e){console.error(e)}}return 1===a.length?a[0]:a}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return x(this,e)},HTMLElement.prototype.flatpickr=function(e){return x([this],e)});var E=function(e,t){return"string"==typeof e?x(window.document.querySelectorAll(e),t):e instanceof Node?x([e],t):x(e,t)};return E.defaultConfig={},E.l10ns={en:e({},a),default:e({},a)},E.localize=function(t){E.l10ns.default=e({},E.l10ns.default,t)},E.setDefaults=function(t){E.defaultConfig=e({},E.defaultConfig,t)},E.parseDate=D({}),E.formatDate=v({}),E.compareDates=w,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return x(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=E),E});
1
+ /* flatpickr v4.6.9, @license MIT */
2
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).flatpickr=t()}(this,(function(){"use strict";var e=function(){return(e=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function t(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var a=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],r=0,l=o.length;r<l;r++,i++)a[i]=o[r];return a}var n=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],a={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},i={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},o=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},r=function(e){return!0===e?1:0};function l(e,t){var n;return function(){var a=this;clearTimeout(n),n=setTimeout((function(){return e.apply(a,arguments)}),t)}}var c=function(e){return e instanceof Array?e:[e]};function d(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function s(e,t,n){var a=window.document.createElement(e);return t=t||"",n=n||"",a.className=t,void 0!==n&&(a.textContent=n),a}function u(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function f(e,t){return t(e)?e:e.parentNode?f(e.parentNode,t):void 0}function m(e,t){var n=s("div","numInputWrapper"),a=s("input","numInput "+e),i=s("span","arrowUp"),o=s("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?a.type="number":(a.type="text",a.pattern="\\d*"),void 0!==t)for(var r in t)a.setAttribute(r,t[r]);return n.appendChild(a),n.appendChild(i),n.appendChild(o),n}function g(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}var p=function(){},h=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},v={D:p,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*r(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var a=parseInt(t),i=new Date(e.getFullYear(),0,2+7*(a-1),0,0,0,0);return i.setDate(i.getDate()-i.getDay()+n.firstDayOfWeek),i},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:p,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:p,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},D={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},w={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[w.w(e,t,n)]},F:function(e,t,n){return h(w.n(e,t,n)-1,!1,t)},G:function(e,t,n){return o(w.h(e,t,n))},H:function(e){return o(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[r(e.getHours()>11)]},M:function(e,t){return h(e.getMonth(),!0,t)},S:function(e){return o(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return o(e.getFullYear(),4)},d:function(e){return o(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return o(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return o(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},b=function(e){var t=e.config,n=void 0===t?a:t,o=e.l10n,r=void 0===o?i:o,l=e.isMobile,c=void 0!==l&&l;return function(e,t,a){var i=a||r;return void 0===n.formatDate||c?t.split("").map((function(t,a,o){return w[t]&&"\\"!==o[a-1]?w[t](e,i,n):"\\"!==t?t:""})).join(""):n.formatDate(e,t,i)}},C=function(e){var t=e.config,n=void 0===t?a:t,o=e.l10n,r=void 0===o?i:o;return function(e,t,i,o){if(0===e||e){var l,c=o||r,d=e;if(e instanceof Date)l=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)l=new Date(e);else if("string"==typeof e){var s=t||(n||a).dateFormat,u=String(e).trim();if("today"===u)l=new Date,i=!0;else if(/Z$/.test(u)||/GMT$/.test(u))l=new Date(e);else if(n&&n.parseDate)l=n.parseDate(e,s);else{l=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var f=void 0,m=[],g=0,p=0,h="";g<s.length;g++){var w=s[g],b="\\"===w,C="\\"===s[g-1]||b;if(D[w]&&!C){h+=D[w];var M=new RegExp(h).exec(e);M&&(f=!0)&&m["Y"!==w?"push":"unshift"]({fn:v[w],val:M[++p]})}else b||(h+=".");m.forEach((function(e){var t=e.fn,n=e.val;return l=t(l,n,c)||l}))}l=f?l:void 0}}if(l instanceof Date&&!isNaN(l.getTime()))return!0===i&&l.setHours(0,0,0,0),l;n.errorHandler(new Error("Invalid date provided: "+d))}}};function M(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var y=864e5;function x(e){var t=e.defaultHour,n=e.defaultMinute,a=e.defaultSeconds;if(void 0!==e.minDate){var i=e.minDate.getHours(),o=e.minDate.getMinutes(),r=e.minDate.getSeconds();t<i&&(t=i),t===i&&n<o&&(n=o),t===i&&n===o&&a<r&&(a=e.minDate.getSeconds())}if(void 0!==e.maxDate){var l=e.maxDate.getHours(),c=e.maxDate.getMinutes();(t=Math.min(t,l))===l&&(n=Math.min(c,n)),t===l&&n===c&&(a=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:a}}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var a=function(t){t&&Object.keys(t).forEach((function(n){return e[n]=t[n]}))},i=0,o=t;i<o.length;i++){var r=o[i];a(r)}return e});function E(p,v){var w={config:e(e({},a),T.defaultConfig),l10n:i};function E(e){return e.bind(w)}function k(){var e=w.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==w.calendarContainer&&(w.calendarContainer.style.visibility="hidden",w.calendarContainer.style.display="block"),void 0!==w.daysContainer){var t=(w.days.offsetWidth+1)*e.showMonths;w.daysContainer.style.width=t+"px",w.calendarContainer.style.width=t+(void 0!==w.weekWrapper?w.weekWrapper.offsetWidth:0)+"px",w.calendarContainer.style.removeProperty("visibility"),w.calendarContainer.style.removeProperty("display")}}))}function I(e){if(0===w.selectedDates.length){var t=void 0===w.config.minDate||M(new Date,w.config.minDate)>=0?new Date:new Date(w.config.minDate.getTime()),n=x(w.config);t.setHours(n.hours,n.minutes,n.seconds,t.getMilliseconds()),w.selectedDates=[t],w.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=g(e),a=n;void 0!==w.amPM&&n===w.amPM&&(w.amPM.textContent=w.l10n.amPM[r(w.amPM.textContent===w.l10n.amPM[0])]);var i=parseFloat(a.getAttribute("min")),l=parseFloat(a.getAttribute("max")),c=parseFloat(a.getAttribute("step")),d=parseInt(a.value,10),s=e.delta||(t?38===e.which?1:-1:0),u=d+c*s;if(void 0!==a.value&&2===a.value.length){var f=a===w.hourElement,m=a===w.minuteElement;u<i?(u=l+u+r(!f)+(r(f)&&r(!w.amPM)),m&&j(void 0,-1,w.hourElement)):u>l&&(u=a===w.hourElement?u-l-r(!w.amPM):i,m&&j(void 0,1,w.hourElement)),w.amPM&&f&&(1===c?u+d===23:Math.abs(u-d)>c)&&(w.amPM.textContent=w.l10n.amPM[r(w.amPM.textContent===w.l10n.amPM[0])]),a.value=o(u)}}(e);var a=w._input.value;S(),be(),w._input.value!==a&&w._debouncedChange()}function S(){if(void 0!==w.hourElement&&void 0!==w.minuteElement){var e,t,n=(parseInt(w.hourElement.value.slice(-2),10)||0)%24,a=(parseInt(w.minuteElement.value,10)||0)%60,i=void 0!==w.secondElement?(parseInt(w.secondElement.value,10)||0)%60:0;void 0!==w.amPM&&(e=n,t=w.amPM.textContent,n=e%12+12*r(t===w.l10n.amPM[1]));var o=void 0!==w.config.minTime||w.config.minDate&&w.minDateHasTime&&w.latestSelectedDateObj&&0===M(w.latestSelectedDateObj,w.config.minDate,!0);if(void 0!==w.config.maxTime||w.config.maxDate&&w.maxDateHasTime&&w.latestSelectedDateObj&&0===M(w.latestSelectedDateObj,w.config.maxDate,!0)){var l=void 0!==w.config.maxTime?w.config.maxTime:w.config.maxDate;(n=Math.min(n,l.getHours()))===l.getHours()&&(a=Math.min(a,l.getMinutes())),a===l.getMinutes()&&(i=Math.min(i,l.getSeconds()))}if(o){var c=void 0!==w.config.minTime?w.config.minTime:w.config.minDate;(n=Math.max(n,c.getHours()))===c.getHours()&&a<c.getMinutes()&&(a=c.getMinutes()),a===c.getMinutes()&&(i=Math.max(i,c.getSeconds()))}O(n,a,i)}}function _(e){var t=e||w.latestSelectedDateObj;t&&O(t.getHours(),t.getMinutes(),t.getSeconds())}function O(e,t,n){void 0!==w.latestSelectedDateObj&&w.latestSelectedDateObj.setHours(e%24,t,n||0,0),w.hourElement&&w.minuteElement&&!w.isMobile&&(w.hourElement.value=o(w.config.time_24hr?e:(12+e)%12+12*r(e%12==0)),w.minuteElement.value=o(t),void 0!==w.amPM&&(w.amPM.textContent=w.l10n.amPM[r(e>=12)]),void 0!==w.secondElement&&(w.secondElement.value=o(n)))}function F(e){var t=g(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&Q(n)}function A(e,t,n,a){return t instanceof Array?t.forEach((function(t){return A(e,t,n,a)})):e instanceof Array?e.forEach((function(e){return A(e,t,n,a)})):(e.addEventListener(t,n,a),void w._handlers.push({remove:function(){return e.removeEventListener(t,n)}}))}function N(){pe("onChange")}function P(e,t){var n=void 0!==e?w.parseDate(e):w.latestSelectedDateObj||(w.config.minDate&&w.config.minDate>w.now?w.config.minDate:w.config.maxDate&&w.config.maxDate<w.now?w.config.maxDate:w.now),a=w.currentYear,i=w.currentMonth;try{void 0!==n&&(w.currentYear=n.getFullYear(),w.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,w.config.errorHandler(e)}t&&w.currentYear!==a&&(pe("onYearChange"),K()),!t||w.currentYear===a&&w.currentMonth===i||pe("onMonthChange"),w.redraw()}function Y(e){var t=g(e);~t.className.indexOf("arrow")&&j(e,t.classList.contains("arrowUp")?1:-1)}function j(e,t,n){var a=e&&g(e),i=n||a&&a.parentNode&&a.parentNode.firstChild,o=he("increment");o.delta=t,i&&i.dispatchEvent(o)}function H(e,t,n,a){var i=X(t,!0),o=s("span","flatpickr-day "+e,t.getDate().toString());return o.dateObj=t,o.$i=a,o.setAttribute("aria-label",w.formatDate(t,w.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===M(t,w.now)&&(w.todayDateElem=o,o.classList.add("today"),o.setAttribute("aria-current","date")),i?(o.tabIndex=-1,ve(t)&&(o.classList.add("selected"),w.selectedDateElem=o,"range"===w.config.mode&&(d(o,"startRange",w.selectedDates[0]&&0===M(t,w.selectedDates[0],!0)),d(o,"endRange",w.selectedDates[1]&&0===M(t,w.selectedDates[1],!0)),"nextMonthDay"===e&&o.classList.add("inRange")))):o.classList.add("flatpickr-disabled"),"range"===w.config.mode&&function(e){return!("range"!==w.config.mode||w.selectedDates.length<2)&&(M(e,w.selectedDates[0])>=0&&M(e,w.selectedDates[1])<=0)}(t)&&!ve(t)&&o.classList.add("inRange"),w.weekNumbers&&1===w.config.showMonths&&"prevMonthDay"!==e&&n%7==1&&w.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+w.config.getWeek(t)+"</span>"),pe("onDayCreate",o),o}function L(e){e.focus(),"range"===w.config.mode&&ae(e)}function W(e){for(var t=e>0?0:w.config.showMonths-1,n=e>0?w.config.showMonths:-1,a=t;a!=n;a+=e)for(var i=w.daysContainer.children[a],o=e>0?0:i.children.length-1,r=e>0?i.children.length:-1,l=o;l!=r;l+=e){var c=i.children[l];if(-1===c.className.indexOf("hidden")&&X(c.dateObj))return c}}function R(e,t){var n=ee(document.activeElement||document.body),a=void 0!==e?e:n?document.activeElement:void 0!==w.selectedDateElem&&ee(w.selectedDateElem)?w.selectedDateElem:void 0!==w.todayDateElem&&ee(w.todayDateElem)?w.todayDateElem:W(t>0?1:-1);void 0===a?w._input.focus():n?function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():w.currentMonth,a=t>0?w.config.showMonths:-1,i=t>0?1:-1,o=n-w.currentMonth;o!=a;o+=i)for(var r=w.daysContainer.children[o],l=n-w.currentMonth===o?e.$i+t:t<0?r.children.length-1:0,c=r.children.length,d=l;d>=0&&d<c&&d!=(t>0?c:-1);d+=i){var s=r.children[d];if(-1===s.className.indexOf("hidden")&&X(s.dateObj)&&Math.abs(e.$i-d)>=Math.abs(t))return L(s)}w.changeMonth(i),R(W(i),0)}(a,t):L(a)}function B(e,t){for(var n=(new Date(e,t,1).getDay()-w.l10n.firstDayOfWeek+7)%7,a=w.utils.getDaysInMonth((t-1+12)%12,e),i=w.utils.getDaysInMonth(t,e),o=window.document.createDocumentFragment(),r=w.config.showMonths>1,l=r?"prevMonthDay hidden":"prevMonthDay",c=r?"nextMonthDay hidden":"nextMonthDay",d=a+1-n,u=0;d<=a;d++,u++)o.appendChild(H(l,new Date(e,t-1,d),d,u));for(d=1;d<=i;d++,u++)o.appendChild(H("",new Date(e,t,d),d,u));for(var f=i+1;f<=42-n&&(1===w.config.showMonths||u%7!=0);f++,u++)o.appendChild(H(c,new Date(e,t+1,f%i),f,u));var m=s("div","dayContainer");return m.appendChild(o),m}function J(){if(void 0!==w.daysContainer){u(w.daysContainer),w.weekNumbers&&u(w.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<w.config.showMonths;t++){var n=new Date(w.currentYear,w.currentMonth,1);n.setMonth(w.currentMonth+t),e.appendChild(B(n.getFullYear(),n.getMonth()))}w.daysContainer.appendChild(e),w.days=w.daysContainer.firstChild,"range"===w.config.mode&&1===w.selectedDates.length&&ae()}}function K(){if(!(w.config.showMonths>1||"dropdown"!==w.config.monthSelectorType)){var e=function(e){return!(void 0!==w.config.minDate&&w.currentYear===w.config.minDate.getFullYear()&&e<w.config.minDate.getMonth())&&!(void 0!==w.config.maxDate&&w.currentYear===w.config.maxDate.getFullYear()&&e>w.config.maxDate.getMonth())};w.monthsDropdownContainer.tabIndex=-1,w.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var n=s("option","flatpickr-monthDropdown-month");n.value=new Date(w.currentYear,t).getMonth().toString(),n.textContent=h(t,w.config.shorthandCurrentMonth,w.l10n),n.tabIndex=-1,w.currentMonth===t&&(n.selected=!0),w.monthsDropdownContainer.appendChild(n)}}}function U(){var e,t=s("div","flatpickr-month"),n=window.document.createDocumentFragment();w.config.showMonths>1||"static"===w.config.monthSelectorType?e=s("span","cur-month"):(w.monthsDropdownContainer=s("select","flatpickr-monthDropdown-months"),w.monthsDropdownContainer.setAttribute("aria-label",w.l10n.monthAriaLabel),A(w.monthsDropdownContainer,"change",(function(e){var t=g(e),n=parseInt(t.value,10);w.changeMonth(n-w.currentMonth),pe("onMonthChange")})),K(),e=w.monthsDropdownContainer);var a=m("cur-year",{tabindex:"-1"}),i=a.getElementsByTagName("input")[0];i.setAttribute("aria-label",w.l10n.yearAriaLabel),w.config.minDate&&i.setAttribute("min",w.config.minDate.getFullYear().toString()),w.config.maxDate&&(i.setAttribute("max",w.config.maxDate.getFullYear().toString()),i.disabled=!!w.config.minDate&&w.config.minDate.getFullYear()===w.config.maxDate.getFullYear());var o=s("div","flatpickr-current-month");return o.appendChild(e),o.appendChild(a),n.appendChild(o),t.appendChild(n),{container:t,yearElement:i,monthElement:e}}function q(){u(w.monthNav),w.monthNav.appendChild(w.prevMonthNav),w.config.showMonths&&(w.yearElements=[],w.monthElements=[]);for(var e=w.config.showMonths;e--;){var t=U();w.yearElements.push(t.yearElement),w.monthElements.push(t.monthElement),w.monthNav.appendChild(t.container)}w.monthNav.appendChild(w.nextMonthNav)}function $(){w.weekdayContainer?u(w.weekdayContainer):w.weekdayContainer=s("div","flatpickr-weekdays");for(var e=w.config.showMonths;e--;){var t=s("div","flatpickr-weekdaycontainer");w.weekdayContainer.appendChild(t)}return z(),w.weekdayContainer}function z(){if(w.weekdayContainer){var e=w.l10n.firstDayOfWeek,n=t(w.l10n.weekdays.shorthand);e>0&&e<n.length&&(n=t(n.splice(e,n.length),n.splice(0,e)));for(var a=w.config.showMonths;a--;)w.weekdayContainer.children[a].innerHTML="\n <span class='flatpickr-weekday'>\n "+n.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function G(e,t){void 0===t&&(t=!0);var n=t?e:e-w.currentMonth;n<0&&!0===w._hidePrevMonthArrow||n>0&&!0===w._hideNextMonthArrow||(w.currentMonth+=n,(w.currentMonth<0||w.currentMonth>11)&&(w.currentYear+=w.currentMonth>11?1:-1,w.currentMonth=(w.currentMonth+12)%12,pe("onYearChange"),K()),J(),pe("onMonthChange"),De())}function V(e){return!(!w.config.appendTo||!w.config.appendTo.contains(e))||w.calendarContainer.contains(e)}function Z(e){if(w.isOpen&&!w.config.inline){var t=g(e),n=V(t),a=t===w.input||t===w.altInput||w.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(w.input)||~e.path.indexOf(w.altInput)),i="blur"===e.type?a&&e.relatedTarget&&!V(e.relatedTarget):!a&&!n&&!V(e.relatedTarget),o=!w.config.ignoredFocusElements.some((function(e){return e.contains(t)}));i&&o&&(void 0!==w.timeContainer&&void 0!==w.minuteElement&&void 0!==w.hourElement&&""!==w.input.value&&void 0!==w.input.value&&I(),w.close(),w.config&&"range"===w.config.mode&&1===w.selectedDates.length&&(w.clear(!1),w.redraw()))}}function Q(e){if(!(!e||w.config.minDate&&e<w.config.minDate.getFullYear()||w.config.maxDate&&e>w.config.maxDate.getFullYear())){var t=e,n=w.currentYear!==t;w.currentYear=t||w.currentYear,w.config.maxDate&&w.currentYear===w.config.maxDate.getFullYear()?w.currentMonth=Math.min(w.config.maxDate.getMonth(),w.currentMonth):w.config.minDate&&w.currentYear===w.config.minDate.getFullYear()&&(w.currentMonth=Math.max(w.config.minDate.getMonth(),w.currentMonth)),n&&(w.redraw(),pe("onYearChange"),K())}}function X(e,t){var n;void 0===t&&(t=!0);var a=w.parseDate(e,void 0,t);if(w.config.minDate&&a&&M(a,w.config.minDate,void 0!==t?t:!w.minDateHasTime)<0||w.config.maxDate&&a&&M(a,w.config.maxDate,void 0!==t?t:!w.maxDateHasTime)>0)return!1;if(!w.config.enable&&0===w.config.disable.length)return!0;if(void 0===a)return!1;for(var i=!!w.config.enable,o=null!==(n=w.config.enable)&&void 0!==n?n:w.config.disable,r=0,l=void 0;r<o.length;r++){if("function"==typeof(l=o[r])&&l(a))return i;if(l instanceof Date&&void 0!==a&&l.getTime()===a.getTime())return i;if("string"==typeof l){var c=w.parseDate(l,void 0,!0);return c&&c.getTime()===a.getTime()?i:!i}if("object"==typeof l&&void 0!==a&&l.from&&l.to&&a.getTime()>=l.from.getTime()&&a.getTime()<=l.to.getTime())return i}return!i}function ee(e){return void 0!==w.daysContainer&&(-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&w.daysContainer.contains(e))}function te(e){!(e.target===w._input)||!(w.selectedDates.length>0||w._input.value.length>0)||e.relatedTarget&&V(e.relatedTarget)||w.setDate(w._input.value,!0,e.target===w.altInput?w.config.altFormat:w.config.dateFormat)}function ne(e){var t=g(e),n=w.config.wrap?p.contains(t):t===w._input,a=w.config.allowInput,i=w.isOpen&&(!a||!n),o=w.config.inline&&n&&!a;if(13===e.keyCode&&n){if(a)return w.setDate(w._input.value,!0,t===w.altInput?w.config.altFormat:w.config.dateFormat),t.blur();w.open()}else if(V(t)||i||o){var r=!!w.timeContainer&&w.timeContainer.contains(t);switch(e.keyCode){case 13:r?(e.preventDefault(),I(),se()):ue(e);break;case 27:e.preventDefault(),se();break;case 8:case 46:n&&!w.config.allowInput&&(e.preventDefault(),w.clear());break;case 37:case 39:if(r||n)w.hourElement&&w.hourElement.focus();else if(e.preventDefault(),void 0!==w.daysContainer&&(!1===a||document.activeElement&&ee(document.activeElement))){var l=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),G(l),R(W(1),0)):R(void 0,l)}break;case 38:case 40:e.preventDefault();var c=40===e.keyCode?1:-1;w.daysContainer&&void 0!==t.$i||t===w.input||t===w.altInput?e.ctrlKey?(e.stopPropagation(),Q(w.currentYear-c),R(W(1),0)):r||R(void 0,7*c):t===w.currentYearElement?Q(w.currentYear-c):w.config.enableTime&&(!r&&w.hourElement&&w.hourElement.focus(),I(e),w._debouncedChange());break;case 9:if(r){var d=[w.hourElement,w.minuteElement,w.secondElement,w.amPM].concat(w.pluginElements).filter((function(e){return e})),s=d.indexOf(t);if(-1!==s){var u=d[s+(e.shiftKey?-1:1)];e.preventDefault(),(u||w._input).focus()}}else!w.config.noCalendar&&w.daysContainer&&w.daysContainer.contains(t)&&e.shiftKey&&(e.preventDefault(),w._input.focus())}}if(void 0!==w.amPM&&t===w.amPM)switch(e.key){case w.l10n.amPM[0].charAt(0):case w.l10n.amPM[0].charAt(0).toLowerCase():w.amPM.textContent=w.l10n.amPM[0],S(),be();break;case w.l10n.amPM[1].charAt(0):case w.l10n.amPM[1].charAt(0).toLowerCase():w.amPM.textContent=w.l10n.amPM[1],S(),be()}(n||V(t))&&pe("onKeyDown",e)}function ae(e){if(1===w.selectedDates.length&&(!e||e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled"))){for(var t=e?e.dateObj.getTime():w.days.firstElementChild.dateObj.getTime(),n=w.parseDate(w.selectedDates[0],void 0,!0).getTime(),a=Math.min(t,w.selectedDates[0].getTime()),i=Math.max(t,w.selectedDates[0].getTime()),o=!1,r=0,l=0,c=a;c<i;c+=y)X(new Date(c),!0)||(o=o||c>a&&c<i,c<n&&(!r||c>r)?r=c:c>n&&(!l||c<l)&&(l=c));for(var d=0;d<w.config.showMonths;d++)for(var s=w.daysContainer.children[d],u=function(a,i){var c,d,u,f=s.children[a],m=f.dateObj.getTime(),g=r>0&&m<r||l>0&&m>l;return g?(f.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach((function(e){f.classList.remove(e)})),"continue"):o&&!g?"continue":(["startRange","inRange","endRange","notAllowed"].forEach((function(e){f.classList.remove(e)})),void(void 0!==e&&(e.classList.add(t<=w.selectedDates[0].getTime()?"startRange":"endRange"),n<t&&m===n?f.classList.add("startRange"):n>t&&m===n&&f.classList.add("endRange"),m>=r&&(0===l||m<=l)&&(d=n,u=t,(c=m)>Math.min(d,u)&&c<Math.max(d,u))&&f.classList.add("inRange"))))},f=0,m=s.children.length;f<m;f++)u(f)}}function ie(){!w.isOpen||w.config.static||w.config.inline||ce()}function oe(e){return function(t){var n=w.config["_"+e+"Date"]=w.parseDate(t,w.config.dateFormat),a=w.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(w["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),w.selectedDates&&(w.selectedDates=w.selectedDates.filter((function(e){return X(e)})),w.selectedDates.length||"min"!==e||_(n),be()),w.daysContainer&&(de(),void 0!==n?w.currentYearElement[e]=n.getFullYear().toString():w.currentYearElement.removeAttribute(e),w.currentYearElement.disabled=!!a&&void 0!==n&&a.getFullYear()===n.getFullYear())}}function re(){return w.config.wrap?p.querySelector("[data-input]"):p}function le(){"object"!=typeof w.config.locale&&void 0===T.l10ns[w.config.locale]&&w.config.errorHandler(new Error("flatpickr: invalid locale "+w.config.locale)),w.l10n=e(e({},T.l10ns.default),"object"==typeof w.config.locale?w.config.locale:"default"!==w.config.locale?T.l10ns[w.config.locale]:void 0),D.K="("+w.l10n.amPM[0]+"|"+w.l10n.amPM[1]+"|"+w.l10n.amPM[0].toLowerCase()+"|"+w.l10n.amPM[1].toLowerCase()+")",void 0===e(e({},v),JSON.parse(JSON.stringify(p.dataset||{}))).time_24hr&&void 0===T.defaultConfig.time_24hr&&(w.config.time_24hr=w.l10n.time_24hr),w.formatDate=b(w),w.parseDate=C({config:w.config,l10n:w.l10n})}function ce(e){if("function"!=typeof w.config.position){if(void 0!==w.calendarContainer){pe("onPreCalendarPosition");var t=e||w._positionElement,n=Array.prototype.reduce.call(w.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),a=w.calendarContainer.offsetWidth,i=w.config.position.split(" "),o=i[0],r=i.length>1?i[1]:null,l=t.getBoundingClientRect(),c=window.innerHeight-l.bottom,s="above"===o||"below"!==o&&c<n&&l.top>n,u=window.pageYOffset+l.top+(s?-n-2:t.offsetHeight+2);if(d(w.calendarContainer,"arrowTop",!s),d(w.calendarContainer,"arrowBottom",s),!w.config.inline){var f=window.pageXOffset+l.left,m=!1,g=!1;"center"===r?(f-=(a-l.width)/2,m=!0):"right"===r&&(f-=a-l.width,g=!0),d(w.calendarContainer,"arrowLeft",!m&&!g),d(w.calendarContainer,"arrowCenter",m),d(w.calendarContainer,"arrowRight",g);var p=window.document.body.offsetWidth-(window.pageXOffset+l.right),h=f+a>window.document.body.offsetWidth,v=p+a>window.document.body.offsetWidth;if(d(w.calendarContainer,"rightMost",h),!w.config.static)if(w.calendarContainer.style.top=u+"px",h)if(v){var D=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];try{n.cssRules}catch(e){continue}e=n;break}return null!=e?e:(a=document.createElement("style"),document.head.appendChild(a),a.sheet);var a}();if(void 0===D)return;var b=window.document.body.offsetWidth,C=Math.max(0,b/2-a/2),M=D.cssRules.length,y="{left:"+l.left+"px;right:auto;}";d(w.calendarContainer,"rightMost",!1),d(w.calendarContainer,"centerMost",!0),D.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+y,M),w.calendarContainer.style.left=C+"px",w.calendarContainer.style.right="auto"}else w.calendarContainer.style.left="auto",w.calendarContainer.style.right=p+"px";else w.calendarContainer.style.left=f+"px",w.calendarContainer.style.right="auto"}}}else w.config.position(w,e)}function de(){w.config.noCalendar||w.isMobile||(K(),De(),J())}function se(){w._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(w.close,0):w.close()}function ue(e){e.preventDefault(),e.stopPropagation();var t=f(g(e),(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==t){var n=t,a=w.latestSelectedDateObj=new Date(n.dateObj.getTime()),i=(a.getMonth()<w.currentMonth||a.getMonth()>w.currentMonth+w.config.showMonths-1)&&"range"!==w.config.mode;if(w.selectedDateElem=n,"single"===w.config.mode)w.selectedDates=[a];else if("multiple"===w.config.mode){var o=ve(a);o?w.selectedDates.splice(parseInt(o),1):w.selectedDates.push(a)}else"range"===w.config.mode&&(2===w.selectedDates.length&&w.clear(!1,!1),w.latestSelectedDateObj=a,w.selectedDates.push(a),0!==M(a,w.selectedDates[0],!0)&&w.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(S(),i){var r=w.currentYear!==a.getFullYear();w.currentYear=a.getFullYear(),w.currentMonth=a.getMonth(),r&&(pe("onYearChange"),K()),pe("onMonthChange")}if(De(),J(),be(),i||"range"===w.config.mode||1!==w.config.showMonths?void 0!==w.selectedDateElem&&void 0===w.hourElement&&w.selectedDateElem&&w.selectedDateElem.focus():L(n),void 0!==w.hourElement&&void 0!==w.hourElement&&w.hourElement.focus(),w.config.closeOnSelect){var l="single"===w.config.mode&&!w.config.enableTime,c="range"===w.config.mode&&2===w.selectedDates.length&&!w.config.enableTime;(l||c)&&se()}N()}}w.parseDate=C({config:w.config,l10n:w.l10n}),w._handlers=[],w.pluginElements=[],w.loadedPlugins=[],w._bind=A,w._setHoursFromDate=_,w._positionCalendar=ce,w.changeMonth=G,w.changeYear=Q,w.clear=function(e,t){void 0===e&&(e=!0);void 0===t&&(t=!0);w.input.value="",void 0!==w.altInput&&(w.altInput.value="");void 0!==w.mobileInput&&(w.mobileInput.value="");w.selectedDates=[],w.latestSelectedDateObj=void 0,!0===t&&(w.currentYear=w._initialDate.getFullYear(),w.currentMonth=w._initialDate.getMonth());if(!0===w.config.enableTime){var n=x(w.config),a=n.hours,i=n.minutes,o=n.seconds;O(a,i,o)}w.redraw(),e&&pe("onChange")},w.close=function(){w.isOpen=!1,w.isMobile||(void 0!==w.calendarContainer&&w.calendarContainer.classList.remove("open"),void 0!==w._input&&w._input.classList.remove("active"));pe("onClose")},w._createElement=s,w.destroy=function(){void 0!==w.config&&pe("onDestroy");for(var e=w._handlers.length;e--;)w._handlers[e].remove();if(w._handlers=[],w.mobileInput)w.mobileInput.parentNode&&w.mobileInput.parentNode.removeChild(w.mobileInput),w.mobileInput=void 0;else if(w.calendarContainer&&w.calendarContainer.parentNode)if(w.config.static&&w.calendarContainer.parentNode){var t=w.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else w.calendarContainer.parentNode.removeChild(w.calendarContainer);w.altInput&&(w.input.type="text",w.altInput.parentNode&&w.altInput.parentNode.removeChild(w.altInput),delete w.altInput);w.input&&(w.input.type=w.input._type,w.input.classList.remove("flatpickr-input"),w.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete w[e]}catch(e){}}))},w.isEnabled=X,w.jumpToDate=P,w.open=function(e,t){void 0===t&&(t=w._positionElement);if(!0===w.isMobile){if(e){e.preventDefault();var n=g(e);n&&n.blur()}return void 0!==w.mobileInput&&(w.mobileInput.focus(),w.mobileInput.click()),void pe("onOpen")}if(w._input.disabled||w.config.inline)return;var a=w.isOpen;w.isOpen=!0,a||(w.calendarContainer.classList.add("open"),w._input.classList.add("active"),pe("onOpen"),ce(t));!0===w.config.enableTime&&!0===w.config.noCalendar&&(!1!==w.config.allowInput||void 0!==e&&w.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return w.hourElement.select()}),50))},w.redraw=de,w.set=function(e,t){if(null!==e&&"object"==typeof e)for(var a in Object.assign(w.config,e),e)void 0!==fe[a]&&fe[a].forEach((function(e){return e()}));else w.config[e]=t,void 0!==fe[e]?fe[e].forEach((function(e){return e()})):n.indexOf(e)>-1&&(w.config[e]=c(t));w.redraw(),be(!0)},w.setDate=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=w.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return w.clear(t);me(e,n),w.latestSelectedDateObj=w.selectedDates[w.selectedDates.length-1],w.redraw(),P(void 0,t),_(),0===w.selectedDates.length&&w.clear(!1);be(t),t&&pe("onChange")},w.toggle=function(e){if(!0===w.isOpen)return w.close();w.open(e)};var fe={locale:[le,z],showMonths:[q,k,$],minDate:[P],maxDate:[P],clickOpens:[function(){!0===w.config.clickOpens?(A(w._input,"focus",w.open),A(w._input,"click",w.open)):(w._input.removeEventListener("focus",w.open),w._input.removeEventListener("click",w.open))}]};function me(e,t){var n=[];if(e instanceof Array)n=e.map((function(e){return w.parseDate(e,t)}));else if(e instanceof Date||"number"==typeof e)n=[w.parseDate(e,t)];else if("string"==typeof e)switch(w.config.mode){case"single":case"time":n=[w.parseDate(e,t)];break;case"multiple":n=e.split(w.config.conjunction).map((function(e){return w.parseDate(e,t)}));break;case"range":n=e.split(w.l10n.rangeSeparator).map((function(e){return w.parseDate(e,t)}))}else w.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));w.selectedDates=w.config.allowInvalidPreload?n:n.filter((function(e){return e instanceof Date&&X(e,!1)})),"range"===w.config.mode&&w.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function ge(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?w.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:w.parseDate(e.from,void 0),to:w.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function pe(e,t){if(void 0!==w.config){var n=w.config[e];if(void 0!==n&&n.length>0)for(var a=0;n[a]&&a<n.length;a++)n[a](w.selectedDates,w.input.value,w,t);"onChange"===e&&(w.input.dispatchEvent(he("change")),w.input.dispatchEvent(he("input")))}}function he(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function ve(e){for(var t=0;t<w.selectedDates.length;t++)if(0===M(w.selectedDates[t],e))return""+t;return!1}function De(){w.config.noCalendar||w.isMobile||!w.monthNav||(w.yearElements.forEach((function(e,t){var n=new Date(w.currentYear,w.currentMonth,1);n.setMonth(w.currentMonth+t),w.config.showMonths>1||"static"===w.config.monthSelectorType?w.monthElements[t].textContent=h(n.getMonth(),w.config.shorthandCurrentMonth,w.l10n)+" ":w.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()})),w._hidePrevMonthArrow=void 0!==w.config.minDate&&(w.currentYear===w.config.minDate.getFullYear()?w.currentMonth<=w.config.minDate.getMonth():w.currentYear<w.config.minDate.getFullYear()),w._hideNextMonthArrow=void 0!==w.config.maxDate&&(w.currentYear===w.config.maxDate.getFullYear()?w.currentMonth+1>w.config.maxDate.getMonth():w.currentYear>w.config.maxDate.getFullYear()))}function we(e){return w.selectedDates.map((function(t){return w.formatDate(t,e)})).filter((function(e,t,n){return"range"!==w.config.mode||w.config.enableTime||n.indexOf(e)===t})).join("range"!==w.config.mode?w.config.conjunction:w.l10n.rangeSeparator)}function be(e){void 0===e&&(e=!0),void 0!==w.mobileInput&&w.mobileFormatStr&&(w.mobileInput.value=void 0!==w.latestSelectedDateObj?w.formatDate(w.latestSelectedDateObj,w.mobileFormatStr):""),w.input.value=we(w.config.dateFormat),void 0!==w.altInput&&(w.altInput.value=we(w.config.altFormat)),!1!==e&&pe("onValueUpdate")}function Ce(e){var t=g(e),n=w.prevMonthNav.contains(t),a=w.nextMonthNav.contains(t);n||a?G(n?-1:1):w.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?w.changeYear(w.currentYear+1):t.classList.contains("arrowDown")&&w.changeYear(w.currentYear-1)}return function(){w.element=w.input=p,w.isOpen=!1,function(){var t=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],i=e(e({},JSON.parse(JSON.stringify(p.dataset||{}))),v),o={};w.config.parseDate=i.parseDate,w.config.formatDate=i.formatDate,Object.defineProperty(w.config,"enable",{get:function(){return w.config._enable},set:function(e){w.config._enable=ge(e)}}),Object.defineProperty(w.config,"disable",{get:function(){return w.config._disable},set:function(e){w.config._disable=ge(e)}});var r="time"===i.mode;if(!i.dateFormat&&(i.enableTime||r)){var l=T.defaultConfig.dateFormat||a.dateFormat;o.dateFormat=i.noCalendar||r?"H:i"+(i.enableSeconds?":S":""):l+" H:i"+(i.enableSeconds?":S":"")}if(i.altInput&&(i.enableTime||r)&&!i.altFormat){var d=T.defaultConfig.altFormat||a.altFormat;o.altFormat=i.noCalendar||r?"h:i"+(i.enableSeconds?":S K":" K"):d+" h:i"+(i.enableSeconds?":S":"")+" K"}Object.defineProperty(w.config,"minDate",{get:function(){return w.config._minDate},set:oe("min")}),Object.defineProperty(w.config,"maxDate",{get:function(){return w.config._maxDate},set:oe("max")});var s=function(e){return function(t){w.config["min"===e?"_minTime":"_maxTime"]=w.parseDate(t,"H:i:S")}};Object.defineProperty(w.config,"minTime",{get:function(){return w.config._minTime},set:s("min")}),Object.defineProperty(w.config,"maxTime",{get:function(){return w.config._maxTime},set:s("max")}),"time"===i.mode&&(w.config.noCalendar=!0,w.config.enableTime=!0);Object.assign(w.config,o,i);for(var u=0;u<t.length;u++)w.config[t[u]]=!0===w.config[t[u]]||"true"===w.config[t[u]];n.filter((function(e){return void 0!==w.config[e]})).forEach((function(e){w.config[e]=c(w.config[e]||[]).map(E)})),w.isMobile=!w.config.disableMobile&&!w.config.inline&&"single"===w.config.mode&&!w.config.disable.length&&!w.config.enable&&!w.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(u=0;u<w.config.plugins.length;u++){var f=w.config.plugins[u](w)||{};for(var m in f)n.indexOf(m)>-1?w.config[m]=c(f[m]).map(E).concat(w.config[m]):void 0===i[m]&&(w.config[m]=f[m])}i.altInputClass||(w.config.altInputClass=re().className+" "+w.config.altInputClass);pe("onParseConfig")}(),le(),function(){if(w.input=re(),!w.input)return void w.config.errorHandler(new Error("Invalid input element specified"));w.input._type=w.input.type,w.input.type="text",w.input.classList.add("flatpickr-input"),w._input=w.input,w.config.altInput&&(w.altInput=s(w.input.nodeName,w.config.altInputClass),w._input=w.altInput,w.altInput.placeholder=w.input.placeholder,w.altInput.disabled=w.input.disabled,w.altInput.required=w.input.required,w.altInput.tabIndex=w.input.tabIndex,w.altInput.type="text",w.input.setAttribute("type","hidden"),!w.config.static&&w.input.parentNode&&w.input.parentNode.insertBefore(w.altInput,w.input.nextSibling));w.config.allowInput||w._input.setAttribute("readonly","readonly");w._positionElement=w.config.positionElement||w._input}(),function(){w.selectedDates=[],w.now=w.parseDate(w.config.now)||new Date;var e=w.config.defaultDate||("INPUT"!==w.input.nodeName&&"TEXTAREA"!==w.input.nodeName||!w.input.placeholder||w.input.value!==w.input.placeholder?w.input.value:null);e&&me(e,w.config.dateFormat);w._initialDate=w.selectedDates.length>0?w.selectedDates[0]:w.config.minDate&&w.config.minDate.getTime()>w.now.getTime()?w.config.minDate:w.config.maxDate&&w.config.maxDate.getTime()<w.now.getTime()?w.config.maxDate:w.now,w.currentYear=w._initialDate.getFullYear(),w.currentMonth=w._initialDate.getMonth(),w.selectedDates.length>0&&(w.latestSelectedDateObj=w.selectedDates[0]);void 0!==w.config.minTime&&(w.config.minTime=w.parseDate(w.config.minTime,"H:i"));void 0!==w.config.maxTime&&(w.config.maxTime=w.parseDate(w.config.maxTime,"H:i"));w.minDateHasTime=!!w.config.minDate&&(w.config.minDate.getHours()>0||w.config.minDate.getMinutes()>0||w.config.minDate.getSeconds()>0),w.maxDateHasTime=!!w.config.maxDate&&(w.config.maxDate.getHours()>0||w.config.maxDate.getMinutes()>0||w.config.maxDate.getSeconds()>0)}(),w.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=w.currentMonth),void 0===t&&(t=w.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:w.l10n.daysInMonth[e]}},w.isMobile||function(){var e=window.document.createDocumentFragment();if(w.calendarContainer=s("div","flatpickr-calendar"),w.calendarContainer.tabIndex=-1,!w.config.noCalendar){if(e.appendChild((w.monthNav=s("div","flatpickr-months"),w.yearElements=[],w.monthElements=[],w.prevMonthNav=s("span","flatpickr-prev-month"),w.prevMonthNav.innerHTML=w.config.prevArrow,w.nextMonthNav=s("span","flatpickr-next-month"),w.nextMonthNav.innerHTML=w.config.nextArrow,q(),Object.defineProperty(w,"_hidePrevMonthArrow",{get:function(){return w.__hidePrevMonthArrow},set:function(e){w.__hidePrevMonthArrow!==e&&(d(w.prevMonthNav,"flatpickr-disabled",e),w.__hidePrevMonthArrow=e)}}),Object.defineProperty(w,"_hideNextMonthArrow",{get:function(){return w.__hideNextMonthArrow},set:function(e){w.__hideNextMonthArrow!==e&&(d(w.nextMonthNav,"flatpickr-disabled",e),w.__hideNextMonthArrow=e)}}),w.currentYearElement=w.yearElements[0],De(),w.monthNav)),w.innerContainer=s("div","flatpickr-innerContainer"),w.config.weekNumbers){var t=function(){w.calendarContainer.classList.add("hasWeeks");var e=s("div","flatpickr-weekwrapper");e.appendChild(s("span","flatpickr-weekday",w.l10n.weekAbbreviation));var t=s("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,a=t.weekNumbers;w.innerContainer.appendChild(n),w.weekNumbers=a,w.weekWrapper=n}w.rContainer=s("div","flatpickr-rContainer"),w.rContainer.appendChild($()),w.daysContainer||(w.daysContainer=s("div","flatpickr-days"),w.daysContainer.tabIndex=-1),J(),w.rContainer.appendChild(w.daysContainer),w.innerContainer.appendChild(w.rContainer),e.appendChild(w.innerContainer)}w.config.enableTime&&e.appendChild(function(){w.calendarContainer.classList.add("hasTime"),w.config.noCalendar&&w.calendarContainer.classList.add("noCalendar");var e=x(w.config);w.timeContainer=s("div","flatpickr-time"),w.timeContainer.tabIndex=-1;var t=s("span","flatpickr-time-separator",":"),n=m("flatpickr-hour",{"aria-label":w.l10n.hourAriaLabel});w.hourElement=n.getElementsByTagName("input")[0];var a=m("flatpickr-minute",{"aria-label":w.l10n.minuteAriaLabel});w.minuteElement=a.getElementsByTagName("input")[0],w.hourElement.tabIndex=w.minuteElement.tabIndex=-1,w.hourElement.value=o(w.latestSelectedDateObj?w.latestSelectedDateObj.getHours():w.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),w.minuteElement.value=o(w.latestSelectedDateObj?w.latestSelectedDateObj.getMinutes():e.minutes),w.hourElement.setAttribute("step",w.config.hourIncrement.toString()),w.minuteElement.setAttribute("step",w.config.minuteIncrement.toString()),w.hourElement.setAttribute("min",w.config.time_24hr?"0":"1"),w.hourElement.setAttribute("max",w.config.time_24hr?"23":"12"),w.hourElement.setAttribute("maxlength","2"),w.minuteElement.setAttribute("min","0"),w.minuteElement.setAttribute("max","59"),w.minuteElement.setAttribute("maxlength","2"),w.timeContainer.appendChild(n),w.timeContainer.appendChild(t),w.timeContainer.appendChild(a),w.config.time_24hr&&w.timeContainer.classList.add("time24hr");if(w.config.enableSeconds){w.timeContainer.classList.add("hasSeconds");var i=m("flatpickr-second");w.secondElement=i.getElementsByTagName("input")[0],w.secondElement.value=o(w.latestSelectedDateObj?w.latestSelectedDateObj.getSeconds():e.seconds),w.secondElement.setAttribute("step",w.minuteElement.getAttribute("step")),w.secondElement.setAttribute("min","0"),w.secondElement.setAttribute("max","59"),w.secondElement.setAttribute("maxlength","2"),w.timeContainer.appendChild(s("span","flatpickr-time-separator",":")),w.timeContainer.appendChild(i)}w.config.time_24hr||(w.amPM=s("span","flatpickr-am-pm",w.l10n.amPM[r((w.latestSelectedDateObj?w.hourElement.value:w.config.defaultHour)>11)]),w.amPM.title=w.l10n.toggleTitle,w.amPM.tabIndex=-1,w.timeContainer.appendChild(w.amPM));return w.timeContainer}());d(w.calendarContainer,"rangeMode","range"===w.config.mode),d(w.calendarContainer,"animate",!0===w.config.animate),d(w.calendarContainer,"multiMonth",w.config.showMonths>1),w.calendarContainer.appendChild(e);var i=void 0!==w.config.appendTo&&void 0!==w.config.appendTo.nodeType;if((w.config.inline||w.config.static)&&(w.calendarContainer.classList.add(w.config.inline?"inline":"static"),w.config.inline&&(!i&&w.element.parentNode?w.element.parentNode.insertBefore(w.calendarContainer,w._input.nextSibling):void 0!==w.config.appendTo&&w.config.appendTo.appendChild(w.calendarContainer)),w.config.static)){var l=s("div","flatpickr-wrapper");w.element.parentNode&&w.element.parentNode.insertBefore(l,w.element),l.appendChild(w.element),w.altInput&&l.appendChild(w.altInput),l.appendChild(w.calendarContainer)}w.config.static||w.config.inline||(void 0!==w.config.appendTo?w.config.appendTo:window.document.body).appendChild(w.calendarContainer)}(),function(){w.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(w.element.querySelectorAll("[data-"+e+"]"),(function(t){return A(t,"click",w[e])}))}));if(w.isMobile)return void function(){var e=w.config.enableTime?w.config.noCalendar?"time":"datetime-local":"date";w.mobileInput=s("input",w.input.className+" flatpickr-mobile"),w.mobileInput.tabIndex=1,w.mobileInput.type=e,w.mobileInput.disabled=w.input.disabled,w.mobileInput.required=w.input.required,w.mobileInput.placeholder=w.input.placeholder,w.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",w.selectedDates.length>0&&(w.mobileInput.defaultValue=w.mobileInput.value=w.formatDate(w.selectedDates[0],w.mobileFormatStr));w.config.minDate&&(w.mobileInput.min=w.formatDate(w.config.minDate,"Y-m-d"));w.config.maxDate&&(w.mobileInput.max=w.formatDate(w.config.maxDate,"Y-m-d"));w.input.getAttribute("step")&&(w.mobileInput.step=String(w.input.getAttribute("step")));w.input.type="hidden",void 0!==w.altInput&&(w.altInput.type="hidden");try{w.input.parentNode&&w.input.parentNode.insertBefore(w.mobileInput,w.input.nextSibling)}catch(e){}A(w.mobileInput,"change",(function(e){w.setDate(g(e).value,!1,w.mobileFormatStr),pe("onChange"),pe("onClose")}))}();var e=l(ie,50);w._debouncedChange=l(N,300),w.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&A(w.daysContainer,"mouseover",(function(e){"range"===w.config.mode&&ae(g(e))}));A(window.document.body,"keydown",ne),w.config.inline||w.config.static||A(window,"resize",e);void 0!==window.ontouchstart?A(window.document,"touchstart",Z):A(window.document,"mousedown",Z);A(window.document,"focus",Z,{capture:!0}),!0===w.config.clickOpens&&(A(w._input,"focus",w.open),A(w._input,"click",w.open));void 0!==w.daysContainer&&(A(w.monthNav,"click",Ce),A(w.monthNav,["keyup","increment"],F),A(w.daysContainer,"click",ue));if(void 0!==w.timeContainer&&void 0!==w.minuteElement&&void 0!==w.hourElement){var t=function(e){return g(e).select()};A(w.timeContainer,["increment"],I),A(w.timeContainer,"blur",I,{capture:!0}),A(w.timeContainer,"click",Y),A([w.hourElement,w.minuteElement],["focus","click"],t),void 0!==w.secondElement&&A(w.secondElement,"focus",(function(){return w.secondElement&&w.secondElement.select()})),void 0!==w.amPM&&A(w.amPM,"click",(function(e){I(e),N()}))}w.config.allowInput&&A(w._input,"blur",te)}(),(w.selectedDates.length||w.config.noCalendar)&&(w.config.enableTime&&_(w.config.noCalendar?w.latestSelectedDateObj:void 0),be(!1)),k();var t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!w.isMobile&&t&&ce(),pe("onReady")}(),w}function k(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),a=[],i=0;i<n.length;i++){var o=n[i];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=E(o,t||{}),a.push(o._flatpickr)}catch(e){console.error(e)}}return 1===a.length?a[0]:a}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return k(this,e)},HTMLElement.prototype.flatpickr=function(e){return k([this],e)});var T=function(e,t){return"string"==typeof e?k(window.document.querySelectorAll(e),t):e instanceof Node?k([e],t):k(e,t)};return T.defaultConfig={},T.l10ns={en:e({},i),default:e({},i)},T.localize=function(t){T.l10ns.default=e(e({},T.l10ns.default),t)},T.setDefaults=function(t){T.defaultConfig=e(e({},T.defaultConfig),t)},T.parseDate=C({}),T.formatDate=b({}),T.compareDates=M,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return k(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=T),T}));
changelog.txt CHANGED
@@ -1,5 +1,10 @@
1
  == Changelog ==
2
 
 
 
 
 
 
3
  = 3.2.2 =
4
  * Added a new admin page header.
5
  * Add redirect_to query parameter when Global Access redirects to a login page.
1
  == Changelog ==
2
 
3
+ = 3.2.3 =
4
+ * Fixed bug where custom content protection message wasn't properly formatted.
5
+ * Escaped html attributes in html response returned on ajax form request.
6
+ * Removed display-name as title for user profile in member directory.
7
+
8
  = 3.2.2 =
9
  * Added a new admin page header.
10
  * Add redirect_to query parameter when Global Access redirects to a login page.
languages/wp-user-avatar.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the ProfilePress package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: ProfilePress 3.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-user-avatar\n"
7
- "POT-Creation-Date: 2021-11-01 15:05:50+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -348,7 +348,7 @@ msgstr ""
348
  #: deprecated/wp-user-avatar/includes/wpua-functions.php:78
349
  #: deprecated/wp-user-avatar/includes/wpua-functions.php:131
350
  #: src/Classes/ImageUploader.php:49
351
- #: src/ShortcodeParser/MyAccount/MyAccountTag.php:496
352
  msgid "Profile Picture"
353
  msgstr ""
354
 
@@ -470,9 +470,9 @@ msgstr ""
470
  #: src/Admin/SettingsPages/DragDropBuilder/Metabox.php:162
471
  #: src/Admin/SettingsPages/DragDropBuilder/Metabox.php:223
472
  #: src/Admin/SettingsPages/GeneralSettings.php:293
473
- #: src/Functions/GlobalFunctions.php:1240
474
- #: src/Functions/GlobalFunctions.php:1268
475
- #: src/Functions/GlobalFunctions.php:1290
476
  msgid "Select..."
477
  msgstr ""
478
 
@@ -520,7 +520,7 @@ msgid ""
520
  msgstr ""
521
 
522
  #: src/Admin/SettingsPages/AddNewForm.php:85
523
- #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:120
524
  msgid "Upgrade to Premium"
525
  msgstr ""
526
 
@@ -548,7 +548,7 @@ msgid "Select Icon"
548
  msgstr ""
549
 
550
  #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1202
551
- #: src/Functions/GlobalFunctions.php:1293
552
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:202
553
  msgid "Standard Fields"
554
  msgstr ""
@@ -558,7 +558,7 @@ msgid "Extra Fields"
558
  msgstr ""
559
 
560
  #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1205
561
- #: src/Classes/ExtensionManager.php:53 src/Functions/GlobalFunctions.php:1296
562
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:216
563
  msgid "Custom Fields"
564
  msgstr ""
@@ -585,7 +585,7 @@ msgstr ""
585
  #: src/AdminBarDashboardAccess/include.settings-page.php:54
586
  #: src/AdminBarDashboardAccess/include.settings-page.php:109
587
  #: src/Functions/custom-settings-api.php:1078
588
- #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:1018
589
  msgid "Save Changes"
590
  msgstr ""
591
 
@@ -747,7 +747,7 @@ msgstr ""
747
 
748
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Bio.php:22
749
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/Bio.php:22
750
- #: src/Functions/GlobalFunctions.php:1280
751
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:211
752
  #: src/Themes/DragDrop/AbstractTheme.php:189
753
  msgid "Biography"
@@ -785,7 +785,7 @@ msgstr ""
785
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Country.php:47
786
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/CoverImage.php:31
787
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Date.php:71
788
- #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Agreeable.php:51
789
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Checkbox.php:65
790
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Date.php:57
791
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Input.php:58
@@ -814,7 +814,7 @@ msgstr ""
814
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Country.php:48
815
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/CoverImage.php:32
816
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Date.php:72
817
- #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Agreeable.php:52
818
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Checkbox.php:66
819
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Date.php:58
820
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Input.php:59
@@ -845,7 +845,7 @@ msgstr ""
845
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Country.php:54
846
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/CoverImage.php:38
847
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Date.php:78
848
- #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Agreeable.php:58
849
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Checkbox.php:57
850
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Date.php:64
851
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Input.php:65
@@ -886,7 +886,7 @@ msgstr ""
886
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Country.php:56
887
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/CoverImage.php:40
888
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Date.php:80
889
- #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Agreeable.php:60
890
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Checkbox.php:59
891
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Date.php:66
892
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Input.php:67
@@ -996,9 +996,21 @@ msgid ""
996
  "Select a date and time format that users will be able to choose a date in."
997
  msgstr ""
998
 
 
 
 
 
 
 
 
 
 
 
 
 
999
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DisplayName.php:22
1000
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/DisplayName.php:22
1001
- #: src/Functions/GlobalFunctions.php:1278
1002
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:318
1003
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:208
1004
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:460
@@ -1023,7 +1035,7 @@ msgstr ""
1023
 
1024
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Email.php:22
1025
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/Email.php:22
1026
- #: src/Functions/GlobalFunctions.php:1279
1027
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:210
1028
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:206
1029
  #: src/Themes/DragDrop/AbstractTheme.php:162
@@ -1033,7 +1045,7 @@ msgstr ""
1033
 
1034
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/FirstName.php:22
1035
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/FirstName.php:22
1036
- #: src/Functions/GlobalFunctions.php:1275
1037
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:350
1038
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:209
1039
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:461
@@ -1053,7 +1065,7 @@ msgstr ""
1053
 
1054
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/LastName.php:22
1055
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/LastName.php:22
1056
- #: src/Functions/GlobalFunctions.php:1276
1057
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:383
1058
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:210
1059
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:462
@@ -1086,7 +1098,7 @@ msgstr ""
1086
 
1087
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Nickname.php:22
1088
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/Nickname.php:22
1089
- #: src/Functions/GlobalFunctions.php:1277
1090
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:286
1091
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:300
1092
  #: src/ShortcodeParser/MyAccount/edit-profile.tmpl.php:138
@@ -1242,7 +1254,7 @@ msgstr ""
1242
 
1243
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/Username.php:22
1244
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Username.php:22
1245
- #: src/Functions/GlobalFunctions.php:1274
1246
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:135
1247
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:463
1248
  #: src/Themes/DragDrop/AbstractTheme.php:159
@@ -1419,220 +1431,220 @@ msgid "Footer Text"
1419
  msgstr ""
1420
 
1421
  #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:28
1422
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:134
1423
  #: src/Admin/SettingsPages/GeneralSettings.php:58
1424
  msgid "Emails"
1425
  msgstr ""
1426
 
1427
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:70
1428
  msgid "Account Welcome Email"
1429
  msgstr ""
1430
 
1431
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:71
1432
  #: src/Classes/WelcomeEmailAfterSignup.php:51
1433
  msgid "Welcome To %s"
1434
  msgstr ""
1435
 
1436
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:73
1437
  msgid "Email that is sent to the user upon successful registration."
1438
  msgstr ""
1439
 
1440
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:74
1441
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:92
1442
  msgid "Users"
1443
  msgstr ""
1444
 
1445
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:76
1446
  msgid "Username of the registered user."
1447
  msgstr ""
1448
 
1449
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:77
1450
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:95
1451
  msgid "Email address of the registered user."
1452
  msgstr ""
1453
 
1454
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:78
1455
  msgid "Password of the registered user."
1456
  msgstr ""
1457
 
1458
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:79
1459
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:96
1460
  msgid "Website title or name."
1461
  msgstr ""
1462
 
1463
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:80
1464
  msgid "First Name entered by user on registration."
1465
  msgstr ""
1466
 
1467
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:81
1468
  msgid "Last Name entered by user on registration."
1469
  msgstr ""
1470
 
1471
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:82
1472
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:97
1473
  msgid "URL to reset password."
1474
  msgstr ""
1475
 
1476
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:83
1477
  msgid "URL to login.."
1478
  msgstr ""
1479
 
1480
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:88
1481
  msgid "Password Reset Email"
1482
  msgstr ""
1483
 
1484
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:89
1485
  #: src/Classes/PasswordReset.php:24 src/RegisterActivation/Base.php:85
1486
  msgid "[%s] Password Reset"
1487
  msgstr ""
1488
 
1489
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:91
1490
  msgid "Email that is sent to the user upon password reset request."
1491
  msgstr ""
1492
 
1493
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:94
1494
  msgid "Username of user."
1495
  msgstr ""
1496
 
1497
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:102
1498
  msgid "New User Admin Notification"
1499
  msgstr ""
1500
 
1501
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:103
1502
- #: src/Functions/GlobalFunctions.php:726 src/RegisterActivation/Base.php:89
1503
  msgid "[%s] New User Registration"
1504
  msgstr ""
1505
 
1506
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:105
1507
  msgid "Email that is sent to admins when there is a new user registration"
1508
  msgstr ""
1509
 
1510
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:106
1511
  msgid "Administrators"
1512
  msgstr ""
1513
 
1514
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:108
1515
  msgid "Username of the newly registered user."
1516
  msgstr ""
1517
 
1518
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:109
1519
  msgid "Email address of the newly registered user."
1520
  msgstr ""
1521
 
1522
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:110
1523
  msgid "First name of the newly registered user."
1524
  msgstr ""
1525
 
1526
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:111
1527
  msgid "Last name of the newly registered user."
1528
  msgstr ""
1529
 
1530
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:112
1531
  msgid "Website name or name."
1532
  msgstr ""
1533
 
1534
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:114
1535
  msgid "Replace \"field_key\" with the %scustom field key%s or usermeta key."
1536
  msgstr ""
1537
 
1538
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:139
1539
  msgid "Admin Email Address(es)"
1540
  msgstr ""
1541
 
1542
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:140
1543
  msgid ""
1544
  "The Email address to receive admin notifications. Use comma to separate "
1545
  "multiple email addresses."
1546
  msgstr ""
1547
 
1548
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:145
1549
  msgid "Sender Name"
1550
  msgstr ""
1551
 
1552
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:146
1553
  msgid ""
1554
  "The name to use as the sender of all ProfilePress emails. Preferably your "
1555
  "website name."
1556
  msgstr ""
1557
 
1558
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:152
1559
  msgid "Sender Email Address"
1560
  msgstr ""
1561
 
1562
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:153
1563
  msgid "The email address to use as the sender of all ProfilePress emails."
1564
  msgstr ""
1565
 
1566
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:159
1567
  msgid "HTML"
1568
  msgstr ""
1569
 
1570
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:160
1571
  msgid "Plain Text"
1572
  msgstr ""
1573
 
1574
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:163
1575
  msgid "Content Type"
1576
  msgstr ""
1577
 
1578
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:164
1579
  msgid ""
1580
  "Choose whether to send ProfilePress emails in HTML or plain text. HTML is "
1581
  "recommended."
1582
  msgstr ""
1583
 
1584
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:169
1585
  msgid "Default Template"
1586
  msgstr ""
1587
 
1588
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:170
1589
  msgid "Custom Email Template"
1590
  msgstr ""
1591
 
1592
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:173
1593
  msgid "Email Template"
1594
  msgstr ""
1595
 
1596
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:174
1597
  msgid ""
1598
  "Choose \"Custom Email Template\" if you want to code your own email template "
1599
  "from scratch."
1600
  msgstr ""
1601
 
1602
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:181
1603
  msgid "Customize Default Template"
1604
  msgstr ""
1605
 
1606
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:224
1607
  msgid "Preview Email"
1608
  msgstr ""
1609
 
1610
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:245
1611
  msgid "Enable Notification"
1612
  msgstr ""
1613
 
1614
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:246
1615
  #: src/Admin/SettingsPages/GeneralSettings.php:371
1616
  msgid "Enable"
1617
  msgstr ""
1618
 
1619
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:249
1620
  msgid "Check to enable this email notification."
1621
  msgstr ""
1622
 
1623
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:254
1624
  msgid "Subject Line"
1625
  msgstr ""
1626
 
1627
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:255
1628
  msgid "Enter the subject or title for the welcome message email."
1629
  msgstr ""
1630
 
1631
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:260
1632
  msgid "Message Body"
1633
  msgstr ""
1634
 
1635
- #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:303
1636
  msgid "Available placeholders for subject and message body"
1637
  msgstr ""
1638
 
@@ -1649,47 +1661,47 @@ msgstr ""
1649
  msgid "Recipient"
1650
  msgstr ""
1651
 
1652
- #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:37
1653
- #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:49
1654
  msgid "Addons"
1655
  msgstr ""
1656
 
1657
- #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:85
1658
  msgid "Activate All"
1659
  msgstr ""
1660
 
1661
- #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:88
1662
  msgid "Deactivate All"
1663
  msgstr ""
1664
 
1665
- #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:98
1666
  msgid ""
1667
  "Upgrade to Premium to unlock extensions and other great features. As a "
1668
  "valued ProfilePress Lite user, you will %1$sreceive 10%3$s off%2$s your "
1669
  "purchase, automatically applied at checkout!"
1670
  msgstr ""
1671
 
1672
- #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:104
1673
  msgid "Upgrade Now"
1674
  msgstr ""
1675
 
1676
- #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:120
1677
  msgid "Upgrade Plan"
1678
  msgstr ""
1679
 
1680
- #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:135
1681
  msgid "Learn More"
1682
  msgstr ""
1683
 
1684
- #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:146
1685
  msgid "Unavailable: %s"
1686
  msgstr ""
1687
 
1688
- #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:151
1689
  msgid "Activated"
1690
  msgstr ""
1691
 
1692
- #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:151
1693
  msgid "Deactivated"
1694
  msgstr ""
1695
 
@@ -3128,16 +3140,16 @@ msgstr ""
3128
  msgid "Protection Rules"
3129
  msgstr ""
3130
 
3131
- #: src/ContentProtection/SettingsPage.php:122
3132
  msgid "Title cannot be empty."
3133
  msgstr ""
3134
 
3135
- #: src/ContentProtection/SettingsPage.php:156
3136
  #: src/Themes/DragDrop/AbstractTheme.php:114
3137
  msgid "Changes saved."
3138
  msgstr ""
3139
 
3140
- #: src/ContentProtection/SettingsPage.php:177
3141
  msgid "Add a Protection Rule"
3142
  msgstr ""
3143
 
@@ -3253,59 +3265,59 @@ msgid "Redirect URL"
3253
  msgstr ""
3254
 
3255
  #. translators: %s: User login.
3256
- #: src/Functions/GlobalFunctions.php:796
3257
  msgid "Username: %s"
3258
  msgstr ""
3259
 
3260
- #: src/Functions/GlobalFunctions.php:797
3261
  msgid "To set your password, visit the following address:"
3262
  msgstr ""
3263
 
3264
  #. translators: Login details notification email subject. %s: Site title.
3265
- #: src/Functions/GlobalFunctions.php:805
3266
  msgid "[%s] Login Details"
3267
  msgstr ""
3268
 
3269
- #: src/Functions/GlobalFunctions.php:1103
3270
  msgid ""
3271
  "It must be unique for each field, not a reserve text, in lowercase letters "
3272
  "only with an underscore ( _ ) separating words e.g job_title"
3273
  msgstr ""
3274
 
3275
- #: src/Functions/GlobalFunctions.php:1224
3276
  msgid "%s (WooCommerce Billing Address)"
3277
  msgstr ""
3278
 
3279
- #: src/Functions/GlobalFunctions.php:1228
3280
  msgid "%s (WooCommerce Shipping Address)"
3281
  msgstr ""
3282
 
3283
- #: src/Functions/GlobalFunctions.php:1272
3284
  msgid "First and Last Names"
3285
  msgstr ""
3286
 
3287
- #: src/Functions/GlobalFunctions.php:1273
3288
  msgid "Last and First Names"
3289
  msgstr ""
3290
 
3291
- #: src/Functions/GlobalFunctions.php:1281
3292
  msgid "Registration Date"
3293
  msgstr ""
3294
 
3295
- #: src/Functions/GlobalFunctions.php:1398
3296
  msgid "There was an problem while verifying your file."
3297
  msgstr ""
3298
 
3299
- #: src/Functions/GlobalFunctions.php:1403
3300
  msgid "Sorry, this file extension is not permitted for security reasons."
3301
  msgstr ""
3302
 
3303
- #: src/Functions/GlobalFunctions.php:1407
3304
  msgid "Sorry, this file type is not permitted for security reasons."
3305
  msgstr ""
3306
 
3307
- #: src/Functions/GlobalFunctions.php:1411
3308
- #: src/Functions/GlobalFunctions.php:1415
3309
  msgid "Error: The file you uploaded is not accepted on our website."
3310
  msgstr ""
3311
 
@@ -4337,7 +4349,7 @@ msgid "Log Out"
4337
  msgstr ""
4338
 
4339
  #: src/NavigationMenuLinks/Backend.php:31 src/RegisterActivation/Base.php:159
4340
- #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:1015
4341
  #: src/ShortcodeParser/Builder/GlobalShortcodes.php:174
4342
  #: src/Widgets/TabbedWidget.php:90
4343
  msgid "Sign Up"
@@ -4477,13 +4489,13 @@ msgstr ""
4477
 
4478
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:490
4479
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:547
4480
- #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:608
4481
- #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:665
4482
- #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:691
4483
- #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:758
4484
- #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:814
4485
- #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:873
4486
- #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:922
4487
  #: src/ShortcodeParser/Builder/FrontendProfileBuilder.php:346
4488
  msgid "Field key is missing"
4489
  msgstr ""
@@ -4492,27 +4504,27 @@ msgstr ""
4492
  msgid "Select country"
4493
  msgstr ""
4494
 
4495
- #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:695
4496
  msgid "No dropdown option found."
4497
  msgstr ""
4498
 
4499
- #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:764
4500
  msgid "No radio choice found."
4501
  msgstr ""
4502
 
4503
- #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:819
4504
  msgid "No checkbox choice found."
4505
  msgstr ""
4506
 
4507
- #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:930
4508
  msgid "custom field not defined"
4509
  msgstr ""
4510
 
4511
- #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:1084
4512
  msgid "Delete Avatar"
4513
  msgstr ""
4514
 
4515
- #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:1120
4516
  msgid "Delete Cover Photo"
4517
  msgstr ""
4518
 
@@ -4615,7 +4627,7 @@ msgstr ""
4615
  msgid "Email Notifications"
4616
  msgstr ""
4617
 
4618
- #: src/ShortcodeParser/MyAccount/MyAccountTag.php:495
4619
  msgid "Cover Photo (min. width: 1000px)"
4620
  msgstr ""
4621
 
@@ -5059,7 +5071,7 @@ msgid "Fields to show in sorting dropdown menu"
5059
  msgstr ""
5060
 
5061
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:244
5062
- #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:834
5063
  msgid "Search"
5064
  msgstr ""
5065
 
@@ -5496,9 +5508,9 @@ msgstr ""
5496
  msgid "ProfilePress"
5497
  msgstr ""
5498
 
5499
- #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.2.2) #-#-#-#-#
5500
  #. Plugin URI of the plugin/theme
5501
- #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.2.2) #-#-#-#-#
5502
  #. Author URI of the plugin/theme
5503
  msgid "https://profilepress.net"
5504
  msgstr ""
2
  # This file is distributed under the same license as the ProfilePress package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: ProfilePress 3.2.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-user-avatar\n"
7
+ "POT-Creation-Date: 2021-11-08 19:20:49+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
348
  #: deprecated/wp-user-avatar/includes/wpua-functions.php:78
349
  #: deprecated/wp-user-avatar/includes/wpua-functions.php:131
350
  #: src/Classes/ImageUploader.php:49
351
+ #: src/ShortcodeParser/MyAccount/MyAccountTag.php:498
352
  msgid "Profile Picture"
353
  msgstr ""
354
 
470
  #: src/Admin/SettingsPages/DragDropBuilder/Metabox.php:162
471
  #: src/Admin/SettingsPages/DragDropBuilder/Metabox.php:223
472
  #: src/Admin/SettingsPages/GeneralSettings.php:293
473
+ #: src/Functions/GlobalFunctions.php:1241
474
+ #: src/Functions/GlobalFunctions.php:1269
475
+ #: src/Functions/GlobalFunctions.php:1291
476
  msgid "Select..."
477
  msgstr ""
478
 
520
  msgstr ""
521
 
522
  #: src/Admin/SettingsPages/AddNewForm.php:85
523
+ #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:122
524
  msgid "Upgrade to Premium"
525
  msgstr ""
526
 
548
  msgstr ""
549
 
550
  #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1202
551
+ #: src/Functions/GlobalFunctions.php:1294
552
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:202
553
  msgid "Standard Fields"
554
  msgstr ""
558
  msgstr ""
559
 
560
  #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1205
561
+ #: src/Classes/ExtensionManager.php:53 src/Functions/GlobalFunctions.php:1297
562
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:216
563
  msgid "Custom Fields"
564
  msgstr ""
585
  #: src/AdminBarDashboardAccess/include.settings-page.php:54
586
  #: src/AdminBarDashboardAccess/include.settings-page.php:109
587
  #: src/Functions/custom-settings-api.php:1078
588
+ #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:1035
589
  msgid "Save Changes"
590
  msgstr ""
591
 
747
 
748
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Bio.php:22
749
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/Bio.php:22
750
+ #: src/Functions/GlobalFunctions.php:1281
751
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:211
752
  #: src/Themes/DragDrop/AbstractTheme.php:189
753
  msgid "Biography"
785
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Country.php:47
786
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/CoverImage.php:31
787
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Date.php:71
788
+ #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Agreeable.php:61
789
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Checkbox.php:65
790
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Date.php:57
791
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Input.php:58
814
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Country.php:48
815
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/CoverImage.php:32
816
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Date.php:72
817
+ #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Agreeable.php:62
818
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Checkbox.php:66
819
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Date.php:58
820
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Input.php:59
845
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Country.php:54
846
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/CoverImage.php:38
847
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Date.php:78
848
+ #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Agreeable.php:68
849
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Checkbox.php:57
850
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Date.php:64
851
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Input.php:65
886
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Country.php:56
887
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/CoverImage.php:40
888
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Date.php:80
889
+ #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Agreeable.php:70
890
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Checkbox.php:59
891
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Date.php:66
892
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Input.php:67
996
  "Select a date and time format that users will be able to choose a date in."
997
  msgstr ""
998
 
999
+ #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Agreeable.php:50
1000
+ msgid "Checked by Default"
1001
+ msgstr ""
1002
+
1003
+ #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Agreeable.php:52
1004
+ msgid "False"
1005
+ msgstr ""
1006
+
1007
+ #: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Agreeable.php:53
1008
+ msgid "True"
1009
+ msgstr ""
1010
+
1011
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/DisplayName.php:22
1012
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/DisplayName.php:22
1013
+ #: src/Functions/GlobalFunctions.php:1279
1014
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:318
1015
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:208
1016
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:460
1035
 
1036
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Email.php:22
1037
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/Email.php:22
1038
+ #: src/Functions/GlobalFunctions.php:1280
1039
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:210
1040
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:206
1041
  #: src/Themes/DragDrop/AbstractTheme.php:162
1045
 
1046
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/FirstName.php:22
1047
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/FirstName.php:22
1048
+ #: src/Functions/GlobalFunctions.php:1276
1049
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:350
1050
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:209
1051
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:461
1065
 
1066
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/LastName.php:22
1067
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/LastName.php:22
1068
+ #: src/Functions/GlobalFunctions.php:1277
1069
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:383
1070
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:210
1071
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:462
1098
 
1099
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Nickname.php:22
1100
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/Nickname.php:22
1101
+ #: src/Functions/GlobalFunctions.php:1278
1102
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:286
1103
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:300
1104
  #: src/ShortcodeParser/MyAccount/edit-profile.tmpl.php:138
1254
 
1255
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/Username.php:22
1256
  #: src/Admin/SettingsPages/DragDropBuilder/Fields/Username.php:22
1257
+ #: src/Functions/GlobalFunctions.php:1275
1258
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:135
1259
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:463
1260
  #: src/Themes/DragDrop/AbstractTheme.php:159
1431
  msgstr ""
1432
 
1433
  #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:28
1434
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:135
1435
  #: src/Admin/SettingsPages/GeneralSettings.php:58
1436
  msgid "Emails"
1437
  msgstr ""
1438
 
1439
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:71
1440
  msgid "Account Welcome Email"
1441
  msgstr ""
1442
 
1443
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:72
1444
  #: src/Classes/WelcomeEmailAfterSignup.php:51
1445
  msgid "Welcome To %s"
1446
  msgstr ""
1447
 
1448
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:74
1449
  msgid "Email that is sent to the user upon successful registration."
1450
  msgstr ""
1451
 
1452
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:75
1453
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:93
1454
  msgid "Users"
1455
  msgstr ""
1456
 
1457
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:77
1458
  msgid "Username of the registered user."
1459
  msgstr ""
1460
 
1461
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:78
1462
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:96
1463
  msgid "Email address of the registered user."
1464
  msgstr ""
1465
 
1466
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:79
1467
  msgid "Password of the registered user."
1468
  msgstr ""
1469
 
1470
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:80
1471
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:97
1472
  msgid "Website title or name."
1473
  msgstr ""
1474
 
1475
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:81
1476
  msgid "First Name entered by user on registration."
1477
  msgstr ""
1478
 
1479
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:82
1480
  msgid "Last Name entered by user on registration."
1481
  msgstr ""
1482
 
1483
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:83
1484
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:98
1485
  msgid "URL to reset password."
1486
  msgstr ""
1487
 
1488
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:84
1489
  msgid "URL to login.."
1490
  msgstr ""
1491
 
1492
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:89
1493
  msgid "Password Reset Email"
1494
  msgstr ""
1495
 
1496
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:90
1497
  #: src/Classes/PasswordReset.php:24 src/RegisterActivation/Base.php:85
1498
  msgid "[%s] Password Reset"
1499
  msgstr ""
1500
 
1501
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:92
1502
  msgid "Email that is sent to the user upon password reset request."
1503
  msgstr ""
1504
 
1505
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:95
1506
  msgid "Username of user."
1507
  msgstr ""
1508
 
1509
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:103
1510
  msgid "New User Admin Notification"
1511
  msgstr ""
1512
 
1513
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:104
1514
+ #: src/Functions/GlobalFunctions.php:727 src/RegisterActivation/Base.php:89
1515
  msgid "[%s] New User Registration"
1516
  msgstr ""
1517
 
1518
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:106
1519
  msgid "Email that is sent to admins when there is a new user registration"
1520
  msgstr ""
1521
 
1522
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:107
1523
  msgid "Administrators"
1524
  msgstr ""
1525
 
1526
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:109
1527
  msgid "Username of the newly registered user."
1528
  msgstr ""
1529
 
1530
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:110
1531
  msgid "Email address of the newly registered user."
1532
  msgstr ""
1533
 
1534
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:111
1535
  msgid "First name of the newly registered user."
1536
  msgstr ""
1537
 
1538
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:112
1539
  msgid "Last name of the newly registered user."
1540
  msgstr ""
1541
 
1542
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:113
1543
  msgid "Website name or name."
1544
  msgstr ""
1545
 
1546
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:115
1547
  msgid "Replace \"field_key\" with the %scustom field key%s or usermeta key."
1548
  msgstr ""
1549
 
1550
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:140
1551
  msgid "Admin Email Address(es)"
1552
  msgstr ""
1553
 
1554
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:141
1555
  msgid ""
1556
  "The Email address to receive admin notifications. Use comma to separate "
1557
  "multiple email addresses."
1558
  msgstr ""
1559
 
1560
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:146
1561
  msgid "Sender Name"
1562
  msgstr ""
1563
 
1564
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:147
1565
  msgid ""
1566
  "The name to use as the sender of all ProfilePress emails. Preferably your "
1567
  "website name."
1568
  msgstr ""
1569
 
1570
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:153
1571
  msgid "Sender Email Address"
1572
  msgstr ""
1573
 
1574
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:154
1575
  msgid "The email address to use as the sender of all ProfilePress emails."
1576
  msgstr ""
1577
 
1578
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:160
1579
  msgid "HTML"
1580
  msgstr ""
1581
 
1582
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:161
1583
  msgid "Plain Text"
1584
  msgstr ""
1585
 
1586
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:164
1587
  msgid "Content Type"
1588
  msgstr ""
1589
 
1590
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:165
1591
  msgid ""
1592
  "Choose whether to send ProfilePress emails in HTML or plain text. HTML is "
1593
  "recommended."
1594
  msgstr ""
1595
 
1596
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:170
1597
  msgid "Default Template"
1598
  msgstr ""
1599
 
1600
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:171
1601
  msgid "Custom Email Template"
1602
  msgstr ""
1603
 
1604
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:174
1605
  msgid "Email Template"
1606
  msgstr ""
1607
 
1608
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:175
1609
  msgid ""
1610
  "Choose \"Custom Email Template\" if you want to code your own email template "
1611
  "from scratch."
1612
  msgstr ""
1613
 
1614
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:182
1615
  msgid "Customize Default Template"
1616
  msgstr ""
1617
 
1618
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:225
1619
  msgid "Preview Email"
1620
  msgstr ""
1621
 
1622
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:246
1623
  msgid "Enable Notification"
1624
  msgstr ""
1625
 
1626
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:247
1627
  #: src/Admin/SettingsPages/GeneralSettings.php:371
1628
  msgid "Enable"
1629
  msgstr ""
1630
 
1631
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:250
1632
  msgid "Check to enable this email notification."
1633
  msgstr ""
1634
 
1635
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:255
1636
  msgid "Subject Line"
1637
  msgstr ""
1638
 
1639
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:256
1640
  msgid "Enter the subject or title for the welcome message email."
1641
  msgstr ""
1642
 
1643
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:261
1644
  msgid "Message Body"
1645
  msgstr ""
1646
 
1647
+ #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:304
1648
  msgid "Available placeholders for subject and message body"
1649
  msgstr ""
1650
 
1661
  msgid "Recipient"
1662
  msgstr ""
1663
 
1664
+ #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:39
1665
+ #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:51
1666
  msgid "Addons"
1667
  msgstr ""
1668
 
1669
+ #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:87
1670
  msgid "Activate All"
1671
  msgstr ""
1672
 
1673
+ #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:90
1674
  msgid "Deactivate All"
1675
  msgstr ""
1676
 
1677
+ #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:100
1678
  msgid ""
1679
  "Upgrade to Premium to unlock extensions and other great features. As a "
1680
  "valued ProfilePress Lite user, you will %1$sreceive 10%3$s off%2$s your "
1681
  "purchase, automatically applied at checkout!"
1682
  msgstr ""
1683
 
1684
+ #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:106
1685
  msgid "Upgrade Now"
1686
  msgstr ""
1687
 
1688
+ #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:122
1689
  msgid "Upgrade Plan"
1690
  msgstr ""
1691
 
1692
+ #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:137
1693
  msgid "Learn More"
1694
  msgstr ""
1695
 
1696
+ #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:148
1697
  msgid "Unavailable: %s"
1698
  msgstr ""
1699
 
1700
+ #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:153
1701
  msgid "Activated"
1702
  msgstr ""
1703
 
1704
+ #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:153
1705
  msgid "Deactivated"
1706
  msgstr ""
1707
 
3140
  msgid "Protection Rules"
3141
  msgstr ""
3142
 
3143
+ #: src/ContentProtection/SettingsPage.php:126
3144
  msgid "Title cannot be empty."
3145
  msgstr ""
3146
 
3147
+ #: src/ContentProtection/SettingsPage.php:160
3148
  #: src/Themes/DragDrop/AbstractTheme.php:114
3149
  msgid "Changes saved."
3150
  msgstr ""
3151
 
3152
+ #: src/ContentProtection/SettingsPage.php:181
3153
  msgid "Add a Protection Rule"
3154
  msgstr ""
3155
 
3265
  msgstr ""
3266
 
3267
  #. translators: %s: User login.
3268
+ #: src/Functions/GlobalFunctions.php:797
3269
  msgid "Username: %s"
3270
  msgstr ""
3271
 
3272
+ #: src/Functions/GlobalFunctions.php:798
3273
  msgid "To set your password, visit the following address:"
3274
  msgstr ""
3275
 
3276
  #. translators: Login details notification email subject. %s: Site title.
3277
+ #: src/Functions/GlobalFunctions.php:806
3278
  msgid "[%s] Login Details"
3279
  msgstr ""
3280
 
3281
+ #: src/Functions/GlobalFunctions.php:1104
3282
  msgid ""
3283
  "It must be unique for each field, not a reserve text, in lowercase letters "
3284
  "only with an underscore ( _ ) separating words e.g job_title"
3285
  msgstr ""
3286
 
3287
+ #: src/Functions/GlobalFunctions.php:1225
3288
  msgid "%s (WooCommerce Billing Address)"
3289
  msgstr ""
3290
 
3291
+ #: src/Functions/GlobalFunctions.php:1229
3292
  msgid "%s (WooCommerce Shipping Address)"
3293
  msgstr ""
3294
 
3295
+ #: src/Functions/GlobalFunctions.php:1273
3296
  msgid "First and Last Names"
3297
  msgstr ""
3298
 
3299
+ #: src/Functions/GlobalFunctions.php:1274
3300
  msgid "Last and First Names"
3301
  msgstr ""
3302
 
3303
+ #: src/Functions/GlobalFunctions.php:1282
3304
  msgid "Registration Date"
3305
  msgstr ""
3306
 
3307
+ #: src/Functions/GlobalFunctions.php:1399
3308
  msgid "There was an problem while verifying your file."
3309
  msgstr ""
3310
 
3311
+ #: src/Functions/GlobalFunctions.php:1404
3312
  msgid "Sorry, this file extension is not permitted for security reasons."
3313
  msgstr ""
3314
 
3315
+ #: src/Functions/GlobalFunctions.php:1408
3316
  msgid "Sorry, this file type is not permitted for security reasons."
3317
  msgstr ""
3318
 
3319
+ #: src/Functions/GlobalFunctions.php:1412
3320
+ #: src/Functions/GlobalFunctions.php:1416
3321
  msgid "Error: The file you uploaded is not accepted on our website."
3322
  msgstr ""
3323
 
4349
  msgstr ""
4350
 
4351
  #: src/NavigationMenuLinks/Backend.php:31 src/RegisterActivation/Base.php:159
4352
+ #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:1032
4353
  #: src/ShortcodeParser/Builder/GlobalShortcodes.php:174
4354
  #: src/Widgets/TabbedWidget.php:90
4355
  msgid "Sign Up"
4489
 
4490
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:490
4491
  #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:547
4492
+ #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:636
4493
+ #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:680
4494
+ #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:706
4495
+ #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:773
4496
+ #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:829
4497
+ #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:888
4498
+ #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:939
4499
  #: src/ShortcodeParser/Builder/FrontendProfileBuilder.php:346
4500
  msgid "Field key is missing"
4501
  msgstr ""
4504
  msgid "Select country"
4505
  msgstr ""
4506
 
4507
+ #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:710
4508
  msgid "No dropdown option found."
4509
  msgstr ""
4510
 
4511
+ #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:779
4512
  msgid "No radio choice found."
4513
  msgstr ""
4514
 
4515
+ #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:834
4516
  msgid "No checkbox choice found."
4517
  msgstr ""
4518
 
4519
+ #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:947
4520
  msgid "custom field not defined"
4521
  msgstr ""
4522
 
4523
+ #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:1101
4524
  msgid "Delete Avatar"
4525
  msgstr ""
4526
 
4527
+ #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:1137
4528
  msgid "Delete Cover Photo"
4529
  msgstr ""
4530
 
4627
  msgid "Email Notifications"
4628
  msgstr ""
4629
 
4630
+ #: src/ShortcodeParser/MyAccount/MyAccountTag.php:497
4631
  msgid "Cover Photo (min. width: 1000px)"
4632
  msgstr ""
4633
 
5071
  msgstr ""
5072
 
5073
  #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:244
5074
+ #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:821
5075
  msgid "Search"
5076
  msgstr ""
5077
 
5508
  msgid "ProfilePress"
5509
  msgstr ""
5510
 
5511
+ #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.2.3) #-#-#-#-#
5512
  #. Plugin URI of the plugin/theme
5513
+ #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.2.3) #-#-#-#-#
5514
  #. Author URI of the plugin/theme
5515
  msgid "https://profilepress.net"
5516
  msgstr ""
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: user registration, user profile, registration form, membership, login form
5
  Requires at least: 4.7
6
  Requires PHP: 5.6.0
7
  Tested up to: 5.8
8
- Stable tag: 3.2.2
9
  License: GPLv2 or later
10
 
11
  Modern membership plugin for user registration, login form, user profile, member directories & content restriction.
@@ -117,26 +117,13 @@ No. You can create and manage your forms, user profiles and member directories w
117
 
118
  == Changelog ==
119
 
 
 
 
 
 
120
  = 3.2.2 =
121
  * Added a new admin page header.
122
  * Add redirect_to query parameter when Global Access redirects to a login page.
123
 
124
- = 3.2.1 =
125
- * Fixed issue with avatar sizes.
126
- * Fix: PHP DOMDocument loadHTML not encoding UTF-8 correctly.
127
- * Fixed: Index column size too large.
128
-
129
- = 3.2.0 =
130
- * Added cover photo uploader to WP edit profile page.
131
- * Added pagination to profile posts.
132
- * Added pagination to profile comments.
133
- * Added "previous_page" support for redirecting to previous page using "redirect" form attribute.
134
- * Renamed cover image to cover photo.
135
- * Ensure avatar url returns the full image url.
136
- * Added filter to override get_avatar size.
137
- * Fixed bug where double member directory embed resulted in same result in both.
138
- * Fixed form builder metabox label not correctly displaying.
139
- * Ensure missing closing tags are closed in content protection.
140
- * Made website url in profile display clickable.
141
-
142
  See the [changelog file](https://plugins.svn.wordpress.org/wp-user-avatar/trunk/changelog.txt) for full change log information.
5
  Requires at least: 4.7
6
  Requires PHP: 5.6.0
7
  Tested up to: 5.8
8
+ Stable tag: 3.2.3
9
  License: GPLv2 or later
10
 
11
  Modern membership plugin for user registration, login form, user profile, member directories & content restriction.
117
 
118
  == Changelog ==
119
 
120
+ = 3.2.3 =
121
+ * Fixed bug where custom content protection message wasn't properly formatted.
122
+ * Escaped html attributes in html response returned on ajax form request.
123
+ * Removed display-name as title for user profile in member directory.
124
+
125
  = 3.2.2 =
126
  * Added a new admin page header.
127
  * Add redirect_to query parameter when Global Access redirects to a login page.
128
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
  See the [changelog file](https://plugins.svn.wordpress.org/wp-user-avatar/trunk/changelog.txt) for full change log information.
src/Admin/SettingsPages/AbstractSettingsPage.php CHANGED
@@ -105,7 +105,7 @@ abstract class AbstractSettingsPage
105
  <nav class="ppress-nav-tab-wrapper nav-tab-wrapper">
106
  <?php foreach ($menus as $menu) : ?>
107
  <?php
108
- $id = sanitize_text_field(ppress_var($menu,'id', ''));
109
  $url = esc_url_raw(! empty($menu['url']) ? $menu['url'] : add_query_arg('view', $id));
110
  self::$parent_menu_url_map[$id] = $url;
111
  ?>
@@ -146,7 +146,7 @@ abstract class AbstractSettingsPage
146
  {
147
  static $cache = null;
148
 
149
- if (is_null($cache)) {
150
  $cache = isset($_GET['view']) ? sanitize_text_field($_GET['view']) : $this->default_header_menu();
151
  }
152
 
@@ -157,7 +157,7 @@ abstract class AbstractSettingsPage
157
  {
158
  static $cache = null;
159
 
160
- if (is_null($cache)) {
161
 
162
  $active_menu = $this->active_menu_tab();
163
 
105
  <nav class="ppress-nav-tab-wrapper nav-tab-wrapper">
106
  <?php foreach ($menus as $menu) : ?>
107
  <?php
108
+ $id = sanitize_text_field(ppress_var($menu, 'id', ''));
109
  $url = esc_url_raw(! empty($menu['url']) ? $menu['url'] : add_query_arg('view', $id));
110
  self::$parent_menu_url_map[$id] = $url;
111
  ?>
146
  {
147
  static $cache = null;
148
 
149
+ if (is_null($cache) && strpos(ppressGET_var('page'), 'pp') !== false) {
150
  $cache = isset($_GET['view']) ? sanitize_text_field($_GET['view']) : $this->default_header_menu();
151
  }
152
 
157
  {
158
  static $cache = null;
159
 
160
+ if (is_null($cache) && strpos(ppressGET_var('page'), 'pp') !== false) {
161
 
162
  $active_menu = $this->active_menu_tab();
163
 
src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Agreeable.php CHANGED
@@ -45,6 +45,16 @@ class Agreeable extends FieldBase
45
  public function field_settings()
46
  {
47
  return apply_filters('ppress_form_builder_textbox_field_settings', [
 
 
 
 
 
 
 
 
 
 
48
  parent::SETTINGS_TAB => [
49
  'required' => [
50
  'type' => 'checkbox',
45
  public function field_settings()
46
  {
47
  return apply_filters('ppress_form_builder_textbox_field_settings', [
48
+ parent::GENERAL_TAB => [
49
+ 'checked_state' => [
50
+ 'label' => esc_html__('Checked by Default', 'profilepress-pro'),
51
+ 'options' => [
52
+ 'false' => esc_html__('False', 'profilepress-pro'),
53
+ 'true' => esc_html__('True', 'profilepress-pro'),
54
+ ],
55
+ 'field' => self::SELECT_FIELD
56
+ ]
57
+ ],
58
  parent::SETTINGS_TAB => [
59
  'required' => [
60
  'type' => 'checkbox',
src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php CHANGED
@@ -43,8 +43,9 @@ class EmailSettingsPage
43
 
44
  }, 10, 3);
45
 
46
- $this->settingsPageInstance = Custom_Settings_Page_Api::instance('', PPRESS_SETTINGS_DB_OPTION_NAME);
47
-
 
48
  });
49
  }
50
 
43
 
44
  }, 10, 3);
45
 
46
+ if (ppressGET_var('view') == 'email') {
47
+ $this->settingsPageInstance = Custom_Settings_Page_Api::instance('', PPRESS_SETTINGS_DB_OPTION_NAME);
48
+ }
49
  });
50
  }
51
 
src/Admin/SettingsPages/ExtensionsSettingsPage.php CHANGED
@@ -23,7 +23,9 @@ class ExtensionsSettingsPage extends AbstractSettingsPage
23
  }
24
 
25
  add_action('admin_init', function () {
26
- $this->spInstance = Custom_Settings_Page_Api::instance([], EM::DB_OPTION_NAME);
 
 
27
  });
28
  }
29
 
23
  }
24
 
25
  add_action('admin_init', function () {
26
+ if (ppressGET_var('page') == PPRESS_EXTENSIONS_SETTINGS_SLUG) {
27
+ $this->spInstance = Custom_Settings_Page_Api::instance([], EM::DB_OPTION_NAME);
28
+ }
29
  });
30
  }
31
 
src/Classes/AjaxHandler.php CHANGED
@@ -50,35 +50,35 @@ class AjaxHandler
50
  <span class="sr-only"><?php esc_html__('Loading...', 'wp-user-avatar'); ?></span>
51
  <ul class="pp-design-options">
52
  <li>
53
- <a href="#" class="pp-select-form-type pp-type-active" data-form-type="<?= FR::LOGIN_TYPE ?>" data-builder-type="<?= $builder_type ?>">
54
  <?php _e('Login', 'wp-user-avatar'); ?>
55
  </a>
56
  </li>
57
  <li>
58
- <a href="#" class="pp-select-form-type" data-form-type="<?= FR::REGISTRATION_TYPE ?>" data-builder-type="<?= $builder_type ?>">
59
  <?php _e('Registration', 'wp-user-avatar'); ?>
60
  </a>
61
  </li>
62
  <li>
63
- <a href="#" class="pp-select-form-type" data-form-type="<?= FR::PASSWORD_RESET_TYPE ?>" data-builder-type="<?= $builder_type ?>">
64
  <?php _e('Password Reset', 'wp-user-avatar'); ?>
65
  </a>
66
  </li>
67
  <li>
68
- <a href="#" class="pp-select-form-type" data-form-type="<?= FR::EDIT_PROFILE_TYPE ?>" data-builder-type="<?= $builder_type ?>">
69
  <?php _e('Edit Profile', 'wp-user-avatar'); ?>
70
  </a>
71
  </li>
72
  <?php if ($builder_type == 'shortcodeBuilder') : ?>
73
  <li>
74
- <a href="#" class="pp-select-form-type" data-form-type="<?= FR::MELANGE_TYPE ?>" data-builder-type="<?= $builder_type ?>">
75
  <?php _e('Melange', 'wp-user-avatar'); ?>
76
  </a>
77
  <span class="pp-melange-jbox dashicons dashicons-editor-help" title="<?php echo $melange_jbox; ?>"></span>
78
  </li>
79
  <?php endif; ?>
80
  <li>
81
- <a href="#" class="pp-select-form-type" data-form-type="<?= FR::USER_PROFILE_TYPE ?>" data-builder-type="<?= $builder_type ?>">
82
  <?php _e('User Profile', 'wp-user-avatar'); ?>
83
  </a>
84
  </li>
@@ -100,7 +100,7 @@ class AjaxHandler
100
 
101
  $label = esc_html__('Create from Scratch', 'wp-user-avatar');
102
  ?>
103
- <div id="pp-optin-theme-list" class="pp-optin-theme ppress-allow-activate" data-builder-type="<?php echo $type; ?>" data-theme-type="<?php echo $form_type; ?>">
104
  <div class="pp-optin-theme-screenshot">
105
  <div style="position: absolute;top: 40%;display: block;width: 100%;">
106
  <h2 style="text-transform: uppercase;margin: 0 0 5px;font-size: 2em;padding: 0;text-align: center;">
@@ -121,10 +121,10 @@ class AjaxHandler
121
 
122
  public function form_template_single($theme, $builder_type)
123
  {
124
- $screenshot = $theme['screenshot'];
125
  $name = $theme['name'];
126
- $theme_class = $theme['theme_class'];
127
- $theme_type = $theme['theme_type'];
128
 
129
  $upgrade_url = 'https://profilepress.net/pricing/?utm_source=wp_dashboard&utm_medium=upgrade&utm_campaign=premium_template';
130
 
@@ -137,7 +137,7 @@ class AjaxHandler
137
  $url_target = $is_premium_theme_disallowed ? ' target="_blank"' : '';
138
 
139
  ?>
140
- <div class="pp-optin-theme<?= $extra_class; ?>" data-builder-type="<?= $builder_type; ?>" data-theme-class="<?= $theme_class; ?>" data-theme-type="<?= $theme_type; ?>">
141
  <a <?= $url_target; ?> href="<?= $url; ?>">
142
  <div class="pp-optin-theme-screenshot">
143
  <img src="<?= $screenshot; ?>" alt="<?= $name; ?>">
@@ -163,7 +163,7 @@ class AjaxHandler
163
  ?>
164
  <div class="pp-form-new-list pp-optin-clear">
165
  <h4><?php echo esc_html($label); ?>
166
- <input type="text" id="pp-add-form-title" placeholder="<?= $placeholder; ?>">
167
  <span class="spinner pp-dash-spinner"></span>
168
  </h4>
169
  </div>
50
  <span class="sr-only"><?php esc_html__('Loading...', 'wp-user-avatar'); ?></span>
51
  <ul class="pp-design-options">
52
  <li>
53
+ <a href="#" class="pp-select-form-type pp-type-active" data-form-type="<?= esc_attr(FR::LOGIN_TYPE) ?>" data-builder-type="<?= esc_attr($builder_type) ?>">
54
  <?php _e('Login', 'wp-user-avatar'); ?>
55
  </a>
56
  </li>
57
  <li>
58
+ <a href="#" class="pp-select-form-type" data-form-type="<?= FR::REGISTRATION_TYPE ?>" data-builder-type="<?= esc_attr($builder_type) ?>">
59
  <?php _e('Registration', 'wp-user-avatar'); ?>
60
  </a>
61
  </li>
62
  <li>
63
+ <a href="#" class="pp-select-form-type" data-form-type="<?= FR::PASSWORD_RESET_TYPE ?>" data-builder-type="<?= esc_attr($builder_type) ?>">
64
  <?php _e('Password Reset', 'wp-user-avatar'); ?>
65
  </a>
66
  </li>
67
  <li>
68
+ <a href="#" class="pp-select-form-type" data-form-type="<?= FR::EDIT_PROFILE_TYPE ?>" data-builder-type="<?= esc_attr($builder_type) ?>">
69
  <?php _e('Edit Profile', 'wp-user-avatar'); ?>
70
  </a>
71
  </li>
72
  <?php if ($builder_type == 'shortcodeBuilder') : ?>
73
  <li>
74
+ <a href="#" class="pp-select-form-type" data-form-type="<?= FR::MELANGE_TYPE ?>" data-builder-type="<?= esc_attr($builder_type) ?>">
75
  <?php _e('Melange', 'wp-user-avatar'); ?>
76
  </a>
77
  <span class="pp-melange-jbox dashicons dashicons-editor-help" title="<?php echo $melange_jbox; ?>"></span>
78
  </li>
79
  <?php endif; ?>
80
  <li>
81
+ <a href="#" class="pp-select-form-type" data-form-type="<?= FR::USER_PROFILE_TYPE ?>" data-builder-type="<?= esc_attr($builder_type) ?>">
82
  <?php _e('User Profile', 'wp-user-avatar'); ?>
83
  </a>
84
  </li>
100
 
101
  $label = esc_html__('Create from Scratch', 'wp-user-avatar');
102
  ?>
103
+ <div id="pp-optin-theme-list" class="pp-optin-theme ppress-allow-activate" data-builder-type="<?php echo esc_attr($type); ?>" data-theme-type="<?php echo esc_attr($form_type); ?>">
104
  <div class="pp-optin-theme-screenshot">
105
  <div style="position: absolute;top: 40%;display: block;width: 100%;">
106
  <h2 style="text-transform: uppercase;margin: 0 0 5px;font-size: 2em;padding: 0;text-align: center;">
121
 
122
  public function form_template_single($theme, $builder_type)
123
  {
124
+ $screenshot = esc_attr($theme['screenshot']);
125
  $name = $theme['name'];
126
+ $theme_class = esc_attr($theme['theme_class']);
127
+ $theme_type = esc_attr($theme['theme_type']);
128
 
129
  $upgrade_url = 'https://profilepress.net/pricing/?utm_source=wp_dashboard&utm_medium=upgrade&utm_campaign=premium_template';
130
 
137
  $url_target = $is_premium_theme_disallowed ? ' target="_blank"' : '';
138
 
139
  ?>
140
+ <div class="pp-optin-theme<?= esc_attr($extra_class); ?>" data-builder-type="<?= esc_attr($builder_type); ?>" data-theme-class="<?= esc_attr($theme_class); ?>" data-theme-type="<?= esc_attr($theme_type); ?>">
141
  <a <?= $url_target; ?> href="<?= $url; ?>">
142
  <div class="pp-optin-theme-screenshot">
143
  <img src="<?= $screenshot; ?>" alt="<?= $name; ?>">
163
  ?>
164
  <div class="pp-form-new-list pp-optin-clear">
165
  <h4><?php echo esc_html($label); ?>
166
+ <input type="text" id="pp-add-form-title" placeholder="<?= esc_attr($placeholder); ?>">
167
  <span class="spinner pp-dash-spinner"></span>
168
  </h4>
169
  </div>
src/Classes/UsernameEmailRestrictLogin.php CHANGED
@@ -9,7 +9,7 @@ class UsernameEmailRestrictLogin
9
  {
10
  public function __construct()
11
  {
12
- add_filter('authenticate', [$this, 'do_action'], 999999999, 3);
13
  }
14
 
15
  /**
9
  {
10
  public function __construct()
11
  {
12
+ add_filter('authenticate', [$this, 'do_action'], 999999, 3);
13
  }
14
 
15
  /**
src/ContentProtection/SettingsPage.php CHANGED
@@ -103,7 +103,11 @@ class SettingsPage extends AbstractSettingsPage
103
  if (is_array($data[$key])) {
104
  $sanitized_data[$key] = self::sanitize_data($data[$key]);
105
  } else {
106
- $sanitized_data[$key] = sanitize_text_field($data[$key]);
 
 
 
 
107
  }
108
  }
109
 
103
  if (is_array($data[$key])) {
104
  $sanitized_data[$key] = self::sanitize_data($data[$key]);
105
  } else {
106
+ if ($key == 'noaccess_action_message_custom') {
107
+ $sanitized_data[$key] = wp_kses_post($data[$key]);
108
+ } else {
109
+ $sanitized_data[$key] = sanitize_textarea_field($data[$key]);
110
+ }
111
  }
112
  }
113
 
src/ContentProtection/views/include.view.php CHANGED
@@ -4,11 +4,11 @@ use ProfilePress\Core\ContentProtection\ContentConditions;
4
  use ProfilePress\Core\ContentProtection\SettingsPage;
5
  use ProfilePress\Core\Classes\PROFILEPRESS_sql as PR;
6
 
7
- $dbData = PR::get_meta_value(absint(ppress_var($_GET,'id')), SettingsPage::META_DATA_KEY);
8
 
9
  $contentToRestrictData = ppress_var($dbData, 'content');
10
 
11
- $accessConditionData = ppress_var($dbData, 'access_condition');
12
 
13
  add_action('add_meta_boxes', function () use ($contentToRestrictData) {
14
  add_meta_box(
@@ -66,7 +66,7 @@ do_action('add_meta_boxes', 'ppcontentprotection', '');
66
  <div id="titlewrap">
67
  <label class="screen-reader-text" id="title"><?= esc_html__('Add title', 'wp-user-avatar') ?></label>
68
  <?php $postedData = ppress_var($_POST, 'ppress_cc_data', []); ?>
69
- <input value="<?= ppressPOST_var('title', ppress_var($dbData, 'title'), false, $postedData) ?>" style="width:100%!important;max-width:100%!important;" type="text" name="ppress_cc_data[title]" id="title">
70
  </div>
71
  </div>
72
  </div>
4
  use ProfilePress\Core\ContentProtection\SettingsPage;
5
  use ProfilePress\Core\Classes\PROFILEPRESS_sql as PR;
6
 
7
+ $dbData = PR::get_meta_value(absint(ppress_var($_GET, 'id')), SettingsPage::META_DATA_KEY);
8
 
9
  $contentToRestrictData = ppress_var($dbData, 'content');
10
 
11
+ $accessConditionData = ppress_var($dbData, 'access_condition');
12
 
13
  add_action('add_meta_boxes', function () use ($contentToRestrictData) {
14
  add_meta_box(
66
  <div id="titlewrap">
67
  <label class="screen-reader-text" id="title"><?= esc_html__('Add title', 'wp-user-avatar') ?></label>
68
  <?php $postedData = ppress_var($_POST, 'ppress_cc_data', []); ?>
69
+ <input value="<?= esc_attr(ppressPOST_var('title', ppress_var($dbData, 'title'), false, $postedData)) ?>" style="width:100%!important;max-width:100%!important;" type="text" name="ppress_cc_data[title]" id="title">
70
  </div>
71
  </div>
72
  </div>
src/ContentProtection/views/view.access-condition.php CHANGED
@@ -88,7 +88,7 @@ $noaccess_action_redirect_custom_url = ppressPOST_var('noaccess_action_redirect_
88
  remove_all_filters('mce_buttons', 10);
89
  remove_all_filters('mce_external_plugins', 10);
90
  remove_all_actions('after_wp_tiny_mce');
91
- wp_editor($noaccess_action_message_custom, 'pp-cc-access-noaccess-action-message-custom', [
92
  'textarea_name' => 'ppress_cc_data[access_condition][noaccess_action_message_custom]',
93
  'textarea_rows' => 20,
94
  'wpautop' => false,
@@ -117,7 +117,7 @@ $noaccess_action_redirect_custom_url = ppressPOST_var('noaccess_action_redirect_
117
  </label>
118
  </th>
119
  <td>
120
- <input type="text" id="pp-cc-access-noaccess-action-redirect-custom-url" name="ppress_cc_data[access_condition][noaccess_action_redirect_custom_url]" value="<?= $noaccess_action_redirect_custom_url ?>">
121
  </td>
122
  </tr>
123
  </tbody>
88
  remove_all_filters('mce_buttons', 10);
89
  remove_all_filters('mce_external_plugins', 10);
90
  remove_all_actions('after_wp_tiny_mce');
91
+ wp_editor(wp_kses_post($noaccess_action_message_custom), 'pp-cc-access-noaccess-action-message-custom', [
92
  'textarea_name' => 'ppress_cc_data[access_condition][noaccess_action_message_custom]',
93
  'textarea_rows' => 20,
94
  'wpautop' => false,
117
  </label>
118
  </th>
119
  <td>
120
+ <input type="text" id="pp-cc-access-noaccess-action-redirect-custom-url" name="ppress_cc_data[access_condition][noaccess_action_redirect_custom_url]" value="<?= esc_attr($noaccess_action_redirect_custom_url) ?>">
121
  </td>
122
  </tr>
123
  </tbody>
src/Functions/GlobalFunctions.php CHANGED
@@ -6,6 +6,7 @@ use ProfilePress\Core\Classes\ExtensionManager as EM;
6
  use ProfilePress\Core\Classes\FormRepository as FR;
7
  use ProfilePress\Core\Classes\PROFILEPRESS_sql as PROFILEPRESS_sql;
8
  use ProfilePress\Core\Classes\SendEmail;
 
9
 
10
  /** Plugin DB settings data */
11
  function ppress_db_data()
@@ -1444,4 +1445,13 @@ function ppress_shortcode_exist_in_post($shortcode)
1444
  }
1445
 
1446
  return false;
 
 
 
 
 
 
 
 
 
1447
  }
6
  use ProfilePress\Core\Classes\FormRepository as FR;
7
  use ProfilePress\Core\Classes\PROFILEPRESS_sql as PROFILEPRESS_sql;
8
  use ProfilePress\Core\Classes\SendEmail;
9
+ use ProfilePress\Core\ShortcodeParser\Builder\FieldsShortcodeCallback;
10
 
11
  /** Plugin DB settings data */
12
  function ppress_db_data()
1445
  }
1446
 
1447
  return false;
1448
+ }
1449
+
1450
+ function ppress_clean($var)
1451
+ {
1452
+ if (is_array($var)) {
1453
+ return array_map('ppress_clean', $var);
1454
+ } else {
1455
+ return is_scalar($var) ? sanitize_textarea_field($var) : $var;
1456
+ }
1457
  }
src/ShortcodeParser/Builder/FieldsShortcodeCallback.php CHANGED
@@ -72,7 +72,7 @@ class FieldsShortcodeCallback
72
  {
73
  if ( ! is_array($atts)) return $atts;
74
 
75
- $invalid_atts = array('enforce', 'key', 'field_key', 'limit', 'options', 'checkbox_text', 'date_format', 'field_width', 'icon');
76
 
77
  $valid_atts = array();
78
 
@@ -596,6 +596,34 @@ class FieldsShortcodeCallback
596
  return false;
597
  }
598
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
599
  /**
600
  * @param $atts
601
  *
@@ -630,20 +658,7 @@ class FieldsShortcodeCallback
630
  $dateFormat = $atts['options'];
631
  }
632
 
633
- $hasTime = self::hasTime($dateFormat);
634
- $time24 = false;
635
-
636
- if ($hasTime && strpos($dateFormat, 'H') !== false) {
637
- $time24 = true;
638
- }
639
-
640
- $config = apply_filters('ppress_frontend_flatpickr_date_config', [
641
- 'dateFormat' => $dateFormat,
642
- 'enableTime' => $hasTime,
643
- 'noCalendar' => ! self::hasDate($dateFormat),
644
- 'disableMobile' => true,
645
- 'time_24hr' => $time24
646
- ]);
647
 
648
  $html .= sprintf(
649
  '<script type="text/javascript">jQuery(function() {jQuery( ".pp_datepicker.%s" ).flatpickr(%s);});</script>',
@@ -878,10 +893,12 @@ class FieldsShortcodeCallback
878
  $field_label = isset($atts['checkbox_text']) ? html_entity_decode($atts['checkbox_text']) : '';
879
 
880
  // checked for checkbox
881
- $checked = checked(isset($_POST[$key]) ? isset($_POST[$key]) : '', 'true', false);
882
 
883
  if ($this->form_type == FormRepository::EDIT_PROFILE_TYPE) {
884
  $db_data = ! empty($atts['value']) ? sanitize_text_field($atts['value']) : $this->current_user->$key;
 
 
885
  $checked = @checked(
886
  ! empty($_POST[$key]) ? $_POST[$key] : $db_data,
887
  'true',
@@ -943,7 +960,7 @@ class FieldsShortcodeCallback
943
 
944
  if ($type == 'agreeable') {
945
  $atts['key'] = $key;
946
- $atts['checkbox_text'] = $field_label = html_entity_decode(PROFILEPRESS_sql::get_field_label($key));
947
  $html = $this->single_checkbox_field($atts);
948
  }
949
 
72
  {
73
  if ( ! is_array($atts)) return $atts;
74
 
75
+ $invalid_atts = array('enforce', 'key', 'field_key', 'limit', 'options', 'checkbox_text', 'date_format', 'field_width', 'icon', 'checked_state');
76
 
77
  $valid_atts = array();
78
 
596
  return false;
597
  }
598
 
599
+ public static function date_picker_config($field_key, $dateFormat = '')
600
+ {
601
+ if (empty($dateFormat)) {
602
+
603
+ $dateFormat = ppress_var(
604
+ PROFILEPRESS_sql::get_profile_custom_field_by_key($field_key),
605
+ 'options',
606
+ 'Y-m-d',
607
+ true
608
+ );
609
+ }
610
+
611
+ $hasTime = self::hasTime($dateFormat);
612
+ $time24 = false;
613
+
614
+ if ($hasTime && strpos($dateFormat, 'H') !== false) {
615
+ $time24 = true;
616
+ }
617
+
618
+ return apply_filters('ppress_frontend_flatpickr_date_config', [
619
+ 'dateFormat' => $dateFormat,
620
+ 'enableTime' => $hasTime,
621
+ 'noCalendar' => ! self::hasDate($dateFormat),
622
+ 'disableMobile' => true,
623
+ 'time_24hr' => $time24
624
+ ]);
625
+ }
626
+
627
  /**
628
  * @param $atts
629
  *
658
  $dateFormat = $atts['options'];
659
  }
660
 
661
+ $config = self::date_picker_config($key, $dateFormat);
 
 
 
 
 
 
 
 
 
 
 
 
 
662
 
663
  $html .= sprintf(
664
  '<script type="text/javascript">jQuery(function() {jQuery( ".pp_datepicker.%s" ).flatpickr(%s);});</script>',
893
  $field_label = isset($atts['checkbox_text']) ? html_entity_decode($atts['checkbox_text']) : '';
894
 
895
  // checked for checkbox
896
+ $checked = checked(ppressPOST_var($key, ppress_var($atts, 'checked_state')), 'true', false);
897
 
898
  if ($this->form_type == FormRepository::EDIT_PROFILE_TYPE) {
899
  $db_data = ! empty($atts['value']) ? sanitize_text_field($atts['value']) : $this->current_user->$key;
900
+ $db_data = ('1' == $db_data) ? 'true' : $db_data;
901
+
902
  $checked = @checked(
903
  ! empty($_POST[$key]) ? $_POST[$key] : $db_data,
904
  'true',
960
 
961
  if ($type == 'agreeable') {
962
  $atts['key'] = $key;
963
+ $atts['checkbox_text'] = html_entity_decode(PROFILEPRESS_sql::get_field_label($key));
964
  $html = $this->single_checkbox_field($atts);
965
  }
966
 
src/ShortcodeParser/MyAccount/MyAccountTag.php CHANGED
@@ -164,7 +164,7 @@ class MyAccountTag extends FormProcessor
164
  if (is_page() && self::is_endpoint()) {
165
  $endpoint = $this->get_current_endpoint();
166
  $endpoint_title = $this->get_endpoint_title($endpoint);
167
- $title = ! empty($endpoint_title) ? $endpoint_title : $title;
168
  }
169
 
170
  return $title;
@@ -403,10 +403,12 @@ class MyAccountTag extends FormProcessor
403
  *
404
  * @return string
405
  */
406
- public function parse_shortcode($atts)
407
  {
408
  add_action('wp_footer', [$this, 'js_script']);
409
 
 
 
410
  global $wp;
411
 
412
  ob_start();
164
  if (is_page() && self::is_endpoint()) {
165
  $endpoint = $this->get_current_endpoint();
166
  $endpoint_title = $this->get_endpoint_title($endpoint);
167
+ $title = ! empty($endpoint_title) ? $endpoint_title . ' - ' . get_bloginfo('name') : $title;
168
  }
169
 
170
  return $title;
403
  *
404
  * @return string
405
  */
406
+ public function parse_shortcode()
407
  {
408
  add_action('wp_footer', [$this, 'js_script']);
409
 
410
+ do_action('ppress_my_account_shortcode_callback');
411
+
412
  global $wp;
413
 
414
  ob_start();
src/Themes/DragDrop/AbstractMemberDirectoryTheme.php CHANGED
@@ -791,20 +791,7 @@ abstract class AbstractMemberDirectoryTheme extends AbstractTheme
791
 
792
  $dateFormat = ! empty($custom_field['options']) ? $custom_field['options'] : 'Y-m-d';
793
 
794
- $hasTime = FieldsShortcodeCallback::hasTime($dateFormat);
795
- $time24 = false;
796
-
797
- if ($hasTime && strpos($dateFormat, 'H') !== false) {
798
- $time24 = true;
799
- }
800
-
801
- $config = apply_filters('ppress_frontend_flatpickr_date_config', [
802
- 'dateFormat' => $dateFormat,
803
- 'enableTime' => $hasTime,
804
- 'noCalendar' => ! FieldsShortcodeCallback::hasDate($dateFormat),
805
- 'disableMobile' => true,
806
- 'time_24hr' => $time24
807
- ]);
808
 
809
  printf(
810
  '<input type="text" name="%1$s" placeholder="%2$s" value="%4$s" class="ppressmd-form-field ppmd-date" data-config="%3$s">',
791
 
792
  $dateFormat = ! empty($custom_field['options']) ? $custom_field['options'] : 'Y-m-d';
793
 
794
+ $config = FieldsShortcodeCallback::date_picker_config($field_key, $dateFormat);
 
 
 
 
 
 
 
 
 
 
 
 
 
795
 
796
  printf(
797
  '<input type="text" name="%1$s" placeholder="%2$s" value="%4$s" class="ppressmd-form-field ppmd-date" data-config="%3$s">',
src/Themes/DragDrop/AbstractTheme.php CHANGED
@@ -65,7 +65,7 @@ abstract class AbstractTheme implements ThemeInterface
65
  */
66
  public function disallowed_settings_fields()
67
  {
68
- return ['pp-custom-html', 'pp-recaptcha', 'pp-user-avatar', 'pp-user-cover-image'];
69
  }
70
 
71
  public function minified_form_css()
65
  */
66
  public function disallowed_settings_fields()
67
  {
68
+ return ['pp-custom-html', 'pp-recaptcha', 'pp-user-avatar', 'pp-user-cover-image', $this->tag_name . '-cpf-agreeable'];
69
  }
70
 
71
  public function minified_form_css()
src/Themes/DragDrop/MemberDirectory/DefaultTemplate.php CHANGED
@@ -164,7 +164,7 @@ class DefaultTemplate extends AbstractMemberDirectoryTheme
164
  <?php if ($cover_image_enabled) : ?>
165
  <div class="ppmd-member-cover">
166
  <div class="ppress-md-member-cover-e">
167
- <a href="<?= $profile_url ?>" title="<?= $display_name ?>">
168
  <?php if ( ! empty($cover_image)) : ?>
169
  <?= sprintf('<img src="%s" alt="%s">', $cover_image, esc_attr($display_name)); ?>
170
  <?php endif; ?>
@@ -175,7 +175,7 @@ class DefaultTemplate extends AbstractMemberDirectoryTheme
175
 
176
  <?php if ($profile_picture_enabled) : ?>
177
  <div class="ppmd-member-photo">
178
- <a href="<?= $profile_url ?>" title="<?= $display_name ?>">
179
  [pp-user-avatar user="<?= $user->ID ?>" size=40 original=true]
180
  </a>
181
  </div>
164
  <?php if ($cover_image_enabled) : ?>
165
  <div class="ppmd-member-cover">
166
  <div class="ppress-md-member-cover-e">
167
+ <a href="<?= $profile_url ?>">
168
  <?php if ( ! empty($cover_image)) : ?>
169
  <?= sprintf('<img src="%s" alt="%s">', $cover_image, esc_attr($display_name)); ?>
170
  <?php endif; ?>
175
 
176
  <?php if ($profile_picture_enabled) : ?>
177
  <div class="ppmd-member-photo">
178
+ <a href="<?= $profile_url ?>">
179
  [pp-user-avatar user="<?= $user->ID ?>" size=40 original=true]
180
  </a>
181
  </div>
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit4aff4728cddd50f60d33ab8001f7c961::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit0e2a148cd7a3ad6c1666f831b46d84af::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit4aff4728cddd50f60d33ab8001f7c961
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit4aff4728cddd50f60d33ab8001f7c961
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInit4aff4728cddd50f60d33ab8001f7c961', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
- spl_autoload_unregister(array('ComposerAutoloaderInit4aff4728cddd50f60d33ab8001f7c961', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
- call_user_func(\Composer\Autoload\ComposerStaticInit4aff4728cddd50f60d33ab8001f7c961::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
@@ -53,19 +53,19 @@ class ComposerAutoloaderInit4aff4728cddd50f60d33ab8001f7c961
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInit4aff4728cddd50f60d33ab8001f7c961::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequire4aff4728cddd50f60d33ab8001f7c961($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
- function composerRequire4aff4728cddd50f60d33ab8001f7c961($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit0e2a148cd7a3ad6c1666f831b46d84af
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit0e2a148cd7a3ad6c1666f831b46d84af', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit0e2a148cd7a3ad6c1666f831b46d84af', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
+ call_user_func(\Composer\Autoload\ComposerStaticInit0e2a148cd7a3ad6c1666f831b46d84af::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
+ $includeFiles = Composer\Autoload\ComposerStaticInit0e2a148cd7a3ad6c1666f831b46d84af::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequire0e2a148cd7a3ad6c1666f831b46d84af($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
+ function composerRequire0e2a148cd7a3ad6c1666f831b46d84af($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit4aff4728cddd50f60d33ab8001f7c961
8
  {
9
  public static $files = array (
10
  'fda73876e8be17735f680f484cec1679' => __DIR__ . '/../..' . '/src/Functions/custom-settings-api.php',
@@ -287,9 +287,9 @@ class ComposerStaticInit4aff4728cddd50f60d33ab8001f7c961
287
  public static function getInitializer(ClassLoader $loader)
288
  {
289
  return \Closure::bind(function () use ($loader) {
290
- $loader->prefixLengthsPsr4 = ComposerStaticInit4aff4728cddd50f60d33ab8001f7c961::$prefixLengthsPsr4;
291
- $loader->prefixDirsPsr4 = ComposerStaticInit4aff4728cddd50f60d33ab8001f7c961::$prefixDirsPsr4;
292
- $loader->classMap = ComposerStaticInit4aff4728cddd50f60d33ab8001f7c961::$classMap;
293
 
294
  }, null, ClassLoader::class);
295
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit0e2a148cd7a3ad6c1666f831b46d84af
8
  {
9
  public static $files = array (
10
  'fda73876e8be17735f680f484cec1679' => __DIR__ . '/../..' . '/src/Functions/custom-settings-api.php',
287
  public static function getInitializer(ClassLoader $loader)
288
  {
289
  return \Closure::bind(function () use ($loader) {
290
+ $loader->prefixLengthsPsr4 = ComposerStaticInit0e2a148cd7a3ad6c1666f831b46d84af::$prefixLengthsPsr4;
291
+ $loader->prefixDirsPsr4 = ComposerStaticInit0e2a148cd7a3ad6c1666f831b46d84af::$prefixDirsPsr4;
292
+ $loader->classMap = ComposerStaticInit0e2a148cd7a3ad6c1666f831b46d84af::$classMap;
293
 
294
  }, null, ClassLoader::class);
295
  }
vendor/composer/installed.php CHANGED
@@ -5,7 +5,7 @@
5
  'type' => 'library',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
- 'reference' => '346f91d16f2cd79a05da281cd9dffe8d5f010982',
9
  'name' => '__root__',
10
  'dev' => false,
11
  ),
@@ -16,7 +16,7 @@
16
  'type' => 'library',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
19
- 'reference' => '346f91d16f2cd79a05da281cd9dffe8d5f010982',
20
  'dev_requirement' => false,
21
  ),
22
  'collizo4sky/persist-admin-notices-dismissal' => array(
5
  'type' => 'library',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
+ 'reference' => '49f359e9d4828fc7a8c3fa15340c4aacb1856599',
9
  'name' => '__root__',
10
  'dev' => false,
11
  ),
16
  'type' => 'library',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
19
+ 'reference' => '49f359e9d4828fc7a8c3fa15340c4aacb1856599',
20
  'dev_requirement' => false,
21
  ),
22
  'collizo4sky/persist-admin-notices-dismissal' => array(
wp-user-avatar.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: ProfilePress
4
  * Plugin URI: https://profilepress.net
5
  * Description: The modern WordPress membership and user profile plugin.
6
- * Version: 3.2.2
7
  * Author: ProfilePress Team
8
  * Author URI: https://profilepress.net
9
  * Text Domain: wp-user-avatar
@@ -14,7 +14,7 @@
14
  defined('ABSPATH') or die("No script kiddies please!");
15
 
16
  define('PROFILEPRESS_SYSTEM_FILE_PATH', __FILE__);
17
- define('PPRESS_VERSION_NUMBER', '3.2.2');
18
 
19
  require __DIR__ . '/vendor/autoload.php';
20
 
3
  * Plugin Name: ProfilePress
4
  * Plugin URI: https://profilepress.net
5
  * Description: The modern WordPress membership and user profile plugin.
6
+ * Version: 3.2.3
7
  * Author: ProfilePress Team
8
  * Author URI: https://profilepress.net
9
  * Text Domain: wp-user-avatar
14
  defined('ABSPATH') or die("No script kiddies please!");
15
 
16
  define('PROFILEPRESS_SYSTEM_FILE_PATH', __FILE__);
17
+ define('PPRESS_VERSION_NUMBER', '3.2.3');
18
 
19
  require __DIR__ . '/vendor/autoload.php';
20