@revotech-group/revotech-ui-kit 0.0.75 → 0.0.76
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 +297 -283
- package/dist/rtg-ui-kit.umd.cjs +23 -22
- package/dist/src/components/ui/input/input.d.ts +2 -0
- package/package.json +1 -1
package/dist/rtg-ui-kit.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(o,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("lit"),require("lit/decorators.js"),require("lit/html.js"),require("lit/directive.js"),require("lit/async-directive.js"),require("lit/directives/if-defined.js"),require("lit/directives/unsafe-html.js"),require("lit-element"),require("@lit-labs/context"),require("lit/directives/ref.js")):typeof define=="function"&&define.amd?define(["exports","lit","lit/decorators.js","lit/html.js","lit/directive.js","lit/async-directive.js","lit/directives/if-defined.js","lit/directives/unsafe-html.js","lit-element","@lit-labs/context","lit/directives/ref.js"],d):(o=typeof globalThis<"u"?globalThis:o||self,d(o["rtg-ui-kit"]={},o.lit,o.decorators_js,o.html_js,o.directive_js,o.asyncDirective_js,o.ifDefined_js,o.unsafeHtml_js,o.litElement,o.context,o.ref_js))})(this,function(o,d,l,Tn,_e,An,Ln,ar,wt,nt,Mn){"use strict";function sr(i){var t,r,n="";if(typeof i=="string"||typeof i=="number")n+=i;else if(typeof i=="object")if(Array.isArray(i)){var e=i.length;for(t=0;t<e;t++)i[t]&&(r=sr(i[t]))&&(n&&(n+=" "),n+=r)}else for(r in i)i[r]&&(n&&(n+=" "),n+=r);return n}function lr(){for(var i,t,r=0,n="",e=arguments.length;r<e;r++)(i=arguments[r])&&(t=sr(i))&&(n&&(n+=" "),n+=t);return n}const xe="-",Nn=i=>{const t=zn(i),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=i;return{getClassGroupId:s=>{const m=s.split(xe);return m[0]===""&&m.length!==1&&m.shift(),cr(m,t)||qn(s)},getConflictingClassGroupIds:(s,m)=>{const C=r[s]||[];return m&&n[s]?[...C,...n[s]]:C}}},cr=(i,t)=>{var s;if(i.length===0)return t.classGroupId;const r=i[0],n=t.nextPart.get(r),e=n?cr(i.slice(1),n):void 0;if(e)return e;if(t.validators.length===0)return;const a=i.join(xe);return(s=t.validators.find(({validator:m})=>m(a)))==null?void 0:s.classGroupId},dr=/^\[(.+)\]$/,qn=i=>{if(dr.test(i)){const t=dr.exec(i)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},zn=i=>{const{theme:t,prefix:r}=i,n={nextPart:new Map,validators:[]};return Un(Object.entries(i.classGroups),r).forEach(([a,s])=>{Ee(s,n,a,t)}),n},Ee=(i,t,r,n)=>{i.forEach(e=>{if(typeof e=="string"){const a=e===""?t:ur(t,e);a.classGroupId=r;return}if(typeof e=="function"){if(Bn(e)){Ee(e(n),t,r,n);return}t.validators.push({validator:e,classGroupId:r});return}Object.entries(e).forEach(([a,s])=>{Ee(s,ur(t,a),r,n)})})},ur=(i,t)=>{let r=i;return t.split(xe).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Bn=i=>i.isThemeGetter,Un=(i,t)=>t?i.map(([r,n])=>{const e=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,m])=>[t+s,m])):a);return[r,e]}):i,Fn=i=>{if(i<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const e=(a,s)=>{r.set(a,s),t++,t>i&&(t=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return e(a,s),s},set(a,s){r.has(a)?r.set(a,s):e(a,s)}}},gr="!",Gn=i=>{const{separator:t,experimentalParseClassName:r}=i,n=t.length===1,e=t[0],a=t.length,s=m=>{const C=[];let b=0,w=0,E;for(let P=0;P<m.length;P++){let M=m[P];if(b===0){if(M===e&&(n||m.slice(P,P+a)===t)){C.push(m.slice(w,P)),w=P+a;continue}if(M==="/"){E=P;continue}}M==="["?b++:M==="]"&&b--}const N=C.length===0?m:m.substring(w),F=N.startsWith(gr),L=F?N.substring(1):N,z=E&&E>w?E-w:void 0;return{modifiers:C,hasImportantModifier:F,baseClassName:L,maybePostfixModifierPosition:z}};return r?m=>r({className:m,parseClassName:s}):s},Vn=i=>{if(i.length<=1)return i;const t=[];let r=[];return i.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},Hn=i=>({cache:Fn(i.cacheSize),parseClassName:Gn(i),...Nn(i)}),Yn=/\s+/,jn=(i,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:e}=t,a=[],s=i.trim().split(Yn);let m="";for(let C=s.length-1;C>=0;C-=1){const b=s[C],{modifiers:w,hasImportantModifier:E,baseClassName:N,maybePostfixModifierPosition:F}=r(b);let L=!!F,z=n(L?N.substring(0,F):N);if(!z){if(!L){m=b+(m.length>0?" "+m:m);continue}if(z=n(N),!z){m=b+(m.length>0?" "+m:m);continue}L=!1}const P=Vn(w).join(":"),M=E?P+gr:P,W=M+z;if(a.includes(W))continue;a.push(W);const X=e(z,L);for(let J=0;J<X.length;++J){const q=X[J];a.push(M+q)}m=b+(m.length>0?" "+m:m)}return m};function Wn(){let i=0,t,r,n="";for(;i<arguments.length;)(t=arguments[i++])&&(r=pr(t))&&(n&&(n+=" "),n+=r);return n}const pr=i=>{if(typeof i=="string")return i;let t,r="";for(let n=0;n<i.length;n++)i[n]&&(t=pr(i[n]))&&(r&&(r+=" "),r+=t);return r};function Xn(i,...t){let r,n,e,a=s;function s(C){const b=t.reduce((w,E)=>E(w),i());return r=Hn(b),n=r.cache.get,e=r.cache.set,a=m,m(C)}function m(C){const b=n(C);if(b)return b;const w=jn(C,r);return e(C,w),w}return function(){return a(Wn.apply(null,arguments))}}const V=i=>{const t=r=>r[i]||[];return t.isThemeGetter=!0,t},hr=/^\[(?:([a-z-]+):)?(.+)\]$/i,Kn=/^\d+\/\d+$/,Qn=new Set(["px","full","screen"]),Zn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,to=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,eo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ro=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gt=i=>kt(i)||Qn.has(i)||Kn.test(i),pt=i=>It(i,"length",uo),kt=i=>!!i&&!Number.isNaN(Number(i)),$e=i=>It(i,"number",kt),Wt=i=>!!i&&Number.isInteger(Number(i)),no=i=>i.endsWith("%")&&kt(i.slice(0,-1)),O=i=>hr.test(i),ht=i=>Zn.test(i),oo=new Set(["length","size","percentage"]),io=i=>It(i,oo,mr),ao=i=>It(i,"position",mr),so=new Set(["image","url"]),lo=i=>It(i,so,po),co=i=>It(i,"",go),Xt=()=>!0,It=(i,t,r)=>{const n=hr.exec(i);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},uo=i=>Jn.test(i)&&!to.test(i),mr=()=>!1,go=i=>eo.test(i),po=i=>ro.test(i),ho=Xn(()=>{const i=V("colors"),t=V("spacing"),r=V("blur"),n=V("brightness"),e=V("borderColor"),a=V("borderRadius"),s=V("borderSpacing"),m=V("borderWidth"),C=V("contrast"),b=V("grayscale"),w=V("hueRotate"),E=V("invert"),N=V("gap"),F=V("gradientColorStops"),L=V("gradientColorStopPositions"),z=V("inset"),P=V("margin"),M=V("opacity"),W=V("padding"),X=V("saturate"),J=V("scale"),q=V("sepia"),ft=V("skew"),vt=V("space"),it=V("translate"),tt=()=>["auto","contain","none"],Rt=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",O,t],B=()=>[O,t],lt=()=>["",gt,pt],et=()=>["auto",kt,O],K=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Q=()=>["solid","dashed","dotted","double","none"],bt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ct=()=>["start","end","center","between","around","evenly","stretch"],dt=()=>["","0",O],u=()=>["auto","avoid","all","avoid-page","page","left","right","column"],f=()=>[kt,O];return{cacheSize:500,separator:":",theme:{colors:[Xt],spacing:[gt,pt],blur:["none","",ht,O],brightness:f(),borderColor:[i],borderRadius:["none","","full",ht,O],borderSpacing:B(),borderWidth:lt(),contrast:f(),grayscale:dt(),hueRotate:f(),invert:dt(),gap:B(),gradientColorStops:[i],gradientColorStopPositions:[no,pt],inset:G(),margin:G(),opacity:f(),padding:B(),saturate:f(),scale:f(),sepia:dt(),skew:f(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[ht]}],"break-after":[{"break-after":u()}],"break-before":[{"break-before":u()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...K(),O]}],overflow:[{overflow:Rt()}],"overflow-x":[{"overflow-x":Rt()}],"overflow-y":[{"overflow-y":Rt()}],overscroll:[{overscroll:tt()}],"overscroll-x":[{"overscroll-x":tt()}],"overscroll-y":[{"overscroll-y":tt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[z]}],"inset-x":[{"inset-x":[z]}],"inset-y":[{"inset-y":[z]}],start:[{start:[z]}],end:[{end:[z]}],top:[{top:[z]}],right:[{right:[z]}],bottom:[{bottom:[z]}],left:[{left:[z]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Wt,O]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",O]}],grow:[{grow:dt()}],shrink:[{shrink:dt()}],order:[{order:["first","last","none",Wt,O]}],"grid-cols":[{"grid-cols":[Xt]}],"col-start-end":[{col:["auto",{span:["full",Wt,O]},O]}],"col-start":[{"col-start":et()}],"col-end":[{"col-end":et()}],"grid-rows":[{"grid-rows":[Xt]}],"row-start-end":[{row:["auto",{span:[Wt,O]},O]}],"row-start":[{"row-start":et()}],"row-end":[{"row-end":et()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",O]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",O]}],gap:[{gap:[N]}],"gap-x":[{"gap-x":[N]}],"gap-y":[{"gap-y":[N]}],"justify-content":[{justify:["normal",...ct()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ct(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ct(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[W]}],px:[{px:[W]}],py:[{py:[W]}],ps:[{ps:[W]}],pe:[{pe:[W]}],pt:[{pt:[W]}],pr:[{pr:[W]}],pb:[{pb:[W]}],pl:[{pl:[W]}],m:[{m:[P]}],mx:[{mx:[P]}],my:[{my:[P]}],ms:[{ms:[P]}],me:[{me:[P]}],mt:[{mt:[P]}],mr:[{mr:[P]}],mb:[{mb:[P]}],ml:[{ml:[P]}],"space-x":[{"space-x":[vt]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[vt]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",O,t]}],"min-w":[{"min-w":[O,t,"min","max","fit"]}],"max-w":[{"max-w":[O,t,"none","full","min","max","fit","prose",{screen:[ht]},ht]}],h:[{h:[O,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[O,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ht,pt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$e]}],"font-family":[{font:[Xt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",O]}],"line-clamp":[{"line-clamp":["none",kt,$e]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",gt,O]}],"list-image":[{"list-image":["none",O]}],"list-style-type":[{list:["none","disc","decimal",O]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[i]}],"placeholder-opacity":[{"placeholder-opacity":[M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[i]}],"text-opacity":[{"text-opacity":[M]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",gt,pt]}],"underline-offset":[{"underline-offset":["auto",gt,O]}],"text-decoration-color":[{decoration:[i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[M]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...K(),ao]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",io]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lo]}],"bg-color":[{bg:[i]}],"gradient-from-pos":[{from:[L]}],"gradient-via-pos":[{via:[L]}],"gradient-to-pos":[{to:[L]}],"gradient-from":[{from:[F]}],"gradient-via":[{via:[F]}],"gradient-to":[{to:[F]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[m]}],"border-w-x":[{"border-x":[m]}],"border-w-y":[{"border-y":[m]}],"border-w-s":[{"border-s":[m]}],"border-w-e":[{"border-e":[m]}],"border-w-t":[{"border-t":[m]}],"border-w-r":[{"border-r":[m]}],"border-w-b":[{"border-b":[m]}],"border-w-l":[{"border-l":[m]}],"border-opacity":[{"border-opacity":[M]}],"border-style":[{border:[...Q(),"hidden"]}],"divide-x":[{"divide-x":[m]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[m]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[M]}],"divide-style":[{divide:Q()}],"border-color":[{border:[e]}],"border-color-x":[{"border-x":[e]}],"border-color-y":[{"border-y":[e]}],"border-color-s":[{"border-s":[e]}],"border-color-e":[{"border-e":[e]}],"border-color-t":[{"border-t":[e]}],"border-color-r":[{"border-r":[e]}],"border-color-b":[{"border-b":[e]}],"border-color-l":[{"border-l":[e]}],"divide-color":[{divide:[e]}],"outline-style":[{outline:["",...Q()]}],"outline-offset":[{"outline-offset":[gt,O]}],"outline-w":[{outline:[gt,pt]}],"outline-color":[{outline:[i]}],"ring-w":[{ring:lt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[i]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[gt,pt]}],"ring-offset-color":[{"ring-offset":[i]}],shadow:[{shadow:["","inner","none",ht,co]}],"shadow-color":[{shadow:[Xt]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":[...bt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":bt()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[C]}],"drop-shadow":[{"drop-shadow":["","none",ht,O]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[E]}],saturate:[{saturate:[X]}],sepia:[{sepia:[q]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[C]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[E]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[X]}],"backdrop-sepia":[{"backdrop-sepia":[q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:f()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:f()}],animate:[{animate:["none","spin","ping","pulse","bounce",O]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[J]}],"scale-x":[{"scale-x":[J]}],"scale-y":[{"scale-y":[J]}],rotate:[{rotate:[Wt,O]}],"translate-x":[{"translate-x":[it]}],"translate-y":[{"translate-y":[it]}],"skew-x":[{"skew-x":[ft]}],"skew-y":[{"skew-y":[ft]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O]}],accent:[{accent:["auto",i]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O]}],"caret-color":[{caret:[i]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O]}],fill:[{fill:[i,"none"]}],"stroke-w":[{stroke:[gt,pt,$e]}],stroke:[{stroke:[i,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function p(...i){return ho(lr(i))}var mo=Object.defineProperty,fo=(i,t,r,n)=>{for(var e=void 0,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(t,r,e)||e);return e&&mo(t,r,e),e};class h extends d.LitElement{constructor(){super(),this.customClass=""}getAttributesToExclude(){return[]}getAttributesToRemoveFromParent(){return["class"]}removeParentAttributes(){this.getAttributesToRemoveFromParent().forEach(r=>{r==="class"&&this.hasAttribute("class")&&(this.customClass=this.getAttribute("class")||""),this.hasAttribute(r)&&this.removeAttribute(r)})}getFilteredAttributes(){const t={};return Array.from(this.attributes).forEach(r=>{this.getAttributesToExclude().includes(r.name)||(t[r.name]=r.value??"")}),t}isCustomPropertySet(t){const r=getComputedStyle(this).getPropertyValue(t).trim();return r!=="inherit"&&r.length>0}applyCustomClass(t,r,n=""){var a,s;let e="";t.some(m=>this.isCustomPropertySet(m))&&(e=n),e&&((s=(a=this.shadowRoot)==null?void 0:a.querySelector(r))==null||s.classList.add(e))}removeDuplicateContent(){var a;const t=document.createTreeWalker(this,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{var m;return s.nodeType===Node.COMMENT_NODE||s.nodeType===Node.TEXT_NODE&&!((m=s.textContent)!=null&&m.trim())?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),r=new Map,n=[];let e;for(;e=t.nextNode();){let s;if(e.nodeType===Node.TEXT_NODE){const m=(a=e.textContent)==null?void 0:a.trim();if(!m)continue;s=`text:${m}`}else if(e instanceof HTMLElement){const m=Array.from(e.attributes).map(C=>`${C.name}=${C.value}`).sort().join(":");s=`element:${e.tagName}:${m}`}else continue;if(r.has(s)){const m=r.get(s);m&&m.parentNode&&n.push(m),r.set(s,e)}else r.set(s,e)}n.forEach(s=>{s.parentNode&&(console.log("Removing duplicate:",s),s.parentNode.removeChild(s))})}moveLightDomChildrenInto(t,r){let n;if(r&&r.length>0){n=r.filter(e=>this.contains(e)&&e!==t&&!e.contains(t));for(const e of n){const a=Array.from(t.childNodes).find(s=>{var m;return(m=s.isEqualNode)==null?void 0:m.call(s,e)});a&&t.removeChild(a)}}else n=Array.from(this.childNodes).filter(e=>e!==t&&!t.contains(e)&&!e.contains(t));for(const e of n)t.appendChild(e)}}fo([l.property({type:String,reflect:!0})],h.prototype,"customClass");function Oe(){const i=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=(i+Math.random()*16)%16|0;return(r=="x"?n:n&3|8).toString(16)})}const fr=d.css`
|
|
1
|
+
(function(o,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("lit"),require("lit/decorators.js"),require("lit/html.js"),require("lit/directive.js"),require("lit/async-directive.js"),require("lit/directives/if-defined.js"),require("lit/directives/unsafe-html.js"),require("lit-element"),require("@lit-labs/context"),require("lit/directives/ref.js")):typeof define=="function"&&define.amd?define(["exports","lit","lit/decorators.js","lit/html.js","lit/directive.js","lit/async-directive.js","lit/directives/if-defined.js","lit/directives/unsafe-html.js","lit-element","@lit-labs/context","lit/directives/ref.js"],d):(o=typeof globalThis<"u"?globalThis:o||self,d(o["rtg-ui-kit"]={},o.lit,o.decorators_js,o.html_js,o.directive_js,o.asyncDirective_js,o.ifDefined_js,o.unsafeHtml_js,o.litElement,o.context,o.ref_js))})(this,function(o,d,l,Tn,_e,An,Ln,ar,wt,nt,Mn){"use strict";function sr(i){var t,r,n="";if(typeof i=="string"||typeof i=="number")n+=i;else if(typeof i=="object")if(Array.isArray(i)){var e=i.length;for(t=0;t<e;t++)i[t]&&(r=sr(i[t]))&&(n&&(n+=" "),n+=r)}else for(r in i)i[r]&&(n&&(n+=" "),n+=r);return n}function lr(){for(var i,t,r=0,n="",e=arguments.length;r<e;r++)(i=arguments[r])&&(t=sr(i))&&(n&&(n+=" "),n+=t);return n}const xe="-",Nn=i=>{const t=zn(i),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=i;return{getClassGroupId:s=>{const m=s.split(xe);return m[0]===""&&m.length!==1&&m.shift(),cr(m,t)||qn(s)},getConflictingClassGroupIds:(s,m)=>{const C=r[s]||[];return m&&n[s]?[...C,...n[s]]:C}}},cr=(i,t)=>{var s;if(i.length===0)return t.classGroupId;const r=i[0],n=t.nextPart.get(r),e=n?cr(i.slice(1),n):void 0;if(e)return e;if(t.validators.length===0)return;const a=i.join(xe);return(s=t.validators.find(({validator:m})=>m(a)))==null?void 0:s.classGroupId},dr=/^\[(.+)\]$/,qn=i=>{if(dr.test(i)){const t=dr.exec(i)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},zn=i=>{const{theme:t,prefix:r}=i,n={nextPart:new Map,validators:[]};return Un(Object.entries(i.classGroups),r).forEach(([a,s])=>{Ee(s,n,a,t)}),n},Ee=(i,t,r,n)=>{i.forEach(e=>{if(typeof e=="string"){const a=e===""?t:ur(t,e);a.classGroupId=r;return}if(typeof e=="function"){if(Bn(e)){Ee(e(n),t,r,n);return}t.validators.push({validator:e,classGroupId:r});return}Object.entries(e).forEach(([a,s])=>{Ee(s,ur(t,a),r,n)})})},ur=(i,t)=>{let r=i;return t.split(xe).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Bn=i=>i.isThemeGetter,Un=(i,t)=>t?i.map(([r,n])=>{const e=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,m])=>[t+s,m])):a);return[r,e]}):i,Fn=i=>{if(i<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const e=(a,s)=>{r.set(a,s),t++,t>i&&(t=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return e(a,s),s},set(a,s){r.has(a)?r.set(a,s):e(a,s)}}},gr="!",Gn=i=>{const{separator:t,experimentalParseClassName:r}=i,n=t.length===1,e=t[0],a=t.length,s=m=>{const C=[];let b=0,w=0,E;for(let P=0;P<m.length;P++){let M=m[P];if(b===0){if(M===e&&(n||m.slice(P,P+a)===t)){C.push(m.slice(w,P)),w=P+a;continue}if(M==="/"){E=P;continue}}M==="["?b++:M==="]"&&b--}const N=C.length===0?m:m.substring(w),F=N.startsWith(gr),L=F?N.substring(1):N,z=E&&E>w?E-w:void 0;return{modifiers:C,hasImportantModifier:F,baseClassName:L,maybePostfixModifierPosition:z}};return r?m=>r({className:m,parseClassName:s}):s},Vn=i=>{if(i.length<=1)return i;const t=[];let r=[];return i.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},Hn=i=>({cache:Fn(i.cacheSize),parseClassName:Gn(i),...Nn(i)}),Yn=/\s+/,jn=(i,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:e}=t,a=[],s=i.trim().split(Yn);let m="";for(let C=s.length-1;C>=0;C-=1){const b=s[C],{modifiers:w,hasImportantModifier:E,baseClassName:N,maybePostfixModifierPosition:F}=r(b);let L=!!F,z=n(L?N.substring(0,F):N);if(!z){if(!L){m=b+(m.length>0?" "+m:m);continue}if(z=n(N),!z){m=b+(m.length>0?" "+m:m);continue}L=!1}const P=Vn(w).join(":"),M=E?P+gr:P,W=M+z;if(a.includes(W))continue;a.push(W);const X=e(z,L);for(let J=0;J<X.length;++J){const q=X[J];a.push(M+q)}m=b+(m.length>0?" "+m:m)}return m};function Wn(){let i=0,t,r,n="";for(;i<arguments.length;)(t=arguments[i++])&&(r=pr(t))&&(n&&(n+=" "),n+=r);return n}const pr=i=>{if(typeof i=="string")return i;let t,r="";for(let n=0;n<i.length;n++)i[n]&&(t=pr(i[n]))&&(r&&(r+=" "),r+=t);return r};function Xn(i,...t){let r,n,e,a=s;function s(C){const b=t.reduce((w,E)=>E(w),i());return r=Hn(b),n=r.cache.get,e=r.cache.set,a=m,m(C)}function m(C){const b=n(C);if(b)return b;const w=jn(C,r);return e(C,w),w}return function(){return a(Wn.apply(null,arguments))}}const V=i=>{const t=r=>r[i]||[];return t.isThemeGetter=!0,t},hr=/^\[(?:([a-z-]+):)?(.+)\]$/i,Kn=/^\d+\/\d+$/,Qn=new Set(["px","full","screen"]),Zn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,to=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,eo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ro=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gt=i=>It(i)||Qn.has(i)||Kn.test(i),pt=i=>Tt(i,"length",uo),It=i=>!!i&&!Number.isNaN(Number(i)),$e=i=>Tt(i,"number",It),Wt=i=>!!i&&Number.isInteger(Number(i)),no=i=>i.endsWith("%")&&It(i.slice(0,-1)),O=i=>hr.test(i),ht=i=>Zn.test(i),oo=new Set(["length","size","percentage"]),io=i=>Tt(i,oo,mr),ao=i=>Tt(i,"position",mr),so=new Set(["image","url"]),lo=i=>Tt(i,so,po),co=i=>Tt(i,"",go),Xt=()=>!0,Tt=(i,t,r)=>{const n=hr.exec(i);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},uo=i=>Jn.test(i)&&!to.test(i),mr=()=>!1,go=i=>eo.test(i),po=i=>ro.test(i),ho=Xn(()=>{const i=V("colors"),t=V("spacing"),r=V("blur"),n=V("brightness"),e=V("borderColor"),a=V("borderRadius"),s=V("borderSpacing"),m=V("borderWidth"),C=V("contrast"),b=V("grayscale"),w=V("hueRotate"),E=V("invert"),N=V("gap"),F=V("gradientColorStops"),L=V("gradientColorStopPositions"),z=V("inset"),P=V("margin"),M=V("opacity"),W=V("padding"),X=V("saturate"),J=V("scale"),q=V("sepia"),ft=V("skew"),vt=V("space"),it=V("translate"),tt=()=>["auto","contain","none"],kt=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",O,t],B=()=>[O,t],lt=()=>["",gt,pt],et=()=>["auto",It,O],K=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Q=()=>["solid","dashed","dotted","double","none"],bt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ct=()=>["start","end","center","between","around","evenly","stretch"],dt=()=>["","0",O],u=()=>["auto","avoid","all","avoid-page","page","left","right","column"],f=()=>[It,O];return{cacheSize:500,separator:":",theme:{colors:[Xt],spacing:[gt,pt],blur:["none","",ht,O],brightness:f(),borderColor:[i],borderRadius:["none","","full",ht,O],borderSpacing:B(),borderWidth:lt(),contrast:f(),grayscale:dt(),hueRotate:f(),invert:dt(),gap:B(),gradientColorStops:[i],gradientColorStopPositions:[no,pt],inset:G(),margin:G(),opacity:f(),padding:B(),saturate:f(),scale:f(),sepia:dt(),skew:f(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[ht]}],"break-after":[{"break-after":u()}],"break-before":[{"break-before":u()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...K(),O]}],overflow:[{overflow:kt()}],"overflow-x":[{"overflow-x":kt()}],"overflow-y":[{"overflow-y":kt()}],overscroll:[{overscroll:tt()}],"overscroll-x":[{"overscroll-x":tt()}],"overscroll-y":[{"overscroll-y":tt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[z]}],"inset-x":[{"inset-x":[z]}],"inset-y":[{"inset-y":[z]}],start:[{start:[z]}],end:[{end:[z]}],top:[{top:[z]}],right:[{right:[z]}],bottom:[{bottom:[z]}],left:[{left:[z]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Wt,O]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",O]}],grow:[{grow:dt()}],shrink:[{shrink:dt()}],order:[{order:["first","last","none",Wt,O]}],"grid-cols":[{"grid-cols":[Xt]}],"col-start-end":[{col:["auto",{span:["full",Wt,O]},O]}],"col-start":[{"col-start":et()}],"col-end":[{"col-end":et()}],"grid-rows":[{"grid-rows":[Xt]}],"row-start-end":[{row:["auto",{span:[Wt,O]},O]}],"row-start":[{"row-start":et()}],"row-end":[{"row-end":et()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",O]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",O]}],gap:[{gap:[N]}],"gap-x":[{"gap-x":[N]}],"gap-y":[{"gap-y":[N]}],"justify-content":[{justify:["normal",...ct()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ct(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ct(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[W]}],px:[{px:[W]}],py:[{py:[W]}],ps:[{ps:[W]}],pe:[{pe:[W]}],pt:[{pt:[W]}],pr:[{pr:[W]}],pb:[{pb:[W]}],pl:[{pl:[W]}],m:[{m:[P]}],mx:[{mx:[P]}],my:[{my:[P]}],ms:[{ms:[P]}],me:[{me:[P]}],mt:[{mt:[P]}],mr:[{mr:[P]}],mb:[{mb:[P]}],ml:[{ml:[P]}],"space-x":[{"space-x":[vt]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[vt]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",O,t]}],"min-w":[{"min-w":[O,t,"min","max","fit"]}],"max-w":[{"max-w":[O,t,"none","full","min","max","fit","prose",{screen:[ht]},ht]}],h:[{h:[O,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[O,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ht,pt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$e]}],"font-family":[{font:[Xt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",O]}],"line-clamp":[{"line-clamp":["none",It,$e]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",gt,O]}],"list-image":[{"list-image":["none",O]}],"list-style-type":[{list:["none","disc","decimal",O]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[i]}],"placeholder-opacity":[{"placeholder-opacity":[M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[i]}],"text-opacity":[{"text-opacity":[M]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",gt,pt]}],"underline-offset":[{"underline-offset":["auto",gt,O]}],"text-decoration-color":[{decoration:[i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[M]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...K(),ao]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",io]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lo]}],"bg-color":[{bg:[i]}],"gradient-from-pos":[{from:[L]}],"gradient-via-pos":[{via:[L]}],"gradient-to-pos":[{to:[L]}],"gradient-from":[{from:[F]}],"gradient-via":[{via:[F]}],"gradient-to":[{to:[F]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[m]}],"border-w-x":[{"border-x":[m]}],"border-w-y":[{"border-y":[m]}],"border-w-s":[{"border-s":[m]}],"border-w-e":[{"border-e":[m]}],"border-w-t":[{"border-t":[m]}],"border-w-r":[{"border-r":[m]}],"border-w-b":[{"border-b":[m]}],"border-w-l":[{"border-l":[m]}],"border-opacity":[{"border-opacity":[M]}],"border-style":[{border:[...Q(),"hidden"]}],"divide-x":[{"divide-x":[m]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[m]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[M]}],"divide-style":[{divide:Q()}],"border-color":[{border:[e]}],"border-color-x":[{"border-x":[e]}],"border-color-y":[{"border-y":[e]}],"border-color-s":[{"border-s":[e]}],"border-color-e":[{"border-e":[e]}],"border-color-t":[{"border-t":[e]}],"border-color-r":[{"border-r":[e]}],"border-color-b":[{"border-b":[e]}],"border-color-l":[{"border-l":[e]}],"divide-color":[{divide:[e]}],"outline-style":[{outline:["",...Q()]}],"outline-offset":[{"outline-offset":[gt,O]}],"outline-w":[{outline:[gt,pt]}],"outline-color":[{outline:[i]}],"ring-w":[{ring:lt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[i]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[gt,pt]}],"ring-offset-color":[{"ring-offset":[i]}],shadow:[{shadow:["","inner","none",ht,co]}],"shadow-color":[{shadow:[Xt]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":[...bt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":bt()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[C]}],"drop-shadow":[{"drop-shadow":["","none",ht,O]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[E]}],saturate:[{saturate:[X]}],sepia:[{sepia:[q]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[C]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[E]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[X]}],"backdrop-sepia":[{"backdrop-sepia":[q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:f()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:f()}],animate:[{animate:["none","spin","ping","pulse","bounce",O]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[J]}],"scale-x":[{"scale-x":[J]}],"scale-y":[{"scale-y":[J]}],rotate:[{rotate:[Wt,O]}],"translate-x":[{"translate-x":[it]}],"translate-y":[{"translate-y":[it]}],"skew-x":[{"skew-x":[ft]}],"skew-y":[{"skew-y":[ft]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O]}],accent:[{accent:["auto",i]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O]}],"caret-color":[{caret:[i]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O]}],fill:[{fill:[i,"none"]}],"stroke-w":[{stroke:[gt,pt,$e]}],stroke:[{stroke:[i,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function p(...i){return ho(lr(i))}var mo=Object.defineProperty,fo=(i,t,r,n)=>{for(var e=void 0,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(t,r,e)||e);return e&&mo(t,r,e),e};class h extends d.LitElement{constructor(){super(),this.customClass=""}getAttributesToExclude(){return[]}getAttributesToRemoveFromParent(){return["class"]}removeParentAttributes(){this.getAttributesToRemoveFromParent().forEach(r=>{r==="class"&&this.hasAttribute("class")&&(this.customClass=this.getAttribute("class")||""),this.hasAttribute(r)&&this.removeAttribute(r)})}getFilteredAttributes(){const t={};return Array.from(this.attributes).forEach(r=>{this.getAttributesToExclude().includes(r.name)||(t[r.name]=r.value??"")}),t}isCustomPropertySet(t){const r=getComputedStyle(this).getPropertyValue(t).trim();return r!=="inherit"&&r.length>0}applyCustomClass(t,r,n=""){var a,s;let e="";t.some(m=>this.isCustomPropertySet(m))&&(e=n),e&&((s=(a=this.shadowRoot)==null?void 0:a.querySelector(r))==null||s.classList.add(e))}removeDuplicateContent(){var a;const t=document.createTreeWalker(this,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{var m;return s.nodeType===Node.COMMENT_NODE||s.nodeType===Node.TEXT_NODE&&!((m=s.textContent)!=null&&m.trim())?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),r=new Map,n=[];let e;for(;e=t.nextNode();){let s;if(e.nodeType===Node.TEXT_NODE){const m=(a=e.textContent)==null?void 0:a.trim();if(!m)continue;s=`text:${m}`}else if(e instanceof HTMLElement){const m=Array.from(e.attributes).map(C=>`${C.name}=${C.value}`).sort().join(":");s=`element:${e.tagName}:${m}`}else continue;if(r.has(s)){const m=r.get(s);m&&m.parentNode&&n.push(m),r.set(s,e)}else r.set(s,e)}n.forEach(s=>{s.parentNode&&(console.log("Removing duplicate:",s),s.parentNode.removeChild(s))})}moveLightDomChildrenInto(t,r){let n;if(r&&r.length>0){n=r.filter(e=>this.contains(e)&&e!==t&&!e.contains(t));for(const e of n){const a=Array.from(t.childNodes).find(s=>{var m;return(m=s.isEqualNode)==null?void 0:m.call(s,e)});a&&t.removeChild(a)}}else n=Array.from(this.childNodes).filter(e=>e!==t&&!t.contains(e)&&!e.contains(t));for(const e of n)t.appendChild(e)}}fo([l.property({type:String,reflect:!0})],h.prototype,"customClass");function Oe(){const i=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=(i+Math.random()*16)%16|0;return(r=="x"?n:n&3|8).toString(16)})}const fr=d.css`
|
|
2
2
|
@font-face {
|
|
3
3
|
font-family: 'GeistSans';
|
|
4
4
|
|
|
@@ -2859,7 +2859,7 @@ body {
|
|
|
2859
2859
|
.wrapper {
|
|
2860
2860
|
display: block;
|
|
2861
2861
|
}
|
|
2862
|
-
`;let Se=nr;customElements.define("shadow-wrapper",Se);const vo="rtg-flex rtg-h-9 rtg-w-full rtg-rounded-md rtg-border rtg-border-input rtg-bg-transparent rtg-px-3 rtg-py-1 rtg-text-sm rtg-shadow-sm rtg-transition-colors file:rtg-border-0 file:rtg-bg-transparent file:rtg-text-sm file:rtg-font-medium placeholder:rtg-text-muted-foreground focus-visible:rtg-outline-none focus-visible:rtg-ring-1 focus-visible:rtg-ring-ring disabled:rtg-opacity-50 input-base";class br extends An.AsyncDirective{constructor(){super(...arguments),this.prevData={}}render(t){return Tn.nothing}update(t,[r]){var n;this.element!==t.element&&(this.element=t.element),this.host=((n=t.options)===null||n===void 0?void 0:n.host)||this.element,this.apply(r),this.groom(r),this.prevData={...r}}apply(t){if(!t)return;const{prevData:r,element:n}=this;for(const e in t){const a=t[e];a!==r[e]&&(n[e]=a)}}groom(t){const{prevData:r,element:n}=this;if(r)for(const e in r)(!t||!(e in t)&&n[e]===r[e])&&(n[e]=void 0)}}_e.directive(br);class yr extends br{constructor(){super(...arguments),this.eventData={}}apply(t){if(t)for(const r in t){const n=t[r];n!==this.eventData[r]&&this.applyEvent(r,n)}}applyEvent(t,r){const{prevData:n,element:e}=this;this.eventData[t]=r,n[t]&&e.removeEventListener(t,this,r),e.addEventListener(t,this,r)}groom(t){const{prevData:r,element:n}=this;if(r)for(const e in r)(!t||!(e in t)&&n[e]===r[e])&&this.groomEvent(e,r[e])}groomEvent(t,r){const{element:n}=this;delete this.eventData[t],n.removeEventListener(t,this,r)}handleEvent(t){const r=this.eventData[t.type];typeof r=="function"?r.call(this.host,t):r.handleEvent(t)}disconnected(){const{eventData:t,element:r}=this;for(const n in t){const e=n.slice(1),a=t[n];r.removeEventListener(e,this,a)}}reconnected(){const{eventData:t,element:r}=this;for(const n in t){const e=n.slice(1),a=t[n];r.addEventListener(e,this,a)}}}_e.directive(yr);class bo extends yr{apply(t){if(!t)return;const{prevData:r,element:n}=this;for(const e in t){const a=t[e];if(a===r[e])continue;const s=e.slice(1);switch(e[0]){case"@":this.eventData[s]=a,this.applyEvent(s,a);break;case".":n[s]=a;break;case"?":a?n.setAttribute(s,""):n.removeAttribute(s);break;default:a!=null?n.setAttribute(e,String(a)):n.removeAttribute(e);break}}}groom(t){const{prevData:r,element:n}=this;if(r)for(const e in r){const a=e.slice(1);if(!t||!(e in t)&&n[a]===r[e])switch(e[0]){case"@":this.groomEvent(a,r[e]);break;case".":n[a]=void 0;break;case"?":n.removeAttribute(a);break;default:n.removeAttribute(e);break}}}}const H=_e.directive(bo);var yo=Object.defineProperty,wo=Object.getOwnPropertyDescriptor,
|
|
2862
|
+
`;let Se=nr;customElements.define("shadow-wrapper",Se);const vo="rtg-flex rtg-h-9 rtg-w-full rtg-rounded-md rtg-border rtg-border-input rtg-bg-transparent rtg-px-3 rtg-py-1 rtg-text-sm rtg-shadow-sm rtg-transition-colors file:rtg-border-0 file:rtg-bg-transparent file:rtg-text-sm file:rtg-font-medium placeholder:rtg-text-muted-foreground focus-visible:rtg-outline-none focus-visible:rtg-ring-1 focus-visible:rtg-ring-ring disabled:rtg-opacity-50 input-base";class br extends An.AsyncDirective{constructor(){super(...arguments),this.prevData={}}render(t){return Tn.nothing}update(t,[r]){var n;this.element!==t.element&&(this.element=t.element),this.host=((n=t.options)===null||n===void 0?void 0:n.host)||this.element,this.apply(r),this.groom(r),this.prevData={...r}}apply(t){if(!t)return;const{prevData:r,element:n}=this;for(const e in t){const a=t[e];a!==r[e]&&(n[e]=a)}}groom(t){const{prevData:r,element:n}=this;if(r)for(const e in r)(!t||!(e in t)&&n[e]===r[e])&&(n[e]=void 0)}}_e.directive(br);class yr extends br{constructor(){super(...arguments),this.eventData={}}apply(t){if(t)for(const r in t){const n=t[r];n!==this.eventData[r]&&this.applyEvent(r,n)}}applyEvent(t,r){const{prevData:n,element:e}=this;this.eventData[t]=r,n[t]&&e.removeEventListener(t,this,r),e.addEventListener(t,this,r)}groom(t){const{prevData:r,element:n}=this;if(r)for(const e in r)(!t||!(e in t)&&n[e]===r[e])&&this.groomEvent(e,r[e])}groomEvent(t,r){const{element:n}=this;delete this.eventData[t],n.removeEventListener(t,this,r)}handleEvent(t){const r=this.eventData[t.type];typeof r=="function"?r.call(this.host,t):r.handleEvent(t)}disconnected(){const{eventData:t,element:r}=this;for(const n in t){const e=n.slice(1),a=t[n];r.removeEventListener(e,this,a)}}reconnected(){const{eventData:t,element:r}=this;for(const n in t){const e=n.slice(1),a=t[n];r.addEventListener(e,this,a)}}}_e.directive(yr);class bo extends yr{apply(t){if(!t)return;const{prevData:r,element:n}=this;for(const e in t){const a=t[e];if(a===r[e])continue;const s=e.slice(1);switch(e[0]){case"@":this.eventData[s]=a,this.applyEvent(s,a);break;case".":n[s]=a;break;case"?":a?n.setAttribute(s,""):n.removeAttribute(s);break;default:a!=null?n.setAttribute(e,String(a)):n.removeAttribute(e);break}}}groom(t){const{prevData:r,element:n}=this;if(r)for(const e in r){const a=e.slice(1);if(!t||!(e in t)&&n[a]===r[e])switch(e[0]){case"@":this.groomEvent(a,r[e]);break;case".":n[a]=void 0;break;case"?":n.removeAttribute(a);break;default:n.removeAttribute(e);break}}}}const H=_e.directive(bo);var yo=Object.defineProperty,wo=Object.getOwnPropertyDescriptor,Ct=(i,t,r,n)=>{for(var e=n>1?void 0:n?wo(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&yo(t,r,e),e};o.RtgInput=class extends h{constructor(){super(),this.disabled=!1,this.type="text",this.placeholder="",this.defaultValue="",this.value="",this.dataKey="",this.value=this.value||this.defaultValue}firstUpdated(t){this.removeParentAttributes();const r=["--input-border-radius","--input-padding"];this.applyCustomClass(r,"input","input-base"),this.type!=="file"&&this.defaultValue&&(this.value=this.defaultValue)}handleInputChange(t){const r=t.target;r.type==="file"?this.value=r.files?r.files[0].name:"":this.value=r.value}handleFocus(){this.dispatchEvent(new CustomEvent("focus",{bubbles:!0,composed:!0,detail:{dataKey:this.dataKey}}))}getAttributesToExclude(){return["disabled","type","placeholder","value","data-testid","custom-class","data-key"]}getAttributesToRemoveFromParent(){return["class"]}createRenderRoot(){return this}render(){const t=this.getFilteredAttributes();return d.html`
|
|
2863
2863
|
<input
|
|
2864
2864
|
part="input"
|
|
2865
2865
|
type="${this.type}"
|
|
@@ -2867,10 +2867,11 @@ body {
|
|
|
2867
2867
|
?disabled=${this.disabled}
|
|
2868
2868
|
.value=${this.type!=="file"?this.value:""}
|
|
2869
2869
|
@change="${this.handleInputChange}"
|
|
2870
|
+
@focus="${this.handleFocus}"
|
|
2870
2871
|
${H(t)}
|
|
2871
2872
|
class="${p(vo,this.customClass)}"
|
|
2872
2873
|
/>
|
|
2873
|
-
`}},
|
|
2874
|
+
`}},Ct([l.property({type:Boolean})],o.RtgInput.prototype,"disabled",2),Ct([l.property({type:String})],o.RtgInput.prototype,"type",2),Ct([l.property({type:String})],o.RtgInput.prototype,"placeholder",2),Ct([l.property({type:String})],o.RtgInput.prototype,"defaultValue",2),Ct([l.property({type:String})],o.RtgInput.prototype,"value",2),Ct([l.property({type:String,attribute:"data-key"})],o.RtgInput.prototype,"dataKey",2),o.RtgInput=Ct([l.customElement("rtg-input")],o.RtgInput);const wr=i=>typeof i=="boolean"?`${i}`:i===0?"0":i,Cr=lr,Z=(i,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Cr(i,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:e,defaultVariants:a}=t,s=Object.keys(e).map(b=>{const w=r==null?void 0:r[b],E=a==null?void 0:a[b];if(w===null)return null;const N=wr(w)||wr(E);return e[b][N]}),m=r&&Object.entries(r).reduce((b,w)=>{let[E,N]=w;return N===void 0||(b[E]=N),b},{}),C=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((b,w)=>{let{class:E,className:N,...F}=w;return Object.entries(F).every(L=>{let[z,P]=L;return Array.isArray(P)?P.includes({...a,...m}[z]):{...a,...m}[z]===P})?[...b,E,N]:b},[]);return Cr(i,s,C,r==null?void 0:r.class,r==null?void 0:r.className)},Co=Z("rtg-text-sm rtg-font-medium rtg-leading-none peer-disabled:rtg-cursor-not-allowed peer-disabled:rtg-opacity-70");var _o=Object.defineProperty,xo=Object.getOwnPropertyDescriptor,_r=(i,t,r,n)=>{for(var e=n>1?void 0:n?xo(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&_o(t,r,e),e};o.Label=class extends h{constructor(){super(...arguments),this.for=""}firstUpdated(t){const r=["--label-text-color","--label-padding"];this.applyCustomClass(r,"label","label-base")}getAttributesToExclude(){return["for","data-testid","class"]}createRenderRoot(){return this}render(){const t=this.getFilteredAttributes();return d.html`
|
|
2874
2875
|
<label
|
|
2875
2876
|
${H(t)}
|
|
2876
2877
|
part="label"
|
|
@@ -2967,7 +2968,7 @@ body {
|
|
|
2967
2968
|
</div>`:""}
|
|
2968
2969
|
${this.message?d.html`<div part="alert-description">${this.message}</div>`:""}
|
|
2969
2970
|
</div>
|
|
2970
|
-
`}},o.Alert.alertVariants=Er,Kt([l.property({type:String})],o.Alert.prototype,"title",2),Kt([l.property({type:String})],o.Alert.prototype,"message",2),Kt([l.property({type:String})],o.Alert.prototype,"variant",2),Kt([l.property({type:String})],o.Alert.prototype,"size",2),o.Alert=Kt([l.customElement("rtg-alert")],o.Alert);const Ho=Z("rtg-inline-flex rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-sm rtg-text-sm rtg-font-medium rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-1 focus-visible:rtg-ring-ring disabled:rtg-pointer-events-none disabled:rtg-opacity-50",{variants:{variant:{outline:"rtg-border rtg-border-input rtg-bg-transparent rtg-shadow-sm hover:rtg-bg-accent hover:rtg-text-accent-foreground"},size:{default:"rtg-h-7 rtg-w-7 rtg-p-0"}},defaultVariants:{variant:"outline",size:"default"}}),Yo=Z("rtg-inline-flex rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-md rtg-text-sm rtg-font-medium rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-1 focus-visible:rtg-ring-ring disabled:rtg-pointer-events-none disabled:rtg-opacity-50",{variants:{variant:{default:"rtg-bg-primary rtg-text-primary-foreground rtg-shadow hover:rtg-bg-primary/90",destructive:"rtg-bg-destructive rtg-text-destructive-foreground rtg-shadow-sm hover:rtg-bg-destructive/90",outline:"rtg-border rtg-border-input rtg-bg-background rtg-shadow-sm hover:rtg-bg-accent hover:rtg-text-accent-foreground",secondary:"rtg-bg-secondary rtg-text-secondary-foreground rtg-shadow-sm hover:rtg-bg-secondary/80",ghost:"hover:rtg-bg-accent hover:rtg-text-accent-foreground",link:"rtg-text-primary rtg-underline-offset-4 hover:rtg-underline"},size:{default:"rtg-h-8 rtg-rounded-md rtg-px-4 rtg-py-2",sm:"rtg-h-7 rtg-rounded-sm rtg-px-3 rtg-text-xs",lg:"rtg-h-9 rtg-rounded-md rtg-px-8",icon:"rtg-h-8 rtg-w-8"}},defaultVariants:{variant:"default",size:"default"}});var jo=Object.defineProperty,Wo=Object.getOwnPropertyDescriptor,
|
|
2971
|
+
`}},o.Alert.alertVariants=Er,Kt([l.property({type:String})],o.Alert.prototype,"title",2),Kt([l.property({type:String})],o.Alert.prototype,"message",2),Kt([l.property({type:String})],o.Alert.prototype,"variant",2),Kt([l.property({type:String})],o.Alert.prototype,"size",2),o.Alert=Kt([l.customElement("rtg-alert")],o.Alert);const Ho=Z("rtg-inline-flex rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-sm rtg-text-sm rtg-font-medium rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-1 focus-visible:rtg-ring-ring disabled:rtg-pointer-events-none disabled:rtg-opacity-50",{variants:{variant:{outline:"rtg-border rtg-border-input rtg-bg-transparent rtg-shadow-sm hover:rtg-bg-accent hover:rtg-text-accent-foreground"},size:{default:"rtg-h-7 rtg-w-7 rtg-p-0"}},defaultVariants:{variant:"outline",size:"default"}}),Yo=Z("rtg-inline-flex rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-md rtg-text-sm rtg-font-medium rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-1 focus-visible:rtg-ring-ring disabled:rtg-pointer-events-none disabled:rtg-opacity-50",{variants:{variant:{default:"rtg-bg-primary rtg-text-primary-foreground rtg-shadow hover:rtg-bg-primary/90",destructive:"rtg-bg-destructive rtg-text-destructive-foreground rtg-shadow-sm hover:rtg-bg-destructive/90",outline:"rtg-border rtg-border-input rtg-bg-background rtg-shadow-sm hover:rtg-bg-accent hover:rtg-text-accent-foreground",secondary:"rtg-bg-secondary rtg-text-secondary-foreground rtg-shadow-sm hover:rtg-bg-secondary/80",ghost:"hover:rtg-bg-accent hover:rtg-text-accent-foreground",link:"rtg-text-primary rtg-underline-offset-4 hover:rtg-underline"},size:{default:"rtg-h-8 rtg-rounded-md rtg-px-4 rtg-py-2",sm:"rtg-h-7 rtg-rounded-sm rtg-px-3 rtg-text-xs",lg:"rtg-h-9 rtg-rounded-md rtg-px-8",icon:"rtg-h-8 rtg-w-8"}},defaultVariants:{variant:"default",size:"default"}});var jo=Object.defineProperty,Wo=Object.getOwnPropertyDescriptor,_t=(i,t,r,n)=>{for(var e=n>1?void 0:n?Wo(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&jo(t,r,e),e};o.Button=class extends h{constructor(){super(...arguments),this.click=()=>{},this.disabled=!1,this.type="button",this.variant="default",this.size="default"}handleClick(){this.disabled||this.click()}createRenderRoot(){return this}getAttributesToExclude(){return["click","disabled","type","variant","size","data-testid","custom-class"]}getAttributesToRemoveFromParent(){return["class"]}firstUpdated(){this.moveLightDomChildrenInto(this.buttonElement),this.removeParentAttributes()}render(){const t=this.getFilteredAttributes();return d.html`
|
|
2971
2972
|
<button
|
|
2972
2973
|
part="button"
|
|
2973
2974
|
type="${this.type}"
|
|
@@ -2976,7 +2977,7 @@ body {
|
|
|
2976
2977
|
class="${p(o.Button.buttonVariants({variant:this.variant,size:this.size,className:this.customClass}))}"
|
|
2977
2978
|
@click="${this.handleClick}"
|
|
2978
2979
|
></button>
|
|
2979
|
-
`}},o.Button.buttonVariants=Yo,
|
|
2980
|
+
`}},o.Button.buttonVariants=Yo,_t([l.property({type:Function})],o.Button.prototype,"click",2),_t([l.property({type:Boolean})],o.Button.prototype,"disabled",2),_t([l.property({type:String})],o.Button.prototype,"type",2),_t([l.property({type:String})],o.Button.prototype,"variant",2),_t([l.property({type:String})],o.Button.prototype,"size",2),_t([l.query("button")],o.Button.prototype,"buttonElement",2),o.Button=_t([l.customElement("rtg-button")],o.Button);var Xo=Object.defineProperty,Ko=Object.getOwnPropertyDescriptor,mt=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ko(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Xo(t,r,e),e};o.Calendar=class extends d.LitElement{constructor(){super(...arguments),this.currentDate=new Date,this.selectedStartDate=null,this.selectedEndDate=null,this.variant="outline",this.size="default",this.styleCalendar=!1,this.mode="single"}getDaysInMonth(t,r){return new Date(t,r+1,0).getDate()}previousMonth(){this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth()-1)}nextMonth(){this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth()+1)}selectDate(t,r){if(!r){const n=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth(),t);n.getMonth()===this.currentDate.getMonth()&&(this.mode==="single"?(this.selectedStartDate=n,this.selectedEndDate=null):this.mode==="range"&&(!this.selectedStartDate||this.selectedEndDate?(this.selectedStartDate=n,this.selectedEndDate=null):n>=this.selectedStartDate?this.selectedEndDate=n:(this.selectedEndDate=this.selectedStartDate,this.selectedStartDate=n)),this.dispatchEvent(new CustomEvent("date-selected",{detail:{startDate:this.selectedStartDate,endDate:this.selectedEndDate},bubbles:!0,composed:!0})))}}isDayInRange(t){return!this.selectedStartDate||!this.selectedEndDate||t.getMonth()!==this.currentDate.getMonth()?!1:t>=this.selectedStartDate&&t<=this.selectedEndDate}createRenderRoot(){return this}render(){const t=this.currentDate.getFullYear(),r=this.currentDate.getMonth(),n=this.getDaysInMonth(t,r),e=new Date(t,r,1).getDay(),a=new Date(t,r,0).getDate();let s=Array.from({length:e},(m,C)=>({day:(a-(e-1)+C).toString(),isInactive:!0,isCurrentMonth:!1}));return s=s.concat(Array.from({length:n},(m,C)=>({day:(C+1).toString(),isInactive:!1,isCurrentMonth:!0}))),d.html`
|
|
2980
2981
|
<div
|
|
2981
2982
|
part="calendar"
|
|
2982
2983
|
style="
|
|
@@ -3205,7 +3206,7 @@ body {
|
|
|
3205
3206
|
</rtg-popover-content>
|
|
3206
3207
|
</rtg-popover>
|
|
3207
3208
|
</div>
|
|
3208
|
-
`}},Or([l.property({type:Object})],o.DatePicker.prototype,"selectedDate",2),o.DatePicker=Or([l.customElement("rtg-date-picker")],o.DatePicker);var
|
|
3209
|
+
`}},Or([l.property({type:Object})],o.DatePicker.prototype,"selectedDate",2),o.DatePicker=Or([l.customElement("rtg-date-picker")],o.DatePicker);var xt=(i=>(i.MULTIPLE="multiple",i.SINGLE="single",i))(xt||{}),si=Object.defineProperty,li=Object.getOwnPropertyDescriptor,Re=(i,t,r,n)=>{for(var e=n>1?void 0:n?li(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&si(t,r,e),e};o.AccordionItem=class extends h{constructor(){super(...arguments),this.value="",this.tabindex=0,this._initialChildren=[],this._onClick=t=>{const r=t.target.closest("rtg-accordion-trigger");!r||!this._accordion||(t.preventDefault(),t.stopPropagation(),this._accordion.raiseEvent(this.value),r.requestUpdate(),setTimeout(()=>this.requestUpdate(),0))},this._onAccordionClick=()=>{this.requestUpdate()}}get _accordion(){let t=this.parentElement;for(;t&&!(t instanceof o.Accordion);)t=t.parentElement;return t}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}createRenderRoot(){return this}connectedCallback(){var t;super.connectedCallback(),this._initialChildren=this.filterChildren(),this.addEventListener("click",this._onClick),(t=this._accordion)==null||t.addEventListener("clicked-accordion",this._onAccordionClick)}disconnectedCallback(){var t;super.disconnectedCallback(),this.removeEventListener("click",this._onClick),(t=this._accordion)==null||t.removeEventListener("clicked-accordion",this._onAccordionClick)}filterChildren(){return Array.from(this.children).filter(t=>t instanceof o.AccordionTrigger||t instanceof o.AccordionContent)}render(){var n;const t=(n=this._accordion)==null?void 0:n.selectedItems.includes(this.value),r=this._initialChildren.length?this._initialChildren:this.filterChildren();return d.html`
|
|
3209
3210
|
<div
|
|
3210
3211
|
data-state=${t?"open":"closed"}
|
|
3211
3212
|
class="${p("rtg-w-full rtg-border-b",this.className)}"
|
|
@@ -3373,7 +3374,7 @@ body {
|
|
|
3373
3374
|
${ar.unsafeHTML(((r=this.textContent)==null?void 0:r.trim())||"")}
|
|
3374
3375
|
</div>
|
|
3375
3376
|
</div>
|
|
3376
|
-
`}},o.AccordionContent=yi([l.customElement("rtg-accordion-content")],o.AccordionContent);var wi=Object.defineProperty,Ci=Object.getOwnPropertyDescriptor,Dr=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ci(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&wi(t,r,e),e};o.Accordion=class extends h{constructor(){super(...arguments),this.type=
|
|
3377
|
+
`}},o.AccordionContent=yi([l.customElement("rtg-accordion-content")],o.AccordionContent);var wi=Object.defineProperty,Ci=Object.getOwnPropertyDescriptor,Dr=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ci(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&wi(t,r,e),e};o.Accordion=class extends h{constructor(){super(...arguments),this.type=xt.MULTIPLE,this.selectedItems=[],this._initialChildren=[]}getAttributesToExclude(){return["variant","data-testid"]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._initialChildren=Array.from(this.children).filter(t=>t instanceof o.AccordionItem)}willUpdate(t){t.has("type")&&(this.type===xt.SINGLE&&this.selectedItems.length>1&&(this.selectedItems=this.selectedItems.slice(0,1)),this._initialChildren.forEach(r=>{r instanceof o.AccordionItem&&r.requestUpdate()}))}updated(t){t.has("type")&&this._initialChildren.forEach(r=>{r instanceof o.AccordionItem&&r.requestUpdate()})}setSelectedItems(t){const r=this.selectedItems.indexOf(t);if(r>-1)if(this.type===xt.SINGLE)this.selectedItems=[];else if(this.type===xt.MULTIPLE)this.selectedItems.splice(r,1);else throw new Error("Invalid accordion type");else if(this.type===xt.SINGLE)this.selectedItems=[t];else if(this.type===xt.MULTIPLE)this.selectedItems.push(t);else throw new Error("Invalid accordion type")}raiseEvent(t){this.setSelectedItems(t),this.dispatchEvent(new CustomEvent("clicked-accordion",{bubbles:!0,composed:!0,detail:{selectedItems:this.selectedItems}}))}render(){const t=this._initialChildren.length?this._initialChildren:Array.from(this.children).filter(r=>r instanceof o.AccordionItem);return d.html`
|
|
3377
3378
|
<div
|
|
3378
3379
|
data-orientation="vertical"
|
|
3379
3380
|
${H(this.getFilteredAttributes())}
|
|
@@ -3881,7 +3882,7 @@ body {
|
|
|
3881
3882
|
data-value="${this.value}"
|
|
3882
3883
|
aria-hidden="${this.hidden}"
|
|
3883
3884
|
></div>
|
|
3884
|
-
`}`}},te([l.property({type:String})],o.DropdownMenuItem.prototype,"_id",2),te([l.property({attribute:"aria-hidden",type:String})],o.DropdownMenuItem.prototype,"_hidden",2),te([l.property({attribute:"data-value",type:String})],o.DropdownMenuItem.prototype,"value",1),te([l.property({type:Boolean})],o.DropdownMenuItem.prototype,"selected",2),o.DropdownMenuItem=te([l.customElement("rtg-dropdown-menu-item")],o.DropdownMenuItem);var js=Object.defineProperty,Ws=Object.getOwnPropertyDescriptor,
|
|
3885
|
+
`}`}},te([l.property({type:String})],o.DropdownMenuItem.prototype,"_id",2),te([l.property({attribute:"aria-hidden",type:String})],o.DropdownMenuItem.prototype,"_hidden",2),te([l.property({attribute:"data-value",type:String})],o.DropdownMenuItem.prototype,"value",1),te([l.property({type:Boolean})],o.DropdownMenuItem.prototype,"selected",2),o.DropdownMenuItem=te([l.customElement("rtg-dropdown-menu-item")],o.DropdownMenuItem);var js=Object.defineProperty,Ws=Object.getOwnPropertyDescriptor,Et=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ws(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&js(t,r,e),e};o.DropdownMenuRadioItem=class extends h{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}get _containerElement(){return this.querySelector("div[part=dropdown-menu-radio-item-container]")}handleMouseEvent(t){(t.type==="mouseover"||t.type==="focus")&&(this.selected=!0),t.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3885
3886
|
<div
|
|
3886
3887
|
part="dropdown-menu-radio"
|
|
3887
3888
|
class="${p(Us,this.disabled?"rtg-pointer-events-none rtg-opacity-50":"",this.className)}"
|
|
@@ -3904,7 +3905,7 @@ body {
|
|
|
3904
3905
|
</span>
|
|
3905
3906
|
<div part="dropdown-menu-radio-item-container"></div>
|
|
3906
3907
|
</div>
|
|
3907
|
-
`}},
|
|
3908
|
+
`}},Et([l.property({type:String})],o.DropdownMenuRadioItem.prototype,"_id",2),Et([l.property({attribute:"aria-hidden",type:String})],o.DropdownMenuRadioItem.prototype,"_hidden",2),Et([l.property({attribute:"data-value",type:String})],o.DropdownMenuRadioItem.prototype,"value",1),Et([l.property({type:Boolean})],o.DropdownMenuRadioItem.prototype,"selected",2),Et([l.property({type:Boolean})],o.DropdownMenuRadioItem.prototype,"checked",2),Et([l.property({type:Boolean})],o.DropdownMenuRadioItem.prototype,"disabled",2),o.DropdownMenuRadioItem=Et([l.customElement("rtg-dropdown-menu-radio-item")],o.DropdownMenuRadioItem);var Xs=Object.getOwnPropertyDescriptor,Ks=(i,t,r,n)=>{for(var e=n>1?void 0:n?Xs(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.DropdownMenuSeparator=class extends h{get _containerElement(){return this.querySelector("div[part=dropdown-menu-seperator]")}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`<div
|
|
3908
3909
|
part="dropdown-menu-seperator"
|
|
3909
3910
|
class="${p(Fs,this.className)}"
|
|
3910
3911
|
rtgcmd-separator
|
|
@@ -3958,7 +3959,7 @@ body {
|
|
|
3958
3959
|
class="${p("rtg-w-fit",this.className)}"
|
|
3959
3960
|
part="dropdown-menu"
|
|
3960
3961
|
></div>
|
|
3961
|
-
`}},o.DropdownMenu._openInstance=null,Vr([l.state()],o.DropdownMenu.prototype,"isOpen",2),o.DropdownMenu=Vr([l.customElement("rtg-dropdown-menu")],o.DropdownMenu);const il="rtg-flex rtg-min-h-[80px] rtg-w-full rtg-rounded-md rtg-border rtg-border-input rtg-bg-background rtg-px-3 rtg-py-2 rtg-text-sm rtg-ring-offset-background placeholder:rtg-text-muted-foreground focus-visible:rtg-outline-none focus-visible:rtg-ring-2 focus-visible:rtg-ring-ring focus-visible:rtg-ring-offset-2 disabled:rtg-cursor-not-allowed disabled:rtg-opacity-50";var al=Object.defineProperty,sl=Object.getOwnPropertyDescriptor
|
|
3962
|
+
`}},o.DropdownMenu._openInstance=null,Vr([l.state()],o.DropdownMenu.prototype,"isOpen",2),o.DropdownMenu=Vr([l.customElement("rtg-dropdown-menu")],o.DropdownMenu);const il="rtg-flex rtg-min-h-[80px] rtg-w-full rtg-rounded-md rtg-border rtg-border-input rtg-bg-background rtg-px-3 rtg-py-2 rtg-text-sm rtg-ring-offset-background placeholder:rtg-text-muted-foreground focus-visible:rtg-outline-none focus-visible:rtg-ring-2 focus-visible:rtg-ring-ring focus-visible:rtg-ring-offset-2 disabled:rtg-cursor-not-allowed disabled:rtg-opacity-50";var al=Object.defineProperty,sl=Object.getOwnPropertyDescriptor,$t=(i,t,r,n)=>{for(var e=n>1?void 0:n?sl(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&al(t,r,e),e};o.TextArea=class extends h{constructor(){super(),this.disabled=!1,this.placeholder="",this.defaultValue="",this.rows=4,this.cols=50,this.value="",this.value=this.value||this.defaultValue}firstUpdated(t){this.value=this.defaultValue}handleInputChange(t){const r=t.target;this.value=r.value}getAttributesToExclude(){return["disabled","type","placeholder","value","data-testid"]}createRenderRoot(){return this}render(){const t=this.getFilteredAttributes();return d.html`
|
|
3962
3963
|
<textarea
|
|
3963
3964
|
part="textarea"
|
|
3964
3965
|
${H(t)}
|
|
@@ -3970,7 +3971,7 @@ body {
|
|
|
3970
3971
|
?disabled=${this.disabled}
|
|
3971
3972
|
@change="${this.handleInputChange}"
|
|
3972
3973
|
/>
|
|
3973
|
-
`}}
|
|
3974
|
+
`}},$t([l.property({type:Boolean})],o.TextArea.prototype,"disabled",2),$t([l.property({type:String})],o.TextArea.prototype,"placeholder",2),$t([l.property({type:String})],o.TextArea.prototype,"defaultValue",2),$t([l.property({type:Number})],o.TextArea.prototype,"rows",2),$t([l.property({type:Number})],o.TextArea.prototype,"cols",2),$t([l.property({type:String})],o.TextArea.prototype,"value",2),o.TextArea=$t([l.customElement("rtg-textarea")],o.TextArea);const ll="unChecked",cl="rtg-flex rtg-items-center rtg-space-x-2",dl="rtg-grid rtg-gap-2";var ul=Object.defineProperty,gl=Object.getOwnPropertyDescriptor,zt=(i,t,r,n)=>{for(var e=n>1?void 0:n?gl(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&ul(t,r,e),e};o.RadioGroupItem=class extends h{constructor(){super(...arguments),this.checked=!1,this.tabindex=0,this.value="",this.id="radio-group-item",this.state=ll}get _containerElement(){return this.querySelector("div[part=radio-group-item]")}_onClick(t){t.defaultPrevented||this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3974
3975
|
<div
|
|
3975
3976
|
class="${p(cl,this.className)}"
|
|
3976
3977
|
part="radio-group-item"
|
|
@@ -4185,7 +4186,7 @@ body {
|
|
|
4185
4186
|
<div class="${p("",this.className)}" rtgdlg-root part="drawer">
|
|
4186
4187
|
${this.state===Ve?d.html` <rtg-drawer-overlay></rtg-drawer-overlay>`:d.nothing}
|
|
4187
4188
|
</div>
|
|
4188
|
-
`}},Xr([l.property({attribute:"data-state",type:String})],o.Drawer.prototype,"state",2),o.Drawer=Xr([l.customElement("rtg-drawer")],o.Drawer);const sc="rtg-absolute rtg-z-50 rtg-mt-1 rtg-max-h-72 rtg-w-full rtg-overflow-hidden rtg-overflow-y-auto rtg-rounded-md rtg-border rtg-border-gray-200 rtg-bg-white rtg-px-1 rtg-py-2 rtg-shadow-md dark:rtg-border-neutral-700 dark:rtg-bg-neutral-900",lc="rtg-flex rtg-w-full rtg-cursor-pointer rtg-items-center rtg-justify-between rtg-rounded-lg rtg-px-4 rtg-py-2 hover:rtg-bg-gray-100 focus:rtg-bg-gray-100 focus:rtg-outline-none dark:rtg-bg-neutral-900 dark:rtg-text-neutral-200 dark:hover:rtg-bg-neutral-800 dark:focus:rtg-bg-neutral-800",cc="rtg-px-4 rtg-w-full rtg-text-base rtg-font-bold",dc="rtg-absolute rtg-z-50 rtg-max-h-72 rtg-w-full rtg-overflow-hidden rtg-overflow-y-auto rtg-rounded-lg rtg-border rtg-border-gray-200 bg-white p-1 dark:rtg-border-neutral-700 dark:rtg-bg-neutral-900 [&::-webkit-scrollbar-thumb]:rtg-rounded-full [&::-webkit-scrollbar-thumb]:rtg-bg-gray-300 dark:[&::-webkit-scrollbar-thumb]:rtg-bg-neutral-500 [&::-webkit-scrollbar-track]:rtg-bg-gray-100 dark:[&::-webkit-scrollbar-track]:rtg-bg-neutral-700 [&::-webkit-scrollbar]:rtg-w-2",uc="rtg-mx-1 rtg-h-px rtg-bg-border",gc="rtg-flex rtg-h-10 rtg-items-center rtg-justify-between rtg-rounded-md rtg-border rtg-border-input rtg-bg-background rtg-px-3 rtg-py-2 rtg-text-sm rtg-ring-offset-background placeholder:rtg-text-muted-foreground focus:rtg-outline-none focus:ring-2 focus:rtg-ring-ring focus:rtg-ring-offset-2 disabled:rtg-cursor-not-allowed disabled:rtg-opacity-50",pc="rtg-line-clamp-1 rtg-flex rtg-w-[180px]";var hc=Object.defineProperty,mc=Object.getOwnPropertyDescriptor
|
|
4189
|
+
`}},Xr([l.property({attribute:"data-state",type:String})],o.Drawer.prototype,"state",2),o.Drawer=Xr([l.customElement("rtg-drawer")],o.Drawer);const sc="rtg-absolute rtg-z-50 rtg-mt-1 rtg-max-h-72 rtg-w-full rtg-overflow-hidden rtg-overflow-y-auto rtg-rounded-md rtg-border rtg-border-gray-200 rtg-bg-white rtg-px-1 rtg-py-2 rtg-shadow-md dark:rtg-border-neutral-700 dark:rtg-bg-neutral-900",lc="rtg-flex rtg-w-full rtg-cursor-pointer rtg-items-center rtg-justify-between rtg-rounded-lg rtg-px-4 rtg-py-2 hover:rtg-bg-gray-100 focus:rtg-bg-gray-100 focus:rtg-outline-none dark:rtg-bg-neutral-900 dark:rtg-text-neutral-200 dark:hover:rtg-bg-neutral-800 dark:focus:rtg-bg-neutral-800",cc="rtg-px-4 rtg-w-full rtg-text-base rtg-font-bold",dc="rtg-absolute rtg-z-50 rtg-max-h-72 rtg-w-full rtg-overflow-hidden rtg-overflow-y-auto rtg-rounded-lg rtg-border rtg-border-gray-200 bg-white p-1 dark:rtg-border-neutral-700 dark:rtg-bg-neutral-900 [&::-webkit-scrollbar-thumb]:rtg-rounded-full [&::-webkit-scrollbar-thumb]:rtg-bg-gray-300 dark:[&::-webkit-scrollbar-thumb]:rtg-bg-neutral-500 [&::-webkit-scrollbar-track]:rtg-bg-gray-100 dark:[&::-webkit-scrollbar-track]:rtg-bg-neutral-700 [&::-webkit-scrollbar]:rtg-w-2",uc="rtg-mx-1 rtg-h-px rtg-bg-border",gc="rtg-flex rtg-h-10 rtg-items-center rtg-justify-between rtg-rounded-md rtg-border rtg-border-input rtg-bg-background rtg-px-3 rtg-py-2 rtg-text-sm rtg-ring-offset-background placeholder:rtg-text-muted-foreground focus:rtg-outline-none focus:ring-2 focus:rtg-ring-ring focus:rtg-ring-offset-2 disabled:rtg-cursor-not-allowed disabled:rtg-opacity-50",pc="rtg-line-clamp-1 rtg-flex rtg-w-[180px]";var hc=Object.defineProperty,mc=Object.getOwnPropertyDescriptor,Ot=(i,t,r,n)=>{for(var e=n>1?void 0:n?mc(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&hc(t,r,e),e};o.SelectItem=class extends h{constructor(){super(...arguments),this.value="",this.isSelected=!1,this.isFocus=!1,this.selectItemIndex=-1,this.onSelect=(t,r)=>{},this.class="",this._onStoreChange=()=>{var t,r;this.isSelected=this.value.toLowerCase()===((r=(t=this._select.selectStore.selectedValue)==null?void 0:t.toLowerCase)==null?void 0:r.call(t)),this.requestUpdate()},this.handleClick=t=>{t.stopPropagation(),this._select.selectStore.select(this.value),this.onSelect(this.value,this.selectItemIndex)}}get _select(){let t=this.parentElement;for(;t&&!(t instanceof o.Select);)t=t.parentElement;return t}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this._onStoreChange)}disconnectedCallback(){this._select.selectStore.unsubscribe(this._onStoreChange),super.disconnectedCallback()}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}get _containerElement(){return this.querySelector("div[part=select-item-container]")}createRenderRoot(){return this}render(){const t=this.getFilteredAttributes();return d.html`
|
|
4189
4190
|
<div
|
|
4190
4191
|
${H(t)}
|
|
4191
4192
|
@click=${this.handleClick}
|
|
@@ -4201,7 +4202,7 @@ body {
|
|
|
4201
4202
|
${Sr()}
|
|
4202
4203
|
</span>
|
|
4203
4204
|
</div>
|
|
4204
|
-
`}}
|
|
4205
|
+
`}},Ot([l.property()],o.SelectItem.prototype,"value",2),Ot([l.property()],o.SelectItem.prototype,"isSelected",2),Ot([l.property()],o.SelectItem.prototype,"isFocus",2),Ot([l.property()],o.SelectItem.prototype,"selectItemIndex",2),Ot([l.property({type:Function})],o.SelectItem.prototype,"onSelect",2),Ot([l.property()],o.SelectItem.prototype,"class",2),o.SelectItem=Ot([l.customElement("rtg-select-item")],o.SelectItem);var fc=Object.defineProperty,vc=Object.getOwnPropertyDescriptor,He=(i,t,r,n)=>{for(var e=n>1?void 0:n?vc(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&fc(t,r,e),e};o.SelectList=class extends h{constructor(){super(...arguments),this.state=Be,this.isOpen=!1}get _containerElement(){return this.querySelector("div[part=select-list]")}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}render(){return d.html`
|
|
4205
4206
|
<div
|
|
4206
4207
|
part="select-list"
|
|
4207
4208
|
class="${p(dc,this.className)}"
|
|
@@ -4372,7 +4373,7 @@ body {
|
|
|
4372
4373
|
>
|
|
4373
4374
|
<slot></slot>
|
|
4374
4375
|
</button>
|
|
4375
|
-
`}},o.Toggle.toggleVariants=od,Ut([l.property({type:Boolean})],o.Toggle.prototype,"disabled",2),Ut([l.property({attribute:!0,type:Boolean,reflect:!0})],o.Toggle.prototype,"checked",2),Ut([l.property({attribute:!0,type:Boolean,reflect:!0})],o.Toggle.prototype,"required",2),Ut([l.property({attribute:!0,type:String})],o.Toggle.prototype,"variant",2),Ut([l.property({attribute:!0,type:String})],o.Toggle.prototype,"size",2),o.Toggle=Ut([l.customElement("rtg-toggle")],o.Toggle);var ee=(i=>(i.MULTIPLE="multiple",i.SINGLE="single",i))(ee||{}),ue=(i=>(i.DEFAULT="default",i.OUTLINE="outline",i))(ue||{}),ge=(i=>(i.SMALL="sm",i.MEDIUM="md",i.LARGE="lg",i))(ge||{});const sd=Z("rtg-inline-flex rtg-items-center rtg-justify-center rtg-rounded-md rtg-text-sm rtg-font-medium rtg-ring-offset-background rtg-transition-colors 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=on]:rtg-bg-accent data-[state=on]:rtg-text-accent-foreground rtg-bg-transparent rtg-h-10 rtg-px-3",{variants:{variant:{default:" hover:rtg-bg-muted hover:rtg-text-muted-foreground",outline:" rtg-border rtg-border-input hover:rtg-bg-accent hover:rtg-text-accent-foreground"},size:{sm:"rtg-h-9 rtg-px-2.5",md:"rtg-h-10 rtg-px-3",lg:"rtg-h-11 rtg-px-5"}},defaultVariants:{variant:"default",size:"sm"}}),ld="rtg-flex rtg-items-center rtg-justify-center rtg-gap-1";var cd=Object.defineProperty,dd=Object.getOwnPropertyDescriptor,
|
|
4376
|
+
`}},o.Toggle.toggleVariants=od,Ut([l.property({type:Boolean})],o.Toggle.prototype,"disabled",2),Ut([l.property({attribute:!0,type:Boolean,reflect:!0})],o.Toggle.prototype,"checked",2),Ut([l.property({attribute:!0,type:Boolean,reflect:!0})],o.Toggle.prototype,"required",2),Ut([l.property({attribute:!0,type:String})],o.Toggle.prototype,"variant",2),Ut([l.property({attribute:!0,type:String})],o.Toggle.prototype,"size",2),o.Toggle=Ut([l.customElement("rtg-toggle")],o.Toggle);var ee=(i=>(i.MULTIPLE="multiple",i.SINGLE="single",i))(ee||{}),ue=(i=>(i.DEFAULT="default",i.OUTLINE="outline",i))(ue||{}),ge=(i=>(i.SMALL="sm",i.MEDIUM="md",i.LARGE="lg",i))(ge||{});const sd=Z("rtg-inline-flex rtg-items-center rtg-justify-center rtg-rounded-md rtg-text-sm rtg-font-medium rtg-ring-offset-background rtg-transition-colors 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=on]:rtg-bg-accent data-[state=on]:rtg-text-accent-foreground rtg-bg-transparent rtg-h-10 rtg-px-3",{variants:{variant:{default:" hover:rtg-bg-muted hover:rtg-text-muted-foreground",outline:" rtg-border rtg-border-input hover:rtg-bg-accent hover:rtg-text-accent-foreground"},size:{sm:"rtg-h-9 rtg-px-2.5",md:"rtg-h-10 rtg-px-3",lg:"rtg-h-11 rtg-px-5"}},defaultVariants:{variant:"default",size:"sm"}}),ld="rtg-flex rtg-items-center rtg-justify-center rtg-gap-1";var cd=Object.defineProperty,dd=Object.getOwnPropertyDescriptor,St=(i,t,r,n)=>{for(var e=n>1?void 0:n?dd(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&cd(t,r,e),e};let st=class extends h{constructor(){super(...arguments),this.checked=!1,this.id=Oe(),this.variant=ue.DEFAULT,this.size=ge.SMALL,this.disabled=!1,this.type=ee.SINGLE}get _parent(){let i=this.parentElement;for(;i&&!(i instanceof o.ToggleGroup);)i=i.parentElement;return i}get _containerElement(){return this.querySelector("button[part=toggle-group-item]")}get _siblings(){var t;return Array.from(((t=this.parentElement)==null?void 0:t.children)||[]).filter(r=>r!==this)}getAttributesToExclude(){return["disabled","type"]}createRenderRoot(){return this}firstUpdated(i){this.variant=this._parent.variant,this.size=this._parent.size,this.checked=this._parent.selectedItems.includes(this.id),this.type=this._parent.type,this.moveLightDomChildrenInto(this._containerElement)}updated(i){this.variant=this._parent.variant,this.size=this._parent.size,this.checked=this._parent.selectedItems.includes(this.id),this.type=this._parent.type}toggleSelection(i){try{if(this.disabled===!1){const t=this._parent.selectedItems.indexOf(i);this.type===ee.SINGLE?(t!==-1?this._parent.selectedItems.splice(t,1):this._parent.selectedItems[0]=i,this._siblings.forEach(r=>r.requestUpdate())):t!==-1?this._parent.selectedItems.splice(t,1):this._parent.selectedItems.push(i),this.requestUpdate()}}catch(t){console.log("error",t)}}render(){return wt.html`
|
|
4376
4377
|
<button
|
|
4377
4378
|
part="toggle-group-item"
|
|
4378
4379
|
id=${this.id}
|
|
@@ -4384,7 +4385,7 @@ body {
|
|
|
4384
4385
|
?disabled=${this.disabled}
|
|
4385
4386
|
@click=${()=>{this.toggleSelection(this.id)}}
|
|
4386
4387
|
></button>
|
|
4387
|
-
`}};st.toggleGroupVariants=sd,
|
|
4388
|
+
`}};st.toggleGroupVariants=sd,St([l.property({attribute:!0,type:Boolean,reflect:!0})],st.prototype,"checked",2),St([l.property({attribute:!0,type:String,reflect:!0})],st.prototype,"id",2),St([l.property({attribute:!0,type:String})],st.prototype,"variant",2),St([l.property({attribute:!0,type:String})],st.prototype,"size",2),St([l.property({type:Boolean})],st.prototype,"disabled",2),St([l.property({type:String})],st.prototype,"type",2),st=St([l.customElement("rtg-toggle-group-item")],st);var ud=Object.defineProperty,gd=Object.getOwnPropertyDescriptor,Pt=(i,t,r,n)=>{for(var e=n>1?void 0:n?gd(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&ud(t,r,e),e};o.ToggleGroup=class extends h{constructor(){super(...arguments),this.disabled=!1,this.type=ee.SINGLE,this.required=!1,this.variant=ue.DEFAULT,this.size=ge.SMALL,this.selectedItems=[]}get _containerElement(){return this.querySelector("div[part=toggle-group]")}getAttributesToExclude(){return["disabled","type","data-testid"]}connectedCallback(){super.connectedCallback()}firstUpdated(t){super.firstUpdated(t),this.moveLightDomChildrenInto(this._containerElement)}updated(t){(t.has("variant")||t.has("size")||t.has("disabled")||t.has("type"))&&this.querySelectorAll("rtg-toggle-group-item").forEach(r=>{r.variant=this.variant,r.size=this.size,r.disabled=this.disabled,r.type=this.type})}createRenderRoot(){return this}render(){const t=this.getFilteredAttributes();return wt.html`
|
|
4388
4389
|
<div
|
|
4389
4390
|
part="toggle-group"
|
|
4390
4391
|
role="group"
|
|
@@ -4392,7 +4393,7 @@ body {
|
|
|
4392
4393
|
class="${p(ld,this.className)}"
|
|
4393
4394
|
?disable="${this.disabled}"
|
|
4394
4395
|
></div>
|
|
4395
|
-
`}},
|
|
4396
|
+
`}},Pt([l.property({type:Boolean})],o.ToggleGroup.prototype,"disabled",2),Pt([l.property({type:String})],o.ToggleGroup.prototype,"type",2),Pt([l.property({attribute:!0,type:Boolean,reflect:!0})],o.ToggleGroup.prototype,"required",2),Pt([l.property({attribute:!0,type:String,reflect:!0})],o.ToggleGroup.prototype,"variant",2),Pt([l.property({attribute:!0,type:String})],o.ToggleGroup.prototype,"size",2),Pt([l.property({type:Array})],o.ToggleGroup.prototype,"selectedItems",2),o.ToggleGroup=Pt([l.customElement("rtg-toggle-group")],o.ToggleGroup);var pd=Object.defineProperty,hd=Object.getOwnPropertyDescriptor,Ft=(i,t,r,n)=>{for(var e=n>1?void 0:n?hd(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&pd(t,r,e),e};o.InputOtpSlot=class extends h{constructor(){super(...arguments),this.click=()=>{},this.index=0,this.isFirst=!1,this.isLast=!1,this.value=""}get _inputOtp(){let t=this.parentElement;for(;t&&!(t instanceof o.InputOtp);)t=t.parentElement;return t}firstUpdated(t){const r=this._inputOtp;r&&(r.inputes.push({index:r.inputes.length,value:"",isSelected:!1,userIndex:this.index}),r.addEventListener("selected-input",n=>{const e=this.querySelector(`input[name="input-${n.detail.selectedItems}"]`);e&&(e.focus(),n.detail.eventType==="changes"&&(e.value=""))}))}disconnectedCallback(){super.disconnectedCallback(),this._inputOtp&&this._inputOtp.removeEventListener("selected-input",()=>{})}getAttributesToExclude(){return[]}handleFocus(t){const r=this._inputOtp;if(!r)return;const n=r.inputes.findIndex(a=>a.value===""),e=this.index;if(n!==-1&&e>n){t.preventDefault(),t.stopImmediatePropagation();const a=n;r.raiseEvent(a,"focus")}}handleInputChange(t){const r=t.target;if(new RegExp(/^\d+$/).test(r.value)){const e=this._inputOtp;if(e){let a=e.inputes.findIndex(s=>s.index===this.index);e.inputes[a]={...e.inputes[a],value:r.value,isSelected:!1},a+1<e.inputes.length&&e.raiseEvent(a+1,"changes")}}else r.value=""}handleKeyDown(t){const r=t.target,n=this._inputOtp;if(!n)return;const e=n.inputes.findIndex(a=>a.index===this.index);switch(t.key){case"Backspace":{t.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&&e>=m){e>0&&n.raiseEvent(e-1,"focus");return}n.inputes[e].value="",r.value="";for(let w=e;w<n.inputes.length-1;w++){n.inputes[w].value=n.inputes[w+1].value;const E=n.querySelector(`input[name="input-${n.inputes[w].index}"]`);E&&(E.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(e,"focus");break}case"ArrowLeft":t.preventDefault(),e>0&&n.raiseEvent(e-1,"focus");break;case"ArrowRight":t.preventDefault(),e<n.maxLength-1&&n.raiseEvent(e+1,"focus");break}}handlePaste(t){var C;t.preventDefault();const r=this._inputOtp;if(!r)return;const e=(((C=t.clipboardData)==null?void 0:C.getData("text"))??"").replace(/\D/g,"").split("").slice(0);if(e.length===0)return;const a=r.inputes.findIndex(b=>b.index===this.index),s=r.maxLength-a;e.splice(s);for(let b=0;b<e.length;b++){const w=a+b;if(w>=r.maxLength)break;r.inputes[w].value=e[b];const E=r.querySelector(`input[name="input-${w}"]`);E&&(E.value=e[b])}const m=a+e.length;m<r.maxLength&&r.raiseEvent(m,"focus")}createRenderRoot(){return this}render(){const t={"rtg-h-[40px]":!0,"rtg-w-[40px]":!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,"last:rtg-rounded-r-md":this.isLast,"rtg-overflow-hidden":!0,"focus:rtg-border focus:rtg-border-[#c1c1c1] focus:rtg-border-[3px]":!0};return d.html`
|
|
4396
4397
|
<input
|
|
4397
4398
|
part="input-otp-slot"
|
|
4398
4399
|
auto-complete="one-time-code"
|
|
@@ -4653,7 +4654,7 @@ body {
|
|
|
4653
4654
|
id="${this.identifier}"
|
|
4654
4655
|
aria-hidden="${this.hidden}"
|
|
4655
4656
|
></div>
|
|
4656
|
-
`}`}},o.MenubarItem._counter=0,oe([l.property({type:String})],o.MenubarItem.prototype,"_id",2),oe([l.property({attribute:"aria-hidden",type:String})],o.MenubarItem.prototype,"_hidden",2),oe([l.property({attribute:"data-value",type:String})],o.MenubarItem.prototype,"value",1),oe([l.property({type:Boolean})],o.MenubarItem.prototype,"selected",2),o.MenubarItem=oe([l.customElement("rtg-menubar-item")],o.MenubarItem);var bu=Object.defineProperty,yu=Object.getOwnPropertyDescriptor,
|
|
4657
|
+
`}`}},o.MenubarItem._counter=0,oe([l.property({type:String})],o.MenubarItem.prototype,"_id",2),oe([l.property({attribute:"aria-hidden",type:String})],o.MenubarItem.prototype,"_hidden",2),oe([l.property({attribute:"data-value",type:String})],o.MenubarItem.prototype,"value",1),oe([l.property({type:Boolean})],o.MenubarItem.prototype,"selected",2),o.MenubarItem=oe([l.customElement("rtg-menubar-item")],o.MenubarItem);var bu=Object.defineProperty,yu=Object.getOwnPropertyDescriptor,Dt=(i,t,r,n)=>{for(var e=n>1?void 0:n?yu(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&bu(t,r,e),e};o.MenubarRadioItem=class extends h{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get _containerElement(){return this.querySelector("div[part=menubar-radio-item]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}get identifier(){var r,n;if(this._id!=="")return this._id;const t=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-group]");return t?this._id=`${t.getAttribute("id")}li${o.MenubarRadioItem._counter++}`:this._id=`rtgcmdrxgxli${o.MenubarRadioItem._counter++}`,this._id}get value(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}handleMouseEvent(t){(t.type==="mouseover"||t.type==="focus")&&(this.selected=!0),t.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}render(){return d.html`
|
|
4657
4658
|
<div
|
|
4658
4659
|
part="menubar-radio-item"
|
|
4659
4660
|
class="${p(lu,this.disabled?"rtg-pointer-events-none rtg-opacity-50":"",this.className)}"
|
|
@@ -4681,7 +4682,7 @@ body {
|
|
|
4681
4682
|
height: 16px;
|
|
4682
4683
|
display: inline-block;
|
|
4683
4684
|
}
|
|
4684
|
-
`],
|
|
4685
|
+
`],Dt([l.property({type:String})],o.MenubarRadioItem.prototype,"_id",2),Dt([l.property({attribute:"aria-hidden",type:String})],o.MenubarRadioItem.prototype,"_hidden",2),Dt([l.property({attribute:"data-value",type:String})],o.MenubarRadioItem.prototype,"value",1),Dt([l.property({type:Boolean})],o.MenubarRadioItem.prototype,"selected",2),Dt([l.property({type:Boolean})],o.MenubarRadioItem.prototype,"checked",2),Dt([l.property({type:Boolean})],o.MenubarRadioItem.prototype,"disabled",2),o.MenubarRadioItem=Dt([l.customElement("rtg-menubar-radio-item")],o.MenubarRadioItem);var wu=Object.defineProperty,Cu=Object.getOwnPropertyDescriptor,Rt=(i,t,r,n)=>{for(var e=n>1?void 0:n?Cu(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&wu(t,r,e),e};o.MenubarCheckboxItem=class extends h{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get _containerElement(){return this.querySelector("div[part=menubar-checkbox-item]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}get identifier(){var r,n;if(this._id!=="")return this._id;const t=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-group]");return t?this._id=`${t.getAttribute("id")}li${o.MenubarCheckboxItem._counter++}`:this._id=`rtgcmdrxgxli${o.MenubarCheckboxItem._counter++}`,this._id}get value(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}handleMouseEvent(t){(t.type==="mouseover"||t.type==="focus")&&(this.selected=!0),t.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}render(){return d.html`
|
|
4685
4686
|
<div
|
|
4686
4687
|
part="menubar-checkbox-item"
|
|
4687
4688
|
class="${p(ou,this.disabled?"rtg-pointer-events-none rtg-opacity-50":"",this.className)}"
|
|
@@ -4720,7 +4721,7 @@ body {
|
|
|
4720
4721
|
height: 16px;
|
|
4721
4722
|
display: inline-block;
|
|
4722
4723
|
}
|
|
4723
|
-
`],
|
|
4724
|
+
`],Rt([l.property({type:String})],o.MenubarCheckboxItem.prototype,"_id",2),Rt([l.property({attribute:"aria-hidden",type:String})],o.MenubarCheckboxItem.prototype,"_hidden",2),Rt([l.property({attribute:"data-value",type:String})],o.MenubarCheckboxItem.prototype,"value",1),Rt([l.property({type:Boolean})],o.MenubarCheckboxItem.prototype,"selected",2),Rt([l.property({type:Boolean})],o.MenubarCheckboxItem.prototype,"checked",2),Rt([l.property({type:Boolean})],o.MenubarCheckboxItem.prototype,"disabled",2),o.MenubarCheckboxItem=Rt([l.customElement("rtg-menubar-checkbox-item")],o.MenubarCheckboxItem);var _u=Object.defineProperty,xu=Object.getOwnPropertyDescriptor,Je=(i,t,r,n)=>{for(var e=n>1?void 0:n?xu(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&_u(t,r,e),e};o.MenubarSeparator=class extends h{constructor(){super(...arguments),this._id="",this._hidden=""}get _containerElement(){return this.querySelector("div[part=menubar-separator]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}get identifier(){var r;if(this._id!=="")return this._id;const t=(r=this.parentElement)==null?void 0:r.querySelector("div[rtgcmd-list]");return t?this._id=`${t.getAttribute("id")}s${o.MenubarSeparator._counter++}`:this._id=`rtgcmdrxlxs${o.MenubarSeparator._counter++}`,this._id}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`${this._hidden==="true"?d.nothing:d.html`
|
|
4724
4725
|
<div
|
|
4725
4726
|
part="menubar-separator"
|
|
4726
4727
|
class="${p(cu,this.className)}"
|
|
@@ -4881,7 +4882,7 @@ body {
|
|
|
4881
4882
|
*
|
|
4882
4883
|
* This source code is licensed under the MIT license found in the
|
|
4883
4884
|
* LICENSE file in the root directory of this source tree.
|
|
4884
|
-
*/var mn;function ug(){if(mn)return S;mn=1;var i=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),e=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"),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 F={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,z={};function P(u,f,$){this.props=u,this.context=f,this.refs=z,this.updater=$||F}P.prototype.isReactComponent={},P.prototype.setState=function(u,f){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,f,"setState")},P.prototype.forceUpdate=function(u){this.updater.enqueueForceUpdate(this,u,"forceUpdate")};function M(){}M.prototype=P.prototype;function W(u,f,$){this.props=u,this.context=f,this.refs=z,this.updater=$||F}var X=W.prototype=new M;X.constructor=W,L(X,P.prototype),X.isPureReactComponent=!0;var J=Array.isArray,q={H:null,A:null,T:null,S:null,V:null},ft=Object.prototype.hasOwnProperty;function vt(u,f,$,x,A,Y){return $=Y.ref,{$$typeof:i,type:u,key:f,ref:$!==void 0?$:null,props:Y}}function it(u,f){return vt(u.type,f,void 0,void 0,void 0,u.props)}function tt(u){return typeof u=="object"&&u!==null&&u.$$typeof===i}function
|
|
4885
|
+
*/var mn;function ug(){if(mn)return S;mn=1;var i=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),e=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"),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 F={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,z={};function P(u,f,$){this.props=u,this.context=f,this.refs=z,this.updater=$||F}P.prototype.isReactComponent={},P.prototype.setState=function(u,f){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,f,"setState")},P.prototype.forceUpdate=function(u){this.updater.enqueueForceUpdate(this,u,"forceUpdate")};function M(){}M.prototype=P.prototype;function W(u,f,$){this.props=u,this.context=f,this.refs=z,this.updater=$||F}var X=W.prototype=new M;X.constructor=W,L(X,P.prototype),X.isPureReactComponent=!0;var J=Array.isArray,q={H:null,A:null,T:null,S:null,V:null},ft=Object.prototype.hasOwnProperty;function vt(u,f,$,x,A,Y){return $=Y.ref,{$$typeof:i,type:u,key:f,ref:$!==void 0?$:null,props:Y}}function it(u,f){return vt(u.type,f,void 0,void 0,void 0,u.props)}function tt(u){return typeof u=="object"&&u!==null&&u.$$typeof===i}function kt(u){var f={"=":"=0",":":"=2"};return"$"+u.replace(/[=:]/g,function($){return f[$]})}var G=/\/+/g;function B(u,f){return typeof u=="object"&&u!==null&&u.key!=null?kt(""+u.key):f.toString(36)}function lt(){}function et(u){switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:switch(typeof u.status=="string"?u.then(lt,lt):(u.status="pending",u.then(function(f){u.status==="pending"&&(u.status="fulfilled",u.value=f)},function(f){u.status==="pending"&&(u.status="rejected",u.reason=f)})),u.status){case"fulfilled":return u.value;case"rejected":throw u.reason}}throw u}function K(u,f,$,x,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 t:R=!0;break;case w:return R=u._init,K(R(u._payload),f,$,x,A)}}if(R)return A=A(u),R=x===""?"."+B(u,0):x,J(A)?($="",R!=null&&($=R.replace(G,"$&/")+"/"),K(A,f,$,"",function(Yt){return Yt})):A!=null&&(tt(A)&&(A=it(A,$+(A.key==null||u&&u.key===A.key?"":(""+A.key).replace(G,"$&/")+"/")+R)),f.push(A)),1;R=0;var ut=x===""?".":x+":";if(J(u))for(var j=0;j<u.length;j++)x=u[j],Y=ut+B(x,j),R+=K(x,f,$,Y,A);else if(j=N(u),typeof j=="function")for(u=j.call(u),j=0;!(x=u.next()).done;)x=x.value,Y=ut+B(x,j++),R+=K(x,f,$,Y,A);else if(Y==="object"){if(typeof u.then=="function")return K(et(u),f,$,x,A);throw f=String(u),Error("Objects are not valid as a React child (found: "+(f==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":f)+"). If you meant to render a collection of children, use an array instead.")}return R}function Q(u,f,$){if(u==null)return u;var x=[],A=0;return K(u,x,"","",function(Y){return f.call($,Y,A++)}),x}function bt(u){if(u._status===-1){var f=u._result;f=f(),f.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=f)}if(u._status===1)return u._result.default;throw u._result}var ct=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var f=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(f))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)};function dt(){}return S.Children={map:Q,forEach:function(u,f,$){Q(u,function(){f.apply(this,arguments)},$)},count:function(u){var f=0;return Q(u,function(){f++}),f},toArray:function(u){return Q(u,function(f){return f})||[]},only:function(u){if(!tt(u))throw Error("React.Children.only expected to receive a single React element child.");return u}},S.Component=P,S.Fragment=r,S.Profiler=e,S.PureComponent=W,S.StrictMode=n,S.Suspense=C,S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,S.__COMPILER_RUNTIME={__proto__:null,c:function(u){return q.H.useMemoCache(u)}},S.cache=function(u){return function(){return u.apply(null,arguments)}},S.cloneElement=function(u,f,$){if(u==null)throw Error("The argument must be a React element, but you passed "+u+".");var x=L({},u.props),A=u.key,Y=void 0;if(f!=null)for(R in f.ref!==void 0&&(Y=void 0),f.key!==void 0&&(A=""+f.key),f)!ft.call(f,R)||R==="key"||R==="__self"||R==="__source"||R==="ref"&&f.ref===void 0||(x[R]=f[R]);var R=arguments.length-2;if(R===1)x.children=$;else if(1<R){for(var ut=Array(R),j=0;j<R;j++)ut[j]=arguments[j+2];x.children=ut}return vt(u.type,A,void 0,void 0,Y,x)},S.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},S.createElement=function(u,f,$){var x,A={},Y=null;if(f!=null)for(x in f.key!==void 0&&(Y=""+f.key),f)ft.call(f,x)&&x!=="key"&&x!=="__self"&&x!=="__source"&&(A[x]=f[x]);var R=arguments.length-2;if(R===1)A.children=$;else if(1<R){for(var ut=Array(R),j=0;j<R;j++)ut[j]=arguments[j+2];A.children=ut}if(u&&u.defaultProps)for(x in R=u.defaultProps,R)A[x]===void 0&&(A[x]=R[x]);return vt(u,Y,void 0,void 0,null,A)},S.createRef=function(){return{current:null}},S.forwardRef=function(u){return{$$typeof:m,render:u}},S.isValidElement=tt,S.lazy=function(u){return{$$typeof:w,_payload:{_status:-1,_result:u},_init:bt}},S.memo=function(u,f){return{$$typeof:b,type:u,compare:f===void 0?null:f}},S.startTransition=function(u){var f=q.T,$={};q.T=$;try{var x=u(),A=q.S;A!==null&&A($,x),typeof x=="object"&&x!==null&&typeof x.then=="function"&&x.then(dt,ct)}catch(Y){ct(Y)}finally{q.T=f}},S.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},S.use=function(u){return q.H.use(u)},S.useActionState=function(u,f,$){return q.H.useActionState(u,f,$)},S.useCallback=function(u,f){return q.H.useCallback(u,f)},S.useContext=function(u){return q.H.useContext(u)},S.useDebugValue=function(){},S.useDeferredValue=function(u,f){return q.H.useDeferredValue(u,f)},S.useEffect=function(u,f,$){var x=q.H;if(typeof $=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return x.useEffect(u,f)},S.useId=function(){return q.H.useId()},S.useImperativeHandle=function(u,f,$){return q.H.useImperativeHandle(u,f,$)},S.useInsertionEffect=function(u,f){return q.H.useInsertionEffect(u,f)},S.useLayoutEffect=function(u,f){return q.H.useLayoutEffect(u,f)},S.useMemo=function(u,f){return q.H.useMemo(u,f)},S.useOptimistic=function(u,f){return q.H.useOptimistic(u,f)},S.useReducer=function(u,f,$){return q.H.useReducer(u,f,$)},S.useRef=function(u){return q.H.useRef(u)},S.useState=function(u){return q.H.useState(u)},S.useSyncExternalStore=function(u,f,$){return q.H.useSyncExternalStore(u,f,$)},S.useTransition=function(){return q.H.useTransition()},S.version="19.1.0",S}var ae={exports:{}};/**
|
|
4885
4886
|
* @license React
|
|
4886
4887
|
* react.development.js
|
|
4887
4888
|
*
|
|
@@ -4889,7 +4890,7 @@ body {
|
|
|
4889
4890
|
*
|
|
4890
4891
|
* This source code is licensed under the MIT license found in the
|
|
4891
4892
|
* LICENSE file in the root directory of this source tree.
|
|
4892
|
-
*/ae.exports;var fn;function gg(){return fn||(fn=1,function(i,t){process.env.NODE_ENV!=="production"&&function(){function r(c,g){Object.defineProperty(a.prototype,c,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",g[0],g[1])}})}function n(c){return c===null||typeof c!="object"?null:(c=yn&&c[yn]||c["@@iterator"],typeof c=="function"?c:null)}function e(c,g){c=(c=c.constructor)&&(c.displayName||c.name)||"ReactClass";var v=c+"."+g;wn[v]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",g,c),wn[v]=!0)}function a(c,g,v){this.props=c,this.context=g,this.refs=or,this.updater=v||Cn}function s(){}function m(c,g,v){this.props=c,this.context=g,this.refs=or,this.updater=v||Cn}function C(c){return""+c}function b(c){try{C(c);var g=!1}catch{g=!0}if(g){g=console;var v=g.error,y=typeof Symbol=="function"&&Symbol.toStringTag&&c[Symbol.toStringTag]||c.constructor.name||"Object";return v.call(g,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",y),C(c)}}function w(c){if(c==null)return null;if(typeof c=="function")return c.$$typeof===bg?null:c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case u:return"Fragment";case $:return"Profiler";case f:return"StrictMode";case R:return"Suspense";case ut:return"SuspenseList";case vg:return"Activity"}if(typeof c=="object")switch(typeof c.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),c.$$typeof){case dt:return"Portal";case A:return(c.displayName||"Context")+".Provider";case x:return(c._context.displayName||"Context")+".Consumer";case Y:var g=c.render;return c=c.displayName,c||(c=g.displayName||g.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case j:return g=c.displayName||null,g!==null?g:w(c.type)||"Memo";case Yt:g=c._payload,c=c._init;try{return w(c(g))}catch{}}return null}function E(c){if(c===u)return"<>";if(typeof c=="object"&&c!==null&&c.$$typeof===Yt)return"<...>";try{var g=w(c);return g?"<"+g+">":"<...>"}catch{return"<...>"}}function N(){var c=I.A;return c===null?null:c.getOwner()}function F(){return Error("react-stack-top-frame")}function L(c){if(be.call(c,"key")){var g=Object.getOwnPropertyDescriptor(c,"key").get;if(g&&g.isReactWarning)return!1}return c.key!==void 0}function z(c,g){function v(){$n||($n=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",g))}v.isReactWarning=!0,Object.defineProperty(c,"key",{get:v,configurable:!0})}function P(){var c=w(this.type);return Sn[c]||(Sn[c]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),c=this.props.ref,c!==void 0?c:null}function M(c,g,v,y,_,T,D,U){return v=T.ref,c={$$typeof:ct,type:c,key:g,props:T,_owner:_},(v!==void 0?v:null)!==null?Object.defineProperty(c,"ref",{enumerable:!1,get:P}):Object.defineProperty(c,"ref",{enumerable:!1,value:null}),c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(c,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(c,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:D}),Object.defineProperty(c,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:U}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}function W(c,g){return g=M(c.type,g,void 0,void 0,c._owner,c.props,c._debugStack,c._debugTask),c._store&&(g._store.validated=c._store.validated),g}function X(c){return typeof c=="object"&&c!==null&&c.$$typeof===ct}function J(c){var g={"=":"=0",":":"=2"};return"$"+c.replace(/[=:]/g,function(v){return g[v]})}function q(c,g){return typeof c=="object"&&c!==null&&c.key!=null?(b(c.key),J(""+c.key)):g.toString(36)}function ft(){}function vt(c){switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:switch(typeof c.status=="string"?c.then(ft,ft):(c.status="pending",c.then(function(g){c.status==="pending"&&(c.status="fulfilled",c.value=g)},function(g){c.status==="pending"&&(c.status="rejected",c.reason=g)})),c.status){case"fulfilled":return c.value;case"rejected":throw c.reason}}throw c}function it(c,g,v,y,_){var T=typeof c;(T==="undefined"||T==="boolean")&&(c=null);var D=!1;if(c===null)D=!0;else switch(T){case"bigint":case"string":case"number":D=!0;break;case"object":switch(c.$$typeof){case ct:case dt:D=!0;break;case Yt:return D=c._init,it(D(c._payload),g,v,y,_)}}if(D){D=c,_=_(D);var U=y===""?"."+q(D,0):y;return xn(_)?(v="",U!=null&&(v=U.replace(Dn,"$&/")+"/"),it(_,g,v,"",function(yt){return yt})):_!=null&&(X(_)&&(_.key!=null&&(D&&D.key===_.key||b(_.key)),v=W(_,v+(_.key==null||D&&D.key===_.key?"":(""+_.key).replace(Dn,"$&/")+"/")+U),y!==""&&D!=null&&X(D)&&D.key==null&&D._store&&!D._store.validated&&(v._store.validated=2),_=v),g.push(_)),1}if(D=0,U=y===""?".":y+":",xn(c))for(var k=0;k<c.length;k++)y=c[k],T=U+q(y,k),D+=it(y,g,v,T,_);else if(k=n(c),typeof k=="function")for(k===c.entries&&(Pn||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Pn=!0),c=k.call(c),k=0;!(y=c.next()).done;)y=y.value,T=U+q(y,k++),D+=it(y,g,v,T,_);else if(T==="object"){if(typeof c.then=="function")return it(vt(c),g,v,y,_);throw g=String(c),Error("Objects are not valid as a React child (found: "+(g==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":g)+"). If you meant to render a collection of children, use an array instead.")}return D}function tt(c,g,v){if(c==null)return c;var y=[],_=0;return it(c,y,"","",function(T){return g.call(v,T,_++)}),y}function
|
|
4893
|
+
*/ae.exports;var fn;function gg(){return fn||(fn=1,function(i,t){process.env.NODE_ENV!=="production"&&function(){function r(c,g){Object.defineProperty(a.prototype,c,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",g[0],g[1])}})}function n(c){return c===null||typeof c!="object"?null:(c=yn&&c[yn]||c["@@iterator"],typeof c=="function"?c:null)}function e(c,g){c=(c=c.constructor)&&(c.displayName||c.name)||"ReactClass";var v=c+"."+g;wn[v]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",g,c),wn[v]=!0)}function a(c,g,v){this.props=c,this.context=g,this.refs=or,this.updater=v||Cn}function s(){}function m(c,g,v){this.props=c,this.context=g,this.refs=or,this.updater=v||Cn}function C(c){return""+c}function b(c){try{C(c);var g=!1}catch{g=!0}if(g){g=console;var v=g.error,y=typeof Symbol=="function"&&Symbol.toStringTag&&c[Symbol.toStringTag]||c.constructor.name||"Object";return v.call(g,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",y),C(c)}}function w(c){if(c==null)return null;if(typeof c=="function")return c.$$typeof===bg?null:c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case u:return"Fragment";case $:return"Profiler";case f:return"StrictMode";case R:return"Suspense";case ut:return"SuspenseList";case vg:return"Activity"}if(typeof c=="object")switch(typeof c.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),c.$$typeof){case dt:return"Portal";case A:return(c.displayName||"Context")+".Provider";case x:return(c._context.displayName||"Context")+".Consumer";case Y:var g=c.render;return c=c.displayName,c||(c=g.displayName||g.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case j:return g=c.displayName||null,g!==null?g:w(c.type)||"Memo";case Yt:g=c._payload,c=c._init;try{return w(c(g))}catch{}}return null}function E(c){if(c===u)return"<>";if(typeof c=="object"&&c!==null&&c.$$typeof===Yt)return"<...>";try{var g=w(c);return g?"<"+g+">":"<...>"}catch{return"<...>"}}function N(){var c=I.A;return c===null?null:c.getOwner()}function F(){return Error("react-stack-top-frame")}function L(c){if(be.call(c,"key")){var g=Object.getOwnPropertyDescriptor(c,"key").get;if(g&&g.isReactWarning)return!1}return c.key!==void 0}function z(c,g){function v(){$n||($n=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",g))}v.isReactWarning=!0,Object.defineProperty(c,"key",{get:v,configurable:!0})}function P(){var c=w(this.type);return Sn[c]||(Sn[c]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),c=this.props.ref,c!==void 0?c:null}function M(c,g,v,y,_,T,D,U){return v=T.ref,c={$$typeof:ct,type:c,key:g,props:T,_owner:_},(v!==void 0?v:null)!==null?Object.defineProperty(c,"ref",{enumerable:!1,get:P}):Object.defineProperty(c,"ref",{enumerable:!1,value:null}),c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(c,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(c,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:D}),Object.defineProperty(c,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:U}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}function W(c,g){return g=M(c.type,g,void 0,void 0,c._owner,c.props,c._debugStack,c._debugTask),c._store&&(g._store.validated=c._store.validated),g}function X(c){return typeof c=="object"&&c!==null&&c.$$typeof===ct}function J(c){var g={"=":"=0",":":"=2"};return"$"+c.replace(/[=:]/g,function(v){return g[v]})}function q(c,g){return typeof c=="object"&&c!==null&&c.key!=null?(b(c.key),J(""+c.key)):g.toString(36)}function ft(){}function vt(c){switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:switch(typeof c.status=="string"?c.then(ft,ft):(c.status="pending",c.then(function(g){c.status==="pending"&&(c.status="fulfilled",c.value=g)},function(g){c.status==="pending"&&(c.status="rejected",c.reason=g)})),c.status){case"fulfilled":return c.value;case"rejected":throw c.reason}}throw c}function it(c,g,v,y,_){var T=typeof c;(T==="undefined"||T==="boolean")&&(c=null);var D=!1;if(c===null)D=!0;else switch(T){case"bigint":case"string":case"number":D=!0;break;case"object":switch(c.$$typeof){case ct:case dt:D=!0;break;case Yt:return D=c._init,it(D(c._payload),g,v,y,_)}}if(D){D=c,_=_(D);var U=y===""?"."+q(D,0):y;return xn(_)?(v="",U!=null&&(v=U.replace(Dn,"$&/")+"/"),it(_,g,v,"",function(yt){return yt})):_!=null&&(X(_)&&(_.key!=null&&(D&&D.key===_.key||b(_.key)),v=W(_,v+(_.key==null||D&&D.key===_.key?"":(""+_.key).replace(Dn,"$&/")+"/")+U),y!==""&&D!=null&&X(D)&&D.key==null&&D._store&&!D._store.validated&&(v._store.validated=2),_=v),g.push(_)),1}if(D=0,U=y===""?".":y+":",xn(c))for(var k=0;k<c.length;k++)y=c[k],T=U+q(y,k),D+=it(y,g,v,T,_);else if(k=n(c),typeof k=="function")for(k===c.entries&&(Pn||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Pn=!0),c=k.call(c),k=0;!(y=c.next()).done;)y=y.value,T=U+q(y,k++),D+=it(y,g,v,T,_);else if(T==="object"){if(typeof c.then=="function")return it(vt(c),g,v,y,_);throw g=String(c),Error("Objects are not valid as a React child (found: "+(g==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":g)+"). If you meant to render a collection of children, use an array instead.")}return D}function tt(c,g,v){if(c==null)return c;var y=[],_=0;return it(c,y,"","",function(T){return g.call(v,T,_++)}),y}function kt(c){if(c._status===-1){var g=c._result;g=g(),g.then(function(v){(c._status===0||c._status===-1)&&(c._status=1,c._result=v)},function(v){(c._status===0||c._status===-1)&&(c._status=2,c._result=v)}),c._status===-1&&(c._status=0,c._result=g)}if(c._status===1)return g=c._result,g===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
4893
4894
|
|
|
4894
4895
|
Your code should look like:
|
|
4895
4896
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -4901,4 +4902,4 @@ Your code should look like:
|
|
|
4901
4902
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
4902
4903
|
2. You might be breaking the Rules of Hooks
|
|
4903
4904
|
3. You might have more than one copy of React in the same app
|
|
4904
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}function B(){}function lt(c){if(ye===null)try{var g=("require"+Math.random()).slice(0,7);ye=(i&&i[g]).call(i,"timers").setImmediate}catch{ye=function(y){kn===!1&&(kn=!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 ye(c)}function et(c){return 1<c.length&&typeof AggregateError=="function"?new AggregateError(c):c[0]}function K(c,g){g!==we-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. "),we=g}function Q(c,g,v){var y=I.actQueue;if(y!==null)if(y.length!==0)try{bt(y),lt(function(){return Q(c,g,v)});return}catch(_){I.thrownErrors.push(_)}else I.actQueue=null;0<I.thrownErrors.length?(y=et(I.thrownErrors),I.thrownErrors.length=0,v(y)):g(c)}function bt(c){if(!ir){ir=!0;var g=0;try{for(;g<c.length;g++){var v=c[g];do{I.didUsePromise=!1;var y=v(!1);if(y!==null){if(I.didUsePromise){c[g]=v,c.splice(0,g);return}v=y}else break}while(!0)}c.length=0}catch(_){c.splice(0,g+1),I.thrownErrors.push(_)}finally{ir=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ct=Symbol.for("react.transitional.element"),dt=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),A=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),ut=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),Yt=Symbol.for("react.lazy"),vg=Symbol.for("react.activity"),yn=Symbol.iterator,wn={},Cn={isMounted:function(){return!1},enqueueForceUpdate:function(c){e(c,"forceUpdate")},enqueueReplaceState:function(c){e(c,"replaceState")},enqueueSetState:function(c){e(c,"setState")}},_n=Object.assign,or={};Object.freeze(or),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 rt={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)."]},ve;for(ve in rt)rt.hasOwnProperty(ve)&&r(ve,rt[ve]);s.prototype=a.prototype,rt=m.prototype=new s,rt.constructor=m,_n(rt,a.prototype),rt.isPureReactComponent=!0;var xn=Array.isArray,bg=Symbol.for("react.client.reference"),I={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},be=Object.prototype.hasOwnProperty,En=console.createTask?console.createTask:function(){return null};rt={"react-stack-bottom-frame":function(c){return c()}};var $n,On,Sn={},yg=rt["react-stack-bottom-frame"].bind(rt,F)(),wg=En(E(F)),Pn=!1,Dn=/\/+/g,Rn=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)},kn=!1,ye=null,we=0,Ce=!1,ir=!1,In=typeof queueMicrotask=="function"?function(c){queueMicrotask(function(){return queueMicrotask(c)})}:lt;rt=Object.freeze({__proto__:null,c:function(c){return G().useMemoCache(c)}}),t.Children={map:tt,forEach:function(c,g,v){tt(c,function(){g.apply(this,arguments)},v)},count:function(c){var g=0;return tt(c,function(){g++}),g},toArray:function(c){return tt(c,function(g){return g})||[]},only:function(c){if(!X(c))throw Error("React.Children.only expected to receive a single React element child.");return c}},t.Component=a,t.Fragment=u,t.Profiler=$,t.PureComponent=m,t.StrictMode=f,t.Suspense=R,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,t.__COMPILER_RUNTIME=rt,t.act=function(c){var g=I.actQueue,v=we;we++;var y=I.actQueue=g!==null?g:[],_=!1;try{var T=c()}catch(k){I.thrownErrors.push(k)}if(0<I.thrownErrors.length)throw K(g,v),c=et(I.thrownErrors),I.thrownErrors.length=0,c;if(T!==null&&typeof T=="object"&&typeof T.then=="function"){var D=T;return In(function(){_||Ce||(Ce=!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(k,yt){_=!0,D.then(function(jt){if(K(g,v),v===0){try{bt(y),lt(function(){return Q(jt,k,yt)})}catch(_g){I.thrownErrors.push(_g)}if(0<I.thrownErrors.length){var Cg=et(I.thrownErrors);I.thrownErrors.length=0,yt(Cg)}}else k(jt)},function(jt){K(g,v),0<I.thrownErrors.length&&(jt=et(I.thrownErrors),I.thrownErrors.length=0),yt(jt)})}}}var U=T;if(K(g,v),v===0&&(bt(y),y.length!==0&&In(function(){_||Ce||(Ce=!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(() => ...)"))}),I.actQueue=null),0<I.thrownErrors.length)throw c=et(I.thrownErrors),I.thrownErrors.length=0,c;return{then:function(k,yt){_=!0,v===0?(I.actQueue=y,lt(function(){return Q(U,k,yt)})):k(U)}}},t.cache=function(c){return function(){return c.apply(null,arguments)}},t.captureOwnerStack=function(){var c=I.getCurrentStack;return c===null?null:c()},t.cloneElement=function(c,g,v){if(c==null)throw Error("The argument must be a React element, but you passed "+c+".");var y=_n({},c.props),_=c.key,T=c._owner;if(g!=null){var D;t:{if(be.call(g,"ref")&&(D=Object.getOwnPropertyDescriptor(g,"ref").get)&&D.isReactWarning){D=!1;break t}D=g.ref!==void 0}D&&(T=N()),L(g)&&(b(g.key),_=""+g.key);for(U in g)!be.call(g,U)||U==="key"||U==="__self"||U==="__source"||U==="ref"&&g.ref===void 0||(y[U]=g[U])}var U=arguments.length-2;if(U===1)y.children=v;else if(1<U){D=Array(U);for(var k=0;k<U;k++)D[k]=arguments[k+2];y.children=D}for(y=M(c.type,_,void 0,void 0,T,y,c._debugStack,c._debugTask),_=2;_<arguments.length;_++)T=arguments[_],X(T)&&T._store&&(T._store.validated=1);return y},t.createContext=function(c){return c={$$typeof:A,_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},t.createElement=function(c,g,v){for(var y=2;y<arguments.length;y++){var _=arguments[y];X(_)&&_._store&&(_._store.validated=1)}if(y={},_=null,g!=null)for(k in On||!("__self"in g)||"key"in g||(On=!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")),L(g)&&(b(g.key),_=""+g.key),g)be.call(g,k)&&k!=="key"&&k!=="__self"&&k!=="__source"&&(y[k]=g[k]);var T=arguments.length-2;if(T===1)y.children=v;else if(1<T){for(var D=Array(T),U=0;U<T;U++)D[U]=arguments[U+2];Object.freeze&&Object.freeze(D),y.children=D}if(c&&c.defaultProps)for(k in T=c.defaultProps,T)y[k]===void 0&&(y[k]=T[k]);_&&z(y,typeof c=="function"?c.displayName||c.name||"Unknown":c);var k=1e4>I.recentlyCreatedOwnerStacks++;return M(c,_,void 0,void 0,N(),y,k?Error("react-stack-top-frame"):yg,k?En(E(c)):wg)},t.createRef=function(){var c={current:null};return Object.seal(c),c},t.forwardRef=function(c){c!=null&&c.$$typeof===j?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},v;return Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return v},set:function(y){v=y,c.name||c.displayName||(Object.defineProperty(c,"name",{value:y}),c.displayName=y)}}),g},t.isValidElement=X,t.lazy=function(c){return{$$typeof:Yt,_payload:{_status:-1,_result:c},_init:Rt}},t.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:j,type:c,compare:g===void 0?null:g};var v;return Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return v},set:function(y){v=y,c.name||c.displayName||(Object.defineProperty(c,"name",{value:y}),c.displayName=y)}}),g},t.startTransition=function(c){var g=I.T,v={};I.T=v,v._updatedFibers=new Set;try{var y=c(),_=I.S;_!==null&&_(v,y),typeof y=="object"&&y!==null&&typeof y.then=="function"&&y.then(B,Rn)}catch(T){Rn(T)}finally{g===null&&v._updatedFibers&&(c=v._updatedFibers.size,v._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.")),I.T=g}},t.unstable_useCacheRefresh=function(){return G().useCacheRefresh()},t.use=function(c){return G().use(c)},t.useActionState=function(c,g,v){return G().useActionState(c,g,v)},t.useCallback=function(c,g){return G().useCallback(c,g)},t.useContext=function(c){var g=G();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)},t.useDebugValue=function(c,g){return G().useDebugValue(c,g)},t.useDeferredValue=function(c,g){return G().useDeferredValue(c,g)},t.useEffect=function(c,g,v){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 v=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return y.useEffect(c,g)},t.useId=function(){return G().useId()},t.useImperativeHandle=function(c,g,v){return G().useImperativeHandle(c,g,v)},t.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)},t.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)},t.useMemo=function(c,g){return G().useMemo(c,g)},t.useOptimistic=function(c,g){return G().useOptimistic(c,g)},t.useReducer=function(c,g,v){return G().useReducer(c,g,v)},t.useRef=function(c){return G().useRef(c)},t.useState=function(c){return G().useState(c)},t.useSyncExternalStore=function(c,g,v){return G().useSyncExternalStore(c,g,v)},t.useTransition=function(){return G().useTransition()},t.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(ae,ae.exports)),ae.exports}var vn;function pg(){return vn||(vn=1,process.env.NODE_ENV==="production"?fe.exports=ug():fe.exports=gg()),fe.exports}var hg=pg();const bn=dg(hg),mg=hn({tagName:"rtg-button",elementClass:o.Button,react:bn}),fg=hn({tagName:"rtg-checkbox",elementClass:o.Checkbox,react:bn});o.ButtonReact=mg,o.CheckboxReact=fg,o.TOGGLE_GROUP_SIZE=ge,o.TOGGLE_GROUP_TYPE=ee,o.TOGGLE_GROUP_VARIANT=ue,o.TOGGLE_SIZE=Qe,o.TOGGLE_VARIANT=Ze,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|
|
4905
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}function B(){}function lt(c){if(ye===null)try{var g=("require"+Math.random()).slice(0,7);ye=(i&&i[g]).call(i,"timers").setImmediate}catch{ye=function(y){kn===!1&&(kn=!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 ye(c)}function et(c){return 1<c.length&&typeof AggregateError=="function"?new AggregateError(c):c[0]}function K(c,g){g!==we-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. "),we=g}function Q(c,g,v){var y=I.actQueue;if(y!==null)if(y.length!==0)try{bt(y),lt(function(){return Q(c,g,v)});return}catch(_){I.thrownErrors.push(_)}else I.actQueue=null;0<I.thrownErrors.length?(y=et(I.thrownErrors),I.thrownErrors.length=0,v(y)):g(c)}function bt(c){if(!ir){ir=!0;var g=0;try{for(;g<c.length;g++){var v=c[g];do{I.didUsePromise=!1;var y=v(!1);if(y!==null){if(I.didUsePromise){c[g]=v,c.splice(0,g);return}v=y}else break}while(!0)}c.length=0}catch(_){c.splice(0,g+1),I.thrownErrors.push(_)}finally{ir=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ct=Symbol.for("react.transitional.element"),dt=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),A=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),ut=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),Yt=Symbol.for("react.lazy"),vg=Symbol.for("react.activity"),yn=Symbol.iterator,wn={},Cn={isMounted:function(){return!1},enqueueForceUpdate:function(c){e(c,"forceUpdate")},enqueueReplaceState:function(c){e(c,"replaceState")},enqueueSetState:function(c){e(c,"setState")}},_n=Object.assign,or={};Object.freeze(or),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 rt={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)."]},ve;for(ve in rt)rt.hasOwnProperty(ve)&&r(ve,rt[ve]);s.prototype=a.prototype,rt=m.prototype=new s,rt.constructor=m,_n(rt,a.prototype),rt.isPureReactComponent=!0;var xn=Array.isArray,bg=Symbol.for("react.client.reference"),I={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},be=Object.prototype.hasOwnProperty,En=console.createTask?console.createTask:function(){return null};rt={"react-stack-bottom-frame":function(c){return c()}};var $n,On,Sn={},yg=rt["react-stack-bottom-frame"].bind(rt,F)(),wg=En(E(F)),Pn=!1,Dn=/\/+/g,Rn=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)},kn=!1,ye=null,we=0,Ce=!1,ir=!1,In=typeof queueMicrotask=="function"?function(c){queueMicrotask(function(){return queueMicrotask(c)})}:lt;rt=Object.freeze({__proto__:null,c:function(c){return G().useMemoCache(c)}}),t.Children={map:tt,forEach:function(c,g,v){tt(c,function(){g.apply(this,arguments)},v)},count:function(c){var g=0;return tt(c,function(){g++}),g},toArray:function(c){return tt(c,function(g){return g})||[]},only:function(c){if(!X(c))throw Error("React.Children.only expected to receive a single React element child.");return c}},t.Component=a,t.Fragment=u,t.Profiler=$,t.PureComponent=m,t.StrictMode=f,t.Suspense=R,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,t.__COMPILER_RUNTIME=rt,t.act=function(c){var g=I.actQueue,v=we;we++;var y=I.actQueue=g!==null?g:[],_=!1;try{var T=c()}catch(k){I.thrownErrors.push(k)}if(0<I.thrownErrors.length)throw K(g,v),c=et(I.thrownErrors),I.thrownErrors.length=0,c;if(T!==null&&typeof T=="object"&&typeof T.then=="function"){var D=T;return In(function(){_||Ce||(Ce=!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(k,yt){_=!0,D.then(function(jt){if(K(g,v),v===0){try{bt(y),lt(function(){return Q(jt,k,yt)})}catch(_g){I.thrownErrors.push(_g)}if(0<I.thrownErrors.length){var Cg=et(I.thrownErrors);I.thrownErrors.length=0,yt(Cg)}}else k(jt)},function(jt){K(g,v),0<I.thrownErrors.length&&(jt=et(I.thrownErrors),I.thrownErrors.length=0),yt(jt)})}}}var U=T;if(K(g,v),v===0&&(bt(y),y.length!==0&&In(function(){_||Ce||(Ce=!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(() => ...)"))}),I.actQueue=null),0<I.thrownErrors.length)throw c=et(I.thrownErrors),I.thrownErrors.length=0,c;return{then:function(k,yt){_=!0,v===0?(I.actQueue=y,lt(function(){return Q(U,k,yt)})):k(U)}}},t.cache=function(c){return function(){return c.apply(null,arguments)}},t.captureOwnerStack=function(){var c=I.getCurrentStack;return c===null?null:c()},t.cloneElement=function(c,g,v){if(c==null)throw Error("The argument must be a React element, but you passed "+c+".");var y=_n({},c.props),_=c.key,T=c._owner;if(g!=null){var D;t:{if(be.call(g,"ref")&&(D=Object.getOwnPropertyDescriptor(g,"ref").get)&&D.isReactWarning){D=!1;break t}D=g.ref!==void 0}D&&(T=N()),L(g)&&(b(g.key),_=""+g.key);for(U in g)!be.call(g,U)||U==="key"||U==="__self"||U==="__source"||U==="ref"&&g.ref===void 0||(y[U]=g[U])}var U=arguments.length-2;if(U===1)y.children=v;else if(1<U){D=Array(U);for(var k=0;k<U;k++)D[k]=arguments[k+2];y.children=D}for(y=M(c.type,_,void 0,void 0,T,y,c._debugStack,c._debugTask),_=2;_<arguments.length;_++)T=arguments[_],X(T)&&T._store&&(T._store.validated=1);return y},t.createContext=function(c){return c={$$typeof:A,_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},t.createElement=function(c,g,v){for(var y=2;y<arguments.length;y++){var _=arguments[y];X(_)&&_._store&&(_._store.validated=1)}if(y={},_=null,g!=null)for(k in On||!("__self"in g)||"key"in g||(On=!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")),L(g)&&(b(g.key),_=""+g.key),g)be.call(g,k)&&k!=="key"&&k!=="__self"&&k!=="__source"&&(y[k]=g[k]);var T=arguments.length-2;if(T===1)y.children=v;else if(1<T){for(var D=Array(T),U=0;U<T;U++)D[U]=arguments[U+2];Object.freeze&&Object.freeze(D),y.children=D}if(c&&c.defaultProps)for(k in T=c.defaultProps,T)y[k]===void 0&&(y[k]=T[k]);_&&z(y,typeof c=="function"?c.displayName||c.name||"Unknown":c);var k=1e4>I.recentlyCreatedOwnerStacks++;return M(c,_,void 0,void 0,N(),y,k?Error("react-stack-top-frame"):yg,k?En(E(c)):wg)},t.createRef=function(){var c={current:null};return Object.seal(c),c},t.forwardRef=function(c){c!=null&&c.$$typeof===j?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},v;return Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return v},set:function(y){v=y,c.name||c.displayName||(Object.defineProperty(c,"name",{value:y}),c.displayName=y)}}),g},t.isValidElement=X,t.lazy=function(c){return{$$typeof:Yt,_payload:{_status:-1,_result:c},_init:kt}},t.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:j,type:c,compare:g===void 0?null:g};var v;return Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return v},set:function(y){v=y,c.name||c.displayName||(Object.defineProperty(c,"name",{value:y}),c.displayName=y)}}),g},t.startTransition=function(c){var g=I.T,v={};I.T=v,v._updatedFibers=new Set;try{var y=c(),_=I.S;_!==null&&_(v,y),typeof y=="object"&&y!==null&&typeof y.then=="function"&&y.then(B,Rn)}catch(T){Rn(T)}finally{g===null&&v._updatedFibers&&(c=v._updatedFibers.size,v._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.")),I.T=g}},t.unstable_useCacheRefresh=function(){return G().useCacheRefresh()},t.use=function(c){return G().use(c)},t.useActionState=function(c,g,v){return G().useActionState(c,g,v)},t.useCallback=function(c,g){return G().useCallback(c,g)},t.useContext=function(c){var g=G();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)},t.useDebugValue=function(c,g){return G().useDebugValue(c,g)},t.useDeferredValue=function(c,g){return G().useDeferredValue(c,g)},t.useEffect=function(c,g,v){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 v=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return y.useEffect(c,g)},t.useId=function(){return G().useId()},t.useImperativeHandle=function(c,g,v){return G().useImperativeHandle(c,g,v)},t.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)},t.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)},t.useMemo=function(c,g){return G().useMemo(c,g)},t.useOptimistic=function(c,g){return G().useOptimistic(c,g)},t.useReducer=function(c,g,v){return G().useReducer(c,g,v)},t.useRef=function(c){return G().useRef(c)},t.useState=function(c){return G().useState(c)},t.useSyncExternalStore=function(c,g,v){return G().useSyncExternalStore(c,g,v)},t.useTransition=function(){return G().useTransition()},t.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(ae,ae.exports)),ae.exports}var vn;function pg(){return vn||(vn=1,process.env.NODE_ENV==="production"?fe.exports=ug():fe.exports=gg()),fe.exports}var hg=pg();const bn=dg(hg),mg=hn({tagName:"rtg-button",elementClass:o.Button,react:bn}),fg=hn({tagName:"rtg-checkbox",elementClass:o.Checkbox,react:bn});o.ButtonReact=mg,o.CheckboxReact=fg,o.TOGGLE_GROUP_SIZE=ge,o.TOGGLE_GROUP_TYPE=ee,o.TOGGLE_GROUP_VARIANT=ue,o.TOGGLE_SIZE=Qe,o.TOGGLE_VARIANT=Ze,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|