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
}
[49500] Fix | Delete
}
[49501] Fix | Delete
class SignData extends XFAObject {
[49502] Fix | Delete
constructor(attributes) {
[49503] Fix | Delete
super(TEMPLATE_NS_ID, "signData", true);
[49504] Fix | Delete
this.id = attributes.id || "";
[49505] Fix | Delete
this.operation = getStringOption(attributes.operation, ["sign", "clear", "verify"]);
[49506] Fix | Delete
this.ref = attributes.ref || "";
[49507] Fix | Delete
this.target = attributes.target || "";
[49508] Fix | Delete
this.use = attributes.use || "";
[49509] Fix | Delete
this.usehref = attributes.usehref || "";
[49510] Fix | Delete
this.filter = null;
[49511] Fix | Delete
this.manifest = null;
[49512] Fix | Delete
}
[49513] Fix | Delete
}
[49514] Fix | Delete
class Signature extends XFAObject {
[49515] Fix | Delete
constructor(attributes) {
[49516] Fix | Delete
super(TEMPLATE_NS_ID, "signature", true);
[49517] Fix | Delete
this.id = attributes.id || "";
[49518] Fix | Delete
this.type = getStringOption(attributes.type, ["PDF1.3", "PDF1.6"]);
[49519] Fix | Delete
this.use = attributes.use || "";
[49520] Fix | Delete
this.usehref = attributes.usehref || "";
[49521] Fix | Delete
this.border = null;
[49522] Fix | Delete
this.extras = null;
[49523] Fix | Delete
this.filter = null;
[49524] Fix | Delete
this.manifest = null;
[49525] Fix | Delete
this.margin = null;
[49526] Fix | Delete
}
[49527] Fix | Delete
}
[49528] Fix | Delete
class Signing extends XFAObject {
[49529] Fix | Delete
constructor(attributes) {
[49530] Fix | Delete
super(TEMPLATE_NS_ID, "signing", true);
[49531] Fix | Delete
this.id = attributes.id || "";
[49532] Fix | Delete
this.type = getStringOption(attributes.type, ["optional", "required"]);
[49533] Fix | Delete
this.use = attributes.use || "";
[49534] Fix | Delete
this.usehref = attributes.usehref || "";
[49535] Fix | Delete
this.certificate = new XFAObjectArray();
[49536] Fix | Delete
}
[49537] Fix | Delete
}
[49538] Fix | Delete
class Solid extends XFAObject {
[49539] Fix | Delete
constructor(attributes) {
[49540] Fix | Delete
super(TEMPLATE_NS_ID, "solid", true);
[49541] Fix | Delete
this.id = attributes.id || "";
[49542] Fix | Delete
this.use = attributes.use || "";
[49543] Fix | Delete
this.usehref = attributes.usehref || "";
[49544] Fix | Delete
this.extras = null;
[49545] Fix | Delete
}
[49546] Fix | Delete
[$toStyle](startColor) {
[49547] Fix | Delete
return startColor ? startColor[$toStyle]() : "#FFFFFF";
[49548] Fix | Delete
}
[49549] Fix | Delete
}
[49550] Fix | Delete
class Speak extends StringObject {
[49551] Fix | Delete
constructor(attributes) {
[49552] Fix | Delete
super(TEMPLATE_NS_ID, "speak");
[49553] Fix | Delete
this.disable = getInteger({
[49554] Fix | Delete
data: attributes.disable,
[49555] Fix | Delete
defaultValue: 0,
[49556] Fix | Delete
validate: x => x === 1
[49557] Fix | Delete
});
[49558] Fix | Delete
this.id = attributes.id || "";
[49559] Fix | Delete
this.priority = getStringOption(attributes.priority, ["custom", "caption", "name", "toolTip"]);
[49560] Fix | Delete
this.rid = attributes.rid || "";
[49561] Fix | Delete
this.use = attributes.use || "";
[49562] Fix | Delete
this.usehref = attributes.usehref || "";
[49563] Fix | Delete
}
[49564] Fix | Delete
}
[49565] Fix | Delete
class Stipple extends XFAObject {
[49566] Fix | Delete
constructor(attributes) {
[49567] Fix | Delete
super(TEMPLATE_NS_ID, "stipple", true);
[49568] Fix | Delete
this.id = attributes.id || "";
[49569] Fix | Delete
this.rate = getInteger({
[49570] Fix | Delete
data: attributes.rate,
[49571] Fix | Delete
defaultValue: 50,
[49572] Fix | Delete
validate: x => x >= 0 && x <= 100
[49573] Fix | Delete
});
[49574] Fix | Delete
this.use = attributes.use || "";
[49575] Fix | Delete
this.usehref = attributes.usehref || "";
[49576] Fix | Delete
this.color = null;
[49577] Fix | Delete
this.extras = null;
[49578] Fix | Delete
}
[49579] Fix | Delete
[$toStyle](bgColor) {
[49580] Fix | Delete
const alpha = this.rate / 100;
[49581] Fix | Delete
return Util.makeHexColor(Math.round(bgColor.value.r * (1 - alpha) + this.value.r * alpha), Math.round(bgColor.value.g * (1 - alpha) + this.value.g * alpha), Math.round(bgColor.value.b * (1 - alpha) + this.value.b * alpha));
[49582] Fix | Delete
}
[49583] Fix | Delete
}
[49584] Fix | Delete
class Subform extends XFAObject {
[49585] Fix | Delete
constructor(attributes) {
[49586] Fix | Delete
super(TEMPLATE_NS_ID, "subform", true);
[49587] Fix | Delete
this.access = getStringOption(attributes.access, ["open", "nonInteractive", "protected", "readOnly"]);
[49588] Fix | Delete
this.allowMacro = getInteger({
[49589] Fix | Delete
data: attributes.allowMacro,
[49590] Fix | Delete
defaultValue: 0,
[49591] Fix | Delete
validate: x => x === 1
[49592] Fix | Delete
});
[49593] Fix | Delete
this.anchorType = getStringOption(attributes.anchorType, ["topLeft", "bottomCenter", "bottomLeft", "bottomRight", "middleCenter", "middleLeft", "middleRight", "topCenter", "topRight"]);
[49594] Fix | Delete
this.colSpan = getInteger({
[49595] Fix | Delete
data: attributes.colSpan,
[49596] Fix | Delete
defaultValue: 1,
[49597] Fix | Delete
validate: n => n >= 1 || n === -1
[49598] Fix | Delete
});
[49599] Fix | Delete
this.columnWidths = (attributes.columnWidths || "").trim().split(/\s+/).map(x => x === "-1" ? -1 : getMeasurement(x));
[49600] Fix | Delete
this.h = attributes.h ? getMeasurement(attributes.h) : "";
[49601] Fix | Delete
this.hAlign = getStringOption(attributes.hAlign, ["left", "center", "justify", "justifyAll", "radix", "right"]);
[49602] Fix | Delete
this.id = attributes.id || "";
[49603] Fix | Delete
this.layout = getStringOption(attributes.layout, ["position", "lr-tb", "rl-row", "rl-tb", "row", "table", "tb"]);
[49604] Fix | Delete
this.locale = attributes.locale || "";
[49605] Fix | Delete
this.maxH = getMeasurement(attributes.maxH, "0pt");
[49606] Fix | Delete
this.maxW = getMeasurement(attributes.maxW, "0pt");
[49607] Fix | Delete
this.mergeMode = getStringOption(attributes.mergeMode, ["consumeData", "matchTemplate"]);
[49608] Fix | Delete
this.minH = getMeasurement(attributes.minH, "0pt");
[49609] Fix | Delete
this.minW = getMeasurement(attributes.minW, "0pt");
[49610] Fix | Delete
this.name = attributes.name || "";
[49611] Fix | Delete
this.presence = getStringOption(attributes.presence, ["visible", "hidden", "inactive", "invisible"]);
[49612] Fix | Delete
this.relevant = getRelevant(attributes.relevant);
[49613] Fix | Delete
this.restoreState = getStringOption(attributes.restoreState, ["manual", "auto"]);
[49614] Fix | Delete
this.scope = getStringOption(attributes.scope, ["name", "none"]);
[49615] Fix | Delete
this.use = attributes.use || "";
[49616] Fix | Delete
this.usehref = attributes.usehref || "";
[49617] Fix | Delete
this.w = attributes.w ? getMeasurement(attributes.w) : "";
[49618] Fix | Delete
this.x = getMeasurement(attributes.x, "0pt");
[49619] Fix | Delete
this.y = getMeasurement(attributes.y, "0pt");
[49620] Fix | Delete
this.assist = null;
[49621] Fix | Delete
this.bind = null;
[49622] Fix | Delete
this.bookend = null;
[49623] Fix | Delete
this.border = null;
[49624] Fix | Delete
this.break = null;
[49625] Fix | Delete
this.calculate = null;
[49626] Fix | Delete
this.desc = null;
[49627] Fix | Delete
this.extras = null;
[49628] Fix | Delete
this.keep = null;
[49629] Fix | Delete
this.margin = null;
[49630] Fix | Delete
this.occur = null;
[49631] Fix | Delete
this.overflow = null;
[49632] Fix | Delete
this.pageSet = null;
[49633] Fix | Delete
this.para = null;
[49634] Fix | Delete
this.traversal = null;
[49635] Fix | Delete
this.validate = null;
[49636] Fix | Delete
this.variables = null;
[49637] Fix | Delete
this.area = new XFAObjectArray();
[49638] Fix | Delete
this.breakAfter = new XFAObjectArray();
[49639] Fix | Delete
this.breakBefore = new XFAObjectArray();
[49640] Fix | Delete
this.connect = new XFAObjectArray();
[49641] Fix | Delete
this.draw = new XFAObjectArray();
[49642] Fix | Delete
this.event = new XFAObjectArray();
[49643] Fix | Delete
this.exObject = new XFAObjectArray();
[49644] Fix | Delete
this.exclGroup = new XFAObjectArray();
[49645] Fix | Delete
this.field = new XFAObjectArray();
[49646] Fix | Delete
this.proto = new XFAObjectArray();
[49647] Fix | Delete
this.setProperty = new XFAObjectArray();
[49648] Fix | Delete
this.subform = new XFAObjectArray();
[49649] Fix | Delete
this.subformSet = new XFAObjectArray();
[49650] Fix | Delete
}
[49651] Fix | Delete
[$getSubformParent]() {
[49652] Fix | Delete
const parent = this[$getParent]();
[49653] Fix | Delete
if (parent instanceof SubformSet) {
[49654] Fix | Delete
return parent[$getSubformParent]();
[49655] Fix | Delete
}
[49656] Fix | Delete
return parent;
[49657] Fix | Delete
}
[49658] Fix | Delete
[$isBindable]() {
[49659] Fix | Delete
return true;
[49660] Fix | Delete
}
[49661] Fix | Delete
[$isThereMoreWidth]() {
[49662] Fix | Delete
return this.layout.endsWith("-tb") && this[$extra].attempt === 0 && this[$extra].numberInLine > 0 || this[$getParent]()[$isThereMoreWidth]();
[49663] Fix | Delete
}
[49664] Fix | Delete
*[$getContainedChildren]() {
[49665] Fix | Delete
yield* getContainedChildren(this);
[49666] Fix | Delete
}
[49667] Fix | Delete
[$flushHTML]() {
[49668] Fix | Delete
return flushHTML(this);
[49669] Fix | Delete
}
[49670] Fix | Delete
[$addHTML](html, bbox) {
[49671] Fix | Delete
addHTML(this, html, bbox);
[49672] Fix | Delete
}
[49673] Fix | Delete
[$getAvailableSpace]() {
[49674] Fix | Delete
return getAvailableSpace(this);
[49675] Fix | Delete
}
[49676] Fix | Delete
[$isSplittable]() {
[49677] Fix | Delete
const parent = this[$getSubformParent]();
[49678] Fix | Delete
if (!parent[$isSplittable]()) {
[49679] Fix | Delete
return false;
[49680] Fix | Delete
}
[49681] Fix | Delete
if (this[$extra]._isSplittable !== undefined) {
[49682] Fix | Delete
return this[$extra]._isSplittable;
[49683] Fix | Delete
}
[49684] Fix | Delete
if (this.layout === "position" || this.layout.includes("row")) {
[49685] Fix | Delete
this[$extra]._isSplittable = false;
[49686] Fix | Delete
return false;
[49687] Fix | Delete
}
[49688] Fix | Delete
if (this.keep && this.keep.intact !== "none") {
[49689] Fix | Delete
this[$extra]._isSplittable = false;
[49690] Fix | Delete
return false;
[49691] Fix | Delete
}
[49692] Fix | Delete
if (parent.layout?.endsWith("-tb") && parent[$extra].numberInLine !== 0) {
[49693] Fix | Delete
return false;
[49694] Fix | Delete
}
[49695] Fix | Delete
this[$extra]._isSplittable = true;
[49696] Fix | Delete
return true;
[49697] Fix | Delete
}
[49698] Fix | Delete
[$toHTML](availableSpace) {
[49699] Fix | Delete
setTabIndex(this);
[49700] Fix | Delete
if (this.break) {
[49701] Fix | Delete
if (this.break.after !== "auto" || this.break.afterTarget !== "") {
[49702] Fix | Delete
const node = new BreakAfter({
[49703] Fix | Delete
targetType: this.break.after,
[49704] Fix | Delete
target: this.break.afterTarget,
[49705] Fix | Delete
startNew: this.break.startNew.toString()
[49706] Fix | Delete
});
[49707] Fix | Delete
node[$globalData] = this[$globalData];
[49708] Fix | Delete
this[$appendChild](node);
[49709] Fix | Delete
this.breakAfter.push(node);
[49710] Fix | Delete
}
[49711] Fix | Delete
if (this.break.before !== "auto" || this.break.beforeTarget !== "") {
[49712] Fix | Delete
const node = new BreakBefore({
[49713] Fix | Delete
targetType: this.break.before,
[49714] Fix | Delete
target: this.break.beforeTarget,
[49715] Fix | Delete
startNew: this.break.startNew.toString()
[49716] Fix | Delete
});
[49717] Fix | Delete
node[$globalData] = this[$globalData];
[49718] Fix | Delete
this[$appendChild](node);
[49719] Fix | Delete
this.breakBefore.push(node);
[49720] Fix | Delete
}
[49721] Fix | Delete
if (this.break.overflowTarget !== "") {
[49722] Fix | Delete
const node = new Overflow({
[49723] Fix | Delete
target: this.break.overflowTarget,
[49724] Fix | Delete
leader: this.break.overflowLeader,
[49725] Fix | Delete
trailer: this.break.overflowTrailer
[49726] Fix | Delete
});
[49727] Fix | Delete
node[$globalData] = this[$globalData];
[49728] Fix | Delete
this[$appendChild](node);
[49729] Fix | Delete
this.overflow.push(node);
[49730] Fix | Delete
}
[49731] Fix | Delete
this[$removeChild](this.break);
[49732] Fix | Delete
this.break = null;
[49733] Fix | Delete
}
[49734] Fix | Delete
if (this.presence === "hidden" || this.presence === "inactive") {
[49735] Fix | Delete
return HTMLResult.EMPTY;
[49736] Fix | Delete
}
[49737] Fix | Delete
if (this.breakBefore.children.length > 1 || this.breakAfter.children.length > 1) {
[49738] Fix | Delete
warn("XFA - Several breakBefore or breakAfter in subforms: please file a bug.");
[49739] Fix | Delete
}
[49740] Fix | Delete
if (this.breakBefore.children.length >= 1) {
[49741] Fix | Delete
const breakBefore = this.breakBefore.children[0];
[49742] Fix | Delete
if (handleBreak(breakBefore)) {
[49743] Fix | Delete
return HTMLResult.breakNode(breakBefore);
[49744] Fix | Delete
}
[49745] Fix | Delete
}
[49746] Fix | Delete
if (this[$extra]?.afterBreakAfter) {
[49747] Fix | Delete
return HTMLResult.EMPTY;
[49748] Fix | Delete
}
[49749] Fix | Delete
fixDimensions(this);
[49750] Fix | Delete
const children = [];
[49751] Fix | Delete
const attributes = {
[49752] Fix | Delete
id: this[$uid],
[49753] Fix | Delete
class: []
[49754] Fix | Delete
};
[49755] Fix | Delete
setAccess(this, attributes.class);
[49756] Fix | Delete
if (!this[$extra]) {
[49757] Fix | Delete
this[$extra] = Object.create(null);
[49758] Fix | Delete
}
[49759] Fix | Delete
Object.assign(this[$extra], {
[49760] Fix | Delete
children,
[49761] Fix | Delete
line: null,
[49762] Fix | Delete
attributes,
[49763] Fix | Delete
attempt: 0,
[49764] Fix | Delete
numberInLine: 0,
[49765] Fix | Delete
availableSpace: {
[49766] Fix | Delete
width: Math.min(this.w || Infinity, availableSpace.width),
[49767] Fix | Delete
height: Math.min(this.h || Infinity, availableSpace.height)
[49768] Fix | Delete
},
[49769] Fix | Delete
width: 0,
[49770] Fix | Delete
height: 0,
[49771] Fix | Delete
prevHeight: 0,
[49772] Fix | Delete
currentWidth: 0
[49773] Fix | Delete
});
[49774] Fix | Delete
const root = this[$getTemplateRoot]();
[49775] Fix | Delete
const savedNoLayoutFailure = root[$extra].noLayoutFailure;
[49776] Fix | Delete
const isSplittable = this[$isSplittable]();
[49777] Fix | Delete
if (!isSplittable) {
[49778] Fix | Delete
setFirstUnsplittable(this);
[49779] Fix | Delete
}
[49780] Fix | Delete
if (!checkDimensions(this, availableSpace)) {
[49781] Fix | Delete
return HTMLResult.FAILURE;
[49782] Fix | Delete
}
[49783] Fix | Delete
const filter = new Set(["area", "draw", "exclGroup", "field", "subform", "subformSet"]);
[49784] Fix | Delete
if (this.layout.includes("row")) {
[49785] Fix | Delete
const columnWidths = this[$getSubformParent]().columnWidths;
[49786] Fix | Delete
if (Array.isArray(columnWidths) && columnWidths.length > 0) {
[49787] Fix | Delete
this[$extra].columnWidths = columnWidths;
[49788] Fix | Delete
this[$extra].currentColumn = 0;
[49789] Fix | Delete
}
[49790] Fix | Delete
}
[49791] Fix | Delete
const style = toStyle(this, "anchorType", "dimensions", "position", "presence", "border", "margin", "hAlign");
[49792] Fix | Delete
const classNames = ["xfaSubform"];
[49793] Fix | Delete
const cl = layoutClass(this);
[49794] Fix | Delete
if (cl) {
[49795] Fix | Delete
classNames.push(cl);
[49796] Fix | Delete
}
[49797] Fix | Delete
attributes.style = style;
[49798] Fix | Delete
attributes.class = classNames;
[49799] Fix | Delete
if (this.name) {
[49800] Fix | Delete
attributes.xfaName = this.name;
[49801] Fix | Delete
}
[49802] Fix | Delete
if (this.overflow) {
[49803] Fix | Delete
const overflowExtra = this.overflow[$getExtra]();
[49804] Fix | Delete
if (overflowExtra.addLeader) {
[49805] Fix | Delete
overflowExtra.addLeader = false;
[49806] Fix | Delete
handleOverflow(this, overflowExtra.leader, availableSpace);
[49807] Fix | Delete
}
[49808] Fix | Delete
}
[49809] Fix | Delete
this[$pushPara]();
[49810] Fix | Delete
const isLrTb = this.layout === "lr-tb" || this.layout === "rl-tb";
[49811] Fix | Delete
const maxRun = isLrTb ? MAX_ATTEMPTS_FOR_LRTB_LAYOUT : 1;
[49812] Fix | Delete
for (; this[$extra].attempt < maxRun; this[$extra].attempt++) {
[49813] Fix | Delete
if (isLrTb && this[$extra].attempt === MAX_ATTEMPTS_FOR_LRTB_LAYOUT - 1) {
[49814] Fix | Delete
this[$extra].numberInLine = 0;
[49815] Fix | Delete
}
[49816] Fix | Delete
const result = this[$childrenToHTML]({
[49817] Fix | Delete
filter,
[49818] Fix | Delete
include: true
[49819] Fix | Delete
});
[49820] Fix | Delete
if (result.success) {
[49821] Fix | Delete
break;
[49822] Fix | Delete
}
[49823] Fix | Delete
if (result.isBreak()) {
[49824] Fix | Delete
this[$popPara]();
[49825] Fix | Delete
return result;
[49826] Fix | Delete
}
[49827] Fix | Delete
if (isLrTb && this[$extra].attempt === 0 && this[$extra].numberInLine === 0 && !root[$extra].noLayoutFailure) {
[49828] Fix | Delete
this[$extra].attempt = maxRun;
[49829] Fix | Delete
break;
[49830] Fix | Delete
}
[49831] Fix | Delete
}
[49832] Fix | Delete
this[$popPara]();
[49833] Fix | Delete
if (!isSplittable) {
[49834] Fix | Delete
unsetFirstUnsplittable(this);
[49835] Fix | Delete
}
[49836] Fix | Delete
root[$extra].noLayoutFailure = savedNoLayoutFailure;
[49837] Fix | Delete
if (this[$extra].attempt === maxRun) {
[49838] Fix | Delete
if (this.overflow) {
[49839] Fix | Delete
this[$getTemplateRoot]()[$extra].overflowNode = this.overflow;
[49840] Fix | Delete
}
[49841] Fix | Delete
if (!isSplittable) {
[49842] Fix | Delete
delete this[$extra];
[49843] Fix | Delete
}
[49844] Fix | Delete
return HTMLResult.FAILURE;
[49845] Fix | Delete
}
[49846] Fix | Delete
if (this.overflow) {
[49847] Fix | Delete
const overflowExtra = this.overflow[$getExtra]();
[49848] Fix | Delete
if (overflowExtra.addTrailer) {
[49849] Fix | Delete
overflowExtra.addTrailer = false;
[49850] Fix | Delete
handleOverflow(this, overflowExtra.trailer, availableSpace);
[49851] Fix | Delete
}
[49852] Fix | Delete
}
[49853] Fix | Delete
let marginH = 0;
[49854] Fix | Delete
let marginV = 0;
[49855] Fix | Delete
if (this.margin) {
[49856] Fix | Delete
marginH = this.margin.leftInset + this.margin.rightInset;
[49857] Fix | Delete
marginV = this.margin.topInset + this.margin.bottomInset;
[49858] Fix | Delete
}
[49859] Fix | Delete
const width = Math.max(this[$extra].width + marginH, this.w || 0);
[49860] Fix | Delete
const height = Math.max(this[$extra].height + marginV, this.h || 0);
[49861] Fix | Delete
const bbox = [this.x, this.y, width, height];
[49862] Fix | Delete
if (this.w === "") {
[49863] Fix | Delete
style.width = measureToString(width);
[49864] Fix | Delete
}
[49865] Fix | Delete
if (this.h === "") {
[49866] Fix | Delete
style.height = measureToString(height);
[49867] Fix | Delete
}
[49868] Fix | Delete
if ((style.width === "0px" || style.height === "0px") && children.length === 0) {
[49869] Fix | Delete
return HTMLResult.EMPTY;
[49870] Fix | Delete
}
[49871] Fix | Delete
const html = {
[49872] Fix | Delete
name: "div",
[49873] Fix | Delete
attributes,
[49874] Fix | Delete
children
[49875] Fix | Delete
};
[49876] Fix | Delete
applyAssist(this, attributes);
[49877] Fix | Delete
const result = HTMLResult.success(createWrapper(this, html), bbox);
[49878] Fix | Delete
if (this.breakAfter.children.length >= 1) {
[49879] Fix | Delete
const breakAfter = this.breakAfter.children[0];
[49880] Fix | Delete
if (handleBreak(breakAfter)) {
[49881] Fix | Delete
this[$extra].afterBreakAfter = result;
[49882] Fix | Delete
return HTMLResult.breakNode(breakAfter);
[49883] Fix | Delete
}
[49884] Fix | Delete
}
[49885] Fix | Delete
delete this[$extra];
[49886] Fix | Delete
return result;
[49887] Fix | Delete
}
[49888] Fix | Delete
}
[49889] Fix | Delete
class SubformSet extends XFAObject {
[49890] Fix | Delete
constructor(attributes) {
[49891] Fix | Delete
super(TEMPLATE_NS_ID, "subformSet", true);
[49892] Fix | Delete
this.id = attributes.id || "";
[49893] Fix | Delete
this.name = attributes.name || "";
[49894] Fix | Delete
this.relation = getStringOption(attributes.relation, ["ordered", "choice", "unordered"]);
[49895] Fix | Delete
this.relevant = getRelevant(attributes.relevant);
[49896] Fix | Delete
this.use = attributes.use || "";
[49897] Fix | Delete
this.usehref = attributes.usehref || "";
[49898] Fix | Delete
this.bookend = null;
[49899] Fix | Delete
this.break = null;
[49900] Fix | Delete
this.desc = null;
[49901] Fix | Delete
this.extras = null;
[49902] Fix | Delete
this.occur = null;
[49903] Fix | Delete
this.overflow = null;
[49904] Fix | Delete
this.breakAfter = new XFAObjectArray();
[49905] Fix | Delete
this.breakBefore = new XFAObjectArray();
[49906] Fix | Delete
this.subform = new XFAObjectArray();
[49907] Fix | Delete
this.subformSet = new XFAObjectArray();
[49908] Fix | Delete
}
[49909] Fix | Delete
*[$getContainedChildren]() {
[49910] Fix | Delete
yield* getContainedChildren(this);
[49911] Fix | Delete
}
[49912] Fix | Delete
[$getSubformParent]() {
[49913] Fix | Delete
let parent = this[$getParent]();
[49914] Fix | Delete
while (!(parent instanceof Subform)) {
[49915] Fix | Delete
parent = parent[$getParent]();
[49916] Fix | Delete
}
[49917] Fix | Delete
return parent;
[49918] Fix | Delete
}
[49919] Fix | Delete
[$isBindable]() {
[49920] Fix | Delete
return true;
[49921] Fix | Delete
}
[49922] Fix | Delete
}
[49923] Fix | Delete
class SubjectDN extends ContentObject {
[49924] Fix | Delete
constructor(attributes) {
[49925] Fix | Delete
super(TEMPLATE_NS_ID, "subjectDN");
[49926] Fix | Delete
this.delimiter = attributes.delimiter || ",";
[49927] Fix | Delete
this.id = attributes.id || "";
[49928] Fix | Delete
this.name = attributes.name || "";
[49929] Fix | Delete
this.use = attributes.use || "";
[49930] Fix | Delete
this.usehref = attributes.usehref || "";
[49931] Fix | Delete
}
[49932] Fix | Delete
[$finalize]() {
[49933] Fix | Delete
this[$content] = new Map(this[$content].split(this.delimiter).map(kv => {
[49934] Fix | Delete
kv = kv.split("=", 2);
[49935] Fix | Delete
kv[0] = kv[0].trim();
[49936] Fix | Delete
return kv;
[49937] Fix | Delete
}));
[49938] Fix | Delete
}
[49939] Fix | Delete
}
[49940] Fix | Delete
class SubjectDNs extends XFAObject {
[49941] Fix | Delete
constructor(attributes) {
[49942] Fix | Delete
super(TEMPLATE_NS_ID, "subjectDNs", true);
[49943] Fix | Delete
this.id = attributes.id || "";
[49944] Fix | Delete
this.type = getStringOption(attributes.type, ["optional", "required"]);
[49945] Fix | Delete
this.use = attributes.use || "";
[49946] Fix | Delete
this.usehref = attributes.usehref || "";
[49947] Fix | Delete
this.subjectDN = new XFAObjectArray();
[49948] Fix | Delete
}
[49949] Fix | Delete
}
[49950] Fix | Delete
class Submit extends XFAObject {
[49951] Fix | Delete
constructor(attributes) {
[49952] Fix | Delete
super(TEMPLATE_NS_ID, "submit", true);
[49953] Fix | Delete
this.embedPDF = getInteger({
[49954] Fix | Delete
data: attributes.embedPDF,
[49955] Fix | Delete
defaultValue: 0,
[49956] Fix | Delete
validate: x => x === 1
[49957] Fix | Delete
});
[49958] Fix | Delete
this.format = getStringOption(attributes.format, ["xdp", "formdata", "pdf", "urlencoded", "xfd", "xml"]);
[49959] Fix | Delete
this.id = attributes.id || "";
[49960] Fix | Delete
this.target = attributes.target || "";
[49961] Fix | Delete
this.textEncoding = getKeyword({
[49962] Fix | Delete
data: attributes.textEncoding ? attributes.textEncoding.toLowerCase() : "",
[49963] Fix | Delete
defaultValue: "",
[49964] Fix | Delete
validate: k => ["utf-8", "big-five", "fontspecific", "gbk", "gb-18030", "gb-2312", "ksc-5601", "none", "shift-jis", "ucs-2", "utf-16"].includes(k) || k.match(/iso-8859-\d{2}/)
[49965] Fix | Delete
});
[49966] Fix | Delete
this.use = attributes.use || "";
[49967] Fix | Delete
this.usehref = attributes.usehref || "";
[49968] Fix | Delete
this.xdpContent = attributes.xdpContent || "";
[49969] Fix | Delete
this.encrypt = null;
[49970] Fix | Delete
this.encryptData = new XFAObjectArray();
[49971] Fix | Delete
this.signData = new XFAObjectArray();
[49972] Fix | Delete
}
[49973] Fix | Delete
}
[49974] Fix | Delete
class Template extends XFAObject {
[49975] Fix | Delete
constructor(attributes) {
[49976] Fix | Delete
super(TEMPLATE_NS_ID, "template", true);
[49977] Fix | Delete
this.baseProfile = getStringOption(attributes.baseProfile, ["full", "interactiveForms"]);
[49978] Fix | Delete
this.extras = null;
[49979] Fix | Delete
this.subform = new XFAObjectArray();
[49980] Fix | Delete
}
[49981] Fix | Delete
[$finalize]() {
[49982] Fix | Delete
if (this.subform.children.length === 0) {
[49983] Fix | Delete
warn("XFA - No subforms in template node.");
[49984] Fix | Delete
}
[49985] Fix | Delete
if (this.subform.children.length >= 2) {
[49986] Fix | Delete
warn("XFA - Several subforms in template node: please file a bug.");
[49987] Fix | Delete
}
[49988] Fix | Delete
this[$tabIndex] = DEFAULT_TAB_INDEX;
[49989] Fix | Delete
}
[49990] Fix | Delete
[$isSplittable]() {
[49991] Fix | Delete
return true;
[49992] Fix | Delete
}
[49993] Fix | Delete
[$searchNode](expr, container) {
[49994] Fix | Delete
if (expr.startsWith("#")) {
[49995] Fix | Delete
return [this[$ids].get(expr.slice(1))];
[49996] Fix | Delete
}
[49997] Fix | Delete
return searchNode(this, container, expr, true, true);
[49998] Fix | Delete
}
[49999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function