Updated livewire dependencies
This commit is contained in:
parent
be9027ddac
commit
26ee47fa38
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
|
@ -370,9 +370,7 @@
|
||||||
if (key === "")
|
if (key === "")
|
||||||
return object;
|
return object;
|
||||||
return key.split(".").reduce((carry, i) => {
|
return key.split(".").reduce((carry, i) => {
|
||||||
if (carry === void 0)
|
return carry?.[i];
|
||||||
return void 0;
|
|
||||||
return carry[i];
|
|
||||||
}, object);
|
}, object);
|
||||||
}
|
}
|
||||||
function dataSet(object, key, value) {
|
function dataSet(object, key, value) {
|
||||||
|
|
@ -499,6 +497,9 @@
|
||||||
if (value === null || value === "") {
|
if (value === null || value === "") {
|
||||||
el.value = "";
|
el.value = "";
|
||||||
}
|
}
|
||||||
|
if (el.multiple && Array.isArray(value) && value.length === 0) {
|
||||||
|
el.value = "";
|
||||||
|
}
|
||||||
});
|
});
|
||||||
let clearFileInputValue = () => {
|
let clearFileInputValue = () => {
|
||||||
el.value = null;
|
el.value = null;
|
||||||
|
|
@ -901,7 +902,7 @@
|
||||||
deferredMutations = deferredMutations.concat(mutations);
|
deferredMutations = deferredMutations.concat(mutations);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let addedNodes = /* @__PURE__ */ new Set();
|
let addedNodes = [];
|
||||||
let removedNodes = /* @__PURE__ */ new Set();
|
let removedNodes = /* @__PURE__ */ new Set();
|
||||||
let addedAttributes = /* @__PURE__ */ new Map();
|
let addedAttributes = /* @__PURE__ */ new Map();
|
||||||
let removedAttributes = /* @__PURE__ */ new Map();
|
let removedAttributes = /* @__PURE__ */ new Map();
|
||||||
|
|
@ -909,8 +910,24 @@
|
||||||
if (mutations[i].target._x_ignoreMutationObserver)
|
if (mutations[i].target._x_ignoreMutationObserver)
|
||||||
continue;
|
continue;
|
||||||
if (mutations[i].type === "childList") {
|
if (mutations[i].type === "childList") {
|
||||||
mutations[i].addedNodes.forEach((node) => node.nodeType === 1 && addedNodes.add(node));
|
mutations[i].removedNodes.forEach((node) => {
|
||||||
mutations[i].removedNodes.forEach((node) => node.nodeType === 1 && removedNodes.add(node));
|
if (node.nodeType !== 1)
|
||||||
|
return;
|
||||||
|
if (!node._x_marker)
|
||||||
|
return;
|
||||||
|
removedNodes.add(node);
|
||||||
|
});
|
||||||
|
mutations[i].addedNodes.forEach((node) => {
|
||||||
|
if (node.nodeType !== 1)
|
||||||
|
return;
|
||||||
|
if (removedNodes.has(node)) {
|
||||||
|
removedNodes.delete(node);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (node._x_marker)
|
||||||
|
return;
|
||||||
|
addedNodes.push(node);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
if (mutations[i].type === "attributes") {
|
if (mutations[i].type === "attributes") {
|
||||||
let el = mutations[i].target;
|
let el = mutations[i].target;
|
||||||
|
|
@ -943,29 +960,15 @@
|
||||||
onAttributeAddeds.forEach((i) => i(el, attrs));
|
onAttributeAddeds.forEach((i) => i(el, attrs));
|
||||||
});
|
});
|
||||||
for (let node of removedNodes) {
|
for (let node of removedNodes) {
|
||||||
if (addedNodes.has(node))
|
if (addedNodes.some((i) => i.contains(node)))
|
||||||
continue;
|
continue;
|
||||||
onElRemoveds.forEach((i) => i(node));
|
onElRemoveds.forEach((i) => i(node));
|
||||||
}
|
}
|
||||||
addedNodes.forEach((node) => {
|
|
||||||
node._x_ignoreSelf = true;
|
|
||||||
node._x_ignore = true;
|
|
||||||
});
|
|
||||||
for (let node of addedNodes) {
|
for (let node of addedNodes) {
|
||||||
if (removedNodes.has(node))
|
|
||||||
continue;
|
|
||||||
if (!node.isConnected)
|
if (!node.isConnected)
|
||||||
continue;
|
continue;
|
||||||
delete node._x_ignoreSelf;
|
|
||||||
delete node._x_ignore;
|
|
||||||
onElAddeds.forEach((i) => i(node));
|
onElAddeds.forEach((i) => i(node));
|
||||||
node._x_ignore = true;
|
|
||||||
node._x_ignoreSelf = true;
|
|
||||||
}
|
}
|
||||||
addedNodes.forEach((node) => {
|
|
||||||
delete node._x_ignoreSelf;
|
|
||||||
delete node._x_ignore;
|
|
||||||
});
|
|
||||||
addedNodes = null;
|
addedNodes = null;
|
||||||
removedNodes = null;
|
removedNodes = null;
|
||||||
addedAttributes = null;
|
addedAttributes = null;
|
||||||
|
|
@ -1468,13 +1471,20 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
function interceptInit(callback) {
|
function interceptInit(callback) {
|
||||||
initInterceptors2.push(callback);
|
initInterceptors2.push(callback);
|
||||||
}
|
}
|
||||||
|
var markerDispenser = 1;
|
||||||
function initTree(el, walker = walk, intercept = () => {
|
function initTree(el, walker = walk, intercept = () => {
|
||||||
}) {
|
}) {
|
||||||
|
if (findClosest(el, (i) => i._x_ignore))
|
||||||
|
return;
|
||||||
deferHandlingDirectives(() => {
|
deferHandlingDirectives(() => {
|
||||||
walker(el, (el2, skip) => {
|
walker(el, (el2, skip) => {
|
||||||
|
if (el2._x_marker)
|
||||||
|
return;
|
||||||
intercept(el2, skip);
|
intercept(el2, skip);
|
||||||
initInterceptors2.forEach((i) => i(el2, skip));
|
initInterceptors2.forEach((i) => i(el2, skip));
|
||||||
directives(el2, el2.attributes).forEach((handle) => handle());
|
directives(el2, el2.attributes).forEach((handle) => handle());
|
||||||
|
if (!el2._x_ignore)
|
||||||
|
el2._x_marker = markerDispenser++;
|
||||||
el2._x_ignore && skip();
|
el2._x_ignore && skip();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
@ -1483,6 +1493,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
walker(root, (el) => {
|
walker(root, (el) => {
|
||||||
cleanupElement(el);
|
cleanupElement(el);
|
||||||
cleanupAttributes(el);
|
cleanupAttributes(el);
|
||||||
|
delete el._x_marker;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function warnAboutMissingPlugins() {
|
function warnAboutMissingPlugins() {
|
||||||
|
|
@ -2284,7 +2295,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
get raw() {
|
get raw() {
|
||||||
return raw;
|
return raw;
|
||||||
},
|
},
|
||||||
version: "3.14.3",
|
version: "3.14.9",
|
||||||
flushAndStopDeferringMutations,
|
flushAndStopDeferringMutations,
|
||||||
dontAutoEvaluateFunctions,
|
dontAutoEvaluateFunctions,
|
||||||
disableEffectScheduling,
|
disableEffectScheduling,
|
||||||
|
|
@ -3131,7 +3142,6 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
placeInDom(clone2, target, modifiers);
|
placeInDom(clone2, target, modifiers);
|
||||||
skipDuringClone(() => {
|
skipDuringClone(() => {
|
||||||
initTree(clone2);
|
initTree(clone2);
|
||||||
clone2._x_ignore = true;
|
|
||||||
})();
|
})();
|
||||||
});
|
});
|
||||||
el._x_teleportPutBack = () => {
|
el._x_teleportPutBack = () => {
|
||||||
|
|
@ -4353,9 +4363,11 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
"on": "$on",
|
"on": "$on",
|
||||||
"el": "$el",
|
"el": "$el",
|
||||||
"id": "$id",
|
"id": "$id",
|
||||||
|
"js": "$js",
|
||||||
"get": "$get",
|
"get": "$get",
|
||||||
"set": "$set",
|
"set": "$set",
|
||||||
"call": "$call",
|
"call": "$call",
|
||||||
|
"hook": "$hook",
|
||||||
"commit": "$commit",
|
"commit": "$commit",
|
||||||
"watch": "$watch",
|
"watch": "$watch",
|
||||||
"entangle": "$entangle",
|
"entangle": "$entangle",
|
||||||
|
|
@ -4423,6 +4435,14 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
wireProperty("$id", (component) => {
|
wireProperty("$id", (component) => {
|
||||||
return component.id;
|
return component.id;
|
||||||
});
|
});
|
||||||
|
wireProperty("$js", (component) => {
|
||||||
|
let fn = component.addJsAction.bind(component);
|
||||||
|
let jsActions = component.getJsActions();
|
||||||
|
Object.keys(jsActions).forEach((name) => {
|
||||||
|
fn[name] = component.getJsAction(name);
|
||||||
|
});
|
||||||
|
return fn;
|
||||||
|
});
|
||||||
wireProperty("$set", (component) => async (property, value, live = true) => {
|
wireProperty("$set", (component) => async (property, value, live = true) => {
|
||||||
dataSet(component.reactive, property, value);
|
dataSet(component.reactive, property, value);
|
||||||
if (live) {
|
if (live) {
|
||||||
|
|
@ -4450,6 +4470,16 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
wireProperty("$refresh", (component) => component.$wire.$commit);
|
wireProperty("$refresh", (component) => component.$wire.$commit);
|
||||||
wireProperty("$commit", (component) => async () => await requestCommit(component));
|
wireProperty("$commit", (component) => async () => await requestCommit(component));
|
||||||
wireProperty("$on", (component) => (...params) => listen2(component, ...params));
|
wireProperty("$on", (component) => (...params) => listen2(component, ...params));
|
||||||
|
wireProperty("$hook", (component) => (name, callback) => {
|
||||||
|
let unhook = on2(name, ({ component: hookComponent, ...params }) => {
|
||||||
|
if (hookComponent === void 0)
|
||||||
|
return callback(params);
|
||||||
|
if (hookComponent.id === component.id)
|
||||||
|
return callback({ component: hookComponent, ...params });
|
||||||
|
});
|
||||||
|
component.addCleanup(unhook);
|
||||||
|
return unhook;
|
||||||
|
});
|
||||||
wireProperty("$dispatch", (component) => (...params) => dispatch3(component, ...params));
|
wireProperty("$dispatch", (component) => (...params) => dispatch3(component, ...params));
|
||||||
wireProperty("$dispatchSelf", (component) => (...params) => dispatchSelf(component, ...params));
|
wireProperty("$dispatchSelf", (component) => (...params) => dispatchSelf(component, ...params));
|
||||||
wireProperty("$dispatchTo", () => (...params) => dispatchTo(...params));
|
wireProperty("$dispatchTo", () => (...params) => dispatchTo(...params));
|
||||||
|
|
@ -4508,6 +4538,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
this.ephemeral = extractData(deepClone(this.snapshot.data));
|
this.ephemeral = extractData(deepClone(this.snapshot.data));
|
||||||
this.reactive = Alpine.reactive(this.ephemeral);
|
this.reactive = Alpine.reactive(this.ephemeral);
|
||||||
this.queuedUpdates = {};
|
this.queuedUpdates = {};
|
||||||
|
this.jsActions = {};
|
||||||
this.$wire = generateWireObject(this, this.reactive);
|
this.$wire = generateWireObject(this, this.reactive);
|
||||||
this.cleanups = [];
|
this.cleanups = [];
|
||||||
this.processEffects(this.effects);
|
this.processEffects(this.effects);
|
||||||
|
|
@ -4583,6 +4614,18 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
}
|
}
|
||||||
el.setAttribute("wire:effects", JSON.stringify(effects));
|
el.setAttribute("wire:effects", JSON.stringify(effects));
|
||||||
}
|
}
|
||||||
|
addJsAction(name, action) {
|
||||||
|
this.jsActions[name] = action;
|
||||||
|
}
|
||||||
|
hasJsAction(name) {
|
||||||
|
return this.jsActions[name] !== void 0;
|
||||||
|
}
|
||||||
|
getJsAction(name) {
|
||||||
|
return this.jsActions[name].bind(this.$wire);
|
||||||
|
}
|
||||||
|
getJsActions() {
|
||||||
|
return this.jsActions;
|
||||||
|
}
|
||||||
addCleanup(cleanup2) {
|
addCleanup(cleanup2) {
|
||||||
this.cleanups.push(cleanup2);
|
this.cleanups.push(cleanup2);
|
||||||
}
|
}
|
||||||
|
|
@ -4709,6 +4752,16 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
function globalDirective(name, callback) {
|
||||||
|
if (customDirectiveNames.has(name))
|
||||||
|
return;
|
||||||
|
customDirectiveNames.add(name);
|
||||||
|
on2("directive.global.init", ({ el, directive: directive3, cleanup: cleanup2 }) => {
|
||||||
|
if (directive3.value === name) {
|
||||||
|
callback({ el, directive: directive3, cleanup: cleanup2 });
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
function getDirectives(el) {
|
function getDirectives(el) {
|
||||||
return new DirectiveManager(el);
|
return new DirectiveManager(el);
|
||||||
}
|
}
|
||||||
|
|
@ -4771,7 +4824,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// ../../../../usr/local/lib/node_modules/@alpinejs/collapse/dist/module.esm.js
|
// ../alpine/packages/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 }) => {
|
||||||
|
|
@ -4821,7 +4874,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 (el.getBoundingClientRect().height == full) {
|
if (Math.abs(el.getBoundingClientRect().height - full) < 1) {
|
||||||
el.style.overflow = null;
|
el.style.overflow = null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -4865,7 +4918,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
}
|
}
|
||||||
var module_default2 = src_default2;
|
var module_default2 = src_default2;
|
||||||
|
|
||||||
// ../../../../usr/local/lib/node_modules/@alpinejs/focus/dist/module.esm.js
|
// ../alpine/packages/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";
|
||||||
|
|
@ -5814,7 +5867,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
}
|
}
|
||||||
var module_default3 = src_default3;
|
var module_default3 = src_default3;
|
||||||
|
|
||||||
// ../../../../usr/local/lib/node_modules/@alpinejs/persist/dist/module.esm.js
|
// ../alpine/packages/persist/dist/module.esm.js
|
||||||
function src_default4(Alpine3) {
|
function src_default4(Alpine3) {
|
||||||
let persist = () => {
|
let persist = () => {
|
||||||
let alias;
|
let alias;
|
||||||
|
|
@ -5876,7 +5929,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
}
|
}
|
||||||
var module_default4 = src_default4;
|
var module_default4 = src_default4;
|
||||||
|
|
||||||
// ../../../../usr/local/lib/node_modules/@alpinejs/intersect/dist/module.esm.js
|
// ../alpine/packages/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);
|
||||||
|
|
@ -7633,6 +7686,8 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
|
|
||||||
// js/plugins/navigate/popover.js
|
// js/plugins/navigate/popover.js
|
||||||
function packUpPersistedPopovers(persistedEl) {
|
function packUpPersistedPopovers(persistedEl) {
|
||||||
|
if (!isPopoverSupported())
|
||||||
|
return;
|
||||||
persistedEl.querySelectorAll(":popover-open").forEach((el) => {
|
persistedEl.querySelectorAll(":popover-open").forEach((el) => {
|
||||||
el.setAttribute("data-navigate-popover-open", "");
|
el.setAttribute("data-navigate-popover-open", "");
|
||||||
let animations = el.getAnimations();
|
let animations = el.getAnimations();
|
||||||
|
|
@ -7651,6 +7706,8 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function unPackPersistedPopovers(persistedEl) {
|
function unPackPersistedPopovers(persistedEl) {
|
||||||
|
if (!isPopoverSupported())
|
||||||
|
return;
|
||||||
persistedEl.querySelectorAll("[data-navigate-popover-open]").forEach((el) => {
|
persistedEl.querySelectorAll("[data-navigate-popover-open]").forEach((el) => {
|
||||||
el.removeAttribute("data-navigate-popover-open");
|
el.removeAttribute("data-navigate-popover-open");
|
||||||
queueMicrotask(() => {
|
queueMicrotask(() => {
|
||||||
|
|
@ -7668,6 +7725,9 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
function isPopoverSupported() {
|
||||||
|
return typeof document.createElement("div").showPopover === "function";
|
||||||
|
}
|
||||||
|
|
||||||
// js/plugins/navigate/page.js
|
// js/plugins/navigate/page.js
|
||||||
var oldBodyScriptTagHashes = [];
|
var oldBodyScriptTagHashes = [];
|
||||||
|
|
@ -7677,6 +7737,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
];
|
];
|
||||||
function swapCurrentPageWithNewHtml(html, andThen) {
|
function swapCurrentPageWithNewHtml(html, andThen) {
|
||||||
let newDocument = new DOMParser().parseFromString(html, "text/html");
|
let newDocument = new DOMParser().parseFromString(html, "text/html");
|
||||||
|
let newHtml = newDocument.documentElement;
|
||||||
let newBody = document.adoptNode(newDocument.body);
|
let newBody = document.adoptNode(newDocument.body);
|
||||||
let newHead = document.adoptNode(newDocument.head);
|
let newHead = document.adoptNode(newDocument.head);
|
||||||
oldBodyScriptTagHashes = oldBodyScriptTagHashes.concat(Array.from(document.body.querySelectorAll("script")).map((i) => {
|
oldBodyScriptTagHashes = oldBodyScriptTagHashes.concat(Array.from(document.body.querySelectorAll("script")).map((i) => {
|
||||||
|
|
@ -7684,6 +7745,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
}));
|
}));
|
||||||
let afterRemoteScriptsHaveLoaded = () => {
|
let afterRemoteScriptsHaveLoaded = () => {
|
||||||
};
|
};
|
||||||
|
replaceHtmlAttributes(newHtml);
|
||||||
mergeNewHead(newHead).finally(() => {
|
mergeNewHead(newHead).finally(() => {
|
||||||
afterRemoteScriptsHaveLoaded();
|
afterRemoteScriptsHaveLoaded();
|
||||||
});
|
});
|
||||||
|
|
@ -7703,6 +7765,21 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
i.replaceWith(cloneScriptTag(i));
|
i.replaceWith(cloneScriptTag(i));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
function replaceHtmlAttributes(newHtmlElement) {
|
||||||
|
let currentHtmlElement = document.documentElement;
|
||||||
|
Array.from(newHtmlElement.attributes).forEach((attr) => {
|
||||||
|
const name = attr.name;
|
||||||
|
const value = attr.value;
|
||||||
|
if (currentHtmlElement.getAttribute(name) !== value) {
|
||||||
|
currentHtmlElement.setAttribute(name, value);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
Array.from(currentHtmlElement.attributes).forEach((attr) => {
|
||||||
|
if (!newHtmlElement.hasAttribute(attr.name)) {
|
||||||
|
currentHtmlElement.removeAttribute(attr.name);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
function mergeNewHead(newHead) {
|
function mergeNewHead(newHead) {
|
||||||
let children = Array.from(document.head.children);
|
let children = Array.from(document.head.children);
|
||||||
let headChildrenHtmlLookup = children.map((i) => i.outerHTML);
|
let headChildrenHtmlLookup = children.map((i) => i.outerHTML);
|
||||||
|
|
@ -7736,6 +7813,8 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
child.remove();
|
child.remove();
|
||||||
}
|
}
|
||||||
for (let child of Array.from(newHead.children)) {
|
for (let child of Array.from(newHead.children)) {
|
||||||
|
if (child.tagName.toLowerCase() === "noscript")
|
||||||
|
continue;
|
||||||
document.head.appendChild(child);
|
document.head.appendChild(child);
|
||||||
}
|
}
|
||||||
return Promise.all(remoteScriptsPromises);
|
return Promise.all(remoteScriptsPromises);
|
||||||
|
|
@ -8083,14 +8162,22 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
if (!state.alpine)
|
if (!state.alpine)
|
||||||
state.alpine = {};
|
state.alpine = {};
|
||||||
state.alpine[key] = unwrap(object);
|
state.alpine[key] = unwrap(object);
|
||||||
window.history.replaceState(state, "", url.toString());
|
try {
|
||||||
|
window.history.replaceState(state, "", url.toString());
|
||||||
|
} catch (e) {
|
||||||
|
console.error(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
function push(url, key, object) {
|
function push(url, key, object) {
|
||||||
let state = window.history.state || {};
|
let state = window.history.state || {};
|
||||||
if (!state.alpine)
|
if (!state.alpine)
|
||||||
state.alpine = {};
|
state.alpine = {};
|
||||||
state = { alpine: { ...state.alpine, ...{ [key]: unwrap(object) } } };
|
state = { alpine: { ...state.alpine, ...{ [key]: unwrap(object) } } };
|
||||||
window.history.pushState(state, "", url.toString());
|
try {
|
||||||
|
window.history.pushState(state, "", url.toString());
|
||||||
|
} catch (e) {
|
||||||
|
console.error(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
function unwrap(object) {
|
function unwrap(object) {
|
||||||
if (object === void 0)
|
if (object === void 0)
|
||||||
|
|
@ -8103,24 +8190,24 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
let search = url.search;
|
let search = url.search;
|
||||||
if (!search)
|
if (!search)
|
||||||
return false;
|
return false;
|
||||||
let data2 = fromQueryString(search);
|
let data2 = fromQueryString(search, key);
|
||||||
return Object.keys(data2).includes(key);
|
return Object.keys(data2).includes(key);
|
||||||
},
|
},
|
||||||
get(url, key) {
|
get(url, key) {
|
||||||
let search = url.search;
|
let search = url.search;
|
||||||
if (!search)
|
if (!search)
|
||||||
return false;
|
return false;
|
||||||
let data2 = fromQueryString(search);
|
let data2 = fromQueryString(search, key);
|
||||||
return data2[key];
|
return data2[key];
|
||||||
},
|
},
|
||||||
set(url, key, value) {
|
set(url, key, value) {
|
||||||
let data2 = fromQueryString(url.search);
|
let data2 = fromQueryString(url.search, key);
|
||||||
data2[key] = stripNulls(unwrap(value));
|
data2[key] = stripNulls(unwrap(value));
|
||||||
url.search = toQueryString(data2);
|
url.search = toQueryString(data2);
|
||||||
return url;
|
return url;
|
||||||
},
|
},
|
||||||
remove(url, key) {
|
remove(url, key) {
|
||||||
let data2 = fromQueryString(url.search);
|
let data2 = fromQueryString(url.search, key);
|
||||||
delete data2[key];
|
delete data2[key];
|
||||||
url.search = toQueryString(data2);
|
url.search = toQueryString(data2);
|
||||||
return url;
|
return url;
|
||||||
|
|
@ -8156,7 +8243,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
let entries = buildQueryStringEntries(data2);
|
let entries = buildQueryStringEntries(data2);
|
||||||
return Object.entries(entries).map(([key, value]) => `${key}=${value}`).join("&");
|
return Object.entries(entries).map(([key, value]) => `${key}=${value}`).join("&");
|
||||||
}
|
}
|
||||||
function fromQueryString(search) {
|
function fromQueryString(search, queryKey) {
|
||||||
search = search.replace("?", "");
|
search = search.replace("?", "");
|
||||||
if (search === "")
|
if (search === "")
|
||||||
return {};
|
return {};
|
||||||
|
|
@ -8175,10 +8262,12 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
if (typeof value == "undefined")
|
if (typeof value == "undefined")
|
||||||
return;
|
return;
|
||||||
value = decodeURIComponent(value.replaceAll("+", "%20"));
|
value = decodeURIComponent(value.replaceAll("+", "%20"));
|
||||||
if (!key.includes("[")) {
|
let decodedKey = decodeURIComponent(key);
|
||||||
|
let shouldBeHandledAsArray = decodedKey.includes("[") && decodedKey.startsWith(queryKey);
|
||||||
|
if (!shouldBeHandledAsArray) {
|
||||||
data2[key] = value;
|
data2[key] = value;
|
||||||
} else {
|
} else {
|
||||||
let dotNotatedKey = key.replaceAll("[", ".").replaceAll("]", "");
|
let dotNotatedKey = decodedKey.replaceAll("[", ".").replaceAll("]", "");
|
||||||
insertDotNotatedValueIntoData(dotNotatedKey, value, data2);
|
insertDotNotatedValueIntoData(dotNotatedKey, value, data2);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -8209,7 +8298,8 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
return swapElements(from2, to);
|
return swapElements(from2, to);
|
||||||
}
|
}
|
||||||
let updateChildrenOnly = false;
|
let updateChildrenOnly = false;
|
||||||
if (shouldSkip(updating, from2, to, () => updateChildrenOnly = true))
|
let skipChildren = false;
|
||||||
|
if (shouldSkipChildren(updating, () => skipChildren = true, from2, to, () => updateChildrenOnly = true))
|
||||||
return;
|
return;
|
||||||
if (from2.nodeType === 1 && window.Alpine) {
|
if (from2.nodeType === 1 && window.Alpine) {
|
||||||
window.Alpine.cloneNode(from2, to);
|
window.Alpine.cloneNode(from2, to);
|
||||||
|
|
@ -8226,7 +8316,9 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
patchAttributes(from2, to);
|
patchAttributes(from2, to);
|
||||||
}
|
}
|
||||||
updated(from2, to);
|
updated(from2, to);
|
||||||
patchChildren(from2, to);
|
if (!skipChildren) {
|
||||||
|
patchChildren(from2, to);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
function differentElementNamesTypesOrKeys(from2, to) {
|
function differentElementNamesTypesOrKeys(from2, to) {
|
||||||
return from2.nodeType != to.nodeType || from2.nodeName != to.nodeName || getKey(from2) != getKey(to);
|
return from2.nodeType != to.nodeType || from2.nodeName != to.nodeName || getKey(from2) != getKey(to);
|
||||||
|
|
@ -8286,6 +8378,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
let holdover = fromKeyHoldovers[toKey];
|
let holdover = fromKeyHoldovers[toKey];
|
||||||
from2.appendChild(holdover);
|
from2.appendChild(holdover);
|
||||||
currentFrom = holdover;
|
currentFrom = holdover;
|
||||||
|
fromKey = getKey(currentFrom);
|
||||||
} else {
|
} else {
|
||||||
if (!shouldSkip(adding, currentTo)) {
|
if (!shouldSkip(adding, currentTo)) {
|
||||||
let clone2 = currentTo.cloneNode(true);
|
let clone2 = currentTo.cloneNode(true);
|
||||||
|
|
@ -8359,6 +8452,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
if (fromKeys[toKey]) {
|
if (fromKeys[toKey]) {
|
||||||
currentFrom.replaceWith(fromKeys[toKey]);
|
currentFrom.replaceWith(fromKeys[toKey]);
|
||||||
currentFrom = fromKeys[toKey];
|
currentFrom = fromKeys[toKey];
|
||||||
|
fromKey = getKey(currentFrom);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (toKey && fromKey) {
|
if (toKey && fromKey) {
|
||||||
|
|
@ -8367,6 +8461,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
fromKeyHoldovers[fromKey] = currentFrom;
|
fromKeyHoldovers[fromKey] = currentFrom;
|
||||||
currentFrom.replaceWith(fromKeyNode);
|
currentFrom.replaceWith(fromKeyNode);
|
||||||
currentFrom = fromKeyNode;
|
currentFrom = fromKeyNode;
|
||||||
|
fromKey = getKey(currentFrom);
|
||||||
} else {
|
} else {
|
||||||
fromKeyHoldovers[fromKey] = currentFrom;
|
fromKeyHoldovers[fromKey] = currentFrom;
|
||||||
currentFrom = addNodeBefore(from2, currentTo, currentFrom);
|
currentFrom = addNodeBefore(from2, currentTo, currentFrom);
|
||||||
|
|
@ -8437,6 +8532,11 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
hook(...args, () => skip = true);
|
hook(...args, () => skip = true);
|
||||||
return skip;
|
return skip;
|
||||||
}
|
}
|
||||||
|
function shouldSkipChildren(hook, skipChildren, ...args) {
|
||||||
|
let skip = false;
|
||||||
|
hook(...args, () => skip = true, skipChildren);
|
||||||
|
return skip;
|
||||||
|
}
|
||||||
var patched = false;
|
var patched = false;
|
||||||
function createElement(html) {
|
function createElement(html) {
|
||||||
const template = document.createElement("template");
|
const template = document.createElement("template");
|
||||||
|
|
@ -8512,6 +8612,8 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
let fromId = from && from._x_bindings && from._x_bindings.id;
|
let fromId = from && from._x_bindings && from._x_bindings.id;
|
||||||
if (!fromId)
|
if (!fromId)
|
||||||
return;
|
return;
|
||||||
|
if (!to.setAttribute)
|
||||||
|
return;
|
||||||
to.setAttribute("id", fromId);
|
to.setAttribute("id", fromId);
|
||||||
to.id = fromId;
|
to.id = fromId;
|
||||||
}
|
}
|
||||||
|
|
@ -8520,7 +8622,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
}
|
}
|
||||||
var module_default8 = src_default8;
|
var module_default8 = src_default8;
|
||||||
|
|
||||||
// ../../../../usr/local/lib/node_modules/@alpinejs/mask/dist/module.esm.js
|
// ../alpine/packages/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;
|
||||||
|
|
@ -8546,8 +8648,13 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
} else {
|
} else {
|
||||||
processInputValue(el, false);
|
processInputValue(el, false);
|
||||||
}
|
}
|
||||||
if (el._x_model)
|
if (el._x_model) {
|
||||||
|
if (el._x_model.get() === el.value)
|
||||||
|
return;
|
||||||
|
if (el._x_model.get() === null && el.value === "")
|
||||||
|
return;
|
||||||
el._x_model.set(el.value);
|
el._x_model.set(el.value);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
const controller = new AbortController();
|
const controller = new AbortController();
|
||||||
cleanup2(() => {
|
cleanup2(() => {
|
||||||
|
|
@ -8725,10 +8832,15 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
destroyComponent(component2.id);
|
destroyComponent(component2.id);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
let directives2 = Array.from(el.getAttributeNames()).filter((name) => matchesForLivewireDirective(name)).map((name) => extractDirective(el, name));
|
||||||
|
directives2.forEach((directive3) => {
|
||||||
|
trigger2("directive.global.init", { el, directive: directive3, cleanup: (callback) => {
|
||||||
|
module_default.onAttributeRemoved(el, directive3.raw, callback);
|
||||||
|
} });
|
||||||
|
});
|
||||||
let component = closestComponent(el, false);
|
let component = closestComponent(el, false);
|
||||||
if (component) {
|
if (component) {
|
||||||
trigger2("element.init", { el, component });
|
trigger2("element.init", { el, component });
|
||||||
let directives2 = Array.from(el.getAttributeNames()).filter((name) => matchesForLivewireDirective(name)).map((name) => extractDirective(el, name));
|
|
||||||
directives2.forEach((directive3) => {
|
directives2.forEach((directive3) => {
|
||||||
trigger2("directive.init", { el, component, directive: directive3, cleanup: (callback) => {
|
trigger2("directive.init", { el, component, directive: directive3, cleanup: (callback) => {
|
||||||
module_default.onAttributeRemoved(el, directive3.raw, callback);
|
module_default.onAttributeRemoved(el, directive3.raw, callback);
|
||||||
|
|
@ -8804,7 +8916,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
onlyIfScriptHasntBeenRunAlreadyForThisComponent(component, key, () => {
|
onlyIfScriptHasntBeenRunAlreadyForThisComponent(component, key, () => {
|
||||||
let scriptContent = extractScriptTagContent(content);
|
let scriptContent = extractScriptTagContent(content);
|
||||||
module_default.dontAutoEvaluateFunctions(() => {
|
module_default.dontAutoEvaluateFunctions(() => {
|
||||||
module_default.evaluate(component.el, scriptContent, { "$wire": component.$wire });
|
module_default.evaluate(component.el, scriptContent, { "$wire": component.$wire, "$js": component.$wire.$js });
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
@ -8876,6 +8988,10 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
}
|
}
|
||||||
|
|
||||||
// js/features/supportJsEvaluation.js
|
// js/features/supportJsEvaluation.js
|
||||||
|
module_default.magic("js", (el) => {
|
||||||
|
let component = closestComponent(el);
|
||||||
|
return component.$wire.js;
|
||||||
|
});
|
||||||
on2("effect", ({ component, effects }) => {
|
on2("effect", ({ component, effects }) => {
|
||||||
let js = effects.js;
|
let js = effects.js;
|
||||||
let xjs = effects.xjs;
|
let xjs = effects.xjs;
|
||||||
|
|
@ -8887,8 +9003,9 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (xjs) {
|
if (xjs) {
|
||||||
xjs.forEach((expression) => {
|
xjs.forEach(({ expression, params }) => {
|
||||||
module_default.evaluate(component.el, expression);
|
params = Object.values(params);
|
||||||
|
module_default.evaluate(component.el, expression, { scope: component.jsActions, params });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -8908,10 +9025,10 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
to.__livewire = component;
|
to.__livewire = component;
|
||||||
trigger2("morph", { el, toEl: to, component });
|
trigger2("morph", { el, toEl: to, component });
|
||||||
module_default.morph(el, to, {
|
module_default.morph(el, to, {
|
||||||
updating: (el2, toEl, childrenOnly, skip) => {
|
updating: (el2, toEl, childrenOnly, skip, skipChildren) => {
|
||||||
if (isntElement(el2))
|
if (isntElement(el2))
|
||||||
return;
|
return;
|
||||||
trigger2("morph.updating", { el: el2, toEl, component, skip, childrenOnly });
|
trigger2("morph.updating", { el: el2, toEl, component, skip, childrenOnly, skipChildren });
|
||||||
if (el2.__livewire_replace === true)
|
if (el2.__livewire_replace === true)
|
||||||
el2.innerHTML = toEl.innerHTML;
|
el2.innerHTML = toEl.innerHTML;
|
||||||
if (el2.__livewire_replace_self === true) {
|
if (el2.__livewire_replace_self === true) {
|
||||||
|
|
@ -8922,6 +9039,8 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
return skip();
|
return skip();
|
||||||
if (el2.__livewire_ignore_self === true)
|
if (el2.__livewire_ignore_self === true)
|
||||||
childrenOnly();
|
childrenOnly();
|
||||||
|
if (el2.__livewire_ignore_children === true)
|
||||||
|
return skipChildren();
|
||||||
if (isComponentRootEl(el2) && el2.getAttribute("wire:id") !== component.id)
|
if (isComponentRootEl(el2) && el2.getAttribute("wire:id") !== component.id)
|
||||||
return skip();
|
return skip();
|
||||||
if (isComponentRootEl(el2))
|
if (isComponentRootEl(el2))
|
||||||
|
|
@ -9354,6 +9473,14 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
el.__addedByMorph = true;
|
el.__addedByMorph = true;
|
||||||
});
|
});
|
||||||
directive2("transition", ({ el, directive: directive3, component, cleanup: cleanup2 }) => {
|
directive2("transition", ({ el, directive: directive3, component, cleanup: cleanup2 }) => {
|
||||||
|
for (let i = 0; i < el.attributes.length; i++) {
|
||||||
|
if (el.attributes[i].name.startsWith("wire:show")) {
|
||||||
|
module_default.bind(el, {
|
||||||
|
[directive3.rawName.replace("wire:transition", "x-transition")]: directive3.expression
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
let visibility = module_default.reactive({ state: el.__addedByMorph ? false : true });
|
let visibility = module_default.reactive({ state: el.__addedByMorph ? false : true });
|
||||||
module_default.bind(el, {
|
module_default.bind(el, {
|
||||||
[directive3.rawName.replace("wire:", "x-")]: "",
|
[directive3.rawName.replace("wire:", "x-")]: "",
|
||||||
|
|
@ -9466,6 +9593,55 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// js/directives/wire-current.js
|
||||||
|
module_default.addInitSelector(() => `[wire\\:current]`);
|
||||||
|
var onPageChanges = /* @__PURE__ */ new Map();
|
||||||
|
document.addEventListener("livewire:navigated", () => {
|
||||||
|
onPageChanges.forEach((i) => i(new URL(window.location.href)));
|
||||||
|
});
|
||||||
|
globalDirective("current", ({ el, directive: directive3, cleanup: cleanup2 }) => {
|
||||||
|
let expression = directive3.expression;
|
||||||
|
let options = {
|
||||||
|
exact: directive3.modifiers.includes("exact"),
|
||||||
|
strict: directive3.modifiers.includes("strict")
|
||||||
|
};
|
||||||
|
if (expression.startsWith("#"))
|
||||||
|
return;
|
||||||
|
if (!el.hasAttribute("href"))
|
||||||
|
return;
|
||||||
|
let href = el.getAttribute("href");
|
||||||
|
let hrefUrl = new URL(href, window.location.href);
|
||||||
|
let classes = expression.split(" ").filter(String);
|
||||||
|
let refreshCurrent = (url) => {
|
||||||
|
if (pathMatches(hrefUrl, url, options)) {
|
||||||
|
el.classList.add(...classes);
|
||||||
|
el.setAttribute("data-current", "");
|
||||||
|
} else {
|
||||||
|
el.classList.remove(...classes);
|
||||||
|
el.removeAttribute("data-current");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
refreshCurrent(new URL(window.location.href));
|
||||||
|
onPageChanges.set(el, refreshCurrent);
|
||||||
|
cleanup2(() => onPageChanges.delete(el));
|
||||||
|
});
|
||||||
|
function pathMatches(hrefUrl, actualUrl, options) {
|
||||||
|
if (hrefUrl.hostname !== actualUrl.hostname)
|
||||||
|
return false;
|
||||||
|
let hrefPath = options.strict ? hrefUrl.pathname : hrefUrl.pathname.replace(/\/+$/, "");
|
||||||
|
let actualPath = options.strict ? actualUrl.pathname : actualUrl.pathname.replace(/\/+$/, "");
|
||||||
|
if (options.exact) {
|
||||||
|
return hrefPath === actualPath;
|
||||||
|
}
|
||||||
|
let hrefPathSegments = hrefPath.split("/");
|
||||||
|
let actualPathSegments = actualPath.split("/");
|
||||||
|
for (let i = 0; i < hrefPathSegments.length; i++) {
|
||||||
|
if (hrefPathSegments[i] !== actualPathSegments[i])
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// js/directives/shared.js
|
// js/directives/shared.js
|
||||||
function toggleBooleanStateDirective(el, directive3, isTruthy, cachedDisplay = null) {
|
function toggleBooleanStateDirective(el, directive3, isTruthy, cachedDisplay = null) {
|
||||||
isTruthy = directive3.modifiers.includes("remove") ? !isTruthy : isTruthy;
|
isTruthy = directive3.modifiers.includes("remove") ? !isTruthy : isTruthy;
|
||||||
|
|
@ -9730,11 +9906,20 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
directive2("ignore", ({ el, directive: directive3 }) => {
|
directive2("ignore", ({ el, directive: directive3 }) => {
|
||||||
if (directive3.modifiers.includes("self")) {
|
if (directive3.modifiers.includes("self")) {
|
||||||
el.__livewire_ignore_self = true;
|
el.__livewire_ignore_self = true;
|
||||||
|
} else if (directive3.modifiers.includes("children")) {
|
||||||
|
el.__livewire_ignore_children = true;
|
||||||
} else {
|
} else {
|
||||||
el.__livewire_ignore = true;
|
el.__livewire_ignore = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// js/directives/wire-cloak.js
|
||||||
|
module_default.interceptInit((el) => {
|
||||||
|
if (el.hasAttribute("wire:cloak")) {
|
||||||
|
module_default.mutateDom(() => el.removeAttribute("wire:cloak"));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// js/directives/wire-dirty.js
|
// js/directives/wire-dirty.js
|
||||||
var refreshDirtyStatesByComponent = new WeakBag();
|
var refreshDirtyStatesByComponent = new WeakBag();
|
||||||
on2("commit", ({ component, respond }) => {
|
on2("commit", ({ component, respond }) => {
|
||||||
|
|
@ -9746,7 +9931,6 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
});
|
});
|
||||||
directive2("dirty", ({ el, directive: directive3, component }) => {
|
directive2("dirty", ({ el, directive: directive3, component }) => {
|
||||||
let targets = dirtyTargets(el);
|
let targets = dirtyTargets(el);
|
||||||
let dirty = Alpine.reactive({ state: false });
|
|
||||||
let oldIsDirty = false;
|
let oldIsDirty = false;
|
||||||
let initialDisplay = el.style.display;
|
let initialDisplay = el.style.display;
|
||||||
let refreshDirtyState = (isDirty) => {
|
let refreshDirtyState = (isDirty) => {
|
||||||
|
|
@ -9965,6 +10149,38 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||||
return durationInMilliSeconds || defaultDuration;
|
return durationInMilliSeconds || defaultDuration;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// js/directives/wire-show.js
|
||||||
|
module_default.interceptInit((el) => {
|
||||||
|
for (let i = 0; i < el.attributes.length; i++) {
|
||||||
|
if (el.attributes[i].name.startsWith("wire:show")) {
|
||||||
|
let { name, value } = el.attributes[i];
|
||||||
|
let modifierString = name.split("wire:show")[1];
|
||||||
|
let expression = value.startsWith("!") ? "!$wire." + value.slice(1).trim() : "$wire." + value.trim();
|
||||||
|
module_default.bind(el, {
|
||||||
|
["x-show" + modifierString]() {
|
||||||
|
return module_default.evaluate(el, expression);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// js/directives/wire-text.js
|
||||||
|
module_default.interceptInit((el) => {
|
||||||
|
for (let i = 0; i < el.attributes.length; i++) {
|
||||||
|
if (el.attributes[i].name.startsWith("wire:text")) {
|
||||||
|
let { name, value } = el.attributes[i];
|
||||||
|
let modifierString = name.split("wire:text")[1];
|
||||||
|
let expression = value.startsWith("!") ? "!$wire." + value.slice(1).trim() : "$wire." + value.trim();
|
||||||
|
module_default.bind(el, {
|
||||||
|
["x-text" + modifierString]() {
|
||||||
|
return module_default.evaluate(el, expression);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// js/index.js
|
// js/index.js
|
||||||
var Livewire2 = {
|
var Livewire2 = {
|
||||||
directive: directive2,
|
directive: directive2,
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,2 +1,2 @@
|
||||||
|
|
||||||
{"/livewire.js":"38dc8241"}
|
{"/livewire.js":"df3a17f2"}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue