smoothly 0.2.8 → 0.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Trigger-cf376531.js → Trigger-3443997e.js} +92 -55
- package/dist/cjs/{Notice-839702d8.js → index-2a011313.js} +381 -5
- package/dist/cjs/{index-1c61bdd3.js → index-3efe2a41.js} +18 -11
- package/dist/cjs/index.cjs.js +11 -374
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{smoothly-accordion_51.cjs.entry.js → smoothly-accordion_50.cjs.entry.js} +522 -13123
- package/dist/cjs/smoothly-google-font.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-reorder.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-svg.cjs.entry.js +41 -0
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +2 -2
- package/dist/cjs/smoothly.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/App.js +9 -4
- package/dist/collection/components/app-demo/index.js +10 -0
- package/dist/collection/components/display/index.js +27 -2
- package/dist/collection/components/display-date-time/index.js +3 -0
- package/dist/collection/components/display-demo/index.js +16 -12
- package/dist/collection/components/input-date/index.js +18 -1
- package/dist/collection/components/input-demo/index.js +3 -1
- package/dist/collection/components/room/index.js +7 -3
- package/dist/collection/components/submit/Data.js +12 -0
- package/dist/collection/components/submit/index.js +10 -4
- package/dist/collection/index.js +1 -1
- package/dist/collection/{demo → model}/Listenable.js +11 -6
- package/dist/custom-elements/index.js +566 -13090
- package/dist/esm/{Trigger-365408f0.js → Trigger-327e506e.js} +92 -55
- package/dist/esm/{Notice-608b552c.js → index-1d438ba2.js} +381 -6
- package/dist/esm/{index-a3737440.js → index-4d9efff8.js} +18 -11
- package/dist/esm/index.js +5 -375
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{smoothly-accordion_51.entry.js → smoothly-accordion_50.entry.js} +522 -13122
- package/dist/esm/smoothly-google-font.entry.js +1 -1
- package/dist/esm/smoothly-radio-group.entry.js +1 -1
- package/dist/esm/smoothly-reorder.entry.js +1 -1
- package/dist/esm/smoothly-svg.entry.js +37 -0
- package/dist/esm/smoothly-trigger-sink.entry.js +2 -2
- package/dist/esm/smoothly-trigger-source.entry.js +2 -2
- package/dist/esm/smoothly.js +3 -3
- package/dist/smoothly/index.esm.js +1 -1
- package/dist/smoothly/p-191ee4b8.js +2 -0
- package/dist/smoothly/p-76e88859.js +1 -0
- package/dist/smoothly/{p-0215b4da.entry.js → p-7a5eda51.entry.js} +1 -1
- package/dist/smoothly/p-8aefcb54.entry.js +1 -0
- package/dist/smoothly/{p-eec1c703.entry.js → p-8e4e941e.entry.js} +1 -1
- package/dist/smoothly/{p-993534fa.entry.js → p-919ae3e8.entry.js} +1 -1
- package/dist/smoothly/p-956089d5.entry.js +1 -0
- package/dist/smoothly/{p-6f009ac9.entry.js → p-9bc77fba.entry.js} +1 -1
- package/dist/smoothly/p-b1c579b3.js +1 -0
- package/dist/smoothly/{p-8ae38136.entry.js → p-d5d4832d.entry.js} +1 -1
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/App.d.ts +1 -0
- package/dist/types/components/display/index.d.ts +2 -1
- package/dist/types/components/display-date-time/index.d.ts +3 -1
- package/dist/types/components/input-date/index.d.ts +1 -0
- package/dist/types/components/room/index.d.ts +1 -1
- package/dist/types/components/submit/Data.d.ts +7 -0
- package/dist/types/components/submit/index.d.ts +2 -3
- package/dist/types/components.d.ts +153 -44
- package/dist/types/index.d.ts +1 -1
- package/dist/types/model/Listenable.d.ts +10 -0
- package/package.json +14 -37
- package/dist/collection/demo/State.js +0 -40
- package/dist/smoothly/p-0cba3e3d.js +0 -1
- package/dist/smoothly/p-6ca0d36c.js +0 -1
- package/dist/smoothly/p-7a30d9b8.js +0 -1
- package/dist/smoothly/p-9d825b5a.entry.js +0 -1
- package/dist/types/demo/Listenable.d.ts +0 -6
- package/dist/types/demo/State.d.ts +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-4d9efff8.js';
|
|
2
2
|
|
|
3
3
|
const styleCss = "smoothly-radio-group{display:flex;position:relative;color:none !important;background:none !important;margin:0.5em 0}smoothly-radio-group[hidden]{display:none}smoothly-radio-group[orientation=vertical] *:not(:first-of-type)>input[type=radio]~label{border-top:none}smoothly-radio-group:not([orientation=vertical]) *:not(:first-of-type)>input[type=radio]~label{border-left:none}smoothly-radio-group[orientation=vertical]{flex-direction:column}smoothly-radio-group[orientation=vertical] :first-of-type>input[type=radio]~label{border-radius:4px 4px 0 0}smoothly-radio-group[orientation=vertical] :last-of-type>input[type=radio]~label{border-radius:0 0 4px 4px}smoothly-radio-group:not([orientation=vertical]){flex-direction:row}smoothly-radio-group:not([orientation=vertical]) :first-of-type>input[type=radio]~label{border-radius:4px 0 0 4px}smoothly-radio-group:not([orientation=vertical]) :last-of-type>input[type=radio]~label{border-radius:0 4px 4px 0}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement } from './index-4d9efff8.js';
|
|
2
2
|
|
|
3
3
|
const styleCss = "smoothly-reorder>*{cursor:move;transition:transform 0.3s}smoothly-reorder>*.dragging{transition:none;box-shadow:0 0 10px rgba(var(--smoothly-dark-color));z-index:1;user-select:none}";
|
|
4
4
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-4d9efff8.js';
|
|
2
|
+
|
|
3
|
+
const styleCss = ".sc-smoothly-svg-h{display:block;min-width:var(--size-width);min-height:var(--size-height);background-color:rgb(var(--color))}object.sc-smoothly-svg{min-width:var(--size-width);min-height:var(--size-height);background-color:rgb(var(--color))}";
|
|
4
|
+
|
|
5
|
+
const SmoothlySvg = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.defaultSizes = {
|
|
9
|
+
large: { height: "50rem", width: "50rem" },
|
|
10
|
+
medium: { height: "30rem", width: "30rem" },
|
|
11
|
+
small: { height: "10rem", width: "10rem" },
|
|
12
|
+
tiny: { height: "5rem", width: "5rem" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
const height = this.size
|
|
17
|
+
? typeof this.size == "object"
|
|
18
|
+
? this.size.height
|
|
19
|
+
: this.defaultSizes[this.size].height
|
|
20
|
+
: "10rem";
|
|
21
|
+
const width = this.size
|
|
22
|
+
? typeof this.size == "object"
|
|
23
|
+
? this.size.width
|
|
24
|
+
: this.defaultSizes[this.size].width
|
|
25
|
+
: "10rem";
|
|
26
|
+
return (h(Host, { style: {
|
|
27
|
+
"min-height": height,
|
|
28
|
+
"min-width": width,
|
|
29
|
+
"--size-height": height,
|
|
30
|
+
"--size-width": width,
|
|
31
|
+
"--color": this.color,
|
|
32
|
+
} }, h("object", { height: height, width: width, type: "image/svg+xml", data: this.url })));
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
SmoothlySvg.style = styleCss;
|
|
36
|
+
|
|
37
|
+
export { SmoothlySvg as smoothly_svg };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import { T as Trigger, M as Message } from './Trigger-
|
|
1
|
+
import { r as registerInstance, h } from './index-4d9efff8.js';
|
|
2
|
+
import { T as Trigger, M as Message } from './Trigger-327e506e.js';
|
|
3
3
|
import './GoogleFont-8474516b.js';
|
|
4
4
|
|
|
5
5
|
const styleCss = ".sc-smoothly-trigger-sink-h{display:block}[hidden].sc-smoothly-trigger-sink-h{display:none}";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, a as getElement } from './index-
|
|
2
|
-
import { M as Message, T as Trigger } from './Trigger-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, a as getElement } from './index-4d9efff8.js';
|
|
2
|
+
import { M as Message, T as Trigger } from './Trigger-327e506e.js';
|
|
3
3
|
import './GoogleFont-8474516b.js';
|
|
4
4
|
|
|
5
5
|
const styleCss = ".sc-smoothly-trigger-source-h{display:block}[hidden].sc-smoothly-trigger-source-h{display:none}";
|
package/dist/esm/smoothly.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-4d9efff8.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
Stencil Client Patch Browser v2.
|
|
4
|
+
Stencil Client Patch Browser v2.17.4 | MIT Licensed | https://stenciljs.com
|
|
5
5
|
*/
|
|
6
6
|
const patchBrowser = () => {
|
|
7
7
|
const importMeta = import.meta.url;
|
|
@@ -13,5 +13,5 @@ const patchBrowser = () => {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
patchBrowser().then(options => {
|
|
16
|
-
return bootstrapLazy([["smoothly-google-font",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-
|
|
16
|
+
return bootstrapLazy([["smoothly-google-font",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder",[[0,"smoothly-reorder"]]],["smoothly-svg",[[2,"smoothly-svg",{"url":[513],"size":[513],"color":[1]}]]],["smoothly-trigger-sink",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-accordion_50",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}],[0,"smoothly-input-demo"],[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]],[2,"smoothly-table-demo"],[0,"smoothly-display-demo"],[4,"smoothly-app",{"color":[1]}],[0,"smoothly-dialog-demo"],[2,"smoothly-icon-demo"],[6,"smoothly-button",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"link":[1],"download":[4]}],[4,"smoothly-room",{"label":[1],"icon":[1],"path":[1],"to":[1]}],[2,"smoothly-input-date-range",{"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"open":[1028],"showLabel":[516,"show-label"]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"],[0,"dateRangeSet","onDateRangeSet"]]],[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[1,"smoothly-picker",{"disabled":[516],"readonly":[516],"maxMenuHeight":[1,"max-menu-height"],"maxHeight":[1,"max-height"],"emptyMenuLabel":[1025,"empty-menu-label"],"multiple":[516],"mutable":[4],"optionStyle":[8,"option-style"],"options":[16],"labelSetting":[513,"label-setting"],"label":[513],"selections":[1040],"selectNoneName":[1025,"select-none-name"],"selectAllName":[1025,"select-all-name"],"selectionName":[1025,"selection-name"],"newOptionLabel":[1025,"new-option-label"],"valueValidator":[16],"isOpen":[32],"empty":[32]},[[0,"optionSelect","optionSelectHandler"],[0,"optionAdd","optionAddHandler"],[0,"menuEmpty","emptyHandler"]]],[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-backtotop",{"opacity":[1],"bottom":[1],"right":[1],"visible":[32]}],[2,"smoothly-checkbox",{"selectAll":[4,"select-all"],"size":[1],"intermediate":[1540],"selected":[1540],"disabled":[1540],"t":[32]}],[6,"smoothly-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]],[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540]},[[0,"click","onClick"]]],[6,"smoothly-table-expandable-row",{"align":[1],"open":[1540]},[[0,"click","onClick"]]],[0,"smoothly-urlencoded",{"data":[1]}],[6,"smoothly-accordion",{"value":[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]],[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}],[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1],"format":[16]}],[2,"smoothly-display-amount",{"amount":[8],"currency":[1]}],[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}],[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}],[6,"smoothly-quiet",{"color":[1]}],[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}],[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}],[2,"smoothly-skeleton",{"widths":[16],"width":[1],"color":[1],"period":[2],"distance":[1],"align":[513]}],[6,"smoothly-table",null,[[0,"expansionLoad","handleEvents"],[0,"expansionOpen","handleEvents"]]],[6,"smoothly-table-cell"],[6,"smoothly-table-header",{"name":[1]}],[6,"smoothly-table-row",null,[[0,"expansionLoad","onExpansionLoad"],[0,"expansionOpen","onExpansionOpen"]]],[6,"smoothly-input-date",{"name":[513],"value":[1025],"open":[1028],"max":[1025],"min":[1025],"disabled":[1028]},[[0,"dateSet","dateSetHandler"]]],[1,"smoothly-menu-options",{"emptyMenuLabel":[1025,"empty-menu-label"],"newOptionLabel":[1,"new-option-label"],"maxMenuHeight":[1,"max-menu-height"],"order":[4],"optionStyle":[8,"option-style"],"options":[1040],"resetHighlightOnOptionsChange":[1028,"reset-highlight-on-options-change"],"mutable":[4],"filteredOptions":[32],"highlightIndex":[32],"keyword":[32],"moveHighlight":[64],"setHighlight":[64],"getHighlighted":[64],"filterOptions":[64]},[[0,"optionHover","optionHoverHandler"]]],[2,"smoothly-notification",{"notice":[16],"tick":[32]},[[0,"trigger","onTrigger"]]],[2,"smoothly-display-date-time",{"datetime":[1]}],[2,"smoothly-spinner",{"active":[516],"size":[513]}],[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]],[0,"smoothly-tuple",{"tuple":[16]}],[1,"smoothly-option",{"aliases":[513],"dataHighlight":[1540,"data-highlight"],"name":[1537],"value":[1537],"divider":[1540],"new":[4]}],[2,"smoothly-calendar",{"month":[1025],"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"doubleInput":[516,"double-input"],"firstSelected":[32]}],[6,"smoothly-input",{"name":[513],"value":[1032],"type":[513],"required":[1540],"minLength":[1026,"min-length"],"showLabel":[516,"show-label"],"maxLength":[1026,"max-length"],"autocomplete":[1028],"pattern":[1040],"placeholder":[1025],"disabled":[1028],"readonly":[1028],"currency":[513],"initialValue":[32],"getFormData":[64],"setKeepFocusOnReRender":[64],"setSelectionRange":[64]}],[2,"smoothly-input-month",{"value":[1025]}],[6,"smoothly-selector",{"opened":[32],"selectedElement":[32],"missing":[32],"filter":[32]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]],[6,"smoothly-item",{"value":[8],"selected":[1540],"filter":[64]},[[0,"click","onClick"]]],[6,"smoothly-trigger",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]],[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}]]]], options);
|
|
17
17
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as App,N as Notice}from"./p-
|
|
1
|
+
export{A as App,C as Cosmetic,N as Notice,r as redirect}from"./p-76e88859.js";import{I as e}from"./p-b1c579b3.js";export{M as Message,T as Trigger}from"./p-b1c579b3.js";export{G as GoogleFont}from"./p-bd478a53.js";import"./p-191ee4b8.js";class o{constructor(){}static get value(){return o.valueCache=localStorage.getItem("clientIdentifier")||void 0,o.valueCache||(o.valueCache=e.generate(12),localStorage.setItem("clientIdentifier",o.valueCache)),o.valueCache}}export{o as ClientIdentifier}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let e,t,n,l=!1,o=!1,s=!1,i=!1,r=null,c=!1;const f="undefined"!=typeof window?window:{},a=f.document||{head:{}},u={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},d=e=>Promise.resolve(e),$=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),h=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=e,i=y(t,o),r=p(n);u.ael(s,l,i,r),(t.o=t.o||[]).push((()=>u.rel(s,l,i,r)))}))},y=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){$e(e)}},p=e=>0!=(2&e),m="http://www.w3.org/1999/xlink",b=new WeakMap,w=e=>"sc-"+e.$,g={},v=e=>"object"==(e=typeof e)||"function"===e,k=(e,t,...n)=>{let l=null,o=null,s=null,i=!1,r=!1;const c=[],f=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?f(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!v(l))&&(l+=""),i&&r?c[c.length-1].h+=l:c.push(i?j(null,l):l),r=i)};if(f(n),t){t.key&&(o=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,O);const a=j(e,null);return a.p=t,c.length>0&&(a.m=c),a.g=o,a.v=s,a},j=(e,t)=>({t:0,k:e,h:t,j:null,m:null,p:null,g:null,v:null}),S={},O={forEach:(e,t)=>e.map(M).forEach(t),map:(e,t)=>e.map(M).map(t).map(x)},M=e=>({vattrs:e.p,vchildren:e.m,vkey:e.g,vname:e.v,vtag:e.k,vtext:e.h}),x=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),k(e.vtag,t,...e.vchildren||[])}const t=j(e.vtag,e.vtext);return t.p=e.vattrs,t.m=e.vchildren,t.g=e.vkey,t.v=e.vname,t},C=(e,t,n,l,o,s)=>{if(n!==l){let i=de(e,t),r=t.toLowerCase();if("class"===t){const t=e.classList,o=P(n),s=P(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const c=v(l);if((i||c&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let f=!1;r!==(r=r.replace(/^xlink\:?/,""))&&(t=r,f=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(f?e.removeAttributeNS(m,t):e.removeAttribute(t)):(!i||4&s||o)&&!c&&(l=!0===l?"":l,f?e.setAttributeNS(m,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):de(f,r)?r.slice(2):r[2]+t.slice(3),n&&u.rel(e,t,n,!1),l&&u.ael(e,t,l,!1)}},R=/\s/,P=e=>e?e.split(R):[],T=(e,t,n,l)=>{const o=11===t.j.nodeType&&t.j.host?t.j.host:t.j,s=e&&e.p||g,i=t.p||g;for(l in s)l in i||C(o,l,s[l],void 0,n,t.t);for(l in i)C(o,l,s[l],i[l],n,t.t)},E=(o,r,c,f)=>{const u=r.m[c];let d,$,h,y=0;if(l||(s=!0,"slot"===u.k&&(e&&f.classList.add(e+"-s"),u.t|=u.m?2:1)),null!==u.h)d=u.j=a.createTextNode(u.h);else if(1&u.t)d=u.j=a.createTextNode("");else{if(i||(i="svg"===u.k),d=u.j=a.createElementNS(i?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&u.t?"slot-fb":u.k),i&&"foreignObject"===u.k&&(i=!1),T(null,u,i),null!=e&&d["s-si"]!==e&&d.classList.add(d["s-si"]=e),u.m)for(y=0;y<u.m.length;++y)$=E(o,u,y,d),$&&d.appendChild($);"svg"===u.k?i=!1:"foreignObject"===d.tagName&&(i=!0)}return d["s-hn"]=n,3&u.t&&(d["s-sr"]=!0,d["s-cr"]=t,d["s-sn"]=u.v||"",h=o&&o.m&&o.m[c],h&&h.k===u.k&&o.j&&L(o.j,!1)),d},L=(e,t)=>{u.t|=1;const l=e.childNodes;for(let e=l.length-1;e>=0;e--){const o=l[e];o["s-hn"]!==n&&o["s-ol"]&&(F(o).insertBefore(o,D(o)),o["s-ol"].remove(),o["s-ol"]=void 0,s=!0),t&&L(o,t)}u.t&=-2},N=(e,t,l,o,s,i)=>{let r,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===n&&(c=c.shadowRoot);s<=i;++s)o[s]&&(r=E(null,l,s,e),r&&(o[s].j=r,c.insertBefore(r,D(t))))},W=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.j,z(l),o=!0,s["s-ol"]?s["s-ol"].remove():L(s,!0),s.remove())},A=(e,t)=>e.k===t.k&&("slot"===e.k?e.v===t.v:e.g===t.g),D=e=>e&&e["s-ol"]||e,F=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,H=(e,t)=>{const n=t.j=e.j,l=e.m,o=t.m,s=t.k,r=t.h;let c;null===r?(i="svg"===s||"foreignObject"!==s&&i,"slot"===s||T(e,t,i),null!==l&&null!==o?((e,t,n,l)=>{let o,s,i=0,r=0,c=0,f=0,a=t.length-1,u=t[0],d=t[a],$=l.length-1,h=l[0],y=l[$];for(;i<=a&&r<=$;)if(null==u)u=t[++i];else if(null==d)d=t[--a];else if(null==h)h=l[++r];else if(null==y)y=l[--$];else if(A(u,h))H(u,h),u=t[++i],h=l[++r];else if(A(d,y))H(d,y),d=t[--a],y=l[--$];else if(A(u,y))"slot"!==u.k&&"slot"!==y.k||L(u.j.parentNode,!1),H(u,y),e.insertBefore(u.j,d.j.nextSibling),u=t[++i],y=l[--$];else if(A(d,h))"slot"!==u.k&&"slot"!==y.k||L(d.j.parentNode,!1),H(d,h),e.insertBefore(d.j,u.j),d=t[--a],h=l[++r];else{for(c=-1,f=i;f<=a;++f)if(t[f]&&null!==t[f].g&&t[f].g===h.g){c=f;break}c>=0?(s=t[c],s.k!==h.k?o=E(t&&t[r],n,c,e):(H(s,h),t[c]=void 0,o=s.j),h=l[++r]):(o=E(t&&t[r],n,r,e),h=l[++r]),o&&F(u.j).insertBefore(o,D(u.j))}i>a?N(e,null==l[$+1]?null:l[$+1].j,n,l,r,$):r>$&&W(t,i,a)})(n,l,t,o):null!==o?(null!==e.h&&(n.textContent=""),N(n,null,t,o,0,o.length-1)):null!==l&&W(l,0,l.length-1),i&&"svg"===s&&(i=!1)):(c=n["s-cr"])?c.parentNode.textContent=r:e.h!==r&&(n.data=r)},U=e=>{const t=e.childNodes;let n,l,o,s,i,r;for(l=0,o=t.length;l<o;l++)if(n=t[l],1===n.nodeType){if(n["s-sr"])for(i=n["s-sn"],n.hidden=!1,s=0;s<o;s++)if(r=t[s].nodeType,t[s]["s-hn"]!==n["s-hn"]||""!==i){if(1===r&&i===t[s].getAttribute("slot")){n.hidden=!0;break}}else if(1===r||3===r&&""!==t[s].textContent.trim()){n.hidden=!0;break}U(n)}},q=[],V=e=>{let t,n,l,s,i,r,c=0;const f=e.childNodes,a=f.length;for(;c<a;c++){if(t=f[c],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,s=t["s-sn"],r=l.length-1;r>=0;r--)n=l[r],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(_(n,s)?(i=q.find((e=>e.S===n)),o=!0,n["s-sn"]=n["s-sn"]||s,i?i.O=t:q.push({O:t,S:n}),n["s-sr"]&&q.map((e=>{_(e.S,n["s-sn"])&&(i=q.find((e=>e.S===n)),i&&!e.O&&(e.O=i.O))}))):q.some((e=>e.S===n))||q.push({S:n}));1===t.nodeType&&V(t)}},_=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,z=e=>{e.p&&e.p.ref&&e.p.ref(null),e.m&&e.m.map(z)},B=e=>fe(e).M,G=(e,t,n)=>{const l=B(e);return{emit:e=>I(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},I=(e,t,n)=>{const l=u.ce(t,n);return e.dispatchEvent(l),l},J=(e,t)=>{t&&!e.C&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.C=t)))},K=(e,t)=>{if(e.t|=16,!(4&e.t))return J(e,e.R),je((()=>Q(e,t)));e.t|=512},Q=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>le(n,e,t))),e.u=null),l=le(n,"componentWillLoad")),oe(l,(()=>X(e,n,t)))},X=async(e,t,n)=>{const l=e.M,o=l["s-rc"];n&&(e=>{const t=e.P,n=e.M,l=t.t,o=((e,t)=>{let n=w(t);const l=pe.get(n);if(e=11===e.nodeType?e:a,l)if("string"==typeof l){let t,o=b.get(e=e.head||e);o||b.set(e,o=new Set),o.has(n)||(t=a.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"),2&l&&n.classList.add(o+"-s"))})(e);Y(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>ee(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},Y=(i,c)=>{try{r=c,c=c.render&&c.render(),i.t&=-17,i.t|=2,((i,r)=>{const c=i.M,f=i.P,d=i.T||j(null,null),$=(e=>e&&e.k===S)(r)?r:k(null,null,r);if(n=c.tagName,f.L&&($.p=$.p||{},f.L.map((([e,t])=>$.p[t]=c[e]))),$.k=null,$.t|=4,i.T=$,$.j=d.j=c.shadowRoot||c,e=c["s-sc"],t=c["s-cr"],l=0!=(1&f.t),o=!1,H(d,$),u.t|=1,s){let e,t,n,l,o,s;V($.j);let i=0;for(;i<q.length;i++)e=q[i],t=e.S,t["s-ol"]||(n=a.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(i=0;i<q.length;i++)if(e=q[i],t=e.S,e.O){for(l=e.O.parentNode,o=e.O.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),l.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}o&&U($.j),u.t&=-2,q.length=0})(i,c)}catch(e){$e(e,i.M)}return r=null,null},Z=()=>r,ee=e=>{const t=e.M,n=e.i,l=e.R;le(n,"componentDidRender"),64&e.t||(e.t|=64,se(t),le(n,"componentDidLoad"),e.N(t),l||ne()),e.W(t),e.C&&(e.C(),e.C=void 0),512&e.t&&ke((()=>K(e,!1))),e.t&=-517},te=e=>{{const t=fe(e),n=t.M.isConnected;return n&&2==(18&t.t)&&K(t,!1),n}},ne=()=>{se(a.documentElement),ke((()=>I(f,"appload",{detail:{namespace:"smoothly"}})))},le=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){$e(e)}},oe=(e,t)=>e&&e.then?e.then(t):t(),se=e=>e.classList.add("hydrated"),ie=(e,t,n)=>{if(t.A){e.watchers&&(t.D=e.watchers);const l=Object.entries(t.A),o=e.prototype;if(l.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(o,e,{get(){return((e,t)=>fe(this).F.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=fe(e),s=o.M,i=o.F.get(t),r=o.t,c=o.i;if(n=((e,t)=>null==e||v(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.A[t][0]),(!(8&r)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(o.F.set(t,n),c)){if(l.D&&128&r){const e=l.D[t];e&&e.map((e=>{try{c[e](n,i,t)}catch(e){$e(e,s)}}))}2==(18&r)&&K(o,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(o,e,{value(...t){const n=fe(this);return n.H.then((()=>n.i[e](...t)))}})})),1&n){const n=new Map;o.attributeChangedCallback=function(e,t,l){u.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(o.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const o=l[1]||e;return n.set(o,e),512&l[0]&&t.L.push([e,o]),o}))}}return e},re=(e,t={})=>{const n=[],l=t.exclude||[],o=f.customElements,s=a.head,i=s.querySelector("meta[charset]"),r=a.createElement("style"),c=[];let d,y=!0;Object.assign(u,t),u.l=new URL(t.resourcesUrl||"./",a.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],$:t[1],A:t[2],U:t[3]};s.A=t[2],s.U=t[3],s.L=[],s.D={};const i=s.$,r=class extends HTMLElement{constructor(e){super(e),ue(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),y?c.push(this):u.jmp((()=>(e=>{if(0==(1&u.t)){const t=fe(e),n=t.P,l=()=>{};if(1&t.t)h(e,t,n.U);else{t.t|=1,12&n.t&&(e=>{const t=e["s-cr"]=a.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){J(t,t.R=n);break}}n.A&&Object.entries(n.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.t)){{if(t.t|=32,(o=ye(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.D=o.watchers,ie(o,n,2),o.isProxied=!0);const e=()=>{};t.t|=8;try{new o(t)}catch(e){$e(e)}t.t&=-9,t.t|=128,e()}if(o.style){let e=o.style;const t=w(n);if(!pe.has(t)){const l=()=>{};((e,t,n)=>{let l=pe.get(e);$&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,pe.set(e,l)})(t,e,!!(1&n.t)),l()}}}const s=t.R,i=()=>K(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,n)}l()}})(this)))}disconnectedCallback(){u.jmp((()=>(()=>{if(0==(1&u.t)){const e=fe(this),t=e.i;e.o&&(e.o.map((e=>e())),e.o=void 0),le(t,"disconnectedCallback")}})()))}componentOnReady(){return fe(this).q}};s.V=e[0],l.includes(i)||o.get(i)||(n.push(i),o.define(i,ie(r,s,1)))}))})),r.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",r.setAttribute("data-styles",""),s.insertBefore(r,i?i.nextSibling:s.firstChild),y=!1,c.length?c.map((e=>e.connectedCallback())):u.jmp((()=>d=setTimeout(ne,30)))},ce=new WeakMap,fe=e=>ce.get(e),ae=(e,t)=>ce.set(t.i=e,t),ue=(e,t)=>{const n={t:0,M:e,P:t,F:new Map};return n.H=new Promise((e=>n.W=e)),n.q=new Promise((e=>n.N=e)),e["s-p"]=[],e["s-rc"]=[],h(e,n,t.U),ce.set(e,n)},de=(e,t)=>t in e,$e=(e,t)=>(0,console.error)(e,t),he=new Map,ye=e=>{const t=e.$.replace(/-/g,"_"),n=e.V,l=he.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(he.set(n,e),e[t])),$e)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},pe=new Map,me=[],be=[],we=(e,t)=>n=>{e.push(n),c||(c=!0,t&&4&u.t?ke(ve):u.raf(ve))},ge=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){$e(e)}e.length=0},ve=()=>{ge(me),ge(be),(c=me.length>0)&&u.raf(ve)},ke=e=>d().then(e),je=we(be,!0);export{S as H,B as a,re as b,G as c,te as f,Z as g,k as h,d as p,ae as r}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as e,f as t,h as n}from"./p-191ee4b8.js";const r=e=>!("isConnected"in e)||e.isConnected,i=(()=>{let e;return(...t)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let t of e.keys())e.set(t,e.get(t).filter(r))})(...t)}),2e3)}})();let o;const f=(e,t)=>{var n;return"to"in e?{path:e.path,to:e.to}:{path:e.path,id:e.id,jsx:null!==(n=e.render)&&void 0!==n?n:t}},a=(e,t=o)=>({href:e,onClick:n=>{n.metaKey||n.ctrlKey||2!=n.which&&1!=n.button&&(n.preventDefault(),t.push(e))}}),l=(e,t)=>{if("string"==typeof t){if(t===e)return{}}else if("function"==typeof t){const n=t(e);if(n)return!0===n?{}:{...n}}else{const n=t.exec(e);if(n)return t.lastIndex=0,{...n}}},s=e=>e.pathname.toLowerCase(),d=(()=>{const n=window,r=new URL(n.location.href),f=(void 0,s),{state:a,onChange:d,dispose:u}=((n,r)=>{const o=((e,t=((e,t)=>e!==t))=>{let n=new Map(Object.entries(null!=e?e:{}));const r={dispose:[],get:[],set:[],reset:[]},i=()=>{n=new Map(Object.entries(null!=e?e:{})),r.reset.forEach((e=>e()))},o=e=>(r.get.forEach((t=>t(e))),n.get(e)),f=(e,i)=>{const o=n.get(e);t(i,o,e)&&(n.set(e,i),r.set.forEach((t=>t(e,i,o))))},a="undefined"==typeof Proxy?{}:new Proxy(e,{get:(e,t)=>o(t),ownKeys:()=>Array.from(n.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>n.has(t),set:(e,t,n)=>(f(t,n),!0)}),l=(e,t)=>(r[e].push(t),()=>{((e,t)=>{const n=e.indexOf(t);n>=0&&(e[n]=e[e.length-1],e.length--)})(r[e],t)});return{state:a,get:o,set:f,on:l,onChange:(t,n)=>{const r=l("set",((e,r)=>{e===t&&n(r)})),i=l("reset",(()=>n(e[t])));return()=>{r(),i()}},use:(...e)=>{const t=e.reduce(((e,t)=>(t.set&&e.push(l("set",t.set)),t.get&&e.push(l("get",t.get)),t.reset&&e.push(l("reset",t.reset)),t.dispose&&e.push(l("dispose",t.dispose)),e)),[]);return()=>t.forEach((e=>e()))},dispose:()=>{r.dispose.forEach((e=>e())),i()},reset:i,forceUpdate:e=>{const t=n.get(e);r.set.forEach((n=>n(e,t,t)))}}})(n,r);return o.use((()=>{if("function"!=typeof e)return{};const n=new Map;return{dispose:()=>n.clear(),get:t=>{const r=e();r&&((e,t,n)=>{const r=e.get(t);r?r.includes(n)||r.push(n):e.set(t,[n])})(n,t,r)},set:e=>{const r=n.get(e);r&&n.set(e,r.filter(t)),i(n)},reset:()=>{n.forEach((e=>e.forEach(t))),i(n)}}})()),o})({url:r,activePath:f(r)},((e,t,n)=>"url"===n?e.href!==t.href:e!==t)),c=e=>{history.pushState(null,null,e);const t=new URL(e,document.baseURI);a.url=t,a.activePath=f(t)},b=e=>{const{activePath:t}=a;for(let n of e){const r=l(t,n.path);if(r){if(null!=n.to){const r="string"==typeof n.to?n.to:n.to(t);return c(r),b(e)}return{params:r,route:n}}}},g=()=>{const e=new URL(n.location.href);a.url=e,a.activePath=f(e)},v=o={Switch:(e,t)=>{const n=b(t);if(n)return"function"==typeof n.route.jsx?n.route.jsx(n.params):n.route.jsx},get url(){return a.url},get activePath(){return a.activePath},push:c,onChange:d,dispose:()=>{o=void 0,n.removeEventListener("popstate",g),u()}};return g(),n.addEventListener("popstate",g),v})();function u(e){const t=b(e);t?d.push(t):window.location.href=e}const c=(e,t,r)=>{var i;const o=Object.entries(t[0]).reduce(((e,t)=>(e[t[0]]=null,e)),{}),l=s(o);function s(e){let t;return r.forEach([e],(e=>t=e)),null!=t?t:l}function u(e){return r.map([o],(t=>Object.assign(Object.assign({},t),e)))[0]}const c=t.map((e=>Object.assign(Object.assign({},s(e)),{node:e})));return n("smoothly-app",null,n("header",null,n("h1",null,n("a",Object.assign({},a(null!==(i=b(""))&&void 0!==i?i:"/")),e.label)),n("nav",null,n("ul",null,r.map([...c.filter((e=>{var t;return"nav-start"==(null===(t=e.vattrs)||void 0===t?void 0:t.slot)})),...c.filter((e=>{var t,n,r;return(null===(t=e.vattrs)||void 0===t?void 0:t.label)&&(null===(n=e.vattrs)||void 0===n?void 0:n.path)&&"string"==typeof(null===(r=e.vattrs)||void 0===r?void 0:r.path)})),...c.filter((e=>{var t;return"nav-end"==(null===(t=e.vattrs)||void 0===t?void 0:t.slot)}))].map((e=>e.node)),(e=>{var t,n,r,i,o,f,a,s,c;(null===(t=e.vattrs)||void 0===t?void 0:t.label)&&(null===(n=e.vattrs)||void 0===n?void 0:n.path)&&(e=Object.assign(Object.assign({},l),{vtag:"a",vattrs:{href:null===(r=e.vattrs)||void 0===r?void 0:r.path},vchildren:[(null===(i=e.vattrs)||void 0===i?void 0:i.icon)?u({vtag:"smoothly-icon",vattrs:{toolTip:null===(o=e.vattrs)||void 0===o?void 0:o.label,name:null===(f=e.vattrs)||void 0===f?void 0:f.icon,size:"medium"}}):u({vtext:null===(a=e.vattrs)||void 0===a?void 0:a.label})]}));const g=b(null===(s=e.vattrs)||void 0===s?void 0:s.href);return"a"!=e.vtag?e:Object.assign(Object.assign({},e),g?{vattrs:Object.assign(Object.assign({},e.vattrs),{class:[null===(c=e.vattrs)||void 0===c?void 0:c.class,d.activePath==g?"active":""].join(" ")||void 0,href:g})}:{vattrs:Object.assign(Object.assign({},e.vattrs),{target:"new"})})})).map((e=>{var t,r;const i=s(e);return"a"!=i.vtag||(null===(t=i.vattrs)||void 0===t?void 0:t.target)?e:n("a",Object.assign({},i.vattrs,a(null===(r=i.vattrs)||void 0===r?void 0:r.href)),i.vchildren)})).map((e=>n("li",null,e))))),c.filter((e=>{var t;return"header"==(null===(t=e.vattrs)||void 0===t?void 0:t.slot)})).map((e=>e.node))),n("main",null,n(d.Switch,null,c.filter((e=>{var t;return null!=(null===(t=e.vattrs)||void 0===t?void 0:t.path)})).map((e=>{var t,r,i,o,a;const l="string"==typeof(null===(t=e.vattrs)||void 0===t?void 0:t.path)?b(null===(r=e.vattrs)||void 0===r?void 0:r.path):null===(i=e.vattrs)||void 0===i?void 0:i.path;return(null===(o=e.vattrs)||void 0===o?void 0:o.to)?n(f,{path:l,to:null===(a=e.vattrs)||void 0===a?void 0:a.to}):n(f,{path:l},e.node)})))))};function b(e){const t=new URL(e,document.baseURI);return""==e?new URL(document.baseURI).pathname:t.toString().startsWith(document.baseURI)?t.pathname:void 0}class g{constructor(e,t,n){switch(this.stateValue=e,this.messageValue=t,this.task=n,this.listeners=[],e){case"delayed":this.timer=window.setTimeout((()=>this.execute()),5e3);break;case"executing":this.execute();break;case"success":case"warning":case"failed":this.startCloseTimer()}}get state(){return this.stateValue}set state(e){this.stateValue!=e&&(this.stateValue=e,this.emit())}get message(){return this.messageValue}set message(e){this.messageValue!=e&&(this.messageValue=e,this.emit())}listen(e){this.listeners.push(e)}unlisten(e){this.listeners.filter((t=>t!=e))}emit(){this.listeners.forEach((e=>e(this)))}execute(){this.clearTimer(),this.task?(this.state="executing",this.task(this).then((e=>{this.messageValue=e[1],this.state=e[0]?"success":"failed",this.startCloseTimer()}))):this.state="failed"}startCloseTimer(){this.timer=window.setTimeout((()=>this.close()),15e3)}close(){this.clearTimer(),this.state="closed"}clearTimer(){this.timer&&(window.clearTimeout(this.timer),this.timer=void 0)}static delay(e,t){return new g("delayed",e,t)}static execute(e,t){return new g("executing",e,t)}static succeded(e){return new g("success",e)}static failed(e){return new g("failed",e)}static warn(e){return new g("warning",e)}}var v,h;!function(e){e.is=function(e){const t="string"==typeof e&&e.match(/[0-9a-fA-F]/g)||void 0;return"string"==typeof e&&e.length>3&&"#"==e[0]&&(3==(null==t?void 0:t.length)||6==(null==t?void 0:t.length))}}(v||(v={})),function(e){e.is=function(e){const t="string"==typeof e&&e.length>11?e.substring(4,e.length-1).split(","):[];return"string"==typeof e&&e.length>11&&"hsl("==e.substr(0,4)&&")"==e.substr(e.length-1,1)&&3==t.length&&t.every(((e,t)=>{var n,r;let i=!1;if(0==t)i=!Number.isNaN(e)&&(null===(n=e.match(/[0-9]/g))||void 0===n?void 0:n.length)==e.length&&Number(e)>=0&&Number(e)<=360;else{const t=e.substr(0,e.length-1);i="%"==e[e.length-1]&&!Number.isNaN(t)&&(null===(r=t.match(/[0-9]/g))||void 0===r?void 0:r.length)==t.length&&Number(t)>=0&&Number(t)<=100}return i}))}}(h||(h={}));const p={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var m,y,w,k,j;function O(e,t){return e.reduce(((e,n)=>"object"==typeof t&&null!=t&&"string"==typeof t[n]?Object.assign(Object.assign({},e),{[n]:t[n]}):e),{})}!function(e){e.types=()=>Object.keys(p),e.is=function(t){return"string"==typeof t&&e.types().includes(t.toLowerCase())}}(m||(m={})),function(e){e.is=function(e){const t="string"==typeof e&&e.length>9?e.substring(4,e.length-1).split(","):[];return"string"==typeof e&&e.length>9&&"rgb("==e.substr(0,4)&&")"==e.substr(e.length-1,1)&&3==t.length&&t.every((e=>{var t;return!Number.isNaN(e)&&(null===(t=e.match(/[0-9]/g))||void 0===t?void 0:t.length)==e.length&&Number(e)>=0&&Number(e)<=255}))}}(y||(y={})),function(e){function t(e){let n="0,0,0";return 7==e.length?n=`${parseInt(e.substr(1,2),16)},${parseInt(e.substr(3,2),16)},${parseInt(e.substr(5,2),16)}`:4==e.length&&(n=t(`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`)),n}function n(e){return e.substring(4,e.length-1)}function r(e){let t,n,r,o,f,a,l="";const s=e.substring(4,e.length-1).split(",").map(((e,t)=>Number(0==t?e:e.substr(0,e.length-1))));if(3==s.length){if(t=s[0]/360,n=s[1]/100,r=s[2]/100,0==n)o=f=a=r;else{const e=r<.5?r*(1+n):r+n-r*n,l=2*r-e;o=i(l,e,t+1/3),f=i(l,e,t),a=i(l,e,t-1/3)}l=`${Math.round(255*o)},${Math.round(255*f)},${Math.round(255*a)}`}return l}function i(e,t,n){let r=e;return n<0&&(n+=1),n>1&&(n-=1),n<1/6?r=e+6*(t-e)*n:n<.5?r=t:n<2/3&&(r=e+(t-e)*(2/3-n)*6),r}e.is=function(e){const t="string"==typeof e?e.split(","):[];return 3==t.length&&t.every((e=>{var t;return!Number.isNaN(e)&&(null===(t=e.match(/[0-9]/g))||void 0===t?void 0:t.length)==e.length&&Number(e)>=0&&Number(e)<=255}))},e.from=function(i){let o;const f="string"==typeof i?i.replace(/ /g,"").toLowerCase():void 0;return f?e.is(f)?o=f:v.is(f)?o=t(f):y.is(f)?o=n(f):m.is(f)?o=t(p[f]):h.is(f)&&(o=r(f)):o=void 0,o},e.fromHex=t,e.fromRgb=n,e.fromHsl=r}(w||(w={})),function(e){function t(e){return"string"==typeof e&&(w.is(e)||v.is(e)||h.is(e)||m.is(e)||y.is(e))}e.is=t,e.from=function(e){return t(e)?e:void 0},e.Names=p,e.Name=m,e.CommaRgb=w,e.Rgb=y,e.Hex=v,e.Hsl=h}(k||(k={})),function(e){e.types=e,e.from=function(e){let t={};return"object"==typeof e&&e&&(t={text:O(["background","color"],e.text),border:O(["background","color","style","radius","width"],e.border),gap:"string"==typeof e.gap?e.gap:void 0,dangerColor:"string"==typeof e.dangerColor?e.dangerColor:"string"==typeof e.danger_color?e.danger_color:void 0,fontFamily:"string"==typeof e.fontFamily?e.fontFamily:"string"==typeof e.font_family?e.font_family:void 0,background:"string"==typeof e.background?e.background:void 0},Object.keys(t).forEach((e=>{var n;(null==t[e]||"object"==typeof t[e]&&t[e]&&0==Object.keys(null!==(n=t[e])&&void 0!==n?n:{}).length)&&delete t[e]}))),t},e.Color=k}(j||(j={}));export{c as A,j as C,g as N,u as r}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,a as i}from"./p-
|
|
1
|
+
import{r as t,c as s,a as i}from"./p-191ee4b8.js";const h=class{constructor(i){t(this,i),this.reorder=s(this,"reorder",7)}get children(){let t=[];if(this.childrenCache)t=this.childrenCache;else{for(let s=0;s<this.element.children.length;s++){const i=this.element.children[s];if(i instanceof HTMLElement){const s=i.getBoundingClientRect();t.push({top:s.top,middle:s.top+s.height/2,bottom:s.bottom,element:i})}}this.childrenCache=t}return t}onMouseDown(t){if(!this.move&&this.element.children.length>1){this.bounds=this.element.getBoundingClientRect(),this.childrenCache=void 0;const s=this.getCurrentIndex(t.clientY);this.dragged=Object.assign(Object.assign({},this.children[s]),{startY:t.clientY,offsetY:t.clientY-this.children[s].middle,index:s,height:s<this.children.length-1?this.children[s+1].top-this.children[s].top:this.children[s].bottom-this.children[s-1].bottom}),this.dragged.element.className+=" dragging"}}onMouseMove(t){if(this.dragged&&this.bounds&&t.clientY>=this.bounds.top&&t.clientY<=this.bounds.bottom){const s=this.getCurrentIndex(t.clientY-this.dragged.offsetY);this.translate(this.dragged.index,s,t.clientY-this.dragged.startY)}}onMouseUp(t){if(this.dragged){this.dragged.element.className=this.dragged.element.className.replace(" dragging","");const s=this.getCurrentIndex(t.clientY-this.dragged.offsetY);this.translate(this.dragged.index,s,this.children[s].top-this.dragged.top),this.move={from:this.dragged.index,to:s},this.dragged=void 0,window.setTimeout((()=>{if(this.move){const t=[...this.children.map((t=>t.element))],s=t.splice(this.move.from,1);t.splice(this.move.to,0,...s),t.forEach((t=>this.element.removeChild(t))),t.forEach((t=>{t.style.transform="",this.element.appendChild(t)})),this.reorder.emit([this.move.from,this.move.to]),this.move=void 0}}),500)}}translate(t,s,i){for(let h=0;h<this.children.length;h++){let o;this.dragged&&(o=t<s&&h>t&&h<=s?-this.dragged.height:t>s&&h<t&&h>=s?this.dragged.height:h==t?i:0,this.children[h].element.style.transform=`translateY(${o}px)`)}}getCurrentIndex(t){return this.children.findIndex((s=>t<s.bottom))}componentDidLoad(){this.element.childNodes.forEach((t=>{t.addEventListener("mousedown",(t=>this.onMouseDown(t))),t.addEventListener("mousemove",(t=>this.onMouseMove(t))),t.addEventListener("mouseup",(t=>this.onMouseUp(t)))}))}get element(){return i(this)}};h.style="smoothly-reorder>*{cursor:move;transition:transform 0.3s}smoothly-reorder>*.dragging{transition:none;box-shadow:0 0 10px rgba(var(--smoothly-dark-color));z-index:1;user-select:none}";export{h as smoothly_reorder}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,H as h}from"./p-191ee4b8.js";const e=class{constructor(i){t(this,i),this.defaultSizes={large:{height:"50rem",width:"50rem"},medium:{height:"30rem",width:"30rem"},small:{height:"10rem",width:"10rem"},tiny:{height:"5rem",width:"5rem"}}}render(){const t=this.size?"object"==typeof this.size?this.size.height:this.defaultSizes[this.size].height:"10rem",e=this.size?"object"==typeof this.size?this.size.width:this.defaultSizes[this.size].width:"10rem";return i(h,{style:{"min-height":t,"min-width":e,"--size-height":t,"--size-width":e,"--color":this.color}},i("object",{height:t,width:e,type:"image/svg+xml",data:this.url}))}};e.style=".sc-smoothly-svg-h{display:block;min-width:var(--size-width);min-height:var(--size-height);background-color:rgb(var(--color))}object.sc-smoothly-svg{min-width:var(--size-width);min-height:var(--size-height);background-color:rgb(var(--color))}";export{e as smoothly_svg}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as o}from"./p-
|
|
1
|
+
import{r as s,h as o}from"./p-191ee4b8.js";import{G as t}from"./p-bd478a53.js";const r=class{constructor(o){s(this,o)}render(){return t.is(this.value)?o("style",null,t.styleImportString(this.value)):""}};export{r as smoothly_google_font}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c as t,h as o,a as r}from"./p-
|
|
1
|
+
import{r as s,c as t,h as o,a as r}from"./p-191ee4b8.js";import{M as e,T as i}from"./p-b1c579b3.js";import"./p-bd478a53.js";const n=class{constructor(o){s(this,o),this.trigger=t(this,"trigger",7),this.message=t(this,"message",7)}componentDidLoad(){e.listen(this.listen,((s,t)=>{i.is(t)?this.trigger.emit(t):this.message.emit({destination:s,content:t})}),window)}render(){return o("slot",null)}get element(){return r(this)}};n.style=".sc-smoothly-trigger-source-h{display:block}[hidden].sc-smoothly-trigger-source-h{display:none}";export{n as smoothly_trigger_source}
|