@qssolutions/ssas-registration-form 1.0.6 → 1.0.8
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/README.md +17 -8
- package/dist/index.esm.js +1216 -785
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1216 -785
- package/dist/index.js.map +1 -1
- package/dist/models/config.d.ts +1 -1
- package/dist/services/ApiService.d.ts +4 -2
- package/dist/services/ApiService.d.ts.map +1 -1
- package/dist/styles/defaultStyles.d.ts +9 -0
- package/dist/styles/defaultStyles.d.ts.map +1 -1
- package/dist/utils/constants.d.ts +4 -4
- package/dist/web-component.js +1376 -834
- package/dist/web-component.js.map +1 -1
- package/dist/web-component.min.js +4 -4
- package/dist/web-component.min.js.map +1 -1
- package/package.json +1 -1
package/dist/web-component.js
CHANGED
|
@@ -22,15 +22,15 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
22
22
|
*/
|
|
23
23
|
var l$1=Symbol.for("react.element"),n$1=Symbol.for("react.portal"),p$2=Symbol.for("react.fragment"),q$1=Symbol.for("react.strict_mode"),r$1=Symbol.for("react.profiler"),t$1=Symbol.for("react.provider"),u=Symbol.for("react.context"),v$2=Symbol.for("react.forward_ref"),w$1=Symbol.for("react.suspense"),x$1=Symbol.for("react.memo"),y$1=Symbol.for("react.lazy"),z$2=Symbol.iterator;function A$2(a){if(null===a||"object"!==typeof a)return null;a=z$2&&a[z$2]||a["@@iterator"];return "function"===typeof a?a:null}
|
|
24
24
|
var B$1={isMounted:function(){return !1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$1=Object.assign,D$1={};function E$1(a,b,e){this.props=a;this.context=b;this.refs=D$1;this.updater=e||B$1;}E$1.prototype.isReactComponent={};
|
|
25
|
-
E$1.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState");};E$1.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate");};function F(){}F.prototype=E$1.prototype;function G$
|
|
26
|
-
H$1.constructor=G$
|
|
25
|
+
E$1.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState");};E$1.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate");};function F(){}F.prototype=E$1.prototype;function G$2(a,b,e){this.props=a;this.context=b;this.refs=D$1;this.updater=e||B$1;}var H$1=G$2.prototype=new F;
|
|
26
|
+
H$1.constructor=G$2;C$1(H$1,E$1.prototype);H$1.isPureReactComponent=!0;var I$1=Array.isArray,J=Object.prototype.hasOwnProperty,K$1={current:null},L$1={key:!0,ref:!0,__self:!0,__source:!0};
|
|
27
27
|
function M$1(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)J.call(b,d)&&!L$1.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f;}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===c[d]&&(c[d]=g[d]);return {$$typeof:l$1,type:a,key:k,ref:h,props:c,_owner:K$1.current}}
|
|
28
28
|
function N$1(a,b){return {$$typeof:l$1,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O$1(a){return "object"===typeof a&&null!==a&&a.$$typeof===l$1}function escape(a){var b={"=":"=0",":":"=2"};return "$"+a.replace(/[=:]/g,function(a){return b[a]})}var P$1=/\/+/g;function Q$1(a,b){return "object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
|
|
29
29
|
function R$1(a,b,e,d,c){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case l$1:case n$1:h=!0;}}if(h)return h=a,c=c(h),a=""===d?"."+Q$1(h,0):d,I$1(c)?(e="",null!=a&&(e=a.replace(P$1,"$&/")+"/"),R$1(c,b,e,"",function(a){return a})):null!=c&&(O$1(c)&&(c=N$1(c,e+(!c.key||h&&h.key===c.key?"":(""+c.key).replace(P$1,"$&/")+"/")+a)),b.push(c)),1;h=0;d=""===d?".":d+":";if(I$1(a))for(var g=0;g<a.length;g++){k=
|
|
30
30
|
a[g];var f=d+Q$1(k,g);h+=R$1(k,b,e,f,c);}else if(f=A$2(a),"function"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=d+Q$1(k,g++),h+=R$1(k,b,e,f,c);else if("object"===k)throw b=String(a),Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");return h}
|
|
31
31
|
function S$1(a,b,e){if(null==a)return a;var d=[],c=0;R$1(a,d,"","",function(a){return b.call(e,a,c++)});return d}function T$1(a){if(-1===a._status){var b=a._result;b=b();b.then(function(b){if(0===a._status||-1===a._status)a._status=1,a._result=b;},function(b){if(0===a._status||-1===a._status)a._status=2,a._result=b;});-1===a._status&&(a._status=0,a._result=b);}if(1===a._status)return a._result.default;throw a._result;}
|
|
32
32
|
var U$1={current:null},V$1={transition:null},W$1={ReactCurrentDispatcher:U$1,ReactCurrentBatchConfig:V$1,ReactCurrentOwner:K$1};function X$1(){throw Error("act(...) is not supported in production builds of React.");}
|
|
33
|
-
react_production_min.Children={map:S$1,forEach:function(a,b,e){S$1(a,function(){b.apply(this,arguments);},e);},count:function(a){var b=0;S$1(a,function(){b++;});return b},toArray:function(a){return S$1(a,function(a){return a})||[]},only:function(a){if(!O$1(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};react_production_min.Component=E$1;react_production_min.Fragment=p$2;react_production_min.Profiler=r$1;react_production_min.PureComponent=G$
|
|
33
|
+
react_production_min.Children={map:S$1,forEach:function(a,b,e){S$1(a,function(){b.apply(this,arguments);},e);},count:function(a){var b=0;S$1(a,function(){b++;});return b},toArray:function(a){return S$1(a,function(a){return a})||[]},only:function(a){if(!O$1(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};react_production_min.Component=E$1;react_production_min.Fragment=p$2;react_production_min.Profiler=r$1;react_production_min.PureComponent=G$2;react_production_min.StrictMode=q$1;react_production_min.Suspense=w$1;
|
|
34
34
|
react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W$1;react_production_min.act=X$1;
|
|
35
35
|
react_production_min.cloneElement=function(a,b,e){if(null===a||void 0===a)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+a+".");var d=C$1({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=K$1.current);void 0!==b.key&&(c=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)J.call(b,f)&&!L$1.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f]);}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);
|
|
36
36
|
for(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g;}return {$$typeof:l$1,type:a.type,key:c,ref:k,props:d,_owner:h}};react_production_min.createContext=function(a){a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};a.Provider={$$typeof:t$1,_context:a};return a.Consumer=a};react_production_min.createElement=M$1;react_production_min.createFactory=function(a){var b=M$1.bind(null,a);b.type=a;return b};react_production_min.createRef=function(){return {current:null}};
|
|
@@ -203,9 +203,9 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
203
203
|
function Kf(a,b){var c=b,d=0;do{var e=c.nextSibling;a.removeChild(c);if(e&&8===e.nodeType)if(c=e.data,"/$"===c){if(0===d){a.removeChild(e);bd(b);return}d--;}else "$"!==c&&"$?"!==c&&"$!"!==c||d++;c=e;}while(c);bd(b);}function Lf(a){for(;null!=a;a=a.nextSibling){var b=a.nodeType;if(1===b||3===b)break;if(8===b){b=a.data;if("$"===b||"$!"===b||"$?"===b)break;if("/$"===b)return null}}return a}
|
|
204
204
|
function Mf(a){a=a.previousSibling;for(var b=0;a;){if(8===a.nodeType){var c=a.data;if("$"===c||"$!"===c||"$?"===c){if(0===b)return a;b--;}else "/$"===c&&b++;}a=a.previousSibling;}return null}var Nf=Math.random().toString(36).slice(2),Of="__reactFiber$"+Nf,Pf="__reactProps$"+Nf,uf="__reactContainer$"+Nf,of="__reactEvents$"+Nf,Qf="__reactListeners$"+Nf,Rf="__reactHandles$"+Nf;
|
|
205
205
|
function Wc(a){var b=a[Of];if(b)return b;for(var c=a.parentNode;c;){if(b=c[uf]||c[Of]){c=b.alternate;if(null!==b.child||null!==c&&null!==c.child)for(a=Mf(a);null!==a;){if(c=a[Of])return c;a=Mf(a);}return b}a=c;c=a.parentNode;}return null}function Cb(a){a=a[Of]||a[uf];return !a||5!==a.tag&&6!==a.tag&&13!==a.tag&&3!==a.tag?null:a}function ue(a){if(5===a.tag||6===a.tag)return a.stateNode;throw Error(p$1(33));}function Db(a){return a[Pf]||null}var Sf=[],Tf=-1;function Uf(a){return {current:a}}
|
|
206
|
-
function E(a){0>Tf||(a.current=Sf[Tf],Sf[Tf]=null,Tf--);}function G(a,b){Tf++;Sf[Tf]=a.current;a.current=b;}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,b){var c=a.type.contextTypes;if(!c)return Vf;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}
|
|
207
|
-
function Zf(a){a=a.childContextTypes;return null!==a&&void 0!==a}function $f(){E(Wf);E(H);}function ag(a,b,c){if(H.current!==Vf)throw Error(p$1(168));G(H,b);G(Wf,c);}function bg(a,b,c){var d=a.stateNode;b=b.childContextTypes;if("function"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in b))throw Error(p$1(108,Ra(a)||"Unknown",e));return A$1({},c,d)}
|
|
208
|
-
function cg(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf;Xf=H.current;G(H,a);G(Wf,Wf.current);return !0}function dg(a,b,c){var d=a.stateNode;if(!d)throw Error(p$1(169));c?(a=bg(a,b,Xf),d.__reactInternalMemoizedMergedChildContext=a,E(Wf),E(H),G(H,a)):E(Wf);G(Wf,c);}var eg=null,fg=!1,gg=!1;function hg(a){null===eg?eg=[a]:eg.push(a);}function ig(a){fg=!0;hg(a);}
|
|
206
|
+
function E(a){0>Tf||(a.current=Sf[Tf],Sf[Tf]=null,Tf--);}function G$1(a,b){Tf++;Sf[Tf]=a.current;a.current=b;}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,b){var c=a.type.contextTypes;if(!c)return Vf;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}
|
|
207
|
+
function Zf(a){a=a.childContextTypes;return null!==a&&void 0!==a}function $f(){E(Wf);E(H);}function ag(a,b,c){if(H.current!==Vf)throw Error(p$1(168));G$1(H,b);G$1(Wf,c);}function bg(a,b,c){var d=a.stateNode;b=b.childContextTypes;if("function"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in b))throw Error(p$1(108,Ra(a)||"Unknown",e));return A$1({},c,d)}
|
|
208
|
+
function cg(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf;Xf=H.current;G$1(H,a);G$1(Wf,Wf.current);return !0}function dg(a,b,c){var d=a.stateNode;if(!d)throw Error(p$1(169));c?(a=bg(a,b,Xf),d.__reactInternalMemoizedMergedChildContext=a,E(Wf),E(H),G$1(H,a)):E(Wf);G$1(Wf,c);}var eg=null,fg=!1,gg=!1;function hg(a){null===eg?eg=[a]:eg.push(a);}function ig(a){fg=!0;hg(a);}
|
|
209
209
|
function jg(){if(!gg&&null!==eg){gg=!0;var a=0,b=C;try{var c=eg;for(C=1;a<c.length;a++){var d=c[a];do d=d(!0);while(null!==d)}eg=null;fg=!1;}catch(e){throw null!==eg&&(eg=eg.slice(a+1)),ac(fc,jg),e;}finally{C=b,gg=!1;}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(a,b){kg[lg++]=ng;kg[lg++]=mg;mg=a;ng=b;}
|
|
210
210
|
function ug(a,b,c){og[pg++]=rg;og[pg++]=sg;og[pg++]=qg;qg=a;var d=rg;a=sg;var e=32-oc(d)-1;d&=~(1<<e);c+=1;var f=32-oc(b)+e;if(30<f){var g=e-e%5;f=(d&(1<<g)-1).toString(32);d>>=g;e-=g;rg=1<<32-oc(b)+e|c<<e|d;sg=f+a;}else rg=1<<f|c<<e|d,sg=a;}function vg(a){null!==a.return&&(tg(a,1),ug(a,1,0));}function wg(a){for(;a===mg;)mg=kg[--lg],kg[lg]=null,ng=kg[--lg],kg[lg]=null;for(;a===qg;)qg=og[--pg],og[pg]=null,sg=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null;}var xg=null,yg=null,I=!1,zg=null;
|
|
211
211
|
function Ag(a,b){var c=Bg(5,null,null,0);c.elementType="DELETED";c.stateNode=b;c.return=a;b=a.deletions;null===b?(a.deletions=[c],a.flags|=16):b.push(c);}
|
|
@@ -236,7 +236,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
236
236
|
next:null});a:{var n=a,t=h;r=b;y=c;switch(t.tag){case 1:n=t.payload;if("function"===typeof n){q=n.call(y,q,r);break a}q=n;break a;case 3:n.flags=n.flags&-65537|128;case 0:n=t.payload;r="function"===typeof n?n.call(y,q,r):n;if(null===r||void 0===r)break a;q=A$1({},q,r);break a;case 2:jh=!0;}}null!==h.callback&&0!==h.lane&&(a.flags|=64,r=e.effects,null===r?e.effects=[h]:r.push(h));}else y={eventTime:y,lane:r,tag:h.tag,payload:h.payload,callback:h.callback,next:null},null===m?(l=m=y,k=q):m=m.next=y,g|=r;
|
|
237
237
|
h=h.next;if(null===h)if(h=e.shared.pending,null===h)break;else r=h,h=r.next,r.next=null,e.lastBaseUpdate=r,e.shared.pending=null;}while(1);null===m&&(k=q);e.baseState=k;e.firstBaseUpdate=l;e.lastBaseUpdate=m;b=e.shared.interleaved;if(null!==b){e=b;do g|=e.lane,e=e.next;while(e!==b)}else null===f&&(e.shared.lanes=0);rh|=g;a.lanes=g;a.memoizedState=q;}}
|
|
238
238
|
function sh(a,b,c){a=b.effects;b.effects=null;if(null!==a)for(b=0;b<a.length;b++){var d=a[b],e=d.callback;if(null!==e){d.callback=null;d=c;if("function"!==typeof e)throw Error(p$1(191,e));e.call(d);}}}var th={},uh=Uf(th),vh=Uf(th),wh=Uf(th);function xh(a){if(a===th)throw Error(p$1(174));return a}
|
|
239
|
-
function yh(a,b){G(wh,b);G(vh,a);G(uh,th);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:lb(null,"");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=lb(b,a);}E(uh);G(uh,b);}function zh(){E(uh);E(vh);E(wh);}function Ah(a){xh(wh.current);var b=xh(uh.current);var c=lb(b,a.type);b!==c&&(G(vh,a),G(uh,c));}function Bh(a){vh.current===a&&(E(uh),E(vh));}var L=Uf(0);
|
|
239
|
+
function yh(a,b){G$1(wh,b);G$1(vh,a);G$1(uh,th);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:lb(null,"");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=lb(b,a);}E(uh);G$1(uh,b);}function zh(){E(uh);E(vh);E(wh);}function Ah(a){xh(wh.current);var b=xh(uh.current);var c=lb(b,a.type);b!==c&&(G$1(vh,a),G$1(uh,c));}function Bh(a){vh.current===a&&(E(uh),E(vh));}var L=Uf(0);
|
|
240
240
|
function Ch(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||"$?"===c.data||"$!"===c.data))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.flags&128))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return;}b.sibling.return=b.return;b=b.sibling;}return null}var Dh=[];
|
|
241
241
|
function Eh(){for(var a=0;a<Dh.length;a++)Dh[a]._workInProgressVersionPrimary=null;Dh.length=0;}var Fh=ua.ReactCurrentDispatcher,Gh=ua.ReactCurrentBatchConfig,Hh=0,M=null,N=null,O=null,Ih=!1,Jh=!1,Kh=0,Lh=0;function P(){throw Error(p$1(321));}function Mh(a,b){if(null===b)return !1;for(var c=0;c<b.length&&c<a.length;c++)if(!He(a[c],b[c]))return !1;return !0}
|
|
242
242
|
function Nh(a,b,c,d,e,f){Hh=f;M=b;b.memoizedState=null;b.updateQueue=null;b.lanes=0;Fh.current=null===a||null===a.memoizedState?Oh:Ph;a=c(d,e);if(Jh){f=0;do{Jh=!1;Kh=0;if(25<=f)throw Error(p$1(301));f+=1;O=N=null;b.updateQueue=null;Fh.current=Qh;a=c(d,e);}while(Jh)}Fh.current=Rh;b=null!==N&&null!==N.next;Hh=0;O=N=M=null;Ih=!1;if(b)throw Error(p$1(300));return a}function Sh(){var a=0!==Kh;Kh=0;return a}
|
|
@@ -274,8 +274,8 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
274
274
|
function Yi(a,b,c,d,e){c=c.render;var f=b.ref;ch(b,e);d=Nh(a,b,c,d,f,e);c=Sh();if(null!==a&&!dh)return b.updateQueue=a.updateQueue,b.flags&=-2053,a.lanes&=~e,Zi(a,b,e);I&&c&&vg(b);b.flags|=1;Xi(a,b,d,e);return b.child}
|
|
275
275
|
function $i(a,b,c,d,e){if(null===a){var f=c.type;if("function"===typeof f&&!aj(f)&&void 0===f.defaultProps&&null===c.compare&&void 0===c.defaultProps)return b.tag=15,b.type=f,bj(a,b,f,d,e);a=Rg(c.type,null,d,b,b.mode,e);a.ref=b.ref;a.return=b;return b.child=a}f=a.child;if(0===(a.lanes&e)){var g=f.memoizedProps;c=c.compare;c=null!==c?c:Ie;if(c(g,d)&&a.ref===b.ref)return Zi(a,b,e)}b.flags|=1;a=Pg(f,d);a.ref=b.ref;a.return=b;return b.child=a}
|
|
276
276
|
function bj(a,b,c,d,e){if(null!==a){var f=a.memoizedProps;if(Ie(f,d)&&a.ref===b.ref)if(dh=!1,b.pendingProps=d=f,0!==(a.lanes&e))0!==(a.flags&131072)&&(dh=!0);else return b.lanes=a.lanes,Zi(a,b,e)}return cj(a,b,c,d,e)}
|
|
277
|
-
function dj(a,b,c){var d=b.pendingProps,e=d.children,f=null!==a?a.memoizedState:null;if("hidden"===d.mode)if(0===(b.mode&1))b.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(ej,fj),fj|=c;else {if(0===(c&1073741824))return a=null!==f?f.baseLanes|c:c,b.lanes=b.childLanes=1073741824,b.memoizedState={baseLanes:a,cachePool:null,transitions:null},b.updateQueue=null,G(ej,fj),fj|=a,null;b.memoizedState={baseLanes:0,cachePool:null,transitions:null};d=null!==f?f.baseLanes:c;G(ej,fj);fj|=d;}else null!==
|
|
278
|
-
f?(d=f.baseLanes|c,b.memoizedState=null):d=c,G(ej,fj),fj|=d;Xi(a,b,e,c);return b.child}function gj(a,b){var c=b.ref;if(null===a&&null!==c||null!==a&&a.ref!==c)b.flags|=512,b.flags|=2097152;}function cj(a,b,c,d,e){var f=Zf(c)?Xf:H.current;f=Yf(b,f);ch(b,e);c=Nh(a,b,c,d,f,e);d=Sh();if(null!==a&&!dh)return b.updateQueue=a.updateQueue,b.flags&=-2053,a.lanes&=~e,Zi(a,b,e);I&&d&&vg(b);b.flags|=1;Xi(a,b,c,e);return b.child}
|
|
277
|
+
function dj(a,b,c){var d=b.pendingProps,e=d.children,f=null!==a?a.memoizedState:null;if("hidden"===d.mode)if(0===(b.mode&1))b.memoizedState={baseLanes:0,cachePool:null,transitions:null},G$1(ej,fj),fj|=c;else {if(0===(c&1073741824))return a=null!==f?f.baseLanes|c:c,b.lanes=b.childLanes=1073741824,b.memoizedState={baseLanes:a,cachePool:null,transitions:null},b.updateQueue=null,G$1(ej,fj),fj|=a,null;b.memoizedState={baseLanes:0,cachePool:null,transitions:null};d=null!==f?f.baseLanes:c;G$1(ej,fj);fj|=d;}else null!==
|
|
278
|
+
f?(d=f.baseLanes|c,b.memoizedState=null):d=c,G$1(ej,fj),fj|=d;Xi(a,b,e,c);return b.child}function gj(a,b){var c=b.ref;if(null===a&&null!==c||null!==a&&a.ref!==c)b.flags|=512,b.flags|=2097152;}function cj(a,b,c,d,e){var f=Zf(c)?Xf:H.current;f=Yf(b,f);ch(b,e);c=Nh(a,b,c,d,f,e);d=Sh();if(null!==a&&!dh)return b.updateQueue=a.updateQueue,b.flags&=-2053,a.lanes&=~e,Zi(a,b,e);I&&d&&vg(b);b.flags|=1;Xi(a,b,c,e);return b.child}
|
|
279
279
|
function hj(a,b,c,d,e){if(Zf(c)){var f=!0;cg(b);}else f=!1;ch(b,e);if(null===b.stateNode)ij(a,b),Gi(b,c,d),Ii(b,c,d,e),d=!0;else if(null===a){var g=b.stateNode,h=b.memoizedProps;g.props=h;var k=g.context,l=c.contextType;"object"===typeof l&&null!==l?l=eh(l):(l=Zf(c)?Xf:H.current,l=Yf(b,l));var m=c.getDerivedStateFromProps,q="function"===typeof m||"function"===typeof g.getSnapshotBeforeUpdate;q||"function"!==typeof g.UNSAFE_componentWillReceiveProps&&"function"!==typeof g.componentWillReceiveProps||
|
|
280
280
|
(h!==d||k!==l)&&Hi(b,g,d,l);jh=!1;var r=b.memoizedState;g.state=r;qh(b,d,g,e);k=b.memoizedState;h!==d||r!==k||Wf.current||jh?("function"===typeof m&&(Di(b,c,m,d),k=b.memoizedState),(h=jh||Fi(b,c,h,d,r,k,l))?(q||"function"!==typeof g.UNSAFE_componentWillMount&&"function"!==typeof g.componentWillMount||("function"===typeof g.componentWillMount&&g.componentWillMount(),"function"===typeof g.UNSAFE_componentWillMount&&g.UNSAFE_componentWillMount()),"function"===typeof g.componentDidMount&&(b.flags|=4194308)):
|
|
281
281
|
("function"===typeof g.componentDidMount&&(b.flags|=4194308),b.memoizedProps=d,b.memoizedState=k),g.props=d,g.state=k,g.context=l,d=h):("function"===typeof g.componentDidMount&&(b.flags|=4194308),d=!1);}else {g=b.stateNode;lh(a,b);h=b.memoizedProps;l=b.type===b.elementType?h:Ci(b.type,h);g.props=l;q=b.pendingProps;r=g.context;k=c.contextType;"object"===typeof k&&null!==k?k=eh(k):(k=Zf(c)?Xf:H.current,k=Yf(b,k));var y=c.getDerivedStateFromProps;(m="function"===typeof y||"function"===typeof g.getSnapshotBeforeUpdate)||
|
|
@@ -284,7 +284,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
284
284
|
a.memoizedState||(b.flags|=4),"function"!==typeof g.getSnapshotBeforeUpdate||h===a.memoizedProps&&r===a.memoizedState||(b.flags|=1024),d=!1);}return jj(a,b,c,d,f,e)}
|
|
285
285
|
function jj(a,b,c,d,e,f){gj(a,b);var g=0!==(b.flags&128);if(!d&&!g)return e&&dg(b,c,!1),Zi(a,b,f);d=b.stateNode;Wi.current=b;var h=g&&"function"!==typeof c.getDerivedStateFromError?null:d.render();b.flags|=1;null!==a&&g?(b.child=Ug(b,a.child,null,f),b.child=Ug(b,null,h,f)):Xi(a,b,h,f);b.memoizedState=d.state;e&&dg(b,c,!0);return b.child}function kj(a){var b=a.stateNode;b.pendingContext?ag(a,b.pendingContext,b.pendingContext!==b.context):b.context&&ag(a,b.context,!1);yh(a,b.containerInfo);}
|
|
286
286
|
function lj(a,b,c,d,e){Ig();Jg(e);b.flags|=256;Xi(a,b,c,d);return b.child}var mj={dehydrated:null,treeContext:null,retryLane:0};function nj(a){return {baseLanes:a,cachePool:null,transitions:null}}
|
|
287
|
-
function oj(a,b,c){var d=b.pendingProps,e=L.current,f=!1,g=0!==(b.flags&128),h;(h=g)||(h=null!==a&&null===a.memoizedState?!1:0!==(e&2));if(h)f=!0,b.flags&=-129;else if(null===a||null!==a.memoizedState)e|=1;G(L,e&1);if(null===a){Eg(b);a=b.memoizedState;if(null!==a&&(a=a.dehydrated,null!==a))return 0===(b.mode&1)?b.lanes=1:"$!"===a.data?b.lanes=8:b.lanes=1073741824,null;g=d.children;a=d.fallback;return f?(d=b.mode,f=b.child,g={mode:"hidden",children:g},0===(d&1)&&null!==f?(f.childLanes=0,f.pendingProps=
|
|
287
|
+
function oj(a,b,c){var d=b.pendingProps,e=L.current,f=!1,g=0!==(b.flags&128),h;(h=g)||(h=null!==a&&null===a.memoizedState?!1:0!==(e&2));if(h)f=!0,b.flags&=-129;else if(null===a||null!==a.memoizedState)e|=1;G$1(L,e&1);if(null===a){Eg(b);a=b.memoizedState;if(null!==a&&(a=a.dehydrated,null!==a))return 0===(b.mode&1)?b.lanes=1:"$!"===a.data?b.lanes=8:b.lanes=1073741824,null;g=d.children;a=d.fallback;return f?(d=b.mode,f=b.child,g={mode:"hidden",children:g},0===(d&1)&&null!==f?(f.childLanes=0,f.pendingProps=
|
|
288
288
|
g):f=pj(g,d,0,null),a=Tg(a,d,c,null),f.return=b,a.return=b,f.sibling=a,b.child=f,b.child.memoizedState=nj(c),b.memoizedState=mj,a):qj(b,g)}e=a.memoizedState;if(null!==e&&(h=e.dehydrated,null!==h))return rj(a,b,g,d,h,e,c);if(f){f=d.fallback;g=b.mode;e=a.child;h=e.sibling;var k={mode:"hidden",children:d.children};0===(g&1)&&b.child!==e?(d=b.child,d.childLanes=0,d.pendingProps=k,b.deletions=null):(d=Pg(e,k),d.subtreeFlags=e.subtreeFlags&14680064);null!==h?f=Pg(h,f):(f=Tg(f,g,c,null),f.flags|=2);f.return=
|
|
289
289
|
b;d.return=b;d.sibling=f;b.child=d;d=f;f=b.child;g=a.child.memoizedState;g=null===g?nj(c):{baseLanes:g.baseLanes|c,cachePool:null,transitions:g.transitions};f.memoizedState=g;f.childLanes=a.childLanes&~c;b.memoizedState=mj;return d}f=a.child;a=f.sibling;d=Pg(f,{mode:"visible",children:d.children});0===(b.mode&1)&&(d.lanes=c);d.return=b;d.sibling=null;null!==a&&(c=b.deletions,null===c?(b.deletions=[a],b.flags|=16):c.push(a));b.child=d;b.memoizedState=null;return d}
|
|
290
290
|
function qj(a,b){b=pj({mode:"visible",children:b},a.mode,0,null);b.return=a;return a.child=b}function sj(a,b,c,d){null!==d&&Jg(d);Ug(b,a.child,null,c);a=qj(b,b.pendingProps.children);a.flags|=2;b.memoizedState=null;return a}
|
|
@@ -292,11 +292,11 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
292
292
|
if(d)var h=d.dgst;d=h;f=Error(p$1(419));d=Ki(f,d,void 0);return sj(a,b,g,d)}h=0!==(g&a.childLanes);if(dh||h){d=Q;if(null!==d){switch(g&-g){case 4:e=2;break;case 16:e=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:e=32;break;case 536870912:e=268435456;break;default:e=0;}e=0!==(e&(d.suspendedLanes|g))?0:e;
|
|
293
293
|
0!==e&&e!==f.retryLane&&(f.retryLane=e,ih(a,e),gi(d,a,e,-1));}tj();d=Ki(Error(p$1(421)));return sj(a,b,g,d)}if("$?"===e.data)return b.flags|=128,b.child=a.child,b=uj.bind(null,a),e._reactRetry=b,null;a=f.treeContext;yg=Lf(e.nextSibling);xg=b;I=!0;zg=null;null!==a&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=a.id,sg=a.overflow,qg=b);b=qj(b,d.children);b.flags|=4096;return b}function vj(a,b,c){a.lanes|=b;var d=a.alternate;null!==d&&(d.lanes|=b);bh(a.return,b,c);}
|
|
294
294
|
function wj(a,b,c,d,e){var f=a.memoizedState;null===f?a.memoizedState={isBackwards:b,rendering:null,renderingStartTime:0,last:d,tail:c,tailMode:e}:(f.isBackwards=b,f.rendering=null,f.renderingStartTime=0,f.last=d,f.tail=c,f.tailMode=e);}
|
|
295
|
-
function xj(a,b,c){var d=b.pendingProps,e=d.revealOrder,f=d.tail;Xi(a,b,d.children,c);d=L.current;if(0!==(d&2))d=d&1|2,b.flags|=128;else {if(null!==a&&0!==(a.flags&128))a:for(a=b.child;null!==a;){if(13===a.tag)null!==a.memoizedState&&vj(a,c,b);else if(19===a.tag)vj(a,c,b);else if(null!==a.child){a.child.return=a;a=a.child;continue}if(a===b)break a;for(;null===a.sibling;){if(null===a.return||a.return===b)break a;a=a.return;}a.sibling.return=a.return;a=a.sibling;}d&=1;}G(L,d);if(0===(b.mode&1))b.memoizedState=
|
|
295
|
+
function xj(a,b,c){var d=b.pendingProps,e=d.revealOrder,f=d.tail;Xi(a,b,d.children,c);d=L.current;if(0!==(d&2))d=d&1|2,b.flags|=128;else {if(null!==a&&0!==(a.flags&128))a:for(a=b.child;null!==a;){if(13===a.tag)null!==a.memoizedState&&vj(a,c,b);else if(19===a.tag)vj(a,c,b);else if(null!==a.child){a.child.return=a;a=a.child;continue}if(a===b)break a;for(;null===a.sibling;){if(null===a.return||a.return===b)break a;a=a.return;}a.sibling.return=a.return;a=a.sibling;}d&=1;}G$1(L,d);if(0===(b.mode&1))b.memoizedState=
|
|
296
296
|
null;else switch(e){case "forwards":c=b.child;for(e=null;null!==c;)a=c.alternate,null!==a&&null===Ch(a)&&(e=c),c=c.sibling;c=e;null===c?(e=b.child,b.child=null):(e=c.sibling,c.sibling=null);wj(b,!1,e,c,f);break;case "backwards":c=null;e=b.child;for(b.child=null;null!==e;){a=e.alternate;if(null!==a&&null===Ch(a)){b.child=e;break}a=e.sibling;e.sibling=c;c=e;e=a;}wj(b,!0,c,null,f);break;case "together":wj(b,!1,null,null,void 0);break;default:b.memoizedState=null;}return b.child}
|
|
297
297
|
function ij(a,b){0===(b.mode&1)&&null!==a&&(a.alternate=null,b.alternate=null,b.flags|=2);}function Zi(a,b,c){null!==a&&(b.dependencies=a.dependencies);rh|=b.lanes;if(0===(c&b.childLanes))return null;if(null!==a&&b.child!==a.child)throw Error(p$1(153));if(null!==b.child){a=b.child;c=Pg(a,a.pendingProps);b.child=c;for(c.return=b;null!==a.sibling;)a=a.sibling,c=c.sibling=Pg(a,a.pendingProps),c.return=b;c.sibling=null;}return b.child}
|
|
298
|
-
function yj(a,b,c){switch(b.tag){case 3:kj(b);Ig();break;case 5:Ah(b);break;case 1:Zf(b.type)&&cg(b);break;case 4:yh(b,b.stateNode.containerInfo);break;case 10:var d=b.type._context,e=b.memoizedProps.value;G(Wg,d._currentValue);d._currentValue=e;break;case 13:d=b.memoizedState;if(null!==d){if(null!==d.dehydrated)return G(L,L.current&1),b.flags|=128,null;if(0!==(c&b.child.childLanes))return oj(a,b,c);G(L,L.current&1);a=Zi(a,b,c);return null!==a?a.sibling:null}G(L,L.current&1);break;case 19:d=0!==(c&
|
|
299
|
-
b.childLanes);if(0!==(a.flags&128)){if(d)return xj(a,b,c);b.flags|=128;}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null,e.lastEffect=null);G(L,L.current);if(d)break;else return null;case 22:case 23:return b.lanes=0,dj(a,b,c)}return Zi(a,b,c)}var zj,Aj,Bj,Cj;
|
|
298
|
+
function yj(a,b,c){switch(b.tag){case 3:kj(b);Ig();break;case 5:Ah(b);break;case 1:Zf(b.type)&&cg(b);break;case 4:yh(b,b.stateNode.containerInfo);break;case 10:var d=b.type._context,e=b.memoizedProps.value;G$1(Wg,d._currentValue);d._currentValue=e;break;case 13:d=b.memoizedState;if(null!==d){if(null!==d.dehydrated)return G$1(L,L.current&1),b.flags|=128,null;if(0!==(c&b.child.childLanes))return oj(a,b,c);G$1(L,L.current&1);a=Zi(a,b,c);return null!==a?a.sibling:null}G$1(L,L.current&1);break;case 19:d=0!==(c&
|
|
299
|
+
b.childLanes);if(0!==(a.flags&128)){if(d)return xj(a,b,c);b.flags|=128;}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null,e.lastEffect=null);G$1(L,L.current);if(d)break;else return null;case 22:case 23:return b.lanes=0,dj(a,b,c)}return Zi(a,b,c)}var zj,Aj,Bj,Cj;
|
|
300
300
|
zj=function(a,b){for(var c=b.child;null!==c;){if(5===c.tag||6===c.tag)a.appendChild(c.stateNode);else if(4!==c.tag&&null!==c.child){c.child.return=c;c=c.child;continue}if(c===b)break;for(;null===c.sibling;){if(null===c.return||c.return===b)return;c=c.return;}c.sibling.return=c.return;c=c.sibling;}};Aj=function(){};
|
|
301
301
|
Bj=function(a,b,c,d){var e=a.memoizedProps;if(e!==d){a=b.stateNode;xh(uh.current);var f=null;switch(c){case "input":e=Ya(a,e);d=Ya(a,d);f=[];break;case "select":e=A$1({},e,{value:void 0});d=A$1({},d,{value:void 0});f=[];break;case "textarea":e=gb(a,e);d=gb(a,d);f=[];break;default:"function"!==typeof e.onClick&&"function"===typeof d.onClick&&(a.onclick=Bf);}ub(c,d);var g;c=null;for(l in e)if(!d.hasOwnProperty(l)&&e.hasOwnProperty(l)&&null!=e[l])if("style"===l){var h=e[l];for(g in h)h.hasOwnProperty(g)&&
|
|
302
302
|
(c||(c={}),c[g]="");}else "dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(ea.hasOwnProperty(l)?f||(f=[]):(f=f||[]).push(l,null));for(l in d){var k=d[l];h=null!=e?e[l]:void 0;if(d.hasOwnProperty(l)&&k!==h&&(null!=k||null!=h))if("style"===l)if(h){for(g in h)!h.hasOwnProperty(g)||k&&k.hasOwnProperty(g)||(c||(c={}),c[g]="");for(g in k)k.hasOwnProperty(g)&&h[g]!==k[g]&&(c||(c={}),c[g]=k[g]);}else c||(f||(f=[]),f.push(l,
|
|
@@ -314,9 +314,9 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
314
314
|
xg,null!==a)switch(a.tag){case 3:Af(d.nodeValue,c,0!==(a.mode&1));break;case 5:!0!==a.memoizedProps.suppressHydrationWarning&&Af(d.nodeValue,c,0!==(a.mode&1));}f&&(b.flags|=4);}else d=(9===c.nodeType?c:c.ownerDocument).createTextNode(d),d[Of]=b,b.stateNode=d;}S(b);return null;case 13:E(L);d=b.memoizedState;if(null===a||null!==a.memoizedState&&null!==a.memoizedState.dehydrated){if(I&&null!==yg&&0!==(b.mode&1)&&0===(b.flags&128))Hg(),Ig(),b.flags|=98560,f=!1;else if(f=Gg(b),null!==d&&null!==d.dehydrated){if(null===
|
|
315
315
|
a){if(!f)throw Error(p$1(318));f=b.memoizedState;f=null!==f?f.dehydrated:null;if(!f)throw Error(p$1(317));f[Of]=b;}else Ig(),0===(b.flags&128)&&(b.memoizedState=null),b.flags|=4;S(b);f=!1;}else null!==zg&&(Fj(zg),zg=null),f=!0;if(!f)return b.flags&65536?b:null}if(0!==(b.flags&128))return b.lanes=c,b;d=null!==d;d!==(null!==a&&null!==a.memoizedState)&&d&&(b.child.flags|=8192,0!==(b.mode&1)&&(null===a||0!==(L.current&1)?0===T&&(T=3):tj()));null!==b.updateQueue&&(b.flags|=4);S(b);return null;case 4:return zh(),
|
|
316
316
|
Aj(a,b),null===a&&sf(b.stateNode.containerInfo),S(b),null;case 10:return ah(b.type._context),S(b),null;case 17:return Zf(b.type)&&$f(),S(b),null;case 19:E(L);f=b.memoizedState;if(null===f)return S(b),null;d=0!==(b.flags&128);g=f.rendering;if(null===g)if(d)Dj(f,!1);else {if(0!==T||null!==a&&0!==(a.flags&128))for(a=b.child;null!==a;){g=Ch(a);if(null!==g){b.flags|=128;Dj(f,!1);d=g.updateQueue;null!==d&&(b.updateQueue=d,b.flags|=4);b.subtreeFlags=0;d=c;for(c=b.child;null!==c;)f=c,a=d,f.flags&=14680066,
|
|
317
|
-
g=f.alternate,null===g?(f.childLanes=0,f.lanes=a,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=g.childLanes,f.lanes=g.lanes,f.child=g.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=g.memoizedProps,f.memoizedState=g.memoizedState,f.updateQueue=g.updateQueue,f.type=g.type,a=g.dependencies,f.dependencies=null===a?null:{lanes:a.lanes,firstContext:a.firstContext}),c=c.sibling;G(L,L.current&1|2);return b.child}a=
|
|
317
|
+
g=f.alternate,null===g?(f.childLanes=0,f.lanes=a,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=g.childLanes,f.lanes=g.lanes,f.child=g.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=g.memoizedProps,f.memoizedState=g.memoizedState,f.updateQueue=g.updateQueue,f.type=g.type,a=g.dependencies,f.dependencies=null===a?null:{lanes:a.lanes,firstContext:a.firstContext}),c=c.sibling;G$1(L,L.current&1|2);return b.child}a=
|
|
318
318
|
a.sibling;}null!==f.tail&&B()>Gj&&(b.flags|=128,d=!0,Dj(f,!1),b.lanes=4194304);}else {if(!d)if(a=Ch(g),null!==a){if(b.flags|=128,d=!0,c=a.updateQueue,null!==c&&(b.updateQueue=c,b.flags|=4),Dj(f,!0),null===f.tail&&"hidden"===f.tailMode&&!g.alternate&&!I)return S(b),null}else 2*B()-f.renderingStartTime>Gj&&1073741824!==c&&(b.flags|=128,d=!0,Dj(f,!1),b.lanes=4194304);f.isBackwards?(g.sibling=b.child,b.child=g):(c=f.last,null!==c?c.sibling=g:b.child=g,f.last=g);}if(null!==f.tail)return b=f.tail,f.rendering=
|
|
319
|
-
b,f.tail=b.sibling,f.renderingStartTime=B(),b.sibling=null,c=L.current,G(L,d?c&1|2:c&1),b;S(b);return null;case 22:case 23:return Hj(),d=null!==b.memoizedState,null!==a&&null!==a.memoizedState!==d&&(b.flags|=8192),d&&0!==(b.mode&1)?0!==(fj&1073741824)&&(S(b),b.subtreeFlags&6&&(b.flags|=8192)):S(b),null;case 24:return null;case 25:return null}throw Error(p$1(156,b.tag));}
|
|
319
|
+
b,f.tail=b.sibling,f.renderingStartTime=B(),b.sibling=null,c=L.current,G$1(L,d?c&1|2:c&1),b;S(b);return null;case 22:case 23:return Hj(),d=null!==b.memoizedState,null!==a&&null!==a.memoizedState!==d&&(b.flags|=8192),d&&0!==(b.mode&1)?0!==(fj&1073741824)&&(S(b),b.subtreeFlags&6&&(b.flags|=8192)):S(b),null;case 24:return null;case 25:return null}throw Error(p$1(156,b.tag));}
|
|
320
320
|
function Ij(a,b){wg(b);switch(b.tag){case 1:return Zf(b.type)&&$f(),a=b.flags,a&65536?(b.flags=a&-65537|128,b):null;case 3:return zh(),E(Wf),E(H),Eh(),a=b.flags,0!==(a&65536)&&0===(a&128)?(b.flags=a&-65537|128,b):null;case 5:return Bh(b),null;case 13:E(L);a=b.memoizedState;if(null!==a&&null!==a.dehydrated){if(null===b.alternate)throw Error(p$1(340));Ig();}a=b.flags;return a&65536?(b.flags=a&-65537|128,b):null;case 19:return E(L),null;case 4:return zh(),null;case 10:return ah(b.type._context),null;case 22:case 23:return Hj(),
|
|
321
321
|
null;case 24:return null;default:return null}}var Jj=!1,U=!1,Kj="function"===typeof WeakSet?WeakSet:Set,V=null;function Lj(a,b){var c=a.ref;if(null!==c)if("function"===typeof c)try{c(null);}catch(d){W(a,b,d);}else c.current=null;}function Mj(a,b,c){try{c();}catch(d){W(a,b,d);}}var Nj=!1;
|
|
322
322
|
function Oj(a,b){Cf=dd;a=Me();if(Ne(a)){if("selectionStart"in a)var c={start:a.selectionStart,end:a.selectionEnd};else a:{c=(c=a.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&0!==d.rangeCount){c=d.anchorNode;var e=d.anchorOffset,f=d.focusNode;d=d.focusOffset;try{c.nodeType,f.nodeType;}catch(F){c=null;break a}var g=0,h=-1,k=-1,l=0,m=0,q=a,r=null;b:for(;;){for(var y;;){q!==c||0!==e&&3!==q.nodeType||(h=g+e);q!==f||0!==d&&3!==q.nodeType||(k=g+d);3===q.nodeType&&(g+=
|
|
@@ -373,7 +373,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
373
373
|
d,""));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci(d,e),cj(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci(d,e),hj(a,b,d,e,c);case 3:a:{kj(b);if(null===a)throw Error(p$1(387));d=b.pendingProps;f=b.memoizedState;e=f.element;lh(a,b);qh(b,d,null,c);var g=b.memoizedState;d=g.element;if(f.isDehydrated)if(f={element:d,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},b.updateQueue.baseState=
|
|
374
374
|
f,b.memoizedState=f,b.flags&256){e=Ji(Error(p$1(423)),b);b=lj(a,b,d,c,e);break a}else if(d!==e){e=Ji(Error(p$1(424)),b);b=lj(a,b,d,c,e);break a}else for(yg=Lf(b.stateNode.containerInfo.firstChild),xg=b,I=!0,zg=null,c=Vg(b,null,d,c),b.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else {Ig();if(d===e){b=Zi(a,b,c);break a}Xi(a,b,d,c);}b=b.child;}return b;case 5:return Ah(b),null===a&&Eg(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,Ef(d,e)?g=null:null!==f&&Ef(d,f)&&(b.flags|=32),
|
|
375
375
|
gj(a,b),Xi(a,b,g,c),b.child;case 6:return null===a&&Eg(b),null;case 13:return oj(a,b,c);case 4:return yh(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Ug(b,null,d,c):Xi(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci(d,e),Yi(a,b,d,e,c);case 7:return Xi(a,b,b.pendingProps,c),b.child;case 8:return Xi(a,b,b.pendingProps.children,c),b.child;case 12:return Xi(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;f=b.memoizedProps;
|
|
376
|
-
g=e.value;G(Wg,d._currentValue);d._currentValue=g;if(null!==f)if(He(f.value,g)){if(f.children===e.children&&!Wf.current){b=Zi(a,b,c);break a}}else for(f=b.child,null!==f&&(f.return=b);null!==f;){var h=f.dependencies;if(null!==h){g=f.child;for(var k=h.firstContext;null!==k;){if(k.context===d){if(1===f.tag){k=mh(-1,c&-c);k.tag=2;var l=f.updateQueue;if(null!==l){l=l.shared;var m=l.pending;null===m?k.next=k:(k.next=m.next,m.next=k);l.pending=k;}}f.lanes|=c;k=f.alternate;null!==k&&(k.lanes|=c);bh(f.return,
|
|
376
|
+
g=e.value;G$1(Wg,d._currentValue);d._currentValue=g;if(null!==f)if(He(f.value,g)){if(f.children===e.children&&!Wf.current){b=Zi(a,b,c);break a}}else for(f=b.child,null!==f&&(f.return=b);null!==f;){var h=f.dependencies;if(null!==h){g=f.child;for(var k=h.firstContext;null!==k;){if(k.context===d){if(1===f.tag){k=mh(-1,c&-c);k.tag=2;var l=f.updateQueue;if(null!==l){l=l.shared;var m=l.pending;null===m?k.next=k:(k.next=m.next,m.next=k);l.pending=k;}}f.lanes|=c;k=f.alternate;null!==k&&(k.lanes|=c);bh(f.return,
|
|
377
377
|
c,b);h.lanes|=c;break}k=k.next;}}else if(10===f.tag)g=f.type===b.type?null:f.child;else if(18===f.tag){g=f.return;if(null===g)throw Error(p$1(341));g.lanes|=c;h=g.alternate;null!==h&&(h.lanes|=c);bh(g,c,b);g=f.sibling;}else g=f.child;if(null!==g)g.return=f;else for(g=f;null!==g;){if(g===b){g=null;break}f=g.sibling;if(null!==f){f.return=g.return;g=f;break}g=g.return;}f=g;}Xi(a,b,e.children,c);b=b.child;}return b;case 9:return e=b.type,d=b.pendingProps.children,ch(b,c),e=eh(e),d=d(e),b.flags|=1,Xi(a,b,d,c),
|
|
378
378
|
b.child;case 14:return d=b.type,e=Ci(d,b.pendingProps),e=Ci(d.type,e),$i(a,b,d,e,c);case 15:return bj(a,b,b.type,b.pendingProps,c);case 17:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci(d,e),ij(a,b),b.tag=1,Zf(d)?(a=!0,cg(b)):a=!1,ch(b,c),Gi(b,d,e),Ii(b,d,e,c),jj(null,b,d,!0,a,c);case 19:return xj(a,b,c);case 22:return dj(a,b,c)}throw Error(p$1(156,b.tag));};function Fk(a,b){return ac(a,b)}
|
|
379
379
|
function $k(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=b;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.subtreeFlags=this.flags=0;this.deletions=null;this.childLanes=this.lanes=0;this.alternate=null;}function Bg(a,b,c,d){return new $k(a,b,c,d)}function aj(a){a=a.prototype;return !(!a||!a.isReactComponent)}
|
|
@@ -454,9 +454,9 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
454
454
|
: event.target.value
|
|
455
455
|
: event;
|
|
456
456
|
|
|
457
|
-
var
|
|
458
|
-
|
|
459
|
-
|
|
457
|
+
var isNameInFieldArray = (names, name) => name
|
|
458
|
+
.split('.')
|
|
459
|
+
.some((part, index, arr) => !isNaN(Number(part)) && names.has(arr.slice(0, index).join('.')));
|
|
460
460
|
|
|
461
461
|
var isPlainObject$1 = (tempObject) => {
|
|
462
462
|
const prototypeCopy = tempObject.constructor && tempObject.constructor.prototype;
|
|
@@ -541,6 +541,9 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
541
541
|
BLUR: 'blur',
|
|
542
542
|
FOCUS_OUT: 'focusout',
|
|
543
543
|
CHANGE: 'change',
|
|
544
|
+
SUBMIT: 'submit',
|
|
545
|
+
TRIGGER: 'trigger',
|
|
546
|
+
VALID: 'valid',
|
|
544
547
|
};
|
|
545
548
|
const VALIDATION_MODE = {
|
|
546
549
|
onBlur: 'onBlur',
|
|
@@ -558,6 +561,8 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
558
561
|
required: 'required',
|
|
559
562
|
validate: 'validate',
|
|
560
563
|
};
|
|
564
|
+
const FORM_ERROR_TYPE = 'form';
|
|
565
|
+
const ROOT_ERROR_TYPE = 'root';
|
|
561
566
|
|
|
562
567
|
/**
|
|
563
568
|
* Separate context for `control` to prevent unnecessary rerenders.
|
|
@@ -695,8 +700,8 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
695
700
|
if (key !== 'ref') {
|
|
696
701
|
const val2 = object2[key];
|
|
697
702
|
if ((isDateObject(val1) && isDateObject(val2)) ||
|
|
698
|
-
(isObject$2(val1)
|
|
699
|
-
|
|
703
|
+
((isObject$2(val1) || Array.isArray(val1)) &&
|
|
704
|
+
(isObject$2(val2) || Array.isArray(val2)))
|
|
700
705
|
? !deepEqual(val1, val2, _internal_visited)
|
|
701
706
|
: !Object.is(val1, val2)) {
|
|
702
707
|
return false;
|
|
@@ -1226,6 +1231,8 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
1226
1231
|
return getFieldValueAs(isUndefined$1(ref.value) ? _f.ref.value : ref.value, _f);
|
|
1227
1232
|
}
|
|
1228
1233
|
|
|
1234
|
+
var getNodeParentName = (name) => name.substring(0, name.search(/\.\d+(\.|$)/)) || name;
|
|
1235
|
+
|
|
1229
1236
|
var getResolverOptions = (fieldsNames, _fields, criteriaMode, shouldUseNativeValidation) => {
|
|
1230
1237
|
const fields = {};
|
|
1231
1238
|
for (const name of fieldsNames) {
|
|
@@ -1384,7 +1391,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
1384
1391
|
|
|
1385
1392
|
var updateFieldArrayRootError = (errors, error, name) => {
|
|
1386
1393
|
const fieldArrayErrors = convertToArrayPayload(get(errors, name));
|
|
1387
|
-
set(fieldArrayErrors,
|
|
1394
|
+
set(fieldArrayErrors, ROOT_ERROR_TYPE, error[name]);
|
|
1388
1395
|
set(errors, name, fieldArrayErrors);
|
|
1389
1396
|
return errors;
|
|
1390
1397
|
};
|
|
@@ -1632,6 +1639,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
1632
1639
|
unMount: new Set(),
|
|
1633
1640
|
array: new Set(),
|
|
1634
1641
|
watch: new Set(),
|
|
1642
|
+
registerName: new Set(),
|
|
1635
1643
|
};
|
|
1636
1644
|
let delayErrorCallback;
|
|
1637
1645
|
let timer = 0;
|
|
@@ -1673,7 +1681,11 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
1673
1681
|
_updateIsValidating();
|
|
1674
1682
|
}
|
|
1675
1683
|
else {
|
|
1676
|
-
isValid = await executeBuiltInValidation(
|
|
1684
|
+
isValid = await executeBuiltInValidation({
|
|
1685
|
+
fields: _fields,
|
|
1686
|
+
onlyCheckValid: true,
|
|
1687
|
+
eventType: EVENTS.VALID,
|
|
1688
|
+
});
|
|
1677
1689
|
}
|
|
1678
1690
|
if (isValid !== _formState.isValid) {
|
|
1679
1691
|
_subjects.state.next({
|
|
@@ -1701,6 +1713,11 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
1701
1713
|
});
|
|
1702
1714
|
}
|
|
1703
1715
|
};
|
|
1716
|
+
const _updateDirtyFields = (name) => {
|
|
1717
|
+
const fullDirtyFields = getDirtyFields(_defaultValues, _formValues);
|
|
1718
|
+
const rootName = getNodeParentName(name);
|
|
1719
|
+
set(_formState.dirtyFields, rootName, get(fullDirtyFields, rootName));
|
|
1720
|
+
};
|
|
1704
1721
|
const _setFieldArray = (name, values = [], method, args, shouldSetValues = true, shouldUpdateFieldsAndState = true) => {
|
|
1705
1722
|
if (args && method && !_options.disabled) {
|
|
1706
1723
|
_state.action = true;
|
|
@@ -1722,7 +1739,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
1722
1739
|
shouldSetValues && set(_formState.touchedFields, name, touchedFields);
|
|
1723
1740
|
}
|
|
1724
1741
|
if (_proxyFormState.dirtyFields || _proxySubscribeFormState.dirtyFields) {
|
|
1725
|
-
|
|
1742
|
+
_updateDirtyFields(name);
|
|
1726
1743
|
}
|
|
1727
1744
|
_subjects.state.next({
|
|
1728
1745
|
name,
|
|
@@ -1836,8 +1853,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
1836
1853
|
};
|
|
1837
1854
|
const _runSchema = async (name) => {
|
|
1838
1855
|
_updateIsValidating(name, true);
|
|
1839
|
-
|
|
1840
|
-
return result;
|
|
1856
|
+
return await _options.resolver(_formValues, _options.context, getResolverOptions(name || _names.mount, _fields, _options.criteriaMode, _options.shouldUseNativeValidation));
|
|
1841
1857
|
};
|
|
1842
1858
|
const executeSchemaAndUpdateState = async (names) => {
|
|
1843
1859
|
const { errors } = await _runSchema(names);
|
|
@@ -1855,9 +1871,55 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
1855
1871
|
}
|
|
1856
1872
|
return errors;
|
|
1857
1873
|
};
|
|
1858
|
-
const
|
|
1874
|
+
const validateForm = async ({ name, eventType, }) => {
|
|
1875
|
+
if (props.validate) {
|
|
1876
|
+
const result = await props.validate({
|
|
1877
|
+
formValues: _formValues,
|
|
1878
|
+
formState: _formState,
|
|
1879
|
+
name,
|
|
1880
|
+
eventType,
|
|
1881
|
+
});
|
|
1882
|
+
if (isObject$2(result)) {
|
|
1883
|
+
for (const key in result) {
|
|
1884
|
+
const error = result[key];
|
|
1885
|
+
if (error) {
|
|
1886
|
+
setError(`${FORM_ERROR_TYPE}.${key}`, {
|
|
1887
|
+
message: isString$1(result.message) ? result.message : '',
|
|
1888
|
+
type: INPUT_VALIDATION_RULES.validate,
|
|
1889
|
+
});
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1893
|
+
else if (isString$1(result) || !result) {
|
|
1894
|
+
setError(FORM_ERROR_TYPE, {
|
|
1895
|
+
message: result || '',
|
|
1896
|
+
type: INPUT_VALIDATION_RULES.validate,
|
|
1897
|
+
});
|
|
1898
|
+
}
|
|
1899
|
+
else {
|
|
1900
|
+
clearErrors(FORM_ERROR_TYPE);
|
|
1901
|
+
}
|
|
1902
|
+
return result;
|
|
1903
|
+
}
|
|
1904
|
+
return true;
|
|
1905
|
+
};
|
|
1906
|
+
const executeBuiltInValidation = async ({ fields, onlyCheckValid, name, eventType, context = {
|
|
1859
1907
|
valid: true,
|
|
1860
|
-
|
|
1908
|
+
runRootValidation: false,
|
|
1909
|
+
}, }) => {
|
|
1910
|
+
if (props.validate) {
|
|
1911
|
+
context.runRootValidation = true;
|
|
1912
|
+
const result = await validateForm({
|
|
1913
|
+
name,
|
|
1914
|
+
eventType,
|
|
1915
|
+
});
|
|
1916
|
+
if (!result) {
|
|
1917
|
+
context.valid = false;
|
|
1918
|
+
if (onlyCheckValid) {
|
|
1919
|
+
return context.valid;
|
|
1920
|
+
}
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1861
1923
|
for (const name in fields) {
|
|
1862
1924
|
const field = fields[name];
|
|
1863
1925
|
if (field) {
|
|
@@ -1868,25 +1930,34 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
1868
1930
|
if (isPromiseFunction && _proxyFormState.validatingFields) {
|
|
1869
1931
|
_updateIsValidating([_f.name], true);
|
|
1870
1932
|
}
|
|
1871
|
-
const fieldError = await validateField(field, _names.disabled, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation && !
|
|
1933
|
+
const fieldError = await validateField(field, _names.disabled, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation && !onlyCheckValid, isFieldArrayRoot);
|
|
1872
1934
|
if (isPromiseFunction && _proxyFormState.validatingFields) {
|
|
1873
1935
|
_updateIsValidating([_f.name]);
|
|
1874
1936
|
}
|
|
1875
1937
|
if (fieldError[_f.name]) {
|
|
1876
1938
|
context.valid = false;
|
|
1877
|
-
if (
|
|
1939
|
+
if (onlyCheckValid) {
|
|
1878
1940
|
break;
|
|
1879
1941
|
}
|
|
1880
1942
|
}
|
|
1881
|
-
!
|
|
1943
|
+
!onlyCheckValid &&
|
|
1882
1944
|
(get(fieldError, _f.name)
|
|
1883
1945
|
? isFieldArrayRoot
|
|
1884
1946
|
? updateFieldArrayRootError(_formState.errors, fieldError, _f.name)
|
|
1885
1947
|
: set(_formState.errors, _f.name, fieldError[_f.name])
|
|
1886
1948
|
: unset(_formState.errors, _f.name));
|
|
1949
|
+
if (props.shouldUseNativeValidation && fieldError[_f.name]) {
|
|
1950
|
+
break;
|
|
1951
|
+
}
|
|
1887
1952
|
}
|
|
1888
1953
|
!isEmptyObject$1(fieldValue) &&
|
|
1889
|
-
(await executeBuiltInValidation(
|
|
1954
|
+
(await executeBuiltInValidation({
|
|
1955
|
+
context,
|
|
1956
|
+
onlyCheckValid,
|
|
1957
|
+
fields: fieldValue,
|
|
1958
|
+
name: name,
|
|
1959
|
+
eventType,
|
|
1960
|
+
}));
|
|
1890
1961
|
}
|
|
1891
1962
|
}
|
|
1892
1963
|
return context.valid;
|
|
@@ -1997,9 +2068,10 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
1997
2068
|
_proxySubscribeFormState.isDirty ||
|
|
1998
2069
|
_proxySubscribeFormState.dirtyFields) &&
|
|
1999
2070
|
options.shouldDirty) {
|
|
2071
|
+
_updateDirtyFields(name);
|
|
2000
2072
|
_subjects.state.next({
|
|
2001
2073
|
name,
|
|
2002
|
-
dirtyFields:
|
|
2074
|
+
dirtyFields: _formState.dirtyFields,
|
|
2003
2075
|
isDirty: _getDirty(name, cloneValue),
|
|
2004
2076
|
});
|
|
2005
2077
|
}
|
|
@@ -2045,6 +2117,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
2045
2117
|
: getEventValue(event);
|
|
2046
2118
|
const isBlurEvent = event.type === EVENTS.BLUR || event.type === EVENTS.FOCUS_OUT;
|
|
2047
2119
|
const shouldSkipValidation = (!hasValidation(field._f) &&
|
|
2120
|
+
!props.validate &&
|
|
2048
2121
|
!_options.resolver &&
|
|
2049
2122
|
!get(_formState.errors, name) &&
|
|
2050
2123
|
!field._f.deps) ||
|
|
@@ -2082,6 +2155,12 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
2082
2155
|
return (shouldRender &&
|
|
2083
2156
|
_subjects.state.next({ name, ...(watched ? {} : fieldState) }));
|
|
2084
2157
|
}
|
|
2158
|
+
if (!_options.resolver && props.validate) {
|
|
2159
|
+
await validateForm({
|
|
2160
|
+
name: name,
|
|
2161
|
+
eventType: event.type,
|
|
2162
|
+
});
|
|
2163
|
+
}
|
|
2085
2164
|
!isBlurEvent && watched && _subjects.state.next({ ..._formState });
|
|
2086
2165
|
if (_options.resolver) {
|
|
2087
2166
|
const { errors } = await _runSchema([name]);
|
|
@@ -2106,7 +2185,12 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
2106
2185
|
}
|
|
2107
2186
|
else if (_proxyFormState.isValid ||
|
|
2108
2187
|
_proxySubscribeFormState.isValid) {
|
|
2109
|
-
isValid = await executeBuiltInValidation(
|
|
2188
|
+
isValid = await executeBuiltInValidation({
|
|
2189
|
+
fields: _fields,
|
|
2190
|
+
onlyCheckValid: true,
|
|
2191
|
+
name: name,
|
|
2192
|
+
eventType: event.type,
|
|
2193
|
+
});
|
|
2110
2194
|
}
|
|
2111
2195
|
}
|
|
2112
2196
|
}
|
|
@@ -2139,12 +2223,19 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
2139
2223
|
else if (name) {
|
|
2140
2224
|
validationResult = (await Promise.all(fieldNames.map(async (fieldName) => {
|
|
2141
2225
|
const field = get(_fields, fieldName);
|
|
2142
|
-
return await executeBuiltInValidation(
|
|
2226
|
+
return await executeBuiltInValidation({
|
|
2227
|
+
fields: field && field._f ? { [fieldName]: field } : field,
|
|
2228
|
+
eventType: EVENTS.TRIGGER,
|
|
2229
|
+
});
|
|
2143
2230
|
}))).every(Boolean);
|
|
2144
2231
|
!(!validationResult && !_formState.isValid) && _setValid();
|
|
2145
2232
|
}
|
|
2146
2233
|
else {
|
|
2147
|
-
validationResult = isValid = await executeBuiltInValidation(
|
|
2234
|
+
validationResult = isValid = await executeBuiltInValidation({
|
|
2235
|
+
fields: _fields,
|
|
2236
|
+
name,
|
|
2237
|
+
eventType: EVENTS.TRIGGER,
|
|
2238
|
+
});
|
|
2148
2239
|
}
|
|
2149
2240
|
_subjects.state.next({
|
|
2150
2241
|
...(!isString$1(name) ||
|
|
@@ -2181,11 +2272,24 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
2181
2272
|
isTouched: !!get((formState || _formState).touchedFields, name),
|
|
2182
2273
|
});
|
|
2183
2274
|
const clearErrors = (name) => {
|
|
2184
|
-
name
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2275
|
+
const names = name ? convertToArrayPayload(name) : undefined;
|
|
2276
|
+
names === null || names === void 0 ? void 0 : names.forEach((inputName) => unset(_formState.errors, inputName));
|
|
2277
|
+
if (names) {
|
|
2278
|
+
// Emit for each cleared field with the field name so that
|
|
2279
|
+
// shouldSubscribeByName can filter and avoid broad re-renders
|
|
2280
|
+
names.forEach((inputName) => {
|
|
2281
|
+
_subjects.state.next({
|
|
2282
|
+
name: inputName,
|
|
2283
|
+
errors: _formState.errors,
|
|
2284
|
+
});
|
|
2285
|
+
});
|
|
2286
|
+
}
|
|
2287
|
+
else {
|
|
2288
|
+
// Clear all errors - emit without name to notify all subscribers
|
|
2289
|
+
_subjects.state.next({
|
|
2290
|
+
errors: {},
|
|
2291
|
+
});
|
|
2292
|
+
}
|
|
2189
2293
|
};
|
|
2190
2294
|
const setError = (name, error, options) => {
|
|
2191
2295
|
const ref = (get(_fields, name, { _f: {} })._f || {}).ref;
|
|
@@ -2277,6 +2381,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
2277
2381
|
const register = (name, options = {}) => {
|
|
2278
2382
|
let field = get(_fields, name);
|
|
2279
2383
|
const disabledIsDefined = isBoolean$1(options.disabled) || isBoolean$1(_options.disabled);
|
|
2384
|
+
const shouldRevalidateRemount = !_names.registerName.has(name) && field && !field._f.mount;
|
|
2280
2385
|
set(_fields, name, {
|
|
2281
2386
|
...(field || {}),
|
|
2282
2387
|
_f: {
|
|
@@ -2287,7 +2392,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
2287
2392
|
},
|
|
2288
2393
|
});
|
|
2289
2394
|
_names.mount.add(name);
|
|
2290
|
-
if (field) {
|
|
2395
|
+
if (field && !shouldRevalidateRemount) {
|
|
2291
2396
|
_setDisabledField({
|
|
2292
2397
|
disabled: isBoolean$1(options.disabled)
|
|
2293
2398
|
? options.disabled
|
|
@@ -2317,7 +2422,9 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
2317
2422
|
onBlur: onChange,
|
|
2318
2423
|
ref: (ref) => {
|
|
2319
2424
|
if (ref) {
|
|
2425
|
+
_names.registerName.add(name);
|
|
2320
2426
|
register(name, options);
|
|
2427
|
+
_names.registerName.delete(name);
|
|
2321
2428
|
field = get(_fields, name);
|
|
2322
2429
|
const fieldRef = isUndefined$1(ref.value)
|
|
2323
2430
|
? ref.querySelectorAll
|
|
@@ -2396,14 +2503,17 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
2396
2503
|
fieldValues = cloneObject(values);
|
|
2397
2504
|
}
|
|
2398
2505
|
else {
|
|
2399
|
-
await executeBuiltInValidation(
|
|
2506
|
+
await executeBuiltInValidation({
|
|
2507
|
+
fields: _fields,
|
|
2508
|
+
eventType: EVENTS.SUBMIT,
|
|
2509
|
+
});
|
|
2400
2510
|
}
|
|
2401
2511
|
if (_names.disabled.size) {
|
|
2402
2512
|
for (const name of _names.disabled) {
|
|
2403
2513
|
unset(fieldValues, name);
|
|
2404
2514
|
}
|
|
2405
2515
|
}
|
|
2406
|
-
unset(_formState.errors,
|
|
2516
|
+
unset(_formState.errors, ROOT_ERROR_TYPE);
|
|
2407
2517
|
if (isEmptyObject$1(_formState.errors)) {
|
|
2408
2518
|
_subjects.state.next({
|
|
2409
2519
|
errors: {},
|
|
@@ -2527,6 +2637,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
2527
2637
|
mount: keepStateOptions.keepDirtyValues ? _names.mount : new Set(),
|
|
2528
2638
|
unMount: new Set(),
|
|
2529
2639
|
array: new Set(),
|
|
2640
|
+
registerName: new Set(),
|
|
2530
2641
|
disabled: new Set(),
|
|
2531
2642
|
watch: new Set(),
|
|
2532
2643
|
watchAll: false,
|
|
@@ -2907,7 +3018,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
2907
3018
|
var undefined$1;
|
|
2908
3019
|
|
|
2909
3020
|
/** Used as the semantic version number. */
|
|
2910
|
-
var VERSION = '4.
|
|
3021
|
+
var VERSION = '4.18.1';
|
|
2911
3022
|
|
|
2912
3023
|
/** Used as the size to enable large array optimizations. */
|
|
2913
3024
|
var LARGE_ARRAY_SIZE = 200;
|
|
@@ -2915,7 +3026,8 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
2915
3026
|
/** Error message constants. */
|
|
2916
3027
|
var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',
|
|
2917
3028
|
FUNC_ERROR_TEXT = 'Expected a function',
|
|
2918
|
-
INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`'
|
|
3029
|
+
INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`',
|
|
3030
|
+
INVALID_TEMPL_IMPORTS_ERROR_TEXT = 'Invalid `imports` option passed into `_.template`';
|
|
2919
3031
|
|
|
2920
3032
|
/** Used to stand-in for `undefined` hash values. */
|
|
2921
3033
|
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
@@ -4647,6 +4759,10 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
4647
4759
|
* embedded Ruby (ERB) as well as ES2015 template strings. Change the
|
|
4648
4760
|
* following template settings to use alternative delimiters.
|
|
4649
4761
|
*
|
|
4762
|
+
* **Security:** See
|
|
4763
|
+
* [threat model](https://github.com/lodash/lodash/blob/main/threat-model.md)
|
|
4764
|
+
* — `_.template` is insecure and will be removed in v5.
|
|
4765
|
+
*
|
|
4650
4766
|
* @static
|
|
4651
4767
|
* @memberOf _
|
|
4652
4768
|
* @type {Object}
|
|
@@ -5195,7 +5311,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
5195
5311
|
* @name has
|
|
5196
5312
|
* @memberOf SetCache
|
|
5197
5313
|
* @param {*} value The value to search for.
|
|
5198
|
-
* @returns {
|
|
5314
|
+
* @returns {boolean} Returns `true` if `value` is found, else `false`.
|
|
5199
5315
|
*/
|
|
5200
5316
|
function setCacheHas(value) {
|
|
5201
5317
|
return this.__data__.has(value);
|
|
@@ -7266,7 +7382,9 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
7266
7382
|
function baseUnset(object, path) {
|
|
7267
7383
|
path = castPath(path, object);
|
|
7268
7384
|
|
|
7269
|
-
// Prevent prototype pollution
|
|
7385
|
+
// Prevent prototype pollution:
|
|
7386
|
+
// https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg
|
|
7387
|
+
// https://github.com/lodash/lodash/security/advisories/GHSA-f23m-r3pf-42rh
|
|
7270
7388
|
var index = -1,
|
|
7271
7389
|
length = path.length;
|
|
7272
7390
|
|
|
@@ -7274,32 +7392,17 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
7274
7392
|
return true;
|
|
7275
7393
|
}
|
|
7276
7394
|
|
|
7277
|
-
var isRootPrimitive = object == null || (typeof object !== 'object' && typeof object !== 'function');
|
|
7278
|
-
|
|
7279
7395
|
while (++index < length) {
|
|
7280
|
-
var key = path[index];
|
|
7281
|
-
|
|
7282
|
-
// skip non-string keys (e.g., Symbols, numbers)
|
|
7283
|
-
if (typeof key !== 'string') {
|
|
7284
|
-
continue;
|
|
7285
|
-
}
|
|
7396
|
+
var key = toKey(path[index]);
|
|
7286
7397
|
|
|
7287
7398
|
// Always block "__proto__" anywhere in the path if it's not expected
|
|
7288
7399
|
if (key === '__proto__' && !hasOwnProperty.call(object, '__proto__')) {
|
|
7289
7400
|
return false;
|
|
7290
7401
|
}
|
|
7291
7402
|
|
|
7292
|
-
// Block
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
typeof path[index + 1] === 'string' &&
|
|
7296
|
-
path[index + 1] === 'prototype') {
|
|
7297
|
-
|
|
7298
|
-
// Allow ONLY when the path starts at a primitive root, e.g., _.unset(0, 'constructor.prototype.a')
|
|
7299
|
-
if (isRootPrimitive && index === 0) {
|
|
7300
|
-
continue;
|
|
7301
|
-
}
|
|
7302
|
-
|
|
7403
|
+
// Block constructor/prototype as non-terminal traversal keys to prevent
|
|
7404
|
+
// escaping the object graph into built-in constructors and prototypes.
|
|
7405
|
+
if ((key === 'constructor' || key === 'prototype') && index < length - 1) {
|
|
7303
7406
|
return false;
|
|
7304
7407
|
}
|
|
7305
7408
|
}
|
|
@@ -9856,7 +9959,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
9856
9959
|
|
|
9857
9960
|
/**
|
|
9858
9961
|
* Creates an array with all falsey values removed. The values `false`, `null`,
|
|
9859
|
-
* `0`, `""`, `undefined`, and `NaN` are
|
|
9962
|
+
* `0`, `-0`, `0n`, `""`, `undefined`, and `NaN` are falsy.
|
|
9860
9963
|
*
|
|
9861
9964
|
* @static
|
|
9862
9965
|
* @memberOf _
|
|
@@ -10395,7 +10498,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
10395
10498
|
|
|
10396
10499
|
while (++index < length) {
|
|
10397
10500
|
var pair = pairs[index];
|
|
10398
|
-
result
|
|
10501
|
+
baseAssignValue(result, pair[0], pair[1]);
|
|
10399
10502
|
}
|
|
10400
10503
|
return result;
|
|
10401
10504
|
}
|
|
@@ -17055,6 +17158,8 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
17055
17158
|
* **Note:** JavaScript follows the IEEE-754 standard for resolving
|
|
17056
17159
|
* floating-point values which can produce unexpected results.
|
|
17057
17160
|
*
|
|
17161
|
+
* **Note:** If `lower` is greater than `upper`, the values are swapped.
|
|
17162
|
+
*
|
|
17058
17163
|
* @static
|
|
17059
17164
|
* @memberOf _
|
|
17060
17165
|
* @since 0.7.0
|
|
@@ -17068,9 +17173,16 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
17068
17173
|
* _.random(0, 5);
|
|
17069
17174
|
* // => an integer between 0 and 5
|
|
17070
17175
|
*
|
|
17176
|
+
* // when lower is greater than upper the values are swapped
|
|
17177
|
+
* _.random(5, 0);
|
|
17178
|
+
* // => an integer between 0 and 5
|
|
17179
|
+
*
|
|
17071
17180
|
* _.random(5);
|
|
17072
17181
|
* // => also an integer between 0 and 5
|
|
17073
17182
|
*
|
|
17183
|
+
* _.random(-5);
|
|
17184
|
+
* // => an integer between -5 and 0
|
|
17185
|
+
*
|
|
17074
17186
|
* _.random(5, true);
|
|
17075
17187
|
* // => a floating-point number between 0 and 5
|
|
17076
17188
|
*
|
|
@@ -17672,6 +17784,10 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
17672
17784
|
* properties may be accessed as free variables in the template. If a setting
|
|
17673
17785
|
* object is given, it takes precedence over `_.templateSettings` values.
|
|
17674
17786
|
*
|
|
17787
|
+
* **Security:** `_.template` is insecure and should not be used. It will be
|
|
17788
|
+
* removed in Lodash v5. Avoid untrusted input. See
|
|
17789
|
+
* [threat model](https://github.com/lodash/lodash/blob/main/threat-model.md).
|
|
17790
|
+
*
|
|
17675
17791
|
* **Note:** In the development build `_.template` utilizes
|
|
17676
17792
|
* [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
|
|
17677
17793
|
* for easier debugging.
|
|
@@ -17779,12 +17895,18 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
17779
17895
|
options = undefined$1;
|
|
17780
17896
|
}
|
|
17781
17897
|
string = toString(string);
|
|
17782
|
-
options =
|
|
17898
|
+
options = assignWith({}, options, settings, customDefaultsAssignIn);
|
|
17783
17899
|
|
|
17784
|
-
var imports =
|
|
17900
|
+
var imports = assignWith({}, options.imports, settings.imports, customDefaultsAssignIn),
|
|
17785
17901
|
importsKeys = keys(imports),
|
|
17786
17902
|
importsValues = baseValues(imports, importsKeys);
|
|
17787
17903
|
|
|
17904
|
+
arrayEach(importsKeys, function(key) {
|
|
17905
|
+
if (reForbiddenIdentifierChars.test(key)) {
|
|
17906
|
+
throw new Error(INVALID_TEMPL_IMPORTS_ERROR_TEXT);
|
|
17907
|
+
}
|
|
17908
|
+
});
|
|
17909
|
+
|
|
17788
17910
|
var isEscaping,
|
|
17789
17911
|
isEvaluating,
|
|
17790
17912
|
index = 0,
|
|
@@ -20156,30 +20278,30 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20156
20278
|
|
|
20157
20279
|
// utils is a library of generic helper functions non-specific to axios
|
|
20158
20280
|
|
|
20159
|
-
const {toString} = Object.prototype;
|
|
20160
|
-
const {getPrototypeOf: getPrototypeOf$1} = Object;
|
|
20161
|
-
const {iterator, toStringTag} = Symbol;
|
|
20281
|
+
const { toString } = Object.prototype;
|
|
20282
|
+
const { getPrototypeOf: getPrototypeOf$1 } = Object;
|
|
20283
|
+
const { iterator, toStringTag } = Symbol;
|
|
20162
20284
|
|
|
20163
|
-
const kindOf = (cache => thing => {
|
|
20164
|
-
|
|
20165
|
-
|
|
20285
|
+
const kindOf = ((cache) => (thing) => {
|
|
20286
|
+
const str = toString.call(thing);
|
|
20287
|
+
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
20166
20288
|
})(Object.create(null));
|
|
20167
20289
|
|
|
20168
20290
|
const kindOfTest = (type) => {
|
|
20169
20291
|
type = type.toLowerCase();
|
|
20170
|
-
return (thing) => kindOf(thing) === type
|
|
20292
|
+
return (thing) => kindOf(thing) === type;
|
|
20171
20293
|
};
|
|
20172
20294
|
|
|
20173
|
-
const typeOfTest = type => thing => typeof thing === type;
|
|
20295
|
+
const typeOfTest = (type) => (thing) => typeof thing === type;
|
|
20174
20296
|
|
|
20175
20297
|
/**
|
|
20176
|
-
* Determine if a value is
|
|
20298
|
+
* Determine if a value is a non-null object
|
|
20177
20299
|
*
|
|
20178
20300
|
* @param {Object} val The value to test
|
|
20179
20301
|
*
|
|
20180
20302
|
* @returns {boolean} True if value is an Array, otherwise false
|
|
20181
20303
|
*/
|
|
20182
|
-
const {isArray} = Array;
|
|
20304
|
+
const { isArray } = Array;
|
|
20183
20305
|
|
|
20184
20306
|
/**
|
|
20185
20307
|
* Determine if a value is undefined
|
|
@@ -20198,8 +20320,14 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20198
20320
|
* @returns {boolean} True if value is a Buffer, otherwise false
|
|
20199
20321
|
*/
|
|
20200
20322
|
function isBuffer(val) {
|
|
20201
|
-
return
|
|
20202
|
-
|
|
20323
|
+
return (
|
|
20324
|
+
val !== null &&
|
|
20325
|
+
!isUndefined(val) &&
|
|
20326
|
+
val.constructor !== null &&
|
|
20327
|
+
!isUndefined(val.constructor) &&
|
|
20328
|
+
isFunction$1(val.constructor.isBuffer) &&
|
|
20329
|
+
val.constructor.isBuffer(val)
|
|
20330
|
+
);
|
|
20203
20331
|
}
|
|
20204
20332
|
|
|
20205
20333
|
/**
|
|
@@ -20211,7 +20339,6 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20211
20339
|
*/
|
|
20212
20340
|
const isArrayBuffer = kindOfTest('ArrayBuffer');
|
|
20213
20341
|
|
|
20214
|
-
|
|
20215
20342
|
/**
|
|
20216
20343
|
* Determine if a value is a view on an ArrayBuffer
|
|
20217
20344
|
*
|
|
@@ -20221,10 +20348,10 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20221
20348
|
*/
|
|
20222
20349
|
function isArrayBufferView(val) {
|
|
20223
20350
|
let result;
|
|
20224
|
-
if (
|
|
20351
|
+
if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {
|
|
20225
20352
|
result = ArrayBuffer.isView(val);
|
|
20226
20353
|
} else {
|
|
20227
|
-
result =
|
|
20354
|
+
result = val && val.buffer && isArrayBuffer(val.buffer);
|
|
20228
20355
|
}
|
|
20229
20356
|
return result;
|
|
20230
20357
|
}
|
|
@@ -20270,7 +20397,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20270
20397
|
* @param {*} thing The value to test
|
|
20271
20398
|
* @returns {boolean} True if value is a Boolean, otherwise false
|
|
20272
20399
|
*/
|
|
20273
|
-
const isBoolean = thing => thing === true || thing === false;
|
|
20400
|
+
const isBoolean = (thing) => thing === true || thing === false;
|
|
20274
20401
|
|
|
20275
20402
|
/**
|
|
20276
20403
|
* Determine if a value is a plain Object
|
|
@@ -20285,7 +20412,13 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20285
20412
|
}
|
|
20286
20413
|
|
|
20287
20414
|
const prototype = getPrototypeOf$1(val);
|
|
20288
|
-
return (
|
|
20415
|
+
return (
|
|
20416
|
+
(prototype === null ||
|
|
20417
|
+
prototype === Object.prototype ||
|
|
20418
|
+
Object.getPrototypeOf(prototype) === null) &&
|
|
20419
|
+
!(toStringTag in val) &&
|
|
20420
|
+
!(iterator in val)
|
|
20421
|
+
);
|
|
20289
20422
|
};
|
|
20290
20423
|
|
|
20291
20424
|
/**
|
|
@@ -20327,6 +20460,31 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20327
20460
|
*/
|
|
20328
20461
|
const isFile = kindOfTest('File');
|
|
20329
20462
|
|
|
20463
|
+
/**
|
|
20464
|
+
* Determine if a value is a React Native Blob
|
|
20465
|
+
* React Native "blob": an object with a `uri` attribute. Optionally, it can
|
|
20466
|
+
* also have a `name` and `type` attribute to specify filename and content type
|
|
20467
|
+
*
|
|
20468
|
+
* @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71
|
|
20469
|
+
*
|
|
20470
|
+
* @param {*} value The value to test
|
|
20471
|
+
*
|
|
20472
|
+
* @returns {boolean} True if value is a React Native Blob, otherwise false
|
|
20473
|
+
*/
|
|
20474
|
+
const isReactNativeBlob = (value) => {
|
|
20475
|
+
return !!(value && typeof value.uri !== 'undefined');
|
|
20476
|
+
};
|
|
20477
|
+
|
|
20478
|
+
/**
|
|
20479
|
+
* Determine if environment is React Native
|
|
20480
|
+
* ReactNative `FormData` has a non-standard `getParts()` method
|
|
20481
|
+
*
|
|
20482
|
+
* @param {*} formData The formData to test
|
|
20483
|
+
*
|
|
20484
|
+
* @returns {boolean} True if environment is React Native, otherwise false
|
|
20485
|
+
*/
|
|
20486
|
+
const isReactNative = (formData) => formData && typeof formData.getParts !== 'undefined';
|
|
20487
|
+
|
|
20330
20488
|
/**
|
|
20331
20489
|
* Determine if a value is a Blob
|
|
20332
20490
|
*
|
|
@@ -20361,17 +20519,28 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20361
20519
|
*
|
|
20362
20520
|
* @returns {boolean} True if value is an FormData, otherwise false
|
|
20363
20521
|
*/
|
|
20522
|
+
function getGlobal() {
|
|
20523
|
+
if (typeof globalThis !== 'undefined') return globalThis;
|
|
20524
|
+
if (typeof self !== 'undefined') return self;
|
|
20525
|
+
if (typeof window !== 'undefined') return window;
|
|
20526
|
+
if (typeof global !== 'undefined') return global;
|
|
20527
|
+
return {};
|
|
20528
|
+
}
|
|
20529
|
+
|
|
20530
|
+
const G = getGlobal();
|
|
20531
|
+
const FormDataCtor = typeof G.FormData !== 'undefined' ? G.FormData : undefined;
|
|
20532
|
+
|
|
20364
20533
|
const isFormData = (thing) => {
|
|
20365
20534
|
let kind;
|
|
20366
20535
|
return thing && (
|
|
20367
|
-
(
|
|
20536
|
+
(FormDataCtor && thing instanceof FormDataCtor) || (
|
|
20368
20537
|
isFunction$1(thing.append) && (
|
|
20369
20538
|
(kind = kindOf(thing)) === 'formdata' ||
|
|
20370
20539
|
// detect form-data instance
|
|
20371
20540
|
(kind === 'object' && isFunction$1(thing.toString) && thing.toString() === '[object FormData]')
|
|
20372
20541
|
)
|
|
20373
20542
|
)
|
|
20374
|
-
)
|
|
20543
|
+
);
|
|
20375
20544
|
};
|
|
20376
20545
|
|
|
20377
20546
|
/**
|
|
@@ -20383,7 +20552,12 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20383
20552
|
*/
|
|
20384
20553
|
const isURLSearchParams = kindOfTest('URLSearchParams');
|
|
20385
20554
|
|
|
20386
|
-
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
20555
|
+
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
20556
|
+
'ReadableStream',
|
|
20557
|
+
'Request',
|
|
20558
|
+
'Response',
|
|
20559
|
+
'Headers',
|
|
20560
|
+
].map(kindOfTest);
|
|
20387
20561
|
|
|
20388
20562
|
/**
|
|
20389
20563
|
* Trim excess whitespace off the beginning and end of a string
|
|
@@ -20392,9 +20566,9 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20392
20566
|
*
|
|
20393
20567
|
* @returns {String} The String freed of excess whitespace
|
|
20394
20568
|
*/
|
|
20395
|
-
const trim = (str) =>
|
|
20396
|
-
str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
|
|
20397
|
-
|
|
20569
|
+
const trim = (str) => {
|
|
20570
|
+
return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
|
|
20571
|
+
};
|
|
20398
20572
|
/**
|
|
20399
20573
|
* Iterate over an Array or an Object invoking a function for each item.
|
|
20400
20574
|
*
|
|
@@ -20411,7 +20585,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20411
20585
|
* @param {Boolean} [options.allOwnKeys = false]
|
|
20412
20586
|
* @returns {any}
|
|
20413
20587
|
*/
|
|
20414
|
-
function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
20588
|
+
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
20415
20589
|
// Don't bother if no value provided
|
|
20416
20590
|
if (obj === null || typeof obj === 'undefined') {
|
|
20417
20591
|
return;
|
|
@@ -20449,8 +20623,16 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20449
20623
|
}
|
|
20450
20624
|
}
|
|
20451
20625
|
|
|
20626
|
+
/**
|
|
20627
|
+
* Finds a key in an object, case-insensitive, returning the actual key name.
|
|
20628
|
+
* Returns null if the object is a Buffer or if no match is found.
|
|
20629
|
+
*
|
|
20630
|
+
* @param {Object} obj - The object to search.
|
|
20631
|
+
* @param {string} key - The key to find (case-insensitive).
|
|
20632
|
+
* @returns {?string} The actual key name if found, otherwise null.
|
|
20633
|
+
*/
|
|
20452
20634
|
function findKey(obj, key) {
|
|
20453
|
-
if (isBuffer(obj)){
|
|
20635
|
+
if (isBuffer(obj)) {
|
|
20454
20636
|
return null;
|
|
20455
20637
|
}
|
|
20456
20638
|
|
|
@@ -20469,8 +20651,8 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20469
20651
|
|
|
20470
20652
|
const _global$2 = (() => {
|
|
20471
20653
|
/*eslint no-undef:0*/
|
|
20472
|
-
if (typeof globalThis !==
|
|
20473
|
-
return typeof self !==
|
|
20654
|
+
if (typeof globalThis !== 'undefined') return globalThis;
|
|
20655
|
+
return typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : global;
|
|
20474
20656
|
})();
|
|
20475
20657
|
|
|
20476
20658
|
const isContextDefined = (context) => !isUndefined(context) && context !== _global$2;
|
|
@@ -20494,10 +20676,15 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20494
20676
|
* @returns {Object} Result of all merge properties
|
|
20495
20677
|
*/
|
|
20496
20678
|
function merge$1(/* obj1, obj2, obj3, ... */) {
|
|
20497
|
-
const {caseless, skipUndefined} = isContextDefined(this) && this || {};
|
|
20679
|
+
const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
|
|
20498
20680
|
const result = {};
|
|
20499
20681
|
const assignValue = (val, key) => {
|
|
20500
|
-
|
|
20682
|
+
// Skip dangerous property names to prevent prototype pollution
|
|
20683
|
+
if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
|
|
20684
|
+
return;
|
|
20685
|
+
}
|
|
20686
|
+
|
|
20687
|
+
const targetKey = (caseless && findKey(result, key)) || key;
|
|
20501
20688
|
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
20502
20689
|
result[targetKey] = merge$1(result[targetKey], val);
|
|
20503
20690
|
} else if (isPlainObject(val)) {
|
|
@@ -20526,24 +20713,28 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20526
20713
|
* @param {Boolean} [options.allOwnKeys]
|
|
20527
20714
|
* @returns {Object} The resulting value of object a
|
|
20528
20715
|
*/
|
|
20529
|
-
const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
20530
|
-
forEach(
|
|
20531
|
-
|
|
20532
|
-
|
|
20533
|
-
|
|
20534
|
-
|
|
20535
|
-
|
|
20536
|
-
|
|
20537
|
-
|
|
20538
|
-
|
|
20539
|
-
|
|
20540
|
-
|
|
20541
|
-
|
|
20542
|
-
|
|
20543
|
-
|
|
20544
|
-
|
|
20545
|
-
|
|
20546
|
-
|
|
20716
|
+
const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
20717
|
+
forEach(
|
|
20718
|
+
b,
|
|
20719
|
+
(val, key) => {
|
|
20720
|
+
if (thisArg && isFunction$1(val)) {
|
|
20721
|
+
Object.defineProperty(a, key, {
|
|
20722
|
+
value: bind(val, thisArg),
|
|
20723
|
+
writable: true,
|
|
20724
|
+
enumerable: true,
|
|
20725
|
+
configurable: true,
|
|
20726
|
+
});
|
|
20727
|
+
} else {
|
|
20728
|
+
Object.defineProperty(a, key, {
|
|
20729
|
+
value: val,
|
|
20730
|
+
writable: true,
|
|
20731
|
+
enumerable: true,
|
|
20732
|
+
configurable: true,
|
|
20733
|
+
});
|
|
20734
|
+
}
|
|
20735
|
+
},
|
|
20736
|
+
{ allOwnKeys }
|
|
20737
|
+
);
|
|
20547
20738
|
return a;
|
|
20548
20739
|
};
|
|
20549
20740
|
|
|
@@ -20555,7 +20746,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20555
20746
|
* @returns {string} content value without BOM
|
|
20556
20747
|
*/
|
|
20557
20748
|
const stripBOM = (content) => {
|
|
20558
|
-
if (content.charCodeAt(0) ===
|
|
20749
|
+
if (content.charCodeAt(0) === 0xfeff) {
|
|
20559
20750
|
content = content.slice(1);
|
|
20560
20751
|
}
|
|
20561
20752
|
return content;
|
|
@@ -20576,10 +20767,10 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20576
20767
|
value: constructor,
|
|
20577
20768
|
writable: true,
|
|
20578
20769
|
enumerable: false,
|
|
20579
|
-
configurable: true
|
|
20770
|
+
configurable: true,
|
|
20580
20771
|
});
|
|
20581
20772
|
Object.defineProperty(constructor, 'super', {
|
|
20582
|
-
value: superConstructor.prototype
|
|
20773
|
+
value: superConstructor.prototype,
|
|
20583
20774
|
});
|
|
20584
20775
|
props && Object.assign(constructor.prototype, props);
|
|
20585
20776
|
};
|
|
@@ -20638,7 +20829,6 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20638
20829
|
return lastIndex !== -1 && lastIndex === position;
|
|
20639
20830
|
};
|
|
20640
20831
|
|
|
20641
|
-
|
|
20642
20832
|
/**
|
|
20643
20833
|
* Returns new array from array like object or null if failed
|
|
20644
20834
|
*
|
|
@@ -20667,9 +20857,9 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20667
20857
|
* @returns {Array}
|
|
20668
20858
|
*/
|
|
20669
20859
|
// eslint-disable-next-line func-names
|
|
20670
|
-
const isTypedArray = (TypedArray => {
|
|
20860
|
+
const isTypedArray = ((TypedArray) => {
|
|
20671
20861
|
// eslint-disable-next-line func-names
|
|
20672
|
-
return thing => {
|
|
20862
|
+
return (thing) => {
|
|
20673
20863
|
return TypedArray && thing instanceof TypedArray;
|
|
20674
20864
|
};
|
|
20675
20865
|
})(typeof Uint8Array !== 'undefined' && getPrototypeOf$1(Uint8Array));
|
|
@@ -20717,16 +20907,18 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20717
20907
|
/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
|
|
20718
20908
|
const isHTMLForm = kindOfTest('HTMLFormElement');
|
|
20719
20909
|
|
|
20720
|
-
const toCamelCase = str => {
|
|
20721
|
-
return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,
|
|
20722
|
-
|
|
20723
|
-
|
|
20724
|
-
}
|
|
20725
|
-
);
|
|
20910
|
+
const toCamelCase = (str) => {
|
|
20911
|
+
return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
|
|
20912
|
+
return p1.toUpperCase() + p2;
|
|
20913
|
+
});
|
|
20726
20914
|
};
|
|
20727
20915
|
|
|
20728
20916
|
/* Creating a function that will check if an object has a property. */
|
|
20729
|
-
const hasOwnProperty = (
|
|
20917
|
+
const hasOwnProperty = (
|
|
20918
|
+
({ hasOwnProperty }) =>
|
|
20919
|
+
(obj, prop) =>
|
|
20920
|
+
hasOwnProperty.call(obj, prop)
|
|
20921
|
+
)(Object.prototype);
|
|
20730
20922
|
|
|
20731
20923
|
/**
|
|
20732
20924
|
* Determine if a value is a RegExp object
|
|
@@ -20776,17 +20968,25 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20776
20968
|
|
|
20777
20969
|
if (!descriptor.set) {
|
|
20778
20970
|
descriptor.set = () => {
|
|
20779
|
-
throw Error(
|
|
20971
|
+
throw Error("Can not rewrite read-only method '" + name + "'");
|
|
20780
20972
|
};
|
|
20781
20973
|
}
|
|
20782
20974
|
});
|
|
20783
20975
|
};
|
|
20784
20976
|
|
|
20977
|
+
/**
|
|
20978
|
+
* Converts an array or a delimited string into an object set with values as keys and true as values.
|
|
20979
|
+
* Useful for fast membership checks.
|
|
20980
|
+
*
|
|
20981
|
+
* @param {Array|string} arrayOrString - The array or string to convert.
|
|
20982
|
+
* @param {string} delimiter - The delimiter to use if input is a string.
|
|
20983
|
+
* @returns {Object} An object with keys from the array or string, values set to true.
|
|
20984
|
+
*/
|
|
20785
20985
|
const toObjectSet = (arrayOrString, delimiter) => {
|
|
20786
20986
|
const obj = {};
|
|
20787
20987
|
|
|
20788
20988
|
const define = (arr) => {
|
|
20789
|
-
arr.forEach(value => {
|
|
20989
|
+
arr.forEach((value) => {
|
|
20790
20990
|
obj[value] = true;
|
|
20791
20991
|
});
|
|
20792
20992
|
};
|
|
@@ -20799,11 +20999,9 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20799
20999
|
const noop$1 = () => {};
|
|
20800
21000
|
|
|
20801
21001
|
const toFiniteNumber = (value, defaultValue) => {
|
|
20802
|
-
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
21002
|
+
return value != null && Number.isFinite((value = +value)) ? value : defaultValue;
|
|
20803
21003
|
};
|
|
20804
21004
|
|
|
20805
|
-
|
|
20806
|
-
|
|
20807
21005
|
/**
|
|
20808
21006
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
20809
21007
|
*
|
|
@@ -20812,14 +21010,24 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20812
21010
|
* @returns {boolean}
|
|
20813
21011
|
*/
|
|
20814
21012
|
function isSpecCompliantForm(thing) {
|
|
20815
|
-
return !!(
|
|
21013
|
+
return !!(
|
|
21014
|
+
thing &&
|
|
21015
|
+
isFunction$1(thing.append) &&
|
|
21016
|
+
thing[toStringTag] === 'FormData' &&
|
|
21017
|
+
thing[iterator]
|
|
21018
|
+
);
|
|
20816
21019
|
}
|
|
20817
21020
|
|
|
21021
|
+
/**
|
|
21022
|
+
* Recursively converts an object to a JSON-compatible object, handling circular references and Buffers.
|
|
21023
|
+
*
|
|
21024
|
+
* @param {Object} obj - The object to convert.
|
|
21025
|
+
* @returns {Object} The JSON-compatible object.
|
|
21026
|
+
*/
|
|
20818
21027
|
const toJSONObject = (obj) => {
|
|
20819
21028
|
const stack = new Array(10);
|
|
20820
21029
|
|
|
20821
21030
|
const visit = (source, i) => {
|
|
20822
|
-
|
|
20823
21031
|
if (isObject$1(source)) {
|
|
20824
21032
|
if (stack.indexOf(source) >= 0) {
|
|
20825
21033
|
return;
|
|
@@ -20830,7 +21038,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20830
21038
|
return source;
|
|
20831
21039
|
}
|
|
20832
21040
|
|
|
20833
|
-
if(!('toJSON' in source)) {
|
|
21041
|
+
if (!('toJSON' in source)) {
|
|
20834
21042
|
stack[i] = source;
|
|
20835
21043
|
const target = isArray(source) ? [] : {};
|
|
20836
21044
|
|
|
@@ -20851,45 +21059,77 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20851
21059
|
return visit(obj, 0);
|
|
20852
21060
|
};
|
|
20853
21061
|
|
|
21062
|
+
/**
|
|
21063
|
+
* Determines if a value is an async function.
|
|
21064
|
+
*
|
|
21065
|
+
* @param {*} thing - The value to test.
|
|
21066
|
+
* @returns {boolean} True if value is an async function, otherwise false.
|
|
21067
|
+
*/
|
|
20854
21068
|
const isAsyncFn = kindOfTest('AsyncFunction');
|
|
20855
21069
|
|
|
21070
|
+
/**
|
|
21071
|
+
* Determines if a value is thenable (has then and catch methods).
|
|
21072
|
+
*
|
|
21073
|
+
* @param {*} thing - The value to test.
|
|
21074
|
+
* @returns {boolean} True if value is thenable, otherwise false.
|
|
21075
|
+
*/
|
|
20856
21076
|
const isThenable = (thing) =>
|
|
20857
|
-
thing &&
|
|
21077
|
+
thing &&
|
|
21078
|
+
(isObject$1(thing) || isFunction$1(thing)) &&
|
|
21079
|
+
isFunction$1(thing.then) &&
|
|
21080
|
+
isFunction$1(thing.catch);
|
|
20858
21081
|
|
|
20859
21082
|
// original code
|
|
20860
21083
|
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
20861
21084
|
|
|
21085
|
+
/**
|
|
21086
|
+
* Provides a cross-platform setImmediate implementation.
|
|
21087
|
+
* Uses native setImmediate if available, otherwise falls back to postMessage or setTimeout.
|
|
21088
|
+
*
|
|
21089
|
+
* @param {boolean} setImmediateSupported - Whether setImmediate is supported.
|
|
21090
|
+
* @param {boolean} postMessageSupported - Whether postMessage is supported.
|
|
21091
|
+
* @returns {Function} A function to schedule a callback asynchronously.
|
|
21092
|
+
*/
|
|
20862
21093
|
const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
20863
21094
|
if (setImmediateSupported) {
|
|
20864
21095
|
return setImmediate;
|
|
20865
21096
|
}
|
|
20866
21097
|
|
|
20867
|
-
return postMessageSupported
|
|
20868
|
-
|
|
20869
|
-
|
|
20870
|
-
|
|
20871
|
-
|
|
20872
|
-
|
|
21098
|
+
return postMessageSupported
|
|
21099
|
+
? ((token, callbacks) => {
|
|
21100
|
+
_global$2.addEventListener(
|
|
21101
|
+
'message',
|
|
21102
|
+
({ source, data }) => {
|
|
21103
|
+
if (source === _global$2 && data === token) {
|
|
21104
|
+
callbacks.length && callbacks.shift()();
|
|
21105
|
+
}
|
|
21106
|
+
},
|
|
21107
|
+
false
|
|
21108
|
+
);
|
|
20873
21109
|
|
|
20874
|
-
|
|
20875
|
-
|
|
20876
|
-
|
|
20877
|
-
|
|
20878
|
-
|
|
20879
|
-
|
|
20880
|
-
|
|
20881
|
-
isFunction$1(_global$2.postMessage)
|
|
20882
|
-
);
|
|
21110
|
+
return (cb) => {
|
|
21111
|
+
callbacks.push(cb);
|
|
21112
|
+
_global$2.postMessage(token, '*');
|
|
21113
|
+
};
|
|
21114
|
+
})(`axios@${Math.random()}`, [])
|
|
21115
|
+
: (cb) => setTimeout(cb);
|
|
21116
|
+
})(typeof setImmediate === 'function', isFunction$1(_global$2.postMessage));
|
|
20883
21117
|
|
|
20884
|
-
|
|
20885
|
-
|
|
21118
|
+
/**
|
|
21119
|
+
* Schedules a microtask or asynchronous callback as soon as possible.
|
|
21120
|
+
* Uses queueMicrotask if available, otherwise falls back to process.nextTick or _setImmediate.
|
|
21121
|
+
*
|
|
21122
|
+
* @type {Function}
|
|
21123
|
+
*/
|
|
21124
|
+
const asap =
|
|
21125
|
+
typeof queueMicrotask !== 'undefined'
|
|
21126
|
+
? queueMicrotask.bind(_global$2)
|
|
21127
|
+
: (typeof process !== 'undefined' && process.nextTick) || _setImmediate;
|
|
20886
21128
|
|
|
20887
21129
|
// *********************
|
|
20888
21130
|
|
|
20889
|
-
|
|
20890
21131
|
const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
20891
21132
|
|
|
20892
|
-
|
|
20893
21133
|
var utils$1 = {
|
|
20894
21134
|
isArray,
|
|
20895
21135
|
isArrayBuffer,
|
|
@@ -20909,6 +21149,8 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20909
21149
|
isUndefined,
|
|
20910
21150
|
isDate,
|
|
20911
21151
|
isFile,
|
|
21152
|
+
isReactNativeBlob,
|
|
21153
|
+
isReactNative,
|
|
20912
21154
|
isBlob,
|
|
20913
21155
|
isRegExp,
|
|
20914
21156
|
isFunction: isFunction$1,
|
|
@@ -20947,18 +21189,24 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20947
21189
|
isThenable,
|
|
20948
21190
|
setImmediate: _setImmediate,
|
|
20949
21191
|
asap,
|
|
20950
|
-
isIterable
|
|
21192
|
+
isIterable,
|
|
20951
21193
|
};
|
|
20952
21194
|
|
|
20953
21195
|
class AxiosError extends Error {
|
|
20954
|
-
|
|
20955
|
-
|
|
20956
|
-
|
|
20957
|
-
|
|
20958
|
-
|
|
20959
|
-
|
|
21196
|
+
static from(error, code, config, request, response, customProps) {
|
|
21197
|
+
const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
|
|
21198
|
+
axiosError.cause = error;
|
|
21199
|
+
axiosError.name = error.name;
|
|
21200
|
+
|
|
21201
|
+
// Preserve status from the original error if not already set from response
|
|
21202
|
+
if (error.status != null && axiosError.status == null) {
|
|
21203
|
+
axiosError.status = error.status;
|
|
20960
21204
|
}
|
|
20961
21205
|
|
|
21206
|
+
customProps && Object.assign(axiosError, customProps);
|
|
21207
|
+
return axiosError;
|
|
21208
|
+
}
|
|
21209
|
+
|
|
20962
21210
|
/**
|
|
20963
21211
|
* Create an Error with the specified message, config, error code, request and response.
|
|
20964
21212
|
*
|
|
@@ -20971,37 +21219,48 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
20971
21219
|
* @returns {Error} The created error.
|
|
20972
21220
|
*/
|
|
20973
21221
|
constructor(message, code, config, request, response) {
|
|
20974
|
-
|
|
20975
|
-
|
|
20976
|
-
|
|
20977
|
-
|
|
20978
|
-
|
|
20979
|
-
|
|
20980
|
-
|
|
20981
|
-
|
|
20982
|
-
|
|
20983
|
-
|
|
21222
|
+
super(message);
|
|
21223
|
+
|
|
21224
|
+
// Make message enumerable to maintain backward compatibility
|
|
21225
|
+
// The native Error constructor sets message as non-enumerable,
|
|
21226
|
+
// but axios < v1.13.3 had it as enumerable
|
|
21227
|
+
Object.defineProperty(this, 'message', {
|
|
21228
|
+
value: message,
|
|
21229
|
+
enumerable: true,
|
|
21230
|
+
writable: true,
|
|
21231
|
+
configurable: true
|
|
21232
|
+
});
|
|
21233
|
+
|
|
21234
|
+
this.name = 'AxiosError';
|
|
21235
|
+
this.isAxiosError = true;
|
|
21236
|
+
code && (this.code = code);
|
|
21237
|
+
config && (this.config = config);
|
|
21238
|
+
request && (this.request = request);
|
|
21239
|
+
if (response) {
|
|
21240
|
+
this.response = response;
|
|
21241
|
+
this.status = response.status;
|
|
21242
|
+
}
|
|
20984
21243
|
}
|
|
20985
21244
|
|
|
20986
|
-
|
|
20987
|
-
|
|
20988
|
-
|
|
20989
|
-
|
|
20990
|
-
|
|
20991
|
-
|
|
20992
|
-
|
|
20993
|
-
|
|
20994
|
-
|
|
20995
|
-
|
|
20996
|
-
|
|
20997
|
-
|
|
20998
|
-
|
|
20999
|
-
|
|
21000
|
-
|
|
21001
|
-
|
|
21002
|
-
|
|
21003
|
-
|
|
21004
|
-
|
|
21245
|
+
toJSON() {
|
|
21246
|
+
return {
|
|
21247
|
+
// Standard
|
|
21248
|
+
message: this.message,
|
|
21249
|
+
name: this.name,
|
|
21250
|
+
// Microsoft
|
|
21251
|
+
description: this.description,
|
|
21252
|
+
number: this.number,
|
|
21253
|
+
// Mozilla
|
|
21254
|
+
fileName: this.fileName,
|
|
21255
|
+
lineNumber: this.lineNumber,
|
|
21256
|
+
columnNumber: this.columnNumber,
|
|
21257
|
+
stack: this.stack,
|
|
21258
|
+
// Axios
|
|
21259
|
+
config: utils$1.toJSONObject(this.config),
|
|
21260
|
+
code: this.code,
|
|
21261
|
+
status: this.status,
|
|
21262
|
+
};
|
|
21263
|
+
}
|
|
21005
21264
|
}
|
|
21006
21265
|
|
|
21007
21266
|
// This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
|
|
@@ -21056,11 +21315,14 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21056
21315
|
*/
|
|
21057
21316
|
function renderKey(path, key, dots) {
|
|
21058
21317
|
if (!path) return key;
|
|
21059
|
-
return path
|
|
21060
|
-
|
|
21061
|
-
|
|
21062
|
-
|
|
21063
|
-
|
|
21318
|
+
return path
|
|
21319
|
+
.concat(key)
|
|
21320
|
+
.map(function each(token, i) {
|
|
21321
|
+
// eslint-disable-next-line no-param-reassign
|
|
21322
|
+
token = removeBrackets(token);
|
|
21323
|
+
return !dots && i ? '[' + token + ']' : token;
|
|
21324
|
+
})
|
|
21325
|
+
.join(dots ? '.' : '');
|
|
21064
21326
|
}
|
|
21065
21327
|
|
|
21066
21328
|
/**
|
|
@@ -21110,21 +21372,26 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21110
21372
|
formData = formData || new (FormData)();
|
|
21111
21373
|
|
|
21112
21374
|
// eslint-disable-next-line no-param-reassign
|
|
21113
|
-
options = utils$1.toFlatObject(
|
|
21114
|
-
|
|
21115
|
-
|
|
21116
|
-
|
|
21117
|
-
|
|
21118
|
-
|
|
21119
|
-
|
|
21120
|
-
|
|
21375
|
+
options = utils$1.toFlatObject(
|
|
21376
|
+
options,
|
|
21377
|
+
{
|
|
21378
|
+
metaTokens: true,
|
|
21379
|
+
dots: false,
|
|
21380
|
+
indexes: false,
|
|
21381
|
+
},
|
|
21382
|
+
false,
|
|
21383
|
+
function defined(option, source) {
|
|
21384
|
+
// eslint-disable-next-line no-eq-null,eqeqeq
|
|
21385
|
+
return !utils$1.isUndefined(source[option]);
|
|
21386
|
+
}
|
|
21387
|
+
);
|
|
21121
21388
|
|
|
21122
21389
|
const metaTokens = options.metaTokens;
|
|
21123
21390
|
// eslint-disable-next-line no-use-before-define
|
|
21124
21391
|
const visitor = options.visitor || defaultVisitor;
|
|
21125
21392
|
const dots = options.dots;
|
|
21126
21393
|
const indexes = options.indexes;
|
|
21127
|
-
const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;
|
|
21394
|
+
const _Blob = options.Blob || (typeof Blob !== 'undefined' && Blob);
|
|
21128
21395
|
const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
|
|
21129
21396
|
|
|
21130
21397
|
if (!utils$1.isFunction(visitor)) {
|
|
@@ -21166,6 +21433,11 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21166
21433
|
function defaultVisitor(value, key, path) {
|
|
21167
21434
|
let arr = value;
|
|
21168
21435
|
|
|
21436
|
+
if (utils$1.isReactNative(formData) && utils$1.isReactNativeBlob(value)) {
|
|
21437
|
+
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
21438
|
+
return false;
|
|
21439
|
+
}
|
|
21440
|
+
|
|
21169
21441
|
if (value && !path && typeof value === 'object') {
|
|
21170
21442
|
if (utils$1.endsWith(key, '{}')) {
|
|
21171
21443
|
// eslint-disable-next-line no-param-reassign
|
|
@@ -21174,17 +21446,22 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21174
21446
|
value = JSON.stringify(value);
|
|
21175
21447
|
} else if (
|
|
21176
21448
|
(utils$1.isArray(value) && isFlatArray(value)) ||
|
|
21177
|
-
((utils$1.isFileList(value) || utils$1.endsWith(key, '[]')) && (arr = utils$1.toArray(value))
|
|
21178
|
-
|
|
21449
|
+
((utils$1.isFileList(value) || utils$1.endsWith(key, '[]')) && (arr = utils$1.toArray(value)))
|
|
21450
|
+
) {
|
|
21179
21451
|
// eslint-disable-next-line no-param-reassign
|
|
21180
21452
|
key = removeBrackets(key);
|
|
21181
21453
|
|
|
21182
21454
|
arr.forEach(function each(el, index) {
|
|
21183
|
-
!(utils$1.isUndefined(el) || el === null) &&
|
|
21184
|
-
|
|
21185
|
-
|
|
21186
|
-
|
|
21187
|
-
|
|
21455
|
+
!(utils$1.isUndefined(el) || el === null) &&
|
|
21456
|
+
formData.append(
|
|
21457
|
+
// eslint-disable-next-line no-nested-ternary
|
|
21458
|
+
indexes === true
|
|
21459
|
+
? renderKey([key], index, dots)
|
|
21460
|
+
: indexes === null
|
|
21461
|
+
? key
|
|
21462
|
+
: key + '[]',
|
|
21463
|
+
convertValue(el)
|
|
21464
|
+
);
|
|
21188
21465
|
});
|
|
21189
21466
|
return false;
|
|
21190
21467
|
}
|
|
@@ -21204,7 +21481,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21204
21481
|
const exposedHelpers = Object.assign(predicates, {
|
|
21205
21482
|
defaultVisitor,
|
|
21206
21483
|
convertValue,
|
|
21207
|
-
isVisitable
|
|
21484
|
+
isVisitable,
|
|
21208
21485
|
});
|
|
21209
21486
|
|
|
21210
21487
|
function build(value, path) {
|
|
@@ -21217,9 +21494,9 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21217
21494
|
stack.push(value);
|
|
21218
21495
|
|
|
21219
21496
|
utils$1.forEach(value, function each(el, key) {
|
|
21220
|
-
const result =
|
|
21221
|
-
|
|
21222
|
-
|
|
21497
|
+
const result =
|
|
21498
|
+
!(utils$1.isUndefined(el) || el === null) &&
|
|
21499
|
+
visitor.call(formData, el, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers);
|
|
21223
21500
|
|
|
21224
21501
|
if (result === true) {
|
|
21225
21502
|
build(el, path ? path.concat(key) : [key]);
|
|
@@ -21254,7 +21531,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21254
21531
|
')': '%29',
|
|
21255
21532
|
'~': '%7E',
|
|
21256
21533
|
'%20': '+',
|
|
21257
|
-
'%00': '\x00'
|
|
21534
|
+
'%00': '\x00',
|
|
21258
21535
|
};
|
|
21259
21536
|
return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
|
|
21260
21537
|
return charMap[match];
|
|
@@ -21282,29 +21559,33 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21282
21559
|
};
|
|
21283
21560
|
|
|
21284
21561
|
prototype.toString = function toString(encoder) {
|
|
21285
|
-
const _encode = encoder
|
|
21286
|
-
|
|
21287
|
-
|
|
21562
|
+
const _encode = encoder
|
|
21563
|
+
? function (value) {
|
|
21564
|
+
return encoder.call(this, value, encode$1);
|
|
21565
|
+
}
|
|
21566
|
+
: encode$1;
|
|
21288
21567
|
|
|
21289
|
-
return this._pairs
|
|
21290
|
-
|
|
21291
|
-
|
|
21568
|
+
return this._pairs
|
|
21569
|
+
.map(function each(pair) {
|
|
21570
|
+
return _encode(pair[0]) + '=' + _encode(pair[1]);
|
|
21571
|
+
}, '')
|
|
21572
|
+
.join('&');
|
|
21292
21573
|
};
|
|
21293
21574
|
|
|
21294
21575
|
/**
|
|
21295
|
-
* It replaces
|
|
21296
|
-
*
|
|
21576
|
+
* It replaces URL-encoded forms of `:`, `$`, `,`, and spaces with
|
|
21577
|
+
* their plain counterparts (`:`, `$`, `,`, `+`).
|
|
21297
21578
|
*
|
|
21298
21579
|
* @param {string} val The value to be encoded.
|
|
21299
21580
|
*
|
|
21300
21581
|
* @returns {string} The encoded value.
|
|
21301
21582
|
*/
|
|
21302
21583
|
function encode(val) {
|
|
21303
|
-
return encodeURIComponent(val)
|
|
21304
|
-
replace(/%3A/gi, ':')
|
|
21305
|
-
replace(/%24/g, '$')
|
|
21306
|
-
replace(/%2C/gi, ',')
|
|
21307
|
-
replace(/%20/g, '+');
|
|
21584
|
+
return encodeURIComponent(val)
|
|
21585
|
+
.replace(/%3A/gi, ':')
|
|
21586
|
+
.replace(/%24/g, '$')
|
|
21587
|
+
.replace(/%2C/gi, ',')
|
|
21588
|
+
.replace(/%20/g, '+');
|
|
21308
21589
|
}
|
|
21309
21590
|
|
|
21310
21591
|
/**
|
|
@@ -21321,11 +21602,13 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21321
21602
|
return url;
|
|
21322
21603
|
}
|
|
21323
21604
|
|
|
21324
|
-
const _encode = options && options.encode || encode;
|
|
21605
|
+
const _encode = (options && options.encode) || encode;
|
|
21325
21606
|
|
|
21326
|
-
const _options = utils$1.isFunction(options)
|
|
21327
|
-
|
|
21328
|
-
|
|
21607
|
+
const _options = utils$1.isFunction(options)
|
|
21608
|
+
? {
|
|
21609
|
+
serialize: options,
|
|
21610
|
+
}
|
|
21611
|
+
: options;
|
|
21329
21612
|
|
|
21330
21613
|
const serializeFn = _options && _options.serialize;
|
|
21331
21614
|
|
|
@@ -21334,13 +21617,13 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21334
21617
|
if (serializeFn) {
|
|
21335
21618
|
serializedParams = serializeFn(params, _options);
|
|
21336
21619
|
} else {
|
|
21337
|
-
serializedParams = utils$1.isURLSearchParams(params)
|
|
21338
|
-
params.toString()
|
|
21339
|
-
new AxiosURLSearchParams(params, _options).toString(_encode);
|
|
21620
|
+
serializedParams = utils$1.isURLSearchParams(params)
|
|
21621
|
+
? params.toString()
|
|
21622
|
+
: new AxiosURLSearchParams(params, _options).toString(_encode);
|
|
21340
21623
|
}
|
|
21341
21624
|
|
|
21342
21625
|
if (serializedParams) {
|
|
21343
|
-
const hashmarkIndex = url.indexOf(
|
|
21626
|
+
const hashmarkIndex = url.indexOf('#');
|
|
21344
21627
|
|
|
21345
21628
|
if (hashmarkIndex !== -1) {
|
|
21346
21629
|
url = url.slice(0, hashmarkIndex);
|
|
@@ -21370,7 +21653,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21370
21653
|
fulfilled,
|
|
21371
21654
|
rejected,
|
|
21372
21655
|
synchronous: options ? options.synchronous : false,
|
|
21373
|
-
runWhen: options ? options.runWhen : null
|
|
21656
|
+
runWhen: options ? options.runWhen : null,
|
|
21374
21657
|
});
|
|
21375
21658
|
return this.handlers.length - 1;
|
|
21376
21659
|
}
|
|
@@ -21423,7 +21706,8 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21423
21706
|
var transitionalDefaults = {
|
|
21424
21707
|
silentJSONParsing: true,
|
|
21425
21708
|
forcedJSONParsing: true,
|
|
21426
|
-
clarifyTimeoutError: false
|
|
21709
|
+
clarifyTimeoutError: false,
|
|
21710
|
+
legacyInterceptorReqResOrdering: true,
|
|
21427
21711
|
};
|
|
21428
21712
|
|
|
21429
21713
|
var URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
|
|
@@ -21437,14 +21721,14 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21437
21721
|
classes: {
|
|
21438
21722
|
URLSearchParams: URLSearchParams$1,
|
|
21439
21723
|
FormData: FormData$1,
|
|
21440
|
-
Blob: Blob$1
|
|
21724
|
+
Blob: Blob$1,
|
|
21441
21725
|
},
|
|
21442
|
-
protocols: ['http', 'https', 'file', 'blob', 'url', 'data']
|
|
21726
|
+
protocols: ['http', 'https', 'file', 'blob', 'url', 'data'],
|
|
21443
21727
|
};
|
|
21444
21728
|
|
|
21445
21729
|
const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
|
|
21446
21730
|
|
|
21447
|
-
const _navigator = typeof navigator === 'object' && navigator || undefined;
|
|
21731
|
+
const _navigator = (typeof navigator === 'object' && navigator) || undefined;
|
|
21448
21732
|
|
|
21449
21733
|
/**
|
|
21450
21734
|
* Determine if we're running in a standard browser environment
|
|
@@ -21463,7 +21747,8 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21463
21747
|
*
|
|
21464
21748
|
* @returns {boolean}
|
|
21465
21749
|
*/
|
|
21466
|
-
const hasStandardBrowserEnv =
|
|
21750
|
+
const hasStandardBrowserEnv =
|
|
21751
|
+
hasBrowserEnv &&
|
|
21467
21752
|
(!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);
|
|
21468
21753
|
|
|
21469
21754
|
/**
|
|
@@ -21484,7 +21769,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21484
21769
|
);
|
|
21485
21770
|
})();
|
|
21486
21771
|
|
|
21487
|
-
const origin = hasBrowserEnv && window.location.href || 'http://localhost';
|
|
21772
|
+
const origin = (hasBrowserEnv && window.location.href) || 'http://localhost';
|
|
21488
21773
|
|
|
21489
21774
|
var utils = /*#__PURE__*/Object.freeze({
|
|
21490
21775
|
__proto__: null,
|
|
@@ -21497,12 +21782,12 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21497
21782
|
|
|
21498
21783
|
var platform = {
|
|
21499
21784
|
...utils,
|
|
21500
|
-
...platform$1
|
|
21785
|
+
...platform$1,
|
|
21501
21786
|
};
|
|
21502
21787
|
|
|
21503
21788
|
function toURLEncodedForm(data, options) {
|
|
21504
21789
|
return toFormData(data, new platform.classes.URLSearchParams(), {
|
|
21505
|
-
visitor: function(value, key, path, helpers) {
|
|
21790
|
+
visitor: function (value, key, path, helpers) {
|
|
21506
21791
|
if (platform.isNode && utils$1.isBuffer(value)) {
|
|
21507
21792
|
this.append(key, value.toString('base64'));
|
|
21508
21793
|
return false;
|
|
@@ -21510,7 +21795,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21510
21795
|
|
|
21511
21796
|
return helpers.defaultVisitor.apply(this, arguments);
|
|
21512
21797
|
},
|
|
21513
|
-
...options
|
|
21798
|
+
...options,
|
|
21514
21799
|
});
|
|
21515
21800
|
}
|
|
21516
21801
|
|
|
@@ -21526,7 +21811,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21526
21811
|
// foo.x.y.z
|
|
21527
21812
|
// foo-x-y-z
|
|
21528
21813
|
// foo x y z
|
|
21529
|
-
return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map(match => {
|
|
21814
|
+
return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
21530
21815
|
return match[0] === '[]' ? '' : match[1] || match[0];
|
|
21531
21816
|
});
|
|
21532
21817
|
}
|
|
@@ -21630,96 +21915,107 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21630
21915
|
}
|
|
21631
21916
|
|
|
21632
21917
|
const defaults = {
|
|
21633
|
-
|
|
21634
21918
|
transitional: transitionalDefaults,
|
|
21635
21919
|
|
|
21636
21920
|
adapter: ['xhr', 'http', 'fetch'],
|
|
21637
21921
|
|
|
21638
|
-
transformRequest: [
|
|
21639
|
-
|
|
21640
|
-
|
|
21641
|
-
|
|
21642
|
-
|
|
21643
|
-
if (isObjectPayload && utils$1.isHTMLForm(data)) {
|
|
21644
|
-
data = new FormData(data);
|
|
21645
|
-
}
|
|
21646
|
-
|
|
21647
|
-
const isFormData = utils$1.isFormData(data);
|
|
21922
|
+
transformRequest: [
|
|
21923
|
+
function transformRequest(data, headers) {
|
|
21924
|
+
const contentType = headers.getContentType() || '';
|
|
21925
|
+
const hasJSONContentType = contentType.indexOf('application/json') > -1;
|
|
21926
|
+
const isObjectPayload = utils$1.isObject(data);
|
|
21648
21927
|
|
|
21649
|
-
|
|
21650
|
-
|
|
21651
|
-
|
|
21928
|
+
if (isObjectPayload && utils$1.isHTMLForm(data)) {
|
|
21929
|
+
data = new FormData(data);
|
|
21930
|
+
}
|
|
21652
21931
|
|
|
21653
|
-
|
|
21654
|
-
utils$1.isBuffer(data) ||
|
|
21655
|
-
utils$1.isStream(data) ||
|
|
21656
|
-
utils$1.isFile(data) ||
|
|
21657
|
-
utils$1.isBlob(data) ||
|
|
21658
|
-
utils$1.isReadableStream(data)
|
|
21659
|
-
) {
|
|
21660
|
-
return data;
|
|
21661
|
-
}
|
|
21662
|
-
if (utils$1.isArrayBufferView(data)) {
|
|
21663
|
-
return data.buffer;
|
|
21664
|
-
}
|
|
21665
|
-
if (utils$1.isURLSearchParams(data)) {
|
|
21666
|
-
headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
|
|
21667
|
-
return data.toString();
|
|
21668
|
-
}
|
|
21932
|
+
const isFormData = utils$1.isFormData(data);
|
|
21669
21933
|
|
|
21670
|
-
|
|
21934
|
+
if (isFormData) {
|
|
21935
|
+
return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
21936
|
+
}
|
|
21671
21937
|
|
|
21672
|
-
|
|
21673
|
-
|
|
21674
|
-
|
|
21938
|
+
if (
|
|
21939
|
+
utils$1.isArrayBuffer(data) ||
|
|
21940
|
+
utils$1.isBuffer(data) ||
|
|
21941
|
+
utils$1.isStream(data) ||
|
|
21942
|
+
utils$1.isFile(data) ||
|
|
21943
|
+
utils$1.isBlob(data) ||
|
|
21944
|
+
utils$1.isReadableStream(data)
|
|
21945
|
+
) {
|
|
21946
|
+
return data;
|
|
21947
|
+
}
|
|
21948
|
+
if (utils$1.isArrayBufferView(data)) {
|
|
21949
|
+
return data.buffer;
|
|
21950
|
+
}
|
|
21951
|
+
if (utils$1.isURLSearchParams(data)) {
|
|
21952
|
+
headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
|
|
21953
|
+
return data.toString();
|
|
21675
21954
|
}
|
|
21676
21955
|
|
|
21677
|
-
|
|
21678
|
-
const _FormData = this.env && this.env.FormData;
|
|
21956
|
+
let isFileList;
|
|
21679
21957
|
|
|
21680
|
-
|
|
21681
|
-
|
|
21682
|
-
|
|
21683
|
-
|
|
21684
|
-
|
|
21958
|
+
if (isObjectPayload) {
|
|
21959
|
+
if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
|
|
21960
|
+
return toURLEncodedForm(data, this.formSerializer).toString();
|
|
21961
|
+
}
|
|
21962
|
+
|
|
21963
|
+
if (
|
|
21964
|
+
(isFileList = utils$1.isFileList(data)) ||
|
|
21965
|
+
contentType.indexOf('multipart/form-data') > -1
|
|
21966
|
+
) {
|
|
21967
|
+
const _FormData = this.env && this.env.FormData;
|
|
21968
|
+
|
|
21969
|
+
return toFormData(
|
|
21970
|
+
isFileList ? { 'files[]': data } : data,
|
|
21971
|
+
_FormData && new _FormData(),
|
|
21972
|
+
this.formSerializer
|
|
21973
|
+
);
|
|
21974
|
+
}
|
|
21685
21975
|
}
|
|
21686
|
-
}
|
|
21687
21976
|
|
|
21688
|
-
|
|
21689
|
-
|
|
21690
|
-
|
|
21691
|
-
|
|
21977
|
+
if (isObjectPayload || hasJSONContentType) {
|
|
21978
|
+
headers.setContentType('application/json', false);
|
|
21979
|
+
return stringifySafely(data);
|
|
21980
|
+
}
|
|
21692
21981
|
|
|
21693
|
-
|
|
21694
|
-
|
|
21982
|
+
return data;
|
|
21983
|
+
},
|
|
21984
|
+
],
|
|
21695
21985
|
|
|
21696
|
-
transformResponse: [
|
|
21697
|
-
|
|
21698
|
-
|
|
21699
|
-
|
|
21986
|
+
transformResponse: [
|
|
21987
|
+
function transformResponse(data) {
|
|
21988
|
+
const transitional = this.transitional || defaults.transitional;
|
|
21989
|
+
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
21990
|
+
const JSONRequested = this.responseType === 'json';
|
|
21700
21991
|
|
|
21701
|
-
|
|
21702
|
-
|
|
21703
|
-
|
|
21992
|
+
if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
|
|
21993
|
+
return data;
|
|
21994
|
+
}
|
|
21704
21995
|
|
|
21705
|
-
|
|
21706
|
-
|
|
21707
|
-
|
|
21996
|
+
if (
|
|
21997
|
+
data &&
|
|
21998
|
+
utils$1.isString(data) &&
|
|
21999
|
+
((forcedJSONParsing && !this.responseType) || JSONRequested)
|
|
22000
|
+
) {
|
|
22001
|
+
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
22002
|
+
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
21708
22003
|
|
|
21709
|
-
|
|
21710
|
-
|
|
21711
|
-
|
|
21712
|
-
|
|
21713
|
-
|
|
21714
|
-
|
|
22004
|
+
try {
|
|
22005
|
+
return JSON.parse(data, this.parseReviver);
|
|
22006
|
+
} catch (e) {
|
|
22007
|
+
if (strictJSONParsing) {
|
|
22008
|
+
if (e.name === 'SyntaxError') {
|
|
22009
|
+
throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
|
|
22010
|
+
}
|
|
22011
|
+
throw e;
|
|
21715
22012
|
}
|
|
21716
|
-
throw e;
|
|
21717
22013
|
}
|
|
21718
22014
|
}
|
|
21719
|
-
}
|
|
21720
22015
|
|
|
21721
|
-
|
|
21722
|
-
|
|
22016
|
+
return data;
|
|
22017
|
+
},
|
|
22018
|
+
],
|
|
21723
22019
|
|
|
21724
22020
|
/**
|
|
21725
22021
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
@@ -21735,7 +22031,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21735
22031
|
|
|
21736
22032
|
env: {
|
|
21737
22033
|
FormData: platform.classes.FormData,
|
|
21738
|
-
Blob: platform.classes.Blob
|
|
22034
|
+
Blob: platform.classes.Blob,
|
|
21739
22035
|
},
|
|
21740
22036
|
|
|
21741
22037
|
validateStatus: function validateStatus(status) {
|
|
@@ -21744,10 +22040,10 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21744
22040
|
|
|
21745
22041
|
headers: {
|
|
21746
22042
|
common: {
|
|
21747
|
-
|
|
21748
|
-
'Content-Type': undefined
|
|
21749
|
-
}
|
|
21750
|
-
}
|
|
22043
|
+
Accept: 'application/json, text/plain, */*',
|
|
22044
|
+
'Content-Type': undefined,
|
|
22045
|
+
},
|
|
22046
|
+
},
|
|
21751
22047
|
};
|
|
21752
22048
|
|
|
21753
22049
|
utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {
|
|
@@ -21759,10 +22055,23 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21759
22055
|
// RawAxiosHeaders whose duplicates are ignored by node
|
|
21760
22056
|
// c.f. https://nodejs.org/api/http.html#http_message_headers
|
|
21761
22057
|
const ignoreDuplicateOf = utils$1.toObjectSet([
|
|
21762
|
-
'age',
|
|
21763
|
-
'
|
|
21764
|
-
'
|
|
21765
|
-
'
|
|
22058
|
+
'age',
|
|
22059
|
+
'authorization',
|
|
22060
|
+
'content-length',
|
|
22061
|
+
'content-type',
|
|
22062
|
+
'etag',
|
|
22063
|
+
'expires',
|
|
22064
|
+
'from',
|
|
22065
|
+
'host',
|
|
22066
|
+
'if-modified-since',
|
|
22067
|
+
'if-unmodified-since',
|
|
22068
|
+
'last-modified',
|
|
22069
|
+
'location',
|
|
22070
|
+
'max-forwards',
|
|
22071
|
+
'proxy-authorization',
|
|
22072
|
+
'referer',
|
|
22073
|
+
'retry-after',
|
|
22074
|
+
'user-agent',
|
|
21766
22075
|
]);
|
|
21767
22076
|
|
|
21768
22077
|
/**
|
|
@@ -21779,47 +22088,81 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21779
22088
|
*
|
|
21780
22089
|
* @returns {Object} Headers parsed into an object
|
|
21781
22090
|
*/
|
|
21782
|
-
var parseHeaders = rawHeaders => {
|
|
22091
|
+
var parseHeaders = (rawHeaders) => {
|
|
21783
22092
|
const parsed = {};
|
|
21784
22093
|
let key;
|
|
21785
22094
|
let val;
|
|
21786
22095
|
let i;
|
|
21787
22096
|
|
|
21788
|
-
rawHeaders &&
|
|
21789
|
-
|
|
21790
|
-
|
|
21791
|
-
|
|
22097
|
+
rawHeaders &&
|
|
22098
|
+
rawHeaders.split('\n').forEach(function parser(line) {
|
|
22099
|
+
i = line.indexOf(':');
|
|
22100
|
+
key = line.substring(0, i).trim().toLowerCase();
|
|
22101
|
+
val = line.substring(i + 1).trim();
|
|
21792
22102
|
|
|
21793
|
-
|
|
21794
|
-
|
|
21795
|
-
|
|
22103
|
+
if (!key || (parsed[key] && ignoreDuplicateOf[key])) {
|
|
22104
|
+
return;
|
|
22105
|
+
}
|
|
21796
22106
|
|
|
21797
|
-
|
|
21798
|
-
|
|
21799
|
-
|
|
22107
|
+
if (key === 'set-cookie') {
|
|
22108
|
+
if (parsed[key]) {
|
|
22109
|
+
parsed[key].push(val);
|
|
22110
|
+
} else {
|
|
22111
|
+
parsed[key] = [val];
|
|
22112
|
+
}
|
|
21800
22113
|
} else {
|
|
21801
|
-
parsed[key] = [val
|
|
22114
|
+
parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
|
|
21802
22115
|
}
|
|
21803
|
-
}
|
|
21804
|
-
parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
|
|
21805
|
-
}
|
|
21806
|
-
});
|
|
22116
|
+
});
|
|
21807
22117
|
|
|
21808
22118
|
return parsed;
|
|
21809
22119
|
};
|
|
21810
22120
|
|
|
21811
22121
|
const $internals = Symbol('internals');
|
|
21812
22122
|
|
|
22123
|
+
const isValidHeaderValue = (value) => !/[\r\n]/.test(value);
|
|
22124
|
+
|
|
22125
|
+
function assertValidHeaderValue(value, header) {
|
|
22126
|
+
if (value === false || value == null) {
|
|
22127
|
+
return;
|
|
22128
|
+
}
|
|
22129
|
+
|
|
22130
|
+
if (utils$1.isArray(value)) {
|
|
22131
|
+
value.forEach((v) => assertValidHeaderValue(v, header));
|
|
22132
|
+
return;
|
|
22133
|
+
}
|
|
22134
|
+
|
|
22135
|
+
if (!isValidHeaderValue(String(value))) {
|
|
22136
|
+
throw new Error(`Invalid character in header content ["${header}"]`);
|
|
22137
|
+
}
|
|
22138
|
+
}
|
|
22139
|
+
|
|
21813
22140
|
function normalizeHeader(header) {
|
|
21814
22141
|
return header && String(header).trim().toLowerCase();
|
|
21815
22142
|
}
|
|
21816
22143
|
|
|
22144
|
+
function stripTrailingCRLF(str) {
|
|
22145
|
+
let end = str.length;
|
|
22146
|
+
|
|
22147
|
+
while (end > 0) {
|
|
22148
|
+
const charCode = str.charCodeAt(end - 1);
|
|
22149
|
+
|
|
22150
|
+
if (charCode !== 10 && charCode !== 13) {
|
|
22151
|
+
break;
|
|
22152
|
+
}
|
|
22153
|
+
|
|
22154
|
+
end -= 1;
|
|
22155
|
+
}
|
|
22156
|
+
|
|
22157
|
+
return end === str.length ? str : str.slice(0, end);
|
|
22158
|
+
}
|
|
22159
|
+
|
|
21817
22160
|
function normalizeValue(value) {
|
|
21818
22161
|
if (value === false || value == null) {
|
|
21819
22162
|
return value;
|
|
21820
22163
|
}
|
|
21821
22164
|
|
|
21822
|
-
return utils$1.isArray(value) ? value.map(normalizeValue) : String(value);
|
|
22165
|
+
return utils$1.isArray(value) ? value.map(normalizeValue) : stripTrailingCRLF(String(value));
|
|
21823
22166
|
}
|
|
21824
22167
|
|
|
21825
22168
|
function parseTokens(str) {
|
|
@@ -21857,8 +22200,10 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21857
22200
|
}
|
|
21858
22201
|
|
|
21859
22202
|
function formatHeader(header) {
|
|
21860
|
-
return header
|
|
21861
|
-
.
|
|
22203
|
+
return header
|
|
22204
|
+
.trim()
|
|
22205
|
+
.toLowerCase()
|
|
22206
|
+
.replace(/([a-z\d])(\w*)/g, (w, char, str) => {
|
|
21862
22207
|
return char.toUpperCase() + str;
|
|
21863
22208
|
});
|
|
21864
22209
|
}
|
|
@@ -21866,12 +22211,12 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21866
22211
|
function buildAccessors(obj, header) {
|
|
21867
22212
|
const accessorName = utils$1.toCamelCase(' ' + header);
|
|
21868
22213
|
|
|
21869
|
-
['get', 'set', 'has'].forEach(methodName => {
|
|
22214
|
+
['get', 'set', 'has'].forEach((methodName) => {
|
|
21870
22215
|
Object.defineProperty(obj, methodName + accessorName, {
|
|
21871
|
-
value: function(arg1, arg2, arg3) {
|
|
22216
|
+
value: function (arg1, arg2, arg3) {
|
|
21872
22217
|
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
21873
22218
|
},
|
|
21874
|
-
configurable: true
|
|
22219
|
+
configurable: true,
|
|
21875
22220
|
});
|
|
21876
22221
|
});
|
|
21877
22222
|
}
|
|
@@ -21893,7 +22238,13 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21893
22238
|
|
|
21894
22239
|
const key = utils$1.findKey(self, lHeader);
|
|
21895
22240
|
|
|
21896
|
-
if
|
|
22241
|
+
if (
|
|
22242
|
+
!key ||
|
|
22243
|
+
self[key] === undefined ||
|
|
22244
|
+
_rewrite === true ||
|
|
22245
|
+
(_rewrite === undefined && self[key] !== false)
|
|
22246
|
+
) {
|
|
22247
|
+
assertValidHeaderValue(_value, _header);
|
|
21897
22248
|
self[key || _header] = normalizeValue(_value);
|
|
21898
22249
|
}
|
|
21899
22250
|
}
|
|
@@ -21903,17 +22254,22 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21903
22254
|
|
|
21904
22255
|
if (utils$1.isPlainObject(header) || header instanceof this.constructor) {
|
|
21905
22256
|
setHeaders(header, valueOrRewrite);
|
|
21906
|
-
} else if(utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
22257
|
+
} else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
21907
22258
|
setHeaders(parseHeaders(header), valueOrRewrite);
|
|
21908
22259
|
} else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
|
|
21909
|
-
let obj = {},
|
|
22260
|
+
let obj = {},
|
|
22261
|
+
dest,
|
|
22262
|
+
key;
|
|
21910
22263
|
for (const entry of header) {
|
|
21911
22264
|
if (!utils$1.isArray(entry)) {
|
|
21912
22265
|
throw TypeError('Object iterator must return a key-value pair');
|
|
21913
22266
|
}
|
|
21914
22267
|
|
|
21915
|
-
obj[key = entry[0]] = (dest = obj[key])
|
|
21916
|
-
|
|
22268
|
+
obj[(key = entry[0])] = (dest = obj[key])
|
|
22269
|
+
? utils$1.isArray(dest)
|
|
22270
|
+
? [...dest, entry[1]]
|
|
22271
|
+
: [dest, entry[1]]
|
|
22272
|
+
: entry[1];
|
|
21917
22273
|
}
|
|
21918
22274
|
|
|
21919
22275
|
setHeaders(obj, valueOrRewrite);
|
|
@@ -21960,7 +22316,11 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
21960
22316
|
if (header) {
|
|
21961
22317
|
const key = utils$1.findKey(this, header);
|
|
21962
22318
|
|
|
21963
|
-
return !!(
|
|
22319
|
+
return !!(
|
|
22320
|
+
key &&
|
|
22321
|
+
this[key] !== undefined &&
|
|
22322
|
+
(!matcher || matchHeaderValue(this, this[key], key, matcher))
|
|
22323
|
+
);
|
|
21964
22324
|
}
|
|
21965
22325
|
|
|
21966
22326
|
return false;
|
|
@@ -22000,7 +22360,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
22000
22360
|
|
|
22001
22361
|
while (i--) {
|
|
22002
22362
|
const key = keys[i];
|
|
22003
|
-
if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
22363
|
+
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
22004
22364
|
delete this[key];
|
|
22005
22365
|
deleted = true;
|
|
22006
22366
|
}
|
|
@@ -22044,7 +22404,9 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
22044
22404
|
const obj = Object.create(null);
|
|
22045
22405
|
|
|
22046
22406
|
utils$1.forEach(this, (value, header) => {
|
|
22047
|
-
value != null &&
|
|
22407
|
+
value != null &&
|
|
22408
|
+
value !== false &&
|
|
22409
|
+
(obj[header] = asStrings && utils$1.isArray(value) ? value.join(', ') : value);
|
|
22048
22410
|
});
|
|
22049
22411
|
|
|
22050
22412
|
return obj;
|
|
@@ -22055,11 +22417,13 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
22055
22417
|
}
|
|
22056
22418
|
|
|
22057
22419
|
toString() {
|
|
22058
|
-
return Object.entries(this.toJSON())
|
|
22420
|
+
return Object.entries(this.toJSON())
|
|
22421
|
+
.map(([header, value]) => header + ': ' + value)
|
|
22422
|
+
.join('\n');
|
|
22059
22423
|
}
|
|
22060
22424
|
|
|
22061
22425
|
getSetCookie() {
|
|
22062
|
-
return this.get(
|
|
22426
|
+
return this.get('set-cookie') || [];
|
|
22063
22427
|
}
|
|
22064
22428
|
|
|
22065
22429
|
get [Symbol.toStringTag]() {
|
|
@@ -22079,9 +22443,12 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
22079
22443
|
}
|
|
22080
22444
|
|
|
22081
22445
|
static accessor(header) {
|
|
22082
|
-
const internals =
|
|
22083
|
-
|
|
22084
|
-
|
|
22446
|
+
const internals =
|
|
22447
|
+
(this[$internals] =
|
|
22448
|
+
this[$internals] =
|
|
22449
|
+
{
|
|
22450
|
+
accessors: {},
|
|
22451
|
+
});
|
|
22085
22452
|
|
|
22086
22453
|
const accessors = internals.accessors;
|
|
22087
22454
|
const prototype = this.prototype;
|
|
@@ -22101,17 +22468,24 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
22101
22468
|
}
|
|
22102
22469
|
}
|
|
22103
22470
|
|
|
22104
|
-
AxiosHeaders.accessor([
|
|
22471
|
+
AxiosHeaders.accessor([
|
|
22472
|
+
'Content-Type',
|
|
22473
|
+
'Content-Length',
|
|
22474
|
+
'Accept',
|
|
22475
|
+
'Accept-Encoding',
|
|
22476
|
+
'User-Agent',
|
|
22477
|
+
'Authorization',
|
|
22478
|
+
]);
|
|
22105
22479
|
|
|
22106
22480
|
// reserved names hotfix
|
|
22107
|
-
utils$1.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {
|
|
22481
|
+
utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
22108
22482
|
let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
|
|
22109
22483
|
return {
|
|
22110
22484
|
get: () => value,
|
|
22111
22485
|
set(headerValue) {
|
|
22112
22486
|
this[mapped] = headerValue;
|
|
22113
|
-
}
|
|
22114
|
-
}
|
|
22487
|
+
},
|
|
22488
|
+
};
|
|
22115
22489
|
});
|
|
22116
22490
|
|
|
22117
22491
|
utils$1.freezeMethods(AxiosHeaders);
|
|
@@ -22178,19 +22552,23 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
22178
22552
|
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
|
22179
22553
|
resolve(response);
|
|
22180
22554
|
} else {
|
|
22181
|
-
reject(
|
|
22182
|
-
|
|
22183
|
-
|
|
22184
|
-
|
|
22185
|
-
|
|
22186
|
-
|
|
22187
|
-
|
|
22555
|
+
reject(
|
|
22556
|
+
new AxiosError$1(
|
|
22557
|
+
'Request failed with status code ' + response.status,
|
|
22558
|
+
[AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][
|
|
22559
|
+
Math.floor(response.status / 100) - 4
|
|
22560
|
+
],
|
|
22561
|
+
response.config,
|
|
22562
|
+
response.request,
|
|
22563
|
+
response
|
|
22564
|
+
)
|
|
22565
|
+
);
|
|
22188
22566
|
}
|
|
22189
22567
|
}
|
|
22190
22568
|
|
|
22191
22569
|
function parseProtocol(url) {
|
|
22192
22570
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
|
22193
|
-
return match && match[1] || '';
|
|
22571
|
+
return (match && match[1]) || '';
|
|
22194
22572
|
}
|
|
22195
22573
|
|
|
22196
22574
|
/**
|
|
@@ -22241,7 +22619,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
22241
22619
|
|
|
22242
22620
|
const passed = startedAt && now - startedAt;
|
|
22243
22621
|
|
|
22244
|
-
return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
|
|
22622
|
+
return passed ? Math.round((bytesCount * 1000) / passed) : undefined;
|
|
22245
22623
|
};
|
|
22246
22624
|
}
|
|
22247
22625
|
|
|
@@ -22270,7 +22648,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
22270
22648
|
const throttled = (...args) => {
|
|
22271
22649
|
const now = Date.now();
|
|
22272
22650
|
const passed = now - timestamp;
|
|
22273
|
-
if (
|
|
22651
|
+
if (passed >= threshold) {
|
|
22274
22652
|
invoke(args, now);
|
|
22275
22653
|
} else {
|
|
22276
22654
|
lastArgs = args;
|
|
@@ -22292,7 +22670,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
22292
22670
|
let bytesNotified = 0;
|
|
22293
22671
|
const _speedometer = speedometer(50, 250);
|
|
22294
22672
|
|
|
22295
|
-
return throttle(e => {
|
|
22673
|
+
return throttle((e) => {
|
|
22296
22674
|
const loaded = e.loaded;
|
|
22297
22675
|
const total = e.lengthComputable ? e.total : undefined;
|
|
22298
22676
|
const progressBytes = loaded - bytesNotified;
|
|
@@ -22304,13 +22682,13 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
22304
22682
|
const data = {
|
|
22305
22683
|
loaded,
|
|
22306
22684
|
total,
|
|
22307
|
-
progress: total ?
|
|
22685
|
+
progress: total ? loaded / total : undefined,
|
|
22308
22686
|
bytes: progressBytes,
|
|
22309
22687
|
rate: rate ? rate : undefined,
|
|
22310
22688
|
estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
|
|
22311
22689
|
event: e,
|
|
22312
22690
|
lengthComputable: total != null,
|
|
22313
|
-
[isDownloadStream ? 'download' : 'upload']: true
|
|
22691
|
+
[isDownloadStream ? 'download' : 'upload']: true,
|
|
22314
22692
|
};
|
|
22315
22693
|
|
|
22316
22694
|
listener(data);
|
|
@@ -22320,77 +22698,82 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
22320
22698
|
const progressEventDecorator = (total, throttled) => {
|
|
22321
22699
|
const lengthComputable = total != null;
|
|
22322
22700
|
|
|
22323
|
-
return [
|
|
22324
|
-
|
|
22325
|
-
|
|
22326
|
-
|
|
22327
|
-
|
|
22701
|
+
return [
|
|
22702
|
+
(loaded) =>
|
|
22703
|
+
throttled[0]({
|
|
22704
|
+
lengthComputable,
|
|
22705
|
+
total,
|
|
22706
|
+
loaded,
|
|
22707
|
+
}),
|
|
22708
|
+
throttled[1],
|
|
22709
|
+
];
|
|
22328
22710
|
};
|
|
22329
22711
|
|
|
22330
|
-
const asyncDecorator =
|
|
22331
|
-
|
|
22332
|
-
|
|
22333
|
-
|
|
22712
|
+
const asyncDecorator =
|
|
22713
|
+
(fn) =>
|
|
22714
|
+
(...args) =>
|
|
22715
|
+
utils$1.asap(() => fn(...args));
|
|
22334
22716
|
|
|
22335
|
-
|
|
22336
|
-
|
|
22337
|
-
|
|
22338
|
-
(isMSIE || origin.port === url.port)
|
|
22339
|
-
);
|
|
22340
|
-
})(
|
|
22341
|
-
new URL(platform.origin),
|
|
22342
|
-
platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
|
|
22343
|
-
) : () => true;
|
|
22717
|
+
var isURLSameOrigin = platform.hasStandardBrowserEnv
|
|
22718
|
+
? ((origin, isMSIE) => (url) => {
|
|
22719
|
+
url = new URL(url, platform.origin);
|
|
22344
22720
|
|
|
22345
|
-
|
|
22721
|
+
return (
|
|
22722
|
+
origin.protocol === url.protocol &&
|
|
22723
|
+
origin.host === url.host &&
|
|
22724
|
+
(isMSIE || origin.port === url.port)
|
|
22725
|
+
);
|
|
22726
|
+
})(
|
|
22727
|
+
new URL(platform.origin),
|
|
22728
|
+
platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
|
|
22729
|
+
)
|
|
22730
|
+
: () => true;
|
|
22346
22731
|
|
|
22347
|
-
|
|
22348
|
-
|
|
22349
|
-
|
|
22350
|
-
|
|
22732
|
+
var cookies = platform.hasStandardBrowserEnv
|
|
22733
|
+
? // Standard browser envs support document.cookie
|
|
22734
|
+
{
|
|
22735
|
+
write(name, value, expires, path, domain, secure, sameSite) {
|
|
22736
|
+
if (typeof document === 'undefined') return;
|
|
22351
22737
|
|
|
22352
|
-
|
|
22738
|
+
const cookie = [`${name}=${encodeURIComponent(value)}`];
|
|
22353
22739
|
|
|
22354
|
-
|
|
22355
|
-
|
|
22356
|
-
|
|
22357
|
-
|
|
22358
|
-
|
|
22359
|
-
|
|
22360
|
-
|
|
22361
|
-
|
|
22362
|
-
|
|
22363
|
-
|
|
22364
|
-
|
|
22365
|
-
|
|
22366
|
-
|
|
22367
|
-
|
|
22368
|
-
|
|
22740
|
+
if (utils$1.isNumber(expires)) {
|
|
22741
|
+
cookie.push(`expires=${new Date(expires).toUTCString()}`);
|
|
22742
|
+
}
|
|
22743
|
+
if (utils$1.isString(path)) {
|
|
22744
|
+
cookie.push(`path=${path}`);
|
|
22745
|
+
}
|
|
22746
|
+
if (utils$1.isString(domain)) {
|
|
22747
|
+
cookie.push(`domain=${domain}`);
|
|
22748
|
+
}
|
|
22749
|
+
if (secure === true) {
|
|
22750
|
+
cookie.push('secure');
|
|
22751
|
+
}
|
|
22752
|
+
if (utils$1.isString(sameSite)) {
|
|
22753
|
+
cookie.push(`SameSite=${sameSite}`);
|
|
22754
|
+
}
|
|
22369
22755
|
|
|
22370
|
-
|
|
22371
|
-
|
|
22756
|
+
document.cookie = cookie.join('; ');
|
|
22757
|
+
},
|
|
22372
22758
|
|
|
22373
|
-
|
|
22374
|
-
|
|
22375
|
-
|
|
22376
|
-
|
|
22377
|
-
|
|
22759
|
+
read(name) {
|
|
22760
|
+
if (typeof document === 'undefined') return null;
|
|
22761
|
+
const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
|
|
22762
|
+
return match ? decodeURIComponent(match[1]) : null;
|
|
22763
|
+
},
|
|
22378
22764
|
|
|
22379
|
-
|
|
22380
|
-
|
|
22765
|
+
remove(name) {
|
|
22766
|
+
this.write(name, '', Date.now() - 86400000, '/');
|
|
22767
|
+
},
|
|
22381
22768
|
}
|
|
22382
|
-
|
|
22383
|
-
|
|
22384
|
-
|
|
22385
|
-
|
|
22386
|
-
|
|
22387
|
-
|
|
22388
|
-
|
|
22389
|
-
|
|
22390
|
-
return null;
|
|
22391
|
-
},
|
|
22392
|
-
remove() {}
|
|
22393
|
-
};
|
|
22769
|
+
: // Non-standard browser env (web workers, react-native) lack needed support.
|
|
22770
|
+
{
|
|
22771
|
+
write() {},
|
|
22772
|
+
read() {
|
|
22773
|
+
return null;
|
|
22774
|
+
},
|
|
22775
|
+
remove() {},
|
|
22776
|
+
};
|
|
22394
22777
|
|
|
22395
22778
|
/**
|
|
22396
22779
|
* Determines whether the specified URL is absolute
|
|
@@ -22403,6 +22786,10 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
22403
22786
|
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
|
|
22404
22787
|
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
|
|
22405
22788
|
// by any combination of letters, digits, plus, period, or hyphen.
|
|
22789
|
+
if (typeof url !== 'string') {
|
|
22790
|
+
return false;
|
|
22791
|
+
}
|
|
22792
|
+
|
|
22406
22793
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
22407
22794
|
}
|
|
22408
22795
|
|
|
@@ -22438,7 +22825,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
22438
22825
|
return requestedURL;
|
|
22439
22826
|
}
|
|
22440
22827
|
|
|
22441
|
-
const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
|
|
22828
|
+
const headersToObject = (thing) => (thing instanceof AxiosHeaders$1 ? { ...thing } : thing);
|
|
22442
22829
|
|
|
22443
22830
|
/**
|
|
22444
22831
|
* Config-specific merge-function which creates a new config-object
|
|
@@ -22527,11 +22914,13 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
22527
22914
|
socketPath: defaultToConfig2,
|
|
22528
22915
|
responseEncoding: defaultToConfig2,
|
|
22529
22916
|
validateStatus: mergeDirectKeys,
|
|
22530
|
-
headers: (a, b, prop) =>
|
|
22917
|
+
headers: (a, b, prop) =>
|
|
22918
|
+
mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
|
|
22531
22919
|
};
|
|
22532
22920
|
|
|
22533
22921
|
utils$1.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
22534
|
-
|
|
22922
|
+
if (prop === '__proto__' || prop === 'constructor' || prop === 'prototype') return;
|
|
22923
|
+
const merge = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
22535
22924
|
const configValue = merge(config1[prop], config2[prop], prop);
|
|
22536
22925
|
(utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
|
|
22537
22926
|
});
|
|
@@ -22546,12 +22935,22 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
22546
22935
|
|
|
22547
22936
|
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
22548
22937
|
|
|
22549
|
-
newConfig.url = buildURL(
|
|
22938
|
+
newConfig.url = buildURL(
|
|
22939
|
+
buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls),
|
|
22940
|
+
config.params,
|
|
22941
|
+
config.paramsSerializer
|
|
22942
|
+
);
|
|
22550
22943
|
|
|
22551
22944
|
// HTTP basic authentication
|
|
22552
22945
|
if (auth) {
|
|
22553
|
-
headers.set(
|
|
22554
|
-
|
|
22946
|
+
headers.set(
|
|
22947
|
+
'Authorization',
|
|
22948
|
+
'Basic ' +
|
|
22949
|
+
btoa(
|
|
22950
|
+
(auth.username || '') +
|
|
22951
|
+
':' +
|
|
22952
|
+
(auth.password ? unescape(encodeURIComponent(auth.password)) : '')
|
|
22953
|
+
)
|
|
22555
22954
|
);
|
|
22556
22955
|
}
|
|
22557
22956
|
|
|
@@ -22569,7 +22968,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
22569
22968
|
}
|
|
22570
22969
|
});
|
|
22571
22970
|
}
|
|
22572
|
-
}
|
|
22971
|
+
}
|
|
22573
22972
|
|
|
22574
22973
|
// Add xsrf header
|
|
22575
22974
|
// This is only done if running in a standard browser environment.
|
|
@@ -22593,196 +22992,218 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
22593
22992
|
|
|
22594
22993
|
const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
22595
22994
|
|
|
22596
|
-
var xhrAdapter = isXHRAdapterSupported &&
|
|
22597
|
-
|
|
22598
|
-
|
|
22599
|
-
|
|
22600
|
-
|
|
22601
|
-
|
|
22602
|
-
|
|
22603
|
-
|
|
22604
|
-
|
|
22995
|
+
var xhrAdapter = isXHRAdapterSupported &&
|
|
22996
|
+
function (config) {
|
|
22997
|
+
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
22998
|
+
const _config = resolveConfig(config);
|
|
22999
|
+
let requestData = _config.data;
|
|
23000
|
+
const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize();
|
|
23001
|
+
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
23002
|
+
let onCanceled;
|
|
23003
|
+
let uploadThrottled, downloadThrottled;
|
|
23004
|
+
let flushUpload, flushDownload;
|
|
22605
23005
|
|
|
22606
|
-
|
|
22607
|
-
|
|
22608
|
-
|
|
23006
|
+
function done() {
|
|
23007
|
+
flushUpload && flushUpload(); // flush events
|
|
23008
|
+
flushDownload && flushDownload(); // flush events
|
|
22609
23009
|
|
|
22610
|
-
|
|
23010
|
+
_config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
|
|
22611
23011
|
|
|
22612
|
-
|
|
22613
|
-
|
|
23012
|
+
_config.signal && _config.signal.removeEventListener('abort', onCanceled);
|
|
23013
|
+
}
|
|
22614
23014
|
|
|
22615
|
-
|
|
23015
|
+
let request = new XMLHttpRequest();
|
|
22616
23016
|
|
|
22617
|
-
|
|
23017
|
+
request.open(_config.method.toUpperCase(), _config.url, true);
|
|
22618
23018
|
|
|
22619
|
-
|
|
22620
|
-
|
|
23019
|
+
// Set the request timeout in MS
|
|
23020
|
+
request.timeout = _config.timeout;
|
|
22621
23021
|
|
|
22622
|
-
|
|
22623
|
-
|
|
22624
|
-
|
|
23022
|
+
function onloadend() {
|
|
23023
|
+
if (!request) {
|
|
23024
|
+
return;
|
|
23025
|
+
}
|
|
23026
|
+
// Prepare the response
|
|
23027
|
+
const responseHeaders = AxiosHeaders$1.from(
|
|
23028
|
+
'getAllResponseHeaders' in request && request.getAllResponseHeaders()
|
|
23029
|
+
);
|
|
23030
|
+
const responseData =
|
|
23031
|
+
!responseType || responseType === 'text' || responseType === 'json'
|
|
23032
|
+
? request.responseText
|
|
23033
|
+
: request.response;
|
|
23034
|
+
const response = {
|
|
23035
|
+
data: responseData,
|
|
23036
|
+
status: request.status,
|
|
23037
|
+
statusText: request.statusText,
|
|
23038
|
+
headers: responseHeaders,
|
|
23039
|
+
config,
|
|
23040
|
+
request,
|
|
23041
|
+
};
|
|
23042
|
+
|
|
23043
|
+
settle(
|
|
23044
|
+
function _resolve(value) {
|
|
23045
|
+
resolve(value);
|
|
23046
|
+
done();
|
|
23047
|
+
},
|
|
23048
|
+
function _reject(err) {
|
|
23049
|
+
reject(err);
|
|
23050
|
+
done();
|
|
23051
|
+
},
|
|
23052
|
+
response
|
|
23053
|
+
);
|
|
23054
|
+
|
|
23055
|
+
// Clean up request
|
|
23056
|
+
request = null;
|
|
22625
23057
|
}
|
|
22626
|
-
// Prepare the response
|
|
22627
|
-
const responseHeaders = AxiosHeaders$1.from(
|
|
22628
|
-
'getAllResponseHeaders' in request && request.getAllResponseHeaders()
|
|
22629
|
-
);
|
|
22630
|
-
const responseData = !responseType || responseType === 'text' || responseType === 'json' ?
|
|
22631
|
-
request.responseText : request.response;
|
|
22632
|
-
const response = {
|
|
22633
|
-
data: responseData,
|
|
22634
|
-
status: request.status,
|
|
22635
|
-
statusText: request.statusText,
|
|
22636
|
-
headers: responseHeaders,
|
|
22637
|
-
config,
|
|
22638
|
-
request
|
|
22639
|
-
};
|
|
22640
23058
|
|
|
22641
|
-
|
|
22642
|
-
|
|
22643
|
-
|
|
22644
|
-
}
|
|
22645
|
-
|
|
22646
|
-
|
|
22647
|
-
|
|
23059
|
+
if ('onloadend' in request) {
|
|
23060
|
+
// Use onloadend if available
|
|
23061
|
+
request.onloadend = onloadend;
|
|
23062
|
+
} else {
|
|
23063
|
+
// Listen for ready state to emulate onloadend
|
|
23064
|
+
request.onreadystatechange = function handleLoad() {
|
|
23065
|
+
if (!request || request.readyState !== 4) {
|
|
23066
|
+
return;
|
|
23067
|
+
}
|
|
22648
23068
|
|
|
22649
|
-
|
|
22650
|
-
|
|
22651
|
-
|
|
23069
|
+
// The request errored out and we didn't get a response, this will be
|
|
23070
|
+
// handled by onerror instead
|
|
23071
|
+
// With one exception: request that using file: protocol, most browsers
|
|
23072
|
+
// will return status as 0 even though it's a successful request
|
|
23073
|
+
if (
|
|
23074
|
+
request.status === 0 &&
|
|
23075
|
+
!(request.responseURL && request.responseURL.indexOf('file:') === 0)
|
|
23076
|
+
) {
|
|
23077
|
+
return;
|
|
23078
|
+
}
|
|
23079
|
+
// readystate handler is calling before onerror or ontimeout handlers,
|
|
23080
|
+
// so we should call onloadend on the next 'tick'
|
|
23081
|
+
setTimeout(onloadend);
|
|
23082
|
+
};
|
|
23083
|
+
}
|
|
22652
23084
|
|
|
22653
|
-
|
|
22654
|
-
|
|
22655
|
-
|
|
22656
|
-
} else {
|
|
22657
|
-
// Listen for ready state to emulate onloadend
|
|
22658
|
-
request.onreadystatechange = function handleLoad() {
|
|
22659
|
-
if (!request || request.readyState !== 4) {
|
|
23085
|
+
// Handle browser request cancellation (as opposed to a manual cancellation)
|
|
23086
|
+
request.onabort = function handleAbort() {
|
|
23087
|
+
if (!request) {
|
|
22660
23088
|
return;
|
|
22661
23089
|
}
|
|
22662
23090
|
|
|
22663
|
-
|
|
22664
|
-
|
|
22665
|
-
//
|
|
22666
|
-
|
|
22667
|
-
if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
|
|
22668
|
-
return;
|
|
22669
|
-
}
|
|
22670
|
-
// readystate handler is calling before onerror or ontimeout handlers,
|
|
22671
|
-
// so we should call onloadend on the next 'tick'
|
|
22672
|
-
setTimeout(onloadend);
|
|
23091
|
+
reject(new AxiosError$1('Request aborted', AxiosError$1.ECONNABORTED, config, request));
|
|
23092
|
+
|
|
23093
|
+
// Clean up request
|
|
23094
|
+
request = null;
|
|
22673
23095
|
};
|
|
22674
|
-
}
|
|
22675
23096
|
|
|
22676
|
-
|
|
22677
|
-
|
|
22678
|
-
|
|
22679
|
-
|
|
22680
|
-
|
|
23097
|
+
// Handle low level network errors
|
|
23098
|
+
request.onerror = function handleError(event) {
|
|
23099
|
+
// Browsers deliver a ProgressEvent in XHR onerror
|
|
23100
|
+
// (message may be empty; when present, surface it)
|
|
23101
|
+
// See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
|
|
23102
|
+
const msg = event && event.message ? event.message : 'Network Error';
|
|
23103
|
+
const err = new AxiosError$1(msg, AxiosError$1.ERR_NETWORK, config, request);
|
|
23104
|
+
// attach the underlying event for consumers who want details
|
|
23105
|
+
err.event = event || null;
|
|
23106
|
+
reject(err);
|
|
23107
|
+
request = null;
|
|
23108
|
+
};
|
|
22681
23109
|
|
|
22682
|
-
|
|
22683
|
-
|
|
22684
|
-
|
|
22685
|
-
|
|
22686
|
-
|
|
22687
|
-
|
|
22688
|
-
|
|
22689
|
-
|
|
22690
|
-
|
|
22691
|
-
|
|
22692
|
-
|
|
22693
|
-
|
|
22694
|
-
|
|
22695
|
-
|
|
22696
|
-
|
|
22697
|
-
|
|
22698
|
-
|
|
22699
|
-
};
|
|
22700
|
-
|
|
22701
|
-
// Handle timeout
|
|
22702
|
-
request.ontimeout = function handleTimeout() {
|
|
22703
|
-
let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
22704
|
-
const transitional = _config.transitional || transitionalDefaults;
|
|
22705
|
-
if (_config.timeoutErrorMessage) {
|
|
22706
|
-
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
22707
|
-
}
|
|
22708
|
-
reject(new AxiosError$1(
|
|
22709
|
-
timeoutErrorMessage,
|
|
22710
|
-
transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
|
|
22711
|
-
config,
|
|
22712
|
-
request));
|
|
23110
|
+
// Handle timeout
|
|
23111
|
+
request.ontimeout = function handleTimeout() {
|
|
23112
|
+
let timeoutErrorMessage = _config.timeout
|
|
23113
|
+
? 'timeout of ' + _config.timeout + 'ms exceeded'
|
|
23114
|
+
: 'timeout exceeded';
|
|
23115
|
+
const transitional = _config.transitional || transitionalDefaults;
|
|
23116
|
+
if (_config.timeoutErrorMessage) {
|
|
23117
|
+
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
23118
|
+
}
|
|
23119
|
+
reject(
|
|
23120
|
+
new AxiosError$1(
|
|
23121
|
+
timeoutErrorMessage,
|
|
23122
|
+
transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
|
|
23123
|
+
config,
|
|
23124
|
+
request
|
|
23125
|
+
)
|
|
23126
|
+
);
|
|
22713
23127
|
|
|
22714
|
-
|
|
22715
|
-
|
|
22716
|
-
|
|
23128
|
+
// Clean up request
|
|
23129
|
+
request = null;
|
|
23130
|
+
};
|
|
22717
23131
|
|
|
22718
|
-
|
|
22719
|
-
|
|
23132
|
+
// Remove Content-Type if data is undefined
|
|
23133
|
+
requestData === undefined && requestHeaders.setContentType(null);
|
|
22720
23134
|
|
|
22721
|
-
|
|
22722
|
-
|
|
22723
|
-
|
|
22724
|
-
|
|
22725
|
-
|
|
22726
|
-
|
|
23135
|
+
// Add headers to the request
|
|
23136
|
+
if ('setRequestHeader' in request) {
|
|
23137
|
+
utils$1.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
|
|
23138
|
+
request.setRequestHeader(key, val);
|
|
23139
|
+
});
|
|
23140
|
+
}
|
|
22727
23141
|
|
|
22728
|
-
|
|
22729
|
-
|
|
22730
|
-
|
|
22731
|
-
|
|
23142
|
+
// Add withCredentials to request if needed
|
|
23143
|
+
if (!utils$1.isUndefined(_config.withCredentials)) {
|
|
23144
|
+
request.withCredentials = !!_config.withCredentials;
|
|
23145
|
+
}
|
|
22732
23146
|
|
|
22733
|
-
|
|
22734
|
-
|
|
22735
|
-
|
|
22736
|
-
|
|
23147
|
+
// Add responseType to request if needed
|
|
23148
|
+
if (responseType && responseType !== 'json') {
|
|
23149
|
+
request.responseType = _config.responseType;
|
|
23150
|
+
}
|
|
22737
23151
|
|
|
22738
|
-
|
|
22739
|
-
|
|
22740
|
-
|
|
22741
|
-
|
|
22742
|
-
|
|
23152
|
+
// Handle progress if needed
|
|
23153
|
+
if (onDownloadProgress) {
|
|
23154
|
+
[downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
|
|
23155
|
+
request.addEventListener('progress', downloadThrottled);
|
|
23156
|
+
}
|
|
22743
23157
|
|
|
22744
|
-
|
|
22745
|
-
|
|
22746
|
-
|
|
23158
|
+
// Not all browsers support upload events
|
|
23159
|
+
if (onUploadProgress && request.upload) {
|
|
23160
|
+
[uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
|
|
22747
23161
|
|
|
22748
|
-
|
|
23162
|
+
request.upload.addEventListener('progress', uploadThrottled);
|
|
22749
23163
|
|
|
22750
|
-
|
|
22751
|
-
|
|
23164
|
+
request.upload.addEventListener('loadend', flushUpload);
|
|
23165
|
+
}
|
|
22752
23166
|
|
|
22753
|
-
|
|
22754
|
-
|
|
22755
|
-
|
|
22756
|
-
|
|
22757
|
-
|
|
22758
|
-
|
|
22759
|
-
|
|
22760
|
-
|
|
22761
|
-
|
|
22762
|
-
|
|
22763
|
-
|
|
23167
|
+
if (_config.cancelToken || _config.signal) {
|
|
23168
|
+
// Handle cancellation
|
|
23169
|
+
// eslint-disable-next-line func-names
|
|
23170
|
+
onCanceled = (cancel) => {
|
|
23171
|
+
if (!request) {
|
|
23172
|
+
return;
|
|
23173
|
+
}
|
|
23174
|
+
reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
|
|
23175
|
+
request.abort();
|
|
23176
|
+
request = null;
|
|
23177
|
+
};
|
|
22764
23178
|
|
|
22765
|
-
|
|
22766
|
-
|
|
22767
|
-
|
|
23179
|
+
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
23180
|
+
if (_config.signal) {
|
|
23181
|
+
_config.signal.aborted
|
|
23182
|
+
? onCanceled()
|
|
23183
|
+
: _config.signal.addEventListener('abort', onCanceled);
|
|
23184
|
+
}
|
|
22768
23185
|
}
|
|
22769
|
-
}
|
|
22770
23186
|
|
|
22771
|
-
|
|
22772
|
-
|
|
22773
|
-
if (protocol && platform.protocols.indexOf(protocol) === -1) {
|
|
22774
|
-
reject(new AxiosError$1('Unsupported protocol ' + protocol + ':', AxiosError$1.ERR_BAD_REQUEST, config));
|
|
22775
|
-
return;
|
|
22776
|
-
}
|
|
23187
|
+
const protocol = parseProtocol(_config.url);
|
|
22777
23188
|
|
|
23189
|
+
if (protocol && platform.protocols.indexOf(protocol) === -1) {
|
|
23190
|
+
reject(
|
|
23191
|
+
new AxiosError$1(
|
|
23192
|
+
'Unsupported protocol ' + protocol + ':',
|
|
23193
|
+
AxiosError$1.ERR_BAD_REQUEST,
|
|
23194
|
+
config
|
|
23195
|
+
)
|
|
23196
|
+
);
|
|
23197
|
+
return;
|
|
23198
|
+
}
|
|
22778
23199
|
|
|
22779
|
-
|
|
22780
|
-
|
|
22781
|
-
|
|
22782
|
-
|
|
23200
|
+
// Send the request
|
|
23201
|
+
request.send(requestData || null);
|
|
23202
|
+
});
|
|
23203
|
+
};
|
|
22783
23204
|
|
|
22784
23205
|
const composeSignals = (signals, timeout) => {
|
|
22785
|
-
const {length} = (signals = signals ? signals.filter(Boolean) : []);
|
|
23206
|
+
const { length } = (signals = signals ? signals.filter(Boolean) : []);
|
|
22786
23207
|
|
|
22787
23208
|
if (timeout || length) {
|
|
22788
23209
|
let controller = new AbortController();
|
|
@@ -22794,21 +23215,29 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
22794
23215
|
aborted = true;
|
|
22795
23216
|
unsubscribe();
|
|
22796
23217
|
const err = reason instanceof Error ? reason : this.reason;
|
|
22797
|
-
controller.abort(
|
|
23218
|
+
controller.abort(
|
|
23219
|
+
err instanceof AxiosError$1
|
|
23220
|
+
? err
|
|
23221
|
+
: new CanceledError$1(err instanceof Error ? err.message : err)
|
|
23222
|
+
);
|
|
22798
23223
|
}
|
|
22799
23224
|
};
|
|
22800
23225
|
|
|
22801
|
-
let timer =
|
|
22802
|
-
|
|
22803
|
-
|
|
22804
|
-
|
|
23226
|
+
let timer =
|
|
23227
|
+
timeout &&
|
|
23228
|
+
setTimeout(() => {
|
|
23229
|
+
timer = null;
|
|
23230
|
+
onabort(new AxiosError$1(`timeout of ${timeout}ms exceeded`, AxiosError$1.ETIMEDOUT));
|
|
23231
|
+
}, timeout);
|
|
22805
23232
|
|
|
22806
23233
|
const unsubscribe = () => {
|
|
22807
23234
|
if (signals) {
|
|
22808
23235
|
timer && clearTimeout(timer);
|
|
22809
23236
|
timer = null;
|
|
22810
|
-
signals.forEach(signal => {
|
|
22811
|
-
signal.unsubscribe
|
|
23237
|
+
signals.forEach((signal) => {
|
|
23238
|
+
signal.unsubscribe
|
|
23239
|
+
? signal.unsubscribe(onabort)
|
|
23240
|
+
: signal.removeEventListener('abort', onabort);
|
|
22812
23241
|
});
|
|
22813
23242
|
signals = null;
|
|
22814
23243
|
}
|
|
@@ -22816,7 +23245,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
22816
23245
|
|
|
22817
23246
|
signals.forEach((signal) => signal.addEventListener('abort', onabort));
|
|
22818
23247
|
|
|
22819
|
-
const {signal} = controller;
|
|
23248
|
+
const { signal } = controller;
|
|
22820
23249
|
|
|
22821
23250
|
signal.unsubscribe = () => utils$1.asap(unsubscribe);
|
|
22822
23251
|
|
|
@@ -22859,7 +23288,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
22859
23288
|
const reader = stream.getReader();
|
|
22860
23289
|
try {
|
|
22861
23290
|
for (;;) {
|
|
22862
|
-
const {done, value} = await reader.read();
|
|
23291
|
+
const { done, value } = await reader.read();
|
|
22863
23292
|
if (done) {
|
|
22864
23293
|
break;
|
|
22865
23294
|
}
|
|
@@ -22882,64 +23311,69 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
22882
23311
|
}
|
|
22883
23312
|
};
|
|
22884
23313
|
|
|
22885
|
-
return new ReadableStream(
|
|
22886
|
-
|
|
22887
|
-
|
|
22888
|
-
|
|
23314
|
+
return new ReadableStream(
|
|
23315
|
+
{
|
|
23316
|
+
async pull(controller) {
|
|
23317
|
+
try {
|
|
23318
|
+
const { done, value } = await iterator.next();
|
|
22889
23319
|
|
|
22890
|
-
|
|
22891
|
-
|
|
22892
|
-
|
|
22893
|
-
|
|
22894
|
-
|
|
23320
|
+
if (done) {
|
|
23321
|
+
_onFinish();
|
|
23322
|
+
controller.close();
|
|
23323
|
+
return;
|
|
23324
|
+
}
|
|
22895
23325
|
|
|
22896
|
-
|
|
22897
|
-
|
|
22898
|
-
|
|
22899
|
-
|
|
23326
|
+
let len = value.byteLength;
|
|
23327
|
+
if (onProgress) {
|
|
23328
|
+
let loadedBytes = (bytes += len);
|
|
23329
|
+
onProgress(loadedBytes);
|
|
23330
|
+
}
|
|
23331
|
+
controller.enqueue(new Uint8Array(value));
|
|
23332
|
+
} catch (err) {
|
|
23333
|
+
_onFinish(err);
|
|
23334
|
+
throw err;
|
|
22900
23335
|
}
|
|
22901
|
-
|
|
22902
|
-
|
|
22903
|
-
_onFinish(
|
|
22904
|
-
|
|
22905
|
-
}
|
|
23336
|
+
},
|
|
23337
|
+
cancel(reason) {
|
|
23338
|
+
_onFinish(reason);
|
|
23339
|
+
return iterator.return();
|
|
23340
|
+
},
|
|
22906
23341
|
},
|
|
22907
|
-
|
|
22908
|
-
|
|
22909
|
-
return iterator.return();
|
|
23342
|
+
{
|
|
23343
|
+
highWaterMark: 2,
|
|
22910
23344
|
}
|
|
22911
|
-
|
|
22912
|
-
highWaterMark: 2
|
|
22913
|
-
})
|
|
23345
|
+
);
|
|
22914
23346
|
};
|
|
22915
23347
|
|
|
22916
23348
|
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
22917
23349
|
|
|
22918
|
-
const {isFunction} = utils$1;
|
|
23350
|
+
const { isFunction } = utils$1;
|
|
22919
23351
|
|
|
22920
|
-
const globalFetchAPI = (({Request, Response}) => ({
|
|
22921
|
-
Request,
|
|
23352
|
+
const globalFetchAPI = (({ Request, Response }) => ({
|
|
23353
|
+
Request,
|
|
23354
|
+
Response,
|
|
22922
23355
|
}))(utils$1.global);
|
|
22923
23356
|
|
|
22924
|
-
const {
|
|
22925
|
-
ReadableStream: ReadableStream$1, TextEncoder
|
|
22926
|
-
} = utils$1.global;
|
|
22927
|
-
|
|
23357
|
+
const { ReadableStream: ReadableStream$1, TextEncoder } = utils$1.global;
|
|
22928
23358
|
|
|
22929
23359
|
const test = (fn, ...args) => {
|
|
22930
23360
|
try {
|
|
22931
23361
|
return !!fn(...args);
|
|
22932
23362
|
} catch (e) {
|
|
22933
|
-
return false
|
|
23363
|
+
return false;
|
|
22934
23364
|
}
|
|
22935
23365
|
};
|
|
22936
23366
|
|
|
22937
23367
|
const factory = (env) => {
|
|
22938
|
-
env = utils$1.merge.call(
|
|
22939
|
-
|
|
22940
|
-
|
|
23368
|
+
env = utils$1.merge.call(
|
|
23369
|
+
{
|
|
23370
|
+
skipUndefined: true,
|
|
23371
|
+
},
|
|
23372
|
+
globalFetchAPI,
|
|
23373
|
+
env
|
|
23374
|
+
);
|
|
22941
23375
|
|
|
22942
|
-
const {fetch: envFetch, Request, Response} = env;
|
|
23376
|
+
const { fetch: envFetch, Request, Response } = env;
|
|
22943
23377
|
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
|
|
22944
23378
|
const isRequestSupported = isFunction(Request);
|
|
22945
23379
|
const isResponseSupported = isFunction(Response);
|
|
@@ -22950,46 +23384,65 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
22950
23384
|
|
|
22951
23385
|
const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream$1);
|
|
22952
23386
|
|
|
22953
|
-
const encodeText =
|
|
22954
|
-
|
|
22955
|
-
|
|
22956
|
-
|
|
23387
|
+
const encodeText =
|
|
23388
|
+
isFetchSupported &&
|
|
23389
|
+
(typeof TextEncoder === 'function'
|
|
23390
|
+
? (
|
|
23391
|
+
(encoder) => (str) =>
|
|
23392
|
+
encoder.encode(str)
|
|
23393
|
+
)(new TextEncoder())
|
|
23394
|
+
: async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
|
|
22957
23395
|
|
|
22958
|
-
const supportsRequestStream =
|
|
22959
|
-
|
|
23396
|
+
const supportsRequestStream =
|
|
23397
|
+
isRequestSupported &&
|
|
23398
|
+
isReadableStreamSupported &&
|
|
23399
|
+
test(() => {
|
|
23400
|
+
let duplexAccessed = false;
|
|
22960
23401
|
|
|
22961
|
-
|
|
22962
|
-
body: new ReadableStream$1(),
|
|
22963
|
-
method: 'POST',
|
|
22964
|
-
get duplex() {
|
|
22965
|
-
duplexAccessed = true;
|
|
22966
|
-
return 'half';
|
|
22967
|
-
},
|
|
22968
|
-
}).headers.has('Content-Type');
|
|
23402
|
+
const body = new ReadableStream$1();
|
|
22969
23403
|
|
|
22970
|
-
|
|
22971
|
-
|
|
23404
|
+
const hasContentType = new Request(platform.origin, {
|
|
23405
|
+
body,
|
|
23406
|
+
method: 'POST',
|
|
23407
|
+
get duplex() {
|
|
23408
|
+
duplexAccessed = true;
|
|
23409
|
+
return 'half';
|
|
23410
|
+
},
|
|
23411
|
+
}).headers.has('Content-Type');
|
|
22972
23412
|
|
|
22973
|
-
|
|
23413
|
+
body.cancel();
|
|
23414
|
+
|
|
23415
|
+
return duplexAccessed && !hasContentType;
|
|
23416
|
+
});
|
|
23417
|
+
|
|
23418
|
+
const supportsResponseStream =
|
|
23419
|
+
isResponseSupported &&
|
|
23420
|
+
isReadableStreamSupported &&
|
|
22974
23421
|
test(() => utils$1.isReadableStream(new Response('').body));
|
|
22975
23422
|
|
|
22976
23423
|
const resolvers = {
|
|
22977
|
-
stream: supportsResponseStream && ((res) => res.body)
|
|
23424
|
+
stream: supportsResponseStream && ((res) => res.body),
|
|
22978
23425
|
};
|
|
22979
23426
|
|
|
22980
|
-
isFetchSupported &&
|
|
22981
|
-
|
|
22982
|
-
|
|
22983
|
-
|
|
23427
|
+
isFetchSupported &&
|
|
23428
|
+
(() => {
|
|
23429
|
+
['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach((type) => {
|
|
23430
|
+
!resolvers[type] &&
|
|
23431
|
+
(resolvers[type] = (res, config) => {
|
|
23432
|
+
let method = res && res[type];
|
|
22984
23433
|
|
|
22985
|
-
|
|
22986
|
-
|
|
22987
|
-
|
|
23434
|
+
if (method) {
|
|
23435
|
+
return method.call(res);
|
|
23436
|
+
}
|
|
22988
23437
|
|
|
22989
|
-
|
|
23438
|
+
throw new AxiosError$1(
|
|
23439
|
+
`Response type '${type}' is not supported`,
|
|
23440
|
+
AxiosError$1.ERR_NOT_SUPPORT,
|
|
23441
|
+
config
|
|
23442
|
+
);
|
|
23443
|
+
});
|
|
22990
23444
|
});
|
|
22991
|
-
});
|
|
22992
|
-
})());
|
|
23445
|
+
})();
|
|
22993
23446
|
|
|
22994
23447
|
const getBodyLength = async (body) => {
|
|
22995
23448
|
if (body == null) {
|
|
@@ -23040,32 +23493,41 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23040
23493
|
responseType,
|
|
23041
23494
|
headers,
|
|
23042
23495
|
withCredentials = 'same-origin',
|
|
23043
|
-
fetchOptions
|
|
23496
|
+
fetchOptions,
|
|
23044
23497
|
} = resolveConfig(config);
|
|
23045
23498
|
|
|
23046
23499
|
let _fetch = envFetch || fetch;
|
|
23047
23500
|
|
|
23048
23501
|
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
23049
23502
|
|
|
23050
|
-
let composedSignal = composeSignals$1(
|
|
23503
|
+
let composedSignal = composeSignals$1(
|
|
23504
|
+
[signal, cancelToken && cancelToken.toAbortSignal()],
|
|
23505
|
+
timeout
|
|
23506
|
+
);
|
|
23051
23507
|
|
|
23052
23508
|
let request = null;
|
|
23053
23509
|
|
|
23054
|
-
const unsubscribe =
|
|
23055
|
-
composedSignal
|
|
23056
|
-
|
|
23510
|
+
const unsubscribe =
|
|
23511
|
+
composedSignal &&
|
|
23512
|
+
composedSignal.unsubscribe &&
|
|
23513
|
+
(() => {
|
|
23514
|
+
composedSignal.unsubscribe();
|
|
23515
|
+
});
|
|
23057
23516
|
|
|
23058
23517
|
let requestContentLength;
|
|
23059
23518
|
|
|
23060
23519
|
try {
|
|
23061
23520
|
if (
|
|
23062
|
-
onUploadProgress &&
|
|
23521
|
+
onUploadProgress &&
|
|
23522
|
+
supportsRequestStream &&
|
|
23523
|
+
method !== 'get' &&
|
|
23524
|
+
method !== 'head' &&
|
|
23063
23525
|
(requestContentLength = await resolveBodyLength(headers, data)) !== 0
|
|
23064
23526
|
) {
|
|
23065
23527
|
let _request = new Request(url, {
|
|
23066
23528
|
method: 'POST',
|
|
23067
23529
|
body: data,
|
|
23068
|
-
duplex:
|
|
23530
|
+
duplex: 'half',
|
|
23069
23531
|
});
|
|
23070
23532
|
|
|
23071
23533
|
let contentTypeHeader;
|
|
@@ -23090,7 +23552,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23090
23552
|
|
|
23091
23553
|
// Cloudflare Workers throws when credentials are defined
|
|
23092
23554
|
// see https://github.com/cloudflare/workerd/issues/902
|
|
23093
|
-
const isCredentialsSupported = isRequestSupported &&
|
|
23555
|
+
const isCredentialsSupported = isRequestSupported && 'credentials' in Request.prototype;
|
|
23094
23556
|
|
|
23095
23557
|
const resolvedOptions = {
|
|
23096
23558
|
...fetchOptions,
|
|
@@ -23098,29 +23560,35 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23098
23560
|
method: method.toUpperCase(),
|
|
23099
23561
|
headers: headers.normalize().toJSON(),
|
|
23100
23562
|
body: data,
|
|
23101
|
-
duplex:
|
|
23102
|
-
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
23563
|
+
duplex: 'half',
|
|
23564
|
+
credentials: isCredentialsSupported ? withCredentials : undefined,
|
|
23103
23565
|
};
|
|
23104
23566
|
|
|
23105
23567
|
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
23106
23568
|
|
|
23107
|
-
let response = await (isRequestSupported
|
|
23569
|
+
let response = await (isRequestSupported
|
|
23570
|
+
? _fetch(request, fetchOptions)
|
|
23571
|
+
: _fetch(url, resolvedOptions));
|
|
23108
23572
|
|
|
23109
|
-
const isStreamResponse =
|
|
23573
|
+
const isStreamResponse =
|
|
23574
|
+
supportsResponseStream && (responseType === 'stream' || responseType === 'response');
|
|
23110
23575
|
|
|
23111
23576
|
if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
|
|
23112
23577
|
const options = {};
|
|
23113
23578
|
|
|
23114
|
-
['status', 'statusText', 'headers'].forEach(prop => {
|
|
23579
|
+
['status', 'statusText', 'headers'].forEach((prop) => {
|
|
23115
23580
|
options[prop] = response[prop];
|
|
23116
23581
|
});
|
|
23117
23582
|
|
|
23118
23583
|
const responseContentLength = utils$1.toFiniteNumber(response.headers.get('content-length'));
|
|
23119
23584
|
|
|
23120
|
-
const [onProgress, flush] =
|
|
23121
|
-
|
|
23122
|
-
|
|
23123
|
-
|
|
23585
|
+
const [onProgress, flush] =
|
|
23586
|
+
(onDownloadProgress &&
|
|
23587
|
+
progressEventDecorator(
|
|
23588
|
+
responseContentLength,
|
|
23589
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
23590
|
+
)) ||
|
|
23591
|
+
[];
|
|
23124
23592
|
|
|
23125
23593
|
response = new Response(
|
|
23126
23594
|
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
@@ -23133,7 +23601,10 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23133
23601
|
|
|
23134
23602
|
responseType = responseType || 'text';
|
|
23135
23603
|
|
|
23136
|
-
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || 'text'](
|
|
23604
|
+
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || 'text'](
|
|
23605
|
+
response,
|
|
23606
|
+
config
|
|
23607
|
+
);
|
|
23137
23608
|
|
|
23138
23609
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
23139
23610
|
|
|
@@ -23144,43 +23615,50 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23144
23615
|
status: response.status,
|
|
23145
23616
|
statusText: response.statusText,
|
|
23146
23617
|
config,
|
|
23147
|
-
request
|
|
23618
|
+
request,
|
|
23148
23619
|
});
|
|
23149
|
-
})
|
|
23620
|
+
});
|
|
23150
23621
|
} catch (err) {
|
|
23151
23622
|
unsubscribe && unsubscribe();
|
|
23152
23623
|
|
|
23153
23624
|
if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
|
|
23154
23625
|
throw Object.assign(
|
|
23155
|
-
new AxiosError$1(
|
|
23626
|
+
new AxiosError$1(
|
|
23627
|
+
'Network Error',
|
|
23628
|
+
AxiosError$1.ERR_NETWORK,
|
|
23629
|
+
config,
|
|
23630
|
+
request,
|
|
23631
|
+
err && err.response
|
|
23632
|
+
),
|
|
23156
23633
|
{
|
|
23157
|
-
cause: err.cause || err
|
|
23634
|
+
cause: err.cause || err,
|
|
23158
23635
|
}
|
|
23159
|
-
)
|
|
23636
|
+
);
|
|
23160
23637
|
}
|
|
23161
23638
|
|
|
23162
|
-
throw AxiosError$1.from(err, err && err.code, config, request);
|
|
23639
|
+
throw AxiosError$1.from(err, err && err.code, config, request, err && err.response);
|
|
23163
23640
|
}
|
|
23164
|
-
}
|
|
23641
|
+
};
|
|
23165
23642
|
};
|
|
23166
23643
|
|
|
23167
23644
|
const seedCache = new Map();
|
|
23168
23645
|
|
|
23169
23646
|
const getFetch = (config) => {
|
|
23170
23647
|
let env = (config && config.env) || {};
|
|
23171
|
-
const {fetch, Request, Response} = env;
|
|
23172
|
-
const seeds = [
|
|
23173
|
-
Request, Response, fetch
|
|
23174
|
-
];
|
|
23648
|
+
const { fetch, Request, Response } = env;
|
|
23649
|
+
const seeds = [Request, Response, fetch];
|
|
23175
23650
|
|
|
23176
|
-
let len = seeds.length,
|
|
23177
|
-
|
|
23651
|
+
let len = seeds.length,
|
|
23652
|
+
i = len,
|
|
23653
|
+
seed,
|
|
23654
|
+
target,
|
|
23655
|
+
map = seedCache;
|
|
23178
23656
|
|
|
23179
23657
|
while (i--) {
|
|
23180
23658
|
seed = seeds[i];
|
|
23181
23659
|
target = map.get(seed);
|
|
23182
23660
|
|
|
23183
|
-
target === undefined && map.set(seed, target =
|
|
23661
|
+
target === undefined && map.set(seed, (target = i ? new Map() : factory(env)));
|
|
23184
23662
|
|
|
23185
23663
|
map = target;
|
|
23186
23664
|
}
|
|
@@ -23196,7 +23674,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23196
23674
|
* - `http` for Node.js
|
|
23197
23675
|
* - `xhr` for browsers
|
|
23198
23676
|
* - `fetch` for fetch API-based requests
|
|
23199
|
-
*
|
|
23677
|
+
*
|
|
23200
23678
|
* @type {Object<string, Function|Object>}
|
|
23201
23679
|
*/
|
|
23202
23680
|
const knownAdapters = {
|
|
@@ -23204,7 +23682,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23204
23682
|
xhr: xhrAdapter,
|
|
23205
23683
|
fetch: {
|
|
23206
23684
|
get: getFetch,
|
|
23207
|
-
}
|
|
23685
|
+
},
|
|
23208
23686
|
};
|
|
23209
23687
|
|
|
23210
23688
|
// Assign adapter names for easier debugging and identification
|
|
@@ -23221,7 +23699,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23221
23699
|
|
|
23222
23700
|
/**
|
|
23223
23701
|
* Render a rejection reason string for unknown or unsupported adapters
|
|
23224
|
-
*
|
|
23702
|
+
*
|
|
23225
23703
|
* @param {string} reason
|
|
23226
23704
|
* @returns {string}
|
|
23227
23705
|
*/
|
|
@@ -23229,17 +23707,18 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23229
23707
|
|
|
23230
23708
|
/**
|
|
23231
23709
|
* Check if the adapter is resolved (function, null, or false)
|
|
23232
|
-
*
|
|
23710
|
+
*
|
|
23233
23711
|
* @param {Function|null|false} adapter
|
|
23234
23712
|
* @returns {boolean}
|
|
23235
23713
|
*/
|
|
23236
|
-
const isResolvedHandle = (adapter) =>
|
|
23714
|
+
const isResolvedHandle = (adapter) =>
|
|
23715
|
+
utils$1.isFunction(adapter) || adapter === null || adapter === false;
|
|
23237
23716
|
|
|
23238
23717
|
/**
|
|
23239
23718
|
* Get the first suitable adapter from the provided list.
|
|
23240
23719
|
* Tries each adapter in order until a supported one is found.
|
|
23241
23720
|
* Throws an AxiosError if no adapter is suitable.
|
|
23242
|
-
*
|
|
23721
|
+
*
|
|
23243
23722
|
* @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
|
|
23244
23723
|
* @param {Object} config - Axios request configuration
|
|
23245
23724
|
* @throws {AxiosError} If no suitable adapter is available
|
|
@@ -23276,14 +23755,17 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23276
23755
|
}
|
|
23277
23756
|
|
|
23278
23757
|
if (!adapter) {
|
|
23279
|
-
const reasons = Object.entries(rejectedReasons)
|
|
23280
|
-
|
|
23758
|
+
const reasons = Object.entries(rejectedReasons).map(
|
|
23759
|
+
([id, state]) =>
|
|
23760
|
+
`adapter ${id} ` +
|
|
23281
23761
|
(state === false ? 'is not supported by the environment' : 'is not available in the build')
|
|
23282
|
-
|
|
23762
|
+
);
|
|
23283
23763
|
|
|
23284
|
-
let s = length
|
|
23285
|
-
|
|
23286
|
-
|
|
23764
|
+
let s = length
|
|
23765
|
+
? reasons.length > 1
|
|
23766
|
+
? 'since :\n' + reasons.map(renderReason).join('\n')
|
|
23767
|
+
: ' ' + renderReason(reasons[0])
|
|
23768
|
+
: 'as no adapter specified';
|
|
23287
23769
|
|
|
23288
23770
|
throw new AxiosError$1(
|
|
23289
23771
|
`There is no suitable adapter to dispatch the request ` + s,
|
|
@@ -23308,7 +23790,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23308
23790
|
* Exposes all known adapters
|
|
23309
23791
|
* @type {Object<string, Function|Object>}
|
|
23310
23792
|
*/
|
|
23311
|
-
adapters: knownAdapters
|
|
23793
|
+
adapters: knownAdapters,
|
|
23312
23794
|
};
|
|
23313
23795
|
|
|
23314
23796
|
/**
|
|
@@ -23341,10 +23823,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23341
23823
|
config.headers = AxiosHeaders$1.from(config.headers);
|
|
23342
23824
|
|
|
23343
23825
|
// Transform request data
|
|
23344
|
-
config.data = transformData.call(
|
|
23345
|
-
config,
|
|
23346
|
-
config.transformRequest
|
|
23347
|
-
);
|
|
23826
|
+
config.data = transformData.call(config, config.transformRequest);
|
|
23348
23827
|
|
|
23349
23828
|
if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {
|
|
23350
23829
|
config.headers.setContentType('application/x-www-form-urlencoded', false);
|
|
@@ -23352,39 +23831,38 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23352
23831
|
|
|
23353
23832
|
const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter, config);
|
|
23354
23833
|
|
|
23355
|
-
return adapter(config).then(
|
|
23356
|
-
|
|
23357
|
-
|
|
23358
|
-
// Transform response data
|
|
23359
|
-
response.data = transformData.call(
|
|
23360
|
-
config,
|
|
23361
|
-
config.transformResponse,
|
|
23362
|
-
response
|
|
23363
|
-
);
|
|
23364
|
-
|
|
23365
|
-
response.headers = AxiosHeaders$1.from(response.headers);
|
|
23366
|
-
|
|
23367
|
-
return response;
|
|
23368
|
-
}, function onAdapterRejection(reason) {
|
|
23369
|
-
if (!isCancel(reason)) {
|
|
23834
|
+
return adapter(config).then(
|
|
23835
|
+
function onAdapterResolution(response) {
|
|
23370
23836
|
throwIfCancellationRequested(config);
|
|
23371
23837
|
|
|
23372
23838
|
// Transform response data
|
|
23373
|
-
|
|
23374
|
-
|
|
23375
|
-
|
|
23376
|
-
|
|
23377
|
-
|
|
23378
|
-
|
|
23379
|
-
|
|
23839
|
+
response.data = transformData.call(config, config.transformResponse, response);
|
|
23840
|
+
|
|
23841
|
+
response.headers = AxiosHeaders$1.from(response.headers);
|
|
23842
|
+
|
|
23843
|
+
return response;
|
|
23844
|
+
},
|
|
23845
|
+
function onAdapterRejection(reason) {
|
|
23846
|
+
if (!isCancel(reason)) {
|
|
23847
|
+
throwIfCancellationRequested(config);
|
|
23848
|
+
|
|
23849
|
+
// Transform response data
|
|
23850
|
+
if (reason && reason.response) {
|
|
23851
|
+
reason.response.data = transformData.call(
|
|
23852
|
+
config,
|
|
23853
|
+
config.transformResponse,
|
|
23854
|
+
reason.response
|
|
23855
|
+
);
|
|
23856
|
+
reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
|
|
23857
|
+
}
|
|
23380
23858
|
}
|
|
23381
|
-
}
|
|
23382
23859
|
|
|
23383
|
-
|
|
23384
|
-
|
|
23860
|
+
return Promise.reject(reason);
|
|
23861
|
+
}
|
|
23862
|
+
);
|
|
23385
23863
|
}
|
|
23386
23864
|
|
|
23387
|
-
const VERSION = "1.
|
|
23865
|
+
const VERSION = "1.15.0";
|
|
23388
23866
|
|
|
23389
23867
|
const validators$1 = {};
|
|
23390
23868
|
|
|
@@ -23408,7 +23886,15 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23408
23886
|
*/
|
|
23409
23887
|
validators$1.transitional = function transitional(validator, version, message) {
|
|
23410
23888
|
function formatMessage(opt, desc) {
|
|
23411
|
-
return
|
|
23889
|
+
return (
|
|
23890
|
+
'[Axios v' +
|
|
23891
|
+
VERSION +
|
|
23892
|
+
"] Transitional option '" +
|
|
23893
|
+
opt +
|
|
23894
|
+
"'" +
|
|
23895
|
+
desc +
|
|
23896
|
+
(message ? '. ' + message : '')
|
|
23897
|
+
);
|
|
23412
23898
|
}
|
|
23413
23899
|
|
|
23414
23900
|
// eslint-disable-next-line func-names
|
|
@@ -23440,7 +23926,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23440
23926
|
// eslint-disable-next-line no-console
|
|
23441
23927
|
console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
|
|
23442
23928
|
return true;
|
|
23443
|
-
}
|
|
23929
|
+
};
|
|
23444
23930
|
};
|
|
23445
23931
|
|
|
23446
23932
|
/**
|
|
@@ -23466,7 +23952,10 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23466
23952
|
const value = options[opt];
|
|
23467
23953
|
const result = value === undefined || validator(value, opt, options);
|
|
23468
23954
|
if (result !== true) {
|
|
23469
|
-
throw new AxiosError$1(
|
|
23955
|
+
throw new AxiosError$1(
|
|
23956
|
+
'option ' + opt + ' must be ' + result,
|
|
23957
|
+
AxiosError$1.ERR_BAD_OPTION_VALUE
|
|
23958
|
+
);
|
|
23470
23959
|
}
|
|
23471
23960
|
continue;
|
|
23472
23961
|
}
|
|
@@ -23478,7 +23967,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23478
23967
|
|
|
23479
23968
|
var validator = {
|
|
23480
23969
|
assertOptions,
|
|
23481
|
-
validators: validators$1
|
|
23970
|
+
validators: validators$1,
|
|
23482
23971
|
};
|
|
23483
23972
|
|
|
23484
23973
|
const validators = validator.validators;
|
|
@@ -23495,7 +23984,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23495
23984
|
this.defaults = instanceConfig || {};
|
|
23496
23985
|
this.interceptors = {
|
|
23497
23986
|
request: new InterceptorManager$1(),
|
|
23498
|
-
response: new InterceptorManager$1()
|
|
23987
|
+
response: new InterceptorManager$1(),
|
|
23499
23988
|
};
|
|
23500
23989
|
}
|
|
23501
23990
|
|
|
@@ -23517,13 +24006,29 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23517
24006
|
Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
|
|
23518
24007
|
|
|
23519
24008
|
// slice off the Error: ... line
|
|
23520
|
-
const stack =
|
|
24009
|
+
const stack = (() => {
|
|
24010
|
+
if (!dummy.stack) {
|
|
24011
|
+
return '';
|
|
24012
|
+
}
|
|
24013
|
+
|
|
24014
|
+
const firstNewlineIndex = dummy.stack.indexOf('\n');
|
|
24015
|
+
|
|
24016
|
+
return firstNewlineIndex === -1 ? '' : dummy.stack.slice(firstNewlineIndex + 1);
|
|
24017
|
+
})();
|
|
23521
24018
|
try {
|
|
23522
24019
|
if (!err.stack) {
|
|
23523
24020
|
err.stack = stack;
|
|
23524
24021
|
// match without the 2 top stack lines
|
|
23525
|
-
} else if (stack
|
|
23526
|
-
|
|
24022
|
+
} else if (stack) {
|
|
24023
|
+
const firstNewlineIndex = stack.indexOf('\n');
|
|
24024
|
+
const secondNewlineIndex =
|
|
24025
|
+
firstNewlineIndex === -1 ? -1 : stack.indexOf('\n', firstNewlineIndex + 1);
|
|
24026
|
+
const stackWithoutTwoTopLines =
|
|
24027
|
+
secondNewlineIndex === -1 ? '' : stack.slice(secondNewlineIndex + 1);
|
|
24028
|
+
|
|
24029
|
+
if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {
|
|
24030
|
+
err.stack += '\n' + stack;
|
|
24031
|
+
}
|
|
23527
24032
|
}
|
|
23528
24033
|
} catch (e) {
|
|
23529
24034
|
// ignore the case where "stack" is an un-writable property
|
|
@@ -23546,26 +24051,35 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23546
24051
|
|
|
23547
24052
|
config = mergeConfig(this.defaults, config);
|
|
23548
24053
|
|
|
23549
|
-
const {transitional, paramsSerializer, headers} = config;
|
|
24054
|
+
const { transitional, paramsSerializer, headers } = config;
|
|
23550
24055
|
|
|
23551
24056
|
if (transitional !== undefined) {
|
|
23552
|
-
validator.assertOptions(
|
|
23553
|
-
|
|
23554
|
-
|
|
23555
|
-
|
|
23556
|
-
|
|
24057
|
+
validator.assertOptions(
|
|
24058
|
+
transitional,
|
|
24059
|
+
{
|
|
24060
|
+
silentJSONParsing: validators.transitional(validators.boolean),
|
|
24061
|
+
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
24062
|
+
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
24063
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
|
|
24064
|
+
},
|
|
24065
|
+
false
|
|
24066
|
+
);
|
|
23557
24067
|
}
|
|
23558
24068
|
|
|
23559
24069
|
if (paramsSerializer != null) {
|
|
23560
24070
|
if (utils$1.isFunction(paramsSerializer)) {
|
|
23561
24071
|
config.paramsSerializer = {
|
|
23562
|
-
serialize: paramsSerializer
|
|
24072
|
+
serialize: paramsSerializer,
|
|
23563
24073
|
};
|
|
23564
24074
|
} else {
|
|
23565
|
-
validator.assertOptions(
|
|
23566
|
-
|
|
23567
|
-
|
|
23568
|
-
|
|
24075
|
+
validator.assertOptions(
|
|
24076
|
+
paramsSerializer,
|
|
24077
|
+
{
|
|
24078
|
+
encode: validators.function,
|
|
24079
|
+
serialize: validators.function,
|
|
24080
|
+
},
|
|
24081
|
+
true
|
|
24082
|
+
);
|
|
23569
24083
|
}
|
|
23570
24084
|
}
|
|
23571
24085
|
|
|
@@ -23576,26 +24090,25 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23576
24090
|
config.allowAbsoluteUrls = true;
|
|
23577
24091
|
}
|
|
23578
24092
|
|
|
23579
|
-
validator.assertOptions(
|
|
23580
|
-
|
|
23581
|
-
|
|
23582
|
-
|
|
24093
|
+
validator.assertOptions(
|
|
24094
|
+
config,
|
|
24095
|
+
{
|
|
24096
|
+
baseUrl: validators.spelling('baseURL'),
|
|
24097
|
+
withXsrfToken: validators.spelling('withXSRFToken'),
|
|
24098
|
+
},
|
|
24099
|
+
true
|
|
24100
|
+
);
|
|
23583
24101
|
|
|
23584
24102
|
// Set config.method
|
|
23585
24103
|
config.method = (config.method || this.defaults.method || 'get').toLowerCase();
|
|
23586
24104
|
|
|
23587
24105
|
// Flatten headers
|
|
23588
|
-
let contextHeaders = headers && utils$1.merge(
|
|
23589
|
-
headers.common,
|
|
23590
|
-
headers[config.method]
|
|
23591
|
-
);
|
|
24106
|
+
let contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]);
|
|
23592
24107
|
|
|
23593
|
-
headers &&
|
|
23594
|
-
['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
|
|
23595
|
-
(method) => {
|
|
24108
|
+
headers &&
|
|
24109
|
+
utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], (method) => {
|
|
23596
24110
|
delete headers[method];
|
|
23597
|
-
}
|
|
23598
|
-
);
|
|
24111
|
+
});
|
|
23599
24112
|
|
|
23600
24113
|
config.headers = AxiosHeaders$1.concat(contextHeaders, headers);
|
|
23601
24114
|
|
|
@@ -23609,7 +24122,15 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23609
24122
|
|
|
23610
24123
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
23611
24124
|
|
|
23612
|
-
|
|
24125
|
+
const transitional = config.transitional || transitionalDefaults;
|
|
24126
|
+
const legacyInterceptorReqResOrdering =
|
|
24127
|
+
transitional && transitional.legacyInterceptorReqResOrdering;
|
|
24128
|
+
|
|
24129
|
+
if (legacyInterceptorReqResOrdering) {
|
|
24130
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
24131
|
+
} else {
|
|
24132
|
+
requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
24133
|
+
}
|
|
23613
24134
|
});
|
|
23614
24135
|
|
|
23615
24136
|
const responseInterceptorChain = [];
|
|
@@ -23677,28 +24198,32 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23677
24198
|
// Provide aliases for supported request methods
|
|
23678
24199
|
utils$1.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
|
|
23679
24200
|
/*eslint func-names:0*/
|
|
23680
|
-
Axios.prototype[method] = function(url, config) {
|
|
23681
|
-
return this.request(
|
|
23682
|
-
|
|
23683
|
-
|
|
23684
|
-
|
|
23685
|
-
|
|
24201
|
+
Axios.prototype[method] = function (url, config) {
|
|
24202
|
+
return this.request(
|
|
24203
|
+
mergeConfig(config || {}, {
|
|
24204
|
+
method,
|
|
24205
|
+
url,
|
|
24206
|
+
data: (config || {}).data,
|
|
24207
|
+
})
|
|
24208
|
+
);
|
|
23686
24209
|
};
|
|
23687
24210
|
});
|
|
23688
24211
|
|
|
23689
24212
|
utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
23690
|
-
/*eslint func-names:0*/
|
|
23691
|
-
|
|
23692
24213
|
function generateHTTPMethod(isForm) {
|
|
23693
24214
|
return function httpMethod(url, data, config) {
|
|
23694
|
-
return this.request(
|
|
23695
|
-
|
|
23696
|
-
|
|
23697
|
-
|
|
23698
|
-
|
|
23699
|
-
|
|
23700
|
-
|
|
23701
|
-
|
|
24215
|
+
return this.request(
|
|
24216
|
+
mergeConfig(config || {}, {
|
|
24217
|
+
method,
|
|
24218
|
+
headers: isForm
|
|
24219
|
+
? {
|
|
24220
|
+
'Content-Type': 'multipart/form-data',
|
|
24221
|
+
}
|
|
24222
|
+
: {},
|
|
24223
|
+
url,
|
|
24224
|
+
data,
|
|
24225
|
+
})
|
|
24226
|
+
);
|
|
23702
24227
|
};
|
|
23703
24228
|
}
|
|
23704
24229
|
|
|
@@ -23731,7 +24256,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23731
24256
|
const token = this;
|
|
23732
24257
|
|
|
23733
24258
|
// eslint-disable-next-line func-names
|
|
23734
|
-
this.promise.then(cancel => {
|
|
24259
|
+
this.promise.then((cancel) => {
|
|
23735
24260
|
if (!token._listeners) return;
|
|
23736
24261
|
|
|
23737
24262
|
let i = token._listeners.length;
|
|
@@ -23743,10 +24268,10 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23743
24268
|
});
|
|
23744
24269
|
|
|
23745
24270
|
// eslint-disable-next-line func-names
|
|
23746
|
-
this.promise.then = onfulfilled => {
|
|
24271
|
+
this.promise.then = (onfulfilled) => {
|
|
23747
24272
|
let _resolve;
|
|
23748
24273
|
// eslint-disable-next-line func-names
|
|
23749
|
-
const promise = new Promise(resolve => {
|
|
24274
|
+
const promise = new Promise((resolve) => {
|
|
23750
24275
|
token.subscribe(resolve);
|
|
23751
24276
|
_resolve = resolve;
|
|
23752
24277
|
}).then(onfulfilled);
|
|
@@ -23834,7 +24359,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23834
24359
|
});
|
|
23835
24360
|
return {
|
|
23836
24361
|
token,
|
|
23837
|
-
cancel
|
|
24362
|
+
cancel,
|
|
23838
24363
|
};
|
|
23839
24364
|
}
|
|
23840
24365
|
}
|
|
@@ -23876,7 +24401,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23876
24401
|
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
|
23877
24402
|
*/
|
|
23878
24403
|
function isAxiosError(payload) {
|
|
23879
|
-
return utils$1.isObject(payload) &&
|
|
24404
|
+
return utils$1.isObject(payload) && payload.isAxiosError === true;
|
|
23880
24405
|
}
|
|
23881
24406
|
|
|
23882
24407
|
const HttpStatusCode = {
|
|
@@ -23969,10 +24494,10 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
23969
24494
|
const instance = bind(Axios$1.prototype.request, context);
|
|
23970
24495
|
|
|
23971
24496
|
// Copy axios.prototype to instance
|
|
23972
|
-
utils$1.extend(instance, Axios$1.prototype, context, {allOwnKeys: true});
|
|
24497
|
+
utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
|
|
23973
24498
|
|
|
23974
24499
|
// Copy context to instance
|
|
23975
|
-
utils$1.extend(instance, context, null, {allOwnKeys: true});
|
|
24500
|
+
utils$1.extend(instance, context, null, { allOwnKeys: true });
|
|
23976
24501
|
|
|
23977
24502
|
// Factory for creating new instances
|
|
23978
24503
|
instance.create = function create(instanceConfig) {
|
|
@@ -24016,7 +24541,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
24016
24541
|
|
|
24017
24542
|
axios.AxiosHeaders = AxiosHeaders$1;
|
|
24018
24543
|
|
|
24019
|
-
axios.formToJSON = thing => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
24544
|
+
axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
24020
24545
|
|
|
24021
24546
|
axios.getAdapter = adapters.getAdapter;
|
|
24022
24547
|
|
|
@@ -24109,18 +24634,26 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
24109
24634
|
const API_ENDPOINTS = {
|
|
24110
24635
|
ADD_USER: '/user/add-from-partner',
|
|
24111
24636
|
VALIDATE_EMAIL: '/user/validate',
|
|
24112
|
-
GET_COUNTRIES: '/
|
|
24637
|
+
GET_COUNTRIES: '/form-library/country-list',
|
|
24113
24638
|
CHECK_MAINTENANCE: '/app-configuration/maintenance-status',
|
|
24114
|
-
GET_ORG_SIZES: '/
|
|
24115
|
-
GET_INDUSTRIES: '/
|
|
24639
|
+
GET_ORG_SIZES: '/form-library/orgsizing-list',
|
|
24640
|
+
GET_INDUSTRIES: '/form-library/industry-list',
|
|
24116
24641
|
GET_PARTNER: '/partner/get',
|
|
24117
|
-
|
|
24642
|
+
GET_PARTNER_BY_GUID: '/partner/get-by-guid',
|
|
24118
24643
|
GET_LOCALIZATION: '/localization/get',
|
|
24119
24644
|
};
|
|
24120
24645
|
|
|
24121
24646
|
class ApiService {
|
|
24122
|
-
constructor(baseUrl) {
|
|
24647
|
+
constructor(baseUrl, partnerGuid) {
|
|
24123
24648
|
this.baseUrl = baseUrl.endsWith("/") ? baseUrl.slice(0, -1) : baseUrl;
|
|
24649
|
+
this.axios = axios$1.create();
|
|
24650
|
+
this.axios.interceptors.request.use((config) => {
|
|
24651
|
+
if (partnerGuid) {
|
|
24652
|
+
config.headers.set("X-Partner-Guid", partnerGuid);
|
|
24653
|
+
}
|
|
24654
|
+
return config;
|
|
24655
|
+
});
|
|
24656
|
+
this.axiosPlain = axios$1.create();
|
|
24124
24657
|
}
|
|
24125
24658
|
getUrl(path) {
|
|
24126
24659
|
const isLocalhost = this.baseUrl.includes("localhost");
|
|
@@ -24132,7 +24665,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
24132
24665
|
*/
|
|
24133
24666
|
async addUser(user, partnerName, callingDomain) {
|
|
24134
24667
|
return new Promise((resolve, reject) => {
|
|
24135
|
-
axios
|
|
24668
|
+
this.axios
|
|
24136
24669
|
.post(this.getUrl(`${API_ENDPOINTS.ADD_USER}?partnerName=${partnerName}&callingDomain=${callingDomain}`), user)
|
|
24137
24670
|
.then((response) => {
|
|
24138
24671
|
if (response.data.isSuccess)
|
|
@@ -24150,7 +24683,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
24150
24683
|
*/
|
|
24151
24684
|
async validateEmail(email, signal) {
|
|
24152
24685
|
try {
|
|
24153
|
-
const response = await axios
|
|
24686
|
+
const response = await this.axios.get(this.getUrl(API_ENDPOINTS.VALIDATE_EMAIL), {
|
|
24154
24687
|
params: { email },
|
|
24155
24688
|
signal,
|
|
24156
24689
|
});
|
|
@@ -24175,7 +24708,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
24175
24708
|
*/
|
|
24176
24709
|
async getCountries() {
|
|
24177
24710
|
try {
|
|
24178
|
-
const response = await axios
|
|
24711
|
+
const response = await this.axios.get(this.getUrl(API_ENDPOINTS.GET_COUNTRIES));
|
|
24179
24712
|
// Handle both wrapped and unwrapped responses
|
|
24180
24713
|
if (response.data.isSuccess !== undefined) {
|
|
24181
24714
|
// Wrapped response from your API
|
|
@@ -24212,7 +24745,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
24212
24745
|
*/
|
|
24213
24746
|
async checkMaintenanceStatus() {
|
|
24214
24747
|
try {
|
|
24215
|
-
const response = await axios
|
|
24748
|
+
const response = await this.axios.get(this.getUrl(API_ENDPOINTS.CHECK_MAINTENANCE));
|
|
24216
24749
|
if (response.data.isSuccess) {
|
|
24217
24750
|
return response.data.data;
|
|
24218
24751
|
}
|
|
@@ -24230,7 +24763,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
24230
24763
|
*/
|
|
24231
24764
|
async getOrgSizes() {
|
|
24232
24765
|
try {
|
|
24233
|
-
const response = await axios
|
|
24766
|
+
const response = await this.axios.get(this.getUrl(API_ENDPOINTS.GET_ORG_SIZES));
|
|
24234
24767
|
if (response.data.isSuccess) {
|
|
24235
24768
|
// Map from your API format (lowerBound/upperBound) to library format (sizeLowerBound/sizeUpperBound)
|
|
24236
24769
|
return response.data.data.map((size) => ({
|
|
@@ -24258,7 +24791,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
24258
24791
|
*/
|
|
24259
24792
|
async getIndustries() {
|
|
24260
24793
|
try {
|
|
24261
|
-
const response = await axios
|
|
24794
|
+
const response = await this.axios.get(this.getUrl(API_ENDPOINTS.GET_INDUSTRIES));
|
|
24262
24795
|
if (response.data.isSuccess) {
|
|
24263
24796
|
// Your API already returns { id, name } format
|
|
24264
24797
|
return response.data.data;
|
|
@@ -24287,7 +24820,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
24287
24820
|
domain = domain.replace(/^(https?:\/\/)/, "");
|
|
24288
24821
|
// Remove www. prefix if present (but keep port)
|
|
24289
24822
|
domain = domain.replace(/^www\./, "");
|
|
24290
|
-
const response = await axios
|
|
24823
|
+
const response = await this.axios.get(this.getUrl(API_ENDPOINTS.GET_PARTNER), {
|
|
24291
24824
|
params: { domain },
|
|
24292
24825
|
});
|
|
24293
24826
|
if (response.data.isSuccess) {
|
|
@@ -24308,10 +24841,10 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
24308
24841
|
* Get partner by name
|
|
24309
24842
|
* Extracts name from the baseUrl automatically and cleans it
|
|
24310
24843
|
*/
|
|
24311
|
-
async
|
|
24844
|
+
async getPartnerByGuid(partnerGuid) {
|
|
24312
24845
|
try {
|
|
24313
|
-
const response = await
|
|
24314
|
-
params: {
|
|
24846
|
+
const response = await this.axiosPlain.get(this.getUrl(API_ENDPOINTS.GET_PARTNER_BY_GUID), {
|
|
24847
|
+
params: { guid: partnerGuid },
|
|
24315
24848
|
});
|
|
24316
24849
|
if (response.data.isSuccess) {
|
|
24317
24850
|
return response.data.data;
|
|
@@ -24332,7 +24865,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
24332
24865
|
*/
|
|
24333
24866
|
async getFormScreenLocalization(languageCode, partnerId) {
|
|
24334
24867
|
try {
|
|
24335
|
-
const response = await axios
|
|
24868
|
+
const response = await this.axios.get(this.getUrl(`${API_ENDPOINTS.GET_LOCALIZATION}/${languageCode}/FormScreen/${partnerId}`));
|
|
24336
24869
|
if (response.data.isSuccess) {
|
|
24337
24870
|
return response.data.data;
|
|
24338
24871
|
}
|
|
@@ -30970,11 +31503,11 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
30970
31503
|
*/
|
|
30971
31504
|
var AnimationClassNames = buildClassMap(AnimationStyles);
|
|
30972
31505
|
|
|
30973
|
-
var FLUENT_CDN_BASE_URL = 'https://res.cdn.office.net/files/fabric-cdn-
|
|
31506
|
+
var FLUENT_CDN_BASE_URL = 'https://res.cdn.office.net/files/fabric-cdn-prod_20260115.001';
|
|
30974
31507
|
|
|
30975
31508
|
// Do not modify this file; it is generated as part of publish.
|
|
30976
31509
|
// The checked in version is a placeholder only and will not be updated.
|
|
30977
|
-
setVersion('@fluentui/style-utilities', '8.
|
|
31510
|
+
setVersion('@fluentui/style-utilities', '8.15.0');
|
|
30978
31511
|
|
|
30979
31512
|
initializeThemeInCustomizations();
|
|
30980
31513
|
|
|
@@ -48132,7 +48665,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
48132
48665
|
|
|
48133
48666
|
// Do not modify this file; it is generated as part of publish.
|
|
48134
48667
|
// The checked in version is a placeholder only and will not be updated.
|
|
48135
|
-
setVersion('@fluentui/font-icons-mdl2', '8.5.
|
|
48668
|
+
setVersion('@fluentui/font-icons-mdl2', '8.5.72');
|
|
48136
48669
|
|
|
48137
48670
|
var DEFAULT_BASE_URL = "".concat(FLUENT_CDN_BASE_URL, "/assets/icons/");
|
|
48138
48671
|
var win = getWindow();
|
|
@@ -48160,6 +48693,15 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
48160
48693
|
padding: '5% 10%',
|
|
48161
48694
|
},
|
|
48162
48695
|
},
|
|
48696
|
+
thankyouTopWrapper: {
|
|
48697
|
+
display: 'flex',
|
|
48698
|
+
flexDirection: 'column',
|
|
48699
|
+
alignItems: 'center',
|
|
48700
|
+
padding: '5% 15%',
|
|
48701
|
+
'@media (max-width: 768px)': {
|
|
48702
|
+
padding: '5% 10%',
|
|
48703
|
+
},
|
|
48704
|
+
},
|
|
48163
48705
|
formWrapper: {
|
|
48164
48706
|
backgroundColor: '#fff',
|
|
48165
48707
|
minWidth: '600px',
|
|
@@ -49694,9 +50236,9 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
49694
50236
|
const mergedConfig = useFormConfig(config);
|
|
49695
50237
|
// Stable service used only for partner lookup (works with relative URLs)
|
|
49696
50238
|
const initCheckUrl = mergedConfig.apiBaseUrl || "https://portal.selfserviceassessment.com";
|
|
49697
|
-
const partnerApiService = reactExports.useMemo(() => new ApiService(initCheckUrl), [initCheckUrl]);
|
|
50239
|
+
const partnerApiService = reactExports.useMemo(() => new ApiService(initCheckUrl, mergedConfig.partnerGuid), [initCheckUrl, mergedConfig.partnerGuid]);
|
|
49698
50240
|
// Main service uses the partner's own domain once loaded
|
|
49699
|
-
const apiService = reactExports.useMemo(() => new ApiService(partnerData?.domain ? new URL(`https://${partnerData?.domain}`).toString() : ""), [partnerData?.domain]);
|
|
50241
|
+
const apiService = reactExports.useMemo(() => new ApiService(partnerData?.domain ? new URL(`https://${partnerData?.domain}`).toString() : "", mergedConfig.partnerGuid), [partnerData?.domain, mergedConfig.partnerGuid]);
|
|
49700
50242
|
const styles = reactExports.useMemo(() => createFormStyles(mergedConfig.theme?.primaryColor || colorWidget?.column1, mergedConfig.theme?.fonts, mergedConfig.theme?.backgroundColor), [mergedConfig.theme?.primaryColor, mergedConfig.theme?.fonts, mergedConfig.theme?.backgroundColor, colorWidget?.column1]);
|
|
49701
50243
|
const [isRegistering, setIsRegistering] = reactExports.useState(false);
|
|
49702
50244
|
const [performByPartner, setPerformByPartner] = reactExports.useState(false);
|
|
@@ -49753,7 +50295,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
49753
50295
|
reactExports.useEffect(() => {
|
|
49754
50296
|
setIsLoadingPartner(true);
|
|
49755
50297
|
partnerApiService
|
|
49756
|
-
.
|
|
50298
|
+
.getPartnerByGuid(mergedConfig.partnerGuid)
|
|
49757
50299
|
.then((partner) => {
|
|
49758
50300
|
partner ? setPartnerData(partner) : setPartnerLoadFailed(true);
|
|
49759
50301
|
})
|
|
@@ -49764,7 +50306,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
49764
50306
|
.finally(() => {
|
|
49765
50307
|
setIsLoadingPartner(false);
|
|
49766
50308
|
});
|
|
49767
|
-
}, [mergedConfig.
|
|
50309
|
+
}, [mergedConfig.partnerGuid, partnerApiService]);
|
|
49768
50310
|
// Step 2: Load remaining data once partnerData is available
|
|
49769
50311
|
reactExports.useEffect(() => {
|
|
49770
50312
|
if (!partnerData)
|
|
@@ -49971,7 +50513,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
49971
50513
|
if (finalStep) {
|
|
49972
50514
|
// Default success screen
|
|
49973
50515
|
return (React.createElement("div", { className: styles.mainContainer },
|
|
49974
|
-
React.createElement("div", { className: styles.
|
|
50516
|
+
React.createElement("div", { className: styles.thankyouTopWrapper },
|
|
49975
50517
|
React.createElement("div", { className: styles.finalStepContainer },
|
|
49976
50518
|
React.createElement("div", { className: styles.textBlock },
|
|
49977
50519
|
React.createElement("div", { style: {
|