@quandis/qbo4.ui-bridge 4.0.1-CI-20241025-205551 → 4.0.1-CI-20241027-142455

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*! For license information please see ui-bridge.min.js.LICENSE.txt */
2
- var t={630:(t,e,o)=>{var r;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof o.g?o.g:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(o,r){Object.defineProperty(t,o,{configurable:!0,writable:!0,value:r}),e&&e(o,r)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var o=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,n=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,b={__proto__:[]}instanceof Array,l=!a&&!b,s={create:a?function(){return N(Object.create(null))}:b?function(){return N({__proto__:null})}:function(){return N({})},has:l?function(t,e){return o.call(t,e)}:function(t,e){return e in t},get:l?function(t,e){return o.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},d=Object.getPrototypeOf(Function),c="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],o=function(){function t(t,e,o){this._index=0,this._keys=t,this._values=e,this._selector=o}return t.prototype["@@iterator"]=function(){return this},t.prototype[i]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var o=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:o,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}(),r=function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var o=this._find(t,!0);return this._values[o]=e,this},e.prototype.delete=function(e){var o=this._find(e,!1);if(o>=0){for(var r=this._keys.length,n=o+1;n<r;n++)this._keys[n-1]=this._keys[n],this._values[n-1]=this._values[n];return this._keys.length--,this._values.length--,T(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new o(this._keys,this._values,n)},e.prototype.values=function(){return new o(this._keys,this._values,a)},e.prototype.entries=function(){return new o(this._keys,this._values,b)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(t,e){if(!T(this._cacheKey,t)){this._cacheIndex=-1;for(var o=0;o<this._keys.length;o++)if(T(this._keys[o],t)){this._cacheIndex=o;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();return r;function n(t,e){return t}function a(t,e){return e}function b(t,e){return[t,e]}}(),f="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new c}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[i]=function(){return this.keys()},t}(),p="function"==typeof WeakMap?WeakMap:function(){var t=s.create(),e=r();return function(){function t(){this._key=r()}return t.prototype.has=function(t){var e=n(t,!1);return void 0!==e&&s.has(e,this._key)},t.prototype.get=function(t){var e=n(t,!1);return void 0!==e?s.get(e,this._key):void 0},t.prototype.set=function(t,e){return n(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=n(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=r()},t}();function r(){var e;do{e="@@WeakMap@@"+a()}while(s.has(t,e));return t[e]=!0,e}function n(t,r){if(!o.call(t,e)){if(!r)return;Object.defineProperty(t,e,{value:s.create()})}return t[e]}function i(t,e){for(var o=0;o<e;++o)t[o]=255*Math.random()|0;return t}function a(){var t=function(t){if("function"==typeof Uint8Array){var e=new Uint8Array(t);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):i(e,t),e}return i(new Array(t),t)}(16);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",o=0;o<16;++o){var r=t[o];4!==o&&6!==o&&8!==o||(e+="-"),r<16&&(e+="0"),e+=r.toString(16).toLowerCase()}return e}}(),m=r?Symbol.for("@reflect-metadata:registry"):void 0,g=function(){var t;return!z(m)&&S(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[m]),z(t)&&(t=function(){var t,o,r,n;z(m)||void 0===e.Reflect||m in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,o=t.hasOwnMetadata,r=t.getOwnMetadata,n=t.getOwnMetadataKeys,i=t.deleteMetadata,a=new p,b={isProviderFor:function(t,e){var o=a.get(t);return!(z(o)||!o.has(e))||!!n(t,e).length&&(z(o)&&(o=new f,a.set(t,o)),o.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:o,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:n,OrdinaryDeleteMetadata:i};return b}(e.Reflect));var i=new p,a={registerProvider:b,getProvider:s,setProvider:g};return a;function b(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case z(o):o=e;break;case o===e:break;case z(r):r=e;break;case r===e:break;default:void 0===n&&(n=new f),n.add(e)}}function l(e,i){if(!z(o)){if(o.isProviderFor(e,i))return o;if(!z(r)){if(r.isProviderFor(e,i))return o;if(!z(n))for(var a=L(n);;){var b=I(a);if(!b)return;var l=D(b);if(l.isProviderFor(e,i))return P(a),l}}}if(!z(t)&&t.isProviderFor(e,i))return t}function s(t,e){var o,r=i.get(t);return z(r)||(o=r.get(e)),z(o)?(z(o=l(t,e))||(z(r)&&(r=new c,i.set(t,r)),r.set(e,o)),o):o}function d(t){if(z(t))throw new TypeError;return o===t||r===t||!z(n)&&n.has(t)}function g(t,e,o){if(!d(o))throw new Error("Metadata provider not registered.");var r=s(t,e);if(r!==o){if(!z(r))return!1;var n=i.get(t);z(n)&&(n=new c,i.set(t,n)),n.set(e,o)}return!0}}()),!z(m)&&S(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,m,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),u=function(t){var e=new p,o={isProviderFor:function(t,o){var r=e.get(t);return!z(r)&&r.has(o)},OrdinaryDefineOwnMetadata:function(t,e,o,n){r(o,n,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,o){var n=r(e,o,!1);return!z(n)&&$(n.has(t))},OrdinaryGetOwnMetadata:function(t,e,o){var n=r(e,o,!1);if(!z(n))return n.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var o=[],n=r(t,e,!1);if(z(n))return o;for(var i=L(n.keys()),a=0;;){var b=I(i);if(!b)return o.length=a,o;var l=D(b);try{o[a]=l}catch(t){try{P(i)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,o,n){var i=r(o,n,!1);if(z(i))return!1;if(!i.delete(t))return!1;if(0===i.size){var a=e.get(o);z(a)||(a.delete(n),0===a.size&&e.delete(a))}return!0}};return g.registerProvider(o),o;function r(r,n,i){var a=e.get(r),b=!1;if(z(a)){if(!i)return;a=new c,e.set(r,a),b=!0}var l=a.get(n);if(z(l)){if(!i)return;if(l=new c,a.set(n,l),!t.setProvider(r,n,o))throw a.delete(n),b&&e.delete(r),new Error("Wrong provider for target.")}return l}}(g);function v(t,e,o){if(h(t,e,o))return!0;var r=H(e);return!j(r)&&v(t,r,o)}function h(t,e,o){var r=B(e,o,!1);return!z(r)&&$(r.OrdinaryHasOwnMetadata(t,e,o))}function x(t,e,o){if(h(t,e,o))return w(t,e,o);var r=H(e);return j(r)?void 0:x(t,r,o)}function w(t,e,o){var r=B(e,o,!1);if(!z(r))return r.OrdinaryGetOwnMetadata(t,e,o)}function y(t,e,o,r){B(o,r,!0).OrdinaryDefineOwnMetadata(t,e,o,r)}function q(t,e){var o=k(t,e),r=H(t);if(null===r)return o;var n=q(r,e);if(n.length<=0)return o;if(o.length<=0)return n;for(var i=new f,a=[],b=0,l=o;b<l.length;b++){var s=l[b];i.has(s)||(i.add(s),a.push(s))}for(var d=0,c=n;d<c.length;d++)s=c[d],i.has(s)||(i.add(s),a.push(s));return a}function k(t,e){var o=B(t,e,!1);return o?o.OrdinaryOwnMetadataKeys(t,e):[]}function _(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function z(t){return void 0===t}function j(t){return null===t}function S(t){return"object"==typeof t?null!==t:"function"==typeof t}function C(t,e){switch(_(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var o=3===e?"string":5===e?"number":"default",r=M(t,n);if(void 0!==r){var i=r.call(t,o);if(S(i))throw new TypeError;return i}return function(t,e){if("string"===e){var o=t.toString;if(E(o)&&!S(n=o.call(t)))return n;if(E(r=t.valueOf)&&!S(n=r.call(t)))return n}else{var r;if(E(r=t.valueOf)&&!S(n=r.call(t)))return n;var n,i=t.toString;if(E(i)&&!S(n=i.call(t)))return n}throw new TypeError}(t,"default"===o?"number":o)}function $(t){return!!t}function A(t){var e=C(t,3);return function(t){return"symbol"==typeof t}(e)?e:function(t){return""+t}(e)}function O(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function E(t){return"function"==typeof t}function R(t){return"function"==typeof t}function T(t,e){return t===e||t!=t&&e!=e}function M(t,e){var o=t[e];if(null!=o){if(!E(o))throw new TypeError;return o}}function L(t){var e=M(t,i);if(!E(e))throw new TypeError;var o=e.call(t);if(!S(o))throw new TypeError;return o}function D(t){return t.value}function I(t){var e=t.next();return!e.done&&e}function P(t){var e=t.return;e&&e.call(t)}function H(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===d)return e;if(e!==d)return e;var o=t.prototype,r=o&&Object.getPrototypeOf(o);if(null==r||r===Object.prototype)return e;var n=r.constructor;return"function"!=typeof n||n===t?e:n}function B(t,e,o){var r=g.getProvider(t,e);if(!z(r))return r;if(o){if(g.setProvider(t,e,u))return u;throw new Error("Illegal state.")}}function N(t){return t.__=void 0,delete t.__,t}t("decorate",(function(t,e,o,r){if(z(o)){if(!O(t))throw new TypeError;if(!R(e))throw new TypeError;return function(t,e){for(var o=t.length-1;o>=0;--o){var r=(0,t[o])(e);if(!z(r)&&!j(r)){if(!R(r))throw new TypeError;e=r}}return e}(t,e)}if(!O(t))throw new TypeError;if(!S(e))throw new TypeError;if(!S(r)&&!z(r)&&!j(r))throw new TypeError;return j(r)&&(r=void 0),function(t,e,o,r){for(var n=t.length-1;n>=0;--n){var i=(0,t[n])(e,o,r);if(!z(i)&&!j(i)){if(!S(i))throw new TypeError;r=i}}return r}(t,e,o=A(o),r)})),t("metadata",(function(t,e){return function(o,r){if(!S(o))throw new TypeError;if(!z(r)&&!function(t){switch(_(t)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;y(t,e,o,r)}})),t("defineMetadata",(function(t,e,o,r){if(!S(o))throw new TypeError;return z(r)||(r=A(r)),y(t,e,o,r)})),t("hasMetadata",(function(t,e,o){if(!S(e))throw new TypeError;return z(o)||(o=A(o)),v(t,e,o)})),t("hasOwnMetadata",(function(t,e,o){if(!S(e))throw new TypeError;return z(o)||(o=A(o)),h(t,e,o)})),t("getMetadata",(function(t,e,o){if(!S(e))throw new TypeError;return z(o)||(o=A(o)),x(t,e,o)})),t("getOwnMetadata",(function(t,e,o){if(!S(e))throw new TypeError;return z(o)||(o=A(o)),w(t,e,o)})),t("getMetadataKeys",(function(t,e){if(!S(t))throw new TypeError;return z(e)||(e=A(e)),q(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!S(t))throw new TypeError;return z(e)||(e=A(e)),k(t,e)})),t("deleteMetadata",(function(t,e,o){if(!S(e))throw new TypeError;if(z(o)||(o=A(o)),!S(e))throw new TypeError;z(o)||(o=A(o));var r=B(e,o,!1);return!z(r)&&r.OrdinaryDeleteMetadata(t,e,o)}))}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(r||(r={}))}},e={};function o(r){var n=e[r];if(void 0!==n)return n.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,o),i.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};o.d(r,{tz:()=>je,O2:()=>F,m$:()=>Y,Il:()=>G,P7:()=>U,Dg:()=>N,ho:()=>V,OU:()=>E,Kt:()=>Rl,$4:()=>we,kq:()=>es,hg:()=>ns,EC:()=>ls,ZF:()=>Re,dm:()=>Le,No:()=>Ae,SD:()=>$e,RK:()=>He,R$:()=>Fe,T4:()=>Xe,$T:()=>cs,bA:()=>Je,U6:()=>eo,OK:()=>ul,hX:()=>ql,V9:()=>zl,FX:()=>$l,bB:()=>hs,j_:()=>El,PK:()=>Ll,lS:()=>ms,N6:()=>Pl,Cv:()=>Nl,vn:()=>Xl,zZ:()=>jl,k$:()=>D,xC:()=>A,G8:()=>R,bj:()=>B,Nw:()=>ye,Tt:()=>qe,Ng:()=>Z,Ty:()=>Kl,f_:()=>Ql,Qg:()=>Jl,BL:()=>K,BV:()=>J,bX:()=>Q,Yq:()=>Gl,c7:()=>P,_e:()=>T,Tj:()=>Fl,cK:()=>Yl,B_:()=>ke,I6:()=>I,aA:()=>L,$p:()=>O,$7:()=>Vl,V2:()=>M});var n,i={};o.r(i),o.d(i,{afterMain:()=>qo,afterRead:()=>xo,afterWrite:()=>zo,applyStyles:()=>Eo,arrow:()=>Jo,auto:()=>ao,basePlacements:()=>bo,beforeMain:()=>wo,beforeRead:()=>vo,beforeWrite:()=>ko,bottom:()=>ro,clippingParents:()=>co,computeStyles:()=>or,createPopper:()=>Or,createPopperBase:()=>Ar,createPopperLite:()=>Er,detectOverflow:()=>vr,end:()=>so,eventListeners:()=>nr,flip:()=>hr,hide:()=>yr,left:()=>io,main:()=>yo,modifierPhases:()=>jo,offset:()=>qr,placements:()=>uo,popper:()=>po,popperGenerator:()=>$r,popperOffsets:()=>kr,preventOverflow:()=>_r,read:()=>ho,reference:()=>mo,right:()=>no,start:()=>lo,top:()=>oo,variationPlacements:()=>go,viewport:()=>fo,write:()=>_o}),o(630),function(t){t[t.Transient=0]="Transient",t[t.Singleton=1]="Singleton",t[t.ResolutionScoped=2]="ResolutionScoped",t[t.ContainerScoped=3]="ContainerScoped"}(n||(n={}));const a=n;var b=function(t,e){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},b(t,e)};function l(t,e){function o(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}function s(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],r=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return a}function c(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(d(arguments[e]));return t}function f(t){return!!t.useClass}function p(t){return!!t.useFactory}var m=function(){function t(t){this.wrap=t,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}return t.prototype.createProxy=function(t){var e,o=this,r=!1;return new Proxy({},this.createHandler((function(){return r||(e=t(o.wrap()),r=!0),e})))},t.prototype.createHandler=function(t){var e={};return this.reflectMethods.forEach((function(o){e[o]=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e[0]=t(),Reflect[o].apply(void 0,c(e))}})),e},t}();function g(t){return"string"==typeof t||"symbol"==typeof t}function u(t){return"object"==typeof t&&"token"in t&&"transform"in t}function v(t){return!!t.useToken}function h(t){return null!=t.useValue}const x=function(){function t(){this._registryMap=new Map}return t.prototype.entries=function(){return this._registryMap.entries()},t.prototype.getAll=function(t){return this.ensure(t),this._registryMap.get(t)},t.prototype.get=function(t){this.ensure(t);var e=this._registryMap.get(t);return e[e.length-1]||null},t.prototype.set=function(t,e){this.ensure(t),this._registryMap.get(t).push(e)},t.prototype.setAll=function(t,e){this._registryMap.set(t,e)},t.prototype.has=function(t){return this.ensure(t),this._registryMap.get(t).length>0},t.prototype.clear=function(){this._registryMap.clear()},t.prototype.ensure=function(t){this._registryMap.has(t)||this._registryMap.set(t,[])},t}(),w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e}(x),y=function(){this.scopedResolutions=new Map};var q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e}(x),k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e}(x);const _=function(){this.preResolution=new q,this.postResolution=new k};var z=new Map,j=function(){function t(t){this.parent=t,this._registry=new w,this.interceptors=new _,this.disposed=!1,this.disposables=new Set}return t.prototype.register=function(t,e,o){var r;if(void 0===o&&(o={lifecycle:a.Transient}),this.ensureNotDisposed(),r=function(t){return f(t)||h(t)||v(t)||p(t)}(e)?e:{useClass:e},v(r))for(var n=[t],i=r;null!=i;){var b=i.useToken;if(n.includes(b))throw new Error("Token registration cycle detected! "+c(n,[b]).join(" -> "));n.push(b);var l=this._registry.get(b);i=l&&v(l.provider)?l.provider:null}if((o.lifecycle===a.Singleton||o.lifecycle==a.ContainerScoped||o.lifecycle==a.ResolutionScoped)&&(h(r)||p(r)))throw new Error('Cannot use lifecycle "'+a[o.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(t,{provider:r,options:o}),this},t.prototype.registerType=function(t,e){return this.ensureNotDisposed(),g(e)?this.register(t,{useToken:e}):this.register(t,{useClass:e})},t.prototype.registerInstance=function(t,e){return this.ensureNotDisposed(),this.register(t,{useValue:e})},t.prototype.registerSingleton=function(t,e){if(this.ensureNotDisposed(),g(t)){if(g(e))return this.register(t,{useToken:e},{lifecycle:a.Singleton});if(e)return this.register(t,{useClass:e},{lifecycle:a.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var o=t;return e&&!g(e)&&(o=e),this.register(t,{useClass:o},{lifecycle:a.Singleton})},t.prototype.resolve=function(t,e){void 0===e&&(e=new y),this.ensureNotDisposed();var o=this.getRegistration(t);if(!o&&g(t))throw new Error('Attempted to resolve unregistered dependency token: "'+t.toString()+'"');if(this.executePreResolutionInterceptor(t,"Single"),o){var r=this.resolveRegistration(o,e);return this.executePostResolutionInterceptor(t,r,"Single"),r}if(function(t){return"function"==typeof t||t instanceof m}(t))return r=this.construct(t,e),this.executePostResolutionInterceptor(t,r,"Single"),r;throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")},t.prototype.executePreResolutionInterceptor=function(t,e){var o,r;if(this.interceptors.preResolution.has(t)){var n=[];try{for(var i=s(this.interceptors.preResolution.getAll(t)),a=i.next();!a.done;a=i.next()){var b=a.value;"Once"!=b.options.frequency&&n.push(b),b.callback(t,e)}}catch(t){o={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}this.interceptors.preResolution.setAll(t,n)}},t.prototype.executePostResolutionInterceptor=function(t,e,o){var r,n;if(this.interceptors.postResolution.has(t)){var i=[];try{for(var a=s(this.interceptors.postResolution.getAll(t)),b=a.next();!b.done;b=a.next()){var l=b.value;"Once"!=l.options.frequency&&i.push(l),l.callback(t,e,o)}}catch(t){r={error:t}}finally{try{b&&!b.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}this.interceptors.postResolution.setAll(t,i)}},t.prototype.resolveRegistration=function(t,e){if(this.ensureNotDisposed(),t.options.lifecycle===a.ResolutionScoped&&e.scopedResolutions.has(t))return e.scopedResolutions.get(t);var o,r=t.options.lifecycle===a.Singleton,n=t.options.lifecycle===a.ContainerScoped,i=r||n;return o=h(t.provider)?t.provider.useValue:v(t.provider)?i?t.instance||(t.instance=this.resolve(t.provider.useToken,e)):this.resolve(t.provider.useToken,e):f(t.provider)?i?t.instance||(t.instance=this.construct(t.provider.useClass,e)):this.construct(t.provider.useClass,e):p(t.provider)?t.provider.useFactory(this):this.construct(t.provider,e),t.options.lifecycle===a.ResolutionScoped&&e.scopedResolutions.set(t,o),o},t.prototype.resolveAll=function(t,e){var o=this;void 0===e&&(e=new y),this.ensureNotDisposed();var r=this.getAllRegistrations(t);if(!r&&g(t))throw new Error('Attempted to resolve unregistered dependency token: "'+t.toString()+'"');if(this.executePreResolutionInterceptor(t,"All"),r){var n=r.map((function(t){return o.resolveRegistration(t,e)}));return this.executePostResolutionInterceptor(t,n,"All"),n}var i=[this.construct(t,e)];return this.executePostResolutionInterceptor(t,i,"All"),i},t.prototype.isRegistered=function(t,e){return void 0===e&&(e=!1),this.ensureNotDisposed(),this._registry.has(t)||e&&(this.parent||!1)&&this.parent.isRegistered(t,!0)},t.prototype.reset=function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()},t.prototype.clearInstances=function(){var t,e;this.ensureNotDisposed();try{for(var o=s(this._registry.entries()),r=o.next();!r.done;r=o.next()){var n=d(r.value,2),i=n[0],a=n[1];this._registry.setAll(i,a.filter((function(t){return!h(t.provider)})).map((function(t){return t.instance=void 0,t})))}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}},t.prototype.createChildContainer=function(){var e,o;this.ensureNotDisposed();var r=new t(this);try{for(var n=s(this._registry.entries()),i=n.next();!i.done;i=n.next()){var b=d(i.value,2),l=b[0],c=b[1];c.some((function(t){return t.options.lifecycle===a.ContainerScoped}))&&r._registry.setAll(l,c.map((function(t){return t.options.lifecycle===a.ContainerScoped?{provider:t.provider,options:t.options}:t})))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(e)throw e.error}}return r},t.prototype.beforeResolution=function(t,e,o){void 0===o&&(o={frequency:"Always"}),this.interceptors.preResolution.set(t,{callback:e,options:o})},t.prototype.afterResolution=function(t,e,o){void 0===o&&(o={frequency:"Always"}),this.interceptors.postResolution.set(t,{callback:e,options:o})},t.prototype.dispose=function(){return function(t,e,o,r){return new(o||(o=Promise))((function(n,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function b(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(a,b)}l((r=r.apply(t,e||[])).next())}))}(this,void 0,void 0,(function(){var t;return function(t,e){var o,r,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:b(0),throw:b(1),return:b(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function b(i){return function(b){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{o=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,b])}}}(this,(function(e){switch(e.label){case 0:return this.disposed=!0,t=[],this.disposables.forEach((function(e){var o=e.dispose();o&&t.push(o)})),[4,Promise.all(t)];case 1:return e.sent(),[2]}}))}))},t.prototype.getRegistration=function(t){return this.isRegistered(t)?this._registry.get(t):this.parent?this.parent.getRegistration(t):null},t.prototype.getAllRegistrations=function(t){return this.isRegistered(t)?this._registry.getAll(t):this.parent?this.parent.getAllRegistrations(t):null},t.prototype.construct=function(t,e){var o=this;if(t instanceof m)return t.createProxy((function(t){return o.resolve(t,e)}));var r,n=function(){var r=z.get(t);if(!r||0===r.length){if(0===t.length)return new t;throw new Error('TypeInfo not known for "'+t.name+'"')}var n=r.map(o.resolveParams(e,t));return new(t.bind.apply(t,c([void 0],n)))}();return"function"!=typeof(r=n).dispose||r.dispose.length>0||this.disposables.add(n),n},t.prototype.resolveParams=function(t,e){var o=this;return function(r,n){var i,a,b,l;try{return"object"==typeof(l=r)&&"token"in l&&"multiple"in l?u(r)?r.multiple?(i=o.resolve(r.transform)).transform.apply(i,c([o.resolveAll(r.token)],r.transformArgs)):(a=o.resolve(r.transform)).transform.apply(a,c([o.resolve(r.token,t)],r.transformArgs)):r.multiple?o.resolveAll(r.token):o.resolve(r.token,t):u(r)?(b=o.resolve(r.transform,t)).transform.apply(b,c([o.resolve(r.token,t)],r.transformArgs)):o.resolve(r,t)}catch(t){throw new Error(function(t,e,o){var r,n,i=d(t.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1];return function(t,e,o){return void 0===o&&(o=" "),c([t],e.message.split("\n").map((function(t){return o+t}))).join("\n")}("Cannot inject the dependency "+(n=e,(null===(r=void 0===i?null:i)?"at position #"+n:'"'+r.split(",")[n].trim()+'" at position #'+n)+' of "')+t.name+'" constructor. Reason:',o)}(e,n,t))}}},t.prototype.ensureNotDisposed=function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")},t}(),S=new j,C="injectionTokens";const $=function(){return function(t){z.set(t,function(t){var e=Reflect.getMetadata("design:paramtypes",t)||[],o=Reflect.getOwnMetadata(C,t)||{};return Object.keys(o).forEach((function(t){e[+t]=o[t]})),e}(t))}};if("undefined"==typeof Reflect||!Reflect.getMetadata)throw new Error("tsyringe requires a reflect polyfill. Please add 'import \"reflect-metadata\"' to the top of your entry point.");class A{constructor(t,e){this.container=t,this.options=e}getService(t){return this.container.resolve(t)}}const O=window?.qbo4?.services||new A(S.createChildContainer(),{});"undefined"!=typeof window&&(window.qbo4=window.qbo4||{},window.qbo4.services=window.qbo4.services||new A(S.createChildContainer(),{}),window.qbo4.services);const E="ApiServiceToken",R="ValidateToken";function T(t,e){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){return console.error("Error parsing JSON string:",t),null}if(Array.isArray(t))return t;if("object"==typeof t&&null!==t)for(const o in t){const r=t[o];if(Array.isArray(r))return r;if("object"==typeof r){const t=T(r,e);if(t)return t}}return null}function M(t,...e){const o=/\${(.*?)}/g;let r=t;for(let t=0;t<e.length;t++){const n=e[t];r=r.replace(o,((t,e)=>{const o=e.split(/\.|\[|\]/).filter((t=>""!==t));let r=n;for(let e of o){if(void 0===r[e])return t;r=r[e]}return r}))}return r=r.replace(o,(()=>"")),r}function L(t,e,o,r=!0){if(null!=t&&null!=e){for(;r&&t.firstChild;)t.removeChild(t.firstChild);o.map(((o,r)=>{const n=e.content.cloneNode(!0);null!=n.firstElementChild&&(n.firstElementChild.setAttribute("data-index",`${r}`),n.firstElementChild.innerHTML=M(n.firstElementChild?.innerHTML??"",o)),t.appendChild(n)}))}}class D{constructor(t,e={},o=null){this.relativePath="",this.apiEndpoint=t,this.headers=e,this.method=o}async fetch(t,e){this.apiEndpoint.indexOf("//")<0&&(this.apiEndpoint=new URL(this.apiEndpoint,document.location.origin).href);const o=M(new URL(t??this.relativePath,this.apiEndpoint).href,e),r=this.method??(e?"POST":"GET"),n=new Headers(this.headers||{});e&&!n.has("Content-Type")&&n.append("Content-Type","application/json");const i=await fetch(o,{method:r,headers:n,body:"POST"===r&&e?JSON.stringify(e):null}),a=n.get("Accept")??"";return i.ok?"application/json"===a?await i.json():await i.text():(console.error(`API request failed with status ${i.status}`),null)}clone(t){const e=new D(this.apiEndpoint,this.headers,this.method);return e.relativePath=t??"",e}}function I(t,e,o={"Content-Type":"application/json"},r){O.container.registerInstance(t,new D(e,o,r))}function P(t){"string"!=typeof t&&(t=t.href);const e=t.match(/api:\/\/([^/]+)/),o=e?e[1]:t,r=e?t.substring(`api://${o}`.length+1):"",n=O.container.isRegistered(o)?O.container.resolve(o):new D(t);return r?n.clone(r):n}O.container.registerInstance("default",new D(document.querySelector("base[href]")?.getAttribute("href")||window.location.origin));var H=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};let B=class{constructor(){this.message="Zip code is invalid",this.selector=".zipcode"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};B=H([$()],B),O.container.register(R,{useClass:B});let N=class{constructor(){this.message="Email is invalid",this.selector=".email"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};N=H([$()],N),O.container.register(R,{useClass:N});let V=class{constructor(){this.message="This value does not appear to exist.",this.selector="[data-exists]"}connect(t){}disconnect(){}async validate(t){var e=t.getAttribute("data-exists");if(!e)return!1;var o=t.getAttribute("data-exists-path");const r=O.container.isRegistered(e)?O.container.resolve(e):new D(e);if(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement){const e=T(await r.fetch(o,{value:t.value}));return null!=e&&e.length>0}return!1}};V=H([$()],V),O.container.register(R,{useClass:V});class F{constructor(){this.operator="=",this.value=null}}class G{constructor(){this.evaluators=[],this.depends="",this.condition="or",this.emptyOnDisable=!1,this.resetOnDisable=!0,this.disabledClass="disabled",this.disableChildren=!0}}const U="DependencyValidatorOptions",W=new Map([["!=",(t,e)=>!Yl(t.value,e)],[">=",(t,e)=>t.value>=e],["<=",(t,e)=>t.value<=e],["=",(t,e)=>Yl(t.value,e)],[">",(t,e)=>t.value>e],["<",(t,e)=>t.value<e]]),X=Array.from(W.keys());let Y=class{constructor(t,e){this.message="Dependency condition not met",this.selector="[data-depend-options]",this.optionsCache=new Map,this.checkDependencies=async t=>{console.log("checking dependencies",this.optionsCache);for(const[t,e]of this.optionsCache)await this.validate(t)},this.form=t,this.options=e,this.currentOptions=e}connect(t){this.form.querySelectorAll(this.selector).forEach((t=>{t instanceof HTMLElement&&this.getOptions(t)})),this.optionsCache.forEach(((t,e)=>{this.validate(e)})),this.form.addEventListener("change",this.checkDependencies)}disconnect(){this.form.removeEventListener("change",this.checkDependencies)}async validate(t){const e=this.getOptions(t);if(null==e)return Promise.resolve(!0);let o;o="or"===e.condition?e.evaluators.some((t=>!0===t())):e.evaluators.every((t=>!0===t())),(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement)&&(t.disabled=!o),t.classList.toggle(e.disabledClass,!o);const r=Q(t,"input,select,textarea");return o?e.disableChildren&&r.forEach((t=>t.removeAttribute("disabled"))):(e.disableChildren&&r.forEach((t=>t.setAttribute("disabled","disabled"))),e.resetOnDisable?r.forEach((t=>J(t))):e.emptyOnDisable&&r.forEach((t=>Z(t)))),Promise.resolve(o)}getOptions(t){let e=this.optionsCache.get(t);if(!e){try{e=Object.assign({},this.options,K(t,"data-depend-"))}catch(t){console.error("Error parsing data-depend-options attribute:",t)}if(!e)return null;e.evaluators=e.depends.split(",").map((t=>{t=t.trim();let e=X.find((e=>t.includes(e)))??"!=",o=null,r="";if(e){const n=t.split(e);o=n[0],r=n[1]??""}else t.startsWith("!")?(e="=",o=t.substring(1)):o=t;const n=this.form.querySelector(`#${CSS.escape(o)}`)??this.form.querySelector(`[name="${CSS.escape(o)}"]`);return n instanceof HTMLInputElement?"checkbox"===n.type||"radio"===n.type?"!="===e?()=>n.checked:()=>!n.checked:()=>W.get(e)(n,r):n instanceof HTMLSelectElement?()=>W.get(e)(n,r):n instanceof HTMLOptionElement?"!="===e?()=>n.selected:()=>!n.selected:void 0})).filter((t=>void 0!==t)),this.optionsCache.set(t,e)}return e}getElement(t){return this.form.querySelector(`#${CSS.escape(t)}`)??this.form.querySelector(`[name="${CSS.escape(t)}"]`)}};function K(t,e,o="options"){const r={},n=`${e}${o}`,i=t.getAttributeNames();for(const a of i)if(a.startsWith(e)){const i=a.slice(e.length);if(null!=o&&a===n)try{const e=JSON.parse(t.getAttribute(a));Object.assign(r,e)}catch(e){console.error(`Error parsing JSON from element ${t.name} attribute ${n} (${t.getAttribute(a)}):`,t,e)}else r[i]=t.getAttribute(a)}return r}function Q(t,e){const o=Array.from(t.querySelectorAll(e));return t.matches(e)&&o.unshift(t),o}function J(t){if(t instanceof HTMLInputElement)"checkbox"===t.type||"radio"===t.type?t.checked=t.defaultChecked:t.value=t.defaultValue;else if(t instanceof HTMLSelectElement){var e=t.querySelectorAll("option[selected]");0==e.length?t.selectedIndex=0:e.forEach((t=>{t instanceof HTMLOptionElement&&(t.selected=!0)}))}}function Z(t){t instanceof HTMLInputElement?"checkbox"===t.type||"radio"===t.type?t.checked=!1:t.value="":t instanceof HTMLSelectElement&&(t.options.selectedIndex=0)}var tt,et,ot,rt;Y=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a}([$(),(tt=1,ot=U,rt=ot,et=function(t,e,o){var r=Reflect.getOwnMetadata(C,t)||{};r[o]=rt,Reflect.defineMetadata(C,r,t)},function(t,e){et(t,e,tt)}),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[HTMLFormElement,G])],Y),O.container.register(U,{useValue:new G}),O.container.register(R,{useClass:Y});const nt=globalThis,it=nt.ShadowRoot&&(void 0===nt.ShadyCSS||nt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,at=Symbol(),bt=new WeakMap;class lt{constructor(t,e,o){if(this._$cssResult$=!0,o!==at)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(it&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=bt.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&bt.set(e,t))}return t}toString(){return this.cssText}}const st=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[r+1]),t[0]);return new lt(o,t,at)},dt=(t,e)=>{if(it)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=nt.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}},ct=it?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return(t=>new lt("string"==typeof t?t:t+"",void 0,at))(e)})(t):t,{is:ft,defineProperty:pt,getOwnPropertyDescriptor:mt,getOwnPropertyNames:gt,getOwnPropertySymbols:ut,getPrototypeOf:vt}=Object,ht=globalThis,xt=ht.trustedTypes,wt=xt?xt.emptyScript:"",yt=ht.reactiveElementPolyfillSupport,qt=(t,e)=>t,kt={toAttribute(t,e){switch(e){case Boolean:t=t?wt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},_t=(t,e)=>!ft(t,e),zt={attribute:!0,type:String,converter:kt,reflect:!1,hasChanged:_t};Symbol.metadata??=Symbol("metadata"),ht.litPropertyMetadata??=new WeakMap;class jt extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=zt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&pt(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:n}=mt(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const i=r?.call(this);n.call(this,e),this.requestUpdate(t,i,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??zt}static _$Ei(){if(this.hasOwnProperty(qt("elementProperties")))return;const t=vt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(qt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(qt("properties"))){const t=this.properties,e=[...gt(t),...ut(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(ct(t))}else void 0!==t&&e.push(ct(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return dt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EC(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const n=(void 0!==o.converter?.toAttribute?o.converter:kt).toAttribute(e,o.type);this._$Em=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:kt;this._$Em=r,this[r]=n.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??_t)(this[t],e))return;this.P(t,e,o)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}jt.elementStyles=[],jt.shadowRootOptions={mode:"open"},jt[qt("elementProperties")]=new Map,jt[qt("finalized")]=new Map,yt?.({ReactiveElement:jt}),(ht.reactiveElementVersions??=[]).push("2.0.4");const St=globalThis,Ct=St.trustedTypes,$t=Ct?Ct.createPolicy("lit-html",{createHTML:t=>t}):void 0,At="$lit$",Ot=`lit$${Math.random().toFixed(9).slice(2)}$`,Et="?"+Ot,Rt=`<${Et}>`,Tt=document,Mt=()=>Tt.createComment(""),Lt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Dt=Array.isArray,It="[ \t\n\f\r]",Pt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ht=/-->/g,Bt=/>/g,Nt=RegExp(`>|${It}(?:([^\\s"'>=/]+)(${It}*=${It}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Vt=/'/g,Ft=/"/g,Gt=/^(?:script|style|textarea|title)$/i,Ut=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Wt=Ut(1),Xt=Ut(2),Yt=(Ut(3),Symbol.for("lit-noChange")),Kt=Symbol.for("lit-nothing"),Qt=new WeakMap,Jt=Tt.createTreeWalker(Tt,129);function Zt(t,e){if(!Dt(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==$t?$t.createHTML(e):e}const te=(t,e)=>{const o=t.length-1,r=[];let n,i=2===e?"<svg>":3===e?"<math>":"",a=Pt;for(let e=0;e<o;e++){const o=t[e];let b,l,s=-1,d=0;for(;d<o.length&&(a.lastIndex=d,l=a.exec(o),null!==l);)d=a.lastIndex,a===Pt?"!--"===l[1]?a=Ht:void 0!==l[1]?a=Bt:void 0!==l[2]?(Gt.test(l[2])&&(n=RegExp("</"+l[2],"g")),a=Nt):void 0!==l[3]&&(a=Nt):a===Nt?">"===l[0]?(a=n??Pt,s=-1):void 0===l[1]?s=-2:(s=a.lastIndex-l[2].length,b=l[1],a=void 0===l[3]?Nt:'"'===l[3]?Ft:Vt):a===Ft||a===Vt?a=Nt:a===Ht||a===Bt?a=Pt:(a=Nt,n=void 0);const c=a===Nt&&t[e+1].startsWith("/>")?" ":"";i+=a===Pt?o+Rt:s>=0?(r.push(b),o.slice(0,s)+At+o.slice(s)+Ot+c):o+Ot+(-2===s?e:c)}return[Zt(t,i+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]};class ee{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let n=0,i=0;const a=t.length-1,b=this.parts,[l,s]=te(t,e);if(this.el=ee.createElement(l,o),Jt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=Jt.nextNode())&&b.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(At)){const e=s[i++],o=r.getAttribute(t).split(Ot),a=/([.?@])?(.*)/.exec(e);b.push({type:1,index:n,name:a[2],strings:o,ctor:"."===a[1]?ae:"?"===a[1]?be:"@"===a[1]?le:ie}),r.removeAttribute(t)}else t.startsWith(Ot)&&(b.push({type:6,index:n}),r.removeAttribute(t));if(Gt.test(r.tagName)){const t=r.textContent.split(Ot),e=t.length-1;if(e>0){r.textContent=Ct?Ct.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],Mt()),Jt.nextNode(),b.push({type:2,index:++n});r.append(t[e],Mt())}}}else if(8===r.nodeType)if(r.data===Et)b.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(Ot,t+1));)b.push({type:7,index:n}),t+=Ot.length-1}n++}}static createElement(t,e){const o=Tt.createElement("template");return o.innerHTML=t,o}}function oe(t,e,o=t,r){if(e===Yt)return e;let n=void 0!==r?o._$Co?.[r]:o._$Cl;const i=Lt(e)?void 0:e._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),void 0===i?n=void 0:(n=new i(t),n._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=n:o._$Cl=n),void 0!==n&&(e=oe(t,n._$AS(t,e.values),n,r)),e}class re{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??Tt).importNode(e,!0);Jt.currentNode=r;let n=Jt.nextNode(),i=0,a=0,b=o[0];for(;void 0!==b;){if(i===b.index){let e;2===b.type?e=new ne(n,n.nextSibling,this,t):1===b.type?e=new b.ctor(n,b.name,b.strings,this,t):6===b.type&&(e=new se(n,this,t)),this._$AV.push(e),b=o[++a]}i!==b?.index&&(n=Jt.nextNode(),i++)}return Jt.currentNode=Tt,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class ne{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=Kt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=oe(this,t,e),Lt(t)?t===Kt||null==t||""===t?(this._$AH!==Kt&&this._$AR(),this._$AH=Kt):t!==this._$AH&&t!==Yt&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>Dt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Kt&&Lt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Tt.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ee.createElement(Zt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new re(r,this),o=t.u(this.options);t.p(e),this.T(o),this._$AH=t}}_$AC(t){let e=Qt.get(t.strings);return void 0===e&&Qt.set(t.strings,e=new ee(t)),e}k(t){Dt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,r=0;for(const n of t)r===e.length?e.push(o=new ne(this.O(Mt()),this.O(Mt()),this,this.options)):o=e[r],o._$AI(n),r++;r<e.length&&(this._$AR(o&&o._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class ie{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,n){this.type=1,this._$AH=Kt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Kt}_$AI(t,e=this,o,r){const n=this.strings;let i=!1;if(void 0===n)t=oe(this,t,e,0),i=!Lt(t)||t!==this._$AH&&t!==Yt,i&&(this._$AH=t);else{const r=t;let a,b;for(t=n[0],a=0;a<n.length-1;a++)b=oe(this,r[o+a],e,a),b===Yt&&(b=this._$AH[a]),i||=!Lt(b)||b!==this._$AH[a],b===Kt?t=Kt:t!==Kt&&(t+=(b??"")+n[a+1]),this._$AH[a]=b}i&&!r&&this.j(t)}j(t){t===Kt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ae extends ie{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Kt?void 0:t}}class be extends ie{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Kt)}}class le extends ie{constructor(t,e,o,r,n){super(t,e,o,r,n),this.type=5}_$AI(t,e=this){if((t=oe(this,t,e,0)??Kt)===Yt)return;const o=this._$AH,r=t===Kt&&o!==Kt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==Kt&&(o===Kt||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class se{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){oe(this,t)}}const de=St.litHtmlPolyfillSupport;de?.(ee,ne),(St.litHtmlVersions??=[]).push("3.2.1");class ce extends jt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,o)=>{const r=o?.renderBefore??e;let n=r._$litPart$;if(void 0===n){const t=o?.renderBefore??null;r._$litPart$=n=new ne(e.insertBefore(Mt(),t),t,void 0,o??{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Yt}}ce._$litElement$=!0,ce.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ce});const fe=globalThis.litElementPolyfillSupport;fe?.({LitElement:ce}),(globalThis.litElementVersions??=[]).push("4.1.1");const pe=t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},me={attribute:!0,type:String,converter:kt,reflect:!1,hasChanged:_t},ge=(t=me,e,o)=>{const{kind:r,metadata:n}=o;let i=globalThis.litPropertyMetadata.get(n);if(void 0===i&&globalThis.litPropertyMetadata.set(n,i=new Map),i.set(o.name,t),"accessor"===r){const{name:r}=o;return{set(o){const n=e.get.call(this);e.set.call(this,o),this.requestUpdate(r,n,t)},init(e){return void 0!==e&&this.P(r,void 0,t),e}}}if("setter"===r){const{name:r}=o;return function(o){const n=this[r];e.call(this,o),this.requestUpdate(r,n,t)}}throw Error("Unsupported decorator location: "+r)};function ue(t){return(e,o)=>"object"==typeof o?ge(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}function ve(t){return ue({...t,state:!0,attribute:!1})}var he=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},xe=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let we=class extends ce{constructor(){super(...arguments),this.name=null,this.apiEndpoint=null}connectedCallback(){super.connectedCallback();const t={};null==this.name&&console.error("qbo-api name is required."),null==this.apiEndpoint&&console.error("qbo-api apiEndpoint is required."),this.querySelectorAll("header").forEach((e=>{const o=e.getAttribute("name"),r=e.textContent;o&&r&&(t[o]=r)})),t.ContentType&&(t["Content-Type"]=t.ContentType,delete t.ContentType),this.apiEndpoint?.startsWith("http")||(this.apiEndpoint=new URL(this.apiEndpoint??"",document.location.origin).href),I(this.name,this.apiEndpoint,t,this.method)}render(){return Wt``}};he([ue({type:String}),xe("design:type",Object)],we.prototype,"name",void 0),he([ue({type:String}),xe("design:type",Object)],we.prototype,"apiEndpoint",void 0),he([ue(),xe("design:type",Object)],we.prototype,"method",void 0),we=he([pe("qbo-api")],we);const ye=st`
2
+ var t={630:(t,e,o)=>{var r;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof o.g?o.g:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(o,r){Object.defineProperty(t,o,{configurable:!0,writable:!0,value:r}),e&&e(o,r)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var o=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,n=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,b={__proto__:[]}instanceof Array,l=!a&&!b,s={create:a?function(){return N(Object.create(null))}:b?function(){return N({__proto__:null})}:function(){return N({})},has:l?function(t,e){return o.call(t,e)}:function(t,e){return e in t},get:l?function(t,e){return o.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},d=Object.getPrototypeOf(Function),c="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],o=function(){function t(t,e,o){this._index=0,this._keys=t,this._values=e,this._selector=o}return t.prototype["@@iterator"]=function(){return this},t.prototype[i]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var o=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:o,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}(),r=function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var o=this._find(t,!0);return this._values[o]=e,this},e.prototype.delete=function(e){var o=this._find(e,!1);if(o>=0){for(var r=this._keys.length,n=o+1;n<r;n++)this._keys[n-1]=this._keys[n],this._values[n-1]=this._values[n];return this._keys.length--,this._values.length--,T(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new o(this._keys,this._values,n)},e.prototype.values=function(){return new o(this._keys,this._values,a)},e.prototype.entries=function(){return new o(this._keys,this._values,b)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(t,e){if(!T(this._cacheKey,t)){this._cacheIndex=-1;for(var o=0;o<this._keys.length;o++)if(T(this._keys[o],t)){this._cacheIndex=o;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();return r;function n(t,e){return t}function a(t,e){return e}function b(t,e){return[t,e]}}(),f="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new c}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[i]=function(){return this.keys()},t}(),p="function"==typeof WeakMap?WeakMap:function(){var t=s.create(),e=r();return function(){function t(){this._key=r()}return t.prototype.has=function(t){var e=n(t,!1);return void 0!==e&&s.has(e,this._key)},t.prototype.get=function(t){var e=n(t,!1);return void 0!==e?s.get(e,this._key):void 0},t.prototype.set=function(t,e){return n(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=n(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=r()},t}();function r(){var e;do{e="@@WeakMap@@"+a()}while(s.has(t,e));return t[e]=!0,e}function n(t,r){if(!o.call(t,e)){if(!r)return;Object.defineProperty(t,e,{value:s.create()})}return t[e]}function i(t,e){for(var o=0;o<e;++o)t[o]=255*Math.random()|0;return t}function a(){var t=function(t){if("function"==typeof Uint8Array){var e=new Uint8Array(t);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):i(e,t),e}return i(new Array(t),t)}(16);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",o=0;o<16;++o){var r=t[o];4!==o&&6!==o&&8!==o||(e+="-"),r<16&&(e+="0"),e+=r.toString(16).toLowerCase()}return e}}(),m=r?Symbol.for("@reflect-metadata:registry"):void 0,g=function(){var t;return!z(m)&&S(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[m]),z(t)&&(t=function(){var t,o,r,n;z(m)||void 0===e.Reflect||m in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,o=t.hasOwnMetadata,r=t.getOwnMetadata,n=t.getOwnMetadataKeys,i=t.deleteMetadata,a=new p,b={isProviderFor:function(t,e){var o=a.get(t);return!(z(o)||!o.has(e))||!!n(t,e).length&&(z(o)&&(o=new f,a.set(t,o)),o.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:o,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:n,OrdinaryDeleteMetadata:i};return b}(e.Reflect));var i=new p,a={registerProvider:b,getProvider:s,setProvider:g};return a;function b(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case z(o):o=e;break;case o===e:break;case z(r):r=e;break;case r===e:break;default:void 0===n&&(n=new f),n.add(e)}}function l(e,i){if(!z(o)){if(o.isProviderFor(e,i))return o;if(!z(r)){if(r.isProviderFor(e,i))return o;if(!z(n))for(var a=L(n);;){var b=I(a);if(!b)return;var l=D(b);if(l.isProviderFor(e,i))return P(a),l}}}if(!z(t)&&t.isProviderFor(e,i))return t}function s(t,e){var o,r=i.get(t);return z(r)||(o=r.get(e)),z(o)?(z(o=l(t,e))||(z(r)&&(r=new c,i.set(t,r)),r.set(e,o)),o):o}function d(t){if(z(t))throw new TypeError;return o===t||r===t||!z(n)&&n.has(t)}function g(t,e,o){if(!d(o))throw new Error("Metadata provider not registered.");var r=s(t,e);if(r!==o){if(!z(r))return!1;var n=i.get(t);z(n)&&(n=new c,i.set(t,n)),n.set(e,o)}return!0}}()),!z(m)&&S(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,m,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),u=function(t){var e=new p,o={isProviderFor:function(t,o){var r=e.get(t);return!z(r)&&r.has(o)},OrdinaryDefineOwnMetadata:function(t,e,o,n){r(o,n,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,o){var n=r(e,o,!1);return!z(n)&&$(n.has(t))},OrdinaryGetOwnMetadata:function(t,e,o){var n=r(e,o,!1);if(!z(n))return n.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var o=[],n=r(t,e,!1);if(z(n))return o;for(var i=L(n.keys()),a=0;;){var b=I(i);if(!b)return o.length=a,o;var l=D(b);try{o[a]=l}catch(t){try{P(i)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,o,n){var i=r(o,n,!1);if(z(i))return!1;if(!i.delete(t))return!1;if(0===i.size){var a=e.get(o);z(a)||(a.delete(n),0===a.size&&e.delete(a))}return!0}};return g.registerProvider(o),o;function r(r,n,i){var a=e.get(r),b=!1;if(z(a)){if(!i)return;a=new c,e.set(r,a),b=!0}var l=a.get(n);if(z(l)){if(!i)return;if(l=new c,a.set(n,l),!t.setProvider(r,n,o))throw a.delete(n),b&&e.delete(r),new Error("Wrong provider for target.")}return l}}(g);function v(t,e,o){if(h(t,e,o))return!0;var r=H(e);return!j(r)&&v(t,r,o)}function h(t,e,o){var r=B(e,o,!1);return!z(r)&&$(r.OrdinaryHasOwnMetadata(t,e,o))}function x(t,e,o){if(h(t,e,o))return w(t,e,o);var r=H(e);return j(r)?void 0:x(t,r,o)}function w(t,e,o){var r=B(e,o,!1);if(!z(r))return r.OrdinaryGetOwnMetadata(t,e,o)}function y(t,e,o,r){B(o,r,!0).OrdinaryDefineOwnMetadata(t,e,o,r)}function q(t,e){var o=k(t,e),r=H(t);if(null===r)return o;var n=q(r,e);if(n.length<=0)return o;if(o.length<=0)return n;for(var i=new f,a=[],b=0,l=o;b<l.length;b++){var s=l[b];i.has(s)||(i.add(s),a.push(s))}for(var d=0,c=n;d<c.length;d++)s=c[d],i.has(s)||(i.add(s),a.push(s));return a}function k(t,e){var o=B(t,e,!1);return o?o.OrdinaryOwnMetadataKeys(t,e):[]}function _(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function z(t){return void 0===t}function j(t){return null===t}function S(t){return"object"==typeof t?null!==t:"function"==typeof t}function C(t,e){switch(_(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var o=3===e?"string":5===e?"number":"default",r=M(t,n);if(void 0!==r){var i=r.call(t,o);if(S(i))throw new TypeError;return i}return function(t,e){if("string"===e){var o=t.toString;if(E(o)&&!S(n=o.call(t)))return n;if(E(r=t.valueOf)&&!S(n=r.call(t)))return n}else{var r;if(E(r=t.valueOf)&&!S(n=r.call(t)))return n;var n,i=t.toString;if(E(i)&&!S(n=i.call(t)))return n}throw new TypeError}(t,"default"===o?"number":o)}function $(t){return!!t}function A(t){var e=C(t,3);return function(t){return"symbol"==typeof t}(e)?e:function(t){return""+t}(e)}function O(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function E(t){return"function"==typeof t}function R(t){return"function"==typeof t}function T(t,e){return t===e||t!=t&&e!=e}function M(t,e){var o=t[e];if(null!=o){if(!E(o))throw new TypeError;return o}}function L(t){var e=M(t,i);if(!E(e))throw new TypeError;var o=e.call(t);if(!S(o))throw new TypeError;return o}function D(t){return t.value}function I(t){var e=t.next();return!e.done&&e}function P(t){var e=t.return;e&&e.call(t)}function H(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===d)return e;if(e!==d)return e;var o=t.prototype,r=o&&Object.getPrototypeOf(o);if(null==r||r===Object.prototype)return e;var n=r.constructor;return"function"!=typeof n||n===t?e:n}function B(t,e,o){var r=g.getProvider(t,e);if(!z(r))return r;if(o){if(g.setProvider(t,e,u))return u;throw new Error("Illegal state.")}}function N(t){return t.__=void 0,delete t.__,t}t("decorate",(function(t,e,o,r){if(z(o)){if(!O(t))throw new TypeError;if(!R(e))throw new TypeError;return function(t,e){for(var o=t.length-1;o>=0;--o){var r=(0,t[o])(e);if(!z(r)&&!j(r)){if(!R(r))throw new TypeError;e=r}}return e}(t,e)}if(!O(t))throw new TypeError;if(!S(e))throw new TypeError;if(!S(r)&&!z(r)&&!j(r))throw new TypeError;return j(r)&&(r=void 0),function(t,e,o,r){for(var n=t.length-1;n>=0;--n){var i=(0,t[n])(e,o,r);if(!z(i)&&!j(i)){if(!S(i))throw new TypeError;r=i}}return r}(t,e,o=A(o),r)})),t("metadata",(function(t,e){return function(o,r){if(!S(o))throw new TypeError;if(!z(r)&&!function(t){switch(_(t)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;y(t,e,o,r)}})),t("defineMetadata",(function(t,e,o,r){if(!S(o))throw new TypeError;return z(r)||(r=A(r)),y(t,e,o,r)})),t("hasMetadata",(function(t,e,o){if(!S(e))throw new TypeError;return z(o)||(o=A(o)),v(t,e,o)})),t("hasOwnMetadata",(function(t,e,o){if(!S(e))throw new TypeError;return z(o)||(o=A(o)),h(t,e,o)})),t("getMetadata",(function(t,e,o){if(!S(e))throw new TypeError;return z(o)||(o=A(o)),x(t,e,o)})),t("getOwnMetadata",(function(t,e,o){if(!S(e))throw new TypeError;return z(o)||(o=A(o)),w(t,e,o)})),t("getMetadataKeys",(function(t,e){if(!S(t))throw new TypeError;return z(e)||(e=A(e)),q(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!S(t))throw new TypeError;return z(e)||(e=A(e)),k(t,e)})),t("deleteMetadata",(function(t,e,o){if(!S(e))throw new TypeError;if(z(o)||(o=A(o)),!S(e))throw new TypeError;z(o)||(o=A(o));var r=B(e,o,!1);return!z(r)&&r.OrdinaryDeleteMetadata(t,e,o)}))}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(r||(r={}))}},e={};function o(r){var n=e[r];if(void 0!==n)return n.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,o),i.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};o.d(r,{tz:()=>je,O2:()=>F,m$:()=>Y,Il:()=>G,P7:()=>U,Dg:()=>N,ho:()=>V,OU:()=>E,Kt:()=>Rl,$4:()=>we,kq:()=>os,hg:()=>is,EC:()=>ss,ZF:()=>Re,dm:()=>Le,No:()=>Ae,SD:()=>$e,RK:()=>He,R$:()=>Fe,T4:()=>Xe,$T:()=>fs,bA:()=>Je,U6:()=>eo,OK:()=>ul,hX:()=>ql,V9:()=>zl,FX:()=>$l,bB:()=>xs,j_:()=>El,PK:()=>Ll,lS:()=>gs,N6:()=>Pl,Cv:()=>Nl,vn:()=>Yl,zZ:()=>jl,k$:()=>D,xC:()=>A,G8:()=>R,bj:()=>B,Nw:()=>ye,Tt:()=>qe,Ng:()=>Z,Ty:()=>Ql,f_:()=>Jl,Qg:()=>Zl,BL:()=>K,BV:()=>J,bX:()=>Q,Yq:()=>Ul,c7:()=>P,_e:()=>T,Tj:()=>Fl,fj:()=>Gl,cK:()=>Kl,B_:()=>ke,I6:()=>I,aA:()=>L,$p:()=>O,$7:()=>Vl,V2:()=>M});var n,i={};o.r(i),o.d(i,{afterMain:()=>qo,afterRead:()=>xo,afterWrite:()=>zo,applyStyles:()=>Eo,arrow:()=>Jo,auto:()=>ao,basePlacements:()=>bo,beforeMain:()=>wo,beforeRead:()=>vo,beforeWrite:()=>ko,bottom:()=>ro,clippingParents:()=>co,computeStyles:()=>or,createPopper:()=>Or,createPopperBase:()=>Ar,createPopperLite:()=>Er,detectOverflow:()=>vr,end:()=>so,eventListeners:()=>nr,flip:()=>hr,hide:()=>yr,left:()=>io,main:()=>yo,modifierPhases:()=>jo,offset:()=>qr,placements:()=>uo,popper:()=>po,popperGenerator:()=>$r,popperOffsets:()=>kr,preventOverflow:()=>_r,read:()=>ho,reference:()=>mo,right:()=>no,start:()=>lo,top:()=>oo,variationPlacements:()=>go,viewport:()=>fo,write:()=>_o}),o(630),function(t){t[t.Transient=0]="Transient",t[t.Singleton=1]="Singleton",t[t.ResolutionScoped=2]="ResolutionScoped",t[t.ContainerScoped=3]="ContainerScoped"}(n||(n={}));const a=n;var b=function(t,e){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},b(t,e)};function l(t,e){function o(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}function s(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],r=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return a}function c(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(d(arguments[e]));return t}function f(t){return!!t.useClass}function p(t){return!!t.useFactory}var m=function(){function t(t){this.wrap=t,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}return t.prototype.createProxy=function(t){var e,o=this,r=!1;return new Proxy({},this.createHandler((function(){return r||(e=t(o.wrap()),r=!0),e})))},t.prototype.createHandler=function(t){var e={};return this.reflectMethods.forEach((function(o){e[o]=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e[0]=t(),Reflect[o].apply(void 0,c(e))}})),e},t}();function g(t){return"string"==typeof t||"symbol"==typeof t}function u(t){return"object"==typeof t&&"token"in t&&"transform"in t}function v(t){return!!t.useToken}function h(t){return null!=t.useValue}const x=function(){function t(){this._registryMap=new Map}return t.prototype.entries=function(){return this._registryMap.entries()},t.prototype.getAll=function(t){return this.ensure(t),this._registryMap.get(t)},t.prototype.get=function(t){this.ensure(t);var e=this._registryMap.get(t);return e[e.length-1]||null},t.prototype.set=function(t,e){this.ensure(t),this._registryMap.get(t).push(e)},t.prototype.setAll=function(t,e){this._registryMap.set(t,e)},t.prototype.has=function(t){return this.ensure(t),this._registryMap.get(t).length>0},t.prototype.clear=function(){this._registryMap.clear()},t.prototype.ensure=function(t){this._registryMap.has(t)||this._registryMap.set(t,[])},t}(),w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e}(x),y=function(){this.scopedResolutions=new Map};var q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e}(x),k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e}(x);const _=function(){this.preResolution=new q,this.postResolution=new k};var z=new Map,j=function(){function t(t){this.parent=t,this._registry=new w,this.interceptors=new _,this.disposed=!1,this.disposables=new Set}return t.prototype.register=function(t,e,o){var r;if(void 0===o&&(o={lifecycle:a.Transient}),this.ensureNotDisposed(),r=function(t){return f(t)||h(t)||v(t)||p(t)}(e)?e:{useClass:e},v(r))for(var n=[t],i=r;null!=i;){var b=i.useToken;if(n.includes(b))throw new Error("Token registration cycle detected! "+c(n,[b]).join(" -> "));n.push(b);var l=this._registry.get(b);i=l&&v(l.provider)?l.provider:null}if((o.lifecycle===a.Singleton||o.lifecycle==a.ContainerScoped||o.lifecycle==a.ResolutionScoped)&&(h(r)||p(r)))throw new Error('Cannot use lifecycle "'+a[o.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(t,{provider:r,options:o}),this},t.prototype.registerType=function(t,e){return this.ensureNotDisposed(),g(e)?this.register(t,{useToken:e}):this.register(t,{useClass:e})},t.prototype.registerInstance=function(t,e){return this.ensureNotDisposed(),this.register(t,{useValue:e})},t.prototype.registerSingleton=function(t,e){if(this.ensureNotDisposed(),g(t)){if(g(e))return this.register(t,{useToken:e},{lifecycle:a.Singleton});if(e)return this.register(t,{useClass:e},{lifecycle:a.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var o=t;return e&&!g(e)&&(o=e),this.register(t,{useClass:o},{lifecycle:a.Singleton})},t.prototype.resolve=function(t,e){void 0===e&&(e=new y),this.ensureNotDisposed();var o=this.getRegistration(t);if(!o&&g(t))throw new Error('Attempted to resolve unregistered dependency token: "'+t.toString()+'"');if(this.executePreResolutionInterceptor(t,"Single"),o){var r=this.resolveRegistration(o,e);return this.executePostResolutionInterceptor(t,r,"Single"),r}if(function(t){return"function"==typeof t||t instanceof m}(t))return r=this.construct(t,e),this.executePostResolutionInterceptor(t,r,"Single"),r;throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")},t.prototype.executePreResolutionInterceptor=function(t,e){var o,r;if(this.interceptors.preResolution.has(t)){var n=[];try{for(var i=s(this.interceptors.preResolution.getAll(t)),a=i.next();!a.done;a=i.next()){var b=a.value;"Once"!=b.options.frequency&&n.push(b),b.callback(t,e)}}catch(t){o={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}this.interceptors.preResolution.setAll(t,n)}},t.prototype.executePostResolutionInterceptor=function(t,e,o){var r,n;if(this.interceptors.postResolution.has(t)){var i=[];try{for(var a=s(this.interceptors.postResolution.getAll(t)),b=a.next();!b.done;b=a.next()){var l=b.value;"Once"!=l.options.frequency&&i.push(l),l.callback(t,e,o)}}catch(t){r={error:t}}finally{try{b&&!b.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}this.interceptors.postResolution.setAll(t,i)}},t.prototype.resolveRegistration=function(t,e){if(this.ensureNotDisposed(),t.options.lifecycle===a.ResolutionScoped&&e.scopedResolutions.has(t))return e.scopedResolutions.get(t);var o,r=t.options.lifecycle===a.Singleton,n=t.options.lifecycle===a.ContainerScoped,i=r||n;return o=h(t.provider)?t.provider.useValue:v(t.provider)?i?t.instance||(t.instance=this.resolve(t.provider.useToken,e)):this.resolve(t.provider.useToken,e):f(t.provider)?i?t.instance||(t.instance=this.construct(t.provider.useClass,e)):this.construct(t.provider.useClass,e):p(t.provider)?t.provider.useFactory(this):this.construct(t.provider,e),t.options.lifecycle===a.ResolutionScoped&&e.scopedResolutions.set(t,o),o},t.prototype.resolveAll=function(t,e){var o=this;void 0===e&&(e=new y),this.ensureNotDisposed();var r=this.getAllRegistrations(t);if(!r&&g(t))throw new Error('Attempted to resolve unregistered dependency token: "'+t.toString()+'"');if(this.executePreResolutionInterceptor(t,"All"),r){var n=r.map((function(t){return o.resolveRegistration(t,e)}));return this.executePostResolutionInterceptor(t,n,"All"),n}var i=[this.construct(t,e)];return this.executePostResolutionInterceptor(t,i,"All"),i},t.prototype.isRegistered=function(t,e){return void 0===e&&(e=!1),this.ensureNotDisposed(),this._registry.has(t)||e&&(this.parent||!1)&&this.parent.isRegistered(t,!0)},t.prototype.reset=function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()},t.prototype.clearInstances=function(){var t,e;this.ensureNotDisposed();try{for(var o=s(this._registry.entries()),r=o.next();!r.done;r=o.next()){var n=d(r.value,2),i=n[0],a=n[1];this._registry.setAll(i,a.filter((function(t){return!h(t.provider)})).map((function(t){return t.instance=void 0,t})))}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}},t.prototype.createChildContainer=function(){var e,o;this.ensureNotDisposed();var r=new t(this);try{for(var n=s(this._registry.entries()),i=n.next();!i.done;i=n.next()){var b=d(i.value,2),l=b[0],c=b[1];c.some((function(t){return t.options.lifecycle===a.ContainerScoped}))&&r._registry.setAll(l,c.map((function(t){return t.options.lifecycle===a.ContainerScoped?{provider:t.provider,options:t.options}:t})))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(e)throw e.error}}return r},t.prototype.beforeResolution=function(t,e,o){void 0===o&&(o={frequency:"Always"}),this.interceptors.preResolution.set(t,{callback:e,options:o})},t.prototype.afterResolution=function(t,e,o){void 0===o&&(o={frequency:"Always"}),this.interceptors.postResolution.set(t,{callback:e,options:o})},t.prototype.dispose=function(){return function(t,e,o,r){return new(o||(o=Promise))((function(n,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function b(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(a,b)}l((r=r.apply(t,e||[])).next())}))}(this,void 0,void 0,(function(){var t;return function(t,e){var o,r,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:b(0),throw:b(1),return:b(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function b(i){return function(b){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{o=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,b])}}}(this,(function(e){switch(e.label){case 0:return this.disposed=!0,t=[],this.disposables.forEach((function(e){var o=e.dispose();o&&t.push(o)})),[4,Promise.all(t)];case 1:return e.sent(),[2]}}))}))},t.prototype.getRegistration=function(t){return this.isRegistered(t)?this._registry.get(t):this.parent?this.parent.getRegistration(t):null},t.prototype.getAllRegistrations=function(t){return this.isRegistered(t)?this._registry.getAll(t):this.parent?this.parent.getAllRegistrations(t):null},t.prototype.construct=function(t,e){var o=this;if(t instanceof m)return t.createProxy((function(t){return o.resolve(t,e)}));var r,n=function(){var r=z.get(t);if(!r||0===r.length){if(0===t.length)return new t;throw new Error('TypeInfo not known for "'+t.name+'"')}var n=r.map(o.resolveParams(e,t));return new(t.bind.apply(t,c([void 0],n)))}();return"function"!=typeof(r=n).dispose||r.dispose.length>0||this.disposables.add(n),n},t.prototype.resolveParams=function(t,e){var o=this;return function(r,n){var i,a,b,l;try{return"object"==typeof(l=r)&&"token"in l&&"multiple"in l?u(r)?r.multiple?(i=o.resolve(r.transform)).transform.apply(i,c([o.resolveAll(r.token)],r.transformArgs)):(a=o.resolve(r.transform)).transform.apply(a,c([o.resolve(r.token,t)],r.transformArgs)):r.multiple?o.resolveAll(r.token):o.resolve(r.token,t):u(r)?(b=o.resolve(r.transform,t)).transform.apply(b,c([o.resolve(r.token,t)],r.transformArgs)):o.resolve(r,t)}catch(t){throw new Error(function(t,e,o){var r,n,i=d(t.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1];return function(t,e,o){return void 0===o&&(o=" "),c([t],e.message.split("\n").map((function(t){return o+t}))).join("\n")}("Cannot inject the dependency "+(n=e,(null===(r=void 0===i?null:i)?"at position #"+n:'"'+r.split(",")[n].trim()+'" at position #'+n)+' of "')+t.name+'" constructor. Reason:',o)}(e,n,t))}}},t.prototype.ensureNotDisposed=function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")},t}(),S=new j,C="injectionTokens";const $=function(){return function(t){z.set(t,function(t){var e=Reflect.getMetadata("design:paramtypes",t)||[],o=Reflect.getOwnMetadata(C,t)||{};return Object.keys(o).forEach((function(t){e[+t]=o[t]})),e}(t))}};if("undefined"==typeof Reflect||!Reflect.getMetadata)throw new Error("tsyringe requires a reflect polyfill. Please add 'import \"reflect-metadata\"' to the top of your entry point.");class A{constructor(t,e){this.container=t,this.options=e}getService(t){return this.container.resolve(t)}}const O=window?.qbo4?.services||new A(S.createChildContainer(),{});"undefined"!=typeof window&&(window.qbo4=window.qbo4||{},window.qbo4.services=window.qbo4.services||new A(S.createChildContainer(),{}),window.qbo4.services);const E="ApiServiceToken",R="ValidateToken";function T(t,e){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){return console.error("Error parsing JSON string:",t),null}if(Array.isArray(t))return t;if("object"==typeof t&&null!==t)for(const o in t){const r=t[o];if(Array.isArray(r))return r;if("object"==typeof r){const t=T(r,e);if(t)return t}}return null}function M(t,...e){const o=/\${(.*?)}/g;let r=t;for(let t=0;t<e.length;t++){const n=e[t];r=r.replace(o,((t,e)=>{const o=e.split(/\.|\[|\]/).filter((t=>""!==t));let r=n;for(let e of o){if(void 0===r[e])return t;r=r[e]}return r}))}return r=r.replace(o,(()=>"")),r}function L(t,e,o,r=!0){if(null!=t&&null!=e){for(;r&&t.firstChild;)t.removeChild(t.firstChild);o.map(((o,r)=>{const n=e.content.cloneNode(!0);null!=n.firstElementChild&&(n.firstElementChild.setAttribute("data-index",`${r}`),n.firstElementChild.innerHTML=M(n.firstElementChild?.innerHTML??"",o)),t.appendChild(n)}))}}class D{constructor(t,e={},o=null){this.relativePath="",this.apiEndpoint=t,this.headers=e,this.method=o}async fetch(t,e){this.apiEndpoint.indexOf("//")<0&&(this.apiEndpoint=new URL(this.apiEndpoint,document.location.origin).href);const o=M(new URL(t??this.relativePath,this.apiEndpoint).href,e),r=this.method??(e?"POST":"GET"),n=new Headers(this.headers||{});e&&!n.has("Content-Type")&&n.append("Content-Type","application/json");const i=await fetch(o,{method:r,headers:n,body:"POST"===r&&e?JSON.stringify(e):null}),a=n.get("Accept")??"";return i.ok?"application/json"===a?await i.json():await i.text():(console.error(`API request failed with status ${i.status}`),null)}clone(t){const e=new D(this.apiEndpoint,this.headers,this.method);return e.relativePath=t??"",e}}function I(t,e,o={"Content-Type":"application/json"},r){O.container.registerInstance(t,new D(e,o,r))}function P(t){"string"!=typeof t&&(t=t.href);const e=t.match(/api:\/\/([^/]+)/),o=e?e[1]:t,r=e?t.substring(`api://${o}`.length+1):"",n=O.container.isRegistered(o)?O.container.resolve(o):new D(t);return r?n.clone(r):n}O.container.registerInstance("default",new D(document.querySelector("base[href]")?.getAttribute("href")||window.location.origin));var H=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};let B=class{constructor(){this.message="Zip code is invalid",this.selector=".zipcode"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};B=H([$()],B),O.container.register(R,{useClass:B});let N=class{constructor(){this.message="Email is invalid",this.selector=".email"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};N=H([$()],N),O.container.register(R,{useClass:N});let V=class{constructor(){this.message="This value does not appear to exist.",this.selector="[data-exists]"}connect(t){}disconnect(){}async validate(t){var e=t.getAttribute("data-exists");if(!e)return!1;var o=t.getAttribute("data-exists-path");const r=O.container.isRegistered(e)?O.container.resolve(e):new D(e);if(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement){const e=T(await r.fetch(o,{value:t.value}));return null!=e&&e.length>0}return!1}};V=H([$()],V),O.container.register(R,{useClass:V});class F{constructor(){this.operator="=",this.value=null}}class G{constructor(){this.evaluators=[],this.depends="",this.condition="or",this.emptyOnDisable=!1,this.resetOnDisable=!0,this.disabledClass="disabled",this.disableChildren=!0}}const U="DependencyValidatorOptions",W=new Map([["!=",(t,e)=>!Kl(t.value,e)],[">=",(t,e)=>t.value>=e],["<=",(t,e)=>t.value<=e],["=",(t,e)=>Kl(t.value,e)],[">",(t,e)=>t.value>e],["<",(t,e)=>t.value<e]]),X=Array.from(W.keys());let Y=class{constructor(t,e){this.message="Dependency condition not met",this.selector="[data-depend-options]",this.optionsCache=new Map,this.checkDependencies=async t=>{console.log("checking dependencies",this.optionsCache);for(const[t,e]of this.optionsCache)await this.validate(t)},this.form=t,this.options=e,this.currentOptions=e}connect(t){this.form.querySelectorAll(this.selector).forEach((t=>{t instanceof HTMLElement&&this.getOptions(t)})),this.optionsCache.forEach(((t,e)=>{this.validate(e)})),this.form.addEventListener("change",this.checkDependencies)}disconnect(){this.form.removeEventListener("change",this.checkDependencies)}async validate(t){const e=this.getOptions(t);if(null==e)return Promise.resolve(!0);let o;o="or"===e.condition?e.evaluators.some((t=>!0===t())):e.evaluators.every((t=>!0===t())),(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement)&&(t.disabled=!o),t.classList.toggle(e.disabledClass,!o);const r=Q(t,"input,select,textarea");return o?e.disableChildren&&r.forEach((t=>t.removeAttribute("disabled"))):(e.disableChildren&&r.forEach((t=>t.setAttribute("disabled","disabled"))),e.resetOnDisable?r.forEach((t=>J(t))):e.emptyOnDisable&&r.forEach((t=>Z(t)))),Promise.resolve(o)}getOptions(t){let e=this.optionsCache.get(t);if(!e){try{e=Object.assign({},this.options,K(t,"data-depend-"))}catch(t){console.error("Error parsing data-depend-options attribute:",t)}if(!e)return null;e.evaluators=e.depends.split(",").map((t=>{t=t.trim();let e=X.find((e=>t.includes(e)))??"!=",o=null,r="";if(e){const n=t.split(e);o=n[0],r=n[1]??""}else t.startsWith("!")?(e="=",o=t.substring(1)):o=t;const n=this.form.querySelector(`#${CSS.escape(o)}`)??this.form.querySelector(`[name="${CSS.escape(o)}"]`);return n instanceof HTMLInputElement?"checkbox"===n.type||"radio"===n.type?"!="===e?()=>n.checked:()=>!n.checked:()=>W.get(e)(n,r):n instanceof HTMLSelectElement?()=>W.get(e)(n,r):n instanceof HTMLOptionElement?"!="===e?()=>n.selected:()=>!n.selected:void 0})).filter((t=>void 0!==t)),this.optionsCache.set(t,e)}return e}getElement(t){return this.form.querySelector(`#${CSS.escape(t)}`)??this.form.querySelector(`[name="${CSS.escape(t)}"]`)}};function K(t,e,o="options"){const r={},n=`${e}${o}`,i=t.getAttributeNames();for(const a of i)if(a.startsWith(e)){const i=a.slice(e.length);if(null!=o&&a===n)try{const e=JSON.parse(t.getAttribute(a));Object.assign(r,e)}catch(e){console.error(`Error parsing JSON from element ${t.name} attribute ${n} (${t.getAttribute(a)}):`,t,e)}else r[i]=t.getAttribute(a)}return r}function Q(t,e){const o=Array.from(t.querySelectorAll(e));return t.matches(e)&&o.unshift(t),o}function J(t){if(t instanceof HTMLInputElement)"checkbox"===t.type||"radio"===t.type?t.checked=t.defaultChecked:t.value=t.defaultValue;else if(t instanceof HTMLSelectElement){var e=t.querySelectorAll("option[selected]");0==e.length?t.selectedIndex=0:e.forEach((t=>{t instanceof HTMLOptionElement&&(t.selected=!0)}))}}function Z(t){t instanceof HTMLInputElement?"checkbox"===t.type||"radio"===t.type?t.checked=!1:t.value="":t instanceof HTMLSelectElement&&(t.options.selectedIndex=0)}var tt,et,ot,rt;Y=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a}([$(),(tt=1,ot=U,rt=ot,et=function(t,e,o){var r=Reflect.getOwnMetadata(C,t)||{};r[o]=rt,Reflect.defineMetadata(C,r,t)},function(t,e){et(t,e,tt)}),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[HTMLFormElement,G])],Y),O.container.register(U,{useValue:new G}),O.container.register(R,{useClass:Y});const nt=globalThis,it=nt.ShadowRoot&&(void 0===nt.ShadyCSS||nt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,at=Symbol(),bt=new WeakMap;class lt{constructor(t,e,o){if(this._$cssResult$=!0,o!==at)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(it&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=bt.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&bt.set(e,t))}return t}toString(){return this.cssText}}const st=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[r+1]),t[0]);return new lt(o,t,at)},dt=(t,e)=>{if(it)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=nt.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}},ct=it?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return(t=>new lt("string"==typeof t?t:t+"",void 0,at))(e)})(t):t,{is:ft,defineProperty:pt,getOwnPropertyDescriptor:mt,getOwnPropertyNames:gt,getOwnPropertySymbols:ut,getPrototypeOf:vt}=Object,ht=globalThis,xt=ht.trustedTypes,wt=xt?xt.emptyScript:"",yt=ht.reactiveElementPolyfillSupport,qt=(t,e)=>t,kt={toAttribute(t,e){switch(e){case Boolean:t=t?wt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},_t=(t,e)=>!ft(t,e),zt={attribute:!0,type:String,converter:kt,reflect:!1,hasChanged:_t};Symbol.metadata??=Symbol("metadata"),ht.litPropertyMetadata??=new WeakMap;class jt extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=zt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&pt(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:n}=mt(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const i=r?.call(this);n.call(this,e),this.requestUpdate(t,i,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??zt}static _$Ei(){if(this.hasOwnProperty(qt("elementProperties")))return;const t=vt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(qt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(qt("properties"))){const t=this.properties,e=[...gt(t),...ut(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(ct(t))}else void 0!==t&&e.push(ct(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return dt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EC(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const n=(void 0!==o.converter?.toAttribute?o.converter:kt).toAttribute(e,o.type);this._$Em=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:kt;this._$Em=r,this[r]=n.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??_t)(this[t],e))return;this.P(t,e,o)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}jt.elementStyles=[],jt.shadowRootOptions={mode:"open"},jt[qt("elementProperties")]=new Map,jt[qt("finalized")]=new Map,yt?.({ReactiveElement:jt}),(ht.reactiveElementVersions??=[]).push("2.0.4");const St=globalThis,Ct=St.trustedTypes,$t=Ct?Ct.createPolicy("lit-html",{createHTML:t=>t}):void 0,At="$lit$",Ot=`lit$${Math.random().toFixed(9).slice(2)}$`,Et="?"+Ot,Rt=`<${Et}>`,Tt=document,Mt=()=>Tt.createComment(""),Lt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Dt=Array.isArray,It="[ \t\n\f\r]",Pt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ht=/-->/g,Bt=/>/g,Nt=RegExp(`>|${It}(?:([^\\s"'>=/]+)(${It}*=${It}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Vt=/'/g,Ft=/"/g,Gt=/^(?:script|style|textarea|title)$/i,Ut=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Wt=Ut(1),Xt=Ut(2),Yt=(Ut(3),Symbol.for("lit-noChange")),Kt=Symbol.for("lit-nothing"),Qt=new WeakMap,Jt=Tt.createTreeWalker(Tt,129);function Zt(t,e){if(!Dt(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==$t?$t.createHTML(e):e}const te=(t,e)=>{const o=t.length-1,r=[];let n,i=2===e?"<svg>":3===e?"<math>":"",a=Pt;for(let e=0;e<o;e++){const o=t[e];let b,l,s=-1,d=0;for(;d<o.length&&(a.lastIndex=d,l=a.exec(o),null!==l);)d=a.lastIndex,a===Pt?"!--"===l[1]?a=Ht:void 0!==l[1]?a=Bt:void 0!==l[2]?(Gt.test(l[2])&&(n=RegExp("</"+l[2],"g")),a=Nt):void 0!==l[3]&&(a=Nt):a===Nt?">"===l[0]?(a=n??Pt,s=-1):void 0===l[1]?s=-2:(s=a.lastIndex-l[2].length,b=l[1],a=void 0===l[3]?Nt:'"'===l[3]?Ft:Vt):a===Ft||a===Vt?a=Nt:a===Ht||a===Bt?a=Pt:(a=Nt,n=void 0);const c=a===Nt&&t[e+1].startsWith("/>")?" ":"";i+=a===Pt?o+Rt:s>=0?(r.push(b),o.slice(0,s)+At+o.slice(s)+Ot+c):o+Ot+(-2===s?e:c)}return[Zt(t,i+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]};class ee{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let n=0,i=0;const a=t.length-1,b=this.parts,[l,s]=te(t,e);if(this.el=ee.createElement(l,o),Jt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=Jt.nextNode())&&b.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(At)){const e=s[i++],o=r.getAttribute(t).split(Ot),a=/([.?@])?(.*)/.exec(e);b.push({type:1,index:n,name:a[2],strings:o,ctor:"."===a[1]?ae:"?"===a[1]?be:"@"===a[1]?le:ie}),r.removeAttribute(t)}else t.startsWith(Ot)&&(b.push({type:6,index:n}),r.removeAttribute(t));if(Gt.test(r.tagName)){const t=r.textContent.split(Ot),e=t.length-1;if(e>0){r.textContent=Ct?Ct.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],Mt()),Jt.nextNode(),b.push({type:2,index:++n});r.append(t[e],Mt())}}}else if(8===r.nodeType)if(r.data===Et)b.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(Ot,t+1));)b.push({type:7,index:n}),t+=Ot.length-1}n++}}static createElement(t,e){const o=Tt.createElement("template");return o.innerHTML=t,o}}function oe(t,e,o=t,r){if(e===Yt)return e;let n=void 0!==r?o._$Co?.[r]:o._$Cl;const i=Lt(e)?void 0:e._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),void 0===i?n=void 0:(n=new i(t),n._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=n:o._$Cl=n),void 0!==n&&(e=oe(t,n._$AS(t,e.values),n,r)),e}class re{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??Tt).importNode(e,!0);Jt.currentNode=r;let n=Jt.nextNode(),i=0,a=0,b=o[0];for(;void 0!==b;){if(i===b.index){let e;2===b.type?e=new ne(n,n.nextSibling,this,t):1===b.type?e=new b.ctor(n,b.name,b.strings,this,t):6===b.type&&(e=new se(n,this,t)),this._$AV.push(e),b=o[++a]}i!==b?.index&&(n=Jt.nextNode(),i++)}return Jt.currentNode=Tt,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class ne{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=Kt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=oe(this,t,e),Lt(t)?t===Kt||null==t||""===t?(this._$AH!==Kt&&this._$AR(),this._$AH=Kt):t!==this._$AH&&t!==Yt&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>Dt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Kt&&Lt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Tt.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ee.createElement(Zt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new re(r,this),o=t.u(this.options);t.p(e),this.T(o),this._$AH=t}}_$AC(t){let e=Qt.get(t.strings);return void 0===e&&Qt.set(t.strings,e=new ee(t)),e}k(t){Dt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,r=0;for(const n of t)r===e.length?e.push(o=new ne(this.O(Mt()),this.O(Mt()),this,this.options)):o=e[r],o._$AI(n),r++;r<e.length&&(this._$AR(o&&o._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class ie{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,n){this.type=1,this._$AH=Kt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Kt}_$AI(t,e=this,o,r){const n=this.strings;let i=!1;if(void 0===n)t=oe(this,t,e,0),i=!Lt(t)||t!==this._$AH&&t!==Yt,i&&(this._$AH=t);else{const r=t;let a,b;for(t=n[0],a=0;a<n.length-1;a++)b=oe(this,r[o+a],e,a),b===Yt&&(b=this._$AH[a]),i||=!Lt(b)||b!==this._$AH[a],b===Kt?t=Kt:t!==Kt&&(t+=(b??"")+n[a+1]),this._$AH[a]=b}i&&!r&&this.j(t)}j(t){t===Kt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ae extends ie{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Kt?void 0:t}}class be extends ie{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Kt)}}class le extends ie{constructor(t,e,o,r,n){super(t,e,o,r,n),this.type=5}_$AI(t,e=this){if((t=oe(this,t,e,0)??Kt)===Yt)return;const o=this._$AH,r=t===Kt&&o!==Kt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==Kt&&(o===Kt||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class se{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){oe(this,t)}}const de=St.litHtmlPolyfillSupport;de?.(ee,ne),(St.litHtmlVersions??=[]).push("3.2.1");class ce extends jt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,o)=>{const r=o?.renderBefore??e;let n=r._$litPart$;if(void 0===n){const t=o?.renderBefore??null;r._$litPart$=n=new ne(e.insertBefore(Mt(),t),t,void 0,o??{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Yt}}ce._$litElement$=!0,ce.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ce});const fe=globalThis.litElementPolyfillSupport;fe?.({LitElement:ce}),(globalThis.litElementVersions??=[]).push("4.1.1");const pe=t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},me={attribute:!0,type:String,converter:kt,reflect:!1,hasChanged:_t},ge=(t=me,e,o)=>{const{kind:r,metadata:n}=o;let i=globalThis.litPropertyMetadata.get(n);if(void 0===i&&globalThis.litPropertyMetadata.set(n,i=new Map),i.set(o.name,t),"accessor"===r){const{name:r}=o;return{set(o){const n=e.get.call(this);e.set.call(this,o),this.requestUpdate(r,n,t)},init(e){return void 0!==e&&this.P(r,void 0,t),e}}}if("setter"===r){const{name:r}=o;return function(o){const n=this[r];e.call(this,o),this.requestUpdate(r,n,t)}}throw Error("Unsupported decorator location: "+r)};function ue(t){return(e,o)=>"object"==typeof o?ge(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}function ve(t){return ue({...t,state:!0,attribute:!1})}var he=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},xe=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let we=class extends ce{constructor(){super(...arguments),this.name=null,this.apiEndpoint=null}connectedCallback(){super.connectedCallback();const t={};null==this.name&&console.error("qbo-api name is required."),null==this.apiEndpoint&&console.error("qbo-api apiEndpoint is required."),this.querySelectorAll("header").forEach((e=>{const o=e.getAttribute("name"),r=e.textContent;o&&r&&(t[o]=r)})),t.ContentType&&(t["Content-Type"]=t.ContentType,delete t.ContentType),this.apiEndpoint?.startsWith("http")||(this.apiEndpoint=new URL(this.apiEndpoint??"",document.location.origin).href),I(this.name,this.apiEndpoint,t,this.method)}render(){return Wt``}};he([ue({type:String}),xe("design:type",Object)],we.prototype,"name",void 0),he([ue({type:String}),xe("design:type",Object)],we.prototype,"apiEndpoint",void 0),he([ue(),xe("design:type",Object)],we.prototype,"method",void 0),we=he([pe("qbo-api")],we);const ye=st`
3
3
  @charset "UTF-8";/*!
4
4
  * Bootstrap v5.3.1 (https://getbootstrap.com/)
5
5
  * Copyright 2011-2023 The Bootstrap Authors
@@ -35,26 +35,26 @@ var t={630:(t,e,o)=>{var r;!function(t){!function(){var e="object"==typeof globa
35
35
  `]}async connectedCallback(){super.connectedCallback()}render(){return Wt`<iframe src='sample.pdf' width='100%' height='800px' frameborder='0'></iframe>`}};Te([ue({type:Boolean}),Me("design:type",Object)],Le.prototype,"open",void 0),Te([ue({type:Boolean}),Me("design:type",Object)],Le.prototype,"loading",void 0),Te([ue({type:Boolean}),Me("design:type",Object)],Le.prototype,"renderInHost",void 0),Le=Te([pe("qbo-docviewer")],Le);var De=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ie=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};const Pe=new Map;Pe.set("defaultLayout",(t=>Wt`<div slot="content">
36
36
  <span>Created:</span>
37
37
  <br/>
38
- <span>${Jl(t.CreatedDate)}</span>
38
+ <span>${Zl(t.CreatedDate)}</span>
39
39
  <br/>
40
40
  <span>${t.CreatedPerson}</span>
41
41
  <br/>
42
42
  <br/>
43
43
  <span>Updated:</span>
44
44
  <br/>
45
- <span>${Jl(t.UpdatedDate)}</span>
45
+ <span>${Zl(t.UpdatedDate)}</span>
46
46
  <br/>
47
47
  <span>${t.UpdatedPerson}</span>
48
48
  </div>`)),Pe.set("createdLayout",(t=>Wt`<div slot="content">
49
49
  <span>Created:</span>
50
50
  <br/>
51
- <span>${Jl(t.CreatedDate)}</span>
51
+ <span>${Zl(t.CreatedDate)}</span>
52
52
  <br/>
53
53
  <span>${t.CreatedPerson}</span>
54
54
  </div>`)),Pe.set("updatedLayout",(t=>Wt`<div slot="content">
55
55
  <span>Updated:</span>
56
56
  <br/>
57
- <span>${Jl(t.UpdatedDate)}</span>
57
+ <span>${Zl(t.UpdatedDate)}</span>
58
58
  <br/>
59
59
  <span>${t.UpdatedPerson}</span>
60
60
  </div>`));let He=class extends ce{constructor(){super(...arguments),this.aDropdownClass="dropdown-item qbo-pointer",this.buttonPrimaryClass="qbo-primary",this.buttonPrimaryDropdownClass="qbo-primary-dropdown",this.buttonType="button",this.data={},this.divButtonGroupClass="qbo-btn-group",this.divFormActionClass="qbo-form-actions",this.divSectionHeaderClass="qbo-header",this.dropdownToggle="dropdown",this.editLabel="Edit",this.helpIcon="qbo-icon-question",this.helpText="Help",this.historyIcon="qbo-icon-clock-history",this.historyText="History",this.infoButtonClass="qbo-btn-light",this.infoIconClass="qbo-icon-info",this.infoTitle="Last Updated",this.popoverClass="qbo-float-end",this.spanEditClass="qbo-icon-edit",this.ulDropdownClass="dropdown-menu",this.type="defaultLayout",this.renderInHost=!0}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}render(){null==this.type&&(this.type="defaultLayout");const t=Pe.has(this.type)?Pe.get(this.type)(this.data):null;return Wt`<slot>
@@ -108,7 +108,7 @@ var t={630:(t,e,o)=>{var r;!function(t){!function(){var e="object"==typeof globa
108
108
  </div>
109
109
  </div>`}renderIcon(t){return null==t.icon&&(console.warn("qbo-icon: icon attribute is required"),t.icon=t.unknown),Ge.has(t.icon)||(console.warn(`qbo-icon: icon attribute is not valid. Valid values are: ${Array.from(Ge.keys()).join(" ")}`),t.icon=t.unknown),Wt`<svg width="${t.width}" height="${t.width}" fill="${t.fill}" ?class=${t.getAttribute("class")} viewBox="${t.viewbox}">${t.backgroundColor?Xt`<rect width="${t.width}" height="${t.height}" fill="${t.backgroundColor}" />`:Xt``}${Ge.get(t.icon)}</svg>`}renderButton(t){return Wt`<button type="button" ?disabled=${t.disabled}>${t.renderIcon(t)}</button>`}render(){switch(this.type){case"icon":default:return this.renderIcon(this);case"button":return this.renderButton(this);case"all":return this.renderAll(this)}}};Ue([ue(),We("design:type",String)],Xe.prototype,"type",void 0),Ue([ue(),We("design:type",Object)],Xe.prototype,"icon",void 0),Ue([ue(),We("design:type",Number)],Xe.prototype,"height",void 0),Ue([ue(),We("design:type",Number)],Xe.prototype,"width",void 0),Ue([ue(),We("design:type",String)],Xe.prototype,"viewbox",void 0),Ue([ue(),We("design:type",String)],Xe.prototype,"fill",void 0),Ue([ue(),We("design:type",Object)],Xe.prototype,"backgroundColor",void 0),Ue([ue(),We("design:type",String)],Xe.prototype,"unknown",void 0),Ue([ue(),We("design:type",Boolean)],Xe.prototype,"disabled",void 0),Ue([ue({type:Boolean,reflect:!0}),We("design:type",Object)],Xe.prototype,"renderInHost",void 0),Xe=Ue([pe("qbo-icon")],Xe);var Ye,Ke=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Qe=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Je=class extends ce{constructor(){super(...arguments),this.renderInHost=!0,this.continuous=!1,this.interimResults=!1,this.maxAlternatives=1,this.for="input",this.class="input-group-text bi bi-headset",this.activeClass="bg-primary-subtle",this._recognition=null,this.target=null,this.listening=!1}static{Ye=this}static{this.activeInstance=null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.listen);const t=new(window.SpeechRecognition||window.webkitSpeechRecognition);t.continuous=this.continuous,t.interimResults=this.interimResults,t.maxAlternatives=this.maxAlternatives,t.onresult=t=>{this.onResult(t)},t.onspeechend=t=>{this.stop(t)},t.onerror=t=>{this.error(t)},this._recognition=t,this.target=document.getElementById(this.for)||this.querySelector(this.for)||this.parentElement?.querySelector(this.for),null==this.target&&console.log(`qbo-microphone: no target found for ${this.for}`)}disconnectedCallback(){this.removeEventListener("click",this.listen),super.disconnectedCallback()}onResult(t){const e=t.results[t.results.length-1][0].transcript;if(console.log("Result: "+e),null==this.target)return;const o=this.target;if(o instanceof HTMLInputElement)"radio"===o.type?o.value===e&&(o.checked=!0):this.continuous?o.value+=e:o.value=e;else if(o instanceof HTMLTextAreaElement)this.continuous?o.value+=e:o.value=e;else if(o instanceof HTMLSelectElement)for(let t=0;t<o.options.length;t++)if(o.options[t].value===e||o.options[t].text===e){o.selectedIndex=t;break}}listen(t){this.listening?this.stop(t):this.start()}start(){this.listening=!0,Ye.activeInstance=this,this.activeClass&&this.classList.add(this.activeClass),console.log("listening"),this._recognition.start()}stop(t){this.listening=!1,Ye.activeInstance=null,this.activeClass&&this.classList.remove(this.activeClass),console.log("stopped listening"),this._recognition.stop(),this._recognition.abort()}error(t){console.log("Error during speech recognition:",t)}render(){return Wt`<slot></slot>`}};Ke([ue({type:Boolean}),Qe("design:type",Object)],Je.prototype,"renderInHost",void 0),Ke([ue({type:Boolean}),Qe("design:type",Object)],Je.prototype,"continuous",void 0),Ke([ue({type:Boolean}),Qe("design:type",Object)],Je.prototype,"interimResults",void 0),Ke([ue({type:Number}),Qe("design:type",Object)],Je.prototype,"maxAlternatives",void 0),Ke([ue({type:String}),Qe("design:type",Object)],Je.prototype,"for",void 0),Ke([ue({type:String}),Qe("design:type",Object)],Je.prototype,"class",void 0),Ke([ue({type:String}),Qe("design:type",Object)],Je.prototype,"activeClass",void 0),Je=Ye=Ke([pe("qbo-microphone")],Je);var Ze=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},to=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let eo=class extends ce{constructor(){super(...arguments),this.display=25,this.start=0,this.count=0,this.pageLimit=10,this.currentPage=1,this.rollingView=!0,this.editSize=!0}get maxPage(){return Math.floor(this.count/this.display)+(this.count%this.display==0?0:1)}static{this.styles=[ke,st``]}goToPage(t){this.currentPage=t,this.dispatchEvent(new CustomEvent("change",{detail:{start:(t-1)*this.display,display:this.display,page:t},bubbles:!0,composed:!0}))}renderPage(t){return Wt`<li class="${this.currentPage===t?"active":""}">
110
110
  <a @click="${e=>this.goToPage(t)}">${t}</a>
111
- </li>`}renderSpacer(){return Wt`<li class="disabled"><a>...</a></li>`}renderPageNumbers(){const t=[];let e=this.maxPage>this.pageLimit?this.currentPage-Math.floor(this.pageLimit/2):1;e<0&&(e=0);let o=this.maxPage>this.pageLimit?e+this.pageLimit-1:this.maxPage;o<=1&&(o=1),e>1&&(t.push(this.renderPage(1)),t.push(this.renderSpacer()));for(let r=e;r<=o;r++)t.push(this.renderPage(r));return o<this.maxPage&&(t.push(this.renderSpacer()),t.push(this.renderPage(this.maxPage))),t}setDisplaySize(t){const e=t.target,o=parseInt(e.value);isNaN(o)||(this.display=o,this.start=0,this.goToPage(1))}renderPageSize(){return Wt`<li class="pageSize">
111
+ </li>`}renderSpacer(){return Wt`<li class="disabled"><a>...</a></li>`}renderPageNumbers(){const t=[];let e=this.maxPage>this.pageLimit?this.currentPage-Math.floor(this.pageLimit/2):1;e<1&&(e=1);let o=this.maxPage>this.pageLimit?e+this.pageLimit-1:this.maxPage;o<=1&&(o=1),e>1&&(t.push(this.renderPage(1)),t.push(this.renderSpacer()));for(let r=e;r<=o;r++)t.push(this.renderPage(r));return o<this.maxPage&&(t.push(this.renderSpacer()),t.push(this.renderPage(this.maxPage))),t}setDisplaySize(t){const e=t.target,o=parseInt(e.value);isNaN(o)||(this.display=o,this.start=0,this.goToPage(1))}renderPageSize(){return Wt`<li class="pageSize">
112
112
  <input type="number" min="5" value="${this.display}" title="Display Size" @change=${t=>this.setDisplaySize(t)}>
113
113
  <span>records per page</span>
114
114
  </li>`}render(){return Wt`
@@ -201,7 +201,7 @@ var t={630:(t,e,o)=>{var r;!function(t){!function(){var e="object"==typeof globa
201
201
  </div>
202
202
  </footer>
203
203
  </dialog>
204
- `:Wt``}`}};function Vl(t,e,o="qbo4.ui.preferences"){const r=localStorage.getItem(o);let n={};if(r)try{n=JSON.parse(r)}catch(t){console.error(`Error parsing ${o} from localStorage:`,t,r)}n[t]=e;try{localStorage.setItem(o,JSON.stringify(n))}catch(t){console.error(`Error saving ${o} to localStorage:`,t)}}function Fl(t,e="qbo4.ui.preferences"){const o=localStorage.getItem(e);if(o)try{return JSON.parse(o)[t]}catch(t){console.error(`Error parsing ${e} from localStorage:`,t,o)}}function Gl(t,e=null){const o=e??Fl("dateFormat")??"MM/dd/yyyy",r={};return o.includes("yyyy")&&(r.year="numeric"),o.includes("MM")&&(r.month=o.includes("MMM")?"short":"2-digit"),o.includes("dd")&&(r.day="2-digit"),o.includes("HH")&&(r.hour="2-digit"),o.includes("mm")&&(r.minute="2-digit"),o.includes("ss")&&(r.second="2-digit"),o.includes("tt")&&(r.hour12=!0),o.includes("dddd")&&(r.weekday="long"),o.includes("ddd")&&(r.weekday="short"),new Intl.DateTimeFormat(void 0,r).format(new Date(t))}Hl([ue({type:Object}),Bl("design:type",Object)],Nl.prototype,"preferences",void 0),Hl([ue(),Bl("design:type",String)],Nl.prototype,"key",void 0),Hl([ve(),Bl("design:type",Object)],Nl.prototype,"isEditing",void 0),Nl=Hl([pe("qbo-user-preferences"),Bl("design:paramtypes",[])],Nl);var Ul=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Wl=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Xl=class extends ce{constructor(){super(),this.renderInHost=!1,this.autoComplete="off",this.validatedClass="was-validated",this.workingClass=["bg-light","text-secondary"],this.form=null,this.validators=[],this.validate=async t=>{console.trace("validating form"),t.preventDefault();const e=Array.from(this.form?.querySelectorAll("*"));for(const t of e)t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement?(console.trace("validating element ",t),await this.validateElement(t)):console.trace("ignoring element ",t);this.form?.checkValidity()?console.trace("form is valid, js submit"):(console.trace("form is invalid"),t.preventDefault(),t.stopPropagation()),this.form?.classList.add(this.validatedClass),this.dispatchEvent(new Event("qbo-form-validated",{bubbles:!0}))},this.validateElement=async t=>{const e=t instanceof Event?t.target:t;if(console.trace("validateElement start ",e),e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement){if(e.setCustomValidity(""),!e.checkValidity())return;for(const t of this.validators)if(e.matches(t.selector)){if(console.trace("element matches selector ",t.selector," for ",e.matches(t.selector)?"true":"false"),!e.checkValidity())break;this.workingClass.forEach((t=>e.classList.add(t)));const o=await t.validate(e);this.workingClass.forEach((t=>e.classList.remove(t))),e.setCustomValidity(o?"":t.message),console.trace("input validity is ",e.checkValidity()," message is ",e.validationMessage)}else console.trace("element does not match selector ",t.selector," for ",e.matches(t.selector)?"true":"false")}console.trace("validateElement end ",e),e?.dispatchEvent(new Event("qbo-input-validated",{bubbles:!0}))},this.childContainer=O.container.createChildContainer()}async connectedCallback(){super.connectedCallback(),this.form=this.closest("form"),null!=this.form&&(this.form?.addEventListener("submit",this.validate),this.form?.addEventListener("change",this.validateElement),this.childContainer.registerInstance(HTMLFormElement,this.form),this.validators=this.childContainer.resolveAll(R),this.validators.forEach((t=>t.connect(this.form))))}async disconnectedCallback(){super.disconnectedCallback(),this.validators.forEach((t=>t.disconnect())),this.form?.removeEventListener("change",this.validateElement),this.form?.removeEventListener("submit",this.validate)}render(){return Wt``}};function Yl(t,e,o="*",r=!0){return e=(e=e.replace(/([.+^${}()|[\]\\])/g,"\\$1")).replace(new RegExp("\\"+o,"g"),".*"),new RegExp("^"+e+"$",r?"i":"").test(t)}function Kl(t){const e=t.dataset,o={};for(const t in e)e.hasOwnProperty(t)&&void 0!==e[t]&&(o[t]=e[t]);return o}function Ql(t){return t&&""!=t.trim()?new Date(t).toISOString().slice(0,10):""}function Jl(t){return t&&""!=t.trim()?new Date(t).toLocaleString().replace(",",""):""}Ul([ue({type:Boolean}),Wl("design:type",Object)],Xl.prototype,"renderInHost",void 0),Ul([ue({type:String}),Wl("design:type",Object)],Xl.prototype,"autoComplete",void 0),Ul([ue({type:String}),Wl("design:type",Object)],Xl.prototype,"validatedClass",void 0),Ul([ue({converter:{fromAttribute:(t,e)=>t?.split(" "),toAttribute:(t,e)=>t.join(" ")}}),Wl("design:type",Object)],Xl.prototype,"workingClass",void 0),Xl=Ul([pe("qbo-validate"),Wl("design:paramtypes",[])],Xl);var Zl=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ts=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let es=class extends Ae{constructor(){super(...arguments),this.loading=!1,this.target=null,this.values=[],this.targetElement=null,this.selector="*[data-badge]"}async connectedCallback(){this.targetElement=null!=this.target?this.closest(this.target):this,null!=this.targetElement?(this.targetElement.addEventListener("qbo-updated",this.getIds.bind(this)),super.connectedCallback()):console.error(`Could not find target element ${this.target}`)}disconnectedCallback(){this.targetElement?.removeEventListener("qbo-updated",this.getIds)}getPayload(t){(super.getPayload(t)??{}).idList=this.values.join(",")}getIds(){if(console.log("reacting to target qbo-updated"),null==this.targetElement)return;const t=[];this.targetElement.querySelectorAll(this.selector).forEach((e=>{const o=e.getAttribute("data-badge");null!==o&&t.push(o)})),this.values=t}async fetchData(t,e){super.fetchData(t,e)}render(){this.targetElement.querySelectorAll(this.selector).forEach((t=>{t.innerHTML=t.getAttribute("data-badge")??""}))}};Zl([ue({type:Boolean}),ts("design:type",Object)],es.prototype,"loading",void 0),Zl([ue(),ts("design:type",Object)],es.prototype,"target",void 0),Zl([ue(),ts("design:type",Array)],es.prototype,"values",void 0),Zl([ue(),ts("design:type",Object)],es.prototype,"selector",void 0),es=Zl([pe("qbo-badge")],es);var os=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},rs=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let ns=class extends ce{constructor(){super(...arguments),this.apiEndpoint="qbo",this.colFourClass="qbo-col-4",this.colSixClass="qbo-col-6",this.colThreeClass="qbo-col-3",this.colTwelveClass="qbo-col-12",this.contactId=null,this.contactLabel="Contact",this.contactName="Contact",this.disabled=!0,this.divSectionHeaderClass="qbo-header",this.formControlSmallClass="qbo-sm",this.formLabelSmallClass="qbo-sm",this.formSelectSmallClass="qbo-sm",this.renderInHost=!0,this.jsonData={}}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}async connectedCallback(){super.connectedCallback();const t=O.container.isRegistered(this.apiEndpoint)?O.container.resolve(this.apiEndpoint):new D(this.apiEndpoint);this.jsonData=await t.fetch(`contact/summary/${this.contactId}`)}render(){return null==this.jsonData||null==this.jsonData.Root||null==this.jsonData.Root.ContactItem&&null!=this.contactId?Wt`<p>Loading...</p>`:Wt`<slot>
204
+ `:Wt``}`}};function Vl(t,e,o="qbo4.ui.preferences"){const r=localStorage.getItem(o);let n={};if(r)try{n=JSON.parse(r)}catch(t){console.error(`Error parsing ${o} from localStorage:`,t,r)}n[t]=e;try{localStorage.setItem(o,JSON.stringify(n))}catch(t){console.error(`Error saving ${o} to localStorage:`,t)}}function Fl(t,e="qbo4.ui.preferences"){const o=localStorage.getItem(e);if(o)try{return JSON.parse(o)[t]}catch(t){console.error(`Error parsing ${e} from localStorage:`,t,o)}}function Gl(t,e=" "){return t.filter(Boolean).join(e)}function Ul(t,e=null){if(null==t||isNaN(new Date(t).getTime()))return null;const o=e??Fl("dateFormat")??"MM/dd/yyyy",r={};return o.includes("yyyy")&&(r.year="numeric"),o.includes("MM")&&(r.month=o.includes("MMM")?"short":"2-digit"),o.includes("dd")&&(r.day="2-digit"),o.includes("HH")&&(r.hour="2-digit"),o.includes("mm")&&(r.minute="2-digit"),o.includes("ss")&&(r.second="2-digit"),o.includes("tt")&&(r.hour12=!0),o.includes("dddd")&&(r.weekday="long"),o.includes("ddd")&&(r.weekday="short"),new Intl.DateTimeFormat(void 0,r).format(new Date(t))}Hl([ue({type:Object}),Bl("design:type",Object)],Nl.prototype,"preferences",void 0),Hl([ue(),Bl("design:type",String)],Nl.prototype,"key",void 0),Hl([ve(),Bl("design:type",Object)],Nl.prototype,"isEditing",void 0),Nl=Hl([pe("qbo-user-preferences"),Bl("design:paramtypes",[])],Nl);var Wl=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Xl=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Yl=class extends ce{constructor(){super(),this.renderInHost=!1,this.autoComplete="off",this.validatedClass="was-validated",this.workingClass=["bg-light","text-secondary"],this.form=null,this.validators=[],this.validate=async t=>{console.trace("validating form"),t.preventDefault();const e=Array.from(this.form?.querySelectorAll("*"));for(const t of e)t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement?(console.trace("validating element ",t),await this.validateElement(t)):console.trace("ignoring element ",t);this.form?.checkValidity()?console.trace("form is valid, js submit"):(console.trace("form is invalid"),t.preventDefault(),t.stopPropagation()),this.form?.classList.add(this.validatedClass),this.dispatchEvent(new Event("qbo-form-validated",{bubbles:!0}))},this.validateElement=async t=>{const e=t instanceof Event?t.target:t;if(console.trace("validateElement start ",e),e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement){if(e.setCustomValidity(""),!e.checkValidity())return;for(const t of this.validators)if(e.matches(t.selector)){if(console.trace("element matches selector ",t.selector," for ",e.matches(t.selector)?"true":"false"),!e.checkValidity())break;this.workingClass.forEach((t=>e.classList.add(t)));const o=await t.validate(e);this.workingClass.forEach((t=>e.classList.remove(t))),e.setCustomValidity(o?"":t.message),console.trace("input validity is ",e.checkValidity()," message is ",e.validationMessage)}else console.trace("element does not match selector ",t.selector," for ",e.matches(t.selector)?"true":"false")}console.trace("validateElement end ",e),e?.dispatchEvent(new Event("qbo-input-validated",{bubbles:!0}))},this.childContainer=O.container.createChildContainer()}async connectedCallback(){super.connectedCallback(),this.form=this.closest("form"),null!=this.form&&(this.form?.addEventListener("submit",this.validate),this.form?.addEventListener("change",this.validateElement),this.childContainer.registerInstance(HTMLFormElement,this.form),this.validators=this.childContainer.resolveAll(R),this.validators.forEach((t=>t.connect(this.form))))}async disconnectedCallback(){super.disconnectedCallback(),this.validators.forEach((t=>t.disconnect())),this.form?.removeEventListener("change",this.validateElement),this.form?.removeEventListener("submit",this.validate)}render(){return Wt``}};function Kl(t,e,o="*",r=!0){return e=(e=e.replace(/([.+^${}()|[\]\\])/g,"\\$1")).replace(new RegExp("\\"+o,"g"),".*"),new RegExp("^"+e+"$",r?"i":"").test(t)}function Ql(t){const e=t.dataset,o={};for(const t in e)e.hasOwnProperty(t)&&void 0!==e[t]&&(o[t]=e[t]);return o}function Jl(t){return t&&""!=t.trim()?new Date(t).toISOString().slice(0,10):""}function Zl(t){return t&&""!=t.trim()?new Date(t).toLocaleString().replace(",",""):""}Wl([ue({type:Boolean}),Xl("design:type",Object)],Yl.prototype,"renderInHost",void 0),Wl([ue({type:String}),Xl("design:type",Object)],Yl.prototype,"autoComplete",void 0),Wl([ue({type:String}),Xl("design:type",Object)],Yl.prototype,"validatedClass",void 0),Wl([ue({converter:{fromAttribute:(t,e)=>t?.split(" "),toAttribute:(t,e)=>t.join(" ")}}),Xl("design:type",Object)],Yl.prototype,"workingClass",void 0),Yl=Wl([pe("qbo-validate"),Xl("design:paramtypes",[])],Yl);var ts=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},es=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let os=class extends Ae{constructor(){super(...arguments),this.loading=!1,this.target=null,this.values=[],this.targetElement=null,this.selector="*[data-badge]"}async connectedCallback(){this.targetElement=null!=this.target?this.closest(this.target):this,null!=this.targetElement?(this.targetElement.addEventListener("qbo-updated",this.getIds.bind(this)),super.connectedCallback()):console.error(`Could not find target element ${this.target}`)}disconnectedCallback(){this.targetElement?.removeEventListener("qbo-updated",this.getIds)}getPayload(t){(super.getPayload(t)??{}).idList=this.values.join(",")}getIds(){if(console.log("reacting to target qbo-updated"),null==this.targetElement)return;const t=[];this.targetElement.querySelectorAll(this.selector).forEach((e=>{const o=e.getAttribute("data-badge");null!==o&&t.push(o)})),this.values=t}async fetchData(t,e){super.fetchData(t,e)}render(){this.targetElement.querySelectorAll(this.selector).forEach((t=>{t.innerHTML=t.getAttribute("data-badge")??""}))}};ts([ue({type:Boolean}),es("design:type",Object)],os.prototype,"loading",void 0),ts([ue(),es("design:type",Object)],os.prototype,"target",void 0),ts([ue(),es("design:type",Array)],os.prototype,"values",void 0),ts([ue(),es("design:type",Object)],os.prototype,"selector",void 0),os=ts([pe("qbo-badge")],os);var rs=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ns=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let is=class extends ce{constructor(){super(...arguments),this.apiEndpoint="qbo",this.colFourClass="qbo-col-4",this.colSixClass="qbo-col-6",this.colThreeClass="qbo-col-3",this.colTwelveClass="qbo-col-12",this.contactId=null,this.contactLabel="Contact",this.contactName="Contact",this.disabled=!0,this.divSectionHeaderClass="qbo-header",this.formControlSmallClass="qbo-sm",this.formLabelSmallClass="qbo-sm",this.formSelectSmallClass="qbo-sm",this.renderInHost=!0,this.jsonData={}}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}async connectedCallback(){super.connectedCallback();const t=O.container.isRegistered(this.apiEndpoint)?O.container.resolve(this.apiEndpoint):new D(this.apiEndpoint);this.jsonData=await t.fetch(`contact/summary/${this.contactId}`)}render(){return null==this.jsonData||null==this.jsonData.Root||null==this.jsonData.Root.ContactItem&&null!=this.contactId?Wt`<p>Loading...</p>`:Wt`<slot>
205
205
  <div class="${this.colSixClass}">
206
206
  <label for="${this.contactName}" class="${this.formLabelSmallClass}">${this.contactLabel}</label>
207
207
  <qbo-contact-name class="${this.formControlSmallClass}" name="${this.contactName}" .data="${this.jsonData.Root.ContactItem}"></qbo-contact-name>
@@ -278,19 +278,19 @@ var t={630:(t,e,o)=>{var r;!function(t){!function(){var e="object"==typeof globa
278
278
  </div>
279
279
  <div class="${this.colThreeClass}">
280
280
  <label for="BirthDate" class="${this.formLabelSmallClass}">Birth Date</label>
281
- <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="BirthDate" value="${Ql(this.jsonData.Root.ContactItem?.BirthDate)}"/>
281
+ <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="BirthDate" value="${Jl(this.jsonData.Root.ContactItem?.BirthDate)}"/>
282
282
  </div>
283
283
  <div class="${this.colThreeClass}">
284
284
  <label for="DeathDate" class="${this.formLabelSmallClass}">Death Date</label>
285
- <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="DeathDate" value="${Ql(this.jsonData.Root.ContactItem?.DeathDate)}"/>
285
+ <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="DeathDate" value="${Jl(this.jsonData.Root.ContactItem?.DeathDate)}"/>
286
286
  </div>
287
287
  <div class="${this.colThreeClass}">
288
288
  <label for="ValidStart" class="${this.formLabelSmallClass}">Valid Start</label>
289
- <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="ValidStart" value="${Ql(this.jsonData.Root.ContactItem?.ValidStart)}"/>
289
+ <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="ValidStart" value="${Jl(this.jsonData.Root.ContactItem?.ValidStart)}"/>
290
290
  </div>
291
291
  <div class="${this.colThreeClass}">
292
292
  <label for="ValidEnd" class="${this.formLabelSmallClass}">Valid End</label>
293
- <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="ValidEnd" value="${Ql(this.jsonData.Root.ContactItem?.ValidEnd)}"/>
293
+ <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="ValidEnd" value="${Jl(this.jsonData.Root.ContactItem?.ValidEnd)}"/>
294
294
  </div>
295
295
  <div class="${this.colSixClass}">
296
296
  <label for="VerifiedSource" class="${this.formLabelSmallClass}">Verified Source</label>
@@ -298,7 +298,7 @@ var t={630:(t,e,o)=>{var r;!function(t){!function(){var e="object"==typeof globa
298
298
  </div>
299
299
  <div class="${this.colThreeClass}">
300
300
  <label for="VerifiedDate" class="${this.formLabelSmallClass}">Verified Date</label>
301
- <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="VerifiedDate" value="${Ql(this.jsonData.Root.ContactItem?.VerifiedDate)}"/>
301
+ <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="VerifiedDate" value="${Jl(this.jsonData.Root.ContactItem?.VerifiedDate)}"/>
302
302
  </div>
303
303
  <div class="${this.colThreeClass}">
304
304
  <label for="VerifiedConfidence" class="${this.formLabelSmallClass}">Verified Confidence</label>
@@ -313,15 +313,15 @@ var t={630:(t,e,o)=>{var r;!function(t){!function(){var e="object"==typeof globa
313
313
  </div>
314
314
  <div class="${this.colThreeClass}">
315
315
  <label for="SCRAStatusAsOf" class="${this.formLabelSmallClass}">SCRA Status As Of</label>
316
- <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAStatusAsOf" value="${Ql(this.jsonData.Root.ContactItem?.SCRAStatusAsOf)}"/>
316
+ <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAStatusAsOf" value="${Jl(this.jsonData.Root.ContactItem?.SCRAStatusAsOf)}"/>
317
317
  </div>
318
318
  <div class="${this.colThreeClass}">
319
319
  <label for="SCRAStartDate" class="${this.formLabelSmallClass}">SCRA Start Date</label>
320
- <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAStartDate" value="${Ql(this.jsonData.Root.ContactItem?.SCRAStartDate)}"/>
320
+ <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAStartDate" value="${Jl(this.jsonData.Root.ContactItem?.SCRAStartDate)}"/>
321
321
  </div>
322
322
  <div class="${this.colThreeClass}">
323
323
  <label for="SCRADischargeDate" class="${this.formLabelSmallClass}">SCRA Discharge Date</label>
324
- <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRADischargeDate" value="${Ql(this.jsonData.Root.ContactItem?.SCRADischargeDate)}"/>
324
+ <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRADischargeDate" value="${Jl(this.jsonData.Root.ContactItem?.SCRADischargeDate)}"/>
325
325
  </div>
326
326
  <div class="${this.colThreeClass}">
327
327
  <label for="SCRAVerified" class="${this.formLabelSmallClass}">SCRA Verified</label>
@@ -329,7 +329,7 @@ var t={630:(t,e,o)=>{var r;!function(t){!function(){var e="object"==typeof globa
329
329
  </div>
330
330
  <div class="${this.colThreeClass}">
331
331
  <label for="SCRAVerifiedDate" class="${this.formLabelSmallClass}">SCRA Verified Date</label>
332
- <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAVerifiedDate" value="${Ql(this.jsonData.Root.ContactItem?.SCRAVerifiedDate)}"/>
332
+ <input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAVerifiedDate" value="${Jl(this.jsonData.Root.ContactItem?.SCRAVerifiedDate)}"/>
333
333
  </div>
334
334
  <div class="${this.colThreeClass}">
335
335
  <label for="SCRASource" class="${this.formLabelSmallClass}">SCRA Source</label>
@@ -340,7 +340,7 @@ var t={630:(t,e,o)=>{var r;!function(t){!function(){var e="object"==typeof globa
340
340
  <input type="number" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAID" value="${this.jsonData.Root.ContactItem?.SCRAID}"/>
341
341
  </div>
342
342
  <qbo-form-edit .data="${this.jsonData.Root.ContactItem}"></qbo-form-edit>
343
- </slot>`}};os([ue({type:String}),rs("design:type",Object)],ns.prototype,"apiEndpoint",void 0),os([ue({type:String}),rs("design:type",Object)],ns.prototype,"colFourClass",void 0),os([ue({type:String}),rs("design:type",Object)],ns.prototype,"colSixClass",void 0),os([ue({type:String}),rs("design:type",Object)],ns.prototype,"colThreeClass",void 0),os([ue({type:String}),rs("design:type",Object)],ns.prototype,"colTwelveClass",void 0),os([ue({type:String}),rs("design:type",Object)],ns.prototype,"contactId",void 0),os([ue({type:String}),rs("design:type",Object)],ns.prototype,"contactLabel",void 0),os([ue({type:String}),rs("design:type",Object)],ns.prototype,"contactName",void 0),os([ue({type:Boolean}),rs("design:type",Object)],ns.prototype,"disabled",void 0),os([ue({type:String}),rs("design:type",Object)],ns.prototype,"divSectionHeaderClass",void 0),os([ue({type:String}),rs("design:type",Object)],ns.prototype,"formControlSmallClass",void 0),os([ue({type:String}),rs("design:type",Object)],ns.prototype,"formLabelSmallClass",void 0),os([ue({type:String}),rs("design:type",Object)],ns.prototype,"formSelectSmallClass",void 0),os([ue({type:Boolean}),rs("design:type",Object)],ns.prototype,"renderInHost",void 0),os([ue({type:Object}),rs("design:type",Object)],ns.prototype,"jsonData",void 0),ns=os([pe("qbo-contact")],ns);var is=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},as=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};const bs=new Map;bs.set("defaultLayout",(t=>Wt`<div slot="content" class="${t.slotClass}">
343
+ </slot>`}};rs([ue({type:String}),ns("design:type",Object)],is.prototype,"apiEndpoint",void 0),rs([ue({type:String}),ns("design:type",Object)],is.prototype,"colFourClass",void 0),rs([ue({type:String}),ns("design:type",Object)],is.prototype,"colSixClass",void 0),rs([ue({type:String}),ns("design:type",Object)],is.prototype,"colThreeClass",void 0),rs([ue({type:String}),ns("design:type",Object)],is.prototype,"colTwelveClass",void 0),rs([ue({type:String}),ns("design:type",Object)],is.prototype,"contactId",void 0),rs([ue({type:String}),ns("design:type",Object)],is.prototype,"contactLabel",void 0),rs([ue({type:String}),ns("design:type",Object)],is.prototype,"contactName",void 0),rs([ue({type:Boolean}),ns("design:type",Object)],is.prototype,"disabled",void 0),rs([ue({type:String}),ns("design:type",Object)],is.prototype,"divSectionHeaderClass",void 0),rs([ue({type:String}),ns("design:type",Object)],is.prototype,"formControlSmallClass",void 0),rs([ue({type:String}),ns("design:type",Object)],is.prototype,"formLabelSmallClass",void 0),rs([ue({type:String}),ns("design:type",Object)],is.prototype,"formSelectSmallClass",void 0),rs([ue({type:Boolean}),ns("design:type",Object)],is.prototype,"renderInHost",void 0),rs([ue({type:Object}),ns("design:type",Object)],is.prototype,"jsonData",void 0),is=rs([pe("qbo-contact")],is);var as=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},bs=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};const ls=new Map;ls.set("defaultLayout",(t=>Wt`<div slot="content" class="${t.slotClass}">
344
344
  <input type="text" ?disabled=${t.disabled} class="${t.getAttribute("class")}" name="${t.getAttribute("name")}" value="${t.data?.Contact}"/>
345
345
  <qbo-popup>
346
346
  <div slot="button">
@@ -368,7 +368,7 @@ var t={630:(t,e,o)=>{var r;!function(t){!function(){var e="object"==typeof globa
368
368
  </div>
369
369
  </div>
370
370
  </qbo-popup>
371
- </div>`));let ls=class extends Fe{constructor(){super(...arguments),this.buttonClass="qbo-secondary",this.disabled=!0,this.elementClass="qbo-sm",this.elementStackedTopClass="qbo-sm-top",this.icon="qbo-icon-person-lines-fill",this.modalBodyDivClass="qbo-modal-body",this.modalContentDivClass="qbo-modal-content",this.modalDivClass="qbo-modal",this.modalDialogDivClass="qbo-modal-dialog",this.modalFooterDivClass="qbo-modal-footer",this.modalHeaderDivClass="qbo-modal-header",this.modalHeaderText="Contact Name",this.slotClass="qbo-input-group",this.spanClass="qbo-input-group-text qbo-pointer",this.type="defaultLayout",this.renderInHost=!0}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}render(){return Wt`<slot>${bs.has(this.type)?bs.get(this.type)(this):null}</slot>`}};is([ue({type:String}),as("design:type",Object)],ls.prototype,"buttonClass",void 0),is([ue({type:Boolean}),as("design:type",Object)],ls.prototype,"disabled",void 0),is([ue({type:String}),as("design:type",Object)],ls.prototype,"elementClass",void 0),is([ue({type:String}),as("design:type",Object)],ls.prototype,"elementStackedTopClass",void 0),is([ue({type:String}),as("design:type",Object)],ls.prototype,"icon",void 0),is([ue({type:String}),as("design:type",Object)],ls.prototype,"modalBodyDivClass",void 0),is([ue({type:String}),as("design:type",Object)],ls.prototype,"modalContentDivClass",void 0),is([ue({type:String}),as("design:type",Object)],ls.prototype,"modalDivClass",void 0),is([ue({type:String}),as("design:type",Object)],ls.prototype,"modalDialogDivClass",void 0),is([ue({type:String}),as("design:type",Object)],ls.prototype,"modalFooterDivClass",void 0),is([ue({type:String}),as("design:type",Object)],ls.prototype,"modalHeaderDivClass",void 0),is([ue({type:String}),as("design:type",Object)],ls.prototype,"modalHeaderText",void 0),is([ue({type:String}),as("design:type",Object)],ls.prototype,"slotClass",void 0),is([ue({type:String}),as("design:type",Object)],ls.prototype,"spanClass",void 0),is([ue(),as("design:type",Object)],ls.prototype,"type",void 0),is([ue({type:Boolean}),as("design:type",Object)],ls.prototype,"renderInHost",void 0),ls=is([pe("qbo-contact-name")],ls);var ss=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ds=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let cs=class extends ce{constructor(){super(...arguments),this.ariaExpanded="false",this.ariaLabel="Toggle menu",this.buttonType="button",this.collapseToggle="collapse",this.dblClickClass="qbo-doubleclick",this.dropdownId="qboMainMenu",this.dropdownToggle="dropdown",this.iconClass="qbo-icon",this.liLinkToggleClass="qbo-dropdown",this.liLinkClass="qbo-nav-item",this.liAMenuClass="qbo-dropdown-item",this.navClass="qbo-mainmenu",this.popoverContainer="body",this.popoverHtml="false",this.popoverPlacement="bottom",this.popoverToggle="popover",this.popoverTrigger="hover",this.spanMenuClass="qbo-submenuexpand",this.spanMenuValue=">",this.ulMainMenuToggleClass="qbo-dropdown-mainmenu",this.ulSubMenuClass="submenu",this.ulSubMenuToggleClass="dropdown-menu",this.apiEndpoint="qbo",this.renderInHost=!0,this.jsonData={},this.targetElement=null,this.handleResize=()=>{window.innerWidth<992?this.renderRoot.querySelectorAll("button").forEach((function(t){null!=t&&t instanceof HTMLElement&&t.hasAttribute("aria-expanded")&&"true"==t.getAttribute("aria-expanded")&&t.click()})):this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass} .${this.ulSubMenuClass}`).forEach((function(t){null!=t&&t instanceof HTMLElement&&t.hasAttribute("style")&&t.removeAttribute("style")}))}}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}async connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize);const t=O.container.isRegistered(this.apiEndpoint)?O.container.resolve(this.apiEndpoint):new D(this.apiEndpoint);this.jsonData=await t.fetch("theme/mainmenu")}disconnectedCallback(){window.removeEventListener("resize",this.handleResize),super.disconnectedCallback()}updated(t){if(super.updated(t),null!=t.get("jsonData")){this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass}`).forEach((t=>{t.addEventListener("click",(function(t){t.stopPropagation()}))}));const t=this.ulSubMenuClass;this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass} a`).forEach((function(e){e.addEventListener("click",(e=>{if(null!=e.currentTarget&&e.currentTarget instanceof HTMLElement&&window.innerWidth<992){const o=e.currentTarget.nextElementSibling;null!=o&&o instanceof HTMLElement&&o.classList.contains(t)&&(e.preventDefault(),o.style.display="block"==o.style.display?"none":"block")}}))})),this.renderRoot.querySelectorAll(`[data-bs-toggle="${this.popoverToggle}"]`).forEach((function(t){new hb(t)}))}}renderImage(t){return null!=t?Wt`<img src="${t}"/><span/>`:Wt``}renderMenu(t,e,o){let r=Wt``;const n=null!=t&&null!=t.Menu?t.Menu:t;return null!=n&&(n.forEach?n.forEach((t=>{r=null!=t.Menu?Wt`${r}${this.renderMenuDropdown(t,o)}`:"Divider"==t.Type?Wt`${r}${this.renderMenuDivider()}`:e?Wt`${r}${this.renderMenuDropdownLink(t.URL,t.Text,t.Icon)}`:Wt`${r}${this.renderMenuLink(t)}`})):r=null!=n.Menu?Wt`${r}${this.renderMenuDropdown(n,o)}`:"Divider"==n.Type?Wt`${r}${this.renderMenuDivider()}`:e?Wt`${r}${this.renderMenuDropdownLink(n.URL,n.Text,n.Icon)}`:Wt`${r}${this.renderMenuLink(n)}`),Wt`${r}`}renderMenuDivider(){return Wt`<li><hr/></li>`}renderMenuDropdown(t,e){const o=null!=t.Icon&&""!=t.Icon?Wt`<i class="${t.Icon} ${this.iconClass}" />`:"";return e?Wt`<li>
371
+ </div>`));let ss=class extends Fe{constructor(){super(...arguments),this.buttonClass="qbo-secondary",this.disabled=!0,this.elementClass="qbo-sm",this.elementStackedTopClass="qbo-sm-top",this.icon="qbo-icon-person-lines-fill",this.modalBodyDivClass="qbo-modal-body",this.modalContentDivClass="qbo-modal-content",this.modalDivClass="qbo-modal",this.modalDialogDivClass="qbo-modal-dialog",this.modalFooterDivClass="qbo-modal-footer",this.modalHeaderDivClass="qbo-modal-header",this.modalHeaderText="Contact Name",this.slotClass="qbo-input-group",this.spanClass="qbo-input-group-text qbo-pointer",this.type="defaultLayout",this.renderInHost=!0}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}render(){return Wt`<slot>${ls.has(this.type)?ls.get(this.type)(this):null}</slot>`}};as([ue({type:String}),bs("design:type",Object)],ss.prototype,"buttonClass",void 0),as([ue({type:Boolean}),bs("design:type",Object)],ss.prototype,"disabled",void 0),as([ue({type:String}),bs("design:type",Object)],ss.prototype,"elementClass",void 0),as([ue({type:String}),bs("design:type",Object)],ss.prototype,"elementStackedTopClass",void 0),as([ue({type:String}),bs("design:type",Object)],ss.prototype,"icon",void 0),as([ue({type:String}),bs("design:type",Object)],ss.prototype,"modalBodyDivClass",void 0),as([ue({type:String}),bs("design:type",Object)],ss.prototype,"modalContentDivClass",void 0),as([ue({type:String}),bs("design:type",Object)],ss.prototype,"modalDivClass",void 0),as([ue({type:String}),bs("design:type",Object)],ss.prototype,"modalDialogDivClass",void 0),as([ue({type:String}),bs("design:type",Object)],ss.prototype,"modalFooterDivClass",void 0),as([ue({type:String}),bs("design:type",Object)],ss.prototype,"modalHeaderDivClass",void 0),as([ue({type:String}),bs("design:type",Object)],ss.prototype,"modalHeaderText",void 0),as([ue({type:String}),bs("design:type",Object)],ss.prototype,"slotClass",void 0),as([ue({type:String}),bs("design:type",Object)],ss.prototype,"spanClass",void 0),as([ue(),bs("design:type",Object)],ss.prototype,"type",void 0),as([ue({type:Boolean}),bs("design:type",Object)],ss.prototype,"renderInHost",void 0),ss=as([pe("qbo-contact-name")],ss);var ds=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},cs=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let fs=class extends ce{constructor(){super(...arguments),this.ariaExpanded="false",this.ariaLabel="Toggle menu",this.buttonType="button",this.collapseToggle="collapse",this.dblClickClass="qbo-doubleclick",this.dropdownId="qboMainMenu",this.dropdownToggle="dropdown",this.iconClass="qbo-icon",this.liLinkToggleClass="qbo-dropdown",this.liLinkClass="qbo-nav-item",this.liAMenuClass="qbo-dropdown-item",this.navClass="qbo-mainmenu",this.popoverContainer="body",this.popoverHtml="false",this.popoverPlacement="bottom",this.popoverToggle="popover",this.popoverTrigger="hover",this.spanMenuClass="qbo-submenuexpand",this.spanMenuValue=">",this.ulMainMenuToggleClass="qbo-dropdown-mainmenu",this.ulSubMenuClass="submenu",this.ulSubMenuToggleClass="dropdown-menu",this.apiEndpoint="qbo",this.renderInHost=!0,this.jsonData={},this.targetElement=null,this.handleResize=()=>{window.innerWidth<992?this.renderRoot.querySelectorAll("button").forEach((function(t){null!=t&&t instanceof HTMLElement&&t.hasAttribute("aria-expanded")&&"true"==t.getAttribute("aria-expanded")&&t.click()})):this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass} .${this.ulSubMenuClass}`).forEach((function(t){null!=t&&t instanceof HTMLElement&&t.hasAttribute("style")&&t.removeAttribute("style")}))}}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}async connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize);const t=O.container.isRegistered(this.apiEndpoint)?O.container.resolve(this.apiEndpoint):new D(this.apiEndpoint);this.jsonData=await t.fetch("theme/mainmenu")}disconnectedCallback(){window.removeEventListener("resize",this.handleResize),super.disconnectedCallback()}updated(t){if(super.updated(t),null!=t.get("jsonData")){this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass}`).forEach((t=>{t.addEventListener("click",(function(t){t.stopPropagation()}))}));const t=this.ulSubMenuClass;this.renderRoot.querySelectorAll(`.${this.ulSubMenuToggleClass} a`).forEach((function(e){e.addEventListener("click",(e=>{if(null!=e.currentTarget&&e.currentTarget instanceof HTMLElement&&window.innerWidth<992){const o=e.currentTarget.nextElementSibling;null!=o&&o instanceof HTMLElement&&o.classList.contains(t)&&(e.preventDefault(),o.style.display="block"==o.style.display?"none":"block")}}))})),this.renderRoot.querySelectorAll(`[data-bs-toggle="${this.popoverToggle}"]`).forEach((function(t){new hb(t)}))}}renderImage(t){return null!=t?Wt`<img src="${t}"/><span/>`:Wt``}renderMenu(t,e,o){let r=Wt``;const n=null!=t&&null!=t.Menu?t.Menu:t;return null!=n&&(n.forEach?n.forEach((t=>{r=null!=t.Menu?Wt`${r}${this.renderMenuDropdown(t,o)}`:"Divider"==t.Type?Wt`${r}${this.renderMenuDivider()}`:e?Wt`${r}${this.renderMenuDropdownLink(t.URL,t.Text,t.Icon)}`:Wt`${r}${this.renderMenuLink(t)}`})):r=null!=n.Menu?Wt`${r}${this.renderMenuDropdown(n,o)}`:"Divider"==n.Type?Wt`${r}${this.renderMenuDivider()}`:e?Wt`${r}${this.renderMenuDropdownLink(n.URL,n.Text,n.Icon)}`:Wt`${r}${this.renderMenuLink(n)}`),Wt`${r}`}renderMenuDivider(){return Wt`<li><hr/></li>`}renderMenuDropdown(t,e){const o=null!=t.Icon&&""!=t.Icon?Wt`<i class="${t.Icon} ${this.iconClass}" />`:"";return e?Wt`<li>
372
372
  <a class="${this.liAMenuClass}" href="${t.URL}">
373
373
  ${o}<span>${t.Text}</span>
374
374
  <span class="${this.spanMenuClass}">${this.spanMenuValue}</span>
@@ -407,8 +407,8 @@ var t={630:(t,e,o)=>{var r;!function(t){!function(){var e="object"==typeof globa
407
407
  </ul>
408
408
  </div>
409
409
  </div>
410
- </nav>`:Wt``}};ss([ue({type:String}),ds("design:type",Object)],cs.prototype,"ariaExpanded",void 0),ss([ue({type:String}),ds("design:type",Object)],cs.prototype,"ariaLabel",void 0),ss([ue({type:String}),ds("design:type",Object)],cs.prototype,"buttonType",void 0),ss([ue({type:String}),ds("design:type",Object)],cs.prototype,"collapseToggle",void 0),ss([ue({type:String}),ds("design:type",Object)],cs.prototype,"dblClickClass",void 0),ss([ue({type:String}),ds("design:type",Object)],cs.prototype,"dropdownId",void 0),ss([ue({type:String}),ds("design:type",Object)],cs.prototype,"dropdownToggle",void 0),ss([ue({type:String}),ds("design:type",Object)],cs.prototype,"iconClass",void 0),ss([ue({type:String}),ds("design:type",Object)],cs.prototype,"liLinkToggleClass",void 0),ss([ue({type:String}),ds("design:type",Object)],cs.prototype,"liLinkClass",void 0),ss([ue({type:String}),ds("design:type",Object)],cs.prototype,"liAMenuClass",void 0),ss([ue({type:String}),ds("design:type",Object)],cs.prototype,"navClass",void 0),ss([ue({type:String}),ds("design:type",Object)],cs.prototype,"popoverContainer",void 0),ss([ue({type:String}),ds("design:type",Object)],cs.prototype,"popoverHtml",void 0),ss([ue({type:String}),ds("design:type",Object)],cs.prototype,"popoverPlacement",void 0),ss([ue({type:String}),ds("design:type",Object)],cs.prototype,"popoverToggle",void 0),ss([ue({type:String}),ds("design:type",Object)],cs.prototype,"popoverTrigger",void 0),ss([ue({type:String}),ds("design:type",Object)],cs.prototype,"spanMenuClass",void 0),ss([ue({type:String}),ds("design:type",Object)],cs.prototype,"spanMenuValue",void 0),ss([ue({type:String}),ds("design:type",Object)],cs.prototype,"ulMainMenuToggleClass",void 0),ss([ue({type:String}),ds("design:type",Object)],cs.prototype,"ulSubMenuClass",void 0),ss([ue({type:String}),ds("design:type",Object)],cs.prototype,"ulSubMenuToggleClass",void 0),ss([ue({type:String}),ds("design:type",Object)],cs.prototype,"apiEndpoint",void 0),ss([ue({type:Boolean}),ds("design:type",Object)],cs.prototype,"renderInHost",void 0),ss([ue({type:Object}),ds("design:type",Object)],cs.prototype,"jsonData",void 0),cs=ss([pe("qbo-mainmenu")],cs);var fs=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ps=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let ms=class extends ce{constructor(){super(...arguments),this.collapseAttribute="aria-expanded",this.collapseSelector='[data-qbo-toggle="collapse"]',this.menuCollapsed="false",this.menuExpanded="true",this.menuShow="qbo-show"}updated(t){const e=this;e.querySelectorAll(`${this.collapseSelector}`).forEach((function(t){t.addEventListener("click",(o=>{const r=t.nextElementSibling;t.getAttribute(e.collapseAttribute)==e.menuCollapsed?(r instanceof HTMLElement&&r.classList.add(e.menuShow),t.setAttribute(e.collapseAttribute,e.menuExpanded)):(r instanceof HTMLElement&&r.classList.remove(e.menuShow),t.setAttribute(e.collapseAttribute,e.menuCollapsed))}))}))}render(){return Wt`<slot></slot>`}};fs([ue({type:String}),ps("design:type",Object)],ms.prototype,"collapseAttribute",void 0),fs([ue({type:String}),ps("design:type",Object)],ms.prototype,"collapseSelector",void 0),fs([ue({type:String}),ps("design:type",Object)],ms.prototype,"menuCollapsed",void 0),fs([ue({type:String}),ps("design:type",Object)],ms.prototype,"menuExpanded",void 0),fs([ue({type:String}),ps("design:type",Object)],ms.prototype,"menuShow",void 0),ms=fs([pe("qbo-sidebar")],ms);var gs=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},us=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};const vs=new Map;vs.set("defaultLayout",(t=>Wt`<div slot="content" class="${t.slotClass}">
410
+ </nav>`:Wt``}};ds([ue({type:String}),cs("design:type",Object)],fs.prototype,"ariaExpanded",void 0),ds([ue({type:String}),cs("design:type",Object)],fs.prototype,"ariaLabel",void 0),ds([ue({type:String}),cs("design:type",Object)],fs.prototype,"buttonType",void 0),ds([ue({type:String}),cs("design:type",Object)],fs.prototype,"collapseToggle",void 0),ds([ue({type:String}),cs("design:type",Object)],fs.prototype,"dblClickClass",void 0),ds([ue({type:String}),cs("design:type",Object)],fs.prototype,"dropdownId",void 0),ds([ue({type:String}),cs("design:type",Object)],fs.prototype,"dropdownToggle",void 0),ds([ue({type:String}),cs("design:type",Object)],fs.prototype,"iconClass",void 0),ds([ue({type:String}),cs("design:type",Object)],fs.prototype,"liLinkToggleClass",void 0),ds([ue({type:String}),cs("design:type",Object)],fs.prototype,"liLinkClass",void 0),ds([ue({type:String}),cs("design:type",Object)],fs.prototype,"liAMenuClass",void 0),ds([ue({type:String}),cs("design:type",Object)],fs.prototype,"navClass",void 0),ds([ue({type:String}),cs("design:type",Object)],fs.prototype,"popoverContainer",void 0),ds([ue({type:String}),cs("design:type",Object)],fs.prototype,"popoverHtml",void 0),ds([ue({type:String}),cs("design:type",Object)],fs.prototype,"popoverPlacement",void 0),ds([ue({type:String}),cs("design:type",Object)],fs.prototype,"popoverToggle",void 0),ds([ue({type:String}),cs("design:type",Object)],fs.prototype,"popoverTrigger",void 0),ds([ue({type:String}),cs("design:type",Object)],fs.prototype,"spanMenuClass",void 0),ds([ue({type:String}),cs("design:type",Object)],fs.prototype,"spanMenuValue",void 0),ds([ue({type:String}),cs("design:type",Object)],fs.prototype,"ulMainMenuToggleClass",void 0),ds([ue({type:String}),cs("design:type",Object)],fs.prototype,"ulSubMenuClass",void 0),ds([ue({type:String}),cs("design:type",Object)],fs.prototype,"ulSubMenuToggleClass",void 0),ds([ue({type:String}),cs("design:type",Object)],fs.prototype,"apiEndpoint",void 0),ds([ue({type:Boolean}),cs("design:type",Object)],fs.prototype,"renderInHost",void 0),ds([ue({type:Object}),cs("design:type",Object)],fs.prototype,"jsonData",void 0),fs=ds([pe("qbo-mainmenu")],fs);var ps=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ms=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let gs=class extends ce{constructor(){super(...arguments),this.collapseAttribute="aria-expanded",this.collapseSelector='[data-qbo-toggle="collapse"]',this.menuCollapsed="false",this.menuExpanded="true",this.menuShow="qbo-show"}updated(t){const e=this;e.querySelectorAll(`${this.collapseSelector}`).forEach((function(t){t.addEventListener("click",(o=>{const r=t.nextElementSibling;t.getAttribute(e.collapseAttribute)==e.menuCollapsed?(r instanceof HTMLElement&&r.classList.add(e.menuShow),t.setAttribute(e.collapseAttribute,e.menuExpanded)):(r instanceof HTMLElement&&r.classList.remove(e.menuShow),t.setAttribute(e.collapseAttribute,e.menuCollapsed))}))}))}render(){return Wt`<slot></slot>`}};ps([ue({type:String}),ms("design:type",Object)],gs.prototype,"collapseAttribute",void 0),ps([ue({type:String}),ms("design:type",Object)],gs.prototype,"collapseSelector",void 0),ps([ue({type:String}),ms("design:type",Object)],gs.prototype,"menuCollapsed",void 0),ps([ue({type:String}),ms("design:type",Object)],gs.prototype,"menuExpanded",void 0),ps([ue({type:String}),ms("design:type",Object)],gs.prototype,"menuShow",void 0),gs=ps([pe("qbo-sidebar")],gs);var us=function(t,e,o,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var b=t.length-1;b>=0;b--)(n=t[b])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},vs=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};const hs=new Map;hs.set("defaultLayout",(t=>Wt`<div slot="content" class="${t.slotClass}">
411
411
  <input type="text" ?disabled=${t.disabled} class="${t.inputClass}" name="${t.inputName}" value="${t.data?.USSSN}"/>
412
412
  <span @click="${t.toggleSSN}" class="${t.spanClass}" title="${t.titleShowText}"><i class="${t.imageClassShow}"></i></span>
413
- </div>`));let hs=class extends Fe{constructor(){super(...arguments),this.apiEndpoint="qbo",this.disabled=!0,this.editMode=!1,this.event="click",this.imageClassShow="qbo-icon-eye",this.imageClassHide="qbo-icon-eye-slash",this.inputClass="qbo-sm",this.inputName="USSSN",this.selectorImage="i",this.selectorInput="input",this.selectorSpan="span",this.show=!1,this.slotClass="qbo-input-group",this.spanClass="qbo-input-group-text qbo-pointer",this.titleMaskText="Mask",this.titleShowText="Show",this.type="defaultLayout",this.url="contact/UnmaskSSN",this.renderInHost=!0}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}async toggleSSN(){if(this.show=!this.show,this.show){const t=O.container.isRegistered(this.apiEndpoint)?O.container.resolve(this.apiEndpoint):new D(this.apiEndpoint),e=await t.fetch(`${this.url}`,{ID:`${this.data?.ContactID}`});this.renderRoot.querySelectorAll(`${this.selectorInput}`).forEach((t=>{if(t instanceof HTMLInputElement&&e?.ContactCollection?.length>0&&null!=e.ContactCollection[0].USSSN&&9==e.ContactCollection[0].USSSN.length){const o=e.ContactCollection[0].USSSN;t.value=`${o.substring(0,3)}-${o.substring(3,5)}-${o.substring(5,9)}`,this.editMode&&(t.disabled=!1),this.renderRoot.querySelectorAll(`${this.selectorSpan}`).forEach((t=>{t.setAttribute("title",`${this.titleMaskText}`)})),this.renderRoot.querySelectorAll(`${this.selectorImage}`).forEach((t=>{t.className=`${this.imageClassHide}`}))}else this.show=!this.show}))}else this.renderRoot.querySelectorAll(`${this.selectorInput}`).forEach((t=>{t instanceof HTMLInputElement&&(t.value=`${this.data?.USSSN}`,this.editMode&&(t.disabled=!0)),this.renderRoot.querySelectorAll(`${this.selectorSpan}`).forEach((t=>{t.setAttribute("title",`${this.titleShowText}`)})),this.renderRoot.querySelectorAll(`${this.selectorImage}`).forEach((t=>{t.className=`${this.imageClassShow}`}))}))}render(){return Wt`<slot>${vs.has(this.type)?vs.get(this.type)(this):null}</slot>`}};gs([ue({type:String}),us("design:type",Object)],hs.prototype,"apiEndpoint",void 0),gs([ue({type:Boolean}),us("design:type",Object)],hs.prototype,"disabled",void 0),gs([ue({type:Boolean}),us("design:type",Object)],hs.prototype,"editMode",void 0),gs([ue({type:String}),us("design:type",Object)],hs.prototype,"event",void 0),gs([ue({type:String}),us("design:type",Object)],hs.prototype,"imageClassShow",void 0),gs([ue({type:String}),us("design:type",Object)],hs.prototype,"imageClassHide",void 0),gs([ue({type:String}),us("design:type",Object)],hs.prototype,"inputClass",void 0),gs([ue({type:String}),us("design:type",Object)],hs.prototype,"inputName",void 0),gs([ue({type:String}),us("design:type",Object)],hs.prototype,"selectorImage",void 0),gs([ue({type:String}),us("design:type",Object)],hs.prototype,"selectorInput",void 0),gs([ue({type:String}),us("design:type",Object)],hs.prototype,"selectorSpan",void 0),gs([ue({type:Boolean}),us("design:type",Object)],hs.prototype,"show",void 0),gs([ue({type:String}),us("design:type",Object)],hs.prototype,"slotClass",void 0),gs([ue({type:String}),us("design:type",Object)],hs.prototype,"spanClass",void 0),gs([ue({type:String}),us("design:type",Object)],hs.prototype,"titleMaskText",void 0),gs([ue({type:String}),us("design:type",Object)],hs.prototype,"titleShowText",void 0),gs([ue(),us("design:type",Object)],hs.prototype,"type",void 0),gs([ue({type:String}),us("design:type",Object)],hs.prototype,"url",void 0),gs([ue({type:Boolean}),us("design:type",Object)],hs.prototype,"renderInHost",void 0),hs=gs([pe("qbo-ssn")],hs);var xs=r.tz,ws=r.O2,ys=r.m$,qs=r.Il,ks=r.P7,_s=r.Dg,zs=r.ho,js=r.OU,Ss=r.Kt,Cs=r.$4,$s=r.kq,As=r.hg,Os=r.EC,Es=r.ZF,Rs=r.dm,Ts=r.No,Ms=r.SD,Ls=r.RK,Ds=r.R$,Is=r.T4,Ps=r.$T,Hs=r.bA,Bs=r.U6,Ns=r.OK,Vs=r.hX,Fs=r.V9,Gs=r.FX,Us=r.bB,Ws=r.j_,Xs=r.PK,Ys=r.lS,Ks=r.N6,Qs=r.Cv,Js=r.vn,Zs=r.zZ,td=r.k$,ed=r.xC,od=r.G8,rd=r.bj,nd=r.Nw,id=r.Tt,ad=r.Ng,bd=r.Ty,ld=r.f_,sd=r.Qg,dd=r.BL,cd=r.BV,fd=r.bX,pd=r.Yq,md=r.c7,gd=r._e,ud=r.Tj,vd=r.cK,hd=r.B_,xd=r.I6,wd=r.aA,yd=r.$p,qd=r.$7,kd=r.V2;export{xs as ContextMenu,ws as Dependency,ys as DependencyValidator,qs as DependencyValidatorOptions,ks as DependencyValidatorOptionsToken,_s as EmailValidator,zs as ExistsValidator,js as IApiServiceToken,Ss as Mode,Cs as QboApiElement,$s as QboBadge,As as QboContact,Os as QboContactName,Es as QboDataList,Rs as QboDocViewer,Ts as QboFetch,Ms as QboFetchMixin,Ls as QboFormEdit,Ds as QboFormElement,Is as QboIcon,Ps as QboMainMenu,Hs as QboMicrophone,Bs as QboPaginate,Ns as QboPopover,Vs as QboPopup,Fs as QboPopupListener,Gs as QboResize,Us as QboSSN,Ws as QboSelect,Xs as QboSelectable,Ys as QboSideBar,Ks as QboTable,Qs as QboUserPreferences,Js as QboValidate,Zs as ResizeType,td as RestApiService,ed as Services,od as ValidateToken,rd as ZipCodeValidator,nd as bootstrap,id as bootstrapicons,ad as elementClearValue,bd as elementData,ld as elementDate,sd as elementDateTime,dd as elementOptions,cd as elementResetValue,fd as elementSelectorAll,pd as formatDate,md as getApiService,gd as getArray,ud as getUserPreference,vd as matches,hd as qboui,xd as registerRestApi,wd as replicate,yd as services,qd as setUserPreference,kd as substitute};
413
+ </div>`));let xs=class extends Fe{constructor(){super(...arguments),this.apiEndpoint="qbo",this.disabled=!0,this.editMode=!1,this.event="click",this.imageClassShow="qbo-icon-eye",this.imageClassHide="qbo-icon-eye-slash",this.inputClass="qbo-sm",this.inputName="USSSN",this.selectorImage="i",this.selectorInput="input",this.selectorSpan="span",this.show=!1,this.slotClass="qbo-input-group",this.spanClass="qbo-input-group-text qbo-pointer",this.titleMaskText="Mask",this.titleShowText="Show",this.type="defaultLayout",this.url="contact/UnmaskSSN",this.renderInHost=!0}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}async toggleSSN(){if(this.show=!this.show,this.show){const t=O.container.isRegistered(this.apiEndpoint)?O.container.resolve(this.apiEndpoint):new D(this.apiEndpoint),e=await t.fetch(`${this.url}`,{ID:`${this.data?.ContactID}`});this.renderRoot.querySelectorAll(`${this.selectorInput}`).forEach((t=>{if(t instanceof HTMLInputElement&&e?.ContactCollection?.length>0&&null!=e.ContactCollection[0].USSSN&&9==e.ContactCollection[0].USSSN.length){const o=e.ContactCollection[0].USSSN;t.value=`${o.substring(0,3)}-${o.substring(3,5)}-${o.substring(5,9)}`,this.editMode&&(t.disabled=!1),this.renderRoot.querySelectorAll(`${this.selectorSpan}`).forEach((t=>{t.setAttribute("title",`${this.titleMaskText}`)})),this.renderRoot.querySelectorAll(`${this.selectorImage}`).forEach((t=>{t.className=`${this.imageClassHide}`}))}else this.show=!this.show}))}else this.renderRoot.querySelectorAll(`${this.selectorInput}`).forEach((t=>{t instanceof HTMLInputElement&&(t.value=`${this.data?.USSSN}`,this.editMode&&(t.disabled=!0)),this.renderRoot.querySelectorAll(`${this.selectorSpan}`).forEach((t=>{t.setAttribute("title",`${this.titleShowText}`)})),this.renderRoot.querySelectorAll(`${this.selectorImage}`).forEach((t=>{t.className=`${this.imageClassShow}`}))}))}render(){return Wt`<slot>${hs.has(this.type)?hs.get(this.type)(this):null}</slot>`}};us([ue({type:String}),vs("design:type",Object)],xs.prototype,"apiEndpoint",void 0),us([ue({type:Boolean}),vs("design:type",Object)],xs.prototype,"disabled",void 0),us([ue({type:Boolean}),vs("design:type",Object)],xs.prototype,"editMode",void 0),us([ue({type:String}),vs("design:type",Object)],xs.prototype,"event",void 0),us([ue({type:String}),vs("design:type",Object)],xs.prototype,"imageClassShow",void 0),us([ue({type:String}),vs("design:type",Object)],xs.prototype,"imageClassHide",void 0),us([ue({type:String}),vs("design:type",Object)],xs.prototype,"inputClass",void 0),us([ue({type:String}),vs("design:type",Object)],xs.prototype,"inputName",void 0),us([ue({type:String}),vs("design:type",Object)],xs.prototype,"selectorImage",void 0),us([ue({type:String}),vs("design:type",Object)],xs.prototype,"selectorInput",void 0),us([ue({type:String}),vs("design:type",Object)],xs.prototype,"selectorSpan",void 0),us([ue({type:Boolean}),vs("design:type",Object)],xs.prototype,"show",void 0),us([ue({type:String}),vs("design:type",Object)],xs.prototype,"slotClass",void 0),us([ue({type:String}),vs("design:type",Object)],xs.prototype,"spanClass",void 0),us([ue({type:String}),vs("design:type",Object)],xs.prototype,"titleMaskText",void 0),us([ue({type:String}),vs("design:type",Object)],xs.prototype,"titleShowText",void 0),us([ue(),vs("design:type",Object)],xs.prototype,"type",void 0),us([ue({type:String}),vs("design:type",Object)],xs.prototype,"url",void 0),us([ue({type:Boolean}),vs("design:type",Object)],xs.prototype,"renderInHost",void 0),xs=us([pe("qbo-ssn")],xs);var ws=r.tz,ys=r.O2,qs=r.m$,ks=r.Il,_s=r.P7,zs=r.Dg,js=r.ho,Ss=r.OU,Cs=r.Kt,$s=r.$4,As=r.kq,Os=r.hg,Es=r.EC,Rs=r.ZF,Ts=r.dm,Ms=r.No,Ls=r.SD,Ds=r.RK,Is=r.R$,Ps=r.T4,Hs=r.$T,Bs=r.bA,Ns=r.U6,Vs=r.OK,Fs=r.hX,Gs=r.V9,Us=r.FX,Ws=r.bB,Xs=r.j_,Ys=r.PK,Ks=r.lS,Qs=r.N6,Js=r.Cv,Zs=r.vn,td=r.zZ,ed=r.k$,od=r.xC,rd=r.G8,nd=r.bj,id=r.Nw,ad=r.Tt,bd=r.Ng,ld=r.Ty,sd=r.f_,dd=r.Qg,cd=r.BL,fd=r.BV,pd=r.bX,md=r.Yq,gd=r.c7,ud=r._e,vd=r.Tj,hd=r.fj,xd=r.cK,wd=r.B_,yd=r.I6,qd=r.aA,kd=r.$p,_d=r.$7,zd=r.V2;export{ws as ContextMenu,ys as Dependency,qs as DependencyValidator,ks as DependencyValidatorOptions,_s as DependencyValidatorOptionsToken,zs as EmailValidator,js as ExistsValidator,Ss as IApiServiceToken,Cs as Mode,$s as QboApiElement,As as QboBadge,Os as QboContact,Es as QboContactName,Rs as QboDataList,Ts as QboDocViewer,Ms as QboFetch,Ls as QboFetchMixin,Ds as QboFormEdit,Is as QboFormElement,Ps as QboIcon,Hs as QboMainMenu,Bs as QboMicrophone,Ns as QboPaginate,Vs as QboPopover,Fs as QboPopup,Gs as QboPopupListener,Us as QboResize,Ws as QboSSN,Xs as QboSelect,Ys as QboSelectable,Ks as QboSideBar,Qs as QboTable,Js as QboUserPreferences,Zs as QboValidate,td as ResizeType,ed as RestApiService,od as Services,rd as ValidateToken,nd as ZipCodeValidator,id as bootstrap,ad as bootstrapicons,bd as elementClearValue,ld as elementData,sd as elementDate,dd as elementDateTime,cd as elementOptions,fd as elementResetValue,pd as elementSelectorAll,md as formatDate,gd as getApiService,ud as getArray,vd as getUserPreference,hd as join,xd as matches,wd as qboui,yd as registerRestApi,qd as replicate,kd as services,_d as setUserPreference,zd as substitute};
414
414
  //# sourceMappingURL=ui-bridge.min.js.map