Updated Deps

This commit is contained in:
Refringe 2024-11-14 23:10:29 -05:00
parent 7559c85276
commit a4a6ec811d
Signed by: Refringe
SSH Key Fingerprint: SHA256:t865XsQpfTeqPRBMN2G6+N8wlDjkgUCZF3WGW6O9N/k
11 changed files with 934 additions and 806 deletions

1230
composer.lock generated

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@ cropperjs/dist/cropper.min.css:
filepond/dist/filepond.min.css: filepond/dist/filepond.min.css:
(*! (*!
* FilePond 4.31.3 * FilePond 4.31.4
* Licensed under MIT, https://opensource.org/licenses/MIT/ * Licensed under MIT, https://opensource.org/licenses/MIT/
* Please visit https://pqina.nl/filepond/ for details. * Please visit https://pqina.nl/filepond/ for details.
*) *)

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -17,9 +17,9 @@ var __copyProps = (to, from, except, desc) => {
}; };
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod)); var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
// node_modules/alpinejs/dist/module.cjs.js // ../alpine/packages/alpinejs/dist/module.cjs.js
var require_module_cjs = __commonJS({ var require_module_cjs = __commonJS({
"node_modules/alpinejs/dist/module.cjs.js"(exports, module) { "../alpine/packages/alpinejs/dist/module.cjs.js"(exports, module) {
var __create2 = Object.create; var __create2 = Object.create;
var __defProp2 = Object.defineProperty; var __defProp2 = Object.defineProperty;
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@ -1432,10 +1432,10 @@ var require_module_cjs = __commonJS({
}); });
} }
function cleanupElement(el) { function cleanupElement(el) {
if (el._x_cleanups) { var _a, _b;
while (el._x_cleanups.length) (_a = el._x_effects) == null ? void 0 : _a.forEach(dequeueJob);
el._x_cleanups.pop()(); while ((_b = el._x_cleanups) == null ? void 0 : _b.length)
} el._x_cleanups.pop()();
} }
var observer = new MutationObserver(onMutate); var observer = new MutationObserver(onMutate);
var currentlyObserving = false; var currentlyObserving = false;
@ -1673,27 +1673,23 @@ var require_module_cjs = __commonJS({
magics[name] = callback; magics[name] = callback;
} }
function injectMagics(obj, el) { function injectMagics(obj, el) {
let memoizedUtilities = getUtilities(el);
Object.entries(magics).forEach(([name, callback]) => { Object.entries(magics).forEach(([name, callback]) => {
let memoizedUtilities = null;
function getUtilities() {
if (memoizedUtilities) {
return memoizedUtilities;
} else {
let [utilities, cleanup] = getElementBoundUtilities(el);
memoizedUtilities = { interceptor, ...utilities };
onElRemoved(el, cleanup);
return memoizedUtilities;
}
}
Object.defineProperty(obj, `$${name}`, { Object.defineProperty(obj, `$${name}`, {
get() { get() {
return callback(el, getUtilities()); return callback(el, memoizedUtilities);
}, },
enumerable: false enumerable: false
}); });
}); });
return obj; return obj;
} }
function getUtilities(el) {
let [utilities, cleanup] = getElementBoundUtilities(el);
let utils = { interceptor, ...utilities };
onElRemoved(el, cleanup);
return utils;
}
function tryCatch(el, expression, callback, ...args) { function tryCatch(el, expression, callback, ...args) {
try { try {
return callback(...args); return callback(...args);
@ -2067,8 +2063,8 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
} }
function destroyTree(root, walker = walk) { function destroyTree(root, walker = walk) {
walker(root, (el) => { walker(root, (el) => {
cleanupAttributes(el);
cleanupElement(el); cleanupElement(el);
cleanupAttributes(el);
}); });
} }
function warnAboutMissingPlugins() { function warnAboutMissingPlugins() {
@ -2561,7 +2557,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
} }
} }
function bindInputValue(el, value) { function bindInputValue(el, value) {
if (el.type === "radio") { if (isRadio(el)) {
if (el.attributes.value === void 0) { if (el.attributes.value === void 0) {
el.value = value; el.value = value;
} }
@ -2572,7 +2568,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
el.checked = checkedAttrLooseCompare(el.value, value); el.checked = checkedAttrLooseCompare(el.value, value);
} }
} }
} else if (el.type === "checkbox") { } else if (isCheckbox(el)) {
if (Number.isInteger(value)) { if (Number.isInteger(value)) {
el.value = value; el.value = value;
} else if (!Array.isArray(value) && typeof value !== "boolean" && ![null, void 0].includes(value)) { } else if (!Array.isArray(value) && typeof value !== "boolean" && ![null, void 0].includes(value)) {
@ -2648,34 +2644,37 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
} }
return rawValue ? Boolean(rawValue) : null; return rawValue ? Boolean(rawValue) : null;
} }
var booleanAttributes = /* @__PURE__ */ new Set([
"allowfullscreen",
"async",
"autofocus",
"autoplay",
"checked",
"controls",
"default",
"defer",
"disabled",
"formnovalidate",
"inert",
"ismap",
"itemscope",
"loop",
"multiple",
"muted",
"nomodule",
"novalidate",
"open",
"playsinline",
"readonly",
"required",
"reversed",
"selected",
"shadowrootclonable",
"shadowrootdelegatesfocus",
"shadowrootserializable"
]);
function isBooleanAttr(attrName) { function isBooleanAttr(attrName) {
const booleanAttributes = [ return booleanAttributes.has(attrName);
"disabled",
"checked",
"required",
"readonly",
"open",
"selected",
"autofocus",
"itemscope",
"multiple",
"novalidate",
"allowfullscreen",
"allowpaymentrequest",
"formnovalidate",
"autoplay",
"controls",
"loop",
"muted",
"playsinline",
"default",
"ismap",
"reversed",
"async",
"defer",
"nomodule"
];
return booleanAttributes.includes(attrName);
} }
function attributeShouldntBePreservedIfFalsy(name) { function attributeShouldntBePreservedIfFalsy(name) {
return !["aria-pressed", "aria-checked", "aria-expanded", "aria-selected"].includes(name); return !["aria-pressed", "aria-checked", "aria-expanded", "aria-selected"].includes(name);
@ -2708,6 +2707,12 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
} }
return attr; return attr;
} }
function isCheckbox(el) {
return el.type === "checkbox" || el.localName === "ui-checkbox" || el.localName === "ui-switch";
}
function isRadio(el) {
return el.type === "radio" || el.localName === "ui-radio";
}
function debounce2(func, wait) { function debounce2(func, wait) {
var timeout; var timeout;
return function() { return function() {
@ -2776,10 +2781,10 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
return stores[name]; return stores[name];
} }
stores[name] = value; stores[name] = value;
initInterceptors(stores[name]);
if (typeof value === "object" && value !== null && value.hasOwnProperty("init") && typeof value.init === "function") { if (typeof value === "object" && value !== null && value.hasOwnProperty("init") && typeof value.init === "function") {
stores[name].init(); stores[name].init();
} }
initInterceptors(stores[name]);
} }
function getStores() { function getStores() {
return stores; return stores;
@ -2861,7 +2866,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
get raw() { get raw() {
return raw; return raw;
}, },
version: "3.14.1", version: "3.14.3",
flushAndStopDeferringMutations, flushAndStopDeferringMutations,
dontAutoEvaluateFunctions, dontAutoEvaluateFunctions,
disableEffectScheduling, disableEffectScheduling,
@ -3070,7 +3075,10 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
placeInDom(el._x_teleport, target2, modifiers); placeInDom(el._x_teleport, target2, modifiers);
}); });
}; };
cleanup(() => clone2.remove()); cleanup(() => mutateDom(() => {
clone2.remove();
destroyTree(clone2);
}));
}); });
var teleportContainerDuringClone = document.createElement("div"); var teleportContainerDuringClone = document.createElement("div");
function getTarget(expression) { function getTarget(expression) {
@ -3294,7 +3302,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
setValue(getInputValue(el, modifiers, e, getValue())); setValue(getInputValue(el, modifiers, e, getValue()));
}); });
if (modifiers.includes("fill")) { if (modifiers.includes("fill")) {
if ([void 0, null, ""].includes(getValue()) || el.type === "checkbox" && Array.isArray(getValue()) || el.tagName.toLowerCase() === "select" && el.multiple) { if ([void 0, null, ""].includes(getValue()) || isCheckbox(el) && Array.isArray(getValue()) || el.tagName.toLowerCase() === "select" && el.multiple) {
setValue(getInputValue(el, modifiers, { target: el }, getValue())); setValue(getInputValue(el, modifiers, { target: el }, getValue()));
} }
} }
@ -3334,7 +3342,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
return mutateDom(() => { return mutateDom(() => {
if (event instanceof CustomEvent && event.detail !== void 0) if (event instanceof CustomEvent && event.detail !== void 0)
return event.detail !== null && event.detail !== void 0 ? event.detail : event.target.value; return event.detail !== null && event.detail !== void 0 ? event.detail : event.target.value;
else if (el.type === "checkbox") { else if (isCheckbox(el)) {
if (Array.isArray(currentValue)) { if (Array.isArray(currentValue)) {
let newValue = null; let newValue = null;
if (modifiers.includes("number")) { if (modifiers.includes("number")) {
@ -3365,7 +3373,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
}); });
} else { } else {
let newValue; let newValue;
if (el.type === "radio") { if (isRadio(el)) {
if (event.target.checked) { if (event.target.checked) {
newValue = event.target.value; newValue = event.target.value;
} else { } else {
@ -3558,7 +3566,10 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
el._x_lookup = {}; el._x_lookup = {};
effect3(() => loop(el, iteratorNames, evaluateItems, evaluateKey)); effect3(() => loop(el, iteratorNames, evaluateItems, evaluateKey));
cleanup(() => { cleanup(() => {
Object.values(el._x_lookup).forEach((el2) => el2.remove()); Object.values(el._x_lookup).forEach((el2) => mutateDom(() => {
destroyTree(el2);
el2.remove();
}));
delete el._x_prevKeys; delete el._x_prevKeys;
delete el._x_lookup; delete el._x_lookup;
}); });
@ -3627,11 +3638,12 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
} }
for (let i = 0; i < removes.length; i++) { for (let i = 0; i < removes.length; i++) {
let key = removes[i]; let key = removes[i];
if (!!lookup[key]._x_effects) { if (!(key in lookup))
lookup[key]._x_effects.forEach(dequeueJob); continue;
} mutateDom(() => {
lookup[key].remove(); destroyTree(lookup[key]);
lookup[key] = null; lookup[key].remove();
});
delete lookup[key]; delete lookup[key];
} }
for (let i = 0; i < moves.length; i++) { for (let i = 0; i < moves.length; i++) {
@ -3752,12 +3764,10 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
}); });
el._x_currentIfEl = clone2; el._x_currentIfEl = clone2;
el._x_undoIf = () => { el._x_undoIf = () => {
walk(clone2, (node) => { mutateDom(() => {
if (!!node._x_effects) { destroyTree(clone2);
node._x_effects.forEach(dequeueJob); clone2.remove();
}
}); });
clone2.remove();
delete el._x_currentIfEl; delete el._x_currentIfEl;
}; };
return clone2; return clone2;
@ -3812,9 +3822,9 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
} }
}); });
// node_modules/@alpinejs/collapse/dist/module.cjs.js // ../../../../usr/local/lib/node_modules/@alpinejs/collapse/dist/module.cjs.js
var require_module_cjs2 = __commonJS({ var require_module_cjs2 = __commonJS({
"node_modules/@alpinejs/collapse/dist/module.cjs.js"(exports, module) { "../../../../usr/local/lib/node_modules/@alpinejs/collapse/dist/module.cjs.js"(exports, module) {
var __defProp2 = Object.defineProperty; var __defProp2 = Object.defineProperty;
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
var __getOwnPropNames2 = Object.getOwnPropertyNames; var __getOwnPropNames2 = Object.getOwnPropertyNames;
@ -3887,7 +3897,7 @@ var require_module_cjs2 = __commonJS({
start: { height: current + "px" }, start: { height: current + "px" },
end: { height: full + "px" } end: { height: full + "px" }
}, () => el._x_isShown = true, () => { }, () => el._x_isShown = true, () => {
if (Math.abs(el.getBoundingClientRect().height - full) < 1) { if (el.getBoundingClientRect().height == full) {
el.style.overflow = null; el.style.overflow = null;
} }
}); });
@ -3933,9 +3943,9 @@ var require_module_cjs2 = __commonJS({
} }
}); });
// node_modules/@alpinejs/focus/dist/module.cjs.js // ../../../../usr/local/lib/node_modules/@alpinejs/focus/dist/module.cjs.js
var require_module_cjs3 = __commonJS({ var require_module_cjs3 = __commonJS({
"node_modules/@alpinejs/focus/dist/module.cjs.js"(exports, module) { "../../../../usr/local/lib/node_modules/@alpinejs/focus/dist/module.cjs.js"(exports, module) {
var __create2 = Object.create; var __create2 = Object.create;
var __defProp2 = Object.defineProperty; var __defProp2 = Object.defineProperty;
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@ -4935,9 +4945,9 @@ var require_module_cjs3 = __commonJS({
} }
}); });
// node_modules/@alpinejs/persist/dist/module.cjs.js // ../../../../usr/local/lib/node_modules/@alpinejs/persist/dist/module.cjs.js
var require_module_cjs4 = __commonJS({ var require_module_cjs4 = __commonJS({
"node_modules/@alpinejs/persist/dist/module.cjs.js"(exports, module) { "../../../../usr/local/lib/node_modules/@alpinejs/persist/dist/module.cjs.js"(exports, module) {
var __defProp2 = Object.defineProperty; var __defProp2 = Object.defineProperty;
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
var __getOwnPropNames2 = Object.getOwnPropertyNames; var __getOwnPropNames2 = Object.getOwnPropertyNames;
@ -5024,9 +5034,9 @@ var require_module_cjs4 = __commonJS({
} }
}); });
// node_modules/@alpinejs/intersect/dist/module.cjs.js // ../../../../usr/local/lib/node_modules/@alpinejs/intersect/dist/module.cjs.js
var require_module_cjs5 = __commonJS({ var require_module_cjs5 = __commonJS({
"node_modules/@alpinejs/intersect/dist/module.cjs.js"(exports, module) { "../../../../usr/local/lib/node_modules/@alpinejs/intersect/dist/module.cjs.js"(exports, module) {
var __defProp2 = Object.defineProperty; var __defProp2 = Object.defineProperty;
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
var __getOwnPropNames2 = Object.getOwnPropertyNames; var __getOwnPropNames2 = Object.getOwnPropertyNames;
@ -5178,9 +5188,9 @@ var require_module_cjs6 = __commonJS({
} }
}); });
// node_modules/@alpinejs/anchor/dist/module.cjs.js // ../alpine/packages/anchor/dist/module.cjs.js
var require_module_cjs7 = __commonJS({ var require_module_cjs7 = __commonJS({
"node_modules/@alpinejs/anchor/dist/module.cjs.js"(exports, module) { "../alpine/packages/anchor/dist/module.cjs.js"(exports, module) {
var __defProp2 = Object.defineProperty; var __defProp2 = Object.defineProperty;
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
var __getOwnPropNames2 = Object.getOwnPropertyNames; var __getOwnPropNames2 = Object.getOwnPropertyNames;
@ -6716,9 +6726,9 @@ var require_nprogress = __commonJS({
} }
}); });
// node_modules/@alpinejs/morph/dist/module.cjs.js // ../alpine/packages/morph/dist/module.cjs.js
var require_module_cjs8 = __commonJS({ var require_module_cjs8 = __commonJS({
"node_modules/@alpinejs/morph/dist/module.cjs.js"(exports, module) { "../alpine/packages/morph/dist/module.cjs.js"(exports, module) {
var __defProp2 = Object.defineProperty; var __defProp2 = Object.defineProperty;
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
var __getOwnPropNames2 = Object.getOwnPropertyNames; var __getOwnPropNames2 = Object.getOwnPropertyNames;
@ -7078,9 +7088,9 @@ var require_module_cjs8 = __commonJS({
} }
}); });
// node_modules/@alpinejs/mask/dist/module.cjs.js // ../../../../usr/local/lib/node_modules/@alpinejs/mask/dist/module.cjs.js
var require_module_cjs9 = __commonJS({ var require_module_cjs9 = __commonJS({
"node_modules/@alpinejs/mask/dist/module.cjs.js"(exports, module) { "../../../../usr/local/lib/node_modules/@alpinejs/mask/dist/module.cjs.js"(exports, module) {
var __defProp2 = Object.defineProperty; var __defProp2 = Object.defineProperty;
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
var __getOwnPropNames2 = Object.getOwnPropertyNames; var __getOwnPropNames2 = Object.getOwnPropertyNames;
@ -8855,8 +8865,10 @@ function restoreScrollPositionOrScrollToTop() {
} }
}; };
queueMicrotask(() => { queueMicrotask(() => {
scroll(document.body); queueMicrotask(() => {
document.querySelectorAll(["[x-navigate\\:scroll]", "[wire\\:scroll]"]).forEach(scroll); scroll(document.body);
document.querySelectorAll(["[x-navigate\\:scroll]", "[wire\\:scroll]"]).forEach(scroll);
});
}); });
} }
@ -9005,6 +9017,44 @@ function injectStyles() {
document.head.appendChild(style); document.head.appendChild(style);
} }
// js/plugins/navigate/popover.js
function packUpPersistedPopovers(persistedEl) {
persistedEl.querySelectorAll(":popover-open").forEach((el) => {
el.setAttribute("data-navigate-popover-open", "");
let animations = el.getAnimations();
el._pausedAnimations = animations.map((animation) => ({
keyframes: animation.effect.getKeyframes(),
options: {
duration: animation.effect.getTiming().duration,
easing: animation.effect.getTiming().easing,
fill: animation.effect.getTiming().fill,
iterations: animation.effect.getTiming().iterations
},
currentTime: animation.currentTime,
playState: animation.playState
}));
animations.forEach((i) => i.pause());
});
}
function unPackPersistedPopovers(persistedEl) {
persistedEl.querySelectorAll("[data-navigate-popover-open]").forEach((el) => {
el.removeAttribute("data-navigate-popover-open");
queueMicrotask(() => {
if (!el.isConnected)
return;
el.showPopover();
el.getAnimations().forEach((i) => i.finish());
if (el._pausedAnimations) {
el._pausedAnimations.forEach(({ keyframes, options, currentTime, now, playState }) => {
let animation = el.animate(keyframes, options);
animation.currentTime = currentTime;
});
delete el._pausedAnimations;
}
});
});
}
// js/plugins/navigate/page.js // js/plugins/navigate/page.js
var oldBodyScriptTagHashes = []; var oldBodyScriptTagHashes = [];
var attributesExemptFromScriptTagHashing = [ var attributesExemptFromScriptTagHashing = [
@ -9143,7 +9193,7 @@ var autofocus = false;
function navigate_default(Alpine19) { function navigate_default(Alpine19) {
Alpine19.navigate = (url) => { Alpine19.navigate = (url) => {
let destination = createUrlObjectFromString(url); let destination = createUrlObjectFromString(url);
let prevented = fireEventForOtherLibariesToHookInto("alpine:navigate", { let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
url: destination, url: destination,
history: false, history: false,
cached: false cached: false
@ -9174,7 +9224,7 @@ function navigate_default(Alpine19) {
storeThePrefetchedHtmlForWhenALinkIsClicked(html, destination, finalDestination); storeThePrefetchedHtmlForWhenALinkIsClicked(html, destination, finalDestination);
}); });
whenItIsReleased(() => { whenItIsReleased(() => {
let prevented = fireEventForOtherLibariesToHookInto("alpine:navigate", { let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
url: destination, url: destination,
history: false, history: false,
cached: false cached: false
@ -9188,7 +9238,7 @@ function navigate_default(Alpine19) {
function navigateTo(destination, shouldPushToHistoryState = true) { function navigateTo(destination, shouldPushToHistoryState = true) {
showProgressBar && showAndStartProgressBar(); showProgressBar && showAndStartProgressBar();
fetchHtmlOrUsePrefetchedHtml(destination, (html, finalDestination) => { fetchHtmlOrUsePrefetchedHtml(destination, (html, finalDestination) => {
fireEventForOtherLibariesToHookInto("alpine:navigating"); fireEventForOtherLibrariesToHookInto("alpine:navigating");
restoreScroll && storeScrollInformationInHtmlBeforeNavigatingAway(); restoreScroll && storeScrollInformationInHtmlBeforeNavigatingAway();
showProgressBar && finishAndHideProgressBar(); showProgressBar && finishAndHideProgressBar();
cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement(); cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement();
@ -9196,6 +9246,7 @@ function navigate_default(Alpine19) {
preventAlpineFromPickingUpDomChanges(Alpine19, (andAfterAllThis) => { preventAlpineFromPickingUpDomChanges(Alpine19, (andAfterAllThis) => {
enablePersist && storePersistantElementsForLater((persistedEl) => { enablePersist && storePersistantElementsForLater((persistedEl) => {
packUpPersistedTeleports(persistedEl); packUpPersistedTeleports(persistedEl);
packUpPersistedPopovers(persistedEl);
}); });
if (shouldPushToHistoryState) { if (shouldPushToHistoryState) {
updateUrlAndStoreLatestHtmlForFutureBackButtons(html, finalDestination); updateUrlAndStoreLatestHtmlForFutureBackButtons(html, finalDestination);
@ -9206,6 +9257,7 @@ function navigate_default(Alpine19) {
removeAnyLeftOverStaleTeleportTargets(document.body); removeAnyLeftOverStaleTeleportTargets(document.body);
enablePersist && putPersistantElementsBack((persistedEl, newStub) => { enablePersist && putPersistantElementsBack((persistedEl, newStub) => {
unPackPersistedTeleports(persistedEl); unPackPersistedTeleports(persistedEl);
unPackPersistedPopovers(persistedEl);
}); });
restoreScrollPositionOrScrollToTop(); restoreScrollPositionOrScrollToTop();
afterNewScriptsAreDoneLoading(() => { afterNewScriptsAreDoneLoading(() => {
@ -9214,7 +9266,7 @@ function navigate_default(Alpine19) {
autofocus && autofocusElementsWithTheAutofocusAttribute(); autofocus && autofocusElementsWithTheAutofocusAttribute();
}); });
nowInitializeAlpineOnTheNewPage(Alpine19); nowInitializeAlpineOnTheNewPage(Alpine19);
fireEventForOtherLibariesToHookInto("alpine:navigated"); fireEventForOtherLibrariesToHookInto("alpine:navigated");
}); });
}); });
}); });
@ -9224,7 +9276,7 @@ function navigate_default(Alpine19) {
whenTheBackOrForwardButtonIsClicked((ifThePageBeingVisitedHasntBeenCached) => { whenTheBackOrForwardButtonIsClicked((ifThePageBeingVisitedHasntBeenCached) => {
ifThePageBeingVisitedHasntBeenCached((url) => { ifThePageBeingVisitedHasntBeenCached((url) => {
let destination = createUrlObjectFromString(url); let destination = createUrlObjectFromString(url);
let prevented = fireEventForOtherLibariesToHookInto("alpine:navigate", { let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
url: destination, url: destination,
history: true, history: true,
cached: false cached: false
@ -9236,7 +9288,7 @@ function navigate_default(Alpine19) {
}); });
}, (html, url, currentPageUrl, currentPageKey) => { }, (html, url, currentPageUrl, currentPageKey) => {
let destination = createUrlObjectFromString(url); let destination = createUrlObjectFromString(url);
let prevented = fireEventForOtherLibariesToHookInto("alpine:navigate", { let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
url: destination, url: destination,
history: true, history: true,
cached: true cached: true
@ -9244,29 +9296,31 @@ function navigate_default(Alpine19) {
if (prevented) if (prevented)
return; return;
storeScrollInformationInHtmlBeforeNavigatingAway(); storeScrollInformationInHtmlBeforeNavigatingAway();
fireEventForOtherLibariesToHookInto("alpine:navigating"); fireEventForOtherLibrariesToHookInto("alpine:navigating");
updateCurrentPageHtmlInSnapshotCacheForLaterBackButtonClicks(currentPageUrl, currentPageKey); updateCurrentPageHtmlInSnapshotCacheForLaterBackButtonClicks(currentPageUrl, currentPageKey);
preventAlpineFromPickingUpDomChanges(Alpine19, (andAfterAllThis) => { preventAlpineFromPickingUpDomChanges(Alpine19, (andAfterAllThis) => {
enablePersist && storePersistantElementsForLater((persistedEl) => { enablePersist && storePersistantElementsForLater((persistedEl) => {
packUpPersistedTeleports(persistedEl); packUpPersistedTeleports(persistedEl);
packUpPersistedPopovers(persistedEl);
}); });
swapCurrentPageWithNewHtml(html, () => { swapCurrentPageWithNewHtml(html, () => {
removeAnyLeftOverStaleProgressBars(); removeAnyLeftOverStaleProgressBars();
removeAnyLeftOverStaleTeleportTargets(document.body); removeAnyLeftOverStaleTeleportTargets(document.body);
enablePersist && putPersistantElementsBack((persistedEl, newStub) => { enablePersist && putPersistantElementsBack((persistedEl, newStub) => {
unPackPersistedTeleports(persistedEl); unPackPersistedTeleports(persistedEl);
unPackPersistedPopovers(persistedEl);
}); });
restoreScrollPositionOrScrollToTop(); restoreScrollPositionOrScrollToTop();
andAfterAllThis(() => { andAfterAllThis(() => {
autofocus && autofocusElementsWithTheAutofocusAttribute(); autofocus && autofocusElementsWithTheAutofocusAttribute();
nowInitializeAlpineOnTheNewPage(Alpine19); nowInitializeAlpineOnTheNewPage(Alpine19);
fireEventForOtherLibariesToHookInto("alpine:navigated"); fireEventForOtherLibrariesToHookInto("alpine:navigated");
}); });
}); });
}); });
}); });
setTimeout(() => { setTimeout(() => {
fireEventForOtherLibariesToHookInto("alpine:navigated"); fireEventForOtherLibrariesToHookInto("alpine:navigated");
}); });
} }
function fetchHtmlOrUsePrefetchedHtml(fromDestination, callback) { function fetchHtmlOrUsePrefetchedHtml(fromDestination, callback) {
@ -9283,7 +9337,7 @@ function preventAlpineFromPickingUpDomChanges(Alpine19, callback) {
}); });
}); });
} }
function fireEventForOtherLibariesToHookInto(name, detail) { function fireEventForOtherLibrariesToHookInto(name, detail) {
let event = new CustomEvent(name, { let event = new CustomEvent(name, {
cancelable: true, cancelable: true,
bubbles: true, bubbles: true,
@ -9799,6 +9853,7 @@ function morph2(component, el, html) {
}, },
lookahead: false lookahead: false
}); });
trigger("morphed", { el, component });
} }
function isntElement(el) { function isntElement(el) {
return typeof el.hasAttribute !== "function"; return typeof el.hasAttribute !== "function";
@ -10868,3 +10923,4 @@ focus-trap/dist/focus-trap.js:
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*) *)
*/ */
//# sourceMappingURL=livewire.esm.js.map

View File

@ -712,7 +712,7 @@
uploadManager.cancelUpload(name, cancelledCallback); uploadManager.cancelUpload(name, cancelledCallback);
} }
// node_modules/alpinejs/dist/module.esm.js // ../alpine/packages/alpinejs/dist/module.esm.js
var flushPending = false; var flushPending = false;
var flushing = false; var flushing = false;
var queue = []; var queue = [];
@ -851,10 +851,9 @@
}); });
} }
function cleanupElement(el) { function cleanupElement(el) {
if (el._x_cleanups) { el._x_effects?.forEach(dequeueJob);
while (el._x_cleanups.length) while (el._x_cleanups?.length)
el._x_cleanups.pop()(); el._x_cleanups.pop()();
}
} }
var observer = new MutationObserver(onMutate); var observer = new MutationObserver(onMutate);
var currentlyObserving = false; var currentlyObserving = false;
@ -1092,27 +1091,23 @@
magics[name] = callback; magics[name] = callback;
} }
function injectMagics(obj, el) { function injectMagics(obj, el) {
let memoizedUtilities = getUtilities(el);
Object.entries(magics).forEach(([name, callback]) => { Object.entries(magics).forEach(([name, callback]) => {
let memoizedUtilities = null;
function getUtilities() {
if (memoizedUtilities) {
return memoizedUtilities;
} else {
let [utilities, cleanup2] = getElementBoundUtilities(el);
memoizedUtilities = { interceptor, ...utilities };
onElRemoved(el, cleanup2);
return memoizedUtilities;
}
}
Object.defineProperty(obj, `$${name}`, { Object.defineProperty(obj, `$${name}`, {
get() { get() {
return callback(el, getUtilities()); return callback(el, memoizedUtilities);
}, },
enumerable: false enumerable: false
}); });
}); });
return obj; return obj;
} }
function getUtilities(el) {
let [utilities, cleanup2] = getElementBoundUtilities(el);
let utils = { interceptor, ...utilities };
onElRemoved(el, cleanup2);
return utils;
}
function tryCatch(el, expression, callback, ...args) { function tryCatch(el, expression, callback, ...args) {
try { try {
return callback(...args); return callback(...args);
@ -1486,8 +1481,8 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
} }
function destroyTree(root, walker = walk) { function destroyTree(root, walker = walk) {
walker(root, (el) => { walker(root, (el) => {
cleanupAttributes(el);
cleanupElement(el); cleanupElement(el);
cleanupAttributes(el);
}); });
} }
function warnAboutMissingPlugins() { function warnAboutMissingPlugins() {
@ -1980,7 +1975,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
} }
} }
function bindInputValue(el, value) { function bindInputValue(el, value) {
if (el.type === "radio") { if (isRadio(el)) {
if (el.attributes.value === void 0) { if (el.attributes.value === void 0) {
el.value = value; el.value = value;
} }
@ -1991,7 +1986,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
el.checked = checkedAttrLooseCompare(el.value, value); el.checked = checkedAttrLooseCompare(el.value, value);
} }
} }
} else if (el.type === "checkbox") { } else if (isCheckbox(el)) {
if (Number.isInteger(value)) { if (Number.isInteger(value)) {
el.value = value; el.value = value;
} else if (!Array.isArray(value) && typeof value !== "boolean" && ![null, void 0].includes(value)) { } else if (!Array.isArray(value) && typeof value !== "boolean" && ![null, void 0].includes(value)) {
@ -2067,34 +2062,37 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
} }
return rawValue ? Boolean(rawValue) : null; return rawValue ? Boolean(rawValue) : null;
} }
var booleanAttributes = /* @__PURE__ */ new Set([
"allowfullscreen",
"async",
"autofocus",
"autoplay",
"checked",
"controls",
"default",
"defer",
"disabled",
"formnovalidate",
"inert",
"ismap",
"itemscope",
"loop",
"multiple",
"muted",
"nomodule",
"novalidate",
"open",
"playsinline",
"readonly",
"required",
"reversed",
"selected",
"shadowrootclonable",
"shadowrootdelegatesfocus",
"shadowrootserializable"
]);
function isBooleanAttr(attrName) { function isBooleanAttr(attrName) {
const booleanAttributes = [ return booleanAttributes.has(attrName);
"disabled",
"checked",
"required",
"readonly",
"open",
"selected",
"autofocus",
"itemscope",
"multiple",
"novalidate",
"allowfullscreen",
"allowpaymentrequest",
"formnovalidate",
"autoplay",
"controls",
"loop",
"muted",
"playsinline",
"default",
"ismap",
"reversed",
"async",
"defer",
"nomodule"
];
return booleanAttributes.includes(attrName);
} }
function attributeShouldntBePreservedIfFalsy(name) { function attributeShouldntBePreservedIfFalsy(name) {
return !["aria-pressed", "aria-checked", "aria-expanded", "aria-selected"].includes(name); return !["aria-pressed", "aria-checked", "aria-expanded", "aria-selected"].includes(name);
@ -2127,6 +2125,12 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
} }
return attr; return attr;
} }
function isCheckbox(el) {
return el.type === "checkbox" || el.localName === "ui-checkbox" || el.localName === "ui-switch";
}
function isRadio(el) {
return el.type === "radio" || el.localName === "ui-radio";
}
function debounce(func, wait) { function debounce(func, wait) {
var timeout; var timeout;
return function() { return function() {
@ -2195,10 +2199,10 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
return stores[name]; return stores[name];
} }
stores[name] = value; stores[name] = value;
initInterceptors(stores[name]);
if (typeof value === "object" && value !== null && value.hasOwnProperty("init") && typeof value.init === "function") { if (typeof value === "object" && value !== null && value.hasOwnProperty("init") && typeof value.init === "function") {
stores[name].init(); stores[name].init();
} }
initInterceptors(stores[name]);
} }
function getStores() { function getStores() {
return stores; return stores;
@ -2280,7 +2284,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
get raw() { get raw() {
return raw; return raw;
}, },
version: "3.14.1", version: "3.14.3",
flushAndStopDeferringMutations, flushAndStopDeferringMutations,
dontAutoEvaluateFunctions, dontAutoEvaluateFunctions,
disableEffectScheduling, disableEffectScheduling,
@ -3136,7 +3140,10 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
placeInDom(el._x_teleport, target2, modifiers); placeInDom(el._x_teleport, target2, modifiers);
}); });
}; };
cleanup2(() => clone2.remove()); cleanup2(() => mutateDom(() => {
clone2.remove();
destroyTree(clone2);
}));
}); });
var teleportContainerDuringClone = document.createElement("div"); var teleportContainerDuringClone = document.createElement("div");
function getTarget(expression) { function getTarget(expression) {
@ -3360,7 +3367,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
setValue(getInputValue(el, modifiers, e, getValue())); setValue(getInputValue(el, modifiers, e, getValue()));
}); });
if (modifiers.includes("fill")) { if (modifiers.includes("fill")) {
if ([void 0, null, ""].includes(getValue()) || el.type === "checkbox" && Array.isArray(getValue()) || el.tagName.toLowerCase() === "select" && el.multiple) { if ([void 0, null, ""].includes(getValue()) || isCheckbox(el) && Array.isArray(getValue()) || el.tagName.toLowerCase() === "select" && el.multiple) {
setValue(getInputValue(el, modifiers, { target: el }, getValue())); setValue(getInputValue(el, modifiers, { target: el }, getValue()));
} }
} }
@ -3400,7 +3407,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
return mutateDom(() => { return mutateDom(() => {
if (event instanceof CustomEvent && event.detail !== void 0) if (event instanceof CustomEvent && event.detail !== void 0)
return event.detail !== null && event.detail !== void 0 ? event.detail : event.target.value; return event.detail !== null && event.detail !== void 0 ? event.detail : event.target.value;
else if (el.type === "checkbox") { else if (isCheckbox(el)) {
if (Array.isArray(currentValue)) { if (Array.isArray(currentValue)) {
let newValue = null; let newValue = null;
if (modifiers.includes("number")) { if (modifiers.includes("number")) {
@ -3431,7 +3438,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
}); });
} else { } else {
let newValue; let newValue;
if (el.type === "radio") { if (isRadio(el)) {
if (event.target.checked) { if (event.target.checked) {
newValue = event.target.value; newValue = event.target.value;
} else { } else {
@ -3624,7 +3631,10 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
el._x_lookup = {}; el._x_lookup = {};
effect3(() => loop(el, iteratorNames, evaluateItems, evaluateKey)); effect3(() => loop(el, iteratorNames, evaluateItems, evaluateKey));
cleanup2(() => { cleanup2(() => {
Object.values(el._x_lookup).forEach((el2) => el2.remove()); Object.values(el._x_lookup).forEach((el2) => mutateDom(() => {
destroyTree(el2);
el2.remove();
}));
delete el._x_prevKeys; delete el._x_prevKeys;
delete el._x_lookup; delete el._x_lookup;
}); });
@ -3693,11 +3703,12 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
} }
for (let i = 0; i < removes.length; i++) { for (let i = 0; i < removes.length; i++) {
let key = removes[i]; let key = removes[i];
if (!!lookup[key]._x_effects) { if (!(key in lookup))
lookup[key]._x_effects.forEach(dequeueJob); continue;
} mutateDom(() => {
lookup[key].remove(); destroyTree(lookup[key]);
lookup[key] = null; lookup[key].remove();
});
delete lookup[key]; delete lookup[key];
} }
for (let i = 0; i < moves.length; i++) { for (let i = 0; i < moves.length; i++) {
@ -3818,12 +3829,10 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
}); });
el._x_currentIfEl = clone2; el._x_currentIfEl = clone2;
el._x_undoIf = () => { el._x_undoIf = () => {
walk(clone2, (node) => { mutateDom(() => {
if (!!node._x_effects) { destroyTree(clone2);
node._x_effects.forEach(dequeueJob); clone2.remove();
}
}); });
clone2.remove();
delete el._x_currentIfEl; delete el._x_currentIfEl;
}; };
return clone2; return clone2;
@ -4762,7 +4771,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
} }
}; };
// node_modules/@alpinejs/collapse/dist/module.esm.js // ../../../../usr/local/lib/node_modules/@alpinejs/collapse/dist/module.esm.js
function src_default2(Alpine3) { function src_default2(Alpine3) {
Alpine3.directive("collapse", collapse); Alpine3.directive("collapse", collapse);
collapse.inline = (el, { modifiers }) => { collapse.inline = (el, { modifiers }) => {
@ -4812,7 +4821,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
start: { height: current + "px" }, start: { height: current + "px" },
end: { height: full + "px" } end: { height: full + "px" }
}, () => el._x_isShown = true, () => { }, () => el._x_isShown = true, () => {
if (Math.abs(el.getBoundingClientRect().height - full) < 1) { if (el.getBoundingClientRect().height == full) {
el.style.overflow = null; el.style.overflow = null;
} }
}); });
@ -4856,7 +4865,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
} }
var module_default2 = src_default2; var module_default2 = src_default2;
// node_modules/@alpinejs/focus/dist/module.esm.js // ../../../../usr/local/lib/node_modules/@alpinejs/focus/dist/module.esm.js
var candidateSelectors = ["input", "select", "textarea", "a[href]", "button", "[tabindex]:not(slot)", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])', "details>summary:first-of-type", "details"]; var candidateSelectors = ["input", "select", "textarea", "a[href]", "button", "[tabindex]:not(slot)", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])', "details>summary:first-of-type", "details"];
var candidateSelector = /* @__PURE__ */ candidateSelectors.join(","); var candidateSelector = /* @__PURE__ */ candidateSelectors.join(",");
var NoElement = typeof Element === "undefined"; var NoElement = typeof Element === "undefined";
@ -4968,11 +4977,11 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
var checked = getCheckedRadio(radioSet, node.form); var checked = getCheckedRadio(radioSet, node.form);
return !checked || checked === node; return !checked || checked === node;
}; };
var isRadio = function isRadio2(node) { var isRadio2 = function isRadio22(node) {
return isInput(node) && node.type === "radio"; return isInput(node) && node.type === "radio";
}; };
var isNonTabbableRadio = function isNonTabbableRadio2(node) { var isNonTabbableRadio = function isNonTabbableRadio2(node) {
return isRadio(node) && !isTabbableRadio(node); return isRadio2(node) && !isTabbableRadio(node);
}; };
var isZeroArea = function isZeroArea2(node) { var isZeroArea = function isZeroArea2(node) {
var _node$getBoundingClie = node.getBoundingClientRect(), width = _node$getBoundingClie.width, height = _node$getBoundingClie.height; var _node$getBoundingClie = node.getBoundingClientRect(), width = _node$getBoundingClie.width, height = _node$getBoundingClie.height;
@ -5805,7 +5814,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
} }
var module_default3 = src_default3; var module_default3 = src_default3;
// node_modules/@alpinejs/persist/dist/module.esm.js // ../../../../usr/local/lib/node_modules/@alpinejs/persist/dist/module.esm.js
function src_default4(Alpine3) { function src_default4(Alpine3) {
let persist = () => { let persist = () => {
let alias; let alias;
@ -5867,7 +5876,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
} }
var module_default4 = src_default4; var module_default4 = src_default4;
// node_modules/@alpinejs/intersect/dist/module.esm.js // ../../../../usr/local/lib/node_modules/@alpinejs/intersect/dist/module.esm.js
function src_default5(Alpine3) { function src_default5(Alpine3) {
Alpine3.directive("intersect", Alpine3.skipDuringClone((el, { value, expression, modifiers }, { evaluateLater: evaluateLater2, cleanup: cleanup2 }) => { Alpine3.directive("intersect", Alpine3.skipDuringClone((el, { value, expression, modifiers }, { evaluateLater: evaluateLater2, cleanup: cleanup2 }) => {
let evaluate3 = evaluateLater2(expression); let evaluate3 = evaluateLater2(expression);
@ -5967,7 +5976,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
} }
var module_default6 = src_default6; var module_default6 = src_default6;
// node_modules/@alpinejs/anchor/dist/module.esm.js // ../alpine/packages/anchor/dist/module.esm.js
var min = Math.min; var min = Math.min;
var max = Math.max; var max = Math.max;
var round = Math.round; var round = Math.round;
@ -7471,8 +7480,10 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
} }
}; };
queueMicrotask(() => { queueMicrotask(() => {
scroll(document.body); queueMicrotask(() => {
document.querySelectorAll(["[x-navigate\\:scroll]", "[wire\\:scroll]"]).forEach(scroll); scroll(document.body);
document.querySelectorAll(["[x-navigate\\:scroll]", "[wire\\:scroll]"]).forEach(scroll);
});
}); });
} }
@ -7620,6 +7631,44 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
document.head.appendChild(style); document.head.appendChild(style);
} }
// js/plugins/navigate/popover.js
function packUpPersistedPopovers(persistedEl) {
persistedEl.querySelectorAll(":popover-open").forEach((el) => {
el.setAttribute("data-navigate-popover-open", "");
let animations = el.getAnimations();
el._pausedAnimations = animations.map((animation) => ({
keyframes: animation.effect.getKeyframes(),
options: {
duration: animation.effect.getTiming().duration,
easing: animation.effect.getTiming().easing,
fill: animation.effect.getTiming().fill,
iterations: animation.effect.getTiming().iterations
},
currentTime: animation.currentTime,
playState: animation.playState
}));
animations.forEach((i) => i.pause());
});
}
function unPackPersistedPopovers(persistedEl) {
persistedEl.querySelectorAll("[data-navigate-popover-open]").forEach((el) => {
el.removeAttribute("data-navigate-popover-open");
queueMicrotask(() => {
if (!el.isConnected)
return;
el.showPopover();
el.getAnimations().forEach((i) => i.finish());
if (el._pausedAnimations) {
el._pausedAnimations.forEach(({ keyframes, options, currentTime, now, playState }) => {
let animation = el.animate(keyframes, options);
animation.currentTime = currentTime;
});
delete el._pausedAnimations;
}
});
});
}
// js/plugins/navigate/page.js // js/plugins/navigate/page.js
var oldBodyScriptTagHashes = []; var oldBodyScriptTagHashes = [];
var attributesExemptFromScriptTagHashing = [ var attributesExemptFromScriptTagHashing = [
@ -7758,7 +7807,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
function navigate_default(Alpine3) { function navigate_default(Alpine3) {
Alpine3.navigate = (url) => { Alpine3.navigate = (url) => {
let destination = createUrlObjectFromString(url); let destination = createUrlObjectFromString(url);
let prevented = fireEventForOtherLibariesToHookInto("alpine:navigate", { let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
url: destination, url: destination,
history: false, history: false,
cached: false cached: false
@ -7789,7 +7838,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
storeThePrefetchedHtmlForWhenALinkIsClicked(html, destination, finalDestination); storeThePrefetchedHtmlForWhenALinkIsClicked(html, destination, finalDestination);
}); });
whenItIsReleased(() => { whenItIsReleased(() => {
let prevented = fireEventForOtherLibariesToHookInto("alpine:navigate", { let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
url: destination, url: destination,
history: false, history: false,
cached: false cached: false
@ -7803,7 +7852,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
function navigateTo(destination, shouldPushToHistoryState = true) { function navigateTo(destination, shouldPushToHistoryState = true) {
showProgressBar && showAndStartProgressBar(); showProgressBar && showAndStartProgressBar();
fetchHtmlOrUsePrefetchedHtml(destination, (html, finalDestination) => { fetchHtmlOrUsePrefetchedHtml(destination, (html, finalDestination) => {
fireEventForOtherLibariesToHookInto("alpine:navigating"); fireEventForOtherLibrariesToHookInto("alpine:navigating");
restoreScroll && storeScrollInformationInHtmlBeforeNavigatingAway(); restoreScroll && storeScrollInformationInHtmlBeforeNavigatingAway();
showProgressBar && finishAndHideProgressBar(); showProgressBar && finishAndHideProgressBar();
cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement(); cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement();
@ -7811,6 +7860,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
preventAlpineFromPickingUpDomChanges(Alpine3, (andAfterAllThis) => { preventAlpineFromPickingUpDomChanges(Alpine3, (andAfterAllThis) => {
enablePersist && storePersistantElementsForLater((persistedEl) => { enablePersist && storePersistantElementsForLater((persistedEl) => {
packUpPersistedTeleports(persistedEl); packUpPersistedTeleports(persistedEl);
packUpPersistedPopovers(persistedEl);
}); });
if (shouldPushToHistoryState) { if (shouldPushToHistoryState) {
updateUrlAndStoreLatestHtmlForFutureBackButtons(html, finalDestination); updateUrlAndStoreLatestHtmlForFutureBackButtons(html, finalDestination);
@ -7821,6 +7871,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
removeAnyLeftOverStaleTeleportTargets(document.body); removeAnyLeftOverStaleTeleportTargets(document.body);
enablePersist && putPersistantElementsBack((persistedEl, newStub) => { enablePersist && putPersistantElementsBack((persistedEl, newStub) => {
unPackPersistedTeleports(persistedEl); unPackPersistedTeleports(persistedEl);
unPackPersistedPopovers(persistedEl);
}); });
restoreScrollPositionOrScrollToTop(); restoreScrollPositionOrScrollToTop();
afterNewScriptsAreDoneLoading(() => { afterNewScriptsAreDoneLoading(() => {
@ -7829,7 +7880,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
autofocus && autofocusElementsWithTheAutofocusAttribute(); autofocus && autofocusElementsWithTheAutofocusAttribute();
}); });
nowInitializeAlpineOnTheNewPage(Alpine3); nowInitializeAlpineOnTheNewPage(Alpine3);
fireEventForOtherLibariesToHookInto("alpine:navigated"); fireEventForOtherLibrariesToHookInto("alpine:navigated");
}); });
}); });
}); });
@ -7839,7 +7890,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
whenTheBackOrForwardButtonIsClicked((ifThePageBeingVisitedHasntBeenCached) => { whenTheBackOrForwardButtonIsClicked((ifThePageBeingVisitedHasntBeenCached) => {
ifThePageBeingVisitedHasntBeenCached((url) => { ifThePageBeingVisitedHasntBeenCached((url) => {
let destination = createUrlObjectFromString(url); let destination = createUrlObjectFromString(url);
let prevented = fireEventForOtherLibariesToHookInto("alpine:navigate", { let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
url: destination, url: destination,
history: true, history: true,
cached: false cached: false
@ -7851,7 +7902,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
}); });
}, (html, url, currentPageUrl, currentPageKey) => { }, (html, url, currentPageUrl, currentPageKey) => {
let destination = createUrlObjectFromString(url); let destination = createUrlObjectFromString(url);
let prevented = fireEventForOtherLibariesToHookInto("alpine:navigate", { let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
url: destination, url: destination,
history: true, history: true,
cached: true cached: true
@ -7859,29 +7910,31 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
if (prevented) if (prevented)
return; return;
storeScrollInformationInHtmlBeforeNavigatingAway(); storeScrollInformationInHtmlBeforeNavigatingAway();
fireEventForOtherLibariesToHookInto("alpine:navigating"); fireEventForOtherLibrariesToHookInto("alpine:navigating");
updateCurrentPageHtmlInSnapshotCacheForLaterBackButtonClicks(currentPageUrl, currentPageKey); updateCurrentPageHtmlInSnapshotCacheForLaterBackButtonClicks(currentPageUrl, currentPageKey);
preventAlpineFromPickingUpDomChanges(Alpine3, (andAfterAllThis) => { preventAlpineFromPickingUpDomChanges(Alpine3, (andAfterAllThis) => {
enablePersist && storePersistantElementsForLater((persistedEl) => { enablePersist && storePersistantElementsForLater((persistedEl) => {
packUpPersistedTeleports(persistedEl); packUpPersistedTeleports(persistedEl);
packUpPersistedPopovers(persistedEl);
}); });
swapCurrentPageWithNewHtml(html, () => { swapCurrentPageWithNewHtml(html, () => {
removeAnyLeftOverStaleProgressBars(); removeAnyLeftOverStaleProgressBars();
removeAnyLeftOverStaleTeleportTargets(document.body); removeAnyLeftOverStaleTeleportTargets(document.body);
enablePersist && putPersistantElementsBack((persistedEl, newStub) => { enablePersist && putPersistantElementsBack((persistedEl, newStub) => {
unPackPersistedTeleports(persistedEl); unPackPersistedTeleports(persistedEl);
unPackPersistedPopovers(persistedEl);
}); });
restoreScrollPositionOrScrollToTop(); restoreScrollPositionOrScrollToTop();
andAfterAllThis(() => { andAfterAllThis(() => {
autofocus && autofocusElementsWithTheAutofocusAttribute(); autofocus && autofocusElementsWithTheAutofocusAttribute();
nowInitializeAlpineOnTheNewPage(Alpine3); nowInitializeAlpineOnTheNewPage(Alpine3);
fireEventForOtherLibariesToHookInto("alpine:navigated"); fireEventForOtherLibrariesToHookInto("alpine:navigated");
}); });
}); });
}); });
}); });
setTimeout(() => { setTimeout(() => {
fireEventForOtherLibariesToHookInto("alpine:navigated"); fireEventForOtherLibrariesToHookInto("alpine:navigated");
}); });
} }
function fetchHtmlOrUsePrefetchedHtml(fromDestination, callback) { function fetchHtmlOrUsePrefetchedHtml(fromDestination, callback) {
@ -7898,7 +7951,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
}); });
}); });
} }
function fireEventForOtherLibariesToHookInto(name, detail) { function fireEventForOtherLibrariesToHookInto(name, detail) {
let event = new CustomEvent(name, { let event = new CustomEvent(name, {
cancelable: true, cancelable: true,
bubbles: true, bubbles: true,
@ -8132,7 +8185,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
return data2; return data2;
} }
// node_modules/@alpinejs/morph/dist/module.esm.js // ../alpine/packages/morph/dist/module.esm.js
function morph(from, toHtml, options) { function morph(from, toHtml, options) {
monkeyPatchDomSetAttributeToAllowAtSymbols(); monkeyPatchDomSetAttributeToAllowAtSymbols();
let fromEl; let fromEl;
@ -8467,7 +8520,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
} }
var module_default8 = src_default8; var module_default8 = src_default8;
// node_modules/@alpinejs/mask/dist/module.esm.js // ../../../../usr/local/lib/node_modules/@alpinejs/mask/dist/module.esm.js
function src_default9(Alpine3) { function src_default9(Alpine3) {
Alpine3.directive("mask", (el, { value, expression }, { effect: effect3, evaluateLater: evaluateLater2, cleanup: cleanup2 }) => { Alpine3.directive("mask", (el, { value, expression }, { effect: effect3, evaluateLater: evaluateLater2, cleanup: cleanup2 }) => {
let templateFn = () => expression; let templateFn = () => expression;
@ -8905,6 +8958,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
}, },
lookahead: false lookahead: false
}); });
trigger2("morphed", { el, component });
} }
function isntElement(el) { function isntElement(el) {
return typeof el.hasAttribute !== "function"; return typeof el.hasAttribute !== "function";

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,2 +1,2 @@
{"/livewire.js":"cc800bf4"} {"/livewire.js":"38dc8241"}