Plugin Directory

Changeset 3447273


Ignore:
Timestamp:
01/26/2026 05:41:12 PM (2 months ago)
Author:
Collizo4sky
Message:

Bumped to 4.16.9

Location:
wp-user-avatar/trunk
Files:
23 edited

Legend:

Unmodified
Added
Removed
  • wp-user-avatar/trunk/assets/flatpickr/flatpickr.min.js

    r3366382 r3447273  
    1 var flatpickr=function(){"use strict";var e,t={};var n,a,i,o,r,l,c,s,d,u,f,m,g,p,h=(e||(e=1,n||(n=1,a||(a=1,i||(i=1,o||(o=1,r||(r=1,s={exports:{}},l||(l=1,s.exports=function(){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,i=arguments;clearTimeout(n),n=setTimeout((function(){return e.apply(a,i)}),t)}}var c=function(e){return e instanceof Array?e:[e]};function s(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 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=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}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((e.getHours()>=12?12:0)+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((e.getHours()>=12?12:0)+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:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",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:"",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)}},y=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,s=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 d=t||(n||a).dateFormat,u=String(e).trim();if("today"===u)l=new Date,i=!0;else if(n&&n.parseDate)l=n.parseDate(e,d);else if(/Z$/.test(u)||/GMT$/.test(u))l=new Date(e);else{for(var f=void 0,m=[],g=0,p=0,h="";g<d.length;g++){var w=d[g],b="\\"===w,y="\\"===d[g-1]||b;if(D[w]&&!y){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+=".")}l=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),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: "+s))}}};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 C=function(e,t,n){return 3600*e+60*t+n};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 E(p,v){var w={config:e(e({},a),T.defaultConfig),l10n:i};function E(){var e;return(null===(e=w.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function k(e){return e.bind(w)}function _(){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 O(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")),s=parseInt(a.value,10),d=s+c*(e.delta||(t?38===e.which?1:-1:0));if(void 0!==a.value&&2===a.value.length){var u=a===w.hourElement,f=a===w.minuteElement;d<i?(d=l+d+r(!u)+(r(u)&&r(!w.amPM)),f&&H(void 0,-1,w.hourElement)):d>l&&(d=a===w.hourElement?d-l-r(!w.amPM):i,f&&H(void 0,1,w.hourElement)),w.amPM&&u&&(1===c?d+s===23:Math.abs(d-s)>c)&&(w.amPM.textContent=w.l10n.amPM[r(w.amPM.textContent===w.l10n.amPM[0])]),a.value=o(d)}}(e);var a=w._input.value;I(),Me(),w._input.value!==a&&w._debouncedChange()}function I(){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),l=void 0!==w.config.maxTime||w.config.maxDate&&w.maxDateHasTime&&w.latestSelectedDateObj&&0===M(w.latestSelectedDateObj,w.config.maxDate,!0);if(void 0!==w.config.maxTime&&void 0!==w.config.minTime&&w.config.minTime>w.config.maxTime){var c=C(w.config.minTime.getHours(),w.config.minTime.getMinutes(),w.config.minTime.getSeconds()),s=C(w.config.maxTime.getHours(),w.config.maxTime.getMinutes(),w.config.maxTime.getSeconds()),d=C(n,a,i);if(d>s&&d<c){var u=function(e){var t=Math.floor(e/3600),n=(e-3600*t)/60;return[t,n,e-3600*t-60*n]}(c);n=u[0],a=u[1],i=u[2]}}else{if(l){var f=void 0!==w.config.maxTime?w.config.maxTime:w.config.maxDate;(n=Math.min(n,f.getHours()))===f.getHours()&&(a=Math.min(a,f.getMinutes())),a===f.getMinutes()&&(i=Math.min(i,f.getSeconds()))}if(o){var m=void 0!==w.config.minTime?w.config.minTime:w.config.minDate;(n=Math.max(n,m.getHours()))===m.getHours()&&a<m.getMinutes()&&(a=m.getMinutes()),a===m.getMinutes()&&(i=Math.max(i,m.getSeconds()))}}F(n,a,i)}}function S(e){var t=e||w.latestSelectedDateObj;t&&t instanceof Date&&F(t.getHours(),t.getMinutes(),t.getSeconds())}function F(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 P(e){var t=g(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&X(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,a)}}))}function N(){ve("onChange")}function Y(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&&(ve("onYearChange"),U()),!t||w.currentYear===a&&w.currentMonth===i||ve("onMonthChange"),w.redraw()}function j(e){var t=g(e);~t.className.indexOf("arrow")&&H(e,t.classList.contains("arrowUp")?1:-1)}function H(e,t,n){var a=e&&g(e),i=n||a&&a.parentNode&&a.parentNode.firstChild,o=De("increment");o.delta=t,i&&i.dispatchEvent(o)}function L(e,t,n,a){var i=ee(t,!0),o=d("span",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,we(t)&&(o.classList.add("selected"),w.selectedDateElem=o,"range"===w.config.mode&&(s(o,"startRange",w.selectedDates[0]&&0===M(t,w.selectedDates[0],!0)),s(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)&&!we(t)&&o.classList.add("inRange"),w.weekNumbers&&1===w.config.showMonths&&"prevMonthDay"!==e&&a%7==6&&w.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+w.config.getWeek(t)+"</span>"),ve("onDayCreate",o),o}function R(e){e.focus(),"range"===w.config.mode&&ie(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")&&ee(c.dateObj))return c}}function B(e,t){var n=E(),a=te(n||document.body),i=void 0!==e?e:a?n:void 0!==w.selectedDateElem&&te(w.selectedDateElem)?w.selectedDateElem:void 0!==w.todayDateElem&&te(w.todayDateElem)?w.todayDateElem:W(t>0?1:-1);void 0===i?w._input.focus():a?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,s=l;s>=0&&s<c&&s!=(t>0?c:-1);s+=i){var d=r.children[s];if(-1===d.className.indexOf("hidden")&&ee(d.dateObj)&&Math.abs(e.$i-s)>=Math.abs(t))return R(d)}w.changeMonth(i),B(W(i),0)}(i,t):R(i)}function J(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",s=a+1-n,u=0;s<=a;s++,u++)o.appendChild(L("flatpickr-day "+l,new Date(e,t-1,s),0,u));for(s=1;s<=i;s++,u++)o.appendChild(L("flatpickr-day",new Date(e,t,s),0,u));for(var f=i+1;f<=42-n&&(1===w.config.showMonths||u%7!=0);f++,u++)o.appendChild(L("flatpickr-day "+c,new Date(e,t+1,f%i),0,u));var m=d("div","dayContainer");return m.appendChild(o),m}function K(){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(J(n.getFullYear(),n.getMonth()))}w.daysContainer.appendChild(e),w.days=w.daysContainer.firstChild,"range"===w.config.mode&&1===w.selectedDates.length&&ie()}}function U(){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=d("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 $(){var e,t=d("div","flatpickr-month"),n=window.document.createDocumentFragment();w.config.showMonths>1||"static"===w.config.monthSelectorType?e=d("span","cur-month"):(w.monthsDropdownContainer=d("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),ve("onMonthChange")})),U(),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=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(){u(w.monthNav),w.monthNav.appendChild(w.prevMonthNav),w.config.showMonths&&(w.yearElements=[],w.monthElements=[]);for(var e=w.config.showMonths;e--;){var t=$();w.yearElements.push(t.yearElement),w.monthElements.push(t.monthElement),w.monthNav.appendChild(t.container)}w.monthNav.appendChild(w.nextMonthNav)}function V(){w.weekdayContainer?u(w.weekdayContainer):w.weekdayContainer=d("div","flatpickr-weekdays");for(var e=w.config.showMonths;e--;){var t=d("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,ve("onYearChange"),U()),K(),ve("onMonthChange"),be())}function Z(e){return w.calendarContainer.contains(e)}function Q(e){if(w.isOpen&&!w.config.inline){var t=g(e),n=Z(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))||n||Z(e.relatedTarget)),i=!w.config.ignoredFocusElements.some((function(e){return e.contains(t)}));a&&i&&(w.config.allowInput&&w.setDate(w._input.value,!1,w.config.altInput?w.config.altFormat:w.config.dateFormat),void 0!==w.timeContainer&&void 0!==w.minuteElement&&void 0!==w.hourElement&&""!==w.input.value&&void 0!==w.input.value&&O(),w.close(),w.config&&"range"===w.config.mode&&1===w.selectedDates.length&&w.clear(!1))}}function X(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(),ve("onYearChange"),U())}}function ee(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 te(e){return void 0!==w.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&w.daysContainer.contains(e)}function ne(e){var t=e.target===w._input,n=w._input.value.trimEnd()!==ye();!t||!n||e.relatedTarget&&Z(e.relatedTarget)||w.setDate(w._input.value,!0,e.target===w.altInput?w.config.altFormat:w.config.dateFormat)}function ae(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),w.close(),t.blur();w.open()}else if(Z(t)||i||o){var r=!!w.timeContainer&&w.timeContainer.contains(t);switch(e.keyCode){case 13:r?(e.preventDefault(),O(),ue()):fe(e);break;case 27:e.preventDefault(),ue();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{e.preventDefault();var l=E();if(void 0!==w.daysContainer&&(!1===a||l&&te(l))){var c=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),G(c),B(W(1),0)):B(void 0,c)}}break;case 38:case 40:e.preventDefault();var s=40===e.keyCode?1:-1;w.daysContainer&&void 0!==t.$i||t===w.input||t===w.altInput?e.ctrlKey?(e.stopPropagation(),X(w.currentYear-s),B(W(1),0)):r||B(void 0,7*s):t===w.currentYearElement?X(w.currentYear-s):w.config.enableTime&&(!r&&w.hourElement&&w.hourElement.focus(),O(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})),u=d.indexOf(t);if(-1!==u){var f=d[u+(e.shiftKey?-1:1)];e.preventDefault(),(f||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],I(),Me();break;case w.l10n.amPM[1].charAt(0):case w.l10n.amPM[1].charAt(0).toLowerCase():w.amPM.textContent=w.l10n.amPM[1],I(),Me()}(n||Z(t))&&ve("onKeyDown",e)}function ie(e,t){if(void 0===t&&(t="flatpickr-day"),1===w.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var n=e?e.dateObj.getTime():w.days.firstElementChild.dateObj.getTime(),a=w.parseDate(w.selectedDates[0],void 0,!0).getTime(),i=Math.min(n,w.selectedDates[0].getTime()),o=Math.max(n,w.selectedDates[0].getTime()),r=!1,l=0,c=0,s=i;s<o;s+=864e5)ee(new Date(s),!0)||(r=r||s>i&&s<o,s<a&&(!l||s>l)?l=s:s>a&&(!c||s<c)&&(c=s));Array.from(w.rContainer.querySelectorAll("*:nth-child(-n+"+w.config.showMonths+") > ."+t)).forEach((function(t){var i,o,s,d=t.dateObj.getTime(),u=l>0&&d<l||c>0&&d>c;if(u)return t.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){t.classList.remove(e)}));r&&!u||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){t.classList.remove(e)})),void 0!==e&&(e.classList.add(n<=w.selectedDates[0].getTime()?"startRange":"endRange"),a<n&&d===a?t.classList.add("startRange"):a>n&&d===a&&t.classList.add("endRange"),d>=l&&(0===c||d<=c)&&(o=a,s=n,(i=d)>Math.min(o,s)&&i<Math.max(o,s))&&t.classList.add("inRange")))}))}}function oe(){!w.isOpen||w.config.static||w.config.inline||se()}function re(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 ee(e)})),w.selectedDates.length||"min"!==e||S(n),Me()),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 le(){return w.config.wrap?p.querySelector("[data-input]"):p}function ce(){"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.D="("+w.l10n.weekdays.shorthand.join("|")+")",D.l="("+w.l10n.weekdays.longhand.join("|")+")",D.M="("+w.l10n.months.shorthand.join("|")+")",D.F="("+w.l10n.months.longhand.join("|")+")",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=y({config:w.config,l10n:w.l10n})}function se(e){if("function"!=typeof w.config.position){if(void 0!==w.calendarContainer){ve("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,d="above"===o||"below"!==o&&c<n&&l.top>n,u=window.pageYOffset+l.top+(d?-n-2:t.offsetHeight+2);if(s(w.calendarContainer,"arrowTop",!d),s(w.calendarContainer,"arrowBottom",d),!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),s(w.calendarContainer,"arrowLeft",!m&&!g),s(w.calendarContainer,"arrowCenter",m),s(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(s(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];if(n.cssRules){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,y=Math.max(0,b/2-a/2),M=D.cssRules.length,C="{left:"+l.left+"px;right:auto;}";s(w.calendarContainer,"rightMost",!1),s(w.calendarContainer,"centerMost",!0),D.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+C,M),w.calendarContainer.style.left=y+"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||(U(),be(),K())}function ue(){w._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(w.close,0):w.close()}function fe(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=we(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(I(),i){var r=w.currentYear!==a.getFullYear();w.currentYear=a.getFullYear(),w.currentMonth=a.getMonth(),r&&(ve("onYearChange"),U()),ve("onMonthChange")}if(be(),K(),Me(),i||"range"===w.config.mode||1!==w.config.showMonths?void 0!==w.selectedDateElem&&void 0===w.hourElement&&w.selectedDateElem&&w.selectedDateElem.focus():R(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)&&ue()}N()}}w.parseDate=y({config:w.config,l10n:w.l10n}),w._handlers=[],w.pluginElements=[],w.loadedPlugins=[],w._bind=A,w._setHoursFromDate=S,w._positionCalendar=se,w.changeMonth=G,w.changeYear=X,w.clear=function(e,t){if(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()),!0===w.config.enableTime){var n=x(w.config);F(n.hours,n.minutes,n.seconds)}w.redraw(),e&&ve("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")),ve("onClose")},w.onMouseOver=ie,w._createElement=d,w.createDay=L,w.destroy=function(){void 0!==w.config&&ve("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")),
    2 ["_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=ee,w.jumpToDate=Y,w.updateValue=Me,w.open=function(e,t){if(void 0===t&&(t=w._positionElement),!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 ve("onOpen")}if(!w._input.disabled&&!w.config.inline){var a=w.isOpen;w.isOpen=!0,a||(w.calendarContainer.classList.add("open"),w._input.classList.add("active"),ve("onOpen"),se(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!==me[a]&&me[a].forEach((function(e){return e()}));else w.config[e]=t,void 0!==me[e]?me[e].forEach((function(e){return e()})):n.indexOf(e)>-1&&(w.config[e]=c(t));w.redraw(),Me(!0)},w.setDate=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=w.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return w.clear(t);ge(e,n),w.latestSelectedDateObj=w.selectedDates[w.selectedDates.length-1],w.redraw(),Y(void 0,t),S(),0===w.selectedDates.length&&w.clear(!1),Me(t),t&&ve("onChange")},w.toggle=function(e){if(!0===w.isOpen)return w.close();w.open(e)};var me={locale:[ce,z],showMonths:[q,_,V],minDate:[Y],maxDate:[Y],positionElement:[he],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 ge(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&&ee(e,!1)})),"range"===w.config.mode&&w.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function pe(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 he(){w._positionElement=w.config.positionElement||w._input}function ve(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(De("change")),w.input.dispatchEvent(De("input")))}}function De(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function we(e){for(var t=0;t<w.selectedDates.length;t++){var n=w.selectedDates[t];if(n instanceof Date&&0===M(n,e))return""+t}return!1}function be(){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 ye(e){var t=e||(w.config.altInput?w.config.altFormat:w.config.dateFormat);return w.selectedDates.map((function(e){return w.formatDate(e,t)})).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 Me(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=ye(w.config.dateFormat),void 0!==w.altInput&&(w.altInput.value=ye(w.config.altFormat)),!1!==e&&ve("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=pe(e)}}),Object.defineProperty(w.config,"disable",{get:function(){return w.config._disable},set:function(e){w.config._disable=pe(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 s=T.defaultConfig.altFormat||a.altFormat;o.altFormat=i.noCalendar||r?"h:i"+(i.enableSeconds?":S K":" K"):s+" h:i"+(i.enableSeconds?":S":"")+" K"}Object.defineProperty(w.config,"minDate",{get:function(){return w.config._minDate},set:re("min")}),Object.defineProperty(w.config,"maxDate",{get:function(){return w.config._maxDate},set:re("max")});var d=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:d("min")}),Object.defineProperty(w.config,"maxTime",{get:function(){return w.config._maxTime},set:d("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]];for(n.filter((function(e){return void 0!==w.config[e]})).forEach((function(e){w.config[e]=c(w.config[e]||[]).map(k)})),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),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(k).concat(w.config[m]):void 0===i[m]&&(w.config[m]=f[m])}i.altInputClass||(w.config.altInputClass=le().className+" "+w.config.altInputClass),ve("onParseConfig")}(),ce(),w.input=le(),w.input?(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=d(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"),he()):w.config.errorHandler(new Error("Invalid input element specified")),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&&ge(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=d("div","flatpickr-calendar"),w.calendarContainer.tabIndex=-1,!w.config.noCalendar){if(e.appendChild((w.monthNav=d("div","flatpickr-months"),w.yearElements=[],w.monthElements=[],w.prevMonthNav=d("span","flatpickr-prev-month"),w.prevMonthNav.innerHTML=w.config.prevArrow,w.nextMonthNav=d("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&&(s(w.prevMonthNav,"flatpickr-disabled",e),w.__hidePrevMonthArrow=e)}}),Object.defineProperty(w,"_hideNextMonthArrow",{get:function(){return w.__hideNextMonthArrow},set:function(e){w.__hideNextMonthArrow!==e&&(s(w.nextMonthNav,"flatpickr-disabled",e),w.__hideNextMonthArrow=e)}}),w.currentYearElement=w.yearElements[0],be(),w.monthNav)),w.innerContainer=d("div","flatpickr-innerContainer"),w.config.weekNumbers){var t=function(){w.calendarContainer.classList.add("hasWeeks");var e=d("div","flatpickr-weekwrapper");e.appendChild(d("span","flatpickr-weekday",w.l10n.weekAbbreviation));var t=d("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=d("div","flatpickr-rContainer"),w.rContainer.appendChild(V()),w.daysContainer||(w.daysContainer=d("div","flatpickr-days"),w.daysContainer.tabIndex=-1),K(),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=d("div","flatpickr-time"),w.timeContainer.tabIndex=-1;var t=d("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});if(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"),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(d("span","flatpickr-time-separator",":")),w.timeContainer.appendChild(i)}return w.config.time_24hr||(w.amPM=d("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)),w.timeContainer}()),s(w.calendarContainer,"rangeMode","range"===w.config.mode),s(w.calendarContainer,"animate",!0===w.config.animate),s(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=d("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(){if(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])}))})),w.isMobile)!function(){var e=w.config.enableTime?w.config.noCalendar?"time":"datetime-local":"date";w.mobileInput=d("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),ve("onChange"),ve("onClose")}))}();else{var e=l(oe,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&&ie(g(e))})),A(w._input,"keydown",ae),void 0!==w.calendarContainer&&A(w.calendarContainer,"keydown",ae),w.config.inline||w.config.static||A(window,"resize",e),void 0!==window.ontouchstart?A(window.document,"touchstart",Q):A(window.document,"mousedown",Q),A(window.document,"focus",Q,{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"],P),A(w.daysContainer,"click",fe)),void 0!==w.timeContainer&&void 0!==w.minuteElement&&void 0!==w.hourElement&&(A(w.timeContainer,["increment"],O),A(w.timeContainer,"blur",O,{capture:!0}),A(w.timeContainer,"click",j),A([w.hourElement,w.minuteElement],["focus","click"],(function(e){return g(e).select()})),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){O(e)}))),w.config.allowInput&&A(w._input,"blur",ne)}}(),(w.selectedDates.length||w.config.noCalendar)&&(w.config.enableTime&&S(w.config.noCalendar?w.latestSelectedDateObj:void 0),Me(!1)),_();var t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!w.isMobile&&t&&se(),ve("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}"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}),"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=y({}),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}()),(c=s.exports)&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")&&c.default),(d={})&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")&&d.default),(u={})&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")&&u.default),(f={})&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")&&f.default),(m={})&&m.__esModule&&Object.prototype.hasOwnProperty.call(m,"default")&&m.default),(g={})&&g.__esModule&&Object.prototype.hasOwnProperty.call(g,"default")&&g.default),t);return(p=h)&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p}();
     1var flatpickr=function(){"use strict";var e,t={};var n,a,o,i,r,l,c,s,d,u,f,m,g,p,h,v,D,w,y,b,M,C,x=(e||(e=1,n||(n=1,a||(a=1,o||(o=1,i||(i=1,r||(r=1,l||(l=1,c||(c=1,s||(s=1,d||(d=1,m={exports:{}},u||(u=1,m.exports=function(){var e=function(){return(e=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);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),o=0;for(t=0;t<n;t++)for(var i=arguments[t],r=0,l=i.length;r<l;r++,o++)a[o]=i[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},o={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},i=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,o=arguments;clearTimeout(n),n=setTimeout((function(){return e.apply(a,o)}),t)}}var c=function(e){return e instanceof Array?e:[e]};function s(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 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=d("div","numInputWrapper"),a=d("input","numInput "+e),o=d("span","arrowUp"),i=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(o),n.appendChild(i),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((e.getHours()>=12?12:0)+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),o=new Date(e.getFullYear(),0,2+7*(a-1),0,0,0,0);return o.setDate(o.getDate()-o.getDay()+n.firstDayOfWeek),o},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((e.getHours()>=12?12:0)+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:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",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:"",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 i(w.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[r(e.getHours()>11)]},M:function(e,t){return h(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 i(e.getFullYear(),4)},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)}},y=function(e){var t=e.config,n=void 0===t?a:t,i=e.l10n,r=void 0===i?o:i,l=e.isMobile,c=void 0!==l&&l;return function(e,t,a){var o=a||r;return void 0===n.formatDate||c?t.split("").map((function(t,a,i){return w[t]&&"\\"!==i[a-1]?w[t](e,o,n):"\\"!==t?t:""})).join(""):n.formatDate(e,t,o)}},b=function(e){var t=e.config,n=void 0===t?a:t,i=e.l10n,r=void 0===i?o:i;return function(e,t,o,i){if(0===e||e){var l,c=i||r,s=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 d=t||(n||a).dateFormat,u=String(e).trim();if("today"===u)l=new Date,o=!0;else if(n&&n.parseDate)l=n.parseDate(e,d);else if(/Z$/.test(u)||/GMT$/.test(u))l=new Date(e);else{for(var f=void 0,m=[],g=0,p=0,h="";g<d.length;g++){var w=d[g],y="\\"===w,b="\\"===d[g-1]||y;if(D[w]&&!b){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 y||(h+=".")}l=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),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===o&&l.setHours(0,0,0,0),l;n.errorHandler(new Error("Invalid date provided: "+s))}}};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 C=function(e,t,n){return 3600*e+60*t+n};function x(e){var t=e.defaultHour,n=e.defaultMinute,a=e.defaultSeconds;if(void 0!==e.minDate){var o=e.minDate.getHours(),i=e.minDate.getMinutes(),r=e.minDate.getSeconds();t<o&&(t=o),t===o&&n<i&&(n=i),t===o&&n===i&&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 E(p,v){var w={config:e(e({},a),T.defaultConfig),l10n:o};function E(){var e;return(null===(e=w.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function k(e){return e.bind(w)}function _(){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 O(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 o=parseFloat(a.getAttribute("min")),l=parseFloat(a.getAttribute("max")),c=parseFloat(a.getAttribute("step")),s=parseInt(a.value,10),d=s+c*(e.delta||(t?38===e.which?1:-1:0));if(void 0!==a.value&&2===a.value.length){var u=a===w.hourElement,f=a===w.minuteElement;d<o?(d=l+d+r(!u)+(r(u)&&r(!w.amPM)),f&&H(void 0,-1,w.hourElement)):d>l&&(d=a===w.hourElement?d-l-r(!w.amPM):o,f&&H(void 0,1,w.hourElement)),w.amPM&&u&&(1===c?d+s===23:Math.abs(d-s)>c)&&(w.amPM.textContent=w.l10n.amPM[r(w.amPM.textContent===w.l10n.amPM[0])]),a.value=i(d)}}(e);var a=w._input.value;I(),Me(),w._input.value!==a&&w._debouncedChange()}function I(){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,o=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 i=void 0!==w.config.minTime||w.config.minDate&&w.minDateHasTime&&w.latestSelectedDateObj&&0===M(w.latestSelectedDateObj,w.config.minDate,!0),l=void 0!==w.config.maxTime||w.config.maxDate&&w.maxDateHasTime&&w.latestSelectedDateObj&&0===M(w.latestSelectedDateObj,w.config.maxDate,!0);if(void 0!==w.config.maxTime&&void 0!==w.config.minTime&&w.config.minTime>w.config.maxTime){var c=C(w.config.minTime.getHours(),w.config.minTime.getMinutes(),w.config.minTime.getSeconds()),s=C(w.config.maxTime.getHours(),w.config.maxTime.getMinutes(),w.config.maxTime.getSeconds()),d=C(n,a,o);if(d>s&&d<c){var u=function(e){var t=Math.floor(e/3600),n=(e-3600*t)/60;return[t,n,e-3600*t-60*n]}(c);n=u[0],a=u[1],o=u[2]}}else{if(l){var f=void 0!==w.config.maxTime?w.config.maxTime:w.config.maxDate;(n=Math.min(n,f.getHours()))===f.getHours()&&(a=Math.min(a,f.getMinutes())),a===f.getMinutes()&&(o=Math.min(o,f.getSeconds()))}if(i){var m=void 0!==w.config.minTime?w.config.minTime:w.config.minDate;(n=Math.max(n,m.getHours()))===m.getHours()&&a<m.getMinutes()&&(a=m.getMinutes()),a===m.getMinutes()&&(o=Math.max(o,m.getSeconds()))}}F(n,a,o)}}function S(e){var t=e||w.latestSelectedDateObj;t&&t instanceof Date&&F(t.getHours(),t.getMinutes(),t.getSeconds())}function F(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=i(w.config.time_24hr?e:(12+e)%12+12*r(e%12==0)),w.minuteElement.value=i(t),void 0!==w.amPM&&(w.amPM.textContent=w.l10n.amPM[r(e>=12)]),void 0!==w.secondElement&&(w.secondElement.value=i(n)))}function P(e){var t=g(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&X(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,a)}}))}function N(){ve("onChange")}function Y(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,o=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&&(ve("onYearChange"),U()),!t||w.currentYear===a&&w.currentMonth===o||ve("onMonthChange"),w.redraw()}function j(e){var t=g(e);~t.className.indexOf("arrow")&&H(e,t.classList.contains("arrowUp")?1:-1)}function H(e,t,n){var a=e&&g(e),o=n||a&&a.parentNode&&a.parentNode.firstChild,i=De("increment");i.delta=t,o&&o.dispatchEvent(i)}function L(e,t,n,a){var o=ee(t,!0),i=d("span",e,t.getDate().toString());return i.dateObj=t,i.$i=a,i.setAttribute("aria-label",w.formatDate(t,w.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===M(t,w.now)&&(w.todayDateElem=i,i.classList.add("today"),i.setAttribute("aria-current","date")),o?(i.tabIndex=-1,we(t)&&(i.classList.add("selected"),w.selectedDateElem=i,"range"===w.config.mode&&(s(i,"startRange",w.selectedDates[0]&&0===M(t,w.selectedDates[0],!0)),s(i,"endRange",w.selectedDates[1]&&0===M(t,w.selectedDates[1],!0)),"nextMonthDay"===e&&i.classList.add("inRange")))):i.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)&&!we(t)&&i.classList.add("inRange"),w.weekNumbers&&1===w.config.showMonths&&"prevMonthDay"!==e&&a%7==6&&w.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+w.config.getWeek(t)+"</span>"),ve("onDayCreate",i),i}function R(e){e.focus(),"range"===w.config.mode&&oe(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 o=w.daysContainer.children[a],i=e>0?0:o.children.length-1,r=e>0?o.children.length:-1,l=i;l!=r;l+=e){var c=o.children[l];if(-1===c.className.indexOf("hidden")&&ee(c.dateObj))return c}}function B(e,t){var n=E(),a=te(n||document.body),o=void 0!==e?e:a?n:void 0!==w.selectedDateElem&&te(w.selectedDateElem)?w.selectedDateElem:void 0!==w.todayDateElem&&te(w.todayDateElem)?w.todayDateElem:W(t>0?1:-1);void 0===o?w._input.focus():a?function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():w.currentMonth,a=t>0?w.config.showMonths:-1,o=t>0?1:-1,i=n-w.currentMonth;i!=a;i+=o)for(var r=w.daysContainer.children[i],l=n-w.currentMonth===i?e.$i+t:t<0?r.children.length-1:0,c=r.children.length,s=l;s>=0&&s<c&&s!=(t>0?c:-1);s+=o){var d=r.children[s];if(-1===d.className.indexOf("hidden")&&ee(d.dateObj)&&Math.abs(e.$i-s)>=Math.abs(t))return R(d)}w.changeMonth(o),B(W(o),0)}(o,t):R(o)}function J(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),o=w.utils.getDaysInMonth(t,e),i=window.document.createDocumentFragment(),r=w.config.showMonths>1,l=r?"prevMonthDay hidden":"prevMonthDay",c=r?"nextMonthDay hidden":"nextMonthDay",s=a+1-n,u=0;s<=a;s++,u++)i.appendChild(L("flatpickr-day "+l,new Date(e,t-1,s),0,u));for(s=1;s<=o;s++,u++)i.appendChild(L("flatpickr-day",new Date(e,t,s),0,u));for(var f=o+1;f<=42-n&&(1===w.config.showMonths||u%7!=0);f++,u++)i.appendChild(L("flatpickr-day "+c,new Date(e,t+1,f%o),0,u));var m=d("div","dayContainer");return m.appendChild(i),m}function K(){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(J(n.getFullYear(),n.getMonth()))}w.daysContainer.appendChild(e),w.days=w.daysContainer.firstChild,"range"===w.config.mode&&1===w.selectedDates.length&&oe()}}function U(){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=d("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 $(){var e,t=d("div","flatpickr-month"),n=window.document.createDocumentFragment();w.config.showMonths>1||"static"===w.config.monthSelectorType?e=d("span","cur-month"):(w.monthsDropdownContainer=d("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),ve("onMonthChange")})),U(),e=w.monthsDropdownContainer);var a=m("cur-year",{tabindex:"-1"}),o=a.getElementsByTagName("input")[0];o.setAttribute("aria-label",w.l10n.yearAriaLabel),w.config.minDate&&o.setAttribute("min",w.config.minDate.getFullYear().toString()),w.config.maxDate&&(o.setAttribute("max",w.config.maxDate.getFullYear().toString()),o.disabled=!!w.config.minDate&&w.config.minDate.getFullYear()===w.config.maxDate.getFullYear());var i=d("div","flatpickr-current-month");return i.appendChild(e),i.appendChild(a),n.appendChild(i),t.appendChild(n),{container:t,yearElement:o,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=$();w.yearElements.push(t.yearElement),w.monthElements.push(t.monthElement),w.monthNav.appendChild(t.container)}w.monthNav.appendChild(w.nextMonthNav)}function V(){w.weekdayContainer?u(w.weekdayContainer):w.weekdayContainer=d("div","flatpickr-weekdays");for(var e=w.config.showMonths;e--;){var t=d("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,ve("onYearChange"),U()),K(),ve("onMonthChange"),ye())}function Z(e){return w.calendarContainer.contains(e)}function Q(e){if(w.isOpen&&!w.config.inline){var t=g(e),n=Z(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))||n||Z(e.relatedTarget)),o=!w.config.ignoredFocusElements.some((function(e){return e.contains(t)}));a&&o&&(w.config.allowInput&&w.setDate(w._input.value,!1,w.config.altInput?w.config.altFormat:w.config.dateFormat),void 0!==w.timeContainer&&void 0!==w.minuteElement&&void 0!==w.hourElement&&""!==w.input.value&&void 0!==w.input.value&&O(),w.close(),w.config&&"range"===w.config.mode&&1===w.selectedDates.length&&w.clear(!1))}}function X(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(),ve("onYearChange"),U())}}function ee(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 o=!!w.config.enable,i=null!==(n=w.config.enable)&&void 0!==n?n:w.config.disable,r=0,l=void 0;r<i.length;r++){if("function"==typeof(l=i[r])&&l(a))return o;if(l instanceof Date&&void 0!==a&&l.getTime()===a.getTime())return o;if("string"==typeof l){var c=w.parseDate(l,void 0,!0);return c&&c.getTime()===a.getTime()?o:!o}if("object"==typeof l&&void 0!==a&&l.from&&l.to&&a.getTime()>=l.from.getTime()&&a.getTime()<=l.to.getTime())return o}return!o}function te(e){return void 0!==w.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&w.daysContainer.contains(e)}function ne(e){var t=e.target===w._input,n=w._input.value.trimEnd()!==be();!t||!n||e.relatedTarget&&Z(e.relatedTarget)||w.setDate(w._input.value,!0,e.target===w.altInput?w.config.altFormat:w.config.dateFormat)}function ae(e){var t=g(e),n=w.config.wrap?p.contains(t):t===w._input,a=w.config.allowInput,o=w.isOpen&&(!a||!n),i=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),w.close(),t.blur();w.open()}else if(Z(t)||o||i){var r=!!w.timeContainer&&w.timeContainer.contains(t);switch(e.keyCode){case 13:r?(e.preventDefault(),O(),ue()):fe(e);break;case 27:e.preventDefault(),ue();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{e.preventDefault();var l=E();if(void 0!==w.daysContainer&&(!1===a||l&&te(l))){var c=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),G(c),B(W(1),0)):B(void 0,c)}}break;case 38:case 40:e.preventDefault();var s=40===e.keyCode?1:-1;w.daysContainer&&void 0!==t.$i||t===w.input||t===w.altInput?e.ctrlKey?(e.stopPropagation(),X(w.currentYear-s),B(W(1),0)):r||B(void 0,7*s):t===w.currentYearElement?X(w.currentYear-s):w.config.enableTime&&(!r&&w.hourElement&&w.hourElement.focus(),O(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})),u=d.indexOf(t);if(-1!==u){var f=d[u+(e.shiftKey?-1:1)];e.preventDefault(),(f||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],I(),Me();break;case w.l10n.amPM[1].charAt(0):case w.l10n.amPM[1].charAt(0).toLowerCase():w.amPM.textContent=w.l10n.amPM[1],I(),Me()}(n||Z(t))&&ve("onKeyDown",e)}function oe(e,t){if(void 0===t&&(t="flatpickr-day"),1===w.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var n=e?e.dateObj.getTime():w.days.firstElementChild.dateObj.getTime(),a=w.parseDate(w.selectedDates[0],void 0,!0).getTime(),o=Math.min(n,w.selectedDates[0].getTime()),i=Math.max(n,w.selectedDates[0].getTime()),r=!1,l=0,c=0,s=o;s<i;s+=864e5)ee(new Date(s),!0)||(r=r||s>o&&s<i,s<a&&(!l||s>l)?l=s:s>a&&(!c||s<c)&&(c=s));Array.from(w.rContainer.querySelectorAll("*:nth-child(-n+"+w.config.showMonths+") > ."+t)).forEach((function(t){var o,i,s,d=t.dateObj.getTime(),u=l>0&&d<l||c>0&&d>c;if(u)return t.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){t.classList.remove(e)}));r&&!u||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){t.classList.remove(e)})),void 0!==e&&(e.classList.add(n<=w.selectedDates[0].getTime()?"startRange":"endRange"),a<n&&d===a?t.classList.add("startRange"):a>n&&d===a&&t.classList.add("endRange"),d>=l&&(0===c||d<=c)&&(i=a,s=n,(o=d)>Math.min(i,s)&&o<Math.max(i,s))&&t.classList.add("inRange")))}))}}function ie(){!w.isOpen||w.config.static||w.config.inline||se()}function re(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 ee(e)})),w.selectedDates.length||"min"!==e||S(n),Me()),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 le(){return w.config.wrap?p.querySelector("[data-input]"):p}function ce(){"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.D="("+w.l10n.weekdays.shorthand.join("|")+")",D.l="("+w.l10n.weekdays.longhand.join("|")+")",D.M="("+w.l10n.months.shorthand.join("|")+")",D.F="("+w.l10n.months.longhand.join("|")+")",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=y(w),w.parseDate=b({config:w.config,l10n:w.l10n})}function se(e){if("function"!=typeof w.config.position){if(void 0!==w.calendarContainer){ve("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,o=w.config.position.split(" "),i=o[0],r=o.length>1?o[1]:null,l=t.getBoundingClientRect(),c=window.innerHeight-l.bottom,d="above"===i||"below"!==i&&c<n&&l.top>n,u=window.pageYOffset+l.top+(d?-n-2:t.offsetHeight+2);if(s(w.calendarContainer,"arrowTop",!d),s(w.calendarContainer,"arrowBottom",d),!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),s(w.calendarContainer,"arrowLeft",!m&&!g),s(w.calendarContainer,"arrowCenter",m),s(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(s(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];if(n.cssRules){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 y=window.document.body.offsetWidth,b=Math.max(0,y/2-a/2),M=D.cssRules.length,C="{left:"+l.left+"px;right:auto;}";s(w.calendarContainer,"rightMost",!1),s(w.calendarContainer,"centerMost",!0),D.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+C,M),w.calendarContainer.style.left=b+"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||(U(),ye(),K())}function ue(){w._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(w.close,0):w.close()}function fe(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()),o=(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 i=we(a);i?w.selectedDates.splice(parseInt(i),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(I(),o){var r=w.currentYear!==a.getFullYear();w.currentYear=a.getFullYear(),w.currentMonth=a.getMonth(),r&&(ve("onYearChange"),U()),ve("onMonthChange")}if(ye(),K(),Me(),o||"range"===w.config.mode||1!==w.config.showMonths?void 0!==w.selectedDateElem&&void 0===w.hourElement&&w.selectedDateElem&&w.selectedDateElem.focus():R(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)&&ue()}N()}}w.parseDate=b({config:w.config,l10n:w.l10n}),w._handlers=[],w.pluginElements=[],w.loadedPlugins=[],w._bind=A,w._setHoursFromDate=S,w._positionCalendar=se,w.changeMonth=G,w.changeYear=X,w.clear=function(e,t){if(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()),!0===w.config.enableTime){var n=x(w.config);F(n.hours,n.minutes,n.seconds)}w.redraw(),e&&ve("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")),ve("onClose")},w.onMouseOver=oe,w._createElement=d,w.createDay=L,w.destroy=function(){void 0!==w.config&&ve("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")),
     2["_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=ee,w.jumpToDate=Y,w.updateValue=Me,w.open=function(e,t){if(void 0===t&&(t=w._positionElement),!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 ve("onOpen")}if(!w._input.disabled&&!w.config.inline){var a=w.isOpen;w.isOpen=!0,a||(w.calendarContainer.classList.add("open"),w._input.classList.add("active"),ve("onOpen"),se(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!==me[a]&&me[a].forEach((function(e){return e()}));else w.config[e]=t,void 0!==me[e]?me[e].forEach((function(e){return e()})):n.indexOf(e)>-1&&(w.config[e]=c(t));w.redraw(),Me(!0)},w.setDate=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=w.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return w.clear(t);ge(e,n),w.latestSelectedDateObj=w.selectedDates[w.selectedDates.length-1],w.redraw(),Y(void 0,t),S(),0===w.selectedDates.length&&w.clear(!1),Me(t),t&&ve("onChange")},w.toggle=function(e){if(!0===w.isOpen)return w.close();w.open(e)};var me={locale:[ce,z],showMonths:[q,_,V],minDate:[Y],maxDate:[Y],positionElement:[he],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 ge(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&&ee(e,!1)})),"range"===w.config.mode&&w.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function pe(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 he(){w._positionElement=w.config.positionElement||w._input}function ve(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(De("change")),w.input.dispatchEvent(De("input")))}}function De(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function we(e){for(var t=0;t<w.selectedDates.length;t++){var n=w.selectedDates[t];if(n instanceof Date&&0===M(n,e))return""+t}return!1}function ye(){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 be(e){var t=e||(w.config.altInput?w.config.altFormat:w.config.dateFormat);return w.selectedDates.map((function(e){return w.formatDate(e,t)})).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 Me(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=be(w.config.dateFormat),void 0!==w.altInput&&(w.altInput.value=be(w.config.altFormat)),!1!==e&&ve("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"],o=e(e({},JSON.parse(JSON.stringify(p.dataset||{}))),v),i={};w.config.parseDate=o.parseDate,w.config.formatDate=o.formatDate,Object.defineProperty(w.config,"enable",{get:function(){return w.config._enable},set:function(e){w.config._enable=pe(e)}}),Object.defineProperty(w.config,"disable",{get:function(){return w.config._disable},set:function(e){w.config._disable=pe(e)}});var r="time"===o.mode;if(!o.dateFormat&&(o.enableTime||r)){var l=T.defaultConfig.dateFormat||a.dateFormat;i.dateFormat=o.noCalendar||r?"H:i"+(o.enableSeconds?":S":""):l+" H:i"+(o.enableSeconds?":S":"")}if(o.altInput&&(o.enableTime||r)&&!o.altFormat){var s=T.defaultConfig.altFormat||a.altFormat;i.altFormat=o.noCalendar||r?"h:i"+(o.enableSeconds?":S K":" K"):s+" h:i"+(o.enableSeconds?":S":"")+" K"}Object.defineProperty(w.config,"minDate",{get:function(){return w.config._minDate},set:re("min")}),Object.defineProperty(w.config,"maxDate",{get:function(){return w.config._maxDate},set:re("max")});var d=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:d("min")}),Object.defineProperty(w.config,"maxTime",{get:function(){return w.config._maxTime},set:d("max")}),"time"===o.mode&&(w.config.noCalendar=!0,w.config.enableTime=!0),Object.assign(w.config,i,o);for(var u=0;u<t.length;u++)w.config[t[u]]=!0===w.config[t[u]]||"true"===w.config[t[u]];for(n.filter((function(e){return void 0!==w.config[e]})).forEach((function(e){w.config[e]=c(w.config[e]||[]).map(k)})),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),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(k).concat(w.config[m]):void 0===o[m]&&(w.config[m]=f[m])}o.altInputClass||(w.config.altInputClass=le().className+" "+w.config.altInputClass),ve("onParseConfig")}(),ce(),w.input=le(),w.input?(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=d(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"),he()):w.config.errorHandler(new Error("Invalid input element specified")),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&&ge(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=d("div","flatpickr-calendar"),w.calendarContainer.tabIndex=-1,!w.config.noCalendar){if(e.appendChild((w.monthNav=d("div","flatpickr-months"),w.yearElements=[],w.monthElements=[],w.prevMonthNav=d("span","flatpickr-prev-month"),w.prevMonthNav.innerHTML=w.config.prevArrow,w.nextMonthNav=d("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&&(s(w.prevMonthNav,"flatpickr-disabled",e),w.__hidePrevMonthArrow=e)}}),Object.defineProperty(w,"_hideNextMonthArrow",{get:function(){return w.__hideNextMonthArrow},set:function(e){w.__hideNextMonthArrow!==e&&(s(w.nextMonthNav,"flatpickr-disabled",e),w.__hideNextMonthArrow=e)}}),w.currentYearElement=w.yearElements[0],ye(),w.monthNav)),w.innerContainer=d("div","flatpickr-innerContainer"),w.config.weekNumbers){var t=function(){w.calendarContainer.classList.add("hasWeeks");var e=d("div","flatpickr-weekwrapper");e.appendChild(d("span","flatpickr-weekday",w.l10n.weekAbbreviation));var t=d("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=d("div","flatpickr-rContainer"),w.rContainer.appendChild(V()),w.daysContainer||(w.daysContainer=d("div","flatpickr-days"),w.daysContainer.tabIndex=-1),K(),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=d("div","flatpickr-time"),w.timeContainer.tabIndex=-1;var t=d("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});if(w.minuteElement=a.getElementsByTagName("input")[0],w.hourElement.tabIndex=w.minuteElement.tabIndex=-1,w.hourElement.value=i(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=i(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"),w.config.enableSeconds){w.timeContainer.classList.add("hasSeconds");var o=m("flatpickr-second");w.secondElement=o.getElementsByTagName("input")[0],w.secondElement.value=i(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(d("span","flatpickr-time-separator",":")),w.timeContainer.appendChild(o)}return w.config.time_24hr||(w.amPM=d("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)),w.timeContainer}()),s(w.calendarContainer,"rangeMode","range"===w.config.mode),s(w.calendarContainer,"animate",!0===w.config.animate),s(w.calendarContainer,"multiMonth",w.config.showMonths>1),w.calendarContainer.appendChild(e);var o=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&&(!o&&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=d("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(){if(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])}))})),w.isMobile)!function(){var e=w.config.enableTime?w.config.noCalendar?"time":"datetime-local":"date";w.mobileInput=d("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),ve("onChange"),ve("onClose")}))}();else{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&&oe(g(e))})),A(w._input,"keydown",ae),void 0!==w.calendarContainer&&A(w.calendarContainer,"keydown",ae),w.config.inline||w.config.static||A(window,"resize",e),void 0!==window.ontouchstart?A(window.document,"touchstart",Q):A(window.document,"mousedown",Q),A(window.document,"focus",Q,{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"],P),A(w.daysContainer,"click",fe)),void 0!==w.timeContainer&&void 0!==w.minuteElement&&void 0!==w.hourElement&&(A(w.timeContainer,["increment"],O),A(w.timeContainer,"blur",O,{capture:!0}),A(w.timeContainer,"click",j),A([w.hourElement,w.minuteElement],["focus","click"],(function(e){return g(e).select()})),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){O(e)}))),w.config.allowInput&&A(w._input,"blur",ne)}}(),(w.selectedDates.length||w.config.noCalendar)&&(w.config.enableTime&&S(w.config.noCalendar?w.latestSelectedDateObj:void 0),Me(!1)),_();var t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!w.isMobile&&t&&se(),ve("onReady")}(),w}function k(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),a=[],o=0;o<n.length;o++){var i=n[o];try{if(null!==i.getAttribute("data-fp-omit"))continue;void 0!==i._flatpickr&&(i._flatpickr.destroy(),i._flatpickr=void 0),i._flatpickr=E(i,t||{}),a.push(i._flatpickr)}catch(e){console.error(e)}}return 1===a.length?a[0]: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]}))},o=0,i=t;o<i.length;o++)a(i[o]);return e}),"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({},o),default:e({},o)},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=b({}),T.formatDate=y({}),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}()),(f=m.exports)&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")&&f.default),(g={})&&g.__esModule&&Object.prototype.hasOwnProperty.call(g,"default")&&g.default),(p={})&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")&&p.default),(h={})&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")&&h.default),(v={})&&v.__esModule&&Object.prototype.hasOwnProperty.call(v,"default")&&v.default),(D={})&&D.__esModule&&Object.prototype.hasOwnProperty.call(D,"default")&&D.default),(w={})&&w.__esModule&&Object.prototype.hasOwnProperty.call(w,"default")&&w.default),(y={})&&y.__esModule&&Object.prototype.hasOwnProperty.call(y,"default")&&y.default),(b={})&&b.__esModule&&Object.prototype.hasOwnProperty.call(b,"default")&&b.default),(M={})&&M.__esModule&&Object.prototype.hasOwnProperty.call(M,"default")&&M.default),t);return(C=x)&&C.__esModule&&Object.prototype.hasOwnProperty.call(C,"default")?C.default:C}();
  • wp-user-avatar/trunk/assets/js/checkout.js

    r3154042 r3447273  
    130130            let paymentDetails = {};
    131131
    132             $('.ppress-checkout-form__payment_method :input').each(function () {
     132            $('.ppress-checkout-form__payment_method :input, .ppress-checkout_account_info-wrap :input').each(function () {
    133133
    134134                let ID = $(this).attr('id');
     
    155155            // Fill in the payment details if possible without overwriting data if set.
    156156            if (!$.isEmptyObject(paymentDetails)) {
    157                 $('.ppress-checkout-form__payment_method :input').each(function () {
     157                $('.ppress-checkout-form__payment_method :input, .ppress-checkout_account_info-wrap :input').each(function () {
    158158                    let ID = $(this).attr('id');
    159159                    if (ID) {
  • wp-user-avatar/trunk/assets/js/frontend.min.js

    r3366382 r3447273  
    1 !function($){"use strict";(new function(){var e=this;this.init=function(){window.ppFormRecaptchaLoadCallback=this.recaptcha_processing,$(".pp-del-profile-avatar").on("click",this.delete_avatar),$(".pp-del-cover-image").on("click",this.delete_profile_image_cover),$(document).on("click",".has-password-visibility-icon .pp-form-material-icons",this.toggle_password_visibility),$(document.body).on("click","a.showlogin",(function(){$(".pp_wc_login").slideToggle()})),$(window).on("load resize ppress_updated_checkout",(function(){e.defaultUserProfileResponsive()})),$(window).on("ppress_updated_checkout",(function(){e.recaptcha_processing()})),$(document).on("click",".ppress-confirm-delete",(function(e){e.preventDefault(),confirm(pp_ajax_form.confirm_delete)&&(window.location.href=$(this).attr("href"))})),this.submit_reload_form_on_billing_country_field_change(),this.myaccount_password_strength_meter(),"true"!==pp_ajax_form.disable_ajax_form&&($(document).on("submit",'form[data-pp-form-submit="login"]',this.ajax_login),$(document).on("submit",'form[data-pp-form-submit="signup"]',this.ajax_registration),$(document).on("submit",'form[data-pp-form-submit="passwordreset"]',this.ajax_password_reset),$(document).on("submit",'form[data-pp-form-submit="editprofile"]',this.ajax_edit_profile))},this.recaptcha_processing=function(){$(".pp-g-recaptcha").each((function(s,t){var r=$(t).attr("data-sitekey"),o=$(this).parents(".pp-form-container").find("form");if("v3"===$(t).attr("data-type"))o.find("input.pp-submit-form").on("click",(function(s){s.preventDefault(),e._add_processing_label(o),grecaptcha.ready((function(){grecaptcha.execute(r,{action:"form"}).then((function(e){o.find('[name="g-recaptcha-response"]').remove(),o.append($("<input>",{type:"hidden",value:e,name:"g-recaptcha-response"})),o.trigger("submit")}))}))}));else{try{var a=grecaptcha.render(t,{sitekey:r,theme:$(t).attr("data-theme"),size:$(t).attr("data-size")})}catch(e){}o.on("pp_form_submitted",(function(){grecaptcha.reset(a)})),$(document).on("ppress_process_checkout_success_callback ppress_process_checkout_error_callback",(function(){grecaptcha.reset(a)}))}}))},this.toggle_password_visibility=function(e){e.preventDefault();var s=$(this).parents(".pp-form-field-input-textarea-wrap").find(".pp-form-field");"password"===s.attr("type")?(s.attr("type","text"),$(this).text("visibility_off")):(s.attr("type","password"),$(this).text("visibility"))},this.submit_reload_form_on_billing_country_field_change=function(){$(document).on("change",".pp-edit-profile-form-wrap select[name=ppress_billing_country]",(function(e){$(document).on("pp_form_edit_profile_success",(function(){window.location.reload()})),$(this).closest("form").find("input.pp-submit-form").trigger("click")}))},this.ajax_edit_profile=function(s){if(void 0!==window.FormData&&window.FormData){s.preventDefault();var t=$('form[data-pp-form-submit="editprofile"]'),r=e.get_melange_id(t),o=new FormData(this);o.append("action","pp_ajax_editprofile"),o.append("nonce",pp_ajax_form.nonce),o.append("melange_id",r),$(".profilepress-edit-profile-status").remove(),$(".profilepress-edit-profile-success").remove(),""!==window.edit_profile_msg_class&&$("."+window.edit_profile_msg_class).remove(),e._add_processing_label(t),$.post({url:pp_ajax_form.ajaxurl,data:o,cache:!1,contentType:!1,enctype:"multipart/form-data",processData:!1,dataType:"json",success:function(s){t.trigger("pp_form_submitted"),t.trigger("pp_form_edit_profile_success",[t]),"avatar_url"in s&&""!==s.avatar_url&&($("img[data-del='avatar'], img.pp-user-avatar").attr("src",s.avatar_url),$("input[name=eup_avatar]",t).val("")),"cover_image_url"in s&&""!==s.cover_image_url&&($("img[data-del='cover-image'], img.pp-user-cover-image").attr("src",s.cover_image_url),$("input[name=eup_cover_image]",t).val(""),$(".profilepress-myaccount-has-cover-image",t).show(),$(".profilepress-myaccount-cover-image-empty",t).hide()),"message"in s&&(window.edit_profile_msg_class=$(s.message).attr("class"),t.before(s.message),s.message&&s.message.includes("profilepress-edit-profile-status")&&e.scroll_to_notices($(".profilepress-edit-profile-status"))),"redirect"in s&&(t.trigger("pp_edit_profile_success_before_redirect"),window.location.assign(s.redirect)),e._remove_processing_label(t)}},"json")}},this.ajax_password_reset=function(s){s.preventDefault();var t=$(this),r=e.get_melange_id(t),o="true"===t.find('input[name="is-pp-tab-widget"]').val(),a={action:"pp_ajax_passwordreset",data:$(this).serialize()+"&melange_id="+r};e._remove_status_notice(),t.parents(".pp-tab-widget-form").prev(".pp-tab-status").remove(),e._add_processing_label(t),$.post(pp_ajax_form.ajaxurl,a,(function(s){if(t.trigger("pp_form_submitted"),"object"!=typeof s)return e._remove_processing_label(t);if("message"in s){if(t.trigger("pp_password_reset_status"),o){var r=s.message.replace("profilepress-reset-status","pp-tab-status");t.parents(".pp-tab-widget-form").before(r)}else t.parents(".lucidContainer").length>0?t.parents(".lucidContainer").before(s.message):t.before(s.message);"status"in s&&!0===s.status&&t.hide(),$('input[name="user_login"]',t).val("")}e._remove_processing_label(t)}),"json")},this.ajax_registration=function(s){if(void 0!==window.FormData&&window.FormData){s.preventDefault();var t=$(this),r=e.get_melange_id(t),o=new FormData(this),a="true"===t.find('input[name="is-pp-tab-widget"]').val();o.append("action","pp_ajax_signup"),o.append("melange_id",r),e._remove_status_notice(),t.parents(".pp-tab-widget-form").prev(".pp-tab-status").remove(),e._add_processing_label(t),$.post({url:pp_ajax_form.ajaxurl,data:o,cache:!1,contentType:!1,enctype:"multipart/form-data",processData:!1,dataType:"json",success:function(s){if(t.trigger("pp_form_submitted"),"object"!=typeof s)return e._remove_processing_label(t);if("message"in s){if(t.trigger("pp_registration_error",[s]),t.trigger("pp_registration_ajax_response",[s]),a){var r=s.message.replace("profilepress-reg-status","pp-tab-status");t.parents(".pp-tab-widget-form").before(r)}else t.parents(".lucidContainer").length>0?t.parents(".lucidContainer").before(s.message):t.before(s.message);s.message&&s.message.includes("profilepress-reg-status")&&e.scroll_to_notices()}else"redirect"in s&&(t.trigger("pp_registration_success",[s]),window.location.assign(s.redirect));e._remove_processing_label(t)}})}},this.ajax_login=function(s){s.preventDefault();var t=$(this),r={action:"pp_ajax_login",data:$(this).serialize()},o="true"===t.find('input[name="is-pp-tab-widget"]').val();e._remove_status_notice(),e._add_processing_label(t),$.post(pp_ajax_form.ajaxurl,r,(function(s){if(t.trigger("pp_form_submitted"),null===s||"object"!=typeof s)return e._remove_processing_label(t);if("success"in s&&!0===s.success&&"redirect"in s)t.trigger("pp_login_form_success"),window.location.assign(s.redirect);else if(t.trigger("pp_login_form_error"),"code"in s&&"pp2fa_auth_code_invalid"==s.code&&t.find(".pp-2fa").show(),o){var r=s.message.replace("profilepress-login-status","pp-tab-status");t.parents(".pp-tab-widget-form").before(r)}else t.parents(".lucidContainer").length>0?t.parents(".lucidContainer").before(s.message):t.before(s.message);e._remove_processing_label(t)}),"json")},this.delete_avatar=function(e){e.preventDefault();var s=$(this).text(),t=$(this);e.preventDefault(),confirm(pp_ajax_form.confirm_delete)&&(t.is("button")&&t.text(pp_ajax_form.deleting_text),$.post(pp_ajax_form.ajaxurl,{action:"pp_del_avatar",nonce:pp_ajax_form.nonce}).done((function(e){"error"in e&&"nonce_failed"===e.error?(t.text(s),alert(pp_ajax_form.deleting_error)):"success"in e&&($("img[data-del='avatar']").attr("src",e.default),t.remove())})))},this.delete_profile_image_cover=function(e){e.preventDefault();var s=$(this).text(),t=$(this);e.preventDefault(),confirm(pp_ajax_form.confirm_delete)&&(t.is("button")&&t.text(pp_ajax_form.deleting_text),$.post(pp_ajax_form.ajaxurl,{action:"pp_del_cover_image",nonce:pp_ajax_form.nonce}).done((function(e){"error"in e&&"nonce_failed"===e.error&&(t.text(s),alert(pp_ajax_form.deleting_error)),"success"in e&&(""!==e.default?($("img[data-del='cover-image']").attr("src",e.default),t.parent().find(".profilepress-myaccount-has-cover-image").show(),t.parent().find(".profilepress-myaccount-cover-image-empty").hide()):(t.parent().find(".profilepress-myaccount-has-cover-image").hide(),t.parent().find(".profilepress-myaccount-cover-image-empty").show()),t.remove())})))},this.get_melange_id=function(e){var s=$("input.pp_melange_id",e).val();return void 0===s?"":s},this._add_processing_label=function(e){var s=e.find("input[data-pp-submit-label]");s.attr({value:s.data("pp-processing-label"),disabled:"disabled"}).css("opacity",".4")},this._remove_processing_label=function(e){var s=e.find("input[data-pp-submit-label]");s.attr("value",s.data("pp-submit-label")),s.attr({value:s.data("pp-submit-label"),disabled:null}).css("opacity","")},this._remove_status_notice=function(){$(".profilepress-login-status,.pp-tab-status,.profilepress-edit-profile-success,.profilepress-edit-profile-status,.pp-reset-success,.profilepress-reset-status,.profilepress-reg-status").remove()},this.scroll_to_notices=function(e){(e=e||$(".profilepress-reg-status")).length&&$("html, body").animate({scrollTop:e.offset().top-100},1e3)},this.defaultUserProfileResponsive=function(){$(".ppress-default-profile, .pp-member-directory, .ppress-checkout__form").each((function(){var e=$(this),s=e.width();s<=340?(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui800"),e.removeClass("ppressui768"),e.removeClass("ppressui960"),e.addClass("ppressui340")):s<=500?(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui768"),e.removeClass("ppressui800"),e.removeClass("ppressui960"),e.addClass("ppressui500")):s<=768?(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui768"),e.removeClass("ppressui800"),e.removeClass("ppressui960"),e.addClass("ppressui768")):s<=800?(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui768"),e.removeClass("ppressui800"),e.removeClass("ppressui960"),e.addClass("ppressui800")):s<=960?(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui768"),e.removeClass("ppressui800"),e.removeClass("ppressui960"),e.addClass("ppressui960")):s>960&&(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui768"),e.removeClass("ppressui800"),e.removeClass("ppressui960")),e.css("opacity",1)})),$(".ppress-default-profile-cover, .ppress-default-profile-cover-e").each((function(){var e=$(this),s=Math.round(e.width()/e.data("ratio"))+"px";e.height(s),e.find(".ppress-dpf-cover-add").height(s)}))},this.myaccount_password_strength_meter=function(){$((function(){var e=$("input[name=password_new]"),s=$("input[name=password_confirm_new]"),t=$("input[name=submit-form]"),r=$("#pp-pass-strength-result");$("body").on("keyup","input[name=password_new], input[name=password_confirm_new]",(function(o){!function(e,s,t,r,o){var a=e.val(),p=s.val();r.attr("disabled","disabled"),t.removeClass("short bad good strong"),o=o.concat(wp.passwordStrength.userInputDisallowedList());var i=wp.passwordStrength.meter(a,o,p);switch(i){case 2:t.addClass("bad").html(pwsL10n.bad);break;case 3:t.addClass("good").html(pwsL10n.good);break;case 4:t.addClass("strong").html(pwsL10n.strong);break;case 5:t.addClass("short").html(pwsL10n.mismatch);break;default:t.addClass("short").html(pwsL10n.short)}"false"===myacPwsL10n.disable_enforcement&&4===i&&""!==p.trim()&&r.removeAttr("disabled")}(e,s,r,t,[])}))}))}}).init(),(new function(){let e=this;window.ppressCheckoutForm=this,this.init=function(){"0"!==pp_ajax_form.is_checkout&&0!==$("#ppress_checkout_main_form").length&&($(document).on("click",".ppress-checkout-show-login-form",this.toggle_login_form),$(document).on("click",'.ppress-login-submit-btn input[type="submit"]',this.process_login),$(document).on("click",".ppress-coupon-code-link",this.toggle_discount_code_reveal),$(document).on("click",".ppress-apply-discount-btn",this.apply_discount_code),$(document).on("click","#ppress-remove-applied-coupon",this.remove_applied_discount_code),$(document).on("submit","#ppress_mb_checkout_form",this.process_checkout),$(document).on("click",".ppress-terms-and-conditions-link",(function(e){var s=$(".ppress-checkout-form__terms_condition__content");s.length>0&&(e.preventDefault(),s.slideToggle())})),$(document).on("ppress_update_checkout",this.update_checkout),"1"===pp_ajax_form.is_checkout_tax_enabled?$(document).on("change","#ppress_mb_checkout_form .ppress_billing_country, #ppress_mb_checkout_form .ppress_billing_state, #ppress_mb_checkout_form .ppress_vat_number",e.debounce((function(){$(document.body).trigger("ppress_update_checkout")}),200)):$(document).on("change","#ppress_mb_checkout_form .ppress_billing_country",e.contextual_state_field),$(document.body).on("change","#ppress_checkout_payment_methods [name=ppress_payment_method]",(function(){$(document.body).trigger("ppress_update_checkout")})),$(document.body).on("change","#ppress_mb_checkout_form [name=group_selector]",(function(){e.update_checkout()})),$(document.body).trigger("ppress_update_checkout"),$(document).ajaxError((function(){e.remove_spinner()})))},this.debounce=function(e,s){let t;return s=s||600,function(){clearTimeout(t),t=setTimeout((function(){e()}),s)}},this.contextual_state_field=function(){let e=$(".ppress_billing_state"),s={action:"ppress_contextual_state_field",country:$(this).val(),name:e.prop("name"),id:e.prop("id"),class:e.prop("class"),csrf:$("#ppress_checkout_nonce").val()};$.post(pp_ajax_form.ajaxurl,s,(function(s){e.replaceWith(s.data)}))},this.scroll_to_notices=function(e){"true"===pp_ajax_form.is_checkout_autoscroll_enabled&&(e=e||$(".ppress-checkout-alert")).length&&$("html, body").animate({scrollTop:e.offset().top-100},1e3)},this.update_checkout=function(s){s=s||!1;let t=$("#ppress_mb_checkout_form [name=group_selector]").length>0;e.removeAllAlerts(),e.add_spinner();let r={action:"ppress_update_order_review",plan_id:$("#ppress-checkout-plan-id").val(),ppress_payment_method:$("#ppress_checkout_payment_methods [name=ppress_payment_method]:checked").val(),csrf:$("#ppress_checkout_nonce").val(),address:$(".ppress-checkout-form__payment_method.ppress-active .ppress_billing_address").val(),city:$(".ppress-checkout-form__payment_method.ppress-active .ppress_billing_city").val(),country:$(".ppress-checkout-form__payment_method.ppress-active .ppress_billing_country").val(),state:$(".ppress-checkout-form__payment_method.ppress-active .ppress_billing_state").val(),postcode:$(".ppress-checkout-form__payment_method.ppress-active .ppress_billing_postcode").val(),phone:$(".ppress-checkout-form__payment_method.ppress-active .ppress_billing_phone").val(),vat_number:$("#ppress_checkout_main_form .ppress_vat_number").val(),post_data:$("#ppress_mb_checkout_form").serialize()};!0===t&&(r.isChangePlanUpdate="true"),$.post(pp_ajax_form.ajaxurl,r,(function(o){let a={};if($(".ppress-checkout-form__payment_method :input").each((function(){let e=$(this).attr("id");e&&(-1!==$.inArray($(this).attr("type"),["checkbox","radio"])?a[e]=$(this).prop("checked"):a[e]=$(this).val())})),"data"in o&&void 0!==o.data.fragments&&($.each(o.data.fragments,(function(s,t){e.fragments&&e.fragments[s]===t||$(s).replaceWith(t)})),e.fragments=r.fragments),$.isEmptyObject(a)||$(".ppress-checkout-form__payment_method :input").each((function(){let e=$(this).attr("id");e&&(-1!==$.inArray($(this).attr("type"),["checkbox","radio"])?$(this).prop("checked",a[e]):($.inArray($(this).attr("type"),["select"]),$(this).val(a[e])))})),"success"in o&&!1===o.success){let e=$("#ppress_checkout_main_form");o.data&&e.prepend(o.data),e.find(".input-text, select, input:checkbox").trigger("blur")}$(document.body).trigger("ppress_updated_checkout",[o]);let p,i=$(".ppress-checkout_order_summary__bottom_details");(p=$(".ppress-checkout-alert")).length>0&&(i=p),e.scroll_to_notices(i),e.remove_spinner(),!0===t&&!0!==s&&e.update_checkout(!0)}))},this.toggle_login_form=function(e){e.preventDefault(),$("#ppress_checkout_account_info .ppress-main-checkout-form__login_form_wrap").slideToggle()},this.toggle_discount_code_reveal=function(e){e.preventDefault(),$("#ppress-checkout-coupon-code-wrap").slideToggle()},this.apply_discount_code=function(s){s.preventDefault(),e.removeAllAlerts(),e.add_spinner();let t={action:"ppress_checkout_apply_discount",plan_id:$("#ppress-checkout-plan-id").val(),coupon_code:$("#apply-discount").val(),ppress_checkout_nonce:$("#ppress_checkout_nonce").val()};$.post(pp_ajax_form.ajaxurl,t,(function(s){"success"in s&&!0===s.success?$(document.body).trigger("ppress_update_checkout"):($(".ppress-checkout_order_summary-wrap").before(s.data),e.remove_spinner())}))},this.remove_applied_discount_code=function(s){s.preventDefault(),e.removeAllAlerts(),e.add_spinner();let t={action:"ppress_checkout_remove_discount",plan_id:$("#ppress-checkout-plan-id").val(),ppress_checkout_nonce:$("#ppress_checkout_nonce").val()};$.post(pp_ajax_form.ajaxurl,t,(function(s){"success"in s&&!0===s.success?$(document.body).trigger("ppress_update_checkout"):($(".ppress-checkout_order_summary-wrap").before(s.data),e.remove_spinner())}))},this.process_login=function(s){s.preventDefault(),e.removeAllAlerts(),e.add_spinner();let t={action:"ppress_process_checkout_login",ppmb_user_login:$("#ppress_mb_checkout_form #ppmb_user_login").val(),ppmb_user_pass:$("#ppress_mb_checkout_form #ppmb_user_pass").val(),ppress_checkout_nonce:$("#ppress_checkout_nonce").val()};$.post(pp_ajax_form.ajaxurl,t,(function(s){"success"in s&&(!0===s.success?window.location.reload():"data"in s&&$("#ppress_mb_checkout_form .ppress-login-submit-btn").prepend(s.data)),e.remove_spinner()}))},this.process_checkout=function(s){if("function"!=typeof this.checkValidity||!1!==this.checkValidity()){s.preventDefault(),e.removeAllAlerts(),e.add_spinner();var t=$(this),r=e.get_payment_method();if(!1!==t.triggerHandler("ppress_checkout_place_order_"+r)){let s=new FormData(this);s.append("action","ppress_process_checkout"),s.append("ppress_checkout_nonce",$("#ppress_checkout_nonce").val()),$.post({url:pp_ajax_form.ajaxurl,data:s,cache:!1,contentType:!1,enctype:"multipart/form-data",processData:!1,dataType:"json",success:function(s){if($(document.body).trigger("ppress_process_checkout_success_callback",[s]),"success"in s)return!0===s.success?void(!1!==t.triggerHandler("ppress_process_checkout_"+r,[s,r])&&("redirect_url"in s&&void 0!==s.redirect_url&&s.redirect_url.length>0?window.location.assign(s.redirect_url):($(document.body).trigger("ppress_checkout_success",[s,r]),window.location.assign(s.order_success_url)))):"error_message"in s?e.createAlertMessage(s.error_message):"data"in s&&"string"==typeof s.data?e.createAlertMessage(s.data):void 0;e.remove_spinner()},error:function(s,t,r){$(document.body).trigger("ppress_process_checkout_error_callback",[s,t,r]),e.createAlertMessage(r)}},"json")}}},this.get_payment_method=function(){return $("#ppress_mb_checkout_form").find('input[name="ppress_payment_method"]:checked').val()},this.createAlertMessage=function(e,s){s=s||"error";var t=void 0!==e.indexOf&&-1!==e.indexOf("ppress-checkout-alert"),r="";t||(r='<div class="ppress-checkout-alert ppress-'+s+'"><p>'),r+=e,t||(r+="</p></div>"),$("#ppress_checkout_main_form").prepend(r),ppressCheckoutForm.scroll_to_notices(),ppressCheckoutForm.remove_spinner(),$(document.body).trigger("ppress_checkout_error",[e])},this.removeAllAlerts=function(){$(".ppress-checkout-alert").remove()},this.add_spinner=function(){e.remove_spinner(),$(".ppress-checkout__form").prepend('<div class="ppress-checkout__form__preloader"><div class="ppress-checkout__form__spinner"></div></div>')},this.remove_spinner=function(){$(".ppress-checkout__form .ppress-checkout__form__preloader").remove()},this.is_var_defined=function(e){return null!=e},this.get_obj_val=function(e,s){return this.is_var_defined(e)&&""!==e?e:s}}).init()}(jQuery);
     1!function($){"use strict";(new function(){var e=this;this.init=function(){window.ppFormRecaptchaLoadCallback=this.recaptcha_processing,$(".pp-del-profile-avatar").on("click",this.delete_avatar),$(".pp-del-cover-image").on("click",this.delete_profile_image_cover),$(document).on("click",".has-password-visibility-icon .pp-form-material-icons",this.toggle_password_visibility),$(document.body).on("click","a.showlogin",(function(){$(".pp_wc_login").slideToggle()})),$(window).on("load resize ppress_updated_checkout",(function(){e.defaultUserProfileResponsive()})),$(window).on("ppress_updated_checkout",(function(){e.recaptcha_processing()})),$(document).on("click",".ppress-confirm-delete",(function(e){e.preventDefault(),confirm(pp_ajax_form.confirm_delete)&&(window.location.href=$(this).attr("href"))})),this.submit_reload_form_on_billing_country_field_change(),this.myaccount_password_strength_meter(),"true"!==pp_ajax_form.disable_ajax_form&&($(document).on("submit",'form[data-pp-form-submit="login"]',this.ajax_login),$(document).on("submit",'form[data-pp-form-submit="signup"]',this.ajax_registration),$(document).on("submit",'form[data-pp-form-submit="passwordreset"]',this.ajax_password_reset),$(document).on("submit",'form[data-pp-form-submit="editprofile"]',this.ajax_edit_profile))},this.recaptcha_processing=function(){$(".pp-g-recaptcha").each((function(s,t){var r=$(t).attr("data-sitekey"),o=$(this).parents(".pp-form-container").find("form");if("v3"===$(t).attr("data-type"))o.find("input.pp-submit-form").on("click",(function(s){s.preventDefault(),e._add_processing_label(o),grecaptcha.ready((function(){grecaptcha.execute(r,{action:"form"}).then((function(e){o.find('[name="g-recaptcha-response"]').remove(),o.append($("<input>",{type:"hidden",value:e,name:"g-recaptcha-response"})),o.trigger("submit")}))}))}));else{try{var a=grecaptcha.render(t,{sitekey:r,theme:$(t).attr("data-theme"),size:$(t).attr("data-size")})}catch(e){}o.on("pp_form_submitted",(function(){grecaptcha.reset(a)})),$(document).on("ppress_process_checkout_success_callback ppress_process_checkout_error_callback",(function(){grecaptcha.reset(a)}))}}))},this.toggle_password_visibility=function(e){e.preventDefault();var s=$(this).parents(".pp-form-field-input-textarea-wrap").find(".pp-form-field");"password"===s.attr("type")?(s.attr("type","text"),$(this).text("visibility_off")):(s.attr("type","password"),$(this).text("visibility"))},this.submit_reload_form_on_billing_country_field_change=function(){$(document).on("change",".pp-edit-profile-form-wrap select[name=ppress_billing_country]",(function(e){$(document).on("pp_form_edit_profile_success",(function(){window.location.reload()})),$(this).closest("form").find("input.pp-submit-form").trigger("click")}))},this.ajax_edit_profile=function(s){if(void 0!==window.FormData&&window.FormData){s.preventDefault();var t=$('form[data-pp-form-submit="editprofile"]'),r=e.get_melange_id(t),o=new FormData(this);o.append("action","pp_ajax_editprofile"),o.append("nonce",pp_ajax_form.nonce),o.append("melange_id",r),$(".profilepress-edit-profile-status").remove(),$(".profilepress-edit-profile-success").remove(),""!==window.edit_profile_msg_class&&$("."+window.edit_profile_msg_class).remove(),e._add_processing_label(t),$.post({url:pp_ajax_form.ajaxurl,data:o,cache:!1,contentType:!1,enctype:"multipart/form-data",processData:!1,dataType:"json",success:function(s){t.trigger("pp_form_submitted"),t.trigger("pp_form_edit_profile_success",[t]),"avatar_url"in s&&""!==s.avatar_url&&($("img[data-del='avatar'], img.pp-user-avatar").attr("src",s.avatar_url),$("input[name=eup_avatar]",t).val("")),"cover_image_url"in s&&""!==s.cover_image_url&&($("img[data-del='cover-image'], img.pp-user-cover-image").attr("src",s.cover_image_url),$("input[name=eup_cover_image]",t).val(""),$(".profilepress-myaccount-has-cover-image",t).show(),$(".profilepress-myaccount-cover-image-empty",t).hide()),"message"in s&&(window.edit_profile_msg_class=$(s.message).attr("class"),t.before(s.message),s.message&&s.message.includes("profilepress-edit-profile-status")&&e.scroll_to_notices($(".profilepress-edit-profile-status"))),"redirect"in s&&(t.trigger("pp_edit_profile_success_before_redirect"),window.location.assign(s.redirect)),e._remove_processing_label(t)}},"json")}},this.ajax_password_reset=function(s){s.preventDefault();var t=$(this),r=e.get_melange_id(t),o="true"===t.find('input[name="is-pp-tab-widget"]').val(),a={action:"pp_ajax_passwordreset",data:$(this).serialize()+"&melange_id="+r};e._remove_status_notice(),t.parents(".pp-tab-widget-form").prev(".pp-tab-status").remove(),e._add_processing_label(t),$.post(pp_ajax_form.ajaxurl,a,(function(s){if(t.trigger("pp_form_submitted"),"object"!=typeof s)return e._remove_processing_label(t);if("message"in s){if(t.trigger("pp_password_reset_status"),o){var r=s.message.replace("profilepress-reset-status","pp-tab-status");t.parents(".pp-tab-widget-form").before(r)}else t.parents(".lucidContainer").length>0?t.parents(".lucidContainer").before(s.message):t.before(s.message);"status"in s&&!0===s.status&&t.hide(),$('input[name="user_login"]',t).val("")}e._remove_processing_label(t)}),"json")},this.ajax_registration=function(s){if(void 0!==window.FormData&&window.FormData){s.preventDefault();var t=$(this),r=e.get_melange_id(t),o=new FormData(this),a="true"===t.find('input[name="is-pp-tab-widget"]').val();o.append("action","pp_ajax_signup"),o.append("melange_id",r),e._remove_status_notice(),t.parents(".pp-tab-widget-form").prev(".pp-tab-status").remove(),e._add_processing_label(t),$.post({url:pp_ajax_form.ajaxurl,data:o,cache:!1,contentType:!1,enctype:"multipart/form-data",processData:!1,dataType:"json",success:function(s){if(t.trigger("pp_form_submitted"),"object"!=typeof s)return e._remove_processing_label(t);if("message"in s){if(t.trigger("pp_registration_error",[s]),t.trigger("pp_registration_ajax_response",[s]),a){var r=s.message.replace("profilepress-reg-status","pp-tab-status");t.parents(".pp-tab-widget-form").before(r)}else t.parents(".lucidContainer").length>0?t.parents(".lucidContainer").before(s.message):t.before(s.message);s.message&&s.message.includes("profilepress-reg-status")&&e.scroll_to_notices()}else"redirect"in s&&(t.trigger("pp_registration_success",[s]),window.location.assign(s.redirect));e._remove_processing_label(t)}})}},this.ajax_login=function(s){s.preventDefault();var t=$(this),r={action:"pp_ajax_login",data:$(this).serialize()},o="true"===t.find('input[name="is-pp-tab-widget"]').val();e._remove_status_notice(),e._add_processing_label(t),$.post(pp_ajax_form.ajaxurl,r,(function(s){if(t.trigger("pp_form_submitted"),null===s||"object"!=typeof s)return e._remove_processing_label(t);if("success"in s&&!0===s.success&&"redirect"in s)t.trigger("pp_login_form_success"),window.location.assign(s.redirect);else if(t.trigger("pp_login_form_error"),"code"in s&&"pp2fa_auth_code_invalid"==s.code&&t.find(".pp-2fa").show(),o){var r=s.message.replace("profilepress-login-status","pp-tab-status");t.parents(".pp-tab-widget-form").before(r)}else t.parents(".lucidContainer").length>0?t.parents(".lucidContainer").before(s.message):t.before(s.message);e._remove_processing_label(t)}),"json")},this.delete_avatar=function(e){e.preventDefault();var s=$(this).text(),t=$(this);e.preventDefault(),confirm(pp_ajax_form.confirm_delete)&&(t.is("button")&&t.text(pp_ajax_form.deleting_text),$.post(pp_ajax_form.ajaxurl,{action:"pp_del_avatar",nonce:pp_ajax_form.nonce}).done((function(e){"error"in e&&"nonce_failed"===e.error?(t.text(s),alert(pp_ajax_form.deleting_error)):"success"in e&&($("img[data-del='avatar']").attr("src",e.default),t.remove())})))},this.delete_profile_image_cover=function(e){e.preventDefault();var s=$(this).text(),t=$(this);e.preventDefault(),confirm(pp_ajax_form.confirm_delete)&&(t.is("button")&&t.text(pp_ajax_form.deleting_text),$.post(pp_ajax_form.ajaxurl,{action:"pp_del_cover_image",nonce:pp_ajax_form.nonce}).done((function(e){"error"in e&&"nonce_failed"===e.error&&(t.text(s),alert(pp_ajax_form.deleting_error)),"success"in e&&(""!==e.default?($("img[data-del='cover-image']").attr("src",e.default),t.parent().find(".profilepress-myaccount-has-cover-image").show(),t.parent().find(".profilepress-myaccount-cover-image-empty").hide()):(t.parent().find(".profilepress-myaccount-has-cover-image").hide(),t.parent().find(".profilepress-myaccount-cover-image-empty").show()),t.remove())})))},this.get_melange_id=function(e){var s=$("input.pp_melange_id",e).val();return void 0===s?"":s},this._add_processing_label=function(e){var s=e.find("input[data-pp-submit-label]");s.attr({value:s.data("pp-processing-label"),disabled:"disabled"}).css("opacity",".4")},this._remove_processing_label=function(e){var s=e.find("input[data-pp-submit-label]");s.attr("value",s.data("pp-submit-label")),s.attr({value:s.data("pp-submit-label"),disabled:null}).css("opacity","")},this._remove_status_notice=function(){$(".profilepress-login-status,.pp-tab-status,.profilepress-edit-profile-success,.profilepress-edit-profile-status,.pp-reset-success,.profilepress-reset-status,.profilepress-reg-status").remove()},this.scroll_to_notices=function(e){(e=e||$(".profilepress-reg-status")).length&&$("html, body").animate({scrollTop:e.offset().top-100},1e3)},this.defaultUserProfileResponsive=function(){$(".ppress-default-profile, .pp-member-directory, .ppress-checkout__form").each((function(){var e=$(this),s=e.width();s<=340?(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui800"),e.removeClass("ppressui768"),e.removeClass("ppressui960"),e.addClass("ppressui340")):s<=500?(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui768"),e.removeClass("ppressui800"),e.removeClass("ppressui960"),e.addClass("ppressui500")):s<=768?(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui768"),e.removeClass("ppressui800"),e.removeClass("ppressui960"),e.addClass("ppressui768")):s<=800?(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui768"),e.removeClass("ppressui800"),e.removeClass("ppressui960"),e.addClass("ppressui800")):s<=960?(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui768"),e.removeClass("ppressui800"),e.removeClass("ppressui960"),e.addClass("ppressui960")):s>960&&(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui768"),e.removeClass("ppressui800"),e.removeClass("ppressui960")),e.css("opacity",1)})),$(".ppress-default-profile-cover, .ppress-default-profile-cover-e").each((function(){var e=$(this),s=Math.round(e.width()/e.data("ratio"))+"px";e.height(s),e.find(".ppress-dpf-cover-add").height(s)}))},this.myaccount_password_strength_meter=function(){$((function(){var e=$("input[name=password_new]"),s=$("input[name=password_confirm_new]"),t=$("input[name=submit-form]"),r=$("#pp-pass-strength-result");$("body").on("keyup","input[name=password_new], input[name=password_confirm_new]",(function(o){!function(e,s,t,r,o){var a=e.val(),p=s.val();r.attr("disabled","disabled"),t.removeClass("short bad good strong"),o=o.concat(wp.passwordStrength.userInputDisallowedList());var i=wp.passwordStrength.meter(a,o,p);switch(i){case 2:t.addClass("bad").html(pwsL10n.bad);break;case 3:t.addClass("good").html(pwsL10n.good);break;case 4:t.addClass("strong").html(pwsL10n.strong);break;case 5:t.addClass("short").html(pwsL10n.mismatch);break;default:t.addClass("short").html(pwsL10n.short)}"false"===myacPwsL10n.disable_enforcement&&4===i&&""!==p.trim()&&r.removeAttr("disabled")}(e,s,r,t,[])}))}))}}).init(),(new function(){let e=this;window.ppressCheckoutForm=this,this.init=function(){"0"!==pp_ajax_form.is_checkout&&0!==$("#ppress_checkout_main_form").length&&($(document).on("click",".ppress-checkout-show-login-form",this.toggle_login_form),$(document).on("click",'.ppress-login-submit-btn input[type="submit"]',this.process_login),$(document).on("click",".ppress-coupon-code-link",this.toggle_discount_code_reveal),$(document).on("click",".ppress-apply-discount-btn",this.apply_discount_code),$(document).on("click","#ppress-remove-applied-coupon",this.remove_applied_discount_code),$(document).on("submit","#ppress_mb_checkout_form",this.process_checkout),$(document).on("click",".ppress-terms-and-conditions-link",(function(e){var s=$(".ppress-checkout-form__terms_condition__content");s.length>0&&(e.preventDefault(),s.slideToggle())})),$(document).on("ppress_update_checkout",this.update_checkout),"1"===pp_ajax_form.is_checkout_tax_enabled?$(document).on("change","#ppress_mb_checkout_form .ppress_billing_country, #ppress_mb_checkout_form .ppress_billing_state, #ppress_mb_checkout_form .ppress_vat_number",e.debounce((function(){$(document.body).trigger("ppress_update_checkout")}),200)):$(document).on("change","#ppress_mb_checkout_form .ppress_billing_country",e.contextual_state_field),$(document.body).on("change","#ppress_checkout_payment_methods [name=ppress_payment_method]",(function(){$(document.body).trigger("ppress_update_checkout")})),$(document.body).on("change","#ppress_mb_checkout_form [name=group_selector]",(function(){e.update_checkout()})),$(document.body).trigger("ppress_update_checkout"),$(document).ajaxError((function(){e.remove_spinner()})))},this.debounce=function(e,s){let t;return s=s||600,function(){clearTimeout(t),t=setTimeout((function(){e()}),s)}},this.contextual_state_field=function(){let e=$(".ppress_billing_state"),s={action:"ppress_contextual_state_field",country:$(this).val(),name:e.prop("name"),id:e.prop("id"),class:e.prop("class"),csrf:$("#ppress_checkout_nonce").val()};$.post(pp_ajax_form.ajaxurl,s,(function(s){e.replaceWith(s.data)}))},this.scroll_to_notices=function(e){"true"===pp_ajax_form.is_checkout_autoscroll_enabled&&(e=e||$(".ppress-checkout-alert")).length&&$("html, body").animate({scrollTop:e.offset().top-100},1e3)},this.update_checkout=function(s){s=s||!1;let t=$("#ppress_mb_checkout_form [name=group_selector]").length>0;e.removeAllAlerts(),e.add_spinner();let r={action:"ppress_update_order_review",plan_id:$("#ppress-checkout-plan-id").val(),ppress_payment_method:$("#ppress_checkout_payment_methods [name=ppress_payment_method]:checked").val(),csrf:$("#ppress_checkout_nonce").val(),address:$(".ppress-checkout-form__payment_method.ppress-active .ppress_billing_address").val(),city:$(".ppress-checkout-form__payment_method.ppress-active .ppress_billing_city").val(),country:$(".ppress-checkout-form__payment_method.ppress-active .ppress_billing_country").val(),state:$(".ppress-checkout-form__payment_method.ppress-active .ppress_billing_state").val(),postcode:$(".ppress-checkout-form__payment_method.ppress-active .ppress_billing_postcode").val(),phone:$(".ppress-checkout-form__payment_method.ppress-active .ppress_billing_phone").val(),vat_number:$("#ppress_checkout_main_form .ppress_vat_number").val(),post_data:$("#ppress_mb_checkout_form").serialize()};!0===t&&(r.isChangePlanUpdate="true"),$.post(pp_ajax_form.ajaxurl,r,(function(o){let a={};if($(".ppress-checkout-form__payment_method :input, .ppress-checkout_account_info-wrap :input").each((function(){let e=$(this).attr("id");e&&(-1!==$.inArray($(this).attr("type"),["checkbox","radio"])?a[e]=$(this).prop("checked"):a[e]=$(this).val())})),"data"in o&&void 0!==o.data.fragments&&($.each(o.data.fragments,(function(s,t){e.fragments&&e.fragments[s]===t||$(s).replaceWith(t)})),e.fragments=r.fragments),$.isEmptyObject(a)||$(".ppress-checkout-form__payment_method :input, .ppress-checkout_account_info-wrap :input").each((function(){let e=$(this).attr("id");e&&(-1!==$.inArray($(this).attr("type"),["checkbox","radio"])?$(this).prop("checked",a[e]):($.inArray($(this).attr("type"),["select"]),$(this).val(a[e])))})),"success"in o&&!1===o.success){let e=$("#ppress_checkout_main_form");o.data&&e.prepend(o.data),e.find(".input-text, select, input:checkbox").trigger("blur")}$(document.body).trigger("ppress_updated_checkout",[o]);let p,i=$(".ppress-checkout_order_summary__bottom_details");(p=$(".ppress-checkout-alert")).length>0&&(i=p),e.scroll_to_notices(i),e.remove_spinner(),!0===t&&!0!==s&&e.update_checkout(!0)}))},this.toggle_login_form=function(e){e.preventDefault(),$("#ppress_checkout_account_info .ppress-main-checkout-form__login_form_wrap").slideToggle()},this.toggle_discount_code_reveal=function(e){e.preventDefault(),$("#ppress-checkout-coupon-code-wrap").slideToggle()},this.apply_discount_code=function(s){s.preventDefault(),e.removeAllAlerts(),e.add_spinner();let t={action:"ppress_checkout_apply_discount",plan_id:$("#ppress-checkout-plan-id").val(),coupon_code:$("#apply-discount").val(),ppress_checkout_nonce:$("#ppress_checkout_nonce").val()};$.post(pp_ajax_form.ajaxurl,t,(function(s){"success"in s&&!0===s.success?$(document.body).trigger("ppress_update_checkout"):($(".ppress-checkout_order_summary-wrap").before(s.data),e.remove_spinner())}))},this.remove_applied_discount_code=function(s){s.preventDefault(),e.removeAllAlerts(),e.add_spinner();let t={action:"ppress_checkout_remove_discount",plan_id:$("#ppress-checkout-plan-id").val(),ppress_checkout_nonce:$("#ppress_checkout_nonce").val()};$.post(pp_ajax_form.ajaxurl,t,(function(s){"success"in s&&!0===s.success?$(document.body).trigger("ppress_update_checkout"):($(".ppress-checkout_order_summary-wrap").before(s.data),e.remove_spinner())}))},this.process_login=function(s){s.preventDefault(),e.removeAllAlerts(),e.add_spinner();let t={action:"ppress_process_checkout_login",ppmb_user_login:$("#ppress_mb_checkout_form #ppmb_user_login").val(),ppmb_user_pass:$("#ppress_mb_checkout_form #ppmb_user_pass").val(),ppress_checkout_nonce:$("#ppress_checkout_nonce").val()};$.post(pp_ajax_form.ajaxurl,t,(function(s){"success"in s&&(!0===s.success?window.location.reload():"data"in s&&$("#ppress_mb_checkout_form .ppress-login-submit-btn").prepend(s.data)),e.remove_spinner()}))},this.process_checkout=function(s){if("function"!=typeof this.checkValidity||!1!==this.checkValidity()){s.preventDefault(),e.removeAllAlerts(),e.add_spinner();var t=$(this),r=e.get_payment_method();if(!1!==t.triggerHandler("ppress_checkout_place_order_"+r)){let s=new FormData(this);s.append("action","ppress_process_checkout"),s.append("ppress_checkout_nonce",$("#ppress_checkout_nonce").val()),$.post({url:pp_ajax_form.ajaxurl,data:s,cache:!1,contentType:!1,enctype:"multipart/form-data",processData:!1,dataType:"json",success:function(s){if($(document.body).trigger("ppress_process_checkout_success_callback",[s]),"success"in s)return!0===s.success?void(!1!==t.triggerHandler("ppress_process_checkout_"+r,[s,r])&&("redirect_url"in s&&void 0!==s.redirect_url&&s.redirect_url.length>0?window.location.assign(s.redirect_url):($(document.body).trigger("ppress_checkout_success",[s,r]),window.location.assign(s.order_success_url)))):"error_message"in s?e.createAlertMessage(s.error_message):"data"in s&&"string"==typeof s.data?e.createAlertMessage(s.data):void 0;e.remove_spinner()},error:function(s,t,r){$(document.body).trigger("ppress_process_checkout_error_callback",[s,t,r]),e.createAlertMessage(r)}},"json")}}},this.get_payment_method=function(){return $("#ppress_mb_checkout_form").find('input[name="ppress_payment_method"]:checked').val()},this.createAlertMessage=function(e,s){s=s||"error";var t=void 0!==e.indexOf&&-1!==e.indexOf("ppress-checkout-alert"),r="";t||(r='<div class="ppress-checkout-alert ppress-'+s+'"><p>'),r+=e,t||(r+="</p></div>"),$("#ppress_checkout_main_form").prepend(r),ppressCheckoutForm.scroll_to_notices(),ppressCheckoutForm.remove_spinner(),$(document.body).trigger("ppress_checkout_error",[e])},this.removeAllAlerts=function(){$(".ppress-checkout-alert").remove()},this.add_spinner=function(){e.remove_spinner(),$(".ppress-checkout__form").prepend('<div class="ppress-checkout__form__preloader"><div class="ppress-checkout__form__spinner"></div></div>')},this.remove_spinner=function(){$(".ppress-checkout__form .ppress-checkout__form__preloader").remove()},this.is_var_defined=function(e){return null!=e},this.get_obj_val=function(e,s){return this.is_var_defined(e)&&""!==e?e:s}}).init()}(jQuery);
  • wp-user-avatar/trunk/changelog.txt

    r3408055 r3447273  
    11== Changelog ==
    22
    3 = Paid Membership, Ecommerce & User Registration 4.16.8 =
     3= 4.16.9 =
     4* Added billing address data to customer export.
     5* Added ppress_is_third_party_2fa_active filter.
     6* Fixed a likely fatal error on form preview.
     7* Fixed bug where account info data got lost on group checkout refresh.
     8* Fixed bug where checkout overrides previously uploaded files.
     9* Fixed bug where download link requiring logged in users worked for other logged in users.
     10* Add custom field placeholder support to admin new user email notification.
     11
     12= 4.16.8 =
    413* Fixed security issue with arbitrary shortcode execution on form preview.
    514* Fixed couple of PHP notices.
  • wp-user-avatar/trunk/languages/wp-user-avatar.pot

    r3408055 r3447273  
    1 # Copyright (C) 2025 ProfilePress Membership Team
     1# Copyright (C) 2026 ProfilePress Membership Team
    22# This file is distributed under the same license as the ProfilePress plugin.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: ProfilePress 4.16.8\n"
     5"Project-Id-Version: ProfilePress 4.16.9\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-user-avatar\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-12-02T13:29:55+00:00\n"
     12"POT-Creation-Date: 2026-01-26T16:31:32+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.8.1\n"
     14"X-Generator: WP-CLI 2.12.0\n"
    1515"X-Domain: wp-user-avatar\n"
    1616
    1717#. Plugin Name of the plugin
     18#: wp-user-avatar.php
    1819#: src/Integrations/TutorLMS/Init.php:57
    1920msgid "ProfilePress"
     
    2223#. Plugin URI of the plugin
    2324#. Author URI of the plugin
     25#: wp-user-avatar.php
    2426msgid "https://profilepress.com"
    2527msgstr ""
    2628
    2729#. Description of the plugin
     30#: wp-user-avatar.php
    2831msgid "The modern WordPress membership and user profile plugin."
    2932msgstr ""
    3033
    3134#. Author of the plugin
     35#: wp-user-avatar.php
    3236msgid "ProfilePress Membership Team"
    3337msgstr ""
     
    4953
    5054#: deprecated/wp-user-avatar/includes/class-wp-user-avatar-admin.php:93
     55#, php-format
    5156msgid "%s[avatar]%s displays a user's profile pictures."
    5257msgstr ""
    5358
    5459#: deprecated/wp-user-avatar/includes/class-wp-user-avatar-admin.php:100
     60#, php-format
    5561msgid "%s[avatar_upload]%s adds a standalone avatar uploader visible only to logged-in users."
    5662msgstr ""
     
    174180#: deprecated/wp-user-avatar/includes/wpua-options-page.php:38
    175181#: deprecated/wp-user-avatar/includes/wpua-options-page.php:70
     182#, php-format
    176183msgid "Maximum upload file size: %d%s."
    177184msgstr ""
     
    209216
    210217#: deprecated/wp-user-avatar/includes/class-wp-user-avatar.php:264
     218#, php-format
    211219msgid "Unable to create directory %s. Is its parent directory writable by the server?"
    212220msgstr ""
     
    316324#: deprecated/wp-user-avatar/includes/wpua-options-page.php:36
    317325#: deprecated/wp-user-avatar/includes/wpua-options-page.php:68
     326#, php-format
    318327msgid "%s exceeds the maximum upload size for this site."
    319328msgstr ""
     
    394403
    395404#: src/Admin/SettingsPages/AbstractSettingsPage.php:237
     405#, php-format
    396406msgid "Whether you need help or have a new feature request, let us know. %sRequest Support%s"
    397407msgstr ""
    398408
    399409#: src/Admin/SettingsPages/AbstractSettingsPage.php:245
     410#, php-format
    400411msgid "Detailed documentation is also available on the plugin website. %sView Knowledge Base%s"
    401412msgstr ""
    402413
    403414#: src/Admin/SettingsPages/AbstractSettingsPage.php:253
     415#, php-format
    404416msgid "If you are enjoying ProfilePress and find it useful, please consider leaving a ★★★★★ review on WordPress.org. %sLeave a Review%s"
    405417msgstr ""
    406418
    407419#: src/Admin/SettingsPages/AbstractSettingsPage.php:265
     420#, php-format
    408421msgid "Use the coupon code %s10PERCENTOFF%s to save %s off MailOptin."
    409422msgstr ""
     
    416429#: src/Admin/SettingsPages/Membership/CheckoutFieldsManager.php:90
    417430#: src/Admin/SettingsPages/Membership/PlanIntegrationsMetabox.php:178
    418 #: src/Functions/GlobalFunctions.php:1456
    419 #: src/Functions/GlobalFunctions.php:1488
    420 #: src/Functions/GlobalFunctions.php:1510
     431#: src/Functions/GlobalFunctions.php:1457
     432#: src/Functions/GlobalFunctions.php:1489
     433#: src/Functions/GlobalFunctions.php:1511
    421434#: src/LoginRedirect.php:180
    422435msgid "Select..."
     
    459472
    460473#: src/Admin/SettingsPages/AddNewForm.php:79
     474#, php-format
    461475msgid "Code your own from scratch with complete control and flexibility. %sLearn more%s."
    462476msgstr ""
     
    472486
    473487#: src/Admin/SettingsPages/AdminFooter.php:27
     488#, php-format
    474489msgid "Thank you for using <a href=\"%1$s\" target=\"_blank\">ProfilePress</a>! Please <a href=\"%2$s\" target=\"_blank\">rate us ★★★★★</a> on <a href=\"%2$s\" target=\"_blank\">WordPress.org</a> to help us spread the word."
    475490msgstr ""
     
    500515#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1247
    501516#: src/Admin/SettingsPages/Membership/CheckoutFieldsManager.php:93
    502 #: src/Functions/GlobalFunctions.php:1513
     517#: src/Functions/GlobalFunctions.php:1514
    503518#: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:222
    504519msgid "Standard Fields"
     
    513528#: src/Admin/SettingsPages/Membership/CheckoutFieldsManager.php:101
    514529#: src/Classes/ExtensionManager.php:135
    515 #: src/Functions/GlobalFunctions.php:1516
     530#: src/Functions/GlobalFunctions.php:1517
    516531#: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:236
    517532msgid "Custom Fields"
     
    678693
    679694#: src/Admin/SettingsPages/DragDropBuilder/FieldBase.php:210
    680 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:372
     695#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:375
    681696#: src/ShortcodeParser/MyAccount/view-subscription.tmpl.php:43
    682697msgid "Cancel"
     
    723738#: src/Admin/SettingsPages/DragDropBuilder/Fields/Bio.php:22
    724739#: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/Bio.php:22
    725 #: src/Functions/GlobalFunctions.php:1500
     740#: src/Functions/GlobalFunctions.php:1501
    726741#: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:231
    727742#: src/Themes/DragDrop/AbstractTheme.php:205
     
    900915#: src/Admin/SettingsPages/DragDropBuilder/Fields/Login/Password.php:22
    901916#: src/Admin/SettingsPages/DragDropBuilder/Fields/Password.php:22
    902 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:321
     917#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:324
    903918#: src/Membership/CheckoutFields.php:86
    904919#: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:209
     
    9941009#: src/Admin/SettingsPages/DragDropBuilder/Fields/DisplayName.php:22
    9951010#: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/DisplayName.php:22
    996 #: src/Functions/GlobalFunctions.php:1498
     1011#: src/Functions/GlobalFunctions.php:1499
    9971012#: src/Membership/CheckoutFields.php:114
    9981013#: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:365
     
    10191034#: src/Admin/SettingsPages/DragDropBuilder/Fields/Email.php:22
    10201035#: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/Email.php:22
    1021 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:313
    1022 #: src/Functions/GlobalFunctions.php:1499
     1036#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:316
     1037#: src/Functions/GlobalFunctions.php:1500
    10231038#: src/Membership/CheckoutFields.php:51
    10241039#: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:257
     
    10321047#: src/Admin/SettingsPages/DragDropBuilder/Fields/FirstName.php:22
    10331048#: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/FirstName.php:22
    1034 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:305
    1035 #: src/Functions/GlobalFunctions.php:1495
     1049#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:308
     1050#: src/Functions/GlobalFunctions.php:1496
    10361051#: src/Membership/CheckoutFields.php:65
    10371052#: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:397
     
    10541069#: src/Admin/SettingsPages/DragDropBuilder/Fields/LastName.php:22
    10551070#: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/LastName.php:22
    1056 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:309
    1057 #: src/Functions/GlobalFunctions.php:1496
     1071#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:312
     1072#: src/Functions/GlobalFunctions.php:1497
    10581073#: src/Membership/CheckoutFields.php:72
    10591074#: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:430
     
    10911106#: src/Admin/SettingsPages/DragDropBuilder/Fields/Nickname.php:22
    10921107#: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/Nickname.php:22
    1093 #: src/Functions/GlobalFunctions.php:1497
     1108#: src/Functions/GlobalFunctions.php:1498
    10941109#: src/Membership/CheckoutFields.php:107
    10951110#: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:333
     
    11891204#: src/Admin/SettingsPages/DragDropBuilder/Fields/Username.php:22
    11901205#: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/Username.php:22
    1191 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:317
    1192 #: src/Functions/GlobalFunctions.php:1494
     1206#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:320
     1207#: src/Functions/GlobalFunctions.php:1495
    11931208#: src/Membership/CheckoutFields.php:79
    11941209#: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:182
     
    12241239
    12251240#: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/CustomField.php:34
     1241#, php-format
    12261242msgid "Select a custom field. Only use the %1$sTitle%2$s and %1$sUser Meta / Field Key%2$s below if you don't have it %3$sdefined in ProfilePress%4$s."
    12271243msgstr ""
     
    14551471#: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:122
    14561472#: src/Classes/WelcomeEmailAfterSignup.php:56
     1473#, php-format
    14571474msgid "Welcome To %s"
    14581475msgstr ""
     
    15111528#: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:137
    15121529#: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:172
     1530#, php-format
    15131531msgid "Replace \"field_key\" with the %scustom field key%s or usermeta key."
    15141532msgstr ""
     
    15191537
    15201538#: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:146
     1539#, php-format
    15211540msgid "[%s] Password Reset"
    15221541msgstr ""
     
    15351554
    15361555#: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:161
     1556#, php-format
    15371557msgid "[%s] New User Registration"
    15381558msgstr ""
     
    15771597#: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:266
    15781598#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:51
    1579 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:221
    1580 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:242
     1599#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:224
     1600#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:245
    15811601msgid "Customers"
    15821602msgstr ""
     
    18351855
    18361856#: src/Admin/SettingsPages/ExtensionsSettingsPage.php:99
     1857#, php-format
    18371858msgid "Upgrade to unlock premium extensions and other great features. As a valued ProfilePress Lite user, you will %1$sreceive 10%3$s off%2$s your purchase, automatically applied at checkout!"
    18381859msgstr ""
     
    18521873
    18531874#: src/Admin/SettingsPages/ExtensionsSettingsPage.php:147
     1875#, php-format
    18541876msgid "Unavailable: %s"
    18551877msgstr ""
     
    18721894
    18731895#: src/Admin/SettingsPages/FormList.php:180
     1896#, php-format
    18741897msgid "No form is currently available. %sConsider creating one%s"
    18751898msgstr ""
     
    19541977#: src/Admin/SettingsPages/GeneralSettings.php:466
    19551978#: src/Classes/AjaxHandler.php:55
    1956 #: src/Membership/DigitalProducts/DownloadHandler.php:318
     1979#: src/Membership/DigitalProducts/DownloadHandler.php:330
    19571980#: src/ShortcodeParser/Builder/GlobalShortcodes.php:247
    19581981#: src/Themes/DragDrop/AbstractBuildScratch.php:180
     
    20012024#: src/Admin/SettingsPages/Forms.php:313
    20022025#: src/Admin/SettingsPages/MemberDirectories.php:173
    2003 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:385
     2026#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:388
    20042027msgid "Add New"
    20052028msgstr ""
     
    20682091#: src/Admin/SettingsPages/FuseWP.php:214
    20692092#: src/Admin/SettingsPages/MailOptin.php:209
     2093#, php-format
    20702094msgid "Could not install plugin. Please <a href=\"%s\">download</a> and install manually."
    20712095msgstr ""
     
    20742098#: src/Admin/SettingsPages/FuseWP.php:226
    20752099#: src/Admin/SettingsPages/MailOptin.php:221
     2100#, php-format
    20762101msgid "Could not activate plugin. Please activate from the <a href=\"%s\">Plugins page</a>."
    20772102msgstr ""
     
    23192344
    23202345#: src/Admin/SettingsPages/GeneralSettings.php:233
     2346#, php-format
    23212347msgid "Assign the WordPress pages for each required ProfilePress page, or %sclick here to let us generate them%s."
    23222348msgstr ""
     
    23272353
    23282354#: src/Admin/SettingsPages/GeneralSettings.php:245
     2355#, php-format
    23292356msgid "Select the page you wish to make WordPress default Login page. %3$s This should be the page that contains a %1$slogin form shortcode%2$s."
    23302357msgstr ""
     
    23362363
    23372364#: src/Admin/SettingsPages/GeneralSettings.php:253
     2365#, php-format
    23382366msgid "Select the page you wish to make WordPress default Registration page. %3$s This should be the page that contains a %1$sregistration form shortcode%2$s."
    23392367msgstr ""
     
    23442372
    23452373#: src/Admin/SettingsPages/GeneralSettings.php:261
     2374#, php-format
    23462375msgid "Select the page you wish to make WordPress default \"Lost Password page\". %3$s This should be the page that contains a %1$spassword reset form shortcode%2$s."
    23472376msgstr ""
     
    23522381
    23532382#: src/Admin/SettingsPages/GeneralSettings.php:269
     2383#, php-format
    23542384msgid "Select a page that contains %3$s shortcode. You can also use an %1$sedit profile shortcode%2$s on the My Account page in case you want something custom."
    23552385msgstr ""
     
    23642394
    23652395#: src/Admin/SettingsPages/GeneralSettings.php:280
     2396#, php-format
    23662397msgid "The checkout page where members will complete their payments. %2$sThe shortcode %1$s must be on this page."
    23672398msgstr ""
     
    23722403
    23732404#: src/Admin/SettingsPages/GeneralSettings.php:289
     2405#, php-format
    23742406msgid "The page customers are sent to after completing their orders.%2$sThe shortcode %1$s must be on this page."
    23752407msgstr ""
     
    24562488
    24572489#: src/Admin/SettingsPages/GeneralSettings.php:355
     2490#, php-format
    24582491msgid "Redirect <a target=\"_blank\" href=\"%s\">default WordPress profile</a> to My Account page."
    24592492msgstr ""
     
    25122545
    25132546#: src/Admin/SettingsPages/GeneralSettings.php:405
     2547#, php-format
    25142548msgid "Select the page that contains your <a href=\"%s\">Frontend user profile shortcode</a>."
    25152549msgstr ""
     
    25202554
    25212555#: src/Admin/SettingsPages/GeneralSettings.php:411
     2556#, php-format
    25222557msgid "Enter your preferred profile URL slug. Default to \"profile\" if empty. If slug is \"profile\", URL becomes %s where \"john\" is a user's username."
    25232558msgstr ""
     
    25572592
    25582593#: src/Admin/SettingsPages/GeneralSettings.php:437
     2594#, php-format
    25592595msgid "Change and redirect authors pages %s to their front-end profiles %s."
    25602596msgstr ""
     
    26052641
    26062642#: src/Admin/SettingsPages/GeneralSettings.php:500
     2643#, php-format
    26072644msgid "%sNote:%s Access setting takes precedence over %sContent Protection rules%s."
    26082645msgstr ""
     
    26662703
    26672704#: src/Admin/SettingsPages/GeneralSettings.php:547
     2705#, php-format
    26682706msgid "Block users from registering and checking out with email addresses in this list. You can use full email address (%1$suser@email.com%2$s), domains (%1$s@example.com%2$s), or TLDs (%1$s.gov%2$s). Use a new line for each item."
    26692707msgstr ""
     
    26742712
    26752713#: src/Admin/SettingsPages/GeneralSettings.php:556
     2714#, php-format
    26762715msgid "Ensures users with email addresses in this list are not blocked from registering and checking out. You can use full email address (%1$suser@email.com%2$s), domains (%1$s@example.com%2$s), or TLDs (%1$s.gov%2$s). Use a new line for each item."
    26772716msgstr ""
     
    26942733
    26952734#: src/Admin/SettingsPages/GeneralSettings.php:584
     2735#, php-format
    26962736msgid "Check to redirect BuddyPress or BuddyBoss registration page to your selected %s"
    26972737msgstr ""
     
    27422782#. translators: %1$s Opening anchor tag, do not translate. %2$s Closing anchor tag, do not translate.
    27432783#: src/Admin/SettingsPages/LicenseUpgrader.php:96
     2784#, php-format
    27442785msgid "Already purchased? Simply %1$sretrieve your license key%2$s and enter it below to connect with ProfilePress Pro."
    27452786msgstr ""
     
    28072848#. translators: %1$s Opening anchor tag, do not translate. %2$s Closing anchor tag, do not translate.
    28082849#: src/Admin/SettingsPages/LicenseUpgrader.php:225
     2850#, php-format
    28092851msgid "<strong>Bonus</strong>: Loyal ProfilePress Lite users get <u>10%% off</u> regular price, automatically applied at checkout. %1$sUpgrade to Pro →%2$s"
    28102852msgstr ""
     
    29272969
    29282970#: src/Admin/SettingsPages/MembersDirectoryList.php:10
     2971#, php-format
    29292972msgid "No members directory is currently available. %sConsider creating one%s"
    29302973msgstr ""
     
    30703113#: src/Admin/SettingsPages/Membership/GroupsPage/SettingsPage.php:53
    30713114#: src/Admin/SettingsPages/Membership/PlansPage/SettingsPage.php:101
     3115#, php-format
    30723116msgid "%s cannot be empty."
    30733117msgstr ""
     
    30883132
    30893133#: src/Admin/SettingsPages/Membership/CouponsPage/SettingsPage.php:132
    3090 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:265
     3134#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:268
    30913135#: src/Admin/SettingsPages/Membership/DownloadLogsPage/SettingsPage.php:72
    30923136#: src/Admin/SettingsPages/Membership/GroupsPage/SettingsPage.php:125
     
    31783222msgstr ""
    31793223
    3180 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:105
     3224#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:109
    31813225#: src/Admin/SettingsPages/Membership/OrdersPage/SettingsPage.php:369
    31823226msgid "You do not have permission to perform this action."
    31833227msgstr ""
    31843228
    3185 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:105
    3186 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:118
    3187 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:128
    3188 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:148
    3189 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:162
    3190 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:169
    3191 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:177
     3229#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:109
     3230#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:122
     3231#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:132
     3232#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:152
     3233#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:165
     3234#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:172
     3235#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:180
    31923236#: src/Admin/SettingsPages/Membership/OrdersPage/SettingsPage.php:369
    31933237#: src/Admin/SettingsPages/Membership/OrdersPage/SettingsPage.php:377
    31943238#: src/Admin/SettingsPages/Membership/OrdersPage/SettingsPage.php:381
    31953239#: src/Admin/SettingsPages/Membership/OrdersPage/SettingsPage.php:413
    3196 #: src/Membership/DigitalProducts/DownloadHandler.php:53
    3197 #: src/Membership/DigitalProducts/DownloadHandler.php:325
     3240#: src/Membership/DigitalProducts/DownloadHandler.php:66
     3241#: src/Membership/DigitalProducts/DownloadHandler.php:346
    31983242#: src/Membership/DigitalProducts/DownloadService.php:84
    31993243msgid "Error"
    32003244msgstr ""
    32013245
    3202 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:118
     3246#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:122
    32033247msgid "Please enter a valid customer email."
    32043248msgstr ""
    32053249
    3206 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:128
     3250#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:132
     3251#, php-format
    32073252msgid "A user account already exists with the login %s."
    32083253msgstr ""
    32093254
    3210 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:148
     3255#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:152
    32113256msgid "Error creating customer account."
    32123257msgstr ""
    32133258
    3214 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:162
     3259#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:165
     3260#, php-format
    32153261msgid "Unable to locate existing account with the email %s."
    32163262msgstr ""
    32173263
    3218 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:169
     3264#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:172
     3265#, php-format
    32193266msgid "A customer with the ID %d already exists with this account."
    32203267msgstr ""
    32213268
    3222 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:177
     3269#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:180
    32233270msgid "Error creating customer record."
    32243271msgstr ""
    32253272
    3226 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:224
     3273#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:227
    32273274msgid "Add New Customer"
    32283275msgstr ""
    32293276
    3230 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:228
     3277#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:231
    32313278msgid "Customer Details"
    32323279msgstr ""
    32333280
    3234 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:294
     3281#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:297
    32353282msgid "User Account"
    32363283msgstr ""
    32373284
    3238 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:299
     3285#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:302
    32393286msgid "Search User"
    32403287msgstr ""
    32413288
    3242 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:344
     3289#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:347
    32433290msgid "New Account"
    32443291msgstr ""
    32453292
    3246 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:349
     3293#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:352
    32473294msgid "Existing Account"
    32483295msgstr ""
    32493296
    3250 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:361
     3297#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:364
    32513298msgid "Show password"
    32523299msgstr ""
    32533300
    3254 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:366
     3301#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:369
    32553302msgid "Hide password"
    32563303msgstr ""
    32573304
    3258 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:368
     3305#: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:371
    32593306#: src/Themes/DragDrop/UserProfile/DefaultTemplate.php:104
    32603307msgid "Hide"
     
    34753522#: src/Admin/SettingsPages/Membership/ExportPage/CustomersExport.php:21
    34763523msgid "Order IDs"
     3524msgstr ""
     3525
     3526#: src/Admin/SettingsPages/Membership/ExportPage/CustomersExport.php:22
     3527msgid "Billing Street Address"
     3528msgstr ""
     3529
     3530#: src/Admin/SettingsPages/Membership/ExportPage/CustomersExport.php:23
     3531#: src/Admin/SettingsPages/Membership/ExportPage/OrdersExport.php:22
     3532msgid "Billing City"
     3533msgstr ""
     3534
     3535#: src/Admin/SettingsPages/Membership/ExportPage/CustomersExport.php:24
     3536#: src/Admin/SettingsPages/Membership/ExportPage/OrdersExport.php:24
     3537#: src/Admin/SettingsPages/Membership/views/orders/eu-vat-sidebar.php:61
     3538msgid "Billing Country"
     3539msgstr ""
     3540
     3541#: src/Admin/SettingsPages/Membership/ExportPage/CustomersExport.php:25
     3542#: src/Admin/SettingsPages/Membership/ExportPage/OrdersExport.php:23
     3543msgid "Billing State"
     3544msgstr ""
     3545
     3546#: src/Admin/SettingsPages/Membership/ExportPage/CustomersExport.php:26
     3547msgid "Billing Zip / Postal Code"
     3548msgstr ""
     3549
     3550#: src/Admin/SettingsPages/Membership/ExportPage/CustomersExport.php:27
     3551#: src/Admin/SettingsPages/Membership/ExportPage/OrdersExport.php:26
     3552msgid "Billing Phone"
    34773553msgstr ""
    34783554
     
    35263602msgstr ""
    35273603
    3528 #: src/Admin/SettingsPages/Membership/ExportPage/OrdersExport.php:22
    3529 msgid "Billing City"
    3530 msgstr ""
    3531 
    3532 #: src/Admin/SettingsPages/Membership/ExportPage/OrdersExport.php:23
    3533 msgid "Billing State"
    3534 msgstr ""
    3535 
    3536 #: src/Admin/SettingsPages/Membership/ExportPage/OrdersExport.php:24
    3537 #: src/Admin/SettingsPages/Membership/views/orders/eu-vat-sidebar.php:61
    3538 msgid "Billing Country"
    3539 msgstr ""
    3540 
    35413604#: src/Admin/SettingsPages/Membership/ExportPage/OrdersExport.php:25
    35423605msgid "Billing Postcode"
    3543 msgstr ""
    3544 
    3545 #: src/Admin/SettingsPages/Membership/ExportPage/OrdersExport.php:26
    3546 msgid "Billing Phone"
    35473606msgstr ""
    35483607
     
    38633922
    38643923#: src/Admin/SettingsPages/Membership/FileDownloads.php:50
     3924#, php-format
    38653925msgid "Select the file download method. If you are using X-Accel-Redirect/X-Sendfile download method (recommended, especially for delivery large files), make sure that you have applied settings as described in <a href='%s'>Downloadable Product Handling</a> guide."
    38663926msgstr ""
     
    39854045#: src/Admin/SettingsPages/Membership/OrdersPage/OrderWPListTable.php:117
    39864046#: src/Admin/SettingsPages/Membership/SubscriptionsPage/SubscriptionWPListTable.php:122
     4047#, php-format
    39874048msgid "#%1$s - %2$s"
    39884049msgstr ""
     
    39904051#: src/Admin/SettingsPages/Membership/OrdersPage/OrderWPListTable.php:119
    39914052#: src/Admin/SettingsPages/Membership/SubscriptionsPage/SubscriptionWPListTable.php:124
     4053#, php-format
    39924054msgid "#%1$s - No Customer Assigned"
    39934055msgstr ""
     
    41534215
    41544216#: src/Admin/SettingsPages/Membership/PaymentSettings.php:109
     4217#, php-format
    41554218msgid "Label for the \"Agree to Terms\" checkbox where \"[terms]\" is a link to the %sterms and condition page%s"
    41564219msgstr ""
     
    41614224
    41624225#: src/Admin/SettingsPages/Membership/PaymentSettings.php:117
     4226#, php-format
    41634227msgid "Specify how to calculate proration for subscription downgrades and upgrades. %sCost-based calculation is where the value of an upgrade is calculated based on the cost difference between the current and new membership plans. %sTime-based calculation is true proration in which the amount of time remaining on the current subscription plan is calculated to adjust the cost of the new subscription."
    41644228msgstr ""
     
    42314295
    42324296#: src/Admin/SettingsPages/Membership/PlansPage/PlanWPListTable.php:64
     4297#, php-format
    42334298msgid "ID: %d"
    42344299msgstr ""
     
    43114376
    43124377#: src/Admin/SettingsPages/Membership/PlansPage/SettingsPage.php:307
     4378#, php-format
    43134379msgid " and a %s signup fee"
    43144380msgstr ""
     
    43314397
    43324398#: src/Admin/SettingsPages/Membership/PlansPage/SettingsPage.php:319
     4399#, php-format
    43334400msgid "Includes a %s free trial"
    43344401msgstr ""
     
    43484415
    43494416#: src/Admin/SettingsPages/Membership/SubscriptionsPage/SettingsPage.php:197
     4417#, php-format
    43504418msgid "%1$sNote%2$s - Be careful modifying details here. For example, changing the gateway subscription ID can result in renewals not being processed. While changing the expiration date will not affect when renewal payments are processed because your payment processor determines when."
    43514419msgstr ""
     
    43784446
    43794447#: src/Admin/SettingsPages/Membership/TaxSettings/SettingsPage.php:54
     4448#, php-format
    43804449msgid "%1$sDisclaimer %2$s- By using this feature, you've agreed that the use of this feature cannot be considered as tax advice. We recommend consulting a local tax professional for tax compliance or if you have any tax specific questions."
    43814450msgstr ""
     
    44184487
    44194488#: src/Admin/SettingsPages/Membership/TaxSettings/SettingsPage.php:83
     4489#, php-format
    44204490msgid "If \"Shop Base Address\" is selected, Tax will be calculated based on the location of your %sbusiness in Settings%s."
    44214491msgstr ""
     
    45584628
    45594629#: src/Admin/SettingsPages/Membership/views/add-edit-coupon.php:85
     4630#, php-format
    45604631msgid "Enter the date that this coupon will be valid from. Leave blank for no start date. (UTC %s)"
    45614632msgstr ""
    45624633
    45634634#: src/Admin/SettingsPages/Membership/views/add-edit-coupon.php:95
     4635#, php-format
    45644636msgid "Enter the date that this coupon will expire on. Leave blank for no end date. (UTC %s)"
    45654637msgstr ""
     
    46414713
    46424714#: src/Admin/SettingsPages/Membership/views/add-edit-plan.php:76
     4715#, php-format
    46434716msgid "Users who subscribe to a one-time payment plan get lifetime subscriptions. If you want their subscription to expire after a particular duration or at a specific date, %1$supgrade to premium%2$s to get the %3$sFixed Subscription Expiration addon%2$s."
    46444717msgstr ""
     
    46784751
    46794752#: src/Admin/SettingsPages/Membership/views/add-edit-plan.php:130
     4753#, php-format
    46804754msgid "Set to 0 for unlimited re-downloads. Leave blank to use %sglobal setting%s"
    46814755msgstr ""
    46824756
    46834757#: src/Admin/SettingsPages/Membership/views/add-edit-plan.php:140
     4758#, php-format
    46844759msgid "Enter the number of days before a download link expires. Set to 0 for no expiration. Leave blank to use %sglobal setting%s."
    46854760msgstr ""
     
    48034878#: src/Admin/SettingsPages/Membership/views/orders/order-data-metabox.php:106
    48044879#: src/Admin/SettingsPages/Membership/views/subscriptions/data-metabox.php:150
     4880#, php-format
    48054881msgid "%1$s (%2$s)"
    48064882msgstr ""
     
    48194895
    48204896#: src/Admin/SettingsPages/Membership/views/customers/view-customer.php:21
     4897#, php-format
    48214898msgid "Customer #%s"
    48224899msgstr ""
     
    48284905#: src/Admin/SettingsPages/Membership/views/orders/add-edit-order.php:20
    48294906#: src/Admin/SettingsPages/Membership/views/orders/order-data-metabox.php:74
     4907#, php-format
    48304908msgid "Order #%s"
    48314909msgstr ""
     
    49345012#: src/Admin/SettingsPages/Membership/views/orders/order-data-metabox.php:37
    49355013#: src/Admin/SettingsPages/Membership/views/subscriptions/data-metabox.php:35
     5014#, php-format
    49365015msgid "Payment via %s"
    49375016msgstr ""
    49385017
    49395018#: src/Admin/SettingsPages/Membership/views/orders/order-data-metabox.php:54
     5019#, php-format
    49405020msgid "Paid on %1$s @ %2$s"
    49415021msgstr ""
    49425022
    49435023#: src/Admin/SettingsPages/Membership/views/orders/order-data-metabox.php:64
     5024#, php-format
    49445025msgid "Customer IP: %s"
    49455026msgstr ""
     
    50315112
    50325113#: src/Admin/SettingsPages/Membership/views/payment-method-list.php:54
     5114#, php-format
    50335115msgid "Wish to accept payments and sell memberships via PayPal? %supgrade to premium%s."
    50345116msgstr ""
    50355117
    50365118#: src/Admin/SettingsPages/Membership/views/payment-method-list.php:58
     5119#, php-format
    50375120msgid "%sUpgrade to premium%s to accept one-time and recurring payments via iDEAL, Credit Card, Apple Pay, Klarna, Bancontact, in3 etc with Mollie."
    50385121msgstr ""
    50395122
    50405123#: src/Admin/SettingsPages/Membership/views/payment-method-list.php:62
     5124#, php-format
    50415125msgid "%sUpgrade to premium%s to accept one-time and recurring payments via Razorpay."
    50425126msgstr ""
     
    50485132#: src/Admin/SettingsPages/Membership/views/subscriptions/add-edit-subscription.php:18
    50495133#: src/Admin/SettingsPages/Membership/views/subscriptions/data-metabox.php:49
     5134#, php-format
    50505135msgid "Subscription #%s"
    50515136msgstr ""
     
    50815166
    50825167#: src/Admin/SettingsPages/Membership/views/subscriptions/data-metabox.php:101
     5168#, php-format
    50835169msgid "Initial Amount (%s):"
    50845170msgstr ""
    50855171
    50865172#: src/Admin/SettingsPages/Membership/views/subscriptions/data-metabox.php:106
     5173#, php-format
    50875174msgid "Initial Tax Amount (%s):"
    50885175msgstr ""
    50895176
    50905177#: src/Admin/SettingsPages/Membership/views/subscriptions/data-metabox.php:111
     5178#, php-format
    50915179msgid "Initial Tax Rate (%s):"
    50925180msgstr ""
    50935181
    50945182#: src/Admin/SettingsPages/Membership/views/subscriptions/data-metabox.php:116
     5183#, php-format
    50955184msgid "Recurring Amount (%s):"
    50965185msgstr ""
    50975186
    50985187#: src/Admin/SettingsPages/Membership/views/subscriptions/data-metabox.php:121
     5188#, php-format
    50995189msgid "Recurring Tax Amount (%s):"
    51005190msgstr ""
    51015191
    51025192#: src/Admin/SettingsPages/Membership/views/subscriptions/data-metabox.php:126
     5193#, php-format
    51035194msgid "Recurring Tax Rate (%s):"
    51045195msgstr ""
     
    51145205
    51155206#: src/Admin/SettingsPages/Membership/views/subscriptions/data-metabox.php:170
     5207#, php-format
    51165208msgid "%sSubscription ID:"
    51175209msgstr ""
     
    52125304
    52135305#: src/Classes/AdminNotices.php:88
     5306#, php-format
    52145307msgid "<strong>Important:</strong> No real payment is being processed because ProfilePress is in test mode. Go to <a href=\"%s\">Payment method settings</a> to disable test mode."
    52155308msgstr ""
    52165309
    52175310#: src/Classes/AdminNotices.php:121
     5311#, php-format
    52185312msgid "Hey, I noticed you have been using ProfilePress for at least 7 days now - that's awesome! Could you please do us a BIG favor and give it a %1$s5-star rating on WordPress?%2$s This will help us spread the word and boost our motivation - thanks!"
    52195313msgstr ""
     
    52325326
    52335327#: src/Classes/AdminNotices.php:150
     5328#, php-format
    52345329msgid "Your site permalink structure is currently set to <code>Plain</code>. This setting is not compatible with ProfilePress. Change your permalink structure to any other setting to avoid issues. We recommend <code>Post name</code>.</p><p>%s"
    52355330msgstr ""
     
    52605355
    52615356#: src/Classes/AdminNotices.php:257
     5357#, php-format
    52625358msgid "User registration currently disabled. To enable, Go to <a href=\"%1$s\">Settings -> General</a>, and under Membership, check \"Anyone can register\""
    52635359msgstr ""
     
    55655661
    55665662#: src/Classes/FileUploader.php:74
     5663#, php-format
    55675664msgid "Uploaded file is greater than the allowed sized of %s"
    55685665msgstr ""
     
    55735670
    55745671#: src/Classes/FileUploader.php:128
     5672#, php-format
    55755673msgid "Unable to save %s, please try again."
    55765674msgstr ""
     
    56295727
    56305728#: src/Classes/ImageUploader.php:63
     5729#, php-format
    56315730msgid "%s is greater than the allowed sized of %s"
    56325731msgstr ""
     
    56995798
    57005799#: src/Classes/Miscellaneous.php:111
     5800#, php-format
    57015801msgid "ProfilePress %s"
    57025802msgstr ""
     
    57665866#: src/Membership/Controllers/CheckoutTrait.php:231
    57675867#: src/Membership/Controllers/CheckoutTrait.php:250
     5868#, php-format
    57685869msgid "%s field is required"
    57695870msgstr ""
     
    58555956
    58565957#: src/ContentProtection/ContentConditions.php:279
     5958#, php-format
    58575959msgid "%s Archive Page"
    58585960msgstr ""
    58595961
    58605962#: src/ContentProtection/ContentConditions.php:286
     5963#, php-format
    58615964msgid "All %s"
    58625965msgstr ""
    58635966
    58645967#: src/ContentProtection/ContentConditions.php:293
     5968#, php-format
    58655969msgid "Selected %s"
    58665970msgstr ""
     
    58715975#: src/ContentProtection/ContentConditions.php:394
    58725976#: src/ContentProtection/ContentConditions.php:430
     5977#, php-format
    58735978msgid "Select %s"
    58745979msgstr ""
    58755980
    58765981#: src/ContentProtection/ContentConditions.php:305
     5982#, php-format
    58775983msgid "Child %s of"
    58785984msgstr ""
    58795985
    58805986#: src/ContentProtection/ContentConditions.php:306
     5987#, php-format
    58815988msgid "Child of Selected %s"
    58825989msgstr ""
    58835990
    58845991#: src/ContentProtection/ContentConditions.php:317
     5992#, php-format
    58855993msgid "Parent %s of"
    58865994msgstr ""
    58875995
    58885996#: src/ContentProtection/ContentConditions.php:318
     5997#, php-format
    58895998msgid "Parent of Selected %s"
    58905999msgstr ""
     
    58956004
    58966005#: src/ContentProtection/ContentConditions.php:334
     6006#, php-format
    58976007msgid "%s with Template"
    58986008msgstr ""
     
    59156025
    59166026#: src/ContentProtection/ContentConditions.php:392
     6027#, php-format
    59176028msgid "%1$s with %2$s"
    59186029msgstr ""
    59196030
    59206031#: src/ContentProtection/ContentConditions.php:416
     6032#, php-format
    59216033msgid "%s (%s)"
    59226034msgstr ""
    59236035
    59246036#: src/ContentProtection/ContentConditions.php:420
     6037#, php-format
    59256038msgid "All %s Archive Pages"
    59266039msgstr ""
     
    59286041#: src/ContentProtection/ContentConditions.php:421
    59296042#: src/ContentProtection/ContentConditions.php:427
     6043#, php-format
    59306044msgid "%s Archive"
    59316045msgstr ""
    59326046
    59336047#: src/ContentProtection/ContentConditions.php:428
     6048#, php-format
    59346049msgid "Selected %s Archive Pages"
    59356050msgstr ""
     
    60016116
    60026117#: src/ContentProtection/SettingsPage.php:51
     6118#, php-format
    60036119msgid "We have changed the logic of protecting content. %1$sOR%2$s is now %1$sAND%2$s while %1$sAND%2$s has been changed to %1$sOR%2$s. Please review the \"Content to Protect\" setup and ensure everything is perfect before saving."
    60046120msgstr ""
     
    60456161
    60466162#: src/ContentProtection/views/include.elementor-protection.php:5
     6163#, php-format
    60476164msgid "Want to control the visibility of Elementor sections, containers and widgets based on user roles, logged-in status and membership plans? %sLearn how to%s"
    60486165msgstr ""
    60496166
    60506167#: src/ContentProtection/views/include.menu-protection.php:5
     6168#, php-format
    60516169msgid "Want to control the visibility of WordPress navigation menus based on user roles, logged-in status and membership plans? %sLearn how to%s"
    60526170msgstr ""
    60536171
    60546172#: src/ContentProtection/views/include.shortcode-doc-sidebar.php:5
     6173#, php-format
    60556174msgid "To restrict contents in a post or page, we provide the below shortcode. %sLearn more%s"
    60566175msgstr ""
     
    60616180
    60626181#: src/ContentProtection/views/include.shortcode-doc-sidebar.php:17
     6182#, php-format
    60636183msgid "Want to restrict contents in the block editor? %sLearn how to%s"
    60646184msgstr ""
     
    1516915289msgstr ""
    1517015290
    15171 #: src/Functions/GlobalFunctions.php:1303
     15291#: src/Functions/GlobalFunctions.php:1304
    1517215292msgid "It must be unique for each field, not a reserve text, in lowercase letters only with an underscore ( _ ) separating words e.g job_title"
    1517315293msgstr ""
    1517415294
    15175 #: src/Functions/GlobalFunctions.php:1440
     15295#: src/Functions/GlobalFunctions.php:1441
     15296#, php-format
    1517615297msgid "%s (WooCommerce Billing Address)"
    1517715298msgstr ""
    1517815299
    15179 #: src/Functions/GlobalFunctions.php:1444
     15300#: src/Functions/GlobalFunctions.php:1445
     15301#, php-format
    1518015302msgid "%s (WooCommerce Shipping Address)"
    1518115303msgstr ""
    1518215304
    15183 #: src/Functions/GlobalFunctions.php:1492
     15305#: src/Functions/GlobalFunctions.php:1493
    1518415306msgid "First and Last Names"
    1518515307msgstr ""
    1518615308
    15187 #: src/Functions/GlobalFunctions.php:1493
     15309#: src/Functions/GlobalFunctions.php:1494
    1518815310msgid "Last and First Names"
    1518915311msgstr ""
    1519015312
    15191 #: src/Functions/GlobalFunctions.php:1501
     15313#: src/Functions/GlobalFunctions.php:1502
    1519215314msgid "Registration Date"
    1519315315msgstr ""
    1519415316
    15195 #: src/Functions/GlobalFunctions.php:1640
     15317#: src/Functions/GlobalFunctions.php:1641
    1519615318msgid "There was an problem while verifying your file."
    1519715319msgstr ""
    1519815320
    15199 #: src/Functions/GlobalFunctions.php:1645
     15321#: src/Functions/GlobalFunctions.php:1646
    1520015322msgid "Sorry, this file extension is not permitted for security reasons."
    1520115323msgstr ""
    1520215324
    15203 #: src/Functions/GlobalFunctions.php:1649
     15325#: src/Functions/GlobalFunctions.php:1650
    1520415326msgid "Sorry, this file type is not permitted for security reasons."
    1520515327msgstr ""
    1520615328
    15207 #: src/Functions/GlobalFunctions.php:1653
    15208 #: src/Functions/GlobalFunctions.php:1657
     15329#: src/Functions/GlobalFunctions.php:1654
     15330#: src/Functions/GlobalFunctions.php:1658
    1520915331msgid "Error: The file you uploaded is not accepted on our website."
    1521015332msgstr ""
     
    1586715989
    1586815990#: src/Functions/MSFunctions.php:914
     15991#, php-format
    1586915992msgid "Customer already has an active subscription for %s."
    1587015993msgstr ""
     
    1593916062
    1594016063#: src/Integrations/TutorLMS/Init.php:327
     16064#, php-format
    1594116065msgid "Select a page with a custom ProfilePress registration form shortcode you wish to make a student registration page for Tutor LMS. %sLearn more%s"
    1594216066msgstr ""
     
    1594716071
    1594816072#: src/Integrations/TutorLMS/Init.php:336
     16073#, php-format
    1594916074msgid "Select a page with a ProfilePress registration form shortcode you wish to make an instructor registration page for Tutor LMS. %sLearn more%s"
    1595016075msgstr ""
     
    1603916164
    1604016165#: src/Membership/Controllers/CheckoutController.php:162
     16166#, php-format
    1604116167msgid "Coupon code \"%s\" not found."
    1604216168msgstr ""
     
    1608716213msgstr ""
    1608816214
    16089 #: src/Membership/DigitalProducts/DownloadHandler.php:53
     16215#: src/Membership/DigitalProducts/DownloadHandler.php:66
    1609016216msgid "Sorry but you have hit your download limit for this file."
    1609116217msgstr ""
    1609216218
    16093 #: src/Membership/DigitalProducts/DownloadHandler.php:62
     16219#: src/Membership/DigitalProducts/DownloadHandler.php:75
     16220#, php-format
    1609416221msgid "You must have an active subscription to %s in order to download this file."
    1609516222msgstr ""
    1609616223
    16097 #: src/Membership/DigitalProducts/DownloadHandler.php:65
     16224#: src/Membership/DigitalProducts/DownloadHandler.php:78
    1609816225msgid "Access Denied"
    1609916226msgstr ""
    1610016227
    16101 #: src/Membership/DigitalProducts/DownloadHandler.php:318
     16228#: src/Membership/DigitalProducts/DownloadHandler.php:330
    1610216229msgid "You must be logged in to download files."
    1610316230msgstr ""
    1610416231
    16105 #: src/Membership/DigitalProducts/DownloadHandler.php:318
     16232#: src/Membership/DigitalProducts/DownloadHandler.php:330
    1610616233msgid "Log in to Download Files"
    1610716234msgstr ""
    1610816235
    16109 #: src/Membership/DigitalProducts/DownloadHandler.php:324
     16236#: src/Membership/DigitalProducts/DownloadHandler.php:338
     16237msgid "You are not allowed to access this file"
     16238msgstr ""
     16239
     16240#: src/Membership/DigitalProducts/DownloadHandler.php:338
     16241#: src/Membership/DigitalProducts/DownloadHandler.php:357
     16242msgid "File download error"
     16243msgstr ""
     16244
     16245#: src/Membership/DigitalProducts/DownloadHandler.php:345
    1611016246msgid "You do not have permission to download this file"
    1611116247msgstr ""
    1611216248
    16113 #: src/Membership/DigitalProducts/DownloadHandler.php:325
     16249#: src/Membership/DigitalProducts/DownloadHandler.php:346
    1611416250msgid "Order Verification Failed"
    1611516251msgstr ""
    1611616252
    16117 #: src/Membership/DigitalProducts/DownloadHandler.php:336
     16253#: src/Membership/DigitalProducts/DownloadHandler.php:357
    1611816254msgid "Error 103: Error downloading file. Please contact support."
    1611916255msgstr ""
    1612016256
    16121 #: src/Membership/DigitalProducts/DownloadHandler.php:336
    16122 msgid "File download error"
    16123 msgstr ""
    16124 
    16125 #: src/Membership/DigitalProducts/DownloadHandler.php:353
     16257#: src/Membership/DigitalProducts/DownloadHandler.php:374
    1612616258msgid "Sorry, this file could not be downloaded."
    1612716259msgstr ""
    1612816260
    16129 #: src/Membership/DigitalProducts/DownloadHandler.php:353
     16261#: src/Membership/DigitalProducts/DownloadHandler.php:374
    1613016262msgid "Error Downloading File"
    1613116263msgstr ""
     
    1613716269#. translators: 1: uploads directory URL 2: documentation URL
    1613816270#: src/Membership/DigitalProducts/UploadHandler.php:285
     16271#, php-format
    1613916272msgid "Your store's uploads directory is <a href=\"%1$s\">browsable via the web</a>. We strongly recommend <a href=\"%2$s\">configuring your web server to prevent directory indexing</a>."
    1614016273msgstr ""
     
    1615616289
    1615716290#: src/Membership/Emails/EmailDataTrait.php:14
     16291#, php-format
    1615816292msgid "User custom profile field information. Replace \"field_key\" with the %scustom field key%s or usermeta key."
    1615916293msgstr ""
     
    1622516359
    1622616360#: src/Membership/Emails/EmailDataTrait.php:34
     16361#, php-format
    1622716362msgid "Your business name as defined in %sSettings%s."
    1622816363msgstr ""
    1622916364
    1623016365#: src/Membership/Emails/EmailDataTrait.php:38
     16366#, php-format
    1623116367msgid "Your business address as defined in %sSettings%s."
    1623216368msgstr ""
    1623316369
    1623416370#: src/Membership/Emails/EmailDataTrait.php:42
     16371#, php-format
    1623516372msgid "Your business Tax ID as defined in %sSettings%s."
    1623616373msgstr ""
     
    1626516402
    1626616403#: src/Membership/Models/Order/OrderEntity.php:239
     16404#, php-format
    1626716405msgid "Payment %s has been fully refunded in %s."
    1626816406msgstr ""
     
    1627416412
    1627516413#: src/Membership/Models/Order/OrderEntity.php:262
     16414#, php-format
    1627616415msgid "Order changed from %s to %s by %s"
    1627716416msgstr ""
     
    1634516484
    1634616485#: src/Membership/Models/Subscription/SubscriptionEntity.php:568
     16486#, php-format
    1634716487msgid "Subscription changed from %s to %s by %s"
    1634816488msgstr ""
     
    1645516595#. translators: %1$s Opening strong tag, do not translate. %2$s Closing anchor tag, do not translate.
    1645616596#: src/Membership/PaymentMethods/Stripe/Helpers.php:156
     16597#, php-format
    1645716598msgid "You are currently connected to a %1$stemporary%2$s Stripe account, which can only be used for testing purposes."
    1645816599msgstr ""
     
    1649116632
    1649216633#: src/Membership/PaymentMethods/Stripe/Helpers.php:287
     16634#, php-format
    1649316635msgid "Pay as you go pricing: 2%% per-transaction fee + Stripe fees. Remove the 2%% fee by %supgrading to premium%s."
    1649416636msgstr ""
     
    1650716649
    1650816650#: src/Membership/PaymentMethods/Stripe/Stripe.php:39
     16651#, php-format
    1650916652msgid "NOTE: The free version of ProfilePress includes an additional 2%% fee for processing payments. Remove the fee by %supgrading to premium%s."
    1651016653msgstr ""
     
    1652316666
    1652416667#: src/Membership/PaymentMethods/Stripe/Stripe.php:220
     16668#, php-format
    1652516669msgid "Your Stripe account is connected in %1$s mode. %2$sDisconnect this account%3$s."
    1652616670msgstr ""
     
    1653116675
    1653216676#: src/Membership/PaymentMethods/Stripe/Stripe.php:242
     16677#, php-format
    1653316678msgid "Connect now to start accepting payments instantly. This includes an additional 2%% payment processing fee. Remove the fee by %supgrading to premium%s."
    1653416679msgstr ""
     
    1653916684
    1654016685#: src/Membership/PaymentMethods/Stripe/Stripe.php:263
     16686#, php-format
    1654116687msgid "In order for Stripe to function well, ensure the webhook endpoint %1$s is present in the %2$sStripe webhooks settings%3$s. Learn more from our %4$swebhook documentation%3$s"
    1654216688msgstr ""
     
    1655516701
    1655616702#: src/Membership/PaymentMethods/Stripe/Stripe.php:277
     16703#, php-format
    1655716704msgid "Retrieve your %3$s \"Signing secret\" from your %1$sStripe webhook settings%2$s. Select the endpoint then click \"Reveal\"."
    1655816705msgstr ""
     
    1656316710
    1656416711#: src/Membership/PaymentMethods/Stripe/Stripe.php:291
     16712#, php-format
    1656516713msgid "The text that appears on your customer's bank or credit card statements. Choose something they will recognise to help prevent disputes, typically your business name. Must be limited to 22 characters, no special characters %1$s<%2$s, %1$s>%2$s, %1$s'%2$s, or %1$s\"%2$s."
    1656616714msgstr ""
     
    1659116739
    1659216740#: src/Membership/PaymentMethods/Stripe/Stripe.php:311
     16741#, php-format
    1659316742msgid "This is only available when using Stripe Payment Page (Off-site) and have %sStripe Tax%s enabled in your Stripe account."
    1659416743msgstr ""
     
    1660316752
    1660416753#: src/Membership/PaymentMethods/Stripe/Stripe.php:328
     16754#, php-format
    1660516755msgid "Stripe advises that their Javascript library be loaded on every page to take advantage of their advanced fraud detection rules. If you are not concerned with this, enable this setting to only load the Javascript when necessary. %sLearn more%s"
    1660616756msgstr ""
     
    1661116761
    1661216762#: src/Membership/PaymentMethods/Stripe/Stripe.php:448
     16763#, php-format
    1661316764msgid "Attempted cancellation but was unable. Message was \"%s\"."
    1661416765msgstr ""
     
    1663616787
    1663716788#: src/Membership/PaymentMethods/Stripe/Stripe.php:978
     16789#, php-format
    1663816790msgid "Refund request failed. Status: %s"
    1663916791msgstr ""
    1664016792
    1664116793#: src/Membership/PaymentMethods/Stripe/WebhookHandlers/ChargeRefunded.php:36
     16794#, php-format
    1664216795msgid "Payment %s partially refunded in Stripe."
    1664316796msgstr ""
    1664416797
    1664516798#: src/Membership/PaymentMethods/Stripe/WebhookHandlers/CustomerSubscriptionUpdated.php:30
     16799#, php-format
    1664616800msgid "Subscription is scheduled for cancellation on %s"
    1664716801msgstr ""
     
    1665216806
    1665316807#: src/Membership/PaymentMethods/Stripe/WebhookHandlers/CustomerSubscriptionUpdated.php:94
     16808#, php-format
    1665416809msgid "Recurring amount changed from %s to %s in Stripe."
    1665516810msgstr ""
     
    1672616881#: src/RegisterActivation/Base.php:170
    1672716882#: src/templates/checkout/form-terms.php:9
     16883#, php-format
    1672816884msgid "I have read and agree to the website %s"
    1672916885msgstr ""
     
    1693017086
    1693117087#: src/ShortcodeParser/FrontendProfileTag.php:80
     17088#, php-format
    1693217089msgid "This content is available to members only. Please <a href=\"%1$s\">login</a> or <a href=\"%2$s\">register</a> to view this area."
    1693317090msgstr ""
     
    1697517132
    1697617133#: src/ShortcodeParser/MembershipShortcodes.php:81
     17134#, php-format
    1697717135msgid "Your cart is currently empty. Click <a href=\"%s\">here</a> to get started."
    1697817136msgstr ""
     
    1699517153
    1699617154#: src/ShortcodeParser/MembershipShortcodes.php:143
     17155#, php-format
    1699717156msgid "You have an active subscription to this plan. Please go to %syour account%s to manage your subscription."
    1699817157msgstr ""
     
    1703317192#. translators: 1: user display name 2: logout url
    1703417193#: src/ShortcodeParser/MyAccount/dashboard.tmpl.php:19
     17194#, php-format
    1703517195msgid "Hello %1$s (not %1$s? <a href=\"%2$s\">Log out</a>)"
    1703617196msgstr ""
    1703717197
    1703817198#: src/ShortcodeParser/MyAccount/dashboard.tmpl.php:29
     17199#, php-format
    1703917200msgid "From your account dashboard you can <a href=\"%1$s\">change your password</a> and <a href=\"%2$s\">edit your account details</a>."
    1704017201msgstr ""
     
    1715717318
    1715817319#: src/ShortcodeParser/MyAccount/view-subscription.tmpl.php:91
     17320#, php-format
    1715917321msgid "Via %s"
    1716017322msgstr ""
     
    1719317355
    1719417356#: src/templates/checkout/form-checkout-sidebar.php:49
     17357#, php-format
    1719517358msgid "Have a coupon? %sClick here to enter your code%s"
    1719617359msgstr ""
     
    1720917372
    1721017373#: src/templates/checkout/form-checkout-sidebar.php:87
     17374#, php-format
    1721117375msgid "Discount %s"
    1721217376msgstr ""
     
    1721717381
    1721817382#: src/templates/checkout/form-checkout-sidebar.php:132
     17383#, php-format
    1721917384msgid "You will be charged %1$stoday%2$s"
    1722017385msgstr ""
    1722117386
    1722217387#: src/templates/checkout/form-checkout-sidebar.php:141
     17388#, php-format
    1722317389msgid "then %1$s starting %2$s."
    1722417390msgstr ""
    1722517391
    1722617392#: src/templates/checkout/form-checkout-sidebar.php:148
     17393#, php-format
    1722717394msgid "%s payments total."
    1722817395msgstr ""
    1722917396
    1723017397#: src/templates/checkout/form-checkout-sidebar.php:155
     17398#, php-format
    1723117399msgid "After payment, your subscription will expire on %1$s"
    1723217400msgstr ""
     
    1725817426#. Translators: %s display name.
    1725917427#: src/templates/checkout/form-login.php:65
     17428#, php-format
    1726017429msgid "Logged in as %s. Not you?"
    1726117430msgstr ""
     
    1728617455
    1728717456#: src/templates/order-processing.php:3
     17457#, php-format
    1728817458msgid "Your order is processing. This page will reload automatically in 8 seconds. If it does not, click <a href=\"%s\">here</a>."
    1728917459msgstr ""
     
    1753517705
    1753617706#: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:143
     17707#, php-format
    1753717708msgid "%s Members"
    1753817709msgstr ""
    1753917710
    1754017711#: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:144
     17712#, php-format
    1754117713msgid "%s Member"
    1754217714msgstr ""
     
    1763617808
    1763717809#: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:315
     17810#, php-format
    1763817811msgid "%sUpgrade to ProfilePress premium%s if you don't have the custom field addon so you can enable search and filtering by custom fields."
    1763917812msgstr ""
     
    1772217895
    1772317896#: src/Themes/DragDrop/MemberDirectory/DefaultTemplate.php:72
     17897#, php-format
    1772417898msgid "%sUpgrade to ProfilePress premium%s if you don't have the custom field addon to display social profile icons of users."
    1772517899msgstr ""
     
    1777817952
    1777917953#: src/Themes/DragDrop/UserProfile/DefaultTemplate.php:132
     17954#, php-format
    1778017955msgid "%sUpgrade to ProfilePress premium%s if you don't have the custom field addon to display users social profiles."
    1778117956msgstr ""
     
    1782618001
    1782718002#: src/Themes/DragDrop/UserProfile/DefaultTemplate.php:313
     18003#, php-format
    1782818004msgid "Your profile is looking a little empty. Why not <a href=\"%s\">add some information</a>?"
    1782918005msgstr ""
     
    1793518111#: src/Widgets/TabbedWidget.php:218
    1793618112#: src/Widgets/UserPanel.php:50
     18113#, php-format
    1793718114msgid "Welcome %s"
    1793818115msgstr ""
  • wp-user-avatar/trunk/readme.txt

    r3408055 r3447273  
    66Requires PHP: 7.4
    77Tested up to: 6.9
    8 Stable tag: 4.16.8
     8Stable tag: 4.16.9
    99License: GPLv2 or later
    1010
     
    192192== Changelog ==
    193193
     194= Paid Membership, Ecommerce & User Registration 4.16.9 =
     195* Added billing address data to customer export.
     196* Added ppress_is_third_party_2fa_active filter.
     197* Fixed a likely fatal error on form preview.
     198* Fixed bug where account info data got lost on group checkout refresh.
     199* Fixed bug where checkout overrides previously uploaded files.
     200* Fixed bug where download link requiring logged in users worked for other logged in users.
     201* Add custom field placeholder support to admin new user email notification.
     202
    194203= Paid Membership, Ecommerce & User Registration 4.16.8 =
    195204* Fixed security issue with arbitrary shortcode execution on form preview.
     
    208217* Improved compatibility with WPML.
    209218
    210 = Paid Membership, Ecommerce & User Registration 4.16.5 =
    211 * Added multiple user role selection when editing users.
    212 * Fixed bug where shortcode could be executed as profile information
    213 * Fixed bug where registration blocking feature did not work during checkout.
    214 * Fixed Stripe bug where only country field in checkout lead to error.
    215 
    216 
    217 = Paid Membership, Ecommerce & User Registration 4.16.4 =
    218 * Pro: [AffiliateWP](https://profilepress.com/addons/affiliatewp/?ref=changelog) and [SliceWP](https://profilepress.com/addons/slicewp/?ref=changelog) addons.
    219 * Fixed bug where subscription remained active after last order refund.
    220 * Fixed bug with missing date_completed data for manual order creation.
    221 * Added ppress_checkout_before_account_info_fields action hook.
    222 * Added filter ppress_stripe_subscription_set_cancelled_action_as_expired.
    223 * Added ppress_membership_plan_price filter.
    224 * Added ppress_checkout_group_selector_plans filter.
    225 * Fixed a couple of PHP notices.
    226 
    227219See the [changelog file](https://plugins.svn.wordpress.org/wp-user-avatar/trunk/changelog.txt) for full change log information.
  • wp-user-avatar/trunk/src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php

    r3319431 r3447273  
    4747
    4848        $hook = $ppress_customer_page = add_submenu_page(
    49             PPRESS_DASHBOARD_SETTINGS_SLUG,
    50             $this->admin_page_title() . ' - ProfilePress',
    51             esc_html__('Customers', 'wp-user-avatar'),
    52             'manage_options',
    53             PPRESS_MEMBERSHIP_CUSTOMERS_SETTINGS_SLUG,
    54             array($this, 'admin_page_callback')
     49                PPRESS_DASHBOARD_SETTINGS_SLUG,
     50                $this->admin_page_title() . ' - ProfilePress',
     51                esc_html__('Customers', 'wp-user-avatar'),
     52                'manage_options',
     53                PPRESS_MEMBERSHIP_CUSTOMERS_SETTINGS_SLUG,
     54                [$this, 'admin_page_callback']
    5555        );
    5656
    57         add_action("load-$hook", array($this, 'add_options'));
     57        add_action("load-$hook", [$this, 'add_options']);
    5858
    5959        do_action('ppress_membership_customers_settings_page_register', $hook);
     
    9090        do_action('ppress_customer_updated', $customer_id);
    9191
    92         wp_safe_redirect(add_query_arg(['ppress_customer_action' => 'view', 'id' => $customer_id, 'saved' => 'true'], PPRESS_MEMBERSHIP_CUSTOMERS_SETTINGS_PAGE));
     92        wp_safe_redirect(add_query_arg([
     93                'ppress_customer_action' => 'view',
     94                'id'                     => $customer_id,
     95                'saved'                  => 'true'
     96        ], PPRESS_MEMBERSHIP_CUSTOMERS_SETTINGS_PAGE));
    9397        exit;
    9498    }
     
    102106        if ( ! isset($_POST['save_ppress_customers'])) return;
    103107
    104         if ( ! current_user_can( 'create_users' ) ) {
    105             wp_die( __( 'You do not have permission to perform this action.', 'wp-user-avatar' ), __( 'Error', 'wp-user-avatar' ), array( 'response' => 403 ) );
     108        if ( ! current_user_can('create_users')) {
     109            wp_die(__('You do not have permission to perform this action.', 'wp-user-avatar'), __('Error', 'wp-user-avatar'), array('response' => 403));
    106110        }
    107111
     
    130134
    131135            $user_args = array(
    132                 'user_login' => sanitize_text_field($user_login),
    133                 'user_email' => sanitize_text_field($customer_email),
    134                 'user_pass'  => ! empty($_POST['pass1']) ? $_POST['pass1'] : wp_generate_password(24),
    135                 'first_name' => ! empty($customer_data['first_name']) ? sanitize_text_field($customer_data['first_name']) : '',
    136                 'last_name'  => ! empty($customer_data['last_name']) ? sanitize_text_field($customer_data['last_name']) : ''
     136                    'user_login' => sanitize_text_field($user_login),
     137                    'user_email' => sanitize_text_field($customer_email),
     138                    'user_pass'  => ! empty($_POST['pass1']) ? $_POST['pass1'] : wp_generate_password(24),
     139                    'first_name' => ! empty($customer_data['first_name']) ? sanitize_text_field($customer_data['first_name']) : '',
     140                    'last_name'  => ! empty($customer_data['last_name']) ? sanitize_text_field($customer_data['last_name']) : ''
    137141            );
    138142
     
    149153            }
    150154
    151         if ( ! empty($user_id)) {
    152                 // Send welcome email to the user
    153                 RegistrationAuth::send_welcome_email($user_id, $user_args['user_pass']);
    154             }
     155            // Send welcome email to the user
     156            RegistrationAuth::send_welcome_email($user_id, $user_args['user_pass']);
    155157
    156158            $user = get_userdata($user_id);
     159
    157160        } else {
    158161
     
    195198
    196199        $users = get_users([
    197             'search'         => '*' . $search . '*',
    198             'search_columns' => ['user_email', 'user_login', 'user_nicename', 'display_name'],
    199             'fields'         => ['ID', 'user_email', 'user_login'],
    200             'number'         => 1000
     200                'search'         => '*' . $search . '*',
     201                'search_columns' => ['user_email', 'user_login', 'user_nicename', 'display_name'],
     202                'fields'         => ['ID', 'user_email', 'user_login'],
     203                'number'         => 1000
    201204        ]);
    202205
     
    206209
    207210                $results['results'][$user->ID] = array(
    208                     'id'   => $user->ID,
    209                     'text' => sprintf('%s (%s)', $user->user_login, $user->user_email),
     211                        'id'   => $user->ID,
     212                        'text' => sprintf('%s (%s)', $user->user_login, $user->user_email),
    210213                );
    211214            }
     
    240243    {
    241244        $args = [
    242             'label'   => esc_html__('Customers', 'wp-user-avatar'),
    243             'default' => 10,
    244             'option'  => 'customers_per_page'
     245                'label'   => esc_html__('Customers', 'wp-user-avatar'),
     246                'default' => 10,
     247                'option'  => 'customers_per_page'
    245248        ];
    246249
     
    290293
    291294            $instance->main_content([
    292                 apply_filters('ppress_admin_new_customer_form_fields', [
    293                     'account_type' => [
    294                         'label' => __('User Account', 'wp-user-avatar'),
    295                         'type'  => 'custom_field_block',
    296                         'data'  => self::user_account_type_settings()
    297                     ],
    298                     'search_user'   => [
    299                         'label'      => __('Search User', 'wp-user-avatar'),
    300                         'type'       => 'select',
    301                         'options'    => [],
    302                         'attributes' => ['class' => 'ppress-select2-field customer_wp_user']
    303                     ],
    304                     'first_name'    => [
    305                         'label' => __('First Name', 'wp-user-avatar'),
    306                         'type'  => 'text'
    307                     ],
    308                     'last_name'     => [
    309                         'label' => __('Last Name', 'wp-user-avatar'),
    310                         'type'  => 'text'
    311                     ],
    312                     'email'         => [
    313                         'label' => __('Email Address', 'wp-user-avatar'),
    314                         'type'  => 'text'
    315                     ],
    316                     'username'      => [
    317                         'label' => __('Username', 'wp-user-avatar'),
    318                         'type'  => 'text'
    319                     ],
    320                     'password'      => [
    321                         'label' => __('Password', 'wp-user-avatar'),
    322                         'type'  => 'custom_field_block',
    323                         'data'  => self::password_field()
    324                     ]
    325                 ])
     295                    apply_filters('ppress_admin_new_customer_form_fields', [
     296                            'account_type' => [
     297                                    'label' => __('User Account', 'wp-user-avatar'),
     298                                    'type'  => 'custom_field_block',
     299                                    'data'  => self::user_account_type_settings()
     300                            ],
     301                            'search_user'  => [
     302                                    'label'      => __('Search User', 'wp-user-avatar'),
     303                                    'type'       => 'select',
     304                                    'options'    => [],
     305                                    'attributes' => ['class' => 'ppress-select2-field customer_wp_user']
     306                            ],
     307                            'first_name'   => [
     308                                    'label' => __('First Name', 'wp-user-avatar'),
     309                                    'type'  => 'text'
     310                            ],
     311                            'last_name'    => [
     312                                    'label' => __('Last Name', 'wp-user-avatar'),
     313                                    'type'  => 'text'
     314                            ],
     315                            'email'        => [
     316                                    'label' => __('Email Address', 'wp-user-avatar'),
     317                                    'type'  => 'text'
     318                            ],
     319                            'username'     => [
     320                                    'label' => __('Username', 'wp-user-avatar'),
     321                                    'type'  => 'text'
     322                            ],
     323                            'password'     => [
     324                                    'label' => __('Password', 'wp-user-avatar'),
     325                                    'type'  => 'custom_field_block',
     326                                    'data'  => self::password_field()
     327                            ]
     328                    ])
    326329            ]);
    327330
     
    341344    {
    342345        $html = sprintf(
    343             '<label><input checked class="user-account-type" type="radio" name="user_account_type" value="new">%s</label>&nbsp;&nbsp;',
    344             __('New Account', 'wp-user-avatar')
     346                '<label><input checked class="user-account-type" type="radio" name="user_account_type" value="new">%s</label>&nbsp;&nbsp;',
     347                __('New Account', 'wp-user-avatar')
    345348        );
    346349
    347350        $html .= sprintf(
    348             '<label><input class="user-account-type" type="radio" name="user_account_type" value="existing">%s</label>&nbsp;&nbsp;',
    349             __('Existing Account', 'wp-user-avatar')
     351                '<label><input class="user-account-type" type="radio" name="user_account_type" value="existing">%s</label>&nbsp;&nbsp;',
     352                __('Existing Account', 'wp-user-avatar')
    350353        );
    351354
  • wp-user-avatar/trunk/src/Admin/SettingsPages/Membership/ExportPage/CustomersExport.php

    r2951776 r3447273  
    1919            __('Purchase Count', 'wp-user-avatar'),
    2020            __('Date Created', 'wp-user-avatar'),
    21             __('Order IDs', 'wp-user-avatar')
     21            __('Order IDs', 'wp-user-avatar'),
     22            __('Billing Street Address', 'wp-user-avatar'),
     23            __('Billing City', 'wp-user-avatar'),
     24            __('Billing Country', 'wp-user-avatar'),
     25            __('Billing State', 'wp-user-avatar'),
     26            __('Billing Zip / Postal Code', 'wp-user-avatar'),
     27            __('Billing Phone', 'wp-user-avatar')
    2228        ];
    2329    }
     
    2632    {
    2733        global $wpdb;
    28 
    29         $plan_id = $this->form['plan_id'] ?? '';
    30 
    31         $orders_table    = Base::orders_db_table();
    32         $customers_table = Base::customers_db_table();
    33         $wp_user_table   = $wpdb->users;
     34        $plan_id            = $this->form['plan_id'] ?? '';
     35        $orders_table       = Base::orders_db_table();
     36        $customers_table    = Base::customers_db_table();
     37        $wp_user_table      = $wpdb->users;
     38        $wp_user_meta_table = $wpdb->usermeta;
    3439
    3540        $replacements = [OrderStatus::COMPLETED];
    36         $sql          = "
    37 SELECT
    38     pc.id,
    39     pc.user_id,
    40     wpu.user_email,
    41     wpu.display_name,
    42     pc.private_note,
    43     pc.total_spend,
    44     pc.purchase_count,
    45     pc.date_created,
    46     (
    47             SELECT
    48                 GROUP_CONCAT(po.id)
    49             FROM
    50                 $orders_table AS po
    51             WHERE
    52                 po.customer_id = pc.id
    53                 AND po.status = %s) AS order_ids
    54         FROM
    55             $customers_table AS pc
    56             INNER JOIN $wp_user_table AS wpu ON pc.user_id = wpu.ID
    57             INNER JOIN $orders_table AS ppo ON ppo.customer_id = pc.id
    58 ";
     41
     42        $sql = "
     43        SELECT
     44            pc.id,
     45            pc.user_id,
     46            wpu.user_email,
     47            wpu.display_name,
     48            pc.private_note,
     49            pc.total_spend,
     50            pc.purchase_count,
     51            pc.date_created,
     52            GROUP_CONCAT(DISTINCT po.id) AS order_ids,
     53            um_address.meta_value AS street_address,
     54            um_city.meta_value AS city,
     55            um_country.meta_value AS country,
     56            um_state.meta_value AS state,
     57            um_postcode.meta_value AS postcode,
     58            um_phone.meta_value AS phone
     59        FROM
     60            $customers_table AS pc
     61            INNER JOIN $wp_user_table AS wpu ON pc.user_id = wpu.ID
     62            INNER JOIN $orders_table AS ppo ON ppo.customer_id = pc.id
     63            LEFT JOIN $orders_table AS po ON po.customer_id = pc.id AND po.status = %s
     64            LEFT JOIN $wp_user_meta_table AS um_address ON pc.user_id = um_address.user_id AND um_address.meta_key = 'ppress_billing_address'
     65            LEFT JOIN $wp_user_meta_table AS um_city ON pc.user_id = um_city.user_id AND um_city.meta_key = 'ppress_billing_city'
     66            LEFT JOIN $wp_user_meta_table AS um_country ON pc.user_id = um_country.user_id AND um_country.meta_key = 'ppress_billing_country'
     67            LEFT JOIN $wp_user_meta_table AS um_state ON pc.user_id = um_state.user_id AND um_state.meta_key = 'ppress_billing_state'
     68            LEFT JOIN $wp_user_meta_table AS um_postcode ON pc.user_id = um_postcode.user_id AND um_postcode.meta_key = 'ppress_billing_postcode'
     69            LEFT JOIN $wp_user_meta_table AS um_phone ON pc.user_id = um_phone.user_id AND um_phone.meta_key = 'ppress_phone'
     70    ";
    5971
    6072        if ( ! empty($plan_id)) {
     
    6577        $sql .= " GROUP BY pc.id";
    6678
    67         $page = max(1, intval($page));
    68 
     79        $page   = max(1, intval($page));
    6980        $offset = ($page - 1) * intval($limit);
    7081
     
    7586
    7687        if ($offset > 0) {
    77             $sql            .= "  OFFSET %d";
     88            $sql            .= " OFFSET %d";
    7889            $replacements[] = $offset;
    7990        }
  • wp-user-avatar/trunk/src/Classes/EditUserProfile.php

    r3292108 r3447273  
    244244        $upload_errors = '';
    245245        foreach ($uploads as $field_key => $uploaded_filename_or_wp_error) {
    246             if (is_wp_error($uploads[$field_key])) {
    247                 $upload_errors .= $uploads[$field_key]->get_error_message() . '<br/>';
     246            if (is_wp_error($uploaded_filename_or_wp_error)) {
     247                $upload_errors .= $uploaded_filename_or_wp_error->get_error_message() . '<br/>';
    248248            }
    249249        }
     
    260260        // we then merge the old and new uploads before saving the data to user meta table.
    261261        foreach ($uploads as $key => $value) {
    262             if (is_null($value) || empty($value)) {
     262            if (empty($value)) {
    263263                unset($uploads[$key]);
    264264            }
  • wp-user-avatar/trunk/src/Classes/FileUploader.php

    r2762842 r3447273  
    8787        });
    8888
    89         if ( ! is_array($allowed_extensions) || empty($allowed_extensions)) $allowed_extensions = [];
     89        if (empty($allowed_extensions)) $allowed_extensions = [];
    9090
    9191        $filename = $file['name'];
  • wp-user-avatar/trunk/src/Classes/FormPreviewHandler.php

    r3408055 r3447273  
    8585    function the_content()
    8686    {
    87         if ( ! is_user_logged_in()) return esc_html__('You must be logged in to preview a form.', 'wp-user-avatar');
     87        if ( ! function_exists('is_user_logged_in') || ! is_user_logged_in()) return esc_html__('You must be logged in to preview a form.', 'wp-user-avatar');
    8888
    8989        return do_shortcode(sprintf("[profilepress-%s id='%d']", $this->_form_type, $this->_form_id));
  • wp-user-avatar/trunk/src/Classes/ModifyRedirectDefaultLinks.php

    r3306352 r3447273  
    4141        global $pagenow;
    4242
     43        $is_active = false;
     44
    4345        if ('wp-login.php' == $pagenow) {
    4446
    4547            if (class_exists('Jetpack') && \Jetpack::is_module_active('sso')) {
    46                 return true;
    47             }
    48 
    49             if (function_exists('wd_di') && class_exists('\WP_Defender\Model\Setting\Two_Fa')) {
     48                $is_active = true;
     49            }
     50
     51            if ( ! $is_active && function_exists('wd_di') && class_exists('\WP_Defender\Model\Setting\Two_Fa')) {
    5052                try {
    51                     if (wd_di()->get(\WP_Defender\Model\Setting\Two_Fa::class)->enabled) return true;
     53                    if (wd_di()->get(\WP_Defender\Model\Setting\Two_Fa::class)->enabled) $is_active = true;
    5254                } catch (\Exception $e) {
    5355                }
    5456            }
    5557
    56             if (defined('WORDFENCE_VERSION') || defined('WORDFENCE_LS_VERSION')) {
    57                 return true;
    58             }
    59 
    60             if (defined('WP_2FA_VERSION')) return true;
    61 
    62             if (defined('SIMBA_TFA_PLUGIN_DIR')) return true;
    63 
    64             if (class_exists('\SG_Security\Options_Service\Options_Service') && \SG_Security\Options_Service\Options_Service::is_enabled('sg2fa')) {
    65                 return true;
    66             }
    67         }
    68 
    69         return false;
     58            if ( ! $is_active && (defined('WORDFENCE_VERSION') || defined('WORDFENCE_LS_VERSION'))) {
     59                $is_active = true;
     60            }
     61
     62            if ( ! $is_active && defined('WP_2FA_VERSION')) $is_active = true;
     63
     64            if ( ! $is_active && defined('SIMBA_TFA_PLUGIN_DIR')) $is_active = true;
     65
     66            if ( ! $is_active && class_exists('\SG_Security\Options_Service\Options_Service') && \SG_Security\Options_Service\Options_Service::is_enabled('sg2fa')) {
     67                $is_active = true;
     68            }
     69        }
     70
     71        return apply_filters('ppress_is_third_party_2fa_active', $is_active);
    7072    }
    7173
  • wp-user-avatar/trunk/src/Functions/GlobalFunctions.php

    r3329201 r3447273  
    796796            );
    797797
     798            $title = ppress_custom_profile_field_search_replace($title, $user);
    798799            $message = ppress_custom_profile_field_search_replace($message, $user);
    799800
  • wp-user-avatar/trunk/src/Membership/Controllers/CheckoutTrait.php

    r3319431 r3447273  
    399399        // --------START ---------   register custom field ----------------------//
    400400
    401         // if we get to this point, it means the files pass validation defined above.
    402         // array of files uploaded. Array key is the "custom field key" and the filename as the array value.
    403         $custom_usermeta['pp_uploaded_files'] = $uploads;
     401        if (is_user_logged_in()) {
     402
     403            $current_user_id = get_current_user_id();
     404
     405            // we get the old array of stored file for the user
     406            $old = get_user_meta($current_user_id, 'pp_uploaded_files', true);
     407            $old = ! empty($old) ? $old : [];
     408            // we loop through the array of newly uploaded files and remove any file (un-setting the file array key)
     409            // that isn't be updated i.e if the field is left empty, un-setting it prevent update_user_meta
     410            // fom overriding it.
     411            // we then merge the old and new uploads before saving the data to user meta table.
     412            foreach ($uploads as $key => $value) {
     413                if (empty($value)) {
     414                    unset($uploads[$key]);
     415                }
     416            }
     417
     418            $merged_data = array_merge($old, $uploads);
     419
     420            update_user_meta($current_user_id, 'pp_uploaded_files', $merged_data);
     421            do_action('ppress_after_custom_field_update', 'pp_uploaded_files', $merged_data, $user_id, 'checkout');
     422
     423        } else {
     424            // if we get to this point, it means the files pass validation defined above.
     425            // array of files uploaded. Array key is the "custom field key" and the filename as the array value.
     426            $custom_usermeta['pp_uploaded_files'] = $uploads;
     427        }
    404428
    405429        if (is_array($custom_usermeta)) {
  • wp-user-avatar/trunk/src/Membership/DigitalProducts/DownloadHandler.php

    r2792799 r3447273  
    1414
    1515    /**
    16      * Used to process a signed URL for processing downloads
    17      *
     16     * //[0=> 'order ID', 1=> 'plan ID', 2 => 'file index']
    1817     * @return array|false
    1918     */
    20     private function process_signed_download_url()
    21     {
    22         $parts = parse_url(add_query_arg(array()));
     19    private function get_download_url_parts()
     20    {
     21        $parts = parse_url(add_query_arg([]));
    2322        wp_parse_str($parts['query'], $query_args);
    2423        $url = add_query_arg($query_args, site_url());
     
    2827        if ( ! $valid_token) return false;
    2928
    30         $order_parts = explode(':', rawurldecode($_GET['ppress_file']));
    31         $order_id    = isset($order_parts[0]) ? (int)$order_parts[0] : null;
    32         $plan_id     = isset($order_parts[1]) ? (int)$order_parts[1] : null;
    33         $file_index  = isset($order_parts[2]) ? (int)$order_parts[2] : null;
     29        //[0=> 'order ID', 1=> 'plan ID', 2 => 'file index']
     30        return explode(':', rawurldecode($_GET['ppress_file']));
     31    }
     32
     33    /**
     34     * Used to process a signed URL for processing downloads
     35     *
     36     * @return array|false
     37     */
     38    private function process_signed_download_url()
     39    {
     40        $order_parts = $this->get_download_url_parts();
     41
     42        if ( ! $order_parts) return false;
     43
     44        $order_id   = isset($order_parts[0]) ? (int)$order_parts[0] : null;
     45        $plan_id    = isset($order_parts[1]) ? (int)$order_parts[1] : null;
     46        $file_index = isset($order_parts[2]) ? (int)$order_parts[2] : null;
    3447
    3548        $downloads = ppress_get_plan($plan_id)->get_downloads();
     
    311324    public function process_download()
    312325    {
    313         if (empty($_GET['ppress_file']) || empty($_GET['ttl']) || empty($_GET['token'])) {
    314             return;
    315         }
    316 
    317         if ('true' === ppress_get_file_downloads_setting('access_restriction') && ! is_user_logged_in()) {
    318             wp_die(__('You must be logged in to download files.', 'wp-user-avatar') . ' <a href="' . esc_url(wp_login_url(ppress_get_current_url_query_string())) . '">' . __('Login', 'wp-user-avatar') . '</a>', __('Log in to Download Files', 'wp-user-avatar'), 403);
     326        if (empty($_GET['ppress_file']) || empty($_GET['ttl']) || empty($_GET['token'])) return;
     327
     328        if ('true' === ppress_get_file_downloads_setting('access_restriction')) {
     329            if ( ! is_user_logged_in()) {
     330                wp_die(__('You must be logged in to download files.', 'wp-user-avatar') . ' <a href="' . esc_url(wp_login_url(ppress_get_current_url_query_string())) . '">' . __('Login', 'wp-user-avatar') . '</a>', __('Log in to Download Files', 'wp-user-avatar'), 403);
     331            }
     332
     333            $order_parts = $this->get_download_url_parts();
     334
     335            $order = OrderFactory::fromId($order_parts[0]);
     336
     337            if ($order->get_customer()->get_user_id() !== get_current_user_id()) {
     338                wp_die(__('You are not allowed to access this file', 'wp-user-avatar'), __('File download error', 'wp-user-avatar'), 403);
     339            }
    319340        }
    320341
     
    323344        if ( ! $args['has_access']) {
    324345            $error_message = __('You do not have permission to download this file', 'wp-user-avatar');
    325             wp_die(apply_filters('ppress_deny_download_message', $error_message, __('Order Verification Failed', 'wp-user-avatar')), __('Error', 'wp-user-avatar'), array('response' => 403));
     346            wp_die(apply_filters('ppress_deny_download_message', $error_message, __('Order Verification Failed', 'wp-user-avatar')), __('Error', 'wp-user-avatar'), ['response' => 403]);
    326347        }
    327348
     
    395416        if (( ! isset($file_details['scheme']) || ! in_array($file_details['scheme'], $schemes)) && isset($file_details['path']) && file_exists($requested_file)) {
    396417            /** This is an absolute path */
    397             $direct    = true;
    398             $file_path = $requested_file;
     418            $direct = true;
    399419        } elseif (defined('UPLOADS') && strpos($requested_file, UPLOADS) !== false) {
    400420            /**
  • wp-user-avatar/trunk/src/ShortcodeParser/MyAccount/MyAccountTag.php

    r3319431 r3447273  
    610610                            <a class="ppmyac-dashboard-item <?= $key ?><?= self::is_endpoint($key) ? ' isactive' : ''; ?>" href="<?= esc_url($href); ?>">
    611611                                <i class="ppmyac-icons">
    612                                     <?= isset($tab['icon']) ? $tab['icon'] : 'settings'; ?>
     612                                    <?= $tab['icon'] ?? 'settings'; ?>
    613613                                </i>
    614614                                <?= $tab['title'] ?>
  • wp-user-avatar/trunk/src/templates/checkout/form-account-info-fields.php

    r2874651 r3447273  
    22
    33use ProfilePress\Core\Membership\CheckoutFields;
     4
     5
     6echo '<div class="ppress-checkout_account_info-wrap">';
    47
    58foreach (CheckoutFields::account_info_fields() as $field_key => $field) {
     
    3134    echo '</div>';
    3235}
     36echo '</div>';
    3337
    3438
  • wp-user-avatar/trunk/third-party/vendor/autoload.php

    r3319431 r3447273  
    1515        }
    1616    }
    17     throw new RuntimeException($err);
     17    trigger_error(
     18        $err,
     19        E_USER_ERROR
     20    );
    1821}
    1922
  • wp-user-avatar/trunk/third-party/vendor/composer/InstalledVersions.php

    r3319431 r3447273  
    2626{
    2727    /**
    28      * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to
    29      * @internal
    30      */
    31     private static $selfDir = null;
    32     /**
    3328     * @var mixed[]|null
    3429     * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
    3530     */
    3631    private static $installed;
    37     /**
    38      * @var bool
    39      */
    40     private static $installedIsLocalDir;
    4132    /**
    4233     * @var bool|null
     
    279270        self::$installed = $data;
    280271        self::$installedByVendor = array();
    281         // when using reload, we disable the duplicate protection to ensure that self::$installed data is
    282         // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
    283         // so we have to assume it does not, and that may result in duplicate data being returned when listing
    284         // all installed packages for example
    285         self::$installedIsLocalDir = \false;
    286     }
    287     /**
    288      * @return string
    289      */
    290     private static function getSelfDir()
    291     {
    292         if (self::$selfDir === null) {
    293             self::$selfDir = strtr(__DIR__, '\\', '/');
    294         }
    295         return self::$selfDir;
    296272    }
    297273    /**
     
    305281        }
    306282        $installed = array();
    307         $copiedLocalDir = \false;
    308283        if (self::$canGetVendors) {
    309             $selfDir = self::getSelfDir();
    310284            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
    311                 $vendorDir = strtr($vendorDir, '\\', '/');
    312285                if (isset(self::$installedByVendor[$vendorDir])) {
    313286                    $installed[] = self::$installedByVendor[$vendorDir];
     
    315288                    /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
    316289                    $required = require $vendorDir . '/composer/installed.php';
    317                     self::$installedByVendor[$vendorDir] = $required;
    318                     $installed[] = $required;
    319                     if (self::$installed === null && $vendorDir . '/composer' === $selfDir) {
    320                         self::$installed = $required;
    321                         self::$installedIsLocalDir = \true;
     290                    $installed[] = self::$installedByVendor[$vendorDir] = $required;
     291                    if (null === self::$installed && strtr($vendorDir . '/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
     292                        self::$installed = $installed[count($installed) - 1];
    322293                    }
    323                 }
    324                 if (self::$installedIsLocalDir && $vendorDir . '/composer' === $selfDir) {
    325                     $copiedLocalDir = \true;
    326294                }
    327295            }
     
    338306            }
    339307        }
    340         if (self::$installed !== array() && !$copiedLocalDir) {
     308        if (self::$installed !== array()) {
    341309            $installed[] = self::$installed;
    342310        }
  • wp-user-avatar/trunk/third-party/vendor/composer/installed.json

    r3366382 r3447273  
    628628        {
    629629            "name": "sniccowp\/php-scoper-wordpress-excludes",
    630             "version": "6.8.1",
    631             "version_normalized": "6.8.1.0",
     630            "version": "6.9.0",
     631            "version_normalized": "6.9.0.0",
    632632            "source": {
    633633                "type": "git",
    634634                "url": "https:\/\/github.com\/snicco\/php-scoper-wordpress-excludes.git",
    635                 "reference": "c2c18f89a9aa2d7ef1998d233b9ed00d0deff5dd"
    636             },
    637             "dist": {
    638                 "type": "zip",
    639                 "url": "https:\/\/api.github.com\/repos\/snicco\/php-scoper-wordpress-excludes\/zipball\/c2c18f89a9aa2d7ef1998d233b9ed00d0deff5dd",
    640                 "reference": "c2c18f89a9aa2d7ef1998d233b9ed00d0deff5dd",
     635                "reference": "40ab73f3def963304e23e44596baf49441f00512"
     636            },
     637            "dist": {
     638                "type": "zip",
     639                "url": "https:\/\/api.github.com\/repos\/snicco\/php-scoper-wordpress-excludes\/zipball\/40ab73f3def963304e23e44596baf49441f00512",
     640                "reference": "40ab73f3def963304e23e44596baf49441f00512",
    641641                "shasum": ""
    642642            },
     
    644644                "php": "^7.4",
    645645                "php-stubs\/wordpress-globals": "0.2.0",
    646                 "php-stubs\/wordpress-stubs": "6.8.1",
     646                "php-stubs\/wordpress-stubs": "6.9.0",
    647647                "sniccowp\/php-scoper-excludes": "dev-master"
    648648            },
    649             "time": "2025-05-03T00:01:53+00:00",
     649            "time": "2025-12-08T11:39:50+00:00",
    650650            "type": "library",
    651651            "installation-source": "dist",
     
    672672            "support": {
    673673                "issues": "https:\/\/github.com\/snicco\/php-scoper-wordpress-excludes\/issues",
    674                 "source": "https:\/\/github.com\/snicco\/php-scoper-wordpress-excludes\/tree\/6.8.1"
     674                "source": "https:\/\/github.com\/snicco\/php-scoper-wordpress-excludes\/tree\/6.9.0"
    675675            },
    676676            "install-path": "..\/sniccowp\/php-scoper-wordpress-excludes"
  • wp-user-avatar/trunk/third-party/vendor/composer/installed.php

    r3408055 r3447273  
    33namespace ProfilePressVendor;
    44
    5 return array('root' => array('name' => '__root__', 'pretty_version' => 'dev-master', 'version' => 'dev-master', 'reference' => 'a73def763bdc1474e63cf13d274e9350c668bcaa', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \true), 'versions' => array('__root__' => array('pretty_version' => 'dev-master', 'version' => 'dev-master', 'reference' => 'a73def763bdc1474e63cf13d274e9350c668bcaa', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false), 'barryvdh/composer-cleanup-plugin' => array('pretty_version' => 'dev-master', 'version' => 'dev-master', 'reference' => '80cceff45bfb85a0f49236537b1f1c928a1ee820', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../barryvdh/composer-cleanup-plugin', 'aliases' => array(0 => '0.1.x-dev'), 'dev_requirement' => \false), 'brick/math' => array('pretty_version' => '0.9.3', 'version' => '0.9.3.0', 'reference' => 'ca57d18f028f84f777b2168cd1911b0dee2343ae', 'type' => 'library', 'install_path' => __DIR__ . '/../brick/math', 'aliases' => array(), 'dev_requirement' => \false), 'carbonphp/carbon-doctrine-types' => array('pretty_version' => '2.1.0', 'version' => '2.1.0.0', 'reference' => '99f76ffa36cce3b70a4a6abce41dba15ca2e84cb', 'type' => 'library', 'install_path' => __DIR__ . '/../carbonphp/carbon-doctrine-types', 'aliases' => array(), 'dev_requirement' => \false), 'collizo4sky/persist-admin-notices-dismissal' => array('pretty_version' => '1.4.5', 'version' => '1.4.5.0', 'reference' => '163b868c98cf97ea15b4d7e1305e2d52c9242e7e', 'type' => 'library', 'install_path' => __DIR__ . '/../collizo4sky/persist-admin-notices-dismissal', 'aliases' => array(), 'dev_requirement' => \false), 'league/csv' => array('pretty_version' => '9.8.0', 'version' => '9.8.0.0', 'reference' => '9d2e0265c5d90f5dd601bc65ff717e05cec19b47', 'type' => 'library', 'install_path' => __DIR__ . '/../league/csv', 'aliases' => array(), 'dev_requirement' => \false), 'nesbot/carbon' => array('pretty_version' => '2.73.0', 'version' => '2.73.0.0', 'reference' => '9228ce90e1035ff2f0db84b40ec2e023ed802075', 'type' => 'library', 'install_path' => __DIR__ . '/../nesbot/carbon', 'aliases' => array(), 'dev_requirement' => \false), 'pelago/emogrifier' => array('pretty_version' => 'v6.0.0', 'version' => '6.0.0.0', 'reference' => 'aa72d5407efac118f3896bcb995a2cba793df0ae', 'type' => 'library', 'install_path' => __DIR__ . '/../pelago/emogrifier', 'aliases' => array(), 'dev_requirement' => \false), 'psr/clock' => array('pretty_version' => '1.0.0', 'version' => '1.0.0.0', 'reference' => 'e41a24703d4560fd0acb709162f73b8adfc3aa0d', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/clock', 'aliases' => array(), 'dev_requirement' => \false), 'psr/clock-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0')), 'sabberworm/php-css-parser' => array('pretty_version' => 'v8.9.0', 'version' => '8.9.0.0', 'reference' => 'd8e916507b88e389e26d4ab03c904a082aa66bb9', 'type' => 'library', 'install_path' => __DIR__ . '/../sabberworm/php-css-parser', 'aliases' => array(), 'dev_requirement' => \false), 'sniccowp/php-scoper-wordpress-excludes' => array('pretty_version' => '6.8.1', 'version' => '6.8.1.0', 'reference' => 'c2c18f89a9aa2d7ef1998d233b9ed00d0deff5dd', 'type' => 'library', 'install_path' => __DIR__ . '/../sniccowp/php-scoper-wordpress-excludes', 'aliases' => array(), 'dev_requirement' => \true), 'stripe/stripe-php' => array('pretty_version' => 'v16.6.0', 'version' => '16.6.0.0', 'reference' => 'd6de0a536f00b5c5c74f36b8f4d0d93b035499ff', 'type' => 'library', 'install_path' => __DIR__ . '/../stripe/stripe-php', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/css-selector' => array('pretty_version' => 'v5.4.45', 'version' => '5.4.45.0', 'reference' => '4f7f3c35fba88146b56d0025d20ace3f3901f097', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/css-selector', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/deprecation-contracts' => array('pretty_version' => 'v2.5.4', 'version' => '2.5.4.0', 'reference' => '605389f2a7e5625f273b53960dc46aeaf9c62918', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-mbstring' => array('pretty_version' => 'v1.33.0', 'version' => '1.33.0.0', 'reference' => '6d857f4d76bd4b343eac26d6b539585d2bc56493', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-php80' => array('pretty_version' => 'v1.33.0', 'version' => '1.33.0.0', 'reference' => '0cc9dd0f17f61d8131e7df6b84bd344899fe2608', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-php80', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/translation' => array('pretty_version' => 'v5.4.45', 'version' => '5.4.45.0', 'reference' => '98f26acc99341ca4bab345fb14d7b1d7cb825bed', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/translation', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/translation-contracts' => array('pretty_version' => 'v2.5.4', 'version' => '2.5.4.0', 'reference' => '450d4172653f38818657022252f9d81be89ee9a8', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/translation-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/translation-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '2.3'))));
     5return array('root' => array('name' => '__root__', 'pretty_version' => 'dev-master', 'version' => 'dev-master', 'reference' => '4397edcc8f0a76eb906d5202e54525f9565c3ce7', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \true), 'versions' => array('__root__' => array('pretty_version' => 'dev-master', 'version' => 'dev-master', 'reference' => '4397edcc8f0a76eb906d5202e54525f9565c3ce7', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false), 'barryvdh/composer-cleanup-plugin' => array('pretty_version' => 'dev-master', 'version' => 'dev-master', 'reference' => '80cceff45bfb85a0f49236537b1f1c928a1ee820', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../barryvdh/composer-cleanup-plugin', 'aliases' => array(0 => '0.1.x-dev'), 'dev_requirement' => \false), 'brick/math' => array('pretty_version' => '0.9.3', 'version' => '0.9.3.0', 'reference' => 'ca57d18f028f84f777b2168cd1911b0dee2343ae', 'type' => 'library', 'install_path' => __DIR__ . '/../brick/math', 'aliases' => array(), 'dev_requirement' => \false), 'carbonphp/carbon-doctrine-types' => array('pretty_version' => '2.1.0', 'version' => '2.1.0.0', 'reference' => '99f76ffa36cce3b70a4a6abce41dba15ca2e84cb', 'type' => 'library', 'install_path' => __DIR__ . '/../carbonphp/carbon-doctrine-types', 'aliases' => array(), 'dev_requirement' => \false), 'collizo4sky/persist-admin-notices-dismissal' => array('pretty_version' => '1.4.5', 'version' => '1.4.5.0', 'reference' => '163b868c98cf97ea15b4d7e1305e2d52c9242e7e', 'type' => 'library', 'install_path' => __DIR__ . '/../collizo4sky/persist-admin-notices-dismissal', 'aliases' => array(), 'dev_requirement' => \false), 'league/csv' => array('pretty_version' => '9.8.0', 'version' => '9.8.0.0', 'reference' => '9d2e0265c5d90f5dd601bc65ff717e05cec19b47', 'type' => 'library', 'install_path' => __DIR__ . '/../league/csv', 'aliases' => array(), 'dev_requirement' => \false), 'nesbot/carbon' => array('pretty_version' => '2.73.0', 'version' => '2.73.0.0', 'reference' => '9228ce90e1035ff2f0db84b40ec2e023ed802075', 'type' => 'library', 'install_path' => __DIR__ . '/../nesbot/carbon', 'aliases' => array(), 'dev_requirement' => \false), 'pelago/emogrifier' => array('pretty_version' => 'v6.0.0', 'version' => '6.0.0.0', 'reference' => 'aa72d5407efac118f3896bcb995a2cba793df0ae', 'type' => 'library', 'install_path' => __DIR__ . '/../pelago/emogrifier', 'aliases' => array(), 'dev_requirement' => \false), 'psr/clock' => array('pretty_version' => '1.0.0', 'version' => '1.0.0.0', 'reference' => 'e41a24703d4560fd0acb709162f73b8adfc3aa0d', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/clock', 'aliases' => array(), 'dev_requirement' => \false), 'psr/clock-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0')), 'sabberworm/php-css-parser' => array('pretty_version' => 'v8.9.0', 'version' => '8.9.0.0', 'reference' => 'd8e916507b88e389e26d4ab03c904a082aa66bb9', 'type' => 'library', 'install_path' => __DIR__ . '/../sabberworm/php-css-parser', 'aliases' => array(), 'dev_requirement' => \false), 'sniccowp/php-scoper-wordpress-excludes' => array('pretty_version' => '6.9.0', 'version' => '6.9.0.0', 'reference' => '40ab73f3def963304e23e44596baf49441f00512', 'type' => 'library', 'install_path' => __DIR__ . '/../sniccowp/php-scoper-wordpress-excludes', 'aliases' => array(), 'dev_requirement' => \true), 'stripe/stripe-php' => array('pretty_version' => 'v16.6.0', 'version' => '16.6.0.0', 'reference' => 'd6de0a536f00b5c5c74f36b8f4d0d93b035499ff', 'type' => 'library', 'install_path' => __DIR__ . '/../stripe/stripe-php', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/css-selector' => array('pretty_version' => 'v5.4.45', 'version' => '5.4.45.0', 'reference' => '4f7f3c35fba88146b56d0025d20ace3f3901f097', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/css-selector', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/deprecation-contracts' => array('pretty_version' => 'v2.5.4', 'version' => '2.5.4.0', 'reference' => '605389f2a7e5625f273b53960dc46aeaf9c62918', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-mbstring' => array('pretty_version' => 'v1.33.0', 'version' => '1.33.0.0', 'reference' => '6d857f4d76bd4b343eac26d6b539585d2bc56493', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-php80' => array('pretty_version' => 'v1.33.0', 'version' => '1.33.0.0', 'reference' => '0cc9dd0f17f61d8131e7df6b84bd344899fe2608', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-php80', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/translation' => array('pretty_version' => 'v5.4.45', 'version' => '5.4.45.0', 'reference' => '98f26acc99341ca4bab345fb14d7b1d7cb825bed', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/translation', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/translation-contracts' => array('pretty_version' => 'v2.5.4', 'version' => '2.5.4.0', 'reference' => '450d4172653f38818657022252f9d81be89ee9a8', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/translation-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/translation-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '2.3'))));
  • wp-user-avatar/trunk/third-party/vendor/composer/platform_check.php

    r3340503 r3447273  
    2020        }
    2121    }
    22     throw new \RuntimeException(
    23         'Composer detected issues in your platform: ' . implode(' ', $issues)
     22    trigger_error(
     23        'Composer detected issues in your platform: ' . implode(' ', $issues),
     24        E_USER_ERROR
    2425    );
    2526}
  • wp-user-avatar/trunk/wp-user-avatar.php

    r3408055 r3447273  
    44 * Plugin URI: https://profilepress.com
    55 * Description: The modern WordPress membership and user profile plugin.
    6  * Version: 4.16.8
     6 * Version: 4.16.9
    77 * Author: ProfilePress Membership Team
    88 * Author URI: https://profilepress.com
     
    1414
    1515define('PROFILEPRESS_SYSTEM_FILE_PATH', __FILE__);
    16 define('PPRESS_VERSION_NUMBER', '4.16.8');
     16define('PPRESS_VERSION_NUMBER', '4.16.9');
    1717
    1818if ( ! defined('PPRESS_STRIPE_API_VERSION')) {
Note: See TracChangeset for help on using the changeset viewer.