cft-builder 0.2.328 → 0.2.330
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cft-builder.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as s, D as o, F as a, G as d, R as i, T as u, C as m, A as B, z as k, B as l } from "./main-
|
|
1
|
+
import { E as s, D as o, F as a, G as d, R as i, T as u, C as m, A as B, z as k, B as l } from "./main-BmzUzTwt.js";
|
|
2
2
|
export {
|
|
3
3
|
s as BuilderItems,
|
|
4
4
|
o as BuilderItemsRender,
|
package/dist/cft-builder.umd.cjs
CHANGED
|
@@ -2296,7 +2296,7 @@ var ON;function Mn(){return ON.apply(null,arguments)}function Kse(t){ON=t}functi
|
|
|
2296
2296
|
[`+a+"] ";for(s in arguments[0])Vi(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[a];r.push(i)}PN(t+`
|
|
2297
2297
|
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
2298
2298
|
`+new Error().stack),n=!1}return e.apply(this,arguments)},e)}var MN={};function LN(t,e){Mn.deprecationHandler!=null&&Mn.deprecationHandler(t,e),MN[t]||(PN(e),MN[t]=!0)}Mn.suppressDeprecationWarnings=!1,Mn.deprecationHandler=null;function lu(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function Rse(t){var e,n;for(n in t)Vi(t,n)&&(e=t[n],lu(e)?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function P7(t,e){var n=Qd({},t),r;for(r in e)Vi(e,r)&&(e1(t[r])&&e1(e[r])?(n[r]={},Qd(n[r],t[r]),Qd(n[r],e[r])):e[r]!=null?n[r]=e[r]:delete n[r]);for(r in t)Vi(t,r)&&!Vi(e,r)&&e1(t[r])&&(n[r]=Qd({},n[r]));return n}function M7(t){t!=null&&this.set(t)}var L7;Object.keys?L7=Object.keys:L7=function(t){var e,n=[];for(e in t)Vi(t,e)&&n.push(e);return n};var Gse={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Wse(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return lu(r)?r.call(e,n):r}function cu(t,e,n){var r=""+Math.abs(t),i=e-r.length,a=t>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var B7=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L3=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V7={},yf={};function mr(t,e,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),t&&(yf[t]=i),e&&(yf[e[0]]=function(){return cu(i.apply(this,arguments),e[1],e[2])}),n&&(yf[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function Qse(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function Jse(t){var e=t.match(B7),n,r;for(n=0,r=e.length;n<r;n++)yf[e[n]]?e[n]=yf[e[n]]:e[n]=Qse(e[n]);return function(i){var a="",s;for(s=0;s<r;s++)a+=lu(e[s])?e[s].call(i,t):e[s];return a}}function B3(t,e){return t.isValid()?(e=BN(e,t.localeData()),V7[e]=V7[e]||Jse(e),V7[e](t)):t.localeData().invalidDate()}function BN(t,e){var n=5;function r(i){return e.longDateFormat(i)||i}for(L3.lastIndex=0;n>=0&&L3.test(t);)t=t.replace(L3,r),L3.lastIndex=0,n-=1;return t}var Zse={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function eoe(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(B7).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[t])}var toe="Invalid date";function noe(){return this._invalidDate}var roe="%d",ioe=/\d{1,2}/;function aoe(t){return this._ordinal.replace("%d",t)}var soe={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ooe(t,e,n,r){var i=this._relativeTime[n];return lu(i)?i(t,e,n,r):i.replace(/%d/i,t)}function loe(t,e){var n=this._relativeTime[t>0?"future":"past"];return lu(n)?n(e):n.replace(/%s/i,e)}var VN={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Hl(t){return typeof t=="string"?VN[t]||VN[t.toLowerCase()]:void 0}function q7(t){var e={},n,r;for(r in t)Vi(t,r)&&(n=Hl(r),n&&(e[n]=t[r]));return e}var coe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function uoe(t){var e=[],n;for(n in t)Vi(t,n)&&e.push({unit:n,priority:coe[n]});return e.sort(function(r,i){return r.priority-i.priority}),e}var qN=/\d/,vl=/\d\d/,UN=/\d{3}/,U7=/\d{4}/,V3=/[+-]?\d{6}/,La=/\d\d?/,$N=/\d\d\d\d?/,jN=/\d\d\d\d\d\d?/,q3=/\d{1,3}/,$7=/\d{1,4}/,U3=/[+-]?\d{1,6}/,Af=/\d+/,$3=/[+-]?\d+/,doe=/Z|[+-]\d\d:?\d\d/gi,j3=/Z|[+-]\d\d(?::?\d\d)?/gi,foe=/[+-]?\d+(\.\d{1,3})?/,a2=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,wf=/^[1-9]\d?/,j7=/^([1-9]\d|\d)/,z3;z3={};function Qn(t,e,n){z3[t]=lu(e)?e:function(r,i){return r&&n?n:e}}function hoe(t,e){return Vi(z3,t)?z3[t](e._strict,e._locale):new RegExp(poe(t))}function poe(t){return td(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,n,r,i,a){return n||r||i||a}))}function td(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Yl(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function Ai(t){var e=+t,n=0;return e!==0&&isFinite(e)&&(n=Yl(e)),n}var z7={};function ua(t,e){var n,r=e,i;for(typeof t=="string"&&(t=[t]),ed(e)&&(r=function(a,s){s[e]=Ai(a)}),i=t.length,n=0;n<i;n++)z7[t[n]]=r}function s2(t,e){ua(t,function(n,r,i,a){i._w=i._w||{},e(n,i._w,i,a)})}function goe(t,e,n){e!=null&&Vi(z7,t)&&z7[t](e,n._a,n,t)}function H3(t){return t%4===0&&t%100!==0||t%400===0}var oo=0,nd=1,uu=2,xs=3,Ic=4,rd=5,t1=6,moe=7,voe=8;mr("Y",0,0,function(){var t=this.year();return t<=9999?cu(t,4):"+"+t}),mr(0,["YY",2],0,function(){return this.year()%100}),mr(0,["YYYY",4],0,"year"),mr(0,["YYYYY",5],0,"year"),mr(0,["YYYYYY",6,!0],0,"year"),Qn("Y",$3),Qn("YY",La,vl),Qn("YYYY",$7,U7),Qn("YYYYY",U3,V3),Qn("YYYYYY",U3,V3),ua(["YYYYY","YYYYYY"],oo),ua("YYYY",function(t,e){e[oo]=t.length===2?Mn.parseTwoDigitYear(t):Ai(t)}),ua("YY",function(t,e){e[oo]=Mn.parseTwoDigitYear(t)}),ua("Y",function(t,e){e[oo]=parseInt(t,10)});function o2(t){return H3(t)?366:365}Mn.parseTwoDigitYear=function(t){return Ai(t)+(Ai(t)>68?1900:2e3)};var zN=Sf("FullYear",!0);function boe(){return H3(this.year())}function Sf(t,e){return function(n){return n!=null?(HN(this,t,n),Mn.updateOffset(this,e),this):l2(this,t)}}function l2(t,e){if(!t.isValid())return NaN;var n=t._d,r=t._isUTC;switch(e){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function HN(t,e,n){var r,i,a,s,l;if(!(!t.isValid()||isNaN(n))){switch(r=t._d,i=t._isUTC,e){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,s=t.month(),l=t.date(),l=l===29&&s===1&&!H3(a)?28:l,i?r.setUTCFullYear(a,s,l):r.setFullYear(a,s,l)}}function yoe(t){return t=Hl(t),lu(this[t])?this[t]():this}function Aoe(t,e){if(typeof t=="object"){t=q7(t);var n=uoe(t),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](t[n[r].unit])}else if(t=Hl(t),lu(this[t]))return this[t](e);return this}function woe(t,e){return(t%e+e)%e}var os;Array.prototype.indexOf?os=Array.prototype.indexOf:os=function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1};function H7(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=woe(e,12);return t+=(e-n)/12,n===1?H3(t)?29:28:31-n%7%2}mr("M",["MM",2],"Mo",function(){return this.month()+1}),mr("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),mr("MMMM",0,0,function(t){return this.localeData().months(this,t)}),Qn("M",La,wf),Qn("MM",La,vl),Qn("MMM",function(t,e){return e.monthsShortRegex(t)}),Qn("MMMM",function(t,e){return e.monthsRegex(t)}),ua(["M","MM"],function(t,e){e[nd]=Ai(t)-1}),ua(["MMM","MMMM"],function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);i!=null?e[nd]=i:Qr(n).invalidMonth=t});var Soe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),YN="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),KN=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Coe=a2,xoe=a2;function Toe(t,e){return t?Tc(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||KN).test(e)?"format":"standalone"][t.month()]:Tc(this._months)?this._months:this._months.standalone}function Eoe(t,e){return t?Tc(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[KN.test(e)?"format":"standalone"][t.month()]:Tc(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Ioe(t,e,n){var r,i,a,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=ou([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?e==="MMM"?(i=os.call(this._shortMonthsParse,s),i!==-1?i:null):(i=os.call(this._longMonthsParse,s),i!==-1?i:null):e==="MMM"?(i=os.call(this._shortMonthsParse,s),i!==-1?i:(i=os.call(this._longMonthsParse,s),i!==-1?i:null)):(i=os.call(this._longMonthsParse,s),i!==-1?i:(i=os.call(this._shortMonthsParse,s),i!==-1?i:null))}function _oe(t,e,n){var r,i,a;if(this._monthsParseExact)return Ioe.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=ou([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&e==="MMMM"&&this._longMonthsParse[r].test(t))return r;if(n&&e==="MMM"&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}function XN(t,e){if(!t.isValid())return t;if(typeof e=="string"){if(/^\d+$/.test(e))e=Ai(e);else if(e=t.localeData().monthsParse(e),!ed(e))return t}var n=e,r=t.date();return r=r<29?r:Math.min(r,H7(t.year(),n)),t._isUTC?t._d.setUTCMonth(n,r):t._d.setMonth(n,r),t}function RN(t){return t!=null?(XN(this,t),Mn.updateOffset(this,!0),this):l2(this,"Month")}function Doe(){return H7(this.year(),this.month())}function Noe(t){return this._monthsParseExact?(Vi(this,"_monthsRegex")||GN.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(Vi(this,"_monthsShortRegex")||(this._monthsShortRegex=Coe),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function Ooe(t){return this._monthsParseExact?(Vi(this,"_monthsRegex")||GN.call(this),t?this._monthsStrictRegex:this._monthsRegex):(Vi(this,"_monthsRegex")||(this._monthsRegex=xoe),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function GN(){function t(c,u){return u.length-c.length}var e=[],n=[],r=[],i,a,s,l;for(i=0;i<12;i++)a=ou([2e3,i]),s=td(this.monthsShort(a,"")),l=td(this.months(a,"")),e.push(s),n.push(l),r.push(l),r.push(s);e.sort(t),n.sort(t),r.sort(t),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Foe(t,e,n,r,i,a,s){var l;return t<100&&t>=0?(l=new Date(t+400,e,n,r,i,a,s),isFinite(l.getFullYear())&&l.setFullYear(t)):l=new Date(t,e,n,r,i,a,s),l}function c2(t){var e,n;return t<100&&t>=0?(n=Array.prototype.slice.call(arguments),n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Y3(t,e,n){var r=7+e-n,i=(7+c2(t,0,r).getUTCDay()-e)%7;return-i+r-1}function WN(t,e,n,r,i){var a=(7+n-r)%7,s=Y3(t,r,i),l=1+7*(e-1)+a+s,c,u;return l<=0?(c=t-1,u=o2(c)+l):l>o2(t)?(c=t+1,u=l-o2(t)):(c=t,u=l),{year:c,dayOfYear:u}}function u2(t,e,n){var r=Y3(t.year(),e,n),i=Math.floor((t.dayOfYear()-r-1)/7)+1,a,s;return i<1?(s=t.year()-1,a=i+id(s,e,n)):i>id(t.year(),e,n)?(a=i-id(t.year(),e,n),s=t.year()+1):(s=t.year(),a=i),{week:a,year:s}}function id(t,e,n){var r=Y3(t,e,n),i=Y3(t+1,e,n);return(o2(t)-r+i)/7}mr("w",["ww",2],"wo","week"),mr("W",["WW",2],"Wo","isoWeek"),Qn("w",La,wf),Qn("ww",La,vl),Qn("W",La,wf),Qn("WW",La,vl),s2(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=Ai(t)});function koe(t){return u2(t,this._week.dow,this._week.doy).week}var Poe={dow:0,doy:6};function Moe(){return this._week.dow}function Loe(){return this._week.doy}function Boe(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function Voe(t){var e=u2(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}mr("d",0,"do","day"),mr("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),mr("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),mr("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),mr("e",0,0,"weekday"),mr("E",0,0,"isoWeekday"),Qn("d",La),Qn("e",La),Qn("E",La),Qn("dd",function(t,e){return e.weekdaysMinRegex(t)}),Qn("ddd",function(t,e){return e.weekdaysShortRegex(t)}),Qn("dddd",function(t,e){return e.weekdaysRegex(t)}),s2(["dd","ddd","dddd"],function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);i!=null?e.d=i:Qr(n).invalidWeekday=t}),s2(["d","e","E"],function(t,e,n,r){e[r]=Ai(t)});function qoe(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function Uoe(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Y7(t,e){return t.slice(e,7).concat(t.slice(0,e))}var $oe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),QN="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),joe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),zoe=a2,Hoe=a2,Yoe=a2;function Koe(t,e){var n=Tc(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?Y7(n,this._week.dow):t?n[t.day()]:n}function Xoe(t){return t===!0?Y7(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Roe(t){return t===!0?Y7(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Goe(t,e,n){var r,i,a,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=ou([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?e==="dddd"?(i=os.call(this._weekdaysParse,s),i!==-1?i:null):e==="ddd"?(i=os.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=os.call(this._minWeekdaysParse,s),i!==-1?i:null):e==="dddd"?(i=os.call(this._weekdaysParse,s),i!==-1||(i=os.call(this._shortWeekdaysParse,s),i!==-1)?i:(i=os.call(this._minWeekdaysParse,s),i!==-1?i:null)):e==="ddd"?(i=os.call(this._shortWeekdaysParse,s),i!==-1||(i=os.call(this._weekdaysParse,s),i!==-1)?i:(i=os.call(this._minWeekdaysParse,s),i!==-1?i:null)):(i=os.call(this._minWeekdaysParse,s),i!==-1||(i=os.call(this._weekdaysParse,s),i!==-1)?i:(i=os.call(this._shortWeekdaysParse,s),i!==-1?i:null))}function Woe(t,e,n){var r,i,a;if(this._weekdaysParseExact)return Goe.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=ou([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&e==="dddd"&&this._fullWeekdaysParse[r].test(t))return r;if(n&&e==="ddd"&&this._shortWeekdaysParse[r].test(t))return r;if(n&&e==="dd"&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function Qoe(t){if(!this.isValid())return t!=null?this:NaN;var e=l2(this,"Day");return t!=null?(t=qoe(t,this.localeData()),this.add(t-e,"d")):e}function Joe(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function Zoe(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=Uoe(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function ele(t){return this._weekdaysParseExact?(Vi(this,"_weekdaysRegex")||K7.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(Vi(this,"_weekdaysRegex")||(this._weekdaysRegex=zoe),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function tle(t){return this._weekdaysParseExact?(Vi(this,"_weekdaysRegex")||K7.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Vi(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Hoe),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function nle(t){return this._weekdaysParseExact?(Vi(this,"_weekdaysRegex")||K7.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Vi(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Yoe),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function K7(){function t(d,f){return f.length-d.length}var e=[],n=[],r=[],i=[],a,s,l,c,u;for(a=0;a<7;a++)s=ou([2e3,1]).day(a),l=td(this.weekdaysMin(s,"")),c=td(this.weekdaysShort(s,"")),u=td(this.weekdays(s,"")),e.push(l),n.push(c),r.push(u),i.push(l),i.push(c),i.push(u);e.sort(t),n.sort(t),r.sort(t),i.sort(t),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function X7(){return this.hours()%12||12}function rle(){return this.hours()||24}mr("H",["HH",2],0,"hour"),mr("h",["hh",2],0,X7),mr("k",["kk",2],0,rle),mr("hmm",0,0,function(){return""+X7.apply(this)+cu(this.minutes(),2)}),mr("hmmss",0,0,function(){return""+X7.apply(this)+cu(this.minutes(),2)+cu(this.seconds(),2)}),mr("Hmm",0,0,function(){return""+this.hours()+cu(this.minutes(),2)}),mr("Hmmss",0,0,function(){return""+this.hours()+cu(this.minutes(),2)+cu(this.seconds(),2)});function JN(t,e){mr(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}JN("a",!0),JN("A",!1);function ZN(t,e){return e._meridiemParse}Qn("a",ZN),Qn("A",ZN),Qn("H",La,j7),Qn("h",La,wf),Qn("k",La,wf),Qn("HH",La,vl),Qn("hh",La,vl),Qn("kk",La,vl),Qn("hmm",$N),Qn("hmmss",jN),Qn("Hmm",$N),Qn("Hmmss",jN),ua(["H","HH"],xs),ua(["k","kk"],function(t,e,n){var r=Ai(t);e[xs]=r===24?0:r}),ua(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),ua(["h","hh"],function(t,e,n){e[xs]=Ai(t),Qr(n).bigHour=!0}),ua("hmm",function(t,e,n){var r=t.length-2;e[xs]=Ai(t.substr(0,r)),e[Ic]=Ai(t.substr(r)),Qr(n).bigHour=!0}),ua("hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[xs]=Ai(t.substr(0,r)),e[Ic]=Ai(t.substr(r,2)),e[rd]=Ai(t.substr(i)),Qr(n).bigHour=!0}),ua("Hmm",function(t,e,n){var r=t.length-2;e[xs]=Ai(t.substr(0,r)),e[Ic]=Ai(t.substr(r))}),ua("Hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[xs]=Ai(t.substr(0,r)),e[Ic]=Ai(t.substr(r,2)),e[rd]=Ai(t.substr(i))});function ile(t){return(t+"").toLowerCase().charAt(0)==="p"}var ale=/[ap]\.?m?\.?/i,sle=Sf("Hours",!0);function ole(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var eO={calendar:Gse,longDateFormat:Zse,invalidDate:toe,ordinal:roe,dayOfMonthOrdinalParse:ioe,relativeTime:soe,months:Soe,monthsShort:YN,week:Poe,weekdays:$oe,weekdaysMin:joe,weekdaysShort:QN,meridiemParse:ale},za={},d2={},f2;function lle(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n+=1)if(t[n]!==e[n])return n;return r}function tO(t){return t&&t.toLowerCase().replace("_","-")}function cle(t){for(var e=0,n,r,i,a;e<t.length;){for(a=tO(t[e]).split("-"),n=a.length,r=tO(t[e+1]),r=r?r.split("-"):null;n>0;){if(i=K3(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&lle(a,r)>=n-1)break;n--}e++}return f2}function ule(t){return!!(t&&t.match("^[^/\\\\]*$"))}function K3(t){var e=null,n;if(za[t]===void 0&&typeof module<"u"&&module&&module.exports&&ule(t))try{e=f2._abbr,n=require,n("./locale/"+t),Jd(e)}catch{za[t]=null}return za[t]}function Jd(t,e){var n;return t&&(Wo(e)?n=ad(t):n=R7(t,e),n?f2=n:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),f2._abbr}function R7(t,e){if(e!==null){var n,r=eO;if(e.abbr=t,za[t]!=null)LN("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=za[t]._config;else if(e.parentLocale!=null)if(za[e.parentLocale]!=null)r=za[e.parentLocale]._config;else if(n=K3(e.parentLocale),n!=null)r=n._config;else return d2[e.parentLocale]||(d2[e.parentLocale]=[]),d2[e.parentLocale].push({name:t,config:e}),null;return za[t]=new M7(P7(r,e)),d2[t]&&d2[t].forEach(function(i){R7(i.name,i.config)}),Jd(t),za[t]}else return delete za[t],null}function dle(t,e){if(e!=null){var n,r,i=eO;za[t]!=null&&za[t].parentLocale!=null?za[t].set(P7(za[t]._config,e)):(r=K3(t),r!=null&&(i=r._config),e=P7(i,e),r==null&&(e.abbr=t),n=new M7(e),n.parentLocale=za[t],za[t]=n),Jd(t)}else za[t]!=null&&(za[t].parentLocale!=null?(za[t]=za[t].parentLocale,t===Jd()&&Jd(t)):za[t]!=null&&delete za[t]);return za[t]}function ad(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return f2;if(!Tc(t)){if(e=K3(t),e)return e;t=[t]}return cle(t)}function fle(){return L7(za)}function G7(t){var e,n=t._a;return n&&Qr(t).overflow===-2&&(e=n[nd]<0||n[nd]>11?nd:n[uu]<1||n[uu]>H7(n[oo],n[nd])?uu:n[xs]<0||n[xs]>24||n[xs]===24&&(n[Ic]!==0||n[rd]!==0||n[t1]!==0)?xs:n[Ic]<0||n[Ic]>59?Ic:n[rd]<0||n[rd]>59?rd:n[t1]<0||n[t1]>999?t1:-1,Qr(t)._overflowDayOfYear&&(e<oo||e>uu)&&(e=uu),Qr(t)._overflowWeeks&&e===-1&&(e=moe),Qr(t)._overflowWeekday&&e===-1&&(e=voe),Qr(t).overflow=e),t}var hle=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ple=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gle=/Z|[+-]\d\d(?::?\d\d)?/,X3=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],W7=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],mle=/^\/?Date\((-?\d+)/i,vle=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ble={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function nO(t){var e,n,r=t._i,i=hle.exec(r)||ple.exec(r),a,s,l,c,u=X3.length,d=W7.length;if(i){for(Qr(t).iso=!0,e=0,n=u;e<n;e++)if(X3[e][1].exec(i[1])){s=X3[e][0],a=X3[e][2]!==!1;break}if(s==null){t._isValid=!1;return}if(i[3]){for(e=0,n=d;e<n;e++)if(W7[e][1].exec(i[3])){l=(i[2]||" ")+W7[e][0];break}if(l==null){t._isValid=!1;return}}if(!a&&l!=null){t._isValid=!1;return}if(i[4])if(gle.exec(i[4]))c="Z";else{t._isValid=!1;return}t._f=s+(l||"")+(c||""),J7(t)}else t._isValid=!1}function yle(t,e,n,r,i,a){var s=[Ale(t),YN.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&s.push(parseInt(a,10)),s}function Ale(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function wle(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Sle(t,e,n){if(t){var r=QN.indexOf(t),i=new Date(e[0],e[1],e[2]).getDay();if(r!==i)return Qr(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Cle(t,e,n){if(t)return ble[t];if(e)return 0;var r=parseInt(n,10),i=r%100,a=(r-i)/100;return a*60+i}function rO(t){var e=vle.exec(wle(t._i)),n;if(e){if(n=yle(e[4],e[3],e[2],e[5],e[6],e[7]),!Sle(e[1],n,t))return;t._a=n,t._tzm=Cle(e[8],e[9],e[10]),t._d=c2.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),Qr(t).rfc2822=!0}else t._isValid=!1}function xle(t){var e=mle.exec(t._i);if(e!==null){t._d=new Date(+e[1]);return}if(nO(t),t._isValid===!1)delete t._isValid;else return;if(rO(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:Mn.createFromInputFallback(t)}Mn.createFromInputFallback=zl("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))});function Cf(t,e,n){return t??e??n}function Tle(t){var e=new Date(Mn.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Q7(t){var e,n,r=[],i,a,s;if(!t._d){for(i=Tle(t),t._w&&t._a[uu]==null&&t._a[nd]==null&&Ele(t),t._dayOfYear!=null&&(s=Cf(t._a[oo],i[oo]),(t._dayOfYear>o2(s)||t._dayOfYear===0)&&(Qr(t)._overflowDayOfYear=!0),n=c2(s,0,t._dayOfYear),t._a[nd]=n.getUTCMonth(),t._a[uu]=n.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=r[e]=i[e];for(;e<7;e++)t._a[e]=r[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[xs]===24&&t._a[Ic]===0&&t._a[rd]===0&&t._a[t1]===0&&(t._nextDay=!0,t._a[xs]=0),t._d=(t._useUTC?c2:Foe).apply(null,r),a=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[xs]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==a&&(Qr(t).weekdayMismatch=!0)}}function Ele(t){var e,n,r,i,a,s,l,c,u;e=t._w,e.GG!=null||e.W!=null||e.E!=null?(a=1,s=4,n=Cf(e.GG,t._a[oo],u2(Ba(),1,4).year),r=Cf(e.W,1),i=Cf(e.E,1),(i<1||i>7)&&(c=!0)):(a=t._locale._week.dow,s=t._locale._week.doy,u=u2(Ba(),a,s),n=Cf(e.gg,t._a[oo],u.year),r=Cf(e.w,u.week),e.d!=null?(i=e.d,(i<0||i>6)&&(c=!0)):e.e!=null?(i=e.e+a,(e.e<0||e.e>6)&&(c=!0)):i=a),r<1||r>id(n,a,s)?Qr(t)._overflowWeeks=!0:c!=null?Qr(t)._overflowWeekday=!0:(l=WN(n,r,i,a,s),t._a[oo]=l.year,t._dayOfYear=l.dayOfYear)}Mn.ISO_8601=function(){},Mn.RFC_2822=function(){};function J7(t){if(t._f===Mn.ISO_8601){nO(t);return}if(t._f===Mn.RFC_2822){rO(t);return}t._a=[],Qr(t).empty=!0;var e=""+t._i,n,r,i,a,s,l=e.length,c=0,u,d;for(i=BN(t._f,t._locale).match(B7)||[],d=i.length,n=0;n<d;n++)a=i[n],r=(e.match(hoe(a,t))||[])[0],r&&(s=e.substr(0,e.indexOf(r)),s.length>0&&Qr(t).unusedInput.push(s),e=e.slice(e.indexOf(r)+r.length),c+=r.length),yf[a]?(r?Qr(t).empty=!1:Qr(t).unusedTokens.push(a),goe(a,r,t)):t._strict&&!r&&Qr(t).unusedTokens.push(a);Qr(t).charsLeftOver=l-c,e.length>0&&Qr(t).unusedInput.push(e),t._a[xs]<=12&&Qr(t).bigHour===!0&&t._a[xs]>0&&(Qr(t).bigHour=void 0),Qr(t).parsedDateParts=t._a.slice(0),Qr(t).meridiem=t._meridiem,t._a[xs]=Ile(t._locale,t._a[xs],t._meridiem),u=Qr(t).era,u!==null&&(t._a[oo]=t._locale.erasConvertYear(u,t._a[oo])),Q7(t),G7(t)}function Ile(t,e,n){var r;return n==null?e:t.meridiemHour!=null?t.meridiemHour(e,n):(t.isPM!=null&&(r=t.isPM(n),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function _le(t){var e,n,r,i,a,s,l=!1,c=t._f.length;if(c===0){Qr(t).invalidFormat=!0,t._d=new Date(NaN);return}for(i=0;i<c;i++)a=0,s=!1,e=k7({},t),t._useUTC!=null&&(e._useUTC=t._useUTC),e._f=t._f[i],J7(e),O7(e)&&(s=!0),a+=Qr(e).charsLeftOver,a+=Qr(e).unusedTokens.length*10,Qr(e).score=a,l?a<r&&(r=a,n=e):(r==null||a<r||s)&&(r=a,n=e,s&&(l=!0));Qd(t,n||e)}function Dle(t){if(!t._d){var e=q7(t._i),n=e.day===void 0?e.date:e.day;t._a=FN([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],function(r){return r&&parseInt(r,10)}),Q7(t)}}function Nle(t){var e=new i2(G7(iO(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function iO(t){var e=t._i,n=t._f;return t._locale=t._locale||ad(t._l),e===null||n===void 0&&e===""?M3({nullInput:!0}):(typeof e=="string"&&(t._i=e=t._locale.preparse(e)),Ec(e)?new i2(G7(e)):(r2(e)?t._d=e:Tc(n)?_le(t):n?J7(t):Ole(t),O7(t)||(t._d=null),t))}function Ole(t){var e=t._i;Wo(e)?t._d=new Date(Mn.now()):r2(e)?t._d=new Date(e.valueOf()):typeof e=="string"?xle(t):Tc(e)?(t._a=FN(e.slice(0),function(n){return parseInt(n,10)}),Q7(t)):e1(e)?Dle(t):ed(e)?t._d=new Date(e):Mn.createFromInputFallback(t)}function aO(t,e,n,r,i){var a={};return(e===!0||e===!1)&&(r=e,e=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(e1(t)&&D7(t)||Tc(t)&&t.length===0)&&(t=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=t,a._f=e,a._strict=r,Nle(a)}function Ba(t,e,n,r){return aO(t,e,n,r,!1)}var Fle=zl("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ba.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:M3()}),kle=zl("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ba.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:M3()});function sO(t,e){var n,r;if(e.length===1&&Tc(e[0])&&(e=e[0]),!e.length)return Ba();for(n=e[0],r=1;r<e.length;++r)(!e[r].isValid()||e[r][t](n))&&(n=e[r]);return n}function Ple(){var t=[].slice.call(arguments,0);return sO("isBefore",t)}function Mle(){var t=[].slice.call(arguments,0);return sO("isAfter",t)}var Lle=function(){return Date.now?Date.now():+new Date},h2=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ble(t){var e,n=!1,r,i=h2.length;for(e in t)if(Vi(t,e)&&!(os.call(h2,e)!==-1&&(t[e]==null||!isNaN(t[e]))))return!1;for(r=0;r<i;++r)if(t[h2[r]]){if(n)return!1;parseFloat(t[h2[r]])!==Ai(t[h2[r]])&&(n=!0)}return!0}function Vle(){return this._isValid}function qle(){return _c(NaN)}function R3(t){var e=q7(t),n=e.year||0,r=e.quarter||0,i=e.month||0,a=e.week||e.isoWeek||0,s=e.day||0,l=e.hour||0,c=e.minute||0,u=e.second||0,d=e.millisecond||0;this._isValid=Ble(e),this._milliseconds=+d+u*1e3+c*6e4+l*1e3*60*60,this._days=+s+a*7,this._months=+i+r*3+n*12,this._data={},this._locale=ad(),this._bubble()}function G3(t){return t instanceof R3}function Z7(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function Ule(t,e,n){var r=Math.min(t.length,e.length),i=Math.abs(t.length-e.length),a=0,s;for(s=0;s<r;s++)Ai(t[s])!==Ai(e[s])&&a++;return a+i}function oO(t,e){mr(t,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+cu(~~(n/60),2)+e+cu(~~n%60,2)})}oO("Z",":"),oO("ZZ",""),Qn("Z",j3),Qn("ZZ",j3),ua(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=eb(j3,t)});var $le=/([\+\-]|\d\d)/gi;function eb(t,e){var n=(e||"").match(t),r,i,a;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match($le)||["-",0,0],a=+(i[1]*60)+Ai(i[2]),a===0?0:i[0]==="+"?a:-a)}function tb(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(Ec(t)||r2(t)?t.valueOf():Ba(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),Mn.updateOffset(n,!1),n):Ba(t).local()}function nb(t){return-Math.round(t._d.getTimezoneOffset())}Mn.updateOffset=function(){};function jle(t,e,n){var r=this._offset||0,i;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=eb(j3,t),t===null)return this}else Math.abs(t)<16&&!n&&(t=t*60);return!this._isUTC&&e&&(i=nb(this)),this._offset=t,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==t&&(!e||this._changeInProgress?dO(this,_c(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Mn.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:nb(this)}function zle(t,e){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function Hle(t){return this.utcOffset(0,t)}function Yle(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(nb(this),"m")),this}function Kle(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=eb(doe,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function Xle(t){return this.isValid()?(t=t?Ba(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function Rle(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Gle(){if(!Wo(this._isDSTShifted))return this._isDSTShifted;var t={},e;return k7(t,this),t=iO(t),t._a?(e=t._isUTC?ou(t._a):Ba(t._a),this._isDSTShifted=this.isValid()&&Ule(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Wle(){return this.isValid()?!this._isUTC:!1}function Qle(){return this.isValid()?this._isUTC:!1}function lO(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Jle=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Zle=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function _c(t,e){var n=t,r=null,i,a,s;return G3(t)?n={ms:t._milliseconds,d:t._days,M:t._months}:ed(t)||!isNaN(+t)?(n={},e?n[e]=+t:n.milliseconds=+t):(r=Jle.exec(t))?(i=r[1]==="-"?-1:1,n={y:0,d:Ai(r[uu])*i,h:Ai(r[xs])*i,m:Ai(r[Ic])*i,s:Ai(r[rd])*i,ms:Ai(Z7(r[t1]*1e3))*i}):(r=Zle.exec(t))?(i=r[1]==="-"?-1:1,n={y:n1(r[2],i),M:n1(r[3],i),w:n1(r[4],i),d:n1(r[5],i),h:n1(r[6],i),m:n1(r[7],i),s:n1(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=ece(Ba(n.from),Ba(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),a=new R3(n),G3(t)&&Vi(t,"_locale")&&(a._locale=t._locale),G3(t)&&Vi(t,"_isValid")&&(a._isValid=t._isValid),a}_c.fn=R3.prototype,_c.invalid=qle;function n1(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function cO(t,e){var n={};return n.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function ece(t,e){var n;return t.isValid()&&e.isValid()?(e=tb(e,t),t.isBefore(e)?n=cO(t,e):(n=cO(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function uO(t,e){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(LN(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),i=_c(n,r),dO(this,i,t),this}}function dO(t,e,n,r){var i=e._milliseconds,a=Z7(e._days),s=Z7(e._months);t.isValid()&&(r=r??!0,s&&XN(t,l2(t,"Month")+s*n),a&&HN(t,"Date",l2(t,"Date")+a*n),i&&t._d.setTime(t._d.valueOf()+i*n),r&&Mn.updateOffset(t,a||s))}var tce=uO(1,"add"),nce=uO(-1,"subtract");function fO(t){return typeof t=="string"||t instanceof String}function rce(t){return Ec(t)||r2(t)||fO(t)||ed(t)||ace(t)||ice(t)||t===null||t===void 0}function ice(t){var e=e1(t)&&!D7(t),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,a,s=r.length;for(i=0;i<s;i+=1)a=r[i],n=n||Vi(t,a);return e&&n}function ace(t){var e=Tc(t),n=!1;return e&&(n=t.filter(function(r){return!ed(r)&&fO(t)}).length===0),e&&n}function sce(t){var e=e1(t)&&!D7(t),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,a;for(i=0;i<r.length;i+=1)a=r[i],n=n||Vi(t,a);return e&&n}function oce(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function lce(t,e){arguments.length===1&&(arguments[0]?rce(arguments[0])?(t=arguments[0],e=void 0):sce(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Ba(),r=tb(n,this).startOf("day"),i=Mn.calendarFormat(this,r)||"sameElse",a=e&&(lu(e[i])?e[i].call(this,n):e[i]);return this.format(a||this.localeData().calendar(i,this,Ba(n)))}function cce(){return new i2(this)}function uce(t,e){var n=Ec(t)?t:Ba(t);return this.isValid()&&n.isValid()?(e=Hl(e)||"millisecond",e==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf()):!1}function dce(t,e){var n=Ec(t)?t:Ba(t);return this.isValid()&&n.isValid()?(e=Hl(e)||"millisecond",e==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf()):!1}function fce(t,e,n,r){var i=Ec(t)?t:Ba(t),a=Ec(e)?e:Ba(e);return this.isValid()&&i.isValid()&&a.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(a,n):!this.isAfter(a,n))):!1}function hce(t,e){var n=Ec(t)?t:Ba(t),r;return this.isValid()&&n.isValid()?(e=Hl(e)||"millisecond",e==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(e).valueOf()<=r&&r<=this.clone().endOf(e).valueOf())):!1}function pce(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function gce(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function mce(t,e,n){var r,i,a;if(!this.isValid())return NaN;if(r=tb(t,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,e=Hl(e),e){case"year":a=W3(this,r)/12;break;case"month":a=W3(this,r);break;case"quarter":a=W3(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:Yl(a)}function W3(t,e){if(t.date()<e.date())return-W3(e,t);var n=(e.year()-t.year())*12+(e.month()-t.month()),r=t.clone().add(n,"months"),i,a;return e-r<0?(i=t.clone().add(n-1,"months"),a=(e-r)/(r-i)):(i=t.clone().add(n+1,"months"),a=(e-r)/(i-r)),-(n+a)||0}Mn.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",Mn.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function vce(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function bce(t){if(!this.isValid())return null;var e=t!==!0,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?B3(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):lu(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",B3(n,"Z")):B3(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function yce(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",n,r,i,a;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",a=e+'[")]',this.format(n+r+i+a)}function Ace(t){t||(t=this.isUtc()?Mn.defaultFormatUtc:Mn.defaultFormat);var e=B3(this,t);return this.localeData().postformat(e)}function wce(t,e){return this.isValid()&&(Ec(t)&&t.isValid()||Ba(t).isValid())?_c({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Sce(t){return this.from(Ba(),t)}function Cce(t,e){return this.isValid()&&(Ec(t)&&t.isValid()||Ba(t).isValid())?_c({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function xce(t){return this.to(Ba(),t)}function hO(t){var e;return t===void 0?this._locale._abbr:(e=ad(t),e!=null&&(this._locale=e),this)}var pO=zl("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function gO(){return this._locale}var Q3=1e3,xf=60*Q3,J3=60*xf,mO=(365*400+97)*24*J3;function Tf(t,e){return(t%e+e)%e}function vO(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-mO:new Date(t,e,n).valueOf()}function bO(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-mO:Date.UTC(t,e,n)}function Tce(t){var e,n;if(t=Hl(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?bO:vO,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Tf(e+(this._isUTC?0:this.utcOffset()*xf),J3);break;case"minute":e=this._d.valueOf(),e-=Tf(e,xf);break;case"second":e=this._d.valueOf(),e-=Tf(e,Q3);break}return this._d.setTime(e),Mn.updateOffset(this,!0),this}function Ece(t){var e,n;if(t=Hl(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?bO:vO,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=J3-Tf(e+(this._isUTC?0:this.utcOffset()*xf),J3)-1;break;case"minute":e=this._d.valueOf(),e+=xf-Tf(e,xf)-1;break;case"second":e=this._d.valueOf(),e+=Q3-Tf(e,Q3)-1;break}return this._d.setTime(e),Mn.updateOffset(this,!0),this}function Ice(){return this._d.valueOf()-(this._offset||0)*6e4}function _ce(){return Math.floor(this.valueOf()/1e3)}function Dce(){return new Date(this.valueOf())}function Nce(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Oce(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Fce(){return this.isValid()?this.toISOString():null}function kce(){return O7(this)}function Pce(){return Qd({},Qr(this))}function Mce(){return Qr(this).overflow}function Lce(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}mr("N",0,0,"eraAbbr"),mr("NN",0,0,"eraAbbr"),mr("NNN",0,0,"eraAbbr"),mr("NNNN",0,0,"eraName"),mr("NNNNN",0,0,"eraNarrow"),mr("y",["y",1],"yo","eraYear"),mr("y",["yy",2],0,"eraYear"),mr("y",["yyy",3],0,"eraYear"),mr("y",["yyyy",4],0,"eraYear"),Qn("N",rb),Qn("NN",rb),Qn("NNN",rb),Qn("NNNN",Xce),Qn("NNNNN",Rce),ua(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,r){var i=n._locale.erasParse(t,r,n._strict);i?Qr(n).era=i:Qr(n).invalidEra=t}),Qn("y",Af),Qn("yy",Af),Qn("yyy",Af),Qn("yyyy",Af),Qn("yo",Gce),ua(["y","yy","yyy","yyyy"],oo),ua(["yo"],function(t,e,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[oo]=n._locale.eraYearOrdinalParse(t,i):e[oo]=parseInt(t,10)});function Bce(t,e){var n,r,i,a=this._eras||ad("en")._eras;for(n=0,r=a.length;n<r;++n){switch(typeof a[n].since){case"string":i=Mn(a[n].since).startOf("day"),a[n].since=i.valueOf();break}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":i=Mn(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf();break}}return a}function Vce(t,e,n){var r,i,a=this.eras(),s,l,c;for(t=t.toUpperCase(),r=0,i=a.length;r<i;++r)if(s=a[r].name.toUpperCase(),l=a[r].abbr.toUpperCase(),c=a[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(l===t)return a[r];break;case"NNNN":if(s===t)return a[r];break;case"NNNNN":if(c===t)return a[r];break}else if([s,l,c].indexOf(t)>=0)return a[r]}function qce(t,e){var n=t.since<=t.until?1:-1;return e===void 0?Mn(t.since).year():Mn(t.since).year()+(e-t.offset)*n}function Uce(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].name;return""}function $ce(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].narrow;return""}function jce(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].abbr;return""}function zce(){var t,e,n,r,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t)if(n=i[t].since<=i[t].until?1:-1,r=this.clone().startOf("day").valueOf(),i[t].since<=r&&r<=i[t].until||i[t].until<=r&&r<=i[t].since)return(this.year()-Mn(i[t].since).year())*n+i[t].offset;return this.year()}function Hce(t){return Vi(this,"_erasNameRegex")||ib.call(this),t?this._erasNameRegex:this._erasRegex}function Yce(t){return Vi(this,"_erasAbbrRegex")||ib.call(this),t?this._erasAbbrRegex:this._erasRegex}function Kce(t){return Vi(this,"_erasNarrowRegex")||ib.call(this),t?this._erasNarrowRegex:this._erasRegex}function rb(t,e){return e.erasAbbrRegex(t)}function Xce(t,e){return e.erasNameRegex(t)}function Rce(t,e){return e.erasNarrowRegex(t)}function Gce(t,e){return e._eraYearOrdinalRegex||Af}function ib(){var t=[],e=[],n=[],r=[],i,a,s,l,c,u=this.eras();for(i=0,a=u.length;i<a;++i)s=td(u[i].name),l=td(u[i].abbr),c=td(u[i].narrow),e.push(s),t.push(l),n.push(c),r.push(s),r.push(l),r.push(c);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}mr(0,["gg",2],0,function(){return this.weekYear()%100}),mr(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Z3(t,e){mr(0,[t,t.length],0,e)}Z3("gggg","weekYear"),Z3("ggggg","weekYear"),Z3("GGGG","isoWeekYear"),Z3("GGGGG","isoWeekYear"),Qn("G",$3),Qn("g",$3),Qn("GG",La,vl),Qn("gg",La,vl),Qn("GGGG",$7,U7),Qn("gggg",$7,U7),Qn("GGGGG",U3,V3),Qn("ggggg",U3,V3),s2(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=Ai(t)}),s2(["gg","GG"],function(t,e,n,r){e[r]=Mn.parseTwoDigitYear(t)});function Wce(t){return yO.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Qce(t){return yO.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Jce(){return id(this.year(),1,4)}function Zce(){return id(this.isoWeekYear(),1,4)}function eue(){var t=this.localeData()._week;return id(this.year(),t.dow,t.doy)}function tue(){var t=this.localeData()._week;return id(this.weekYear(),t.dow,t.doy)}function yO(t,e,n,r,i){var a;return t==null?u2(this,r,i).year:(a=id(t,r,i),e>a&&(e=a),nue.call(this,t,e,n,r,i))}function nue(t,e,n,r,i){var a=WN(t,e,n,r,i),s=c2(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}mr("Q",0,"Qo","quarter"),Qn("Q",qN),ua("Q",function(t,e){e[nd]=(Ai(t)-1)*3});function rue(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}mr("D",["DD",2],"Do","date"),Qn("D",La,wf),Qn("DD",La,vl),Qn("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),ua(["D","DD"],uu),ua("Do",function(t,e){e[uu]=Ai(t.match(La)[0])});var AO=Sf("Date",!0);mr("DDD",["DDDD",3],"DDDo","dayOfYear"),Qn("DDD",q3),Qn("DDDD",UN),ua(["DDD","DDDD"],function(t,e,n){n._dayOfYear=Ai(t)});function iue(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}mr("m",["mm",2],0,"minute"),Qn("m",La,j7),Qn("mm",La,vl),ua(["m","mm"],Ic);var aue=Sf("Minutes",!1);mr("s",["ss",2],0,"second"),Qn("s",La,j7),Qn("ss",La,vl),ua(["s","ss"],rd);var sue=Sf("Seconds",!1);mr("S",0,0,function(){return~~(this.millisecond()/100)}),mr(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),mr(0,["SSS",3],0,"millisecond"),mr(0,["SSSS",4],0,function(){return this.millisecond()*10}),mr(0,["SSSSS",5],0,function(){return this.millisecond()*100}),mr(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),mr(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),mr(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),mr(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Qn("S",q3,qN),Qn("SS",q3,vl),Qn("SSS",q3,UN);var Zd,wO;for(Zd="SSSS";Zd.length<=9;Zd+="S")Qn(Zd,Af);function oue(t,e){e[t1]=Ai(("0."+t)*1e3)}for(Zd="S";Zd.length<=9;Zd+="S")ua(Zd,oue);wO=Sf("Milliseconds",!1),mr("z",0,0,"zoneAbbr"),mr("zz",0,0,"zoneName");function lue(){return this._isUTC?"UTC":""}function cue(){return this._isUTC?"Coordinated Universal Time":""}var Cn=i2.prototype;Cn.add=tce,Cn.calendar=lce,Cn.clone=cce,Cn.diff=mce,Cn.endOf=Ece,Cn.format=Ace,Cn.from=wce,Cn.fromNow=Sce,Cn.to=Cce,Cn.toNow=xce,Cn.get=yoe,Cn.invalidAt=Mce,Cn.isAfter=uce,Cn.isBefore=dce,Cn.isBetween=fce,Cn.isSame=hce,Cn.isSameOrAfter=pce,Cn.isSameOrBefore=gce,Cn.isValid=kce,Cn.lang=pO,Cn.locale=hO,Cn.localeData=gO,Cn.max=kle,Cn.min=Fle,Cn.parsingFlags=Pce,Cn.set=Aoe,Cn.startOf=Tce,Cn.subtract=nce,Cn.toArray=Nce,Cn.toObject=Oce,Cn.toDate=Dce,Cn.toISOString=bce,Cn.inspect=yce,typeof Symbol<"u"&&Symbol.for!=null&&(Cn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Cn.toJSON=Fce,Cn.toString=vce,Cn.unix=_ce,Cn.valueOf=Ice,Cn.creationData=Lce,Cn.eraName=Uce,Cn.eraNarrow=$ce,Cn.eraAbbr=jce,Cn.eraYear=zce,Cn.year=zN,Cn.isLeapYear=boe,Cn.weekYear=Wce,Cn.isoWeekYear=Qce,Cn.quarter=Cn.quarters=rue,Cn.month=RN,Cn.daysInMonth=Doe,Cn.week=Cn.weeks=Boe,Cn.isoWeek=Cn.isoWeeks=Voe,Cn.weeksInYear=eue,Cn.weeksInWeekYear=tue,Cn.isoWeeksInYear=Jce,Cn.isoWeeksInISOWeekYear=Zce,Cn.date=AO,Cn.day=Cn.days=Qoe,Cn.weekday=Joe,Cn.isoWeekday=Zoe,Cn.dayOfYear=iue,Cn.hour=Cn.hours=sle,Cn.minute=Cn.minutes=aue,Cn.second=Cn.seconds=sue,Cn.millisecond=Cn.milliseconds=wO,Cn.utcOffset=jle,Cn.utc=Hle,Cn.local=Yle,Cn.parseZone=Kle,Cn.hasAlignedHourOffset=Xle,Cn.isDST=Rle,Cn.isLocal=Wle,Cn.isUtcOffset=Qle,Cn.isUtc=lO,Cn.isUTC=lO,Cn.zoneAbbr=lue,Cn.zoneName=cue,Cn.dates=zl("dates accessor is deprecated. Use date instead.",AO),Cn.months=zl("months accessor is deprecated. Use month instead",RN),Cn.years=zl("years accessor is deprecated. Use year instead",zN),Cn.zone=zl("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",zle),Cn.isDSTShifted=zl("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Gle);function uue(t){return Ba(t*1e3)}function due(){return Ba.apply(null,arguments).parseZone()}function SO(t){return t}var qi=M7.prototype;qi.calendar=Wse,qi.longDateFormat=eoe,qi.invalidDate=noe,qi.ordinal=aoe,qi.preparse=SO,qi.postformat=SO,qi.relativeTime=ooe,qi.pastFuture=loe,qi.set=Rse,qi.eras=Bce,qi.erasParse=Vce,qi.erasConvertYear=qce,qi.erasAbbrRegex=Yce,qi.erasNameRegex=Hce,qi.erasNarrowRegex=Kce,qi.months=Toe,qi.monthsShort=Eoe,qi.monthsParse=_oe,qi.monthsRegex=Ooe,qi.monthsShortRegex=Noe,qi.week=koe,qi.firstDayOfYear=Loe,qi.firstDayOfWeek=Moe,qi.weekdays=Koe,qi.weekdaysMin=Roe,qi.weekdaysShort=Xoe,qi.weekdaysParse=Woe,qi.weekdaysRegex=ele,qi.weekdaysShortRegex=tle,qi.weekdaysMinRegex=nle,qi.isPM=ile,qi.meridiem=ole;function e4(t,e,n,r){var i=ad(),a=ou().set(r,e);return i[n](a,t)}function CO(t,e,n){if(ed(t)&&(e=t,t=void 0),t=t||"",e!=null)return e4(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=e4(t,r,n,"month");return i}function ab(t,e,n,r){typeof t=="boolean"?(ed(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,ed(e)&&(n=e,e=void 0),e=e||"");var i=ad(),a=t?i._week.dow:0,s,l=[];if(n!=null)return e4(e,(n+a)%7,r,"day");for(s=0;s<7;s++)l[s]=e4(e,(s+a)%7,r,"day");return l}function fue(t,e){return CO(t,e,"months")}function hue(t,e){return CO(t,e,"monthsShort")}function pue(t,e,n){return ab(t,e,n,"weekdays")}function gue(t,e,n){return ab(t,e,n,"weekdaysShort")}function mue(t,e,n){return ab(t,e,n,"weekdaysMin")}Jd("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=Ai(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+n}}),Mn.lang=zl("moment.lang is deprecated. Use moment.locale instead.",Jd),Mn.langData=zl("moment.langData is deprecated. Use moment.localeData instead.",ad);var sd=Math.abs;function vue(){var t=this._data;return this._milliseconds=sd(this._milliseconds),this._days=sd(this._days),this._months=sd(this._months),t.milliseconds=sd(t.milliseconds),t.seconds=sd(t.seconds),t.minutes=sd(t.minutes),t.hours=sd(t.hours),t.months=sd(t.months),t.years=sd(t.years),this}function xO(t,e,n,r){var i=_c(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function bue(t,e){return xO(this,t,e,1)}function yue(t,e){return xO(this,t,e,-1)}function TO(t){return t<0?Math.floor(t):Math.ceil(t)}function Aue(){var t=this._milliseconds,e=this._days,n=this._months,r=this._data,i,a,s,l,c;return t>=0&&e>=0&&n>=0||t<=0&&e<=0&&n<=0||(t+=TO(sb(n)+e)*864e5,e=0,n=0),r.milliseconds=t%1e3,i=Yl(t/1e3),r.seconds=i%60,a=Yl(i/60),r.minutes=a%60,s=Yl(a/60),r.hours=s%24,e+=Yl(s/24),c=Yl(EO(e)),n+=c,e-=TO(sb(c)),l=Yl(n/12),n%=12,r.days=e,r.months=n,r.years=l,this}function EO(t){return t*4800/146097}function sb(t){return t*146097/4800}function wue(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if(t=Hl(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+r/864e5,n=this._months+EO(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(sb(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+t)}}function od(t){return function(){return this.as(t)}}var IO=od("ms"),Sue=od("s"),Cue=od("m"),xue=od("h"),Tue=od("d"),Eue=od("w"),Iue=od("M"),_ue=od("Q"),Due=od("y"),Nue=IO;function Oue(){return _c(this)}function Fue(t){return t=Hl(t),this.isValid()?this[t+"s"]():NaN}function r1(t){return function(){return this.isValid()?this._data[t]:NaN}}var kue=r1("milliseconds"),Pue=r1("seconds"),Mue=r1("minutes"),Lue=r1("hours"),Bue=r1("days"),Vue=r1("months"),que=r1("years");function Uue(){return Yl(this.days()/7)}var ld=Math.round,Ef={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function $ue(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function jue(t,e,n,r){var i=_c(t).abs(),a=ld(i.as("s")),s=ld(i.as("m")),l=ld(i.as("h")),c=ld(i.as("d")),u=ld(i.as("M")),d=ld(i.as("w")),f=ld(i.as("y")),h=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||s<=1&&["m"]||s<n.m&&["mm",s]||l<=1&&["h"]||l<n.h&&["hh",l]||c<=1&&["d"]||c<n.d&&["dd",c];return n.w!=null&&(h=h||d<=1&&["w"]||d<n.w&&["ww",d]),h=h||u<=1&&["M"]||u<n.M&&["MM",u]||f<=1&&["y"]||["yy",f],h[2]=e,h[3]=+t>0,h[4]=r,$ue.apply(null,h)}function zue(t){return t===void 0?ld:typeof t=="function"?(ld=t,!0):!1}function Hue(t,e){return Ef[t]===void 0?!1:e===void 0?Ef[t]:(Ef[t]=e,t==="s"&&(Ef.ss=e-1),!0)}function Yue(t,e){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Ef,i,a;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(n=t),typeof e=="object"&&(r=Object.assign({},Ef,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),i=this.localeData(),a=jue(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var ob=Math.abs;function If(t){return(t>0)-(t<0)||+t}function t4(){if(!this.isValid())return this.localeData().invalidDate();var t=ob(this._milliseconds)/1e3,e=ob(this._days),n=ob(this._months),r,i,a,s,l=this.asSeconds(),c,u,d,f;return l?(r=Yl(t/60),i=Yl(r/60),t%=60,r%=60,a=Yl(n/12),n%=12,s=t?t.toFixed(3).replace(/\.?0+$/,""):"",c=l<0?"-":"",u=If(this._months)!==If(l)?"-":"",d=If(this._days)!==If(l)?"-":"",f=If(this._milliseconds)!==If(l)?"-":"",c+"P"+(a?u+a+"Y":"")+(n?u+n+"M":"")+(e?d+e+"D":"")+(i||r||t?"T":"")+(i?f+i+"H":"")+(r?f+r+"M":"")+(t?f+s+"S":"")):"P0D"}var Ni=R3.prototype;Ni.isValid=Vle,Ni.abs=vue,Ni.add=bue,Ni.subtract=yue,Ni.as=wue,Ni.asMilliseconds=IO,Ni.asSeconds=Sue,Ni.asMinutes=Cue,Ni.asHours=xue,Ni.asDays=Tue,Ni.asWeeks=Eue,Ni.asMonths=Iue,Ni.asQuarters=_ue,Ni.asYears=Due,Ni.valueOf=Nue,Ni._bubble=Aue,Ni.clone=Oue,Ni.get=Fue,Ni.milliseconds=kue,Ni.seconds=Pue,Ni.minutes=Mue,Ni.hours=Lue,Ni.days=Bue,Ni.weeks=Uue,Ni.months=Vue,Ni.years=que,Ni.humanize=Yue,Ni.toISOString=t4,Ni.toString=t4,Ni.toJSON=t4,Ni.locale=hO,Ni.localeData=gO,Ni.toIsoString=zl("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",t4),Ni.lang=pO,mr("X",0,0,"unix"),mr("x",0,0,"valueOf"),Qn("x",$3),Qn("X",foe),ua("X",function(t,e,n){n._d=new Date(parseFloat(t)*1e3)}),ua("x",function(t,e,n){n._d=new Date(Ai(t))});//! moment.js
|
|
2299
|
-
Mn.version="2.30.1",Kse(Ba),Mn.fn=Cn,Mn.min=Ple,Mn.max=Mle,Mn.now=Lle,Mn.utc=ou,Mn.unix=uue,Mn.months=fue,Mn.isDate=r2,Mn.locale=Jd,Mn.invalid=M3,Mn.duration=_c,Mn.isMoment=Ec,Mn.weekdays=pue,Mn.parseZone=due,Mn.localeData=ad,Mn.isDuration=G3,Mn.monthsShort=hue,Mn.weekdaysMin=mue,Mn.defineLocale=R7,Mn.updateLocale=dle,Mn.locales=fle,Mn.weekdaysShort=gue,Mn.normalizeUnits=Hl,Mn.relativeTimeRounding=zue,Mn.relativeTimeThreshold=Hue,Mn.calendarFormat=oce,Mn.prototype=Cn,Mn.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const lb=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],n4=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/,du=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+\$,\\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+\$,\\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%\/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/;function Kue(t){try{JSON.parse(t)}catch{return!1}return!0}function _O(t){if(t<26)return lb[t];{const e=Math.floor(t/26)-1,n=t%26;return lb[e]+lb[n]}}function Xue(t,e){const n=Mn(t,"YYYY-MM-DD HH:mm:ss"),i=Mn(e,"YYYY-MM-DD HH:mm:ss").diff(n),a=Mn.duration(i),s=a.hours(),l=a.minutes(),c=a.seconds();return(s===0?"":`${s} hours `)+(l===0?"":`${l} minutes `)+(c===0?"":`${c} seconds `)}const Rue=t=>{var ae,re,Z,K,W,ge,ve,Ie,be,de,ne;const{field:e,fieldIndex:n,pageIndex:r,sectionIndex:i,row:a,update:s,value:l,isDisabled:c}=t,{isAdmin:u,isBuilderMode:d}=Ht(),{task_status:f,taskRegisterData:h,updateTaskRegisterData:g,updateTaskProgressValue:v,updateUserFormDataSubmit:m,userTaskSubmitFormData:A,TASK_PUBLISHED:w}=Ar(),{userSelectedLanguage:C}=sn(),[S,T]=k.useState(!1),[x,E]=k.useState(""),[_,M]=k.useState(0),[N,F]=k.useState(!1),P=()=>{F(!0)},H=()=>{F(!1)};k.useEffect(()=>{S||R();const q=Gt.addListener("clearRepeatableFields",oe=>{oe===(a==null?void 0:a.uuid)&&(E(""),M(0),e.isValid=0)}),ee=Gt.addListener("onSubmitUserForm",()=>{var oe;(oe=e==null?void 0:e.attributes)!=null&&oe.required?x!==""&&n4.test(x)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{ee.remove(),q.remove()}});const[O,j]=k.useState(!1),U=q=>{j(q)},le=()=>{j(!1)},R=()=>{var q,ee,oe;if(a!=null&&a.rowIsRepeatable){if(a!=null&&a.repeatableFields){const pe=[...a.repeatableFields],Ce=_t.findIndex(pe,function(De){return De.uuid===(e==null?void 0:e.uuid)});Ce>=0&&pe[Ce].fieldData?E(pe[Ce].fieldData):E("")}}else{const pe=A;if(pe!=null&&pe.length){for(const Ce of pe)if(Ce.fieldId===t.field.uuid&&((q=Ce==null?void 0:Ce.postData[0])==null?void 0:q.postValue)!==""&&((ee=Ce==null?void 0:Ce.postData[0])!=null&&ee.postValue)){E((oe=Ce==null?void 0:Ce.postData[0])==null?void 0:oe.postValue),T(!0);break}}}T(!0)},X=q=>{E(q);const ee=A,oe=_t.cloneDeep(h);if(ee!==null){if(q!==""&&n4.test(q)===!0){if(oe[e==null?void 0:e.uuid]=q,(ee==null?void 0:ee.length)>0)for(const pe of ee)pe.fieldId===t.field.uuid&&(pe.postData[0]={postValue:q})}else if(delete oe[e==null?void 0:e.uuid],(ee==null?void 0:ee.length)>0)for(const pe of ee)pe.fieldId===t.field.uuid&&(pe.postData[0]={postValue:""})}if(!(a!=null&&a.rowIsRepeatable)){g(oe);const pe=Object.keys(oe).length;v(pe)}},ce=(q,ee,oe,pe)=>{var Ce;if(E(pe),A!==null){const De=[...A],me=_t.findIndex(De,function(Pe){return Pe.rowId===(a==null?void 0:a.uuid)});let Te=(Ce=A[me])==null?void 0:Ce.repeatableFields;Te={...Te,[oe==null?void 0:oe.uuid]:pe},De[me]={...De[me],repeatableFields:Te},m(De),pe!==""&&n4.test(pe)===!0?e.isValid=1:e.isValid=0}},Y=o.jsxs("div",{onMouseOver:P,onMouseOut:H,children:[d&&N&&o.jsx(Wr,{handleFieldSettingsSidebar:U,...t}),o.jsxs("div",{className:`field ${d?" py-3 px-4 builder-element-wrapper ":""}${(e==null?void 0:e.isFluid)===!0&&" p-fluid"}`,children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(ae=e==null?void 0:e.headerText)==null?void 0:ae[C==null?void 0:C.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:n,className:"flex font-bold mb-3 text-700 text-xl",children:[o.jsx(ca,{...t,update:s,value:l}),((re=e==null?void 0:e.attributes)==null?void 0:re.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",d?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(Z=e==null?void 0:e.label)==null?void 0:Z[C==null?void 0:C.type]}),o.jsx("span",{className:"ml-2",children:(e==null?void 0:e.showToolTip)&&o.jsx(o.Fragment,{children:o.jsx(zi,{message:(K=e==null?void 0:e.toolTip)==null?void 0:K[C==null?void 0:C.type],position:"right"})})})]}),o.jsxs("span",{className:"p-input-icon-"+(e==null?void 0:e.iconAlignment),children:[(e==null?void 0:e.showIcon)&&o.jsx("i",{className:"pi pi-"+((ge=(W=e==null?void 0:e.icon)==null?void 0:W.properties)==null?void 0:ge.name)}),o.jsx(wn,{id:e==null?void 0:e.uuid,placeholder:(ve=e==null?void 0:e.placeholder)==null?void 0:ve[C==null?void 0:C.type],value:x,onFocus:()=>M(1),onChange:q=>{a!=null&&a.rowIsRepeatable?ce(r,i,{uuid:e.uuid},q.target.value):X(q.target.value)},className:_===1&&((Ie=e==null?void 0:e.attributes)!=null&&Ie.required)?x?"valid":"invalid":"valid'",disabled:u,readOnly:c})]}),((be=e==null?void 0:e.attributes)==null?void 0:be.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:_===1&&(x===null||x==="")?(de=e==null?void 0:e.validationMesssage)==null?void 0:de[C==null?void 0:C.language]:""})}),x!==""&&_===1&&n4.test(x)===!1&&o.jsx("small",{className:"error",children:"Please enter correct email"}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(ne=e==null?void 0:e.helperText)==null?void 0:ne[C==null?void 0:C.type]})})]}),u&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]});return o.jsxs(o.Fragment,{children:[O===!0&&o.jsx(Qi,{visibilty:O,closeSettingFieldSidebar:le,...t},e==null?void 0:e.uuid),o.jsx(xi,{...t,fieldWrap:Y})]})},Gue=t=>{var K,W,ge,ve,Ie,be,de,ne,q;const{field:e,fieldIndex:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,row:l,isDisabled:c}=t,{isAdmin:u,isBuilderMode:d}=Ht(),{userSelectedLanguage:f,fieldSettingUpdate:h}=sn(),{task_status:g,taskRegisterData:v,updateTaskRegisterData:m,updateTaskProgressValue:A,updateUserFormDataSubmit:w,userTaskSubmitFormData:C,TASK_PUBLISHED:S}=Ar(),[T,x]=k.useState(!1),[E,_]=k.useState(""),[M,N]=k.useState(0),[F,P]=k.useState(!1),[H,O]=k.useState(!1),[j,U]=k.useState(!1),le=()=>{O(!0)},R=()=>{O(!1)},X=ee=>{x(ee)},ce=()=>{x(!1)},Y=()=>{var oe,pe,Ce;const ee=C;if(l!=null&&l.rowIsRepeatable){if(l!=null&&l.repeatableFields){const De=[...l.repeatableFields],me=_t.findIndex(De,function(Te){return Te.uuid===(e==null?void 0:e.uuid)});me>=0&&De[me].fieldData?_(De[me].fieldData):(e.isValid=0,_(""))}}else if(ee!=null&&ee.length){for(const De of ee)if(De.fieldId===t.field.uuid&&((oe=De==null?void 0:De.postData[0])!=null&&oe.postValue)&&((pe=De==null?void 0:De.postData[0])==null?void 0:pe.postValue)!==""){_((Ce=De==null?void 0:De.postData[0])==null?void 0:Ce.postValue),P(!0);break}}P(!0)},ae=(ee,oe,pe,Ce)=>{var De;if(C!=null&&C.length){const me=[...C],Te=_t.findIndex(me,function(Ee){return Ee.rowId===(l==null?void 0:l.uuid)});let Pe=(De=C[Te])==null?void 0:De.repeatableFields;Pe={...Pe,[pe==null?void 0:pe.uuid]:Ce},me[Te]={...me[Te],repeatableFields:Pe},w(me)}_(Ce),Ce!==""?e.isValid=1:e.isValid=0,h(ee,oe,a,s,n,e)};k.useEffect(()=>{F||Y();const ee=Gt.addListener("clearRepeatableFields",me=>{me===(l==null?void 0:l.uuid)&&(_(""),N(0),e.isValid=0)}),oe=Gt.addListener("onSubmitUserForm",()=>{var me;(me=e==null?void 0:e.attributes)!=null&&me.required?E?e.isValid=1:e.isValid=0:e.isValid=1}),pe=Gt.addListener("OnInvalidFieldCatch",me=>{e.uuid===(me==null?void 0:me.fieldId)?N(1):N(0)}),Ce=Gt.addListener("OnGetFieldValue",me=>{var Pe;const Te=(Pe=me==null?void 0:me.repeatableColumn)==null?void 0:Pe.filter(Ee=>(Ee==null?void 0:Ee.fieldUuid)===(e==null?void 0:e.uuid));Te!=null&&Te.length}),De=Gt.addListener("onUpdateField",()=>{U(!j)});return()=>{De.remove(),oe.remove(),pe.remove(),Ce.remove(),ee.remove()}});const re=ee=>{var Ce,De;_(ee.target.value);const oe=C,pe=_t.cloneDeep(v);if(oe!==null){if((Ce=ee==null?void 0:ee.target)!=null&&Ce.value){if(pe[e==null?void 0:e.uuid]=(De=ee==null?void 0:ee.target)==null?void 0:De.value,(oe==null?void 0:oe.length)>0)for(const me of oe)me.fieldId===t.field.uuid&&(me.postData[0]={postValue:ee.target.value})}else if(delete pe[e==null?void 0:e.uuid],(oe==null?void 0:oe.length)>0)for(const me of oe)me.fieldId===t.field.uuid&&(me.postData[0]={postValue:""})}if(!(l!=null&&l.rowIsRepeatable)){m(pe);const me=Object.keys(pe).length;A(me)}},Z=o.jsxs("div",{onMouseOver:le,onMouseOut:R,children:[d&&H&&o.jsx(Wr,{handleFieldSettingsSidebar:X,...t}),o.jsxs("div",{className:`field ${d&&" py-3 px-4 builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0&&" p-fluid"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:d?"col-12 field-form-builder ":"col-12 ",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(K=e==null?void 0:e.headerText)==null?void 0:K[f==null?void 0:f.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:n,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((W=e==null?void 0:e.attributes)==null?void 0:W.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",d?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(ge=e==null?void 0:e.label)==null?void 0:ge[f==null?void 0:f.type]}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(zi,{message:(ve=e==null?void 0:e.toolTip)==null?void 0:ve[f==null?void 0:f.type],position:"right"})})]}),o.jsx(so,{rows:e==null?void 0:e.textareaRows,cols:e==null?void 0:e.textareaCols,autoResize:e==null?void 0:e.resizable,id:e==null?void 0:e.uuid,placeholder:(Ie=e==null?void 0:e.placeholder)==null?void 0:Ie[f==null?void 0:f.type],value:E,onFocus:()=>N(1),onChange:ee=>{l!=null&&l.rowIsRepeatable?ae(r,i,e,ee.target.value):re(ee)},disabled:u||c,className:M===1&&((be=e==null?void 0:e.attributes)!=null&&be.required)?E?"valid":"invalid":"valid",readOnly:c}),o.jsx("div",{children:((de=e==null?void 0:e.attributes)==null?void 0:de.required)&&o.jsx("small",{className:"error",children:M===1&&!E?(ne=e==null?void 0:e.validationMesssage)==null?void 0:ne[f==null?void 0:f.type]:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(q=e==null?void 0:e.helperText)==null?void 0:q[f==null?void 0:f.type]})})]})}),u&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[T===!0&&o.jsx(Qi,{visibilty:T,closeSettingFieldSidebar:ce,...t},e==null?void 0:e.uuid),o.jsx(xi,{...t,fieldWrap:Z})]})},Wue={},cb=t=>{var _,M,N,F;const{isAdmin:e,isAdvanceView:n,isBuilderMode:r}=Ht(),{handleDrop:i}=sn(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,conditionIndex:f,ruleIndex:h,condition:g,page:v,section:m,row:A,column:w}=t,C=k.useRef(null),[{isDragging:S},T]=ra({type:ox,item:{type:ox,uuid:a.uuid,children:a.children,path:s},collect:P=>({isDragging:P.isDragging()})}),x=S?0:1;T(C);const E=(P,H,O,j,U,le,R)=>{const X=t!=null&&t.fieldContainer?t==null?void 0:t.fieldContainer:"inline-condition-container";return o.jsx(Lc,{type:"inline-conditional",field:P,data:P,path:H,page:v,section:m,row:A,column:w,pageIndex:O,sectionIndex:j,rowIndex:U,columnIndex:le,fieldIndex:R,isAdmin:e,fieldContainer:X},P.uuid)};return o.jsxs("div",{ref:r===!0?C:null,style:{...Wue,opacity:x},className:"draggable column",children:[g&&((_=g.children)==null?void 0:_.length)===0&&o.jsx("p",{className:"text-primary text-center",children:"Drag item here"}),g&&g.children&&((M=g.children)==null?void 0:M.length)>0&&g.children.map((P,H)=>{var O;return o.jsxs(k.Fragment,{children:[r===!0&&o.jsx(Fr,{isAdvanceView:n,data:{path:`${s}-${h}-${f}-${H}`,childrenCount:(O=g==null?void 0:g.children)==null?void 0:O.length,droppedField:g},onDrop:i}),E(P,`${s}-${h}-${f}-${H}`,l,c,u,d,H)]},P.uuid)}),r===!0&&o.jsx(Fr,{isAdvanceView:n,fieldDropArea:!0,data:{path:`${s}-${h}-${f}-${(N=g==null?void 0:g.children)==null?void 0:N.length}`,childrenCount:(F=g==null?void 0:g.children)==null?void 0:F.length,droppedField:g},onDrop:i,isLast:!0})]})},e0=t=>{const{inputValue:e,condition:n,ruleIndex:r,conditionIndex:i,field:a,section:s,page:l,row:c,pageIndex:u,sectionIndex:d,rowIndex:f,columnIndex:h,isConditionTrue:g}=t,{taskRegisterData:v,updateUserFormDataSubmit:m,userTaskSubmitFormData:A,updateProgressDataValuesHook:w}=Ar(),C=k.useCallback((S,T,x)=>{var _,M,N;const E=A;if(E!=null&&E.length){const F=v,P=(_=a==null?void 0:a.inlineConditionalRules)==null?void 0:_.rules[T].conditions[x].children;for(const[O,j]of P.entries()){(M=j==null?void 0:j.attributes)!=null&&M.required;const U=_t.findIndex(E,function(le){return le.fieldId===j.uuid});S?U===-1&&(E.push({postData:[],tabId:l.uuid,tabIndex:u,...a.inlineConditionalRules?{inlineConditionalRules:a.inlineConditionalRules}:{},...a.conditionalTabRules?{conditionalTabRules:a.conditionalTabRules}:{},...a.conditionalSectionRules?{conditionalSectionRules:a.conditionalSectionRules}:{},sectionId:s.uuid,sectionIndex:d,sectionHeading:s.heading,subHeadingText:s.subHeadingText,reviewerChecklist:a==null?void 0:a.reviewerChecklist,rowId:c.uuid,rowIndex:f,columnId:s.uuid,columnIndex:h,inlineConditionalField:!0,fieldIndex:O,fieldId:j.uuid,fieldInputType:a.componentType,fieldTitle:(N=a.label)==null?void 0:N.english,fieldDescription:a.description||null,fieldHelperText:a.helperText||null,fieldHeaderText:a.headerText||null,fieldFooterText:a.footerText||null,fieldTitleAbb:a.abbreviationLabel||a.label,question_abb_table:a.textForTable||null,language:"english",isHiddenfield:a.isHidden&&a.isHidden===1?1:0,isHiddenSection:s.isHidden&&s.isHidden===1?1:0}),F[j==null?void 0:j.uuid]&&delete F[j==null?void 0:j.uuid]):(F[j==null?void 0:j.uuid]&&delete F[j==null?void 0:j.uuid],U>=0&&E.splice(U,1))}const H=Object.keys(F).length;w({progressMaxValue:E==null?void 0:E.length,progressValue:H}),m(E)}},[h,a.abbreviationLabel,a.componentType,a.conditionalSectionRules,a.conditionalTabRules,a.description,a.footerText,a.headerText,a.helperText,a.inlineConditionalRules,a.isHidden,a.label,a==null?void 0:a.reviewerChecklist,a.textForTable,l.uuid,u,c.uuid,f,s.heading,s.isHidden,s.subHeadingText,s.uuid,d,v,w,m,A]);return k.useEffect(()=>(C(g,r,i),()=>{}),[i,e,g,r,C]),o.jsx("div",{children:g&&o.jsx("div",{className:"p-field p-pt-2",children:o.jsx(o.Fragment,{children:o.jsx(cb,{...t,ruleIndex:r,conditionIndex:i,condition:n,data:a})})},i)})};function p2(t){"@babel/helpers - typeof";return p2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p2(t)}function Que(t,e){if(p2(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(p2(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Jue(t){var e=Que(t,"string");return p2(e)=="symbol"?e:e+""}function ub(t,e,n){return(e=Jue(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zue={value:"p-tag-value",icon:"p-tag-icon",root:function(e){var n=e.props;return ft("p-tag p-component",ub(ub({},"p-tag-".concat(n.severity),n.severity!==null),"p-tag-rounded",n.rounded))}},ede=`
|
|
2299
|
+
Mn.version="2.30.1",Kse(Ba),Mn.fn=Cn,Mn.min=Ple,Mn.max=Mle,Mn.now=Lle,Mn.utc=ou,Mn.unix=uue,Mn.months=fue,Mn.isDate=r2,Mn.locale=Jd,Mn.invalid=M3,Mn.duration=_c,Mn.isMoment=Ec,Mn.weekdays=pue,Mn.parseZone=due,Mn.localeData=ad,Mn.isDuration=G3,Mn.monthsShort=hue,Mn.weekdaysMin=mue,Mn.defineLocale=R7,Mn.updateLocale=dle,Mn.locales=fle,Mn.weekdaysShort=gue,Mn.normalizeUnits=Hl,Mn.relativeTimeRounding=zue,Mn.relativeTimeThreshold=Hue,Mn.calendarFormat=oce,Mn.prototype=Cn,Mn.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const lb=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],n4=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/,du=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+\$,\\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+\$,\\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%\/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/;function Kue(t){try{JSON.parse(t)}catch{return!1}return!0}function _O(t){if(t<26)return lb[t];{const e=Math.floor(t/26)-1,n=t%26;return lb[e]+lb[n]}}function Xue(t,e){const n=Mn(t,"YYYY-MM-DD HH:mm:ss"),i=Mn(e,"YYYY-MM-DD HH:mm:ss").diff(n),a=Mn.duration(i),s=a.hours(),l=a.minutes(),c=a.seconds();return(s===0?"":`${s} hours `)+(l===0?"":`${l} minutes `)+(c===0?"":`${c} seconds `)}const Rue=t=>{var ae,re,Z,K,W,ge,ve,Ie,be,de,ne;const{field:e,fieldIndex:n,pageIndex:r,sectionIndex:i,row:a,update:s,value:l,isDisabled:c}=t,{isAdmin:u,isBuilderMode:d}=Ht(),{task_status:f,taskRegisterData:h,updateTaskRegisterData:g,updateTaskProgressValue:v,updateUserFormDataSubmit:m,userTaskSubmitFormData:A,TASK_PUBLISHED:w}=Ar(),{userSelectedLanguage:C}=sn(),[S,T]=k.useState(!1),[x,E]=k.useState(""),[_,M]=k.useState(0),[N,F]=k.useState(!1),P=()=>{F(!0)},H=()=>{F(!1)};k.useEffect(()=>{S||R();const q=Gt.addListener("clearRepeatableFields",oe=>{oe===(a==null?void 0:a.uuid)&&(E(""),M(0),e.isValid=0)}),ee=Gt.addListener("onSubmitUserForm",()=>{var oe;(oe=e==null?void 0:e.attributes)!=null&&oe.required?x!==""&&n4.test(x)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{ee.remove(),q.remove()}});const[O,j]=k.useState(!1),U=q=>{j(q)},le=()=>{j(!1)},R=()=>{var q,ee,oe;if(a!=null&&a.rowIsRepeatable){if(a!=null&&a.repeatableFields){const pe=[...a.repeatableFields],Ce=_t.findIndex(pe,function(De){return De.uuid===(e==null?void 0:e.uuid)});Ce>=0&&pe[Ce].fieldData?E(pe[Ce].fieldData):E("")}}else{const pe=A;if(pe!=null&&pe.length){for(const Ce of pe)if(Ce.fieldId===t.field.uuid&&((q=Ce==null?void 0:Ce.postData[0])==null?void 0:q.postValue)!==""&&((ee=Ce==null?void 0:Ce.postData[0])!=null&&ee.postValue)){E((oe=Ce==null?void 0:Ce.postData[0])==null?void 0:oe.postValue),T(!0);break}}}T(!0)},X=q=>{E(q);const ee=A,oe=_t.cloneDeep(h);if(ee!==null){if(q!==""&&n4.test(q)===!0){if(oe[e==null?void 0:e.uuid]=q,(ee==null?void 0:ee.length)>0)for(const pe of ee)pe.fieldId===t.field.uuid&&(pe.postData[0]={postValue:q})}else if(delete oe[e==null?void 0:e.uuid],(ee==null?void 0:ee.length)>0)for(const pe of ee)pe.fieldId===t.field.uuid&&(pe.postData[0]={postValue:""})}if(!(a!=null&&a.rowIsRepeatable)){g(oe);const pe=Object.keys(oe).length;v(pe)}},ce=(q,ee,oe,pe)=>{var Ce;if(E(pe),A!==null){const De=[...A],me=_t.findIndex(De,function(Pe){return Pe.rowId===(a==null?void 0:a.uuid)});let Te=(Ce=A[me])==null?void 0:Ce.repeatableFields;Te={...Te,[oe==null?void 0:oe.uuid]:pe},De[me]={...De[me],repeatableFields:Te},m(De),pe!==""&&n4.test(pe)===!0?e.isValid=1:e.isValid=0}},Y=o.jsxs("div",{onMouseOver:P,onMouseOut:H,children:[d&&N&&o.jsx(Wr,{handleFieldSettingsSidebar:U,...t}),o.jsxs("div",{className:`field ${d?" py-3 px-4 builder-element-wrapper ":""}${(e==null?void 0:e.isFluid)===!0&&" p-fluid"}`,children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(ae=e==null?void 0:e.headerText)==null?void 0:ae[C==null?void 0:C.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:n,className:"flex font-bold mb-3 text-700 text-xl",children:[o.jsx(ca,{...t,update:s,value:l}),((re=e==null?void 0:e.attributes)==null?void 0:re.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",d?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(Z=e==null?void 0:e.label)==null?void 0:Z[C==null?void 0:C.type]}),o.jsx("span",{className:"ml-2",children:(e==null?void 0:e.showToolTip)&&o.jsx(o.Fragment,{children:o.jsx(zi,{message:(K=e==null?void 0:e.toolTip)==null?void 0:K[C==null?void 0:C.type],position:"right"})})})]}),o.jsxs("span",{className:"p-input-icon-"+(e==null?void 0:e.iconAlignment),children:[(e==null?void 0:e.showIcon)&&o.jsx("i",{className:"pi pi-"+((ge=(W=e==null?void 0:e.icon)==null?void 0:W.properties)==null?void 0:ge.name)}),o.jsx(wn,{id:e==null?void 0:e.uuid,placeholder:(ve=e==null?void 0:e.placeholder)==null?void 0:ve[C==null?void 0:C.type],value:x,onFocus:()=>M(1),onChange:q=>{a!=null&&a.rowIsRepeatable?ce(r,i,{uuid:e.uuid},q.target.value):X(q.target.value)},className:_===1&&((Ie=e==null?void 0:e.attributes)!=null&&Ie.required)?x?"valid":"invalid":"valid'",disabled:u,readOnly:c})]}),((be=e==null?void 0:e.attributes)==null?void 0:be.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:_===1&&(x===null||x==="")?(de=e==null?void 0:e.validationMesssage)==null?void 0:de[C==null?void 0:C.language]:""})}),x!==""&&_===1&&n4.test(x)===!1&&o.jsx("small",{className:"error",children:"Please enter correct email"}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(ne=e==null?void 0:e.helperText)==null?void 0:ne[C==null?void 0:C.type]})})]}),u&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]});return o.jsxs(o.Fragment,{children:[O===!0&&o.jsx(Qi,{visibilty:O,closeSettingFieldSidebar:le,...t},e==null?void 0:e.uuid),o.jsx(xi,{...t,fieldWrap:Y})]})},Gue=t=>{var K,W,ge,ve,Ie,be,de,ne,q;const{field:e,fieldIndex:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,row:l,isDisabled:c}=t,{isAdmin:u,isBuilderMode:d}=Ht(),{userSelectedLanguage:f,fieldSettingUpdate:h}=sn(),{task_status:g,taskRegisterData:v,updateTaskRegisterData:m,updateTaskProgressValue:A,updateUserFormDataSubmit:w,userTaskSubmitFormData:C,TASK_PUBLISHED:S}=Ar(),[T,x]=k.useState(!1),[E,_]=k.useState(""),[M,N]=k.useState(0),[F,P]=k.useState(!1),[H,O]=k.useState(!1),[j,U]=k.useState(!1),le=()=>{O(!0)},R=()=>{O(!1)},X=ee=>{x(ee)},ce=()=>{x(!1)},Y=()=>{var oe,pe,Ce;const ee=C;if(l!=null&&l.rowIsRepeatable){if(l!=null&&l.repeatableFields){const De=[...l.repeatableFields],me=_t.findIndex(De,function(Te){return Te.uuid===(e==null?void 0:e.uuid)});me>=0&&De[me].fieldData?_(De[me].fieldData):(e.isValid=0,_(""))}}else if(ee!=null&&ee.length){for(const De of ee)if(De.fieldId===t.field.uuid&&((oe=De==null?void 0:De.postData[0])!=null&&oe.postValue)&&((pe=De==null?void 0:De.postData[0])==null?void 0:pe.postValue)!==""){_((Ce=De==null?void 0:De.postData[0])==null?void 0:Ce.postValue),P(!0);break}}P(!0)},ae=(ee,oe,pe,Ce)=>{var De;if(C!=null&&C.length){const me=[...C],Te=_t.findIndex(me,function(Ee){return Ee.rowId===(l==null?void 0:l.uuid)});let Pe=(De=C[Te])==null?void 0:De.repeatableFields;Pe={...Pe,[pe==null?void 0:pe.uuid]:Ce},me[Te]={...me[Te],repeatableFields:Pe},w(me)}_(Ce),Ce!==""?e.isValid=1:e.isValid=0,h(ee,oe,a,s,n,e)};k.useEffect(()=>{F||Y();const ee=Gt.addListener("clearRepeatableFields",me=>{me===(l==null?void 0:l.uuid)&&(_(""),N(0),e.isValid=0)}),oe=Gt.addListener("onSubmitUserForm",()=>{var me;(me=e==null?void 0:e.attributes)!=null&&me.required?E?e.isValid=1:e.isValid=0:e.isValid=1}),pe=Gt.addListener("OnInvalidFieldCatch",me=>{e.uuid===(me==null?void 0:me.fieldId)?N(1):N(0)}),Ce=Gt.addListener("OnGetFieldValue",me=>{var Pe;const Te=(Pe=me==null?void 0:me.repeatableColumn)==null?void 0:Pe.filter(Ee=>(Ee==null?void 0:Ee.fieldUuid)===(e==null?void 0:e.uuid));Te!=null&&Te.length}),De=Gt.addListener("onUpdateField",()=>{U(!j)});return()=>{De.remove(),oe.remove(),pe.remove(),Ce.remove(),ee.remove()}});const re=ee=>{var Ce,De;_(ee.target.value);const oe=C,pe=_t.cloneDeep(v);if(oe!==null){if((Ce=ee==null?void 0:ee.target)!=null&&Ce.value){if(pe[e==null?void 0:e.uuid]=(De=ee==null?void 0:ee.target)==null?void 0:De.value,(oe==null?void 0:oe.length)>0)for(const me of oe)me.fieldId===t.field.uuid&&(me.postData[0]={postValue:ee.target.value})}else if(delete pe[e==null?void 0:e.uuid],(oe==null?void 0:oe.length)>0)for(const me of oe)me.fieldId===t.field.uuid&&(me.postData[0]={postValue:""})}if(!(l!=null&&l.rowIsRepeatable)){m(pe);const me=Object.keys(pe).length;A(me)}},Z=o.jsxs("div",{onMouseOver:le,onMouseOut:R,children:[d&&H&&o.jsx(Wr,{handleFieldSettingsSidebar:X,...t}),o.jsxs("div",{className:`field ${d&&" py-3 px-4 builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0&&" p-fluid"}`,children:[o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:d?"col-12 field-form-builder ":u?"col-6":"col-12",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(K=e==null?void 0:e.headerText)==null?void 0:K[f==null?void 0:f.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:n,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((W=e==null?void 0:e.attributes)==null?void 0:W.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",d?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(ge=e==null?void 0:e.label)==null?void 0:ge[f==null?void 0:f.type]}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(zi,{message:(ve=e==null?void 0:e.toolTip)==null?void 0:ve[f==null?void 0:f.type],position:"right"})})]}),o.jsx(so,{rows:e==null?void 0:e.textareaRows,cols:e==null?void 0:e.textareaCols,autoResize:e==null?void 0:e.resizable,id:e==null?void 0:e.uuid,placeholder:(Ie=e==null?void 0:e.placeholder)==null?void 0:Ie[f==null?void 0:f.type],value:E,onFocus:()=>N(1),onChange:ee=>{l!=null&&l.rowIsRepeatable?ae(r,i,e,ee.target.value):re(ee)},disabled:u||c,className:M===1&&((be=e==null?void 0:e.attributes)!=null&&be.required)?E?"valid":"invalid":"valid",readOnly:c}),o.jsx("div",{children:((de=e==null?void 0:e.attributes)==null?void 0:de.required)&&o.jsx("small",{className:"error",children:M===1&&!E?(ne=e==null?void 0:e.validationMesssage)==null?void 0:ne[f==null?void 0:f.type]:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(q=e==null?void 0:e.helperText)==null?void 0:q[f==null?void 0:f.type]})})]}),u&&o.jsx(o.Fragment,{children:o.jsx("div",{className:"col-6",children:o.jsx(ki,{...t})})})]}),u&&o.jsx("hr",{})]})]});return o.jsxs(o.Fragment,{children:[T===!0&&o.jsx(Qi,{visibilty:T,closeSettingFieldSidebar:ce,...t},e==null?void 0:e.uuid),o.jsx(xi,{...t,fieldWrap:Z})]})},Wue={},cb=t=>{var _,M,N,F;const{isAdmin:e,isAdvanceView:n,isBuilderMode:r}=Ht(),{handleDrop:i}=sn(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,conditionIndex:f,ruleIndex:h,condition:g,page:v,section:m,row:A,column:w}=t,C=k.useRef(null),[{isDragging:S},T]=ra({type:ox,item:{type:ox,uuid:a.uuid,children:a.children,path:s},collect:P=>({isDragging:P.isDragging()})}),x=S?0:1;T(C);const E=(P,H,O,j,U,le,R)=>{const X=t!=null&&t.fieldContainer?t==null?void 0:t.fieldContainer:"inline-condition-container";return o.jsx(Lc,{type:"inline-conditional",field:P,data:P,path:H,page:v,section:m,row:A,column:w,pageIndex:O,sectionIndex:j,rowIndex:U,columnIndex:le,fieldIndex:R,isAdmin:e,fieldContainer:X},P.uuid)};return o.jsxs("div",{ref:r===!0?C:null,style:{...Wue,opacity:x},className:"draggable column",children:[g&&((_=g.children)==null?void 0:_.length)===0&&o.jsx("p",{className:"text-primary text-center",children:"Drag item here"}),g&&g.children&&((M=g.children)==null?void 0:M.length)>0&&g.children.map((P,H)=>{var O;return o.jsxs(k.Fragment,{children:[r===!0&&o.jsx(Fr,{isAdvanceView:n,data:{path:`${s}-${h}-${f}-${H}`,childrenCount:(O=g==null?void 0:g.children)==null?void 0:O.length,droppedField:g},onDrop:i}),E(P,`${s}-${h}-${f}-${H}`,l,c,u,d,H)]},P.uuid)}),r===!0&&o.jsx(Fr,{isAdvanceView:n,fieldDropArea:!0,data:{path:`${s}-${h}-${f}-${(N=g==null?void 0:g.children)==null?void 0:N.length}`,childrenCount:(F=g==null?void 0:g.children)==null?void 0:F.length,droppedField:g},onDrop:i,isLast:!0})]})},e0=t=>{const{inputValue:e,condition:n,ruleIndex:r,conditionIndex:i,field:a,section:s,page:l,row:c,pageIndex:u,sectionIndex:d,rowIndex:f,columnIndex:h,isConditionTrue:g}=t,{taskRegisterData:v,updateUserFormDataSubmit:m,userTaskSubmitFormData:A,updateProgressDataValuesHook:w}=Ar(),C=k.useCallback((S,T,x)=>{var _,M,N;const E=A;if(E!=null&&E.length){const F=v,P=(_=a==null?void 0:a.inlineConditionalRules)==null?void 0:_.rules[T].conditions[x].children;for(const[O,j]of P.entries()){(M=j==null?void 0:j.attributes)!=null&&M.required;const U=_t.findIndex(E,function(le){return le.fieldId===j.uuid});S?U===-1&&(E.push({postData:[],tabId:l.uuid,tabIndex:u,...a.inlineConditionalRules?{inlineConditionalRules:a.inlineConditionalRules}:{},...a.conditionalTabRules?{conditionalTabRules:a.conditionalTabRules}:{},...a.conditionalSectionRules?{conditionalSectionRules:a.conditionalSectionRules}:{},sectionId:s.uuid,sectionIndex:d,sectionHeading:s.heading,subHeadingText:s.subHeadingText,reviewerChecklist:a==null?void 0:a.reviewerChecklist,rowId:c.uuid,rowIndex:f,columnId:s.uuid,columnIndex:h,inlineConditionalField:!0,fieldIndex:O,fieldId:j.uuid,fieldInputType:a.componentType,fieldTitle:(N=a.label)==null?void 0:N.english,fieldDescription:a.description||null,fieldHelperText:a.helperText||null,fieldHeaderText:a.headerText||null,fieldFooterText:a.footerText||null,fieldTitleAbb:a.abbreviationLabel||a.label,question_abb_table:a.textForTable||null,language:"english",isHiddenfield:a.isHidden&&a.isHidden===1?1:0,isHiddenSection:s.isHidden&&s.isHidden===1?1:0}),F[j==null?void 0:j.uuid]&&delete F[j==null?void 0:j.uuid]):(F[j==null?void 0:j.uuid]&&delete F[j==null?void 0:j.uuid],U>=0&&E.splice(U,1))}const H=Object.keys(F).length;w({progressMaxValue:E==null?void 0:E.length,progressValue:H}),m(E)}},[h,a.abbreviationLabel,a.componentType,a.conditionalSectionRules,a.conditionalTabRules,a.description,a.footerText,a.headerText,a.helperText,a.inlineConditionalRules,a.isHidden,a.label,a==null?void 0:a.reviewerChecklist,a.textForTable,l.uuid,u,c.uuid,f,s.heading,s.isHidden,s.subHeadingText,s.uuid,d,v,w,m,A]);return k.useEffect(()=>(C(g,r,i),()=>{}),[i,e,g,r,C]),o.jsx("div",{children:g&&o.jsx("div",{className:"p-field p-pt-2",children:o.jsx(o.Fragment,{children:o.jsx(cb,{...t,ruleIndex:r,conditionIndex:i,condition:n,data:a})})},i)})};function p2(t){"@babel/helpers - typeof";return p2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p2(t)}function Que(t,e){if(p2(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(p2(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Jue(t){var e=Que(t,"string");return p2(e)=="symbol"?e:e+""}function ub(t,e,n){return(e=Jue(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zue={value:"p-tag-value",icon:"p-tag-icon",root:function(e){var n=e.props;return ft("p-tag p-component",ub(ub({},"p-tag-".concat(n.severity),n.severity!==null),"p-tag-rounded",n.rounded))}},ede=`
|
|
2300
2300
|
@layer primereact {
|
|
2301
2301
|
.p-tag {
|
|
2302
2302
|
display: inline-flex;
|
|
@@ -4164,7 +4164,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4164
4164
|
justify-content: center;
|
|
4165
4165
|
|
|
4166
4166
|
margin-top: 20px;
|
|
4167
|
-
`,j6e=t=>{const{onSetValue:e,row:n,items:r,setItems:i,isLoading:a,setIsLoading:s}=t,{processPending:l}=mh();k.useEffect(()=>{const d=Gt.addListener("clearRepeatableFields",f=>{f===(n==null?void 0:n.uuid)&&i([])});return()=>{d.remove()}});const c=d=>{const f=[...r,...d.items];i(f)};y5e(d=>c(d));const u=async()=>{s(!0),l()};return o.jsxs($6e,{children:[r.map(d=>o.jsx(U6e,{item:d,onSetValue:e,setIsLoading:s},d.id)),r.length?o.jsx(Ot,{type:"button",label:"Upload",className:"p-button-info",onClick:u,disabled:a,loading:a}):null]})},z6e=(t,e)=>{var ee,oe,pe,Ce,De,me,Te;const{field:n,fieldIndex:r,row:i,pageIndex:a,sectionIndex:s,rowIndex:l,columnIndex:c,isDisabled:u}=t,{isAdmin:d,isBuilderMode:f,fileUploadParams:h}=Ht(),{userSelectedLanguage:g,fieldSettingUpdate:v}=sn(),{taskRegisterData:m,userTaskSubmitFormData:A,task_status:w,TASK_PUBLISHED:C,updateUserFormDataSubmit:S,updateTaskRegisterData:T,updateTaskProgressValue:x}=Ar(),[E,_]=k.useState(!1),[M,N]=k.useState([]),[F,P]=k.useState(!1),[H,O]=k.useState(0),[j,U]=k.useState([]),[le,R]=k.useState(!1),[X,ce]=k.useState(!1),Y=()=>{ce(!0)},ae=()=>{ce(!1)},re=Pe=>{if((A==null?void 0:A.length)>0){const Ee=[...A],$=_t.cloneDeep(m);for(const he of Ee)he.fieldId===t.field.uuid&&(he.postData[0]={postValue:Pe});if((Pe==null?void 0:Pe.length)>0?($[n==null?void 0:n.uuid]=Pe,n.isValid=1):(delete $[n==null?void 0:n.uuid],n.isValid=0),!(i!=null&&i.rowIsRepeatable)){T($);const he=Object.keys($).length;x(he)}}},Z=()=>{var Pe,Ee;if(!(i!=null&&i.rowIsRepeatable)){const $=A;if(($==null?void 0:$.length)>0){for(const he of $)if(he.fieldId===n.uuid&&((Pe=he==null?void 0:he.postData)!=null&&Pe.length)){N((Ee=he==null?void 0:he.postData[0])==null?void 0:Ee.postValue),P(!0);break}}}};k.useEffect(()=>{F||Z();const Pe=Gt.addListener("clearRepeatableFields",he=>{he===(i==null?void 0:i.uuid)&&(N([]),O(0),n.isValid=0,v(a,s,l,c,r,n))}),Ee=Gt.addListener("onSubmitUserForm",he=>{var ye;(ye=n==null?void 0:n.attributes)!=null&&ye.required?(M==null?void 0:M.length)>0?n.isValid=1:n.isValid=0:n.isValid=1}),$=Gt.addListener("OnInvalidFieldCatch",he=>{n.uuid===(he==null?void 0:he.fieldId)?O(1):O(0)});return()=>{Ee.remove(),$.remove(),Pe.remove()}});const K=Pe=>{_(Pe)},W=()=>{_(!1)},ge=OV(k.forwardRef((Pe,Ee)=>o.jsx(Ot,{size:"small",type:"button",...Pe,ref:Ee,disabled:f||le||u,children:"Select files"}))),ve=Pe=>{var Ee,$;if(!(i!=null&&i.rowIsRepeatable)){const he=_t.cloneDeep(m);delete he[n==null?void 0:n.uuid],T(he);const ye=Object.keys(he).length;x(ye);const se=A;if(se!=null&&se.length){for(const fe of se)if(fe.fieldId===t.field.uuid&&((Ee=fe==null?void 0:fe.postData)!=null&&Ee.length)){console.log("data?.postData",fe==null?void 0:fe.postData);let Ae=($=fe==null?void 0:fe.postData[0])==null?void 0:$.postValue;Ae=Ae.filter((Le,ze)=>ze!==Pe),console.log("rowIndex",Pe),console.log("letPostDataArray",Ae),fe.postData[0].postValue=Ae,(Ae==null?void 0:Ae.length)>0?n.isValid=1:n.isValid=0;const Ne=j.filter((Le,ze)=>ze!==Pe);U(Ne),N(Ae),P(!0);break}}else{const fe=M.filter((Ne,Le)=>Le!==Pe),Ae=j.filter((Ne,Le)=>Le!==Pe);U(Ae),N(fe)}}},Ie=Pe=>(console.log("rowIndex",l),o.jsx(o.Fragment,{children:o.jsx(Ot,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>ve(Pe==null?void 0:Pe.rowIndex),icon:"pi pi-trash",size:"small"})})),be=Pe=>(console.log("rowDetail",Pe),o.jsx(o.Fragment,{children:o.jsx("a",{href:Pe.fileUrl,download:Pe.fileName,target:"_blank",rel:"noopener noreferrer",children:o.jsx(Ot,{outlined:!0,icon:"pi pi-arrow-down",className:"p-button-primary",size:"small"})})})),de=Pe=>{var Ee;if((A==null?void 0:A.length)>0){const $=[...A],he=_t.findIndex($,function(fe){return fe.rowId===(i==null?void 0:i.uuid)});let ye=(Ee=A[he])==null?void 0:Ee.repeatableFields,se="<ol class='card '>";Pe==null||Pe.map(fe=>{const Ae=fe;se=se+`<li>${Ae==null?void 0:Ae.fileName}</li>`}),se=se+"</ol>",ye={...ye,[n==null?void 0:n.uuid]:se},$[he]={...$[he],repeatableFields:ye},S($)}(Pe==null?void 0:Pe.length)>0?n.isValid=1:n.isValid=0},ne=Pe=>{let Ee=[...M];Ee.push(Pe),Ee=Ee.map(($,he)=>({...$,rowIndex:he})),i!=null&&i.rowIsRepeatable?de(Ee):re(Ee),N([...M,Pe])},q=o.jsxs("div",{onMouseOver:Y,onMouseOut:ae,children:[f&&X&&o.jsx(Wr,{handleFieldSettingsSidebar:K,...t}),o.jsx("div",{className:`field ${f?" py-3 px-4 builder-element-wrapper ":""}${(n==null?void 0:n.isFluid)===!0&&" p-fluid"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:f?"col-12 field-form-builder":"col-12",children:[(n==null?void 0:n.showHeaderText)&&o.jsx("h6",{children:(ee=n==null?void 0:n.headerText)==null?void 0:ee[g==null?void 0:g.type]}),(n==null?void 0:n.showLabel)&&o.jsxs("label",{htmlFor:r,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((oe=n==null?void 0:n.attributes)==null?void 0:oe.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",f?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(pe=n==null?void 0:n.label)==null?void 0:pe[g==null?void 0:g.type]}),o.jsx("span",{className:"ml-3",children:(n==null?void 0:n.showToolTip)&&o.jsx(zi,{message:(Ce=n==null?void 0:n.toolTip)==null?void 0:Ce[g==null?void 0:g.type],position:"right"})})]}),o.jsx("div",{children:(n==null?void 0:n.showHelperText)&&o.jsx("small",{children:(De=n==null?void 0:n.helperText)==null?void 0:De[g==null?void 0:g.type]})}),o.jsxs("div",{className:"mt-3",children:[w!==C&&!d&&o.jsx(o.Fragment,{children:o.jsxs(r9e,{debug:!1,retries:10,chunkSize:35e3,multiple:!1,autoUpload:!1,destination:h,children:[o.jsx(ge,{}),o.jsx(j6e,{items:j,setItems:U,isLoading:le,setIsLoading:R,row:i,inputValue:M,onSetValue:ne})]})}),((me=n==null?void 0:n.attributes)==null?void 0:me.required)&&o.jsx("small",{className:"error",children:H===1&&(M==null?void 0:M.length)===0?(Te=n==null?void 0:n.validationMesssage)==null?void 0:Te[g==null?void 0:g.type]:""}),o.jsx("div",{className:"mt-3",children:o.jsxs(ro,{value:M,emptyMessage:"No Files have been uploaded",children:[o.jsx(Sr,{field:"fileName",header:"Filename"}),o.jsx(Sr,{field:"fileSize",header:"Size"}),o.jsx(Sr,{field:"fileType",header:"type"}),o.jsx(Sr,{style:{width:"10%"},headerStyle:{textAlign:"center"},header:"Download",bodyStyle:{textAlign:"center",overflow:"visible"},body:Pe=>be(Pe)}),w!==C&&o.jsx(Sr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"center",overflow:"visible"},body:Pe=>Ie(Pe)})]})})]})]}),d&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[E===!0&&o.jsx(Qi,{visibilty:E,closeSettingFieldSidebar:W,...t}),o.jsx(xi,{...t,fieldWrap:q})]})},H6e=t=>{const{isBuilderMode:e}=Ht(),{field:n}=t,[r,i]=k.useState(!1),a=()=>{i(!0)},s=()=>{i(!1)},[l,c]=k.useState(!1),u=f=>{c(f)},d=()=>{c(!1)};return o.jsxs("div",{onMouseOver:a,onMouseOut:s,children:[e&&l===!0&&o.jsx(sB,{visibilty:l,closeSettingFieldSidebar:d,...t}),o.jsxs("div",{dir:"ltr",className:e?"field-form-builder":"",children:[e&&r&&o.jsx(Wr,{handleFieldSettingsSidebar:u,...t}),o.jsx("div",{className:`field-${(n==null?void 0:n.isFluid)===!0?" p-fluid":" "}`,children:o.jsx("div",{className:"grid",children:o.jsxs("div",{className:e?"col-12 p-fluid":"col-12 ",children:[o.jsx("label",{className:"flex font-bold mb-3 text-gray-900 text-xl",children:"Document"}),o.jsx("ol",{children:n==null?void 0:n.documents.map(f=>o.jsx("li",{children:f==null?void 0:f.url},f==null?void 0:f.uuid))})]})})})]})]})};function vw(){return vw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},vw.apply(null,arguments)}var Oq=b.memo(b.forwardRef(function(t,e){var n=ri.getPTI(t);return b.createElement("svg",vw({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),b.createElement("path",{d:"M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z",fill:"currentColor"}),b.createElement("path",{d:"M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z",fill:"currentColor"}),b.createElement("path",{d:"M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z",fill:"currentColor"}))}));Oq.displayName="ExclamationTriangleIcon";function bw(){return bw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},bw.apply(null,arguments)}var Fq=b.memo(b.forwardRef(function(t,e){var n=ri.getPTI(t);return b.createElement("svg",bw({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z",fill:"currentColor"}))}));Fq.displayName="InfoCircleIcon";function yw(){return yw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},yw.apply(null,arguments)}function Aw(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Y6e(t){if(Array.isArray(t))return Aw(t)}function K6e(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function kq(t,e){if(t){if(typeof t=="string")return Aw(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Aw(t,e):void 0}}function X6e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4167
|
+
`,j6e=t=>{const{onSetValue:e,row:n,items:r,setItems:i,isLoading:a,setIsLoading:s}=t,{processPending:l}=mh();k.useEffect(()=>{const d=Gt.addListener("clearRepeatableFields",f=>{f===(n==null?void 0:n.uuid)&&i([])});return()=>{d.remove()}});const c=d=>{const f=[...r,...d.items];i(f)};y5e(d=>c(d));const u=async()=>{s(!0),l()};return o.jsxs($6e,{children:[r.map(d=>o.jsx(U6e,{item:d,onSetValue:e,setIsLoading:s},d.id)),r.length?o.jsx(Ot,{type:"button",label:"Upload",className:"p-button-info",onClick:u,disabled:a,loading:a}):null]})},z6e=(t,e)=>{var ee,oe,pe,Ce,De,me,Te;const{field:n,fieldIndex:r,row:i,pageIndex:a,sectionIndex:s,rowIndex:l,columnIndex:c,isDisabled:u}=t,{isAdmin:d,isBuilderMode:f,fileUploadParams:h}=Ht(),{userSelectedLanguage:g,fieldSettingUpdate:v}=sn(),{taskRegisterData:m,userTaskSubmitFormData:A,task_status:w,TASK_PUBLISHED:C,updateUserFormDataSubmit:S,updateTaskRegisterData:T,updateTaskProgressValue:x}=Ar(),[E,_]=k.useState(!1),[M,N]=k.useState([]),[F,P]=k.useState(!1),[H,O]=k.useState(0),[j,U]=k.useState([]),[le,R]=k.useState(!1),[X,ce]=k.useState(!1),Y=()=>{ce(!0)},ae=()=>{ce(!1)},re=Pe=>{if((A==null?void 0:A.length)>0){const Ee=[...A],$=_t.cloneDeep(m);for(const he of Ee)he.fieldId===t.field.uuid&&(he.postData[0]={postValue:Pe});if((Pe==null?void 0:Pe.length)>0?($[n==null?void 0:n.uuid]=Pe,n.isValid=1):(delete $[n==null?void 0:n.uuid],n.isValid=0),!(i!=null&&i.rowIsRepeatable)){T($);const he=Object.keys($).length;x(he)}}},Z=()=>{var Pe,Ee;if(!(i!=null&&i.rowIsRepeatable)){const $=A;if(($==null?void 0:$.length)>0){for(const he of $)if(he.fieldId===n.uuid&&((Pe=he==null?void 0:he.postData)!=null&&Pe.length)){N((Ee=he==null?void 0:he.postData[0])==null?void 0:Ee.postValue),P(!0);break}}}};k.useEffect(()=>{F||Z();const Pe=Gt.addListener("clearRepeatableFields",he=>{he===(i==null?void 0:i.uuid)&&(N([]),O(0),n.isValid=0,v(a,s,l,c,r,n))}),Ee=Gt.addListener("onSubmitUserForm",he=>{var ye;(ye=n==null?void 0:n.attributes)!=null&&ye.required?(M==null?void 0:M.length)>0?n.isValid=1:n.isValid=0:n.isValid=1}),$=Gt.addListener("OnInvalidFieldCatch",he=>{n.uuid===(he==null?void 0:he.fieldId)?O(1):O(0)});return()=>{Ee.remove(),$.remove(),Pe.remove()}});const K=Pe=>{_(Pe)},W=()=>{_(!1)},ge=OV(k.forwardRef((Pe,Ee)=>o.jsx(Ot,{size:"small",type:"button",...Pe,ref:Ee,disabled:f||le||u,children:"Select files"}))),ve=Pe=>{var Ee,$;if(!(i!=null&&i.rowIsRepeatable)){const he=_t.cloneDeep(m);delete he[n==null?void 0:n.uuid],T(he);const ye=Object.keys(he).length;x(ye);const se=A;if(se!=null&&se.length){for(const fe of se)if(fe.fieldId===t.field.uuid&&((Ee=fe==null?void 0:fe.postData)!=null&&Ee.length)){console.log("data?.postData",fe==null?void 0:fe.postData);let Ae=($=fe==null?void 0:fe.postData[0])==null?void 0:$.postValue;Ae=Ae.filter((Le,ze)=>ze!==Pe),console.log("rowIndex",Pe),console.log("letPostDataArray",Ae),fe.postData[0].postValue=Ae,(Ae==null?void 0:Ae.length)>0?n.isValid=1:n.isValid=0;const Ne=j.filter((Le,ze)=>ze!==Pe);U(Ne),N(Ae),P(!0);break}}else{const fe=M.filter((Ne,Le)=>Le!==Pe),Ae=j.filter((Ne,Le)=>Le!==Pe);U(Ae),N(fe)}}},Ie=Pe=>(console.log("rowIndex",l),o.jsx(o.Fragment,{children:o.jsx(Ot,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>ve(Pe==null?void 0:Pe.rowIndex),icon:"pi pi-trash",size:"small"})})),be=Pe=>(console.log("rowDetail",Pe),o.jsx(o.Fragment,{children:o.jsx("a",{href:Pe.fileUrl,download:Pe.fileName,target:"_blank",rel:"noopener noreferrer",children:o.jsx(Ot,{outlined:!0,icon:"pi pi-arrow-down",className:"p-button-primary",size:"small"})})})),de=Pe=>{var Ee;if((A==null?void 0:A.length)>0){const $=[...A],he=_t.findIndex($,function(fe){return fe.rowId===(i==null?void 0:i.uuid)});let ye=(Ee=A[he])==null?void 0:Ee.repeatableFields,se="<ol class='card '>";Pe==null||Pe.map(fe=>{const Ae=fe;se=se+`<li>${Ae==null?void 0:Ae.fileName}</li>`}),se=se+"</ol>",ye={...ye,[n==null?void 0:n.uuid]:se},$[he]={...$[he],repeatableFields:ye},S($)}(Pe==null?void 0:Pe.length)>0?n.isValid=1:n.isValid=0},ne=Pe=>{let Ee=[...M];Ee.push(Pe),Ee=Ee.map(($,he)=>({...$,rowIndex:he})),i!=null&&i.rowIsRepeatable?de(Ee):re(Ee),N([...M,Pe])},q=o.jsxs("div",{onMouseOver:Y,onMouseOut:ae,children:[f&&X&&o.jsx(Wr,{handleFieldSettingsSidebar:K,...t}),o.jsxs("div",{className:`field ${f?" py-3 px-4 builder-element-wrapper ":""}${(n==null?void 0:n.isFluid)===!0&&" p-fluid"}`,children:[o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:f?"col-12 field-form-builder":"col-12",children:[(n==null?void 0:n.showHeaderText)&&o.jsx("h6",{children:(ee=n==null?void 0:n.headerText)==null?void 0:ee[g==null?void 0:g.type]}),(n==null?void 0:n.showLabel)&&o.jsxs("label",{htmlFor:r,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((oe=n==null?void 0:n.attributes)==null?void 0:oe.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",f?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(pe=n==null?void 0:n.label)==null?void 0:pe[g==null?void 0:g.type]}),o.jsx("span",{className:"ml-3",children:(n==null?void 0:n.showToolTip)&&o.jsx(zi,{message:(Ce=n==null?void 0:n.toolTip)==null?void 0:Ce[g==null?void 0:g.type],position:"right"})})]}),o.jsx("div",{children:(n==null?void 0:n.showHelperText)&&o.jsx("small",{children:(De=n==null?void 0:n.helperText)==null?void 0:De[g==null?void 0:g.type]})}),o.jsxs("div",{className:"mt-3",children:[w!==C&&!d&&o.jsx(o.Fragment,{children:o.jsxs(r9e,{debug:!1,retries:10,chunkSize:35e3,multiple:!1,autoUpload:!1,destination:h,children:[o.jsx(ge,{}),o.jsx(j6e,{items:j,setItems:U,isLoading:le,setIsLoading:R,row:i,inputValue:M,onSetValue:ne})]})}),((me=n==null?void 0:n.attributes)==null?void 0:me.required)&&o.jsx("small",{className:"error",children:H===1&&(M==null?void 0:M.length)===0?(Te=n==null?void 0:n.validationMesssage)==null?void 0:Te[g==null?void 0:g.type]:""}),o.jsx("div",{className:"mt-3",children:o.jsxs(ro,{value:M,emptyMessage:"No Files have been uploaded",children:[o.jsx(Sr,{field:"fileName",header:"Filename"}),o.jsx(Sr,{field:"fileSize",header:"Size"}),o.jsx(Sr,{field:"fileType",header:"type"}),o.jsx(Sr,{style:{width:"10%"},headerStyle:{textAlign:"center"},header:"Download",bodyStyle:{textAlign:"center",overflow:"visible"},body:Pe=>be(Pe)}),w!==C&&o.jsx(Sr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"center",overflow:"visible"},body:Pe=>Ie(Pe)})]})})]})]}),d&&o.jsx(o.Fragment,{children:o.jsx("div",{className:"col-6",children:o.jsx(ki,{...t})})})]}),d&&o.jsx("hr",{})]})]});return o.jsxs(o.Fragment,{children:[E===!0&&o.jsx(Qi,{visibilty:E,closeSettingFieldSidebar:W,...t}),o.jsx(xi,{...t,fieldWrap:q})]})},H6e=t=>{const{isBuilderMode:e}=Ht(),{field:n}=t,[r,i]=k.useState(!1),a=()=>{i(!0)},s=()=>{i(!1)},[l,c]=k.useState(!1),u=f=>{c(f)},d=()=>{c(!1)};return o.jsxs("div",{onMouseOver:a,onMouseOut:s,children:[e&&l===!0&&o.jsx(sB,{visibilty:l,closeSettingFieldSidebar:d,...t}),o.jsxs("div",{dir:"ltr",className:e?"field-form-builder":"",children:[e&&r&&o.jsx(Wr,{handleFieldSettingsSidebar:u,...t}),o.jsx("div",{className:`field-${(n==null?void 0:n.isFluid)===!0?" p-fluid":" "}`,children:o.jsx("div",{className:"grid",children:o.jsxs("div",{className:e?"col-12 p-fluid":"col-12 ",children:[o.jsx("label",{className:"flex font-bold mb-3 text-gray-900 text-xl",children:"Document"}),o.jsx("ol",{children:n==null?void 0:n.documents.map(f=>o.jsx("li",{children:f==null?void 0:f.url},f==null?void 0:f.uuid))})]})})})]})]})};function vw(){return vw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},vw.apply(null,arguments)}var Oq=b.memo(b.forwardRef(function(t,e){var n=ri.getPTI(t);return b.createElement("svg",vw({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),b.createElement("path",{d:"M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z",fill:"currentColor"}),b.createElement("path",{d:"M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z",fill:"currentColor"}),b.createElement("path",{d:"M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z",fill:"currentColor"}))}));Oq.displayName="ExclamationTriangleIcon";function bw(){return bw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},bw.apply(null,arguments)}var Fq=b.memo(b.forwardRef(function(t,e){var n=ri.getPTI(t);return b.createElement("svg",bw({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z",fill:"currentColor"}))}));Fq.displayName="InfoCircleIcon";function yw(){return yw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},yw.apply(null,arguments)}function Aw(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Y6e(t){if(Array.isArray(t))return Aw(t)}function K6e(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function kq(t,e){if(t){if(typeof t=="string")return Aw(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Aw(t,e):void 0}}function X6e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4168
4168
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ww(t){return Y6e(t)||K6e(t)||kq(t)||X6e()}function R6e(t){if(Array.isArray(t))return t}function G6e(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,s,l=[],c=!0,u=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return l}}function W6e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4169
4169
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sw(t,e){return R6e(t)||G6e(t,e)||kq(t,e)||W6e()}function pg(t){"@babel/helpers - typeof";return pg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pg(t)}function Q6e(t,e){if(pg(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(pg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function J6e(t){var e=Q6e(t,"string");return pg(e)=="symbol"?e:e+""}function Pq(t,e,n){return(e=J6e(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Z6e=`
|
|
4170
4170
|
@layer primereact {
|
|
@@ -58062,64 +58062,64 @@ const W1e = (t) => {
|
|
|
58062
58062
|
{
|
|
58063
58063
|
className: `field ${d && " py-3 px-4 builder-element-wrapper "}${(e == null ? void 0 : e.isFluid) === !0 && " p-fluid"}`,
|
|
58064
58064
|
children: [
|
|
58065
|
-
/* @__PURE__ */
|
|
58066
|
-
|
|
58067
|
-
|
|
58068
|
-
|
|
58069
|
-
|
|
58070
|
-
|
|
58071
|
-
|
|
58072
|
-
|
|
58073
|
-
|
|
58074
|
-
|
|
58075
|
-
|
|
58076
|
-
|
|
58077
|
-
|
|
58078
|
-
|
|
58079
|
-
|
|
58080
|
-
|
|
58081
|
-
|
|
58082
|
-
|
|
58083
|
-
|
|
58084
|
-
|
|
58085
|
-
|
|
58086
|
-
|
|
58087
|
-
|
|
58088
|
-
|
|
58089
|
-
|
|
58090
|
-
|
|
58091
|
-
|
|
58092
|
-
|
|
58093
|
-
|
|
58094
|
-
|
|
58095
|
-
|
|
58096
|
-
|
|
58097
|
-
|
|
58098
|
-
|
|
58099
|
-
|
|
58100
|
-
|
|
58101
|
-
|
|
58102
|
-
|
|
58103
|
-
|
|
58104
|
-
|
|
58105
|
-
|
|
58106
|
-
|
|
58107
|
-
|
|
58108
|
-
|
|
58109
|
-
|
|
58110
|
-
|
|
58111
|
-
|
|
58112
|
-
|
|
58113
|
-
|
|
58114
|
-
|
|
58115
|
-
|
|
58116
|
-
|
|
58117
|
-
|
|
58118
|
-
|
|
58119
|
-
|
|
58120
|
-
/* @__PURE__ */ c("
|
|
58121
|
-
|
|
58122
|
-
|
|
58065
|
+
/* @__PURE__ */ I("div", { className: "grid", children: [
|
|
58066
|
+
/* @__PURE__ */ I(
|
|
58067
|
+
"div",
|
|
58068
|
+
{
|
|
58069
|
+
className: d ? "col-12 field-form-builder " : u ? "col-6" : "col-12",
|
|
58070
|
+
children: [
|
|
58071
|
+
(e == null ? void 0 : e.showHeaderText) && /* @__PURE__ */ c("h6", { children: (H = e == null ? void 0 : e.headerText) == null ? void 0 : H[f == null ? void 0 : f.type] }),
|
|
58072
|
+
(e == null ? void 0 : e.showLabel) && /* @__PURE__ */ I(
|
|
58073
|
+
"label",
|
|
58074
|
+
{
|
|
58075
|
+
htmlFor: n,
|
|
58076
|
+
className: "flex font-bold mb-3 text-gray-900 text-xl",
|
|
58077
|
+
children: [
|
|
58078
|
+
/* @__PURE__ */ c(zi, { ...t }),
|
|
58079
|
+
((J = e == null ? void 0 : e.attributes) == null ? void 0 : J.required) && /* @__PURE__ */ c("span", { className: "must-required mr-1", children: "*" }),
|
|
58080
|
+
" ",
|
|
58081
|
+
d ? /* @__PURE__ */ c(ji, { ...t }) : /* @__PURE__ */ c(we, { children: (pe = e == null ? void 0 : e.label) == null ? void 0 : pe[f == null ? void 0 : f.type] }),
|
|
58082
|
+
/* @__PURE__ */ c("span", { className: "ml-3", children: (e == null ? void 0 : e.showToolTip) && /* @__PURE__ */ c(
|
|
58083
|
+
Ti,
|
|
58084
|
+
{
|
|
58085
|
+
message: (ge = e == null ? void 0 : e.toolTip) == null ? void 0 : ge[f == null ? void 0 : f.type],
|
|
58086
|
+
position: "right"
|
|
58087
|
+
}
|
|
58088
|
+
) })
|
|
58089
|
+
]
|
|
58090
|
+
}
|
|
58091
|
+
),
|
|
58092
|
+
/* @__PURE__ */ c(
|
|
58093
|
+
zs,
|
|
58094
|
+
{
|
|
58095
|
+
rows: e == null ? void 0 : e.textareaRows,
|
|
58096
|
+
cols: e == null ? void 0 : e.textareaCols,
|
|
58097
|
+
autoResize: e == null ? void 0 : e.resizable,
|
|
58098
|
+
id: e == null ? void 0 : e.uuid,
|
|
58099
|
+
placeholder: (_e = e == null ? void 0 : e.placeholder) == null ? void 0 : _e[f == null ? void 0 : f.type],
|
|
58100
|
+
value: E,
|
|
58101
|
+
onFocus: () => N(1),
|
|
58102
|
+
onChange: (ee) => {
|
|
58103
|
+
o != null && o.rowIsRepeatable ? ie(
|
|
58104
|
+
r,
|
|
58105
|
+
i,
|
|
58106
|
+
e,
|
|
58107
|
+
ee.target.value
|
|
58108
|
+
) : ne(ee);
|
|
58109
|
+
},
|
|
58110
|
+
disabled: u || l,
|
|
58111
|
+
className: R === 1 && ((ve = e == null ? void 0 : e.attributes) != null && ve.required) ? E ? "valid" : "invalid" : "valid",
|
|
58112
|
+
readOnly: l
|
|
58113
|
+
}
|
|
58114
|
+
),
|
|
58115
|
+
/* @__PURE__ */ c("div", { children: ((ue = e == null ? void 0 : e.attributes) == null ? void 0 : ue.required) && /* @__PURE__ */ c("small", { className: "error", children: R === 1 && !E ? (te = e == null ? void 0 : e.validationMesssage) == null ? void 0 : te[f == null ? void 0 : f.type] : "" }) }),
|
|
58116
|
+
/* @__PURE__ */ c("div", { children: (e == null ? void 0 : e.showHelperText) && /* @__PURE__ */ c("small", { children: (B = e == null ? void 0 : e.helperText) == null ? void 0 : B[f == null ? void 0 : f.type] }) })
|
|
58117
|
+
]
|
|
58118
|
+
}
|
|
58119
|
+
),
|
|
58120
|
+
u && /* @__PURE__ */ c(we, { children: /* @__PURE__ */ c("div", { className: "col-6", children: /* @__PURE__ */ c(mi, { ...t }) }) })
|
|
58121
|
+
] }),
|
|
58122
|
+
u && /* @__PURE__ */ c("hr", {})
|
|
58123
58123
|
]
|
|
58124
58124
|
}
|
|
58125
58125
|
)
|
|
@@ -60055,7 +60055,7 @@ var m0e = function() {
|
|
|
60055
60055
|
theme: i.theme,
|
|
60056
60056
|
formats: i.formats
|
|
60057
60057
|
};
|
|
60058
|
-
m0e ? w(new Quill(d.current, P)) : import("./quill-
|
|
60058
|
+
m0e ? w(new Quill(d.current, P)) : import("./quill-B8RuYPad.js").then(function(z) {
|
|
60059
60059
|
if (z && Ce.isExist(d.current)) {
|
|
60060
60060
|
var F;
|
|
60061
60061
|
z.default ? F = new z.default(d.current, P) : F = new z(d.current, P), w(F);
|
|
@@ -109991,100 +109991,100 @@ const G8e = q2(NB)`
|
|
|
109991
109991
|
})), i != null && i.rowIsRepeatable ? ue(Ee) : ne(Ee), N([...R, Pe]);
|
|
109992
109992
|
}, B = /* @__PURE__ */ I("div", { onMouseOver: G, onMouseOut: ie, children: [
|
|
109993
109993
|
f && Y && /* @__PURE__ */ c(Vr, { handleFieldSettingsSidebar: H, ...t }),
|
|
109994
|
-
/* @__PURE__ */
|
|
109994
|
+
/* @__PURE__ */ I(
|
|
109995
109995
|
"div",
|
|
109996
109996
|
{
|
|
109997
109997
|
className: `field ${f ? " py-3 px-4 builder-element-wrapper " : ""}${(n == null ? void 0 : n.isFluid) === !0 && " p-fluid"}`,
|
|
109998
|
-
children:
|
|
109999
|
-
/* @__PURE__ */ I("div", { className:
|
|
110000
|
-
|
|
110001
|
-
|
|
110002
|
-
|
|
110003
|
-
|
|
110004
|
-
htmlFor: r,
|
|
110005
|
-
className: "flex font-bold mb-3 text-gray-900 text-xl",
|
|
110006
|
-
children: [
|
|
110007
|
-
/* @__PURE__ */ c(zi, { ...t }),
|
|
110008
|
-
((se = n == null ? void 0 : n.attributes) == null ? void 0 : se.required) && /* @__PURE__ */ c("span", { className: "must-required mr-1", children: "*" }),
|
|
110009
|
-
" ",
|
|
110010
|
-
f ? /* @__PURE__ */ c(ji, { ...t }) : /* @__PURE__ */ c(we, { children: (he = n == null ? void 0 : n.label) == null ? void 0 : he[m == null ? void 0 : m.type] }),
|
|
110011
|
-
/* @__PURE__ */ c("span", { className: "ml-3", children: (n == null ? void 0 : n.showToolTip) && /* @__PURE__ */ c(
|
|
110012
|
-
Ti,
|
|
110013
|
-
{
|
|
110014
|
-
message: (Se = n == null ? void 0 : n.toolTip) == null ? void 0 : Se[m == null ? void 0 : m.type],
|
|
110015
|
-
position: "right"
|
|
110016
|
-
}
|
|
110017
|
-
) })
|
|
110018
|
-
]
|
|
110019
|
-
}
|
|
110020
|
-
),
|
|
110021
|
-
/* @__PURE__ */ c("div", { children: (n == null ? void 0 : n.showHelperText) && /* @__PURE__ */ c("small", { children: (De = n == null ? void 0 : n.helperText) == null ? void 0 : De[m == null ? void 0 : m.type] }) }),
|
|
110022
|
-
/* @__PURE__ */ I("div", { className: "mt-3", children: [
|
|
110023
|
-
x !== S && !d && /* @__PURE__ */ c(we, { children: /* @__PURE__ */ I(
|
|
110024
|
-
g7e,
|
|
110025
|
-
{
|
|
110026
|
-
debug: !1,
|
|
110027
|
-
retries: 10,
|
|
110028
|
-
chunkSize: 35e3,
|
|
110029
|
-
multiple: !1,
|
|
110030
|
-
autoUpload: !1,
|
|
110031
|
-
destination: p,
|
|
110032
|
-
children: [
|
|
110033
|
-
/* @__PURE__ */ c(pe, {}),
|
|
110034
|
-
/* @__PURE__ */ c(
|
|
110035
|
-
tbe,
|
|
110036
|
-
{
|
|
110037
|
-
items: j,
|
|
110038
|
-
setItems: $,
|
|
110039
|
-
isLoading: oe,
|
|
110040
|
-
setIsLoading: K,
|
|
110041
|
-
row: i,
|
|
110042
|
-
inputValue: R,
|
|
110043
|
-
onSetValue: te
|
|
110044
|
-
}
|
|
110045
|
-
)
|
|
110046
|
-
]
|
|
110047
|
-
}
|
|
110048
|
-
) }),
|
|
110049
|
-
((me = n == null ? void 0 : n.attributes) == null ? void 0 : me.required) && /* @__PURE__ */ c("small", { className: "error", children: z === 1 && (R == null ? void 0 : R.length) === 0 ? (Te = n == null ? void 0 : n.validationMesssage) == null ? void 0 : Te[m == null ? void 0 : m.type] : "" }),
|
|
110050
|
-
/* @__PURE__ */ c("div", { className: "mt-3", children: /* @__PURE__ */ I(
|
|
110051
|
-
Qs,
|
|
109998
|
+
children: [
|
|
109999
|
+
/* @__PURE__ */ I("div", { className: "grid", children: [
|
|
110000
|
+
/* @__PURE__ */ I("div", { className: f ? "col-12 field-form-builder" : "col-12", children: [
|
|
110001
|
+
(n == null ? void 0 : n.showHeaderText) && /* @__PURE__ */ c("h6", { children: (ee = n == null ? void 0 : n.headerText) == null ? void 0 : ee[m == null ? void 0 : m.type] }),
|
|
110002
|
+
(n == null ? void 0 : n.showLabel) && /* @__PURE__ */ I(
|
|
110003
|
+
"label",
|
|
110052
110004
|
{
|
|
110053
|
-
|
|
110054
|
-
|
|
110005
|
+
htmlFor: r,
|
|
110006
|
+
className: "flex font-bold mb-3 text-gray-900 text-xl",
|
|
110055
110007
|
children: [
|
|
110056
|
-
/* @__PURE__ */ c(
|
|
110057
|
-
/* @__PURE__ */ c(
|
|
110058
|
-
|
|
110059
|
-
/* @__PURE__ */ c(
|
|
110060
|
-
|
|
110061
|
-
|
|
110062
|
-
style: { width: "10%" },
|
|
110063
|
-
headerStyle: { textAlign: "center" },
|
|
110064
|
-
header: "Download",
|
|
110065
|
-
bodyStyle: { textAlign: "center", overflow: "visible" },
|
|
110066
|
-
body: (Pe) => ve(Pe)
|
|
110067
|
-
}
|
|
110068
|
-
),
|
|
110069
|
-
x !== S && /* @__PURE__ */ c(
|
|
110070
|
-
gr,
|
|
110008
|
+
/* @__PURE__ */ c(zi, { ...t }),
|
|
110009
|
+
((se = n == null ? void 0 : n.attributes) == null ? void 0 : se.required) && /* @__PURE__ */ c("span", { className: "must-required mr-1", children: "*" }),
|
|
110010
|
+
" ",
|
|
110011
|
+
f ? /* @__PURE__ */ c(ji, { ...t }) : /* @__PURE__ */ c(we, { children: (he = n == null ? void 0 : n.label) == null ? void 0 : he[m == null ? void 0 : m.type] }),
|
|
110012
|
+
/* @__PURE__ */ c("span", { className: "ml-3", children: (n == null ? void 0 : n.showToolTip) && /* @__PURE__ */ c(
|
|
110013
|
+
Ti,
|
|
110071
110014
|
{
|
|
110072
|
-
|
|
110073
|
-
|
|
110074
|
-
bodyStyle: { textAlign: "center", overflow: "visible" },
|
|
110075
|
-
body: (Pe) => _e(Pe)
|
|
110015
|
+
message: (Se = n == null ? void 0 : n.toolTip) == null ? void 0 : Se[m == null ? void 0 : m.type],
|
|
110016
|
+
position: "right"
|
|
110076
110017
|
}
|
|
110077
|
-
)
|
|
110018
|
+
) })
|
|
110078
110019
|
]
|
|
110079
110020
|
}
|
|
110080
|
-
)
|
|
110081
|
-
|
|
110021
|
+
),
|
|
110022
|
+
/* @__PURE__ */ c("div", { children: (n == null ? void 0 : n.showHelperText) && /* @__PURE__ */ c("small", { children: (De = n == null ? void 0 : n.helperText) == null ? void 0 : De[m == null ? void 0 : m.type] }) }),
|
|
110023
|
+
/* @__PURE__ */ I("div", { className: "mt-3", children: [
|
|
110024
|
+
x !== S && !d && /* @__PURE__ */ c(we, { children: /* @__PURE__ */ I(
|
|
110025
|
+
g7e,
|
|
110026
|
+
{
|
|
110027
|
+
debug: !1,
|
|
110028
|
+
retries: 10,
|
|
110029
|
+
chunkSize: 35e3,
|
|
110030
|
+
multiple: !1,
|
|
110031
|
+
autoUpload: !1,
|
|
110032
|
+
destination: p,
|
|
110033
|
+
children: [
|
|
110034
|
+
/* @__PURE__ */ c(pe, {}),
|
|
110035
|
+
/* @__PURE__ */ c(
|
|
110036
|
+
tbe,
|
|
110037
|
+
{
|
|
110038
|
+
items: j,
|
|
110039
|
+
setItems: $,
|
|
110040
|
+
isLoading: oe,
|
|
110041
|
+
setIsLoading: K,
|
|
110042
|
+
row: i,
|
|
110043
|
+
inputValue: R,
|
|
110044
|
+
onSetValue: te
|
|
110045
|
+
}
|
|
110046
|
+
)
|
|
110047
|
+
]
|
|
110048
|
+
}
|
|
110049
|
+
) }),
|
|
110050
|
+
((me = n == null ? void 0 : n.attributes) == null ? void 0 : me.required) && /* @__PURE__ */ c("small", { className: "error", children: z === 1 && (R == null ? void 0 : R.length) === 0 ? (Te = n == null ? void 0 : n.validationMesssage) == null ? void 0 : Te[m == null ? void 0 : m.type] : "" }),
|
|
110051
|
+
/* @__PURE__ */ c("div", { className: "mt-3", children: /* @__PURE__ */ I(
|
|
110052
|
+
Qs,
|
|
110053
|
+
{
|
|
110054
|
+
value: R,
|
|
110055
|
+
emptyMessage: "No Files have been uploaded",
|
|
110056
|
+
children: [
|
|
110057
|
+
/* @__PURE__ */ c(gr, { field: "fileName", header: "Filename" }),
|
|
110058
|
+
/* @__PURE__ */ c(gr, { field: "fileSize", header: "Size" }),
|
|
110059
|
+
/* @__PURE__ */ c(gr, { field: "fileType", header: "type" }),
|
|
110060
|
+
/* @__PURE__ */ c(
|
|
110061
|
+
gr,
|
|
110062
|
+
{
|
|
110063
|
+
style: { width: "10%" },
|
|
110064
|
+
headerStyle: { textAlign: "center" },
|
|
110065
|
+
header: "Download",
|
|
110066
|
+
bodyStyle: { textAlign: "center", overflow: "visible" },
|
|
110067
|
+
body: (Pe) => ve(Pe)
|
|
110068
|
+
}
|
|
110069
|
+
),
|
|
110070
|
+
x !== S && /* @__PURE__ */ c(
|
|
110071
|
+
gr,
|
|
110072
|
+
{
|
|
110073
|
+
style: { width: "10%" },
|
|
110074
|
+
headerStyle: { textAlign: "center" },
|
|
110075
|
+
bodyStyle: { textAlign: "center", overflow: "visible" },
|
|
110076
|
+
body: (Pe) => _e(Pe)
|
|
110077
|
+
}
|
|
110078
|
+
)
|
|
110079
|
+
]
|
|
110080
|
+
}
|
|
110081
|
+
) })
|
|
110082
|
+
] })
|
|
110083
|
+
] }),
|
|
110084
|
+
d && /* @__PURE__ */ c(we, { children: /* @__PURE__ */ c("div", { className: "col-6", children: /* @__PURE__ */ c(mi, { ...t }) }) })
|
|
110082
110085
|
] }),
|
|
110083
|
-
d && /* @__PURE__ */
|
|
110084
|
-
|
|
110085
|
-
/* @__PURE__ */ c(mi, { ...t })
|
|
110086
|
-
] })
|
|
110087
|
-
] })
|
|
110086
|
+
d && /* @__PURE__ */ c("hr", {})
|
|
110087
|
+
]
|
|
110088
110088
|
}
|
|
110089
110089
|
)
|
|
110090
110090
|
] });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Bl = Object.defineProperty;
|
|
2
2
|
var Ml = (n, t, e) => t in n ? Bl(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
3
|
var T = (n, t, e) => Ml(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { d as ti, i as Rr, a as Hi, b as Dl, e as Br, M as Ul, S as ei, U as si, g as ni, c as ri, f as fr, h as zs, j as $i, k as Vs, l as dr, m as Pl, n as jl, o as Fi, p as Hl, q as $l, r as Fl, s as zl, t as ii, u as Kl, v as Gl, w as Ft, x as zi, y as xe } from "./main-
|
|
4
|
+
import { d as ti, i as Rr, a as Hi, b as Dl, e as Br, M as Ul, S as ei, U as si, g as ni, c as ri, f as fr, h as zs, j as $i, k as Vs, l as dr, m as Pl, n as jl, o as Fi, p as Hl, q as $l, r as Fl, s as zl, t as ii, u as Kl, v as Gl, w as Ft, x as zi, y as xe } from "./main-BmzUzTwt.js";
|
|
5
5
|
function Ki(n) {
|
|
6
6
|
return n;
|
|
7
7
|
}
|