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-conte.../plugins/embedpre.../assets/pdf/build
File: pdf.worker.js
*[$toPages]() {
[50000] Fix | Delete
if (!this.subform.children.length) {
[50001] Fix | Delete
return HTMLResult.success({
[50002] Fix | Delete
name: "div",
[50003] Fix | Delete
children: []
[50004] Fix | Delete
});
[50005] Fix | Delete
}
[50006] Fix | Delete
this[$extra] = {
[50007] Fix | Delete
overflowNode: null,
[50008] Fix | Delete
firstUnsplittable: null,
[50009] Fix | Delete
currentContentArea: null,
[50010] Fix | Delete
currentPageArea: null,
[50011] Fix | Delete
noLayoutFailure: false,
[50012] Fix | Delete
pageNumber: 1,
[50013] Fix | Delete
pagePosition: "first",
[50014] Fix | Delete
oddOrEven: "odd",
[50015] Fix | Delete
blankOrNotBlank: "nonBlank",
[50016] Fix | Delete
paraStack: []
[50017] Fix | Delete
};
[50018] Fix | Delete
const root = this.subform.children[0];
[50019] Fix | Delete
root.pageSet[$cleanPage]();
[50020] Fix | Delete
const pageAreas = root.pageSet.pageArea.children;
[50021] Fix | Delete
const mainHtml = {
[50022] Fix | Delete
name: "div",
[50023] Fix | Delete
children: []
[50024] Fix | Delete
};
[50025] Fix | Delete
let pageArea = null;
[50026] Fix | Delete
let breakBefore = null;
[50027] Fix | Delete
let breakBeforeTarget = null;
[50028] Fix | Delete
if (root.breakBefore.children.length >= 1) {
[50029] Fix | Delete
breakBefore = root.breakBefore.children[0];
[50030] Fix | Delete
breakBeforeTarget = breakBefore.target;
[50031] Fix | Delete
} else if (root.subform.children.length >= 1 && root.subform.children[0].breakBefore.children.length >= 1) {
[50032] Fix | Delete
breakBefore = root.subform.children[0].breakBefore.children[0];
[50033] Fix | Delete
breakBeforeTarget = breakBefore.target;
[50034] Fix | Delete
} else if (root.break?.beforeTarget) {
[50035] Fix | Delete
breakBefore = root.break;
[50036] Fix | Delete
breakBeforeTarget = breakBefore.beforeTarget;
[50037] Fix | Delete
} else if (root.subform.children.length >= 1 && root.subform.children[0].break?.beforeTarget) {
[50038] Fix | Delete
breakBefore = root.subform.children[0].break;
[50039] Fix | Delete
breakBeforeTarget = breakBefore.beforeTarget;
[50040] Fix | Delete
}
[50041] Fix | Delete
if (breakBefore) {
[50042] Fix | Delete
const target = this[$searchNode](breakBeforeTarget, breakBefore[$getParent]());
[50043] Fix | Delete
if (target instanceof PageArea) {
[50044] Fix | Delete
pageArea = target;
[50045] Fix | Delete
breakBefore[$extra] = {};
[50046] Fix | Delete
}
[50047] Fix | Delete
}
[50048] Fix | Delete
if (!pageArea) {
[50049] Fix | Delete
pageArea = pageAreas[0];
[50050] Fix | Delete
}
[50051] Fix | Delete
pageArea[$extra] = {
[50052] Fix | Delete
numberOfUse: 1
[50053] Fix | Delete
};
[50054] Fix | Delete
const pageAreaParent = pageArea[$getParent]();
[50055] Fix | Delete
pageAreaParent[$extra] = {
[50056] Fix | Delete
numberOfUse: 1,
[50057] Fix | Delete
pageIndex: pageAreaParent.pageArea.children.indexOf(pageArea),
[50058] Fix | Delete
pageSetIndex: 0
[50059] Fix | Delete
};
[50060] Fix | Delete
let targetPageArea;
[50061] Fix | Delete
let leader = null;
[50062] Fix | Delete
let trailer = null;
[50063] Fix | Delete
let hasSomething = true;
[50064] Fix | Delete
let hasSomethingCounter = 0;
[50065] Fix | Delete
let startIndex = 0;
[50066] Fix | Delete
while (true) {
[50067] Fix | Delete
if (!hasSomething) {
[50068] Fix | Delete
mainHtml.children.pop();
[50069] Fix | Delete
if (++hasSomethingCounter === MAX_EMPTY_PAGES) {
[50070] Fix | Delete
warn("XFA - Something goes wrong: please file a bug.");
[50071] Fix | Delete
return mainHtml;
[50072] Fix | Delete
}
[50073] Fix | Delete
} else {
[50074] Fix | Delete
hasSomethingCounter = 0;
[50075] Fix | Delete
}
[50076] Fix | Delete
targetPageArea = null;
[50077] Fix | Delete
this[$extra].currentPageArea = pageArea;
[50078] Fix | Delete
const page = pageArea[$toHTML]().html;
[50079] Fix | Delete
mainHtml.children.push(page);
[50080] Fix | Delete
if (leader) {
[50081] Fix | Delete
this[$extra].noLayoutFailure = true;
[50082] Fix | Delete
page.children.push(leader[$toHTML](pageArea[$extra].space).html);
[50083] Fix | Delete
leader = null;
[50084] Fix | Delete
}
[50085] Fix | Delete
if (trailer) {
[50086] Fix | Delete
this[$extra].noLayoutFailure = true;
[50087] Fix | Delete
page.children.push(trailer[$toHTML](pageArea[$extra].space).html);
[50088] Fix | Delete
trailer = null;
[50089] Fix | Delete
}
[50090] Fix | Delete
const contentAreas = pageArea.contentArea.children;
[50091] Fix | Delete
const htmlContentAreas = page.children.filter(node => node.attributes.class.includes("xfaContentarea"));
[50092] Fix | Delete
hasSomething = false;
[50093] Fix | Delete
this[$extra].firstUnsplittable = null;
[50094] Fix | Delete
this[$extra].noLayoutFailure = false;
[50095] Fix | Delete
const flush = index => {
[50096] Fix | Delete
const html = root[$flushHTML]();
[50097] Fix | Delete
if (html) {
[50098] Fix | Delete
hasSomething ||= html.children?.length > 0;
[50099] Fix | Delete
htmlContentAreas[index].children.push(html);
[50100] Fix | Delete
}
[50101] Fix | Delete
};
[50102] Fix | Delete
for (let i = startIndex, ii = contentAreas.length; i < ii; i++) {
[50103] Fix | Delete
const contentArea = this[$extra].currentContentArea = contentAreas[i];
[50104] Fix | Delete
const space = {
[50105] Fix | Delete
width: contentArea.w,
[50106] Fix | Delete
height: contentArea.h
[50107] Fix | Delete
};
[50108] Fix | Delete
startIndex = 0;
[50109] Fix | Delete
if (leader) {
[50110] Fix | Delete
htmlContentAreas[i].children.push(leader[$toHTML](space).html);
[50111] Fix | Delete
leader = null;
[50112] Fix | Delete
}
[50113] Fix | Delete
if (trailer) {
[50114] Fix | Delete
htmlContentAreas[i].children.push(trailer[$toHTML](space).html);
[50115] Fix | Delete
trailer = null;
[50116] Fix | Delete
}
[50117] Fix | Delete
const html = root[$toHTML](space);
[50118] Fix | Delete
if (html.success) {
[50119] Fix | Delete
if (html.html) {
[50120] Fix | Delete
hasSomething ||= html.html.children?.length > 0;
[50121] Fix | Delete
htmlContentAreas[i].children.push(html.html);
[50122] Fix | Delete
} else if (!hasSomething && mainHtml.children.length > 1) {
[50123] Fix | Delete
mainHtml.children.pop();
[50124] Fix | Delete
}
[50125] Fix | Delete
return mainHtml;
[50126] Fix | Delete
}
[50127] Fix | Delete
if (html.isBreak()) {
[50128] Fix | Delete
const node = html.breakNode;
[50129] Fix | Delete
flush(i);
[50130] Fix | Delete
if (node.targetType === "auto") {
[50131] Fix | Delete
continue;
[50132] Fix | Delete
}
[50133] Fix | Delete
if (node.leader) {
[50134] Fix | Delete
leader = this[$searchNode](node.leader, node[$getParent]());
[50135] Fix | Delete
leader = leader ? leader[0] : null;
[50136] Fix | Delete
}
[50137] Fix | Delete
if (node.trailer) {
[50138] Fix | Delete
trailer = this[$searchNode](node.trailer, node[$getParent]());
[50139] Fix | Delete
trailer = trailer ? trailer[0] : null;
[50140] Fix | Delete
}
[50141] Fix | Delete
if (node.targetType === "pageArea") {
[50142] Fix | Delete
targetPageArea = node[$extra].target;
[50143] Fix | Delete
i = Infinity;
[50144] Fix | Delete
} else if (!node[$extra].target) {
[50145] Fix | Delete
i = node[$extra].index;
[50146] Fix | Delete
} else {
[50147] Fix | Delete
targetPageArea = node[$extra].target;
[50148] Fix | Delete
startIndex = node[$extra].index + 1;
[50149] Fix | Delete
i = Infinity;
[50150] Fix | Delete
}
[50151] Fix | Delete
continue;
[50152] Fix | Delete
}
[50153] Fix | Delete
if (this[$extra].overflowNode) {
[50154] Fix | Delete
const node = this[$extra].overflowNode;
[50155] Fix | Delete
this[$extra].overflowNode = null;
[50156] Fix | Delete
const overflowExtra = node[$getExtra]();
[50157] Fix | Delete
const target = overflowExtra.target;
[50158] Fix | Delete
overflowExtra.addLeader = overflowExtra.leader !== null;
[50159] Fix | Delete
overflowExtra.addTrailer = overflowExtra.trailer !== null;
[50160] Fix | Delete
flush(i);
[50161] Fix | Delete
const currentIndex = i;
[50162] Fix | Delete
i = Infinity;
[50163] Fix | Delete
if (target instanceof PageArea) {
[50164] Fix | Delete
targetPageArea = target;
[50165] Fix | Delete
} else if (target instanceof ContentArea) {
[50166] Fix | Delete
const index = contentAreas.indexOf(target);
[50167] Fix | Delete
if (index !== -1) {
[50168] Fix | Delete
if (index > currentIndex) {
[50169] Fix | Delete
i = index - 1;
[50170] Fix | Delete
} else {
[50171] Fix | Delete
startIndex = index;
[50172] Fix | Delete
}
[50173] Fix | Delete
} else {
[50174] Fix | Delete
targetPageArea = target[$getParent]();
[50175] Fix | Delete
startIndex = targetPageArea.contentArea.children.indexOf(target);
[50176] Fix | Delete
}
[50177] Fix | Delete
}
[50178] Fix | Delete
continue;
[50179] Fix | Delete
}
[50180] Fix | Delete
flush(i);
[50181] Fix | Delete
}
[50182] Fix | Delete
this[$extra].pageNumber += 1;
[50183] Fix | Delete
if (targetPageArea) {
[50184] Fix | Delete
if (targetPageArea[$isUsable]()) {
[50185] Fix | Delete
targetPageArea[$extra].numberOfUse += 1;
[50186] Fix | Delete
} else {
[50187] Fix | Delete
targetPageArea = null;
[50188] Fix | Delete
}
[50189] Fix | Delete
}
[50190] Fix | Delete
pageArea = targetPageArea || pageArea[$getNextPage]();
[50191] Fix | Delete
yield null;
[50192] Fix | Delete
}
[50193] Fix | Delete
}
[50194] Fix | Delete
}
[50195] Fix | Delete
class Text extends ContentObject {
[50196] Fix | Delete
constructor(attributes) {
[50197] Fix | Delete
super(TEMPLATE_NS_ID, "text");
[50198] Fix | Delete
this.id = attributes.id || "";
[50199] Fix | Delete
this.maxChars = getInteger({
[50200] Fix | Delete
data: attributes.maxChars,
[50201] Fix | Delete
defaultValue: 0,
[50202] Fix | Delete
validate: x => x >= 0
[50203] Fix | Delete
});
[50204] Fix | Delete
this.name = attributes.name || "";
[50205] Fix | Delete
this.rid = attributes.rid || "";
[50206] Fix | Delete
this.use = attributes.use || "";
[50207] Fix | Delete
this.usehref = attributes.usehref || "";
[50208] Fix | Delete
}
[50209] Fix | Delete
[$acceptWhitespace]() {
[50210] Fix | Delete
return true;
[50211] Fix | Delete
}
[50212] Fix | Delete
[$onChild](child) {
[50213] Fix | Delete
if (child[$namespaceId] === NamespaceIds.xhtml.id) {
[50214] Fix | Delete
this[$content] = child;
[50215] Fix | Delete
return true;
[50216] Fix | Delete
}
[50217] Fix | Delete
warn(`XFA - Invalid content in Text: ${child[$nodeName]}.`);
[50218] Fix | Delete
return false;
[50219] Fix | Delete
}
[50220] Fix | Delete
[$onText](str) {
[50221] Fix | Delete
if (this[$content] instanceof XFAObject) {
[50222] Fix | Delete
return;
[50223] Fix | Delete
}
[50224] Fix | Delete
super[$onText](str);
[50225] Fix | Delete
}
[50226] Fix | Delete
[$finalize]() {
[50227] Fix | Delete
if (typeof this[$content] === "string") {
[50228] Fix | Delete
this[$content] = this[$content].replaceAll("\r\n", "\n");
[50229] Fix | Delete
}
[50230] Fix | Delete
}
[50231] Fix | Delete
[$getExtra]() {
[50232] Fix | Delete
if (typeof this[$content] === "string") {
[50233] Fix | Delete
return this[$content].split(/[\u2029\u2028\n]/).reduce((acc, line) => {
[50234] Fix | Delete
if (line) {
[50235] Fix | Delete
acc.push(line);
[50236] Fix | Delete
}
[50237] Fix | Delete
return acc;
[50238] Fix | Delete
}, []).join("\n");
[50239] Fix | Delete
}
[50240] Fix | Delete
return this[$content][$text]();
[50241] Fix | Delete
}
[50242] Fix | Delete
[$toHTML](availableSpace) {
[50243] Fix | Delete
if (typeof this[$content] === "string") {
[50244] Fix | Delete
const html = valueToHtml(this[$content]).html;
[50245] Fix | Delete
if (this[$content].includes("\u2029")) {
[50246] Fix | Delete
html.name = "div";
[50247] Fix | Delete
html.children = [];
[50248] Fix | Delete
this[$content].split("\u2029").map(para => para.split(/[\u2028\n]/).reduce((acc, line) => {
[50249] Fix | Delete
acc.push({
[50250] Fix | Delete
name: "span",
[50251] Fix | Delete
value: line
[50252] Fix | Delete
}, {
[50253] Fix | Delete
name: "br"
[50254] Fix | Delete
});
[50255] Fix | Delete
return acc;
[50256] Fix | Delete
}, [])).forEach(lines => {
[50257] Fix | Delete
html.children.push({
[50258] Fix | Delete
name: "p",
[50259] Fix | Delete
children: lines
[50260] Fix | Delete
});
[50261] Fix | Delete
});
[50262] Fix | Delete
} else if (/[\u2028\n]/.test(this[$content])) {
[50263] Fix | Delete
html.name = "div";
[50264] Fix | Delete
html.children = [];
[50265] Fix | Delete
this[$content].split(/[\u2028\n]/).forEach(line => {
[50266] Fix | Delete
html.children.push({
[50267] Fix | Delete
name: "span",
[50268] Fix | Delete
value: line
[50269] Fix | Delete
}, {
[50270] Fix | Delete
name: "br"
[50271] Fix | Delete
});
[50272] Fix | Delete
});
[50273] Fix | Delete
}
[50274] Fix | Delete
return HTMLResult.success(html);
[50275] Fix | Delete
}
[50276] Fix | Delete
return this[$content][$toHTML](availableSpace);
[50277] Fix | Delete
}
[50278] Fix | Delete
}
[50279] Fix | Delete
class TextEdit extends XFAObject {
[50280] Fix | Delete
constructor(attributes) {
[50281] Fix | Delete
super(TEMPLATE_NS_ID, "textEdit", true);
[50282] Fix | Delete
this.allowRichText = getInteger({
[50283] Fix | Delete
data: attributes.allowRichText,
[50284] Fix | Delete
defaultValue: 0,
[50285] Fix | Delete
validate: x => x === 1
[50286] Fix | Delete
});
[50287] Fix | Delete
this.hScrollPolicy = getStringOption(attributes.hScrollPolicy, ["auto", "off", "on"]);
[50288] Fix | Delete
this.id = attributes.id || "";
[50289] Fix | Delete
this.multiLine = getInteger({
[50290] Fix | Delete
data: attributes.multiLine,
[50291] Fix | Delete
defaultValue: "",
[50292] Fix | Delete
validate: x => x === 0 || x === 1
[50293] Fix | Delete
});
[50294] Fix | Delete
this.use = attributes.use || "";
[50295] Fix | Delete
this.usehref = attributes.usehref || "";
[50296] Fix | Delete
this.vScrollPolicy = getStringOption(attributes.vScrollPolicy, ["auto", "off", "on"]);
[50297] Fix | Delete
this.border = null;
[50298] Fix | Delete
this.comb = null;
[50299] Fix | Delete
this.extras = null;
[50300] Fix | Delete
this.margin = null;
[50301] Fix | Delete
}
[50302] Fix | Delete
[$toHTML](availableSpace) {
[50303] Fix | Delete
const style = toStyle(this, "border", "font", "margin");
[50304] Fix | Delete
let html;
[50305] Fix | Delete
const field = this[$getParent]()[$getParent]();
[50306] Fix | Delete
if (this.multiLine === "") {
[50307] Fix | Delete
this.multiLine = field instanceof Draw ? 1 : 0;
[50308] Fix | Delete
}
[50309] Fix | Delete
if (this.multiLine === 1) {
[50310] Fix | Delete
html = {
[50311] Fix | Delete
name: "textarea",
[50312] Fix | Delete
attributes: {
[50313] Fix | Delete
dataId: field[$data]?.[$uid] || field[$uid],
[50314] Fix | Delete
fieldId: field[$uid],
[50315] Fix | Delete
class: ["xfaTextfield"],
[50316] Fix | Delete
style,
[50317] Fix | Delete
"aria-label": ariaLabel(field),
[50318] Fix | Delete
"aria-required": false
[50319] Fix | Delete
}
[50320] Fix | Delete
};
[50321] Fix | Delete
} else {
[50322] Fix | Delete
html = {
[50323] Fix | Delete
name: "input",
[50324] Fix | Delete
attributes: {
[50325] Fix | Delete
type: "text",
[50326] Fix | Delete
dataId: field[$data]?.[$uid] || field[$uid],
[50327] Fix | Delete
fieldId: field[$uid],
[50328] Fix | Delete
class: ["xfaTextfield"],
[50329] Fix | Delete
style,
[50330] Fix | Delete
"aria-label": ariaLabel(field),
[50331] Fix | Delete
"aria-required": false
[50332] Fix | Delete
}
[50333] Fix | Delete
};
[50334] Fix | Delete
}
[50335] Fix | Delete
if (isRequired(field)) {
[50336] Fix | Delete
html.attributes["aria-required"] = true;
[50337] Fix | Delete
html.attributes.required = true;
[50338] Fix | Delete
}
[50339] Fix | Delete
return HTMLResult.success({
[50340] Fix | Delete
name: "label",
[50341] Fix | Delete
attributes: {
[50342] Fix | Delete
class: ["xfaLabel"]
[50343] Fix | Delete
},
[50344] Fix | Delete
children: [html]
[50345] Fix | Delete
});
[50346] Fix | Delete
}
[50347] Fix | Delete
}
[50348] Fix | Delete
class Time extends StringObject {
[50349] Fix | Delete
constructor(attributes) {
[50350] Fix | Delete
super(TEMPLATE_NS_ID, "time");
[50351] Fix | Delete
this.id = attributes.id || "";
[50352] Fix | Delete
this.name = attributes.name || "";
[50353] Fix | Delete
this.use = attributes.use || "";
[50354] Fix | Delete
this.usehref = attributes.usehref || "";
[50355] Fix | Delete
}
[50356] Fix | Delete
[$finalize]() {
[50357] Fix | Delete
const date = this[$content].trim();
[50358] Fix | Delete
this[$content] = date ? new Date(date) : null;
[50359] Fix | Delete
}
[50360] Fix | Delete
[$toHTML](availableSpace) {
[50361] Fix | Delete
return valueToHtml(this[$content] ? this[$content].toString() : "");
[50362] Fix | Delete
}
[50363] Fix | Delete
}
[50364] Fix | Delete
class TimeStamp extends XFAObject {
[50365] Fix | Delete
constructor(attributes) {
[50366] Fix | Delete
super(TEMPLATE_NS_ID, "timeStamp");
[50367] Fix | Delete
this.id = attributes.id || "";
[50368] Fix | Delete
this.server = attributes.server || "";
[50369] Fix | Delete
this.type = getStringOption(attributes.type, ["optional", "required"]);
[50370] Fix | Delete
this.use = attributes.use || "";
[50371] Fix | Delete
this.usehref = attributes.usehref || "";
[50372] Fix | Delete
}
[50373] Fix | Delete
}
[50374] Fix | Delete
class ToolTip extends StringObject {
[50375] Fix | Delete
constructor(attributes) {
[50376] Fix | Delete
super(TEMPLATE_NS_ID, "toolTip");
[50377] Fix | Delete
this.id = attributes.id || "";
[50378] Fix | Delete
this.rid = attributes.rid || "";
[50379] Fix | Delete
this.use = attributes.use || "";
[50380] Fix | Delete
this.usehref = attributes.usehref || "";
[50381] Fix | Delete
}
[50382] Fix | Delete
}
[50383] Fix | Delete
class Traversal extends XFAObject {
[50384] Fix | Delete
constructor(attributes) {
[50385] Fix | Delete
super(TEMPLATE_NS_ID, "traversal", true);
[50386] Fix | Delete
this.id = attributes.id || "";
[50387] Fix | Delete
this.use = attributes.use || "";
[50388] Fix | Delete
this.usehref = attributes.usehref || "";
[50389] Fix | Delete
this.extras = null;
[50390] Fix | Delete
this.traverse = new XFAObjectArray();
[50391] Fix | Delete
}
[50392] Fix | Delete
}
[50393] Fix | Delete
class Traverse extends XFAObject {
[50394] Fix | Delete
constructor(attributes) {
[50395] Fix | Delete
super(TEMPLATE_NS_ID, "traverse", true);
[50396] Fix | Delete
this.id = attributes.id || "";
[50397] Fix | Delete
this.operation = getStringOption(attributes.operation, ["next", "back", "down", "first", "left", "right", "up"]);
[50398] Fix | Delete
this.ref = attributes.ref || "";
[50399] Fix | Delete
this.use = attributes.use || "";
[50400] Fix | Delete
this.usehref = attributes.usehref || "";
[50401] Fix | Delete
this.extras = null;
[50402] Fix | Delete
this.script = null;
[50403] Fix | Delete
}
[50404] Fix | Delete
get name() {
[50405] Fix | Delete
return this.operation;
[50406] Fix | Delete
}
[50407] Fix | Delete
[$isTransparent]() {
[50408] Fix | Delete
return false;
[50409] Fix | Delete
}
[50410] Fix | Delete
}
[50411] Fix | Delete
class Ui extends XFAObject {
[50412] Fix | Delete
constructor(attributes) {
[50413] Fix | Delete
super(TEMPLATE_NS_ID, "ui", true);
[50414] Fix | Delete
this.id = attributes.id || "";
[50415] Fix | Delete
this.use = attributes.use || "";
[50416] Fix | Delete
this.usehref = attributes.usehref || "";
[50417] Fix | Delete
this.extras = null;
[50418] Fix | Delete
this.picture = null;
[50419] Fix | Delete
this.barcode = null;
[50420] Fix | Delete
this.button = null;
[50421] Fix | Delete
this.checkButton = null;
[50422] Fix | Delete
this.choiceList = null;
[50423] Fix | Delete
this.dateTimeEdit = null;
[50424] Fix | Delete
this.defaultUi = null;
[50425] Fix | Delete
this.imageEdit = null;
[50426] Fix | Delete
this.numericEdit = null;
[50427] Fix | Delete
this.passwordEdit = null;
[50428] Fix | Delete
this.signature = null;
[50429] Fix | Delete
this.textEdit = null;
[50430] Fix | Delete
}
[50431] Fix | Delete
[$getExtra]() {
[50432] Fix | Delete
if (this[$extra] === undefined) {
[50433] Fix | Delete
for (const name of Object.getOwnPropertyNames(this)) {
[50434] Fix | Delete
if (name === "extras" || name === "picture") {
[50435] Fix | Delete
continue;
[50436] Fix | Delete
}
[50437] Fix | Delete
const obj = this[name];
[50438] Fix | Delete
if (!(obj instanceof XFAObject)) {
[50439] Fix | Delete
continue;
[50440] Fix | Delete
}
[50441] Fix | Delete
this[$extra] = obj;
[50442] Fix | Delete
return obj;
[50443] Fix | Delete
}
[50444] Fix | Delete
this[$extra] = null;
[50445] Fix | Delete
}
[50446] Fix | Delete
return this[$extra];
[50447] Fix | Delete
}
[50448] Fix | Delete
[$toHTML](availableSpace) {
[50449] Fix | Delete
const obj = this[$getExtra]();
[50450] Fix | Delete
if (obj) {
[50451] Fix | Delete
return obj[$toHTML](availableSpace);
[50452] Fix | Delete
}
[50453] Fix | Delete
return HTMLResult.EMPTY;
[50454] Fix | Delete
}
[50455] Fix | Delete
}
[50456] Fix | Delete
class Validate extends XFAObject {
[50457] Fix | Delete
constructor(attributes) {
[50458] Fix | Delete
super(TEMPLATE_NS_ID, "validate", true);
[50459] Fix | Delete
this.formatTest = getStringOption(attributes.formatTest, ["warning", "disabled", "error"]);
[50460] Fix | Delete
this.id = attributes.id || "";
[50461] Fix | Delete
this.nullTest = getStringOption(attributes.nullTest, ["disabled", "error", "warning"]);
[50462] Fix | Delete
this.scriptTest = getStringOption(attributes.scriptTest, ["error", "disabled", "warning"]);
[50463] Fix | Delete
this.use = attributes.use || "";
[50464] Fix | Delete
this.usehref = attributes.usehref || "";
[50465] Fix | Delete
this.extras = null;
[50466] Fix | Delete
this.message = null;
[50467] Fix | Delete
this.picture = null;
[50468] Fix | Delete
this.script = null;
[50469] Fix | Delete
}
[50470] Fix | Delete
}
[50471] Fix | Delete
class Value extends XFAObject {
[50472] Fix | Delete
constructor(attributes) {
[50473] Fix | Delete
super(TEMPLATE_NS_ID, "value", true);
[50474] Fix | Delete
this.id = attributes.id || "";
[50475] Fix | Delete
this.override = getInteger({
[50476] Fix | Delete
data: attributes.override,
[50477] Fix | Delete
defaultValue: 0,
[50478] Fix | Delete
validate: x => x === 1
[50479] Fix | Delete
});
[50480] Fix | Delete
this.relevant = getRelevant(attributes.relevant);
[50481] Fix | Delete
this.use = attributes.use || "";
[50482] Fix | Delete
this.usehref = attributes.usehref || "";
[50483] Fix | Delete
this.arc = null;
[50484] Fix | Delete
this.boolean = null;
[50485] Fix | Delete
this.date = null;
[50486] Fix | Delete
this.dateTime = null;
[50487] Fix | Delete
this.decimal = null;
[50488] Fix | Delete
this.exData = null;
[50489] Fix | Delete
this.float = null;
[50490] Fix | Delete
this.image = null;
[50491] Fix | Delete
this.integer = null;
[50492] Fix | Delete
this.line = null;
[50493] Fix | Delete
this.rectangle = null;
[50494] Fix | Delete
this.text = null;
[50495] Fix | Delete
this.time = null;
[50496] Fix | Delete
}
[50497] Fix | Delete
[$setValue](value) {
[50498] Fix | Delete
const parent = this[$getParent]();
[50499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function