!function(){"use strict";var t;t=null,document.addEventListener("click",(function(e){t=e.target.closest("button")}),!0),document.addEventListener("submit",(function(e){if(!e.submitter){for(var n=[document.activeElement,t],i=null,a=0;a<n.length;a++){var r=n[a];if(r&&r.form&&r.matches("button:not([type=button])")){i=r;break}}Object.defineProperty(e,"submitter",{value:i,configurable:!0})}}),!0);function e(t){!function(t,e){const n=function(t){for(let e in t.validity)if(t.validity[e])return e}(e);if("valid"!==n){const i=function(t,e,n){let i,a;(function(t){void 0===t._originalInvalidMessage&&(t._originalInvalidMessage=t.getAttribute("invalid-message"))})(e),"customError"===t&&(a=t+n.validationMessage.charAt(0).toUpperCase()+n.validationMessage.substring(1));i=e.dataset[a]||e.dataset[t]||e._originalInvalidMessage,"string"!=typeof i&&console.warn('No error message found for "'.concat(t,'" constraint for "').concat(e.getAttribute("name"),'" field.'));return i||""}(n,t,e);t.setAttribute("invalid-message",i)}}(t.target,t.detail.target)}function n(t){(function(t){var e;const{name:n,value:i}=function(t){const e={name:"",value:""},n=t.value.indexOf("=");-1===n?e.name=t.value:(e.name=t.value.substring(0,n),e.value=t.value.substring(n+1));return e}(t),a=document.createElement("button");return a.type="submit",a.hidden=!0,a.formNoValidate=t.formNoValidate,a.name=n,a.value=i,null===(e=t.parentElement)||void 0===e||e.insertBefore(a,t),a})(t.detail.target).click()}function i(t){const e=t.getAttribute("attr");e&&(t.attr=JSON.parse(e))}function a(t){const e=t.target.dataset.idRef,n=document.getElementById(e);null==n||n.setAttribute("open","true")}(()=>{const t=document.querySelector("form");if(t){function e(t){return t&&"_eventId"===t.name&&"button"===t.type}function n(n){if(e(n)&&!t.isSubmitting){const e=document.createElement("input");e.type="hidden",e.name="_eventId",e.value=n.value,t.isSubmitting=!0,t.appendChild(e),t.submit()}}t.addEventListener("submit",(e=>{var n;!t.isSubmitting&&(null!==(n=e.submitter)&&void 0!==n&&n.hasAttribute("formnovalidate")||e.target.checkValidity())?(!function(t){var e;const n=null===(e=t.submitter)||void 0===e?void 0:e.closest("xds-button, prism-button");n&&"link"!==(null==n?void 0:n.getAttribute("display"))&&n.setAttribute("loading","true")}(e),t.isSubmitting=!0):e.preventDefault()})),t.addEventListener("xdsButtonPress",(t=>{n(t.detail.target)})),t.addEventListener("xdsOnClick",(t=>{"click"===t.detail.type&&n(t.detail.element)}))}})(),document.addEventListener("xdsInputChange",e),document.addEventListener("prismInputChange",e),document.addEventListener("prismBlur",e),document.querySelectorAll("prism-button[name=_submit]:not([type=submit],[type=reset])").forEach((t=>{t.addEventListener("prismButtonPress",n)})),document.querySelectorAll("prism-input[data-trim-on-blur]").forEach((t=>{t.addEventListener("prismBlur",(t=>{const e=t.target;e.value=e.value.trim(),function(t){t.querySelector("input").value=t.value}(e)}))})),document.querySelectorAll("prism-lineitem").forEach(i),document.querySelectorAll("button[data-id-ref]").forEach((t=>{t.addEventListener("click",a)})),async function(){const t=document.querySelector("form[name=signin]");if(t){const e=function(t){const e=document.createElement("input");return e.type="hidden",e.name="userVerifyingPlatformAuthenticatorAvailable",e.value=t.toString(),e}(await async function(){return!!window.PublicKeyCredential&&await window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()}());t.appendChild(e)}}()}();
//# sourceMappingURL=bundle.js.map
