mirror of
https://github.com/alexjustesen/speedtest-tracker.git
synced 2026-06-23 07:30:09 +00:00
Release v1.11.1 (#2485)
Co-authored-by: Alex Justesen <1144087+alexjustesen@users.noreply.github.com>
This commit is contained in:
@@ -44,15 +44,11 @@ class ResultTable
|
||||
|
||||
TextColumn::make('data.interface.externalIp')
|
||||
->label(__('results.ip_address'))
|
||||
->toggleable(isToggledHiddenByDefault: true)
|
||||
->sortable(query: function (Builder $query, string $direction): Builder {
|
||||
return $query->orderBy('data->interface->externalIp', $direction);
|
||||
}),
|
||||
->toggleable(isToggledHiddenByDefault: true),
|
||||
|
||||
TextColumn::make('service')
|
||||
->label(__('results.service'))
|
||||
->toggleable(isToggledHiddenByDefault: true)
|
||||
->sortable(),
|
||||
->toggleable(isToggledHiddenByDefault: true),
|
||||
|
||||
TextColumn::make('data.server.id')
|
||||
->label(__('results.server_id'))
|
||||
|
||||
+15
-15
@@ -23,31 +23,31 @@
|
||||
"geerlingguy/ping": "^1.2.1",
|
||||
"influxdata/influxdb-client-php": "^3.8",
|
||||
"laravel-notification-channels/telegram": "^6.0",
|
||||
"laravel/framework": "^12.38.1",
|
||||
"laravel/prompts": "^0.3.7",
|
||||
"laravel/sanctum": "^4.2.0",
|
||||
"livewire/livewire": "^3.6.4",
|
||||
"laravel/framework": "^12.41.1",
|
||||
"laravel/prompts": "^0.3.8",
|
||||
"laravel/sanctum": "^4.2.1",
|
||||
"livewire/livewire": "^3.7.1",
|
||||
"lorisleiva/laravel-actions": "^2.9.1",
|
||||
"maennchen/zipstream-php": "^2.4",
|
||||
"promphp/prometheus_client_php": "^2.14",
|
||||
"saloonphp/laravel-plugin": "^3.0",
|
||||
"promphp/prometheus_client_php": "^2.14.1",
|
||||
"saloonphp/laravel-plugin": "^3.7",
|
||||
"secondnetwork/blade-tabler-icons": "^3.35.0",
|
||||
"spatie/laravel-json-api-paginate": "^1.16.3",
|
||||
"spatie/laravel-query-builder": "^6.3.6",
|
||||
"spatie/laravel-settings": "^3.5.0",
|
||||
"spatie/laravel-settings": "^3.6.0",
|
||||
"spatie/laravel-webhook-server": "^3.8.3",
|
||||
"zircote/swagger-php": "^5.7.0"
|
||||
"zircote/swagger-php": "^5.7.6"
|
||||
},
|
||||
"require-dev": {
|
||||
"fakerphp/faker": "^1.24.1",
|
||||
"laravel/boost": "^1.8",
|
||||
"laravel/pail": "^1.2.3",
|
||||
"laravel/pint": "^1.25.1",
|
||||
"laravel/sail": "^1.48.0",
|
||||
"laravel/telescope": "^5.15.0",
|
||||
"laravel/tinker": "^2.10.1",
|
||||
"laravel/boost": "^1.8.3",
|
||||
"laravel/pail": "^1.2.4",
|
||||
"laravel/pint": "^1.26.0",
|
||||
"laravel/sail": "^1.50.0",
|
||||
"laravel/telescope": "^5.15.1",
|
||||
"laravel/tinker": "^2.10.2",
|
||||
"mockery/mockery": "^1.6.12",
|
||||
"nunomaduro/collision": "^8.8.2",
|
||||
"nunomaduro/collision": "^8.8.3",
|
||||
"pestphp/pest": "^3.8.4",
|
||||
"pestphp/pest-plugin-laravel": "^3.2",
|
||||
"spatie/laravel-ignition": "^2.9.1"
|
||||
|
||||
Generated
+306
-304
File diff suppressed because it is too large
Load Diff
@@ -6,9 +6,9 @@ return [
|
||||
/**
|
||||
* General settings.
|
||||
*/
|
||||
'build_date' => Carbon::parse('2025-12-03'),
|
||||
'build_date' => Carbon::parse('2025-12-04'),
|
||||
|
||||
'build_version' => 'v1.11.0',
|
||||
'build_version' => 'v1.11.1',
|
||||
|
||||
'content_width' => env('CONTENT_WIDTH', '7xl'),
|
||||
|
||||
|
||||
Generated
+20
-25
@@ -1144,9 +1144,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/baseline-browser-mapping": {
|
||||
"version": "2.8.31",
|
||||
"resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.31.tgz",
|
||||
"integrity": "sha512-a28v2eWrrRWPpJSzxc+mKwm0ZtVx/G8SepdQZDArnXYU/XS+IF6mp8aB/4E+hH1tyGCoDo3KlUCdlSxGDsRkAw==",
|
||||
"version": "2.9.0",
|
||||
"resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.0.tgz",
|
||||
"integrity": "sha512-Mh++g+2LPfzZToywfE1BUzvZbfOY52Nil0rn9H1CPC5DJ7fX+Vir7nToBeoiSbB1zTNeGYbELEvJESujgGrzXw==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"bin": {
|
||||
@@ -1154,9 +1154,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/browserslist": {
|
||||
"version": "4.28.0",
|
||||
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.0.tgz",
|
||||
"integrity": "sha512-tbydkR/CxfMwelN0vwdP/pLkDwyAASZ+VfWm4EOwlB6SWhx1sYnWLqo8N5j0rAzPfzfRaxt0mM/4wPU/Su84RQ==",
|
||||
"version": "4.28.1",
|
||||
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz",
|
||||
"integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==",
|
||||
"dev": true,
|
||||
"funding": [
|
||||
{
|
||||
@@ -1173,13 +1173,12 @@
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"baseline-browser-mapping": "^2.8.25",
|
||||
"caniuse-lite": "^1.0.30001754",
|
||||
"electron-to-chromium": "^1.5.249",
|
||||
"baseline-browser-mapping": "^2.9.0",
|
||||
"caniuse-lite": "^1.0.30001759",
|
||||
"electron-to-chromium": "^1.5.263",
|
||||
"node-releases": "^2.0.27",
|
||||
"update-browserslist-db": "^1.1.4"
|
||||
"update-browserslist-db": "^1.2.0"
|
||||
},
|
||||
"bin": {
|
||||
"browserslist": "cli.js"
|
||||
@@ -1189,9 +1188,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/caniuse-lite": {
|
||||
"version": "1.0.30001757",
|
||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001757.tgz",
|
||||
"integrity": "sha512-r0nnL/I28Zi/yjk1el6ilj27tKcdjLsNqAOZr0yVjWPrSQyHgKI2INaEWw21bAQSv2LXRt1XuCS/GomNpWOxsQ==",
|
||||
"version": "1.0.30001759",
|
||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001759.tgz",
|
||||
"integrity": "sha512-Pzfx9fOKoKvevQf8oCXoyNRQ5QyxJj+3O0Rqx2V5oxT61KGx8+n6hV/IUyJeifUci2clnmmKVpvtiqRzgiWjSw==",
|
||||
"dev": true,
|
||||
"funding": [
|
||||
{
|
||||
@@ -1233,9 +1232,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/electron-to-chromium": {
|
||||
"version": "1.5.262",
|
||||
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.262.tgz",
|
||||
"integrity": "sha512-NlAsMteRHek05jRUxUR0a5jpjYq9ykk6+kO0yRaMi5moe7u0fVIOeQ3Y30A8dIiWFBNUoQGi1ljb1i5VtS9WQQ==",
|
||||
"version": "1.5.264",
|
||||
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.264.tgz",
|
||||
"integrity": "sha512-1tEf0nLgltC3iy9wtlYDlQDc5Rg9lEKVjEmIHJ21rI9OcqkvD45K1oyNIRA4rR1z3LgJ7KeGzEBojVcV6m4qjA==",
|
||||
"dev": true,
|
||||
"license": "ISC"
|
||||
},
|
||||
@@ -1709,7 +1708,6 @@
|
||||
"integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
@@ -1737,7 +1735,6 @@
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"nanoid": "^3.3.11",
|
||||
"picocolors": "^1.1.1",
|
||||
@@ -1825,8 +1822,7 @@
|
||||
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.17.tgz",
|
||||
"integrity": "sha512-j9Ee2YjuQqYT9bbRTfTZht9W/ytp5H+jJpZKiYdP/bpnXARAuELt9ofP0lPnmHjbga7SNQIxdTAXCmtKVYjN+Q==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/tapable": {
|
||||
"version": "2.3.0",
|
||||
@@ -1860,9 +1856,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/update-browserslist-db": {
|
||||
"version": "1.1.4",
|
||||
"resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.4.tgz",
|
||||
"integrity": "sha512-q0SPT4xyU84saUX+tomz1WLkxUbuaJnR1xWt17M7fJtEJigJeWUNGUqrauFXsHnqev9y9JTRGwk13tFBuKby4A==",
|
||||
"version": "1.2.2",
|
||||
"resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.2.tgz",
|
||||
"integrity": "sha512-E85pfNzMQ9jpKkA7+TJAi4TJN+tBCuWh5rUcS/sv6cFi+1q9LYDwDI5dpUL0u/73EElyQ8d3TEaeW4sPedBqYA==",
|
||||
"dev": true,
|
||||
"funding": [
|
||||
{
|
||||
@@ -1903,7 +1899,6 @@
|
||||
"integrity": "sha512-+Oxm7q9hDoLMyJOYfUYBuHQo+dkAloi33apOPP56pzj+vsdJDzr+j1NISE5pyaAuKL4A3UD34qd0lx5+kfKp2g==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"esbuild": "^0.25.0",
|
||||
"fdir": "^6.4.4",
|
||||
|
||||
+284
-264
@@ -17,9 +17,9 @@ var __copyProps = (to, from, except, desc) => {
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
||||
|
||||
// ../alpine/packages/alpinejs/dist/module.cjs.js
|
||||
// node_modules/alpinejs/dist/module.cjs.js
|
||||
var require_module_cjs = __commonJS({
|
||||
"../alpine/packages/alpinejs/dist/module.cjs.js"(exports, module) {
|
||||
"node_modules/alpinejs/dist/module.cjs.js"(exports, module) {
|
||||
var __create2 = Object.create;
|
||||
var __defProp2 = Object.defineProperty;
|
||||
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
||||
@@ -1290,8 +1290,8 @@ var require_module_cjs = __commonJS({
|
||||
});
|
||||
var module_exports = {};
|
||||
__export(module_exports, {
|
||||
Alpine: () => src_default,
|
||||
default: () => module_default
|
||||
Alpine: () => src_default2,
|
||||
default: () => module_default2
|
||||
});
|
||||
module.exports = __toCommonJS(module_exports);
|
||||
var flushPending = false;
|
||||
@@ -1699,7 +1699,14 @@ var require_module_cjs = __commonJS({
|
||||
handleError(e, el, expression);
|
||||
}
|
||||
}
|
||||
function handleError(error2, el, expression = void 0) {
|
||||
function handleError(...args) {
|
||||
return errorHandler(...args);
|
||||
}
|
||||
var errorHandler = normalErrorHandler;
|
||||
function setErrorHandler(handler4) {
|
||||
errorHandler = handler4;
|
||||
}
|
||||
function normalErrorHandler(error2, el, expression = void 0) {
|
||||
error2 = Object.assign(error2 != null ? error2 : { message: "No error message given." }, { el, expression });
|
||||
console.warn(`Alpine Expression Error: ${error2.message}
|
||||
|
||||
@@ -1737,7 +1744,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
}
|
||||
function generateEvaluatorFromFunction(dataStack, func) {
|
||||
return (receiver = () => {
|
||||
}, { scope: scope2 = {}, params = [] } = {}) => {
|
||||
}, { scope: scope2 = {}, params = [], context } = {}) => {
|
||||
let result = func.apply(mergeProxies([scope2, ...dataStack]), params);
|
||||
runIfTypeOfFunction(receiver, result);
|
||||
};
|
||||
@@ -1769,12 +1776,12 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
function generateEvaluatorFromString(dataStack, expression, el) {
|
||||
let func = generateFunctionFromString(expression, el);
|
||||
return (receiver = () => {
|
||||
}, { scope: scope2 = {}, params = [] } = {}) => {
|
||||
}, { scope: scope2 = {}, params = [], context } = {}) => {
|
||||
func.result = void 0;
|
||||
func.finished = false;
|
||||
let completeScope = mergeProxies([scope2, ...dataStack]);
|
||||
if (typeof func === "function") {
|
||||
let promise = func(func, completeScope).catch((error2) => handleError(error2, el, expression));
|
||||
let promise = func.call(context, func, completeScope).catch((error2) => handleError(error2, el, expression));
|
||||
if (func.finished) {
|
||||
runIfTypeOfFunction(receiver, func.result, completeScope, params, el);
|
||||
func.result = void 0;
|
||||
@@ -2724,10 +2731,10 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
return el.type === "radio" || el.localName === "ui-radio";
|
||||
}
|
||||
function debounce2(func, wait) {
|
||||
var timeout;
|
||||
let timeout;
|
||||
return function() {
|
||||
var context = this, args = arguments;
|
||||
var later = function() {
|
||||
const context = this, args = arguments;
|
||||
const later = function() {
|
||||
timeout = null;
|
||||
func.apply(context, args);
|
||||
};
|
||||
@@ -2876,7 +2883,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
get raw() {
|
||||
return raw;
|
||||
},
|
||||
version: "3.14.9",
|
||||
version: "3.15.2",
|
||||
flushAndStopDeferringMutations,
|
||||
dontAutoEvaluateFunctions,
|
||||
disableEffectScheduling,
|
||||
@@ -2890,6 +2897,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
onlyDuringClone,
|
||||
addRootSelector,
|
||||
addInitSelector,
|
||||
setErrorHandler,
|
||||
interceptClone,
|
||||
addScopeToNode,
|
||||
deferMutations,
|
||||
@@ -3208,7 +3216,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
}
|
||||
function isListeningForASpecificKeyThatHasntBeenPressed(e, modifiers) {
|
||||
let keyModifiers = modifiers.filter((i) => {
|
||||
return !["window", "document", "prevent", "stop", "once", "capture", "self", "away", "outside", "passive"].includes(i);
|
||||
return !["window", "document", "prevent", "stop", "once", "capture", "self", "away", "outside", "passive", "preserve-scroll"].includes(i);
|
||||
});
|
||||
if (keyModifiers.includes("debounce")) {
|
||||
let debounceIndex = keyModifiers.indexOf("debounce");
|
||||
@@ -3305,7 +3313,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
el.setAttribute("name", expression);
|
||||
});
|
||||
}
|
||||
var event = el.tagName.toLowerCase() === "select" || ["checkbox", "radio"].includes(el.type) || modifiers.includes("lazy") ? "change" : "input";
|
||||
let event = el.tagName.toLowerCase() === "select" || ["checkbox", "radio"].includes(el.type) || modifiers.includes("lazy") ? "change" : "input";
|
||||
let removeListener = isCloning ? () => {
|
||||
} : on3(el, event, modifiers, (e) => {
|
||||
setValue(getInputValue(el, modifiers, e, getValue()));
|
||||
@@ -3826,14 +3834,14 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
}
|
||||
alpine_default.setEvaluator(normalEvaluator);
|
||||
alpine_default.setReactivityEngine({ reactive: import_reactivity10.reactive, effect: import_reactivity10.effect, release: import_reactivity10.stop, raw: import_reactivity10.toRaw });
|
||||
var src_default = alpine_default;
|
||||
var module_default = src_default;
|
||||
var src_default2 = alpine_default;
|
||||
var module_default2 = src_default2;
|
||||
}
|
||||
});
|
||||
|
||||
// ../alpine/packages/collapse/dist/module.cjs.js
|
||||
// node_modules/@alpinejs/collapse/dist/module.cjs.js
|
||||
var require_module_cjs2 = __commonJS({
|
||||
"../alpine/packages/collapse/dist/module.cjs.js"(exports, module) {
|
||||
"node_modules/@alpinejs/collapse/dist/module.cjs.js"(exports, module) {
|
||||
var __defProp2 = Object.defineProperty;
|
||||
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
||||
@@ -3853,11 +3861,11 @@ var require_module_cjs2 = __commonJS({
|
||||
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
||||
var module_exports = {};
|
||||
__export(module_exports, {
|
||||
collapse: () => src_default,
|
||||
default: () => module_default
|
||||
collapse: () => src_default2,
|
||||
default: () => module_default2
|
||||
});
|
||||
module.exports = __toCommonJS(module_exports);
|
||||
function src_default(Alpine23) {
|
||||
function src_default2(Alpine23) {
|
||||
Alpine23.directive("collapse", collapse3);
|
||||
collapse3.inline = (el, { modifiers }) => {
|
||||
if (!modifiers.includes("min"))
|
||||
@@ -3948,13 +3956,13 @@ var require_module_cjs2 = __commonJS({
|
||||
}
|
||||
return rawValue;
|
||||
}
|
||||
var module_default = src_default;
|
||||
var module_default2 = src_default2;
|
||||
}
|
||||
});
|
||||
|
||||
// ../alpine/packages/focus/dist/module.cjs.js
|
||||
// node_modules/@alpinejs/focus/dist/module.cjs.js
|
||||
var require_module_cjs3 = __commonJS({
|
||||
"../alpine/packages/focus/dist/module.cjs.js"(exports, module) {
|
||||
"node_modules/@alpinejs/focus/dist/module.cjs.js"(exports, module) {
|
||||
var __create2 = Object.create;
|
||||
var __defProp2 = Object.defineProperty;
|
||||
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
||||
@@ -4745,13 +4753,13 @@ var require_module_cjs3 = __commonJS({
|
||||
});
|
||||
var module_exports = {};
|
||||
__export(module_exports, {
|
||||
default: () => module_default,
|
||||
focus: () => src_default
|
||||
default: () => module_default2,
|
||||
focus: () => src_default2
|
||||
});
|
||||
module.exports = __toCommonJS(module_exports);
|
||||
var import_focus_trap = __toESM2(require_focus_trap());
|
||||
var import_tabbable = __toESM2(require_dist());
|
||||
function src_default(Alpine23) {
|
||||
function src_default2(Alpine23) {
|
||||
let lastFocused;
|
||||
let currentFocused;
|
||||
window.addEventListener("focusin", () => {
|
||||
@@ -4870,6 +4878,8 @@ var require_module_cjs3 = __commonJS({
|
||||
allowOutsideClick: true,
|
||||
fallbackFocus: () => el
|
||||
};
|
||||
let undoInert = () => {
|
||||
};
|
||||
if (modifiers.includes("noautofocus")) {
|
||||
options.initialFocus = false;
|
||||
} else {
|
||||
@@ -4877,9 +4887,14 @@ var require_module_cjs3 = __commonJS({
|
||||
if (autofocusEl)
|
||||
options.initialFocus = autofocusEl;
|
||||
}
|
||||
if (modifiers.includes("inert")) {
|
||||
options.onPostActivate = () => {
|
||||
Alpine23.nextTick(() => {
|
||||
undoInert = setInert(el);
|
||||
});
|
||||
};
|
||||
}
|
||||
let trap = (0, import_focus_trap.createFocusTrap)(el, options);
|
||||
let undoInert = () => {
|
||||
};
|
||||
let undoDisableScrolling = () => {
|
||||
};
|
||||
const releaseFocus = () => {
|
||||
@@ -4899,8 +4914,6 @@ var require_module_cjs3 = __commonJS({
|
||||
if (value && !oldValue) {
|
||||
if (modifiers.includes("noscroll"))
|
||||
undoDisableScrolling = disableScrolling();
|
||||
if (modifiers.includes("inert"))
|
||||
undoInert = setInert(el);
|
||||
setTimeout(() => {
|
||||
trap.activate();
|
||||
}, 15);
|
||||
@@ -4950,13 +4963,13 @@ var require_module_cjs3 = __commonJS({
|
||||
document.documentElement.style.paddingRight = paddingRight;
|
||||
};
|
||||
}
|
||||
var module_default = src_default;
|
||||
var module_default2 = src_default2;
|
||||
}
|
||||
});
|
||||
|
||||
// ../alpine/packages/persist/dist/module.cjs.js
|
||||
// node_modules/@alpinejs/intersect/dist/module.cjs.js
|
||||
var require_module_cjs4 = __commonJS({
|
||||
"../alpine/packages/persist/dist/module.cjs.js"(exports, module) {
|
||||
"node_modules/@alpinejs/intersect/dist/module.cjs.js"(exports, module) {
|
||||
var __defProp2 = Object.defineProperty;
|
||||
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
||||
@@ -4976,100 +4989,11 @@ var require_module_cjs4 = __commonJS({
|
||||
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
||||
var module_exports = {};
|
||||
__export(module_exports, {
|
||||
default: () => module_default,
|
||||
persist: () => src_default
|
||||
default: () => module_default2,
|
||||
intersect: () => src_default2
|
||||
});
|
||||
module.exports = __toCommonJS(module_exports);
|
||||
function src_default(Alpine23) {
|
||||
let persist3 = () => {
|
||||
let alias;
|
||||
let storage;
|
||||
try {
|
||||
storage = localStorage;
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
console.warn("Alpine: $persist is using temporary storage since localStorage is unavailable.");
|
||||
let dummy = /* @__PURE__ */ new Map();
|
||||
storage = {
|
||||
getItem: dummy.get.bind(dummy),
|
||||
setItem: dummy.set.bind(dummy)
|
||||
};
|
||||
}
|
||||
return Alpine23.interceptor((initialValue, getter, setter, path, key) => {
|
||||
let lookup = alias || `_x_${path}`;
|
||||
let initial = storageHas(lookup, storage) ? storageGet(lookup, storage) : initialValue;
|
||||
setter(initial);
|
||||
Alpine23.effect(() => {
|
||||
let value = getter();
|
||||
storageSet(lookup, value, storage);
|
||||
setter(value);
|
||||
});
|
||||
return initial;
|
||||
}, (func) => {
|
||||
func.as = (key) => {
|
||||
alias = key;
|
||||
return func;
|
||||
}, func.using = (target) => {
|
||||
storage = target;
|
||||
return func;
|
||||
};
|
||||
});
|
||||
};
|
||||
Object.defineProperty(Alpine23, "$persist", { get: () => persist3() });
|
||||
Alpine23.magic("persist", persist3);
|
||||
Alpine23.persist = (key, { get, set }, storage = localStorage) => {
|
||||
let initial = storageHas(key, storage) ? storageGet(key, storage) : get();
|
||||
set(initial);
|
||||
Alpine23.effect(() => {
|
||||
let value = get();
|
||||
storageSet(key, value, storage);
|
||||
set(value);
|
||||
});
|
||||
};
|
||||
}
|
||||
function storageHas(key, storage) {
|
||||
return storage.getItem(key) !== null;
|
||||
}
|
||||
function storageGet(key, storage) {
|
||||
let value = storage.getItem(key, storage);
|
||||
if (value === void 0)
|
||||
return;
|
||||
return JSON.parse(value);
|
||||
}
|
||||
function storageSet(key, value, storage) {
|
||||
storage.setItem(key, JSON.stringify(value));
|
||||
}
|
||||
var module_default = src_default;
|
||||
}
|
||||
});
|
||||
|
||||
// ../alpine/packages/intersect/dist/module.cjs.js
|
||||
var require_module_cjs5 = __commonJS({
|
||||
"../alpine/packages/intersect/dist/module.cjs.js"(exports, module) {
|
||||
var __defProp2 = Object.defineProperty;
|
||||
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all2) => {
|
||||
for (var name in all2)
|
||||
__defProp2(target, name, { get: all2[name], enumerable: true });
|
||||
};
|
||||
var __copyProps2 = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames2(from))
|
||||
if (!__hasOwnProp2.call(to, key) && key !== except)
|
||||
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
||||
var module_exports = {};
|
||||
__export(module_exports, {
|
||||
default: () => module_default,
|
||||
intersect: () => src_default
|
||||
});
|
||||
module.exports = __toCommonJS(module_exports);
|
||||
function src_default(Alpine23) {
|
||||
function src_default2(Alpine23) {
|
||||
Alpine23.directive("intersect", Alpine23.skipDuringClone((el, { value, expression, modifiers }, { evaluateLater, cleanup }) => {
|
||||
let evaluate = evaluateLater(expression);
|
||||
let options = {
|
||||
@@ -5121,13 +5045,13 @@ var require_module_cjs5 = __commonJS({
|
||||
values = values.filter((v) => v !== void 0);
|
||||
return values.length ? values.join(" ").trim() : fallback2;
|
||||
}
|
||||
var module_default = src_default;
|
||||
var module_default2 = src_default2;
|
||||
}
|
||||
});
|
||||
|
||||
// ../alpine/packages/resize/dist/module.cjs.js
|
||||
var require_module_cjs6 = __commonJS({
|
||||
"../alpine/packages/resize/dist/module.cjs.js"(exports, module) {
|
||||
// node_modules/@alpinejs/resize/dist/module.cjs.js
|
||||
var require_module_cjs5 = __commonJS({
|
||||
"node_modules/@alpinejs/resize/dist/module.cjs.js"(exports, module) {
|
||||
var __defProp2 = Object.defineProperty;
|
||||
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
||||
@@ -5147,11 +5071,11 @@ var require_module_cjs6 = __commonJS({
|
||||
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
||||
var module_exports = {};
|
||||
__export(module_exports, {
|
||||
default: () => module_default,
|
||||
resize: () => src_default
|
||||
default: () => module_default2,
|
||||
resize: () => src_default2
|
||||
});
|
||||
module.exports = __toCommonJS(module_exports);
|
||||
function src_default(Alpine23) {
|
||||
function src_default2(Alpine23) {
|
||||
Alpine23.directive("resize", Alpine23.skipDuringClone((el, { value, expression, modifiers }, { evaluateLater, cleanup }) => {
|
||||
let evaluator = evaluateLater(expression);
|
||||
let evaluate = (width, height) => {
|
||||
@@ -5193,13 +5117,13 @@ var require_module_cjs6 = __commonJS({
|
||||
}
|
||||
return [width, height];
|
||||
}
|
||||
var module_default = src_default;
|
||||
var module_default2 = src_default2;
|
||||
}
|
||||
});
|
||||
|
||||
// ../alpine/packages/anchor/dist/module.cjs.js
|
||||
var require_module_cjs7 = __commonJS({
|
||||
"../alpine/packages/anchor/dist/module.cjs.js"(exports, module) {
|
||||
// node_modules/@alpinejs/anchor/dist/module.cjs.js
|
||||
var require_module_cjs6 = __commonJS({
|
||||
"node_modules/@alpinejs/anchor/dist/module.cjs.js"(exports, module) {
|
||||
var __defProp2 = Object.defineProperty;
|
||||
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
||||
@@ -5219,8 +5143,8 @@ var require_module_cjs7 = __commonJS({
|
||||
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
||||
var module_exports = {};
|
||||
__export(module_exports, {
|
||||
anchor: () => src_default,
|
||||
default: () => module_default
|
||||
anchor: () => src_default2,
|
||||
default: () => module_default2
|
||||
});
|
||||
module.exports = __toCommonJS(module_exports);
|
||||
var min = Math.min;
|
||||
@@ -6396,7 +6320,7 @@ var require_module_cjs7 = __commonJS({
|
||||
platform: platformWithCache
|
||||
});
|
||||
};
|
||||
function src_default(Alpine23) {
|
||||
function src_default2(Alpine23) {
|
||||
Alpine23.magic("anchor", (el) => {
|
||||
if (!el._x_anchor)
|
||||
throw "Alpine: No x-anchor directive found on element using $anchor...";
|
||||
@@ -6454,7 +6378,7 @@ var require_module_cjs7 = __commonJS({
|
||||
let unstyled = modifiers.includes("no-style");
|
||||
return { placement, offsetValue, unstyled };
|
||||
}
|
||||
var module_default = src_default;
|
||||
var module_default2 = src_default2;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -6735,9 +6659,9 @@ var require_nprogress = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// ../alpine/packages/morph/dist/module.cjs.js
|
||||
var require_module_cjs8 = __commonJS({
|
||||
"../alpine/packages/morph/dist/module.cjs.js"(exports, module) {
|
||||
// node_modules/@alpinejs/morph/dist/module.cjs.js
|
||||
var require_module_cjs7 = __commonJS({
|
||||
"node_modules/@alpinejs/morph/dist/module.cjs.js"(exports, module) {
|
||||
var __defProp2 = Object.defineProperty;
|
||||
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
||||
@@ -6757,119 +6681,161 @@ var require_module_cjs8 = __commonJS({
|
||||
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
||||
var module_exports = {};
|
||||
__export(module_exports, {
|
||||
default: () => module_default,
|
||||
morph: () => src_default
|
||||
default: () => module_default2,
|
||||
morph: () => src_default2
|
||||
});
|
||||
module.exports = __toCommonJS(module_exports);
|
||||
function morph3(from, toHtml, options) {
|
||||
monkeyPatchDomSetAttributeToAllowAtSymbols();
|
||||
let fromEl;
|
||||
let toEl;
|
||||
let key, lookahead, updating, updated, removing, removed, adding, added;
|
||||
function assignOptions(options2 = {}) {
|
||||
let defaultGetKey = (el) => el.getAttribute("key");
|
||||
let noop = () => {
|
||||
};
|
||||
updating = options2.updating || noop;
|
||||
updated = options2.updated || noop;
|
||||
removing = options2.removing || noop;
|
||||
removed = options2.removed || noop;
|
||||
adding = options2.adding || noop;
|
||||
added = options2.added || noop;
|
||||
key = options2.key || defaultGetKey;
|
||||
lookahead = options2.lookahead || false;
|
||||
let context = createMorphContext(options);
|
||||
let toEl = typeof toHtml === "string" ? createElement(toHtml) : toHtml;
|
||||
if (window.Alpine && window.Alpine.closestDataStack && !from._x_dataStack) {
|
||||
toEl._x_dataStack = window.Alpine.closestDataStack(from);
|
||||
toEl._x_dataStack && window.Alpine.cloneNode(from, toEl);
|
||||
}
|
||||
function patch(from2, to) {
|
||||
if (differentElementNamesTypesOrKeys(from2, to)) {
|
||||
return swapElements(from2, to);
|
||||
context.patch(from, toEl);
|
||||
return from;
|
||||
}
|
||||
function morphBetween(startMarker, endMarker, toHtml, options = {}) {
|
||||
monkeyPatchDomSetAttributeToAllowAtSymbols();
|
||||
let context = createMorphContext(options);
|
||||
let fromContainer = startMarker.parentNode;
|
||||
let fromBlock = new Block(startMarker, endMarker);
|
||||
let toContainer = typeof toHtml === "string" ? (() => {
|
||||
let container = document.createElement("div");
|
||||
container.insertAdjacentHTML("beforeend", toHtml);
|
||||
return container;
|
||||
})() : toHtml;
|
||||
let toStartMarker = document.createComment("[morph-start]");
|
||||
let toEndMarker = document.createComment("[morph-end]");
|
||||
toContainer.insertBefore(toStartMarker, toContainer.firstChild);
|
||||
toContainer.appendChild(toEndMarker);
|
||||
let toBlock = new Block(toStartMarker, toEndMarker);
|
||||
if (window.Alpine && window.Alpine.closestDataStack) {
|
||||
toContainer._x_dataStack = window.Alpine.closestDataStack(fromContainer);
|
||||
toContainer._x_dataStack && window.Alpine.cloneNode(fromContainer, toContainer);
|
||||
}
|
||||
context.patchChildren(fromBlock, toBlock);
|
||||
}
|
||||
function createMorphContext(options = {}) {
|
||||
let defaultGetKey = (el) => el.getAttribute("key");
|
||||
let noop = () => {
|
||||
};
|
||||
let context = {
|
||||
key: options.key || defaultGetKey,
|
||||
lookahead: options.lookahead || false,
|
||||
updating: options.updating || noop,
|
||||
updated: options.updated || noop,
|
||||
removing: options.removing || noop,
|
||||
removed: options.removed || noop,
|
||||
adding: options.adding || noop,
|
||||
added: options.added || noop
|
||||
};
|
||||
context.patch = function(from, to) {
|
||||
if (context.differentElementNamesTypesOrKeys(from, to)) {
|
||||
return context.swapElements(from, to);
|
||||
}
|
||||
let updateChildrenOnly = false;
|
||||
let skipChildren = false;
|
||||
if (shouldSkipChildren(updating, () => skipChildren = true, from2, to, () => updateChildrenOnly = true))
|
||||
let skipUntil = (predicate) => context.skipUntilCondition = predicate;
|
||||
if (shouldSkipChildren(context.updating, () => skipChildren = true, skipUntil, from, to, () => updateChildrenOnly = true))
|
||||
return;
|
||||
if (from2.nodeType === 1 && window.Alpine) {
|
||||
window.Alpine.cloneNode(from2, to);
|
||||
if (from2._x_teleport && to._x_teleport) {
|
||||
patch(from2._x_teleport, to._x_teleport);
|
||||
if (from.nodeType === 1 && window.Alpine) {
|
||||
window.Alpine.cloneNode(from, to);
|
||||
if (from._x_teleport && to._x_teleport) {
|
||||
context.patch(from._x_teleport, to._x_teleport);
|
||||
}
|
||||
}
|
||||
if (textOrComment(to)) {
|
||||
patchNodeValue(from2, to);
|
||||
updated(from2, to);
|
||||
context.patchNodeValue(from, to);
|
||||
context.updated(from, to);
|
||||
return;
|
||||
}
|
||||
if (!updateChildrenOnly) {
|
||||
patchAttributes(from2, to);
|
||||
context.patchAttributes(from, to);
|
||||
}
|
||||
updated(from2, to);
|
||||
context.updated(from, to);
|
||||
if (!skipChildren) {
|
||||
patchChildren(from2, to);
|
||||
context.patchChildren(from, to);
|
||||
}
|
||||
}
|
||||
function differentElementNamesTypesOrKeys(from2, to) {
|
||||
return from2.nodeType != to.nodeType || from2.nodeName != to.nodeName || getKey(from2) != getKey(to);
|
||||
}
|
||||
function swapElements(from2, to) {
|
||||
if (shouldSkip(removing, from2))
|
||||
};
|
||||
context.differentElementNamesTypesOrKeys = function(from, to) {
|
||||
return from.nodeType != to.nodeType || from.nodeName != to.nodeName || context.getKey(from) != context.getKey(to);
|
||||
};
|
||||
context.swapElements = function(from, to) {
|
||||
if (shouldSkip(context.removing, from))
|
||||
return;
|
||||
let toCloned = to.cloneNode(true);
|
||||
if (shouldSkip(adding, toCloned))
|
||||
if (shouldSkip(context.adding, toCloned))
|
||||
return;
|
||||
from2.replaceWith(toCloned);
|
||||
removed(from2);
|
||||
added(toCloned);
|
||||
}
|
||||
function patchNodeValue(from2, to) {
|
||||
from.replaceWith(toCloned);
|
||||
context.removed(from);
|
||||
context.added(toCloned);
|
||||
};
|
||||
context.patchNodeValue = function(from, to) {
|
||||
let value = to.nodeValue;
|
||||
if (from2.nodeValue !== value) {
|
||||
from2.nodeValue = value;
|
||||
if (from.nodeValue !== value) {
|
||||
from.nodeValue = value;
|
||||
}
|
||||
}
|
||||
function patchAttributes(from2, to) {
|
||||
if (from2._x_transitioning)
|
||||
};
|
||||
context.patchAttributes = function(from, to) {
|
||||
if (from._x_transitioning)
|
||||
return;
|
||||
if (from2._x_isShown && !to._x_isShown) {
|
||||
if (from._x_isShown && !to._x_isShown) {
|
||||
return;
|
||||
}
|
||||
if (!from2._x_isShown && to._x_isShown) {
|
||||
if (!from._x_isShown && to._x_isShown) {
|
||||
return;
|
||||
}
|
||||
let domAttributes = Array.from(from2.attributes);
|
||||
let domAttributes = Array.from(from.attributes);
|
||||
let toAttributes = Array.from(to.attributes);
|
||||
for (let i = domAttributes.length - 1; i >= 0; i--) {
|
||||
let name = domAttributes[i].name;
|
||||
if (!to.hasAttribute(name)) {
|
||||
from2.removeAttribute(name);
|
||||
from.removeAttribute(name);
|
||||
}
|
||||
}
|
||||
for (let i = toAttributes.length - 1; i >= 0; i--) {
|
||||
let name = toAttributes[i].name;
|
||||
let value = toAttributes[i].value;
|
||||
if (from2.getAttribute(name) !== value) {
|
||||
from2.setAttribute(name, value);
|
||||
if (from.getAttribute(name) !== value) {
|
||||
from.setAttribute(name, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
function patchChildren(from2, to) {
|
||||
let fromKeys = keyToMap(from2.children);
|
||||
};
|
||||
context.patchChildren = function(from, to) {
|
||||
let fromKeys = context.keyToMap(from.children);
|
||||
let fromKeyHoldovers = {};
|
||||
let currentTo = getFirstNode(to);
|
||||
let currentFrom = getFirstNode(from2);
|
||||
let currentFrom = getFirstNode(from);
|
||||
while (currentTo) {
|
||||
seedingMatchingId(currentTo, currentFrom);
|
||||
let toKey = getKey(currentTo);
|
||||
let fromKey = getKey(currentFrom);
|
||||
let toKey = context.getKey(currentTo);
|
||||
let fromKey = context.getKey(currentFrom);
|
||||
if (context.skipUntilCondition) {
|
||||
let fromDone = !currentFrom || context.skipUntilCondition(currentFrom);
|
||||
let toDone = !currentTo || context.skipUntilCondition(currentTo);
|
||||
if (fromDone && toDone) {
|
||||
context.skipUntilCondition = null;
|
||||
} else {
|
||||
if (!fromDone)
|
||||
currentFrom = currentFrom && getNextSibling(from, currentFrom);
|
||||
if (!toDone)
|
||||
currentTo = currentTo && getNextSibling(to, currentTo);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (!currentFrom) {
|
||||
if (toKey && fromKeyHoldovers[toKey]) {
|
||||
let holdover = fromKeyHoldovers[toKey];
|
||||
from2.appendChild(holdover);
|
||||
from.appendChild(holdover);
|
||||
currentFrom = holdover;
|
||||
fromKey = getKey(currentFrom);
|
||||
fromKey = context.getKey(currentFrom);
|
||||
} else {
|
||||
if (!shouldSkip(adding, currentTo)) {
|
||||
if (!shouldSkip(context.adding, currentTo)) {
|
||||
let clone = currentTo.cloneNode(true);
|
||||
from2.appendChild(clone);
|
||||
added(clone);
|
||||
from.appendChild(clone);
|
||||
context.added(clone);
|
||||
}
|
||||
currentTo = getNextSibling(to, currentTo);
|
||||
continue;
|
||||
@@ -6881,7 +6847,7 @@ var require_module_cjs8 = __commonJS({
|
||||
let nestedIfCount = 0;
|
||||
let fromBlockStart = currentFrom;
|
||||
while (currentFrom) {
|
||||
let next = getNextSibling(from2, currentFrom);
|
||||
let next = getNextSibling(from, currentFrom);
|
||||
if (isIf(next)) {
|
||||
nestedIfCount++;
|
||||
} else if (isEnd(next) && nestedIfCount > 0) {
|
||||
@@ -6910,17 +6876,17 @@ var require_module_cjs8 = __commonJS({
|
||||
let toBlockEnd = currentTo;
|
||||
let fromBlock = new Block(fromBlockStart, fromBlockEnd);
|
||||
let toBlock = new Block(toBlockStart, toBlockEnd);
|
||||
patchChildren(fromBlock, toBlock);
|
||||
context.patchChildren(fromBlock, toBlock);
|
||||
continue;
|
||||
}
|
||||
if (currentFrom.nodeType === 1 && lookahead && !currentFrom.isEqualNode(currentTo)) {
|
||||
if (currentFrom.nodeType === 1 && context.lookahead && !currentFrom.isEqualNode(currentTo)) {
|
||||
let nextToElementSibling = getNextSibling(to, currentTo);
|
||||
let found = false;
|
||||
while (!found && nextToElementSibling) {
|
||||
if (nextToElementSibling.nodeType === 1 && currentFrom.isEqualNode(nextToElementSibling)) {
|
||||
found = true;
|
||||
currentFrom = addNodeBefore(from2, currentTo, currentFrom);
|
||||
fromKey = getKey(currentFrom);
|
||||
currentFrom = context.addNodeBefore(from, currentTo, currentFrom);
|
||||
fromKey = context.getKey(currentFrom);
|
||||
}
|
||||
nextToElementSibling = getNextSibling(to, nextToElementSibling);
|
||||
}
|
||||
@@ -6928,9 +6894,9 @@ var require_module_cjs8 = __commonJS({
|
||||
if (toKey !== fromKey) {
|
||||
if (!toKey && fromKey) {
|
||||
fromKeyHoldovers[fromKey] = currentFrom;
|
||||
currentFrom = addNodeBefore(from2, currentTo, currentFrom);
|
||||
currentFrom = context.addNodeBefore(from, currentTo, currentFrom);
|
||||
fromKeyHoldovers[fromKey].remove();
|
||||
currentFrom = getNextSibling(from2, currentFrom);
|
||||
currentFrom = getNextSibling(from, currentFrom);
|
||||
currentTo = getNextSibling(to, currentTo);
|
||||
continue;
|
||||
}
|
||||
@@ -6938,7 +6904,7 @@ var require_module_cjs8 = __commonJS({
|
||||
if (fromKeys[toKey]) {
|
||||
currentFrom.replaceWith(fromKeys[toKey]);
|
||||
currentFrom = fromKeys[toKey];
|
||||
fromKey = getKey(currentFrom);
|
||||
fromKey = context.getKey(currentFrom);
|
||||
}
|
||||
}
|
||||
if (toKey && fromKey) {
|
||||
@@ -6947,67 +6913,57 @@ var require_module_cjs8 = __commonJS({
|
||||
fromKeyHoldovers[fromKey] = currentFrom;
|
||||
currentFrom.replaceWith(fromKeyNode);
|
||||
currentFrom = fromKeyNode;
|
||||
fromKey = getKey(currentFrom);
|
||||
fromKey = context.getKey(currentFrom);
|
||||
} else {
|
||||
fromKeyHoldovers[fromKey] = currentFrom;
|
||||
currentFrom = addNodeBefore(from2, currentTo, currentFrom);
|
||||
currentFrom = context.addNodeBefore(from, currentTo, currentFrom);
|
||||
fromKeyHoldovers[fromKey].remove();
|
||||
currentFrom = getNextSibling(from2, currentFrom);
|
||||
currentFrom = getNextSibling(from, currentFrom);
|
||||
currentTo = getNextSibling(to, currentTo);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
let currentFromNext = currentFrom && getNextSibling(from2, currentFrom);
|
||||
patch(currentFrom, currentTo);
|
||||
let currentFromNext = currentFrom && getNextSibling(from, currentFrom);
|
||||
context.patch(currentFrom, currentTo);
|
||||
currentTo = currentTo && getNextSibling(to, currentTo);
|
||||
currentFrom = currentFromNext;
|
||||
}
|
||||
let removals = [];
|
||||
while (currentFrom) {
|
||||
if (!shouldSkip(removing, currentFrom))
|
||||
if (!shouldSkip(context.removing, currentFrom))
|
||||
removals.push(currentFrom);
|
||||
currentFrom = getNextSibling(from2, currentFrom);
|
||||
currentFrom = getNextSibling(from, currentFrom);
|
||||
}
|
||||
while (removals.length) {
|
||||
let domForRemoval = removals.shift();
|
||||
domForRemoval.remove();
|
||||
removed(domForRemoval);
|
||||
context.removed(domForRemoval);
|
||||
}
|
||||
}
|
||||
function getKey(el) {
|
||||
return el && el.nodeType === 1 && key(el);
|
||||
}
|
||||
function keyToMap(els2) {
|
||||
};
|
||||
context.getKey = function(el) {
|
||||
return el && el.nodeType === 1 && context.key(el);
|
||||
};
|
||||
context.keyToMap = function(els2) {
|
||||
let map = {};
|
||||
for (let el of els2) {
|
||||
let theKey = getKey(el);
|
||||
let theKey = context.getKey(el);
|
||||
if (theKey) {
|
||||
map[theKey] = el;
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
function addNodeBefore(parent, node, beforeMe) {
|
||||
if (!shouldSkip(adding, node)) {
|
||||
};
|
||||
context.addNodeBefore = function(parent, node, beforeMe) {
|
||||
if (!shouldSkip(context.adding, node)) {
|
||||
let clone = node.cloneNode(true);
|
||||
parent.insertBefore(clone, beforeMe);
|
||||
added(clone);
|
||||
context.added(clone);
|
||||
return clone;
|
||||
}
|
||||
return node;
|
||||
}
|
||||
assignOptions(options);
|
||||
fromEl = from;
|
||||
toEl = typeof toHtml === "string" ? createElement(toHtml) : toHtml;
|
||||
if (window.Alpine && window.Alpine.closestDataStack && !from._x_dataStack) {
|
||||
toEl._x_dataStack = window.Alpine.closestDataStack(from);
|
||||
toEl._x_dataStack && window.Alpine.cloneNode(from, toEl);
|
||||
}
|
||||
patch(from, toEl);
|
||||
fromEl = void 0;
|
||||
toEl = void 0;
|
||||
return from;
|
||||
};
|
||||
return context;
|
||||
}
|
||||
morph3.step = () => {
|
||||
};
|
||||
@@ -7018,9 +6974,9 @@ var require_module_cjs8 = __commonJS({
|
||||
hook(...args, () => skip = true);
|
||||
return skip;
|
||||
}
|
||||
function shouldSkipChildren(hook, skipChildren, ...args) {
|
||||
function shouldSkipChildren(hook, skipChildren, skipUntil, ...args) {
|
||||
let skip = false;
|
||||
hook(...args, () => skip = true, skipChildren);
|
||||
hook(...args, () => skip = true, skipChildren, skipUntil);
|
||||
return skip;
|
||||
}
|
||||
var patched = false;
|
||||
@@ -7103,16 +7059,17 @@ var require_module_cjs8 = __commonJS({
|
||||
to.setAttribute("id", fromId);
|
||||
to.id = fromId;
|
||||
}
|
||||
function src_default(Alpine23) {
|
||||
function src_default2(Alpine23) {
|
||||
Alpine23.morph = morph3;
|
||||
Alpine23.morphBetween = morphBetween;
|
||||
}
|
||||
var module_default = src_default;
|
||||
var module_default2 = src_default2;
|
||||
}
|
||||
});
|
||||
|
||||
// ../alpine/packages/mask/dist/module.cjs.js
|
||||
var require_module_cjs9 = __commonJS({
|
||||
"../alpine/packages/mask/dist/module.cjs.js"(exports, module) {
|
||||
// node_modules/@alpinejs/mask/dist/module.cjs.js
|
||||
var require_module_cjs8 = __commonJS({
|
||||
"node_modules/@alpinejs/mask/dist/module.cjs.js"(exports, module) {
|
||||
var __defProp2 = Object.defineProperty;
|
||||
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
||||
@@ -7132,12 +7089,12 @@ var require_module_cjs9 = __commonJS({
|
||||
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
||||
var module_exports = {};
|
||||
__export(module_exports, {
|
||||
default: () => module_default,
|
||||
mask: () => src_default,
|
||||
default: () => module_default2,
|
||||
mask: () => src_default2,
|
||||
stripDown: () => stripDown
|
||||
});
|
||||
module.exports = __toCommonJS(module_exports);
|
||||
function src_default(Alpine23) {
|
||||
function src_default2(Alpine23) {
|
||||
Alpine23.directive("mask", (el, { value, expression }, { effect, evaluateLater, cleanup }) => {
|
||||
let templateFn = () => expression;
|
||||
let lastInputValue = "";
|
||||
@@ -7304,7 +7261,7 @@ var require_module_cjs9 = __commonJS({
|
||||
});
|
||||
return template;
|
||||
}
|
||||
var module_default = src_default;
|
||||
var module_default2 = src_default2;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -8751,10 +8708,73 @@ var Directive = class {
|
||||
// js/lifecycle.js
|
||||
var import_collapse = __toESM(require_module_cjs2());
|
||||
var import_focus = __toESM(require_module_cjs3());
|
||||
var import_persist2 = __toESM(require_module_cjs4());
|
||||
var import_intersect = __toESM(require_module_cjs5());
|
||||
var import_resize = __toESM(require_module_cjs6());
|
||||
var import_anchor = __toESM(require_module_cjs7());
|
||||
|
||||
// node_modules/@alpinejs/persist/dist/module.esm.js
|
||||
function src_default(Alpine23) {
|
||||
let persist = () => {
|
||||
let alias;
|
||||
let storage;
|
||||
try {
|
||||
storage = localStorage;
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
console.warn("Alpine: $persist is using temporary storage since localStorage is unavailable.");
|
||||
let dummy = /* @__PURE__ */ new Map();
|
||||
storage = {
|
||||
getItem: dummy.get.bind(dummy),
|
||||
setItem: dummy.set.bind(dummy)
|
||||
};
|
||||
}
|
||||
return Alpine23.interceptor((initialValue, getter, setter, path, key) => {
|
||||
let lookup = alias || `_x_${path}`;
|
||||
let initial = storageHas(lookup, storage) ? storageGet(lookup, storage) : initialValue;
|
||||
setter(initial);
|
||||
Alpine23.effect(() => {
|
||||
let value = getter();
|
||||
storageSet(lookup, value, storage);
|
||||
setter(value);
|
||||
});
|
||||
return initial;
|
||||
}, (func) => {
|
||||
func.as = (key) => {
|
||||
alias = key;
|
||||
return func;
|
||||
}, func.using = (target) => {
|
||||
storage = target;
|
||||
return func;
|
||||
};
|
||||
});
|
||||
};
|
||||
Object.defineProperty(Alpine23, "$persist", { get: () => persist() });
|
||||
Alpine23.magic("persist", persist);
|
||||
Alpine23.persist = (key, { get, set }, storage = localStorage) => {
|
||||
let initial = storageHas(key, storage) ? storageGet(key, storage) : get();
|
||||
set(initial);
|
||||
Alpine23.effect(() => {
|
||||
let value = get();
|
||||
storageSet(key, value, storage);
|
||||
set(value);
|
||||
});
|
||||
};
|
||||
}
|
||||
function storageHas(key, storage) {
|
||||
return storage.getItem(key) !== null;
|
||||
}
|
||||
function storageGet(key, storage) {
|
||||
let value = storage.getItem(key);
|
||||
if (value === void 0)
|
||||
return;
|
||||
return JSON.parse(value);
|
||||
}
|
||||
function storageSet(key, value, storage) {
|
||||
storage.setItem(key, JSON.stringify(value));
|
||||
}
|
||||
var module_default = src_default;
|
||||
|
||||
// js/lifecycle.js
|
||||
var import_intersect = __toESM(require_module_cjs4());
|
||||
var import_resize = __toESM(require_module_cjs5());
|
||||
var import_anchor = __toESM(require_module_cjs6());
|
||||
|
||||
// js/plugins/navigate/history.js
|
||||
var Snapshot = class {
|
||||
@@ -9772,8 +9792,8 @@ function fromQueryString(search, queryKey) {
|
||||
}
|
||||
|
||||
// js/lifecycle.js
|
||||
var import_morph = __toESM(require_module_cjs8());
|
||||
var import_mask = __toESM(require_module_cjs9());
|
||||
var import_morph = __toESM(require_module_cjs7());
|
||||
var import_mask = __toESM(require_module_cjs8());
|
||||
var import_alpinejs5 = __toESM(require_module_cjs());
|
||||
function start() {
|
||||
setTimeout(() => ensureLivewireScriptIsntMisplaced());
|
||||
@@ -9786,7 +9806,7 @@ function start() {
|
||||
import_alpinejs5.default.plugin(import_collapse.default);
|
||||
import_alpinejs5.default.plugin(import_anchor.default);
|
||||
import_alpinejs5.default.plugin(import_focus.default);
|
||||
import_alpinejs5.default.plugin(import_persist2.default);
|
||||
import_alpinejs5.default.plugin(module_default);
|
||||
import_alpinejs5.default.plugin(navigate_default);
|
||||
import_alpinejs5.default.plugin(import_mask.default);
|
||||
import_alpinejs5.default.addRootSelector(() => "[wire\\:id]");
|
||||
|
||||
+3
-3
File diff suppressed because one or more lines are too long
Vendored
+172
-126
@@ -716,7 +716,7 @@
|
||||
uploadManager.cancelUpload(name, cancelledCallback);
|
||||
}
|
||||
|
||||
// ../alpine/packages/alpinejs/dist/module.esm.js
|
||||
// node_modules/alpinejs/dist/module.esm.js
|
||||
var flushPending = false;
|
||||
var flushing = false;
|
||||
var queue = [];
|
||||
@@ -1121,7 +1121,14 @@
|
||||
handleError(e, el, expression);
|
||||
}
|
||||
}
|
||||
function handleError(error2, el, expression = void 0) {
|
||||
function handleError(...args) {
|
||||
return errorHandler(...args);
|
||||
}
|
||||
var errorHandler = normalErrorHandler;
|
||||
function setErrorHandler(handler4) {
|
||||
errorHandler = handler4;
|
||||
}
|
||||
function normalErrorHandler(error2, el, expression = void 0) {
|
||||
error2 = Object.assign(error2 ?? { message: "No error message given." }, { el, expression });
|
||||
console.warn(`Alpine Expression Error: ${error2.message}
|
||||
|
||||
@@ -1159,7 +1166,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
}
|
||||
function generateEvaluatorFromFunction(dataStack, func) {
|
||||
return (receiver = () => {
|
||||
}, { scope: scope2 = {}, params = [] } = {}) => {
|
||||
}, { scope: scope2 = {}, params = [], context } = {}) => {
|
||||
let result = func.apply(mergeProxies([scope2, ...dataStack]), params);
|
||||
runIfTypeOfFunction(receiver, result);
|
||||
};
|
||||
@@ -1191,12 +1198,12 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
function generateEvaluatorFromString(dataStack, expression, el) {
|
||||
let func = generateFunctionFromString(expression, el);
|
||||
return (receiver = () => {
|
||||
}, { scope: scope2 = {}, params = [] } = {}) => {
|
||||
}, { scope: scope2 = {}, params = [], context } = {}) => {
|
||||
func.result = void 0;
|
||||
func.finished = false;
|
||||
let completeScope = mergeProxies([scope2, ...dataStack]);
|
||||
if (typeof func === "function") {
|
||||
let promise = func(func, completeScope).catch((error2) => handleError(error2, el, expression));
|
||||
let promise = func.call(context, func, completeScope).catch((error2) => handleError(error2, el, expression));
|
||||
if (func.finished) {
|
||||
runIfTypeOfFunction(receiver, func.result, completeScope, params, el);
|
||||
func.result = void 0;
|
||||
@@ -2146,10 +2153,10 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
return el.type === "radio" || el.localName === "ui-radio";
|
||||
}
|
||||
function debounce(func, wait) {
|
||||
var timeout;
|
||||
let timeout;
|
||||
return function() {
|
||||
var context = this, args = arguments;
|
||||
var later = function() {
|
||||
const context = this, args = arguments;
|
||||
const later = function() {
|
||||
timeout = null;
|
||||
func.apply(context, args);
|
||||
};
|
||||
@@ -2298,7 +2305,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
get raw() {
|
||||
return raw;
|
||||
},
|
||||
version: "3.14.9",
|
||||
version: "3.15.2",
|
||||
flushAndStopDeferringMutations,
|
||||
dontAutoEvaluateFunctions,
|
||||
disableEffectScheduling,
|
||||
@@ -2312,6 +2319,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
onlyDuringClone,
|
||||
addRootSelector,
|
||||
addInitSelector,
|
||||
setErrorHandler,
|
||||
interceptClone,
|
||||
addScopeToNode,
|
||||
deferMutations,
|
||||
@@ -3277,7 +3285,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
}
|
||||
function isListeningForASpecificKeyThatHasntBeenPressed(e, modifiers) {
|
||||
let keyModifiers = modifiers.filter((i) => {
|
||||
return !["window", "document", "prevent", "stop", "once", "capture", "self", "away", "outside", "passive"].includes(i);
|
||||
return !["window", "document", "prevent", "stop", "once", "capture", "self", "away", "outside", "passive", "preserve-scroll"].includes(i);
|
||||
});
|
||||
if (keyModifiers.includes("debounce")) {
|
||||
let debounceIndex = keyModifiers.indexOf("debounce");
|
||||
@@ -3374,7 +3382,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
el.setAttribute("name", expression);
|
||||
});
|
||||
}
|
||||
var event = el.tagName.toLowerCase() === "select" || ["checkbox", "radio"].includes(el.type) || modifiers.includes("lazy") ? "change" : "input";
|
||||
let event = el.tagName.toLowerCase() === "select" || ["checkbox", "radio"].includes(el.type) || modifiers.includes("lazy") ? "change" : "input";
|
||||
let removeListener = isCloning ? () => {
|
||||
} : on(el, event, modifiers, (e) => {
|
||||
setValue(getInputValue(el, modifiers, e, getValue()));
|
||||
@@ -4915,7 +4923,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
}
|
||||
};
|
||||
|
||||
// ../alpine/packages/collapse/dist/module.esm.js
|
||||
// node_modules/@alpinejs/collapse/dist/module.esm.js
|
||||
function src_default2(Alpine3) {
|
||||
Alpine3.directive("collapse", collapse);
|
||||
collapse.inline = (el, { modifiers }) => {
|
||||
@@ -5009,7 +5017,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
}
|
||||
var module_default2 = src_default2;
|
||||
|
||||
// ../alpine/packages/focus/dist/module.esm.js
|
||||
// node_modules/@alpinejs/focus/dist/module.esm.js
|
||||
var candidateSelectors = ["input", "select", "textarea", "a[href]", "button", "[tabindex]:not(slot)", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])', "details>summary:first-of-type", "details"];
|
||||
var candidateSelector = /* @__PURE__ */ candidateSelectors.join(",");
|
||||
var NoElement = typeof Element === "undefined";
|
||||
@@ -5876,6 +5884,8 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
allowOutsideClick: true,
|
||||
fallbackFocus: () => el
|
||||
};
|
||||
let undoInert = () => {
|
||||
};
|
||||
if (modifiers.includes("noautofocus")) {
|
||||
options.initialFocus = false;
|
||||
} else {
|
||||
@@ -5883,9 +5893,14 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
if (autofocusEl)
|
||||
options.initialFocus = autofocusEl;
|
||||
}
|
||||
if (modifiers.includes("inert")) {
|
||||
options.onPostActivate = () => {
|
||||
Alpine3.nextTick(() => {
|
||||
undoInert = setInert(el);
|
||||
});
|
||||
};
|
||||
}
|
||||
let trap = createFocusTrap(el, options);
|
||||
let undoInert = () => {
|
||||
};
|
||||
let undoDisableScrolling = () => {
|
||||
};
|
||||
const releaseFocus = () => {
|
||||
@@ -5905,8 +5920,6 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
if (value && !oldValue) {
|
||||
if (modifiers.includes("noscroll"))
|
||||
undoDisableScrolling = disableScrolling();
|
||||
if (modifiers.includes("inert"))
|
||||
undoInert = setInert(el);
|
||||
setTimeout(() => {
|
||||
trap.activate();
|
||||
}, 15);
|
||||
@@ -5958,7 +5971,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
}
|
||||
var module_default3 = src_default3;
|
||||
|
||||
// ../alpine/packages/persist/dist/module.esm.js
|
||||
// node_modules/@alpinejs/persist/dist/module.esm.js
|
||||
function src_default4(Alpine3) {
|
||||
let persist = () => {
|
||||
let alias;
|
||||
@@ -6010,7 +6023,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
return storage.getItem(key) !== null;
|
||||
}
|
||||
function storageGet(key, storage) {
|
||||
let value = storage.getItem(key, storage);
|
||||
let value = storage.getItem(key);
|
||||
if (value === void 0)
|
||||
return;
|
||||
return JSON.parse(value);
|
||||
@@ -6020,7 +6033,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
}
|
||||
var module_default4 = src_default4;
|
||||
|
||||
// ../alpine/packages/intersect/dist/module.esm.js
|
||||
// node_modules/@alpinejs/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);
|
||||
@@ -6075,7 +6088,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
}
|
||||
var module_default5 = src_default5;
|
||||
|
||||
// ../alpine/packages/resize/dist/module.esm.js
|
||||
// node_modules/@alpinejs/resize/dist/module.esm.js
|
||||
function src_default6(Alpine3) {
|
||||
Alpine3.directive("resize", Alpine3.skipDuringClone((el, { value, expression, modifiers }, { evaluateLater: evaluateLater2, cleanup: cleanup2 }) => {
|
||||
let evaluator = evaluateLater2(expression);
|
||||
@@ -6120,7 +6133,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
}
|
||||
var module_default6 = src_default6;
|
||||
|
||||
// ../alpine/packages/anchor/dist/module.esm.js
|
||||
// node_modules/@alpinejs/anchor/dist/module.esm.js
|
||||
var min = Math.min;
|
||||
var max = Math.max;
|
||||
var round = Math.round;
|
||||
@@ -8367,116 +8380,158 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
return data2;
|
||||
}
|
||||
|
||||
// ../alpine/packages/morph/dist/module.esm.js
|
||||
// node_modules/@alpinejs/morph/dist/module.esm.js
|
||||
function morph(from, toHtml, options) {
|
||||
monkeyPatchDomSetAttributeToAllowAtSymbols();
|
||||
let fromEl;
|
||||
let toEl;
|
||||
let key, lookahead, updating, updated, removing, removed, adding, added;
|
||||
function assignOptions(options2 = {}) {
|
||||
let defaultGetKey = (el) => el.getAttribute("key");
|
||||
let noop = () => {
|
||||
};
|
||||
updating = options2.updating || noop;
|
||||
updated = options2.updated || noop;
|
||||
removing = options2.removing || noop;
|
||||
removed = options2.removed || noop;
|
||||
adding = options2.adding || noop;
|
||||
added = options2.added || noop;
|
||||
key = options2.key || defaultGetKey;
|
||||
lookahead = options2.lookahead || false;
|
||||
let context = createMorphContext(options);
|
||||
let toEl = typeof toHtml === "string" ? createElement(toHtml) : toHtml;
|
||||
if (window.Alpine && window.Alpine.closestDataStack && !from._x_dataStack) {
|
||||
toEl._x_dataStack = window.Alpine.closestDataStack(from);
|
||||
toEl._x_dataStack && window.Alpine.cloneNode(from, toEl);
|
||||
}
|
||||
function patch(from2, to) {
|
||||
if (differentElementNamesTypesOrKeys(from2, to)) {
|
||||
return swapElements(from2, to);
|
||||
context.patch(from, toEl);
|
||||
return from;
|
||||
}
|
||||
function morphBetween(startMarker, endMarker, toHtml, options = {}) {
|
||||
monkeyPatchDomSetAttributeToAllowAtSymbols();
|
||||
let context = createMorphContext(options);
|
||||
let fromContainer = startMarker.parentNode;
|
||||
let fromBlock = new Block(startMarker, endMarker);
|
||||
let toContainer = typeof toHtml === "string" ? (() => {
|
||||
let container = document.createElement("div");
|
||||
container.insertAdjacentHTML("beforeend", toHtml);
|
||||
return container;
|
||||
})() : toHtml;
|
||||
let toStartMarker = document.createComment("[morph-start]");
|
||||
let toEndMarker = document.createComment("[morph-end]");
|
||||
toContainer.insertBefore(toStartMarker, toContainer.firstChild);
|
||||
toContainer.appendChild(toEndMarker);
|
||||
let toBlock = new Block(toStartMarker, toEndMarker);
|
||||
if (window.Alpine && window.Alpine.closestDataStack) {
|
||||
toContainer._x_dataStack = window.Alpine.closestDataStack(fromContainer);
|
||||
toContainer._x_dataStack && window.Alpine.cloneNode(fromContainer, toContainer);
|
||||
}
|
||||
context.patchChildren(fromBlock, toBlock);
|
||||
}
|
||||
function createMorphContext(options = {}) {
|
||||
let defaultGetKey = (el) => el.getAttribute("key");
|
||||
let noop = () => {
|
||||
};
|
||||
let context = {
|
||||
key: options.key || defaultGetKey,
|
||||
lookahead: options.lookahead || false,
|
||||
updating: options.updating || noop,
|
||||
updated: options.updated || noop,
|
||||
removing: options.removing || noop,
|
||||
removed: options.removed || noop,
|
||||
adding: options.adding || noop,
|
||||
added: options.added || noop
|
||||
};
|
||||
context.patch = function(from, to) {
|
||||
if (context.differentElementNamesTypesOrKeys(from, to)) {
|
||||
return context.swapElements(from, to);
|
||||
}
|
||||
let updateChildrenOnly = false;
|
||||
let skipChildren = false;
|
||||
if (shouldSkipChildren(updating, () => skipChildren = true, from2, to, () => updateChildrenOnly = true))
|
||||
let skipUntil = (predicate) => context.skipUntilCondition = predicate;
|
||||
if (shouldSkipChildren(context.updating, () => skipChildren = true, skipUntil, from, to, () => updateChildrenOnly = true))
|
||||
return;
|
||||
if (from2.nodeType === 1 && window.Alpine) {
|
||||
window.Alpine.cloneNode(from2, to);
|
||||
if (from2._x_teleport && to._x_teleport) {
|
||||
patch(from2._x_teleport, to._x_teleport);
|
||||
if (from.nodeType === 1 && window.Alpine) {
|
||||
window.Alpine.cloneNode(from, to);
|
||||
if (from._x_teleport && to._x_teleport) {
|
||||
context.patch(from._x_teleport, to._x_teleport);
|
||||
}
|
||||
}
|
||||
if (textOrComment(to)) {
|
||||
patchNodeValue(from2, to);
|
||||
updated(from2, to);
|
||||
context.patchNodeValue(from, to);
|
||||
context.updated(from, to);
|
||||
return;
|
||||
}
|
||||
if (!updateChildrenOnly) {
|
||||
patchAttributes(from2, to);
|
||||
context.patchAttributes(from, to);
|
||||
}
|
||||
updated(from2, to);
|
||||
context.updated(from, to);
|
||||
if (!skipChildren) {
|
||||
patchChildren(from2, to);
|
||||
context.patchChildren(from, to);
|
||||
}
|
||||
}
|
||||
function differentElementNamesTypesOrKeys(from2, to) {
|
||||
return from2.nodeType != to.nodeType || from2.nodeName != to.nodeName || getKey(from2) != getKey(to);
|
||||
}
|
||||
function swapElements(from2, to) {
|
||||
if (shouldSkip(removing, from2))
|
||||
};
|
||||
context.differentElementNamesTypesOrKeys = function(from, to) {
|
||||
return from.nodeType != to.nodeType || from.nodeName != to.nodeName || context.getKey(from) != context.getKey(to);
|
||||
};
|
||||
context.swapElements = function(from, to) {
|
||||
if (shouldSkip(context.removing, from))
|
||||
return;
|
||||
let toCloned = to.cloneNode(true);
|
||||
if (shouldSkip(adding, toCloned))
|
||||
if (shouldSkip(context.adding, toCloned))
|
||||
return;
|
||||
from2.replaceWith(toCloned);
|
||||
removed(from2);
|
||||
added(toCloned);
|
||||
}
|
||||
function patchNodeValue(from2, to) {
|
||||
from.replaceWith(toCloned);
|
||||
context.removed(from);
|
||||
context.added(toCloned);
|
||||
};
|
||||
context.patchNodeValue = function(from, to) {
|
||||
let value = to.nodeValue;
|
||||
if (from2.nodeValue !== value) {
|
||||
from2.nodeValue = value;
|
||||
if (from.nodeValue !== value) {
|
||||
from.nodeValue = value;
|
||||
}
|
||||
}
|
||||
function patchAttributes(from2, to) {
|
||||
if (from2._x_transitioning)
|
||||
};
|
||||
context.patchAttributes = function(from, to) {
|
||||
if (from._x_transitioning)
|
||||
return;
|
||||
if (from2._x_isShown && !to._x_isShown) {
|
||||
if (from._x_isShown && !to._x_isShown) {
|
||||
return;
|
||||
}
|
||||
if (!from2._x_isShown && to._x_isShown) {
|
||||
if (!from._x_isShown && to._x_isShown) {
|
||||
return;
|
||||
}
|
||||
let domAttributes = Array.from(from2.attributes);
|
||||
let domAttributes = Array.from(from.attributes);
|
||||
let toAttributes = Array.from(to.attributes);
|
||||
for (let i = domAttributes.length - 1; i >= 0; i--) {
|
||||
let name = domAttributes[i].name;
|
||||
if (!to.hasAttribute(name)) {
|
||||
from2.removeAttribute(name);
|
||||
from.removeAttribute(name);
|
||||
}
|
||||
}
|
||||
for (let i = toAttributes.length - 1; i >= 0; i--) {
|
||||
let name = toAttributes[i].name;
|
||||
let value = toAttributes[i].value;
|
||||
if (from2.getAttribute(name) !== value) {
|
||||
from2.setAttribute(name, value);
|
||||
if (from.getAttribute(name) !== value) {
|
||||
from.setAttribute(name, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
function patchChildren(from2, to) {
|
||||
let fromKeys = keyToMap(from2.children);
|
||||
};
|
||||
context.patchChildren = function(from, to) {
|
||||
let fromKeys = context.keyToMap(from.children);
|
||||
let fromKeyHoldovers = {};
|
||||
let currentTo = getFirstNode(to);
|
||||
let currentFrom = getFirstNode(from2);
|
||||
let currentFrom = getFirstNode(from);
|
||||
while (currentTo) {
|
||||
seedingMatchingId(currentTo, currentFrom);
|
||||
let toKey = getKey(currentTo);
|
||||
let fromKey = getKey(currentFrom);
|
||||
let toKey = context.getKey(currentTo);
|
||||
let fromKey = context.getKey(currentFrom);
|
||||
if (context.skipUntilCondition) {
|
||||
let fromDone = !currentFrom || context.skipUntilCondition(currentFrom);
|
||||
let toDone = !currentTo || context.skipUntilCondition(currentTo);
|
||||
if (fromDone && toDone) {
|
||||
context.skipUntilCondition = null;
|
||||
} else {
|
||||
if (!fromDone)
|
||||
currentFrom = currentFrom && getNextSibling(from, currentFrom);
|
||||
if (!toDone)
|
||||
currentTo = currentTo && getNextSibling(to, currentTo);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (!currentFrom) {
|
||||
if (toKey && fromKeyHoldovers[toKey]) {
|
||||
let holdover = fromKeyHoldovers[toKey];
|
||||
from2.appendChild(holdover);
|
||||
from.appendChild(holdover);
|
||||
currentFrom = holdover;
|
||||
fromKey = getKey(currentFrom);
|
||||
fromKey = context.getKey(currentFrom);
|
||||
} else {
|
||||
if (!shouldSkip(adding, currentTo)) {
|
||||
if (!shouldSkip(context.adding, currentTo)) {
|
||||
let clone2 = currentTo.cloneNode(true);
|
||||
from2.appendChild(clone2);
|
||||
added(clone2);
|
||||
from.appendChild(clone2);
|
||||
context.added(clone2);
|
||||
}
|
||||
currentTo = getNextSibling(to, currentTo);
|
||||
continue;
|
||||
@@ -8488,7 +8543,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
let nestedIfCount = 0;
|
||||
let fromBlockStart = currentFrom;
|
||||
while (currentFrom) {
|
||||
let next = getNextSibling(from2, currentFrom);
|
||||
let next = getNextSibling(from, currentFrom);
|
||||
if (isIf(next)) {
|
||||
nestedIfCount++;
|
||||
} else if (isEnd(next) && nestedIfCount > 0) {
|
||||
@@ -8517,17 +8572,17 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
let toBlockEnd = currentTo;
|
||||
let fromBlock = new Block(fromBlockStart, fromBlockEnd);
|
||||
let toBlock = new Block(toBlockStart, toBlockEnd);
|
||||
patchChildren(fromBlock, toBlock);
|
||||
context.patchChildren(fromBlock, toBlock);
|
||||
continue;
|
||||
}
|
||||
if (currentFrom.nodeType === 1 && lookahead && !currentFrom.isEqualNode(currentTo)) {
|
||||
if (currentFrom.nodeType === 1 && context.lookahead && !currentFrom.isEqualNode(currentTo)) {
|
||||
let nextToElementSibling = getNextSibling(to, currentTo);
|
||||
let found = false;
|
||||
while (!found && nextToElementSibling) {
|
||||
if (nextToElementSibling.nodeType === 1 && currentFrom.isEqualNode(nextToElementSibling)) {
|
||||
found = true;
|
||||
currentFrom = addNodeBefore(from2, currentTo, currentFrom);
|
||||
fromKey = getKey(currentFrom);
|
||||
currentFrom = context.addNodeBefore(from, currentTo, currentFrom);
|
||||
fromKey = context.getKey(currentFrom);
|
||||
}
|
||||
nextToElementSibling = getNextSibling(to, nextToElementSibling);
|
||||
}
|
||||
@@ -8535,9 +8590,9 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
if (toKey !== fromKey) {
|
||||
if (!toKey && fromKey) {
|
||||
fromKeyHoldovers[fromKey] = currentFrom;
|
||||
currentFrom = addNodeBefore(from2, currentTo, currentFrom);
|
||||
currentFrom = context.addNodeBefore(from, currentTo, currentFrom);
|
||||
fromKeyHoldovers[fromKey].remove();
|
||||
currentFrom = getNextSibling(from2, currentFrom);
|
||||
currentFrom = getNextSibling(from, currentFrom);
|
||||
currentTo = getNextSibling(to, currentTo);
|
||||
continue;
|
||||
}
|
||||
@@ -8545,7 +8600,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
if (fromKeys[toKey]) {
|
||||
currentFrom.replaceWith(fromKeys[toKey]);
|
||||
currentFrom = fromKeys[toKey];
|
||||
fromKey = getKey(currentFrom);
|
||||
fromKey = context.getKey(currentFrom);
|
||||
}
|
||||
}
|
||||
if (toKey && fromKey) {
|
||||
@@ -8554,67 +8609,57 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
fromKeyHoldovers[fromKey] = currentFrom;
|
||||
currentFrom.replaceWith(fromKeyNode);
|
||||
currentFrom = fromKeyNode;
|
||||
fromKey = getKey(currentFrom);
|
||||
fromKey = context.getKey(currentFrom);
|
||||
} else {
|
||||
fromKeyHoldovers[fromKey] = currentFrom;
|
||||
currentFrom = addNodeBefore(from2, currentTo, currentFrom);
|
||||
currentFrom = context.addNodeBefore(from, currentTo, currentFrom);
|
||||
fromKeyHoldovers[fromKey].remove();
|
||||
currentFrom = getNextSibling(from2, currentFrom);
|
||||
currentFrom = getNextSibling(from, currentFrom);
|
||||
currentTo = getNextSibling(to, currentTo);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
let currentFromNext = currentFrom && getNextSibling(from2, currentFrom);
|
||||
patch(currentFrom, currentTo);
|
||||
let currentFromNext = currentFrom && getNextSibling(from, currentFrom);
|
||||
context.patch(currentFrom, currentTo);
|
||||
currentTo = currentTo && getNextSibling(to, currentTo);
|
||||
currentFrom = currentFromNext;
|
||||
}
|
||||
let removals = [];
|
||||
while (currentFrom) {
|
||||
if (!shouldSkip(removing, currentFrom))
|
||||
if (!shouldSkip(context.removing, currentFrom))
|
||||
removals.push(currentFrom);
|
||||
currentFrom = getNextSibling(from2, currentFrom);
|
||||
currentFrom = getNextSibling(from, currentFrom);
|
||||
}
|
||||
while (removals.length) {
|
||||
let domForRemoval = removals.shift();
|
||||
domForRemoval.remove();
|
||||
removed(domForRemoval);
|
||||
context.removed(domForRemoval);
|
||||
}
|
||||
}
|
||||
function getKey(el) {
|
||||
return el && el.nodeType === 1 && key(el);
|
||||
}
|
||||
function keyToMap(els2) {
|
||||
};
|
||||
context.getKey = function(el) {
|
||||
return el && el.nodeType === 1 && context.key(el);
|
||||
};
|
||||
context.keyToMap = function(els2) {
|
||||
let map = {};
|
||||
for (let el of els2) {
|
||||
let theKey = getKey(el);
|
||||
let theKey = context.getKey(el);
|
||||
if (theKey) {
|
||||
map[theKey] = el;
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
function addNodeBefore(parent, node, beforeMe) {
|
||||
if (!shouldSkip(adding, node)) {
|
||||
};
|
||||
context.addNodeBefore = function(parent, node, beforeMe) {
|
||||
if (!shouldSkip(context.adding, node)) {
|
||||
let clone2 = node.cloneNode(true);
|
||||
parent.insertBefore(clone2, beforeMe);
|
||||
added(clone2);
|
||||
context.added(clone2);
|
||||
return clone2;
|
||||
}
|
||||
return node;
|
||||
}
|
||||
assignOptions(options);
|
||||
fromEl = from;
|
||||
toEl = typeof toHtml === "string" ? createElement(toHtml) : toHtml;
|
||||
if (window.Alpine && window.Alpine.closestDataStack && !from._x_dataStack) {
|
||||
toEl._x_dataStack = window.Alpine.closestDataStack(from);
|
||||
toEl._x_dataStack && window.Alpine.cloneNode(from, toEl);
|
||||
}
|
||||
patch(from, toEl);
|
||||
fromEl = void 0;
|
||||
toEl = void 0;
|
||||
return from;
|
||||
};
|
||||
return context;
|
||||
}
|
||||
morph.step = () => {
|
||||
};
|
||||
@@ -8625,9 +8670,9 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
hook(...args, () => skip = true);
|
||||
return skip;
|
||||
}
|
||||
function shouldSkipChildren(hook, skipChildren, ...args) {
|
||||
function shouldSkipChildren(hook, skipChildren, skipUntil, ...args) {
|
||||
let skip = false;
|
||||
hook(...args, () => skip = true, skipChildren);
|
||||
hook(...args, () => skip = true, skipChildren, skipUntil);
|
||||
return skip;
|
||||
}
|
||||
var patched = false;
|
||||
@@ -8712,10 +8757,11 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
||||
}
|
||||
function src_default8(Alpine3) {
|
||||
Alpine3.morph = morph;
|
||||
Alpine3.morphBetween = morphBetween;
|
||||
}
|
||||
var module_default8 = src_default8;
|
||||
|
||||
// ../alpine/packages/mask/dist/module.esm.js
|
||||
// node_modules/@alpinejs/mask/dist/module.esm.js
|
||||
function src_default9(Alpine3) {
|
||||
Alpine3.directive("mask", (el, { value, expression }, { effect: effect3, evaluateLater: evaluateLater2, cleanup: cleanup2 }) => {
|
||||
let templateFn = () => expression;
|
||||
|
||||
+5
-5
File diff suppressed because one or more lines are too long
+3
-3
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -1,2 +1,2 @@
|
||||
|
||||
{"/livewire.js":"f084fdfb"}
|
||||
{"/livewire.js":"646f9d24"}
|
||||
|
||||
Reference in New Issue
Block a user