@quandis/qbo4.ui 4.0.1-CI-20241115-180638 → 4.0.1-CI-20241116-001926
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 +2 -2
- package/src/qbo/Program.d.ts +2 -0
- package/src/qbo/Program.js +17 -0
- package/src/qbo/Program.ts +17 -0
- package/src/qbo/RestApiService.js +1 -0
- package/src/qbo/RestApiService.ts +1 -0
- package/wwwroot/js/esm/qbo4.ui.js +24 -2
- package/wwwroot/js/esm/qbo4.ui.min.js +4 -4
- package/wwwroot/js/esm/qbo4.ui.min.js.map +1 -1
- package/wwwroot/js/qbo4.ui.js +21 -1
- package/wwwroot/js/qbo4.ui.min.js +2 -2
- package/wwwroot/js/qbo4.ui.min.js.map +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! For license information please see qbo4.ui.min.js.LICENSE.txt */
|
|
2
|
-
!function(o,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.qbo4=e():(o.qbo4=o.qbo4||{},o.qbo4.ui=e())}(self,(()=>(()=>{var o={630:(o,e,t)=>{var r;!function(o){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof t.g?t.g:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(o){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(o){}}(),r=n(o);function n(o,e){return function(t,r){Object.defineProperty(o,t,{configurable:!0,writable:!0,value:r}),e&&e(t,r)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(o,e){var t=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,d={create:a?function(){return N(Object.create(null))}:b?function(){return N({__proto__:null})}:function(){return N({})},has:l?function(o,e){return t.call(o,e)}:function(o,e){return e in o},get:l?function(o,e){return t.call(o,e)?o[e]:void 0}:function(o,e){return o[e]}},s=Object.getPrototypeOf(Function),c="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var o={},e=[],t=function(){function o(o,e,t){this._index=0,this._keys=o,this._values=e,this._selector=t}return o.prototype["@@iterator"]=function(){return this},o.prototype[i]=function(){return this},o.prototype.next=function(){var o=this._index;if(o>=0&&o<this._keys.length){var t=this._selector(this._keys[o],this._values[o]);return o+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:t,done:!1}}return{value:void 0,done:!0}},o.prototype.throw=function(o){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),o},o.prototype.return=function(o){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:o,done:!0}},o}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=o,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(o){return this._find(o,!1)>=0},e.prototype.get=function(o){var e=this._find(o,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(o,e){var t=this._find(o,!0);return this._values[t]=e,this},e.prototype.delete=function(e){var t=this._find(e,!1);if(t>=0){for(var r=this._keys.length,n=t+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--,P(e,this._cacheKey)&&(this._cacheKey=o,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=o,this._cacheIndex=-2},e.prototype.keys=function(){return new t(this._keys,this._values,r)},e.prototype.values=function(){return new t(this._keys,this._values,n)},e.prototype.entries=function(){return new t(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(o,e){if(!P(this._cacheKey,o)){this._cacheIndex=-1;for(var t=0;t<this._keys.length;t++)if(P(this._keys[t],o)){this._cacheIndex=t;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(o),this._values.push(void 0)),this._cacheIndex},e}();function r(o,e){return o}function n(o,e){return e}function a(o,e){return[o,e]}}(),f="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function o(){this._map=new c}return Object.defineProperty(o.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),o.prototype.has=function(o){return this._map.has(o)},o.prototype.add=function(o){return this._map.set(o,o),this},o.prototype.delete=function(o){return this._map.delete(o)},o.prototype.clear=function(){this._map.clear()},o.prototype.keys=function(){return this._map.keys()},o.prototype.values=function(){return this._map.keys()},o.prototype.entries=function(){return this._map.entries()},o.prototype["@@iterator"]=function(){return this.keys()},o.prototype[i]=function(){return this.keys()},o}(),m="function"==typeof WeakMap?WeakMap:function(){var o=d.create(),e=r();return function(){function o(){this._key=r()}return o.prototype.has=function(o){var e=n(o,!1);return void 0!==e&&d.has(e,this._key)},o.prototype.get=function(o){var e=n(o,!1);return void 0!==e?d.get(e,this._key):void 0},o.prototype.set=function(o,e){return n(o,!0)[this._key]=e,this},o.prototype.delete=function(o){var e=n(o,!1);return void 0!==e&&delete e[this._key]},o.prototype.clear=function(){this._key=r()},o}();function r(){var e;do{e="@@WeakMap@@"+a()}while(d.has(o,e));return o[e]=!0,e}function n(o,r){if(!t.call(o,e)){if(!r)return;Object.defineProperty(o,e,{value:d.create()})}return o[e]}function i(o,e){for(var t=0;t<e;++t)o[t]=255*Math.random()|0;return o}function a(){var o=function(o){if("function"==typeof Uint8Array){var e=new Uint8Array(o);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):i(e,o),e}return i(new Array(o),o)}(16);o[6]=79&o[6]|64,o[8]=191&o[8]|128;for(var e="",t=0;t<16;++t){var r=o[t];4!==t&&6!==t&&8!==t||(e+="-"),r<16&&(e+="0"),e+=r.toString(16).toLowerCase()}return e}}(),p=r?Symbol.for("@reflect-metadata:registry"):void 0,g=function(){var o;return!j(p)&&R(e.Reflect)&&Object.isExtensible(e.Reflect)&&(o=e.Reflect[p]),j(o)&&(o=function(){var o,t,r,n;j(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(o=function(o){var e=o.defineMetadata,t=o.hasOwnMetadata,r=o.getOwnMetadata,n=o.getOwnMetadataKeys,i=o.deleteMetadata,a=new m;return{isProviderFor:function(o,e){var t=a.get(o);return!(j(t)||!t.has(e))||!!n(o,e).length&&(j(t)&&(t=new f,a.set(o,t)),t.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:t,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:n,OrdinaryDeleteMetadata:i}}(e.Reflect));var i=new m,a={registerProvider:b,getProvider:d,setProvider:g};return a;function b(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case o===e:break;case j(t):t=e;break;case t===e:break;case j(r):r=e;break;case r===e:break;default:void 0===n&&(n=new f),n.add(e)}}function l(e,i){if(!j(t)){if(t.isProviderFor(e,i))return t;if(!j(r)){if(r.isProviderFor(e,i))return t;if(!j(n))for(var a=L(n);;){var b=T(a);if(!b)return;var l=B(b);if(l.isProviderFor(e,i))return I(a),l}}}if(!j(o)&&o.isProviderFor(e,i))return o}function d(o,e){var t,r=i.get(o);return j(r)||(t=r.get(e)),j(t)?(j(t=l(o,e))||(j(r)&&(r=new c,i.set(o,r)),r.set(e,t)),t):t}function s(o){if(j(o))throw new TypeError;return t===o||r===o||!j(n)&&n.has(o)}function g(o,e,t){if(!s(t))throw new Error("Metadata provider not registered.");var r=d(o,e);if(r!==t){if(!j(r))return!1;var n=i.get(o);j(n)&&(n=new c,i.set(o,n)),n.set(e,t)}return!0}}()),!j(p)&&R(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:o}),o}(),u=function(o){var e=new m,t={isProviderFor:function(o,t){var r=e.get(o);return!j(r)&&r.has(t)},OrdinaryDefineOwnMetadata:function(o,e,t,n){r(t,n,!0).set(o,e)},OrdinaryHasOwnMetadata:function(o,e,t){var n=r(e,t,!1);return!j(n)&&O(n.has(o))},OrdinaryGetOwnMetadata:function(o,e,t){var n=r(e,t,!1);if(!j(n))return n.get(o)},OrdinaryOwnMetadataKeys:function(o,e){var t=[],n=r(o,e,!1);if(j(n))return t;for(var i=L(n.keys()),a=0;;){var b=T(i);if(!b)return t.length=a,t;var l=B(b);try{t[a]=l}catch(o){try{I(i)}finally{throw o}}a++}},OrdinaryDeleteMetadata:function(o,t,n){var i=r(t,n,!1);if(j(i))return!1;if(!i.delete(o))return!1;if(0===i.size){var a=e.get(t);j(a)||(a.delete(n),0===a.size&&e.delete(a))}return!0}};return g.registerProvider(t),t;function r(r,n,i){var a=e.get(r),b=!1;if(j(a)){if(!i)return;a=new c,e.set(r,a),b=!0}var l=a.get(n);if(j(l)){if(!i)return;if(l=new c,a.set(n,l),!o.setProvider(r,n,t))throw a.delete(n),b&&e.delete(r),new Error("Wrong provider for target.")}return l}}(g);function v(o,e,t){if(h(o,e,t))return!0;var r=D(e);return!S(r)&&v(o,r,t)}function h(o,e,t){var r=H(e,t,!1);return!j(r)&&O(r.OrdinaryHasOwnMetadata(o,e,t))}function x(o,e,t){if(h(o,e,t))return w(o,e,t);var r=D(e);return S(r)?void 0:x(o,r,t)}function w(o,e,t){var r=H(e,t,!1);if(!j(r))return r.OrdinaryGetOwnMetadata(o,e,t)}function q(o,e,t,r){H(t,r,!0).OrdinaryDefineOwnMetadata(o,e,t,r)}function y(o,e){var t=k(o,e),r=D(o);if(null===r)return t;var n=y(r,e);if(n.length<=0)return t;if(t.length<=0)return n;for(var i=new f,a=[],b=0,l=t;b<l.length;b++){var d=l[b];i.has(d)||(i.add(d),a.push(d))}for(var s=0,c=n;s<c.length;s++)d=c[s],i.has(d)||(i.add(d),a.push(d));return a}function k(o,e){var t=H(o,e,!1);return t?t.OrdinaryOwnMetadataKeys(o,e):[]}function z(o){if(null===o)return 1;switch(typeof o){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===o?1:6;default:return 6}}function j(o){return void 0===o}function S(o){return null===o}function R(o){return"object"==typeof o?null!==o:"function"==typeof o}function $(o,e){switch(z(o)){case 0:case 1:case 2:case 3:case 4:case 5:return o}var t=3===e?"string":5===e?"number":"default",r=M(o,n);if(void 0!==r){var i=r.call(o,t);if(R(i))throw new TypeError;return i}return function(o,e){if("string"===e){var t=o.toString;if(C(t)&&!R(n=t.call(o)))return n;if(C(r=o.valueOf)&&!R(n=r.call(o)))return n}else{var r;if(C(r=o.valueOf)&&!R(n=r.call(o)))return n;var n,i=o.toString;if(C(i)&&!R(n=i.call(o)))return n}throw new TypeError}(o,"default"===t?"number":t)}function O(o){return!!o}function A(o){var e=$(o,3);return"symbol"==typeof e?e:function(o){return""+o}(e)}function E(o){return Array.isArray?Array.isArray(o):o instanceof Object?o instanceof Array:"[object Array]"===Object.prototype.toString.call(o)}function C(o){return"function"==typeof o}function _(o){return"function"==typeof o}function P(o,e){return o===e||o!=o&&e!=e}function M(o,e){var t=o[e];if(null!=t){if(!C(t))throw new TypeError;return t}}function L(o){var e=M(o,i);if(!C(e))throw new TypeError;var t=e.call(o);if(!R(t))throw new TypeError;return t}function B(o){return o.value}function T(o){var e=o.next();return!e.done&&e}function I(o){var e=o.return;e&&e.call(o)}function D(o){var e=Object.getPrototypeOf(o);if("function"!=typeof o||o===s)return e;if(e!==s)return e;var t=o.prototype,r=t&&Object.getPrototypeOf(t);if(null==r||r===Object.prototype)return e;var n=r.constructor;return"function"!=typeof n||n===o?e:n}function H(o,e,t){var r=g.getProvider(o,e);if(!j(r))return r;if(t){if(g.setProvider(o,e,u))return u;throw new Error("Illegal state.")}}function N(o){return o.__=void 0,delete o.__,o}o("decorate",(function(o,e,t,r){if(j(t)){if(!E(o))throw new TypeError;if(!_(e))throw new TypeError;return function(o,e){for(var t=o.length-1;t>=0;--t){var r=(0,o[t])(e);if(!j(r)&&!S(r)){if(!_(r))throw new TypeError;e=r}}return e}(o,e)}if(!E(o))throw new TypeError;if(!R(e))throw new TypeError;if(!R(r)&&!j(r)&&!S(r))throw new TypeError;return S(r)&&(r=void 0),function(o,e,t,r){for(var n=o.length-1;n>=0;--n){var i=(0,o[n])(e,t,r);if(!j(i)&&!S(i)){if(!R(i))throw new TypeError;r=i}}return r}(o,e,t=A(t),r)})),o("metadata",(function(o,e){return function(t,r){if(!R(t))throw new TypeError;if(!j(r)&&!function(o){switch(z(o)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;q(o,e,t,r)}})),o("defineMetadata",(function(o,e,t,r){if(!R(t))throw new TypeError;return j(r)||(r=A(r)),q(o,e,t,r)})),o("hasMetadata",(function(o,e,t){if(!R(e))throw new TypeError;return j(t)||(t=A(t)),v(o,e,t)})),o("hasOwnMetadata",(function(o,e,t){if(!R(e))throw new TypeError;return j(t)||(t=A(t)),h(o,e,t)})),o("getMetadata",(function(o,e,t){if(!R(e))throw new TypeError;return j(t)||(t=A(t)),x(o,e,t)})),o("getOwnMetadata",(function(o,e,t){if(!R(e))throw new TypeError;return j(t)||(t=A(t)),w(o,e,t)})),o("getMetadataKeys",(function(o,e){if(!R(o))throw new TypeError;return j(e)||(e=A(e)),y(o,e)})),o("getOwnMetadataKeys",(function(o,e){if(!R(o))throw new TypeError;return j(e)||(e=A(e)),k(o,e)})),o("deleteMetadata",(function(o,e,t){if(!R(e))throw new TypeError;if(j(t)||(t=A(t)),!R(e))throw new TypeError;j(t)||(t=A(t));var r=H(e,t,!1);return!j(r)&&r.OrdinaryDeleteMetadata(o,e,t)}))}(r,e),void 0===e.Reflect&&(e.Reflect=o)}()}(r||(r={}))}},e={};function t(r){var n=e[r];if(void 0!==n)return n.exports;var i=e[r]={exports:{}};return o[r](i,i.exports,t),i.exports}t.d=(o,e)=>{for(var r in e)t.o(e,r)&&!t.o(o,r)&&Object.defineProperty(o,r,{enumerable:!0,get:e[r]})},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(o){if("object"==typeof window)return window}}(),t.o=(o,e)=>Object.prototype.hasOwnProperty.call(o,e),t.r=o=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var r={};return(()=>{"use strict";var o;t.r(r),t.d(r,{ContextMenu:()=>Oe,Dependency:()=>H,DependencyValidator:()=>F,DependencyValidatorOptions:()=>N,DependencyValidatorOptionsToken:()=>G,EmailValidator:()=>I,ExistsValidator:()=>D,IApiServiceToken:()=>O,Mode:()=>Vr,QboApiElement:()=>xe,QboCard:()=>ye,QboDataList:()=>Le,QboDocViewer:()=>Ie,QboFetch:()=>_e,QboFetchMixin:()=>Ce,QboFormEdit:()=>Ge,QboFormElement:()=>Xe,QboIcon:()=>mt,QboMenu:()=>xr,QboMicrophone:()=>kr,QboPaginate:()=>Sr,QboPopover:()=>Or,QboPopup:()=>Pr,QboPopupListener:()=>Br,QboResize:()=>Hr,QboSelect:()=>Ur,QboSelectable:()=>Yr,QboTable:()=>Qr,QboUserPreferences:()=>on,QboValidate:()=>ln,ResizeType:()=>Tr,RestApiService:()=>P,Services:()=>R,ValidateToken:()=>A,ZipCodeValidator:()=>T,bootstrap:()=>ze,bootstrapicons:()=>je,elementClearValue:()=>K,elementData:()=>sn,elementDate:()=>cn,elementDateTime:()=>fn,elementOptions:()=>X,elementResetValue:()=>W,elementSelectorAll:()=>Y,formatDate:()=>nn,getApiService:()=>L,getArray:()=>E,getUserPreference:()=>tn,join:()=>rn,matches:()=>dn,qbocss:()=>ke,qboui:()=>Se,registerRestApi:()=>M,replicate:()=>_,services:()=>$,setUserPreference:()=>en,substitute:()=>C}),t(630),function(o){o[o.Transient=0]="Transient",o[o.Singleton=1]="Singleton",o[o.ResolutionScoped=2]="ResolutionScoped",o[o.ContainerScoped=3]="ContainerScoped"}(o||(o={}));const e=o;var n=function(o,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var t in e)e.hasOwnProperty(t)&&(o[t]=e[t])},n(o,e)};function i(o,e){function t(){this.constructor=o}n(o,e),o.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}function a(o){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&o[e],r=0;if(t)return t.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&r>=o.length&&(o=void 0),{value:o&&o[r++],done:!o}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(o,e){var t="function"==typeof Symbol&&o[Symbol.iterator];if(!t)return o;var r,n,i=t.call(o),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(o){n={error:o}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(n)throw n.error}}return a}function l(){for(var o=[],e=0;e<arguments.length;e++)o=o.concat(b(arguments[e]));return o}function d(o){return!!o.useClass}function s(o){return!!o.useFactory}var c=function(){function o(o){this.wrap=o,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}return o.prototype.createProxy=function(o){var e,t=this,r=!1;return new Proxy({},this.createHandler((function(){return r||(e=o(t.wrap()),r=!0),e})))},o.prototype.createHandler=function(o){var e={};return this.reflectMethods.forEach((function(t){e[t]=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e[0]=o(),Reflect[t].apply(void 0,l(e))}})),e},o}();function f(o){return"string"==typeof o||"symbol"==typeof o}function m(o){return"object"==typeof o&&"token"in o&&"transform"in o}function p(o){return!!o.useToken}function g(o){return null!=o.useValue}const u=function(){function o(){this._registryMap=new Map}return o.prototype.entries=function(){return this._registryMap.entries()},o.prototype.getAll=function(o){return this.ensure(o),this._registryMap.get(o)},o.prototype.get=function(o){this.ensure(o);var e=this._registryMap.get(o);return e[e.length-1]||null},o.prototype.set=function(o,e){this.ensure(o),this._registryMap.get(o).push(e)},o.prototype.setAll=function(o,e){this._registryMap.set(o,e)},o.prototype.has=function(o){return this.ensure(o),this._registryMap.get(o).length>0},o.prototype.clear=function(){this._registryMap.clear()},o.prototype.ensure=function(o){this._registryMap.has(o)||this._registryMap.set(o,[])},o}(),v=function(o){function e(){return null!==o&&o.apply(this,arguments)||this}return i(e,o),e}(u),h=function(){this.scopedResolutions=new Map};var x=function(o){function e(){return null!==o&&o.apply(this,arguments)||this}return i(e,o),e}(u),w=function(o){function e(){return null!==o&&o.apply(this,arguments)||this}return i(e,o),e}(u);const q=function(){this.preResolution=new x,this.postResolution=new w};var y=new Map,k=function(){function o(o){this.parent=o,this._registry=new v,this.interceptors=new q,this.disposed=!1,this.disposables=new Set}return o.prototype.register=function(o,t,r){var n;if(void 0===r&&(r={lifecycle:e.Transient}),this.ensureNotDisposed(),n=function(o){return d(o)||g(o)||p(o)||s(o)}(t)?t:{useClass:t},p(n))for(var i=[o],a=n;null!=a;){var b=a.useToken;if(i.includes(b))throw new Error("Token registration cycle detected! "+l(i,[b]).join(" -> "));i.push(b);var c=this._registry.get(b);a=c&&p(c.provider)?c.provider:null}if((r.lifecycle===e.Singleton||r.lifecycle==e.ContainerScoped||r.lifecycle==e.ResolutionScoped)&&(g(n)||s(n)))throw new Error('Cannot use lifecycle "'+e[r.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(o,{provider:n,options:r}),this},o.prototype.registerType=function(o,e){return this.ensureNotDisposed(),f(e)?this.register(o,{useToken:e}):this.register(o,{useClass:e})},o.prototype.registerInstance=function(o,e){return this.ensureNotDisposed(),this.register(o,{useValue:e})},o.prototype.registerSingleton=function(o,t){if(this.ensureNotDisposed(),f(o)){if(f(t))return this.register(o,{useToken:t},{lifecycle:e.Singleton});if(t)return this.register(o,{useClass:t},{lifecycle:e.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var r=o;return t&&!f(t)&&(r=t),this.register(o,{useClass:r},{lifecycle:e.Singleton})},o.prototype.resolve=function(o,e){void 0===e&&(e=new h),this.ensureNotDisposed();var t=this.getRegistration(o);if(!t&&f(o))throw new Error('Attempted to resolve unregistered dependency token: "'+o.toString()+'"');if(this.executePreResolutionInterceptor(o,"Single"),t){var r=this.resolveRegistration(t,e);return this.executePostResolutionInterceptor(o,r,"Single"),r}if(function(o){return"function"==typeof o||o instanceof c}(o))return r=this.construct(o,e),this.executePostResolutionInterceptor(o,r,"Single"),r;throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")},o.prototype.executePreResolutionInterceptor=function(o,e){var t,r;if(this.interceptors.preResolution.has(o)){var n=[];try{for(var i=a(this.interceptors.preResolution.getAll(o)),b=i.next();!b.done;b=i.next()){var l=b.value;"Once"!=l.options.frequency&&n.push(l),l.callback(o,e)}}catch(o){t={error:o}}finally{try{b&&!b.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}this.interceptors.preResolution.setAll(o,n)}},o.prototype.executePostResolutionInterceptor=function(o,e,t){var r,n;if(this.interceptors.postResolution.has(o)){var i=[];try{for(var b=a(this.interceptors.postResolution.getAll(o)),l=b.next();!l.done;l=b.next()){var d=l.value;"Once"!=d.options.frequency&&i.push(d),d.callback(o,e,t)}}catch(o){r={error:o}}finally{try{l&&!l.done&&(n=b.return)&&n.call(b)}finally{if(r)throw r.error}}this.interceptors.postResolution.setAll(o,i)}},o.prototype.resolveRegistration=function(o,t){if(this.ensureNotDisposed(),o.options.lifecycle===e.ResolutionScoped&&t.scopedResolutions.has(o))return t.scopedResolutions.get(o);var r,n=o.options.lifecycle===e.Singleton,i=o.options.lifecycle===e.ContainerScoped,a=n||i;return r=g(o.provider)?o.provider.useValue:p(o.provider)?a?o.instance||(o.instance=this.resolve(o.provider.useToken,t)):this.resolve(o.provider.useToken,t):d(o.provider)?a?o.instance||(o.instance=this.construct(o.provider.useClass,t)):this.construct(o.provider.useClass,t):s(o.provider)?o.provider.useFactory(this):this.construct(o.provider,t),o.options.lifecycle===e.ResolutionScoped&&t.scopedResolutions.set(o,r),r},o.prototype.resolveAll=function(o,e){var t=this;void 0===e&&(e=new h),this.ensureNotDisposed();var r=this.getAllRegistrations(o);if(!r&&f(o))throw new Error('Attempted to resolve unregistered dependency token: "'+o.toString()+'"');if(this.executePreResolutionInterceptor(o,"All"),r){var n=r.map((function(o){return t.resolveRegistration(o,e)}));return this.executePostResolutionInterceptor(o,n,"All"),n}var i=[this.construct(o,e)];return this.executePostResolutionInterceptor(o,i,"All"),i},o.prototype.isRegistered=function(o,e){return void 0===e&&(e=!1),this.ensureNotDisposed(),this._registry.has(o)||e&&(this.parent||!1)&&this.parent.isRegistered(o,!0)},o.prototype.reset=function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()},o.prototype.clearInstances=function(){var o,e;this.ensureNotDisposed();try{for(var t=a(this._registry.entries()),r=t.next();!r.done;r=t.next()){var n=b(r.value,2),i=n[0],l=n[1];this._registry.setAll(i,l.filter((function(o){return!g(o.provider)})).map((function(o){return o.instance=void 0,o})))}}catch(e){o={error:e}}finally{try{r&&!r.done&&(e=t.return)&&e.call(t)}finally{if(o)throw o.error}}},o.prototype.createChildContainer=function(){var t,r;this.ensureNotDisposed();var n=new o(this);try{for(var i=a(this._registry.entries()),l=i.next();!l.done;l=i.next()){var d=b(l.value,2),s=d[0],c=d[1];c.some((function(o){return o.options.lifecycle===e.ContainerScoped}))&&n._registry.setAll(s,c.map((function(o){return o.options.lifecycle===e.ContainerScoped?{provider:o.provider,options:o.options}:o})))}}catch(o){t={error:o}}finally{try{l&&!l.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},o.prototype.beforeResolution=function(o,e,t){void 0===t&&(t={frequency:"Always"}),this.interceptors.preResolution.set(o,{callback:e,options:t})},o.prototype.afterResolution=function(o,e,t){void 0===t&&(t={frequency:"Always"}),this.interceptors.postResolution.set(o,{callback:e,options:t})},o.prototype.dispose=function(){return function(o,e,t,r){return new(t||(t=Promise))((function(n,i){function a(o){try{l(r.next(o))}catch(o){i(o)}}function b(o){try{l(r.throw(o))}catch(o){i(o)}}function l(o){var e;o.done?n(o.value):(e=o.value,e instanceof t?e:new t((function(o){o(e)}))).then(a,b)}l((r=r.apply(o,e||[])).next())}))}(this,void 0,void 0,(function(){var o;return function(o,e){var t,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(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=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(o,a)}catch(o){i=[6,o],r=0}finally{t=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,o=[],this.disposables.forEach((function(e){var t=e.dispose();t&&o.push(t)})),[4,Promise.all(o)];case 1:return e.sent(),[2]}}))}))},o.prototype.getRegistration=function(o){return this.isRegistered(o)?this._registry.get(o):this.parent?this.parent.getRegistration(o):null},o.prototype.getAllRegistrations=function(o){return this.isRegistered(o)?this._registry.getAll(o):this.parent?this.parent.getAllRegistrations(o):null},o.prototype.construct=function(o,e){var t=this;if(o instanceof c)return o.createProxy((function(o){return t.resolve(o,e)}));var r,n=function(){var r=y.get(o);if(!r||0===r.length){if(0===o.length)return new o;throw new Error('TypeInfo not known for "'+o.name+'"')}var n=r.map(t.resolveParams(e,o));return new(o.bind.apply(o,l([void 0],n)))}();return"function"!=typeof(r=n).dispose||r.dispose.length>0||this.disposables.add(n),n},o.prototype.resolveParams=function(o,e){var t=this;return function(r,n){var i,a,d,s;try{return"object"==typeof(s=r)&&"token"in s&&"multiple"in s?m(r)?r.multiple?(i=t.resolve(r.transform)).transform.apply(i,l([t.resolveAll(r.token)],r.transformArgs)):(a=t.resolve(r.transform)).transform.apply(a,l([t.resolve(r.token,o)],r.transformArgs)):r.multiple?t.resolveAll(r.token):t.resolve(r.token,o):m(r)?(d=t.resolve(r.transform,o)).transform.apply(d,l([t.resolve(r.token,o)],r.transformArgs)):t.resolve(r,o)}catch(o){throw new Error(function(o,e,t){var r,n,i=b(o.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1];return function(o,e,t){return void 0===t&&(t=" "),l([o],e.message.split("\n").map((function(o){return t+o}))).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 "')+o.name+'" constructor. Reason:',t)}(e,n,o))}}},o.prototype.ensureNotDisposed=function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")},o}(),z=new k,j="injectionTokens";const S=function(){return function(o){y.set(o,function(o){var e=Reflect.getMetadata("design:paramtypes",o)||[],t=Reflect.getOwnMetadata(j,o)||{};return Object.keys(t).forEach((function(o){e[+o]=t[o]})),e}(o))}};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 R{constructor(o,e){this.container=o,this.options=e}getService(o){return this.container.resolve(o)}}const $=window?.qbo4?.services||new R(z.createChildContainer(),{});"undefined"!=typeof window&&(window.qbo4=window.qbo4||{},window.qbo4.services=window.qbo4.services||new R(z.createChildContainer(),{}),window.qbo4.services);const O="ApiServiceToken",A="ValidateToken";function E(o,e){if("string"==typeof o)try{o=JSON.parse(o)}catch(o){return console.error("Error parsing JSON string:",o),null}if(Array.isArray(o))return o;if("object"==typeof o&&null!==o)for(const t in o){const r=o[t];if(Array.isArray(r))return r;if("object"==typeof r){const o=E(r,e);if(o)return o}}return null}function C(o,...e){const t=/\${(.*?)}/g;let r=o;for(let o=0;o<e.length;o++){const n=e[o];r=r.replace(t,((o,e)=>{const t=e.split(/\.|\[|\]/).filter((o=>""!==o));let r=n;for(let e of t){if(void 0===r[e])return o;r=r[e]}return r}))}return r=r.replace(t,(()=>"")),r}function _(o,e,t,r=!0){if(null!=o&&null!=e){for(;r&&o.firstChild;)o.removeChild(o.firstChild);t.map(((t,r)=>{const n=e.content.cloneNode(!0);null!=n.firstElementChild&&(n.firstElementChild.setAttribute("data-index",`${r}`),n.firstElementChild.innerHTML=C(n.firstElementChild?.innerHTML??"",t)),o.appendChild(n)}))}}class P{constructor(o,e={},t=null){this.relativePath="",this.apiEndpoint=o,this.headers=e,this.method=t}async fetch(o,e){this.apiEndpoint.indexOf("//")<0&&(this.apiEndpoint=new URL(this.apiEndpoint,document.location.origin).href);const t=C(new URL(o??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(t,{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(o){const e=new P(this.apiEndpoint,this.headers,this.method);return e.relativePath=o??"",e}}function M(o,e,t={"Content-Type":"application/json"},r){$.container.registerInstance(o,new P(e,t,r))}function L(o){"string"!=typeof o&&(o=o.href);const e=o.match(/api:\/\/([^/]+)/),t=e?e[1]:o,r=e?o.substring(`api://${t}`.length+1):"",n=$.container.isRegistered(t)?$.container.resolve(t):new P(o);return r?n.clone(r):n}$.container.registerInstance("default",new P(document.querySelector("base[href]")?.getAttribute("href")||window.location.origin));var B=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a};let T=class{constructor(){this.message="Zip code is invalid",this.selector=".zipcode"}validate(o){return Promise.resolve(!0)}connect(o){}disconnect(){}};T=B([S()],T),$.container.register(A,{useClass:T});let I=class{constructor(){this.message="Email is invalid",this.selector=".email"}validate(o){return Promise.resolve(!0)}connect(o){}disconnect(){}};I=B([S()],I),$.container.register(A,{useClass:I});let D=class{constructor(){this.message="This value does not appear to exist.",this.selector="[data-exists]"}connect(o){}disconnect(){}async validate(o){var e=o.getAttribute("data-exists");if(!e)return!1;var t=o.getAttribute("data-exists-path");const r=$.container.isRegistered(e)?$.container.resolve(e):new P(e);if(o instanceof HTMLInputElement||o instanceof HTMLSelectElement||o instanceof HTMLTextAreaElement){const e=E(await r.fetch(t,{value:o.value}));return null!=e&&e.length>0}return!1}};D=B([S()],D),$.container.register(A,{useClass:D});class H{constructor(){this.operator="=",this.value=null}}class N{constructor(){this.evaluators=[],this.depends="",this.condition="or",this.emptyOnDisable=!1,this.resetOnDisable=!0,this.disabledClass="disabled",this.disableChildren=!0}}const G="DependencyValidatorOptions",U=new Map([["!=",(o,e)=>!dn(o.value,e)],[">=",(o,e)=>o.value>=e],["<=",(o,e)=>o.value<=e],["=",(o,e)=>dn(o.value,e)],[">",(o,e)=>o.value>e],["<",(o,e)=>o.value<e]]),V=Array.from(U.keys());let F=class{constructor(o,e){this.message="Dependency condition not met",this.selector="[data-depend-options]",this.optionsCache=new Map,this.checkDependencies=async o=>{console.log("checking dependencies",this.optionsCache);for(const[o,e]of this.optionsCache)await this.validate(o)},this.form=o,this.options=e,this.currentOptions=e}connect(o){this.form.querySelectorAll(this.selector).forEach((o=>{o instanceof HTMLElement&&this.getOptions(o)})),this.optionsCache.forEach(((o,e)=>{this.validate(e)})),this.form.addEventListener("change",this.checkDependencies)}disconnect(){this.form.removeEventListener("change",this.checkDependencies)}async validate(o){const e=this.getOptions(o);if(null==e)return Promise.resolve(!0);let t;t="or"===e.condition?e.evaluators.some((o=>!0===o())):e.evaluators.every((o=>!0===o())),(o instanceof HTMLInputElement||o instanceof HTMLSelectElement||o instanceof HTMLTextAreaElement)&&(o.disabled=!t),o.classList.toggle(e.disabledClass,!t);const r=Y(o,"input,select,textarea");return t?e.disableChildren&&r.forEach((o=>o.removeAttribute("disabled"))):(e.disableChildren&&r.forEach((o=>o.setAttribute("disabled","disabled"))),e.resetOnDisable?r.forEach((o=>W(o))):e.emptyOnDisable&&r.forEach((o=>K(o)))),Promise.resolve(t)}getOptions(o){let e=this.optionsCache.get(o);if(!e){try{e=Object.assign({},this.options,X(o,"data-depend-"))}catch(o){console.error("Error parsing data-depend-options attribute:",o)}if(!e)return null;e.evaluators=e.depends.split(",").map((o=>{o=o.trim();let e=V.find((e=>o.includes(e)))??"!=",t=null,r="";if(e){const n=o.split(e);t=n[0],r=n[1]??""}else o.startsWith("!")?(e="=",t=o.substring(1)):t=o;const n=this.form.querySelector(`#${CSS.escape(t)}`)??this.form.querySelector(`[name="${CSS.escape(t)}"]`);return n instanceof HTMLInputElement?"checkbox"===n.type||"radio"===n.type?"!="===e?()=>n.checked:()=>!n.checked:()=>U.get(e)(n,r):n instanceof HTMLSelectElement?()=>U.get(e)(n,r):n instanceof HTMLOptionElement?"!="===e?()=>n.selected:()=>!n.selected:void 0})).filter((o=>void 0!==o)),this.optionsCache.set(o,e)}return e}getElement(o){return this.form.querySelector(`#${CSS.escape(o)}`)??this.form.querySelector(`[name="${CSS.escape(o)}"]`)}};function X(o,e,t="options"){const r={},n=`${e}${t}`,i=o.getAttributeNames();for(const a of i)if(a.startsWith(e)){const i=a.slice(e.length);if(null!=t&&a===n)try{const e=JSON.parse(o.getAttribute(a));Object.assign(r,e)}catch(e){console.error(`Error parsing JSON from element ${o.name} attribute ${n} (${o.getAttribute(a)}):`,o,e)}else r[i]=o.getAttribute(a)}return r}function Y(o,e){const t=Array.from(o.querySelectorAll(e));return o.matches(e)&&t.unshift(o),t}function W(o){if(o instanceof HTMLInputElement)"checkbox"===o.type||"radio"===o.type?o.checked=o.defaultChecked:o.value=o.defaultValue;else if(o instanceof HTMLSelectElement){var e=o.querySelectorAll("option[selected]");0==e.length?o.selectedIndex=0:e.forEach((o=>{o instanceof HTMLOptionElement&&(o.selected=!0)}))}}function K(o){o instanceof HTMLInputElement?"checkbox"===o.type||"radio"===o.type?o.checked=!1:o.value="":o instanceof HTMLSelectElement&&(o.options.selectedIndex=0)}var Q,J,Z,oo;F=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([S(),(Q=1,Z=G,oo=Z,J=function(o,e,t){var r=Reflect.getOwnMetadata(j,o)||{};r[t]=oo,Reflect.defineMetadata(j,r,o)},function(o,e){J(o,e,Q)}),function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)}("design:paramtypes",[HTMLFormElement,N])],F),$.container.register(G,{useValue:new N}),$.container.register(A,{useClass:F});const eo=globalThis,to=eo.ShadowRoot&&(void 0===eo.ShadyCSS||eo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ro=Symbol(),no=new WeakMap;class io{constructor(o,e,t){if(this._$cssResult$=!0,t!==ro)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=e}get styleSheet(){let o=this.o;const e=this.t;if(to&&void 0===o){const t=void 0!==e&&1===e.length;t&&(o=no.get(e)),void 0===o&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),t&&no.set(e,o))}return o}toString(){return this.cssText}}const ao=(o,...e)=>{const t=1===o.length?o[0]:e.reduce(((e,t,r)=>e+(o=>{if(!0===o._$cssResult$)return o.cssText;if("number"==typeof o)return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(t)+o[r+1]),o[0]);return new io(t,o,ro)},bo=(o,e)=>{if(to)o.adoptedStyleSheets=e.map((o=>o instanceof CSSStyleSheet?o:o.styleSheet));else for(const t of e){const e=document.createElement("style"),r=eo.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=t.cssText,o.appendChild(e)}},lo=to?o=>o:o=>o instanceof CSSStyleSheet?(o=>{let e="";for(const t of o.cssRules)e+=t.cssText;return(o=>new io("string"==typeof o?o:o+"",void 0,ro))(e)})(o):o,{is:so,defineProperty:co,getOwnPropertyDescriptor:fo,getOwnPropertyNames:mo,getOwnPropertySymbols:po,getPrototypeOf:go}=Object,uo=globalThis,vo=uo.trustedTypes,ho=vo?vo.emptyScript:"",xo=uo.reactiveElementPolyfillSupport,wo=(o,e)=>o,qo={toAttribute(o,e){switch(e){case Boolean:o=o?ho:null;break;case Object:case Array:o=null==o?o:JSON.stringify(o)}return o},fromAttribute(o,e){let t=o;switch(e){case Boolean:t=null!==o;break;case Number:t=null===o?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch(o){t=null}}return t}},yo=(o,e)=>!so(o,e),ko={attribute:!0,type:String,converter:qo,reflect:!1,hasChanged:yo};Symbol.metadata??=Symbol("metadata"),uo.litPropertyMetadata??=new WeakMap;class zo extends HTMLElement{static addInitializer(o){this._$Ei(),(this.l??=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,e=ko){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(o,e),!e.noAccessor){const t=Symbol(),r=this.getPropertyDescriptor(o,t,e);void 0!==r&&co(this.prototype,o,r)}}static getPropertyDescriptor(o,e,t){const{get:r,set:n}=fo(this.prototype,o)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return r?.call(this)},set(e){const i=r?.call(this);n.call(this,e),this.requestUpdate(o,i,t)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){return this.elementProperties.get(o)??ko}static _$Ei(){if(this.hasOwnProperty(wo("elementProperties")))return;const o=go(this);o.finalize(),void 0!==o.l&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(wo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(wo("properties"))){const o=this.properties,e=[...mo(o),...po(o)];for(const t of e)this.createProperty(t,o[t])}const o=this[Symbol.metadata];if(null!==o){const e=litPropertyMetadata.get(o);if(void 0!==e)for(const[o,t]of e)this.elementProperties.set(o,t)}this._$Eh=new Map;for(const[o,e]of this.elementProperties){const t=this._$Eu(o,e);void 0!==t&&this._$Eh.set(t,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){const e=[];if(Array.isArray(o)){const t=new Set(o.flat(1/0).reverse());for(const o of t)e.unshift(lo(o))}else void 0!==o&&e.push(lo(o));return e}static _$Eu(o,e){const t=e.attribute;return!1===t?void 0:"string"==typeof t?t:"string"==typeof o?o.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((o=>this.enableUpdating=o)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((o=>o(this)))}addController(o){(this._$EO??=new Set).add(o),void 0!==this.renderRoot&&this.isConnected&&o.hostConnected?.()}removeController(o){this._$EO?.delete(o)}_$E_(){const o=new Map,e=this.constructor.elementProperties;for(const t of e.keys())this.hasOwnProperty(t)&&(o.set(t,this[t]),delete this[t]);o.size>0&&(this._$Ep=o)}createRenderRoot(){const o=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return bo(o,this.constructor.elementStyles),o}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((o=>o.hostConnected?.()))}enableUpdating(o){}disconnectedCallback(){this._$EO?.forEach((o=>o.hostDisconnected?.()))}attributeChangedCallback(o,e,t){this._$AK(o,t)}_$EC(o,e){const t=this.constructor.elementProperties.get(o),r=this.constructor._$Eu(o,t);if(void 0!==r&&!0===t.reflect){const n=(void 0!==t.converter?.toAttribute?t.converter:qo).toAttribute(e,t.type);this._$Em=o,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(o,e){const t=this.constructor,r=t._$Eh.get(o);if(void 0!==r&&this._$Em!==r){const o=t.getPropertyOptions(r),n="function"==typeof o.converter?{fromAttribute:o.converter}:void 0!==o.converter?.fromAttribute?o.converter:qo;this._$Em=r,this[r]=n.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(o,e,t){if(void 0!==o){if(t??=this.constructor.getPropertyOptions(o),!(t.hasChanged??yo)(this[o],e))return;this.P(o,e,t)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(o,e,t){this._$AL.has(o)||this._$AL.set(o,e),!0===t.reflect&&this._$Em!==o&&(this._$Ej??=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(o){Promise.reject(o)}const o=this.scheduleUpdate();return null!=o&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[o,e]of this._$Ep)this[o]=e;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[e,t]of o)!0!==t.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],t)}let o=!1;const e=this._$AL;try{o=this.shouldUpdate(e),o?(this.willUpdate(e),this._$EO?.forEach((o=>o.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw o=!1,this._$EU(),e}o&&this._$AE(e)}willUpdate(o){}_$AE(o){this._$EO?.forEach((o=>o.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&=this._$Ej.forEach((o=>this._$EC(o,this[o]))),this._$EU()}updated(o){}firstUpdated(o){}}zo.elementStyles=[],zo.shadowRootOptions={mode:"open"},zo[wo("elementProperties")]=new Map,zo[wo("finalized")]=new Map,xo?.({ReactiveElement:zo}),(uo.reactiveElementVersions??=[]).push("2.0.4");const jo=globalThis,So=jo.trustedTypes,Ro=So?So.createPolicy("lit-html",{createHTML:o=>o}):void 0,$o="$lit$",Oo=`lit$${Math.random().toFixed(9).slice(2)}$`,Ao="?"+Oo,Eo=`<${Ao}>`,Co=document,_o=()=>Co.createComment(""),Po=o=>null===o||"object"!=typeof o&&"function"!=typeof o,Mo=Array.isArray,Lo=o=>Mo(o)||"function"==typeof o?.[Symbol.iterator],Bo="[ \t\n\f\r]",To=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Io=/-->/g,Do=/>/g,Ho=RegExp(`>|${Bo}(?:([^\\s"'>=/]+)(${Bo}*=${Bo}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),No=/'/g,Go=/"/g,Uo=/^(?:script|style|textarea|title)$/i,Vo=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),Fo=Vo(1),Xo=(Vo(2),Vo(3),Symbol.for("lit-noChange")),Yo=Symbol.for("lit-nothing"),Wo=new WeakMap,Ko=Co.createTreeWalker(Co,129);function Qo(o,e){if(!Mo(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ro?Ro.createHTML(e):e}const Jo=(o,e)=>{const t=o.length-1,r=[];let n,i=2===e?"<svg>":3===e?"<math>":"",a=To;for(let e=0;e<t;e++){const t=o[e];let b,l,d=-1,s=0;for(;s<t.length&&(a.lastIndex=s,l=a.exec(t),null!==l);)s=a.lastIndex,a===To?"!--"===l[1]?a=Io:void 0!==l[1]?a=Do:void 0!==l[2]?(Uo.test(l[2])&&(n=RegExp("</"+l[2],"g")),a=Ho):void 0!==l[3]&&(a=Ho):a===Ho?">"===l[0]?(a=n??To,d=-1):void 0===l[1]?d=-2:(d=a.lastIndex-l[2].length,b=l[1],a=void 0===l[3]?Ho:'"'===l[3]?Go:No):a===Go||a===No?a=Ho:a===Io||a===Do?a=To:(a=Ho,n=void 0);const c=a===Ho&&o[e+1].startsWith("/>")?" ":"";i+=a===To?t+Eo:d>=0?(r.push(b),t.slice(0,d)+$o+t.slice(d)+Oo+c):t+Oo+(-2===d?e:c)}return[Qo(o,i+(o[t]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]};class Zo{constructor({strings:o,_$litType$:e},t){let r;this.parts=[];let n=0,i=0;const a=o.length-1,b=this.parts,[l,d]=Jo(o,e);if(this.el=Zo.createElement(l,t),Ko.currentNode=this.el.content,2===e||3===e){const o=this.el.content.firstChild;o.replaceWith(...o.childNodes)}for(;null!==(r=Ko.nextNode())&&b.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const o of r.getAttributeNames())if(o.endsWith($o)){const e=d[i++],t=r.getAttribute(o).split(Oo),a=/([.?@])?(.*)/.exec(e);b.push({type:1,index:n,name:a[2],strings:t,ctor:"."===a[1]?ne:"?"===a[1]?ie:"@"===a[1]?ae:re}),r.removeAttribute(o)}else o.startsWith(Oo)&&(b.push({type:6,index:n}),r.removeAttribute(o));if(Uo.test(r.tagName)){const o=r.textContent.split(Oo),e=o.length-1;if(e>0){r.textContent=So?So.emptyScript:"";for(let t=0;t<e;t++)r.append(o[t],_o()),Ko.nextNode(),b.push({type:2,index:++n});r.append(o[e],_o())}}}else if(8===r.nodeType)if(r.data===Ao)b.push({type:2,index:n});else{let o=-1;for(;-1!==(o=r.data.indexOf(Oo,o+1));)b.push({type:7,index:n}),o+=Oo.length-1}n++}}static createElement(o,e){const t=Co.createElement("template");return t.innerHTML=o,t}}function oe(o,e,t=o,r){if(e===Xo)return e;let n=void 0!==r?t._$Co?.[r]:t._$Cl;const i=Po(e)?void 0:e._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),void 0===i?n=void 0:(n=new i(o),n._$AT(o,t,r)),void 0!==r?(t._$Co??=[])[r]=n:t._$Cl=n),void 0!==n&&(e=oe(o,n._$AS(o,e.values),n,r)),e}class ee{constructor(o,e){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){const{el:{content:e},parts:t}=this._$AD,r=(o?.creationScope??Co).importNode(e,!0);Ko.currentNode=r;let n=Ko.nextNode(),i=0,a=0,b=t[0];for(;void 0!==b;){if(i===b.index){let e;2===b.type?e=new te(n,n.nextSibling,this,o):1===b.type?e=new b.ctor(n,b.name,b.strings,this,o):6===b.type&&(e=new be(n,this,o)),this._$AV.push(e),b=t[++a]}i!==b?.index&&(n=Ko.nextNode(),i++)}return Ko.currentNode=Co,r}p(o){let e=0;for(const t of this._$AV)void 0!==t&&(void 0!==t.strings?(t._$AI(o,t,e),e+=t.strings.length-2):t._$AI(o[e])),e++}}class te{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,e,t,r){this.type=2,this._$AH=Yo,this._$AN=void 0,this._$AA=o,this._$AB=e,this._$AM=t,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===o?.nodeType&&(o=e.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,e=this){o=oe(this,o,e),Po(o)?o===Yo||null==o||""===o?(this._$AH!==Yo&&this._$AR(),this._$AH=Yo):o!==this._$AH&&o!==Xo&&this._(o):void 0!==o._$litType$?this.$(o):void 0!==o.nodeType?this.T(o):Lo(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==Yo&&Po(this._$AH)?this._$AA.nextSibling.data=o:this.T(Co.createTextNode(o)),this._$AH=o}$(o){const{values:e,_$litType$:t}=o,r="number"==typeof t?this._$AC(o):(void 0===t.el&&(t.el=Zo.createElement(Qo(t.h,t.h[0]),this.options)),t);if(this._$AH?._$AD===r)this._$AH.p(e);else{const o=new ee(r,this),t=o.u(this.options);o.p(e),this.T(t),this._$AH=o}}_$AC(o){let e=Wo.get(o.strings);return void 0===e&&Wo.set(o.strings,e=new Zo(o)),e}k(o){Mo(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let t,r=0;for(const n of o)r===e.length?e.push(t=new te(this.O(_o()),this.O(_o()),this,this.options)):t=e[r],t._$AI(n),r++;r<e.length&&(this._$AR(t&&t._$AB.nextSibling,r),e.length=r)}_$AR(o=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);o&&o!==this._$AB;){const e=o.nextSibling;o.remove(),o=e}}setConnected(o){void 0===this._$AM&&(this._$Cv=o,this._$AP?.(o))}}class re{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,e,t,r,n){this.type=1,this._$AH=Yo,this._$AN=void 0,this.element=o,this.name=e,this._$AM=r,this.options=n,t.length>2||""!==t[0]||""!==t[1]?(this._$AH=Array(t.length-1).fill(new String),this.strings=t):this._$AH=Yo}_$AI(o,e=this,t,r){const n=this.strings;let i=!1;if(void 0===n)o=oe(this,o,e,0),i=!Po(o)||o!==this._$AH&&o!==Xo,i&&(this._$AH=o);else{const r=o;let a,b;for(o=n[0],a=0;a<n.length-1;a++)b=oe(this,r[t+a],e,a),b===Xo&&(b=this._$AH[a]),i||=!Po(b)||b!==this._$AH[a],b===Yo?o=Yo:o!==Yo&&(o+=(b??"")+n[a+1]),this._$AH[a]=b}i&&!r&&this.j(o)}j(o){o===Yo?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}}class ne extends re{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===Yo?void 0:o}}class ie extends re{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==Yo)}}class ae extends re{constructor(o,e,t,r,n){super(o,e,t,r,n),this.type=5}_$AI(o,e=this){if((o=oe(this,o,e,0)??Yo)===Xo)return;const t=this._$AH,r=o===Yo&&t!==Yo||o.capture!==t.capture||o.once!==t.once||o.passive!==t.passive,n=o!==Yo&&(t===Yo||r);r&&this.element.removeEventListener(this.name,this,t),n&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}}class be{constructor(o,e,t){this.element=o,this.type=6,this._$AN=void 0,this._$AM=e,this.options=t}get _$AU(){return this._$AM._$AU}_$AI(o){oe(this,o)}}const le={M:$o,P:Oo,A:Ao,C:1,L:Jo,R:ee,D:Lo,V:oe,I:te,H:re,N:ie,U:ae,B:ne,F:be},de=jo.litHtmlPolyfillSupport;de?.(Zo,te),(jo.litHtmlVersions??=[]).push("3.2.1");class se extends zo{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const o=super.createRenderRoot();return this.renderOptions.renderBefore??=o.firstChild,o}update(o){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this._$Do=((o,e,t)=>{const r=t?.renderBefore??e;let n=r._$litPart$;if(void 0===n){const o=t?.renderBefore??null;r._$litPart$=n=new te(e.insertBefore(_o(),o),o,void 0,t??{})}return n._$AI(o),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Xo}}se._$litElement$=!0,se.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:se});const ce=globalThis.litElementPolyfillSupport;ce?.({LitElement:se}),(globalThis.litElementVersions??=[]).push("4.1.1");const fe=o=>(e,t)=>{void 0!==t?t.addInitializer((()=>{customElements.define(o,e)})):customElements.define(o,e)},me={attribute:!0,type:String,converter:qo,reflect:!1,hasChanged:yo},pe=(o=me,e,t)=>{const{kind:r,metadata:n}=t;let i=globalThis.litPropertyMetadata.get(n);if(void 0===i&&globalThis.litPropertyMetadata.set(n,i=new Map),i.set(t.name,o),"accessor"===r){const{name:r}=t;return{set(t){const n=e.get.call(this);e.set.call(this,t),this.requestUpdate(r,n,o)},init(e){return void 0!==e&&this.P(r,void 0,o),e}}}if("setter"===r){const{name:r}=t;return function(t){const n=this[r];e.call(this,t),this.requestUpdate(r,n,o)}}throw Error("Unsupported decorator location: "+r)};function ge(o){return(e,t)=>"object"==typeof t?pe(o,e,t):((o,e,t)=>{const r=e.hasOwnProperty(t);return e.constructor.createProperty(t,r?{...o,wrapped:!0}:o),r?Object.getOwnPropertyDescriptor(e,t):void 0})(o,e,t)}function ue(o){return ge({...o,state:!0,attribute:!1})}var ve=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},he=function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)};let xe=class extends se{constructor(){super(...arguments),this.name=null,this.apiEndpoint=null}connectedCallback(){super.connectedCallback();const o={};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 t=e.getAttribute("name"),r=e.textContent;t&&r&&(o[t]=r)})),o.ContentType&&(o["Content-Type"]=o.ContentType,delete o.ContentType),this.apiEndpoint?.startsWith("http")||(this.apiEndpoint=new URL(this.apiEndpoint??"",document.location.origin).href),M(this.name,this.apiEndpoint,o,this.method)}render(){return Fo``}};ve([ge({type:String}),he("design:type",Object)],xe.prototype,"name",void 0),ve([ge({type:String}),he("design:type",Object)],xe.prototype,"apiEndpoint",void 0),ve([ge(),he("design:type",Object)],xe.prototype,"method",void 0),xe=ve([fe("qbo-api")],xe);var we=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},qe=function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)};let ye=class extends se{constructor(){super(...arguments),this.display="normal",this.trigger="header",this.renderInHost=!0,this.hasExpandedContent=!1,this.minimize=o=>{this.display="minimize"},this.normal=o=>{this.display="normal"},this.maximize=o=>{this.display="maximize"}}static{this.styles=[ao``]}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick),document.addEventListener("qbo-card-minimize",this.minimize),document.addEventListener("qbo-card-normal",this.normal),document.addEventListener("qbo-card-maximize",this.maximize),this.hasExpandedContent=null!=this.querySelector(".expanded"),"normal"!==this.display||this.hasExpandedContent||(this.display="maximize")}disconnectedCallback(){this.removeEventListener("click",this.handleClick),document.removeEventListener("qbo-card-minimize",this.minimize),document.removeEventListener("qbo-card-normal",this.normal),document.removeEventListener("qbo-card-maximize",this.maximize),super.disconnectedCallback()}attributeChangedCallback(o,e,t){super.attributeChangedCallback(o,e,t),"display"===o&&(this.classList.remove("normal","minimize","maximize"),t&&this.classList.add(t))}handleClick(o){o.composedPath()[0]===this.querySelector(this.trigger)&&(o.ctrlKey?this.shrink():this.grow())}shrink(){switch(this.display){case"minimize":return void(this.display="maximize");case"maximize":return void(this.display=this.hasExpandedContent?"normal":"minimize");default:return void(this.display="minimize")}}grow(){switch(this.display){case"minimize":return void(this.display=this.hasExpandedContent?"normal":"maximize");case"maximize":return void(this.display="minimize");default:return void(this.display="maximize")}}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}render(){return Fo`<slot></slot>`}};we([ge({reflect:!0}),qe("design:type",String)],ye.prototype,"display",void 0),we([ge(),qe("design:type",String)],ye.prototype,"trigger",void 0),we([ge(),qe("design:type",Boolean)],ye.prototype,"renderInHost",void 0),we([ge(),qe("design:type",Object)],ye.prototype,"columns",void 0),ye=we([fe("qbo-card")],ye);const ke=ao`:root{--qbo-font:Arial,sans-serif;--qbo-color:#333;--qbo-border-color:#999;--qbo-border-radius:4px;--qbo-background-color:#ffffff;--qbo-padding-horizontal:0.75rem;--qbo-padding-vertical:0.375rem;--qbo-padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal);--qbo-margin:0.5rem;--qbo-margin-horizontal:0.5rem;--qbo-margin-vertical:0.5rem;--qbo-focus-border-color:#80bdff;--qbo-focus-box-shadow:rgba(0, 123, 255, 0.25);--qbo-line-height:var(--qbo-line-height);--qbo-button-bg:#007bff;--qbo-button-border:#007bff;--qbo-button-bg-hover:#0056b3;--qbo-button-border-hover:#004085;--qbo-button-color:#ffffff;--qbo-button-padding:var(--qbo-padding);--qbo-button-border-radius:var(--qbo-border-radius);--qbo-nav-color:#333;--qbo-nav-background-color:#999;--qbo-nav-background-hover:#81181d;--qbo-nav-background-hover-color:#999;--qbo-primary-bg:#007bff;--qbo-primary-color:#ffffff;--qbo-primary-border:#007bff;--qbo-primary-hover-bg:#0056b3;--qbo-primary-hover-border:#004085;--qbo-secondary-bg:#6c757d;--qbo-secondary-color:#ffffff;--qbo-secondary-border:#6c757d;--qbo-secondary-hover-bg:#5a6268;--qbo-secondary-hover-border:#545b62;--qbo-success-bg:#28a745;--qbo-success-color:#ffffff;--qbo-success-border:#28a745;--qbo-success-hover-bg:#218838;--qbo-success-hover-border:#1e7e34;--qbo-danger-bg:#dc3545;--qbo-danger-color:#ffffff;--qbo-danger-border:#dc3545;--qbo-danger-hover-bg:#c82333;--qbo-danger-hover-border:#bd2130;--qbo-info-bg:#17a2b8;--qbo-info-color:#ffffff;--qbo-info-border:#17a2b8;--qbo-info-hover-bg:#138496;--qbo-info-hover-border:#117a8b;--qbo-light-bg:#f8f9fa;--qbo-light-color:#212529;--qbo-light-border:#f8f9fa;--qbo-light-hover-bg:#e2e6ea;--qbo-light-hover-border:#dae0e5;--qbo-dark-bg:#343a40;--qbo-dark-color:#ffffff;--qbo-dark-border:#343a40;--qbo-dark-hover-bg:#23272b;--qbo-dark-hover-border:#1d2124}.qbo-theme-dark{--qbo-color:#e0e0e0;--qbo-border-color:grey;--qbo-background-color:#121212;--qbo-nav-color:#000;--qbo-nav-background-color:#fff;--qbo-svg-filter:brightness(0) invert(1)}.qbo-theme-light{font-family:var(--qbo-font);color:var(--qbo-color);margin:0;background-color:var(--qbo-background-color)}.qbo-row{display:flex;flex-wrap:wrap;gap:var(--qbo-margin)}.qbo-card,.qbo-col{flex:1 0 0;max-width:100%;box-sizing:border-box}.qbo-col-1{flex:0 0 calc(8.33% - var(--qbo-margin)/ 2);max-width:calc(8.33% - var(--qbo-margin)/ 2)}.qbo-col-2{flex:0 0 calc(16.66% - var(--qbo-margin)/ 2);max-width:calc(16.66% - var(--qbo-margin)/ 2)}.qbo-col-3{flex:0 0 calc(25% - var(--qbo-margin)/ 2);max-width:calc(25% - var(--qbo-margin)/ 2)}.qbo-col-4{flex:0 0 calc(33.33% - var(--qbo-margin)/ 2);max-width:calc(33.33% - var(--qbo-margin)/ 2)}.qbo-col-5{flex:0 0 calc(41.66% - var(--qbo-margin)/ 2);max-width:calc(41.66% - var(--qbo-margin)/ 2)}.qbo-col-6{flex:0 0 calc(50% - var(--qbo-margin)/ 2);max-width:calc(50% - var(--qbo-margin)/ 2)}.qbo-col-7{flex:0 0 calc(58.33% - var(--qbo-margin)/ 2);max-width:calc(58.33% - var(--qbo-margin)/ 2)}.qbo-col-8{flex:0 0 calc(66.66% - var(--qbo-margin)/ 2);max-width:calc(66.66% - var(--qbo-margin)/ 2)}.qbo-col-9{flex:0 0 calc(75% - var(--qbo-margin)/ 2);max-width:calc(75% - var(--qbo-margin)/ 2)}.qbo-col-10{flex:0 0 calc(83.33% - var(--qbo-margin)/ 2);max-width:calc(83.33% - var(--qbo-margin)/ 2)}.qbo-col-11{flex:0 0 calc(91.66% - var(--qbo-margin)/ 2);max-width:calc(91.66% - var(--qbo-margin)/ 2)}.qbo-col-12{flex:0 0 calc(100% - var(--qbo-margin)/ 2);max-width:calc(100% - var(--qbo-margin)/ 2)}.qbo-card{border:1px solid var(--qbo-border-color);border-radius:var(--qbo-border-radius);box-shadow:2px 2px 3px var(--qbo-border-color);padding:.5em;overflow:auto}.qbo-card-left{margin-left:.5em}.qbo-card-right{margin-right:.5em}svg{height:1rem;width:1rem}.qbo-form{margin:0 auto;padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal)}.qbo-form label{display:flex;flex-direction:column;font-size:.9rem;font-weight:100;color:var(--qbo-color);font-family:var(--qbo-font);margin-top:calc(var(--qbo-margin) * 1.5);margin-bottom:calc(var(--qbo-margin) * .25)}.qbo-form small{display:block;font-size:.8rem;color:color-mix(in srgb,var(--qbo-color) 60%,transparent)}.qbo-form input,.qbo-form select,.qbo-form textarea{width:100%;box-sizing:border-box;padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal);font-size:1rem;line-height:1;color:var(--qbo-color);background-color:var(--qbo-background-color);background-clip:padding-box;border:1px solid var(--qbo-border-color);border-radius:var(--qbo-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;font-family:var(--qbo-font);margin-top:.1rem;margin-right:1rem}.qbo-form input[type=color]{width:3rem;height:calc(1.5em + .75rem + 0px);padding:.375rem;background-color:transparent;border:1px solid #ced4da;border-radius:.25rem;-webkit-appearance:none}.qbo-form input:focus,.qbo-form select:focus,.qbo-form textarea:focus{color:var(--qbo-color);border-color:var(--qbo-focus-border-color);outline:0;box-shadow:0 0 0 .2rem var(--qbo-focus-box-shadow)}.qbo-form input[disabled],.qbo-form select[disabled],.qbo-form textarea[disabled]{color:color-mix(in oklab,var(--qbo-color) 50%,var(--qbo-background-color));cursor:not-allowed;opacity:1}.qbo-form div{display:flex;align-items:center}.qbo-form div span{display:inline-flex;font-weight:100;align-items:center;padding:.375rem .75rem;font-size:1rem;text-align:center;white-space:nowrap;border-right:none;border-radius:.25rem 0 0 .25rem}.qbo-form div input,.qbo-form div select,.qbo-form div textarea{flex:1 1 auto;padding:.375rem .75rem;font-size:1rem;background-clip:padding-box;margin:0}.qbo-form .form-check{display:flex;align-items:center;margin-bottom:1rem}.qbo-form .form-check input[type=checkbox],.qbo-form .form-check input[type=radio]{width:auto;margin-right:.5rem}.qbo-form .form-check label{margin-bottom:0;font-weight:400;color:var(--qbo-color)}.qbo-button,button{display:inline-block;font-weight:400;color:var(--qbo-color);background-color:var(--qbo-background-color);border:1px solid var(--qbo-border-color);border-radius:var(--qbo-border-radius);padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal);font-size:1rem;line-height:var(--qbo-line-height);text-align:center;vertical-align:middle;cursor:pointer;margin-right:var(--qbo-margin);text-decoration:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.qbo-button:focus,.qbo-button:hover,button:focus,button:hover{background-color:var(--qbo-border-color);text-decoration:none;line-height:var(--qbo-line-height);border-radius:var(--qbo-border-radius);transition:background-color .15s ease-in-out,border-color .15s ease-in-out}.qbo-button:disabled,button:disabled{opacity:.65;cursor:not-allowed;background-color:var(--qbo-button-bg);border-color:var(--qbo-button-border);color:var(--qbo-button-color)}.primary{background-color:var(--qbo-primary-bg);border:1px solid var(--qbo-primary-border);color:var(--qbo-primary-color)}.primary:focus,.primary:hover{background-color:var(--qbo-primary-hover-bg);border:1px solid var(--qbo-primary-hover-border)}.secondary{background-color:var(--qbo-secondary-bg);border:1px solid var(--qbo-secondary-border);color:var(--qbo-secondary-color)}.secondary:focus,.secondary:hover{background-color:var(--qbo-secondary-hover-bg);border:1px solid var(--qbo-secondary-hover-border)}.icon{height:1rem;width:1rem;filter:var(--qbo-svg-filter)}.icon use{display:block}.icon.right{position:relative;padding-left:1.25rem;background-image:url("https://devqmp.quandis.io/core/ui/images/qbo-icons.svg#i-arrow-down-circle");background-repeat:no-repeat;background-position:left center}nav{--qbo-background-color:var(--qbo-nav-background-color, black);--qbo-color:var(--qbo-nav-color, white);--qbo-svg-filter:brightness(0) invert(1);display:flex;flex-direction:row;color:var(--qbo-nav-color,#fff);background-color:var(--qbo-nav-background-color,#000)}nav menu{list-style-type:none;padding-inline-start:20px;margin-block-start:0.5em;margin-block-end:0.5em}nav menu li{border:1px solid var(--qbo-nav-background-color,#000);cursor:pointer;display:inline-block;line-height:var(--qbo-line-height);padding:5px}nav menu li svg{filter:invert(0)!important}nav menu li:focus,nav menu li:hover{background-color:var(--qbo-nav-background-hover,grey);border:1px solid var(--qbo-nav-background-hover);border-radius:.5em;color:#fff;text-decoration:none}nav menu li:focus span>svg,nav menu li:focus>svg,nav menu li:hover span>svg,nav menu li:hover>svg{filter:var(--qbo-svg-filter)!important}nav>img{padding-inline-start:8px}nav>span{font-weight:700;margin-top:17px;padding-inline-start:10px}nav a{color:var(--qbo-color)}nav svg.label{vertical-align:text-top}nav svg.toggle{vertical-align:text-bottom}menu.qbo-toolbar{list-style-type:none;padding-left:0;display:flex;flex-direction:row;margin-right:var(--qbo-margin)}menu.qbo-toolbar>li{display:inline-block;margin-right:0;color:var(--qbo-color);background-color:var(--qbo-background-color);border:1px solid var(--qbo-border-color);padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal);line-height:var(--qbo-line-height);cursor:pointer;border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;text-decoration:none}menu.qbo-toolbar>li:first-child{border-top-left-radius:var(--qbo-border-radius);border-bottom-left-radius:var(--qbo-border-radius)}menu.qbo-toolbar>li:last-child{border-top-right-radius:var(--qbo-border-radius);border-bottom-right-radius:var(--qbo-border-radius)}menu.qbo-toolbar>li:focus,menu.qbo-toolbar>li:hover{background-color:var(--qbo-border-color);text-decoration:none;line-height:var(--qbo-line-height);transition:background-color .15s ease-in-out,border-color .15s ease-in-out}menu.qbo-toolbar.vertical{flex-direction:column;align-items:flex-start}menu.qbo-toolbar.vertical li:first-child{border-top-right-radius:var(--qbo-border-radius);border-top-left-radius:var(--qbo-border-radius);border-bottom-left-radius:0}menu.qbo-toolbar.vertical li:last-child{border-bottom-right-radius:var(--qbo-border-radius);border-bottom-left-radius:var(--qbo-border-radius);border-top-right-radius:0}qbo-menu aside,qbo-menu menu{background-color:var(--qbo-background-color);border:1px solid var(--qbo-border-color);border-radius:var(--qbo-border-radius);box-sizing:border-box;height:auto;list-style-type:none;margin:0;padding-left:0;position:absolute;visibility:hidden}qbo-menu aside.open,qbo-menu menu.open{visibility:visible}qbo-menu aside{width:0;margin:var(--qbo-margin);padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal);padding-bottom:.6em;overflow-y:scroll;top:53px!important;width:100%;background-color:#f0f0f0;border:0;border-radius:0;border-bottom-left-radius:.7em;border-bottom-right-radius:.7em;color:var(--qbo-nav-color,#fff);height:auto;left:0;margin:0;overflow-y:auto}qbo-menu aside>h1{color:var(--qbo-color);margin-block-end:0;margin-left:1em}qbo-menu aside>p{color:var(--qbo-color);margin-block-start:0;margin-left:1.2em}qbo-menu li{display:list-item!important;padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal);line-height:var(--qbo-line-height);text-align:left;white-space:nowrap;cursor:pointer;text-decoration:none}qbo-menu li:hover{background-color:var(--qbo-border-color)}qbo-menu menu li.disabled{color:#6c757d;pointer-events:none;background-color:transparent}qbo-menu menu .dropdown-divider{height:1px;margin:.5rem 0;overflow:hidden;background-color:#e9ecef}qbo-menu menu .dropdown-header{padding:.5rem 1rem;margin-bottom:0;font-size:.875rem;color:#6c757d;white-space:nowrap}qbo-popover{background-color:#f0f0f0;border:1px solid #81181d;border-radius:var(--qbo-border-radius);color:var(--qbo-color);margin:.6em 0 0 0;padding:0 1em 0 1em;position:absolute;visibility:hidden}qbo-popover h3{margin-block-end:0.5em;margin-block-start:0.5em}qbo-popover p{margin-block-start:0}qbo-popover.open{visibility:visible}details>a{margin-left:1.5em}div.qbo-row-subsequent{margin-top:.5em}h3.title{margin-block-end:0;margin-block-start:0.5em;margin-left:.5em}p.detail{margin-block-end:0.5em;margin-block-start:0;margin-left:.5em}div.qbo-col-noborder{border:0!important;box-shadow:initial}`,ze=ao`
|
|
2
|
+
!function(o,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.qbo4=e():(o.qbo4=o.qbo4||{},o.qbo4.ui=e())}(self,(()=>(()=>{var o={630:(o,e,t)=>{var r;!function(o){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof t.g?t.g:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(o){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(o){}}(),r=n(o);function n(o,e){return function(t,r){Object.defineProperty(o,t,{configurable:!0,writable:!0,value:r}),e&&e(t,r)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(o,e){var t=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,d={create:a?function(){return N(Object.create(null))}:b?function(){return N({__proto__:null})}:function(){return N({})},has:l?function(o,e){return t.call(o,e)}:function(o,e){return e in o},get:l?function(o,e){return t.call(o,e)?o[e]:void 0}:function(o,e){return o[e]}},s=Object.getPrototypeOf(Function),c="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var o={},e=[],t=function(){function o(o,e,t){this._index=0,this._keys=o,this._values=e,this._selector=t}return o.prototype["@@iterator"]=function(){return this},o.prototype[i]=function(){return this},o.prototype.next=function(){var o=this._index;if(o>=0&&o<this._keys.length){var t=this._selector(this._keys[o],this._values[o]);return o+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:t,done:!1}}return{value:void 0,done:!0}},o.prototype.throw=function(o){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),o},o.prototype.return=function(o){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:o,done:!0}},o}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=o,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(o){return this._find(o,!1)>=0},e.prototype.get=function(o){var e=this._find(o,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(o,e){var t=this._find(o,!0);return this._values[t]=e,this},e.prototype.delete=function(e){var t=this._find(e,!1);if(t>=0){for(var r=this._keys.length,n=t+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--,P(e,this._cacheKey)&&(this._cacheKey=o,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=o,this._cacheIndex=-2},e.prototype.keys=function(){return new t(this._keys,this._values,r)},e.prototype.values=function(){return new t(this._keys,this._values,n)},e.prototype.entries=function(){return new t(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(o,e){if(!P(this._cacheKey,o)){this._cacheIndex=-1;for(var t=0;t<this._keys.length;t++)if(P(this._keys[t],o)){this._cacheIndex=t;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(o),this._values.push(void 0)),this._cacheIndex},e}();function r(o,e){return o}function n(o,e){return e}function a(o,e){return[o,e]}}(),f="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function o(){this._map=new c}return Object.defineProperty(o.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),o.prototype.has=function(o){return this._map.has(o)},o.prototype.add=function(o){return this._map.set(o,o),this},o.prototype.delete=function(o){return this._map.delete(o)},o.prototype.clear=function(){this._map.clear()},o.prototype.keys=function(){return this._map.keys()},o.prototype.values=function(){return this._map.keys()},o.prototype.entries=function(){return this._map.entries()},o.prototype["@@iterator"]=function(){return this.keys()},o.prototype[i]=function(){return this.keys()},o}(),m="function"==typeof WeakMap?WeakMap:function(){var o=d.create(),e=r();return function(){function o(){this._key=r()}return o.prototype.has=function(o){var e=n(o,!1);return void 0!==e&&d.has(e,this._key)},o.prototype.get=function(o){var e=n(o,!1);return void 0!==e?d.get(e,this._key):void 0},o.prototype.set=function(o,e){return n(o,!0)[this._key]=e,this},o.prototype.delete=function(o){var e=n(o,!1);return void 0!==e&&delete e[this._key]},o.prototype.clear=function(){this._key=r()},o}();function r(){var e;do{e="@@WeakMap@@"+a()}while(d.has(o,e));return o[e]=!0,e}function n(o,r){if(!t.call(o,e)){if(!r)return;Object.defineProperty(o,e,{value:d.create()})}return o[e]}function i(o,e){for(var t=0;t<e;++t)o[t]=255*Math.random()|0;return o}function a(){var o=function(o){if("function"==typeof Uint8Array){var e=new Uint8Array(o);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):i(e,o),e}return i(new Array(o),o)}(16);o[6]=79&o[6]|64,o[8]=191&o[8]|128;for(var e="",t=0;t<16;++t){var r=o[t];4!==t&&6!==t&&8!==t||(e+="-"),r<16&&(e+="0"),e+=r.toString(16).toLowerCase()}return e}}(),p=r?Symbol.for("@reflect-metadata:registry"):void 0,g=function(){var o;return!j(p)&&R(e.Reflect)&&Object.isExtensible(e.Reflect)&&(o=e.Reflect[p]),j(o)&&(o=function(){var o,t,r,n;j(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(o=function(o){var e=o.defineMetadata,t=o.hasOwnMetadata,r=o.getOwnMetadata,n=o.getOwnMetadataKeys,i=o.deleteMetadata,a=new m;return{isProviderFor:function(o,e){var t=a.get(o);return!(j(t)||!t.has(e))||!!n(o,e).length&&(j(t)&&(t=new f,a.set(o,t)),t.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:t,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:n,OrdinaryDeleteMetadata:i}}(e.Reflect));var i=new m,a={registerProvider:b,getProvider:d,setProvider:g};return a;function b(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case o===e:break;case j(t):t=e;break;case t===e:break;case j(r):r=e;break;case r===e:break;default:void 0===n&&(n=new f),n.add(e)}}function l(e,i){if(!j(t)){if(t.isProviderFor(e,i))return t;if(!j(r)){if(r.isProviderFor(e,i))return t;if(!j(n))for(var a=L(n);;){var b=T(a);if(!b)return;var l=B(b);if(l.isProviderFor(e,i))return I(a),l}}}if(!j(o)&&o.isProviderFor(e,i))return o}function d(o,e){var t,r=i.get(o);return j(r)||(t=r.get(e)),j(t)?(j(t=l(o,e))||(j(r)&&(r=new c,i.set(o,r)),r.set(e,t)),t):t}function s(o){if(j(o))throw new TypeError;return t===o||r===o||!j(n)&&n.has(o)}function g(o,e,t){if(!s(t))throw new Error("Metadata provider not registered.");var r=d(o,e);if(r!==t){if(!j(r))return!1;var n=i.get(o);j(n)&&(n=new c,i.set(o,n)),n.set(e,t)}return!0}}()),!j(p)&&R(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:o}),o}(),u=function(o){var e=new m,t={isProviderFor:function(o,t){var r=e.get(o);return!j(r)&&r.has(t)},OrdinaryDefineOwnMetadata:function(o,e,t,n){r(t,n,!0).set(o,e)},OrdinaryHasOwnMetadata:function(o,e,t){var n=r(e,t,!1);return!j(n)&&O(n.has(o))},OrdinaryGetOwnMetadata:function(o,e,t){var n=r(e,t,!1);if(!j(n))return n.get(o)},OrdinaryOwnMetadataKeys:function(o,e){var t=[],n=r(o,e,!1);if(j(n))return t;for(var i=L(n.keys()),a=0;;){var b=T(i);if(!b)return t.length=a,t;var l=B(b);try{t[a]=l}catch(o){try{I(i)}finally{throw o}}a++}},OrdinaryDeleteMetadata:function(o,t,n){var i=r(t,n,!1);if(j(i))return!1;if(!i.delete(o))return!1;if(0===i.size){var a=e.get(t);j(a)||(a.delete(n),0===a.size&&e.delete(a))}return!0}};return g.registerProvider(t),t;function r(r,n,i){var a=e.get(r),b=!1;if(j(a)){if(!i)return;a=new c,e.set(r,a),b=!0}var l=a.get(n);if(j(l)){if(!i)return;if(l=new c,a.set(n,l),!o.setProvider(r,n,t))throw a.delete(n),b&&e.delete(r),new Error("Wrong provider for target.")}return l}}(g);function v(o,e,t){if(h(o,e,t))return!0;var r=D(e);return!S(r)&&v(o,r,t)}function h(o,e,t){var r=H(e,t,!1);return!j(r)&&O(r.OrdinaryHasOwnMetadata(o,e,t))}function x(o,e,t){if(h(o,e,t))return w(o,e,t);var r=D(e);return S(r)?void 0:x(o,r,t)}function w(o,e,t){var r=H(e,t,!1);if(!j(r))return r.OrdinaryGetOwnMetadata(o,e,t)}function q(o,e,t,r){H(t,r,!0).OrdinaryDefineOwnMetadata(o,e,t,r)}function y(o,e){var t=k(o,e),r=D(o);if(null===r)return t;var n=y(r,e);if(n.length<=0)return t;if(t.length<=0)return n;for(var i=new f,a=[],b=0,l=t;b<l.length;b++){var d=l[b];i.has(d)||(i.add(d),a.push(d))}for(var s=0,c=n;s<c.length;s++)d=c[s],i.has(d)||(i.add(d),a.push(d));return a}function k(o,e){var t=H(o,e,!1);return t?t.OrdinaryOwnMetadataKeys(o,e):[]}function z(o){if(null===o)return 1;switch(typeof o){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===o?1:6;default:return 6}}function j(o){return void 0===o}function S(o){return null===o}function R(o){return"object"==typeof o?null!==o:"function"==typeof o}function $(o,e){switch(z(o)){case 0:case 1:case 2:case 3:case 4:case 5:return o}var t=3===e?"string":5===e?"number":"default",r=M(o,n);if(void 0!==r){var i=r.call(o,t);if(R(i))throw new TypeError;return i}return function(o,e){if("string"===e){var t=o.toString;if(C(t)&&!R(n=t.call(o)))return n;if(C(r=o.valueOf)&&!R(n=r.call(o)))return n}else{var r;if(C(r=o.valueOf)&&!R(n=r.call(o)))return n;var n,i=o.toString;if(C(i)&&!R(n=i.call(o)))return n}throw new TypeError}(o,"default"===t?"number":t)}function O(o){return!!o}function A(o){var e=$(o,3);return"symbol"==typeof e?e:function(o){return""+o}(e)}function E(o){return Array.isArray?Array.isArray(o):o instanceof Object?o instanceof Array:"[object Array]"===Object.prototype.toString.call(o)}function C(o){return"function"==typeof o}function _(o){return"function"==typeof o}function P(o,e){return o===e||o!=o&&e!=e}function M(o,e){var t=o[e];if(null!=t){if(!C(t))throw new TypeError;return t}}function L(o){var e=M(o,i);if(!C(e))throw new TypeError;var t=e.call(o);if(!R(t))throw new TypeError;return t}function B(o){return o.value}function T(o){var e=o.next();return!e.done&&e}function I(o){var e=o.return;e&&e.call(o)}function D(o){var e=Object.getPrototypeOf(o);if("function"!=typeof o||o===s)return e;if(e!==s)return e;var t=o.prototype,r=t&&Object.getPrototypeOf(t);if(null==r||r===Object.prototype)return e;var n=r.constructor;return"function"!=typeof n||n===o?e:n}function H(o,e,t){var r=g.getProvider(o,e);if(!j(r))return r;if(t){if(g.setProvider(o,e,u))return u;throw new Error("Illegal state.")}}function N(o){return o.__=void 0,delete o.__,o}o("decorate",(function(o,e,t,r){if(j(t)){if(!E(o))throw new TypeError;if(!_(e))throw new TypeError;return function(o,e){for(var t=o.length-1;t>=0;--t){var r=(0,o[t])(e);if(!j(r)&&!S(r)){if(!_(r))throw new TypeError;e=r}}return e}(o,e)}if(!E(o))throw new TypeError;if(!R(e))throw new TypeError;if(!R(r)&&!j(r)&&!S(r))throw new TypeError;return S(r)&&(r=void 0),function(o,e,t,r){for(var n=o.length-1;n>=0;--n){var i=(0,o[n])(e,t,r);if(!j(i)&&!S(i)){if(!R(i))throw new TypeError;r=i}}return r}(o,e,t=A(t),r)})),o("metadata",(function(o,e){return function(t,r){if(!R(t))throw new TypeError;if(!j(r)&&!function(o){switch(z(o)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;q(o,e,t,r)}})),o("defineMetadata",(function(o,e,t,r){if(!R(t))throw new TypeError;return j(r)||(r=A(r)),q(o,e,t,r)})),o("hasMetadata",(function(o,e,t){if(!R(e))throw new TypeError;return j(t)||(t=A(t)),v(o,e,t)})),o("hasOwnMetadata",(function(o,e,t){if(!R(e))throw new TypeError;return j(t)||(t=A(t)),h(o,e,t)})),o("getMetadata",(function(o,e,t){if(!R(e))throw new TypeError;return j(t)||(t=A(t)),x(o,e,t)})),o("getOwnMetadata",(function(o,e,t){if(!R(e))throw new TypeError;return j(t)||(t=A(t)),w(o,e,t)})),o("getMetadataKeys",(function(o,e){if(!R(o))throw new TypeError;return j(e)||(e=A(e)),y(o,e)})),o("getOwnMetadataKeys",(function(o,e){if(!R(o))throw new TypeError;return j(e)||(e=A(e)),k(o,e)})),o("deleteMetadata",(function(o,e,t){if(!R(e))throw new TypeError;if(j(t)||(t=A(t)),!R(e))throw new TypeError;j(t)||(t=A(t));var r=H(e,t,!1);return!j(r)&&r.OrdinaryDeleteMetadata(o,e,t)}))}(r,e),void 0===e.Reflect&&(e.Reflect=o)}()}(r||(r={}))}},e={};function t(r){var n=e[r];if(void 0!==n)return n.exports;var i=e[r]={exports:{}};return o[r](i,i.exports,t),i.exports}t.d=(o,e)=>{for(var r in e)t.o(e,r)&&!t.o(o,r)&&Object.defineProperty(o,r,{enumerable:!0,get:e[r]})},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(o){if("object"==typeof window)return window}}(),t.o=(o,e)=>Object.prototype.hasOwnProperty.call(o,e),t.r=o=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var r={};return(()=>{"use strict";var o;t.r(r),t.d(r,{ContextMenu:()=>Oe,Dependency:()=>H,DependencyValidator:()=>F,DependencyValidatorOptions:()=>N,DependencyValidatorOptionsToken:()=>G,EmailValidator:()=>I,ExistsValidator:()=>D,IApiServiceToken:()=>O,Mode:()=>Vr,QboApiElement:()=>xe,QboCard:()=>ye,QboDataList:()=>Le,QboDocViewer:()=>Ie,QboFetch:()=>_e,QboFetchMixin:()=>Ce,QboFormEdit:()=>Ge,QboFormElement:()=>Xe,QboIcon:()=>mt,QboMenu:()=>xr,QboMicrophone:()=>kr,QboPaginate:()=>Sr,QboPopover:()=>Or,QboPopup:()=>Pr,QboPopupListener:()=>Br,QboResize:()=>Hr,QboSelect:()=>Ur,QboSelectable:()=>Yr,QboTable:()=>Qr,QboUserPreferences:()=>on,QboValidate:()=>ln,ResizeType:()=>Tr,RestApiService:()=>P,Services:()=>R,ValidateToken:()=>A,ZipCodeValidator:()=>T,bootstrap:()=>ze,bootstrapicons:()=>je,elementClearValue:()=>K,elementData:()=>sn,elementDate:()=>cn,elementDateTime:()=>fn,elementMoney:()=>mn,elementOptions:()=>X,elementPercentage:()=>pn,elementResetValue:()=>W,elementSelectorAll:()=>Y,formatDate:()=>nn,getApiService:()=>L,getArray:()=>E,getUserPreference:()=>tn,join:()=>rn,matches:()=>dn,qbocss:()=>ke,qboui:()=>Se,registerRestApi:()=>M,replicate:()=>_,services:()=>$,setUserPreference:()=>en,substitute:()=>C}),t(630),function(o){o[o.Transient=0]="Transient",o[o.Singleton=1]="Singleton",o[o.ResolutionScoped=2]="ResolutionScoped",o[o.ContainerScoped=3]="ContainerScoped"}(o||(o={}));const e=o;var n=function(o,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var t in e)e.hasOwnProperty(t)&&(o[t]=e[t])},n(o,e)};function i(o,e){function t(){this.constructor=o}n(o,e),o.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}function a(o){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&o[e],r=0;if(t)return t.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&r>=o.length&&(o=void 0),{value:o&&o[r++],done:!o}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(o,e){var t="function"==typeof Symbol&&o[Symbol.iterator];if(!t)return o;var r,n,i=t.call(o),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(o){n={error:o}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(n)throw n.error}}return a}function l(){for(var o=[],e=0;e<arguments.length;e++)o=o.concat(b(arguments[e]));return o}function d(o){return!!o.useClass}function s(o){return!!o.useFactory}var c=function(){function o(o){this.wrap=o,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}return o.prototype.createProxy=function(o){var e,t=this,r=!1;return new Proxy({},this.createHandler((function(){return r||(e=o(t.wrap()),r=!0),e})))},o.prototype.createHandler=function(o){var e={};return this.reflectMethods.forEach((function(t){e[t]=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e[0]=o(),Reflect[t].apply(void 0,l(e))}})),e},o}();function f(o){return"string"==typeof o||"symbol"==typeof o}function m(o){return"object"==typeof o&&"token"in o&&"transform"in o}function p(o){return!!o.useToken}function g(o){return null!=o.useValue}const u=function(){function o(){this._registryMap=new Map}return o.prototype.entries=function(){return this._registryMap.entries()},o.prototype.getAll=function(o){return this.ensure(o),this._registryMap.get(o)},o.prototype.get=function(o){this.ensure(o);var e=this._registryMap.get(o);return e[e.length-1]||null},o.prototype.set=function(o,e){this.ensure(o),this._registryMap.get(o).push(e)},o.prototype.setAll=function(o,e){this._registryMap.set(o,e)},o.prototype.has=function(o){return this.ensure(o),this._registryMap.get(o).length>0},o.prototype.clear=function(){this._registryMap.clear()},o.prototype.ensure=function(o){this._registryMap.has(o)||this._registryMap.set(o,[])},o}(),v=function(o){function e(){return null!==o&&o.apply(this,arguments)||this}return i(e,o),e}(u),h=function(){this.scopedResolutions=new Map};var x=function(o){function e(){return null!==o&&o.apply(this,arguments)||this}return i(e,o),e}(u),w=function(o){function e(){return null!==o&&o.apply(this,arguments)||this}return i(e,o),e}(u);const q=function(){this.preResolution=new x,this.postResolution=new w};var y=new Map,k=function(){function o(o){this.parent=o,this._registry=new v,this.interceptors=new q,this.disposed=!1,this.disposables=new Set}return o.prototype.register=function(o,t,r){var n;if(void 0===r&&(r={lifecycle:e.Transient}),this.ensureNotDisposed(),n=function(o){return d(o)||g(o)||p(o)||s(o)}(t)?t:{useClass:t},p(n))for(var i=[o],a=n;null!=a;){var b=a.useToken;if(i.includes(b))throw new Error("Token registration cycle detected! "+l(i,[b]).join(" -> "));i.push(b);var c=this._registry.get(b);a=c&&p(c.provider)?c.provider:null}if((r.lifecycle===e.Singleton||r.lifecycle==e.ContainerScoped||r.lifecycle==e.ResolutionScoped)&&(g(n)||s(n)))throw new Error('Cannot use lifecycle "'+e[r.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(o,{provider:n,options:r}),this},o.prototype.registerType=function(o,e){return this.ensureNotDisposed(),f(e)?this.register(o,{useToken:e}):this.register(o,{useClass:e})},o.prototype.registerInstance=function(o,e){return this.ensureNotDisposed(),this.register(o,{useValue:e})},o.prototype.registerSingleton=function(o,t){if(this.ensureNotDisposed(),f(o)){if(f(t))return this.register(o,{useToken:t},{lifecycle:e.Singleton});if(t)return this.register(o,{useClass:t},{lifecycle:e.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var r=o;return t&&!f(t)&&(r=t),this.register(o,{useClass:r},{lifecycle:e.Singleton})},o.prototype.resolve=function(o,e){void 0===e&&(e=new h),this.ensureNotDisposed();var t=this.getRegistration(o);if(!t&&f(o))throw new Error('Attempted to resolve unregistered dependency token: "'+o.toString()+'"');if(this.executePreResolutionInterceptor(o,"Single"),t){var r=this.resolveRegistration(t,e);return this.executePostResolutionInterceptor(o,r,"Single"),r}if(function(o){return"function"==typeof o||o instanceof c}(o))return r=this.construct(o,e),this.executePostResolutionInterceptor(o,r,"Single"),r;throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")},o.prototype.executePreResolutionInterceptor=function(o,e){var t,r;if(this.interceptors.preResolution.has(o)){var n=[];try{for(var i=a(this.interceptors.preResolution.getAll(o)),b=i.next();!b.done;b=i.next()){var l=b.value;"Once"!=l.options.frequency&&n.push(l),l.callback(o,e)}}catch(o){t={error:o}}finally{try{b&&!b.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}this.interceptors.preResolution.setAll(o,n)}},o.prototype.executePostResolutionInterceptor=function(o,e,t){var r,n;if(this.interceptors.postResolution.has(o)){var i=[];try{for(var b=a(this.interceptors.postResolution.getAll(o)),l=b.next();!l.done;l=b.next()){var d=l.value;"Once"!=d.options.frequency&&i.push(d),d.callback(o,e,t)}}catch(o){r={error:o}}finally{try{l&&!l.done&&(n=b.return)&&n.call(b)}finally{if(r)throw r.error}}this.interceptors.postResolution.setAll(o,i)}},o.prototype.resolveRegistration=function(o,t){if(this.ensureNotDisposed(),o.options.lifecycle===e.ResolutionScoped&&t.scopedResolutions.has(o))return t.scopedResolutions.get(o);var r,n=o.options.lifecycle===e.Singleton,i=o.options.lifecycle===e.ContainerScoped,a=n||i;return r=g(o.provider)?o.provider.useValue:p(o.provider)?a?o.instance||(o.instance=this.resolve(o.provider.useToken,t)):this.resolve(o.provider.useToken,t):d(o.provider)?a?o.instance||(o.instance=this.construct(o.provider.useClass,t)):this.construct(o.provider.useClass,t):s(o.provider)?o.provider.useFactory(this):this.construct(o.provider,t),o.options.lifecycle===e.ResolutionScoped&&t.scopedResolutions.set(o,r),r},o.prototype.resolveAll=function(o,e){var t=this;void 0===e&&(e=new h),this.ensureNotDisposed();var r=this.getAllRegistrations(o);if(!r&&f(o))throw new Error('Attempted to resolve unregistered dependency token: "'+o.toString()+'"');if(this.executePreResolutionInterceptor(o,"All"),r){var n=r.map((function(o){return t.resolveRegistration(o,e)}));return this.executePostResolutionInterceptor(o,n,"All"),n}var i=[this.construct(o,e)];return this.executePostResolutionInterceptor(o,i,"All"),i},o.prototype.isRegistered=function(o,e){return void 0===e&&(e=!1),this.ensureNotDisposed(),this._registry.has(o)||e&&(this.parent||!1)&&this.parent.isRegistered(o,!0)},o.prototype.reset=function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()},o.prototype.clearInstances=function(){var o,e;this.ensureNotDisposed();try{for(var t=a(this._registry.entries()),r=t.next();!r.done;r=t.next()){var n=b(r.value,2),i=n[0],l=n[1];this._registry.setAll(i,l.filter((function(o){return!g(o.provider)})).map((function(o){return o.instance=void 0,o})))}}catch(e){o={error:e}}finally{try{r&&!r.done&&(e=t.return)&&e.call(t)}finally{if(o)throw o.error}}},o.prototype.createChildContainer=function(){var t,r;this.ensureNotDisposed();var n=new o(this);try{for(var i=a(this._registry.entries()),l=i.next();!l.done;l=i.next()){var d=b(l.value,2),s=d[0],c=d[1];c.some((function(o){return o.options.lifecycle===e.ContainerScoped}))&&n._registry.setAll(s,c.map((function(o){return o.options.lifecycle===e.ContainerScoped?{provider:o.provider,options:o.options}:o})))}}catch(o){t={error:o}}finally{try{l&&!l.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},o.prototype.beforeResolution=function(o,e,t){void 0===t&&(t={frequency:"Always"}),this.interceptors.preResolution.set(o,{callback:e,options:t})},o.prototype.afterResolution=function(o,e,t){void 0===t&&(t={frequency:"Always"}),this.interceptors.postResolution.set(o,{callback:e,options:t})},o.prototype.dispose=function(){return function(o,e,t,r){return new(t||(t=Promise))((function(n,i){function a(o){try{l(r.next(o))}catch(o){i(o)}}function b(o){try{l(r.throw(o))}catch(o){i(o)}}function l(o){var e;o.done?n(o.value):(e=o.value,e instanceof t?e:new t((function(o){o(e)}))).then(a,b)}l((r=r.apply(o,e||[])).next())}))}(this,void 0,void 0,(function(){var o;return function(o,e){var t,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(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=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(o,a)}catch(o){i=[6,o],r=0}finally{t=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,o=[],this.disposables.forEach((function(e){var t=e.dispose();t&&o.push(t)})),[4,Promise.all(o)];case 1:return e.sent(),[2]}}))}))},o.prototype.getRegistration=function(o){return this.isRegistered(o)?this._registry.get(o):this.parent?this.parent.getRegistration(o):null},o.prototype.getAllRegistrations=function(o){return this.isRegistered(o)?this._registry.getAll(o):this.parent?this.parent.getAllRegistrations(o):null},o.prototype.construct=function(o,e){var t=this;if(o instanceof c)return o.createProxy((function(o){return t.resolve(o,e)}));var r,n=function(){var r=y.get(o);if(!r||0===r.length){if(0===o.length)return new o;throw new Error('TypeInfo not known for "'+o.name+'"')}var n=r.map(t.resolveParams(e,o));return new(o.bind.apply(o,l([void 0],n)))}();return"function"!=typeof(r=n).dispose||r.dispose.length>0||this.disposables.add(n),n},o.prototype.resolveParams=function(o,e){var t=this;return function(r,n){var i,a,d,s;try{return"object"==typeof(s=r)&&"token"in s&&"multiple"in s?m(r)?r.multiple?(i=t.resolve(r.transform)).transform.apply(i,l([t.resolveAll(r.token)],r.transformArgs)):(a=t.resolve(r.transform)).transform.apply(a,l([t.resolve(r.token,o)],r.transformArgs)):r.multiple?t.resolveAll(r.token):t.resolve(r.token,o):m(r)?(d=t.resolve(r.transform,o)).transform.apply(d,l([t.resolve(r.token,o)],r.transformArgs)):t.resolve(r,o)}catch(o){throw new Error(function(o,e,t){var r,n,i=b(o.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1];return function(o,e,t){return void 0===t&&(t=" "),l([o],e.message.split("\n").map((function(o){return t+o}))).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 "')+o.name+'" constructor. Reason:',t)}(e,n,o))}}},o.prototype.ensureNotDisposed=function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")},o}(),z=new k,j="injectionTokens";const S=function(){return function(o){y.set(o,function(o){var e=Reflect.getMetadata("design:paramtypes",o)||[],t=Reflect.getOwnMetadata(j,o)||{};return Object.keys(t).forEach((function(o){e[+o]=t[o]})),e}(o))}};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 R{constructor(o,e){this.container=o,this.options=e}getService(o){return this.container.resolve(o)}}const $=window?.qbo4?.services||new R(z.createChildContainer(),{});"undefined"!=typeof window&&(window.qbo4=window.qbo4||{},window.qbo4.services=window.qbo4.services||new R(z.createChildContainer(),{}),window.qbo4.services);const O="ApiServiceToken",A="ValidateToken";function E(o,e){if("string"==typeof o)try{o=JSON.parse(o)}catch(o){return console.error("Error parsing JSON string:",o),null}if(Array.isArray(o))return o;if("object"==typeof o&&null!==o)for(const t in o){const r=o[t];if(Array.isArray(r))return r;if("object"==typeof r){const o=E(r,e);if(o)return o}}return null}function C(o,...e){const t=/\${(.*?)}/g;let r=o;for(let o=0;o<e.length;o++){const n=e[o];r=r.replace(t,((o,e)=>{const t=e.split(/\.|\[|\]/).filter((o=>""!==o));let r=n;for(let e of t){if(void 0===r[e])return o;r=r[e]}return r}))}return r=r.replace(t,(()=>"")),r}function _(o,e,t,r=!0){if(null!=o&&null!=e){for(;r&&o.firstChild;)o.removeChild(o.firstChild);t.map(((t,r)=>{const n=e.content.cloneNode(!0);null!=n.firstElementChild&&(n.firstElementChild.setAttribute("data-index",`${r}`),n.firstElementChild.innerHTML=C(n.firstElementChild?.innerHTML??"",t)),o.appendChild(n)}))}}class P{constructor(o,e={},t=null){this.relativePath="",this.apiEndpoint=o,this.headers=e,this.method=t}async fetch(o,e){this.apiEndpoint.indexOf("//")<0&&(this.apiEndpoint=new URL(this.apiEndpoint,document.location.origin).href);const t=C(new URL(o??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(t,{method:r,headers:n,credentials:"include",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(o){const e=new P(this.apiEndpoint,this.headers,this.method);return e.relativePath=o??"",e}}function M(o,e,t={"Content-Type":"application/json"},r){$.container.registerInstance(o,new P(e,t,r))}function L(o){"string"!=typeof o&&(o=o.href);const e=o.match(/api:\/\/([^/]+)/),t=e?e[1]:o,r=e?o.substring(`api://${t}`.length+1):"",n=$.container.isRegistered(t)?$.container.resolve(t):new P(o);return r?n.clone(r):n}$.container.registerInstance("default",new P(document.querySelector("base[href]")?.getAttribute("href")||window.location.origin));var B=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a};let T=class{constructor(){this.message="Zip code is invalid",this.selector=".zipcode"}validate(o){return Promise.resolve(!0)}connect(o){}disconnect(){}};T=B([S()],T),$.container.register(A,{useClass:T});let I=class{constructor(){this.message="Email is invalid",this.selector=".email"}validate(o){return Promise.resolve(!0)}connect(o){}disconnect(){}};I=B([S()],I),$.container.register(A,{useClass:I});let D=class{constructor(){this.message="This value does not appear to exist.",this.selector="[data-exists]"}connect(o){}disconnect(){}async validate(o){var e=o.getAttribute("data-exists");if(!e)return!1;var t=o.getAttribute("data-exists-path");const r=$.container.isRegistered(e)?$.container.resolve(e):new P(e);if(o instanceof HTMLInputElement||o instanceof HTMLSelectElement||o instanceof HTMLTextAreaElement){const e=E(await r.fetch(t,{value:o.value}));return null!=e&&e.length>0}return!1}};D=B([S()],D),$.container.register(A,{useClass:D});class H{constructor(){this.operator="=",this.value=null}}class N{constructor(){this.evaluators=[],this.depends="",this.condition="or",this.emptyOnDisable=!1,this.resetOnDisable=!0,this.disabledClass="disabled",this.disableChildren=!0}}const G="DependencyValidatorOptions",U=new Map([["!=",(o,e)=>!dn(o.value,e)],[">=",(o,e)=>o.value>=e],["<=",(o,e)=>o.value<=e],["=",(o,e)=>dn(o.value,e)],[">",(o,e)=>o.value>e],["<",(o,e)=>o.value<e]]),V=Array.from(U.keys());let F=class{constructor(o,e){this.message="Dependency condition not met",this.selector="[data-depend-options]",this.optionsCache=new Map,this.checkDependencies=async o=>{console.log("checking dependencies",this.optionsCache);for(const[o,e]of this.optionsCache)await this.validate(o)},this.form=o,this.options=e,this.currentOptions=e}connect(o){this.form.querySelectorAll(this.selector).forEach((o=>{o instanceof HTMLElement&&this.getOptions(o)})),this.optionsCache.forEach(((o,e)=>{this.validate(e)})),this.form.addEventListener("change",this.checkDependencies)}disconnect(){this.form.removeEventListener("change",this.checkDependencies)}async validate(o){const e=this.getOptions(o);if(null==e)return Promise.resolve(!0);let t;t="or"===e.condition?e.evaluators.some((o=>!0===o())):e.evaluators.every((o=>!0===o())),(o instanceof HTMLInputElement||o instanceof HTMLSelectElement||o instanceof HTMLTextAreaElement)&&(o.disabled=!t),o.classList.toggle(e.disabledClass,!t);const r=Y(o,"input,select,textarea");return t?e.disableChildren&&r.forEach((o=>o.removeAttribute("disabled"))):(e.disableChildren&&r.forEach((o=>o.setAttribute("disabled","disabled"))),e.resetOnDisable?r.forEach((o=>W(o))):e.emptyOnDisable&&r.forEach((o=>K(o)))),Promise.resolve(t)}getOptions(o){let e=this.optionsCache.get(o);if(!e){try{e=Object.assign({},this.options,X(o,"data-depend-"))}catch(o){console.error("Error parsing data-depend-options attribute:",o)}if(!e)return null;e.evaluators=e.depends.split(",").map((o=>{o=o.trim();let e=V.find((e=>o.includes(e)))??"!=",t=null,r="";if(e){const n=o.split(e);t=n[0],r=n[1]??""}else o.startsWith("!")?(e="=",t=o.substring(1)):t=o;const n=this.form.querySelector(`#${CSS.escape(t)}`)??this.form.querySelector(`[name="${CSS.escape(t)}"]`);return n instanceof HTMLInputElement?"checkbox"===n.type||"radio"===n.type?"!="===e?()=>n.checked:()=>!n.checked:()=>U.get(e)(n,r):n instanceof HTMLSelectElement?()=>U.get(e)(n,r):n instanceof HTMLOptionElement?"!="===e?()=>n.selected:()=>!n.selected:void 0})).filter((o=>void 0!==o)),this.optionsCache.set(o,e)}return e}getElement(o){return this.form.querySelector(`#${CSS.escape(o)}`)??this.form.querySelector(`[name="${CSS.escape(o)}"]`)}};function X(o,e,t="options"){const r={},n=`${e}${t}`,i=o.getAttributeNames();for(const a of i)if(a.startsWith(e)){const i=a.slice(e.length);if(null!=t&&a===n)try{const e=JSON.parse(o.getAttribute(a));Object.assign(r,e)}catch(e){console.error(`Error parsing JSON from element ${o.name} attribute ${n} (${o.getAttribute(a)}):`,o,e)}else r[i]=o.getAttribute(a)}return r}function Y(o,e){const t=Array.from(o.querySelectorAll(e));return o.matches(e)&&t.unshift(o),t}function W(o){if(o instanceof HTMLInputElement)"checkbox"===o.type||"radio"===o.type?o.checked=o.defaultChecked:o.value=o.defaultValue;else if(o instanceof HTMLSelectElement){var e=o.querySelectorAll("option[selected]");0==e.length?o.selectedIndex=0:e.forEach((o=>{o instanceof HTMLOptionElement&&(o.selected=!0)}))}}function K(o){o instanceof HTMLInputElement?"checkbox"===o.type||"radio"===o.type?o.checked=!1:o.value="":o instanceof HTMLSelectElement&&(o.options.selectedIndex=0)}var Q,J,Z,oo;F=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([S(),(Q=1,Z=G,oo=Z,J=function(o,e,t){var r=Reflect.getOwnMetadata(j,o)||{};r[t]=oo,Reflect.defineMetadata(j,r,o)},function(o,e){J(o,e,Q)}),function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)}("design:paramtypes",[HTMLFormElement,N])],F),$.container.register(G,{useValue:new N}),$.container.register(A,{useClass:F});const eo=globalThis,to=eo.ShadowRoot&&(void 0===eo.ShadyCSS||eo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ro=Symbol(),no=new WeakMap;class io{constructor(o,e,t){if(this._$cssResult$=!0,t!==ro)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=e}get styleSheet(){let o=this.o;const e=this.t;if(to&&void 0===o){const t=void 0!==e&&1===e.length;t&&(o=no.get(e)),void 0===o&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),t&&no.set(e,o))}return o}toString(){return this.cssText}}const ao=(o,...e)=>{const t=1===o.length?o[0]:e.reduce(((e,t,r)=>e+(o=>{if(!0===o._$cssResult$)return o.cssText;if("number"==typeof o)return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(t)+o[r+1]),o[0]);return new io(t,o,ro)},bo=(o,e)=>{if(to)o.adoptedStyleSheets=e.map((o=>o instanceof CSSStyleSheet?o:o.styleSheet));else for(const t of e){const e=document.createElement("style"),r=eo.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=t.cssText,o.appendChild(e)}},lo=to?o=>o:o=>o instanceof CSSStyleSheet?(o=>{let e="";for(const t of o.cssRules)e+=t.cssText;return(o=>new io("string"==typeof o?o:o+"",void 0,ro))(e)})(o):o,{is:so,defineProperty:co,getOwnPropertyDescriptor:fo,getOwnPropertyNames:mo,getOwnPropertySymbols:po,getPrototypeOf:go}=Object,uo=globalThis,vo=uo.trustedTypes,ho=vo?vo.emptyScript:"",xo=uo.reactiveElementPolyfillSupport,wo=(o,e)=>o,qo={toAttribute(o,e){switch(e){case Boolean:o=o?ho:null;break;case Object:case Array:o=null==o?o:JSON.stringify(o)}return o},fromAttribute(o,e){let t=o;switch(e){case Boolean:t=null!==o;break;case Number:t=null===o?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch(o){t=null}}return t}},yo=(o,e)=>!so(o,e),ko={attribute:!0,type:String,converter:qo,reflect:!1,hasChanged:yo};Symbol.metadata??=Symbol("metadata"),uo.litPropertyMetadata??=new WeakMap;class zo extends HTMLElement{static addInitializer(o){this._$Ei(),(this.l??=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,e=ko){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(o,e),!e.noAccessor){const t=Symbol(),r=this.getPropertyDescriptor(o,t,e);void 0!==r&&co(this.prototype,o,r)}}static getPropertyDescriptor(o,e,t){const{get:r,set:n}=fo(this.prototype,o)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return r?.call(this)},set(e){const i=r?.call(this);n.call(this,e),this.requestUpdate(o,i,t)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){return this.elementProperties.get(o)??ko}static _$Ei(){if(this.hasOwnProperty(wo("elementProperties")))return;const o=go(this);o.finalize(),void 0!==o.l&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(wo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(wo("properties"))){const o=this.properties,e=[...mo(o),...po(o)];for(const t of e)this.createProperty(t,o[t])}const o=this[Symbol.metadata];if(null!==o){const e=litPropertyMetadata.get(o);if(void 0!==e)for(const[o,t]of e)this.elementProperties.set(o,t)}this._$Eh=new Map;for(const[o,e]of this.elementProperties){const t=this._$Eu(o,e);void 0!==t&&this._$Eh.set(t,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){const e=[];if(Array.isArray(o)){const t=new Set(o.flat(1/0).reverse());for(const o of t)e.unshift(lo(o))}else void 0!==o&&e.push(lo(o));return e}static _$Eu(o,e){const t=e.attribute;return!1===t?void 0:"string"==typeof t?t:"string"==typeof o?o.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((o=>this.enableUpdating=o)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((o=>o(this)))}addController(o){(this._$EO??=new Set).add(o),void 0!==this.renderRoot&&this.isConnected&&o.hostConnected?.()}removeController(o){this._$EO?.delete(o)}_$E_(){const o=new Map,e=this.constructor.elementProperties;for(const t of e.keys())this.hasOwnProperty(t)&&(o.set(t,this[t]),delete this[t]);o.size>0&&(this._$Ep=o)}createRenderRoot(){const o=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return bo(o,this.constructor.elementStyles),o}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((o=>o.hostConnected?.()))}enableUpdating(o){}disconnectedCallback(){this._$EO?.forEach((o=>o.hostDisconnected?.()))}attributeChangedCallback(o,e,t){this._$AK(o,t)}_$EC(o,e){const t=this.constructor.elementProperties.get(o),r=this.constructor._$Eu(o,t);if(void 0!==r&&!0===t.reflect){const n=(void 0!==t.converter?.toAttribute?t.converter:qo).toAttribute(e,t.type);this._$Em=o,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(o,e){const t=this.constructor,r=t._$Eh.get(o);if(void 0!==r&&this._$Em!==r){const o=t.getPropertyOptions(r),n="function"==typeof o.converter?{fromAttribute:o.converter}:void 0!==o.converter?.fromAttribute?o.converter:qo;this._$Em=r,this[r]=n.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(o,e,t){if(void 0!==o){if(t??=this.constructor.getPropertyOptions(o),!(t.hasChanged??yo)(this[o],e))return;this.P(o,e,t)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(o,e,t){this._$AL.has(o)||this._$AL.set(o,e),!0===t.reflect&&this._$Em!==o&&(this._$Ej??=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(o){Promise.reject(o)}const o=this.scheduleUpdate();return null!=o&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[o,e]of this._$Ep)this[o]=e;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[e,t]of o)!0!==t.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],t)}let o=!1;const e=this._$AL;try{o=this.shouldUpdate(e),o?(this.willUpdate(e),this._$EO?.forEach((o=>o.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw o=!1,this._$EU(),e}o&&this._$AE(e)}willUpdate(o){}_$AE(o){this._$EO?.forEach((o=>o.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&=this._$Ej.forEach((o=>this._$EC(o,this[o]))),this._$EU()}updated(o){}firstUpdated(o){}}zo.elementStyles=[],zo.shadowRootOptions={mode:"open"},zo[wo("elementProperties")]=new Map,zo[wo("finalized")]=new Map,xo?.({ReactiveElement:zo}),(uo.reactiveElementVersions??=[]).push("2.0.4");const jo=globalThis,So=jo.trustedTypes,Ro=So?So.createPolicy("lit-html",{createHTML:o=>o}):void 0,$o="$lit$",Oo=`lit$${Math.random().toFixed(9).slice(2)}$`,Ao="?"+Oo,Eo=`<${Ao}>`,Co=document,_o=()=>Co.createComment(""),Po=o=>null===o||"object"!=typeof o&&"function"!=typeof o,Mo=Array.isArray,Lo=o=>Mo(o)||"function"==typeof o?.[Symbol.iterator],Bo="[ \t\n\f\r]",To=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Io=/-->/g,Do=/>/g,Ho=RegExp(`>|${Bo}(?:([^\\s"'>=/]+)(${Bo}*=${Bo}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),No=/'/g,Go=/"/g,Uo=/^(?:script|style|textarea|title)$/i,Vo=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),Fo=Vo(1),Xo=(Vo(2),Vo(3),Symbol.for("lit-noChange")),Yo=Symbol.for("lit-nothing"),Wo=new WeakMap,Ko=Co.createTreeWalker(Co,129);function Qo(o,e){if(!Mo(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ro?Ro.createHTML(e):e}const Jo=(o,e)=>{const t=o.length-1,r=[];let n,i=2===e?"<svg>":3===e?"<math>":"",a=To;for(let e=0;e<t;e++){const t=o[e];let b,l,d=-1,s=0;for(;s<t.length&&(a.lastIndex=s,l=a.exec(t),null!==l);)s=a.lastIndex,a===To?"!--"===l[1]?a=Io:void 0!==l[1]?a=Do:void 0!==l[2]?(Uo.test(l[2])&&(n=RegExp("</"+l[2],"g")),a=Ho):void 0!==l[3]&&(a=Ho):a===Ho?">"===l[0]?(a=n??To,d=-1):void 0===l[1]?d=-2:(d=a.lastIndex-l[2].length,b=l[1],a=void 0===l[3]?Ho:'"'===l[3]?Go:No):a===Go||a===No?a=Ho:a===Io||a===Do?a=To:(a=Ho,n=void 0);const c=a===Ho&&o[e+1].startsWith("/>")?" ":"";i+=a===To?t+Eo:d>=0?(r.push(b),t.slice(0,d)+$o+t.slice(d)+Oo+c):t+Oo+(-2===d?e:c)}return[Qo(o,i+(o[t]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]};class Zo{constructor({strings:o,_$litType$:e},t){let r;this.parts=[];let n=0,i=0;const a=o.length-1,b=this.parts,[l,d]=Jo(o,e);if(this.el=Zo.createElement(l,t),Ko.currentNode=this.el.content,2===e||3===e){const o=this.el.content.firstChild;o.replaceWith(...o.childNodes)}for(;null!==(r=Ko.nextNode())&&b.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const o of r.getAttributeNames())if(o.endsWith($o)){const e=d[i++],t=r.getAttribute(o).split(Oo),a=/([.?@])?(.*)/.exec(e);b.push({type:1,index:n,name:a[2],strings:t,ctor:"."===a[1]?ne:"?"===a[1]?ie:"@"===a[1]?ae:re}),r.removeAttribute(o)}else o.startsWith(Oo)&&(b.push({type:6,index:n}),r.removeAttribute(o));if(Uo.test(r.tagName)){const o=r.textContent.split(Oo),e=o.length-1;if(e>0){r.textContent=So?So.emptyScript:"";for(let t=0;t<e;t++)r.append(o[t],_o()),Ko.nextNode(),b.push({type:2,index:++n});r.append(o[e],_o())}}}else if(8===r.nodeType)if(r.data===Ao)b.push({type:2,index:n});else{let o=-1;for(;-1!==(o=r.data.indexOf(Oo,o+1));)b.push({type:7,index:n}),o+=Oo.length-1}n++}}static createElement(o,e){const t=Co.createElement("template");return t.innerHTML=o,t}}function oe(o,e,t=o,r){if(e===Xo)return e;let n=void 0!==r?t._$Co?.[r]:t._$Cl;const i=Po(e)?void 0:e._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),void 0===i?n=void 0:(n=new i(o),n._$AT(o,t,r)),void 0!==r?(t._$Co??=[])[r]=n:t._$Cl=n),void 0!==n&&(e=oe(o,n._$AS(o,e.values),n,r)),e}class ee{constructor(o,e){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){const{el:{content:e},parts:t}=this._$AD,r=(o?.creationScope??Co).importNode(e,!0);Ko.currentNode=r;let n=Ko.nextNode(),i=0,a=0,b=t[0];for(;void 0!==b;){if(i===b.index){let e;2===b.type?e=new te(n,n.nextSibling,this,o):1===b.type?e=new b.ctor(n,b.name,b.strings,this,o):6===b.type&&(e=new be(n,this,o)),this._$AV.push(e),b=t[++a]}i!==b?.index&&(n=Ko.nextNode(),i++)}return Ko.currentNode=Co,r}p(o){let e=0;for(const t of this._$AV)void 0!==t&&(void 0!==t.strings?(t._$AI(o,t,e),e+=t.strings.length-2):t._$AI(o[e])),e++}}class te{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,e,t,r){this.type=2,this._$AH=Yo,this._$AN=void 0,this._$AA=o,this._$AB=e,this._$AM=t,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===o?.nodeType&&(o=e.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,e=this){o=oe(this,o,e),Po(o)?o===Yo||null==o||""===o?(this._$AH!==Yo&&this._$AR(),this._$AH=Yo):o!==this._$AH&&o!==Xo&&this._(o):void 0!==o._$litType$?this.$(o):void 0!==o.nodeType?this.T(o):Lo(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==Yo&&Po(this._$AH)?this._$AA.nextSibling.data=o:this.T(Co.createTextNode(o)),this._$AH=o}$(o){const{values:e,_$litType$:t}=o,r="number"==typeof t?this._$AC(o):(void 0===t.el&&(t.el=Zo.createElement(Qo(t.h,t.h[0]),this.options)),t);if(this._$AH?._$AD===r)this._$AH.p(e);else{const o=new ee(r,this),t=o.u(this.options);o.p(e),this.T(t),this._$AH=o}}_$AC(o){let e=Wo.get(o.strings);return void 0===e&&Wo.set(o.strings,e=new Zo(o)),e}k(o){Mo(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let t,r=0;for(const n of o)r===e.length?e.push(t=new te(this.O(_o()),this.O(_o()),this,this.options)):t=e[r],t._$AI(n),r++;r<e.length&&(this._$AR(t&&t._$AB.nextSibling,r),e.length=r)}_$AR(o=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);o&&o!==this._$AB;){const e=o.nextSibling;o.remove(),o=e}}setConnected(o){void 0===this._$AM&&(this._$Cv=o,this._$AP?.(o))}}class re{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,e,t,r,n){this.type=1,this._$AH=Yo,this._$AN=void 0,this.element=o,this.name=e,this._$AM=r,this.options=n,t.length>2||""!==t[0]||""!==t[1]?(this._$AH=Array(t.length-1).fill(new String),this.strings=t):this._$AH=Yo}_$AI(o,e=this,t,r){const n=this.strings;let i=!1;if(void 0===n)o=oe(this,o,e,0),i=!Po(o)||o!==this._$AH&&o!==Xo,i&&(this._$AH=o);else{const r=o;let a,b;for(o=n[0],a=0;a<n.length-1;a++)b=oe(this,r[t+a],e,a),b===Xo&&(b=this._$AH[a]),i||=!Po(b)||b!==this._$AH[a],b===Yo?o=Yo:o!==Yo&&(o+=(b??"")+n[a+1]),this._$AH[a]=b}i&&!r&&this.j(o)}j(o){o===Yo?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}}class ne extends re{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===Yo?void 0:o}}class ie extends re{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==Yo)}}class ae extends re{constructor(o,e,t,r,n){super(o,e,t,r,n),this.type=5}_$AI(o,e=this){if((o=oe(this,o,e,0)??Yo)===Xo)return;const t=this._$AH,r=o===Yo&&t!==Yo||o.capture!==t.capture||o.once!==t.once||o.passive!==t.passive,n=o!==Yo&&(t===Yo||r);r&&this.element.removeEventListener(this.name,this,t),n&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}}class be{constructor(o,e,t){this.element=o,this.type=6,this._$AN=void 0,this._$AM=e,this.options=t}get _$AU(){return this._$AM._$AU}_$AI(o){oe(this,o)}}const le={M:$o,P:Oo,A:Ao,C:1,L:Jo,R:ee,D:Lo,V:oe,I:te,H:re,N:ie,U:ae,B:ne,F:be},de=jo.litHtmlPolyfillSupport;de?.(Zo,te),(jo.litHtmlVersions??=[]).push("3.2.1");class se extends zo{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const o=super.createRenderRoot();return this.renderOptions.renderBefore??=o.firstChild,o}update(o){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this._$Do=((o,e,t)=>{const r=t?.renderBefore??e;let n=r._$litPart$;if(void 0===n){const o=t?.renderBefore??null;r._$litPart$=n=new te(e.insertBefore(_o(),o),o,void 0,t??{})}return n._$AI(o),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Xo}}se._$litElement$=!0,se.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:se});const ce=globalThis.litElementPolyfillSupport;ce?.({LitElement:se}),(globalThis.litElementVersions??=[]).push("4.1.1");const fe=o=>(e,t)=>{void 0!==t?t.addInitializer((()=>{customElements.define(o,e)})):customElements.define(o,e)},me={attribute:!0,type:String,converter:qo,reflect:!1,hasChanged:yo},pe=(o=me,e,t)=>{const{kind:r,metadata:n}=t;let i=globalThis.litPropertyMetadata.get(n);if(void 0===i&&globalThis.litPropertyMetadata.set(n,i=new Map),i.set(t.name,o),"accessor"===r){const{name:r}=t;return{set(t){const n=e.get.call(this);e.set.call(this,t),this.requestUpdate(r,n,o)},init(e){return void 0!==e&&this.P(r,void 0,o),e}}}if("setter"===r){const{name:r}=t;return function(t){const n=this[r];e.call(this,t),this.requestUpdate(r,n,o)}}throw Error("Unsupported decorator location: "+r)};function ge(o){return(e,t)=>"object"==typeof t?pe(o,e,t):((o,e,t)=>{const r=e.hasOwnProperty(t);return e.constructor.createProperty(t,r?{...o,wrapped:!0}:o),r?Object.getOwnPropertyDescriptor(e,t):void 0})(o,e,t)}function ue(o){return ge({...o,state:!0,attribute:!1})}var ve=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},he=function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)};let xe=class extends se{constructor(){super(...arguments),this.name=null,this.apiEndpoint=null}connectedCallback(){super.connectedCallback();const o={};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 t=e.getAttribute("name"),r=e.textContent;t&&r&&(o[t]=r)})),o.ContentType&&(o["Content-Type"]=o.ContentType,delete o.ContentType),this.apiEndpoint?.startsWith("http")||(this.apiEndpoint=new URL(this.apiEndpoint??"",document.location.origin).href),M(this.name,this.apiEndpoint,o,this.method)}render(){return Fo``}};ve([ge({type:String}),he("design:type",Object)],xe.prototype,"name",void 0),ve([ge({type:String}),he("design:type",Object)],xe.prototype,"apiEndpoint",void 0),ve([ge(),he("design:type",Object)],xe.prototype,"method",void 0),xe=ve([fe("qbo-api")],xe);var we=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},qe=function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)};let ye=class extends se{constructor(){super(...arguments),this.display="normal",this.trigger="header",this.renderInHost=!0,this.hasExpandedContent=!1,this.minimize=o=>{this.display="minimize"},this.normal=o=>{this.display="normal"},this.maximize=o=>{this.display="maximize"}}static{this.styles=[ao``]}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick),document.addEventListener("qbo-card-minimize",this.minimize),document.addEventListener("qbo-card-normal",this.normal),document.addEventListener("qbo-card-maximize",this.maximize),this.hasExpandedContent=null!=this.querySelector(".expanded"),"normal"!==this.display||this.hasExpandedContent||(this.display="maximize")}disconnectedCallback(){this.removeEventListener("click",this.handleClick),document.removeEventListener("qbo-card-minimize",this.minimize),document.removeEventListener("qbo-card-normal",this.normal),document.removeEventListener("qbo-card-maximize",this.maximize),super.disconnectedCallback()}attributeChangedCallback(o,e,t){super.attributeChangedCallback(o,e,t),"display"===o&&(this.classList.remove("normal","minimize","maximize"),t&&this.classList.add(t))}handleClick(o){o.composedPath()[0]===this.querySelector(this.trigger)&&(o.ctrlKey?this.shrink():this.grow())}shrink(){switch(this.display){case"minimize":return void(this.display="maximize");case"maximize":return void(this.display=this.hasExpandedContent?"normal":"minimize");default:return void(this.display="minimize")}}grow(){switch(this.display){case"minimize":return void(this.display=this.hasExpandedContent?"normal":"maximize");case"maximize":return void(this.display="minimize");default:return void(this.display="maximize")}}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}render(){return Fo`<slot></slot>`}};we([ge({reflect:!0}),qe("design:type",String)],ye.prototype,"display",void 0),we([ge(),qe("design:type",String)],ye.prototype,"trigger",void 0),we([ge(),qe("design:type",Boolean)],ye.prototype,"renderInHost",void 0),we([ge(),qe("design:type",Object)],ye.prototype,"columns",void 0),ye=we([fe("qbo-card")],ye);const ke=ao`:root{--qbo-font:Arial,sans-serif;--qbo-color:#333;--qbo-border-color:#999;--qbo-border-radius:4px;--qbo-background-color:#ffffff;--qbo-padding-horizontal:0.75rem;--qbo-padding-vertical:0.375rem;--qbo-padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal);--qbo-margin:0.5rem;--qbo-margin-horizontal:0.5rem;--qbo-margin-vertical:0.5rem;--qbo-focus-border-color:#80bdff;--qbo-focus-box-shadow:rgba(0, 123, 255, 0.25);--qbo-line-height:var(--qbo-line-height);--qbo-button-bg:#007bff;--qbo-button-border:#007bff;--qbo-button-bg-hover:#0056b3;--qbo-button-border-hover:#004085;--qbo-button-color:#ffffff;--qbo-button-padding:var(--qbo-padding);--qbo-button-border-radius:var(--qbo-border-radius);--qbo-nav-color:#333;--qbo-nav-background-color:#999;--qbo-nav-background-hover:#81181d;--qbo-nav-background-hover-color:#999;--qbo-primary-bg:#007bff;--qbo-primary-color:#ffffff;--qbo-primary-border:#007bff;--qbo-primary-hover-bg:#0056b3;--qbo-primary-hover-border:#004085;--qbo-secondary-bg:#6c757d;--qbo-secondary-color:#ffffff;--qbo-secondary-border:#6c757d;--qbo-secondary-hover-bg:#5a6268;--qbo-secondary-hover-border:#545b62;--qbo-success-bg:#28a745;--qbo-success-color:#ffffff;--qbo-success-border:#28a745;--qbo-success-hover-bg:#218838;--qbo-success-hover-border:#1e7e34;--qbo-danger-bg:#dc3545;--qbo-danger-color:#ffffff;--qbo-danger-border:#dc3545;--qbo-danger-hover-bg:#c82333;--qbo-danger-hover-border:#bd2130;--qbo-info-bg:#17a2b8;--qbo-info-color:#ffffff;--qbo-info-border:#17a2b8;--qbo-info-hover-bg:#138496;--qbo-info-hover-border:#117a8b;--qbo-light-bg:#f8f9fa;--qbo-light-color:#212529;--qbo-light-border:#f8f9fa;--qbo-light-hover-bg:#e2e6ea;--qbo-light-hover-border:#dae0e5;--qbo-dark-bg:#343a40;--qbo-dark-color:#ffffff;--qbo-dark-border:#343a40;--qbo-dark-hover-bg:#23272b;--qbo-dark-hover-border:#1d2124}.qbo-theme-dark{--qbo-color:#e0e0e0;--qbo-border-color:grey;--qbo-background-color:#121212;--qbo-nav-color:#000;--qbo-nav-background-color:#fff;--qbo-svg-filter:brightness(0) invert(1)}.qbo-theme-light{font-family:var(--qbo-font);color:var(--qbo-color);margin:0;background-color:var(--qbo-background-color)}.qbo-row{display:flex;flex-wrap:wrap;gap:var(--qbo-margin)}.qbo-card,.qbo-col{flex:1 0 0;max-width:100%;box-sizing:border-box}.qbo-col-1{flex:0 0 calc(8.33% - var(--qbo-margin)/ 2);max-width:calc(8.33% - var(--qbo-margin)/ 2)}.qbo-col-2{flex:0 0 calc(16.66% - var(--qbo-margin)/ 2);max-width:calc(16.66% - var(--qbo-margin)/ 2)}.qbo-col-3{flex:0 0 calc(25% - var(--qbo-margin)/ 2);max-width:calc(25% - var(--qbo-margin)/ 2)}.qbo-col-4{flex:0 0 calc(33.33% - var(--qbo-margin)/ 2);max-width:calc(33.33% - var(--qbo-margin)/ 2)}.qbo-col-5{flex:0 0 calc(41.66% - var(--qbo-margin)/ 2);max-width:calc(41.66% - var(--qbo-margin)/ 2)}.qbo-col-6{flex:0 0 calc(50% - var(--qbo-margin)/ 2);max-width:calc(50% - var(--qbo-margin)/ 2)}.qbo-col-7{flex:0 0 calc(58.33% - var(--qbo-margin)/ 2);max-width:calc(58.33% - var(--qbo-margin)/ 2)}.qbo-col-8{flex:0 0 calc(66.66% - var(--qbo-margin)/ 2);max-width:calc(66.66% - var(--qbo-margin)/ 2)}.qbo-col-9{flex:0 0 calc(75% - var(--qbo-margin)/ 2);max-width:calc(75% - var(--qbo-margin)/ 2)}.qbo-col-10{flex:0 0 calc(83.33% - var(--qbo-margin)/ 2);max-width:calc(83.33% - var(--qbo-margin)/ 2)}.qbo-col-11{flex:0 0 calc(91.66% - var(--qbo-margin)/ 2);max-width:calc(91.66% - var(--qbo-margin)/ 2)}.qbo-col-12{flex:0 0 calc(100% - var(--qbo-margin)/ 2);max-width:calc(100% - var(--qbo-margin)/ 2)}.qbo-card{border:1px solid var(--qbo-border-color);border-radius:var(--qbo-border-radius);box-shadow:2px 2px 3px var(--qbo-border-color);padding:.5em;overflow:auto}.qbo-card-left{margin-left:.5em}.qbo-card-right{margin-right:.5em}svg{height:1rem;width:1rem}.qbo-form{margin:0 auto;padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal)}.qbo-form label{display:flex;flex-direction:column;font-size:.9rem;font-weight:100;color:var(--qbo-color);font-family:var(--qbo-font);margin-top:calc(var(--qbo-margin) * 1.5);margin-bottom:calc(var(--qbo-margin) * .25)}.qbo-form small{display:block;font-size:.8rem;color:color-mix(in srgb,var(--qbo-color) 60%,transparent)}.qbo-form input,.qbo-form select,.qbo-form textarea{width:100%;box-sizing:border-box;padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal);font-size:1rem;line-height:1;color:var(--qbo-color);background-color:var(--qbo-background-color);background-clip:padding-box;border:1px solid var(--qbo-border-color);border-radius:var(--qbo-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;font-family:var(--qbo-font);margin-top:.1rem;margin-right:1rem}.qbo-form input[type=color]{width:3rem;height:calc(1.5em + .75rem + 0px);padding:.375rem;background-color:transparent;border:1px solid #ced4da;border-radius:.25rem;-webkit-appearance:none}.qbo-form input:focus,.qbo-form select:focus,.qbo-form textarea:focus{color:var(--qbo-color);border-color:var(--qbo-focus-border-color);outline:0;box-shadow:0 0 0 .2rem var(--qbo-focus-box-shadow)}.qbo-form input[disabled],.qbo-form select[disabled],.qbo-form textarea[disabled]{color:color-mix(in oklab,var(--qbo-color) 50%,var(--qbo-background-color));cursor:not-allowed;opacity:1}.qbo-form div{display:flex;align-items:center}.qbo-form div span{display:inline-flex;font-weight:100;align-items:center;padding:.375rem .75rem;font-size:1rem;text-align:center;white-space:nowrap;border-right:none;border-radius:.25rem 0 0 .25rem}.qbo-form div input,.qbo-form div select,.qbo-form div textarea{flex:1 1 auto;padding:.375rem .75rem;font-size:1rem;background-clip:padding-box;margin:0}.qbo-form .form-check{display:flex;align-items:center;margin-bottom:1rem}.qbo-form .form-check input[type=checkbox],.qbo-form .form-check input[type=radio]{width:auto;margin-right:.5rem}.qbo-form .form-check label{margin-bottom:0;font-weight:400;color:var(--qbo-color)}.qbo-button,button{display:inline-block;font-weight:400;color:var(--qbo-color);background-color:var(--qbo-background-color);border:1px solid var(--qbo-border-color);border-radius:var(--qbo-border-radius);padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal);font-size:1rem;line-height:var(--qbo-line-height);text-align:center;vertical-align:middle;cursor:pointer;margin-right:var(--qbo-margin);text-decoration:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.qbo-button:focus,.qbo-button:hover,button:focus,button:hover{background-color:var(--qbo-border-color);text-decoration:none;line-height:var(--qbo-line-height);border-radius:var(--qbo-border-radius);transition:background-color .15s ease-in-out,border-color .15s ease-in-out}.qbo-button:disabled,button:disabled{opacity:.65;cursor:not-allowed;background-color:var(--qbo-button-bg);border-color:var(--qbo-button-border);color:var(--qbo-button-color)}.primary{background-color:var(--qbo-primary-bg);border:1px solid var(--qbo-primary-border);color:var(--qbo-primary-color)}.primary:focus,.primary:hover{background-color:var(--qbo-primary-hover-bg);border:1px solid var(--qbo-primary-hover-border)}.secondary{background-color:var(--qbo-secondary-bg);border:1px solid var(--qbo-secondary-border);color:var(--qbo-secondary-color)}.secondary:focus,.secondary:hover{background-color:var(--qbo-secondary-hover-bg);border:1px solid var(--qbo-secondary-hover-border)}.icon{height:1rem;width:1rem;filter:var(--qbo-svg-filter)}.icon use{display:block}.icon.right{position:relative;padding-left:1.25rem;background-image:url("https://devqmp.quandis.io/core/ui/images/qbo-icons.svg#i-arrow-down-circle");background-repeat:no-repeat;background-position:left center}nav{--qbo-background-color:var(--qbo-nav-background-color, black);--qbo-color:var(--qbo-nav-color, white);--qbo-svg-filter:brightness(0) invert(1);display:flex;flex-direction:row;color:var(--qbo-nav-color,#fff);background-color:var(--qbo-nav-background-color,#000)}nav menu{list-style-type:none;padding-inline-start:20px;margin-block-start:0.5em;margin-block-end:0.5em}nav menu li{border:1px solid var(--qbo-nav-background-color,#000);cursor:pointer;display:inline-block;line-height:var(--qbo-line-height);padding:5px}nav menu li svg{filter:invert(0)!important}nav menu li:focus,nav menu li:hover{background-color:var(--qbo-nav-background-hover,grey);border:1px solid var(--qbo-nav-background-hover);border-radius:.5em;color:#fff;text-decoration:none}nav menu li:focus span>svg,nav menu li:focus>svg,nav menu li:hover span>svg,nav menu li:hover>svg{filter:var(--qbo-svg-filter)!important}nav>img{padding-inline-start:8px}nav>span{font-weight:700;margin-top:17px;padding-inline-start:10px}nav a{color:var(--qbo-color)}nav svg.label{vertical-align:text-top}nav svg.toggle{vertical-align:text-bottom}menu.qbo-toolbar{list-style-type:none;padding-left:0;display:flex;flex-direction:row;margin-right:var(--qbo-margin)}menu.qbo-toolbar>li{display:inline-block;margin-right:0;color:var(--qbo-color);background-color:var(--qbo-background-color);border:1px solid var(--qbo-border-color);padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal);line-height:var(--qbo-line-height);cursor:pointer;border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;text-decoration:none}menu.qbo-toolbar>li:first-child{border-top-left-radius:var(--qbo-border-radius);border-bottom-left-radius:var(--qbo-border-radius)}menu.qbo-toolbar>li:last-child{border-top-right-radius:var(--qbo-border-radius);border-bottom-right-radius:var(--qbo-border-radius)}menu.qbo-toolbar>li:focus,menu.qbo-toolbar>li:hover{background-color:var(--qbo-border-color);text-decoration:none;line-height:var(--qbo-line-height);transition:background-color .15s ease-in-out,border-color .15s ease-in-out}menu.qbo-toolbar.vertical{flex-direction:column;align-items:flex-start}menu.qbo-toolbar.vertical li:first-child{border-top-right-radius:var(--qbo-border-radius);border-top-left-radius:var(--qbo-border-radius);border-bottom-left-radius:0}menu.qbo-toolbar.vertical li:last-child{border-bottom-right-radius:var(--qbo-border-radius);border-bottom-left-radius:var(--qbo-border-radius);border-top-right-radius:0}qbo-menu aside,qbo-menu menu{background-color:var(--qbo-background-color);border:1px solid var(--qbo-border-color);border-radius:var(--qbo-border-radius);box-sizing:border-box;height:auto;list-style-type:none;margin:0;padding-left:0;position:absolute;visibility:hidden}qbo-menu aside.open,qbo-menu menu.open{visibility:visible}qbo-menu aside{width:0;margin:var(--qbo-margin);padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal);padding-bottom:.6em;overflow-y:scroll;top:53px!important;width:100%;background-color:#f0f0f0;border:0;border-radius:0;border-bottom-left-radius:.7em;border-bottom-right-radius:.7em;color:var(--qbo-nav-color,#fff);height:auto;left:0;margin:0;overflow-y:auto}qbo-menu aside>h1{color:var(--qbo-color);margin-block-end:0;margin-left:1em}qbo-menu aside>p{color:var(--qbo-color);margin-block-start:0;margin-left:1.2em}qbo-menu li{display:list-item!important;padding:var(--qbo-padding-vertical) var(--qbo-padding-horizontal);line-height:var(--qbo-line-height);text-align:left;white-space:nowrap;cursor:pointer;text-decoration:none}qbo-menu li:hover{background-color:var(--qbo-border-color)}qbo-menu menu li.disabled{color:#6c757d;pointer-events:none;background-color:transparent}qbo-menu menu .dropdown-divider{height:1px;margin:.5rem 0;overflow:hidden;background-color:#e9ecef}qbo-menu menu .dropdown-header{padding:.5rem 1rem;margin-bottom:0;font-size:.875rem;color:#6c757d;white-space:nowrap}qbo-popover{background-color:#f0f0f0;border:1px solid #81181d;border-radius:var(--qbo-border-radius);color:var(--qbo-color);margin:.6em 0 0 0;padding:0 1em 0 1em;position:absolute;visibility:hidden}qbo-popover h3{margin-block-end:0.5em;margin-block-start:0.5em}qbo-popover p{margin-block-start:0}qbo-popover.open{visibility:visible}details>a{margin-left:1.5em}div.qbo-row-subsequent{margin-top:.5em}h3.title{margin-block-end:0;margin-block-start:0.5em;margin-left:.5em}p.detail{margin-block-end:0.5em;margin-block-start:0;margin-left:.5em}div.qbo-col-noborder{border:0!important;box-shadow:initial}`,ze=ao`
|
|
3
3
|
@charset "UTF-8";/*!
|
|
4
4
|
* Bootstrap v5.3.1 (https://getbootstrap.com/)
|
|
5
5
|
* Copyright 2011-2023 The Bootstrap Authors
|
|
@@ -211,5 +211,5 @@ ${Array.from(ft.keys()).map((e=>Fo`<div class="col-3">
|
|
|
211
211
|
</div>
|
|
212
212
|
</footer>
|
|
213
213
|
</dialog>
|
|
214
|
-
`:Fo``}`}};function en(o,e,t="qbo4.ui.preferences"){const r=localStorage.getItem(t);let n={};if(r)try{n=JSON.parse(r)}catch(o){console.error(`Error parsing ${t} from localStorage:`,o,r)}n[o]=e;try{localStorage.setItem(t,JSON.stringify(n))}catch(o){console.error(`Error saving ${t} to localStorage:`,o)}}function tn(o,e="qbo4.ui.preferences"){const t=localStorage.getItem(e);if(t)try{return JSON.parse(t)[o]}catch(o){console.error(`Error parsing ${e} from localStorage:`,o,t)}}function rn(o,e=" "){return o.filter(Boolean).join(e)}function nn(o,e=null){if(null==o||isNaN(new Date(o).getTime()))return null;const t=e??tn("dateFormat")??"MM/dd/yyyy",r={};return t.includes("yyyy")&&(r.year="numeric"),t.includes("MM")&&(r.month=t.includes("MMM")?"short":"2-digit"),t.includes("dd")&&(r.day="2-digit"),t.includes("HH")&&(r.hour="2-digit"),t.includes("mm")&&(r.minute="2-digit"),t.includes("ss")&&(r.second="2-digit"),t.includes("tt")&&(r.hour12=!0),t.includes("dddd")&&(r.weekday="long"),t.includes("ddd")&&(r.weekday="short"),new Intl.DateTimeFormat(void 0,r).format(new Date(o))}Jr([ge({type:Object}),Zr("design:type",Object)],on.prototype,"preferences",void 0),Jr([ge(),Zr("design:type",String)],on.prototype,"key",void 0),Jr([ue(),Zr("design:type",Object)],on.prototype,"isEditing",void 0),on=Jr([fe("qbo-user-preferences"),Zr("design:paramtypes",[])],on);var an=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},bn=function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)};let ln=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 o=>{console.trace("validating form"),o.preventDefault();const e=Array.from(this.form?.querySelectorAll("*"));for(const o of e)o instanceof HTMLInputElement||o instanceof HTMLSelectElement||o instanceof HTMLTextAreaElement?(console.trace("validating element ",o),await this.validateElement(o)):console.trace("ignoring element ",o);this.form?.checkValidity()?console.trace("form is valid, js submit"):(console.trace("form is invalid"),o.preventDefault(),o.stopPropagation()),this.form?.classList.add(this.validatedClass),this.dispatchEvent(new Event("qbo-form-validated",{bubbles:!0}))},this.validateElement=async o=>{const e=o instanceof Event?o.target:o;if(console.trace("validateElement start ",e),e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement){if(e.setCustomValidity(""),!e.checkValidity())return;for(const o of this.validators)if(e.matches(o.selector)){if(console.trace("element matches selector ",o.selector," for ",e.matches(o.selector)?"true":"false"),!e.checkValidity())break;this.workingClass.forEach((o=>e.classList.add(o)));const t=await o.validate(e);this.workingClass.forEach((o=>e.classList.remove(o))),e.setCustomValidity(t?"":o.message),console.trace("input validity is ",e.checkValidity()," message is ",e.validationMessage)}else console.trace("element does not match selector ",o.selector," for ",e.matches(o.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(A),this.validators.forEach((o=>o.connect(this.form))))}async disconnectedCallback(){super.disconnectedCallback(),this.validators.forEach((o=>o.disconnect())),this.form?.removeEventListener("change",this.validateElement),this.form?.removeEventListener("submit",this.validate)}render(){return Fo``}};function dn(o,e,t="*",r=!0){return e=(e=e.replace(/([.+^${}()|[\]\\])/g,"\\$1")).replace(new RegExp("\\"+t,"g"),".*"),new RegExp("^"+e+"$",r?"i":"").test(o)}function sn(o){const e=o.dataset,t={};for(const o in e)e.hasOwnProperty(o)&&void 0!==e[o]&&(t[o]=e[o]);return t}function cn(o){return o&&""!=o.trim()?new Date(o).toISOString().slice(0,10):""}function fn(o){return o&&""!=o.trim()?new Date(o).toLocaleString().replace(",",""):""}an([ge({type:Boolean}),bn("design:type",Object)],ln.prototype,"renderInHost",void 0),an([ge({type:String}),bn("design:type",Object)],ln.prototype,"autoComplete",void 0),an([ge({type:String}),bn("design:type",Object)],ln.prototype,"validatedClass",void 0),an([ge({converter:{fromAttribute:(o,e)=>o?.split(" "),toAttribute:(o,e)=>o.join(" ")}}),bn("design:type",Object)],ln.prototype,"workingClass",void 0),ln=an([fe("qbo-validate"),bn("design:paramtypes",[])],ln)})(),r})()));
|
|
214
|
+
`:Fo``}`}};function en(o,e,t="qbo4.ui.preferences"){const r=localStorage.getItem(t);let n={};if(r)try{n=JSON.parse(r)}catch(o){console.error(`Error parsing ${t} from localStorage:`,o,r)}n[o]=e;try{localStorage.setItem(t,JSON.stringify(n))}catch(o){console.error(`Error saving ${t} to localStorage:`,o)}}function tn(o,e="qbo4.ui.preferences"){const t=localStorage.getItem(e);if(t)try{return JSON.parse(t)[o]}catch(o){console.error(`Error parsing ${e} from localStorage:`,o,t)}}function rn(o,e=" "){return o.filter(Boolean).join(e)}function nn(o,e=null){if(null==o||isNaN(new Date(o).getTime()))return null;const t=e??tn("dateFormat")??"MM/dd/yyyy",r={};return t.includes("yyyy")&&(r.year="numeric"),t.includes("MM")&&(r.month=t.includes("MMM")?"short":"2-digit"),t.includes("dd")&&(r.day="2-digit"),t.includes("HH")&&(r.hour="2-digit"),t.includes("mm")&&(r.minute="2-digit"),t.includes("ss")&&(r.second="2-digit"),t.includes("tt")&&(r.hour12=!0),t.includes("dddd")&&(r.weekday="long"),t.includes("ddd")&&(r.weekday="short"),new Intl.DateTimeFormat(void 0,r).format(new Date(o))}Jr([ge({type:Object}),Zr("design:type",Object)],on.prototype,"preferences",void 0),Jr([ge(),Zr("design:type",String)],on.prototype,"key",void 0),Jr([ue(),Zr("design:type",Object)],on.prototype,"isEditing",void 0),on=Jr([fe("qbo-user-preferences"),Zr("design:paramtypes",[])],on);var an=function(o,e,t,r){var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(o,e,t,r);else for(var b=o.length-1;b>=0;b--)(n=o[b])&&(a=(i<3?n(a):i>3?n(e,t,a):n(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},bn=function(o,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,e)};let ln=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 o=>{console.trace("validating form"),o.preventDefault();const e=Array.from(this.form?.querySelectorAll("*"));for(const o of e)o instanceof HTMLInputElement||o instanceof HTMLSelectElement||o instanceof HTMLTextAreaElement?(console.trace("validating element ",o),await this.validateElement(o)):console.trace("ignoring element ",o);this.form?.checkValidity()?console.trace("form is valid, js submit"):(console.trace("form is invalid"),o.preventDefault(),o.stopPropagation()),this.form?.classList.add(this.validatedClass),this.dispatchEvent(new Event("qbo-form-validated",{bubbles:!0}))},this.validateElement=async o=>{const e=o instanceof Event?o.target:o;if(console.trace("validateElement start ",e),e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement){if(e.setCustomValidity(""),!e.checkValidity())return;for(const o of this.validators)if(e.matches(o.selector)){if(console.trace("element matches selector ",o.selector," for ",e.matches(o.selector)?"true":"false"),!e.checkValidity())break;this.workingClass.forEach((o=>e.classList.add(o)));const t=await o.validate(e);this.workingClass.forEach((o=>e.classList.remove(o))),e.setCustomValidity(t?"":o.message),console.trace("input validity is ",e.checkValidity()," message is ",e.validationMessage)}else console.trace("element does not match selector ",o.selector," for ",e.matches(o.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(A),this.validators.forEach((o=>o.connect(this.form))))}async disconnectedCallback(){super.disconnectedCallback(),this.validators.forEach((o=>o.disconnect())),this.form?.removeEventListener("change",this.validateElement),this.form?.removeEventListener("submit",this.validate)}render(){return Fo``}};function dn(o,e,t="*",r=!0){return e=(e=e.replace(/([.+^${}()|[\]\\])/g,"\\$1")).replace(new RegExp("\\"+t,"g"),".*"),new RegExp("^"+e+"$",r?"i":"").test(o)}function sn(o){const e=o.dataset,t={};for(const o in e)e.hasOwnProperty(o)&&void 0!==e[o]&&(t[o]=e[o]);return t}function cn(o){return o&&""!=o.trim()?new Date(o).toISOString().slice(0,10):""}function fn(o){return o&&""!=o.trim()?new Date(o).toLocaleString().replace(",",""):""}function mn(o,e="USD",t="en-US"){return o?new Intl.NumberFormat(t,{style:"currency",currency:e}).format(Number(o)):""}function pn(o,e=2,t="en-US"){return o?new Intl.NumberFormat(t,{style:"percent",minimumFractionDigits:e,maximumFractionDigits:e}).format(Number(o)):""}an([ge({type:Boolean}),bn("design:type",Object)],ln.prototype,"renderInHost",void 0),an([ge({type:String}),bn("design:type",Object)],ln.prototype,"autoComplete",void 0),an([ge({type:String}),bn("design:type",Object)],ln.prototype,"validatedClass",void 0),an([ge({converter:{fromAttribute:(o,e)=>o?.split(" "),toAttribute:(o,e)=>o.join(" ")}}),bn("design:type",Object)],ln.prototype,"workingClass",void 0),ln=an([fe("qbo-validate"),bn("design:paramtypes",[])],ln)})(),r})()));
|
|
215
215
|
//# sourceMappingURL=qbo4.ui.min.js.map
|