@revotech-group/revotech-ui-kit 0.0.97 → 0.0.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/rtg-ui-kit.js
CHANGED
|
@@ -12768,18 +12768,19 @@ let it = class extends h {
|
|
|
12768
12768
|
}
|
|
12769
12769
|
}
|
|
12770
12770
|
handleInputChange(e) {
|
|
12771
|
+
var s;
|
|
12771
12772
|
const t = e.target;
|
|
12772
12773
|
if (new RegExp(/^\d+$/).test(t.value)) {
|
|
12773
|
-
const
|
|
12774
|
-
if (
|
|
12775
|
-
let
|
|
12776
|
-
(
|
|
12774
|
+
const r = this._inputOtp;
|
|
12775
|
+
if (r) {
|
|
12776
|
+
let n = r.inputes.findIndex(
|
|
12777
|
+
(i) => i.index === this.index
|
|
12777
12778
|
);
|
|
12778
|
-
|
|
12779
|
-
...
|
|
12779
|
+
r.inputes[n] = {
|
|
12780
|
+
...r.inputes[n],
|
|
12780
12781
|
value: t.value,
|
|
12781
12782
|
isSelected: !1
|
|
12782
|
-
}, r + 1 <
|
|
12783
|
+
}, (s = r.checkIfCompleteAndSubmit) == null || s.call(r), n + 1 < r.inputes.length && r.raiseEvent(n + 1, "changes");
|
|
12783
12784
|
}
|
|
12784
12785
|
} else
|
|
12785
12786
|
t.value = "";
|
|
@@ -13014,6 +13015,16 @@ let at = class extends h {
|
|
|
13014
13015
|
updated(e) {
|
|
13015
13016
|
e.has("variant") && this.applyVariantStyles();
|
|
13016
13017
|
}
|
|
13018
|
+
checkIfCompleteAndSubmit() {
|
|
13019
|
+
if (this.inputes.every((t) => t.value !== "")) {
|
|
13020
|
+
const t = this.inputes.map((s) => s.value).join(""), o = new CustomEvent("otp-complete", {
|
|
13021
|
+
detail: { value: t },
|
|
13022
|
+
bubbles: !0,
|
|
13023
|
+
composed: !0
|
|
13024
|
+
});
|
|
13025
|
+
this.dispatchEvent(o);
|
|
13026
|
+
}
|
|
13027
|
+
}
|
|
13017
13028
|
applyVariantStyles() {
|
|
13018
13029
|
const e = this.querySelectorAll("rtg-input-otp-group");
|
|
13019
13030
|
switch (e.forEach((t) => {
|
|
@@ -13022,11 +13033,6 @@ let at = class extends h {
|
|
|
13022
13033
|
case "with-spacing":
|
|
13023
13034
|
e.forEach((t) => t.classList.add("rtg-gap-2"));
|
|
13024
13035
|
break;
|
|
13025
|
-
case "with-separator":
|
|
13026
|
-
break;
|
|
13027
|
-
case "combined":
|
|
13028
|
-
e.forEach((t) => t.classList.add("rtg-gap-2"));
|
|
13029
|
-
break;
|
|
13030
13036
|
}
|
|
13031
13037
|
}
|
|
13032
13038
|
render() {
|
|
@@ -15361,7 +15367,7 @@ function vv() {
|
|
|
15361
15367
|
);
|
|
15362
15368
|
}, O.useTransition = function() {
|
|
15363
15369
|
return M.H.useTransition();
|
|
15364
|
-
}, O.version = "19.1.
|
|
15370
|
+
}, O.version = "19.1.0", O;
|
|
15365
15371
|
}
|
|
15366
15372
|
var Yt = { exports: {} };
|
|
15367
15373
|
/**
|
|
@@ -15844,14 +15850,11 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
15844
15850
|
return null;
|
|
15845
15851
|
};
|
|
15846
15852
|
ae = {
|
|
15847
|
-
|
|
15853
|
+
"react-stack-bottom-frame": function(a) {
|
|
15848
15854
|
return a();
|
|
15849
15855
|
}
|
|
15850
15856
|
};
|
|
15851
|
-
var po, go, ho = {}, Ii = ae.
|
|
15852
|
-
ae,
|
|
15853
|
-
H
|
|
15854
|
-
)(), Ti = uo(T(H)), vo = !1, fo = /\/+/g, mo = typeof reportError == "function" ? reportError : function(a) {
|
|
15857
|
+
var po, go, ho = {}, Ii = ae["react-stack-bottom-frame"].bind(ae, H)(), Ti = uo(T(H)), vo = !1, fo = /\/+/g, mo = typeof reportError == "function" ? reportError : function(a) {
|
|
15855
15858
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
15856
15859
|
var u = new window.ErrorEvent("error", {
|
|
15857
15860
|
bubbles: !0,
|
|
@@ -16194,7 +16197,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
16194
16197
|
);
|
|
16195
16198
|
}, t.useTransition = function() {
|
|
16196
16199
|
return F().useTransition();
|
|
16197
|
-
}, t.version = "19.1.
|
|
16200
|
+
}, t.version = "19.1.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
16198
16201
|
}();
|
|
16199
16202
|
}(Yt, Yt.exports)), Yt.exports;
|
|
16200
16203
|
}
|
package/dist/rtg-ui-kit.umd.cjs
CHANGED
|
@@ -4423,7 +4423,7 @@ body {
|
|
|
4423
4423
|
class="${p(cd,this.className)}"
|
|
4424
4424
|
?disable="${this.disabled}"
|
|
4425
4425
|
></div>
|
|
4426
|
-
`}},Pe([l.property({type:Boolean})],o.ToggleGroup.prototype,"disabled",2),Pe([l.property({type:String})],o.ToggleGroup.prototype,"type",2),Pe([l.property({attribute:!0,type:Boolean,reflect:!0})],o.ToggleGroup.prototype,"required",2),Pe([l.property({attribute:!0,type:String,reflect:!0})],o.ToggleGroup.prototype,"variant",2),Pe([l.property({attribute:!0,type:String})],o.ToggleGroup.prototype,"size",2),Pe([l.property({type:Array})],o.ToggleGroup.prototype,"selectedItems",2),o.ToggleGroup=Pe([l.customElement("rtg-toggle-group")],o.ToggleGroup);var hd=Object.defineProperty,md=Object.getOwnPropertyDescriptor,Fe=(i,e,r,n)=>{for(var t=n>1?void 0:n?md(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&hd(e,r,t),t};o.InputOtpSlot=class extends h{constructor(){super(...arguments),this.click=()=>{},this.index=0,this.isFirst=!1,this.isLast=!1,this.value=""}get _inputOtp(){let e=this.parentElement;for(;e&&!(e instanceof o.InputOtp);)e=e.parentElement;return e}firstUpdated(e){const r=this._inputOtp;r&&(r.inputes.push({index:r.inputes.length,value:"",isSelected:!1,userIndex:this.index}),r.addEventListener("selected-input",n=>{const t=this.querySelector(`input[name="input-${n.detail.selectedItems}"]`);t&&(t.focus(),n.detail.eventType==="changes"&&(t.value=""))}))}disconnectedCallback(){super.disconnectedCallback(),this._inputOtp&&this._inputOtp.removeEventListener("selected-input",()=>{})}getAttributesToExclude(){return[]}handleFocus(e){const r=this._inputOtp;if(!r)return;const n=r.inputes.findIndex(a=>a.value===""),t=this.index;if(n!==-1&&t>n){e.preventDefault(),e.stopImmediatePropagation();const a=n;r.raiseEvent(a,"focus")}}handleInputChange(e){const r=e.target;if(new RegExp(/^\d+$/).test(r.value)){const
|
|
4426
|
+
`}},Pe([l.property({type:Boolean})],o.ToggleGroup.prototype,"disabled",2),Pe([l.property({type:String})],o.ToggleGroup.prototype,"type",2),Pe([l.property({attribute:!0,type:Boolean,reflect:!0})],o.ToggleGroup.prototype,"required",2),Pe([l.property({attribute:!0,type:String,reflect:!0})],o.ToggleGroup.prototype,"variant",2),Pe([l.property({attribute:!0,type:String})],o.ToggleGroup.prototype,"size",2),Pe([l.property({type:Array})],o.ToggleGroup.prototype,"selectedItems",2),o.ToggleGroup=Pe([l.customElement("rtg-toggle-group")],o.ToggleGroup);var hd=Object.defineProperty,md=Object.getOwnPropertyDescriptor,Fe=(i,e,r,n)=>{for(var t=n>1?void 0:n?md(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&hd(e,r,t),t};o.InputOtpSlot=class extends h{constructor(){super(...arguments),this.click=()=>{},this.index=0,this.isFirst=!1,this.isLast=!1,this.value=""}get _inputOtp(){let e=this.parentElement;for(;e&&!(e instanceof o.InputOtp);)e=e.parentElement;return e}firstUpdated(e){const r=this._inputOtp;r&&(r.inputes.push({index:r.inputes.length,value:"",isSelected:!1,userIndex:this.index}),r.addEventListener("selected-input",n=>{const t=this.querySelector(`input[name="input-${n.detail.selectedItems}"]`);t&&(t.focus(),n.detail.eventType==="changes"&&(t.value=""))}))}disconnectedCallback(){super.disconnectedCallback(),this._inputOtp&&this._inputOtp.removeEventListener("selected-input",()=>{})}getAttributesToExclude(){return[]}handleFocus(e){const r=this._inputOtp;if(!r)return;const n=r.inputes.findIndex(a=>a.value===""),t=this.index;if(n!==-1&&t>n){e.preventDefault(),e.stopImmediatePropagation();const a=n;r.raiseEvent(a,"focus")}}handleInputChange(e){var t;const r=e.target;if(new RegExp(/^\d+$/).test(r.value)){const a=this._inputOtp;if(a){let s=a.inputes.findIndex(m=>m.index===this.index);a.inputes[s]={...a.inputes[s],value:r.value,isSelected:!1},(t=a.checkIfCompleteAndSubmit)==null||t.call(a),s+1<a.inputes.length&&a.raiseEvent(s+1,"changes")}}else r.value=""}handleKeyDown(e){const r=e.target,n=this._inputOtp;if(!n)return;const t=n.inputes.findIndex(a=>a.index===this.index);switch(e.key){case"Backspace":{e.preventDefault();const a=r.value==="",s=n.inputes.find(w=>w.value===""),m=s!==void 0?n.inputes.indexOf(s):n.inputes.length;if(a&&t>=m){t>0&&n.raiseEvent(t-1,"focus");return}n.inputes[t].value="",r.value="";for(let w=t;w<n.inputes.length-1;w++){n.inputes[w].value=n.inputes[w+1].value;const x=n.querySelector(`input[name="input-${n.inputes[w].index}"]`);x&&(x.value=n.inputes[w].value)}const C=n.inputes[n.inputes.length-1];C.value="";const b=n.querySelector(`input[name="input-${C.index}"]`);b&&(b.value=""),n.raiseEvent(t,"focus");break}case"ArrowLeft":e.preventDefault(),t>0&&n.raiseEvent(t-1,"focus");break;case"ArrowRight":e.preventDefault(),t<n.maxLength-1&&n.raiseEvent(t+1,"focus");break}}handlePaste(e){var C;e.preventDefault();const r=this._inputOtp;if(!r)return;const t=(((C=e.clipboardData)==null?void 0:C.getData("text"))??"").replace(/\D/g,"").split("").slice(0);if(t.length===0)return;const a=r.inputes.findIndex(b=>b.index===this.index),s=r.maxLength-a;t.splice(s);for(let b=0;b<t.length;b++){const w=a+b;if(w>=r.maxLength)break;r.inputes[w].value=t[b];const x=r.querySelector(`input[name="input-${w}"]`);x&&(x.value=t[b])}const m=a+t.length;m<r.maxLength&&r.raiseEvent(m,"focus")}createRenderRoot(){return this}render(){const e=this._inputOtp,r=(e==null?void 0:e.variant)==="with-spacing",n=(e==null?void 0:e.variant)==="combined",t={"rtg-bg-transparent":!0,"rtg-h-[36px]":!0,"rtg-w-[36px]":!0,"rtg-text-center rtg-relative rtg-flex rtg-h-10 rtg-w-10 rtg-items-center rtg-justify-center rtg-border-y rtg-border-r rtg-border-input rtg-text-sm rtg-transition-all":!0,"first:rtg-rounded-l-md first:rtg-border-l":this.isFirst,"rtg-overflow-hidden":!0,"focus:rtg-border focus:rtg-border-input focus:rtg-border-[3px]":!0,"rtg-border":r||n,"rtg-border-t":!r||n,"rtg-border-b":!r||n,"rtg-border-r":!r||n,"rtg-border-l":this.isFirst||r||n,"first:rtg-rounded-l-md":!0,"last:rtg-rounded-r-md":!0,"rtg-rounded-none":(e==null?void 0:e.variant)==="with-separator"||(e==null?void 0:e.variant)==="combined","rtg-rounded-l-md":this.isFirst&&((e==null?void 0:e.variant)==="default"||(e==null?void 0:e.variant)==="with-spacing"),"rtg-rounded-r-md":this.isLast&&((e==null?void 0:e.variant)==="default"||(e==null?void 0:e.variant)==="with-spacing")};return d.html`
|
|
4427
4427
|
<input
|
|
4428
4428
|
part="input-otp-slot"
|
|
4429
4429
|
auto-complete="one-time-code"
|
|
@@ -4452,7 +4452,7 @@ body {
|
|
|
4452
4452
|
>
|
|
4453
4453
|
${fi()}
|
|
4454
4454
|
</div>
|
|
4455
|
-
`}},an([l.property({type:Number})],o.InputOtpSeparator.prototype,"index",2),o.InputOtpSeparator=an([l.customElement("rtg-input-otp-separator")],o.InputOtpSeparator);var wd=Object.defineProperty,Cd=Object.getOwnPropertyDescriptor,rt=(i,e,r,n)=>{for(var t=n>1?void 0:n?Cd(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&wd(e,r,t),t};o.InputOtp=class extends h{constructor(){super(),this.maxLength=6,this.onChange=()=>{},this.pin=new Array(this.maxLength),this.variant="default",this.inputes=[]}connectedCallback(){super.connectedCallback()}getAttributesToExclude(){return[]}get _containerElement(){return this.querySelector("div[part=input-otp]")}raiseEvent(e,r="changes",n=1/0){const t=new CustomEvent("selected-input",{bubbles:!0,composed:!0,detail:{selectedItems:e,eventType:r,customIndex:n}});this.dispatchEvent(t)}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement),this.applyVariantStyles()}updated(e){e.has("variant")&&this.applyVariantStyles()}applyVariantStyles(){const e=this.querySelectorAll("rtg-input-otp-group");switch(e.forEach(r=>{r.className="",r.classList.add("rtg-flex","rtg-items-center")}),this.variant){case"with-spacing":e.forEach(r=>r.classList.add("rtg-gap-2"));break
|
|
4455
|
+
`}},an([l.property({type:Number})],o.InputOtpSeparator.prototype,"index",2),o.InputOtpSeparator=an([l.customElement("rtg-input-otp-separator")],o.InputOtpSeparator);var wd=Object.defineProperty,Cd=Object.getOwnPropertyDescriptor,rt=(i,e,r,n)=>{for(var t=n>1?void 0:n?Cd(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&wd(e,r,t),t};o.InputOtp=class extends h{constructor(){super(),this.maxLength=6,this.onChange=()=>{},this.pin=new Array(this.maxLength),this.variant="default",this.inputes=[]}connectedCallback(){super.connectedCallback()}getAttributesToExclude(){return[]}get _containerElement(){return this.querySelector("div[part=input-otp]")}raiseEvent(e,r="changes",n=1/0){const t=new CustomEvent("selected-input",{bubbles:!0,composed:!0,detail:{selectedItems:e,eventType:r,customIndex:n}});this.dispatchEvent(t)}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement),this.applyVariantStyles()}updated(e){e.has("variant")&&this.applyVariantStyles()}checkIfCompleteAndSubmit(){if(this.inputes.every(r=>r.value!=="")){const r=this.inputes.map(t=>t.value).join(""),n=new CustomEvent("otp-complete",{detail:{value:r},bubbles:!0,composed:!0});this.dispatchEvent(n)}}applyVariantStyles(){const e=this.querySelectorAll("rtg-input-otp-group");switch(e.forEach(r=>{r.className="",r.classList.add("rtg-flex","rtg-items-center")}),this.variant){case"with-spacing":e.forEach(r=>r.classList.add("rtg-gap-2"));break}}render(){return d.html`
|
|
4456
4456
|
<div
|
|
4457
4457
|
part="input-otp"
|
|
4458
4458
|
class="${p("rtg-flex rtg-items-center",this.className)}"
|
|
@@ -4934,7 +4934,7 @@ body {
|
|
|
4934
4934
|
*
|
|
4935
4935
|
* This source code is licensed under the MIT license found in the
|
|
4936
4936
|
* LICENSE file in the root directory of this source tree.
|
|
4937
|
-
*/var fn;function gg(){if(fn)return O;fn=1;var i=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),t=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),x=Symbol.iterator;function N(u){return u===null||typeof u!="object"?null:(u=x&&u[x]||u["@@iterator"],typeof u=="function"?u:null)}var F={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,q={};function P(u,v,$){this.props=u,this.context=v,this.refs=q,this.updater=$||F}P.prototype.isReactComponent={},P.prototype.setState=function(u,v){if(typeof u!="object"&&typeof u!="function"&&u!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,u,v,"setState")},P.prototype.forceUpdate=function(u){this.updater.enqueueForceUpdate(this,u,"forceUpdate")};function L(){}L.prototype=P.prototype;function W(u,v,$){this.props=u,this.context=v,this.refs=q,this.updater=$||F}var j=W.prototype=new L;j.constructor=W,M(j,P.prototype),j.isPureReactComponent=!0;var ee=Array.isArray,B={H:null,A:null,T:null,S:null,V:null},fe=Object.prototype.hasOwnProperty;function be(u,v,$,E,A,Y){return $=Y.ref,{$$typeof:i,type:u,key:v,ref:$!==void 0?$:null,props:Y}}function ae(u,v){return be(u.type,v,void 0,void 0,void 0,u.props)}function te(u){return typeof u=="object"&&u!==null&&u.$$typeof===i}function Ie(u){var v={"=":"=0",":":"=2"};return"$"+u.replace(/[=:]/g,function($){return v[$]})}var G=/\/+/g;function U(u,v){return typeof u=="object"&&u!==null&&u.key!=null?Ie(""+u.key):v.toString(36)}function ce(){}function re(u){switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:switch(typeof u.status=="string"?u.then(ce,ce):(u.status="pending",u.then(function(v){u.status==="pending"&&(u.status="fulfilled",u.value=v)},function(v){u.status==="pending"&&(u.status="rejected",u.reason=v)})),u.status){case"fulfilled":return u.value;case"rejected":throw u.reason}}throw u}function X(u,v,$,E,A){var Y=typeof u;(Y==="undefined"||Y==="boolean")&&(u=null);var R=!1;if(u===null)R=!0;else switch(Y){case"bigint":case"string":case"number":R=!0;break;case"object":switch(u.$$typeof){case i:case e:R=!0;break;case w:return R=u._init,X(R(u._payload),v,$,E,A)}}if(R)return A=A(u),R=E===""?"."+U(u,0):E,ee(A)?($="",R!=null&&($=R.replace(G,"$&/")+"/"),X(A,v,$,"",function(Ye){return Ye})):A!=null&&(te(A)&&(A=ae(A,$+(A.key==null||u&&u.key===A.key?"":(""+A.key).replace(G,"$&/")+"/")+R)),v.push(A)),1;R=0;var ge=E===""?".":E+":";if(ee(u))for(var K=0;K<u.length;K++)E=u[K],Y=ge+U(E,K),R+=X(E,v,$,Y,A);else if(K=N(u),typeof K=="function")for(u=K.call(u),K=0;!(E=u.next()).done;)E=E.value,Y=ge+U(E,K++),R+=X(E,v,$,Y,A);else if(Y==="object"){if(typeof u.then=="function")return X(re(u),v,$,E,A);throw v=String(u),Error("Objects are not valid as a React child (found: "+(v==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":v)+"). If you meant to render a collection of children, use an array instead.")}return R}function Z(u,v,$){if(u==null)return u;var E=[],A=0;return X(u,E,"","",function(Y){return v.call($,Y,A++)}),E}function ye(u){if(u._status===-1){var v=u._result;v=v(),v.then(function($){(u._status===0||u._status===-1)&&(u._status=1,u._result=$)},function($){(u._status===0||u._status===-1)&&(u._status=2,u._result=$)}),u._status===-1&&(u._status=0,u._result=v)}if(u._status===1)return u._result.default;throw u._result}var de=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var v=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof u=="object"&&u!==null&&typeof u.message=="string"?String(u.message):String(u),error:u});if(!window.dispatchEvent(v))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)};function ue(){}return O.Children={map:Z,forEach:function(u,v,$){Z(u,function(){v.apply(this,arguments)},$)},count:function(u){var v=0;return Z(u,function(){v++}),v},toArray:function(u){return Z(u,function(v){return v})||[]},only:function(u){if(!te(u))throw Error("React.Children.only expected to receive a single React element child.");return u}},O.Component=P,O.Fragment=r,O.Profiler=t,O.PureComponent=W,O.StrictMode=n,O.Suspense=C,O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,O.__COMPILER_RUNTIME={__proto__:null,c:function(u){return B.H.useMemoCache(u)}},O.cache=function(u){return function(){return u.apply(null,arguments)}},O.cloneElement=function(u,v,$){if(u==null)throw Error("The argument must be a React element, but you passed "+u+".");var E=M({},u.props),A=u.key,Y=void 0;if(v!=null)for(R in v.ref!==void 0&&(Y=void 0),v.key!==void 0&&(A=""+v.key),v)!fe.call(v,R)||R==="key"||R==="__self"||R==="__source"||R==="ref"&&v.ref===void 0||(E[R]=v[R]);var R=arguments.length-2;if(R===1)E.children=$;else if(1<R){for(var ge=Array(R),K=0;K<R;K++)ge[K]=arguments[K+2];E.children=ge}return be(u.type,A,void 0,void 0,Y,E)},O.createContext=function(u){return u={$$typeof:s,_currentValue:u,_currentValue2:u,_threadCount:0,Provider:null,Consumer:null},u.Provider=u,u.Consumer={$$typeof:a,_context:u},u},O.createElement=function(u,v,$){var E,A={},Y=null;if(v!=null)for(E in v.key!==void 0&&(Y=""+v.key),v)fe.call(v,E)&&E!=="key"&&E!=="__self"&&E!=="__source"&&(A[E]=v[E]);var R=arguments.length-2;if(R===1)A.children=$;else if(1<R){for(var ge=Array(R),K=0;K<R;K++)ge[K]=arguments[K+2];A.children=ge}if(u&&u.defaultProps)for(E in R=u.defaultProps,R)A[E]===void 0&&(A[E]=R[E]);return be(u,Y,void 0,void 0,null,A)},O.createRef=function(){return{current:null}},O.forwardRef=function(u){return{$$typeof:m,render:u}},O.isValidElement=te,O.lazy=function(u){return{$$typeof:w,_payload:{_status:-1,_result:u},_init:ye}},O.memo=function(u,v){return{$$typeof:b,type:u,compare:v===void 0?null:v}},O.startTransition=function(u){var v=B.T,$={};B.T=$;try{var E=u(),A=B.S;A!==null&&A($,E),typeof E=="object"&&E!==null&&typeof E.then=="function"&&E.then(ue,de)}catch(Y){de(Y)}finally{B.T=v}},O.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},O.use=function(u){return B.H.use(u)},O.useActionState=function(u,v,$){return B.H.useActionState(u,v,$)},O.useCallback=function(u,v){return B.H.useCallback(u,v)},O.useContext=function(u){return B.H.useContext(u)},O.useDebugValue=function(){},O.useDeferredValue=function(u,v){return B.H.useDeferredValue(u,v)},O.useEffect=function(u,v,$){var E=B.H;if(typeof $=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return E.useEffect(u,v)},O.useId=function(){return B.H.useId()},O.useImperativeHandle=function(u,v,$){return B.H.useImperativeHandle(u,v,$)},O.useInsertionEffect=function(u,v){return B.H.useInsertionEffect(u,v)},O.useLayoutEffect=function(u,v){return B.H.useLayoutEffect(u,v)},O.useMemo=function(u,v){return B.H.useMemo(u,v)},O.useOptimistic=function(u,v){return B.H.useOptimistic(u,v)},O.useReducer=function(u,v,$){return B.H.useReducer(u,v,$)},O.useRef=function(u){return B.H.useRef(u)},O.useState=function(u){return B.H.useState(u)},O.useSyncExternalStore=function(u,v,$){return B.H.useSyncExternalStore(u,v,$)},O.useTransition=function(){return B.H.useTransition()},O.version="19.1.
|
|
4937
|
+
*/var fn;function gg(){if(fn)return O;fn=1;var i=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),t=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),x=Symbol.iterator;function N(u){return u===null||typeof u!="object"?null:(u=x&&u[x]||u["@@iterator"],typeof u=="function"?u:null)}var F={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,q={};function P(u,v,$){this.props=u,this.context=v,this.refs=q,this.updater=$||F}P.prototype.isReactComponent={},P.prototype.setState=function(u,v){if(typeof u!="object"&&typeof u!="function"&&u!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,u,v,"setState")},P.prototype.forceUpdate=function(u){this.updater.enqueueForceUpdate(this,u,"forceUpdate")};function L(){}L.prototype=P.prototype;function W(u,v,$){this.props=u,this.context=v,this.refs=q,this.updater=$||F}var j=W.prototype=new L;j.constructor=W,M(j,P.prototype),j.isPureReactComponent=!0;var ee=Array.isArray,B={H:null,A:null,T:null,S:null,V:null},fe=Object.prototype.hasOwnProperty;function be(u,v,$,E,A,Y){return $=Y.ref,{$$typeof:i,type:u,key:v,ref:$!==void 0?$:null,props:Y}}function ae(u,v){return be(u.type,v,void 0,void 0,void 0,u.props)}function te(u){return typeof u=="object"&&u!==null&&u.$$typeof===i}function Ie(u){var v={"=":"=0",":":"=2"};return"$"+u.replace(/[=:]/g,function($){return v[$]})}var G=/\/+/g;function U(u,v){return typeof u=="object"&&u!==null&&u.key!=null?Ie(""+u.key):v.toString(36)}function ce(){}function re(u){switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:switch(typeof u.status=="string"?u.then(ce,ce):(u.status="pending",u.then(function(v){u.status==="pending"&&(u.status="fulfilled",u.value=v)},function(v){u.status==="pending"&&(u.status="rejected",u.reason=v)})),u.status){case"fulfilled":return u.value;case"rejected":throw u.reason}}throw u}function X(u,v,$,E,A){var Y=typeof u;(Y==="undefined"||Y==="boolean")&&(u=null);var R=!1;if(u===null)R=!0;else switch(Y){case"bigint":case"string":case"number":R=!0;break;case"object":switch(u.$$typeof){case i:case e:R=!0;break;case w:return R=u._init,X(R(u._payload),v,$,E,A)}}if(R)return A=A(u),R=E===""?"."+U(u,0):E,ee(A)?($="",R!=null&&($=R.replace(G,"$&/")+"/"),X(A,v,$,"",function(Ye){return Ye})):A!=null&&(te(A)&&(A=ae(A,$+(A.key==null||u&&u.key===A.key?"":(""+A.key).replace(G,"$&/")+"/")+R)),v.push(A)),1;R=0;var ge=E===""?".":E+":";if(ee(u))for(var K=0;K<u.length;K++)E=u[K],Y=ge+U(E,K),R+=X(E,v,$,Y,A);else if(K=N(u),typeof K=="function")for(u=K.call(u),K=0;!(E=u.next()).done;)E=E.value,Y=ge+U(E,K++),R+=X(E,v,$,Y,A);else if(Y==="object"){if(typeof u.then=="function")return X(re(u),v,$,E,A);throw v=String(u),Error("Objects are not valid as a React child (found: "+(v==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":v)+"). If you meant to render a collection of children, use an array instead.")}return R}function Z(u,v,$){if(u==null)return u;var E=[],A=0;return X(u,E,"","",function(Y){return v.call($,Y,A++)}),E}function ye(u){if(u._status===-1){var v=u._result;v=v(),v.then(function($){(u._status===0||u._status===-1)&&(u._status=1,u._result=$)},function($){(u._status===0||u._status===-1)&&(u._status=2,u._result=$)}),u._status===-1&&(u._status=0,u._result=v)}if(u._status===1)return u._result.default;throw u._result}var de=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var v=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof u=="object"&&u!==null&&typeof u.message=="string"?String(u.message):String(u),error:u});if(!window.dispatchEvent(v))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)};function ue(){}return O.Children={map:Z,forEach:function(u,v,$){Z(u,function(){v.apply(this,arguments)},$)},count:function(u){var v=0;return Z(u,function(){v++}),v},toArray:function(u){return Z(u,function(v){return v})||[]},only:function(u){if(!te(u))throw Error("React.Children.only expected to receive a single React element child.");return u}},O.Component=P,O.Fragment=r,O.Profiler=t,O.PureComponent=W,O.StrictMode=n,O.Suspense=C,O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,O.__COMPILER_RUNTIME={__proto__:null,c:function(u){return B.H.useMemoCache(u)}},O.cache=function(u){return function(){return u.apply(null,arguments)}},O.cloneElement=function(u,v,$){if(u==null)throw Error("The argument must be a React element, but you passed "+u+".");var E=M({},u.props),A=u.key,Y=void 0;if(v!=null)for(R in v.ref!==void 0&&(Y=void 0),v.key!==void 0&&(A=""+v.key),v)!fe.call(v,R)||R==="key"||R==="__self"||R==="__source"||R==="ref"&&v.ref===void 0||(E[R]=v[R]);var R=arguments.length-2;if(R===1)E.children=$;else if(1<R){for(var ge=Array(R),K=0;K<R;K++)ge[K]=arguments[K+2];E.children=ge}return be(u.type,A,void 0,void 0,Y,E)},O.createContext=function(u){return u={$$typeof:s,_currentValue:u,_currentValue2:u,_threadCount:0,Provider:null,Consumer:null},u.Provider=u,u.Consumer={$$typeof:a,_context:u},u},O.createElement=function(u,v,$){var E,A={},Y=null;if(v!=null)for(E in v.key!==void 0&&(Y=""+v.key),v)fe.call(v,E)&&E!=="key"&&E!=="__self"&&E!=="__source"&&(A[E]=v[E]);var R=arguments.length-2;if(R===1)A.children=$;else if(1<R){for(var ge=Array(R),K=0;K<R;K++)ge[K]=arguments[K+2];A.children=ge}if(u&&u.defaultProps)for(E in R=u.defaultProps,R)A[E]===void 0&&(A[E]=R[E]);return be(u,Y,void 0,void 0,null,A)},O.createRef=function(){return{current:null}},O.forwardRef=function(u){return{$$typeof:m,render:u}},O.isValidElement=te,O.lazy=function(u){return{$$typeof:w,_payload:{_status:-1,_result:u},_init:ye}},O.memo=function(u,v){return{$$typeof:b,type:u,compare:v===void 0?null:v}},O.startTransition=function(u){var v=B.T,$={};B.T=$;try{var E=u(),A=B.S;A!==null&&A($,E),typeof E=="object"&&E!==null&&typeof E.then=="function"&&E.then(ue,de)}catch(Y){de(Y)}finally{B.T=v}},O.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},O.use=function(u){return B.H.use(u)},O.useActionState=function(u,v,$){return B.H.useActionState(u,v,$)},O.useCallback=function(u,v){return B.H.useCallback(u,v)},O.useContext=function(u){return B.H.useContext(u)},O.useDebugValue=function(){},O.useDeferredValue=function(u,v){return B.H.useDeferredValue(u,v)},O.useEffect=function(u,v,$){var E=B.H;if(typeof $=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return E.useEffect(u,v)},O.useId=function(){return B.H.useId()},O.useImperativeHandle=function(u,v,$){return B.H.useImperativeHandle(u,v,$)},O.useInsertionEffect=function(u,v){return B.H.useInsertionEffect(u,v)},O.useLayoutEffect=function(u,v){return B.H.useLayoutEffect(u,v)},O.useMemo=function(u,v){return B.H.useMemo(u,v)},O.useOptimistic=function(u,v){return B.H.useOptimistic(u,v)},O.useReducer=function(u,v,$){return B.H.useReducer(u,v,$)},O.useRef=function(u){return B.H.useRef(u)},O.useState=function(u){return B.H.useState(u)},O.useSyncExternalStore=function(u,v,$){return B.H.useSyncExternalStore(u,v,$)},O.useTransition=function(){return B.H.useTransition()},O.version="19.1.0",O}var st={exports:{}};/**
|
|
4938
4938
|
* @license React
|
|
4939
4939
|
* react.development.js
|
|
4940
4940
|
*
|
|
@@ -4954,4 +4954,4 @@ Your code should look like:
|
|
|
4954
4954
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
4955
4955
|
2. You might be breaking the Rules of Hooks
|
|
4956
4956
|
3. You might have more than one copy of React in the same app
|
|
4957
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}function U(){}function ce(c){if(yt===null)try{var g=("require"+Math.random()).slice(0,7);yt=(i&&i[g]).call(i,"timers").setImmediate}catch{yt=function(y){Tn===!1&&(Tn=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var _=new MessageChannel;_.port1.onmessage=y,_.port2.postMessage(void 0)}}return yt(c)}function re(c){return 1<c.length&&typeof AggregateError=="function"?new AggregateError(c):c[0]}function X(c,g){g!==wt-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),wt=g}function Z(c,g,f){var y=k.actQueue;if(y!==null)if(y.length!==0)try{ye(y),ce(function(){return Z(c,g,f)});return}catch(_){k.thrownErrors.push(_)}else k.actQueue=null;0<k.thrownErrors.length?(y=re(k.thrownErrors),k.thrownErrors.length=0,f(y)):g(c)}function ye(c){if(!ar){ar=!0;var g=0;try{for(;g<c.length;g++){var f=c[g];do{k.didUsePromise=!1;var y=f(!1);if(y!==null){if(k.didUsePromise){c[g]=f,c.splice(0,g);return}f=y}else break}while(!0)}c.length=0}catch(_){c.splice(0,g+1),k.thrownErrors.push(_)}finally{ar=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var de=Symbol.for("react.transitional.element"),ue=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),A=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),ge=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),Ye=Symbol.for("react.lazy"),bg=Symbol.for("react.activity"),Cn=Symbol.iterator,_n={},En={isMounted:function(){return!1},enqueueForceUpdate:function(c){t(c,"forceUpdate")},enqueueReplaceState:function(c){t(c,"replaceState")},enqueueSetState:function(c){t(c,"setState")}},xn=Object.assign,ir={};Object.freeze(ir),a.prototype.isReactComponent={},a.prototype.setState=function(c,g){if(typeof c!="object"&&typeof c!="function"&&c!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,c,g,"setState")},a.prototype.forceUpdate=function(c){this.updater.enqueueForceUpdate(this,c,"forceUpdate")};var ne={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},ft;for(ft in ne)ne.hasOwnProperty(ft)&&r(ft,ne[ft]);s.prototype=a.prototype,ne=m.prototype=new s,ne.constructor=m,xn(ne,a.prototype),ne.isPureReactComponent=!0;var $n=Array.isArray,yg=Symbol.for("react.client.reference"),k={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},bt=Object.prototype.hasOwnProperty,Sn=console.createTask?console.createTask:function(){return null};ne={react_stack_bottom_frame:function(c){return c()}};var On,Pn,Dn={},wg=ne.react_stack_bottom_frame.bind(ne,F)(),Cg=Sn(x(F)),Rn=!1,In=/\/+/g,kn=typeof reportError=="function"?reportError:function(c){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var g=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof c=="object"&&c!==null&&typeof c.message=="string"?String(c.message):String(c),error:c});if(!window.dispatchEvent(g))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",c);return}console.error(c)},Tn=!1,yt=null,wt=0,Ct=!1,ar=!1,An=typeof queueMicrotask=="function"?function(c){queueMicrotask(function(){return queueMicrotask(c)})}:ce;ne=Object.freeze({__proto__:null,c:function(c){return G().useMemoCache(c)}}),e.Children={map:te,forEach:function(c,g,f){te(c,function(){g.apply(this,arguments)},f)},count:function(c){var g=0;return te(c,function(){g++}),g},toArray:function(c){return te(c,function(g){return g})||[]},only:function(c){if(!j(c))throw Error("React.Children.only expected to receive a single React element child.");return c}},e.Component=a,e.Fragment=u,e.Profiler=$,e.PureComponent=m,e.StrictMode=v,e.Suspense=R,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,e.__COMPILER_RUNTIME=ne,e.act=function(c){var g=k.actQueue,f=wt;wt++;var y=k.actQueue=g!==null?g:[],_=!1;try{var T=c()}catch(I){k.thrownErrors.push(I)}if(0<k.thrownErrors.length)throw X(g,f),c=re(k.thrownErrors),k.thrownErrors.length=0,c;if(T!==null&&typeof T=="object"&&typeof T.then=="function"){var D=T;return An(function(){_||Ct||(Ct=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(I,we){_=!0,D.then(function(Ke){if(X(g,f),f===0){try{ye(y),ce(function(){return Z(Ke,I,we)})}catch(Eg){k.thrownErrors.push(Eg)}if(0<k.thrownErrors.length){var _g=re(k.thrownErrors);k.thrownErrors.length=0,we(_g)}}else I(Ke)},function(Ke){X(g,f),0<k.thrownErrors.length&&(Ke=re(k.thrownErrors),k.thrownErrors.length=0),we(Ke)})}}}var z=T;if(X(g,f),f===0&&(ye(y),y.length!==0&&An(function(){_||Ct||(Ct=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),k.actQueue=null),0<k.thrownErrors.length)throw c=re(k.thrownErrors),k.thrownErrors.length=0,c;return{then:function(I,we){_=!0,f===0?(k.actQueue=y,ce(function(){return Z(z,I,we)})):I(z)}}},e.cache=function(c){return function(){return c.apply(null,arguments)}},e.captureOwnerStack=function(){var c=k.getCurrentStack;return c===null?null:c()},e.cloneElement=function(c,g,f){if(c==null)throw Error("The argument must be a React element, but you passed "+c+".");var y=xn({},c.props),_=c.key,T=c._owner;if(g!=null){var D;e:{if(bt.call(g,"ref")&&(D=Object.getOwnPropertyDescriptor(g,"ref").get)&&D.isReactWarning){D=!1;break e}D=g.ref!==void 0}D&&(T=N()),M(g)&&(b(g.key),_=""+g.key);for(z in g)!bt.call(g,z)||z==="key"||z==="__self"||z==="__source"||z==="ref"&&g.ref===void 0||(y[z]=g[z])}var z=arguments.length-2;if(z===1)y.children=f;else if(1<z){D=Array(z);for(var I=0;I<z;I++)D[I]=arguments[I+2];y.children=D}for(y=L(c.type,_,void 0,void 0,T,y,c._debugStack,c._debugTask),_=2;_<arguments.length;_++)T=arguments[_],j(T)&&T._store&&(T._store.validated=1);return y},e.createContext=function(c){return c={$$typeof:A,_currentValue:c,_currentValue2:c,_threadCount:0,Provider:null,Consumer:null},c.Provider=c,c.Consumer={$$typeof:E,_context:c},c._currentRenderer=null,c._currentRenderer2=null,c},e.createElement=function(c,g,f){for(var y=2;y<arguments.length;y++){var _=arguments[y];j(_)&&_._store&&(_._store.validated=1)}if(y={},_=null,g!=null)for(I in Pn||!("__self"in g)||"key"in g||(Pn=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),M(g)&&(b(g.key),_=""+g.key),g)bt.call(g,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(y[I]=g[I]);var T=arguments.length-2;if(T===1)y.children=f;else if(1<T){for(var D=Array(T),z=0;z<T;z++)D[z]=arguments[z+2];Object.freeze&&Object.freeze(D),y.children=D}if(c&&c.defaultProps)for(I in T=c.defaultProps,T)y[I]===void 0&&(y[I]=T[I]);_&&q(y,typeof c=="function"?c.displayName||c.name||"Unknown":c);var I=1e4>k.recentlyCreatedOwnerStacks++;return L(c,_,void 0,void 0,N(),y,I?Error("react-stack-top-frame"):wg,I?Sn(x(c)):Cg)},e.createRef=function(){var c={current:null};return Object.seal(c),c},e.forwardRef=function(c){c!=null&&c.$$typeof===K?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof c!="function"?console.error("forwardRef requires a render function but was given %s.",c===null?"null":typeof c):c.length!==0&&c.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",c.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),c!=null&&c.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var g={$$typeof:Y,render:c},f;return Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(y){f=y,c.name||c.displayName||(Object.defineProperty(c,"name",{value:y}),c.displayName=y)}}),g},e.isValidElement=j,e.lazy=function(c){return{$$typeof:Ye,_payload:{_status:-1,_result:c},_init:Ie}},e.memo=function(c,g){c==null&&console.error("memo: The first argument must be a component. Instead received: %s",c===null?"null":typeof c),g={$$typeof:K,type:c,compare:g===void 0?null:g};var f;return Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(y){f=y,c.name||c.displayName||(Object.defineProperty(c,"name",{value:y}),c.displayName=y)}}),g},e.startTransition=function(c){var g=k.T,f={};k.T=f,f._updatedFibers=new Set;try{var y=c(),_=k.S;_!==null&&_(f,y),typeof y=="object"&&y!==null&&typeof y.then=="function"&&y.then(U,kn)}catch(T){kn(T)}finally{g===null&&f._updatedFibers&&(c=f._updatedFibers.size,f._updatedFibers.clear(),10<c&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),k.T=g}},e.unstable_useCacheRefresh=function(){return G().useCacheRefresh()},e.use=function(c){return G().use(c)},e.useActionState=function(c,g,f){return G().useActionState(c,g,f)},e.useCallback=function(c,g){return G().useCallback(c,g)},e.useContext=function(c){var g=G();return c.$$typeof===E&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),g.useContext(c)},e.useDebugValue=function(c,g){return G().useDebugValue(c,g)},e.useDeferredValue=function(c,g){return G().useDeferredValue(c,g)},e.useEffect=function(c,g,f){c==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var y=G();if(typeof f=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return y.useEffect(c,g)},e.useId=function(){return G().useId()},e.useImperativeHandle=function(c,g,f){return G().useImperativeHandle(c,g,f)},e.useInsertionEffect=function(c,g){return c==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),G().useInsertionEffect(c,g)},e.useLayoutEffect=function(c,g){return c==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),G().useLayoutEffect(c,g)},e.useMemo=function(c,g){return G().useMemo(c,g)},e.useOptimistic=function(c,g){return G().useOptimistic(c,g)},e.useReducer=function(c,g,f){return G().useReducer(c,g,f)},e.useRef=function(c){return G().useRef(c)},e.useState=function(c){return G().useState(c)},e.useSyncExternalStore=function(c,g,f){return G().useSyncExternalStore(c,g,f)},e.useTransition=function(){return G().useTransition()},e.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(st,st.exports)),st.exports}var yn;function hg(){return yn||(yn=1,process.env.NODE_ENV==="production"?vt.exports=gg():vt.exports=pg()),vt.exports}var mg=hg();const wn=ug(mg),vg=vn({tagName:"rtg-button",elementClass:o.Button,react:wn}),fg=vn({tagName:"rtg-checkbox",elementClass:o.Checkbox,react:wn});o.ButtonReact=vg,o.CheckboxReact=fg,o.TOGGLE_GROUP_SIZE=pt,o.TOGGLE_GROUP_TYPE=tt,o.TOGGLE_GROUP_VARIANT=gt,o.TOGGLE_SIZE=Zt,o.TOGGLE_VARIANT=Qt,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|
|
4957
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}function U(){}function ce(c){if(yt===null)try{var g=("require"+Math.random()).slice(0,7);yt=(i&&i[g]).call(i,"timers").setImmediate}catch{yt=function(y){Tn===!1&&(Tn=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var _=new MessageChannel;_.port1.onmessage=y,_.port2.postMessage(void 0)}}return yt(c)}function re(c){return 1<c.length&&typeof AggregateError=="function"?new AggregateError(c):c[0]}function X(c,g){g!==wt-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),wt=g}function Z(c,g,f){var y=k.actQueue;if(y!==null)if(y.length!==0)try{ye(y),ce(function(){return Z(c,g,f)});return}catch(_){k.thrownErrors.push(_)}else k.actQueue=null;0<k.thrownErrors.length?(y=re(k.thrownErrors),k.thrownErrors.length=0,f(y)):g(c)}function ye(c){if(!ar){ar=!0;var g=0;try{for(;g<c.length;g++){var f=c[g];do{k.didUsePromise=!1;var y=f(!1);if(y!==null){if(k.didUsePromise){c[g]=f,c.splice(0,g);return}f=y}else break}while(!0)}c.length=0}catch(_){c.splice(0,g+1),k.thrownErrors.push(_)}finally{ar=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var de=Symbol.for("react.transitional.element"),ue=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),A=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),ge=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),Ye=Symbol.for("react.lazy"),bg=Symbol.for("react.activity"),Cn=Symbol.iterator,_n={},En={isMounted:function(){return!1},enqueueForceUpdate:function(c){t(c,"forceUpdate")},enqueueReplaceState:function(c){t(c,"replaceState")},enqueueSetState:function(c){t(c,"setState")}},xn=Object.assign,ir={};Object.freeze(ir),a.prototype.isReactComponent={},a.prototype.setState=function(c,g){if(typeof c!="object"&&typeof c!="function"&&c!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,c,g,"setState")},a.prototype.forceUpdate=function(c){this.updater.enqueueForceUpdate(this,c,"forceUpdate")};var ne={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},ft;for(ft in ne)ne.hasOwnProperty(ft)&&r(ft,ne[ft]);s.prototype=a.prototype,ne=m.prototype=new s,ne.constructor=m,xn(ne,a.prototype),ne.isPureReactComponent=!0;var $n=Array.isArray,yg=Symbol.for("react.client.reference"),k={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},bt=Object.prototype.hasOwnProperty,Sn=console.createTask?console.createTask:function(){return null};ne={"react-stack-bottom-frame":function(c){return c()}};var On,Pn,Dn={},wg=ne["react-stack-bottom-frame"].bind(ne,F)(),Cg=Sn(x(F)),Rn=!1,In=/\/+/g,kn=typeof reportError=="function"?reportError:function(c){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var g=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof c=="object"&&c!==null&&typeof c.message=="string"?String(c.message):String(c),error:c});if(!window.dispatchEvent(g))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",c);return}console.error(c)},Tn=!1,yt=null,wt=0,Ct=!1,ar=!1,An=typeof queueMicrotask=="function"?function(c){queueMicrotask(function(){return queueMicrotask(c)})}:ce;ne=Object.freeze({__proto__:null,c:function(c){return G().useMemoCache(c)}}),e.Children={map:te,forEach:function(c,g,f){te(c,function(){g.apply(this,arguments)},f)},count:function(c){var g=0;return te(c,function(){g++}),g},toArray:function(c){return te(c,function(g){return g})||[]},only:function(c){if(!j(c))throw Error("React.Children.only expected to receive a single React element child.");return c}},e.Component=a,e.Fragment=u,e.Profiler=$,e.PureComponent=m,e.StrictMode=v,e.Suspense=R,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,e.__COMPILER_RUNTIME=ne,e.act=function(c){var g=k.actQueue,f=wt;wt++;var y=k.actQueue=g!==null?g:[],_=!1;try{var T=c()}catch(I){k.thrownErrors.push(I)}if(0<k.thrownErrors.length)throw X(g,f),c=re(k.thrownErrors),k.thrownErrors.length=0,c;if(T!==null&&typeof T=="object"&&typeof T.then=="function"){var D=T;return An(function(){_||Ct||(Ct=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(I,we){_=!0,D.then(function(Ke){if(X(g,f),f===0){try{ye(y),ce(function(){return Z(Ke,I,we)})}catch(Eg){k.thrownErrors.push(Eg)}if(0<k.thrownErrors.length){var _g=re(k.thrownErrors);k.thrownErrors.length=0,we(_g)}}else I(Ke)},function(Ke){X(g,f),0<k.thrownErrors.length&&(Ke=re(k.thrownErrors),k.thrownErrors.length=0),we(Ke)})}}}var z=T;if(X(g,f),f===0&&(ye(y),y.length!==0&&An(function(){_||Ct||(Ct=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),k.actQueue=null),0<k.thrownErrors.length)throw c=re(k.thrownErrors),k.thrownErrors.length=0,c;return{then:function(I,we){_=!0,f===0?(k.actQueue=y,ce(function(){return Z(z,I,we)})):I(z)}}},e.cache=function(c){return function(){return c.apply(null,arguments)}},e.captureOwnerStack=function(){var c=k.getCurrentStack;return c===null?null:c()},e.cloneElement=function(c,g,f){if(c==null)throw Error("The argument must be a React element, but you passed "+c+".");var y=xn({},c.props),_=c.key,T=c._owner;if(g!=null){var D;e:{if(bt.call(g,"ref")&&(D=Object.getOwnPropertyDescriptor(g,"ref").get)&&D.isReactWarning){D=!1;break e}D=g.ref!==void 0}D&&(T=N()),M(g)&&(b(g.key),_=""+g.key);for(z in g)!bt.call(g,z)||z==="key"||z==="__self"||z==="__source"||z==="ref"&&g.ref===void 0||(y[z]=g[z])}var z=arguments.length-2;if(z===1)y.children=f;else if(1<z){D=Array(z);for(var I=0;I<z;I++)D[I]=arguments[I+2];y.children=D}for(y=L(c.type,_,void 0,void 0,T,y,c._debugStack,c._debugTask),_=2;_<arguments.length;_++)T=arguments[_],j(T)&&T._store&&(T._store.validated=1);return y},e.createContext=function(c){return c={$$typeof:A,_currentValue:c,_currentValue2:c,_threadCount:0,Provider:null,Consumer:null},c.Provider=c,c.Consumer={$$typeof:E,_context:c},c._currentRenderer=null,c._currentRenderer2=null,c},e.createElement=function(c,g,f){for(var y=2;y<arguments.length;y++){var _=arguments[y];j(_)&&_._store&&(_._store.validated=1)}if(y={},_=null,g!=null)for(I in Pn||!("__self"in g)||"key"in g||(Pn=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),M(g)&&(b(g.key),_=""+g.key),g)bt.call(g,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(y[I]=g[I]);var T=arguments.length-2;if(T===1)y.children=f;else if(1<T){for(var D=Array(T),z=0;z<T;z++)D[z]=arguments[z+2];Object.freeze&&Object.freeze(D),y.children=D}if(c&&c.defaultProps)for(I in T=c.defaultProps,T)y[I]===void 0&&(y[I]=T[I]);_&&q(y,typeof c=="function"?c.displayName||c.name||"Unknown":c);var I=1e4>k.recentlyCreatedOwnerStacks++;return L(c,_,void 0,void 0,N(),y,I?Error("react-stack-top-frame"):wg,I?Sn(x(c)):Cg)},e.createRef=function(){var c={current:null};return Object.seal(c),c},e.forwardRef=function(c){c!=null&&c.$$typeof===K?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof c!="function"?console.error("forwardRef requires a render function but was given %s.",c===null?"null":typeof c):c.length!==0&&c.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",c.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),c!=null&&c.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var g={$$typeof:Y,render:c},f;return Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(y){f=y,c.name||c.displayName||(Object.defineProperty(c,"name",{value:y}),c.displayName=y)}}),g},e.isValidElement=j,e.lazy=function(c){return{$$typeof:Ye,_payload:{_status:-1,_result:c},_init:Ie}},e.memo=function(c,g){c==null&&console.error("memo: The first argument must be a component. Instead received: %s",c===null?"null":typeof c),g={$$typeof:K,type:c,compare:g===void 0?null:g};var f;return Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(y){f=y,c.name||c.displayName||(Object.defineProperty(c,"name",{value:y}),c.displayName=y)}}),g},e.startTransition=function(c){var g=k.T,f={};k.T=f,f._updatedFibers=new Set;try{var y=c(),_=k.S;_!==null&&_(f,y),typeof y=="object"&&y!==null&&typeof y.then=="function"&&y.then(U,kn)}catch(T){kn(T)}finally{g===null&&f._updatedFibers&&(c=f._updatedFibers.size,f._updatedFibers.clear(),10<c&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),k.T=g}},e.unstable_useCacheRefresh=function(){return G().useCacheRefresh()},e.use=function(c){return G().use(c)},e.useActionState=function(c,g,f){return G().useActionState(c,g,f)},e.useCallback=function(c,g){return G().useCallback(c,g)},e.useContext=function(c){var g=G();return c.$$typeof===E&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),g.useContext(c)},e.useDebugValue=function(c,g){return G().useDebugValue(c,g)},e.useDeferredValue=function(c,g){return G().useDeferredValue(c,g)},e.useEffect=function(c,g,f){c==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var y=G();if(typeof f=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return y.useEffect(c,g)},e.useId=function(){return G().useId()},e.useImperativeHandle=function(c,g,f){return G().useImperativeHandle(c,g,f)},e.useInsertionEffect=function(c,g){return c==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),G().useInsertionEffect(c,g)},e.useLayoutEffect=function(c,g){return c==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),G().useLayoutEffect(c,g)},e.useMemo=function(c,g){return G().useMemo(c,g)},e.useOptimistic=function(c,g){return G().useOptimistic(c,g)},e.useReducer=function(c,g,f){return G().useReducer(c,g,f)},e.useRef=function(c){return G().useRef(c)},e.useState=function(c){return G().useState(c)},e.useSyncExternalStore=function(c,g,f){return G().useSyncExternalStore(c,g,f)},e.useTransition=function(){return G().useTransition()},e.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(st,st.exports)),st.exports}var yn;function hg(){return yn||(yn=1,process.env.NODE_ENV==="production"?vt.exports=gg():vt.exports=pg()),vt.exports}var mg=hg();const wn=ug(mg),vg=vn({tagName:"rtg-button",elementClass:o.Button,react:wn}),fg=vn({tagName:"rtg-checkbox",elementClass:o.Checkbox,react:wn});o.ButtonReact=vg,o.CheckboxReact=fg,o.TOGGLE_GROUP_SIZE=pt,o.TOGGLE_GROUP_TYPE=tt,o.TOGGLE_GROUP_VARIANT=gt,o.TOGGLE_SIZE=Zt,o.TOGGLE_VARIANT=Qt,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -23,6 +23,7 @@ declare class InputOtp extends BaseElement {
|
|
|
23
23
|
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
24
24
|
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
25
25
|
protected updated(changedProperties: PropertyValues): void;
|
|
26
|
+
checkIfCompleteAndSubmit(): void;
|
|
26
27
|
private applyVariantStyles;
|
|
27
28
|
protected render(): import('lit').TemplateResult<1>;
|
|
28
29
|
}
|
package/package.json
CHANGED