@vanelsas/baredom 2.8.0 → 3.0.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 +45 -0
- package/README.md +1 -1
- package/custom-elements.json +467 -0
- package/dist/baredom.d.ts +25 -0
- package/dist/base.js +541 -452
- package/dist/integrity.json +103 -97
- package/dist/x-alert.js +16 -17
- package/dist/x-avatar-group.js +9 -9
- package/dist/x-avatar.js +14 -15
- package/dist/x-badge.js +9 -9
- 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 -16
- package/dist/x-cancel-dialogue.js +13 -13
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +31 -31
- package/dist/x-chart.js +47 -47
- package/dist/x-checkbox.js +1 -11
- package/dist/x-chip.js +1 -1
- package/dist/x-collapse.js +10 -10
- package/dist/x-color-picker.js +45 -44
- package/dist/x-combobox.js +26 -26
- package/dist/x-command-palette.js +24 -24
- package/dist/x-confetti.d.ts +50 -0
- package/dist/x-confetti.js +25 -0
- package/dist/x-container.js +5 -4
- package/dist/x-context-menu.js +20 -20
- package/dist/x-copy.js +20 -20
- package/dist/x-currency-field.js +23 -23
- package/dist/x-date-picker.js +40 -40
- package/dist/x-divider.js +9 -9
- package/dist/x-drawer.js +9 -9
- package/dist/x-dropdown.js +11 -11
- package/dist/x-fieldset.js +5 -5
- package/dist/x-file-download.js +7 -7
- package/dist/x-file-upload.js +22 -22
- package/dist/x-form-field.js +15 -15
- package/dist/x-form.js +9 -9
- package/dist/x-gaussian-blur.js +12 -12
- package/dist/x-grid.js +7 -6
- package/dist/x-i18n-provider.js +7 -7
- package/dist/x-i18n.js +4 -4
- package/dist/x-icon.js +6 -6
- package/dist/x-image.js +16 -17
- package/dist/x-kbd.d.ts +17 -0
- package/dist/x-kbd.js +17 -0
- package/dist/x-kinetic-canvas.js +25 -25
- package/dist/x-kinetic-font.js +27 -27
- package/dist/x-kinetic-typography.js +33 -33
- package/dist/x-liquid-dock.js +38 -39
- package/dist/x-liquid-fill.js +44 -44
- package/dist/x-liquid-glass.js +47 -47
- package/dist/x-menu-item.js +8 -8
- package/dist/x-menu.js +10 -9
- package/dist/x-metaball-cursor.js +26 -27
- package/dist/x-modal.js +10 -10
- package/dist/x-morph-stack.js +36 -37
- package/dist/x-multi-combobox.js +36 -36
- package/dist/x-navbar.js +12 -12
- package/dist/x-neural-glow.js +32 -32
- package/dist/x-notification-center.js +9 -9
- package/dist/x-organic-divider.js +17 -17
- package/dist/x-organic-progress.js +37 -37
- package/dist/x-organic-shape.js +13 -13
- package/dist/x-otp-input.d.ts +55 -0
- package/dist/x-otp-input.js +23 -0
- package/dist/x-pagination.js +15 -15
- package/dist/x-particle-button.js +51 -51
- package/dist/x-popover.js +25 -26
- package/dist/x-progress-circle.js +8 -8
- package/dist/x-progress.js +10 -10
- package/dist/x-proximity-list.d.ts +43 -0
- package/dist/x-proximity-list.js +21 -0
- package/dist/x-radio.js +11 -11
- package/dist/x-ripple-effect.js +10 -10
- package/dist/x-scroll-parallax.js +18 -18
- package/dist/x-scroll-stack.js +17 -17
- package/dist/x-scroll-story.js +34 -34
- package/dist/x-scroll-timeline.js +45 -45
- package/dist/x-scroll.js +38 -38
- package/dist/x-search-field.js +1 -15
- package/dist/x-select.js +1 -11
- 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 +15 -15
- package/dist/x-soft-body.js +22 -22
- package/dist/x-spacer.js +4 -4
- package/dist/x-spinner.js +4 -4
- package/dist/x-splash.js +12 -12
- package/dist/x-spotlight-card.d.ts +19 -0
- package/dist/x-spotlight-card.js +13 -0
- package/dist/x-stat.js +10 -10
- package/dist/x-stepper.js +14 -14
- package/dist/x-switch.js +10 -10
- package/dist/x-tab.js +7 -7
- package/dist/x-table-cell.js +18 -18
- package/dist/x-table-row.js +8 -8
- package/dist/x-table.js +12 -12
- 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 -21
- package/dist/x-timeline.js +8 -8
- package/dist/x-toast.js +21 -22
- package/dist/x-toaster.js +8 -8
- package/dist/x-tooltip.js +12 -12
- package/dist/x-trace-history.d.ts +242 -0
- package/dist/x-trace-history.js +118 -0
- package/dist/x-typography.js +9 -9
- package/dist/x-welcome-tour.js +60 -59
- package/package.json +32 -2
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
null;var v=
|
|
5
|
-
"morph");v=
|
|
6
|
-
""+$APP.
|
|
7
|
-
|
|
8
|
-
d.setAttribute("part","base");e.setAttribute("xmlns","http://www.w3.org/2000/svg");e.setAttribute("preserveAspectRatio","none");e.setAttribute("aria-hidden","true");d.appendChild(e);b.appendChild(c);b.appendChild(d)
|
|
9
|
-
|
|
10
|
-
configurable:!0});Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.n(b)?b:"120px"},set:function(b){return typeof b==="string"&&$APP.
|
|
11
|
-
b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});return Object.defineProperty(a,"path",{get:function(){return this.getAttribute("path")},set:function(b){return typeof b==="string"&&$APP.
|
|
12
|
-
|
|
13
|
-
null),"waves",new $APP.
|
|
14
|
-
null),"mountain",new $APP.
|
|
15
|
-
|
|
16
|
-
[$APP.
|
|
17
|
-
|
|
18
|
-
null);$APP.
|
|
2
|
+
var s0=function(a){return typeof a==="string"&&$APP.$c(bfa,a)?a:"wave"},cfa=function(a){return $APP.ze(function(b){return new $APP.O(null,2,[t0,b*20,u0,b*8],null)},$APP.Eg(0,a))},B0=function(a){var b=new $APP.O(null,7,[$APP.mo,a.getAttribute("shape"),$APP.on,a.getAttribute("layers"),$APP.ol,a.getAttribute("height"),v0,a.getAttribute("flip"),w0,a.getAttribute("mirror"),$APP.ml,a.getAttribute("animation"),$APP.lp,a.getAttribute("path")],null);var c=$APP.G(b),d=$APP.C(c,$APP.mo),e=$APP.C(c,$APP.on);
|
|
3
|
+
b=$APP.C(c,$APP.ol);var f=$APP.C(c,v0),h=$APP.C(c,w0),l=$APP.C(c,$APP.ml);c=$APP.C(c,$APP.lp);c=$APP.li(c);d=s0(d);e=typeof e==="string"?parseInt(e,10):null;var m=e==null;m||(m=isNaN(e),m=$APP.n(m)?m:e<1);e=$APP.n(m)?1:e>5?5:e;var q=typeof l==="string"&&$APP.$c(dfa,l)?l:"none";l=c!=null?c:$APP.Be(x0,new $APP.M(null,2,5,$APP.N,[s0(d),$APP.lp],null));m=c==null?$APP.Be(x0,new $APP.M(null,2,5,$APP.N,[s0(d),y0],null)):null;var r=c!=null?c:$APP.C(efa,s0(d));q=$APP.A.j(q,"morph")&&m==null?"none":q;f=f!=
|
|
4
|
+
null;var v=cfa(e);h=h!=null;b=typeof b==="string"&&$APP.I("",b.trim())?b.trim():"120px";b=$APP.Wf([$APP.lp,$APP.Xn,$APP.ml,v0,z0,y0,$APP.mo,$APP.on,w0,$APP.ol,A0],[c,l,q,f,v,m,d,e,h,b,r]);l=$APP.G(b);b=$APP.C(l,w0);h=$APP.C(l,$APP.ol);v=$APP.C(l,A0);var x=$APP.C(l,$APP.Xn);c=$APP.C(l,$APP.ml);d=$APP.C(l,v0);f=$APP.C(l,z0);e=$APP.C(l,y0);l=$APP.C(l,$APP.on);m=$APP.k(a,"__xOrganicDividerBase");var z=$APP.k(a,"__xOrganicDividerSvg");r=$APP.k(a,"__xOrganicDividerPaths");var B=$APP.A.j(c,"drift");q=$APP.A.j(c,
|
|
5
|
+
"morph");v=B?v:x;z.setAttribute("viewBox",B?"0 0 1800 120":"0 0 1200 120");a:if(x=r.length,x<l)for(x=l-x,B=0;;)if(B<x){var E=document.createElementNS("http://www.w3.org/2000/svg","path");z.appendChild(E);r.push(E);B+=1}else break a;else if(x>l)for(x-=l,B=0;;)if(B<x)E=r.pop(),z.removeChild(E),B+=1;else break a;for(z=0;;)if(z<l){x=r[z];B=$APP.tc(f,z);E=$APP.G(B);B=$APP.C(E,t0);E=$APP.C(E,u0);var H=z+1;x.setAttribute("d",v);x.setAttribute("fill","var(--x-organic-divider-color-"+$APP.V.i(H)+")");x.setAttribute("opacity",
|
|
6
|
+
""+$APP.V.i(l<=1?1:.3+z/(l-1)*.7));B>0||E>0?x.setAttribute("transform","translate("+$APP.V.i(B)+","+$APP.V.i(E)+")"):x.removeAttribute("transform");q&&(x.style.setProperty("--x-organic-divider-d",'path("'+$APP.V.i(v)+'")'),$APP.n(e)&&x.style.setProperty("--x-organic-divider-d-alt",'path("'+$APP.V.i(e)+'")'));q||(x.style.removeProperty("--x-organic-divider-d"),x.style.removeProperty("--x-organic-divider-d-alt"));z+=1}else break;m.style.setProperty("height",h);$APP.n(d)?$APP.S(a,"data-flip",""):$APP.T(a,
|
|
7
|
+
"data-flip");$APP.n(b)?$APP.S(a,"data-mirror",""):$APP.T(a,"data-mirror");$APP.I(c,"none")?$APP.S(a,"data-animation",c):$APP.T(a,"data-animation")},ffa=function(a){if(!$APP.n($APP.k(a,"__xOrganicDividerInit"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;line-height:0;font-size:0;overflow:hidden;--x-organic-divider-color:var(--x-color-primary,#6366f1);--x-organic-divider-color-1:color-mix(in srgb,var(--x-organic-divider-color) 15%,transparent);--x-organic-divider-color-2:color-mix(in srgb,var(--x-organic-divider-color) 25%,transparent);--x-organic-divider-color-3:color-mix(in srgb,var(--x-organic-divider-color) 40%,transparent);--x-organic-divider-color-4:color-mix(in srgb,var(--x-organic-divider-color) 60%,transparent);--x-organic-divider-color-5:color-mix(in srgb,var(--x-organic-divider-color) 85%,transparent);--x-organic-divider-height:120px;--x-organic-divider-animate-duration:6s;--x-organic-divider-animate-timing:ease-in-out;}@media (prefers-color-scheme:dark){:host{--x-organic-divider-color:var(--x-color-primary,#818cf8);}}[part\x3dbase]{width:100%;position:relative;overflow:hidden;}[part\x3dbase] svg{display:block;width:100%;height:100%;}:host([data-flip]) [part\x3dbase]{transform:scaleY(-1);}:host([data-mirror]) [part\x3dbase]{transform:scaleX(-1);}:host([data-flip][data-mirror]) [part\x3dbase]{transform:scaleX(-1) scaleY(-1);}@keyframes x-organic-divider-drift{0%{transform:translateX(0);}100%{transform:translateX(-33.333%);}}:host([data-animation\x3ddrift]) [part\x3dbase] svg{width:150%;animation:x-organic-divider-drift var(--x-organic-divider-animate-duration) linear infinite;}@keyframes x-organic-divider-morph{0%,100%{d:var(--x-organic-divider-d);}50%{d:var(--x-organic-divider-d-alt);}}:host([data-animation\x3dmorph]) [part\x3dbase] path{animation:x-organic-divider-morph var(--x-organic-divider-animate-duration) var(--x-organic-divider-animate-timing) infinite;}@media (prefers-reduced-motion:reduce){:host([data-animation]) [part\x3dbase] svg,:host([data-animation]) [part\x3dbase] path{animation:none;}}";
|
|
8
|
+
d.setAttribute("part","base");e.setAttribute("xmlns","http://www.w3.org/2000/svg");e.setAttribute("preserveAspectRatio","none");e.setAttribute("aria-hidden","true");d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.S(a,"role","presentation");$APP.S(a,"aria-hidden","true");a.__xOrganicDividerBase=d;a.__xOrganicDividerSvg=e;a.__xOrganicDividerPaths=[];a.__xOrganicDividerInit=!0}B0(a);return null},gfa=function(a,b,c,d){$APP.I(c,d)&&$APP.n($APP.k(a,"__xOrganicDividerInit"))&&B0(a);return null},
|
|
9
|
+
hfa=function(a){Object.defineProperty(a,"shape",{get:function(){var b=this.getAttribute("shape");return $APP.n(b)?b:"wave"},set:function(b){return typeof b==="string"&&$APP.I("",b)?this.setAttribute("shape",b):this.removeAttribute("shape")},enumerable:!0,configurable:!0});Object.defineProperty(a,"layers",{get:function(){var b=this.getAttribute("layers");return $APP.n(b)?b:"1"},set:function(b){return typeof b==="string"&&$APP.I("",b)?this.setAttribute("layers",b):this.removeAttribute("layers")},enumerable:!0,
|
|
10
|
+
configurable:!0});Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.n(b)?b:"120px"},set:function(b){return typeof b==="string"&&$APP.I("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,configurable:!0});$APP.Sh(a,"flip","flip");$APP.Sh(a,"mirror","mirror");Object.defineProperty(a,"animation",{get:function(){var b=this.getAttribute("animation");return $APP.n(b)?b:"none"},set:function(b){return typeof b==="string"&&$APP.I("",
|
|
11
|
+
b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});return Object.defineProperty(a,"path",{get:function(){return this.getAttribute("path")},set:function(b){return typeof b==="string"&&$APP.I("",b)?this.setAttribute("path",b):this.removeAttribute("path")},enumerable:!0,configurable:!0})},C0=function(){return $APP.Ah("x-organic-divider",new $APP.O(null,4,[$APP.qh,ifa,$APP.oh,ffa,$APP.kh,gfa,$APP.ph,hfa],null))},v0=new $APP.F(null,"flip","flip",2033871302),
|
|
12
|
+
z0=new $APP.F(null,"transforms","transforms",793344554),t0=new $APP.F(null,"x-offset","x-offset",-1499732449),y0=new $APP.F(null,"path-alt","path-alt",1724994068),u0=new $APP.F(null,"y-offset","y-offset",-1716542),A0=new $APP.F(null,"drift-d","drift-d",-1241526977),w0=new $APP.F(null,"mirror","mirror",1914600218);var ifa="shape layers height flip mirror animation path".split(" "),dfa=new $APP.pg(null,new $APP.O(null,3,["none",null,"drift",null,"morph",null],null),null),bfa=new $APP.pg(null,new $APP.O(null,8,["drip",null,"cloud",null,"scallop",null,"waves",null,"mountain",null,"slant",null,"blob-edge",null,"wave",null],null),null),x0=new $APP.O(null,8,["wave",new $APP.O(null,2,[$APP.lp,"M0,60 C200,20 400,100 600,60 C800,20 1000,100 1200,60 L1200,120 L0,120 Z",y0,"M0,45 C200,85 400,15 600,55 C800,90 1000,10 1200,50 L1200,120 L0,120 Z"],
|
|
13
|
+
null),"waves",new $APP.O(null,2,[$APP.lp,"M0,40 C150,80 300,0 450,40 C600,80 750,10 900,50 C1050,90 1150,30 1200,50 L1200,120 L0,120 Z",y0,"M0,55 C150,15 300,85 450,50 C600,10 750,80 900,35 C1050,5 1150,75 1200,40 L1200,120 L0,120 Z"],null),"blob-edge",new $APP.O(null,2,[$APP.lp,"M0,50 C80,30 160,70 240,45 C320,20 400,80 500,55 C600,30 680,75 780,40 C880,5 960,65 1060,50 C1120,40 1180,60 1200,45 L1200,120 L0,120 Z",y0,"M0,40 C80,65 160,25 240,60 C320,80 400,20 500,45 C600,70 680,15 780,55 C880,75 960,10 1060,35 C1120,55 1180,30 1200,55 L1200,120 L0,120 Z"],
|
|
14
|
+
null),"mountain",new $APP.O(null,2,[$APP.lp,"M0,90 C100,90 200,30 350,30 C500,30 450,85 600,85 C750,85 700,15 850,15 C1000,15 950,80 1100,80 C1150,80 1200,60 1200,60 L1200,120 L0,120 Z",y0,"M0,80 C100,80 200,45 350,45 C500,45 450,75 600,75 C750,75 700,30 850,30 C1000,30 950,70 1100,70 C1150,70 1200,50 1200,50 L1200,120 L0,120 Z"],null),"drip",new $APP.O(null,2,[$APP.lp,"M0,20 C50,20 100,20 150,20 C175,20 185,60 200,80 C215,100 225,100 240,80 C255,60 265,20 290,20 L450,20 C475,20 485,50 500,70 C515,90 525,90 540,70 C555,50 565,20 590,20 L800,20 C825,20 835,70 850,90 C865,110 875,110 890,90 C905,70 915,20 940,20 L1200,20 L1200,120 L0,120 Z",
|
|
15
|
+
y0,"M0,20 C50,20 100,20 170,20 C195,20 205,55 220,72 C235,90 245,90 260,72 C275,55 285,20 310,20 L470,20 C495,20 505,45 520,62 C535,80 545,80 560,62 C575,45 585,20 610,20 L820,20 C845,20 855,65 870,85 C885,105 895,105 910,85 C925,65 935,20 960,20 L1200,20 L1200,120 L0,120 Z"],null),"slant",new $APP.O(null,2,[$APP.lp,"M0,100 C300,90 600,30 900,10 C1000,5 1100,2 1200,0 L1200,120 L0,120 Z",y0,"M0,80 C300,70 600,50 900,30 C1000,20 1100,10 1200,20 L1200,120 L0,120 Z"],null),"scallop",new $APP.O(null,2,
|
|
16
|
+
[$APP.lp,"M0,60 Q75,0 150,60 Q225,120 300,60 Q375,0 450,60 Q525,120 600,60 Q675,0 750,60 Q825,120 900,60 Q975,0 1050,60 Q1125,120 1200,60 L1200,120 L0,120 Z",y0,"M0,50 Q75,110 150,50 Q225,-10 300,50 Q375,110 450,50 Q525,-10 600,50 Q675,110 750,50 Q825,-10 900,50 Q975,110 1050,50 Q1125,-10 1200,50 L1200,120 L0,120 Z"],null),"cloud",new $APP.O(null,2,[$APP.lp,"M0,80 C50,80 80,40 140,40 C180,40 200,60 220,60 C240,60 260,20 320,20 C380,20 400,50 440,50 C480,50 500,10 560,10 C620,10 640,40 700,40 C760,40 780,25 840,25 C900,25 920,55 960,55 C1000,55 1040,30 1100,30 C1140,30 1180,60 1200,60 L1200,120 L0,120 Z",
|
|
17
|
+
y0,"M0,70 C50,70 80,50 140,50 C180,50 200,70 220,70 C240,70 260,30 320,30 C380,30 400,60 440,60 C480,60 500,20 560,20 C620,20 640,50 700,50 C760,50 780,35 840,35 C900,35 920,65 960,65 C1000,65 1040,40 1100,40 C1140,40 1180,70 1200,70 L1200,120 L0,120 Z"],null)],null),efa=new $APP.O(null,8,"wave;M0,60 C200,20 400,100 600,60 C800,20 1000,100 1200,60 C1400,20 1600,100 1800,60 L1800,120 L0,120 Z;waves;M0,40 C150,80 300,0 450,40 C600,80 750,10 900,50 C1050,90 1150,30 1200,50 C1350,80 1500,0 1650,40 C1800,80 1800,50 1800,50 L1800,120 L0,120 Z;blob-edge;M0,50 C80,30 160,70 240,45 C320,20 400,80 500,55 C600,30 680,75 780,40 C880,5 960,65 1060,50 C1120,40 1180,60 1200,45 C1280,30 1360,70 1440,45 C1520,20 1600,80 1700,55 C1800,30 1800,50 1800,50 L1800,120 L0,120 Z;mountain;M0,90 C100,90 200,30 350,30 C500,30 450,85 600,85 C750,85 700,15 850,15 C1000,15 950,80 1100,80 C1150,80 1200,60 1300,60 C1400,60 1400,30 1500,30 C1600,30 1550,80 1700,80 C1750,80 1800,60 1800,60 L1800,120 L0,120 Z;drip;M0,20 C50,20 100,20 150,20 C175,20 185,60 200,80 C215,100 225,100 240,80 C255,60 265,20 290,20 L450,20 C475,20 485,50 500,70 C515,90 525,90 540,70 C555,50 565,20 590,20 L800,20 C825,20 835,70 850,90 C865,110 875,110 890,90 C905,70 915,20 940,20 L1200,20 C1225,20 1235,60 1250,80 C1265,100 1275,100 1290,80 C1305,60 1315,20 1340,20 L1500,20 C1525,20 1535,50 1550,70 C1565,90 1575,90 1590,70 C1605,50 1615,20 1640,20 L1800,20 L1800,120 L0,120 Z;slant;M0,100 C300,90 600,30 900,10 C1000,5 1100,2 1200,0 C1300,2 1500,90 1800,100 L1800,120 L0,120 Z;scallop;M0,60 Q75,0 150,60 Q225,120 300,60 Q375,0 450,60 Q525,120 600,60 Q675,0 750,60 Q825,120 900,60 Q975,0 1050,60 Q1125,120 1200,60 Q1275,0 1350,60 Q1425,120 1500,60 Q1575,0 1650,60 Q1725,120 1800,60 L1800,120 L0,120 Z;cloud;M0,80 C50,80 80,40 140,40 C180,40 200,60 220,60 C240,60 260,20 320,20 C380,20 400,50 440,50 C480,50 500,10 560,10 C620,10 640,40 700,40 C760,40 780,25 840,25 C900,25 920,55 960,55 C1000,55 1040,30 1100,30 C1140,30 1180,60 1200,60 C1240,60 1260,20 1320,20 C1380,20 1400,50 1440,50 C1480,50 1500,10 1560,10 C1620,10 1640,40 1700,40 C1760,40 1780,60 1800,60 L1800,120 L0,120 Z".split(";"),
|
|
18
|
+
null);$APP.ha("baredom.exports.x_organic_divider.init",C0);export const init=C0;
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var a8=function(a){return typeof a==="string"&&(a=a.trim(),$APP.
|
|
3
|
-
"number"&&$APP.p(isNaN(a))&&a>0?a:42):42},f8=function(a){return typeof a==="string"?(a=a.trim(),$APP.
|
|
4
|
-
l=f>h?1:0,m=f>h?0:1,q=f+-l-j8,r=h+-m-j8,v=f+-1-2*j8,x=h+-1-2*j8,
|
|
5
|
-
b,c){var d=[],e=[];c=h8(c);for(var f=[0],h=[20,100,0,0],l=a.length,m=0;;)if(m<l){switch(a.charAt(m)){case "F":var q=h[0],r=h[1],v=h[2],x=h[3],
|
|
6
|
-
f[0]*.2;return b.
|
|
7
|
-
return $APP
|
|
8
|
-
"key")-$APP.k(
|
|
9
|
-
b*d,b]},m8=function(){return $APP.
|
|
10
|
-
$APP.
|
|
11
|
-
d=function(){var
|
|
12
|
-
"0");h.push(m);l+=1}else break;for(;;)if(b<f)e.removeChild(d[b]),b+=1;else break;a.__xOrganicProgressLines=h;a.__xOrganicProgressPV=-1},t8=function(a){var b=$APP.k(a,"__xOrganicProgressLines"),c=$APP.k(a,"__xOrganicProgressSegs"),d=$APP.k(a,"__xOrganicProgressSegN"),e=$APP.k(a,"__xOrganicProgressModel"),f=$APP.
|
|
13
|
-
","+$APP.
|
|
14
|
-
""+$APP.
|
|
15
|
-
c=$APP.k(a,"__xOrganicProgressNN");c=$APP.n(c)?c:0;if($APP.n($APP.n(f)?c>0:f))for(b=Math.floor(b/100*c),e=0;;)if(e<c)h=f[e],$APP.n(h)&&h.setAttribute("opacity",e<b?"1":"0"),e+=1;else break;a.__xOrganicProgressPV=d}},
|
|
16
|
-
[],l=0;;)if(l<c){var m=b[l];if($APP.k(m,"depth")>=2){var q=document.createElementNS("http://www.w3.org/2000/svg","circle"),r=$APP.k(m,"x2");m=$APP.k(m,"y2");var v=2*i8(e)-1,x=2*i8(e)-1;q.setAttribute("cx",""+$APP.
|
|
17
|
-
!0;a.__xOrganicProgressBT=0},
|
|
18
|
-
1-Math.min(c,1),b=4*(1-b*b*b),c=Math.max(0,1-c*c),d=a.length,e=0;;)if(e<d){f=a[e];var h=$APP.k(f,"__xOrganicProgressBDx")*b*8,l=$APP.k(f,"__xOrganicProgressBDy")*b*8;f.setAttribute("r",""+$APP.
|
|
19
|
-
!1;a.__xOrganicProgressBloom=!1;a.__xOrganicProgressPV=-1;$APP.
|
|
20
|
-
return $APP.n(m)?m:0}();if($APP.n($APP.n(c)?f>0:c))for(d=Math.floor(d/100*f),h=0;;)if(h<f)l=c[h],$APP.n(l)&&l.setAttribute("opacity",h<d?"1":"0"),h+=1;else break;a.__xOrganicProgressPV=e;$APP.n(function(){var m=$APP.
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
var
|
|
2
|
+
var a8=function(a){return typeof a==="string"&&(a=a.trim(),$APP.I(a,""))?(a=parseFloat(a),$APP.n(isNaN(a))?null:Math.min(100,Math.max(0,a))):null},b8=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.$c(yka,a)?a:"vine"},c8=function(a){return a==null?!0:$APP.I((""+$APP.V.i(a)).trim().toLowerCase(),"false")},d8=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.$c(zka,a)?a:"normal"},e8=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a===
|
|
3
|
+
"number"&&$APP.p(isNaN(a))&&a>0?a:42):42},f8=function(a){return typeof a==="string"?(a=a.trim(),$APP.I(a,"")?a:null):null},g8=function(a){return typeof a==="string"?(a=a.trim(),$APP.I(a,"")?a:null):null},h8=function(a){a=(typeof a==="number"&&$APP.p(isNaN(a))&&a>0?Math.floor(a):42)|0;return[a===0?1:a]},i8=function(a){var b=a[0];b^=b<<13;b^=b>>>17;b=b^b<<5|0;a[0]=b;return Math.abs(b)/2147483647},Bka=function(a,b){var c=(a+b)*Aka,d=Math.floor(a+c);c=Math.floor(b+c);var e=(d+c)*j8,f=a-(d-e),h=b-(c-e),
|
|
4
|
+
l=f>h?1:0,m=f>h?0:1,q=f+-l-j8,r=h+-m-j8,v=f+-1-2*j8,x=h+-1-2*j8,z=d&255,B=c&255,E=.5-f*f-h*h,H=.5-q*q-r*r,K=.5-v*v-x*x;return 70*((E<0?0:function(){var J=E*E,P=k8[l8[z+l8[B&255]&255]&11];return J*J*(P[0]*f+P[1]*h)}())+(H<0?0:function(){var J=H*H,P=k8[l8[z+l+l8[B+m&255]&255]&11];return J*J*(P[0]*q+P[1]*r)}())+(K<0?0:function(){var J=K*K,P=k8[l8[z+1+l8[B+1&255]&255]&11];return J*J*(P[0]*v+P[1]*x)}()))},Cka=function(a){var b=a*17.31,c=a*31.17;return function(d,e){return Bka(d+b,e+c)}},Dka=function(a,
|
|
5
|
+
b,c){var d=[],e=[];c=h8(c);for(var f=[0],h=[20,100,0,0],l=a.length,m=0;;)if(m<l){switch(a.charAt(m)){case "F":var q=h[0],r=h[1],v=h[2],x=h[3],z=f[0],B=38*Math.pow(.7,x)*(.8+.4*i8(c)),E=function(){var K=z*.3;var J=x*.5;K=b.j?b.j(K,J):b.call(null,K,J);return v+.15*K}(),H=q+B*Math.cos(E);B=r+B*Math.sin(E);d.push({x1:q,y1:r,x2:H,y2:B,depth:x,index:z});h[0]=H;h[1]=B;f[0]=z+1;break;case "+":q=function(){var K=f[0]*.2;return b.j?b.j(K,100):b.call(null,K,100)}();h[2]-=.436+.1*q;break;case "-":q=function(){var K=
|
|
6
|
+
f[0]*.2;return b.j?b.j(K,200):b.call(null,K,200)}();h[2]+=.436+.1*q;break;case "[":e.push([h[0],h[1],h[2],h[3]]);h[3]+=1;break;case "]":e.length>0&&(q=e.pop(),h[0]=q[0],h[1]=q[1],h[2]=q[2],h[3]=q[3])}m+=1}else break;d.sort(function(K,J){var P=$APP.k(K,"x2")-20;K=$APP.k(K,"y2")-100;var ea=$APP.k(J,"x2")-20;J=$APP.k(J,"y2")-100;return P*P+K*K-(ea*ea+J*J)});return[d,d.length]},Eka=function(a,b,c,d){a=""+$APP.V.i(a.toFixed(1))+","+$APP.V.i(b.toFixed(1));c=""+$APP.V.i(c.toFixed(1))+","+$APP.V.i(d.toFixed(1));
|
|
7
|
+
return $APP.ad(a,c)<0?""+$APP.V.i(a)+"-"+$APP.V.i(c):""+$APP.V.i(c)+"-"+$APP.V.i(a)},Gka=function(a,b){b=$APP.Hc(Fka,b,25);var c=h8(a),d=1.5*b,e=Math.sqrt(3)*b,f=Math.ceil(800/d)+4,h=Math.ceil(200/e)+4;a=[];for(var l=Math.sqrt(17E4),m=-2;;)if(m<f){for(var q=m*d,r=$APP.he(m)?0:e/2,v=-2;;)if(v<h){var x=v*e+r;if(q>0-b&&q<800+b&&x>0-b&&x<200+b){var z=q-400,B=x-100;z=Math.sqrt(z*z+B*B);B=z*.7+i8(c)*.3*l;a.push({cx:q,cy:x,dist:z,key:B})}v+=1}else break;m+=1}else break;a.sort(function(K,J){return $APP.k(K,
|
|
8
|
+
"key")-$APP.k(J,"key")});c={};d=[];e=[0];f=a.length;for(h=0;;)if(h<f){r=a[h];m=$APP.k(r,"cx");q=$APP.k(r,"cy");r=Math.min(2,Math.floor($APP.k(r,"dist")*3/(l+.001)));for(v=0;;)if(v<6){z=Math.PI/3*v;var E=Math.PI/3*(v+1);x=m+b*Math.cos(z);z=q+b*Math.sin(z);B=m+b*Math.cos(E);E=q+b*Math.sin(E);var H=Eka(x,z,B,E);$APP.n($APP.k(c,H))||(c[H]=!0,H=e[0],d.push({x1:x,y1:z,x2:B,y2:E,depth:r,index:H}),e[0]=H+1);v+=1}else break;h+=1}else break;return[d,d.length]},Hka=function(a,b,c,d){b=c+(120*(b-a)-12*c)*d;return[a+
|
|
9
|
+
b*d,b]},m8=function(){return $APP.D(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},r8=function(a){a=new $APP.O(null,7,[$APP.fo,a.getAttribute("progress"),$APP.Lp,a.getAttribute("variant"),$APP.qr,a.getAttribute("color"),n8,a.getAttribute("bloom"),$APP.An,a.getAttribute("density"),o8,a.getAttribute("seed"),$APP.ui,a.getAttribute("label")],null);var b=$APP.G(a),c=$APP.C(b,$APP.fo);a=$APP.C(b,$APP.Lp);var d=$APP.C(b,$APP.qr),e=$APP.C(b,n8),f=$APP.C(b,$APP.An),h=$APP.C(b,o8);b=$APP.C(b,
|
|
10
|
+
$APP.ui);c=a8(c);var l=c==null,m=$APP.n(c)?c:0,q=!l&&m>=100;return $APP.Wf([$APP.Aj,$APP.Un,$APP.nk,p8,q8,$APP.jr,$APP.Z,$APP.cq,$APP.Cp,$APP.qq,$APP.Ip],[l,g8(d),b8(a),c8(e),e8(h),l?"Loading...":""+$APP.V.i(Math.round(m))+"%",f8(b),m,q,c,d8(f)])},Ika=function(a,b){a=window.getComputedStyle(a).getPropertyValue("--x-organic-progress-branch-width").trim();return $APP.I(a,"")?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},Jka=function(a,b,c){var d=$APP.G($APP.k(a,"__xOrganicProgressRefs")),e=$APP.C(d,s8);
|
|
11
|
+
d=function(){var z=$APP.k(a,"__xOrganicProgressLines");return $APP.n(z)?z:[]}();for(var f=d.length,h=[],l=0;;)if(l<b){var m=l<f?d[l]:function(){var z=document.createElementNS("http://www.w3.org/2000/svg","line");z.setAttribute("stroke-linecap","round");e.appendChild(z);return z}(),q=c[l],r=$APP.k(q,"y1"),v=$APP.k(q,"x2"),x=$APP.k(q,"y2");m.setAttribute("x1",""+$APP.V.i($APP.k(q,"x1")));m.setAttribute("y1",""+$APP.V.i(r));m.setAttribute("x2",""+$APP.V.i(v));m.setAttribute("y2",""+$APP.V.i(x));m.setAttribute("opacity",
|
|
12
|
+
"0");h.push(m);l+=1}else break;for(;;)if(b<f)e.removeChild(d[b]),b+=1;else break;a.__xOrganicProgressLines=h;a.__xOrganicProgressPV=-1},t8=function(a){var b=$APP.k(a,"__xOrganicProgressLines"),c=$APP.k(a,"__xOrganicProgressSegs"),d=$APP.k(a,"__xOrganicProgressSegN"),e=$APP.k(a,"__xOrganicProgressModel"),f=$APP.A.j($APP.nk.i(e),"honeycomb");e=$APP.Un.i(e);var h=$APP.n(e)?e:"var("+$APP.V.i("--x-organic-progress-color-primary")+","+$APP.V.i(f?"#818cf8":"#22c55e")+")",l="var("+$APP.V.i("--x-organic-progress-color-secondary")+
|
|
13
|
+
","+$APP.V.i(f?"#a5b4fc":"#16a34a")+")";a=Ika(a,f?1.5:3);if(f)for(f=0;;)if(f<d){e=b[f];var m=$APP.k(c[f],"depth");e.setAttribute("stroke-width",""+$APP.V.i(a));e.style.stroke=function(){switch(m){case 0:return h;case 1:return l;default:return l}}();e.setAttribute("stroke-linecap","round");e.setAttribute("stroke-opacity",function(){switch(m){case 0:return"0.9";case 1:return"0.7";default:return"0.5"}}());f+=1}else break;else for(f=0;;)if(f<d){e=b[f];var q=$APP.k(c[f],"depth"),r=q===0?h:l;e.setAttribute("stroke-width",
|
|
14
|
+
""+$APP.V.i(Math.max(.5,a-q*.6)));e.style.stroke=r;e.setAttribute("stroke-linecap","round");e.setAttribute("stroke-opacity","1");f+=1}else break},Kka=function(a){var b=$APP.k(a,"__xOrganicProgressSPos"),c=$APP.k(a,"__xOrganicProgressSegN"),d=Math.floor(b/100*c),e=$APP.k(a,"__xOrganicProgressPV"),f=$APP.k(a,"__xOrganicProgressLines");if($APP.I(d,e)){c=Math.max(d,e<0?c:e);for(e=Math.min(d,e<0?0:e);;)if(e<c){var h=f[e];$APP.n(h)&&h.setAttribute("opacity",e<d?"1":"0");e+=1}else break;f=$APP.k(a,"__xOrganicProgressNodes");
|
|
15
|
+
c=$APP.k(a,"__xOrganicProgressNN");c=$APP.n(c)?c:0;if($APP.n($APP.n(f)?c>0:f))for(b=Math.floor(b/100*c),e=0;;)if(e<c)h=f[e],$APP.n(h)&&h.setAttribute("opacity",e<b?"1":"0"),e+=1;else break;a.__xOrganicProgressPV=d}},Lka=function(a){var b=$APP.k(a,"__xOrganicProgressSegs"),c=$APP.k(a,"__xOrganicProgressSegN"),d=$APP.G($APP.k(a,"__xOrganicProgressRefs"));d=$APP.C(d,u8);var e=$APP.k(a,"__xOrganicProgressModel"),f="var("+$APP.V.i("--x-organic-progress-bloom-color")+",#f472b6)";e=h8(q8.i(e)+7);for(var h=
|
|
16
|
+
[],l=0;;)if(l<c){var m=b[l];if($APP.k(m,"depth")>=2){var q=document.createElementNS("http://www.w3.org/2000/svg","circle"),r=$APP.k(m,"x2");m=$APP.k(m,"y2");var v=2*i8(e)-1,x=2*i8(e)-1;q.setAttribute("cx",""+$APP.V.i(r));q.setAttribute("cy",""+$APP.V.i(m));q.setAttribute("r","0");q.style.fill=f;q.setAttribute("opacity","0");q.setAttribute("class","bloom-petal");q.__xOrganicProgressBDx=v;q.__xOrganicProgressBDy=x;d.appendChild(q);h.push(q)}l+=1}else break;a.__xOrganicProgressBEls=h;a.__xOrganicProgressBloom=
|
|
17
|
+
!0;a.__xOrganicProgressBT=0},Mka=function(a,b){b=$APP.k(a,"__xOrganicProgressBT")+b;var c=b/1.5;a.__xOrganicProgressBT=b;if(c>1){b=$APP.G($APP.k(a,"__xOrganicProgressRefs"));b=$APP.C(b,u8);c=$APP.k(a,"__xOrganicProgressBEls");if($APP.n(c))for(var d=c.length,e=0;;)if(e<d){var f=c[e];$APP.n(f.parentNode)&&b.removeChild(f);e+=1}else break;a.__xOrganicProgressBEls=null;a.__xOrganicProgressBloom=!1;$APP.Nh(a,"x-organic-progress-bloom-end",{progress:100})}else for(a=$APP.k(a,"__xOrganicProgressBEls"),b=
|
|
18
|
+
1-Math.min(c,1),b=4*(1-b*b*b),c=Math.max(0,1-c*c),d=a.length,e=0;;)if(e<d){f=a[e];var h=$APP.k(f,"__xOrganicProgressBDx")*b*8,l=$APP.k(f,"__xOrganicProgressBDy")*b*8;f.setAttribute("r",""+$APP.V.i(b*2.5));f.setAttribute("opacity",""+$APP.V.i(c));f.setAttribute("transform","translate("+$APP.V.i(h)+","+$APP.V.i(l)+")");e+=1}else break},Nka=function(a){a.__xOrganicProgressTime=0;a.__xOrganicProgressSPos=0;a.__xOrganicProgressSVel=0;$APP.ja(a,"__xOrganicProgressLF",performance.now());a.__xOrganicProgressDone=
|
|
19
|
+
!1;a.__xOrganicProgressBloom=!1;a.__xOrganicProgressPV=-1;$APP.ja(a,"__xOrganicProgressRaf",requestAnimationFrame(function(){return v8(a)}))},w8=function(a){for(var b=$APP.k(a,"__xOrganicProgressModel"),c=$APP.k(a,"__xOrganicProgressSegN"),d=$APP.n($APP.Aj.i(b))?50:$APP.cq.i(b),e=Math.floor(d/100*c),f=$APP.k(a,"__xOrganicProgressLines"),h=0;;)if(h<c){var l=f[h];$APP.n(l)&&l.setAttribute("opacity",h<e?"1":"0");h+=1}else break;c=$APP.k(a,"__xOrganicProgressNodes");f=function(){var m=$APP.k(a,"__xOrganicProgressNN");
|
|
20
|
+
return $APP.n(m)?m:0}();if($APP.n($APP.n(c)?f>0:c))for(d=Math.floor(d/100*f),h=0;;)if(h<f)l=c[h],$APP.n(l)&&l.setAttribute("opacity",h<d?"1":"0"),h+=1;else break;a.__xOrganicProgressPV=e;$APP.n(function(){var m=$APP.Cp.i(b);return $APP.n(m)?$APP.p($APP.k(a,"__xOrganicProgressDone")):m}())&&(a.__xOrganicProgressDone=!0,$APP.Nh(a,"x-organic-progress-complete",{progress:100}))},z8=function(a,b){var c=r8(a);a.__xOrganicProgressModel=c;$APP.S(a,"role","progressbar");$APP.S(a,"aria-valuemin","0");$APP.S(a,
|
|
21
|
+
"aria-valuemax","100");$APP.n($APP.Aj.i(c))?($APP.T(a,"aria-valuenow"),$APP.S(a,"aria-busy","true"),$APP.S(a,"aria-valuetext","Loading...")):($APP.S(a,"aria-valuenow",""+$APP.V.i(Math.round($APP.cq.i(c)))),$APP.T(a,"aria-busy"),$APP.S(a,"aria-valuetext",$APP.jr.i(c)));var d=$APP.Z.i(c);$APP.n(d)?$APP.S(a,"aria-label",d):$APP.T(a,"aria-label");if(b==null||$APP.$c(x8,b)){b=$APP.A.j($APP.nk.i(c),"honeycomb");d=$APP.Hc(Oka,$APP.Ip.i(c),3);if(b)c=Gka(q8.i(c),$APP.Ip.i(c));else{a:{for(var e=new $APP.O(null,
|
|
22
|
+
1,["F","F[+F]F[-F]F"],null),f="F",h=0;;){if(h>=d){d=f;break a}for(var l=[],m=f.length,q=0;;)if(q<m){var r=f.charAt(q),v=$APP.C(e,r);$APP.n(v)?l.push(v):l.push(r);q+=1}else break;h+=1;f=l.join("")}d=void 0}e=Cka(q8.i(c));c=Dka(d,e,q8.i(c))}d=c;c=d[0];d=d[1];a.__xOrganicProgressSegs=c;a.__xOrganicProgressSegN=d;Jka(a,d,c);d=$APP.G($APP.k(a,"__xOrganicProgressRefs"));c=$APP.C(d,s8);d=$APP.C(d,$APP.xn);$APP.n(c)&&($APP.n(b)?c.removeAttribute("filter"):c.setAttribute("filter","url(#x-organic-progress-gooey)"));
|
|
23
|
+
$APP.n($APP.n(d)?$APP.p(b):d)&&d.setAttribute("stdDeviation","2");b=$APP.G($APP.k(a,"__xOrganicProgressRefs"));b=$APP.C(b,y8);c=$APP.k(a,"__xOrganicProgressNodes");if($APP.n($APP.n(b)?c:b))for(d=c.length,e=0;;)if(e<d)f=c[e],$APP.n(f.parentNode)&&b.removeChild(f),e+=1;else break;a.__xOrganicProgressNodes=null;a.__xOrganicProgressND=null;a.__xOrganicProgressNN=0;t8(a);a.__xOrganicProgressPV=-1;m8()&&w8(a)}},Pka=function(a){Object.defineProperty(a,"progress",{get:function(){return a8(this.getAttribute("progress"))},
|
|
24
|
+
set:function(b){return b==null?this.removeAttribute("progress"):this.setAttribute("progress",""+$APP.V.i(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){return b8(this.getAttribute("variant"))},set:function(b){return b==null?this.removeAttribute("variant"):this.setAttribute("variant",""+$APP.V.i(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"color",{get:function(){return g8(this.getAttribute("color"))},set:function(b){return b==null?this.removeAttribute("color"):
|
|
25
|
+
this.setAttribute("color",""+$APP.V.i(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"bloom",{get:function(){return c8(this.getAttribute("bloom"))},set:function(b){return $APP.n(b)?this.removeAttribute("bloom"):this.setAttribute("bloom","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"density",{get:function(){return d8(this.getAttribute("density"))},set:function(b){return b==null?this.removeAttribute("density"):this.setAttribute("density",""+$APP.V.i(b))},enumerable:!0,
|
|
26
|
+
configurable:!0});Object.defineProperty(a,"seed",{get:function(){return e8(this.getAttribute("seed"))},set:function(b){return b==null?this.removeAttribute("seed"):this.setAttribute("seed",""+$APP.V.i(b|0))},enumerable:!0,configurable:!0});return Object.defineProperty(a,"label",{get:function(){return f8(this.getAttribute("label"))},set:function(b){return b==null?this.removeAttribute("label"):this.setAttribute("label",""+$APP.V.i(b))},enumerable:!0,configurable:!0})},Rka=function(a){var b=r8(a);a.__xOrganicProgressModel=
|
|
27
|
+
b;if(!$APP.n($APP.k(a,"__xOrganicProgressRefs"))){b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElementNS("http://www.w3.org/2000/svg","svg"),e=document.createElementNS("http://www.w3.org/2000/svg","defs"),f=document.createElementNS("http://www.w3.org/2000/svg","g"),h=document.createElementNS("http://www.w3.org/2000/svg","g"),l=document.createElementNS("http://www.w3.org/2000/svg","g");c.textContent=Qka;d.setAttribute("part","svg");d.setAttribute("viewBox",
|
|
28
|
+
"0 0 800 200");d.setAttribute("preserveAspectRatio","xMidYMid slice");d.setAttribute("aria-hidden","true");f.setAttribute("part","branches");f.setAttribute("filter","url(#"+$APP.V.i("x-organic-progress-gooey")+")");h.setAttribute("part","nodes");l.setAttribute("part","blooms");var m=document.createElementNS("http://www.w3.org/2000/svg","filter");var q=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),r=document.createElementNS("http://www.w3.org/2000/svg","feColorMatrix");m.setAttribute("id",
|
|
29
|
+
"x-organic-progress-gooey");m.setAttribute("x","-10%");m.setAttribute("y","-10%");m.setAttribute("width","120%");m.setAttribute("height","120%");q.setAttribute("in","SourceGraphic");q.setAttribute("stdDeviation",""+$APP.V.i(2));q.setAttribute("result","blur");r.setAttribute("in","blur");r.setAttribute("type","matrix");r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7");m.appendChild(q);m.appendChild(r);e.appendChild(m);m=new $APP.O(null,3,[$APP.Bp,m,$APP.xn,q,$APP.fr,r],null);
|
|
30
|
+
d.appendChild(e);d.appendChild(f);d.appendChild(h);d.appendChild(l);b.appendChild(c);b.appendChild(d);b=$APP.ng($APP.zc([m,new $APP.O(null,5,[$APP.jj,b,$APP.po,d,s8,f,y8,h,u8,l],null)]));a.__xOrganicProgressRefs=b}z8(a,null);t8(a);m8()?w8(a):Nka(a);return null},Ska=function(a){var b=$APP.k(a,"__xOrganicProgressRaf");$APP.n(b)&&(cancelAnimationFrame(b),a.__xOrganicProgressRaf=null);if($APP.n($APP.k(a,"__xOrganicProgressBloom"))){b=$APP.G($APP.k(a,"__xOrganicProgressRefs"));b=$APP.C(b,u8);var c=$APP.k(a,
|
|
31
|
+
"__xOrganicProgressBEls");if($APP.n(c))for(var d=c.length,e=0;;)if(e<d){var f=c[e];$APP.n(f.parentNode)&&b.removeChild(f);e+=1}else break;a.__xOrganicProgressBEls=null;a.__xOrganicProgressBloom=!1}return null},Tka=function(a,b,c,d){$APP.I(c,d)&&$APP.n($APP.k(a,"__xOrganicProgressRefs"))&&(z8(a,b),$APP.$c(x8,b)||t8(a));return null},A8=function(){return $APP.Ah("x-organic-progress",new $APP.O(null,5,[$APP.qh,Uka,$APP.oh,Rka,$APP.lh,Ska,$APP.kh,Tka,$APP.ph,Pka],null))},y8=new $APP.F(null,"nodes-g","nodes-g",
|
|
32
|
+
89420858),s8=new $APP.F(null,"branches-g","branches-g",548989635),p8=new $APP.F(null,"bloom?","bloom?",-326837587),n8=new $APP.F(null,"bloom-attr","bloom-attr",-1778398039),q8=new $APP.F(null,"seed","seed",68613327),o8=new $APP.F(null,"seed-raw","seed-raw",2146438207),u8=new $APP.F(null,"blooms-g","blooms-g",-1476393864);var Uka="progress variant color bloom density seed label".split(" ");$APP.ce(["x-organic-progress-complete",new $APP.O(null,2,[$APP.U,new $APP.O(null,1,[$APP.qq,$APP.Y],null),$APP.Aq,!1],null),"x-organic-progress-bloom-end",new $APP.O(null,2,[$APP.U,new $APP.O(null,1,[$APP.qq,$APP.Y],null),$APP.Aq,!1],null)]);
|
|
33
|
+
var yka=new $APP.pg(null,new $APP.O(null,2,["honeycomb",null,"vine",null],null),null),zka=new $APP.pg(null,new $APP.O(null,3,["dense",null,"normal",null,"sparse",null],null),null),Oka=new $APP.O(null,3,["sparse",2,"normal",3,"dense",4],null),l8=[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,
|
|
34
34
|
231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,
|
|
35
|
-
239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180],k8=[[1,1],[-1,1],[1,-1],[-1,-1],[1,0],[-1,0],[0,1],[0,-1],[1,1],[-1,1],[1,-1],[-1,-1]],
|
|
36
|
-
":1;background:var("+$APP.
|
|
37
|
-
v8=function v8(a){if($APP.n(a.isConnected)){var c=$APP.k(a,"__xOrganicProgressModel"),d=performance.now(),e=Math.min(d-$APP.k(a,"__xOrganicProgressLF"),100)/1E3;a.__xOrganicProgressLF=d;a.__xOrganicProgressTime=$APP.k(a,"__xOrganicProgressTime")+e;d=$APP.n($APP.
|
|
38
|
-
$APP.
|
|
39
|
-
v8.
|
|
35
|
+
239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180],k8=[[1,1],[-1,1],[1,-1],[-1,-1],[1,0],[-1,0],[0,1],[0,-1],[1,1],[-1,1],[1,-1],[-1,-1]],Aka=(Math.sqrt(3)-1)/2,j8=(3-Math.sqrt(3))/6,Fka=new $APP.O(null,3,["sparse",40,"normal",25,"dense",16],null);var Qka=":host{display:block;position:relative;min-height:60px;width:100%;overflow:hidden;"+$APP.V.i("--x-organic-progress-color-primary")+":var(--x-color-success,#22c55e);"+$APP.V.i("--x-organic-progress-color-secondary")+":var(--x-color-success,#16a34a);"+$APP.V.i("--x-organic-progress-bloom-color")+":var(--x-color-danger,#f472b6);"+$APP.V.i("--x-organic-progress-bg")+":transparent;"+$APP.V.i("--x-organic-progress-branch-width")+":3;"+$APP.V.i("--x-organic-progress-glow")+":2;"+$APP.V.i("--x-organic-progress-opacity")+
|
|
36
|
+
":1;background:var("+$APP.V.i("--x-organic-progress-bg")+",transparent);opacity:var("+$APP.V.i("--x-organic-progress-opacity")+",1);}[part\x3dsvg]{display:block;width:100%;height:100%;}[part\x3dnodes] circle{fill:var("+$APP.V.i("--x-organic-progress-color-primary")+",#22c55e);}@media(prefers-color-scheme:dark){:host{--x-organic-progress-color-primary:var(--x-color-success,#4ade80);--x-organic-progress-color-secondary:var(--x-color-success,#22c55e);--x-organic-progress-bloom-color:var(--x-color-danger,#f9a8d4);}}@media(prefers-reduced-motion:reduce){[part\x3dsvg]{transition:none!important;}.bloom-petal{transition:none!important;animation:none!important;}}",
|
|
37
|
+
v8=function v8(a){if($APP.n(a.isConnected)){var c=$APP.k(a,"__xOrganicProgressModel"),d=performance.now(),e=Math.min(d-$APP.k(a,"__xOrganicProgressLF"),100)/1E3;a.__xOrganicProgressLF=d;a.__xOrganicProgressTime=$APP.k(a,"__xOrganicProgressTime")+e;d=$APP.n($APP.Aj.i(c))?50+20*Math.sin($APP.k(a,"__xOrganicProgressTime")*1.5):$APP.cq.i(c);d=Hka($APP.k(a,"__xOrganicProgressSPos"),d,$APP.k(a,"__xOrganicProgressSVel"),e);a.__xOrganicProgressSPos=d[0];a.__xOrganicProgressSVel=d[1];Kka(a);$APP.n(function(){var f=
|
|
38
|
+
$APP.Cp.i(c);return $APP.n(f)?$APP.p($APP.k(a,"__xOrganicProgressDone")):f}())&&(a.__xOrganicProgressDone=!0,$APP.Nh(a,"x-organic-progress-complete",{progress:100}),$APP.n(p8.i(c))&&Lka(a));$APP.n(function(){var f=$APP.p($APP.Cp.i(c));return f?(f=$APP.k(a,"__xOrganicProgressDone"),$APP.n(f)?$APP.p($APP.k(a,"__xOrganicProgressBloom")):f):f}())&&(a.__xOrganicProgressDone=!1);$APP.n($APP.k(a,"__xOrganicProgressBloom"))&&Mka(a,e);$APP.ja(a,"__xOrganicProgressRaf",requestAnimationFrame(function(){return v8.i?
|
|
39
|
+
v8.i(a):v8.call(null,a)}))}return null},x8=$APP.rg(["variant","density","seed"]);$APP.ha("baredom.exports.x_organic_progress.init",A8);export const init=A8;
|
package/dist/x-organic-shape.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
d.setAttribute("part","shape");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xOrganicShapeBase=d;a.__xOrganicShapeSlot=e;a.__xOrganicShapeInit=!0},
|
|
4
|
-
$APP.
|
|
5
|
-
l
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
null),"blob-2",new $APP.
|
|
12
|
-
|
|
13
|
-
null),"cloud",new $APP.
|
|
14
|
-
|
|
2
|
+
var eX=function(a){return typeof a==="string"&&$APP.$c(Xaa,a)?a:"blob-1"},fX=function(a){return typeof a==="string"&&$APP.I("",a)?a:null},Yaa=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-organic-shape-fill:rgba(99,102,241,0.12);--x-organic-shape-stroke:transparent;--x-organic-shape-stroke-width:0;--x-organic-shape-opacity:1;--x-organic-shape-shadow:none;--x-organic-shape-animate-duration:8s;--x-organic-shape-animate-timing:ease-in-out;--x-organic-shape-animate-direction:normal;--x-organic-shape-animate-delay:0s;}@media (prefers-color-scheme:dark){:host{--x-organic-shape-fill:rgba(129,140,248,0.18);}}[part\x3dshape]{width:100%;height:100%;position:relative;overflow:hidden;background:var(--x-organic-shape-fill);outline:var(--x-organic-shape-stroke-width) solid var(--x-organic-shape-stroke);outline-offset:calc(-1 * var(--x-organic-shape-stroke-width));opacity:var(--x-organic-shape-opacity);filter:var(--x-organic-shape-shadow);display:flex;align-items:center;justify-content:center;transition:clip-path 0.3s ease,opacity 0.3s ease;}@keyframes x-organic-shape-morph{0%,100%{clip-path:var(--x-organic-shape-clip);}50%{clip-path:var(--x-organic-shape-clip-alt);}}@keyframes x-organic-shape-pulse{0%,100%{transform:scale(1);}50%{transform:scale(1.06);}}@keyframes x-organic-shape-float{0%,100%{transform:translateY(0);}50%{transform:translateY(-6%);}}@keyframes x-organic-shape-spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}:host([data-animation\x3dmorph]) [part\x3dshape]{animation:x-organic-shape-morph var(--x-organic-shape-animate-duration) var(--x-organic-shape-animate-timing) var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}:host([data-animation\x3dpulse]) [part\x3dshape]{animation:x-organic-shape-pulse var(--x-organic-shape-animate-duration) var(--x-organic-shape-animate-timing) var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}:host([data-animation\x3dfloat]) [part\x3dshape]{animation:x-organic-shape-float var(--x-organic-shape-animate-duration) var(--x-organic-shape-animate-timing) var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}:host([data-animation\x3dspin]) [part\x3dshape]{animation:x-organic-shape-spin var(--x-organic-shape-animate-duration) linear var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}@media (prefers-reduced-motion:reduce){:host([data-animation]) [part\x3dshape]{animation:none;}}";
|
|
3
|
+
d.setAttribute("part","shape");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xOrganicShapeBase=d;a.__xOrganicShapeSlot=e;a.__xOrganicShapeInit=!0},gX=function(a,b){if($APP.n($APP.n(b)?b.assignedNodes().length>0:null))return $APP.T(a,"role"),$APP.T(a,"aria-hidden");$APP.S(a,"role","presentation");return $APP.S(a,"aria-hidden","true")},kX=function(a){var b=new $APP.O(null,6,[$APP.mo,a.getAttribute("shape"),$APP.lp,a.getAttribute("path"),$APP.ml,a.getAttribute("animation"),$APP.Hn,a.getAttribute("ratio"),
|
|
4
|
+
$APP.nl,a.getAttribute("width"),$APP.ol,a.getAttribute("height")],null);var c=$APP.G(b),d=$APP.C(c,$APP.mo),e=$APP.C(c,$APP.lp),f=$APP.C(c,$APP.ml),h=$APP.C(c,$APP.Hn);b=$APP.C(c,$APP.nl);c=$APP.C(c,$APP.ol);e=typeof e==="string"&&$APP.I("",e.trim())?e.trim():null;d=eX(d);var l=typeof f==="string"&&$APP.$c(Zaa,f)?f:"none";f=e!=null?e:$APP.Be(hX,new $APP.M(null,2,5,$APP.N,[eX(d),iX],null));var m=e==null?$APP.Be(hX,new $APP.M(null,2,5,$APP.N,[eX(d),jX],null)):null;l=$APP.A.j(l,"morph")&&m==null?"none":
|
|
5
|
+
l;h=typeof h==="string"&&$APP.I("",h.trim())?h.trim():"1/1";b=new $APP.O(null,8,[$APP.mo,d,$APP.lp,e,iX,f,jX,m,$APP.ml,l,$APP.Hn,h,$APP.nl,fX(b),$APP.ol,fX(c)],null);f=$APP.G(b);b=$APP.C(f,iX);h=$APP.C(f,jX);c=$APP.C(f,$APP.ml);e=$APP.C(f,$APP.Hn);d=$APP.C(f,$APP.nl);f=$APP.C(f,$APP.ol);m=$APP.k(a,"__xOrganicShapeBase");l=$APP.k(a,"__xOrganicShapeSlot");m.style.setProperty("--x-organic-shape-clip",b);$APP.n(h)?m.style.setProperty("--x-organic-shape-clip-alt",h):m.style.removeProperty("--x-organic-shape-clip-alt");
|
|
6
|
+
m.style.setProperty("clip-path",b);m.style.setProperty("aspect-ratio",e);$APP.n(d)?m.style.setProperty("width",d):m.style.removeProperty("width");$APP.n(f)?m.style.setProperty("height",f):m.style.removeProperty("height");$APP.I(c,"none")?$APP.S(a,"data-animation",c):$APP.T(a,"data-animation");gX(a,l)},$aa=function(a){function b(){return gX(a,c)}$APP.n($APP.k(a,"__xOrganicShapeInit"))||Yaa(a);var c=$APP.k(a,"__xOrganicShapeSlot");a.__xOrganicShapeSlotHandler=b;c.addEventListener("slotchange",b);kX(a);
|
|
7
|
+
return null},aba=function(a,b,c,d){$APP.I(c,d)&&$APP.n($APP.k(a,"__xOrganicShapeInit"))&&kX(a);return null},bba=function(a){Object.defineProperty(a,"shape",{get:function(){var b=this.getAttribute("shape");return $APP.n(b)?b:"blob-1"},set:function(b){return typeof b==="string"&&$APP.I("",b)?this.setAttribute("shape",b):this.removeAttribute("shape")},enumerable:!0,configurable:!0});Object.defineProperty(a,"path",{get:function(){return this.getAttribute("path")},set:function(b){return typeof b==="string"&&
|
|
8
|
+
$APP.I("",b)?this.setAttribute("path",b):this.removeAttribute("path")},enumerable:!0,configurable:!0});Object.defineProperty(a,"animation",{get:function(){var b=this.getAttribute("animation");return $APP.n(b)?b:"none"},set:function(b){return typeof b==="string"&&$APP.I("",b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"ratio",{get:function(){var b=this.getAttribute("ratio");return $APP.n(b)?b:"1/1"},set:function(b){return typeof b===
|
|
9
|
+
"string"&&$APP.I("",b)?this.setAttribute("ratio",b):this.removeAttribute("ratio")},enumerable:!0,configurable:!0});Object.defineProperty(a,"width",{get:function(){var b=this.getAttribute("width");return $APP.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.I("",b)?this.setAttribute("width",b):this.removeAttribute("width")},enumerable:!0,configurable:!0});return Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.n(b)?b:""},set:function(b){return typeof b===
|
|
10
|
+
"string"&&$APP.I("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,configurable:!0})},lX=function(){return $APP.Ah("x-organic-shape",new $APP.O(null,4,[$APP.qh,cba,$APP.oh,$aa,$APP.kh,aba,$APP.ph,bba],null))},iX=new $APP.F(null,"clip","clip",830998499),jX=new $APP.F(null,"clip-alt","clip-alt",-684562835);var cba="shape path animation ratio width height".split(" "),Zaa=new $APP.pg(null,new $APP.O(null,5,["float",null,"none",null,"pulse",null,"spin",null,"morph",null],null),null),Xaa=new $APP.pg(null,new $APP.O(null,8,["cloud",null,"blob-3",null,"leaf",null,"pebble",null,"blob-1",null,"blob-2",null,"wave",null,"droplet",null],null),null),hX=new $APP.O(null,8,["blob-1",new $APP.O(null,2,[iX,"polygon(30% 0%, 70% 0%, 100% 30%, 95% 70%, 70% 100%, 30% 95%, 0% 70%, 5% 30%)",jX,"polygon(25% 5%, 75% 0%, 95% 25%, 100% 65%, 75% 95%, 25% 100%, 0% 65%, 5% 25%)"],
|
|
11
|
+
null),"blob-2",new $APP.O(null,2,[iX,"polygon(50% 0%, 80% 10%, 100% 40%, 95% 75%, 70% 100%, 30% 100%, 5% 75%, 0% 40%, 20% 10%)",jX,"polygon(50% 5%, 85% 15%, 100% 45%, 90% 80%, 65% 95%, 35% 95%, 10% 80%, 0% 45%, 15% 15%)"],null),"blob-3",new $APP.O(null,2,[iX,"polygon(20% 0%, 80% 0%, 100% 20%, 100% 50%, 90% 80%, 70% 100%, 30% 100%, 10% 80%, 0% 50%, 0% 20%)",jX,"polygon(25% 5%, 75% 5%, 95% 25%, 100% 55%, 85% 85%, 65% 95%, 35% 95%, 15% 85%, 0% 55%, 5% 25%)"],null),"pebble",new $APP.O(null,2,[iX,"polygon(50% 2%, 78% 8%, 96% 30%, 98% 60%, 85% 88%, 55% 98%, 25% 92%, 4% 65%, 2% 35%, 22% 8%)",
|
|
12
|
+
jX,"polygon(50% 5%, 75% 12%, 93% 32%, 96% 58%, 82% 85%, 52% 96%, 28% 90%, 8% 62%, 5% 38%, 25% 12%)"],null),"leaf",new $APP.O(null,2,[iX,"polygon(50% 0%, 80% 15%, 98% 45%, 90% 75%, 65% 98%, 50% 100%, 35% 98%, 10% 75%, 2% 45%, 20% 15%)",jX,"polygon(50% 3%, 78% 18%, 95% 42%, 88% 72%, 62% 95%, 50% 97%, 38% 95%, 12% 72%, 5% 42%, 22% 18%)"],null),"droplet",new $APP.O(null,2,[iX,"polygon(50% 0%, 72% 20%, 90% 50%, 95% 72%, 80% 92%, 50% 100%, 20% 92%, 5% 72%, 10% 50%, 28% 20%)",jX,"polygon(50% 5%, 70% 22%, 88% 48%, 92% 70%, 78% 90%, 50% 97%, 22% 90%, 8% 70%, 12% 48%, 30% 22%)"],
|
|
13
|
+
null),"cloud",new $APP.O(null,2,[iX,"polygon(10% 60%, 0% 45%, 5% 30%, 18% 20%, 32% 15%, 45% 8%, 58% 12%, 72% 8%, 85% 18%, 95% 32%, 100% 50%, 95% 65%, 80% 75%, 55% 80%, 30% 78%, 15% 72%)",jX,"polygon(12% 58%, 2% 43%, 8% 28%, 20% 18%, 35% 12%, 48% 10%, 60% 14%, 75% 10%, 88% 20%, 97% 35%, 98% 52%, 92% 68%, 78% 78%, 52% 82%, 28% 80%, 13% 70%)"],null),"wave",new $APP.O(null,2,[iX,"polygon(0% 35%, 15% 20%, 30% 30%, 50% 15%, 70% 28%, 85% 18%, 100% 30%, 100% 75%, 85% 85%, 70% 72%, 50% 85%, 30% 75%, 15% 82%, 0% 70%)",
|
|
14
|
+
jX,"polygon(0% 30%, 15% 25%, 30% 35%, 50% 20%, 70% 32%, 85% 22%, 100% 35%, 100% 70%, 85% 80%, 70% 68%, 50% 80%, 30% 70%, 15% 78%, 0% 65%)"],null)],null);$APP.ha("baredom.exports.x_organic_shape.init",lX);export const init=lX;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// x-otp-input.d.ts — auto-generated by generate_types.bb, do not edit
|
|
2
|
+
|
|
3
|
+
export function init(): void;
|
|
4
|
+
|
|
5
|
+
export interface XOtpInputEventMap {
|
|
6
|
+
"x-otp-input-input": CustomEvent<{ name: string; value: string; complete: boolean }>;
|
|
7
|
+
"x-otp-input-change": CustomEvent<{ name: string; value: string; complete: boolean }>;
|
|
8
|
+
"x-otp-input-complete": CustomEvent<{ name: string; value: string }>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface XOtpInput extends HTMLElement {
|
|
12
|
+
mask: boolean;
|
|
13
|
+
placeholder: string;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
name: string;
|
|
16
|
+
value: string;
|
|
17
|
+
readonly: boolean;
|
|
18
|
+
type: string;
|
|
19
|
+
label: string;
|
|
20
|
+
autofocus: boolean;
|
|
21
|
+
length: number;
|
|
22
|
+
error: string;
|
|
23
|
+
required: boolean;
|
|
24
|
+
focus(): void;
|
|
25
|
+
clear(): void;
|
|
26
|
+
checkValidity(): boolean;
|
|
27
|
+
reportValidity(): boolean;
|
|
28
|
+
|
|
29
|
+
addEventListener<K extends keyof XOtpInputEventMap>(
|
|
30
|
+
type: K,
|
|
31
|
+
listener: (this: XOtpInput, ev: XOtpInputEventMap[K]) => any,
|
|
32
|
+
options?: boolean | AddEventListenerOptions
|
|
33
|
+
): void;
|
|
34
|
+
addEventListener(
|
|
35
|
+
type: string,
|
|
36
|
+
listener: EventListenerOrEventListenerObject,
|
|
37
|
+
options?: boolean | AddEventListenerOptions
|
|
38
|
+
): void;
|
|
39
|
+
removeEventListener<K extends keyof XOtpInputEventMap>(
|
|
40
|
+
type: K,
|
|
41
|
+
listener: (this: XOtpInput, ev: XOtpInputEventMap[K]) => any,
|
|
42
|
+
options?: boolean | EventListenerOptions
|
|
43
|
+
): void;
|
|
44
|
+
removeEventListener(
|
|
45
|
+
type: string,
|
|
46
|
+
listener: EventListenerOrEventListenerObject,
|
|
47
|
+
options?: boolean | EventListenerOptions
|
|
48
|
+
): void;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare global {
|
|
52
|
+
interface HTMLElementTagNameMap {
|
|
53
|
+
"x-otp-input": XOtpInput;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
+
var VU=function(a,b){return typeof b==="string"?$APP.A.j(a,"numeric")?$APP.bi(b,/[^0-9]/,""):$APP.A.j(a,"alpha")?$APP.bi(b,/[^A-Za-z]/,""):$APP.A.j(a,"alphanumeric")?$APP.bi(b,/[^A-Za-z0-9]/,""):"":""},WU=function(a,b){a=$APP.n(a)?a:"";return $APP.y(a)>b?a.substring(0,b):a},XU=function(a,b){return $APP.A.j($APP.y(a),b)},YU=function(a){a=$APP.k(a,"__xOtpInputRefs");return $APP.n(a)?$APP.k(a,"root").querySelectorAll("input"):null},ZU=function(a){a=YU(a);var b=[];if($APP.n(a))for(var c=a.length,d=0;;)if(d<
|
|
3
|
+
c){var e=a[d].value;b.push($APP.n(e)?e:"");d+=1}else break;return b.join("")},$U=function(a,b){a=YU(a);return $APP.n(a)&&b>=0&&b<a.length?(b=a[b],b.focus(),$APP.n(b.select)?b.select():null):null},aV=function(a){var b=YU(a);if($APP.n(b)){var c=b.length;a:{for(var d=0;;){if(d>=c){b=c-1;break a}if($APP.A.j("",b[d].value)){b=d;break a}d+=1}b=void 0}return $U(a,b)}return null},bV=function(a,b,c){var d=function(){var h=YU(a);h=$APP.n(h)?h.length>0?h[0]:null:null;return $APP.n(h)?h:a}(),e=$APP.Eh.i(c),f=
|
|
4
|
+
$APP.no.i(c);$APP.n($APP.np.i(c))?b.setValidity({customError:!0},$APP.Nm.i(c),d):$APP.n(function(){var h=$APP.Ci.i(c);return $APP.n(h)?$APP.A.j("",e):h}())?b.setValidity({valueMissing:!0},"Please fill in this field.",d):$APP.n(function(){var h=$APP.Ci.i(c);return $APP.n(h)?$APP.y(e)<f:h}())?b.setValidity({tooShort:!0},"Please enter all "+$APP.V.i(f)+" characters.",d):b.setValidity({},"",d)},hV=function(a){var b=$APP.Wf([cV,$APP.ui,$APP.ri,$APP.Sm,$APP.vi,$APP.yo,$APP.wi,$APP.xj,$APP.si,$APP.Hm,dV,
|
|
5
|
+
$APP.ti],[a.hasAttribute("autofocus"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.hasAttribute("disabled"),a.getAttribute("length"),a.hasAttribute("required"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("type"),a.hasAttribute("mask"),a.getAttribute("placeholder")]);var c=$APP.G(b),d=$APP.C(c,$APP.ti),e=$APP.C(c,dV);b=$APP.C(c,cV);var f=$APP.C(c,$APP.ui),h=$APP.C(c,$APP.ri),l=$APP.C(c,$APP.Sm),m=$APP.C(c,$APP.vi),q=$APP.C(c,$APP.yo),r=$APP.C(c,$APP.wi),
|
|
6
|
+
v=$APP.C(c,$APP.xj),x=$APP.C(c,$APP.si);c=$APP.C(c,$APP.Hm);typeof c==="string"?(c=c.trim().toLowerCase(),c=$APP.$c(eV,c)?c:"numeric"):c="numeric";if(typeof q==="string")if(q=q.trim(),$APP.A.j("",q))q=6;else{q=parseInt(q,10);var z=isNaN(q);q=$APP.n($APP.n(z)?z:typeof q!=="number")?6:q<1?1:q>12?12:q}else q=6;z=q;x=WU(VU(c,x),z);z=[$APP.Ci,fV,$APP.Cj,$APP.Ai,$APP.zi,$APP.Eh,$APP.Q,$APP.np,gV,$APP.Z,$APP.no,$APP.Nm,$APP.Cp,$APP.Bi];r=$APP.D(r);e=$APP.D(e);v=$APP.D(v);d=typeof d==="string"&&$APP.y(d)>
|
|
7
|
+
0?d.substring(0,1):"";b=$APP.Wf(z,[r,e,v,d,$APP.n(h)?h:"",x,c,l!=null&&$APP.I(l,""),$APP.D(b),$APP.n(f)?f:"",q,$APP.n(l)?l:"",XU(x,q),$APP.D(m)]);if($APP.I($APP.k(a,"__xOtpInputModel"),b))if(f=$APP.k(a,"__xOtpInputRefs"),$APP.n(f)){f=$APP.k(f,"root");h=$APP.k(a,"__xOtpInputModel");if(h==null||$APP.I($APP.no.i(h),$APP.no.i(b))||$APP.I($APP.Q.i(h),$APP.Q.i(b))||$APP.I(fV.i(h),fV.i(b)))for(h=$APP.no.i(b),l=$APP.Q.i(b),m=fV.i(b),f.innerHTML="",d=0;;)if(d<h){v=f;e=v.appendChild;z=d;q=h;x=l;var B=d===0;
|
|
8
|
+
c=m;r=document.createElement("input");$APP.S(r,"part","slot");$APP.S(r,"data-index",""+$APP.V.i(z));$APP.S(r,"maxlength","1");$APP.S(r,"inputmode",$APP.A.j(x,"numeric")?"numeric":"text");$APP.S(r,"autocomplete",$APP.n(B)?"one-time-code":"off");$APP.S(r,"autocapitalize","off");$APP.S(r,"autocorrect","off");x=""+$APP.V.i($APP.A.j(x,"numeric")?"Digit ":"Character ")+$APP.V.i(z+1)+" of "+$APP.V.i(q);$APP.S(r,"aria-label",x);r.type=$APP.n(c)?"password":"text";r.spellcheck=!1;e.call(v,r);d+=1}else break;
|
|
9
|
+
f=YU(a);if($APP.n(f))for(h=f.length,l=$APP.Bi.i(b),m=$APP.Cj.i(b),d=$APP.Ci.i(b),v=$APP.np.i(b),e=$APP.Ai.i(b),c=0;;)if(c<h)r=f[c],r.disabled=l,r.readOnly=m,r.placeholder=e,$APP.S(r,"aria-invalid",$APP.n(v)?"true":"false"),x=c===0,$APP.n(x?d:x)?$APP.S(r,"aria-required","true"):$APP.T(r,"aria-required"),c+=1;else break;f=$APP.k(a,"__xOtpInputRefs");$APP.n(f)&&(f=$APP.k(f,"root"),h=$APP.Z.i(b),typeof h==="string"&&$APP.I("",h)?$APP.S(f,"aria-label",h):$APP.T(f,"aria-label"));f=$APP.Eh.i(b);h=YU(a);
|
|
10
|
+
if($APP.n(h))for(l=h.length,m=0;;)if(m<l)d=h[m],v=m<$APP.y(f)?f.charAt(m):"",$APP.I(d.value,v)&&(d.value=v),m+=1;else break;f=$APP.k(a,"__xOtpInputInternals");$APP.n(f)&&(f.setFormValue($APP.Eh.i(b)),bV(a,f,b));$APP.R(a,"__xOtpInputModel",b);b=$APP.Eh.i(b);f=a.getAttribute("value");a=$APP.I($APP.n(f)?f:"",b)?$APP.S(a,"value",b):null}else a=null;else a=null;return a},iV=function(a){a=a.target;return $APP.n(a)?$APP.A.j("INPUT",a.tagName):a},jV=function(a){return parseInt(a.getAttribute("data-index"),
|
|
11
|
+
10)},kV=function(a){a=a.getAttribute("name");return $APP.n(a)?a:""},lV=function(a,b,c){$APP.Nh(a,"x-otp-input-input",{name:kV(a),value:b,complete:XU(b,c)})},mV=function(a,b,c,d){b=XU(b,d);d=XU(c,d);return!b&&d?$APP.Nh(a,"x-otp-input-complete",{name:kV(a),value:c}):null},nV=function(a,b){var c=a.getAttribute("value");c=$APP.n(c)?c:"";$APP.I(c,b)&&$APP.S(a,"value",b);return c},oV=function(a,b,c,d){var e=$APP.Gl.j(0,d-b);c=c.substring(0,e);e=a.getAttribute("value");var f=$APP.n(e)?e:"";e=f.substring(0,
|
|
12
|
+
$APP.Hl.j(b,$APP.y(f)));var h=b+$APP.y(c);f=h<$APP.y(f)?f.substring(h):"";e=WU(""+$APP.V.i(e)+$APP.V.i(c)+$APP.V.i(f),d);f=nV(a,e);b=$APP.Hl.j(d-1,b+$APP.y(c));$U(a,b);return $APP.I(f,e)?(lV(a,e,d),mV(a,f,e,d)):null},pV=function(a,b){if($APP.n(iV(b))){var c=b.target,d=b.key,e=jV(c),f=c.value;c=$APP.no.i($APP.k(a,"__xOtpInputModel"));if($APP.A.j(d,"Backspace")){a:{if($APP.A.j("",f)&&(b.preventDefault(),e>0)){$U(a,e-1);b=YU(a);$APP.n(b)&&(b[e-1].value="");e=ZU(a);b=nV(a,e);lV(a,e,c);a=mV(a,b,e,c);break a}a=
|
|
13
|
+
null}return a}if($APP.A.j(d,"ArrowLeft"))return e>0?(b.preventDefault(),$U(a,e-1)):null;if($APP.A.j(d,"ArrowRight"))return e<c-1?(b.preventDefault(),$U(a,e+1)):null;if($APP.A.j(d,"Home"))return b.preventDefault(),$U(a,0);if($APP.A.j(d,"End"))return b.preventDefault(),$U(a,c-1)}return null},qV=function(a){return setTimeout(function(){if($APP.I(document.activeElement,a)){var b=$APP.k(a,"__xOtpInputFocusValue");var c=a.getAttribute("value");c=$APP.n(c)?c:"";var d=$APP.no.i($APP.k(a,"__xOtpInputModel"));
|
|
14
|
+
typeof b==="string"&&$APP.I(b,c)&&$APP.Nh(a,"x-otp-input-change",{name:kV(a),value:c,complete:XU(c,d)});a.__xOtpInputFocusValue=null;b=void 0}else b=null;return b},0)},rV=function(a){var b=$APP.k(a,"__xOtpInputRefs");if($APP.n(b)){b=$APP.k(b,"root");var c=function(l){if($APP.n(iV(l))){var m=l.target,q=$APP.k(a,"__xOtpInputModel"),r=$APP.no.i(q),v=$APP.Q.i(q);q=jV(m);v=VU(v,m.value);if(v.length>1)l=oV(a,q,v,r);else{v=$APP.y(v)>0?v.substring(0,1):"";$APP.I(m.value,v)&&(m.value=v);m=ZU(a);var x=nV(a,
|
|
15
|
+
m);$APP.I(x,m)&&(lV(a,m,r),mV(a,x,m,r));l=$APP.y(v)>0&&$APP.p(l.isComposing)&&q<r-1?$U(a,q+1):null}}else l=null;return l},d=function(l){return pV(a,l)},e=function(l){if($APP.n(iV(l))){l.preventDefault();var m=jV(l.target);l=l.clipboardData;var q=$APP.n(l)?l.getData("text/plain"):null,r=$APP.k(a,"__xOtpInputModel");l=$APP.no.i(r);r=$APP.Q.i(r);q=VU(r,$APP.n(q)?q:"");m=oV(a,m,q,l)}else m=null;return m},f=function(){if($APP.k(a,"__xOtpInputFocusValue")==null){var l=a.getAttribute("value");a.__xOtpInputFocusValue=
|
|
16
|
+
$APP.n(l)?l:"";l=void 0}else l=null;return l},h=function(){return qV(a)};b.addEventListener("input",c);b.addEventListener("keydown",d);b.addEventListener("paste",e);b.addEventListener("focusin",f);b.addEventListener("focusout",h);$APP.ja(a,"__xOtpInputHandlers",{input:c,keydown:d,paste:e,focusin:f,focusout:h})}},sV=function(a){var b=$APP.k(a,"__xOtpInputRefs");if($APP.n(b)){var c=$APP.k(a,"__xOtpInputHandlers");if($APP.n(c)){b=$APP.k(b,"root");b.removeEventListener("input",$APP.k(c,"input"));b.removeEventListener("keydown",
|
|
17
|
+
$APP.k(c,"keydown"));b.removeEventListener("paste",$APP.k(c,"paste"));b.removeEventListener("focusin",$APP.k(c,"focusin"));b.removeEventListener("focusout",$APP.k(c,"focusout"));a.__xOtpInputHandlers=null;return}}return null},tV=function(a,b){return $APP.Ih(a,"disabled",$APP.D(b))},uV=function(a){return $APP.T(a,"value")},vV=function(a){if(!$APP.n($APP.k(a,"__xOtpInputRefs"))){if(!$APP.n(a.shadowRoot)){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div");
|
|
18
|
+
c.textContent=":host{display:inline-block;color-scheme:light dark;--x-otp-input-slot-size:2.75rem;--x-otp-input-gap:var(--x-space-sm,0.5rem);--x-otp-input-bg:var(--x-color-surface,#ffffff);--x-otp-input-color:var(--x-color-text,#111827);--x-otp-input-border:1px solid var(--x-color-border,#d1d5db);--x-otp-input-border-radius:var(--x-radius-md,6px);--x-otp-input-focus-ring-color:var(--x-color-primary,#2563eb);--x-otp-input-error-color:var(--x-color-danger,#dc2626);--x-otp-input-disabled-opacity:var(--x-opacity-disabled,0.45);--x-otp-input-font-family:var(--x-font-family-mono,ui-monospace,SFMono-Regular,Menlo,monospace);--x-otp-input-font-size:1.25rem;--x-otp-input-font-weight:var(--x-font-weight-semibold,600);}@media (prefers-color-scheme:dark){:host{--x-otp-input-bg:var(--x-color-surface,#1f2937);--x-otp-input-color:var(--x-color-text,#f9fafb);--x-otp-input-border:1px solid var(--x-color-border,#4b5563);}}[part\x3droot]{display:flex;flex-wrap:wrap;align-items:center;gap:var(--x-otp-input-gap);max-width:calc(100vw - 2rem);}[part\x3dslot]{width:var(--x-otp-input-slot-size);height:var(--x-otp-input-slot-size);text-align:center;font-family:var(--x-otp-input-font-family);font-size:var(--x-otp-input-font-size);font-weight:var(--x-otp-input-font-weight);background:var(--x-otp-input-bg);color:var(--x-otp-input-color);border:var(--x-otp-input-border);border-radius:var(--x-otp-input-border-radius);outline:none;padding:0;caret-color:var(--x-otp-input-focus-ring-color);transition:border-color 120ms ease,box-shadow 120ms ease;box-sizing:border-box;}[part\x3dslot]:focus{border-color:var(--x-otp-input-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-otp-input-focus-ring-color) 25%,transparent);}:host([error]) [part\x3dslot],:host([error]) [part\x3dslot]:focus{border-color:var(--x-otp-input-error-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-otp-input-error-color) 20%,transparent);}:host([disabled]) [part\x3droot]{opacity:var(--x-otp-input-disabled-opacity);cursor:not-allowed;}:host([disabled]) [part\x3dslot]{cursor:not-allowed;}@media (pointer:coarse){[part\x3dslot]{min-width:44px;min-height:44px;}}@media (prefers-reduced-motion:reduce){[part\x3dslot]{transition:none;}}";
|
|
19
|
+
$APP.S(d,"part","root");$APP.S(d,"role","group");b.appendChild(c);b.appendChild(d);a.__xOtpInputRefs={root:d}}$APP.n(a.attachInternals)&&(b=a.attachInternals(),a.__xOtpInputInternals=b)}sV(a);rV(a);hV(a);return $APP.n(a.hasAttribute("autofocus"))?aV(a):null},wV=function(a){return sV(a)},xV=function(a){return hV(a)},zV=function(a){$APP.Zh(a,yV);a.focus=function(){return aV(this)};a.clear=function(){$APP.T(this,"value");return $U(this,0)};a.checkValidity=function(){var b=$APP.k(this,"__xOtpInputInternals");
|
|
20
|
+
return $APP.n(b)?b.checkValidity():!0};return a.reportValidity=function(){var b=$APP.k(this,"__xOtpInputInternals");return $APP.n(b)?b.reportValidity():!0}},BV=function(){return $APP.Ah("x-otp-input",new $APP.O(null,8,[$APP.qh,AV,$APP.oh,vV,$APP.lh,wV,$APP.kh,xV,$APP.mh,!0,$APP.jh,tV,$APP.ih,uV,$APP.ph,zV],null))},gV=new $APP.F(null,"autofocus?","autofocus?",1363866447),fV=new $APP.F(null,"mask?","mask?",1368043650),cV=new $APP.F(null,"autofocus-present?","autofocus-present?",-674859967),dV=new $APP.F(null,
|
|
21
|
+
"mask-present?","mask-present?",-1769963297),CV=new $APP.F(null,"autofocus","autofocus",-712814732),DV=new $APP.F(null,"mask","mask",-585748447);var AV="name value length type mask disabled readonly required autofocus label placeholder error".split(" "),eV=$APP.rg(["alphanumeric","alpha","numeric"]),yV=$APP.Wf([DV,$APP.Ai,$APP.ck,$APP.zi,$APP.Eh,$APP.Wh,$APP.Q,$APP.Z,CV,$APP.no,$APP.Nm,$APP.Ho],[new $APP.O(null,2,[$APP.Q,$APP.Xh,$APP.W,"mask"],null),new $APP.O(null,3,[$APP.Q,$APP.X,$APP.W,"placeholder",$APP.Yh,""],null),new $APP.O(null,2,[$APP.Q,$APP.Xh,$APP.W,"disabled"],null),new $APP.O(null,3,[$APP.Q,$APP.X,$APP.W,"name",$APP.Yh,""],null),
|
|
22
|
+
new $APP.O(null,3,[$APP.Q,$APP.X,$APP.W,"value",$APP.Yh,""],null),new $APP.O(null,2,[$APP.Q,$APP.Xh,$APP.W,"readonly"],null),new $APP.O(null,3,[$APP.Q,$APP.X,$APP.W,"type",$APP.Yh,"numeric"],null),new $APP.O(null,3,[$APP.Q,$APP.X,$APP.W,"label",$APP.Yh,""],null),new $APP.O(null,2,[$APP.Q,$APP.Xh,$APP.W,"autofocus"],null),new $APP.O(null,3,[$APP.Q,$APP.Y,$APP.W,"length",$APP.Yh,6],null),new $APP.O(null,3,[$APP.Q,$APP.X,$APP.W,"error",$APP.Yh,""],null),new $APP.O(null,2,[$APP.Q,$APP.Xh,$APP.W,"required"],
|
|
23
|
+
null)]);$APP.ce(["x-otp-input-input",new $APP.O(null,2,[$APP.Aq,!1,$APP.U,new $APP.O(null,3,[$APP.zi,$APP.X,$APP.Eh,$APP.X,$APP.$q,$APP.Xh],null)],null),"x-otp-input-change",new $APP.O(null,2,[$APP.Aq,!1,$APP.U,new $APP.O(null,3,[$APP.zi,$APP.X,$APP.Eh,$APP.X,$APP.$q,$APP.Xh],null)],null),"x-otp-input-complete",new $APP.O(null,2,[$APP.Aq,!1,$APP.U,new $APP.O(null,2,[$APP.zi,$APP.X,$APP.Eh,$APP.X],null)],null)]);$APP.ha("baredom.exports.x_otp_input.init",BV);export const init=BV;
|
package/dist/x-pagination.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
d.setAttribute("part","nav");e.setAttribute("part","list");e.appendChild(
|
|
6
|
-
"button button-page");e.setAttribute("aria-label","Page "+$APP.
|
|
7
|
-
"…";a.appendChild(b);return a},
|
|
8
|
-
parseInt(e,10);var l=isFinite(e);e=$APP.n($APP.n(l)?e>=0:l)?e:1}else e=1;typeof f==="string"?(f=parseInt(f,10),l=isFinite(f),l=$APP.n($APP.n(l)?f>=0:l)?f:1):l=1;f=e;e=l;h=typeof h==="string"?h.trim().toLowerCase():null;h=$APP
|
|
9
|
-
r=$APP.C(m,
|
|
10
|
-
[$APP.
|
|
11
|
-
c.appendChild(
|
|
12
|
-
for(var c=b.length,d=0;;)if(d<c){var e=b[d];if($APP.
|
|
13
|
-
d)}var c=
|
|
14
|
-
this.removeAttribute(c)},enumerable:!0,configurable:!0})},
|
|
15
|
-
5,[$APP.
|
|
16
|
-
940258334),
|
|
2
|
+
var kZ=function(a){if(typeof a==="string"){a=parseInt(a,10);var b=isFinite(a);return $APP.n($APP.n(b)?a>0:b)?a:1}return 1},pZ=function(a){var b=$APP.k(a,"__xPaginationRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("nav"),e=document.createElement("ol");var f=document.createElement("li");var h=document.createElement("button"),l=document.createElement("slot");f.setAttribute("part","item item-prev");h.setAttribute("part","button button-prev");
|
|
3
|
+
h.setAttribute("aria-label","Previous page");l.setAttribute("name","prev");l.textContent="Prev";h.appendChild(l);f.appendChild(h);f=new $APP.O(null,2,[lZ,f,mZ,h],null);h=document.createElement("li");l=document.createElement("button");var m=document.createElement("slot");h.setAttribute("part","item item-next");l.setAttribute("part","button button-next");l.setAttribute("aria-label","Next page");m.setAttribute("name","next");m.textContent="Next";l.appendChild(m);h.appendChild(l);h=new $APP.O(null,2,
|
|
4
|
+
[lZ,h,mZ,l],null);c.textContent=":host{display:block;color-scheme:light dark;--x-pagination-gap:0.25rem;--x-pagination-button-size:2rem;--x-pagination-button-radius:var(--x-radius-sm,0.375rem);--x-pagination-button-bg:transparent;--x-pagination-button-color:rgba(0,0,0,0.75);--x-pagination-button-border:1px solid rgba(0,0,0,0.15);--x-pagination-button-hover-bg:rgba(0,0,0,0.06);--x-pagination-button-hover-color:rgba(0,0,0,0.9);--x-pagination-current-bg:rgba(0,0,0,0.88);--x-pagination-current-color:#fff;--x-pagination-current-border:1px solid transparent;--x-pagination-disabled-opacity:0.4;--x-pagination-font-size:var(--x-font-size-sm,0.875rem);--x-pagination-ellipsis-color:rgba(0,0,0,0.45);}@media (prefers-color-scheme:dark){:host{--x-pagination-button-color:rgba(255,255,255,0.75);--x-pagination-button-border:1px solid rgba(255,255,255,0.15);--x-pagination-button-hover-bg:rgba(255,255,255,0.08);--x-pagination-button-hover-color:rgba(255,255,255,0.95);--x-pagination-current-bg:rgba(255,255,255,0.90);--x-pagination-current-color:#000;--x-pagination-ellipsis-color:rgba(255,255,255,0.40);}}:host([data-size\x3d'sm']){--x-pagination-button-size:1.75rem;--x-pagination-font-size:0.75rem;}:host([data-size\x3d'lg']){--x-pagination-button-size:2.5rem;--x-pagination-font-size:1rem;}[part~\x3d'nav']{display:block;}[part~\x3d'list']{display:flex;flex-wrap:wrap;align-items:center;list-style:none;margin:0;padding:0;gap:var(--x-pagination-gap);}[part~\x3d'button']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);padding:0 0.5rem;border:var(--x-pagination-button-border);border-radius:var(--x-pagination-button-radius);background:var(--x-pagination-button-bg);color:var(--x-pagination-button-color);font:inherit;font-size:var(--x-pagination-font-size);cursor:pointer;user-select:none;box-sizing:border-box;transition:background 0.15s,color 0.15s;}[part~\x3d'button']:hover:not(:disabled){background:var(--x-pagination-button-hover-bg);color:var(--x-pagination-button-hover-color);}[part~\x3d'button'][data-current]{background:var(--x-pagination-current-bg);color:var(--x-pagination-current-color);border:var(--x-pagination-current-border);font-weight:600;cursor:default;}[part~\x3d'button']:disabled{opacity:var(--x-pagination-disabled-opacity);cursor:not-allowed;}[part~\x3d'ellipsis']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);color:var(--x-pagination-ellipsis-color);font-size:var(--x-pagination-font-size);user-select:none;}@media (prefers-reduced-motion:reduce){[part~\x3d'button']{transition:none !important;}}@media (pointer:coarse){[part~\x3d'button']{min-width:2.75rem;height:2.75rem;}}";
|
|
5
|
+
d.setAttribute("part","nav");e.setAttribute("part","list");e.appendChild(lZ.i(f));e.appendChild(lZ.i(h));d.appendChild(e);b.appendChild(c);b.appendChild(d);b=new $APP.O(null,6,[$APP.Km,d,$APP.pp,e,nZ,lZ.i(f),$APP.qn,mZ.i(f),oZ,lZ.i(h),$APP.km,mZ.i(h)],null);a.__xPaginationRefs=b;return $APP.k(a,"__xPaginationRefs")},qZ=function(a,b,c){var d=document.createElement("li"),e=document.createElement("button");d.setAttribute("part","item item-page");d.setAttribute("data-page",""+$APP.V.i(a));e.setAttribute("part",
|
|
6
|
+
"button button-page");e.setAttribute("aria-label","Page "+$APP.V.i(a));e.setAttribute("data-page",""+$APP.V.i(a));$APP.n(b)&&(e.setAttribute("aria-current","page"),e.setAttribute("data-current",""));$APP.n(c)&&e.setAttribute("disabled","");e.textContent=""+$APP.V.i(a);d.appendChild(e);return d},rZ=function(){var a=document.createElement("li"),b=document.createElement("span");a.setAttribute("part","item item-ellipsis");b.setAttribute("part","ellipsis");b.setAttribute("aria-hidden","true");b.textContent=
|
|
7
|
+
"…";a.appendChild(b);return a},AZ=function(a){a=new $APP.O(null,7,[sZ,a.getAttribute("page"),tZ,a.getAttribute("total-pages"),uZ,a.getAttribute("sibling-count"),vZ,a.getAttribute("boundary-count"),$APP.Vk,a.getAttribute("size"),$APP.vi,a.hasAttribute("disabled"),$APP.ui,a.getAttribute("label")],null);var b=$APP.G(a),c=$APP.C(b,sZ),d=$APP.C(b,tZ),e=$APP.C(b,uZ),f=$APP.C(b,vZ),h=$APP.C(b,$APP.Vk);a=$APP.C(b,$APP.vi);b=$APP.C(b,$APP.ui);d=kZ(d);c=$APP.Gl.j(1,$APP.Hl.j(kZ(c),d));if(typeof e==="string"){e=
|
|
8
|
+
parseInt(e,10);var l=isFinite(e);e=$APP.n($APP.n(l)?e>=0:l)?e:1}else e=1;typeof f==="string"?(f=parseInt(f,10),l=isFinite(f),l=$APP.n($APP.n(l)?f>=0:l)?f:1):l=1;f=e;e=l;h=typeof h==="string"?h.trim().toLowerCase():null;h=$APP.$c(hda,h)?h:"md";return new $APP.O(null,7,[wZ,c,xZ,d,yZ,f,zZ,e,$APP.ok,h,$APP.ck,$APP.D(a),$APP.Z,$APP.n(b)?b:"Pagination"],null)},DZ=function(a){var b=pZ(a),c=$APP.pp.i(b),d=$APP.Km.i(b),e=$APP.qn.i(b),f=$APP.km.i(b),h=nZ.i(b);b=oZ.i(b);var l=AZ(a),m=$APP.G(l),q=$APP.C(m,wZ),
|
|
9
|
+
r=$APP.C(m,xZ),v=$APP.C(m,yZ),x=$APP.C(m,zZ),z=$APP.C(m,$APP.ok);m=$APP.C(m,$APP.Z);a:if(r<=0)r=$APP.ye;else{var B=$APP.Hl.j(x,r);x=$APP.Gl.j(r-x- -1,1);var E=$APP.Gl.j(1,q-v);v=$APP.Hl.j(r,q+v);r=$APP.sf.j($APP.sf.j($APP.sf.j($APP.xg(),$APP.Eg(1,B+1)),$APP.Eg(x,r+1)),$APP.Eg(E,v+1));r=$APP.Qe(r);E=$APP.ye;for(v=0;;){if(v>=$APP.y(r)){r=E;break a}B=$APP.tc(r,v);var H=x=v>0?$APP.tc(r,v-1):null;x=$APP.n($APP.n(H)?B>x+1:H)?$APP.wd.j(E,new $APP.O(null,1,[$APP.Q,BZ],null)):E;B=$APP.wd.j(x,new $APP.O(null,
|
|
10
|
+
2,[$APP.Q,wZ,CZ,B],null));v+=1;E=B}r=void 0}d.setAttribute("aria-label",m);$APP.S(a,"data-size",z);d=$APP.G(l);a=$APP.C(d,wZ);d=$APP.C(d,$APP.ck);$APP.n($APP.n(d)?d:a<=1)?e.setAttribute("disabled",""):e.removeAttribute("disabled");d=$APP.G(l);e=$APP.C(d,wZ);a=$APP.C(d,xZ);d=$APP.C(d,$APP.ck);$APP.n($APP.n(d)?d:e>=a)?f.setAttribute("disabled",""):f.removeAttribute("disabled");c.innerHTML="";c.appendChild(h);f=$APP.t(r);h=null;for(a=e=0;;)if(a<e)d=h.F(null,a),$APP.A.j(BZ,$APP.Q.i(d))?c.appendChild(rZ()):
|
|
11
|
+
c.appendChild(qZ(CZ.i(d),$APP.A.j(CZ.i(d),q),$APP.ck.i(l))),a+=1;else if(f=$APP.t(f))h=f,$APP.Wc(h)?(f=$APP.Ab(h),a=$APP.Bb(h),h=f,e=$APP.y(f),f=a):(f=$APP.u(h),$APP.A.j(BZ,$APP.Q.i(f))?c.appendChild(rZ()):c.appendChild(qZ(CZ.i(f),$APP.A.j(CZ.i(f),q),$APP.ck.i(l))),f=$APP.w(h),h=null,e=0),a=0;else break;c.appendChild(b)},EZ=function(a,b){var c=AZ(a);c=wZ.i(c);return $APP.Ph(a,"page-change-request",{page:b,previousPage:c})?$APP.Nh(a,"page-change",{page:b}):null},ida=function(a,b){a:{b=b.composedPath();
|
|
12
|
+
for(var c=b.length,d=0;;)if(d<c){var e=b[d];if($APP.A.j("BUTTON",$APP.n(e)?e.tagName:null)){b=e;break a}d+=1}else{b=null;break a}b=void 0}if($APP.n($APP.n(b)?$APP.p(b.hasAttribute("disabled")):b)){d=$APP.k(a,"__xPaginationRefs");c=$APP.qn.i(d);d=$APP.km.i(d);e=b.getAttribute("data-page");if(b===c)return c=AZ(a),b=wZ.i(c),b>1?EZ(a,b-1):null;if(b===d)return c=AZ(a),b=wZ.i(c),c=xZ.i(c),b<c?EZ(a,b+1):null;if(e!=null)return b=parseInt(e,10),$APP.n(isFinite(b))?EZ(a,b):null}return null},jda=function(a){function b(d){return ida(a,
|
|
13
|
+
d)}var c=pZ(a);$APP.pp.i(c).addEventListener("click",b);$APP.ja(a,"__xPaginationHandlers",{click:b})},FZ=function(a){var b=$APP.k(a,"__xPaginationHandlers");if($APP.n(b)){var c=$APP.k(a,"__xPaginationRefs");$APP.n(c)&&(c=$APP.pp.i(c),b=$APP.k(b,"click"),$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",b))}a.__xPaginationHandlers=null},GZ=function(a,b,c){Object.defineProperty(a,b,{get:function(){return kZ(this.getAttribute(c))},set:function(d){return d!=null?this.setAttribute(c,""+$APP.V.i(d)):
|
|
14
|
+
this.removeAttribute(c)},enumerable:!0,configurable:!0})},kda=function(a){GZ(a,"page","page");GZ(a,"total-pages","total-pages");GZ(a,"sibling-count","sibling-count");GZ(a,"boundary-count","boundary-count");$APP.Th(a,"size","size","md");$APP.Sh(a,"disabled","disabled");return $APP.Th(a,"label","label","Pagination")},lda=function(a){pZ(a);FZ(a);jda(a);DZ(a);return null},mda=function(a){FZ(a);return null},nda=function(a,b,c,d){$APP.I(c,d)&&DZ(a);return null},HZ=function(){return $APP.Ah("x-pagination",
|
|
15
|
+
new $APP.O(null,5,[$APP.qh,oda,$APP.oh,lda,$APP.lh,mda,$APP.kh,nda,$APP.ph,kda],null))},tZ=new $APP.F(null,"total-pages-raw","total-pages-raw",430880208),zZ=new $APP.F(null,"boundary-count","boundary-count",1637925987),vZ=new $APP.F(null,"boundary-count-raw","boundary-count-raw",410083250),xZ=new $APP.F(null,"total-pages","total-pages",685894112),wZ=new $APP.F(null,"page","page",849072397),oZ=new $APP.F(null,"next-li","next-li",648524823),mZ=new $APP.F(null,"btn","btn",1978294651),nZ=new $APP.F(null,
|
|
16
|
+
"prev-li","prev-li",940258334),sZ=new $APP.F(null,"page-raw","page-raw",-1198808870),lZ=new $APP.F(null,"li","li",723558921),BZ=new $APP.F(null,"ellipsis","ellipsis",998505738),CZ=new $APP.F(null,"n","n",562130025),uZ=new $APP.F(null,"sibling-count-raw","sibling-count-raw",-620117200),yZ=new $APP.F(null,"sibling-count","sibling-count",1756034573);var oda="page total-pages sibling-count boundary-count size disabled label".split(" "),hda=new $APP.pg(null,new $APP.O(null,3,["md",null,"lg",null,"sm",null],null),null);$APP.ce(["page-change-request",new $APP.O(null,2,[$APP.Aq,!0,$APP.U,new $APP.O(null,2,[wZ,$APP.Y,new $APP.F(null,"previousPage","previousPage",1452478108),$APP.Y],null)],null),"page-change",new $APP.O(null,1,[$APP.U,new $APP.O(null,1,[wZ,$APP.Y],null)],null)]);$APP.ha("baredom.exports.x_pagination.init",HZ);export const init=HZ;
|