Changeset 3447273
- Timestamp:
- 01/26/2026 05:41:12 PM (2 months ago)
- Location:
- wp-user-avatar/trunk
- Files:
-
- 23 edited
-
assets/flatpickr/flatpickr.min.js (modified) (1 diff)
-
assets/js/checkout.js (modified) (2 diffs)
-
assets/js/frontend.min.js (modified) (1 diff)
-
changelog.txt (modified) (1 diff)
-
languages/wp-user-avatar.pot (modified) (138 diffs)
-
readme.txt (modified) (3 diffs)
-
src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php (modified) (10 diffs)
-
src/Admin/SettingsPages/Membership/ExportPage/CustomersExport.php (modified) (4 diffs)
-
src/Classes/EditUserProfile.php (modified) (2 diffs)
-
src/Classes/FileUploader.php (modified) (1 diff)
-
src/Classes/FormPreviewHandler.php (modified) (1 diff)
-
src/Classes/ModifyRedirectDefaultLinks.php (modified) (1 diff)
-
src/Functions/GlobalFunctions.php (modified) (1 diff)
-
src/Membership/Controllers/CheckoutTrait.php (modified) (1 diff)
-
src/Membership/DigitalProducts/DownloadHandler.php (modified) (5 diffs)
-
src/ShortcodeParser/MyAccount/MyAccountTag.php (modified) (1 diff)
-
src/templates/checkout/form-account-info-fields.php (modified) (2 diffs)
-
third-party/vendor/autoload.php (modified) (1 diff)
-
third-party/vendor/composer/InstalledVersions.php (modified) (5 diffs)
-
third-party/vendor/composer/installed.json (modified) (3 diffs)
-
third-party/vendor/composer/installed.php (modified) (1 diff)
-
third-party/vendor/composer/platform_check.php (modified) (1 diff)
-
wp-user-avatar.php (modified) (2 diffs)
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}();1 var 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 130 130 let paymentDetails = {}; 131 131 132 $('.ppress-checkout-form__payment_method :input ').each(function () {132 $('.ppress-checkout-form__payment_method :input, .ppress-checkout_account_info-wrap :input').each(function () { 133 133 134 134 let ID = $(this).attr('id'); … … 155 155 // Fill in the payment details if possible without overwriting data if set. 156 156 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 () { 158 158 let ID = $(this).attr('id'); 159 159 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 1 1 == Changelog == 2 2 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 = 4 13 * Fixed security issue with arbitrary shortcode execution on form preview. 5 14 * Fixed couple of PHP notices. -
wp-user-avatar/trunk/languages/wp-user-avatar.pot
r3408055 r3447273 1 # Copyright (C) 202 5ProfilePress Membership Team1 # Copyright (C) 2026 ProfilePress Membership Team 2 2 # This file is distributed under the same license as the ProfilePress plugin. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: ProfilePress 4.16. 8\n"5 "Project-Id-Version: ProfilePress 4.16.9\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-user-avatar\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 202 5-12-02T13:29:55+00:00\n"12 "POT-Creation-Date: 2026-01-26T16:31:32+00:00\n" 13 13 "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" 15 15 "X-Domain: wp-user-avatar\n" 16 16 17 17 #. Plugin Name of the plugin 18 #: wp-user-avatar.php 18 19 #: src/Integrations/TutorLMS/Init.php:57 19 20 msgid "ProfilePress" … … 22 23 #. Plugin URI of the plugin 23 24 #. Author URI of the plugin 25 #: wp-user-avatar.php 24 26 msgid "https://profilepress.com" 25 27 msgstr "" 26 28 27 29 #. Description of the plugin 30 #: wp-user-avatar.php 28 31 msgid "The modern WordPress membership and user profile plugin." 29 32 msgstr "" 30 33 31 34 #. Author of the plugin 35 #: wp-user-avatar.php 32 36 msgid "ProfilePress Membership Team" 33 37 msgstr "" … … 49 53 50 54 #: deprecated/wp-user-avatar/includes/class-wp-user-avatar-admin.php:93 55 #, php-format 51 56 msgid "%s[avatar]%s displays a user's profile pictures." 52 57 msgstr "" 53 58 54 59 #: deprecated/wp-user-avatar/includes/class-wp-user-avatar-admin.php:100 60 #, php-format 55 61 msgid "%s[avatar_upload]%s adds a standalone avatar uploader visible only to logged-in users." 56 62 msgstr "" … … 174 180 #: deprecated/wp-user-avatar/includes/wpua-options-page.php:38 175 181 #: deprecated/wp-user-avatar/includes/wpua-options-page.php:70 182 #, php-format 176 183 msgid "Maximum upload file size: %d%s." 177 184 msgstr "" … … 209 216 210 217 #: deprecated/wp-user-avatar/includes/class-wp-user-avatar.php:264 218 #, php-format 211 219 msgid "Unable to create directory %s. Is its parent directory writable by the server?" 212 220 msgstr "" … … 316 324 #: deprecated/wp-user-avatar/includes/wpua-options-page.php:36 317 325 #: deprecated/wp-user-avatar/includes/wpua-options-page.php:68 326 #, php-format 318 327 msgid "%s exceeds the maximum upload size for this site." 319 328 msgstr "" … … 394 403 395 404 #: src/Admin/SettingsPages/AbstractSettingsPage.php:237 405 #, php-format 396 406 msgid "Whether you need help or have a new feature request, let us know. %sRequest Support%s" 397 407 msgstr "" 398 408 399 409 #: src/Admin/SettingsPages/AbstractSettingsPage.php:245 410 #, php-format 400 411 msgid "Detailed documentation is also available on the plugin website. %sView Knowledge Base%s" 401 412 msgstr "" 402 413 403 414 #: src/Admin/SettingsPages/AbstractSettingsPage.php:253 415 #, php-format 404 416 msgid "If you are enjoying ProfilePress and find it useful, please consider leaving a ★★★★★ review on WordPress.org. %sLeave a Review%s" 405 417 msgstr "" 406 418 407 419 #: src/Admin/SettingsPages/AbstractSettingsPage.php:265 420 #, php-format 408 421 msgid "Use the coupon code %s10PERCENTOFF%s to save %s off MailOptin." 409 422 msgstr "" … … 416 429 #: src/Admin/SettingsPages/Membership/CheckoutFieldsManager.php:90 417 430 #: src/Admin/SettingsPages/Membership/PlanIntegrationsMetabox.php:178 418 #: src/Functions/GlobalFunctions.php:145 6419 #: src/Functions/GlobalFunctions.php:148 8420 #: src/Functions/GlobalFunctions.php:151 0431 #: src/Functions/GlobalFunctions.php:1457 432 #: src/Functions/GlobalFunctions.php:1489 433 #: src/Functions/GlobalFunctions.php:1511 421 434 #: src/LoginRedirect.php:180 422 435 msgid "Select..." … … 459 472 460 473 #: src/Admin/SettingsPages/AddNewForm.php:79 474 #, php-format 461 475 msgid "Code your own from scratch with complete control and flexibility. %sLearn more%s." 462 476 msgstr "" … … 472 486 473 487 #: src/Admin/SettingsPages/AdminFooter.php:27 488 #, php-format 474 489 msgid "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." 475 490 msgstr "" … … 500 515 #: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1247 501 516 #: src/Admin/SettingsPages/Membership/CheckoutFieldsManager.php:93 502 #: src/Functions/GlobalFunctions.php:151 3517 #: src/Functions/GlobalFunctions.php:1514 503 518 #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:222 504 519 msgid "Standard Fields" … … 513 528 #: src/Admin/SettingsPages/Membership/CheckoutFieldsManager.php:101 514 529 #: src/Classes/ExtensionManager.php:135 515 #: src/Functions/GlobalFunctions.php:151 6530 #: src/Functions/GlobalFunctions.php:1517 516 531 #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:236 517 532 msgid "Custom Fields" … … 678 693 679 694 #: src/Admin/SettingsPages/DragDropBuilder/FieldBase.php:210 680 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:37 2695 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:375 681 696 #: src/ShortcodeParser/MyAccount/view-subscription.tmpl.php:43 682 697 msgid "Cancel" … … 723 738 #: src/Admin/SettingsPages/DragDropBuilder/Fields/Bio.php:22 724 739 #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/Bio.php:22 725 #: src/Functions/GlobalFunctions.php:150 0740 #: src/Functions/GlobalFunctions.php:1501 726 741 #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:231 727 742 #: src/Themes/DragDrop/AbstractTheme.php:205 … … 900 915 #: src/Admin/SettingsPages/DragDropBuilder/Fields/Login/Password.php:22 901 916 #: src/Admin/SettingsPages/DragDropBuilder/Fields/Password.php:22 902 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:32 1917 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:324 903 918 #: src/Membership/CheckoutFields.php:86 904 919 #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:209 … … 994 1009 #: src/Admin/SettingsPages/DragDropBuilder/Fields/DisplayName.php:22 995 1010 #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/DisplayName.php:22 996 #: src/Functions/GlobalFunctions.php:149 81011 #: src/Functions/GlobalFunctions.php:1499 997 1012 #: src/Membership/CheckoutFields.php:114 998 1013 #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:365 … … 1019 1034 #: src/Admin/SettingsPages/DragDropBuilder/Fields/Email.php:22 1020 1035 #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/Email.php:22 1021 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:31 31022 #: src/Functions/GlobalFunctions.php:1 4991036 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:316 1037 #: src/Functions/GlobalFunctions.php:1500 1023 1038 #: src/Membership/CheckoutFields.php:51 1024 1039 #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:257 … … 1032 1047 #: src/Admin/SettingsPages/DragDropBuilder/Fields/FirstName.php:22 1033 1048 #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/FirstName.php:22 1034 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:30 51035 #: src/Functions/GlobalFunctions.php:149 51049 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:308 1050 #: src/Functions/GlobalFunctions.php:1496 1036 1051 #: src/Membership/CheckoutFields.php:65 1037 1052 #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:397 … … 1054 1069 #: src/Admin/SettingsPages/DragDropBuilder/Fields/LastName.php:22 1055 1070 #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/LastName.php:22 1056 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:3 091057 #: src/Functions/GlobalFunctions.php:149 61071 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:312 1072 #: src/Functions/GlobalFunctions.php:1497 1058 1073 #: src/Membership/CheckoutFields.php:72 1059 1074 #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:430 … … 1091 1106 #: src/Admin/SettingsPages/DragDropBuilder/Fields/Nickname.php:22 1092 1107 #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/Nickname.php:22 1093 #: src/Functions/GlobalFunctions.php:149 71108 #: src/Functions/GlobalFunctions.php:1498 1094 1109 #: src/Membership/CheckoutFields.php:107 1095 1110 #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:333 … … 1189 1204 #: src/Admin/SettingsPages/DragDropBuilder/Fields/Username.php:22 1190 1205 #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/Username.php:22 1191 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:3 171192 #: src/Functions/GlobalFunctions.php:149 41206 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:320 1207 #: src/Functions/GlobalFunctions.php:1495 1193 1208 #: src/Membership/CheckoutFields.php:79 1194 1209 #: src/ShortcodeParser/Builder/FieldsShortcodeCallback.php:182 … … 1224 1239 1225 1240 #: src/Admin/SettingsPages/DragDropBuilder/Fields/UserProfile/CustomField.php:34 1241 #, php-format 1226 1242 msgid "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." 1227 1243 msgstr "" … … 1455 1471 #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:122 1456 1472 #: src/Classes/WelcomeEmailAfterSignup.php:56 1473 #, php-format 1457 1474 msgid "Welcome To %s" 1458 1475 msgstr "" … … 1511 1528 #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:137 1512 1529 #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:172 1530 #, php-format 1513 1531 msgid "Replace \"field_key\" with the %scustom field key%s or usermeta key." 1514 1532 msgstr "" … … 1519 1537 1520 1538 #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:146 1539 #, php-format 1521 1540 msgid "[%s] Password Reset" 1522 1541 msgstr "" … … 1535 1554 1536 1555 #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:161 1556 #, php-format 1537 1557 msgid "[%s] New User Registration" 1538 1558 msgstr "" … … 1577 1597 #: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:266 1578 1598 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:51 1579 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:22 11580 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:24 21599 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:224 1600 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:245 1581 1601 msgid "Customers" 1582 1602 msgstr "" … … 1835 1855 1836 1856 #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:99 1857 #, php-format 1837 1858 msgid "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!" 1838 1859 msgstr "" … … 1852 1873 1853 1874 #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:147 1875 #, php-format 1854 1876 msgid "Unavailable: %s" 1855 1877 msgstr "" … … 1872 1894 1873 1895 #: src/Admin/SettingsPages/FormList.php:180 1896 #, php-format 1874 1897 msgid "No form is currently available. %sConsider creating one%s" 1875 1898 msgstr "" … … 1954 1977 #: src/Admin/SettingsPages/GeneralSettings.php:466 1955 1978 #: src/Classes/AjaxHandler.php:55 1956 #: src/Membership/DigitalProducts/DownloadHandler.php:3 181979 #: src/Membership/DigitalProducts/DownloadHandler.php:330 1957 1980 #: src/ShortcodeParser/Builder/GlobalShortcodes.php:247 1958 1981 #: src/Themes/DragDrop/AbstractBuildScratch.php:180 … … 2001 2024 #: src/Admin/SettingsPages/Forms.php:313 2002 2025 #: src/Admin/SettingsPages/MemberDirectories.php:173 2003 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:38 52026 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:388 2004 2027 msgid "Add New" 2005 2028 msgstr "" … … 2068 2091 #: src/Admin/SettingsPages/FuseWP.php:214 2069 2092 #: src/Admin/SettingsPages/MailOptin.php:209 2093 #, php-format 2070 2094 msgid "Could not install plugin. Please <a href=\"%s\">download</a> and install manually." 2071 2095 msgstr "" … … 2074 2098 #: src/Admin/SettingsPages/FuseWP.php:226 2075 2099 #: src/Admin/SettingsPages/MailOptin.php:221 2100 #, php-format 2076 2101 msgid "Could not activate plugin. Please activate from the <a href=\"%s\">Plugins page</a>." 2077 2102 msgstr "" … … 2319 2344 2320 2345 #: src/Admin/SettingsPages/GeneralSettings.php:233 2346 #, php-format 2321 2347 msgid "Assign the WordPress pages for each required ProfilePress page, or %sclick here to let us generate them%s." 2322 2348 msgstr "" … … 2327 2353 2328 2354 #: src/Admin/SettingsPages/GeneralSettings.php:245 2355 #, php-format 2329 2356 msgid "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." 2330 2357 msgstr "" … … 2336 2363 2337 2364 #: src/Admin/SettingsPages/GeneralSettings.php:253 2365 #, php-format 2338 2366 msgid "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." 2339 2367 msgstr "" … … 2344 2372 2345 2373 #: src/Admin/SettingsPages/GeneralSettings.php:261 2374 #, php-format 2346 2375 msgid "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." 2347 2376 msgstr "" … … 2352 2381 2353 2382 #: src/Admin/SettingsPages/GeneralSettings.php:269 2383 #, php-format 2354 2384 msgid "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." 2355 2385 msgstr "" … … 2364 2394 2365 2395 #: src/Admin/SettingsPages/GeneralSettings.php:280 2396 #, php-format 2366 2397 msgid "The checkout page where members will complete their payments. %2$sThe shortcode %1$s must be on this page." 2367 2398 msgstr "" … … 2372 2403 2373 2404 #: src/Admin/SettingsPages/GeneralSettings.php:289 2405 #, php-format 2374 2406 msgid "The page customers are sent to after completing their orders.%2$sThe shortcode %1$s must be on this page." 2375 2407 msgstr "" … … 2456 2488 2457 2489 #: src/Admin/SettingsPages/GeneralSettings.php:355 2490 #, php-format 2458 2491 msgid "Redirect <a target=\"_blank\" href=\"%s\">default WordPress profile</a> to My Account page." 2459 2492 msgstr "" … … 2512 2545 2513 2546 #: src/Admin/SettingsPages/GeneralSettings.php:405 2547 #, php-format 2514 2548 msgid "Select the page that contains your <a href=\"%s\">Frontend user profile shortcode</a>." 2515 2549 msgstr "" … … 2520 2554 2521 2555 #: src/Admin/SettingsPages/GeneralSettings.php:411 2556 #, php-format 2522 2557 msgid "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." 2523 2558 msgstr "" … … 2557 2592 2558 2593 #: src/Admin/SettingsPages/GeneralSettings.php:437 2594 #, php-format 2559 2595 msgid "Change and redirect authors pages %s to their front-end profiles %s." 2560 2596 msgstr "" … … 2605 2641 2606 2642 #: src/Admin/SettingsPages/GeneralSettings.php:500 2643 #, php-format 2607 2644 msgid "%sNote:%s Access setting takes precedence over %sContent Protection rules%s." 2608 2645 msgstr "" … … 2666 2703 2667 2704 #: src/Admin/SettingsPages/GeneralSettings.php:547 2705 #, php-format 2668 2706 msgid "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." 2669 2707 msgstr "" … … 2674 2712 2675 2713 #: src/Admin/SettingsPages/GeneralSettings.php:556 2714 #, php-format 2676 2715 msgid "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." 2677 2716 msgstr "" … … 2694 2733 2695 2734 #: src/Admin/SettingsPages/GeneralSettings.php:584 2735 #, php-format 2696 2736 msgid "Check to redirect BuddyPress or BuddyBoss registration page to your selected %s" 2697 2737 msgstr "" … … 2742 2782 #. translators: %1$s Opening anchor tag, do not translate. %2$s Closing anchor tag, do not translate. 2743 2783 #: src/Admin/SettingsPages/LicenseUpgrader.php:96 2784 #, php-format 2744 2785 msgid "Already purchased? Simply %1$sretrieve your license key%2$s and enter it below to connect with ProfilePress Pro." 2745 2786 msgstr "" … … 2807 2848 #. translators: %1$s Opening anchor tag, do not translate. %2$s Closing anchor tag, do not translate. 2808 2849 #: src/Admin/SettingsPages/LicenseUpgrader.php:225 2850 #, php-format 2809 2851 msgid "<strong>Bonus</strong>: Loyal ProfilePress Lite users get <u>10%% off</u> regular price, automatically applied at checkout. %1$sUpgrade to Pro →%2$s" 2810 2852 msgstr "" … … 2927 2969 2928 2970 #: src/Admin/SettingsPages/MembersDirectoryList.php:10 2971 #, php-format 2929 2972 msgid "No members directory is currently available. %sConsider creating one%s" 2930 2973 msgstr "" … … 3070 3113 #: src/Admin/SettingsPages/Membership/GroupsPage/SettingsPage.php:53 3071 3114 #: src/Admin/SettingsPages/Membership/PlansPage/SettingsPage.php:101 3115 #, php-format 3072 3116 msgid "%s cannot be empty." 3073 3117 msgstr "" … … 3088 3132 3089 3133 #: src/Admin/SettingsPages/Membership/CouponsPage/SettingsPage.php:132 3090 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:26 53134 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:268 3091 3135 #: src/Admin/SettingsPages/Membership/DownloadLogsPage/SettingsPage.php:72 3092 3136 #: src/Admin/SettingsPages/Membership/GroupsPage/SettingsPage.php:125 … … 3178 3222 msgstr "" 3179 3223 3180 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:10 53224 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:109 3181 3225 #: src/Admin/SettingsPages/Membership/OrdersPage/SettingsPage.php:369 3182 3226 msgid "You do not have permission to perform this action." 3183 3227 msgstr "" 3184 3228 3185 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:10 53186 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:1 183187 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:1 283188 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:1 483189 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:16 23190 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:1 693191 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:1 773229 #: 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 3192 3236 #: src/Admin/SettingsPages/Membership/OrdersPage/SettingsPage.php:369 3193 3237 #: src/Admin/SettingsPages/Membership/OrdersPage/SettingsPage.php:377 3194 3238 #: src/Admin/SettingsPages/Membership/OrdersPage/SettingsPage.php:381 3195 3239 #: src/Admin/SettingsPages/Membership/OrdersPage/SettingsPage.php:413 3196 #: src/Membership/DigitalProducts/DownloadHandler.php: 533197 #: src/Membership/DigitalProducts/DownloadHandler.php:3 253240 #: src/Membership/DigitalProducts/DownloadHandler.php:66 3241 #: src/Membership/DigitalProducts/DownloadHandler.php:346 3198 3242 #: src/Membership/DigitalProducts/DownloadService.php:84 3199 3243 msgid "Error" 3200 3244 msgstr "" 3201 3245 3202 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:1 183246 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:122 3203 3247 msgid "Please enter a valid customer email." 3204 3248 msgstr "" 3205 3249 3206 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:128 3250 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:132 3251 #, php-format 3207 3252 msgid "A user account already exists with the login %s." 3208 3253 msgstr "" 3209 3254 3210 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:1 483255 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:152 3211 3256 msgid "Error creating customer account." 3212 3257 msgstr "" 3213 3258 3214 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:162 3259 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:165 3260 #, php-format 3215 3261 msgid "Unable to locate existing account with the email %s." 3216 3262 msgstr "" 3217 3263 3218 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:169 3264 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:172 3265 #, php-format 3219 3266 msgid "A customer with the ID %d already exists with this account." 3220 3267 msgstr "" 3221 3268 3222 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:1 773269 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:180 3223 3270 msgid "Error creating customer record." 3224 3271 msgstr "" 3225 3272 3226 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:22 43273 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:227 3227 3274 msgid "Add New Customer" 3228 3275 msgstr "" 3229 3276 3230 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:2 283277 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:231 3231 3278 msgid "Customer Details" 3232 3279 msgstr "" 3233 3280 3234 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:29 43281 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:297 3235 3282 msgid "User Account" 3236 3283 msgstr "" 3237 3284 3238 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php: 2993285 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:302 3239 3286 msgid "Search User" 3240 3287 msgstr "" 3241 3288 3242 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:34 43289 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:347 3243 3290 msgid "New Account" 3244 3291 msgstr "" 3245 3292 3246 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:3 493293 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:352 3247 3294 msgid "Existing Account" 3248 3295 msgstr "" 3249 3296 3250 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:36 13297 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:364 3251 3298 msgid "Show password" 3252 3299 msgstr "" 3253 3300 3254 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:36 63301 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:369 3255 3302 msgid "Hide password" 3256 3303 msgstr "" 3257 3304 3258 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:3 683305 #: src/Admin/SettingsPages/Membership/CustomersPage/SettingsPage.php:371 3259 3306 #: src/Themes/DragDrop/UserProfile/DefaultTemplate.php:104 3260 3307 msgid "Hide" … … 3475 3522 #: src/Admin/SettingsPages/Membership/ExportPage/CustomersExport.php:21 3476 3523 msgid "Order IDs" 3524 msgstr "" 3525 3526 #: src/Admin/SettingsPages/Membership/ExportPage/CustomersExport.php:22 3527 msgid "Billing Street Address" 3528 msgstr "" 3529 3530 #: src/Admin/SettingsPages/Membership/ExportPage/CustomersExport.php:23 3531 #: src/Admin/SettingsPages/Membership/ExportPage/OrdersExport.php:22 3532 msgid "Billing City" 3533 msgstr "" 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 3538 msgid "Billing Country" 3539 msgstr "" 3540 3541 #: src/Admin/SettingsPages/Membership/ExportPage/CustomersExport.php:25 3542 #: src/Admin/SettingsPages/Membership/ExportPage/OrdersExport.php:23 3543 msgid "Billing State" 3544 msgstr "" 3545 3546 #: src/Admin/SettingsPages/Membership/ExportPage/CustomersExport.php:26 3547 msgid "Billing Zip / Postal Code" 3548 msgstr "" 3549 3550 #: src/Admin/SettingsPages/Membership/ExportPage/CustomersExport.php:27 3551 #: src/Admin/SettingsPages/Membership/ExportPage/OrdersExport.php:26 3552 msgid "Billing Phone" 3477 3553 msgstr "" 3478 3554 … … 3526 3602 msgstr "" 3527 3603 3528 #: src/Admin/SettingsPages/Membership/ExportPage/OrdersExport.php:223529 msgid "Billing City"3530 msgstr ""3531 3532 #: src/Admin/SettingsPages/Membership/ExportPage/OrdersExport.php:233533 msgid "Billing State"3534 msgstr ""3535 3536 #: src/Admin/SettingsPages/Membership/ExportPage/OrdersExport.php:243537 #: src/Admin/SettingsPages/Membership/views/orders/eu-vat-sidebar.php:613538 msgid "Billing Country"3539 msgstr ""3540 3541 3604 #: src/Admin/SettingsPages/Membership/ExportPage/OrdersExport.php:25 3542 3605 msgid "Billing Postcode" 3543 msgstr ""3544 3545 #: src/Admin/SettingsPages/Membership/ExportPage/OrdersExport.php:263546 msgid "Billing Phone"3547 3606 msgstr "" 3548 3607 … … 3863 3922 3864 3923 #: src/Admin/SettingsPages/Membership/FileDownloads.php:50 3924 #, php-format 3865 3925 msgid "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." 3866 3926 msgstr "" … … 3985 4045 #: src/Admin/SettingsPages/Membership/OrdersPage/OrderWPListTable.php:117 3986 4046 #: src/Admin/SettingsPages/Membership/SubscriptionsPage/SubscriptionWPListTable.php:122 4047 #, php-format 3987 4048 msgid "#%1$s - %2$s" 3988 4049 msgstr "" … … 3990 4051 #: src/Admin/SettingsPages/Membership/OrdersPage/OrderWPListTable.php:119 3991 4052 #: src/Admin/SettingsPages/Membership/SubscriptionsPage/SubscriptionWPListTable.php:124 4053 #, php-format 3992 4054 msgid "#%1$s - No Customer Assigned" 3993 4055 msgstr "" … … 4153 4215 4154 4216 #: src/Admin/SettingsPages/Membership/PaymentSettings.php:109 4217 #, php-format 4155 4218 msgid "Label for the \"Agree to Terms\" checkbox where \"[terms]\" is a link to the %sterms and condition page%s" 4156 4219 msgstr "" … … 4161 4224 4162 4225 #: src/Admin/SettingsPages/Membership/PaymentSettings.php:117 4226 #, php-format 4163 4227 msgid "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." 4164 4228 msgstr "" … … 4231 4295 4232 4296 #: src/Admin/SettingsPages/Membership/PlansPage/PlanWPListTable.php:64 4297 #, php-format 4233 4298 msgid "ID: %d" 4234 4299 msgstr "" … … 4311 4376 4312 4377 #: src/Admin/SettingsPages/Membership/PlansPage/SettingsPage.php:307 4378 #, php-format 4313 4379 msgid " and a %s signup fee" 4314 4380 msgstr "" … … 4331 4397 4332 4398 #: src/Admin/SettingsPages/Membership/PlansPage/SettingsPage.php:319 4399 #, php-format 4333 4400 msgid "Includes a %s free trial" 4334 4401 msgstr "" … … 4348 4415 4349 4416 #: src/Admin/SettingsPages/Membership/SubscriptionsPage/SettingsPage.php:197 4417 #, php-format 4350 4418 msgid "%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." 4351 4419 msgstr "" … … 4378 4446 4379 4447 #: src/Admin/SettingsPages/Membership/TaxSettings/SettingsPage.php:54 4448 #, php-format 4380 4449 msgid "%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." 4381 4450 msgstr "" … … 4418 4487 4419 4488 #: src/Admin/SettingsPages/Membership/TaxSettings/SettingsPage.php:83 4489 #, php-format 4420 4490 msgid "If \"Shop Base Address\" is selected, Tax will be calculated based on the location of your %sbusiness in Settings%s." 4421 4491 msgstr "" … … 4558 4628 4559 4629 #: src/Admin/SettingsPages/Membership/views/add-edit-coupon.php:85 4630 #, php-format 4560 4631 msgid "Enter the date that this coupon will be valid from. Leave blank for no start date. (UTC %s)" 4561 4632 msgstr "" 4562 4633 4563 4634 #: src/Admin/SettingsPages/Membership/views/add-edit-coupon.php:95 4635 #, php-format 4564 4636 msgid "Enter the date that this coupon will expire on. Leave blank for no end date. (UTC %s)" 4565 4637 msgstr "" … … 4641 4713 4642 4714 #: src/Admin/SettingsPages/Membership/views/add-edit-plan.php:76 4715 #, php-format 4643 4716 msgid "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." 4644 4717 msgstr "" … … 4678 4751 4679 4752 #: src/Admin/SettingsPages/Membership/views/add-edit-plan.php:130 4753 #, php-format 4680 4754 msgid "Set to 0 for unlimited re-downloads. Leave blank to use %sglobal setting%s" 4681 4755 msgstr "" 4682 4756 4683 4757 #: src/Admin/SettingsPages/Membership/views/add-edit-plan.php:140 4758 #, php-format 4684 4759 msgid "Enter the number of days before a download link expires. Set to 0 for no expiration. Leave blank to use %sglobal setting%s." 4685 4760 msgstr "" … … 4803 4878 #: src/Admin/SettingsPages/Membership/views/orders/order-data-metabox.php:106 4804 4879 #: src/Admin/SettingsPages/Membership/views/subscriptions/data-metabox.php:150 4880 #, php-format 4805 4881 msgid "%1$s (%2$s)" 4806 4882 msgstr "" … … 4819 4895 4820 4896 #: src/Admin/SettingsPages/Membership/views/customers/view-customer.php:21 4897 #, php-format 4821 4898 msgid "Customer #%s" 4822 4899 msgstr "" … … 4828 4905 #: src/Admin/SettingsPages/Membership/views/orders/add-edit-order.php:20 4829 4906 #: src/Admin/SettingsPages/Membership/views/orders/order-data-metabox.php:74 4907 #, php-format 4830 4908 msgid "Order #%s" 4831 4909 msgstr "" … … 4934 5012 #: src/Admin/SettingsPages/Membership/views/orders/order-data-metabox.php:37 4935 5013 #: src/Admin/SettingsPages/Membership/views/subscriptions/data-metabox.php:35 5014 #, php-format 4936 5015 msgid "Payment via %s" 4937 5016 msgstr "" 4938 5017 4939 5018 #: src/Admin/SettingsPages/Membership/views/orders/order-data-metabox.php:54 5019 #, php-format 4940 5020 msgid "Paid on %1$s @ %2$s" 4941 5021 msgstr "" 4942 5022 4943 5023 #: src/Admin/SettingsPages/Membership/views/orders/order-data-metabox.php:64 5024 #, php-format 4944 5025 msgid "Customer IP: %s" 4945 5026 msgstr "" … … 5031 5112 5032 5113 #: src/Admin/SettingsPages/Membership/views/payment-method-list.php:54 5114 #, php-format 5033 5115 msgid "Wish to accept payments and sell memberships via PayPal? %supgrade to premium%s." 5034 5116 msgstr "" 5035 5117 5036 5118 #: src/Admin/SettingsPages/Membership/views/payment-method-list.php:58 5119 #, php-format 5037 5120 msgid "%sUpgrade to premium%s to accept one-time and recurring payments via iDEAL, Credit Card, Apple Pay, Klarna, Bancontact, in3 etc with Mollie." 5038 5121 msgstr "" 5039 5122 5040 5123 #: src/Admin/SettingsPages/Membership/views/payment-method-list.php:62 5124 #, php-format 5041 5125 msgid "%sUpgrade to premium%s to accept one-time and recurring payments via Razorpay." 5042 5126 msgstr "" … … 5048 5132 #: src/Admin/SettingsPages/Membership/views/subscriptions/add-edit-subscription.php:18 5049 5133 #: src/Admin/SettingsPages/Membership/views/subscriptions/data-metabox.php:49 5134 #, php-format 5050 5135 msgid "Subscription #%s" 5051 5136 msgstr "" … … 5081 5166 5082 5167 #: src/Admin/SettingsPages/Membership/views/subscriptions/data-metabox.php:101 5168 #, php-format 5083 5169 msgid "Initial Amount (%s):" 5084 5170 msgstr "" 5085 5171 5086 5172 #: src/Admin/SettingsPages/Membership/views/subscriptions/data-metabox.php:106 5173 #, php-format 5087 5174 msgid "Initial Tax Amount (%s):" 5088 5175 msgstr "" 5089 5176 5090 5177 #: src/Admin/SettingsPages/Membership/views/subscriptions/data-metabox.php:111 5178 #, php-format 5091 5179 msgid "Initial Tax Rate (%s):" 5092 5180 msgstr "" 5093 5181 5094 5182 #: src/Admin/SettingsPages/Membership/views/subscriptions/data-metabox.php:116 5183 #, php-format 5095 5184 msgid "Recurring Amount (%s):" 5096 5185 msgstr "" 5097 5186 5098 5187 #: src/Admin/SettingsPages/Membership/views/subscriptions/data-metabox.php:121 5188 #, php-format 5099 5189 msgid "Recurring Tax Amount (%s):" 5100 5190 msgstr "" 5101 5191 5102 5192 #: src/Admin/SettingsPages/Membership/views/subscriptions/data-metabox.php:126 5193 #, php-format 5103 5194 msgid "Recurring Tax Rate (%s):" 5104 5195 msgstr "" … … 5114 5205 5115 5206 #: src/Admin/SettingsPages/Membership/views/subscriptions/data-metabox.php:170 5207 #, php-format 5116 5208 msgid "%sSubscription ID:" 5117 5209 msgstr "" … … 5212 5304 5213 5305 #: src/Classes/AdminNotices.php:88 5306 #, php-format 5214 5307 msgid "<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." 5215 5308 msgstr "" 5216 5309 5217 5310 #: src/Classes/AdminNotices.php:121 5311 #, php-format 5218 5312 msgid "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!" 5219 5313 msgstr "" … … 5232 5326 5233 5327 #: src/Classes/AdminNotices.php:150 5328 #, php-format 5234 5329 msgid "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" 5235 5330 msgstr "" … … 5260 5355 5261 5356 #: src/Classes/AdminNotices.php:257 5357 #, php-format 5262 5358 msgid "User registration currently disabled. To enable, Go to <a href=\"%1$s\">Settings -> General</a>, and under Membership, check \"Anyone can register\"" 5263 5359 msgstr "" … … 5565 5661 5566 5662 #: src/Classes/FileUploader.php:74 5663 #, php-format 5567 5664 msgid "Uploaded file is greater than the allowed sized of %s" 5568 5665 msgstr "" … … 5573 5670 5574 5671 #: src/Classes/FileUploader.php:128 5672 #, php-format 5575 5673 msgid "Unable to save %s, please try again." 5576 5674 msgstr "" … … 5629 5727 5630 5728 #: src/Classes/ImageUploader.php:63 5729 #, php-format 5631 5730 msgid "%s is greater than the allowed sized of %s" 5632 5731 msgstr "" … … 5699 5798 5700 5799 #: src/Classes/Miscellaneous.php:111 5800 #, php-format 5701 5801 msgid "ProfilePress %s" 5702 5802 msgstr "" … … 5766 5866 #: src/Membership/Controllers/CheckoutTrait.php:231 5767 5867 #: src/Membership/Controllers/CheckoutTrait.php:250 5868 #, php-format 5768 5869 msgid "%s field is required" 5769 5870 msgstr "" … … 5855 5956 5856 5957 #: src/ContentProtection/ContentConditions.php:279 5958 #, php-format 5857 5959 msgid "%s Archive Page" 5858 5960 msgstr "" 5859 5961 5860 5962 #: src/ContentProtection/ContentConditions.php:286 5963 #, php-format 5861 5964 msgid "All %s" 5862 5965 msgstr "" 5863 5966 5864 5967 #: src/ContentProtection/ContentConditions.php:293 5968 #, php-format 5865 5969 msgid "Selected %s" 5866 5970 msgstr "" … … 5871 5975 #: src/ContentProtection/ContentConditions.php:394 5872 5976 #: src/ContentProtection/ContentConditions.php:430 5977 #, php-format 5873 5978 msgid "Select %s" 5874 5979 msgstr "" 5875 5980 5876 5981 #: src/ContentProtection/ContentConditions.php:305 5982 #, php-format 5877 5983 msgid "Child %s of" 5878 5984 msgstr "" 5879 5985 5880 5986 #: src/ContentProtection/ContentConditions.php:306 5987 #, php-format 5881 5988 msgid "Child of Selected %s" 5882 5989 msgstr "" 5883 5990 5884 5991 #: src/ContentProtection/ContentConditions.php:317 5992 #, php-format 5885 5993 msgid "Parent %s of" 5886 5994 msgstr "" 5887 5995 5888 5996 #: src/ContentProtection/ContentConditions.php:318 5997 #, php-format 5889 5998 msgid "Parent of Selected %s" 5890 5999 msgstr "" … … 5895 6004 5896 6005 #: src/ContentProtection/ContentConditions.php:334 6006 #, php-format 5897 6007 msgid "%s with Template" 5898 6008 msgstr "" … … 5915 6025 5916 6026 #: src/ContentProtection/ContentConditions.php:392 6027 #, php-format 5917 6028 msgid "%1$s with %2$s" 5918 6029 msgstr "" 5919 6030 5920 6031 #: src/ContentProtection/ContentConditions.php:416 6032 #, php-format 5921 6033 msgid "%s (%s)" 5922 6034 msgstr "" 5923 6035 5924 6036 #: src/ContentProtection/ContentConditions.php:420 6037 #, php-format 5925 6038 msgid "All %s Archive Pages" 5926 6039 msgstr "" … … 5928 6041 #: src/ContentProtection/ContentConditions.php:421 5929 6042 #: src/ContentProtection/ContentConditions.php:427 6043 #, php-format 5930 6044 msgid "%s Archive" 5931 6045 msgstr "" 5932 6046 5933 6047 #: src/ContentProtection/ContentConditions.php:428 6048 #, php-format 5934 6049 msgid "Selected %s Archive Pages" 5935 6050 msgstr "" … … 6001 6116 6002 6117 #: src/ContentProtection/SettingsPage.php:51 6118 #, php-format 6003 6119 msgid "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." 6004 6120 msgstr "" … … 6045 6161 6046 6162 #: src/ContentProtection/views/include.elementor-protection.php:5 6163 #, php-format 6047 6164 msgid "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" 6048 6165 msgstr "" 6049 6166 6050 6167 #: src/ContentProtection/views/include.menu-protection.php:5 6168 #, php-format 6051 6169 msgid "Want to control the visibility of WordPress navigation menus based on user roles, logged-in status and membership plans? %sLearn how to%s" 6052 6170 msgstr "" 6053 6171 6054 6172 #: src/ContentProtection/views/include.shortcode-doc-sidebar.php:5 6173 #, php-format 6055 6174 msgid "To restrict contents in a post or page, we provide the below shortcode. %sLearn more%s" 6056 6175 msgstr "" … … 6061 6180 6062 6181 #: src/ContentProtection/views/include.shortcode-doc-sidebar.php:17 6182 #, php-format 6063 6183 msgid "Want to restrict contents in the block editor? %sLearn how to%s" 6064 6184 msgstr "" … … 15169 15289 msgstr "" 15170 15290 15171 #: src/Functions/GlobalFunctions.php:130 315291 #: src/Functions/GlobalFunctions.php:1304 15172 15292 msgid "It must be unique for each field, not a reserve text, in lowercase letters only with an underscore ( _ ) separating words e.g job_title" 15173 15293 msgstr "" 15174 15294 15175 #: src/Functions/GlobalFunctions.php:1440 15295 #: src/Functions/GlobalFunctions.php:1441 15296 #, php-format 15176 15297 msgid "%s (WooCommerce Billing Address)" 15177 15298 msgstr "" 15178 15299 15179 #: src/Functions/GlobalFunctions.php:1444 15300 #: src/Functions/GlobalFunctions.php:1445 15301 #, php-format 15180 15302 msgid "%s (WooCommerce Shipping Address)" 15181 15303 msgstr "" 15182 15304 15183 #: src/Functions/GlobalFunctions.php:149 215305 #: src/Functions/GlobalFunctions.php:1493 15184 15306 msgid "First and Last Names" 15185 15307 msgstr "" 15186 15308 15187 #: src/Functions/GlobalFunctions.php:149 315309 #: src/Functions/GlobalFunctions.php:1494 15188 15310 msgid "Last and First Names" 15189 15311 msgstr "" 15190 15312 15191 #: src/Functions/GlobalFunctions.php:150 115313 #: src/Functions/GlobalFunctions.php:1502 15192 15314 msgid "Registration Date" 15193 15315 msgstr "" 15194 15316 15195 #: src/Functions/GlobalFunctions.php:164 015317 #: src/Functions/GlobalFunctions.php:1641 15196 15318 msgid "There was an problem while verifying your file." 15197 15319 msgstr "" 15198 15320 15199 #: src/Functions/GlobalFunctions.php:164 515321 #: src/Functions/GlobalFunctions.php:1646 15200 15322 msgid "Sorry, this file extension is not permitted for security reasons." 15201 15323 msgstr "" 15202 15324 15203 #: src/Functions/GlobalFunctions.php:16 4915325 #: src/Functions/GlobalFunctions.php:1650 15204 15326 msgid "Sorry, this file type is not permitted for security reasons." 15205 15327 msgstr "" 15206 15328 15207 #: src/Functions/GlobalFunctions.php:165 315208 #: src/Functions/GlobalFunctions.php:165 715329 #: src/Functions/GlobalFunctions.php:1654 15330 #: src/Functions/GlobalFunctions.php:1658 15209 15331 msgid "Error: The file you uploaded is not accepted on our website." 15210 15332 msgstr "" … … 15867 15989 15868 15990 #: src/Functions/MSFunctions.php:914 15991 #, php-format 15869 15992 msgid "Customer already has an active subscription for %s." 15870 15993 msgstr "" … … 15939 16062 15940 16063 #: src/Integrations/TutorLMS/Init.php:327 16064 #, php-format 15941 16065 msgid "Select a page with a custom ProfilePress registration form shortcode you wish to make a student registration page for Tutor LMS. %sLearn more%s" 15942 16066 msgstr "" … … 15947 16071 15948 16072 #: src/Integrations/TutorLMS/Init.php:336 16073 #, php-format 15949 16074 msgid "Select a page with a ProfilePress registration form shortcode you wish to make an instructor registration page for Tutor LMS. %sLearn more%s" 15950 16075 msgstr "" … … 16039 16164 16040 16165 #: src/Membership/Controllers/CheckoutController.php:162 16166 #, php-format 16041 16167 msgid "Coupon code \"%s\" not found." 16042 16168 msgstr "" … … 16087 16213 msgstr "" 16088 16214 16089 #: src/Membership/DigitalProducts/DownloadHandler.php: 5316215 #: src/Membership/DigitalProducts/DownloadHandler.php:66 16090 16216 msgid "Sorry but you have hit your download limit for this file." 16091 16217 msgstr "" 16092 16218 16093 #: src/Membership/DigitalProducts/DownloadHandler.php:62 16219 #: src/Membership/DigitalProducts/DownloadHandler.php:75 16220 #, php-format 16094 16221 msgid "You must have an active subscription to %s in order to download this file." 16095 16222 msgstr "" 16096 16223 16097 #: src/Membership/DigitalProducts/DownloadHandler.php: 6516224 #: src/Membership/DigitalProducts/DownloadHandler.php:78 16098 16225 msgid "Access Denied" 16099 16226 msgstr "" 16100 16227 16101 #: src/Membership/DigitalProducts/DownloadHandler.php:3 1816228 #: src/Membership/DigitalProducts/DownloadHandler.php:330 16102 16229 msgid "You must be logged in to download files." 16103 16230 msgstr "" 16104 16231 16105 #: src/Membership/DigitalProducts/DownloadHandler.php:3 1816232 #: src/Membership/DigitalProducts/DownloadHandler.php:330 16106 16233 msgid "Log in to Download Files" 16107 16234 msgstr "" 16108 16235 16109 #: src/Membership/DigitalProducts/DownloadHandler.php:324 16236 #: src/Membership/DigitalProducts/DownloadHandler.php:338 16237 msgid "You are not allowed to access this file" 16238 msgstr "" 16239 16240 #: src/Membership/DigitalProducts/DownloadHandler.php:338 16241 #: src/Membership/DigitalProducts/DownloadHandler.php:357 16242 msgid "File download error" 16243 msgstr "" 16244 16245 #: src/Membership/DigitalProducts/DownloadHandler.php:345 16110 16246 msgid "You do not have permission to download this file" 16111 16247 msgstr "" 16112 16248 16113 #: src/Membership/DigitalProducts/DownloadHandler.php:3 2516249 #: src/Membership/DigitalProducts/DownloadHandler.php:346 16114 16250 msgid "Order Verification Failed" 16115 16251 msgstr "" 16116 16252 16117 #: src/Membership/DigitalProducts/DownloadHandler.php:3 3616253 #: src/Membership/DigitalProducts/DownloadHandler.php:357 16118 16254 msgid "Error 103: Error downloading file. Please contact support." 16119 16255 msgstr "" 16120 16256 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 16126 16258 msgid "Sorry, this file could not be downloaded." 16127 16259 msgstr "" 16128 16260 16129 #: src/Membership/DigitalProducts/DownloadHandler.php:3 5316261 #: src/Membership/DigitalProducts/DownloadHandler.php:374 16130 16262 msgid "Error Downloading File" 16131 16263 msgstr "" … … 16137 16269 #. translators: 1: uploads directory URL 2: documentation URL 16138 16270 #: src/Membership/DigitalProducts/UploadHandler.php:285 16271 #, php-format 16139 16272 msgid "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>." 16140 16273 msgstr "" … … 16156 16289 16157 16290 #: src/Membership/Emails/EmailDataTrait.php:14 16291 #, php-format 16158 16292 msgid "User custom profile field information. Replace \"field_key\" with the %scustom field key%s or usermeta key." 16159 16293 msgstr "" … … 16225 16359 16226 16360 #: src/Membership/Emails/EmailDataTrait.php:34 16361 #, php-format 16227 16362 msgid "Your business name as defined in %sSettings%s." 16228 16363 msgstr "" 16229 16364 16230 16365 #: src/Membership/Emails/EmailDataTrait.php:38 16366 #, php-format 16231 16367 msgid "Your business address as defined in %sSettings%s." 16232 16368 msgstr "" 16233 16369 16234 16370 #: src/Membership/Emails/EmailDataTrait.php:42 16371 #, php-format 16235 16372 msgid "Your business Tax ID as defined in %sSettings%s." 16236 16373 msgstr "" … … 16265 16402 16266 16403 #: src/Membership/Models/Order/OrderEntity.php:239 16404 #, php-format 16267 16405 msgid "Payment %s has been fully refunded in %s." 16268 16406 msgstr "" … … 16274 16412 16275 16413 #: src/Membership/Models/Order/OrderEntity.php:262 16414 #, php-format 16276 16415 msgid "Order changed from %s to %s by %s" 16277 16416 msgstr "" … … 16345 16484 16346 16485 #: src/Membership/Models/Subscription/SubscriptionEntity.php:568 16486 #, php-format 16347 16487 msgid "Subscription changed from %s to %s by %s" 16348 16488 msgstr "" … … 16455 16595 #. translators: %1$s Opening strong tag, do not translate. %2$s Closing anchor tag, do not translate. 16456 16596 #: src/Membership/PaymentMethods/Stripe/Helpers.php:156 16597 #, php-format 16457 16598 msgid "You are currently connected to a %1$stemporary%2$s Stripe account, which can only be used for testing purposes." 16458 16599 msgstr "" … … 16491 16632 16492 16633 #: src/Membership/PaymentMethods/Stripe/Helpers.php:287 16634 #, php-format 16493 16635 msgid "Pay as you go pricing: 2%% per-transaction fee + Stripe fees. Remove the 2%% fee by %supgrading to premium%s." 16494 16636 msgstr "" … … 16507 16649 16508 16650 #: src/Membership/PaymentMethods/Stripe/Stripe.php:39 16651 #, php-format 16509 16652 msgid "NOTE: The free version of ProfilePress includes an additional 2%% fee for processing payments. Remove the fee by %supgrading to premium%s." 16510 16653 msgstr "" … … 16523 16666 16524 16667 #: src/Membership/PaymentMethods/Stripe/Stripe.php:220 16668 #, php-format 16525 16669 msgid "Your Stripe account is connected in %1$s mode. %2$sDisconnect this account%3$s." 16526 16670 msgstr "" … … 16531 16675 16532 16676 #: src/Membership/PaymentMethods/Stripe/Stripe.php:242 16677 #, php-format 16533 16678 msgid "Connect now to start accepting payments instantly. This includes an additional 2%% payment processing fee. Remove the fee by %supgrading to premium%s." 16534 16679 msgstr "" … … 16539 16684 16540 16685 #: src/Membership/PaymentMethods/Stripe/Stripe.php:263 16686 #, php-format 16541 16687 msgid "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" 16542 16688 msgstr "" … … 16555 16701 16556 16702 #: src/Membership/PaymentMethods/Stripe/Stripe.php:277 16703 #, php-format 16557 16704 msgid "Retrieve your %3$s \"Signing secret\" from your %1$sStripe webhook settings%2$s. Select the endpoint then click \"Reveal\"." 16558 16705 msgstr "" … … 16563 16710 16564 16711 #: src/Membership/PaymentMethods/Stripe/Stripe.php:291 16712 #, php-format 16565 16713 msgid "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." 16566 16714 msgstr "" … … 16591 16739 16592 16740 #: src/Membership/PaymentMethods/Stripe/Stripe.php:311 16741 #, php-format 16593 16742 msgid "This is only available when using Stripe Payment Page (Off-site) and have %sStripe Tax%s enabled in your Stripe account." 16594 16743 msgstr "" … … 16603 16752 16604 16753 #: src/Membership/PaymentMethods/Stripe/Stripe.php:328 16754 #, php-format 16605 16755 msgid "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" 16606 16756 msgstr "" … … 16611 16761 16612 16762 #: src/Membership/PaymentMethods/Stripe/Stripe.php:448 16763 #, php-format 16613 16764 msgid "Attempted cancellation but was unable. Message was \"%s\"." 16614 16765 msgstr "" … … 16636 16787 16637 16788 #: src/Membership/PaymentMethods/Stripe/Stripe.php:978 16789 #, php-format 16638 16790 msgid "Refund request failed. Status: %s" 16639 16791 msgstr "" 16640 16792 16641 16793 #: src/Membership/PaymentMethods/Stripe/WebhookHandlers/ChargeRefunded.php:36 16794 #, php-format 16642 16795 msgid "Payment %s partially refunded in Stripe." 16643 16796 msgstr "" 16644 16797 16645 16798 #: src/Membership/PaymentMethods/Stripe/WebhookHandlers/CustomerSubscriptionUpdated.php:30 16799 #, php-format 16646 16800 msgid "Subscription is scheduled for cancellation on %s" 16647 16801 msgstr "" … … 16652 16806 16653 16807 #: src/Membership/PaymentMethods/Stripe/WebhookHandlers/CustomerSubscriptionUpdated.php:94 16808 #, php-format 16654 16809 msgid "Recurring amount changed from %s to %s in Stripe." 16655 16810 msgstr "" … … 16726 16881 #: src/RegisterActivation/Base.php:170 16727 16882 #: src/templates/checkout/form-terms.php:9 16883 #, php-format 16728 16884 msgid "I have read and agree to the website %s" 16729 16885 msgstr "" … … 16930 17086 16931 17087 #: src/ShortcodeParser/FrontendProfileTag.php:80 17088 #, php-format 16932 17089 msgid "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." 16933 17090 msgstr "" … … 16975 17132 16976 17133 #: src/ShortcodeParser/MembershipShortcodes.php:81 17134 #, php-format 16977 17135 msgid "Your cart is currently empty. Click <a href=\"%s\">here</a> to get started." 16978 17136 msgstr "" … … 16995 17153 16996 17154 #: src/ShortcodeParser/MembershipShortcodes.php:143 17155 #, php-format 16997 17156 msgid "You have an active subscription to this plan. Please go to %syour account%s to manage your subscription." 16998 17157 msgstr "" … … 17033 17192 #. translators: 1: user display name 2: logout url 17034 17193 #: src/ShortcodeParser/MyAccount/dashboard.tmpl.php:19 17194 #, php-format 17035 17195 msgid "Hello %1$s (not %1$s? <a href=\"%2$s\">Log out</a>)" 17036 17196 msgstr "" 17037 17197 17038 17198 #: src/ShortcodeParser/MyAccount/dashboard.tmpl.php:29 17199 #, php-format 17039 17200 msgid "From your account dashboard you can <a href=\"%1$s\">change your password</a> and <a href=\"%2$s\">edit your account details</a>." 17040 17201 msgstr "" … … 17157 17318 17158 17319 #: src/ShortcodeParser/MyAccount/view-subscription.tmpl.php:91 17320 #, php-format 17159 17321 msgid "Via %s" 17160 17322 msgstr "" … … 17193 17355 17194 17356 #: src/templates/checkout/form-checkout-sidebar.php:49 17357 #, php-format 17195 17358 msgid "Have a coupon? %sClick here to enter your code%s" 17196 17359 msgstr "" … … 17209 17372 17210 17373 #: src/templates/checkout/form-checkout-sidebar.php:87 17374 #, php-format 17211 17375 msgid "Discount %s" 17212 17376 msgstr "" … … 17217 17381 17218 17382 #: src/templates/checkout/form-checkout-sidebar.php:132 17383 #, php-format 17219 17384 msgid "You will be charged %1$stoday%2$s" 17220 17385 msgstr "" 17221 17386 17222 17387 #: src/templates/checkout/form-checkout-sidebar.php:141 17388 #, php-format 17223 17389 msgid "then %1$s starting %2$s." 17224 17390 msgstr "" 17225 17391 17226 17392 #: src/templates/checkout/form-checkout-sidebar.php:148 17393 #, php-format 17227 17394 msgid "%s payments total." 17228 17395 msgstr "" 17229 17396 17230 17397 #: src/templates/checkout/form-checkout-sidebar.php:155 17398 #, php-format 17231 17399 msgid "After payment, your subscription will expire on %1$s" 17232 17400 msgstr "" … … 17258 17426 #. Translators: %s display name. 17259 17427 #: src/templates/checkout/form-login.php:65 17428 #, php-format 17260 17429 msgid "Logged in as %s. Not you?" 17261 17430 msgstr "" … … 17286 17455 17287 17456 #: src/templates/order-processing.php:3 17457 #, php-format 17288 17458 msgid "Your order is processing. This page will reload automatically in 8 seconds. If it does not, click <a href=\"%s\">here</a>." 17289 17459 msgstr "" … … 17535 17705 17536 17706 #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:143 17707 #, php-format 17537 17708 msgid "%s Members" 17538 17709 msgstr "" 17539 17710 17540 17711 #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:144 17712 #, php-format 17541 17713 msgid "%s Member" 17542 17714 msgstr "" … … 17636 17808 17637 17809 #: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:315 17810 #, php-format 17638 17811 msgid "%sUpgrade to ProfilePress premium%s if you don't have the custom field addon so you can enable search and filtering by custom fields." 17639 17812 msgstr "" … … 17722 17895 17723 17896 #: src/Themes/DragDrop/MemberDirectory/DefaultTemplate.php:72 17897 #, php-format 17724 17898 msgid "%sUpgrade to ProfilePress premium%s if you don't have the custom field addon to display social profile icons of users." 17725 17899 msgstr "" … … 17778 17952 17779 17953 #: src/Themes/DragDrop/UserProfile/DefaultTemplate.php:132 17954 #, php-format 17780 17955 msgid "%sUpgrade to ProfilePress premium%s if you don't have the custom field addon to display users social profiles." 17781 17956 msgstr "" … … 17826 18001 17827 18002 #: src/Themes/DragDrop/UserProfile/DefaultTemplate.php:313 18003 #, php-format 17828 18004 msgid "Your profile is looking a little empty. Why not <a href=\"%s\">add some information</a>?" 17829 18005 msgstr "" … … 17935 18111 #: src/Widgets/TabbedWidget.php:218 17936 18112 #: src/Widgets/UserPanel.php:50 18113 #, php-format 17937 18114 msgid "Welcome %s" 17938 18115 msgstr "" -
wp-user-avatar/trunk/readme.txt
r3408055 r3447273 6 6 Requires PHP: 7.4 7 7 Tested up to: 6.9 8 Stable tag: 4.16. 88 Stable tag: 4.16.9 9 9 License: GPLv2 or later 10 10 … … 192 192 == Changelog == 193 193 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 194 203 = Paid Membership, Ecommerce & User Registration 4.16.8 = 195 204 * Fixed security issue with arbitrary shortcode execution on form preview. … … 208 217 * Improved compatibility with WPML. 209 218 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 information213 * 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 227 219 See 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 47 47 48 48 $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'] 55 55 ); 56 56 57 add_action("load-$hook", array($this, 'add_options'));57 add_action("load-$hook", [$this, 'add_options']); 58 58 59 59 do_action('ppress_membership_customers_settings_page_register', $hook); … … 90 90 do_action('ppress_customer_updated', $customer_id); 91 91 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)); 93 97 exit; 94 98 } … … 102 106 if ( ! isset($_POST['save_ppress_customers'])) return; 103 107 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)); 106 110 } 107 111 … … 130 134 131 135 $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']) : '' 137 141 ); 138 142 … … 149 153 } 150 154 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']); 155 157 156 158 $user = get_userdata($user_id); 159 157 160 } else { 158 161 … … 195 198 196 199 $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' => 1000200 'search' => '*' . $search . '*', 201 'search_columns' => ['user_email', 'user_login', 'user_nicename', 'display_name'], 202 'fields' => ['ID', 'user_email', 'user_login'], 203 'number' => 1000 201 204 ]); 202 205 … … 206 209 207 210 $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), 210 213 ); 211 214 } … … 240 243 { 241 244 $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' 245 248 ]; 246 249 … … 290 293 291 294 $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 ]) 326 329 ]); 327 330 … … 341 344 { 342 345 $html = sprintf( 343 '<label><input checked class="user-account-type" type="radio" name="user_account_type" value="new">%s</label> ',344 __('New Account', 'wp-user-avatar')346 '<label><input checked class="user-account-type" type="radio" name="user_account_type" value="new">%s</label> ', 347 __('New Account', 'wp-user-avatar') 345 348 ); 346 349 347 350 $html .= sprintf( 348 '<label><input class="user-account-type" type="radio" name="user_account_type" value="existing">%s</label> ',349 __('Existing Account', 'wp-user-avatar')351 '<label><input class="user-account-type" type="radio" name="user_account_type" value="existing">%s</label> ', 352 __('Existing Account', 'wp-user-avatar') 350 353 ); 351 354 -
wp-user-avatar/trunk/src/Admin/SettingsPages/Membership/ExportPage/CustomersExport.php
r2951776 r3447273 19 19 __('Purchase Count', 'wp-user-avatar'), 20 20 __('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') 22 28 ]; 23 29 } … … 26 32 { 27 33 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; 34 39 35 40 $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 "; 59 71 60 72 if ( ! empty($plan_id)) { … … 65 77 $sql .= " GROUP BY pc.id"; 66 78 67 $page = max(1, intval($page)); 68 79 $page = max(1, intval($page)); 69 80 $offset = ($page - 1) * intval($limit); 70 81 … … 75 86 76 87 if ($offset > 0) { 77 $sql .= " OFFSET %d";88 $sql .= " OFFSET %d"; 78 89 $replacements[] = $offset; 79 90 } -
wp-user-avatar/trunk/src/Classes/EditUserProfile.php
r3292108 r3447273 244 244 $upload_errors = ''; 245 245 foreach ($uploads as $field_key => $uploaded_filename_or_wp_error) { 246 if (is_wp_error($upload s[$field_key])) {247 $upload_errors .= $upload s[$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/>'; 248 248 } 249 249 } … … 260 260 // we then merge the old and new uploads before saving the data to user meta table. 261 261 foreach ($uploads as $key => $value) { 262 if ( is_null($value) ||empty($value)) {262 if (empty($value)) { 263 263 unset($uploads[$key]); 264 264 } -
wp-user-avatar/trunk/src/Classes/FileUploader.php
r2762842 r3447273 87 87 }); 88 88 89 if ( ! is_array($allowed_extensions) ||empty($allowed_extensions)) $allowed_extensions = [];89 if (empty($allowed_extensions)) $allowed_extensions = []; 90 90 91 91 $filename = $file['name']; -
wp-user-avatar/trunk/src/Classes/FormPreviewHandler.php
r3408055 r3447273 85 85 function the_content() 86 86 { 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'); 88 88 89 89 return do_shortcode(sprintf("[profilepress-%s id='%d']", $this->_form_type, $this->_form_id)); -
wp-user-avatar/trunk/src/Classes/ModifyRedirectDefaultLinks.php
r3306352 r3447273 41 41 global $pagenow; 42 42 43 $is_active = false; 44 43 45 if ('wp-login.php' == $pagenow) { 44 46 45 47 if (class_exists('Jetpack') && \Jetpack::is_module_active('sso')) { 46 returntrue;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')) { 50 52 try { 51 if (wd_di()->get(\WP_Defender\Model\Setting\Two_Fa::class)->enabled) returntrue;53 if (wd_di()->get(\WP_Defender\Model\Setting\Two_Fa::class)->enabled) $is_active = true; 52 54 } catch (\Exception $e) { 53 55 } 54 56 } 55 57 56 if ( defined('WORDFENCE_VERSION') || defined('WORDFENCE_LS_VERSION')) {57 returntrue;58 } 59 60 if ( defined('WP_2FA_VERSION')) returntrue;61 62 if ( defined('SIMBA_TFA_PLUGIN_DIR')) returntrue;63 64 if ( class_exists('\SG_Security\Options_Service\Options_Service') && \SG_Security\Options_Service\Options_Service::is_enabled('sg2fa')) {65 returntrue;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); 70 72 } 71 73 -
wp-user-avatar/trunk/src/Functions/GlobalFunctions.php
r3329201 r3447273 796 796 ); 797 797 798 $title = ppress_custom_profile_field_search_replace($title, $user); 798 799 $message = ppress_custom_profile_field_search_replace($message, $user); 799 800 -
wp-user-avatar/trunk/src/Membership/Controllers/CheckoutTrait.php
r3319431 r3447273 399 399 // --------START --------- register custom field ----------------------// 400 400 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 } 404 428 405 429 if (is_array($custom_usermeta)) { -
wp-user-avatar/trunk/src/Membership/DigitalProducts/DownloadHandler.php
r2792799 r3447273 14 14 15 15 /** 16 * Used to process a signed URL for processing downloads 17 * 16 * //[0=> 'order ID', 1=> 'plan ID', 2 => 'file index'] 18 17 * @return array|false 19 18 */ 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([])); 23 22 wp_parse_str($parts['query'], $query_args); 24 23 $url = add_query_arg($query_args, site_url()); … … 28 27 if ( ! $valid_token) return false; 29 28 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; 34 47 35 48 $downloads = ppress_get_plan($plan_id)->get_downloads(); … … 311 324 public function process_download() 312 325 { 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 } 319 340 } 320 341 … … 323 344 if ( ! $args['has_access']) { 324 345 $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]); 326 347 } 327 348 … … 395 416 if (( ! isset($file_details['scheme']) || ! in_array($file_details['scheme'], $schemes)) && isset($file_details['path']) && file_exists($requested_file)) { 396 417 /** This is an absolute path */ 397 $direct = true; 398 $file_path = $requested_file; 418 $direct = true; 399 419 } elseif (defined('UPLOADS') && strpos($requested_file, UPLOADS) !== false) { 400 420 /** -
wp-user-avatar/trunk/src/ShortcodeParser/MyAccount/MyAccountTag.php
r3319431 r3447273 610 610 <a class="ppmyac-dashboard-item <?= $key ?><?= self::is_endpoint($key) ? ' isactive' : ''; ?>" href="<?= esc_url($href); ?>"> 611 611 <i class="ppmyac-icons"> 612 <?= isset($tab['icon']) ? $tab['icon'] :'settings'; ?>612 <?= $tab['icon'] ?? 'settings'; ?> 613 613 </i> 614 614 <?= $tab['title'] ?> -
wp-user-avatar/trunk/src/templates/checkout/form-account-info-fields.php
r2874651 r3447273 2 2 3 3 use ProfilePress\Core\Membership\CheckoutFields; 4 5 6 echo '<div class="ppress-checkout_account_info-wrap">'; 4 7 5 8 foreach (CheckoutFields::account_info_fields() as $field_key => $field) { … … 31 34 echo '</div>'; 32 35 } 36 echo '</div>'; 33 37 34 38 -
wp-user-avatar/trunk/third-party/vendor/autoload.php
r3319431 r3447273 15 15 } 16 16 } 17 throw new RuntimeException($err); 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 18 21 } 19 22 -
wp-user-avatar/trunk/third-party/vendor/composer/InstalledVersions.php
r3319431 r3447273 26 26 { 27 27 /** 28 * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to29 * @internal30 */31 private static $selfDir = null;32 /**33 28 * @var mixed[]|null 34 29 * @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 35 30 */ 36 31 private static $installed; 37 /**38 * @var bool39 */40 private static $installedIsLocalDir;41 32 /** 42 33 * @var bool|null … … 279 270 self::$installed = $data; 280 271 self::$installedByVendor = array(); 281 // when using reload, we disable the duplicate protection to ensure that self::$installed data is282 // 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 listing284 // all installed packages for example285 self::$installedIsLocalDir = \false;286 }287 /**288 * @return string289 */290 private static function getSelfDir()291 {292 if (self::$selfDir === null) {293 self::$selfDir = strtr(__DIR__, '\\', '/');294 }295 return self::$selfDir;296 272 } 297 273 /** … … 305 281 } 306 282 $installed = array(); 307 $copiedLocalDir = \false;308 283 if (self::$canGetVendors) { 309 $selfDir = self::getSelfDir();310 284 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 311 $vendorDir = strtr($vendorDir, '\\', '/');312 285 if (isset(self::$installedByVendor[$vendorDir])) { 313 286 $installed[] = self::$installedByVendor[$vendorDir]; … … 315 288 /** @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 */ 316 289 $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]; 322 293 } 323 }324 if (self::$installedIsLocalDir && $vendorDir . '/composer' === $selfDir) {325 $copiedLocalDir = \true;326 294 } 327 295 } … … 338 306 } 339 307 } 340 if (self::$installed !== array() && !$copiedLocalDir) {308 if (self::$installed !== array()) { 341 309 $installed[] = self::$installed; 342 310 } -
wp-user-avatar/trunk/third-party/vendor/composer/installed.json
r3366382 r3447273 628 628 { 629 629 "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", 632 632 "source": { 633 633 "type": "git", 634 634 "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", 641 641 "shasum": "" 642 642 }, … … 644 644 "php": "^7.4", 645 645 "php-stubs\/wordpress-globals": "0.2.0", 646 "php-stubs\/wordpress-stubs": "6. 8.1",646 "php-stubs\/wordpress-stubs": "6.9.0", 647 647 "sniccowp\/php-scoper-excludes": "dev-master" 648 648 }, 649 "time": "2025- 05-03T00:01:53+00:00",649 "time": "2025-12-08T11:39:50+00:00", 650 650 "type": "library", 651 651 "installation-source": "dist", … … 672 672 "support": { 673 673 "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" 675 675 }, 676 676 "install-path": "..\/sniccowp\/php-scoper-wordpress-excludes" -
wp-user-avatar/trunk/third-party/vendor/composer/installed.php
r3408055 r3447273 3 3 namespace ProfilePressVendor; 4 4 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'))));5 return 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 20 20 } 21 21 } 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 24 25 ); 25 26 } -
wp-user-avatar/trunk/wp-user-avatar.php
r3408055 r3447273 4 4 * Plugin URI: https://profilepress.com 5 5 * Description: The modern WordPress membership and user profile plugin. 6 * Version: 4.16. 86 * Version: 4.16.9 7 7 * Author: ProfilePress Membership Team 8 8 * Author URI: https://profilepress.com … … 14 14 15 15 define('PROFILEPRESS_SYSTEM_FILE_PATH', __FILE__); 16 define('PPRESS_VERSION_NUMBER', '4.16. 8');16 define('PPRESS_VERSION_NUMBER', '4.16.9'); 17 17 18 18 if ( ! defined('PPRESS_STRIPE_API_VERSION')) {
Note: See TracChangeset
for help on using the changeset viewer.