@bitblit/ngx-acute-common 5.0.512-alpha
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/CHANGELOG.md +1 -0
- package/License.txt +13 -0
- package/README.md +7 -0
- package/artifacts/coverage/base.css +224 -0
- package/artifacts/coverage/block-navigation.js +87 -0
- package/artifacts/coverage/clover.xml +1565 -0
- package/artifacts/coverage/coverage-final.json +40 -0
- package/artifacts/coverage/favicon.png +0 -0
- package/artifacts/coverage/index.html +236 -0
- package/artifacts/coverage/modules/acute-common/src/build/index.html +116 -0
- package/artifacts/coverage/modules/acute-common/src/build/ngx-acute-common-info.ts.html +142 -0
- package/artifacts/coverage/modules/acute-common/src/components/dialogs/alert/alert.component.ts.html +184 -0
- package/artifacts/coverage/modules/acute-common/src/components/dialogs/alert/index.html +116 -0
- package/artifacts/coverage/modules/acute-common/src/components/dialogs/block-ui/block-ui.component.ts.html +271 -0
- package/artifacts/coverage/modules/acute-common/src/components/dialogs/block-ui/index.html +116 -0
- package/artifacts/coverage/modules/acute-common/src/pipes/capitalize.pipe.ts.html +118 -0
- package/artifacts/coverage/modules/acute-common/src/pipes/dollar-formatted.pipe.ts.html +124 -0
- package/artifacts/coverage/modules/acute-common/src/pipes/index.html +251 -0
- package/artifacts/coverage/modules/acute-common/src/pipes/map-values.pipe.ts.html +142 -0
- package/artifacts/coverage/modules/acute-common/src/pipes/number-with-commas.pipe.ts.html +112 -0
- package/artifacts/coverage/modules/acute-common/src/pipes/order-by.pipe.ts.html +259 -0
- package/artifacts/coverage/modules/acute-common/src/pipes/percent-formatted.pipe.ts.html +112 -0
- package/artifacts/coverage/modules/acute-common/src/pipes/plural.pipe.ts.html +127 -0
- package/artifacts/coverage/modules/acute-common/src/pipes/round.pipe.ts.html +112 -0
- package/artifacts/coverage/modules/acute-common/src/pipes/time-ago-formatted.pipe.ts.html +115 -0
- package/artifacts/coverage/modules/acute-common/src/pipes/timing.pipe.ts.html +139 -0
- package/artifacts/coverage/modules/acute-common/src/services/google-analytics.service.ts.html +280 -0
- package/artifacts/coverage/modules/acute-common/src/services/graphql-query.service.ts.html +394 -0
- package/artifacts/coverage/modules/acute-common/src/services/index.html +161 -0
- package/artifacts/coverage/modules/acute-common/src/services/local-storage.service.ts.html +235 -0
- package/artifacts/coverage/modules/acute-common/src/services/window-ref.service.ts.html +160 -0
- package/artifacts/coverage/prettify.css +1 -0
- package/artifacts/coverage/prettify.js +2 -0
- package/artifacts/coverage/sort-arrow-sprite.png +0 -0
- package/artifacts/coverage/sorter.js +196 -0
- package/lib/my-angular-library.cjs.js +7 -0
- package/lib/my-angular-library.esm.js +7 -0
- package/lib/my-angular-library.umd.js +7 -0
- package/package.json +56 -0
- package/rollup.config.mjs +58 -0
- package/src/build/ngx-acute-common-info.ts +19 -0
- package/src/components/dialogs/alert/alert.component.ts +33 -0
- package/src/components/dialogs/block-ui/block-ui.component.html +9 -0
- package/src/components/dialogs/block-ui/block-ui.component.spec.ts +24 -0
- package/src/components/dialogs/block-ui/block-ui.component.ts +62 -0
- package/src/index.ts +2 -0
- package/src/model/google-analytics-config.ts +3 -0
- package/src/pipes/capitalize.pipe.ts +11 -0
- package/src/pipes/dollar-formatted.pipe.ts +13 -0
- package/src/pipes/map-values.pipe.ts +19 -0
- package/src/pipes/number-with-commas.pipe.ts +9 -0
- package/src/pipes/order-by.pipe.ts +58 -0
- package/src/pipes/percent-formatted.pipe.ts +9 -0
- package/src/pipes/plural.pipe.ts +14 -0
- package/src/pipes/round.pipe.ts +9 -0
- package/src/pipes/time-ago-formatted.pipe.ts +10 -0
- package/src/pipes/timing.pipe.ts +18 -0
- package/src/services/google-analytics.service.spec.ts +17 -0
- package/src/services/google-analytics.service.ts +65 -0
- package/src/services/graphql-query.service.spec.ts +17 -0
- package/src/services/graphql-query.service.ts +103 -0
- package/src/services/local-storage.service.spec.ts +17 -0
- package/src/services/local-storage.service.ts +50 -0
- package/src/services/window-ref.service.spec.ts +17 -0
- package/src/services/window-ref.service.ts +25 -0
- package/tsconfig.json +10 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("rxjs")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/common","rxjs"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).AcuteCommon={},e.ng.core,e.ng.common,e.rxjs)}(this,(function(e,t,n,i){"use strict";function o(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var s,r=o(t),a=o(n);"function"==typeof SuppressedError&&SuppressedError;class l{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(e,t){e&&t&&(e.classList?e.classList.add(t):e.className+=" "+t)}static addMultipleClasses(e,t){if(e&&t)if(e.classList){let n=t.trim().split(" ");for(let t=0;t<n.length;t++)e.classList.add(n[t])}else{let n=t.split(" ");for(let t=0;t<n.length;t++)e.className+=" "+n[t]}}static removeClass(e,t){e&&t&&(e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))}static removeMultipleClasses(e,t){e&&t&&[t].flat().filter(Boolean).forEach((t=>t.split(" ").forEach((t=>this.removeClass(e,t)))))}static hasClass(e,t){return!(!e||!t)&&(e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className))}static siblings(e){return Array.prototype.filter.call(e.parentNode.children,(function(t){return t!==e}))}static find(e,t){return Array.from(e.querySelectorAll(t))}static findSingle(e,t){return this.isElement(e)?e.querySelector(t):null}static index(e){let t=e.parentNode.childNodes,n=0;for(var i=0;i<t.length;i++){if(t[i]==e)return n;1==t[i].nodeType&&n++}return-1}static indexWithinGroup(e,t){let n=e.parentNode?e.parentNode.childNodes:[],i=0;for(var o=0;o<n.length;o++){if(n[o]==e)return i;n[o].attributes&&n[o].attributes[t]&&1==n[o].nodeType&&i++}return-1}static appendOverlay(e,t,n="self"){"self"!==n&&e&&t&&this.appendChild(e,t)}static alignOverlay(e,t,n="self",i=!0){e&&t&&(i&&(e.style.minWidth=`${l.getOuterWidth(t)}px`),"self"===n?this.relativePosition(e,t):this.absolutePosition(e,t))}static relativePosition(e,t,n=!0){const i=e=>{if(e)return"relative"===getComputedStyle(e).getPropertyValue("position")?e:i(e.parentElement)},o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=t.offsetHeight??t.getBoundingClientRect().height,r=t.getBoundingClientRect(),a=this.getWindowScrollTop(),l=this.getWindowScrollLeft(),c=this.getViewport(),d=i(e),g=d?.getBoundingClientRect()||{top:-1*a,left:-1*l};let p,u;r.top+s+o.height>c.height?(p=r.top-g.top-o.height,e.style.transformOrigin="bottom",r.top+p<0&&(p=-1*r.top)):(p=s+r.top-g.top,e.style.transformOrigin="top");const m=r.left+o.width-c.width,h=r.left-g.left;u=o.width>c.width?-1*(r.left-g.left):m>0?h-m:r.left-g.left,e.style.top=p+"px",e.style.left=u+"px",n&&(e.style.marginTop="bottom"===origin?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static absolutePosition(e,t,n=!0){const i=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),o=i.height,s=i.width,r=t.offsetHeight??t.getBoundingClientRect().height,a=t.offsetWidth??t.getBoundingClientRect().width,l=t.getBoundingClientRect(),c=this.getWindowScrollTop(),d=this.getWindowScrollLeft(),g=this.getViewport();let p,u;l.top+r+o>g.height?(p=l.top+c-o,e.style.transformOrigin="bottom",p<0&&(p=c)):(p=r+l.top+c,e.style.transformOrigin="top"),u=l.left+s>g.width?Math.max(0,l.left+d+a-s):l.left+d,e.style.top=p+"px",e.style.left=u+"px",n&&(e.style.marginTop="bottom"===origin?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static getParents(e,t=[]){return null===e.parentNode?t:this.getParents(e.parentNode,t.concat([e.parentNode]))}static getScrollableParents(e){let t=[];if(e){let n=this.getParents(e);const i=/(auto|scroll)/,o=e=>{let t=window.getComputedStyle(e,null);return i.test(t.getPropertyValue("overflow"))||i.test(t.getPropertyValue("overflowX"))||i.test(t.getPropertyValue("overflowY"))};for(let e of n){let n=1===e.nodeType&&e.dataset.scrollselectors;if(n){let i=n.split(",");for(let n of i){let i=this.findSingle(e,n);i&&o(i)&&t.push(i)}}9!==e.nodeType&&o(e)&&t.push(e)}}return t}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t}static getHiddenElementDimensions(e){let t={};return e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",t}static scrollInView(e,t){let n=getComputedStyle(e).getPropertyValue("borderTopWidth"),i=n?parseFloat(n):0,o=getComputedStyle(e).getPropertyValue("paddingTop"),s=o?parseFloat(o):0,r=e.getBoundingClientRect(),a=t.getBoundingClientRect().top+document.body.scrollTop-(r.top+document.body.scrollTop)-i-s,l=e.scrollTop,c=e.clientHeight,d=this.getOuterHeight(t);a<0?e.scrollTop=l+a:a+d>c&&(e.scrollTop=l+a-c+d)}static fadeIn(e,t){e.style.opacity=0;let n=+new Date,i=0,o=function(){i=+e.style.opacity.replace(",",".")+((new Date).getTime()-n)/t,e.style.opacity=i,n=+new Date,+i<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()}static fadeOut(e,t){var n=1,i=50/t;let o=setInterval((()=>{(n-=i)<=0&&(n=0,clearInterval(o)),e.style.opacity=n}),50)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,t){var n=Element.prototype;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(e){return-1!==[].indexOf.call(document.querySelectorAll(e),this)}).call(e,t)}static getOuterWidth(e,t){let n=e.offsetWidth;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginLeft)+parseFloat(t.marginRight)}return n}static getHorizontalPadding(e){let t=getComputedStyle(e);return parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)}static getHorizontalMargin(e){let t=getComputedStyle(e);return parseFloat(t.marginLeft)+parseFloat(t.marginRight)}static innerWidth(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),t}static width(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),t}static getInnerHeight(e){let t=e.offsetHeight,n=getComputedStyle(e);return t+=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom),t}static getOuterHeight(e,t){let n=e.offsetHeight;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginTop)+parseFloat(t.marginBottom)}return n}static getHeight(e){let t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),t}static getWidth(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),t}static getViewport(){let e=window,t=document,n=t.documentElement,i=t.getElementsByTagName("body")[0];return{width:e.innerWidth||n.clientWidth||i.clientWidth,height:e.innerHeight||n.clientHeight||i.clientHeight}}static getOffset(e){var t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,t){let n=e.parentNode;if(!n)throw"Can't replace element";return n.replaceChild(t,e)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var e=window.navigator.userAgent;return e.indexOf("MSIE ")>0||(e.indexOf("Trident/")>0?(e.indexOf("rv:"),!0):e.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,t){if(this.isElement(t))t.appendChild(e);else{if(!(t&&t.el&&t.el.nativeElement))throw"Cannot append "+t+" to "+e;t.el.nativeElement.appendChild(e)}}static removeChild(e,t){if(this.isElement(t))t.removeChild(e);else{if(!t.el||!t.el.nativeElement)throw"Cannot remove "+e+" from "+t;t.el.nativeElement.removeChild(e)}}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}static calculateScrollbarWidth(e){if(e){let t=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),this.calculatedScrollbarWidth=t,t}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let t=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=t,t}static invokeElementMethod(e,t,n){e[t].apply(e,n)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return!e||null===e.offsetParent}static isVisible(e){return e&&null!=e.offsetParent}static isExist(e){return null!=e&&e.nodeName&&e.parentNode}static focus(e,t){e&&document.activeElement!==e&&e.focus(t)}static getFocusableSelectorString(e=""){return`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n .p-inputtext:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n .p-button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}`}static getFocusableElements(e,t=""){let n=this.find(e,this.getFocusableSelectorString(t)),i=[];for(let e of n){const t=getComputedStyle(e);this.isVisible(e)&&"none"!=t.display&&"hidden"!=t.visibility&&i.push(e)}return i}static getFocusableElement(e,t=""){let n=this.findSingle(e,this.getFocusableSelectorString(t));if(n){const e=getComputedStyle(n);if(this.isVisible(n)&&"none"!=e.display&&"hidden"!=e.visibility)return n}return null}static getFirstFocusableElement(e,t=""){const n=this.getFocusableElements(e,t);return n.length>0?n[0]:null}static getLastFocusableElement(e,t){const n=this.getFocusableElements(e,t);return n.length>0?n[n.length-1]:null}static getNextFocusableElement(e,t=!1){const n=l.getFocusableElements(e);let i=0;if(n&&n.length>0){const e=n.indexOf(n[0].ownerDocument.activeElement);t?i=-1==e||0===e?n.length-1:e-1:-1!=e&&e!==n.length-1&&(i=e+1)}return n[i]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(e,t){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return t?.nextElementSibling;case"@prev":return t?.previousElementSibling;case"@parent":return t?.parentElement;case"@grandparent":return t?.parentElement.parentElement;default:const n=typeof e;if("string"===n)return document.querySelector(e);if("object"===n&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;const i=(e=>!!(e&&e.constructor&&e.call&&e.apply))(e)?e():e;return i&&9===i.nodeType||this.isExist(i)?i:null}}static isClient(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}static getAttribute(e,t){if(e){const n=e.getAttribute(t);return isNaN(n)?"true"===n||"false"===n?"true"===n:n:+n}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(e="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)}static unblockBodyScroll(e="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}static createElement(e,t={},...n){if(e){const i=document.createElement(e);return this.setAttributes(i,t),i.append(...n),i}}static setAttribute(e,t="",n){this.isElement(e)&&null!=n&&e.setAttribute(t,n)}static setAttributes(e,t={}){if(this.isElement(e)){const n=(t,i)=>{const o=e?.$attrs?.[t]?[e?.$attrs?.[t]]:[];return[i].flat().reduce(((e,i)=>{if(null!=i){const o=typeof i;if("string"===o||"number"===o)e.push(i);else if("object"===o){const o=Array.isArray(i)?n(t,i):Object.entries(i).map((([e,n])=>"style"!==t||!n&&0!==n?n?e:void 0:`${e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${n}`));e=o.length?e.concat(o.filter((e=>!!e))):e}}return e}),o)};Object.entries(t).forEach((([t,i])=>{if(null!=i){const o=t.match(/^on(.+)/);o?e.addEventListener(o[1].toLowerCase(),i):"pBind"===t?this.setAttributes(e,i):(i="class"===t?[...new Set(n("class",i))].join(" ").trim():"style"===t?n("style",i).join(";").trim():i,(e.$attrs=e.$attrs||{})&&(e.$attrs[t]=i),e.setAttribute(t,i))}}))}}static isFocusableElement(e,t=""){return!!this.isElement(e)&&e.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}`)}}
|
|
2
|
+
/**
|
|
3
|
+
* @license Angular v18.2.8
|
|
4
|
+
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
|
+
* License: MIT
|
|
6
|
+
*/function c(e,t){return{type:s.Trigger,name:e,definitions:t,options:{}}}function d(e,t=null){return{type:s.Animate,styles:t,timings:e}}function g(e){return{type:s.Style,styles:e,offset:null}}function p(e,t,n=null){return{type:s.Transition,expr:e,animation:t,options:n}}function u(e,t=null){return{type:s.Reference,animation:e,options:t}}function m(e,t=null){return{type:s.AnimateRef,animation:e,options:t}}!function(e){e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger"}(s||(s={}));class h{static{this.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.2.8",ngImport:r,type:h,deps:[],target:r.ɵɵFactoryTarget.Injectable})}static{this.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.2.8",ngImport:r,type:h,providedIn:"root",useFactory:()=>t.inject(y)})}}r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.2.8",ngImport:r,type:h,decorators:[{type:t.Injectable,args:[{providedIn:"root",useFactory:()=>t.inject(y)}]}]});class f{}class y extends h{constructor(e,n){super(),this.animationModuleType=t.inject(t.ANIMATION_MODULE_TYPE,{optional:!0}),this._nextAnimationId=0;const i={id:"0",encapsulation:t.ViewEncapsulation.None,styles:[],data:{animation:[]}};if(this._renderer=e.createRenderer(n.body,i),null===this.animationModuleType&&!function(e){const t=e.ɵtype;return 0===t||1===t}(this._renderer))throw new t.ɵRuntimeError(3600,("undefined"==typeof ngDevMode||ngDevMode)&&"Angular detected that the `AnimationBuilder` was injected, but animation support was not enabled. Please make sure that you enable animations in your application by calling `provideAnimations()` or `provideAnimationsAsync()` function.")}build(e){const t=this._nextAnimationId;this._nextAnimationId++;const n=Array.isArray(e)?function(e,t=null){return{type:s.Sequence,steps:e,options:t}}(e):e;return v(this._renderer,null,t,"register",[n]),new b(t,this._renderer)}static{this.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.2.8",ngImport:r,type:y,deps:[{token:r.RendererFactory2},{token:n.DOCUMENT}],target:r.ɵɵFactoryTarget.Injectable})}static{this.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.2.8",ngImport:r,type:y,providedIn:"root"})}}r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.2.8",ngImport:r,type:y,decorators:[{type:t.Injectable,args:[{providedIn:"root"}]}],ctorParameters:()=>[{type:r.RendererFactory2},{type:Document,decorators:[{type:t.Inject,args:[n.DOCUMENT]}]}]});class b extends f{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new C(this._id,e,t||{},this._renderer)}}class C{constructor(e,t,n,i){this.id=e,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){v(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){return function(e){const t=e.ɵtype;if(0===t)return e;if(1===t)return e.animationRenderer;return null}(this._renderer)?.engine?.players[this.id]?.getPosition()??0}}function v(e,t,n,i,o){e.setProperty(t,`@@${n}:${i}`,o)}class I{static isArray(e,t=!0){return Array.isArray(e)&&(t||0!==e.length)}static isObject(e,t=!0){return"object"==typeof e&&!Array.isArray(e)&&null!=e&&(t||0!==Object.keys(e).length)}static equals(e,t,n){return n?this.resolveFieldData(e,n)===this.resolveFieldData(t,n):this.equalsByValue(e,t)}static equalsByValue(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,i,o,s=Array.isArray(e),r=Array.isArray(t);if(s&&r){if((i=e.length)!=t.length)return!1;for(n=i;0!=n--;)if(!this.equalsByValue(e[n],t[n]))return!1;return!0}if(s!=r)return!1;var a=this.isDate(e),l=this.isDate(t);if(a!=l)return!1;if(a&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,d=t instanceof RegExp;if(c!=d)return!1;if(c&&d)return e.toString()==t.toString();var g=Object.keys(e);if((i=g.length)!==Object.keys(t).length)return!1;for(n=i;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,g[n]))return!1;for(n=i;0!=n--;)if(o=g[n],!this.equalsByValue(e[o],t[o]))return!1;return!0}return e!=e&&t!=t}static resolveFieldData(e,t){if(e&&t){if(this.isFunction(t))return t(e);if(-1==t.indexOf("."))return e[t];{let n=t.split("."),i=e;for(let e=0,t=n.length;e<t;++e){if(null==i)return null;i=i[n[e]]}return i}}return null}static isFunction(e){return!!(e&&e.constructor&&e.call&&e.apply)}static reorderArray(e,t,n){e&&t!==n&&(n>=e.length&&(n%=e.length,t%=e.length),e.splice(n,0,e.splice(t,1)[0]))}static insertIntoOrderedArray(e,t,n,i){if(n.length>0){let o=!1;for(let s=0;s<n.length;s++){if(this.findIndexInList(n[s],i)>t){n.splice(s,0,e),o=!0;break}}o||n.push(e)}else n.push(e)}static findIndexInList(e,t){let n=-1;if(t)for(let i=0;i<t.length;i++)if(t[i]==e){n=i;break}return n}static contains(e,t){if(null!=e&&t&&t.length)for(let n of t)if(this.equals(e,n))return!0;return!1}static removeAccents(e){return e&&(e=e.normalize("NFKD").replace(/\p{Diacritic}/gu,"")),e}static isDate(e){return"[object Date]"===Object.prototype.toString.call(e)}static isEmpty(e){return null==e||""===e||Array.isArray(e)&&0===e.length||!this.isDate(e)&&"object"==typeof e&&0===Object.keys(e).length}static isNotEmpty(e){return!this.isEmpty(e)}static compare(e,t,n,i=1){let o=-1;const s=this.isEmpty(e),r=this.isEmpty(t);return o=s&&r?0:s?i:r?-i:"string"==typeof e&&"string"==typeof t?e.localeCompare(t,n,{numeric:!0}):e<t?-1:e>t?1:0,o}static sort(e,t,n=1,i,o=1){const s=I.compare(e,t,i,n);let r=n;return(I.isEmpty(e)||I.isEmpty(t))&&(r=1===o?n:o),r*s}static merge(e,t){if(null!=e||null!=t)return null!=e&&"object"!=typeof e||null!=t&&"object"!=typeof t?null!=e&&"string"!=typeof e||null!=t&&"string"!=typeof t?t||e:[e||"",t||""].join(" "):{...e||{},...t||{}}}static isPrintableCharacter(e=""){return this.isNotEmpty(e)&&1===e.length&&e.match(/\S| /)}static getItemValue(e,...t){return this.isFunction(e)?e(...t):e}static findLastIndex(e,t){let n=-1;if(this.isNotEmpty(e))try{n=e.findLastIndex(t)}catch{n=e.lastIndexOf([...e].reverse().find(t))}return n}static findLast(e,t){let n;if(this.isNotEmpty(e))try{n=e.findLast(t)}catch{n=[...e].reverse().find(t)}return n}static deepEquals(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,i,o,s=Array.isArray(e),r=Array.isArray(t);if(s&&r){if((i=e.length)!=t.length)return!1;for(n=i;0!=n--;)if(!this.deepEquals(e[n],t[n]))return!1;return!0}if(s!=r)return!1;var a=e instanceof Date,l=t instanceof Date;if(a!=l)return!1;if(a&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,d=t instanceof RegExp;if(c!=d)return!1;if(c&&d)return e.toString()==t.toString();var g=Object.keys(e);if((i=g.length)!==Object.keys(t).length)return!1;for(n=i;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,g[n]))return!1;for(n=i;0!=n--;)if(o=g[n],!this.deepEquals(e[o],t[o]))return!1;return!0}return e!=e&&t!=t}}var w=0;function E(e="pn_id_"){return`${e}${++w}`}var S,T=function(){let e=[];const t=e=>e&&parseInt(e.style.zIndex,10)||0;return{get:t,set:(t,n,i)=>{n&&(n.style.zIndex=String(((t,n)=>{let i=e.length>0?e[e.length-1]:{key:t,value:n},o=i.value+(i.key===t?0:n)+2;return e.push({key:t,value:o}),o})(t,i)))},clear:n=>{var i;n&&(i=t(n),e=e.filter((e=>e.value!==i)),n.style.zIndex="")},getCurrent:()=>e.length>0?e[e.length-1].value:0}}();!function(e){e[e.ACCEPT=0]="ACCEPT",e[e.REJECT=1]="REJECT",e[e.CANCEL=2]="CANCEL"}(S||(S={}));class x{requireConfirmationSource=new i.Subject;acceptConfirmationSource=new i.Subject;requireConfirmation$=this.requireConfirmationSource.asObservable();accept=this.acceptConfirmationSource.asObservable();confirm(e){return this.requireConfirmationSource.next(e),this}close(){return this.requireConfirmationSource.next(null),this}onAccept(){this.acceptConfirmationSource.next(null)}static"ɵfac"=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:x,deps:[],target:r.ɵɵFactoryTarget.Injectable});static"ɵprov"=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:x})}r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:x,decorators:[{type:t.Injectable}]});class L{activeItemKeyChange=new i.Subject;activeItemKeyChange$=this.activeItemKeyChange.asObservable();activeItemKey;changeKey(e){this.activeItemKey=e,this.activeItemKeyChange.next(this.activeItemKey)}reset(){this.activeItemKey=null,this.activeItemKeyChange.next(this.activeItemKey)}static"ɵfac"=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:L,deps:[],target:r.ɵɵFactoryTarget.Injectable});static"ɵprov"=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:L})}r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:L,decorators:[{type:t.Injectable}]});class A{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"}class D{filter(e,t,n,i,o){let s=[];if(e)for(let r of e)for(let e of t){let t=I.resolveFieldData(r,e);if(this.filters[i](t,n,o)){s.push(r);break}}return s}filters={startsWith:(e,t,n)=>{if(null==t||""===t.trim())return!0;if(null==e)return!1;let i=I.removeAccents(t.toString()).toLocaleLowerCase(n);return I.removeAccents(e.toString()).toLocaleLowerCase(n).slice(0,i.length)===i},contains:(e,t,n)=>{if(null==t||"string"==typeof t&&""===t.trim())return!0;if(null==e)return!1;let i=I.removeAccents(t.toString()).toLocaleLowerCase(n);return-1!==I.removeAccents(e.toString()).toLocaleLowerCase(n).indexOf(i)},notContains:(e,t,n)=>{if(null==t||"string"==typeof t&&""===t.trim())return!0;if(null==e)return!1;let i=I.removeAccents(t.toString()).toLocaleLowerCase(n);return-1===I.removeAccents(e.toString()).toLocaleLowerCase(n).indexOf(i)},endsWith:(e,t,n)=>{if(null==t||""===t.trim())return!0;if(null==e)return!1;let i=I.removeAccents(t.toString()).toLocaleLowerCase(n),o=I.removeAccents(e.toString()).toLocaleLowerCase(n);return-1!==o.indexOf(i,o.length-i.length)},equals:(e,t,n)=>null==t||"string"==typeof t&&""===t.trim()||null!=e&&(e.getTime&&t.getTime?e.getTime()===t.getTime():e==t||I.removeAccents(e.toString()).toLocaleLowerCase(n)==I.removeAccents(t.toString()).toLocaleLowerCase(n)),notEquals:(e,t,n)=>null!=t&&("string"!=typeof t||""!==t.trim())&&(null==e||(e.getTime&&t.getTime?e.getTime()!==t.getTime():e!=t&&I.removeAccents(e.toString()).toLocaleLowerCase(n)!=I.removeAccents(t.toString()).toLocaleLowerCase(n))),in:(e,t)=>{if(null==t||0===t.length)return!0;for(let n=0;n<t.length;n++)if(I.equals(e,t[n]))return!0;return!1},between:(e,t)=>null==t||null==t[0]||null==t[1]||null!=e&&(e.getTime?t[0].getTime()<=e.getTime()&&e.getTime()<=t[1].getTime():t[0]<=e&&e<=t[1]),lt:(e,t,n)=>null==t||null!=e&&(e.getTime&&t.getTime?e.getTime()<t.getTime():e<t),lte:(e,t,n)=>null==t||null!=e&&(e.getTime&&t.getTime?e.getTime()<=t.getTime():e<=t),gt:(e,t,n)=>null==t||null!=e&&(e.getTime&&t.getTime?e.getTime()>t.getTime():e>t),gte:(e,t,n)=>null==t||null!=e&&(e.getTime&&t.getTime?e.getTime()>=t.getTime():e>=t),is:(e,t,n)=>this.filters.equals(e,t,n),isNot:(e,t,n)=>this.filters.notEquals(e,t,n),before:(e,t,n)=>this.filters.lt(e,t,n),after:(e,t,n)=>this.filters.gt(e,t,n),dateIs:(e,t)=>null==t||null!=e&&e.toDateString()===t.toDateString(),dateIsNot:(e,t)=>null==t||null!=e&&e.toDateString()!==t.toDateString(),dateBefore:(e,t)=>null==t||null!=e&&e.getTime()<t.getTime(),dateAfter:(e,t)=>{if(null==t)return!0;if(null==e)return!1;const n=new Date(e);return n.setHours(0,0,0,0),n.getTime()>t.getTime()}};register(e,t){this.filters[e]=t}static"ɵfac"=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:D,deps:[],target:r.ɵɵFactoryTarget.Injectable});static"ɵprov"=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:D,providedIn:"root"})}r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:D,decorators:[{type:t.Injectable,args:[{providedIn:"root"}]}]});class O{messageSource=new i.Subject;clearSource=new i.Subject;messageObserver=this.messageSource.asObservable();clearObserver=this.clearSource.asObservable();add(e){e&&this.messageSource.next(e)}addAll(e){e&&e.length&&this.messageSource.next(e)}clear(e){this.clearSource.next(e||null)}static"ɵfac"=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:O,deps:[],target:r.ɵɵFactoryTarget.Injectable});static"ɵprov"=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:O})}r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:O,decorators:[{type:t.Injectable}]});class _{clickSource=new i.Subject;clickObservable=this.clickSource.asObservable();add(e){e&&this.clickSource.next(e)}static"ɵfac"=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:_,deps:[],target:r.ɵɵFactoryTarget.Injectable});static"ɵprov"=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:_,providedIn:"root"})}r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:_,decorators:[{type:t.Injectable,args:[{providedIn:"root"}]}]});class M{ripple=!1;inputStyle=t.signal("outlined");overlayOptions={};csp=t.signal({nonce:void 0});filterMatchModeOptions={text:[A.STARTS_WITH,A.CONTAINS,A.NOT_CONTAINS,A.ENDS_WITH,A.EQUALS,A.NOT_EQUALS],numeric:[A.EQUALS,A.NOT_EQUALS,A.LESS_THAN,A.LESS_THAN_OR_EQUAL_TO,A.GREATER_THAN,A.GREATER_THAN_OR_EQUAL_TO],date:[A.DATE_IS,A.DATE_IS_NOT,A.DATE_BEFORE,A.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List",selectColor:"Select a color",removeLabel:"Remove",browseFiles:"Browse Files",maximizeLabel:"Maximize"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new i.Subject;translationObserver=this.translationSource.asObservable();getTranslation(e){return this.translation[e]}setTranslation(e){this.translation={...this.translation,...e},this.translationSource.next(this.translation)}static"ɵfac"=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:M,deps:[],target:r.ɵɵFactoryTarget.Injectable});static"ɵprov"=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:M,providedIn:"root"})}r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:M,decorators:[{type:t.Injectable,args:[{providedIn:"root"}]}]});class N{static"ɵfac"=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:N,deps:[],target:r.ɵɵFactoryTarget.Component});static"ɵcmp"=r.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:N,isStandalone:!0,selector:"p-header",ngImport:r,template:"<ng-content></ng-content>",isInline:!0})}r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:N,decorators:[{type:t.Component,args:[{selector:"p-header",standalone:!0,template:"<ng-content></ng-content>"}]}]});class R{static"ɵfac"=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:R,deps:[],target:r.ɵɵFactoryTarget.Component});static"ɵcmp"=r.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:R,isStandalone:!0,selector:"p-footer",ngImport:r,template:"<ng-content></ng-content>",isInline:!0})}r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:R,decorators:[{type:t.Component,args:[{selector:"p-footer",standalone:!0,template:"<ng-content></ng-content>"}]}]});class F{template;type;name;constructor(e){this.template=e}getType(){return this.name}static"ɵfac"=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:F,deps:[{token:r.TemplateRef}],target:r.ɵɵFactoryTarget.Directive});static"ɵdir"=r.ɵɵngDeclareDirective({minVersion:"14.0.0",version:"18.0.1",type:F,isStandalone:!0,selector:"[pTemplate]",inputs:{type:"type",name:["pTemplate","name"]},ngImport:r})}r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:F,decorators:[{type:t.Directive,args:[{selector:"[pTemplate]",standalone:!0,host:{}}]}],ctorParameters:()=>[{type:r.TemplateRef}],propDecorators:{type:[{type:t.Input}],name:[{type:t.Input,args:["pTemplate"]}]}});class P{static"ɵfac"=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:P,deps:[],target:r.ɵɵFactoryTarget.NgModule});static"ɵmod"=r.ɵɵngDeclareNgModule({minVersion:"14.0.0",version:"18.0.1",ngImport:r,type:P,imports:[N,R,F],exports:[N,R,F]});static"ɵinj"=r.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:P})}r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:P,decorators:[{type:t.NgModule,args:[{imports:[N,R,F],exports:[N,R,F]}]}]});class V{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage";static SHOW_FILTER_MENU="showFilterMenu";static HIDE_FILTER_MENU="hideFilterMenu";static SELECTION_MESSAGE="selectionMessage";static ARIA="aria";static SELECT_COLOR="selectColor";static BROWSE_FILES="browseFiles"}class z{dragStartSource=new i.Subject;dragStopSource=new i.Subject;dragStart$=this.dragStartSource.asObservable();dragStop$=this.dragStopSource.asObservable();startDrag(e){this.dragStartSource.next(e)}stopDrag(e){this.dragStopSource.next(e)}static"ɵfac"=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:z,deps:[],target:r.ɵɵFactoryTarget.Injectable});static"ɵprov"=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:z})}r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:z,decorators:[{type:t.Injectable}]});class H{pFocusTrapDisabled=!1;platformId=t.inject(t.PLATFORM_ID);host=t.inject(t.ElementRef);document=t.inject(n.DOCUMENT);firstHiddenFocusableElement;lastHiddenFocusableElement;ngOnInit(){n.isPlatformBrowser(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}ngOnChanges(e){e.pFocusTrapDisabled&&n.isPlatformBrowser(this.platformId)&&(e.pFocusTrapDisabled.currentValue?this.removeHiddenFocusableElements():this.createHiddenFocusableElements())}removeHiddenFocusableElements(){this.firstHiddenFocusableElement&&this.firstHiddenFocusableElement.parentNode&&this.firstHiddenFocusableElement.parentNode.removeChild(this.firstHiddenFocusableElement),this.lastHiddenFocusableElement&&this.lastHiddenFocusableElement.parentNode&&this.lastHiddenFocusableElement.parentNode.removeChild(this.lastHiddenFocusableElement)}getComputedSelector(e){return`:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${e??""}`}createHiddenFocusableElements(){const e=e=>l.createElement("span",{class:"p-hidden-accessible p-hidden-focusable",tabindex:"0",role:"presentation","data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:e?.bind(this)});this.firstHiddenFocusableElement=e(this.onFirstHiddenElementFocus),this.lastHiddenFocusableElement=e(this.onLastHiddenElementFocus),this.firstHiddenFocusableElement.setAttribute("data-pc-section","firstfocusableelement"),this.lastHiddenFocusableElement.setAttribute("data-pc-section","lastfocusableelement"),this.host.nativeElement.prepend(this.firstHiddenFocusableElement),this.host.nativeElement.append(this.lastHiddenFocusableElement)}onFirstHiddenElementFocus(e){const{currentTarget:t,relatedTarget:n}=e,i=n!==this.lastHiddenFocusableElement&&this.host.nativeElement?.contains(n)?this.lastHiddenFocusableElement:l.getFirstFocusableElement(t.parentElement,":not(.p-hidden-focusable)");l.focus(i)}onLastHiddenElementFocus(e){const{currentTarget:t,relatedTarget:n}=e,i=n!==this.firstHiddenFocusableElement&&this.host.nativeElement?.contains(n)?this.firstHiddenFocusableElement:l.getLastFocusableElement(t.parentElement,":not(.p-hidden-focusable)");l.focus(i)}static"ɵfac"=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:H,deps:[],target:r.ɵɵFactoryTarget.Directive});static"ɵdir"=r.ɵɵngDeclareDirective({minVersion:"16.1.0",version:"18.0.1",type:H,selector:"[pFocusTrap]",inputs:{pFocusTrapDisabled:["pFocusTrapDisabled","pFocusTrapDisabled",t.booleanAttribute]},host:{classAttribute:"p-element"},usesOnChanges:!0,ngImport:r})}r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:H,decorators:[{type:t.Directive,args:[{selector:"[pFocusTrap]",host:{class:"p-element"}}]}],propDecorators:{pFocusTrapDisabled:[{type:t.Input,args:[{transform:t.booleanAttribute}]}]}});class j{static"ɵfac"=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:j,deps:[],target:r.ɵɵFactoryTarget.NgModule});static"ɵmod"=r.ɵɵngDeclareNgModule({minVersion:"14.0.0",version:"18.0.1",ngImport:r,type:j,declarations:[H],imports:[n.CommonModule],exports:[H]});static"ɵinj"=r.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:j,imports:[n.CommonModule]})}r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:j,decorators:[{type:t.NgModule,args:[{imports:[n.CommonModule],exports:[H],declarations:[H]}]}]});class k{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){const e=I.isEmpty(this.label);this.role=e?void 0:"img",this.ariaLabel=e?void 0:this.label,this.ariaHidden=e}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static"ɵfac"=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:k,deps:[],target:r.ɵɵFactoryTarget.Component});static"ɵcmp"=r.ɵɵngDeclareComponent({minVersion:"16.1.0",version:"18.0.1",type:k,isStandalone:!0,selector:"ng-component",inputs:{label:"label",spin:["spin","spin",t.booleanAttribute],styleClass:"styleClass"},host:{classAttribute:"p-element p-icon-wrapper"},ngImport:r,template:" <ng-content></ng-content> ",isInline:!0,changeDetection:r.ChangeDetectionStrategy.OnPush,encapsulation:r.ViewEncapsulation.None})}r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:k,decorators:[{type:t.Component,args:[{template:" <ng-content></ng-content> ",standalone:!0,changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,host:{class:"p-element p-icon-wrapper"}}]}],propDecorators:{label:[{type:t.Input}],spin:[{type:t.Input,args:[{transform:t.booleanAttribute}]}],styleClass:[{type:t.Input}]}});class B extends k{static"ɵfac"=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:B,deps:null,target:r.ɵɵFactoryTarget.Component});static"ɵcmp"=r.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:B,isStandalone:!0,selector:"TimesIcon",usesInheritance:!0,ngImport:r,template:'\n <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" [attr.aria-label]="ariaLabel" [attr.aria-hidden]="ariaHidden" [attr.role]="role" [class]="getClassNames()">\n <path\n d="M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z"\n fill="currentColor"\n />\n </svg>\n ',isInline:!0})}r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:B,decorators:[{type:t.Component,args:[{selector:"TimesIcon",standalone:!0,imports:[k],template:'\n <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" [attr.aria-label]="ariaLabel" [attr.aria-hidden]="ariaHidden" [attr.role]="role" [class]="getClassNames()">\n <path\n d="M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z"\n fill="currentColor"\n />\n </svg>\n '}]}]});class W extends k{pathId;ngOnInit(){this.pathId="url(#"+E()+")"}static"ɵfac"=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:W,deps:null,target:r.ɵɵFactoryTarget.Component});static"ɵcmp"=r.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:W,isStandalone:!0,selector:"WindowMaximizeIcon",usesInheritance:!0,ngImport:r,template:'\n <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" [attr.aria-label]="ariaLabel" [attr.aria-hidden]="ariaHidden" [attr.role]="role" [class]="getClassNames()">\n <g [attr.clip-path]="pathId">\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z"\n fill="currentColor"\n />\n </g>\n <defs>\n <clipPath [id]="pathId">\n <rect width="14" height="14" fill="white" />\n </clipPath>\n </defs>\n </svg>\n ',isInline:!0})}r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:W,decorators:[{type:t.Component,args:[{selector:"WindowMaximizeIcon",standalone:!0,imports:[k],template:'\n <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" [attr.aria-label]="ariaLabel" [attr.aria-hidden]="ariaHidden" [attr.role]="role" [class]="getClassNames()">\n <g [attr.clip-path]="pathId">\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z"\n fill="currentColor"\n />\n </g>\n <defs>\n <clipPath [id]="pathId">\n <rect width="14" height="14" fill="white" />\n </clipPath>\n </defs>\n </svg>\n '}]}]});class $ extends k{pathId;ngOnInit(){this.pathId="url(#"+E()+")"}static"ɵfac"=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:$,deps:null,target:r.ɵɵFactoryTarget.Component});static"ɵcmp"=r.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:$,isStandalone:!0,selector:"WindowMinimizeIcon",usesInheritance:!0,ngImport:r,template:'\n <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" [attr.aria-label]="ariaLabel" [attr.aria-hidden]="ariaHidden" [attr.role]="role" [class]="getClassNames()">\n <g [attr.clip-path]="pathId">\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z"\n fill="currentColor"\n />\n </g>\n <defs>\n <clipPath [id]="pathId">\n <rect width="14" height="14" fill="white" />\n </clipPath>\n </defs>\n </svg>\n ',isInline:!0})}r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:$,decorators:[{type:t.Component,args:[{selector:"WindowMinimizeIcon",standalone:!0,imports:[k],template:'\n <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" [attr.aria-label]="ariaLabel" [attr.aria-hidden]="ariaHidden" [attr.role]="role" [class]="getClassNames()">\n <g [attr.clip-path]="pathId">\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z"\n fill="currentColor"\n />\n </g>\n <defs>\n <clipPath [id]="pathId">\n <rect width="14" height="14" fill="white" />\n </clipPath>\n </defs>\n </svg>\n '}]}]});class U{viewContainerRef;constructor(e){this.viewContainerRef=e}static"ɵfac"=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:U,deps:[{token:r.ViewContainerRef}],target:r.ɵɵFactoryTarget.Directive});static"ɵdir"=r.ɵɵngDeclareDirective({minVersion:"14.0.0",version:"18.0.1",type:U,selector:"[pDynamicDialogContent]",host:{classAttribute:"p-element"},ngImport:r})}r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:U,decorators:[{type:t.Directive,args:[{selector:"[pDynamicDialogContent]",host:{class:"p-element"}}]}],ctorParameters:()=>[{type:r.ViewContainerRef}]});class G{data;header;ariaLabelledBy;footer;width;height;closeOnEscape;focusOnShow=!0;focusOnClose=!0;focusTrap=!0;baseZIndex;autoZIndex;dismissableMask;rtl;style;contentStyle;styleClass;transitionOptions;closable;showHeader;modal;maskStyleClass;resizable;draggable;keepInViewport;minX;minY;maximizable;maximizeIcon;minimizeIcon;position;closeAriaLabel;appendTo;duplicate;breakpoints;templates}class q{constructor(){}close(e){this._onClose.next(e),setTimeout((()=>{this._onClose.complete()}),1e3)}destroy(){this._onDestroy.next(null)}dragStart(e){this._onDragStart.next(e)}dragEnd(e){this._onDragEnd.next(e)}resizeInit(e){this._onResizeInit.next(e)}resizeEnd(e){this._onResizeEnd.next(e)}maximize(e){this._onMaximize.next(e)}_onClose=new i.Subject;onClose=this._onClose.asObservable();_onDestroy=new i.Subject;onDestroy=this._onDestroy.asObservable();_onDragStart=new i.Subject;onDragStart=this._onDragStart.asObservable();_onDragEnd=new i.Subject;onDragEnd=this._onDragEnd.asObservable();_onResizeInit=new i.Subject;onResizeInit=this._onResizeInit.asObservable();_onResizeEnd=new i.Subject;onResizeEnd=this._onResizeEnd.asObservable();_onMaximize=new i.Subject;onMaximize=this._onMaximize.asObservable();onChildComponentLoaded=new i.Subject}const Y=u([g({transform:"{{transform}}",opacity:0}),d("{{transition}}",g({transform:"none",opacity:1}))]),Z=u([d("{{transition}}",g({transform:"{{transform}}",opacity:0}))]);class X{document;platformId;cd;renderer;config;dialogRef;zone;primeNGConfig;parentDialog;visible=!0;componentRef;mask;resizing;dragging;maximized;_style={};originalStyle;lastPageX;lastPageY;ariaLabelledBy;id=E();styleElement;insertionPoint;maskViewChild;contentViewChild;footerViewChild;headerViewChild;childComponentType;container;wrapper;documentKeydownListener;documentEscapeListener;maskClickListener;transformOptions="scale(0.7)";documentResizeListener;documentResizeEndListener;documentDragListener;documentDragEndListener;get minX(){return this.config.minX?this.config.minX:0}get minY(){return this.config.minY?this.config.minY:0}get keepInViewport(){return this.config.keepInViewport}get maximizable(){return this.config.maximizable}get maximizeIcon(){return this.config.maximizeIcon}get minimizeIcon(){return this.config.minimizeIcon}get style(){return this._style}get position(){return this.config.position}get closeAriaLabel(){return this.primeNGConfig.getTranslation(V.ARIA).close}set style(e){e&&(this._style={...e},this.originalStyle=e)}get parent(){const e=Array.from(this.document.getElementsByClassName("p-dialog"));if(e.length>1)return e.pop()}get parentContent(){const e=Array.from(this.document.getElementsByClassName("p-dialog"));if(e.length>0){const t=e[e.length-1].querySelector(".p-dialog-content");if(t)return Array.isArray(t)?t[0]:t}}get header(){return this.config.header}get data(){return this.config.data}get breakpoints(){return this.config.breakpoints}get footerTemplate(){return this.config?.templates?.footer}get headerTemplate(){return this.config?.templates?.header}get contentTemplate(){return this.config?.templates?.content}get minimizeIconTemplate(){return this.config?.templates?.minimizeicon}get maximizeIconTemplate(){return this.config?.templates?.maximizeicon}get closeIconTemplate(){return this.config?.templates?.closeicon}get dynamicDialogCount(){const e=this.document.querySelectorAll("p-dynamicdialog"),t=e?.length;return t}get containerStyle(){return{...this.config.style,width:this.config.width,height:this.config.height}}constructor(e,t,n,i,o,s,r,a,l){this.document=e,this.platformId=t,this.cd=n,this.renderer=i,this.config=o,this.dialogRef=s,this.zone=r,this.primeNGConfig=a,this.parentDialog=l}ngOnInit(){this.breakpoints&&this.createStyle()}createStyle(){if(n.isPlatformBrowser(this.platformId)&&!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",l.setAttribute(this.styleElement,"nonce",this.primeNGConfig?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let t in this.breakpoints)e+=`\n @media screen and (max-width: ${t}) {\n .p-dialog[${this.id}]:not(.p-dialog-maximized) {\n width: ${this.breakpoints[t]} !important;\n }\n }\n `;this.renderer.setProperty(this.styleElement,"innerHTML",e)}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngAfterViewInit(){this.loadChildComponent(this.childComponentType),this.ariaLabelledBy=this.getAriaLabelledBy(),this.cd.detectChanges()}getAriaLabelledBy(){return null!==this.header?E()+"_header":null}loadChildComponent(e){let t=this.insertionPoint?.viewContainerRef;t?.clear(),this.componentRef=t?.createComponent(e),this.dialogRef.onChildComponentLoaded.next(this.componentRef.instance)}moveOnTop(){!1!==this.config.autoZIndex&&(T.set("modal",this.container,(this.config.baseZIndex||0)+this.primeNGConfig.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container.parentElement,this.moveOnTop(),this.parent&&this.unbindGlobalListeners(),this.bindGlobalListeners(),this.container?.setAttribute(this.id,""),!1!==this.config.modal&&this.enableModality(),!1!==this.config.focusOnShow&&this.focus();break;case"void":this.wrapper&&!1!==this.config.modal&&l.addClass(this.wrapper,"p-component-overlay-leave")}}onAnimationEnd(e){"void"===e.toState&&(this.parentContent&&!1!==this.config.focusOnClose&&this.focus(this.parentContent),this.onContainerDestroy(),this.dialogRef.destroy())}onContainerDestroy(){this.unbindGlobalListeners(),this.container&&!1!==this.config.autoZIndex&&T.clear(this.container),!1!==this.config.modal&&this.disableModality(),this.container=null}close(){this.visible=!1,this.cd.markForCheck()}hide(){this.dialogRef&&this.dialogRef.close()}enableModality(){this.config.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",(e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.hide()}))),1===this.dynamicDialogCount&&l.addClass(this.document.body,"p-overflow-hidden")}disableModality(){this.wrapper&&(this.config.dismissableMask&&this.unbindMaskClickListener(),1===this.dynamicDialogCount&&l.removeClass(this.document.body,"p-overflow-hidden"),this.cd.destroyed||this.cd.detectChanges())}focus(e=this.contentViewChild.nativeElement){if(!l.getFocusableElements(e).length)return;let t=l.getFocusableElement(e,"[autofocus]");if(t)return void this.zone.runOutsideAngular((()=>{setTimeout((()=>t.focus()),5)}));const n=l.getFocusableElement(e);n?this.zone.runOutsideAngular((()=>{setTimeout((()=>n.focus()),5)})):this.footerViewChild?this.focus(this.footerViewChild.nativeElement):!n&&this.headerViewChild&&this.focus(this.headerViewChild.nativeElement)}maximize(){this.maximized=!this.maximized,this.maximized?l.addClass(this.document.body,"p-overflow-hidden"):l.removeClass(this.document.body,"p-overflow-hidden"),this.dialogRef.maximize({maximized:this.maximized})}initResize(e){this.config.resizable&&(this.documentResizeListener||this.bindDocumentResizeListeners(),this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,l.addClass(this.document.body,"p-unselectable-text"),this.dialogRef.resizeInit(e))}onResize(e){if(this.resizing){let t=e.pageX-this.lastPageX,n=e.pageY-this.lastPageY,i=l.getOuterWidth(this.container),o=l.getOuterHeight(this.container),s=l.getOuterHeight(this.contentViewChild.nativeElement),r=i+t,a=o+n,c=this.container.style.minWidth,d=this.container.style.minHeight,g=this.container.getBoundingClientRect(),p=l.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(r+=t,a+=n),(!c||r>parseInt(c))&&g.left+r<p.width&&(this._style.width=r+"px",this.container.style.width=this._style.width),(!d||a>parseInt(d))&&g.top+a<p.height&&(this.contentViewChild.nativeElement.style.height=s+a-o+"px",this._style.height&&(this._style.height=a+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resizing=!1,l.removeClass(this.document.body,"p-unselectable-text"),this.dialogRef.resizeEnd(e))}initDrag(e){l.hasClass(e.target,"p-dialog-header-icon")||l.hasClass(e.target.parentElement,"p-dialog-header-icon")||this.config.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",l.addClass(this.document.body,"p-unselectable-text"),this.dialogRef.dragStart(e))}onDrag(e){if(this.dragging){let t=l.getOuterWidth(this.container),n=l.getOuterHeight(this.container),i=e.pageX-this.lastPageX,o=e.pageY-this.lastPageY,s=this.container.getBoundingClientRect(),r=s.left+i,a=s.top+o,c=l.getViewport();this.container.style.position="fixed",this.keepInViewport?(r>=this.minX&&r+t<c.width&&(this._style.left=r+"px",this.lastPageX=e.pageX,this.container.style.left=r+"px"),a>=this.minY&&a+n<c.height&&(this._style.top=a+"px",this.lastPageY=e.pageY,this.container.style.top=a+"px")):(this.lastPageX=e.pageX,this.container.style.left=r+"px",this.lastPageY=e.pageY,this.container.style.top=a+"px")}}endDrag(e){this.dragging&&(this.dragging=!1,l.removeClass(this.document.body,"p-unselectable-text"),this.dialogRef.dragEnd(e),this.cd.detectChanges())}resetPosition(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""}bindDocumentDragListener(){n.isPlatformBrowser(this.platformId)&&this.zone.runOutsideAngular((()=>{this.documentDragListener=this.renderer.listen(this.document,"mousemove",this.onDrag.bind(this))}))}bindDocumentDragEndListener(){n.isPlatformBrowser(this.platformId)&&this.zone.runOutsideAngular((()=>{this.documentDragEndListener=this.renderer.listen(this.document,"mouseup",this.endDrag.bind(this))}))}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragListener=null)}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentResizeListeners(){n.isPlatformBrowser(this.platformId)&&this.zone.runOutsideAngular((()=>{this.documentResizeListener=this.renderer.listen(this.document,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.document,"mouseup",this.resizeEnd.bind(this))}))}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindGlobalListeners(){!1!==this.config.closeOnEscape&&this.bindDocumentEscapeListener(),this.config.resizable&&this.bindDocumentResizeListeners(),this.config.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener())}unbindGlobalListeners(){this.unbindDocumentEscapeListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener()}bindDocumentEscapeListener(){const e=this.maskViewChild?this.maskViewChild.nativeElement.ownerDocument:"document";this.documentEscapeListener=this.renderer.listen(e,"keydown",(e=>{27==e.which&&parseInt(this.container.style.zIndex)==T.getCurrent()&&this.hide()}))}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}ngOnDestroy(){this.onContainerDestroy(),this.componentRef&&this.componentRef.destroy(),this.destroyStyle()}static"ɵfac"=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:X,deps:[{token:n.DOCUMENT},{token:t.PLATFORM_ID},{token:r.ChangeDetectorRef},{token:r.Renderer2},{token:G},{token:q},{token:r.NgZone},{token:M},{token:X,optional:!0,skipSelf:!0}],target:r.ɵɵFactoryTarget.Component});static"ɵcmp"=r.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:X,selector:"p-dynamicDialog",host:{classAttribute:"p-element"},viewQueries:[{propertyName:"insertionPoint",first:!0,predicate:U,descendants:!0},{propertyName:"maskViewChild",first:!0,predicate:["mask"],descendants:!0},{propertyName:"contentViewChild",first:!0,predicate:["content"],descendants:!0},{propertyName:"footerViewChild",first:!0,predicate:["footer"],descendants:!0},{propertyName:"headerViewChild",first:!0,predicate:["titlebar"],descendants:!0}],ngImport:r,template:'\n <div\n #mask\n [ngClass]="{\n \'p-dialog-mask\': true,\n \'p-component-overlay p-component-overlay-enter p-dialog-mask-scrollblocker\': config.modal !== false,\n \'p-dialog-left\': position === \'left\',\n \'p-dialog-right\': position === \'right\',\n \'p-dialog-top\': position === \'top\',\n \'p-dialog-bottom\': position === \'bottom\',\n \'p-dialog-top-left\': position === \'topleft\' || position === \'top-left\',\n \'p-dialog-top-right\': position === \'topright\' || position === \'top-right\',\n \'p-dialog-bottom-left\': position === \'bottomleft\' || position === \'bottom-left\',\n \'p-dialog-bottom-right\': position === \'bottomright\' || position === \'bottom-right\'\n }"\n [class]="config.maskStyleClass"\n >\n <div\n #container\n [ngClass]="{ \'p-dialog p-dynamic-dialog p-component\': true, \'p-dialog-rtl\': config.rtl, \'p-dialog-resizable\': config.resizable, \'p-dialog-draggable\': config.draggable, \'p-dialog-maximized\': maximized }"\n [ngStyle]="containerStyle"\n [class]="config.styleClass"\n [@animation]="{ value: \'visible\', params: { transform: transformOptions, transition: config.transitionOptions || \'150ms cubic-bezier(0, 0, 0.2, 1)\' } }"\n (@animation.start)="onAnimationStart($event)"\n (@animation.done)="onAnimationEnd($event)"\n role="dialog"\n *ngIf="visible"\n pFocusTrap\n [pFocusTrapDisabled]="config.focusTrap === false"\n [attr.aria-labelledby]="ariaLabelledBy"\n [attr.aria-modal]="true"\n >\n <div *ngIf="config.resizable" class="p-resizable-handle" (mousedown)="initResize($event)"></div>\n <div #titlebar class="p-dialog-header" (mousedown)="initDrag($event)" *ngIf="config.showHeader === false ? false : true">\n <ng-container *ngComponentOutlet="headerTemplate"></ng-container>\n <ng-container *ngIf="!headerTemplate">\n <span class="p-dialog-title" [id]="ariaLabelledBy">{{ config.header }}</span>\n <div class="p-dialog-header-icons">\n <button *ngIf="config.maximizable" type="button" [ngClass]="{ \'p-dialog-header-icon p-dialog-header-maximize p-link\': true }" (click)="maximize()" (keydown.enter)="maximize()" tabindex="-1" pRipple>\n <span class="p-dialog-header-maximize-icon" *ngIf="!maximizeIconTemplate || !minimizeIconTemplate" [ngClass]="maximized ? minimizeIcon : maximizeIcon"></span>\n <WindowMaximizeIcon *ngIf="!maximized && !maximizeIcon && !maximizeIconTemplate" [styleClass]="\'p-dialog-header-maximize-icon\'" />\n <WindowMinimizeIcon *ngIf="maximized && !minimizeIcon && !minimizeIconTemplate" [styleClass]="\'p-dialog-header-maximize-icon\'" />\n <ng-container *ngComponentOutlet="maximizeIconTemplate"></ng-container>\n <ng-container *ngComponentOutlet="minimizeIconTemplate"></ng-container>\n </button>\n <button [ngClass]="\'p-dialog-header-icon p-dialog-header-maximize p-link\'" type="button" role="button" (click)="hide()" (keydown.enter)="hide()" *ngIf="config.closable !== false" [attr.aria-label]="closeAriaLabel">\n <TimesIcon [styleClass]="\'p-dialog-header-close-icon\'" *ngIf="!closeIconTemplate" />\n <ng-container *ngComponentOutlet="closeIconTemplate"></ng-container>\n </button>\n </div>\n </ng-container>\n </div>\n <div #content class="p-dialog-content" [ngStyle]="config.contentStyle">\n <ng-template pDynamicDialogContent *ngIf="!contentTemplate"></ng-template>\n <ng-container *ngComponentOutlet="contentTemplate"></ng-container>\n </div>\n <div #footer class="p-dialog-footer" *ngIf="config.footer || footerTemplate">\n <ng-container *ngIf="!footerTemplate">\n {{ config.footer }}\n </ng-container>\n <ng-container *ngComponentOutlet="footerTemplate"></ng-container>\n </div>\n </div>\n </div>\n ',isInline:!0,styles:["@layer primeng{.p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{-webkit-transition:none;transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}}\n"],dependencies:[{kind:"directive",type:r.forwardRef((()=>a.NgClass)),selector:"[ngClass]",inputs:["class","ngClass"]},{kind:"directive",type:r.forwardRef((()=>a.NgComponentOutlet)),selector:"[ngComponentOutlet]",inputs:["ngComponentOutlet","ngComponentOutletInputs","ngComponentOutletInjector","ngComponentOutletContent","ngComponentOutletNgModule","ngComponentOutletNgModuleFactory"]},{kind:"directive",type:r.forwardRef((()=>a.NgIf)),selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{kind:"directive",type:r.forwardRef((()=>a.NgStyle)),selector:"[ngStyle]",inputs:["ngStyle"]},{kind:"component",type:r.forwardRef((()=>W)),selector:"WindowMaximizeIcon"},{kind:"component",type:r.forwardRef((()=>$)),selector:"WindowMinimizeIcon"},{kind:"component",type:r.forwardRef((()=>B)),selector:"TimesIcon"},{kind:"directive",type:r.forwardRef((()=>H)),selector:"[pFocusTrap]",inputs:["pFocusTrapDisabled"]},{kind:"directive",type:r.forwardRef((()=>U)),selector:"[pDynamicDialogContent]"}],animations:[c("animation",[p("void => visible",[m(Y)]),p("visible => void",[m(Z)])])],changeDetection:r.ChangeDetectionStrategy.Default,encapsulation:r.ViewEncapsulation.None})}r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:X,decorators:[{type:t.Component,args:[{selector:"p-dynamicDialog",template:'\n <div\n #mask\n [ngClass]="{\n \'p-dialog-mask\': true,\n \'p-component-overlay p-component-overlay-enter p-dialog-mask-scrollblocker\': config.modal !== false,\n \'p-dialog-left\': position === \'left\',\n \'p-dialog-right\': position === \'right\',\n \'p-dialog-top\': position === \'top\',\n \'p-dialog-bottom\': position === \'bottom\',\n \'p-dialog-top-left\': position === \'topleft\' || position === \'top-left\',\n \'p-dialog-top-right\': position === \'topright\' || position === \'top-right\',\n \'p-dialog-bottom-left\': position === \'bottomleft\' || position === \'bottom-left\',\n \'p-dialog-bottom-right\': position === \'bottomright\' || position === \'bottom-right\'\n }"\n [class]="config.maskStyleClass"\n >\n <div\n #container\n [ngClass]="{ \'p-dialog p-dynamic-dialog p-component\': true, \'p-dialog-rtl\': config.rtl, \'p-dialog-resizable\': config.resizable, \'p-dialog-draggable\': config.draggable, \'p-dialog-maximized\': maximized }"\n [ngStyle]="containerStyle"\n [class]="config.styleClass"\n [@animation]="{ value: \'visible\', params: { transform: transformOptions, transition: config.transitionOptions || \'150ms cubic-bezier(0, 0, 0.2, 1)\' } }"\n (@animation.start)="onAnimationStart($event)"\n (@animation.done)="onAnimationEnd($event)"\n role="dialog"\n *ngIf="visible"\n pFocusTrap\n [pFocusTrapDisabled]="config.focusTrap === false"\n [attr.aria-labelledby]="ariaLabelledBy"\n [attr.aria-modal]="true"\n >\n <div *ngIf="config.resizable" class="p-resizable-handle" (mousedown)="initResize($event)"></div>\n <div #titlebar class="p-dialog-header" (mousedown)="initDrag($event)" *ngIf="config.showHeader === false ? false : true">\n <ng-container *ngComponentOutlet="headerTemplate"></ng-container>\n <ng-container *ngIf="!headerTemplate">\n <span class="p-dialog-title" [id]="ariaLabelledBy">{{ config.header }}</span>\n <div class="p-dialog-header-icons">\n <button *ngIf="config.maximizable" type="button" [ngClass]="{ \'p-dialog-header-icon p-dialog-header-maximize p-link\': true }" (click)="maximize()" (keydown.enter)="maximize()" tabindex="-1" pRipple>\n <span class="p-dialog-header-maximize-icon" *ngIf="!maximizeIconTemplate || !minimizeIconTemplate" [ngClass]="maximized ? minimizeIcon : maximizeIcon"></span>\n <WindowMaximizeIcon *ngIf="!maximized && !maximizeIcon && !maximizeIconTemplate" [styleClass]="\'p-dialog-header-maximize-icon\'" />\n <WindowMinimizeIcon *ngIf="maximized && !minimizeIcon && !minimizeIconTemplate" [styleClass]="\'p-dialog-header-maximize-icon\'" />\n <ng-container *ngComponentOutlet="maximizeIconTemplate"></ng-container>\n <ng-container *ngComponentOutlet="minimizeIconTemplate"></ng-container>\n </button>\n <button [ngClass]="\'p-dialog-header-icon p-dialog-header-maximize p-link\'" type="button" role="button" (click)="hide()" (keydown.enter)="hide()" *ngIf="config.closable !== false" [attr.aria-label]="closeAriaLabel">\n <TimesIcon [styleClass]="\'p-dialog-header-close-icon\'" *ngIf="!closeIconTemplate" />\n <ng-container *ngComponentOutlet="closeIconTemplate"></ng-container>\n </button>\n </div>\n </ng-container>\n </div>\n <div #content class="p-dialog-content" [ngStyle]="config.contentStyle">\n <ng-template pDynamicDialogContent *ngIf="!contentTemplate"></ng-template>\n <ng-container *ngComponentOutlet="contentTemplate"></ng-container>\n </div>\n <div #footer class="p-dialog-footer" *ngIf="config.footer || footerTemplate">\n <ng-container *ngIf="!footerTemplate">\n {{ config.footer }}\n </ng-container>\n <ng-container *ngComponentOutlet="footerTemplate"></ng-container>\n </div>\n </div>\n </div>\n ',animations:[c("animation",[p("void => visible",[m(Y)]),p("visible => void",[m(Z)])])],changeDetection:t.ChangeDetectionStrategy.Default,encapsulation:t.ViewEncapsulation.None,host:{class:"p-element"},styles:["@layer primeng{.p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{-webkit-transition:none;transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}}\n"]}]}],ctorParameters:()=>[{type:Document,decorators:[{type:t.Inject,args:[n.DOCUMENT]}]},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]},{type:r.ChangeDetectorRef},{type:r.Renderer2},{type:G},{type:q},{type:r.NgZone},{type:M},{type:X,decorators:[{type:t.SkipSelf},{type:t.Optional}]}],propDecorators:{insertionPoint:[{type:t.ViewChild,args:[U]}],maskViewChild:[{type:t.ViewChild,args:["mask"]}],contentViewChild:[{type:t.ViewChild,args:["content"]}],footerViewChild:[{type:t.ViewChild,args:["footer"]}],headerViewChild:[{type:t.ViewChild,args:["titlebar"]}]}});class K{static"ɵfac"=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:K,deps:[],target:r.ɵɵFactoryTarget.NgModule});static"ɵmod"=r.ɵɵngDeclareNgModule({minVersion:"14.0.0",version:"18.0.1",ngImport:r,type:K,declarations:[X,U],imports:[n.CommonModule,W,$,B,P,j],exports:[P]});static"ɵinj"=r.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:K,imports:[n.CommonModule,W,$,B,P,j,P]})}r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:K,decorators:[{type:t.NgModule,args:[{imports:[n.CommonModule,W,$,B,P,j],declarations:[X,U],exports:[P]}]}]});class J{_parentInjector;_additionalTokens;constructor(e,t){this._parentInjector=e,this._additionalTokens=t}get(e,t,n){const i=this._additionalTokens.get(e);return i||this._parentInjector.get(e,t)}}class Q{appRef;injector;document;dialogComponentRefMap=new Map;constructor(e,t,n){this.appRef=e,this.injector=t,this.document=n}open(e,t){if(!this.duplicationPermission(e,t))return null;const n=this.appendDialogComponentToBody(t,e);return this.dialogComponentRefMap.get(n).instance.childComponentType=e,n}getInstance(e){return this.dialogComponentRefMap.get(e).instance}appendDialogComponentToBody(e,n){const i=new WeakMap;i.set(G,e);const o=new q;i.set(q,o);const s=o.onClose.subscribe((()=>{this.dialogComponentRefMap.get(o).instance.close()})),r=o.onDestroy.subscribe((()=>{this.removeDialogComponentFromBody(o),r.unsubscribe(),s.unsubscribe()})),a=t.createComponent(X,{environmentInjector:this.appRef.injector,elementInjector:new J(this.injector,i)});this.appRef.attachView(a.hostView);const c=a.hostView.rootNodes[0];return e.appendTo&&"body"!==e.appendTo?l.appendChild(c,e.appendTo):this.document.body.appendChild(c),this.dialogComponentRefMap.set(o,a),o}removeDialogComponentFromBody(e){if(!e||!this.dialogComponentRefMap.has(e))return;const t=this.dialogComponentRefMap.get(e);this.appRef.detachView(t.hostView),t.destroy(),this.dialogComponentRefMap.delete(e)}duplicationPermission(e,t){if(t.duplicate)return!0;let n=!0;for(const[t,i]of this.dialogComponentRefMap)if(i.instance.childComponentType===e){n=!1;break}return n}static"ɵfac"=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:Q,deps:[{token:r.ApplicationRef},{token:r.Injector},{token:n.DOCUMENT}],target:r.ɵɵFactoryTarget.Injectable});static"ɵprov"=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:Q})}r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:r,type:Q,decorators:[{type:t.Injectable}],ctorParameters:()=>[{type:r.ApplicationRef},{type:r.Injector},{type:Document,decorators:[{type:t.Inject,args:[n.DOCUMENT]}]}]});const ee="error",te="warn",ne="info",ie="verbose",oe="debug",se="silly";class re{_lastLogMessage={messageSource:"No message yet",timestamp:(new Date).getTime(),lvl:ne};_buffer=[];_bufferIdx=0;_lastSnapshotIdx=0;_bufferSize;constructor(e){if(!e)throw new Error("Cannot create ring buffer of size 0");this._bufferSize=e}get currentIndex(){return this._bufferIdx}get lastSnapshotIdx(){return this._lastSnapshotIdx}set bufferSize(e){if(!e)throw new Error("Cannot create ring buffer of size 0");this._bufferSize=e,this.clearRingBuffer()}getMessages(e=null,t=!1,n=!1){let i=null;if(this._bufferIdx<this._bufferSize){const t=null==e?0:e;i=this._buffer.slice(t,this._bufferIdx)}else{i=[];const t=this._bufferIdx-this._bufferSize;for(let n=e?Math.max(e,t):t;n<this._bufferIdx;n++)i.push(this._buffer[n%this._bufferSize])}return t&&this.clearRingBuffer(),n&&(i=i.reverse()),i}takeSnapshot(){const e=Math.max(0,this._bufferIdx-this._bufferSize),t={messages:this.getMessages(this._lastSnapshotIdx),logMessagesTruncated:Math.max(0,e-this._lastSnapshotIdx)};return this._lastSnapshotIdx=this._bufferIdx,t}getLastLogMessage(){return Object.assign({},this._lastLogMessage)}clearRingBuffer(){this._buffer=[],this._bufferIdx=0,this._lastSnapshotIdx=0}addToRingBuffer(e){this._lastLogMessage=e,this._buffer[this._bufferIdx%this._bufferSize]=e,this._bufferIdx++}}const ae="Console",le="ConsoleNoDebug",ce="StdOut";class de{static LOG_LEVELS_IN_ORDER=[ee,te,ne,ie,oe,se];static handlerFunctionMap(e=ae){const t=new Map;if(e===ce){if(!process?.stdout?.write)throw new Error("Cannot use standard out - process.stdout.write not found");const e=(e,t)=>process.stdout.write(e,"utf-8",t);t.set(ee,e),t.set(te,e),t.set(ne,e),t.set(ie,e),t.set(oe,e),t.set(se,e)}else t.set(ee,console.error),t.set(te,console.warn),t.set(ne,console.info),t.set(ie,e===le?console.log:console.debug),t.set(oe,e===le?console.log:console.debug),t.set(se,e===le?console.log:console.debug);return t}static defaultHandlerFunction(){return console.info}static levelIsEnabled(e,t){const n=de.LOG_LEVELS_IN_ORDER.indexOf(e),i=de.LOG_LEVELS_IN_ORDER.indexOf(t);return n>-1&&i>-1&&i>=n}}const ge="ClassicSingleLine",pe="StructuredJson",ue="None";class me{static isNullOrUndefined(e){return Object.is(e,null)||Object.is(e,void 0)}static notNullOrUndefined(e,t="object"){if(me.isNullOrUndefined(e))throw new Error(t+" may not be null or undefined")}static notNullUndefinedOrOnlyWhitespaceString(e,t="string"){if(me.isNullOrUndefined(e)||""===e.trim())throw new Error(t+" may not be null or undefined or only whitespace string")}static notNullUndefinedOrEmptyArray(e,t="string"){if(me.isNullOrUndefined(e)||0===e.length)throw new Error(t+" may not be null or undefined or an empty array")}static equal(e,t,n="Values must be equal"){if(e!==t)throw new Error(n)}static true(e,t="Value must be true"){me.equal(e,!0,t)}static noNullOrUndefinedValuesInArray(e,t=null,n=null){if(me.notNullOrUndefined(e,"Source array may not be null"),null!==t&&e.length!==t)throw new Error(`Expected array of length ${t} but was ${e.length} ${n}`);for(let t=0;t<e.length;t++)if(me.isNullOrUndefined(e[t]))throw new Error(`Array index ${t} was null or undefined ${n}`)}static noNullOrUndefinedValuesInRestArgs(e,...t){if(me.notNullOrUndefined(t,"Source array may not be null"),null!==e&&t.length!==e)throw new Error(`Expected array of length ${e} but was ${t.length}`);for(let e=0;e<t.length;e++)if(me.isNullOrUndefined(t[e]))throw new Error(`Array index ${e} was null or undefined`)}static constructorArgumentsMatchLengthAndAreNonNull(){const e=Array.from(arguments),t=this.constructor.length;return me.noNullOrUndefinedValuesInArray(e,t)}}class he{static RFC_3986_RESERVED=["!","*","'","(",")",";",":","@","&","=","+","$",",","/","?","#","[","]","%"];static WHITESPACE=" \n\t";static DIGITS="0123456789";static HEXITS=he.DIGITS+"ABCDEF";static UPPER_CASE_LATIN="ABCDEFGHIJKLMNOPQRSTUVWXYZ";static LOWER_CASE_LATIN="abcdefghijklmnopqrstuvwxyz";static CASE_INSENSITIVE_LATIN=he.UPPER_CASE_LATIN+he.LOWER_CASE_LATIN;static stringIsInGivenAlphabet(e,t){let n=!1;if(e&&t)for(let i=0;i<e.length&&!n;i++)n=t.includes(e.charAt(i));return n}static stringToUint8Array(e){return e?(new TextEncoder).encode(e):null}static uint8ArrayToString(e){return e?(new TextDecoder).decode(e):null}static attemptJsonParse(e){let t=null;if(he.trimToNull(e))try{t=JSON.parse(e)}catch{t=null}return t}static canParseAsJson(e){return!!he.attemptJsonParse(e)}static allUnique(e){let t=!0;if(e){const n=new Set;for(let i=0;i<e.length&&t;i++){const o=e.charAt(i);t=!n.has(o),n.add(o)}}return t}static allPermutationsOfLength(e,t){const n=[];if(e>0&&t&&t.length>0){me.true(he.allUnique(t),"Alphabet must be unique");const i=1===e?[""]:he.allPermutationsOfLength(e-1,t);for(let e=0;e<t.length;e++)i.forEach((i=>n.push(t.charAt(e)+i)))}return n}static breakIntoBlocks(e,t,n){let i="";for(;e.length>t;)i=n+e.substring(e.length-t)+i,e=e.substring(0,e.length-t);return i=e.length>0?e+i:i.substring(1),i}static createShortUid(e=0,t=1e3,n=36){const i=Math.floor(Date.now()/1e3),o=parseInt(String(Math.floor(Math.random()*t))+String(i)).toString(n);return e>0?he.breakIntoBlocks(o,e,"-"):o}static createType4Guid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}static createRandomHexString(e=10){let t="";for(let n=0;n<e;n++)t+=Math.floor(16*Math.random()).toString(16);return t}static canonicalize(e){let t=e?e.toLowerCase():"";return t=t.replace(" ","-"),he.RFC_3986_RESERVED.forEach((e=>{t=t.replace(e,"")})),t}static formatBytes(e,t=2){if(0==e)return"0 Bytes";const n=t||2,i=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,i)).toFixed(n))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][i]}static safeString(e){let t=null;if(null!=e){t="string"==typeof e?e:String(e)}return t}static stringContainsOnlyWhitespace(e){return he.stringContainsOnly(e,he.WHITESPACE)}static stringContainsOnlyNumbers(e){return/^[0-9]+$/.test(e)}static stringContainsOnlyAlphanumeric(e){return/^[0-9a-zA-Z]+$/.test(e)}static stringContainsOnlyHex(e){return/^[0-9a-fA-F]+$/.test(e)}static stringContainsOnly(e,t){const n=e||"",i=t||"";let o=!0;for(let e=0;e<n.length&&o;e++)o=i.indexOf(n.charAt(e))>=0;return o}static obscure(e,t=2,n=2){if(!e)return e;const i=e.length;let o=t,s=n;for(;i>0&&i<o+s+1;)o=Math.max(0,o-1),s=Math.max(0,s-1);const r=i-(o+s);let a="";a+=e.substring(0,o);for(let e=0;e<r;e++)a+="*";return a+=e.substring(i-s),a}static leadingZeros(e,t){const n="00000000000000000000000000000000000000000000000000";let i=!1,o=String(e);if(o.startsWith("-")&&(i=!0,o=o.substring(1)),t>50)throw new Error("Cannot format number that large");let s=(n+o).slice(-1*t);return i&&(s="-"+s),s}static trimToEmpty(e){return(e?he.safeString(e):"").trim()}static trimToNull(e){const t=he.trimToEmpty(e);return t.length>0?t:null}static trimAllStringPropertiesToNullInPlace(e){return he.trimAllStringPropertiesInPlace(e,!1)}static trimAllStringPropertiesToEmptyInPlace(e){return he.trimAllStringPropertiesInPlace(e,!0)}static trimAllStringPropertiesInPlace(e,t){return Object.keys(e).forEach((n=>{const i=e[n];null!=i&&"string"==typeof i&&(e[n]=t?he.trimToEmpty(e[n]):he.trimToNull(e[n]))})),e}static stripNonNumeric(e){let t=e;if(null!=e&&!he.stringContainsOnlyNumbers(e)){t="";for(let n=0;n<e.length;n++){const i=e.charAt(n);(he.stringContainsOnlyNumbers(i)||0===n&&"-"===i)&&(t+=i)}}return t}static csvSafe(e){let t=he.trimToEmpty(he.safeString(e));return t.split('"').join('\\"'),-1===t.indexOf(",")&&-1===t.indexOf('"')&&-1===t.indexOf("'")||(t='"'+t+'"'),t}static stripNonAscii(e){return[...e].reduce(((e,t)=>t.charCodeAt(0)>127?e:e+t))}static replaceAll(e,t,n){let i=e;return i?.length&&t?.length&&n?.length&&(i=i.split(t).join(n)),i}static simpleTemplateFill(e,t,n=!1,i="${",o="}"){let s=e;if(s&&t&&Object.keys(t).forEach((e=>{s=s.split(i+e+o).join(t[e])})),n&&s?.indexOf(i)>=0)throw new Error("Template has unfilled variables:"+s);return s}static circSafeJsonStringify(e){let t=null;try{t=JSON.stringify(e)}catch(e){if(!(e instanceof TypeError))throw e;{let n=e.message.split("\n").map((e=>he.trimToNull(e))).filter((e=>!!e));n=n.filter((e=>e.startsWith("--\x3e")||e.startsWith("---"))),t="Cannot stringify - object contains circular reference : "+n.join(", ")}}return t}static format(e,...t){const n=/(%?)(%([ojds]))/g;return t.length&&(e=e.replace(n,(function(e,n,i,o){let s=t.shift();switch(o){case"o":if(Array.isArray(s)){s=he.circSafeJsonStringify(s);break}throw new Error("Cannot use o placeholder for argument of type "+typeof s);case"s":s=""+s;break;case"d":s=Number(s);break;case"j":s=he.circSafeJsonStringify(s)}return n?(t.unshift(s),e):s}))),t.length&&(e+=" "+t.join(" ")),""+(e=e.replace(/%{2,2}/g,"%"))}}class fe{formatMessage(e,t){let n=null;return e&&(n="",n+=t.options.trace?t.options.trace+" ":"",n+="["+e.lvl+"] ",n+=he.format(e.messageSource,...e.subsVars)),n}}class ye{formatMessage(e,t){return null}}class be{formatMessage(e,t){let n=null;if(e){const i=Object.assign({},t.options.globalVars||{},e.params||{});i.msg=he.format(e.messageSource,...e.subsVars),i.utcDateTime=new Date(e.timestamp).toISOString(),i.logLevel=e.lvl,t.options.trace&&(i.trace=t.options.trace),i.logName=t.loggerInstanceName,i.logId=t.loggerInstanceId,n=JSON.stringify(i)+"\n"}return n}}class Ce{loggerInstanceName;_guid=Math.floor(1e6*Math.random());_loggerMeta;_ringBuffer;_formatter;_level;_handlerFunctionMap;_options;constructor(e="default",t){this.loggerInstanceName=e,this.options=t}levelIsEnabled(e){return de.levelIsEnabled(e,this._level)}addPreProcessor(e){return e&&(this._options.preProcessors=this._options.preProcessors||[],this._options.preProcessors.push(e)),Object.assign([],this._options.preProcessors)}get ringBuffer(){return this._ringBuffer}dumpConfigurationIntoLog(){this.error("ERROR enabled"),this.warn("WARN enabled"),this.info("INFO enabled"),this.verbose("VERBOSE enabled"),this.debug("DEBUG enabled"),this.silly("SILLY enabled")}dumpOptionsIntoLog(){if(this.info("Guid: %s Options: %j",this._guid,this.options),this?.options?.preProcessors?.length){const e=this.options.preProcessors.map((e=>he.trimToNull(e.label())||"Unlabelled"));this.info("Preprocessors: %j",e)}}get guid(){return this._guid}changeRingBufferSize(e){this._ringBuffer=null,e&&(this._ringBuffer=new re(e),this._options.ringBufferSize=e)}updateTracePrefix(e){this._options.trace=e}get options(){return Object.assign({},this._options)}set options(e){switch(this._options=Object.assign({},e),this._options.ringBufferSize&&(this._ringBuffer=new re(this._options.ringBufferSize)),this._options.formatType){case ue:this._formatter=new ye;break;case pe:this._formatter=new be;break;default:this._formatter=new fe}this._level=this._options.initialLevel,this._handlerFunctionMap=de.handlerFunctionMap(this._options.outputFunction);const t=this._loggerMeta?this._loggerMeta.loggerInstanceId:null;this._loggerMeta={options:this._options,loggerInstanceName:this.loggerInstanceName,loggerInstanceId:t||he.createRandomHexString(8)}}get level(){return this._level}set level(e){if(!e)throw new Error("Cannot set level to null/undefined");this._level=e}consoleLogPassThru(e,...t){if(de.levelIsEnabled(e,this._level)){let n=this._options.trace||"";n+="["+e+"] ",t.unshift(n);(this._handlerFunctionMap.get(e)||de.defaultHandlerFunction)(...t)}}createLogMessage(e,t,n,...i){return{lvl:e,timestamp:Date.now(),messageSource:n,subsVars:i,params:t}}formatMessage(e){return e?this._formatter.formatMessage(e,this._loggerMeta):null}formatMessages(e){return(e||[]).map((e=>this.formatMessage(e))).filter((e=>!!e))}recordMessageBuilder(e){return this.recordMessage(e.toMessage())}recordMessage(e){let t=null;if(de.levelIsEnabled(e.lvl,this._level)){let n=Object.assign({},e);if(this._options.preProcessors?.length)for(const e of this._options.preProcessors)n=e.process(n);if(t=this.formatMessage(n),t){(this._handlerFunctionMap.get(n.lvl)||de.defaultHandlerFunction)(t),this._ringBuffer&&this._ringBuffer.addToRingBuffer(n)}}return t}error(e,...t){const n=this.createLogMessage(ee,{},e,...t);return this.recordMessage(n)}errorP(...e){this.consoleLogPassThru(ee,...e)}warn(e,...t){const n=this.createLogMessage(te,{},e,...t);return this.recordMessage(n)}warnP(...e){this.consoleLogPassThru(te,...e)}info(e,...t){const n=this.createLogMessage(ne,{},e,...t);return this.recordMessage(n)}infoP(...e){this.consoleLogPassThru(ne,...e)}verbose(e,...t){const n=this.createLogMessage(ie,{},e,...t);return this.recordMessage(n)}verboseP(...e){this.consoleLogPassThru(ie,...e)}debug(e,...t){const n=this.createLogMessage(oe,{},e,...t);return this.recordMessage(n)}debugP(...e){this.consoleLogPassThru(oe,...e)}silly(e,...t){const n=this.createLogMessage(se,{},e,...t);return this.recordMessage(n)}sillyP(...e){this.consoleLogPassThru(se,...e)}logByLevel(e,t,...n){const i=this.createLogMessage(e,{},t,...n);this.recordMessage(i)}importMessages(e,t="",n=!0){const i=t||"";e&&e.length>0&&(this.silly("Received import data : %d msgs",e.length),e.forEach((e=>{if(e.messageSource){let t=i;if(n){t+=" ("+String(new Date).substring(15,24)+") : ",t+=e.messageSource}this.logByLevel(e.lvl,t)}})))}}class ve{static LOGGER_INSTANCE_MAP_GLOBAL_KEY="RATCHET_GLOBAL_LOGGER_MAP_V01";static GLOBAL_PROVIDER=process||global||window;static DEFAULT_OPTIONS={initialLevel:ne,formatType:ge,trace:null,globalVars:{},outputFunction:ae,ringBufferSize:0,preProcessors:[]};static applyDefaultsToOptions(e){const t=e||{};return t.initialLevel=t.initialLevel??ve.DEFAULT_OPTIONS.initialLevel,t.formatType=t.formatType??ve.DEFAULT_OPTIONS.formatType,t.trace=t.trace??ve.DEFAULT_OPTIONS.trace,t.globalVars=t.globalVars??ve.DEFAULT_OPTIONS.globalVars,t.outputFunction=t.outputFunction??ve.DEFAULT_OPTIONS.outputFunction,t.ringBufferSize=t.ringBufferSize??ve.DEFAULT_OPTIONS.ringBufferSize,t}static loggerInstances(){if(!ve.GLOBAL_PROVIDER)throw new Error("Cannot create logger - could not find a global provider");let e=ve.GLOBAL_PROVIDER[ve.LOGGER_INSTANCE_MAP_GLOBAL_KEY];return e||(e=new Map,ve.GLOBAL_PROVIDER[ve.LOGGER_INSTANCE_MAP_GLOBAL_KEY]=e),e}static changeDefaultOptions(e,t){if(!e||!e.initialLevel||!e.formatType)throw new Error("Default options must be non-null, and provide initial level and format type");ve.DEFAULT_OPTIONS=Object.assign({},e),t&&Array.from(ve.loggerInstances().values()).forEach((t=>t.options=e))}static getLogger(e="default",t){let n=ve.loggerInstances().get(e);if(!n){const i=ve.applyDefaultsToOptions(t);n=new Ce(e,i),ve.loggerInstances().set(e,n)}return n}static recordMessageBuilder(e){return ve.getLogger().recordMessageBuilder(e)}static levelIsEnabled(e){return ve.getLogger().levelIsEnabled(e)}static recordMessage(e){return ve.getLogger().recordMessage(e)}static formatMessages(e){return ve.getLogger().formatMessages(e)}static updateTracePrefix(e){return ve.getLogger().updateTracePrefix(e)}static changeRingBufferSize(e){return ve.getLogger().changeRingBufferSize(e)}static getRingBuffer(){return ve.getLogger().ringBuffer}static dumpConfigurationIntoLog(){return ve.getLogger().dumpConfigurationIntoLog()}static dumpOptionsIntoLog(){return ve.getLogger().dumpOptionsIntoLog()}static getLevel(){return ve.getLogger().level}static setLevel(e){ve.getLogger().level=e}static getOptions(){return ve.getLogger().options}static getMessages(e=null,t=!1,n=!1){const i=ve.getLogger().ringBuffer;return i?i.getMessages(e,t,n):null}static consoleLogPassThru(e,...t){return ve.getLogger().consoleLogPassThru(e,...t)}static error(e,...t){return ve.getLogger().error(e,...t)}static errorP(...e){return ve.getLogger().errorP(...e)}static warn(e,...t){return ve.getLogger().warn(e,...t)}static warnP(...e){return ve.getLogger().warnP(...e)}static info(e,...t){return ve.getLogger().info(e,...t)}static infoP(...e){return ve.getLogger().infoP(...e)}static verbose(e,...t){return ve.getLogger().verbose(e,...t)}static verboseP(...e){return ve.getLogger().verboseP(...e)}static debug(e,...t){return ve.getLogger().debug(e,...t)}static debugP(...e){return ve.getLogger().debugP(...e)}static silly(e,...t){return ve.getLogger().silly(e,...t)}static sillyP(...e){return ve.getLogger().sillyP(...e)}static takeSnapshot(){const e=ve.getLogger().ringBuffer;return e?e.takeSnapshot():null}static logByLevel(e,t,...n){return ve.getLogger().logByLevel(e,t,...n)}static importMessages(e,t="",n=!0){return ve.getLogger().importMessages(e,t,n)}static getLastLogMessage(){const e=ve.getLogger().ringBuffer;return e?e.getLastLogMessage():null}}var Ie;e.AlertComponent=Ie=class{dialogService;cfg;ref;constructor(e,t,n){this.dialogService=e,this.cfg=t,this.ref=n,ve.info("Creating with %j",this.cfg)}static showAlert(e,t,n="Alert"){return e.open(Ie,{data:{message:t instanceof i.BehaviorSubject?t:new i.BehaviorSubject(t)},header:n})}},e.AlertComponent=Ie=function(e,t,n,i){var o,s=arguments.length,r=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,n,r):o(t,n))||r);return s>3&&r&&Object.defineProperty(t,n,r),r}([t.Component({selector:"ngx-acute-common-alert",template:"<div><pre>{{cfg.data.message | async}}</pre></div>",standalone:!0,imports:[n.AsyncPipe]}),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:paramtypes",[Q,G,q])],e.AlertComponent),e.NgxAcuteCommonInfo=class{constructor(){}static buildInformation(){return{version:"LOCAL-SNAPSHOT",hash:"LOCAL-HASH",branch:"LOCAL-BRANCH",tag:"LOCAL-TAG",timeBuiltISO:"LOCAL-TIME-ISO",notes:"LOCAL-NOTES"}}}}));
|
|
7
|
+
//# sourceMappingURL=my-angular-library.umd.js.map
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bitblit/ngx-acute-common",
|
|
3
|
+
"version": "5.0.512-alpha",
|
|
4
|
+
"description": "Library for using angular",
|
|
5
|
+
"main": "lib/my-angular-library.cjs.js",
|
|
6
|
+
"module": "lib/my-angular-library.esm.js",
|
|
7
|
+
"browser": "lib/my-angular-library.umd.js",
|
|
8
|
+
"types": "lib/index.d.ts",
|
|
9
|
+
"contributors": [
|
|
10
|
+
"Christopher Weiss <bitblit@gmail.com>"
|
|
11
|
+
],
|
|
12
|
+
"husky": {
|
|
13
|
+
"hooks": {
|
|
14
|
+
"pre-commit": "pretty-quick --staged"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"prettier": {
|
|
18
|
+
"printWidth": 140,
|
|
19
|
+
"singleQuote": true,
|
|
20
|
+
"arrowParens": "always"
|
|
21
|
+
},
|
|
22
|
+
"config": {},
|
|
23
|
+
"license": "Apache-2.0",
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@angular/animations": "18.2.8",
|
|
26
|
+
"@angular/common": "18.2.8",
|
|
27
|
+
"@angular/compiler": "18.2.8",
|
|
28
|
+
"@angular/core": "18.2.8",
|
|
29
|
+
"@angular/forms": "18.2.8",
|
|
30
|
+
"@angular/platform-browser": "18.2.8",
|
|
31
|
+
"@angular/platform-browser-dynamic": "18.2.8",
|
|
32
|
+
"@angular/router": "18.2.8",
|
|
33
|
+
"@bitblit/ratchet-common": "5.0.512-alpha",
|
|
34
|
+
"primeflex": "3.3.1",
|
|
35
|
+
"primeicons": "7.0.0",
|
|
36
|
+
"primeng": "17.18.11",
|
|
37
|
+
"rxjs": "7.8.1",
|
|
38
|
+
"zone.js": "0.14.10"
|
|
39
|
+
},
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"@angular/animations": "^18.2.8",
|
|
42
|
+
"@angular/common": "^18.2.8",
|
|
43
|
+
"@angular/compiler": "^18.2.8",
|
|
44
|
+
"@angular/core": "^18.2.8",
|
|
45
|
+
"@angular/forms": "^18.2.8",
|
|
46
|
+
"@angular/platform-browser": "^18.2.8",
|
|
47
|
+
"@angular/platform-browser-dynamic": "^18.2.8",
|
|
48
|
+
"@angular/router": "^18.2.8",
|
|
49
|
+
"@bitblit/ratchet-common": "5.0.512-alpha",
|
|
50
|
+
"primeflex": "3.3.1",
|
|
51
|
+
"primeicons": "7.0.0",
|
|
52
|
+
"primeng": "17.18.11",
|
|
53
|
+
"rxjs": "7.8.1",
|
|
54
|
+
"zone.js": "0.15.0"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import resolve from '@rollup/plugin-node-resolve';
|
|
2
|
+
import commonjs from '@rollup/plugin-commonjs';
|
|
3
|
+
import typescript from 'rollup-plugin-typescript2';
|
|
4
|
+
import angular from 'rollup-plugin-angular';
|
|
5
|
+
import terser from '@rollup/plugin-terser';
|
|
6
|
+
import json from '@rollup/plugin-json';
|
|
7
|
+
import pkg from './package.json' assert { type: 'json' };
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
input: 'src/index.ts', // Entry point for your library
|
|
11
|
+
output: [
|
|
12
|
+
{
|
|
13
|
+
file: pkg.main, // Output for CommonJS
|
|
14
|
+
format: 'cjs',
|
|
15
|
+
sourcemap: true,
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
file: pkg.module, // Output for ESModule
|
|
19
|
+
format: 'es',
|
|
20
|
+
sourcemap: true,
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
file: pkg.browser, // UMD output for browsers
|
|
24
|
+
format: 'umd',
|
|
25
|
+
name: 'AcuteCommon',
|
|
26
|
+
globals: {
|
|
27
|
+
'@angular/core': 'ng.core',
|
|
28
|
+
'@angular/common': 'ng.common',
|
|
29
|
+
'@angular/forms': 'ng.forms',
|
|
30
|
+
'@angular/animations': 'ng.animations',
|
|
31
|
+
'rxjs': 'rxjs',
|
|
32
|
+
},
|
|
33
|
+
sourcemap: true,
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
external: ['@angular/core', '@angular/common', "@angular/compiler",
|
|
37
|
+
"@angular/forms",
|
|
38
|
+
"@angular/platform-browser",
|
|
39
|
+
"@angular/platform-browser-dynamic",
|
|
40
|
+
"@angular/router",
|
|
41
|
+
"@bitblit/ratchet-common",
|
|
42
|
+
"primeflex",
|
|
43
|
+
"primeicons",
|
|
44
|
+
"primeng",
|
|
45
|
+
"zone.js",'rxjs'], // Externals, you don’t bundle Angular and RxJS
|
|
46
|
+
plugins: [
|
|
47
|
+
resolve({
|
|
48
|
+
browser: true, // Resolves third-party libraries in node_modules
|
|
49
|
+
}),
|
|
50
|
+
json(),
|
|
51
|
+
commonjs(), // Convert CommonJS modules to ES6
|
|
52
|
+
angular(), // Handles Angular HTML templates and styles
|
|
53
|
+
typescript({ // Compile TypeScript
|
|
54
|
+
tsconfig: './tsconfig.json',
|
|
55
|
+
}),
|
|
56
|
+
terser(), // Minify the bundle
|
|
57
|
+
]
|
|
58
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BuildInformation } from '@bitblit/ratchet-common/build/build-information';
|
|
2
|
+
|
|
3
|
+
export class NgxAcuteCommonInfo {
|
|
4
|
+
// Empty constructor prevents instantiation
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6
|
+
private constructor() {}
|
|
7
|
+
|
|
8
|
+
public static buildInformation(): BuildInformation {
|
|
9
|
+
const val: BuildInformation = {
|
|
10
|
+
version: 'LOCAL-SNAPSHOT',
|
|
11
|
+
hash: 'LOCAL-HASH',
|
|
12
|
+
branch: 'LOCAL-BRANCH',
|
|
13
|
+
tag: 'LOCAL-TAG',
|
|
14
|
+
timeBuiltISO: 'LOCAL-TIME-ISO',
|
|
15
|
+
notes: 'LOCAL-NOTES',
|
|
16
|
+
};
|
|
17
|
+
return val;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {Component} from '@angular/core';
|
|
2
|
+
import {DialogService, DynamicDialogConfig, DynamicDialogRef} from 'primeng/dynamicdialog';
|
|
3
|
+
import {Logger} from '@bitblit/ratchet-common/logger/logger';
|
|
4
|
+
import {BehaviorSubject} from 'rxjs';
|
|
5
|
+
import {AsyncPipe} from "@angular/common";
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: 'ngx-acute-common-alert',
|
|
9
|
+
template: '<div><pre>{{cfg.data.message | async}}</pre></div>',
|
|
10
|
+
standalone: true,
|
|
11
|
+
imports: [AsyncPipe]
|
|
12
|
+
})
|
|
13
|
+
export class AlertComponent {
|
|
14
|
+
constructor(
|
|
15
|
+
private dialogService: DialogService,
|
|
16
|
+
public cfg: DynamicDialogConfig,
|
|
17
|
+
protected ref: DynamicDialogRef,
|
|
18
|
+
) {
|
|
19
|
+
Logger.info('Creating with %j', this.cfg);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
public static showAlert(dialogSvc: DialogService, message: BehaviorSubject<string> | string, title: string = 'Alert'): DynamicDialogRef {
|
|
23
|
+
const dlg: DynamicDialogRef = dialogSvc.open(AlertComponent, {
|
|
24
|
+
//disableClose: true,
|
|
25
|
+
//autoFocus: true,
|
|
26
|
+
data: {
|
|
27
|
+
message: message instanceof BehaviorSubject ? message : new BehaviorSubject<string>(message),
|
|
28
|
+
},
|
|
29
|
+
header: title,
|
|
30
|
+
});
|
|
31
|
+
return dlg;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<div>
|
|
2
|
+
<div style="display: flex; flex-direction: column; justify-content: center">
|
|
3
|
+
<h4>{{cfg.data.message | async}}</h4>
|
|
4
|
+
<p-progressSpinner styleClass="w-2rem h-2rem" strokeWidth="5" fill="var(--surface-ground)" animationDuration=".8s"></p-progressSpinner>
|
|
5
|
+
<div *ngIf="cfg.data.subMessage">
|
|
6
|
+
{{cfg.data.subMessage}}
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { beforeEach, describe, expect, test } from 'vitest';
|
|
3
|
+
|
|
4
|
+
import {BlockUiComponent} from "./block-ui.component";
|
|
5
|
+
|
|
6
|
+
describe('BlockUiComponent', () => {
|
|
7
|
+
let component: BlockUiComponent;
|
|
8
|
+
let fixture: ComponentFixture<BlockUiComponent>;
|
|
9
|
+
|
|
10
|
+
beforeEach(async () => {
|
|
11
|
+
await TestBed.configureTestingModule({
|
|
12
|
+
imports: [BlockUiComponent]
|
|
13
|
+
})
|
|
14
|
+
.compileComponents();
|
|
15
|
+
|
|
16
|
+
fixture = TestBed.createComponent(BlockUiComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
test.skip('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import {Component} from '@angular/core';
|
|
2
|
+
import {DialogService, DynamicDialogConfig, DynamicDialogRef} from 'primeng/dynamicdialog';
|
|
3
|
+
import {BehaviorSubject} from 'rxjs';
|
|
4
|
+
import {Logger} from '@bitblit/ratchet-common/logger/logger';
|
|
5
|
+
import {AsyncPipe, NgIf} from "@angular/common";
|
|
6
|
+
import {ProgressSpinnerModule} from "primeng/progressspinner";
|
|
7
|
+
|
|
8
|
+
@Component({
|
|
9
|
+
selector: 'ngx-acute-common-block-ui',
|
|
10
|
+
templateUrl: './block-ui.component.html',
|
|
11
|
+
standalone: true,
|
|
12
|
+
imports: [NgIf, AsyncPipe, ProgressSpinnerModule]
|
|
13
|
+
})
|
|
14
|
+
export class BlockUiComponent {
|
|
15
|
+
constructor(
|
|
16
|
+
private dialogService: DialogService,
|
|
17
|
+
public cfg: DynamicDialogConfig,
|
|
18
|
+
) {}
|
|
19
|
+
|
|
20
|
+
public static createUiBlock(
|
|
21
|
+
dialogService: DialogService,
|
|
22
|
+
message: BehaviorSubject<string> | string = 'Please wait...',
|
|
23
|
+
subMessage?: string,
|
|
24
|
+
): DynamicDialogRef {
|
|
25
|
+
const dlg: DynamicDialogRef = dialogService.open(BlockUiComponent, {
|
|
26
|
+
closable: false,
|
|
27
|
+
modal: true,
|
|
28
|
+
data: {
|
|
29
|
+
message: message instanceof BehaviorSubject ? message : new BehaviorSubject<string>(message),
|
|
30
|
+
subMessage: subMessage,
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
return dlg;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
public static async runPromiseWithUiBlock<T>(
|
|
37
|
+
dialogService: DialogService,
|
|
38
|
+
prom: Promise<T>,
|
|
39
|
+
message: BehaviorSubject<string> | string = 'Please wait...',
|
|
40
|
+
subMessage?: string,
|
|
41
|
+
): Promise<T> {
|
|
42
|
+
const dlg = dialogService.open(BlockUiComponent, {
|
|
43
|
+
closable: false,
|
|
44
|
+
modal: true,
|
|
45
|
+
data: {
|
|
46
|
+
message: message instanceof BehaviorSubject ? message : new BehaviorSubject<string>(message),
|
|
47
|
+
subMessage: subMessage,
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
try {
|
|
52
|
+
const rval: T = await prom;
|
|
53
|
+
dlg?.close(rval); // If it is still open, close it
|
|
54
|
+
Logger.info('Blockui - Received %j - closing blocker ui and returning', rval);
|
|
55
|
+
return rval;
|
|
56
|
+
} catch (err) {
|
|
57
|
+
Logger.error('Caught error inside block ui dialog : %s - rethrowing', err, err);
|
|
58
|
+
dlg?.close(); // If it is still open, close it
|
|
59
|
+
throw err;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Pipe, PipeTransform } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Pipe({ name: 'acuteCapitalize' , standalone: true})
|
|
4
|
+
export class CapitalizePipe implements PipeTransform {
|
|
5
|
+
|
|
6
|
+
transform(input: string): string {
|
|
7
|
+
return input && input.length
|
|
8
|
+
? (input.charAt(0).toUpperCase() + input.slice(1).toLowerCase())
|
|
9
|
+
: input;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Pipe, PipeTransform } from '@angular/core';
|
|
2
|
+
import {CurrencyRatchet} from "@bitblit/ratchet-common/lang/currency-ratchet";
|
|
3
|
+
|
|
4
|
+
@Pipe({ name: 'acuteDollars', standalone: true })
|
|
5
|
+
export class DollarFormattedPipe implements PipeTransform {
|
|
6
|
+
transform(input: number): string {
|
|
7
|
+
const rval: string =
|
|
8
|
+
input === null || input === undefined
|
|
9
|
+
? 'Null'
|
|
10
|
+
: CurrencyRatchet.dollarFormat(input)
|
|
11
|
+
return rval;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Pipe, PipeTransform } from '@angular/core';
|
|
2
|
+
import { Logger } from '@bitblit/ratchet-common/logger/logger';
|
|
3
|
+
|
|
4
|
+
@Pipe({ name: 'acuteMapValues', standalone: true })
|
|
5
|
+
export class MapValuesPipe implements PipeTransform {
|
|
6
|
+
transform(value: any, args?: any[]): any[] {
|
|
7
|
+
const returnArray = [];
|
|
8
|
+
|
|
9
|
+
for (const k of Object.keys(value)) {
|
|
10
|
+
returnArray.push({
|
|
11
|
+
key: k,
|
|
12
|
+
val: value[k],
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
Logger.info('Map values : %j : %j', returnArray, args);
|
|
17
|
+
return returnArray;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Pipe, PipeTransform } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Pipe({ name: 'acuteNumberWithCommas' , standalone: true})
|
|
4
|
+
export class NumberWithCommasPipe implements PipeTransform {
|
|
5
|
+
|
|
6
|
+
transform(input: number): string {
|
|
7
|
+
return new Intl.NumberFormat().format(input);
|
|
8
|
+
}
|
|
9
|
+
}
|