@design.estate/dees-document 4.1.0 → 4.2.0
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/dist_bundle/bundle.js +1 -1
- package/dist_bundle/bundle.js.map +1 -1
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts_shared/paymentreminder.js +6 -1
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/package.json +4 -4
- package/readme.md +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
package/dist_bundle/bundle.js
CHANGED
|
@@ -256,7 +256,7 @@ ${o}
|
|
|
256
256
|
`,hyt=n(async(e,t={})=>{let r=await $r.setupDomTools(t);return await r.runOnce("elementBasicSetup",async()=>{await r.setGlobalStyles(tot)}),r.globalStylesReady.status==="pending"&&r.globalStylesReady.resolve(),await r.globalStylesReady.promise,r},"setup");var kB={};dt(kB,{cssGridColumns:()=>myt});var myt=n((e,t)=>{let r="";for(let a=0;a<e;a++)r+=` calc((100%/${e}) - (${t*(e-1)}px/${e}))`;return r},"cssGridColumns");var TB={};dt(TB,{SweetScroll:()=>Cd.default,smartdelay:()=>Et,smartmarkdown:()=>Mf,smartpromise:()=>ht,smartrouter:()=>fi,smartrx:()=>Vt,smartstate:()=>hi,smartstring:()=>Ra,smarturl:()=>mi,typedrequest:()=>mr});var zq=Sr(ZR(),1),sn={css:vt,unsafeCSS:xt,LitElement:Za,property:tt},vi={createContext:II,ContextEvent:Ir,ContextProvider:Xa};var DB=class e{static{n(this,"CssManager")}static instance=null;static getSingleton(){return e.instance||(e.instance=new e),e.instance}domtoolsPromise=$r.setupDomTools();goBright=!1;bdVarTripletStore=[];constructor(){this.domtoolsPromise.then(async t=>{t.themeManager.themeObservable.subscribe(async r=>{this.goBright=r,await t.domReady.promise;for(let a of this.bdVarTripletStore)document.body.style.setProperty(a.cssVarName,this.goBright?a.brightValue:a.darkValue)})})}get defaultStyles(){return ca.staticStyles}getContainerNameFromClass(t){return t.is||t.name.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}cssForDesktop(t,r){return r?xt(ne.cssForContainer(t,`(min-width: ${ne.desktop}px)`,this.getContainerNameFromClass(r))):xt(ne.cssForDesktop(t))}cssForNotebook(t,r){return r?xt(ne.cssForContainer(t,`(max-width: ${ne.notebook}px)`,this.getContainerNameFromClass(r))):xt(ne.cssForNotebook(t))}cssForTablet(t,r){return r?xt(ne.cssForContainer(t,`(max-width: ${ne.tablet}px)`,this.getContainerNameFromClass(r))):xt(ne.cssForTablet(t))}cssForPhablet(t,r){return r?xt(ne.cssForContainer(t,`(max-width: ${ne.phablet}px)`,this.getContainerNameFromClass(r))):xt(ne.cssForPhablet(t))}cssForPhone(t,r){return r?xt(ne.cssForContainer(t,`(max-width: ${ne.phone}px)`,this.getContainerNameFromClass(r))):xt(ne.cssForPhone(t))}cssForConstraint(t){return r=>xt(ne.cssForConstraint(t)(r))}bdTheme(t,r){let a,o;$r.getGlobalDomToolsSync()?o=$r.getGlobalDomToolsSync().themeManager.goBrightBoolean?t:r:o=r;let i=this.bdVarTripletStore.find(s=>s.darkValue===r&&s.brightValue===t);if(i)a=i.cssVarName;else{let s={cssVarName:`--${zq.uni()}`,brightValue:t,darkValue:r};this.bdVarTripletStore.push(s),this.domtoolsPromise.then(async l=>{await l.domReady.promise,document.body.style.setProperty(s.cssVarName,o)}),a=s.cssVarName}return sn.unsafeCSS(`var(${a}, ${o})`)}cssGridColumns=n((t,r)=>{let a="";for(let o=0;o<t;o++)a+=` calc((100%/${t}) - (${r*(t-1)}px/${t}))`;return sn.unsafeCSS(a)},"cssGridColumns")};var $q=Symbol.for(""),xyt=n(e=>{if(e?.r===$q)return e?._$litStatic$},"o"),aot=n(e=>({_$litStatic$:e,r:$q}),"s"),gyt=n((e,...t)=>({_$litStatic$:t.reduce(((r,a,o)=>r+(i=>{if(i._$litStatic$!==void 0)return i._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${i}. Use 'unsafeStatic' to pass non-literal values, but
|
|
257
257
|
take care to ensure page security.`)})(a)+e[o+1]),e[0]),r:$q}),"i"),rot=new Map,EB=n(e=>(t,...r)=>{let a=r.length,o,i,s=[],l=[],c,u=0,d=!1;for(;u<a;){for(c=t[u];u<a&&(i=r[u],(o=xyt(i))!==void 0);)c+=o+t[++u],d=!0;u!==a&&l.push(i),s.push(c),u++}if(u===a&&s.push(t[a]),d){let p=s.join("$$lit$$");(t=rot.get(p))===void 0&&(s.raw=s,rot.set(p,t=s)),r=l}return e(t,...r)},"n"),oot=EB(H),yyt=EB(c_),Myt=EB(u_);var Ua={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},we=n(e=>(...t)=>({_$litDirective$:e,values:t}),"e"),qr=class{static{n(this,"i")}constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,a){this._$Ct=t,this._$AM=r,this._$Ci=a}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var kd=class extends qr{static{n(this,"e")}constructor(t){if(super(t),this.it=ee,t.type!==Ua.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ee||t==null)return this._t=void 0,this.it=t;if(t===Jt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let r=[t];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};kd.directiveName="unsafeHTML",kd.resultType=1;var not=we(kd);var qq=n(e=>(t,r)=>{r!==void 0?r.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)},"t");function ie(e){return(t,r)=>(t.is=e,qq(e)(t,r))}n(ie,"customElement");function yr(e){return tt({...e,state:!0,attribute:!1})}n(yr,"r");function vyt(e){return(t,r)=>{let a=typeof t=="function"?t:t[r];Object.assign(a,e)}}n(vyt,"t");var Ur=n((e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,r),r),"e");function AB(e,t){return(r,a,o)=>{let i=n(s=>s.renderRoot?.querySelector(e)??null,"o");if(t){let{get:s,set:l}=typeof a=="object"?r:o??(()=>{let c=Symbol();return{get(){return this[c]},set(u){this[c]=u}}})();return Ur(r,a,{get(){let c=s.call(this);return c===void 0&&(c=i(this),(c!==null||this.hasUpdated)&&l.call(this,c)),c}})}return Ur(r,a,{get(){return i(this)}})}}n(AB,"e");var byt;function iot(e){return(t,r)=>Ur(t,r,{get(){return(this.renderRoot??(byt??=document.createDocumentFragment())).querySelectorAll(e)}})}n(iot,"r");function sot(e){return(t,r)=>Ur(t,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(e)??null}})}n(sot,"r");function wyt(e){return(t,r)=>{let{slot:a,selector:o}=e??{},i="slot"+(a?`[name=${a}]`:":not([name])");return Ur(t,r,{get(){let s=this.renderRoot?.querySelector(i),l=s?.assignedElements(e)??[];return o===void 0?l:l.filter((c=>c.matches(o)))}})}}n(wyt,"o");function Syt(e){return(t,r)=>{let{slot:a}=e??{},o="slot"+(a?`[name=${a}]`:":not([name])");return Ur(t,r,{get(){return this.renderRoot?.querySelector(o)?.assignedNodes(e)??[]}})}}n(Syt,"n");var Td=vi.createContext(Symbol.for("dees.i18n")),LB=class extends vi.ContextProvider{static{n(this,"I18nProvider")}options;previous;live;disposed;stopReflecting;constructor(t,r,a={}){super(t,{context:Td,initialValue:r}),this.options=a,this.previous={lang:t.getAttribute("lang"),dir:t.getAttribute("dir")},this.disposed=!1,this.stopReflecting=void 0;let o=typeof t.addController=="function";this.live=!o||t.isConnected,this.reflect(),!o&&t.isConnected&&super.hostConnected()}get i18n(){return this.value}set i18n(t){this.setValue(t)}setValue(t,r=!1){if(this.disposed)throw new Error("I18nProvider: the provider is disposed");super.setValue(t,r),this.options&&this.reflect()}hostConnected(){this.disposed||(super.hostConnected(),this.options&&(this.live=!0,this.reflect()))}hostDisconnected(){this.live=!1,this.unreflect()}dispose(){if(this.disposed)return;this.disposed=!0,this.live=!1,this.unreflect(),this.options.reflect&&(this.restore("lang",this.previous.lang),this.restore("dir",this.previous.dir)),this.host.removeEventListener("context-request",this.onContextRequest),this.host.removeEventListener("context-provider",this.onProviderRequest),this.host.removeController?.(this);let t=[...this.subscriptions].map(([r,a])=>({callback:r,consumerHost:a.consumerHost}));this.clearCallbacks();for(let{callback:r,consumerHost:a}of t)r(ko.sourceI18n),a.dispatchEvent(new vi.ContextEvent(Td,a,r,!0))}reflect(){if(this.unreflect(),!this.options.reflect||!this.live)return;let t=this.value,r=n(()=>{this.host.setAttribute("lang",t.locale),this.host.setAttribute("dir",t.direction)},"apply"),a=t.subscribe(r);this.stopReflecting=a,t.ready.then(()=>{this.stopReflecting===a&&r()},()=>{})}unreflect(){this.stopReflecting?.(),this.stopReflecting=void 0}restore(t,r){r===null?this.host.removeAttribute(t):this.host.setAttribute(t,r)}},Cyt=n((e,t,r={})=>new LB(e,t,r),"provideI18n");var Uq=new WeakMap,lot=n(e=>{let t=Uq.get(e);return t?n(async()=>{for(;;){let a=t.map(i=>i.i18n),o=await Promise.allSettled(t.map(i=>i.whenLoaded()));if(t.every((i,s)=>i.i18n===a[s]))return o.flatMap(i=>i.status==="rejected"?[i.reason]:[])}},"settle")():void 0},"settleWords"),Wq=class{static{n(this,"LocalizeController")}host;catalog;i18n=ko.sourceI18n;translator;connected=!1;unsubscribeProvider;unsubscribeI18n;waitingOn;constructor(t,r){this.host=t,this.catalog=r,this.translator=this.i18n.bind(r);let a=Uq.get(t)??[];a.push(this),Uq.set(t,a),t.addController(this)}whenLoaded(){return this.i18n.whenLoaded(this.catalog)}hostConnected(){this.connected=!0,this.request(),this.unsubscribeProvider||this.use(ko.sourceI18n),this.host.requestUpdate()}hostDisconnected(){this.connected=!1,this.unsubscribeProvider?.(),this.unsubscribeProvider=void 0,this.unsubscribeI18n?.(),this.unsubscribeI18n=void 0,this.stopWaiting()}request(){this.host.dispatchEvent(new vi.ContextEvent(Td,this.host,this.onProvided,!0))}onProvided=n((t,r)=>{if(!this.connected){r?.();return}this.unsubscribeProvider&&this.unsubscribeProvider!==r&&this.unsubscribeProvider(),this.unsubscribeProvider=r,this.use(t)},"onProvided");use(t){t!==this.i18n&&(this.unsubscribeI18n?.(),this.unsubscribeI18n=void 0,this.i18n=t,this.translator=t.bind(this.catalog),this.host.requestUpdate()),this.unsubscribeI18n||(this.unsubscribeI18n=t.subscribe(()=>this.host.requestUpdate())),this.unsubscribeProvider?this.stopWaiting():this.waitForProvider()}waitForProvider(){this.waitingOn||(this.waitingOn=this.host.ownerDocument.documentElement,this.waitingOn.addEventListener("context-provider",this.onProviderAppeared))}stopWaiting(){this.waitingOn?.removeEventListener("context-provider",this.onProviderAppeared),this.waitingOn=void 0}onProviderAppeared=n(t=>{t.context===Td&&this.request()},"onProviderAppeared")},kyt=n((e,t)=>{let r=new Wq(e,t);return Object.defineProperties(n((i,...s)=>r.translator(i,...s),"translate"),{rich:{value:n((i,s)=>r.translator.rich(i,s),"rich")},catalog:{value:t},i18n:{get:n(()=>r.i18n,"get")},format:{get:n(()=>r.i18n.format,"get")}})},"localize");var cot=function(e,t,r,a,o,i){function s(y){if(y!==void 0&&typeof y!="function")throw new TypeError("Function expected");return y}n(s,"accept");for(var l=a.kind,c=l==="getter"?"get":l==="setter"?"set":"value",u=!t&&e?a.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,a.name):{}),p,f=!1,h=r.length-1;h>=0;h--){var m={};for(var x in a)m[x]=x==="access"?{}:a[x];for(var x in a.access)m.access[x]=a.access[x];m.addInitializer=function(y){if(f)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(y||null))};var g=(0,r[h])(l==="accessor"?{get:d.get,set:d.set}:d[c],m);if(l==="accessor"){if(g===void 0)continue;if(g===null||typeof g!="object")throw new TypeError("Object expected");(p=s(g.get))&&(d.get=p),(p=s(g.set))&&(d.set=p),(p=s(g.init))&&o.unshift(p)}else(p=s(g))&&(l==="field"?o.unshift(p):d[c]=p)}u&&Object.defineProperty(u,a.name,d),f=!0},OB=function(e,t,r){for(var a=arguments.length>2,o=0;o<t.length;o++)r=a?t[o].call(e,r):t[o].call(e);return a?r:void 0},se=(()=>{let e=sn.LitElement,t,r=[],a=[],o,i=[],s=[];return class extends e{static{n(this,"DeesElement")}static{let c=typeof Symbol=="function"&&Symbol.metadata?Object.create(e[Symbol.metadata]??null):void 0;t=[sn.property({type:Boolean,reflect:!0})],o=[sn.property()],cot(this,null,t,{kind:"accessor",name:"goBright",static:!1,private:!1,access:{has:n(u=>"goBright"in u,"has"),get:n(u=>u.goBright,"get"),set:n((u,d)=>{u.goBright=d},"set")},metadata:c},r,a),cot(this,null,o,{kind:"accessor",name:"domtools",static:!1,private:!1,access:{has:n(u=>"domtools"in u,"has"),get:n(u=>u.domtools,"get"),set:n((u,d)=>{u.domtools=d},"set")},metadata:c},i,s),c&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:c})}static getContainerName(){return this.is||this.name.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}static cssForConstraint(c){return u=>Lt.breakpoints.cssForConstraintContainer(c,this.getContainerName())(u)}#t=OB(this,r,!1);get goBright(){return this.#t}set goBright(c){this.#t=c}domtoolsPromise=OB(this,a);#e=OB(this,i,void 0);get domtools(){return this.#e}set domtools(c){this.#e=c}rxSubscriptions=(OB(this,s),[]);connectionController;lifecycleTail=Promise.resolve();elementDomReadyDeferred=Lt.plugins.smartpromise.defer();elementDomReady=this.elementDomReadyDeferred.promise;constructor(c={}){super(),this.domtoolsPromise=Lt.elementBasic.setup(this,c),this.domtoolsPromise.then(u=>{this.domtools=u})}connectedCallback(){super.connectedCallback();let c=new AbortController;return this.connectionController=c,this.enqueueLifecycle(async()=>{let u=await this.domtoolsPromise;if(c.signal.aborted||!this.isConnected)return;let d=u.themeManager.themeObservable.subscribe(p=>{c.signal.aborted||!this.isConnected||(this.goBright=p,this.themeChanged?.(p))});this.rxSubscriptions.push(d);for(let p of this.startupFunctions){if(c.signal.aborted||!this.isConnected)return;await p(c.signal)}!c.signal.aborted&&this.isConnected&&this.dispatchEvent(new CustomEvent("deesElementConnected"))})}firstUpdated(c){super.firstUpdated(c),this.elementDomReadyDeferred.resolve()}scheduleUpdate(){let c=lot(this);return c?c.then(u=>{if(u.length===0)return super.scheduleUpdate();let d=[...u];try{super.scheduleUpdate()}catch(p){d.push(p)}throw d.length===1?d[0]:new AggregateError(d,`<${this.localName}> could not load its words`)}):super.scheduleUpdate()}startupFunctions=[];registerStartupFunction(c){this.startupFunctions.push(c)}garbageFunctions=[];registerGarbageFunction(c){this.garbageFunctions.push(c)}disconnectedCallback(){if(super.disconnectedCallback(),!this.connectionController)return this.lifecycleTail;this.connectionController.abort(),this.connectionController=void 0;let c=[];return this.unsubscribeResources(c),this.enqueueLifecycle(async()=>{this.unsubscribeResources(c);for(let u of this.garbageFunctions)try{await u()}catch(d){c.push(d)}if(this.isConnected||this.dispatchEvent(new CustomEvent("deesElementDisconnected")),c.length)throw new AggregateError(c,"DeesElement cleanup failed")})}unsubscribeResources(c){for(let u of this.rxSubscriptions.splice(0))try{u.unsubscribe()}catch(d){c.push(d)}}enqueueLifecycle(c){let u=this.lifecycleTail.then(c);return this.lifecycleTail=u.then(()=>{},()=>{}),u}}})();var Tyt=n(e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),"camelToKebab");function Pyt(){return function(e,t){let r=e.finalizeStyles,a=n(function(o){if(this.finalizeStyles!==a)return r.call(this,o);let i=Tyt(e.name),s=e.is||i,l=n(u=>{let d=u?.cssText;return i!==s&&typeof d=="string"&&d.includes(`@container ${i}`)?xt(d.replaceAll(`@container ${i}`,`@container ${s}`)):u},"fixStyle"),c=o===void 0?[]:Array.isArray(o)?o.flat(1/0):[o];return r.call(this,[...c.map(l),ne.containerContextStyles(s)])},"finalizeStyles");return e.finalizeStyles=a,e}}n(Pyt,"containerResponsive");var oU={};dt(oU,{asyncAppend:()=>eU,keyed:()=>rU,repeat:()=>aU,resolve:()=>pot,resolveExec:()=>Byt,subscribe:()=>_yt,subscribeWithTemplate:()=>fot,until:()=>tU});var{I:Dyt}=d_,jq=n(e=>e===null||typeof e!="object"&&typeof e!="function","i"),Eyt={HTML:1,SVG:2,MATHML:3},Ayt=n((e,t)=>t===void 0?e?._$litType$!==void 0:e?._$litType$===t,"e"),Lyt=n(e=>e?._$litType$?.h!=null,"l"),Oyt=n(e=>e?._$litDirective$!==void 0,"d"),Ryt=n(e=>e?._$litDirective$,"c"),Gq=n(e=>e.strings===void 0,"f"),uot=n(()=>document.createComment(""),"r"),lo=n((e,t,r)=>{let a=e._$AA.parentNode,o=t===void 0?e._$AB:t._$AA;if(r===void 0){let i=a.insertBefore(uot(),o),s=a.insertBefore(uot(),o);r=new Dyt(i,s,e,e.options)}else{let i=r._$AB.nextSibling,s=r._$AM,l=s!==e;if(l){let c;r._$AQ?.(e),r._$AM=e,r._$AP!==void 0&&(c=e._$AU)!==s._$AU&&r._$AP(c)}if(i!==o||l){let c=r._$AA;for(;c!==i;){let u=c.nextSibling;a.insertBefore(c,o),c=u}}}return r},"s"),ua=n((e,t,r=e)=>(e._$AI(t,r),e),"v"),Iyt={},kf=n((e,t=Iyt)=>e._$AH=t,"m"),Yq=n(e=>e._$AH,"p"),Tf=n(e=>{e._$AR(),e._$AA.remove()},"M"),Zq=n(e=>{e._$AR()},"h");var Pf=n((e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let a of r)a._$AO?.(t,!1),Pf(a,t);return!0},"s"),RB=n(e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},"o"),dot=n(e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),Nyt(t)}},"r");function Fyt(e){this._$AN!==void 0?(RB(this),this._$AM=e,dot(this)):this._$AM=e}n(Fyt,"h");function Hyt(e,t=!1,r=0){let a=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(a))for(let i=r;i<a.length;i++)Pf(a[i],!1),RB(a[i]);else a!=null&&(Pf(a,!1),RB(a));else Pf(this,e)}n(Hyt,"n");var Nyt=n(e=>{e.type==Ua.CHILD&&(e._$AP??=Hyt,e._$AQ??=Fyt)},"c"),Er=class extends qr{static{n(this,"f")}constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,a){super._$AT(t,r,a),dot(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(Pf(this,t),RB(this))}setValue(t){if(Gq(this._$Ct))this._$Ct._$AI(t,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var Qq=class extends Er{static{n(this,"ResolveDirective")}promise;hasPromiseSettled=!1;render(t){return this.promise!==t&&(this.promise=t,this.hasPromiseSettled=!1,this.isConnected&&this.handlePromise(t)),Jt}handlePromise(t){this.hasPromiseSettled=!1,t.then(r=>{this.isConnected&&this.promise===t&&!this.hasPromiseSettled&&(this.setValue(r),this.hasPromiseSettled=!0)}).catch(r=>{this.isConnected&&this.promise===t&&!this.hasPromiseSettled&&(this.setValue(r),this.hasPromiseSettled=!0)})}reconnected(){this.promise&&!this.hasPromiseSettled&&this.handlePromise(this.promise)}},pot=we(Qq),Byt=n(e=>pot(e()),"resolveExec");var Xq=class extends Er{static{n(this,"SubscribeDirective")}observable;sub=null;render(t){return this.observable!==t&&(this.sub?.unsubscribe(),this.observable=t,this.isConnected&&this.subscribe(t)),Jt}subscribe(t){this.sub=t.subscribe(r=>{this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.subscribe(this.observable)}},_yt=we(Xq);var Kq=class extends Er{static{n(this,"SubscribeWithTemplateDirective")}observable;templateFn;sub=null;render(t,r){return(this.observable!==t||this.templateFn!==r)&&(this.sub?.unsubscribe(),this.observable=t,this.templateFn=r,this.isConnected&&this.startSubscription()),Jt}startSubscription(){this.sub=this.observable.subscribe(t=>{let r=this.templateFn(t);this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.startSubscription()}},fot=we(Kq);var Jq=n(async(e,t)=>{for await(let r of e)if(await t(r)===!1)return},"t"),bi=class{static{n(this,"s")}constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}},wi=class{static{n(this,"i")}constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){this.Y??=new Promise((t=>this.Z=t))}resume(){this.Z?.(),this.Y=this.Z=void 0}};var hot=n(e=>!jq(e)&&typeof e.then=="function","n"),mot=1073741823,IB=class extends Er{static{n(this,"c")}constructor(){super(...arguments),this._$Cwt=mot,this._$Cbt=[],this._$CK=new bi(this),this._$CX=new wi}render(...t){return t.find((r=>!hot(r)))??Jt}update(t,r){let a=this._$Cbt,o=a.length;this._$Cbt=r;let i=this._$CK,s=this._$CX;this.isConnected||this.disconnected();for(let l=0;l<r.length&&!(l>this._$Cwt);l++){let c=r[l];if(!hot(c))return this._$Cwt=l,c;l<o&&c===a[l]||(this._$Cwt=mot,o=0,Promise.resolve(c).then((async u=>{for(;s.get();)await s.get();let d=i.deref();if(d!==void 0){let p=d._$Cbt.indexOf(c);p>-1&&p<d._$Cwt&&(d._$Cwt=p,d.setValue(u))}})))}return Jt}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},tU=we(IB);var Pd=class extends Er{static{n(this,"o")}constructor(){super(...arguments),this._$CK=new bi(this),this._$CX=new wi}render(t,r){return Jt}update(t,[r,a]){if(this.isConnected||this.disconnected(),r===this._$CJ)return Jt;this._$CJ=r;let o=0,{_$CK:i,_$CX:s}=this;return Jq(r,(async l=>{for(;s.get();)await s.get();let c=i.deref();if(c!==void 0){if(c._$CJ!==r)return!1;a!==void 0&&(l=a(l,o)),c.commitValue(l,o),o++}return!0})),Jt}commitValue(t,r){this.setValue(t)}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},Vyt=we(Pd);var eU=we(class extends Pd{constructor(e){if(super(e),e.type!==Ua.CHILD)throw Error("asyncAppend can only be used in child expressions")}update(e,t){return this._$Ctt=e,super.update(e,t)}commitValue(e,t){t===0&&Zq(this._$Ctt);let r=lo(this._$Ctt);ua(r,e)}});var rU=we(class extends qr{constructor(){super(...arguments),this.key=ee}render(e,t){return this.key=e,t}update(e,[t,r]){return t!==this.key&&(kf(e),this.key=t),r}});var xot=n((e,t,r)=>{let a=new Map;for(let o=t;o<=r;o++)a.set(e[o],o);return a},"u"),aU=we(class extends qr{constructor(e){if(super(e),e.type!==Ua.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,t,r){let a;r===void 0?r=t:t!==void 0&&(a=t);let o=[],i=[],s=0;for(let l of e)o[s]=a?a(l,s):s,i[s]=r(l,s),s++;return{values:i,keys:o}}render(e,t,r){return this.dt(e,t,r).values}update(e,[t,r,a]){let o=Yq(e),{values:i,keys:s}=this.dt(t,r,a);if(!Array.isArray(o))return this.ut=s,i;let l=this.ut??=[],c=[],u,d,p=0,f=o.length-1,h=0,m=i.length-1;for(;p<=f&&h<=m;)if(o[p]===null)p++;else if(o[f]===null)f--;else if(l[p]===s[h])c[h]=ua(o[p],i[h]),p++,h++;else if(l[f]===s[m])c[m]=ua(o[f],i[m]),f--,m--;else if(l[p]===s[m])c[m]=ua(o[p],i[m]),lo(e,c[m+1],o[p]),p++,m--;else if(l[f]===s[h])c[h]=ua(o[f],i[h]),lo(e,o[p],o[f]),f--,h++;else if(u===void 0&&(u=xot(s,h,m),d=xot(l,p,f)),u.has(l[p]))if(u.has(l[f])){let x=d.get(s[h]),g=x!==void 0?o[x]:null;if(g===null){let y=lo(e,o[p]);ua(y,i[h]),c[h]=y}else c[h]=ua(g,i[h]),lo(e,o[p],g),o[x]=null;h++}else Tf(o[f]),f--;else Tf(o[p]),p++;for(;h<=m;){let x=lo(e,c[m+1]);ua(x,i[h]),c[h++]=x}for(;p<=f;){let x=o[p++];x!==null&&Tf(x)}return this.ut=s,kf(e,c),Jt}});var V=DB.getSingleton();var X={};dt(X,{A4_HEIGHT:()=>m6t,A4_WIDTH:()=>x6t,DEFAULT_LUMP_SUM_CITATION:()=>u6t,LUMP_SUM_OFFSET_CITATION:()=>d6t,assertPaidAmountMatchesAdvancePayments:()=>wot,buildEpcQrPayload:()=>i6t,cmToPx:()=>CU,defaultInterestCitations:()=>c6t,demoDocumentSettings:()=>jyt,demoLetter:()=>Wyt,getPaidAmountSummary:()=>Jyt,getPaymentReminderTotals:()=>l6t,interfaces:()=>nU,isAccountingDoc:()=>yU,isPaymentReminder:()=>s6t,quantityFractionDigits:()=>Pot,translation:()=>HB,unitName:()=>f6t,unitNameTables:()=>Dot});var nU={};var HB={};dt(HB,{DE_translations:()=>yot,EN_translations:()=>FB,REVERSE_CHARGE_STATUTORY_PHRASE_DE:()=>got,languageCodeMap:()=>Mot,translate:()=>$yt});var got="Steuerschuldnerschaft des Leistungsempf\xE4ngers",FB={address:"Address","advancePayment.invoice":"on invoice no.","advancePayment.invoiceDate":"of","advancePayment.received":"received on","advancePayment.title":"Advance payment","advancePayment.vat":"of which VAT","bank.accountHolder":"beneficiary","bank.bic":"bic","bank.iban":"iban","bank.institution":"institution","bankConnection@@title":"Bank Connection","charge.amount":"Amount","charge.description":"Interest and costs","charge.lumpSumOffset":"Credited default lump sum","claim.correctedInvoice":"Corrected invoice","claim.debitnote":"Debit note","claim.document":"Document","claim.dueDate":"Due date","claim.invoice":"Invoice","claim.issueDate":"Date","claim.outstanding":"Outstanding","claim.totalGross":"Gross total","contact@@title":"Contact Info","correctedInvoice.corrections":"Corrected details","correctedInvoice.defect.incorrect":"corrected","correctedInvoice.defect.missing":"supplied","correctedInvoice.detail.invoiceNumber":"Invoice number","correctedInvoice.detail.issueDate":"Issue date","correctedInvoice.detail.netAmount":"Consideration broken down by tax rate and exemption, and any reduction agreed in advance","correctedInvoice.detail.parties":"Full name and address of the supplier and of the recipient","correctedInvoice.detail.retentionNote":"Note on the recipient's duty to keep the invoice","correctedInvoice.detail.specialCaseDetail":"Detail required by \xA7 14a UStG","correctedInvoice.detail.supplierTaxNumber":"Supplier's tax number or VAT identification number","correctedInvoice.detail.supplyDate":"Date of the supply, or of the payment received before it","correctedInvoice.detail.supplyDescription":"Quantity and kind of the goods, or extent and kind of the service","correctedInvoice.detail.tax":"Tax rate and tax amount, or the note on an exemption","correctedInvoice.number":"Corrected invoice number","correctedInvoice.reference":"for invoice no.","correctedInvoice.referenceDate":"of","correctedInvoice.title":"Corrected invoice","creditnote.number":"Credit note number","creditnote@@introStatement":"We hereby credit the following products and services","customer.number":"Your Customer ID","debitnote.number":"Debit note number","debitnote@@introStatement":"We hereby additionally charge the following products and services",description:"Description","empty.logo":"no logo provided","empty.number.customer":"not registered",empty:"not provided",fax:"Fax","interest.baseRate":"base rate","interest.perYear":"a year","interest.plus":"plus","interest.points":"percentage points",introStatement:"We hereby invoice the following products and services","invoice.number":"Invoice number",invoice:"Invoice","item.position":"Pos.",mail:"Mail","overlay@@draft":"Draft","page.continueNext":"Continues on page","page.final":"This is the final page of this document.",page:"Page",pageOf:"of","payment.amountDue":"Amount due","payment.creditBalance":"Credit balance","payment.nothingDue":"Nothing is due: the total has been paid.","payment.nothingDue.creditBalance":"Nothing is due. You have a credit balance of","payment.paid":"Paid in advance","payment.qr":"Pay via QR code","payment.qr.description":"Scan the QR code with you banking app","payment.terms":"Payment Terms","payment.terms.amountDue":"without deduction until","payment.terms.direct":"Without deduction until","paymentReminder.deadline":"Payment deadline","paymentReminder.deadline.text":"Please pay the total payable by","paymentReminder.level":"Reminder level","paymentReminder.number":"Reminder number","paymentReminder.sum.charges":"Interest and costs","paymentReminder.sum.claims":"Outstanding claims","paymentReminder.sum.payable":"Total payable","paymentReminder@@introStatement":"The following claims are still outstanding","periodOfPerformance.day":"Delivery Date","periodOfPerformance.range":"Delivery Period",phone:"Phone","price.total.net":"Total Net Price","price.unit.net":"Unit Net Price",price:"Price",quantity:"Quantity",referencedContract:"Referenced contract","referencedContract.text":"This invoice is adhering to agreements made by contract between the parties on","registration.label":"Registration Info","relatedDocument.corrects":"Correction of document","relatedDocument.references":"Reference to document","relatedDocument.replaces":"Replaces document","selfBilledInvoice.number":"Self-billed invoice number","selfBilledInvoice@@introStatement":"We hereby settle the following products and services you provided to us by self-billing",subject:"Subject",sum:"Sum",totalGross:"Total gross","unit.type":"Unit Type","vat.category.E":"exempt","vat.category.E.note":"Exempt from VAT","vat.category.G":"export","vat.category.G.note":"Export outside the EU, exempt from VAT","vat.category.K":"intra-community supply","vat.category.K.note":"Intra-community supply, exempt from VAT","vat.category.L":"IGIC","vat.category.M":"IPSI","vat.category.O":"not subject to VAT","vat.category.O.note":"Not subject to VAT","vat.category.Z":"zero rated","vat.position":"on item positions","vat.reverseCharge.note":"Reverse charge","vat.short":"VAT","vat.yourId":"Your vat id on file",vat:"Valued Added Tax"},yot={address:"Adresse","advancePayment.invoice":"zur Rechnung Nr.","advancePayment.invoiceDate":"vom","advancePayment.received":"eingegangen am","advancePayment.title":"Anzahlung","advancePayment.vat":"darin enthaltene USt","bank.accountHolder":"Kontoinhaber","bank.bic":"BIC","bank.iban":"IBAN","bank.institution":"Bankinstitut","bankConnection@@title":"Bankverbindung","charge.amount":"Betrag","charge.description":"Zinsen und Kosten","charge.lumpSumOffset":"Angerechnete Verzugspauschale","claim.correctedInvoice":"Rechnungsberichtigung","claim.debitnote":"Belastungsanzeige","claim.document":"Beleg","claim.dueDate":"F\xE4llig am","claim.invoice":"Rechnung","claim.issueDate":"Datum","claim.outstanding":"Offen","claim.totalGross":"Bruttobetrag","contact@@title":"Kontaktinformationen","correctedInvoice.corrections":"Berichtigte Angaben","correctedInvoice.defect.incorrect":"berichtigt","correctedInvoice.defect.missing":"erg\xE4nzt","correctedInvoice.detail.invoiceNumber":"Rechnungsnummer","correctedInvoice.detail.issueDate":"Ausstellungsdatum","correctedInvoice.detail.netAmount":"Nach Steuers\xE4tzen und Steuerbefreiungen aufgeschl\xFCsseltes Entgelt und im Voraus vereinbarte Minderungen","correctedInvoice.detail.parties":"Vollst\xE4ndiger Name und vollst\xE4ndige Anschrift des leistenden Unternehmers und des Leistungsempf\xE4ngers","correctedInvoice.detail.retentionNote":"Hinweis auf die Aufbewahrungspflicht des Leistungsempf\xE4ngers","correctedInvoice.detail.specialCaseDetail":"Angabe nach \xA7 14a UStG","correctedInvoice.detail.supplierTaxNumber":"Steuernummer oder USt-IdNr. des leistenden Unternehmers","correctedInvoice.detail.supplyDate":"Zeitpunkt der Lieferung oder sonstigen Leistung oder der Vereinnahmung des Entgelts","correctedInvoice.detail.supplyDescription":"Menge und Art der gelieferten Gegenst\xE4nde oder Umfang und Art der sonstigen Leistung","correctedInvoice.detail.tax":"Steuersatz und Steuerbetrag oder Hinweis auf die Steuerbefreiung","correctedInvoice.number":"Rechnungsberichtigung Nr.","correctedInvoice.reference":"zur Rechnung Nr.","correctedInvoice.referenceDate":"vom","correctedInvoice.title":"Rechnungsberichtigung","creditnote.number":"Rechnungskorrektur-Nr.","creditnote@@introStatement":"Wir schreiben Ihnen hiermit folgende Produkte und Dienstleistungen gut","customer.number":"Ihre Kundennummer","debitnote.number":"Belastungsanzeige-Nr.","debitnote@@introStatement":"Wir berechnen Ihnen hiermit folgende Produkte und Dienstleistungen nach",description:"Beschreibung","empty.logo":"Kein Logo gesetzt","empty.number.customer":"nicht registriert",empty:"nicht angegeben",fax:"Fax","interest.baseRate":"Basiszinssatz","interest.perYear":"p. a.","interest.plus":"zzgl.","interest.points":"Prozentpunkte",introStatement:"Wir stellen Ihnen hiermit folgende Produkte und Dienstleistungen in Rechnung","invoice.number":"Rechnungsnr.",invoice:"Rechnung","item.position":"Pos.",mail:"E-Mail","overlay@@draft":"Entwurf","page.continueNext":"Fortsetzung auf Seite","page.final":"Dies ist die letzte Seite dieses Dokuments.",page:"Seite",pageOf:"von","payment.amountDue":"Zu zahlen","payment.creditBalance":"Guthaben","payment.nothingDue":"Es ist nichts zu zahlen: Der Gesamtbetrag ist bezahlt.","payment.nothingDue.creditBalance":"Es ist nichts zu zahlen. Sie haben ein Guthaben von","payment.paid":"Bereits gezahlt","payment.qr":"\xDCberweisen per QR-Code","payment.qr.description":"Den QR-Code einfach mit der Banking-App einscannen","payment.terms":"Zahlungsbedingungen","payment.terms.amountDue":"ohne Abzug bis zum","payment.terms.direct":"Ohne Abzug bis zum","paymentReminder.deadline":"Zahlungsfrist","paymentReminder.deadline.text":"Bitte zahlen Sie den Gesamtbetrag bis zum","paymentReminder.level":"Mahnstufe","paymentReminder.number":"Mahnungsnr.","paymentReminder.sum.charges":"Zinsen und Kosten","paymentReminder.sum.claims":"Offene Forderungen","paymentReminder.sum.payable":"Zu zahlender Gesamtbetrag","paymentReminder@@introStatement":"Folgende Forderungen sind noch offen","periodOfPerformance.day":"Lieferdatum","periodOfPerformance.range":"Lieferzeitraum",phone:"Telefon","price.total.net":"Gesamtpreis","price.unit.net":"St\xFCckpreis",price:"Preis",quantity:"Menge",referencedContract:"Referenzierter Vertrag","referencedContract.text":"Diese Rechnung bezieht sich auf die getroffenen Vertragsvereinbarungen vom","registration.label":"Registrierungsinfo","relatedDocument.corrects":"Korrektur zu Beleg","relatedDocument.references":"Bezug auf Beleg","relatedDocument.replaces":"Ersetzt Beleg","selfBilledInvoice.number":"Gutschriftsnr.","selfBilledInvoice@@introStatement":"Wir rechnen hiermit folgende von Ihnen erbrachte Produkte und Dienstleistungen im Gutschriftverfahren ab",subject:"Betreff",sum:"Summe",totalGross:"Gesamtbetrag brutto","unit.type":"Einheit","vat.category.E":"steuerfrei","vat.category.E.note":"Steuerfreie Leistung","vat.category.G":"Ausfuhr","vat.category.G.note":"Steuerfreie Ausfuhrlieferung","vat.category.K":"innergemeinschaftliche Lieferung","vat.category.K.note":"Steuerfreie innergemeinschaftliche Lieferung","vat.category.L":"IGIC","vat.category.M":"IPSI","vat.category.O":"nicht steuerbar","vat.category.O.note":"Nicht steuerbare Leistung","vat.category.Z":"Nullsteuersatz","vat.position":"auf Positionen","vat.reverseCharge.note":got,"vat.short":"MwSt.","vat.yourId":"Ihre hinterlegte USt-Id",vat:"Umsatzsteuer"},Mot={EN:FB,DE:yot};function*zyt(e){yield e;let t=e.split("@@"),r=t[1];if(r?yield r:r=t[0],!r.includes("."))return;let a=r.split(".");for(let o=a.length-1;o>0;o--)yield a.slice(0,o).join(".")}n(zyt,"getTranslationKeyHierarchy");var $yt=n((e,t)=>{let r=e&&Mot[e]||FB,a=zyt(t),o;for(let i of a)if(o=r[i]||FB[i],o)break;return o??t},"translate");var Df={};dt(Df,{business:()=>lU,code:()=>cU,container:()=>uU,content:()=>pU,database:()=>iU,descriptors:()=>dU,finance:()=>sU,general:()=>fU,network:()=>NB,saas:()=>mU,storage:()=>xU,website:()=>gU});var lU={};var iU={};var sU={};var cU={};var uU={};var dU={};var pU={};var fU={};var NB={};dt(NB,{ICnameDescriptor:()=>hU});var hU=class{static{n(this,"ICnameDescriptor")}};var mU={};var xU={};var gU={};var yU=n(e=>e?.type==="accounting-doc","isAccountingDoc");var qyt={name:"Awesome From Company",type:"company",status:"active",foundedDate:{day:1,month:1,year:2025},description:"a company that does stuff",address:{streetName:"Awesome Street",houseNumber:"5",city:"Bremen",country:"Germany",postalCode:"28359"},sepaConnection:{bic:"BPOTBEB1",iban:"BE01234567891616"},email:"hello@awesome.company",phone:"+49 421 1234567",fax:"+49 421 1234568",registrationDetails:{registrationId:"HRB 35230 HB",registrationName:"Amtsgericht Bremen",vatId:"DE12345678"}},Uyt={name:"Awesome To GmbH",type:"company",status:"active",foundedDate:{day:1,month:1,year:2025},customerNumber:"LL-CLIENT-123",description:"a company that does stuff",address:{streetName:"Awesome Street",houseNumber:"5",city:"Bremen",country:"Germany",postalCode:"28359"},registrationDetails:{registrationId:"HRB 35230 HB",registrationName:"Amtsgericht Bremen",vatId:"DE12345678"}},Wyt={type:"accounting-doc",accountingDocType:"invoice",accountingDocId:"LL-INV-48765",accountingDocStatus:"draft",id:"LL-INV-48765",versionInfo:{version:"1.0.0",type:"draft"},language:"de",date:Date.now(),incidenceId:"LL-INV-48765",subject:"LL-INV-48765",reverseCharge:!1,dueInDays:30,from:qyt,to:Uyt,status:"issued",deliveryDate:new Date().getTime(),periodOfPerformance:{from:+new Date().setDate(new Date().getDate()-7),to:+new Date},currency:"EUR",notes:[],items:[{name:"Item with 19% VAT",unitQuantity:2,unitNetPrice:100,unitType:"hours",vatPercentage:19,position:0},{name:"Item with 7% VAT",unitQuantity:4,unitNetPrice:100,unitType:"hours",vatPercentage:7,position:1},{name:"Item with 7% VAT",unitQuantity:3,unitNetPrice:230,unitType:"hours",vatPercentage:7,position:2},{name:"Item with 21% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:21,position:3},{name:"Item with 0% VAT",unitQuantity:6,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:4},{name:"Item with 19% VAT",unitQuantity:8,unitNetPrice:100,unitType:"hours",vatPercentage:19,position:5},{name:"Item with 7% VAT",unitQuantity:9,unitNetPrice:100,unitType:"hours",vatPercentage:7,position:6},{name:"Item with 7% VAT",unitQuantity:4,unitNetPrice:230,unitType:"hours",vatPercentage:7,position:8},{name:"Item with 21% VAT",unitQuantity:3,unitNetPrice:230,unitType:"hours",vatPercentage:21,position:9},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:10},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:11},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:12},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:13},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:14},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:15},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:16},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:17},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:18},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:19},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:20},{name:"Consulting Services",unitQuantity:5,unitNetPrice:150,unitType:"hours",vatPercentage:19,position:21},{name:"Development Work",unitQuantity:12,unitNetPrice:120,unitType:"hours",vatPercentage:19,position:22},{name:"Project Management",unitQuantity:3,unitNetPrice:180,unitType:"hours",vatPercentage:19,position:23},{name:"Technical Support",unitQuantity:8,unitNetPrice:90,unitType:"hours",vatPercentage:7,position:24},{name:"Documentation",unitQuantity:4,unitNetPrice:75,unitType:"hours",vatPercentage:7,position:25},{name:"Code Review",unitQuantity:6,unitNetPrice:110,unitType:"hours",vatPercentage:19,position:26},{name:"Testing & QA",unitQuantity:10,unitNetPrice:95,unitType:"hours",vatPercentage:19,position:27},{name:"Infrastructure Setup",unitQuantity:2,unitNetPrice:250,unitType:"hours",vatPercentage:19,position:28},{name:"Training Session",unitQuantity:4,unitNetPrice:200,unitType:"hours",vatPercentage:7,position:29},{name:"Maintenance Package",unitQuantity:1,unitNetPrice:500,unitType:"units",vatPercentage:19,position:30}]},jyt={enableTopDraftText:!0,enableDefaultHeader:!0,enableDefaultFooter:!0,languageCode:"DE"};var Gyt=/^(-?)(\d+)(?:\.(\d+))?(?:e([+-]\d+))?$/,vot=n(e=>{let t=Gyt.exec(e);if(!t)throw new Error(`"${e}" is no decimal number`);let[,r,a,o="",i="0"]=t,s=Number(i),l=a+o,c=o.length-s;c<0&&(l+="0".repeat(-c),c=0);let u=BigInt(l);return{units:r==="-"?-u:u,scale:c}},"parseDecimal"),Ef=n((e,t)=>{if(!Number.isFinite(e))throw new Error(`${t} is no finite number`);return vot(String(e))},"statedDecimal"),Yyt=n((e,t)=>vot(Math.abs(e)<1e21?e.toFixed(t):String(e)),"printedDecimal"),MU=n((e,t)=>e.units*10n**BigInt(t-e.scale),"rescale"),vU=n((...e)=>{let t=Math.max(0,...e.map(r=>r.scale));return{units:e.reduce((r,a)=>r+MU(a,t),0n),scale:t}},"addDecimals"),Zyt=n(e=>({units:-e.units,scale:e.scale}),"negateDecimal"),Qyt=n((e,t)=>{let r=Math.max(e.scale,t.scale);return MU(e,r)===MU(t,r)},"decimalsEqual"),bU=n(e=>{let t=e.units<0n,r=(t?-e.units:e.units).toString().padStart(e.scale+1,"0"),a=r.slice(0,r.length-e.scale),o=r.slice(r.length-e.scale);return+`${t?"-":""}${a}${o?`.${o}`:""}`},"decimalToNumber"),Xyt=n(e=>{try{return new Intl.NumberFormat("en-US",{style:"currency",currency:e}).resolvedOptions().maximumFractionDigits??2}catch{return 2}},"currencyFractionDigits"),bot=n(e=>"advancePayments"in e?e.advancePayments??[]:[],"advancePaymentsOf"),Kyt=n(e=>vU(...e.flatMap((t,r)=>t.vatGroups.flatMap((a,o)=>[Ef(a.net,`advancePayments[${r}].vatGroups[${o}].net`),Ef(a.vat,`advancePayments[${r}].vatGroups[${o}].vat`)]))),"advancePaymentsGross"),wot=n(e=>{if(!yU(e))return;let t=bot(e);if(t.length===0)return;let r=Kyt(t),a=e.paidAmount;if(a===void 0||!Qyt(Ef(a,"paidAmount"),r))throw new Error(`Accounting document ${e.id}: paidAmount (${a??"absent"}) does not equal the gross sum of its advancePayments (${bU(r)}), the net plus the vat of every group of every payment. The document is not printed.`)},"assertPaidAmountMatchesAdvancePayments"),Jyt=n((e,t)=>{wot(e);let r=e.paidAmount;if(r===void 0||r===0)return null;let a=bot(e),o=new Map;return a.forEach((i,s)=>i.vatGroups.forEach((l,c)=>{let u=Ef(l.vat,`advancePayments[${s}].vatGroups[${c}].vat`),d=o.get(l.percentage);o.set(l.percentage,d?vU(d,u):u)})),{paidAmount:r,amountDue:bU(vU(Yyt(t,Xyt(e.currency)),Zyt(Ef(r,"paidAmount")))),advancePayments:a,advancePaymentTaxes:[...o.entries()].map(([i,s])=>({percentage:i,vat:bU(s)})).sort((i,s)=>s.percentage-i.percentage)}},"getPaidAmountSummary");var t6t=99999999999e-2,wU=331,e6t=70,r6t=140,a6t=/[\r\n\v\f\u0085\u2028\u2029]+/g,o6t=new TextEncoder,n6t=new Intl.Segmenter(void 0,{granularity:"grapheme"}),SU=n(e=>o6t.encode(e).length,"utf8Length"),Sot=n(e=>e.replace(a6t," ").trim(),"toSingleLine"),Cot=n((e,t,r)=>{let a="",o=0,i=0;for(let{segment:s}of n6t.segment(e)){let l=[...s].length,c=SU(s);if(o+l>t||i+c>r)break;a+=s,o+=l,i+=c}return a.trimEnd()},"truncateToGraphemes"),i6t=n(e=>{let t=e.iban?.replace(/\s+/g,"").toUpperCase()??"",r=Cot(Sot(e.name??""),e6t,wU),a=e.bic?.replace(/\s+/g,"").toUpperCase()??"",o=Math.round(e.amount*100)/100;if(e.currency!=="EUR"||!Number.isFinite(o)||o<.01||o>t6t||t.length===0||r.length===0)return null;let i=["BCD",a.length>0?"001":"002","1","SCT",a,r,t,`EUR${o.toFixed(2)}`,"",""],s=Sot(e.remittanceInformation??""),l=Cot(s,r6t,Math.max(0,wU-SU(i.join(`
|
|
258
258
|
`))-1));if(s.length>0&&l.length===0)return null;let c=[...i,l];for(;c[c.length-1]==="";)c.pop();let u=c.join(`
|
|
259
|
-
`);return SU(u)<=wU?u:null},"buildEpcQrPayload");var s6t=n(e=>e?.type==="payment-reminder","isPaymentReminder"),kot=n(e=>Math.round(e*100),"toCents"),l6t=n(e=>{let t=e.claims.reduce((a,o)=>a+kot(o.outstandingAmount),0),r=e.charges.reduce((a,o)=>a+kot(o.amount),0);return{claimsOutstanding:t/100,charges:r/100,payable:(t+r)/100}},"getPaymentReminderTotals"),c6t={"bgb-288-1":"\xA7 288 Abs. 1 BGB","bgb-288-2":"\xA7 288 Abs. 2 BGB"},u6t="\xA7 288 Abs. 5 BGB",d6t="\xA7 288 Abs. 5 Satz 3 BGB";var Tot={locale:"en",names:{C62:{one:"unit",other:"units"},H87:{one:"piece",other:"pieces"},XPP:{one:"piece",other:"pieces"},PR:{one:"pair",other:"pairs"},E48:{one:"service unit",other:"service units"},LS:{one:"lump sum",other:"lump sums"},MIN:{one:"minute",other:"minutes"},HUR:{one:"hour",other:"hours"},DAY:{one:"day",other:"days"},WEE:{one:"week",other:"weeks"},MON:{one:"month",other:"months"},ANN:{one:"year",other:"years"},GRM:{one:"gram",other:"grams"},KGM:{one:"kilogram",other:"kilograms"},TNE:{one:"tonne",other:"tonnes"},MTR:{one:"metre",other:"metres"},KMT:{one:"kilometre",other:"kilometres"},MTK:{one:"square metre",other:"square metres"},MTQ:{one:"cubic metre",other:"cubic metres"},LTR:{one:"litre",other:"litres"},KWH:{one:"kilowatt hour",other:"kilowatt hours"}}},p6t={locale:"de",names:{C62:{one:"Einheit",other:"Einheiten"},H87:{one:"St\xFCck",other:"St\xFCck"},XPP:{one:"St\xFCck",other:"St\xFCck"},PR:{one:"Paar",other:"Paar"},E48:{one:"Leistungseinheit",other:"Leistungseinheiten"},LS:{one:"Pauschale",other:"Pauschalen"},MIN:{one:"Minute",other:"Minuten"},HUR:{one:"Stunde",other:"Stunden"},DAY:{one:"Tag",other:"Tage"},WEE:{one:"Woche",other:"Wochen"},MON:{one:"Monat",other:"Monate"},ANN:{one:"Jahr",other:"Jahre"},GRM:{one:"Gramm",other:"Gramm"},KGM:{one:"Kilogramm",other:"Kilogramm"},TNE:{one:"Tonne",other:"Tonnen"},MTR:{one:"Meter",other:"Meter"},KMT:{one:"Kilometer",other:"Kilometer"},MTK:{one:"Quadratmeter",other:"Quadratmeter"},MTQ:{one:"Kubikmeter",other:"Kubikmeter"},LTR:{one:"Liter",other:"Liter"},KWH:{one:"Kilowattstunde",other:"Kilowattstunden"}}},Pot=n(e=>{let t=/^(\d+)(?:\.(\d+))?(?:e([+-]\d+))?$/.exec(String(Math.abs(e)));return t?Math.min(100,Math.max(0,(t[2]??"").length-Number(t[3]??0))):0},"quantityFractionDigits"),Dot={EN:Tot,DE:p6t},f6t=n((e,t,r)=>{let a=e&&Dot[e]||Tot,o=Object.hasOwn(a.names,t)?a.names[t]:void 0;if(!o)return t;let i=Pot(r);return new Intl.PluralRules(a.locale,{minimumFractionDigits:i,maximumFractionDigits:i}).select(r)==="one"?o.one:o.other},"unitName");var h6t=96/2.54,m6t=CU(29.7),x6t=CU(21);function CU(e){return h6t*e}n(CU,"cmToPx");var YU=Sr(Dnt(),1);var Wa=vt`
|
|
259
|
+
`);return SU(u)<=wU?u:null},"buildEpcQrPayload");var s6t=n(e=>e?.type==="payment-reminder","isPaymentReminder"),kot=n(e=>Math.round(e*100),"toCents"),l6t=n(e=>{let t=e.claims.reduce((a,o)=>a+kot(o.outstandingAmount),0),r=e.charges.reduce((a,o)=>a+kot(o.amount),0);return{claimsOutstanding:t/100,charges:r/100,payable:(t+r)/100}},"getPaymentReminderTotals"),c6t={"bgb-288-1":"\xA7 288 Abs. 1 BGB","bgb-288-2":"\xA7 288 Abs. 2 BGB","bgb-288-2-2002":"\xA7 288 Abs. 2 BGB a. F., Art. 229 \xA7 34 Satz 1 EGBGB"},u6t="\xA7 288 Abs. 5 BGB",d6t="\xA7 288 Abs. 5 Satz 3 BGB";var Tot={locale:"en",names:{C62:{one:"unit",other:"units"},H87:{one:"piece",other:"pieces"},XPP:{one:"piece",other:"pieces"},PR:{one:"pair",other:"pairs"},E48:{one:"service unit",other:"service units"},LS:{one:"lump sum",other:"lump sums"},MIN:{one:"minute",other:"minutes"},HUR:{one:"hour",other:"hours"},DAY:{one:"day",other:"days"},WEE:{one:"week",other:"weeks"},MON:{one:"month",other:"months"},ANN:{one:"year",other:"years"},GRM:{one:"gram",other:"grams"},KGM:{one:"kilogram",other:"kilograms"},TNE:{one:"tonne",other:"tonnes"},MTR:{one:"metre",other:"metres"},KMT:{one:"kilometre",other:"kilometres"},MTK:{one:"square metre",other:"square metres"},MTQ:{one:"cubic metre",other:"cubic metres"},LTR:{one:"litre",other:"litres"},KWH:{one:"kilowatt hour",other:"kilowatt hours"}}},p6t={locale:"de",names:{C62:{one:"Einheit",other:"Einheiten"},H87:{one:"St\xFCck",other:"St\xFCck"},XPP:{one:"St\xFCck",other:"St\xFCck"},PR:{one:"Paar",other:"Paar"},E48:{one:"Leistungseinheit",other:"Leistungseinheiten"},LS:{one:"Pauschale",other:"Pauschalen"},MIN:{one:"Minute",other:"Minuten"},HUR:{one:"Stunde",other:"Stunden"},DAY:{one:"Tag",other:"Tage"},WEE:{one:"Woche",other:"Wochen"},MON:{one:"Monat",other:"Monate"},ANN:{one:"Jahr",other:"Jahre"},GRM:{one:"Gramm",other:"Gramm"},KGM:{one:"Kilogramm",other:"Kilogramm"},TNE:{one:"Tonne",other:"Tonnen"},MTR:{one:"Meter",other:"Meter"},KMT:{one:"Kilometer",other:"Kilometer"},MTK:{one:"Quadratmeter",other:"Quadratmeter"},MTQ:{one:"Kubikmeter",other:"Kubikmeter"},LTR:{one:"Liter",other:"Liter"},KWH:{one:"Kilowattstunde",other:"Kilowattstunden"}}},Pot=n(e=>{let t=/^(\d+)(?:\.(\d+))?(?:e([+-]\d+))?$/.exec(String(Math.abs(e)));return t?Math.min(100,Math.max(0,(t[2]??"").length-Number(t[3]??0))):0},"quantityFractionDigits"),Dot={EN:Tot,DE:p6t},f6t=n((e,t,r)=>{let a=e&&Dot[e]||Tot,o=Object.hasOwn(a.names,t)?a.names[t]:void 0;if(!o)return t;let i=Pot(r);return new Intl.PluralRules(a.locale,{minimumFractionDigits:i,maximumFractionDigits:i}).select(r)==="one"?o.one:o.other},"unitName");var h6t=96/2.54,m6t=CU(29.7),x6t=CU(21);function CU(e){return h6t*e}n(CU,"cmToPx");var YU=Sr(Dnt(),1);var Wa=vt`
|
|
260
260
|
:host {
|
|
261
261
|
/* Primitive colors */
|
|
262
262
|
--color-light: #ffffff;
|