@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.
- package/package.json +1 -1
- package/wwwroot/js/esm/ui-bridge.js +13 -4
- package/wwwroot/js/esm/ui-bridge.min.js +20 -20
- package/wwwroot/js/esm/ui-bridge.min.js.map +1 -1
- package/wwwroot/js/qbo4.ui-bridge.js +11 -3
- package/wwwroot/js/qbo4.ui-bridge.min.js +20 -20
- package/wwwroot/js/qbo4.ui-bridge.min.js.map +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! For license information please see qbo4.ui-bridge.min.js.LICENSE.txt */
|
|
2
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.qbo4=e():(t.qbo4=t.qbo4||{},t.qbo4["qbo4.ui-bridge"]=e())}(self,(()=>(()=>{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}();return 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,r)},e.prototype.values=function(){return new o(this._keys,this._values,n)},e.prototype.entries=function(){return new o(this._keys,this._values,a)},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}();function r(t,e){return t}function n(t,e){return e}function a(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;return{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}}(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"symbol"==typeof 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={};return(()=>{"use strict";o.r(r),o.d(r,{ContextMenu:()=>_e,Dependency:()=>N,DependencyValidator:()=>W,DependencyValidatorOptions:()=>V,DependencyValidatorOptionsToken:()=>F,EmailValidator:()=>H,ExistsValidator:()=>B,IApiServiceToken:()=>A,Mode:()=>Ol,QboApiElement:()=>he,QboBadge:()=>Zl,QboContact:()=>os,QboContactName:()=>as,QboDataList:()=>Oe,QboDocViewer:()=>Te,QboFetch:()=>Ce,QboFetchMixin:()=>Se,QboFormEdit:()=>Ie,QboFormElement:()=>Ne,QboIcon:()=>Ue,QboMainMenu:()=>ss,QboMicrophone:()=>Qe,QboPaginate:()=>Ze,QboPopover:()=>ml,QboPopup:()=>wl,QboPopupListener:()=>kl,QboResize:()=>Sl,QboSSN:()=>us,QboSelect:()=>Al,QboSelectable:()=>Tl,QboSideBar:()=>fs,QboTable:()=>Dl,QboUserPreferences:()=>Hl,QboValidate:()=>Ul,ResizeType:()=>_l,RestApiService:()=>M,Services:()=>C,ValidateToken:()=>O,ZipCodeValidator:()=>P,bootstrap:()=>xe,bootstrapicons:()=>we,elementClearValue:()=>K,elementData:()=>Xl,elementDate:()=>Yl,elementDateTime:()=>Ql,elementOptions:()=>X,elementResetValue:()=>Q,elementSelectorAll:()=>Y,formatDate:()=>Vl,getApiService:()=>D,getArray:()=>E,getUserPreference:()=>Nl,matches:()=>Wl,qboui:()=>ye,registerRestApi:()=>L,replicate:()=>T,services:()=>$,setUserPreference:()=>Bl,substitute:()=>R});var t,e={};o.r(e),o.d(e,{afterMain:()=>wo,afterRead:()=>vo,afterWrite:()=>ko,applyStyles:()=>Ao,arrow:()=>Qo,auto:()=>no,basePlacements:()=>io,beforeMain:()=>ho,beforeRead:()=>go,beforeWrite:()=>yo,bottom:()=>eo,clippingParents:()=>lo,computeStyles:()=>tr,createPopper:()=>$r,createPopperBase:()=>Cr,createPopperLite:()=>Ar,detectOverflow:()=>gr,end:()=>bo,eventListeners:()=>or,flip:()=>ur,hide:()=>xr,left:()=>ro,main:()=>xo,modifierPhases:()=>_o,offset:()=>wr,placements:()=>mo,popper:()=>co,popperGenerator:()=>Sr,popperOffsets:()=>yr,preventOverflow:()=>qr,read:()=>uo,reference:()=>fo,right:()=>oo,start:()=>ao,top:()=>to,variationPlacements:()=>po,viewport:()=>so,write:()=>qo}),o(630),function(t){t[t.Transient=0]="Transient",t[t.Singleton=1]="Singleton",t[t.ResolutionScoped=2]="ResolutionScoped",t[t.ContainerScoped=3]="ContainerScoped"}(t||(t={}));const n=t;var i=function(t,e){return i=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])},i(t,e)};function a(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}function b(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 l(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 s(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(l(arguments[e]));return t}function d(t){return!!t.useClass}function c(t){return!!t.useFactory}var f=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,s(e))}})),e},t}();function p(t){return"string"==typeof t||"symbol"==typeof t}function m(t){return"object"==typeof t&&"token"in t&&"transform"in t}function g(t){return!!t.useToken}function u(t){return null!=t.useValue}const v=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}(),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e}(v),x=function(){this.scopedResolutions=new Map};var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e}(v),y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e}(v);const q=function(){this.preResolution=new w,this.postResolution=new y};var k=new Map,_=function(){function t(t){this.parent=t,this._registry=new h,this.interceptors=new q,this.disposed=!1,this.disposables=new Set}return t.prototype.register=function(t,e,o){var r;if(void 0===o&&(o={lifecycle:n.Transient}),this.ensureNotDisposed(),r=function(t){return d(t)||u(t)||g(t)||c(t)}(e)?e:{useClass:e},g(r))for(var i=[t],a=r;null!=a;){var b=a.useToken;if(i.includes(b))throw new Error("Token registration cycle detected! "+s(i,[b]).join(" -> "));i.push(b);var l=this._registry.get(b);a=l&&g(l.provider)?l.provider:null}if((o.lifecycle===n.Singleton||o.lifecycle==n.ContainerScoped||o.lifecycle==n.ResolutionScoped)&&(u(r)||c(r)))throw new Error('Cannot use lifecycle "'+n[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(),p(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(),p(t)){if(p(e))return this.register(t,{useToken:e},{lifecycle:n.Singleton});if(e)return this.register(t,{useClass:e},{lifecycle:n.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var o=t;return e&&!p(e)&&(o=e),this.register(t,{useClass:o},{lifecycle:n.Singleton})},t.prototype.resolve=function(t,e){void 0===e&&(e=new x),this.ensureNotDisposed();var o=this.getRegistration(t);if(!o&&p(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 f}(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=b(this.interceptors.preResolution.getAll(t)),a=i.next();!a.done;a=i.next()){var l=a.value;"Once"!=l.options.frequency&&n.push(l),l.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=b(this.interceptors.postResolution.getAll(t)),l=a.next();!l.done;l=a.next()){var s=l.value;"Once"!=s.options.frequency&&i.push(s),s.callback(t,e,o)}}catch(t){r={error:t}}finally{try{l&&!l.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===n.ResolutionScoped&&e.scopedResolutions.has(t))return e.scopedResolutions.get(t);var o,r=t.options.lifecycle===n.Singleton,i=t.options.lifecycle===n.ContainerScoped,a=r||i;return o=u(t.provider)?t.provider.useValue:g(t.provider)?a?t.instance||(t.instance=this.resolve(t.provider.useToken,e)):this.resolve(t.provider.useToken,e):d(t.provider)?a?t.instance||(t.instance=this.construct(t.provider.useClass,e)):this.construct(t.provider.useClass,e):c(t.provider)?t.provider.useFactory(this):this.construct(t.provider,e),t.options.lifecycle===n.ResolutionScoped&&e.scopedResolutions.set(t,o),o},t.prototype.resolveAll=function(t,e){var o=this;void 0===e&&(e=new x),this.ensureNotDisposed();var r=this.getAllRegistrations(t);if(!r&&p(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=b(this._registry.entries()),r=o.next();!r.done;r=o.next()){var n=l(r.value,2),i=n[0],a=n[1];this._registry.setAll(i,a.filter((function(t){return!u(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 i=b(this._registry.entries()),a=i.next();!a.done;a=i.next()){var s=l(a.value,2),d=s[0],c=s[1];c.some((function(t){return t.options.lifecycle===n.ContainerScoped}))&&r._registry.setAll(d,c.map((function(t){return t.options.lifecycle===n.ContainerScoped?{provider:t.provider,options:t.options}:t})))}}catch(t){e={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}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 f)return t.createProxy((function(t){return o.resolve(t,e)}));var r,n=function(){var r=k.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,s([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,d;try{return"object"==typeof(d=r)&&"token"in d&&"multiple"in d?m(r)?r.multiple?(i=o.resolve(r.transform)).transform.apply(i,s([o.resolveAll(r.token)],r.transformArgs)):(a=o.resolve(r.transform)).transform.apply(a,s([o.resolve(r.token,t)],r.transformArgs)):r.multiple?o.resolveAll(r.token):o.resolve(r.token,t):m(r)?(b=o.resolve(r.transform,t)).transform.apply(b,s([o.resolve(r.token,t)],r.transformArgs)):o.resolve(r,t)}catch(t){throw new Error(function(t,e,o){var r,n,i=l(t.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1];return function(t,e,o){return void 0===o&&(o=" "),s([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}(),z=new _,j="injectionTokens";const S=function(){return function(t){k.set(t,function(t){var e=Reflect.getMetadata("design:paramtypes",t)||[],o=Reflect.getOwnMetadata(j,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 C{constructor(t,e){this.container=t,this.options=e}getService(t){return this.container.resolve(t)}}const $=window?.qbo4?.services||new C(z.createChildContainer(),{});"undefined"!=typeof window&&(window.qbo4=window.qbo4||{},window.qbo4.services=window.qbo4.services||new C(z.createChildContainer(),{}),window.qbo4.services);const A="ApiServiceToken",O="ValidateToken";function E(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=E(r,e);if(t)return t}}return null}function R(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 T(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=R(n.firstElementChild?.innerHTML??"",o)),t.appendChild(n)}))}}class M{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=R(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 M(this.apiEndpoint,this.headers,this.method);return e.relativePath=t??"",e}}function L(t,e,o={"Content-Type":"application/json"},r){$.container.registerInstance(t,new M(e,o,r))}function D(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=$.container.isRegistered(o)?$.container.resolve(o):new M(t);return r?n.clone(r):n}$.container.registerInstance("default",new M(document.querySelector("base[href]")?.getAttribute("href")||window.location.origin));var I=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 P=class{constructor(){this.message="Zip code is invalid",this.selector=".zipcode"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};P=I([S()],P),$.container.register(O,{useClass:P});let H=class{constructor(){this.message="Email is invalid",this.selector=".email"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};H=I([S()],H),$.container.register(O,{useClass:H});let B=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=$.container.isRegistered(e)?$.container.resolve(e):new M(e);if(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement){const e=E(await r.fetch(o,{value:t.value}));return null!=e&&e.length>0}return!1}};B=I([S()],B),$.container.register(O,{useClass:B});class N{constructor(){this.operator="=",this.value=null}}class V{constructor(){this.evaluators=[],this.depends="",this.condition="or",this.emptyOnDisable=!1,this.resetOnDisable=!0,this.disabledClass="disabled",this.disableChildren=!0}}const F="DependencyValidatorOptions",G=new Map([["!=",(t,e)=>!Wl(t.value,e)],[">=",(t,e)=>t.value>=e],["<=",(t,e)=>t.value<=e],["=",(t,e)=>Wl(t.value,e)],[">",(t,e)=>t.value>e],["<",(t,e)=>t.value<e]]),U=Array.from(G.keys());let W=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=Y(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=>Q(t))):e.emptyOnDisable&&r.forEach((t=>K(t)))),Promise.resolve(o)}getOptions(t){let e=this.optionsCache.get(t);if(!e){try{e=Object.assign({},this.options,X(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=U.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:()=>G.get(e)(n,r):n instanceof HTMLSelectElement?()=>G.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 X(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 Y(t,e){const o=Array.from(t.querySelectorAll(e));return t.matches(e)&&o.unshift(t),o}function Q(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 K(t){t instanceof HTMLInputElement?"checkbox"===t.type||"radio"===t.type?t.checked=!1:t.value="":t instanceof HTMLSelectElement&&(t.options.selectedIndex=0)}var J,Z,tt,et;W=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}([S(),(J=1,tt=F,et=tt,Z=function(t,e,o){var r=Reflect.getOwnMetadata(j,t)||{};r[o]=et,Reflect.defineMetadata(j,r,t)},function(t,e){Z(t,e,J)}),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[HTMLFormElement,V])],W),$.container.register(F,{useValue:new V}),$.container.register(O,{useClass:W});const ot=globalThis,rt=ot.ShadowRoot&&(void 0===ot.ShadyCSS||ot.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nt=Symbol(),it=new WeakMap;class at{constructor(t,e,o){if(this._$cssResult$=!0,o!==nt)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(rt&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=it.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&it.set(e,t))}return t}toString(){return this.cssText}}const bt=(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 at(o,t,nt)},lt=(t,e)=>{if(rt)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=ot.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}},st=rt?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return(t=>new at("string"==typeof t?t:t+"",void 0,nt))(e)})(t):t,{is:dt,defineProperty:ct,getOwnPropertyDescriptor:ft,getOwnPropertyNames:pt,getOwnPropertySymbols:mt,getPrototypeOf:gt}=Object,ut=globalThis,vt=ut.trustedTypes,ht=vt?vt.emptyScript:"",xt=ut.reactiveElementPolyfillSupport,wt=(t,e)=>t,yt={toAttribute(t,e){switch(e){case Boolean:t=t?ht: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}},qt=(t,e)=>!dt(t,e),kt={attribute:!0,type:String,converter:yt,reflect:!1,hasChanged:qt};Symbol.metadata??=Symbol("metadata"),ut.litPropertyMetadata??=new WeakMap;class _t 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=kt){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&&ct(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:n}=ft(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)??kt}static _$Ei(){if(this.hasOwnProperty(wt("elementProperties")))return;const t=gt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(wt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(wt("properties"))){const t=this.properties,e=[...pt(t),...mt(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(st(t))}else void 0!==t&&e.push(st(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 lt(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:yt).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:yt;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??qt)(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){}}_t.elementStyles=[],_t.shadowRootOptions={mode:"open"},_t[wt("elementProperties")]=new Map,_t[wt("finalized")]=new Map,xt?.({ReactiveElement:_t}),(ut.reactiveElementVersions??=[]).push("2.0.4");const zt=globalThis,jt=zt.trustedTypes,St=jt?jt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ct="$lit$",$t=`lit$${Math.random().toFixed(9).slice(2)}$`,At="?"+$t,Ot=`<${At}>`,Et=document,Rt=()=>Et.createComment(""),Tt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Mt=Array.isArray,Lt="[ \t\n\f\r]",Dt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,It=/-->/g,Pt=/>/g,Ht=RegExp(`>|${Lt}(?:([^\\s"'>=/]+)(${Lt}*=${Lt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Bt=/'/g,Nt=/"/g,Vt=/^(?:script|style|textarea|title)$/i,Ft=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Gt=Ft(1),Ut=Ft(2),Wt=(Ft(3),Symbol.for("lit-noChange")),Xt=Symbol.for("lit-nothing"),Yt=new WeakMap,Qt=Et.createTreeWalker(Et,129);function Kt(t,e){if(!Mt(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==St?St.createHTML(e):e}const Jt=(t,e)=>{const o=t.length-1,r=[];let n,i=2===e?"<svg>":3===e?"<math>":"",a=Dt;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===Dt?"!--"===l[1]?a=It:void 0!==l[1]?a=Pt:void 0!==l[2]?(Vt.test(l[2])&&(n=RegExp("</"+l[2],"g")),a=Ht):void 0!==l[3]&&(a=Ht):a===Ht?">"===l[0]?(a=n??Dt,s=-1):void 0===l[1]?s=-2:(s=a.lastIndex-l[2].length,b=l[1],a=void 0===l[3]?Ht:'"'===l[3]?Nt:Bt):a===Nt||a===Bt?a=Ht:a===It||a===Pt?a=Dt:(a=Ht,n=void 0);const c=a===Ht&&t[e+1].startsWith("/>")?" ":"";i+=a===Dt?o+Ot:s>=0?(r.push(b),o.slice(0,s)+Ct+o.slice(s)+$t+c):o+$t+(-2===s?e:c)}return[Kt(t,i+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]};class Zt{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]=Jt(t,e);if(this.el=Zt.createElement(l,o),Qt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=Qt.nextNode())&&b.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(Ct)){const e=s[i++],o=r.getAttribute(t).split($t),a=/([.?@])?(.*)/.exec(e);b.push({type:1,index:n,name:a[2],strings:o,ctor:"."===a[1]?ne:"?"===a[1]?ie:"@"===a[1]?ae:re}),r.removeAttribute(t)}else t.startsWith($t)&&(b.push({type:6,index:n}),r.removeAttribute(t));if(Vt.test(r.tagName)){const t=r.textContent.split($t),e=t.length-1;if(e>0){r.textContent=jt?jt.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],Rt()),Qt.nextNode(),b.push({type:2,index:++n});r.append(t[e],Rt())}}}else if(8===r.nodeType)if(r.data===At)b.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf($t,t+1));)b.push({type:7,index:n}),t+=$t.length-1}n++}}static createElement(t,e){const o=Et.createElement("template");return o.innerHTML=t,o}}function te(t,e,o=t,r){if(e===Wt)return e;let n=void 0!==r?o._$Co?.[r]:o._$Cl;const i=Tt(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=te(t,n._$AS(t,e.values),n,r)),e}class ee{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??Et).importNode(e,!0);Qt.currentNode=r;let n=Qt.nextNode(),i=0,a=0,b=o[0];for(;void 0!==b;){if(i===b.index){let e;2===b.type?e=new oe(n,n.nextSibling,this,t):1===b.type?e=new b.ctor(n,b.name,b.strings,this,t):6===b.type&&(e=new be(n,this,t)),this._$AV.push(e),b=o[++a]}i!==b?.index&&(n=Qt.nextNode(),i++)}return Qt.currentNode=Et,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 oe{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=Xt,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=te(this,t,e),Tt(t)?t===Xt||null==t||""===t?(this._$AH!==Xt&&this._$AR(),this._$AH=Xt):t!==this._$AH&&t!==Wt&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>Mt(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!==Xt&&Tt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Et.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=Zt.createElement(Kt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new ee(r,this),o=t.u(this.options);t.p(e),this.T(o),this._$AH=t}}_$AC(t){let e=Yt.get(t.strings);return void 0===e&&Yt.set(t.strings,e=new Zt(t)),e}k(t){Mt(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 oe(this.O(Rt()),this.O(Rt()),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 re{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,n){this.type=1,this._$AH=Xt,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=Xt}_$AI(t,e=this,o,r){const n=this.strings;let i=!1;if(void 0===n)t=te(this,t,e,0),i=!Tt(t)||t!==this._$AH&&t!==Wt,i&&(this._$AH=t);else{const r=t;let a,b;for(t=n[0],a=0;a<n.length-1;a++)b=te(this,r[o+a],e,a),b===Wt&&(b=this._$AH[a]),i||=!Tt(b)||b!==this._$AH[a],b===Xt?t=Xt:t!==Xt&&(t+=(b??"")+n[a+1]),this._$AH[a]=b}i&&!r&&this.j(t)}j(t){t===Xt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ne extends re{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Xt?void 0:t}}class ie extends re{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Xt)}}class ae extends re{constructor(t,e,o,r,n){super(t,e,o,r,n),this.type=5}_$AI(t,e=this){if((t=te(this,t,e,0)??Xt)===Wt)return;const o=this._$AH,r=t===Xt&&o!==Xt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==Xt&&(o===Xt||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 be{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){te(this,t)}}const le=zt.litHtmlPolyfillSupport;le?.(Zt,oe),(zt.litHtmlVersions??=[]).push("3.2.1");class se extends _t{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 oe(e.insertBefore(Rt(),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 Wt}}se._$litElement$=!0,se.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:se});const de=globalThis.litElementPolyfillSupport;de?.({LitElement:se}),(globalThis.litElementVersions??=[]).push("4.1.1");const ce=t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},fe={attribute:!0,type:String,converter:yt,reflect:!1,hasChanged:qt},pe=(t=fe,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 me(t){return(e,o)=>"object"==typeof o?pe(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 ge(t){return me({...t,state:!0,attribute:!1})}var ue=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},ve=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let he=class extends se{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),L(this.name,this.apiEndpoint,t,this.method)}render(){return Gt``}};ue([me({type:String}),ve("design:type",Object)],he.prototype,"name",void 0),ue([me({type:String}),ve("design:type",Object)],he.prototype,"apiEndpoint",void 0),ue([me(),ve("design:type",Object)],he.prototype,"method",void 0),he=ue([ce("qbo-api")],he);const xe=bt`
|
|
2
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.qbo4=e():(t.qbo4=t.qbo4||{},t.qbo4["qbo4.ui-bridge"]=e())}(self,(()=>(()=>{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}();return 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,r)},e.prototype.values=function(){return new o(this._keys,this._values,n)},e.prototype.entries=function(){return new o(this._keys,this._values,a)},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}();function r(t,e){return t}function n(t,e){return e}function a(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;return{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}}(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"symbol"==typeof 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={};return(()=>{"use strict";o.r(r),o.d(r,{ContextMenu:()=>_e,Dependency:()=>N,DependencyValidator:()=>W,DependencyValidatorOptions:()=>V,DependencyValidatorOptionsToken:()=>F,EmailValidator:()=>H,ExistsValidator:()=>B,IApiServiceToken:()=>A,Mode:()=>Ol,QboApiElement:()=>he,QboBadge:()=>ts,QboContact:()=>rs,QboContactName:()=>bs,QboDataList:()=>Oe,QboDocViewer:()=>Te,QboFetch:()=>Ce,QboFetchMixin:()=>Se,QboFormEdit:()=>Ie,QboFormElement:()=>Ne,QboIcon:()=>Ue,QboMainMenu:()=>ds,QboMicrophone:()=>Qe,QboPaginate:()=>Ze,QboPopover:()=>ml,QboPopup:()=>wl,QboPopupListener:()=>kl,QboResize:()=>Sl,QboSSN:()=>vs,QboSelect:()=>Al,QboSelectable:()=>Tl,QboSideBar:()=>ps,QboTable:()=>Dl,QboUserPreferences:()=>Hl,QboValidate:()=>Wl,ResizeType:()=>_l,RestApiService:()=>M,Services:()=>C,ValidateToken:()=>O,ZipCodeValidator:()=>P,bootstrap:()=>xe,bootstrapicons:()=>we,elementClearValue:()=>K,elementData:()=>Yl,elementDate:()=>Ql,elementDateTime:()=>Kl,elementOptions:()=>X,elementResetValue:()=>Q,elementSelectorAll:()=>Y,formatDate:()=>Fl,getApiService:()=>D,getArray:()=>E,getUserPreference:()=>Nl,join:()=>Vl,matches:()=>Xl,qboui:()=>ye,registerRestApi:()=>L,replicate:()=>T,services:()=>$,setUserPreference:()=>Bl,substitute:()=>R});var t,e={};o.r(e),o.d(e,{afterMain:()=>wo,afterRead:()=>vo,afterWrite:()=>ko,applyStyles:()=>Ao,arrow:()=>Qo,auto:()=>no,basePlacements:()=>io,beforeMain:()=>ho,beforeRead:()=>go,beforeWrite:()=>yo,bottom:()=>eo,clippingParents:()=>lo,computeStyles:()=>tr,createPopper:()=>$r,createPopperBase:()=>Cr,createPopperLite:()=>Ar,detectOverflow:()=>gr,end:()=>bo,eventListeners:()=>or,flip:()=>ur,hide:()=>xr,left:()=>ro,main:()=>xo,modifierPhases:()=>_o,offset:()=>wr,placements:()=>mo,popper:()=>co,popperGenerator:()=>Sr,popperOffsets:()=>yr,preventOverflow:()=>qr,read:()=>uo,reference:()=>fo,right:()=>oo,start:()=>ao,top:()=>to,variationPlacements:()=>po,viewport:()=>so,write:()=>qo}),o(630),function(t){t[t.Transient=0]="Transient",t[t.Singleton=1]="Singleton",t[t.ResolutionScoped=2]="ResolutionScoped",t[t.ContainerScoped=3]="ContainerScoped"}(t||(t={}));const n=t;var i=function(t,e){return i=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])},i(t,e)};function a(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}function b(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 l(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 s(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(l(arguments[e]));return t}function d(t){return!!t.useClass}function c(t){return!!t.useFactory}var f=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,s(e))}})),e},t}();function p(t){return"string"==typeof t||"symbol"==typeof t}function m(t){return"object"==typeof t&&"token"in t&&"transform"in t}function g(t){return!!t.useToken}function u(t){return null!=t.useValue}const v=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}(),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e}(v),x=function(){this.scopedResolutions=new Map};var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e}(v),y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e}(v);const q=function(){this.preResolution=new w,this.postResolution=new y};var k=new Map,_=function(){function t(t){this.parent=t,this._registry=new h,this.interceptors=new q,this.disposed=!1,this.disposables=new Set}return t.prototype.register=function(t,e,o){var r;if(void 0===o&&(o={lifecycle:n.Transient}),this.ensureNotDisposed(),r=function(t){return d(t)||u(t)||g(t)||c(t)}(e)?e:{useClass:e},g(r))for(var i=[t],a=r;null!=a;){var b=a.useToken;if(i.includes(b))throw new Error("Token registration cycle detected! "+s(i,[b]).join(" -> "));i.push(b);var l=this._registry.get(b);a=l&&g(l.provider)?l.provider:null}if((o.lifecycle===n.Singleton||o.lifecycle==n.ContainerScoped||o.lifecycle==n.ResolutionScoped)&&(u(r)||c(r)))throw new Error('Cannot use lifecycle "'+n[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(),p(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(),p(t)){if(p(e))return this.register(t,{useToken:e},{lifecycle:n.Singleton});if(e)return this.register(t,{useClass:e},{lifecycle:n.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var o=t;return e&&!p(e)&&(o=e),this.register(t,{useClass:o},{lifecycle:n.Singleton})},t.prototype.resolve=function(t,e){void 0===e&&(e=new x),this.ensureNotDisposed();var o=this.getRegistration(t);if(!o&&p(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 f}(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=b(this.interceptors.preResolution.getAll(t)),a=i.next();!a.done;a=i.next()){var l=a.value;"Once"!=l.options.frequency&&n.push(l),l.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=b(this.interceptors.postResolution.getAll(t)),l=a.next();!l.done;l=a.next()){var s=l.value;"Once"!=s.options.frequency&&i.push(s),s.callback(t,e,o)}}catch(t){r={error:t}}finally{try{l&&!l.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===n.ResolutionScoped&&e.scopedResolutions.has(t))return e.scopedResolutions.get(t);var o,r=t.options.lifecycle===n.Singleton,i=t.options.lifecycle===n.ContainerScoped,a=r||i;return o=u(t.provider)?t.provider.useValue:g(t.provider)?a?t.instance||(t.instance=this.resolve(t.provider.useToken,e)):this.resolve(t.provider.useToken,e):d(t.provider)?a?t.instance||(t.instance=this.construct(t.provider.useClass,e)):this.construct(t.provider.useClass,e):c(t.provider)?t.provider.useFactory(this):this.construct(t.provider,e),t.options.lifecycle===n.ResolutionScoped&&e.scopedResolutions.set(t,o),o},t.prototype.resolveAll=function(t,e){var o=this;void 0===e&&(e=new x),this.ensureNotDisposed();var r=this.getAllRegistrations(t);if(!r&&p(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=b(this._registry.entries()),r=o.next();!r.done;r=o.next()){var n=l(r.value,2),i=n[0],a=n[1];this._registry.setAll(i,a.filter((function(t){return!u(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 i=b(this._registry.entries()),a=i.next();!a.done;a=i.next()){var s=l(a.value,2),d=s[0],c=s[1];c.some((function(t){return t.options.lifecycle===n.ContainerScoped}))&&r._registry.setAll(d,c.map((function(t){return t.options.lifecycle===n.ContainerScoped?{provider:t.provider,options:t.options}:t})))}}catch(t){e={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}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 f)return t.createProxy((function(t){return o.resolve(t,e)}));var r,n=function(){var r=k.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,s([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,d;try{return"object"==typeof(d=r)&&"token"in d&&"multiple"in d?m(r)?r.multiple?(i=o.resolve(r.transform)).transform.apply(i,s([o.resolveAll(r.token)],r.transformArgs)):(a=o.resolve(r.transform)).transform.apply(a,s([o.resolve(r.token,t)],r.transformArgs)):r.multiple?o.resolveAll(r.token):o.resolve(r.token,t):m(r)?(b=o.resolve(r.transform,t)).transform.apply(b,s([o.resolve(r.token,t)],r.transformArgs)):o.resolve(r,t)}catch(t){throw new Error(function(t,e,o){var r,n,i=l(t.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1];return function(t,e,o){return void 0===o&&(o=" "),s([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}(),z=new _,j="injectionTokens";const S=function(){return function(t){k.set(t,function(t){var e=Reflect.getMetadata("design:paramtypes",t)||[],o=Reflect.getOwnMetadata(j,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 C{constructor(t,e){this.container=t,this.options=e}getService(t){return this.container.resolve(t)}}const $=window?.qbo4?.services||new C(z.createChildContainer(),{});"undefined"!=typeof window&&(window.qbo4=window.qbo4||{},window.qbo4.services=window.qbo4.services||new C(z.createChildContainer(),{}),window.qbo4.services);const A="ApiServiceToken",O="ValidateToken";function E(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=E(r,e);if(t)return t}}return null}function R(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 T(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=R(n.firstElementChild?.innerHTML??"",o)),t.appendChild(n)}))}}class M{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=R(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 M(this.apiEndpoint,this.headers,this.method);return e.relativePath=t??"",e}}function L(t,e,o={"Content-Type":"application/json"},r){$.container.registerInstance(t,new M(e,o,r))}function D(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=$.container.isRegistered(o)?$.container.resolve(o):new M(t);return r?n.clone(r):n}$.container.registerInstance("default",new M(document.querySelector("base[href]")?.getAttribute("href")||window.location.origin));var I=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 P=class{constructor(){this.message="Zip code is invalid",this.selector=".zipcode"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};P=I([S()],P),$.container.register(O,{useClass:P});let H=class{constructor(){this.message="Email is invalid",this.selector=".email"}validate(t){return Promise.resolve(!0)}connect(t){}disconnect(){}};H=I([S()],H),$.container.register(O,{useClass:H});let B=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=$.container.isRegistered(e)?$.container.resolve(e):new M(e);if(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement){const e=E(await r.fetch(o,{value:t.value}));return null!=e&&e.length>0}return!1}};B=I([S()],B),$.container.register(O,{useClass:B});class N{constructor(){this.operator="=",this.value=null}}class V{constructor(){this.evaluators=[],this.depends="",this.condition="or",this.emptyOnDisable=!1,this.resetOnDisable=!0,this.disabledClass="disabled",this.disableChildren=!0}}const F="DependencyValidatorOptions",G=new Map([["!=",(t,e)=>!Xl(t.value,e)],[">=",(t,e)=>t.value>=e],["<=",(t,e)=>t.value<=e],["=",(t,e)=>Xl(t.value,e)],[">",(t,e)=>t.value>e],["<",(t,e)=>t.value<e]]),U=Array.from(G.keys());let W=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=Y(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=>Q(t))):e.emptyOnDisable&&r.forEach((t=>K(t)))),Promise.resolve(o)}getOptions(t){let e=this.optionsCache.get(t);if(!e){try{e=Object.assign({},this.options,X(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=U.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:()=>G.get(e)(n,r):n instanceof HTMLSelectElement?()=>G.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 X(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 Y(t,e){const o=Array.from(t.querySelectorAll(e));return t.matches(e)&&o.unshift(t),o}function Q(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 K(t){t instanceof HTMLInputElement?"checkbox"===t.type||"radio"===t.type?t.checked=!1:t.value="":t instanceof HTMLSelectElement&&(t.options.selectedIndex=0)}var J,Z,tt,et;W=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}([S(),(J=1,tt=F,et=tt,Z=function(t,e,o){var r=Reflect.getOwnMetadata(j,t)||{};r[o]=et,Reflect.defineMetadata(j,r,t)},function(t,e){Z(t,e,J)}),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:paramtypes",[HTMLFormElement,V])],W),$.container.register(F,{useValue:new V}),$.container.register(O,{useClass:W});const ot=globalThis,rt=ot.ShadowRoot&&(void 0===ot.ShadyCSS||ot.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nt=Symbol(),it=new WeakMap;class at{constructor(t,e,o){if(this._$cssResult$=!0,o!==nt)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(rt&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=it.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&it.set(e,t))}return t}toString(){return this.cssText}}const bt=(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 at(o,t,nt)},lt=(t,e)=>{if(rt)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=ot.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}},st=rt?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return(t=>new at("string"==typeof t?t:t+"",void 0,nt))(e)})(t):t,{is:dt,defineProperty:ct,getOwnPropertyDescriptor:ft,getOwnPropertyNames:pt,getOwnPropertySymbols:mt,getPrototypeOf:gt}=Object,ut=globalThis,vt=ut.trustedTypes,ht=vt?vt.emptyScript:"",xt=ut.reactiveElementPolyfillSupport,wt=(t,e)=>t,yt={toAttribute(t,e){switch(e){case Boolean:t=t?ht: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}},qt=(t,e)=>!dt(t,e),kt={attribute:!0,type:String,converter:yt,reflect:!1,hasChanged:qt};Symbol.metadata??=Symbol("metadata"),ut.litPropertyMetadata??=new WeakMap;class _t 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=kt){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&&ct(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:n}=ft(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)??kt}static _$Ei(){if(this.hasOwnProperty(wt("elementProperties")))return;const t=gt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(wt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(wt("properties"))){const t=this.properties,e=[...pt(t),...mt(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(st(t))}else void 0!==t&&e.push(st(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 lt(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:yt).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:yt;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??qt)(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){}}_t.elementStyles=[],_t.shadowRootOptions={mode:"open"},_t[wt("elementProperties")]=new Map,_t[wt("finalized")]=new Map,xt?.({ReactiveElement:_t}),(ut.reactiveElementVersions??=[]).push("2.0.4");const zt=globalThis,jt=zt.trustedTypes,St=jt?jt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ct="$lit$",$t=`lit$${Math.random().toFixed(9).slice(2)}$`,At="?"+$t,Ot=`<${At}>`,Et=document,Rt=()=>Et.createComment(""),Tt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Mt=Array.isArray,Lt="[ \t\n\f\r]",Dt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,It=/-->/g,Pt=/>/g,Ht=RegExp(`>|${Lt}(?:([^\\s"'>=/]+)(${Lt}*=${Lt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Bt=/'/g,Nt=/"/g,Vt=/^(?:script|style|textarea|title)$/i,Ft=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Gt=Ft(1),Ut=Ft(2),Wt=(Ft(3),Symbol.for("lit-noChange")),Xt=Symbol.for("lit-nothing"),Yt=new WeakMap,Qt=Et.createTreeWalker(Et,129);function Kt(t,e){if(!Mt(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==St?St.createHTML(e):e}const Jt=(t,e)=>{const o=t.length-1,r=[];let n,i=2===e?"<svg>":3===e?"<math>":"",a=Dt;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===Dt?"!--"===l[1]?a=It:void 0!==l[1]?a=Pt:void 0!==l[2]?(Vt.test(l[2])&&(n=RegExp("</"+l[2],"g")),a=Ht):void 0!==l[3]&&(a=Ht):a===Ht?">"===l[0]?(a=n??Dt,s=-1):void 0===l[1]?s=-2:(s=a.lastIndex-l[2].length,b=l[1],a=void 0===l[3]?Ht:'"'===l[3]?Nt:Bt):a===Nt||a===Bt?a=Ht:a===It||a===Pt?a=Dt:(a=Ht,n=void 0);const c=a===Ht&&t[e+1].startsWith("/>")?" ":"";i+=a===Dt?o+Ot:s>=0?(r.push(b),o.slice(0,s)+Ct+o.slice(s)+$t+c):o+$t+(-2===s?e:c)}return[Kt(t,i+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]};class Zt{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]=Jt(t,e);if(this.el=Zt.createElement(l,o),Qt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=Qt.nextNode())&&b.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(Ct)){const e=s[i++],o=r.getAttribute(t).split($t),a=/([.?@])?(.*)/.exec(e);b.push({type:1,index:n,name:a[2],strings:o,ctor:"."===a[1]?ne:"?"===a[1]?ie:"@"===a[1]?ae:re}),r.removeAttribute(t)}else t.startsWith($t)&&(b.push({type:6,index:n}),r.removeAttribute(t));if(Vt.test(r.tagName)){const t=r.textContent.split($t),e=t.length-1;if(e>0){r.textContent=jt?jt.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],Rt()),Qt.nextNode(),b.push({type:2,index:++n});r.append(t[e],Rt())}}}else if(8===r.nodeType)if(r.data===At)b.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf($t,t+1));)b.push({type:7,index:n}),t+=$t.length-1}n++}}static createElement(t,e){const o=Et.createElement("template");return o.innerHTML=t,o}}function te(t,e,o=t,r){if(e===Wt)return e;let n=void 0!==r?o._$Co?.[r]:o._$Cl;const i=Tt(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=te(t,n._$AS(t,e.values),n,r)),e}class ee{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??Et).importNode(e,!0);Qt.currentNode=r;let n=Qt.nextNode(),i=0,a=0,b=o[0];for(;void 0!==b;){if(i===b.index){let e;2===b.type?e=new oe(n,n.nextSibling,this,t):1===b.type?e=new b.ctor(n,b.name,b.strings,this,t):6===b.type&&(e=new be(n,this,t)),this._$AV.push(e),b=o[++a]}i!==b?.index&&(n=Qt.nextNode(),i++)}return Qt.currentNode=Et,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 oe{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=Xt,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=te(this,t,e),Tt(t)?t===Xt||null==t||""===t?(this._$AH!==Xt&&this._$AR(),this._$AH=Xt):t!==this._$AH&&t!==Wt&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>Mt(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!==Xt&&Tt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Et.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=Zt.createElement(Kt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new ee(r,this),o=t.u(this.options);t.p(e),this.T(o),this._$AH=t}}_$AC(t){let e=Yt.get(t.strings);return void 0===e&&Yt.set(t.strings,e=new Zt(t)),e}k(t){Mt(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 oe(this.O(Rt()),this.O(Rt()),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 re{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,n){this.type=1,this._$AH=Xt,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=Xt}_$AI(t,e=this,o,r){const n=this.strings;let i=!1;if(void 0===n)t=te(this,t,e,0),i=!Tt(t)||t!==this._$AH&&t!==Wt,i&&(this._$AH=t);else{const r=t;let a,b;for(t=n[0],a=0;a<n.length-1;a++)b=te(this,r[o+a],e,a),b===Wt&&(b=this._$AH[a]),i||=!Tt(b)||b!==this._$AH[a],b===Xt?t=Xt:t!==Xt&&(t+=(b??"")+n[a+1]),this._$AH[a]=b}i&&!r&&this.j(t)}j(t){t===Xt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ne extends re{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Xt?void 0:t}}class ie extends re{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Xt)}}class ae extends re{constructor(t,e,o,r,n){super(t,e,o,r,n),this.type=5}_$AI(t,e=this){if((t=te(this,t,e,0)??Xt)===Wt)return;const o=this._$AH,r=t===Xt&&o!==Xt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==Xt&&(o===Xt||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 be{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){te(this,t)}}const le=zt.litHtmlPolyfillSupport;le?.(Zt,oe),(zt.litHtmlVersions??=[]).push("3.2.1");class se extends _t{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 oe(e.insertBefore(Rt(),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 Wt}}se._$litElement$=!0,se.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:se});const de=globalThis.litElementPolyfillSupport;de?.({LitElement:se}),(globalThis.litElementVersions??=[]).push("4.1.1");const ce=t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},fe={attribute:!0,type:String,converter:yt,reflect:!1,hasChanged:qt},pe=(t=fe,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 me(t){return(e,o)=>"object"==typeof o?pe(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 ge(t){return me({...t,state:!0,attribute:!1})}var ue=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},ve=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let he=class extends se{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),L(this.name,this.apiEndpoint,t,this.method)}render(){return Gt``}};ue([me({type:String}),ve("design:type",Object)],he.prototype,"name",void 0),ue([me({type:String}),ve("design:type",Object)],he.prototype,"apiEndpoint",void 0),ue([me(),ve("design:type",Object)],he.prototype,"method",void 0),he=ue([ce("qbo-api")],he);const xe=bt`
|
|
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 @@
|
|
|
35
35
|
`]}async connectedCallback(){super.connectedCallback()}render(){return Gt`<iframe src='sample.pdf' width='100%' height='800px' frameborder='0'></iframe>`}};Ee([me({type:Boolean}),Re("design:type",Object)],Te.prototype,"open",void 0),Ee([me({type:Boolean}),Re("design:type",Object)],Te.prototype,"loading",void 0),Ee([me({type:Boolean}),Re("design:type",Object)],Te.prototype,"renderInHost",void 0),Te=Ee([ce("qbo-docviewer")],Te);var Me=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},Le=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};const De=new Map;De.set("defaultLayout",(t=>Gt`<div slot="content">
|
|
36
36
|
<span>Created:</span>
|
|
37
37
|
<br/>
|
|
38
|
-
<span>${
|
|
38
|
+
<span>${Kl(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>${
|
|
45
|
+
<span>${Kl(t.UpdatedDate)}</span>
|
|
46
46
|
<br/>
|
|
47
47
|
<span>${t.UpdatedPerson}</span>
|
|
48
48
|
</div>`)),De.set("createdLayout",(t=>Gt`<div slot="content">
|
|
49
49
|
<span>Created:</span>
|
|
50
50
|
<br/>
|
|
51
|
-
<span>${
|
|
51
|
+
<span>${Kl(t.CreatedDate)}</span>
|
|
52
52
|
<br/>
|
|
53
53
|
<span>${t.CreatedPerson}</span>
|
|
54
54
|
</div>`)),De.set("updatedLayout",(t=>Gt`<div slot="content">
|
|
55
55
|
<span>Updated:</span>
|
|
56
56
|
<br/>
|
|
57
|
-
<span>${
|
|
57
|
+
<span>${Kl(t.UpdatedDate)}</span>
|
|
58
58
|
<br/>
|
|
59
59
|
<span>${t.UpdatedPerson}</span>
|
|
60
60
|
</div>`));let Ie=class extends se{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=De.has(this.type)?De.get(this.type)(this.data):null;return Gt`<slot>
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
</div>
|
|
109
109
|
</div>`}renderIcon(t){return null==t.icon&&(console.warn("qbo-icon: icon attribute is required"),t.icon=t.unknown),Ve.has(t.icon)||(console.warn(`qbo-icon: icon attribute is not valid. Valid values are: ${Array.from(Ve.keys()).join(" ")}`),t.icon=t.unknown),Gt`<svg width="${t.width}" height="${t.width}" fill="${t.fill}" ?class=${t.getAttribute("class")} viewBox="${t.viewbox}">${t.backgroundColor?Ut`<rect width="${t.width}" height="${t.height}" fill="${t.backgroundColor}" />`:Ut``}${Ve.get(t.icon)}</svg>`}renderButton(t){return Gt`<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)}}};Fe([me(),Ge("design:type",String)],Ue.prototype,"type",void 0),Fe([me(),Ge("design:type",Object)],Ue.prototype,"icon",void 0),Fe([me(),Ge("design:type",Number)],Ue.prototype,"height",void 0),Fe([me(),Ge("design:type",Number)],Ue.prototype,"width",void 0),Fe([me(),Ge("design:type",String)],Ue.prototype,"viewbox",void 0),Fe([me(),Ge("design:type",String)],Ue.prototype,"fill",void 0),Fe([me(),Ge("design:type",Object)],Ue.prototype,"backgroundColor",void 0),Fe([me(),Ge("design:type",String)],Ue.prototype,"unknown",void 0),Fe([me(),Ge("design:type",Boolean)],Ue.prototype,"disabled",void 0),Fe([me({type:Boolean,reflect:!0}),Ge("design:type",Object)],Ue.prototype,"renderInHost",void 0),Ue=Fe([ce("qbo-icon")],Ue);var We,Xe=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},Ye=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Qe=class extends se{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{We=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,We.activeInstance=this,this.activeClass&&this.classList.add(this.activeClass),console.log("listening"),this._recognition.start()}stop(t){this.listening=!1,We.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 Gt`<slot></slot>`}};Xe([me({type:Boolean}),Ye("design:type",Object)],Qe.prototype,"renderInHost",void 0),Xe([me({type:Boolean}),Ye("design:type",Object)],Qe.prototype,"continuous",void 0),Xe([me({type:Boolean}),Ye("design:type",Object)],Qe.prototype,"interimResults",void 0),Xe([me({type:Number}),Ye("design:type",Object)],Qe.prototype,"maxAlternatives",void 0),Xe([me({type:String}),Ye("design:type",Object)],Qe.prototype,"for",void 0),Xe([me({type:String}),Ye("design:type",Object)],Qe.prototype,"class",void 0),Xe([me({type:String}),Ye("design:type",Object)],Qe.prototype,"activeClass",void 0),Qe=We=Xe([ce("qbo-microphone")],Qe);var 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},Je=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Ze=class extends se{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=[ye,bt``]}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 Gt`<li class="${this.currentPage===t?"active":""}">
|
|
110
110
|
<a @click="${e=>this.goToPage(t)}">${t}</a>
|
|
111
|
-
</li>`}renderSpacer(){return Gt`<li class="disabled"><a>...</a></li>`}renderPageNumbers(){const t=[];let e=this.maxPage>this.pageLimit?this.currentPage-Math.floor(this.pageLimit/2):1;e<
|
|
111
|
+
</li>`}renderSpacer(){return Gt`<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 Gt`<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 Gt`
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
</div>
|
|
202
202
|
</footer>
|
|
203
203
|
</dialog>
|
|
204
|
-
`:Gt``}`}};function Bl(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 Nl(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 Vl(t,e=null){const o=e??Nl("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))}Il([me({type:Object}),Pl("design:type",Object)],Hl.prototype,"preferences",void 0),Il([me(),Pl("design:type",String)],Hl.prototype,"key",void 0),Il([ge(),Pl("design:type",Object)],Hl.prototype,"isEditing",void 0),Hl=Il([ce("qbo-user-preferences"),Pl("design:paramtypes",[])],Hl);var
|
|
204
|
+
`:Gt``}`}};function Bl(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 Nl(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 Vl(t,e=" "){return t.filter(Boolean).join(e)}function Fl(t,e=null){if(null==t||isNaN(new Date(t).getTime()))return null;const o=e??Nl("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))}Il([me({type:Object}),Pl("design:type",Object)],Hl.prototype,"preferences",void 0),Il([me(),Pl("design:type",String)],Hl.prototype,"key",void 0),Il([ge(),Pl("design:type",Object)],Hl.prototype,"isEditing",void 0),Hl=Il([ce("qbo-user-preferences"),Pl("design:paramtypes",[])],Hl);var Gl=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},Ul=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Wl=class extends se{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=$.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(O),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 Gt``}};function Xl(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 Yl(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 Kl(t){return t&&""!=t.trim()?new Date(t).toLocaleString().replace(",",""):""}Gl([me({type:Boolean}),Ul("design:type",Object)],Wl.prototype,"renderInHost",void 0),Gl([me({type:String}),Ul("design:type",Object)],Wl.prototype,"autoComplete",void 0),Gl([me({type:String}),Ul("design:type",Object)],Wl.prototype,"validatedClass",void 0),Gl([me({converter:{fromAttribute:(t,e)=>t?.split(" "),toAttribute:(t,e)=>t.join(" ")}}),Ul("design:type",Object)],Wl.prototype,"workingClass",void 0),Wl=Gl([ce("qbo-validate"),Ul("design:paramtypes",[])],Wl);var Jl=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},Zl=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let ts=class extends Ce{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")??""}))}};Jl([me({type:Boolean}),Zl("design:type",Object)],ts.prototype,"loading",void 0),Jl([me(),Zl("design:type",Object)],ts.prototype,"target",void 0),Jl([me(),Zl("design:type",Array)],ts.prototype,"values",void 0),Jl([me(),Zl("design:type",Object)],ts.prototype,"selector",void 0),ts=Jl([ce("qbo-badge")],ts);var es=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},os=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let rs=class extends se{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=$.container.isRegistered(this.apiEndpoint)?$.container.resolve(this.apiEndpoint):new M(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?Gt`<p>Loading...</p>`:Gt`<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 @@
|
|
|
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="${
|
|
281
|
+
<input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="BirthDate" value="${Ql(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="${
|
|
285
|
+
<input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="DeathDate" value="${Ql(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="${
|
|
289
|
+
<input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="ValidStart" value="${Ql(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="${
|
|
293
|
+
<input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="ValidEnd" value="${Ql(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 @@
|
|
|
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="${
|
|
301
|
+
<input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="VerifiedDate" value="${Ql(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 @@
|
|
|
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="${
|
|
316
|
+
<input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAStatusAsOf" value="${Ql(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="${
|
|
320
|
+
<input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAStartDate" value="${Ql(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="${
|
|
324
|
+
<input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRADischargeDate" value="${Ql(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 @@
|
|
|
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="${
|
|
332
|
+
<input type="date" ?disabled=${this.disabled} class="${this.formControlSmallClass}" name="SCRAVerifiedDate" value="${Ql(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 @@
|
|
|
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>`}};
|
|
343
|
+
</slot>`}};es([me({type:String}),os("design:type",Object)],rs.prototype,"apiEndpoint",void 0),es([me({type:String}),os("design:type",Object)],rs.prototype,"colFourClass",void 0),es([me({type:String}),os("design:type",Object)],rs.prototype,"colSixClass",void 0),es([me({type:String}),os("design:type",Object)],rs.prototype,"colThreeClass",void 0),es([me({type:String}),os("design:type",Object)],rs.prototype,"colTwelveClass",void 0),es([me({type:String}),os("design:type",Object)],rs.prototype,"contactId",void 0),es([me({type:String}),os("design:type",Object)],rs.prototype,"contactLabel",void 0),es([me({type:String}),os("design:type",Object)],rs.prototype,"contactName",void 0),es([me({type:Boolean}),os("design:type",Object)],rs.prototype,"disabled",void 0),es([me({type:String}),os("design:type",Object)],rs.prototype,"divSectionHeaderClass",void 0),es([me({type:String}),os("design:type",Object)],rs.prototype,"formControlSmallClass",void 0),es([me({type:String}),os("design:type",Object)],rs.prototype,"formLabelSmallClass",void 0),es([me({type:String}),os("design:type",Object)],rs.prototype,"formSelectSmallClass",void 0),es([me({type:Boolean}),os("design:type",Object)],rs.prototype,"renderInHost",void 0),es([me({type:Object}),os("design:type",Object)],rs.prototype,"jsonData",void 0),rs=es([ce("qbo-contact")],rs);var ns=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},is=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};const as=new Map;as.set("defaultLayout",(t=>Gt`<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 @@
|
|
|
368
368
|
</div>
|
|
369
369
|
</div>
|
|
370
370
|
</qbo-popup>
|
|
371
|
-
</div>`));let
|
|
371
|
+
</div>`));let bs=class extends Ne{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 Gt`<slot>${as.has(this.type)?as.get(this.type)(this):null}</slot>`}};ns([me({type:String}),is("design:type",Object)],bs.prototype,"buttonClass",void 0),ns([me({type:Boolean}),is("design:type",Object)],bs.prototype,"disabled",void 0),ns([me({type:String}),is("design:type",Object)],bs.prototype,"elementClass",void 0),ns([me({type:String}),is("design:type",Object)],bs.prototype,"elementStackedTopClass",void 0),ns([me({type:String}),is("design:type",Object)],bs.prototype,"icon",void 0),ns([me({type:String}),is("design:type",Object)],bs.prototype,"modalBodyDivClass",void 0),ns([me({type:String}),is("design:type",Object)],bs.prototype,"modalContentDivClass",void 0),ns([me({type:String}),is("design:type",Object)],bs.prototype,"modalDivClass",void 0),ns([me({type:String}),is("design:type",Object)],bs.prototype,"modalDialogDivClass",void 0),ns([me({type:String}),is("design:type",Object)],bs.prototype,"modalFooterDivClass",void 0),ns([me({type:String}),is("design:type",Object)],bs.prototype,"modalHeaderDivClass",void 0),ns([me({type:String}),is("design:type",Object)],bs.prototype,"modalHeaderText",void 0),ns([me({type:String}),is("design:type",Object)],bs.prototype,"slotClass",void 0),ns([me({type:String}),is("design:type",Object)],bs.prototype,"spanClass",void 0),ns([me(),is("design:type",Object)],bs.prototype,"type",void 0),ns([me({type:Boolean}),is("design:type",Object)],bs.prototype,"renderInHost",void 0),bs=ns([ce("qbo-contact-name")],bs);var ls=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},ss=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let ds=class extends se{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=$.container.isRegistered(this.apiEndpoint)?$.container.resolve(this.apiEndpoint):new M(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 ub(t)}))}}renderImage(t){return null!=t?Gt`<img src="${t}"/><span/>`:Gt``}renderMenu(t,e,o){let r=Gt``;const n=null!=t&&null!=t.Menu?t.Menu:t;return null!=n&&(n.forEach?n.forEach((t=>{r=null!=t.Menu?Gt`${r}${this.renderMenuDropdown(t,o)}`:"Divider"==t.Type?Gt`${r}${this.renderMenuDivider()}`:e?Gt`${r}${this.renderMenuDropdownLink(t.URL,t.Text,t.Icon)}`:Gt`${r}${this.renderMenuLink(t)}`})):r=null!=n.Menu?Gt`${r}${this.renderMenuDropdown(n,o)}`:"Divider"==n.Type?Gt`${r}${this.renderMenuDivider()}`:e?Gt`${r}${this.renderMenuDropdownLink(n.URL,n.Text,n.Icon)}`:Gt`${r}${this.renderMenuLink(n)}`),Gt`${r}`}renderMenuDivider(){return Gt`<li><hr/></li>`}renderMenuDropdown(t,e){const o=null!=t.Icon&&""!=t.Icon?Gt`<i class="${t.Icon} ${this.iconClass}" />`:"";return e?Gt`<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 @@
|
|
|
407
407
|
</ul>
|
|
408
408
|
</div>
|
|
409
409
|
</div>
|
|
410
|
-
</nav>`:Gt``}};
|
|
410
|
+
</nav>`:Gt``}};ls([me({type:String}),ss("design:type",Object)],ds.prototype,"ariaExpanded",void 0),ls([me({type:String}),ss("design:type",Object)],ds.prototype,"ariaLabel",void 0),ls([me({type:String}),ss("design:type",Object)],ds.prototype,"buttonType",void 0),ls([me({type:String}),ss("design:type",Object)],ds.prototype,"collapseToggle",void 0),ls([me({type:String}),ss("design:type",Object)],ds.prototype,"dblClickClass",void 0),ls([me({type:String}),ss("design:type",Object)],ds.prototype,"dropdownId",void 0),ls([me({type:String}),ss("design:type",Object)],ds.prototype,"dropdownToggle",void 0),ls([me({type:String}),ss("design:type",Object)],ds.prototype,"iconClass",void 0),ls([me({type:String}),ss("design:type",Object)],ds.prototype,"liLinkToggleClass",void 0),ls([me({type:String}),ss("design:type",Object)],ds.prototype,"liLinkClass",void 0),ls([me({type:String}),ss("design:type",Object)],ds.prototype,"liAMenuClass",void 0),ls([me({type:String}),ss("design:type",Object)],ds.prototype,"navClass",void 0),ls([me({type:String}),ss("design:type",Object)],ds.prototype,"popoverContainer",void 0),ls([me({type:String}),ss("design:type",Object)],ds.prototype,"popoverHtml",void 0),ls([me({type:String}),ss("design:type",Object)],ds.prototype,"popoverPlacement",void 0),ls([me({type:String}),ss("design:type",Object)],ds.prototype,"popoverToggle",void 0),ls([me({type:String}),ss("design:type",Object)],ds.prototype,"popoverTrigger",void 0),ls([me({type:String}),ss("design:type",Object)],ds.prototype,"spanMenuClass",void 0),ls([me({type:String}),ss("design:type",Object)],ds.prototype,"spanMenuValue",void 0),ls([me({type:String}),ss("design:type",Object)],ds.prototype,"ulMainMenuToggleClass",void 0),ls([me({type:String}),ss("design:type",Object)],ds.prototype,"ulSubMenuClass",void 0),ls([me({type:String}),ss("design:type",Object)],ds.prototype,"ulSubMenuToggleClass",void 0),ls([me({type:String}),ss("design:type",Object)],ds.prototype,"apiEndpoint",void 0),ls([me({type:Boolean}),ss("design:type",Object)],ds.prototype,"renderInHost",void 0),ls([me({type:Object}),ss("design:type",Object)],ds.prototype,"jsonData",void 0),ds=ls([ce("qbo-mainmenu")],ds);var cs=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},fs=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let ps=class extends se{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 Gt`<slot></slot>`}};cs([me({type:String}),fs("design:type",Object)],ps.prototype,"collapseAttribute",void 0),cs([me({type:String}),fs("design:type",Object)],ps.prototype,"collapseSelector",void 0),cs([me({type:String}),fs("design:type",Object)],ps.prototype,"menuCollapsed",void 0),cs([me({type:String}),fs("design:type",Object)],ps.prototype,"menuExpanded",void 0),cs([me({type:String}),fs("design:type",Object)],ps.prototype,"menuShow",void 0),ps=cs([ce("qbo-sidebar")],ps);var ms=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},gs=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};const us=new Map;us.set("defaultLayout",(t=>Gt`<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
|
|
413
|
+
</div>`));let vs=class extends Ne{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=$.container.isRegistered(this.apiEndpoint)?$.container.resolve(this.apiEndpoint):new M(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 Gt`<slot>${us.has(this.type)?us.get(this.type)(this):null}</slot>`}};ms([me({type:String}),gs("design:type",Object)],vs.prototype,"apiEndpoint",void 0),ms([me({type:Boolean}),gs("design:type",Object)],vs.prototype,"disabled",void 0),ms([me({type:Boolean}),gs("design:type",Object)],vs.prototype,"editMode",void 0),ms([me({type:String}),gs("design:type",Object)],vs.prototype,"event",void 0),ms([me({type:String}),gs("design:type",Object)],vs.prototype,"imageClassShow",void 0),ms([me({type:String}),gs("design:type",Object)],vs.prototype,"imageClassHide",void 0),ms([me({type:String}),gs("design:type",Object)],vs.prototype,"inputClass",void 0),ms([me({type:String}),gs("design:type",Object)],vs.prototype,"inputName",void 0),ms([me({type:String}),gs("design:type",Object)],vs.prototype,"selectorImage",void 0),ms([me({type:String}),gs("design:type",Object)],vs.prototype,"selectorInput",void 0),ms([me({type:String}),gs("design:type",Object)],vs.prototype,"selectorSpan",void 0),ms([me({type:Boolean}),gs("design:type",Object)],vs.prototype,"show",void 0),ms([me({type:String}),gs("design:type",Object)],vs.prototype,"slotClass",void 0),ms([me({type:String}),gs("design:type",Object)],vs.prototype,"spanClass",void 0),ms([me({type:String}),gs("design:type",Object)],vs.prototype,"titleMaskText",void 0),ms([me({type:String}),gs("design:type",Object)],vs.prototype,"titleShowText",void 0),ms([me(),gs("design:type",Object)],vs.prototype,"type",void 0),ms([me({type:String}),gs("design:type",Object)],vs.prototype,"url",void 0),ms([me({type:Boolean}),gs("design:type",Object)],vs.prototype,"renderInHost",void 0),vs=ms([ce("qbo-ssn")],vs)})(),r})()));
|
|
414
414
|
//# sourceMappingURL=qbo4.ui-bridge.min.js.map
|