mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-22 10:08:31 -05:00
update: dependencies
This commit is contained in:
+14
-14
@@ -15,7 +15,7 @@
|
||||
"ext-zend-opcache": "*",
|
||||
"ext-zip": "*",
|
||||
"assada/laravel-achievements": "^2.7",
|
||||
"bjeavons/zxcvbn-php": "^1.3.1",
|
||||
"bjeavons/zxcvbn-php": "^1.4.1",
|
||||
"doctrine/dbal": "^3.9.3",
|
||||
"gabrielelana/byte-units": "^0.5.0",
|
||||
"graham-campbell/markdown": "^15.2",
|
||||
@@ -25,13 +25,13 @@
|
||||
"intervention/image": "^2.7.2",
|
||||
"joypixels/assets": "^v7.0.1",
|
||||
"laravel/fortify": "1.20.0",
|
||||
"laravel/framework": "^11.28.1",
|
||||
"laravel/octane": "^2.5.9",
|
||||
"laravel/scout": "^10.11.4",
|
||||
"laravel/framework": "^11.36.1",
|
||||
"laravel/octane": "^2.6.0",
|
||||
"laravel/scout": "^10.11.9",
|
||||
"laravel/tinker": "^2.10.0",
|
||||
"livewire/livewire": "^3.5.12",
|
||||
"livewire/livewire": "^3.5.17",
|
||||
"marcreichel/igdb-laravel": "^4.3.0",
|
||||
"meilisearch/meilisearch-php": "^1.10.1",
|
||||
"meilisearch/meilisearch-php": "^1.11.0",
|
||||
"nesbot/carbon": "2.72.3",
|
||||
"paragonie/constant_time_encoding": "^2.7.0",
|
||||
"resend/resend-laravel": "^0.14.0",
|
||||
@@ -39,29 +39,29 @@
|
||||
"spatie/laravel-cookie-consent": "^3.3.2",
|
||||
"spatie/laravel-image-optimizer": "^1.8.0",
|
||||
"spatie/ssl-certificate": "^2.6.8",
|
||||
"symfony/dom-crawler": "^6.4.12",
|
||||
"symfony/dom-crawler": "^6.4.16",
|
||||
"theodorejb/polycast": "dev-master",
|
||||
"voku/anti-xss": "^4.1.42",
|
||||
"vstelmakh/url-highlight": "^3.1.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"barryvdh/laravel-debugbar": "^3.14.6",
|
||||
"brianium/paratest": "^7.6",
|
||||
"barryvdh/laravel-debugbar": "^3.14.9",
|
||||
"brianium/paratest": "^7.7",
|
||||
"calebdw/larastan": "2.10.5",
|
||||
"calebdw/larastan-livewire": "^1.1.0",
|
||||
"fakerphp/faker": "^1.23.1",
|
||||
"fakerphp/faker": "^1.24.1",
|
||||
"jasonmccreary/laravel-test-assertions": "^2.4.1",
|
||||
"laravel/pint": "^1.18.1",
|
||||
"laravel/pint": "^1.18.3",
|
||||
"laravel/sail": "1.31.1",
|
||||
"mockery/mockery": "^1.6.12",
|
||||
"nunomaduro/collision": "^8.5.0",
|
||||
"pestphp/pest": "^3.5",
|
||||
"pestphp/pest": "^3.7.1",
|
||||
"pestphp/pest-plugin-laravel": "^3.0",
|
||||
"pestphp/pest-plugin-livewire": "^3.0",
|
||||
"phpstan/phpstan": "1.12.0",
|
||||
"phpunit/phpunit": "^11.0",
|
||||
"phpunit/phpunit": "^11.5.1",
|
||||
"ryoluo/sail-ssl": "^1.3.2",
|
||||
"spatie/laravel-ignition": "^2.8.0",
|
||||
"spatie/laravel-ignition": "^2.9.0",
|
||||
"tomasvotruba/bladestan": "^0.5.0"
|
||||
},
|
||||
"config": {
|
||||
|
||||
Generated
+809
-569
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -7,7 +7,7 @@
|
||||
"dependencies": {
|
||||
"ajv": "^8.10.0",
|
||||
"alpinejs": "^3.9.1",
|
||||
"axios": "^1.7.2",
|
||||
"axios": "^1.7.4",
|
||||
"chart.js": "^4.4.4",
|
||||
"chartjs-adapter-date-fns": "^3.0.0",
|
||||
"cross-env": "^7.0.3",
|
||||
@@ -32,7 +32,7 @@
|
||||
"laravel-vite-plugin": "^1.0.1",
|
||||
"vite-plugin-static-copy": "^1.0.1",
|
||||
"prettier-plugin-blade": "^2.0.0",
|
||||
"vite": "^5.0.12"
|
||||
"vite": "^5.4.6"
|
||||
},
|
||||
"type": "module"
|
||||
}
|
||||
|
||||
Vendored
+135
-39
@@ -370,9 +370,7 @@
|
||||
if (key === "")
|
||||
return object;
|
||||
return key.split(".").reduce((carry, i) => {
|
||||
if (carry === void 0)
|
||||
return void 0;
|
||||
return carry[i];
|
||||
return carry?.[i];
|
||||
}, object);
|
||||
}
|
||||
function dataSet(object, key, value) {
|
||||
@@ -901,7 +899,7 @@
|
||||
deferredMutations = deferredMutations.concat(mutations);
|
||||
return;
|
||||
}
|
||||
let addedNodes = /* @__PURE__ */ new Set();
|
||||
let addedNodes = [];
|
||||
let removedNodes = /* @__PURE__ */ new Set();
|
||||
let addedAttributes = /* @__PURE__ */ new Map();
|
||||
let removedAttributes = /* @__PURE__ */ new Map();
|
||||
@@ -909,8 +907,24 @@
|
||||
if (mutations[i].target._x_ignoreMutationObserver)
|
||||
continue;
|
||||
if (mutations[i].type === "childList") {
|
||||
mutations[i].addedNodes.forEach((node) => node.nodeType === 1 && addedNodes.add(node));
|
||||
mutations[i].removedNodes.forEach((node) => node.nodeType === 1 && removedNodes.add(node));
|
||||
mutations[i].removedNodes.forEach((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") {
|
||||
let el = mutations[i].target;
|
||||
@@ -943,29 +957,15 @@
|
||||
onAttributeAddeds.forEach((i) => i(el, attrs));
|
||||
});
|
||||
for (let node of removedNodes) {
|
||||
if (addedNodes.has(node))
|
||||
if (addedNodes.some((i) => i.contains(node)))
|
||||
continue;
|
||||
onElRemoveds.forEach((i) => i(node));
|
||||
}
|
||||
addedNodes.forEach((node) => {
|
||||
node._x_ignoreSelf = true;
|
||||
node._x_ignore = true;
|
||||
});
|
||||
for (let node of addedNodes) {
|
||||
if (removedNodes.has(node))
|
||||
continue;
|
||||
if (!node.isConnected)
|
||||
continue;
|
||||
delete node._x_ignoreSelf;
|
||||
delete node._x_ignore;
|
||||
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;
|
||||
removedNodes = null;
|
||||
addedAttributes = null;
|
||||
@@ -1468,13 +1468,20 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
function interceptInit(callback) {
|
||||
initInterceptors2.push(callback);
|
||||
}
|
||||
var markerDispenser = 1;
|
||||
function initTree(el, walker = walk, intercept = () => {
|
||||
}) {
|
||||
if (findClosest(el, (i) => i._x_ignore))
|
||||
return;
|
||||
deferHandlingDirectives(() => {
|
||||
walker(el, (el2, skip) => {
|
||||
if (el2._x_marker)
|
||||
return;
|
||||
intercept(el2, skip);
|
||||
initInterceptors2.forEach((i) => i(el2, skip));
|
||||
directives(el2, el2.attributes).forEach((handle) => handle());
|
||||
if (!el2._x_ignore)
|
||||
el2._x_marker = markerDispenser++;
|
||||
el2._x_ignore && skip();
|
||||
});
|
||||
});
|
||||
@@ -1483,6 +1490,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
walker(root, (el) => {
|
||||
cleanupElement(el);
|
||||
cleanupAttributes(el);
|
||||
delete el._x_marker;
|
||||
});
|
||||
}
|
||||
function warnAboutMissingPlugins() {
|
||||
@@ -2284,7 +2292,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
get raw() {
|
||||
return raw;
|
||||
},
|
||||
version: "3.14.3",
|
||||
version: "3.14.7",
|
||||
flushAndStopDeferringMutations,
|
||||
dontAutoEvaluateFunctions,
|
||||
disableEffectScheduling,
|
||||
@@ -3131,7 +3139,6 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
placeInDom(clone2, target, modifiers);
|
||||
skipDuringClone(() => {
|
||||
initTree(clone2);
|
||||
clone2._x_ignore = true;
|
||||
})();
|
||||
});
|
||||
el._x_teleportPutBack = () => {
|
||||
@@ -4356,6 +4363,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
"get": "$get",
|
||||
"set": "$set",
|
||||
"call": "$call",
|
||||
"hook": "$hook",
|
||||
"commit": "$commit",
|
||||
"watch": "$watch",
|
||||
"entangle": "$entangle",
|
||||
@@ -4450,6 +4458,16 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
wireProperty("$refresh", (component) => component.$wire.$commit);
|
||||
wireProperty("$commit", (component) => async () => await requestCommit(component));
|
||||
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("$dispatchSelf", (component) => (...params) => dispatchSelf(component, ...params));
|
||||
wireProperty("$dispatchTo", () => (...params) => dispatchTo(...params));
|
||||
@@ -4709,6 +4727,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) {
|
||||
return new DirectiveManager(el);
|
||||
}
|
||||
@@ -4771,7 +4799,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) {
|
||||
Alpine3.directive("collapse", collapse);
|
||||
collapse.inline = (el, { modifiers }) => {
|
||||
@@ -4821,7 +4849,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
start: { height: current + "px" },
|
||||
end: { height: full + "px" }
|
||||
}, () => el._x_isShown = true, () => {
|
||||
if (el.getBoundingClientRect().height == full) {
|
||||
if (Math.abs(el.getBoundingClientRect().height - full) < 1) {
|
||||
el.style.overflow = null;
|
||||
}
|
||||
});
|
||||
@@ -4865,7 +4893,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
}
|
||||
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 candidateSelector = /* @__PURE__ */ candidateSelectors.join(",");
|
||||
var NoElement = typeof Element === "undefined";
|
||||
@@ -5814,7 +5842,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
}
|
||||
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) {
|
||||
let persist = () => {
|
||||
let alias;
|
||||
@@ -5876,7 +5904,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
}
|
||||
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) {
|
||||
Alpine3.directive("intersect", Alpine3.skipDuringClone((el, { value, expression, modifiers }, { evaluateLater: evaluateLater2, cleanup: cleanup2 }) => {
|
||||
let evaluate3 = evaluateLater2(expression);
|
||||
@@ -7633,6 +7661,8 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
|
||||
// js/plugins/navigate/popover.js
|
||||
function packUpPersistedPopovers(persistedEl) {
|
||||
if (!isPopoverSupported())
|
||||
return;
|
||||
persistedEl.querySelectorAll(":popover-open").forEach((el) => {
|
||||
el.setAttribute("data-navigate-popover-open", "");
|
||||
let animations = el.getAnimations();
|
||||
@@ -7651,6 +7681,8 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
});
|
||||
}
|
||||
function unPackPersistedPopovers(persistedEl) {
|
||||
if (!isPopoverSupported())
|
||||
return;
|
||||
persistedEl.querySelectorAll("[data-navigate-popover-open]").forEach((el) => {
|
||||
el.removeAttribute("data-navigate-popover-open");
|
||||
queueMicrotask(() => {
|
||||
@@ -7668,6 +7700,9 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
});
|
||||
});
|
||||
}
|
||||
function isPopoverSupported() {
|
||||
return typeof document.createElement("div").showPopover === "function";
|
||||
}
|
||||
|
||||
// js/plugins/navigate/page.js
|
||||
var oldBodyScriptTagHashes = [];
|
||||
@@ -7736,6 +7771,8 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
child.remove();
|
||||
}
|
||||
for (let child of Array.from(newHead.children)) {
|
||||
if (child.tagName.toLowerCase() === "noscript")
|
||||
continue;
|
||||
document.head.appendChild(child);
|
||||
}
|
||||
return Promise.all(remoteScriptsPromises);
|
||||
@@ -8103,24 +8140,24 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
let search = url.search;
|
||||
if (!search)
|
||||
return false;
|
||||
let data2 = fromQueryString(search);
|
||||
let data2 = fromQueryString(search, key);
|
||||
return Object.keys(data2).includes(key);
|
||||
},
|
||||
get(url, key) {
|
||||
let search = url.search;
|
||||
if (!search)
|
||||
return false;
|
||||
let data2 = fromQueryString(search);
|
||||
let data2 = fromQueryString(search, key);
|
||||
return data2[key];
|
||||
},
|
||||
set(url, key, value) {
|
||||
let data2 = fromQueryString(url.search);
|
||||
let data2 = fromQueryString(url.search, key);
|
||||
data2[key] = stripNulls(unwrap(value));
|
||||
url.search = toQueryString(data2);
|
||||
return url;
|
||||
},
|
||||
remove(url, key) {
|
||||
let data2 = fromQueryString(url.search);
|
||||
let data2 = fromQueryString(url.search, key);
|
||||
delete data2[key];
|
||||
url.search = toQueryString(data2);
|
||||
return url;
|
||||
@@ -8156,7 +8193,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
let entries = buildQueryStringEntries(data2);
|
||||
return Object.entries(entries).map(([key, value]) => `${key}=${value}`).join("&");
|
||||
}
|
||||
function fromQueryString(search) {
|
||||
function fromQueryString(search, queryKey) {
|
||||
search = search.replace("?", "");
|
||||
if (search === "")
|
||||
return {};
|
||||
@@ -8175,10 +8212,12 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
if (typeof value == "undefined")
|
||||
return;
|
||||
value = decodeURIComponent(value.replaceAll("+", "%20"));
|
||||
if (!key.includes("[")) {
|
||||
let decodedKey = decodeURIComponent(key);
|
||||
let shouldBeHandledAsArray = decodedKey.includes("[") && decodedKey.startsWith(queryKey);
|
||||
if (!shouldBeHandledAsArray) {
|
||||
data2[key] = value;
|
||||
} else {
|
||||
let dotNotatedKey = key.replaceAll("[", ".").replaceAll("]", "");
|
||||
let dotNotatedKey = decodedKey.replaceAll("[", ".").replaceAll("]", "");
|
||||
insertDotNotatedValueIntoData(dotNotatedKey, value, data2);
|
||||
}
|
||||
});
|
||||
@@ -8286,6 +8325,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
let holdover = fromKeyHoldovers[toKey];
|
||||
from2.appendChild(holdover);
|
||||
currentFrom = holdover;
|
||||
fromKey = getKey(currentFrom);
|
||||
} else {
|
||||
if (!shouldSkip(adding, currentTo)) {
|
||||
let clone2 = currentTo.cloneNode(true);
|
||||
@@ -8359,6 +8399,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
if (fromKeys[toKey]) {
|
||||
currentFrom.replaceWith(fromKeys[toKey]);
|
||||
currentFrom = fromKeys[toKey];
|
||||
fromKey = getKey(currentFrom);
|
||||
}
|
||||
}
|
||||
if (toKey && fromKey) {
|
||||
@@ -8367,6 +8408,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
fromKeyHoldovers[fromKey] = currentFrom;
|
||||
currentFrom.replaceWith(fromKeyNode);
|
||||
currentFrom = fromKeyNode;
|
||||
fromKey = getKey(currentFrom);
|
||||
} else {
|
||||
fromKeyHoldovers[fromKey] = currentFrom;
|
||||
currentFrom = addNodeBefore(from2, currentTo, currentFrom);
|
||||
@@ -8512,6 +8554,8 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
let fromId = from && from._x_bindings && from._x_bindings.id;
|
||||
if (!fromId)
|
||||
return;
|
||||
if (!to.setAttribute)
|
||||
return;
|
||||
to.setAttribute("id", fromId);
|
||||
to.id = fromId;
|
||||
}
|
||||
@@ -8520,7 +8564,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
}
|
||||
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) {
|
||||
Alpine3.directive("mask", (el, { value, expression }, { effect: effect3, evaluateLater: evaluateLater2, cleanup: cleanup2 }) => {
|
||||
let templateFn = () => expression;
|
||||
@@ -8725,10 +8769,15 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
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);
|
||||
if (component) {
|
||||
trigger2("element.init", { el, component });
|
||||
let directives2 = Array.from(el.getAttributeNames()).filter((name) => matchesForLivewireDirective(name)).map((name) => extractDirective(el, name));
|
||||
directives2.forEach((directive3) => {
|
||||
trigger2("directive.init", { el, component, directive: directive3, cleanup: (callback) => {
|
||||
module_default.onAttributeRemoved(el, directive3.raw, callback);
|
||||
@@ -9466,6 +9515,53 @@ ${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);
|
||||
} else {
|
||||
el.classList.remove(...classes);
|
||||
}
|
||||
};
|
||||
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
|
||||
function toggleBooleanStateDirective(el, directive3, isTruthy, cachedDisplay = null) {
|
||||
isTruthy = directive3.modifiers.includes("remove") ? !isTruthy : isTruthy;
|
||||
@@ -9737,8 +9833,8 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
|
||||
// js/directives/wire-dirty.js
|
||||
var refreshDirtyStatesByComponent = new WeakBag();
|
||||
on2("commit", ({ component, respond }) => {
|
||||
respond(() => {
|
||||
on2("commit", ({ component, succeed }) => {
|
||||
succeed(() => {
|
||||
setTimeout(() => {
|
||||
refreshDirtyStatesByComponent.each(component, (i) => i(false));
|
||||
});
|
||||
|
||||
Vendored
+1
-1
@@ -1,2 +1,2 @@
|
||||
|
||||
{"/livewire.js":"38dc8241"}
|
||||
{"/livewire.js":"02b08710"}
|
||||
|
||||
Reference in New Issue
Block a user