Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/dist
File: editor.js
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
[22000] Fix | Delete
extendStatics(d, b);
[22001] Fix | Delete
function __() { this.constructor = d; }
[22002] Fix | Delete
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
[22003] Fix | Delete
}
[22004] Fix | Delete
[22005] Fix | Delete
var __assign = function() {
[22006] Fix | Delete
__assign = Object.assign || function __assign(t) {
[22007] Fix | Delete
for (var s, i = 1, n = arguments.length; i < n; i++) {
[22008] Fix | Delete
s = arguments[i];
[22009] Fix | Delete
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
[22010] Fix | Delete
}
[22011] Fix | Delete
return t;
[22012] Fix | Delete
}
[22013] Fix | Delete
return __assign.apply(this, arguments);
[22014] Fix | Delete
}
[22015] Fix | Delete
[22016] Fix | Delete
function __rest(s, e) {
[22017] Fix | Delete
var t = {};
[22018] Fix | Delete
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
[22019] Fix | Delete
t[p] = s[p];
[22020] Fix | Delete
if (s != null && typeof Object.getOwnPropertySymbols === "function")
[22021] Fix | Delete
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
[22022] Fix | Delete
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
[22023] Fix | Delete
t[p[i]] = s[p[i]];
[22024] Fix | Delete
}
[22025] Fix | Delete
return t;
[22026] Fix | Delete
}
[22027] Fix | Delete
[22028] Fix | Delete
function __decorate(decorators, target, key, desc) {
[22029] Fix | Delete
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
[22030] Fix | Delete
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
[22031] Fix | Delete
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
[22032] Fix | Delete
return c > 3 && r && Object.defineProperty(target, key, r), r;
[22033] Fix | Delete
}
[22034] Fix | Delete
[22035] Fix | Delete
function __param(paramIndex, decorator) {
[22036] Fix | Delete
return function (target, key) { decorator(target, key, paramIndex); }
[22037] Fix | Delete
}
[22038] Fix | Delete
[22039] Fix | Delete
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
[22040] Fix | Delete
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
[22041] Fix | Delete
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
[22042] Fix | Delete
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
[22043] Fix | Delete
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
[22044] Fix | Delete
var _, done = false;
[22045] Fix | Delete
for (var i = decorators.length - 1; i >= 0; i--) {
[22046] Fix | Delete
var context = {};
[22047] Fix | Delete
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
[22048] Fix | Delete
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
[22049] Fix | Delete
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
[22050] Fix | Delete
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
[22051] Fix | Delete
if (kind === "accessor") {
[22052] Fix | Delete
if (result === void 0) continue;
[22053] Fix | Delete
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
[22054] Fix | Delete
if (_ = accept(result.get)) descriptor.get = _;
[22055] Fix | Delete
if (_ = accept(result.set)) descriptor.set = _;
[22056] Fix | Delete
if (_ = accept(result.init)) initializers.unshift(_);
[22057] Fix | Delete
}
[22058] Fix | Delete
else if (_ = accept(result)) {
[22059] Fix | Delete
if (kind === "field") initializers.unshift(_);
[22060] Fix | Delete
else descriptor[key] = _;
[22061] Fix | Delete
}
[22062] Fix | Delete
}
[22063] Fix | Delete
if (target) Object.defineProperty(target, contextIn.name, descriptor);
[22064] Fix | Delete
done = true;
[22065] Fix | Delete
};
[22066] Fix | Delete
[22067] Fix | Delete
function __runInitializers(thisArg, initializers, value) {
[22068] Fix | Delete
var useValue = arguments.length > 2;
[22069] Fix | Delete
for (var i = 0; i < initializers.length; i++) {
[22070] Fix | Delete
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
[22071] Fix | Delete
}
[22072] Fix | Delete
return useValue ? value : void 0;
[22073] Fix | Delete
};
[22074] Fix | Delete
[22075] Fix | Delete
function __propKey(x) {
[22076] Fix | Delete
return typeof x === "symbol" ? x : "".concat(x);
[22077] Fix | Delete
};
[22078] Fix | Delete
[22079] Fix | Delete
function __setFunctionName(f, name, prefix) {
[22080] Fix | Delete
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
[22081] Fix | Delete
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
[22082] Fix | Delete
};
[22083] Fix | Delete
[22084] Fix | Delete
function __metadata(metadataKey, metadataValue) {
[22085] Fix | Delete
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
[22086] Fix | Delete
}
[22087] Fix | Delete
[22088] Fix | Delete
function __awaiter(thisArg, _arguments, P, generator) {
[22089] Fix | Delete
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
[22090] Fix | Delete
return new (P || (P = Promise))(function (resolve, reject) {
[22091] Fix | Delete
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
[22092] Fix | Delete
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
[22093] Fix | Delete
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
[22094] Fix | Delete
step((generator = generator.apply(thisArg, _arguments || [])).next());
[22095] Fix | Delete
});
[22096] Fix | Delete
}
[22097] Fix | Delete
[22098] Fix | Delete
function __generator(thisArg, body) {
[22099] Fix | Delete
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
[22100] Fix | Delete
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
[22101] Fix | Delete
function verb(n) { return function (v) { return step([n, v]); }; }
[22102] Fix | Delete
function step(op) {
[22103] Fix | Delete
if (f) throw new TypeError("Generator is already executing.");
[22104] Fix | Delete
while (g && (g = 0, op[0] && (_ = 0)), _) try {
[22105] Fix | Delete
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
[22106] Fix | Delete
if (y = 0, t) op = [op[0] & 2, t.value];
[22107] Fix | Delete
switch (op[0]) {
[22108] Fix | Delete
case 0: case 1: t = op; break;
[22109] Fix | Delete
case 4: _.label++; return { value: op[1], done: false };
[22110] Fix | Delete
case 5: _.label++; y = op[1]; op = [0]; continue;
[22111] Fix | Delete
case 7: op = _.ops.pop(); _.trys.pop(); continue;
[22112] Fix | Delete
default:
[22113] Fix | Delete
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
[22114] Fix | Delete
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
[22115] Fix | Delete
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
[22116] Fix | Delete
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
[22117] Fix | Delete
if (t[2]) _.ops.pop();
[22118] Fix | Delete
_.trys.pop(); continue;
[22119] Fix | Delete
}
[22120] Fix | Delete
op = body.call(thisArg, _);
[22121] Fix | Delete
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
[22122] Fix | Delete
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
[22123] Fix | Delete
}
[22124] Fix | Delete
}
[22125] Fix | Delete
[22126] Fix | Delete
var __createBinding = Object.create ? (function(o, m, k, k2) {
[22127] Fix | Delete
if (k2 === undefined) k2 = k;
[22128] Fix | Delete
var desc = Object.getOwnPropertyDescriptor(m, k);
[22129] Fix | Delete
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
[22130] Fix | Delete
desc = { enumerable: true, get: function() { return m[k]; } };
[22131] Fix | Delete
}
[22132] Fix | Delete
Object.defineProperty(o, k2, desc);
[22133] Fix | Delete
}) : (function(o, m, k, k2) {
[22134] Fix | Delete
if (k2 === undefined) k2 = k;
[22135] Fix | Delete
o[k2] = m[k];
[22136] Fix | Delete
});
[22137] Fix | Delete
[22138] Fix | Delete
function __exportStar(m, o) {
[22139] Fix | Delete
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
[22140] Fix | Delete
}
[22141] Fix | Delete
[22142] Fix | Delete
function __values(o) {
[22143] Fix | Delete
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
[22144] Fix | Delete
if (m) return m.call(o);
[22145] Fix | Delete
if (o && typeof o.length === "number") return {
[22146] Fix | Delete
next: function () {
[22147] Fix | Delete
if (o && i >= o.length) o = void 0;
[22148] Fix | Delete
return { value: o && o[i++], done: !o };
[22149] Fix | Delete
}
[22150] Fix | Delete
};
[22151] Fix | Delete
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
[22152] Fix | Delete
}
[22153] Fix | Delete
[22154] Fix | Delete
function __read(o, n) {
[22155] Fix | Delete
var m = typeof Symbol === "function" && o[Symbol.iterator];
[22156] Fix | Delete
if (!m) return o;
[22157] Fix | Delete
var i = m.call(o), r, ar = [], e;
[22158] Fix | Delete
try {
[22159] Fix | Delete
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
[22160] Fix | Delete
}
[22161] Fix | Delete
catch (error) { e = { error: error }; }
[22162] Fix | Delete
finally {
[22163] Fix | Delete
try {
[22164] Fix | Delete
if (r && !r.done && (m = i["return"])) m.call(i);
[22165] Fix | Delete
}
[22166] Fix | Delete
finally { if (e) throw e.error; }
[22167] Fix | Delete
}
[22168] Fix | Delete
return ar;
[22169] Fix | Delete
}
[22170] Fix | Delete
[22171] Fix | Delete
/** @deprecated */
[22172] Fix | Delete
function __spread() {
[22173] Fix | Delete
for (var ar = [], i = 0; i < arguments.length; i++)
[22174] Fix | Delete
ar = ar.concat(__read(arguments[i]));
[22175] Fix | Delete
return ar;
[22176] Fix | Delete
}
[22177] Fix | Delete
[22178] Fix | Delete
/** @deprecated */
[22179] Fix | Delete
function __spreadArrays() {
[22180] Fix | Delete
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
[22181] Fix | Delete
for (var r = Array(s), k = 0, i = 0; i < il; i++)
[22182] Fix | Delete
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
[22183] Fix | Delete
r[k] = a[j];
[22184] Fix | Delete
return r;
[22185] Fix | Delete
}
[22186] Fix | Delete
[22187] Fix | Delete
function __spreadArray(to, from, pack) {
[22188] Fix | Delete
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
[22189] Fix | Delete
if (ar || !(i in from)) {
[22190] Fix | Delete
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
[22191] Fix | Delete
ar[i] = from[i];
[22192] Fix | Delete
}
[22193] Fix | Delete
}
[22194] Fix | Delete
return to.concat(ar || Array.prototype.slice.call(from));
[22195] Fix | Delete
}
[22196] Fix | Delete
[22197] Fix | Delete
function __await(v) {
[22198] Fix | Delete
return this instanceof __await ? (this.v = v, this) : new __await(v);
[22199] Fix | Delete
}
[22200] Fix | Delete
[22201] Fix | Delete
function __asyncGenerator(thisArg, _arguments, generator) {
[22202] Fix | Delete
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
[22203] Fix | Delete
var g = generator.apply(thisArg, _arguments || []), i, q = [];
[22204] Fix | Delete
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
[22205] Fix | Delete
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
[22206] Fix | Delete
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
[22207] Fix | Delete
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
[22208] Fix | Delete
function fulfill(value) { resume("next", value); }
[22209] Fix | Delete
function reject(value) { resume("throw", value); }
[22210] Fix | Delete
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
[22211] Fix | Delete
}
[22212] Fix | Delete
[22213] Fix | Delete
function __asyncDelegator(o) {
[22214] Fix | Delete
var i, p;
[22215] Fix | Delete
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
[22216] Fix | Delete
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
[22217] Fix | Delete
}
[22218] Fix | Delete
[22219] Fix | Delete
function __asyncValues(o) {
[22220] Fix | Delete
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
[22221] Fix | Delete
var m = o[Symbol.asyncIterator], i;
[22222] Fix | Delete
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
[22223] Fix | Delete
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
[22224] Fix | Delete
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
[22225] Fix | Delete
}
[22226] Fix | Delete
[22227] Fix | Delete
function __makeTemplateObject(cooked, raw) {
[22228] Fix | Delete
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
[22229] Fix | Delete
return cooked;
[22230] Fix | Delete
};
[22231] Fix | Delete
[22232] Fix | Delete
var __setModuleDefault = Object.create ? (function(o, v) {
[22233] Fix | Delete
Object.defineProperty(o, "default", { enumerable: true, value: v });
[22234] Fix | Delete
}) : function(o, v) {
[22235] Fix | Delete
o["default"] = v;
[22236] Fix | Delete
};
[22237] Fix | Delete
[22238] Fix | Delete
function __importStar(mod) {
[22239] Fix | Delete
if (mod && mod.__esModule) return mod;
[22240] Fix | Delete
var result = {};
[22241] Fix | Delete
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
[22242] Fix | Delete
__setModuleDefault(result, mod);
[22243] Fix | Delete
return result;
[22244] Fix | Delete
}
[22245] Fix | Delete
[22246] Fix | Delete
function __importDefault(mod) {
[22247] Fix | Delete
return (mod && mod.__esModule) ? mod : { default: mod };
[22248] Fix | Delete
}
[22249] Fix | Delete
[22250] Fix | Delete
function __classPrivateFieldGet(receiver, state, kind, f) {
[22251] Fix | Delete
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
[22252] Fix | Delete
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
[22253] Fix | Delete
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
[22254] Fix | Delete
}
[22255] Fix | Delete
[22256] Fix | Delete
function __classPrivateFieldSet(receiver, state, value, kind, f) {
[22257] Fix | Delete
if (kind === "m") throw new TypeError("Private method is not writable");
[22258] Fix | Delete
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
[22259] Fix | Delete
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
[22260] Fix | Delete
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
[22261] Fix | Delete
}
[22262] Fix | Delete
[22263] Fix | Delete
function __classPrivateFieldIn(state, receiver) {
[22264] Fix | Delete
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
[22265] Fix | Delete
return typeof state === "function" ? receiver === state : state.has(receiver);
[22266] Fix | Delete
}
[22267] Fix | Delete
[22268] Fix | Delete
function __addDisposableResource(env, value, async) {
[22269] Fix | Delete
if (value !== null && value !== void 0) {
[22270] Fix | Delete
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
[22271] Fix | Delete
var dispose;
[22272] Fix | Delete
if (async) {
[22273] Fix | Delete
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
[22274] Fix | Delete
dispose = value[Symbol.asyncDispose];
[22275] Fix | Delete
}
[22276] Fix | Delete
if (dispose === void 0) {
[22277] Fix | Delete
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
[22278] Fix | Delete
dispose = value[Symbol.dispose];
[22279] Fix | Delete
}
[22280] Fix | Delete
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
[22281] Fix | Delete
env.stack.push({ value: value, dispose: dispose, async: async });
[22282] Fix | Delete
}
[22283] Fix | Delete
else if (async) {
[22284] Fix | Delete
env.stack.push({ async: true });
[22285] Fix | Delete
}
[22286] Fix | Delete
return value;
[22287] Fix | Delete
}
[22288] Fix | Delete
[22289] Fix | Delete
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
[22290] Fix | Delete
var e = new Error(message);
[22291] Fix | Delete
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
[22292] Fix | Delete
};
[22293] Fix | Delete
[22294] Fix | Delete
function __disposeResources(env) {
[22295] Fix | Delete
function fail(e) {
[22296] Fix | Delete
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
[22297] Fix | Delete
env.hasError = true;
[22298] Fix | Delete
}
[22299] Fix | Delete
function next() {
[22300] Fix | Delete
while (env.stack.length) {
[22301] Fix | Delete
var rec = env.stack.pop();
[22302] Fix | Delete
try {
[22303] Fix | Delete
var result = rec.dispose && rec.dispose.call(rec.value);
[22304] Fix | Delete
if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
[22305] Fix | Delete
}
[22306] Fix | Delete
catch (e) {
[22307] Fix | Delete
fail(e);
[22308] Fix | Delete
}
[22309] Fix | Delete
}
[22310] Fix | Delete
if (env.hasError) throw env.error;
[22311] Fix | Delete
}
[22312] Fix | Delete
return next();
[22313] Fix | Delete
}
[22314] Fix | Delete
[22315] Fix | Delete
/* harmony default export */ const tslib_es6 = ({
[22316] Fix | Delete
__extends,
[22317] Fix | Delete
__assign,
[22318] Fix | Delete
__rest,
[22319] Fix | Delete
__decorate,
[22320] Fix | Delete
__param,
[22321] Fix | Delete
__metadata,
[22322] Fix | Delete
__awaiter,
[22323] Fix | Delete
__generator,
[22324] Fix | Delete
__createBinding,
[22325] Fix | Delete
__exportStar,
[22326] Fix | Delete
__values,
[22327] Fix | Delete
__read,
[22328] Fix | Delete
__spread,
[22329] Fix | Delete
__spreadArrays,
[22330] Fix | Delete
__spreadArray,
[22331] Fix | Delete
__await,
[22332] Fix | Delete
__asyncGenerator,
[22333] Fix | Delete
__asyncDelegator,
[22334] Fix | Delete
__asyncValues,
[22335] Fix | Delete
__makeTemplateObject,
[22336] Fix | Delete
__importStar,
[22337] Fix | Delete
__importDefault,
[22338] Fix | Delete
__classPrivateFieldGet,
[22339] Fix | Delete
__classPrivateFieldSet,
[22340] Fix | Delete
__classPrivateFieldIn,
[22341] Fix | Delete
__addDisposableResource,
[22342] Fix | Delete
__disposeResources,
[22343] Fix | Delete
});
[22344] Fix | Delete
[22345] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/lower-case/dist.es2015/index.js
[22346] Fix | Delete
/**
[22347] Fix | Delete
* Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt
[22348] Fix | Delete
*/
[22349] Fix | Delete
var SUPPORTED_LOCALE = {
[22350] Fix | Delete
tr: {
[22351] Fix | Delete
regexp: /\u0130|\u0049|\u0049\u0307/g,
[22352] Fix | Delete
map: {
[22353] Fix | Delete
İ: "\u0069",
[22354] Fix | Delete
I: "\u0131",
[22355] Fix | Delete
İ: "\u0069",
[22356] Fix | Delete
},
[22357] Fix | Delete
},
[22358] Fix | Delete
az: {
[22359] Fix | Delete
regexp: /\u0130/g,
[22360] Fix | Delete
map: {
[22361] Fix | Delete
İ: "\u0069",
[22362] Fix | Delete
I: "\u0131",
[22363] Fix | Delete
İ: "\u0069",
[22364] Fix | Delete
},
[22365] Fix | Delete
},
[22366] Fix | Delete
lt: {
[22367] Fix | Delete
regexp: /\u0049|\u004A|\u012E|\u00CC|\u00CD|\u0128/g,
[22368] Fix | Delete
map: {
[22369] Fix | Delete
I: "\u0069\u0307",
[22370] Fix | Delete
J: "\u006A\u0307",
[22371] Fix | Delete
Į: "\u012F\u0307",
[22372] Fix | Delete
Ì: "\u0069\u0307\u0300",
[22373] Fix | Delete
Í: "\u0069\u0307\u0301",
[22374] Fix | Delete
Ĩ: "\u0069\u0307\u0303",
[22375] Fix | Delete
},
[22376] Fix | Delete
},
[22377] Fix | Delete
};
[22378] Fix | Delete
/**
[22379] Fix | Delete
* Localized lower case.
[22380] Fix | Delete
*/
[22381] Fix | Delete
function localeLowerCase(str, locale) {
[22382] Fix | Delete
var lang = SUPPORTED_LOCALE[locale.toLowerCase()];
[22383] Fix | Delete
if (lang)
[22384] Fix | Delete
return lowerCase(str.replace(lang.regexp, function (m) { return lang.map[m]; }));
[22385] Fix | Delete
return lowerCase(str);
[22386] Fix | Delete
}
[22387] Fix | Delete
/**
[22388] Fix | Delete
* Lower case as a function.
[22389] Fix | Delete
*/
[22390] Fix | Delete
function lowerCase(str) {
[22391] Fix | Delete
return str.toLowerCase();
[22392] Fix | Delete
}
[22393] Fix | Delete
[22394] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/no-case/dist.es2015/index.js
[22395] Fix | Delete
[22396] Fix | Delete
// Support camel case ("camelCase" -> "camel Case" and "CAMELCase" -> "CAMEL Case").
[22397] Fix | Delete
var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];
[22398] Fix | Delete
// Remove all non-word characters.
[22399] Fix | Delete
var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;
[22400] Fix | Delete
/**
[22401] Fix | Delete
* Normalize the string into something other libraries can manipulate easier.
[22402] Fix | Delete
*/
[22403] Fix | Delete
function noCase(input, options) {
[22404] Fix | Delete
if (options === void 0) { options = {}; }
[22405] Fix | Delete
var _a = options.splitRegexp, splitRegexp = _a === void 0 ? DEFAULT_SPLIT_REGEXP : _a, _b = options.stripRegexp, stripRegexp = _b === void 0 ? DEFAULT_STRIP_REGEXP : _b, _c = options.transform, transform = _c === void 0 ? lowerCase : _c, _d = options.delimiter, delimiter = _d === void 0 ? " " : _d;
[22406] Fix | Delete
var result = replace(replace(input, splitRegexp, "$1\0$2"), stripRegexp, "\0");
[22407] Fix | Delete
var start = 0;
[22408] Fix | Delete
var end = result.length;
[22409] Fix | Delete
// Trim the delimiter from around the output string.
[22410] Fix | Delete
while (result.charAt(start) === "\0")
[22411] Fix | Delete
start++;
[22412] Fix | Delete
while (result.charAt(end - 1) === "\0")
[22413] Fix | Delete
end--;
[22414] Fix | Delete
// Transform each token independently.
[22415] Fix | Delete
return result.slice(start, end).split("\0").map(transform).join(delimiter);
[22416] Fix | Delete
}
[22417] Fix | Delete
/**
[22418] Fix | Delete
* Replace `re` in the input string with the replacement value.
[22419] Fix | Delete
*/
[22420] Fix | Delete
function replace(input, re, value) {
[22421] Fix | Delete
if (re instanceof RegExp)
[22422] Fix | Delete
return input.replace(re, value);
[22423] Fix | Delete
return re.reduce(function (input, re) { return input.replace(re, value); }, input);
[22424] Fix | Delete
}
[22425] Fix | Delete
[22426] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/dot-case/dist.es2015/index.js
[22427] Fix | Delete
[22428] Fix | Delete
[22429] Fix | Delete
function dotCase(input, options) {
[22430] Fix | Delete
if (options === void 0) { options = {}; }
[22431] Fix | Delete
return noCase(input, __assign({ delimiter: "." }, options));
[22432] Fix | Delete
}
[22433] Fix | Delete
[22434] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/param-case/dist.es2015/index.js
[22435] Fix | Delete
[22436] Fix | Delete
[22437] Fix | Delete
function paramCase(input, options) {
[22438] Fix | Delete
if (options === void 0) { options = {}; }
[22439] Fix | Delete
return dotCase(input, __assign({ delimiter: "-" }, options));
[22440] Fix | Delete
}
[22441] Fix | Delete
[22442] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/create-template-part-modal/utils.js
[22443] Fix | Delete
/**
[22444] Fix | Delete
* External dependencies
[22445] Fix | Delete
*/
[22446] Fix | Delete
[22447] Fix | Delete
[22448] Fix | Delete
/**
[22449] Fix | Delete
* WordPress dependencies
[22450] Fix | Delete
*/
[22451] Fix | Delete
[22452] Fix | Delete
[22453] Fix | Delete
[22454] Fix | Delete
/**
[22455] Fix | Delete
* Internal dependencies
[22456] Fix | Delete
*/
[22457] Fix | Delete
[22458] Fix | Delete
const useExistingTemplateParts = () => {
[22459] Fix | Delete
return (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_coreData_namespaceObject.store).getEntityRecords('postType', TEMPLATE_PART_POST_TYPE, {
[22460] Fix | Delete
per_page: -1
[22461] Fix | Delete
}), []);
[22462] Fix | Delete
};
[22463] Fix | Delete
[22464] Fix | Delete
/**
[22465] Fix | Delete
* Return a unique template part title based on
[22466] Fix | Delete
* the given title and existing template parts.
[22467] Fix | Delete
*
[22468] Fix | Delete
* @param {string} title The original template part title.
[22469] Fix | Delete
* @param {Object} templateParts The array of template part entities.
[22470] Fix | Delete
* @return {string} A unique template part title.
[22471] Fix | Delete
*/
[22472] Fix | Delete
const getUniqueTemplatePartTitle = (title, templateParts) => {
[22473] Fix | Delete
const lowercaseTitle = title.toLowerCase();
[22474] Fix | Delete
const existingTitles = templateParts.map(templatePart => templatePart.title.rendered.toLowerCase());
[22475] Fix | Delete
if (!existingTitles.includes(lowercaseTitle)) {
[22476] Fix | Delete
return title;
[22477] Fix | Delete
}
[22478] Fix | Delete
let suffix = 2;
[22479] Fix | Delete
while (existingTitles.includes(`${lowercaseTitle} ${suffix}`)) {
[22480] Fix | Delete
suffix++;
[22481] Fix | Delete
}
[22482] Fix | Delete
return `${title} ${suffix}`;
[22483] Fix | Delete
};
[22484] Fix | Delete
[22485] Fix | Delete
/**
[22486] Fix | Delete
* Get a valid slug for a template part.
[22487] Fix | Delete
* Currently template parts only allow latin chars.
[22488] Fix | Delete
* The fallback slug will receive suffix by default.
[22489] Fix | Delete
*
[22490] Fix | Delete
* @param {string} title The template part title.
[22491] Fix | Delete
* @return {string} A valid template part slug.
[22492] Fix | Delete
*/
[22493] Fix | Delete
const getCleanTemplatePartSlug = title => {
[22494] Fix | Delete
return paramCase(title).replace(/[^\w-]+/g, '') || 'wp-custom-part';
[22495] Fix | Delete
};
[22496] Fix | Delete
[22497] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/create-template-part-modal/index.js
[22498] Fix | Delete
/**
[22499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function