@revotech-group/revotech-ui-kit 0.0.80 → 0.0.81
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/library.css +4 -0
- package/dist/rtg-ui-kit.js +4603 -4062
- package/dist/rtg-ui-kit.umd.cjs +344 -315
- package/dist/src/components/ui/input/countryOptions.d.ts +5 -0
- package/dist/src/components/ui/input/input.d.ts +4 -0
- package/package.json +1 -1
package/dist/rtg-ui-kit.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(o,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("lit"),require("lit/decorators.js"),require("lit/html.js"),require("lit/directive.js"),require("lit/async-directive.js"),require("lit/directives/if-defined.js"),require("lit/directives/unsafe-html.js"),require("lit-element"),require("@lit-labs/context"),require("lit/directives/ref.js")):typeof define=="function"&&define.amd?define(["exports","lit","lit/decorators.js","lit/html.js","lit/directive.js","lit/async-directive.js","lit/directives/if-defined.js","lit/directives/unsafe-html.js","lit-element","@lit-labs/context","lit/directives/ref.js"],d):(o=typeof globalThis<"u"?globalThis:o||self,d(o["rtg-ui-kit"]={},o.lit,o.decorators_js,o.html_js,o.directive_js,o.asyncDirective_js,o.ifDefined_js,o.unsafeHtml_js,o.litElement,o.context,o.ref_js))})(this,function(o,d,l,Tn,_e,An,Ln,ar,wt,nt,Mn){"use strict";function sr(i){var t,r,n="";if(typeof i=="string"||typeof i=="number")n+=i;else if(typeof i=="object")if(Array.isArray(i)){var e=i.length;for(t=0;t<e;t++)i[t]&&(r=sr(i[t]))&&(n&&(n+=" "),n+=r)}else for(r in i)i[r]&&(n&&(n+=" "),n+=r);return n}function lr(){for(var i,t,r=0,n="",e=arguments.length;r<e;r++)(i=arguments[r])&&(t=sr(i))&&(n&&(n+=" "),n+=t);return n}const xe="-",Nn=i=>{const t=zn(i),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=i;return{getClassGroupId:s=>{const m=s.split(xe);return m[0]===""&&m.length!==1&&m.shift(),cr(m,t)||qn(s)},getConflictingClassGroupIds:(s,m)=>{const C=r[s]||[];return m&&n[s]?[...C,...n[s]]:C}}},cr=(i,t)=>{var s;if(i.length===0)return t.classGroupId;const r=i[0],n=t.nextPart.get(r),e=n?cr(i.slice(1),n):void 0;if(e)return e;if(t.validators.length===0)return;const a=i.join(xe);return(s=t.validators.find(({validator:m})=>m(a)))==null?void 0:s.classGroupId},dr=/^\[(.+)\]$/,qn=i=>{if(dr.test(i)){const t=dr.exec(i)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},zn=i=>{const{theme:t,prefix:r}=i,n={nextPart:new Map,validators:[]};return Un(Object.entries(i.classGroups),r).forEach(([a,s])=>{Ee(s,n,a,t)}),n},Ee=(i,t,r,n)=>{i.forEach(e=>{if(typeof e=="string"){const a=e===""?t:ur(t,e);a.classGroupId=r;return}if(typeof e=="function"){if(Bn(e)){Ee(e(n),t,r,n);return}t.validators.push({validator:e,classGroupId:r});return}Object.entries(e).forEach(([a,s])=>{Ee(s,ur(t,a),r,n)})})},ur=(i,t)=>{let r=i;return t.split(xe).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Bn=i=>i.isThemeGetter,Un=(i,t)=>t?i.map(([r,n])=>{const e=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,m])=>[t+s,m])):a);return[r,e]}):i,Fn=i=>{if(i<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const e=(a,s)=>{r.set(a,s),t++,t>i&&(t=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return e(a,s),s},set(a,s){r.has(a)?r.set(a,s):e(a,s)}}},gr="!",Gn=i=>{const{separator:t,experimentalParseClassName:r}=i,n=t.length===1,e=t[0],a=t.length,s=m=>{const C=[];let b=0,w=0,E;for(let P=0;P<m.length;P++){let M=m[P];if(b===0){if(M===e&&(n||m.slice(P,P+a)===t)){C.push(m.slice(w,P)),w=P+a;continue}if(M==="/"){E=P;continue}}M==="["?b++:M==="]"&&b--}const N=C.length===0?m:m.substring(w),F=N.startsWith(gr),L=F?N.substring(1):N,z=E&&E>w?E-w:void 0;return{modifiers:C,hasImportantModifier:F,baseClassName:L,maybePostfixModifierPosition:z}};return r?m=>r({className:m,parseClassName:s}):s},Vn=i=>{if(i.length<=1)return i;const t=[];let r=[];return i.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},Hn=i=>({cache:Fn(i.cacheSize),parseClassName:Gn(i),...Nn(i)}),Yn=/\s+/,jn=(i,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:e}=t,a=[],s=i.trim().split(Yn);let m="";for(let C=s.length-1;C>=0;C-=1){const b=s[C],{modifiers:w,hasImportantModifier:E,baseClassName:N,maybePostfixModifierPosition:F}=r(b);let L=!!F,z=n(L?N.substring(0,F):N);if(!z){if(!L){m=b+(m.length>0?" "+m:m);continue}if(z=n(N),!z){m=b+(m.length>0?" "+m:m);continue}L=!1}const P=Vn(w).join(":"),M=E?P+gr:P,W=M+z;if(a.includes(W))continue;a.push(W);const X=e(z,L);for(let J=0;J<X.length;++J){const q=X[J];a.push(M+q)}m=b+(m.length>0?" "+m:m)}return m};function Wn(){let i=0,t,r,n="";for(;i<arguments.length;)(t=arguments[i++])&&(r=pr(t))&&(n&&(n+=" "),n+=r);return n}const pr=i=>{if(typeof i=="string")return i;let t,r="";for(let n=0;n<i.length;n++)i[n]&&(t=pr(i[n]))&&(r&&(r+=" "),r+=t);return r};function Xn(i,...t){let r,n,e,a=s;function s(C){const b=t.reduce((w,E)=>E(w),i());return r=Hn(b),n=r.cache.get,e=r.cache.set,a=m,m(C)}function m(C){const b=n(C);if(b)return b;const w=jn(C,r);return e(C,w),w}return function(){return a(Wn.apply(null,arguments))}}const V=i=>{const t=r=>r[i]||[];return t.isThemeGetter=!0,t},hr=/^\[(?:([a-z-]+):)?(.+)\]$/i,Kn=/^\d+\/\d+$/,Qn=new Set(["px","full","screen"]),Zn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,to=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,eo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ro=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gt=i=>It(i)||Qn.has(i)||Kn.test(i),pt=i=>Tt(i,"length",uo),It=i=>!!i&&!Number.isNaN(Number(i)),$e=i=>Tt(i,"number",It),Wt=i=>!!i&&Number.isInteger(Number(i)),no=i=>i.endsWith("%")&&It(i.slice(0,-1)),O=i=>hr.test(i),ht=i=>Zn.test(i),oo=new Set(["length","size","percentage"]),io=i=>Tt(i,oo,mr),ao=i=>Tt(i,"position",mr),so=new Set(["image","url"]),lo=i=>Tt(i,so,po),co=i=>Tt(i,"",go),Xt=()=>!0,Tt=(i,t,r)=>{const n=hr.exec(i);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},uo=i=>Jn.test(i)&&!to.test(i),mr=()=>!1,go=i=>eo.test(i),po=i=>ro.test(i),ho=Xn(()=>{const i=V("colors"),t=V("spacing"),r=V("blur"),n=V("brightness"),e=V("borderColor"),a=V("borderRadius"),s=V("borderSpacing"),m=V("borderWidth"),C=V("contrast"),b=V("grayscale"),w=V("hueRotate"),E=V("invert"),N=V("gap"),F=V("gradientColorStops"),L=V("gradientColorStopPositions"),z=V("inset"),P=V("margin"),M=V("opacity"),W=V("padding"),X=V("saturate"),J=V("scale"),q=V("sepia"),ft=V("skew"),vt=V("space"),it=V("translate"),tt=()=>["auto","contain","none"],kt=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",O,t],B=()=>[O,t],lt=()=>["",gt,pt],et=()=>["auto",It,O],K=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Q=()=>["solid","dashed","dotted","double","none"],bt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ct=()=>["start","end","center","between","around","evenly","stretch"],dt=()=>["","0",O],u=()=>["auto","avoid","all","avoid-page","page","left","right","column"],f=()=>[It,O];return{cacheSize:500,separator:":",theme:{colors:[Xt],spacing:[gt,pt],blur:["none","",ht,O],brightness:f(),borderColor:[i],borderRadius:["none","","full",ht,O],borderSpacing:B(),borderWidth:lt(),contrast:f(),grayscale:dt(),hueRotate:f(),invert:dt(),gap:B(),gradientColorStops:[i],gradientColorStopPositions:[no,pt],inset:G(),margin:G(),opacity:f(),padding:B(),saturate:f(),scale:f(),sepia:dt(),skew:f(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[ht]}],"break-after":[{"break-after":u()}],"break-before":[{"break-before":u()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...K(),O]}],overflow:[{overflow:kt()}],"overflow-x":[{"overflow-x":kt()}],"overflow-y":[{"overflow-y":kt()}],overscroll:[{overscroll:tt()}],"overscroll-x":[{"overscroll-x":tt()}],"overscroll-y":[{"overscroll-y":tt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[z]}],"inset-x":[{"inset-x":[z]}],"inset-y":[{"inset-y":[z]}],start:[{start:[z]}],end:[{end:[z]}],top:[{top:[z]}],right:[{right:[z]}],bottom:[{bottom:[z]}],left:[{left:[z]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Wt,O]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",O]}],grow:[{grow:dt()}],shrink:[{shrink:dt()}],order:[{order:["first","last","none",Wt,O]}],"grid-cols":[{"grid-cols":[Xt]}],"col-start-end":[{col:["auto",{span:["full",Wt,O]},O]}],"col-start":[{"col-start":et()}],"col-end":[{"col-end":et()}],"grid-rows":[{"grid-rows":[Xt]}],"row-start-end":[{row:["auto",{span:[Wt,O]},O]}],"row-start":[{"row-start":et()}],"row-end":[{"row-end":et()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",O]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",O]}],gap:[{gap:[N]}],"gap-x":[{"gap-x":[N]}],"gap-y":[{"gap-y":[N]}],"justify-content":[{justify:["normal",...ct()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ct(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ct(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[W]}],px:[{px:[W]}],py:[{py:[W]}],ps:[{ps:[W]}],pe:[{pe:[W]}],pt:[{pt:[W]}],pr:[{pr:[W]}],pb:[{pb:[W]}],pl:[{pl:[W]}],m:[{m:[P]}],mx:[{mx:[P]}],my:[{my:[P]}],ms:[{ms:[P]}],me:[{me:[P]}],mt:[{mt:[P]}],mr:[{mr:[P]}],mb:[{mb:[P]}],ml:[{ml:[P]}],"space-x":[{"space-x":[vt]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[vt]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",O,t]}],"min-w":[{"min-w":[O,t,"min","max","fit"]}],"max-w":[{"max-w":[O,t,"none","full","min","max","fit","prose",{screen:[ht]},ht]}],h:[{h:[O,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[O,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ht,pt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$e]}],"font-family":[{font:[Xt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",O]}],"line-clamp":[{"line-clamp":["none",It,$e]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",gt,O]}],"list-image":[{"list-image":["none",O]}],"list-style-type":[{list:["none","disc","decimal",O]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[i]}],"placeholder-opacity":[{"placeholder-opacity":[M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[i]}],"text-opacity":[{"text-opacity":[M]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",gt,pt]}],"underline-offset":[{"underline-offset":["auto",gt,O]}],"text-decoration-color":[{decoration:[i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[M]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...K(),ao]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",io]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lo]}],"bg-color":[{bg:[i]}],"gradient-from-pos":[{from:[L]}],"gradient-via-pos":[{via:[L]}],"gradient-to-pos":[{to:[L]}],"gradient-from":[{from:[F]}],"gradient-via":[{via:[F]}],"gradient-to":[{to:[F]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[m]}],"border-w-x":[{"border-x":[m]}],"border-w-y":[{"border-y":[m]}],"border-w-s":[{"border-s":[m]}],"border-w-e":[{"border-e":[m]}],"border-w-t":[{"border-t":[m]}],"border-w-r":[{"border-r":[m]}],"border-w-b":[{"border-b":[m]}],"border-w-l":[{"border-l":[m]}],"border-opacity":[{"border-opacity":[M]}],"border-style":[{border:[...Q(),"hidden"]}],"divide-x":[{"divide-x":[m]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[m]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[M]}],"divide-style":[{divide:Q()}],"border-color":[{border:[e]}],"border-color-x":[{"border-x":[e]}],"border-color-y":[{"border-y":[e]}],"border-color-s":[{"border-s":[e]}],"border-color-e":[{"border-e":[e]}],"border-color-t":[{"border-t":[e]}],"border-color-r":[{"border-r":[e]}],"border-color-b":[{"border-b":[e]}],"border-color-l":[{"border-l":[e]}],"divide-color":[{divide:[e]}],"outline-style":[{outline:["",...Q()]}],"outline-offset":[{"outline-offset":[gt,O]}],"outline-w":[{outline:[gt,pt]}],"outline-color":[{outline:[i]}],"ring-w":[{ring:lt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[i]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[gt,pt]}],"ring-offset-color":[{"ring-offset":[i]}],shadow:[{shadow:["","inner","none",ht,co]}],"shadow-color":[{shadow:[Xt]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":[...bt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":bt()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[C]}],"drop-shadow":[{"drop-shadow":["","none",ht,O]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[E]}],saturate:[{saturate:[X]}],sepia:[{sepia:[q]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[C]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[E]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[X]}],"backdrop-sepia":[{"backdrop-sepia":[q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:f()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:f()}],animate:[{animate:["none","spin","ping","pulse","bounce",O]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[J]}],"scale-x":[{"scale-x":[J]}],"scale-y":[{"scale-y":[J]}],rotate:[{rotate:[Wt,O]}],"translate-x":[{"translate-x":[it]}],"translate-y":[{"translate-y":[it]}],"skew-x":[{"skew-x":[ft]}],"skew-y":[{"skew-y":[ft]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O]}],accent:[{accent:["auto",i]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O]}],"caret-color":[{caret:[i]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O]}],fill:[{fill:[i,"none"]}],"stroke-w":[{stroke:[gt,pt,$e]}],stroke:[{stroke:[i,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function p(...i){return ho(lr(i))}var mo=Object.defineProperty,fo=(i,t,r,n)=>{for(var e=void 0,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(t,r,e)||e);return e&&mo(t,r,e),e};class h extends d.LitElement{constructor(){super(),this.customClass=""}getAttributesToExclude(){return[]}getAttributesToRemoveFromParent(){return["class"]}removeParentAttributes(){this.getAttributesToRemoveFromParent().forEach(r=>{r==="class"&&this.hasAttribute("class")&&(this.customClass=this.getAttribute("class")||""),this.hasAttribute(r)&&this.removeAttribute(r)})}getFilteredAttributes(){const t={};return Array.from(this.attributes).forEach(r=>{this.getAttributesToExclude().includes(r.name)||(t[r.name]=r.value??"")}),t}isCustomPropertySet(t){const r=getComputedStyle(this).getPropertyValue(t).trim();return r!=="inherit"&&r.length>0}applyCustomClass(t,r,n=""){var a,s;let e="";t.some(m=>this.isCustomPropertySet(m))&&(e=n),e&&((s=(a=this.shadowRoot)==null?void 0:a.querySelector(r))==null||s.classList.add(e))}removeDuplicateContent(){var a;const t=document.createTreeWalker(this,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{var m;return s.nodeType===Node.COMMENT_NODE||s.nodeType===Node.TEXT_NODE&&!((m=s.textContent)!=null&&m.trim())?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),r=new Map,n=[];let e;for(;e=t.nextNode();){let s;if(e.nodeType===Node.TEXT_NODE){const m=(a=e.textContent)==null?void 0:a.trim();if(!m)continue;s=`text:${m}`}else if(e instanceof HTMLElement){const m=Array.from(e.attributes).map(C=>`${C.name}=${C.value}`).sort().join(":");s=`element:${e.tagName}:${m}`}else continue;if(r.has(s)){const m=r.get(s);m&&m.parentNode&&n.push(m),r.set(s,e)}else r.set(s,e)}n.forEach(s=>{s.parentNode&&(console.log("Removing duplicate:",s),s.parentNode.removeChild(s))})}moveLightDomChildrenInto(t,r){let n;if(r&&r.length>0){n=r.filter(e=>this.contains(e)&&e!==t&&!e.contains(t));for(const e of n){const a=Array.from(t.childNodes).find(s=>{var m;return(m=s.isEqualNode)==null?void 0:m.call(s,e)});a&&t.removeChild(a)}}else n=Array.from(this.childNodes).filter(e=>e!==t&&!t.contains(e)&&!e.contains(t));for(const e of n)t.appendChild(e)}}fo([l.property({type:String,reflect:!0})],h.prototype,"customClass");function Oe(){const i=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=(i+Math.random()*16)%16|0;return(r=="x"?n:n&3|8).toString(16)})}const fr=d.css`
|
|
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,Mn,_t,An,Ln,ir,Ce,ne,Nn){"use strict";const Bn="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";function sr(a){var e,r,n="";if(typeof a=="string"||typeof a=="number")n+=a;else if(typeof a=="object")if(Array.isArray(a)){var t=a.length;for(e=0;e<t;e++)a[e]&&(r=sr(a[e]))&&(n&&(n+=" "),n+=r)}else for(r in a)a[r]&&(n&&(n+=" "),n+=r);return n}function lr(){for(var a,e,r=0,n="",t=arguments.length;r<t;r++)(a=arguments[r])&&(e=sr(a))&&(n&&(n+=" "),n+=e);return n}const Et="-",qn=a=>{const e=zn(a),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=a;return{getClassGroupId:s=>{const m=s.split(Et);return m[0]===""&&m.length!==1&&m.shift(),cr(m,e)||Un(s)},getConflictingClassGroupIds:(s,m)=>{const C=r[s]||[];return m&&n[s]?[...C,...n[s]]:C}}},cr=(a,e)=>{var s;if(a.length===0)return e.classGroupId;const r=a[0],n=e.nextPart.get(r),t=n?cr(a.slice(1),n):void 0;if(t)return t;if(e.validators.length===0)return;const i=a.join(Et);return(s=e.validators.find(({validator:m})=>m(i)))==null?void 0:s.classGroupId},dr=/^\[(.+)\]$/,Un=a=>{if(dr.test(a)){const e=dr.exec(a)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},zn=a=>{const{theme:e,prefix:r}=a,n={nextPart:new Map,validators:[]};return Gn(Object.entries(a.classGroups),r).forEach(([i,s])=>{xt(s,n,i,e)}),n},xt=(a,e,r,n)=>{a.forEach(t=>{if(typeof t=="string"){const i=t===""?e:ur(e,t);i.classGroupId=r;return}if(typeof t=="function"){if(Fn(t)){xt(t(n),e,r,n);return}e.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(([i,s])=>{xt(s,ur(e,i),r,n)})})},ur=(a,e)=>{let r=a;return e.split(Et).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Fn=a=>a.isThemeGetter,Gn=(a,e)=>e?a.map(([r,n])=>{const t=n.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,m])=>[e+s,m])):i);return[r,t]}):a,Vn=a=>{if(a<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const t=(i,s)=>{r.set(i,s),e++,e>a&&(e=0,n=r,r=new Map)};return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return t(i,s),s},set(i,s){r.has(i)?r.set(i,s):t(i,s)}}},gr="!",Hn=a=>{const{separator:e,experimentalParseClassName:r}=a,n=e.length===1,t=e[0],i=e.length,s=m=>{const C=[];let b=0,w=0,x;for(let P=0;P<m.length;P++){let L=m[P];if(b===0){if(L===t&&(n||m.slice(P,P+i)===e)){C.push(m.slice(w,P)),w=P+i;continue}if(L==="/"){x=P;continue}}L==="["?b++:L==="]"&&b--}const N=C.length===0?m:m.substring(w),F=N.startsWith(gr),A=F?N.substring(1):N,q=x&&x>w?x-w:void 0;return{modifiers:C,hasImportantModifier:F,baseClassName:A,maybePostfixModifierPosition:q}};return r?m=>r({className:m,parseClassName:s}):s},Yn=a=>{if(a.length<=1)return a;const e=[];let r=[];return a.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},Kn=a=>({cache:Vn(a.cacheSize),parseClassName:Hn(a),...qn(a)}),Wn=/\s+/,jn=(a,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:t}=e,i=[],s=a.trim().split(Wn);let m="";for(let C=s.length-1;C>=0;C-=1){const b=s[C],{modifiers:w,hasImportantModifier:x,baseClassName:N,maybePostfixModifierPosition:F}=r(b);let A=!!F,q=n(A?N.substring(0,F):N);if(!q){if(!A){m=b+(m.length>0?" "+m:m);continue}if(q=n(N),!q){m=b+(m.length>0?" "+m:m);continue}A=!1}const P=Yn(w).join(":"),L=x?P+gr:P,W=L+q;if(i.includes(W))continue;i.push(W);const j=t(q,A);for(let J=0;J<j.length;++J){const B=j[J];i.push(L+B)}m=b+(m.length>0?" "+m:m)}return m};function Xn(){let a=0,e,r,n="";for(;a<arguments.length;)(e=arguments[a++])&&(r=pr(e))&&(n&&(n+=" "),n+=r);return n}const pr=a=>{if(typeof a=="string")return a;let e,r="";for(let n=0;n<a.length;n++)a[n]&&(e=pr(a[n]))&&(r&&(r+=" "),r+=e);return r};function Zn(a,...e){let r,n,t,i=s;function s(C){const b=e.reduce((w,x)=>x(w),a());return r=Kn(b),n=r.cache.get,t=r.cache.set,i=m,m(C)}function m(C){const b=n(C);if(b)return b;const w=jn(C,r);return t(C,w),w}return function(){return i(Xn.apply(null,arguments))}}const H=a=>{const e=r=>r[a]||[];return e.isThemeGetter=!0,e},hr=/^\[(?:([a-z-]+):)?(.+)\]$/i,Qn=/^\d+\/\d+$/,Jn=new Set(["px","full","screen"]),eo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,to=/\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$/,ro=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,no=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,oo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ge=a=>ke(a)||Jn.has(a)||Qn.test(a),he=a=>Te(a,"length",po),ke=a=>!!a&&!Number.isNaN(Number(a)),$t=a=>Te(a,"number",ke),We=a=>!!a&&Number.isInteger(Number(a)),ao=a=>a.endsWith("%")&&ke(a.slice(0,-1)),O=a=>hr.test(a),me=a=>eo.test(a),io=new Set(["length","size","percentage"]),so=a=>Te(a,io,mr),lo=a=>Te(a,"position",mr),co=new Set(["image","url"]),uo=a=>Te(a,co,mo),go=a=>Te(a,"",ho),je=()=>!0,Te=(a,e,r)=>{const n=hr.exec(a);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},po=a=>to.test(a)&&!ro.test(a),mr=()=>!1,ho=a=>no.test(a),mo=a=>oo.test(a),vo=Zn(()=>{const a=H("colors"),e=H("spacing"),r=H("blur"),n=H("brightness"),t=H("borderColor"),i=H("borderRadius"),s=H("borderSpacing"),m=H("borderWidth"),C=H("contrast"),b=H("grayscale"),w=H("hueRotate"),x=H("invert"),N=H("gap"),F=H("gradientColorStops"),A=H("gradientColorStopPositions"),q=H("inset"),P=H("margin"),L=H("opacity"),W=H("padding"),j=H("saturate"),J=H("scale"),B=H("sepia"),fe=H("skew"),be=H("space"),ae=H("translate"),ee=()=>["auto","contain","none"],Ie=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",O,e],U=()=>[O,e],le=()=>["",ge,he],te=()=>["auto",ke,O],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Z=()=>["solid","dashed","dotted","double","none"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>["start","end","center","between","around","evenly","stretch"],de=()=>["","0",O],u=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>[ke,O];return{cacheSize:500,separator:":",theme:{colors:[je],spacing:[ge,he],blur:["none","",me,O],brightness:v(),borderColor:[a],borderRadius:["none","","full",me,O],borderSpacing:U(),borderWidth:le(),contrast:v(),grayscale:de(),hueRotate:v(),invert:de(),gap:U(),gradientColorStops:[a],gradientColorStopPositions:[ao,he],inset:G(),margin:G(),opacity:v(),padding:U(),saturate:v(),scale:v(),sepia:de(),skew:v(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[me]}],"break-after":[{"break-after":u()}],"break-before":[{"break-before":u()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...X(),O]}],overflow:[{overflow:Ie()}],"overflow-x":[{"overflow-x":Ie()}],"overflow-y":[{"overflow-y":Ie()}],overscroll:[{overscroll:ee()}],"overscroll-x":[{"overscroll-x":ee()}],"overscroll-y":[{"overscroll-y":ee()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[q]}],"inset-x":[{"inset-x":[q]}],"inset-y":[{"inset-y":[q]}],start:[{start:[q]}],end:[{end:[q]}],top:[{top:[q]}],right:[{right:[q]}],bottom:[{bottom:[q]}],left:[{left:[q]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",We,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":[je]}],"col-start-end":[{col:["auto",{span:["full",We,O]},O]}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":[je]}],"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":[be]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[be]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",O,e]}],"min-w":[{"min-w":[O,e,"min","max","fit"]}],"max-w":[{"max-w":[O,e,"none","full","min","max","fit","prose",{screen:[me]},me]}],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",me,he]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$t]}],"font-family":[{font:[je]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",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:[a]}],"placeholder-opacity":[{"placeholder-opacity":[L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[a]}],"text-opacity":[{"text-opacity":[L]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ge,he]}],"underline-offset":[{"underline-offset":["auto",ge,O]}],"text-decoration-color":[{decoration:[a]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",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":[L]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),lo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",so]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},uo]}],"bg-color":[{bg:[a]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[F]}],"gradient-via":[{via:[F]}],"gradient-to":[{to:[F]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[m]}],"border-w-x":[{"border-x":[m]}],"border-w-y":[{"border-y":[m]}],"border-w-s":[{"border-s":[m]}],"border-w-e":[{"border-e":[m]}],"border-w-t":[{"border-t":[m]}],"border-w-r":[{"border-r":[m]}],"border-w-b":[{"border-b":[m]}],"border-w-l":[{"border-l":[m]}],"border-opacity":[{"border-opacity":[L]}],"border-style":[{border:[...Z(),"hidden"]}],"divide-x":[{"divide-x":[m]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[m]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[L]}],"divide-style":[{divide:Z()}],"border-color":[{border:[t]}],"border-color-x":[{"border-x":[t]}],"border-color-y":[{"border-y":[t]}],"border-color-s":[{"border-s":[t]}],"border-color-e":[{"border-e":[t]}],"border-color-t":[{"border-t":[t]}],"border-color-r":[{"border-r":[t]}],"border-color-b":[{"border-b":[t]}],"border-color-l":[{"border-l":[t]}],"divide-color":[{divide:[t]}],"outline-style":[{outline:["",...Z()]}],"outline-offset":[{"outline-offset":[ge,O]}],"outline-w":[{outline:[ge,he]}],"outline-color":[{outline:[a]}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[a]}],"ring-opacity":[{"ring-opacity":[L]}],"ring-offset-w":[{"ring-offset":[ge,he]}],"ring-offset-color":[{"ring-offset":[a]}],shadow:[{shadow:["","inner","none",me,go]}],"shadow-color":[{shadow:[je]}],opacity:[{opacity:[L]}],"mix-blend":[{"mix-blend":[...ye(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ye()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[C]}],"drop-shadow":[{"drop-shadow":["","none",me,O]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[x]}],saturate:[{saturate:[j]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[C]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[L]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:v()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:v()}],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":[ae]}],"translate-y":[{"translate-y":[ae]}],"skew-x":[{"skew-x":[fe]}],"skew-y":[{"skew-y":[fe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O]}],accent:[{accent:["auto",a]}],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:[a]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O]}],fill:[{fill:[a,"none"]}],"stroke-w":[{stroke:[ge,he,$t]}],stroke:[{stroke:[a,"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(...a){return vo(lr(a))}var fo=Object.defineProperty,bo=(a,e,r,n)=>{for(var t=void 0,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(e,r,t)||t);return t&&fo(e,r,t),t};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 e={};return Array.from(this.attributes).forEach(r=>{this.getAttributesToExclude().includes(r.name)||(e[r.name]=r.value??"")}),e}isCustomPropertySet(e){const r=getComputedStyle(this).getPropertyValue(e).trim();return r!=="inherit"&&r.length>0}applyCustomClass(e,r,n=""){var i,s;let t="";e.some(m=>this.isCustomPropertySet(m))&&(t=n),t&&((s=(i=this.shadowRoot)==null?void 0:i.querySelector(r))==null||s.classList.add(t))}removeDuplicateContent(){var i;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=(i=t.textContent)==null?void 0:i.trim();if(!m)continue;s=`text:${m}`}else if(t instanceof HTMLElement){const m=Array.from(t.attributes).map(C=>`${C.name}=${C.value}`).sort().join(":");s=`element:${t.tagName}:${m}`}else continue;if(r.has(s)){const m=r.get(s);m&&m.parentNode&&n.push(m),r.set(s,t)}else r.set(s,t)}n.forEach(s=>{s.parentNode&&(console.log("Removing duplicate:",s),s.parentNode.removeChild(s))})}moveLightDomChildrenInto(e,r){let n;if(r&&r.length>0){n=r.filter(t=>this.contains(t)&&t!==e&&!t.contains(e));for(const t of n){const i=Array.from(e.childNodes).find(s=>{var m;return(m=s.isEqualNode)==null?void 0:m.call(s,t)});i&&e.removeChild(i)}}else n=Array.from(this.childNodes).filter(t=>t!==e&&!e.contains(t)&&!t.contains(e));for(const t of n)e.appendChild(t)}}bo([l.property({type:String,reflect:!0})],h.prototype,"customClass");function Ot(){const a=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=(a+Math.random()*16)%16|0;return(r=="x"?n:n&3|8).toString(16)})}const vr=d.css`
|
|
2
2
|
@font-face {
|
|
3
3
|
font-family: 'GeistSans';
|
|
4
4
|
|
|
@@ -2850,7 +2850,7 @@ body {
|
|
|
2850
2850
|
.\\[\\&_svg\\]\\:shrink-0 svg {
|
|
2851
2851
|
flex-shrink: 0;
|
|
2852
2852
|
}
|
|
2853
|
-
`,
|
|
2853
|
+
`,fr=new CSSStyleSheet;fr.replaceSync(vr.cssText||vr.toString());const nr=class nr extends d.LitElement{constructor(){super()}connectedCallback(){super.connectedCallback(),this.shadowRoot?this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,fr]:console.error("Shadow root not available in ShadowWrapper")}render(){return d.html`<div><slot></slot></div>`}};nr.styles=d.css`
|
|
2854
2854
|
:host {
|
|
2855
2855
|
display: block;
|
|
2856
2856
|
border: 2px solid black;
|
|
@@ -2859,7 +2859,36 @@ body {
|
|
|
2859
2859
|
.wrapper {
|
|
2860
2860
|
display: block;
|
|
2861
2861
|
}
|
|
2862
|
-
`;let Se=nr;customElements.define("shadow-wrapper",Se);const vo="rtg-flex rtg-h-9 rtg-w-full rtg-rounded-md rtg-border rtg-border-input rtg-bg-transparent rtg-px-3 rtg-py-1 rtg-text-sm rtg-shadow-sm rtg-transition-colors file:rtg-border-0 file:rtg-bg-transparent file:rtg-text-sm file:rtg-font-medium placeholder:rtg-text-muted-foreground focus-visible:rtg-outline-none focus-visible:rtg-ring-1 focus-visible:rtg-ring-ring disabled:rtg-opacity-50 input-base";class br extends An.AsyncDirective{constructor(){super(...arguments),this.prevData={}}render(t){return Tn.nothing}update(t,[r]){var n;this.element!==t.element&&(this.element=t.element),this.host=((n=t.options)===null||n===void 0?void 0:n.host)||this.element,this.apply(r),this.groom(r),this.prevData={...r}}apply(t){if(!t)return;const{prevData:r,element:n}=this;for(const e in t){const a=t[e];a!==r[e]&&(n[e]=a)}}groom(t){const{prevData:r,element:n}=this;if(r)for(const e in r)(!t||!(e in t)&&n[e]===r[e])&&(n[e]=void 0)}}_e.directive(br);class yr extends br{constructor(){super(...arguments),this.eventData={}}apply(t){if(t)for(const r in t){const n=t[r];n!==this.eventData[r]&&this.applyEvent(r,n)}}applyEvent(t,r){const{prevData:n,element:e}=this;this.eventData[t]=r,n[t]&&e.removeEventListener(t,this,r),e.addEventListener(t,this,r)}groom(t){const{prevData:r,element:n}=this;if(r)for(const e in r)(!t||!(e in t)&&n[e]===r[e])&&this.groomEvent(e,r[e])}groomEvent(t,r){const{element:n}=this;delete this.eventData[t],n.removeEventListener(t,this,r)}handleEvent(t){const r=this.eventData[t.type];typeof r=="function"?r.call(this.host,t):r.handleEvent(t)}disconnected(){const{eventData:t,element:r}=this;for(const n in t){const e=n.slice(1),a=t[n];r.removeEventListener(e,this,a)}}reconnected(){const{eventData:t,element:r}=this;for(const n in t){const e=n.slice(1),a=t[n];r.addEventListener(e,this,a)}}}_e.directive(yr);class bo extends yr{apply(t){if(!t)return;const{prevData:r,element:n}=this;for(const e in t){const a=t[e];if(a===r[e])continue;const s=e.slice(1);switch(e[0]){case"@":this.eventData[s]=a,this.applyEvent(s,a);break;case".":n[s]=a;break;case"?":a?n.setAttribute(s,""):n.removeAttribute(s);break;default:a!=null?n.setAttribute(e,String(a)):n.removeAttribute(e);break}}}groom(t){const{prevData:r,element:n}=this;if(r)for(const e in r){const a=e.slice(1);if(!t||!(e in t)&&n[a]===r[e])switch(e[0]){case"@":this.groomEvent(a,r[e]);break;case".":n[a]=void 0;break;case"?":n.removeAttribute(a);break;default:n.removeAttribute(e);break}}}}const H=_e.directive(bo);var yo=Object.defineProperty,wo=Object.getOwnPropertyDescriptor,Ct=(i,t,r,n)=>{for(var e=n>1?void 0:n?wo(t,r):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=(n?s(t,r,e):s(e))||e);return n&&e&&yo(t,r,e),e};o.RtgInput=class extends h{constructor(){super(),this.disabled=!1,this.type="text",this.placeholder="",this.defaultValue="",this.value="",this.dataKey="",this.value=this.value||this.defaultValue}firstUpdated(t){this.removeParentAttributes(),this.type!=="file"&&this.defaultValue&&(this.value=this.defaultValue)}handleInputChange(t){const r=t.target;r.type==="file"?this.value=r.files?r.files[0].name:"":this.value=r.value}handleFocus(){this.dispatchEvent(new CustomEvent("focus",{bubbles:!0,composed:!0,detail:{dataKey:this.dataKey}}))}getAttributesToExclude(){return["disabled","type","placeholder","value","data-testid","custom-class","data-key"]}getAttributesToRemoveFromParent(){return["class"]}createRenderRoot(){return this}render(){const t=this.getFilteredAttributes();return d.html`
|
|
2862
|
+
`;let St=nr;customElements.define("shadow-wrapper",St);class br extends An.AsyncDirective{constructor(){super(...arguments),this.prevData={}}render(e){return Mn.nothing}update(e,[r]){var n;this.element!==e.element&&(this.element=e.element),this.host=((n=e.options)===null||n===void 0?void 0:n.host)||this.element,this.apply(r),this.groom(r),this.prevData={...r}}apply(e){if(!e)return;const{prevData:r,element:n}=this;for(const t in e){const i=e[t];i!==r[t]&&(n[t]=i)}}groom(e){const{prevData:r,element:n}=this;if(r)for(const t in r)(!e||!(t in e)&&n[t]===r[t])&&(n[t]=void 0)}}_t.directive(br);class yr extends br{constructor(){super(...arguments),this.eventData={}}apply(e){if(e)for(const r in e){const n=e[r];n!==this.eventData[r]&&this.applyEvent(r,n)}}applyEvent(e,r){const{prevData:n,element:t}=this;this.eventData[e]=r,n[e]&&t.removeEventListener(e,this,r),t.addEventListener(e,this,r)}groom(e){const{prevData:r,element:n}=this;if(r)for(const t in r)(!e||!(t in e)&&n[t]===r[t])&&this.groomEvent(t,r[t])}groomEvent(e,r){const{element:n}=this;delete this.eventData[e],n.removeEventListener(e,this,r)}handleEvent(e){const r=this.eventData[e.type];typeof r=="function"?r.call(this.host,e):r.handleEvent(e)}disconnected(){const{eventData:e,element:r}=this;for(const n in e){const t=n.slice(1),i=e[n];r.removeEventListener(t,this,i)}}reconnected(){const{eventData:e,element:r}=this;for(const n in e){const t=n.slice(1),i=e[n];r.addEventListener(t,this,i)}}}_t.directive(yr);class yo extends yr{apply(e){if(!e)return;const{prevData:r,element:n}=this;for(const t in e){const i=e[t];if(i===r[t])continue;const s=t.slice(1);switch(t[0]){case"@":this.eventData[s]=i,this.applyEvent(s,i);break;case".":n[s]=i;break;case"?":i?n.setAttribute(s,""):n.removeAttribute(s);break;default:i!=null?n.setAttribute(t,String(i)):n.removeAttribute(t);break}}}groom(e){const{prevData:r,element:n}=this;if(r)for(const t in r){const i=t.slice(1);if(!e||!(t in e)&&n[i]===r[t])switch(t[0]){case"@":this.groomEvent(i,r[t]);break;case".":n[i]=void 0;break;case"?":n.removeAttribute(i);break;default:n.removeAttribute(t);break}}}}const V=_t.directive(yo),wr=[{label:"AF",value:"AF",code:"+93"},{label:"AL",value:"AL",code:"+355"},{label:"DZ",value:"DZ",code:"+213"},{label:"AS",value:"AS",code:"+1684"},{label:"AD",value:"AD",code:"+376"},{label:"AO",value:"AO",code:"+244"},{label:"AI",value:"AI",code:"+1264"},{label:"AG",value:"AG",code:"+1268"},{label:"AR",value:"AR",code:"+54"},{label:"AM",value:"AM",code:"+374"},{label:"AW",value:"AW",code:"+297"},{label:"AU",value:"AU",code:"+61"},{label:"AT",value:"AT",code:"+43"},{label:"AZ",value:"AZ",code:"+994"},{label:"BS",value:"BS",code:"+1242"},{label:"BH",value:"BH",code:"+973"},{label:"BD",value:"BD",code:"+880"},{label:"BB",value:"BB",code:"+1246"},{label:"BY",value:"BY",code:"+375"},{label:"BE",value:"BE",code:"+32"},{label:"BZ",value:"BZ",code:"+501"},{label:"BJ",value:"BJ",code:"+229"},{label:"BM",value:"BM",code:"+1441"},{label:"BT",value:"BT",code:"+975"},{label:"BO",value:"BO",code:"+591"},{label:"BA",value:"BA",code:"+387"},{label:"BW",value:"BW",code:"+267"},{label:"BR",value:"BR",code:"+55"},{label:"IO",value:"IO",code:"+246"},{label:"VG",value:"VG",code:"+1284"},{label:"BN",value:"BN",code:"+673"},{label:"BG",value:"BG",code:"+359"},{label:"BF",value:"BF",code:"+226"},{label:"BI",value:"BI",code:"+257"},{label:"KH",value:"KH",code:"+855"},{label:"CM",value:"CM",code:"+237"},{label:"CA",value:"CA",code:"+1"},{label:"CV",value:"CV",code:"+238"},{label:"KY",value:"KY",code:"+1345"},{label:"CF",value:"CF",code:"+236"},{label:"TD",value:"TD",code:"+235"},{label:"CL",value:"CL",code:"+56"},{label:"CN",value:"CN",code:"+86"},{label:"CX",value:"CX",code:"+61"},{label:"CC",value:"CC",code:"+61"},{label:"CO",value:"CO",code:"+57"},{label:"KM",value:"KM",code:"+269"},{label:"CK",value:"CK",code:"+682"},{label:"CR",value:"CR",code:"+506"},{label:"HR",value:"HR",code:"+385"},{label:"CU",value:"CU",code:"+53"},{label:"CW",value:"CW",code:"+599"},{label:"CY",value:"CY",code:"+357"},{label:"CZ",value:"CZ",code:"+420"},{label:"CD",value:"CD",code:"+243"},{label:"DK",value:"DK",code:"+45"},{label:"DJ",value:"DJ",code:"+253"},{label:"DM",value:"DM",code:"+1767"},{label:"DO",value:"DO",code:"+1809"},{label:"DO",value:"DO",code:"+1829"},{label:"DO",value:"DO",code:"+1849"},{label:"TL",value:"TL",code:"+670"},{label:"EC",value:"EC",code:"+593"},{label:"EG",value:"EG",code:"+20"},{label:"SV",value:"SV",code:"+503"},{label:"GQ",value:"GQ",code:"+240"},{label:"ER",value:"ER",code:"+291"},{label:"EE",value:"EE",code:"+372"},{label:"ET",value:"ET",code:"+251"},{label:"FK",value:"FK",code:"+500"},{label:"FO",value:"FO",code:"+298"},{label:"FJ",value:"FJ",code:"+679"},{label:"FI",value:"FI",code:"+358"},{label:"FR",value:"FR",code:"+33"},{label:"PF",value:"PF",code:"+689"},{label:"GA",value:"GA",code:"+241"},{label:"GM",value:"GM",code:"+220"},{label:"GE",value:"GE",code:"+995"},{label:"DE",value:"DE",code:"+49"},{label:"GH",value:"GH",code:"+233"},{label:"GI",value:"GI",code:"+350"},{label:"GR",value:"GR",code:"+30"},{label:"GL",value:"GL",code:"+299"},{label:"GD",value:"GD",code:"+1473"},{label:"GU",value:"GU",code:"+1671"},{label:"GT",value:"GT",code:"+502"},{label:"GG",value:"GG",code:"+441481"},{label:"GN",value:"GN",code:"+224"},{label:"GW",value:"GW",code:"+245"},{label:"GY",value:"GY",code:"+592"},{label:"HT",value:"HT",code:"+509"},{label:"HN",value:"HN",code:"+504"},{label:"HK",value:"HK",code:"+852"},{label:"HU",value:"HU",code:"+36"},{label:"IS",value:"IS",code:"+354"},{label:"IN",value:"IN",code:"+91"},{label:"ID",value:"ID",code:"+62"},{label:"IR",value:"IR",code:"+98"},{label:"IQ",value:"IQ",code:"+964"},{label:"IE",value:"IE",code:"+353"},{label:"IM",value:"IM",code:"+441624"},{label:"IL",value:"IL",code:"+972"},{label:"IT",value:"IT",code:"+39"},{label:"CI",value:"CI",code:"+225"},{label:"JM",value:"JM",code:"+1876"},{label:"JP",value:"JP",code:"+81"},{label:"JE",value:"JE",code:"+441534"},{label:"JO",value:"JO",code:"+962"},{label:"KZ",value:"KZ",code:"+7"},{label:"KE",value:"KE",code:"+254"},{label:"KI",value:"KI",code:"+686"},{label:"XK",value:"XK",code:"+383"},{label:"KW",value:"KW",code:"+965"},{label:"KG",value:"KG",code:"+996"},{label:"LA",value:"LA",code:"+856"},{label:"LV",value:"LV",code:"+371"},{label:"LB",value:"LB",code:"+961"},{label:"LS",value:"LS",code:"+266"},{label:"LR",value:"LR",code:"+231"},{label:"LY",value:"LY",code:"+218"},{label:"LI",value:"LI",code:"+423"},{label:"LT",value:"LT",code:"+370"},{label:"LU",value:"LU",code:"+352"},{label:"MO",value:"MO",code:"+853"},{label:"MK",value:"MK",code:"+389"},{label:"MG",value:"MG",code:"+261"},{label:"MW",value:"MW",code:"+265"},{label:"MY",value:"MY",code:"+60"},{label:"MV",value:"MV",code:"+960"},{label:"ML",value:"ML",code:"+223"},{label:"MT",value:"MT",code:"+356"},{label:"MH",value:"MH",code:"+692"},{label:"MR",value:"MR",code:"+222"},{label:"MU",value:"MU",code:"+230"},{label:"YT",value:"YT",code:"+262"},{label:"MX",value:"MX",code:"+52"},{label:"FM",value:"FM",code:"+691"},{label:"MD",value:"MD",code:"+373"},{label:"MC",value:"MC",code:"+377"},{label:"MN",value:"MN",code:"+976"},{label:"ME",value:"ME",code:"+382"},{label:"MS",value:"MS",code:"+1664"},{label:"MA",value:"MA",code:"+212"},{label:"MZ",value:"MZ",code:"+258"},{label:"MM",value:"MM",code:"+95"},{label:"NA",value:"NA",code:"+264"},{label:"NR",value:"NR",code:"+674"},{label:"NP",value:"NP",code:"+977"},{label:"NL",value:"NL",code:"+31"},{label:"AN",value:"AN",code:"+599"},{label:"NC",value:"NC",code:"+687"},{label:"NZ",value:"NZ",code:"+64"},{label:"NI",value:"NI",code:"+505"},{label:"NE",value:"NE",code:"+227"},{label:"NG",value:"NG",code:"+234"},{label:"NU",value:"NU",code:"+683"},{label:"KP",value:"KP",code:"+850"},{label:"MP",value:"MP",code:"+1670"},{label:"NO",value:"NO",code:"+47"},{label:"OM",value:"OM",code:"+968"},{label:"PK",value:"PK",code:"+92"},{label:"PW",value:"PW",code:"+680"},{label:"PS",value:"PS",code:"+970"},{label:"PA",value:"PA",code:"+507"},{label:"PG",value:"PG",code:"+675"},{label:"PY",value:"PY",code:"+595"},{label:"PE",value:"PE",code:"+51"},{label:"PH",value:"PH",code:"+63"},{label:"PN",value:"PN",code:"+64"},{label:"PL",value:"PL",code:"+48"},{label:"PT",value:"PT",code:"+351"},{label:"PR",value:"PR",code:"+1787"},{label:"PR",value:"PR",code:"+1939"},{label:"QA",value:"QA",code:"+974"},{label:"CG",value:"CG",code:"+242"},{label:"RE",value:"RE",code:"+262"},{label:"RO",value:"RO",code:"+40"},{label:"RU",value:"RU",code:"+7"},{label:"RW",value:"RW",code:"+250"},{label:"BL",value:"BL",code:"+590"},{label:"SH",value:"SH",code:"+290"},{label:"KN",value:"KN",code:"+1869"},{label:"LC",value:"LC",code:"+1758"},{label:"MF",value:"MF",code:"+590"},{label:"PM",value:"PM",code:"+508"},{label:"VC",value:"VC",code:"+1784"},{label:"WS",value:"WS",code:"+685"},{label:"SM",value:"SM",code:"+378"},{label:"ST",value:"ST",code:"+239"},{label:"SA",value:"SA",code:"+966"},{label:"SN",value:"SN",code:"+221"},{label:"RS",value:"RS",code:"+381"},{label:"SC",value:"SC",code:"+248"},{label:"SL",value:"SL",code:"+232"},{label:"SG",value:"SG",code:"+65"},{label:"SX",value:"SX",code:"+1721"},{label:"SK",value:"SK",code:"+421"},{label:"SI",value:"SI",code:"+386"},{label:"SB",value:"SB",code:"+677"},{label:"SO",value:"SO",code:"+252"},{label:"ZA",value:"ZA",code:"+27"},{label:"KR",value:"KR",code:"+82"},{label:"SS",value:"SS",code:"+211"},{label:"ES",value:"ES",code:"+34"},{label:"LK",value:"LK",code:"+94"},{label:"SD",value:"SD",code:"+249"},{label:"SR",value:"SR",code:"+597"},{label:"SJ",value:"SJ",code:"+47"},{label:"SZ",value:"SZ",code:"+268"},{label:"SE",value:"SE",code:"+46"},{label:"CH",value:"CH",code:"+41"},{label:"SY",value:"SY",code:"+963"},{label:"TW",value:"TW",code:"+886"},{label:"TJ",value:"TJ",code:"+992"},{label:"TZ",value:"TZ",code:"+255"},{label:"TH",value:"TH",code:"+66"},{label:"TG",value:"TG",code:"+228"},{label:"TK",value:"TK",code:"+690"},{label:"TO",value:"TO",code:"+676"},{label:"TT",value:"TT",code:"+1868"},{label:"TN",value:"TN",code:"+216"},{label:"TR",value:"TR",code:"+90"},{label:"TM",value:"TM",code:"+993"},{label:"TC",value:"TC",code:"+1649"},{label:"TV",value:"TV",code:"+688"},{label:"VI",value:"VI",code:"+1340"},{label:"UG",value:"UG",code:"+256"},{label:"UA",value:"UA",code:"+380"},{label:"AE",value:"AE",code:"+971"},{label:"GB",value:"GB",code:"+44"},{label:"US",value:"US",code:"+1"},{label:"UY",value:"UY",code:"+598"},{label:"UZ",value:"UZ",code:"+998"},{label:"VU",value:"VU",code:"+678"},{label:"VA",value:"VA",code:"+379"},{label:"VE",value:"VE",code:"+58"},{label:"VN",value:"VN",code:"+84"},{label:"WF",value:"WF",code:"+681"},{label:"EH",value:"EH",code:"+212"},{label:"YE",value:"YE",code:"+967"},{label:"ZM",value:"ZM",code:"+260"},{label:"ZW",value:"ZW",code:"+263"}];var wo=Object.defineProperty,Co=Object.getOwnPropertyDescriptor,pe=(a,e,r,n)=>{for(var t=n>1?void 0:n?Co(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&wo(e,r,t),t};o.RtgInput=class extends h{constructor(){super(),this.disabled=!1,this.type="text",this.placeholder="",this.defaultValue="",this.value="",this.dataKey="",this.country="US",this.countryCode="+1",this.value=this.value||this.defaultValue}handleCountryChange(e){const r=e.target,n=wr.find(t=>t.value===r.value);n&&(this.country=n.value,this.countryCode=n.code,this.requestUpdate())}handlePhoneInput(e){const r=e.target;this.value=r.value}firstUpdated(e){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(e){const r=e.target;r.type==="file"?this.value=r.files?r.files[0].name:"":this.value=r.value}handleFocus(){this.dispatchEvent(new CustomEvent("focus",{bubbles:!0,composed:!0,detail:{dataKey:this.dataKey}}))}getAttributesToExclude(){return["disabled","type","placeholder","value","data-testid","custom-class","data-key"]}getAttributesToRemoveFromParent(){return["class"]}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return this.type==="tel"?d.html`
|
|
2863
|
+
<div
|
|
2864
|
+
class="${p("rtg-flex rtg-items-center rtg-border rtg-border-input rtg-rounded-md rtg-px-3 rtg-py-1",this.className)}"
|
|
2865
|
+
>
|
|
2866
|
+
<select
|
|
2867
|
+
class="${p("rtg-w-[40px] rtg-text-sm rtg-outline-none rtg-bg-transparent",this.className)}"
|
|
2868
|
+
@change=${this.handleCountryChange}
|
|
2869
|
+
.value=${this.country}
|
|
2870
|
+
>
|
|
2871
|
+
${wr.map(r=>d.html`<option
|
|
2872
|
+
value=${r.value}
|
|
2873
|
+
?selected=${this.country===r.value}
|
|
2874
|
+
>
|
|
2875
|
+
${r.label}
|
|
2876
|
+
</option>`)}
|
|
2877
|
+
</select>
|
|
2878
|
+
<span class="rtg-text-sm">${this.countryCode}</span>
|
|
2879
|
+
<input
|
|
2880
|
+
part="input"
|
|
2881
|
+
type="tel"
|
|
2882
|
+
class="${p("rtg-flex rtg-bg-transparent rtg-text-sm rtg-px-3 rtg-py-[3px] focus-visible:rtg-outline-none disabled:rtg-opacity-50 input-base",this.className)}"
|
|
2883
|
+
placeholder=${this.placeholder}
|
|
2884
|
+
.value=${this.value}
|
|
2885
|
+
@input=${this.handlePhoneInput}
|
|
2886
|
+
@focus=${this.handleFocus}
|
|
2887
|
+
?disabled=${this.disabled}
|
|
2888
|
+
${V(e)}
|
|
2889
|
+
/>
|
|
2890
|
+
</div>
|
|
2891
|
+
`:d.html`
|
|
2863
2892
|
<input
|
|
2864
2893
|
part="input"
|
|
2865
2894
|
type="${this.type}"
|
|
@@ -2868,12 +2897,12 @@ body {
|
|
|
2868
2897
|
.value=${this.type!=="file"?this.value:""}
|
|
2869
2898
|
@change="${this.handleInputChange}"
|
|
2870
2899
|
@focus="${this.handleFocus}"
|
|
2871
|
-
${
|
|
2872
|
-
class="${p(
|
|
2900
|
+
${V(e)}
|
|
2901
|
+
class="${p(Bn,this.customClass)}"
|
|
2873
2902
|
/>
|
|
2874
|
-
`}},
|
|
2903
|
+
`}},pe([l.property({type:Boolean})],o.RtgInput.prototype,"disabled",2),pe([l.property({type:String})],o.RtgInput.prototype,"type",2),pe([l.property({type:String})],o.RtgInput.prototype,"placeholder",2),pe([l.property({type:String})],o.RtgInput.prototype,"defaultValue",2),pe([l.property({type:String})],o.RtgInput.prototype,"value",2),pe([l.property({type:String,attribute:"data-key"})],o.RtgInput.prototype,"dataKey",2),pe([l.property({type:String})],o.RtgInput.prototype,"country",2),pe([l.property({type:String})],o.RtgInput.prototype,"countryCode",2),o.RtgInput=pe([l.customElement("rtg-input")],o.RtgInput);const Cr=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,_r=lr,Q=(a,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return _r(a,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:t,defaultVariants:i}=e,s=Object.keys(t).map(b=>{const w=r==null?void 0:r[b],x=i==null?void 0:i[b];if(w===null)return null;const N=Cr(w)||Cr(x);return t[b][N]}),m=r&&Object.entries(r).reduce((b,w)=>{let[x,N]=w;return N===void 0||(b[x]=N),b},{}),C=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((b,w)=>{let{class:x,className:N,...F}=w;return Object.entries(F).every(A=>{let[q,P]=A;return Array.isArray(P)?P.includes({...i,...m}[q]):{...i,...m}[q]===P})?[...b,x,N]:b},[]);return _r(a,s,C,r==null?void 0:r.class,r==null?void 0:r.className)},_o=Q("rtg-text-sm rtg-font-medium rtg-leading-none peer-disabled:rtg-cursor-not-allowed peer-disabled:rtg-opacity-70");var Eo=Object.defineProperty,xo=Object.getOwnPropertyDescriptor,Er=(a,e,r,n)=>{for(var t=n>1?void 0:n?xo(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Eo(e,r,t),t};o.Label=class extends h{constructor(){super(...arguments),this.for=""}firstUpdated(e){const r=["--label-text-color","--label-padding"];this.applyCustomClass(r,"label","label-base")}getAttributesToExclude(){return["for","data-testid","class"]}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return d.html`
|
|
2875
2904
|
<label
|
|
2876
|
-
${
|
|
2905
|
+
${V(e)}
|
|
2877
2906
|
part="label"
|
|
2878
2907
|
for="${this.for}"
|
|
2879
2908
|
class="${p(o.Label.labelVariants({className:this.className}),"label-base")}"
|
|
@@ -2881,7 +2910,7 @@ body {
|
|
|
2881
2910
|
<slot></slot>
|
|
2882
2911
|
<!-- Render children without comments -->
|
|
2883
2912
|
</label>
|
|
2884
|
-
`}},o.Label.labelVariants=
|
|
2913
|
+
`}},o.Label.labelVariants=_o,o.Label.styles=[d.css`
|
|
2885
2914
|
:root {
|
|
2886
2915
|
--label-text-color: inherit;
|
|
2887
2916
|
--label-padding: inherit;
|
|
@@ -2890,7 +2919,7 @@ body {
|
|
|
2890
2919
|
color: var(--label-text-color) !important;
|
|
2891
2920
|
padding: var(--label-padding) !important;
|
|
2892
2921
|
}
|
|
2893
|
-
`],
|
|
2922
|
+
`],Er([l.property({type:String})],o.Label.prototype,"for",2),o.Label=Er([l.customElement("rtg-label")],o.Label);const $o="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",Oo="rtg-flex rtg-items-center rtg-justify-center rtg-text-current rtg-pointer-events-none";var So=Object.defineProperty,Po=Object.getOwnPropertyDescriptor,Me=(a,e,r,n)=>{for(var t=n>1?void 0:n?Po(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&So(e,r,t),t};o.Checkbox=class extends d.LitElement{constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.type="text",this.value="",this.required=!1}_onClick(e){e.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`
|
|
2894
2923
|
<button
|
|
2895
2924
|
part="checkbox"
|
|
2896
2925
|
data-testid="checkbox-atom"
|
|
@@ -2902,9 +2931,9 @@ body {
|
|
|
2902
2931
|
?required=${this.required}
|
|
2903
2932
|
?disabled=${this.disabled}
|
|
2904
2933
|
@click="${this._onClick}"
|
|
2905
|
-
class="${p(
|
|
2934
|
+
class="${p($o,this.className)}"
|
|
2906
2935
|
>
|
|
2907
|
-
${this.checked||this.value==="on"?d.html`<span data-state="checked" class="${
|
|
2936
|
+
${this.checked||this.value==="on"?d.html`<span data-state="checked" class="${Oo}"
|
|
2908
2937
|
><svg
|
|
2909
2938
|
xmlns="http://www.w3.org/2000/svg"
|
|
2910
2939
|
width="24"
|
|
@@ -2920,40 +2949,40 @@ body {
|
|
|
2920
2949
|
<polyline points="20 6 9 17 4 12"></polyline></svg
|
|
2921
2950
|
></span>`:d.nothing}
|
|
2922
2951
|
</button>
|
|
2923
|
-
`}},
|
|
2952
|
+
`}},Me([l.property({type:Boolean})],o.Checkbox.prototype,"disabled",2),Me([l.property({type:Boolean})],o.Checkbox.prototype,"checked",2),Me([l.property({type:String})],o.Checkbox.prototype,"type",2),Me([l.property({type:String})],o.Checkbox.prototype,"value",2),Me([l.property({type:Boolean})],o.Checkbox.prototype,"required",2),o.Checkbox=Me([l.customElement("rtg-checkbox")],o.Checkbox);const Do="rtg-relative rtg-flex rtg-h-10 rtg-w-10 rtg-shrink-0 rtg-overflow-hidden rtg-rounded-full",Ro="rtg-aspect-square rtg-w-10 rtg-h-10 rtg-rounded-full",Io="rtg-flex rtg-h-full rtg-w-full rtg-items-center rtg-justify-center rtg-rounded-full rtg-bg-muted";var ko=Object.getOwnPropertyDescriptor,To=(a,e,r,n)=>{for(var t=n>1?void 0:n?ko(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.AvatarFallback=class extends d.LitElement{createRenderRoot(){return this}render(){return d.html`
|
|
2924
2953
|
<span
|
|
2925
|
-
class="${p(
|
|
2954
|
+
class="${p(Io,this.className)}"
|
|
2926
2955
|
style="width:40px;height:40px"
|
|
2927
2956
|
part="avatar-fallback"
|
|
2928
2957
|
>
|
|
2929
2958
|
<slot></slot>
|
|
2930
2959
|
</span>
|
|
2931
|
-
`}},o.AvatarFallback=
|
|
2960
|
+
`}},o.AvatarFallback=To([l.customElement("rtg-avatar-fallback")],o.AvatarFallback);var Mo=Object.defineProperty,Ao=Object.getOwnPropertyDescriptor,Pt=(a,e,r,n)=>{for(var t=n>1?void 0:n?Ao(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Mo(e,r,t),t};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`
|
|
2932
2961
|
<img
|
|
2933
|
-
class="${p(
|
|
2962
|
+
class="${p(Ro,this.className)}"
|
|
2934
2963
|
alt="${this.alt}"
|
|
2935
2964
|
src="${this.src}"
|
|
2936
2965
|
part="avatar-image"
|
|
2937
2966
|
>
|
|
2938
2967
|
<slot></slot>
|
|
2939
2968
|
</img>
|
|
2940
|
-
`}},
|
|
2941
|
-
<span class="${p(
|
|
2969
|
+
`}},Pt([l.property({type:String})],o.AvatarImage.prototype,"alt",2),Pt([l.property({type:String})],o.AvatarImage.prototype,"src",2),o.AvatarImage=Pt([l.customElement("rtg-avatar-image")],o.AvatarImage);var Lo=Object.getOwnPropertyDescriptor,No=(a,e,r,n)=>{for(var t=n>1?void 0:n?Lo(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.Avatar=class extends d.LitElement{createRenderRoot(){return this}render(){return d.html`
|
|
2970
|
+
<span class="${p(Do,this.className)}" part="avatar">
|
|
2942
2971
|
<slot></slot>
|
|
2943
2972
|
</span>
|
|
2944
|
-
`}},o.Avatar=
|
|
2973
|
+
`}},o.Avatar=No([l.customElement("rtg-avatar")],o.Avatar);const Bo="rtg-relative rtg-w-full rtg-overflow-hidden rtg-bg-muted";var qo=Object.defineProperty,Uo=Object.getOwnPropertyDescriptor,xr=(a,e,r,n)=>{for(var t=n>1?void 0:n?Uo(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&qo(e,r,t),t};o.AspectRatio=class extends d.LitElement{constructor(){super(...arguments),this.ratio=16/9,this._children=[]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._children=Array.from(this.childNodes)}render(){const e=1/this.ratio*100;return d.html`
|
|
2945
2974
|
<div
|
|
2946
|
-
class="${p(
|
|
2947
|
-
style="padding-top: ${
|
|
2975
|
+
class="${p(Bo,this.className)}"
|
|
2976
|
+
style="padding-top: ${e}%;"
|
|
2948
2977
|
part="aspect-ratio"
|
|
2949
2978
|
>
|
|
2950
2979
|
<div class="rtg-absolute rtg-left-0 rtg-top-0 rtg-h-full rtg-w-full">
|
|
2951
2980
|
${this._children}
|
|
2952
2981
|
</div>
|
|
2953
2982
|
</div>
|
|
2954
|
-
`}},xr([l.property({type:Number})],o.AspectRatio.prototype,"ratio",2),o.AspectRatio=xr([l.customElement("rtg-aspect-ratio")],o.AspectRatio);const
|
|
2983
|
+
`}},xr([l.property({type:Number})],o.AspectRatio.prototype,"ratio",2),o.AspectRatio=xr([l.customElement("rtg-aspect-ratio")],o.AspectRatio);const zo=Q("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 Fo=Object.defineProperty,Go=Object.getOwnPropertyDescriptor,Dt=(a,e,r,n)=>{for(var t=n>1?void 0:n?Go(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Fo(e,r,t),t};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 e=this.getFilteredAttributes();return d.html`
|
|
2955
2984
|
<div
|
|
2956
|
-
${
|
|
2985
|
+
${V(e)}
|
|
2957
2986
|
id="${this.id}"
|
|
2958
2987
|
part="badge"
|
|
2959
2988
|
data-testid="badge-content"
|
|
@@ -2961,23 +2990,23 @@ body {
|
|
|
2961
2990
|
>
|
|
2962
2991
|
${this._children}
|
|
2963
2992
|
</div>
|
|
2964
|
-
`}},o.Badge.badgeVariants=
|
|
2993
|
+
`}},o.Badge.badgeVariants=zo,Dt([l.property({type:String})],o.Badge.prototype,"variant",2),Dt([l.property({type:String})],o.Badge.prototype,"id",2),o.Badge=Dt([l.customElement("rtg-badge")],o.Badge);const $r=Q("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 Vo=Object.defineProperty,Ho=Object.getOwnPropertyDescriptor,Xe=(a,e,r,n)=>{for(var t=n>1?void 0:n?Ho(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Vo(e,r,t),t};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 $r({variant:this.variant,size:this.size})}render(){return d.html`
|
|
2965
2994
|
<div class="${p(this.alertClasses,this.className)}" role="alert">
|
|
2966
2995
|
${this.title?d.html`<div class="rtg-mb-2 rtg-font-bold" part="alert-title">
|
|
2967
2996
|
${this.title}
|
|
2968
2997
|
</div>`:""}
|
|
2969
2998
|
${this.message?d.html`<div part="alert-description">${this.message}</div>`:""}
|
|
2970
2999
|
</div>
|
|
2971
|
-
`}},o.Alert.alertVariants
|
|
3000
|
+
`}},o.Alert.alertVariants=$r,Xe([l.property({type:String})],o.Alert.prototype,"title",2),Xe([l.property({type:String})],o.Alert.prototype,"message",2),Xe([l.property({type:String})],o.Alert.prototype,"variant",2),Xe([l.property({type:String})],o.Alert.prototype,"size",2),o.Alert=Xe([l.customElement("rtg-alert")],o.Alert);const Yo=Q("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"}}),Ko=Q("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-9 rtg-rounded-md rtg-px-4 rtg-py-2 rtg-has-[>svg]:px-3",sm:"rtg-h-8 rtg-rounded-md rtg-px-3 rtg-text-xs rtg-has-[>svg]:px-2.5",lg:"rtg-h-10 rtg-rounded-md rtg-px-6 rtg-has-[>svg]:px-4",icon:"rtg-h-9 rtg-w-9"}},defaultVariants:{variant:"default",size:"default"}});var Wo=Object.defineProperty,jo=Object.getOwnPropertyDescriptor,_e=(a,e,r,n)=>{for(var t=n>1?void 0:n?jo(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Wo(e,r,t),t};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 e=this.getFilteredAttributes();return d.html`
|
|
2972
3001
|
<button
|
|
2973
3002
|
part="button"
|
|
2974
3003
|
type="${this.type}"
|
|
2975
|
-
${
|
|
3004
|
+
${V(e)}
|
|
2976
3005
|
?disabled="${this.disabled}"
|
|
2977
3006
|
class="${p(o.Button.buttonVariants({variant:this.variant,size:this.size,className:this.customClass}))}"
|
|
2978
3007
|
@click="${this.handleClick}"
|
|
2979
3008
|
></button>
|
|
2980
|
-
`}},o.Button.buttonVariants=
|
|
3009
|
+
`}},o.Button.buttonVariants=Ko,_e([l.property({type:Function})],o.Button.prototype,"click",2),_e([l.property({type:Boolean})],o.Button.prototype,"disabled",2),_e([l.property({type:String})],o.Button.prototype,"type",2),_e([l.property({type:String})],o.Button.prototype,"variant",2),_e([l.property({type:String})],o.Button.prototype,"size",2),_e([l.query("button")],o.Button.prototype,"buttonElement",2),o.Button=_e([l.customElement("rtg-button")],o.Button);var Xo=Object.defineProperty,Zo=Object.getOwnPropertyDescriptor,ve=(a,e,r,n)=>{for(var t=n>1?void 0:n?Zo(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Xo(e,r,t),t};o.Calendar=class extends d.LitElement{constructor(){super(...arguments),this.currentDate=new Date,this.selectedStartDate=null,this.selectedEndDate=null,this.variant="outline",this.size="default",this.styleCalendar=!1,this.mode="single"}getDaysInMonth(e,r){return new Date(e,r+1,0).getDate()}previousMonth(){this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth()-1)}nextMonth(){this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth()+1)}selectDate(e,r){if(!r){const n=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth(),e);n.getMonth()===this.currentDate.getMonth()&&(this.mode==="single"?(this.selectedStartDate=n,this.selectedEndDate=null):this.mode==="range"&&(!this.selectedStartDate||this.selectedEndDate?(this.selectedStartDate=n,this.selectedEndDate=null):n>=this.selectedStartDate?this.selectedEndDate=n:(this.selectedEndDate=this.selectedStartDate,this.selectedStartDate=n)),this.dispatchEvent(new CustomEvent("date-selected",{detail:{startDate:this.selectedStartDate,endDate:this.selectedEndDate},bubbles:!0,composed:!0})))}}isDayInRange(e){return!this.selectedStartDate||!this.selectedEndDate||e.getMonth()!==this.currentDate.getMonth()?!1:e>=this.selectedStartDate&&e<=this.selectedEndDate}createRenderRoot(){return this}render(){const e=this.currentDate.getFullYear(),r=this.currentDate.getMonth(),n=this.getDaysInMonth(e,r),t=new Date(e,r,1).getDay(),i=new Date(e,r,0).getDate();let s=Array.from({length:t},(m,C)=>({day:(i-(t-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`
|
|
2981
3010
|
<div
|
|
2982
3011
|
part="calendar"
|
|
2983
3012
|
style="
|
|
@@ -3064,18 +3093,18 @@ body {
|
|
|
3064
3093
|
<tbody class="rdp-tbody">
|
|
3065
3094
|
${Array.from({length:Math.ceil(s.length/7)},(m,C)=>d.html`
|
|
3066
3095
|
<tr class="rtg-mt-2 rtg-flex rtg-w-full">
|
|
3067
|
-
${s.slice(C*7,(C+1)*7).map(b=>{const w=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth(),Number(b.day)),
|
|
3096
|
+
${s.slice(C*7,(C+1)*7).map(b=>{const w=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth(),Number(b.day)),x=this.selectedStartDate&&w.toDateString()===this.selectedStartDate.toDateString(),N=this.selectedEndDate&&w.toDateString()===this.selectedEndDate.toDateString(),F=this.isDayInRange(w);return d.html`
|
|
3068
3097
|
<td
|
|
3069
|
-
class="${p("rtg-relative rtg-p-0 rtg-text-center rtg-text-sm focus-within:rtg-relative focus-within:rtg-z-20",
|
|
3098
|
+
class="${p("rtg-relative rtg-p-0 rtg-text-center rtg-text-sm focus-within:rtg-relative focus-within:rtg-z-20",x&&b.isCurrentMonth&&"day-range-start",N&&b.isCurrentMonth&&"day-range-end",F&&b.isCurrentMonth&&"day-in-range bg-muted")}"
|
|
3070
3099
|
role="presentation"
|
|
3071
3100
|
>
|
|
3072
3101
|
<button
|
|
3073
3102
|
name="day"
|
|
3074
|
-
class="${p("rtg-flex rtg-justify-center rtg-items-center rtg-rounded rtg-cursor-pointer rtg-transition-colors rtg-duration-300 rtg-ease-in-out rtg-h-8 rtg-w-8 rtg-font-normal rtg-text-sm rtg-text-accent-foreground hover:rtg-bg-accent hover:rtg-text-muted-foreground",b.isInactive&&"hover:rtg-bg-primary rtg-text-muted-foreground",(
|
|
3103
|
+
class="${p("rtg-flex rtg-justify-center rtg-items-center rtg-rounded rtg-cursor-pointer rtg-transition-colors rtg-duration-300 rtg-ease-in-out rtg-h-8 rtg-w-8 rtg-font-normal rtg-text-sm rtg-text-accent-foreground hover:rtg-bg-accent hover:rtg-text-muted-foreground",b.isInactive&&"hover:rtg-bg-primary rtg-text-muted-foreground",(x||N)&&b.isCurrentMonth&&"rtg-bg-primary rtg-text-primary-foreground rtg-opacity-100 hover:rtg-bg-primary hover:rtg-text-primary-foreground focus:rtg-bg-primary focus:rtg-text-primary-foreground")}"
|
|
3075
3104
|
role="gridcell"
|
|
3076
3105
|
tabindex="-1"
|
|
3077
3106
|
type="button"
|
|
3078
|
-
aria-selected="${Ln.ifDefined((
|
|
3107
|
+
aria-selected="${Ln.ifDefined((x||N)&&b.isCurrentMonth?"true":void 0)}"
|
|
3079
3108
|
@click="${()=>this.selectDate(Number(b.day),b.isInactive)}"
|
|
3080
3109
|
>
|
|
3081
3110
|
${b.day}
|
|
@@ -3136,26 +3165,26 @@ body {
|
|
|
3136
3165
|
.text-day {
|
|
3137
3166
|
font-size: 0.8rem;
|
|
3138
3167
|
}
|
|
3139
|
-
`],o.Calendar.buttonVariants=
|
|
3168
|
+
`],o.Calendar.buttonVariants=Yo,ve([l.property({type:Object})],o.Calendar.prototype,"currentDate",2),ve([l.property({type:Object})],o.Calendar.prototype,"selectedStartDate",2),ve([l.property({type:Object})],o.Calendar.prototype,"selectedEndDate",2),ve([l.property({type:String})],o.Calendar.prototype,"variant",2),ve([l.property({type:String})],o.Calendar.prototype,"size",2),ve([l.property({type:Boolean})],o.Calendar.prototype,"styleCalendar",2),ve([l.property({type:String})],o.Calendar.prototype,"mode",2),o.Calendar=ve([l.customElement("rtg-calendar")],o.Calendar);const Qo=Q("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"}}),Jo=Q("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 ea=Object.defineProperty,ta=Object.getOwnPropertyDescriptor,Ze=(a,e,r,n)=>{for(var t=n>1?void 0:n?ta(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&ea(e,r,t),t};o.PopoverContent=class extends h{constructor(){super(...arguments),this.enableDefaultStyle=!0,this.styleContent=!0,this.side="bottom",this.isOpen=!1}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof o.Popover);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=popover-content]")}handleClickOutside(e){const r=this._popover;r&&!r.contains(e.target)&&(r.isOpen=!1)}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement),window.addEventListener("click",this.handleClickOutside.bind(this))}updated(e){var r;(r=this._popover)!=null&&r.isOpen||window.removeEventListener("click",this.handleClickOutside.bind(this))}preventClickPropagation(e){e.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 e=this.enableDefaultStyle?Qo({state:"open",side:this.side,styleContent:this.styleContent}):Jo({state:"open",side:this.side});return d.html`
|
|
3140
3169
|
<div
|
|
3141
3170
|
@click="${this.preventClickPropagation}"
|
|
3142
3171
|
part="popover-content"
|
|
3143
|
-
class="${p(
|
|
3172
|
+
class="${p(e)}"
|
|
3144
3173
|
style="top:36px"
|
|
3145
3174
|
></div>
|
|
3146
|
-
`}},
|
|
3175
|
+
`}},Ze([l.property({type:Boolean})],o.PopoverContent.prototype,"enableDefaultStyle",2),Ze([l.property({type:Boolean})],o.PopoverContent.prototype,"styleContent",2),Ze([l.property({type:String})],o.PopoverContent.prototype,"side",2),Ze([l.state()],o.PopoverContent.prototype,"isOpen",2),o.PopoverContent=Ze([l.customElement("rtg-popover-content")],o.PopoverContent);var ra=Object.getOwnPropertyDescriptor,na=(a,e,r,n)=>{for(var t=n>1?void 0:n?ra(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.PopoverTrigger=class extends h{constructor(){super(...arguments),this.handleClick=()=>{const e=this._popover;e&&(e.isOpen=!e.isOpen)}}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof o.Popover);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=popover-trigger]")}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),this.addEventListener("click",r=>{this.handleClick(),r.stopPropagation()})}createRenderRoot(){return this}getAttributesToExclude(){return["data-testid"]}render(){return d.html`
|
|
3147
3176
|
<div
|
|
3148
3177
|
class="${p("",this.className)}"
|
|
3149
3178
|
part="popover-trigger"
|
|
3150
3179
|
style="width: fit-content;"
|
|
3151
3180
|
></div>
|
|
3152
|
-
`}},o.PopoverTrigger=
|
|
3181
|
+
`}},o.PopoverTrigger=na([l.customElement("rtg-popover-trigger")],o.PopoverTrigger);var oa=Object.defineProperty,aa=Object.getOwnPropertyDescriptor,Or=(a,e,r,n)=>{for(var t=n>1?void 0:n?aa(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&oa(e,r,t),t};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(e){this.moveLightDomChildrenInto(this._containerElement)}updated(e){this._contentElement.isOpen=this.isOpen,this._contentElement.requestUpdate()}render(){return d.html`
|
|
3153
3182
|
<div
|
|
3154
3183
|
class="${p("",this.className)}"
|
|
3155
3184
|
part="popover"
|
|
3156
3185
|
style="position:relative"
|
|
3157
3186
|
></div>
|
|
3158
|
-
`}}
|
|
3187
|
+
`}},Or([l.state()],o.Popover.prototype,"isOpen",2),o.Popover=Or([l.customElement("rtg-popover")],o.Popover);var ia=Object.defineProperty,sa=Object.getOwnPropertyDescriptor,Sr=(a,e,r,n)=>{for(var t=n>1?void 0:n?sa(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&ia(e,r,t),t};o.DatePicker=class extends d.LitElement{constructor(){super(...arguments),this.selectedDate=null}handleDateSelected(e){this.selectedDate=e.detail.startDate,this.requestUpdate()}createRenderRoot(){return this}render(){return d.html`
|
|
3159
3188
|
<div
|
|
3160
3189
|
part="date-picker"
|
|
3161
3190
|
class="${p("",this.className)}"
|
|
@@ -3187,7 +3216,7 @@ body {
|
|
|
3187
3216
|
<path d="M3 10h18"></path>
|
|
3188
3217
|
</svg>
|
|
3189
3218
|
<span style="margin-left:8px">
|
|
3190
|
-
${this.selectedDate?this.selectedDate.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}).replace(/(\d+)/,(
|
|
3219
|
+
${this.selectedDate?this.selectedDate.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}).replace(/(\d+)/,(e,r)=>{const n=parseInt(r,10);return n+(n>3?"th":["st","nd","rd"][n-1]||"th")}):"Pick a date"}
|
|
3191
3220
|
</span>
|
|
3192
3221
|
</rtg-button>
|
|
3193
3222
|
</rtg-popover-trigger>
|
|
@@ -3206,9 +3235,9 @@ body {
|
|
|
3206
3235
|
</rtg-popover-content>
|
|
3207
3236
|
</rtg-popover>
|
|
3208
3237
|
</div>
|
|
3209
|
-
`}},
|
|
3238
|
+
`}},Sr([l.property({type:Object})],o.DatePicker.prototype,"selectedDate",2),o.DatePicker=Sr([l.customElement("rtg-date-picker")],o.DatePicker);var Ee=(a=>(a.MULTIPLE="multiple",a.SINGLE="single",a))(Ee||{}),la=Object.defineProperty,ca=Object.getOwnPropertyDescriptor,Rt=(a,e,r,n)=>{for(var t=n>1?void 0:n?ca(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&la(e,r,t),t};o.AccordionItem=class extends h{constructor(){super(...arguments),this.value="",this.tabindex=0,this._initialChildren=[],this._onClick=e=>{const r=e.target.closest("rtg-accordion-trigger");!r||!this._accordion||(e.preventDefault(),e.stopPropagation(),this._accordion.raiseEvent(this.value),r.requestUpdate(),setTimeout(()=>this.requestUpdate(),0))},this._onAccordionClick=()=>{this.requestUpdate()}}get _accordion(){let e=this.parentElement;for(;e&&!(e instanceof o.Accordion);)e=e.parentElement;return e}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}createRenderRoot(){return this}connectedCallback(){var e;super.connectedCallback(),this._initialChildren=this.filterChildren(),this.addEventListener("click",this._onClick),(e=this._accordion)==null||e.addEventListener("clicked-accordion",this._onAccordionClick)}disconnectedCallback(){var e;super.disconnectedCallback(),this.removeEventListener("click",this._onClick),(e=this._accordion)==null||e.removeEventListener("clicked-accordion",this._onAccordionClick)}filterChildren(){return Array.from(this.children).filter(e=>e instanceof o.AccordionTrigger||e instanceof o.AccordionContent)}render(){var n;const e=(n=this._accordion)==null?void 0:n.selectedItems.includes(this.value),r=this._initialChildren.length?this._initialChildren:this.filterChildren();return d.html`
|
|
3210
3239
|
<div
|
|
3211
|
-
data-state=${
|
|
3240
|
+
data-state=${e?"open":"closed"}
|
|
3212
3241
|
class="${p("rtg-w-full rtg-border-b",this.className)}"
|
|
3213
3242
|
value=${this.value}
|
|
3214
3243
|
role="tablist"
|
|
@@ -3217,7 +3246,7 @@ body {
|
|
|
3217
3246
|
>
|
|
3218
3247
|
${r}
|
|
3219
3248
|
</div>
|
|
3220
|
-
`}},
|
|
3249
|
+
`}},Rt([l.property({type:String})],o.AccordionItem.prototype,"value",2),Rt([l.property({type:Number})],o.AccordionItem.prototype,"tabindex",2),o.AccordionItem=Rt([l.customElement("rtg-accordion-item")],o.AccordionItem);function da(){return d.svg` <svg
|
|
3221
3250
|
class="shrink-0 size-3.5 text-gray-500 dark:text-neutral-500"
|
|
3222
3251
|
xmlns="http://www.w3.org/2000/svg"
|
|
3223
3252
|
width="24"
|
|
@@ -3232,7 +3261,7 @@ body {
|
|
|
3232
3261
|
<path d="m7 15 5 5 5-5"></path>
|
|
3233
3262
|
<path d="m7 9 5-5 5 5"></path>
|
|
3234
3263
|
</svg>
|
|
3235
|
-
`}function
|
|
3264
|
+
`}function Pr(){return d.svg`
|
|
3236
3265
|
<svg
|
|
3237
3266
|
class="rtg-shrink-0 rtg-size-3.5 rtg-text-blue-600 dark:rtg-text-blue-500"
|
|
3238
3267
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -3247,7 +3276,7 @@ body {
|
|
|
3247
3276
|
>
|
|
3248
3277
|
<path d="M20 6 9 17l-5-5"></path>
|
|
3249
3278
|
</svg>
|
|
3250
|
-
`}function
|
|
3279
|
+
`}function ua(){return d.svg` <svg
|
|
3251
3280
|
xmlns="http://www.w3.org/2000/svg"
|
|
3252
3281
|
width = "24"
|
|
3253
3282
|
height = "24"
|
|
@@ -3261,7 +3290,7 @@ body {
|
|
|
3261
3290
|
<circle cx="11" cy = "11" r = "8" > </circle>
|
|
3262
3291
|
<path d="m21 21-4.3-4.3"></path >
|
|
3263
3292
|
</svg>
|
|
3264
|
-
`}function
|
|
3293
|
+
`}function It(){return d.svg` <svg
|
|
3265
3294
|
xmlns="http://www.w3.org/2000/svg"
|
|
3266
3295
|
width="24"
|
|
3267
3296
|
height="24"
|
|
@@ -3275,8 +3304,8 @@ body {
|
|
|
3275
3304
|
>
|
|
3276
3305
|
<circle cx="12" cy="12" r="10"></circle>
|
|
3277
3306
|
</svg>
|
|
3278
|
-
`}function
|
|
3279
|
-
`}function
|
|
3307
|
+
`}function Dr(){return d.svg` <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down rtg-h-4 rtg-w-4 rtg-shrink-0 rtg-transition-transform rtg-duration-200"><path d="m6 9 6 6 6-6"></path></svg>
|
|
3308
|
+
`}function ga(){return d.svg` <svg
|
|
3280
3309
|
xmlns="http://www.w3.org/2000/svg"
|
|
3281
3310
|
width="24"
|
|
3282
3311
|
height="24"
|
|
@@ -3290,7 +3319,7 @@ body {
|
|
|
3290
3319
|
>
|
|
3291
3320
|
<circle cx="12" cy="12" r="10"></circle></svg
|
|
3292
3321
|
>
|
|
3293
|
-
`}function
|
|
3322
|
+
`}function pa(){return d.svg` <svg
|
|
3294
3323
|
xmlns="http://www.w3.org/2000/svg"
|
|
3295
3324
|
width="24"
|
|
3296
3325
|
height="24"
|
|
@@ -3305,9 +3334,9 @@ body {
|
|
|
3305
3334
|
<path d="M18 6 6 18"></path>
|
|
3306
3335
|
<path d="m6 6 12 12"></path>
|
|
3307
3336
|
</svg>
|
|
3308
|
-
`}function
|
|
3337
|
+
`}function ha(){return d.svg`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-dot">
|
|
3309
3338
|
<circle cx="12.1" cy="12.1" r="1"></circle>
|
|
3310
|
-
</svg>`}function
|
|
3339
|
+
</svg>`}function ma(){return d.svg`
|
|
3311
3340
|
<svg
|
|
3312
3341
|
xmlns="http://www.w3.org/2000/svg"
|
|
3313
3342
|
width="24"
|
|
@@ -3323,7 +3352,7 @@ body {
|
|
|
3323
3352
|
<path d="m12 19-7-7 7-7"></path>
|
|
3324
3353
|
<path d="M19 12H5"></path>
|
|
3325
3354
|
</svg>
|
|
3326
|
-
`}function
|
|
3355
|
+
`}function va(){return d.svg`
|
|
3327
3356
|
<svg
|
|
3328
3357
|
xmlns="http://www.w3.org/2000/svg"
|
|
3329
3358
|
width="24"
|
|
@@ -3339,29 +3368,29 @@ body {
|
|
|
3339
3368
|
<path d="M5 12h14"></path>
|
|
3340
3369
|
<path d="m12 5 7 7-7 7"></path>
|
|
3341
3370
|
</svg>
|
|
3342
|
-
`}var
|
|
3371
|
+
`}var fa=Object.getOwnPropertyDescriptor,ba=(a,e,r,n)=>{for(var t=n>1?void 0:n?fa(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.AccordionTrigger=class extends h{get _item(){let e=this.parentElement;for(;e&&!(e instanceof o.AccordionItem);)e=e.parentElement;return e}get _accordion(){let e=this.parentElement;for(;e&&!(e instanceof o.Accordion);)e=e.parentElement;return e}getAttributesToExclude(){return["value","defaultValue"]}createRenderRoot(){return this}firstUpdated(e){this.removeDuplicateContent()}hasActiveState(){var e,r;return!!((e=this._item)!=null&&e.value)&&!!((r=this._accordion)!=null&&r.selectedItems.includes(this._item.value))}render(){var r;const e=this.hasActiveState();return d.html`
|
|
3343
3372
|
<button
|
|
3344
3373
|
type="button"
|
|
3345
3374
|
part="accordion-trigger"
|
|
3346
3375
|
role="tab"
|
|
3347
3376
|
value=${((r=this._item)==null?void 0:r.value)||""}
|
|
3348
|
-
aria-selected=${
|
|
3349
|
-
aria-expanded=${
|
|
3350
|
-
data-state=${
|
|
3377
|
+
aria-selected=${e}
|
|
3378
|
+
aria-expanded=${e}
|
|
3379
|
+
data-state=${e?"open":"closed"}
|
|
3351
3380
|
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)}"
|
|
3352
3381
|
tabindex="-1"
|
|
3353
3382
|
data-orientation="horizontal"
|
|
3354
3383
|
data-radix-collection-item
|
|
3355
3384
|
>
|
|
3356
|
-
${
|
|
3385
|
+
${ir.unsafeHTML(this.textContent||"")}${Dr()}
|
|
3357
3386
|
</button>
|
|
3358
|
-
`}},o.AccordionTrigger=
|
|
3387
|
+
`}},o.AccordionTrigger=ba([l.customElement("rtg-accordion-trigger")],o.AccordionTrigger);var ya=Object.getOwnPropertyDescriptor,wa=(a,e,r,n)=>{for(var t=n>1?void 0:n?ya(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.AccordionContent=class extends h{constructor(){super(...arguments),this._onAccordionClick=()=>{this.requestUpdate()}}get _accordion(){let e=this.parentElement;for(;e&&!(e instanceof o.Accordion);)e=e.parentElement;return e}get _item(){let e=this.parentElement;for(;e&&!(e instanceof o.AccordionItem);)e=e.parentElement;return e}getAttributesToExclude(){return[]}createRenderRoot(){return this}connectedCallback(){var e;super.connectedCallback(),(e=this._accordion)==null||e.addEventListener("clicked-accordion",this._onAccordionClick)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._accordion)==null||e.removeEventListener("clicked-accordion",this._onAccordionClick)}firstUpdated(e){this.removeDuplicateContent()}hasActiveState(){var e,r;return!!((e=this._item)!=null&&e.value)&&!!((r=this._accordion)!=null&&r.selectedItems.includes(this._item.value))}render(){var r;const e=this.hasActiveState();return d.html`
|
|
3359
3388
|
<div
|
|
3360
3389
|
part="accordion-content"
|
|
3361
3390
|
role="region"
|
|
3362
|
-
data-state=${
|
|
3391
|
+
data-state=${e?"open":"closed"}
|
|
3363
3392
|
data-orientation="vertical"
|
|
3364
|
-
class="${p(
|
|
3393
|
+
class="${p(e?"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)}"
|
|
3365
3394
|
style=${`
|
|
3366
3395
|
--radix-accordion-content-height: 36px;
|
|
3367
3396
|
--radix-collapsible-content-height: 36px;
|
|
@@ -3371,19 +3400,19 @@ body {
|
|
|
3371
3400
|
@click=${n=>n.stopPropagation()}
|
|
3372
3401
|
>
|
|
3373
3402
|
<div class="rtg-pb-4 rtg-pt-0">
|
|
3374
|
-
${
|
|
3403
|
+
${ir.unsafeHTML(((r=this.textContent)==null?void 0:r.trim())||"")}
|
|
3375
3404
|
</div>
|
|
3376
3405
|
</div>
|
|
3377
|
-
`}},o.AccordionContent=
|
|
3406
|
+
`}},o.AccordionContent=wa([l.customElement("rtg-accordion-content")],o.AccordionContent);var Ca=Object.defineProperty,_a=Object.getOwnPropertyDescriptor,Rr=(a,e,r,n)=>{for(var t=n>1?void 0:n?_a(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Ca(e,r,t),t};o.Accordion=class extends h{constructor(){super(...arguments),this.type=Ee.MULTIPLE,this.selectedItems=[],this._initialChildren=[]}getAttributesToExclude(){return["variant","data-testid"]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._initialChildren=Array.from(this.children).filter(e=>e instanceof o.AccordionItem)}willUpdate(e){e.has("type")&&(this.type===Ee.SINGLE&&this.selectedItems.length>1&&(this.selectedItems=this.selectedItems.slice(0,1)),this._initialChildren.forEach(r=>{r instanceof o.AccordionItem&&r.requestUpdate()}))}updated(e){e.has("type")&&this._initialChildren.forEach(r=>{r instanceof o.AccordionItem&&r.requestUpdate()})}setSelectedItems(e){const r=this.selectedItems.indexOf(e);if(r>-1)if(this.type===Ee.SINGLE)this.selectedItems=[];else if(this.type===Ee.MULTIPLE)this.selectedItems.splice(r,1);else throw new Error("Invalid accordion type");else if(this.type===Ee.SINGLE)this.selectedItems=[e];else if(this.type===Ee.MULTIPLE)this.selectedItems.push(e);else throw new Error("Invalid accordion type")}raiseEvent(e){this.setSelectedItems(e),this.dispatchEvent(new CustomEvent("clicked-accordion",{bubbles:!0,composed:!0,detail:{selectedItems:this.selectedItems}}))}render(){const e=this._initialChildren.length?this._initialChildren:Array.from(this.children).filter(r=>r instanceof o.AccordionItem);return d.html`
|
|
3378
3407
|
<div
|
|
3379
3408
|
data-orientation="vertical"
|
|
3380
|
-
${
|
|
3409
|
+
${V(this.getFilteredAttributes())}
|
|
3381
3410
|
part="accordion"
|
|
3382
3411
|
class="${p("rtg-w-full",this.className)}"
|
|
3383
3412
|
>
|
|
3384
|
-
${
|
|
3413
|
+
${e}
|
|
3385
3414
|
</div>
|
|
3386
|
-
`}},
|
|
3415
|
+
`}},Rr([l.property({type:String})],o.Accordion.prototype,"type",2),o.Accordion=Rr([l.customElement("rtg-accordion")],o.Accordion);const Ea="rtg-relative rtg-h-2 rtg-overflow-hidden rtg-rounded-full rtg-w-[100%]";var xa=Object.defineProperty,$a=Object.getOwnPropertyDescriptor,Ir=(a,e,r,n)=>{for(var t=n>1?void 0:n?$a(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&xa(e,r,t),t};o.Progress=class extends d.LitElement{constructor(){super(...arguments),this.value=15}createRenderRoot(){return this}render(){return d.html`
|
|
3387
3416
|
<div
|
|
3388
3417
|
part="progress"
|
|
3389
3418
|
aria-valuenow="${this.value}"
|
|
@@ -3392,7 +3421,7 @@ body {
|
|
|
3392
3421
|
role="progressbar"
|
|
3393
3422
|
data-state="indeterminate"
|
|
3394
3423
|
data-max="100"
|
|
3395
|
-
class="${p(
|
|
3424
|
+
class="${p(Ea,this.className)}"
|
|
3396
3425
|
style="background-color:#ccc;"
|
|
3397
3426
|
>
|
|
3398
3427
|
<div
|
|
@@ -3407,11 +3436,11 @@ body {
|
|
|
3407
3436
|
height: 100%;
|
|
3408
3437
|
transition: width 0.5s ease-in-out;
|
|
3409
3438
|
}
|
|
3410
|
-
`],
|
|
3439
|
+
`],Ir([l.property({type:Number})],o.Progress.prototype,"value",2),o.Progress=Ir([l.customElement("rtg-progress")],o.Progress);var Oa=Object.getOwnPropertyDescriptor,Sa=(a,e,r,n)=>{for(var t=n>1?void 0:n?Oa(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.CardTitle=class extends d.LitElement{createRenderRoot(){return this}render(){return d.html` <slot part="card-title"></slot> `}},o.CardTitle=Sa([l.customElement("rtg-card-title")],o.CardTitle);var Pa=Object.getOwnPropertyDescriptor,Da=(a,e,r,n)=>{for(var t=n>1?void 0:n?Pa(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.CardHeader=class extends d.LitElement{createRenderRoot(){return this}render(){return d.html` <slot part="card-header"></slot> `}},o.CardHeader=Da([l.customElement("rtg-card-header")],o.CardHeader);var Ra=Object.getOwnPropertyDescriptor,Ia=(a,e,r,n)=>{for(var t=n>1?void 0:n?Ra(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.CardFooter=class extends d.LitElement{createRenderRoot(){return this}render(){return d.html` <slot part="card-footer"></slot> `}},o.CardFooter=Ia([l.customElement("rtg-card-footer")],o.CardFooter);var ka=Object.getOwnPropertyDescriptor,Ta=(a,e,r,n)=>{for(var t=n>1?void 0:n?ka(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.CardDescription=class extends d.LitElement{createRenderRoot(){return this}render(){return d.html` <slot part="card-description"></slot> `}},o.CardDescription=Ta([l.customElement("rtg-card-description")],o.CardDescription);var Ma=Object.getOwnPropertyDescriptor,Aa=(a,e,r,n)=>{for(var t=n>1?void 0:n?Ma(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.CardContent=class extends d.LitElement{createRenderRoot(){return this}render(){return d.html` <slot part="card-content"></slot> `}},o.CardContent=Aa([l.customElement("rtg-card-content")],o.CardContent);const La="rtg-rounded-lg rtg-border rtg-bg-card rtg-p-6 rtg-text-card-foreground rtg-shadow-sm";var Na=Object.defineProperty,Ba=Object.getOwnPropertyDescriptor,kr=(a,e,r,n)=>{for(var t=n>1?void 0:n?Ba(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Na(e,r,t),t};o.Card=class extends h{createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(e){this.moveLightDomChildrenInto(this.wrapperDivElement)}render(){return d.html`<div
|
|
3411
3440
|
part="card"
|
|
3412
|
-
class=${p(
|
|
3441
|
+
class=${p(La,this.className)}
|
|
3413
3442
|
id="rtg-card-id"
|
|
3414
|
-
></div>`}},kr([l.query("#rtg-card-id")],o.Card.prototype,"wrapperDivElement",2),o.Card=kr([l.customElement("rtg-card")],o.Card);var
|
|
3443
|
+
></div>`}},kr([l.query("#rtg-card-id")],o.Card.prototype,"wrapperDivElement",2),o.Card=kr([l.customElement("rtg-card")],o.Card);var qa=Object.defineProperty,Ua=Object.getOwnPropertyDescriptor,Ae=(a,e,r,n)=>{for(var t=n>1?void 0:n?Ua(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&qa(e,r,t),t};o.Carousel=class extends d.LitElement{constructor(){super(...arguments),this.currentIndex=0,this.items=[],this.orientation="horizontal",this.size=!1,this.handleResize=()=>{this.updateSlides(),this.currentIndex=0,this.querySelectorAll(".slide").forEach(r=>{r.className=this.getSlideClasses()})}}createRenderRoot(){return this}firstUpdated(){this.restructureSlides()}restructureSlides(){const e=this.querySelector(".slides");if(e)for(let r=0;r<this.items.length;r++){const n=`slide-${r}`,t=this.querySelector(`[slot="${n}"]`);if(t&&t.parentElement!==e){const i=document.createElement("div");i.className=this.getSlideClasses(),e.appendChild(i),i.appendChild(t)}}}getSlideClasses(){let e="rtg-min-w-0 rtg-flex-shrink-0 rtg-flex-grow-0 rtg-transition-transform rtg-duration-500 rtg-p-1";return this.size?`${e} lg:rtg-basis-1/3 lg:rtg-h-1/2 md:rtg-basis-1/2 md:rtg-h-1/2 rtg-basis-full rtg-h-full`:`${e} rtg-basis-full rtg-h-full`}nextSlide(){this.currentIndex<this.items.length-1&&(this.currentIndex+=1,this.updateSlides())}prevSlide(){this.currentIndex>0&&(this.currentIndex-=1,this.updateSlides())}updateSlides(){let e;this.size?window.innerWidth>=1024?e=33.3333:window.innerWidth>=768?e=50:e=100:e=100;const r=this.orientation==="vertical"?100/this.items.length:100;this.slides&&(this.slides.style.transform=this.orientation==="horizontal"?`translateX(-${this.currentIndex*e}%)`:`translateY(-${this.currentIndex*r}%)`)}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.handleResize)}render(){const e=this.currentIndex===0,r=this.size?window.innerWidth>=1024?3:window.innerWidth>=768?2:1:1,n=this.currentIndex>=this.items.length-r,t=p("rtg-flex rtg-transition-transform rtg-duration-500 rtg-ease-in-out",this.orientation==="horizontal"?"rtg-flex-row":"rtg-flex-col"),i=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`
|
|
3415
3444
|
<div
|
|
3416
3445
|
part="rtg-carousel"
|
|
3417
3446
|
class="${p("rtg-relative rtg-mx-auto rtg-h-full rtg-w-full",this.className)}"
|
|
@@ -3421,61 +3450,61 @@ body {
|
|
|
3421
3450
|
<div
|
|
3422
3451
|
class="${p("rtg-w-full rtg-h-full rtg-overflow-hidden",this.className)}"
|
|
3423
3452
|
>
|
|
3424
|
-
<div class="slides ${
|
|
3453
|
+
<div class="slides ${t}"></div>
|
|
3425
3454
|
|
|
3426
|
-
<div class="${
|
|
3455
|
+
<div class="${i}">
|
|
3427
3456
|
<button
|
|
3428
3457
|
@click="${this.prevSlide}"
|
|
3429
|
-
?disabled="${
|
|
3458
|
+
?disabled="${e}"
|
|
3430
3459
|
class="${s}"
|
|
3431
3460
|
>
|
|
3432
|
-
${
|
|
3461
|
+
${ma()}
|
|
3433
3462
|
</button>
|
|
3434
3463
|
<button
|
|
3435
3464
|
@click="${this.nextSlide}"
|
|
3436
3465
|
?disabled="${n}"
|
|
3437
3466
|
class="${m}"
|
|
3438
3467
|
>
|
|
3439
|
-
${
|
|
3468
|
+
${va()}
|
|
3440
3469
|
</button>
|
|
3441
3470
|
</div>
|
|
3442
3471
|
</div>
|
|
3443
3472
|
</div>
|
|
3444
|
-
`}},
|
|
3473
|
+
`}},Ae([l.property({type:Number})],o.Carousel.prototype,"currentIndex",2),Ae([l.property({type:Array})],o.Carousel.prototype,"items",2),Ae([l.property({type:String})],o.Carousel.prototype,"orientation",2),Ae([l.property({type:Boolean})],o.Carousel.prototype,"size",2),Ae([l.query(".slides")],o.Carousel.prototype,"slides",2),o.Carousel=Ae([l.customElement("rtg-carousel")],o.Carousel);const za="rtg-py-6 rtg-text-center rtg-text-sm",Fa="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",Ga="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",Va="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",Ha="rtg-line-clamp-1 rtg-flex rtg-w-[180px]";var Ya=Object.defineProperty,Ka=Object.getOwnPropertyDescriptor,Tr=(a,e,r,n)=>{for(var t=n>1?void 0:n?Ka(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Ya(e,r,t),t};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 e=this.parentElement;for(;e&&!(e instanceof o.ComboBox);)e=e.parentElement;return e}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this.buttonElement),this.addEventListener("click",r=>{r.stopPropagation()})}render(){return d.html`
|
|
3445
3474
|
<button
|
|
3446
3475
|
type="button"
|
|
3447
3476
|
part="combo-box-trigger-button"
|
|
3448
3477
|
role="tab"
|
|
3449
|
-
class="${p(
|
|
3478
|
+
class="${p(Va,this.className)}"
|
|
3450
3479
|
tabindex="-1"
|
|
3451
3480
|
data-orientation="horizontal"
|
|
3452
3481
|
data-radix-collection-item=""
|
|
3453
3482
|
@click=${this.handleClick}
|
|
3454
3483
|
>
|
|
3455
|
-
${
|
|
3484
|
+
${da()}
|
|
3456
3485
|
</button>
|
|
3457
|
-
`}},
|
|
3486
|
+
`}},Tr([l.query("button")],o.ComboBoxTrigger.prototype,"buttonElement",2),o.ComboBoxTrigger=Tr([l.customElement("rtg-combo-box-trigger")],o.ComboBoxTrigger);var Wa=Object.defineProperty,ja=Object.getOwnPropertyDescriptor,Mr=(a,e,r,n)=>{for(var t=n>1?void 0:n?ja(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Wa(e,r,t),t};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 e=this.parentElement;for(;e&&!(e instanceof o.ComboBox);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),document.addEventListener("clicked-combo-box-item",()=>{this.requestUpdate()})}firstUpdated(e){super.firstUpdated(e),this.addEventListener("click",r=>{r.stopPropagation()})}createRenderRoot(){return this}render(){return d.html`
|
|
3458
3487
|
<span
|
|
3459
3488
|
part="combo-box-value"
|
|
3460
|
-
class="${p(
|
|
3489
|
+
class="${p(Ha,this.className)}"
|
|
3461
3490
|
@click=${this.handleClick}
|
|
3462
3491
|
>${this.renderLabel()}</span
|
|
3463
3492
|
>
|
|
3464
|
-
`}},
|
|
3493
|
+
`}},Mr([l.property({type:String})],o.ComboBoxValue.prototype,"placeholder",2),o.ComboBoxValue=Mr([l.customElement("rtg-combo-box-value")],o.ComboBoxValue);var Xa=Object.defineProperty,Za=Object.getOwnPropertyDescriptor,Qe=(a,e,r,n)=>{for(var t=n>1?void 0:n?Za(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Xa(e,r,t),t};o.ComboBoxGroup=class extends h{constructor(){super(...arguments),this.searchKey="",this.focusedIndex=0,this.selectedValue="",this.isOpen=!1,this.handleItemClicked=()=>{this.requestUpdate()},this.handleTriggerComboBox=e=>{var r,n;e.detail.isOpen!==((r=this._comboBox)==null?void 0:r.isOpen)&&this.requestUpdate(),e.detail.isOpen&&((n=this._comboBox)!=null&&n.selectedValue)&&(this.focusedIndex=this.comboBoxItems.findIndex(t=>{var i;return t.getAttribute("value")===((i=this._comboBox)==null?void 0:i.selectedValue)}),this.requestUpdate())},this.handleKeyDown=e=>{var n;if(!((n=this._comboBox)!=null&&n.isOpen))return;e.preventDefault();const r=this.filteredItems;switch(e.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 t=r[this.focusedIndex].getAttribute("value");this.dispatchEvent(new CustomEvent("clicked-combo-box-item",{bubbles:!0,composed:!0,detail:{selectedItem:t}}))}break}},this.handleMouseOver=(e,r)=>{e.preventDefault(),this.focusedIndex=r},this.onSelectedValue=(e,r)=>{this.focusedIndex=r,this.selectedValue=e},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(e=>e.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 e=(r=this.searchKey)==null?void 0:r.toLowerCase();return this.comboBoxItems.filter(n=>{var t;return(t=n.getAttribute("value"))==null?void 0:t.toLowerCase().includes(e)})}get _comboBox(){let e=this.parentElement;for(;e&&!(e instanceof o.ComboBox);)e=e.parentElement;return e}handleComboBoxStateChanged(e){var i;const{isOpen:r,targetComboBoxId:n}=e.detail;if(this.isOpen=r,n!==((i=this._comboBox)==null?void 0:i.uuid))return;const t=this.renderRoot.querySelector('[part="select-group"]');t&&(r?(clearTimeout(t._hideTimeout),t.classList.remove("rtg-scale-y-0","rtg-opacity-0"),t.classList.add("rtg-scale-y-100","rtg-opacity-100"),t.classList.remove("rtg-invisible","rtg-pointer-events-none"),t.classList.add("rtg-visible","rtg-pointer-events-auto")):(t.classList.remove("rtg-opacity-100"),t.classList.add("rtg-opacity-0"),t._hideTimeout=setTimeout(()=>{t.classList.remove("rtg-visible","rtg-pointer-events-auto","rtg-scale-y-100"),t.classList.add("rtg-invisible","rtg-pointer-events-none","rtg-scale-y-0")},300)))}moveChildren(){const e=this.renderRoot.querySelector('[part="select-group"]');if(!e)return;const r={top:e.querySelector("#topSlot"),empty:e.querySelector("#emptySlot"),list:e.querySelector("#listSlot")},n={"rtg-combo-box-input":"top","rtg-combo-box-empty":"empty","rtg-combo-box-item":"list"};Array.from(this.children).forEach(t=>{var m;const i=t.tagName.toLowerCase(),s=n[i];s&&(t.setAttribute("data-managed","true"),(m=r[s])==null||m.appendChild(t))})}renderFilteredItems(){return this.comboBoxItems.forEach(e=>e.setAttribute("hidden","true")),this.filteredItems.map((e,r)=>{var s;const n=e.getAttribute("value")??"",t=r===this.focusedIndex,i=n.toLowerCase()===((s=this._comboBox)==null?void 0:s.selectedValue.toLowerCase());return d.html`
|
|
3465
3494
|
<rtg-combo-box-item
|
|
3466
3495
|
@mouseover="${m=>this.handleMouseOver(m,r)}"
|
|
3467
3496
|
.value=${n}
|
|
3468
3497
|
.selectItemIndex=${r}
|
|
3469
|
-
.isFocus=${
|
|
3498
|
+
.isFocus=${t}
|
|
3470
3499
|
.onSelect=${this.onSelectedValue}
|
|
3471
|
-
.isSelected=${
|
|
3500
|
+
.isSelected=${i}
|
|
3472
3501
|
>
|
|
3473
|
-
${
|
|
3502
|
+
${e.textContent}
|
|
3474
3503
|
</rtg-combo-box-item>
|
|
3475
|
-
`})}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(
|
|
3504
|
+
`})}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(e){this.moveChildren(),document.addEventListener("keydown",this.boundHandleKeyDown)}createRenderRoot(){return this}render(){return d.html`
|
|
3476
3505
|
<div
|
|
3477
3506
|
part="select-group"
|
|
3478
|
-
class="${p(
|
|
3507
|
+
class="${p(Fa,this.className)}"
|
|
3479
3508
|
data-hs-combo-box-output=""
|
|
3480
3509
|
data-testId="select-group"
|
|
3481
3510
|
>
|
|
@@ -3488,9 +3517,9 @@ body {
|
|
|
3488
3517
|
${this.renderFilteredItems()}
|
|
3489
3518
|
</div>
|
|
3490
3519
|
</div>
|
|
3491
|
-
`}},
|
|
3520
|
+
`}},Qe([l.state()],o.ComboBoxGroup.prototype,"searchKey",2),Qe([l.state()],o.ComboBoxGroup.prototype,"focusedIndex",2),Qe([l.state()],o.ComboBoxGroup.prototype,"selectedValue",2),Qe([l.state()],o.ComboBoxGroup.prototype,"isOpen",2),o.ComboBoxGroup=Qe([l.customElement("rtg-combo-box-group")],o.ComboBoxGroup);var Qa=Object.defineProperty,Ja=Object.getOwnPropertyDescriptor,oe=(a,e,r,n)=>{for(var t=n>1?void 0:n?Ja(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Qa(e,r,t),t};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=(e,r)=>{},this.onMouseOver=(e,r)=>{},this.handleClick=e=>{this.onSelect(this.value,this.selectItemIndex),e.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(e){this.moveLightDomChildrenInto(this.itemDivContainer)}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return d.html`
|
|
3492
3521
|
<div
|
|
3493
|
-
${
|
|
3522
|
+
${V(e)}
|
|
3494
3523
|
@click=${this.handleClick}
|
|
3495
3524
|
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")}"
|
|
3496
3525
|
data-hs-combo-box-value=${this.value}
|
|
@@ -3501,16 +3530,16 @@ body {
|
|
|
3501
3530
|
<span
|
|
3502
3531
|
class="${this.isSelected?"rtg-visible":"rtg-invisible"} data-hs-combo-box-value rtg-mr-2"
|
|
3503
3532
|
>
|
|
3504
|
-
${
|
|
3533
|
+
${Pr()}
|
|
3505
3534
|
</span>
|
|
3506
3535
|
</div>
|
|
3507
|
-
`}},
|
|
3536
|
+
`}},oe([l.property({type:String})],o.ComboBoxItem.prototype,"value",2),oe([l.property({type:String})],o.ComboBoxItem.prototype,"key",2),oe([l.property({type:Number})],o.ComboBoxItem.prototype,"tabindex",2),oe([l.property({type:Boolean})],o.ComboBoxItem.prototype,"isSelected",2),oe([l.property({type:Boolean})],o.ComboBoxItem.prototype,"isFocus",2),oe([l.property({type:String})],o.ComboBoxItem.prototype,"class",2),oe([l.property({type:Number})],o.ComboBoxItem.prototype,"selectItemIndex",2),oe([l.property({type:Function})],o.ComboBoxItem.prototype,"onSelect",2),oe([l.property({type:Function})],o.ComboBoxItem.prototype,"onMouseOver",2),oe([l.query("#rtg-combo-box-item")],o.ComboBoxItem.prototype,"itemDivContainer",2),o.ComboBoxItem=oe([l.customElement("rtg-combo-box-item")],o.ComboBoxItem);var ei=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,kt=(a,e,r,n)=>{for(var t=n>1?void 0:n?ti(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&ei(e,r,t),t};o.ComboBoxInput=class extends d.LitElement{constructor(){super(...arguments),this.placeholder="Search Item ...",this.searchValue=""}get _comboBoxGroup(){let e=this.parentElement;for(;e&&!(e instanceof o.ComboBoxGroup);)e=e.parentElement;return e}handleSearch(e){e.stopPropagation();const r=e.target;this.searchValue=r.value,this._comboBoxGroup&&(this._comboBoxGroup.searchKey=this.searchValue)}handleKeyDown(e){e.stopPropagation()}createRenderRoot(){return this}render(){return d.html`
|
|
3508
3537
|
<div class="rtg-flex rtg-items-center rtg-px-2">
|
|
3509
|
-
${
|
|
3538
|
+
${ua()}
|
|
3510
3539
|
<input
|
|
3511
3540
|
part="combo-box-input"
|
|
3512
3541
|
type="text"
|
|
3513
|
-
class="${p(
|
|
3542
|
+
class="${p(Ga,this.className)}"
|
|
3514
3543
|
placeholder=${this.placeholder}
|
|
3515
3544
|
autocomplete="off"
|
|
3516
3545
|
autocorrect="off"
|
|
@@ -3522,48 +3551,48 @@ body {
|
|
|
3522
3551
|
@keydown="${this.handleKeyDown}"
|
|
3523
3552
|
/>
|
|
3524
3553
|
</div>
|
|
3525
|
-
`}},
|
|
3554
|
+
`}},kt([l.property({type:String})],o.ComboBoxInput.prototype,"placeholder",2),kt([l.state()],o.ComboBoxInput.prototype,"searchValue",2),o.ComboBoxInput=kt([l.customElement("rtg-combo-box-input")],o.ComboBoxInput);var ri=Object.getOwnPropertyDescriptor,ni=(a,e,r,n)=>{for(var t=n>1?void 0:n?ri(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.ComboBoxEmpty=class extends h{createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(e){this.removeDuplicateContent()}render(){return d.html`
|
|
3526
3555
|
<div
|
|
3527
|
-
class="${p(
|
|
3556
|
+
class="${p(za,this.className)}"
|
|
3528
3557
|
role="presentation"
|
|
3529
3558
|
>
|
|
3530
3559
|
${Array.from(this.childNodes)[0].textContent}
|
|
3531
3560
|
</div>
|
|
3532
|
-
`}},o.ComboBoxEmpty=
|
|
3561
|
+
`}},o.ComboBoxEmpty=ni([l.customElement("rtg-combo-box-empty")],o.ComboBoxEmpty);var oi=Object.defineProperty,ai=Object.getOwnPropertyDescriptor,ie=(a,e,r,n)=>{for(var t=n>1?void 0:n?ai(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&oi(e,r,t),t};o.ComboBox=class extends h{constructor(){super(),this.isOpen=!1,this.selectedValue="",this.searchTerm="",this.focusedIndex=-1,this.filteredItems=[],this.uuid=Ot(),this.label="Select an item",this.items=[],this.handleClickOutside=e=>{var t;const r=(t=this.renderRoot)==null?void 0:t.querySelector("[data-combo-box-uuid]"),n=e.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",e=>{this.isOpen&&(this.selectedValue=e.detail.selectedItem,this.isOpen=!1,this.requestUpdate())})}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this.parentDiveElement),this.items&&this.items.length>0&&(this.filteredItems=this.items.filter(r=>r.toLowerCase().includes(this.searchTerm)))}updated(e){super.updated(e),e.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(e){const r=e.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`
|
|
3533
3562
|
<div
|
|
3534
3563
|
class="${p("rtg-relative",this.className)}"
|
|
3535
3564
|
data-hs-combo-box=""
|
|
3536
3565
|
data-combo-box-uuid=${this.uuid}
|
|
3537
3566
|
part="combo-box"
|
|
3538
3567
|
></div>
|
|
3539
|
-
`}},
|
|
3568
|
+
`}},ie([l.property({type:Boolean})],o.ComboBox.prototype,"isOpen",2),ie([l.state()],o.ComboBox.prototype,"selectedValue",2),ie([l.state()],o.ComboBox.prototype,"searchTerm",2),ie([l.state()],o.ComboBox.prototype,"focusedIndex",2),ie([l.state()],o.ComboBox.prototype,"filteredItems",2),ie([l.state()],o.ComboBox.prototype,"uuid",2),ie([l.property({type:String})],o.ComboBox.prototype,"label",2),ie([l.property({type:Array})],o.ComboBox.prototype,"items",2),ie([l.query('[part="combo-box"]')],o.ComboBox.prototype,"parentDiveElement",2),o.ComboBox=ie([l.customElement("rtg-combo-box")],o.ComboBox);var st=(a=>(a.VERTICAL="vertical",a.HORIZONTAL="horizontal",a))(st||{}),ii=Object.defineProperty,si=Object.getOwnPropertyDescriptor,Ar=(a,e,r,n)=>{for(var t=n>1?void 0:n?si(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&ii(e,r,t),t};o.Separator=class extends h{constructor(){super(...arguments),this.orientation=st.HORIZONTAL}getAttributesToExclude(){return["variant","data-testid"]}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return d.html` <div
|
|
3540
3569
|
part="separator"
|
|
3541
|
-
${
|
|
3542
|
-
class=${p(this.orientation===
|
|
3570
|
+
${V(e)}
|
|
3571
|
+
class=${p(this.orientation===st.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)}
|
|
3543
3572
|
role="none"
|
|
3544
3573
|
>
|
|
3545
|
-
${this.orientation!==
|
|
3546
|
-
</div>`}},Ar([l.property({type:String})],o.Separator.prototype,"orientation",2),o.Separator=Ar([l.customElement("rtg-separator")],o.Separator);const
|
|
3574
|
+
${this.orientation!==st.HORIZONTAL?d.html` `:d.nothing}
|
|
3575
|
+
</div>`}},Ar([l.property({type:String})],o.Separator.prototype,"orientation",2),o.Separator=Ar([l.customElement("rtg-separator")],o.Separator);const li="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 ci=Object.defineProperty,di=Object.getOwnPropertyDescriptor,Tt=(a,e,r,n)=>{for(var t=n>1?void 0:n?di(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&ci(e,r,t),t};o.HoverContent=class extends h{constructor(){super(...arguments),this.state="close",this.isOpen=!1,this.onStateChange=e=>{const r=e.detail.isOpen;this.state=r?"open":"close"},this.handlePointerLeaveCheck=e=>{this.contains(e.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(e){super.updated(e),this.isOpen=this.state==="open"}createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(e){this.moveLightDomChildrenInto(this.renderRoot.querySelector("#rtg-hover-card-content"))}render(){return d.html`
|
|
3547
3576
|
<div
|
|
3548
3577
|
id="rtg-hover-card-content"
|
|
3549
3578
|
part="hover-card-content"
|
|
3550
|
-
class="${p(
|
|
3579
|
+
class="${p(li,this.className)}"
|
|
3551
3580
|
style="display: ${this.isOpen?"block":"none"}; width: 360px"
|
|
3552
3581
|
></div>
|
|
3553
|
-
`}},
|
|
3582
|
+
`}},Tt([l.property({attribute:"data-state",type:String})],o.HoverContent.prototype,"state",2),Tt([l.state()],o.HoverContent.prototype,"isOpen",2),o.HoverContent=Tt([l.customElement("rtg-hover-card-content")],o.HoverContent);var ui=Object.getOwnPropertyDescriptor,gi=(a,e,r,n)=>{for(var t=n>1?void 0:n?ui(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.HoverCardTrigger=class extends h{getAttributesToExclude(){return["value","defaultValue"]}createRenderRoot(){return this}firstUpdated(e){this.removeDuplicateContent()}render(){return d.html`
|
|
3554
3583
|
<div id="rtg-hover-card-trigger" class="${p("",this.className)}">
|
|
3555
3584
|
${Array.from(this.children)}
|
|
3556
3585
|
</div>
|
|
3557
|
-
`}},o.HoverCardTrigger=
|
|
3586
|
+
`}},o.HoverCardTrigger=gi([l.customElement("rtg-hover-card-trigger")],o.HoverCardTrigger);var pi=Object.defineProperty,hi=Object.getOwnPropertyDescriptor,Lr=(a,e,r,n)=>{for(var t=n>1?void 0:n?hi(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&pi(e,r,t),t};o.HoverCard=class extends h{constructor(){super(...arguments),this.isOpen=!1,this.hoverTimeout=null,this.openCard=()=>{var e;this.hoverTimeout&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=null),this.isOpen||(this.isOpen=!0,(e=this._content)==null||e.dispatchEvent(new CustomEvent("hover-card-state-change",{detail:{isOpen:!0}})))},this.closeCard=()=>{this.hoverTimeout=setTimeout(()=>{var e;this.isOpen=!1,(e=this._content)==null||e.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(e){super.updated(e);const r=this._content;r&&(r.dataset.state=this.isOpen?"open":"close")}connectedCallback(){super.connectedCallback()}disconnectedCallback(){const e=this._trigger,r=this._content;e==null||e.removeEventListener("mouseenter",this.openCard),e==null||e.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(e){const r=this._containerElement;this.moveLightDomChildrenInto(r);const n=this._trigger,t=this._content;n==null||n.addEventListener("mouseenter",this.openCard),n==null||n.addEventListener("mouseleave",this.closeCard),t==null||t.addEventListener("mouseenter",this.openCard),t==null||t.addEventListener("mouseleave",this.closeCard)}render(){return d.html`
|
|
3558
3587
|
<div
|
|
3559
3588
|
id="rtg-hover-card-container"
|
|
3560
3589
|
part="hover-card"
|
|
3561
3590
|
class="${p("",this.className)}"
|
|
3562
3591
|
></div>
|
|
3563
|
-
`}},Lr([l.state()],o.HoverCard.prototype,"isOpen",2),o.HoverCard=Lr([l.customElement("rtg-hover-card")],o.HoverCard);const
|
|
3592
|
+
`}},Lr([l.state()],o.HoverCard.prototype,"isOpen",2),o.HoverCard=Lr([l.customElement("rtg-hover-card")],o.HoverCard);const mi="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",vi="py-6 text-center text-sm",fi="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",bi="rtg-flex rtg-items-center rtg-border-b rtg-px-3",yi="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",wi="rtg-max-h-[300px] rtg-overflow-y-auto rtg-overflow-x-hidden",Ci="rtg-mx-1 rtg-h-px rtg-bg-border";var _i=Object.defineProperty,Ei=Object.getOwnPropertyDescriptor,Mt=(a,e,r,n)=>{for(var t=n>1?void 0:n?Ei(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&_i(e,r,t),t};o.CommandInput=class extends d.LitElement{constructor(){super(...arguments),this.placeholder="Type a command or search...",this._value=""}get identifier(){const e=this.parentElement;return e?`${e.getAttribute("id")}i`:"rtgcmdrxi"}filterItems(){const e=this.parentElement;if(e){let r=!0;const n=e.querySelectorAll("rtg-command-group");n&&n.forEach(i=>{var b,w;let s=!0;const m=i.querySelectorAll("rtg-command-item");m&&m.forEach(x=>{(x.value||"").toLowerCase().includes(this._value.toLowerCase())?(s=!1,r=!1,x._hidden="false"):x._hidden="true"}),i._hidden=s?"true":"false";let C=i.previousElementSibling;C&&(C._hidden=s||((b=C.previousElementSibling)==null?void 0:b.getAttribute("aria-hidden"))==="true"?"true":"false"),C=i.nextElementSibling,C&&(C._hidden=s||((w=C.nextElementSibling)==null?void 0:w.getAttribute("aria-hidden"))==="true"?"true":"false")});const t=e.querySelector("rtg-command-empty");t&&t.setAttribute("aria-hidden",r?"false":"true")}}handleChange(e){const r=e.target;r&&(this._value=r.value,this.filterItems())}createRenderRoot(){return this}render(){return d.html`
|
|
3564
3593
|
<div
|
|
3565
3594
|
part="command-input"
|
|
3566
|
-
class="${p(
|
|
3595
|
+
class="${p(bi,this.className)}"
|
|
3567
3596
|
name="rtgcmd-input-container"
|
|
3568
3597
|
>
|
|
3569
3598
|
<svg
|
|
@@ -3599,19 +3628,19 @@ body {
|
|
|
3599
3628
|
data-value="${this._value}"
|
|
3600
3629
|
/>
|
|
3601
3630
|
</div>
|
|
3602
|
-
`}},
|
|
3631
|
+
`}},Mt([l.property({type:String})],o.CommandInput.prototype,"placeholder",2),Mt([l.property({attribute:"value",type:String})],o.CommandInput.prototype,"_value",2),o.CommandInput=Mt([l.customElement("rtg-command-input")],o.CommandInput);var xi=Object.defineProperty,$i=Object.getOwnPropertyDescriptor,At=(a,e,r,n)=>{for(var t=n>1?void 0:n?$i(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&xi(e,r,t),t};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 e=this.parentElement;return e?this._id=`${e.getAttribute("id")}e${o.CommandEmpty._counter++}`:this._id=`rtgcmdrxlxe${o.CommandEmpty._counter++}`,this._id}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this.containerElement)}render(){return d.html`
|
|
3603
3632
|
<div
|
|
3604
3633
|
style="${this._hidden==="true"?"display: none;":""}"
|
|
3605
3634
|
part="command-empty"
|
|
3606
|
-
class="${p(
|
|
3635
|
+
class="${p(vi,this.className)}"
|
|
3607
3636
|
rtgcmd-empty
|
|
3608
3637
|
role="presentation"
|
|
3609
3638
|
id="${this.identifier}"
|
|
3610
3639
|
></div>
|
|
3611
|
-
`}},o.CommandEmpty._counter=0,
|
|
3640
|
+
`}},o.CommandEmpty._counter=0,At([l.property({type:String})],o.CommandEmpty.prototype,"_id",2),At([l.property({attribute:"aria-hidden",type:String})],o.CommandEmpty.prototype,"_hidden",2),o.CommandEmpty=At([l.customElement("rtg-command-empty")],o.CommandEmpty);var Oi=Object.defineProperty,Si=Object.getOwnPropertyDescriptor,lt=(a,e,r,n)=>{for(var t=n>1?void 0:n?Si(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Oi(e,r,t),t};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 e=this.parentElement;return e?this._id=`${e.getAttribute("id")}g${o.CommandGroup._counter++}`:this._id=`rtgcmdrxlxg${o.CommandGroup._counter++}`,this._id}createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(e){const r=this.itemsContainerElement;if(r){for(;r.firstChild;)r.removeChild(r.firstChild);this.moveLightDomChildrenInto(r)}}render(){return d.html`
|
|
3612
3641
|
<div
|
|
3613
3642
|
part="command-group"
|
|
3614
|
-
class="${p(
|
|
3643
|
+
class="${p(fi,this.className)}"
|
|
3615
3644
|
rtgcmd-group
|
|
3616
3645
|
role="presentation"
|
|
3617
3646
|
id="${this.identifier}"
|
|
@@ -3627,10 +3656,10 @@ body {
|
|
|
3627
3656
|
id="${this.identifier}g"
|
|
3628
3657
|
></div>
|
|
3629
3658
|
</div>
|
|
3630
|
-
`}},o.CommandGroup._counter=0,
|
|
3659
|
+
`}},o.CommandGroup._counter=0,lt([l.property({type:String})],o.CommandGroup.prototype,"heading",2),lt([l.property({attribute:"id",type:String})],o.CommandGroup.prototype,"_id",2),lt([l.property({attribute:"aria-hidden",type:String})],o.CommandGroup.prototype,"_hidden",2),o.CommandGroup=lt([l.customElement("rtg-command-group")],o.CommandGroup);var Pi=Object.getOwnPropertyDescriptor,Di=(a,e,r,n)=>{for(var t=n>1?void 0:n?Pi(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.CommandList=class extends h{get identifier(){const e=this.parentElement;return e?`${e.getAttribute("id")}l`:"rtgcmdrxl"}get containerElement(){return this.querySelector("div[rtgcmd-list]")}createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(e){this.moveLightDomChildrenInto(this.containerElement)}render(){return d.html`
|
|
3631
3660
|
<div
|
|
3632
3661
|
part="command-list"
|
|
3633
|
-
class="${p(
|
|
3662
|
+
class="${p(wi,this.className)}"
|
|
3634
3663
|
role="listbox"
|
|
3635
3664
|
id="${this.identifier}"
|
|
3636
3665
|
style="--rtgcmd-list-height: 265.0px;"
|
|
@@ -3638,10 +3667,10 @@ body {
|
|
|
3638
3667
|
>
|
|
3639
3668
|
<div></div>
|
|
3640
3669
|
</div>
|
|
3641
|
-
`}},o.CommandList=
|
|
3670
|
+
`}},o.CommandList=Di([l.customElement("rtg-command-list")],o.CommandList);var Ri=Object.defineProperty,Ii=Object.getOwnPropertyDescriptor,Je=(a,e,r,n)=>{for(var t=n>1?void 0:n?Ii(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Ri(e,r,t),t};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 e=this.parentElement;return e?this._id=`${e.getAttribute("id")}li${o.CommandItem._counter++}`:this._id=`rtgcmdrxgxli${o.CommandItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(e){this.moveLightDomChildrenInto(this.containerElement)}updated(e){}render(){return d.html`
|
|
3642
3671
|
<div
|
|
3643
3672
|
part="command-item"
|
|
3644
|
-
class="${p(
|
|
3673
|
+
class="${p(yi,this.className,this.hidden?"rtg-hidden":"rtg-flex")}"
|
|
3645
3674
|
@mouseover="${this.handleMouseEvent}"
|
|
3646
3675
|
@mouseleave="${this.handleMouseEvent}"
|
|
3647
3676
|
@focus="${this.handleMouseEvent}"
|
|
@@ -3655,31 +3684,31 @@ body {
|
|
|
3655
3684
|
aria-hidden="${this.hidden}"
|
|
3656
3685
|
style="${this._hidden==="true"?"display: none;":""}"
|
|
3657
3686
|
></div>
|
|
3658
|
-
`}},o.CommandItem._counter=0,
|
|
3687
|
+
`}},o.CommandItem._counter=0,Je([l.property({type:String})],o.CommandItem.prototype,"_id",2),Je([l.property({attribute:"aria-hidden",type:String})],o.CommandItem.prototype,"_hidden",2),Je([l.property({type:Function})],o.CommandItem.prototype,"onSelect",2),Je([l.property({attribute:"data-value",type:String}),l.property({type:Boolean})],o.CommandItem.prototype,"containerElement",1),o.CommandItem=Je([l.customElement("rtg-command-item")],o.CommandItem);var ki=Object.defineProperty,Ti=Object.getOwnPropertyDescriptor,Lt=(a,e,r,n)=>{for(var t=n>1?void 0:n?Ti(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&ki(e,r,t),t};o.CommandSeparator=class extends d.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){if(this._id!=="")return this._id;const e=this.parentElement;return e?this._id=`${e.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`
|
|
3659
3688
|
<div
|
|
3660
3689
|
part="command-separator"
|
|
3661
|
-
class="${p(
|
|
3690
|
+
class="${p(Ci,this.className)}"
|
|
3662
3691
|
rtgcmd-separator
|
|
3663
3692
|
role="separator"
|
|
3664
3693
|
id="${this.identifier}"
|
|
3665
3694
|
></div>
|
|
3666
|
-
`}`}},o.CommandSeparator._counter=0,
|
|
3695
|
+
`}`}},o.CommandSeparator._counter=0,Lt([l.property({type:String})],o.CommandSeparator.prototype,"_id",2),Lt([l.property({attribute:"aria-hidden",type:String})],o.CommandSeparator.prototype,"_hidden",2),o.CommandSeparator=Lt([l.customElement("rtg-command-separator")],o.CommandSeparator);var Mi=Object.getOwnPropertyDescriptor,Ai=(a,e,r,n)=>{for(var t=n>1?void 0:n?Mi(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.Command=class extends h{get containerElement(){return this.querySelector("div[rtgcmd-root]")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this.containerElement)}render(){return d.html`
|
|
3667
3696
|
<div
|
|
3668
3697
|
part="command"
|
|
3669
|
-
class="${p(
|
|
3698
|
+
class="${p(mi,this.className)}"
|
|
3670
3699
|
id="rtgcmdr1"
|
|
3671
3700
|
rtgcmd-root
|
|
3672
3701
|
></div>
|
|
3673
|
-
`}},o.Command=
|
|
3702
|
+
`}},o.Command=Ai([l.customElement("rtg-command")],o.Command);const Li="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",Ni="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",Bi="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",qi="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",Ui="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",zi="rtg-mx-1 rtg-h-px rtg-bg-border",Fi="rtg-ml-auto rtg-text-xs rtg-font-semibold";var Gi=Object.defineProperty,Vi=Object.getOwnPropertyDescriptor,Nr=(a,e,r,n)=>{for(var t=n>1?void 0:n?Vi(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Gi(e,r,t),t};o.ContextMenuContent=class extends h{constructor(){super(),this.isOpen=!1,this.handleClickOutside=this.handleClickOutside.bind(this)}get _containerElement(){return this.querySelector("div[part=context-menu-content")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}handleClickOutside(e){const r=this==null?void 0:this.querySelector("button");!this.contains(e.target)&&!(r!=null&&r.contains(e.target))&&requestAnimationFrame(()=>{this._containerElement.style.display="none",this._containerElement.style.position="absolute",this._containerElement.dataset.state="closed",this.isOpen=!1})}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3674
3703
|
<div
|
|
3675
3704
|
part="context-menu-content"
|
|
3676
|
-
class="${p(
|
|
3705
|
+
class="${p(Ni,this.className)}"
|
|
3677
3706
|
style="display:none; width: 260px"
|
|
3678
3707
|
></div>
|
|
3679
|
-
`}},
|
|
3708
|
+
`}},Nr([l.state()],o.ContextMenuContent.prototype,"isOpen",2),o.ContextMenuContent=Nr([l.customElement("rtg-context-menu-content")],o.ContextMenuContent);var Hi=Object.defineProperty,Yi=Object.getOwnPropertyDescriptor,Le=(a,e,r,n)=>{for(var t=n>1?void 0:n?Yi(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Hi(e,r,t),t};o.ContextMenuCheckboxItem=class extends h{constructor(){super(...arguments),this._id="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _containerElement(){return this.querySelector("div[part=context-menu-checkbox-item-container]")}getAttributesToExclude(){return["data-testid"]}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3680
3709
|
<div
|
|
3681
3710
|
part="context-menu-checkbox"
|
|
3682
|
-
class="${p(
|
|
3711
|
+
class="${p(Li,this.disabled?"rtg-pointer-events-none rtg-opacity-50":"",this.className)}"
|
|
3683
3712
|
@click=${this.toggleChecked}
|
|
3684
3713
|
@mouseover="${this.handleMouseEvent}"
|
|
3685
3714
|
@mouseleave="${this.handleMouseEvent}"
|
|
@@ -3708,27 +3737,27 @@ body {
|
|
|
3708
3737
|
</span>
|
|
3709
3738
|
<div part="context-menu-checkbox-item-container"></div>
|
|
3710
3739
|
</div>
|
|
3711
|
-
`}},
|
|
3740
|
+
`}},Le([l.property({type:String})],o.ContextMenuCheckboxItem.prototype,"_id",2),Le([l.property({attribute:"data-value",type:String})],o.ContextMenuCheckboxItem.prototype,"value",1),Le([l.property({type:Boolean})],o.ContextMenuCheckboxItem.prototype,"selected",2),Le([l.property({type:Boolean})],o.ContextMenuCheckboxItem.prototype,"checked",2),Le([l.property({type:Boolean})],o.ContextMenuCheckboxItem.prototype,"disabled",2),o.ContextMenuCheckboxItem=Le([l.customElement("rtg-context-menu-checkbox-item")],o.ContextMenuCheckboxItem);var Ki=Object.defineProperty,Wi=Object.getOwnPropertyDescriptor,Br=(a,e,r,n)=>{for(var t=n>1?void 0:n?Wi(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Ki(e,r,t),t};o.ContextMenuGroup=class extends h{constructor(){super(...arguments),this.heading=""}get _containerElement(){return this.querySelector("div[ rtgcontext-group-items]")}createRenderRoot(){return this}getAttributesToExclude(){return["data-testid"]}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3712
3741
|
<div
|
|
3713
3742
|
part="context-menu-group"
|
|
3714
|
-
class="${p(
|
|
3743
|
+
class="${p(Bi,this.className)}"
|
|
3715
3744
|
rtgcmd-group
|
|
3716
3745
|
role="presentation"
|
|
3717
3746
|
>
|
|
3718
3747
|
<div rtgcmd-group-heading aria-hidden="true">${this.heading}</div>
|
|
3719
3748
|
<div rtgcontext-group-items role="group"></div>
|
|
3720
3749
|
</div>
|
|
3721
|
-
`}},
|
|
3750
|
+
`}},Br([l.property({type:String})],o.ContextMenuGroup.prototype,"heading",2),o.ContextMenuGroup=Br([l.customElement("rtg-context-menu-group")],o.ContextMenuGroup);var ji=Object.defineProperty,Xi=Object.getOwnPropertyDescriptor,qr=(a,e,r,n)=>{for(var t=n>1?void 0:n?Xi(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&ji(e,r,t),t};o.ContextMenuItem=class extends h{get _containerElement(){return this.querySelector("div[part=context-menu-item]")}getAttributesToExclude(){return[]}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}firstUpdated(e){var r;this.moveLightDomChildrenInto(this._containerElement),(r=this._containerElement)==null||r.addEventListener("click",()=>{this.dispatchEvent(new MouseEvent("click",{bubbles:!0,composed:!0,cancelable:!0})),this.dispatchEvent(new CustomEvent("close-context-menu",{bubbles:!0,composed:!0}))})}connectedCallback(){super.connectedCallback()}disconnectedCallback(){}createRenderRoot(){return this}render(){return d.html`
|
|
3722
3751
|
<div
|
|
3723
3752
|
part="context-menu-item"
|
|
3724
|
-
class="${p(
|
|
3753
|
+
class="${p(qi,this.className)}"
|
|
3725
3754
|
role="option"
|
|
3726
3755
|
data-value="${this.value}"
|
|
3727
3756
|
></div>
|
|
3728
|
-
`}},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
|
|
3757
|
+
`}},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 Zi=Object.defineProperty,Qi=Object.getOwnPropertyDescriptor,Ne=(a,e,r,n)=>{for(var t=n>1?void 0:n?Qi(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Zi(e,r,t),t};o.ContextMenuRadioItem=class extends h{constructor(){super(...arguments),this._id="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _containerElement(){return this.querySelector("div[part=context-menu-radio-item-container]")}getAttributesToExclude(){return["data-testid"]}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3729
3758
|
<div
|
|
3730
3759
|
part="context-menu-radio"
|
|
3731
|
-
class="${p(
|
|
3760
|
+
class="${p(Ui,this.disabled?"pointer-events-none opacity-50":"",this.className)}"
|
|
3732
3761
|
@click=${this.toggleChecked}
|
|
3733
3762
|
@mouseover="${this.handleMouseEvent}"
|
|
3734
3763
|
@mouseleave="${this.handleMouseEvent}"
|
|
@@ -3742,48 +3771,48 @@ body {
|
|
|
3742
3771
|
<span
|
|
3743
3772
|
class="rtg-absolute rtg-left-2 rtg-inline-block rtg-h-4 rtg-w-4 rtg-items-center rtg-justify-center"
|
|
3744
3773
|
>
|
|
3745
|
-
${this.checked?d.html` ${
|
|
3774
|
+
${this.checked?d.html` ${It()} `:d.nothing}
|
|
3746
3775
|
</span>
|
|
3747
3776
|
<div part="context-menu-radio-item-container"></div>
|
|
3748
3777
|
</div>
|
|
3749
|
-
`}},
|
|
3778
|
+
`}},Ne([l.property({type:String})],o.ContextMenuRadioItem.prototype,"_id",2),Ne([l.property({attribute:"data-value",type:String})],o.ContextMenuRadioItem.prototype,"value",1),Ne([l.property({type:Boolean})],o.ContextMenuRadioItem.prototype,"selected",2),Ne([l.property({type:Boolean})],o.ContextMenuRadioItem.prototype,"checked",2),Ne([l.property({type:Boolean})],o.ContextMenuRadioItem.prototype,"disabled",2),o.ContextMenuRadioItem=Ne([l.customElement("rtg-context-menu-radio-item")],o.ContextMenuRadioItem);var Ji=Object.defineProperty,es=Object.getOwnPropertyDescriptor,Ur=(a,e,r,n)=>{for(var t=n>1?void 0:n?es(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Ji(e,r,t),t};o.ContextMenuSeparator=class extends d.LitElement{constructor(){super(...arguments),this._id=""}createRenderRoot(){return this}render(){return d.html`
|
|
3750
3779
|
<div
|
|
3751
3780
|
part="context-menu-separator"
|
|
3752
|
-
class="${p(
|
|
3781
|
+
class="${p(zi,this.className)}"
|
|
3753
3782
|
rtgcmd-separator
|
|
3754
3783
|
role="separator"
|
|
3755
3784
|
></div>
|
|
3756
|
-
`}},
|
|
3785
|
+
`}},Ur([l.property({type:String})],o.ContextMenuSeparator.prototype,"_id",2),o.ContextMenuSeparator=Ur([l.customElement("rtg-context-menu-separator")],o.ContextMenuSeparator);var ts=Object.getOwnPropertyDescriptor,rs=(a,e,r,n)=>{for(var t=n>1?void 0:n?ts(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.ContextMenuShortcut=class extends h{get _containerElement(){return this.querySelector("span[part=context-menu-shortcut]")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3757
3786
|
<span
|
|
3758
3787
|
part="context-menu-shortcut"
|
|
3759
|
-
class="${p(
|
|
3788
|
+
class="${p(Fi,this.className)}"
|
|
3760
3789
|
>
|
|
3761
3790
|
</span>
|
|
3762
|
-
`}},o.ContextMenuShortcut=
|
|
3791
|
+
`}},o.ContextMenuShortcut=rs([l.customElement("rtg-context-menu-shortcut")],o.ContextMenuShortcut);var ns=Object.getOwnPropertyDescriptor,os=(a,e,r,n)=>{for(var t=n>1?void 0:n?ns(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.ContextTrigger=class extends d.LitElement{createRenderRoot(){return this}render(){return d.html``}},o.ContextTrigger=os([l.customElement("rtg-context-menu-trigger")],o.ContextTrigger);var as=Object.defineProperty,is=Object.getOwnPropertyDescriptor,zr=(a,e,r,n)=>{for(var t=n>1?void 0:n?is(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&as(e,r,t),t};o.ContextMenu=class extends h{constructor(){super(...arguments),this.isOpen=!1,this.handleClickOutside=e=>{const r=e.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 e=this._content;e&&(e.style.display="none")})})}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}toggleDropdown(e){e.preventDefault(),e.stopPropagation();const{clientX:r,clientY:n}=e,t=e.target.getBoundingClientRect();requestAnimationFrame(()=>{const i=this._content;i&&(i.style.display="",i.style.position="absolute",i.style.left=`${r-t.left}px`,i.style.top=`${n-t.top}px`,i.dataset.state="open",this.isOpen=!0)})}updated(e){super.updated(e);const r=this._content;r&&(r.dataset.state=this.isOpen?"open":"close")}_handleRadioSelected(e){this.querySelectorAll("rtg-context-menu-radio-item").forEach(r=>{r!==e.target&&(r.checked=!1)})}getAttributesToExclude(){return[]}firstUpdated(e){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`
|
|
3763
3792
|
<div class="${p("rtg-flex",this.className)}" part="context-menu"></div>
|
|
3764
|
-
`}},
|
|
3793
|
+
`}},zr([l.state()],o.ContextMenu.prototype,"isOpen",2),o.ContextMenu=zr([l.customElement("rtg-context-menu")],o.ContextMenu);var ss=Object.getOwnPropertyDescriptor,ls=(a,e,r,n)=>{for(var t=n>1?void 0:n?ss(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.CollapsibleTrigger=class extends h{getAttributesToExclude(){return[""]}get _containerElement(){return this.querySelector("div[part=collapsible-trigger]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}get _collapsible(){let e=this.parentElement;for(;e&&!(e instanceof o.Collapsible);)e=e.parentElement;return e}onTrigger(){const e=this._collapsible;e&&(e.open=!e.open,this.dispatchEvent(new CustomEvent("click-collapsible-event",{bubbles:!0,composed:!0})))}render(){const e=this.getFilteredAttributes();return d.html`
|
|
3765
3794
|
<div
|
|
3766
3795
|
@click=${this.onTrigger}
|
|
3767
|
-
${
|
|
3796
|
+
${V(e)}
|
|
3768
3797
|
part="collapsible-trigger"
|
|
3769
3798
|
></div>
|
|
3770
|
-
`}},o.CollapsibleTrigger=
|
|
3799
|
+
`}},o.CollapsibleTrigger=ls([l.customElement("rtg-collapsible-trigger")],o.CollapsibleTrigger);var cs=Object.getOwnPropertyDescriptor,ds=(a,e,r,n)=>{for(var t=n>1?void 0:n?cs(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.CollapsibleContent=class extends h{constructor(){super(...arguments),this._toggleHandler=e=>{const r=e;requestAnimationFrame(()=>{const n=this._containerElement;n&&(n.style.display=r.detail.open?"block":"none")})}}get _containerElement(){return this.querySelector("div[part=collapsible-content]")}firstUpdated(e){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 e=this.getFilteredAttributes();return d.html`
|
|
3771
3800
|
<div
|
|
3772
|
-
${
|
|
3801
|
+
${V(e)}
|
|
3773
3802
|
class="${p("",this.className)}"
|
|
3774
3803
|
style="display: none;--radix-collapsible-content-height: 100px; --radix-collapsible-content-width: 350px;"
|
|
3775
3804
|
part="collapsible-content"
|
|
3776
3805
|
></div>
|
|
3777
|
-
`}},o.CollapsibleContent=
|
|
3806
|
+
`}},o.CollapsibleContent=ds([l.customElement("rtg-collapsible-content")],o.CollapsibleContent);var us=Object.defineProperty,gs=Object.getOwnPropertyDescriptor,Fr=(a,e,r,n)=>{for(var t=n>1?void 0:n?gs(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&us(e,r,t),t};o.Collapsible=class extends h{constructor(){super(...arguments),this.open=!1,this._clickHandler=()=>{var e;(e=this.querySelector("rtg-collapsible-content"))==null||e.dispatchEvent(new CustomEvent("toggle-collapsible-content",{detail:{open:this.open}}))}}getAttributesToExclude(){return[""]}createRenderRoot(){return this}get _containerElement(){return this.querySelector("div[part=collapsible]")}firstUpdated(e){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 e=this.getFilteredAttributes();return d.html`
|
|
3778
3807
|
<div
|
|
3779
|
-
${
|
|
3808
|
+
${V(e)}
|
|
3780
3809
|
class="${p("",this.className)}"
|
|
3781
3810
|
part="collapsible"
|
|
3782
3811
|
></div>
|
|
3783
|
-
`}},
|
|
3812
|
+
`}},Fr([l.property({type:Boolean})],o.Collapsible.prototype,"open",2),o.Collapsible=Fr([l.customElement("rtg-collapsible")],o.Collapsible);const ps="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",hs="rtg-flex rtg-flex-col-reverse sm:rtg-flex-row sm:rtg-justify-end sm:rtg-space-x-2",ms="rtg-flex rtg-flex-col rtg-space-y-1.5 rtg-text-center sm:rtg-text-left",vs="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,bs=Object.getOwnPropertyDescriptor,Gr=(a,e,r,n)=>{for(var t=n>1?void 0:n?bs(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&fs(e,r,t),t};const Nt="closed";o.DialogContent=class extends h{constructor(){super(...arguments),this.state=Nt,this.handleCloseButtonClick=()=>{const e=this._dialog;e&&(e.dataset.state=Nt)}}get _containerElement(){return this.querySelector("div[part=dialog-content-slot]")}get ـcomponentElement(){return this.querySelector("div[part=dialog-content]")}get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof o.Dialog)return e;e=e.parentElement}return e}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}updated(e){requestAnimationFrame(()=>{e.get("state")===Nt?this.ـcomponentElement.style.display="grid":this.ـcomponentElement.style.display="none"})}render(){return d.html`
|
|
3784
3813
|
<div
|
|
3785
3814
|
part="dialog-content"
|
|
3786
|
-
class="${p(
|
|
3815
|
+
class="${p(ps,this.className)}"
|
|
3787
3816
|
rtgdlg-content
|
|
3788
3817
|
>
|
|
3789
3818
|
<button
|
|
@@ -3810,17 +3839,17 @@ body {
|
|
|
3810
3839
|
</button>
|
|
3811
3840
|
<div part="dialog-content-slot"></div>
|
|
3812
3841
|
</div>
|
|
3813
|
-
`}},
|
|
3842
|
+
`}},Gr([l.property({attribute:"data-state",type:String})],o.DialogContent.prototype,"state",2),o.DialogContent=Gr([l.customElement("rtg-dialog-content")],o.DialogContent);var ys=Object.getOwnPropertyDescriptor,ws=(a,e,r,n)=>{for(var t=n>1?void 0:n?ys(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};const Cs="closed";o.DialogClose=class extends h{get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof o.Dialog)return e;e=e.parentElement}return e}get _containerElement(){return this.querySelector("div[part=dialog-close]")}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),this.addEventListener("click",()=>{const r=this._dialog;r&&(r.dataset.state=Cs)})}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}render(){return d.html`
|
|
3814
3843
|
<div class="${p("",this.className)}" part="dialog-close"></div>
|
|
3815
|
-
`}},o.DialogClose=
|
|
3844
|
+
`}},o.DialogClose=ws([l.customElement("rtg-dialog-close")],o.DialogClose);var _s=Object.getOwnPropertyDescriptor,Es=(a,e,r,n)=>{for(var t=n>1?void 0:n?_s(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.DialogFooter=class extends h{get _containerElement(){return this.querySelector("div[part=dialog-footer]")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3816
3845
|
<div
|
|
3817
3846
|
part="dialog-footer"
|
|
3818
|
-
class="${p(
|
|
3847
|
+
class="${p(hs,this.className)}"
|
|
3819
3848
|
></div>
|
|
3820
|
-
`}},o.DialogFooter=
|
|
3849
|
+
`}},o.DialogFooter=Es([l.customElement("rtg-dialog-footer")],o.DialogFooter);var xs=Object.defineProperty,$s=Object.getOwnPropertyDescriptor,Bt=(a,e,r,n)=>{for(var t=n>1?void 0:n?$s(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&xs(e,r,t),t};o.DialogHeader=class extends d.LitElement{constructor(){super(...arguments),this._title="",this.description=""}createRenderRoot(){return this}render(){return d.html`
|
|
3821
3850
|
<div
|
|
3822
3851
|
part="dialog-header"
|
|
3823
|
-
class="${p(
|
|
3852
|
+
class="${p(ms,this.className)}"
|
|
3824
3853
|
>
|
|
3825
3854
|
<h2
|
|
3826
3855
|
class="${p("rtg-text-lg rtg-font-semibold rtg-leading-none rtg-tracking-tight",this.className)}"
|
|
@@ -3833,18 +3862,18 @@ body {
|
|
|
3833
3862
|
${this.description}
|
|
3834
3863
|
</p>
|
|
3835
3864
|
</div>
|
|
3836
|
-
`}},
|
|
3865
|
+
`}},Bt([l.property({attribute:"title",type:String})],o.DialogHeader.prototype,"_title",2),Bt([l.property({type:String})],o.DialogHeader.prototype,"description",2),o.DialogHeader=Bt([l.customElement("rtg-dialog-header")],o.DialogHeader);var Os=Object.getOwnPropertyDescriptor,Ss=(a,e,r,n)=>{for(var t=n>1?void 0:n?Os(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.DialogOverlay=class extends d.LitElement{createRenderRoot(){return this}render(){return d.html`
|
|
3837
3866
|
<div
|
|
3838
3867
|
part="dialog-overly"
|
|
3839
|
-
class="${p(
|
|
3868
|
+
class="${p(vs,this.className)}"
|
|
3840
3869
|
></div>
|
|
3841
|
-
`}},o.DialogOverlay=
|
|
3870
|
+
`}},o.DialogOverlay=Ss([l.customElement("rtg-dialog-overlay")],o.DialogOverlay);var Ps=Object.getOwnPropertyDescriptor,Ds=(a,e,r,n)=>{for(var t=n>1?void 0:n?Ps(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};const Rs="open";o.DialogTrigger=class extends h{constructor(){super(...arguments),this.handleClick=()=>{const e=this._dialog;e&&(e.dataset.state=Rs)}}get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof o.Dialog)return e;e=e.parentElement}return e}get _containerElement(){return this.querySelector("div[part=dialog-trigger]")}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),this.addEventListener("click",r=>{r.stopPropagation(),this.handleClick()})}getAttributesToExclude(){return[]}createRenderRoot(){return this}render(){return d.html`
|
|
3842
3871
|
<div class="${p("",this.className)}" part="dialog-trigger"></div>
|
|
3843
|
-
`}},o.DialogTrigger=
|
|
3872
|
+
`}},o.DialogTrigger=Ds([l.customElement("rtg-dialog-trigger")],o.DialogTrigger);var Is=Object.defineProperty,ks=Object.getOwnPropertyDescriptor,Vr=(a,e,r,n)=>{for(var t=n>1?void 0:n?ks(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Is(e,r,t),t};const Ts="open",Ms="closed";o.Dialog=class extends h{constructor(){super(...arguments),this.state=Ms}get _containerElement(){return this.querySelector("div[rtgdlg-root]")}get _content(){const e=this.querySelector("rtg-dialog-content");return e||null}updated(e){super.updated(e);const r=this._content;r&&(r.dataset.state=this.state)}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}getAttributesToExclude(){return[]}render(){return d.html`
|
|
3844
3873
|
<div rtgdlg-root class="${p("",this.className)}" part="dialog">
|
|
3845
|
-
${this.state===
|
|
3874
|
+
${this.state===Ts?d.html` <rtg-dialog-overlay></rtg-dialog-overlay>`:d.nothing}
|
|
3846
3875
|
</div>
|
|
3847
|
-
`}},
|
|
3876
|
+
`}},Vr([l.property({attribute:"data-state",type:String})],o.Dialog.prototype,"state",2),o.Dialog=Vr([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,Ns=Object.getOwnPropertyDescriptor,qt=(a,e,r,n)=>{for(var t=n>1?void 0:n?Ns(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Ls(e,r,t),t};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`
|
|
3848
3877
|
<div
|
|
3849
3878
|
part="switch"
|
|
3850
3879
|
@click="${this._toggleChecked}"
|
|
@@ -3861,16 +3890,16 @@ body {
|
|
|
3861
3890
|
style="transform: translateX(${this.checked?"16px":"0px"});"
|
|
3862
3891
|
></div>
|
|
3863
3892
|
</div>
|
|
3864
|
-
`}},
|
|
3893
|
+
`}},qt([l.property({type:Boolean,reflect:!0})],o.Switch.prototype,"checked",2),qt([l.property({type:Boolean})],o.Switch.prototype,"disabled",2),o.Switch=qt([l.customElement("rtg-switch")],o.Switch);const Ut="closed",Bs="rtg-relative rtg-flex rtg-cursor-default rtg-select-none rtg-items-center rtg-rounded-sm rtg-px-2 rtg-py-1.5 rtg-text-sm rtg-outline-none aria-selected:rtg-bg-accent aria-selected:rtg-text-accent-foreground",qs="rtg-absolute rtg-flex rtg-h-full rtg-max-h-[300px] rtg-flex-col rtg-overflow-y-auto rtg-overflow-x-hidden rtg-rounded-md rtg-border rtg-bg-popover rtg-text-popover-foreground shadow-md",Us="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",zs="rtg-relative rtg-flex rtg-cursor-default rtg-select-none rtg-items-center rtg-rounded-sm rtg-px-2 rtg-py-1.5 rtg-text-sm rtg-outline-none aria-selected:rtg-bg-accent aria-selected:rtg-text-accent-foreground data-[disabled]:rtg-pointer-events-none data-[disabled]:rtg-opacity-50",Fs="rtg-relative rtg-flex rtg-cursor-default rtg-select-none rtg-items-center rtg-rounded-sm rtg-px-2 rtg-py-1.5 rtg-text-sm rtg-outline-none aria-selected:rtg-bg-accent aria-selected:rtg-text-accent-foreground",Gs="rtg-mx-1 rtg-h-px rtg-bg-border";var Vs=Object.defineProperty,Hs=Object.getOwnPropertyDescriptor,zt=(a,e,r,n)=>{for(var t=n>1?void 0:n?Hs(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Vs(e,r,t),t};o.DropdownMenuContent=class extends h{constructor(){super(...arguments),this.state=Ut,this.isOpen=!1}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof o.DropdownMenu);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=dropdown-menu-content]")}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3865
3894
|
<div
|
|
3866
3895
|
part="dropdown-menu-content"
|
|
3867
3896
|
class="${p(qs,this.className)}"
|
|
3868
3897
|
style="display: ${this.isOpen?"block":"none"};height:auto;z-index: 50"
|
|
3869
3898
|
></div>
|
|
3870
|
-
`}},
|
|
3899
|
+
`}},zt([l.property({attribute:"data-state",type:String})],o.DropdownMenuContent.prototype,"state",2),zt([l.state()],o.DropdownMenuContent.prototype,"isOpen",2),o.DropdownMenuContent=zt([l.customElement("rtg-dropdown-menu-content")],o.DropdownMenuContent);var Ys=Object.defineProperty,Ks=Object.getOwnPropertyDescriptor,et=(a,e,r,n)=>{for(var t=n>1?void 0:n?Ks(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Ys(e,r,t),t};o.DropdownMenuItem=class extends h{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1}get _containerElement(){return this.querySelector("div[part=dropdown-menu-item]")}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof o.DropdownMenu);)e=e.parentElement;return e}handleMouseEvent(e){console.log(e,this.value),(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}handleClickDefault(){this._dropdownMenu.isOpen=!1}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html` ${this._hidden==="true"?d.nothing:d.html`
|
|
3871
3900
|
<div
|
|
3872
3901
|
part="dropdown-menu-item"
|
|
3873
|
-
class="${p(
|
|
3902
|
+
class="${p(zs,this.className)}"
|
|
3874
3903
|
@mouseover="${this.handleMouseEvent}"
|
|
3875
3904
|
@mouseleave="${this.handleMouseEvent}"
|
|
3876
3905
|
@focus="${this.handleMouseEvent}"
|
|
@@ -3882,10 +3911,10 @@ body {
|
|
|
3882
3911
|
data-value="${this.value}"
|
|
3883
3912
|
aria-hidden="${this.hidden}"
|
|
3884
3913
|
></div>
|
|
3885
|
-
`}`}},
|
|
3914
|
+
`}`}},et([l.property({type:String})],o.DropdownMenuItem.prototype,"_id",2),et([l.property({attribute:"aria-hidden",type:String})],o.DropdownMenuItem.prototype,"_hidden",2),et([l.property({attribute:"data-value",type:String})],o.DropdownMenuItem.prototype,"value",1),et([l.property({type:Boolean})],o.DropdownMenuItem.prototype,"selected",2),o.DropdownMenuItem=et([l.customElement("rtg-dropdown-menu-item")],o.DropdownMenuItem);var Ws=Object.defineProperty,js=Object.getOwnPropertyDescriptor,xe=(a,e,r,n)=>{for(var t=n>1?void 0:n?js(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Ws(e,r,t),t};o.DropdownMenuRadioItem=class extends h{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _containerElement(){return this.querySelector("div[part=dropdown-menu-radio-item-container]")}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3886
3915
|
<div
|
|
3887
3916
|
part="dropdown-menu-radio"
|
|
3888
|
-
class="${p(
|
|
3917
|
+
class="${p(Fs,this.disabled?"rtg-pointer-events-none rtg-opacity-50":"",this.className)}"
|
|
3889
3918
|
@click=${this.toggleChecked}
|
|
3890
3919
|
@mouseover="${this.handleMouseEvent}"
|
|
3891
3920
|
@mouseleave="${this.handleMouseEvent}"
|
|
@@ -3901,19 +3930,19 @@ body {
|
|
|
3901
3930
|
<span
|
|
3902
3931
|
class="rtg-absolute rtg-left-2 rtg-flex rtg-items-center rtg-justify-center"
|
|
3903
3932
|
>
|
|
3904
|
-
${this.checked?d.html` ${
|
|
3933
|
+
${this.checked?d.html` ${It()} `:d.nothing}
|
|
3905
3934
|
</span>
|
|
3906
3935
|
<div part="dropdown-menu-radio-item-container"></div>
|
|
3907
3936
|
</div>
|
|
3908
|
-
`}},
|
|
3937
|
+
`}},xe([l.property({type:String})],o.DropdownMenuRadioItem.prototype,"_id",2),xe([l.property({attribute:"aria-hidden",type:String})],o.DropdownMenuRadioItem.prototype,"_hidden",2),xe([l.property({attribute:"data-value",type:String})],o.DropdownMenuRadioItem.prototype,"value",1),xe([l.property({type:Boolean})],o.DropdownMenuRadioItem.prototype,"selected",2),xe([l.property({type:Boolean})],o.DropdownMenuRadioItem.prototype,"checked",2),xe([l.property({type:Boolean})],o.DropdownMenuRadioItem.prototype,"disabled",2),o.DropdownMenuRadioItem=xe([l.customElement("rtg-dropdown-menu-radio-item")],o.DropdownMenuRadioItem);var Xs=Object.getOwnPropertyDescriptor,Zs=(a,e,r,n)=>{for(var t=n>1?void 0:n?Xs(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.DropdownMenuSeparator=class extends h{get _containerElement(){return this.querySelector("div[part=dropdown-menu-seperator]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`<div
|
|
3909
3938
|
part="dropdown-menu-seperator"
|
|
3910
|
-
class="${p(
|
|
3939
|
+
class="${p(Gs,this.className)}"
|
|
3911
3940
|
rtgcmd-separator
|
|
3912
3941
|
role="separator"
|
|
3913
|
-
></div>`}},o.DropdownMenuSeparator=
|
|
3942
|
+
></div>`}},o.DropdownMenuSeparator=Zs([l.customElement("rtg-dropdown-menu-separator")],o.DropdownMenuSeparator);var Qs=Object.defineProperty,Js=Object.getOwnPropertyDescriptor,Be=(a,e,r,n)=>{for(var t=n>1?void 0:n?Js(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Qs(e,r,t),t};o.DropdownMenuCheckboxItem=class extends h{constructor(){super(...arguments),this._id="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _containerElement(){return this.querySelector("div[part=dropdown-menu-checkbox-item-container]")}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof o.DropdownMenu);)e=e.parentElement;return e}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this._dropdownMenu.isOpen=!1,this.checked=!this.checked}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3914
3943
|
<div
|
|
3915
3944
|
part="dropdown-menu-item"
|
|
3916
|
-
class="${p(
|
|
3945
|
+
class="${p(Bs,this.disabled?"rtg-pointer-events-none rtg-opacity-50":"",this.className)}"
|
|
3917
3946
|
@click=${this.toggleChecked}
|
|
3918
3947
|
@mouseover="${this.handleMouseEvent}"
|
|
3919
3948
|
@mouseleave="${this.handleMouseEvent}"
|
|
@@ -3944,25 +3973,25 @@ body {
|
|
|
3944
3973
|
</span>
|
|
3945
3974
|
<div part="dropdown-menu-checkbox-item-container"></div>
|
|
3946
3975
|
</div>
|
|
3947
|
-
`}},
|
|
3976
|
+
`}},Be([l.property({type:String})],o.DropdownMenuCheckboxItem.prototype,"_id",2),Be([l.property({attribute:"data-value",type:String})],o.DropdownMenuCheckboxItem.prototype,"value",1),Be([l.property({type:Boolean})],o.DropdownMenuCheckboxItem.prototype,"selected",2),Be([l.property({type:Boolean})],o.DropdownMenuCheckboxItem.prototype,"checked",2),Be([l.property({type:Boolean})],o.DropdownMenuCheckboxItem.prototype,"disabled",2),o.DropdownMenuCheckboxItem=Be([l.customElement("rtg-dropdown-menu-checkbox-item")],o.DropdownMenuCheckboxItem);var el=Object.defineProperty,tl=Object.getOwnPropertyDescriptor,ct=(a,e,r,n)=>{for(var t=n>1?void 0:n?tl(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&el(e,r,t),t};o.DropdownMenuGroup=class extends h{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get _containerElement(){return this.querySelector("div[rtgcmd-group-items]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`${this._hidden==="true"?d.nothing:d.html`
|
|
3948
3977
|
<div
|
|
3949
3978
|
part="dropdown-menu-group"
|
|
3950
|
-
class="${p(
|
|
3979
|
+
class="${p(Us,this.className)}"
|
|
3951
3980
|
rtgcmd-group
|
|
3952
3981
|
role="presentation"
|
|
3953
3982
|
>
|
|
3954
3983
|
<div rtgcmd-group-heading>${this.heading}</div>
|
|
3955
3984
|
<div rtgcmd-group-items role="group"></div>
|
|
3956
3985
|
</div>
|
|
3957
|
-
`}`}},
|
|
3986
|
+
`}`}},ct([l.property({type:String})],o.DropdownMenuGroup.prototype,"heading",2),ct([l.property({attribute:"id",type:String})],o.DropdownMenuGroup.prototype,"_id",2),ct([l.property({attribute:"aria-hidden",type:String})],o.DropdownMenuGroup.prototype,"_hidden",2),o.DropdownMenuGroup=ct([l.customElement("rtg-dropdown-menu-group")],o.DropdownMenuGroup);var rl=Object.getOwnPropertyDescriptor,nl=(a,e,r,n)=>{for(var t=n>1?void 0:n?rl(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.DropdownMenuTrigger=class extends d.LitElement{createRenderRoot(){return this}render(){return d.html``}},o.DropdownMenuTrigger=nl([l.customElement("rtg-dropdown-menu-trigger")],o.DropdownMenuTrigger);var ol=Object.defineProperty,al=Object.getOwnPropertyDescriptor,Hr=(a,e,r,n)=>{for(var t=n>1?void 0:n?al(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&ol(e,r,t),t};o.DropdownMenu=class extends h{constructor(){super(...arguments),this.isOpen=!1,this.handleClickOutside=e=>{var n,t;const r=e.target;!((n=this._containerElement)!=null&&n.contains(r))&&!((t=this._triggerElement)!=null&&t.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(e){e.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(e){super.updated(e);const r=this._content;r&&(r.dataset.state=this.isOpen?"open":"close")}firstUpdated(e){var r;this.moveLightDomChildrenInto(this._containerElement),(r=this._triggerElement)==null||r.addEventListener("click",n=>this.toggleDropdown(n))}_handleRadioSelected(e){this.isOpen=!1,this.querySelectorAll("rtg-dropdown-menu-radio-item").forEach(r=>{r!==e.target&&(r.checked=!1)})}createRenderRoot(){return this}render(){return d.html`
|
|
3958
3987
|
<div
|
|
3959
3988
|
class="${p("rtg-w-fit",this.className)}"
|
|
3960
3989
|
part="dropdown-menu"
|
|
3961
3990
|
></div>
|
|
3962
|
-
`}},o.DropdownMenu._openInstance=null,
|
|
3991
|
+
`}},o.DropdownMenu._openInstance=null,Hr([l.state()],o.DropdownMenu.prototype,"isOpen",2),o.DropdownMenu=Hr([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 sl=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,$e=(a,e,r,n)=>{for(var t=n>1?void 0:n?ll(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&sl(e,r,t),t};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(e){this.value=this.defaultValue}handleInputChange(e){const r=e.target;this.value=r.value}getAttributesToExclude(){return["disabled","type","placeholder","value","data-testid"]}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return d.html`
|
|
3963
3992
|
<textarea
|
|
3964
3993
|
part="textarea"
|
|
3965
|
-
${
|
|
3994
|
+
${V(e)}
|
|
3966
3995
|
class="${p(il,this.className)}"
|
|
3967
3996
|
placeholder="${this.placeholder}"
|
|
3968
3997
|
.value=${this.value}
|
|
@@ -3971,9 +4000,9 @@ body {
|
|
|
3971
4000
|
?disabled=${this.disabled}
|
|
3972
4001
|
@change="${this.handleInputChange}"
|
|
3973
4002
|
/>
|
|
3974
|
-
`}},$
|
|
4003
|
+
`}},$e([l.property({type:Boolean})],o.TextArea.prototype,"disabled",2),$e([l.property({type:String})],o.TextArea.prototype,"placeholder",2),$e([l.property({type:String})],o.TextArea.prototype,"defaultValue",2),$e([l.property({type:Number})],o.TextArea.prototype,"rows",2),$e([l.property({type:Number})],o.TextArea.prototype,"cols",2),$e([l.property({type:String})],o.TextArea.prototype,"value",2),o.TextArea=$e([l.customElement("rtg-textarea")],o.TextArea);const cl="unChecked",dl="rtg-flex rtg-items-center rtg-space-x-2",ul="rtg-grid rtg-gap-2";var gl=Object.defineProperty,pl=Object.getOwnPropertyDescriptor,qe=(a,e,r,n)=>{for(var t=n>1?void 0:n?pl(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&gl(e,r,t),t};o.RadioGroupItem=class extends h{constructor(){super(...arguments),this.checked=!1,this.tabindex=0,this.value="",this.id="radio-group-item",this.state=cl}get _containerElement(){return this.querySelector("div[part=radio-group-item]")}_onClick(e){e.defaultPrevented||this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
3975
4004
|
<div
|
|
3976
|
-
class="${p(
|
|
4005
|
+
class="${p(dl,this.className)}"
|
|
3977
4006
|
part="radio-group-item"
|
|
3978
4007
|
>
|
|
3979
4008
|
<button
|
|
@@ -3992,7 +4021,7 @@ body {
|
|
|
3992
4021
|
data-state="checked"
|
|
3993
4022
|
class="rtg-flex rtg-items-center rtg-justify-center"
|
|
3994
4023
|
>
|
|
3995
|
-
${
|
|
4024
|
+
${ga()}
|
|
3996
4025
|
</span>`:d.nothing}
|
|
3997
4026
|
</button>
|
|
3998
4027
|
<label
|
|
@@ -4002,18 +4031,18 @@ body {
|
|
|
4002
4031
|
>${this.value}</label
|
|
4003
4032
|
>
|
|
4004
4033
|
</div>
|
|
4005
|
-
`}},
|
|
4034
|
+
`}},qe([l.property({type:Boolean,reflect:!0})],o.RadioGroupItem.prototype,"checked",2),qe([l.property({type:Number})],o.RadioGroupItem.prototype,"tabindex",2),qe([l.property({type:String})],o.RadioGroupItem.prototype,"value",2),qe([l.property({type:String})],o.RadioGroupItem.prototype,"id",2),qe([l.property({attribute:"data-state",type:String})],o.RadioGroupItem.prototype,"state",2),o.RadioGroupItem=qe([l.customElement("rtg-radio-group-item")],o.RadioGroupItem);var hl=Object.getOwnPropertyDescriptor,ml=(a,e,r,n)=>{for(var t=n>1?void 0:n?hl(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.RadioGroup=class extends h{get _containerElement(){return this.querySelector("div[part=radio-group]")}connectedCallback(){super.connectedCallback(),this.addEventListener("radio-selected",this._handleRadioSelected)}_handleRadioSelected(e){this.querySelectorAll("rtg-radio-group-item").forEach(r=>{r!==e.target&&(r.checked=!1)})}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4006
4035
|
<div
|
|
4007
4036
|
part="radio-group"
|
|
4008
|
-
class="${p(
|
|
4037
|
+
class="${p(ul,this.className)}"
|
|
4009
4038
|
style="outline: none;"
|
|
4010
4039
|
></div>
|
|
4011
|
-
`}},o.RadioGroup=
|
|
4040
|
+
`}},o.RadioGroup=ml([l.customElement("rtg-radio-group")],o.RadioGroup);const vl=Q("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",bl="rtg-flex rtg-h-9 rtg-w-9 rtg-items-center rtg-justify-center",yl="rtg-gap-1 rtg-pl-2.5",wl="rtg-gap-1 rtg-pl-2.5",Cl="rtg-mx-auto rtg-flex rtg-w-full rtg-justify-center";var _l=Object.getOwnPropertyDescriptor,El=(a,e,r,n)=>{for(var t=n>1?void 0:n?_l(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.PaginationContent=class extends h{get _containerElement(){return this.querySelector("ul[part=pagination-content]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4012
4041
|
<ul
|
|
4013
4042
|
part="pagination-content"
|
|
4014
4043
|
class="${p(fl,this.className)}"
|
|
4015
4044
|
></ul>
|
|
4016
|
-
`}},o.PaginationContent=
|
|
4045
|
+
`}},o.PaginationContent=El([l.customElement("rtg-pagination-content")],o.PaginationContent);var xl=Object.defineProperty,$l=Object.getOwnPropertyDescriptor,Ue=(a,e,r,n)=>{for(var t=n>1?void 0:n?$l(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&xl(e,r,t),t};o.PaginationLink=class extends h{constructor(){super(...arguments),this.state="close",this.isActive=!1,this.size="icon",this.variant="ghost",this.href="javascript:void(0)"}get _containerElement(){return this.querySelector("a[part=pagination-link]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}updated(e){super.updated(e),this.state==="open"?this.isActive=!0:this.isActive=!1}render(){return d.html`
|
|
4017
4046
|
<a
|
|
4018
4047
|
part="pagination-link"
|
|
4019
4048
|
data-state="${this.isActive}"
|
|
@@ -4023,16 +4052,16 @@ body {
|
|
|
4023
4052
|
class="${p(o.PaginationLink.paginationVariants({variant:this.isActive?"outline":"ghost",size:this.size,className:this.className}),this.className)}"
|
|
4024
4053
|
>
|
|
4025
4054
|
</a>
|
|
4026
|
-
`}},o.PaginationLink.paginationVariants=
|
|
4055
|
+
`}},o.PaginationLink.paginationVariants=vl,Ue([l.property({attribute:"data-state",type:String})],o.PaginationLink.prototype,"state",2),Ue([l.property({type:Boolean})],o.PaginationLink.prototype,"isActive",2),Ue([l.property({type:String})],o.PaginationLink.prototype,"size",2),Ue([l.property({type:String})],o.PaginationLink.prototype,"variant",2),Ue([l.property({type:String})],o.PaginationLink.prototype,"href",2),o.PaginationLink=Ue([l.customElement("rtg-pagination-link")],o.PaginationLink);var Ol=Object.defineProperty,Sl=Object.getOwnPropertyDescriptor,Ft=(a,e,r,n)=>{for(var t=n>1?void 0:n?Sl(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Ol(e,r,t),t};o.PaginationItem=class extends h{constructor(){super(...arguments),this.uniqueIds=[],this.isActive=!1}get _containerElement(){return this.querySelector("li[part=pagination-item]")}get _content(){var r;const e=(r=this._containerElement)==null?void 0:r.children;if(e){for(let n=0;n<e.length;n++)if(e[n]instanceof o.PaginationLink)return e[n]}return null}updated(e){super.updated(e);const r=this._content;r&&(r.dataset.state=this.isActive?"open":"close")}handleClick(e){e.stopPropagation(),document.querySelectorAll("rtg-pagination-item").forEach(n=>{n!==this&&(n.isActive=!1)}),this.isActive=!this.isActive}firstUpdated(){var n;this.moveLightDomChildrenInto(this._containerElement);const e=(n=this._containerElement)==null?void 0:n.children,r=[];for(let t=0;t<e.length-1;t+=1){const i=e[t],s=crypto.randomUUID();r.push(s),i.dataset.pairId=s}this.uniqueIds=r,this._content&&this._content.removeEventListener("unique-ids-generated",()=>{this.requestUpdate()})}raiseEvent(){const e=new CustomEvent("unique-ids-generated",{detail:{ids:this.uniqueIds},bubbles:!0,composed:!0});this.dispatchEvent(e)}createRenderRoot(){return this}render(){return d.html`
|
|
4027
4056
|
<li
|
|
4028
4057
|
@click="${this.handleClick}"
|
|
4029
4058
|
part="pagination-item"
|
|
4030
4059
|
class="${p("",this.className)}"
|
|
4031
4060
|
></li>
|
|
4032
|
-
`}},
|
|
4061
|
+
`}},Ft([l.state()],o.PaginationItem.prototype,"uniqueIds",2),Ft([l.property({type:Boolean})],o.PaginationItem.prototype,"isActive",2),o.PaginationItem=Ft([l.customElement("rtg-pagination-item")],o.PaginationItem);var Pl=Object.getOwnPropertyDescriptor,Dl=(a,e,r,n)=>{for(var t=n>1?void 0:n?Pl(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.PaginationEllipsis=class extends h{get _containerElement(){return this.querySelector("div[part=pagination-ellipsis]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4033
4062
|
<span
|
|
4034
4063
|
part="pagination-ellipsis"
|
|
4035
|
-
class="${p(
|
|
4064
|
+
class="${p(bl,this.className)}"
|
|
4036
4065
|
>
|
|
4037
4066
|
<svg
|
|
4038
4067
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -4054,9 +4083,9 @@ body {
|
|
|
4054
4083
|
</span>
|
|
4055
4084
|
<div part="pagination-ellipsis"></div>
|
|
4056
4085
|
</span>
|
|
4057
|
-
`}},o.PaginationEllipsis=
|
|
4086
|
+
`}},o.PaginationEllipsis=Dl([l.customElement("rtg-pagination-ellipsis")],o.PaginationEllipsis);var Rl=Object.getOwnPropertyDescriptor,Il=(a,e,r,n)=>{for(var t=n>1?void 0:n?Rl(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.PaginationNext=class extends h{get _containerElement(){return this.querySelector("div[part=pagination-next]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4058
4087
|
<rtg-pagination-link
|
|
4059
|
-
class="${p(
|
|
4088
|
+
class="${p(yl,this.className)}"
|
|
4060
4089
|
aria-label="Go to next page"
|
|
4061
4090
|
size="default"
|
|
4062
4091
|
>
|
|
@@ -4077,9 +4106,9 @@ body {
|
|
|
4077
4106
|
</svg>
|
|
4078
4107
|
<div part="pagination-next"></div>
|
|
4079
4108
|
</rtg-pagination-link>
|
|
4080
|
-
`}},o.PaginationNext=
|
|
4109
|
+
`}},o.PaginationNext=Il([l.customElement("rtg-pagination-next")],o.PaginationNext);var kl=Object.getOwnPropertyDescriptor,Tl=(a,e,r,n)=>{for(var t=n>1?void 0:n?kl(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.PaginationPrevious=class extends h{get _containerElement(){return this.querySelector("div[part=pagination-previous]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4081
4110
|
<rtg-pagination-link
|
|
4082
|
-
class="${p(
|
|
4111
|
+
class="${p(wl,this.className)}"
|
|
4083
4112
|
aria-label="Go to previous page"
|
|
4084
4113
|
size="default"
|
|
4085
4114
|
>
|
|
@@ -4100,14 +4129,14 @@ body {
|
|
|
4100
4129
|
<span>Previous</span>
|
|
4101
4130
|
<div part="pagination-previous"></div>
|
|
4102
4131
|
</rtg-pagination-link>
|
|
4103
|
-
`}},o.PaginationPrevious=
|
|
4132
|
+
`}},o.PaginationPrevious=Tl([l.customElement("rtg-pagination-previous")],o.PaginationPrevious);var Ml=Object.getOwnPropertyDescriptor,Al=(a,e,r,n)=>{for(var t=n>1?void 0:n?Ml(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.Pagination=class extends h{get _containerElement(){return this.querySelector("nav[part=pagination]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4104
4133
|
<nav
|
|
4105
4134
|
part="pagination"
|
|
4106
4135
|
role="navigation"
|
|
4107
4136
|
aria-label="pagination"
|
|
4108
|
-
class="${p(
|
|
4137
|
+
class="${p(Cl,this.className)}"
|
|
4109
4138
|
></nav>
|
|
4110
|
-
`}},o.Pagination=Al([l.customElement("rtg-pagination")],o.Pagination);var Ll=Object.defineProperty,
|
|
4139
|
+
`}},o.Pagination=Al([l.customElement("rtg-pagination")],o.Pagination);var Ll=Object.defineProperty,Nl=Object.getOwnPropertyDescriptor,Yr=(a,e,r,n)=>{for(var t=n>1?void 0:n?Nl(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Ll(e,r,t),t};const Bl="open",Kr="closed";o.DrawerContent=class extends h{constructor(){super(...arguments),this.state=Kr}connectedCallback(){super.connectedCallback();const e=document.createElement("style");e.textContent=`
|
|
4111
4140
|
@keyframes slideInUp {
|
|
4112
4141
|
from { transform: translateY(100%); }
|
|
4113
4142
|
to { transform: translateY(0); }
|
|
@@ -4127,7 +4156,7 @@ body {
|
|
|
4127
4156
|
.drawer-closed {
|
|
4128
4157
|
animation: slideOutDown 0.5s cubic-bezier(0.32, 0.72, 0, 1) forwards;
|
|
4129
4158
|
}
|
|
4130
|
-
`,this.querySelector("style[data-injected]")||(
|
|
4159
|
+
`,this.querySelector("style[data-injected]")||(e.setAttribute("data-injected","true"),this.prepend(e))}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(e){this.moveLightDomChildrenInto(this._containerElement)}updated(e){requestAnimationFrame(()=>{e.get("state")===Kr?this.ـcomponentElement.style.display="grid":this.ـcomponentElement.style.display="none"})}render(){return d.html`
|
|
4131
4160
|
<div
|
|
4132
4161
|
part="drawer-content"
|
|
4133
4162
|
style="border-top-left-radius: 10px;
|
|
@@ -4142,55 +4171,55 @@ body {
|
|
|
4142
4171
|
display: flex;
|
|
4143
4172
|
height: auto;
|
|
4144
4173
|
flex-direction: column;"
|
|
4145
|
-
class="${p("rtg-border rtg-bg-background",this.state===
|
|
4174
|
+
class="${p("rtg-border rtg-bg-background",this.state===Bl?"drawer-open":"drawer-closed",this.className)}"
|
|
4146
4175
|
rtgdlg-content
|
|
4147
4176
|
>
|
|
4148
4177
|
<div part="drawer-content-slot"></div>
|
|
4149
4178
|
</div>
|
|
4150
|
-
`}},
|
|
4179
|
+
`}},Yr([l.property({attribute:"data-state",type:String})],o.DrawerContent.prototype,"state",2),o.DrawerContent=Yr([l.customElement("rtg-drawer-content")],o.DrawerContent);var ql=Object.getOwnPropertyDescriptor,Ul=(a,e,r,n)=>{for(var t=n>1?void 0:n?ql(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};const zl="closed";o.DrawerClose=class extends h{get _drawer(){let e=this.parentElement;for(;e;){if(e instanceof o.Drawer)return e;e=e.parentElement}return e}get _containerElement(){return this.querySelector("div[part=drawer-close]")}async firstUpdated(e){super.firstUpdated(e),await this.updateComplete;const r=this._containerElement;if(r){this.moveLightDomChildrenInto(r);const n=r.querySelector("button, [data-close], [role=button]");n&&n.addEventListener("click",t=>{t.stopPropagation();const i=this._drawer;i&&(i.dataset.state=zl)})}}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}render(){return d.html`
|
|
4151
4180
|
<div class="${p("",this.className)}" part="drawer-close"></div>
|
|
4152
|
-
`}},o.DrawerClose=
|
|
4181
|
+
`}},o.DrawerClose=Ul([l.customElement("rtg-drawer-close")],o.DrawerClose);const Fl="rtg-text-sm rtg-text-muted-foreground",Gl="rtg-mt-auto rtg-flex rtg-flex-col rtg-gap-2 rtg-p-4",Vl="rtg-grid rtg-gap-1.5 rtg-p-4 rtg-text-center sm:rtg-text-left",Hl="rtg-fixed rtg-inset-0 rtg-z-50 rtg-bg-black/80",Yl="rtg-text-lg rtg-font-semibold rtg-leading-none rtg-tracking-tight";var Kl=Object.getOwnPropertyDescriptor,Wl=(a,e,r,n)=>{for(var t=n>1?void 0:n?Kl(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.DrawerFooter=class extends h{get _containerElement(){return this.querySelector("div[part=drawer-footer]")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4153
4182
|
<div
|
|
4154
4183
|
part="drawer-footer"
|
|
4155
|
-
class="${p(
|
|
4184
|
+
class="${p(Gl,this.className)}"
|
|
4156
4185
|
></div>
|
|
4157
|
-
`}},o.DrawerFooter=
|
|
4186
|
+
`}},o.DrawerFooter=Wl([l.customElement("rtg-drawer-footer")],o.DrawerFooter);var jl=Object.defineProperty,Xl=Object.getOwnPropertyDescriptor,Gt=(a,e,r,n)=>{for(var t=n>1?void 0:n?Xl(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&jl(e,r,t),t};o.DrawerHeader=class extends d.LitElement{constructor(){super(...arguments),this._title="",this.description=""}createRenderRoot(){return this}render(){return d.html`
|
|
4158
4187
|
<div
|
|
4159
4188
|
part="drawer-header"
|
|
4160
|
-
class="${p(
|
|
4189
|
+
class="${p(Vl,this.className)}"
|
|
4161
4190
|
></div>
|
|
4162
|
-
`}},
|
|
4191
|
+
`}},Gt([l.property({attribute:"title",type:String})],o.DrawerHeader.prototype,"_title",2),Gt([l.property({type:String})],o.DrawerHeader.prototype,"description",2),o.DrawerHeader=Gt([l.customElement("rtg-drawer-header")],o.DrawerHeader);var Zl=Object.defineProperty,Ql=Object.getOwnPropertyDescriptor,Wr=(a,e,r,n)=>{for(var t=n>1?void 0:n?Ql(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Zl(e,r,t),t};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(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4163
4192
|
<h2
|
|
4164
4193
|
part="drawer-title"
|
|
4165
4194
|
style="margin-left:16px"
|
|
4166
|
-
class="${p(
|
|
4195
|
+
class="${p(Yl,this.className)}"
|
|
4167
4196
|
>
|
|
4168
4197
|
${this.title}
|
|
4169
4198
|
</h2>
|
|
4170
|
-
`}},
|
|
4199
|
+
`}},Wr([l.property({type:String})],o.DrawerTitle.prototype,"title",2),o.DrawerTitle=Wr([l.customElement("rtg-drawer-title")],o.DrawerTitle);var Jl=Object.getOwnPropertyDescriptor,ec=(a,e,r,n)=>{for(var t=n>1?void 0:n?Jl(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.DrawerOverlay=class extends d.LitElement{createRenderRoot(){return this}render(){return d.html`
|
|
4171
4200
|
<div
|
|
4172
4201
|
part="drawer-overly"
|
|
4173
|
-
class="${p(
|
|
4202
|
+
class="${p(Hl,this.className)}"
|
|
4174
4203
|
></div>
|
|
4175
|
-
`}},o.DrawerOverlay=
|
|
4204
|
+
`}},o.DrawerOverlay=ec([l.customElement("rtg-drawer-overlay")],o.DrawerOverlay);var tc=Object.getOwnPropertyDescriptor,rc=(a,e,r,n)=>{for(var t=n>1?void 0:n?tc(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};const nc="open";o.DrawerTrigger=class extends h{constructor(){super(...arguments),this.handleClick=()=>{const e=this._drawer;e&&(e.dataset.state=nc)}}get _drawer(){let e=this.parentElement;for(;e;){if(e instanceof o.Drawer)return e;e=e.parentElement}return e}get _containerElement(){return this.querySelector("div[part=drawer-trigger]")}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),this.addEventListener("click",r=>{r.stopPropagation(),this.handleClick()})}getAttributesToExclude(){return[]}createRenderRoot(){return this}render(){return d.html`
|
|
4176
4205
|
<div class="${p("",this.className)}" part="drawer-trigger"></div>
|
|
4177
|
-
`}},o.DrawerTrigger=
|
|
4206
|
+
`}},o.DrawerTrigger=rc([l.customElement("rtg-drawer-trigger")],o.DrawerTrigger);var oc=Object.defineProperty,ac=Object.getOwnPropertyDescriptor,jr=(a,e,r,n)=>{for(var t=n>1?void 0:n?ac(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&oc(e,r,t),t};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(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4178
4207
|
<p
|
|
4179
4208
|
part="drawer-description"
|
|
4180
4209
|
style="margin-left:16px"
|
|
4181
|
-
class="${p(
|
|
4210
|
+
class="${p(Fl,this.className)}"
|
|
4182
4211
|
>
|
|
4183
4212
|
${this.description}
|
|
4184
4213
|
</p>
|
|
4185
|
-
`}},
|
|
4214
|
+
`}},jr([l.property({type:String})],o.DrawerDescription.prototype,"description",2),o.DrawerDescription=jr([l.customElement("rtg-drawer-description")],o.DrawerDescription);var ic=Object.defineProperty,sc=Object.getOwnPropertyDescriptor,Xr=(a,e,r,n)=>{for(var t=n>1?void 0:n?sc(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&ic(e,r,t),t};const Vt="open",Zr="closed";o.Drawer=class extends h{constructor(){super(...arguments),this.state=Zr,this.handleOutsideClick=e=>{const r=this._content;this.state===Vt&&r&&(r.contains(e.target)||(this.state=Zr,this.dispatchEvent(new CustomEvent("drawer-close"))))}}get _containerElement(){return this.querySelector("div[rtgdlg-root]")}get _content(){const e=this.querySelector("rtg-drawer-content");return e||null}connectedCallback(){super.connectedCallback(),this.setupOutsideClickHandler()}disconnectedCallback(){super.disconnectedCallback(),this.removeOutsideClickHandler()}updated(e){super.updated(e);const r=this._content;r&&(r.dataset.state=this.state),e.has("state")&&this.setupOutsideClickHandler()}setupOutsideClickHandler(){this.state===Vt?document.addEventListener("click",this.handleOutsideClick):this.removeOutsideClickHandler()}removeOutsideClickHandler(){document.removeEventListener("click",this.handleOutsideClick)}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}getAttributesToExclude(){return[]}render(){return d.html`
|
|
4186
4215
|
<div class="${p("",this.className)}" rtgdlg-root part="drawer">
|
|
4187
|
-
${this.state===
|
|
4216
|
+
${this.state===Vt?d.html` <rtg-drawer-overlay></rtg-drawer-overlay>`:d.nothing}
|
|
4188
4217
|
</div>
|
|
4189
|
-
`}},Xr([l.property({attribute:"data-state",type:String})],o.Drawer.prototype,"state",2),o.Drawer=Xr([l.customElement("rtg-drawer")],o.Drawer);const
|
|
4218
|
+
`}},Xr([l.property({attribute:"data-state",type:String})],o.Drawer.prototype,"state",2),o.Drawer=Xr([l.customElement("rtg-drawer")],o.Drawer);const lc="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",cc="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",dc="rtg-px-4 rtg-w-full rtg-text-base rtg-font-bold",uc="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",gc="rtg-mx-1 rtg-h-px rtg-bg-border",pc="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",hc="rtg-line-clamp-1 rtg-flex rtg-w-[180px]";var mc=Object.defineProperty,vc=Object.getOwnPropertyDescriptor,Oe=(a,e,r,n)=>{for(var t=n>1?void 0:n?vc(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&mc(e,r,t),t};o.SelectItem=class extends h{constructor(){super(...arguments),this.value="",this.isSelected=!1,this.isFocus=!1,this.selectItemIndex=-1,this.onSelect=(e,r)=>{},this.class="",this._onStoreChange=()=>{var e,r;this.isSelected=this.value.toLowerCase()===((r=(e=this._select.selectStore.selectedValue)==null?void 0:e.toLowerCase)==null?void 0:r.call(e)),this.requestUpdate()},this.handleClick=e=>{e.stopPropagation(),this._select.selectStore.select(this.value),this.onSelect(this.value,this.selectItemIndex),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0}))}}get _select(){let e=this.parentElement;for(;e&&!(e instanceof o.Select);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this._onStoreChange)}disconnectedCallback(){this._select.selectStore.unsubscribe(this._onStoreChange),super.disconnectedCallback()}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}get _containerElement(){return this.querySelector("div[part=select-item-container]")}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return d.html`
|
|
4190
4219
|
<div
|
|
4191
|
-
${
|
|
4220
|
+
${V(e)}
|
|
4192
4221
|
@click=${this.handleClick}
|
|
4193
|
-
class="${p(this.isFocus?"rtg-bg-gray-100":"",
|
|
4222
|
+
class="${p(this.isFocus?"rtg-bg-gray-100":"",cc,this.className)}"
|
|
4194
4223
|
data-hs-select-value=${this.value}
|
|
4195
4224
|
aria-selected="${this.isSelected}"
|
|
4196
4225
|
data-selected="${this.isSelected}"
|
|
@@ -4199,63 +4228,63 @@ body {
|
|
|
4199
4228
|
<span
|
|
4200
4229
|
class="${this.isSelected?"rtg-visible":"rtg-invisible"} hs-select-selected:rtg-block rtg-mr-2"
|
|
4201
4230
|
>
|
|
4202
|
-
${
|
|
4231
|
+
${Pr()}
|
|
4203
4232
|
</span>
|
|
4204
4233
|
</div>
|
|
4205
|
-
`}},
|
|
4234
|
+
`}},Oe([l.property()],o.SelectItem.prototype,"value",2),Oe([l.property()],o.SelectItem.prototype,"isSelected",2),Oe([l.property()],o.SelectItem.prototype,"isFocus",2),Oe([l.property()],o.SelectItem.prototype,"selectItemIndex",2),Oe([l.property({type:Function})],o.SelectItem.prototype,"onSelect",2),Oe([l.property()],o.SelectItem.prototype,"class",2),o.SelectItem=Oe([l.customElement("rtg-select-item")],o.SelectItem);var fc=Object.defineProperty,bc=Object.getOwnPropertyDescriptor,Ht=(a,e,r,n)=>{for(var t=n>1?void 0:n?bc(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&fc(e,r,t),t};o.SelectList=class extends h{constructor(){super(...arguments),this.state=Ut,this.isOpen=!1}get _containerElement(){return this.querySelector("div[part=select-list]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}render(){return d.html`
|
|
4206
4235
|
<div
|
|
4207
4236
|
part="select-list"
|
|
4208
|
-
class="${p(
|
|
4237
|
+
class="${p(uc,this.className)}"
|
|
4209
4238
|
data-hs-combo-box-output=""
|
|
4210
4239
|
data-state="${this.state}"
|
|
4211
4240
|
style="display: ${this.isOpen?"block":"none"}; top:115%"
|
|
4212
4241
|
></div>
|
|
4213
|
-
`}},
|
|
4242
|
+
`}},Ht([l.property({attribute:"data-state",type:String})],o.SelectList.prototype,"state",2),Ht([l.state()],o.SelectList.prototype,"isOpen",2),o.SelectList=Ht([l.customElement("rtg-select-list")],o.SelectList);var yc=Object.getOwnPropertyDescriptor,wc=(a,e,r,n)=>{for(var t=n>1?void 0:n?yc(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.SelectLabel=class extends h{get _containerElement(){return this.querySelector("span[part=select-label]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}render(){return d.html`
|
|
4214
4243
|
<span
|
|
4215
4244
|
part="select-label"
|
|
4216
|
-
class="${p(
|
|
4245
|
+
class="${p(dc,this.className)}"
|
|
4217
4246
|
>
|
|
4218
4247
|
</span>
|
|
4219
|
-
`}},o.SelectLabel=
|
|
4248
|
+
`}},o.SelectLabel=wc([l.customElement("rtg-select-label")],o.SelectLabel);var Cc=Object.defineProperty,_c=Object.getOwnPropertyDescriptor,Yt=(a,e,r,n)=>{for(var t=n>1?void 0:n?_c(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Cc(e,r,t),t};o.SelectSeperator=class extends d.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}createRenderRoot(){return this}render(){return d.html`
|
|
4220
4249
|
<div
|
|
4221
|
-
class="${p(
|
|
4250
|
+
class="${p(gc,this.className)}"
|
|
4222
4251
|
part="select-separator"
|
|
4223
4252
|
rtgcmd-separator
|
|
4224
4253
|
role="separator"
|
|
4225
4254
|
></div>
|
|
4226
|
-
`}},
|
|
4255
|
+
`}},Yt([l.property({type:String})],o.SelectSeperator.prototype,"_id",2),Yt([l.property({attribute:"aria-hidden",type:String})],o.SelectSeperator.prototype,"_hidden",2),o.SelectSeperator=Yt([l.customElement("rtg-select-separator")],o.SelectSeperator);var Ec=Object.getOwnPropertyDescriptor,xc=(a,e,r,n)=>{for(var t=n>1?void 0:n?Ec(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.SelectTrigger=class extends h{constructor(){super(...arguments),this.onStoreChange=()=>{this.requestUpdate()},this.handleClick=e=>{e.stopPropagation(),this._select&&this._select.selectStore.toggle()}}get _select(){let e=this.parentElement;for(;e&&!(e instanceof o.Select);)e=e.parentElement;return e}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(e){var r;super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),(r=this._containerElement)==null||r.addEventListener("click",this.handleClick)}createRenderRoot(){return this}getAttributesToExclude(){return["data-testid"]}render(){return d.html`
|
|
4227
4256
|
<button
|
|
4228
4257
|
type="button"
|
|
4229
4258
|
part="select-trigger"
|
|
4230
4259
|
role="tab"
|
|
4231
|
-
class="${p(
|
|
4260
|
+
class="${p(pc,this.className)}"
|
|
4232
4261
|
tabindex="-1"
|
|
4233
4262
|
data-orientation="horizontal"
|
|
4234
4263
|
data-radix-collection-item=""
|
|
4235
4264
|
@click="${this.handleClick}"
|
|
4236
4265
|
>
|
|
4237
4266
|
<div part="select-trigger-container"></div>
|
|
4238
|
-
${
|
|
4267
|
+
${Dr()}
|
|
4239
4268
|
</button>
|
|
4240
|
-
`}},o.SelectTrigger=xc([l.customElement("rtg-select-trigger")],o.SelectTrigger);var
|
|
4269
|
+
`}},o.SelectTrigger=xc([l.customElement("rtg-select-trigger")],o.SelectTrigger);var $c=Object.defineProperty,Oc=Object.getOwnPropertyDescriptor,Qr=(a,e,r,n)=>{for(var t=n>1?void 0:n?Oc(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&$c(e,r,t),t};o.SelectGroup=class extends h{constructor(){super(...arguments),this.focusedIndex=0,this.childrenArray=[],this.onStoreChange=()=>{const e=this._containerElement;e&&(e.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=e=>{if(this._select.selectStore.isOpen)switch(e.preventDefault(),e.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 e=this.parentElement;for(;e&&!(e instanceof o.Select);)e=e.parentElement;return e}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 e=Array.from(this.children).filter(r=>r.tagName.toLowerCase()==="rtg-select-item");this.childrenArray=e,e.forEach((r,n)=>{r.tabIndex=n,r.selectItemIndex=n,r.isFocus=n===this.focusedIndex||r.value===this._select.selectStore.selectedValue,r.addEventListener("mouseover",t=>this.handleMouseOver(t,n))}),this.moveLightDomChildrenInto(this._containerElement)}updateFocusedItem(){this.childrenArray.forEach((e,r)=>{var n;e.isFocus=r===this.focusedIndex,(n=e.requestUpdate)==null||n.call(e)})}handleMouseOver(e,r){e.preventDefault(),this.focusedIndex=r}createRenderRoot(){return this}render(){return d.html`
|
|
4241
4270
|
<div
|
|
4242
4271
|
part="select-group"
|
|
4243
|
-
class="${p(
|
|
4272
|
+
class="${p(lc,this.className)}"
|
|
4244
4273
|
style="display: none"
|
|
4245
4274
|
></div>
|
|
4246
|
-
`}},Qr([l.state()],o.SelectGroup.prototype,"focusedIndex",2),o.SelectGroup=Qr([l.customElement("rtg-select-group")],o.SelectGroup);var
|
|
4247
|
-
<span part="select-value" class="${p(
|
|
4275
|
+
`}},Qr([l.state()],o.SelectGroup.prototype,"focusedIndex",2),o.SelectGroup=Qr([l.customElement("rtg-select-group")],o.SelectGroup);var Sc=Object.defineProperty,Pc=Object.getOwnPropertyDescriptor,Jr=(a,e,r,n)=>{for(var t=n>1?void 0:n?Pc(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Sc(e,r,t),t};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 e=this.parentElement;for(;e&&!(e instanceof o.Select);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this.onStoreChange),document.addEventListener("clicked-select-item",()=>{this.requestUpdate()})}disconnectedCallback(){this._select.selectStore.unsubscribe(this.onStoreChange)}firstUpdated(e){super.firstUpdated(e)}createRenderRoot(){return this}render(){return d.html`
|
|
4276
|
+
<span part="select-value" class="${p(hc,this.className)}"
|
|
4248
4277
|
>${this.renderLabel()}</span
|
|
4249
4278
|
>
|
|
4250
|
-
`}},
|
|
4279
|
+
`}},Jr([l.property({type:String})],o.SelectValue.prototype,"placeholder",2),o.SelectValue=Jr([l.customElement("rtg-select-value")],o.SelectValue);class Dc{constructor(){this.state={isOpen:!1,selectedValue:""},this.listeners=new Set}subscribe(e){this.listeners.add(e)}unsubscribe(e){this.listeners.delete(e)}notify(){this.listeners.forEach(e=>e())}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(e,r){this.state.selectedValue=e,this.state.isOpen=!1,this.notify()}}var Rc=Object.getOwnPropertyDescriptor,Ic=(a,e,r,n)=>{for(var t=n>1?void 0:n?Rc(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.Select=class extends h{constructor(){super(...arguments),this.uuid=Ot(),this.selectStore=new Dc,this.handleClickOutside=e=>{const r=this.querySelector("[data-select-uuid]"),n=e.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 e=this.querySelector("div[part=select]");this.moveLightDomChildrenInto(e)}createRenderRoot(){return this}render(){return d.html`<div
|
|
4251
4280
|
part="select"
|
|
4252
4281
|
class="${p("rtg-relative",this.className)}"
|
|
4253
4282
|
data-select-uuid=${this.uuid}
|
|
4254
|
-
></div>`}},o.Select=
|
|
4283
|
+
></div>`}},o.Select=Ic([l.customElement("rtg-select")],o.Select);const kc=Q("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"}}),Tc=Q("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"}}),Mc="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",Nc="rtg-text-sm rtg-font-semibold [&+div]:rtg-text-xs";var Bc=Object.defineProperty,qc=Object.getOwnPropertyDescriptor,Kt=(a,e,r,n)=>{for(var t=n>1?void 0:n?qc(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Bc(e,r,t),t};const Wt="closed";o.ToastViewPort=class extends h{constructor(){super(...arguments),this.variant="default",this.state=Wt,this.handleCloseButtonClick=e=>{e.stopPropagation(),this.state=Wt,this.dispatchEvent(new CustomEvent("close-toast",{bubbles:!0}))}}get _containerElement(){return this.querySelector("li[part=toast-view-port-li]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html` <ol
|
|
4255
4284
|
part="toast-view-port"
|
|
4256
4285
|
tabindex="-1"
|
|
4257
|
-
@click="${
|
|
4258
|
-
class="${p(
|
|
4286
|
+
@click="${e=>e.stopPropagation()}"
|
|
4287
|
+
class="${p(Mc,this.className,`${this.state===Wt?"hidden":"block"} `)}"
|
|
4259
4288
|
>
|
|
4260
4289
|
<li
|
|
4261
4290
|
part="toast-view-port-li"
|
|
@@ -4274,39 +4303,39 @@ body {
|
|
|
4274
4303
|
class="${Ac}"
|
|
4275
4304
|
toast-close=""
|
|
4276
4305
|
data-radix-toast-announce-exclude=""
|
|
4277
|
-
@click="${
|
|
4306
|
+
@click="${e=>this.handleCloseButtonClick(e)}"
|
|
4278
4307
|
>
|
|
4279
|
-
${
|
|
4308
|
+
${pa()}
|
|
4280
4309
|
</button>
|
|
4281
4310
|
</li>
|
|
4282
|
-
</ol>`}},o.ToastViewPort.toastVariants=kc,
|
|
4311
|
+
</ol>`}},o.ToastViewPort.toastVariants=kc,Kt([l.property({type:String})],o.ToastViewPort.prototype,"variant",2),Kt([l.property({attribute:"data-state",type:String})],o.ToastViewPort.prototype,"state",2),o.ToastViewPort=Kt([l.customElement("rtg-toast-view-port")],o.ToastViewPort);var Uc=Object.defineProperty,zc=Object.getOwnPropertyDescriptor,en=(a,e,r,n)=>{for(var t=n>1?void 0:n?zc(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Uc(e,r,t),t};o.ToastAction=class extends h{constructor(){super(...arguments),this.variant="default"}get _containerElement(){return this.querySelector("button[part=toast-action]")}getAttributesToExclude(){return["click","type","variant"]}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}getFilteredAttributes(){const e=this.getAttributesToExclude(),r={};for(const n of this.attributes)e.includes(n.name)||(r[n.name]=n.value);return r}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return d.html`
|
|
4283
4312
|
<button
|
|
4284
|
-
${
|
|
4313
|
+
${V(e)}
|
|
4285
4314
|
part="toast-action"
|
|
4286
4315
|
type="button"
|
|
4287
4316
|
class="${p(o.ToastAction.toastVariants({variant:this.variant,className:this.className}),this.className,"rtg-w-max")}"
|
|
4288
4317
|
></button>
|
|
4289
|
-
`}},o.ToastAction.toastVariants=
|
|
4318
|
+
`}},o.ToastAction.toastVariants=Tc,en([l.property({type:String})],o.ToastAction.prototype,"variant",2),o.ToastAction=en([l.customElement("rtg-toast-action")],o.ToastAction);var Fc=Object.getOwnPropertyDescriptor,Gc=(a,e,r,n)=>{for(var t=n>1?void 0:n?Fc(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.ToastDescription=class extends h{get _containerElement(){return this.querySelector("div[part=toast-description]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4290
4319
|
<div
|
|
4291
4320
|
class="${p(Lc,this.className)}"
|
|
4292
4321
|
part="toast-description"
|
|
4293
4322
|
>
|
|
4294
4323
|
<slot></slot>
|
|
4295
4324
|
</div>
|
|
4296
|
-
`}},o.ToastDescription=
|
|
4325
|
+
`}},o.ToastDescription=Gc([l.customElement("rtg-toast-description")],o.ToastDescription);var Vc=Object.getOwnPropertyDescriptor,Hc=(a,e,r,n)=>{for(var t=n>1?void 0:n?Vc(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.ToastTitle=class extends h{get _containerElement(){return this.querySelector("div[part=toast-title]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4297
4326
|
<div
|
|
4298
4327
|
part="toast-title"
|
|
4299
|
-
class="${p(
|
|
4328
|
+
class="${p(Nc,this.className)}"
|
|
4300
4329
|
></div>
|
|
4301
|
-
`}},o.ToastTitle=
|
|
4330
|
+
`}},o.ToastTitle=Hc([l.customElement("rtg-toast-title")],o.ToastTitle);var Yc=Object.getOwnPropertyDescriptor,Kc=(a,e,r,n)=>{for(var t=n>1?void 0:n?Yc(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};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 e=this.parentElement;for(;e&&!(e instanceof o.Toast);)e=e.parentElement;return e}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}handleClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("open-toast",{bubbles:!0})),this._toast.isOpen=!0}render(){return d.html`
|
|
4302
4331
|
<div
|
|
4303
4332
|
@click=${this.handleClick}
|
|
4304
4333
|
part="toast-trigger"
|
|
4305
4334
|
class="${p(this.className)}"
|
|
4306
4335
|
></div>
|
|
4307
|
-
`}},o.ToastTrigger=
|
|
4336
|
+
`}},o.ToastTrigger=Kc([l.customElement("rtg-toast-trigger")],o.ToastTrigger);var Wc=Object.defineProperty,jc=Object.getOwnPropertyDescriptor,tn=(a,e,r,n)=>{for(var t=n>1?void 0:n?jc(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Wc(e,r,t),t};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(e){super.updated(e);const r=this._content;r&&(r.dataset.state=this.isOpen?"open":"closed")}firstUpdated(e){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 Zc=Object.defineProperty,Qc=Object.getOwnPropertyDescriptor,rn=(a,e,r,n)=>{for(var t=n>1?void 0:n?Qc(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Zc(e,r,t),t};o.TabList=class extends h{constructor(){super(...arguments),this.tabindex=0}get _tab(){let e=this.parentElement;for(;e&&!(e instanceof o.Tab);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=tab-list]")}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}connectedCallback(){var e;super.connectedCallback(),(e=this._tab)==null||e.addEventListener("tab-change",r=>{this.changeTabs(r.detail.selectedValue)})}disconnectedCallback(){super.disconnectedCallback(),this._tab&&this._tab.removeEventListener("tab-change",()=>{})}changeTabs(e){const r=this.getChildren();r.length>0&&r.forEach(n=>{if(n instanceof HTMLElement){const t=n.querySelector("button");t&&(t!=null&&t.value)&&(t.value.trim().toLowerCase()===e.trim().toLowerCase()?(t.setAttribute("aria-selected","true"),t.setAttribute("data-state","active")):(t.setAttribute("aria-selected","false"),t.setAttribute("data-state","inactive")))}})}getChildren(){return this.querySelectorAll("rtg-tab-trigger > div[part=tab-trigger]")||[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){const e=this.getFilteredAttributes();return Ce.html`
|
|
4308
4337
|
<div
|
|
4309
|
-
${
|
|
4338
|
+
${V(e)}
|
|
4310
4339
|
part="tab-list"
|
|
4311
4340
|
role="tablist"
|
|
4312
4341
|
data-orientation="horizontal"
|
|
@@ -4315,7 +4344,7 @@ body {
|
|
|
4315
4344
|
tabindex=${this.tabindex}
|
|
4316
4345
|
class="${p(Xc,this.className)}"
|
|
4317
4346
|
></div>
|
|
4318
|
-
`}},
|
|
4347
|
+
`}},rn([l.property({type:Number})],o.TabList.prototype,"tabindex",2),o.TabList=rn([l.customElement("rtg-tab-list")],o.TabList);var Jc=Object.defineProperty,ed=Object.getOwnPropertyDescriptor,dt=(a,e,r,n)=>{for(var t=n>1?void 0:n?ed(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Jc(e,r,t),t};o.TabsTrigger=class extends h{constructor(){super(...arguments),this.defaultValue="",this.value="",this.handleClick=e=>{var t;e.preventDefault(),e.stopPropagation();const r=e.target,n=(t=this.shadowRoot)==null?void 0:t.querySelector("button");if(n&&n.click(),r instanceof HTMLButtonElement){const i=r.getAttribute("value")??"";this.defaultValue=i,this._tab&&(this._tab.defaultValue=i,this._tab.raiseEvent()),this.onClickCallback&&this.onClickCallback(i)}}}get _tab(){let e=this.parentElement;for(;e&&!(e instanceof o.Tab);)e=e.parentElement;return e}get _tabList(){let e=this.parentElement;for(;e&&!(e instanceof o.TabList);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("button[part=tab-trigger-button]")}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),this._tab&&(this.defaultValue=this._tab.defaultValue)}getAttributesToExclude(){return["value","defaultValue","data-testid"]}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return Ce.html`
|
|
4319
4348
|
<div
|
|
4320
4349
|
part="tab-trigger"
|
|
4321
4350
|
role="tablist"
|
|
@@ -4326,7 +4355,7 @@ body {
|
|
|
4326
4355
|
style="outline: none;"
|
|
4327
4356
|
>
|
|
4328
4357
|
<button
|
|
4329
|
-
${
|
|
4358
|
+
${V(e)}
|
|
4330
4359
|
type="button"
|
|
4331
4360
|
role="tab"
|
|
4332
4361
|
part="tab-trigger-button"
|
|
@@ -4343,14 +4372,14 @@ body {
|
|
|
4343
4372
|
<slot></slot>
|
|
4344
4373
|
</button>
|
|
4345
4374
|
</div>
|
|
4346
|
-
`}},
|
|
4375
|
+
`}},dt([l.property({type:String})],o.TabsTrigger.prototype,"defaultValue",2),dt([l.property({type:String})],o.TabsTrigger.prototype,"value",2),dt([l.property({type:Function})],o.TabsTrigger.prototype,"onClickCallback",2),o.TabsTrigger=dt([l.customElement("rtg-tab-trigger")],o.TabsTrigger);var td=Object.defineProperty,rd=Object.getOwnPropertyDescriptor,jt=(a,e,r,n)=>{for(var t=n>1?void 0:n?rd(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&td(e,r,t),t};o.TabContent=class extends h{constructor(){super(...arguments),this.value="",this.selectedValue=""}get _tab(){let e=this.parentElement;for(;e&&!(e instanceof o.Tab);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=tab-content]")}updated(e){super.updated(e)}connectedCallback(){var e;super.connectedCallback(),(e=this._tab)==null||e.addEventListener("tab-change",r=>{this.selectedValue=r.detail.selectedValue,this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this._tab&&this._tab.removeEventListener("tab-change",()=>{})}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){const e=this._tab&&this._tab.defaultValue.toLocaleLowerCase()===this.value.toLocaleLowerCase();return Ce.html`
|
|
4347
4376
|
<div
|
|
4348
|
-
class="${p(
|
|
4377
|
+
class="${p(e?"rtg-block":"rtg-hidden",this.className)}"
|
|
4349
4378
|
part="tab-content"
|
|
4350
4379
|
></div>
|
|
4351
|
-
`}},
|
|
4380
|
+
`}},jt([l.property({type:String})],o.TabContent.prototype,"value",2),jt([l.state()],o.TabContent.prototype,"selectedValue",2),o.TabContent=jt([l.customElement("rtg-tab-content")],o.TabContent);var nd=Object.defineProperty,od=Object.getOwnPropertyDescriptor,Xt=(a,e,r,n)=>{for(var t=n>1?void 0:n?od(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&nd(e,r,t),t};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(e){super.updated(e),this.raiseEvent()}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}raiseEvent(){const e=new CustomEvent("tab-change",{bubbles:!0,composed:!0,detail:{selectedValue:this.defaultValue}});this.dispatchEvent(e)}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){const e=this.getFilteredAttributes();return Ce.html`
|
|
4352
4381
|
<div
|
|
4353
|
-
${
|
|
4382
|
+
${V(e)}
|
|
4354
4383
|
part="tab"
|
|
4355
4384
|
role="tab"
|
|
4356
4385
|
aria-orientation="horizontal"
|
|
@@ -4358,7 +4387,7 @@ body {
|
|
|
4358
4387
|
class="${p("",this.className)}"
|
|
4359
4388
|
tabindex=${this.tabindex}
|
|
4360
4389
|
></div>
|
|
4361
|
-
`}},
|
|
4390
|
+
`}},Xt([l.property({type:String})],o.Tab.prototype,"defaultValue",2),Xt([l.property({type:Number})],o.Tab.prototype,"tabindex",2),o.Tab=Xt([l.customElement("rtg-tab")],o.Tab);var Zt=(a=>(a.SMALL="sm",a.MEDIUM="md",a.LARGE="lg",a))(Zt||{}),Qt=(a=>(a.DEFAULT="default",a.OUTLINE="outline",a))(Qt||{});const ad=Q("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,sd=Object.getOwnPropertyDescriptor,ze=(a,e,r,n)=>{for(var t=n>1?void 0:n?sd(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&id(e,r,t),t};o.Toggle=class extends h{constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.required=!1,this.variant=Qt.DEFAULT,this.size=Zt.SMALL}get _containerElement(){return this.querySelector("button[part=toggle]")}getAttributesToExclude(){return["disabled","checked","variant","size","required","data-testid"]}toggle(){this.disabled||(this.checked=!this.checked)}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){const e=this.getFilteredAttributes();return Ce.html`
|
|
4362
4391
|
<button
|
|
4363
4392
|
type="button"
|
|
4364
4393
|
part="toggle"
|
|
@@ -4369,31 +4398,31 @@ body {
|
|
|
4369
4398
|
@click=${this.toggle}
|
|
4370
4399
|
?required=${this.required}
|
|
4371
4400
|
?disabled=${this.disabled}
|
|
4372
|
-
${
|
|
4401
|
+
${V(e)}
|
|
4373
4402
|
>
|
|
4374
4403
|
<slot></slot>
|
|
4375
4404
|
</button>
|
|
4376
|
-
`}},o.Toggle.toggleVariants=
|
|
4405
|
+
`}},o.Toggle.toggleVariants=ad,ze([l.property({type:Boolean})],o.Toggle.prototype,"disabled",2),ze([l.property({attribute:!0,type:Boolean,reflect:!0})],o.Toggle.prototype,"checked",2),ze([l.property({attribute:!0,type:Boolean,reflect:!0})],o.Toggle.prototype,"required",2),ze([l.property({attribute:!0,type:String})],o.Toggle.prototype,"variant",2),ze([l.property({attribute:!0,type:String})],o.Toggle.prototype,"size",2),o.Toggle=ze([l.customElement("rtg-toggle")],o.Toggle);var tt=(a=>(a.MULTIPLE="multiple",a.SINGLE="single",a))(tt||{}),ut=(a=>(a.DEFAULT="default",a.OUTLINE="outline",a))(ut||{}),gt=(a=>(a.SMALL="sm",a.MEDIUM="md",a.LARGE="lg",a))(gt||{});const ld=Q("rtg-inline-flex rtg-items-center rtg-justify-center rtg-rounded-md rtg-text-sm rtg-font-medium rtg-ring-offset-background rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-2 focus-visible:rtg-ring-ring focus-visible:rtg-ring-offset-2 disabled:rtg-pointer-events-none disabled:rtg-opacity-50 data-[state=on]:rtg-bg-accent data-[state=on]:rtg-text-accent-foreground rtg-bg-transparent rtg-h-10 rtg-px-3",{variants:{variant:{default:" hover:rtg-bg-muted hover:rtg-text-muted-foreground",outline:" rtg-border rtg-border-input hover:rtg-bg-accent hover:rtg-text-accent-foreground"},size:{sm:"rtg-h-9 rtg-px-2.5",md:"rtg-h-10 rtg-px-3",lg:"rtg-h-11 rtg-px-5"}},defaultVariants:{variant:"default",size:"sm"}}),cd="rtg-flex rtg-items-center rtg-justify-center rtg-gap-1";var dd=Object.defineProperty,ud=Object.getOwnPropertyDescriptor,Se=(a,e,r,n)=>{for(var t=n>1?void 0:n?ud(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&dd(e,r,t),t};let se=class extends h{constructor(){super(...arguments),this.checked=!1,this.id=Ot(),this.variant=ut.DEFAULT,this.size=gt.SMALL,this.disabled=!1,this.type=tt.SINGLE}get _parent(){let a=this.parentElement;for(;a&&!(a instanceof o.ToggleGroup);)a=a.parentElement;return a}get _containerElement(){return this.querySelector("button[part=toggle-group-item]")}get _siblings(){var e;return Array.from(((e=this.parentElement)==null?void 0:e.children)||[]).filter(r=>r!==this)}getAttributesToExclude(){return["disabled","type"]}createRenderRoot(){return this}firstUpdated(a){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(a){this.variant=this._parent.variant,this.size=this._parent.size,this.checked=this._parent.selectedItems.includes(this.id),this.type=this._parent.type}toggleSelection(a){try{if(this.disabled===!1){const e=this._parent.selectedItems.indexOf(a);this.type===tt.SINGLE?(e!==-1?this._parent.selectedItems.splice(e,1):this._parent.selectedItems[0]=a,this._siblings.forEach(r=>r.requestUpdate())):e!==-1?this._parent.selectedItems.splice(e,1):this._parent.selectedItems.push(a),this.requestUpdate()}}catch(e){console.log("error",e)}}render(){return Ce.html`
|
|
4377
4406
|
<button
|
|
4378
4407
|
part="toggle-group-item"
|
|
4379
4408
|
id=${this.id}
|
|
4380
4409
|
type="button"
|
|
4381
|
-
class="${p(
|
|
4410
|
+
class="${p(se.toggleGroupVariants({variant:this.variant,size:this.size,className:this.className}))}"
|
|
4382
4411
|
aria-label="Toggle bold"
|
|
4383
4412
|
aria-pressed=${this.checked}
|
|
4384
4413
|
data-state="${this.checked?"on":"off"}"
|
|
4385
4414
|
?disabled=${this.disabled}
|
|
4386
4415
|
@click=${()=>{this.toggleSelection(this.id)}}
|
|
4387
4416
|
></button>
|
|
4388
|
-
`}};
|
|
4417
|
+
`}};se.toggleGroupVariants=ld,Se([l.property({attribute:!0,type:Boolean,reflect:!0})],se.prototype,"checked",2),Se([l.property({attribute:!0,type:String,reflect:!0})],se.prototype,"id",2),Se([l.property({attribute:!0,type:String})],se.prototype,"variant",2),Se([l.property({attribute:!0,type:String})],se.prototype,"size",2),Se([l.property({type:Boolean})],se.prototype,"disabled",2),Se([l.property({type:String})],se.prototype,"type",2),se=Se([l.customElement("rtg-toggle-group-item")],se);var gd=Object.defineProperty,pd=Object.getOwnPropertyDescriptor,Pe=(a,e,r,n)=>{for(var t=n>1?void 0:n?pd(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&gd(e,r,t),t};o.ToggleGroup=class extends h{constructor(){super(...arguments),this.disabled=!1,this.type=tt.SINGLE,this.required=!1,this.variant=ut.DEFAULT,this.size=gt.SMALL,this.selectedItems=[]}get _containerElement(){return this.querySelector("div[part=toggle-group]")}getAttributesToExclude(){return["disabled","type","data-testid"]}connectedCallback(){super.connectedCallback()}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement)}updated(e){(e.has("variant")||e.has("size")||e.has("disabled")||e.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 e=this.getFilteredAttributes();return Ce.html`
|
|
4389
4418
|
<div
|
|
4390
4419
|
part="toggle-group"
|
|
4391
4420
|
role="group"
|
|
4392
|
-
${
|
|
4393
|
-
class="${p(
|
|
4421
|
+
${V(e)}
|
|
4422
|
+
class="${p(cd,this.className)}"
|
|
4394
4423
|
?disable="${this.disabled}"
|
|
4395
4424
|
></div>
|
|
4396
|
-
`}},
|
|
4425
|
+
`}},Pe([l.property({type:Boolean})],o.ToggleGroup.prototype,"disabled",2),Pe([l.property({type:String})],o.ToggleGroup.prototype,"type",2),Pe([l.property({attribute:!0,type:Boolean,reflect:!0})],o.ToggleGroup.prototype,"required",2),Pe([l.property({attribute:!0,type:String,reflect:!0})],o.ToggleGroup.prototype,"variant",2),Pe([l.property({attribute:!0,type:String})],o.ToggleGroup.prototype,"size",2),Pe([l.property({type:Array})],o.ToggleGroup.prototype,"selectedItems",2),o.ToggleGroup=Pe([l.customElement("rtg-toggle-group")],o.ToggleGroup);var hd=Object.defineProperty,md=Object.getOwnPropertyDescriptor,Fe=(a,e,r,n)=>{for(var t=n>1?void 0:n?md(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&hd(e,r,t),t};o.InputOtpSlot=class extends h{constructor(){super(...arguments),this.click=()=>{},this.index=0,this.isFirst=!1,this.isLast=!1,this.value=""}get _inputOtp(){let e=this.parentElement;for(;e&&!(e instanceof o.InputOtp);)e=e.parentElement;return e}firstUpdated(e){const r=this._inputOtp;r&&(r.inputes.push({index:r.inputes.length,value:"",isSelected:!1,userIndex:this.index}),r.addEventListener("selected-input",n=>{const t=this.querySelector(`input[name="input-${n.detail.selectedItems}"]`);t&&(t.focus(),n.detail.eventType==="changes"&&(t.value=""))}))}disconnectedCallback(){super.disconnectedCallback(),this._inputOtp&&this._inputOtp.removeEventListener("selected-input",()=>{})}getAttributesToExclude(){return[]}handleFocus(e){const r=this._inputOtp;if(!r)return;const n=r.inputes.findIndex(i=>i.value===""),t=this.index;if(n!==-1&&t>n){e.preventDefault(),e.stopImmediatePropagation();const i=n;r.raiseEvent(i,"focus")}}handleInputChange(e){const r=e.target;if(new RegExp(/^\d+$/).test(r.value)){const t=this._inputOtp;if(t){let i=t.inputes.findIndex(s=>s.index===this.index);t.inputes[i]={...t.inputes[i],value:r.value,isSelected:!1},i+1<t.inputes.length&&t.raiseEvent(i+1,"changes")}}else r.value=""}handleKeyDown(e){const r=e.target,n=this._inputOtp;if(!n)return;const t=n.inputes.findIndex(i=>i.index===this.index);switch(e.key){case"Backspace":{e.preventDefault();const i=r.value==="",s=n.inputes.find(w=>w.value===""),m=s!==void 0?n.inputes.indexOf(s):n.inputes.length;if(i&&t>=m){t>0&&n.raiseEvent(t-1,"focus");return}n.inputes[t].value="",r.value="";for(let w=t;w<n.inputes.length-1;w++){n.inputes[w].value=n.inputes[w+1].value;const x=n.querySelector(`input[name="input-${n.inputes[w].index}"]`);x&&(x.value=n.inputes[w].value)}const C=n.inputes[n.inputes.length-1];C.value="";const b=n.querySelector(`input[name="input-${C.index}"]`);b&&(b.value=""),n.raiseEvent(t,"focus");break}case"ArrowLeft":e.preventDefault(),t>0&&n.raiseEvent(t-1,"focus");break;case"ArrowRight":e.preventDefault(),t<n.maxLength-1&&n.raiseEvent(t+1,"focus");break}}handlePaste(e){var C;e.preventDefault();const r=this._inputOtp;if(!r)return;const t=(((C=e.clipboardData)==null?void 0:C.getData("text"))??"").replace(/\D/g,"").split("").slice(0);if(t.length===0)return;const i=r.inputes.findIndex(b=>b.index===this.index),s=r.maxLength-i;t.splice(s);for(let b=0;b<t.length;b++){const w=i+b;if(w>=r.maxLength)break;r.inputes[w].value=t[b];const x=r.querySelector(`input[name="input-${w}"]`);x&&(x.value=t[b])}const m=i+t.length;m<r.maxLength&&r.raiseEvent(m,"focus")}createRenderRoot(){return this}render(){const e={"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`
|
|
4397
4426
|
<input
|
|
4398
4427
|
part="input-otp-slot"
|
|
4399
4428
|
auto-complete="one-time-code"
|
|
@@ -4408,27 +4437,27 @@ body {
|
|
|
4408
4437
|
@keydown=${this.handleKeyDown}
|
|
4409
4438
|
@paste=${this.handlePaste}
|
|
4410
4439
|
style="outline: none"
|
|
4411
|
-
class=${Object.entries(
|
|
4440
|
+
class=${Object.entries(e).map(([r,n])=>n?r:void 0).join(" ")}
|
|
4412
4441
|
/>
|
|
4413
|
-
`}},
|
|
4442
|
+
`}},Fe([l.property({type:Function})],o.InputOtpSlot.prototype,"click",2),Fe([l.property({type:Number})],o.InputOtpSlot.prototype,"index",2),Fe([l.property({type:Boolean})],o.InputOtpSlot.prototype,"isFirst",2),Fe([l.property({type:Boolean})],o.InputOtpSlot.prototype,"isLast",2),Fe([l.property({type:String})],o.InputOtpSlot.prototype,"value",2),o.InputOtpSlot=Fe([l.customElement("rtg-input-otp-slot")],o.InputOtpSlot);var vd=Object.defineProperty,fd=Object.getOwnPropertyDescriptor,nn=(a,e,r,n)=>{for(var t=n>1?void 0:n?fd(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&vd(e,r,t),t};o.InputOtpGroup=class extends h{constructor(){super(...arguments),this.click=()=>{},this.childrenArray=[]}get _containerElement(){return this.querySelector("div[part=input-otp-group")}getAttributesToExclude(){return[]}firstUpdated(e){super.firstUpdated(e),this.childrenArray=Array.from(this.children),this.childrenArray.forEach((r,n)=>{r.isFirst=n===0,r.isLast=n===this.childrenArray.length-1}),this.moveLightDomChildrenInto(this._containerElement),this.requestUpdate()}createRenderRoot(){return this}render(){return d.html`
|
|
4414
4443
|
<div
|
|
4415
4444
|
part="input-otp-group"
|
|
4416
4445
|
class="${p("rtg-flex",this.className)}"
|
|
4417
4446
|
></div>
|
|
4418
|
-
`}},
|
|
4419
|
-
<div role="separator" class="${p("",this.className)}">${
|
|
4420
|
-
`}},
|
|
4447
|
+
`}},nn([l.property({type:Function})],o.InputOtpGroup.prototype,"click",2),o.InputOtpGroup=nn([l.customElement("rtg-input-otp-group")],o.InputOtpGroup);var bd=Object.defineProperty,yd=Object.getOwnPropertyDescriptor,on=(a,e,r,n)=>{for(var t=n>1?void 0:n?yd(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&bd(e,r,t),t};o.InputOtpSeparator=class extends d.LitElement{constructor(){super(...arguments),this.index=0}createRenderRoot(){return this}render(){return d.html`
|
|
4448
|
+
<div role="separator" class="${p("",this.className)}">${ha()}</div>
|
|
4449
|
+
`}},on([l.property({type:Number})],o.InputOtpSeparator.prototype,"index",2),o.InputOtpSeparator=on([l.customElement("rtg-input-otp-separator")],o.InputOtpSeparator);var wd=Object.defineProperty,Cd=Object.getOwnPropertyDescriptor,pt=(a,e,r,n)=>{for(var t=n>1?void 0:n?Cd(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&wd(e,r,t),t};o.InputOtp=class extends h{constructor(){super(),this.maxLength=6,this.onChange=()=>{},this.pin=new Array(this.maxLength),this.inputes=[]}connectedCallback(){super.connectedCallback()}getAttributesToExclude(){return[]}get _containerElement(){return this.querySelector("div[part=input-otp]")}raiseEvent(e,r="changes",n=1/0){const t=new CustomEvent("selected-input",{bubbles:!0,composed:!0,detail:{selectedItems:e,eventType:r,customIndex:n}});this.dispatchEvent(t)}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4421
4450
|
<div
|
|
4422
4451
|
part="input-otp"
|
|
4423
4452
|
class="${p("rtg-flex rtg-items-center",this.className)}"
|
|
4424
4453
|
></div>
|
|
4425
|
-
`}},
|
|
4454
|
+
`}},pt([l.property()],o.InputOtp.prototype,"maxLength",2),pt([l.property()],o.InputOtp.prototype,"onChange",2),pt([l.property()],o.InputOtp.prototype,"pin",2),o.InputOtp=pt([l.customElement("rtg-input-otp")],o.InputOtp);const _d="rtg-inline-flex rtg-items-center rtg-gap-1.5",Ed="rtg-transition-colors hover:rtg-text-foreground",xd="rtg-font-normal rtg-text-foreground",$d="[&>svg]:rtg-size-3.5",Od="rtg-flex rtg-h-9 rtg-w-9 rtg-items-center rtg-justify-center",Sd="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 Pd=Object.getOwnPropertyDescriptor,Dd=(a,e,r,n)=>{for(var t=n>1?void 0:n?Pd(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.BreadCrumbEllipsis=class extends h{getAttributesToExclude(){return[""]}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return d.html`
|
|
4426
4455
|
<span
|
|
4427
|
-
${
|
|
4456
|
+
${V(e)}
|
|
4428
4457
|
id="rtg-bread-crumb-ellipsis"
|
|
4429
4458
|
role="presentation"
|
|
4430
4459
|
aria-hidden="true"
|
|
4431
|
-
class="${p(
|
|
4460
|
+
class="${p(Od,this.className)}"
|
|
4432
4461
|
part="breadcrumb-ellipsis"
|
|
4433
4462
|
>
|
|
4434
4463
|
<svg
|
|
@@ -4444,36 +4473,36 @@ body {
|
|
|
4444
4473
|
/>
|
|
4445
4474
|
</svg>
|
|
4446
4475
|
</span>
|
|
4447
|
-
`}},o.BreadCrumbEllipsis=
|
|
4476
|
+
`}},o.BreadCrumbEllipsis=Dd([l.customElement("rtg-bread-crumb-ellipsis")],o.BreadCrumbEllipsis);var Rd=Object.getOwnPropertyDescriptor,Id=(a,e,r,n)=>{for(var t=n>1?void 0:n?Rd(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.BreadCrumbItem=class extends h{get _containerElement(){return this.querySelector("li[part=breadcrumb-item]")}getAttributesToExclude(){return["variant"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){const e=this.getFilteredAttributes();return d.html`
|
|
4448
4477
|
<li
|
|
4449
|
-
${
|
|
4478
|
+
${V(e)}
|
|
4450
4479
|
id="rtg-bread-crumb-item"
|
|
4451
|
-
class="${p(
|
|
4480
|
+
class="${p(_d,this.className)}"
|
|
4452
4481
|
part="breadcrumb-item"
|
|
4453
4482
|
></li>
|
|
4454
|
-
`}},o.BreadCrumbItem=
|
|
4483
|
+
`}},o.BreadCrumbItem=Id([l.customElement("rtg-bread-crumb-item")],o.BreadCrumbItem);var kd=Object.defineProperty,Td=Object.getOwnPropertyDescriptor,an=(a,e,r,n)=>{for(var t=n>1?void 0:n?Td(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&kd(e,r,t),t};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(e){this.moveLightDomChildrenInto(this._containerElement)}render(){const e=this.getFilteredAttributes();return d.html`
|
|
4455
4484
|
<a
|
|
4456
|
-
${
|
|
4485
|
+
${V(e)}
|
|
4457
4486
|
id="rtg-bread-crumb-link"
|
|
4458
|
-
class="${p(
|
|
4487
|
+
class="${p(Ed,this.className)}"
|
|
4459
4488
|
href="${this.href}"
|
|
4460
4489
|
part="breadcrumb-link"
|
|
4461
4490
|
>
|
|
4462
4491
|
</a>
|
|
4463
|
-
`}},
|
|
4492
|
+
`}},an([l.property({type:String})],o.BreadCrumbLink.prototype,"href",2),o.BreadCrumbLink=an([l.customElement("rtg-bread-crumb-link")],o.BreadCrumbLink);var Md=Object.getOwnPropertyDescriptor,Ad=(a,e,r,n)=>{for(var t=n>1?void 0:n?Md(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.BreadCrumbList=class extends h{get _containerElement(){return this.querySelector("ol[part=breadcrumb-list]")}getAttributesToExclude(){return["variant"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){const e=this.getFilteredAttributes();return d.html`
|
|
4464
4493
|
<ol
|
|
4465
|
-
${
|
|
4494
|
+
${V(e)}
|
|
4466
4495
|
id="rtg-bread-crumb-list"
|
|
4467
|
-
class="${p(
|
|
4496
|
+
class="${p(Sd,this.className)}"
|
|
4468
4497
|
part="breadcrumb-list"
|
|
4469
4498
|
></ol>
|
|
4470
|
-
`}},o.BreadCrumbList=Ad([l.customElement("rtg-bread-crumb-list")],o.BreadCrumbList);var Ld=Object.getOwnPropertyDescriptor,
|
|
4499
|
+
`}},o.BreadCrumbList=Ad([l.customElement("rtg-bread-crumb-list")],o.BreadCrumbList);var Ld=Object.getOwnPropertyDescriptor,Nd=(a,e,r,n)=>{for(var t=n>1?void 0:n?Ld(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.BreadCrumbSeparator=class extends h{getAttributesToExclude(){return[""]}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return d.html`
|
|
4471
4500
|
<li
|
|
4472
|
-
${
|
|
4501
|
+
${V(e)}
|
|
4473
4502
|
id="rtg-bread-crumb-separator"
|
|
4474
4503
|
role="presentation"
|
|
4475
4504
|
aria-hidden="true"
|
|
4476
|
-
class="${p(
|
|
4505
|
+
class="${p($d,this.className)}"
|
|
4477
4506
|
part="breadcrumb-separator"
|
|
4478
4507
|
>
|
|
4479
4508
|
<svg
|
|
@@ -4491,9 +4520,9 @@ body {
|
|
|
4491
4520
|
<path d="M22 2 2 22"></path>
|
|
4492
4521
|
</svg>
|
|
4493
4522
|
</li>
|
|
4494
|
-
`}},o.BreadCrumbSeparator=
|
|
4523
|
+
`}},o.BreadCrumbSeparator=Nd([l.customElement("rtg-bread-crumb-separator")],o.BreadCrumbSeparator);var Bd=Object.getOwnPropertyDescriptor,qd=(a,e,r,n)=>{for(var t=n>1?void 0:n?Bd(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.BreadCrumbText=class extends h{get _containerElement(){return this.querySelector("span[part=breadcrumb-text]")}getAttributesToExclude(){return[""]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){const e=this.getFilteredAttributes();return d.html`
|
|
4495
4524
|
<span
|
|
4496
|
-
${
|
|
4525
|
+
${V(e)}
|
|
4497
4526
|
id="rtg-bread-crumb-text"
|
|
4498
4527
|
aria-disabled="true"
|
|
4499
4528
|
aria-current="page"
|
|
@@ -4501,14 +4530,14 @@ body {
|
|
|
4501
4530
|
part="breadcrumb-text"
|
|
4502
4531
|
>
|
|
4503
4532
|
</span>
|
|
4504
|
-
`}},o.BreadCrumbText=qd([l.customElement("rtg-bread-crumb-text")],o.BreadCrumbText);var
|
|
4533
|
+
`}},o.BreadCrumbText=qd([l.customElement("rtg-bread-crumb-text")],o.BreadCrumbText);var Ud=Object.getOwnPropertyDescriptor,zd=(a,e,r,n)=>{for(var t=n>1?void 0:n?Ud(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.BreadCrumb=class extends h{get _containerElement(){return this.querySelector("nav[part=breadcrumb]")}getAttributesToExclude(){return[""]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){const e=this.getFilteredAttributes();return d.html`
|
|
4505
4534
|
<nav
|
|
4506
|
-
${
|
|
4535
|
+
${V(e)}
|
|
4507
4536
|
part="breadcrumb"
|
|
4508
4537
|
class="${p(this.className)}"
|
|
4509
4538
|
aria-label="breadcrumb"
|
|
4510
4539
|
></nav>
|
|
4511
|
-
`}},o.BreadCrumb=
|
|
4540
|
+
`}},o.BreadCrumb=zd([l.customElement("rtg-bread-crumb")],o.BreadCrumb);var Fd=Object.getOwnPropertyDescriptor,Gd=(a,e,r,n)=>{for(var t=n>1?void 0:n?Fd(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.NavigationMenuList=class extends h{get _containerElement(){return this.querySelector("ul[part=navigation-menu-list]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4512
4541
|
<div class="${p("relative",this.className)}">
|
|
4513
4542
|
<ul
|
|
4514
4543
|
part="navigation-menu-list"
|
|
@@ -4518,7 +4547,7 @@ body {
|
|
|
4518
4547
|
></ul>
|
|
4519
4548
|
<div></div>
|
|
4520
4549
|
</div>
|
|
4521
|
-
`}},o.NavigationMenuList=
|
|
4550
|
+
`}},o.NavigationMenuList=Gd([l.customElement("rtg-navigation-menu-list")],o.NavigationMenuList);var Vd=Object.defineProperty,Hd=Object.getOwnPropertyDescriptor,Ge=(a,e,r,n)=>{for(var t=n>1?void 0:n?Hd(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Vd(e,r,t),t};o.NavigationMenuItem=class extends h{constructor(){super(...arguments),this.value="",this.navigationLink=!0,this.isOpen=!1,this.uniqueIds=[],this.isHovering=!1,this.handleClickOutside=e=>{const r=e.target;this.contains(r)||(this.isOpen=!1)}}raiseEvent(){const e=new CustomEvent("unique-ids-generated",{detail:{ids:this.uniqueIds},bubbles:!0,composed:!0});this.dispatchEvent(e)}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(e){e.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(e){super.updated(e);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`
|
|
4522
4551
|
<li
|
|
4523
4552
|
@mouseenter="${this.handleHover}"
|
|
4524
4553
|
@mouseleave="${this.handleMouseLeave}"
|
|
@@ -4548,9 +4577,9 @@ body {
|
|
|
4548
4577
|
</div>
|
|
4549
4578
|
<div part="content-slot" style="position:absolute"></div>
|
|
4550
4579
|
</li>
|
|
4551
|
-
`}},
|
|
4580
|
+
`}},Ge([l.property({type:String})],o.NavigationMenuItem.prototype,"value",2),Ge([l.property({type:Boolean})],o.NavigationMenuItem.prototype,"navigationLink",2),Ge([l.state()],o.NavigationMenuItem.prototype,"isOpen",2),Ge([l.state()],o.NavigationMenuItem.prototype,"uniqueIds",2),Ge([l.state()],o.NavigationMenuItem.prototype,"isHovering",2),o.NavigationMenuItem=Ge([l.customElement("rtg-navigation-menu-item")],o.NavigationMenuItem);const Yd="rtg-absolute rtg-top-full rtg-flex rtg-justify-center",Kd="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",Wd="rtg-relative rtg-z-10 rtg-flex rtg-max-w-max rtg-flex-1 rtg-items-center rtg-justify-center";var jd=Object.defineProperty,Xd=Object.getOwnPropertyDescriptor,rt=(a,e,r,n)=>{for(var t=n>1?void 0:n?Xd(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&jd(e,r,t),t};o.NavigationMenuContent=class extends h{constructor(){super(...arguments),this.state="close",this.id="",this.side="bottom",this.isOpen=!0}get _menubarMenu(){let e=this.parentElement;for(;e&&!(e instanceof o.NavigationMenuItem);)e=e.parentElement;return e}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(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1,e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(e){const r=this.querySelector("button");this&&!this.contains(e.target)&&!(r!=null&&r.contains(e.target))&&(this.isOpen=!1)}createRenderRoot(){return this}firstUpdated(e){requestAnimationFrame(()=>{this.moveLightDomChildrenInto(this._containerElement)})}render(){return d.html`
|
|
4552
4581
|
<div
|
|
4553
|
-
class="${p(
|
|
4582
|
+
class="${p(Yd,this.className)}"
|
|
4554
4583
|
style="display: ${this.isOpen?"block":"none"};top:0px;left:0px;"
|
|
4555
4584
|
part="navigation-menu-content"
|
|
4556
4585
|
>
|
|
@@ -4569,27 +4598,27 @@ body {
|
|
|
4569
4598
|
></div>
|
|
4570
4599
|
</div>
|
|
4571
4600
|
</div>
|
|
4572
|
-
`}},
|
|
4601
|
+
`}},rt([l.property({attribute:"data-state",type:String})],o.NavigationMenuContent.prototype,"state",2),rt([l.property({type:String})],o.NavigationMenuContent.prototype,"id",2),rt([l.property({type:String})],o.NavigationMenuContent.prototype,"side",2),rt([l.state()],o.NavigationMenuContent.prototype,"isOpen",2),o.NavigationMenuContent=rt([l.customElement("rtg-navigation-menu-content")],o.NavigationMenuContent);var Zd=Object.defineProperty,Qd=Object.getOwnPropertyDescriptor,sn=(a,e,r,n)=>{for(var t=n>1?void 0:n?Qd(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Zd(e,r,t),t};o.NavigationMenuLink=class extends h{constructor(){super(...arguments),this.href="/"}get _containerElement(){return this.querySelector("a[part=navigation-menu-link]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4573
4602
|
<a
|
|
4574
4603
|
part="navigation-menu-link"
|
|
4575
|
-
class="${p(
|
|
4604
|
+
class="${p(Kd,this.className)}"
|
|
4576
4605
|
href="${this.href}"
|
|
4577
4606
|
data-radix-collection-item=""
|
|
4578
4607
|
data-tabindex=""
|
|
4579
4608
|
tabindex="-1"
|
|
4580
4609
|
>
|
|
4581
4610
|
</a>
|
|
4582
|
-
`}},
|
|
4611
|
+
`}},sn([l.property({type:String})],o.NavigationMenuLink.prototype,"href",2),o.NavigationMenuLink=sn([l.customElement("rtg-navigation-menu-link")],o.NavigationMenuLink);var Jd=Object.getOwnPropertyDescriptor,eu=(a,e,r,n)=>{for(var t=n>1?void 0:n?Jd(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.NavigationMenuTrigger=class extends h{get _containerElement(){return this.querySelector("div[part=navigation-menu-trigger]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}getAttributesToExclude(){return["data-testid"]}render(){return d.html`
|
|
4583
4612
|
<div part="navigation-menu-trigger" class="${p(this.className)}"></div>
|
|
4584
|
-
`}},o.NavigationMenuTrigger=
|
|
4613
|
+
`}},o.NavigationMenuTrigger=eu([l.customElement("rtg-navigation-menu-trigger")],o.NavigationMenuTrigger);var tu=Object.getOwnPropertyDescriptor,ru=(a,e,r,n)=>{for(var t=n>1?void 0:n?tu(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.NavigationMenu=class extends h{get _containerElement(){return this.querySelector("nav[part=navigation-menu]")}createRenderRoot(){return this}firstUpdated(e){}render(){return d.html`
|
|
4585
4614
|
<nav
|
|
4586
4615
|
part="navigation-menu"
|
|
4587
4616
|
aria-label="Main"
|
|
4588
4617
|
data-orientation="horizontal"
|
|
4589
4618
|
dir="ltr"
|
|
4590
|
-
class="${p(
|
|
4619
|
+
class="${p(Wd,this.className)}"
|
|
4591
4620
|
></nav>
|
|
4592
|
-
`}},o.NavigationMenu=
|
|
4621
|
+
`}},o.NavigationMenu=ru([l.customElement("rtg-navigation-menu")],o.NavigationMenu);var nu=Object.defineProperty,ou=Object.getOwnPropertyDescriptor,Ve=(a,e,r,n)=>{for(var t=n>1?void 0:n?ou(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&nu(e,r,t),t};o.MenubarMenu=class extends h{constructor(){super(...arguments),this.isOpen=!1,this.uniqueIds=[],this.selectedMenu="",this.isHovering=!1,this.id="",this.toggleMenubar=e=>{e.stopPropagation(),document.querySelectorAll("rtg-menubar-menu").forEach(n=>{n!==this&&(n.isOpen=!1)}),this.isOpen=!this.isOpen},this.handleClickOutside=e=>{const r=e.target;this.contains(r)||(this.isOpen=!1)},this.handleMenuMouseEnter=()=>{this.closeAllMenus(),this.isOpen=!0,this.isHovering=!0},this.handleMenuMouseLeave=e=>{const r=e.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(e){super.updated(e);const r=this._content;r&&(r.dataset.state=this.isOpen?"open":"close")}_handleRadioSelected(e){this.querySelectorAll("rtg-menubar-radio-item").forEach(r=>{const n=r;r!==e.target&&(n.checked=!1)})}firstUpdated(){this.setupContentListeners();const e=this.querySelector("div[part=menubar-menu-slot]"),r=this.querySelector("div[part=button-slot]");e&&this._content&&e.appendChild(this._content),r&&this._button&&r.appendChild(this._button)}raiseEvent(){const e=new CustomEvent("unique-ids-generated",{detail:{ids:this.uniqueIds},bubbles:!0,composed:!0});this.dispatchEvent(e)}closeAllMenus(){document.querySelectorAll("rtg-menubar-menu").forEach(r=>{r.isOpen=!1,r.isHovering=!1})}isDescendant(e,r){let n=e.parentElement;for(;n;){if(n.tagName.toLowerCase()===r.toLowerCase())return!0;n=n.parentElement}return!1}setupContentListeners(){const e=this._content;e&&(e.addEventListener("mouseenter",()=>this.isOpen=!0),e.addEventListener("mouseleave",()=>this.isOpen=!1))}render(){return d.html`
|
|
4593
4622
|
<div class="${p("",this.className)}">
|
|
4594
4623
|
<div
|
|
4595
4624
|
part="menuitem"
|
|
@@ -4608,7 +4637,7 @@ body {
|
|
|
4608
4637
|
</div>
|
|
4609
4638
|
<div part="menubar-menu-slot"></div>
|
|
4610
4639
|
</div>
|
|
4611
|
-
`}},
|
|
4640
|
+
`}},Ve([l.state()],o.MenubarMenu.prototype,"isOpen",2),Ve([l.state()],o.MenubarMenu.prototype,"uniqueIds",2),Ve([l.state()],o.MenubarMenu.prototype,"selectedMenu",2),Ve([l.state()],o.MenubarMenu.prototype,"isHovering",2),Ve([l.property({type:String})],o.MenubarMenu.prototype,"id",2),o.MenubarMenu=Ve([l.customElement("rtg-menubar-menu")],o.MenubarMenu);const au="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",su="rtg-overflow-hidden rtg-p-1 rtg-text-foreground [&_[rtgcmd-group-heading]]:rtg-px-2 [&_[rtgcmd-group-heading]]:rtg-py-1.5 [&_[rtgcmd-group-heading]]:rtg-text-xs [&_[rtgcmd-group-heading]]:rtg-font-medium [&_[rtgcmd-group-heading]]:rtg-text-muted-foreground",lu="rtg-relative rtg-flex rtg-cursor-default rtg-select-none rtg-items-center rtg-rounded-sm rtg-px-2 rtg-py-1.5 rtg-text-sm rtg-outline-none aria-selected:rtg-bg-accent aria-selected:rtg-text-accent-foreground data-[disabled]:rtg-pointer-events-none data-[disabled]:rtg-opacity-50",cu="rtg-relative rtg-flex rtg-cursor-default rtg-select-none rtg-items-center rtg-rounded-sm rtg-px-2 rtg-py-1.5 rtg-text-sm rtg-outline-none aria-selected:rtg-bg-accent aria-selected:rtg-text-accent-foreground",du="rtg-mx-1 rtg-h-px rtg-bg-border",uu="rtg-ml-auto rtg-text-xs rtg-font-semibold",gu="rtg-flex rtg-h-9 rtg-items-center rtg-space-x-1 rtg-rounded-md rtg-border rtg-bg-background rtg-p-1 rtg-shadow-sm";var pu=Object.defineProperty,hu=Object.getOwnPropertyDescriptor,nt=(a,e,r,n)=>{for(var t=n>1?void 0:n?hu(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&pu(e,r,t),t};o.MenubarContent=class extends h{constructor(){super(...arguments),this.state=Ut,this.id="",this.side="bottom",this.isOpen=!1}get _menubarMenu(){let e=this.parentElement;for(;e&&!(e instanceof o.MenubarMenu);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=menubar-content]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){requestAnimationFrame(()=>{this.moveLightDomChildrenInto(this._containerElement)})}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1,e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(e){const r=this.querySelector("button");this&&!this.contains(e.target)&&!(r!=null&&r.contains(e.target))&&(this.isOpen=!1)}render(){return d.html`
|
|
4612
4641
|
<div
|
|
4613
4642
|
part="menubar-content"
|
|
4614
4643
|
id="${this.id}"
|
|
@@ -4624,10 +4653,10 @@ body {
|
|
|
4624
4653
|
class="${p(iu,this.className)}"
|
|
4625
4654
|
style="display: ${this.isOpen?"block":"none"};width:260px;position:absolute;"
|
|
4626
4655
|
></div>
|
|
4627
|
-
`}},
|
|
4656
|
+
`}},nt([l.property({attribute:"data-state",type:String})],o.MenubarContent.prototype,"state",2),nt([l.property({type:String})],o.MenubarContent.prototype,"id",2),nt([l.property({type:String})],o.MenubarContent.prototype,"side",2),nt([l.state()],o.MenubarContent.prototype,"isOpen",2),o.MenubarContent=nt([l.customElement("rtg-menubar-content")],o.MenubarContent);var mu=Object.defineProperty,vu=Object.getOwnPropertyDescriptor,ht=(a,e,r,n)=>{for(var t=n>1?void 0:n?vu(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&mu(e,r,t),t};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(e){this.moveLightDomChildrenInto(this._containerElement)}get identifier(){var r,n;if(this._id!=="")return this._id;const e=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-list]");return e?this._id=`${e.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`
|
|
4628
4657
|
<div
|
|
4629
4658
|
part="menubar-group"
|
|
4630
|
-
class="${p(
|
|
4659
|
+
class="${p(su,this.className)}"
|
|
4631
4660
|
role="presentation"
|
|
4632
4661
|
id="${this.identifier}"
|
|
4633
4662
|
>
|
|
@@ -4640,10 +4669,10 @@ body {
|
|
|
4640
4669
|
part="menubar-group-slot"
|
|
4641
4670
|
></div>
|
|
4642
4671
|
</div>
|
|
4643
|
-
`}`}},o.MenubarGroup._counter=0,
|
|
4672
|
+
`}`}},o.MenubarGroup._counter=0,ht([l.property({type:String})],o.MenubarGroup.prototype,"heading",2),ht([l.property({attribute:"id",type:String})],o.MenubarGroup.prototype,"_id",2),ht([l.property({attribute:"aria-hidden",type:String})],o.MenubarGroup.prototype,"_hidden",2),o.MenubarGroup=ht([l.customElement("rtg-menubar-group")],o.MenubarGroup);var fu=Object.defineProperty,bu=Object.getOwnPropertyDescriptor,ot=(a,e,r,n)=>{for(var t=n>1?void 0:n?bu(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&fu(e,r,t),t};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(e){this.moveLightDomChildrenInto(this._containerElement)}get identifier(){var r,n;if(this._id!=="")return this._id;const e=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${o.MenubarItem._counter++}`:this._id=`rtgcmdrxgxli${o.MenubarItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}render(){return d.html` ${this._hidden==="true"?d.nothing:d.html`
|
|
4644
4673
|
<div
|
|
4645
4674
|
part="menubar-item"
|
|
4646
|
-
class="${p(
|
|
4675
|
+
class="${p(lu,this.className)}"
|
|
4647
4676
|
@mouseover="${this.handleMouseEvent}"
|
|
4648
4677
|
@mouseleave="${this.handleMouseEvent}"
|
|
4649
4678
|
@focus="${this.handleMouseEvent}"
|
|
@@ -4654,10 +4683,10 @@ body {
|
|
|
4654
4683
|
id="${this.identifier}"
|
|
4655
4684
|
aria-hidden="${this.hidden}"
|
|
4656
4685
|
></div>
|
|
4657
|
-
`}`}},o.MenubarItem._counter=0,
|
|
4686
|
+
`}`}},o.MenubarItem._counter=0,ot([l.property({type:String})],o.MenubarItem.prototype,"_id",2),ot([l.property({attribute:"aria-hidden",type:String})],o.MenubarItem.prototype,"_hidden",2),ot([l.property({attribute:"data-value",type:String})],o.MenubarItem.prototype,"value",1),ot([l.property({type:Boolean})],o.MenubarItem.prototype,"selected",2),o.MenubarItem=ot([l.customElement("rtg-menubar-item")],o.MenubarItem);var yu=Object.defineProperty,wu=Object.getOwnPropertyDescriptor,De=(a,e,r,n)=>{for(var t=n>1?void 0:n?wu(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&yu(e,r,t),t};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(e){this.moveLightDomChildrenInto(this._containerElement)}get identifier(){var r,n;if(this._id!=="")return this._id;const e=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${o.MenubarRadioItem._counter++}`:this._id=`rtgcmdrxgxli${o.MenubarRadioItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}render(){return d.html`
|
|
4658
4687
|
<div
|
|
4659
4688
|
part="menubar-radio-item"
|
|
4660
|
-
class="${p(
|
|
4689
|
+
class="${p(cu,this.disabled?"rtg-pointer-events-none rtg-opacity-50":"",this.className)}"
|
|
4661
4690
|
@click=${this.toggleChecked}
|
|
4662
4691
|
@mouseover="${this.handleMouseEvent}"
|
|
4663
4692
|
@mouseleave="${this.handleMouseEvent}"
|
|
@@ -4673,7 +4702,7 @@ body {
|
|
|
4673
4702
|
<span
|
|
4674
4703
|
class="icon-space absolute left-2 flex items-center justify-center"
|
|
4675
4704
|
>
|
|
4676
|
-
${this.checked?d.html` ${
|
|
4705
|
+
${this.checked?d.html` ${It()} `:d.nothing}
|
|
4677
4706
|
</span>
|
|
4678
4707
|
</div>
|
|
4679
4708
|
`}},o.MenubarRadioItem._counter=0,o.MenubarRadioItem.styles=[d.css`
|
|
@@ -4682,10 +4711,10 @@ body {
|
|
|
4682
4711
|
height: 16px;
|
|
4683
4712
|
display: inline-block;
|
|
4684
4713
|
}
|
|
4685
|
-
`],
|
|
4714
|
+
`],De([l.property({type:String})],o.MenubarRadioItem.prototype,"_id",2),De([l.property({attribute:"aria-hidden",type:String})],o.MenubarRadioItem.prototype,"_hidden",2),De([l.property({attribute:"data-value",type:String})],o.MenubarRadioItem.prototype,"value",1),De([l.property({type:Boolean})],o.MenubarRadioItem.prototype,"selected",2),De([l.property({type:Boolean})],o.MenubarRadioItem.prototype,"checked",2),De([l.property({type:Boolean})],o.MenubarRadioItem.prototype,"disabled",2),o.MenubarRadioItem=De([l.customElement("rtg-menubar-radio-item")],o.MenubarRadioItem);var Cu=Object.defineProperty,_u=Object.getOwnPropertyDescriptor,Re=(a,e,r,n)=>{for(var t=n>1?void 0:n?_u(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Cu(e,r,t),t};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(e){this.moveLightDomChildrenInto(this._containerElement)}get identifier(){var r,n;if(this._id!=="")return this._id;const e=(n=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${o.MenubarCheckboxItem._counter++}`:this._id=`rtgcmdrxgxli${o.MenubarCheckboxItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}render(){return d.html`
|
|
4686
4715
|
<div
|
|
4687
4716
|
part="menubar-checkbox-item"
|
|
4688
|
-
class="${p(
|
|
4717
|
+
class="${p(au,this.disabled?"rtg-pointer-events-none rtg-opacity-50":"",this.className)}"
|
|
4689
4718
|
@click=${this.toggleChecked}
|
|
4690
4719
|
@mouseover="${this.handleMouseEvent}"
|
|
4691
4720
|
@mouseleave="${this.handleMouseEvent}"
|
|
@@ -4721,32 +4750,32 @@ body {
|
|
|
4721
4750
|
height: 16px;
|
|
4722
4751
|
display: inline-block;
|
|
4723
4752
|
}
|
|
4724
|
-
`],
|
|
4753
|
+
`],Re([l.property({type:String})],o.MenubarCheckboxItem.prototype,"_id",2),Re([l.property({attribute:"aria-hidden",type:String})],o.MenubarCheckboxItem.prototype,"_hidden",2),Re([l.property({attribute:"data-value",type:String})],o.MenubarCheckboxItem.prototype,"value",1),Re([l.property({type:Boolean})],o.MenubarCheckboxItem.prototype,"selected",2),Re([l.property({type:Boolean})],o.MenubarCheckboxItem.prototype,"checked",2),Re([l.property({type:Boolean})],o.MenubarCheckboxItem.prototype,"disabled",2),o.MenubarCheckboxItem=Re([l.customElement("rtg-menubar-checkbox-item")],o.MenubarCheckboxItem);var Eu=Object.defineProperty,xu=Object.getOwnPropertyDescriptor,Jt=(a,e,r,n)=>{for(var t=n>1?void 0:n?xu(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Eu(e,r,t),t};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 e=(r=this.parentElement)==null?void 0:r.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}s${o.MenubarSeparator._counter++}`:this._id=`rtgcmdrxlxs${o.MenubarSeparator._counter++}`,this._id}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`${this._hidden==="true"?d.nothing:d.html`
|
|
4725
4754
|
<div
|
|
4726
4755
|
part="menubar-separator"
|
|
4727
|
-
class="${p(
|
|
4756
|
+
class="${p(du,this.className)}"
|
|
4728
4757
|
rtgcmd-separator
|
|
4729
4758
|
role="separator"
|
|
4730
4759
|
id="${this.identifier}"
|
|
4731
4760
|
></div>
|
|
4732
|
-
`}`}},o.MenubarSeparator._counter=0,
|
|
4761
|
+
`}`}},o.MenubarSeparator._counter=0,Jt([l.property({type:String})],o.MenubarSeparator.prototype,"_id",2),Jt([l.property({attribute:"aria-hidden",type:String})],o.MenubarSeparator.prototype,"_hidden",2),o.MenubarSeparator=Jt([l.customElement("rtg-menubar-separator")],o.MenubarSeparator);var $u=Object.getOwnPropertyDescriptor,Ou=(a,e,r,n)=>{for(var t=n>1?void 0:n?$u(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.MenubarShortcut=class extends h{get _containerElement(){return this.querySelector("span[part=menubar-shortcut]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4733
4762
|
<span
|
|
4734
4763
|
part="menubar-shortcut"
|
|
4735
|
-
class="${p(
|
|
4764
|
+
class="${p(uu,this.className)}"
|
|
4736
4765
|
>
|
|
4737
4766
|
</span>
|
|
4738
|
-
`}},o.MenubarShortcut
|
|
4767
|
+
`}},o.MenubarShortcut=Ou([l.customElement("rtg-menubar-shortcut")],o.MenubarShortcut);var Su=Object.getOwnPropertyDescriptor,Pu=(a,e,r,n)=>{for(var t=n>1?void 0:n?Su(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.MenubarTrigger=class extends h{get _containerElement(){return this.querySelector("div[part=menubar-trigger]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}getAttributesToExclude(){return["data-testid"]}render(){return d.html`
|
|
4739
4768
|
<div part="menubar-trigger" class="${p(this.className)}"></div>
|
|
4740
|
-
`}},o.MenubarTrigger=
|
|
4769
|
+
`}},o.MenubarTrigger=Pu([l.customElement("rtg-menubar-trigger")],o.MenubarTrigger);var Du=Object.getOwnPropertyDescriptor,Ru=(a,e,r,n)=>{for(var t=n>1?void 0:n?Du(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.Menubar=class extends h{get _containerElement(){return this.querySelector("div[part=menubar]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d.html`
|
|
4741
4770
|
<div
|
|
4742
4771
|
part="menubar"
|
|
4743
4772
|
role="menubar"
|
|
4744
|
-
class="${p(
|
|
4773
|
+
class="${p(gu,this.className)}"
|
|
4745
4774
|
tabindex="0"
|
|
4746
4775
|
data-orientation="horizontal"
|
|
4747
4776
|
style="outline: none;width:fit-content"
|
|
4748
4777
|
></div>
|
|
4749
|
-
`}},o.Menubar=
|
|
4778
|
+
`}},o.Menubar=Ru([l.customElement("rtg-menubar")],o.Menubar);var Iu=Object.defineProperty,ku=Object.getOwnPropertyDescriptor,mt=(a,e,r,n)=>{for(var t=n>1?void 0:n?ku(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Iu(e,r,t),t};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(e){this.moveLightDomChildrenInto(this._containerElement)}get columnKeys(){var r;const e=(r=this.dataTable)==null?void 0:r[0];return e?Object.keys(e).filter(n=>n!=="id"):[]}capitalizeLabel(e){return e.charAt(0).toUpperCase()+e.slice(1)}render(){var r;const e=this.columnKeys;return d.html`
|
|
4750
4779
|
<div
|
|
4751
4780
|
class="preview rtg-flex rtg-min-h-[350px] rtg-w-full rtg-items-center rtg-justify-center rtg-p-10"
|
|
4752
4781
|
>
|
|
@@ -4763,7 +4792,7 @@ body {
|
|
|
4763
4792
|
<tr
|
|
4764
4793
|
class="rtg-border-b rtg-transition-colors hover:rtg-bg-muted/50 data-[state=selected]:rtg-bg-muted"
|
|
4765
4794
|
>
|
|
4766
|
-
${
|
|
4795
|
+
${e.map((n,t,i)=>{const s=t===0,x=`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] ${t===i.length-1?"rtg-text-right":"rtg-text-left"} ${s?"rtg-w-[100px]":""}`.trim();return d.html`<th class=${x}>
|
|
4767
4796
|
${this.capitalizeLabel(n)}
|
|
4768
4797
|
</th>`})}
|
|
4769
4798
|
</tr>
|
|
@@ -4774,7 +4803,7 @@ body {
|
|
|
4774
4803
|
data-id=${n.id??""}
|
|
4775
4804
|
class="rtg-border-b rtg-transition-colors hover:rtg-bg-muted/50 data-[state=selected]:rtg-bg-muted"
|
|
4776
4805
|
>
|
|
4777
|
-
${
|
|
4806
|
+
${e.map((t,i,s)=>{const m=i===0,C=i===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[t]??""}</td>`})}
|
|
4778
4807
|
</tr>
|
|
4779
4808
|
`)}
|
|
4780
4809
|
</tbody>
|
|
@@ -4785,7 +4814,7 @@ body {
|
|
|
4785
4814
|
<tr
|
|
4786
4815
|
class="rtg-border-b rtg-transition-colors hover:rtg-bg-muted/50 data-[state=selected]:rtg-bg-muted"
|
|
4787
4816
|
>
|
|
4788
|
-
${
|
|
4817
|
+
${e.map((n,t,i)=>{const b=`rtg-p-2 rtg-align-middle [&:has([role=checkbox])]:rtg-pr-0 [&>[role=checkbox]]:rtg-translate-y-[2px] ${t===i.length-1?"rtg-text-right":""}`.trim(),w=this.footerData.find(x=>x.key===n);return d.html`<td class=${b}>
|
|
4789
4818
|
${(w==null?void 0:w.value)??""}
|
|
4790
4819
|
</td>`})}
|
|
4791
4820
|
</tr>
|
|
@@ -4794,48 +4823,48 @@ body {
|
|
|
4794
4823
|
</table>
|
|
4795
4824
|
</div>
|
|
4796
4825
|
</div>
|
|
4797
|
-
`}},
|
|
4826
|
+
`}},mt([l.property({type:Array})],o.Table.prototype,"dataTable",2),mt([l.property({type:Array})],o.Table.prototype,"footerData",2),mt([l.property({type:String})],o.Table.prototype,"captionText",2),o.Table=mt([l.customElement("rtg-table")],o.Table);class ln{constructor(){this.values={},this.errors={},this.validators={},this.subscribers=new Set}registerField({name:e,defaultValue:r="",validator:n}){e in this.values||(this.values[e]=r),n&&(this.validators[e]=n)}unregisterField(e){delete this.values[e],delete this.errors[e],delete this.validators[e]}setValue(e,r){e in this.validators||console.warn(`[FormController] setValue called before validator was registered for "${e}"`),this.values[e]=r,this.validateField(e),this.notify()}getValue(e){return this.values[e]}getError(e){return this.errors[e]??null}validateField(e){const r=this.validators[e],n=this.values[e],t=r?r(n):null;return this.errors[e]=t,this.notify(),!t}validateAll(){let e=!0;return Object.keys(this.validators).forEach(r=>{this.validateField(r)||(e=!1)}),e}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}notify(){this.subscribers.forEach(e=>e())}getValues(){return{...this.values}}getErrors(){return{...this.errors}}}const at=ne.createContext("rtg-form-context");var Tu=Object.defineProperty,Mu=Object.getOwnPropertyDescriptor,cn=(a,e,r,n)=>{for(var t=n>1?void 0:n?Mu(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Tu(e,r,t),t};o.RtgFormController=class extends h{constructor(){super(...arguments),this.form=new ln,this.handleSubmit=e=>{if(e.preventDefault(),this.form.validateAll()){const n=this.form.getValues();alert(JSON.stringify(n,null,2))}}}createRenderRoot(){return this}async firstUpdated(e){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"),t=r.validators,i=t==null?void 0:t[0];this.form.registerField({name:n,validator:i})})}render(){return d.html`
|
|
4798
4827
|
<form
|
|
4799
4828
|
part="form-controller"
|
|
4800
4829
|
class="${p("",this.className)}"
|
|
4801
4830
|
@submit=${this.handleSubmit}
|
|
4802
|
-
${
|
|
4831
|
+
${Nn.ref(e=>this.formElement=e)}
|
|
4803
4832
|
></form>
|
|
4804
|
-
`}},
|
|
4833
|
+
`}},cn([l.state(),ne.provide({context:at})],o.RtgFormController.prototype,"form",2),o.RtgFormController=cn([l.customElement("rtg-form-controller")],o.RtgFormController);const dn=ne.createContext("rtg-form-item-context"),Au="rtg-space-y-4",Lu="rtg-text-sm rtg-text-muted-foreground rtg-mt-1",Nu="rtg-space-y-2",Bu="rtg-space-y-1",qu="rtg-text-sm rtg-mb-1 rtg-font-medium rtg-leading-none rtg-peer-disabled:rtg-cursor-not-allowed peer-disabled:rtg-opacity-70",Uu="rtg-text-sm rtg-text-destructive";var zu=Object.defineProperty,Fu=Object.getOwnPropertyDescriptor,un=(a,e,r,n)=>{for(var t=n>1?void 0:n?Fu(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&zu(e,r,t),t};o.RtgFormDescription=class extends h{createRenderRoot(){return this}get _desc(){return this.querySelector("p[part=form-description]")}firstUpdated(){this.moveLightDomChildrenInto(this._desc)}render(){return d.html`
|
|
4805
4834
|
<p
|
|
4806
4835
|
id="${this.itemContext.id}-description"
|
|
4807
4836
|
part="form-description"
|
|
4808
4837
|
class="${p(Lu,this.className)}"
|
|
4809
4838
|
></p>
|
|
4810
|
-
`}},
|
|
4839
|
+
`}},un([ne.consume({context:dn})],o.RtgFormDescription.prototype,"itemContext",2),o.RtgFormDescription=un([l.customElement("rtg-form-description")],o.RtgFormDescription);const Gu=ne.createContext("rtg-form-field-context");var Vu=Object.defineProperty,Hu=Object.getOwnPropertyDescriptor,He=(a,e,r,n)=>{for(var t=n>1?void 0:n?Hu(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Vu(e,r,t),t};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 e=t=>{for(const i of this.validators){const s=i(t);if(s)return s}return null};this.form.registerField({name:this.name,validator:e,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 e;super.disconnectedCallback(),this.isConnected||(e=this.form)==null||e.unregisterField(this.name)}render(){return d.html`<div
|
|
4811
4840
|
part="form-field"
|
|
4812
|
-
class="${p(Mu,this.className)}"
|
|
4813
|
-
></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
|
|
4814
|
-
part="form-item"
|
|
4815
4841
|
class="${p(Nu,this.className)}"
|
|
4816
|
-
></div>`}},
|
|
4842
|
+
></div>`}},He([ne.consume({context:at})],o.RtgFormField.prototype,"form",2),He([l.property({type:String})],o.RtgFormField.prototype,"name",2),He([l.property({type:Array})],o.RtgFormField.prototype,"validators",2),He([l.property({type:String})],o.RtgFormField.prototype,"defaultValue",2),He([ne.provide({context:Gu})],o.RtgFormField.prototype,"fieldName",2),o.RtgFormField=He([l.customElement("rtg-form-field")],o.RtgFormField);var Yu=Object.defineProperty,Ku=Object.getOwnPropertyDescriptor,gn=(a,e,r,n)=>{for(var t=n>1?void 0:n?Ku(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Yu(e,r,t),t};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
|
|
4843
|
+
part="form-item"
|
|
4844
|
+
class="${p(Bu,this.className)}"
|
|
4845
|
+
></div>`}},gn([ne.provide({context:dn})],o.RtgFormItem.prototype,"itemContext",2),o.RtgFormItem=gn([l.customElement("rtg-form-item")],o.RtgFormItem);var Wu=Object.defineProperty,ju=Object.getOwnPropertyDescriptor,er=(a,e,r,n)=>{for(var t=n>1?void 0:n?ju(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Wu(e,r,t),t};o.RtgFormLabel=class extends h{constructor(){super(...arguments),this.hasError=!1,this.unsubscribe=null}get _field(){let e=this.parentElement;for(;e&&!(e instanceof o.RtgFormField);)e=e.parentElement;return e}createRenderRoot(){return this}get _label(){return this.querySelector("label[part=form-label]")}firstUpdated(){this.moveLightDomChildrenInto(this._label)}connectedCallback(){super.connectedCallback();const e=this._field.name;this.hasError=!!this.form.getError(e),this.unsubscribe=this.form.subscribe(()=>{const r=this.form.getError(e);this.hasError=!!r,this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribe&&this.unsubscribe()}render(){return d.html`
|
|
4817
4846
|
<label
|
|
4818
4847
|
part="form-label"
|
|
4819
4848
|
for="${this._field.name}"
|
|
4820
4849
|
class="${p(qu,this.hasError&&"rtg-text-destructive",this.className)}"
|
|
4821
4850
|
></label>
|
|
4822
|
-
`}},
|
|
4851
|
+
`}},er([ne.consume({context:at})],o.RtgFormLabel.prototype,"form",2),er([l.state()],o.RtgFormLabel.prototype,"hasError",2),o.RtgFormLabel=er([l.customElement("rtg-form-label")],o.RtgFormLabel);var Xu=Object.defineProperty,Zu=Object.getOwnPropertyDescriptor,tr=(a,e,r,n)=>{for(var t=n>1?void 0:n?Zu(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Xu(e,r,t),t};o.RtgFormMessage=class extends d.LitElement{constructor(){super(...arguments),this.error=null,this.unsubscribe=null}get _field(){let e=this.parentElement;for(;e&&!(e instanceof o.RtgFormField);)e=e.parentElement;return e}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.error=this.form.getError(this._field.name),this.unsubscribe=this.form.subscribe(()=>{this.error=this.form.getErrors()[this._field.name],this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribe&&this.unsubscribe()}render(){return this.error?d.html`<p
|
|
4823
4852
|
id="${this._field.name}-message"
|
|
4824
|
-
class="${p(
|
|
4853
|
+
class="${p(Uu,this.className)}"
|
|
4825
4854
|
>
|
|
4826
4855
|
${this.error}
|
|
4827
|
-
</p>`:null}},
|
|
4856
|
+
</p>`:null}},tr([ne.consume({context:at})],o.RtgFormMessage.prototype,"form",2),tr([l.state()],o.RtgFormMessage.prototype,"error",2),o.RtgFormMessage=tr([l.customElement("rtg-form-message")],o.RtgFormMessage);var Qu=Object.defineProperty,Ju=Object.getOwnPropertyDescriptor,rr=(a,e,r,n)=>{for(var t=n>1?void 0:n?Ju(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Qu(e,r,t),t};o.RtgForm=class extends h{constructor(){super(...arguments),this.form=new ln,this.onSubmit=()=>{},this.handleSubmit=e=>{e.preventDefault(),this.form.validateAll()&&(alert("form submitted successfully"),this.onSubmit(this.form.getValues()))}}createRenderRoot(){return this}get _formElement(){return this.querySelector("form[part=form-root]")}firstUpdated(){this.moveLightDomChildrenInto(this._formElement)}render(){return d.html`
|
|
4828
4857
|
<form
|
|
4829
4858
|
part="form-root"
|
|
4830
4859
|
id="rtg-form"
|
|
4831
4860
|
@submit=${this.handleSubmit}
|
|
4832
4861
|
class="${p(Au,this.className)}"
|
|
4833
4862
|
></form>
|
|
4834
|
-
`}},rr([
|
|
4863
|
+
`}},rr([ne.provide({context:at})],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 eg="rtg-animate-pulse rtg-rounded-md rtg-bg-gray-200 rtg-h-4 rtg-w-full";var tg=Object.getOwnPropertyDescriptor,rg=(a,e,r,n)=>{for(var t=n>1?void 0:n?tg(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.RtgSkeleton=class extends h{createRenderRoot(){return this}render(){return d.html` <div class=${p(eg,this.className)}></div> `}},o.RtgSkeleton=rg([l.customElement("rtg-skeleton")],o.RtgSkeleton);const ng="rtg-relative rtg-h-72 rtg-w-48 rtg-rounded-md rtg-border";var og=Object.defineProperty,ag=Object.getOwnPropertyDescriptor,pn=(a,e,r,n)=>{for(var t=n>1?void 0:n?ag(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&og(e,r,t),t};o.RtgScrollArea=class extends h{createRenderRoot(){return this}firstUpdated(){this.moveLightDomChildrenInto(this.viewportEl)}render(){return d.html`
|
|
4835
4864
|
<div
|
|
4836
4865
|
dir="ltr"
|
|
4837
4866
|
data-slot="scroll-area"
|
|
4838
|
-
class=${p(
|
|
4867
|
+
class=${p(ng,this.className)}
|
|
4839
4868
|
style="position: relative; --radix-scroll-area-corner-width: 0px; --radix-scroll-area-corner-height: 0px;"
|
|
4840
4869
|
>
|
|
4841
4870
|
<style>
|
|
@@ -4870,13 +4899,13 @@ body {
|
|
|
4870
4899
|
style="overflow: hidden scroll;"
|
|
4871
4900
|
></div>
|
|
4872
4901
|
</div>
|
|
4873
|
-
`}},
|
|
4902
|
+
`}},pn([l.query("[data-radix-scroll-area-viewport]")],o.RtgScrollArea.prototype,"viewportEl",2),o.RtgScrollArea=pn([l.customElement("rtg-scroll-area")],o.RtgScrollArea);var ig=Object.getOwnPropertyDescriptor,sg=(a,e,r,n)=>{for(var t=n>1?void 0:n?ig(e,r):e,i=a.length-1,s;i>=0;i--)(s=a[i])&&(t=s(t)||t);return t};o.LightSampleDemo=class extends h{constructor(){super()}getAttributesToExclude(){return["disabled","type","placeholder","value","data-testid"]}createRenderRoot(){return this}render(){return d.html`<rtg-alert variant="error"
|
|
4874
4903
|
>Here Is Your Playground:</rtg-alert
|
|
4875
|
-
>`}},o.LightSampleDemo=
|
|
4904
|
+
>`}},o.LightSampleDemo=sg([l.customElement("light-sample-demo")],o.LightSampleDemo);/**
|
|
4876
4905
|
* @license
|
|
4877
4906
|
* Copyright 2018 Google LLC
|
|
4878
4907
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4879
|
-
*/const
|
|
4908
|
+
*/const lg=new Set(["children","localName","ref","style","className"]),hn=new WeakMap,cg=(a,e,r,n,t)=>{const i=t==null?void 0:t[e];i===void 0||r===n?r==null&&e in HTMLElement.prototype?a.removeAttribute(e):a[e]=r:((s,m,C)=>{let b=hn.get(s);b===void 0&&hn.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))})(a,i,r)},dg=(a,e)=>{typeof a=="function"?a(e):a.current=e};function mn(a=window.React,e,r,n,t){let i,s,m;{const F=a;({tagName:s,elementClass:m,events:n,displayName:t}=F),i=F.react}const C=i.Component,b=i.createElement,w=new Set(Object.keys(n??{}));class x extends C{constructor(){super(...arguments),this.o=null}t(A){if(this.o!==null)for(const q in this.i)cg(this.o,q,this.props[q],A?A[q]:void 0,n)}componentDidMount(){var A;this.t(),(A=this.o)===null||A===void 0||A.removeAttribute("defer-hydration")}componentDidUpdate(A){this.t(A)}render(){const{_$Gl:A,...q}=this.props;this.h!==A&&(this.u=L=>{A!==null&&dg(A,L),this.o=L,this.h=A}),this.i={};const P={ref:this.u};for(const[L,W]of Object.entries(q))lg.has(L)?P[L==="className"?"class":L]=W:w.has(L)||L in m.prototype?this.i[L]=W:P[L]=W;return P.suppressHydrationWarning=!0,b(s,P)}}x.displayName=t??m.name;const N=i.forwardRef((F,A)=>b(x,{...F,_$Gl:A},F==null?void 0:F.children));return N.displayName=x.displayName,N}function ug(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var vt={exports:{}},S={};/**
|
|
4880
4909
|
* @license React
|
|
4881
4910
|
* react.production.js
|
|
4882
4911
|
*
|
|
@@ -4884,7 +4913,7 @@ body {
|
|
|
4884
4913
|
*
|
|
4885
4914
|
* This source code is licensed under the MIT license found in the
|
|
4886
4915
|
* LICENSE file in the root directory of this source tree.
|
|
4887
|
-
*/var
|
|
4916
|
+
*/var vn;function gg(){if(vn)return S;vn=1;var a=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),t=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),x=Symbol.iterator;function N(u){return u===null||typeof u!="object"?null:(u=x&&u[x]||u["@@iterator"],typeof u=="function"?u:null)}var F={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,q={};function P(u,v,$){this.props=u,this.context=v,this.refs=q,this.updater=$||F}P.prototype.isReactComponent={},P.prototype.setState=function(u,v){if(typeof u!="object"&&typeof u!="function"&&u!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,u,v,"setState")},P.prototype.forceUpdate=function(u){this.updater.enqueueForceUpdate(this,u,"forceUpdate")};function L(){}L.prototype=P.prototype;function W(u,v,$){this.props=u,this.context=v,this.refs=q,this.updater=$||F}var j=W.prototype=new L;j.constructor=W,A(j,P.prototype),j.isPureReactComponent=!0;var J=Array.isArray,B={H:null,A:null,T:null,S:null,V:null},fe=Object.prototype.hasOwnProperty;function be(u,v,$,E,M,Y){return $=Y.ref,{$$typeof:a,type:u,key:v,ref:$!==void 0?$:null,props:Y}}function ae(u,v){return be(u.type,v,void 0,void 0,void 0,u.props)}function ee(u){return typeof u=="object"&&u!==null&&u.$$typeof===a}function Ie(u){var v={"=":"=0",":":"=2"};return"$"+u.replace(/[=:]/g,function($){return v[$]})}var G=/\/+/g;function U(u,v){return typeof u=="object"&&u!==null&&u.key!=null?Ie(""+u.key):v.toString(36)}function le(){}function te(u){switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:switch(typeof u.status=="string"?u.then(le,le):(u.status="pending",u.then(function(v){u.status==="pending"&&(u.status="fulfilled",u.value=v)},function(v){u.status==="pending"&&(u.status="rejected",u.reason=v)})),u.status){case"fulfilled":return u.value;case"rejected":throw u.reason}}throw u}function X(u,v,$,E,M){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 a:case e:R=!0;break;case w:return R=u._init,X(R(u._payload),v,$,E,M)}}if(R)return M=M(u),R=E===""?"."+U(u,0):E,J(M)?($="",R!=null&&($=R.replace(G,"$&/")+"/"),X(M,v,$,"",function(Ye){return Ye})):M!=null&&(ee(M)&&(M=ae(M,$+(M.key==null||u&&u.key===M.key?"":(""+M.key).replace(G,"$&/")+"/")+R)),v.push(M)),1;R=0;var ue=E===""?".":E+":";if(J(u))for(var K=0;K<u.length;K++)E=u[K],Y=ue+U(E,K),R+=X(E,v,$,Y,M);else if(K=N(u),typeof K=="function")for(u=K.call(u),K=0;!(E=u.next()).done;)E=E.value,Y=ue+U(E,K++),R+=X(E,v,$,Y,M);else if(Y==="object"){if(typeof u.then=="function")return X(te(u),v,$,E,M);throw v=String(u),Error("Objects are not valid as a React child (found: "+(v==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":v)+"). If you meant to render a collection of children, use an array instead.")}return R}function Z(u,v,$){if(u==null)return u;var E=[],M=0;return X(u,E,"","",function(Y){return v.call($,Y,M++)}),E}function ye(u){if(u._status===-1){var v=u._result;v=v(),v.then(function($){(u._status===0||u._status===-1)&&(u._status=1,u._result=$)},function($){(u._status===0||u._status===-1)&&(u._status=2,u._result=$)}),u._status===-1&&(u._status=0,u._result=v)}if(u._status===1)return u._result.default;throw u._result}var ce=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var v=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof u=="object"&&u!==null&&typeof u.message=="string"?String(u.message):String(u),error:u});if(!window.dispatchEvent(v))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)};function de(){}return S.Children={map:Z,forEach:function(u,v,$){Z(u,function(){v.apply(this,arguments)},$)},count:function(u){var v=0;return Z(u,function(){v++}),v},toArray:function(u){return Z(u,function(v){return v})||[]},only:function(u){if(!ee(u))throw Error("React.Children.only expected to receive a single React element child.");return u}},S.Component=P,S.Fragment=r,S.Profiler=t,S.PureComponent=W,S.StrictMode=n,S.Suspense=C,S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,S.__COMPILER_RUNTIME={__proto__:null,c:function(u){return B.H.useMemoCache(u)}},S.cache=function(u){return function(){return u.apply(null,arguments)}},S.cloneElement=function(u,v,$){if(u==null)throw Error("The argument must be a React element, but you passed "+u+".");var E=A({},u.props),M=u.key,Y=void 0;if(v!=null)for(R in v.ref!==void 0&&(Y=void 0),v.key!==void 0&&(M=""+v.key),v)!fe.call(v,R)||R==="key"||R==="__self"||R==="__source"||R==="ref"&&v.ref===void 0||(E[R]=v[R]);var R=arguments.length-2;if(R===1)E.children=$;else if(1<R){for(var ue=Array(R),K=0;K<R;K++)ue[K]=arguments[K+2];E.children=ue}return be(u.type,M,void 0,void 0,Y,E)},S.createContext=function(u){return u={$$typeof:s,_currentValue:u,_currentValue2:u,_threadCount:0,Provider:null,Consumer:null},u.Provider=u,u.Consumer={$$typeof:i,_context:u},u},S.createElement=function(u,v,$){var E,M={},Y=null;if(v!=null)for(E in v.key!==void 0&&(Y=""+v.key),v)fe.call(v,E)&&E!=="key"&&E!=="__self"&&E!=="__source"&&(M[E]=v[E]);var R=arguments.length-2;if(R===1)M.children=$;else if(1<R){for(var ue=Array(R),K=0;K<R;K++)ue[K]=arguments[K+2];M.children=ue}if(u&&u.defaultProps)for(E in R=u.defaultProps,R)M[E]===void 0&&(M[E]=R[E]);return be(u,Y,void 0,void 0,null,M)},S.createRef=function(){return{current:null}},S.forwardRef=function(u){return{$$typeof:m,render:u}},S.isValidElement=ee,S.lazy=function(u){return{$$typeof:w,_payload:{_status:-1,_result:u},_init:ye}},S.memo=function(u,v){return{$$typeof:b,type:u,compare:v===void 0?null:v}},S.startTransition=function(u){var v=B.T,$={};B.T=$;try{var E=u(),M=B.S;M!==null&&M($,E),typeof E=="object"&&E!==null&&typeof E.then=="function"&&E.then(de,ce)}catch(Y){ce(Y)}finally{B.T=v}},S.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},S.use=function(u){return B.H.use(u)},S.useActionState=function(u,v,$){return B.H.useActionState(u,v,$)},S.useCallback=function(u,v){return B.H.useCallback(u,v)},S.useContext=function(u){return B.H.useContext(u)},S.useDebugValue=function(){},S.useDeferredValue=function(u,v){return B.H.useDeferredValue(u,v)},S.useEffect=function(u,v,$){var E=B.H;if(typeof $=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return E.useEffect(u,v)},S.useId=function(){return B.H.useId()},S.useImperativeHandle=function(u,v,$){return B.H.useImperativeHandle(u,v,$)},S.useInsertionEffect=function(u,v){return B.H.useInsertionEffect(u,v)},S.useLayoutEffect=function(u,v){return B.H.useLayoutEffect(u,v)},S.useMemo=function(u,v){return B.H.useMemo(u,v)},S.useOptimistic=function(u,v){return B.H.useOptimistic(u,v)},S.useReducer=function(u,v,$){return B.H.useReducer(u,v,$)},S.useRef=function(u){return B.H.useRef(u)},S.useState=function(u){return B.H.useState(u)},S.useSyncExternalStore=function(u,v,$){return B.H.useSyncExternalStore(u,v,$)},S.useTransition=function(){return B.H.useTransition()},S.version="19.1.0",S}var it={exports:{}};/**
|
|
4888
4917
|
* @license React
|
|
4889
4918
|
* react.development.js
|
|
4890
4919
|
*
|
|
@@ -4892,7 +4921,7 @@ body {
|
|
|
4892
4921
|
*
|
|
4893
4922
|
* This source code is licensed under the MIT license found in the
|
|
4894
4923
|
* LICENSE file in the root directory of this source tree.
|
|
4895
|
-
*/
|
|
4924
|
+
*/it.exports;var fn;function pg(){return fn||(fn=1,function(a,e){process.env.NODE_ENV!=="production"&&function(){function r(c,g){Object.defineProperty(i.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=wn&&c[wn]||c["@@iterator"],typeof c=="function"?c:null)}function t(c,g){c=(c=c.constructor)&&(c.displayName||c.name)||"ReactClass";var f=c+"."+g;Cn[f]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",g,c),Cn[f]=!0)}function i(c,g,f){this.props=c,this.context=g,this.refs=or,this.updater=f||_n}function s(){}function m(c,g,f){this.props=c,this.context=g,this.refs=or,this.updater=f||_n}function C(c){return""+c}function b(c){try{C(c);var g=!1}catch{g=!0}if(g){g=console;var f=g.error,y=typeof Symbol=="function"&&Symbol.toStringTag&&c[Symbol.toStringTag]||c.constructor.name||"Object";return f.call(g,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",y),C(c)}}function w(c){if(c==null)return null;if(typeof c=="function")return c.$$typeof===yg?null:c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case u:return"Fragment";case $:return"Profiler";case v:return"StrictMode";case R:return"Suspense";case ue:return"SuspenseList";case bg:return"Activity"}if(typeof c=="object")switch(typeof c.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),c.$$typeof){case de:return"Portal";case M:return(c.displayName||"Context")+".Provider";case E:return(c._context.displayName||"Context")+".Consumer";case Y:var g=c.render;return c=c.displayName,c||(c=g.displayName||g.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case K:return g=c.displayName||null,g!==null?g:w(c.type)||"Memo";case Ye:g=c._payload,c=c._init;try{return w(c(g))}catch{}}return null}function x(c){if(c===u)return"<>";if(typeof c=="object"&&c!==null&&c.$$typeof===Ye)return"<...>";try{var g=w(c);return g?"<"+g+">":"<...>"}catch{return"<...>"}}function N(){var c=k.A;return c===null?null:c.getOwner()}function F(){return Error("react-stack-top-frame")}function A(c){if(bt.call(c,"key")){var g=Object.getOwnPropertyDescriptor(c,"key").get;if(g&&g.isReactWarning)return!1}return c.key!==void 0}function q(c,g){function f(){On||(On=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",g))}f.isReactWarning=!0,Object.defineProperty(c,"key",{get:f,configurable:!0})}function P(){var c=w(this.type);return Pn[c]||(Pn[c]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),c=this.props.ref,c!==void 0?c:null}function L(c,g,f,y,_,T,D,z){return f=T.ref,c={$$typeof:ce,type:c,key:g,props:T,_owner:_},(f!==void 0?f:null)!==null?Object.defineProperty(c,"ref",{enumerable:!1,get:P}):Object.defineProperty(c,"ref",{enumerable:!1,value:null}),c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(c,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(c,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:D}),Object.defineProperty(c,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:z}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}function W(c,g){return g=L(c.type,g,void 0,void 0,c._owner,c.props,c._debugStack,c._debugTask),c._store&&(g._store.validated=c._store.validated),g}function j(c){return typeof c=="object"&&c!==null&&c.$$typeof===ce}function J(c){var g={"=":"=0",":":"=2"};return"$"+c.replace(/[=:]/g,function(f){return g[f]})}function B(c,g){return typeof c=="object"&&c!==null&&c.key!=null?(b(c.key),J(""+c.key)):g.toString(36)}function fe(){}function be(c){switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:switch(typeof c.status=="string"?c.then(fe,fe):(c.status="pending",c.then(function(g){c.status==="pending"&&(c.status="fulfilled",c.value=g)},function(g){c.status==="pending"&&(c.status="rejected",c.reason=g)})),c.status){case"fulfilled":return c.value;case"rejected":throw c.reason}}throw c}function ae(c,g,f,y,_){var T=typeof c;(T==="undefined"||T==="boolean")&&(c=null);var D=!1;if(c===null)D=!0;else switch(T){case"bigint":case"string":case"number":D=!0;break;case"object":switch(c.$$typeof){case ce:case de:D=!0;break;case Ye:return D=c._init,ae(D(c._payload),g,f,y,_)}}if(D){D=c,_=_(D);var z=y===""?"."+B(D,0):y;return xn(_)?(f="",z!=null&&(f=z.replace(Rn,"$&/")+"/"),ae(_,g,f,"",function(we){return we})):_!=null&&(j(_)&&(_.key!=null&&(D&&D.key===_.key||b(_.key)),f=W(_,f+(_.key==null||D&&D.key===_.key?"":(""+_.key).replace(Rn,"$&/")+"/")+z),y!==""&&D!=null&&j(D)&&D.key==null&&D._store&&!D._store.validated&&(f._store.validated=2),_=f),g.push(_)),1}if(D=0,z=y===""?".":y+":",xn(c))for(var I=0;I<c.length;I++)y=c[I],T=z+B(y,I),D+=ae(y,g,f,T,_);else if(I=n(c),typeof I=="function")for(I===c.entries&&(Dn||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Dn=!0),c=I.call(c),I=0;!(y=c.next()).done;)y=y.value,T=z+B(y,I++),D+=ae(y,g,f,T,_);else if(T==="object"){if(typeof c.then=="function")return ae(be(c),g,f,y,_);throw g=String(c),Error("Objects are not valid as a React child (found: "+(g==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":g)+"). If you meant to render a collection of children, use an array instead.")}return D}function ee(c,g,f){if(c==null)return c;var y=[],_=0;return ae(c,y,"","",function(T){return g.call(f,T,_++)}),y}function Ie(c){if(c._status===-1){var g=c._result;g=g(),g.then(function(f){(c._status===0||c._status===-1)&&(c._status=1,c._result=f)},function(f){(c._status===0||c._status===-1)&&(c._status=2,c._result=f)}),c._status===-1&&(c._status=0,c._result=g)}if(c._status===1)return g=c._result,g===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
4896
4925
|
|
|
4897
4926
|
Your code should look like:
|
|
4898
4927
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -4900,8 +4929,8 @@ Your code should look like:
|
|
|
4900
4929
|
Did you accidentally put curly braces around the import?`,g),"default"in g||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
4901
4930
|
|
|
4902
4931
|
Your code should look like:
|
|
4903
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,g),g.default;throw c._result}function G(){var c=
|
|
4932
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,g),g.default;throw c._result}function G(){var c=k.H;return c===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
4904
4933
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
4905
4934
|
2. You might be breaking the Rules of Hooks
|
|
4906
4935
|
3. You might have more than one copy of React in the same app
|
|
4907
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}function B(){}function lt(c){if(ye===null)try{var g=("require"+Math.random()).slice(0,7);ye=(i&&i[g]).call(i,"timers").setImmediate}catch{ye=function(y){kn===!1&&(kn=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var _=new MessageChannel;_.port1.onmessage=y,_.port2.postMessage(void 0)}}return ye(c)}function et(c){return 1<c.length&&typeof AggregateError=="function"?new AggregateError(c):c[0]}function K(c,g){g!==we-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),we=g}function Q(c,g,v){var y=I.actQueue;if(y!==null)if(y.length!==0)try{bt(y),lt(function(){return Q(c,g,v)});return}catch(_){I.thrownErrors.push(_)}else I.actQueue=null;0<I.thrownErrors.length?(y=et(I.thrownErrors),I.thrownErrors.length=0,v(y)):g(c)}function bt(c){if(!ir){ir=!0;var g=0;try{for(;g<c.length;g++){var v=c[g];do{I.didUsePromise=!1;var y=v(!1);if(y!==null){if(I.didUsePromise){c[g]=v,c.splice(0,g);return}v=y}else break}while(!0)}c.length=0}catch(_){c.splice(0,g+1),I.thrownErrors.push(_)}finally{ir=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ct=Symbol.for("react.transitional.element"),dt=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),A=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),ut=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),Yt=Symbol.for("react.lazy"),vg=Symbol.for("react.activity"),yn=Symbol.iterator,wn={},Cn={isMounted:function(){return!1},enqueueForceUpdate:function(c){e(c,"forceUpdate")},enqueueReplaceState:function(c){e(c,"replaceState")},enqueueSetState:function(c){e(c,"setState")}},_n=Object.assign,or={};Object.freeze(or),a.prototype.isReactComponent={},a.prototype.setState=function(c,g){if(typeof c!="object"&&typeof c!="function"&&c!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,c,g,"setState")},a.prototype.forceUpdate=function(c){this.updater.enqueueForceUpdate(this,c,"forceUpdate")};var rt={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},ve;for(ve in rt)rt.hasOwnProperty(ve)&&r(ve,rt[ve]);s.prototype=a.prototype,rt=m.prototype=new s,rt.constructor=m,_n(rt,a.prototype),rt.isPureReactComponent=!0;var xn=Array.isArray,bg=Symbol.for("react.client.reference"),I={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},be=Object.prototype.hasOwnProperty,En=console.createTask?console.createTask:function(){return null};rt={"react-stack-bottom-frame":function(c){return c()}};var $n,On,Sn={},yg=rt["react-stack-bottom-frame"].bind(rt,F)(),wg=En(E(F)),Pn=!1,Dn=/\/+/g,Rn=typeof reportError=="function"?reportError:function(c){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var g=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof c=="object"&&c!==null&&typeof c.message=="string"?String(c.message):String(c),error:c});if(!window.dispatchEvent(g))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",c);return}console.error(c)},kn=!1,ye=null,we=0,Ce=!1,ir=!1,In=typeof queueMicrotask=="function"?function(c){queueMicrotask(function(){return queueMicrotask(c)})}:lt;rt=Object.freeze({__proto__:null,c:function(c){return G().useMemoCache(c)}}),t.Children={map:tt,forEach:function(c,g,v){tt(c,function(){g.apply(this,arguments)},v)},count:function(c){var g=0;return tt(c,function(){g++}),g},toArray:function(c){return tt(c,function(g){return g})||[]},only:function(c){if(!X(c))throw Error("React.Children.only expected to receive a single React element child.");return c}},t.Component=a,t.Fragment=u,t.Profiler=$,t.PureComponent=m,t.StrictMode=f,t.Suspense=R,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,t.__COMPILER_RUNTIME=rt,t.act=function(c){var g=I.actQueue,v=we;we++;var y=I.actQueue=g!==null?g:[],_=!1;try{var T=c()}catch(k){I.thrownErrors.push(k)}if(0<I.thrownErrors.length)throw K(g,v),c=et(I.thrownErrors),I.thrownErrors.length=0,c;if(T!==null&&typeof T=="object"&&typeof T.then=="function"){var D=T;return In(function(){_||Ce||(Ce=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(k,yt){_=!0,D.then(function(jt){if(K(g,v),v===0){try{bt(y),lt(function(){return Q(jt,k,yt)})}catch(_g){I.thrownErrors.push(_g)}if(0<I.thrownErrors.length){var Cg=et(I.thrownErrors);I.thrownErrors.length=0,yt(Cg)}}else k(jt)},function(jt){K(g,v),0<I.thrownErrors.length&&(jt=et(I.thrownErrors),I.thrownErrors.length=0),yt(jt)})}}}var U=T;if(K(g,v),v===0&&(bt(y),y.length!==0&&In(function(){_||Ce||(Ce=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),I.actQueue=null),0<I.thrownErrors.length)throw c=et(I.thrownErrors),I.thrownErrors.length=0,c;return{then:function(k,yt){_=!0,v===0?(I.actQueue=y,lt(function(){return Q(U,k,yt)})):k(U)}}},t.cache=function(c){return function(){return c.apply(null,arguments)}},t.captureOwnerStack=function(){var c=I.getCurrentStack;return c===null?null:c()},t.cloneElement=function(c,g,v){if(c==null)throw Error("The argument must be a React element, but you passed "+c+".");var y=_n({},c.props),_=c.key,T=c._owner;if(g!=null){var D;t:{if(be.call(g,"ref")&&(D=Object.getOwnPropertyDescriptor(g,"ref").get)&&D.isReactWarning){D=!1;break t}D=g.ref!==void 0}D&&(T=N()),L(g)&&(b(g.key),_=""+g.key);for(U in g)!be.call(g,U)||U==="key"||U==="__self"||U==="__source"||U==="ref"&&g.ref===void 0||(y[U]=g[U])}var U=arguments.length-2;if(U===1)y.children=v;else if(1<U){D=Array(U);for(var k=0;k<U;k++)D[k]=arguments[k+2];y.children=D}for(y=M(c.type,_,void 0,void 0,T,y,c._debugStack,c._debugTask),_=2;_<arguments.length;_++)T=arguments[_],X(T)&&T._store&&(T._store.validated=1);return y},t.createContext=function(c){return c={$$typeof:A,_currentValue:c,_currentValue2:c,_threadCount:0,Provider:null,Consumer:null},c.Provider=c,c.Consumer={$$typeof:x,_context:c},c._currentRenderer=null,c._currentRenderer2=null,c},t.createElement=function(c,g,v){for(var y=2;y<arguments.length;y++){var _=arguments[y];X(_)&&_._store&&(_._store.validated=1)}if(y={},_=null,g!=null)for(k in On||!("__self"in g)||"key"in g||(On=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),L(g)&&(b(g.key),_=""+g.key),g)be.call(g,k)&&k!=="key"&&k!=="__self"&&k!=="__source"&&(y[k]=g[k]);var T=arguments.length-2;if(T===1)y.children=v;else if(1<T){for(var D=Array(T),U=0;U<T;U++)D[U]=arguments[U+2];Object.freeze&&Object.freeze(D),y.children=D}if(c&&c.defaultProps)for(k in T=c.defaultProps,T)y[k]===void 0&&(y[k]=T[k]);_&&z(y,typeof c=="function"?c.displayName||c.name||"Unknown":c);var k=1e4>I.recentlyCreatedOwnerStacks++;return M(c,_,void 0,void 0,N(),y,k?Error("react-stack-top-frame"):yg,k?En(E(c)):wg)},t.createRef=function(){var c={current:null};return Object.seal(c),c},t.forwardRef=function(c){c!=null&&c.$$typeof===j?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof c!="function"?console.error("forwardRef requires a render function but was given %s.",c===null?"null":typeof c):c.length!==0&&c.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",c.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),c!=null&&c.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var g={$$typeof:Y,render:c},v;return Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return v},set:function(y){v=y,c.name||c.displayName||(Object.defineProperty(c,"name",{value:y}),c.displayName=y)}}),g},t.isValidElement=X,t.lazy=function(c){return{$$typeof:Yt,_payload:{_status:-1,_result:c},_init:kt}},t.memo=function(c,g){c==null&&console.error("memo: The first argument must be a component. Instead received: %s",c===null?"null":typeof c),g={$$typeof:j,type:c,compare:g===void 0?null:g};var v;return Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return v},set:function(y){v=y,c.name||c.displayName||(Object.defineProperty(c,"name",{value:y}),c.displayName=y)}}),g},t.startTransition=function(c){var g=I.T,v={};I.T=v,v._updatedFibers=new Set;try{var y=c(),_=I.S;_!==null&&_(v,y),typeof y=="object"&&y!==null&&typeof y.then=="function"&&y.then(B,Rn)}catch(T){Rn(T)}finally{g===null&&v._updatedFibers&&(c=v._updatedFibers.size,v._updatedFibers.clear(),10<c&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),I.T=g}},t.unstable_useCacheRefresh=function(){return G().useCacheRefresh()},t.use=function(c){return G().use(c)},t.useActionState=function(c,g,v){return G().useActionState(c,g,v)},t.useCallback=function(c,g){return G().useCallback(c,g)},t.useContext=function(c){var g=G();return c.$$typeof===x&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),g.useContext(c)},t.useDebugValue=function(c,g){return G().useDebugValue(c,g)},t.useDeferredValue=function(c,g){return G().useDeferredValue(c,g)},t.useEffect=function(c,g,v){c==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var y=G();if(typeof v=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return y.useEffect(c,g)},t.useId=function(){return G().useId()},t.useImperativeHandle=function(c,g,v){return G().useImperativeHandle(c,g,v)},t.useInsertionEffect=function(c,g){return c==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),G().useInsertionEffect(c,g)},t.useLayoutEffect=function(c,g){return c==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),G().useLayoutEffect(c,g)},t.useMemo=function(c,g){return G().useMemo(c,g)},t.useOptimistic=function(c,g){return G().useOptimistic(c,g)},t.useReducer=function(c,g,v){return G().useReducer(c,g,v)},t.useRef=function(c){return G().useRef(c)},t.useState=function(c){return G().useState(c)},t.useSyncExternalStore=function(c,g,v){return G().useSyncExternalStore(c,g,v)},t.useTransition=function(){return G().useTransition()},t.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(ae,ae.exports)),ae.exports}var vn;function pg(){return vn||(vn=1,process.env.NODE_ENV==="production"?fe.exports=ug():fe.exports=gg()),fe.exports}var hg=pg();const bn=dg(hg),mg=hn({tagName:"rtg-button",elementClass:o.Button,react:bn}),fg=hn({tagName:"rtg-checkbox",elementClass:o.Checkbox,react:bn});o.ButtonReact=mg,o.CheckboxReact=fg,o.TOGGLE_GROUP_SIZE=ge,o.TOGGLE_GROUP_TYPE=ee,o.TOGGLE_GROUP_VARIANT=ue,o.TOGGLE_SIZE=Qe,o.TOGGLE_VARIANT=Ze,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|
|
4936
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}function U(){}function le(c){if(yt===null)try{var g=("require"+Math.random()).slice(0,7);yt=(a&&a[g]).call(a,"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 _=new MessageChannel;_.port1.onmessage=y,_.port2.postMessage(void 0)}}return yt(c)}function te(c){return 1<c.length&&typeof AggregateError=="function"?new AggregateError(c):c[0]}function X(c,g){g!==wt-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),wt=g}function Z(c,g,f){var y=k.actQueue;if(y!==null)if(y.length!==0)try{ye(y),le(function(){return Z(c,g,f)});return}catch(_){k.thrownErrors.push(_)}else k.actQueue=null;0<k.thrownErrors.length?(y=te(k.thrownErrors),k.thrownErrors.length=0,f(y)):g(c)}function ye(c){if(!ar){ar=!0;var g=0;try{for(;g<c.length;g++){var f=c[g];do{k.didUsePromise=!1;var y=f(!1);if(y!==null){if(k.didUsePromise){c[g]=f,c.splice(0,g);return}f=y}else break}while(!0)}c.length=0}catch(_){c.splice(0,g+1),k.thrownErrors.push(_)}finally{ar=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ce=Symbol.for("react.transitional.element"),de=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),M=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),ue=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),Ye=Symbol.for("react.lazy"),bg=Symbol.for("react.activity"),wn=Symbol.iterator,Cn={},_n={isMounted:function(){return!1},enqueueForceUpdate:function(c){t(c,"forceUpdate")},enqueueReplaceState:function(c){t(c,"replaceState")},enqueueSetState:function(c){t(c,"setState")}},En=Object.assign,or={};Object.freeze(or),i.prototype.isReactComponent={},i.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")},i.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)."]},ft;for(ft in re)re.hasOwnProperty(ft)&&r(ft,re[ft]);s.prototype=i.prototype,re=m.prototype=new s,re.constructor=m,En(re,i.prototype),re.isPureReactComponent=!0;var xn=Array.isArray,yg=Symbol.for("react.client.reference"),k={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},bt=Object.prototype.hasOwnProperty,$n=console.createTask?console.createTask:function(){return null};re={"react-stack-bottom-frame":function(c){return c()}};var On,Sn,Pn={},wg=re["react-stack-bottom-frame"].bind(re,F)(),Cg=$n(x(F)),Dn=!1,Rn=/\/+/g,In=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,Ct=!1,ar=!1,Tn=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,f){ee(c,function(){g.apply(this,arguments)},f)},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(!j(c))throw Error("React.Children.only expected to receive a single React element child.");return c}},e.Component=i,e.Fragment=u,e.Profiler=$,e.PureComponent=m,e.StrictMode=v,e.Suspense=R,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,e.__COMPILER_RUNTIME=re,e.act=function(c){var g=k.actQueue,f=wt;wt++;var y=k.actQueue=g!==null?g:[],_=!1;try{var T=c()}catch(I){k.thrownErrors.push(I)}if(0<k.thrownErrors.length)throw X(g,f),c=te(k.thrownErrors),k.thrownErrors.length=0,c;if(T!==null&&typeof T=="object"&&typeof T.then=="function"){var D=T;return Tn(function(){_||Ct||(Ct=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(I,we){_=!0,D.then(function(Ke){if(X(g,f),f===0){try{ye(y),le(function(){return Z(Ke,I,we)})}catch(Eg){k.thrownErrors.push(Eg)}if(0<k.thrownErrors.length){var _g=te(k.thrownErrors);k.thrownErrors.length=0,we(_g)}}else I(Ke)},function(Ke){X(g,f),0<k.thrownErrors.length&&(Ke=te(k.thrownErrors),k.thrownErrors.length=0),we(Ke)})}}}var z=T;if(X(g,f),f===0&&(ye(y),y.length!==0&&Tn(function(){_||Ct||(Ct=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),k.actQueue=null),0<k.thrownErrors.length)throw c=te(k.thrownErrors),k.thrownErrors.length=0,c;return{then:function(I,we){_=!0,f===0?(k.actQueue=y,le(function(){return Z(z,I,we)})):I(z)}}},e.cache=function(c){return function(){return c.apply(null,arguments)}},e.captureOwnerStack=function(){var c=k.getCurrentStack;return c===null?null:c()},e.cloneElement=function(c,g,f){if(c==null)throw Error("The argument must be a React element, but you passed "+c+".");var y=En({},c.props),_=c.key,T=c._owner;if(g!=null){var D;e:{if(bt.call(g,"ref")&&(D=Object.getOwnPropertyDescriptor(g,"ref").get)&&D.isReactWarning){D=!1;break e}D=g.ref!==void 0}D&&(T=N()),A(g)&&(b(g.key),_=""+g.key);for(z in g)!bt.call(g,z)||z==="key"||z==="__self"||z==="__source"||z==="ref"&&g.ref===void 0||(y[z]=g[z])}var z=arguments.length-2;if(z===1)y.children=f;else if(1<z){D=Array(z);for(var I=0;I<z;I++)D[I]=arguments[I+2];y.children=D}for(y=L(c.type,_,void 0,void 0,T,y,c._debugStack,c._debugTask),_=2;_<arguments.length;_++)T=arguments[_],j(T)&&T._store&&(T._store.validated=1);return y},e.createContext=function(c){return c={$$typeof:M,_currentValue:c,_currentValue2:c,_threadCount:0,Provider:null,Consumer:null},c.Provider=c,c.Consumer={$$typeof:E,_context:c},c._currentRenderer=null,c._currentRenderer2=null,c},e.createElement=function(c,g,f){for(var y=2;y<arguments.length;y++){var _=arguments[y];j(_)&&_._store&&(_._store.validated=1)}if(y={},_=null,g!=null)for(I in Sn||!("__self"in g)||"key"in g||(Sn=!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")),A(g)&&(b(g.key),_=""+g.key),g)bt.call(g,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(y[I]=g[I]);var T=arguments.length-2;if(T===1)y.children=f;else if(1<T){for(var D=Array(T),z=0;z<T;z++)D[z]=arguments[z+2];Object.freeze&&Object.freeze(D),y.children=D}if(c&&c.defaultProps)for(I in T=c.defaultProps,T)y[I]===void 0&&(y[I]=T[I]);_&&q(y,typeof c=="function"?c.displayName||c.name||"Unknown":c);var I=1e4>k.recentlyCreatedOwnerStacks++;return L(c,_,void 0,void 0,N(),y,I?Error("react-stack-top-frame"):wg,I?$n(x(c)):Cg)},e.createRef=function(){var c={current:null};return Object.seal(c),c},e.forwardRef=function(c){c!=null&&c.$$typeof===K?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof c!="function"?console.error("forwardRef requires a render function but was given %s.",c===null?"null":typeof c):c.length!==0&&c.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",c.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),c!=null&&c.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var g={$$typeof:Y,render:c},f;return Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(y){f=y,c.name||c.displayName||(Object.defineProperty(c,"name",{value:y}),c.displayName=y)}}),g},e.isValidElement=j,e.lazy=function(c){return{$$typeof:Ye,_payload:{_status:-1,_result:c},_init:Ie}},e.memo=function(c,g){c==null&&console.error("memo: The first argument must be a component. Instead received: %s",c===null?"null":typeof c),g={$$typeof:K,type:c,compare:g===void 0?null:g};var f;return Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(y){f=y,c.name||c.displayName||(Object.defineProperty(c,"name",{value:y}),c.displayName=y)}}),g},e.startTransition=function(c){var g=k.T,f={};k.T=f,f._updatedFibers=new Set;try{var y=c(),_=k.S;_!==null&&_(f,y),typeof y=="object"&&y!==null&&typeof y.then=="function"&&y.then(U,In)}catch(T){In(T)}finally{g===null&&f._updatedFibers&&(c=f._updatedFibers.size,f._updatedFibers.clear(),10<c&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),k.T=g}},e.unstable_useCacheRefresh=function(){return G().useCacheRefresh()},e.use=function(c){return G().use(c)},e.useActionState=function(c,g,f){return G().useActionState(c,g,f)},e.useCallback=function(c,g){return G().useCallback(c,g)},e.useContext=function(c){var g=G();return c.$$typeof===E&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),g.useContext(c)},e.useDebugValue=function(c,g){return G().useDebugValue(c,g)},e.useDeferredValue=function(c,g){return G().useDeferredValue(c,g)},e.useEffect=function(c,g,f){c==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var y=G();if(typeof f=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return y.useEffect(c,g)},e.useId=function(){return G().useId()},e.useImperativeHandle=function(c,g,f){return G().useImperativeHandle(c,g,f)},e.useInsertionEffect=function(c,g){return c==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),G().useInsertionEffect(c,g)},e.useLayoutEffect=function(c,g){return c==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),G().useLayoutEffect(c,g)},e.useMemo=function(c,g){return G().useMemo(c,g)},e.useOptimistic=function(c,g){return G().useOptimistic(c,g)},e.useReducer=function(c,g,f){return G().useReducer(c,g,f)},e.useRef=function(c){return G().useRef(c)},e.useState=function(c){return G().useState(c)},e.useSyncExternalStore=function(c,g,f){return G().useSyncExternalStore(c,g,f)},e.useTransition=function(){return G().useTransition()},e.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(it,it.exports)),it.exports}var bn;function hg(){return bn||(bn=1,process.env.NODE_ENV==="production"?vt.exports=gg():vt.exports=pg()),vt.exports}var mg=hg();const yn=ug(mg),vg=mn({tagName:"rtg-button",elementClass:o.Button,react:yn}),fg=mn({tagName:"rtg-checkbox",elementClass:o.Checkbox,react:yn});o.ButtonReact=vg,o.CheckboxReact=fg,o.TOGGLE_GROUP_SIZE=gt,o.TOGGLE_GROUP_TYPE=tt,o.TOGGLE_GROUP_VARIANT=ut,o.TOGGLE_SIZE=Zt,o.TOGGLE_VARIANT=Qt,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|