zen-wdg 2.2.6 → 2.2.7
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/components/UI/Dropdown.vue.d.ts +33 -0
- package/dist/components/UI/Modal.vue.d.ts +6 -0
- package/dist/widgets/z-search-widget.vue.d.ts +16 -0
- package/dist/zen-wdg.css +1 -1
- package/dist/zen-wdg.es.js +229 -44
- package/dist/zen-wdg.umd.js +1 -1
- package/package.json +1 -1
- package/src/widgets/z-marked-widget.vue +65 -12
- package/src/widgets/z-search-widget.vue +37 -10
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
modelValue: ObjectConstructor;
|
|
3
|
+
options: {
|
|
4
|
+
type: ArrayConstructor;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
placeholder: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
}>, {}, {
|
|
12
|
+
isOpen: boolean;
|
|
13
|
+
}, {
|
|
14
|
+
selected(): Record<string, any> | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
toggleDropdown(): void;
|
|
17
|
+
selectItem(item: any): void;
|
|
18
|
+
selectOption(option: any): void;
|
|
19
|
+
handleClickOutside(event: any): void;
|
|
20
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
modelValue: ObjectConstructor;
|
|
22
|
+
options: {
|
|
23
|
+
type: ArrayConstructor;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
placeholder: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
}>> & Readonly<{}>, {
|
|
31
|
+
placeholder: string;
|
|
32
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
2
|
+
show: boolean;
|
|
3
|
+
}, {}, {
|
|
4
|
+
toggleModal(): void;
|
|
5
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -10,6 +10,21 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
10
10
|
};
|
|
11
11
|
}>, {}, {
|
|
12
12
|
text: string;
|
|
13
|
+
engines: {
|
|
14
|
+
id: number;
|
|
15
|
+
logo: string;
|
|
16
|
+
label: string;
|
|
17
|
+
search: string;
|
|
18
|
+
}[];
|
|
19
|
+
engine: {
|
|
20
|
+
id: number;
|
|
21
|
+
logo: string;
|
|
22
|
+
label: string;
|
|
23
|
+
search: string;
|
|
24
|
+
};
|
|
25
|
+
urls: {
|
|
26
|
+
url: string;
|
|
27
|
+
};
|
|
13
28
|
}, {}, {
|
|
14
29
|
search(): void;
|
|
15
30
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -27,5 +42,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
27
42
|
}, {}, {
|
|
28
43
|
Input: any;
|
|
29
44
|
Button: any;
|
|
45
|
+
Dropdown: any;
|
|
30
46
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
31
47
|
export default _default;
|
package/dist/zen-wdg.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.clock-container[data-v-e9445086]{display:flex;justify-content:center;align-items:center;height:100%;width:100%}.clock[data-v-e9445086]{text-align:center;font-family:Arial,sans-serif;color:#333;background-color:#14141466;backdrop-filter:blur(.2rem);border-radius:15px;padding:20px;width:100%}.time[data-v-e9445086]{font-size:4em;font-weight:700;color:#fff;display:flex;justify-content:center}.date[data-v-e9445086]{font-size:1.2em;color:#fff;margin-top:10px}@media (max-width: 500px){.time[data-v-e9445086]{font-size:3em}.date[data-v-e9445086]{font-size:1em}}input[data-v-2ad90286]{padding:.5rem 1rem;border:none}.full-width[data-v-2ad90286]{width:100%}input[data-v-2ad90286]:focus{outline:none}.round[data-v-2ad90286]{border-radius:.2rem}.rounded[data-v-2ad90286]{border-radius:10rem}button[data-v-10678914]{cursor:pointer;border:none;padding:.5rem;display:flex;align-items:center;justify-content:center;gap:.5rem;transition:.5s ease-in-out background}.w-full[data-v-10678914]{width:100%}.bound[data-v-10678914]{border-radius:.2rem}.bounded[data-v-10678914]{border-radius:50%}.flat[data-v-10678914]{padding:0;line-height:0;background-color:transparent}.container-search[data-v-
|
|
1
|
+
.clock-container[data-v-e9445086]{display:flex;justify-content:center;align-items:center;height:100%;width:100%}.clock[data-v-e9445086]{text-align:center;font-family:Arial,sans-serif;color:#333;background-color:#14141466;backdrop-filter:blur(.2rem);border-radius:15px;padding:20px;width:100%}.time[data-v-e9445086]{font-size:4em;font-weight:700;color:#fff;display:flex;justify-content:center}.date[data-v-e9445086]{font-size:1.2em;color:#fff;margin-top:10px}@media (max-width: 500px){.time[data-v-e9445086]{font-size:3em}.date[data-v-e9445086]{font-size:1em}}input[data-v-2ad90286]{padding:.5rem 1rem;border:none}.full-width[data-v-2ad90286]{width:100%}input[data-v-2ad90286]:focus{outline:none}.round[data-v-2ad90286]{border-radius:.2rem}.rounded[data-v-2ad90286]{border-radius:10rem}button[data-v-10678914]{cursor:pointer;border:none;padding:.5rem;display:flex;align-items:center;justify-content:center;gap:.5rem;transition:.5s ease-in-out background}.w-full[data-v-10678914]{width:100%}.bound[data-v-10678914]{border-radius:.2rem}.bounded[data-v-10678914]{border-radius:50%}.flat[data-v-10678914]{padding:0;line-height:0;background-color:transparent}.container[data-v-d1389195]{position:relative}.select[data-v-d1389195]{border-radius:.4rem;gap:1rem;cursor:pointer;display:flex;align-items:center;justify-content:center}.select>span[data-v-d1389195]{display:flex;align-items:center}.list[data-v-d1389195]{position:absolute;width:200px;top:110%;left:0;padding:.2rem;border-radius:.6rem;gap:.2rem;box-shadow:0 2px 6px #0000000f;backdrop-filter:blur(10px) saturate(180%);-webkit-backdrop-filter:blur(10px) saturate(180%);background-color:#14141499;border:1px solid rgba(255,255,255,.3)}.item[data-v-d1389195]{gap:1rem;padding:.2rem .4rem;border-radius:.5rem;cursor:pointer;display:flex;align-items:center;background-color:#0a0a0a66;height:40px}.item.active[data-v-d1389195],.item[data-v-d1389195]:hover{background-color:var(--blue)}.theme-selector-popup[data-v-d1389195]{max-height:200px}.logo[data-v-d1389195]{width:30px;border-radius:.4rem;border:1px solid rgba(255,255,255,.3)}.container-search[data-v-b93f704d]{width:100%;backdrop-filter:blur(10px) saturate(180%);-webkit-backdrop-filter:blur(10px) saturate(180%);background-color:#1414141a;border:1px solid rgba(255,255,255,.3);color:#fff;box-shadow:0 8px 32px #1f268733;padding:.4rem;border-radius:.6rem}.search[data-v-b93f704d]{width:100%;background-color:#0a0a0a99;display:flex;align-items:center;padding:.3rem .8rem;border-radius:.5rem;box-shadow:0 0 .4rem var(--border-color)}.bg-glass[data-v-b93f704d]{background-color:transparent;color:var(--text-color)}.search img[data-v-b93f704d]{width:20px}.todo-widget[data-v-3560194d]{width:100%;background-color:#14141466;backdrop-filter:blur(.2rem);border-radius:16px;padding:20px;color:#fff;box-shadow:0 4px 10px #0000004d;max-width:500px;margin:0 auto}.title[data-v-3560194d]{margin-bottom:16px;text-align:center}.todo-form[data-v-3560194d]{display:flex;gap:10px;margin-bottom:20px}.todo-form input[data-v-3560194d]{flex:1;padding:10px 12px;border:none;border-radius:8px;background-color:#2a2a2a;color:#fff}.todo-form button[data-v-3560194d]{background-color:#007bff;color:#fff;border:none;border-radius:8px;padding:10px 16px;cursor:pointer}.task-section[data-v-3560194d]{margin-bottom:20px}.task-section h3[data-v-3560194d]{margin-bottom:8px;font-size:1rem;color:#ccc}.task-section ul[data-v-3560194d]{list-style:none;padding:0}.task-section li[data-v-3560194d]{background-color:#292929;padding:10px 12px;border-radius:10px;margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.actions button[data-v-3560194d]{margin-left:8px;background:none;border:none;color:#bbb;cursor:pointer;font-size:1rem}.actions button[data-v-3560194d]:hover{color:#fff}.empty[data-v-3560194d]{font-size:.9rem;color:#666}.done[data-v-3560194d]{text-decoration:line-through;color:#777}.container-marked[data-v-5c8411db]{width:100%;display:flex;flex-direction:column;gap:10px}.tabs[data-v-5c8411db]{width:auto;height:auto;display:flex;gap:10px;flex-wrap:wrap;backdrop-filter:blur(10px) saturate(180%);-webkit-backdrop-filter:blur(10px) saturate(180%);background:#ffffff1a;border:1px solid rgba(255,255,255,.3);color:#444;padding:.2rem;border-radius:.6rem;align-self:start}.tabs.dark[data-v-5c8411db]{background:#1414144d;color:#dfdfdf}.container-tab[data-v-5c8411db]{position:relative}.tab[data-v-5c8411db]{padding:8px 2rem;border:none;cursor:pointer;font-weight:600;background-color:transparent;color:unset}.tab.active[data-v-5c8411db]{background-color:#066d5a4d;backdrop-filter:blur(10px) saturate(180%);-webkit-backdrop-filter:blur(10px) saturate(180%);border:1px solid rgba(255,255,255,.3);color:#fff;border-radius:.5rem}.grid[data-v-5c8411db]{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.4rem}.grid.small[data-v-5c8411db]{gap:1.4rem}.card[data-v-5c8411db]{position:relative;flex:1 1 80px}.card.small[data-v-5c8411db]{flex:1 1 180px}.card-link[data-v-5c8411db]{height:115px;padding:16px;border-radius:1rem;box-shadow:0 2px 4px #0000004d;background-color:#e1e1e11a;backdrop-filter:blur(10px) saturate(180%);-webkit-backdrop-filter:blur(10px) saturate(180%);border:1px solid rgba(255,255,255,.3);text-align:center;cursor:pointer;text-decoration:none;color:#202020;display:flex;justify-content:center;flex-direction:column}.card-link[data-v-5c8411db]:hover{backdrop-filter:blur(10px) saturate(180%);-webkit-backdrop-filter:blur(10px) saturate(180%);background-color:#dcdcdc99;border:1px solid rgba(255,255,255,.3)}.card-link.dark[data-v-5c8411db]{background-color:#1414141a;backdrop-filter:blur(10px) saturate(180%);-webkit-backdrop-filter:blur(10px) saturate(180%);border:1px solid rgba(255,255,255,.3);color:#fff}.card-link.dark[data-v-5c8411db]:hover{backdrop-filter:blur(10px) saturate(180%);-webkit-backdrop-filter:blur(10px) saturate(180%);background-color:#0a0a0a99;border:1px solid rgba(255,255,255,.3)}.option-app[data-v-5c8411db]{display:none;position:absolute;top:10px;right:10px;z-index:2;gap:.4rem}.card:hover .option-app[data-v-5c8411db]{display:flex;justify-content:center;align-items:center}.delete-app[data-v-5c8411db],.edit-app[data-v-5c8411db]{cursor:pointer;border-radius:.2rem;width:23px;height:23px;border:none;font-size:.8rem}.edit-app[data-v-5c8411db]{font-size:1rem}.card-link img[data-v-5c8411db]{width:100%;max-width:50px;height:100%;height:50px;border-radius:.4rem}.card-link img.small[data-v-5c8411db]{max-width:55px;height:55px}.column[data-v-5c8411db]{display:flex;flex-direction:column;align-items:center;gap:5px}.add[data-v-5c8411db]{width:50px;height:50px;background:gray;border-radius:.5rem;display:flex;justify-content:center;font-size:2rem;line-height:50px;color:#fff;user-select:none}
|
package/dist/zen-wdg.es.js
CHANGED
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { createElementBlock, openBlock, createElementVNode, createTextVNode, toDisplayString, normalizeClass, withKeys, defineComponent, ref, shallowRef, onMounted, watch, onUnmounted, h, nextTick, resolveComponent, normalizeStyle, createBlock, createCommentVNode, createVNode, withModifiers, withDirectives, vModelText,
|
|
20
|
+
import { createElementBlock, openBlock, createElementVNode, createTextVNode, toDisplayString, normalizeClass, withKeys, defineComponent, ref, shallowRef, onMounted, watch, onUnmounted, h, nextTick, resolveComponent, normalizeStyle, createBlock, createCommentVNode, Fragment, renderList, createVNode, withModifiers, withDirectives, vModelText, defineCustomElement } from "vue";
|
|
21
21
|
const _export_sfc = (sfc, props) => {
|
|
22
22
|
const target = sfc.__vccOpts || sfc;
|
|
23
23
|
for (const [key, val] of props) {
|
|
@@ -25,7 +25,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
25
25
|
}
|
|
26
26
|
return target;
|
|
27
27
|
};
|
|
28
|
-
const _sfc_main$
|
|
28
|
+
const _sfc_main$6 = {
|
|
29
29
|
name: "ZClockWidget",
|
|
30
30
|
data() {
|
|
31
31
|
return {
|
|
@@ -76,26 +76,26 @@ const _sfc_main$5 = {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
|
-
const _hoisted_1$
|
|
80
|
-
const _hoisted_2$
|
|
79
|
+
const _hoisted_1$5 = { class: "clock-container" };
|
|
80
|
+
const _hoisted_2$4 = { class: "clock" };
|
|
81
81
|
const _hoisted_3$3 = { class: "time" };
|
|
82
|
-
const _hoisted_4$
|
|
83
|
-
function _sfc_render$
|
|
84
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
85
|
-
createElementVNode("div", _hoisted_2$
|
|
82
|
+
const _hoisted_4$3 = { class: "date" };
|
|
83
|
+
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
84
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
85
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
86
86
|
createElementVNode("div", _hoisted_3$3, [
|
|
87
87
|
createElementVNode("span", null, toDisplayString($data.hours), 1),
|
|
88
88
|
_cache[0] || (_cache[0] = createTextVNode(":", -1)),
|
|
89
89
|
createElementVNode("span", null, toDisplayString($data.minutes), 1)
|
|
90
90
|
]),
|
|
91
|
-
createElementVNode("div", _hoisted_4$
|
|
91
|
+
createElementVNode("div", _hoisted_4$3, [
|
|
92
92
|
createElementVNode("span", null, toDisplayString($data.dayOfWeek) + ", " + toDisplayString($data.day) + " " + toDisplayString($data.month) + " " + toDisplayString($data.year), 1)
|
|
93
93
|
])
|
|
94
94
|
])
|
|
95
95
|
]);
|
|
96
96
|
}
|
|
97
|
-
const ZClockWidget = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
98
|
-
const _sfc_main$
|
|
97
|
+
const ZClockWidget = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-e9445086"]]);
|
|
98
|
+
const _sfc_main$5 = {
|
|
99
99
|
data() {
|
|
100
100
|
return {};
|
|
101
101
|
},
|
|
@@ -126,8 +126,8 @@ const _sfc_main$4 = {
|
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
};
|
|
129
|
-
const _hoisted_1$
|
|
130
|
-
function _sfc_render$
|
|
129
|
+
const _hoisted_1$4 = ["placeholder", "value"];
|
|
130
|
+
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
131
131
|
return openBlock(), createElementBlock("input", {
|
|
132
132
|
placeholder: $props.placeholder,
|
|
133
133
|
value: $props.modelValue,
|
|
@@ -138,9 +138,9 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
138
138
|
{ "round": $props.round },
|
|
139
139
|
{ "rounded": $props.rounded }
|
|
140
140
|
])
|
|
141
|
-
}, null, 42, _hoisted_1$
|
|
141
|
+
}, null, 42, _hoisted_1$4);
|
|
142
142
|
}
|
|
143
|
-
const Input = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
143
|
+
const Input = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-2ad90286"]]);
|
|
144
144
|
const matchIconName = /^[a-z0-9]+(-[a-z0-9]+)*$/;
|
|
145
145
|
const stringToIcon = (value, validate, allowSimpleName, provider = "") => {
|
|
146
146
|
const colonSeparated = value.split(":");
|
|
@@ -1788,7 +1788,7 @@ const Icon = defineComponent((props, { emit }) => {
|
|
|
1788
1788
|
],
|
|
1789
1789
|
emits: ["load"]
|
|
1790
1790
|
});
|
|
1791
|
-
const _sfc_main$
|
|
1791
|
+
const _sfc_main$4 = {
|
|
1792
1792
|
data() {
|
|
1793
1793
|
return {};
|
|
1794
1794
|
},
|
|
@@ -1842,7 +1842,7 @@ const _sfc_main$3 = {
|
|
|
1842
1842
|
},
|
|
1843
1843
|
methods: {}
|
|
1844
1844
|
};
|
|
1845
|
-
function _sfc_render$
|
|
1845
|
+
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1846
1846
|
const _component_Icon = resolveComponent("Icon");
|
|
1847
1847
|
return openBlock(), createElementBlock("button", {
|
|
1848
1848
|
class: normalizeClass(
|
|
@@ -1873,12 +1873,140 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1873
1873
|
}, null, 8, ["icon", "width", "height"])) : createCommentVNode("", true)
|
|
1874
1874
|
], 6);
|
|
1875
1875
|
}
|
|
1876
|
-
const Button = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1876
|
+
const Button = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-10678914"]]);
|
|
1877
|
+
const _sfc_main$3 = {
|
|
1878
|
+
name: "Dropdown",
|
|
1879
|
+
props: {
|
|
1880
|
+
modelValue: Object,
|
|
1881
|
+
options: {
|
|
1882
|
+
type: Array,
|
|
1883
|
+
required: true
|
|
1884
|
+
},
|
|
1885
|
+
placeholder: {
|
|
1886
|
+
type: String,
|
|
1887
|
+
default: "Seleccionar..."
|
|
1888
|
+
}
|
|
1889
|
+
},
|
|
1890
|
+
data() {
|
|
1891
|
+
return {
|
|
1892
|
+
isOpen: false
|
|
1893
|
+
};
|
|
1894
|
+
},
|
|
1895
|
+
created() {
|
|
1896
|
+
console.log(this.options);
|
|
1897
|
+
},
|
|
1898
|
+
computed: {
|
|
1899
|
+
selected() {
|
|
1900
|
+
return this.modelValue;
|
|
1901
|
+
}
|
|
1902
|
+
},
|
|
1903
|
+
methods: {
|
|
1904
|
+
toggleDropdown() {
|
|
1905
|
+
this.isOpen = !this.isOpen;
|
|
1906
|
+
},
|
|
1907
|
+
selectItem(item) {
|
|
1908
|
+
this.$emit("update:modelValue", item);
|
|
1909
|
+
this.isOpen = false;
|
|
1910
|
+
console.log(item);
|
|
1911
|
+
},
|
|
1912
|
+
selectOption(option) {
|
|
1913
|
+
this.selectedOption = option;
|
|
1914
|
+
this.isOpen = false;
|
|
1915
|
+
this.$emit("update:modelValue", option);
|
|
1916
|
+
this.$emit("change", option);
|
|
1917
|
+
},
|
|
1918
|
+
handleClickOutside(event) {
|
|
1919
|
+
if (!this.$refs.dropdown.contains(event.target)) {
|
|
1920
|
+
this.isOpen = false;
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
},
|
|
1924
|
+
mounted() {
|
|
1925
|
+
document.addEventListener("click", this.handleClickOutside);
|
|
1926
|
+
},
|
|
1927
|
+
beforeUnmount() {
|
|
1928
|
+
document.removeEventListener("click", this.handleClickOutside);
|
|
1929
|
+
}
|
|
1930
|
+
};
|
|
1931
|
+
const _hoisted_1$3 = {
|
|
1932
|
+
class: "container",
|
|
1933
|
+
ref: "dropdown"
|
|
1934
|
+
};
|
|
1935
|
+
const _hoisted_2$3 = { key: 0 };
|
|
1936
|
+
const _hoisted_3$2 = ["src"];
|
|
1937
|
+
const _hoisted_4$2 = {
|
|
1938
|
+
key: 1,
|
|
1939
|
+
class: "placeholder"
|
|
1940
|
+
};
|
|
1941
|
+
const _hoisted_5$2 = {
|
|
1942
|
+
key: 0,
|
|
1943
|
+
class: "column list"
|
|
1944
|
+
};
|
|
1945
|
+
const _hoisted_6$2 = ["onClick"];
|
|
1946
|
+
const _hoisted_7$2 = { key: 0 };
|
|
1947
|
+
const _hoisted_8$2 = ["src"];
|
|
1948
|
+
const _hoisted_9$2 = { key: 1 };
|
|
1949
|
+
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1950
|
+
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
1951
|
+
createElementVNode("div", {
|
|
1952
|
+
class: "row select",
|
|
1953
|
+
onClick: _cache[0] || (_cache[0] = (...args) => $options.toggleDropdown && $options.toggleDropdown(...args))
|
|
1954
|
+
}, [
|
|
1955
|
+
$options.selected ? (openBlock(), createElementBlock("span", _hoisted_2$3, [
|
|
1956
|
+
$options.selected.logo ? (openBlock(), createElementBlock("img", {
|
|
1957
|
+
key: 0,
|
|
1958
|
+
src: $options.selected.logo,
|
|
1959
|
+
class: "logo"
|
|
1960
|
+
}, null, 8, _hoisted_3$2)) : createCommentVNode("", true)
|
|
1961
|
+
])) : (openBlock(), createElementBlock("span", _hoisted_4$2, "Selecciona una opción"))
|
|
1962
|
+
]),
|
|
1963
|
+
$data.isOpen ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
1964
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($props.options, (item, index) => {
|
|
1965
|
+
return openBlock(), createElementBlock("div", {
|
|
1966
|
+
class: normalizeClass(["item row", { "active": item.id == $options.selected.id }]),
|
|
1967
|
+
onClick: ($event) => $options.selectItem(item)
|
|
1968
|
+
}, [
|
|
1969
|
+
item.logo ? (openBlock(), createElementBlock("span", _hoisted_7$2, [
|
|
1970
|
+
createElementVNode("img", {
|
|
1971
|
+
src: item.logo,
|
|
1972
|
+
class: "logo"
|
|
1973
|
+
}, null, 8, _hoisted_8$2)
|
|
1974
|
+
])) : createCommentVNode("", true),
|
|
1975
|
+
item.label ? (openBlock(), createElementBlock("span", _hoisted_9$2, toDisplayString(item.label), 1)) : createCommentVNode("", true)
|
|
1976
|
+
], 10, _hoisted_6$2);
|
|
1977
|
+
}), 256))
|
|
1978
|
+
])) : createCommentVNode("", true)
|
|
1979
|
+
], 512);
|
|
1980
|
+
}
|
|
1981
|
+
const Dropdown = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-d1389195"]]);
|
|
1877
1982
|
const _sfc_main$2 = {
|
|
1878
1983
|
name: "ZSearchWidget",
|
|
1879
1984
|
data() {
|
|
1880
1985
|
return {
|
|
1881
|
-
text: ""
|
|
1986
|
+
text: "",
|
|
1987
|
+
engines: [
|
|
1988
|
+
{
|
|
1989
|
+
id: 1,
|
|
1990
|
+
logo: "https://s1.qwant.com/thumbr/474x474/b/c/eae6b919559217567ef067dec4aa1e425d560667e5b8e51333bea1b60f4de7/OIP.G3kcQIn5w4kJtUilFbWaigHaHa.jpg?u=https%3A%2F%2Fthf.bing.com%2Fth%2Fid%2FOIP.G3kcQIn5w4kJtUilFbWaigHaHa%3Fr%3D0%26cb%3Dthfc1%26pid%3DApi&q=0&b=1&p=0&a=0",
|
|
1991
|
+
label: "Qwant",
|
|
1992
|
+
search: `https://www.qwant.com/?l=es&q=`
|
|
1993
|
+
},
|
|
1994
|
+
{
|
|
1995
|
+
id: 2,
|
|
1996
|
+
logo: "https://astian.org/wp-content/uploads/2025/06/favicon-1.png",
|
|
1997
|
+
label: "MidoriGO",
|
|
1998
|
+
search: "https://astiango.co/?q="
|
|
1999
|
+
}
|
|
2000
|
+
],
|
|
2001
|
+
engine: {
|
|
2002
|
+
id: 1,
|
|
2003
|
+
logo: "https://s1.qwant.com/thumbr/474x474/b/c/eae6b919559217567ef067dec4aa1e425d560667e5b8e51333bea1b60f4de7/OIP.G3kcQIn5w4kJtUilFbWaigHaHa.jpg?u=https%3A%2F%2Fthf.bing.com%2Fth%2Fid%2FOIP.G3kcQIn5w4kJtUilFbWaigHaHa%3Fr%3D0%26cb%3Dthfc1%26pid%3DApi&q=0&b=1&p=0&a=0",
|
|
2004
|
+
label: "Qwant",
|
|
2005
|
+
search: `https://www.qwant.com/?l=es&q=`
|
|
2006
|
+
},
|
|
2007
|
+
urls: {
|
|
2008
|
+
url: "https://www.qwant.com/?l=es&q=facebook+login&t=web"
|
|
2009
|
+
}
|
|
1882
2010
|
};
|
|
1883
2011
|
},
|
|
1884
2012
|
props: {
|
|
@@ -1894,12 +2022,13 @@ const _sfc_main$2 = {
|
|
|
1894
2022
|
},
|
|
1895
2023
|
components: {
|
|
1896
2024
|
Input,
|
|
1897
|
-
Button
|
|
2025
|
+
Button,
|
|
2026
|
+
Dropdown
|
|
1898
2027
|
},
|
|
1899
2028
|
methods: {
|
|
1900
2029
|
search() {
|
|
1901
|
-
|
|
1902
|
-
const url =
|
|
2030
|
+
console.log(this.engine.search);
|
|
2031
|
+
const url = `${this.engine.search}${this.text}`;
|
|
1903
2032
|
if (this.searchTarget == "New Tab") {
|
|
1904
2033
|
chrome.tabs.create({ url });
|
|
1905
2034
|
this.text = "";
|
|
@@ -1911,35 +2040,38 @@ const _sfc_main$2 = {
|
|
|
1911
2040
|
};
|
|
1912
2041
|
const _hoisted_1$2 = { class: "container-search" };
|
|
1913
2042
|
const _hoisted_2$2 = { class: "search" };
|
|
1914
|
-
const _hoisted_3$2 = ["src"];
|
|
1915
2043
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2044
|
+
const _component_Dropdown = resolveComponent("Dropdown");
|
|
1916
2045
|
const _component_Input = resolveComponent("Input");
|
|
1917
2046
|
const _component_Button = resolveComponent("Button");
|
|
1918
2047
|
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
1919
2048
|
createElementVNode("div", _hoisted_2$2, [
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
2049
|
+
createElementVNode("div", null, [
|
|
2050
|
+
createVNode(_component_Dropdown, {
|
|
2051
|
+
options: $data.engines,
|
|
2052
|
+
modelValue: $data.engine,
|
|
2053
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.engine = $event)
|
|
2054
|
+
}, null, 8, ["options", "modelValue"])
|
|
2055
|
+
]),
|
|
1924
2056
|
createVNode(_component_Input, {
|
|
1925
2057
|
placeholder: "Search something",
|
|
1926
2058
|
full: "",
|
|
1927
2059
|
class: "bg-glass",
|
|
1928
2060
|
modelValue: $data.text,
|
|
1929
|
-
"onUpdate:modelValue": _cache[
|
|
1930
|
-
onEnterPressed: _cache[
|
|
2061
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.text = $event),
|
|
2062
|
+
onEnterPressed: _cache[2] || (_cache[2] = ($event) => $options.search())
|
|
1931
2063
|
}, null, 8, ["modelValue"]),
|
|
1932
2064
|
createVNode(_component_Button, {
|
|
1933
2065
|
icon: "material-symbols-light:search-rounded",
|
|
1934
2066
|
size: "25px",
|
|
1935
2067
|
flat: "",
|
|
1936
2068
|
class: "text-color",
|
|
1937
|
-
onClick: _cache[
|
|
2069
|
+
onClick: _cache[3] || (_cache[3] = ($event) => $options.search())
|
|
1938
2070
|
})
|
|
1939
2071
|
])
|
|
1940
2072
|
]);
|
|
1941
2073
|
}
|
|
1942
|
-
const ZSearchWidget = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-
|
|
2074
|
+
const ZSearchWidget = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-b93f704d"]]);
|
|
1943
2075
|
const _sfc_main$1 = {
|
|
1944
2076
|
name: "ZTodoWidget",
|
|
1945
2077
|
data() {
|
|
@@ -2066,22 +2198,75 @@ const _sfc_main = {
|
|
|
2066
2198
|
const STORAGE_KEY = "bookmark_manager_state";
|
|
2067
2199
|
const defaultBookmarks = {
|
|
2068
2200
|
Personal: [
|
|
2069
|
-
{
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
{
|
|
2075
|
-
|
|
2076
|
-
|
|
2201
|
+
{
|
|
2202
|
+
title: "Astian",
|
|
2203
|
+
url: "https://astian.org/",
|
|
2204
|
+
logo: "https://www.google.com/s2/favicons?domain=astian.org&sz=64"
|
|
2205
|
+
},
|
|
2206
|
+
{
|
|
2207
|
+
title: "Amazon",
|
|
2208
|
+
url: "https://r.v2i8b.com/api/v1/bid/redirect?campaign_id=01JVSM9HD56Q0VD2QZXQ2AR505&url=https%3A%2F%2Famazon.com",
|
|
2209
|
+
logo: "https://www.google.com/s2/favicons?domain=amazon.com&sz=64"
|
|
2210
|
+
},
|
|
2211
|
+
{
|
|
2212
|
+
title: "Avast",
|
|
2213
|
+
url: "https://r.v2i8b.com/api/v1/bid/redirect?campaign_id=01JVSM8H9350F4CBP07A8V7C5T&url=http%3A%2F%2Favast.com%2F",
|
|
2214
|
+
logo: "https://www.google.com/s2/favicons?domain=avast.com&sz=64"
|
|
2215
|
+
},
|
|
2216
|
+
{
|
|
2217
|
+
title: "Youtube",
|
|
2218
|
+
url: "https://youtube.com",
|
|
2219
|
+
logo: "https://www.google.com/s2/favicons?domain=youtube.com&sz=64"
|
|
2220
|
+
},
|
|
2221
|
+
{
|
|
2222
|
+
title: "Instagram",
|
|
2223
|
+
url: "https://instagram.com",
|
|
2224
|
+
logo: "https://www.google.com/s2/favicons?domain=instagram.com&sz=64"
|
|
2225
|
+
},
|
|
2226
|
+
{
|
|
2227
|
+
title: "Wish.com",
|
|
2228
|
+
url: "https://r.v2i8b.com/api/v1/bid/redirect?campaign_id=01JVSM8H9350F4CBP07A8V7C5T&url=http%3A%2F%2Fwish.com",
|
|
2229
|
+
logo: "https://www.google.com/s2/favicons?domain=wish.com&sz=64"
|
|
2230
|
+
},
|
|
2231
|
+
{
|
|
2232
|
+
title: "Prime",
|
|
2233
|
+
url: "https://r.v2i8b.com/api/v1/bid/redirect?campaign_id=01JVSM8H9350F4CBP07A8V7C5T&url=http%3A%2F%2Fprimevideo.com",
|
|
2234
|
+
logo: "https://www.google.com/s2/favicons?domain=primevideo.com&sz=64"
|
|
2235
|
+
},
|
|
2236
|
+
{
|
|
2237
|
+
title: "Shein",
|
|
2238
|
+
url: "https://r.v2i8b.com/api/v1/bid/redirect?campaign_id=01JVSM8H9350F4CBP07A8V7C5T&url=http%3A%2F%2Fshein.com",
|
|
2239
|
+
logo: "https://www.google.com/s2/favicons?domain=shein.com&sz=64"
|
|
2240
|
+
}
|
|
2077
2241
|
],
|
|
2078
2242
|
Work: [
|
|
2079
|
-
{
|
|
2080
|
-
|
|
2243
|
+
{
|
|
2244
|
+
title: "GitHub",
|
|
2245
|
+
url: "https://github.com",
|
|
2246
|
+
logo: "https://www.google.com/s2/favicons?domain=github.com&sz=64"
|
|
2247
|
+
},
|
|
2248
|
+
{
|
|
2249
|
+
title: "Notion",
|
|
2250
|
+
url: "https://notion.so",
|
|
2251
|
+
logo: "https://www.google.com/s2/favicons?domain=notion.so&sz=64"
|
|
2252
|
+
}
|
|
2081
2253
|
],
|
|
2082
2254
|
Study: [
|
|
2083
|
-
{
|
|
2084
|
-
|
|
2255
|
+
{
|
|
2256
|
+
title: "MDN Web Docs",
|
|
2257
|
+
url: "https://developer.mozilla.org",
|
|
2258
|
+
logo: "https://www.google.com/s2/favicons?domain=mozilla.org&sz=64"
|
|
2259
|
+
},
|
|
2260
|
+
{
|
|
2261
|
+
title: "FreeCodeCamp",
|
|
2262
|
+
url: "https://freecodecamp.org",
|
|
2263
|
+
logo: "https://www.google.com/s2/favicons?domain=freecodecamp.org&sz=64"
|
|
2264
|
+
},
|
|
2265
|
+
{
|
|
2266
|
+
title: "Udemy",
|
|
2267
|
+
url: "https://r.v2i8b.com/api/v1/bid/redirect?campaign_id=01JVSM8H9350F4CBP07A8V7C5T&url=http%3A%2F%2Fudemy.com%2F",
|
|
2268
|
+
logo: "https://www.google.com/s2/favicons?domain=udemy.com&sz=64"
|
|
2269
|
+
}
|
|
2085
2270
|
]
|
|
2086
2271
|
};
|
|
2087
2272
|
const bookmarks = this.useStorage ? JSON.parse(localStorage.getItem(STORAGE_KEY)) || defaultBookmarks : defaultBookmarks;
|
|
@@ -2236,7 +2421,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2236
2421
|
])
|
|
2237
2422
|
]);
|
|
2238
2423
|
}
|
|
2239
|
-
const ZMarkedWidget = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
2424
|
+
const ZMarkedWidget = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5c8411db"]]);
|
|
2240
2425
|
const ZClockElement = defineCustomElement(ZClockWidget);
|
|
2241
2426
|
const ZSearchElement = defineCustomElement(ZSearchWidget);
|
|
2242
2427
|
const ZTodoElement = defineCustomElement(ZTodoWidget);
|
package/dist/zen-wdg.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ZenWdg={},e.Vue)}(this,function(e,t){"use strict";var o=Object.defineProperty,n=Object.defineProperties,r=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,l=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c=(e,t)=>{for(var o in t||(t={}))s.call(t,o)&&l(e,o,t[o]);if(i)for(var o of i(t))a.call(t,o)&&l(e,o,t[o]);return e},d=(e,t)=>n(e,r(t));const u=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},p={class:"clock-container"},f={class:"clock"},m={class:"time"},h={class:"date"};const g=u({name:"ZClockWidget",data:()=>({hours:"00",minutes:"00",seconds:"00",dayOfWeek:"",day:"",month:"",year:""}),mounted(){this.updateClock(),setInterval(this.updateClock,1e3)},methods:{updateClock(){const e=new Date;this.hours=e.getHours().toString().padStart(2,"0"),this.minutes=e.getMinutes().toString().padStart(2,"0"),this.seconds=e.getSeconds().toString().padStart(2,"0"),this.dayOfWeek=this.getDayOfWeek(e.getDay()),this.day=e.getDate(),this.month=this.getMonthName(e.getMonth()),this.year=e.getFullYear()},getDayOfWeek:e=>["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][e],getMonthName:e=>["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][e]}},[["render",function(e,o,n,r,i,s){return t.openBlock(),t.createElementBlock("div",p,[t.createElementVNode("div",f,[t.createElementVNode("div",m,[t.createElementVNode("span",null,t.toDisplayString(i.hours),1),o[0]||(o[0]=t.createTextVNode(":",-1)),t.createElementVNode("span",null,t.toDisplayString(i.minutes),1)]),t.createElementVNode("div",h,[t.createElementVNode("span",null,t.toDisplayString(i.dayOfWeek)+", "+t.toDisplayString(i.day)+" "+t.toDisplayString(i.month)+" "+t.toDisplayString(i.year),1)])])])}],["__scopeId","data-v-e9445086"]]),k={data:()=>({}),props:{placeholder:String,modelValue:{type:String,default:""},round:{type:Boolean,default:!1},full:{type:Boolean},rounded:{type:Boolean,default:!1}},methods:{onInput(e){this.$emit("update:modelValue",e.target.value)},onEnter(){this.$emit("enter-pressed",this.modelValue)}}},b=["placeholder","value"];const v=u(k,[["render",function(e,o,n,r,i,s){return t.openBlock(),t.createElementBlock("input",{placeholder:n.placeholder,value:n.modelValue,onInput:o[0]||(o[0]=(...e)=>s.onInput&&s.onInput(...e)),onKeydown:o[1]||(o[1]=t.withKeys((...e)=>s.onEnter&&s.onEnter(...e),["enter"])),class:t.normalizeClass([{"full-width":n.full},{round:n.round},{rounded:n.rounded}])},null,42,b)}],["__scopeId","data-v-2ad90286"]]),y=/^[a-z0-9]+(-[a-z0-9]+)*$/,w=(e,t,o,n="")=>{const r=e.split(":");if("@"===e.slice(0,1)){if(r.length<2||r.length>3)return null;n=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const e=r.pop(),o=r.pop(),i={provider:r.length>0?r[0]:n,prefix:o,name:e};return t&&!E(i)?null:i}const i=r[0],s=i.split("-");if(s.length>1){const e={provider:n,prefix:s.shift(),name:s.join("-")};return t&&!E(e)?null:e}if(o&&""===n){const e={provider:n,prefix:"",name:i};return t&&!E(e,o)?null:e}return null},E=(e,t)=>!!e&&!(!(t&&""===e.prefix||e.prefix)||!e.name),x=Object.freeze({left:0,top:0,width:16,height:16}),S=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),T=Object.freeze(c(c({},x),S)),B=Object.freeze(d(c({},T),{body:"",hidden:!1}));function C(e,t){const o=function(e,t){const o={};!e.hFlip!=!t.hFlip&&(o.hFlip=!0),!e.vFlip!=!t.vFlip&&(o.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(o.rotate=n),o}(e,t);for(const n in B)n in S?n in e&&!(n in o)&&(o[n]=S[n]):n in t?o[n]=t[n]:n in e&&(o[n]=e[n]);return o}function N(e,t,o){const n=e.icons,r=e.aliases||Object.create(null);let i={};function s(e){i=C(n[e]||r[e],i)}return s(t),o.forEach(s),C(e,i)}function V(e,t){const o=[];if("object"!=typeof e||"object"!=typeof e.icons)return o;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),o.push(e)});const n=function(e){const t=e.icons,o=e.aliases||Object.create(null),n=Object.create(null);return Object.keys(t).concat(Object.keys(o)).forEach(function e(r){if(t[r])return n[r]=[];if(!(r in n)){n[r]=null;const t=o[r]&&o[r].parent,i=t&&e(t);i&&(n[r]=[t].concat(i))}return n[r]}),n}(e);for(const r in n){const i=n[r];i&&(t(r,N(e,r,i)),o.push(r))}return o}const z=c({provider:"",aliases:{},not_found:{}},x);function j(e,t){for(const o in t)if(o in e&&typeof e[o]!=typeof t[o])return!1;return!0}function O(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons)return null;if(!j(e,z))return null;const o=t.icons;for(const r in o){const e=o[r];if(!r||"string"!=typeof e.body||!j(e,B))return null}const n=t.aliases||Object.create(null);for(const r in n){const e=n[r],t=e.parent;if(!r||"string"!=typeof t||!o[t]&&!n[t]||!j(e,B))return null}return t}const I=Object.create(null);function F(e,t){const o=I[e]||(I[e]=Object.create(null));return o[t]||(o[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function M(e,t){return O(t)?V(t,(t,o)=>{o?e.icons[t]=o:e.missing.add(t)}):[]}let L=!1;function D(e){return"boolean"==typeof e&&(L=e),L}function _(e,t){const o=w(e,!0,L);if(!o)return!1;const n=F(o.provider,o.prefix);return t?function(e,t,o){try{if("string"==typeof o.body)return e.icons[t]=c({},o),!0}catch(n){}return!1}(n,o.name,t):(n.missing.add(o.name),!0)}const P=Object.freeze({width:null,height:null}),A=Object.freeze(c(c({},P),S)),R=/(-?[0-9.]*[0-9]+[0-9.]*)/g,W=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function U(e,t,o){if(1===t)return e;if(o=o||100,"number"==typeof e)return Math.ceil(e*t*o)/o;if("string"!=typeof e)return e;const n=e.split(R);if(null===n||!n.length)return e;const r=[];let i=n.shift(),s=W.test(i);for(;;){if(s){const e=parseFloat(i);isNaN(e)?r.push(i):r.push(Math.ceil(e*t*o)/o)}else r.push(i);if(i=n.shift(),void 0===i)return r.join("");s=!s}}const $=/\sid="(\S+)"/g,q="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let Z=0;const H=Object.create(null);function J(e){return H[e]||H[""]}function K(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array&&t.length))return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const Y=Object.create(null),G=["https://api.simplesvg.com","https://api.unisvg.com"],Q=[];for(;G.length>0;)1===G.length||Math.random()>.5?Q.push(G.shift()):Q.push(G.pop());function X(e,t){const o=K(t);return null!==o&&(Y[e]=o,!0)}function ee(e){return Y[e]}Y[""]=K({resources:["https://api.iconify.design"].concat(Q)});let te=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch(t){}})();const oe={prepare:(e,t,o)=>{const n=[],r=function(e,t){const o=ee(e);if(!o)return 0;let n;if(o.maxURL){let e=0;o.resources.forEach(t=>{const o=t;e=Math.max(e,o.length)});const r=t+".json?icons=";n=o.maxURL-e-o.path.length-r.length}else n=0;return n}(e,t),i="icons";let s={type:i,provider:e,prefix:t,icons:[]},a=0;return o.forEach((o,l)=>{a+=o.length+1,a>=r&&l>0&&(n.push(s),s={type:i,provider:e,prefix:t,icons:[]},a=o.length),s.icons.push(o)}),n.push(s),n},send:(e,t,o)=>{if(!te)return void o("abort",424);let n=function(e){if("string"==typeof e){const t=ee(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,o=t.icons.join(",");n+=e+".json?"+new URLSearchParams({icons:o}).toString();break}case"custom":{const e=t.uri;n+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void o("abort",400)}let r=503;te(e+n).then(e=>{const t=e.status;if(200===t)return r=501,e.json();setTimeout(()=>{o(function(e){return 404===e}(t)?"abort":"next",t)})}).then(e=>{"object"==typeof e&&null!==e?setTimeout(()=>{o("success",e)}):setTimeout(()=>{404===e?o("abort",e):o("next",r)})}).catch(()=>{o("next",r)})}};function ne(e,t){e.forEach(e=>{const o=e.loaderCallbacks;o&&(e.loaderCallbacks=o.filter(e=>e.id!==t))})}let re=0;var ie={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function se(e,t,o,n){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let s;if(e.random){let t=e.resources.slice(0);for(s=[];t.length>1;){const e=Math.floor(Math.random()*t.length);s.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}s=s.concat(t)}else s=e.resources.slice(i).concat(e.resources.slice(0,i));const a=Date.now();let l,c="pending",d=0,u=null,p=[],f=[];function m(){u&&(clearTimeout(u),u=null)}function h(){"pending"===c&&(c="aborted"),m(),p.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),p=[]}function g(e,t){t&&(f=[]),"function"==typeof e&&f.push(e)}function k(){c="failed",f.forEach(e=>{e(void 0,l)})}function b(){p.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),p=[]}function v(){if("pending"!==c)return;m();const n=s.shift();if(void 0===n)return p.length?void(u=setTimeout(()=>{m(),"pending"===c&&(b(),k())},e.timeout)):void k();const r={status:"pending",resource:n,callback:(t,o)=>{!function(t,o,n){const r="success"!==o;switch(p=p.filter(e=>e!==t),c){case"pending":break;case"failed":if(r||!e.dataAfterTimeout)return;break;default:return}if("abort"===o)return l=n,void k();if(r)return l=n,void(p.length||(s.length?v():k()));if(m(),b(),!e.random){const o=e.resources.indexOf(t.resource);-1!==o&&o!==e.index&&(e.index=o)}c="completed",f.forEach(e=>{e(n)})}(r,t,o)}};p.push(r),d++,u=setTimeout(v,e.rotate),o(n,t,r.callback)}return"function"==typeof n&&f.push(n),setTimeout(v),function(){return{startTime:a,payload:t,status:c,queriesSent:d,queriesPending:p.length,subscribe:g,abort:h}}}function ae(e){const t=c(c({},ie),e);let o=[];function n(){o=o.filter(e=>"pending"===e().status)}return{query:function(e,r,i){const s=se(t,e,r,(e,t)=>{n(),i&&i(e,t)});return o.push(s),s},find:function(e){return o.find(t=>e(t))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:n}}function le(){}const ce=Object.create(null);function de(e,t,o){let n,r;if("string"==typeof e){const t=J(e);if(!t)return o(void 0,424),le;r=t.send;const i=function(e){if(!ce[e]){const t=ee(e);if(!t)return;const o={config:t,redundancy:ae(t)};ce[e]=o}return ce[e]}(e);i&&(n=i.redundancy)}else{const t=K(e);if(t){n=ae(t);const o=J(e.resources?e.resources[0]:"");o&&(r=o.send)}}return n&&r?n.query(t,r,o)().abort:(o(void 0,424),le)}function ue(){}function pe(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let o=!1;const n=e.provider,r=e.prefix;t.forEach(t=>{const i=t.icons,s=i.pending.length;i.pending=i.pending.filter(t=>{if(t.prefix!==r)return!0;const s=t.name;if(e.icons[s])i.loaded.push({provider:n,prefix:r,name:s});else{if(!e.missing.has(s))return o=!0,!0;i.missing.push({provider:n,prefix:r,name:s})}return!1}),i.pending.length!==s&&(o||ne([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))})}))}(e)}))}function fe(e,t,o){function n(){const o=e.pendingIcons;t.forEach(t=>{o&&o.delete(t),e.icons[t]||e.missing.add(t)})}if(o&&"object"==typeof o)try{if(!M(e,o).length)return void n()}catch(r){console.error(r)}n(),pe(e)}function me(e,t){e instanceof Promise?e.then(e=>{t(e)}).catch(()=>{t(null)}):t(e)}function he(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:o}=e,n=e.iconsToLoad;if(delete e.iconsToLoad,!n||!n.length)return;const r=e.loadIcon;if(e.loadIcons&&(n.length>1||!r))return void me(e.loadIcons(n,o,t),t=>{fe(e,n,t)});if(r)return void n.forEach(n=>{me(r(n,o,t),t=>{fe(e,[n],t?{prefix:o,icons:{[n]:t}}:null)})});const{valid:i,invalid:s}=function(e){const t=[],o=[];return e.forEach(e=>{(e.match(y)?t:o).push(e)}),{valid:t,invalid:o}}(n);if(s.length&&fe(e,s,null),!i.length)return;const a=o.match(y)?J(t):null;if(!a)return void fe(e,i,null);a.prepare(t,o,i).forEach(o=>{de(t,o,t=>{fe(e,o.icons,t)})})}))}const ge=(e,t)=>{const o=function(e){const t={loaded:[],missing:[],pending:[]},o=Object.create(null);e.sort((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name));let n={provider:"",prefix:"",name:""};return e.forEach(e=>{if(n.name===e.name&&n.prefix===e.prefix&&n.provider===e.provider)return;n=e;const r=e.provider,i=e.prefix,s=e.name,a=o[r]||(o[r]=Object.create(null)),l=a[i]||(a[i]=F(r,i));let c;c=s in l.icons?t.loaded:""===i||l.missing.has(s)?t.missing:t.pending;const d={provider:r,prefix:i,name:s};c.push(d)}),t}(function(e,t=!0,o=!1){const n=[];return e.forEach(e=>{const r="string"==typeof e?w(e,t,o):e;r&&n.push(r)}),n}(e,!0,D()));if(!o.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(o.loaded,o.missing,o.pending,ue)}),()=>{e=!1}}const n=Object.create(null),r=[];let i,s;return o.pending.forEach(e=>{const{provider:t,prefix:o}=e;if(o===s&&t===i)return;i=t,s=o,r.push(F(t,o));const a=n[t]||(n[t]=Object.create(null));a[o]||(a[o]=[])}),o.pending.forEach(e=>{const{provider:t,prefix:o,name:r}=e,i=F(t,o),s=i.pendingIcons||(i.pendingIcons=new Set);s.has(r)||(s.add(r),n[t][o].push(r))}),r.forEach(e=>{const t=n[e.provider][e.prefix];t.length&&he(e,t)}),t?function(e,t,o){const n=re++,r=ne.bind(null,o,n);if(!t.pending.length)return r;const i={id:n,icons:t,callback:e,abort:r};return o.forEach(e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)}),r}(t,o,r):ue};const ke=/[\s,]+/;function be(e,t){t.split(ke).forEach(t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}})}function ve(e,t=0){const o=e.replace(/^-?[0-9.]*/,"");function n(e){for(;e<0;)e+=4;return e%4}if(""===o){const t=parseInt(e);return isNaN(t)?0:n(t)}if(o!==e){let t=0;switch(o){case"%":t=25;break;case"deg":t=90}if(t){let r=parseFloat(e.slice(0,e.length-o.length));return isNaN(r)?0:(r/=t,r%1==0?n(r):0)}}return t}const ye=d(c({},A),{inline:!1}),we={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ee={display:"inline-block"},xe={backgroundColor:"currentColor"},Se={backgroundColor:"transparent"},Te={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Be={webkitMask:xe,mask:xe,background:Se};for(const ut in Be){const e=Be[ut];for(const t in Te)e[ut+t]=Te[t]}const Ce={};function Ne(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Ce[e+"-flip"]=t,Ce[e.slice(0,1)+"-flip"]=t,Ce[e+"Flip"]=t});const Ve=(e,o)=>{const n=function(e,t){const o=c({},e);for(const n in t){const e=t[n],r=typeof e;n in P?(null===e||e&&("string"===r||"number"===r))&&(o[n]=e):r===typeof o[n]&&(o[n]="rotate"===n?e%4:e)}return o}(ye,o),r=c({},we),i=o.mode||"svg",s={},a=o.style,l="object"!=typeof a||a instanceof Array?{}:a;for(let t in o){const e=o[t];if(void 0!==e)switch(t){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[t]=!0===e||"true"===e||1===e;break;case"flip":"string"==typeof e&&be(n,e);break;case"color":s.color=e;break;case"rotate":"string"==typeof e?n[t]=ve(e):"number"==typeof e&&(n[t]=e);break;case"ariaHidden":case"aria-hidden":!0!==e&&"true"!==e&&delete r["aria-hidden"];break;default:{const o=Ce[t];o?!0!==e&&"true"!==e&&1!==e||(n[o]=!0):void 0===ye[t]&&(r[t]=e)}}}const u=function(e,t){const o=c(c({},T),e),n=c(c({},A),t),r={left:o.left,top:o.top,width:o.width,height:o.height};let i=o.body;[o,n].forEach(e=>{const t=[],o=e.hFlip,n=e.vFlip;let s,a=e.rotate;switch(o?n?a+=2:(t.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),t.push("scale(-1 1)"),r.top=r.left=0):n&&(t.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),t.push("scale(1 -1)"),r.top=r.left=0),a<0&&(a-=4*Math.floor(a/4)),a%=4,a){case 1:s=r.height/2+r.top,t.unshift("rotate(90 "+s.toString()+" "+s.toString()+")");break;case 2:t.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:s=r.width/2+r.left,t.unshift("rotate(-90 "+s.toString()+" "+s.toString()+")")}a%2==1&&(r.left!==r.top&&(s=r.left,r.left=r.top,r.top=s),r.width!==r.height&&(s=r.width,r.width=r.height,r.height=s)),t.length&&(i=function(e,t,o){const n=function(e,t="defs"){let o="";const n=e.indexOf("<"+t);for(;n>=0;){const r=e.indexOf(">",n),i=e.indexOf("</"+t);if(-1===r||-1===i)break;const s=e.indexOf(">",i);if(-1===s)break;o+=e.slice(r+1,i).trim(),e=e.slice(0,n).trim()+e.slice(s+1)}return{defs:o,content:e}}(e);return r=n.defs,i=t+n.content+o,r?"<defs>"+r+"</defs>"+i:i;var r,i}(i,'<g transform="'+t.join(" ")+'">',"</g>"))});const s=n.width,a=n.height,l=r.width,d=r.height;let u,p;null===s?(p=null===a?"1em":"auto"===a?d:a,u=U(p,l/d)):(u="auto"===s?l:s,p=null===a?U(u,d/l):"auto"===a?d:a);const f={},m=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(f[e]=t.toString())};m("width",u),m("height",p);const h=[r.left,r.top,l,d];return f.viewBox=h.join(" "),{attributes:f,viewBox:h,body:i}}(e,n),p=u.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),"svg"===i){r.style=c(c({},s),l),Object.assign(r,p);let e=0,n=o.id;return"string"==typeof n&&(n=n.replace(/-/g,"_")),r.innerHTML=function(e,t=q){const o=[];let n;for(;n=$.exec(e);)o.push(n[1]);if(!o.length)return e;const r="suffix"+(16777216*Math.random()|Date.now()).toString(16);return o.forEach(o=>{const n="function"==typeof t?t(o):t+(Z++).toString(),i=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+n+r+"$3")}),e=e.replace(new RegExp(r,"g"),"")}(u.body,n?()=>n+"ID"+e++:"iconifyVue"),t.h("svg",r)}const{body:f,width:m,height:h}=e,g="mask"===i||"bg"!==i&&-1!==f.indexOf("currentColor"),k=function(e,t){let o=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)o+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+e+"</svg>"}(f,d(c({},p),{width:m+"",height:h+""}));var b;return r.style=c(c(c(d(c({},s),{"--svg":(b=k,'url("'+function(e){return"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(e)}(b)+'")'),width:Ne(p.width),height:Ne(p.height)}),Ee),g?xe:Se),l),t.h("span",r)};var ze;if(D(!0),ze=oe,H[""]=ze,"undefined"!=typeof document&&"undefined"!=typeof window){const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,o="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach(e=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!function(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),L&&!t&&!e.prefix){let t=!1;return O(e)&&(e.prefix="",V(e,(e,o)=>{_(e,o)&&(t=!0)})),t}const o=e.prefix;return!!E({prefix:o,name:"a"})&&!!M(F(t,o),e)}(e))&&console.error(o)}catch(t){console.error(o)}})}if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(let e in t){const o="IconifyProviders["+e+"] is invalid.";try{const n=t[e];if("object"!=typeof n||!n||void 0===n.resources)continue;X(e,n)||console.error(o)}catch(dt){console.error(o)}}}}const je=d(c({},T),{body:""}),Oe={data:()=>({}),components:{Icon:t.defineComponent((e,{emit:o})=>{const n=t.ref(null);function r(){var e,t;n.value&&(null==(t=(e=n.value).abort)||t.call(e),n.value=null)}const i=t.ref(!!e.ssr),s=t.ref(""),a=t.shallowRef(null);function l(){const i=e.icon;if("object"==typeof i&&null!==i&&"string"==typeof i.body)return s.value="",{data:i};let a;if("string"!=typeof i||null===(a=w(i,!1,!0)))return null;let l=function(e){const t="string"==typeof e?w(e,!0,L):e;if(t){const e=F(t.provider,t.prefix),o=t.name;return e.icons[o]||(e.missing.has(o)?null:void 0)}}(a);if(!l){const e=n.value;return e&&e.name===i||(n.value=null===l?{name:i}:{name:i,abort:ge([a],u)}),null}r(),s.value!==i&&(s.value=i,t.nextTick(()=>{o("load",i)}));const c=e.customise;if(c){l=Object.assign({},l);const e=c(l.body,a.name,a.prefix,a.provider);"string"==typeof e&&(l.body=e)}const d=["iconify"];return""!==a.prefix&&d.push("iconify--"+a.prefix),""!==a.provider&&d.push("iconify--"+a.provider),{data:l,classes:d}}function u(){var e;const t=l();t?t.data!==(null==(e=a.value)?void 0:e.data)&&(a.value=t):a.value=null}return i.value?u():t.onMounted(()=>{i.value=!0,u()}),t.watch(()=>e.icon,u),t.onUnmounted(r),()=>{const t=a.value;if(!t)return Ve(je,e);let o=e;return t.classes&&(o=d(c({},e),{class:t.classes.join(" ")})),Ve(c(c({},T),t.data),o)}},{props:["icon","mode","ssr","width","height","style","color","inline","rotate","hFlip","horizontalFlip","vFlip","verticalFlip","flip","id","ariaHidden","customise","title"],emits:["load"]})},props:{title:{type:String,required:!1},bound:{type:Boolean,default:!1},bounded:{type:Boolean,default:!1},flat:{type:Boolean,default:!1},iconLeft:{type:Boolean,required:!1,default:!1},iconRight:{type:Boolean,default:!1},icon:{type:String},size:{type:String},iconSize:{type:String},wFull:{type:Boolean,default:!1},noBg:{type:Boolean,default:!1},color:String},methods:{}};const Ie={class:"container-search"},Fe={class:"search"},Me=["src"];const Le=u({name:"ZSearchWidget",data:()=>({text:""}),props:{searchTarget:{type:String,require:!1,default:"Self Tab"},logo:{type:String,require:!1}},components:{Input:v,Button:u(Oe,[["render",function(e,o,n,r,i,s){const a=t.resolveComponent("Icon");return t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass([{flat:n.flat},{bound:n.bound},{bounded:n.bounded},{"w-full":n.wFull},{transparent:n.noBg}]),style:t.normalizeStyle([{"font-size":n.size},{color:n.color}])},[n.iconLeft?(t.openBlock(),t.createBlock(a,{key:0,icon:n.icon,style:t.normalizeStyle({"font-size":n.iconSize})},null,8,["icon","style"])):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(n.title)+" ",1),n.icon&&!n.iconLeft?(t.openBlock(),t.createBlock(a,{key:1,icon:n.icon,width:n.iconSize,height:n.iconSize},null,8,["icon","width","height"])):t.createCommentVNode("",!0)],6)}],["__scopeId","data-v-10678914"]])},methods:{search(){const e=`https://astiango.co/?q=${encodeURIComponent(this.text)}`;"New Tab"==this.searchTarget?(chrome.tabs.create({url:e}),this.text=""):"Self Tab"==this.searchTarget&&chrome.tabs.update({url:e})}}},[["render",function(e,o,n,r,i,s){const a=t.resolveComponent("Input"),l=t.resolveComponent("Button");return t.openBlock(),t.createElementBlock("div",Ie,[t.createElementVNode("div",Fe,[n.logo?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.logo},null,8,Me)):t.createCommentVNode("",!0),t.createVNode(a,{placeholder:"Search something",full:"",class:"bg-glass",modelValue:i.text,"onUpdate:modelValue":o[0]||(o[0]=e=>i.text=e),onEnterPressed:o[1]||(o[1]=e=>s.search())},null,8,["modelValue"]),t.createVNode(l,{icon:"material-symbols-light:search-rounded",size:"25px",flat:"",class:"text-color",onClick:o[2]||(o[2]=e=>s.search())})])])}],["__scopeId","data-v-bb22be9c"]]),De={class:"todo-widget"},_e={class:"task-section"},Pe={key:0,class:"empty"},Ae={class:"actions"},Re=["onClick"],We=["onClick"],Ue={class:"task-section completed"},$e={key:0,class:"empty"},qe={class:"done"},Ze=["onClick"];const He=u({name:"ZTodoWidget",data:()=>({newTask:"",pendingTasks:[],completedTasks:[]}),methods:{addTask(){this.newTask.trim()&&(this.pendingTasks.push({text:this.newTask.trim()}),this.newTask="")},completeTask(e){const t=this.pendingTasks.splice(e,1)[0];this.completedTasks.push(t)},deleteTask(e){this.pendingTasks.splice(e,1)},deleteCompleted(e){this.completedTasks.splice(e,1)}}},[["render",function(e,o,n,r,i,s){return t.openBlock(),t.createElementBlock("div",De,[o[5]||(o[5]=t.createElementVNode("h2",{class:"title"},"📝 Mis Tareas",-1)),t.createElementVNode("form",{onSubmit:o[1]||(o[1]=t.withModifiers((...e)=>s.addTask&&s.addTask(...e),["prevent"])),class:"todo-form"},[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":o[0]||(o[0]=e=>i.newTask=e),type:"text",placeholder:"Escribe una nueva tarea..."},null,512),[[t.vModelText,i.newTask]]),o[2]||(o[2]=t.createElementVNode("button",{type:"submit"},"Agregar",-1))],32),t.createElementVNode("div",_e,[o[3]||(o[3]=t.createElementVNode("h3",null,"Tareas Pendientes",-1)),0===i.pendingTasks.length?(t.openBlock(),t.createElementBlock("div",Pe,"Sin tareas.")):t.createCommentVNode("",!0),t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.pendingTasks,(e,o)=>(t.openBlock(),t.createElementBlock("li",{key:o},[t.createElementVNode("span",null,t.toDisplayString(e.text),1),t.createElementVNode("div",Ae,[t.createElementVNode("button",{onClick:e=>s.completeTask(o)},"✔️",8,Re),t.createElementVNode("button",{onClick:e=>s.deleteTask(o)},"🗑️",8,We)])]))),128))])]),t.createElementVNode("div",Ue,[o[4]||(o[4]=t.createElementVNode("h3",null,"Completadas",-1)),0===i.completedTasks.length?(t.openBlock(),t.createElementBlock("div",$e,"Ninguna aún.")):t.createCommentVNode("",!0),t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.completedTasks,(e,o)=>(t.openBlock(),t.createElementBlock("li",{key:"c"+o},[t.createElementVNode("span",qe,t.toDisplayString(e.text),1),t.createElementVNode("button",{onClick:e=>s.deleteCompleted(o)},"❌",8,Ze)]))),128))])])])}],["__scopeId","data-v-3560194d"]]),Je={name:"ZMarkedWidget",props:{theme:{type:String,default:"light"},small:{type:Boolean,default:!1},categories:{type:Array,default:()=>["Personal","Work","Study"]},open:{type:String,default:"Self Tab"},useStorage:{type:Boolean,default:!1}},data(){const e="bookmark_manager_state",t={Personal:[{title:"Reddit",url:"https://reddit.com",logo:"https://www.google.com/s2/favicons?domain=reddit.com&sz=64"},{title:"Spotify",url:"https://spotify.com",logo:"https://www.google.com/s2/favicons?domain=spotify.com&sz=64"},{title:"Youtube",url:"https://youtube.com",logo:"https://www.google.com/s2/favicons?domain=youtube.com&sz=64"},{title:"Instagram",url:"https://instagram.com",logo:"https://www.google.com/s2/favicons?domain=instagram.com&sz=64"},{title:"Facebook",url:"https://facebook.com",logo:"https://www.google.com/s2/favicons?domain=facebook.com&sz=64"},{title:"WhatsApp",url:"https://whatsapp.com",logo:"https://www.google.com/s2/favicons?domain=whatsapp.com&sz=64"},{title:"Telegram",url:"https://web.telegram.org/",logo:"https://www.google.com/s2/favicons?domain=web.telegram.org&sz=64"},{title:"Spotify",url:"https://spotify.com",logo:"https://www.google.com/s2/favicons?domain=spotify.com&sz=64"}],Work:[{title:"GitHub",url:"https://github.com",logo:"https://www.google.com/s2/favicons?domain=github.com&sz=64"},{title:"Notion",url:"https://notion.so",logo:"https://www.google.com/s2/favicons?domain=notion.so&sz=64"}],Study:[{title:"MDN Web Docs",url:"https://developer.mozilla.org",logo:"https://www.google.com/s2/favicons?domain=mozilla.org&sz=64"},{title:"FreeCodeCamp",url:"https://freecodecamp.org",logo:"https://www.google.com/s2/favicons?domain=freecodecamp.org&sz=64"}]};return{STORAGE_KEY:e,bookmarks:this.useStorage&&JSON.parse(localStorage.getItem(e))||t,activeTab:"Personal"}},computed:{currentBookmarks(){return this.bookmarks[this.activeTab]||[]}},methods:{saveState(){this.useStorage&&localStorage.setItem(this.STORAGE_KEY,JSON.stringify(this.bookmarks))},setActiveTab(e){this.activeTab=e},openLink(e){"self"===this.open?window.location.href=e:window.open(e,"_blank")},deleteBookmark(e){const t=this.bookmarks[this.activeTab][e];confirm(`¿Estás seguro de eliminar ${t.title}?`)&&(this.bookmarks[this.activeTab].splice(e,1),this.saveState())},editBookmark(e){const t=this.bookmarks[this.activeTab][e],o=prompt("Nuevo título:",t.title);if(null===o)return;const n=prompt("Nueva URL:",t.url);null!==n&&(t.title=o,t.url=n,t.logo=`https://www.google.com/s2/favicons?domain=${new URL(n).hostname}&sz=64`,this.saveState())},addBookmarkPrompt(){const e=prompt("Nombre del marcador:");if(!e)return;const t=prompt("URL del marcador:");if(!t)return;const o=`https://www.google.com/s2/favicons?domain=${new URL(t).hostname}&sz=64`;this.bookmarks[this.activeTab].push({title:e,url:t,logo:o}),this.saveState()},onImageError(e,t){const o=e.target;o.style.display="none";const n=o.parentNode;n.style.backgroundColor="#066D5A",n.textContent=t.charAt(0).toUpperCase()}},watch:{bookmarks:{handler(){this.saveState()},deep:!0}}},Ke={class:"container-marked"},Ye=["onClick"],Ge={class:"grid"},Qe={class:"option-app"},Xe=["onClick"],et=["onClick"],tt=["href","target"],ot={class:"column"},nt={class:"logo-container"},rt=["src","alt","onError"];const it=u(Je,[["render",function(e,o,n,r,i,s){return t.openBlock(),t.createElementBlock("div",Ke,[t.createElementVNode("div",{class:t.normalizeClass(["tabs",["dark"==n.theme?"dark":"light"]])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.categories,e=>(t.openBlock(),t.createElementBlock("div",{key:e,class:"container-tab"},[t.createElementVNode("button",{class:t.normalizeClass(["tab",{active:e===i.activeTab}]),onClick:t=>s.setActiveTab(e)},t.toDisplayString(e),11,Ye)]))),128))],2),t.createElementVNode("div",Ge,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.currentBookmarks,(e,o)=>(t.openBlock(),t.createElementBlock("div",{key:o,class:t.normalizeClass(["card",n.small?"small":""])},[t.createElementVNode("div",Qe,[t.createElementVNode("button",{class:"edit-app",onClick:t.withModifiers(e=>s.editBookmark(o),["prevent"])},"✏️",8,Xe),t.createElementVNode("button",{class:"delete-app",onClick:t.withModifiers(e=>s.deleteBookmark(o),["prevent"])},"🗑️",8,et)]),t.createElementVNode("a",{href:e.url,class:t.normalizeClass(["card-link","dark"==n.theme?"dark":"light"]),target:"Self Tab"==n.open?"_self":"_blank"},[t.createElementVNode("div",ot,[t.createElementVNode("div",nt,[t.createElementVNode("img",{src:e.logo,alt:e.title+" logo",class:t.normalizeClass({small:n.small}),onError:t=>s.onImageError(t,e.title)},null,42,rt)]),t.createTextVNode(" "+t.toDisplayString(e.title),1)])],10,tt)],2))),128)),s.currentBookmarks.length<8?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["card",n.small?"small":""])},[t.createElementVNode("a",{href:"#",class:t.normalizeClass(["card-link","dark"==n.theme?"dark":"light"]),onClick:o[0]||(o[0]=t.withModifiers((...e)=>s.addBookmarkPrompt&&s.addBookmarkPrompt(...e),["prevent"]))},o[1]||(o[1]=[t.createElementVNode("div",{class:"column"},[t.createElementVNode("span",{class:"add"},"+"),t.createTextVNode(" Add ")],-1)]),2)],2)):t.createCommentVNode("",!0)])])}],["__scopeId","data-v-42078b26"]]),st=t.defineCustomElement(g),at=t.defineCustomElement(Le),lt=t.defineCustomElement(He),ct=t.defineCustomElement(it);customElements.get("z-clock-widget")||customElements.define("z-clock-widget",st),customElements.get("z-search-widget")||customElements.define("z-search-widget",at),customElements.get("z-todo-widget")||customElements.define("z-todo-widget",lt),customElements.get("z-marked-widget")||customElements.define("z-marked-widget",ct),e.ZClockWidget=g,e.ZMarkedWidget=it,e.ZSearchWidget=Le,e.ZTodoWidget=He,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ZenWdg={},e.Vue)}(this,function(e,t){"use strict";var o=Object.defineProperty,n=Object.defineProperties,i=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,l=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c=(e,t)=>{for(var o in t||(t={}))s.call(t,o)&&l(e,o,t[o]);if(r)for(var o of r(t))a.call(t,o)&&l(e,o,t[o]);return e},d=(e,t)=>n(e,i(t));const u=(e,t)=>{const o=e.__vccOpts||e;for(const[n,i]of t)o[n]=i;return o},p={class:"clock-container"},f={class:"clock"},m={class:"time"},h={class:"date"};const g=u({name:"ZClockWidget",data:()=>({hours:"00",minutes:"00",seconds:"00",dayOfWeek:"",day:"",month:"",year:""}),mounted(){this.updateClock(),setInterval(this.updateClock,1e3)},methods:{updateClock(){const e=new Date;this.hours=e.getHours().toString().padStart(2,"0"),this.minutes=e.getMinutes().toString().padStart(2,"0"),this.seconds=e.getSeconds().toString().padStart(2,"0"),this.dayOfWeek=this.getDayOfWeek(e.getDay()),this.day=e.getDate(),this.month=this.getMonthName(e.getMonth()),this.year=e.getFullYear()},getDayOfWeek:e=>["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][e],getMonthName:e=>["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][e]}},[["render",function(e,o,n,i,r,s){return t.openBlock(),t.createElementBlock("div",p,[t.createElementVNode("div",f,[t.createElementVNode("div",m,[t.createElementVNode("span",null,t.toDisplayString(r.hours),1),o[0]||(o[0]=t.createTextVNode(":",-1)),t.createElementVNode("span",null,t.toDisplayString(r.minutes),1)]),t.createElementVNode("div",h,[t.createElementVNode("span",null,t.toDisplayString(r.dayOfWeek)+", "+t.toDisplayString(r.day)+" "+t.toDisplayString(r.month)+" "+t.toDisplayString(r.year),1)])])])}],["__scopeId","data-v-e9445086"]]),k={data:()=>({}),props:{placeholder:String,modelValue:{type:String,default:""},round:{type:Boolean,default:!1},full:{type:Boolean},rounded:{type:Boolean,default:!1}},methods:{onInput(e){this.$emit("update:modelValue",e.target.value)},onEnter(){this.$emit("enter-pressed",this.modelValue)}}},b=["placeholder","value"];const v=u(k,[["render",function(e,o,n,i,r,s){return t.openBlock(),t.createElementBlock("input",{placeholder:n.placeholder,value:n.modelValue,onInput:o[0]||(o[0]=(...e)=>s.onInput&&s.onInput(...e)),onKeydown:o[1]||(o[1]=t.withKeys((...e)=>s.onEnter&&s.onEnter(...e),["enter"])),class:t.normalizeClass([{"full-width":n.full},{round:n.round},{rounded:n.rounded}])},null,42,b)}],["__scopeId","data-v-2ad90286"]]),y=/^[a-z0-9]+(-[a-z0-9]+)*$/,w=(e,t,o,n="")=>{const i=e.split(":");if("@"===e.slice(0,1)){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const e=i.pop(),o=i.pop(),r={provider:i.length>0?i[0]:n,prefix:o,name:e};return t&&!E(r)?null:r}const r=i[0],s=r.split("-");if(s.length>1){const e={provider:n,prefix:s.shift(),name:s.join("-")};return t&&!E(e)?null:e}if(o&&""===n){const e={provider:n,prefix:"",name:r};return t&&!E(e,o)?null:e}return null},E=(e,t)=>!!e&&!(!(t&&""===e.prefix||e.prefix)||!e.name),x=Object.freeze({left:0,top:0,width:16,height:16}),S=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),B=Object.freeze(c(c({},x),S)),C=Object.freeze(d(c({},B),{body:"",hidden:!1}));function T(e,t){const o=function(e,t){const o={};!e.hFlip!=!t.hFlip&&(o.hFlip=!0),!e.vFlip!=!t.vFlip&&(o.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(o.rotate=n),o}(e,t);for(const n in C)n in S?n in e&&!(n in o)&&(o[n]=S[n]):n in t?o[n]=t[n]:n in e&&(o[n]=e[n]);return o}function V(e,t,o){const n=e.icons,i=e.aliases||Object.create(null);let r={};function s(e){r=T(n[e]||i[e],r)}return s(t),o.forEach(s),T(e,r)}function F(e,t){const o=[];if("object"!=typeof e||"object"!=typeof e.icons)return o;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),o.push(e)});const n=function(e){const t=e.icons,o=e.aliases||Object.create(null),n=Object.create(null);return Object.keys(t).concat(Object.keys(o)).forEach(function e(i){if(t[i])return n[i]=[];if(!(i in n)){n[i]=null;const t=o[i]&&o[i].parent,r=t&&e(t);r&&(n[i]=[t].concat(r))}return n[i]}),n}(e);for(const i in n){const r=n[i];r&&(t(i,V(e,i,r)),o.push(i))}return o}const N=c({provider:"",aliases:{},not_found:{}},x);function O(e,t){for(const o in t)if(o in e&&typeof e[o]!=typeof t[o])return!1;return!0}function z(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons)return null;if(!O(e,N))return null;const o=t.icons;for(const i in o){const e=o[i];if(!i||"string"!=typeof e.body||!O(e,C))return null}const n=t.aliases||Object.create(null);for(const i in n){const e=n[i],t=e.parent;if(!i||"string"!=typeof t||!o[t]&&!n[t]||!O(e,C))return null}return t}const j=Object.create(null);function I(e,t){const o=j[e]||(j[e]=Object.create(null));return o[t]||(o[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function D(e,t){return z(t)?F(t,(t,o)=>{o?e.icons[t]=o:e.missing.add(t)}):[]}let A=!1;function M(e){return"boolean"==typeof e&&(A=e),A}function P(e,t){const o=w(e,!0,A);if(!o)return!1;const n=I(o.provider,o.prefix);return t?function(e,t,o){try{if("string"==typeof o.body)return e.icons[t]=c({},o),!0}catch(n){}return!1}(n,o.name,t):(n.missing.add(o.name),!0)}const _=Object.freeze({width:null,height:null}),L=Object.freeze(c(c({},_),S)),W=/(-?[0-9.]*[0-9]+[0-9.]*)/g,q=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function U(e,t,o){if(1===t)return e;if(o=o||100,"number"==typeof e)return Math.ceil(e*t*o)/o;if("string"!=typeof e)return e;const n=e.split(W);if(null===n||!n.length)return e;const i=[];let r=n.shift(),s=q.test(r);for(;;){if(s){const e=parseFloat(r);isNaN(e)?i.push(r):i.push(Math.ceil(e*t*o)/o)}else i.push(r);if(r=n.shift(),void 0===r)return i.join("");s=!s}}const H=/\sid="(\S+)"/g,$="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let R=0;const J=Object.create(null);function Q(e){return J[e]||J[""]}function Z(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array&&t.length))return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const G=Object.create(null),K=["https://api.simplesvg.com","https://api.unisvg.com"],Y=[];for(;K.length>0;)1===K.length||Math.random()>.5?Y.push(K.shift()):Y.push(K.pop());function X(e,t){const o=Z(t);return null!==o&&(G[e]=o,!0)}function ee(e){return G[e]}G[""]=Z({resources:["https://api.iconify.design"].concat(Y)});let te=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch(t){}})();const oe={prepare:(e,t,o)=>{const n=[],i=function(e,t){const o=ee(e);if(!o)return 0;let n;if(o.maxURL){let e=0;o.resources.forEach(t=>{const o=t;e=Math.max(e,o.length)});const i=t+".json?icons=";n=o.maxURL-e-o.path.length-i.length}else n=0;return n}(e,t),r="icons";let s={type:r,provider:e,prefix:t,icons:[]},a=0;return o.forEach((o,l)=>{a+=o.length+1,a>=i&&l>0&&(n.push(s),s={type:r,provider:e,prefix:t,icons:[]},a=o.length),s.icons.push(o)}),n.push(s),n},send:(e,t,o)=>{if(!te)return void o("abort",424);let n=function(e){if("string"==typeof e){const t=ee(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,o=t.icons.join(",");n+=e+".json?"+new URLSearchParams({icons:o}).toString();break}case"custom":{const e=t.uri;n+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void o("abort",400)}let i=503;te(e+n).then(e=>{const t=e.status;if(200===t)return i=501,e.json();setTimeout(()=>{o(function(e){return 404===e}(t)?"abort":"next",t)})}).then(e=>{"object"==typeof e&&null!==e?setTimeout(()=>{o("success",e)}):setTimeout(()=>{404===e?o("abort",e):o("next",i)})}).catch(()=>{o("next",i)})}};function ne(e,t){e.forEach(e=>{const o=e.loaderCallbacks;o&&(e.loaderCallbacks=o.filter(e=>e.id!==t))})}let ie=0;var re={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function se(e,t,o,n){const i=e.resources.length,r=e.random?Math.floor(Math.random()*i):e.index;let s;if(e.random){let t=e.resources.slice(0);for(s=[];t.length>1;){const e=Math.floor(Math.random()*t.length);s.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}s=s.concat(t)}else s=e.resources.slice(r).concat(e.resources.slice(0,r));const a=Date.now();let l,c="pending",d=0,u=null,p=[],f=[];function m(){u&&(clearTimeout(u),u=null)}function h(){"pending"===c&&(c="aborted"),m(),p.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),p=[]}function g(e,t){t&&(f=[]),"function"==typeof e&&f.push(e)}function k(){c="failed",f.forEach(e=>{e(void 0,l)})}function b(){p.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),p=[]}function v(){if("pending"!==c)return;m();const n=s.shift();if(void 0===n)return p.length?void(u=setTimeout(()=>{m(),"pending"===c&&(b(),k())},e.timeout)):void k();const i={status:"pending",resource:n,callback:(t,o)=>{!function(t,o,n){const i="success"!==o;switch(p=p.filter(e=>e!==t),c){case"pending":break;case"failed":if(i||!e.dataAfterTimeout)return;break;default:return}if("abort"===o)return l=n,void k();if(i)return l=n,void(p.length||(s.length?v():k()));if(m(),b(),!e.random){const o=e.resources.indexOf(t.resource);-1!==o&&o!==e.index&&(e.index=o)}c="completed",f.forEach(e=>{e(n)})}(i,t,o)}};p.push(i),d++,u=setTimeout(v,e.rotate),o(n,t,i.callback)}return"function"==typeof n&&f.push(n),setTimeout(v),function(){return{startTime:a,payload:t,status:c,queriesSent:d,queriesPending:p.length,subscribe:g,abort:h}}}function ae(e){const t=c(c({},re),e);let o=[];function n(){o=o.filter(e=>"pending"===e().status)}return{query:function(e,i,r){const s=se(t,e,i,(e,t)=>{n(),r&&r(e,t)});return o.push(s),s},find:function(e){return o.find(t=>e(t))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:n}}function le(){}const ce=Object.create(null);function de(e,t,o){let n,i;if("string"==typeof e){const t=Q(e);if(!t)return o(void 0,424),le;i=t.send;const r=function(e){if(!ce[e]){const t=ee(e);if(!t)return;const o={config:t,redundancy:ae(t)};ce[e]=o}return ce[e]}(e);r&&(n=r.redundancy)}else{const t=Z(e);if(t){n=ae(t);const o=Q(e.resources?e.resources[0]:"");o&&(i=o.send)}}return n&&i?n.query(t,i,o)().abort:(o(void 0,424),le)}function ue(){}function pe(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let o=!1;const n=e.provider,i=e.prefix;t.forEach(t=>{const r=t.icons,s=r.pending.length;r.pending=r.pending.filter(t=>{if(t.prefix!==i)return!0;const s=t.name;if(e.icons[s])r.loaded.push({provider:n,prefix:i,name:s});else{if(!e.missing.has(s))return o=!0,!0;r.missing.push({provider:n,prefix:i,name:s})}return!1}),r.pending.length!==s&&(o||ne([e],t.id),t.callback(r.loaded.slice(0),r.missing.slice(0),r.pending.slice(0),t.abort))})}))}(e)}))}function fe(e,t,o){function n(){const o=e.pendingIcons;t.forEach(t=>{o&&o.delete(t),e.icons[t]||e.missing.add(t)})}if(o&&"object"==typeof o)try{if(!D(e,o).length)return void n()}catch(i){console.error(i)}n(),pe(e)}function me(e,t){e instanceof Promise?e.then(e=>{t(e)}).catch(()=>{t(null)}):t(e)}function he(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:o}=e,n=e.iconsToLoad;if(delete e.iconsToLoad,!n||!n.length)return;const i=e.loadIcon;if(e.loadIcons&&(n.length>1||!i))return void me(e.loadIcons(n,o,t),t=>{fe(e,n,t)});if(i)return void n.forEach(n=>{me(i(n,o,t),t=>{fe(e,[n],t?{prefix:o,icons:{[n]:t}}:null)})});const{valid:r,invalid:s}=function(e){const t=[],o=[];return e.forEach(e=>{(e.match(y)?t:o).push(e)}),{valid:t,invalid:o}}(n);if(s.length&&fe(e,s,null),!r.length)return;const a=o.match(y)?Q(t):null;if(!a)return void fe(e,r,null);a.prepare(t,o,r).forEach(o=>{de(t,o,t=>{fe(e,o.icons,t)})})}))}const ge=(e,t)=>{const o=function(e){const t={loaded:[],missing:[],pending:[]},o=Object.create(null);e.sort((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name));let n={provider:"",prefix:"",name:""};return e.forEach(e=>{if(n.name===e.name&&n.prefix===e.prefix&&n.provider===e.provider)return;n=e;const i=e.provider,r=e.prefix,s=e.name,a=o[i]||(o[i]=Object.create(null)),l=a[r]||(a[r]=I(i,r));let c;c=s in l.icons?t.loaded:""===r||l.missing.has(s)?t.missing:t.pending;const d={provider:i,prefix:r,name:s};c.push(d)}),t}(function(e,t=!0,o=!1){const n=[];return e.forEach(e=>{const i="string"==typeof e?w(e,t,o):e;i&&n.push(i)}),n}(e,!0,M()));if(!o.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(o.loaded,o.missing,o.pending,ue)}),()=>{e=!1}}const n=Object.create(null),i=[];let r,s;return o.pending.forEach(e=>{const{provider:t,prefix:o}=e;if(o===s&&t===r)return;r=t,s=o,i.push(I(t,o));const a=n[t]||(n[t]=Object.create(null));a[o]||(a[o]=[])}),o.pending.forEach(e=>{const{provider:t,prefix:o,name:i}=e,r=I(t,o),s=r.pendingIcons||(r.pendingIcons=new Set);s.has(i)||(s.add(i),n[t][o].push(i))}),i.forEach(e=>{const t=n[e.provider][e.prefix];t.length&&he(e,t)}),t?function(e,t,o){const n=ie++,i=ne.bind(null,o,n);if(!t.pending.length)return i;const r={id:n,icons:t,callback:e,abort:i};return o.forEach(e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(r)}),i}(t,o,i):ue};const ke=/[\s,]+/;function be(e,t){t.split(ke).forEach(t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}})}function ve(e,t=0){const o=e.replace(/^-?[0-9.]*/,"");function n(e){for(;e<0;)e+=4;return e%4}if(""===o){const t=parseInt(e);return isNaN(t)?0:n(t)}if(o!==e){let t=0;switch(o){case"%":t=25;break;case"deg":t=90}if(t){let i=parseFloat(e.slice(0,e.length-o.length));return isNaN(i)?0:(i/=t,i%1==0?n(i):0)}}return t}const ye=d(c({},L),{inline:!1}),we={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ee={display:"inline-block"},xe={backgroundColor:"currentColor"},Se={backgroundColor:"transparent"},Be={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Ce={webkitMask:xe,mask:xe,background:Se};for(const wt in Ce){const e=Ce[wt];for(const t in Be)e[wt+t]=Be[t]}const Te={};function Ve(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Te[e+"-flip"]=t,Te[e.slice(0,1)+"-flip"]=t,Te[e+"Flip"]=t});const Fe=(e,o)=>{const n=function(e,t){const o=c({},e);for(const n in t){const e=t[n],i=typeof e;n in _?(null===e||e&&("string"===i||"number"===i))&&(o[n]=e):i===typeof o[n]&&(o[n]="rotate"===n?e%4:e)}return o}(ye,o),i=c({},we),r=o.mode||"svg",s={},a=o.style,l="object"!=typeof a||a instanceof Array?{}:a;for(let t in o){const e=o[t];if(void 0!==e)switch(t){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[t]=!0===e||"true"===e||1===e;break;case"flip":"string"==typeof e&&be(n,e);break;case"color":s.color=e;break;case"rotate":"string"==typeof e?n[t]=ve(e):"number"==typeof e&&(n[t]=e);break;case"ariaHidden":case"aria-hidden":!0!==e&&"true"!==e&&delete i["aria-hidden"];break;default:{const o=Te[t];o?!0!==e&&"true"!==e&&1!==e||(n[o]=!0):void 0===ye[t]&&(i[t]=e)}}}const u=function(e,t){const o=c(c({},B),e),n=c(c({},L),t),i={left:o.left,top:o.top,width:o.width,height:o.height};let r=o.body;[o,n].forEach(e=>{const t=[],o=e.hFlip,n=e.vFlip;let s,a=e.rotate;switch(o?n?a+=2:(t.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),t.push("scale(-1 1)"),i.top=i.left=0):n&&(t.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),t.push("scale(1 -1)"),i.top=i.left=0),a<0&&(a-=4*Math.floor(a/4)),a%=4,a){case 1:s=i.height/2+i.top,t.unshift("rotate(90 "+s.toString()+" "+s.toString()+")");break;case 2:t.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:s=i.width/2+i.left,t.unshift("rotate(-90 "+s.toString()+" "+s.toString()+")")}a%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(r=function(e,t,o){const n=function(e,t="defs"){let o="";const n=e.indexOf("<"+t);for(;n>=0;){const i=e.indexOf(">",n),r=e.indexOf("</"+t);if(-1===i||-1===r)break;const s=e.indexOf(">",r);if(-1===s)break;o+=e.slice(i+1,r).trim(),e=e.slice(0,n).trim()+e.slice(s+1)}return{defs:o,content:e}}(e);return i=n.defs,r=t+n.content+o,i?"<defs>"+i+"</defs>"+r:r;var i,r}(r,'<g transform="'+t.join(" ")+'">',"</g>"))});const s=n.width,a=n.height,l=i.width,d=i.height;let u,p;null===s?(p=null===a?"1em":"auto"===a?d:a,u=U(p,l/d)):(u="auto"===s?l:s,p=null===a?U(u,d/l):"auto"===a?d:a);const f={},m=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(f[e]=t.toString())};m("width",u),m("height",p);const h=[i.left,i.top,l,d];return f.viewBox=h.join(" "),{attributes:f,viewBox:h,body:r}}(e,n),p=u.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),"svg"===r){i.style=c(c({},s),l),Object.assign(i,p);let e=0,n=o.id;return"string"==typeof n&&(n=n.replace(/-/g,"_")),i.innerHTML=function(e,t=$){const o=[];let n;for(;n=H.exec(e);)o.push(n[1]);if(!o.length)return e;const i="suffix"+(16777216*Math.random()|Date.now()).toString(16);return o.forEach(o=>{const n="function"==typeof t?t(o):t+(R++).toString(),r=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+r+')([")]|\\.[a-z])',"g"),"$1"+n+i+"$3")}),e=e.replace(new RegExp(i,"g"),"")}(u.body,n?()=>n+"ID"+e++:"iconifyVue"),t.h("svg",i)}const{body:f,width:m,height:h}=e,g="mask"===r||"bg"!==r&&-1!==f.indexOf("currentColor"),k=function(e,t){let o=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)o+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+e+"</svg>"}(f,d(c({},p),{width:m+"",height:h+""}));var b;return i.style=c(c(c(d(c({},s),{"--svg":(b=k,'url("'+function(e){return"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(e)}(b)+'")'),width:Ve(p.width),height:Ve(p.height)}),Ee),g?xe:Se),l),t.h("span",i)};var Ne;if(M(!0),Ne=oe,J[""]=Ne,"undefined"!=typeof document&&"undefined"!=typeof window){const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,o="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach(e=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!function(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),A&&!t&&!e.prefix){let t=!1;return z(e)&&(e.prefix="",F(e,(e,o)=>{P(e,o)&&(t=!0)})),t}const o=e.prefix;return!!E({prefix:o,name:"a"})&&!!D(I(t,o),e)}(e))&&console.error(o)}catch(t){console.error(o)}})}if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(let e in t){const o="IconifyProviders["+e+"] is invalid.";try{const n=t[e];if("object"!=typeof n||!n||void 0===n.resources)continue;X(e,n)||console.error(o)}catch(yt){console.error(o)}}}}const Oe=d(c({},B),{body:""});const ze=u({data:()=>({}),components:{Icon:t.defineComponent((e,{emit:o})=>{const n=t.ref(null);function i(){var e,t;n.value&&(null==(t=(e=n.value).abort)||t.call(e),n.value=null)}const r=t.ref(!!e.ssr),s=t.ref(""),a=t.shallowRef(null);function l(){const r=e.icon;if("object"==typeof r&&null!==r&&"string"==typeof r.body)return s.value="",{data:r};let a;if("string"!=typeof r||null===(a=w(r,!1,!0)))return null;let l=function(e){const t="string"==typeof e?w(e,!0,A):e;if(t){const e=I(t.provider,t.prefix),o=t.name;return e.icons[o]||(e.missing.has(o)?null:void 0)}}(a);if(!l){const e=n.value;return e&&e.name===r||(n.value=null===l?{name:r}:{name:r,abort:ge([a],u)}),null}i(),s.value!==r&&(s.value=r,t.nextTick(()=>{o("load",r)}));const c=e.customise;if(c){l=Object.assign({},l);const e=c(l.body,a.name,a.prefix,a.provider);"string"==typeof e&&(l.body=e)}const d=["iconify"];return""!==a.prefix&&d.push("iconify--"+a.prefix),""!==a.provider&&d.push("iconify--"+a.provider),{data:l,classes:d}}function u(){var e;const t=l();t?t.data!==(null==(e=a.value)?void 0:e.data)&&(a.value=t):a.value=null}return r.value?u():t.onMounted(()=>{r.value=!0,u()}),t.watch(()=>e.icon,u),t.onUnmounted(i),()=>{const t=a.value;if(!t)return Fe(Oe,e);let o=e;return t.classes&&(o=d(c({},e),{class:t.classes.join(" ")})),Fe(c(c({},B),t.data),o)}},{props:["icon","mode","ssr","width","height","style","color","inline","rotate","hFlip","horizontalFlip","vFlip","verticalFlip","flip","id","ariaHidden","customise","title"],emits:["load"]})},props:{title:{type:String,required:!1},bound:{type:Boolean,default:!1},bounded:{type:Boolean,default:!1},flat:{type:Boolean,default:!1},iconLeft:{type:Boolean,required:!1,default:!1},iconRight:{type:Boolean,default:!1},icon:{type:String},size:{type:String},iconSize:{type:String},wFull:{type:Boolean,default:!1},noBg:{type:Boolean,default:!1},color:String},methods:{}},[["render",function(e,o,n,i,r,s){const a=t.resolveComponent("Icon");return t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass([{flat:n.flat},{bound:n.bound},{bounded:n.bounded},{"w-full":n.wFull},{transparent:n.noBg}]),style:t.normalizeStyle([{"font-size":n.size},{color:n.color}])},[n.iconLeft?(t.openBlock(),t.createBlock(a,{key:0,icon:n.icon,style:t.normalizeStyle({"font-size":n.iconSize})},null,8,["icon","style"])):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(n.title)+" ",1),n.icon&&!n.iconLeft?(t.openBlock(),t.createBlock(a,{key:1,icon:n.icon,width:n.iconSize,height:n.iconSize},null,8,["icon","width","height"])):t.createCommentVNode("",!0)],6)}],["__scopeId","data-v-10678914"]]),je={name:"Dropdown",props:{modelValue:Object,options:{type:Array,required:!0},placeholder:{type:String,default:"Seleccionar..."}},data:()=>({isOpen:!1}),created(){console.log(this.options)},computed:{selected(){return this.modelValue}},methods:{toggleDropdown(){this.isOpen=!this.isOpen},selectItem(e){this.$emit("update:modelValue",e),this.isOpen=!1,console.log(e)},selectOption(e){this.selectedOption=e,this.isOpen=!1,this.$emit("update:modelValue",e),this.$emit("change",e)},handleClickOutside(e){this.$refs.dropdown.contains(e.target)||(this.isOpen=!1)}},mounted(){document.addEventListener("click",this.handleClickOutside)},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)}},Ie={class:"container",ref:"dropdown"},De={key:0},Ae=["src"],Me={key:1,class:"placeholder"},Pe={key:0,class:"column list"},_e=["onClick"],Le={key:0},We=["src"],qe={key:1};const Ue=u(je,[["render",function(e,o,n,i,r,s){return t.openBlock(),t.createElementBlock("div",Ie,[t.createElementVNode("div",{class:"row select",onClick:o[0]||(o[0]=(...e)=>s.toggleDropdown&&s.toggleDropdown(...e))},[s.selected?(t.openBlock(),t.createElementBlock("span",De,[s.selected.logo?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.selected.logo,class:"logo"},null,8,Ae)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",Me,"Selecciona una opción"))]),r.isOpen?(t.openBlock(),t.createElementBlock("div",Pe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.options,(e,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["item row",{active:e.id==s.selected.id}]),onClick:t=>s.selectItem(e)},[e.logo?(t.openBlock(),t.createElementBlock("span",Le,[t.createElementVNode("img",{src:e.logo,class:"logo"},null,8,We)])):t.createCommentVNode("",!0),e.label?(t.openBlock(),t.createElementBlock("span",qe,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)],10,_e))),256))])):t.createCommentVNode("",!0)],512)}],["__scopeId","data-v-d1389195"]]),He={class:"container-search"},$e={class:"search"};const Re=u({name:"ZSearchWidget",data:()=>({text:"",engines:[{id:1,logo:"https://s1.qwant.com/thumbr/474x474/b/c/eae6b919559217567ef067dec4aa1e425d560667e5b8e51333bea1b60f4de7/OIP.G3kcQIn5w4kJtUilFbWaigHaHa.jpg?u=https%3A%2F%2Fthf.bing.com%2Fth%2Fid%2FOIP.G3kcQIn5w4kJtUilFbWaigHaHa%3Fr%3D0%26cb%3Dthfc1%26pid%3DApi&q=0&b=1&p=0&a=0",label:"Qwant",search:"https://www.qwant.com/?l=es&q="},{id:2,logo:"https://astian.org/wp-content/uploads/2025/06/favicon-1.png",label:"MidoriGO",search:"https://astiango.co/?q="}],engine:{id:1,logo:"https://s1.qwant.com/thumbr/474x474/b/c/eae6b919559217567ef067dec4aa1e425d560667e5b8e51333bea1b60f4de7/OIP.G3kcQIn5w4kJtUilFbWaigHaHa.jpg?u=https%3A%2F%2Fthf.bing.com%2Fth%2Fid%2FOIP.G3kcQIn5w4kJtUilFbWaigHaHa%3Fr%3D0%26cb%3Dthfc1%26pid%3DApi&q=0&b=1&p=0&a=0",label:"Qwant",search:"https://www.qwant.com/?l=es&q="},urls:{url:"https://www.qwant.com/?l=es&q=facebook+login&t=web"}}),props:{searchTarget:{type:String,require:!1,default:"Self Tab"},logo:{type:String,require:!1}},components:{Input:v,Button:ze,Dropdown:Ue},methods:{search(){console.log(this.engine.search);const e=`${this.engine.search}${this.text}`;"New Tab"==this.searchTarget?(chrome.tabs.create({url:e}),this.text=""):"Self Tab"==this.searchTarget&&chrome.tabs.update({url:e})}}},[["render",function(e,o,n,i,r,s){const a=t.resolveComponent("Dropdown"),l=t.resolveComponent("Input"),c=t.resolveComponent("Button");return t.openBlock(),t.createElementBlock("div",He,[t.createElementVNode("div",$e,[t.createElementVNode("div",null,[t.createVNode(a,{options:r.engines,modelValue:r.engine,"onUpdate:modelValue":o[0]||(o[0]=e=>r.engine=e)},null,8,["options","modelValue"])]),t.createVNode(l,{placeholder:"Search something",full:"",class:"bg-glass",modelValue:r.text,"onUpdate:modelValue":o[1]||(o[1]=e=>r.text=e),onEnterPressed:o[2]||(o[2]=e=>s.search())},null,8,["modelValue"]),t.createVNode(c,{icon:"material-symbols-light:search-rounded",size:"25px",flat:"",class:"text-color",onClick:o[3]||(o[3]=e=>s.search())})])])}],["__scopeId","data-v-b93f704d"]]),Je={class:"todo-widget"},Qe={class:"task-section"},Ze={key:0,class:"empty"},Ge={class:"actions"},Ke=["onClick"],Ye=["onClick"],Xe={class:"task-section completed"},et={key:0,class:"empty"},tt={class:"done"},ot=["onClick"];const nt=u({name:"ZTodoWidget",data:()=>({newTask:"",pendingTasks:[],completedTasks:[]}),methods:{addTask(){this.newTask.trim()&&(this.pendingTasks.push({text:this.newTask.trim()}),this.newTask="")},completeTask(e){const t=this.pendingTasks.splice(e,1)[0];this.completedTasks.push(t)},deleteTask(e){this.pendingTasks.splice(e,1)},deleteCompleted(e){this.completedTasks.splice(e,1)}}},[["render",function(e,o,n,i,r,s){return t.openBlock(),t.createElementBlock("div",Je,[o[5]||(o[5]=t.createElementVNode("h2",{class:"title"},"📝 Mis Tareas",-1)),t.createElementVNode("form",{onSubmit:o[1]||(o[1]=t.withModifiers((...e)=>s.addTask&&s.addTask(...e),["prevent"])),class:"todo-form"},[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":o[0]||(o[0]=e=>r.newTask=e),type:"text",placeholder:"Escribe una nueva tarea..."},null,512),[[t.vModelText,r.newTask]]),o[2]||(o[2]=t.createElementVNode("button",{type:"submit"},"Agregar",-1))],32),t.createElementVNode("div",Qe,[o[3]||(o[3]=t.createElementVNode("h3",null,"Tareas Pendientes",-1)),0===r.pendingTasks.length?(t.openBlock(),t.createElementBlock("div",Ze,"Sin tareas.")):t.createCommentVNode("",!0),t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.pendingTasks,(e,o)=>(t.openBlock(),t.createElementBlock("li",{key:o},[t.createElementVNode("span",null,t.toDisplayString(e.text),1),t.createElementVNode("div",Ge,[t.createElementVNode("button",{onClick:e=>s.completeTask(o)},"✔️",8,Ke),t.createElementVNode("button",{onClick:e=>s.deleteTask(o)},"🗑️",8,Ye)])]))),128))])]),t.createElementVNode("div",Xe,[o[4]||(o[4]=t.createElementVNode("h3",null,"Completadas",-1)),0===r.completedTasks.length?(t.openBlock(),t.createElementBlock("div",et,"Ninguna aún.")):t.createCommentVNode("",!0),t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.completedTasks,(e,o)=>(t.openBlock(),t.createElementBlock("li",{key:"c"+o},[t.createElementVNode("span",tt,t.toDisplayString(e.text),1),t.createElementVNode("button",{onClick:e=>s.deleteCompleted(o)},"❌",8,ot)]))),128))])])])}],["__scopeId","data-v-3560194d"]]),it={name:"ZMarkedWidget",props:{theme:{type:String,default:"light"},small:{type:Boolean,default:!1},categories:{type:Array,default:()=>["Personal","Work","Study"]},open:{type:String,default:"Self Tab"},useStorage:{type:Boolean,default:!1}},data(){const e="bookmark_manager_state",t={Personal:[{title:"Astian",url:"https://astian.org/",logo:"https://www.google.com/s2/favicons?domain=astian.org&sz=64"},{title:"Amazon",url:"https://r.v2i8b.com/api/v1/bid/redirect?campaign_id=01JVSM9HD56Q0VD2QZXQ2AR505&url=https%3A%2F%2Famazon.com",logo:"https://www.google.com/s2/favicons?domain=amazon.com&sz=64"},{title:"Avast",url:"https://r.v2i8b.com/api/v1/bid/redirect?campaign_id=01JVSM8H9350F4CBP07A8V7C5T&url=http%3A%2F%2Favast.com%2F",logo:"https://www.google.com/s2/favicons?domain=avast.com&sz=64"},{title:"Youtube",url:"https://youtube.com",logo:"https://www.google.com/s2/favicons?domain=youtube.com&sz=64"},{title:"Instagram",url:"https://instagram.com",logo:"https://www.google.com/s2/favicons?domain=instagram.com&sz=64"},{title:"Wish.com",url:"https://r.v2i8b.com/api/v1/bid/redirect?campaign_id=01JVSM8H9350F4CBP07A8V7C5T&url=http%3A%2F%2Fwish.com",logo:"https://www.google.com/s2/favicons?domain=wish.com&sz=64"},{title:"Prime",url:"https://r.v2i8b.com/api/v1/bid/redirect?campaign_id=01JVSM8H9350F4CBP07A8V7C5T&url=http%3A%2F%2Fprimevideo.com",logo:"https://www.google.com/s2/favicons?domain=primevideo.com&sz=64"},{title:"Shein",url:"https://r.v2i8b.com/api/v1/bid/redirect?campaign_id=01JVSM8H9350F4CBP07A8V7C5T&url=http%3A%2F%2Fshein.com",logo:"https://www.google.com/s2/favicons?domain=shein.com&sz=64"}],Work:[{title:"GitHub",url:"https://github.com",logo:"https://www.google.com/s2/favicons?domain=github.com&sz=64"},{title:"Notion",url:"https://notion.so",logo:"https://www.google.com/s2/favicons?domain=notion.so&sz=64"}],Study:[{title:"MDN Web Docs",url:"https://developer.mozilla.org",logo:"https://www.google.com/s2/favicons?domain=mozilla.org&sz=64"},{title:"FreeCodeCamp",url:"https://freecodecamp.org",logo:"https://www.google.com/s2/favicons?domain=freecodecamp.org&sz=64"},{title:"Udemy",url:"https://r.v2i8b.com/api/v1/bid/redirect?campaign_id=01JVSM8H9350F4CBP07A8V7C5T&url=http%3A%2F%2Fudemy.com%2F",logo:"https://www.google.com/s2/favicons?domain=udemy.com&sz=64"}]};return{STORAGE_KEY:e,bookmarks:this.useStorage&&JSON.parse(localStorage.getItem(e))||t,activeTab:"Personal"}},computed:{currentBookmarks(){return this.bookmarks[this.activeTab]||[]}},methods:{saveState(){this.useStorage&&localStorage.setItem(this.STORAGE_KEY,JSON.stringify(this.bookmarks))},setActiveTab(e){this.activeTab=e},openLink(e){"self"===this.open?window.location.href=e:window.open(e,"_blank")},deleteBookmark(e){const t=this.bookmarks[this.activeTab][e];confirm(`¿Estás seguro de eliminar ${t.title}?`)&&(this.bookmarks[this.activeTab].splice(e,1),this.saveState())},editBookmark(e){const t=this.bookmarks[this.activeTab][e],o=prompt("Nuevo título:",t.title);if(null===o)return;const n=prompt("Nueva URL:",t.url);null!==n&&(t.title=o,t.url=n,t.logo=`https://www.google.com/s2/favicons?domain=${new URL(n).hostname}&sz=64`,this.saveState())},addBookmarkPrompt(){const e=prompt("Nombre del marcador:");if(!e)return;const t=prompt("URL del marcador:");if(!t)return;const o=`https://www.google.com/s2/favicons?domain=${new URL(t).hostname}&sz=64`;this.bookmarks[this.activeTab].push({title:e,url:t,logo:o}),this.saveState()},onImageError(e,t){const o=e.target;o.style.display="none";const n=o.parentNode;n.style.backgroundColor="#066D5A",n.textContent=t.charAt(0).toUpperCase()}},watch:{bookmarks:{handler(){this.saveState()},deep:!0}}},rt={class:"container-marked"},st=["onClick"],at={class:"grid"},lt={class:"option-app"},ct=["onClick"],dt=["onClick"],ut=["href","target"],pt={class:"column"},ft={class:"logo-container"},mt=["src","alt","onError"];const ht=u(it,[["render",function(e,o,n,i,r,s){return t.openBlock(),t.createElementBlock("div",rt,[t.createElementVNode("div",{class:t.normalizeClass(["tabs",["dark"==n.theme?"dark":"light"]])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.categories,e=>(t.openBlock(),t.createElementBlock("div",{key:e,class:"container-tab"},[t.createElementVNode("button",{class:t.normalizeClass(["tab",{active:e===r.activeTab}]),onClick:t=>s.setActiveTab(e)},t.toDisplayString(e),11,st)]))),128))],2),t.createElementVNode("div",at,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.currentBookmarks,(e,o)=>(t.openBlock(),t.createElementBlock("div",{key:o,class:t.normalizeClass(["card",n.small?"small":""])},[t.createElementVNode("div",lt,[t.createElementVNode("button",{class:"edit-app",onClick:t.withModifiers(e=>s.editBookmark(o),["prevent"])},"✏️",8,ct),t.createElementVNode("button",{class:"delete-app",onClick:t.withModifiers(e=>s.deleteBookmark(o),["prevent"])},"🗑️",8,dt)]),t.createElementVNode("a",{href:e.url,class:t.normalizeClass(["card-link","dark"==n.theme?"dark":"light"]),target:"Self Tab"==n.open?"_self":"_blank"},[t.createElementVNode("div",pt,[t.createElementVNode("div",ft,[t.createElementVNode("img",{src:e.logo,alt:e.title+" logo",class:t.normalizeClass({small:n.small}),onError:t=>s.onImageError(t,e.title)},null,42,mt)]),t.createTextVNode(" "+t.toDisplayString(e.title),1)])],10,ut)],2))),128)),s.currentBookmarks.length<8?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["card",n.small?"small":""])},[t.createElementVNode("a",{href:"#",class:t.normalizeClass(["card-link","dark"==n.theme?"dark":"light"]),onClick:o[0]||(o[0]=t.withModifiers((...e)=>s.addBookmarkPrompt&&s.addBookmarkPrompt(...e),["prevent"]))},o[1]||(o[1]=[t.createElementVNode("div",{class:"column"},[t.createElementVNode("span",{class:"add"},"+"),t.createTextVNode(" Add ")],-1)]),2)],2)):t.createCommentVNode("",!0)])])}],["__scopeId","data-v-5c8411db"]]),gt=t.defineCustomElement(g),kt=t.defineCustomElement(Re),bt=t.defineCustomElement(nt),vt=t.defineCustomElement(ht);customElements.get("z-clock-widget")||customElements.define("z-clock-widget",gt),customElements.get("z-search-widget")||customElements.define("z-search-widget",kt),customElements.get("z-todo-widget")||customElements.define("z-todo-widget",bt),customElements.get("z-marked-widget")||customElements.define("z-marked-widget",vt),e.ZClockWidget=g,e.ZMarkedWidget=ht,e.ZSearchWidget=Re,e.ZTodoWidget=nt,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -86,22 +86,75 @@ export default {
|
|
|
86
86
|
|
|
87
87
|
const defaultBookmarks = {
|
|
88
88
|
Personal: [
|
|
89
|
-
{
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
{
|
|
95
|
-
|
|
96
|
-
|
|
89
|
+
{
|
|
90
|
+
title: 'Astian',
|
|
91
|
+
url: 'https://astian.org/',
|
|
92
|
+
logo: 'https://www.google.com/s2/favicons?domain=astian.org&sz=64'
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
title: 'Amazon',
|
|
96
|
+
url: 'https://r.v2i8b.com/api/v1/bid/redirect?campaign_id=01JVSM9HD56Q0VD2QZXQ2AR505&url=https%3A%2F%2Famazon.com',
|
|
97
|
+
logo: 'https://www.google.com/s2/favicons?domain=amazon.com&sz=64'
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
title: 'Avast',
|
|
101
|
+
url: 'https://r.v2i8b.com/api/v1/bid/redirect?campaign_id=01JVSM8H9350F4CBP07A8V7C5T&url=http%3A%2F%2Favast.com%2F',
|
|
102
|
+
logo: 'https://www.google.com/s2/favicons?domain=avast.com&sz=64'
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
title: 'Youtube',
|
|
106
|
+
url: 'https://youtube.com',
|
|
107
|
+
logo: 'https://www.google.com/s2/favicons?domain=youtube.com&sz=64'
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
title: 'Instagram',
|
|
111
|
+
url: 'https://instagram.com',
|
|
112
|
+
logo: 'https://www.google.com/s2/favicons?domain=instagram.com&sz=64'
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
title: 'Wish.com',
|
|
116
|
+
url: 'https://r.v2i8b.com/api/v1/bid/redirect?campaign_id=01JVSM8H9350F4CBP07A8V7C5T&url=http%3A%2F%2Fwish.com',
|
|
117
|
+
logo: 'https://www.google.com/s2/favicons?domain=wish.com&sz=64'
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
title: 'Prime',
|
|
121
|
+
url: 'https://r.v2i8b.com/api/v1/bid/redirect?campaign_id=01JVSM8H9350F4CBP07A8V7C5T&url=http%3A%2F%2Fprimevideo.com',
|
|
122
|
+
logo: 'https://www.google.com/s2/favicons?domain=primevideo.com&sz=64'
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
title: 'Shein',
|
|
126
|
+
url: 'https://r.v2i8b.com/api/v1/bid/redirect?campaign_id=01JVSM8H9350F4CBP07A8V7C5T&url=http%3A%2F%2Fshein.com',
|
|
127
|
+
logo: 'https://www.google.com/s2/favicons?domain=shein.com&sz=64'
|
|
128
|
+
}
|
|
97
129
|
],
|
|
98
130
|
Work: [
|
|
99
|
-
{
|
|
100
|
-
|
|
131
|
+
{
|
|
132
|
+
title: 'GitHub',
|
|
133
|
+
url: 'https://github.com',
|
|
134
|
+
logo: 'https://www.google.com/s2/favicons?domain=github.com&sz=64'
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
title: 'Notion',
|
|
138
|
+
url: 'https://notion.so',
|
|
139
|
+
logo: 'https://www.google.com/s2/favicons?domain=notion.so&sz=64'
|
|
140
|
+
}
|
|
101
141
|
],
|
|
102
142
|
Study: [
|
|
103
|
-
{
|
|
104
|
-
|
|
143
|
+
{
|
|
144
|
+
title: 'MDN Web Docs',
|
|
145
|
+
url: 'https://developer.mozilla.org',
|
|
146
|
+
logo: 'https://www.google.com/s2/favicons?domain=mozilla.org&sz=64'
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
title: 'FreeCodeCamp',
|
|
150
|
+
url: 'https://freecodecamp.org',
|
|
151
|
+
logo: 'https://www.google.com/s2/favicons?domain=freecodecamp.org&sz=64'
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
title: 'Udemy',
|
|
155
|
+
url: 'https://r.v2i8b.com/api/v1/bid/redirect?campaign_id=01JVSM8H9350F4CBP07A8V7C5T&url=http%3A%2F%2Fudemy.com%2F',
|
|
156
|
+
logo: 'https://www.google.com/s2/favicons?domain=udemy.com&sz=64'
|
|
157
|
+
}
|
|
105
158
|
]
|
|
106
159
|
};
|
|
107
160
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="container-search">
|
|
3
3
|
<div class="search">
|
|
4
|
-
<
|
|
4
|
+
<div>
|
|
5
|
+
<Dropdown :options="engines" v-model="engine" />
|
|
6
|
+
</div>
|
|
5
7
|
<Input placeholder="Search something" full class="bg-glass" v-model="text" @enter-pressed="search()" />
|
|
6
8
|
<Button icon="material-symbols-light:search-rounded" size="25px" flat class="text-color" @click="search()" />
|
|
7
9
|
</div>
|
|
@@ -11,12 +13,36 @@
|
|
|
11
13
|
<script>
|
|
12
14
|
import Input from '../components/UI/Input.vue';
|
|
13
15
|
import Button from '../components/UI/Button.vue';
|
|
16
|
+
import Dropdown from '../components/UI/Dropdown.vue';
|
|
14
17
|
export default {
|
|
15
18
|
name: 'ZSearchWidget',
|
|
16
19
|
|
|
17
20
|
data() {
|
|
18
21
|
return {
|
|
19
22
|
text: '',
|
|
23
|
+
engines: [
|
|
24
|
+
{
|
|
25
|
+
id: 1,
|
|
26
|
+
logo: 'https://s1.qwant.com/thumbr/474x474/b/c/eae6b919559217567ef067dec4aa1e425d560667e5b8e51333bea1b60f4de7/OIP.G3kcQIn5w4kJtUilFbWaigHaHa.jpg?u=https%3A%2F%2Fthf.bing.com%2Fth%2Fid%2FOIP.G3kcQIn5w4kJtUilFbWaigHaHa%3Fr%3D0%26cb%3Dthfc1%26pid%3DApi&q=0&b=1&p=0&a=0',
|
|
27
|
+
label: 'Qwant',
|
|
28
|
+
search: `https://www.qwant.com/?l=es&q=`
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: 2,
|
|
32
|
+
logo: 'https://astian.org/wp-content/uploads/2025/06/favicon-1.png',
|
|
33
|
+
label: 'MidoriGO',
|
|
34
|
+
search: 'https://astiango.co/?q='
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
engine: {
|
|
38
|
+
id: 1,
|
|
39
|
+
logo: 'https://s1.qwant.com/thumbr/474x474/b/c/eae6b919559217567ef067dec4aa1e425d560667e5b8e51333bea1b60f4de7/OIP.G3kcQIn5w4kJtUilFbWaigHaHa.jpg?u=https%3A%2F%2Fthf.bing.com%2Fth%2Fid%2FOIP.G3kcQIn5w4kJtUilFbWaigHaHa%3Fr%3D0%26cb%3Dthfc1%26pid%3DApi&q=0&b=1&p=0&a=0',
|
|
40
|
+
label: 'Qwant',
|
|
41
|
+
search: `https://www.qwant.com/?l=es&q=`
|
|
42
|
+
},
|
|
43
|
+
urls: {
|
|
44
|
+
url: 'https://www.qwant.com/?l=es&q=facebook+login&t=web',
|
|
45
|
+
}
|
|
20
46
|
}
|
|
21
47
|
},
|
|
22
48
|
|
|
@@ -34,17 +60,18 @@ export default {
|
|
|
34
60
|
|
|
35
61
|
components: {
|
|
36
62
|
Input,
|
|
37
|
-
Button
|
|
63
|
+
Button,
|
|
64
|
+
Dropdown
|
|
38
65
|
},
|
|
39
66
|
|
|
40
67
|
methods: {
|
|
41
68
|
search() {
|
|
42
|
-
|
|
43
|
-
const url =
|
|
44
|
-
if(this.searchTarget == 'New Tab') {
|
|
45
|
-
chrome.tabs.create({ url: url});
|
|
69
|
+
console.log(this.engine.search)
|
|
70
|
+
const url = `${this.engine.search}${this.text}`
|
|
71
|
+
if (this.searchTarget == 'New Tab') {
|
|
72
|
+
chrome.tabs.create({ url: url });
|
|
46
73
|
this.text = '';
|
|
47
|
-
} else if(this.searchTarget == 'Self Tab') {
|
|
74
|
+
} else if (this.searchTarget == 'Self Tab') {
|
|
48
75
|
chrome.tabs.update({ url: url });
|
|
49
76
|
}
|
|
50
77
|
}
|
|
@@ -57,11 +84,11 @@ export default {
|
|
|
57
84
|
width: 100%;
|
|
58
85
|
backdrop-filter: blur(10px) saturate(180%);
|
|
59
86
|
-webkit-backdrop-filter: blur(10px) saturate(180%);
|
|
60
|
-
background-color: rgba(20, 20, 20, 0.1)
|
|
87
|
+
background-color: rgba(20, 20, 20, 0.1);
|
|
61
88
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
62
89
|
color: white;
|
|
63
90
|
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
|
|
64
|
-
padding: .
|
|
91
|
+
padding: .4rem;
|
|
65
92
|
border-radius: .6rem;
|
|
66
93
|
}
|
|
67
94
|
|
|
@@ -70,7 +97,7 @@ export default {
|
|
|
70
97
|
background-color: rgba(10, 10, 10, .6);
|
|
71
98
|
display: flex;
|
|
72
99
|
align-items: center;
|
|
73
|
-
padding: .
|
|
100
|
+
padding: .3rem .8rem;
|
|
74
101
|
border-radius: .5rem;
|
|
75
102
|
box-shadow: 0 0 .4rem var(--border-color);
|
|
76
103
|
}
|