mapcomplete/UI/Popup/TagRenderingQuestion.ts

580 lines
24 KiB
TypeScript
Raw Normal View History

import {Store, Stores, UIEventSource} from "../../Logic/UIEventSource";
2020-10-27 01:01:34 +01:00
import Combine from "../Base/Combine";
import {InputElement, ReadonlyInputElement} from "../Input/InputElement";
2020-10-27 01:01:34 +01:00
import ValidatedTextField from "../Input/ValidatedTextField";
import {FixedInputElement} from "../Input/FixedInputElement";
import {RadioButton} from "../Input/RadioButton";
import {Utils} from "../../Utils";
import CheckBoxes from "../Input/Checkboxes";
import InputElementMap from "../Input/InputElementMap";
import {SaveButton} from "./SaveButton";
import {VariableUiElement} from "../Base/VariableUIElement";
import Translations from "../i18n/Translations";
import {FixedUiElement} from "../Base/FixedUiElement";
import {Translation, TypedTranslation} from "../i18n/Translation";
2021-01-02 19:09:49 +01:00
import Constants from "../../Models/Constants";
2021-02-05 16:32:37 +01:00
import {SubstitutedTranslation} from "../SubstitutedTranslation";
2021-03-29 00:41:53 +02:00
import {TagsFilter} from "../../Logic/Tags/TagsFilter";
import {Tag} from "../../Logic/Tags/Tag";
import {And} from "../../Logic/Tags/And";
import {TagUtils} from "../../Logic/Tags/TagUtils";
2021-06-12 02:58:32 +02:00
import BaseUIElement from "../BaseUIElement";
import {DropDown} from "../Input/DropDown";
import InputElementWrapper from "../Input/InputElementWrapper";
import ChangeTagAction from "../../Logic/Osm/Actions/ChangeTagAction";
import TagRenderingConfig from "../../Models/ThemeConfig/TagRenderingConfig";
import {Unit} from "../../Models/Unit";
import VariableInputElement from "../Input/VariableInputElement";
import Toggle from "../Input/Toggle";
import Img from "../Base/Img";
import FeaturePipelineState from "../../Logic/State/FeaturePipelineState";
2022-02-02 02:08:45 +01:00
import Title from "../Base/Title";
2022-05-01 04:17:40 +02:00
import {OsmConnection} from "../../Logic/Osm/OsmConnection";
import {GeoOperations} from "../../Logic/GeoOperations";
2022-07-10 03:58:07 +02:00
import {SearchablePillsSelector} from "../Input/SearchableMappingsSelector";
2020-10-27 01:01:34 +01:00
/**
* Shows the question element.
* Note that the value _migh_ already be known, e.g. when selected or when changing the value
*/
2021-10-03 02:50:11 +02:00
export default class TagRenderingQuestion extends Combine {
2020-10-27 01:01:34 +01:00
constructor(tags: UIEventSource<any>,
configuration: TagRenderingConfig,
2022-06-06 19:37:22 +02:00
state?: FeaturePipelineState,
options?: {
units?: Unit[],
afterSave?: () => void,
cancelButton?: BaseUIElement,
saveButtonConstr?: (src: Store<TagsFilter>) => BaseUIElement,
bottomText?: (src: Store<TagsFilter>) => BaseUIElement
}
2021-03-12 13:48:49 +01:00
) {
const applicableMappingsSrc =
Stores.ListStabilized(tags.map(tags => {
const applicableMappings: { if: TagsFilter, icon?: string, then: TypedTranslation<object>, ifnot?: TagsFilter, addExtraTags: Tag[] }[] = []
2021-10-02 22:27:44 +02:00
for (const mapping of configuration.mappings ?? []) {
if (mapping.hideInAnswer === true) {
continue
}
if (mapping.hideInAnswer === false || mapping.hideInAnswer === undefined) {
applicableMappings.push(mapping)
continue
}
const condition = <TagsFilter>mapping.hideInAnswer;
const isShown = !condition.matchesProperties(tags)
if (isShown) {
applicableMappings.push(mapping)
}
}
return applicableMappings
}));
2020-10-27 01:01:34 +01:00
if (configuration === undefined) {
throw "A question is needed for a question visualization"
}
options = options ?? {}
const applicableUnit = (options.units ?? []).filter(unit => unit.isApplicableToKey(configuration.freeform?.key))[0];
2022-02-02 02:08:45 +01:00
const question = new Title(new SubstitutedTranslation(configuration.question, tags, state)
.SetClass("question-text"), 3);
2020-10-27 01:01:34 +01:00
const feedback = new UIEventSource<Translation>(undefined)
const inputElement: ReadonlyInputElement<TagsFilter> =
2022-07-10 18:08:06 +02:00
new VariableInputElement(applicableMappingsSrc.map(applicableMappings => {
return TagRenderingQuestion.GenerateInputElement(state, configuration, applicableMappings, applicableUnit, tags, feedback)
2022-06-06 19:37:22 +02:00
}
))
2022-07-10 18:08:06 +02:00
2021-10-03 02:50:11 +02:00
const save = () => {
const selection = inputElement.GetValue().data;
2020-10-27 01:01:34 +01:00
if (selection) {
(state?.changes)
.applyAction(new ChangeTagAction(
tags.data.id, selection, tags.data, {
theme: state?.layoutToUse?.id ?? "unkown",
changeType: "answer",
}
2021-10-03 02:50:11 +02:00
)).then(_ => {
console.log("Tagchanges applied")
2021-10-03 02:50:11 +02:00
})
if (options.afterSave) {
options.afterSave();
}
2020-10-27 01:01:34 +01:00
}
}
if (options.saveButtonConstr === undefined) {
options.saveButtonConstr = v => new SaveButton(v,
state?.osmConnection)
.onClick(save)
}
2020-10-27 01:01:34 +01:00
const saveButton = new Combine([
options.saveButtonConstr(inputElement.GetValue()),
])
let bottomTags: BaseUIElement;
if (options.bottomText !== undefined) {
bottomTags = options.bottomText(inputElement.GetValue())
} else {
2022-05-01 04:17:40 +02:00
bottomTags = TagRenderingQuestion.CreateTagExplanation(inputElement.GetValue(), tags, state)
}
super([
question,
inputElement,
new Combine([
2022-02-14 21:46:35 +01:00
new VariableUiElement(feedback.map(t => t?.SetStyle("padding-left: 0.75rem; padding-right: 0.75rem")?.SetClass("alert flex") ?? bottomTags)),
new Combine([
new Combine([options.cancelButton]),
saveButton]).SetClass("flex justify-end flex-wrap-reverse")
2022-02-14 22:05:04 +01:00
]).SetClass("flex mt-2 justify-between"),
2022-06-06 19:37:22 +02:00
new Toggle(Translations.t.general.testing.SetClass("alert"), undefined, state?.featureSwitchIsTesting)
])
this.SetClass("question disable-links")
}
private static GenerateInputElement(
2022-06-06 19:37:22 +02:00
state: FeaturePipelineState,
configuration: TagRenderingConfig,
2022-07-10 03:58:07 +02:00
applicableMappings: { if: TagsFilter, then: TypedTranslation<object>, icon?: string, ifnot?: TagsFilter, addExtraTags: Tag[], searchTerms?: Record<string, string[]> }[],
applicableUnit: Unit,
tagsSource: UIEventSource<any>,
feedback: UIEventSource<Translation>
2022-06-06 19:37:22 +02:00
): ReadonlyInputElement<TagsFilter> {
2022-07-10 18:08:06 +02:00
2022-04-19 23:43:28 +02:00
const hasImages = applicableMappings.findIndex(mapping => mapping.icon !== undefined) >= 0
let inputEls: InputElement<TagsFilter>[];
2020-10-27 01:01:34 +01:00
const ifNotsPresent = applicableMappings.some(mapping => mapping.ifnot !== undefined)
2022-07-10 18:08:06 +02:00
if (applicableMappings.length > 8 &&
(configuration.freeform?.type === undefined || configuration.freeform?.type === "string") &&
(!configuration.multiAnswer || configuration.freeform === undefined)) {
2022-07-10 03:58:07 +02:00
return TagRenderingQuestion.GenerateSearchableSelector(state, configuration, applicableMappings, tagsSource)
}
// FreeForm input will be undefined if not present; will already contain a special input element if applicable
const ff = TagRenderingQuestion.GenerateFreeform(state, configuration, applicableUnit, tagsSource, feedback);
2021-10-03 02:50:11 +02:00
function allIfNotsExcept(excludeIndex: number): TagsFilter[] {
if (configuration.mappings === undefined || configuration.mappings.length === 0) {
return undefined
}
if (!ifNotsPresent) {
return []
}
if (configuration.multiAnswer) {
// The multianswer will do the ifnot configuration themself
return []
}
2021-10-03 02:50:11 +02:00
const negativeMappings = []
2021-10-03 02:50:11 +02:00
for (let i = 0; i < applicableMappings.length; i++) {
const mapping = applicableMappings[i];
if (i === excludeIndex || mapping.ifnot === undefined) {
continue
}
2021-10-03 02:50:11 +02:00
negativeMappings.push(mapping.ifnot)
}
return Utils.NoNull(negativeMappings)
}
if (applicableMappings.length < 8 || configuration.multiAnswer || (hasImages && applicableMappings.length < 16) || ifNotsPresent) {
inputEls = (applicableMappings ?? []).map((mapping, i) => TagRenderingQuestion.GenerateMappingElement(state, tagsSource, mapping, allIfNotsExcept(i)));
inputEls = Utils.NoNull(inputEls);
} else {
const dropdown: InputElement<TagsFilter> = new DropDown("",
applicableMappings.map((mapping, i) => {
return {
2021-10-03 02:50:11 +02:00
value: new And([mapping.if, ...allIfNotsExcept(i)]),
shown: mapping.then.Subs(tagsSource.data)
}
})
)
if (ff == undefined) {
return dropdown;
} else {
inputEls = [dropdown]
}
}
if (inputEls.length == 0) {
if (ff === undefined) {
throw "Error: could not generate a question: freeform and all mappings are undefined"
}
2020-10-27 01:01:34 +01:00
return ff;
}
if (ff) {
inputEls.push(ff);
}
if (configuration.multiAnswer) {
return TagRenderingQuestion.GenerateMultiAnswer(configuration, inputEls, ff, applicableMappings.map(mp => mp.ifnot))
2020-10-27 01:01:34 +01:00
} else {
2021-07-27 17:00:05 +02:00
return new RadioButton(inputEls, {selectFirstAsDefault: false})
2020-10-27 01:01:34 +01:00
}
}
2022-07-10 03:58:07 +02:00
private static GenerateSearchableSelector(
state: FeaturePipelineState,
configuration: TagRenderingConfig,
2022-07-10 18:08:06 +02:00
applicableMappings: { if: TagsFilter; ifnot?: TagsFilter, then: TypedTranslation<object>; icon?: string; iconClass?: string, addExtraTags: Tag[], searchTerms?: Record<string, string[]> }[], tagsSource: UIEventSource<any>): InputElement<TagsFilter> {
const values: { show: BaseUIElement, value: number, mainTerm: Record<string, string>, searchTerms?: Record<string, string[]> }[] = []
for (let i = 0; i < applicableMappings.length; i++) {
const mapping = applicableMappings[i];
2022-07-10 03:58:07 +02:00
const tr = mapping.then.Subs(tagsSource.data)
2022-07-10 18:08:06 +02:00
const patchedMapping = <{ iconClass: "small-height", then: TypedTranslation<object> }>{
...mapping,
iconClass: `small-height`,
icon: mapping.icon ?? "./assets/svg/none.svg"
}
const fancy = TagRenderingQuestion.GenerateMappingContent(patchedMapping, tagsSource, state).SetClass("normal-background")
values.push({
2022-07-10 03:58:07 +02:00
show: fancy,
2022-07-10 18:08:06 +02:00
value: i,
2022-07-10 03:58:07 +02:00
mainTerm: tr.translations,
searchTerms: mapping.searchTerms
})
}
2022-07-10 18:08:06 +02:00
2022-07-10 03:58:07 +02:00
const searchValue: UIEventSource<string> = new UIEventSource<string>(undefined)
const ff = configuration.freeform
2022-07-10 18:08:06 +02:00
let onEmpty: BaseUIElement = undefined
if (ff !== undefined) {
onEmpty = new VariableUiElement(searchValue.map(search => configuration.render.Subs({[ff.key]: search})))
2022-07-10 03:58:07 +02:00
}
2022-07-10 18:08:06 +02:00
const classes = "h-64 overflow-scroll"
const presetSearch = new SearchablePillsSelector<number>(values, {
2022-07-10 03:58:07 +02:00
selectIfSingle: true,
mode: configuration.multiAnswer ? "select-many" : "select-one",
searchValue,
onNoMatches: onEmpty?.SetClass(classes).SetClass("flex justify-center items-center"),
2022-07-10 18:08:06 +02:00
searchAreaClass: classes
2022-07-10 03:58:07 +02:00
})
2022-07-10 18:08:06 +02:00
return new InputElementMap<number[], And>(presetSearch,
(x0, x1) => {
if (x0 == x1) {
return true;
2022-07-10 03:58:07 +02:00
}
2022-07-10 18:08:06 +02:00
if (x0 === undefined || x1 === undefined) {
return false;
}
if (x0.and.length !== x1.and.length) {
return false;
}
for (let i = 0; i < x0.and.length; i++) {
if (x1.and[i] != x0.and[i]) {
return false
}
}
return true;
},
(selected) => {
if (ff !== undefined && searchValue.data?.length > 0 && !presetSearch.someMatchFound.data) {
2022-07-10 03:58:07 +02:00
const t = new Tag(ff.key, searchValue.data)
2022-07-10 18:08:06 +02:00
if (ff.addExtraTags) {
return new And([t, ...ff.addExtraTags])
2022-07-10 03:58:07 +02:00
}
2022-07-10 18:08:06 +02:00
return new And([t]);
2022-07-10 03:58:07 +02:00
}
2022-07-10 18:08:06 +02:00
if (selected === undefined || selected.length == 0) {
return undefined;
}
const tfs = Utils.NoNull(applicableMappings.map((mapping, i) => {
if (selected.indexOf(i) >= 0) {
return mapping.if
} else {
return mapping.ifnot
}
}))
console.log("Got tags", tfs)
return new And(tfs);
2022-07-10 03:58:07 +02:00
},
2022-07-10 18:08:06 +02:00
(tf) => {
if (tf === undefined) {
return []
2022-07-10 03:58:07 +02:00
}
2022-07-10 18:08:06 +02:00
const selected: number[] = []
for (let i = 0; i < applicableMappings.length; i++) {
const mapping = applicableMappings[i]
if (tf.and.some(t => mapping.if == t)) {
selected.push(i)
}
}
return selected;
2022-07-10 03:58:07 +02:00
},
[searchValue, presetSearch.someMatchFound]
2022-07-10 18:08:06 +02:00
);
2022-07-10 03:58:07 +02:00
}
private static GenerateMultiAnswer(
configuration: TagRenderingConfig,
elements: InputElement<TagsFilter>[], freeformField: InputElement<TagsFilter>, ifNotSelected: TagsFilter[]): InputElement<TagsFilter> {
2020-10-27 01:01:34 +01:00
const checkBoxes = new CheckBoxes(elements);
2020-10-27 01:01:34 +01:00
const inputEl = new InputElementMap<number[], TagsFilter>(
checkBoxes,
(t0, t1) => {
return t0?.shadows(t1) ?? false
2020-10-27 01:01:34 +01:00
},
(indices) => {
if (indices.length === 0) {
return undefined;
}
const tags: TagsFilter[] = indices.map(i => elements[i].GetValue().data);
const oppositeTags: TagsFilter[] = [];
for (let i = 0; i < ifNotSelected.length; i++) {
if (indices.indexOf(i) >= 0) {
continue;
}
const notSelected = ifNotSelected[i];
if (notSelected === undefined) {
continue;
}
oppositeTags.push(notSelected);
}
tags.push(TagUtils.FlattenMultiAnswer(oppositeTags));
2021-07-26 16:25:57 +02:00
return TagUtils.FlattenMultiAnswer(tags);
2020-10-27 01:01:34 +01:00
},
(tags: TagsFilter) => {
2020-10-27 14:13:37 +01:00
// {key --> values[]}
const presentTags = TagUtils.SplitKeys([tags]);
2020-10-27 01:01:34 +01:00
const indices: number[] = []
2020-10-27 14:13:37 +01:00
// We also collect the values that have to be added to the freeform field
let freeformExtras: string[] = []
if (configuration.freeform?.key) {
freeformExtras = [...(presentTags[configuration.freeform.key] ?? [])]
2020-10-27 14:13:37 +01:00
}
2020-10-27 01:01:34 +01:00
2020-10-27 14:13:37 +01:00
for (let j = 0; j < elements.length; j++) {
const inputElement = elements[j];
if (inputElement === freeformField) {
continue;
}
const val = inputElement.GetValue();
const neededTags = TagUtils.SplitKeys([val.data]);
// if every 'neededKeys'-value is present in presentKeys, we have a match and enable the index
if (TagUtils.AllKeysAreContained(presentTags, neededTags)) {
indices.push(j);
if (freeformExtras.length > 0) {
const freeformsToRemove: string[] = (neededTags[configuration.freeform.key] ?? []);
2020-10-27 14:13:37 +01:00
for (const toRm of freeformsToRemove) {
const i = freeformExtras.indexOf(toRm);
if (i >= 0) {
freeformExtras.splice(i, 1);
}
}
2020-10-27 01:01:34 +01:00
}
}
2020-10-27 14:13:37 +01:00
}
if (freeformField) {
if (freeformExtras.length > 0) {
freeformField.GetValue().setData(new Tag(configuration.freeform.key, freeformExtras.join(";")));
indices.push(elements.indexOf(freeformField))
2020-10-27 14:13:37 +01:00
} else {
freeformField.GetValue().setData(undefined);
}
2020-10-27 01:01:34 +01:00
}
2020-10-27 14:13:37 +01:00
2020-10-27 01:01:34 +01:00
return indices;
},
elements.map(el => el.GetValue())
);
freeformField?.GetValue()?.addCallbackAndRun(value => {
// The list of indices of the selected elements
2020-10-27 01:01:34 +01:00
const es = checkBoxes.GetValue();
const i = elements.length - 1;
// The actual index of the freeform-element
2020-10-27 01:01:34 +01:00
const index = es.data.indexOf(i);
if (value === undefined) {
// No data is set in the freeform text field; so we delete the checkmark if it is selected
2020-10-27 01:01:34 +01:00
if (index >= 0) {
es.data.splice(index, 1);
es.ping();
}
} else if (index < 0) {
// There is data defined in the checkmark, but the checkmark isn't checked, so we check it
// This is of course because the data changed
2020-10-27 01:01:34 +01:00
es.data.push(i);
es.ping();
}
});
return inputEl;
}
/**
* Generates a (Fixed) input element for this mapping.
* Note that the mapping might hide itself if the condition is not met anymore.
*
* Returns: [the element itself, the value to select if not selected. The contents of this UIEventSource might swap to undefined if the conditions to show the answer are unmet]
*/
private static GenerateMappingElement(
state,
tagsSource: UIEventSource<any>,
mapping: {
if: TagsFilter,
then: Translation,
addExtraTags: Tag[],
2022-02-17 23:54:14 +01:00
icon?: string,
2022-07-10 18:08:06 +02:00
iconClass?: "small" | "medium" | "large" | "small-height"
2021-10-03 02:50:11 +02:00
}, ifNot?: TagsFilter[]): InputElement<TagsFilter> {
2021-10-03 02:50:11 +02:00
let tagging: TagsFilter = mapping.if;
if (ifNot !== undefined) {
tagging = new And([mapping.if, ...ifNot])
2020-10-27 01:01:34 +01:00
}
2021-10-26 22:53:27 +02:00
if (mapping.addExtraTags) {
tagging = new And([tagging, ...mapping.addExtraTags])
}
2020-10-27 01:01:34 +01:00
return new FixedInputElement(
TagRenderingQuestion.GenerateMappingContent(mapping, tagsSource, state),
tagging,
(t0, t1) => t1.shadows(t0));
2020-10-27 01:01:34 +01:00
}
private static GenerateMappingContent(mapping: {
then: Translation,
2022-02-17 23:54:14 +01:00
icon?: string,
2022-07-10 18:08:06 +02:00
iconClass?: "small" | "medium" | "large" | "small-height" | "medium-height" | "large-height"
}, tagsSource: UIEventSource<any>, state: FeaturePipelineState): BaseUIElement {
const text = new SubstitutedTranslation(mapping.then, tagsSource, state)
if (mapping.icon === undefined) {
return text;
}
2022-07-10 18:08:06 +02:00
return new Combine([new Img(mapping.icon).SetClass("mr-1 mapping-icon-" + (mapping.iconClass ?? "small")), text]).SetClass("flex items-center")
}
2020-10-27 01:01:34 +01:00
2022-06-06 19:37:22 +02:00
private static GenerateFreeform(state: FeaturePipelineState, configuration: TagRenderingConfig, applicableUnit: Unit, tags: UIEventSource<any>, feedback: UIEventSource<Translation>)
: InputElement<TagsFilter> {
const freeform = configuration.freeform;
2020-10-27 01:01:34 +01:00
if (freeform === undefined) {
return undefined;
}
const pickString =
(string: any) => {
if (string === "" || string === undefined) {
return undefined;
}
if (string.length >= 255) {
return undefined
}
2020-10-27 01:01:34 +01:00
const tag = new Tag(freeform.key, string);
if (freeform.addExtraTags === undefined) {
return tag;
}
return new And([
tag,
...freeform.addExtraTags
]
);
};
const toString = (tag) => {
if (tag instanceof And) {
for (const subtag of tag.and) {
if (subtag instanceof Tag && subtag.key === freeform.key) {
return subtag.value;
}
}
return undefined;
} else if (tag instanceof Tag) {
return tag.value
}
return undefined;
}
const tagsData = tags.data;
2022-06-06 19:37:22 +02:00
const feature = state?.allElements?.ContainingFeatures?.get(tagsData.id)
2022-07-10 18:08:06 +02:00
const center = feature != undefined ? GeoOperations.centerpointCoordinates(feature) : [0, 0]
2022-06-19 19:10:56 +02:00
const input: InputElement<string> = ValidatedTextField.ForType(configuration.freeform.type)?.ConstructInputElement({
country: () => tagsData._country,
location: [center[1], center[0]],
2022-06-06 19:37:22 +02:00
mapBackgroundLayer: state?.backgroundLayer,
unit: applicableUnit,
args: configuration.freeform.helperArgs,
feature,
placeholder: configuration.freeform.placeholder,
feedback
2020-10-27 01:01:34 +01:00
});
2022-07-10 18:08:06 +02:00
2022-06-06 19:37:22 +02:00
// Init with correct value
2022-06-19 19:10:56 +02:00
input?.GetValue().setData(tagsData[freeform.key] ?? freeform.default);
2022-07-10 18:08:06 +02:00
2022-06-06 19:37:22 +02:00
// Add a length check
2022-07-10 18:08:06 +02:00
input?.GetValue().addCallbackD((v: string | undefined) => {
if (v?.length >= 255) {
feedback.setData(Translations.t.validation.tooLong.Subs({count: v.length}))
}
})
2020-10-27 01:01:34 +01:00
let inputTagsFilter: InputElement<TagsFilter> = new InputElementMap(
input, (a, b) => a === b || (a?.shadows(b) ?? false),
2020-10-27 01:01:34 +01:00
pickString, toString
);
if (freeform.inline) {
inputTagsFilter.SetClass("w-48-imp")
inputTagsFilter = new InputElementWrapper(inputTagsFilter, configuration.render, freeform.key, tags, state)
inputTagsFilter.SetClass("block")
}
return inputTagsFilter;
2020-10-27 01:01:34 +01:00
}
2022-07-10 18:08:06 +02:00
public static CreateTagExplanation(selectedValue: Store<TagsFilter>,
tags: Store<object>,
2022-07-10 18:08:06 +02:00
state?: { osmConnection?: OsmConnection }) {
2022-05-01 04:17:40 +02:00
return new VariableUiElement(
selectedValue.map(
(tagsFilter: TagsFilter) => {
const csCount = state?.osmConnection?.userDetails?.data?.csCount ?? Constants.userJourney.tagsVisibleAndWikiLinked + 1;
if (csCount < Constants.userJourney.tagsVisibleAt) {
return "";
}
if (tagsFilter === undefined) {
return Translations.t.general.noTagsSelected.SetClass("subtle");
}
if (csCount < Constants.userJourney.tagsVisibleAndWikiLinked) {
const tagsStr = tagsFilter.asHumanString(false, true, tags.data);
return new FixedUiElement(tagsStr).SetClass("subtle");
}
return tagsFilter.asHumanString(true, true, tags.data);
2022-06-06 19:37:22 +02:00
},
[state?.osmConnection?.userDetails]
2022-05-01 04:17:40 +02:00
)
).SetClass("block break-all")
}
2020-10-27 01:01:34 +01:00
}