@revotech-group/revotech-ui-kit 0.1.33 → 0.1.34
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
|
@@ -12464,16 +12464,13 @@ let er = class extends h {
|
|
|
12464
12464
|
aria-selected=${this.defaultValue === this.value ? "true" : "false"}
|
|
12465
12465
|
aria-controls=${this.value}
|
|
12466
12466
|
data-state=${this.defaultValue === this.value ? "active" : "inactive"}
|
|
12467
|
-
class
|
|
12468
|
-
"rtg-w-full rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-sm rtg-px-3 rtg-py-1.5 rtg-text-sm rtg-font-medium rtg-ring-offset-background rtg-transition-all focus-visible:rtg-outline-none focus-visible:rtg-ring-2 focus-visible:rtg-ring-ring focus-visible:rtg-ring-offset-2 disabled:rtg-pointer-events-none disabled:rtg-opacity-50 data-[state=active]:rtg-bg-background data-[state=active]:rtg-text-foreground data-[state=active]:rtg-shadow-sm",
|
|
12469
|
-
t
|
|
12470
|
-
)}
|
|
12471
|
-
style="${e}"
|
|
12467
|
+
class="rtg-w-full rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-sm rtg-px-3 rtg-py-1.5 rtg-text-sm rtg-font-medium rtg-ring-offset-background rtg-transition-all focus-visible:rtg-outline-none focus-visible:rtg-ring-2 focus-visible:rtg-ring-ring focus-visible:rtg-ring-offset-2 disabled:rtg-pointer-events-none disabled:rtg-opacity-50 data-[state=active]:rtg-bg-background data-[state=active]:rtg-text-foreground data-[state=active]:rtg-shadow-sm"
|
|
12472
12468
|
tabindex="-1"
|
|
12473
12469
|
data-orientation=${this.orientation}
|
|
12474
12470
|
data-radix-collection-item=""
|
|
12475
12471
|
@click=${this.handleClick}
|
|
12476
12472
|
>
|
|
12473
|
+
<slot></slot>
|
|
12477
12474
|
</button>
|
|
12478
12475
|
</div>
|
|
12479
12476
|
`;
|
|
@@ -12928,7 +12925,7 @@ let it = class extends h {
|
|
|
12928
12925
|
if (!t) return;
|
|
12929
12926
|
const o = t.variant, s = this.index, r = t.maxLength;
|
|
12930
12927
|
let n = !1;
|
|
12931
|
-
o === "
|
|
12928
|
+
o === "with_separator" ? n = s % 2 === 1 || s === r - 1 : o === "simple" ? n = s % 3 === 2 || s === r - 1 : n = s === r - 1, this.isLast = n, t.inputes.push({
|
|
12932
12929
|
index: t.inputes.length,
|
|
12933
12930
|
value: "",
|
|
12934
12931
|
isSelected: !1,
|
|
@@ -13044,7 +13041,7 @@ let it = class extends h {
|
|
|
13044
13041
|
}
|
|
13045
13042
|
render() {
|
|
13046
13043
|
var i;
|
|
13047
|
-
const e = ((i = this._inputOtp) == null ? void 0 : i.variant) ?? "
|
|
13044
|
+
const e = ((i = this._inputOtp) == null ? void 0 : i.variant) ?? "digits_only", t = this.isFirst, o = this.isLast, s = e === "with_spacing", r = e === "with_separator", n = {
|
|
13048
13045
|
"rtg-bg-transparent": !0,
|
|
13049
13046
|
"rtg-h-[36px]": !0,
|
|
13050
13047
|
"rtg-w-[36px]": !0,
|
|
@@ -13057,9 +13054,9 @@ let it = class extends h {
|
|
|
13057
13054
|
"rtg-border-b": !s || r,
|
|
13058
13055
|
"rtg-border-r": !s || r,
|
|
13059
13056
|
"rtg-border-l": this.isFirst || s || r,
|
|
13060
|
-
"first:rtg-rounded-l-md": e === "
|
|
13061
|
-
"last:rtg-rounded-r-md": e === "
|
|
13062
|
-
"rtg-rounded-none": !t && !o && (e === "
|
|
13057
|
+
"first:rtg-rounded-l-md": e === "with_spacing" ? !0 : t,
|
|
13058
|
+
"last:rtg-rounded-r-md": e === "with_spacing" ? !0 : o,
|
|
13059
|
+
"rtg-rounded-none": !t && !o && (e === "digits_only" || e === "simple" || e === "with_separator")
|
|
13063
13060
|
};
|
|
13064
13061
|
return d`
|
|
13065
13062
|
<input
|
|
@@ -13175,7 +13172,7 @@ var Ap = Object.defineProperty, Lp = Object.getOwnPropertyDescriptor, lr = (e, t
|
|
|
13175
13172
|
let at = class extends h {
|
|
13176
13173
|
constructor() {
|
|
13177
13174
|
super(), this.maxLength = 6, this.onChange = () => {
|
|
13178
|
-
}, this.pin = new Array(this.maxLength), this.variant = "
|
|
13175
|
+
}, this.pin = new Array(this.maxLength), this.variant = "digits_only", this.inputes = [];
|
|
13179
13176
|
}
|
|
13180
13177
|
connectedCallback() {
|
|
13181
13178
|
super.connectedCallback();
|
|
@@ -13222,7 +13219,7 @@ let at = class extends h {
|
|
|
13222
13219
|
switch (e.forEach((t) => {
|
|
13223
13220
|
t.className = "", t.classList.add("rtg-flex", "rtg-items-center");
|
|
13224
13221
|
}), this.variant) {
|
|
13225
|
-
case "
|
|
13222
|
+
case "with_spacing":
|
|
13226
13223
|
e.forEach((t) => t.classList.add("rtg-gap-2"));
|
|
13227
13224
|
break;
|
|
13228
13225
|
}
|
|
@@ -15763,7 +15760,7 @@ function $v() {
|
|
|
15763
15760
|
);
|
|
15764
15761
|
}, O.useTransition = function() {
|
|
15765
15762
|
return N.H.useTransition();
|
|
15766
|
-
}, O.version = "19.1.
|
|
15763
|
+
}, O.version = "19.1.1", O;
|
|
15767
15764
|
}
|
|
15768
15765
|
var Yt = { exports: {} };
|
|
15769
15766
|
/**
|
|
@@ -16246,11 +16243,14 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
16246
16243
|
return null;
|
|
16247
16244
|
};
|
|
16248
16245
|
le = {
|
|
16249
|
-
|
|
16246
|
+
react_stack_bottom_frame: function(a) {
|
|
16250
16247
|
return a();
|
|
16251
16248
|
}
|
|
16252
16249
|
};
|
|
16253
|
-
var wo, xo, _o = {}, Bi = le
|
|
16250
|
+
var wo, xo, _o = {}, Bi = le.react_stack_bottom_frame.bind(
|
|
16251
|
+
le,
|
|
16252
|
+
G
|
|
16253
|
+
)(), Fi = yo(T(G)), Co = !1, $o = /\/+/g, Eo = typeof reportError == "function" ? reportError : function(a) {
|
|
16254
16254
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
16255
16255
|
var u = new window.ErrorEvent("error", {
|
|
16256
16256
|
bubbles: !0,
|
|
@@ -16593,7 +16593,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
16593
16593
|
);
|
|
16594
16594
|
}, t.useTransition = function() {
|
|
16595
16595
|
return V().useTransition();
|
|
16596
|
-
}, t.version = "19.1.
|
|
16596
|
+
}, t.version = "19.1.1", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
16597
16597
|
}();
|
|
16598
16598
|
}(Yt, Yt.exports)), Yt.exports;
|
|
16599
16599
|
}
|
package/dist/rtg-ui-kit.umd.cjs
CHANGED
|
@@ -4409,13 +4409,13 @@ body {
|
|
|
4409
4409
|
aria-selected=${this.defaultValue===this.value?"true":"false"}
|
|
4410
4410
|
aria-controls=${this.value}
|
|
4411
4411
|
data-state=${this.defaultValue===this.value?"active":"inactive"}
|
|
4412
|
-
class
|
|
4413
|
-
style="${e}"
|
|
4412
|
+
class="rtg-w-full rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-sm rtg-px-3 rtg-py-1.5 rtg-text-sm rtg-font-medium rtg-ring-offset-background rtg-transition-all focus-visible:rtg-outline-none focus-visible:rtg-ring-2 focus-visible:rtg-ring-ring focus-visible:rtg-ring-offset-2 disabled:rtg-pointer-events-none disabled:rtg-opacity-50 data-[state=active]:rtg-bg-background data-[state=active]:rtg-text-foreground data-[state=active]:rtg-shadow-sm"
|
|
4414
4413
|
tabindex="-1"
|
|
4415
4414
|
data-orientation=${this.orientation}
|
|
4416
4415
|
data-radix-collection-item=""
|
|
4417
4416
|
@click=${this.handleClick}
|
|
4418
4417
|
>
|
|
4418
|
+
<slot></slot>
|
|
4419
4419
|
</button>
|
|
4420
4420
|
</div>
|
|
4421
4421
|
`}},gt([l.property({type:String})],o.TabsTrigger.prototype,"defaultValue",2),gt([l.property({type:String})],o.TabsTrigger.prototype,"value",2),gt([l.property({type:Function})],o.TabsTrigger.prototype,"onClickCallback",2),o.TabsTrigger=gt([l.customElement("rtg-tab-trigger")],o.TabsTrigger);var dd=Object.defineProperty,ud=Object.getOwnPropertyDescriptor,Qt=(i,e,r,n)=>{for(var t=n>1?void 0:n?ud(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&&dd(e,r,t),t};o.TabContent=class extends h{constructor(){super(...arguments),this.value="",this.selectedValue=""}get _tab(){let e=this.parentElement;for(;e&&!(e instanceof o.Tab);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=tab-content]")}updated(e){super.updated(e)}connectedCallback(){var e;super.connectedCallback(),(e=this._tab)==null||e.addEventListener("tab-change",r=>{this.selectedValue=r.detail.selectedValue,this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this._tab&&this._tab.removeEventListener("tab-change",()=>{})}createRenderRoot(){return this}firstUpdated(e){this.observeStyleAndClassSync(this._containerElement),this.moveLightDomChildrenInto(this._containerElement)}getAttributesToExclude(){return["data-testid"]}getAttributesToRemoveFromParent(){return["class","style","data-testid"]}render(){const e=this.customStyle||"",r=this.customClass||"",n=this._tab&&this._tab.defaultValue.toLocaleLowerCase()===this.value.toLocaleLowerCase(),t=p(n?"rtg-block":"rtg-hidden",r,this.customClass);return Ce.html`
|
|
@@ -4470,7 +4470,7 @@ body {
|
|
|
4470
4470
|
class="${p(bd,this.className)}"
|
|
4471
4471
|
?disable="${this.disabled}"
|
|
4472
4472
|
></div>
|
|
4473
|
-
`}},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 xd=Object.defineProperty,Ed=Object.getOwnPropertyDescriptor,Fe=(i,e,r,n)=>{for(var t=n>1?void 0:n?Ed(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&&xd(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;if(!r)return;const n=r.variant,t=this.index,a=r.maxLength;let s=!1;n==="
|
|
4473
|
+
`}},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 xd=Object.defineProperty,Ed=Object.getOwnPropertyDescriptor,Fe=(i,e,r,n)=>{for(var t=n>1?void 0:n?Ed(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&&xd(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;if(!r)return;const n=r.variant,t=this.index,a=r.maxLength;let s=!1;n==="with_separator"?s=t%2===1||t===a-1:n==="simple"?s=t%3===2||t===a-1:s=t===a-1,this.isLast=s,r.inputes.push({index:r.inputes.length,value:"",isSelected:!1,userIndex:t}),r.addEventListener("focus",m=>{const w=this.querySelector(`input[name="input-${m.detail.selectedItems}"]`);w&&(w.focus(),m.detail.eventType==="changes"&&(w.value=""))})}disconnectedCallback(){super.disconnectedCallback(),this._inputOtp&&this._inputOtp.removeEventListener("focus",()=>{})}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")}else r.raiseEvent(t,"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(C=>C.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 C=t;C<n.inputes.length-1;C++){n.inputes[C].value=n.inputes[C+1].value;const E=n.querySelector(`input[name="input-${n.inputes[C].index}"]`);E&&(E.value=n.inputes[C].value)}const w=n.inputes[n.inputes.length-1];w.value="";const b=n.querySelector(`input[name="input-${w.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 w;e.preventDefault();const r=this._inputOtp;if(!r)return;const t=(((w=e.clipboardData)==null?void 0:w.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 C=a+b;if(C>=r.maxLength)break;r.inputes[C].value=t[b];const E=r.querySelector(`input[name="input-${C}"]`);E&&(E.value=t[b])}const m=a+t.length;m<r.maxLength&&r.raiseEvent(m,"focus")}createRenderRoot(){return this}render(){var m;const e=((m=this._inputOtp)==null?void 0:m.variant)??"digits_only",r=this.isFirst,n=this.isLast,t=e==="with_spacing",a=e==="with_separator",s={"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":t||a,"rtg-border-t":!t||a,"rtg-border-b":!t||a,"rtg-border-r":!t||a,"rtg-border-l":this.isFirst||t||a,"first:rtg-rounded-l-md":e==="with_spacing"?!0:r,"last:rtg-rounded-r-md":e==="with_spacing"?!0:n,"rtg-rounded-none":!r&&!n&&(e==="digits_only"||e==="simple"||e==="with_separator")};return d.html`
|
|
4474
4474
|
<input
|
|
4475
4475
|
part="input-otp-slot"
|
|
4476
4476
|
auto-complete="one-time-code"
|
|
@@ -4499,7 +4499,7 @@ body {
|
|
|
4499
4499
|
>
|
|
4500
4500
|
${Ei()}
|
|
4501
4501
|
</div>
|
|
4502
|
-
`}},hn([l.property({type:Number})],o.InputOtpSeparator.prototype,"index",2),o.InputOtpSeparator=hn([l.customElement("rtg-input-otp-separator")],o.InputOtpSeparator);var Dd=Object.defineProperty,Rd=Object.getOwnPropertyDescriptor,rt=(i,e,r,n)=>{for(var t=n>1?void 0:n?Rd(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&&Dd(e,r,t),t};o.InputOtp=class extends h{constructor(){super(),this.maxLength=6,this.onChange=()=>{},this.pin=new Array(this.maxLength),this.variant="
|
|
4502
|
+
`}},hn([l.property({type:Number})],o.InputOtpSeparator.prototype,"index",2),o.InputOtpSeparator=hn([l.customElement("rtg-input-otp-separator")],o.InputOtpSeparator);var Dd=Object.defineProperty,Rd=Object.getOwnPropertyDescriptor,rt=(i,e,r,n)=>{for(var t=n>1?void 0:n?Rd(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&&Dd(e,r,t),t};o.InputOtp=class extends h{constructor(){super(),this.maxLength=6,this.onChange=()=>{},this.pin=new Array(this.maxLength),this.variant="digits_only",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("focus",{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`
|
|
4503
4503
|
<div
|
|
4504
4504
|
part="input-otp"
|
|
4505
4505
|
class="${p("rtg-flex rtg-items-center",this.className)}"
|
|
@@ -5184,7 +5184,7 @@ body {
|
|
|
5184
5184
|
*
|
|
5185
5185
|
* This source code is licensed under the MIT license found in the
|
|
5186
5186
|
* LICENSE file in the root directory of this source tree.
|
|
5187
|
-
*/var $n;function Cg(){if($n)return O;$n=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"),w=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),E=Symbol.iterator;function N(u){return u===null||typeof u!="object"?null:(u=E&&u[E]||u["@@iterator"],typeof u=="function"?u:null)}var G={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=$||G}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=$||G}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,$,x,T,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 V=/\/+/g;function z(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,$,x,T){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 C:return R=u._init,X(R(u._payload),v,$,x,T)}}if(R)return T=T(u),R=x===""?"."+z(u,0):x,ee(T)?($="",R!=null&&($=R.replace(V,"$&/")+"/"),X(T,v,$,"",function(Ye){return Ye})):T!=null&&(te(T)&&(T=ae(T,$+(T.key==null||u&&u.key===T.key?"":(""+T.key).replace(V,"$&/")+"/")+R)),v.push(T)),1;R=0;var ge=x===""?".":x+":";if(ee(u))for(var K=0;K<u.length;K++)x=u[K],Y=ge+z(x,K),R+=X(x,v,$,Y,T);else if(K=N(u),typeof K=="function")for(u=K.call(u),K=0;!(x=u.next()).done;)x=x.value,Y=ge+z(x,K++),R+=X(x,v,$,Y,T);else if(Y==="object"){if(typeof u.then=="function")return X(re(u),v,$,x,T);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 x=[],T=0;return X(u,x,"","",function(Y){return v.call($,Y,T++)}),x}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=w,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 x=M({},u.props),T=u.key,Y=void 0;if(v!=null)for(R in v.ref!==void 0&&(Y=void 0),v.key!==void 0&&(T=""+v.key),v)!fe.call(v,R)||R==="key"||R==="__self"||R==="__source"||R==="ref"&&v.ref===void 0||(x[R]=v[R]);var R=arguments.length-2;if(R===1)x.children=$;else if(1<R){for(var ge=Array(R),K=0;K<R;K++)ge[K]=arguments[K+2];x.children=ge}return be(u.type,T,void 0,void 0,Y,x)},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 x,T={},Y=null;if(v!=null)for(x in v.key!==void 0&&(Y=""+v.key),v)fe.call(v,x)&&x!=="key"&&x!=="__self"&&x!=="__source"&&(T[x]=v[x]);var R=arguments.length-2;if(R===1)T.children=$;else if(1<R){for(var ge=Array(R),K=0;K<R;K++)ge[K]=arguments[K+2];T.children=ge}if(u&&u.defaultProps)for(x in R=u.defaultProps,R)T[x]===void 0&&(T[x]=R[x]);return be(u,Y,void 0,void 0,null,T)},O.createRef=function(){return{current:null}},O.forwardRef=function(u){return{$$typeof:m,render:u}},O.isValidElement=te,O.lazy=function(u){return{$$typeof:C,_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 x=u(),T=B.S;T!==null&&T($,x),typeof x=="object"&&x!==null&&typeof x.then=="function"&&x.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 x=B.H;if(typeof $=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return x.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.
|
|
5187
|
+
*/var $n;function Cg(){if($n)return O;$n=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"),w=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),E=Symbol.iterator;function N(u){return u===null||typeof u!="object"?null:(u=E&&u[E]||u["@@iterator"],typeof u=="function"?u:null)}var G={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=$||G}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=$||G}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,$,x,T,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 V=/\/+/g;function z(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,$,x,T){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 C:return R=u._init,X(R(u._payload),v,$,x,T)}}if(R)return T=T(u),R=x===""?"."+z(u,0):x,ee(T)?($="",R!=null&&($=R.replace(V,"$&/")+"/"),X(T,v,$,"",function(Ye){return Ye})):T!=null&&(te(T)&&(T=ae(T,$+(T.key==null||u&&u.key===T.key?"":(""+T.key).replace(V,"$&/")+"/")+R)),v.push(T)),1;R=0;var ge=x===""?".":x+":";if(ee(u))for(var K=0;K<u.length;K++)x=u[K],Y=ge+z(x,K),R+=X(x,v,$,Y,T);else if(K=N(u),typeof K=="function")for(u=K.call(u),K=0;!(x=u.next()).done;)x=x.value,Y=ge+z(x,K++),R+=X(x,v,$,Y,T);else if(Y==="object"){if(typeof u.then=="function")return X(re(u),v,$,x,T);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 x=[],T=0;return X(u,x,"","",function(Y){return v.call($,Y,T++)}),x}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=w,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 x=M({},u.props),T=u.key,Y=void 0;if(v!=null)for(R in v.ref!==void 0&&(Y=void 0),v.key!==void 0&&(T=""+v.key),v)!fe.call(v,R)||R==="key"||R==="__self"||R==="__source"||R==="ref"&&v.ref===void 0||(x[R]=v[R]);var R=arguments.length-2;if(R===1)x.children=$;else if(1<R){for(var ge=Array(R),K=0;K<R;K++)ge[K]=arguments[K+2];x.children=ge}return be(u.type,T,void 0,void 0,Y,x)},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 x,T={},Y=null;if(v!=null)for(x in v.key!==void 0&&(Y=""+v.key),v)fe.call(v,x)&&x!=="key"&&x!=="__self"&&x!=="__source"&&(T[x]=v[x]);var R=arguments.length-2;if(R===1)T.children=$;else if(1<R){for(var ge=Array(R),K=0;K<R;K++)ge[K]=arguments[K+2];T.children=ge}if(u&&u.defaultProps)for(x in R=u.defaultProps,R)T[x]===void 0&&(T[x]=R[x]);return be(u,Y,void 0,void 0,null,T)},O.createRef=function(){return{current:null}},O.forwardRef=function(u){return{$$typeof:m,render:u}},O.isValidElement=te,O.lazy=function(u){return{$$typeof:C,_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 x=u(),T=B.S;T!==null&&T($,x),typeof x=="object"&&x!==null&&typeof x.then=="function"&&x.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 x=B.H;if(typeof $=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return x.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.1",O}var st={exports:{}};/**
|
|
5188
5188
|
* @license React
|
|
5189
5189
|
* react.development.js
|
|
5190
5190
|
*
|
|
@@ -5204,4 +5204,4 @@ Your code should look like:
|
|
|
5204
5204
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
5205
5205
|
2. You might be breaking the Rules of Hooks
|
|
5206
5206
|
3. You might have more than one copy of React in the same app
|
|
5207
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}function z(){}function ce(c){if(_t===null)try{var g=("require"+Math.random()).slice(0,7);_t=(i&&i[g]).call(i,"timers").setImmediate}catch{_t=function(y){zn===!1&&(zn=!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 _t(c)}function re(c){return 1<c.length&&typeof AggregateError=="function"?new AggregateError(c):c[0]}function X(c,g){g!==xt-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. "),xt=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(!sr){sr=!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{sr=!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"),x=Symbol.for("react.consumer"),T=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"),Og=Symbol.for("react.activity"),Dn=Symbol.iterator,Rn={},In={isMounted:function(){return!1},enqueueForceUpdate:function(c){t(c,"forceUpdate")},enqueueReplaceState:function(c){t(c,"replaceState")},enqueueSetState:function(c){t(c,"setState")}},kn=Object.assign,ar={};Object.freeze(ar),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)."]},wt;for(wt in ne)ne.hasOwnProperty(wt)&&r(wt,ne[wt]);s.prototype=a.prototype,ne=m.prototype=new s,ne.constructor=m,kn(ne,a.prototype),ne.isPureReactComponent=!0;var An=Array.isArray,Pg=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},Ct=Object.prototype.hasOwnProperty,Tn=console.createTask?console.createTask:function(){return null};ne={"react-stack-bottom-frame":function(c){return c()}};var Mn,Ln,Nn={},Dg=ne["react-stack-bottom-frame"].bind(ne,G)(),Rg=Tn(E(G)),Bn=!1,qn=/\/+/g,Un=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)},zn=!1,_t=null,xt=0,Et=!1,sr=!1,Fn=typeof queueMicrotask=="function"?function(c){queueMicrotask(function(){return queueMicrotask(c)})}:ce;ne=Object.freeze({__proto__:null,c:function(c){return V().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=xt;xt++;var y=k.actQueue=g!==null?g:[],_=!1;try{var A=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(A!==null&&typeof A=="object"&&typeof A.then=="function"){var D=A;return Fn(function(){_||Et||(Et=!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(kg){k.thrownErrors.push(kg)}if(0<k.thrownErrors.length){var Ig=re(k.thrownErrors);k.thrownErrors.length=0,we(Ig)}}else I(Ke)},function(Ke){X(g,f),0<k.thrownErrors.length&&(Ke=re(k.thrownErrors),k.thrownErrors.length=0),we(Ke)})}}}var F=A;if(X(g,f),f===0&&(ye(y),y.length!==0&&Fn(function(){_||Et||(Et=!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(F,I,we)})):I(F)}}},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=kn({},c.props),_=c.key,A=c._owner;if(g!=null){var D;e:{if(Ct.call(g,"ref")&&(D=Object.getOwnPropertyDescriptor(g,"ref").get)&&D.isReactWarning){D=!1;break e}D=g.ref!==void 0}D&&(A=N()),M(g)&&(b(g.key),_=""+g.key);for(F in g)!Ct.call(g,F)||F==="key"||F==="__self"||F==="__source"||F==="ref"&&g.ref===void 0||(y[F]=g[F])}var F=arguments.length-2;if(F===1)y.children=f;else if(1<F){D=Array(F);for(var I=0;I<F;I++)D[I]=arguments[I+2];y.children=D}for(y=L(c.type,_,void 0,void 0,A,y,c._debugStack,c._debugTask),_=2;_<arguments.length;_++)A=arguments[_],j(A)&&A._store&&(A._store.validated=1);return y},e.createContext=function(c){return c={$$typeof:T,_currentValue:c,_currentValue2:c,_threadCount:0,Provider:null,Consumer:null},c.Provider=c,c.Consumer={$$typeof:x,_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 Ln||!("__self"in g)||"key"in g||(Ln=!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)Ct.call(g,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(y[I]=g[I]);var A=arguments.length-2;if(A===1)y.children=f;else if(1<A){for(var D=Array(A),F=0;F<A;F++)D[F]=arguments[F+2];Object.freeze&&Object.freeze(D),y.children=D}if(c&&c.defaultProps)for(I in A=c.defaultProps,A)y[I]===void 0&&(y[I]=A[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"):Dg,I?Tn(E(c)):Rg)},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(z,Un)}catch(A){Un(A)}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 V().useCacheRefresh()},e.use=function(c){return V().use(c)},e.useActionState=function(c,g,f){return V().useActionState(c,g,f)},e.useCallback=function(c,g){return V().useCallback(c,g)},e.useContext=function(c){var g=V();return c.$$typeof===x&&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 V().useDebugValue(c,g)},e.useDeferredValue=function(c,g){return V().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=V();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 V().useId()},e.useImperativeHandle=function(c,g,f){return V().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?"),V().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?"),V().useLayoutEffect(c,g)},e.useMemo=function(c,g){return V().useMemo(c,g)},e.useOptimistic=function(c,g){return V().useOptimistic(c,g)},e.useReducer=function(c,g,f){return V().useReducer(c,g,f)},e.useRef=function(c){return V().useRef(c)},e.useState=function(c){return V().useState(c)},e.useSyncExternalStore=function(c,g,f){return V().useSyncExternalStore(c,g,f)},e.useTransition=function(){return V().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 On;function xg(){return On||(On=1,process.env.NODE_ENV==="production"?yt.exports=Cg():yt.exports=_g()),yt.exports}var Eg=xg();const Pn=wg(Eg),$g=En({tagName:"rtg-button",elementClass:o.Button,react:Pn}),Sg=En({tagName:"rtg-checkbox",elementClass:o.Checkbox,react:Pn});o.ButtonReact=$g,o.CheckboxReact=Sg,o.TOGGLE_GROUP_SIZE=mt,o.TOGGLE_GROUP_TYPE=tt,o.TOGGLE_GROUP_VARIANT=ht,o.TOGGLE_SIZE=Jt,o.TOGGLE_VARIANT=er,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|
|
5207
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}function z(){}function ce(c){if(_t===null)try{var g=("require"+Math.random()).slice(0,7);_t=(i&&i[g]).call(i,"timers").setImmediate}catch{_t=function(y){zn===!1&&(zn=!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 _t(c)}function re(c){return 1<c.length&&typeof AggregateError=="function"?new AggregateError(c):c[0]}function X(c,g){g!==xt-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. "),xt=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(!sr){sr=!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{sr=!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"),x=Symbol.for("react.consumer"),T=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"),Og=Symbol.for("react.activity"),Dn=Symbol.iterator,Rn={},In={isMounted:function(){return!1},enqueueForceUpdate:function(c){t(c,"forceUpdate")},enqueueReplaceState:function(c){t(c,"replaceState")},enqueueSetState:function(c){t(c,"setState")}},kn=Object.assign,ar={};Object.freeze(ar),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)."]},wt;for(wt in ne)ne.hasOwnProperty(wt)&&r(wt,ne[wt]);s.prototype=a.prototype,ne=m.prototype=new s,ne.constructor=m,kn(ne,a.prototype),ne.isPureReactComponent=!0;var An=Array.isArray,Pg=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},Ct=Object.prototype.hasOwnProperty,Tn=console.createTask?console.createTask:function(){return null};ne={react_stack_bottom_frame:function(c){return c()}};var Mn,Ln,Nn={},Dg=ne.react_stack_bottom_frame.bind(ne,G)(),Rg=Tn(E(G)),Bn=!1,qn=/\/+/g,Un=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)},zn=!1,_t=null,xt=0,Et=!1,sr=!1,Fn=typeof queueMicrotask=="function"?function(c){queueMicrotask(function(){return queueMicrotask(c)})}:ce;ne=Object.freeze({__proto__:null,c:function(c){return V().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=xt;xt++;var y=k.actQueue=g!==null?g:[],_=!1;try{var A=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(A!==null&&typeof A=="object"&&typeof A.then=="function"){var D=A;return Fn(function(){_||Et||(Et=!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(kg){k.thrownErrors.push(kg)}if(0<k.thrownErrors.length){var Ig=re(k.thrownErrors);k.thrownErrors.length=0,we(Ig)}}else I(Ke)},function(Ke){X(g,f),0<k.thrownErrors.length&&(Ke=re(k.thrownErrors),k.thrownErrors.length=0),we(Ke)})}}}var F=A;if(X(g,f),f===0&&(ye(y),y.length!==0&&Fn(function(){_||Et||(Et=!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(F,I,we)})):I(F)}}},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=kn({},c.props),_=c.key,A=c._owner;if(g!=null){var D;e:{if(Ct.call(g,"ref")&&(D=Object.getOwnPropertyDescriptor(g,"ref").get)&&D.isReactWarning){D=!1;break e}D=g.ref!==void 0}D&&(A=N()),M(g)&&(b(g.key),_=""+g.key);for(F in g)!Ct.call(g,F)||F==="key"||F==="__self"||F==="__source"||F==="ref"&&g.ref===void 0||(y[F]=g[F])}var F=arguments.length-2;if(F===1)y.children=f;else if(1<F){D=Array(F);for(var I=0;I<F;I++)D[I]=arguments[I+2];y.children=D}for(y=L(c.type,_,void 0,void 0,A,y,c._debugStack,c._debugTask),_=2;_<arguments.length;_++)A=arguments[_],j(A)&&A._store&&(A._store.validated=1);return y},e.createContext=function(c){return c={$$typeof:T,_currentValue:c,_currentValue2:c,_threadCount:0,Provider:null,Consumer:null},c.Provider=c,c.Consumer={$$typeof:x,_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 Ln||!("__self"in g)||"key"in g||(Ln=!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)Ct.call(g,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(y[I]=g[I]);var A=arguments.length-2;if(A===1)y.children=f;else if(1<A){for(var D=Array(A),F=0;F<A;F++)D[F]=arguments[F+2];Object.freeze&&Object.freeze(D),y.children=D}if(c&&c.defaultProps)for(I in A=c.defaultProps,A)y[I]===void 0&&(y[I]=A[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"):Dg,I?Tn(E(c)):Rg)},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(z,Un)}catch(A){Un(A)}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 V().useCacheRefresh()},e.use=function(c){return V().use(c)},e.useActionState=function(c,g,f){return V().useActionState(c,g,f)},e.useCallback=function(c,g){return V().useCallback(c,g)},e.useContext=function(c){var g=V();return c.$$typeof===x&&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 V().useDebugValue(c,g)},e.useDeferredValue=function(c,g){return V().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=V();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 V().useId()},e.useImperativeHandle=function(c,g,f){return V().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?"),V().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?"),V().useLayoutEffect(c,g)},e.useMemo=function(c,g){return V().useMemo(c,g)},e.useOptimistic=function(c,g){return V().useOptimistic(c,g)},e.useReducer=function(c,g,f){return V().useReducer(c,g,f)},e.useRef=function(c){return V().useRef(c)},e.useState=function(c){return V().useState(c)},e.useSyncExternalStore=function(c,g,f){return V().useSyncExternalStore(c,g,f)},e.useTransition=function(){return V().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 On;function xg(){return On||(On=1,process.env.NODE_ENV==="production"?yt.exports=Cg():yt.exports=_g()),yt.exports}var Eg=xg();const Pn=wg(Eg),$g=En({tagName:"rtg-button",elementClass:o.Button,react:Pn}),Sg=En({tagName:"rtg-checkbox",elementClass:o.Checkbox,react:Pn});o.ButtonReact=$g,o.CheckboxReact=Sg,o.TOGGLE_GROUP_SIZE=mt,o.TOGGLE_GROUP_TYPE=tt,o.TOGGLE_GROUP_VARIANT=ht,o.TOGGLE_SIZE=Jt,o.TOGGLE_VARIANT=er,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -12,7 +12,7 @@ declare class InputOtp extends BaseElement {
|
|
|
12
12
|
maxLength: number;
|
|
13
13
|
onChange: () => void;
|
|
14
14
|
pin: any[];
|
|
15
|
-
variant: '
|
|
15
|
+
variant: 'digits_only' | 'with_spacing' | 'simple' | 'with_separator';
|
|
16
16
|
inputes: {
|
|
17
17
|
value: string;
|
|
18
18
|
index: number;
|
package/package.json
CHANGED