Sync
This commit is contained in:
1
public/build/assets/GetEmbedCode-3a7150bd.js
Normal file
1
public/build/assets/GetEmbedCode-3a7150bd.js
Normal file
@@ -0,0 +1 @@
|
||||
import{_ as a,l as r,c as n,a as t,o as c}from"./app-front-9abaded4.js";const m={name:"GetEmbedCode",mixins:[],components:{},props:["url","name"],data:()=>({imgSrc:"https://cdn.aibuddytool.com/featured-on-aibuddytool-1-1000.webp",showToast:!1}),computed:{embedCode(){return"<!-- "+this.name+' featured by AiBuddyTool.com --><a href="'+this.url+'" target="_blank"><img alt="'+this.name+'" style="width: 250px; height: auto" src="'+this.imgSrc+'"></a>'}},methods:{getEmbedCode(){const e=document.createElement("textarea");e.value=this.embedCode,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),r("Copied! Paste the HTML embed code at the bottom of your business website footer.",{position:"bottom-center",type:"success",timeout:3e3,closeOnClick:!0,pauseOnFocusLoss:!0,pauseOnHover:!0,draggable:!0,draggablePercent:.6,showCloseButtonOnHover:!1,hideProgressBar:!1,closeButton:!0,icon:!0,rtl:!1})}},mounted(){}},u={class:"d-grid gap-2 mx-auto",style:{width:"250px"}},i=["src"];function l(e,o,b,p,h,s){return c(),n("div",null,[t("div",u,[t("img",{style:{width:"250px",height:"auto"},src:e.imgSrc,alt:"Featured banner"},null,8,i),t("button",{onClick:o[0]||(o[0]=(...d)=>s.getEmbedCode&&s.getEmbedCode(...d)),class:"btn btn-sm btn-outline-primary px-3"}," Get HTML embed code ")])])}const f=a(m,[["render",l]]);export{f as default};
|
||||
BIN
public/build/assets/GetEmbedCode-3a7150bd.js.gz
Normal file
BIN
public/build/assets/GetEmbedCode-3a7150bd.js.gz
Normal file
Binary file not shown.
@@ -1,426 +0,0 @@
|
||||
import {
|
||||
Y as _,
|
||||
_ as y,
|
||||
a as b,
|
||||
i as g,
|
||||
D as c,
|
||||
G as w,
|
||||
I as $,
|
||||
h as f,
|
||||
Z as S,
|
||||
$ as I,
|
||||
} from "./app-admin-62da08c5.js";
|
||||
var m = _();
|
||||
class p {
|
||||
constructor(e, t, r) {
|
||||
(this.name = e),
|
||||
(this.definition = t),
|
||||
(this.bindings = t.bindings ?? {}),
|
||||
(this.wheres = t.wheres ?? {}),
|
||||
(this.config = r);
|
||||
}
|
||||
get template() {
|
||||
return `${this.origin}/${this.definition.uri}`.replace(/\/+$/, "");
|
||||
}
|
||||
get origin() {
|
||||
return this.config.absolute
|
||||
? this.definition.domain
|
||||
? `${this.config.url.match(/^\w+:\/\//)[0]}${this.definition.domain}${
|
||||
this.config.port ? `:${this.config.port}` : ""
|
||||
}`
|
||||
: this.config.url
|
||||
: "";
|
||||
}
|
||||
get parameterSegments() {
|
||||
var e;
|
||||
return (
|
||||
((e = this.template.match(/{[^}?]+\??}/g)) == null
|
||||
? void 0
|
||||
: e.map((t) => ({
|
||||
name: t.replace(/{|\??}/g, ""),
|
||||
required: !/\?}$/.test(t),
|
||||
}))) ?? []
|
||||
);
|
||||
}
|
||||
matchesUrl(e) {
|
||||
if (!this.definition.methods.includes("GET")) return !1;
|
||||
const t = this.template
|
||||
.replace(/(\/?){([^}?]*)(\??)}/g, (n, l, u, h) => {
|
||||
var d;
|
||||
const a = `(?<${u}>${
|
||||
((d = this.wheres[u]) == null
|
||||
? void 0
|
||||
: d.replace(/(^\^)|(\$$)/g, "")) || "[^/?]+"
|
||||
})`;
|
||||
return h ? `(${l}${a})?` : `${l}${a}`;
|
||||
})
|
||||
.replace(/^\w+:\/\//, ""),
|
||||
[r, s] = e.replace(/^\w+:\/\//, "").split("?"),
|
||||
i = new RegExp(`^${t}/?$`).exec(r);
|
||||
if (i) {
|
||||
for (const n in i.groups)
|
||||
i.groups[n] =
|
||||
typeof i.groups[n] == "string"
|
||||
? decodeURIComponent(i.groups[n])
|
||||
: i.groups[n];
|
||||
return { params: i.groups, query: m.parse(s) };
|
||||
}
|
||||
return !1;
|
||||
}
|
||||
compile(e) {
|
||||
const t = this.parameterSegments;
|
||||
return t.length
|
||||
? this.template
|
||||
.replace(/{([^}?]+)(\??)}/g, (r, s, i) => {
|
||||
if (!i && [null, void 0].includes(e[s]))
|
||||
throw new Error(
|
||||
`Ziggy error: '${s}' parameter is required for route '${this.name}'.`,
|
||||
);
|
||||
if (this.wheres[s]) {
|
||||
if (
|
||||
!new RegExp(
|
||||
`^${i ? `(${this.wheres[s]})?` : this.wheres[s]}$`,
|
||||
).test(e[s] ?? "")
|
||||
)
|
||||
throw new Error(
|
||||
`Ziggy error: '${s}' parameter does not match required format '${this.wheres[s]}' for route '${this.name}'.`,
|
||||
);
|
||||
if (t[t.length - 1].name === s)
|
||||
return encodeURIComponent(e[s] ?? "").replace(/%2F/g, "/");
|
||||
}
|
||||
return encodeURIComponent(e[s] ?? "");
|
||||
})
|
||||
.replace(`${this.origin}//`, `${this.origin}/`)
|
||||
.replace(/\/+$/, "")
|
||||
: this.template;
|
||||
}
|
||||
}
|
||||
class v extends String {
|
||||
constructor(e, t, r = !0, s) {
|
||||
if (
|
||||
(super(),
|
||||
(this._config =
|
||||
s ??
|
||||
(typeof Ziggy < "u"
|
||||
? Ziggy
|
||||
: globalThis == null
|
||||
? void 0
|
||||
: globalThis.Ziggy)),
|
||||
(this._config = { ...this._config, absolute: r }),
|
||||
e)
|
||||
) {
|
||||
if (!this._config.routes[e])
|
||||
throw new Error(`Ziggy error: route '${e}' is not in the route list.`);
|
||||
(this._route = new p(e, this._config.routes[e], this._config)),
|
||||
(this._params = this._parse(t));
|
||||
}
|
||||
}
|
||||
toString() {
|
||||
const e = Object.keys(this._params)
|
||||
.filter(
|
||||
(t) => !this._route.parameterSegments.some(({ name: r }) => r === t),
|
||||
)
|
||||
.filter((t) => t !== "_query")
|
||||
.reduce((t, r) => ({ ...t, [r]: this._params[r] }), {});
|
||||
return (
|
||||
this._route.compile(this._params) +
|
||||
m.stringify(
|
||||
{ ...e, ...this._params._query },
|
||||
{
|
||||
addQueryPrefix: !0,
|
||||
arrayFormat: "indices",
|
||||
encodeValuesOnly: !0,
|
||||
skipNulls: !0,
|
||||
encoder: (t, r) => (typeof t == "boolean" ? Number(t) : r(t)),
|
||||
},
|
||||
)
|
||||
);
|
||||
}
|
||||
_unresolve(e) {
|
||||
e
|
||||
? this._config.absolute &&
|
||||
e.startsWith("/") &&
|
||||
(e = this._location().host + e)
|
||||
: (e = this._currentUrl());
|
||||
let t = {};
|
||||
const [r, s] = Object.entries(this._config.routes).find(
|
||||
([i, n]) => (t = new p(i, n, this._config).matchesUrl(e)),
|
||||
) || [void 0, void 0];
|
||||
return { name: r, ...t, route: s };
|
||||
}
|
||||
_currentUrl() {
|
||||
const { host: e, pathname: t, search: r } = this._location();
|
||||
return (
|
||||
(this._config.absolute
|
||||
? e + t
|
||||
: t
|
||||
.replace(this._config.url.replace(/^\w*:\/\/[^/]+/, ""), "")
|
||||
.replace(/^\/+/, "/")) + r
|
||||
);
|
||||
}
|
||||
current(e, t) {
|
||||
const { name: r, params: s, query: i, route: n } = this._unresolve();
|
||||
if (!e) return r;
|
||||
const l = new RegExp(
|
||||
`^${e.replace(/\./g, "\\.").replace(/\*/g, ".*")}$`,
|
||||
).test(r);
|
||||
if ([null, void 0].includes(t) || !l) return l;
|
||||
const u = new p(r, n, this._config);
|
||||
t = this._parse(t, u);
|
||||
const h = { ...s, ...i };
|
||||
return Object.values(t).every((a) => !a) &&
|
||||
!Object.values(h).some((a) => a !== void 0)
|
||||
? !0
|
||||
: Object.entries(t).every(([a, d]) => h[a] == d);
|
||||
}
|
||||
_location() {
|
||||
var s, i, n;
|
||||
const {
|
||||
host: e = "",
|
||||
pathname: t = "",
|
||||
search: r = "",
|
||||
} = typeof window < "u" ? window.location : {};
|
||||
return {
|
||||
host: ((s = this._config.location) == null ? void 0 : s.host) ?? e,
|
||||
pathname:
|
||||
((i = this._config.location) == null ? void 0 : i.pathname) ?? t,
|
||||
search: ((n = this._config.location) == null ? void 0 : n.search) ?? r,
|
||||
};
|
||||
}
|
||||
get params() {
|
||||
const { params: e, query: t } = this._unresolve();
|
||||
return { ...e, ...t };
|
||||
}
|
||||
has(e) {
|
||||
return Object.keys(this._config.routes).includes(e);
|
||||
}
|
||||
_parse(e = {}, t = this._route) {
|
||||
e ?? (e = {}), (e = ["string", "number"].includes(typeof e) ? [e] : e);
|
||||
const r = t.parameterSegments.filter(
|
||||
({ name: s }) => !this._config.defaults[s],
|
||||
);
|
||||
return (
|
||||
Array.isArray(e)
|
||||
? (e = e.reduce(
|
||||
(s, i, n) =>
|
||||
r[n]
|
||||
? { ...s, [r[n].name]: i }
|
||||
: typeof i == "object"
|
||||
? { ...s, ...i }
|
||||
: { ...s, [i]: "" },
|
||||
{},
|
||||
))
|
||||
: r.length === 1 &&
|
||||
!e[r[0].name] &&
|
||||
(e.hasOwnProperty(Object.values(t.bindings)[0]) ||
|
||||
e.hasOwnProperty("id")) &&
|
||||
(e = { [r[0].name]: e }),
|
||||
{ ...this._defaults(t), ...this._substituteBindings(e, t) }
|
||||
);
|
||||
}
|
||||
_defaults(e) {
|
||||
return e.parameterSegments
|
||||
.filter(({ name: t }) => this._config.defaults[t])
|
||||
.reduce(
|
||||
(t, { name: r }, s) => ({ ...t, [r]: this._config.defaults[r] }),
|
||||
{},
|
||||
);
|
||||
}
|
||||
_substituteBindings(e, { bindings: t, parameterSegments: r }) {
|
||||
return Object.entries(e).reduce((s, [i, n]) => {
|
||||
if (
|
||||
!n ||
|
||||
typeof n != "object" ||
|
||||
Array.isArray(n) ||
|
||||
!r.some(({ name: l }) => l === i)
|
||||
)
|
||||
return { ...s, [i]: n };
|
||||
if (!n.hasOwnProperty(t[i]))
|
||||
if (n.hasOwnProperty("id")) t[i] = "id";
|
||||
else
|
||||
throw new Error(
|
||||
`Ziggy error: object passed as '${i}' parameter is missing route model binding key '${t[i]}'.`,
|
||||
);
|
||||
return { ...s, [i]: n[t[i]] };
|
||||
}, {});
|
||||
}
|
||||
valueOf() {
|
||||
return this.toString();
|
||||
}
|
||||
check(e) {
|
||||
return this.has(e);
|
||||
}
|
||||
}
|
||||
function x(o, e, t, r) {
|
||||
const s = new v(o, e, t, r);
|
||||
return o ? s.toString() : s;
|
||||
}
|
||||
const O = {
|
||||
name: "NativeImageBlock",
|
||||
props: { inputImage: { type: String, default: null } },
|
||||
data: () => ({
|
||||
isLoaded: !1,
|
||||
isUploading: !1,
|
||||
imgSrc: null,
|
||||
placeholderSrc: "https://placekitten.com/g/2100/900",
|
||||
}),
|
||||
computed: {
|
||||
getButtonName() {
|
||||
var o;
|
||||
return this.imgSrc != null &&
|
||||
((o = this.imgSrc) == null ? void 0 : o.length) > 0
|
||||
? "Change featured image"
|
||||
: "Upload featured image";
|
||||
},
|
||||
getBlurPx() {
|
||||
return this.imgSrc ? 0 : 12;
|
||||
},
|
||||
bgStyle() {
|
||||
return {
|
||||
backgroundImage: `url(${this.getImgSrc})`,
|
||||
backgroundPosition: "center",
|
||||
backgroundSize: "cover",
|
||||
filter: `blur(${this.getBlurPx}px)`,
|
||||
webkitFilter: `blur(${this.getBlurPx}px)`,
|
||||
};
|
||||
},
|
||||
getImgSrc() {
|
||||
var o;
|
||||
return this.imgSrc != null &&
|
||||
((o = this.imgSrc) == null ? void 0 : o.length) > 0
|
||||
? this.imgSrc
|
||||
: this.placeholderSrc;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
openFileInput() {
|
||||
this.$refs.fileInput.click();
|
||||
},
|
||||
handleFileChange(o) {
|
||||
const e = o.target.files[0];
|
||||
e && this.uploadImage(e);
|
||||
},
|
||||
uploadImage(o) {
|
||||
this.isUploading = !0;
|
||||
const e = new FormData();
|
||||
e.append("file", o),
|
||||
e.append("forceSize", "true"),
|
||||
b
|
||||
.post(x("api.admin.upload.cloud.image"), e, {
|
||||
headers: { "Content-Type": "multipart/form-data" },
|
||||
})
|
||||
.then((t) => {
|
||||
t.data.success === 1 && t.data.file && t.data.file.url
|
||||
? ((this.imgSrc = t.data.file.url),
|
||||
this.$emit("saved", t.data.file.url))
|
||||
: console.error(
|
||||
"Image upload failed. Invalid response format.",
|
||||
);
|
||||
})
|
||||
.catch((t) => {
|
||||
console.error("Image upload failed:", t.response);
|
||||
})
|
||||
.finally(() => {
|
||||
this.isUploading = !1;
|
||||
});
|
||||
},
|
||||
setInputImage() {
|
||||
var o;
|
||||
this.inputImage != null &&
|
||||
((o = this.inputImage) == null ? void 0 : o.length) > 0 &&
|
||||
(this.imgSrc = this.inputImage),
|
||||
(this.isLoaded = !0);
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
(this.isUploading = !1),
|
||||
setTimeout(
|
||||
function () {
|
||||
this.setInputImage(), (this.isLoaded = !0);
|
||||
}.bind(this),
|
||||
3e3,
|
||||
);
|
||||
},
|
||||
},
|
||||
j = (o) => (S("data-v-d3857a0e"), (o = o()), I(), o),
|
||||
k = { class: "card" },
|
||||
B = { class: "card-body ratio ratio-21x9 bg-dark overflow-hidden" },
|
||||
P = {
|
||||
class:
|
||||
"position-absolute w-100 h-100 d-flex justify-content-center text-center",
|
||||
},
|
||||
U = { key: 0, class: "align-self-center" },
|
||||
q = j(() =>
|
||||
c(
|
||||
"div",
|
||||
{ class: "spinner-border text-light", role: "status" },
|
||||
[c("span", { class: "visually-hidden" }, "Loading...")],
|
||||
-1,
|
||||
),
|
||||
),
|
||||
C = [q],
|
||||
E = { key: 1, class: "align-self-center" };
|
||||
function F(o, e, t, r, s, i) {
|
||||
return (
|
||||
f(),
|
||||
g("div", null, [
|
||||
c("div", k, [
|
||||
c("div", B, [
|
||||
c(
|
||||
"div",
|
||||
{
|
||||
class: "d-flex justify-content-center text-center rounded-2",
|
||||
style: w(i.bgStyle),
|
||||
},
|
||||
null,
|
||||
4,
|
||||
),
|
||||
c("div", P, [
|
||||
o.isUploading || !o.isLoaded
|
||||
? (f(), g("div", U, C))
|
||||
: (f(),
|
||||
g("div", E, [
|
||||
c(
|
||||
"input",
|
||||
{
|
||||
type: "file",
|
||||
onChange:
|
||||
e[0] ||
|
||||
(e[0] = (...n) =>
|
||||
i.handleFileChange && i.handleFileChange(...n)),
|
||||
accept: "image/*",
|
||||
ref: "fileInput",
|
||||
style: { display: "none" },
|
||||
},
|
||||
null,
|
||||
544,
|
||||
),
|
||||
c(
|
||||
"button",
|
||||
{
|
||||
class: "btn btn-primary",
|
||||
onClick:
|
||||
e[1] ||
|
||||
(e[1] = (...n) =>
|
||||
i.openFileInput && i.openFileInput(...n)),
|
||||
},
|
||||
$(i.getButtonName),
|
||||
1,
|
||||
),
|
||||
])),
|
||||
]),
|
||||
]),
|
||||
]),
|
||||
])
|
||||
);
|
||||
}
|
||||
const N = y(O, [
|
||||
["render", F],
|
||||
["__scopeId", "data-v-d3857a0e"],
|
||||
]),
|
||||
Z = Object.freeze(
|
||||
Object.defineProperty({ __proto__: null, default: N }, Symbol.toStringTag, {
|
||||
value: "Module",
|
||||
}),
|
||||
);
|
||||
export { Z as N, N as _, x as r };
|
||||
Binary file not shown.
1
public/build/assets/NativeImageBlock-e1ca4f0c.js
Normal file
1
public/build/assets/NativeImageBlock-e1ca4f0c.js
Normal file
File diff suppressed because one or more lines are too long
BIN
public/build/assets/NativeImageBlock-e1ca4f0c.js.gz
Normal file
BIN
public/build/assets/NativeImageBlock-e1ca4f0c.js.gz
Normal file
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
182
public/build/assets/PostEditor-7994d01f.js
Normal file
182
public/build/assets/PostEditor-7994d01f.js
Normal file
File diff suppressed because one or more lines are too long
BIN
public/build/assets/PostEditor-7994d01f.js.gz
Normal file
BIN
public/build/assets/PostEditor-7994d01f.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
83
public/build/assets/VueEditorJs-b146f969.js
Normal file
83
public/build/assets/VueEditorJs-b146f969.js
Normal file
File diff suppressed because one or more lines are too long
BIN
public/build/assets/VueEditorJs-b146f969.js.gz
Normal file
BIN
public/build/assets/VueEditorJs-b146f969.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
19
public/build/assets/app-front-9abaded4.js
Normal file
19
public/build/assets/app-front-9abaded4.js
Normal file
File diff suppressed because one or more lines are too long
BIN
public/build/assets/app-front-9abaded4.js.gz
Normal file
BIN
public/build/assets/app-front-9abaded4.js.gz
Normal file
Binary file not shown.
9
public/build/assets/app-front-f0fa37a6.css
Normal file
9
public/build/assets/app-front-f0fa37a6.css
Normal file
File diff suppressed because one or more lines are too long
BIN
public/build/assets/app-front-f0fa37a6.css.gz
Normal file
BIN
public/build/assets/app-front-f0fa37a6.css.gz
Normal file
Binary file not shown.
32
public/build/assets/bundle-095ad59b.js
Normal file
32
public/build/assets/bundle-095ad59b.js
Normal file
File diff suppressed because one or more lines are too long
BIN
public/build/assets/bundle-095ad59b.js.gz
Normal file
BIN
public/build/assets/bundle-095ad59b.js.gz
Normal file
Binary file not shown.
@@ -1,800 +0,0 @@
|
||||
import { g as E } from "./app-admin-62da08c5.js";
|
||||
function P(_, j) {
|
||||
for (var v = 0; v < j.length; v++) {
|
||||
const p = j[v];
|
||||
if (typeof p != "string" && !Array.isArray(p)) {
|
||||
for (const c in p)
|
||||
if (c !== "default" && !(c in _)) {
|
||||
const o = Object.getOwnPropertyDescriptor(p, c);
|
||||
o &&
|
||||
Object.defineProperty(
|
||||
_,
|
||||
c,
|
||||
o.get ? o : { enumerable: !0, get: () => p[c] },
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
return Object.freeze(
|
||||
Object.defineProperty(_, Symbol.toStringTag, { value: "Module" }),
|
||||
);
|
||||
}
|
||||
var T = { exports: {} };
|
||||
(function (_, j) {
|
||||
(function (v, p) {
|
||||
_.exports = p();
|
||||
})(window, function () {
|
||||
return (function (v) {
|
||||
var p = {};
|
||||
function c(o) {
|
||||
if (p[o]) return p[o].exports;
|
||||
var l = (p[o] = { i: o, l: !1, exports: {} });
|
||||
return v[o].call(l.exports, l, l.exports, c), (l.l = !0), l.exports;
|
||||
}
|
||||
return (
|
||||
(c.m = v),
|
||||
(c.c = p),
|
||||
(c.d = function (o, l, d) {
|
||||
c.o(o, l) || Object.defineProperty(o, l, { enumerable: !0, get: d });
|
||||
}),
|
||||
(c.r = function (o) {
|
||||
typeof Symbol < "u" &&
|
||||
Symbol.toStringTag &&
|
||||
Object.defineProperty(o, Symbol.toStringTag, { value: "Module" }),
|
||||
Object.defineProperty(o, "__esModule", { value: !0 });
|
||||
}),
|
||||
(c.t = function (o, l) {
|
||||
if (
|
||||
(1 & l && (o = c(o)),
|
||||
8 & l || (4 & l && typeof o == "object" && o && o.__esModule))
|
||||
)
|
||||
return o;
|
||||
var d = Object.create(null);
|
||||
if (
|
||||
(c.r(d),
|
||||
Object.defineProperty(d, "default", { enumerable: !0, value: o }),
|
||||
2 & l && typeof o != "string")
|
||||
)
|
||||
for (var f in o)
|
||||
c.d(
|
||||
d,
|
||||
f,
|
||||
function (b) {
|
||||
return o[b];
|
||||
}.bind(null, f),
|
||||
);
|
||||
return d;
|
||||
}),
|
||||
(c.n = function (o) {
|
||||
var l =
|
||||
o && o.__esModule
|
||||
? function () {
|
||||
return o.default;
|
||||
}
|
||||
: function () {
|
||||
return o;
|
||||
};
|
||||
return c.d(l, "a", l), l;
|
||||
}),
|
||||
(c.o = function (o, l) {
|
||||
return Object.prototype.hasOwnProperty.call(o, l);
|
||||
}),
|
||||
(c.p = "/"),
|
||||
c((c.s = 4))
|
||||
);
|
||||
})([
|
||||
function (v, p, c) {
|
||||
var o = c(1),
|
||||
l = c(2);
|
||||
typeof (l = l.__esModule ? l.default : l) == "string" &&
|
||||
(l = [[v.i, l, ""]]);
|
||||
var d = { insert: "head", singleton: !1 };
|
||||
o(l, d), (v.exports = l.locals || {});
|
||||
},
|
||||
function (v, p, c) {
|
||||
var o,
|
||||
l = function () {
|
||||
return (
|
||||
o === void 0 &&
|
||||
(o = !!(window && document && document.all && !window.atob)),
|
||||
o
|
||||
);
|
||||
},
|
||||
d = (function () {
|
||||
var r = {};
|
||||
return function (i) {
|
||||
if (r[i] === void 0) {
|
||||
var s = document.querySelector(i);
|
||||
if (
|
||||
window.HTMLIFrameElement &&
|
||||
s instanceof window.HTMLIFrameElement
|
||||
)
|
||||
try {
|
||||
s = s.contentDocument.head;
|
||||
} catch {
|
||||
s = null;
|
||||
}
|
||||
r[i] = s;
|
||||
}
|
||||
return r[i];
|
||||
};
|
||||
})(),
|
||||
f = [];
|
||||
function b(r) {
|
||||
for (var i = -1, s = 0; s < f.length; s++)
|
||||
if (f[s].identifier === r) {
|
||||
i = s;
|
||||
break;
|
||||
}
|
||||
return i;
|
||||
}
|
||||
function S(r, i) {
|
||||
for (var s = {}, u = [], m = 0; m < r.length; m++) {
|
||||
var g = r[m],
|
||||
y = i.base ? g[0] + i.base : g[0],
|
||||
C = s[y] || 0,
|
||||
O = "".concat(y, " ").concat(C);
|
||||
s[y] = C + 1;
|
||||
var L = b(O),
|
||||
M = { css: g[1], media: g[2], sourceMap: g[3] };
|
||||
L !== -1
|
||||
? (f[L].references++, f[L].updater(M))
|
||||
: f.push({ identifier: O, updater: h(M, i), references: 1 }),
|
||||
u.push(O);
|
||||
}
|
||||
return u;
|
||||
}
|
||||
function k(r) {
|
||||
var i = document.createElement("style"),
|
||||
s = r.attributes || {};
|
||||
if (s.nonce === void 0) {
|
||||
var u = c.nc;
|
||||
u && (s.nonce = u);
|
||||
}
|
||||
if (
|
||||
(Object.keys(s).forEach(function (g) {
|
||||
i.setAttribute(g, s[g]);
|
||||
}),
|
||||
typeof r.insert == "function")
|
||||
)
|
||||
r.insert(i);
|
||||
else {
|
||||
var m = d(r.insert || "head");
|
||||
if (!m)
|
||||
throw new Error(
|
||||
"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.",
|
||||
);
|
||||
m.appendChild(i);
|
||||
}
|
||||
return i;
|
||||
}
|
||||
var w,
|
||||
x =
|
||||
((w = []),
|
||||
function (r, i) {
|
||||
return (
|
||||
(w[r] = i),
|
||||
w.filter(Boolean).join(`
|
||||
`)
|
||||
);
|
||||
});
|
||||
function a(r, i, s, u) {
|
||||
var m = s
|
||||
? ""
|
||||
: u.media
|
||||
? "@media ".concat(u.media, " {").concat(u.css, "}")
|
||||
: u.css;
|
||||
if (r.styleSheet) r.styleSheet.cssText = x(i, m);
|
||||
else {
|
||||
var g = document.createTextNode(m),
|
||||
y = r.childNodes;
|
||||
y[i] && r.removeChild(y[i]),
|
||||
y.length ? r.insertBefore(g, y[i]) : r.appendChild(g);
|
||||
}
|
||||
}
|
||||
function e(r, i, s) {
|
||||
var u = s.css,
|
||||
m = s.media,
|
||||
g = s.sourceMap;
|
||||
if (
|
||||
(m ? r.setAttribute("media", m) : r.removeAttribute("media"),
|
||||
g &&
|
||||
btoa &&
|
||||
(u += `
|
||||
/*# sourceMappingURL=data:application/json;base64,`.concat(
|
||||
btoa(unescape(encodeURIComponent(JSON.stringify(g)))),
|
||||
" */",
|
||||
)),
|
||||
r.styleSheet)
|
||||
)
|
||||
r.styleSheet.cssText = u;
|
||||
else {
|
||||
for (; r.firstChild; ) r.removeChild(r.firstChild);
|
||||
r.appendChild(document.createTextNode(u));
|
||||
}
|
||||
}
|
||||
var t = null,
|
||||
n = 0;
|
||||
function h(r, i) {
|
||||
var s, u, m;
|
||||
if (i.singleton) {
|
||||
var g = n++;
|
||||
(s = t || (t = k(i))),
|
||||
(u = a.bind(null, s, g, !1)),
|
||||
(m = a.bind(null, s, g, !0));
|
||||
} else
|
||||
(s = k(i)),
|
||||
(u = e.bind(null, s, i)),
|
||||
(m = function () {
|
||||
(function (y) {
|
||||
if (y.parentNode === null) return !1;
|
||||
y.parentNode.removeChild(y);
|
||||
})(s);
|
||||
});
|
||||
return (
|
||||
u(r),
|
||||
function (y) {
|
||||
if (y) {
|
||||
if (
|
||||
y.css === r.css &&
|
||||
y.media === r.media &&
|
||||
y.sourceMap === r.sourceMap
|
||||
)
|
||||
return;
|
||||
u((r = y));
|
||||
} else m();
|
||||
}
|
||||
);
|
||||
}
|
||||
v.exports = function (r, i) {
|
||||
(i = i || {}).singleton ||
|
||||
typeof i.singleton == "boolean" ||
|
||||
(i.singleton = l());
|
||||
var s = S((r = r || []), i);
|
||||
return function (u) {
|
||||
if (
|
||||
((u = u || []),
|
||||
Object.prototype.toString.call(u) === "[object Array]")
|
||||
) {
|
||||
for (var m = 0; m < s.length; m++) {
|
||||
var g = b(s[m]);
|
||||
f[g].references--;
|
||||
}
|
||||
for (var y = S(u, i), C = 0; C < s.length; C++) {
|
||||
var O = b(s[C]);
|
||||
f[O].references === 0 && (f[O].updater(), f.splice(O, 1));
|
||||
}
|
||||
s = y;
|
||||
}
|
||||
};
|
||||
};
|
||||
},
|
||||
function (v, p, c) {
|
||||
(p = c(3)(!1)).push([
|
||||
v.i,
|
||||
`.cdx-list {
|
||||
margin: 0;
|
||||
padding-left: 40px;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.cdx-list__item {
|
||||
padding: 5.5px 0 5.5px 3px;
|
||||
line-height: 1.6em;
|
||||
}
|
||||
|
||||
.cdx-list--unordered {
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
.cdx-list--ordered {
|
||||
list-style: decimal;
|
||||
}
|
||||
|
||||
.cdx-list-settings {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.cdx-list-settings .cdx-settings-button {
|
||||
width: 50%;
|
||||
}
|
||||
`,
|
||||
"",
|
||||
]),
|
||||
(v.exports = p);
|
||||
},
|
||||
function (v, p, c) {
|
||||
v.exports = function (o) {
|
||||
var l = [];
|
||||
return (
|
||||
(l.toString = function () {
|
||||
return this.map(function (d) {
|
||||
var f = (function (b, S) {
|
||||
var k = b[1] || "",
|
||||
w = b[3];
|
||||
if (!w) return k;
|
||||
if (S && typeof btoa == "function") {
|
||||
var x =
|
||||
((e = w),
|
||||
(t = btoa(
|
||||
unescape(encodeURIComponent(JSON.stringify(e))),
|
||||
)),
|
||||
(n =
|
||||
"sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(
|
||||
t,
|
||||
)),
|
||||
"/*# ".concat(n, " */")),
|
||||
a = w.sources.map(function (h) {
|
||||
return "/*# sourceURL="
|
||||
.concat(w.sourceRoot || "")
|
||||
.concat(h, " */");
|
||||
});
|
||||
return [k].concat(a).concat([x]).join(`
|
||||
`);
|
||||
}
|
||||
var e, t, n;
|
||||
return [k].join(`
|
||||
`);
|
||||
})(d, o);
|
||||
return d[2] ? "@media ".concat(d[2], " {").concat(f, "}") : f;
|
||||
}).join("");
|
||||
}),
|
||||
(l.i = function (d, f, b) {
|
||||
typeof d == "string" && (d = [[null, d, ""]]);
|
||||
var S = {};
|
||||
if (b)
|
||||
for (var k = 0; k < this.length; k++) {
|
||||
var w = this[k][0];
|
||||
w != null && (S[w] = !0);
|
||||
}
|
||||
for (var x = 0; x < d.length; x++) {
|
||||
var a = [].concat(d[x]);
|
||||
(b && S[a[0]]) ||
|
||||
(f &&
|
||||
(a[2]
|
||||
? (a[2] = "".concat(f, " and ").concat(a[2]))
|
||||
: (a[2] = f)),
|
||||
l.push(a));
|
||||
}
|
||||
}),
|
||||
l
|
||||
);
|
||||
};
|
||||
},
|
||||
function (v, p, c) {
|
||||
c.r(p),
|
||||
c.d(p, "default", function () {
|
||||
return x;
|
||||
}),
|
||||
c(0);
|
||||
const o =
|
||||
'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><line x1="9" x2="19" y1="7" y2="7" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="9" x2="19" y1="12" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="9" x2="19" y1="17" y2="17" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 17H4.99002"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 12H4.99002"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 7H4.99002"/></svg>';
|
||||
function l(a) {
|
||||
return (
|
||||
(function (e) {
|
||||
if (Array.isArray(e)) return d(e);
|
||||
})(a) ||
|
||||
(function (e) {
|
||||
if (typeof Symbol < "u" && Symbol.iterator in Object(e))
|
||||
return Array.from(e);
|
||||
})(a) ||
|
||||
(function (e, t) {
|
||||
if (e) {
|
||||
if (typeof e == "string") return d(e, t);
|
||||
var n = Object.prototype.toString.call(e).slice(8, -1);
|
||||
if (
|
||||
(n === "Object" && e.constructor && (n = e.constructor.name),
|
||||
n === "Map" || n === "Set")
|
||||
)
|
||||
return Array.from(e);
|
||||
if (
|
||||
n === "Arguments" ||
|
||||
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
|
||||
)
|
||||
return d(e, t);
|
||||
}
|
||||
})(a) ||
|
||||
(function () {
|
||||
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
||||
})()
|
||||
);
|
||||
}
|
||||
function d(a, e) {
|
||||
(e == null || e > a.length) && (e = a.length);
|
||||
for (var t = 0, n = new Array(e); t < e; t++) n[t] = a[t];
|
||||
return n;
|
||||
}
|
||||
function f(a, e) {
|
||||
var t = Object.keys(a);
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
var n = Object.getOwnPropertySymbols(a);
|
||||
e &&
|
||||
(n = n.filter(function (h) {
|
||||
return Object.getOwnPropertyDescriptor(a, h).enumerable;
|
||||
})),
|
||||
t.push.apply(t, n);
|
||||
}
|
||||
return t;
|
||||
}
|
||||
function b(a) {
|
||||
for (var e = 1; e < arguments.length; e++) {
|
||||
var t = arguments[e] != null ? arguments[e] : {};
|
||||
e % 2
|
||||
? f(Object(t), !0).forEach(function (n) {
|
||||
S(a, n, t[n]);
|
||||
})
|
||||
: Object.getOwnPropertyDescriptors
|
||||
? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t))
|
||||
: f(Object(t)).forEach(function (n) {
|
||||
Object.defineProperty(
|
||||
a,
|
||||
n,
|
||||
Object.getOwnPropertyDescriptor(t, n),
|
||||
);
|
||||
});
|
||||
}
|
||||
return a;
|
||||
}
|
||||
function S(a, e, t) {
|
||||
return (
|
||||
e in a
|
||||
? Object.defineProperty(a, e, {
|
||||
value: t,
|
||||
enumerable: !0,
|
||||
configurable: !0,
|
||||
writable: !0,
|
||||
})
|
||||
: (a[e] = t),
|
||||
a
|
||||
);
|
||||
}
|
||||
function k(a, e) {
|
||||
for (var t = 0; t < e.length; t++) {
|
||||
var n = e[t];
|
||||
(n.enumerable = n.enumerable || !1),
|
||||
(n.configurable = !0),
|
||||
"value" in n && (n.writable = !0),
|
||||
Object.defineProperty(a, n.key, n);
|
||||
}
|
||||
}
|
||||
function w(a, e, t) {
|
||||
return e && k(a.prototype, e), t && k(a, t), a;
|
||||
}
|
||||
var x = (function () {
|
||||
function a(e) {
|
||||
var t = e.data,
|
||||
n = e.config,
|
||||
h = e.api,
|
||||
r = e.readOnly;
|
||||
(function (i, s) {
|
||||
if (!(i instanceof s))
|
||||
throw new TypeError("Cannot call a class as a function");
|
||||
})(this, a),
|
||||
(this._elements = { wrapper: null }),
|
||||
(this.api = h),
|
||||
(this.readOnly = r),
|
||||
(this.settings = [
|
||||
{
|
||||
name: "unordered",
|
||||
label: this.api.i18n.t("Unordered"),
|
||||
icon: o,
|
||||
default: n.defaultStyle === "unordered" || !1,
|
||||
},
|
||||
{
|
||||
name: "ordered",
|
||||
label: this.api.i18n.t("Ordered"),
|
||||
icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><line x1="12" x2="19" y1="7" y2="7" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="12" x2="19" y1="12" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="12" x2="19" y1="17" y2="17" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M7.79999 14L7.79999 7.2135C7.79999 7.12872 7.7011 7.0824 7.63597 7.13668L4.79999 9.5"/></svg>',
|
||||
default: n.defaultStyle === "ordered" || !0,
|
||||
},
|
||||
]),
|
||||
(this._data = {
|
||||
style: this.settings.find(function (i) {
|
||||
return i.default === !0;
|
||||
}).name,
|
||||
items: [],
|
||||
}),
|
||||
(this.data = t);
|
||||
}
|
||||
return (
|
||||
w(a, null, [
|
||||
{
|
||||
key: "isReadOnlySupported",
|
||||
get: function () {
|
||||
return !0;
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "enableLineBreaks",
|
||||
get: function () {
|
||||
return !0;
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "toolbox",
|
||||
get: function () {
|
||||
return { icon: o, title: "List" };
|
||||
},
|
||||
},
|
||||
]),
|
||||
w(
|
||||
a,
|
||||
[
|
||||
{
|
||||
key: "render",
|
||||
value: function () {
|
||||
var e = this;
|
||||
return (
|
||||
(this._elements.wrapper = this.makeMainTag(
|
||||
this._data.style,
|
||||
)),
|
||||
this._data.items.length
|
||||
? this._data.items.forEach(function (t) {
|
||||
e._elements.wrapper.appendChild(
|
||||
e._make("li", e.CSS.item, { innerHTML: t }),
|
||||
);
|
||||
})
|
||||
: this._elements.wrapper.appendChild(
|
||||
this._make("li", this.CSS.item),
|
||||
),
|
||||
this.readOnly ||
|
||||
this._elements.wrapper.addEventListener(
|
||||
"keydown",
|
||||
function (t) {
|
||||
switch (t.keyCode) {
|
||||
case 13:
|
||||
e.getOutofList(t);
|
||||
break;
|
||||
case 8:
|
||||
e.backspace(t);
|
||||
}
|
||||
},
|
||||
!1,
|
||||
),
|
||||
this._elements.wrapper
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "save",
|
||||
value: function () {
|
||||
return this.data;
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "renderSettings",
|
||||
value: function () {
|
||||
var e = this;
|
||||
return this.settings.map(function (t) {
|
||||
return b(
|
||||
b({}, t),
|
||||
{},
|
||||
{
|
||||
isActive: e._data.style === t.name,
|
||||
closeOnActivate: !0,
|
||||
onActivate: function () {
|
||||
return e.toggleTune(t.name);
|
||||
},
|
||||
},
|
||||
);
|
||||
});
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "onPaste",
|
||||
value: function (e) {
|
||||
var t = e.detail.data;
|
||||
this.data = this.pasteHandler(t);
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "makeMainTag",
|
||||
value: function (e) {
|
||||
var t =
|
||||
e === "ordered"
|
||||
? this.CSS.wrapperOrdered
|
||||
: this.CSS.wrapperUnordered,
|
||||
n = e === "ordered" ? "ol" : "ul";
|
||||
return this._make(
|
||||
n,
|
||||
[this.CSS.baseBlock, this.CSS.wrapper, t],
|
||||
{ contentEditable: !this.readOnly },
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "toggleTune",
|
||||
value: function (e) {
|
||||
for (
|
||||
var t = this.makeMainTag(e);
|
||||
this._elements.wrapper.hasChildNodes();
|
||||
|
||||
)
|
||||
t.appendChild(this._elements.wrapper.firstChild);
|
||||
this._elements.wrapper.replaceWith(t),
|
||||
(this._elements.wrapper = t),
|
||||
(this._data.style = e);
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "_make",
|
||||
value: function (e) {
|
||||
var t,
|
||||
n =
|
||||
arguments.length > 1 && arguments[1] !== void 0
|
||||
? arguments[1]
|
||||
: null,
|
||||
h =
|
||||
arguments.length > 2 && arguments[2] !== void 0
|
||||
? arguments[2]
|
||||
: {},
|
||||
r = document.createElement(e);
|
||||
Array.isArray(n)
|
||||
? (t = r.classList).add.apply(t, l(n))
|
||||
: n && r.classList.add(n);
|
||||
for (var i in h) r[i] = h[i];
|
||||
return r;
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "getOutofList",
|
||||
value: function (e) {
|
||||
var t = this._elements.wrapper.querySelectorAll(
|
||||
"." + this.CSS.item,
|
||||
);
|
||||
if (!(t.length < 2)) {
|
||||
var n = t[t.length - 1],
|
||||
h = this.currentItem;
|
||||
h !== n ||
|
||||
n.textContent.trim().length ||
|
||||
(h.parentElement.removeChild(h),
|
||||
this.api.blocks.insert(),
|
||||
this.api.caret.setToBlock(
|
||||
this.api.blocks.getCurrentBlockIndex(),
|
||||
),
|
||||
e.preventDefault(),
|
||||
e.stopPropagation());
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "backspace",
|
||||
value: function (e) {
|
||||
var t = this._elements.wrapper.querySelectorAll(
|
||||
"." + this.CSS.item,
|
||||
),
|
||||
n = t[0];
|
||||
n &&
|
||||
t.length < 2 &&
|
||||
!n.innerHTML.replace("<br>", " ").trim() &&
|
||||
e.preventDefault();
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "selectItem",
|
||||
value: function (e) {
|
||||
e.preventDefault();
|
||||
var t = window.getSelection(),
|
||||
n = t.anchorNode.parentNode.closest("." + this.CSS.item),
|
||||
h = new Range();
|
||||
h.selectNodeContents(n), t.removeAllRanges(), t.addRange(h);
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "pasteHandler",
|
||||
value: function (e) {
|
||||
var t,
|
||||
n = e.tagName;
|
||||
switch (n) {
|
||||
case "OL":
|
||||
t = "ordered";
|
||||
break;
|
||||
case "UL":
|
||||
case "LI":
|
||||
t = "unordered";
|
||||
}
|
||||
var h = { style: t, items: [] };
|
||||
if (n === "LI") h.items = [e.innerHTML];
|
||||
else {
|
||||
var r = Array.from(e.querySelectorAll("LI"));
|
||||
h.items = r
|
||||
.map(function (i) {
|
||||
return i.innerHTML;
|
||||
})
|
||||
.filter(function (i) {
|
||||
return !!i.trim();
|
||||
});
|
||||
}
|
||||
return h;
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "CSS",
|
||||
get: function () {
|
||||
return {
|
||||
baseBlock: this.api.styles.block,
|
||||
wrapper: "cdx-list",
|
||||
wrapperOrdered: "cdx-list--ordered",
|
||||
wrapperUnordered: "cdx-list--unordered",
|
||||
item: "cdx-list__item",
|
||||
};
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "data",
|
||||
set: function (e) {
|
||||
e || (e = {}),
|
||||
(this._data.style =
|
||||
e.style ||
|
||||
this.settings.find(function (n) {
|
||||
return n.default === !0;
|
||||
}).name),
|
||||
(this._data.items = e.items || []);
|
||||
var t = this._elements.wrapper;
|
||||
t && t.parentNode.replaceChild(this.render(), t);
|
||||
},
|
||||
get: function () {
|
||||
this._data.items = [];
|
||||
for (
|
||||
var e = this._elements.wrapper.querySelectorAll(
|
||||
".".concat(this.CSS.item),
|
||||
),
|
||||
t = 0;
|
||||
t < e.length;
|
||||
t++
|
||||
)
|
||||
e[t].innerHTML.replace("<br>", " ").trim() &&
|
||||
this._data.items.push(e[t].innerHTML);
|
||||
return this._data;
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "currentItem",
|
||||
get: function () {
|
||||
var e = window.getSelection().anchorNode;
|
||||
return (
|
||||
e.nodeType !== Node.ELEMENT_NODE && (e = e.parentNode),
|
||||
e.closest(".".concat(this.CSS.item))
|
||||
);
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
{
|
||||
key: "conversionConfig",
|
||||
get: function () {
|
||||
return {
|
||||
export: function (e) {
|
||||
return e.items.join(". ");
|
||||
},
|
||||
import: function (e) {
|
||||
return { items: [e], style: "unordered" };
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "sanitize",
|
||||
get: function () {
|
||||
return { style: {}, items: { br: !0 } };
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "pasteConfig",
|
||||
get: function () {
|
||||
return { tags: ["OL", "UL", "LI"] };
|
||||
},
|
||||
},
|
||||
],
|
||||
),
|
||||
a
|
||||
);
|
||||
})();
|
||||
},
|
||||
]).default;
|
||||
});
|
||||
})(T);
|
||||
var A = T.exports;
|
||||
const N = E(A),
|
||||
H = P({ __proto__: null, default: N }, [A]);
|
||||
export { N as L, H as b };
|
||||
Binary file not shown.
@@ -1,763 +0,0 @@
|
||||
import { g as N } from "./app-admin-62da08c5.js";
|
||||
function P(x, H) {
|
||||
for (var g = 0; g < H.length; g++) {
|
||||
const b = H[g];
|
||||
if (typeof b != "string" && !Array.isArray(b)) {
|
||||
for (const l in b)
|
||||
if (l !== "default" && !(l in x)) {
|
||||
const n = Object.getOwnPropertyDescriptor(b, l);
|
||||
n &&
|
||||
Object.defineProperty(
|
||||
x,
|
||||
l,
|
||||
n.get ? n : { enumerable: !0, get: () => b[l] },
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
return Object.freeze(
|
||||
Object.defineProperty(x, Symbol.toStringTag, { value: "Module" }),
|
||||
);
|
||||
}
|
||||
var E = { exports: {} };
|
||||
(function (x, H) {
|
||||
(function (g, b) {
|
||||
x.exports = b();
|
||||
})(window, function () {
|
||||
return (function (g) {
|
||||
var b = {};
|
||||
function l(n) {
|
||||
if (b[n]) return b[n].exports;
|
||||
var i = (b[n] = { i: n, l: !1, exports: {} });
|
||||
return g[n].call(i.exports, i, i.exports, l), (i.l = !0), i.exports;
|
||||
}
|
||||
return (
|
||||
(l.m = g),
|
||||
(l.c = b),
|
||||
(l.d = function (n, i, h) {
|
||||
l.o(n, i) || Object.defineProperty(n, i, { enumerable: !0, get: h });
|
||||
}),
|
||||
(l.r = function (n) {
|
||||
typeof Symbol < "u" &&
|
||||
Symbol.toStringTag &&
|
||||
Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }),
|
||||
Object.defineProperty(n, "__esModule", { value: !0 });
|
||||
}),
|
||||
(l.t = function (n, i) {
|
||||
if (
|
||||
(1 & i && (n = l(n)),
|
||||
8 & i || (4 & i && typeof n == "object" && n && n.__esModule))
|
||||
)
|
||||
return n;
|
||||
var h = Object.create(null);
|
||||
if (
|
||||
(l.r(h),
|
||||
Object.defineProperty(h, "default", { enumerable: !0, value: n }),
|
||||
2 & i && typeof n != "string")
|
||||
)
|
||||
for (var m in n)
|
||||
l.d(
|
||||
h,
|
||||
m,
|
||||
function (f) {
|
||||
return n[f];
|
||||
}.bind(null, m),
|
||||
);
|
||||
return h;
|
||||
}),
|
||||
(l.n = function (n) {
|
||||
var i =
|
||||
n && n.__esModule
|
||||
? function () {
|
||||
return n.default;
|
||||
}
|
||||
: function () {
|
||||
return n;
|
||||
};
|
||||
return l.d(i, "a", i), i;
|
||||
}),
|
||||
(l.o = function (n, i) {
|
||||
return Object.prototype.hasOwnProperty.call(n, i);
|
||||
}),
|
||||
(l.p = "/"),
|
||||
l((l.s = 5))
|
||||
);
|
||||
})([
|
||||
function (g, b, l) {
|
||||
var n = l(1);
|
||||
typeof n == "string" && (n = [[g.i, n, ""]]);
|
||||
var i = { hmr: !0, transform: void 0, insertInto: void 0 };
|
||||
l(3)(n, i), n.locals && (g.exports = n.locals);
|
||||
},
|
||||
function (g, b, l) {
|
||||
(g.exports = l(2)(!1)).push([
|
||||
g.i,
|
||||
`/**
|
||||
* Plugin styles
|
||||
*/
|
||||
.ce-header {
|
||||
padding: 0.6em 0 3px;
|
||||
margin: 0;
|
||||
line-height: 1.25em;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.ce-header p,
|
||||
.ce-header div{
|
||||
padding: 0 !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
/**
|
||||
* Styles for Plugin icon in Toolbar
|
||||
*/
|
||||
.ce-header__icon {}
|
||||
|
||||
.ce-header[contentEditable=true][data-placeholder]::before{
|
||||
position: absolute;
|
||||
content: attr(data-placeholder);
|
||||
color: #707684;
|
||||
font-weight: normal;
|
||||
display: none;
|
||||
cursor: text;
|
||||
}
|
||||
|
||||
.ce-header[contentEditable=true][data-placeholder]:empty::before {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.ce-header[contentEditable=true][data-placeholder]:empty:focus::before {
|
||||
display: none;
|
||||
}
|
||||
`,
|
||||
"",
|
||||
]);
|
||||
},
|
||||
function (g, b) {
|
||||
g.exports = function (l) {
|
||||
var n = [];
|
||||
return (
|
||||
(n.toString = function () {
|
||||
return this.map(function (i) {
|
||||
var h = (function (m, f) {
|
||||
var y = m[1] || "",
|
||||
u = m[3];
|
||||
if (!u) return y;
|
||||
if (f && typeof btoa == "function") {
|
||||
var o =
|
||||
((v = u),
|
||||
"/*# sourceMappingURL=data:application/json;charset=utf-8;base64," +
|
||||
btoa(
|
||||
unescape(encodeURIComponent(JSON.stringify(v))),
|
||||
) +
|
||||
" */"),
|
||||
s = u.sources.map(function (k) {
|
||||
return "/*# sourceURL=" + u.sourceRoot + k + " */";
|
||||
});
|
||||
return [y].concat(s).concat([o]).join(`
|
||||
`);
|
||||
}
|
||||
var v;
|
||||
return [y].join(`
|
||||
`);
|
||||
})(i, l);
|
||||
return i[2] ? "@media " + i[2] + "{" + h + "}" : h;
|
||||
}).join("");
|
||||
}),
|
||||
(n.i = function (i, h) {
|
||||
typeof i == "string" && (i = [[null, i, ""]]);
|
||||
for (var m = {}, f = 0; f < this.length; f++) {
|
||||
var y = this[f][0];
|
||||
typeof y == "number" && (m[y] = !0);
|
||||
}
|
||||
for (f = 0; f < i.length; f++) {
|
||||
var u = i[f];
|
||||
(typeof u[0] == "number" && m[u[0]]) ||
|
||||
(h && !u[2]
|
||||
? (u[2] = h)
|
||||
: h && (u[2] = "(" + u[2] + ") and (" + h + ")"),
|
||||
n.push(u));
|
||||
}
|
||||
}),
|
||||
n
|
||||
);
|
||||
};
|
||||
},
|
||||
function (g, b, l) {
|
||||
var n,
|
||||
i,
|
||||
h = {},
|
||||
m =
|
||||
((n = function () {
|
||||
return window && document && document.all && !window.atob;
|
||||
}),
|
||||
function () {
|
||||
return i === void 0 && (i = n.apply(this, arguments)), i;
|
||||
}),
|
||||
f = function (t) {
|
||||
return document.querySelector(t);
|
||||
},
|
||||
y = (function (t) {
|
||||
var e = {};
|
||||
return function (r) {
|
||||
if (typeof r == "function") return r();
|
||||
if (e[r] === void 0) {
|
||||
var a = f.call(this, r);
|
||||
if (
|
||||
window.HTMLIFrameElement &&
|
||||
a instanceof window.HTMLIFrameElement
|
||||
)
|
||||
try {
|
||||
a = a.contentDocument.head;
|
||||
} catch {
|
||||
a = null;
|
||||
}
|
||||
e[r] = a;
|
||||
}
|
||||
return e[r];
|
||||
};
|
||||
})(),
|
||||
u = null,
|
||||
o = 0,
|
||||
s = [],
|
||||
v = l(4);
|
||||
function k(t, e) {
|
||||
for (var r = 0; r < t.length; r++) {
|
||||
var a = t[r],
|
||||
d = h[a.id];
|
||||
if (d) {
|
||||
d.refs++;
|
||||
for (var c = 0; c < d.parts.length; c++) d.parts[c](a.parts[c]);
|
||||
for (; c < a.parts.length; c++) d.parts.push(T(a.parts[c], e));
|
||||
} else {
|
||||
var w = [];
|
||||
for (c = 0; c < a.parts.length; c++) w.push(T(a.parts[c], e));
|
||||
h[a.id] = { id: a.id, refs: 1, parts: w };
|
||||
}
|
||||
}
|
||||
}
|
||||
function L(t, e) {
|
||||
for (var r = [], a = {}, d = 0; d < t.length; d++) {
|
||||
var c = t[d],
|
||||
w = e.base ? c[0] + e.base : c[0],
|
||||
p = { css: c[1], media: c[2], sourceMap: c[3] };
|
||||
a[w] ? a[w].parts.push(p) : r.push((a[w] = { id: w, parts: [p] }));
|
||||
}
|
||||
return r;
|
||||
}
|
||||
function C(t, e) {
|
||||
var r = y(t.insertInto);
|
||||
if (!r)
|
||||
throw new Error(
|
||||
"Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.",
|
||||
);
|
||||
var a = s[s.length - 1];
|
||||
if (t.insertAt === "top")
|
||||
a
|
||||
? a.nextSibling
|
||||
? r.insertBefore(e, a.nextSibling)
|
||||
: r.appendChild(e)
|
||||
: r.insertBefore(e, r.firstChild),
|
||||
s.push(e);
|
||||
else if (t.insertAt === "bottom") r.appendChild(e);
|
||||
else {
|
||||
if (typeof t.insertAt != "object" || !t.insertAt.before)
|
||||
throw new Error(`[Style Loader]
|
||||
|
||||
Invalid value for parameter 'insertAt' ('options.insertAt') found.
|
||||
Must be 'top', 'bottom', or Object.
|
||||
(https://github.com/webpack-contrib/style-loader#insertat)
|
||||
`);
|
||||
var d = y(t.insertInto + " " + t.insertAt.before);
|
||||
r.insertBefore(e, d);
|
||||
}
|
||||
}
|
||||
function _(t) {
|
||||
if (t.parentNode === null) return !1;
|
||||
t.parentNode.removeChild(t);
|
||||
var e = s.indexOf(t);
|
||||
e >= 0 && s.splice(e, 1);
|
||||
}
|
||||
function S(t) {
|
||||
var e = document.createElement("style");
|
||||
return (
|
||||
t.attrs.type === void 0 && (t.attrs.type = "text/css"),
|
||||
j(e, t.attrs),
|
||||
C(t, e),
|
||||
e
|
||||
);
|
||||
}
|
||||
function j(t, e) {
|
||||
Object.keys(e).forEach(function (r) {
|
||||
t.setAttribute(r, e[r]);
|
||||
});
|
||||
}
|
||||
function T(t, e) {
|
||||
var r, a, d, c;
|
||||
if (e.transform && t.css) {
|
||||
if (!(c = e.transform(t.css))) return function () {};
|
||||
t.css = c;
|
||||
}
|
||||
if (e.singleton) {
|
||||
var w = o++;
|
||||
(r = u || (u = S(e))),
|
||||
(a = U.bind(null, r, w, !1)),
|
||||
(d = U.bind(null, r, w, !0));
|
||||
} else
|
||||
t.sourceMap &&
|
||||
typeof URL == "function" &&
|
||||
typeof URL.createObjectURL == "function" &&
|
||||
typeof URL.revokeObjectURL == "function" &&
|
||||
typeof Blob == "function" &&
|
||||
typeof btoa == "function"
|
||||
? ((r = (function (p) {
|
||||
var M = document.createElement("link");
|
||||
return (
|
||||
p.attrs.type === void 0 && (p.attrs.type = "text/css"),
|
||||
(p.attrs.rel = "stylesheet"),
|
||||
j(M, p.attrs),
|
||||
C(p, M),
|
||||
M
|
||||
);
|
||||
})(e)),
|
||||
(a = I.bind(null, r, e)),
|
||||
(d = function () {
|
||||
_(r), r.href && URL.revokeObjectURL(r.href);
|
||||
}))
|
||||
: ((r = S(e)),
|
||||
(a = B.bind(null, r)),
|
||||
(d = function () {
|
||||
_(r);
|
||||
}));
|
||||
return (
|
||||
a(t),
|
||||
function (p) {
|
||||
if (p) {
|
||||
if (
|
||||
p.css === t.css &&
|
||||
p.media === t.media &&
|
||||
p.sourceMap === t.sourceMap
|
||||
)
|
||||
return;
|
||||
a((t = p));
|
||||
} else d();
|
||||
}
|
||||
);
|
||||
}
|
||||
g.exports = function (t, e) {
|
||||
if (typeof DEBUG < "u" && DEBUG && typeof document != "object")
|
||||
throw new Error(
|
||||
"The style-loader cannot be used in a non-browser environment",
|
||||
);
|
||||
((e = e || {}).attrs = typeof e.attrs == "object" ? e.attrs : {}),
|
||||
e.singleton ||
|
||||
typeof e.singleton == "boolean" ||
|
||||
(e.singleton = m()),
|
||||
e.insertInto || (e.insertInto = "head"),
|
||||
e.insertAt || (e.insertAt = "bottom");
|
||||
var r = L(t, e);
|
||||
return (
|
||||
k(r, e),
|
||||
function (a) {
|
||||
for (var d = [], c = 0; c < r.length; c++) {
|
||||
var w = r[c];
|
||||
(p = h[w.id]).refs--, d.push(p);
|
||||
}
|
||||
for (a && k(L(a, e), e), c = 0; c < d.length; c++) {
|
||||
var p;
|
||||
if ((p = d[c]).refs === 0) {
|
||||
for (var M = 0; M < p.parts.length; M++) p.parts[M]();
|
||||
delete h[p.id];
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
};
|
||||
var O,
|
||||
R =
|
||||
((O = []),
|
||||
function (t, e) {
|
||||
return (
|
||||
(O[t] = e),
|
||||
O.filter(Boolean).join(`
|
||||
`)
|
||||
);
|
||||
});
|
||||
function U(t, e, r, a) {
|
||||
var d = r ? "" : a.css;
|
||||
if (t.styleSheet) t.styleSheet.cssText = R(e, d);
|
||||
else {
|
||||
var c = document.createTextNode(d),
|
||||
w = t.childNodes;
|
||||
w[e] && t.removeChild(w[e]),
|
||||
w.length ? t.insertBefore(c, w[e]) : t.appendChild(c);
|
||||
}
|
||||
}
|
||||
function B(t, e) {
|
||||
var r = e.css,
|
||||
a = e.media;
|
||||
if ((a && t.setAttribute("media", a), t.styleSheet))
|
||||
t.styleSheet.cssText = r;
|
||||
else {
|
||||
for (; t.firstChild; ) t.removeChild(t.firstChild);
|
||||
t.appendChild(document.createTextNode(r));
|
||||
}
|
||||
}
|
||||
function I(t, e, r) {
|
||||
var a = r.css,
|
||||
d = r.sourceMap,
|
||||
c = e.convertToAbsoluteUrls === void 0 && d;
|
||||
(e.convertToAbsoluteUrls || c) && (a = v(a)),
|
||||
d &&
|
||||
(a +=
|
||||
`
|
||||
/*# sourceMappingURL=data:application/json;base64,` +
|
||||
btoa(unescape(encodeURIComponent(JSON.stringify(d)))) +
|
||||
" */");
|
||||
var w = new Blob([a], { type: "text/css" }),
|
||||
p = t.href;
|
||||
(t.href = URL.createObjectURL(w)), p && URL.revokeObjectURL(p);
|
||||
}
|
||||
},
|
||||
function (g, b) {
|
||||
g.exports = function (l) {
|
||||
var n = typeof window < "u" && window.location;
|
||||
if (!n) throw new Error("fixUrls requires window.location");
|
||||
if (!l || typeof l != "string") return l;
|
||||
var i = n.protocol + "//" + n.host,
|
||||
h = i + n.pathname.replace(/\/[^\/]*$/, "/");
|
||||
return l.replace(
|
||||
/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,
|
||||
function (m, f) {
|
||||
var y,
|
||||
u = f
|
||||
.trim()
|
||||
.replace(/^"(.*)"$/, function (o, s) {
|
||||
return s;
|
||||
})
|
||||
.replace(/^'(.*)'$/, function (o, s) {
|
||||
return s;
|
||||
});
|
||||
return /^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(u)
|
||||
? m
|
||||
: ((y =
|
||||
u.indexOf("//") === 0
|
||||
? u
|
||||
: u.indexOf("/") === 0
|
||||
? i + u
|
||||
: h + u.replace(/^\.\//, "")),
|
||||
"url(" + JSON.stringify(y) + ")");
|
||||
},
|
||||
);
|
||||
};
|
||||
},
|
||||
function (g, b, l) {
|
||||
l.r(b),
|
||||
l.d(b, "default", function () {
|
||||
return h;
|
||||
}),
|
||||
l(0);
|
||||
function n(m) {
|
||||
return (n =
|
||||
typeof Symbol == "function" && typeof Symbol.iterator == "symbol"
|
||||
? function (f) {
|
||||
return typeof f;
|
||||
}
|
||||
: function (f) {
|
||||
return f &&
|
||||
typeof Symbol == "function" &&
|
||||
f.constructor === Symbol &&
|
||||
f !== Symbol.prototype
|
||||
? "symbol"
|
||||
: typeof f;
|
||||
})(m);
|
||||
}
|
||||
function i(m, f) {
|
||||
for (var y = 0; y < f.length; y++) {
|
||||
var u = f[y];
|
||||
(u.enumerable = u.enumerable || !1),
|
||||
(u.configurable = !0),
|
||||
"value" in u && (u.writable = !0),
|
||||
Object.defineProperty(m, u.key, u);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Header block for the Editor.js.
|
||||
*
|
||||
* @author CodeX (team@ifmo.su)
|
||||
* @copyright CodeX 2018
|
||||
* @license MIT
|
||||
* @version 2.0.0
|
||||
*/ var h = (function () {
|
||||
function m(o) {
|
||||
var s = o.data,
|
||||
v = o.config,
|
||||
k = o.api,
|
||||
L = o.readOnly;
|
||||
(function (C, _) {
|
||||
if (!(C instanceof _))
|
||||
throw new TypeError("Cannot call a class as a function");
|
||||
})(this, m),
|
||||
(this.api = k),
|
||||
(this.readOnly = L),
|
||||
(this._CSS = {
|
||||
block: this.api.styles.block,
|
||||
wrapper: "ce-header",
|
||||
}),
|
||||
(this._settings = v),
|
||||
(this._data = this.normalizeData(s)),
|
||||
(this._element = this.getTag());
|
||||
}
|
||||
var f, y, u;
|
||||
return (
|
||||
(f = m),
|
||||
(u = [
|
||||
{
|
||||
key: "conversionConfig",
|
||||
get: function () {
|
||||
return { export: "text", import: "text" };
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "sanitize",
|
||||
get: function () {
|
||||
return { level: !1, text: {} };
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "isReadOnlySupported",
|
||||
get: function () {
|
||||
return !0;
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "pasteConfig",
|
||||
get: function () {
|
||||
return { tags: ["H1", "H2", "H3", "H4", "H5", "H6"] };
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "toolbox",
|
||||
get: function () {
|
||||
return {
|
||||
icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M9 7L9 12M9 17V12M9 12L15 12M15 7V12M15 17L15 12"/></svg>',
|
||||
title: "Heading",
|
||||
};
|
||||
},
|
||||
},
|
||||
]),
|
||||
(y = [
|
||||
{
|
||||
key: "normalizeData",
|
||||
value: function (o) {
|
||||
var s = {};
|
||||
return (
|
||||
n(o) !== "object" && (o = {}),
|
||||
(s.text = o.text || ""),
|
||||
(s.level = parseInt(o.level) || this.defaultLevel.number),
|
||||
s
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "render",
|
||||
value: function () {
|
||||
return this._element;
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "renderSettings",
|
||||
value: function () {
|
||||
var o = this;
|
||||
return this.levels.map(function (s) {
|
||||
return {
|
||||
icon: s.svg,
|
||||
label: o.api.i18n.t("Heading ".concat(s.number)),
|
||||
onActivate: function () {
|
||||
return o.setLevel(s.number);
|
||||
},
|
||||
closeOnActivate: !0,
|
||||
isActive: o.currentLevel.number === s.number,
|
||||
};
|
||||
});
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "setLevel",
|
||||
value: function (o) {
|
||||
this.data = { level: o, text: this.data.text };
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "merge",
|
||||
value: function (o) {
|
||||
var s = {
|
||||
text: this.data.text + o.text,
|
||||
level: this.data.level,
|
||||
};
|
||||
this.data = s;
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "validate",
|
||||
value: function (o) {
|
||||
return o.text.trim() !== "";
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "save",
|
||||
value: function (o) {
|
||||
return { text: o.innerHTML, level: this.currentLevel.number };
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "getTag",
|
||||
value: function () {
|
||||
var o = document.createElement(this.currentLevel.tag);
|
||||
return (
|
||||
(o.innerHTML = this._data.text || ""),
|
||||
o.classList.add(this._CSS.wrapper),
|
||||
(o.contentEditable = this.readOnly ? "false" : "true"),
|
||||
(o.dataset.placeholder = this.api.i18n.t(
|
||||
this._settings.placeholder || "",
|
||||
)),
|
||||
o
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "onPaste",
|
||||
value: function (o) {
|
||||
var s = o.detail.data,
|
||||
v = this.defaultLevel.number;
|
||||
switch (s.tagName) {
|
||||
case "H1":
|
||||
v = 1;
|
||||
break;
|
||||
case "H2":
|
||||
v = 2;
|
||||
break;
|
||||
case "H3":
|
||||
v = 3;
|
||||
break;
|
||||
case "H4":
|
||||
v = 4;
|
||||
break;
|
||||
case "H5":
|
||||
v = 5;
|
||||
break;
|
||||
case "H6":
|
||||
v = 6;
|
||||
}
|
||||
this._settings.levels &&
|
||||
(v = this._settings.levels.reduce(function (k, L) {
|
||||
return Math.abs(L - v) < Math.abs(k - v) ? L : k;
|
||||
})),
|
||||
(this.data = { level: v, text: s.innerHTML });
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "data",
|
||||
get: function () {
|
||||
return (
|
||||
(this._data.text = this._element.innerHTML),
|
||||
(this._data.level = this.currentLevel.number),
|
||||
this._data
|
||||
);
|
||||
},
|
||||
set: function (o) {
|
||||
if (
|
||||
((this._data = this.normalizeData(o)),
|
||||
o.level !== void 0 && this._element.parentNode)
|
||||
) {
|
||||
var s = this.getTag();
|
||||
(s.innerHTML = this._element.innerHTML),
|
||||
this._element.parentNode.replaceChild(s, this._element),
|
||||
(this._element = s);
|
||||
}
|
||||
o.text !== void 0 &&
|
||||
(this._element.innerHTML = this._data.text || "");
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "currentLevel",
|
||||
get: function () {
|
||||
var o = this,
|
||||
s = this.levels.find(function (v) {
|
||||
return v.number === o._data.level;
|
||||
});
|
||||
return s || (s = this.defaultLevel), s;
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "defaultLevel",
|
||||
get: function () {
|
||||
var o = this;
|
||||
if (this._settings.defaultLevel) {
|
||||
var s = this.levels.find(function (v) {
|
||||
return v.number === o._settings.defaultLevel;
|
||||
});
|
||||
if (s) return s;
|
||||
console.warn(
|
||||
"(ง'̀-'́)ง Heading Tool: the default level specified was not found in available levels",
|
||||
);
|
||||
}
|
||||
return this.levels[1];
|
||||
},
|
||||
},
|
||||
{
|
||||
key: "levels",
|
||||
get: function () {
|
||||
var o = this,
|
||||
s = [
|
||||
{
|
||||
number: 1,
|
||||
tag: "H1",
|
||||
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M19 17V10.2135C19 10.1287 18.9011 10.0824 18.836 10.1367L16 12.5"/></svg>',
|
||||
},
|
||||
{
|
||||
number: 2,
|
||||
tag: "H2",
|
||||
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 11C16 10 19 9.5 19 12C19 13.9771 16.0684 13.9997 16.0012 16.8981C15.9999 16.9533 16.0448 17 16.1 17L19.3 17"/></svg>',
|
||||
},
|
||||
{
|
||||
number: 3,
|
||||
tag: "H3",
|
||||
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 11C16 10.5 16.8323 10 17.6 10C18.3677 10 19.5 10.311 19.5 11.5C19.5 12.5315 18.7474 12.9022 18.548 12.9823C18.5378 12.9864 18.5395 13.0047 18.5503 13.0063C18.8115 13.0456 20 13.3065 20 14.8C20 16 19.5 17 17.8 17C17.8 17 16 17 16 16.3"/></svg>',
|
||||
},
|
||||
{
|
||||
number: 4,
|
||||
tag: "H4",
|
||||
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M18 10L15.2834 14.8511C15.246 14.9178 15.294 15 15.3704 15C16.8489 15 18.7561 15 20.2 15M19 17C19 15.7187 19 14.8813 19 13.6"/></svg>',
|
||||
},
|
||||
{
|
||||
number: 5,
|
||||
tag: "H5",
|
||||
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 15.9C16 15.9 16.3768 17 17.8 17C19.5 17 20 15.6199 20 14.7C20 12.7323 17.6745 12.0486 16.1635 12.9894C16.094 13.0327 16 12.9846 16 12.9027V10.1C16 10.0448 16.0448 10 16.1 10H19.8"/></svg>',
|
||||
},
|
||||
{
|
||||
number: 6,
|
||||
tag: "H6",
|
||||
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M19.5 10C16.5 10.5 16 13.3285 16 15M16 15V15C16 16.1046 16.8954 17 18 17H18.3246C19.3251 17 20.3191 16.3492 20.2522 15.3509C20.0612 12.4958 16 12.6611 16 15Z"/></svg>',
|
||||
},
|
||||
];
|
||||
return this._settings.levels
|
||||
? s.filter(function (v) {
|
||||
return o._settings.levels.includes(v.number);
|
||||
})
|
||||
: s;
|
||||
},
|
||||
},
|
||||
]) && i(f.prototype, y),
|
||||
u && i(f, u),
|
||||
m
|
||||
);
|
||||
})();
|
||||
},
|
||||
]).default;
|
||||
});
|
||||
})(E);
|
||||
var A = E.exports;
|
||||
const V = N(A),
|
||||
z = P({ __proto__: null, default: V }, [A]);
|
||||
export { V as H, z as b };
|
||||
Binary file not shown.
54
public/build/assets/bundle-c067b23d.js
Normal file
54
public/build/assets/bundle-c067b23d.js
Normal file
File diff suppressed because one or more lines are too long
BIN
public/build/assets/bundle-c067b23d.js.gz
Normal file
BIN
public/build/assets/bundle-c067b23d.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Reference in New Issue
Block a user