{ "version": 3, "sources": ["../../../Modules/ServerTypes/Membership/LoginForm.ts", "../../../Modules/ServerTypes/Membership/SignUpForm.ts", "../../../node_modules/jsx-dom/index.js", "../../../Modules/Membership/Account/AccountPanelTitle.tsx"], "sourcesContent": ["\uFEFFimport { StringEditor, PasswordEditor, PrefixedContext, initFormType } from \"@serenity-is/corelib\";\n\nexport interface LoginForm {\n Username: StringEditor;\n Password: PasswordEditor;\n}\n\nexport class LoginForm extends PrefixedContext {\n static readonly formKey = 'Membership.Login';\n private static init: boolean;\n\n constructor(prefix: string) {\n super(prefix);\n\n if (!LoginForm.init) {\n LoginForm.init = true;\n\n var w0 = StringEditor;\n var w1 = PasswordEditor;\n\n initFormType(LoginForm, [\n 'Username', w0,\n 'Password', w1\n ]);\n }\n }\n}", "\uFEFFimport { StringEditor, EmailAddressEditor, PasswordEditor, PrefixedContext, initFormType } from \"@serenity-is/corelib\";\n\nexport interface SignUpForm {\n DisplayName: StringEditor;\n Email: EmailAddressEditor;\n ConfirmEmail: EmailAddressEditor;\n Password: PasswordEditor;\n ConfirmPassword: PasswordEditor;\n}\n\nexport class SignUpForm extends PrefixedContext {\n static readonly formKey = 'Membership.SignUp';\n private static init: boolean;\n\n constructor(prefix: string) {\n super(prefix);\n\n if (!SignUpForm.init) {\n SignUpForm.init = true;\n\n var w0 = StringEditor;\n var w1 = EmailAddressEditor;\n var w2 = PasswordEditor;\n\n initFormType(SignUpForm, [\n 'DisplayName', w0,\n 'Email', w1,\n 'ConfirmEmail', w1,\n 'Password', w2,\n 'ConfirmPassword', w2\n ]);\n }\n }\n}", "/* eslint-disable */\nconst keys = Object.keys\nfunction identity(value) {\n return value\n}\nfunction isBoolean(val) {\n return typeof val === \"boolean\"\n}\nfunction isElement(val) {\n return val && typeof val.nodeType === \"number\"\n}\nfunction isString(val) {\n return typeof val === \"string\"\n}\nfunction isNumber(val) {\n return typeof val === \"number\"\n}\nfunction isObject(val) {\n return typeof val === \"object\" ? val !== null : isFunction(val)\n}\nfunction isFunction(val) {\n return typeof val === \"function\"\n}\nfunction isComponentClass(Component) {\n const { prototype } = Component\n return !!(prototype && prototype.isReactComponent)\n}\nfunction isArrayLike(obj) {\n return isObject(obj) && typeof obj.length === \"number\" && typeof obj.nodeType !== \"number\"\n}\nfunction forEach(value, fn) {\n if (!value) return\n for (const key of keys(value)) {\n fn(value[key], key)\n }\n}\n\nfunction createRef() {\n return Object.seal({\n current: null,\n })\n}\nfunction isRef(maybeRef) {\n return isObject(maybeRef) && \"current\" in maybeRef\n}\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found on\n * https://github.com/facebook/react/blob/b87aabdfe1b7461e7331abb3601d9e6bb27544bc/LICENSE\n */\n\n/**\n * CSS properties which accept numbers but are not in units of \"px\".\n */\nconst isUnitlessNumber = {\n animationIterationCount: 0,\n borderImageOutset: 0,\n borderImageSlice: 0,\n borderImageWidth: 0,\n boxFlex: 0,\n boxFlexGroup: 0,\n boxOrdinalGroup: 0,\n columnCount: 0,\n columns: 0,\n flex: 0,\n flexGrow: 0,\n flexPositive: 0,\n flexShrink: 0,\n flexNegative: 0,\n flexOrder: 0,\n gridArea: 0,\n gridRow: 0,\n gridRowEnd: 0,\n gridRowSpan: 0,\n gridRowStart: 0,\n gridColumn: 0,\n gridColumnEnd: 0,\n gridColumnSpan: 0,\n gridColumnStart: 0,\n fontWeight: 0,\n lineClamp: 0,\n lineHeight: 0,\n opacity: 0,\n order: 0,\n orphans: 0,\n tabSize: 0,\n widows: 0,\n zIndex: 0,\n zoom: 0,\n // SVG-related properties\n fillOpacity: 0,\n floodOpacity: 0,\n stopOpacity: 0,\n strokeDasharray: 0,\n strokeDashoffset: 0,\n strokeMiterlimit: 0,\n strokeOpacity: 0,\n strokeWidth: 0,\n}\n\n/**\n * @param prefix vendor-specific prefix, eg: Webkit\n * @param key style name, eg: transitionDuration\n * @return style name prefixed with `prefix`, properly camelCased, eg:\n * WebkitTransitionDuration\n */\nfunction prefixKey(prefix, key) {\n return prefix + key.charAt(0).toUpperCase() + key.substring(1)\n}\n\n/**\n * Support style names that may come passed in prefixed by adding permutations\n * of vendor prefixes.\n */\nconst prefixes = [\"Webkit\", \"ms\", \"Moz\", \"O\"]\n// Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an\n// infinite loop, because it iterates over the newly added props too.\nkeys(isUnitlessNumber).forEach(prop => {\n prefixes.forEach(prefix => {\n isUnitlessNumber[prefixKey(prefix, prop)] = 0 // isUnitlessNumber[prop]\n })\n})\n\nconst jsxDomType = Symbol.for(\"jsx-dom:type\")\nvar JsxDomType = /*#__PURE__*/ (function (JsxDomType) {\n JsxDomType[\"ShadowRoot\"] = \"ShadowRoot\"\n return JsxDomType\n})(JsxDomType || {})\nfunction ShadowRoot(_ref) {\n let { children, ref, ...attr } = _ref\n return {\n [jsxDomType]: JsxDomType.ShadowRoot,\n ref,\n attr,\n children,\n }\n}\nfunction isShadowRoot(el) {\n return el != null && el[jsxDomType] === JsxDomType.ShadowRoot\n}\n\nconst SVGNamespace = \"http://www.w3.org/2000/svg\"\nconst XLinkNamespace = \"http://www.w3.org/1999/xlink\"\nconst XMLNamespace = \"http://www.w3.org/XML/1998/namespace\"\n\n// https://facebook.github.io/react/docs/jsx-in-depth.html#booleans-null-and-undefined-are-ignored\n// Emulate JSX Expression logic to ignore certain type of children or className.\nfunction isVisibleChild(value) {\n return !isBoolean(value) && value != null\n}\nconst DomTokenList = typeof DOMTokenList !== \"undefined\" ? DOMTokenList : function () {}\n\n/**\n * Convert a `value` to a className string.\n * `value` can be a string, an array or a `Dictionary`.\n */\nfunction className(value) {\n if (Array.isArray(value)) {\n return value.map(className).filter(Boolean).join(\" \")\n } else if (value instanceof DomTokenList) {\n return \"\" + value\n } else if (isObject(value)) {\n return keys(value)\n .filter(k => value[k])\n .join(\" \")\n } else if (isVisibleChild(value)) {\n return \"\" + value\n } else {\n return \"\"\n }\n}\nconst svg = {\n animate: 0,\n circle: 0,\n clipPath: 0,\n defs: 0,\n desc: 0,\n ellipse: 0,\n feBlend: 0,\n feColorMatrix: 0,\n feComponentTransfer: 0,\n feComposite: 0,\n feConvolveMatrix: 0,\n feDiffuseLighting: 0,\n feDisplacementMap: 0,\n feDistantLight: 0,\n feFlood: 0,\n feFuncA: 0,\n feFuncB: 0,\n feFuncG: 0,\n feFuncR: 0,\n feGaussianBlur: 0,\n feImage: 0,\n feMerge: 0,\n feMergeNode: 0,\n feMorphology: 0,\n feOffset: 0,\n fePointLight: 0,\n feSpecularLighting: 0,\n feSpotLight: 0,\n feTile: 0,\n feTurbulence: 0,\n filter: 0,\n foreignObject: 0,\n g: 0,\n image: 0,\n line: 0,\n linearGradient: 0,\n marker: 0,\n mask: 0,\n metadata: 0,\n path: 0,\n pattern: 0,\n polygon: 0,\n polyline: 0,\n radialGradient: 0,\n rect: 0,\n stop: 0,\n svg: 0,\n switch: 0,\n symbol: 0,\n text: 0,\n textPath: 0,\n tspan: 0,\n use: 0,\n view: 0,\n}\nconst nonPresentationSVGAttributes =\n /^(a(ll|t|u)|base[FP]|c(al|lipPathU|on)|di|ed|ex|filter[RU]|g(lyphR|r)|ke|l(en|im)|ma(rker[HUW]|s)|n|pat|pr|point[^e]|re[^n]|s[puy]|st[^or]|ta|textL|vi|xC|y|z)/\nfunction createFactory(tag) {\n return createElement.bind(null, tag)\n}\nfunction Fragment(attr) {\n const fragment = document.createDocumentFragment()\n appendChild(attr.children, fragment)\n return fragment\n}\nclass Component {\n constructor(props) {\n this.props = props\n }\n render() {\n return null\n }\n}\n\n/* @__PURE__ */\nObject.defineProperties(Component.prototype, {\n isReactComponent: {\n value: true,\n },\n})\nfunction initComponentClass(Class, attr, children) {\n attr = {\n ...attr,\n children,\n }\n const instance = new Class(attr)\n return instance.render()\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction jsx(tag, _ref) {\n let { children, ...attr } = _ref\n if (!attr.namespaceURI && svg[tag] === 0) {\n attr = {\n ...attr,\n namespaceURI: SVGNamespace,\n }\n }\n let node\n if (isString(tag)) {\n node = attr.namespaceURI\n ? document.createElementNS(attr.namespaceURI, tag)\n : document.createElement(tag)\n attributes(attr, node)\n appendChild(children, node)\n\n // Select `option` elements in `select`\n if (node instanceof window.HTMLSelectElement && attr.value != null) {\n if (attr.multiple === true && Array.isArray(attr.value)) {\n const values = attr.value.map(value => String(value))\n node\n .querySelectorAll(\"option\")\n .forEach(option => (option.selected = values.includes(option.value)))\n } else {\n node.value = attr.value\n }\n }\n attachRef(attr.ref, node)\n } else if (isFunction(tag)) {\n // Custom elements.\n if (isObject(tag.defaultProps)) {\n attr = {\n ...tag.defaultProps,\n ...attr,\n }\n }\n node = isComponentClass(tag)\n ? initComponentClass(tag, attr, children)\n : tag({\n ...attr,\n children,\n })\n } else {\n throw new TypeError(`Invalid JSX element type: ${tag}`)\n }\n return node\n}\nfunction createElement(tag, attr) {\n for (\n var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key2 = 2;\n _key2 < _len;\n _key2++\n ) {\n children[_key2 - 2] = arguments[_key2]\n }\n if (isString(attr) || Array.isArray(attr)) {\n children.unshift(attr)\n attr = {}\n }\n attr = attr || {}\n if (attr.children != null && !children.length) {\n ;({ children, ...attr } = attr)\n }\n return jsx(\n tag,\n {\n ...attr,\n children,\n },\n attr.key\n )\n}\nfunction attachRef(ref, node) {\n if (isRef(ref)) {\n ref.current = node\n } else if (isFunction(ref)) {\n ref(node)\n }\n}\nfunction appendChild(child, node) {\n if (isArrayLike(child)) {\n appendChildren(child, node)\n } else if (isString(child) || isNumber(child)) {\n appendChildToNode(document.createTextNode(child), node)\n } else if (child === null) {\n appendChildToNode(document.createComment(\"\"), node)\n } else if (isElement(child)) {\n appendChildToNode(child, node)\n } else if (isShadowRoot(child)) {\n const shadowRoot = node.attachShadow(child.attr)\n appendChild(child.children, shadowRoot)\n attachRef(child.ref, shadowRoot)\n }\n}\nfunction appendChildren(children, node) {\n for (const child of [...children]) {\n appendChild(child, node)\n }\n return node\n}\nfunction appendChildToNode(child, node) {\n if (node instanceof window.HTMLTemplateElement) {\n node.content.appendChild(child)\n } else {\n node.appendChild(child)\n }\n}\nfunction normalizeAttribute(s, separator) {\n return s.replace(/[A-Z]/g, match => separator + match.toLowerCase())\n}\nfunction style(node, value) {\n if (value == null || value === false);\n else if (Array.isArray(value)) {\n value.forEach(v => style(node, v))\n } else if (isString(value)) {\n node.setAttribute(\"style\", value)\n } else if (isObject(value)) {\n forEach(value, (val, key) => {\n if (key.indexOf(\"-\") === 0) {\n // CSS custom properties (variables) start with `-` (e.g. `--my-variable`)\n // and must be assigned via `setProperty`.\n node.style.setProperty(key, val)\n } else if (isNumber(val) && isUnitlessNumber[key] !== 0) {\n node.style[key] = val + \"px\"\n } else {\n node.style[key] = val\n }\n })\n }\n}\nfunction attribute(key, value, node) {\n switch (key) {\n case \"xlinkActuate\":\n case \"xlinkArcrole\":\n case \"xlinkHref\":\n case \"xlinkRole\":\n case \"xlinkShow\":\n case \"xlinkTitle\":\n case \"xlinkType\":\n attrNS(node, XLinkNamespace, normalizeAttribute(key, \":\"), value)\n return\n case \"xmlnsXlink\":\n attr(node, normalizeAttribute(key, \":\"), value)\n return\n case \"xmlBase\":\n case \"xmlLang\":\n case \"xmlSpace\":\n attrNS(node, XMLNamespace, normalizeAttribute(key, \":\"), value)\n return\n }\n switch (key) {\n case \"htmlFor\":\n attr(node, \"for\", value)\n return\n case \"dataset\":\n forEach(value, (dataValue, dataKey) => {\n if (dataValue != null) {\n node.dataset[dataKey] = dataValue\n }\n })\n return\n case \"innerHTML\":\n case \"innerText\":\n case \"textContent\":\n if (isVisibleChild(value)) {\n node[key] = value\n }\n return\n case \"dangerouslySetInnerHTML\":\n if (isObject(value)) {\n node.innerHTML = value[\"__html\"]\n }\n return\n case \"value\":\n if (value == null || node instanceof window.HTMLSelectElement) {\n // skip nullish values\n // for `