update assets

This commit is contained in:
2022-11-29 13:10:05 +00:00
parent 9a59727124
commit 66b5bc1603

View File

@@ -1605,6 +1605,45 @@
} }
var module_default = src_default; var module_default = src_default;
// packages/persist/dist/module.esm.js
function src_default2(Alpine2) {
let persist = () => {
let alias;
let storage = localStorage;
return Alpine2.interceptor((initialValue, getter, setter, path, key) => {
let lookup = alias || `_x_${path}`;
let initial = storageHas(lookup, storage) ? storageGet(lookup, storage) : initialValue;
setter(initial);
Alpine2.effect(() => {
let value = getter();
storageSet(lookup, value, storage);
setter(value);
});
return initial;
}, (func) => {
func.as = (key) => {
alias = key;
return func;
}, func.using = (target) => {
storage = target;
return func;
};
});
};
Object.defineProperty(Alpine2, "$persist", {get: () => persist()});
Alpine2.magic("persist", persist);
}
function storageHas(key, storage) {
return storage.getItem(key) !== null;
}
function storageGet(key, storage) {
return JSON.parse(storage.getItem(key, storage));
}
function storageSet(key, value, storage) {
storage.setItem(key, JSON.stringify(value));
}
var module_default2 = src_default2;
// node_modules/@vue/shared/dist/shared.esm-bundler.js // node_modules/@vue/shared/dist/shared.esm-bundler.js
function makeMap(str, expectsLowerCase) { function makeMap(str, expectsLowerCase) {
const map = Object.create(null); const map = Object.create(null);
@@ -3068,8 +3107,9 @@
}; };
return tryCatch.bind(null, el, expression, evaluator); return tryCatch.bind(null, el, expression, evaluator);
} }
var src_default2 = alpine_default; var src_default3 = alpine_default;
alpine_default.plugin(module_default); alpine_default.plugin(module_default);
alpine_default.plugin(module_default2);
alpine_default.data("counter", () => ({ alpine_default.data("counter", () => ({
count: 0, count: 0,
increment() { increment() {
@@ -3097,6 +3137,7 @@
} }
} }
})); }));
document.addEventListener("alpine:init", () => {
alpine_default.data("modal", () => ({ alpine_default.data("modal", () => ({
showModal: false, showModal: false,
selectedYear: "", selectedYear: "",
@@ -3108,6 +3149,9 @@
} }
return this.showModal; return this.showModal;
}, },
getNotShowModal() {
return !this.showModal;
},
toggle() { toggle() {
this.showModal = !this.showModal; this.showModal = !this.showModal;
this.setClass(); this.setClass();
@@ -3137,14 +3181,19 @@
return true; return true;
} }
return false; return false;
},
getYear() {
return this.selectedYear;
} }
})); }));
});
alpine_default.data("infoBox", () => ({ alpine_default.data("infoBox", () => ({
consent: true, consent: true,
closeBox() { closeBox() {
this.consent = false; this.consent = false;
} }
})); }));
document.addEventListener("alpine:init", () => {
alpine_default.data("myNavBar", () => ({ alpine_default.data("myNavBar", () => ({
showNavBar: false, showNavBar: false,
toggleShowNavBar() { toggleShowNavBar() {
@@ -3155,18 +3204,19 @@
}, },
getShowNavBarMd() { getShowNavBarMd() {
if (screen.width >= 766) { if (screen.width >= 766) {
return this.showNavBar = true; this.showNavBar = true;
} }
return this.showNavBar; return this.showNavBar;
}, },
getShowNavBarLg() { getShowNavBarLg() {
if (screen.width >= 1024) { if (screen.width >= 1024) {
return this.showNavBar = true; this.showNavBar = true;
} }
return this.showNavBar; return this.showNavBar;
} }
})); }));
alpine_default.data("PopupNav", () => ({ });
alpine_default.data("popupNav", () => ({
showPopupNav: false, showPopupNav: false,
toggleShowPopupNav() { toggleShowPopupNav() {
this.showPopupNav = !this.showPopupNav; this.showPopupNav = !this.showPopupNav;
@@ -3174,16 +3224,17 @@
closeShowPopupNav() { closeShowPopupNav() {
this.showPopupNav = false; this.showPopupNav = false;
}, },
getShowPopupNavLg() { getNotShowPopupNavLg() {
if (screen.width < 1024) { if (screen.width < 1024) {
this.showPopupNav = true; this.showPopupNav = true;
} }
return this.showPopupNav; return this.showPopupNav;
}, },
getScreenLg() { getNotScreenLg() {
if (screen.width >= 1024) { if (screen.width >= 1024) {
return true; return false;
} }
return true;
} }
})); }));
alpine_default.data("search", () => ({ alpine_default.data("search", () => ({
@@ -3198,11 +3249,120 @@
return this.showSearch; return this.showSearch;
} }
})); }));
alpine_default.data("prevArticleButton", () => ({
showPrevArticleButton: false,
openShowPrevArticleButton() {
this.showPrevArticleButton = true;
},
closeShowPrevArticleButton() {
this.showPrevArticleButton = false;
},
getShowPrevArticleButton() {
return this.showPrevArticleButton;
}
}));
alpine_default.data("nextArticleButton", () => ({
showNextArticleButton: false,
openShowNextArticleButton() {
this.showNextArticleButton = true;
},
closeShowNextArticleButton() {
this.showNextArticleButton = false;
},
getShowNextArticleButton() {
return this.showNextArticleButton;
}
}));
alpine_default.data("options", () => ({
showOptions: false,
openShowOptions() {
this.showOptions = true;
},
closeShowOptions() {
this.showOptions = false;
},
getShowOptions() {
if (screen.width >= 766) {
this.showOptions = true;
}
return this.showOptions;
}
}));
alpine_default.data("memberExpandList", () => ({
expandList: false,
toggleExpandList() {
this.expandList = !this.expandList;
this.setClass();
},
openExpandList() {
this.expandList = true;
this.setClass();
},
closeExpandList() {
this.expandList = false;
this.setClass();
},
getExpandList() {
return this.expandList;
},
getNotExpandList() {
return !this.expandList;
},
setClass() {
if (this.getExpandList() == false) {
this.$refs.rotate.classList.remove("-rotate-90");
} else {
this.$refs.rotate.classList.add("-rotate-90");
}
}
}));
document.addEventListener("alpine:init", () => {
alpine_default.data("internExpandList", () => ({
expandList: false,
toggleExpandList() {
this.expandList = !this.expandList;
this.setClass();
},
openExpandList() {
this.expandList = true;
this.setClass();
},
closeExpandList() {
this.expandList = false;
this.setClass();
},
getExpandList() {
return this.expandList;
},
getNotExpandList() {
return !this.expandList;
},
setClass() {
if (this.getExpandList() == false) {
this.$refs.rotate.classList.remove("rotate-90");
} else {
this.$refs.rotate.classList.add("rotate-90");
}
}
}));
});
alpine_default.data("pin", () => ({
showPin: true,
openShowPin() {
this.showPin = true;
},
closeShowPin() {
this.showPin = false;
},
getShowPin() {
return this.showPin;
}
}));
// packages/csp/builds/cdn.js // packages/csp/builds/cdn.js
window.Alpine = src_default2; window.Alpine = src_default3;
queueMicrotask(() => { queueMicrotask(() => {
src_default2.start(); src_default3.start();
}); });
})(); })();