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
this.dataColumnCount = getInteger({
[46500] Fix | Delete
data: attributes.dataColumnCount,
[46501] Fix | Delete
defaultValue: -1,
[46502] Fix | Delete
validate: x => x >= 0
[46503] Fix | Delete
});
[46504] Fix | Delete
this.dataLength = getInteger({
[46505] Fix | Delete
data: attributes.dataLength,
[46506] Fix | Delete
defaultValue: -1,
[46507] Fix | Delete
validate: x => x >= 0
[46508] Fix | Delete
});
[46509] Fix | Delete
this.dataPrep = getStringOption(attributes.dataPrep, ["none", "flateCompress"]);
[46510] Fix | Delete
this.dataRowCount = getInteger({
[46511] Fix | Delete
data: attributes.dataRowCount,
[46512] Fix | Delete
defaultValue: -1,
[46513] Fix | Delete
validate: x => x >= 0
[46514] Fix | Delete
});
[46515] Fix | Delete
this.endChar = attributes.endChar || "";
[46516] Fix | Delete
this.errorCorrectionLevel = getInteger({
[46517] Fix | Delete
data: attributes.errorCorrectionLevel,
[46518] Fix | Delete
defaultValue: -1,
[46519] Fix | Delete
validate: x => x >= 0 && x <= 8
[46520] Fix | Delete
});
[46521] Fix | Delete
this.id = attributes.id || "";
[46522] Fix | Delete
this.moduleHeight = getMeasurement(attributes.moduleHeight, "5mm");
[46523] Fix | Delete
this.moduleWidth = getMeasurement(attributes.moduleWidth, "0.25mm");
[46524] Fix | Delete
this.printCheckDigit = getInteger({
[46525] Fix | Delete
data: attributes.printCheckDigit,
[46526] Fix | Delete
defaultValue: 0,
[46527] Fix | Delete
validate: x => x === 1
[46528] Fix | Delete
});
[46529] Fix | Delete
this.rowColumnRatio = getRatio(attributes.rowColumnRatio);
[46530] Fix | Delete
this.startChar = attributes.startChar || "";
[46531] Fix | Delete
this.textLocation = getStringOption(attributes.textLocation, ["below", "above", "aboveEmbedded", "belowEmbedded", "none"]);
[46532] Fix | Delete
this.truncate = getInteger({
[46533] Fix | Delete
data: attributes.truncate,
[46534] Fix | Delete
defaultValue: 0,
[46535] Fix | Delete
validate: x => x === 1
[46536] Fix | Delete
});
[46537] Fix | Delete
this.type = getStringOption(attributes.type ? attributes.type.toLowerCase() : "", ["aztec", "codabar", "code2of5industrial", "code2of5interleaved", "code2of5matrix", "code2of5standard", "code3of9", "code3of9extended", "code11", "code49", "code93", "code128", "code128a", "code128b", "code128c", "code128sscc", "datamatrix", "ean8", "ean8add2", "ean8add5", "ean13", "ean13add2", "ean13add5", "ean13pwcd", "fim", "logmars", "maxicode", "msi", "pdf417", "pdf417macro", "plessey", "postauscust2", "postauscust3", "postausreplypaid", "postausstandard", "postukrm4scc", "postusdpbc", "postusimb", "postusstandard", "postus5zip", "qrcode", "rfid", "rss14", "rss14expanded", "rss14limited", "rss14stacked", "rss14stackedomni", "rss14truncated", "telepen", "ucc128", "ucc128random", "ucc128sscc", "upca", "upcaadd2", "upcaadd5", "upcapwcd", "upce", "upceadd2", "upceadd5", "upcean2", "upcean5", "upsmaxicode"]);
[46538] Fix | Delete
this.upsMode = getStringOption(attributes.upsMode, ["usCarrier", "internationalCarrier", "secureSymbol", "standardSymbol"]);
[46539] Fix | Delete
this.use = attributes.use || "";
[46540] Fix | Delete
this.usehref = attributes.usehref || "";
[46541] Fix | Delete
this.wideNarrowRatio = getRatio(attributes.wideNarrowRatio);
[46542] Fix | Delete
this.encrypt = null;
[46543] Fix | Delete
this.extras = null;
[46544] Fix | Delete
}
[46545] Fix | Delete
}
[46546] Fix | Delete
class Bind extends XFAObject {
[46547] Fix | Delete
constructor(attributes) {
[46548] Fix | Delete
super(TEMPLATE_NS_ID, "bind", true);
[46549] Fix | Delete
this.match = getStringOption(attributes.match, ["once", "dataRef", "global", "none"]);
[46550] Fix | Delete
this.ref = attributes.ref || "";
[46551] Fix | Delete
this.picture = null;
[46552] Fix | Delete
}
[46553] Fix | Delete
}
[46554] Fix | Delete
class BindItems extends XFAObject {
[46555] Fix | Delete
constructor(attributes) {
[46556] Fix | Delete
super(TEMPLATE_NS_ID, "bindItems");
[46557] Fix | Delete
this.connection = attributes.connection || "";
[46558] Fix | Delete
this.labelRef = attributes.labelRef || "";
[46559] Fix | Delete
this.ref = attributes.ref || "";
[46560] Fix | Delete
this.valueRef = attributes.valueRef || "";
[46561] Fix | Delete
}
[46562] Fix | Delete
}
[46563] Fix | Delete
class Bookend extends XFAObject {
[46564] Fix | Delete
constructor(attributes) {
[46565] Fix | Delete
super(TEMPLATE_NS_ID, "bookend");
[46566] Fix | Delete
this.id = attributes.id || "";
[46567] Fix | Delete
this.leader = attributes.leader || "";
[46568] Fix | Delete
this.trailer = attributes.trailer || "";
[46569] Fix | Delete
this.use = attributes.use || "";
[46570] Fix | Delete
this.usehref = attributes.usehref || "";
[46571] Fix | Delete
}
[46572] Fix | Delete
}
[46573] Fix | Delete
class BooleanElement extends Option01 {
[46574] Fix | Delete
constructor(attributes) {
[46575] Fix | Delete
super(TEMPLATE_NS_ID, "boolean");
[46576] Fix | Delete
this.id = attributes.id || "";
[46577] Fix | Delete
this.name = attributes.name || "";
[46578] Fix | Delete
this.use = attributes.use || "";
[46579] Fix | Delete
this.usehref = attributes.usehref || "";
[46580] Fix | Delete
}
[46581] Fix | Delete
[$toHTML](availableSpace) {
[46582] Fix | Delete
return valueToHtml(this[$content] === 1 ? "1" : "0");
[46583] Fix | Delete
}
[46584] Fix | Delete
}
[46585] Fix | Delete
class Border extends XFAObject {
[46586] Fix | Delete
constructor(attributes) {
[46587] Fix | Delete
super(TEMPLATE_NS_ID, "border", true);
[46588] Fix | Delete
this.break = getStringOption(attributes.break, ["close", "open"]);
[46589] Fix | Delete
this.hand = getStringOption(attributes.hand, ["even", "left", "right"]);
[46590] Fix | Delete
this.id = attributes.id || "";
[46591] Fix | Delete
this.presence = getStringOption(attributes.presence, ["visible", "hidden", "inactive", "invisible"]);
[46592] Fix | Delete
this.relevant = getRelevant(attributes.relevant);
[46593] Fix | Delete
this.use = attributes.use || "";
[46594] Fix | Delete
this.usehref = attributes.usehref || "";
[46595] Fix | Delete
this.corner = new XFAObjectArray(4);
[46596] Fix | Delete
this.edge = new XFAObjectArray(4);
[46597] Fix | Delete
this.extras = null;
[46598] Fix | Delete
this.fill = null;
[46599] Fix | Delete
this.margin = null;
[46600] Fix | Delete
}
[46601] Fix | Delete
[$getExtra]() {
[46602] Fix | Delete
if (!this[$extra]) {
[46603] Fix | Delete
const edges = this.edge.children.slice();
[46604] Fix | Delete
if (edges.length < 4) {
[46605] Fix | Delete
const defaultEdge = edges.at(-1) || new Edge({});
[46606] Fix | Delete
for (let i = edges.length; i < 4; i++) {
[46607] Fix | Delete
edges.push(defaultEdge);
[46608] Fix | Delete
}
[46609] Fix | Delete
}
[46610] Fix | Delete
const widths = edges.map(edge => edge.thickness);
[46611] Fix | Delete
const insets = [0, 0, 0, 0];
[46612] Fix | Delete
if (this.margin) {
[46613] Fix | Delete
insets[0] = this.margin.topInset;
[46614] Fix | Delete
insets[1] = this.margin.rightInset;
[46615] Fix | Delete
insets[2] = this.margin.bottomInset;
[46616] Fix | Delete
insets[3] = this.margin.leftInset;
[46617] Fix | Delete
}
[46618] Fix | Delete
this[$extra] = {
[46619] Fix | Delete
widths,
[46620] Fix | Delete
insets,
[46621] Fix | Delete
edges
[46622] Fix | Delete
};
[46623] Fix | Delete
}
[46624] Fix | Delete
return this[$extra];
[46625] Fix | Delete
}
[46626] Fix | Delete
[$toStyle]() {
[46627] Fix | Delete
const {
[46628] Fix | Delete
edges
[46629] Fix | Delete
} = this[$getExtra]();
[46630] Fix | Delete
const edgeStyles = edges.map(node => {
[46631] Fix | Delete
const style = node[$toStyle]();
[46632] Fix | Delete
style.color ||= "#000000";
[46633] Fix | Delete
return style;
[46634] Fix | Delete
});
[46635] Fix | Delete
const style = Object.create(null);
[46636] Fix | Delete
if (this.margin) {
[46637] Fix | Delete
Object.assign(style, this.margin[$toStyle]());
[46638] Fix | Delete
}
[46639] Fix | Delete
if (this.fill?.presence === "visible") {
[46640] Fix | Delete
Object.assign(style, this.fill[$toStyle]());
[46641] Fix | Delete
}
[46642] Fix | Delete
if (this.corner.children.some(node => node.radius !== 0)) {
[46643] Fix | Delete
const cornerStyles = this.corner.children.map(node => node[$toStyle]());
[46644] Fix | Delete
if (cornerStyles.length === 2 || cornerStyles.length === 3) {
[46645] Fix | Delete
const last = cornerStyles.at(-1);
[46646] Fix | Delete
for (let i = cornerStyles.length; i < 4; i++) {
[46647] Fix | Delete
cornerStyles.push(last);
[46648] Fix | Delete
}
[46649] Fix | Delete
}
[46650] Fix | Delete
style.borderRadius = cornerStyles.map(s => s.radius).join(" ");
[46651] Fix | Delete
}
[46652] Fix | Delete
switch (this.presence) {
[46653] Fix | Delete
case "invisible":
[46654] Fix | Delete
case "hidden":
[46655] Fix | Delete
style.borderStyle = "";
[46656] Fix | Delete
break;
[46657] Fix | Delete
case "inactive":
[46658] Fix | Delete
style.borderStyle = "none";
[46659] Fix | Delete
break;
[46660] Fix | Delete
default:
[46661] Fix | Delete
style.borderStyle = edgeStyles.map(s => s.style).join(" ");
[46662] Fix | Delete
break;
[46663] Fix | Delete
}
[46664] Fix | Delete
style.borderWidth = edgeStyles.map(s => s.width).join(" ");
[46665] Fix | Delete
style.borderColor = edgeStyles.map(s => s.color).join(" ");
[46666] Fix | Delete
return style;
[46667] Fix | Delete
}
[46668] Fix | Delete
}
[46669] Fix | Delete
class Break extends XFAObject {
[46670] Fix | Delete
constructor(attributes) {
[46671] Fix | Delete
super(TEMPLATE_NS_ID, "break", true);
[46672] Fix | Delete
this.after = getStringOption(attributes.after, ["auto", "contentArea", "pageArea", "pageEven", "pageOdd"]);
[46673] Fix | Delete
this.afterTarget = attributes.afterTarget || "";
[46674] Fix | Delete
this.before = getStringOption(attributes.before, ["auto", "contentArea", "pageArea", "pageEven", "pageOdd"]);
[46675] Fix | Delete
this.beforeTarget = attributes.beforeTarget || "";
[46676] Fix | Delete
this.bookendLeader = attributes.bookendLeader || "";
[46677] Fix | Delete
this.bookendTrailer = attributes.bookendTrailer || "";
[46678] Fix | Delete
this.id = attributes.id || "";
[46679] Fix | Delete
this.overflowLeader = attributes.overflowLeader || "";
[46680] Fix | Delete
this.overflowTarget = attributes.overflowTarget || "";
[46681] Fix | Delete
this.overflowTrailer = attributes.overflowTrailer || "";
[46682] Fix | Delete
this.startNew = getInteger({
[46683] Fix | Delete
data: attributes.startNew,
[46684] Fix | Delete
defaultValue: 0,
[46685] Fix | Delete
validate: x => x === 1
[46686] Fix | Delete
});
[46687] Fix | Delete
this.use = attributes.use || "";
[46688] Fix | Delete
this.usehref = attributes.usehref || "";
[46689] Fix | Delete
this.extras = null;
[46690] Fix | Delete
}
[46691] Fix | Delete
}
[46692] Fix | Delete
class BreakAfter extends XFAObject {
[46693] Fix | Delete
constructor(attributes) {
[46694] Fix | Delete
super(TEMPLATE_NS_ID, "breakAfter", true);
[46695] Fix | Delete
this.id = attributes.id || "";
[46696] Fix | Delete
this.leader = attributes.leader || "";
[46697] Fix | Delete
this.startNew = getInteger({
[46698] Fix | Delete
data: attributes.startNew,
[46699] Fix | Delete
defaultValue: 0,
[46700] Fix | Delete
validate: x => x === 1
[46701] Fix | Delete
});
[46702] Fix | Delete
this.target = attributes.target || "";
[46703] Fix | Delete
this.targetType = getStringOption(attributes.targetType, ["auto", "contentArea", "pageArea"]);
[46704] Fix | Delete
this.trailer = attributes.trailer || "";
[46705] Fix | Delete
this.use = attributes.use || "";
[46706] Fix | Delete
this.usehref = attributes.usehref || "";
[46707] Fix | Delete
this.script = null;
[46708] Fix | Delete
}
[46709] Fix | Delete
}
[46710] Fix | Delete
class BreakBefore extends XFAObject {
[46711] Fix | Delete
constructor(attributes) {
[46712] Fix | Delete
super(TEMPLATE_NS_ID, "breakBefore", true);
[46713] Fix | Delete
this.id = attributes.id || "";
[46714] Fix | Delete
this.leader = attributes.leader || "";
[46715] Fix | Delete
this.startNew = getInteger({
[46716] Fix | Delete
data: attributes.startNew,
[46717] Fix | Delete
defaultValue: 0,
[46718] Fix | Delete
validate: x => x === 1
[46719] Fix | Delete
});
[46720] Fix | Delete
this.target = attributes.target || "";
[46721] Fix | Delete
this.targetType = getStringOption(attributes.targetType, ["auto", "contentArea", "pageArea"]);
[46722] Fix | Delete
this.trailer = attributes.trailer || "";
[46723] Fix | Delete
this.use = attributes.use || "";
[46724] Fix | Delete
this.usehref = attributes.usehref || "";
[46725] Fix | Delete
this.script = null;
[46726] Fix | Delete
}
[46727] Fix | Delete
[$toHTML](availableSpace) {
[46728] Fix | Delete
this[$extra] = {};
[46729] Fix | Delete
return HTMLResult.FAILURE;
[46730] Fix | Delete
}
[46731] Fix | Delete
}
[46732] Fix | Delete
class Button extends XFAObject {
[46733] Fix | Delete
constructor(attributes) {
[46734] Fix | Delete
super(TEMPLATE_NS_ID, "button", true);
[46735] Fix | Delete
this.highlight = getStringOption(attributes.highlight, ["inverted", "none", "outline", "push"]);
[46736] Fix | Delete
this.id = attributes.id || "";
[46737] Fix | Delete
this.use = attributes.use || "";
[46738] Fix | Delete
this.usehref = attributes.usehref || "";
[46739] Fix | Delete
this.extras = null;
[46740] Fix | Delete
}
[46741] Fix | Delete
[$toHTML](availableSpace) {
[46742] Fix | Delete
const parent = this[$getParent]();
[46743] Fix | Delete
const grandpa = parent[$getParent]();
[46744] Fix | Delete
const htmlButton = {
[46745] Fix | Delete
name: "button",
[46746] Fix | Delete
attributes: {
[46747] Fix | Delete
id: this[$uid],
[46748] Fix | Delete
class: ["xfaButton"],
[46749] Fix | Delete
style: {}
[46750] Fix | Delete
},
[46751] Fix | Delete
children: []
[46752] Fix | Delete
};
[46753] Fix | Delete
for (const event of grandpa.event.children) {
[46754] Fix | Delete
if (event.activity !== "click" || !event.script) {
[46755] Fix | Delete
continue;
[46756] Fix | Delete
}
[46757] Fix | Delete
const jsURL = recoverJsURL(event.script[$content]);
[46758] Fix | Delete
if (!jsURL) {
[46759] Fix | Delete
continue;
[46760] Fix | Delete
}
[46761] Fix | Delete
const href = fixURL(jsURL.url);
[46762] Fix | Delete
if (!href) {
[46763] Fix | Delete
continue;
[46764] Fix | Delete
}
[46765] Fix | Delete
htmlButton.children.push({
[46766] Fix | Delete
name: "a",
[46767] Fix | Delete
attributes: {
[46768] Fix | Delete
id: "link" + this[$uid],
[46769] Fix | Delete
href,
[46770] Fix | Delete
newWindow: jsURL.newWindow,
[46771] Fix | Delete
class: ["xfaLink"],
[46772] Fix | Delete
style: {}
[46773] Fix | Delete
},
[46774] Fix | Delete
children: []
[46775] Fix | Delete
});
[46776] Fix | Delete
}
[46777] Fix | Delete
return HTMLResult.success(htmlButton);
[46778] Fix | Delete
}
[46779] Fix | Delete
}
[46780] Fix | Delete
class Calculate extends XFAObject {
[46781] Fix | Delete
constructor(attributes) {
[46782] Fix | Delete
super(TEMPLATE_NS_ID, "calculate", true);
[46783] Fix | Delete
this.id = attributes.id || "";
[46784] Fix | Delete
this.override = getStringOption(attributes.override, ["disabled", "error", "ignore", "warning"]);
[46785] Fix | Delete
this.use = attributes.use || "";
[46786] Fix | Delete
this.usehref = attributes.usehref || "";
[46787] Fix | Delete
this.extras = null;
[46788] Fix | Delete
this.message = null;
[46789] Fix | Delete
this.script = null;
[46790] Fix | Delete
}
[46791] Fix | Delete
}
[46792] Fix | Delete
class Caption extends XFAObject {
[46793] Fix | Delete
constructor(attributes) {
[46794] Fix | Delete
super(TEMPLATE_NS_ID, "caption", true);
[46795] Fix | Delete
this.id = attributes.id || "";
[46796] Fix | Delete
this.placement = getStringOption(attributes.placement, ["left", "bottom", "inline", "right", "top"]);
[46797] Fix | Delete
this.presence = getStringOption(attributes.presence, ["visible", "hidden", "inactive", "invisible"]);
[46798] Fix | Delete
this.reserve = Math.ceil(getMeasurement(attributes.reserve));
[46799] Fix | Delete
this.use = attributes.use || "";
[46800] Fix | Delete
this.usehref = attributes.usehref || "";
[46801] Fix | Delete
this.extras = null;
[46802] Fix | Delete
this.font = null;
[46803] Fix | Delete
this.margin = null;
[46804] Fix | Delete
this.para = null;
[46805] Fix | Delete
this.value = null;
[46806] Fix | Delete
}
[46807] Fix | Delete
[$setValue](value) {
[46808] Fix | Delete
_setValue(this, value);
[46809] Fix | Delete
}
[46810] Fix | Delete
[$getExtra](availableSpace) {
[46811] Fix | Delete
if (!this[$extra]) {
[46812] Fix | Delete
let {
[46813] Fix | Delete
width,
[46814] Fix | Delete
height
[46815] Fix | Delete
} = availableSpace;
[46816] Fix | Delete
switch (this.placement) {
[46817] Fix | Delete
case "left":
[46818] Fix | Delete
case "right":
[46819] Fix | Delete
case "inline":
[46820] Fix | Delete
width = this.reserve <= 0 ? width : this.reserve;
[46821] Fix | Delete
break;
[46822] Fix | Delete
case "top":
[46823] Fix | Delete
case "bottom":
[46824] Fix | Delete
height = this.reserve <= 0 ? height : this.reserve;
[46825] Fix | Delete
break;
[46826] Fix | Delete
}
[46827] Fix | Delete
this[$extra] = layoutNode(this, {
[46828] Fix | Delete
width,
[46829] Fix | Delete
height
[46830] Fix | Delete
});
[46831] Fix | Delete
}
[46832] Fix | Delete
return this[$extra];
[46833] Fix | Delete
}
[46834] Fix | Delete
[$toHTML](availableSpace) {
[46835] Fix | Delete
if (!this.value) {
[46836] Fix | Delete
return HTMLResult.EMPTY;
[46837] Fix | Delete
}
[46838] Fix | Delete
this[$pushPara]();
[46839] Fix | Delete
const value = this.value[$toHTML](availableSpace).html;
[46840] Fix | Delete
if (!value) {
[46841] Fix | Delete
this[$popPara]();
[46842] Fix | Delete
return HTMLResult.EMPTY;
[46843] Fix | Delete
}
[46844] Fix | Delete
const savedReserve = this.reserve;
[46845] Fix | Delete
if (this.reserve <= 0) {
[46846] Fix | Delete
const {
[46847] Fix | Delete
w,
[46848] Fix | Delete
h
[46849] Fix | Delete
} = this[$getExtra](availableSpace);
[46850] Fix | Delete
switch (this.placement) {
[46851] Fix | Delete
case "left":
[46852] Fix | Delete
case "right":
[46853] Fix | Delete
case "inline":
[46854] Fix | Delete
this.reserve = w;
[46855] Fix | Delete
break;
[46856] Fix | Delete
case "top":
[46857] Fix | Delete
case "bottom":
[46858] Fix | Delete
this.reserve = h;
[46859] Fix | Delete
break;
[46860] Fix | Delete
}
[46861] Fix | Delete
}
[46862] Fix | Delete
const children = [];
[46863] Fix | Delete
if (typeof value === "string") {
[46864] Fix | Delete
children.push({
[46865] Fix | Delete
name: "#text",
[46866] Fix | Delete
value
[46867] Fix | Delete
});
[46868] Fix | Delete
} else {
[46869] Fix | Delete
children.push(value);
[46870] Fix | Delete
}
[46871] Fix | Delete
const style = toStyle(this, "font", "margin", "visibility");
[46872] Fix | Delete
switch (this.placement) {
[46873] Fix | Delete
case "left":
[46874] Fix | Delete
case "right":
[46875] Fix | Delete
if (this.reserve > 0) {
[46876] Fix | Delete
style.width = measureToString(this.reserve);
[46877] Fix | Delete
}
[46878] Fix | Delete
break;
[46879] Fix | Delete
case "top":
[46880] Fix | Delete
case "bottom":
[46881] Fix | Delete
if (this.reserve > 0) {
[46882] Fix | Delete
style.height = measureToString(this.reserve);
[46883] Fix | Delete
}
[46884] Fix | Delete
break;
[46885] Fix | Delete
}
[46886] Fix | Delete
setPara(this, null, value);
[46887] Fix | Delete
this[$popPara]();
[46888] Fix | Delete
this.reserve = savedReserve;
[46889] Fix | Delete
return HTMLResult.success({
[46890] Fix | Delete
name: "div",
[46891] Fix | Delete
attributes: {
[46892] Fix | Delete
style,
[46893] Fix | Delete
class: ["xfaCaption"]
[46894] Fix | Delete
},
[46895] Fix | Delete
children
[46896] Fix | Delete
});
[46897] Fix | Delete
}
[46898] Fix | Delete
}
[46899] Fix | Delete
class Certificate extends StringObject {
[46900] Fix | Delete
constructor(attributes) {
[46901] Fix | Delete
super(TEMPLATE_NS_ID, "certificate");
[46902] Fix | Delete
this.id = attributes.id || "";
[46903] Fix | Delete
this.name = attributes.name || "";
[46904] Fix | Delete
this.use = attributes.use || "";
[46905] Fix | Delete
this.usehref = attributes.usehref || "";
[46906] Fix | Delete
}
[46907] Fix | Delete
}
[46908] Fix | Delete
class Certificates extends XFAObject {
[46909] Fix | Delete
constructor(attributes) {
[46910] Fix | Delete
super(TEMPLATE_NS_ID, "certificates", true);
[46911] Fix | Delete
this.credentialServerPolicy = getStringOption(attributes.credentialServerPolicy, ["optional", "required"]);
[46912] Fix | Delete
this.id = attributes.id || "";
[46913] Fix | Delete
this.url = attributes.url || "";
[46914] Fix | Delete
this.urlPolicy = attributes.urlPolicy || "";
[46915] Fix | Delete
this.use = attributes.use || "";
[46916] Fix | Delete
this.usehref = attributes.usehref || "";
[46917] Fix | Delete
this.encryption = null;
[46918] Fix | Delete
this.issuers = null;
[46919] Fix | Delete
this.keyUsage = null;
[46920] Fix | Delete
this.oids = null;
[46921] Fix | Delete
this.signing = null;
[46922] Fix | Delete
this.subjectDNs = null;
[46923] Fix | Delete
}
[46924] Fix | Delete
}
[46925] Fix | Delete
class CheckButton extends XFAObject {
[46926] Fix | Delete
constructor(attributes) {
[46927] Fix | Delete
super(TEMPLATE_NS_ID, "checkButton", true);
[46928] Fix | Delete
this.id = attributes.id || "";
[46929] Fix | Delete
this.mark = getStringOption(attributes.mark, ["default", "check", "circle", "cross", "diamond", "square", "star"]);
[46930] Fix | Delete
this.shape = getStringOption(attributes.shape, ["square", "round"]);
[46931] Fix | Delete
this.size = getMeasurement(attributes.size, "10pt");
[46932] Fix | Delete
this.use = attributes.use || "";
[46933] Fix | Delete
this.usehref = attributes.usehref || "";
[46934] Fix | Delete
this.border = null;
[46935] Fix | Delete
this.extras = null;
[46936] Fix | Delete
this.margin = null;
[46937] Fix | Delete
}
[46938] Fix | Delete
[$toHTML](availableSpace) {
[46939] Fix | Delete
const style = toStyle("margin");
[46940] Fix | Delete
const size = measureToString(this.size);
[46941] Fix | Delete
style.width = style.height = size;
[46942] Fix | Delete
let type;
[46943] Fix | Delete
let className;
[46944] Fix | Delete
let groupId;
[46945] Fix | Delete
const field = this[$getParent]()[$getParent]();
[46946] Fix | Delete
const items = field.items.children.length && field.items.children[0][$toHTML]().html || [];
[46947] Fix | Delete
const exportedValue = {
[46948] Fix | Delete
on: (items[0] !== undefined ? items[0] : "on").toString(),
[46949] Fix | Delete
off: (items[1] !== undefined ? items[1] : "off").toString()
[46950] Fix | Delete
};
[46951] Fix | Delete
const value = field.value?.[$text]() || "off";
[46952] Fix | Delete
const checked = value === exportedValue.on || undefined;
[46953] Fix | Delete
const container = field[$getSubformParent]();
[46954] Fix | Delete
const fieldId = field[$uid];
[46955] Fix | Delete
let dataId;
[46956] Fix | Delete
if (container instanceof ExclGroup) {
[46957] Fix | Delete
groupId = container[$uid];
[46958] Fix | Delete
type = "radio";
[46959] Fix | Delete
className = "xfaRadio";
[46960] Fix | Delete
dataId = container[$data]?.[$uid] || container[$uid];
[46961] Fix | Delete
} else {
[46962] Fix | Delete
type = "checkbox";
[46963] Fix | Delete
className = "xfaCheckbox";
[46964] Fix | Delete
dataId = field[$data]?.[$uid] || field[$uid];
[46965] Fix | Delete
}
[46966] Fix | Delete
const input = {
[46967] Fix | Delete
name: "input",
[46968] Fix | Delete
attributes: {
[46969] Fix | Delete
class: [className],
[46970] Fix | Delete
style,
[46971] Fix | Delete
fieldId,
[46972] Fix | Delete
dataId,
[46973] Fix | Delete
type,
[46974] Fix | Delete
checked,
[46975] Fix | Delete
xfaOn: exportedValue.on,
[46976] Fix | Delete
xfaOff: exportedValue.off,
[46977] Fix | Delete
"aria-label": ariaLabel(field),
[46978] Fix | Delete
"aria-required": false
[46979] Fix | Delete
}
[46980] Fix | Delete
};
[46981] Fix | Delete
if (groupId) {
[46982] Fix | Delete
input.attributes.name = groupId;
[46983] Fix | Delete
}
[46984] Fix | Delete
if (isRequired(field)) {
[46985] Fix | Delete
input.attributes["aria-required"] = true;
[46986] Fix | Delete
input.attributes.required = true;
[46987] Fix | Delete
}
[46988] Fix | Delete
return HTMLResult.success({
[46989] Fix | Delete
name: "label",
[46990] Fix | Delete
attributes: {
[46991] Fix | Delete
class: ["xfaLabel"]
[46992] Fix | Delete
},
[46993] Fix | Delete
children: [input]
[46994] Fix | Delete
});
[46995] Fix | Delete
}
[46996] Fix | Delete
}
[46997] Fix | Delete
class ChoiceList extends XFAObject {
[46998] Fix | Delete
constructor(attributes) {
[46999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function