Upgrade Umbraco 7.15.10

This commit is contained in:
2023-02-08 08:35:43 -05:00
parent 536d3a0344
commit 4083654fc5
50 changed files with 2687 additions and 1820 deletions
@@ -24,6 +24,8 @@ var imagetools = (function (domGlobals) {
var global$1 = tinymce.util.Tools.resolve('tinymce.util.Tools');
var noop = function () {
};
var constant = function (value) {
return function () {
return value;
@@ -46,8 +48,6 @@ var imagetools = (function (domGlobals) {
var never = constant(false);
var always = constant(true);
var never$1 = never;
var always$1 = always;
var none = function () {
return NONE;
};
@@ -61,37 +61,27 @@ var imagetools = (function (domGlobals) {
var id = function (n) {
return n;
};
var noop = function () {
};
var nul = function () {
return null;
};
var undef = function () {
return undefined;
};
var me = {
fold: function (n, s) {
return n();
},
is: never$1,
isSome: never$1,
isNone: always$1,
is: never,
isSome: never,
isNone: always,
getOr: id,
getOrThunk: call,
getOrDie: function (msg) {
throw new Error(msg || 'error: getOrDie called on none.');
},
getOrNull: nul,
getOrUndefined: undef,
getOrNull: constant(null),
getOrUndefined: constant(undefined),
or: id,
orThunk: call,
map: none,
ap: none,
each: noop,
bind: none,
flatten: none,
exists: never$1,
forall: always$1,
exists: never,
forall: always,
filter: none,
equals: eq,
equals_: eq,
@@ -100,20 +90,16 @@ var imagetools = (function (domGlobals) {
},
toString: constant('none()')
};
if (Object.freeze)
if (Object.freeze) {
Object.freeze(me);
}
return me;
}();
var some = function (a) {
var constant_a = function () {
return a;
};
var constant_a = constant(a);
var self = function () {
return me;
};
var map = function (f) {
return some(f(a));
};
var bind = function (f) {
return f(a);
};
@@ -124,8 +110,8 @@ var imagetools = (function (domGlobals) {
is: function (v) {
return a === v;
},
isSome: always$1,
isNone: never$1,
isSome: always,
isNone: never,
getOr: constant_a,
getOrThunk: constant_a,
getOrDie: constant_a,
@@ -133,35 +119,31 @@ var imagetools = (function (domGlobals) {
getOrUndefined: constant_a,
or: self,
orThunk: self,
map: map,
ap: function (optfab) {
return optfab.fold(none, function (fab) {
return some(fab(a));
});
map: function (f) {
return some(f(a));
},
each: function (f) {
f(a);
},
bind: bind,
flatten: constant_a,
exists: bind,
forall: bind,
filter: function (f) {
return f(a) ? me : NONE;
},
equals: function (o) {
return o.is(a);
},
equals_: function (o, elementEq) {
return o.fold(never$1, function (b) {
return elementEq(a, b);
});
},
toArray: function () {
return [a];
},
toString: function () {
return 'some(' + a + ')';
},
equals: function (o) {
return o.is(a);
},
equals_: function (o, elementEq) {
return o.fold(never, function (b) {
return elementEq(a, b);
});
}
};
return me;
@@ -175,58 +157,6 @@ var imagetools = (function (domGlobals) {
from: from
};
var Global = typeof domGlobals.window !== 'undefined' ? domGlobals.window : Function('return this;')();
var path = function (parts, scope) {
var o = scope !== undefined && scope !== null ? scope : Global;
for (var i = 0; i < parts.length && o !== undefined && o !== null; ++i)
o = o[parts[i]];
return o;
};
var resolve = function (p, scope) {
var parts = p.split('.');
return path(parts, scope);
};
var unsafe = function (name, scope) {
return resolve(name, scope);
};
var getOrDie = function (name, scope) {
var actual = unsafe(name, scope);
if (actual === undefined || actual === null)
throw name + ' not available on this browser';
return actual;
};
var Global$1 = { getOrDie: getOrDie };
function SandBlob (parts, properties) {
var f = Global$1.getOrDie('Blob');
return new f(parts, properties);
}
function FileReader () {
var f = Global$1.getOrDie('FileReader');
return new f();
}
function Uint8Array (arr) {
var f = Global$1.getOrDie('Uint8Array');
return new f(arr);
}
var requestAnimationFrame = function (callback) {
var f = Global$1.getOrDie('requestAnimationFrame');
f(callback);
};
var atob = function (base64) {
var f = Global$1.getOrDie('atob');
return f(base64);
};
var Window = {
atob: atob,
requestAnimationFrame: requestAnimationFrame
};
function create(width, height) {
return resize(domGlobals.document.createElement('canvas'), width, height);
}
@@ -494,7 +424,7 @@ var imagetools = (function (domGlobals) {
var mimetype = matches[1];
var base64 = data[1];
var sliceSize = 1024;
var byteCharacters = Window.atob(base64);
var byteCharacters = domGlobals.atob(base64);
var bytesLength = byteCharacters.length;
var slicesCount = Math.ceil(bytesLength / sliceSize);
var byteArrays = new Array(slicesCount);
@@ -505,9 +435,9 @@ var imagetools = (function (domGlobals) {
for (var offset = begin, i = 0; offset < end; ++i, ++offset) {
bytes[i] = byteCharacters[offset].charCodeAt(0);
}
byteArrays[sliceIndex] = Uint8Array(bytes);
byteArrays[sliceIndex] = new Uint8Array(bytes);
}
return Option.some(SandBlob(byteArrays, { type: mimetype }));
return Option.some(new domGlobals.Blob(byteArrays, { type: mimetype }));
}
function dataUriToBlob(uri) {
return new Promise(function (resolve, reject) {
@@ -547,7 +477,7 @@ var imagetools = (function (domGlobals) {
}
function blobToDataUri(blob) {
return new Promise(function (resolve) {
var reader = FileReader();
var reader = new domGlobals.FileReader();
reader.onloadend = function () {
resolve(reader.result);
};
@@ -1352,6 +1282,32 @@ var imagetools = (function (domGlobals) {
return fromBlob(blob);
};
var Global = typeof domGlobals.window !== 'undefined' ? domGlobals.window : Function('return this;')();
var path = function (parts, scope) {
var o = scope !== undefined && scope !== null ? scope : Global;
for (var i = 0; i < parts.length && o !== undefined && o !== null; ++i) {
o = o[parts[i]];
}
return o;
};
var resolve = function (p, scope) {
var parts = p.split('.');
return path(parts, scope);
};
var unsafe = function (name, scope) {
return resolve(name, scope);
};
var getOrDie = function (name, scope) {
var actual = unsafe(name, scope);
if (actual === undefined || actual === null) {
throw new Error(name + ' not available on this browser');
}
return actual;
};
var Global$1 = { getOrDie: getOrDie };
var url = function () {
return Global$1.getOrDie('URL');
};
@@ -2592,13 +2548,16 @@ var imagetools = (function (domGlobals) {
};
var typeOf = function (x) {
if (x === null)
if (x === null) {
return 'null';
}
var t = typeof x;
if (t === 'object' && (Array.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'Array'))
if (t === 'object' && (Array.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'Array')) {
return 'array';
if (t === 'object' && (String.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'String'))
}
if (t === 'object' && (String.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'String')) {
return 'string';
}
return t;
};
var isType = function (type) {
@@ -2608,20 +2567,25 @@ var imagetools = (function (domGlobals) {
};
var isFunction = isType('function');
var slice = Array.prototype.slice;
var nativeSlice = Array.prototype.slice;
var find = function (xs, pred) {
for (var i = 0, len = xs.length; i < len; i++) {
var x = xs[i];
if (pred(x, i, xs)) {
if (pred(x, i)) {
return Option.some(x);
}
}
return Option.none();
};
var from$1 = isFunction(Array.from) ? Array.from : function (x) {
return slice.call(x);
return nativeSlice.call(x);
};
function FileReader () {
var f = Global$1.getOrDie('FileReader');
return new f();
}
function XMLHttpRequest () {
var f = Global$1.getOrDie('XMLHttpRequest');
return new f();