@revotech-group/revotech-ui-kit 0.0.73 → 0.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rtg-ui-kit.js +21 -13
- package/dist/rtg-ui-kit.umd.cjs +212 -212
- package/dist/src/helpers/base-element.d.ts +2 -2
- package/package.json +1 -1
package/dist/rtg-ui-kit.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(o,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("lit"),require("lit/decorators.js"),require("lit/html.js"),require("lit/directive.js"),require("lit/async-directive.js"),require("lit/directives/if-defined.js"),require("lit/directives/unsafe-html.js"),require("lit-element"),require("@lit-labs/context"),require("lit/directives/ref.js")):typeof define=="function"&&define.amd?define(["exports","lit","lit/decorators.js","lit/html.js","lit/directive.js","lit/async-directive.js","lit/directives/if-defined.js","lit/directives/unsafe-html.js","lit-element","@lit-labs/context","lit/directives/ref.js"],d):(o=typeof globalThis<"u"?globalThis:o||self,d(o["rtg-ui-kit"]={},o.lit,o.decorators_js,o.html_js,o.directive_js,o.asyncDirective_js,o.ifDefined_js,o.unsafeHtml_js,o.litElement,o.context,o.ref_js))})(this,function(o,d,l,Tn,Ct,An,Ln,ar,we,ne,Mn){"use strict";function sr(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=sr(i[e]))&&(n&&(n+=" "),n+=r)}else for(r in i)i[r]&&(n&&(n+=" "),n+=r);return n}function lr(){for(var i,e,r=0,n="",t=arguments.length;r<t;r++)(i=arguments[r])&&(e=sr(i))&&(n&&(n+=" "),n+=e);return n}const xt="-",Nn=i=>{const e=zn(i),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=i;return{getClassGroupId:s=>{const m=s.split(xt);return m[0]===""&&m.length!==1&&m.shift(),cr(m,e)||qn(s)},getConflictingClassGroupIds:(s,m)=>{const _=r[s]||[];return m&&n[s]?[..._,...n[s]]:_}}},cr=(i,e)=>{var s;if(i.length===0)return e.classGroupId;const r=i[0],n=e.nextPart.get(r),t=n?cr(i.slice(1),n):void 0;if(t)return t;if(e.validators.length===0)return;const a=i.join(xt);return(s=e.validators.find(({validator:m})=>m(a)))==null?void 0:s.classGroupId},dr=/^\[(.+)\]$/,qn=i=>{if(dr.test(i)){const e=dr.exec(i)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},zn=i=>{const{theme:e,prefix:r}=i,n={nextPart:new Map,validators:[]};return Un(Object.entries(i.classGroups),r).forEach(([a,s])=>{Et(s,n,a,e)}),n},Et=(i,e,r,n)=>{i.forEach(t=>{if(typeof t=="string"){const a=t===""?e:ur(e,t);a.classGroupId=r;return}if(typeof t=="function"){if(Bn(t)){Et(t(n),e,r,n);return}e.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(([a,s])=>{Et(s,ur(e,a),r,n)})})},ur=(i,e)=>{let r=i;return e.split(xt).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Bn=i=>i.isThemeGetter,Un=(i,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,Fn=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)}}},gr="!",Gn=i=>{const{separator:e,experimentalParseClassName:r}=i,n=e.length===1,t=e[0],a=e.length,s=m=>{const _=[];let b=0,w=0,E;for(let P=0;P<m.length;P++){let M=m[P];if(b===0){if(M===t&&(n||m.slice(P,P+a)===e)){_.push(m.slice(w,P)),w=P+a;continue}if(M==="/"){E=P;continue}}M==="["?b++:M==="]"&&b--}const N=_.length===0?m:m.substring(w),F=N.startsWith(gr),L=F?N.substring(1):N,z=E&&E>w?E-w:void 0;return{modifiers:_,hasImportantModifier:F,baseClassName:L,maybePostfixModifierPosition:z}};return r?m=>r({className:m,parseClassName:s}):s},Vn=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},Hn=i=>({cache:Fn(i.cacheSize),parseClassName:Gn(i),...Nn(i)}),Yn=/\s+/,jn=(i,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:t}=e,a=[],s=i.trim().split(Yn);let m="";for(let _=s.length-1;_>=0;_-=1){const b=s[_],{modifiers:w,hasImportantModifier:E,baseClassName:N,maybePostfixModifierPosition:F}=r(b);let L=!!F,z=n(L?N.substring(0,F):N);if(!z){if(!L){m=b+(m.length>0?" "+m:m);continue}if(z=n(N),!z){m=b+(m.length>0?" "+m:m);continue}L=!1}const P=Vn(w).join(":"),M=E?P+gr:P,W=M+z;if(a.includes(W))continue;a.push(W);const X=t(z,L);for(let J=0;J<X.length;++J){const q=X[J];a.push(M+q)}m=b+(m.length>0?" "+m:m)}return m};function Wn(){let i=0,e,r,n="";for(;i<arguments.length;)(e=arguments[i++])&&(r=pr(e))&&(n&&(n+=" "),n+=r);return n}const pr=i=>{if(typeof i=="string")return i;let e,r="";for(let n=0;n<i.length;n++)i[n]&&(e=pr(i[n]))&&(r&&(r+=" "),r+=e);return r};function Xn(i,...e){let r,n,t,a=s;function s(_){const b=e.reduce((w,E)=>E(w),i());return r=Hn(b),n=r.cache.get,t=r.cache.set,a=m,m(_)}function m(_){const b=n(_);if(b)return b;const w=jn(_,r);return t(_,w),w}return function(){return a(Wn.apply(null,arguments))}}const V=i=>{const e=r=>r[i]||[];return e.isThemeGetter=!0,e},hr=/^\[(?:([a-z-]+):)?(.+)\]$/i,Kn=/^\d+\/\d+$/,Qn=new Set(["px","full","screen"]),Zn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,eo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,to=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ro=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ge=i=>ke(i)||Qn.has(i)||Kn.test(i),pe=i=>Ie(i,"length",uo),ke=i=>!!i&&!Number.isNaN(Number(i)),$t=i=>Ie(i,"number",ke),We=i=>!!i&&Number.isInteger(Number(i)),no=i=>i.endsWith("%")&&ke(i.slice(0,-1)),O=i=>hr.test(i),he=i=>Zn.test(i),oo=new Set(["length","size","percentage"]),io=i=>Ie(i,oo,mr),ao=i=>Ie(i,"position",mr),so=new Set(["image","url"]),lo=i=>Ie(i,so,po),co=i=>Ie(i,"",go),Xe=()=>!0,Ie=(i,e,r)=>{const n=hr.exec(i);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},uo=i=>Jn.test(i)&&!eo.test(i),mr=()=>!1,go=i=>to.test(i),po=i=>ro.test(i),ho=Xn(()=>{const i=V("colors"),e=V("spacing"),r=V("blur"),n=V("brightness"),t=V("borderColor"),a=V("borderRadius"),s=V("borderSpacing"),m=V("borderWidth"),_=V("contrast"),b=V("grayscale"),w=V("hueRotate"),E=V("invert"),N=V("gap"),F=V("gradientColorStops"),L=V("gradientColorStopPositions"),z=V("inset"),P=V("margin"),M=V("opacity"),W=V("padding"),X=V("saturate"),J=V("scale"),q=V("sepia"),fe=V("skew"),ve=V("space"),ie=V("translate"),ee=()=>["auto","contain","none"],Re=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",O,e],B=()=>[O,e],le=()=>["",ge,pe],te=()=>["auto",ke,O],K=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Q=()=>["solid","dashed","dotted","double","none"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>["start","end","center","between","around","evenly","stretch"],de=()=>["","0",O],u=()=>["auto","avoid","all","avoid-page","page","left","right","column"],f=()=>[ke,O];return{cacheSize:500,separator:":",theme:{colors:[Xe],spacing:[ge,pe],blur:["none","",he,O],brightness:f(),borderColor:[i],borderRadius:["none","","full",he,O],borderSpacing:B(),borderWidth:le(),contrast:f(),grayscale:de(),hueRotate:f(),invert:de(),gap:B(),gradientColorStops:[i],gradientColorStopPositions:[no,pe],inset:G(),margin:G(),opacity:f(),padding:B(),saturate:f(),scale:f(),sepia:de(),skew:f(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[he]}],"break-after":[{"break-after":u()}],"break-before":[{"break-before":u()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...K(),O]}],overflow:[{overflow:Re()}],"overflow-x":[{"overflow-x":Re()}],"overflow-y":[{"overflow-y":Re()}],overscroll:[{overscroll:ee()}],"overscroll-x":[{"overscroll-x":ee()}],"overscroll-y":[{"overscroll-y":ee()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[z]}],"inset-x":[{"inset-x":[z]}],"inset-y":[{"inset-y":[z]}],start:[{start:[z]}],end:[{end:[z]}],top:[{top:[z]}],right:[{right:[z]}],bottom:[{bottom:[z]}],left:[{left:[z]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",We,O]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",O]}],grow:[{grow:de()}],shrink:[{shrink:de()}],order:[{order:["first","last","none",We,O]}],"grid-cols":[{"grid-cols":[Xe]}],"col-start-end":[{col:["auto",{span:["full",We,O]},O]}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":[Xe]}],"row-start-end":[{row:["auto",{span:[We,O]},O]}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",O]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",O]}],gap:[{gap:[N]}],"gap-x":[{"gap-x":[N]}],"gap-y":[{"gap-y":[N]}],"justify-content":[{justify:["normal",...ce()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ce(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ce(),"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":[ve]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ve]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",O,e]}],"min-w":[{"min-w":[O,e,"min","max","fit"]}],"max-w":[{"max-w":[O,e,"none","full","min","max","fit","prose",{screen:[he]},he]}],h:[{h:[O,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[O,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[O,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[O,e,"auto","min","max","fit"]}],"font-size":[{text:["base",he,pe]}],"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:[Xe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",O]}],"line-clamp":[{"line-clamp":["none",ke,$t]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ge,O]}],"list-image":[{"list-image":["none",O]}],"list-style-type":[{list:["none","disc","decimal",O]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[i]}],"placeholder-opacity":[{"placeholder-opacity":[M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[i]}],"text-opacity":[{"text-opacity":[M]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ge,pe]}],"underline-offset":[{"underline-offset":["auto",ge,O]}],"text-decoration-color":[{decoration:[i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[M]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...K(),ao]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",io]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lo]}],"bg-color":[{bg:[i]}],"gradient-from-pos":[{from:[L]}],"gradient-via-pos":[{via:[L]}],"gradient-to-pos":[{to:[L]}],"gradient-from":[{from:[F]}],"gradient-via":[{via:[F]}],"gradient-to":[{to:[F]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[m]}],"border-w-x":[{"border-x":[m]}],"border-w-y":[{"border-y":[m]}],"border-w-s":[{"border-s":[m]}],"border-w-e":[{"border-e":[m]}],"border-w-t":[{"border-t":[m]}],"border-w-r":[{"border-r":[m]}],"border-w-b":[{"border-b":[m]}],"border-w-l":[{"border-l":[m]}],"border-opacity":[{"border-opacity":[M]}],"border-style":[{border:[...Q(),"hidden"]}],"divide-x":[{"divide-x":[m]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[m]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[M]}],"divide-style":[{divide:Q()}],"border-color":[{border:[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:["",...Q()]}],"outline-offset":[{"outline-offset":[ge,O]}],"outline-w":[{outline:[ge,pe]}],"outline-color":[{outline:[i]}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[i]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[ge,pe]}],"ring-offset-color":[{"ring-offset":[i]}],shadow:[{shadow:["","inner","none",he,co]}],"shadow-color":[{shadow:[Xe]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":[...be(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":be()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[_]}],"drop-shadow":[{"drop-shadow":["","none",he,O]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[E]}],saturate:[{saturate:[X]}],sepia:[{sepia:[q]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[_]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[E]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[X]}],"backdrop-sepia":[{"backdrop-sepia":[q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:f()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:f()}],animate:[{animate:["none","spin","ping","pulse","bounce",O]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[J]}],"scale-x":[{"scale-x":[J]}],"scale-y":[{"scale-y":[J]}],rotate:[{rotate:[We,O]}],"translate-x":[{"translate-x":[ie]}],"translate-y":[{"translate-y":[ie]}],"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",O]}],accent:[{accent:["auto",i]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O]}],"caret-color":[{caret:[i]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O]}],fill:[{fill:[i,"none"]}],"stroke-w":[{stroke:[ge,pe,$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 ho(lr(i))}var mo=Object.defineProperty,fo=(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&&mo(e,r,t),t};class h extends d.LitElement{constructor(){super(),this.shadow=!1}getAttributesToExclude(){return[]}getAttributesToRemoveFromParent(){return[]}getFilteredAttributes(){const e={};return Array.from(this.attributes).forEach(r=>{this.getAttributesToExclude().includes(r.name)||(e[r.name]=r.value??"")}),e}removeParentAttributes(){this.getAttributesToRemoveFromParent().forEach(r=>{this.hasAttribute(r)&&this.removeAttribute(r)})}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(_=>`${_.name}=${_.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)}}fo([l.property({type:Boolean})],h.prototype,"shadow");function Ot(){const i=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=(i+Math.random()*16)%16|0;return(r=="x"?n:n&3|8).toString(16)})}const fr=d.css`
|
|
1
|
+
(function(o,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("lit"),require("lit/decorators.js"),require("lit/html.js"),require("lit/directive.js"),require("lit/async-directive.js"),require("lit/directives/if-defined.js"),require("lit/directives/unsafe-html.js"),require("lit-element"),require("@lit-labs/context"),require("lit/directives/ref.js")):typeof define=="function"&&define.amd?define(["exports","lit","lit/decorators.js","lit/html.js","lit/directive.js","lit/async-directive.js","lit/directives/if-defined.js","lit/directives/unsafe-html.js","lit-element","@lit-labs/context","lit/directives/ref.js"],d):(o=typeof globalThis<"u"?globalThis:o||self,d(o["rtg-ui-kit"]={},o.lit,o.decorators_js,o.html_js,o.directive_js,o.asyncDirective_js,o.ifDefined_js,o.unsafeHtml_js,o.litElement,o.context,o.ref_js))})(this,function(o,d,l,Tn,_e,An,Ln,ar,wt,nt,Mn){"use strict";function sr(i){var t,r,n="";if(typeof i=="string"||typeof i=="number")n+=i;else if(typeof i=="object")if(Array.isArray(i)){var e=i.length;for(t=0;t<e;t++)i[t]&&(r=sr(i[t]))&&(n&&(n+=" "),n+=r)}else for(r in i)i[r]&&(n&&(n+=" "),n+=r);return n}function lr(){for(var i,t,r=0,n="",e=arguments.length;r<e;r++)(i=arguments[r])&&(t=sr(i))&&(n&&(n+=" "),n+=t);return n}const xe="-",Nn=i=>{const t=zn(i),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=i;return{getClassGroupId:s=>{const m=s.split(xe);return m[0]===""&&m.length!==1&&m.shift(),cr(m,t)||qn(s)},getConflictingClassGroupIds:(s,m)=>{const C=r[s]||[];return m&&n[s]?[...C,...n[s]]:C}}},cr=(i,t)=>{var s;if(i.length===0)return t.classGroupId;const r=i[0],n=t.nextPart.get(r),e=n?cr(i.slice(1),n):void 0;if(e)return e;if(t.validators.length===0)return;const a=i.join(xe);return(s=t.validators.find(({validator:m})=>m(a)))==null?void 0:s.classGroupId},dr=/^\[(.+)\]$/,qn=i=>{if(dr.test(i)){const t=dr.exec(i)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},zn=i=>{const{theme:t,prefix:r}=i,n={nextPart:new Map,validators:[]};return Un(Object.entries(i.classGroups),r).forEach(([a,s])=>{Ee(s,n,a,t)}),n},Ee=(i,t,r,n)=>{i.forEach(e=>{if(typeof e=="string"){const a=e===""?t:ur(t,e);a.classGroupId=r;return}if(typeof e=="function"){if(Bn(e)){Ee(e(n),t,r,n);return}t.validators.push({validator:e,classGroupId:r});return}Object.entries(e).forEach(([a,s])=>{Ee(s,ur(t,a),r,n)})})},ur=(i,t)=>{let r=i;return t.split(xe).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Bn=i=>i.isThemeGetter,Un=(i,t)=>t?i.map(([r,n])=>{const e=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,m])=>[t+s,m])):a);return[r,e]}):i,Fn=i=>{if(i<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const e=(a,s)=>{r.set(a,s),t++,t>i&&(t=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return e(a,s),s},set(a,s){r.has(a)?r.set(a,s):e(a,s)}}},gr="!",Gn=i=>{const{separator:t,experimentalParseClassName:r}=i,n=t.length===1,e=t[0],a=t.length,s=m=>{const C=[];let b=0,w=0,E;for(let P=0;P<m.length;P++){let M=m[P];if(b===0){if(M===e&&(n||m.slice(P,P+a)===t)){C.push(m.slice(w,P)),w=P+a;continue}if(M==="/"){E=P;continue}}M==="["?b++:M==="]"&&b--}const N=C.length===0?m:m.substring(w),F=N.startsWith(gr),L=F?N.substring(1):N,z=E&&E>w?E-w:void 0;return{modifiers:C,hasImportantModifier:F,baseClassName:L,maybePostfixModifierPosition:z}};return r?m=>r({className:m,parseClassName:s}):s},Vn=i=>{if(i.length<=1)return i;const t=[];let r=[];return i.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},Hn=i=>({cache:Fn(i.cacheSize),parseClassName:Gn(i),...Nn(i)}),Yn=/\s+/,jn=(i,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:e}=t,a=[],s=i.trim().split(Yn);let m="";for(let C=s.length-1;C>=0;C-=1){const b=s[C],{modifiers:w,hasImportantModifier:E,baseClassName:N,maybePostfixModifierPosition:F}=r(b);let L=!!F,z=n(L?N.substring(0,F):N);if(!z){if(!L){m=b+(m.length>0?" "+m:m);continue}if(z=n(N),!z){m=b+(m.length>0?" "+m:m);continue}L=!1}const P=Vn(w).join(":"),M=E?P+gr:P,W=M+z;if(a.includes(W))continue;a.push(W);const X=e(z,L);for(let J=0;J<X.length;++J){const q=X[J];a.push(M+q)}m=b+(m.length>0?" "+m:m)}return m};function Wn(){let i=0,t,r,n="";for(;i<arguments.length;)(t=arguments[i++])&&(r=pr(t))&&(n&&(n+=" "),n+=r);return n}const pr=i=>{if(typeof i=="string")return i;let t,r="";for(let n=0;n<i.length;n++)i[n]&&(t=pr(i[n]))&&(r&&(r+=" "),r+=t);return r};function Xn(i,...t){let r,n,e,a=s;function s(C){const b=t.reduce((w,E)=>E(w),i());return r=Hn(b),n=r.cache.get,e=r.cache.set,a=m,m(C)}function m(C){const b=n(C);if(b)return b;const w=jn(C,r);return e(C,w),w}return function(){return a(Wn.apply(null,arguments))}}const V=i=>{const t=r=>r[i]||[];return t.isThemeGetter=!0,t},hr=/^\[(?:([a-z-]+):)?(.+)\]$/i,Kn=/^\d+\/\d+$/,Qn=new Set(["px","full","screen"]),Zn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,to=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,eo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ro=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gt=i=>kt(i)||Qn.has(i)||Kn.test(i),pt=i=>It(i,"length",uo),kt=i=>!!i&&!Number.isNaN(Number(i)),$e=i=>It(i,"number",kt),Wt=i=>!!i&&Number.isInteger(Number(i)),no=i=>i.endsWith("%")&&kt(i.slice(0,-1)),O=i=>hr.test(i),ht=i=>Zn.test(i),oo=new Set(["length","size","percentage"]),io=i=>It(i,oo,mr),ao=i=>It(i,"position",mr),so=new Set(["image","url"]),lo=i=>It(i,so,po),co=i=>It(i,"",go),Xt=()=>!0,It=(i,t,r)=>{const n=hr.exec(i);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},uo=i=>Jn.test(i)&&!to.test(i),mr=()=>!1,go=i=>eo.test(i),po=i=>ro.test(i),ho=Xn(()=>{const i=V("colors"),t=V("spacing"),r=V("blur"),n=V("brightness"),e=V("borderColor"),a=V("borderRadius"),s=V("borderSpacing"),m=V("borderWidth"),C=V("contrast"),b=V("grayscale"),w=V("hueRotate"),E=V("invert"),N=V("gap"),F=V("gradientColorStops"),L=V("gradientColorStopPositions"),z=V("inset"),P=V("margin"),M=V("opacity"),W=V("padding"),X=V("saturate"),J=V("scale"),q=V("sepia"),ft=V("skew"),vt=V("space"),it=V("translate"),tt=()=>["auto","contain","none"],Rt=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",O,t],B=()=>[O,t],lt=()=>["",gt,pt],et=()=>["auto",kt,O],K=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Q=()=>["solid","dashed","dotted","double","none"],bt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ct=()=>["start","end","center","between","around","evenly","stretch"],dt=()=>["","0",O],u=()=>["auto","avoid","all","avoid-page","page","left","right","column"],f=()=>[kt,O];return{cacheSize:500,separator:":",theme:{colors:[Xt],spacing:[gt,pt],blur:["none","",ht,O],brightness:f(),borderColor:[i],borderRadius:["none","","full",ht,O],borderSpacing:B(),borderWidth:lt(),contrast:f(),grayscale:dt(),hueRotate:f(),invert:dt(),gap:B(),gradientColorStops:[i],gradientColorStopPositions:[no,pt],inset:G(),margin:G(),opacity:f(),padding:B(),saturate:f(),scale:f(),sepia:dt(),skew:f(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[ht]}],"break-after":[{"break-after":u()}],"break-before":[{"break-before":u()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...K(),O]}],overflow:[{overflow:Rt()}],"overflow-x":[{"overflow-x":Rt()}],"overflow-y":[{"overflow-y":Rt()}],overscroll:[{overscroll:tt()}],"overscroll-x":[{"overscroll-x":tt()}],"overscroll-y":[{"overscroll-y":tt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[z]}],"inset-x":[{"inset-x":[z]}],"inset-y":[{"inset-y":[z]}],start:[{start:[z]}],end:[{end:[z]}],top:[{top:[z]}],right:[{right:[z]}],bottom:[{bottom:[z]}],left:[{left:[z]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Wt,O]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",O]}],grow:[{grow:dt()}],shrink:[{shrink:dt()}],order:[{order:["first","last","none",Wt,O]}],"grid-cols":[{"grid-cols":[Xt]}],"col-start-end":[{col:["auto",{span:["full",Wt,O]},O]}],"col-start":[{"col-start":et()}],"col-end":[{"col-end":et()}],"grid-rows":[{"grid-rows":[Xt]}],"row-start-end":[{row:["auto",{span:[Wt,O]},O]}],"row-start":[{"row-start":et()}],"row-end":[{"row-end":et()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",O]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",O]}],gap:[{gap:[N]}],"gap-x":[{"gap-x":[N]}],"gap-y":[{"gap-y":[N]}],"justify-content":[{justify:["normal",...ct()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ct(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ct(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[W]}],px:[{px:[W]}],py:[{py:[W]}],ps:[{ps:[W]}],pe:[{pe:[W]}],pt:[{pt:[W]}],pr:[{pr:[W]}],pb:[{pb:[W]}],pl:[{pl:[W]}],m:[{m:[P]}],mx:[{mx:[P]}],my:[{my:[P]}],ms:[{ms:[P]}],me:[{me:[P]}],mt:[{mt:[P]}],mr:[{mr:[P]}],mb:[{mb:[P]}],ml:[{ml:[P]}],"space-x":[{"space-x":[vt]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[vt]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",O,t]}],"min-w":[{"min-w":[O,t,"min","max","fit"]}],"max-w":[{"max-w":[O,t,"none","full","min","max","fit","prose",{screen:[ht]},ht]}],h:[{h:[O,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[O,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ht,pt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$e]}],"font-family":[{font:[Xt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",O]}],"line-clamp":[{"line-clamp":["none",kt,$e]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",gt,O]}],"list-image":[{"list-image":["none",O]}],"list-style-type":[{list:["none","disc","decimal",O]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[i]}],"placeholder-opacity":[{"placeholder-opacity":[M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[i]}],"text-opacity":[{"text-opacity":[M]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",gt,pt]}],"underline-offset":[{"underline-offset":["auto",gt,O]}],"text-decoration-color":[{decoration:[i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[M]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...K(),ao]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",io]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lo]}],"bg-color":[{bg:[i]}],"gradient-from-pos":[{from:[L]}],"gradient-via-pos":[{via:[L]}],"gradient-to-pos":[{to:[L]}],"gradient-from":[{from:[F]}],"gradient-via":[{via:[F]}],"gradient-to":[{to:[F]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[m]}],"border-w-x":[{"border-x":[m]}],"border-w-y":[{"border-y":[m]}],"border-w-s":[{"border-s":[m]}],"border-w-e":[{"border-e":[m]}],"border-w-t":[{"border-t":[m]}],"border-w-r":[{"border-r":[m]}],"border-w-b":[{"border-b":[m]}],"border-w-l":[{"border-l":[m]}],"border-opacity":[{"border-opacity":[M]}],"border-style":[{border:[...Q(),"hidden"]}],"divide-x":[{"divide-x":[m]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[m]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[M]}],"divide-style":[{divide:Q()}],"border-color":[{border:[e]}],"border-color-x":[{"border-x":[e]}],"border-color-y":[{"border-y":[e]}],"border-color-s":[{"border-s":[e]}],"border-color-e":[{"border-e":[e]}],"border-color-t":[{"border-t":[e]}],"border-color-r":[{"border-r":[e]}],"border-color-b":[{"border-b":[e]}],"border-color-l":[{"border-l":[e]}],"divide-color":[{divide:[e]}],"outline-style":[{outline:["",...Q()]}],"outline-offset":[{"outline-offset":[gt,O]}],"outline-w":[{outline:[gt,pt]}],"outline-color":[{outline:[i]}],"ring-w":[{ring:lt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[i]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[gt,pt]}],"ring-offset-color":[{"ring-offset":[i]}],shadow:[{shadow:["","inner","none",ht,co]}],"shadow-color":[{shadow:[Xt]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":[...bt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":bt()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[C]}],"drop-shadow":[{"drop-shadow":["","none",ht,O]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[E]}],saturate:[{saturate:[X]}],sepia:[{sepia:[q]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[C]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[E]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[X]}],"backdrop-sepia":[{"backdrop-sepia":[q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:f()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:f()}],animate:[{animate:["none","spin","ping","pulse","bounce",O]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[J]}],"scale-x":[{"scale-x":[J]}],"scale-y":[{"scale-y":[J]}],rotate:[{rotate:[Wt,O]}],"translate-x":[{"translate-x":[it]}],"translate-y":[{"translate-y":[it]}],"skew-x":[{"skew-x":[ft]}],"skew-y":[{"skew-y":[ft]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O]}],accent:[{accent:["auto",i]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O]}],"caret-color":[{caret:[i]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O]}],fill:[{fill:[i,"none"]}],"stroke-w":[{stroke:[gt,pt,$e]}],stroke:[{stroke:[i,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function p(...i){return ho(lr(i))}var mo=Object.defineProperty,fo=(i,t,r,n)=>{for(var e=void 0,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(t,r,e)||e);return e&&mo(t,r,e),e};class h extends d.LitElement{constructor(){super(),this.customClass=""}getAttributesToExclude(){return[]}getAttributesToRemoveFromParent(){return["class"]}removeParentAttributes(){this.getAttributesToRemoveFromParent().forEach(r=>{r==="class"&&this.hasAttribute("class")&&(this.customClass=this.getAttribute("class")||""),this.hasAttribute(r)&&this.removeAttribute(r)})}getFilteredAttributes(){const t={};return Array.from(this.attributes).forEach(r=>{this.getAttributesToExclude().includes(r.name)||(t[r.name]=r.value??"")}),t}isCustomPropertySet(t){const r=getComputedStyle(this).getPropertyValue(t).trim();return r!=="inherit"&&r.length>0}applyCustomClass(t,r,n=""){var a,s;let e="";t.some(m=>this.isCustomPropertySet(m))&&(e=n),e&&((s=(a=this.shadowRoot)==null?void 0:a.querySelector(r))==null||s.classList.add(e))}removeDuplicateContent(){var a;const t=document.createTreeWalker(this,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{var m;return s.nodeType===Node.COMMENT_NODE||s.nodeType===Node.TEXT_NODE&&!((m=s.textContent)!=null&&m.trim())?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),r=new Map,n=[];let e;for(;e=t.nextNode();){let s;if(e.nodeType===Node.TEXT_NODE){const m=(a=e.textContent)==null?void 0:a.trim();if(!m)continue;s=`text:${m}`}else if(e instanceof HTMLElement){const m=Array.from(e.attributes).map(C=>`${C.name}=${C.value}`).sort().join(":");s=`element:${e.tagName}:${m}`}else continue;if(r.has(s)){const m=r.get(s);m&&m.parentNode&&n.push(m),r.set(s,e)}else r.set(s,e)}n.forEach(s=>{s.parentNode&&(console.log("Removing duplicate:",s),s.parentNode.removeChild(s))})}moveLightDomChildrenInto(t,r){let n;if(r&&r.length>0){n=r.filter(e=>this.contains(e)&&e!==t&&!e.contains(t));for(const e of n){const a=Array.from(t.childNodes).find(s=>{var m;return(m=s.isEqualNode)==null?void 0:m.call(s,e)});a&&t.removeChild(a)}}else n=Array.from(this.childNodes).filter(e=>e!==t&&!t.contains(e)&&!e.contains(t));for(const e of n)t.appendChild(e)}}fo([l.property({type:String,reflect:!0})],h.prototype,"customClass");function Oe(){const i=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=(i+Math.random()*16)%16|0;return(r=="x"?n:n&3|8).toString(16)})}const fr=d.css`
|
|
2
2
|
@font-face {
|
|
3
3
|
font-family: 'GeistSans';
|
|
4
4
|
|
|
@@ -2859,7 +2859,7 @@ body {
|
|
|
2859
2859
|
.wrapper {
|
|
2860
2860
|
display: block;
|
|
2861
2861
|
}
|
|
2862
|
-
`;let
|
|
2862
|
+
`;let Se=nr;customElements.define("shadow-wrapper",Se);const vo="rtg-flex rtg-h-9 rtg-w-full rtg-rounded-md rtg-border rtg-border-input rtg-bg-transparent rtg-px-3 rtg-py-1 rtg-text-sm rtg-shadow-sm rtg-transition-colors file:rtg-border-0 file:rtg-bg-transparent file:rtg-text-sm file:rtg-font-medium placeholder:rtg-text-muted-foreground focus-visible:rtg-outline-none focus-visible:rtg-ring-1 focus-visible:rtg-ring-ring disabled:rtg-opacity-50 input-base";class br extends An.AsyncDirective{constructor(){super(...arguments),this.prevData={}}render(t){return Tn.nothing}update(t,[r]){var n;this.element!==t.element&&(this.element=t.element),this.host=((n=t.options)===null||n===void 0?void 0:n.host)||this.element,this.apply(r),this.groom(r),this.prevData={...r}}apply(t){if(!t)return;const{prevData:r,element:n}=this;for(const e in t){const a=t[e];a!==r[e]&&(n[e]=a)}}groom(t){const{prevData:r,element:n}=this;if(r)for(const e in r)(!t||!(e in t)&&n[e]===r[e])&&(n[e]=void 0)}}_e.directive(br);class yr extends br{constructor(){super(...arguments),this.eventData={}}apply(t){if(t)for(const r in t){const n=t[r];n!==this.eventData[r]&&this.applyEvent(r,n)}}applyEvent(t,r){const{prevData:n,element:e}=this;this.eventData[t]=r,n[t]&&e.removeEventListener(t,this,r),e.addEventListener(t,this,r)}groom(t){const{prevData:r,element:n}=this;if(r)for(const e in r)(!t||!(e in t)&&n[e]===r[e])&&this.groomEvent(e,r[e])}groomEvent(t,r){const{element:n}=this;delete this.eventData[t],n.removeEventListener(t,this,r)}handleEvent(t){const r=this.eventData[t.type];typeof r=="function"?r.call(this.host,t):r.handleEvent(t)}disconnected(){const{eventData:t,element:r}=this;for(const n in t){const e=n.slice(1),a=t[n];r.removeEventListener(e,this,a)}}reconnected(){const{eventData:t,element:r}=this;for(const n in t){const e=n.slice(1),a=t[n];r.addEventListener(e,this,a)}}}_e.directive(yr);class bo extends yr{apply(t){if(!t)return;const{prevData:r,element:n}=this;for(const e in t){const a=t[e];if(a===r[e])continue;const s=e.slice(1);switch(e[0]){case"@":this.eventData[s]=a,this.applyEvent(s,a);break;case".":n[s]=a;break;case"?":a?n.setAttribute(s,""):n.removeAttribute(s);break;default:a!=null?n.setAttribute(e,String(a)):n.removeAttribute(e);break}}}groom(t){const{prevData:r,element:n}=this;if(r)for(const e in r){const a=e.slice(1);if(!t||!(e in t)&&n[a]===r[e])switch(e[0]){case"@":this.groomEvent(a,r[e]);break;case".":n[a]=void 0;break;case"?":n.removeAttribute(a);break;default:n.removeAttribute(e);break}}}}const H=_e.directive(bo);var yo=Object.defineProperty,wo=Object.getOwnPropertyDescriptor,Tt=(i,t,r,n)=>{for(var e=n>1?void 0:n?wo(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&yo(t,r,e),e};o.RtgInput=class extends h{constructor(){super(),this.disabled=!1,this.type="text",this.placeholder="",this.defaultValue="",this.value="",this.value=this.value||this.defaultValue}firstUpdated(t){this.removeParentAttributes();const r=["--input-border-radius","--input-padding"];this.applyCustomClass(r,"input","input-base"),this.type!=="file"&&this.defaultValue&&(this.value=this.defaultValue)}handleInputChange(t){const r=t.target;r.type==="file"?this.value=r.files?r.files[0].name:"":this.value=r.value}getAttributesToExclude(){return["disabled","type","placeholder","value","data-testid"]}getAttributesToRemoveFromParent(){return["class"]}createRenderRoot(){return this}render(){const t=this.getFilteredAttributes();return d.html`
|
|
2863
2863
|
<input
|
|
2864
2864
|
part="input"
|
|
2865
2865
|
type="${this.type}"
|
|
@@ -2867,12 +2867,12 @@ body {
|
|
|
2867
2867
|
?disabled=${this.disabled}
|
|
2868
2868
|
.value=${this.type!=="file"?this.value:""}
|
|
2869
2869
|
@change="${this.handleInputChange}"
|
|
2870
|
-
${H(
|
|
2870
|
+
${H(t)}
|
|
2871
2871
|
class="${p(vo,this.className)}"
|
|
2872
2872
|
/>
|
|
2873
|
-
`}},
|
|
2873
|
+
`}},Tt([l.property({type:Boolean})],o.RtgInput.prototype,"disabled",2),Tt([l.property({type:String})],o.RtgInput.prototype,"type",2),Tt([l.property({type:String})],o.RtgInput.prototype,"placeholder",2),Tt([l.property({type:String})],o.RtgInput.prototype,"defaultValue",2),Tt([l.property({type:String})],o.RtgInput.prototype,"value",2),o.RtgInput=Tt([l.customElement("rtg-input")],o.RtgInput);const wr=i=>typeof i=="boolean"?`${i}`:i===0?"0":i,Cr=lr,Z=(i,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Cr(i,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:e,defaultVariants:a}=t,s=Object.keys(e).map(b=>{const w=r==null?void 0:r[b],E=a==null?void 0:a[b];if(w===null)return null;const N=wr(w)||wr(E);return e[b][N]}),m=r&&Object.entries(r).reduce((b,w)=>{let[E,N]=w;return N===void 0||(b[E]=N),b},{}),C=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((b,w)=>{let{class:E,className:N,...F}=w;return Object.entries(F).every(L=>{let[z,P]=L;return Array.isArray(P)?P.includes({...a,...m}[z]):{...a,...m}[z]===P})?[...b,E,N]:b},[]);return Cr(i,s,C,r==null?void 0:r.class,r==null?void 0:r.className)},Co=Z("rtg-text-sm rtg-font-medium rtg-leading-none peer-disabled:rtg-cursor-not-allowed peer-disabled:rtg-opacity-70");var _o=Object.defineProperty,xo=Object.getOwnPropertyDescriptor,_r=(i,t,r,n)=>{for(var e=n>1?void 0:n?xo(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&_o(t,r,e),e};o.Label=class extends h{constructor(){super(...arguments),this.for=""}firstUpdated(t){const r=["--label-text-color","--label-padding"];this.applyCustomClass(r,"label","label-base")}getAttributesToExclude(){return["for","data-testid","class"]}createRenderRoot(){return this}render(){const t=this.getFilteredAttributes();return d.html`
|
|
2874
2874
|
<label
|
|
2875
|
-
${H(
|
|
2875
|
+
${H(t)}
|
|
2876
2876
|
part="label"
|
|
2877
2877
|
for="${this.for}"
|
|
2878
2878
|
class="${p(o.Label.labelVariants({className:this.className}),"label-base")}"
|
|
@@ -2880,7 +2880,7 @@ body {
|
|
|
2880
2880
|
<slot></slot>
|
|
2881
2881
|
<!-- Render children without comments -->
|
|
2882
2882
|
</label>
|
|
2883
|
-
`}},o.Label.labelVariants=
|
|
2883
|
+
`}},o.Label.labelVariants=Co,o.Label.styles=[d.css`
|
|
2884
2884
|
:root {
|
|
2885
2885
|
--label-text-color: inherit;
|
|
2886
2886
|
--label-padding: inherit;
|
|
@@ -2889,7 +2889,7 @@ body {
|
|
|
2889
2889
|
color: var(--label-text-color) !important;
|
|
2890
2890
|
padding: var(--label-padding) !important;
|
|
2891
2891
|
}
|
|
2892
|
-
`],
|
|
2892
|
+
`],_r([l.property({type:String})],o.Label.prototype,"for",2),o.Label=_r([l.customElement("rtg-label")],o.Label);const Eo="rtg-peer rtg-h-4 rtg-w-4 rtg-align-middle rtg-shrink-0 rtg-rounded-sm rtg-border rtg-border-primary rtg-ring-offset-background focus-visible:rtg-outline-none focus-visible:rtg-ring-2 focus-visible:rtg-ring-ring focus-visible:rtg-ring-offset-2 disabled:rtg-opacity-50 data-[state=checked]:rtg-bg-primary data-[state=checked]:rtg-text-primary-foreground",$o="rtg-flex rtg-items-center rtg-justify-center rtg-text-current rtg-pointer-events-none";var Oo=Object.defineProperty,So=Object.getOwnPropertyDescriptor,At=(i,t,r,n)=>{for(var e=n>1?void 0:n?So(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Oo(t,r,e),e};o.Checkbox=class extends d.LitElement{constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.type="text",this.value="",this.required=!1}_onClick(t){t.defaultPrevented||(this.checked=!this.checked,this.required=!this.required,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.checked=!this.checked,this.required=!this.required}createRenderRoot(){return this}render(){return d.html`
|
|
2893
2893
|
<button
|
|
2894
2894
|
part="checkbox"
|
|
2895
2895
|
data-testid="checkbox-atom"
|
|
@@ -2919,7 +2919,7 @@ body {
|
|
|
2919
2919
|
<polyline points="20 6 9 17 4 12"></polyline></svg
|
|
2920
2920
|
></span>`:d.nothing}
|
|
2921
2921
|
</button>
|
|
2922
|
-
`}},
|
|
2922
|
+
`}},At([l.property({type:Boolean})],o.Checkbox.prototype,"disabled",2),At([l.property({type:Boolean})],o.Checkbox.prototype,"checked",2),At([l.property({type:String})],o.Checkbox.prototype,"type",2),At([l.property({type:String})],o.Checkbox.prototype,"value",2),At([l.property({type:Boolean})],o.Checkbox.prototype,"required",2),o.Checkbox=At([l.customElement("rtg-checkbox")],o.Checkbox);const Po="rtg-relative rtg-flex rtg-h-10 rtg-w-10 rtg-shrink-0 rtg-overflow-hidden rtg-rounded-full",Do="rtg-aspect-square rtg-w-10 rtg-h-10 rtg-rounded-full",Ro="rtg-flex rtg-h-full rtg-w-full rtg-items-center rtg-justify-center rtg-rounded-full rtg-bg-muted";var ko=Object.getOwnPropertyDescriptor,Io=(i,t,r,n)=>{for(var e=n>1?void 0:n?ko(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.AvatarFallback=class extends d.LitElement{createRenderRoot(){return this}render(){return d.html`
|
|
2923
2923
|
<span
|
|
2924
2924
|
class="${p(Ro,this.className)}"
|
|
2925
2925
|
style="width:40px;height:40px"
|
|
@@ -2927,7 +2927,7 @@ body {
|
|
|
2927
2927
|
>
|
|
2928
2928
|
<slot></slot>
|
|
2929
2929
|
</span>
|
|
2930
|
-
`}},o.AvatarFallback=Io([l.customElement("rtg-avatar-fallback")],o.AvatarFallback);var To=Object.defineProperty,Ao=Object.getOwnPropertyDescriptor,
|
|
2930
|
+
`}},o.AvatarFallback=Io([l.customElement("rtg-avatar-fallback")],o.AvatarFallback);var To=Object.defineProperty,Ao=Object.getOwnPropertyDescriptor,Pe=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ao(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&To(t,r,e),e};o.AvatarImage=class extends d.LitElement{constructor(){super(...arguments),this.alt="@shadcn",this.src="https://github.com/shadcn.png"}createRenderRoot(){return this}render(){return d.html`
|
|
2931
2931
|
<img
|
|
2932
2932
|
class="${p(Do,this.className)}"
|
|
2933
2933
|
alt="${this.alt}"
|
|
@@ -2936,23 +2936,23 @@ body {
|
|
|
2936
2936
|
>
|
|
2937
2937
|
<slot></slot>
|
|
2938
2938
|
</img>
|
|
2939
|
-
`}},
|
|
2939
|
+
`}},Pe([l.property({type:String})],o.AvatarImage.prototype,"alt",2),Pe([l.property({type:String})],o.AvatarImage.prototype,"src",2),o.AvatarImage=Pe([l.customElement("rtg-avatar-image")],o.AvatarImage);var Lo=Object.getOwnPropertyDescriptor,Mo=(i,t,r,n)=>{for(var e=n>1?void 0:n?Lo(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.Avatar=class extends d.LitElement{createRenderRoot(){return this}render(){return d.html`
|
|
2940
2940
|
<span class="${p(Po,this.className)}" part="avatar">
|
|
2941
2941
|
<slot></slot>
|
|
2942
2942
|
</span>
|
|
2943
|
-
`}},o.Avatar=Mo([l.customElement("rtg-avatar")],o.Avatar);const No="rtg-relative rtg-w-full rtg-overflow-hidden rtg-bg-muted";var qo=Object.defineProperty,zo=Object.getOwnPropertyDescriptor,xr=(i,
|
|
2943
|
+
`}},o.Avatar=Mo([l.customElement("rtg-avatar")],o.Avatar);const No="rtg-relative rtg-w-full rtg-overflow-hidden rtg-bg-muted";var qo=Object.defineProperty,zo=Object.getOwnPropertyDescriptor,xr=(i,t,r,n)=>{for(var e=n>1?void 0:n?zo(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&qo(t,r,e),e};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 t=1/this.ratio*100;return d.html`
|
|
2944
2944
|
<div
|
|
2945
2945
|
class="${p(No,this.className)}"
|
|
2946
|
-
style="padding-top: ${
|
|
2946
|
+
style="padding-top: ${t}%;"
|
|
2947
2947
|
part="aspect-ratio"
|
|
2948
2948
|
>
|
|
2949
2949
|
<div class="rtg-absolute rtg-left-0 rtg-top-0 rtg-h-full rtg-w-full">
|
|
2950
2950
|
${this._children}
|
|
2951
2951
|
</div>
|
|
2952
2952
|
</div>
|
|
2953
|
-
`}},xr([l.property({type:Number})],o.AspectRatio.prototype,"ratio",2),o.AspectRatio=xr([l.customElement("rtg-aspect-ratio")],o.AspectRatio);const Bo=Z("rtg-inline-flex rtg-items-center rtg-border rtg-px-2.5 rtg-py-0.5 rtg-text-xs rtg-font-semibold rtg-transition-colors focus:rtg-outline-none focus:rtg-ring-2 focus:rtg-ring-ring focus:rtg-ring-offset-2 rtg-border-transparent rtg-rounded-full",{variants:{variant:{default:"rtg-bg-primary rtg-text-primary-foreground rtg-shadow hover:rtg-bg-primary/90",destructive:"rtg-bg-destructive rtg-text-destructive-foreground rtg-shadow-sm hover:rtg-bg-destructive/90",outline:"rtg-border rtg-border-input rtg-bg-background rtg-shadow-sm hover:rtg-bg-accent hover:rtg-text-accent-foreground",secondary:"rtg-bg-secondary rtg-text-secondary-foreground rtg-shadow-sm hover:rtg-bg-secondary/80",ghost:"hover:rtg-bg-accent hover:rtg-text-accent-foreground",link:"rtg-text-primary rtg-underline-offset-4 hover:rtg-underline"}},defaultVariants:{variant:"default"}});var Uo=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,
|
|
2953
|
+
`}},xr([l.property({type:Number})],o.AspectRatio.prototype,"ratio",2),o.AspectRatio=xr([l.customElement("rtg-aspect-ratio")],o.AspectRatio);const Bo=Z("rtg-inline-flex rtg-items-center rtg-border rtg-px-2.5 rtg-py-0.5 rtg-text-xs rtg-font-semibold rtg-transition-colors focus:rtg-outline-none focus:rtg-ring-2 focus:rtg-ring-ring focus:rtg-ring-offset-2 rtg-border-transparent rtg-rounded-full",{variants:{variant:{default:"rtg-bg-primary rtg-text-primary-foreground rtg-shadow hover:rtg-bg-primary/90",destructive:"rtg-bg-destructive rtg-text-destructive-foreground rtg-shadow-sm hover:rtg-bg-destructive/90",outline:"rtg-border rtg-border-input rtg-bg-background rtg-shadow-sm hover:rtg-bg-accent hover:rtg-text-accent-foreground",secondary:"rtg-bg-secondary rtg-text-secondary-foreground rtg-shadow-sm hover:rtg-bg-secondary/80",ghost:"hover:rtg-bg-accent hover:rtg-text-accent-foreground",link:"rtg-text-primary rtg-underline-offset-4 hover:rtg-underline"}},defaultVariants:{variant:"default"}});var Uo=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,De=(i,t,r,n)=>{for(var e=n>1?void 0:n?Fo(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Uo(t,r,e),e};o.Badge=class extends h{constructor(){super(...arguments),this.variant="default",this.id="rtg-badge-id",this._children=[]}getAttributesToExclude(){return["variant","data-testid"]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._children=Array.from(this.childNodes)}render(){const t=this.getFilteredAttributes();return d.html`
|
|
2954
2954
|
<div
|
|
2955
|
-
${H(
|
|
2955
|
+
${H(t)}
|
|
2956
2956
|
id="${this.id}"
|
|
2957
2957
|
part="badge"
|
|
2958
2958
|
data-testid="badge-content"
|
|
@@ -2960,23 +2960,23 @@ body {
|
|
|
2960
2960
|
>
|
|
2961
2961
|
${this._children}
|
|
2962
2962
|
</div>
|
|
2963
|
-
`}},o.Badge.badgeVariants=Bo,
|
|
2963
|
+
`}},o.Badge.badgeVariants=Bo,De([l.property({type:String})],o.Badge.prototype,"variant",2),De([l.property({type:String})],o.Badge.prototype,"id",2),o.Badge=De([l.customElement("rtg-badge")],o.Badge);const Er=Z("rtg-p-4 rtg-text-sm rtg-font-medium rtg-rounded-md rtg-border rtg-border-transparent",{variants:{variant:{success:"rtg-bg-green-100 rtg-text-green-800 rtg-border-green-200",error:"rtg-bg-red-100 rtg-text-red-800 rtg-border-red-200",warning:"rtg-bg-yellow-100 rtg-text-yellow-800 rtg-border-yellow-200",info:"rtg-bg-blue-100 rtg-text-blue-800 rtg-border-blue-200"},size:{small:"rtg-text-sm",default:"rtg-text-base",large:"rtg-text-xl"}},defaultVariants:{variant:"info",size:"default"}});var Go=Object.defineProperty,Vo=Object.getOwnPropertyDescriptor,Kt=(i,t,r,n)=>{for(var e=n>1?void 0:n?Vo(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Go(t,r,e),e};o.Alert=class extends d.LitElement{constructor(){super(...arguments),this.title="",this.message="",this.variant="info",this.size="default"}createRenderRoot(){return this}get alertClasses(){return Er({variant:this.variant,size:this.size})}render(){return d.html`
|
|
2964
2964
|
<div class="${p(this.alertClasses,this.className)}" role="alert">
|
|
2965
2965
|
${this.title?d.html`<div class="rtg-mb-2 rtg-font-bold" part="alert-title">
|
|
2966
2966
|
${this.title}
|
|
2967
2967
|
</div>`:""}
|
|
2968
2968
|
${this.message?d.html`<div part="alert-description">${this.message}</div>`:""}
|
|
2969
2969
|
</div>
|
|
2970
|
-
`}},o.Alert.alertVariants=Er,
|
|
2970
|
+
`}},o.Alert.alertVariants=Er,Kt([l.property({type:String})],o.Alert.prototype,"title",2),Kt([l.property({type:String})],o.Alert.prototype,"message",2),Kt([l.property({type:String})],o.Alert.prototype,"variant",2),Kt([l.property({type:String})],o.Alert.prototype,"size",2),o.Alert=Kt([l.customElement("rtg-alert")],o.Alert);const Ho=Z("rtg-inline-flex rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-sm rtg-text-sm rtg-font-medium rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-1 focus-visible:rtg-ring-ring disabled:rtg-pointer-events-none disabled:rtg-opacity-50",{variants:{variant:{outline:"rtg-border rtg-border-input rtg-bg-transparent rtg-shadow-sm hover:rtg-bg-accent hover:rtg-text-accent-foreground"},size:{default:"rtg-h-7 rtg-w-7 rtg-p-0"}},defaultVariants:{variant:"outline",size:"default"}}),Yo=Z("rtg-inline-flex rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-md rtg-text-sm rtg-font-medium rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-1 focus-visible:rtg-ring-ring disabled:rtg-pointer-events-none disabled:rtg-opacity-50",{variants:{variant:{default:"rtg-bg-primary rtg-text-primary-foreground rtg-shadow hover:rtg-bg-primary/90",destructive:"rtg-bg-destructive rtg-text-destructive-foreground rtg-shadow-sm hover:rtg-bg-destructive/90",outline:"rtg-border rtg-border-input rtg-bg-background rtg-shadow-sm hover:rtg-bg-accent hover:rtg-text-accent-foreground",secondary:"rtg-bg-secondary rtg-text-secondary-foreground rtg-shadow-sm hover:rtg-bg-secondary/80",ghost:"hover:rtg-bg-accent hover:rtg-text-accent-foreground",link:"rtg-text-primary rtg-underline-offset-4 hover:rtg-underline"},size:{default:"rtg-h-8 rtg-rounded-md rtg-px-4 rtg-py-2",sm:"rtg-h-7 rtg-rounded-sm rtg-px-3 rtg-text-xs",lg:"rtg-h-9 rtg-rounded-md rtg-px-8",icon:"rtg-h-8 rtg-w-8"}},defaultVariants:{variant:"default",size:"default"}});var jo=Object.defineProperty,Wo=Object.getOwnPropertyDescriptor,Ct=(i,t,r,n)=>{for(var e=n>1?void 0:n?Wo(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&jo(t,r,e),e};o.Button=class extends h{constructor(){super(...arguments),this.click=()=>{},this.disabled=!1,this.type="button",this.variant="default",this.size="default"}handleClick(){this.disabled||this.click()}createRenderRoot(){return this}getAttributesToExclude(){return["click","disabled","type","variant","size","data-testid","custom-class"]}getAttributesToRemoveFromParent(){return["class"]}firstUpdated(){this.moveLightDomChildrenInto(this.buttonElement),this.removeParentAttributes()}render(){const t=this.getFilteredAttributes();return d.html`
|
|
2971
2971
|
<button
|
|
2972
2972
|
part="button"
|
|
2973
2973
|
type="${this.type}"
|
|
2974
|
-
${H(
|
|
2974
|
+
${H(t)}
|
|
2975
2975
|
?disabled="${this.disabled}"
|
|
2976
|
-
class="${p(o.Button.buttonVariants({variant:this.variant,size:this.size,className:this.
|
|
2976
|
+
class="${p(o.Button.buttonVariants({variant:this.variant,size:this.size,className:this.customClass}))}"
|
|
2977
2977
|
@click="${this.handleClick}"
|
|
2978
2978
|
></button>
|
|
2979
|
-
`}},o.Button.buttonVariants=Yo,
|
|
2979
|
+
`}},o.Button.buttonVariants=Yo,Ct([l.property({type:Function})],o.Button.prototype,"click",2),Ct([l.property({type:Boolean})],o.Button.prototype,"disabled",2),Ct([l.property({type:String})],o.Button.prototype,"type",2),Ct([l.property({type:String})],o.Button.prototype,"variant",2),Ct([l.property({type:String})],o.Button.prototype,"size",2),Ct([l.query("button")],o.Button.prototype,"buttonElement",2),o.Button=Ct([l.customElement("rtg-button")],o.Button);var Xo=Object.defineProperty,Ko=Object.getOwnPropertyDescriptor,mt=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ko(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Xo(t,r,e),e};o.Calendar=class extends d.LitElement{constructor(){super(...arguments),this.currentDate=new Date,this.selectedStartDate=null,this.selectedEndDate=null,this.variant="outline",this.size="default",this.styleCalendar=!1,this.mode="single"}getDaysInMonth(t,r){return new Date(t,r+1,0).getDate()}previousMonth(){this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth()-1)}nextMonth(){this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth()+1)}selectDate(t,r){if(!r){const n=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth(),t);n.getMonth()===this.currentDate.getMonth()&&(this.mode==="single"?(this.selectedStartDate=n,this.selectedEndDate=null):this.mode==="range"&&(!this.selectedStartDate||this.selectedEndDate?(this.selectedStartDate=n,this.selectedEndDate=null):n>=this.selectedStartDate?this.selectedEndDate=n:(this.selectedEndDate=this.selectedStartDate,this.selectedStartDate=n)),this.dispatchEvent(new CustomEvent("date-selected",{detail:{startDate:this.selectedStartDate,endDate:this.selectedEndDate},bubbles:!0,composed:!0})))}}isDayInRange(t){return!this.selectedStartDate||!this.selectedEndDate||t.getMonth()!==this.currentDate.getMonth()?!1:t>=this.selectedStartDate&&t<=this.selectedEndDate}createRenderRoot(){return this}render(){const t=this.currentDate.getFullYear(),r=this.currentDate.getMonth(),n=this.getDaysInMonth(t,r),e=new Date(t,r,1).getDay(),a=new Date(t,r,0).getDate();let s=Array.from({length:e},(m,C)=>({day:(a-(e-1)+C).toString(),isInactive:!0,isCurrentMonth:!1}));return s=s.concat(Array.from({length:n},(m,C)=>({day:(C+1).toString(),isInactive:!1,isCurrentMonth:!0}))),d.html`
|
|
2980
2980
|
<div
|
|
2981
2981
|
part="calendar"
|
|
2982
2982
|
style="
|
|
@@ -3061,9 +3061,9 @@ body {
|
|
|
3061
3061
|
</tr>
|
|
3062
3062
|
</thead>
|
|
3063
3063
|
<tbody class="rdp-tbody">
|
|
3064
|
-
${Array.from({length:Math.ceil(s.length/7)},(m,
|
|
3064
|
+
${Array.from({length:Math.ceil(s.length/7)},(m,C)=>d.html`
|
|
3065
3065
|
<tr class="rtg-mt-2 rtg-flex rtg-w-full">
|
|
3066
|
-
${s.slice(
|
|
3066
|
+
${s.slice(C*7,(C+1)*7).map(b=>{const w=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth(),Number(b.day)),E=this.selectedStartDate&&w.toDateString()===this.selectedStartDate.toDateString(),N=this.selectedEndDate&&w.toDateString()===this.selectedEndDate.toDateString(),F=this.isDayInRange(w);return d.html`
|
|
3067
3067
|
<td
|
|
3068
3068
|
class="${p("rtg-relative rtg-p-0 rtg-text-center rtg-text-sm focus-within:rtg-relative focus-within:rtg-z-20",E&&b.isCurrentMonth&&"day-range-start",N&&b.isCurrentMonth&&"day-range-end",F&&b.isCurrentMonth&&"day-in-range bg-muted")}"
|
|
3069
3069
|
role="presentation"
|
|
@@ -3135,26 +3135,26 @@ body {
|
|
|
3135
3135
|
.text-day {
|
|
3136
3136
|
font-size: 0.8rem;
|
|
3137
3137
|
}
|
|
3138
|
-
`],o.Calendar.buttonVariants=Ho,
|
|
3138
|
+
`],o.Calendar.buttonVariants=Ho,mt([l.property({type:Object})],o.Calendar.prototype,"currentDate",2),mt([l.property({type:Object})],o.Calendar.prototype,"selectedStartDate",2),mt([l.property({type:Object})],o.Calendar.prototype,"selectedEndDate",2),mt([l.property({type:String})],o.Calendar.prototype,"variant",2),mt([l.property({type:String})],o.Calendar.prototype,"size",2),mt([l.property({type:Boolean})],o.Calendar.prototype,"styleCalendar",2),mt([l.property({type:String})],o.Calendar.prototype,"mode",2),o.Calendar=mt([l.customElement("rtg-calendar")],o.Calendar);const Qo=Z("rtg-absolute rtg-z-50 rtg-rounded-md rtg-p-4 rtg-text-popover-foreground rtg-outline-none rtg-transition-transform rtg-transition-opacity",{variants:{state:{open:"rtg-opacity-100 rtg-scale-100 rtg-duration-500",closed:"rtg-opacity-0 rtg-scale-95 rtg-duration-500"},side:{bottom:"rtg-translate-y-0",left:"rtg-translate-x-0",right:"rtg-translate-x-0",top:"rtg-translate-y-0"},styleContent:{true:"rtg-w-72 rtg-border rtg-bg-popover rtg-shadow-md",false:""}},defaultVariants:{state:"closed",side:"bottom"}}),Zo=Z("absolute",{variants:{state:{open:"rtg-opacity-100 rtg-scale-100 rtg-duration-500",closed:"rtg-opacity-0 rtg-scale-95 rtg-duration-500"},side:{bottom:"rtg-translate-y-0",left:"rtg-translate-x-0",right:"rtg-translate-x-0",top:"rtg-translate-y-0"}},defaultVariants:{state:"closed",side:"bottom"}});var Jo=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,Qt=(i,t,r,n)=>{for(var e=n>1?void 0:n?ti(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Jo(t,r,e),e};o.PopoverContent=class extends h{constructor(){super(...arguments),this.enableDefaultStyle=!0,this.styleContent=!0,this.side="bottom",this.isOpen=!1}get _popover(){let t=this.parentElement;for(;t&&!(t instanceof o.Popover);)t=t.parentElement;return t}get _containerElement(){return this.querySelector("div[part=popover-content]")}handleClickOutside(t){const r=this._popover;r&&!r.contains(t.target)&&(r.isOpen=!1)}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement),window.addEventListener("click",this.handleClickOutside.bind(this))}updated(t){var r;(r=this._popover)!=null&&r.isOpen||window.removeEventListener("click",this.handleClickOutside.bind(this))}preventClickPropagation(t){t.stopPropagation()}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}render(){var r;(r=this._popover)!=null&&r.isOpen?this.removeAttribute("hidden"):this.setAttribute("hidden","true");const t=this.enableDefaultStyle?Qo({state:"open",side:this.side,styleContent:this.styleContent}):Zo({state:"open",side:this.side});return d.html`
|
|
3139
3139
|
<div
|
|
3140
3140
|
@click="${this.preventClickPropagation}"
|
|
3141
3141
|
part="popover-content"
|
|
3142
|
-
class="${p(
|
|
3142
|
+
class="${p(t)}"
|
|
3143
3143
|
style="top:36px"
|
|
3144
3144
|
></div>
|
|
3145
|
-
`}},
|
|
3145
|
+
`}},Qt([l.property({type:Boolean})],o.PopoverContent.prototype,"enableDefaultStyle",2),Qt([l.property({type:Boolean})],o.PopoverContent.prototype,"styleContent",2),Qt([l.property({type:String})],o.PopoverContent.prototype,"side",2),Qt([l.state()],o.PopoverContent.prototype,"isOpen",2),o.PopoverContent=Qt([l.customElement("rtg-popover-content")],o.PopoverContent);var ei=Object.getOwnPropertyDescriptor,ri=(i,t,r,n)=>{for(var e=n>1?void 0:n?ei(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.PopoverTrigger=class extends h{constructor(){super(...arguments),this.handleClick=()=>{const t=this._popover;t&&(t.isOpen=!t.isOpen)}}get _popover(){let t=this.parentElement;for(;t&&!(t instanceof o.Popover);)t=t.parentElement;return t}get _containerElement(){return this.querySelector("div[part=popover-trigger]")}firstUpdated(t){super.firstUpdated(t),this.moveLightDomChildrenInto(this._containerElement),this.addEventListener("click",r=>{this.handleClick(),r.stopPropagation()})}createRenderRoot(){return this}getAttributesToExclude(){return["data-testid"]}render(){return d.html`
|
|
3146
3146
|
<div
|
|
3147
3147
|
class="${p("",this.className)}"
|
|
3148
3148
|
part="popover-trigger"
|
|
3149
3149
|
style="width: fit-content;"
|
|
3150
3150
|
></div>
|
|
3151
|
-
`}},o.PopoverTrigger=ri([l.customElement("rtg-popover-trigger")],o.PopoverTrigger);var ni=Object.defineProperty,oi=Object.getOwnPropertyDescriptor,$r=(i,
|
|
3151
|
+
`}},o.PopoverTrigger=ri([l.customElement("rtg-popover-trigger")],o.PopoverTrigger);var ni=Object.defineProperty,oi=Object.getOwnPropertyDescriptor,$r=(i,t,r,n)=>{for(var e=n>1?void 0:n?oi(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&ni(t,r,e),e};o.Popover=class extends h{constructor(){super(...arguments),this.isOpen=!1}get _containerElement(){return this.querySelector("div[part=popover]")}get _contentElement(){return this.querySelector("rtg-popover-content")}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}updated(t){this._contentElement.isOpen=this.isOpen,this._contentElement.requestUpdate()}render(){return d.html`
|
|
3152
3152
|
<div
|
|
3153
3153
|
class="${p("",this.className)}"
|
|
3154
3154
|
part="popover"
|
|
3155
3155
|
style="position:relative"
|
|
3156
3156
|
></div>
|
|
3157
|
-
`}},$r([l.state()],o.Popover.prototype,"isOpen",2),o.Popover=$r([l.customElement("rtg-popover")],o.Popover);var ii=Object.defineProperty,ai=Object.getOwnPropertyDescriptor,Or=(i,
|
|
3157
|
+
`}},$r([l.state()],o.Popover.prototype,"isOpen",2),o.Popover=$r([l.customElement("rtg-popover")],o.Popover);var ii=Object.defineProperty,ai=Object.getOwnPropertyDescriptor,Or=(i,t,r,n)=>{for(var e=n>1?void 0:n?ai(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&ii(t,r,e),e};o.DatePicker=class extends d.LitElement{constructor(){super(...arguments),this.selectedDate=null}handleDateSelected(t){this.selectedDate=t.detail.startDate,this.requestUpdate()}createRenderRoot(){return this}render(){return d.html`
|
|
3158
3158
|
<div
|
|
3159
3159
|
part="date-picker"
|
|
3160
3160
|
class="${p("",this.className)}"
|
|
@@ -3186,7 +3186,7 @@ body {
|
|
|
3186
3186
|
<path d="M3 10h18"></path>
|
|
3187
3187
|
</svg>
|
|
3188
3188
|
<span style="margin-left:8px">
|
|
3189
|
-
${this.selectedDate?this.selectedDate.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}).replace(/(\d+)/,(
|
|
3189
|
+
${this.selectedDate?this.selectedDate.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}).replace(/(\d+)/,(t,r)=>{const n=parseInt(r,10);return n+(n>3?"th":["st","nd","rd"][n-1]||"th")}):"Pick a date"}
|
|
3190
3190
|
</span>
|
|
3191
3191
|
</rtg-button>
|
|
3192
3192
|
</rtg-popover-trigger>
|
|
@@ -3205,9 +3205,9 @@ body {
|
|
|
3205
3205
|
</rtg-popover-content>
|
|
3206
3206
|
</rtg-popover>
|
|
3207
3207
|
</div>
|
|
3208
|
-
`}},Or([l.property({type:Object})],o.DatePicker.prototype,"selectedDate",2),o.DatePicker=Or([l.customElement("rtg-date-picker")],o.DatePicker);var
|
|
3208
|
+
`}},Or([l.property({type:Object})],o.DatePicker.prototype,"selectedDate",2),o.DatePicker=Or([l.customElement("rtg-date-picker")],o.DatePicker);var _t=(i=>(i.MULTIPLE="multiple",i.SINGLE="single",i))(_t||{}),si=Object.defineProperty,li=Object.getOwnPropertyDescriptor,Re=(i,t,r,n)=>{for(var e=n>1?void 0:n?li(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&si(t,r,e),e};o.AccordionItem=class extends h{constructor(){super(...arguments),this.value="",this.tabindex=0,this._initialChildren=[],this._onClick=t=>{const r=t.target.closest("rtg-accordion-trigger");!r||!this._accordion||(t.preventDefault(),t.stopPropagation(),this._accordion.raiseEvent(this.value),r.requestUpdate(),setTimeout(()=>this.requestUpdate(),0))},this._onAccordionClick=()=>{this.requestUpdate()}}get _accordion(){let t=this.parentElement;for(;t&&!(t instanceof o.Accordion);)t=t.parentElement;return t}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}createRenderRoot(){return this}connectedCallback(){var t;super.connectedCallback(),this._initialChildren=this.filterChildren(),this.addEventListener("click",this._onClick),(t=this._accordion)==null||t.addEventListener("clicked-accordion",this._onAccordionClick)}disconnectedCallback(){var t;super.disconnectedCallback(),this.removeEventListener("click",this._onClick),(t=this._accordion)==null||t.removeEventListener("clicked-accordion",this._onAccordionClick)}filterChildren(){return Array.from(this.children).filter(t=>t instanceof o.AccordionTrigger||t instanceof o.AccordionContent)}render(){var n;const t=(n=this._accordion)==null?void 0:n.selectedItems.includes(this.value),r=this._initialChildren.length?this._initialChildren:this.filterChildren();return d.html`
|
|
3209
3209
|
<div
|
|
3210
|
-
data-state=${
|
|
3210
|
+
data-state=${t?"open":"closed"}
|
|
3211
3211
|
class="${p("rtg-w-full rtg-border-b",this.className)}"
|
|
3212
3212
|
value=${this.value}
|
|
3213
3213
|
role="tablist"
|
|
@@ -3216,7 +3216,7 @@ body {
|
|
|
3216
3216
|
>
|
|
3217
3217
|
${r}
|
|
3218
3218
|
</div>
|
|
3219
|
-
`}},
|
|
3219
|
+
`}},Re([l.property({type:String})],o.AccordionItem.prototype,"value",2),Re([l.property({type:Number})],o.AccordionItem.prototype,"tabindex",2),o.AccordionItem=Re([l.customElement("rtg-accordion-item")],o.AccordionItem);function ci(){return d.svg` <svg
|
|
3220
3220
|
class="shrink-0 size-3.5 text-gray-500 dark:text-neutral-500"
|
|
3221
3221
|
xmlns="http://www.w3.org/2000/svg"
|
|
3222
3222
|
width="24"
|
|
@@ -3260,7 +3260,7 @@ body {
|
|
|
3260
3260
|
<circle cx="11" cy = "11" r = "8" > </circle>
|
|
3261
3261
|
<path d="m21 21-4.3-4.3"></path >
|
|
3262
3262
|
</svg>
|
|
3263
|
-
`}function
|
|
3263
|
+
`}function ke(){return d.svg` <svg
|
|
3264
3264
|
xmlns="http://www.w3.org/2000/svg"
|
|
3265
3265
|
width="24"
|
|
3266
3266
|
height="24"
|
|
@@ -3338,15 +3338,15 @@ body {
|
|
|
3338
3338
|
<path d="M5 12h14"></path>
|
|
3339
3339
|
<path d="m12 5 7 7-7 7"></path>
|
|
3340
3340
|
</svg>
|
|
3341
|
-
`}var fi=Object.getOwnPropertyDescriptor,vi=(i,
|
|
3341
|
+
`}var fi=Object.getOwnPropertyDescriptor,vi=(i,t,r,n)=>{for(var e=n>1?void 0:n?fi(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.AccordionTrigger=class extends h{get _item(){let t=this.parentElement;for(;t&&!(t instanceof o.AccordionItem);)t=t.parentElement;return t}get _accordion(){let t=this.parentElement;for(;t&&!(t instanceof o.Accordion);)t=t.parentElement;return t}getAttributesToExclude(){return["value","defaultValue"]}createRenderRoot(){return this}firstUpdated(t){this.removeDuplicateContent()}hasActiveState(){var t,r;return!!((t=this._item)!=null&&t.value)&&!!((r=this._accordion)!=null&&r.selectedItems.includes(this._item.value))}render(){var r;const t=this.hasActiveState();return d.html`
|
|
3342
3342
|
<button
|
|
3343
3343
|
type="button"
|
|
3344
3344
|
part="accordion-trigger"
|
|
3345
3345
|
role="tab"
|
|
3346
3346
|
value=${((r=this._item)==null?void 0:r.value)||""}
|
|
3347
|
-
aria-selected=${
|
|
3348
|
-
aria-expanded=${
|
|
3349
|
-
data-state=${
|
|
3347
|
+
aria-selected=${t}
|
|
3348
|
+
aria-expanded=${t}
|
|
3349
|
+
data-state=${t?"open":"closed"}
|
|
3350
3350
|
class="${p("rtg-flex rtg-w-full rtg-flex-1 rtg-items-center rtg-justify-between rtg-py-4 rtg-text-sm rtg-font-medium rtg-transition-all hover:rtg-underline [&[data-state=open]>svg]:rtg-rotate-180",this.className)}"
|
|
3351
3351
|
tabindex="-1"
|
|
3352
3352
|
data-orientation="horizontal"
|
|
@@ -3354,13 +3354,13 @@ body {
|
|
|
3354
3354
|
>
|
|
3355
3355
|
${ar.unsafeHTML(this.textContent||"")}${Pr()}
|
|
3356
3356
|
</button>
|
|
3357
|
-
`}},o.AccordionTrigger=vi([l.customElement("rtg-accordion-trigger")],o.AccordionTrigger);var bi=Object.getOwnPropertyDescriptor,yi=(i,
|
|
3357
|
+
`}},o.AccordionTrigger=vi([l.customElement("rtg-accordion-trigger")],o.AccordionTrigger);var bi=Object.getOwnPropertyDescriptor,yi=(i,t,r,n)=>{for(var e=n>1?void 0:n?bi(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.AccordionContent=class extends h{constructor(){super(...arguments),this._onAccordionClick=()=>{this.requestUpdate()}}get _accordion(){let t=this.parentElement;for(;t&&!(t instanceof o.Accordion);)t=t.parentElement;return t}get _item(){let t=this.parentElement;for(;t&&!(t instanceof o.AccordionItem);)t=t.parentElement;return t}getAttributesToExclude(){return[]}createRenderRoot(){return this}connectedCallback(){var t;super.connectedCallback(),(t=this._accordion)==null||t.addEventListener("clicked-accordion",this._onAccordionClick)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._accordion)==null||t.removeEventListener("clicked-accordion",this._onAccordionClick)}firstUpdated(t){this.removeDuplicateContent()}hasActiveState(){var t,r;return!!((t=this._item)!=null&&t.value)&&!!((r=this._accordion)!=null&&r.selectedItems.includes(this._item.value))}render(){var r;const t=this.hasActiveState();return d.html`
|
|
3358
3358
|
<div
|
|
3359
3359
|
part="accordion-content"
|
|
3360
3360
|
role="region"
|
|
3361
|
-
data-state=${
|
|
3361
|
+
data-state=${t?"open":"closed"}
|
|
3362
3362
|
data-orientation="vertical"
|
|
3363
|
-
class="${p(
|
|
3363
|
+
class="${p(t?"rtg-opacity-100 rtg-max-h-[var(--radix-accordion-content-height)]":"rtg-opacity-0 rtg-max-h-0 closed-rtg-hidden","rtg-overflow-hidden rtg-text-sm rtg-transition-all",this.className)}"
|
|
3364
3364
|
style=${`
|
|
3365
3365
|
--radix-accordion-content-height: 36px;
|
|
3366
3366
|
--radix-collapsible-content-height: 36px;
|
|
@@ -3373,16 +3373,16 @@ body {
|
|
|
3373
3373
|
${ar.unsafeHTML(((r=this.textContent)==null?void 0:r.trim())||"")}
|
|
3374
3374
|
</div>
|
|
3375
3375
|
</div>
|
|
3376
|
-
`}},o.AccordionContent=yi([l.customElement("rtg-accordion-content")],o.AccordionContent);var wi=Object.defineProperty,
|
|
3376
|
+
`}},o.AccordionContent=yi([l.customElement("rtg-accordion-content")],o.AccordionContent);var wi=Object.defineProperty,Ci=Object.getOwnPropertyDescriptor,Dr=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ci(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&wi(t,r,e),e};o.Accordion=class extends h{constructor(){super(...arguments),this.type=_t.MULTIPLE,this.selectedItems=[],this._initialChildren=[]}getAttributesToExclude(){return["variant","data-testid"]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._initialChildren=Array.from(this.children).filter(t=>t instanceof o.AccordionItem)}willUpdate(t){t.has("type")&&(this.type===_t.SINGLE&&this.selectedItems.length>1&&(this.selectedItems=this.selectedItems.slice(0,1)),this._initialChildren.forEach(r=>{r instanceof o.AccordionItem&&r.requestUpdate()}))}updated(t){t.has("type")&&this._initialChildren.forEach(r=>{r instanceof o.AccordionItem&&r.requestUpdate()})}setSelectedItems(t){const r=this.selectedItems.indexOf(t);if(r>-1)if(this.type===_t.SINGLE)this.selectedItems=[];else if(this.type===_t.MULTIPLE)this.selectedItems.splice(r,1);else throw new Error("Invalid accordion type");else if(this.type===_t.SINGLE)this.selectedItems=[t];else if(this.type===_t.MULTIPLE)this.selectedItems.push(t);else throw new Error("Invalid accordion type")}raiseEvent(t){this.setSelectedItems(t),this.dispatchEvent(new CustomEvent("clicked-accordion",{bubbles:!0,composed:!0,detail:{selectedItems:this.selectedItems}}))}render(){const t=this._initialChildren.length?this._initialChildren:Array.from(this.children).filter(r=>r instanceof o.AccordionItem);return d.html`
|
|
3377
3377
|
<div
|
|
3378
3378
|
data-orientation="vertical"
|
|
3379
3379
|
${H(this.getFilteredAttributes())}
|
|
3380
3380
|
part="accordion"
|
|
3381
3381
|
class="${p("rtg-w-full",this.className)}"
|
|
3382
3382
|
>
|
|
3383
|
-
${
|
|
3383
|
+
${t}
|
|
3384
3384
|
</div>
|
|
3385
|
-
`}},Dr([l.property({type:String})],o.Accordion.prototype,"type",2),o.Accordion=Dr([l.customElement("rtg-accordion")],o.Accordion);const
|
|
3385
|
+
`}},Dr([l.property({type:String})],o.Accordion.prototype,"type",2),o.Accordion=Dr([l.customElement("rtg-accordion")],o.Accordion);const _i="rtg-relative rtg-h-2 rtg-overflow-hidden rtg-rounded-full rtg-w-[100%]";var xi=Object.defineProperty,Ei=Object.getOwnPropertyDescriptor,Rr=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ei(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&xi(t,r,e),e};o.Progress=class extends d.LitElement{constructor(){super(...arguments),this.value=15}createRenderRoot(){return this}render(){return d.html`
|
|
3386
3386
|
<div
|
|
3387
3387
|
part="progress"
|
|
3388
3388
|
aria-valuenow="${this.value}"
|
|
@@ -3391,7 +3391,7 @@ body {
|
|
|
3391
3391
|
role="progressbar"
|
|
3392
3392
|
data-state="indeterminate"
|
|
3393
3393
|
data-max="100"
|
|
3394
|
-
class="${p(
|
|
3394
|
+
class="${p(_i,this.className)}"
|
|
3395
3395
|
style="background-color:#ccc;"
|
|
3396
3396
|
>
|
|
3397
3397
|
<div
|
|
@@ -3406,11 +3406,11 @@ body {
|
|
|
3406
3406
|
height: 100%;
|
|
3407
3407
|
transition: width 0.5s ease-in-out;
|
|
3408
3408
|
}
|
|
3409
|
-
`],Rr([l.property({type:Number})],o.Progress.prototype,"value",2),o.Progress=Rr([l.customElement("rtg-progress")],o.Progress);var $i=Object.getOwnPropertyDescriptor,Oi=(i,
|
|
3409
|
+
`],Rr([l.property({type:Number})],o.Progress.prototype,"value",2),o.Progress=Rr([l.customElement("rtg-progress")],o.Progress);var $i=Object.getOwnPropertyDescriptor,Oi=(i,t,r,n)=>{for(var e=n>1?void 0:n?$i(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.CardTitle=class extends d.LitElement{createRenderRoot(){return this}render(){return d.html` <slot part="card-title"></slot> `}},o.CardTitle=Oi([l.customElement("rtg-card-title")],o.CardTitle);var Si=Object.getOwnPropertyDescriptor,Pi=(i,t,r,n)=>{for(var e=n>1?void 0:n?Si(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.CardHeader=class extends d.LitElement{createRenderRoot(){return this}render(){return d.html` <slot part="card-header"></slot> `}},o.CardHeader=Pi([l.customElement("rtg-card-header")],o.CardHeader);var Di=Object.getOwnPropertyDescriptor,Ri=(i,t,r,n)=>{for(var e=n>1?void 0:n?Di(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.CardFooter=class extends d.LitElement{createRenderRoot(){return this}render(){return d.html` <slot part="card-footer"></slot> `}},o.CardFooter=Ri([l.customElement("rtg-card-footer")],o.CardFooter);var ki=Object.getOwnPropertyDescriptor,Ii=(i,t,r,n)=>{for(var e=n>1?void 0:n?ki(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.CardDescription=class extends d.LitElement{createRenderRoot(){return this}render(){return d.html` <slot part="card-description"></slot> `}},o.CardDescription=Ii([l.customElement("rtg-card-description")],o.CardDescription);var Ti=Object.getOwnPropertyDescriptor,Ai=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ti(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.CardContent=class extends d.LitElement{createRenderRoot(){return this}render(){return d.html` <slot part="card-content"></slot> `}},o.CardContent=Ai([l.customElement("rtg-card-content")],o.CardContent);const Li="rtg-rounded-lg rtg-border rtg-bg-card rtg-p-6 rtg-text-card-foreground rtg-shadow-sm";var Mi=Object.defineProperty,Ni=Object.getOwnPropertyDescriptor,kr=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ni(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Mi(t,r,e),e};o.Card=class extends h{createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(t){this.moveLightDomChildrenInto(this.wrapperDivElement)}render(){return d.html`<div
|
|
3410
3410
|
part="card"
|
|
3411
3411
|
class=${p(Li,this.className)}
|
|
3412
3412
|
id="rtg-card-id"
|
|
3413
|
-
></div>`}},kr([l.query("#rtg-card-id")],o.Card.prototype,"wrapperDivElement",2),o.Card=kr([l.customElement("rtg-card")],o.Card);var qi=Object.defineProperty,zi=Object.getOwnPropertyDescriptor,
|
|
3413
|
+
></div>`}},kr([l.query("#rtg-card-id")],o.Card.prototype,"wrapperDivElement",2),o.Card=kr([l.customElement("rtg-card")],o.Card);var qi=Object.defineProperty,zi=Object.getOwnPropertyDescriptor,Lt=(i,t,r,n)=>{for(var e=n>1?void 0:n?zi(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&qi(t,r,e),e};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 t=this.querySelector(".slides");if(t)for(let r=0;r<this.items.length;r++){const n=`slide-${r}`,e=this.querySelector(`[slot="${n}"]`);if(e&&e.parentElement!==t){const a=document.createElement("div");a.className=this.getSlideClasses(),t.appendChild(a),a.appendChild(e)}}}getSlideClasses(){let t="rtg-min-w-0 rtg-flex-shrink-0 rtg-flex-grow-0 rtg-transition-transform rtg-duration-500 rtg-p-1";return this.size?`${t} 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`:`${t} 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 t;this.size?window.innerWidth>=1024?t=33.3333:window.innerWidth>=768?t=50:t=100:t=100;const r=this.orientation==="vertical"?100/this.items.length:100;this.slides&&(this.slides.style.transform=this.orientation==="horizontal"?`translateX(-${this.currentIndex*t}%)`:`translateY(-${this.currentIndex*r}%)`)}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.handleResize)}render(){const t=this.currentIndex===0,r=this.size?window.innerWidth>=1024?3:window.innerWidth>=768?2:1:1,n=this.currentIndex>=this.items.length-r,e=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`
|
|
3414
3414
|
<div
|
|
3415
3415
|
part="rtg-carousel"
|
|
3416
3416
|
class="${p("rtg-relative rtg-mx-auto rtg-h-full rtg-w-full",this.className)}"
|
|
@@ -3420,12 +3420,12 @@ body {
|
|
|
3420
3420
|
<div
|
|
3421
3421
|
class="${p("rtg-w-full rtg-h-full rtg-overflow-hidden",this.className)}"
|
|
3422
3422
|
>
|
|
3423
|
-
<div class="slides ${
|
|
3423
|
+
<div class="slides ${e}"></div>
|
|
3424
3424
|
|
|
3425
3425
|
<div class="${a}">
|
|
3426
3426
|
<button
|
|
3427
3427
|
@click="${this.prevSlide}"
|
|
3428
|
-
?disabled="${
|
|
3428
|
+
?disabled="${t}"
|
|
3429
3429
|
class="${s}"
|
|
3430
3430
|
>
|
|
3431
3431
|
${hi()}
|
|
@@ -3440,7 +3440,7 @@ body {
|
|
|
3440
3440
|
</div>
|
|
3441
3441
|
</div>
|
|
3442
3442
|
</div>
|
|
3443
|
-
`}},
|
|
3443
|
+
`}},Lt([l.property({type:Number})],o.Carousel.prototype,"currentIndex",2),Lt([l.property({type:Array})],o.Carousel.prototype,"items",2),Lt([l.property({type:String})],o.Carousel.prototype,"orientation",2),Lt([l.property({type:Boolean})],o.Carousel.prototype,"size",2),Lt([l.query(".slides")],o.Carousel.prototype,"slides",2),o.Carousel=Lt([l.customElement("rtg-carousel")],o.Carousel);const Bi="rtg-py-6 rtg-text-center rtg-text-sm",Ui="rtg-pointer-events-none rtg-invisible rtg-absolute rtg-z-50 rtg-mt-1 rtg-max-h-72 rtg-w-full rtg-origin-top rtg-scale-y-0 rtg-transform rtg-overflow-hidden rtg-overflow-y-auto rtg-rounded-md rtg-border rtg-border-gray-200 rtg-bg-white rtg-px-1 rtg-py-1 rtg-opacity-0 rtg-shadow-md rtg-transition-opacity rtg-duration-300 rtg-ease-out dark:rtg-border-neutral-700 dark:rtg-bg-neutral-900 [&::-webkit-scrollbar-thumb]:rtg-rounded-full [&::-webkit-scrollbar-thumb]rtg-:bg-gray-300 dark:[&::-webkit-scrollbar-thumb]:rtg-bg-neutral-500 [&::-webkit-scrollbar-track]:rtg-bg-gray-100 dark:[&::-webkit-scrollbar-track]:rtg-bg-neutral-700 [&::-webkit-scrollbar]:rtg-w-2",Fi="rtg-flex rtg-h-8 rtg-w-full rtg-rounded rtg-border-0 rtg-bg-transparent rtg-px-2 rtg-py-2 rtg-text-sm rtg-shadow-none placeholder:rtg-text-muted-foreground focus:rtg-outline-none focus-visible:rtg-ring-0",Gi="rtg-z-20 rtg-flex rtg-h-10 rtg-flex-row-reverse rtg-items-center rtg-justify-between rtg-rounded-md rtg-border rtg-border-input rtg-bg-background rtg-px-3 rtg-py-2 rtg-text-sm rtg-ring-offset-background placeholder:rtg-text-muted-foreground focus:rtg-outline-none focus:rtg-ring-2 focus:rtg-ring-ring focus:rtg-ring-offset-2 disabled:rtg-cursor-not-allowed disabled:rtg-opacity-50",Vi="rtg-line-clamp-1 rtg-flex rtg-w-[180px]";var Hi=Object.defineProperty,Yi=Object.getOwnPropertyDescriptor,Ir=(i,t,r,n)=>{for(var e=n>1?void 0:n?Yi(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Hi(t,r,e),e};o.ComboBoxTrigger=class extends h{constructor(){super(...arguments),this.handleClick=()=>{this._comboBox&&([...document.getElementsByTagName("rtg-combo-box")].forEach(r=>{var n;r.uuid!==((n=this._comboBox)==null?void 0:n.uuid)&&(r.isOpen=!1)}),this._comboBox.isOpen=!this._comboBox.isOpen)}}get _comboBox(){let t=this.parentElement;for(;t&&!(t instanceof o.ComboBox);)t=t.parentElement;return t}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(t){super.firstUpdated(t),this.moveLightDomChildrenInto(this.buttonElement),this.addEventListener("click",r=>{r.stopPropagation()})}render(){return d.html`
|
|
3444
3444
|
<button
|
|
3445
3445
|
type="button"
|
|
3446
3446
|
part="combo-box-trigger-button"
|
|
@@ -3453,25 +3453,25 @@ body {
|
|
|
3453
3453
|
>
|
|
3454
3454
|
${ci()}
|
|
3455
3455
|
</button>
|
|
3456
|
-
`}},Ir([l.query("button")],o.ComboBoxTrigger.prototype,"buttonElement",2),o.ComboBoxTrigger=Ir([l.customElement("rtg-combo-box-trigger")],o.ComboBoxTrigger);var ji=Object.defineProperty,Wi=Object.getOwnPropertyDescriptor,Tr=(i,
|
|
3456
|
+
`}},Ir([l.query("button")],o.ComboBoxTrigger.prototype,"buttonElement",2),o.ComboBoxTrigger=Ir([l.customElement("rtg-combo-box-trigger")],o.ComboBoxTrigger);var ji=Object.defineProperty,Wi=Object.getOwnPropertyDescriptor,Tr=(i,t,r,n)=>{for(var e=n>1?void 0:n?Wi(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&ji(t,r,e),e};o.ComboBoxValue=class extends d.LitElement{constructor(){super(...arguments),this.placeholder="select a value",this.handleClick=()=>{this._comboBox&&([...document.getElementsByTagName("rtg-combo-box")].forEach(r=>{var n;r.uuid!==((n=this._comboBox)==null?void 0:n.uuid)&&(r.isOpen=!1)}),this._comboBox.isOpen=!this._comboBox.isOpen)},this.renderLabel=()=>this._comboBox&&this._comboBox.selectedValue.length>0?this._comboBox.selectedValue:this.placeholder}get _comboBox(){let t=this.parentElement;for(;t&&!(t instanceof o.ComboBox);)t=t.parentElement;return t}connectedCallback(){super.connectedCallback(),document.addEventListener("clicked-combo-box-item",()=>{this.requestUpdate()})}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",r=>{r.stopPropagation()})}createRenderRoot(){return this}render(){return d.html`
|
|
3457
3457
|
<span
|
|
3458
3458
|
part="combo-box-value"
|
|
3459
3459
|
class="${p(Vi,this.className)}"
|
|
3460
3460
|
@click=${this.handleClick}
|
|
3461
3461
|
>${this.renderLabel()}</span
|
|
3462
3462
|
>
|
|
3463
|
-
`}},Tr([l.property({type:String})],o.ComboBoxValue.prototype,"placeholder",2),o.ComboBoxValue=Tr([l.customElement("rtg-combo-box-value")],o.ComboBoxValue);var Xi=Object.defineProperty,Ki=Object.getOwnPropertyDescriptor,
|
|
3463
|
+
`}},Tr([l.property({type:String})],o.ComboBoxValue.prototype,"placeholder",2),o.ComboBoxValue=Tr([l.customElement("rtg-combo-box-value")],o.ComboBoxValue);var Xi=Object.defineProperty,Ki=Object.getOwnPropertyDescriptor,Zt=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ki(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Xi(t,r,e),e};o.ComboBoxGroup=class extends h{constructor(){super(...arguments),this.searchKey="",this.focusedIndex=0,this.selectedValue="",this.isOpen=!1,this.handleItemClicked=()=>{this.requestUpdate()},this.handleTriggerComboBox=t=>{var r,n;t.detail.isOpen!==((r=this._comboBox)==null?void 0:r.isOpen)&&this.requestUpdate(),t.detail.isOpen&&((n=this._comboBox)!=null&&n.selectedValue)&&(this.focusedIndex=this.comboBoxItems.findIndex(e=>{var a;return e.getAttribute("value")===((a=this._comboBox)==null?void 0:a.selectedValue)}),this.requestUpdate())},this.handleKeyDown=t=>{var n;if(!((n=this._comboBox)!=null&&n.isOpen))return;t.preventDefault();const r=this.filteredItems;switch(t.key){case"ArrowDown":if(r.length===0)return;this.focusedIndex=(this.focusedIndex+1)%r.length;break;case"ArrowUp":if(r.length===0)return;this.focusedIndex=(this.focusedIndex-1+r.length)%r.length;break;case"Enter":if(this.focusedIndex>=0&&this.focusedIndex<r.length){const e=r[this.focusedIndex].getAttribute("value");this.dispatchEvent(new CustomEvent("clicked-combo-box-item",{bubbles:!0,composed:!0,detail:{selectedItem:e}}))}break}},this.handleMouseOver=(t,r)=>{t.preventDefault(),this.focusedIndex=r},this.onSelectedValue=(t,r)=>{this.focusedIndex=r,this.selectedValue=t},this.boundHandleComboBoxStateChanged=this.handleComboBoxStateChanged.bind(this),this.boundHandleKeyDown=this.handleKeyDown.bind(this)}get comboBoxItems(){return Array.from(this.querySelectorAll('[data-managed="true"][tag="rtg-combo-box-item"], rtg-combo-box-item')).filter(t=>t.hasAttribute("value"))}get comboBoxInput(){return this.querySelector("rtg-combo-box-input")}get comboBoxEmpty(){return this.querySelector("rtg-combo-box-empty")}get hasResults(){return!this.filteredItems.length}get filteredItems(){var r;const t=(r=this.searchKey)==null?void 0:r.toLowerCase();return this.comboBoxItems.filter(n=>{var e;return(e=n.getAttribute("value"))==null?void 0:e.toLowerCase().includes(t)})}get _comboBox(){let t=this.parentElement;for(;t&&!(t instanceof o.ComboBox);)t=t.parentElement;return t}handleComboBoxStateChanged(t){var a;const{isOpen:r,targetComboBoxId:n}=t.detail;if(this.isOpen=r,n!==((a=this._comboBox)==null?void 0:a.uuid))return;const e=this.renderRoot.querySelector('[part="select-group"]');e&&(r?(clearTimeout(e._hideTimeout),e.classList.remove("rtg-scale-y-0","rtg-opacity-0"),e.classList.add("rtg-scale-y-100","rtg-opacity-100"),e.classList.remove("rtg-invisible","rtg-pointer-events-none"),e.classList.add("rtg-visible","rtg-pointer-events-auto")):(e.classList.remove("rtg-opacity-100"),e.classList.add("rtg-opacity-0"),e._hideTimeout=setTimeout(()=>{e.classList.remove("rtg-visible","rtg-pointer-events-auto","rtg-scale-y-100"),e.classList.add("rtg-invisible","rtg-pointer-events-none","rtg-scale-y-0")},300)))}moveChildren(){const t=this.renderRoot.querySelector('[part="select-group"]');if(!t)return;const r={top:t.querySelector("#topSlot"),empty:t.querySelector("#emptySlot"),list:t.querySelector("#listSlot")},n={"rtg-combo-box-input":"top","rtg-combo-box-empty":"empty","rtg-combo-box-item":"list"};Array.from(this.children).forEach(e=>{var m;const a=e.tagName.toLowerCase(),s=n[a];s&&(e.setAttribute("data-managed","true"),(m=r[s])==null||m.appendChild(e))})}renderFilteredItems(){return this.comboBoxItems.forEach(t=>t.setAttribute("hidden","true")),this.filteredItems.map((t,r)=>{var s;const n=t.getAttribute("value")??"",e=r===this.focusedIndex,a=n.toLowerCase()===((s=this._comboBox)==null?void 0:s.selectedValue.toLowerCase());return d.html`
|
|
3464
3464
|
<rtg-combo-box-item
|
|
3465
3465
|
@mouseover="${m=>this.handleMouseOver(m,r)}"
|
|
3466
3466
|
.value=${n}
|
|
3467
3467
|
.selectItemIndex=${r}
|
|
3468
|
-
.isFocus=${
|
|
3468
|
+
.isFocus=${e}
|
|
3469
3469
|
.onSelect=${this.onSelectedValue}
|
|
3470
3470
|
.isSelected=${a}
|
|
3471
3471
|
>
|
|
3472
|
-
${
|
|
3472
|
+
${t.textContent}
|
|
3473
3473
|
</rtg-combo-box-item>
|
|
3474
|
-
`})}getAttributesToExclude(){return[]}connectedCallback(){super.connectedCallback(),document.addEventListener("rtg-combo-box-state-changed",this.boundHandleComboBoxStateChanged),document.addEventListener("clicked-combo-box-item",this.handleItemClicked),document.addEventListener("trigger-combo-box",this.handleTriggerComboBox)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("clicked-combo-box-item",this.handleItemClicked),document.removeEventListener("trigger-combo-box",this.handleTriggerComboBox),document.removeEventListener("rtg-combo-box-state-changed",this.boundHandleComboBoxStateChanged),document.removeEventListener("keydown",this.boundHandleKeyDown)}firstUpdated(
|
|
3474
|
+
`})}getAttributesToExclude(){return[]}connectedCallback(){super.connectedCallback(),document.addEventListener("rtg-combo-box-state-changed",this.boundHandleComboBoxStateChanged),document.addEventListener("clicked-combo-box-item",this.handleItemClicked),document.addEventListener("trigger-combo-box",this.handleTriggerComboBox)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("clicked-combo-box-item",this.handleItemClicked),document.removeEventListener("trigger-combo-box",this.handleTriggerComboBox),document.removeEventListener("rtg-combo-box-state-changed",this.boundHandleComboBoxStateChanged),document.removeEventListener("keydown",this.boundHandleKeyDown)}firstUpdated(t){this.moveChildren(),document.addEventListener("keydown",this.boundHandleKeyDown)}createRenderRoot(){return this}render(){return d.html`
|
|
3475
3475
|
<div
|
|
3476
3476
|
part="select-group"
|
|
3477
3477
|
class="${p(Ui,this.className)}"
|
|
@@ -3487,9 +3487,9 @@ body {
|
|
|
3487
3487
|
${this.renderFilteredItems()}
|
|
3488
3488
|
</div>
|
|
3489
3489
|
</div>
|
|
3490
|
-
`}},
|
|
3490
|
+
`}},Zt([l.state()],o.ComboBoxGroup.prototype,"searchKey",2),Zt([l.state()],o.ComboBoxGroup.prototype,"focusedIndex",2),Zt([l.state()],o.ComboBoxGroup.prototype,"selectedValue",2),Zt([l.state()],o.ComboBoxGroup.prototype,"isOpen",2),o.ComboBoxGroup=Zt([l.customElement("rtg-combo-box-group")],o.ComboBoxGroup);var Qi=Object.defineProperty,Zi=Object.getOwnPropertyDescriptor,ot=(i,t,r,n)=>{for(var e=n>1?void 0:n?Zi(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Qi(t,r,e),e};o.ComboBoxItem=class extends h{constructor(){super(...arguments),this.value="",this.key="",this.tabindex=0,this.isSelected=!1,this.isFocus=!1,this.class="",this.selectItemIndex=-1,this.onSelect=(t,r)=>{},this.onMouseOver=(t,r)=>{},this.handleClick=t=>{this.onSelect(this.value,this.selectItemIndex),t.stopPropagation();const r=new CustomEvent("clicked-combo-box-item",{bubbles:!0,composed:!0,detail:{selectedItem:this.value}});this.dispatchEvent(r)}}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}connectedCallback(){super.connectedCallback()}firstUpdated(t){this.moveLightDomChildrenInto(this.itemDivContainer)}createRenderRoot(){return this}render(){const t=this.getFilteredAttributes();return d.html`
|
|
3491
3491
|
<div
|
|
3492
|
-
${H(
|
|
3492
|
+
${H(t)}
|
|
3493
3493
|
@click=${this.handleClick}
|
|
3494
3494
|
class="${p(this.isFocus?"rtg-bg-gray-100":"",this.className,"rtg-flex rtg-w-full rtg-cursor-pointer rtg-flex-row-reverse rtg-items-center rtg-justify-between rtg-rounded-lg rtg-px-4 rtg-py-2 hover:rtg-bg-gray-100 focus:rtg-bg-gray-100 focus:rtg-outline-none dark:rtg-bg-neutral-900 dark:rtg-text-neutral-200 dark:hover:rtg-bg-neutral-800 dark:focus:rtg-bg-neutral-800")}"
|
|
3495
3495
|
data-hs-combo-box-value=${this.value}
|
|
@@ -3503,7 +3503,7 @@ body {
|
|
|
3503
3503
|
${Sr()}
|
|
3504
3504
|
</span>
|
|
3505
3505
|
</div>
|
|
3506
|
-
`}},
|
|
3506
|
+
`}},ot([l.property({type:String})],o.ComboBoxItem.prototype,"value",2),ot([l.property({type:String})],o.ComboBoxItem.prototype,"key",2),ot([l.property({type:Number})],o.ComboBoxItem.prototype,"tabindex",2),ot([l.property({type:Boolean})],o.ComboBoxItem.prototype,"isSelected",2),ot([l.property({type:Boolean})],o.ComboBoxItem.prototype,"isFocus",2),ot([l.property({type:String})],o.ComboBoxItem.prototype,"class",2),ot([l.property({type:Number})],o.ComboBoxItem.prototype,"selectItemIndex",2),ot([l.property({type:Function})],o.ComboBoxItem.prototype,"onSelect",2),ot([l.property({type:Function})],o.ComboBoxItem.prototype,"onMouseOver",2),ot([l.query("#rtg-combo-box-item")],o.ComboBoxItem.prototype,"itemDivContainer",2),o.ComboBoxItem=ot([l.customElement("rtg-combo-box-item")],o.ComboBoxItem);var Ji=Object.defineProperty,ta=Object.getOwnPropertyDescriptor,Ie=(i,t,r,n)=>{for(var e=n>1?void 0:n?ta(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Ji(t,r,e),e};o.ComboBoxInput=class extends d.LitElement{constructor(){super(...arguments),this.placeholder="Search Item ...",this.searchValue=""}get _comboBoxGroup(){let t=this.parentElement;for(;t&&!(t instanceof o.ComboBoxGroup);)t=t.parentElement;return t}handleSearch(t){t.stopPropagation();const r=t.target;this.searchValue=r.value,this._comboBoxGroup&&(this._comboBoxGroup.searchKey=this.searchValue)}handleKeyDown(t){t.stopPropagation()}createRenderRoot(){return this}render(){return d.html`
|
|
3507
3507
|
<div class="rtg-flex rtg-items-center rtg-px-2">
|
|
3508
3508
|
${di()}
|
|
3509
3509
|
<input
|
|
@@ -3521,45 +3521,45 @@ body {
|
|
|
3521
3521
|
@keydown="${this.handleKeyDown}"
|
|
3522
3522
|
/>
|
|
3523
3523
|
</div>
|
|
3524
|
-
`}},
|
|
3524
|
+
`}},Ie([l.property({type:String})],o.ComboBoxInput.prototype,"placeholder",2),Ie([l.state()],o.ComboBoxInput.prototype,"searchValue",2),o.ComboBoxInput=Ie([l.customElement("rtg-combo-box-input")],o.ComboBoxInput);var ea=Object.getOwnPropertyDescriptor,ra=(i,t,r,n)=>{for(var e=n>1?void 0:n?ea(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.ComboBoxEmpty=class extends h{createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(t){this.removeDuplicateContent()}render(){return d.html`
|
|
3525
3525
|
<div
|
|
3526
3526
|
class="${p(Bi,this.className)}"
|
|
3527
3527
|
role="presentation"
|
|
3528
3528
|
>
|
|
3529
3529
|
${Array.from(this.childNodes)[0].textContent}
|
|
3530
3530
|
</div>
|
|
3531
|
-
`}},o.ComboBoxEmpty=ra([l.customElement("rtg-combo-box-empty")],o.ComboBoxEmpty);var na=Object.defineProperty,oa=Object.getOwnPropertyDescriptor,
|
|
3531
|
+
`}},o.ComboBoxEmpty=ra([l.customElement("rtg-combo-box-empty")],o.ComboBoxEmpty);var na=Object.defineProperty,oa=Object.getOwnPropertyDescriptor,at=(i,t,r,n)=>{for(var e=n>1?void 0:n?oa(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&na(t,r,e),e};o.ComboBox=class extends h{constructor(){super(),this.isOpen=!1,this.selectedValue="",this.searchTerm="",this.focusedIndex=-1,this.filteredItems=[],this.uuid=Oe(),this.label="Select an item",this.items=[],this.handleClickOutside=t=>{var e;const r=(e=this.renderRoot)==null?void 0:e.querySelector("[data-combo-box-uuid]"),n=t.target;if(!n.tagName.includes("RTG-COMBO")&&!(n.shadowRoot&&n.shadowRoot.innerHTML.includes(r==null?void 0:r.innerHTML))){if(this.isOpen&&!r||!(r!=null&&r.contains(n)))this.isOpen=!1;else if(!(n==null?void 0:n.firstElementChild))return}}}connectedCallback(){super.connectedCallback(),document.addEventListener("clicked-combo-box-item",t=>{this.isOpen&&(this.selectedValue=t.detail.selectedItem,this.isOpen=!1,this.requestUpdate())})}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this.parentDiveElement),this.items&&this.items.length>0&&(this.filteredItems=this.items.filter(r=>r.toLowerCase().includes(this.searchTerm)))}updated(t){super.updated(t),t.has("isOpen")&&(this.dispatchEvent(new CustomEvent("rtg-combo-box-state-changed",{detail:{isOpen:this.isOpen,targetComboBoxId:this.uuid},bubbles:!0,composed:!0})),this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}selectItem(t){const r=t.target;if(r instanceof HTMLElement){const n=r.closest("rtg-combo-box-item");n?(this.selectedValue=n.getAttribute("data-hs-combo-box-value")||"",this.isOpen=!1):console.log("No valid rtg-combo-box-item found")}else console.log("Event target is not an HTMLElement")}render(){return d.html`
|
|
3532
3532
|
<div
|
|
3533
3533
|
class="${p("rtg-relative",this.className)}"
|
|
3534
3534
|
data-hs-combo-box=""
|
|
3535
3535
|
data-combo-box-uuid=${this.uuid}
|
|
3536
3536
|
part="combo-box"
|
|
3537
3537
|
></div>
|
|
3538
|
-
`}},
|
|
3538
|
+
`}},at([l.property({type:Boolean})],o.ComboBox.prototype,"isOpen",2),at([l.state()],o.ComboBox.prototype,"selectedValue",2),at([l.state()],o.ComboBox.prototype,"searchTerm",2),at([l.state()],o.ComboBox.prototype,"focusedIndex",2),at([l.state()],o.ComboBox.prototype,"filteredItems",2),at([l.state()],o.ComboBox.prototype,"uuid",2),at([l.property({type:String})],o.ComboBox.prototype,"label",2),at([l.property({type:Array})],o.ComboBox.prototype,"items",2),at([l.query('[part="combo-box"]')],o.ComboBox.prototype,"parentDiveElement",2),o.ComboBox=at([l.customElement("rtg-combo-box")],o.ComboBox);var se=(i=>(i.VERTICAL="vertical",i.HORIZONTAL="horizontal",i))(se||{}),ia=Object.defineProperty,aa=Object.getOwnPropertyDescriptor,Ar=(i,t,r,n)=>{for(var e=n>1?void 0:n?aa(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&ia(t,r,e),e};o.Separator=class extends h{constructor(){super(...arguments),this.orientation=se.HORIZONTAL}getAttributesToExclude(){return["variant","data-testid"]}createRenderRoot(){return this}render(){const t=this.getFilteredAttributes();return d.html` <div
|
|
3539
3539
|
part="separator"
|
|
3540
|
-
${H(
|
|
3541
|
-
class=${p(this.orientation===
|
|
3540
|
+
${H(t)}
|
|
3541
|
+
class=${p(this.orientation===se.HORIZONTAL?"rtg-shrink-0 rtg-bg-border rtg-w-full rtg-h-[1px] rtg-my-4":"rtg-shrink-0 rtg-bg-border rtg-h-full rtg-w-[1px]",this.className)}
|
|
3542
3542
|
role="none"
|
|
3543
3543
|
>
|
|
3544
|
-
${this.orientation!==
|
|
3545
|
-
</div>`}},Ar([l.property({type:String})],o.Separator.prototype,"orientation",2),o.Separator=Ar([l.customElement("rtg-separator")],o.Separator);const sa="rtg-absolute rtg-z-50 rtg-w-64 rtg-rounded-md rtg-border rtg-bg-popover rtg-p-4 rtg-text-popover-foreground rtg-shadow-md rtg-outline-none 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";var la=Object.defineProperty,ca=Object.getOwnPropertyDescriptor,
|
|
3544
|
+
${this.orientation!==se.HORIZONTAL?d.html` `:d.nothing}
|
|
3545
|
+
</div>`}},Ar([l.property({type:String})],o.Separator.prototype,"orientation",2),o.Separator=Ar([l.customElement("rtg-separator")],o.Separator);const sa="rtg-absolute rtg-z-50 rtg-w-64 rtg-rounded-md rtg-border rtg-bg-popover rtg-p-4 rtg-text-popover-foreground rtg-shadow-md rtg-outline-none 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";var la=Object.defineProperty,ca=Object.getOwnPropertyDescriptor,Te=(i,t,r,n)=>{for(var e=n>1?void 0:n?ca(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&la(t,r,e),e};o.HoverContent=class extends h{constructor(){super(...arguments),this.state="close",this.isOpen=!1,this.onStateChange=t=>{const r=t.detail.isOpen;this.state=r?"open":"close"},this.handlePointerLeaveCheck=t=>{this.contains(t.relatedTarget)||(this.isOpen=!1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("hover-card-state-change",this.onStateChange),this.addEventListener("mouseenter",this.handlePointerLeaveCheck),this.addEventListener("mouseleave",this.handlePointerLeaveCheck)}disconnectedCallback(){document.removeEventListener("hover-card-state-change",this.onStateChange),this.removeEventListener("mouseenter",this.handlePointerLeaveCheck),this.removeEventListener("mouseleave",this.handlePointerLeaveCheck),super.disconnectedCallback()}updated(t){super.updated(t),this.isOpen=this.state==="open"}createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(t){this.moveLightDomChildrenInto(this.renderRoot.querySelector("#rtg-hover-card-content"))}render(){return d.html`
|
|
3546
3546
|
<div
|
|
3547
3547
|
id="rtg-hover-card-content"
|
|
3548
3548
|
part="hover-card-content"
|
|
3549
3549
|
class="${p(sa,this.className)}"
|
|
3550
3550
|
style="display: ${this.isOpen?"block":"none"}; width: 360px"
|
|
3551
3551
|
></div>
|
|
3552
|
-
`}},
|
|
3552
|
+
`}},Te([l.property({attribute:"data-state",type:String})],o.HoverContent.prototype,"state",2),Te([l.state()],o.HoverContent.prototype,"isOpen",2),o.HoverContent=Te([l.customElement("rtg-hover-card-content")],o.HoverContent);var da=Object.getOwnPropertyDescriptor,ua=(i,t,r,n)=>{for(var e=n>1?void 0:n?da(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.HoverCardTrigger=class extends h{getAttributesToExclude(){return["value","defaultValue"]}createRenderRoot(){return this}firstUpdated(t){this.removeDuplicateContent()}render(){return d.html`
|
|
3553
3553
|
<div id="rtg-hover-card-trigger" class="${p("",this.className)}">
|
|
3554
3554
|
${Array.from(this.children)}
|
|
3555
3555
|
</div>
|
|
3556
|
-
`}},o.HoverCardTrigger=ua([l.customElement("rtg-hover-card-trigger")],o.HoverCardTrigger);var ga=Object.defineProperty,pa=Object.getOwnPropertyDescriptor,Lr=(i,
|
|
3556
|
+
`}},o.HoverCardTrigger=ua([l.customElement("rtg-hover-card-trigger")],o.HoverCardTrigger);var ga=Object.defineProperty,pa=Object.getOwnPropertyDescriptor,Lr=(i,t,r,n)=>{for(var e=n>1?void 0:n?pa(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&ga(t,r,e),e};o.HoverCard=class extends h{constructor(){super(...arguments),this.isOpen=!1,this.hoverTimeout=null,this.openCard=()=>{var t;this.hoverTimeout&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=null),this.isOpen||(this.isOpen=!0,(t=this._content)==null||t.dispatchEvent(new CustomEvent("hover-card-state-change",{detail:{isOpen:!0}})))},this.closeCard=()=>{this.hoverTimeout=setTimeout(()=>{var t;this.isOpen=!1,(t=this._content)==null||t.dispatchEvent(new CustomEvent("hover-card-state-change",{detail:{isOpen:!1}}))},150)}}get _containerElement(){return this.renderRoot.querySelector("#rtg-hover-card-container")}get _content(){return this.renderRoot.querySelector("rtg-hover-card-content")}get _trigger(){return this.renderRoot.querySelector("rtg-hover-card-trigger")}getAttributesToExclude(){return[]}updated(t){super.updated(t);const r=this._content;r&&(r.dataset.state=this.isOpen?"open":"close")}connectedCallback(){super.connectedCallback()}disconnectedCallback(){const t=this._trigger,r=this._content;t==null||t.removeEventListener("mouseenter",this.openCard),t==null||t.removeEventListener("mouseleave",this.closeCard),r==null||r.removeEventListener("mouseenter",this.openCard),r==null||r.removeEventListener("mouseleave",this.closeCard),this.hoverTimeout&&clearTimeout(this.hoverTimeout),super.disconnectedCallback()}createRenderRoot(){return this}firstUpdated(t){const r=this._containerElement;this.moveLightDomChildrenInto(r);const n=this._trigger,e=this._content;n==null||n.addEventListener("mouseenter",this.openCard),n==null||n.addEventListener("mouseleave",this.closeCard),e==null||e.addEventListener("mouseenter",this.openCard),e==null||e.addEventListener("mouseleave",this.closeCard)}render(){return d.html`
|
|
3557
3557
|
<div
|
|
3558
3558
|
id="rtg-hover-card-container"
|
|
3559
3559
|
part="hover-card"
|
|
3560
3560
|
class="${p("",this.className)}"
|
|
3561
3561
|
></div>
|
|
3562
|
-
`}},Lr([l.state()],o.HoverCard.prototype,"isOpen",2),o.HoverCard=Lr([l.customElement("rtg-hover-card")],o.HoverCard);const ha="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",ma="py-6 text-center text-sm",fa="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",va="rtg-flex rtg-items-center rtg-border-b rtg-px-3",ba="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-gray-100 focus:rtg-outline-none focus:rtg-bg-gray-100 dark:rtg-bg-neutral-900 dark:rtg-hover:bg-neutral-800 dark:rtg-text-neutral-200 dark:rtg-focus:bg-neutral-800",ya="rtg-max-h-[300px] rtg-overflow-y-auto rtg-overflow-x-hidden",wa="rtg-mx-1 rtg-h-px rtg-bg-border";var
|
|
3562
|
+
`}},Lr([l.state()],o.HoverCard.prototype,"isOpen",2),o.HoverCard=Lr([l.customElement("rtg-hover-card")],o.HoverCard);const ha="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",ma="py-6 text-center text-sm",fa="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",va="rtg-flex rtg-items-center rtg-border-b rtg-px-3",ba="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-gray-100 focus:rtg-outline-none focus:rtg-bg-gray-100 dark:rtg-bg-neutral-900 dark:rtg-hover:bg-neutral-800 dark:rtg-text-neutral-200 dark:rtg-focus:bg-neutral-800",ya="rtg-max-h-[300px] rtg-overflow-y-auto rtg-overflow-x-hidden",wa="rtg-mx-1 rtg-h-px rtg-bg-border";var Ca=Object.defineProperty,_a=Object.getOwnPropertyDescriptor,Ae=(i,t,r,n)=>{for(var e=n>1?void 0:n?_a(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Ca(t,r,e),e};o.CommandInput=class extends d.LitElement{constructor(){super(...arguments),this.placeholder="Type a command or search...",this._value=""}get identifier(){const t=this.parentElement;return t?`${t.getAttribute("id")}i`:"rtgcmdrxi"}filterItems(){const t=this.parentElement;if(t){let r=!0;const n=t.querySelectorAll("rtg-command-group");n&&n.forEach(a=>{var b,w;let s=!0;const m=a.querySelectorAll("rtg-command-item");m&&m.forEach(E=>{(E.value||"").toLowerCase().includes(this._value.toLowerCase())?(s=!1,r=!1,E._hidden="false"):E._hidden="true"}),a._hidden=s?"true":"false";let C=a.previousElementSibling;C&&(C._hidden=s||((b=C.previousElementSibling)==null?void 0:b.getAttribute("aria-hidden"))==="true"?"true":"false"),C=a.nextElementSibling,C&&(C._hidden=s||((w=C.nextElementSibling)==null?void 0:w.getAttribute("aria-hidden"))==="true"?"true":"false")});const e=t.querySelector("rtg-command-empty");e&&e.setAttribute("aria-hidden",r?"false":"true")}}handleChange(t){const r=t.target;r&&(this._value=r.value,this.filterItems())}createRenderRoot(){return this}render(){return d.html`
|
|
3563
3563
|
<div
|
|
3564
3564
|
part="command-input"
|
|
3565
3565
|
class="${p(va,this.className)}"
|
|
@@ -3598,7 +3598,7 @@ body {
|
|
|
3598
3598
|
data-value="${this._value}"
|
|
3599
3599
|
/>
|
|
3600
3600
|
</div>
|
|
3601
|
-
`}},
|
|
3601
|
+
`}},Ae([l.property({type:String})],o.CommandInput.prototype,"placeholder",2),Ae([l.property({attribute:"value",type:String})],o.CommandInput.prototype,"_value",2),o.CommandInput=Ae([l.customElement("rtg-command-input")],o.CommandInput);var xa=Object.defineProperty,Ea=Object.getOwnPropertyDescriptor,Le=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ea(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&xa(t,r,e),e};o.CommandEmpty=class extends h{constructor(){super(...arguments),this._id="",this._hidden="true"}get containerElement(){return this.querySelector(`#${this.identifier}`)}get identifier(){if(this._id!=="")return this._id;const t=this.parentElement;return t?this._id=`${t.getAttribute("id")}e${o.CommandEmpty._counter++}`:this._id=`rtgcmdrxlxe${o.CommandEmpty._counter++}`,this._id}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this.containerElement)}render(){return d.html`
|
|
3602
3602
|
<div
|
|
3603
3603
|
style="${this._hidden==="true"?"display: none;":""}"
|
|
3604
3604
|
part="command-empty"
|
|
@@ -3607,7 +3607,7 @@ body {
|
|
|
3607
3607
|
role="presentation"
|
|
3608
3608
|
id="${this.identifier}"
|
|
3609
3609
|
></div>
|
|
3610
|
-
`}},o.CommandEmpty._counter=0,
|
|
3610
|
+
`}},o.CommandEmpty._counter=0,Le([l.property({type:String})],o.CommandEmpty.prototype,"_id",2),Le([l.property({attribute:"aria-hidden",type:String})],o.CommandEmpty.prototype,"_hidden",2),o.CommandEmpty=Le([l.customElement("rtg-command-empty")],o.CommandEmpty);var $a=Object.defineProperty,Oa=Object.getOwnPropertyDescriptor,le=(i,t,r,n)=>{for(var e=n>1?void 0:n?Oa(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&$a(t,r,e),e};o.CommandGroup=class extends h{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get itemsContainerElement(){return this.querySelector(`#${this.identifier}g`)}get identifier(){if(this._id!=="")return this._id;const t=this.parentElement;return t?this._id=`${t.getAttribute("id")}g${o.CommandGroup._counter++}`:this._id=`rtgcmdrxlxg${o.CommandGroup._counter++}`,this._id}createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(t){const r=this.itemsContainerElement;if(r){for(;r.firstChild;)r.removeChild(r.firstChild);this.moveLightDomChildrenInto(r)}}render(){return d.html`
|
|
3611
3611
|
<div
|
|
3612
3612
|
part="command-group"
|
|
3613
3613
|
class="${p(fa,this.className)}"
|
|
@@ -3626,7 +3626,7 @@ body {
|
|
|
3626
3626
|
id="${this.identifier}g"
|
|
3627
3627
|
></div>
|
|
3628
3628
|
</div>
|
|
3629
|
-
`}},o.CommandGroup._counter=0,
|
|
3629
|
+
`}},o.CommandGroup._counter=0,le([l.property({type:String})],o.CommandGroup.prototype,"heading",2),le([l.property({attribute:"id",type:String})],o.CommandGroup.prototype,"_id",2),le([l.property({attribute:"aria-hidden",type:String})],o.CommandGroup.prototype,"_hidden",2),o.CommandGroup=le([l.customElement("rtg-command-group")],o.CommandGroup);var Sa=Object.getOwnPropertyDescriptor,Pa=(i,t,r,n)=>{for(var e=n>1?void 0:n?Sa(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.CommandList=class extends h{get identifier(){const t=this.parentElement;return t?`${t.getAttribute("id")}l`:"rtgcmdrxl"}get containerElement(){return this.querySelector("div[rtgcmd-list]")}createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(t){this.moveLightDomChildrenInto(this.containerElement)}render(){return d.html`
|
|
3630
3630
|
<div
|
|
3631
3631
|
part="command-list"
|
|
3632
3632
|
class="${p(ya,this.className)}"
|
|
@@ -3637,7 +3637,7 @@ body {
|
|
|
3637
3637
|
>
|
|
3638
3638
|
<div></div>
|
|
3639
3639
|
</div>
|
|
3640
|
-
`}},o.CommandList=Pa([l.customElement("rtg-command-list")],o.CommandList);var Da=Object.defineProperty,Ra=Object.getOwnPropertyDescriptor,
|
|
3640
|
+
`}},o.CommandList=Pa([l.customElement("rtg-command-list")],o.CommandList);var Da=Object.defineProperty,Ra=Object.getOwnPropertyDescriptor,Jt=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ra(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Da(t,r,e),e};o.CommandItem=class extends h{constructor(){super(...arguments),this.selected=!1,this._id="",this._hidden="",this.onSelect=()=>{}}get containerElement(){return this.querySelector(`#${this.identifier}`)}get identifier(){if(this._id!=="")return this._id;const t=this.parentElement;return t?this._id=`${t.getAttribute("id")}li${o.CommandItem._counter++}`:this._id=`rtgcmdrxgxli${o.CommandItem._counter++}`,this._id}get value(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}handleMouseEvent(t){(t.type==="mouseover"||t.type==="focus")&&(this.selected=!0),t.type==="mouseleave"&&(this.selected=!1)}createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(t){this.moveLightDomChildrenInto(this.containerElement)}updated(t){}render(){return d.html`
|
|
3641
3641
|
<div
|
|
3642
3642
|
part="command-item"
|
|
3643
3643
|
class="${p(ba,this.className,this.hidden?"rtg-hidden":"rtg-flex")}"
|
|
@@ -3654,7 +3654,7 @@ body {
|
|
|
3654
3654
|
aria-hidden="${this.hidden}"
|
|
3655
3655
|
style="${this._hidden==="true"?"display: none;":""}"
|
|
3656
3656
|
></div>
|
|
3657
|
-
`}},o.CommandItem._counter=0,
|
|
3657
|
+
`}},o.CommandItem._counter=0,Jt([l.property({type:String})],o.CommandItem.prototype,"_id",2),Jt([l.property({attribute:"aria-hidden",type:String})],o.CommandItem.prototype,"_hidden",2),Jt([l.property({type:Function})],o.CommandItem.prototype,"onSelect",2),Jt([l.property({attribute:"data-value",type:String}),l.property({type:Boolean})],o.CommandItem.prototype,"containerElement",1),o.CommandItem=Jt([l.customElement("rtg-command-item")],o.CommandItem);var ka=Object.defineProperty,Ia=Object.getOwnPropertyDescriptor,Me=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ia(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&ka(t,r,e),e};o.CommandSeparator=class extends d.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){if(this._id!=="")return this._id;const t=this.parentElement;return t?this._id=`${t.getAttribute("id")}s${o.CommandSeparator._counter++}`:this._id=`rtgcmdrxlxs${o.CommandSeparator._counter++}`,this._id}createRenderRoot(){return this}render(){return d.html`${this._hidden==="true"?d.nothing:d.html`
|
|
3658
3658
|
<div
|
|
3659
3659
|
part="command-separator"
|
|
3660
3660
|
class="${p(wa,this.className)}"
|
|
@@ -3662,20 +3662,20 @@ body {
|
|
|
3662
3662
|
role="separator"
|
|
3663
3663
|
id="${this.identifier}"
|
|
3664
3664
|
></div>
|
|
3665
|
-
`}`}},o.CommandSeparator._counter=0,
|
|
3665
|
+
`}`}},o.CommandSeparator._counter=0,Me([l.property({type:String})],o.CommandSeparator.prototype,"_id",2),Me([l.property({attribute:"aria-hidden",type:String})],o.CommandSeparator.prototype,"_hidden",2),o.CommandSeparator=Me([l.customElement("rtg-command-separator")],o.CommandSeparator);var Ta=Object.getOwnPropertyDescriptor,Aa=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ta(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.Command=class extends h{get containerElement(){return this.querySelector("div[rtgcmd-root]")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this.containerElement)}render(){return d.html`
|
|
3666
3666
|
<div
|
|
3667
3667
|
part="command"
|
|
3668
3668
|
class="${p(ha,this.className)}"
|
|
3669
3669
|
id="rtgcmdr1"
|
|
3670
3670
|
rtgcmd-root
|
|
3671
3671
|
></div>
|
|
3672
|
-
`}},o.Command=Aa([l.customElement("rtg-command")],o.Command);const La="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",Ma="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",Na="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",qa="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",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 aria-selected:rtg-bg-accent aria-selected:rtg-text-accent-foreground",Ba="rtg-mx-1 rtg-h-px rtg-bg-border",Ua="rtg-ml-auto rtg-text-xs rtg-font-semibold";var Fa=Object.defineProperty,Ga=Object.getOwnPropertyDescriptor,Mr=(i,
|
|
3672
|
+
`}},o.Command=Aa([l.customElement("rtg-command")],o.Command);const La="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",Ma="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",Na="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",qa="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",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 aria-selected:rtg-bg-accent aria-selected:rtg-text-accent-foreground",Ba="rtg-mx-1 rtg-h-px rtg-bg-border",Ua="rtg-ml-auto rtg-text-xs rtg-font-semibold";var Fa=Object.defineProperty,Ga=Object.getOwnPropertyDescriptor,Mr=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ga(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Fa(t,r,e),e};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(t){const r=this==null?void 0:this.querySelector("button");!this.contains(t.target)&&!(r!=null&&r.contains(t.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(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3673
3673
|
<div
|
|
3674
3674
|
part="context-menu-content"
|
|
3675
3675
|
class="${p(Ma,this.className)}"
|
|
3676
3676
|
style="display:none; width: 260px"
|
|
3677
3677
|
></div>
|
|
3678
|
-
`}},Mr([l.state()],o.ContextMenuContent.prototype,"isOpen",2),o.ContextMenuContent=Mr([l.customElement("rtg-context-menu-content")],o.ContextMenuContent);var Va=Object.defineProperty,Ha=Object.getOwnPropertyDescriptor,
|
|
3678
|
+
`}},Mr([l.state()],o.ContextMenuContent.prototype,"isOpen",2),o.ContextMenuContent=Mr([l.customElement("rtg-context-menu-content")],o.ContextMenuContent);var Va=Object.defineProperty,Ha=Object.getOwnPropertyDescriptor,Mt=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ha(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Va(t,r,e),e};o.ContextMenuCheckboxItem=class extends h{constructor(){super(...arguments),this._id="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}get _containerElement(){return this.querySelector("div[part=context-menu-checkbox-item-container]")}getAttributesToExclude(){return["data-testid"]}handleMouseEvent(t){(t.type==="mouseover"||t.type==="focus")&&(this.selected=!0),t.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3679
3679
|
<div
|
|
3680
3680
|
part="context-menu-checkbox"
|
|
3681
3681
|
class="${p(La,this.disabled?"rtg-pointer-events-none rtg-opacity-50":"",this.className)}"
|
|
@@ -3707,7 +3707,7 @@ body {
|
|
|
3707
3707
|
</span>
|
|
3708
3708
|
<div part="context-menu-checkbox-item-container"></div>
|
|
3709
3709
|
</div>
|
|
3710
|
-
`}},
|
|
3710
|
+
`}},Mt([l.property({type:String})],o.ContextMenuCheckboxItem.prototype,"_id",2),Mt([l.property({attribute:"data-value",type:String})],o.ContextMenuCheckboxItem.prototype,"value",1),Mt([l.property({type:Boolean})],o.ContextMenuCheckboxItem.prototype,"selected",2),Mt([l.property({type:Boolean})],o.ContextMenuCheckboxItem.prototype,"checked",2),Mt([l.property({type:Boolean})],o.ContextMenuCheckboxItem.prototype,"disabled",2),o.ContextMenuCheckboxItem=Mt([l.customElement("rtg-context-menu-checkbox-item")],o.ContextMenuCheckboxItem);var Ya=Object.defineProperty,ja=Object.getOwnPropertyDescriptor,Nr=(i,t,r,n)=>{for(var e=n>1?void 0:n?ja(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Ya(t,r,e),e};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(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3711
3711
|
<div
|
|
3712
3712
|
part="context-menu-group"
|
|
3713
3713
|
class="${p(Na,this.className)}"
|
|
@@ -3717,14 +3717,14 @@ body {
|
|
|
3717
3717
|
<div rtgcmd-group-heading aria-hidden="true">${this.heading}</div>
|
|
3718
3718
|
<div rtgcontext-group-items role="group"></div>
|
|
3719
3719
|
</div>
|
|
3720
|
-
`}},Nr([l.property({type:String})],o.ContextMenuGroup.prototype,"heading",2),o.ContextMenuGroup=Nr([l.customElement("rtg-context-menu-group")],o.ContextMenuGroup);var Wa=Object.defineProperty,Xa=Object.getOwnPropertyDescriptor,qr=(i,
|
|
3720
|
+
`}},Nr([l.property({type:String})],o.ContextMenuGroup.prototype,"heading",2),o.ContextMenuGroup=Nr([l.customElement("rtg-context-menu-group")],o.ContextMenuGroup);var Wa=Object.defineProperty,Xa=Object.getOwnPropertyDescriptor,qr=(i,t,r,n)=>{for(var e=n>1?void 0:n?Xa(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Wa(t,r,e),e};o.ContextMenuItem=class extends h{get _containerElement(){return this.querySelector("div[part=context-menu-item]")}getAttributesToExclude(){return[]}get value(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}firstUpdated(t){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`
|
|
3721
3721
|
<div
|
|
3722
3722
|
part="context-menu-item"
|
|
3723
3723
|
class="${p(qa,this.className)}"
|
|
3724
3724
|
role="option"
|
|
3725
3725
|
data-value="${this.value}"
|
|
3726
3726
|
></div>
|
|
3727
|
-
`}},qr([l.property({attribute:"data-value",type:String})],o.ContextMenuItem.prototype,"value",1),o.ContextMenuItem=qr([l.customElement("rtg-context-menu-item")],o.ContextMenuItem);var Ka=Object.defineProperty,Qa=Object.getOwnPropertyDescriptor,
|
|
3727
|
+
`}},qr([l.property({attribute:"data-value",type:String})],o.ContextMenuItem.prototype,"value",1),o.ContextMenuItem=qr([l.customElement("rtg-context-menu-item")],o.ContextMenuItem);var Ka=Object.defineProperty,Qa=Object.getOwnPropertyDescriptor,Nt=(i,t,r,n)=>{for(var e=n>1?void 0:n?Qa(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Ka(t,r,e),e};o.ContextMenuRadioItem=class extends h{constructor(){super(...arguments),this._id="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}get _containerElement(){return this.querySelector("div[part=context-menu-radio-item-container]")}getAttributesToExclude(){return["data-testid"]}handleMouseEvent(t){(t.type==="mouseover"||t.type==="focus")&&(this.selected=!0),t.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3728
3728
|
<div
|
|
3729
3729
|
part="context-menu-radio"
|
|
3730
3730
|
class="${p(za,this.disabled?"pointer-events-none opacity-50":"",this.className)}"
|
|
@@ -3741,45 +3741,45 @@ body {
|
|
|
3741
3741
|
<span
|
|
3742
3742
|
class="rtg-absolute rtg-left-2 rtg-inline-block rtg-h-4 rtg-w-4 rtg-items-center rtg-justify-center"
|
|
3743
3743
|
>
|
|
3744
|
-
${this.checked?d.html` ${
|
|
3744
|
+
${this.checked?d.html` ${ke()} `:d.nothing}
|
|
3745
3745
|
</span>
|
|
3746
3746
|
<div part="context-menu-radio-item-container"></div>
|
|
3747
3747
|
</div>
|
|
3748
|
-
`}},
|
|
3748
|
+
`}},Nt([l.property({type:String})],o.ContextMenuRadioItem.prototype,"_id",2),Nt([l.property({attribute:"data-value",type:String})],o.ContextMenuRadioItem.prototype,"value",1),Nt([l.property({type:Boolean})],o.ContextMenuRadioItem.prototype,"selected",2),Nt([l.property({type:Boolean})],o.ContextMenuRadioItem.prototype,"checked",2),Nt([l.property({type:Boolean})],o.ContextMenuRadioItem.prototype,"disabled",2),o.ContextMenuRadioItem=Nt([l.customElement("rtg-context-menu-radio-item")],o.ContextMenuRadioItem);var Za=Object.defineProperty,Ja=Object.getOwnPropertyDescriptor,zr=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ja(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Za(t,r,e),e};o.ContextMenuSeparator=class extends d.LitElement{constructor(){super(...arguments),this._id=""}createRenderRoot(){return this}render(){return d.html`
|
|
3749
3749
|
<div
|
|
3750
3750
|
part="context-menu-separator"
|
|
3751
3751
|
class="${p(Ba,this.className)}"
|
|
3752
3752
|
rtgcmd-separator
|
|
3753
3753
|
role="separator"
|
|
3754
3754
|
></div>
|
|
3755
|
-
`}},zr([l.property({type:String})],o.ContextMenuSeparator.prototype,"_id",2),o.ContextMenuSeparator=zr([l.customElement("rtg-context-menu-separator")],o.ContextMenuSeparator);var
|
|
3755
|
+
`}},zr([l.property({type:String})],o.ContextMenuSeparator.prototype,"_id",2),o.ContextMenuSeparator=zr([l.customElement("rtg-context-menu-separator")],o.ContextMenuSeparator);var ts=Object.getOwnPropertyDescriptor,es=(i,t,r,n)=>{for(var e=n>1?void 0:n?ts(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.ContextMenuShortcut=class extends h{get _containerElement(){return this.querySelector("span[part=context-menu-shortcut]")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3756
3756
|
<span
|
|
3757
3757
|
part="context-menu-shortcut"
|
|
3758
3758
|
class="${p(Ua,this.className)}"
|
|
3759
3759
|
>
|
|
3760
3760
|
</span>
|
|
3761
|
-
`}},o.ContextMenuShortcut=
|
|
3761
|
+
`}},o.ContextMenuShortcut=es([l.customElement("rtg-context-menu-shortcut")],o.ContextMenuShortcut);var rs=Object.getOwnPropertyDescriptor,ns=(i,t,r,n)=>{for(var e=n>1?void 0:n?rs(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.ContextTrigger=class extends d.LitElement{createRenderRoot(){return this}render(){return d.html``}},o.ContextTrigger=ns([l.customElement("rtg-context-menu-trigger")],o.ContextTrigger);var os=Object.defineProperty,is=Object.getOwnPropertyDescriptor,Br=(i,t,r,n)=>{for(var e=n>1?void 0:n?is(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&os(t,r,e),e};o.ContextMenu=class extends h{constructor(){super(...arguments),this.isOpen=!1,this.handleClickOutside=t=>{const r=t.target;this!=null&&this.contains(r)||(this.isOpen=!1)}}get _containerElement(){return this.querySelector("div[part=context-menu]")}get _triggerElement(){return this.querySelector("rtg-context-menu-trigger")}get _content(){return this==null?void 0:this.querySelector("div[part=context-menu-content]")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside),this.addEventListener("radio-selected",this._handleRadioSelected),this.addEventListener("close-context-menu",()=>{this.isOpen=!1,requestAnimationFrame(()=>{const t=this._content;t&&(t.style.display="none")})})}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}toggleDropdown(t){t.preventDefault(),t.stopPropagation();const{clientX:r,clientY:n}=t,e=t.target.getBoundingClientRect();requestAnimationFrame(()=>{const a=this._content;a&&(a.style.display="",a.style.position="absolute",a.style.left=`${r-e.left}px`,a.style.top=`${n-e.top}px`,a.dataset.state="open",this.isOpen=!0)})}updated(t){super.updated(t);const r=this._content;r&&(r.dataset.state=this.isOpen?"open":"close")}_handleRadioSelected(t){this.querySelectorAll("rtg-context-menu-radio-item").forEach(r=>{r!==t.target&&(r.checked=!1)})}getAttributesToExclude(){return[]}firstUpdated(t){var r;this.moveLightDomChildrenInto(this._containerElement),(r=this._triggerElement)==null||r.addEventListener("contextmenu",n=>{this.toggleDropdown(n)}),this.style.position="relative"}createRenderRoot(){return this}render(){return d.html`
|
|
3762
3762
|
<div class="${p("rtg-flex",this.className)}" part="context-menu"></div>
|
|
3763
|
-
`}},Br([l.state()],o.ContextMenu.prototype,"isOpen",2),o.ContextMenu=Br([l.customElement("rtg-context-menu")],o.ContextMenu);var as=Object.getOwnPropertyDescriptor,ss=(i,
|
|
3763
|
+
`}},Br([l.state()],o.ContextMenu.prototype,"isOpen",2),o.ContextMenu=Br([l.customElement("rtg-context-menu")],o.ContextMenu);var as=Object.getOwnPropertyDescriptor,ss=(i,t,r,n)=>{for(var e=n>1?void 0:n?as(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.CollapsibleTrigger=class extends h{getAttributesToExclude(){return[""]}get _containerElement(){return this.querySelector("div[part=collapsible-trigger]")}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}get _collapsible(){let t=this.parentElement;for(;t&&!(t instanceof o.Collapsible);)t=t.parentElement;return t}onTrigger(){const t=this._collapsible;t&&(t.open=!t.open,this.dispatchEvent(new CustomEvent("click-collapsible-event",{bubbles:!0,composed:!0})))}render(){const t=this.getFilteredAttributes();return d.html`
|
|
3764
3764
|
<div
|
|
3765
3765
|
@click=${this.onTrigger}
|
|
3766
|
-
${H(
|
|
3766
|
+
${H(t)}
|
|
3767
3767
|
part="collapsible-trigger"
|
|
3768
3768
|
></div>
|
|
3769
|
-
`}},o.CollapsibleTrigger=ss([l.customElement("rtg-collapsible-trigger")],o.CollapsibleTrigger);var ls=Object.getOwnPropertyDescriptor,cs=(i,
|
|
3769
|
+
`}},o.CollapsibleTrigger=ss([l.customElement("rtg-collapsible-trigger")],o.CollapsibleTrigger);var ls=Object.getOwnPropertyDescriptor,cs=(i,t,r,n)=>{for(var e=n>1?void 0:n?ls(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.CollapsibleContent=class extends h{constructor(){super(...arguments),this._toggleHandler=t=>{const r=t;requestAnimationFrame(()=>{const n=this._containerElement;n&&(n.style.display=r.detail.open?"block":"none")})}}get _containerElement(){return this.querySelector("div[part=collapsible-content]")}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}getAttributesToExclude(){return[""]}connectedCallback(){super.connectedCallback(),this.addEventListener("toggle-collapsible-content",this._toggleHandler)}disconnectedCallback(){this.removeEventListener("toggle-collapsible-content",this._toggleHandler),super.disconnectedCallback()}render(){const t=this.getFilteredAttributes();return d.html`
|
|
3770
3770
|
<div
|
|
3771
|
-
${H(
|
|
3771
|
+
${H(t)}
|
|
3772
3772
|
class="${p("",this.className)}"
|
|
3773
3773
|
style="display: none;--radix-collapsible-content-height: 100px; --radix-collapsible-content-width: 350px;"
|
|
3774
3774
|
part="collapsible-content"
|
|
3775
3775
|
></div>
|
|
3776
|
-
`}},o.CollapsibleContent=cs([l.customElement("rtg-collapsible-content")],o.CollapsibleContent);var ds=Object.defineProperty,us=Object.getOwnPropertyDescriptor,Ur=(i,
|
|
3776
|
+
`}},o.CollapsibleContent=cs([l.customElement("rtg-collapsible-content")],o.CollapsibleContent);var ds=Object.defineProperty,us=Object.getOwnPropertyDescriptor,Ur=(i,t,r,n)=>{for(var e=n>1?void 0:n?us(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&ds(t,r,e),e};o.Collapsible=class extends h{constructor(){super(...arguments),this.open=!1,this._clickHandler=()=>{var t;(t=this.querySelector("rtg-collapsible-content"))==null||t.dispatchEvent(new CustomEvent("toggle-collapsible-content",{detail:{open:this.open}}))}}getAttributesToExclude(){return[""]}createRenderRoot(){return this}get _containerElement(){return this.querySelector("div[part=collapsible]")}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}connectedCallback(){super.connectedCallback(),this.addEventListener("click-collapsible-event",this._clickHandler)}disconnectedCallback(){this.removeEventListener("click-collapsible-event",this._clickHandler),super.disconnectedCallback()}render(){const t=this.getFilteredAttributes();return d.html`
|
|
3777
3777
|
<div
|
|
3778
|
-
${H(
|
|
3778
|
+
${H(t)}
|
|
3779
3779
|
class="${p("",this.className)}"
|
|
3780
3780
|
part="collapsible"
|
|
3781
3781
|
></div>
|
|
3782
|
-
`}},Ur([l.property({type:Boolean})],o.Collapsible.prototype,"open",2),o.Collapsible=Ur([l.customElement("rtg-collapsible")],o.Collapsible);const gs="rtg-fixed rtg-hidden rtg-left-[50%] rtg-top-[50%] rtg-z-50 rtg-w-full rtg-max-w-lg rtg-translate-x-[-50%] rtg-translate-y-[-50%] rtg-gap-4 rtg-border rtg-bg-background rtg-p-6 rtg-shadow-lg rtg-duration-200 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-[state=closed]:rtg-slide-out-to-left-1/2 data-[state=closed]:rtg-slide-out-to-top-[48%] data-[state=open]:rtg-slide-in-from-left-1/2 data-[state=open]:rtg-slide-in-from-top-[48%] sm:rtg-rounded-lg",ps="rtg-flex rtg-flex-col-reverse sm:rtg-flex-row sm:rtg-justify-end sm:rtg-space-x-2",hs="rtg-flex rtg-flex-col rtg-space-y-1.5 rtg-text-center sm:rtg-text-left",ms="rtg-fixed rtg-inset-0 rtg-z-50 rtg-bg-black/80 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";var fs=Object.defineProperty,vs=Object.getOwnPropertyDescriptor,Fr=(i,
|
|
3782
|
+
`}},Ur([l.property({type:Boolean})],o.Collapsible.prototype,"open",2),o.Collapsible=Ur([l.customElement("rtg-collapsible")],o.Collapsible);const gs="rtg-fixed rtg-hidden rtg-left-[50%] rtg-top-[50%] rtg-z-50 rtg-w-full rtg-max-w-lg rtg-translate-x-[-50%] rtg-translate-y-[-50%] rtg-gap-4 rtg-border rtg-bg-background rtg-p-6 rtg-shadow-lg rtg-duration-200 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-[state=closed]:rtg-slide-out-to-left-1/2 data-[state=closed]:rtg-slide-out-to-top-[48%] data-[state=open]:rtg-slide-in-from-left-1/2 data-[state=open]:rtg-slide-in-from-top-[48%] sm:rtg-rounded-lg",ps="rtg-flex rtg-flex-col-reverse sm:rtg-flex-row sm:rtg-justify-end sm:rtg-space-x-2",hs="rtg-flex rtg-flex-col rtg-space-y-1.5 rtg-text-center sm:rtg-text-left",ms="rtg-fixed rtg-inset-0 rtg-z-50 rtg-bg-black/80 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";var fs=Object.defineProperty,vs=Object.getOwnPropertyDescriptor,Fr=(i,t,r,n)=>{for(var e=n>1?void 0:n?vs(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&fs(t,r,e),e};const Ne="closed";o.DialogContent=class extends h{constructor(){super(...arguments),this.state=Ne,this.handleCloseButtonClick=()=>{const t=this._dialog;t&&(t.dataset.state=Ne)}}get _containerElement(){return this.querySelector("div[part=dialog-content-slot]")}get ـcomponentElement(){return this.querySelector("div[part=dialog-content]")}get _dialog(){let t=this.parentElement;for(;t;){if(t instanceof o.Dialog)return t;t=t.parentElement}return t}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}updated(t){requestAnimationFrame(()=>{t.get("state")===Ne?this.ـcomponentElement.style.display="grid":this.ـcomponentElement.style.display="none"})}render(){return d.html`
|
|
3783
3783
|
<div
|
|
3784
3784
|
part="dialog-content"
|
|
3785
3785
|
class="${p(gs,this.className)}"
|
|
@@ -3809,14 +3809,14 @@ body {
|
|
|
3809
3809
|
</button>
|
|
3810
3810
|
<div part="dialog-content-slot"></div>
|
|
3811
3811
|
</div>
|
|
3812
|
-
`}},Fr([l.property({attribute:"data-state",type:String})],o.DialogContent.prototype,"state",2),o.DialogContent=Fr([l.customElement("rtg-dialog-content")],o.DialogContent);var bs=Object.getOwnPropertyDescriptor,ys=(i,
|
|
3812
|
+
`}},Fr([l.property({attribute:"data-state",type:String})],o.DialogContent.prototype,"state",2),o.DialogContent=Fr([l.customElement("rtg-dialog-content")],o.DialogContent);var bs=Object.getOwnPropertyDescriptor,ys=(i,t,r,n)=>{for(var e=n>1?void 0:n?bs(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};const ws="closed";o.DialogClose=class extends h{get _dialog(){let t=this.parentElement;for(;t;){if(t instanceof o.Dialog)return t;t=t.parentElement}return t}get _containerElement(){return this.querySelector("div[part=dialog-close]")}firstUpdated(t){super.firstUpdated(t),this.moveLightDomChildrenInto(this._containerElement),this.addEventListener("click",()=>{const r=this._dialog;r&&(r.dataset.state=ws)})}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}render(){return d.html`
|
|
3813
3813
|
<div class="${p("",this.className)}" part="dialog-close"></div>
|
|
3814
|
-
`}},o.DialogClose=ys([l.customElement("rtg-dialog-close")],o.DialogClose);var
|
|
3814
|
+
`}},o.DialogClose=ys([l.customElement("rtg-dialog-close")],o.DialogClose);var Cs=Object.getOwnPropertyDescriptor,_s=(i,t,r,n)=>{for(var e=n>1?void 0:n?Cs(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.DialogFooter=class extends h{get _containerElement(){return this.querySelector("div[part=dialog-footer]")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3815
3815
|
<div
|
|
3816
3816
|
part="dialog-footer"
|
|
3817
3817
|
class="${p(ps,this.className)}"
|
|
3818
3818
|
></div>
|
|
3819
|
-
`}},o.DialogFooter=
|
|
3819
|
+
`}},o.DialogFooter=_s([l.customElement("rtg-dialog-footer")],o.DialogFooter);var xs=Object.defineProperty,Es=Object.getOwnPropertyDescriptor,qe=(i,t,r,n)=>{for(var e=n>1?void 0:n?Es(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&xs(t,r,e),e};o.DialogHeader=class extends d.LitElement{constructor(){super(...arguments),this._title="",this.description=""}createRenderRoot(){return this}render(){return d.html`
|
|
3820
3820
|
<div
|
|
3821
3821
|
part="dialog-header"
|
|
3822
3822
|
class="${p(hs,this.className)}"
|
|
@@ -3832,18 +3832,18 @@ body {
|
|
|
3832
3832
|
${this.description}
|
|
3833
3833
|
</p>
|
|
3834
3834
|
</div>
|
|
3835
|
-
`}},
|
|
3835
|
+
`}},qe([l.property({attribute:"title",type:String})],o.DialogHeader.prototype,"_title",2),qe([l.property({type:String})],o.DialogHeader.prototype,"description",2),o.DialogHeader=qe([l.customElement("rtg-dialog-header")],o.DialogHeader);var $s=Object.getOwnPropertyDescriptor,Os=(i,t,r,n)=>{for(var e=n>1?void 0:n?$s(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.DialogOverlay=class extends d.LitElement{createRenderRoot(){return this}render(){return d.html`
|
|
3836
3836
|
<div
|
|
3837
3837
|
part="dialog-overly"
|
|
3838
3838
|
class="${p(ms,this.className)}"
|
|
3839
3839
|
></div>
|
|
3840
|
-
`}},o.DialogOverlay=Os([l.customElement("rtg-dialog-overlay")],o.DialogOverlay);var Ss=Object.getOwnPropertyDescriptor,Ps=(i,
|
|
3840
|
+
`}},o.DialogOverlay=Os([l.customElement("rtg-dialog-overlay")],o.DialogOverlay);var Ss=Object.getOwnPropertyDescriptor,Ps=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ss(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};const Ds="open";o.DialogTrigger=class extends h{constructor(){super(...arguments),this.handleClick=()=>{const t=this._dialog;t&&(t.dataset.state=Ds)}}get _dialog(){let t=this.parentElement;for(;t;){if(t instanceof o.Dialog)return t;t=t.parentElement}return t}get _containerElement(){return this.querySelector("div[part=dialog-trigger]")}firstUpdated(t){super.firstUpdated(t),this.moveLightDomChildrenInto(this._containerElement),this.addEventListener("click",r=>{r.stopPropagation(),this.handleClick()})}getAttributesToExclude(){return[]}createRenderRoot(){return this}render(){return d.html`
|
|
3841
3841
|
<div class="${p("",this.className)}" part="dialog-trigger"></div>
|
|
3842
|
-
`}},o.DialogTrigger=Ps([l.customElement("rtg-dialog-trigger")],o.DialogTrigger);var Rs=Object.defineProperty,ks=Object.getOwnPropertyDescriptor,Gr=(i,
|
|
3842
|
+
`}},o.DialogTrigger=Ps([l.customElement("rtg-dialog-trigger")],o.DialogTrigger);var Rs=Object.defineProperty,ks=Object.getOwnPropertyDescriptor,Gr=(i,t,r,n)=>{for(var e=n>1?void 0:n?ks(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Rs(t,r,e),e};const Is="open",Ts="closed";o.Dialog=class extends h{constructor(){super(...arguments),this.state=Ts}get _containerElement(){return this.querySelector("div[rtgdlg-root]")}get _content(){const t=this.querySelector("rtg-dialog-content");return t||null}updated(t){super.updated(t);const r=this._content;r&&(r.dataset.state=this.state)}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}getAttributesToExclude(){return[]}render(){return d.html`
|
|
3843
3843
|
<div rtgdlg-root class="${p("",this.className)}" part="dialog">
|
|
3844
3844
|
${this.state===Is?d.html` <rtg-dialog-overlay></rtg-dialog-overlay>`:d.nothing}
|
|
3845
3845
|
</div>
|
|
3846
|
-
`}},Gr([l.property({attribute:"data-state",type:String})],o.Dialog.prototype,"state",2),o.Dialog=Gr([l.customElement("rtg-dialog")],o.Dialog);const As="rtg-peer rtg-inline-flex rtg-h-5 rtg-w-9 rtg-shrink-0 rtg-cursor-pointer rtg-items-center rtg-rounded-full rtg-border-2 rtg-border-transparent rtg-shadow-sm rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-2 focus-visible:rtg-ring-ring focus-visible:rtg-ring-offset-2 focus-visible:rtg-ring-offset-background";var Ls=Object.defineProperty,Ms=Object.getOwnPropertyDescriptor,
|
|
3846
|
+
`}},Gr([l.property({attribute:"data-state",type:String})],o.Dialog.prototype,"state",2),o.Dialog=Gr([l.customElement("rtg-dialog")],o.Dialog);const As="rtg-peer rtg-inline-flex rtg-h-5 rtg-w-9 rtg-shrink-0 rtg-cursor-pointer rtg-items-center rtg-rounded-full rtg-border-2 rtg-border-transparent rtg-shadow-sm rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-2 focus-visible:rtg-ring-ring focus-visible:rtg-ring-offset-2 focus-visible:rtg-ring-offset-background";var Ls=Object.defineProperty,Ms=Object.getOwnPropertyDescriptor,ze=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ms(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Ls(t,r,e),e};o.Switch=class extends d.LitElement{constructor(){super(...arguments),this.checked=!1,this.disabled=!1}_toggleChecked(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("change",{detail:this.checked})))}createRenderRoot(){return this}render(){return d.html`
|
|
3847
3847
|
<div
|
|
3848
3848
|
part="switch"
|
|
3849
3849
|
@click="${this._toggleChecked}"
|
|
@@ -3860,13 +3860,13 @@ body {
|
|
|
3860
3860
|
style="transform: translateX(${this.checked?"16px":"0px"});"
|
|
3861
3861
|
></div>
|
|
3862
3862
|
</div>
|
|
3863
|
-
`}},
|
|
3863
|
+
`}},ze([l.property({type:Boolean,reflect:!0})],o.Switch.prototype,"checked",2),ze([l.property({type:Boolean})],o.Switch.prototype,"disabled",2),o.Switch=ze([l.customElement("rtg-switch")],o.Switch);const Be="closed",Ns="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",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 data-[disabled]:rtg-pointer-events-none data-[disabled]:rtg-opacity-50",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",Fs="rtg-mx-1 rtg-h-px rtg-bg-border";var Gs=Object.defineProperty,Vs=Object.getOwnPropertyDescriptor,Ue=(i,t,r,n)=>{for(var e=n>1?void 0:n?Vs(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Gs(t,r,e),e};o.DropdownMenuContent=class extends h{constructor(){super(...arguments),this.state=Be,this.isOpen=!1}get _dropdownMenu(){let t=this.parentElement;for(;t&&!(t instanceof o.DropdownMenu);)t=t.parentElement;return t}get _containerElement(){return this.querySelector("div[part=dropdown-menu-content]")}updated(t){super.updated(t),this.state==="open"?this.isOpen=!0:this.isOpen=!1}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3864
3864
|
<div
|
|
3865
3865
|
part="dropdown-menu-content"
|
|
3866
3866
|
class="${p(qs,this.className)}"
|
|
3867
3867
|
style="display: ${this.isOpen?"block":"none"};height:auto;z-index: 50"
|
|
3868
3868
|
></div>
|
|
3869
|
-
`}},
|
|
3869
|
+
`}},Ue([l.property({attribute:"data-state",type:String})],o.DropdownMenuContent.prototype,"state",2),Ue([l.state()],o.DropdownMenuContent.prototype,"isOpen",2),o.DropdownMenuContent=Ue([l.customElement("rtg-dropdown-menu-content")],o.DropdownMenuContent);var Hs=Object.defineProperty,Ys=Object.getOwnPropertyDescriptor,te=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ys(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Hs(t,r,e),e};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 t;return((t=this.textContent)==null?void 0:t.trim())||""}get _dropdownMenu(){let t=this.parentElement;for(;t&&!(t instanceof o.DropdownMenu);)t=t.parentElement;return t}handleMouseEvent(t){console.log(t,this.value),(t.type==="mouseover"||t.type==="focus")&&(this.selected=!0),t.type==="mouseleave"&&(this.selected=!1)}handleClickDefault(){this._dropdownMenu.isOpen=!1}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html` ${this._hidden==="true"?d.nothing:d.html`
|
|
3870
3870
|
<div
|
|
3871
3871
|
part="dropdown-menu-item"
|
|
3872
3872
|
class="${p(Bs,this.className)}"
|
|
@@ -3881,7 +3881,7 @@ body {
|
|
|
3881
3881
|
data-value="${this.value}"
|
|
3882
3882
|
aria-hidden="${this.hidden}"
|
|
3883
3883
|
></div>
|
|
3884
|
-
`}`}},
|
|
3884
|
+
`}`}},te([l.property({type:String})],o.DropdownMenuItem.prototype,"_id",2),te([l.property({attribute:"aria-hidden",type:String})],o.DropdownMenuItem.prototype,"_hidden",2),te([l.property({attribute:"data-value",type:String})],o.DropdownMenuItem.prototype,"value",1),te([l.property({type:Boolean})],o.DropdownMenuItem.prototype,"selected",2),o.DropdownMenuItem=te([l.customElement("rtg-dropdown-menu-item")],o.DropdownMenuItem);var js=Object.defineProperty,Ws=Object.getOwnPropertyDescriptor,xt=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ws(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&js(t,r,e),e};o.DropdownMenuRadioItem=class extends h{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}get _containerElement(){return this.querySelector("div[part=dropdown-menu-radio-item-container]")}handleMouseEvent(t){(t.type==="mouseover"||t.type==="focus")&&(this.selected=!0),t.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3885
3885
|
<div
|
|
3886
3886
|
part="dropdown-menu-radio"
|
|
3887
3887
|
class="${p(Us,this.disabled?"rtg-pointer-events-none rtg-opacity-50":"",this.className)}"
|
|
@@ -3900,16 +3900,16 @@ body {
|
|
|
3900
3900
|
<span
|
|
3901
3901
|
class="rtg-absolute rtg-left-2 rtg-flex rtg-items-center rtg-justify-center"
|
|
3902
3902
|
>
|
|
3903
|
-
${this.checked?d.html` ${
|
|
3903
|
+
${this.checked?d.html` ${ke()} `:d.nothing}
|
|
3904
3904
|
</span>
|
|
3905
3905
|
<div part="dropdown-menu-radio-item-container"></div>
|
|
3906
3906
|
</div>
|
|
3907
|
-
`}},
|
|
3907
|
+
`}},xt([l.property({type:String})],o.DropdownMenuRadioItem.prototype,"_id",2),xt([l.property({attribute:"aria-hidden",type:String})],o.DropdownMenuRadioItem.prototype,"_hidden",2),xt([l.property({attribute:"data-value",type:String})],o.DropdownMenuRadioItem.prototype,"value",1),xt([l.property({type:Boolean})],o.DropdownMenuRadioItem.prototype,"selected",2),xt([l.property({type:Boolean})],o.DropdownMenuRadioItem.prototype,"checked",2),xt([l.property({type:Boolean})],o.DropdownMenuRadioItem.prototype,"disabled",2),o.DropdownMenuRadioItem=xt([l.customElement("rtg-dropdown-menu-radio-item")],o.DropdownMenuRadioItem);var Xs=Object.getOwnPropertyDescriptor,Ks=(i,t,r,n)=>{for(var e=n>1?void 0:n?Xs(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.DropdownMenuSeparator=class extends h{get _containerElement(){return this.querySelector("div[part=dropdown-menu-seperator]")}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`<div
|
|
3908
3908
|
part="dropdown-menu-seperator"
|
|
3909
3909
|
class="${p(Fs,this.className)}"
|
|
3910
3910
|
rtgcmd-separator
|
|
3911
3911
|
role="separator"
|
|
3912
|
-
></div>`}},o.DropdownMenuSeparator=Ks([l.customElement("rtg-dropdown-menu-separator")],o.DropdownMenuSeparator);var Qs=Object.defineProperty,Zs=Object.getOwnPropertyDescriptor,
|
|
3912
|
+
></div>`}},o.DropdownMenuSeparator=Ks([l.customElement("rtg-dropdown-menu-separator")],o.DropdownMenuSeparator);var Qs=Object.defineProperty,Zs=Object.getOwnPropertyDescriptor,qt=(i,t,r,n)=>{for(var e=n>1?void 0:n?Zs(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Qs(t,r,e),e};o.DropdownMenuCheckboxItem=class extends h{constructor(){super(...arguments),this._id="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}get _containerElement(){return this.querySelector("div[part=dropdown-menu-checkbox-item-container]")}get _dropdownMenu(){let t=this.parentElement;for(;t&&!(t instanceof o.DropdownMenu);)t=t.parentElement;return t}handleMouseEvent(t){(t.type==="mouseover"||t.type==="focus")&&(this.selected=!0),t.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this._dropdownMenu.isOpen=!1,this.checked=!this.checked}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3913
3913
|
<div
|
|
3914
3914
|
part="dropdown-menu-item"
|
|
3915
3915
|
class="${p(Ns,this.disabled?"rtg-pointer-events-none rtg-opacity-50":"",this.className)}"
|
|
@@ -3943,7 +3943,7 @@ body {
|
|
|
3943
3943
|
</span>
|
|
3944
3944
|
<div part="dropdown-menu-checkbox-item-container"></div>
|
|
3945
3945
|
</div>
|
|
3946
|
-
`}},
|
|
3946
|
+
`}},qt([l.property({type:String})],o.DropdownMenuCheckboxItem.prototype,"_id",2),qt([l.property({attribute:"data-value",type:String})],o.DropdownMenuCheckboxItem.prototype,"value",1),qt([l.property({type:Boolean})],o.DropdownMenuCheckboxItem.prototype,"selected",2),qt([l.property({type:Boolean})],o.DropdownMenuCheckboxItem.prototype,"checked",2),qt([l.property({type:Boolean})],o.DropdownMenuCheckboxItem.prototype,"disabled",2),o.DropdownMenuCheckboxItem=qt([l.customElement("rtg-dropdown-menu-checkbox-item")],o.DropdownMenuCheckboxItem);var Js=Object.defineProperty,tl=Object.getOwnPropertyDescriptor,ce=(i,t,r,n)=>{for(var e=n>1?void 0:n?tl(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Js(t,r,e),e};o.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(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`${this._hidden==="true"?d.nothing:d.html`
|
|
3947
3947
|
<div
|
|
3948
3948
|
part="dropdown-menu-group"
|
|
3949
3949
|
class="${p(zs,this.className)}"
|
|
@@ -3953,15 +3953,15 @@ body {
|
|
|
3953
3953
|
<div rtgcmd-group-heading>${this.heading}</div>
|
|
3954
3954
|
<div rtgcmd-group-items role="group"></div>
|
|
3955
3955
|
</div>
|
|
3956
|
-
`}`}},
|
|
3956
|
+
`}`}},ce([l.property({type:String})],o.DropdownMenuGroup.prototype,"heading",2),ce([l.property({attribute:"id",type:String})],o.DropdownMenuGroup.prototype,"_id",2),ce([l.property({attribute:"aria-hidden",type:String})],o.DropdownMenuGroup.prototype,"_hidden",2),o.DropdownMenuGroup=ce([l.customElement("rtg-dropdown-menu-group")],o.DropdownMenuGroup);var el=Object.getOwnPropertyDescriptor,rl=(i,t,r,n)=>{for(var e=n>1?void 0:n?el(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.DropdownMenuTrigger=class extends d.LitElement{createRenderRoot(){return this}render(){return d.html``}},o.DropdownMenuTrigger=rl([l.customElement("rtg-dropdown-menu-trigger")],o.DropdownMenuTrigger);var nl=Object.defineProperty,ol=Object.getOwnPropertyDescriptor,Vr=(i,t,r,n)=>{for(var e=n>1?void 0:n?ol(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&nl(t,r,e),e};o.DropdownMenu=class extends h{constructor(){super(...arguments),this.isOpen=!1,this.handleClickOutside=t=>{var n,e;const r=t.target;!((n=this._containerElement)!=null&&n.contains(r))&&!((e=this._triggerElement)!=null&&e.contains(r))&&(this.isOpen=!1,o.DropdownMenu._openInstance===this&&(o.DropdownMenu._openInstance=null))}}get _triggerElement(){return this.querySelector("rtg-dropdown-menu-trigger")}get _containerElement(){return this.querySelector("div[part=dropdown-menu]")}get _content(){return this.querySelector("rtg-dropdown-menu-content")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside),this.addEventListener("radio-selected",this._handleRadioSelected)}toggleDropdown(t){t.stopPropagation();const r=this.isOpen;this.isOpen=!this.isOpen,this.isOpen?(o.DropdownMenu._openInstance&&o.DropdownMenu._openInstance!==this&&(o.DropdownMenu._openInstance.isOpen=!1),o.DropdownMenu._openInstance=this):r&&o.DropdownMenu._openInstance===this&&(o.DropdownMenu._openInstance=null)}disconnectedCallback(){o.DropdownMenu._openInstance===this&&(o.DropdownMenu._openInstance=null),document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}updated(t){super.updated(t);const r=this._content;r&&(r.dataset.state=this.isOpen?"open":"close")}firstUpdated(t){var r;this.moveLightDomChildrenInto(this._containerElement),(r=this._triggerElement)==null||r.addEventListener("click",n=>this.toggleDropdown(n))}_handleRadioSelected(t){this.isOpen=!1,this.querySelectorAll("rtg-dropdown-menu-radio-item").forEach(r=>{r!==t.target&&(r.checked=!1)})}createRenderRoot(){return this}render(){return d.html`
|
|
3957
3957
|
<div
|
|
3958
3958
|
class="${p("rtg-w-fit",this.className)}"
|
|
3959
3959
|
part="dropdown-menu"
|
|
3960
3960
|
></div>
|
|
3961
|
-
`}},o.DropdownMenu._openInstance=null,Vr([l.state()],o.DropdownMenu.prototype,"isOpen",2),o.DropdownMenu=Vr([l.customElement("rtg-dropdown-menu")],o.DropdownMenu);const il="rtg-flex rtg-min-h-[80px] rtg-w-full rtg-rounded-md rtg-border rtg-border-input rtg-bg-background rtg-px-3 rtg-py-2 rtg-text-sm rtg-ring-offset-background placeholder:rtg-text-muted-foreground focus-visible:rtg-outline-none focus-visible:rtg-ring-2 focus-visible:rtg-ring-ring focus-visible:rtg-ring-offset-2 disabled:rtg-cursor-not-allowed disabled:rtg-opacity-50";var al=Object.defineProperty,sl=Object.getOwnPropertyDescriptor,
|
|
3961
|
+
`}},o.DropdownMenu._openInstance=null,Vr([l.state()],o.DropdownMenu.prototype,"isOpen",2),o.DropdownMenu=Vr([l.customElement("rtg-dropdown-menu")],o.DropdownMenu);const il="rtg-flex rtg-min-h-[80px] rtg-w-full rtg-rounded-md rtg-border rtg-border-input rtg-bg-background rtg-px-3 rtg-py-2 rtg-text-sm rtg-ring-offset-background placeholder:rtg-text-muted-foreground focus-visible:rtg-outline-none focus-visible:rtg-ring-2 focus-visible:rtg-ring-ring focus-visible:rtg-ring-offset-2 disabled:rtg-cursor-not-allowed disabled:rtg-opacity-50";var al=Object.defineProperty,sl=Object.getOwnPropertyDescriptor,Et=(i,t,r,n)=>{for(var e=n>1?void 0:n?sl(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&al(t,r,e),e};o.TextArea=class extends h{constructor(){super(),this.disabled=!1,this.placeholder="",this.defaultValue="",this.rows=4,this.cols=50,this.value="",this.value=this.value||this.defaultValue}firstUpdated(t){this.value=this.defaultValue}handleInputChange(t){const r=t.target;this.value=r.value}getAttributesToExclude(){return["disabled","type","placeholder","value","data-testid"]}createRenderRoot(){return this}render(){const t=this.getFilteredAttributes();return d.html`
|
|
3962
3962
|
<textarea
|
|
3963
3963
|
part="textarea"
|
|
3964
|
-
${H(
|
|
3964
|
+
${H(t)}
|
|
3965
3965
|
class="${p(il,this.className)}"
|
|
3966
3966
|
placeholder="${this.placeholder}"
|
|
3967
3967
|
.value=${this.value}
|
|
@@ -3970,7 +3970,7 @@ body {
|
|
|
3970
3970
|
?disabled=${this.disabled}
|
|
3971
3971
|
@change="${this.handleInputChange}"
|
|
3972
3972
|
/>
|
|
3973
|
-
`}},
|
|
3973
|
+
`}},Et([l.property({type:Boolean})],o.TextArea.prototype,"disabled",2),Et([l.property({type:String})],o.TextArea.prototype,"placeholder",2),Et([l.property({type:String})],o.TextArea.prototype,"defaultValue",2),Et([l.property({type:Number})],o.TextArea.prototype,"rows",2),Et([l.property({type:Number})],o.TextArea.prototype,"cols",2),Et([l.property({type:String})],o.TextArea.prototype,"value",2),o.TextArea=Et([l.customElement("rtg-textarea")],o.TextArea);const ll="unChecked",cl="rtg-flex rtg-items-center rtg-space-x-2",dl="rtg-grid rtg-gap-2";var ul=Object.defineProperty,gl=Object.getOwnPropertyDescriptor,zt=(i,t,r,n)=>{for(var e=n>1?void 0:n?gl(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&ul(t,r,e),e};o.RadioGroupItem=class extends h{constructor(){super(...arguments),this.checked=!1,this.tabindex=0,this.value="",this.id="radio-group-item",this.state=ll}get _containerElement(){return this.querySelector("div[part=radio-group-item]")}_onClick(t){t.defaultPrevented||this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3974
3974
|
<div
|
|
3975
3975
|
class="${p(cl,this.className)}"
|
|
3976
3976
|
part="radio-group-item"
|
|
@@ -4001,18 +4001,18 @@ body {
|
|
|
4001
4001
|
>${this.value}</label
|
|
4002
4002
|
>
|
|
4003
4003
|
</div>
|
|
4004
|
-
`}},
|
|
4004
|
+
`}},zt([l.property({type:Boolean,reflect:!0})],o.RadioGroupItem.prototype,"checked",2),zt([l.property({type:Number})],o.RadioGroupItem.prototype,"tabindex",2),zt([l.property({type:String})],o.RadioGroupItem.prototype,"value",2),zt([l.property({type:String})],o.RadioGroupItem.prototype,"id",2),zt([l.property({attribute:"data-state",type:String})],o.RadioGroupItem.prototype,"state",2),o.RadioGroupItem=zt([l.customElement("rtg-radio-group-item")],o.RadioGroupItem);var pl=Object.getOwnPropertyDescriptor,hl=(i,t,r,n)=>{for(var e=n>1?void 0:n?pl(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.RadioGroup=class extends h{get _containerElement(){return this.querySelector("div[part=radio-group]")}connectedCallback(){super.connectedCallback(),this.addEventListener("radio-selected",this._handleRadioSelected)}_handleRadioSelected(t){this.querySelectorAll("rtg-radio-group-item").forEach(r=>{r!==t.target&&(r.checked=!1)})}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4005
4005
|
<div
|
|
4006
4006
|
part="radio-group"
|
|
4007
4007
|
class="${p(dl,this.className)}"
|
|
4008
4008
|
style="outline: none;"
|
|
4009
4009
|
></div>
|
|
4010
|
-
`}},o.RadioGroup=hl([l.customElement("rtg-radio-group")],o.RadioGroup);const ml=Z("rtg-inline-flex rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-sm rtg-text-sm rtg-font-medium rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-1 focus-visible:rtg-ring-ring disabled:rtg-pointer-events-none disabled:rtg-opacity-50",{variants:{variant:{outline:"rtg-border rtg-border-input rtg-bg-background rtg-shadow-sm hover:rtg-bg-accent hover:rtg-text-accent-foreground",ghost:"hover:rtg-bg-accent hover:rtg-text-accent-foreground"},size:{default:"rtg-h-8 rtg-px-4 rtg-py-2",sm:"rtg-h-7 rtg-rounded-sm px-3 rtg-text-xs",lg:"rtg-h-9 rtg-rounded-sm px-8",icon:"rtg-h-8 rtg-w-8"}},defaultVariants:{variant:"ghost",size:"default"}}),fl="rtg-flex rtg-flex-row rtg-items-center rtg-gap-1",vl="rtg-flex rtg-h-9 rtg-w-9 rtg-items-center rtg-justify-center",bl="rtg-gap-1 rtg-pl-2.5",yl="rtg-gap-1 rtg-pl-2.5",wl="rtg-mx-auto rtg-flex rtg-w-full rtg-justify-center";var
|
|
4010
|
+
`}},o.RadioGroup=hl([l.customElement("rtg-radio-group")],o.RadioGroup);const ml=Z("rtg-inline-flex rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-sm rtg-text-sm rtg-font-medium rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-1 focus-visible:rtg-ring-ring disabled:rtg-pointer-events-none disabled:rtg-opacity-50",{variants:{variant:{outline:"rtg-border rtg-border-input rtg-bg-background rtg-shadow-sm hover:rtg-bg-accent hover:rtg-text-accent-foreground",ghost:"hover:rtg-bg-accent hover:rtg-text-accent-foreground"},size:{default:"rtg-h-8 rtg-px-4 rtg-py-2",sm:"rtg-h-7 rtg-rounded-sm px-3 rtg-text-xs",lg:"rtg-h-9 rtg-rounded-sm px-8",icon:"rtg-h-8 rtg-w-8"}},defaultVariants:{variant:"ghost",size:"default"}}),fl="rtg-flex rtg-flex-row rtg-items-center rtg-gap-1",vl="rtg-flex rtg-h-9 rtg-w-9 rtg-items-center rtg-justify-center",bl="rtg-gap-1 rtg-pl-2.5",yl="rtg-gap-1 rtg-pl-2.5",wl="rtg-mx-auto rtg-flex rtg-w-full rtg-justify-center";var Cl=Object.getOwnPropertyDescriptor,_l=(i,t,r,n)=>{for(var e=n>1?void 0:n?Cl(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.PaginationContent=class extends h{get _containerElement(){return this.querySelector("ul[part=pagination-content]")}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4011
4011
|
<ul
|
|
4012
4012
|
part="pagination-content"
|
|
4013
4013
|
class="${p(fl,this.className)}"
|
|
4014
4014
|
></ul>
|
|
4015
|
-
`}},o.PaginationContent=
|
|
4015
|
+
`}},o.PaginationContent=_l([l.customElement("rtg-pagination-content")],o.PaginationContent);var xl=Object.defineProperty,El=Object.getOwnPropertyDescriptor,Bt=(i,t,r,n)=>{for(var e=n>1?void 0:n?El(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&xl(t,r,e),e};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(t){this.moveLightDomChildrenInto(this._containerElement)}updated(t){super.updated(t),this.state==="open"?this.isActive=!0:this.isActive=!1}render(){return d.html`
|
|
4016
4016
|
<a
|
|
4017
4017
|
part="pagination-link"
|
|
4018
4018
|
data-state="${this.isActive}"
|
|
@@ -4022,13 +4022,13 @@ body {
|
|
|
4022
4022
|
class="${p(o.PaginationLink.paginationVariants({variant:this.isActive?"outline":"ghost",size:this.size,className:this.className}),this.className)}"
|
|
4023
4023
|
>
|
|
4024
4024
|
</a>
|
|
4025
|
-
`}},o.PaginationLink.paginationVariants=ml,
|
|
4025
|
+
`}},o.PaginationLink.paginationVariants=ml,Bt([l.property({attribute:"data-state",type:String})],o.PaginationLink.prototype,"state",2),Bt([l.property({type:Boolean})],o.PaginationLink.prototype,"isActive",2),Bt([l.property({type:String})],o.PaginationLink.prototype,"size",2),Bt([l.property({type:String})],o.PaginationLink.prototype,"variant",2),Bt([l.property({type:String})],o.PaginationLink.prototype,"href",2),o.PaginationLink=Bt([l.customElement("rtg-pagination-link")],o.PaginationLink);var $l=Object.defineProperty,Ol=Object.getOwnPropertyDescriptor,Fe=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ol(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&$l(t,r,e),e};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 t=(r=this._containerElement)==null?void 0:r.children;if(t){for(let n=0;n<t.length;n++)if(t[n]instanceof o.PaginationLink)return t[n]}return null}updated(t){super.updated(t);const r=this._content;r&&(r.dataset.state=this.isActive?"open":"close")}handleClick(t){t.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 t=(n=this._containerElement)==null?void 0:n.children,r=[];for(let e=0;e<t.length-1;e+=1){const a=t[e],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 t=new CustomEvent("unique-ids-generated",{detail:{ids:this.uniqueIds},bubbles:!0,composed:!0});this.dispatchEvent(t)}createRenderRoot(){return this}render(){return d.html`
|
|
4026
4026
|
<li
|
|
4027
4027
|
@click="${this.handleClick}"
|
|
4028
4028
|
part="pagination-item"
|
|
4029
4029
|
class="${p("",this.className)}"
|
|
4030
4030
|
></li>
|
|
4031
|
-
`}},
|
|
4031
|
+
`}},Fe([l.state()],o.PaginationItem.prototype,"uniqueIds",2),Fe([l.property({type:Boolean})],o.PaginationItem.prototype,"isActive",2),o.PaginationItem=Fe([l.customElement("rtg-pagination-item")],o.PaginationItem);var Sl=Object.getOwnPropertyDescriptor,Pl=(i,t,r,n)=>{for(var e=n>1?void 0:n?Sl(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.PaginationEllipsis=class extends h{get _containerElement(){return this.querySelector("div[part=pagination-ellipsis]")}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4032
4032
|
<span
|
|
4033
4033
|
part="pagination-ellipsis"
|
|
4034
4034
|
class="${p(vl,this.className)}"
|
|
@@ -4053,7 +4053,7 @@ body {
|
|
|
4053
4053
|
</span>
|
|
4054
4054
|
<div part="pagination-ellipsis"></div>
|
|
4055
4055
|
</span>
|
|
4056
|
-
`}},o.PaginationEllipsis=Pl([l.customElement("rtg-pagination-ellipsis")],o.PaginationEllipsis);var Dl=Object.getOwnPropertyDescriptor,Rl=(i,
|
|
4056
|
+
`}},o.PaginationEllipsis=Pl([l.customElement("rtg-pagination-ellipsis")],o.PaginationEllipsis);var Dl=Object.getOwnPropertyDescriptor,Rl=(i,t,r,n)=>{for(var e=n>1?void 0:n?Dl(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.PaginationNext=class extends h{get _containerElement(){return this.querySelector("div[part=pagination-next]")}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4057
4057
|
<rtg-pagination-link
|
|
4058
4058
|
class="${p(bl,this.className)}"
|
|
4059
4059
|
aria-label="Go to next page"
|
|
@@ -4076,7 +4076,7 @@ body {
|
|
|
4076
4076
|
</svg>
|
|
4077
4077
|
<div part="pagination-next"></div>
|
|
4078
4078
|
</rtg-pagination-link>
|
|
4079
|
-
`}},o.PaginationNext=Rl([l.customElement("rtg-pagination-next")],o.PaginationNext);var kl=Object.getOwnPropertyDescriptor,Il=(i,
|
|
4079
|
+
`}},o.PaginationNext=Rl([l.customElement("rtg-pagination-next")],o.PaginationNext);var kl=Object.getOwnPropertyDescriptor,Il=(i,t,r,n)=>{for(var e=n>1?void 0:n?kl(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.PaginationPrevious=class extends h{get _containerElement(){return this.querySelector("div[part=pagination-previous]")}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4080
4080
|
<rtg-pagination-link
|
|
4081
4081
|
class="${p(yl,this.className)}"
|
|
4082
4082
|
aria-label="Go to previous page"
|
|
@@ -4099,14 +4099,14 @@ body {
|
|
|
4099
4099
|
<span>Previous</span>
|
|
4100
4100
|
<div part="pagination-previous"></div>
|
|
4101
4101
|
</rtg-pagination-link>
|
|
4102
|
-
`}},o.PaginationPrevious=Il([l.customElement("rtg-pagination-previous")],o.PaginationPrevious);var Tl=Object.getOwnPropertyDescriptor,Al=(i,
|
|
4102
|
+
`}},o.PaginationPrevious=Il([l.customElement("rtg-pagination-previous")],o.PaginationPrevious);var Tl=Object.getOwnPropertyDescriptor,Al=(i,t,r,n)=>{for(var e=n>1?void 0:n?Tl(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.Pagination=class extends h{get _containerElement(){return this.querySelector("nav[part=pagination]")}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4103
4103
|
<nav
|
|
4104
4104
|
part="pagination"
|
|
4105
4105
|
role="navigation"
|
|
4106
4106
|
aria-label="pagination"
|
|
4107
4107
|
class="${p(wl,this.className)}"
|
|
4108
4108
|
></nav>
|
|
4109
|
-
`}},o.Pagination=Al([l.customElement("rtg-pagination")],o.Pagination);var Ll=Object.defineProperty,Ml=Object.getOwnPropertyDescriptor,Hr=(i,
|
|
4109
|
+
`}},o.Pagination=Al([l.customElement("rtg-pagination")],o.Pagination);var Ll=Object.defineProperty,Ml=Object.getOwnPropertyDescriptor,Hr=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ml(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Ll(t,r,e),e};const Nl="open",Yr="closed";o.DrawerContent=class extends h{constructor(){super(...arguments),this.state=Yr}connectedCallback(){super.connectedCallback();const t=document.createElement("style");t.textContent=`
|
|
4110
4110
|
@keyframes slideInUp {
|
|
4111
4111
|
from { transform: translateY(100%); }
|
|
4112
4112
|
to { transform: translateY(0); }
|
|
@@ -4126,7 +4126,7 @@ body {
|
|
|
4126
4126
|
.drawer-closed {
|
|
4127
4127
|
animation: slideOutDown 0.5s cubic-bezier(0.32, 0.72, 0, 1) forwards;
|
|
4128
4128
|
}
|
|
4129
|
-
`,this.querySelector("style[data-injected]")||(
|
|
4129
|
+
`,this.querySelector("style[data-injected]")||(t.setAttribute("data-injected","true"),this.prepend(t))}get _containerElement(){return this.querySelector("div[part=drawer-content-slot]")}get ـcomponentElement(){return this.querySelector("div[part=drawer-content]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}updated(t){requestAnimationFrame(()=>{t.get("state")===Yr?this.ـcomponentElement.style.display="grid":this.ـcomponentElement.style.display="none"})}render(){return d.html`
|
|
4130
4130
|
<div
|
|
4131
4131
|
part="drawer-content"
|
|
4132
4132
|
style="border-top-left-radius: 10px;
|
|
@@ -4146,19 +4146,19 @@ body {
|
|
|
4146
4146
|
>
|
|
4147
4147
|
<div part="drawer-content-slot"></div>
|
|
4148
4148
|
</div>
|
|
4149
|
-
`}},Hr([l.property({attribute:"data-state",type:String})],o.DrawerContent.prototype,"state",2),o.DrawerContent=Hr([l.customElement("rtg-drawer-content")],o.DrawerContent);var ql=Object.getOwnPropertyDescriptor,zl=(i,
|
|
4149
|
+
`}},Hr([l.property({attribute:"data-state",type:String})],o.DrawerContent.prototype,"state",2),o.DrawerContent=Hr([l.customElement("rtg-drawer-content")],o.DrawerContent);var ql=Object.getOwnPropertyDescriptor,zl=(i,t,r,n)=>{for(var e=n>1?void 0:n?ql(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};const Bl="closed";o.DrawerClose=class extends h{get _drawer(){let t=this.parentElement;for(;t;){if(t instanceof o.Drawer)return t;t=t.parentElement}return t}get _containerElement(){return this.querySelector("div[part=drawer-close]")}async firstUpdated(t){super.firstUpdated(t),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",e=>{e.stopPropagation();const a=this._drawer;a&&(a.dataset.state=Bl)})}}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}render(){return d.html`
|
|
4150
4150
|
<div class="${p("",this.className)}" part="drawer-close"></div>
|
|
4151
|
-
`}},o.DrawerClose=zl([l.customElement("rtg-drawer-close")],o.DrawerClose);const Ul="rtg-text-sm rtg-text-muted-foreground",Fl="rtg-mt-auto rtg-flex rtg-flex-col rtg-gap-2 rtg-p-4",Gl="rtg-grid rtg-gap-1.5 rtg-p-4 rtg-text-center sm:rtg-text-left",Vl="rtg-fixed rtg-inset-0 rtg-z-50 rtg-bg-black/80",Hl="rtg-text-lg rtg-font-semibold rtg-leading-none rtg-tracking-tight";var Yl=Object.getOwnPropertyDescriptor,jl=(i,
|
|
4151
|
+
`}},o.DrawerClose=zl([l.customElement("rtg-drawer-close")],o.DrawerClose);const Ul="rtg-text-sm rtg-text-muted-foreground",Fl="rtg-mt-auto rtg-flex rtg-flex-col rtg-gap-2 rtg-p-4",Gl="rtg-grid rtg-gap-1.5 rtg-p-4 rtg-text-center sm:rtg-text-left",Vl="rtg-fixed rtg-inset-0 rtg-z-50 rtg-bg-black/80",Hl="rtg-text-lg rtg-font-semibold rtg-leading-none rtg-tracking-tight";var Yl=Object.getOwnPropertyDescriptor,jl=(i,t,r,n)=>{for(var e=n>1?void 0:n?Yl(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.DrawerFooter=class extends h{get _containerElement(){return this.querySelector("div[part=drawer-footer]")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4152
4152
|
<div
|
|
4153
4153
|
part="drawer-footer"
|
|
4154
4154
|
class="${p(Fl,this.className)}"
|
|
4155
4155
|
></div>
|
|
4156
|
-
`}},o.DrawerFooter=jl([l.customElement("rtg-drawer-footer")],o.DrawerFooter);var Wl=Object.defineProperty,Xl=Object.getOwnPropertyDescriptor,
|
|
4156
|
+
`}},o.DrawerFooter=jl([l.customElement("rtg-drawer-footer")],o.DrawerFooter);var Wl=Object.defineProperty,Xl=Object.getOwnPropertyDescriptor,Ge=(i,t,r,n)=>{for(var e=n>1?void 0:n?Xl(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Wl(t,r,e),e};o.DrawerHeader=class extends d.LitElement{constructor(){super(...arguments),this._title="",this.description=""}createRenderRoot(){return this}render(){return d.html`
|
|
4157
4157
|
<div
|
|
4158
4158
|
part="drawer-header"
|
|
4159
4159
|
class="${p(Gl,this.className)}"
|
|
4160
4160
|
></div>
|
|
4161
|
-
`}},
|
|
4161
|
+
`}},Ge([l.property({attribute:"title",type:String})],o.DrawerHeader.prototype,"_title",2),Ge([l.property({type:String})],o.DrawerHeader.prototype,"description",2),o.DrawerHeader=Ge([l.customElement("rtg-drawer-header")],o.DrawerHeader);var Kl=Object.defineProperty,Ql=Object.getOwnPropertyDescriptor,jr=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ql(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Kl(t,r,e),e};o.DrawerTitle=class extends h{constructor(){super(...arguments),this.title=""}get _containerElement(){return this.querySelector("div[part=drawer-title")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4162
4162
|
<h2
|
|
4163
4163
|
part="drawer-title"
|
|
4164
4164
|
style="margin-left:16px"
|
|
@@ -4166,14 +4166,14 @@ body {
|
|
|
4166
4166
|
>
|
|
4167
4167
|
${this.title}
|
|
4168
4168
|
</h2>
|
|
4169
|
-
`}},jr([l.property({type:String})],o.DrawerTitle.prototype,"title",2),o.DrawerTitle=jr([l.customElement("rtg-drawer-title")],o.DrawerTitle);var Zl=Object.getOwnPropertyDescriptor,Jl=(i,
|
|
4169
|
+
`}},jr([l.property({type:String})],o.DrawerTitle.prototype,"title",2),o.DrawerTitle=jr([l.customElement("rtg-drawer-title")],o.DrawerTitle);var Zl=Object.getOwnPropertyDescriptor,Jl=(i,t,r,n)=>{for(var e=n>1?void 0:n?Zl(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.DrawerOverlay=class extends d.LitElement{createRenderRoot(){return this}render(){return d.html`
|
|
4170
4170
|
<div
|
|
4171
4171
|
part="drawer-overly"
|
|
4172
4172
|
class="${p(Vl,this.className)}"
|
|
4173
4173
|
></div>
|
|
4174
|
-
`}},o.DrawerOverlay=Jl([l.customElement("rtg-drawer-overlay")],o.DrawerOverlay);var
|
|
4174
|
+
`}},o.DrawerOverlay=Jl([l.customElement("rtg-drawer-overlay")],o.DrawerOverlay);var tc=Object.getOwnPropertyDescriptor,ec=(i,t,r,n)=>{for(var e=n>1?void 0:n?tc(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};const rc="open";o.DrawerTrigger=class extends h{constructor(){super(...arguments),this.handleClick=()=>{const t=this._drawer;t&&(t.dataset.state=rc)}}get _drawer(){let t=this.parentElement;for(;t;){if(t instanceof o.Drawer)return t;t=t.parentElement}return t}get _containerElement(){return this.querySelector("div[part=drawer-trigger]")}firstUpdated(t){super.firstUpdated(t),this.moveLightDomChildrenInto(this._containerElement),this.addEventListener("click",r=>{r.stopPropagation(),this.handleClick()})}getAttributesToExclude(){return[]}createRenderRoot(){return this}render(){return d.html`
|
|
4175
4175
|
<div class="${p("",this.className)}" part="drawer-trigger"></div>
|
|
4176
|
-
`}},o.DrawerTrigger=
|
|
4176
|
+
`}},o.DrawerTrigger=ec([l.customElement("rtg-drawer-trigger")],o.DrawerTrigger);var nc=Object.defineProperty,oc=Object.getOwnPropertyDescriptor,Wr=(i,t,r,n)=>{for(var e=n>1?void 0:n?oc(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&nc(t,r,e),e};o.DrawerDescription=class extends h{constructor(){super(...arguments),this.description=""}get _containerElement(){return this.querySelector("div[part=drawer-description")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4177
4177
|
<p
|
|
4178
4178
|
part="drawer-description"
|
|
4179
4179
|
style="margin-left:16px"
|
|
@@ -4181,13 +4181,13 @@ body {
|
|
|
4181
4181
|
>
|
|
4182
4182
|
${this.description}
|
|
4183
4183
|
</p>
|
|
4184
|
-
`}},Wr([l.property({type:String})],o.DrawerDescription.prototype,"description",2),o.DrawerDescription=Wr([l.customElement("rtg-drawer-description")],o.DrawerDescription);var ic=Object.defineProperty,ac=Object.getOwnPropertyDescriptor,Xr=(i,
|
|
4184
|
+
`}},Wr([l.property({type:String})],o.DrawerDescription.prototype,"description",2),o.DrawerDescription=Wr([l.customElement("rtg-drawer-description")],o.DrawerDescription);var ic=Object.defineProperty,ac=Object.getOwnPropertyDescriptor,Xr=(i,t,r,n)=>{for(var e=n>1?void 0:n?ac(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&ic(t,r,e),e};const Ve="open",Kr="closed";o.Drawer=class extends h{constructor(){super(...arguments),this.state=Kr,this.handleOutsideClick=t=>{const r=this._content;this.state===Ve&&r&&(r.contains(t.target)||(this.state=Kr,this.dispatchEvent(new CustomEvent("drawer-close"))))}}get _containerElement(){return this.querySelector("div[rtgdlg-root]")}get _content(){const t=this.querySelector("rtg-drawer-content");return t||null}connectedCallback(){super.connectedCallback(),this.setupOutsideClickHandler()}disconnectedCallback(){super.disconnectedCallback(),this.removeOutsideClickHandler()}updated(t){super.updated(t);const r=this._content;r&&(r.dataset.state=this.state),t.has("state")&&this.setupOutsideClickHandler()}setupOutsideClickHandler(){this.state===Ve?document.addEventListener("click",this.handleOutsideClick):this.removeOutsideClickHandler()}removeOutsideClickHandler(){document.removeEventListener("click",this.handleOutsideClick)}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}getAttributesToExclude(){return[]}render(){return d.html`
|
|
4185
4185
|
<div class="${p("",this.className)}" rtgdlg-root part="drawer">
|
|
4186
|
-
${this.state===
|
|
4186
|
+
${this.state===Ve?d.html` <rtg-drawer-overlay></rtg-drawer-overlay>`:d.nothing}
|
|
4187
4187
|
</div>
|
|
4188
|
-
`}},Xr([l.property({attribute:"data-state",type:String})],o.Drawer.prototype,"state",2),o.Drawer=Xr([l.customElement("rtg-drawer")],o.Drawer);const sc="rtg-absolute rtg-z-50 rtg-mt-1 rtg-max-h-72 rtg-w-full rtg-overflow-hidden rtg-overflow-y-auto rtg-rounded-md rtg-border rtg-border-gray-200 rtg-bg-white rtg-px-1 rtg-py-2 rtg-shadow-md dark:rtg-border-neutral-700 dark:rtg-bg-neutral-900",lc="rtg-flex rtg-w-full rtg-cursor-pointer rtg-items-center rtg-justify-between rtg-rounded-lg rtg-px-4 rtg-py-2 hover:rtg-bg-gray-100 focus:rtg-bg-gray-100 focus:rtg-outline-none dark:rtg-bg-neutral-900 dark:rtg-text-neutral-200 dark:hover:rtg-bg-neutral-800 dark:focus:rtg-bg-neutral-800",cc="rtg-px-4 rtg-w-full rtg-text-base rtg-font-bold",dc="rtg-absolute rtg-z-50 rtg-max-h-72 rtg-w-full rtg-overflow-hidden rtg-overflow-y-auto rtg-rounded-lg rtg-border rtg-border-gray-200 bg-white p-1 dark:rtg-border-neutral-700 dark:rtg-bg-neutral-900 [&::-webkit-scrollbar-thumb]:rtg-rounded-full [&::-webkit-scrollbar-thumb]:rtg-bg-gray-300 dark:[&::-webkit-scrollbar-thumb]:rtg-bg-neutral-500 [&::-webkit-scrollbar-track]:rtg-bg-gray-100 dark:[&::-webkit-scrollbar-track]:rtg-bg-neutral-700 [&::-webkit-scrollbar]:rtg-w-2",uc="rtg-mx-1 rtg-h-px rtg-bg-border",gc="rtg-flex rtg-h-10 rtg-items-center rtg-justify-between rtg-rounded-md rtg-border rtg-border-input rtg-bg-background rtg-px-3 rtg-py-2 rtg-text-sm rtg-ring-offset-background placeholder:rtg-text-muted-foreground focus:rtg-outline-none focus:ring-2 focus:rtg-ring-ring focus:rtg-ring-offset-2 disabled:rtg-cursor-not-allowed disabled:rtg-opacity-50",pc="rtg-line-clamp-1 rtg-flex rtg-w-[180px]";var hc=Object.defineProperty,mc=Object.getOwnPropertyDescriptor,$
|
|
4188
|
+
`}},Xr([l.property({attribute:"data-state",type:String})],o.Drawer.prototype,"state",2),o.Drawer=Xr([l.customElement("rtg-drawer")],o.Drawer);const sc="rtg-absolute rtg-z-50 rtg-mt-1 rtg-max-h-72 rtg-w-full rtg-overflow-hidden rtg-overflow-y-auto rtg-rounded-md rtg-border rtg-border-gray-200 rtg-bg-white rtg-px-1 rtg-py-2 rtg-shadow-md dark:rtg-border-neutral-700 dark:rtg-bg-neutral-900",lc="rtg-flex rtg-w-full rtg-cursor-pointer rtg-items-center rtg-justify-between rtg-rounded-lg rtg-px-4 rtg-py-2 hover:rtg-bg-gray-100 focus:rtg-bg-gray-100 focus:rtg-outline-none dark:rtg-bg-neutral-900 dark:rtg-text-neutral-200 dark:hover:rtg-bg-neutral-800 dark:focus:rtg-bg-neutral-800",cc="rtg-px-4 rtg-w-full rtg-text-base rtg-font-bold",dc="rtg-absolute rtg-z-50 rtg-max-h-72 rtg-w-full rtg-overflow-hidden rtg-overflow-y-auto rtg-rounded-lg rtg-border rtg-border-gray-200 bg-white p-1 dark:rtg-border-neutral-700 dark:rtg-bg-neutral-900 [&::-webkit-scrollbar-thumb]:rtg-rounded-full [&::-webkit-scrollbar-thumb]:rtg-bg-gray-300 dark:[&::-webkit-scrollbar-thumb]:rtg-bg-neutral-500 [&::-webkit-scrollbar-track]:rtg-bg-gray-100 dark:[&::-webkit-scrollbar-track]:rtg-bg-neutral-700 [&::-webkit-scrollbar]:rtg-w-2",uc="rtg-mx-1 rtg-h-px rtg-bg-border",gc="rtg-flex rtg-h-10 rtg-items-center rtg-justify-between rtg-rounded-md rtg-border rtg-border-input rtg-bg-background rtg-px-3 rtg-py-2 rtg-text-sm rtg-ring-offset-background placeholder:rtg-text-muted-foreground focus:rtg-outline-none focus:ring-2 focus:rtg-ring-ring focus:rtg-ring-offset-2 disabled:rtg-cursor-not-allowed disabled:rtg-opacity-50",pc="rtg-line-clamp-1 rtg-flex rtg-w-[180px]";var hc=Object.defineProperty,mc=Object.getOwnPropertyDescriptor,$t=(i,t,r,n)=>{for(var e=n>1?void 0:n?mc(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&hc(t,r,e),e};o.SelectItem=class extends h{constructor(){super(...arguments),this.value="",this.isSelected=!1,this.isFocus=!1,this.selectItemIndex=-1,this.onSelect=(t,r)=>{},this.class="",this._onStoreChange=()=>{var t,r;this.isSelected=this.value.toLowerCase()===((r=(t=this._select.selectStore.selectedValue)==null?void 0:t.toLowerCase)==null?void 0:r.call(t)),this.requestUpdate()},this.handleClick=t=>{t.stopPropagation(),this._select.selectStore.select(this.value),this.onSelect(this.value,this.selectItemIndex)}}get _select(){let t=this.parentElement;for(;t&&!(t instanceof o.Select);)t=t.parentElement;return t}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this._onStoreChange)}disconnectedCallback(){this._select.selectStore.unsubscribe(this._onStoreChange),super.disconnectedCallback()}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}get _containerElement(){return this.querySelector("div[part=select-item-container]")}createRenderRoot(){return this}render(){const t=this.getFilteredAttributes();return d.html`
|
|
4189
4189
|
<div
|
|
4190
|
-
${H(
|
|
4190
|
+
${H(t)}
|
|
4191
4191
|
@click=${this.handleClick}
|
|
4192
4192
|
class="${p(this.isFocus?"rtg-bg-gray-100":"",lc,this.className)}"
|
|
4193
4193
|
data-hs-select-value=${this.value}
|
|
@@ -4201,7 +4201,7 @@ body {
|
|
|
4201
4201
|
${Sr()}
|
|
4202
4202
|
</span>
|
|
4203
4203
|
</div>
|
|
4204
|
-
`}},$
|
|
4204
|
+
`}},$t([l.property()],o.SelectItem.prototype,"value",2),$t([l.property()],o.SelectItem.prototype,"isSelected",2),$t([l.property()],o.SelectItem.prototype,"isFocus",2),$t([l.property()],o.SelectItem.prototype,"selectItemIndex",2),$t([l.property({type:Function})],o.SelectItem.prototype,"onSelect",2),$t([l.property()],o.SelectItem.prototype,"class",2),o.SelectItem=$t([l.customElement("rtg-select-item")],o.SelectItem);var fc=Object.defineProperty,vc=Object.getOwnPropertyDescriptor,He=(i,t,r,n)=>{for(var e=n>1?void 0:n?vc(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&fc(t,r,e),e};o.SelectList=class extends h{constructor(){super(...arguments),this.state=Be,this.isOpen=!1}get _containerElement(){return this.querySelector("div[part=select-list]")}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}render(){return d.html`
|
|
4205
4205
|
<div
|
|
4206
4206
|
part="select-list"
|
|
4207
4207
|
class="${p(dc,this.className)}"
|
|
@@ -4209,20 +4209,20 @@ body {
|
|
|
4209
4209
|
data-state="${this.state}"
|
|
4210
4210
|
style="display: ${this.isOpen?"block":"none"}; top:115%"
|
|
4211
4211
|
></div>
|
|
4212
|
-
`}},
|
|
4212
|
+
`}},He([l.property({attribute:"data-state",type:String})],o.SelectList.prototype,"state",2),He([l.state()],o.SelectList.prototype,"isOpen",2),o.SelectList=He([l.customElement("rtg-select-list")],o.SelectList);var bc=Object.getOwnPropertyDescriptor,yc=(i,t,r,n)=>{for(var e=n>1?void 0:n?bc(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.SelectLabel=class extends h{get _containerElement(){return this.querySelector("span[part=select-label]")}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}render(){return d.html`
|
|
4213
4213
|
<span
|
|
4214
4214
|
part="select-label"
|
|
4215
4215
|
class="${p(cc,this.className)}"
|
|
4216
4216
|
>
|
|
4217
4217
|
</span>
|
|
4218
|
-
`}},o.SelectLabel=yc([l.customElement("rtg-select-label")],o.SelectLabel);var wc=Object.defineProperty,
|
|
4218
|
+
`}},o.SelectLabel=yc([l.customElement("rtg-select-label")],o.SelectLabel);var wc=Object.defineProperty,Cc=Object.getOwnPropertyDescriptor,Ye=(i,t,r,n)=>{for(var e=n>1?void 0:n?Cc(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&wc(t,r,e),e};o.SelectSeperator=class extends d.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}createRenderRoot(){return this}render(){return d.html`
|
|
4219
4219
|
<div
|
|
4220
4220
|
class="${p(uc,this.className)}"
|
|
4221
4221
|
part="select-separator"
|
|
4222
4222
|
rtgcmd-separator
|
|
4223
4223
|
role="separator"
|
|
4224
4224
|
></div>
|
|
4225
|
-
`}},
|
|
4225
|
+
`}},Ye([l.property({type:String})],o.SelectSeperator.prototype,"_id",2),Ye([l.property({attribute:"aria-hidden",type:String})],o.SelectSeperator.prototype,"_hidden",2),o.SelectSeperator=Ye([l.customElement("rtg-select-separator")],o.SelectSeperator);var _c=Object.getOwnPropertyDescriptor,xc=(i,t,r,n)=>{for(var e=n>1?void 0:n?_c(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.SelectTrigger=class extends h{constructor(){super(...arguments),this.onStoreChange=()=>{this.requestUpdate()},this.handleClick=t=>{t.stopPropagation(),this._select&&this._select.selectStore.toggle()}}get _select(){let t=this.parentElement;for(;t&&!(t instanceof o.Select);)t=t.parentElement;return t}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this.onStoreChange)}disconnectedCallback(){this._select.selectStore.unsubscribe(this.onStoreChange)}get _containerElement(){return this.querySelector("div[part=select-trigger-container]")}firstUpdated(t){var r;super.firstUpdated(t),this.moveLightDomChildrenInto(this._containerElement),(r=this._containerElement)==null||r.addEventListener("click",this.handleClick)}createRenderRoot(){return this}getAttributesToExclude(){return["data-testid"]}render(){return d.html`
|
|
4226
4226
|
<button
|
|
4227
4227
|
type="button"
|
|
4228
4228
|
part="select-trigger"
|
|
@@ -4236,25 +4236,25 @@ body {
|
|
|
4236
4236
|
<div part="select-trigger-container"></div>
|
|
4237
4237
|
${Pr()}
|
|
4238
4238
|
</button>
|
|
4239
|
-
`}},o.SelectTrigger=xc([l.customElement("rtg-select-trigger")],o.SelectTrigger);var Ec=Object.defineProperty,$c=Object.getOwnPropertyDescriptor,Qr=(i,
|
|
4239
|
+
`}},o.SelectTrigger=xc([l.customElement("rtg-select-trigger")],o.SelectTrigger);var Ec=Object.defineProperty,$c=Object.getOwnPropertyDescriptor,Qr=(i,t,r,n)=>{for(var e=n>1?void 0:n?$c(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Ec(t,r,e),e};o.SelectGroup=class extends h{constructor(){super(...arguments),this.focusedIndex=0,this.childrenArray=[],this.onStoreChange=()=>{const t=this._containerElement;t&&(t.style.display=this._select.selectStore.isOpen?"block":"none"),this._select.selectStore.isOpen&&this._select.selectStore.selectedValue&&(this.focusedIndex=this.childrenArray.findIndex(r=>r.value===this._select.selectStore.selectedValue)),this.updateFocusedItem(),this.requestUpdate()},this.handleKeyDown=t=>{if(this._select.selectStore.isOpen)switch(t.preventDefault(),t.key){case"ArrowDown":this.focusedIndex=(this.focusedIndex+1)%this.childrenArray.length,this.updateFocusedItem();break;case"ArrowUp":this.focusedIndex=(this.focusedIndex-1+this.childrenArray.length)%this.childrenArray.length,this.updateFocusedItem();break;case"Enter":const n=this.childrenArray[this.focusedIndex].value;this._select.selectStore.select(n);break}}}get _select(){let t=this.parentElement;for(;t&&!(t instanceof o.Select);)t=t.parentElement;return t}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this.onStoreChange),document.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){this._select.selectStore.unsubscribe(this.onStoreChange),document.removeEventListener("keydown",this.handleKeyDown),super.disconnectedCallback()}get _containerElement(){return this.querySelector("div[part=select-group]")}firstUpdated(){const t=Array.from(this.children).filter(r=>r.tagName.toLowerCase()==="rtg-select-item");this.childrenArray=t,t.forEach((r,n)=>{r.tabIndex=n,r.selectItemIndex=n,r.isFocus=n===this.focusedIndex||r.value===this._select.selectStore.selectedValue,r.addEventListener("mouseover",e=>this.handleMouseOver(e,n))}),this.moveLightDomChildrenInto(this._containerElement)}updateFocusedItem(){this.childrenArray.forEach((t,r)=>{var n;t.isFocus=r===this.focusedIndex,(n=t.requestUpdate)==null||n.call(t)})}handleMouseOver(t,r){t.preventDefault(),this.focusedIndex=r}createRenderRoot(){return this}render(){return d.html`
|
|
4240
4240
|
<div
|
|
4241
4241
|
part="select-group"
|
|
4242
4242
|
class="${p(sc,this.className)}"
|
|
4243
4243
|
style="display: none"
|
|
4244
4244
|
></div>
|
|
4245
|
-
`}},Qr([l.state()],o.SelectGroup.prototype,"focusedIndex",2),o.SelectGroup=Qr([l.customElement("rtg-select-group")],o.SelectGroup);var Oc=Object.defineProperty,Sc=Object.getOwnPropertyDescriptor,Zr=(i,
|
|
4245
|
+
`}},Qr([l.state()],o.SelectGroup.prototype,"focusedIndex",2),o.SelectGroup=Qr([l.customElement("rtg-select-group")],o.SelectGroup);var Oc=Object.defineProperty,Sc=Object.getOwnPropertyDescriptor,Zr=(i,t,r,n)=>{for(var e=n>1?void 0:n?Sc(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Oc(t,r,e),e};o.SelectValue=class extends h{constructor(){super(...arguments),this.placeholder="select a value",this.onStoreChange=()=>{this.requestUpdate()},this.renderLabel=()=>this._select&&this._select.selectStore.selectedValue.length>0?this._select.selectStore.selectedValue:this.placeholder}get _select(){let t=this.parentElement;for(;t&&!(t instanceof o.Select);)t=t.parentElement;return t}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this.onStoreChange),document.addEventListener("clicked-select-item",()=>{this.requestUpdate()})}disconnectedCallback(){this._select.selectStore.unsubscribe(this.onStoreChange)}firstUpdated(t){super.firstUpdated(t)}createRenderRoot(){return this}render(){return d.html`
|
|
4246
4246
|
<span part="select-value" class="${p(pc,this.className)}"
|
|
4247
4247
|
>${this.renderLabel()}</span
|
|
4248
4248
|
>
|
|
4249
|
-
`}},Zr([l.property({type:String})],o.SelectValue.prototype,"placeholder",2),o.SelectValue=Zr([l.customElement("rtg-select-value")],o.SelectValue);class Pc{constructor(){this.state={isOpen:!1,selectedValue:""},this.listeners=new Set}subscribe(
|
|
4249
|
+
`}},Zr([l.property({type:String})],o.SelectValue.prototype,"placeholder",2),o.SelectValue=Zr([l.customElement("rtg-select-value")],o.SelectValue);class Pc{constructor(){this.state={isOpen:!1,selectedValue:""},this.listeners=new Set}subscribe(t){this.listeners.add(t)}unsubscribe(t){this.listeners.delete(t)}notify(){this.listeners.forEach(t=>t())}get isOpen(){return this.state.isOpen}get selectedValue(){return this.state.selectedValue}open(){this.state.isOpen||(this.state.isOpen=!0,this.notify())}close(){this.state.isOpen&&(this.state.isOpen=!1,this.notify())}toggle(){this.state.isOpen=!this.state.isOpen,this.notify()}select(t,r){this.state.selectedValue=t,this.state.isOpen=!1,this.notify()}}var Dc=Object.getOwnPropertyDescriptor,Rc=(i,t,r,n)=>{for(var e=n>1?void 0:n?Dc(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.Select=class extends h{constructor(){super(...arguments),this.uuid=Oe(),this.selectStore=new Pc,this.handleClickOutside=t=>{const r=this.querySelector("[data-select-uuid]"),n=t.target;r!=null&&r.contains(n)||this.selectStore.close()}}connectedCallback(){super.connectedCallback(),document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}firstUpdated(){const t=this.querySelector("div[part=select]");this.moveLightDomChildrenInto(t)}createRenderRoot(){return this}render(){return d.html`<div
|
|
4250
4250
|
part="select"
|
|
4251
4251
|
class="${p("rtg-relative",this.className)}"
|
|
4252
4252
|
data-select-uuid=${this.uuid}
|
|
4253
|
-
></div>`}},o.Select=Rc([l.customElement("rtg-select")],o.Select);const kc=Z("group rtg-pointer-events-auto rtg-relative rtg-flex rtg-w-full rtg-items-center rtg-justify-between rtg-space-x-2 rtg-overflow-hidden rtg-rounded-md rtg-border rtg-p-4 rtg-pr-6 rtg-shadow-lg rtg-transition-all data-[swipe=cancel]:rtg-translate-x-0 data-[swipe=end]:rtg-translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:rtg-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:rtg-transition-none data-[state=open]:rtg-animate-in data-[state=closed]:rtg-animate-out data-[swipe=end]:rtg-animate-out data-[state=closed]:rtg-fade-out-80 data-[state=closed]:rtg-slide-out-to-right-full data-[state=open]:rtg-slide-in-from-top-full data-[state=open]:sm:rtg-slide-in-from-bottom-full",{variants:{variant:{default:"rtg-border rtg-bg-background rtg-text-foreground",destructive:"rtg-destructive group rtg-border-destructive rtg-bg-destructive rtg-text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Ic=Z("rtg-inline-flex rtg-h-8 rtg-shrink-0 rtg-items-center rtg-justify-center rtg-rounded-md rtg-px-3 rtg-text-sm rtg-font-medium rtg-transition-colors focus:rtg-outline-none focus:rtg-ring-1 focus:rtg-ring-ring disabled:rtg-pointer-events-none disabled:rtg-opacity-50",{variants:{variant:{default:"rtg-border rtg-bg-transparent hover:rtg-bg-secondary",destructive:"rtg-border group-[.destructive]:rtg-border-muted/40 group-[.destructive]:rtg-hover:border-destructive/30 group-[.destructive]:rtg-hover:bg-destructive group-[.destructive]:hover:rtg-text-destructive-foreground group-[.destructive]:focus:rtg-ring-destructive"}},defaultVariants:{variant:"default"}}),Tc="rtg-fixed rtg-top-0 rtg-z-[100] rtg-flex rtg-max-h-screen rtg-w-full rtg-flex-col-reverse rtg-p-4 sm:rtg-bottom-0 sm:rtg-right-0 sm:rtg-top-auto sm:rtg-flex-col md:rtg-max-w-[420px]",Ac="rtg-absolute rtg-right-1 rtg-top-1 rtg-rounded-md rtg-p-1 rtg-text-foreground/50 rtg-opacity-0 rtg-transition-opacity hover:rtg-text-foreground focus:rtg-opacity-100 focus:rtg-outline-none focus:rtg-ring-1 group-hover:rtg-opacity-100 group-[.destructive]:rtg-text-red-300 group-[.destructive]:hover:rtg-text-red-50 group-[.destructive]:focus:rtg-ring-red-400 group-[.destructive]:focus:rtg-ring-offset-red-600",Lc="rtg-text-sm rtg-opacity-90",Mc="rtg-text-sm rtg-font-semibold [&+div]:rtg-text-xs";var Nc=Object.defineProperty,qc=Object.getOwnPropertyDescriptor,
|
|
4253
|
+
></div>`}},o.Select=Rc([l.customElement("rtg-select")],o.Select);const kc=Z("group rtg-pointer-events-auto rtg-relative rtg-flex rtg-w-full rtg-items-center rtg-justify-between rtg-space-x-2 rtg-overflow-hidden rtg-rounded-md rtg-border rtg-p-4 rtg-pr-6 rtg-shadow-lg rtg-transition-all data-[swipe=cancel]:rtg-translate-x-0 data-[swipe=end]:rtg-translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:rtg-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:rtg-transition-none data-[state=open]:rtg-animate-in data-[state=closed]:rtg-animate-out data-[swipe=end]:rtg-animate-out data-[state=closed]:rtg-fade-out-80 data-[state=closed]:rtg-slide-out-to-right-full data-[state=open]:rtg-slide-in-from-top-full data-[state=open]:sm:rtg-slide-in-from-bottom-full",{variants:{variant:{default:"rtg-border rtg-bg-background rtg-text-foreground",destructive:"rtg-destructive group rtg-border-destructive rtg-bg-destructive rtg-text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Ic=Z("rtg-inline-flex rtg-h-8 rtg-shrink-0 rtg-items-center rtg-justify-center rtg-rounded-md rtg-px-3 rtg-text-sm rtg-font-medium rtg-transition-colors focus:rtg-outline-none focus:rtg-ring-1 focus:rtg-ring-ring disabled:rtg-pointer-events-none disabled:rtg-opacity-50",{variants:{variant:{default:"rtg-border rtg-bg-transparent hover:rtg-bg-secondary",destructive:"rtg-border group-[.destructive]:rtg-border-muted/40 group-[.destructive]:rtg-hover:border-destructive/30 group-[.destructive]:rtg-hover:bg-destructive group-[.destructive]:hover:rtg-text-destructive-foreground group-[.destructive]:focus:rtg-ring-destructive"}},defaultVariants:{variant:"default"}}),Tc="rtg-fixed rtg-top-0 rtg-z-[100] rtg-flex rtg-max-h-screen rtg-w-full rtg-flex-col-reverse rtg-p-4 sm:rtg-bottom-0 sm:rtg-right-0 sm:rtg-top-auto sm:rtg-flex-col md:rtg-max-w-[420px]",Ac="rtg-absolute rtg-right-1 rtg-top-1 rtg-rounded-md rtg-p-1 rtg-text-foreground/50 rtg-opacity-0 rtg-transition-opacity hover:rtg-text-foreground focus:rtg-opacity-100 focus:rtg-outline-none focus:rtg-ring-1 group-hover:rtg-opacity-100 group-[.destructive]:rtg-text-red-300 group-[.destructive]:hover:rtg-text-red-50 group-[.destructive]:focus:rtg-ring-red-400 group-[.destructive]:focus:rtg-ring-offset-red-600",Lc="rtg-text-sm rtg-opacity-90",Mc="rtg-text-sm rtg-font-semibold [&+div]:rtg-text-xs";var Nc=Object.defineProperty,qc=Object.getOwnPropertyDescriptor,je=(i,t,r,n)=>{for(var e=n>1?void 0:n?qc(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Nc(t,r,e),e};const We="closed";o.ToastViewPort=class extends h{constructor(){super(...arguments),this.variant="default",this.state=We,this.handleCloseButtonClick=t=>{t.stopPropagation(),this.state=We,this.dispatchEvent(new CustomEvent("close-toast",{bubbles:!0}))}}get _containerElement(){return this.querySelector("li[part=toast-view-port-li]")}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html` <ol
|
|
4254
4254
|
part="toast-view-port"
|
|
4255
4255
|
tabindex="-1"
|
|
4256
|
-
@click="${
|
|
4257
|
-
class="${p(Tc,this.className,`${this.state===
|
|
4256
|
+
@click="${t=>t.stopPropagation()}"
|
|
4257
|
+
class="${p(Tc,this.className,`${this.state===We?"hidden":"block"} `)}"
|
|
4258
4258
|
>
|
|
4259
4259
|
<li
|
|
4260
4260
|
part="toast-view-port-li"
|
|
@@ -4273,39 +4273,39 @@ body {
|
|
|
4273
4273
|
class="${Ac}"
|
|
4274
4274
|
toast-close=""
|
|
4275
4275
|
data-radix-toast-announce-exclude=""
|
|
4276
|
-
@click="${
|
|
4276
|
+
@click="${t=>this.handleCloseButtonClick(t)}"
|
|
4277
4277
|
>
|
|
4278
4278
|
${gi()}
|
|
4279
4279
|
</button>
|
|
4280
4280
|
</li>
|
|
4281
|
-
</ol>`}},o.ToastViewPort.toastVariants=kc,
|
|
4281
|
+
</ol>`}},o.ToastViewPort.toastVariants=kc,je([l.property({type:String})],o.ToastViewPort.prototype,"variant",2),je([l.property({attribute:"data-state",type:String})],o.ToastViewPort.prototype,"state",2),o.ToastViewPort=je([l.customElement("rtg-toast-view-port")],o.ToastViewPort);var zc=Object.defineProperty,Bc=Object.getOwnPropertyDescriptor,Jr=(i,t,r,n)=>{for(var e=n>1?void 0:n?Bc(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&zc(t,r,e),e};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(t){this.moveLightDomChildrenInto(this._containerElement)}getFilteredAttributes(){const t=this.getAttributesToExclude(),r={};for(const n of this.attributes)t.includes(n.name)||(r[n.name]=n.value);return r}createRenderRoot(){return this}render(){const t=this.getFilteredAttributes();return d.html`
|
|
4282
4282
|
<button
|
|
4283
|
-
${H(
|
|
4283
|
+
${H(t)}
|
|
4284
4284
|
part="toast-action"
|
|
4285
4285
|
type="button"
|
|
4286
4286
|
class="${p(o.ToastAction.toastVariants({variant:this.variant,className:this.className}),this.className,"rtg-w-max")}"
|
|
4287
4287
|
></button>
|
|
4288
|
-
`}},o.ToastAction.toastVariants=Ic,Jr([l.property({type:String})],o.ToastAction.prototype,"variant",2),o.ToastAction=Jr([l.customElement("rtg-toast-action")],o.ToastAction);var Uc=Object.getOwnPropertyDescriptor,Fc=(i,
|
|
4288
|
+
`}},o.ToastAction.toastVariants=Ic,Jr([l.property({type:String})],o.ToastAction.prototype,"variant",2),o.ToastAction=Jr([l.customElement("rtg-toast-action")],o.ToastAction);var Uc=Object.getOwnPropertyDescriptor,Fc=(i,t,r,n)=>{for(var e=n>1?void 0:n?Uc(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.ToastDescription=class extends h{get _containerElement(){return this.querySelector("div[part=toast-description]")}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4289
4289
|
<div
|
|
4290
4290
|
class="${p(Lc,this.className)}"
|
|
4291
4291
|
part="toast-description"
|
|
4292
4292
|
>
|
|
4293
4293
|
<slot></slot>
|
|
4294
4294
|
</div>
|
|
4295
|
-
`}},o.ToastDescription=Fc([l.customElement("rtg-toast-description")],o.ToastDescription);var Gc=Object.getOwnPropertyDescriptor,Vc=(i,
|
|
4295
|
+
`}},o.ToastDescription=Fc([l.customElement("rtg-toast-description")],o.ToastDescription);var Gc=Object.getOwnPropertyDescriptor,Vc=(i,t,r,n)=>{for(var e=n>1?void 0:n?Gc(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.ToastTitle=class extends h{get _containerElement(){return this.querySelector("div[part=toast-title]")}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4296
4296
|
<div
|
|
4297
4297
|
part="toast-title"
|
|
4298
4298
|
class="${p(Mc,this.className)}"
|
|
4299
4299
|
></div>
|
|
4300
|
-
`}},o.ToastTitle=Vc([l.customElement("rtg-toast-title")],o.ToastTitle);var Hc=Object.getOwnPropertyDescriptor,Yc=(i,
|
|
4300
|
+
`}},o.ToastTitle=Vc([l.customElement("rtg-toast-title")],o.ToastTitle);var Hc=Object.getOwnPropertyDescriptor,Yc=(i,t,r,n)=>{for(var e=n>1?void 0:n?Hc(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.ToastTrigger=class extends h{constructor(){super(),this.handleClick=this.handleClick.bind(this)}get _containerElement(){return this.querySelector("div[part=toast-trigger]")}get _toast(){let t=this.parentElement;for(;t&&!(t instanceof o.Toast);)t=t.parentElement;return t}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}handleClick(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("open-toast",{bubbles:!0})),this._toast.isOpen=!0}render(){return d.html`
|
|
4301
4301
|
<div
|
|
4302
4302
|
@click=${this.handleClick}
|
|
4303
4303
|
part="toast-trigger"
|
|
4304
4304
|
class="${p(this.className)}"
|
|
4305
4305
|
></div>
|
|
4306
|
-
`}},o.ToastTrigger=Yc([l.customElement("rtg-toast-trigger")],o.ToastTrigger);var jc=Object.defineProperty,Wc=Object.getOwnPropertyDescriptor,
|
|
4306
|
+
`}},o.ToastTrigger=Yc([l.customElement("rtg-toast-trigger")],o.ToastTrigger);var jc=Object.defineProperty,Wc=Object.getOwnPropertyDescriptor,tn=(i,t,r,n)=>{for(var e=n>1?void 0:n?Wc(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&jc(t,r,e),e};o.Toast=class extends h{constructor(){super(...arguments),this.isOpen=!1}get _containerElement(){return this.querySelector("div[part=toast]")}onClick(){this.isOpen=!this.isOpen}connectedCallback(){super.connectedCallback(),this.addEventListener("close-toast",()=>{this.isOpen=!1}),this.addEventListener("open-toast",()=>{this.isOpen=!0})}get _content(){return this.querySelector("rtg-toast-view-port")}updated(t){super.updated(t);const r=this._content;r&&(r.dataset.state=this.isOpen?"open":"closed")}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}render(){return d.html` <div class="${p("",this.className)}" part="toast"></div> `}},tn([l.state()],o.Toast.prototype,"isOpen",2),o.Toast=tn([l.customElement("rtg-toast")],o.Toast);const Xc="rtg-h-10 rtg-items-center rtg-justify-center rtg-rounded-md rtg-bg-muted rtg-p-1 rtg-text-muted-foreground rtg-grid rtg-w-full rtg-grid-cols-2";var Kc=Object.defineProperty,Qc=Object.getOwnPropertyDescriptor,en=(i,t,r,n)=>{for(var e=n>1?void 0:n?Qc(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Kc(t,r,e),e};o.TabList=class extends h{constructor(){super(...arguments),this.tabindex=0}get _tab(){let t=this.parentElement;for(;t&&!(t instanceof o.Tab);)t=t.parentElement;return t}get _containerElement(){return this.querySelector("div[part=tab-list]")}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}connectedCallback(){var t;super.connectedCallback(),(t=this._tab)==null||t.addEventListener("tab-change",r=>{this.changeTabs(r.detail.selectedValue)})}disconnectedCallback(){super.disconnectedCallback(),this._tab&&this._tab.removeEventListener("tab-change",()=>{})}changeTabs(t){const r=this.getChildren();r.length>0&&r.forEach(n=>{if(n instanceof HTMLElement){const e=n.querySelector("button");e&&(e!=null&&e.value)&&(e.value.trim().toLowerCase()===t.trim().toLowerCase()?(e.setAttribute("aria-selected","true"),e.setAttribute("data-state","active")):(e.setAttribute("aria-selected","false"),e.setAttribute("data-state","inactive")))}})}getChildren(){return this.querySelectorAll("rtg-tab-trigger > div[part=tab-trigger]")||[]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){const t=this.getFilteredAttributes();return wt.html`
|
|
4307
4307
|
<div
|
|
4308
|
-
${H(
|
|
4308
|
+
${H(t)}
|
|
4309
4309
|
part="tab-list"
|
|
4310
4310
|
role="tablist"
|
|
4311
4311
|
data-orientation="horizontal"
|
|
@@ -4314,7 +4314,7 @@ body {
|
|
|
4314
4314
|
tabindex=${this.tabindex}
|
|
4315
4315
|
class="${p(Xc,this.className)}"
|
|
4316
4316
|
></div>
|
|
4317
|
-
`}},
|
|
4317
|
+
`}},en([l.property({type:Number})],o.TabList.prototype,"tabindex",2),o.TabList=en([l.customElement("rtg-tab-list")],o.TabList);var Zc=Object.defineProperty,Jc=Object.getOwnPropertyDescriptor,de=(i,t,r,n)=>{for(var e=n>1?void 0:n?Jc(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Zc(t,r,e),e};o.TabsTrigger=class extends h{constructor(){super(...arguments),this.defaultValue="",this.value="",this.handleClick=t=>{var e;t.preventDefault(),t.stopPropagation();const r=t.target,n=(e=this.shadowRoot)==null?void 0:e.querySelector("button");if(n&&n.click(),r instanceof HTMLButtonElement){const a=r.getAttribute("value")??"";this.defaultValue=a,this._tab&&(this._tab.defaultValue=a,this._tab.raiseEvent()),this.onClickCallback&&this.onClickCallback(a)}}}get _tab(){let t=this.parentElement;for(;t&&!(t instanceof o.Tab);)t=t.parentElement;return t}get _tabList(){let t=this.parentElement;for(;t&&!(t instanceof o.TabList);)t=t.parentElement;return t}get _containerElement(){return this.querySelector("button[part=tab-trigger-button]")}firstUpdated(t){super.firstUpdated(t),this.moveLightDomChildrenInto(this._containerElement),this._tab&&(this.defaultValue=this._tab.defaultValue)}getAttributesToExclude(){return["value","defaultValue","data-testid"]}createRenderRoot(){return this}render(){const t=this.getFilteredAttributes();return wt.html`
|
|
4318
4318
|
<div
|
|
4319
4319
|
part="tab-trigger"
|
|
4320
4320
|
role="tablist"
|
|
@@ -4325,7 +4325,7 @@ body {
|
|
|
4325
4325
|
style="outline: none;"
|
|
4326
4326
|
>
|
|
4327
4327
|
<button
|
|
4328
|
-
${H(
|
|
4328
|
+
${H(t)}
|
|
4329
4329
|
type="button"
|
|
4330
4330
|
role="tab"
|
|
4331
4331
|
part="tab-trigger-button"
|
|
@@ -4342,14 +4342,14 @@ body {
|
|
|
4342
4342
|
<slot></slot>
|
|
4343
4343
|
</button>
|
|
4344
4344
|
</div>
|
|
4345
|
-
`}},
|
|
4345
|
+
`}},de([l.property({type:String})],o.TabsTrigger.prototype,"defaultValue",2),de([l.property({type:String})],o.TabsTrigger.prototype,"value",2),de([l.property({type:Function})],o.TabsTrigger.prototype,"onClickCallback",2),o.TabsTrigger=de([l.customElement("rtg-tab-trigger")],o.TabsTrigger);var td=Object.defineProperty,ed=Object.getOwnPropertyDescriptor,Xe=(i,t,r,n)=>{for(var e=n>1?void 0:n?ed(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&td(t,r,e),e};o.TabContent=class extends h{constructor(){super(...arguments),this.value="",this.selectedValue=""}get _tab(){let t=this.parentElement;for(;t&&!(t instanceof o.Tab);)t=t.parentElement;return t}get _containerElement(){return this.querySelector("div[part=tab-content]")}updated(t){super.updated(t)}connectedCallback(){var t;super.connectedCallback(),(t=this._tab)==null||t.addEventListener("tab-change",r=>{this.selectedValue=r.detail.selectedValue,this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this._tab&&this._tab.removeEventListener("tab-change",()=>{})}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){const t=this._tab&&this._tab.defaultValue.toLocaleLowerCase()===this.value.toLocaleLowerCase();return wt.html`
|
|
4346
4346
|
<div
|
|
4347
|
-
class="${p(
|
|
4347
|
+
class="${p(t?"rtg-block":"rtg-hidden",this.className)}"
|
|
4348
4348
|
part="tab-content"
|
|
4349
4349
|
></div>
|
|
4350
|
-
`}},
|
|
4350
|
+
`}},Xe([l.property({type:String})],o.TabContent.prototype,"value",2),Xe([l.state()],o.TabContent.prototype,"selectedValue",2),o.TabContent=Xe([l.customElement("rtg-tab-content")],o.TabContent);var rd=Object.defineProperty,nd=Object.getOwnPropertyDescriptor,Ke=(i,t,r,n)=>{for(var e=n>1?void 0:n?nd(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&rd(t,r,e),e};o.Tab=class extends h{constructor(){super(...arguments),this.defaultValue="",this.tabindex=0}get _containerElement(){return this.querySelector("div[part=tab]")}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}updated(t){super.updated(t),this.raiseEvent()}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}raiseEvent(){const t=new CustomEvent("tab-change",{bubbles:!0,composed:!0,detail:{selectedValue:this.defaultValue}});this.dispatchEvent(t)}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){const t=this.getFilteredAttributes();return wt.html`
|
|
4351
4351
|
<div
|
|
4352
|
-
${H(
|
|
4352
|
+
${H(t)}
|
|
4353
4353
|
part="tab"
|
|
4354
4354
|
role="tab"
|
|
4355
4355
|
aria-orientation="horizontal"
|
|
@@ -4357,7 +4357,7 @@ body {
|
|
|
4357
4357
|
class="${p("",this.className)}"
|
|
4358
4358
|
tabindex=${this.tabindex}
|
|
4359
4359
|
></div>
|
|
4360
|
-
`}},
|
|
4360
|
+
`}},Ke([l.property({type:String})],o.Tab.prototype,"defaultValue",2),Ke([l.property({type:Number})],o.Tab.prototype,"tabindex",2),o.Tab=Ke([l.customElement("rtg-tab")],o.Tab);var Qe=(i=>(i.SMALL="sm",i.MEDIUM="md",i.LARGE="lg",i))(Qe||{}),Ze=(i=>(i.DEFAULT="default",i.OUTLINE="outline",i))(Ze||{});const od=Z("rtg-inline-flex rtg-items-center rtg-justify-center rtg-rounded-md rtg-text-sm rtg-font-medium rtg-ring-offset-background rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-2 focus-visible:rtg-ring-ring focus-visible:rtg-ring-offset-2 disabled:rtg-pointer-events-none disabled:rtg-opacity-50 data-[state=on]:rtg-bg-accent data-[state=on]:rtg-text-accent-foreground rtg-bg-transparent rtg-h-10 rtg-px-3",{variants:{variant:{default:"hover:rtg-bg-muted hover:rtg-text-muted-foreground",outline:"rtg-border rtg-border-input hover:rtg-bg-accent hover:rtg-text-accent-foreground"},size:{sm:"rtg-h-9 rtg-px-2.5",md:"rtg-h-10 rtg-px-3",lg:"rtg-h-11 rtg-px-5"}},defaultVariants:{variant:"default",size:"sm"}});var id=Object.defineProperty,ad=Object.getOwnPropertyDescriptor,Ut=(i,t,r,n)=>{for(var e=n>1?void 0:n?ad(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&id(t,r,e),e};o.Toggle=class extends h{constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.required=!1,this.variant=Ze.DEFAULT,this.size=Qe.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(t){this.moveLightDomChildrenInto(this._containerElement)}render(){const t=this.getFilteredAttributes();return wt.html`
|
|
4361
4361
|
<button
|
|
4362
4362
|
type="button"
|
|
4363
4363
|
part="toggle"
|
|
@@ -4368,31 +4368,31 @@ body {
|
|
|
4368
4368
|
@click=${this.toggle}
|
|
4369
4369
|
?required=${this.required}
|
|
4370
4370
|
?disabled=${this.disabled}
|
|
4371
|
-
${H(
|
|
4371
|
+
${H(t)}
|
|
4372
4372
|
>
|
|
4373
4373
|
<slot></slot>
|
|
4374
4374
|
</button>
|
|
4375
|
-
`}},o.Toggle.toggleVariants=od,
|
|
4375
|
+
`}},o.Toggle.toggleVariants=od,Ut([l.property({type:Boolean})],o.Toggle.prototype,"disabled",2),Ut([l.property({attribute:!0,type:Boolean,reflect:!0})],o.Toggle.prototype,"checked",2),Ut([l.property({attribute:!0,type:Boolean,reflect:!0})],o.Toggle.prototype,"required",2),Ut([l.property({attribute:!0,type:String})],o.Toggle.prototype,"variant",2),Ut([l.property({attribute:!0,type:String})],o.Toggle.prototype,"size",2),o.Toggle=Ut([l.customElement("rtg-toggle")],o.Toggle);var ee=(i=>(i.MULTIPLE="multiple",i.SINGLE="single",i))(ee||{}),ue=(i=>(i.DEFAULT="default",i.OUTLINE="outline",i))(ue||{}),ge=(i=>(i.SMALL="sm",i.MEDIUM="md",i.LARGE="lg",i))(ge||{});const sd=Z("rtg-inline-flex rtg-items-center rtg-justify-center rtg-rounded-md rtg-text-sm rtg-font-medium rtg-ring-offset-background rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-2 focus-visible:rtg-ring-ring focus-visible:rtg-ring-offset-2 disabled:rtg-pointer-events-none disabled:rtg-opacity-50 data-[state=on]:rtg-bg-accent data-[state=on]:rtg-text-accent-foreground rtg-bg-transparent rtg-h-10 rtg-px-3",{variants:{variant:{default:" hover:rtg-bg-muted hover:rtg-text-muted-foreground",outline:" rtg-border rtg-border-input hover:rtg-bg-accent hover:rtg-text-accent-foreground"},size:{sm:"rtg-h-9 rtg-px-2.5",md:"rtg-h-10 rtg-px-3",lg:"rtg-h-11 rtg-px-5"}},defaultVariants:{variant:"default",size:"sm"}}),ld="rtg-flex rtg-items-center rtg-justify-center rtg-gap-1";var cd=Object.defineProperty,dd=Object.getOwnPropertyDescriptor,Ot=(i,t,r,n)=>{for(var e=n>1?void 0:n?dd(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&cd(t,r,e),e};let st=class extends h{constructor(){super(...arguments),this.checked=!1,this.id=Oe(),this.variant=ue.DEFAULT,this.size=ge.SMALL,this.disabled=!1,this.type=ee.SINGLE}get _parent(){let i=this.parentElement;for(;i&&!(i instanceof o.ToggleGroup);)i=i.parentElement;return i}get _containerElement(){return this.querySelector("button[part=toggle-group-item]")}get _siblings(){var t;return Array.from(((t=this.parentElement)==null?void 0:t.children)||[]).filter(r=>r!==this)}getAttributesToExclude(){return["disabled","type"]}createRenderRoot(){return this}firstUpdated(i){this.variant=this._parent.variant,this.size=this._parent.size,this.checked=this._parent.selectedItems.includes(this.id),this.type=this._parent.type,this.moveLightDomChildrenInto(this._containerElement)}updated(i){this.variant=this._parent.variant,this.size=this._parent.size,this.checked=this._parent.selectedItems.includes(this.id),this.type=this._parent.type}toggleSelection(i){try{if(this.disabled===!1){const t=this._parent.selectedItems.indexOf(i);this.type===ee.SINGLE?(t!==-1?this._parent.selectedItems.splice(t,1):this._parent.selectedItems[0]=i,this._siblings.forEach(r=>r.requestUpdate())):t!==-1?this._parent.selectedItems.splice(t,1):this._parent.selectedItems.push(i),this.requestUpdate()}}catch(t){console.log("error",t)}}render(){return wt.html`
|
|
4376
4376
|
<button
|
|
4377
4377
|
part="toggle-group-item"
|
|
4378
4378
|
id=${this.id}
|
|
4379
4379
|
type="button"
|
|
4380
|
-
class="${p(
|
|
4380
|
+
class="${p(st.toggleGroupVariants({variant:this.variant,size:this.size,className:this.className}))}"
|
|
4381
4381
|
aria-label="Toggle bold"
|
|
4382
4382
|
aria-pressed=${this.checked}
|
|
4383
4383
|
data-state="${this.checked?"on":"off"}"
|
|
4384
4384
|
?disabled=${this.disabled}
|
|
4385
4385
|
@click=${()=>{this.toggleSelection(this.id)}}
|
|
4386
4386
|
></button>
|
|
4387
|
-
`}};
|
|
4387
|
+
`}};st.toggleGroupVariants=sd,Ot([l.property({attribute:!0,type:Boolean,reflect:!0})],st.prototype,"checked",2),Ot([l.property({attribute:!0,type:String,reflect:!0})],st.prototype,"id",2),Ot([l.property({attribute:!0,type:String})],st.prototype,"variant",2),Ot([l.property({attribute:!0,type:String})],st.prototype,"size",2),Ot([l.property({type:Boolean})],st.prototype,"disabled",2),Ot([l.property({type:String})],st.prototype,"type",2),st=Ot([l.customElement("rtg-toggle-group-item")],st);var ud=Object.defineProperty,gd=Object.getOwnPropertyDescriptor,St=(i,t,r,n)=>{for(var e=n>1?void 0:n?gd(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&ud(t,r,e),e};o.ToggleGroup=class extends h{constructor(){super(...arguments),this.disabled=!1,this.type=ee.SINGLE,this.required=!1,this.variant=ue.DEFAULT,this.size=ge.SMALL,this.selectedItems=[]}get _containerElement(){return this.querySelector("div[part=toggle-group]")}getAttributesToExclude(){return["disabled","type","data-testid"]}connectedCallback(){super.connectedCallback()}firstUpdated(t){super.firstUpdated(t),this.moveLightDomChildrenInto(this._containerElement)}updated(t){(t.has("variant")||t.has("size")||t.has("disabled")||t.has("type"))&&this.querySelectorAll("rtg-toggle-group-item").forEach(r=>{r.variant=this.variant,r.size=this.size,r.disabled=this.disabled,r.type=this.type})}createRenderRoot(){return this}render(){const t=this.getFilteredAttributes();return wt.html`
|
|
4388
4388
|
<div
|
|
4389
4389
|
part="toggle-group"
|
|
4390
4390
|
role="group"
|
|
4391
|
-
${H(
|
|
4391
|
+
${H(t)}
|
|
4392
4392
|
class="${p(ld,this.className)}"
|
|
4393
4393
|
?disable="${this.disabled}"
|
|
4394
4394
|
></div>
|
|
4395
|
-
`}},
|
|
4395
|
+
`}},St([l.property({type:Boolean})],o.ToggleGroup.prototype,"disabled",2),St([l.property({type:String})],o.ToggleGroup.prototype,"type",2),St([l.property({attribute:!0,type:Boolean,reflect:!0})],o.ToggleGroup.prototype,"required",2),St([l.property({attribute:!0,type:String,reflect:!0})],o.ToggleGroup.prototype,"variant",2),St([l.property({attribute:!0,type:String})],o.ToggleGroup.prototype,"size",2),St([l.property({type:Array})],o.ToggleGroup.prototype,"selectedItems",2),o.ToggleGroup=St([l.customElement("rtg-toggle-group")],o.ToggleGroup);var pd=Object.defineProperty,hd=Object.getOwnPropertyDescriptor,Ft=(i,t,r,n)=>{for(var e=n>1?void 0:n?hd(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&pd(t,r,e),e};o.InputOtpSlot=class extends h{constructor(){super(...arguments),this.click=()=>{},this.index=0,this.isFirst=!1,this.isLast=!1,this.value=""}get _inputOtp(){let t=this.parentElement;for(;t&&!(t instanceof o.InputOtp);)t=t.parentElement;return t}firstUpdated(t){const r=this._inputOtp;r&&(r.inputes.push({index:r.inputes.length,value:"",isSelected:!1,userIndex:this.index}),r.addEventListener("selected-input",n=>{const e=this.querySelector(`input[name="input-${n.detail.selectedItems}"]`);e&&(e.focus(),n.detail.eventType==="changes"&&(e.value=""))}))}disconnectedCallback(){super.disconnectedCallback(),this._inputOtp&&this._inputOtp.removeEventListener("selected-input",()=>{})}getAttributesToExclude(){return[]}handleFocus(t){const r=this._inputOtp;if(!r)return;const n=r.inputes.findIndex(a=>a.value===""),e=this.index;if(n!==-1&&e>n){t.preventDefault(),t.stopImmediatePropagation();const a=n;r.raiseEvent(a,"focus")}}handleInputChange(t){const r=t.target;if(new RegExp(/^\d+$/).test(r.value)){const e=this._inputOtp;if(e){let a=e.inputes.findIndex(s=>s.index===this.index);e.inputes[a]={...e.inputes[a],value:r.value,isSelected:!1},a+1<e.inputes.length&&e.raiseEvent(a+1,"changes")}}else r.value=""}handleKeyDown(t){const r=t.target,n=this._inputOtp;if(!n)return;const e=n.inputes.findIndex(a=>a.index===this.index);switch(t.key){case"Backspace":{t.preventDefault();const a=r.value==="",s=n.inputes.find(w=>w.value===""),m=s!==void 0?n.inputes.indexOf(s):n.inputes.length;if(a&&e>=m){e>0&&n.raiseEvent(e-1,"focus");return}n.inputes[e].value="",r.value="";for(let w=e;w<n.inputes.length-1;w++){n.inputes[w].value=n.inputes[w+1].value;const E=n.querySelector(`input[name="input-${n.inputes[w].index}"]`);E&&(E.value=n.inputes[w].value)}const C=n.inputes[n.inputes.length-1];C.value="";const b=n.querySelector(`input[name="input-${C.index}"]`);b&&(b.value=""),n.raiseEvent(e,"focus");break}case"ArrowLeft":t.preventDefault(),e>0&&n.raiseEvent(e-1,"focus");break;case"ArrowRight":t.preventDefault(),e<n.maxLength-1&&n.raiseEvent(e+1,"focus");break}}handlePaste(t){var C;t.preventDefault();const r=this._inputOtp;if(!r)return;const e=(((C=t.clipboardData)==null?void 0:C.getData("text"))??"").replace(/\D/g,"").split("").slice(0);if(e.length===0)return;const a=r.inputes.findIndex(b=>b.index===this.index),s=r.maxLength-a;e.splice(s);for(let b=0;b<e.length;b++){const w=a+b;if(w>=r.maxLength)break;r.inputes[w].value=e[b];const E=r.querySelector(`input[name="input-${w}"]`);E&&(E.value=e[b])}const m=a+e.length;m<r.maxLength&&r.raiseEvent(m,"focus")}createRenderRoot(){return this}render(){const t={"rtg-h-[40px]":!0,"rtg-w-[40px]":!0,"rtg-text-center rtg-relative rtg-flex rtg-h-10 rtg-w-10 rtg-items-center rtg-justify-center rtg-border-y rtg-border-r rtg-border-input rtg-text-sm rtg-transition-all":!0,"first:rtg-rounded-l-md first:rtg-border-l":this.isFirst,"last:rtg-rounded-r-md":this.isLast,"rtg-overflow-hidden":!0,"focus:rtg-border focus:rtg-border-[#c1c1c1] focus:rtg-border-[3px]":!0};return d.html`
|
|
4396
4396
|
<input
|
|
4397
4397
|
part="input-otp-slot"
|
|
4398
4398
|
auto-complete="one-time-code"
|
|
@@ -4407,23 +4407,23 @@ body {
|
|
|
4407
4407
|
@keydown=${this.handleKeyDown}
|
|
4408
4408
|
@paste=${this.handlePaste}
|
|
4409
4409
|
style="outline: none"
|
|
4410
|
-
class=${Object.entries(
|
|
4410
|
+
class=${Object.entries(t).map(([r,n])=>n?r:void 0).join(" ")}
|
|
4411
4411
|
/>
|
|
4412
|
-
`}},
|
|
4412
|
+
`}},Ft([l.property({type:Function})],o.InputOtpSlot.prototype,"click",2),Ft([l.property({type:Number})],o.InputOtpSlot.prototype,"index",2),Ft([l.property({type:Boolean})],o.InputOtpSlot.prototype,"isFirst",2),Ft([l.property({type:Boolean})],o.InputOtpSlot.prototype,"isLast",2),Ft([l.property({type:String})],o.InputOtpSlot.prototype,"value",2),o.InputOtpSlot=Ft([l.customElement("rtg-input-otp-slot")],o.InputOtpSlot);var md=Object.defineProperty,fd=Object.getOwnPropertyDescriptor,rn=(i,t,r,n)=>{for(var e=n>1?void 0:n?fd(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&md(t,r,e),e};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(t){super.firstUpdated(t),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`
|
|
4413
4413
|
<div
|
|
4414
4414
|
part="input-otp-group"
|
|
4415
4415
|
class="${p("rtg-flex",this.className)}"
|
|
4416
4416
|
></div>
|
|
4417
|
-
`}},rn([l.property({type:Function})],o.InputOtpGroup.prototype,"click",2),o.InputOtpGroup=rn([l.customElement("rtg-input-otp-group")],o.InputOtpGroup);var vd=Object.defineProperty,bd=Object.getOwnPropertyDescriptor,nn=(i,
|
|
4417
|
+
`}},rn([l.property({type:Function})],o.InputOtpGroup.prototype,"click",2),o.InputOtpGroup=rn([l.customElement("rtg-input-otp-group")],o.InputOtpGroup);var vd=Object.defineProperty,bd=Object.getOwnPropertyDescriptor,nn=(i,t,r,n)=>{for(var e=n>1?void 0:n?bd(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&vd(t,r,e),e};o.InputOtpSeparator=class extends d.LitElement{constructor(){super(...arguments),this.index=0}createRenderRoot(){return this}render(){return d.html`
|
|
4418
4418
|
<div role="separator" class="${p("",this.className)}">${pi()}</div>
|
|
4419
|
-
`}},nn([l.property({type:Number})],o.InputOtpSeparator.prototype,"index",2),o.InputOtpSeparator=nn([l.customElement("rtg-input-otp-separator")],o.InputOtpSeparator);var yd=Object.defineProperty,wd=Object.getOwnPropertyDescriptor,
|
|
4419
|
+
`}},nn([l.property({type:Number})],o.InputOtpSeparator.prototype,"index",2),o.InputOtpSeparator=nn([l.customElement("rtg-input-otp-separator")],o.InputOtpSeparator);var yd=Object.defineProperty,wd=Object.getOwnPropertyDescriptor,pe=(i,t,r,n)=>{for(var e=n>1?void 0:n?wd(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&yd(t,r,e),e};o.InputOtp=class extends h{constructor(){super(),this.maxLength=6,this.onChange=()=>{},this.pin=new Array(this.maxLength),this.inputes=[]}connectedCallback(){super.connectedCallback()}getAttributesToExclude(){return[]}get _containerElement(){return this.querySelector("div[part=input-otp]")}raiseEvent(t,r="changes",n=1/0){const e=new CustomEvent("selected-input",{bubbles:!0,composed:!0,detail:{selectedItems:t,eventType:r,customIndex:n}});this.dispatchEvent(e)}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4420
4420
|
<div
|
|
4421
4421
|
part="input-otp"
|
|
4422
4422
|
class="${p("rtg-flex rtg-items-center",this.className)}"
|
|
4423
4423
|
></div>
|
|
4424
|
-
`}},
|
|
4424
|
+
`}},pe([l.property()],o.InputOtp.prototype,"maxLength",2),pe([l.property()],o.InputOtp.prototype,"onChange",2),pe([l.property()],o.InputOtp.prototype,"pin",2),o.InputOtp=pe([l.customElement("rtg-input-otp")],o.InputOtp);const Cd="rtg-inline-flex rtg-items-center rtg-gap-1.5",_d="rtg-transition-colors hover:rtg-text-foreground",xd="rtg-font-normal rtg-text-foreground",Ed="[&>svg]:rtg-size-3.5",$d="rtg-flex rtg-h-9 rtg-w-9 rtg-items-center rtg-justify-center",Od="rtg-flex rtg-flex-wrap rtg-items-center rtg-gap-1.5 rtg-break-words rtg-text-sm rtg-text-muted-foreground sm:rtg-gap-2.5";var Sd=Object.getOwnPropertyDescriptor,Pd=(i,t,r,n)=>{for(var e=n>1?void 0:n?Sd(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.BreadCrumbEllipsis=class extends h{getAttributesToExclude(){return[""]}createRenderRoot(){return this}render(){const t=this.getFilteredAttributes();return d.html`
|
|
4425
4425
|
<span
|
|
4426
|
-
${H(
|
|
4426
|
+
${H(t)}
|
|
4427
4427
|
id="rtg-bread-crumb-ellipsis"
|
|
4428
4428
|
role="presentation"
|
|
4429
4429
|
aria-hidden="true"
|
|
@@ -4443,32 +4443,32 @@ body {
|
|
|
4443
4443
|
/>
|
|
4444
4444
|
</svg>
|
|
4445
4445
|
</span>
|
|
4446
|
-
`}},o.BreadCrumbEllipsis=Pd([l.customElement("rtg-bread-crumb-ellipsis")],o.BreadCrumbEllipsis);var Dd=Object.getOwnPropertyDescriptor,Rd=(i,
|
|
4446
|
+
`}},o.BreadCrumbEllipsis=Pd([l.customElement("rtg-bread-crumb-ellipsis")],o.BreadCrumbEllipsis);var Dd=Object.getOwnPropertyDescriptor,Rd=(i,t,r,n)=>{for(var e=n>1?void 0:n?Dd(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.BreadCrumbItem=class extends h{get _containerElement(){return this.querySelector("li[part=breadcrumb-item]")}getAttributesToExclude(){return["variant"]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){const t=this.getFilteredAttributes();return d.html`
|
|
4447
4447
|
<li
|
|
4448
|
-
${H(
|
|
4448
|
+
${H(t)}
|
|
4449
4449
|
id="rtg-bread-crumb-item"
|
|
4450
|
-
class="${p(
|
|
4450
|
+
class="${p(Cd,this.className)}"
|
|
4451
4451
|
part="breadcrumb-item"
|
|
4452
4452
|
></li>
|
|
4453
|
-
`}},o.BreadCrumbItem=Rd([l.customElement("rtg-bread-crumb-item")],o.BreadCrumbItem);var kd=Object.defineProperty,Id=Object.getOwnPropertyDescriptor,on=(i,
|
|
4453
|
+
`}},o.BreadCrumbItem=Rd([l.customElement("rtg-bread-crumb-item")],o.BreadCrumbItem);var kd=Object.defineProperty,Id=Object.getOwnPropertyDescriptor,on=(i,t,r,n)=>{for(var e=n>1?void 0:n?Id(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&kd(t,r,e),e};o.BreadCrumbLink=class extends h{constructor(){super(...arguments),this.href="/"}get _containerElement(){return this.querySelector("a[part=breadcrumb-link]")}getAttributesToExclude(){return[""]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){const t=this.getFilteredAttributes();return d.html`
|
|
4454
4454
|
<a
|
|
4455
|
-
${H(
|
|
4455
|
+
${H(t)}
|
|
4456
4456
|
id="rtg-bread-crumb-link"
|
|
4457
|
-
class="${p(
|
|
4457
|
+
class="${p(_d,this.className)}"
|
|
4458
4458
|
href="${this.href}"
|
|
4459
4459
|
part="breadcrumb-link"
|
|
4460
4460
|
>
|
|
4461
4461
|
</a>
|
|
4462
|
-
`}},on([l.property({type:String})],o.BreadCrumbLink.prototype,"href",2),o.BreadCrumbLink=on([l.customElement("rtg-bread-crumb-link")],o.BreadCrumbLink);var Td=Object.getOwnPropertyDescriptor,Ad=(i,
|
|
4462
|
+
`}},on([l.property({type:String})],o.BreadCrumbLink.prototype,"href",2),o.BreadCrumbLink=on([l.customElement("rtg-bread-crumb-link")],o.BreadCrumbLink);var Td=Object.getOwnPropertyDescriptor,Ad=(i,t,r,n)=>{for(var e=n>1?void 0:n?Td(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.BreadCrumbList=class extends h{get _containerElement(){return this.querySelector("ol[part=breadcrumb-list]")}getAttributesToExclude(){return["variant"]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){const t=this.getFilteredAttributes();return d.html`
|
|
4463
4463
|
<ol
|
|
4464
|
-
${H(
|
|
4464
|
+
${H(t)}
|
|
4465
4465
|
id="rtg-bread-crumb-list"
|
|
4466
4466
|
class="${p(Od,this.className)}"
|
|
4467
4467
|
part="breadcrumb-list"
|
|
4468
4468
|
></ol>
|
|
4469
|
-
`}},o.BreadCrumbList=Ad([l.customElement("rtg-bread-crumb-list")],o.BreadCrumbList);var Ld=Object.getOwnPropertyDescriptor,Md=(i,
|
|
4469
|
+
`}},o.BreadCrumbList=Ad([l.customElement("rtg-bread-crumb-list")],o.BreadCrumbList);var Ld=Object.getOwnPropertyDescriptor,Md=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ld(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.BreadCrumbSeparator=class extends h{getAttributesToExclude(){return[""]}createRenderRoot(){return this}render(){const t=this.getFilteredAttributes();return d.html`
|
|
4470
4470
|
<li
|
|
4471
|
-
${H(
|
|
4471
|
+
${H(t)}
|
|
4472
4472
|
id="rtg-bread-crumb-separator"
|
|
4473
4473
|
role="presentation"
|
|
4474
4474
|
aria-hidden="true"
|
|
@@ -4490,9 +4490,9 @@ body {
|
|
|
4490
4490
|
<path d="M22 2 2 22"></path>
|
|
4491
4491
|
</svg>
|
|
4492
4492
|
</li>
|
|
4493
|
-
`}},o.BreadCrumbSeparator=Md([l.customElement("rtg-bread-crumb-separator")],o.BreadCrumbSeparator);var Nd=Object.getOwnPropertyDescriptor,qd=(i,
|
|
4493
|
+
`}},o.BreadCrumbSeparator=Md([l.customElement("rtg-bread-crumb-separator")],o.BreadCrumbSeparator);var Nd=Object.getOwnPropertyDescriptor,qd=(i,t,r,n)=>{for(var e=n>1?void 0:n?Nd(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.BreadCrumbText=class extends h{get _containerElement(){return this.querySelector("span[part=breadcrumb-text]")}getAttributesToExclude(){return[""]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){const t=this.getFilteredAttributes();return d.html`
|
|
4494
4494
|
<span
|
|
4495
|
-
${H(
|
|
4495
|
+
${H(t)}
|
|
4496
4496
|
id="rtg-bread-crumb-text"
|
|
4497
4497
|
aria-disabled="true"
|
|
4498
4498
|
aria-current="page"
|
|
@@ -4500,14 +4500,14 @@ body {
|
|
|
4500
4500
|
part="breadcrumb-text"
|
|
4501
4501
|
>
|
|
4502
4502
|
</span>
|
|
4503
|
-
`}},o.BreadCrumbText=qd([l.customElement("rtg-bread-crumb-text")],o.BreadCrumbText);var zd=Object.getOwnPropertyDescriptor,Bd=(i,
|
|
4503
|
+
`}},o.BreadCrumbText=qd([l.customElement("rtg-bread-crumb-text")],o.BreadCrumbText);var zd=Object.getOwnPropertyDescriptor,Bd=(i,t,r,n)=>{for(var e=n>1?void 0:n?zd(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.BreadCrumb=class extends h{get _containerElement(){return this.querySelector("nav[part=breadcrumb]")}getAttributesToExclude(){return[""]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){const t=this.getFilteredAttributes();return d.html`
|
|
4504
4504
|
<nav
|
|
4505
|
-
${H(
|
|
4505
|
+
${H(t)}
|
|
4506
4506
|
part="breadcrumb"
|
|
4507
4507
|
class="${p(this.className)}"
|
|
4508
4508
|
aria-label="breadcrumb"
|
|
4509
4509
|
></nav>
|
|
4510
|
-
`}},o.BreadCrumb=Bd([l.customElement("rtg-bread-crumb")],o.BreadCrumb);var Ud=Object.getOwnPropertyDescriptor,Fd=(i,
|
|
4510
|
+
`}},o.BreadCrumb=Bd([l.customElement("rtg-bread-crumb")],o.BreadCrumb);var Ud=Object.getOwnPropertyDescriptor,Fd=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ud(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.NavigationMenuList=class extends h{get _containerElement(){return this.querySelector("ul[part=navigation-menu-list]")}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4511
4511
|
<div class="${p("relative",this.className)}">
|
|
4512
4512
|
<ul
|
|
4513
4513
|
part="navigation-menu-list"
|
|
@@ -4517,7 +4517,7 @@ body {
|
|
|
4517
4517
|
></ul>
|
|
4518
4518
|
<div></div>
|
|
4519
4519
|
</div>
|
|
4520
|
-
`}},o.NavigationMenuList=Fd([l.customElement("rtg-navigation-menu-list")],o.NavigationMenuList);var Gd=Object.defineProperty,Vd=Object.getOwnPropertyDescriptor,
|
|
4520
|
+
`}},o.NavigationMenuList=Fd([l.customElement("rtg-navigation-menu-list")],o.NavigationMenuList);var Gd=Object.defineProperty,Vd=Object.getOwnPropertyDescriptor,Gt=(i,t,r,n)=>{for(var e=n>1?void 0:n?Vd(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Gd(t,r,e),e};o.NavigationMenuItem=class extends h{constructor(){super(...arguments),this.value="",this.navigationLink=!0,this.isOpen=!1,this.uniqueIds=[],this.isHovering=!1,this.handleClickOutside=t=>{const r=t.target;this.contains(r)||(this.isOpen=!1)}}raiseEvent(){const t=new CustomEvent("unique-ids-generated",{detail:{ids:this.uniqueIds},bubbles:!0,composed:!0});this.dispatchEvent(t)}firstUpdated(){this.moveLightDomChildrenInto(this.querySelector("div[part=content-slot]"),[this._content]),this.moveLightDomChildrenInto(this.querySelector("div[part=button-slot]"),[this._button])}closeAllMenus(){document.querySelectorAll("rtg-navigation-menu-item").forEach(r=>{r.isOpen=!1,r.isHovering=!1})}toggleMenubar(t){t.stopPropagation(),document.querySelectorAll("rtg-navigation-menu-item").forEach(n=>{n!==this&&(n.isOpen=!1)}),this.isOpen=!this.isOpen}get _content(){return this.querySelector("rtg-navigation-menu-content")}get _button(){return this.querySelector("rtg-navigation-menu-trigger")}updated(t){super.updated(t);const r=this._content;r&&(r.dataset.state=this.isOpen?"open":"close")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}handleHover(){this.closeAllMenus(),this.isHovering||(this.isHovering=!0,this.isOpen=!0)}handleMouseLeave(){this.isHovering=!1,this.isOpen=!1}createRenderRoot(){return this}render(){return d.html`
|
|
4521
4521
|
<li
|
|
4522
4522
|
@mouseenter="${this.handleHover}"
|
|
4523
4523
|
@mouseleave="${this.handleMouseLeave}"
|
|
@@ -4547,7 +4547,7 @@ body {
|
|
|
4547
4547
|
</div>
|
|
4548
4548
|
<div part="content-slot" style="position:absolute"></div>
|
|
4549
4549
|
</li>
|
|
4550
|
-
`}},
|
|
4550
|
+
`}},Gt([l.property({type:String})],o.NavigationMenuItem.prototype,"value",2),Gt([l.property({type:Boolean})],o.NavigationMenuItem.prototype,"navigationLink",2),Gt([l.state()],o.NavigationMenuItem.prototype,"isOpen",2),Gt([l.state()],o.NavigationMenuItem.prototype,"uniqueIds",2),Gt([l.state()],o.NavigationMenuItem.prototype,"isHovering",2),o.NavigationMenuItem=Gt([l.customElement("rtg-navigation-menu-item")],o.NavigationMenuItem);const Hd="rtg-absolute rtg-top-full rtg-flex rtg-justify-center",Yd="rtg-flex rtg-h-full hover:rtg-bg-slate-100 rtg-rounded-md rtg-p-6 rtg-w-full rtg-select-none rtg-flex-col rtg-justify-end rtg-no-underline rtg-outline-none",jd="rtg-relative rtg-z-10 rtg-flex rtg-max-w-max rtg-flex-1 rtg-items-center rtg-justify-center";var Wd=Object.defineProperty,Xd=Object.getOwnPropertyDescriptor,re=(i,t,r,n)=>{for(var e=n>1?void 0:n?Xd(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Wd(t,r,e),e};o.NavigationMenuContent=class extends h{constructor(){super(...arguments),this.state="close",this.id="",this.side="bottom",this.isOpen=!0}get _menubarMenu(){let t=this.parentElement;for(;t&&!(t instanceof o.NavigationMenuItem);)t=t.parentElement;return t}get _containerElement(){return this.querySelector("div[part=navigation-menu-content-container]")}getAttributesToExclude(){return["data-testid"]}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(t){super.updated(t),this.state==="open"?this.isOpen=!0:this.isOpen=!1,t.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(t){const r=this.querySelector("button");this&&!this.contains(t.target)&&!(r!=null&&r.contains(t.target))&&(this.isOpen=!1)}createRenderRoot(){return this}firstUpdated(t){requestAnimationFrame(()=>{this.moveLightDomChildrenInto(this._containerElement)})}render(){return d.html`
|
|
4551
4551
|
<div
|
|
4552
4552
|
class="${p(Hd,this.className)}"
|
|
4553
4553
|
style="display: ${this.isOpen?"block":"none"};top:0px;left:0px;"
|
|
@@ -4568,7 +4568,7 @@ body {
|
|
|
4568
4568
|
></div>
|
|
4569
4569
|
</div>
|
|
4570
4570
|
</div>
|
|
4571
|
-
`}},
|
|
4571
|
+
`}},re([l.property({attribute:"data-state",type:String})],o.NavigationMenuContent.prototype,"state",2),re([l.property({type:String})],o.NavigationMenuContent.prototype,"id",2),re([l.property({type:String})],o.NavigationMenuContent.prototype,"side",2),re([l.state()],o.NavigationMenuContent.prototype,"isOpen",2),o.NavigationMenuContent=re([l.customElement("rtg-navigation-menu-content")],o.NavigationMenuContent);var Kd=Object.defineProperty,Qd=Object.getOwnPropertyDescriptor,an=(i,t,r,n)=>{for(var e=n>1?void 0:n?Qd(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Kd(t,r,e),e};o.NavigationMenuLink=class extends h{constructor(){super(...arguments),this.href="/"}get _containerElement(){return this.querySelector("a[part=navigation-menu-link]")}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4572
4572
|
<a
|
|
4573
4573
|
part="navigation-menu-link"
|
|
4574
4574
|
class="${p(Yd,this.className)}"
|
|
@@ -4578,9 +4578,9 @@ body {
|
|
|
4578
4578
|
tabindex="-1"
|
|
4579
4579
|
>
|
|
4580
4580
|
</a>
|
|
4581
|
-
`}},an([l.property({type:String})],o.NavigationMenuLink.prototype,"href",2),o.NavigationMenuLink=an([l.customElement("rtg-navigation-menu-link")],o.NavigationMenuLink);var Zd=Object.getOwnPropertyDescriptor,Jd=(i,
|
|
4581
|
+
`}},an([l.property({type:String})],o.NavigationMenuLink.prototype,"href",2),o.NavigationMenuLink=an([l.customElement("rtg-navigation-menu-link")],o.NavigationMenuLink);var Zd=Object.getOwnPropertyDescriptor,Jd=(i,t,r,n)=>{for(var e=n>1?void 0:n?Zd(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.NavigationMenuTrigger=class extends h{get _containerElement(){return this.querySelector("div[part=navigation-menu-trigger]")}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}getAttributesToExclude(){return["data-testid"]}render(){return d.html`
|
|
4582
4582
|
<div part="navigation-menu-trigger" class="${p(this.className)}"></div>
|
|
4583
|
-
`}},o.NavigationMenuTrigger=Jd([l.customElement("rtg-navigation-menu-trigger")],o.NavigationMenuTrigger);var
|
|
4583
|
+
`}},o.NavigationMenuTrigger=Jd([l.customElement("rtg-navigation-menu-trigger")],o.NavigationMenuTrigger);var tu=Object.getOwnPropertyDescriptor,eu=(i,t,r,n)=>{for(var e=n>1?void 0:n?tu(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.NavigationMenu=class extends h{get _containerElement(){return this.querySelector("nav[part=navigation-menu]")}createRenderRoot(){return this}firstUpdated(t){}render(){return d.html`
|
|
4584
4584
|
<nav
|
|
4585
4585
|
part="navigation-menu"
|
|
4586
4586
|
aria-label="Main"
|
|
@@ -4588,7 +4588,7 @@ body {
|
|
|
4588
4588
|
dir="ltr"
|
|
4589
4589
|
class="${p(jd,this.className)}"
|
|
4590
4590
|
></nav>
|
|
4591
|
-
`}},o.NavigationMenu=
|
|
4591
|
+
`}},o.NavigationMenu=eu([l.customElement("rtg-navigation-menu")],o.NavigationMenu);var ru=Object.defineProperty,nu=Object.getOwnPropertyDescriptor,Vt=(i,t,r,n)=>{for(var e=n>1?void 0:n?nu(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&ru(t,r,e),e};o.MenubarMenu=class extends h{constructor(){super(...arguments),this.isOpen=!1,this.uniqueIds=[],this.selectedMenu="",this.isHovering=!1,this.id="",this.toggleMenubar=t=>{t.stopPropagation(),document.querySelectorAll("rtg-menubar-menu").forEach(n=>{n!==this&&(n.isOpen=!1)}),this.isOpen=!this.isOpen},this.handleClickOutside=t=>{const r=t.target;this.contains(r)||(this.isOpen=!1)},this.handleMenuMouseEnter=()=>{this.closeAllMenus(),this.isOpen=!0,this.isHovering=!0},this.handleMenuMouseLeave=t=>{const r=t.relatedTarget;this.isDescendant(r,"rtg-menubar-content")||(this.isOpen=!1,this.isHovering=!1)}}get _content(){return this.querySelector("rtg-menubar-content")}get _button(){return this.querySelector("rtg-menubar-trigger")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside),this.addEventListener("radio-selected",this._handleRadioSelected)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}updated(t){super.updated(t);const r=this._content;r&&(r.dataset.state=this.isOpen?"open":"close")}_handleRadioSelected(t){this.querySelectorAll("rtg-menubar-radio-item").forEach(r=>{const n=r;r!==t.target&&(n.checked=!1)})}firstUpdated(){this.setupContentListeners();const t=this.querySelector("div[part=menubar-menu-slot]"),r=this.querySelector("div[part=button-slot]");t&&this._content&&t.appendChild(this._content),r&&this._button&&r.appendChild(this._button)}raiseEvent(){const t=new CustomEvent("unique-ids-generated",{detail:{ids:this.uniqueIds},bubbles:!0,composed:!0});this.dispatchEvent(t)}closeAllMenus(){document.querySelectorAll("rtg-menubar-menu").forEach(r=>{r.isOpen=!1,r.isHovering=!1})}isDescendant(t,r){let n=t.parentElement;for(;n;){if(n.tagName.toLowerCase()===r.toLowerCase())return!0;n=n.parentElement}return!1}setupContentListeners(){const t=this._content;t&&(t.addEventListener("mouseenter",()=>this.isOpen=!0),t.addEventListener("mouseleave",()=>this.isOpen=!1))}render(){return d.html`
|
|
4592
4592
|
<div class="${p("",this.className)}">
|
|
4593
4593
|
<div
|
|
4594
4594
|
part="menuitem"
|
|
@@ -4607,7 +4607,7 @@ body {
|
|
|
4607
4607
|
</div>
|
|
4608
4608
|
<div part="menubar-menu-slot"></div>
|
|
4609
4609
|
</div>
|
|
4610
|
-
`}},
|
|
4610
|
+
`}},Vt([l.state()],o.MenubarMenu.prototype,"isOpen",2),Vt([l.state()],o.MenubarMenu.prototype,"uniqueIds",2),Vt([l.state()],o.MenubarMenu.prototype,"selectedMenu",2),Vt([l.state()],o.MenubarMenu.prototype,"isHovering",2),Vt([l.property({type:String})],o.MenubarMenu.prototype,"id",2),o.MenubarMenu=Vt([l.customElement("rtg-menubar-menu")],o.MenubarMenu);const ou="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",iu="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",au="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",su="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",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",cu="rtg-mx-1 rtg-h-px rtg-bg-border",du="rtg-ml-auto rtg-text-xs rtg-font-semibold",uu="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 gu=Object.defineProperty,pu=Object.getOwnPropertyDescriptor,ne=(i,t,r,n)=>{for(var e=n>1?void 0:n?pu(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&gu(t,r,e),e};o.MenubarContent=class extends h{constructor(){super(...arguments),this.state=Be,this.id="",this.side="bottom",this.isOpen=!1}get _menubarMenu(){let t=this.parentElement;for(;t&&!(t instanceof o.MenubarMenu);)t=t.parentElement;return t}get _containerElement(){return this.querySelector("div[part=menubar-content]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(t){requestAnimationFrame(()=>{this.moveLightDomChildrenInto(this._containerElement)})}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(t){super.updated(t),this.state==="open"?this.isOpen=!0:this.isOpen=!1,t.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(t){const r=this.querySelector("button");this&&!this.contains(t.target)&&!(r!=null&&r.contains(t.target))&&(this.isOpen=!1)}render(){return d.html`
|
|
4611
4611
|
<div
|
|
4612
4612
|
part="menubar-content"
|
|
4613
4613
|
id="${this.id}"
|
|
@@ -4623,7 +4623,7 @@ body {
|
|
|
4623
4623
|
class="${p(iu,this.className)}"
|
|
4624
4624
|
style="display: ${this.isOpen?"block":"none"};width:260px;position:absolute;"
|
|
4625
4625
|
></div>
|
|
4626
|
-
`}},
|
|
4626
|
+
`}},ne([l.property({attribute:"data-state",type:String})],o.MenubarContent.prototype,"state",2),ne([l.property({type:String})],o.MenubarContent.prototype,"id",2),ne([l.property({type:String})],o.MenubarContent.prototype,"side",2),ne([l.state()],o.MenubarContent.prototype,"isOpen",2),o.MenubarContent=ne([l.customElement("rtg-menubar-content")],o.MenubarContent);var hu=Object.defineProperty,mu=Object.getOwnPropertyDescriptor,he=(i,t,r,n)=>{for(var e=n>1?void 0:n?mu(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&hu(t,r,e),e};o.MenubarGroup=class extends h{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get _containerElement(){return this.querySelector("div[part=menubar-group-slot]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}get identifier(){var r,n;if(this._id!=="")return this._id;const t=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-list]");return t?this._id=`${t.getAttribute("id")}g${o.MenubarGroup._counter++}`:this._id=`rtgcmdrxlxg${o.MenubarGroup._counter++}`,this._id}render(){return d.html`${this._hidden==="true"?d.nothing:d.html`
|
|
4627
4627
|
<div
|
|
4628
4628
|
part="menubar-group"
|
|
4629
4629
|
class="${p(au,this.className)}"
|
|
@@ -4639,7 +4639,7 @@ body {
|
|
|
4639
4639
|
part="menubar-group-slot"
|
|
4640
4640
|
></div>
|
|
4641
4641
|
</div>
|
|
4642
|
-
`}`}},o.MenubarGroup._counter=0,
|
|
4642
|
+
`}`}},o.MenubarGroup._counter=0,he([l.property({type:String})],o.MenubarGroup.prototype,"heading",2),he([l.property({attribute:"id",type:String})],o.MenubarGroup.prototype,"_id",2),he([l.property({attribute:"aria-hidden",type:String})],o.MenubarGroup.prototype,"_hidden",2),o.MenubarGroup=he([l.customElement("rtg-menubar-group")],o.MenubarGroup);var fu=Object.defineProperty,vu=Object.getOwnPropertyDescriptor,oe=(i,t,r,n)=>{for(var e=n>1?void 0:n?vu(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&fu(t,r,e),e};o.MenubarItem=class extends h{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1}get _containerElement(){return this.querySelector("div[part=menubar-item]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}get identifier(){var r,n;if(this._id!=="")return this._id;const t=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-group]");return t?this._id=`${t.getAttribute("id")}li${o.MenubarItem._counter++}`:this._id=`rtgcmdrxgxli${o.MenubarItem._counter++}`,this._id}get value(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}handleMouseEvent(t){(t.type==="mouseover"||t.type==="focus")&&(this.selected=!0),t.type==="mouseleave"&&(this.selected=!1)}render(){return d.html` ${this._hidden==="true"?d.nothing:d.html`
|
|
4643
4643
|
<div
|
|
4644
4644
|
part="menubar-item"
|
|
4645
4645
|
class="${p(su,this.className)}"
|
|
@@ -4653,7 +4653,7 @@ body {
|
|
|
4653
4653
|
id="${this.identifier}"
|
|
4654
4654
|
aria-hidden="${this.hidden}"
|
|
4655
4655
|
></div>
|
|
4656
|
-
`}`}},o.MenubarItem._counter=0,
|
|
4656
|
+
`}`}},o.MenubarItem._counter=0,oe([l.property({type:String})],o.MenubarItem.prototype,"_id",2),oe([l.property({attribute:"aria-hidden",type:String})],o.MenubarItem.prototype,"_hidden",2),oe([l.property({attribute:"data-value",type:String})],o.MenubarItem.prototype,"value",1),oe([l.property({type:Boolean})],o.MenubarItem.prototype,"selected",2),o.MenubarItem=oe([l.customElement("rtg-menubar-item")],o.MenubarItem);var bu=Object.defineProperty,yu=Object.getOwnPropertyDescriptor,Pt=(i,t,r,n)=>{for(var e=n>1?void 0:n?yu(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&bu(t,r,e),e};o.MenubarRadioItem=class extends h{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get _containerElement(){return this.querySelector("div[part=menubar-radio-item]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}get identifier(){var r,n;if(this._id!=="")return this._id;const t=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-group]");return t?this._id=`${t.getAttribute("id")}li${o.MenubarRadioItem._counter++}`:this._id=`rtgcmdrxgxli${o.MenubarRadioItem._counter++}`,this._id}get value(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}handleMouseEvent(t){(t.type==="mouseover"||t.type==="focus")&&(this.selected=!0),t.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}render(){return d.html`
|
|
4657
4657
|
<div
|
|
4658
4658
|
part="menubar-radio-item"
|
|
4659
4659
|
class="${p(lu,this.disabled?"rtg-pointer-events-none rtg-opacity-50":"",this.className)}"
|
|
@@ -4672,7 +4672,7 @@ body {
|
|
|
4672
4672
|
<span
|
|
4673
4673
|
class="icon-space absolute left-2 flex items-center justify-center"
|
|
4674
4674
|
>
|
|
4675
|
-
${this.checked?d.html` ${
|
|
4675
|
+
${this.checked?d.html` ${ke()} `:d.nothing}
|
|
4676
4676
|
</span>
|
|
4677
4677
|
</div>
|
|
4678
4678
|
`}},o.MenubarRadioItem._counter=0,o.MenubarRadioItem.styles=[d.css`
|
|
@@ -4681,7 +4681,7 @@ body {
|
|
|
4681
4681
|
height: 16px;
|
|
4682
4682
|
display: inline-block;
|
|
4683
4683
|
}
|
|
4684
|
-
`],
|
|
4684
|
+
`],Pt([l.property({type:String})],o.MenubarRadioItem.prototype,"_id",2),Pt([l.property({attribute:"aria-hidden",type:String})],o.MenubarRadioItem.prototype,"_hidden",2),Pt([l.property({attribute:"data-value",type:String})],o.MenubarRadioItem.prototype,"value",1),Pt([l.property({type:Boolean})],o.MenubarRadioItem.prototype,"selected",2),Pt([l.property({type:Boolean})],o.MenubarRadioItem.prototype,"checked",2),Pt([l.property({type:Boolean})],o.MenubarRadioItem.prototype,"disabled",2),o.MenubarRadioItem=Pt([l.customElement("rtg-menubar-radio-item")],o.MenubarRadioItem);var wu=Object.defineProperty,Cu=Object.getOwnPropertyDescriptor,Dt=(i,t,r,n)=>{for(var e=n>1?void 0:n?Cu(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&wu(t,r,e),e};o.MenubarCheckboxItem=class extends h{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get _containerElement(){return this.querySelector("div[part=menubar-checkbox-item]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}get identifier(){var r,n;if(this._id!=="")return this._id;const t=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-group]");return t?this._id=`${t.getAttribute("id")}li${o.MenubarCheckboxItem._counter++}`:this._id=`rtgcmdrxgxli${o.MenubarCheckboxItem._counter++}`,this._id}get value(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}handleMouseEvent(t){(t.type==="mouseover"||t.type==="focus")&&(this.selected=!0),t.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}render(){return d.html`
|
|
4685
4685
|
<div
|
|
4686
4686
|
part="menubar-checkbox-item"
|
|
4687
4687
|
class="${p(ou,this.disabled?"rtg-pointer-events-none rtg-opacity-50":"",this.className)}"
|
|
@@ -4720,7 +4720,7 @@ body {
|
|
|
4720
4720
|
height: 16px;
|
|
4721
4721
|
display: inline-block;
|
|
4722
4722
|
}
|
|
4723
|
-
`],
|
|
4723
|
+
`],Dt([l.property({type:String})],o.MenubarCheckboxItem.prototype,"_id",2),Dt([l.property({attribute:"aria-hidden",type:String})],o.MenubarCheckboxItem.prototype,"_hidden",2),Dt([l.property({attribute:"data-value",type:String})],o.MenubarCheckboxItem.prototype,"value",1),Dt([l.property({type:Boolean})],o.MenubarCheckboxItem.prototype,"selected",2),Dt([l.property({type:Boolean})],o.MenubarCheckboxItem.prototype,"checked",2),Dt([l.property({type:Boolean})],o.MenubarCheckboxItem.prototype,"disabled",2),o.MenubarCheckboxItem=Dt([l.customElement("rtg-menubar-checkbox-item")],o.MenubarCheckboxItem);var _u=Object.defineProperty,xu=Object.getOwnPropertyDescriptor,Je=(i,t,r,n)=>{for(var e=n>1?void 0:n?xu(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&_u(t,r,e),e};o.MenubarSeparator=class extends h{constructor(){super(...arguments),this._id="",this._hidden=""}get _containerElement(){return this.querySelector("div[part=menubar-separator]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}get identifier(){var r;if(this._id!=="")return this._id;const t=(r=this.parentElement)==null?void 0:r.querySelector("div[rtgcmd-list]");return t?this._id=`${t.getAttribute("id")}s${o.MenubarSeparator._counter++}`:this._id=`rtgcmdrxlxs${o.MenubarSeparator._counter++}`,this._id}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`${this._hidden==="true"?d.nothing:d.html`
|
|
4724
4724
|
<div
|
|
4725
4725
|
part="menubar-separator"
|
|
4726
4726
|
class="${p(cu,this.className)}"
|
|
@@ -4728,15 +4728,15 @@ body {
|
|
|
4728
4728
|
role="separator"
|
|
4729
4729
|
id="${this.identifier}"
|
|
4730
4730
|
></div>
|
|
4731
|
-
`}`}},o.MenubarSeparator._counter=0,
|
|
4731
|
+
`}`}},o.MenubarSeparator._counter=0,Je([l.property({type:String})],o.MenubarSeparator.prototype,"_id",2),Je([l.property({attribute:"aria-hidden",type:String})],o.MenubarSeparator.prototype,"_hidden",2),o.MenubarSeparator=Je([l.customElement("rtg-menubar-separator")],o.MenubarSeparator);var Eu=Object.getOwnPropertyDescriptor,$u=(i,t,r,n)=>{for(var e=n>1?void 0:n?Eu(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.MenubarShortcut=class extends h{get _containerElement(){return this.querySelector("span[part=menubar-shortcut]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4732
4732
|
<span
|
|
4733
4733
|
part="menubar-shortcut"
|
|
4734
4734
|
class="${p(du,this.className)}"
|
|
4735
4735
|
>
|
|
4736
4736
|
</span>
|
|
4737
|
-
`}},o.MenubarShortcut=$u([l.customElement("rtg-menubar-shortcut")],o.MenubarShortcut);var Ou=Object.getOwnPropertyDescriptor,Su=(i,
|
|
4737
|
+
`}},o.MenubarShortcut=$u([l.customElement("rtg-menubar-shortcut")],o.MenubarShortcut);var Ou=Object.getOwnPropertyDescriptor,Su=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ou(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.MenubarTrigger=class extends h{get _containerElement(){return this.querySelector("div[part=menubar-trigger]")}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}getAttributesToExclude(){return["data-testid"]}render(){return d.html`
|
|
4738
4738
|
<div part="menubar-trigger" class="${p(this.className)}"></div>
|
|
4739
|
-
`}},o.MenubarTrigger=Su([l.customElement("rtg-menubar-trigger")],o.MenubarTrigger);var Pu=Object.getOwnPropertyDescriptor,Du=(i,
|
|
4739
|
+
`}},o.MenubarTrigger=Su([l.customElement("rtg-menubar-trigger")],o.MenubarTrigger);var Pu=Object.getOwnPropertyDescriptor,Du=(i,t,r,n)=>{for(var e=n>1?void 0:n?Pu(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.Menubar=class extends h{get _containerElement(){return this.querySelector("div[part=menubar]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4740
4740
|
<div
|
|
4741
4741
|
part="menubar"
|
|
4742
4742
|
role="menubar"
|
|
@@ -4745,7 +4745,7 @@ body {
|
|
|
4745
4745
|
data-orientation="horizontal"
|
|
4746
4746
|
style="outline: none;width:fit-content"
|
|
4747
4747
|
></div>
|
|
4748
|
-
`}},o.Menubar=Du([l.customElement("rtg-menubar")],o.Menubar);var Ru=Object.defineProperty,ku=Object.getOwnPropertyDescriptor,
|
|
4748
|
+
`}},o.Menubar=Du([l.customElement("rtg-menubar")],o.Menubar);var Ru=Object.defineProperty,ku=Object.getOwnPropertyDescriptor,me=(i,t,r,n)=>{for(var e=n>1?void 0:n?ku(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Ru(t,r,e),e};o.Table=class extends h{constructor(){super(...arguments),this.dataTable=[],this.footerData=[],this.captionText=""}get _containerElement(){return this.querySelector("table[part=table]")}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}get columnKeys(){var r;const t=(r=this.dataTable)==null?void 0:r[0];return t?Object.keys(t).filter(n=>n!=="id"):[]}capitalizeLabel(t){return t.charAt(0).toUpperCase()+t.slice(1)}render(){var r;const t=this.columnKeys;return d.html`
|
|
4749
4749
|
<div
|
|
4750
4750
|
class="preview rtg-flex rtg-min-h-[350px] rtg-w-full rtg-items-center rtg-justify-center rtg-p-10"
|
|
4751
4751
|
>
|
|
@@ -4762,7 +4762,7 @@ body {
|
|
|
4762
4762
|
<tr
|
|
4763
4763
|
class="rtg-border-b rtg-transition-colors hover:rtg-bg-muted/50 data-[state=selected]:rtg-bg-muted"
|
|
4764
4764
|
>
|
|
4765
|
-
${
|
|
4765
|
+
${t.map((n,e,a)=>{const s=e===0,E=`rtg-h-10 rtg-px-2 rtg-align-middle rtg-font-medium rtg-text-muted-foreground [&:has([role=checkbox])]:rtg-pr-0 [&>[role=checkbox]]:rtg-translate-y-[2px] ${e===a.length-1?"rtg-text-right":"rtg-text-left"} ${s?"rtg-w-[100px]":""}`.trim();return d.html`<th class=${E}>
|
|
4766
4766
|
${this.capitalizeLabel(n)}
|
|
4767
4767
|
</th>`})}
|
|
4768
4768
|
</tr>
|
|
@@ -4773,7 +4773,7 @@ body {
|
|
|
4773
4773
|
data-id=${n.id??""}
|
|
4774
4774
|
class="rtg-border-b rtg-transition-colors hover:rtg-bg-muted/50 data-[state=selected]:rtg-bg-muted"
|
|
4775
4775
|
>
|
|
4776
|
-
${
|
|
4776
|
+
${t.map((e,a,s)=>{const m=a===0,C=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":""} ${C?"rtg-text-right":""}`.trim();return d.html`<td class=${N}>${n[e]??""}</td>`})}
|
|
4777
4777
|
</tr>
|
|
4778
4778
|
`)}
|
|
4779
4779
|
</tbody>
|
|
@@ -4784,7 +4784,7 @@ body {
|
|
|
4784
4784
|
<tr
|
|
4785
4785
|
class="rtg-border-b rtg-transition-colors hover:rtg-bg-muted/50 data-[state=selected]:rtg-bg-muted"
|
|
4786
4786
|
>
|
|
4787
|
-
${
|
|
4787
|
+
${t.map((n,e,a)=>{const b=`rtg-p-2 rtg-align-middle [&:has([role=checkbox])]:rtg-pr-0 [&>[role=checkbox]]:rtg-translate-y-[2px] ${e===a.length-1?"rtg-text-right":""}`.trim(),w=this.footerData.find(E=>E.key===n);return d.html`<td class=${b}>
|
|
4788
4788
|
${(w==null?void 0:w.value)??""}
|
|
4789
4789
|
</td>`})}
|
|
4790
4790
|
</tr>
|
|
@@ -4793,44 +4793,44 @@ body {
|
|
|
4793
4793
|
</table>
|
|
4794
4794
|
</div>
|
|
4795
4795
|
</div>
|
|
4796
|
-
`}},
|
|
4796
|
+
`}},me([l.property({type:Array})],o.Table.prototype,"dataTable",2),me([l.property({type:Array})],o.Table.prototype,"footerData",2),me([l.property({type:String})],o.Table.prototype,"captionText",2),o.Table=me([l.customElement("rtg-table")],o.Table);class sn{constructor(){this.values={},this.errors={},this.validators={},this.subscribers=new Set}registerField({name:t,defaultValue:r="",validator:n}){t in this.values||(this.values[t]=r),n&&(this.validators[t]=n)}unregisterField(t){delete this.values[t],delete this.errors[t],delete this.validators[t]}setValue(t,r){t in this.validators||console.warn(`[FormController] setValue called before validator was registered for "${t}"`),this.values[t]=r,this.validateField(t),this.notify()}getValue(t){return this.values[t]}getError(t){return this.errors[t]??null}validateField(t){const r=this.validators[t],n=this.values[t],e=r?r(n):null;return this.errors[t]=e,this.notify(),!e}validateAll(){let t=!0;return Object.keys(this.validators).forEach(r=>{this.validateField(r)||(t=!1)}),t}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}notify(){this.subscribers.forEach(t=>t())}getValues(){return{...this.values}}getErrors(){return{...this.errors}}}const ie=nt.createContext("rtg-form-context");var Iu=Object.defineProperty,Tu=Object.getOwnPropertyDescriptor,ln=(i,t,r,n)=>{for(var e=n>1?void 0:n?Tu(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Iu(t,r,e),e};o.RtgFormController=class extends h{constructor(){super(...arguments),this.form=new sn,this.handleSubmit=t=>{if(t.preventDefault(),this.form.validateAll()){const n=this.form.getValues();alert(JSON.stringify(n,null,2))}}}createRenderRoot(){return this}async firstUpdated(t){await this.updateComplete,Array.from(this.childNodes).forEach(r=>{r!==this.formElement&&this.formElement.appendChild(r)}),this.querySelectorAll("rtg-form-field").forEach(r=>{const n=r.getAttribute("name"),e=r.validators,a=e==null?void 0:e[0];this.form.registerField({name:n,validator:a})})}render(){return d.html`
|
|
4797
4797
|
<form
|
|
4798
4798
|
part="form-controller"
|
|
4799
4799
|
class="${p("",this.className)}"
|
|
4800
4800
|
@submit=${this.handleSubmit}
|
|
4801
|
-
${Mn.ref(
|
|
4801
|
+
${Mn.ref(t=>this.formElement=t)}
|
|
4802
4802
|
></form>
|
|
4803
|
-
`}},ln([l.state(),
|
|
4803
|
+
`}},ln([l.state(),nt.provide({context:ie})],o.RtgFormController.prototype,"form",2),o.RtgFormController=ln([l.customElement("rtg-form-controller")],o.RtgFormController);const cn=nt.createContext("rtg-form-item-context"),Au="rtg-space-y-4",Lu="rtg-text-sm rtg-text-muted-foreground rtg-mt-1",Mu="rtg-space-y-2",Nu="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 Bu=Object.defineProperty,Uu=Object.getOwnPropertyDescriptor,dn=(i,t,r,n)=>{for(var e=n>1?void 0:n?Uu(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Bu(t,r,e),e};o.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`
|
|
4804
4804
|
<p
|
|
4805
4805
|
id="${this.itemContext.id}-description"
|
|
4806
4806
|
part="form-description"
|
|
4807
4807
|
class="${p(Lu,this.className)}"
|
|
4808
4808
|
></p>
|
|
4809
|
-
`}},dn([
|
|
4809
|
+
`}},dn([nt.consume({context:cn})],o.RtgFormDescription.prototype,"itemContext",2),o.RtgFormDescription=dn([l.customElement("rtg-form-description")],o.RtgFormDescription);const Fu=nt.createContext("rtg-form-field-context");var Gu=Object.defineProperty,Vu=Object.getOwnPropertyDescriptor,Ht=(i,t,r,n)=>{for(var e=n>1?void 0:n?Vu(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Gu(t,r,e),e};o.RtgFormField=class extends h{constructor(){super(...arguments),this.name="",this.validators=[],this.defaultValue="",this.fieldName="",this.registered=!1}createRenderRoot(){return this}get _container(){return this.querySelector("div[part=form-field]")}updated(){var n;if(this.registered||!this.form||!this.name||!Array.isArray(this.validators)||this.validators.length===0)return;const t=e=>{for(const a of this.validators){const s=a(e);if(s)return s}return null};this.form.registerField({name:this.name,validator:t,defaultValue:this.defaultValue}),this.registered=!0,this.moveLightDomChildrenInto(this._container);const r=(n=this._container)==null?void 0:n.querySelector("input, textarea, select");r&&(this.defaultValue!==void 0&&(r.value=this.defaultValue),r.addEventListener("input",()=>{this.form.setValue(this.name,r.value)}))}disconnectedCallback(){var t;super.disconnectedCallback(),this.isConnected||(t=this.form)==null||t.unregisterField(this.name)}render(){return d.html`<div
|
|
4810
4810
|
part="form-field"
|
|
4811
4811
|
class="${p(Mu,this.className)}"
|
|
4812
|
-
></div>`}},
|
|
4812
|
+
></div>`}},Ht([nt.consume({context:ie})],o.RtgFormField.prototype,"form",2),Ht([l.property({type:String})],o.RtgFormField.prototype,"name",2),Ht([l.property({type:Array})],o.RtgFormField.prototype,"validators",2),Ht([l.property({type:String})],o.RtgFormField.prototype,"defaultValue",2),Ht([nt.provide({context:Fu})],o.RtgFormField.prototype,"fieldName",2),o.RtgFormField=Ht([l.customElement("rtg-form-field")],o.RtgFormField);var Hu=Object.defineProperty,Yu=Object.getOwnPropertyDescriptor,un=(i,t,r,n)=>{for(var e=n>1?void 0:n?Yu(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Hu(t,r,e),e};o.RtgFormItem=class extends h{constructor(){super(...arguments),this._generatedId=crypto.randomUUID(),this.itemContext={id:this._generatedId}}createRenderRoot(){return this}get _container(){return this.querySelector("div[part=form-item]")}firstUpdated(){this.moveLightDomChildrenInto(this._container)}render(){return d.html`<div
|
|
4813
4813
|
part="form-item"
|
|
4814
4814
|
class="${p(Nu,this.className)}"
|
|
4815
|
-
></div>`}},un([
|
|
4815
|
+
></div>`}},un([nt.provide({context:cn})],o.RtgFormItem.prototype,"itemContext",2),o.RtgFormItem=un([l.customElement("rtg-form-item")],o.RtgFormItem);var ju=Object.defineProperty,Wu=Object.getOwnPropertyDescriptor,tr=(i,t,r,n)=>{for(var e=n>1?void 0:n?Wu(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&ju(t,r,e),e};o.RtgFormLabel=class extends h{constructor(){super(...arguments),this.hasError=!1,this.unsubscribe=null}get _field(){let t=this.parentElement;for(;t&&!(t instanceof o.RtgFormField);)t=t.parentElement;return t}createRenderRoot(){return this}get _label(){return this.querySelector("label[part=form-label]")}firstUpdated(){this.moveLightDomChildrenInto(this._label)}connectedCallback(){super.connectedCallback();const t=this._field.name;this.hasError=!!this.form.getError(t),this.unsubscribe=this.form.subscribe(()=>{const r=this.form.getError(t);this.hasError=!!r,this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribe&&this.unsubscribe()}render(){return d.html`
|
|
4816
4816
|
<label
|
|
4817
4817
|
part="form-label"
|
|
4818
4818
|
for="${this._field.name}"
|
|
4819
4819
|
class="${p(qu,this.hasError&&"rtg-text-destructive",this.className)}"
|
|
4820
4820
|
></label>
|
|
4821
|
-
`}},
|
|
4821
|
+
`}},tr([nt.consume({context:ie})],o.RtgFormLabel.prototype,"form",2),tr([l.state()],o.RtgFormLabel.prototype,"hasError",2),o.RtgFormLabel=tr([l.customElement("rtg-form-label")],o.RtgFormLabel);var Xu=Object.defineProperty,Ku=Object.getOwnPropertyDescriptor,er=(i,t,r,n)=>{for(var e=n>1?void 0:n?Ku(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Xu(t,r,e),e};o.RtgFormMessage=class extends d.LitElement{constructor(){super(...arguments),this.error=null,this.unsubscribe=null}get _field(){let t=this.parentElement;for(;t&&!(t instanceof o.RtgFormField);)t=t.parentElement;return t}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
|
|
4822
4822
|
id="${this._field.name}-message"
|
|
4823
4823
|
class="${p(zu,this.className)}"
|
|
4824
4824
|
>
|
|
4825
4825
|
${this.error}
|
|
4826
|
-
</p>`:null}},
|
|
4826
|
+
</p>`:null}},er([nt.consume({context:ie})],o.RtgFormMessage.prototype,"form",2),er([l.state()],o.RtgFormMessage.prototype,"error",2),o.RtgFormMessage=er([l.customElement("rtg-form-message")],o.RtgFormMessage);var Qu=Object.defineProperty,Zu=Object.getOwnPropertyDescriptor,rr=(i,t,r,n)=>{for(var e=n>1?void 0:n?Zu(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&Qu(t,r,e),e};o.RtgForm=class extends h{constructor(){super(...arguments),this.form=new sn,this.onSubmit=()=>{},this.handleSubmit=t=>{t.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`
|
|
4827
4827
|
<form
|
|
4828
4828
|
part="form-root"
|
|
4829
4829
|
id="rtg-form"
|
|
4830
4830
|
@submit=${this.handleSubmit}
|
|
4831
4831
|
class="${p(Au,this.className)}"
|
|
4832
4832
|
></form>
|
|
4833
|
-
`}},rr([
|
|
4833
|
+
`}},rr([nt.provide({context:ie})],o.RtgForm.prototype,"form",2),rr([l.property({type:Function})],o.RtgForm.prototype,"onSubmit",2),o.RtgForm=rr([l.customElement("rtg-form")],o.RtgForm);const Ju="rtg-animate-pulse rtg-rounded-md rtg-bg-gray-200 rtg-h-4 rtg-w-full";var tg=Object.getOwnPropertyDescriptor,eg=(i,t,r,n)=>{for(var e=n>1?void 0:n?tg(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.RtgSkeleton=class extends h{createRenderRoot(){return this}render(){return d.html` <div class=${p(Ju,this.className)}></div> `}},o.RtgSkeleton=eg([l.customElement("rtg-skeleton")],o.RtgSkeleton);const rg="rtg-relative rtg-h-72 rtg-w-48 rtg-rounded-md rtg-border";var ng=Object.defineProperty,og=Object.getOwnPropertyDescriptor,gn=(i,t,r,n)=>{for(var e=n>1?void 0:n?og(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&ng(t,r,e),e};o.RtgScrollArea=class extends h{createRenderRoot(){return this}firstUpdated(){this.moveLightDomChildrenInto(this.viewportEl)}render(){return d.html`
|
|
4834
4834
|
<div
|
|
4835
4835
|
dir="ltr"
|
|
4836
4836
|
data-slot="scroll-area"
|
|
@@ -4869,11 +4869,11 @@ body {
|
|
|
4869
4869
|
style="overflow: hidden scroll;"
|
|
4870
4870
|
></div>
|
|
4871
4871
|
</div>
|
|
4872
|
-
`}},gn([l.query("[data-radix-scroll-area-viewport]")],o.RtgScrollArea.prototype,"viewportEl",2),o.RtgScrollArea=gn([l.customElement("rtg-scroll-area")],o.RtgScrollArea);var ig=Object.getOwnPropertyDescriptor,ag=(i,
|
|
4872
|
+
`}},gn([l.query("[data-radix-scroll-area-viewport]")],o.RtgScrollArea.prototype,"viewportEl",2),o.RtgScrollArea=gn([l.customElement("rtg-scroll-area")],o.RtgScrollArea);var ig=Object.getOwnPropertyDescriptor,ag=(i,t,r,n)=>{for(var e=n>1?void 0:n?ig(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(e)||e);return e};o.LightSampleDemo=class extends h{constructor(){super()}getAttributesToExclude(){return["disabled","type","placeholder","value","data-testid"]}createRenderRoot(){return this}render(){return d.html`<div>Here Is Your Playground:</div>`}},o.LightSampleDemo=ag([l.customElement("light-sample-demo")],o.LightSampleDemo);/**
|
|
4873
4873
|
* @license
|
|
4874
4874
|
* Copyright 2018 Google LLC
|
|
4875
4875
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4876
|
-
*/const sg=new Set(["children","localName","ref","style","className"]),pn=new WeakMap,lg=(i,
|
|
4876
|
+
*/const sg=new Set(["children","localName","ref","style","className"]),pn=new WeakMap,lg=(i,t,r,n,e)=>{const a=e==null?void 0:e[t];a===void 0||r===n?r==null&&t in HTMLElement.prototype?i.removeAttribute(t):i[t]=r:((s,m,C)=>{let b=pn.get(s);b===void 0&&pn.set(s,b=new Map);let w=b.get(m);C!==void 0?w===void 0?(b.set(m,w={handleEvent:C}),s.addEventListener(m,w)):w.handleEvent=C:w!==void 0&&(b.delete(m),s.removeEventListener(m,w))})(i,a,r)},cg=(i,t)=>{typeof i=="function"?i(t):i.current=t};function hn(i=window.React,t,r,n,e){let a,s,m;{const F=i;({tagName:s,elementClass:m,events:n,displayName:e}=F),a=F.react}const C=a.Component,b=a.createElement,w=new Set(Object.keys(n??{}));class E extends C{constructor(){super(...arguments),this.o=null}t(L){if(this.o!==null)for(const z in this.i)lg(this.o,z,this.props[z],L?L[z]:void 0,n)}componentDidMount(){var L;this.t(),(L=this.o)===null||L===void 0||L.removeAttribute("defer-hydration")}componentDidUpdate(L){this.t(L)}render(){const{_$Gl:L,...z}=this.props;this.h!==L&&(this.u=M=>{L!==null&&cg(L,M),this.o=M,this.h=L}),this.i={};const P={ref:this.u};for(const[M,W]of Object.entries(z))sg.has(M)?P[M==="className"?"class":M]=W:w.has(M)||M in m.prototype?this.i[M]=W:P[M]=W;return P.suppressHydrationWarning=!0,b(s,P)}}E.displayName=e??m.name;const N=a.forwardRef((F,L)=>b(E,{...F,_$Gl:L},F==null?void 0:F.children));return N.displayName=E.displayName,N}function dg(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var fe={exports:{}},S={};/**
|
|
4877
4877
|
* @license React
|
|
4878
4878
|
* react.production.js
|
|
4879
4879
|
*
|
|
@@ -4881,7 +4881,7 @@ body {
|
|
|
4881
4881
|
*
|
|
4882
4882
|
* This source code is licensed under the MIT license found in the
|
|
4883
4883
|
* LICENSE file in the root directory of this source tree.
|
|
4884
|
-
*/var mn;function ug(){if(mn)return S;mn=1;var i=Symbol.for("react.transitional.element"),
|
|
4884
|
+
*/var mn;function ug(){if(mn)return S;mn=1;var i=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),e=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),E=Symbol.iterator;function N(u){return u===null||typeof u!="object"?null:(u=E&&u[E]||u["@@iterator"],typeof u=="function"?u:null)}var F={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,z={};function P(u,f,$){this.props=u,this.context=f,this.refs=z,this.updater=$||F}P.prototype.isReactComponent={},P.prototype.setState=function(u,f){if(typeof u!="object"&&typeof u!="function"&&u!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,u,f,"setState")},P.prototype.forceUpdate=function(u){this.updater.enqueueForceUpdate(this,u,"forceUpdate")};function M(){}M.prototype=P.prototype;function W(u,f,$){this.props=u,this.context=f,this.refs=z,this.updater=$||F}var X=W.prototype=new M;X.constructor=W,L(X,P.prototype),X.isPureReactComponent=!0;var J=Array.isArray,q={H:null,A:null,T:null,S:null,V:null},ft=Object.prototype.hasOwnProperty;function vt(u,f,$,x,A,Y){return $=Y.ref,{$$typeof:i,type:u,key:f,ref:$!==void 0?$:null,props:Y}}function it(u,f){return vt(u.type,f,void 0,void 0,void 0,u.props)}function tt(u){return typeof u=="object"&&u!==null&&u.$$typeof===i}function Rt(u){var f={"=":"=0",":":"=2"};return"$"+u.replace(/[=:]/g,function($){return f[$]})}var G=/\/+/g;function B(u,f){return typeof u=="object"&&u!==null&&u.key!=null?Rt(""+u.key):f.toString(36)}function lt(){}function et(u){switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:switch(typeof u.status=="string"?u.then(lt,lt):(u.status="pending",u.then(function(f){u.status==="pending"&&(u.status="fulfilled",u.value=f)},function(f){u.status==="pending"&&(u.status="rejected",u.reason=f)})),u.status){case"fulfilled":return u.value;case"rejected":throw u.reason}}throw u}function K(u,f,$,x,A){var Y=typeof u;(Y==="undefined"||Y==="boolean")&&(u=null);var R=!1;if(u===null)R=!0;else switch(Y){case"bigint":case"string":case"number":R=!0;break;case"object":switch(u.$$typeof){case i:case t:R=!0;break;case w:return R=u._init,K(R(u._payload),f,$,x,A)}}if(R)return A=A(u),R=x===""?"."+B(u,0):x,J(A)?($="",R!=null&&($=R.replace(G,"$&/")+"/"),K(A,f,$,"",function(Yt){return Yt})):A!=null&&(tt(A)&&(A=it(A,$+(A.key==null||u&&u.key===A.key?"":(""+A.key).replace(G,"$&/")+"/")+R)),f.push(A)),1;R=0;var ut=x===""?".":x+":";if(J(u))for(var j=0;j<u.length;j++)x=u[j],Y=ut+B(x,j),R+=K(x,f,$,Y,A);else if(j=N(u),typeof j=="function")for(u=j.call(u),j=0;!(x=u.next()).done;)x=x.value,Y=ut+B(x,j++),R+=K(x,f,$,Y,A);else if(Y==="object"){if(typeof u.then=="function")return K(et(u),f,$,x,A);throw f=String(u),Error("Objects are not valid as a React child (found: "+(f==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":f)+"). If you meant to render a collection of children, use an array instead.")}return R}function Q(u,f,$){if(u==null)return u;var x=[],A=0;return K(u,x,"","",function(Y){return f.call($,Y,A++)}),x}function bt(u){if(u._status===-1){var f=u._result;f=f(),f.then(function($){(u._status===0||u._status===-1)&&(u._status=1,u._result=$)},function($){(u._status===0||u._status===-1)&&(u._status=2,u._result=$)}),u._status===-1&&(u._status=0,u._result=f)}if(u._status===1)return u._result.default;throw u._result}var ct=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var f=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof u=="object"&&u!==null&&typeof u.message=="string"?String(u.message):String(u),error:u});if(!window.dispatchEvent(f))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)};function dt(){}return S.Children={map:Q,forEach:function(u,f,$){Q(u,function(){f.apply(this,arguments)},$)},count:function(u){var f=0;return Q(u,function(){f++}),f},toArray:function(u){return Q(u,function(f){return f})||[]},only:function(u){if(!tt(u))throw Error("React.Children.only expected to receive a single React element child.");return u}},S.Component=P,S.Fragment=r,S.Profiler=e,S.PureComponent=W,S.StrictMode=n,S.Suspense=C,S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,S.__COMPILER_RUNTIME={__proto__:null,c:function(u){return q.H.useMemoCache(u)}},S.cache=function(u){return function(){return u.apply(null,arguments)}},S.cloneElement=function(u,f,$){if(u==null)throw Error("The argument must be a React element, but you passed "+u+".");var x=L({},u.props),A=u.key,Y=void 0;if(f!=null)for(R in f.ref!==void 0&&(Y=void 0),f.key!==void 0&&(A=""+f.key),f)!ft.call(f,R)||R==="key"||R==="__self"||R==="__source"||R==="ref"&&f.ref===void 0||(x[R]=f[R]);var R=arguments.length-2;if(R===1)x.children=$;else if(1<R){for(var ut=Array(R),j=0;j<R;j++)ut[j]=arguments[j+2];x.children=ut}return vt(u.type,A,void 0,void 0,Y,x)},S.createContext=function(u){return u={$$typeof:s,_currentValue:u,_currentValue2:u,_threadCount:0,Provider:null,Consumer:null},u.Provider=u,u.Consumer={$$typeof:a,_context:u},u},S.createElement=function(u,f,$){var x,A={},Y=null;if(f!=null)for(x in f.key!==void 0&&(Y=""+f.key),f)ft.call(f,x)&&x!=="key"&&x!=="__self"&&x!=="__source"&&(A[x]=f[x]);var R=arguments.length-2;if(R===1)A.children=$;else if(1<R){for(var ut=Array(R),j=0;j<R;j++)ut[j]=arguments[j+2];A.children=ut}if(u&&u.defaultProps)for(x in R=u.defaultProps,R)A[x]===void 0&&(A[x]=R[x]);return vt(u,Y,void 0,void 0,null,A)},S.createRef=function(){return{current:null}},S.forwardRef=function(u){return{$$typeof:m,render:u}},S.isValidElement=tt,S.lazy=function(u){return{$$typeof:w,_payload:{_status:-1,_result:u},_init:bt}},S.memo=function(u,f){return{$$typeof:b,type:u,compare:f===void 0?null:f}},S.startTransition=function(u){var f=q.T,$={};q.T=$;try{var x=u(),A=q.S;A!==null&&A($,x),typeof x=="object"&&x!==null&&typeof x.then=="function"&&x.then(dt,ct)}catch(Y){ct(Y)}finally{q.T=f}},S.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},S.use=function(u){return q.H.use(u)},S.useActionState=function(u,f,$){return q.H.useActionState(u,f,$)},S.useCallback=function(u,f){return q.H.useCallback(u,f)},S.useContext=function(u){return q.H.useContext(u)},S.useDebugValue=function(){},S.useDeferredValue=function(u,f){return q.H.useDeferredValue(u,f)},S.useEffect=function(u,f,$){var x=q.H;if(typeof $=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return x.useEffect(u,f)},S.useId=function(){return q.H.useId()},S.useImperativeHandle=function(u,f,$){return q.H.useImperativeHandle(u,f,$)},S.useInsertionEffect=function(u,f){return q.H.useInsertionEffect(u,f)},S.useLayoutEffect=function(u,f){return q.H.useLayoutEffect(u,f)},S.useMemo=function(u,f){return q.H.useMemo(u,f)},S.useOptimistic=function(u,f){return q.H.useOptimistic(u,f)},S.useReducer=function(u,f,$){return q.H.useReducer(u,f,$)},S.useRef=function(u){return q.H.useRef(u)},S.useState=function(u){return q.H.useState(u)},S.useSyncExternalStore=function(u,f,$){return q.H.useSyncExternalStore(u,f,$)},S.useTransition=function(){return q.H.useTransition()},S.version="19.1.0",S}var ae={exports:{}};/**
|
|
4885
4885
|
* @license React
|
|
4886
4886
|
* react.development.js
|
|
4887
4887
|
*
|
|
@@ -4889,7 +4889,7 @@ body {
|
|
|
4889
4889
|
*
|
|
4890
4890
|
* This source code is licensed under the MIT license found in the
|
|
4891
4891
|
* LICENSE file in the root directory of this source tree.
|
|
4892
|
-
*/
|
|
4892
|
+
*/ae.exports;var fn;function gg(){return fn||(fn=1,function(i,t){process.env.NODE_ENV!=="production"&&function(){function r(c,g){Object.defineProperty(a.prototype,c,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",g[0],g[1])}})}function n(c){return c===null||typeof c!="object"?null:(c=yn&&c[yn]||c["@@iterator"],typeof c=="function"?c:null)}function e(c,g){c=(c=c.constructor)&&(c.displayName||c.name)||"ReactClass";var v=c+"."+g;wn[v]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",g,c),wn[v]=!0)}function a(c,g,v){this.props=c,this.context=g,this.refs=or,this.updater=v||Cn}function s(){}function m(c,g,v){this.props=c,this.context=g,this.refs=or,this.updater=v||Cn}function C(c){return""+c}function b(c){try{C(c);var g=!1}catch{g=!0}if(g){g=console;var v=g.error,y=typeof Symbol=="function"&&Symbol.toStringTag&&c[Symbol.toStringTag]||c.constructor.name||"Object";return v.call(g,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",y),C(c)}}function w(c){if(c==null)return null;if(typeof c=="function")return c.$$typeof===bg?null:c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case u:return"Fragment";case $:return"Profiler";case f:return"StrictMode";case R:return"Suspense";case ut:return"SuspenseList";case vg:return"Activity"}if(typeof c=="object")switch(typeof c.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),c.$$typeof){case dt:return"Portal";case A:return(c.displayName||"Context")+".Provider";case x:return(c._context.displayName||"Context")+".Consumer";case Y:var g=c.render;return c=c.displayName,c||(c=g.displayName||g.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case j:return g=c.displayName||null,g!==null?g:w(c.type)||"Memo";case Yt:g=c._payload,c=c._init;try{return w(c(g))}catch{}}return null}function E(c){if(c===u)return"<>";if(typeof c=="object"&&c!==null&&c.$$typeof===Yt)return"<...>";try{var g=w(c);return g?"<"+g+">":"<...>"}catch{return"<...>"}}function N(){var c=I.A;return c===null?null:c.getOwner()}function F(){return Error("react-stack-top-frame")}function L(c){if(be.call(c,"key")){var g=Object.getOwnPropertyDescriptor(c,"key").get;if(g&&g.isReactWarning)return!1}return c.key!==void 0}function z(c,g){function v(){$n||($n=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",g))}v.isReactWarning=!0,Object.defineProperty(c,"key",{get:v,configurable:!0})}function P(){var c=w(this.type);return Sn[c]||(Sn[c]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),c=this.props.ref,c!==void 0?c:null}function M(c,g,v,y,_,T,D,U){return v=T.ref,c={$$typeof:ct,type:c,key:g,props:T,_owner:_},(v!==void 0?v:null)!==null?Object.defineProperty(c,"ref",{enumerable:!1,get:P}):Object.defineProperty(c,"ref",{enumerable:!1,value:null}),c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(c,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(c,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:D}),Object.defineProperty(c,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:U}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}function W(c,g){return g=M(c.type,g,void 0,void 0,c._owner,c.props,c._debugStack,c._debugTask),c._store&&(g._store.validated=c._store.validated),g}function X(c){return typeof c=="object"&&c!==null&&c.$$typeof===ct}function J(c){var g={"=":"=0",":":"=2"};return"$"+c.replace(/[=:]/g,function(v){return g[v]})}function q(c,g){return typeof c=="object"&&c!==null&&c.key!=null?(b(c.key),J(""+c.key)):g.toString(36)}function ft(){}function vt(c){switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:switch(typeof c.status=="string"?c.then(ft,ft):(c.status="pending",c.then(function(g){c.status==="pending"&&(c.status="fulfilled",c.value=g)},function(g){c.status==="pending"&&(c.status="rejected",c.reason=g)})),c.status){case"fulfilled":return c.value;case"rejected":throw c.reason}}throw c}function it(c,g,v,y,_){var T=typeof c;(T==="undefined"||T==="boolean")&&(c=null);var D=!1;if(c===null)D=!0;else switch(T){case"bigint":case"string":case"number":D=!0;break;case"object":switch(c.$$typeof){case ct:case dt:D=!0;break;case Yt:return D=c._init,it(D(c._payload),g,v,y,_)}}if(D){D=c,_=_(D);var U=y===""?"."+q(D,0):y;return xn(_)?(v="",U!=null&&(v=U.replace(Dn,"$&/")+"/"),it(_,g,v,"",function(yt){return yt})):_!=null&&(X(_)&&(_.key!=null&&(D&&D.key===_.key||b(_.key)),v=W(_,v+(_.key==null||D&&D.key===_.key?"":(""+_.key).replace(Dn,"$&/")+"/")+U),y!==""&&D!=null&&X(D)&&D.key==null&&D._store&&!D._store.validated&&(v._store.validated=2),_=v),g.push(_)),1}if(D=0,U=y===""?".":y+":",xn(c))for(var k=0;k<c.length;k++)y=c[k],T=U+q(y,k),D+=it(y,g,v,T,_);else if(k=n(c),typeof k=="function")for(k===c.entries&&(Pn||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Pn=!0),c=k.call(c),k=0;!(y=c.next()).done;)y=y.value,T=U+q(y,k++),D+=it(y,g,v,T,_);else if(T==="object"){if(typeof c.then=="function")return it(vt(c),g,v,y,_);throw g=String(c),Error("Objects are not valid as a React child (found: "+(g==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":g)+"). If you meant to render a collection of children, use an array instead.")}return D}function tt(c,g,v){if(c==null)return c;var y=[],_=0;return it(c,y,"","",function(T){return g.call(v,T,_++)}),y}function Rt(c){if(c._status===-1){var g=c._result;g=g(),g.then(function(v){(c._status===0||c._status===-1)&&(c._status=1,c._result=v)},function(v){(c._status===0||c._status===-1)&&(c._status=2,c._result=v)}),c._status===-1&&(c._status=0,c._result=g)}if(c._status===1)return g=c._result,g===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
4893
4893
|
|
|
4894
4894
|
Your code should look like:
|
|
4895
4895
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -4901,4 +4901,4 @@ Your code should look like:
|
|
|
4901
4901
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
4902
4902
|
2. You might be breaking the Rules of Hooks
|
|
4903
4903
|
3. You might have more than one copy of React in the same app
|
|
4904
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}function B(){}function le(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){kn===!1&&(kn=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var C=new MessageChannel;C.port1.onmessage=y,C.port2.postMessage(void 0)}}return yt(c)}function te(c){return 1<c.length&&typeof AggregateError=="function"?new AggregateError(c):c[0]}function K(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 Q(c,g,v){var y=I.actQueue;if(y!==null)if(y.length!==0)try{be(y),le(function(){return Q(c,g,v)});return}catch(C){I.thrownErrors.push(C)}else I.actQueue=null;0<I.thrownErrors.length?(y=te(I.thrownErrors),I.thrownErrors.length=0,v(y)):g(c)}function be(c){if(!ir){ir=!0;var g=0;try{for(;g<c.length;g++){var v=c[g];do{I.didUsePromise=!1;var y=v(!1);if(y!==null){if(I.didUsePromise){c[g]=v,c.splice(0,g);return}v=y}else break}while(!0)}c.length=0}catch(C){c.splice(0,g+1),I.thrownErrors.push(C)}finally{ir=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ce=Symbol.for("react.transitional.element"),de=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),A=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),ue=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),Ye=Symbol.for("react.lazy"),vg=Symbol.for("react.activity"),yn=Symbol.iterator,wn={},_n={isMounted:function(){return!1},enqueueForceUpdate:function(c){t(c,"forceUpdate")},enqueueReplaceState:function(c){t(c,"replaceState")},enqueueSetState:function(c){t(c,"setState")}},Cn=Object.assign,or={};Object.freeze(or),a.prototype.isReactComponent={},a.prototype.setState=function(c,g){if(typeof c!="object"&&typeof c!="function"&&c!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,c,g,"setState")},a.prototype.forceUpdate=function(c){this.updater.enqueueForceUpdate(this,c,"forceUpdate")};var re={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)."]},vt;for(vt in re)re.hasOwnProperty(vt)&&r(vt,re[vt]);s.prototype=a.prototype,re=m.prototype=new s,re.constructor=m,Cn(re,a.prototype),re.isPureReactComponent=!0;var xn=Array.isArray,bg=Symbol.for("react.client.reference"),I={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},bt=Object.prototype.hasOwnProperty,En=console.createTask?console.createTask:function(){return null};re={"react-stack-bottom-frame":function(c){return c()}};var $n,On,Sn={},yg=re["react-stack-bottom-frame"].bind(re,F)(),wg=En(E(F)),Pn=!1,Dn=/\/+/g,Rn=typeof reportError=="function"?reportError:function(c){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var g=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof c=="object"&&c!==null&&typeof c.message=="string"?String(c.message):String(c),error:c});if(!window.dispatchEvent(g))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",c);return}console.error(c)},kn=!1,yt=null,wt=0,_t=!1,ir=!1,In=typeof queueMicrotask=="function"?function(c){queueMicrotask(function(){return queueMicrotask(c)})}:le;re=Object.freeze({__proto__:null,c:function(c){return G().useMemoCache(c)}}),e.Children={map:ee,forEach:function(c,g,v){ee(c,function(){g.apply(this,arguments)},v)},count:function(c){var g=0;return ee(c,function(){g++}),g},toArray:function(c){return ee(c,function(g){return g})||[]},only:function(c){if(!X(c))throw Error("React.Children.only expected to receive a single React element child.");return c}},e.Component=a,e.Fragment=u,e.Profiler=$,e.PureComponent=m,e.StrictMode=f,e.Suspense=R,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,e.__COMPILER_RUNTIME=re,e.act=function(c){var g=I.actQueue,v=wt;wt++;var y=I.actQueue=g!==null?g:[],C=!1;try{var T=c()}catch(k){I.thrownErrors.push(k)}if(0<I.thrownErrors.length)throw K(g,v),c=te(I.thrownErrors),I.thrownErrors.length=0,c;if(T!==null&&typeof T=="object"&&typeof T.then=="function"){var D=T;return In(function(){C||_t||(_t=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(k,ye){C=!0,D.then(function(je){if(K(g,v),v===0){try{be(y),le(function(){return Q(je,k,ye)})}catch(Cg){I.thrownErrors.push(Cg)}if(0<I.thrownErrors.length){var _g=te(I.thrownErrors);I.thrownErrors.length=0,ye(_g)}}else k(je)},function(je){K(g,v),0<I.thrownErrors.length&&(je=te(I.thrownErrors),I.thrownErrors.length=0),ye(je)})}}}var U=T;if(K(g,v),v===0&&(be(y),y.length!==0&&In(function(){C||_t||(_t=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),I.actQueue=null),0<I.thrownErrors.length)throw c=te(I.thrownErrors),I.thrownErrors.length=0,c;return{then:function(k,ye){C=!0,v===0?(I.actQueue=y,le(function(){return Q(U,k,ye)})):k(U)}}},e.cache=function(c){return function(){return c.apply(null,arguments)}},e.captureOwnerStack=function(){var c=I.getCurrentStack;return c===null?null:c()},e.cloneElement=function(c,g,v){if(c==null)throw Error("The argument must be a React element, but you passed "+c+".");var y=Cn({},c.props),C=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()),L(g)&&(b(g.key),C=""+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=v;else if(1<U){D=Array(U);for(var k=0;k<U;k++)D[k]=arguments[k+2];y.children=D}for(y=M(c.type,C,void 0,void 0,T,y,c._debugStack,c._debugTask),C=2;C<arguments.length;C++)T=arguments[C],X(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:x,_context:c},c._currentRenderer=null,c._currentRenderer2=null,c},e.createElement=function(c,g,v){for(var y=2;y<arguments.length;y++){var C=arguments[y];X(C)&&C._store&&(C._store.validated=1)}if(y={},C=null,g!=null)for(k in On||!("__self"in g)||"key"in g||(On=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),L(g)&&(b(g.key),C=""+g.key),g)bt.call(g,k)&&k!=="key"&&k!=="__self"&&k!=="__source"&&(y[k]=g[k]);var T=arguments.length-2;if(T===1)y.children=v;else if(1<T){for(var D=Array(T),U=0;U<T;U++)D[U]=arguments[U+2];Object.freeze&&Object.freeze(D),y.children=D}if(c&&c.defaultProps)for(k in T=c.defaultProps,T)y[k]===void 0&&(y[k]=T[k]);C&&z(y,typeof c=="function"?c.displayName||c.name||"Unknown":c);var k=1e4>I.recentlyCreatedOwnerStacks++;return M(c,C,void 0,void 0,N(),y,k?Error("react-stack-top-frame"):yg,k?En(E(c)):wg)},e.createRef=function(){var c={current:null};return Object.seal(c),c},e.forwardRef=function(c){c!=null&&c.$$typeof===j?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof c!="function"?console.error("forwardRef requires a render function but was given %s.",c===null?"null":typeof c):c.length!==0&&c.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",c.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),c!=null&&c.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var g={$$typeof:Y,render:c},v;return Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return v},set:function(y){v=y,c.name||c.displayName||(Object.defineProperty(c,"name",{value:y}),c.displayName=y)}}),g},e.isValidElement=X,e.lazy=function(c){return{$$typeof:Ye,_payload:{_status:-1,_result:c},_init:Re}},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:j,type:c,compare:g===void 0?null:g};var v;return Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return v},set:function(y){v=y,c.name||c.displayName||(Object.defineProperty(c,"name",{value:y}),c.displayName=y)}}),g},e.startTransition=function(c){var g=I.T,v={};I.T=v,v._updatedFibers=new Set;try{var y=c(),C=I.S;C!==null&&C(v,y),typeof y=="object"&&y!==null&&typeof y.then=="function"&&y.then(B,Rn)}catch(T){Rn(T)}finally{g===null&&v._updatedFibers&&(c=v._updatedFibers.size,v._updatedFibers.clear(),10<c&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),I.T=g}},e.unstable_useCacheRefresh=function(){return G().useCacheRefresh()},e.use=function(c){return G().use(c)},e.useActionState=function(c,g,v){return G().useActionState(c,g,v)},e.useCallback=function(c,g){return G().useCallback(c,g)},e.useContext=function(c){var g=G();return c.$$typeof===x&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),g.useContext(c)},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,v){c==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var y=G();if(typeof v=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return y.useEffect(c,g)},e.useId=function(){return G().useId()},e.useImperativeHandle=function(c,g,v){return G().useImperativeHandle(c,g,v)},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,v){return G().useReducer(c,g,v)},e.useRef=function(c){return G().useRef(c)},e.useState=function(c){return G().useState(c)},e.useSyncExternalStore=function(c,g,v){return G().useSyncExternalStore(c,g,v)},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())}()}(at,at.exports)),at.exports}var vn;function pg(){return vn||(vn=1,process.env.NODE_ENV==="production"?ft.exports=ug():ft.exports=gg()),ft.exports}var hg=pg();const bn=dg(hg),mg=hn({tagName:"rtg-button",elementClass:o.Button,react:bn}),fg=hn({tagName:"rtg-checkbox",elementClass:o.Checkbox,react:bn});o.ButtonReact=mg,o.CheckboxReact=fg,o.TOGGLE_GROUP_SIZE=gt,o.TOGGLE_GROUP_TYPE=tt,o.TOGGLE_GROUP_VARIANT=ut,o.TOGGLE_SIZE=Qt,o.TOGGLE_VARIANT=Zt,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|
|
4904
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}function B(){}function lt(c){if(ye===null)try{var g=("require"+Math.random()).slice(0,7);ye=(i&&i[g]).call(i,"timers").setImmediate}catch{ye=function(y){kn===!1&&(kn=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var _=new MessageChannel;_.port1.onmessage=y,_.port2.postMessage(void 0)}}return ye(c)}function et(c){return 1<c.length&&typeof AggregateError=="function"?new AggregateError(c):c[0]}function K(c,g){g!==we-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),we=g}function Q(c,g,v){var y=I.actQueue;if(y!==null)if(y.length!==0)try{bt(y),lt(function(){return Q(c,g,v)});return}catch(_){I.thrownErrors.push(_)}else I.actQueue=null;0<I.thrownErrors.length?(y=et(I.thrownErrors),I.thrownErrors.length=0,v(y)):g(c)}function bt(c){if(!ir){ir=!0;var g=0;try{for(;g<c.length;g++){var v=c[g];do{I.didUsePromise=!1;var y=v(!1);if(y!==null){if(I.didUsePromise){c[g]=v,c.splice(0,g);return}v=y}else break}while(!0)}c.length=0}catch(_){c.splice(0,g+1),I.thrownErrors.push(_)}finally{ir=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ct=Symbol.for("react.transitional.element"),dt=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),A=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),ut=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),Yt=Symbol.for("react.lazy"),vg=Symbol.for("react.activity"),yn=Symbol.iterator,wn={},Cn={isMounted:function(){return!1},enqueueForceUpdate:function(c){e(c,"forceUpdate")},enqueueReplaceState:function(c){e(c,"replaceState")},enqueueSetState:function(c){e(c,"setState")}},_n=Object.assign,or={};Object.freeze(or),a.prototype.isReactComponent={},a.prototype.setState=function(c,g){if(typeof c!="object"&&typeof c!="function"&&c!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,c,g,"setState")},a.prototype.forceUpdate=function(c){this.updater.enqueueForceUpdate(this,c,"forceUpdate")};var rt={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},ve;for(ve in rt)rt.hasOwnProperty(ve)&&r(ve,rt[ve]);s.prototype=a.prototype,rt=m.prototype=new s,rt.constructor=m,_n(rt,a.prototype),rt.isPureReactComponent=!0;var xn=Array.isArray,bg=Symbol.for("react.client.reference"),I={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},be=Object.prototype.hasOwnProperty,En=console.createTask?console.createTask:function(){return null};rt={"react-stack-bottom-frame":function(c){return c()}};var $n,On,Sn={},yg=rt["react-stack-bottom-frame"].bind(rt,F)(),wg=En(E(F)),Pn=!1,Dn=/\/+/g,Rn=typeof reportError=="function"?reportError:function(c){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var g=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof c=="object"&&c!==null&&typeof c.message=="string"?String(c.message):String(c),error:c});if(!window.dispatchEvent(g))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",c);return}console.error(c)},kn=!1,ye=null,we=0,Ce=!1,ir=!1,In=typeof queueMicrotask=="function"?function(c){queueMicrotask(function(){return queueMicrotask(c)})}:lt;rt=Object.freeze({__proto__:null,c:function(c){return G().useMemoCache(c)}}),t.Children={map:tt,forEach:function(c,g,v){tt(c,function(){g.apply(this,arguments)},v)},count:function(c){var g=0;return tt(c,function(){g++}),g},toArray:function(c){return tt(c,function(g){return g})||[]},only:function(c){if(!X(c))throw Error("React.Children.only expected to receive a single React element child.");return c}},t.Component=a,t.Fragment=u,t.Profiler=$,t.PureComponent=m,t.StrictMode=f,t.Suspense=R,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,t.__COMPILER_RUNTIME=rt,t.act=function(c){var g=I.actQueue,v=we;we++;var y=I.actQueue=g!==null?g:[],_=!1;try{var T=c()}catch(k){I.thrownErrors.push(k)}if(0<I.thrownErrors.length)throw K(g,v),c=et(I.thrownErrors),I.thrownErrors.length=0,c;if(T!==null&&typeof T=="object"&&typeof T.then=="function"){var D=T;return In(function(){_||Ce||(Ce=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(k,yt){_=!0,D.then(function(jt){if(K(g,v),v===0){try{bt(y),lt(function(){return Q(jt,k,yt)})}catch(_g){I.thrownErrors.push(_g)}if(0<I.thrownErrors.length){var Cg=et(I.thrownErrors);I.thrownErrors.length=0,yt(Cg)}}else k(jt)},function(jt){K(g,v),0<I.thrownErrors.length&&(jt=et(I.thrownErrors),I.thrownErrors.length=0),yt(jt)})}}}var U=T;if(K(g,v),v===0&&(bt(y),y.length!==0&&In(function(){_||Ce||(Ce=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),I.actQueue=null),0<I.thrownErrors.length)throw c=et(I.thrownErrors),I.thrownErrors.length=0,c;return{then:function(k,yt){_=!0,v===0?(I.actQueue=y,lt(function(){return Q(U,k,yt)})):k(U)}}},t.cache=function(c){return function(){return c.apply(null,arguments)}},t.captureOwnerStack=function(){var c=I.getCurrentStack;return c===null?null:c()},t.cloneElement=function(c,g,v){if(c==null)throw Error("The argument must be a React element, but you passed "+c+".");var y=_n({},c.props),_=c.key,T=c._owner;if(g!=null){var D;t:{if(be.call(g,"ref")&&(D=Object.getOwnPropertyDescriptor(g,"ref").get)&&D.isReactWarning){D=!1;break t}D=g.ref!==void 0}D&&(T=N()),L(g)&&(b(g.key),_=""+g.key);for(U in g)!be.call(g,U)||U==="key"||U==="__self"||U==="__source"||U==="ref"&&g.ref===void 0||(y[U]=g[U])}var U=arguments.length-2;if(U===1)y.children=v;else if(1<U){D=Array(U);for(var k=0;k<U;k++)D[k]=arguments[k+2];y.children=D}for(y=M(c.type,_,void 0,void 0,T,y,c._debugStack,c._debugTask),_=2;_<arguments.length;_++)T=arguments[_],X(T)&&T._store&&(T._store.validated=1);return y},t.createContext=function(c){return c={$$typeof:A,_currentValue:c,_currentValue2:c,_threadCount:0,Provider:null,Consumer:null},c.Provider=c,c.Consumer={$$typeof:x,_context:c},c._currentRenderer=null,c._currentRenderer2=null,c},t.createElement=function(c,g,v){for(var y=2;y<arguments.length;y++){var _=arguments[y];X(_)&&_._store&&(_._store.validated=1)}if(y={},_=null,g!=null)for(k in On||!("__self"in g)||"key"in g||(On=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),L(g)&&(b(g.key),_=""+g.key),g)be.call(g,k)&&k!=="key"&&k!=="__self"&&k!=="__source"&&(y[k]=g[k]);var T=arguments.length-2;if(T===1)y.children=v;else if(1<T){for(var D=Array(T),U=0;U<T;U++)D[U]=arguments[U+2];Object.freeze&&Object.freeze(D),y.children=D}if(c&&c.defaultProps)for(k in T=c.defaultProps,T)y[k]===void 0&&(y[k]=T[k]);_&&z(y,typeof c=="function"?c.displayName||c.name||"Unknown":c);var k=1e4>I.recentlyCreatedOwnerStacks++;return M(c,_,void 0,void 0,N(),y,k?Error("react-stack-top-frame"):yg,k?En(E(c)):wg)},t.createRef=function(){var c={current:null};return Object.seal(c),c},t.forwardRef=function(c){c!=null&&c.$$typeof===j?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof c!="function"?console.error("forwardRef requires a render function but was given %s.",c===null?"null":typeof c):c.length!==0&&c.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",c.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),c!=null&&c.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var g={$$typeof:Y,render:c},v;return Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return v},set:function(y){v=y,c.name||c.displayName||(Object.defineProperty(c,"name",{value:y}),c.displayName=y)}}),g},t.isValidElement=X,t.lazy=function(c){return{$$typeof:Yt,_payload:{_status:-1,_result:c},_init:Rt}},t.memo=function(c,g){c==null&&console.error("memo: The first argument must be a component. Instead received: %s",c===null?"null":typeof c),g={$$typeof:j,type:c,compare:g===void 0?null:g};var v;return Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return v},set:function(y){v=y,c.name||c.displayName||(Object.defineProperty(c,"name",{value:y}),c.displayName=y)}}),g},t.startTransition=function(c){var g=I.T,v={};I.T=v,v._updatedFibers=new Set;try{var y=c(),_=I.S;_!==null&&_(v,y),typeof y=="object"&&y!==null&&typeof y.then=="function"&&y.then(B,Rn)}catch(T){Rn(T)}finally{g===null&&v._updatedFibers&&(c=v._updatedFibers.size,v._updatedFibers.clear(),10<c&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),I.T=g}},t.unstable_useCacheRefresh=function(){return G().useCacheRefresh()},t.use=function(c){return G().use(c)},t.useActionState=function(c,g,v){return G().useActionState(c,g,v)},t.useCallback=function(c,g){return G().useCallback(c,g)},t.useContext=function(c){var g=G();return c.$$typeof===x&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),g.useContext(c)},t.useDebugValue=function(c,g){return G().useDebugValue(c,g)},t.useDeferredValue=function(c,g){return G().useDeferredValue(c,g)},t.useEffect=function(c,g,v){c==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var y=G();if(typeof v=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return y.useEffect(c,g)},t.useId=function(){return G().useId()},t.useImperativeHandle=function(c,g,v){return G().useImperativeHandle(c,g,v)},t.useInsertionEffect=function(c,g){return c==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),G().useInsertionEffect(c,g)},t.useLayoutEffect=function(c,g){return c==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),G().useLayoutEffect(c,g)},t.useMemo=function(c,g){return G().useMemo(c,g)},t.useOptimistic=function(c,g){return G().useOptimistic(c,g)},t.useReducer=function(c,g,v){return G().useReducer(c,g,v)},t.useRef=function(c){return G().useRef(c)},t.useState=function(c){return G().useState(c)},t.useSyncExternalStore=function(c,g,v){return G().useSyncExternalStore(c,g,v)},t.useTransition=function(){return G().useTransition()},t.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(ae,ae.exports)),ae.exports}var vn;function pg(){return vn||(vn=1,process.env.NODE_ENV==="production"?fe.exports=ug():fe.exports=gg()),fe.exports}var hg=pg();const bn=dg(hg),mg=hn({tagName:"rtg-button",elementClass:o.Button,react:bn}),fg=hn({tagName:"rtg-checkbox",elementClass:o.Checkbox,react:bn});o.ButtonReact=mg,o.CheckboxReact=fg,o.TOGGLE_GROUP_SIZE=ge,o.TOGGLE_GROUP_TYPE=ee,o.TOGGLE_GROUP_VARIANT=ue,o.TOGGLE_SIZE=Qe,o.TOGGLE_VARIANT=Ze,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|