@vanelsas/baredom 3.6.0 → 3.7.0
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/CHANGELOG.md +26 -0
- package/README.md +2 -2
- package/custom-elements.json +200 -0
- package/dist/baredom.d.ts +2 -0
- package/dist/base.js +603 -584
- package/dist/integrity.json +111 -109
- package/dist/x-alert.js +17 -17
- package/dist/x-avatar-group.js +9 -9
- package/dist/x-avatar.js +14 -14
- package/dist/x-badge.js +8 -8
- package/dist/x-bento-grid.js +5 -5
- package/dist/x-bento-item.js +4 -4
- package/dist/x-breadcrumbs.js +13 -13
- package/dist/x-button.js +1 -1
- package/dist/x-calendar.js +39 -39
- package/dist/x-cancel-dialogue.js +13 -13
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +33 -33
- package/dist/x-chart.js +45 -45
- package/dist/x-checkbox.js +1 -1
- package/dist/x-chip.js +1 -1
- package/dist/x-code.js +27 -27
- package/dist/x-collapse.js +9 -9
- package/dist/x-color-picker.js +44 -44
- package/dist/x-combobox.js +33 -33
- package/dist/x-command-palette.js +28 -28
- package/dist/x-confetti.js +23 -23
- package/dist/x-container.js +5 -5
- package/dist/x-context-menu.js +19 -19
- package/dist/x-copy.js +1 -1
- package/dist/x-currency-field.js +22 -22
- package/dist/x-date-picker.js +42 -42
- package/dist/x-divider.js +9 -10
- package/dist/x-drag-panel.d.ts +45 -0
- package/dist/x-drag-panel.js +36 -0
- package/dist/x-drawer.js +11 -11
- package/dist/x-drop-zone.d.ts +49 -0
- package/dist/x-drop-zone.js +11 -0
- package/dist/x-dropdown.js +12 -12
- package/dist/x-fieldset.js +5 -5
- package/dist/x-file-download.js +6 -6
- package/dist/x-file-upload.js +25 -25
- package/dist/x-floating-panel.js +23 -24
- package/dist/x-form-field.js +15 -15
- package/dist/x-form.js +10 -10
- package/dist/x-gaussian-blur.js +13 -13
- package/dist/x-grid.js +6 -6
- package/dist/x-i18n-provider.js +7 -7
- package/dist/x-i18n.js +4 -4
- package/dist/x-icon.js +7 -7
- package/dist/x-image.js +17 -17
- package/dist/x-kbd.js +11 -11
- package/dist/x-kinetic-canvas.js +24 -24
- package/dist/x-kinetic-font.js +25 -25
- package/dist/x-kinetic-typography.js +32 -32
- package/dist/x-liquid-dock.js +31 -31
- package/dist/x-liquid-fill.js +41 -41
- package/dist/x-liquid-glass.js +35 -35
- package/dist/x-menu-item.js +8 -8
- package/dist/x-menu.js +9 -9
- package/dist/x-metaball-cursor.js +23 -23
- package/dist/x-modal.js +12 -12
- package/dist/x-morph-stack.js +37 -37
- package/dist/x-multi-combobox.js +39 -39
- package/dist/x-navbar.js +14 -14
- package/dist/x-neural-glow.js +29 -29
- package/dist/x-notification-center.js +9 -9
- package/dist/x-organic-divider.js +17 -17
- package/dist/x-organic-progress.js +34 -34
- package/dist/x-organic-shape.js +14 -14
- package/dist/x-otp-input.js +21 -21
- package/dist/x-pagination.js +14 -14
- package/dist/x-particle-button.js +44 -44
- package/dist/x-popover.js +26 -26
- package/dist/x-progress-circle.js +8 -8
- package/dist/x-progress.js +7 -7
- package/dist/x-proximity-list.js +20 -20
- package/dist/x-radio.js +12 -12
- package/dist/x-range-slider.js +28 -28
- package/dist/x-rating.js +24 -24
- package/dist/x-ripple-effect.js +9 -9
- package/dist/x-scroll-parallax.js +17 -17
- package/dist/x-scroll-stack.js +16 -16
- package/dist/x-scroll-story.js +31 -31
- package/dist/x-scroll-timeline.js +46 -46
- package/dist/x-scroll.js +36 -36
- package/dist/x-search-field.js +1 -1
- package/dist/x-select.js +1 -1
- package/dist/x-sidebar.js +15 -15
- package/dist/x-skeleton-group.js +12 -12
- package/dist/x-skeleton.js +1 -1
- package/dist/x-slider.js +16 -16
- package/dist/x-soft-body.js +17 -17
- package/dist/x-spacer.js +4 -4
- package/dist/x-spinner.js +4 -4
- package/dist/x-splash.js +12 -12
- package/dist/x-split-pane.js +14 -14
- package/dist/x-spotlight-card.js +11 -11
- package/dist/x-stat.js +10 -10
- package/dist/x-stepper.js +13 -13
- package/dist/x-switch.js +11 -11
- package/dist/x-tab.js +6 -6
- package/dist/x-table-cell.js +19 -19
- package/dist/x-table-row.js +8 -8
- package/dist/x-table.js +13 -13
- package/dist/x-tabs.js +11 -11
- package/dist/x-text-area.js +19 -19
- package/dist/x-theme.js +25 -25
- package/dist/x-timeline-item.js +20 -20
- package/dist/x-timeline.js +8 -8
- package/dist/x-toast.js +21 -21
- package/dist/x-toaster.js +7 -7
- package/dist/x-tooltip.js +12 -12
- package/dist/x-trace-history.js +125 -124
- package/dist/x-typography.js +6 -6
- package/dist/x-welcome-tour.js +63 -63
- package/package.json +11 -1
package/dist/x-code.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var d2=function(a){return $APP.
|
|
3
|
-
1;else return e}();a=function(){for(var e=c-1;;)if(e>=d&&e2($APP.xc(b,e)))--e;else return e}();return d<=a?$APP.
|
|
4
|
-
h=0;;){var k=b.exec(a);if(k==null)return $APP.
|
|
5
|
-
b);var d=$APP.t(a),e=$APP.B(d,0,null),f=$APP.B(d,1,null),h=$APP.
|
|
6
|
-
b,c,d,e,f,h,k),$APP.
|
|
7
|
-
e=document.createElement("span");$APP.
|
|
8
|
-
return c},G2=function(a){if($APP.n($APP.l(a,"__xCodeRefs"))){var b=k2(a);var c=a.getAttribute("language"),d=$APP.l(a,"__xCodeModel"),e=$APP.n(d)?$APP.z.j(f2(b),n2.i(d))&&$APP.z.j(d2(c),o2.i(d)):d;b=$APP.
|
|
9
|
-
$APP.C(e,$APP.
|
|
10
|
-
new $APP.J(null,1,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[i2,m],null)],null),m=
|
|
11
|
-
h=$APP.l(a,"__xCodeRefs");c=$APP.l(h,"filename");d=$APP.l(h,"lang");e=$APP.l(h,"cwrap");h=$APP.l(h,"copy");k=$APP.I("",$APP.
|
|
12
|
-
5,$APP.K,[n2,o2],null)))){c=$APP.l($APP.l(a,"__xCodeRefs"),"code");d=document.createDocumentFragment();e=$APP.q($APP.
|
|
13
|
-
"expander");e=C2.i(b);d=$APP.n(e)?$APP.p(p2.i(b)):e;$APP
|
|
14
|
-
$APP.Q(a,"__xCodeModel",b)}else a=null;return a}return null},
|
|
15
|
-
m=$APP.B(x,1,null);r=$APP.B(x,2,null);var y=$APP.l(b,k);y.addEventListener(m,function(A,E,H,O,
|
|
16
|
-
"language","");$APP.
|
|
17
|
-
value:function(){return $APP.
|
|
18
|
-
$APP.
|
|
19
|
-
$APP.
|
|
20
|
-
$APP.
|
|
21
|
-
5,[$APP.
|
|
22
|
-
"cwrap","cwrap",-648244090),H2=new $APP.F(null,"lang","lang",-1819677104),q2=new $APP.F(null,"lines","lines",-700165781),g2=new $APP.F(null,"types","types",590030639),
|
|
23
|
-
"atrule",-521152778),u2=new $APP.F(null,"show-copy?","show-copy?",604953882),p2=new $APP.F(null,"expanded?","expanded?",2055832296),C2=new $APP.F(null,"collapsible?","collapsible?",-1508197779),O2=new $APP.F(null,"keyword","keyword",811389747),n2=new $APP.F(null,"code","code",1586293142),F2=new $APP.F(null,"max-lines","max-lines",-125998785),
|
|
24
|
-
-402825953),v2=new $APP.F(null,"line-numbers?","line-numbers?",1919907771),E2=new $APP.F(null,"line-count","line-count",871713181),
|
|
25
|
-
var
|
|
26
|
-
null),new $APP.J(null,2,5,$APP.K,[
|
|
27
|
-
/"[^"]*"|'[^']*'/],null),new $APP.J(null,2,5,$APP.K,[
|
|
28
|
-
null),new $APP.J(null,2,5,$APP.K,[K2,/0[xX][0-9a-fA-F]+|(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/],null),new $APP.J(null,2,5,$APP.K,[L2,/[-+*\/%=<>!&|?:;,.~^{}()\[\]]/],null)],null)),y2=h2(
|
|
2
|
+
var d2=function(a){return $APP.Kc(wra,typeof a==="string"?a.trim().toLowerCase():null,"text")},e2=function(a){return $APP.z.j("",a.trim())},xra=function(a){return $APP.w($APP.sh(/^[\t ]*/,a))},yra=function(a){var b=$APP.Ze(a.split("\n")),c=$APP.Ee(e2,b),d=$APP.q(c)?$APP.od($APP.Rl,$APP.xe.j(xra,c)):0;return d>0?$APP.vi("\n",$APP.xe.j(function(e){return $APP.w(e)>=d?e.substring(d):e},b)):a},zra=function(a){var b=$APP.Ze(a.split("\n")),c=$APP.w(b),d=function(){for(var e=0;;)if(e<c&&e2($APP.xc(b,e)))e+=
|
|
3
|
+
1;else return e}();a=function(){for(var e=c-1;;)if(e>=d&&e2($APP.xc(b,e)))--e;else return e}();return d<=a?$APP.vi("\n",$APP.ef(null,b,d|0,a+1|0,null)):""},f2=function(a){return typeof a==="string"?yra(zra($APP.ui(a,/\r\n?/,"\n"))):""},h2=function(a){return new $APP.M(null,2,[$APP.au,$APP.vi("|",$APP.xe.j(function(b){$APP.B(b,0,null);b=$APP.B(b,1,null);return"("+$APP.P.i(b.source)+")"},a)),g2,$APP.Ge($APP.t,a)],null)},j2=function(a,b,c){b=new RegExp(b,"g");for(var d=$APP.w(c),e=$APP.w(a),f=$APP.xb($APP.Fe),
|
|
4
|
+
h=0;;){var k=b.exec(a);if(k==null)return $APP.Rd(h<e?$APP.Sd(f,new $APP.J(null,2,5,$APP.K,[i2,a.substring(h)],null)):f);var m=k[0],r=k.index;a:{for(var u=1;;){if(u>d){k=1;break a}if(k[u]!=null){k=u;break a}u+=1}k=void 0}k=$APP.xc(c,k-1);h=r>h?new $APP.J(null,2,5,$APP.K,[i2,a.substring(h,r)],null):null;r+=m.length;m.length===0&&(b.lastIndex+=1);f=$APP.n(h)?$APP.yb(f,h):f;f=m=$APP.Sd(f,new $APP.J(null,2,5,$APP.K,[k,m],null));h=r}},Ara=function(a){a=$APP.q(a);for(var b=$APP.Fe,c=$APP.Fe;;){if(a==null)return $APP.Ad.j(c,
|
|
5
|
+
b);var d=$APP.t(a),e=$APP.B(d,0,null),f=$APP.B(d,1,null),h=$APP.Ze(f.split("\n")),k=$APP.w(h);if($APP.z.j(k,1))a=$APP.v(a),b=$APP.Ad.j(b,new $APP.J(null,2,5,$APP.K,[e,f],null));else{var m=$APP.v(a),r=new $APP.J(null,1,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[e,$APP.Qc(h)],null)],null);c=$APP.Ff.j($APP.Ad.j(c,$APP.Ad.j(b,new $APP.J(null,2,5,$APP.K,[e,$APP.t(h)],null))),$APP.xe.j(function(u,x,y,A,E){return function(H){return new $APP.J(null,1,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[E,H],null)],null)}}(a,
|
|
6
|
+
b,c,d,e,f,h,k),$APP.ef(null,h,1,k-1|0,null)));a=m;b=r}}},k2=function(a){var b=$APP.l(a,"__xCodeCodeValue");if(typeof b==="string")return b;a=$APP.n(a.hasAttribute("code"))?a.getAttribute("code"):a.textContent;return $APP.n(a)?a:""},l2=function(a){var b=$APP.B(a,0,null);a=$APP.B(a,1,null);if($APP.z.j(i2,b))return document.createTextNode(a);var c=document.createElement("span");c.className="tok-"+$APP.P.i($APP.jh(b));c.textContent=a;return c},m2=function(a,b){var c=document.createElement("span"),d=document.createElement("span"),
|
|
7
|
+
e=document.createElement("span");$APP.S(c,"part","line");$APP.S(d,"part","gutter");$APP.S(d,"aria-hidden","true");d.textContent=""+$APP.P.i(b+1);$APP.S(e,"part","line-content");a=$APP.q(a);b=null;for(var f=0,h=0;;)if(h<f){var k=b.C(null,h);$APP.I("",$APP.Gc(k))&&e.appendChild(l2(k));h+=1}else if(a=$APP.q(a))b=a,$APP.Zc(b)?(a=$APP.Eb(b),h=$APP.Fb(b),b=a,f=$APP.w(a),a=h):(a=$APP.t(b),$APP.I("",$APP.Gc(a))&&e.appendChild(l2(a)),a=$APP.v(b),b=null,f=0),h=0;else break;c.appendChild(d);c.appendChild(e);
|
|
8
|
+
return c},G2=function(a){if($APP.n($APP.l(a,"__xCodeRefs"))){var b=k2(a);var c=a.getAttribute("language"),d=$APP.l(a,"__xCodeModel"),e=$APP.n(d)?$APP.z.j(f2(b),n2.i(d))&&$APP.z.j(d2(c),o2.i(d)):d;b=$APP.vg([$APP.Lq,p2,q2,r2,s2,t2,u2,v2,w2],[a.getAttribute("filename"),a.hasAttribute("expanded"),$APP.n(e)?q2.i(d):null,a.hasAttribute("wrap"),a.getAttribute("max-lines"),b,a.hasAttribute("show-copy"),a.hasAttribute("line-numbers"),c]);e=$APP.G(b);var f=$APP.C(e,u2);b=$APP.C(e,v2);c=$APP.C(e,w2);var h=
|
|
9
|
+
$APP.C(e,$APP.Lq),k=$APP.C(e,p2),m=$APP.C(e,q2);d=$APP.C(e,r2);var r=$APP.C(e,s2);e=$APP.C(e,t2);c=d2(c);e=f2(e);h=typeof h==="string"?h.trim():null;h=$APP.n($APP.n(h)?$APP.I("",h):h)?h:"";typeof r==="string"?(r=parseInt(r,10),r=$APP.p(isNaN(r))&&r>0?r:0):r=0;$APP.n(m)||(m=""+$APP.P.i(e),m=$APP.z.j("",m)?$APP.Fe:$APP.z.j(c,"js")?j2(m,$APP.au.i(x2),g2.i(x2)):$APP.z.j(c,"json")?j2(m,$APP.au.i(y2),g2.i(y2)):$APP.z.j(c,"css")?j2(m,$APP.au.i(z2),g2.i(z2)):$APP.z.j(c,"html")?j2(m,$APP.au.i(A2),g2.i(A2)):
|
|
10
|
+
new $APP.J(null,1,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[i2,m],null)],null),m=Ara(m));var u=$APP.w(m);f=$APP.D(f);k=$APP.D(k);var x=$APP.D(f||$APP.I("",h)),y=$APP.D(r>0&&u>r);d=$APP.D(d);b=$APP.D(b);var A=$APP.z.j(c,"text")?"":c.toUpperCase();b=$APP.vg([p2,q2,B2,C2,$APP.Bu,r2,o2,n2,u2,v2,D2,E2,F2],[k,m,x,y,h,d,c,e,f,b,A,u,r]);if($APP.I(b,$APP.l(a,"__xCodeModel"))){c=a.style;c.setProperty("--x-code-max-lines",""+$APP.P.i(F2.i(b)));c.setProperty("--x-code-gutter-digits",""+$APP.P.i($APP.Ql.j(2,(""+$APP.P.i(E2.i(b))).length)));
|
|
11
|
+
h=$APP.l(a,"__xCodeRefs");c=$APP.l(h,"filename");d=$APP.l(h,"lang");e=$APP.l(h,"cwrap");h=$APP.l(h,"copy");k=$APP.I("",$APP.Bu.i(b));f=!k&&$APP.I("",D2.i(b));$APP.$i(a,"data-header",B2.i(b));c.textContent=$APP.Bu.i(b);c.style.display=k?"block":"none";d.textContent=D2.i(b);d.style.display=f?"block":"none";e.style.display=$APP.n(u2.i(b))?"inline-flex":"none";$APP.S(h,"text",n2.i(b));c=$APP.l(a,"__xCodeModel");if($APP.I($APP.$g(b,new $APP.J(null,2,5,$APP.K,[n2,o2],null)),$APP.$g(c,new $APP.J(null,2,
|
|
12
|
+
5,$APP.K,[n2,o2],null)))){c=$APP.l($APP.l(a,"__xCodeRefs"),"code");d=document.createDocumentFragment();e=$APP.q($APP.re($APP.Cp,q2.i(b)));h=null;for(f=k=0;;)if(f<k)m=h.C(null,f),r=$APP.B(m,0,null),m=$APP.B(m,1,null),d.appendChild(m2(m,r)),f+=1;else if(e=$APP.q(e))$APP.Zc(e)?(k=$APP.Eb(e),e=$APP.Fb(e),h=k,k=$APP.w(k)):(k=$APP.t(e),h=$APP.B(k,0,null),k=$APP.B(k,1,null),d.appendChild(m2(k,h)),e=$APP.v(e),h=null,k=0),f=0;else break;c.replaceChildren();c.appendChild(d)}c=$APP.l($APP.l(a,"__xCodeRefs"),
|
|
13
|
+
"expander");e=C2.i(b);d=$APP.n(e)?$APP.p(p2.i(b)):e;$APP.$i(a,"data-collapsible",e);$APP.$i(a,"data-collapsed",d);$APP.n(d)?(h=$APP.G(b),e=$APP.C(h,E2),h=$APP.C(h,F2),e=$APP.Ql.j(0,e-h),e="Show "+$APP.P.i(e)+" more "+$APP.P.i($APP.z.j(1,e)?"line":"lines")):e="Show less";c.textContent=e;$APP.S(c,"aria-expanded",$APP.n(d)?"false":"true");c=$APP.l($APP.l(a,"__xCodeRefs"),"scroll");d=$APP.I("",$APP.Bu.i(b))?$APP.Bu.i(b):$APP.I("",D2.i(b))?""+$APP.P.i(D2.i(b))+" code":"Code";$APP.S(c,"aria-label",d);a=
|
|
14
|
+
$APP.Q(a,"__xCodeModel",b)}else a=null;return a}return null},Cra=function(a){for(var b=$APP.l(a,"__xCodeRefs"),c=$APP.q(Bra),d=null,e=0,f=0;;)if(f<e){var h=d.C(null,f),k=$APP.B(h,0,null),m=$APP.B(h,1,null),r=$APP.B(h,2,null),u=$APP.l(b,k);u.addEventListener(m,function(A,E,H,O,T,R,aa,ma,ia){return function(na){return ia.j?ia.j(a,na):ia.call(null,a,na)}}(c,d,e,f,u,h,k,m,r,b));f+=1}else if(u=$APP.q(c)){h=u;if($APP.Zc(h))c=$APP.Eb(h),f=$APP.Fb(h),d=c,e=$APP.w(c),c=f;else{var x=$APP.t(h);k=$APP.B(x,0,
|
|
15
|
+
null);m=$APP.B(x,1,null);r=$APP.B(x,2,null);var y=$APP.l(b,k);y.addEventListener(m,function(A,E,H,O,T,R,aa,ma,ia){return function(na){return ia.j?ia.j(a,na):ia.call(null,a,na)}}(c,d,e,f,y,x,k,m,r,h,u,b));c=$APP.v(h);d=null;e=0}f=0}else break},Dra=function(a){(function(){var b=$APP.l(a,"__xCodeObserver");if($APP.n(b))return b;b=new MutationObserver(function(){return G2(a)});$APP.Q(a,"__xCodeObserver",b);return b})().observe(a,{childList:!0,characterData:!0,subtree:!0})},Era=function(a){$APP.mj(a,"language",
|
|
16
|
+
"language","");$APP.mj(a,"filename","filename","");$APP.jj(a,"showCopy","show-copy");$APP.jj(a,"lineNumbers","line-numbers");$APP.jj(a,"wrap","wrap");$APP.jj(a,"expanded","expanded");$APP.oj(a,"maxLines","max-lines",0);Object.defineProperty(a,"code",{configurable:!0,enumerable:!0,get:function(){return k2(this)},set:function(b){typeof b==="string"?$APP.Q(this,"__xCodeCodeValue",b):$APP.Q(this,"__xCodeCodeValue");return G2(this)}});Object.defineProperty(a,"expand",{configurable:!0,enumerable:!0,writable:!0,
|
|
17
|
+
value:function(){return $APP.S(this,"expanded","")}});return Object.defineProperty(a,"collapse",{configurable:!0,enumerable:!0,writable:!0,value:function(){return $APP.U(this,"expanded")}})},Hra=function(a){if(!$APP.n($APP.l(a,"__xCodeRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div");var e=document.createElement("div");var f=document.createElement("span"),h=document.createElement("span"),k=document.createElement("span"),m=document.createElement("x-copy");
|
|
18
|
+
$APP.S(e,"part","header");$APP.S(f,"part","filename");$APP.S(h,"part","language");$APP.S(k,"part","copy-wrap");$APP.S(m,"part","copy");$APP.S(m,"show-tooltip","false");m.appendChild(document.createTextNode("Copy"));k.appendChild(m);e.appendChild(f);e.appendChild(h);e.appendChild(k);e=new $APP.M(null,5,[$APP.Dr,e,$APP.Bu,f,H2,h,I2,k,$APP.Bv,m],null);f=document.createElement("div");h=document.createElement("div");k=document.createElement("pre");m=document.createElement("code");var r=document.createElement("div");
|
|
19
|
+
$APP.S(f,"part","body");$APP.S(h,"part","scroll");$APP.S(h,"role","region");$APP.S(h,"tabindex","0");$APP.S(k,"part","pre");$APP.S(m,"part","code");$APP.S(r,"part","fade");$APP.S(r,"aria-hidden","true");k.appendChild(m);h.appendChild(k);f.appendChild(h);f.appendChild(r);f=new $APP.M(null,5,[$APP.Lr,f,$APP.Vs,h,Fra,k,n2,m,Gra,r],null);h=document.createElement("button");$APP.S(h,"part","expander");$APP.S(h,"type","button");c.textContent=":host{display:block;color-scheme:light dark;--x-code-bg:var(--x-color-surface,#f6f8fa);--x-code-fg:var(--x-color-text,#1f2328);--x-code-border:var(--x-color-border,#d0d7de);--x-code-muted:var(--x-color-text-muted,#656d76);--x-code-radius:var(--x-radius-md,8px);--x-code-font:var(--x-font-family-mono,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace);--x-code-font-size:0.8125rem;--x-code-line-height:1.6;--x-code-tab-size:2;--x-code-accent:var(--x-color-primary,#0969da);--x-code-token-comment:#6a737d;--x-code-token-string:#0a7d33;--x-code-token-template:#0a7d33;--x-code-token-keyword:#cf222e;--x-code-token-number:#0550ae;--x-code-token-punct:#57606a;--x-code-token-key:#0550ae;--x-code-token-atrule:#cf222e;--x-code-token-property:#0550ae;--x-code-token-tag:#116329;--x-code-token-attr-value:#0a3069;--x-code-token-entity:#0550ae;}@media (prefers-color-scheme:dark){:host{--x-code-bg:var(--x-color-surface,#161b22);--x-code-fg:var(--x-color-text,#e6edf3);--x-code-border:var(--x-color-border,#30363d);--x-code-muted:var(--x-color-text-muted,#8b949e);--x-code-token-comment:#8b949e;--x-code-token-string:#a5d6ff;--x-code-token-template:#a5d6ff;--x-code-token-keyword:#ff7b72;--x-code-token-number:#79c0ff;--x-code-token-punct:#c9d1d9;--x-code-token-key:#79c0ff;--x-code-token-atrule:#ff7b72;--x-code-token-property:#79c0ff;--x-code-token-tag:#7ee787;--x-code-token-attr-value:#a5d6ff;--x-code-token-entity:#79c0ff;}}[part\x3dcontainer]{display:flex;flex-direction:column;max-inline-size:100%;box-sizing:border-box;border:1px solid var(--x-code-border);border-radius:var(--x-code-radius);overflow:hidden;background:var(--x-code-bg);color:var(--x-code-fg);font-family:var(--x-code-font);font-size:var(--x-code-font-size);}[part\x3dheader]{display:none;align-items:center;gap:0.5rem;box-sizing:border-box;padding:0.4rem 0.75rem;border-bottom:1px solid var(--x-code-border);font-size:0.75rem;}:host([data-header]) [part\x3dheader]{display:flex;}[part\x3dfilename]{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}[part\x3dlanguage]{color:var(--x-code-muted);text-transform:uppercase;letter-spacing:0.06em;}[part\x3dcopy-wrap]{margin-inline-start:auto;}[part\x3dcopy]::part(trigger){font:inherit;font-size:0.7rem;padding:0.2rem 0.5rem;border-radius:var(--x-radius-sm,4px);border:1px solid var(--x-code-border);background:var(--x-code-bg);color:var(--x-code-muted);cursor:pointer;}[part\x3dcopy]::part(trigger):hover{color:var(--x-code-fg);}[part\x3dbody]{position:relative;}[part\x3dscroll]{overflow:auto;}[part\x3dscroll]:focus-visible{outline:2px solid var(--x-code-accent);outline-offset:-2px;}[part\x3dpre]{margin:0;}[part\x3dcode]{display:inline-block;min-width:100%;box-sizing:border-box;padding-block:0.75rem;line-height:var(--x-code-line-height);tab-size:var(--x-code-tab-size);-moz-tab-size:var(--x-code-tab-size);}[part\x3dline]{display:flex;min-width:100%;width:max-content;min-height:calc(1em * var(--x-code-line-height));}[part\x3dgutter]{position:sticky;left:0;flex:0 0 auto;box-sizing:border-box;width:calc(var(--x-code-gutter-digits,2) * 1ch + 1.5em);padding:0 0.75em;text-align:right;color:var(--x-code-muted);background:var(--x-code-bg);user-select:none;-webkit-user-select:none;}:host(:not([line-numbers])) [part\x3dgutter]{display:none;}[part\x3dline-content]{flex:0 0 auto;white-space:pre;padding-right:0.75em;}:host(:not([line-numbers])) [part\x3dline-content]{padding-left:0.75em;}:host([wrap]) [part\x3dscroll]{overflow-x:hidden;}:host([wrap]) [part\x3dcode]{display:block;}:host([wrap]) [part\x3dline]{width:auto;}:host([wrap]) [part\x3dline-content]{flex:1 1 auto;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere;}.tok-comment{color:var(--x-code-token-comment);font-style:italic;}.tok-string{color:var(--x-code-token-string);}.tok-template{color:var(--x-code-token-template);}.tok-keyword{color:var(--x-code-token-keyword);}.tok-number{color:var(--x-code-token-number);}.tok-punct{color:var(--x-code-token-punct);}.tok-key{color:var(--x-code-token-key);}.tok-atrule{color:var(--x-code-token-atrule);}.tok-property{color:var(--x-code-token-property);}.tok-tag{color:var(--x-code-token-tag);}.tok-attr-value{color:var(--x-code-token-attr-value);}.tok-entity{color:var(--x-code-token-entity);}:host([data-collapsed]) [part\x3dscroll]{max-height:calc(var(--x-code-font-size) * var(--x-code-line-height) * var(--x-code-max-lines,10) + 1.5rem);overflow-y:hidden;}[part\x3dfade]{display:none;position:absolute;left:0;right:0;bottom:0;height:3.5em;pointer-events:none;background:linear-gradient(to bottom,transparent,var(--x-code-bg));}:host([data-collapsed]) [part\x3dfade]{display:block;}[part\x3dexpander]{display:none;width:100%;box-sizing:border-box;border:0;border-top:1px solid var(--x-code-border);padding:0.45rem;background:var(--x-code-bg);color:var(--x-code-accent);font:inherit;font-size:0.75rem;cursor:pointer;text-align:center;transition:background 120ms ease;}:host([data-collapsible]) [part\x3dexpander]{display:block;}[part\x3dexpander]:hover{text-decoration:underline;}[part\x3dexpander]:focus-visible{outline:2px solid var(--x-code-accent);outline-offset:-2px;}@media (prefers-reduced-motion:reduce){[part\x3dexpander]{transition:none;}}";
|
|
20
|
+
$APP.S(d,"part","container");d.appendChild($APP.Dr.i(e));d.appendChild($APP.Lr.i(f));d.appendChild(h);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xCodeRefs",{filename:$APP.Bu.i(e),lang:H2.i(e),cwrap:I2.i(e),copy:$APP.Bv.i(e),scroll:$APP.Vs.i(f),code:n2.i(f),expander:h});Cra(a)}Dra(a);return G2(a)},Ira=function(a){a=$APP.l(a,"__xCodeObserver");return $APP.n(a)?a.disconnect():null},Jra=function(a,b,c,d){return $APP.I(c,d)?G2(a):null},J2=function(){$APP.pn();return $APP.ri("x-code",new $APP.M(null,
|
|
21
|
+
5,[$APP.ii,Kra,$APP.gi,Hra,$APP.di,Ira,$APP.ci,Jra,$APP.hi,Era],null))},i2=new $APP.F(null,"plain","plain",1368629269),K2=new $APP.F(null,"number","number",1570378438),Lra=new $APP.F(null,"entity","entity",-450970276),t2=new $APP.F(null,"code-raw","code-raw",1397705045),Mra=new $APP.F(null,"attr-value","attr-value",2093232352),L2=new $APP.F(null,"punct","punct",1807261997),s2=new $APP.F(null,"max-lines-raw","max-lines-raw",-947227469),r2=new $APP.F(null,"wrap?","wrap?",-1677427054),I2=new $APP.F(null,
|
|
22
|
+
"cwrap","cwrap",-648244090),H2=new $APP.F(null,"lang","lang",-1819677104),q2=new $APP.F(null,"lines","lines",-700165781),g2=new $APP.F(null,"types","types",590030639),Nra=new $APP.F(null,"property","property",-1114278232),B2=new $APP.F(null,"header?","header?",-106649173),Ora=new $APP.F(null,"expanded","expanded",-3020742),M2=new $APP.F(null,"comment","comment",532206069),N2=new $APP.F(null,"string","string",-1989541586),o2=new $APP.F(null,"language","language",-1591107564),Pra=new $APP.F(null,"atrule",
|
|
23
|
+
"atrule",-521152778),u2=new $APP.F(null,"show-copy?","show-copy?",604953882),p2=new $APP.F(null,"expanded?","expanded?",2055832296),C2=new $APP.F(null,"collapsible?","collapsible?",-1508197779),O2=new $APP.F(null,"keyword","keyword",811389747),n2=new $APP.F(null,"code","code",1586293142),F2=new $APP.F(null,"max-lines","max-lines",-125998785),Gra=new $APP.F(null,"fade","fade",1167694157),D2=new $APP.F(null,"language-label","language-label",-733379621),w2=new $APP.F(null,"language-raw","language-raw",
|
|
24
|
+
-402825953),v2=new $APP.F(null,"line-numbers?","line-numbers?",1919907771),E2=new $APP.F(null,"line-count","line-count",871713181),Fra=new $APP.F(null,"pre","pre",2118456869);var Kra="language filename show-copy line-numbers wrap max-lines expanded code".split(" "),wra=$APP.vg(" json js xml mjs css svg jsx htm text plain txt javascript html".split(" "),"text json js html js css html js html text text text js html".split(" "));$APP.ie(["x-code-copy",new $APP.M(null,2,[$APP.Xu,!1,$APP.V,new $APP.M(null,1,[n2,$APP.X],null)],null),"x-code-toggle",new $APP.M(null,2,[$APP.Xu,!1,$APP.V,new $APP.M(null,1,[Ora,$APP.rj],null)],null)]);
|
|
25
|
+
var Qra=new $APP.J(null,5,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[$APP.As,/"(?:[^"\\]|\\.)*"(?=\s*:)/],null),new $APP.J(null,2,5,$APP.K,[N2,/"(?:[^"\\]|\\.)*"/],null),new $APP.J(null,2,5,$APP.K,[K2,/-?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/],null),new $APP.J(null,2,5,$APP.K,[O2,/\b(?:true|false|null)\b/],null),new $APP.J(null,2,5,$APP.K,[L2,/[{}\[\]:,]/],null)],null),Rra=new $APP.J(null,6,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[M2,/\/\*[\s\S]*?\*\//],null),new $APP.J(null,2,5,$APP.K,[N2,/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/],
|
|
26
|
+
null),new $APP.J(null,2,5,$APP.K,[Pra,/@[\w-]+/],null),new $APP.J(null,2,5,$APP.K,[Nra,/[A-Za-z-][A-Za-z0-9-]*(?=\s*:)/],null),new $APP.J(null,2,5,$APP.K,[K2,/(?:\d+\.?\d*|\.\d+)(?:%|[a-zA-Z]+)?/],null),new $APP.J(null,2,5,$APP.K,[L2,/[{}();:,]/],null)],null),Sra=new $APP.J(null,6,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[M2,/\x3c!--[\s\S]*?--\x3e/],null),new $APP.J(null,2,5,$APP.K,[$APP.Rr,/<![^>]*>/],null),new $APP.J(null,2,5,$APP.K,[$APP.Rr,/<\/?[A-Za-z][\w-]*/],null),new $APP.J(null,2,5,$APP.K,[Mra,
|
|
27
|
+
/"[^"]*"|'[^']*'/],null),new $APP.J(null,2,5,$APP.K,[Lra,/&(?:#\d+|#[xX][0-9a-fA-F]+|[A-Za-z][A-Za-z0-9]*);/],null),new $APP.J(null,2,5,$APP.K,[L2,/[<>\/=]/],null)],null),x2=h2(new $APP.J(null,6,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[M2,/\/\*[\s\S]*?\*\/|\/\/[^\n]*/],null),new $APP.J(null,2,5,$APP.K,[$APP.Wv,/`(?:[^`\\]|\\[\s\S])*`/],null),new $APP.J(null,2,5,$APP.K,[N2,/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/],null),new $APP.J(null,2,5,$APP.K,[O2,/\b(?:const|let|var|function|return|if|else|for|while|do|switch|case|break|continue|new|delete|typeof|instanceof|class|extends|super|this|import|export|from|as|default|try|catch|finally|throw|async|await|yield|void|null|undefined|true|false|NaN|Infinity)\b/],
|
|
28
|
+
null),new $APP.J(null,2,5,$APP.K,[K2,/0[xX][0-9a-fA-F]+|(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/],null),new $APP.J(null,2,5,$APP.K,[L2,/[-+*\/%=<>!&|?:;,.~^{}()\[\]]/],null)],null)),y2=h2(Qra),z2=h2(Rra),A2=h2(Sra);var Bra=new $APP.J(null,2,5,$APP.K,[new $APP.J(null,3,5,$APP.K,["expander","click",function(a){var b=$APP.p(p2.i($APP.l(a,"__xCodeModel")));b?$APP.S(a,"expanded",""):$APP.U(a,"expanded");return $APP.ej(a,"x-code-toggle",{expanded:b})}],null),new $APP.J(null,3,5,$APP.K,["copy","x-copy-success",function(a){return $APP.ej(a,"x-code-copy",{code:n2.i($APP.l(a,"__xCodeModel"))})}],null)],null);$APP.ha("baredom.exports.x_code.init",J2);export const init=J2;
|
package/dist/x-collapse.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
2
|
var a$=function(){var a=window.matchMedia;return $APP.n(a)?window.matchMedia("(prefers-reduced-motion: reduce)").matches:a},c$=function(a){a=b$.i($APP.l(a,"__xCollapseModel"));return $APP.n(a)?a:300},d$=function(a){a.style.height="";return a.style.transition=""},e$=function(a,b,c,d){a.style.height=b;a.offsetHeight;a.style.transition="height "+$APP.P.i(d)+"ms ease";a.style.height=c;var e=setTimeout(function(){return d$(a)},d+80);return a.addEventListener("transitionend",function h(){clearTimeout(e);
|
|
3
|
-
d$(a);return a.removeEventListener("transitionend",h)})},h$=function(a){if($APP.n($APP.l(a,"__xCollapseRefs"))){var b=new $APP.M(null,4,[$APP.
|
|
4
|
-
c)):300;b=new $APP.M(null,4,[$APP.
|
|
5
|
-
a=null):a=null;return a}return null},i$=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=$APP.p(a.hasAttribute("open"));return $APP.
|
|
6
|
-
f=i$(a,"keyboard")):f=null;return f},e={};b.addEventListener("click",c);b.addEventListener("keydown",d);e.click=c;e.keydown=d;$APP.Q(a,"__xCollapseHandlers",e)}},j$=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.n(b)){var c=$APP.l(a,"__xCollapseHandlers");if($APP.n(c))return b=$APP.l(b,"trigger"),b.removeEventListener("click",$APP.l(c,"click")),b.removeEventListener("keydown",$APP.l(c,"keydown")),$APP.Q(a,"__xCollapseHandlers",null)}return null},
|
|
3
|
+
d$(a);return a.removeEventListener("transitionend",h)})},h$=function(a){if($APP.n($APP.l(a,"__xCollapseRefs"))){var b=new $APP.M(null,4,[$APP.Nq,a.hasAttribute("open"),$APP.Pj,a.hasAttribute("disabled"),f$,a.getAttribute("header"),g$,a.getAttribute("duration-ms")],null);var c=$APP.G(b);b=$APP.C(c,$APP.Nq);var d=$APP.C(c,$APP.Pj),e=$APP.C(c,f$);c=$APP.C(c,g$);b=$APP.D(b);d=$APP.D(d);e=$APP.n(e)?e:"";$APP.n(c)?(c=parseInt(c,10),c=$APP.p(isNaN(c))&&c>0?c:null):c=null;c=$APP.n(c)?$APP.Ql.j(0,$APP.Rl.j(2E3,
|
|
4
|
+
c)):300;b=new $APP.M(null,4,[$APP.yv,b,$APP.Wj,d,$APP.Dr,e,b$,c],null);$APP.I($APP.l(a,"__xCollapseModel"),b)?(e=$APP.l(a,"__xCollapseRefs"),$APP.n(e)?(d=$APP.l(e,"trigger"),e=$APP.l(e,"header-text"),c=$APP.G(b),c=$APP.C(c,$APP.Dr),e.textContent=c,c=$APP.G(b),e=$APP.C(c,$APP.yv),c=$APP.C(c,$APP.Wj),$APP.S(d,"aria-expanded",$APP.n(e)?"true":"false"),$APP.n(c)?($APP.S(d,"disabled",""),$APP.S(d,"aria-disabled","true")):($APP.U(d,"disabled"),$APP.U(d,"aria-disabled")),a=$APP.Q(a,"__xCollapseModel",b)):
|
|
5
|
+
a=null):a=null;return a}return null},i$=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=$APP.p(a.hasAttribute("open"));return $APP.gj(a,"x-collapse-toggle",{open:c,source:b})?(c?$APP.S(a,"open",""):$APP.U(a,"open"),$APP.ej(a,"x-collapse-change",{open:c})):null},Rwa=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.n(b)){b=$APP.l(b,"trigger");var c=function(){return i$(a,"pointer")},d=function(f){var h=f.key;$APP.z.j(h," ")||$APP.z.j(h,"Enter")||$APP.z.j(h,"Space")?(f.preventDefault(),
|
|
6
|
+
f=i$(a,"keyboard")):f=null;return f},e={};b.addEventListener("click",c);b.addEventListener("keydown",d);e.click=c;e.keydown=d;$APP.Q(a,"__xCollapseHandlers",e)}},j$=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.n(b)){var c=$APP.l(a,"__xCollapseHandlers");if($APP.n(c))return b=$APP.l(b,"trigger"),b.removeEventListener("click",$APP.l(c,"click")),b.removeEventListener("keydown",$APP.l(c,"keydown")),$APP.Q(a,"__xCollapseHandlers",null)}return null},Swa=function(a){if(!$APP.n($APP.l(a,"__xCollapseRefs"))){var b=
|
|
7
7
|
a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("button"),f=document.createElement("span"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div"),r=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-collapse-border-radius:var(--x-radius-md, 8px);--x-collapse-border:1px solid var(--x-color-border,#e2e8f0);--x-collapse-bg:var(--x-color-surface, #ffffff);--x-collapse-trigger-bg:var(--x-color-surface-hover, #f8fafc);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-collapse-trigger-color:var(--x-color-text, #0f172a);--x-collapse-trigger-padding:0.75rem 1rem;--x-collapse-content-padding:1rem;--x-collapse-font-size:0.9375rem;--x-collapse-font-weight:600;--x-collapse-chevron-color:var(--x-color-text-muted, #64748b);--x-collapse-focus-ring:var(--x-color-focus-ring, #60a5fa);}@media (prefers-color-scheme:dark){:host{--x-collapse-border:1px solid var(--x-color-border,#334155);--x-collapse-bg:var(--x-color-surface,#1e293b);--x-collapse-trigger-bg:var(--x-color-surface-hover,#0f172a);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#1e293b);--x-collapse-trigger-color:var(--x-color-text,#e2e8f0);--x-collapse-chevron-color:var(--x-color-text-muted, #94a3b8);--x-collapse-focus-ring:var(--x-color-focus-ring, #93c5fd);}}[part\x3dcontainer]{box-sizing:border-box;border:var(--x-collapse-border);border-radius:var(--x-collapse-border-radius);background:var(--x-collapse-bg);overflow:hidden;}[part\x3dtrigger]{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--x-collapse-trigger-padding);background:var(--x-collapse-trigger-bg);color:var(--x-collapse-trigger-color);font-size:var(--x-collapse-font-size);font-weight:var(--x-collapse-font-weight);cursor:pointer;user-select:none;}[part\x3dtrigger][disabled]{cursor:default;opacity:0.55;}[part\x3dtrigger]:hover:not([disabled]){background:var(--x-collapse-trigger-bg-hover);}[part\x3dtrigger]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--x-collapse-focus-ring);}[part\x3dheader-text]{flex:1;text-align:start;}[part\x3dchevron]{display:inline-block;margin-inline-start:0.5rem;color:var(--x-collapse-chevron-color);transition:transform 200ms ease;flex-shrink:0;}:host([open]) [part\x3dchevron]{transform:rotate(180deg);}[part\x3dcontent]{overflow:hidden;height:0;}:host([open]) [part\x3dcontent]{height:auto;}[part\x3dcontent-inner]{padding:var(--x-collapse-content-padding);}@media (prefers-reduced-motion:reduce){[part\x3dcontent]{transition:none !important;}[part\x3dchevron]{transition:none !important;}}";
|
|
8
|
-
$APP.
|
|
9
|
-
d.appendChild(k);b.appendChild(c);b.appendChild(d);c={};c.root=b;c.trigger=e;c["header-text"]=f;c.content=k;$APP.Q(a,"__xCollapseRefs",c)}j$(a);
|
|
10
|
-
(b.style.height="0px",a=b.style.transition=""):(c=""+$APP.P.i(b.offsetHeight)+"px",a=e$(b,c,"0px",c$(a))):a=null,a):null},
|
|
11
|
-
-2138819526),b$=new $APP.F(null,"duration-ms","duration-ms",1993555055);var
|
|
12
|
-
$APP.
|
|
8
|
+
$APP.S(d,"part","container");$APP.S(e,"part","trigger");$APP.S(e,"type","button");$APP.S(e,"id","trigger");$APP.S(e,"aria-controls","panel");$APP.S(f,"part","header-text");$APP.S(h,"part","chevron");$APP.S(h,"aria-hidden","true");$APP.S(k,"part","content");$APP.S(k,"id","panel");$APP.S(k,"role","region");$APP.S(k,"aria-labelledby","trigger");$APP.S(m,"part","content-inner");$APP.S(r,"name","content");h.textContent="▼";e.appendChild(f);e.appendChild(h);m.appendChild(r);k.appendChild(m);d.appendChild(e);
|
|
9
|
+
d.appendChild(k);b.appendChild(c);b.appendChild(d);c={};c.root=b;c.trigger=e;c["header-text"]=f;c.content=k;$APP.Q(a,"__xCollapseRefs",c)}j$(a);Rwa(a);return h$(a)},Twa=function(a){return j$(a)},Uwa=function(a,b,c,d){return $APP.I(c,d)&&(h$(a),$APP.z.j(b,"open")&&(b=$APP.l(a,"__xCollapseRefs"),$APP.n(b)))?(b=$APP.l(b,"content"),c=a.hasAttribute("open"),$APP.n(b)?$APP.n(c)?$APP.n(a$())?a=d$(b):(b.style.height="0px",b.offsetHeight,c=""+$APP.P.i(b.scrollHeight)+"px",a=e$(b,"0px",c,c$(a))):$APP.n(a$())?
|
|
10
|
+
(b.style.height="0px",a=b.style.transition=""):(c=""+$APP.P.i(b.offsetHeight)+"px",a=e$(b,c,"0px",c$(a))):a=null,a):null},Wwa=function(a){$APP.tj(a,Vwa);return Object.defineProperty(a,"toggle",{value:function(){return i$(this,"programmatic")},writable:!0,configurable:!0})},k$=function(){return $APP.ri("x-collapse",new $APP.M(null,5,[$APP.ii,Xwa,$APP.gi,Swa,$APP.di,Twa,$APP.ci,Uwa,$APP.hi,Wwa],null))},f$=new $APP.F(null,"header-raw","header-raw",41484),g$=new $APP.F(null,"duration-ms-raw","duration-ms-raw",
|
|
11
|
+
-2138819526),b$=new $APP.F(null,"duration-ms","duration-ms",1993555055);var Xwa=["open","disabled","header","duration-ms"],Vwa=new $APP.M(null,4,[$APP.Tu,new $APP.M(null,2,[$APP.N,$APP.rj,$APP.W,"open"],null),$APP.tn,new $APP.M(null,2,[$APP.N,$APP.rj,$APP.W,"disabled"],null),$APP.Dr,new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"header"],null),new $APP.F(null,"durationMs","durationMs",1439579766),new $APP.M(null,3,[$APP.N,$APP.Y,$APP.W,"duration-ms",$APP.sj,300],null)],null);
|
|
12
|
+
$APP.ie(["x-collapse-toggle",new $APP.M(null,2,[$APP.Xu,!0,$APP.V,new $APP.M(null,2,[$APP.Tu,$APP.rj,$APP.au,$APP.X],null)],null),"x-collapse-change",new $APP.M(null,2,[$APP.Xu,!1,$APP.V,new $APP.M(null,1,[$APP.Tu,$APP.rj],null)],null)]);$APP.ha("baredom.exports.x_collapse.init",k$);export const init=k$;
|
package/dist/x-color-picker.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
1)),16),d=parseInt(""+$APP.P.i($APP.xc(a,2))+$APP.P.i($APP.xc(a,2)),16);return new $APP.M(null,4,[
|
|
4
|
-
else return null},
|
|
5
|
-
Math.round(c*255),new $APP.M(null,3,[
|
|
6
|
-
return"#"+$APP.P.i(e(a))+$APP.P.i(e(b))+$APP.P.i(e(c))+$APP.P.i(e(
|
|
7
|
-
$APP.
|
|
8
|
-
a=$APP.C(b,$APP.
|
|
9
|
-
|
|
10
|
-
$APP.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
$APP.
|
|
14
|
-
if($APP.n(c)){var d=$APP.l(c,"area"),e=$APP.l(c,"hue-strip"),f=$APP.l(c,"alpha-strip"),h=$APP.l(c,"preview-color"),k=$APP.l(c,"trigger-swatch"),m=$APP.l(c,"hex-input");c=$APP.l(c,"swatches");var r=$APP.G(b),u=$APP.C(r,
|
|
15
|
-
[$APP.
|
|
16
|
-
""+$APP.P.i((
|
|
17
|
-
"none";x=$APP.G(b);e=$APP.C(x,
|
|
18
|
-
m=$APP.C(m,
|
|
19
|
-
a.left,a.width);return
|
|
20
|
-
|
|
21
|
-
return f?(f=
|
|
22
|
-
return
|
|
23
|
-
a}))?null:
|
|
24
|
-
b.key)&&$APP.z.j("popover",$APP.
|
|
25
|
-
$APP.l(a,"__xColorPickerDragging"))){var c=
|
|
26
|
-
b.getAttribute("data-color");$APP.
|
|
27
|
-
b,!0),c=
|
|
28
|
-
"__xColorPickerRefs"),"hue-strip"),b);
|
|
29
|
-
$APP.Q(a,"__xColorPickerDragging","area");b=
|
|
30
|
-
r=$APP.B(k,1,null),u=$APP.B(k,2,null);k=$APP.B(k,3,null);
|
|
31
|
-
"value","#000000");return
|
|
32
|
-
var k=document.createElement("div");$APP.
|
|
33
|
-
"100");$APP.
|
|
34
|
-
$APP.
|
|
35
|
-
|
|
36
|
-
m.appendChild(y);m.appendChild(A);m=new $APP.M(null,6,[$APP.
|
|
37
|
-
$APP.
|
|
38
|
-
"alpha-strip":
|
|
39
|
-
e=$APP.B(k,0,null),f=$APP.B(k,1,null),h=$APP.B(k,2,null),k=$APP.B(k,3,null),
|
|
40
|
-
$APP
|
|
41
|
-
"preview",451279890),
|
|
42
|
-
1482224470),
|
|
43
|
-
2,[$APP.N,$APP.
|
|
44
|
-
2,[$APP.N,$APP.
|
|
2
|
+
var II=function(a,b){return $APP.Rl.j($APP.Ql.j(a,0),b)},JI=function(a){return $APP.td(a,360)},KI=function(a){return II(a,100)},LI=function(a){return II(a,1)},NI=function(a){var b=typeof a==="string";a=b?$APP.rh(MI,a.trim()):b;return $APP.D(a)},RI=function(a){if(typeof a==="string")if(a=$APP.rh(MI,a.trim()),$APP.n(a))switch($APP.B(a,0,null),a=$APP.B(a,1,null),$APP.w(a)){case 3:var b=parseInt(""+$APP.P.i($APP.xc(a,0))+$APP.P.i($APP.xc(a,0)),16),c=parseInt(""+$APP.P.i($APP.xc(a,1))+$APP.P.i($APP.xc(a,
|
|
3
|
+
1)),16),d=parseInt(""+$APP.P.i($APP.xc(a,2))+$APP.P.i($APP.xc(a,2)),16);return new $APP.M(null,4,[OI,b,$APP.xu,c,PI,d,QI,1],null);case 6:return b=parseInt(a.substring(0,2),16),c=parseInt(a.substring(2,4),16),d=parseInt(a.substring(4,6),16),new $APP.M(null,4,[OI,b,$APP.xu,c,PI,d,QI,1],null);case 8:return b=parseInt(a.substring(0,2),16),c=parseInt(a.substring(2,4),16),d=parseInt(a.substring(4,6),16),new $APP.M(null,4,[OI,b,$APP.xu,c,PI,d,QI,parseInt(a.substring(6,8),16)/255],null);default:return null}else return null;
|
|
4
|
+
else return null},Iea=function(a,b,c){a/=255;b/=255;c/=255;var d=$APP.Ql.B(a,b,$APP.Dc([c])),e=$APP.Rl.B(a,b,$APP.Dc([c])),f=(d+e)/2,h=d-e;return h===0?new $APP.M(null,3,[SI,0,TI,0,UI,f*100],null):new $APP.M(null,3,[SI,(d===a?((b-c)/h+(b<c?6:0))/6:d===b?((c-a)/h+2)/6:((a-b)/h+4)/6)*360,TI,(f>.5?h/(2-d-e):h/(d+e))*100,UI,f*100],null)},VI=function(a,b,c){c=c<0?c+1:c>1?c-1:c;return c<1/6?a+(b-a)*6*c:c<.5?b:c<2/3?a+(b-a)*(2/3-c)*6:a},WI=function(a,b,c){a=JI(a)/360;b=KI(b)/100;c=KI(c)/100;if(b===0)return a=
|
|
5
|
+
Math.round(c*255),new $APP.M(null,3,[OI,a,$APP.xu,a,PI,a],null);b=c<.5?c*(1+b):c+b-c*b;c=2*c-b;return new $APP.M(null,3,[OI,Math.round(VI(c,b,a+1/3)*255),$APP.xu,Math.round(VI(c,b,a)*255),PI,Math.round(VI(c,b,a-1/3)*255)],null)},XI=function(a,b,c){function d(e){e=II(Math.round(e),255).toString(16);return $APP.w(e)<2?"0"+$APP.P.i(e):e}return"#"+$APP.P.i(d(a))+$APP.P.i(d(b))+$APP.P.i(d(c))},YI=function(a,b,c,d){function e(f){f=II(Math.round(f),255).toString(16);return $APP.w(f)<2?"0"+$APP.P.i(f):f}
|
|
6
|
+
return"#"+$APP.P.i(e(a))+$APP.P.i(e(b))+$APP.P.i(e(c))+$APP.P.i(e(LI(d)*255))},$I=function(a,b,c){b=KI(b)/100;c=KI(c)/100;b=c+b*$APP.Rl.j(c,1-c);return new $APP.M(null,3,[SI,JI(a),TI,(b===0?0:2*(1-c/b))*100,ZI,b*100],null)},aJ=function(a,b,c){b=KI(b)/100;c=KI(c)/100;b=c*(1-b/2);c=b===0||b===1?0:(c-b)/$APP.Rl.j(b,1-b);return new $APP.M(null,3,[SI,JI(a),TI,c*100,UI,b*100],null)},bJ=function(a,b,c){return 100*(II(a-b,c)/c)},Jea=function(a){return typeof a==="string"&&NI(a)?(a=RI(a),$APP.n(a)?XI(OI.i(a),
|
|
7
|
+
$APP.xu.i(a),PI.i(a)):null):"#000000"},Lea=function(a){return typeof a==="string"&&$APP.cd(Kea,a.trim().toLowerCase())?a.trim().toLowerCase():"inline"},Mea=function(a){return typeof a==="string"&&$APP.Di(a)?$APP.Ff.m($APP.Fe,$APP.yp.m($APP.xe.i($APP.zi),$APP.Ce(NI),$APP.xe.i(function(b){b=RI(b);var c=$APP.G(b);b=$APP.C(c,OI);var d=$APP.C(c,$APP.xu);c=$APP.C(c,PI);return XI(b,d,c)})),$APP.xi(a,/,/)):$APP.Fe},Nea=function(a){var b=$APP.G(a),c=$APP.C(b,$APP.Tu),d=$APP.C(b,$APP.tn),e=$APP.C(b,$APP.Ti);
|
|
8
|
+
a=$APP.C(b,$APP.Uj);var f=$APP.C(b,$APP.qj),h=$APP.C(b,$APP.Lm),k=$APP.C(b,cJ),m=$APP.C(b,$APP.Z),r=$APP.C(b,dJ);b=Jea(e);var u=function(){var T=RI(e);return $APP.n(T)?T:RI("#000000")}(),x=$APP.G(u);u=$APP.C(x,OI);var y=$APP.C(x,$APP.xu),A=$APP.C(x,PI);x=$APP.C(x,QI);var E=function(){var T=typeof e==="string";if(T){T=e.trim();var R=$APP.rh(MI,T);return $APP.n(R)?8===$APP.w($APP.Gc($APP.rh(MI,T))):R}return T}();x=$APP.n(E)?x:1;E=Iea(u,y,A);var H=$APP.G(E);E=$APP.C(H,SI);var O=$APP.C(H,TI);H=$APP.C(H,
|
|
9
|
+
UI);d=$APP.Bi(d);f=$APP.Bi(f);r=r!=null;c=c!=null;h=Lea(h);return $APP.vg([$APP.em,eJ,$APP.Uj,$APP.Lm,cJ,TI,UI,fJ,SI,$APP.Z,$APP.yv,gJ,$APP.Wj,QI],[f,r,$APP.Di(a)?a:null,h,Mea(k),O,H,b,E,$APP.Di(m)?m:null,$APP.z.j(h,"popover")&&c,r&&x<1?YI(u,y,A,x):b,d,x])},hJ=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Wj);b=$APP.C(b,$APP.em);return $APP.p(a)&&$APP.p(b)},iJ=function(a,b,c,d){$APP.S(a,"part",b);$APP.S(a,"role","slider");$APP.S(a,"tabindex","0");$APP.S(a,"aria-label",c);$APP.S(a,"aria-valuemin","0");
|
|
10
|
+
$APP.S(a,"aria-valuemax",d)},jJ=function(a,b,c,d){$APP.S(a,"part",b);$APP.S(a,"type","button");$APP.S(a,"aria-label",c);a.innerHTML=d},kJ=function(a){return Nea($APP.vg([$APP.Tu,$APP.tn,$APP.Uj,$APP.Ti,$APP.qj,$APP.Lm,cJ,$APP.Z,dJ],[a.getAttribute("open"),a.getAttribute("disabled"),a.getAttribute("name"),a.getAttribute("value"),a.getAttribute("readonly"),a.getAttribute("mode"),a.getAttribute("swatches"),a.getAttribute("label"),a.getAttribute("alpha")]))},lJ=function(a,b){var c=gJ.i(b),d=SI.i(b),e=
|
|
11
|
+
TI.i(b),f=UI.i(b);b=QI.i(b);return $APP.ej(a,"x-color-picker-input",$APP.$m(new $APP.M(null,5,[$APP.Ti,c,SI,d,TI,e,UI,f,QI,b],null)))},mJ=function(a,b){var c=gJ.i(b),d=SI.i(b),e=TI.i(b),f=UI.i(b);b=QI.i(b);return $APP.gj(a,"x-color-picker-change",$APP.$m(new $APP.M(null,5,[$APP.Ti,c,SI,d,TI,e,UI,f,QI,b],null)))},nJ=function(a,b,c,d,e,f){b=WI(b,c,d);d=$APP.G(b);b=$APP.C(d,OI);c=$APP.C(d,$APP.xu);d=$APP.C(d,PI);e=$APP.n($APP.n(f)?e<1:f)?YI(b,c,d,e):XI(b,c,d);$APP.S(a,"value",e)},Oea=function(a,b,c,
|
|
12
|
+
d){if($APP.I($APP.l(a,"__xColorPickerSwatchesCache"),c)){$APP.Q(a,"__xColorPickerSwatchesCache",c);b.innerHTML="";a=$APP.q(c);c=null;for(var e=0,f=0;;)if(f<e){var h=c.C(null,f),k=document.createElement("button");$APP.S(k,"part","swatch");$APP.S(k,"type","button");$APP.S(k,"role","option");$APP.S(k,"aria-label",h);$APP.S(k,"data-color",h);k.style.backgroundColor=h;b.appendChild(k);f+=1}else if(a=$APP.q(a))$APP.Zc(a)?(e=$APP.Eb(a),a=$APP.Fb(a),c=e,e=$APP.w(e)):(c=$APP.t(a),e=document.createElement("button"),
|
|
13
|
+
$APP.S(e,"part","swatch"),$APP.S(e,"type","button"),$APP.S(e,"role","option"),$APP.S(e,"aria-label",c),$APP.S(e,"data-color",c),e.style.backgroundColor=c,b.appendChild(e),a=$APP.v(a),c=null,e=0),f=0;else break}b.querySelectorAll("[part\x3dswatch]").forEach(function(m){return $APP.S(m,"aria-selected",$APP.z.j(m.getAttribute("data-color"),d)?"true":"false")})},oJ=function(a){if($APP.n($APP.l(a,"__xColorPickerRefs"))){var b=kJ(a);if($APP.I($APP.l(a,"__xColorPickerModel"),b)){var c=$APP.l(a,"__xColorPickerRefs");
|
|
14
|
+
if($APP.n(c)){var d=$APP.l(c,"area"),e=$APP.l(c,"hue-strip"),f=$APP.l(c,"alpha-strip"),h=$APP.l(c,"preview-color"),k=$APP.l(c,"trigger-swatch"),m=$APP.l(c,"hex-input");c=$APP.l(c,"swatches");var r=$APP.G(b),u=$APP.C(r,SI);r=$APP.C(r,$APP.Lm);$APP.S(a,"data-mode",r);a.style.setProperty("--_x-cp-hue",""+$APP.P.i(Math.round(u)));r=$APP.G(b);var x=$APP.C(r,SI),y=$APP.C(r,TI),A=$APP.C(r,UI);u=$APP.C(r,QI);r=$APP.C(r,$APP.Z);y=$I(x,y,A);var E=$APP.G(y);y=$APP.C(E,TI);E=$APP.C(E,ZI);E=new $APP.M(null,2,
|
|
15
|
+
[$APP.tu,KI(y),$APP.su,100-KI(E)],null);d.style.setProperty("--_x-cp-area-x",""+$APP.P.i($APP.tu.i(E).toFixed(2))+"%");d.style.setProperty("--_x-cp-area-y",""+$APP.P.i($APP.su.i(E).toFixed(2))+"%");x="Hue "+$APP.P.i(Math.round(x))+", Saturation "+$APP.P.i(Math.round(y))+"%, Lightness "+$APP.P.i(Math.round(A))+"%";u=u<1?""+$APP.P.i(x)+", Opacity "+$APP.P.i(Math.round(u*100))+"%":x;$APP.S(d,"aria-valuetext",u);$APP.n(r)&&$APP.S(d,"aria-label",r);d=$APP.G(b);d=$APP.C(d,SI);e.style.setProperty("--_x-cp-hue-pos",
|
|
16
|
+
""+$APP.P.i((JI(d)/360*100).toFixed(2))+"%");$APP.S(e,"aria-valuenow",""+$APP.P.i(Math.round(d)));x=$APP.G(b);e=$APP.C(x,SI);d=$APP.C(x,TI);u=$APP.C(x,UI);r=$APP.C(x,QI);x=$APP.C(x,eJ);$APP.n(x)?(f.style.display="",a.style.setProperty("--_x-cp-alpha-color","hsl("+$APP.P.i(Math.round(e))+","+$APP.P.i(Math.round(d))+"%,"+$APP.P.i(Math.round(u))+"%)"),f.style.setProperty("--_x-cp-alpha-pos",""+$APP.P.i((LI(r)*100).toFixed(2))+"%"),$APP.S(f,"aria-valuenow",""+$APP.P.i(Math.round(r*100)))):f.style.display=
|
|
17
|
+
"none";x=$APP.G(b);e=$APP.C(x,SI);d=$APP.C(x,TI);u=$APP.C(x,UI);f=$APP.C(x,QI);r=$APP.C(x,fJ);x=$APP.C(x,eJ);$APP.n(x)?(e=WI(e,d,u),u=$APP.G(e),e=$APP.C(u,OI),d=$APP.C(u,$APP.xu),u=$APP.C(u,PI),f="rgba("+$APP.P.i(e)+","+$APP.P.i(d)+","+$APP.P.i(u)+","+$APP.P.i(f.toFixed(2))+")"):f=r;h.style.backgroundColor=f;k.style.backgroundColor=f;f=$APP.G(b);h=$APP.C(f,gJ);k=$APP.C(f,$APP.Wj);f=$APP.C(f,$APP.em);a.shadowRoot.activeElement!==m&&(m.value=h);m.disabled=$APP.n(k)?k:f;Oea(a,c,cJ.i(b),fJ.i(b));m=$APP.G(b);
|
|
18
|
+
m=$APP.C(m,gJ);c=$APP.l(a,"__xColorPickerInternals");$APP.n(c)&&c.setFormValue(m);a=$APP.Q(a,"__xColorPickerModel",b)}else a=null}else a=null;return a}return null},qJ=function(a,b){var c=a.getBoundingClientRect();a=b.clientY;var d=c.top,e=c.height;b=bJ(b.clientX,c.left,c.width);a=bJ(a,d,e);return new $APP.M(null,2,[pJ,KI(b),$APP.Mp,100-KI(a)],null)},rJ=function(a,b){a=a.getBoundingClientRect();b=bJ(b.clientX,a.left,a.width);return KI(b)/100*360},sJ=function(a,b){a=a.getBoundingClientRect();b=bJ(b.clientX,
|
|
19
|
+
a.left,a.width);return KI(b)/100},Qea=function(a,b){var c=kJ(a);if(hJ(c)&&$APP.cd(Pea,b.key)){b.preventDefault();var d=$APP.n(b.shiftKey)?10:1,e=$I(SI.i(c),TI.i(c),UI.i(c)),f=function(){switch(b.key){case "ArrowRight":return KI(TI.i(e)+d);case "ArrowLeft":return KI(TI.i(e)-d);default:return TI.i(e)}}(),h=function(){switch(b.key){case "ArrowUp":return KI(ZI.i(e)+d);case "ArrowDown":return KI(ZI.i(e)-d);default:return ZI.i(e)}}();f=aJ(SI.i(c),f,h);var k=$APP.G(f);f=$APP.C(k,SI);h=$APP.C(k,TI);k=$APP.C(k,
|
|
20
|
+
UI);nJ(a,f,h,k,QI.i(c),eJ.i(c));lJ(a,kJ(a));return mJ(a,kJ(a))}return null},Rea=function(a,b){var c=kJ(a);if(hJ(c)&&$APP.cd(tJ,b.key)){b.preventDefault();var d=$APP.n(b.shiftKey)?10:1,e=function(){switch(b.key){case "ArrowRight":return JI(SI.i(c)+d);case "ArrowLeft":return JI(SI.i(c)-d);case "Home":return 0;case "End":return 360;default:return SI.i(c)}}();nJ(a,e,TI.i(c),UI.i(c),QI.i(c),eJ.i(c));lJ(a,kJ(a));return mJ(a,kJ(a))}return null},Sea=function(a,b){var c=kJ(a);if($APP.n(function(){var f=hJ(c);
|
|
21
|
+
return f?(f=eJ.i(c),$APP.n(f)?$APP.cd(tJ,b.key):f):f}())){b.preventDefault();var d=$APP.n(b.shiftKey)?.1:.01,e=function(){switch(b.key){case "ArrowRight":return LI(QI.i(c)+d);case "ArrowLeft":return LI(QI.i(c)-d);case "Home":return 0;case "End":return 1;default:return QI.i(c)}}();nJ(a,SI.i(c),TI.i(c),UI.i(c),e,!0);lJ(a,kJ(a));return mJ(a,kJ(a))}return null},Tea=function(a){var b=kJ(a);return hJ(b)&&typeof EyeDropper!=="undefined"?(new EyeDropper).open().then(function(c){$APP.S(a,"value",c.sRGBHex);
|
|
22
|
+
return mJ(a,kJ(a))}).catch(function(){return null}):null},Uea=function(a){if($APP.n(a.hasAttribute("open")))return null;$APP.S(a,"open","");a=$APP.l(a,"__xColorPickerRefs");if($APP.n(a)){var b=$APP.l(a,"area");return setTimeout(function(){return b.focus()},0)}return null},uJ=function(a){return $APP.n(a.hasAttribute("open"))?($APP.U(a,"open"),a=$APP.l(a,"__xColorPickerRefs"),$APP.n(a)?$APP.l(a,"trigger").focus():null):null},Vea=function(a,b){return $APP.n(a.hasAttribute("open"))?$APP.n(b.composedPath().some(function(c){return c===
|
|
23
|
+
a}))?null:uJ(a):null},Wea=function(a){return{"area-move":function(b){if($APP.z.j("area",$APP.l(a,"__xColorPickerDragging"))){var c=kJ(a);b=qJ($APP.l($APP.l(a,"__xColorPickerRefs"),"area"),b);var d=$APP.G(b);b=$APP.C(d,pJ);d=$APP.C(d,$APP.Mp);b=aJ(SI.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,SI);d=$APP.C(e,TI);e=$APP.C(e,UI);nJ(a,b,d,e,QI.i(c),eJ.i(c));c=lJ(a,kJ(a))}else c=null;return c},copy:function(){var b=kJ(a);return $APP.n(navigator.clipboard)?navigator.clipboard.writeText(gJ.i(b)):null},"panel-key":function(b){$APP.z.j("Escape",
|
|
24
|
+
b.key)&&$APP.z.j("popover",$APP.Lm.i(kJ(a)))?(b.preventDefault(),b.stopPropagation(),b=uJ(a)):b=null;return b},"alpha-up":function(){if($APP.z.j("alpha",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=mJ(a,kJ(a))}else b=null;return b},"hue-up":function(){if($APP.z.j("hue",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=mJ(a,kJ(a))}else b=null;return b},"alpha-key":function(b){return Sea(a,b)},"alpha-move":function(b){if($APP.z.j("alpha",
|
|
25
|
+
$APP.l(a,"__xColorPickerDragging"))){var c=kJ(a);b=sJ($APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),b);nJ(a,SI.i(c),TI.i(c),UI.i(c),b,!0);c=lJ(a,kJ(a))}else c=null;return c},"hex-key":function(b){a:{if($APP.z.j("Enter",b.key)){b.preventDefault();b=$APP.l($APP.l(a,"__xColorPickerRefs"),"hex-input");var c=b.value,d=kJ(a);if(hJ(d)){if(NI(c)){$APP.S(a,"value",c);b=mJ(a,kJ(a));break a}b=b.value=gJ.i(d);break a}}b=null}return b},swatch:function(b){a:{var c=kJ(a);if(hJ(c)&&(b=b.target,$APP.n(b.hasAttribute("data-color")))){b=
|
|
26
|
+
b.getAttribute("data-color");$APP.S(a,"value",b);b=mJ(a,kJ(a));break a}b=null}return b},"area-up":function(){if($APP.z.j("area",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=mJ(a,kJ(a))}else b=null;return b},"alpha-down":function(b){var c=kJ(a);var d=(d=hJ(c))?eJ.i(c):d;$APP.n(d)?(b.preventDefault(),d=$APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),d.setPointerCapture(b.pointerId),$APP.Q(a,"__xColorPickerDragging","alpha"),b=sJ(d,b),nJ(a,SI.i(c),TI.i(c),UI.i(c),
|
|
27
|
+
b,!0),c=lJ(a,kJ(a))):c=null;return c},"area-key":function(b){return Qea(a,b)},"hue-down":function(b){var c=kJ(a);if(hJ(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"hue-strip");d.setPointerCapture(b.pointerId);$APP.Q(a,"__xColorPickerDragging","hue");b=rJ(d,b);nJ(a,b,TI.i(c),UI.i(c),QI.i(c),eJ.i(c));c=lJ(a,kJ(a))}else c=null;return c},"hue-key":function(b){return Rea(a,b)},"hue-move":function(b){if($APP.z.j("hue",$APP.l(a,"__xColorPickerDragging"))){var c=kJ(a);b=rJ($APP.l($APP.l(a,
|
|
28
|
+
"__xColorPickerRefs"),"hue-strip"),b);nJ(a,b,TI.i(c),UI.i(c),QI.i(c),eJ.i(c));c=lJ(a,kJ(a))}else c=null;return c},eyedrop:function(){return Tea(a)},"panel-pd":function(b){return b.stopPropagation()},trigger:function(){var b=kJ(a);return $APP.z.j("popover",$APP.Lm.i(b))&&$APP.p($APP.Wj.i(b))?$APP.n($APP.yv.i(b))?uJ(a):Uea(a):null},"doc-click":function(b){return Vea(a,b)},"area-down":function(b){var c=kJ(a);if(hJ(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"area");d.setPointerCapture(b.pointerId);
|
|
29
|
+
$APP.Q(a,"__xColorPickerDragging","area");b=qJ(d,b);d=$APP.G(b);b=$APP.C(d,pJ);d=$APP.C(d,$APP.Mp);b=aJ(SI.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,SI);d=$APP.C(e,TI);e=$APP.C(e,UI);nJ(a,b,d,e,QI.i(c),eJ.i(c));c=lJ(a,kJ(a))}else c=null;return c}}},wJ=function(a,b){return $APP.z.j(b,vJ)?document:$APP.l(a,b)},yJ=function(a){var b=$APP.l(a,"__xColorPickerRefs"),c=$APP.l(a,"__xColorPickerHandlers");if($APP.n($APP.n(b)?c:b)){for(var d=$APP.q(xJ),e=null,f=0,h=0;;)if(h<f){var k=e.C(null,h),m=$APP.B(k,0,null),
|
|
30
|
+
r=$APP.B(k,1,null),u=$APP.B(k,2,null);k=$APP.B(k,3,null);wJ(b,m).removeEventListener(r,$APP.l(c,u),k);h+=1}else if(d=$APP.q(d))$APP.Zc(d)?(f=$APP.Eb(d),d=$APP.Fb(d),e=f,f=$APP.w(f)):(m=$APP.t(d),e=$APP.B(m,0,null),f=$APP.B(m,1,null),h=$APP.B(m,2,null),m=$APP.B(m,3,null),wJ(b,e).removeEventListener(f,$APP.l(c,h),m),d=$APP.v(d),e=null,f=0),h=0;else break;return $APP.Q(a,"__xColorPickerHandlers",null)}return null},Xea=function(a,b){$APP.$i(a,"disabled",$APP.D(b));return oJ(a)},Yea=function(a){$APP.S(a,
|
|
31
|
+
"value","#000000");return oJ(a)},Zea=function(a){if(!$APP.n($APP.l(a,"__xColorPickerRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div");var f=document.createElement("button");var h=document.createElement("span");$APP.S(f,"part","trigger");$APP.S(f,"type","button");$APP.S(f,"aria-label","Pick color");$APP.S(h,"part","trigger-swatch");f.appendChild(h);f=new $APP.M(null,2,[$APP.fs,f,zJ,h],null);h=document.createElement("div");
|
|
32
|
+
var k=document.createElement("div");$APP.S(h,"part","area");$APP.S(h,"role","slider");$APP.S(h,"tabindex","0");$APP.S(h,"aria-label","Color");$APP.S(k,"part","area-thumb");h.appendChild(k);h=new $APP.M(null,2,[AJ,h,BJ,k],null);k=document.createElement("div");var m=document.createElement("div"),r=document.createElement("div"),u=document.createElement("div"),x=document.createElement("div"),y=document.createElement("div");$APP.S(k,"part","strips");iJ(m,"hue-strip","Hue","360");iJ(u,"alpha-strip","Opacity",
|
|
33
|
+
"100");$APP.S(r,"part","hue-thumb");$APP.S(x,"part","alpha-gradient");$APP.S(y,"part","alpha-thumb");m.appendChild(r);u.appendChild(x);u.appendChild(y);k.appendChild(m);k.appendChild(u);k=new $APP.M(null,6,[CJ,k,DJ,m,EJ,r,FJ,u,GJ,x,HJ,y],null);m=document.createElement("div");r=document.createElement("div");u=document.createElement("span");x=document.createElement("input");y=document.createElement("button");var A=document.createElement("button");$APP.S(m,"part","controls");$APP.S(r,"part","preview");
|
|
34
|
+
$APP.S(u,"part","preview-color");$APP.S(x,"part","hex-input");$APP.S(x,"type","text");$APP.S(x,"spellcheck","false");$APP.S(x,"autocomplete","off");$APP.S(x,"aria-label","Hex color value");jJ(y,"eyedropper","Pick color from screen",'\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"1.5" stroke-linecap\x3d"round" stroke-linejoin\x3d"round"\x3e\x3cpath d\x3d"M13.5 2.5a2.12 2.12 0 0 0-3 0L9 4l-.5-.5L6 6l4 4 2.5-2.5L12 7l1.5-1.5a2.12 2.12 0 0 0 0-3zM6 6L2.5 9.5a1.5 1.5 0 0 0-.4.8L1.5 14l3.7-.6a1.5 1.5 0 0 0 .8-.4L10 10"/\x3e\x3c/svg\x3e');
|
|
35
|
+
jJ(A,"copy","Copy color value",'\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"1.5" stroke-linecap\x3d"round" stroke-linejoin\x3d"round"\x3e\x3crect x\x3d"5" y\x3d"5" width\x3d"9" height\x3d"9" rx\x3d"1.5"/\x3e\x3cpath d\x3d"M5 11H3.5A1.5 1.5 0 0 1 2 9.5v-6A1.5 1.5 0 0 1 3.5 2h6A1.5 1.5 0 0 1 11 3.5V5"/\x3e\x3c/svg\x3e');typeof EyeDropper==="undefined"&&(y.style.display="none");r.appendChild(u);m.appendChild(r);m.appendChild(x);
|
|
36
|
+
m.appendChild(y);m.appendChild(A);m=new $APP.M(null,6,[$APP.kv,m,IJ,r,JJ,u,KJ,x,LJ,y,$APP.Bv,A],null);r=document.createElement("div");$APP.S(r,"part","swatches");$APP.S(r,"role","listbox");$APP.S(r,"aria-label","Preset colors");r=new $APP.M(null,1,[cJ,r],null);c.textContent=":host{display:inline-block;color-scheme:light dark;position:relative;--x-color-picker-width:240px;--x-color-picker-area-height:160px;--x-color-picker-strip-height:14px;--x-color-picker-swatch-size:28px;--x-color-picker-radius:var(--x-radius-md,8px);--x-color-picker-gap:10px;--x-color-picker-bg:var(--x-color-bg,#ffffff);--x-color-picker-border:var(--x-color-border,#cbd5e1);--x-color-picker-text:var(--x-color-text,#1e293b);--x-color-picker-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-color-picker-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-color-picker-bg:var(--x-color-bg,#1e293b);--x-color-picker-border:var(--x-color-border,#475569);--x-color-picker-text:var(--x-color-text,#f1f5f9);--x-color-picker-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontainer]{position:relative;width:var(--x-color-picker-width);max-width:calc(100vw - 2rem);}[part\x3dtrigger]{all:unset;display:none;box-sizing:border-box;width:36px;height:36px;border-radius:var(--x-color-picker-radius);border:2px solid var(--x-color-picker-border);cursor:pointer;overflow:hidden;}[part\x3dtrigger]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}:host([data-mode\x3dpopover]) [part\x3dtrigger]{display:block;}[part\x3dtrigger-swatch]{display:block;width:100%;height:100%;}[part\x3dpanel]{box-sizing:border-box;background:var(--x-color-picker-bg);border:1px solid var(--x-color-picker-border);border-radius:var(--x-color-picker-radius);padding:var(--x-color-picker-gap);display:flex;flex-direction:column;gap:var(--x-color-picker-gap);box-shadow:var(--x-shadow-md,0 4px 12px rgba(0,0,0,0.1));}:host([data-mode\x3dpopover]) [part\x3dpanel]{display:none;position:absolute;z-index:1000;top:calc(100% + 8px);left:0;max-width:calc(100vw - 1rem);}:host([data-mode\x3dpopover][open]) [part\x3dpanel]{display:flex;}[part\x3darea]{position:relative;width:100%;height:var(--x-color-picker-area-height);border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:crosshair;touch-action:none;overflow:hidden;background:linear-gradient(to bottom,transparent,#000),linear-gradient(to right,#fff,hsl(var(--_x-cp-hue,0),100%,50%));}[part\x3darea]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3darea-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,0.3),inset 0 0 0 1px rgba(0,0,0,0.3);pointer-events:none;left:var(--_x-cp-area-x,0%);top:var(--_x-cp-area-y,0%);transform:translate(-50%,-50%);}[part\x3dstrips]{display:flex;flex-direction:column;gap:8px;}[part\x3dhue-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background:linear-gradient(to right,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%);}[part\x3dhue-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dhue-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);pointer-events:none;top:50%;left:var(--_x-cp-hue-pos,0%);transform:translate(-50%,-50%);}[part\x3dalpha-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0;}[part\x3dalpha-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dalpha-gradient]{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(to right,transparent,var(--_x-cp-alpha-color,#000));}[part\x3dalpha-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);pointer-events:none;top:50%;left:var(--_x-cp-alpha-pos,100%);transform:translate(-50%,-50%);z-index:1;}[part\x3dcontrols]{display:flex;align-items:center;gap:6px;}[part\x3dpreview]{width:32px;height:32px;border-radius:var(--x-color-picker-radius);border:1px solid var(--x-color-picker-border);flex-shrink:0;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:8px 8px;background-position:0 0,0 4px,4px -4px,-4px 0;overflow:hidden;}[part\x3dpreview-color]{display:block;width:100%;height:100%;}[part\x3dhex-input]{flex:1;min-width:0;box-sizing:border-box;padding:4px 8px;border:1px solid var(--x-color-picker-border);border-radius:calc(var(--x-color-picker-radius) - 2px);background:transparent;color:var(--x-color-picker-text);font-family:var(--x-font-family,inherit);font-size:var(--x-font-size-sm,0.8125rem);outline:none;}[part\x3dhex-input]:focus-visible{border-color:var(--x-color-picker-focus-ring);box-shadow:0 0 0 2px var(--x-color-picker-focus-ring);}[part\x3deyedropper],[part\x3dcopy]{all:unset;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:pointer;color:var(--x-color-picker-text);flex-shrink:0;}[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:rgba(0,0,0,0.06);}@media (prefers-color-scheme:dark){[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:rgba(255,255,255,0.1);}}[part\x3deyedropper]:focus-visible,[part\x3dcopy]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatches]{display:grid;grid-template-columns:repeat(auto-fill,var(--x-color-picker-swatch-size));gap:4px;}[part\x3dswatches]:empty{display:none;}[part\x3dswatch]{all:unset;width:var(--x-color-picker-swatch-size);height:var(--x-color-picker-swatch-size);border-radius:4px;cursor:pointer;border:1px solid rgba(0,0,0,0.1);box-sizing:border-box;}[part\x3dswatch]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatch][aria-selected\x3dtrue]{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}:host([disabled]){opacity:var(--x-color-picker-disabled-opacity);pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{transition:none;}}@media (pointer:coarse){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{width:24px;height:24px;}[part\x3dtrigger]{width:44px;height:44px;}[part\x3deyedropper],[part\x3dcopy]{width:44px;height:44px;}[part\x3dswatch]{min-width:44px;min-height:44px;}}";
|
|
37
|
+
$APP.S(d,"part","container");$APP.S(e,"part","panel");e.appendChild(AJ.i(h));e.appendChild(CJ.i(k));e.appendChild($APP.kv.i(m));e.appendChild(cJ.i(r));d.appendChild($APP.fs.i(f));d.appendChild(e);b.appendChild(c);b.appendChild(d);b={"alpha-thumb":HJ.i(k),copy:$APP.Bv.i(m),swatches:cJ.i(r),"hue-strip":DJ.i(k),controls:$APP.kv.i(m),"alpha-gradient":GJ.i(k),panel:e,preview:IJ.i(m),"area-thumb":BJ.i(h),"preview-color":JJ.i(m),container:d,area:AJ.i(h),"hue-thumb":EJ.i(k),"trigger-swatch":zJ.i(f),trigger:$APP.fs.i(f),
|
|
38
|
+
"alpha-strip":FJ.i(k),eyedropper:LJ.i(m),"hex-input":KJ.i(m)};$APP.Q(a,"__xColorPickerRefs",b);$APP.n(a.attachInternals)&&$APP.Q(a,"__xColorPickerInternals",a.attachInternals())}yJ(a);b=$APP.l(a,"__xColorPickerRefs");if($APP.n(b)){c=Wea(a);d=$APP.q(xJ);e=null;for(h=f=0;;)if(h<f)u=e.C(null,h),k=$APP.B(u,0,null),m=$APP.B(u,1,null),r=$APP.B(u,2,null),u=$APP.B(u,3,null),wJ(b,k).addEventListener(m,$APP.l(c,r),u),h+=1;else if(d=$APP.q(d))$APP.Zc(d)?(f=$APP.Eb(d),d=$APP.Fb(d),e=f,f=$APP.w(f)):(k=$APP.t(d),
|
|
39
|
+
e=$APP.B(k,0,null),f=$APP.B(k,1,null),h=$APP.B(k,2,null),k=$APP.B(k,3,null),wJ(b,e).addEventListener(f,$APP.l(c,h),k),d=$APP.v(d),e=null,f=0),h=0;else break;$APP.Q(a,"__xColorPickerHandlers",c)}return oJ(a)},$ea=function(a){return yJ(a)},afa=function(a,b,c,d){return $APP.I(c,d)?oJ(a):null},cfa=function(a){$APP.Fj(a,"__xColorPickerInternals");return $APP.tj(a,bfa)},MJ=function(){return $APP.ri("x-color-picker",new $APP.M(null,8,[$APP.ii,dfa,$APP.gi,Zea,$APP.di,$ea,$APP.ci,afa,$APP.ei,!0,$APP.bi,Xea,
|
|
40
|
+
$APP.ai,Yea,$APP.hi,cfa],null))},GJ=new $APP.F(null,"alpha-gradient","alpha-gradient",2099400176),HJ=new $APP.F(null,"alpha-thumb","alpha-thumb",-1443114239),AJ=new $APP.F(null,"area","area",472007256),dJ=new $APP.F(null,"alpha","alpha",-1574982441),JJ=new $APP.F(null,"preview-color","preview-color",1405210195),FJ=new $APP.F(null,"alpha-strip","alpha-strip",1085401595),gJ=new $APP.F(null,"hex-full","hex-full",-1466644518),KJ=new $APP.F(null,"hex-input","hex-input",1497535517),IJ=new $APP.F(null,"preview",
|
|
41
|
+
"preview",451279890),DJ=new $APP.F(null,"hue-strip","hue-strip",938856876),BJ=new $APP.F(null,"area-thumb","area-thumb",1471343090),cJ=new $APP.F(null,"swatches","swatches",2033601707),CJ=new $APP.F(null,"strips","strips",-1564791997),ZI=new $APP.F(null,"v","v",21465059),TI=new $APP.F(null,"s","s",1705939918),OI=new $APP.F(null,"r","r",-471384190),eJ=new $APP.F(null,"alpha?","alpha?",1329751525),UI=new $APP.F(null,"l","l",1395893423),SI=new $APP.F(null,"h","h",1109658740),PI=new $APP.F(null,"b","b",
|
|
42
|
+
1482224470),pJ=new $APP.F(null,"sat","sat",1064662667),QI=new $APP.F(null,"a","a",-2123407586),zJ=new $APP.F(null,"trigger-swatch","trigger-swatch",208431162),vJ=new $APP.F(null,"document","document",-1329188687),fJ=new $APP.F(null,"hex","hex",41691346),LJ=new $APP.F(null,"eyedropper","eyedropper",-1786107588),EJ=new $APP.F(null,"hue-thumb","hue-thumb",638949625);var Kea=new $APP.bh(null,new $APP.M(null,2,["inline",null,"popover",null],null),null),dfa="value alpha swatches disabled readonly name mode open label".split(" "),bfa=$APP.vg([$APP.Zv,$APP.Tu,$APP.jv,$APP.Mr,$APP.tn,$APP.Uj,$APP.Ti,$APP.Lm,cJ,$APP.Zu,$APP.Z,dJ,$APP.Ut,$APP.et],[new $APP.M(null,2,[$APP.N,$APP.X,$APP.qj,!0],null),new $APP.M(null,2,[$APP.N,$APP.rj,$APP.W,"open"],null),new $APP.M(null,2,[$APP.N,$APP.ts,$APP.qj,!0],null),new $APP.M(null,2,[$APP.N,$APP.rj,$APP.qj,!0],null),new $APP.M(null,
|
|
43
|
+
2,[$APP.N,$APP.rj,$APP.W,"disabled"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"name"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"value"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"mode"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"swatches"],null),new $APP.M(null,2,[$APP.N,$APP.rj,$APP.W,"readonly"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"label"],null),new $APP.M(null,2,[$APP.N,$APP.rj,$APP.W,"alpha"],null),new $APP.M(null,2,[$APP.N,$APP.pt,$APP.qj,!0],null),new $APP.M(null,
|
|
44
|
+
2,[$APP.N,$APP.Ks,$APP.qj,!0],null)]);$APP.ie(["x-color-picker-input",new $APP.M(null,2,[$APP.V,new $APP.M(null,5,[$APP.Ti,$APP.X,SI,$APP.Y,TI,$APP.Y,UI,$APP.Y,QI,$APP.Y],null),$APP.Xu,!1],null),"x-color-picker-change",new $APP.M(null,2,[$APP.V,new $APP.M(null,5,[$APP.Ti,$APP.X,SI,$APP.Y,TI,$APP.Y,UI,$APP.Y,QI,$APP.Y],null),$APP.Xu,!0],null)]);var MI=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;var Pea=new $APP.bh(null,new $APP.M(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null),tJ=new $APP.bh(null,new $APP.M(null,4,["End",null,"ArrowRight",null,"ArrowLeft",null,"Home",null],null),null),xJ=new $APP.J(null,20,5,$APP.K,[new $APP.J(null,4,5,$APP.K,["area","pointerdown","area-down",!1],null),new $APP.J(null,4,5,$APP.K,["area","pointermove","area-move",!1],null),new $APP.J(null,4,5,$APP.K,["area","pointerup","area-up",!1],null),new $APP.J(null,4,5,$APP.K,
|
|
45
45
|
["area","keydown","area-key",!1],null),new $APP.J(null,4,5,$APP.K,["hue-strip","pointerdown","hue-down",!1],null),new $APP.J(null,4,5,$APP.K,["hue-strip","pointermove","hue-move",!1],null),new $APP.J(null,4,5,$APP.K,["hue-strip","pointerup","hue-up",!1],null),new $APP.J(null,4,5,$APP.K,["hue-strip","keydown","hue-key",!1],null),new $APP.J(null,4,5,$APP.K,["alpha-strip","pointerdown","alpha-down",!1],null),new $APP.J(null,4,5,$APP.K,["alpha-strip","pointermove","alpha-move",!1],null),new $APP.J(null,
|
|
46
46
|
4,5,$APP.K,["alpha-strip","pointerup","alpha-up",!1],null),new $APP.J(null,4,5,$APP.K,["alpha-strip","keydown","alpha-key",!1],null),new $APP.J(null,4,5,$APP.K,["hex-input","keydown","hex-key",!1],null),new $APP.J(null,4,5,$APP.K,["swatches","click","swatch",!1],null),new $APP.J(null,4,5,$APP.K,["eyedropper","click","eyedrop",!1],null),new $APP.J(null,4,5,$APP.K,["copy","click","copy",!1],null),new $APP.J(null,4,5,$APP.K,["trigger","click","trigger",!1],null),new $APP.J(null,4,5,$APP.K,["panel","keydown",
|
|
47
|
-
"panel-key",!1],null),new $APP.J(null,4,5,$APP.K,["panel","pointerdown","panel-pd",!1],null),new $APP.J(null,4,5,$APP.K,[
|
|
47
|
+
"panel-key",!1],null),new $APP.J(null,4,5,$APP.K,["panel","pointerdown","panel-pd",!1],null),new $APP.J(null,4,5,$APP.K,[vJ,"pointerdown","doc-click",!0],null)],null);$APP.ha("baredom.exports.x_color_picker.init",MJ);export const init=MJ;
|