@vanelsas/baredom 3.0.0 → 3.2.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/custom-elements.json +3673 -2681
- package/dist/baredom.d.ts +91 -86
- package/dist/base.js +595 -541
- package/dist/integrity.json +108 -103
- package/dist/x-alert.js +17 -16
- package/dist/x-avatar-group.js +9 -9
- package/dist/x-avatar.js +14 -14
- 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 +14 -13
- package/dist/x-button.js +1 -1
- package/dist/x-calendar.d.ts +55 -0
- package/dist/x-calendar.js +40 -0
- package/dist/x-cancel-dialogue.js +14 -13
- package/dist/x-card.d.ts +1 -1
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.d.ts +3 -0
- package/dist/x-carousel.js +35 -33
- package/dist/x-chart.js +47 -47
- package/dist/x-checkbox.js +1 -1
- package/dist/x-chip.js +1 -1
- package/dist/x-code.d.ts +48 -0
- package/dist/x-code.js +28 -0
- package/dist/x-collapse.d.ts +1 -0
- package/dist/x-collapse.js +11 -10
- package/dist/x-color-picker.js +46 -45
- package/dist/x-combobox.d.ts +2 -0
- package/dist/x-combobox.js +30 -26
- package/dist/x-command-palette.d.ts +3 -0
- package/dist/x-command-palette.js +28 -26
- package/dist/x-confetti.js +24 -24
- package/dist/x-container.js +5 -6
- package/dist/x-context-menu.d.ts +4 -0
- package/dist/x-context-menu.js +20 -20
- package/dist/x-copy.js +1 -21
- package/dist/x-currency-field.d.ts +2 -0
- package/dist/x-currency-field.js +24 -23
- package/dist/x-date-picker.d.ts +3 -0
- package/dist/x-date-picker.js +39 -42
- package/dist/x-divider.js +10 -9
- package/dist/x-drawer.js +11 -10
- package/dist/x-dropdown.d.ts +3 -0
- package/dist/x-dropdown.js +12 -11
- package/dist/x-fieldset.js +6 -5
- package/dist/x-file-download.js +7 -7
- package/dist/x-file-upload.d.ts +2 -0
- package/dist/x-file-upload.js +23 -22
- package/dist/x-form-field.js +15 -15
- package/dist/x-form.d.ts +4 -0
- package/dist/x-form.js +10 -9
- package/dist/x-gaussian-blur.js +13 -12
- package/dist/x-grid.js +6 -7
- 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 +16 -16
- package/dist/x-kinetic-canvas.js +26 -25
- package/dist/x-kinetic-font.js +27 -27
- package/dist/x-kinetic-typography.js +35 -33
- package/dist/x-liquid-dock.js +34 -38
- package/dist/x-liquid-fill.js +42 -45
- package/dist/x-liquid-glass.js +41 -47
- package/dist/x-menu-item.js +8 -8
- package/dist/x-menu.js +10 -11
- package/dist/x-metaball-cursor.js +23 -26
- package/dist/x-modal.js +12 -11
- package/dist/x-morph-stack.d.ts +4 -0
- package/dist/x-morph-stack.js +37 -37
- package/dist/x-multi-combobox.js +36 -36
- package/dist/x-navbar.js +15 -12
- package/dist/x-neural-glow.js +30 -33
- package/dist/x-notification-center.d.ts +2 -0
- package/dist/x-notification-center.js +9 -9
- package/dist/x-organic-divider.js +18 -17
- package/dist/x-organic-progress.js +35 -37
- package/dist/x-organic-shape.js +14 -13
- package/dist/x-otp-input.js +22 -22
- package/dist/x-pagination.js +14 -15
- package/dist/x-particle-button.js +51 -51
- package/dist/x-popover.d.ts +3 -0
- package/dist/x-popover.js +27 -25
- package/dist/x-progress-circle.d.ts +3 -0
- package/dist/x-progress-circle.js +9 -9
- package/dist/x-progress.js +8 -10
- package/dist/x-proximity-list.js +20 -20
- package/dist/x-radio.js +11 -11
- package/dist/x-range-slider.d.ts +51 -0
- package/dist/x-range-slider.js +29 -0
- package/dist/x-rating.d.ts +49 -0
- package/dist/x-rating.js +24 -0
- package/dist/x-ripple-effect.js +10 -11
- package/dist/x-scroll-parallax.js +17 -18
- package/dist/x-scroll-stack.js +16 -17
- package/dist/x-scroll-story.js +33 -34
- package/dist/x-scroll-timeline.js +46 -45
- package/dist/x-scroll.d.ts +3 -0
- package/dist/x-scroll.js +38 -40
- package/dist/x-search-field.d.ts +2 -0
- package/dist/x-search-field.js +1 -1
- package/dist/x-select.js +1 -1
- package/dist/x-sidebar.js +18 -17
- package/dist/x-skeleton-group.js +12 -12
- package/dist/x-skeleton.js +1 -1
- package/dist/x-slider.js +16 -15
- package/dist/x-soft-body.js +20 -22
- package/dist/x-spacer.js +4 -4
- package/dist/x-spinner.js +4 -4
- package/dist/x-splash.js +12 -13
- package/dist/x-split-pane.d.ts +44 -0
- package/dist/x-split-pane.js +16 -0
- package/dist/x-spotlight-card.js +12 -12
- package/dist/x-stat.js +10 -10
- package/dist/x-stepper.js +13 -14
- package/dist/x-switch.js +11 -10
- package/dist/x-tab.js +7 -7
- package/dist/x-table-cell.js +21 -20
- package/dist/x-table-row.js +8 -8
- package/dist/x-table.d.ts +32 -32
- package/dist/x-table.js +13 -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 -20
- package/dist/x-timeline.js +8 -8
- package/dist/x-toast.d.ts +1 -0
- package/dist/x-toast.js +22 -22
- package/dist/x-toaster.js +7 -8
- package/dist/x-tooltip.d.ts +2 -0
- package/dist/x-tooltip.js +12 -12
- package/dist/x-trace-history.js +127 -117
- package/dist/x-typography.js +9 -9
- package/dist/x-welcome-tour.js +63 -61
- package/package.json +29 -2
|
@@ -12,6 +12,8 @@ export interface XNotificationCenter extends HTMLElement {
|
|
|
12
12
|
position: string;
|
|
13
13
|
max: number;
|
|
14
14
|
readonly count: number;
|
|
15
|
+
push(opts: Record<string, any>): string;
|
|
16
|
+
clear(): void;
|
|
15
17
|
|
|
16
18
|
addEventListener<K extends keyof XNotificationCenterEventMap>(
|
|
17
19
|
type: K,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
$APP.
|
|
5
|
-
a
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
$APP.
|
|
2
|
+
var Uv=function(a){return typeof a==="string"&&$APP.cd(Tv,a.toLowerCase())?a.toLowerCase():"top-right"},Vv=function(a){if(a==null)return 5;a=parseInt(""+$APP.P.i(a),10);return typeof a==="number"&&$APP.p(isNaN(a))&&a>0?a:5},Wv=function(a){var b=$APP.l(a,"__xNcRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div");c.textContent=":host{display:block;position:fixed;z-index:var(--x-notification-center-z-index,9999);--x-notification-center-width:360px;--x-notification-center-gap:8px;--x-notification-center-offset-x:16px;--x-notification-center-offset-y:16px;--x-notification-center-z-index:9999;pointer-events:none;}:host([data-position\x3d'top-right']){top:var(--x-notification-center-offset-y);right:var(--x-notification-center-offset-x);}:host([data-position\x3d'top-left']){top:var(--x-notification-center-offset-y);left:var(--x-notification-center-offset-x);}:host([data-position\x3d'bottom-right']){bottom:var(--x-notification-center-offset-y);right:var(--x-notification-center-offset-x);}:host([data-position\x3d'bottom-left']){bottom:var(--x-notification-center-offset-y);left:var(--x-notification-center-offset-x);}:host([data-position\x3d'top-center']){top:var(--x-notification-center-offset-y);left:50%;transform:translateX(-50%);}:host([data-position\x3d'bottom-center']){bottom:var(--x-notification-center-offset-y);left:50%;transform:translateX(-50%);}[part\x3dcontainer]{display:flex;flex-direction:column;gap:var(--x-notification-center-gap);width:var(--x-notification-center-width);pointer-events:auto;}:host([data-position\x3d'bottom-right']) [part\x3dcontainer],:host([data-position\x3d'bottom-left']) [part\x3dcontainer],:host([data-position\x3d'bottom-center']) [part\x3dcontainer]{flex-direction:column-reverse;}";
|
|
3
|
+
$APP.T(d,"part","container");$APP.T(d,"role","log");$APP.T(d,"aria-live","polite");b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xNcRefs",{root:b,container:d});return $APP.l(a,"__xNcRefs")},Xv=function(a){var b=a.getAttribute("position");b=Uv(b);return $APP.T(a,"data-position",b)},Yv=function(a){function b(d){var e=Wv(a),f=$APP.l(e,"container"),h=d.target;e=h.getAttribute("data-notification-id");f=f.querySelectorAll("x-alert").length-1;h=h.getAttribute("type");var k=d.detail.reason;d=d.detail.text;
|
|
4
|
+
$APP.dj(a,"x-notification-center-dismiss",{id:e,type:$APP.n(h)?h:"info",reason:$APP.n(k)?k:"",text:$APP.n(d)?d:"",count:f});return f===0?$APP.dj(a,"x-notification-center-empty",{}):null}var c=Wv(a);$APP.l(c,"root").addEventListener("x-alert-dismiss",b,{capture:!1});$APP.Q(a,"__xNcHandlers",{dismiss:b})},Zv=function(a){var b=$APP.l(a,"__xNcHandlers"),c=$APP.l(a,"__xNcRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.l(c,"root"),b=$APP.l(b,"dismiss"),$APP.n(b)&&c.removeEventListener("x-alert-dismiss",b,{capture:!1}));
|
|
5
|
+
return $APP.Q(a,"__xNcHandlers",null)},aw=function(a,b){var c=Wv(a);c=$APP.l(c,"container");if(c.querySelectorAll("x-alert").length<function(){var u=$APP.l(a,"__xNcMax");return $APP.n(u)?u:5}()){var d=document.createElement("x-alert"),e=function(){var u=$APP.l(b,"id");$APP.n(u)||(u=$v.v,$v.v=u+1,u="xnc-"+$APP.P.i(u));return u}(),f=$APP.l(b,"type"),h=$APP.l(b,"text"),k=$APP.l(b,"icon"),m=$APP.l(b,"timeoutMs"),q=$APP.l(b,"dismissible");$APP.T(d,"data-notification-id",e);$APP.n(f)&&$APP.T(d,"type",f);
|
|
6
|
+
$APP.n(h)&&$APP.T(d,"text",h);$APP.n(k)&&$APP.T(d,"icon",k);$APP.n(m)&&$APP.T(d,"timeout-ms",""+$APP.P.i(m|0));q===!1&&$APP.T(d,"dismissible","false");c.appendChild(d);$APP.dj(a,"x-notification-center-push",{id:e,count:c.querySelectorAll("x-alert").length});return e}return null},bw=function(a){Object.defineProperty(a,"position",{get:function(){return Uv(this.getAttribute("position"))},set:function(b){return $APP.n(b)?$APP.T(this,"position",""+$APP.P.i(b)):$APP.U(this,"position")},enumerable:!0,configurable:!0});
|
|
7
|
+
Object.defineProperty(a,"max",{get:function(){return Vv(this.getAttribute("max"))},set:function(b){return $APP.n(b)?$APP.T(this,"max",""+$APP.P.i(b|0)):$APP.U(this,"max")},enumerable:!0,configurable:!0});Object.defineProperty(a,"count",{get:function(){var b=$APP.l(this,"__xNcRefs");return $APP.n(b)?$APP.l(b,"container").querySelectorAll("x-alert").length:0},enumerable:!0,configurable:!0})},cw=function(a){Wv(a);Zv(a);Yv(a);return Xv(a)},dw=function(a){return Zv(a)},ew=function(a,b){return $APP.z.j(b,
|
|
8
|
+
"position")?Xv(a):$APP.z.j(b,"max")?$APP.Q(a,"__xNcMax",Vv(a.getAttribute("max"))):null},fw=function(a){Object.defineProperty(a,"push",{value:function(b){return aw(this,b)},writable:!0,configurable:!0});return Object.defineProperty(a,"clear",{value:function(){a:{var b=Wv(this);b=$APP.r($APP.Cc($APP.l(b,"container").querySelectorAll("x-alert")));for(var c=null,d=0,e=0;;)if(e<d){var f=c.C(null,e);f.remove();e+=1}else if(b=$APP.r(b))c=b,$APP.Yc(c)?(b=$APP.Db(c),d=$APP.Eb(c),c=b,f=$APP.w(b),b=d,d=f):
|
|
9
|
+
(f=$APP.t(c),f.remove(),b=$APP.v(c),c=null,d=0),e=0;else{b=null;break a}b=void 0}return b},writable:!0,configurable:!0})},hw=function(){return $APP.xi("x-notification-center",new $APP.M(null,5,[$APP.hi,gw,$APP.fi,cw,$APP.ci,dw,$APP.bi,ew,$APP.gi,function(a){bw(a);return fw(a)}],null))},iw=function(){return hw()};var gw=["position","max"],Tv=new $APP.ah(null,new $APP.M(null,6,["top-center",null,"bottom-center",null,"top-right",null,"bottom-right",null,"top-left",null,"bottom-left",null],null),null);
|
|
10
|
+
$APP.he(["x-notification-center-push",new $APP.M(null,2,[$APP.V,new $APP.M(null,2,[$APP.Ms,$APP.X,$APP.Wo,$APP.Z],null),$APP.yt,!1],null),"x-notification-center-dismiss",new $APP.M(null,2,[$APP.V,new $APP.M(null,5,[$APP.Ms,$APP.X,$APP.O,$APP.X,$APP.Rp,$APP.X,$APP.Ul,$APP.X,$APP.Wo,$APP.Z],null),$APP.yt,!1],null),"x-notification-center-empty",new $APP.M(null,2,[$APP.V,$APP.ie,$APP.yt,!1],null)]);var $v={v:0};$APP.fa("baredom.exports.x_notification_center.init",iw);export const init=iw;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
"morph");
|
|
6
|
-
""+$APP.
|
|
7
|
-
"data-flip");$APP.n(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
null
|
|
14
|
-
null),"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
null)
|
|
2
|
+
var t_=function(a){return typeof a==="string"&&$APP.cd(Rla,a)?a:"wave"},Sla=function(a){return $APP.Fe(function(b){return new $APP.M(null,2,[u_,b*20,v_,b*8],null)},$APP.vh(0,a))},C_=function(a){var b=new $APP.M(null,7,[$APP.nr,a.getAttribute("shape"),$APP.nq,a.getAttribute("layers"),$APP.On,a.getAttribute("height"),w_,a.getAttribute("flip"),x_,a.getAttribute("mirror"),$APP.Mn,a.getAttribute("animation"),$APP.js,a.getAttribute("path")],null);var c=$APP.G(b),d=$APP.C(c,$APP.nr),e=$APP.C(c,$APP.nq),
|
|
3
|
+
f=$APP.C(c,$APP.On);b=$APP.C(c,w_);var h=$APP.C(c,x_),k=$APP.C(c,$APP.Mn);c=$APP.C(c,$APP.js);c=$APP.Li(c);d=t_(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 k==="string"&&$APP.cd(Tla,k)?k:"none";k=c!=null?c:$APP.He(y_,new $APP.J(null,2,5,$APP.K,[t_(d),$APP.js],null));m=c==null?$APP.He(y_,new $APP.J(null,2,5,$APP.K,[t_(d),z_],null)):null;var u=c!=null?c:$APP.C(Ula,t_(d));q=$APP.z.j(q,"morph")&&m==null?"none":q;var x=
|
|
4
|
+
Sla(e);f=typeof f==="string"&&$APP.I("",f.trim())?f.trim():"120px";b=$APP.Eg([$APP.js,$APP.Yq,$APP.Mn,w_,A_,z_,$APP.nr,$APP.nq,x_,$APP.On,B_],[c,k,q,b!=null,x,m,d,e,h!=null,f,u]);if($APP.I(b,$APP.l(a,"__xOrganicDividerModel"))){b=$APP.G(b);u=$APP.C(b,$APP.Yq);h=$APP.C(b,z_);var y=$APP.C(b,B_);f=$APP.C(b,$APP.nq);c=$APP.C(b,A_);d=$APP.C(b,$APP.On);m=$APP.C(b,$APP.Mn);k=$APP.l(a,"__xOrganicDividerBase");q=$APP.l(a,"__xOrganicDividerSvg");e=$APP.l(a,"__xOrganicDividerPaths");x=$APP.z.j(m,"drift");m=
|
|
5
|
+
$APP.z.j(m,"morph");u=x?y:u;$APP.T(q,"viewBox",x?"0 0 1800 120":"0 0 1200 120");x=e.length;if(x<f)for(x=f-x,y=0;;)if(y<x){var A=document.createElementNS("http://www.w3.org/2000/svg","path");q.appendChild(A);e.push(A);y+=1}else break;else if(x>f)for(x-=f,y=0;;)if(y<x)A=e.pop(),q.removeChild(A),y+=1;else break;for(q=0;;)if(q<f){x=e[q];y=$APP.xc(c,q);A=$APP.G(y);y=$APP.C(A,u_);A=$APP.C(A,v_);var E=q+1;$APP.T(x,"d",u);$APP.T(x,"fill","var(--x-organic-divider-color-"+$APP.P.i(E)+")");$APP.T(x,"opacity",
|
|
6
|
+
""+$APP.P.i(f<=1?1:.3+q/(f-1)*.7));y>0||A>0?$APP.T(x,"transform","translate("+$APP.P.i(y)+","+$APP.P.i(A)+")"):$APP.U(x,"transform");$APP.n(m)?(x.style.setProperty("--x-organic-divider-d",'path("'+$APP.P.i(u)+'")'),$APP.n(h)&&x.style.setProperty("--x-organic-divider-d-alt",'path("'+$APP.P.i(h)+'")')):(x.style.removeProperty("--x-organic-divider-d"),x.style.removeProperty("--x-organic-divider-d-alt"));q+=1}else break;k.style.setProperty("height",d);c=$APP.G(b);h=$APP.C(c,w_);f=$APP.C(c,x_);c=$APP.C(c,
|
|
7
|
+
$APP.Mn);$APP.n(h)?$APP.T(a,"data-flip",""):$APP.U(a,"data-flip");$APP.n(f)?$APP.T(a,"data-mirror",""):$APP.U(a,"data-mirror");$APP.I(c,"none")?$APP.T(a,"data-animation",c):$APP.U(a,"data-animation");a=$APP.Q(a,"__xOrganicDividerModel",b)}else a=null;return a},Vla=function(a){if(!$APP.n($APP.l(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=
|
|
8
|
+
":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;}}";
|
|
9
|
+
$APP.T(d,"part","base");$APP.T(e,"xmlns","http://www.w3.org/2000/svg");$APP.T(e,"preserveAspectRatio","none");$APP.T(e,"aria-hidden","true");d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.T(a,"role","presentation");$APP.T(a,"aria-hidden","true");$APP.Q(a,"__xOrganicDividerBase",d);$APP.Q(a,"__xOrganicDividerSvg",e);$APP.Q(a,"__xOrganicDividerPaths",[]);$APP.Q(a,"__xOrganicDividerInit",!0)}return C_(a)},Wla=function(a,b,c,d){return $APP.I(c,d)?$APP.n($APP.l(a,"__xOrganicDividerInit"))?C_(a):
|
|
10
|
+
null:null},Xla=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)?$APP.T(this,"shape",b):$APP.U(this,"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)?$APP.T(this,"layers",b):$APP.U(this,"layers")},enumerable:!0,configurable:!0});
|
|
11
|
+
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)?$APP.T(this,"height",b):$APP.U(this,"height")},enumerable:!0,configurable:!0});$APP.ij(a,"flip","flip");$APP.ij(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("",b)?$APP.T(this,"animation",b):
|
|
12
|
+
$APP.U(this,"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)?$APP.T(this,"path",b):$APP.U(this,"path")},enumerable:!0,configurable:!0})},D_=function(){return $APP.xi("x-organic-divider",new $APP.M(null,4,[$APP.hi,Yla,$APP.fi,Vla,$APP.bi,Wla,$APP.gi,Xla],null))},w_=new $APP.F(null,"flip","flip",2033871302),A_=new $APP.F(null,"transforms","transforms",793344554),
|
|
13
|
+
u_=new $APP.F(null,"x-offset","x-offset",-1499732449),z_=new $APP.F(null,"path-alt","path-alt",1724994068),v_=new $APP.F(null,"y-offset","y-offset",-1716542),B_=new $APP.F(null,"drift-d","drift-d",-1241526977),x_=new $APP.F(null,"mirror","mirror",1914600218);var Yla="shape layers height flip mirror animation path".split(" "),Tla=new $APP.ah(null,new $APP.M(null,3,["none",null,"drift",null,"morph",null],null),null),Rla=new $APP.ah(null,new $APP.M(null,8,["drip",null,"cloud",null,"scallop",null,"waves",null,"mountain",null,"slant",null,"blob-edge",null,"wave",null],null),null),y_=new $APP.M(null,8,["wave",new $APP.M(null,2,[$APP.js,"M0,60 C200,20 400,100 600,60 C800,20 1000,100 1200,60 L1200,120 L0,120 Z",z_,"M0,45 C200,85 400,15 600,55 C800,90 1000,10 1200,50 L1200,120 L0,120 Z"],
|
|
14
|
+
null),"waves",new $APP.M(null,2,[$APP.js,"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",z_,"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.M(null,2,[$APP.js,"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",z_,"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"],
|
|
15
|
+
null),"mountain",new $APP.M(null,2,[$APP.js,"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",z_,"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.M(null,2,[$APP.js,"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",
|
|
16
|
+
z_,"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.M(null,2,[$APP.js,"M0,100 C300,90 600,30 900,10 C1000,5 1100,2 1200,0 L1200,120 L0,120 Z",z_,"M0,80 C300,70 600,50 900,30 C1000,20 1100,10 1200,20 L1200,120 L0,120 Z"],null),"scallop",new $APP.M(null,2,
|
|
17
|
+
[$APP.js,"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",z_,"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.M(null,2,[$APP.js,"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",
|
|
18
|
+
z_,"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),Ula=new $APP.M(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(";"),
|
|
19
|
+
null);$APP.fa("baredom.exports.x_organic_divider.init",D_);export const init=D_;
|
|
@@ -1,39 +1,37 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
"number"&&$APP.p(isNaN(a))&&a>0?a:42):42},
|
|
4
|
-
|
|
5
|
-
b,c){var d=[],e=[];c=
|
|
6
|
-
f[0]*.2;return b.j?b.j(
|
|
7
|
-
return $APP.
|
|
8
|
-
"key")-$APP.
|
|
9
|
-
b*d,b]},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
",
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
1
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"aria-valuemax","100");$APP.n($APP.
|
|
22
|
-
1,["F","F[+F]F[-F]F"],null)
|
|
23
|
-
$APP.n($APP.n(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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,
|
|
2
|
+
var $7=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},a8=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.cd(Pra,a)?a:"vine"},b8=function(a){return a==null?!0:$APP.I((""+$APP.P.i(a)).trim().toLowerCase(),"false")},c8=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.cd(Qra,a)?a:"normal"},d8=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a===
|
|
3
|
+
"number"&&$APP.p(isNaN(a))&&a>0?a:42):42},e8=function(a){return typeof a==="string"?(a=a.trim(),$APP.I(a,"")?a:null):null},f8=function(a){return typeof a==="string"?(a=a.trim(),$APP.I(a,"")?a:null):null},g8=function(a){a=(typeof a==="number"&&$APP.p(isNaN(a))&&a>0?Math.floor(a):42)|0;return[a===0?1:a]},h8=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},Sra=function(a,b){var c=(a+b)*Rra,d=Math.floor(a+c);c=Math.floor(b+c);var e=(d+c)*i8,f=a-(d-e),h=b-(c-e),
|
|
4
|
+
k=f>h?1:0,m=f>h?0:1,q=f+-k-i8,u=h+-m-i8,x=f+-1-2*i8,y=h+-1-2*i8,A=d&255,E=c&255,H=.5-f*f-h*h,N=.5-q*q-u*u,S=.5-x*x-y*y;return 70*((H<0?0:function(){var R=H*H,Y=j8[k8[A+k8[E&255]&255]&11];return R*R*(Y[0]*f+Y[1]*h)}())+(N<0?0:function(){var R=N*N,Y=j8[k8[A+k+k8[E+m&255]&255]&11];return R*R*(Y[0]*q+Y[1]*u)}())+(S<0?0:function(){var R=S*S,Y=j8[k8[A+1+k8[E+1&255]&255]&11];return R*R*(Y[0]*x+Y[1]*y)}()))},Tra=function(a){var b=a*17.31,c=a*31.17;return function(d,e){return Sra(d+b,e+c)}},Ura=function(a,
|
|
5
|
+
b,c){var d=[],e=[];c=g8(c);for(var f=[0],h=[20,100,0,0],k=a.length,m=0;;)if(m<k){switch(a.charAt(m)){case "F":var q=h[0],u=h[1],x=h[2],y=h[3],A=f[0],E=38*Math.pow(.7,y)*(.8+.4*h8(c)),H=function(){var S=A*.3;var R=y*.5;S=b.j?b.j(S,R):b.call(null,S,R);return x+.15*S}(),N=q+E*Math.cos(H);E=u+E*Math.sin(H);d.push({x1:q,y1:u,x2:N,y2:E,depth:y,index:A});h[0]=N;h[1]=E;f[0]=A+1;break;case "+":q=function(){var S=f[0]*.2;return b.j?b.j(S,100):b.call(null,S,100)}();h[2]-=.436+.1*q;break;case "-":q=function(){var S=
|
|
6
|
+
f[0]*.2;return b.j?b.j(S,200):b.call(null,S,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(S,R){var Y=$APP.l(S,"x2")-20;S=$APP.l(S,"y2")-100;var ka=$APP.l(R,"x2")-20;R=$APP.l(R,"y2")-100;return Y*Y+S*S-(ka*ka+R*R)});return[d,d.length]},Vra=function(a,b,c,d){a=""+$APP.P.i(a.toFixed(1))+","+$APP.P.i(b.toFixed(1));c=""+$APP.P.i(c.toFixed(1))+","+$APP.P.i(d.toFixed(1));
|
|
7
|
+
return $APP.dd(a,c)<0?""+$APP.P.i(a)+"-"+$APP.P.i(c):""+$APP.P.i(c)+"-"+$APP.P.i(a)},Xra=function(a,b){b=$APP.Jc(Wra,b,25);var c=g8(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 k=Math.sqrt(17E4),m=-2;;)if(m<f){for(var q=m*d,u=$APP.oe(m)?0:e/2,x=-2;;)if(x<h){var y=x*e+u;if(q>0-b&&q<800+b&&y>0-b&&y<200+b){var A=q-400,E=y-100;A=Math.sqrt(A*A+E*E);E=A*.7+h8(c)*.3*k;a.push({cx:q,cy:y,dist:A,key:E})}x+=1}else break;m+=1}else break;a.sort(function(S,R){return $APP.l(S,
|
|
8
|
+
"key")-$APP.l(R,"key")});c={};d=[];e=[0];f=a.length;for(h=0;;)if(h<f){u=a[h];m=$APP.l(u,"cx");q=$APP.l(u,"cy");u=Math.min(2,Math.floor($APP.l(u,"dist")*3/(k+.001)));for(x=0;;)if(x<6){A=Math.PI/3*x;var H=Math.PI/3*(x+1);y=m+b*Math.cos(A);A=q+b*Math.sin(A);E=m+b*Math.cos(H);H=q+b*Math.sin(H);var N=Vra(y,A,E,H);$APP.n($APP.l(c,N))||(c[N]=!0,N=e[0],d.push({x1:y,y1:A,x2:E,y2:H,depth:u,index:N}),e[0]=N+1);x+=1}else break;h+=1}else break;return[d,d.length]},Yra=function(a,b,c,d){b=c+(120*(b-a)-12*c)*d;return[a+
|
|
9
|
+
b*d,b]},l8=function(){return $APP.D(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},Zra=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},$ra=function(a,b,c){var d=$APP.G($APP.l(a,"__xOrganicProgressRefs")),e=$APP.C(d,m8);d=function(){var A=$APP.l(a,"__xOrganicProgressLines");return $APP.n(A)?A:[]}();for(var f=d.length,h=[],k=0;;)if(k<b){var m=k<f?d[k]:function(){var A=
|
|
10
|
+
document.createElementNS("http://www.w3.org/2000/svg","line");$APP.T(A,"stroke-linecap","round");e.appendChild(A);return A}(),q=c[k],u=$APP.l(q,"y1"),x=$APP.l(q,"x2"),y=$APP.l(q,"y2");$APP.T(m,"x1",""+$APP.P.i($APP.l(q,"x1")));$APP.T(m,"y1",""+$APP.P.i(u));$APP.T(m,"x2",""+$APP.P.i(x));$APP.T(m,"y2",""+$APP.P.i(y));$APP.T(m,"opacity","0");h.push(m);k+=1}else break;for(;;)if(b<f)e.removeChild(d[b]),b+=1;else break;$APP.Q(a,"__xOrganicProgressLines",h);$APP.Q(a,"__xOrganicProgressPV",-1)},asa=function(a){var b=
|
|
11
|
+
$APP.l(a,"__xOrganicProgressLines"),c=$APP.l(a,"__xOrganicProgressSegs"),d=$APP.l(a,"__xOrganicProgressSegN"),e=$APP.l(a,"__xOrganicProgressModel"),f=$APP.z.j($APP.Am.i(e),"honeycomb");e=$APP.Vq.i(e);var h=$APP.n(e)?e:"var("+$APP.P.i("--x-organic-progress-color-primary")+","+$APP.P.i(f?"#818cf8":"#22c55e")+")",k="var("+$APP.P.i("--x-organic-progress-color-secondary")+","+$APP.P.i(f?"#a5b4fc":"#16a34a")+")";a=Zra(a,f?1.5:3);if(f)for(f=0;;)if(f<d){e=b[f];var m=$APP.l(c[f],"depth");$APP.T(e,"stroke-width",
|
|
12
|
+
""+$APP.P.i(a));e.style.stroke=function(){switch(m){case 0:return h;case 1:return k;default:return k}}();$APP.T(e,"stroke-linecap","round");$APP.T(e,"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.l(c[f],"depth"),u=q===0?h:k;$APP.T(e,"stroke-width",""+$APP.P.i(Math.max(.5,a-q*.6)));e.style.stroke=u;$APP.T(e,"stroke-linecap","round");$APP.T(e,"stroke-opacity","1");f+=1}else break},bsa=function(a){var b=
|
|
13
|
+
$APP.l(a,"__xOrganicProgressSPos"),c=$APP.l(a,"__xOrganicProgressSegN"),d=Math.floor(b/100*c),e=$APP.l(a,"__xOrganicProgressPV"),f=$APP.l(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.l(a,"__xOrganicProgressNodes");c=$APP.l(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",
|
|
14
|
+
e<b?"1":"0"),e+=1;else break;$APP.Q(a,"__xOrganicProgressPV",d)}},csa=function(a){var b=$APP.l(a,"__xOrganicProgressSegs"),c=$APP.l(a,"__xOrganicProgressSegN"),d=$APP.G($APP.l(a,"__xOrganicProgressRefs"));d=$APP.C(d,n8);var e=$APP.l(a,"__xOrganicProgressModel"),f="var("+$APP.P.i("--x-organic-progress-bloom-color")+",#f472b6)";e=g8(o8.i(e)+7);for(var h=[],k=0;;)if(k<c){var m=b[k];if($APP.l(m,"depth")>=2){var q=document.createElementNS("http://www.w3.org/2000/svg","circle"),u=$APP.l(m,"x2");m=$APP.l(m,
|
|
15
|
+
"y2");var x=2*h8(e)-1,y=2*h8(e)-1;$APP.T(q,"cx",""+$APP.P.i(u));$APP.T(q,"cy",""+$APP.P.i(m));$APP.T(q,"r","0");q.style.fill=f;$APP.T(q,"opacity","0");$APP.T(q,"class","bloom-petal");q.__xOrganicProgressBDx=x;q.__xOrganicProgressBDy=y;d.appendChild(q);h.push(q)}k+=1}else break;$APP.Q(a,"__xOrganicProgressBEls",h);$APP.Q(a,"__xOrganicProgressBloom",!0);$APP.Q(a,"__xOrganicProgressBT",0)},dsa=function(a,b){b=$APP.l(a,"__xOrganicProgressBT")+b;var c=b/1.5;$APP.Q(a,"__xOrganicProgressBT",b);if(c>1){b=
|
|
16
|
+
$APP.G($APP.l(a,"__xOrganicProgressRefs"));b=$APP.C(b,n8);c=$APP.l(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;$APP.Q(a,"__xOrganicProgressBEls",null);$APP.Q(a,"__xOrganicProgressBloom",!1);$APP.dj(a,"x-organic-progress-bloom-end",{progress:100})}else for(a=$APP.l(a,"__xOrganicProgressBEls"),b=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){var h=a[e];f=$APP.l(h,"__xOrganicProgressBDx")*
|
|
17
|
+
b*8;var k=$APP.l(h,"__xOrganicProgressBDy")*b*8,m=h,q=""+$APP.P.i(b*2.5);m.setAttribute("r",q);m=h;q=""+$APP.P.i(c);m.setAttribute("opacity",q);f="translate("+$APP.P.i(f)+","+$APP.P.i(k)+")";h.setAttribute("transform",f);e+=1}else break},esa=function(a){$APP.Yi(a,"__xOrganicProgressTime",0);$APP.Q(a,"__xOrganicProgressSPos",0);$APP.Q(a,"__xOrganicProgressSVel",0);$APP.Yi(a,"__xOrganicProgressLF",performance.now());$APP.Q(a,"__xOrganicProgressDone",!1);$APP.Q(a,"__xOrganicProgressBloom",!1);$APP.Q(a,
|
|
18
|
+
"__xOrganicProgressPV",-1);return $APP.Yi(a,"__xOrganicProgressRaf",requestAnimationFrame(function(){return p8(a)}))},q8=function(a){for(var b=$APP.l(a,"__xOrganicProgressModel"),c=$APP.l(a,"__xOrganicProgressSegN"),d=$APP.n($APP.el.i(b))?50:$APP.Zs.i(b),e=Math.floor(d/100*c),f=$APP.l(a,"__xOrganicProgressLines"),h=0;;)if(h<c){var k=f[h];$APP.n(k)&&$APP.T(k,"opacity",h<e?"1":"0");h+=1}else break;c=$APP.l(a,"__xOrganicProgressNodes");f=function(){var m=$APP.l(a,"__xOrganicProgressNN");return $APP.n(m)?
|
|
19
|
+
m:0}();if($APP.n($APP.n(c)?f>0:c))for(d=Math.floor(d/100*f),h=0;;)if(h<f)k=c[h],$APP.n(k)&&$APP.T(k,"opacity",h<d?"1":"0"),h+=1;else break;$APP.Q(a,"__xOrganicProgressPV",e);return $APP.n(function(){var m=$APP.As.i(b);return $APP.n(m)?$APP.p($APP.l(a,"__xOrganicProgressDone")):m}())?($APP.Q(a,"__xOrganicProgressDone",!0),$APP.dj(a,"x-organic-progress-complete",{progress:100})):null},v8=function(a){var b=new $APP.M(null,7,[$APP.gr,a.getAttribute("progress"),$APP.Js,a.getAttribute("variant"),$APP.uu,
|
|
20
|
+
a.getAttribute("color"),r8,a.getAttribute("bloom"),$APP.zq,a.getAttribute("density"),s8,a.getAttribute("seed"),$APP.yj,a.getAttribute("label")],null);var c=$APP.G(b),d=$APP.C(c,$APP.gr);b=$APP.C(c,$APP.Js);var e=$APP.C(c,$APP.uu),f=$APP.C(c,r8),h=$APP.C(c,$APP.zq),k=$APP.C(c,s8);c=$APP.C(c,$APP.yj);d=$7(d);var m=d==null,q=$APP.n(d)?d:0,u=!m&&q>=100;b=$APP.Eg([$APP.el,$APP.Vq,$APP.Am,t8,o8,$APP.lu,$APP.Rj,$APP.Zs,$APP.As,$APP.ot,$APP.Gs],[m,f8(e),a8(b),b8(f),d8(k),m?"Loading...":""+$APP.P.i(Math.round(q))+
|
|
21
|
+
"%",e8(c),q,u,d,c8(h)]);e=$APP.l(a,"__xOrganicProgressModel");if($APP.I(b,e)){$APP.T(a,"role","progressbar");$APP.T(a,"aria-valuemin","0");$APP.T(a,"aria-valuemax","100");$APP.n($APP.el.i(b))?($APP.U(a,"aria-valuenow"),$APP.T(a,"aria-busy","true"),$APP.T(a,"aria-valuetext","Loading...")):($APP.T(a,"aria-valuenow",""+$APP.P.i(Math.round($APP.Zs.i(b)))),$APP.U(a,"aria-busy"),$APP.T(a,"aria-valuetext",$APP.lu.i(b)));f=$APP.Rj.i(b);$APP.n(f)?$APP.T(a,"aria-label",f):$APP.U(a,"aria-label");if(e==null||
|
|
22
|
+
$APP.I($APP.Am.i(b),$APP.Am.i(e))||$APP.I($APP.Gs.i(b),$APP.Gs.i(e))||$APP.I(o8.i(b),o8.i(e))){e=$APP.z.j($APP.Am.i(b),"honeycomb");f=$APP.Jc(fsa,$APP.Gs.i(b),3);if(e)f=Xra(o8.i(b),$APP.Gs.i(b));else{a:{h=new $APP.M(null,1,["F","F[+F]F[-F]F"],null);k="F";for(d=0;;){if(d>=f){f=k;break a}c=[];m=k.length;for(q=0;;)if(q<m){u=k.charAt(q);var x=$APP.C(h,u);$APP.n(x)?c.push(x):c.push(u);q+=1}else break;d+=1;k=c.join("")}f=void 0}h=Tra(o8.i(b));f=Ura(f,h,o8.i(b))}h=f;f=h[0];h=h[1];$APP.Q(a,"__xOrganicProgressSegs",
|
|
23
|
+
f);$APP.Q(a,"__xOrganicProgressSegN",h);$ra(a,h,f);h=$APP.G($APP.l(a,"__xOrganicProgressRefs"));f=$APP.C(h,m8);h=$APP.C(h,$APP.wq);$APP.n(f)&&($APP.n(e)?$APP.U(f,"filter"):$APP.T(f,"filter","url(#x-organic-progress-gooey)"));$APP.n($APP.n(h)?$APP.p(e):h)&&$APP.T(h,"stdDeviation","2");e=$APP.G($APP.l(a,"__xOrganicProgressRefs"));e=$APP.C(e,u8);f=$APP.l(a,"__xOrganicProgressNodes");if($APP.n($APP.n(e)?f:e))for(h=f.length,k=0;;)if(k<h)c=f[k],$APP.n(c.parentNode)&&e.removeChild(c),k+=1;else break;$APP.Q(a,
|
|
24
|
+
"__xOrganicProgressNodes",null);$APP.Q(a,"__xOrganicProgressND",null);$APP.Q(a,"__xOrganicProgressNN",0);$APP.Q(a,"__xOrganicProgressPV",-1);l8()&&q8(a)}asa(a);a=$APP.Q(a,"__xOrganicProgressModel",b)}else a=null;return a},gsa=function(a){$APP.oj(a,"progress","progress",$7);$APP.oj(a,"variant","variant",a8);$APP.oj(a,"color","color",f8);$APP.oj(a,"density","density",c8);$APP.oj(a,"seed","seed",d8);$APP.oj(a,"label","label",e8);return Object.defineProperty(a,"bloom",{get:function(){return b8(this.getAttribute("bloom"))},
|
|
25
|
+
set:function(b){return $APP.n(b)?$APP.U(this,"bloom"):$APP.T(this,"bloom","false")},enumerable:!0,configurable:!0})},isa=function(a){if(!$APP.n($APP.l(a,"__xOrganicProgressRefs"))){var b=a.attachShadow({mode:"open"}),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"),k=
|
|
26
|
+
document.createElementNS("http://www.w3.org/2000/svg","g");c.textContent=hsa;$APP.T(d,"part","svg");$APP.T(d,"viewBox","0 0 800 200");$APP.T(d,"preserveAspectRatio","xMidYMid slice");$APP.T(d,"aria-hidden","true");$APP.T(f,"part","branches");$APP.T(f,"filter","url(#"+$APP.P.i("x-organic-progress-gooey")+")");$APP.T(h,"part","nodes");$APP.T(k,"part","blooms");var m=document.createElementNS("http://www.w3.org/2000/svg","filter");var q=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),
|
|
27
|
+
u=document.createElementNS("http://www.w3.org/2000/svg","feColorMatrix");$APP.T(m,"id","x-organic-progress-gooey");$APP.T(m,"x","-10%");$APP.T(m,"y","-10%");$APP.T(m,"width","120%");$APP.T(m,"height","120%");$APP.T(q,"in","SourceGraphic");$APP.T(q,"stdDeviation",""+$APP.P.i(2));$APP.T(q,"result","blur");$APP.T(u,"in","blur");$APP.T(u,"type","matrix");$APP.T(u,"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(u);e.appendChild(m);m=new $APP.M(null,3,[$APP.zs,m,
|
|
28
|
+
$APP.wq,q,$APP.gu,u],null);d.appendChild(e);d.appendChild(f);d.appendChild(h);d.appendChild(k);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xOrganicProgressRefs",$APP.Wg($APP.Cc([m,new $APP.M(null,5,[$APP.Ak,b,$APP.rr,d,m8,f,u8,h,n8,k],null)])))}v8(a);return l8()?q8(a):esa(a)},jsa=function(a){var b=$APP.l(a,"__xOrganicProgressRaf");$APP.n(b)&&(cancelAnimationFrame(b),$APP.Yi(a,"__xOrganicProgressRaf",null));if($APP.n($APP.l(a,"__xOrganicProgressBloom"))){b=$APP.G($APP.l(a,"__xOrganicProgressRefs"));
|
|
29
|
+
b=$APP.C(b,n8);var c=$APP.l(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;$APP.Q(a,"__xOrganicProgressBEls",null);return $APP.Q(a,"__xOrganicProgressBloom",!1)}return null},ksa=function(a,b,c,d){return $APP.I(c,d)?$APP.n($APP.l(a,"__xOrganicProgressRefs"))?v8(a):null:null},w8=function(){return $APP.xi("x-organic-progress",new $APP.M(null,5,[$APP.hi,lsa,$APP.fi,isa,$APP.ci,jsa,$APP.bi,ksa,$APP.gi,gsa],null))},
|
|
30
|
+
u8=new $APP.F(null,"nodes-g","nodes-g",89420858),m8=new $APP.F(null,"branches-g","branches-g",548989635),t8=new $APP.F(null,"bloom?","bloom?",-326837587),r8=new $APP.F(null,"bloom-attr","bloom-attr",-1778398039),o8=new $APP.F(null,"seed","seed",68613327),s8=new $APP.F(null,"seed-raw","seed-raw",2146438207),n8=new $APP.F(null,"blooms-g","blooms-g",-1476393864);var lsa="progress variant color bloom density seed label".split(" ");$APP.he(["x-organic-progress-complete",new $APP.M(null,2,[$APP.V,new $APP.M(null,1,[$APP.ot,$APP.Z],null),$APP.yt,!1],null),"x-organic-progress-bloom-end",new $APP.M(null,2,[$APP.V,new $APP.M(null,1,[$APP.ot,$APP.Z],null),$APP.yt,!1],null)]);
|
|
31
|
+
var Pra=new $APP.ah(null,new $APP.M(null,2,["honeycomb",null,"vine",null],null),null),Qra=new $APP.ah(null,new $APP.M(null,3,["dense",null,"normal",null,"sparse",null],null),null),fsa=new $APP.M(null,3,["sparse",2,"normal",3,"dense",4],null),k8=[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
32
|
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],
|
|
36
|
-
":1;background:var("+$APP.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
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],j8=[[1,1],[-1,1],[1,-1],[-1,-1],[1,0],[-1,0],[0,1],[0,-1],[1,1],[-1,1],[1,-1],[-1,-1]],Rra=(Math.sqrt(3)-1)/2,i8=(3-Math.sqrt(3))/6,Wra=new $APP.M(null,3,["sparse",40,"normal",25,"dense",16],null);var hsa=":host{display:block;position:relative;min-height:60px;width:100%;overflow:hidden;"+$APP.P.i("--x-organic-progress-color-primary")+":var(--x-color-success,#22c55e);"+$APP.P.i("--x-organic-progress-color-secondary")+":var(--x-color-success,#16a34a);"+$APP.P.i("--x-organic-progress-bloom-color")+":var(--x-color-danger,#f472b6);"+$APP.P.i("--x-organic-progress-bg")+":transparent;"+$APP.P.i("--x-organic-progress-branch-width")+":3;"+$APP.P.i("--x-organic-progress-glow")+":2;"+$APP.P.i("--x-organic-progress-opacity")+
|
|
34
|
+
":1;background:var("+$APP.P.i("--x-organic-progress-bg")+",transparent);opacity:var("+$APP.P.i("--x-organic-progress-opacity")+",1);}[part\x3dsvg]{display:block;width:100%;height:100%;}[part\x3dnodes] circle{fill:var("+$APP.P.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;}}",
|
|
35
|
+
p8=function p8(a){if($APP.n(a.isConnected)){var c=$APP.l(a,"__xOrganicProgressModel"),d=performance.now(),e=Math.min(d-$APP.l(a,"__xOrganicProgressLF"),100)/1E3;$APP.Yi(a,"__xOrganicProgressLF",d);$APP.Yi(a,"__xOrganicProgressTime",$APP.l(a,"__xOrganicProgressTime")+e);d=$APP.n($APP.el.i(c))?50+20*Math.sin($APP.l(a,"__xOrganicProgressTime")*1.5):$APP.Zs.i(c);d=Yra($APP.l(a,"__xOrganicProgressSPos"),d,$APP.l(a,"__xOrganicProgressSVel"),e);$APP.Q(a,"__xOrganicProgressSPos",d[0]);$APP.Q(a,"__xOrganicProgressSVel",
|
|
36
|
+
d[1]);bsa(a);$APP.n(function(){var f=$APP.As.i(c);return $APP.n(f)?$APP.p($APP.l(a,"__xOrganicProgressDone")):f}())&&($APP.Q(a,"__xOrganicProgressDone",!0),$APP.dj(a,"x-organic-progress-complete",{progress:100}),$APP.n(t8.i(c))&&csa(a));$APP.n(function(){var f=$APP.p($APP.As.i(c));return f?(f=$APP.l(a,"__xOrganicProgressDone"),$APP.n(f)?$APP.p($APP.l(a,"__xOrganicProgressBloom")):f):f}())&&$APP.Q(a,"__xOrganicProgressDone",!1);$APP.n($APP.l(a,"__xOrganicProgressBloom"))&&dsa(a,e);return $APP.Yi(a,
|
|
37
|
+
"__xOrganicProgressRaf",requestAnimationFrame(function(){return p8.i?p8.i(a):p8.call(null,a)}))}return null};$APP.fa("baredom.exports.x_organic_progress.init",w8);export const init=w8;
|
package/dist/x-organic-shape.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
$APP.
|
|
5
|
-
|
|
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.
|
|
7
|
-
|
|
8
|
-
$APP.I("",b)
|
|
9
|
-
"string"&&$APP.I("",b)
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
var OV=function(a){return typeof a==="string"&&$APP.cd($ha,a)?a:"blob-1"},PV=function(a){return typeof a==="string"&&$APP.I("",a)?a:null},aia=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
|
+
$APP.T(d,"part","shape");d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xOrganicShapeBase",d);$APP.Q(a,"__xOrganicShapeSlot",e);$APP.Q(a,"__xOrganicShapeInit",!0)},QV=function(a,b){if($APP.n($APP.n(b)?b.assignedNodes().length>0:null))return $APP.U(a,"role"),$APP.U(a,"aria-hidden");$APP.T(a,"role","presentation");return $APP.T(a,"aria-hidden","true")},UV=function(a){var b=new $APP.M(null,6,[$APP.nr,a.getAttribute("shape"),$APP.js,a.getAttribute("path"),$APP.Mn,a.getAttribute("animation"),
|
|
4
|
+
$APP.Hq,a.getAttribute("ratio"),$APP.Nn,a.getAttribute("width"),$APP.On,a.getAttribute("height")],null);var c=$APP.G(b),d=$APP.C(c,$APP.nr),e=$APP.C(c,$APP.js),f=$APP.C(c,$APP.Mn),h=$APP.C(c,$APP.Hq);b=$APP.C(c,$APP.Nn);c=$APP.C(c,$APP.On);e=typeof e==="string"&&$APP.I("",e.trim())?e.trim():null;d=OV(d);var k=typeof f==="string"&&$APP.cd(bia,f)?f:"none";f=e!=null?e:$APP.He(RV,new $APP.J(null,2,5,$APP.K,[OV(d),SV],null));var m=e==null?$APP.He(RV,new $APP.J(null,2,5,$APP.K,[OV(d),TV],null)):null;k=
|
|
5
|
+
$APP.z.j(k,"morph")&&m==null?"none":k;h=typeof h==="string"&&$APP.I("",h.trim())?h.trim():"1/1";b=new $APP.M(null,8,[$APP.nr,d,$APP.js,e,SV,f,TV,m,$APP.Mn,k,$APP.Hq,h,$APP.Nn,PV(b),$APP.On,PV(c)],null);f=$APP.G(b);b=$APP.C(f,SV);h=$APP.C(f,TV);c=$APP.C(f,$APP.Mn);e=$APP.C(f,$APP.Hq);d=$APP.C(f,$APP.Nn);f=$APP.C(f,$APP.On);m=$APP.l(a,"__xOrganicShapeBase");k=$APP.l(a,"__xOrganicShapeSlot");m.style.setProperty("--x-organic-shape-clip",b);$APP.n(h)?m.style.setProperty("--x-organic-shape-clip-alt",h):
|
|
6
|
+
m.style.removeProperty("--x-organic-shape-clip-alt");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.T(a,"data-animation",c):$APP.U(a,"data-animation");return QV(a,k)},VV=function(a){var b=$APP.l(a,"__xOrganicShapeSlot"),c=$APP.l(a,"__xOrganicShapeSlotHandler");return $APP.n($APP.n(b)?c:b)?(b.removeEventListener("slotchange",
|
|
7
|
+
c),$APP.Q(a,"__xOrganicShapeSlotHandler",null)):null},cia=function(a){function b(){return QV(a,c)}$APP.n($APP.l(a,"__xOrganicShapeInit"))||aia(a);VV(a);var c=$APP.l(a,"__xOrganicShapeSlot");$APP.Q(a,"__xOrganicShapeSlotHandler",b);c.addEventListener("slotchange",b);return UV(a)},dia=function(a){return VV(a)},eia=function(a,b,c,d){return $APP.I(c,d)?$APP.n($APP.l(a,"__xOrganicShapeInit"))?UV(a):null:null},fia=function(a){Object.defineProperty(a,"shape",{get:function(){var b=this.getAttribute("shape");
|
|
8
|
+
return $APP.n(b)?b:"blob-1"},set:function(b){return typeof b==="string"&&$APP.I("",b)?$APP.T(this,"shape",b):$APP.U(this,"shape")},enumerable:!0,configurable:!0});Object.defineProperty(a,"path",{get:function(){return this.getAttribute("path")},set:function(b){return typeof b==="string"&&$APP.I("",b)?$APP.T(this,"path",b):$APP.U(this,"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===
|
|
9
|
+
"string"&&$APP.I("",b)?$APP.T(this,"animation",b):$APP.U(this,"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==="string"&&$APP.I("",b)?$APP.T(this,"ratio",b):$APP.U(this,"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("",
|
|
10
|
+
b)?$APP.T(this,"width",b):$APP.U(this,"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==="string"&&$APP.I("",b)?$APP.T(this,"height",b):$APP.U(this,"height")},enumerable:!0,configurable:!0})},WV=function(){return $APP.xi("x-organic-shape",new $APP.M(null,5,[$APP.hi,gia,$APP.fi,cia,$APP.ci,dia,$APP.bi,eia,$APP.gi,fia],null))},SV=new $APP.F(null,"clip","clip",830998499),
|
|
11
|
+
TV=new $APP.F(null,"clip-alt","clip-alt",-684562835);var gia="shape path animation ratio width height".split(" "),bia=new $APP.ah(null,new $APP.M(null,5,["float",null,"none",null,"pulse",null,"spin",null,"morph",null],null),null),$ha=new $APP.ah(null,new $APP.M(null,8,["cloud",null,"blob-3",null,"leaf",null,"pebble",null,"blob-1",null,"blob-2",null,"wave",null,"droplet",null],null),null),RV=new $APP.M(null,8,["blob-1",new $APP.M(null,2,[SV,"polygon(30% 0%, 70% 0%, 100% 30%, 95% 70%, 70% 100%, 30% 95%, 0% 70%, 5% 30%)",TV,"polygon(25% 5%, 75% 0%, 95% 25%, 100% 65%, 75% 95%, 25% 100%, 0% 65%, 5% 25%)"],
|
|
12
|
+
null),"blob-2",new $APP.M(null,2,[SV,"polygon(50% 0%, 80% 10%, 100% 40%, 95% 75%, 70% 100%, 30% 100%, 5% 75%, 0% 40%, 20% 10%)",TV,"polygon(50% 5%, 85% 15%, 100% 45%, 90% 80%, 65% 95%, 35% 95%, 10% 80%, 0% 45%, 15% 15%)"],null),"blob-3",new $APP.M(null,2,[SV,"polygon(20% 0%, 80% 0%, 100% 20%, 100% 50%, 90% 80%, 70% 100%, 30% 100%, 10% 80%, 0% 50%, 0% 20%)",TV,"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.M(null,2,[SV,"polygon(50% 2%, 78% 8%, 96% 30%, 98% 60%, 85% 88%, 55% 98%, 25% 92%, 4% 65%, 2% 35%, 22% 8%)",
|
|
13
|
+
TV,"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.M(null,2,[SV,"polygon(50% 0%, 80% 15%, 98% 45%, 90% 75%, 65% 98%, 50% 100%, 35% 98%, 10% 75%, 2% 45%, 20% 15%)",TV,"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.M(null,2,[SV,"polygon(50% 0%, 72% 20%, 90% 50%, 95% 72%, 80% 92%, 50% 100%, 20% 92%, 5% 72%, 10% 50%, 28% 20%)",TV,"polygon(50% 5%, 70% 22%, 88% 48%, 92% 70%, 78% 90%, 50% 97%, 22% 90%, 8% 70%, 12% 48%, 30% 22%)"],
|
|
14
|
+
null),"cloud",new $APP.M(null,2,[SV,"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%)",TV,"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.M(null,2,[SV,"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%)",
|
|
15
|
+
TV,"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.fa("baredom.exports.x_organic_shape.init",WV);export const init=WV;
|