@thecb/components 5.6.5-beta.0 → 5.6.7
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/index.cjs.js +87 -75
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +87 -75
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/atoms/form-layouts/FormInput.js +8 -8
- package/src/components/atoms/layouts/Cluster.js +4 -4
- package/src/components/atoms/layouts/Cluster.styled.js +4 -4
- package/src/components/atoms/nav-footer/NavFooter.stories.js +1 -1
- package/src/components/molecules/tabs/Tabs.js +3 -3
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.js +2 -3
package/dist/index.cjs.js
CHANGED
|
@@ -6401,17 +6401,17 @@ var ClusterWrapper = styled__default(function (_ref) {
|
|
|
6401
6401
|
var overflow = _ref2.overflow;
|
|
6402
6402
|
return overflow ? "visible" : "hidden";
|
|
6403
6403
|
}, function (_ref3) {
|
|
6404
|
-
var justifySelf = _ref3
|
|
6405
|
-
return justifySelf;
|
|
6404
|
+
var $justifySelf = _ref3.$justifySelf;
|
|
6405
|
+
return $justifySelf;
|
|
6406
6406
|
}, function (_ref4) {
|
|
6407
|
-
var alignSelf = _ref4
|
|
6408
|
-
return alignSelf;
|
|
6407
|
+
var $alignSelf = _ref4.$alignSelf;
|
|
6408
|
+
return $alignSelf;
|
|
6409
6409
|
}, function (_ref5) {
|
|
6410
|
-
var flexGrow = _ref5
|
|
6411
|
-
return flexGrow;
|
|
6410
|
+
var $flexGrow = _ref5.$flexGrow;
|
|
6411
|
+
return $flexGrow;
|
|
6412
6412
|
}, function (_ref6) {
|
|
6413
|
-
var extraStyles = _ref6
|
|
6414
|
-
return extraStyles;
|
|
6413
|
+
var $extraStyles = _ref6.$extraStyles;
|
|
6414
|
+
return $extraStyles;
|
|
6415
6415
|
});
|
|
6416
6416
|
var ClusterInnerWrapper = styled__default.div.withConfig({
|
|
6417
6417
|
displayName: "Clusterstyled__ClusterInnerWrapper",
|
|
@@ -6468,10 +6468,10 @@ var Cluster = function Cluster(_ref) {
|
|
|
6468
6468
|
return /*#__PURE__*/React__default.createElement(ClusterWrapper, _extends({
|
|
6469
6469
|
overflow: overflow
|
|
6470
6470
|
}, rest, {
|
|
6471
|
-
justifySelf: justifySelf,
|
|
6472
|
-
alignSelf: alignSelf,
|
|
6473
|
-
flexGrow: flexGrow,
|
|
6474
|
-
extraStyles: extraStyles
|
|
6471
|
+
$justifySelf: justifySelf,
|
|
6472
|
+
$alignSelf: alignSelf,
|
|
6473
|
+
$flexGrow: flexGrow,
|
|
6474
|
+
$extraStyles: extraStyles
|
|
6475
6475
|
}), /*#__PURE__*/React__default.createElement(ClusterInnerWrapper, {
|
|
6476
6476
|
justify: justify,
|
|
6477
6477
|
align: align,
|
|
@@ -21063,8 +21063,8 @@ var InputField = styled__default.input.withConfig({
|
|
|
21063
21063
|
themeValues = _ref.themeValues;
|
|
21064
21064
|
return field.dirty && field.hasErrors || field.hasErrors && showErrors ? ERROR_COLOR : themeValues.borderColor;
|
|
21065
21065
|
}, function (_ref2) {
|
|
21066
|
-
var customHeight = _ref2
|
|
21067
|
-
return customHeight ? customHeight : "48px";
|
|
21066
|
+
var $customHeight = _ref2.$customHeight;
|
|
21067
|
+
return $customHeight ? $customHeight : "48px";
|
|
21068
21068
|
}, FONT_WEIGHT_REGULAR, function (_ref3) {
|
|
21069
21069
|
var themeValues = _ref3.themeValues;
|
|
21070
21070
|
return themeValues.inputBackgroundColor && themeValues.inputBackgroundColor;
|
|
@@ -21079,8 +21079,8 @@ var InputField = styled__default.input.withConfig({
|
|
|
21079
21079
|
var disabled = _ref6.disabled;
|
|
21080
21080
|
return disabled && styled.css(["color:#6e727e;background-color:#f7f7f7;"]);
|
|
21081
21081
|
}, function (_ref7) {
|
|
21082
|
-
var extraStyles = _ref7
|
|
21083
|
-
return styled.css(["", ""], extraStyles);
|
|
21082
|
+
var $extraStyles = _ref7.$extraStyles;
|
|
21083
|
+
return styled.css(["", ""], $extraStyles);
|
|
21084
21084
|
}); // eslint-disable-next-line no-unused-vars
|
|
21085
21085
|
|
|
21086
21086
|
var FormattedInputField = styled__default(function (_ref8) {
|
|
@@ -21098,8 +21098,8 @@ var FormattedInputField = styled__default(function (_ref8) {
|
|
|
21098
21098
|
themeValues = _ref9.themeValues;
|
|
21099
21099
|
return field.dirty && field.hasErrors || field.hasErrors && showErrors ? ERROR_COLOR : themeValues.borderColor;
|
|
21100
21100
|
}, function (_ref10) {
|
|
21101
|
-
var customHeight = _ref10
|
|
21102
|
-
return customHeight ? customHeight : "48px";
|
|
21101
|
+
var $customHeight = _ref10.$customHeight;
|
|
21102
|
+
return $customHeight ? $customHeight : "48px";
|
|
21103
21103
|
}, FONT_WEIGHT_REGULAR, function (_ref11) {
|
|
21104
21104
|
var themeValues = _ref11.themeValues;
|
|
21105
21105
|
return themeValues.inputBackgroundColor && themeValues.inputBackgroundColor;
|
|
@@ -21209,8 +21209,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
21209
21209
|
showErrors: showErrors,
|
|
21210
21210
|
"data-qa": labelTextWhenNoError,
|
|
21211
21211
|
themeValues: themeValues,
|
|
21212
|
-
customHeight: customHeight,
|
|
21213
|
-
extraStyles: extraStyles
|
|
21212
|
+
$customHeight: customHeight,
|
|
21213
|
+
$extraStyles: extraStyles
|
|
21214
21214
|
}, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
|
|
21215
21215
|
"aria-labelledby": labelTextWhenNoError.replace(/\s+/g, "-"),
|
|
21216
21216
|
onChange: function onChange(e) {
|
|
@@ -21225,8 +21225,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
21225
21225
|
"data-qa": labelTextWhenNoError,
|
|
21226
21226
|
themeValues: themeValues,
|
|
21227
21227
|
background: background,
|
|
21228
|
-
customHeight: customHeight,
|
|
21229
|
-
extraStyles: extraStyles
|
|
21228
|
+
$customHeight: customHeight,
|
|
21229
|
+
$extraStyles: extraStyles
|
|
21230
21230
|
}, props))), /*#__PURE__*/React__default.createElement(Stack, {
|
|
21231
21231
|
direction: "row",
|
|
21232
21232
|
justify: "space-between"
|
|
@@ -33188,25 +33188,37 @@ const validatorToPredicate = (validatorFn, emptyCase) => (
|
|
|
33188
33188
|
|
|
33189
33189
|
var commonjsGlobal$1 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
33190
33190
|
|
|
33191
|
-
|
|
33192
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
33193
|
-
}
|
|
33191
|
+
var dayjs_min = {exports: {}};
|
|
33194
33192
|
|
|
33195
|
-
|
|
33193
|
+
(function (module, exports) {
|
|
33196
33194
|
!function(t,e){module.exports=e();}(commonjsGlobal$1,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",$="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},D="en",v={};v[D]=M;var p=function(t){return t instanceof _},S=function(t,e,n){var r;if(!t)return D;if("string"==typeof t)v[t]&&(r=t),e&&(v[t]=e,r=t);else {var i=t.name;v[i]=t,r=i;}return !n&&r&&(D=r),r||!n&&D},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=g;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(l);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===$)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),$=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},l=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(h){case c:return r?$(1,0):$(31,11);case f:return r?$(1,M):$(0,M+1);case o:var D=this.$locale().weekStart||0,v=(y<D?y+7:y)-D;return $(r?m-v:m+(6-v),M);case a:case d:return l(g+"Hours",0);case u:return l(g+"Minutes",1);case s:return l(g+"Seconds",2);case i:return l(g+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),$=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],l=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[$](l),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else $&&this.$d[$](l);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,$=this;r=Number(r);var l=O.p(h),y=function(t){var e=w($);return O.w(e.date(e.date()+Math.round(t*r)),$)};if(l===f)return this.set(f,this.$M+r);if(l===c)return this.set(c,this.$y+r);if(l===a)return y(1);if(l===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[l]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||$;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].substr(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},l={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||l[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,$){var l,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,g=this-M,D=O.m(this,M);return D=(l={},l[c]=D/12,l[f]=D,l[h]=D/3,l[o]=(g-m)/6048e5,l[a]=(g-m)/864e5,l[u]=g/n,l[s]=g/e,l[i]=g/t,l)[y]||g,$?D:O.a(D)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return v[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),b=_.prototype;return w.prototype=b,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=v[D],w.Ls=v,w.p={},w}));
|
|
33197
|
-
});
|
|
33195
|
+
}(dayjs_min));
|
|
33196
|
+
|
|
33197
|
+
var dayjs = dayjs_min.exports;
|
|
33198
|
+
|
|
33199
|
+
var customParseFormat$1 = {exports: {}};
|
|
33198
33200
|
|
|
33199
|
-
|
|
33201
|
+
(function (module, exports) {
|
|
33200
33202
|
!function(t,e){module.exports=e();}(commonjsGlobal$1,(function(){var t={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"},e=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^\s\d-_:/()]+/,o={},s=function(t){return (t=+t)+(t>68?1900:2e3)};var a=function(t){return function(e){this[t]=+e;}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t);}],u=function(t){var e=o[t];return e&&(e.indexOf?e:e.s.concat(e.f))},h=function(t,e){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(t.indexOf(r(i,0,e))>-1){n=i>12;break}}else n=t===(e?"pm":"PM");return n},d={A:[i,function(t){this.afternoon=h(t,!1);}],a:[i,function(t){this.afternoon=h(t,!0);}],S:[/\d/,function(t){this.milliseconds=100*+t;}],SS:[n,function(t){this.milliseconds=10*+t;}],SSS:[/\d{3}/,function(t){this.milliseconds=+t;}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n,a("day")],Do:[i,function(t){var e=o.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var r=1;r<=31;r+=1)e(r).replace(/\[|\]/g,"")===t&&(this.day=r);}],M:[r,a("month")],MM:[n,a("month")],MMM:[i,function(t){var e=u("months"),n=(u("monthsShort")||e.map((function(t){return t.substr(0,3)}))).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n;}],MMMM:[i,function(t){var e=u("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e;}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(t){this.year=s(t);}],YYYY:[/\d{4}/,a("year")],Z:f,ZZ:f};function c(n){var r,i;r=n,i=o&&o.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,r){var o=r&&r.toUpperCase();return n||i[r]||t[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),a=s.length,f=0;f<a;f+=1){var u=s[f],h=d[u],c=h&&h[0],l=h&&h[1];s[f]=l?{regex:c,parser:l}:u.replace(/^\[|\]$/g,"");}return function(t){for(var e={},n=0,r=0;n<a;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;else {var o=i.regex,f=i.parser,u=t.substr(r),h=o.exec(u)[0];f.call(e,h),t=t.replace(h,"");}}return function(t){var e=t.afternoon;if(void 0!==e){var n=t.hours;e?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon;}}(e),e}}return function(t,e,n){n.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(s=t.parseTwoDigitYear);var r=e.prototype,i=r.parse;r.parse=function(t){var e=t.date,r=t.utc,s=t.args;this.$u=r;var a=s[1];if("string"==typeof a){var f=!0===s[2],u=!0===s[3],h=f||u,d=s[2];u&&(d=s[2]),o=this.$locale(),!f&&d&&(o=n.Ls[d]),this.$d=function(t,e,n){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var r=c(e)(t),i=r.year,o=r.month,s=r.day,a=r.hours,f=r.minutes,u=r.seconds,h=r.milliseconds,d=r.zone,l=new Date,m=s||(i||o?1:l.getDate()),M=i||l.getFullYear(),Y=0;i&&!o||(Y=o>0?o-1:l.getMonth());var p=a||0,v=f||0,D=u||0,g=h||0;return d?new Date(Date.UTC(M,Y,m,p,v,D,g+60*d.offset*1e3)):n?new Date(Date.UTC(M,Y,m,p,v,D,g)):new Date(M,Y,m,p,v,D,g)}catch(t){return new Date("")}}(e,a,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),h&&e!=this.format(a)&&(this.$d=new Date("")),o={};}else if(a instanceof Array)for(var l=a.length,m=1;m<=l;m+=1){s[1]=a[m-1];var M=n.apply(this,s);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===l&&(this.$d=new Date(""));}else i.call(this,t);};}}));
|
|
33201
|
-
});
|
|
33203
|
+
}(customParseFormat$1));
|
|
33204
|
+
|
|
33205
|
+
var customParseFormat = customParseFormat$1.exports;
|
|
33206
|
+
|
|
33207
|
+
var isSameOrBefore$1 = {exports: {}};
|
|
33202
33208
|
|
|
33203
|
-
|
|
33209
|
+
(function (module, exports) {
|
|
33204
33210
|
!function(e,i){module.exports=i();}(commonjsGlobal$1,(function(){return function(e,i){i.prototype.isSameOrBefore=function(e,i){return this.isSame(e,i)||this.isBefore(e,i)};}}));
|
|
33205
|
-
});
|
|
33211
|
+
}(isSameOrBefore$1));
|
|
33212
|
+
|
|
33213
|
+
var isSameOrBefore = isSameOrBefore$1.exports;
|
|
33206
33214
|
|
|
33207
|
-
var isSameOrAfter
|
|
33215
|
+
var isSameOrAfter$1 = {exports: {}};
|
|
33216
|
+
|
|
33217
|
+
(function (module, exports) {
|
|
33208
33218
|
!function(e,t){module.exports=t();}(commonjsGlobal$1,(function(){return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)};}}));
|
|
33209
|
-
});
|
|
33219
|
+
}(isSameOrAfter$1));
|
|
33220
|
+
|
|
33221
|
+
var isSameOrAfter = isSameOrAfter$1.exports;
|
|
33210
33222
|
|
|
33211
33223
|
/* eslint-disable no-unused-vars */
|
|
33212
33224
|
|
|
@@ -33216,9 +33228,9 @@ const createValidator = (type, error) => {
|
|
|
33216
33228
|
return validator;
|
|
33217
33229
|
};
|
|
33218
33230
|
|
|
33219
|
-
|
|
33220
|
-
|
|
33221
|
-
|
|
33231
|
+
dayjs.extend(customParseFormat);
|
|
33232
|
+
dayjs.extend(isSameOrBefore);
|
|
33233
|
+
dayjs.extend(isSameOrAfter);
|
|
33222
33234
|
|
|
33223
33235
|
let validatorFns = {};
|
|
33224
33236
|
|
|
@@ -33297,15 +33309,14 @@ const MATCHES_FIELD = "validator/MATCHES_FIELD";
|
|
|
33297
33309
|
const MATCHES_FIELD_ERROR$1 = "error/MATCHES_FIELD";
|
|
33298
33310
|
const matchesField = createValidator(MATCHES_FIELD, MATCHES_FIELD_ERROR$1);
|
|
33299
33311
|
validatorFns[MATCHES_FIELD] = (value, args, form) => {
|
|
33300
|
-
|
|
33301
|
-
|
|
33302
|
-
}
|
|
33303
|
-
if (form[args[0]] === undefined) {
|
|
33312
|
+
const dependentField = form[args[0]];
|
|
33313
|
+
if (dependentField === undefined) {
|
|
33304
33314
|
throw new Error(
|
|
33305
33315
|
`${args[0]} was passed to matchesField, but that field does not exist in the form`
|
|
33306
33316
|
);
|
|
33307
33317
|
}
|
|
33308
|
-
|
|
33318
|
+
const dependentFieldValue = dependentField.rawValue;
|
|
33319
|
+
return value === dependentFieldValue;
|
|
33309
33320
|
};
|
|
33310
33321
|
|
|
33311
33322
|
const validateWhenErrorMessage = type =>
|
|
@@ -33448,8 +33459,8 @@ validatorFns[DATE_BEFORE_TODAY] = (value, args, form) => {
|
|
|
33448
33459
|
"Date format and unit need to be defined for dateBeforeToday, one or both are undefined"
|
|
33449
33460
|
);
|
|
33450
33461
|
}
|
|
33451
|
-
const now =
|
|
33452
|
-
const dateValue =
|
|
33462
|
+
const now = dayjs();
|
|
33463
|
+
const dateValue = dayjs(value, dateFormat);
|
|
33453
33464
|
|
|
33454
33465
|
if (inclusive === true) {
|
|
33455
33466
|
return dateValue.isSameOrBefore(now, unit);
|
|
@@ -33476,8 +33487,8 @@ validatorFns[DATE_AFTER_TODAY] = (value, args, form) => {
|
|
|
33476
33487
|
"Date format and unit need to be defined for dateAfterToday, one or both are undefined"
|
|
33477
33488
|
);
|
|
33478
33489
|
}
|
|
33479
|
-
const now =
|
|
33480
|
-
const dateValue =
|
|
33490
|
+
const now = dayjs();
|
|
33491
|
+
const dateValue = dayjs(value, dateFormat);
|
|
33481
33492
|
|
|
33482
33493
|
if (inclusive === true) {
|
|
33483
33494
|
return dateValue.isSameOrAfter(now, unit);
|
|
@@ -33861,7 +33872,7 @@ function get(state, prop) {
|
|
|
33861
33872
|
return value;
|
|
33862
33873
|
}
|
|
33863
33874
|
|
|
33864
|
-
function set(state, prop, value) {
|
|
33875
|
+
function set$1(state, prop, value) {
|
|
33865
33876
|
assertUnrevoked(state);
|
|
33866
33877
|
state.assigned[prop] = true;
|
|
33867
33878
|
|
|
@@ -33912,8 +33923,8 @@ function proxyProperty(draft, prop, enumerable) {
|
|
|
33912
33923
|
return get(this[DRAFT_STATE], prop);
|
|
33913
33924
|
},
|
|
33914
33925
|
|
|
33915
|
-
set: function set$1(value) {
|
|
33916
|
-
set(this[DRAFT_STATE], prop, value);
|
|
33926
|
+
set: function set$1$1(value) {
|
|
33927
|
+
set$1(this[DRAFT_STATE], prop, value);
|
|
33917
33928
|
}
|
|
33918
33929
|
|
|
33919
33930
|
};
|
|
@@ -34094,7 +34105,7 @@ var objectTraps = {
|
|
|
34094
34105
|
return Reflect.ownKeys(source$1(target));
|
|
34095
34106
|
},
|
|
34096
34107
|
|
|
34097
|
-
set: set$1,
|
|
34108
|
+
set: set$1$1,
|
|
34098
34109
|
deleteProperty: deleteProperty,
|
|
34099
34110
|
getOwnPropertyDescriptor: getOwnPropertyDescriptor,
|
|
34100
34111
|
|
|
@@ -34172,7 +34183,7 @@ function get$1(state, prop) {
|
|
|
34172
34183
|
return drafts[prop] = createProxy$1(value, state);
|
|
34173
34184
|
}
|
|
34174
34185
|
|
|
34175
|
-
function set$1(state, prop, value) {
|
|
34186
|
+
function set$1$1(state, prop, value) {
|
|
34176
34187
|
if (!state.modified) {
|
|
34177
34188
|
var baseValue = peek$1(state.base, prop); // Optimize based on value's truthiness. Truthy values are guaranteed to
|
|
34178
34189
|
// never be undefined, so we can avoid the `in` operator. Lastly, truthy
|
|
@@ -34395,7 +34406,7 @@ var Immer = function Immer(config) {
|
|
|
34395
34406
|
};
|
|
34396
34407
|
|
|
34397
34408
|
Immer.prototype.produce = function produce (base, recipe, patchListener) {
|
|
34398
|
-
var this$1 = this;
|
|
34409
|
+
var this$1$1 = this;
|
|
34399
34410
|
|
|
34400
34411
|
// curried invocation
|
|
34401
34412
|
if (typeof base === "function" && typeof recipe !== "function") {
|
|
@@ -34403,12 +34414,12 @@ Immer.prototype.produce = function produce (base, recipe, patchListener) {
|
|
|
34403
34414
|
recipe = base;
|
|
34404
34415
|
var self = this;
|
|
34405
34416
|
return function curriedProduce(base) {
|
|
34406
|
-
var this$1 = this;
|
|
34417
|
+
var this$1$1 = this;
|
|
34407
34418
|
if ( base === void 0 ) base = defaultBase;
|
|
34408
34419
|
var args = [], len = arguments.length - 1;
|
|
34409
34420
|
while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];
|
|
34410
34421
|
|
|
34411
|
-
return self.produce(base, function (draft) { return recipe.call.apply(recipe, [ this$1, draft ].concat( args )); }); // prettier-ignore
|
|
34422
|
+
return self.produce(base, function (draft) { return recipe.call.apply(recipe, [ this$1$1, draft ].concat( args )); }); // prettier-ignore
|
|
34412
34423
|
};
|
|
34413
34424
|
} // prettier-ignore
|
|
34414
34425
|
|
|
@@ -34440,7 +34451,7 @@ Immer.prototype.produce = function produce (base, recipe, patchListener) {
|
|
|
34440
34451
|
if (result instanceof Promise) {
|
|
34441
34452
|
return result.then(function (result) {
|
|
34442
34453
|
scope.usePatches(patchListener);
|
|
34443
|
-
return this$1.processResult(result, scope);
|
|
34454
|
+
return this$1$1.processResult(result, scope);
|
|
34444
34455
|
}, function (error) {
|
|
34445
34456
|
scope.revoke();
|
|
34446
34457
|
throw error;
|
|
@@ -34457,14 +34468,14 @@ Immer.prototype.produce = function produce (base, recipe, patchListener) {
|
|
|
34457
34468
|
};
|
|
34458
34469
|
|
|
34459
34470
|
Immer.prototype.produceWithPatches = function produceWithPatches (arg1, arg2, arg3) {
|
|
34460
|
-
var this$1 = this;
|
|
34471
|
+
var this$1$1 = this;
|
|
34461
34472
|
|
|
34462
34473
|
if (typeof arg1 === "function") {
|
|
34463
34474
|
return function (state) {
|
|
34464
34475
|
var args = [], len = arguments.length - 1;
|
|
34465
34476
|
while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];
|
|
34466
34477
|
|
|
34467
|
-
return this$1.produceWithPatches(state, function (draft) { return arg1.apply(void 0, [ draft ].concat( args )); });
|
|
34478
|
+
return this$1$1.produceWithPatches(state, function (draft) { return arg1.apply(void 0, [ draft ].concat( args )); });
|
|
34468
34479
|
};
|
|
34469
34480
|
} // non-curried form
|
|
34470
34481
|
|
|
@@ -34589,7 +34600,7 @@ Immer.prototype.processResult = function processResult (result, scope) {
|
|
|
34589
34600
|
|
|
34590
34601
|
|
|
34591
34602
|
Immer.prototype.finalize = function finalize (draft, path, scope) {
|
|
34592
|
-
var this$1 = this;
|
|
34603
|
+
var this$1$1 = this;
|
|
34593
34604
|
|
|
34594
34605
|
var state = draft[DRAFT_STATE];
|
|
34595
34606
|
|
|
@@ -34623,7 +34634,7 @@ Immer.prototype.finalize = function finalize (draft, path, scope) {
|
|
|
34623
34634
|
var base = state.base;
|
|
34624
34635
|
var copy = state.copy;
|
|
34625
34636
|
each(base, function (prop) {
|
|
34626
|
-
if (!has(copy, prop)) { this$1.onDelete(state, prop); }
|
|
34637
|
+
if (!has(copy, prop)) { this$1$1.onDelete(state, prop); }
|
|
34627
34638
|
});
|
|
34628
34639
|
}
|
|
34629
34640
|
}
|
|
@@ -34652,7 +34663,7 @@ Immer.prototype.finalize = function finalize (draft, path, scope) {
|
|
|
34652
34663
|
|
|
34653
34664
|
|
|
34654
34665
|
Immer.prototype.finalizeTree = function finalizeTree (root, rootPath, scope) {
|
|
34655
|
-
var this$1 = this;
|
|
34666
|
+
var this$1$1 = this;
|
|
34656
34667
|
|
|
34657
34668
|
var state = root[DRAFT_STATE];
|
|
34658
34669
|
|
|
@@ -34678,7 +34689,7 @@ Immer.prototype.finalizeTree = function finalizeTree (root, rootPath, scope) {
|
|
|
34678
34689
|
if (isDraft(value)) {
|
|
34679
34690
|
var path = isDraftProp && needPatches && !state.assigned[prop] ? rootPath.concat(prop) : null; // Drafts owned by `scope` are finalized here.
|
|
34680
34691
|
|
|
34681
|
-
value = this$1.finalize(value, path, scope); // Drafts from another scope must prevent auto-freezing.
|
|
34692
|
+
value = this$1$1.finalize(value, path, scope); // Drafts from another scope must prevent auto-freezing.
|
|
34682
34693
|
|
|
34683
34694
|
if (isDraft(value)) {
|
|
34684
34695
|
scope.canAutoFreeze = false;
|
|
@@ -34703,8 +34714,8 @@ Immer.prototype.finalizeTree = function finalizeTree (root, rootPath, scope) {
|
|
|
34703
34714
|
each(value, finalizeProperty);
|
|
34704
34715
|
}
|
|
34705
34716
|
|
|
34706
|
-
if (isDraftProp && this$1.onAssign) {
|
|
34707
|
-
this$1.onAssign(state, prop, value);
|
|
34717
|
+
if (isDraftProp && this$1$1.onAssign) {
|
|
34718
|
+
this$1$1.onAssign(state, prop, value);
|
|
34708
34719
|
}
|
|
34709
34720
|
};
|
|
34710
34721
|
|
|
@@ -34739,14 +34750,14 @@ var produce = immer.produce;
|
|
|
34739
34750
|
* [nextState, patches, inversePatches] (instead of just the next state)
|
|
34740
34751
|
*/
|
|
34741
34752
|
|
|
34742
|
-
|
|
34753
|
+
immer.produceWithPatches.bind(immer);
|
|
34743
34754
|
/**
|
|
34744
34755
|
* Pass true to automatically freeze all copies created by Immer.
|
|
34745
34756
|
*
|
|
34746
34757
|
* By default, auto-freezing is disabled in production.
|
|
34747
34758
|
*/
|
|
34748
34759
|
|
|
34749
|
-
|
|
34760
|
+
immer.setAutoFreeze.bind(immer);
|
|
34750
34761
|
/**
|
|
34751
34762
|
* Pass true to use the ES2015 `Proxy` class when creating drafts, which is
|
|
34752
34763
|
* always faster than using ES5 proxies.
|
|
@@ -34754,20 +34765,20 @@ var setAutoFreeze = immer.setAutoFreeze.bind(immer);
|
|
|
34754
34765
|
* By default, feature detection is used, so calling this is rarely necessary.
|
|
34755
34766
|
*/
|
|
34756
34767
|
|
|
34757
|
-
|
|
34768
|
+
immer.setUseProxies.bind(immer);
|
|
34758
34769
|
/**
|
|
34759
34770
|
* Apply an array of Immer patches to the first argument.
|
|
34760
34771
|
*
|
|
34761
34772
|
* This function is a producer, which means copy-on-write is in effect.
|
|
34762
34773
|
*/
|
|
34763
34774
|
|
|
34764
|
-
|
|
34775
|
+
immer.applyPatches.bind(immer);
|
|
34765
34776
|
/**
|
|
34766
34777
|
* Create an Immer draft from the given base state, which may be a draft itself.
|
|
34767
34778
|
* The draft can be modified until you finalize it with the `finishDraft` function.
|
|
34768
34779
|
*/
|
|
34769
34780
|
|
|
34770
|
-
|
|
34781
|
+
immer.createDraft.bind(immer);
|
|
34771
34782
|
/**
|
|
34772
34783
|
* Finalize an Immer draft from a `createDraft` call, returning the base state
|
|
34773
34784
|
* (if no changes were made) or a modified copy. The draft must *not* be
|
|
@@ -34777,7 +34788,7 @@ var createDraft = immer.createDraft.bind(immer);
|
|
|
34777
34788
|
* changes that were made.
|
|
34778
34789
|
*/
|
|
34779
34790
|
|
|
34780
|
-
|
|
34791
|
+
immer.finishDraft.bind(immer);
|
|
34781
34792
|
|
|
34782
34793
|
const createInitialState = formConfig => {
|
|
34783
34794
|
let initialForm = {};
|
|
@@ -34802,7 +34813,7 @@ const createInitialState = formConfig => {
|
|
|
34802
34813
|
};
|
|
34803
34814
|
|
|
34804
34815
|
const SET = "field/SET";
|
|
34805
|
-
const set
|
|
34816
|
+
const set = fieldName => value => ({
|
|
34806
34817
|
type: SET,
|
|
34807
34818
|
payload: { fieldName, value }
|
|
34808
34819
|
});
|
|
@@ -34882,7 +34893,7 @@ const createMapDispatchToProps = formConfig => {
|
|
|
34882
34893
|
const keys = Object.keys(formConfig);
|
|
34883
34894
|
for (let fieldName of keys) {
|
|
34884
34895
|
dispatchObj.fields[fieldName] = {
|
|
34885
|
-
set: value => dispatch(set
|
|
34896
|
+
set: value => dispatch(set(fieldName)(value)),
|
|
34886
34897
|
addValidator: validator => dispatch(addValidator(fieldName)(validator))
|
|
34887
34898
|
};
|
|
34888
34899
|
}
|
|
@@ -41104,9 +41115,11 @@ var Tabs = function Tabs(_ref) {
|
|
|
41104
41115
|
className: "tab-list"
|
|
41105
41116
|
}, tabsDisplayMode == HORIZONTAL ? showHorozontal(tabsConfig, activeTab) : showVertical(tabsConfig, activeTab)), /*#__PURE__*/React__default.createElement(Box, {
|
|
41106
41117
|
className: "tab-content"
|
|
41107
|
-
}, /*#__PURE__*/React__default.createElement(Box, null, tabsConfig.tabs.map(function (tab) {
|
|
41118
|
+
}, /*#__PURE__*/React__default.createElement(Box, null, tabsConfig.tabs.map(function (tab, idx) {
|
|
41108
41119
|
if (tab.label !== activeTab) return undefined;
|
|
41109
|
-
return
|
|
41120
|
+
return /*#__PURE__*/React__default.createElement(React.Fragment, {
|
|
41121
|
+
key: idx
|
|
41122
|
+
}, tab.content);
|
|
41110
41123
|
}))));
|
|
41111
41124
|
};
|
|
41112
41125
|
|
|
@@ -41222,8 +41235,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
|
41222
41235
|
acceptText = _ref.acceptText,
|
|
41223
41236
|
terms = _ref.terms,
|
|
41224
41237
|
variant = _ref.variant,
|
|
41225
|
-
themeValues = _ref.themeValues
|
|
41226
|
-
linkColorOverride = _ref.linkColorOverride;
|
|
41238
|
+
themeValues = _ref.themeValues;
|
|
41227
41239
|
return /*#__PURE__*/React__default.createElement(Modal$1, {
|
|
41228
41240
|
modalOpen: isOpen,
|
|
41229
41241
|
hideModal: function hideModal() {
|
|
@@ -41257,7 +41269,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
|
41257
41269
|
return e.key === "Enter" && toggleOpen(true);
|
|
41258
41270
|
},
|
|
41259
41271
|
tabIndex: "0",
|
|
41260
|
-
color:
|
|
41272
|
+
color: themeValues.linkColor,
|
|
41261
41273
|
weight: themeValues.fontWeight,
|
|
41262
41274
|
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
41263
41275
|
extraStyles: "display: inline-block; width: fit-content;"
|