Merge branch 'v8' into develop

This commit is contained in:
Brady Wetherington 2025-02-21 11:15:44 +00:00
commit 38c5f23a52
9 changed files with 1445 additions and 1697 deletions

View file

@ -26,17 +26,19 @@ class SnipeTranslator extends Translator {
public function choice($key, $number, array $replace = [], $locale = null) public function choice($key, $number, array $replace = [], $locale = null)
{ {
$line = $this->get( $line = $this->get(
$key, $replace, $locale = $this->localeForChoice($locale) $key, [], $locale = $this->localeForChoice($key, $locale)
); );
// If the given "number" is actually an array or countable we will simply count the // If the given "number" is actually an array or countable we will simply count the
// number of elements in an instance. This allows developers to pass an array of // number of elements in an instance. This allows developers to pass an array of
// items without having to count it on their end first which gives bad syntax. // items without having to count it on their end first which gives bad syntax.
if (is_array($number) || $number instanceof Countable) { if (is_countable($number)) {
$number = count($number); $number = count($number);
} }
$replace['count'] = $number; if (!isset($replace['count'])) {
$replace['count'] = $number;
}
$underscored_locale = str_replace("-","_",$locale); // OUR CHANGE. $underscored_locale = str_replace("-","_",$locale); // OUR CHANGE.
return $this->makeReplacements( // BELOW - that $underscored_locale is the *ONLY* modified part return $this->makeReplacements( // BELOW - that $underscored_locale is the *ONLY* modified part

View file

@ -14,10 +14,14 @@
{ {
"type": "vcs", "type": "vcs",
"url": "https://github.com/grokability/laravel-scim-server" "url": "https://github.com/grokability/laravel-scim-server"
},
{
"type": "vcs",
"url": "https://github.com/grokability/html"
} }
], ],
"require": { "require": {
"php": "^8.1", "php": "^8.2",
"ext-curl": "*", "ext-curl": "*",
"ext-fileinfo": "*", "ext-fileinfo": "*",
"ext-iconv": "*", "ext-iconv": "*",
@ -25,7 +29,7 @@
"ext-mbstring": "*", "ext-mbstring": "*",
"ext-pdo": "*", "ext-pdo": "*",
"alek13/slack": "^2.0", "alek13/slack": "^2.0",
"arietimmerman/laravel-scim-server": "dev-master", "arietimmerman/laravel-scim-server": "dev-laravel_11_compatibility",
"bacon/bacon-qr-code": "^2.0", "bacon/bacon-qr-code": "^2.0",
"barryvdh/laravel-debugbar": "^3.13", "barryvdh/laravel-debugbar": "^3.13",
"barryvdh/laravel-dompdf": "^2.0", "barryvdh/laravel-dompdf": "^2.0",
@ -40,20 +44,20 @@
"javiereguiluz/easyslugger": "^1.0", "javiereguiluz/easyslugger": "^1.0",
"laravel-notification-channels/google-chat": "^3.0", "laravel-notification-channels/google-chat": "^3.0",
"laravel-notification-channels/microsoft-teams": "^1.2", "laravel-notification-channels/microsoft-teams": "^1.2",
"laravel/framework": "^10.0", "laravel/framework": "^11.0",
"laravel/helpers": "^1.4", "laravel/helpers": "^1.4",
"laravel/passport": "^11.0", "laravel/passport": "^12.0",
"laravel/slack-notification-channel": "^2.3", "laravel/slack-notification-channel": "^3.4",
"laravel/socialite": "^5.6", "laravel/socialite": "^5.6",
"laravel/tinker": "^2.6", "laravel/tinker": "^2.6",
"laravel/ui": "^4.0", "laravel/ui": "^4.0",
"laravelcollective/html": "^6.2", "laravelcollective/html": "6.x-dev",
"league/csv": "^9.7", "league/csv": "^9.7",
"league/flysystem-aws-s3-v3": "^3.0", "league/flysystem-aws-s3-v3": "^3.0",
"livewire/livewire": "^3.5", "livewire/livewire": "^3.5",
"neitanod/forceutf8": "^2.0", "neitanod/forceutf8": "^2.0",
"nesbot/carbon": "^2.32", "nesbot/carbon": "^3.0",
"nunomaduro/collision": "^7.0", "nunomaduro/collision": "^8.1",
"okvpn/clock-lts": "^1.0", "okvpn/clock-lts": "^1.0",
"onelogin/php-saml": "^3.4", "onelogin/php-saml": "^3.4",
"onnov/detect-encoding": "^2.0", "onnov/detect-encoding": "^2.0",
@ -86,8 +90,7 @@
"phpunit/phpunit": "^10.0", "phpunit/phpunit": "^10.0",
"squizlabs/php_codesniffer": "^3.5", "squizlabs/php_codesniffer": "^3.5",
"symfony/css-selector": "^4.4", "symfony/css-selector": "^4.4",
"symfony/dom-crawler": "^4.4", "symfony/dom-crawler": "^4.4"
"vimeo/psalm": "^5.13"
}, },
"extra": { "extra": {
"laravel": { "laravel": {

2586
composer.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1483,7 +1483,7 @@ var require_module_cjs = __commonJS({
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();
@ -1491,8 +1491,24 @@ var require_module_cjs = __commonJS({
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;
@ -1525,29 +1541,15 @@ var require_module_cjs = __commonJS({
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;
@ -2050,13 +2052,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();
}); });
}); });
@ -2065,6 +2074,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() {
@ -2853,7 +2863,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
}); });
return obj; return obj;
} }
var Alpine19 = { var Alpine20 = {
get reactive() { get reactive() {
return reactive; return reactive;
}, },
@ -2866,7 +2876,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
get raw() { get raw() {
return raw; return raw;
}, },
version: "3.14.3", version: "3.14.8",
flushAndStopDeferringMutations, flushAndStopDeferringMutations,
dontAutoEvaluateFunctions, dontAutoEvaluateFunctions,
disableEffectScheduling, disableEffectScheduling,
@ -2919,7 +2929,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
data, data,
bind: bind2 bind: bind2
}; };
var alpine_default = Alpine19; var alpine_default = Alpine20;
var import_reactivity10 = __toESM2(require_reactivity()); var import_reactivity10 = __toESM2(require_reactivity());
magic("nextTick", () => nextTick); magic("nextTick", () => nextTick);
magic("dispatch", (el) => dispatch3.bind(dispatch3, el)); magic("dispatch", (el) => dispatch3.bind(dispatch3, el));
@ -3066,7 +3076,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 = () => {
@ -3822,9 +3831,9 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
} }
}); });
// ../../../../usr/local/lib/node_modules/@alpinejs/collapse/dist/module.cjs.js // ../alpine/packages/collapse/dist/module.cjs.js
var require_module_cjs2 = __commonJS({ var require_module_cjs2 = __commonJS({
"../../../../usr/local/lib/node_modules/@alpinejs/collapse/dist/module.cjs.js"(exports, module) { "../alpine/packages/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;
@ -3848,8 +3857,8 @@ var require_module_cjs2 = __commonJS({
default: () => module_default default: () => module_default
}); });
module.exports = __toCommonJS(module_exports); module.exports = __toCommonJS(module_exports);
function src_default(Alpine19) { function src_default(Alpine20) {
Alpine19.directive("collapse", collapse3); Alpine20.directive("collapse", collapse3);
collapse3.inline = (el, { modifiers }) => { collapse3.inline = (el, { modifiers }) => {
if (!modifiers.includes("min")) if (!modifiers.includes("min"))
return; return;
@ -3869,7 +3878,7 @@ var require_module_cjs2 = __commonJS({
if (!el._x_isShown) if (!el._x_isShown)
el.style.overflow = "hidden"; el.style.overflow = "hidden";
let setFunction = (el2, styles) => { let setFunction = (el2, styles) => {
let revertFunction = Alpine19.setStyles(el2, styles); let revertFunction = Alpine20.setStyles(el2, styles);
return styles.height ? () => { return styles.height ? () => {
} : revertFunction; } : revertFunction;
}; };
@ -3892,12 +3901,12 @@ var require_module_cjs2 = __commonJS({
if (current === full) { if (current === full) {
current = floor; current = floor;
} }
Alpine19.transition(el, Alpine19.setStyles, { Alpine20.transition(el, Alpine20.setStyles, {
during: transitionStyles, during: transitionStyles,
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;
} }
}); });
@ -3906,7 +3915,7 @@ var require_module_cjs2 = __commonJS({
}, after = () => { }, after = () => {
}) { }) {
let full = el.getBoundingClientRect().height; let full = el.getBoundingClientRect().height;
Alpine19.transition(el, setFunction, { Alpine20.transition(el, setFunction, {
during: transitionStyles, during: transitionStyles,
start: { height: full + "px" }, start: { height: full + "px" },
end: { height: floor + "px" } end: { height: floor + "px" }
@ -3943,9 +3952,9 @@ var require_module_cjs2 = __commonJS({
} }
}); });
// ../../../../usr/local/lib/node_modules/@alpinejs/focus/dist/module.cjs.js // ../alpine/packages/focus/dist/module.cjs.js
var require_module_cjs3 = __commonJS({ var require_module_cjs3 = __commonJS({
"../../../../usr/local/lib/node_modules/@alpinejs/focus/dist/module.cjs.js"(exports, module) { "../alpine/packages/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;
@ -4742,14 +4751,14 @@ var require_module_cjs3 = __commonJS({
module.exports = __toCommonJS(module_exports); module.exports = __toCommonJS(module_exports);
var import_focus_trap = __toESM2(require_focus_trap()); var import_focus_trap = __toESM2(require_focus_trap());
var import_tabbable = __toESM2(require_dist()); var import_tabbable = __toESM2(require_dist());
function src_default(Alpine19) { function src_default(Alpine20) {
let lastFocused; let lastFocused;
let currentFocused; let currentFocused;
window.addEventListener("focusin", () => { window.addEventListener("focusin", () => {
lastFocused = currentFocused; lastFocused = currentFocused;
currentFocused = document.activeElement; currentFocused = document.activeElement;
}); });
Alpine19.magic("focus", (el) => { Alpine20.magic("focus", (el) => {
let within = el; let within = el;
return { return {
__noscroll: false, __noscroll: false,
@ -4853,7 +4862,7 @@ var require_module_cjs3 = __commonJS({
} }
}; };
}); });
Alpine19.directive("trap", Alpine19.skipDuringClone((el, { expression, modifiers }, { effect, evaluateLater, cleanup }) => { Alpine20.directive("trap", Alpine20.skipDuringClone((el, { expression, modifiers }, { effect, evaluateLater, cleanup }) => {
let evaluator = evaluateLater(expression); let evaluator = evaluateLater(expression);
let oldValue = false; let oldValue = false;
let options = { let options = {
@ -4945,9 +4954,9 @@ var require_module_cjs3 = __commonJS({
} }
}); });
// ../../../../usr/local/lib/node_modules/@alpinejs/persist/dist/module.cjs.js // ../alpine/packages/persist/dist/module.cjs.js
var require_module_cjs4 = __commonJS({ var require_module_cjs4 = __commonJS({
"../../../../usr/local/lib/node_modules/@alpinejs/persist/dist/module.cjs.js"(exports, module) { "../alpine/packages/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;
@ -4971,7 +4980,7 @@ var require_module_cjs4 = __commonJS({
persist: () => src_default persist: () => src_default
}); });
module.exports = __toCommonJS(module_exports); module.exports = __toCommonJS(module_exports);
function src_default(Alpine19) { function src_default(Alpine20) {
let persist3 = () => { let persist3 = () => {
let alias; let alias;
let storage; let storage;
@ -4986,11 +4995,11 @@ var require_module_cjs4 = __commonJS({
setItem: dummy.set.bind(dummy) setItem: dummy.set.bind(dummy)
}; };
} }
return Alpine19.interceptor((initialValue, getter, setter, path, key) => { return Alpine20.interceptor((initialValue, getter, setter, path, key) => {
let lookup = alias || `_x_${path}`; let lookup = alias || `_x_${path}`;
let initial = storageHas(lookup, storage) ? storageGet(lookup, storage) : initialValue; let initial = storageHas(lookup, storage) ? storageGet(lookup, storage) : initialValue;
setter(initial); setter(initial);
Alpine19.effect(() => { Alpine20.effect(() => {
let value = getter(); let value = getter();
storageSet(lookup, value, storage); storageSet(lookup, value, storage);
setter(value); setter(value);
@ -5006,12 +5015,12 @@ var require_module_cjs4 = __commonJS({
}; };
}); });
}; };
Object.defineProperty(Alpine19, "$persist", { get: () => persist3() }); Object.defineProperty(Alpine20, "$persist", { get: () => persist3() });
Alpine19.magic("persist", persist3); Alpine20.magic("persist", persist3);
Alpine19.persist = (key, { get, set }, storage = localStorage) => { Alpine20.persist = (key, { get, set }, storage = localStorage) => {
let initial = storageHas(key, storage) ? storageGet(key, storage) : get(); let initial = storageHas(key, storage) ? storageGet(key, storage) : get();
set(initial); set(initial);
Alpine19.effect(() => { Alpine20.effect(() => {
let value = get(); let value = get();
storageSet(key, value, storage); storageSet(key, value, storage);
set(value); set(value);
@ -5034,9 +5043,9 @@ var require_module_cjs4 = __commonJS({
} }
}); });
// ../../../../usr/local/lib/node_modules/@alpinejs/intersect/dist/module.cjs.js // ../alpine/packages/intersect/dist/module.cjs.js
var require_module_cjs5 = __commonJS({ var require_module_cjs5 = __commonJS({
"../../../../usr/local/lib/node_modules/@alpinejs/intersect/dist/module.cjs.js"(exports, module) { "../alpine/packages/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;
@ -5060,8 +5069,8 @@ var require_module_cjs5 = __commonJS({
intersect: () => src_default intersect: () => src_default
}); });
module.exports = __toCommonJS(module_exports); module.exports = __toCommonJS(module_exports);
function src_default(Alpine19) { function src_default(Alpine20) {
Alpine19.directive("intersect", Alpine19.skipDuringClone((el, { value, expression, modifiers }, { evaluateLater, cleanup }) => { Alpine20.directive("intersect", Alpine20.skipDuringClone((el, { value, expression, modifiers }, { evaluateLater, cleanup }) => {
let evaluate = evaluateLater(expression); let evaluate = evaluateLater(expression);
let options = { let options = {
rootMargin: getRootMargin(modifiers), rootMargin: getRootMargin(modifiers),
@ -5142,8 +5151,8 @@ var require_module_cjs6 = __commonJS({
resize: () => src_default resize: () => src_default
}); });
module.exports = __toCommonJS(module_exports); module.exports = __toCommonJS(module_exports);
function src_default(Alpine19) { function src_default(Alpine20) {
Alpine19.directive("resize", Alpine19.skipDuringClone((el, { value, expression, modifiers }, { evaluateLater, cleanup }) => { Alpine20.directive("resize", Alpine20.skipDuringClone((el, { value, expression, modifiers }, { evaluateLater, cleanup }) => {
let evaluator = evaluateLater(expression); let evaluator = evaluateLater(expression);
let evaluate = (width, height) => { let evaluate = (width, height) => {
evaluator(() => { evaluator(() => {
@ -6387,20 +6396,20 @@ var require_module_cjs7 = __commonJS({
platform: platformWithCache platform: platformWithCache
}); });
}; };
function src_default(Alpine19) { function src_default(Alpine20) {
Alpine19.magic("anchor", (el) => { Alpine20.magic("anchor", (el) => {
if (!el._x_anchor) if (!el._x_anchor)
throw "Alpine: No x-anchor directive found on element using $anchor..."; throw "Alpine: No x-anchor directive found on element using $anchor...";
return el._x_anchor; return el._x_anchor;
}); });
Alpine19.interceptClone((from, to) => { Alpine20.interceptClone((from, to) => {
if (from && from._x_anchor && !to._x_anchor) { if (from && from._x_anchor && !to._x_anchor) {
to._x_anchor = from._x_anchor; to._x_anchor = from._x_anchor;
} }
}); });
Alpine19.directive("anchor", Alpine19.skipDuringClone((el, { expression, modifiers, value }, { cleanup, evaluate: evaluate2 }) => { Alpine20.directive("anchor", Alpine20.skipDuringClone((el, { expression, modifiers, value }, { cleanup, evaluate: evaluate2 }) => {
let { placement, offsetValue, unstyled } = getOptions(modifiers); let { placement, offsetValue, unstyled } = getOptions(modifiers);
el._x_anchor = Alpine19.reactive({ x: 0, y: 0 }); el._x_anchor = Alpine20.reactive({ x: 0, y: 0 });
let reference = evaluate2(expression); let reference = evaluate2(expression);
if (!reference) if (!reference)
throw "Alpine: no element provided to x-anchor..."; throw "Alpine: no element provided to x-anchor...";
@ -6852,6 +6861,7 @@ var require_module_cjs8 = __commonJS({
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 clone = currentTo.cloneNode(true); let clone = currentTo.cloneNode(true);
@ -6925,6 +6935,7 @@ var require_module_cjs8 = __commonJS({
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) {
@ -6933,6 +6944,7 @@ var require_module_cjs8 = __commonJS({
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);
@ -7078,19 +7090,21 @@ var require_module_cjs8 = __commonJS({
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;
} }
function src_default(Alpine19) { function src_default(Alpine20) {
Alpine19.morph = morph3; Alpine20.morph = morph3;
} }
var module_default = src_default; var module_default = src_default;
} }
}); });
// ../../../../usr/local/lib/node_modules/@alpinejs/mask/dist/module.cjs.js // ../alpine/packages/mask/dist/module.cjs.js
var require_module_cjs9 = __commonJS({ var require_module_cjs9 = __commonJS({
"../../../../usr/local/lib/node_modules/@alpinejs/mask/dist/module.cjs.js"(exports, module) { "../alpine/packages/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;
@ -7115,8 +7129,8 @@ var require_module_cjs9 = __commonJS({
stripDown: () => stripDown stripDown: () => stripDown
}); });
module.exports = __toCommonJS(module_exports); module.exports = __toCommonJS(module_exports);
function src_default(Alpine19) { function src_default(Alpine20) {
Alpine19.directive("mask", (el, { value, expression }, { effect, evaluateLater, cleanup }) => { Alpine20.directive("mask", (el, { value, expression }, { effect, evaluateLater, cleanup }) => {
let templateFn = () => expression; let templateFn = () => expression;
let lastInputValue = ""; let lastInputValue = "";
queueMicrotask(() => { queueMicrotask(() => {
@ -7125,7 +7139,7 @@ var require_module_cjs9 = __commonJS({
effect(() => { effect(() => {
templateFn = (input) => { templateFn = (input) => {
let result; let result;
Alpine19.dontAutoEvaluateFunctions(() => { Alpine20.dontAutoEvaluateFunctions(() => {
evaluator((value2) => { evaluator((value2) => {
result = typeof value2 === "function" ? value2(input) : value2; result = typeof value2 === "function" ? value2(input) : value2;
}, { scope: { }, { scope: {
@ -7140,8 +7154,13 @@ var require_module_cjs9 = __commonJS({
} 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();
cleanup(() => { cleanup(() => {
@ -7356,9 +7375,7 @@ function dataGet(object, key) {
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) {
@ -7485,6 +7502,9 @@ function handleFileUpload(el, property, component, cleanup) {
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;
@ -8171,6 +8191,7 @@ var aliases = {
"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",
@ -8265,6 +8286,16 @@ wireProperty("$watch", (component) => (path, callback) => {
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 = on(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) => dispatch2(component, ...params)); wireProperty("$dispatch", (component) => (...params) => dispatch2(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));
@ -8524,6 +8555,16 @@ function directive(name, callback) {
} }
}); });
} }
function globalDirective(name, callback) {
if (customDirectiveNames.has(name))
return;
customDirectiveNames.add(name);
on("directive.global.init", ({ el, directive: directive2, cleanup }) => {
if (directive2.value === name) {
callback({ el, directive: directive2, cleanup });
}
});
}
function getDirectives(el) { function getDirectives(el) {
return new DirectiveManager(el); return new DirectiveManager(el);
} }
@ -9019,6 +9060,8 @@ function injectStyles() {
// 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();
@ -9037,6 +9080,8 @@ function packUpPersistedPopovers(persistedEl) {
}); });
} }
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(() => {
@ -9054,6 +9099,9 @@ function unPackPersistedPopovers(persistedEl) {
}); });
}); });
} }
function isPopoverSupported() {
return typeof document.createElement("div").showPopover === "function";
}
// js/plugins/navigate/page.js // js/plugins/navigate/page.js
var oldBodyScriptTagHashes = []; var oldBodyScriptTagHashes = [];
@ -9122,6 +9170,8 @@ function mergeNewHead(newHead) {
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);
@ -9190,8 +9240,8 @@ var enablePersist = true;
var showProgressBar = true; var showProgressBar = true;
var restoreScroll = true; var restoreScroll = true;
var autofocus = false; var autofocus = false;
function navigate_default(Alpine19) { function navigate_default(Alpine20) {
Alpine19.navigate = (url) => { Alpine20.navigate = (url) => {
let destination = createUrlObjectFromString(url); let destination = createUrlObjectFromString(url);
let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", { let prevented = fireEventForOtherLibrariesToHookInto("alpine:navigate", {
url: destination, url: destination,
@ -9202,11 +9252,11 @@ function navigate_default(Alpine19) {
return; return;
navigateTo(destination); navigateTo(destination);
}; };
Alpine19.navigate.disableProgressBar = () => { Alpine20.navigate.disableProgressBar = () => {
showProgressBar = false; showProgressBar = false;
}; };
Alpine19.addInitSelector(() => `[${Alpine19.prefixed("navigate")}]`); Alpine20.addInitSelector(() => `[${Alpine20.prefixed("navigate")}]`);
Alpine19.directive("navigate", (el, { modifiers }) => { Alpine20.directive("navigate", (el, { modifiers }) => {
let shouldPrefetchOnHover = modifiers.includes("hover"); let shouldPrefetchOnHover = modifiers.includes("hover");
shouldPrefetchOnHover && whenThisLinkIsHoveredFor(el, 60, () => { shouldPrefetchOnHover && whenThisLinkIsHoveredFor(el, 60, () => {
let destination = extractDestinationFromLink(el); let destination = extractDestinationFromLink(el);
@ -9243,7 +9293,7 @@ function navigate_default(Alpine19) {
showProgressBar && finishAndHideProgressBar(); showProgressBar && finishAndHideProgressBar();
cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement(); cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement();
updateCurrentPageHtmlInHistoryStateForLaterBackButtonClicks(); updateCurrentPageHtmlInHistoryStateForLaterBackButtonClicks();
preventAlpineFromPickingUpDomChanges(Alpine19, (andAfterAllThis) => { preventAlpineFromPickingUpDomChanges(Alpine20, (andAfterAllThis) => {
enablePersist && storePersistantElementsForLater((persistedEl) => { enablePersist && storePersistantElementsForLater((persistedEl) => {
packUpPersistedTeleports(persistedEl); packUpPersistedTeleports(persistedEl);
packUpPersistedPopovers(persistedEl); packUpPersistedPopovers(persistedEl);
@ -9265,7 +9315,7 @@ function navigate_default(Alpine19) {
setTimeout(() => { setTimeout(() => {
autofocus && autofocusElementsWithTheAutofocusAttribute(); autofocus && autofocusElementsWithTheAutofocusAttribute();
}); });
nowInitializeAlpineOnTheNewPage(Alpine19); nowInitializeAlpineOnTheNewPage(Alpine20);
fireEventForOtherLibrariesToHookInto("alpine:navigated"); fireEventForOtherLibrariesToHookInto("alpine:navigated");
}); });
}); });
@ -9298,7 +9348,7 @@ function navigate_default(Alpine19) {
storeScrollInformationInHtmlBeforeNavigatingAway(); storeScrollInformationInHtmlBeforeNavigatingAway();
fireEventForOtherLibrariesToHookInto("alpine:navigating"); fireEventForOtherLibrariesToHookInto("alpine:navigating");
updateCurrentPageHtmlInSnapshotCacheForLaterBackButtonClicks(currentPageUrl, currentPageKey); updateCurrentPageHtmlInSnapshotCacheForLaterBackButtonClicks(currentPageUrl, currentPageKey);
preventAlpineFromPickingUpDomChanges(Alpine19, (andAfterAllThis) => { preventAlpineFromPickingUpDomChanges(Alpine20, (andAfterAllThis) => {
enablePersist && storePersistantElementsForLater((persistedEl) => { enablePersist && storePersistantElementsForLater((persistedEl) => {
packUpPersistedTeleports(persistedEl); packUpPersistedTeleports(persistedEl);
packUpPersistedPopovers(persistedEl); packUpPersistedPopovers(persistedEl);
@ -9313,7 +9363,7 @@ function navigate_default(Alpine19) {
restoreScrollPositionOrScrollToTop(); restoreScrollPositionOrScrollToTop();
andAfterAllThis(() => { andAfterAllThis(() => {
autofocus && autofocusElementsWithTheAutofocusAttribute(); autofocus && autofocusElementsWithTheAutofocusAttribute();
nowInitializeAlpineOnTheNewPage(Alpine19); nowInitializeAlpineOnTheNewPage(Alpine20);
fireEventForOtherLibrariesToHookInto("alpine:navigated"); fireEventForOtherLibrariesToHookInto("alpine:navigated");
}); });
}); });
@ -9328,10 +9378,10 @@ function fetchHtmlOrUsePrefetchedHtml(fromDestination, callback) {
fetchHtml(fromDestination, callback); fetchHtml(fromDestination, callback);
}); });
} }
function preventAlpineFromPickingUpDomChanges(Alpine19, callback) { function preventAlpineFromPickingUpDomChanges(Alpine20, callback) {
Alpine19.stopObservingMutations(); Alpine20.stopObservingMutations();
callback((afterAllThis) => { callback((afterAllThis) => {
Alpine19.startObservingMutations(); Alpine20.startObservingMutations();
queueMicrotask(() => { queueMicrotask(() => {
afterAllThis(); afterAllThis();
}); });
@ -9346,8 +9396,8 @@ function fireEventForOtherLibrariesToHookInto(name, detail) {
document.dispatchEvent(event); document.dispatchEvent(event);
return event.defaultPrevented; return event.defaultPrevented;
} }
function nowInitializeAlpineOnTheNewPage(Alpine19) { function nowInitializeAlpineOnTheNewPage(Alpine20) {
Alpine19.initTree(document.body, void 0, (el, skip) => { Alpine20.initTree(document.body, void 0, (el, skip) => {
if (el._x_wasPersisted) if (el._x_wasPersisted)
skip(); skip();
}); });
@ -9370,8 +9420,8 @@ function cleanupAlpineElementsOnThePageThatArentInsideAPersistedElement() {
} }
// js/plugins/history/index.js // js/plugins/history/index.js
function history2(Alpine19) { function history2(Alpine20) {
Alpine19.magic("queryString", (el, { interceptor }) => { Alpine20.magic("queryString", (el, { interceptor }) => {
let alias; let alias;
let alwaysShow = false; let alwaysShow = false;
let usePush = false; let usePush = false;
@ -9380,9 +9430,9 @@ function history2(Alpine19) {
let { initial, replace: replace2, push: push2, pop } = track(queryKey, initialSeedValue, alwaysShow); let { initial, replace: replace2, push: push2, pop } = track(queryKey, initialSeedValue, alwaysShow);
setter(initial); setter(initial);
if (!usePush) { if (!usePush) {
Alpine19.effect(() => replace2(getter())); Alpine20.effect(() => replace2(getter()));
} else { } else {
Alpine19.effect(() => push2(getter())); Alpine20.effect(() => push2(getter()));
pop(async (newValue) => { pop(async (newValue) => {
setter(newValue); setter(newValue);
let tillTheEndOfTheMicrotaskQueue = () => Promise.resolve(); let tillTheEndOfTheMicrotaskQueue = () => Promise.resolve();
@ -9405,7 +9455,7 @@ function history2(Alpine19) {
}; };
}); });
}); });
Alpine19.history = { track }; Alpine20.history = { track };
} }
function track(name, initialSeedValue, alwaysShow = false, except = null) { function track(name, initialSeedValue, alwaysShow = false, except = null) {
let { has, get, set, remove } = queryStringUtils(); let { has, get, set, remove } = queryStringUtils();
@ -9489,24 +9539,24 @@ function queryStringUtils() {
let search = url.search; let search = url.search;
if (!search) if (!search)
return false; return false;
let data = fromQueryString(search); let data = fromQueryString(search, key);
return Object.keys(data).includes(key); return Object.keys(data).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 data = fromQueryString(search); let data = fromQueryString(search, key);
return data[key]; return data[key];
}, },
set(url, key, value) { set(url, key, value) {
let data = fromQueryString(url.search); let data = fromQueryString(url.search, key);
data[key] = stripNulls(unwrap(value)); data[key] = stripNulls(unwrap(value));
url.search = toQueryString(data); url.search = toQueryString(data);
return url; return url;
}, },
remove(url, key) { remove(url, key) {
let data = fromQueryString(url.search); let data = fromQueryString(url.search, key);
delete data[key]; delete data[key];
url.search = toQueryString(data); url.search = toQueryString(data);
return url; return url;
@ -9542,7 +9592,7 @@ function toQueryString(data) {
let entries = buildQueryStringEntries(data); let entries = buildQueryStringEntries(data);
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 {};
@ -9561,10 +9611,12 @@ function fromQueryString(search) {
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) {
data[key] = value; data[key] = value;
} else { } else {
let dotNotatedKey = key.replaceAll("[", ".").replaceAll("]", ""); let dotNotatedKey = decodedKey.replaceAll("[", ".").replaceAll("]", "");
insertDotNotatedValueIntoData(dotNotatedKey, value, data); insertDotNotatedValueIntoData(dotNotatedKey, value, data);
} }
}); });
@ -9614,10 +9666,15 @@ function start() {
destroyComponent(component2.id); destroyComponent(component2.id);
}); });
} }
let directives = Array.from(el.getAttributeNames()).filter((name) => matchesForLivewireDirective(name)).map((name) => extractDirective(el, name));
directives.forEach((directive2) => {
trigger("directive.global.init", { el, directive: directive2, cleanup: (callback) => {
import_alpinejs5.default.onAttributeRemoved(el, directive2.raw, callback);
} });
});
let component = closestComponent(el, false); let component = closestComponent(el, false);
if (component) { if (component) {
trigger("element.init", { el, component }); trigger("element.init", { el, component });
let directives = Array.from(el.getAttributeNames()).filter((name) => matchesForLivewireDirective(name)).map((name) => extractDirective(el, name));
directives.forEach((directive2) => { directives.forEach((directive2) => {
trigger("directive.init", { el, component, directive: directive2, cleanup: (callback) => { trigger("directive.init", { el, component, directive: directive2, cleanup: (callback) => {
import_alpinejs5.default.onAttributeRemoved(el, directive2.raw, callback); import_alpinejs5.default.onAttributeRemoved(el, directive2.raw, callback);
@ -9640,7 +9697,7 @@ function ensureLivewireScriptIsntMisplaced() {
} }
// js/index.js // js/index.js
var import_alpinejs17 = __toESM(require_module_cjs()); var import_alpinejs18 = __toESM(require_module_cjs());
// js/features/supportListeners.js // js/features/supportListeners.js
on("effect", ({ component, effects }) => { on("effect", ({ component, effects }) => {
@ -10366,6 +10423,54 @@ directive("confirm", ({ el, directive: directive2 }) => {
}; };
}); });
// js/directives/wire-current.js
var import_alpinejs14 = __toESM(require_module_cjs());
import_alpinejs14.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: directive2, cleanup }) => {
let expression = directive2.expression;
let options = {
exact: directive2.modifiers.includes("exact"),
strict: directive2.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);
cleanup(() => 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, directive2, isTruthy, cachedDisplay = null) { function toggleBooleanStateDirective(el, directive2, isTruthy, cachedDisplay = null) {
isTruthy = directive2.modifiers.includes("remove") ? !isTruthy : isTruthy; isTruthy = directive2.modifiers.includes("remove") ? !isTruthy : isTruthy;
@ -10637,8 +10742,8 @@ directive("ignore", ({ el, directive: directive2 }) => {
// js/directives/wire-dirty.js // js/directives/wire-dirty.js
var refreshDirtyStatesByComponent = new WeakBag(); var refreshDirtyStatesByComponent = new WeakBag();
on("commit", ({ component, respond }) => { on("commit", ({ component, succeed }) => {
respond(() => { succeed(() => {
setTimeout(() => { setTimeout(() => {
refreshDirtyStatesByComponent.each(component, (i) => i(false)); refreshDirtyStatesByComponent.each(component, (i) => i(false));
}); });
@ -10685,7 +10790,7 @@ function dirtyTargets(el) {
} }
// js/directives/wire-model.js // js/directives/wire-model.js
var import_alpinejs14 = __toESM(require_module_cjs()); var import_alpinejs15 = __toESM(require_module_cjs());
directive("model", ({ el, directive: directive2, component, cleanup }) => { directive("model", ({ el, directive: directive2, component, cleanup }) => {
let { expression, modifiers } = directive2; let { expression, modifiers } = directive2;
if (!expression) { if (!expression) {
@ -10703,7 +10808,7 @@ directive("model", ({ el, directive: directive2, component, cleanup }) => {
let isDebounced = modifiers.includes("debounce"); let isDebounced = modifiers.includes("debounce");
let update = expression.startsWith("$parent") ? () => component.$wire.$parent.$commit() : () => component.$wire.$commit(); let update = expression.startsWith("$parent") ? () => component.$wire.$parent.$commit() : () => component.$wire.$commit();
let debouncedUpdate = isTextInput(el) && !isDebounced && isLive ? debounce(update, 150) : update; let debouncedUpdate = isTextInput(el) && !isDebounced && isLive ? debounce(update, 150) : update;
import_alpinejs14.default.bind(el, { import_alpinejs15.default.bind(el, {
["@change"]() { ["@change"]() {
isLazy && update(); isLazy && update();
}, },
@ -10759,14 +10864,14 @@ function debounce(func, wait) {
} }
// js/directives/wire-init.js // js/directives/wire-init.js
var import_alpinejs15 = __toESM(require_module_cjs()); var import_alpinejs16 = __toESM(require_module_cjs());
directive("init", ({ el, directive: directive2 }) => { directive("init", ({ el, directive: directive2 }) => {
let fullMethod = directive2.expression ?? "$refresh"; let fullMethod = directive2.expression ?? "$refresh";
import_alpinejs15.default.evaluate(el, `$wire.${fullMethod}`); import_alpinejs16.default.evaluate(el, `$wire.${fullMethod}`);
}); });
// js/directives/wire-poll.js // js/directives/wire-poll.js
var import_alpinejs16 = __toESM(require_module_cjs()); var import_alpinejs17 = __toESM(require_module_cjs());
directive("poll", ({ el, directive: directive2 }) => { directive("poll", ({ el, directive: directive2 }) => {
let interval = extractDurationFrom(directive2.modifiers, 2e3); let interval = extractDurationFrom(directive2.modifiers, 2e3);
let { start: start2, pauseWhile, throttleWhile, stopWhen } = poll(() => { let { start: start2, pauseWhile, throttleWhile, stopWhen } = poll(() => {
@ -10780,7 +10885,7 @@ directive("poll", ({ el, directive: directive2 }) => {
stopWhen(() => theElementIsDisconnected(el)); stopWhen(() => theElementIsDisconnected(el));
}); });
function triggerComponentRequest(el, directive2) { function triggerComponentRequest(el, directive2) {
import_alpinejs16.default.evaluate(el, directive2.expression ? "$wire." + directive2.expression : "$wire.$commit()"); import_alpinejs17.default.evaluate(el, directive2.expression ? "$wire." + directive2.expression : "$wire.$commit()");
} }
function poll(callback, interval = 2e3) { function poll(callback, interval = 2e3) {
let pauseConditions = []; let pauseConditions = [];
@ -10883,7 +10988,7 @@ var Livewire2 = {
dispatch: dispatchGlobal, dispatch: dispatchGlobal,
on: on2, on: on2,
get navigate() { get navigate() {
return import_alpinejs17.default.navigate; return import_alpinejs18.default.navigate;
} }
}; };
var warnAboutMultipleInstancesOf = (entity) => console.warn(`Detected multiple instances of ${entity} running`); var warnAboutMultipleInstancesOf = (entity) => console.warn(`Detected multiple instances of ${entity} running`);
@ -10892,7 +10997,7 @@ if (window.Livewire)
if (window.Alpine) if (window.Alpine)
warnAboutMultipleInstancesOf("Alpine"); warnAboutMultipleInstancesOf("Alpine");
window.Livewire = Livewire2; window.Livewire = Livewire2;
window.Alpine = import_alpinejs17.default; window.Alpine = import_alpinejs18.default;
if (window.livewireScriptConfig === void 0) { if (window.livewireScriptConfig === void 0) {
window.Alpine.__fromLivewire = true; window.Alpine.__fromLivewire = true;
document.addEventListener("DOMContentLoaded", () => { document.addEventListener("DOMContentLoaded", () => {
@ -10902,7 +11007,7 @@ if (window.livewireScriptConfig === void 0) {
Livewire2.start(); Livewire2.start();
}); });
} }
var export_Alpine = import_alpinejs17.default; var export_Alpine = import_alpinejs18.default;
export { export {
export_Alpine as Alpine, export_Alpine as Alpine,
Livewire2 as Livewire Livewire2 as Livewire

File diff suppressed because one or more lines are too long

View file

@ -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.8",
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 = () => {
@ -4356,6 +4366,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
"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",
@ -4450,6 +4461,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));
@ -4709,6 +4730,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 +4802,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 +4852,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 +4896,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 +5845,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 +5907,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 +7664,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 +7684,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 +7703,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 = [];
@ -7736,6 +7774,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);
@ -8103,24 +8143,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 +8196,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 +8215,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);
} }
}); });
@ -8286,6 +8328,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 +8402,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 +8411,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);
@ -8512,6 +8557,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 +8567,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 +8593,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 +8777,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);
@ -9466,6 +9523,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 // 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;
@ -9737,8 +9841,8 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
// 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, succeed }) => {
respond(() => { succeed(() => {
setTimeout(() => { setTimeout(() => {
refreshDirtyStatesByComponent.each(component, (i) => i(false)); refreshDirtyStatesByComponent.each(component, (i) => i(false));
}); });

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":"38dc8241"} {"/livewire.js":"951e6947"}