@revotech-group/revotech-ui-kit 0.1.0 → 0.1.20
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.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,Ln,_t,Nn,Bn,sr,Ce,oe,qn){"use strict";const Un="rtg-flex rtg-h-9 rtg-w-full rtg-no-autofill-bg rtg-rounded-md rtg-border rtg-border-input autofill:rtg-bg-transparent 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-[3px] focus-visible:rtg-ring-custom-outline focus-visible:rtg-border-ring disabled:rtg-opacity-50 input-base";function lr(i){var e,r,n="";if(typeof i=="string"||typeof i=="number")n+=i;else if(typeof i=="object")if(Array.isArray(i)){var t=i.length;for(e=0;e<t;e++)i[e]&&(r=lr(i[e]))&&(n&&(n+=" "),n+=r)}else for(r in i)i[r]&&(n&&(n+=" "),n+=r);return n}function cr(){for(var i,e,r=0,n="",t=arguments.length;r<t;r++)(i=arguments[r])&&(e=lr(i))&&(n&&(n+=" "),n+=e);return n}const Et="-",zn=i=>{const e=Gn(i),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=i;return{getClassGroupId:s=>{const m=s.split(Et);return m[0]===""&&m.length!==1&&m.shift(),dr(m,e)||Fn(s)},getConflictingClassGroupIds:(s,m)=>{const C=r[s]||[];return m&&n[s]?[...C,...n[s]]:C}}},dr=(i,e)=>{var s;if(i.length===0)return e.classGroupId;const r=i[0],n=e.nextPart.get(r),t=n?dr(i.slice(1),n):void 0;if(t)return t;if(e.validators.length===0)return;const a=i.join(Et);return(s=e.validators.find(({validator:m})=>m(a)))==null?void 0:s.classGroupId},ur=/^\[(.+)\]$/,Fn=i=>{if(ur.test(i)){const e=ur.exec(i)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},Gn=i=>{const{theme:e,prefix:r}=i,n={nextPart:new Map,validators:[]};return Hn(Object.entries(i.classGroups),r).forEach(([a,s])=>{xt(s,n,a,e)}),n},xt=(i,e,r,n)=>{i.forEach(t=>{if(typeof t=="string"){const a=t===""?e:gr(e,t);a.classGroupId=r;return}if(typeof t=="function"){if(Vn(t)){xt(t(n),e,r,n);return}e.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(([a,s])=>{xt(s,gr(e,a),r,n)})})},gr=(i,e)=>{let r=i;return e.split(Et).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Vn=i=>i.isThemeGetter,Hn=(i,e)=>e?i.map(([r,n])=>{const t=n.map(a=>typeof a=="string"?e+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,m])=>[e+s,m])):a);return[r,t]}):i,Yn=i=>{if(i<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const t=(a,s)=>{r.set(a,s),e++,e>i&&(e=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 t(a,s),s},set(a,s){r.has(a)?r.set(a,s):t(a,s)}}},pr="!",Kn=i=>{const{separator:e,experimentalParseClassName:r}=i,n=e.length===1,t=e[0],a=e.length,s=m=>{const C=[];let b=0,w=0,x;for(let P=0;P<m.length;P++){let L=m[P];if(b===0){if(L===t&&(n||m.slice(P,P+a)===e)){C.push(m.slice(w,P)),w=P+a;continue}if(L==="/"){x=P;continue}}L==="["?b++:L==="]"&&b--}const N=C.length===0?m:m.substring(w),F=N.startsWith(pr),M=F?N.substring(1):N,q=x&&x>w?x-w:void 0;return{modifiers:C,hasImportantModifier:F,baseClassName:M,maybePostfixModifierPosition:q}};return r?m=>r({className:m,parseClassName:s}):s},Wn=i=>{if(i.length<=1)return i;const e=[];let r=[];return i.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},jn=i=>({cache:Yn(i.cacheSize),parseClassName:Kn(i),...zn(i)}),Xn=/\s+/,Zn=(i,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:t}=e,a=[],s=i.trim().split(Xn);let m="";for(let C=s.length-1;C>=0;C-=1){const b=s[C],{modifiers:w,hasImportantModifier:x,baseClassName:N,maybePostfixModifierPosition:F}=r(b);let M=!!F,q=n(M?N.substring(0,F):N);if(!q){if(!M){m=b+(m.length>0?" "+m:m);continue}if(q=n(N),!q){m=b+(m.length>0?" "+m:m);continue}M=!1}const P=Wn(w).join(":"),L=x?P+pr:P,W=L+q;if(a.includes(W))continue;a.push(W);const j=t(q,M);for(let ee=0;ee<j.length;++ee){const B=j[ee];a.push(L+B)}m=b+(m.length>0?" "+m:m)}return m};function Qn(){let i=0,e,r,n="";for(;i<arguments.length;)(e=arguments[i++])&&(r=hr(e))&&(n&&(n+=" "),n+=r);return n}const hr=i=>{if(typeof i=="string")return i;let e,r="";for(let n=0;n<i.length;n++)i[n]&&(e=hr(i[n]))&&(r&&(r+=" "),r+=e);return r};function Jn(i,...e){let r,n,t,a=s;function s(C){const b=e.reduce((w,x)=>x(w),i());return r=jn(b),n=r.cache.get,t=r.cache.set,a=m,m(C)}function m(C){const b=n(C);if(b)return b;const w=Zn(C,r);return t(C,w),w}return function(){return a(Qn.apply(null,arguments))}}const H=i=>{const e=r=>r[i]||[];return e.isThemeGetter=!0,e},mr=/^\[(?:([a-z-]+):)?(.+)\]$/i,eo=/^\d+\/\d+$/,to=new Set(["px","full","screen"]),ro=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,no=/\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$/,oo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,io=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ao=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pe=i=>ke(i)||to.has(i)||eo.test(i),he=i=>Te(i,"length",mo),ke=i=>!!i&&!Number.isNaN(Number(i)),$t=i=>Te(i,"number",ke),We=i=>!!i&&Number.isInteger(Number(i)),so=i=>i.endsWith("%")&&ke(i.slice(0,-1)),S=i=>mr.test(i),me=i=>ro.test(i),lo=new Set(["length","size","percentage"]),co=i=>Te(i,lo,vr),uo=i=>Te(i,"position",vr),go=new Set(["image","url"]),po=i=>Te(i,go,fo),ho=i=>Te(i,"",vo),je=()=>!0,Te=(i,e,r)=>{const n=mr.exec(i);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},mo=i=>no.test(i)&&!oo.test(i),vr=()=>!1,vo=i=>io.test(i),fo=i=>ao.test(i),bo=Jn(()=>{const i=H("colors"),e=H("spacing"),r=H("blur"),n=H("brightness"),t=H("borderColor"),a=H("borderRadius"),s=H("borderSpacing"),m=H("borderWidth"),C=H("contrast"),b=H("grayscale"),w=H("hueRotate"),x=H("invert"),N=H("gap"),F=H("gradientColorStops"),M=H("gradientColorStopPositions"),q=H("inset"),P=H("margin"),L=H("opacity"),W=H("padding"),j=H("saturate"),ee=H("scale"),B=H("sepia"),fe=H("skew"),be=H("space"),ae=H("translate"),te=()=>["auto","contain","none"],Ie=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",S,e],U=()=>[S,e],ce=()=>["",pe,he],re=()=>["auto",ke,S],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Z=()=>["solid","dashed","dotted","double","none"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>["start","end","center","between","around","evenly","stretch"],ue=()=>["","0",S],u=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>[ke,S];return{cacheSize:500,separator:":",theme:{colors:[je],spacing:[pe,he],blur:["none","",me,S],brightness:v(),borderColor:[i],borderRadius:["none","","full",me,S],borderSpacing:U(),borderWidth:ce(),contrast:v(),grayscale:ue(),hueRotate:v(),invert:ue(),gap:U(),gradientColorStops:[i],gradientColorStopPositions:[so,he],inset:G(),margin:G(),opacity:v(),padding:U(),saturate:v(),scale:v(),sepia:ue(),skew:v(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",S]}],container:["container"],columns:[{columns:[me]}],"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:[...X(),S]}],overflow:[{overflow:Ie()}],"overflow-x":[{"overflow-x":Ie()}],"overflow-y":[{"overflow-y":Ie()}],overscroll:[{overscroll:te()}],"overscroll-x":[{"overscroll-x":te()}],"overscroll-y":[{"overscroll-y":te()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[q]}],"inset-x":[{"inset-x":[q]}],"inset-y":[{"inset-y":[q]}],start:[{start:[q]}],end:[{end:[q]}],top:[{top:[q]}],right:[{right:[q]}],bottom:[{bottom:[q]}],left:[{left:[q]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",We,S]}],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",S]}],grow:[{grow:ue()}],shrink:[{shrink:ue()}],order:[{order:["first","last","none",We,S]}],"grid-cols":[{"grid-cols":[je]}],"col-start-end":[{col:["auto",{span:["full",We,S]},S]}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":[je]}],"row-start-end":[{row:["auto",{span:[We,S]},S]}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",S]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",S]}],gap:[{gap:[N]}],"gap-x":[{"gap-x":[N]}],"gap-y":[{"gap-y":[N]}],"justify-content":[{justify:["normal",...de()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...de(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...de(),"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":[be]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[be]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",S,e]}],"min-w":[{"min-w":[S,e,"min","max","fit"]}],"max-w":[{"max-w":[S,e,"none","full","min","max","fit","prose",{screen:[me]},me]}],h:[{h:[S,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[S,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[S,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[S,e,"auto","min","max","fit"]}],"font-size":[{text:["base",me,he]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$t]}],"font-family":[{font:[je]}],"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",S]}],"line-clamp":[{"line-clamp":["none",ke,$t]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",pe,S]}],"list-image":[{"list-image":["none",S]}],"list-style-type":[{list:["none","disc","decimal",S]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[i]}],"placeholder-opacity":[{"placeholder-opacity":[L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[i]}],"text-opacity":[{"text-opacity":[L]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",pe,he]}],"underline-offset":[{"underline-offset":["auto",pe,S]}],"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:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",S]}],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",S]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[L]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),uo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",co]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},po]}],"bg-color":[{bg:[i]}],"gradient-from-pos":[{from:[M]}],"gradient-via-pos":[{via:[M]}],"gradient-to-pos":[{to:[M]}],"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":[L]}],"border-style":[{border:[...Z(),"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":[L]}],"divide-style":[{divide:Z()}],"border-color":[{border:[t]}],"border-color-x":[{"border-x":[t]}],"border-color-y":[{"border-y":[t]}],"border-color-s":[{"border-s":[t]}],"border-color-e":[{"border-e":[t]}],"border-color-t":[{"border-t":[t]}],"border-color-r":[{"border-r":[t]}],"border-color-b":[{"border-b":[t]}],"border-color-l":[{"border-l":[t]}],"divide-color":[{divide:[t]}],"outline-style":[{outline:["",...Z()]}],"outline-offset":[{"outline-offset":[pe,S]}],"outline-w":[{outline:[pe,he]}],"outline-color":[{outline:[i]}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[i]}],"ring-opacity":[{"ring-opacity":[L]}],"ring-offset-w":[{"ring-offset":[pe,he]}],"ring-offset-color":[{"ring-offset":[i]}],shadow:[{shadow:["","inner","none",me,ho]}],"shadow-color":[{shadow:[je]}],opacity:[{opacity:[L]}],"mix-blend":[{"mix-blend":[...ye(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ye()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[C]}],"drop-shadow":[{"drop-shadow":["","none",me,S]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[x]}],saturate:[{saturate:[j]}],sepia:[{sepia:[B]}],"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":[x]}],"backdrop-opacity":[{"backdrop-opacity":[L]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"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",S]}],duration:[{duration:v()}],ease:[{ease:["linear","in","out","in-out",S]}],delay:[{delay:v()}],animate:[{animate:["none","spin","ping","pulse","bounce",S]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[ee]}],"scale-x":[{"scale-x":[ee]}],"scale-y":[{"scale-y":[ee]}],rotate:[{rotate:[We,S]}],"translate-x":[{"translate-x":[ae]}],"translate-y":[{"translate-y":[ae]}],"skew-x":[{"skew-x":[fe]}],"skew-y":[{"skew-y":[fe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",S]}],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",S]}],"caret-color":[{caret:[i]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"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",S]}],fill:[{fill:[i,"none"]}],"stroke-w":[{stroke:[pe,he,$t]}],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 bo(cr(i))}var yo=Object.defineProperty,fr=(i,e,r,n)=>{for(var t=void 0,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=s(e,r,t)||t);return t&&yo(e,r,t),t};class h extends d.LitElement{constructor(){super(),this.customClass="",this.customStyle=""}getAttributesToExclude(){return[]}getAttributesToRemoveFromParent(){return["class"]}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.mutationObserver)==null||e.disconnect()}removeParentAttributes(){this.getAttributesToRemoveFromParent().forEach(r=>{r==="class"&&this.hasAttribute("class")&&(this.customClass=this.getAttribute("class")||""),r==="style"&&this.hasAttribute("style")&&(this.customStyle=this.getAttribute("style")||""),this.hasAttribute(r)&&this.removeAttribute(r)})}getFilteredAttributes(){const e={};return Array.from(this.attributes).forEach(r=>{this.getAttributesToExclude().includes(r.name)||(e[r.name]=r.value??"")}),e}isCustomPropertySet(e){const r=getComputedStyle(this).getPropertyValue(e).trim();return r!=="inherit"&&r.length>0}applyCustomClass(e,r,n=""){var a,s;let t="";e.some(m=>this.isCustomPropertySet(m))&&(t=n),t&&((s=(a=this.shadowRoot)==null?void 0:a.querySelector(r))==null||s.classList.add(t))}removeDuplicateContent(){var a;const e=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 t;for(;t=e.nextNode();){let s;if(t.nodeType===Node.TEXT_NODE){const m=(a=t.textContent)==null?void 0:a.trim();if(!m)continue;s=`text:${m}`}else if(t instanceof HTMLElement){const m=Array.from(t.attributes).map(C=>`${C.name}=${C.value}`).sort().join(":");s=`element:${t.tagName}:${m}`}else continue;if(r.has(s)){const m=r.get(s);m&&m.parentNode&&n.push(m),r.set(s,t)}else r.set(s,t)}n.forEach(s=>{s.parentNode&&(console.log("Removing duplicate:",s),s.parentNode.removeChild(s))})}moveLightDomChildrenInto(e,r){let n;if(r&&r.length>0){n=r.filter(t=>this.contains(t)&&t!==e&&!t.contains(e));for(const t of n){const a=Array.from(e.childNodes).find(s=>{var m;return(m=s.isEqualNode)==null?void 0:m.call(s,t)});a&&e.removeChild(a)}}else n=Array.from(this.childNodes).filter(t=>t!==e&&!e.contains(t)&&!t.contains(e));for(const t of n)e.appendChild(t)}observeStyleAndClassSync(e){this.mutationObserver=new MutationObserver(r=>{for(const n of r)if(n.type==="attributes"){if(n.attributeName==="style"){const t=this.getAttribute("style")||"";t&&(this.customStyle=t,this.removeAttribute("style"))}if(n.attributeName==="class"){const t=this.getAttribute("class")||"";t&&(e.className=t,this.removeAttribute("class"))}}}),this.mutationObserver.observe(this,{attributes:!0,attributeFilter:["style","class"]})}}fr([l.property({type:String,reflect:!0})],h.prototype,"customClass"),fr([l.property({type:String,reflect:!0})],h.prototype,"customStyle");function St(){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 br=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,Ln,_t,Nn,Bn,sr,Ce,oe,qn){"use strict";const zn="rtg-flex rtg-h-9 rtg-w-full rtg-no-autofill-bg rtg-rounded-md rtg-border rtg-border-input autofill:rtg-bg-transparent 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-[3px] focus-visible:rtg-ring-custom-outline focus-visible:rtg-border-ring disabled:rtg-opacity-50 input-base";function lr(i){var e,r,n="";if(typeof i=="string"||typeof i=="number")n+=i;else if(typeof i=="object")if(Array.isArray(i)){var t=i.length;for(e=0;e<t;e++)i[e]&&(r=lr(i[e]))&&(n&&(n+=" "),n+=r)}else for(r in i)i[r]&&(n&&(n+=" "),n+=r);return n}function cr(){for(var i,e,r=0,n="",t=arguments.length;r<t;r++)(i=arguments[r])&&(e=lr(i))&&(n&&(n+=" "),n+=e);return n}const Et="-",Un=i=>{const e=Gn(i),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=i;return{getClassGroupId:s=>{const m=s.split(Et);return m[0]===""&&m.length!==1&&m.shift(),dr(m,e)||Fn(s)},getConflictingClassGroupIds:(s,m)=>{const w=r[s]||[];return m&&n[s]?[...w,...n[s]]:w}}},dr=(i,e)=>{var s;if(i.length===0)return e.classGroupId;const r=i[0],n=e.nextPart.get(r),t=n?dr(i.slice(1),n):void 0;if(t)return t;if(e.validators.length===0)return;const a=i.join(Et);return(s=e.validators.find(({validator:m})=>m(a)))==null?void 0:s.classGroupId},ur=/^\[(.+)\]$/,Fn=i=>{if(ur.test(i)){const e=ur.exec(i)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},Gn=i=>{const{theme:e,prefix:r}=i,n={nextPart:new Map,validators:[]};return Hn(Object.entries(i.classGroups),r).forEach(([a,s])=>{xt(s,n,a,e)}),n},xt=(i,e,r,n)=>{i.forEach(t=>{if(typeof t=="string"){const a=t===""?e:gr(e,t);a.classGroupId=r;return}if(typeof t=="function"){if(Vn(t)){xt(t(n),e,r,n);return}e.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(([a,s])=>{xt(s,gr(e,a),r,n)})})},gr=(i,e)=>{let r=i;return e.split(Et).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Vn=i=>i.isThemeGetter,Hn=(i,e)=>e?i.map(([r,n])=>{const t=n.map(a=>typeof a=="string"?e+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,m])=>[e+s,m])):a);return[r,t]}):i,Yn=i=>{if(i<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const t=(a,s)=>{r.set(a,s),e++,e>i&&(e=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 t(a,s),s},set(a,s){r.has(a)?r.set(a,s):t(a,s)}}},pr="!",Kn=i=>{const{separator:e,experimentalParseClassName:r}=i,n=e.length===1,t=e[0],a=e.length,s=m=>{const w=[];let b=0,C=0,x;for(let P=0;P<m.length;P++){let L=m[P];if(b===0){if(L===t&&(n||m.slice(P,P+a)===e)){w.push(m.slice(C,P)),C=P+a;continue}if(L==="/"){x=P;continue}}L==="["?b++:L==="]"&&b--}const N=w.length===0?m:m.substring(C),F=N.startsWith(pr),M=F?N.substring(1):N,q=x&&x>C?x-C:void 0;return{modifiers:w,hasImportantModifier:F,baseClassName:M,maybePostfixModifierPosition:q}};return r?m=>r({className:m,parseClassName:s}):s},Wn=i=>{if(i.length<=1)return i;const e=[];let r=[];return i.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},jn=i=>({cache:Yn(i.cacheSize),parseClassName:Kn(i),...Un(i)}),Xn=/\s+/,Zn=(i,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:t}=e,a=[],s=i.trim().split(Xn);let m="";for(let w=s.length-1;w>=0;w-=1){const b=s[w],{modifiers:C,hasImportantModifier:x,baseClassName:N,maybePostfixModifierPosition:F}=r(b);let M=!!F,q=n(M?N.substring(0,F):N);if(!q){if(!M){m=b+(m.length>0?" "+m:m);continue}if(q=n(N),!q){m=b+(m.length>0?" "+m:m);continue}M=!1}const P=Wn(C).join(":"),L=x?P+pr:P,W=L+q;if(a.includes(W))continue;a.push(W);const j=t(q,M);for(let ee=0;ee<j.length;++ee){const B=j[ee];a.push(L+B)}m=b+(m.length>0?" "+m:m)}return m};function Qn(){let i=0,e,r,n="";for(;i<arguments.length;)(e=arguments[i++])&&(r=hr(e))&&(n&&(n+=" "),n+=r);return n}const hr=i=>{if(typeof i=="string")return i;let e,r="";for(let n=0;n<i.length;n++)i[n]&&(e=hr(i[n]))&&(r&&(r+=" "),r+=e);return r};function Jn(i,...e){let r,n,t,a=s;function s(w){const b=e.reduce((C,x)=>x(C),i());return r=jn(b),n=r.cache.get,t=r.cache.set,a=m,m(w)}function m(w){const b=n(w);if(b)return b;const C=Zn(w,r);return t(w,C),C}return function(){return a(Qn.apply(null,arguments))}}const H=i=>{const e=r=>r[i]||[];return e.isThemeGetter=!0,e},mr=/^\[(?:([a-z-]+):)?(.+)\]$/i,eo=/^\d+\/\d+$/,to=new Set(["px","full","screen"]),ro=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,no=/\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$/,oo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,io=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ao=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pe=i=>ke(i)||to.has(i)||eo.test(i),he=i=>Te(i,"length",mo),ke=i=>!!i&&!Number.isNaN(Number(i)),$t=i=>Te(i,"number",ke),We=i=>!!i&&Number.isInteger(Number(i)),so=i=>i.endsWith("%")&&ke(i.slice(0,-1)),S=i=>mr.test(i),me=i=>ro.test(i),lo=new Set(["length","size","percentage"]),co=i=>Te(i,lo,vr),uo=i=>Te(i,"position",vr),go=new Set(["image","url"]),po=i=>Te(i,go,fo),ho=i=>Te(i,"",vo),je=()=>!0,Te=(i,e,r)=>{const n=mr.exec(i);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},mo=i=>no.test(i)&&!oo.test(i),vr=()=>!1,vo=i=>io.test(i),fo=i=>ao.test(i),bo=Jn(()=>{const i=H("colors"),e=H("spacing"),r=H("blur"),n=H("brightness"),t=H("borderColor"),a=H("borderRadius"),s=H("borderSpacing"),m=H("borderWidth"),w=H("contrast"),b=H("grayscale"),C=H("hueRotate"),x=H("invert"),N=H("gap"),F=H("gradientColorStops"),M=H("gradientColorStopPositions"),q=H("inset"),P=H("margin"),L=H("opacity"),W=H("padding"),j=H("saturate"),ee=H("scale"),B=H("sepia"),fe=H("skew"),be=H("space"),ae=H("translate"),te=()=>["auto","contain","none"],Ie=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",S,e],z=()=>[S,e],ce=()=>["",pe,he],re=()=>["auto",ke,S],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Z=()=>["solid","dashed","dotted","double","none"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>["start","end","center","between","around","evenly","stretch"],ue=()=>["","0",S],u=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>[ke,S];return{cacheSize:500,separator:":",theme:{colors:[je],spacing:[pe,he],blur:["none","",me,S],brightness:v(),borderColor:[i],borderRadius:["none","","full",me,S],borderSpacing:z(),borderWidth:ce(),contrast:v(),grayscale:ue(),hueRotate:v(),invert:ue(),gap:z(),gradientColorStops:[i],gradientColorStopPositions:[so,he],inset:G(),margin:G(),opacity:v(),padding:z(),saturate:v(),scale:v(),sepia:ue(),skew:v(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",S]}],container:["container"],columns:[{columns:[me]}],"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:[...X(),S]}],overflow:[{overflow:Ie()}],"overflow-x":[{"overflow-x":Ie()}],"overflow-y":[{"overflow-y":Ie()}],overscroll:[{overscroll:te()}],"overscroll-x":[{"overscroll-x":te()}],"overscroll-y":[{"overscroll-y":te()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[q]}],"inset-x":[{"inset-x":[q]}],"inset-y":[{"inset-y":[q]}],start:[{start:[q]}],end:[{end:[q]}],top:[{top:[q]}],right:[{right:[q]}],bottom:[{bottom:[q]}],left:[{left:[q]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",We,S]}],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",S]}],grow:[{grow:ue()}],shrink:[{shrink:ue()}],order:[{order:["first","last","none",We,S]}],"grid-cols":[{"grid-cols":[je]}],"col-start-end":[{col:["auto",{span:["full",We,S]},S]}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":[je]}],"row-start-end":[{row:["auto",{span:[We,S]},S]}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",S]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",S]}],gap:[{gap:[N]}],"gap-x":[{"gap-x":[N]}],"gap-y":[{"gap-y":[N]}],"justify-content":[{justify:["normal",...de()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...de(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...de(),"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":[be]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[be]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",S,e]}],"min-w":[{"min-w":[S,e,"min","max","fit"]}],"max-w":[{"max-w":[S,e,"none","full","min","max","fit","prose",{screen:[me]},me]}],h:[{h:[S,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[S,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[S,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[S,e,"auto","min","max","fit"]}],"font-size":[{text:["base",me,he]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$t]}],"font-family":[{font:[je]}],"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",S]}],"line-clamp":[{"line-clamp":["none",ke,$t]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",pe,S]}],"list-image":[{"list-image":["none",S]}],"list-style-type":[{list:["none","disc","decimal",S]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[i]}],"placeholder-opacity":[{"placeholder-opacity":[L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[i]}],"text-opacity":[{"text-opacity":[L]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",pe,he]}],"underline-offset":[{"underline-offset":["auto",pe,S]}],"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:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",S]}],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",S]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[L]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),uo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",co]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},po]}],"bg-color":[{bg:[i]}],"gradient-from-pos":[{from:[M]}],"gradient-via-pos":[{via:[M]}],"gradient-to-pos":[{to:[M]}],"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":[L]}],"border-style":[{border:[...Z(),"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":[L]}],"divide-style":[{divide:Z()}],"border-color":[{border:[t]}],"border-color-x":[{"border-x":[t]}],"border-color-y":[{"border-y":[t]}],"border-color-s":[{"border-s":[t]}],"border-color-e":[{"border-e":[t]}],"border-color-t":[{"border-t":[t]}],"border-color-r":[{"border-r":[t]}],"border-color-b":[{"border-b":[t]}],"border-color-l":[{"border-l":[t]}],"divide-color":[{divide:[t]}],"outline-style":[{outline:["",...Z()]}],"outline-offset":[{"outline-offset":[pe,S]}],"outline-w":[{outline:[pe,he]}],"outline-color":[{outline:[i]}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[i]}],"ring-opacity":[{"ring-opacity":[L]}],"ring-offset-w":[{"ring-offset":[pe,he]}],"ring-offset-color":[{"ring-offset":[i]}],shadow:[{shadow:["","inner","none",me,ho]}],"shadow-color":[{shadow:[je]}],opacity:[{opacity:[L]}],"mix-blend":[{"mix-blend":[...ye(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ye()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[w]}],"drop-shadow":[{"drop-shadow":["","none",me,S]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[C]}],invert:[{invert:[x]}],saturate:[{saturate:[j]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[w]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[L]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"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",S]}],duration:[{duration:v()}],ease:[{ease:["linear","in","out","in-out",S]}],delay:[{delay:v()}],animate:[{animate:["none","spin","ping","pulse","bounce",S]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[ee]}],"scale-x":[{"scale-x":[ee]}],"scale-y":[{"scale-y":[ee]}],rotate:[{rotate:[We,S]}],"translate-x":[{"translate-x":[ae]}],"translate-y":[{"translate-y":[ae]}],"skew-x":[{"skew-x":[fe]}],"skew-y":[{"skew-y":[fe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",S]}],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",S]}],"caret-color":[{caret:[i]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"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",S]}],fill:[{fill:[i,"none"]}],"stroke-w":[{stroke:[pe,he,$t]}],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 bo(cr(i))}var yo=Object.defineProperty,fr=(i,e,r,n)=>{for(var t=void 0,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=s(e,r,t)||t);return t&&yo(e,r,t),t};class h extends d.LitElement{constructor(){super(),this.customClass="",this.customStyle=""}getAttributesToExclude(){return[]}getAttributesToRemoveFromParent(){return["class"]}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.mutationObserver)==null||e.disconnect()}removeParentAttributes(){this.getAttributesToRemoveFromParent().forEach(r=>{r==="class"&&this.hasAttribute("class")&&(this.customClass=this.getAttribute("class")||""),r==="style"&&this.hasAttribute("style")&&(this.customStyle=this.getAttribute("style")||""),this.hasAttribute(r)&&this.removeAttribute(r)})}getFilteredAttributes(){const e={};return Array.from(this.attributes).forEach(r=>{this.getAttributesToExclude().includes(r.name)||(e[r.name]=r.value??"")}),e}isCustomPropertySet(e){const r=getComputedStyle(this).getPropertyValue(e).trim();return r!=="inherit"&&r.length>0}applyCustomClass(e,r,n=""){var a,s;let t="";e.some(m=>this.isCustomPropertySet(m))&&(t=n),t&&((s=(a=this.shadowRoot)==null?void 0:a.querySelector(r))==null||s.classList.add(t))}removeDuplicateContent(){var a;const e=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 t;for(;t=e.nextNode();){let s;if(t.nodeType===Node.TEXT_NODE){const m=(a=t.textContent)==null?void 0:a.trim();if(!m)continue;s=`text:${m}`}else if(t instanceof HTMLElement){const m=Array.from(t.attributes).map(w=>`${w.name}=${w.value}`).sort().join(":");s=`element:${t.tagName}:${m}`}else continue;if(r.has(s)){const m=r.get(s);m&&m.parentNode&&n.push(m),r.set(s,t)}else r.set(s,t)}n.forEach(s=>{s.parentNode&&(console.log("Removing duplicate:",s),s.parentNode.removeChild(s))})}moveLightDomChildrenInto(e,r){let n;if(r&&r.length>0){n=r.filter(t=>this.contains(t)&&t!==e&&!t.contains(e));for(const t of n){const a=Array.from(e.childNodes).find(s=>{var m;return(m=s.isEqualNode)==null?void 0:m.call(s,t)});a&&e.removeChild(a)}}else n=Array.from(this.childNodes).filter(t=>t!==e&&!e.contains(t)&&!t.contains(e));for(const t of n)e.appendChild(t)}observeStyleAndClassSync(e){this.mutationObserver=new MutationObserver(r=>{for(const n of r)if(n.type==="attributes"){if(n.attributeName==="style"){const t=this.getAttribute("style")||"";t&&(this.customStyle=t,this.removeAttribute("style"))}if(n.attributeName==="class"){const t=this.getAttribute("class")||"";t&&(e.className=t,this.removeAttribute("class"))}}}),this.mutationObserver.observe(this,{attributes:!0,attributeFilter:["style","class"]})}}fr([l.property({type:String,reflect:!0})],h.prototype,"customClass"),fr([l.property({type:String,reflect:!0})],h.prototype,"customStyle");function St(){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 br=d.css`
|
|
2
2
|
@font-face {
|
|
3
3
|
font-family: 'GeistSans';
|
|
4
4
|
|
|
@@ -2898,9 +2898,9 @@ body {
|
|
|
2898
2898
|
@input=${this.handleInputChange}
|
|
2899
2899
|
@focus=${this.handleFocus}
|
|
2900
2900
|
${V(e)}
|
|
2901
|
-
class="${p(
|
|
2901
|
+
class="${p(zn,this.customClass)}"
|
|
2902
2902
|
/>
|
|
2903
|
-
`}},Q([l.query("input")],o.RtgInput.prototype,"inputElement",2),Q([l.property({type:Boolean})],o.RtgInput.prototype,"disabled",2),Q([l.property({type:String})],o.RtgInput.prototype,"type",2),Q([l.property({type:String})],o.RtgInput.prototype,"placeholder",2),Q([l.property({type:String})],o.RtgInput.prototype,"defaultValue",2),Q([l.property({type:String})],o.RtgInput.prototype,"value",2),Q([l.property({type:String,attribute:"data-key"})],o.RtgInput.prototype,"dataKey",2),Q([l.property({type:String})],o.RtgInput.prototype,"country",2),Q([l.property({type:String})],o.RtgInput.prototype,"countryCode",2),Q([l.property({type:String})],o.RtgInput.prototype,"selectedLabel",2),Q([l.state()],o.RtgInput.prototype,"rawTelValue",2),o.RtgInput=Q([l.customElement("rtg-input")],o.RtgInput);const Er=i=>typeof i=="boolean"?`${i}`:i===0?"0":i,xr=cr,J=(i,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return xr(i,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:t,defaultVariants:a}=e,s=Object.keys(t).map(b=>{const
|
|
2903
|
+
`}},Q([l.query("input")],o.RtgInput.prototype,"inputElement",2),Q([l.property({type:Boolean})],o.RtgInput.prototype,"disabled",2),Q([l.property({type:String})],o.RtgInput.prototype,"type",2),Q([l.property({type:String})],o.RtgInput.prototype,"placeholder",2),Q([l.property({type:String})],o.RtgInput.prototype,"defaultValue",2),Q([l.property({type:String})],o.RtgInput.prototype,"value",2),Q([l.property({type:String,attribute:"data-key"})],o.RtgInput.prototype,"dataKey",2),Q([l.property({type:String})],o.RtgInput.prototype,"country",2),Q([l.property({type:String})],o.RtgInput.prototype,"countryCode",2),Q([l.property({type:String})],o.RtgInput.prototype,"selectedLabel",2),Q([l.state()],o.RtgInput.prototype,"rawTelValue",2),o.RtgInput=Q([l.customElement("rtg-input")],o.RtgInput);const Er=i=>typeof i=="boolean"?`${i}`:i===0?"0":i,xr=cr,J=(i,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return xr(i,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:t,defaultVariants:a}=e,s=Object.keys(t).map(b=>{const C=r==null?void 0:r[b],x=a==null?void 0:a[b];if(C===null)return null;const N=Er(C)||Er(x);return t[b][N]}),m=r&&Object.entries(r).reduce((b,C)=>{let[x,N]=C;return N===void 0||(b[x]=N),b},{}),w=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((b,C)=>{let{class:x,className:N,...F}=C;return Object.entries(F).every(M=>{let[q,P]=M;return Array.isArray(P)?P.includes({...a,...m}[q]):{...a,...m}[q]===P})?[...b,x,N]:b},[]);return xr(i,s,w,r==null?void 0:r.class,r==null?void 0:r.className)},Eo=J("rtg-text-sm rtg-font-medium rtg-leading-none peer-disabled:rtg-cursor-not-allowed peer-disabled:rtg-opacity-70");var xo=Object.defineProperty,$o=Object.getOwnPropertyDescriptor,$r=(i,e,r,n)=>{for(var t=n>1?void 0:n?$o(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&xo(e,r,t),t};o.Label=class extends h{constructor(){super(...arguments),this.for=""}firstUpdated(e){const r=["--label-text-color","--label-padding"];this.applyCustomClass(r,"label","label-base")}getAttributesToExclude(){return["for","data-testid","class"]}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return d.html`
|
|
2904
2904
|
<label
|
|
2905
2905
|
${V(e)}
|
|
2906
2906
|
part="label"
|
|
@@ -2970,7 +2970,7 @@ body {
|
|
|
2970
2970
|
<span class="${p(Ro,this.className)}" part="avatar">
|
|
2971
2971
|
<slot></slot>
|
|
2972
2972
|
</span>
|
|
2973
|
-
`}},o.Avatar=Bo([l.customElement("rtg-avatar")],o.Avatar);const qo="rtg-relative rtg-w-full rtg-overflow-hidden rtg-bg-muted";var
|
|
2973
|
+
`}},o.Avatar=Bo([l.customElement("rtg-avatar")],o.Avatar);const qo="rtg-relative rtg-w-full rtg-overflow-hidden rtg-bg-muted";var zo=Object.defineProperty,Uo=Object.getOwnPropertyDescriptor,Sr=(i,e,r,n)=>{for(var t=n>1?void 0:n?Uo(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&zo(e,r,t),t};o.AspectRatio=class extends d.LitElement{constructor(){super(...arguments),this.ratio=16/9,this._children=[]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._children=Array.from(this.childNodes)}render(){const e=1/this.ratio*100;return d.html`
|
|
2974
2974
|
<div
|
|
2975
2975
|
class="${p(qo,this.className)}"
|
|
2976
2976
|
style="padding-top: ${e}%;"
|
|
@@ -3011,7 +3011,7 @@ body {
|
|
|
3011
3011
|
style="${r}"
|
|
3012
3012
|
@click="${this.click}"
|
|
3013
3013
|
></button>
|
|
3014
|
-
`}},o.Button.buttonVariants=Wo,_e([l.property({type:Function})],o.Button.prototype,"click",2),_e([l.property({type:Boolean})],o.Button.prototype,"disabled",2),_e([l.property({type:String})],o.Button.prototype,"type",2),_e([l.property({type:String})],o.Button.prototype,"variant",2),_e([l.property({type:String})],o.Button.prototype,"size",2),_e([l.query("button")],o.Button.prototype,"buttonElement",2),o.Button=_e([l.customElement("rtg-button")],o.Button);var Zo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,ve=(i,e,r,n)=>{for(var t=n>1?void 0:n?Qo(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Zo(e,r,t),t};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(e,r){return new Date(e,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(e,r){if(!r){const n=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth(),e);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(e){return!this.selectedStartDate||!this.selectedEndDate||e.getMonth()!==this.currentDate.getMonth()?!1:e>=this.selectedStartDate&&e<=this.selectedEndDate}createRenderRoot(){return this}render(){const e=this.currentDate.getFullYear(),r=this.currentDate.getMonth(),n=this.getDaysInMonth(e,r),t=new Date(e,r,1).getDay(),a=new Date(e,r,0).getDate();let s=Array.from({length:t},(m,
|
|
3014
|
+
`}},o.Button.buttonVariants=Wo,_e([l.property({type:Function})],o.Button.prototype,"click",2),_e([l.property({type:Boolean})],o.Button.prototype,"disabled",2),_e([l.property({type:String})],o.Button.prototype,"type",2),_e([l.property({type:String})],o.Button.prototype,"variant",2),_e([l.property({type:String})],o.Button.prototype,"size",2),_e([l.query("button")],o.Button.prototype,"buttonElement",2),o.Button=_e([l.customElement("rtg-button")],o.Button);var Zo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,ve=(i,e,r,n)=>{for(var t=n>1?void 0:n?Qo(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Zo(e,r,t),t};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(e,r){return new Date(e,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(e,r){if(!r){const n=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth(),e);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(e){return!this.selectedStartDate||!this.selectedEndDate||e.getMonth()!==this.currentDate.getMonth()?!1:e>=this.selectedStartDate&&e<=this.selectedEndDate}createRenderRoot(){return this}render(){const e=this.currentDate.getFullYear(),r=this.currentDate.getMonth(),n=this.getDaysInMonth(e,r),t=new Date(e,r,1).getDay(),a=new Date(e,r,0).getDate();let s=Array.from({length:t},(m,w)=>({day:(a-(t-1)+w).toString(),isInactive:!0,isCurrentMonth:!1}));return s=s.concat(Array.from({length:n},(m,w)=>({day:(w+1).toString(),isInactive:!1,isCurrentMonth:!0}))),d.html`
|
|
3015
3015
|
<div
|
|
3016
3016
|
part="calendar"
|
|
3017
3017
|
style="
|
|
@@ -3096,9 +3096,9 @@ body {
|
|
|
3096
3096
|
</tr>
|
|
3097
3097
|
</thead>
|
|
3098
3098
|
<tbody class="rdp-tbody">
|
|
3099
|
-
${Array.from({length:Math.ceil(s.length/7)},(m,
|
|
3099
|
+
${Array.from({length:Math.ceil(s.length/7)},(m,w)=>d.html`
|
|
3100
3100
|
<tr class="rtg-mt-2 rtg-flex rtg-w-full">
|
|
3101
|
-
${s.slice(
|
|
3101
|
+
${s.slice(w*7,(w+1)*7).map(b=>{const C=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth(),Number(b.day)),x=this.selectedStartDate&&C.toDateString()===this.selectedStartDate.toDateString(),N=this.selectedEndDate&&C.toDateString()===this.selectedEndDate.toDateString(),F=this.isDayInRange(C);return d.html`
|
|
3102
3102
|
<td
|
|
3103
3103
|
class="${p("rtg-relative rtg-p-0 rtg-text-center rtg-text-sm focus-within:rtg-relative focus-within:rtg-z-20",x&&b.isCurrentMonth&&"day-range-start",N&&b.isCurrentMonth&&"day-range-end",F&&b.isCurrentMonth&&"day-in-range bg-muted")}"
|
|
3104
3104
|
role="presentation"
|
|
@@ -3443,7 +3443,7 @@ body {
|
|
|
3443
3443
|
part="card"
|
|
3444
3444
|
class=${p(Ni,this.className)}
|
|
3445
3445
|
id="rtg-card-id"
|
|
3446
|
-
></div>`}},Ar([l.query("#rtg-card-id")],o.Card.prototype,"wrapperDivElement",2),o.Card=Ar([l.customElement("rtg-card")],o.Card);var
|
|
3446
|
+
></div>`}},Ar([l.query("#rtg-card-id")],o.Card.prototype,"wrapperDivElement",2),o.Card=Ar([l.customElement("rtg-card")],o.Card);var zi=Object.defineProperty,Ui=Object.getOwnPropertyDescriptor,Me=(i,e,r,n)=>{for(var t=n>1?void 0:n?Ui(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&zi(e,r,t),t};o.Carousel=class extends d.LitElement{constructor(){super(...arguments),this.currentIndex=0,this.items=[],this.orientation="horizontal",this.size=!1,this.handleResize=()=>{this.updateSlides(),this.currentIndex=0,this.querySelectorAll(".slide").forEach(r=>{r.className=this.getSlideClasses()})}}createRenderRoot(){return this}firstUpdated(){this.restructureSlides()}restructureSlides(){const e=this.querySelector(".slides");if(e)for(let r=0;r<this.items.length;r++){const n=`slide-${r}`,t=this.querySelector(`[slot="${n}"]`);if(t&&t.parentElement!==e){const a=document.createElement("div");a.className=this.getSlideClasses(),e.appendChild(a),a.appendChild(t)}}}getSlideClasses(){let e="rtg-min-w-0 rtg-flex-shrink-0 rtg-flex-grow-0 rtg-transition-transform rtg-duration-500 rtg-p-1";return this.size?`${e} lg:rtg-basis-1/3 lg:rtg-h-1/2 md:rtg-basis-1/2 md:rtg-h-1/2 rtg-basis-full rtg-h-full`:`${e} rtg-basis-full rtg-h-full`}nextSlide(){this.currentIndex<this.items.length-1&&(this.currentIndex+=1,this.updateSlides())}prevSlide(){this.currentIndex>0&&(this.currentIndex-=1,this.updateSlides())}updateSlides(){let e;this.size?window.innerWidth>=1024?e=33.3333:window.innerWidth>=768?e=50:e=100:e=100;const r=this.orientation==="vertical"?100/this.items.length:100;this.slides&&(this.slides.style.transform=this.orientation==="horizontal"?`translateX(-${this.currentIndex*e}%)`:`translateY(-${this.currentIndex*r}%)`)}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.handleResize)}render(){const e=this.currentIndex===0,r=this.size?window.innerWidth>=1024?3:window.innerWidth>=768?2:1:1,n=this.currentIndex>=this.items.length-r,t=p("rtg-flex rtg-transition-transform rtg-duration-500 rtg-ease-in-out",this.orientation==="horizontal"?"rtg-flex-row":"rtg-flex-col"),a=p("rtg-absolute rtg-z-10 rtg-flex",this.orientation==="horizontal"?"rtg-top-1/2 rtg-left-[-60px] rtg-right-[-60px] rtg-justify-between rtg-transform-translate-y-1/2":"rtg-w-full rtg-h-full rtg-top-0 rtg-flex-col rtg-justify-between rtg-items-center"),s=`rtg-bg-black/80 rtg-text-white rtg-border-none rtg-p-2 rtg-cursor-pointer rtg-z-10 rtg-rounded-full rtg-w-10 rtg-h-10 rtg-flex rtg-items-center rtg-justify-center hover:rtg-bg-black/80 disabled:rtg-bg-black/20 ${this.orientation==="vertical"&&"rtg-relative rtg-top-[-50px] rtg-rotate-90"}`,m=`rtg-bg-black/80 rtg-text-white rtg-border-none rtg-p-2 rtg-cursor-pointer rtg-z-10 rtg-rounded-full rtg-w-10 rtg-h-10 rtg-flex rtg-items-center rtg-justify-center hover:rtg-bg-black/80 disabled:rtg-bg-black/20 ${this.orientation==="vertical"&&"rtg-relative rtg-top-[50px] rtg-rotate-90"}`;return d.html`
|
|
3447
3447
|
<div
|
|
3448
3448
|
part="rtg-carousel"
|
|
3449
3449
|
class="${p("rtg-relative rtg-mx-auto rtg-h-full rtg-w-full",this.className)}"
|
|
@@ -3592,7 +3592,7 @@ body {
|
|
|
3592
3592
|
part="hover-card"
|
|
3593
3593
|
class="${p("",this.className)}"
|
|
3594
3594
|
></div>
|
|
3595
|
-
`}},Br([l.state()],o.HoverCard.prototype,"isOpen",2),o.HoverCard=Br([l.customElement("rtg-hover-card")],o.HoverCard);const va="rtg-flex rtg-h-full rtg-w-full rtg-flex-col rtg-overflow-hidden rtg-rounded-md rtg-bg-popover rtg-text-popover-foreground rtg-border rtg-shadow-md",fa="py-6 text-center text-sm",ba="rtg-overflow-hidden rtg-p-1 rtg-text-foreground [&_[rtgcmd-group-heading]]:rtg-px-2 [&_[rtgcmd-group-heading]]:rtg-py-1.5 [&_[rtgcmd-group-heading]]:rtg-text-xs [&_[rtgcmd-group-heading]]:rtg-font-medium [&_[rtgcmd-group-heading]]:rtg-text-muted-foreground",ya="rtg-flex rtg-items-center rtg-border-b rtg-px-3",wa="rtg-relative rtg-flex rtg-cursor-default rtg-select-none rtg-items-center rtg-rounded-sm rtg-px-2 rtg-py-1.5 rtg-text-sm rtg-outline-none aria-selected:rtg-bg-accent aria-selected:rtg-text-accent-foreground data-[disabled]:rtg-pointer-events-none data-[disabled]:rtg-opacity-50 hover:rtg-bg-accent focus:rtg-outline-none",Ca="rtg-max-h-[300px] rtg-overflow-y-auto rtg-overflow-x-hidden",_a="rtg-mx-1 rtg-h-px rtg-bg-border";var Ea=Object.defineProperty,xa=Object.getOwnPropertyDescriptor,At=(i,e,r,n)=>{for(var t=n>1?void 0:n?xa(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Ea(e,r,t),t};o.CommandInput=class extends d.LitElement{constructor(){super(...arguments),this.placeholder="Type a command or search...",this._value=""}get identifier(){const e=this.parentElement;return e?`${e.getAttribute("id")}i`:"rtgcmdrxi"}filterItems(){const e=this.parentElement;if(e){let r=!0;const n=e.querySelectorAll("rtg-command-group");n&&n.forEach(a=>{var b,
|
|
3595
|
+
`}},Br([l.state()],o.HoverCard.prototype,"isOpen",2),o.HoverCard=Br([l.customElement("rtg-hover-card")],o.HoverCard);const va="rtg-flex rtg-h-full rtg-w-full rtg-flex-col rtg-overflow-hidden rtg-rounded-md rtg-bg-popover rtg-text-popover-foreground rtg-border rtg-shadow-md",fa="py-6 text-center text-sm",ba="rtg-overflow-hidden rtg-p-1 rtg-text-foreground [&_[rtgcmd-group-heading]]:rtg-px-2 [&_[rtgcmd-group-heading]]:rtg-py-1.5 [&_[rtgcmd-group-heading]]:rtg-text-xs [&_[rtgcmd-group-heading]]:rtg-font-medium [&_[rtgcmd-group-heading]]:rtg-text-muted-foreground",ya="rtg-flex rtg-items-center rtg-border-b rtg-px-3",wa="rtg-relative rtg-flex rtg-cursor-default rtg-select-none rtg-items-center rtg-rounded-sm rtg-px-2 rtg-py-1.5 rtg-text-sm rtg-outline-none aria-selected:rtg-bg-accent aria-selected:rtg-text-accent-foreground data-[disabled]:rtg-pointer-events-none data-[disabled]:rtg-opacity-50 hover:rtg-bg-accent focus:rtg-outline-none",Ca="rtg-max-h-[300px] rtg-overflow-y-auto rtg-overflow-x-hidden",_a="rtg-mx-1 rtg-h-px rtg-bg-border";var Ea=Object.defineProperty,xa=Object.getOwnPropertyDescriptor,At=(i,e,r,n)=>{for(var t=n>1?void 0:n?xa(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Ea(e,r,t),t};o.CommandInput=class extends d.LitElement{constructor(){super(...arguments),this.placeholder="Type a command or search...",this._value=""}get identifier(){const e=this.parentElement;return e?`${e.getAttribute("id")}i`:"rtgcmdrxi"}filterItems(){const e=this.parentElement;if(e){let r=!0;const n=e.querySelectorAll("rtg-command-group");n&&n.forEach(a=>{var b,C;let s=!0;const m=a.querySelectorAll("rtg-command-item");m&&m.forEach(x=>{(x.value||"").toLowerCase().includes(this._value.toLowerCase())?(s=!1,r=!1,x._hidden="false"):x._hidden="true"}),a._hidden=s?"true":"false";let w=a.previousElementSibling;w&&(w._hidden=s||((b=w.previousElementSibling)==null?void 0:b.getAttribute("aria-hidden"))==="true"?"true":"false"),w=a.nextElementSibling,w&&(w._hidden=s||((C=w.nextElementSibling)==null?void 0:C.getAttribute("aria-hidden"))==="true"?"true":"false")});const t=e.querySelector("rtg-command-empty");t&&t.setAttribute("aria-hidden",r?"false":"true")}}handleChange(e){const r=e.target;r&&(this._value=r.value,this.filterItems())}createRenderRoot(){return this}render(){return d.html`
|
|
3596
3596
|
<div
|
|
3597
3597
|
part="command-input"
|
|
3598
3598
|
class="${p(ya,this.className)}"
|
|
@@ -3702,7 +3702,7 @@ body {
|
|
|
3702
3702
|
id="rtgcmdr1"
|
|
3703
3703
|
rtgcmd-root
|
|
3704
3704
|
></div>
|
|
3705
|
-
`}},o.Command=La([l.customElement("rtg-command")],o.Command);const Na="rtg-relative rtg-flex rtg-cursor-default rtg-select-none rtg-items-center rtg-rounded-sm rtg-px-2 rtg-py-1.5 rtg-text-sm rtg-outline-none aria-selected:rtg-bg-accent aria-selected:rtg-text-accent-foreground",Ba="rtg-z-50 rtg-min-w-[8rem] rtg-overflow-hidden rtg-rounded-md rtg-border rtg-bg-popover rtg-p-1 rtg-text-popover-foreground rtg-shadow-md data-[state=open]:rtg-animate-in data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0 data-[state=open]:rtg-fade-in-0 data-[state=closed]:rtg-zoom-out-95 data-[state=open]:rtg-zoom-in-95 data-[side=bottom]:rtg-slide-in-from-top-2 data-[side=left]:rtg-slide-in-from-right-2 data-[side=right]:rtg-slide-in-from-left-2 data-[side=top]:rtg-slide-in-from-bottom-2",qa="rtg-overflow-hidden rtg-p-1 rtg-text-foreground [&_[rtgcmd-group-heading]]:rtg-px-2 [&_[rtgcmd-group-heading]]:rtg-py-1.5 [&_[rtgcmd-group-heading]]:rtg-text-xs [&_[rtgcmd-group-heading]]:rtg-font-medium [&_[rtgcmd-group-heading]]:rtg-text-muted-foreground",
|
|
3705
|
+
`}},o.Command=La([l.customElement("rtg-command")],o.Command);const Na="rtg-relative rtg-flex rtg-cursor-default rtg-select-none rtg-items-center rtg-rounded-sm rtg-px-2 rtg-py-1.5 rtg-text-sm rtg-outline-none aria-selected:rtg-bg-accent aria-selected:rtg-text-accent-foreground",Ba="rtg-z-50 rtg-min-w-[8rem] rtg-overflow-hidden rtg-rounded-md rtg-border rtg-bg-popover rtg-p-1 rtg-text-popover-foreground rtg-shadow-md data-[state=open]:rtg-animate-in data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0 data-[state=open]:rtg-fade-in-0 data-[state=closed]:rtg-zoom-out-95 data-[state=open]:rtg-zoom-in-95 data-[side=bottom]:rtg-slide-in-from-top-2 data-[side=left]:rtg-slide-in-from-right-2 data-[side=right]:rtg-slide-in-from-left-2 data-[side=top]:rtg-slide-in-from-bottom-2",qa="rtg-overflow-hidden rtg-p-1 rtg-text-foreground [&_[rtgcmd-group-heading]]:rtg-px-2 [&_[rtgcmd-group-heading]]:rtg-py-1.5 [&_[rtgcmd-group-heading]]:rtg-text-xs [&_[rtgcmd-group-heading]]:rtg-font-medium [&_[rtgcmd-group-heading]]:rtg-text-muted-foreground",za="rtg-relative rtg-flex rtg-cursor-default rtg-select-none rtg-items-center rtg-rounded-sm rtg-px-2 rtg-py-1.5 rtg-text-sm rtg-outline-none focus:bg-accent focus:rtg-text-accent-foreground data-[disabled]:rtg-pointer-events-none data-[disabled]:rtg-opacity-50 hover:rtg-bg-accent hover:rtg-text-accent-foreground",Ua="rtg-relative rtg-flex rtg-cursor-default rtg-select-none rtg-items-center rtg-rounded-sm rtg-px-2 rtg-py-1.5 rtg-text-sm rtg-outline-none aria-selected:rtg-bg-accent aria-selected:rtg-text-accent-foreground",Fa="rtg-mx-1 rtg-h-px rtg-bg-border",Ga="rtg-ml-auto rtg-text-xs rtg-font-semibold";var Va=Object.defineProperty,Ha=Object.getOwnPropertyDescriptor,qr=(i,e,r,n)=>{for(var t=n>1?void 0:n?Ha(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Va(e,r,t),t};o.ContextMenuContent=class extends h{constructor(){super(),this.isOpen=!1,this.handleClickOutside=this.handleClickOutside.bind(this)}get _containerElement(){return this.querySelector("div[part=context-menu-content")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}handleClickOutside(e){const r=this==null?void 0:this.querySelector("button");!this.contains(e.target)&&!(r!=null&&r.contains(e.target))&&requestAnimationFrame(()=>{this._containerElement.style.display="none",this._containerElement.style.position="absolute",this._containerElement.dataset.state="closed",this.isOpen=!1})}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3706
3706
|
<div
|
|
3707
3707
|
part="context-menu-content"
|
|
3708
3708
|
class="${p(Ba,this.className)}"
|
|
@@ -3740,7 +3740,7 @@ body {
|
|
|
3740
3740
|
</span>
|
|
3741
3741
|
<div part="context-menu-checkbox-item-container"></div>
|
|
3742
3742
|
</div>
|
|
3743
|
-
`}},Le([l.property({type:String})],o.ContextMenuCheckboxItem.prototype,"_id",2),Le([l.property({attribute:"data-value",type:String})],o.ContextMenuCheckboxItem.prototype,"value",1),Le([l.property({type:Boolean})],o.ContextMenuCheckboxItem.prototype,"selected",2),Le([l.property({type:Boolean})],o.ContextMenuCheckboxItem.prototype,"checked",2),Le([l.property({type:Boolean})],o.ContextMenuCheckboxItem.prototype,"disabled",2),o.ContextMenuCheckboxItem=Le([l.customElement("rtg-context-menu-checkbox-item")],o.ContextMenuCheckboxItem);var Wa=Object.defineProperty,ja=Object.getOwnPropertyDescriptor,
|
|
3743
|
+
`}},Le([l.property({type:String})],o.ContextMenuCheckboxItem.prototype,"_id",2),Le([l.property({attribute:"data-value",type:String})],o.ContextMenuCheckboxItem.prototype,"value",1),Le([l.property({type:Boolean})],o.ContextMenuCheckboxItem.prototype,"selected",2),Le([l.property({type:Boolean})],o.ContextMenuCheckboxItem.prototype,"checked",2),Le([l.property({type:Boolean})],o.ContextMenuCheckboxItem.prototype,"disabled",2),o.ContextMenuCheckboxItem=Le([l.customElement("rtg-context-menu-checkbox-item")],o.ContextMenuCheckboxItem);var Wa=Object.defineProperty,ja=Object.getOwnPropertyDescriptor,zr=(i,e,r,n)=>{for(var t=n>1?void 0:n?ja(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Wa(e,r,t),t};o.ContextMenuGroup=class extends h{constructor(){super(...arguments),this.heading=""}get _containerElement(){return this.querySelector("div[ rtgcontext-group-items]")}createRenderRoot(){return this}getAttributesToExclude(){return["data-testid"]}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3744
3744
|
<div
|
|
3745
3745
|
part="context-menu-group"
|
|
3746
3746
|
class="${p(qa,this.className)}"
|
|
@@ -3750,17 +3750,17 @@ body {
|
|
|
3750
3750
|
<div rtgcmd-group-heading aria-hidden="true">${this.heading}</div>
|
|
3751
3751
|
<div rtgcontext-group-items role="group"></div>
|
|
3752
3752
|
</div>
|
|
3753
|
-
`}},
|
|
3753
|
+
`}},zr([l.property({type:String})],o.ContextMenuGroup.prototype,"heading",2),o.ContextMenuGroup=zr([l.customElement("rtg-context-menu-group")],o.ContextMenuGroup);var Xa=Object.defineProperty,Za=Object.getOwnPropertyDescriptor,Ur=(i,e,r,n)=>{for(var t=n>1?void 0:n?Za(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Xa(e,r,t),t};o.ContextMenuItem=class extends h{get _containerElement(){return this.querySelector("div[part=context-menu-item]")}getAttributesToExclude(){return[]}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}firstUpdated(e){var r;this.moveLightDomChildrenInto(this._containerElement),(r=this._containerElement)==null||r.addEventListener("click",()=>{this.dispatchEvent(new MouseEvent("click",{bubbles:!0,composed:!0,cancelable:!0})),this.dispatchEvent(new CustomEvent("close-context-menu",{bubbles:!0,composed:!0}))})}connectedCallback(){super.connectedCallback()}disconnectedCallback(){}createRenderRoot(){return this}render(){return d.html`
|
|
3754
3754
|
<div
|
|
3755
3755
|
part="context-menu-item"
|
|
3756
|
-
class="${p(
|
|
3756
|
+
class="${p(za,this.className)}"
|
|
3757
3757
|
role="option"
|
|
3758
3758
|
data-value="${this.value}"
|
|
3759
3759
|
></div>
|
|
3760
|
-
`}},
|
|
3760
|
+
`}},Ur([l.property({attribute:"data-value",type:String})],o.ContextMenuItem.prototype,"value",1),o.ContextMenuItem=Ur([l.customElement("rtg-context-menu-item")],o.ContextMenuItem);var Qa=Object.defineProperty,Ja=Object.getOwnPropertyDescriptor,Ne=(i,e,r,n)=>{for(var t=n>1?void 0:n?Ja(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Qa(e,r,t),t};o.ContextMenuRadioItem=class extends h{constructor(){super(...arguments),this._id="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _containerElement(){return this.querySelector("div[part=context-menu-radio-item-container]")}getAttributesToExclude(){return["data-testid"]}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.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(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3761
3761
|
<div
|
|
3762
3762
|
part="context-menu-radio"
|
|
3763
|
-
class="${p(
|
|
3763
|
+
class="${p(Ua,this.disabled?"pointer-events-none opacity-50":"",this.className)}"
|
|
3764
3764
|
@click=${this.toggleChecked}
|
|
3765
3765
|
@mouseover="${this.handleMouseEvent}"
|
|
3766
3766
|
@mouseleave="${this.handleMouseEvent}"
|
|
@@ -3891,16 +3891,16 @@ body {
|
|
|
3891
3891
|
class="${p("rtg-pointer-events-none rtg-block rtg-h-4 rtg-w-4 rtg-rounded-full rtg-bg-background rtg-shadow-lg rtg-ring-0 rtg-transition-transform",t)}"
|
|
3892
3892
|
></div>
|
|
3893
3893
|
</div>
|
|
3894
|
-
`}},qt([l.property({type:Boolean,reflect:!0})],o.Switch.prototype,"checked",2),qt([l.property({type:Boolean})],o.Switch.prototype,"disabled",2),o.Switch=qt([l.customElement("rtg-switch")],o.Switch);const
|
|
3894
|
+
`}},qt([l.property({type:Boolean,reflect:!0})],o.Switch.prototype,"checked",2),qt([l.property({type:Boolean})],o.Switch.prototype,"disabled",2),o.Switch=qt([l.customElement("rtg-switch")],o.Switch);const zt="closed",Bs="rtg-relative rtg-flex rtg-cursor-default rtg-select-none rtg-items-center rtg-rounded-sm rtg-px-2 rtg-py-1.5 rtg-text-sm rtg-outline-none aria-selected:rtg-bg-accent aria-selected:rtg-text-accent-foreground",qs="rtg-absolute rtg-flex rtg-h-full rtg-max-h-[300px] rtg-flex-col rtg-overflow-y-auto rtg-overflow-x-hidden rtg-rounded-md rtg-border rtg-bg-popover rtg-text-popover-foreground shadow-md",zs="rtg-overflow-hidden rtg-p-1 rtg-text-foreground [&_[rtgcmd-group-heading]]:rtg-px-2 [&_[rtgcmd-group-heading]]:rtg-py-1.5 [&_[rtgcmd-group-heading]]:rtg-text-xs [&_[rtgcmd-group-heading]]:rtg-font-medium [&_[rtgcmd-group-heading]]:rtg-text-muted-foreground",Us="rtg-relative rtg-flex rtg-cursor-default rtg-select-none rtg-items-center rtg-rounded-sm rtg-px-2 rtg-py-1.5 rtg-text-sm rtg-outline-none aria-selected:rtg-bg-accent aria-selected:rtg-text-accent-foreground data-[disabled]:rtg-pointer-events-none data-[disabled]:rtg-opacity-50",Fs="rtg-relative rtg-flex rtg-cursor-default rtg-select-none rtg-items-center rtg-rounded-sm rtg-px-2 rtg-py-1.5 rtg-text-sm rtg-outline-none aria-selected:rtg-bg-accent aria-selected:rtg-text-accent-foreground",Gs="rtg-mx-1 rtg-h-px rtg-bg-border";var Vs=Object.defineProperty,Hs=Object.getOwnPropertyDescriptor,Ut=(i,e,r,n)=>{for(var t=n>1?void 0:n?Hs(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Vs(e,r,t),t};o.DropdownMenuContent=class extends h{constructor(){super(...arguments),this.state=zt,this.isOpen=!1}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof o.DropdownMenu);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=dropdown-menu-content]")}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3895
3895
|
<div
|
|
3896
3896
|
part="dropdown-menu-content"
|
|
3897
3897
|
class="${p(qs,this.className)}"
|
|
3898
3898
|
style="display: ${this.isOpen?"block":"none"};height:auto;z-index: 50"
|
|
3899
3899
|
></div>
|
|
3900
|
-
`}},
|
|
3900
|
+
`}},Ut([l.property({attribute:"data-state",type:String})],o.DropdownMenuContent.prototype,"state",2),Ut([l.state()],o.DropdownMenuContent.prototype,"isOpen",2),o.DropdownMenuContent=Ut([l.customElement("rtg-dropdown-menu-content")],o.DropdownMenuContent);var Ys=Object.defineProperty,Ks=Object.getOwnPropertyDescriptor,et=(i,e,r,n)=>{for(var t=n>1?void 0:n?Ks(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Ys(e,r,t),t};o.DropdownMenuItem=class extends h{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1}get _containerElement(){return this.querySelector("div[part=dropdown-menu-item]")}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof o.DropdownMenu);)e=e.parentElement;return e}handleMouseEvent(e){console.log(e,this.value),(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}handleClickDefault(){this._dropdownMenu.isOpen=!1}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html` ${this._hidden==="true"?d.nothing:d.html`
|
|
3901
3901
|
<div
|
|
3902
3902
|
part="dropdown-menu-item"
|
|
3903
|
-
class="${p(
|
|
3903
|
+
class="${p(Us,this.className)}"
|
|
3904
3904
|
@mouseover="${this.handleMouseEvent}"
|
|
3905
3905
|
@mouseleave="${this.handleMouseEvent}"
|
|
3906
3906
|
@focus="${this.handleMouseEvent}"
|
|
@@ -3977,7 +3977,7 @@ body {
|
|
|
3977
3977
|
`}},Be([l.property({type:String})],o.DropdownMenuCheckboxItem.prototype,"_id",2),Be([l.property({attribute:"data-value",type:String})],o.DropdownMenuCheckboxItem.prototype,"value",1),Be([l.property({type:Boolean})],o.DropdownMenuCheckboxItem.prototype,"selected",2),Be([l.property({type:Boolean})],o.DropdownMenuCheckboxItem.prototype,"checked",2),Be([l.property({type:Boolean})],o.DropdownMenuCheckboxItem.prototype,"disabled",2),o.DropdownMenuCheckboxItem=Be([l.customElement("rtg-dropdown-menu-checkbox-item")],o.DropdownMenuCheckboxItem);var el=Object.defineProperty,tl=Object.getOwnPropertyDescriptor,dt=(i,e,r,n)=>{for(var t=n>1?void 0:n?tl(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&el(e,r,t),t};o.DropdownMenuGroup=class extends h{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get _containerElement(){return this.querySelector("div[rtgcmd-group-items]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`${this._hidden==="true"?d.nothing:d.html`
|
|
3978
3978
|
<div
|
|
3979
3979
|
part="dropdown-menu-group"
|
|
3980
|
-
class="${p(
|
|
3980
|
+
class="${p(zs,this.className)}"
|
|
3981
3981
|
rtgcmd-group
|
|
3982
3982
|
role="presentation"
|
|
3983
3983
|
>
|
|
@@ -4043,7 +4043,7 @@ body {
|
|
|
4043
4043
|
part="pagination-content"
|
|
4044
4044
|
class="${p(fl,this.className)}"
|
|
4045
4045
|
></ul>
|
|
4046
|
-
`}},o.PaginationContent=El([l.customElement("rtg-pagination-content")],o.PaginationContent);var xl=Object.defineProperty,$l=Object.getOwnPropertyDescriptor,
|
|
4046
|
+
`}},o.PaginationContent=El([l.customElement("rtg-pagination-content")],o.PaginationContent);var xl=Object.defineProperty,$l=Object.getOwnPropertyDescriptor,ze=(i,e,r,n)=>{for(var t=n>1?void 0:n?$l(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&xl(e,r,t),t};o.PaginationLink=class extends h{constructor(){super(...arguments),this.state="close",this.isActive=!1,this.size="icon",this.variant="ghost",this.href="javascript:void(0)"}get _containerElement(){return this.querySelector("a[part=pagination-link]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}updated(e){super.updated(e),this.state==="open"?this.isActive=!0:this.isActive=!1}render(){return d.html`
|
|
4047
4047
|
<a
|
|
4048
4048
|
part="pagination-link"
|
|
4049
4049
|
data-state="${this.isActive}"
|
|
@@ -4053,7 +4053,7 @@ body {
|
|
|
4053
4053
|
class="${p(o.PaginationLink.paginationVariants({variant:this.isActive?"outline":"ghost",size:this.size,className:this.className}),this.className)}"
|
|
4054
4054
|
>
|
|
4055
4055
|
</a>
|
|
4056
|
-
`}},o.PaginationLink.paginationVariants=vl,
|
|
4056
|
+
`}},o.PaginationLink.paginationVariants=vl,ze([l.property({attribute:"data-state",type:String})],o.PaginationLink.prototype,"state",2),ze([l.property({type:Boolean})],o.PaginationLink.prototype,"isActive",2),ze([l.property({type:String})],o.PaginationLink.prototype,"size",2),ze([l.property({type:String})],o.PaginationLink.prototype,"variant",2),ze([l.property({type:String})],o.PaginationLink.prototype,"href",2),o.PaginationLink=ze([l.customElement("rtg-pagination-link")],o.PaginationLink);var Sl=Object.defineProperty,Ol=Object.getOwnPropertyDescriptor,Ft=(i,e,r,n)=>{for(var t=n>1?void 0:n?Ol(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Sl(e,r,t),t};o.PaginationItem=class extends h{constructor(){super(...arguments),this.uniqueIds=[],this.isActive=!1}get _containerElement(){return this.querySelector("li[part=pagination-item]")}get _content(){var r;const e=(r=this._containerElement)==null?void 0:r.children;if(e){for(let n=0;n<e.length;n++)if(e[n]instanceof o.PaginationLink)return e[n]}return null}updated(e){super.updated(e);const r=this._content;r&&(r.dataset.state=this.isActive?"open":"close")}handleClick(e){e.stopPropagation(),document.querySelectorAll("rtg-pagination-item").forEach(n=>{n!==this&&(n.isActive=!1)}),this.isActive=!this.isActive}firstUpdated(){var n;this.moveLightDomChildrenInto(this._containerElement);const e=(n=this._containerElement)==null?void 0:n.children,r=[];for(let t=0;t<e.length-1;t+=1){const a=e[t],s=crypto.randomUUID();r.push(s),a.dataset.pairId=s}this.uniqueIds=r,this._content&&this._content.removeEventListener("unique-ids-generated",()=>{this.requestUpdate()})}raiseEvent(){const e=new CustomEvent("unique-ids-generated",{detail:{ids:this.uniqueIds},bubbles:!0,composed:!0});this.dispatchEvent(e)}createRenderRoot(){return this}render(){return d.html`
|
|
4057
4057
|
<li
|
|
4058
4058
|
@click="${this.handleClick}"
|
|
4059
4059
|
part="pagination-item"
|
|
@@ -4177,9 +4177,9 @@ body {
|
|
|
4177
4177
|
>
|
|
4178
4178
|
<div part="drawer-content-slot"></div>
|
|
4179
4179
|
</div>
|
|
4180
|
-
`}},Wr([l.property({attribute:"data-state",type:String})],o.DrawerContent.prototype,"state",2),o.DrawerContent=Wr([l.customElement("rtg-drawer-content")],o.DrawerContent);var ql=Object.getOwnPropertyDescriptor,
|
|
4180
|
+
`}},Wr([l.property({attribute:"data-state",type:String})],o.DrawerContent.prototype,"state",2),o.DrawerContent=Wr([l.customElement("rtg-drawer-content")],o.DrawerContent);var ql=Object.getOwnPropertyDescriptor,zl=(i,e,r,n)=>{for(var t=n>1?void 0:n?ql(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=s(t)||t);return t};const Ul="closed";o.DrawerClose=class extends h{get _drawer(){let e=this.parentElement;for(;e;){if(e instanceof o.Drawer)return e;e=e.parentElement}return e}get _containerElement(){return this.querySelector("div[part=drawer-close]")}async firstUpdated(e){super.firstUpdated(e),await this.updateComplete;const r=this._containerElement;if(r){this.moveLightDomChildrenInto(r);const n=r.querySelector("button, [data-close], [role=button]");n&&n.addEventListener("click",t=>{t.stopPropagation();const a=this._drawer;a&&(a.dataset.state=Ul)})}}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}render(){return d.html`
|
|
4181
4181
|
<div class="${p("",this.className)}" part="drawer-close"></div>
|
|
4182
|
-
`}},o.DrawerClose=
|
|
4182
|
+
`}},o.DrawerClose=zl([l.customElement("rtg-drawer-close")],o.DrawerClose);const Fl="rtg-text-sm rtg-text-muted-foreground",Gl="rtg-mt-auto rtg-flex rtg-flex-col rtg-gap-2 rtg-p-4",Vl="rtg-grid rtg-gap-1.5 rtg-p-4 rtg-text-center sm:rtg-text-left",Hl="rtg-fixed rtg-inset-0 rtg-z-50 rtg-bg-black/80",Yl="rtg-text-lg rtg-font-semibold rtg-leading-none rtg-tracking-tight";var Kl=Object.getOwnPropertyDescriptor,Wl=(i,e,r,n)=>{for(var t=n>1?void 0:n?Kl(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=s(t)||t);return t};o.DrawerFooter=class extends h{get _containerElement(){return this.querySelector("div[part=drawer-footer]")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4183
4183
|
<div
|
|
4184
4184
|
part="drawer-footer"
|
|
4185
4185
|
class="${p(Gl,this.className)}"
|
|
@@ -4232,7 +4232,7 @@ body {
|
|
|
4232
4232
|
${Rr()}
|
|
4233
4233
|
</span>
|
|
4234
4234
|
</div>
|
|
4235
|
-
`}},Se([l.property()],o.SelectItem.prototype,"value",2),Se([l.property()],o.SelectItem.prototype,"isSelected",2),Se([l.property()],o.SelectItem.prototype,"isFocus",2),Se([l.property()],o.SelectItem.prototype,"selectItemIndex",2),Se([l.property({type:Function})],o.SelectItem.prototype,"onSelect",2),Se([l.property()],o.SelectItem.prototype,"class",2),o.SelectItem=Se([l.customElement("rtg-select-item")],o.SelectItem);var fc=Object.defineProperty,bc=Object.getOwnPropertyDescriptor,Ht=(i,e,r,n)=>{for(var t=n>1?void 0:n?bc(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&fc(e,r,t),t};o.SelectList=class extends h{constructor(){super(...arguments),this.state=
|
|
4235
|
+
`}},Se([l.property()],o.SelectItem.prototype,"value",2),Se([l.property()],o.SelectItem.prototype,"isSelected",2),Se([l.property()],o.SelectItem.prototype,"isFocus",2),Se([l.property()],o.SelectItem.prototype,"selectItemIndex",2),Se([l.property({type:Function})],o.SelectItem.prototype,"onSelect",2),Se([l.property()],o.SelectItem.prototype,"class",2),o.SelectItem=Se([l.customElement("rtg-select-item")],o.SelectItem);var fc=Object.defineProperty,bc=Object.getOwnPropertyDescriptor,Ht=(i,e,r,n)=>{for(var t=n>1?void 0:n?bc(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&fc(e,r,t),t};o.SelectList=class extends h{constructor(){super(...arguments),this.state=zt,this.isOpen=!1}get _containerElement(){return this.querySelector("div[part=select-list]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}render(){return d.html`
|
|
4236
4236
|
<div
|
|
4237
4237
|
part="select-list"
|
|
4238
4238
|
class="${p(uc,this.className)}"
|
|
@@ -4309,7 +4309,7 @@ body {
|
|
|
4309
4309
|
${hi()}
|
|
4310
4310
|
</button>
|
|
4311
4311
|
</li>
|
|
4312
|
-
</ol>`}},o.ToastViewPort.toastVariants=kc,Kt([l.property({type:String})],o.ToastViewPort.prototype,"variant",2),Kt([l.property({attribute:"data-state",type:String})],o.ToastViewPort.prototype,"state",2),o.ToastViewPort=Kt([l.customElement("rtg-toast-view-port")],o.ToastViewPort);var
|
|
4312
|
+
</ol>`}},o.ToastViewPort.toastVariants=kc,Kt([l.property({type:String})],o.ToastViewPort.prototype,"variant",2),Kt([l.property({attribute:"data-state",type:String})],o.ToastViewPort.prototype,"state",2),o.ToastViewPort=Kt([l.customElement("rtg-toast-view-port")],o.ToastViewPort);var zc=Object.defineProperty,Uc=Object.getOwnPropertyDescriptor,rn=(i,e,r,n)=>{for(var t=n>1?void 0:n?Uc(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&zc(e,r,t),t};o.ToastAction=class extends h{constructor(){super(...arguments),this.variant="default"}get _containerElement(){return this.querySelector("button[part=toast-action]")}getAttributesToExclude(){return["click","type","variant"]}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}getFilteredAttributes(){const e=this.getAttributesToExclude(),r={};for(const n of this.attributes)e.includes(n.name)||(r[n.name]=n.value);return r}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return d.html`
|
|
4313
4313
|
<button
|
|
4314
4314
|
${V(e)}
|
|
4315
4315
|
part="toast-action"
|
|
@@ -4388,7 +4388,7 @@ body {
|
|
|
4388
4388
|
class="${p("",this.className)}"
|
|
4389
4389
|
tabindex=${this.tabindex}
|
|
4390
4390
|
></div>
|
|
4391
|
-
`}},Xt([l.property({type:String})],o.Tab.prototype,"defaultValue",2),Xt([l.property({type:Number})],o.Tab.prototype,"tabindex",2),o.Tab=Xt([l.customElement("rtg-tab")],o.Tab);var Zt=(i=>(i.SMALL="sm",i.MEDIUM="md",i.LARGE="lg",i))(Zt||{}),Qt=(i=>(i.DEFAULT="default",i.OUTLINE="outline",i))(Qt||{});const id=J("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"}});var ad=Object.defineProperty,sd=Object.getOwnPropertyDescriptor,
|
|
4391
|
+
`}},Xt([l.property({type:String})],o.Tab.prototype,"defaultValue",2),Xt([l.property({type:Number})],o.Tab.prototype,"tabindex",2),o.Tab=Xt([l.customElement("rtg-tab")],o.Tab);var Zt=(i=>(i.SMALL="sm",i.MEDIUM="md",i.LARGE="lg",i))(Zt||{}),Qt=(i=>(i.DEFAULT="default",i.OUTLINE="outline",i))(Qt||{});const id=J("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"}});var ad=Object.defineProperty,sd=Object.getOwnPropertyDescriptor,Ue=(i,e,r,n)=>{for(var t=n>1?void 0:n?sd(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&ad(e,r,t),t};o.Toggle=class extends h{constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.required=!1,this.variant=Qt.DEFAULT,this.size=Zt.SMALL}get _containerElement(){return this.querySelector("button[part=toggle]")}getAttributesToExclude(){return["disabled","checked","variant","size","required","data-testid"]}toggle(){this.disabled||(this.checked=!this.checked)}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){const e=this.getFilteredAttributes();return Ce.html`
|
|
4392
4392
|
<button
|
|
4393
4393
|
type="button"
|
|
4394
4394
|
part="toggle"
|
|
@@ -4403,7 +4403,7 @@ body {
|
|
|
4403
4403
|
>
|
|
4404
4404
|
<slot></slot>
|
|
4405
4405
|
</button>
|
|
4406
|
-
`}},o.Toggle.toggleVariants=id,
|
|
4406
|
+
`}},o.Toggle.toggleVariants=id,Ue([l.property({type:Boolean})],o.Toggle.prototype,"disabled",2),Ue([l.property({attribute:!0,type:Boolean,reflect:!0})],o.Toggle.prototype,"checked",2),Ue([l.property({attribute:!0,type:Boolean,reflect:!0})],o.Toggle.prototype,"required",2),Ue([l.property({attribute:!0,type:String})],o.Toggle.prototype,"variant",2),Ue([l.property({attribute:!0,type:String})],o.Toggle.prototype,"size",2),o.Toggle=Ue([l.customElement("rtg-toggle")],o.Toggle);var tt=(i=>(i.MULTIPLE="multiple",i.SINGLE="single",i))(tt||{}),gt=(i=>(i.DEFAULT="default",i.OUTLINE="outline",i))(gt||{}),pt=(i=>(i.SMALL="sm",i.MEDIUM="md",i.LARGE="lg",i))(pt||{});const ld=J("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"}}),cd="rtg-flex rtg-items-center rtg-justify-center rtg-gap-1";var dd=Object.defineProperty,ud=Object.getOwnPropertyDescriptor,Oe=(i,e,r,n)=>{for(var t=n>1?void 0:n?ud(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&dd(e,r,t),t};let le=class extends h{constructor(){super(...arguments),this.checked=!1,this.id=St(),this.variant=gt.DEFAULT,this.size=pt.SMALL,this.disabled=!1,this.type=tt.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 e;return Array.from(((e=this.parentElement)==null?void 0:e.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 e=this._parent.selectedItems.indexOf(i);this.type===tt.SINGLE?(e!==-1?this._parent.selectedItems.splice(e,1):this._parent.selectedItems[0]=i,this._siblings.forEach(r=>r.requestUpdate())):e!==-1?this._parent.selectedItems.splice(e,1):this._parent.selectedItems.push(i),this.requestUpdate()}}catch(e){console.log("error",e)}}render(){return Ce.html`
|
|
4407
4407
|
<button
|
|
4408
4408
|
part="toggle-group-item"
|
|
4409
4409
|
id=${this.id}
|
|
@@ -4423,7 +4423,7 @@ body {
|
|
|
4423
4423
|
class="${p(cd,this.className)}"
|
|
4424
4424
|
?disable="${this.disabled}"
|
|
4425
4425
|
></div>
|
|
4426
|
-
`}},Pe([l.property({type:Boolean})],o.ToggleGroup.prototype,"disabled",2),Pe([l.property({type:String})],o.ToggleGroup.prototype,"type",2),Pe([l.property({attribute:!0,type:Boolean,reflect:!0})],o.ToggleGroup.prototype,"required",2),Pe([l.property({attribute:!0,type:String,reflect:!0})],o.ToggleGroup.prototype,"variant",2),Pe([l.property({attribute:!0,type:String})],o.ToggleGroup.prototype,"size",2),Pe([l.property({type:Array})],o.ToggleGroup.prototype,"selectedItems",2),o.ToggleGroup=Pe([l.customElement("rtg-toggle-group")],o.ToggleGroup);var hd=Object.defineProperty,md=Object.getOwnPropertyDescriptor,Fe=(i,e,r,n)=>{for(var t=n>1?void 0:n?md(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&hd(e,r,t),t};o.InputOtpSlot=class extends h{constructor(){super(...arguments),this.click=()=>{},this.index=0,this.isFirst=!1,this.isLast=!1,this.value=""}get _inputOtp(){let e=this.parentElement;for(;e&&!(e instanceof o.InputOtp);)e=e.parentElement;return e}firstUpdated(e){const r=this._inputOtp;
|
|
4426
|
+
`}},Pe([l.property({type:Boolean})],o.ToggleGroup.prototype,"disabled",2),Pe([l.property({type:String})],o.ToggleGroup.prototype,"type",2),Pe([l.property({attribute:!0,type:Boolean,reflect:!0})],o.ToggleGroup.prototype,"required",2),Pe([l.property({attribute:!0,type:String,reflect:!0})],o.ToggleGroup.prototype,"variant",2),Pe([l.property({attribute:!0,type:String})],o.ToggleGroup.prototype,"size",2),Pe([l.property({type:Array})],o.ToggleGroup.prototype,"selectedItems",2),o.ToggleGroup=Pe([l.customElement("rtg-toggle-group")],o.ToggleGroup);var hd=Object.defineProperty,md=Object.getOwnPropertyDescriptor,Fe=(i,e,r,n)=>{for(var t=n>1?void 0:n?md(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&hd(e,r,t),t};o.InputOtpSlot=class extends h{constructor(){super(...arguments),this.click=()=>{},this.index=0,this.isFirst=!1,this.isLast=!1,this.value=""}get _inputOtp(){let e=this.parentElement;for(;e&&!(e instanceof o.InputOtp);)e=e.parentElement;return e}firstUpdated(e){const r=this._inputOtp;if(!r)return;const n=r.variant,t=this.index,a=r.maxLength;let s=!1;n==="with-separator"?s=t%2===1||t===a-1:n==="simple"?s=t%3===2||t===a-1:s=t===a-1,this.isLast=s,r.inputes.push({index:r.inputes.length,value:"",isSelected:!1,userIndex:t}),r.addEventListener("selected-input",m=>{const w=this.querySelector(`input[name="input-${m.detail.selectedItems}"]`);w&&(w.focus(),m.detail.eventType==="changes"&&(w.value=""))})}disconnectedCallback(){super.disconnectedCallback(),this._inputOtp&&this._inputOtp.removeEventListener("selected-input",()=>{})}getAttributesToExclude(){return[]}handleFocus(e){const r=this._inputOtp;if(!r)return;const n=r.inputes.findIndex(a=>a.value===""),t=this.index;if(n!==-1&&t>n){e.preventDefault(),e.stopImmediatePropagation();const a=n;r.raiseEvent(a,"focus")}else r.raiseEvent(t,"focus")}handleInputChange(e){var t;const r=e.target;if(new RegExp(/^\d+$/).test(r.value)){const a=this._inputOtp;if(a){let s=a.inputes.findIndex(m=>m.index===this.index);a.inputes[s]={...a.inputes[s],value:r.value,isSelected:!1},(t=a.checkIfCompleteAndSubmit)==null||t.call(a),s+1<a.inputes.length&&a.raiseEvent(s+1,"changes")}}else r.value=""}handleKeyDown(e){const r=e.target,n=this._inputOtp;if(!n)return;const t=n.inputes.findIndex(a=>a.index===this.index);switch(e.key){case"Backspace":{e.preventDefault();const a=r.value==="",s=n.inputes.find(C=>C.value===""),m=s!==void 0?n.inputes.indexOf(s):n.inputes.length;if(a&&t>=m){t>0&&n.raiseEvent(t-1,"focus");return}n.inputes[t].value="",r.value="";for(let C=t;C<n.inputes.length-1;C++){n.inputes[C].value=n.inputes[C+1].value;const x=n.querySelector(`input[name="input-${n.inputes[C].index}"]`);x&&(x.value=n.inputes[C].value)}const w=n.inputes[n.inputes.length-1];w.value="";const b=n.querySelector(`input[name="input-${w.index}"]`);b&&(b.value=""),n.raiseEvent(t,"focus");break}case"ArrowLeft":e.preventDefault(),t>0&&n.raiseEvent(t-1,"focus");break;case"ArrowRight":e.preventDefault(),t<n.maxLength-1&&n.raiseEvent(t+1,"focus");break}}handlePaste(e){var w;e.preventDefault();const r=this._inputOtp;if(!r)return;const t=(((w=e.clipboardData)==null?void 0:w.getData("text"))??"").replace(/\D/g,"").split("").slice(0);if(t.length===0)return;const a=r.inputes.findIndex(b=>b.index===this.index),s=r.maxLength-a;t.splice(s);for(let b=0;b<t.length;b++){const C=a+b;if(C>=r.maxLength)break;r.inputes[C].value=t[b];const x=r.querySelector(`input[name="input-${C}"]`);x&&(x.value=t[b])}const m=a+t.length;m<r.maxLength&&r.raiseEvent(m,"focus")}createRenderRoot(){return this}render(){var m;const e=((m=this._inputOtp)==null?void 0:m.variant)??"digits-only",r=this.isFirst,n=this.isLast,t=e==="with-spacing",a=e==="with-separator",s={"rtg-bg-transparent":!0,"rtg-h-[36px]":!0,"rtg-w-[36px]":!0,"rtg-text-center rtg-relative rtg-flex rtg-h-10 rtg-w-10 rtg-items-center rtg-justify-center rtg-border-y rtg-border-r rtg-border-input rtg-text-sm rtg-transition-all":!0,"first:rtg-rounded-l-md first:rtg-border-l":this.isFirst,"rtg-overflow-hidden":!0,"focus:rtg-border focus:rtg-border-input focus:rtg-border-[3px]":!0,"rtg-border":t||a,"rtg-border-t":!t||a,"rtg-border-b":!t||a,"rtg-border-r":!t||a,"rtg-border-l":this.isFirst||t||a,"first:rtg-rounded-l-md":e==="with-spacing"?!0:r,"last:rtg-rounded-r-md":e==="with-spacing"?!0:n,"rtg-rounded-none":!r&&!n&&(e==="digits-only"||e==="simple"||e==="with-separator")};return d.html`
|
|
4427
4427
|
<input
|
|
4428
4428
|
part="input-otp-slot"
|
|
4429
4429
|
auto-complete="one-time-code"
|
|
@@ -4438,7 +4438,7 @@ body {
|
|
|
4438
4438
|
@keydown=${this.handleKeyDown}
|
|
4439
4439
|
@paste=${this.handlePaste}
|
|
4440
4440
|
style="outline: none"
|
|
4441
|
-
class=${Object.entries(
|
|
4441
|
+
class=${Object.entries(s).map(([w,b])=>b?w:void 0).join(" ")}
|
|
4442
4442
|
/>
|
|
4443
4443
|
`}},Fe([l.property({type:Function})],o.InputOtpSlot.prototype,"click",2),Fe([l.property({type:Number})],o.InputOtpSlot.prototype,"index",2),Fe([l.property({type:Boolean})],o.InputOtpSlot.prototype,"isFirst",2),Fe([l.property({type:Boolean})],o.InputOtpSlot.prototype,"isLast",2),Fe([l.property({type:String})],o.InputOtpSlot.prototype,"value",2),o.InputOtpSlot=Fe([l.customElement("rtg-input-otp-slot")],o.InputOtpSlot);var vd=Object.defineProperty,fd=Object.getOwnPropertyDescriptor,an=(i,e,r,n)=>{for(var t=n>1?void 0:n?fd(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&vd(e,r,t),t};o.InputOtpGroup=class extends h{constructor(){super(...arguments),this.click=()=>{},this.childrenArray=[]}get _containerElement(){return this.querySelector("div[part=input-otp-group")}getAttributesToExclude(){return[]}firstUpdated(e){super.firstUpdated(e),this.childrenArray=Array.from(this.children),this.childrenArray.forEach((r,n)=>{r.isFirst=n===0,r.isLast=n===this.childrenArray.length-1}),this.moveLightDomChildrenInto(this._containerElement),this.requestUpdate()}createRenderRoot(){return this}render(){return d.html`
|
|
4444
4444
|
<div
|
|
@@ -4452,7 +4452,7 @@ body {
|
|
|
4452
4452
|
>
|
|
4453
4453
|
${fi()}
|
|
4454
4454
|
</div>
|
|
4455
|
-
`}},sn([l.property({type:Number})],o.InputOtpSeparator.prototype,"index",2),o.InputOtpSeparator=sn([l.customElement("rtg-input-otp-separator")],o.InputOtpSeparator);var wd=Object.defineProperty,Cd=Object.getOwnPropertyDescriptor,rt=(i,e,r,n)=>{for(var t=n>1?void 0:n?Cd(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&wd(e,r,t),t};o.InputOtp=class extends h{constructor(){super(),this.maxLength=6,this.onChange=()=>{},this.pin=new Array(this.maxLength),this.variant="
|
|
4455
|
+
`}},sn([l.property({type:Number})],o.InputOtpSeparator.prototype,"index",2),o.InputOtpSeparator=sn([l.customElement("rtg-input-otp-separator")],o.InputOtpSeparator);var wd=Object.defineProperty,Cd=Object.getOwnPropertyDescriptor,rt=(i,e,r,n)=>{for(var t=n>1?void 0:n?Cd(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&wd(e,r,t),t};o.InputOtp=class extends h{constructor(){super(),this.maxLength=6,this.onChange=()=>{},this.pin=new Array(this.maxLength),this.variant="digits-only",this.inputes=[]}connectedCallback(){super.connectedCallback()}getAttributesToExclude(){return[]}get _containerElement(){return this.querySelector("div[part=input-otp]")}raiseEvent(e,r="changes",n=1/0){const t=new CustomEvent("selected-input",{bubbles:!0,composed:!0,detail:{selectedItems:e,eventType:r,customIndex:n}});this.dispatchEvent(t)}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement),this.applyVariantStyles()}updated(e){e.has("variant")&&this.applyVariantStyles()}checkIfCompleteAndSubmit(){if(this.inputes.every(r=>r.value!=="")){const r=this.inputes.map(t=>t.value).join(""),n=new CustomEvent("otp-complete",{detail:{value:r},bubbles:!0,composed:!0});this.dispatchEvent(n)}}applyVariantStyles(){const e=this.querySelectorAll("rtg-input-otp-group");switch(e.forEach(r=>{r.className="",r.classList.add("rtg-flex","rtg-items-center")}),this.variant){case"with-spacing":e.forEach(r=>r.classList.add("rtg-gap-2"));break}}render(){return d.html`
|
|
4456
4456
|
<div
|
|
4457
4457
|
part="input-otp"
|
|
4458
4458
|
class="${p("rtg-flex rtg-items-center",this.className)}"
|
|
@@ -4536,14 +4536,14 @@ body {
|
|
|
4536
4536
|
part="breadcrumb-text"
|
|
4537
4537
|
>
|
|
4538
4538
|
</span>
|
|
4539
|
-
`}},o.BreadCrumbText=qd([l.customElement("rtg-bread-crumb-text")],o.BreadCrumbText);var
|
|
4539
|
+
`}},o.BreadCrumbText=qd([l.customElement("rtg-bread-crumb-text")],o.BreadCrumbText);var zd=Object.getOwnPropertyDescriptor,Ud=(i,e,r,n)=>{for(var t=n>1?void 0:n?zd(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=s(t)||t);return t};o.BreadCrumb=class extends h{get _containerElement(){return this.querySelector("nav[part=breadcrumb]")}getAttributesToExclude(){return[""]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){const e=this.getFilteredAttributes();return d.html`
|
|
4540
4540
|
<nav
|
|
4541
4541
|
${V(e)}
|
|
4542
4542
|
part="breadcrumb"
|
|
4543
4543
|
class="${p(this.className)}"
|
|
4544
4544
|
aria-label="breadcrumb"
|
|
4545
4545
|
></nav>
|
|
4546
|
-
`}},o.BreadCrumb=
|
|
4546
|
+
`}},o.BreadCrumb=Ud([l.customElement("rtg-bread-crumb")],o.BreadCrumb);var Fd=Object.getOwnPropertyDescriptor,Gd=(i,e,r,n)=>{for(var t=n>1?void 0:n?Fd(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=s(t)||t);return t};o.NavigationMenuList=class extends h{get _containerElement(){return this.querySelector("ul[part=navigation-menu-list]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4547
4547
|
<div class="${p("relative",this.className)}">
|
|
4548
4548
|
<ul
|
|
4549
4549
|
part="navigation-menu-list"
|
|
@@ -4643,7 +4643,7 @@ body {
|
|
|
4643
4643
|
</div>
|
|
4644
4644
|
<div part="menubar-menu-slot"></div>
|
|
4645
4645
|
</div>
|
|
4646
|
-
`}},Ve([l.state()],o.MenubarMenu.prototype,"isOpen",2),Ve([l.state()],o.MenubarMenu.prototype,"uniqueIds",2),Ve([l.state()],o.MenubarMenu.prototype,"selectedMenu",2),Ve([l.state()],o.MenubarMenu.prototype,"isHovering",2),Ve([l.property({type:String})],o.MenubarMenu.prototype,"id",2),o.MenubarMenu=Ve([l.customElement("rtg-menubar-menu")],o.MenubarMenu);const iu="rtg-relative rtg-flex rtg-cursor-default rtg-select-none rtg-items-center rtg-rounded-sm rtg-px-2 rtg-py-1.5 rtg-text-sm rtg-outline-none aria-selected:rtg-bg-accent aria-selected:rtg-text-accent-foreground",au="rtg-z-50 rtg-min-w-[12rem] rtg-overflow-hidden rtg-rounded-md rtg-border rtg-bg-popover rtg-p-1 rtg-text-popover-foreground rtg-shadow-md data-[state=open]:rtg-animate-in data-[state=closed]:rtg-fade-out-0 data-[state=open]:rtg-fade-in-0 data-[state=closed]:rtg-zoom-out-95 data-[state=open]:rtg-zoom-in-95 data-[side=bottom]:rtg-slide-in-from-top-2 data-[side=left]:rtg-slide-in-from-right-2 data-[side=right]:rtg-slide-in-from-left-2 data-[side=top]:rtg-slide-in-from-bottom-2",su="rtg-overflow-hidden rtg-p-1 rtg-text-foreground [&_[rtgcmd-group-heading]]:rtg-px-2 [&_[rtgcmd-group-heading]]:rtg-py-1.5 [&_[rtgcmd-group-heading]]:rtg-text-xs [&_[rtgcmd-group-heading]]:rtg-font-medium [&_[rtgcmd-group-heading]]:rtg-text-muted-foreground",lu="rtg-relative rtg-flex rtg-cursor-default rtg-select-none rtg-items-center rtg-rounded-sm rtg-px-2 rtg-py-1.5 rtg-text-sm rtg-outline-none aria-selected:rtg-bg-accent aria-selected:rtg-text-accent-foreground data-[disabled]:rtg-pointer-events-none data-[disabled]:rtg-opacity-50",cu="rtg-relative rtg-flex rtg-cursor-default rtg-select-none rtg-items-center rtg-rounded-sm rtg-px-2 rtg-py-1.5 rtg-text-sm rtg-outline-none aria-selected:rtg-bg-accent aria-selected:rtg-text-accent-foreground",du="rtg-mx-1 rtg-h-px rtg-bg-border",uu="rtg-ml-auto rtg-text-xs rtg-font-semibold",gu="rtg-flex rtg-h-9 rtg-items-center rtg-space-x-1 rtg-rounded-md rtg-border rtg-bg-background rtg-p-1 rtg-shadow-sm";var pu=Object.defineProperty,hu=Object.getOwnPropertyDescriptor,ot=(i,e,r,n)=>{for(var t=n>1?void 0:n?hu(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&pu(e,r,t),t};o.MenubarContent=class extends h{constructor(){super(...arguments),this.state=
|
|
4646
|
+
`}},Ve([l.state()],o.MenubarMenu.prototype,"isOpen",2),Ve([l.state()],o.MenubarMenu.prototype,"uniqueIds",2),Ve([l.state()],o.MenubarMenu.prototype,"selectedMenu",2),Ve([l.state()],o.MenubarMenu.prototype,"isHovering",2),Ve([l.property({type:String})],o.MenubarMenu.prototype,"id",2),o.MenubarMenu=Ve([l.customElement("rtg-menubar-menu")],o.MenubarMenu);const iu="rtg-relative rtg-flex rtg-cursor-default rtg-select-none rtg-items-center rtg-rounded-sm rtg-px-2 rtg-py-1.5 rtg-text-sm rtg-outline-none aria-selected:rtg-bg-accent aria-selected:rtg-text-accent-foreground",au="rtg-z-50 rtg-min-w-[12rem] rtg-overflow-hidden rtg-rounded-md rtg-border rtg-bg-popover rtg-p-1 rtg-text-popover-foreground rtg-shadow-md data-[state=open]:rtg-animate-in data-[state=closed]:rtg-fade-out-0 data-[state=open]:rtg-fade-in-0 data-[state=closed]:rtg-zoom-out-95 data-[state=open]:rtg-zoom-in-95 data-[side=bottom]:rtg-slide-in-from-top-2 data-[side=left]:rtg-slide-in-from-right-2 data-[side=right]:rtg-slide-in-from-left-2 data-[side=top]:rtg-slide-in-from-bottom-2",su="rtg-overflow-hidden rtg-p-1 rtg-text-foreground [&_[rtgcmd-group-heading]]:rtg-px-2 [&_[rtgcmd-group-heading]]:rtg-py-1.5 [&_[rtgcmd-group-heading]]:rtg-text-xs [&_[rtgcmd-group-heading]]:rtg-font-medium [&_[rtgcmd-group-heading]]:rtg-text-muted-foreground",lu="rtg-relative rtg-flex rtg-cursor-default rtg-select-none rtg-items-center rtg-rounded-sm rtg-px-2 rtg-py-1.5 rtg-text-sm rtg-outline-none aria-selected:rtg-bg-accent aria-selected:rtg-text-accent-foreground data-[disabled]:rtg-pointer-events-none data-[disabled]:rtg-opacity-50",cu="rtg-relative rtg-flex rtg-cursor-default rtg-select-none rtg-items-center rtg-rounded-sm rtg-px-2 rtg-py-1.5 rtg-text-sm rtg-outline-none aria-selected:rtg-bg-accent aria-selected:rtg-text-accent-foreground",du="rtg-mx-1 rtg-h-px rtg-bg-border",uu="rtg-ml-auto rtg-text-xs rtg-font-semibold",gu="rtg-flex rtg-h-9 rtg-items-center rtg-space-x-1 rtg-rounded-md rtg-border rtg-bg-background rtg-p-1 rtg-shadow-sm";var pu=Object.defineProperty,hu=Object.getOwnPropertyDescriptor,ot=(i,e,r,n)=>{for(var t=n>1?void 0:n?hu(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&pu(e,r,t),t};o.MenubarContent=class extends h{constructor(){super(...arguments),this.state=zt,this.id="",this.side="bottom",this.isOpen=!1}get _menubarMenu(){let e=this.parentElement;for(;e&&!(e instanceof o.MenubarMenu);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=menubar-content]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){requestAnimationFrame(()=>{this.moveLightDomChildrenInto(this._containerElement)})}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1,e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(e){const r=this.querySelector("button");this&&!this.contains(e.target)&&!(r!=null&&r.contains(e.target))&&(this.isOpen=!1)}render(){return d.html`
|
|
4647
4647
|
<div
|
|
4648
4648
|
part="menubar-content"
|
|
4649
4649
|
id="${this.id}"
|
|
@@ -4809,7 +4809,7 @@ body {
|
|
|
4809
4809
|
data-id=${n.id??""}
|
|
4810
4810
|
class="rtg-border-b rtg-transition-colors hover:rtg-bg-muted/50 data-[state=selected]:rtg-bg-muted"
|
|
4811
4811
|
>
|
|
4812
|
-
${e.map((t,a,s)=>{const m=a===0,
|
|
4812
|
+
${e.map((t,a,s)=>{const m=a===0,w=a===s.length-1,N=`rtg-p-2 rtg-align-middle [&:has([role=checkbox])]:rtg-pr-0 [&>[role=checkbox]]:rtg-translate-y-[2px] ${m?"rtg-font-medium":""} ${w?"rtg-text-right":""}`.trim();return d.html`<td class=${N}>${n[t]??""}</td>`})}
|
|
4813
4813
|
</tr>
|
|
4814
4814
|
`)}
|
|
4815
4815
|
</tbody>
|
|
@@ -4820,8 +4820,8 @@ body {
|
|
|
4820
4820
|
<tr
|
|
4821
4821
|
class="rtg-border-b rtg-transition-colors hover:rtg-bg-muted/50 data-[state=selected]:rtg-bg-muted"
|
|
4822
4822
|
>
|
|
4823
|
-
${e.map((n,t,a)=>{const b=`rtg-p-2 rtg-align-middle [&:has([role=checkbox])]:rtg-pr-0 [&>[role=checkbox]]:rtg-translate-y-[2px] ${t===a.length-1?"rtg-text-right":""}`.trim(),
|
|
4824
|
-
${(
|
|
4823
|
+
${e.map((n,t,a)=>{const b=`rtg-p-2 rtg-align-middle [&:has([role=checkbox])]:rtg-pr-0 [&>[role=checkbox]]:rtg-translate-y-[2px] ${t===a.length-1?"rtg-text-right":""}`.trim(),C=this.footerData.find(x=>x.key===n);return d.html`<td class=${b}>
|
|
4824
|
+
${(C==null?void 0:C.value)??""}
|
|
4825
4825
|
</td>`})}
|
|
4826
4826
|
</tr>
|
|
4827
4827
|
</tfoot>
|
|
@@ -4836,7 +4836,7 @@ body {
|
|
|
4836
4836
|
@submit=${this.handleSubmit}
|
|
4837
4837
|
${qn.ref(e=>this.formElement=e)}
|
|
4838
4838
|
></form>
|
|
4839
|
-
`}},un([l.state(),oe.provide({context:at})],o.RtgFormController.prototype,"form",2),o.RtgFormController=un([l.customElement("rtg-form-controller")],o.RtgFormController);const gn=oe.createContext("rtg-form-item-context"),Mu="rtg-space-y-4",Lu="rtg-text-sm rtg-text-muted-foreground rtg-mt-1",Nu="rtg-space-y-2",Bu="rtg-space-y-1",qu="rtg-text-sm rtg-mb-1 rtg-font-medium rtg-leading-none rtg-peer-disabled:rtg-cursor-not-allowed peer-disabled:rtg-opacity-70",
|
|
4839
|
+
`}},un([l.state(),oe.provide({context:at})],o.RtgFormController.prototype,"form",2),o.RtgFormController=un([l.customElement("rtg-form-controller")],o.RtgFormController);const gn=oe.createContext("rtg-form-item-context"),Mu="rtg-space-y-4",Lu="rtg-text-sm rtg-text-muted-foreground rtg-mt-1",Nu="rtg-space-y-2",Bu="rtg-space-y-1",qu="rtg-text-sm rtg-mb-1 rtg-font-medium rtg-leading-none rtg-peer-disabled:rtg-cursor-not-allowed peer-disabled:rtg-opacity-70",zu="rtg-text-sm rtg-text-destructive";var Uu=Object.defineProperty,Fu=Object.getOwnPropertyDescriptor,pn=(i,e,r,n)=>{for(var t=n>1?void 0:n?Fu(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Uu(e,r,t),t};o.RtgFormDescription=class extends h{createRenderRoot(){return this}get _desc(){return this.querySelector("p[part=form-description]")}firstUpdated(){this.moveLightDomChildrenInto(this._desc)}render(){return d.html`
|
|
4840
4840
|
<p
|
|
4841
4841
|
id="${this.itemContext.id}-description"
|
|
4842
4842
|
part="form-description"
|
|
@@ -4856,7 +4856,7 @@ body {
|
|
|
4856
4856
|
></label>
|
|
4857
4857
|
`}},er([oe.consume({context:at})],o.RtgFormLabel.prototype,"form",2),er([l.state()],o.RtgFormLabel.prototype,"hasError",2),o.RtgFormLabel=er([l.customElement("rtg-form-label")],o.RtgFormLabel);var Xu=Object.defineProperty,Zu=Object.getOwnPropertyDescriptor,tr=(i,e,r,n)=>{for(var t=n>1?void 0:n?Zu(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Xu(e,r,t),t};o.RtgFormMessage=class extends d.LitElement{constructor(){super(...arguments),this.error=null,this.unsubscribe=null}get _field(){let e=this.parentElement;for(;e&&!(e instanceof o.RtgFormField);)e=e.parentElement;return e}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.error=this.form.getError(this._field.name),this.unsubscribe=this.form.subscribe(()=>{this.error=this.form.getErrors()[this._field.name],this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribe&&this.unsubscribe()}render(){return this.error?d.html`<p
|
|
4858
4858
|
id="${this._field.name}-message"
|
|
4859
|
-
class="${p(
|
|
4859
|
+
class="${p(zu,this.className)}"
|
|
4860
4860
|
>
|
|
4861
4861
|
${this.error}
|
|
4862
4862
|
</p>`:null}},tr([oe.consume({context:at})],o.RtgFormMessage.prototype,"form",2),tr([l.state()],o.RtgFormMessage.prototype,"error",2),o.RtgFormMessage=tr([l.customElement("rtg-form-message")],o.RtgFormMessage);var Qu=Object.defineProperty,Ju=Object.getOwnPropertyDescriptor,rr=(i,e,r,n)=>{for(var t=n>1?void 0:n?Ju(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Qu(e,r,t),t};o.RtgForm=class extends h{constructor(){super(...arguments),this.form=new dn,this.onSubmit=()=>{},this.handleSubmit=e=>{e.preventDefault(),this.form.validateAll()&&(alert("form submitted successfully"),this.onSubmit(this.form.getValues()))}}createRenderRoot(){return this}get _formElement(){return this.querySelector("form[part=form-root]")}firstUpdated(){this.moveLightDomChildrenInto(this._formElement)}render(){return d.html`
|
|
@@ -4926,7 +4926,7 @@ body {
|
|
|
4926
4926
|
* @license
|
|
4927
4927
|
* Copyright 2018 Google LLC
|
|
4928
4928
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4929
|
-
*/const lg=new Set(["children","localName","ref","style","className"]),vn=new WeakMap,cg=(i,e,r,n,t)=>{const a=t==null?void 0:t[e];a===void 0||r===n?r==null&&e in HTMLElement.prototype?i.removeAttribute(e):i[e]=r:((s,m,
|
|
4929
|
+
*/const lg=new Set(["children","localName","ref","style","className"]),vn=new WeakMap,cg=(i,e,r,n,t)=>{const a=t==null?void 0:t[e];a===void 0||r===n?r==null&&e in HTMLElement.prototype?i.removeAttribute(e):i[e]=r:((s,m,w)=>{let b=vn.get(s);b===void 0&&vn.set(s,b=new Map);let C=b.get(m);w!==void 0?C===void 0?(b.set(m,C={handleEvent:w}),s.addEventListener(m,C)):C.handleEvent=w:C!==void 0&&(b.delete(m),s.removeEventListener(m,C))})(i,a,r)},dg=(i,e)=>{typeof i=="function"?i(e):i.current=e};function fn(i=window.React,e,r,n,t){let a,s,m;{const F=i;({tagName:s,elementClass:m,events:n,displayName:t}=F),a=F.react}const w=a.Component,b=a.createElement,C=new Set(Object.keys(n??{}));class x extends w{constructor(){super(...arguments),this.o=null}t(M){if(this.o!==null)for(const q in this.i)cg(this.o,q,this.props[q],M?M[q]:void 0,n)}componentDidMount(){var M;this.t(),(M=this.o)===null||M===void 0||M.removeAttribute("defer-hydration")}componentDidUpdate(M){this.t(M)}render(){const{_$Gl:M,...q}=this.props;this.h!==M&&(this.u=L=>{M!==null&&dg(M,L),this.o=L,this.h=M}),this.i={};const P={ref:this.u};for(const[L,W]of Object.entries(q))lg.has(L)?P[L==="className"?"class":L]=W:C.has(L)||L in m.prototype?this.i[L]=W:P[L]=W;return P.suppressHydrationWarning=!0,b(s,P)}}x.displayName=t??m.name;const N=a.forwardRef((F,M)=>b(x,{...F,_$Gl:M},F==null?void 0:F.children));return N.displayName=x.displayName,N}function ug(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var vt={exports:{}},O={};/**
|
|
4930
4930
|
* @license React
|
|
4931
4931
|
* react.production.js
|
|
4932
4932
|
*
|
|
@@ -4934,7 +4934,7 @@ body {
|
|
|
4934
4934
|
*
|
|
4935
4935
|
* This source code is licensed under the MIT license found in the
|
|
4936
4936
|
* LICENSE file in the root directory of this source tree.
|
|
4937
|
-
*/var bn;function gg(){if(bn)return O;bn=1;var i=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),t=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),
|
|
4937
|
+
*/var bn;function gg(){if(bn)return O;bn=1;var i=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),t=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),x=Symbol.iterator;function N(u){return u===null||typeof u!="object"?null:(u=x&&u[x]||u["@@iterator"],typeof u=="function"?u:null)}var F={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,q={};function P(u,v,$){this.props=u,this.context=v,this.refs=q,this.updater=$||F}P.prototype.isReactComponent={},P.prototype.setState=function(u,v){if(typeof u!="object"&&typeof u!="function"&&u!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,u,v,"setState")},P.prototype.forceUpdate=function(u){this.updater.enqueueForceUpdate(this,u,"forceUpdate")};function L(){}L.prototype=P.prototype;function W(u,v,$){this.props=u,this.context=v,this.refs=q,this.updater=$||F}var j=W.prototype=new L;j.constructor=W,M(j,P.prototype),j.isPureReactComponent=!0;var ee=Array.isArray,B={H:null,A:null,T:null,S:null,V:null},fe=Object.prototype.hasOwnProperty;function be(u,v,$,E,A,Y){return $=Y.ref,{$$typeof:i,type:u,key:v,ref:$!==void 0?$:null,props:Y}}function ae(u,v){return be(u.type,v,void 0,void 0,void 0,u.props)}function te(u){return typeof u=="object"&&u!==null&&u.$$typeof===i}function Ie(u){var v={"=":"=0",":":"=2"};return"$"+u.replace(/[=:]/g,function($){return v[$]})}var G=/\/+/g;function z(u,v){return typeof u=="object"&&u!==null&&u.key!=null?Ie(""+u.key):v.toString(36)}function ce(){}function re(u){switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:switch(typeof u.status=="string"?u.then(ce,ce):(u.status="pending",u.then(function(v){u.status==="pending"&&(u.status="fulfilled",u.value=v)},function(v){u.status==="pending"&&(u.status="rejected",u.reason=v)})),u.status){case"fulfilled":return u.value;case"rejected":throw u.reason}}throw u}function X(u,v,$,E,A){var Y=typeof u;(Y==="undefined"||Y==="boolean")&&(u=null);var R=!1;if(u===null)R=!0;else switch(Y){case"bigint":case"string":case"number":R=!0;break;case"object":switch(u.$$typeof){case i:case e:R=!0;break;case C:return R=u._init,X(R(u._payload),v,$,E,A)}}if(R)return A=A(u),R=E===""?"."+z(u,0):E,ee(A)?($="",R!=null&&($=R.replace(G,"$&/")+"/"),X(A,v,$,"",function(Ye){return Ye})):A!=null&&(te(A)&&(A=ae(A,$+(A.key==null||u&&u.key===A.key?"":(""+A.key).replace(G,"$&/")+"/")+R)),v.push(A)),1;R=0;var ge=E===""?".":E+":";if(ee(u))for(var K=0;K<u.length;K++)E=u[K],Y=ge+z(E,K),R+=X(E,v,$,Y,A);else if(K=N(u),typeof K=="function")for(u=K.call(u),K=0;!(E=u.next()).done;)E=E.value,Y=ge+z(E,K++),R+=X(E,v,$,Y,A);else if(Y==="object"){if(typeof u.then=="function")return X(re(u),v,$,E,A);throw v=String(u),Error("Objects are not valid as a React child (found: "+(v==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":v)+"). If you meant to render a collection of children, use an array instead.")}return R}function Z(u,v,$){if(u==null)return u;var E=[],A=0;return X(u,E,"","",function(Y){return v.call($,Y,A++)}),E}function ye(u){if(u._status===-1){var v=u._result;v=v(),v.then(function($){(u._status===0||u._status===-1)&&(u._status=1,u._result=$)},function($){(u._status===0||u._status===-1)&&(u._status=2,u._result=$)}),u._status===-1&&(u._status=0,u._result=v)}if(u._status===1)return u._result.default;throw u._result}var de=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var v=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof u=="object"&&u!==null&&typeof u.message=="string"?String(u.message):String(u),error:u});if(!window.dispatchEvent(v))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)};function ue(){}return O.Children={map:Z,forEach:function(u,v,$){Z(u,function(){v.apply(this,arguments)},$)},count:function(u){var v=0;return Z(u,function(){v++}),v},toArray:function(u){return Z(u,function(v){return v})||[]},only:function(u){if(!te(u))throw Error("React.Children.only expected to receive a single React element child.");return u}},O.Component=P,O.Fragment=r,O.Profiler=t,O.PureComponent=W,O.StrictMode=n,O.Suspense=w,O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,O.__COMPILER_RUNTIME={__proto__:null,c:function(u){return B.H.useMemoCache(u)}},O.cache=function(u){return function(){return u.apply(null,arguments)}},O.cloneElement=function(u,v,$){if(u==null)throw Error("The argument must be a React element, but you passed "+u+".");var E=M({},u.props),A=u.key,Y=void 0;if(v!=null)for(R in v.ref!==void 0&&(Y=void 0),v.key!==void 0&&(A=""+v.key),v)!fe.call(v,R)||R==="key"||R==="__self"||R==="__source"||R==="ref"&&v.ref===void 0||(E[R]=v[R]);var R=arguments.length-2;if(R===1)E.children=$;else if(1<R){for(var ge=Array(R),K=0;K<R;K++)ge[K]=arguments[K+2];E.children=ge}return be(u.type,A,void 0,void 0,Y,E)},O.createContext=function(u){return u={$$typeof:s,_currentValue:u,_currentValue2:u,_threadCount:0,Provider:null,Consumer:null},u.Provider=u,u.Consumer={$$typeof:a,_context:u},u},O.createElement=function(u,v,$){var E,A={},Y=null;if(v!=null)for(E in v.key!==void 0&&(Y=""+v.key),v)fe.call(v,E)&&E!=="key"&&E!=="__self"&&E!=="__source"&&(A[E]=v[E]);var R=arguments.length-2;if(R===1)A.children=$;else if(1<R){for(var ge=Array(R),K=0;K<R;K++)ge[K]=arguments[K+2];A.children=ge}if(u&&u.defaultProps)for(E in R=u.defaultProps,R)A[E]===void 0&&(A[E]=R[E]);return be(u,Y,void 0,void 0,null,A)},O.createRef=function(){return{current:null}},O.forwardRef=function(u){return{$$typeof:m,render:u}},O.isValidElement=te,O.lazy=function(u){return{$$typeof:C,_payload:{_status:-1,_result:u},_init:ye}},O.memo=function(u,v){return{$$typeof:b,type:u,compare:v===void 0?null:v}},O.startTransition=function(u){var v=B.T,$={};B.T=$;try{var E=u(),A=B.S;A!==null&&A($,E),typeof E=="object"&&E!==null&&typeof E.then=="function"&&E.then(ue,de)}catch(Y){de(Y)}finally{B.T=v}},O.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},O.use=function(u){return B.H.use(u)},O.useActionState=function(u,v,$){return B.H.useActionState(u,v,$)},O.useCallback=function(u,v){return B.H.useCallback(u,v)},O.useContext=function(u){return B.H.useContext(u)},O.useDebugValue=function(){},O.useDeferredValue=function(u,v){return B.H.useDeferredValue(u,v)},O.useEffect=function(u,v,$){var E=B.H;if(typeof $=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return E.useEffect(u,v)},O.useId=function(){return B.H.useId()},O.useImperativeHandle=function(u,v,$){return B.H.useImperativeHandle(u,v,$)},O.useInsertionEffect=function(u,v){return B.H.useInsertionEffect(u,v)},O.useLayoutEffect=function(u,v){return B.H.useLayoutEffect(u,v)},O.useMemo=function(u,v){return B.H.useMemo(u,v)},O.useOptimistic=function(u,v){return B.H.useOptimistic(u,v)},O.useReducer=function(u,v,$){return B.H.useReducer(u,v,$)},O.useRef=function(u){return B.H.useRef(u)},O.useState=function(u){return B.H.useState(u)},O.useSyncExternalStore=function(u,v,$){return B.H.useSyncExternalStore(u,v,$)},O.useTransition=function(){return B.H.useTransition()},O.version="19.1.0",O}var st={exports:{}};/**
|
|
4938
4938
|
* @license React
|
|
4939
4939
|
* react.development.js
|
|
4940
4940
|
*
|
|
@@ -4942,7 +4942,7 @@ body {
|
|
|
4942
4942
|
*
|
|
4943
4943
|
* This source code is licensed under the MIT license found in the
|
|
4944
4944
|
* LICENSE file in the root directory of this source tree.
|
|
4945
|
-
*/st.exports;var yn;function pg(){return yn||(yn=1,function(i,e){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=_n&&c[_n]||c["@@iterator"],typeof c=="function"?c:null)}function t(c,g){c=(c=c.constructor)&&(c.displayName||c.name)||"ReactClass";var f=c+"."+g;En[f]||(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),En[f]=!0)}function a(c,g,f){this.props=c,this.context=g,this.refs=ir,this.updater=f||xn}function s(){}function m(c,g,f){this.props=c,this.context=g,this.refs=ir,this.updater=f||xn}function
|
|
4945
|
+
*/st.exports;var yn;function pg(){return yn||(yn=1,function(i,e){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=_n&&c[_n]||c["@@iterator"],typeof c=="function"?c:null)}function t(c,g){c=(c=c.constructor)&&(c.displayName||c.name)||"ReactClass";var f=c+"."+g;En[f]||(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),En[f]=!0)}function a(c,g,f){this.props=c,this.context=g,this.refs=ir,this.updater=f||xn}function s(){}function m(c,g,f){this.props=c,this.context=g,this.refs=ir,this.updater=f||xn}function w(c){return""+c}function b(c){try{w(c);var g=!1}catch{g=!0}if(g){g=console;var f=g.error,y=typeof Symbol=="function"&&Symbol.toStringTag&&c[Symbol.toStringTag]||c.constructor.name||"Object";return f.call(g,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",y),w(c)}}function C(c){if(c==null)return null;if(typeof c=="function")return c.$$typeof===yg?null:c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case u:return"Fragment";case $:return"Profiler";case v:return"StrictMode";case R:return"Suspense";case ge:return"SuspenseList";case bg: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 ue:return"Portal";case A:return(c.displayName||"Context")+".Provider";case E: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 K:return g=c.displayName||null,g!==null?g:C(c.type)||"Memo";case Ye:g=c._payload,c=c._init;try{return C(c(g))}catch{}}return null}function x(c){if(c===u)return"<>";if(typeof c=="object"&&c!==null&&c.$$typeof===Ye)return"<...>";try{var g=C(c);return g?"<"+g+">":"<...>"}catch{return"<...>"}}function N(){var c=k.A;return c===null?null:c.getOwner()}function F(){return Error("react-stack-top-frame")}function M(c){if(bt.call(c,"key")){var g=Object.getOwnPropertyDescriptor(c,"key").get;if(g&&g.isReactWarning)return!1}return c.key!==void 0}function q(c,g){function f(){Pn||(Pn=!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))}f.isReactWarning=!0,Object.defineProperty(c,"key",{get:f,configurable:!0})}function P(){var c=C(this.type);return Rn[c]||(Rn[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 L(c,g,f,y,_,T,D,U){return f=T.ref,c={$$typeof:de,type:c,key:g,props:T,_owner:_},(f!==void 0?f: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=L(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 j(c){return typeof c=="object"&&c!==null&&c.$$typeof===de}function ee(c){var g={"=":"=0",":":"=2"};return"$"+c.replace(/[=:]/g,function(f){return g[f]})}function B(c,g){return typeof c=="object"&&c!==null&&c.key!=null?(b(c.key),ee(""+c.key)):g.toString(36)}function fe(){}function be(c){switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:switch(typeof c.status=="string"?c.then(fe,fe):(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 ae(c,g,f,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 de:case ue:D=!0;break;case Ye:return D=c._init,ae(D(c._payload),g,f,y,_)}}if(D){D=c,_=_(D);var U=y===""?"."+B(D,0):y;return Sn(_)?(f="",U!=null&&(f=U.replace(kn,"$&/")+"/"),ae(_,g,f,"",function(we){return we})):_!=null&&(j(_)&&(_.key!=null&&(D&&D.key===_.key||b(_.key)),f=W(_,f+(_.key==null||D&&D.key===_.key?"":(""+_.key).replace(kn,"$&/")+"/")+U),y!==""&&D!=null&&j(D)&&D.key==null&&D._store&&!D._store.validated&&(f._store.validated=2),_=f),g.push(_)),1}if(D=0,U=y===""?".":y+":",Sn(c))for(var I=0;I<c.length;I++)y=c[I],T=U+B(y,I),D+=ae(y,g,f,T,_);else if(I=n(c),typeof I=="function")for(I===c.entries&&(In||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),In=!0),c=I.call(c),I=0;!(y=c.next()).done;)y=y.value,T=U+B(y,I++),D+=ae(y,g,f,T,_);else if(T==="object"){if(typeof c.then=="function")return ae(be(c),g,f,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 te(c,g,f){if(c==null)return c;var y=[],_=0;return ae(c,y,"","",function(T){return g.call(f,T,_++)}),y}function Ie(c){if(c._status===-1){var g=c._result;g=g(),g.then(function(f){(c._status===0||c._status===-1)&&(c._status=1,c._result=f)},function(f){(c._status===0||c._status===-1)&&(c._status=2,c._result=f)}),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
|
|
4946
4946
|
|
|
4947
4947
|
Your code should look like:
|
|
4948
4948
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -4954,4 +4954,4 @@ Your code should look like:
|
|
|
4954
4954
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
4955
4955
|
2. You might be breaking the Rules of Hooks
|
|
4956
4956
|
3. You might have more than one copy of React in the same app
|
|
4957
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}function U(){}function ce(c){if(yt===null)try{var g=("require"+Math.random()).slice(0,7);yt=(i&&i[g]).call(i,"timers").setImmediate}catch{yt=function(y){An===!1&&(An=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var _=new MessageChannel;_.port1.onmessage=y,_.port2.postMessage(void 0)}}return yt(c)}function re(c){return 1<c.length&&typeof AggregateError=="function"?new AggregateError(c):c[0]}function X(c,g){g!==wt-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),wt=g}function Z(c,g,f){var y=k.actQueue;if(y!==null)if(y.length!==0)try{ye(y),ce(function(){return Z(c,g,f)});return}catch(_){k.thrownErrors.push(_)}else k.actQueue=null;0<k.thrownErrors.length?(y=re(k.thrownErrors),k.thrownErrors.length=0,f(y)):g(c)}function ye(c){if(!ar){ar=!0;var g=0;try{for(;g<c.length;g++){var f=c[g];do{k.didUsePromise=!1;var y=f(!1);if(y!==null){if(k.didUsePromise){c[g]=f,c.splice(0,g);return}f=y}else break}while(!0)}c.length=0}catch(_){c.splice(0,g+1),k.thrownErrors.push(_)}finally{ar=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var de=Symbol.for("react.transitional.element"),ue=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),A=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),ge=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),Ye=Symbol.for("react.lazy"),bg=Symbol.for("react.activity"),_n=Symbol.iterator,En={},xn={isMounted:function(){return!1},enqueueForceUpdate:function(c){t(c,"forceUpdate")},enqueueReplaceState:function(c){t(c,"replaceState")},enqueueSetState:function(c){t(c,"setState")}},$n=Object.assign,ir={};Object.freeze(ir),a.prototype.isReactComponent={},a.prototype.setState=function(c,g){if(typeof c!="object"&&typeof c!="function"&&c!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,c,g,"setState")},a.prototype.forceUpdate=function(c){this.updater.enqueueForceUpdate(this,c,"forceUpdate")};var ne={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},ft;for(ft in ne)ne.hasOwnProperty(ft)&&r(ft,ne[ft]);s.prototype=a.prototype,ne=m.prototype=new s,ne.constructor=m,$n(ne,a.prototype),ne.isPureReactComponent=!0;var Sn=Array.isArray,yg=Symbol.for("react.client.reference"),k={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},bt=Object.prototype.hasOwnProperty,On=console.createTask?console.createTask:function(){return null};ne={react_stack_bottom_frame:function(c){return c()}};var Pn,Dn,Rn={},wg=ne.react_stack_bottom_frame.bind(ne,F)(),Cg=On(x(F)),In=!1,kn=/\/+/g,Tn=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)},An=!1,yt=null,wt=0,Ct=!1,ar=!1,Mn=typeof queueMicrotask=="function"?function(c){queueMicrotask(function(){return queueMicrotask(c)})}:ce;ne=Object.freeze({__proto__:null,c:function(c){return G().useMemoCache(c)}}),e.Children={map:te,forEach:function(c,g,f){te(c,function(){g.apply(this,arguments)},f)},count:function(c){var g=0;return te(c,function(){g++}),g},toArray:function(c){return te(c,function(g){return g})||[]},only:function(c){if(!j(c))throw Error("React.Children.only expected to receive a single React element child.");return c}},e.Component=a,e.Fragment=u,e.Profiler=$,e.PureComponent=m,e.StrictMode=v,e.Suspense=R,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,e.__COMPILER_RUNTIME=ne,e.act=function(c){var g=k.actQueue,f=wt;wt++;var y=k.actQueue=g!==null?g:[],_=!1;try{var T=c()}catch(I){k.thrownErrors.push(I)}if(0<k.thrownErrors.length)throw X(g,f),c=re(k.thrownErrors),k.thrownErrors.length=0,c;if(T!==null&&typeof T=="object"&&typeof T.then=="function"){var D=T;return Mn(function(){_||Ct||(Ct=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(I,we){_=!0,D.then(function(Ke){if(X(g,f),f===0){try{ye(y),ce(function(){return Z(Ke,I,we)})}catch(Eg){k.thrownErrors.push(Eg)}if(0<k.thrownErrors.length){var _g=re(k.thrownErrors);k.thrownErrors.length=0,we(_g)}}else I(Ke)},function(Ke){X(g,f),0<k.thrownErrors.length&&(Ke=re(k.thrownErrors),k.thrownErrors.length=0),we(Ke)})}}}var z=T;if(X(g,f),f===0&&(ye(y),y.length!==0&&Mn(function(){_||Ct||(Ct=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),k.actQueue=null),0<k.thrownErrors.length)throw c=re(k.thrownErrors),k.thrownErrors.length=0,c;return{then:function(I,we){_=!0,f===0?(k.actQueue=y,ce(function(){return Z(z,I,we)})):I(z)}}},e.cache=function(c){return function(){return c.apply(null,arguments)}},e.captureOwnerStack=function(){var c=k.getCurrentStack;return c===null?null:c()},e.cloneElement=function(c,g,f){if(c==null)throw Error("The argument must be a React element, but you passed "+c+".");var y=$n({},c.props),_=c.key,T=c._owner;if(g!=null){var D;e:{if(bt.call(g,"ref")&&(D=Object.getOwnPropertyDescriptor(g,"ref").get)&&D.isReactWarning){D=!1;break e}D=g.ref!==void 0}D&&(T=N()),M(g)&&(b(g.key),_=""+g.key);for(z in g)!bt.call(g,z)||z==="key"||z==="__self"||z==="__source"||z==="ref"&&g.ref===void 0||(y[z]=g[z])}var z=arguments.length-2;if(z===1)y.children=f;else if(1<z){D=Array(z);for(var I=0;I<z;I++)D[I]=arguments[I+2];y.children=D}for(y=L(c.type,_,void 0,void 0,T,y,c._debugStack,c._debugTask),_=2;_<arguments.length;_++)T=arguments[_],j(T)&&T._store&&(T._store.validated=1);return y},e.createContext=function(c){return c={$$typeof:A,_currentValue:c,_currentValue2:c,_threadCount:0,Provider:null,Consumer:null},c.Provider=c,c.Consumer={$$typeof:E,_context:c},c._currentRenderer=null,c._currentRenderer2=null,c},e.createElement=function(c,g,f){for(var y=2;y<arguments.length;y++){var _=arguments[y];j(_)&&_._store&&(_._store.validated=1)}if(y={},_=null,g!=null)for(I in Dn||!("__self"in g)||"key"in g||(Dn=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),M(g)&&(b(g.key),_=""+g.key),g)bt.call(g,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(y[I]=g[I]);var T=arguments.length-2;if(T===1)y.children=f;else if(1<T){for(var D=Array(T),z=0;z<T;z++)D[z]=arguments[z+2];Object.freeze&&Object.freeze(D),y.children=D}if(c&&c.defaultProps)for(I in T=c.defaultProps,T)y[I]===void 0&&(y[I]=T[I]);_&&q(y,typeof c=="function"?c.displayName||c.name||"Unknown":c);var I=1e4>k.recentlyCreatedOwnerStacks++;return L(c,_,void 0,void 0,N(),y,I?Error("react-stack-top-frame"):wg,I?On(x(c)):Cg)},e.createRef=function(){var c={current:null};return Object.seal(c),c},e.forwardRef=function(c){c!=null&&c.$$typeof===K?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof c!="function"?console.error("forwardRef requires a render function but was given %s.",c===null?"null":typeof c):c.length!==0&&c.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",c.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),c!=null&&c.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var g={$$typeof:Y,render:c},f;return Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(y){f=y,c.name||c.displayName||(Object.defineProperty(c,"name",{value:y}),c.displayName=y)}}),g},e.isValidElement=j,e.lazy=function(c){return{$$typeof:Ye,_payload:{_status:-1,_result:c},_init:Ie}},e.memo=function(c,g){c==null&&console.error("memo: The first argument must be a component. Instead received: %s",c===null?"null":typeof c),g={$$typeof:K,type:c,compare:g===void 0?null:g};var f;return Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(y){f=y,c.name||c.displayName||(Object.defineProperty(c,"name",{value:y}),c.displayName=y)}}),g},e.startTransition=function(c){var g=k.T,f={};k.T=f,f._updatedFibers=new Set;try{var y=c(),_=k.S;_!==null&&_(f,y),typeof y=="object"&&y!==null&&typeof y.then=="function"&&y.then(U,Tn)}catch(T){Tn(T)}finally{g===null&&f._updatedFibers&&(c=f._updatedFibers.size,f._updatedFibers.clear(),10<c&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),k.T=g}},e.unstable_useCacheRefresh=function(){return G().useCacheRefresh()},e.use=function(c){return G().use(c)},e.useActionState=function(c,g,f){return G().useActionState(c,g,f)},e.useCallback=function(c,g){return G().useCallback(c,g)},e.useContext=function(c){var g=G();return c.$$typeof===E&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),g.useContext(c)},e.useDebugValue=function(c,g){return G().useDebugValue(c,g)},e.useDeferredValue=function(c,g){return G().useDeferredValue(c,g)},e.useEffect=function(c,g,f){c==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var y=G();if(typeof f=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return y.useEffect(c,g)},e.useId=function(){return G().useId()},e.useImperativeHandle=function(c,g,f){return G().useImperativeHandle(c,g,f)},e.useInsertionEffect=function(c,g){return c==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),G().useInsertionEffect(c,g)},e.useLayoutEffect=function(c,g){return c==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),G().useLayoutEffect(c,g)},e.useMemo=function(c,g){return G().useMemo(c,g)},e.useOptimistic=function(c,g){return G().useOptimistic(c,g)},e.useReducer=function(c,g,f){return G().useReducer(c,g,f)},e.useRef=function(c){return G().useRef(c)},e.useState=function(c){return G().useState(c)},e.useSyncExternalStore=function(c,g,f){return G().useSyncExternalStore(c,g,f)},e.useTransition=function(){return G().useTransition()},e.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(st,st.exports)),st.exports}var wn;function hg(){return wn||(wn=1,process.env.NODE_ENV==="production"?vt.exports=gg():vt.exports=pg()),vt.exports}var mg=hg();const Cn=ug(mg),vg=fn({tagName:"rtg-button",elementClass:o.Button,react:Cn}),fg=fn({tagName:"rtg-checkbox",elementClass:o.Checkbox,react:Cn});o.ButtonReact=vg,o.CheckboxReact=fg,o.TOGGLE_GROUP_SIZE=pt,o.TOGGLE_GROUP_TYPE=tt,o.TOGGLE_GROUP_VARIANT=gt,o.TOGGLE_SIZE=Zt,o.TOGGLE_VARIANT=Qt,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|
|
4957
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}function z(){}function ce(c){if(yt===null)try{var g=("require"+Math.random()).slice(0,7);yt=(i&&i[g]).call(i,"timers").setImmediate}catch{yt=function(y){An===!1&&(An=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var _=new MessageChannel;_.port1.onmessage=y,_.port2.postMessage(void 0)}}return yt(c)}function re(c){return 1<c.length&&typeof AggregateError=="function"?new AggregateError(c):c[0]}function X(c,g){g!==wt-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),wt=g}function Z(c,g,f){var y=k.actQueue;if(y!==null)if(y.length!==0)try{ye(y),ce(function(){return Z(c,g,f)});return}catch(_){k.thrownErrors.push(_)}else k.actQueue=null;0<k.thrownErrors.length?(y=re(k.thrownErrors),k.thrownErrors.length=0,f(y)):g(c)}function ye(c){if(!ar){ar=!0;var g=0;try{for(;g<c.length;g++){var f=c[g];do{k.didUsePromise=!1;var y=f(!1);if(y!==null){if(k.didUsePromise){c[g]=f,c.splice(0,g);return}f=y}else break}while(!0)}c.length=0}catch(_){c.splice(0,g+1),k.thrownErrors.push(_)}finally{ar=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var de=Symbol.for("react.transitional.element"),ue=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),A=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),ge=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),Ye=Symbol.for("react.lazy"),bg=Symbol.for("react.activity"),_n=Symbol.iterator,En={},xn={isMounted:function(){return!1},enqueueForceUpdate:function(c){t(c,"forceUpdate")},enqueueReplaceState:function(c){t(c,"replaceState")},enqueueSetState:function(c){t(c,"setState")}},$n=Object.assign,ir={};Object.freeze(ir),a.prototype.isReactComponent={},a.prototype.setState=function(c,g){if(typeof c!="object"&&typeof c!="function"&&c!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,c,g,"setState")},a.prototype.forceUpdate=function(c){this.updater.enqueueForceUpdate(this,c,"forceUpdate")};var ne={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},ft;for(ft in ne)ne.hasOwnProperty(ft)&&r(ft,ne[ft]);s.prototype=a.prototype,ne=m.prototype=new s,ne.constructor=m,$n(ne,a.prototype),ne.isPureReactComponent=!0;var Sn=Array.isArray,yg=Symbol.for("react.client.reference"),k={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},bt=Object.prototype.hasOwnProperty,On=console.createTask?console.createTask:function(){return null};ne={"react-stack-bottom-frame":function(c){return c()}};var Pn,Dn,Rn={},wg=ne["react-stack-bottom-frame"].bind(ne,F)(),Cg=On(x(F)),In=!1,kn=/\/+/g,Tn=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)},An=!1,yt=null,wt=0,Ct=!1,ar=!1,Mn=typeof queueMicrotask=="function"?function(c){queueMicrotask(function(){return queueMicrotask(c)})}:ce;ne=Object.freeze({__proto__:null,c:function(c){return G().useMemoCache(c)}}),e.Children={map:te,forEach:function(c,g,f){te(c,function(){g.apply(this,arguments)},f)},count:function(c){var g=0;return te(c,function(){g++}),g},toArray:function(c){return te(c,function(g){return g})||[]},only:function(c){if(!j(c))throw Error("React.Children.only expected to receive a single React element child.");return c}},e.Component=a,e.Fragment=u,e.Profiler=$,e.PureComponent=m,e.StrictMode=v,e.Suspense=R,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,e.__COMPILER_RUNTIME=ne,e.act=function(c){var g=k.actQueue,f=wt;wt++;var y=k.actQueue=g!==null?g:[],_=!1;try{var T=c()}catch(I){k.thrownErrors.push(I)}if(0<k.thrownErrors.length)throw X(g,f),c=re(k.thrownErrors),k.thrownErrors.length=0,c;if(T!==null&&typeof T=="object"&&typeof T.then=="function"){var D=T;return Mn(function(){_||Ct||(Ct=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(I,we){_=!0,D.then(function(Ke){if(X(g,f),f===0){try{ye(y),ce(function(){return Z(Ke,I,we)})}catch(Eg){k.thrownErrors.push(Eg)}if(0<k.thrownErrors.length){var _g=re(k.thrownErrors);k.thrownErrors.length=0,we(_g)}}else I(Ke)},function(Ke){X(g,f),0<k.thrownErrors.length&&(Ke=re(k.thrownErrors),k.thrownErrors.length=0),we(Ke)})}}}var U=T;if(X(g,f),f===0&&(ye(y),y.length!==0&&Mn(function(){_||Ct||(Ct=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),k.actQueue=null),0<k.thrownErrors.length)throw c=re(k.thrownErrors),k.thrownErrors.length=0,c;return{then:function(I,we){_=!0,f===0?(k.actQueue=y,ce(function(){return Z(U,I,we)})):I(U)}}},e.cache=function(c){return function(){return c.apply(null,arguments)}},e.captureOwnerStack=function(){var c=k.getCurrentStack;return c===null?null:c()},e.cloneElement=function(c,g,f){if(c==null)throw Error("The argument must be a React element, but you passed "+c+".");var y=$n({},c.props),_=c.key,T=c._owner;if(g!=null){var D;e:{if(bt.call(g,"ref")&&(D=Object.getOwnPropertyDescriptor(g,"ref").get)&&D.isReactWarning){D=!1;break e}D=g.ref!==void 0}D&&(T=N()),M(g)&&(b(g.key),_=""+g.key);for(U in g)!bt.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=f;else if(1<U){D=Array(U);for(var I=0;I<U;I++)D[I]=arguments[I+2];y.children=D}for(y=L(c.type,_,void 0,void 0,T,y,c._debugStack,c._debugTask),_=2;_<arguments.length;_++)T=arguments[_],j(T)&&T._store&&(T._store.validated=1);return y},e.createContext=function(c){return c={$$typeof:A,_currentValue:c,_currentValue2:c,_threadCount:0,Provider:null,Consumer:null},c.Provider=c,c.Consumer={$$typeof:E,_context:c},c._currentRenderer=null,c._currentRenderer2=null,c},e.createElement=function(c,g,f){for(var y=2;y<arguments.length;y++){var _=arguments[y];j(_)&&_._store&&(_._store.validated=1)}if(y={},_=null,g!=null)for(I in Dn||!("__self"in g)||"key"in g||(Dn=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),M(g)&&(b(g.key),_=""+g.key),g)bt.call(g,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(y[I]=g[I]);var T=arguments.length-2;if(T===1)y.children=f;else if(1<T){for(var D=Array(T),U=0;U<T;U++)D[U]=arguments[U+2];Object.freeze&&Object.freeze(D),y.children=D}if(c&&c.defaultProps)for(I in T=c.defaultProps,T)y[I]===void 0&&(y[I]=T[I]);_&&q(y,typeof c=="function"?c.displayName||c.name||"Unknown":c);var I=1e4>k.recentlyCreatedOwnerStacks++;return L(c,_,void 0,void 0,N(),y,I?Error("react-stack-top-frame"):wg,I?On(x(c)):Cg)},e.createRef=function(){var c={current:null};return Object.seal(c),c},e.forwardRef=function(c){c!=null&&c.$$typeof===K?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof c!="function"?console.error("forwardRef requires a render function but was given %s.",c===null?"null":typeof c):c.length!==0&&c.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",c.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),c!=null&&c.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var g={$$typeof:Y,render:c},f;return Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(y){f=y,c.name||c.displayName||(Object.defineProperty(c,"name",{value:y}),c.displayName=y)}}),g},e.isValidElement=j,e.lazy=function(c){return{$$typeof:Ye,_payload:{_status:-1,_result:c},_init:Ie}},e.memo=function(c,g){c==null&&console.error("memo: The first argument must be a component. Instead received: %s",c===null?"null":typeof c),g={$$typeof:K,type:c,compare:g===void 0?null:g};var f;return Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(y){f=y,c.name||c.displayName||(Object.defineProperty(c,"name",{value:y}),c.displayName=y)}}),g},e.startTransition=function(c){var g=k.T,f={};k.T=f,f._updatedFibers=new Set;try{var y=c(),_=k.S;_!==null&&_(f,y),typeof y=="object"&&y!==null&&typeof y.then=="function"&&y.then(z,Tn)}catch(T){Tn(T)}finally{g===null&&f._updatedFibers&&(c=f._updatedFibers.size,f._updatedFibers.clear(),10<c&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),k.T=g}},e.unstable_useCacheRefresh=function(){return G().useCacheRefresh()},e.use=function(c){return G().use(c)},e.useActionState=function(c,g,f){return G().useActionState(c,g,f)},e.useCallback=function(c,g){return G().useCallback(c,g)},e.useContext=function(c){var g=G();return c.$$typeof===E&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),g.useContext(c)},e.useDebugValue=function(c,g){return G().useDebugValue(c,g)},e.useDeferredValue=function(c,g){return G().useDeferredValue(c,g)},e.useEffect=function(c,g,f){c==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var y=G();if(typeof f=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return y.useEffect(c,g)},e.useId=function(){return G().useId()},e.useImperativeHandle=function(c,g,f){return G().useImperativeHandle(c,g,f)},e.useInsertionEffect=function(c,g){return c==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),G().useInsertionEffect(c,g)},e.useLayoutEffect=function(c,g){return c==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),G().useLayoutEffect(c,g)},e.useMemo=function(c,g){return G().useMemo(c,g)},e.useOptimistic=function(c,g){return G().useOptimistic(c,g)},e.useReducer=function(c,g,f){return G().useReducer(c,g,f)},e.useRef=function(c){return G().useRef(c)},e.useState=function(c){return G().useState(c)},e.useSyncExternalStore=function(c,g,f){return G().useSyncExternalStore(c,g,f)},e.useTransition=function(){return G().useTransition()},e.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(st,st.exports)),st.exports}var wn;function hg(){return wn||(wn=1,process.env.NODE_ENV==="production"?vt.exports=gg():vt.exports=pg()),vt.exports}var mg=hg();const Cn=ug(mg),vg=fn({tagName:"rtg-button",elementClass:o.Button,react:Cn}),fg=fn({tagName:"rtg-checkbox",elementClass:o.Checkbox,react:Cn});o.ButtonReact=vg,o.CheckboxReact=fg,o.TOGGLE_GROUP_SIZE=pt,o.TOGGLE_GROUP_TYPE=tt,o.TOGGLE_GROUP_VARIANT=gt,o.TOGGLE_SIZE=Zt,o.TOGGLE_VARIANT=Qt,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|