@kirbydesign/designsystem 4.0.1 → 4.0.2
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/bundles/kirbydesign-designsystem-testing-base.umd.js +44 -15
- package/bundles/kirbydesign-designsystem-testing-base.umd.js.map +1 -1
- package/bundles/kirbydesign-designsystem-testing-base.umd.min.js +1 -1
- package/bundles/kirbydesign-designsystem-testing-base.umd.min.js.map +1 -1
- package/bundles/kirbydesign-designsystem.umd.js +274 -63
- package/bundles/kirbydesign-designsystem.umd.js.map +1 -1
- package/bundles/kirbydesign-designsystem.umd.min.js +1 -1
- package/bundles/kirbydesign-designsystem.umd.min.js.map +1 -1
- package/esm2015/kirbydesign-designsystem.js +18 -16
- package/esm2015/kirbydesign-designsystem.metadata.json +1 -1
- package/esm2015/lib/components/card/card.component.js +1 -1
- package/esm2015/lib/components/card/card.component.metadata.json +1 -1
- package/esm2015/lib/components/dropdown/dropdown.component.js +53 -59
- package/esm2015/lib/components/dropdown/dropdown.component.metadata.json +1 -1
- package/esm2015/lib/components/dropdown/dropdown.types.js +12 -0
- package/esm2015/lib/components/dropdown/dropdown.types.metadata.json +1 -0
- package/esm2015/lib/components/dropdown/keyboard-handler.service.js +43 -0
- package/esm2015/lib/components/dropdown/keyboard-handler.service.metadata.json +1 -0
- package/esm2015/lib/components/index.js +3 -2
- package/esm2015/lib/components/index.metadata.json +1 -1
- package/esm2015/lib/components/item/item.component.js +1 -1
- package/esm2015/lib/components/item/item.component.metadata.json +1 -1
- package/esm2015/lib/components/popover/popover.component.js +156 -0
- package/esm2015/lib/components/popover/popover.component.metadata.json +1 -0
- package/esm2015/lib/helpers/design-token-helper.js +4 -1
- package/esm2015/lib/helpers/design-token-helper.metadata.json +1 -1
- package/esm2015/lib/helpers/design-token-helper.styles.js +2 -1
- package/esm2015/lib/helpers/design-token-helper.styles.metadata.json +1 -1
- package/esm2015/lib/kirby.module.js +3 -1
- package/esm2015/lib/kirby.module.metadata.json +1 -1
- package/esm2015/testing-base/kirbydesign-designsystem-testing-base.js +17 -16
- package/esm2015/testing-base/kirbydesign-designsystem-testing-base.metadata.json +1 -1
- package/esm2015/testing-base/lib/components/mock.dropdown.component.js +2 -1
- package/esm2015/testing-base/lib/components/mock.dropdown.component.metadata.json +1 -1
- package/esm2015/testing-base/lib/components/mock.popover.component.js +27 -0
- package/esm2015/testing-base/lib/components/mock.popover.component.metadata.json +1 -0
- package/esm2015/testing-base/lib/mock-components.js +3 -1
- package/esm2015/testing-base/lib/mock-components.metadata.json +1 -1
- package/fesm2015/kirbydesign-designsystem-testing-base.js +29 -2
- package/fesm2015/kirbydesign-designsystem-testing-base.js.map +1 -1
- package/fesm2015/kirbydesign-designsystem.js +251 -49
- package/fesm2015/kirbydesign-designsystem.js.map +1 -1
- package/kirbydesign-designsystem.d.ts +17 -15
- package/kirbydesign-designsystem.metadata.json +1 -1
- package/lib/components/dropdown/dropdown.component.d.ts +13 -14
- package/lib/components/dropdown/dropdown.types.d.ts +9 -0
- package/lib/components/dropdown/keyboard-handler.service.d.ts +3 -0
- package/lib/components/index.d.ts +2 -1
- package/lib/components/popover/popover.component.d.ts +34 -0
- package/lib/helpers/design-token-helper.d.ts +1 -0
- package/lib/helpers/design-token-helper.styles.d.ts +1 -0
- package/package.json +1 -1
- package/scss/base/_variables.scss +1 -0
- package/testing-base/kirbydesign-designsystem-testing-base.d.ts +16 -15
- package/testing-base/kirbydesign-designsystem-testing-base.metadata.json +1 -1
- package/testing-base/lib/components/mock.dropdown.component.d.ts +1 -0
- package/testing-base/lib/components/mock.popover.component.d.ts +7 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@ionic/angular"),require("@angular/router"),require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("highcharts"),require("chart.js"),require("chartjs-plugin-annotation"),require("highcharts/highstock"),require("highcharts/modules/annotations"),require("date-fns"),require("date-fns-tz"),require("date-fns/locale"),require("@angular/forms"),require("inputmask/lib/extensions/inputmask.date.extensions"),require("inputmask/lib/inputmask"),require("inputmask/lib/extensions/inputmask.numeric.extensions"),require("@angular/animations"),require("ngx-ui-scroll")):"function"==typeof define&&define.amd?define("@kirbydesign/designsystem",["exports","@angular/core","@ionic/angular","@angular/router","rxjs","rxjs/operators","@angular/common","highcharts","chart.js","chartjs-plugin-annotation","highcharts/highstock","highcharts/modules/annotations","date-fns","date-fns-tz","date-fns/locale","@angular/forms","inputmask/lib/extensions/inputmask.date.extensions","inputmask/lib/inputmask","inputmask/lib/extensions/inputmask.numeric.extensions","@angular/animations","ngx-ui-scroll"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).kirbydesign=t.kirbydesign||{},t.kirbydesign.designsystem={}),t.ng.core,t.ionic,t.ng.router,t.rxjs,t.rxjs.operators,t.ng.common,t.highcharts,t.chart_js,t.annotationPlugin,t["highcharts/highstock"],t.highcharts,t["date-fns"],t["date-fns-tz"],t.locale,t.ng.forms,null,t.inputmask,null,t.ng.animations,t["ngx-ui-scroll"])}(this,(function(t,e,n,i,o,r,a,s,c,l,d,p,h,u,g,b,m,y,f,v,k){"use strict";function x(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function w(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}})),e.default=t,Object.freeze(e)}var C,I,S=w(s),T=x(l),O=w(d),E=x(p),D=x(y),R={sizes:{xxxl:"56px",xxl:"48px",xl:"40px",l:"32px",m:"24px",s:"16px",xs:"12px",xxs:"8px",xxxs:"4px",xxxxs:"2px"},fontSizes:{xxxxl:"72px",xxxl:"56px",xxl:"40px",xl:"32px",l:"22px",m:"18px",n:"16px",s:"14px",xs:"12px",xxs:"10px"},lineHeight:{xl:"38px",l:"28px",m:"24px",n:"24px",s:"20px",xs:"16px",xxs:"11px"},fontWeight:{light:"300",normal:"400",bold:"700",black:"900"},iconFontSizes:{xs:"16px",sm:"24px",md:"32px",lg:"56px"},zLayers:{default:"1",segmentBadge:"2",dropdown:"800",modalOverlay:"900",modal:"901",loadingOverlay:"1001"},borderRadius:"16px",borderRadiusRound:"999px",breakpoints:{small:"321px",medium:"721px",large:"1025px",xlarge:"60em",xxlarge:"80em"},elevations:{2:"rgba(28, 28, 28, 0.3) 0px 5px 10px -10px, rgba(28, 28, 28, 0.08) 0px 0px 5px 0px",4:"rgba(28, 28, 28, 0.3) 0px 10px 15px -10px, rgba(28, 28, 28, 0.08) 0px 0px 5px 0px",8:"rgba(28, 28, 28, 0.3) 0px 20px 30px -15px, rgba(28, 28, 28, 0.08) 0px 0px 5px 0px"},avatarSizes:{xs:"32px",s:"40px",m:"56px",l:"96px"},avatarBadgeSize:"16px",pageContentMaxWidth:"720px",alertMaxWidth:"359px",compactModalMaxWidth:"359px",modalMaxWidth:"720px",modalHeights:{s:"288px",m:"460px",l:"576px"},modalDefaultHeight:"460px",drawerDefaultHeight:"288px",itemHeights:{m:"56px",s:"44px",xs:"32px"},dropdownItemHeight:"44px",fatFingerSize:"44px",checkboxRadioSizes:{xs:"32px",sm:"44px",md:"56px"},checkboxRadioSpacing:{toEdge:"16px",toLabel:"12px"},softKeyboardTransitionEnter:"250ms ease-out 1ms",softKeyboardTransitionLeave:"150ms ease-out",transitionDurations:{quick:"200ms",short:"300ms",long:"500ms",extraLong:"1000ms"},transitionEasings:{static:"linear",enter:"ease-out",exit:"ease-in",enterExit:"ease",motion:"cubic-bezier(0.25, 0.1, 0.25, 1)",modal:{enter:"cubic-bezier(0.32, 0.72, 0, 1)",exit:"cubic-bezier(0.32, 0.72, 0, 1)"}},loadingOverlayBackdropOpacity:"0.8"};I=t.KirbyAnimation||(t.KirbyAnimation={}),(C=I.Duration||(I.Duration={}))[C.QUICK=parseInt(R.transitionDurations.quick)]="QUICK",C[C.SHORT=parseInt(R.transitionDurations.short)]="SHORT",C[C.LONG=parseInt(R.transitionDurations.long)]="LONG",C[C.EXTRA_LONG=parseInt(R.transitionDurations.extraLong)]="EXTRA_LONG",I.Easing=R.transitionEasings;var _=function(){};_.decorators=[{type:e.Component,args:[{selector:"kirby-router-outlet",template:'<ng-container *ngIf="main">\n <ion-router-outlet main></ion-router-outlet>\n</ng-container>\n<ng-container *ngIf="!main">\n <ion-router-outlet></ion-router-outlet>\n</ng-container>\n',styles:[":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:size layout style;z-index:0;overflow:hidden;background-color:var(--kirby-background-color)}"]}]}],_.propDecorators={main:[{type:e.Input}]};function P(t,e){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(t,a)}catch(t){r=[6,t],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}Object.create;function A(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function M(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function B(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(M(arguments[e]));return t}Object.create;var z=function(){function t(){this.cancelButtonText="Cancel",this.hideCancel=!1,this.disabled=!1,this.cancel=new e.EventEmitter,this.itemSelect=new e.EventEmitter}return t.prototype.onItemSelect=function(t){this.itemSelect.emit(t)},t.prototype.onCancel=function(){this.cancel.emit()},t}();z.decorators=[{type:e.Component,args:[{selector:"kirby-action-sheet",template:'<kirby-card>\n <kirby-card-header *ngIf="header" [title]="header" [isTitleBold]="true" [subtitle]="subheader">\n </kirby-card-header>\n <button\n kirby-button\n expand="block"\n size="lg"\n attentionLevel="4"\n (click)="onItemSelect(item)"\n *ngFor="let item of items"\n >\n {{ item.text }}\n </button>\n</kirby-card>\n<button\n *ngIf="!hideCancel"\n kirby-button\n class="cancel-btn"\n size="lg"\n attentionLevel="2"\n (click)="onCancel()"\n>\n {{ cancelButtonText }}\n</button>\n',styles:[":host{--kirby_internal_margin_horizontal_default:32px;--kirby_internal_margin_horizontal_total:calc(2 * var(--kirby-action-sheet-margin-horizontal, var(--kirby_internal_margin_horizontal_default)))}@media (max-width:320px){:host{--kirby_internal_margin_horizontal_default:16px}}:host{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;margin:0 auto;width:calc(100vw - var(--kirby_internal_margin_horizontal_total));max-width:calc(375px - var(--kirby_internal_margin_horizontal_total))}kirby-card{align-self:stretch;pointer-events:auto;box-shadow:0 20px 30px -15px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08)}kirby-card button[kirby-button]{margin:0;border-radius:0}kirby-card button[kirby-button]:not(:focus){border-top:1px solid var(--kirby-background-color)}.cancel-btn{font-weight:700;margin-top:16px;margin-bottom:24px;pointer-events:auto;box-shadow:0 20px 30px -15px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08)}"]}]}],z.propDecorators={cancelButtonText:[{type:e.Input}],hideCancel:[{type:e.Input}],disabled:[{type:e.Input}],header:[{type:e.Input}],subheader:[{type:e.Input}],items:[{type:e.Input}],cancel:[{type:e.Output}],itemSelect:[{type:e.Output}]};var L=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(o,r){function a(t){try{c(i.next(t))}catch(t){r(t)}}function s(t){try{c(i.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((i=i.apply(t,e||[])).next())}))},j=function(){function t(t){this.ionicModalController=t}return t.prototype.showActionSheet=function(t){return L(this,void 0,void 0,(function(){var n,i,o,r,a;return P(this,(function(s){switch(s.label){case 0:return n=new e.EventEmitter,i=new e.EventEmitter,[4,this.ionicModalController.create({component:z,cssClass:["kirby-overlay","kirby-action-sheet"],componentProps:Object.assign(Object.assign({},t),{cancel:n,itemSelect:i}),backdropDismiss:!1})];case 1:return o=s.sent(),r=n.subscribe((function(){return o.dismiss()})),a=i.subscribe((function(t){return o.dismiss(t)})),o.onDidDismiss().then((function(t){r.unsubscribe(),a.unsubscribe()})),[4,o.present()];case 2:return s.sent(),[2,{dismiss:o.dismiss.bind(o),onWillDismiss:o.onWillDismiss(),onDidDismiss:o.onDidDismiss()}]}}))}))},t}();j.decorators=[{type:e.Injectable}],j.ctorParameters=function(){return[{type:n.ModalController}]};var H=function(){function t(){}return Object.defineProperty(t.prototype,"nativeWindow",{get:function(){return window},enumerable:!1,configurable:!0}),t}();H.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new H},token:H,providedIn:"root"}),H.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}];var F=function(){function t(t,e){this.elementRef=t,this.windowRef=e,this.BLUR_WRAPPER_DELAY_IN_MS=50,this.scrollY=Math.abs(this.windowRef.nativeWindow.scrollY)}return Object.defineProperty(t.prototype,"title",{set:function(t){this.title$="string"==typeof t?o.of(t):t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"message",{set:function(t){this.message$="string"==typeof t?o.of(t):t},enumerable:!1,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this;setTimeout((function(){t.alertWrapper.nativeElement.focus(),t.alertWrapper.nativeElement.blur()}),this.BLUR_WRAPPER_DELAY_IN_MS)},t.prototype.onFocusChange=function(){this.windowRef.nativeWindow.scrollTo({top:this.scrollY})},t.prototype.onCancel=function(){var t=this.elementRef.nativeElement.closest("ion-modal");t&&t.dismiss(!1)},t.prototype.onOk=function(){var t=this.elementRef.nativeElement.closest("ion-modal");t&&t.dismiss(!0)},t}();F.decorators=[{type:e.Component,args:[{selector:"kirby-alert",template:'<article #alertWrapper>\n <kirby-empty-state\n [iconName]="iconName"\n [themeColor]="iconThemeColor"\n [title]="title$ | async"\n [subtitle]="message$ | async"\n ></kirby-empty-state>\n <div class="buttongroup">\n <button\n kirby-button\n *ngIf="cancelBtnText"\n attentionLevel="3"\n class="cancel-btn"\n (click)="onCancel()"\n >\n {{ cancelBtnText }}\n </button>\n <button\n kirby-button\n [size]="cancelBtnText ? null : \'lg\'"\n attentionLevel="1"\n class="ok-btn"\n [isDestructive]="okBtnIsDestructive"\n (click)="onOk()"\n >\n {{ okBtnText }}\n </button>\n </div>\n</article>\n',host:{"[class.ion-page]":"false"},styles:["article{overflow:hidden;padding:24px 16px 16px}@media (max-width:320px){article{padding:8px}}.buttongroup{display:flex;justify-content:space-around}.buttongroup button{width:50%;margin-left:6px;margin-right:6px}"]}]}],F.ctorParameters=function(){return[{type:e.ElementRef},{type:H}]},F.propDecorators={alertWrapper:[{type:e.ViewChild,args:["alertWrapper",{static:!0}]}],title:[{type:e.Input}],message:[{type:e.Input}],iconName:[{type:e.Input}],iconThemeColor:[{type:e.Input}],okBtnText:[{type:e.Input}],okBtnIsDestructive:[{type:e.Input}],cancelBtnText:[{type:e.Input}]};var N=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(o,r){function a(t){try{c(i.next(t))}catch(t){r(t)}}function s(t){try{c(i.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((i=i.apply(t,e||[])).next())}))},W=function(){function t(t){this.ionicModalController=t}return t.prototype.showAlert=function(t){return N(this,void 0,void 0,(function(){var e;return P(this,(function(n){switch(n.label){case 0:return[4,this.ionicModalController.create({component:F,componentProps:this.getComponentProps(t),cssClass:["kirby-overlay","kirby-alert"],mode:"ios",backdropDismiss:!1})];case 1:return[4,(e=n.sent()).present()];case 2:return n.sent(),[2,{dismiss:e.dismiss.bind(e),onWillDismiss:e.onWillDismiss(),onDidDismiss:e.onDidDismiss()}]}}))}))},t.prototype.getComponentProps=function(t){return Object.assign(Object.assign({},t),{okBtnText:this.getOkBtnText(t),cancelBtnText:this.getCancelBtnText(t),okBtnIsDestructive:this.getOkBtnIsDestructive(t),iconName:t.icon&&t.icon.name,iconThemeColor:t.icon&&t.icon.themeColor})},t.prototype.getOkBtnText=function(t){var e;return t.okBtnText&&(console.warn("`okBtnText` will be deprecated on next major version. Please use `okBtn` instead."),e=t.okBtnText),t.okBtn&&(e="string"==typeof t.okBtn?t.okBtn:t.okBtn.text),e},t.prototype.getOkBtnIsDestructive=function(t){return"object"==typeof t.okBtn?t.okBtn.isDestructive:void 0},t.prototype.getCancelBtnText=function(t){return t.cancelBtnText&&console.warn("`cancelBtnText` will be deprecated on next major version. Please use `cancelBtn` instead."),t.cancelBtn||t.cancelBtnText},t}();W.decorators=[{type:e.Injectable}],W.ctorParameters=function(){return[{type:n.ModalController}]};var V=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(o,r){function a(t){try{c(i.next(t))}catch(t){r(t)}}function s(t){try{c(i.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((i=i.apply(t,e||[])).next())}))},$=function(){function t(t,e){this.router=t,this.route=e,this.navigationEndListener$=this.router.events.pipe(r.filter((function(t){return t instanceof i.NavigationEnd})))}return t.prototype.isModalRoute=function(t){return t.includes("(modal:")},t.prototype.getCurrentActivatedRoute=function(){for(var t=this.route.root;t.firstChild;)t=t.firstChild;return t},t.prototype.getModalRoutes=function(t,e){return V(this,void 0,void 0,(function(){var n,i,o;return P(this,(function(r){switch(r.label){case 0:return n=[].concat.apply([],B(t)),i=[],[4,this.getModuleRootPath(n,e)];case 1:return(o=r.sent())&&(i=this.getModalRoutePaths(n,o)),[2,i]}}))}))},t.prototype.getModuleRootPath=function(t,e){return V(this,void 0,void 0,(function(){var n,i;return P(this,(function(o){switch(o.label){case 0:return e?(n=e.trim().split("/").filter((function(t){return!!t})),[2,[""].concat(n)]):[4,this.getCurrentRoutePaths()];case 1:return i=o.sent(),[2,this.getRoutePathsWithoutChildSegments(i,t)]}}))}))},t.prototype.getCurrentRoutePaths=function(){return V(this,void 0,void 0,(function(){var t,e,n,i;return P(this,(function(o){switch(o.label){case 0:return t=[""],e=this.router.getCurrentNavigation(),this.router.navigated||e?e?[4,this.navigationEndListener$.pipe(r.first()).toPromise()]:[3,2]:[2,t];case 1:o.sent(),o.label=2;case 2:for(n=this.route.snapshot.root;n.firstChild;)n=n.firstChild;return i=n.pathFromRoot.filter((function(t){return"modal"!==t.outlet})),[2,t.concat.apply(t,B(i.map((function(t){return t.url.filter((function(t){return!!t.path})).map((function(t){return t.path}))}))))]}}))}))},t.prototype.getRoutePathsWithoutChildSegments=function(t,e){if(!t.length)return t;var n=this.findChildRouteForUrl(t.join("/"),e);if(!n)return t;var i=n.replace(/^\//,"").split("/").length;return t.slice(0,-i)},t.prototype.findChildRouteForUrl=function(t,e){var n=this,i=this.getRoutePaths(e,[""]).sort().reverse(),o=i.find((function(e){return t.endsWith(e)}));if(!o){o=i.find((function(e){return e.includes("/:")&&n.pathContainsChildRouteWithUrlParams(t,e,false)}))}return o},t.prototype.pathContainsChildRouteWithUrlParams=function(t,e,n){var i=t.split("/"),o=e;n||(o=e.replace(/^\//,""));var r=o.split("/").reverse().every((function(t){var e=i.pop();return t.startsWith(":")||t===e}));return n?0===i.length&&r:r},t.prototype.getRoutePaths=function(t,e){var n=this;return Array.isArray(t)?[].concat.apply([],B(t.map((function(t){return n.getRoutePath(t,e)})))):[]},t.prototype.getRoutePath=function(t,e){var n=[];if(t.outlet)return n;var i=B(e);return t.path&&(i.push(t.path),n.push(i.join("/"))),n.concat(this.getRoutePaths(t.children,i))},t.prototype.getModalRoutePath=function(t,e){var n="modal";if(t.path&&t.outlet===n)return[B(e,["(modal:"+t.path+")"]).join("/")];var i=B(e);return t.path&&i.push(t.path),[].concat.apply([],B(this.getModalRoutePaths(t.children,i)))},t.prototype.getModalRoutePaths=function(t,e){var n=this;return Array.isArray(t)?[].concat.apply([],B(t.map((function(t){return n.getModalRoutePath(t,e)})))):[]},t.prototype.isNewModalWindow=function(t){var e=this.router.getCurrentNavigation();if(!e||!e.previousNavigation)return!0;var n=(e.previousNavigation.finalUrl||e.previousNavigation.extractedUrl).toString(),i=this.isModalRoute(n),o=this.isModalRoute(t.urlAfterRedirects);if(!i&&o)return!0;var r=t.urlAfterRedirects.split("/(modal:")[0];return n.split("/(modal:")[0]!==r},t.prototype.waitForCurrentThenGetNavigationEndStream=function(){return V(this,void 0,void 0,(function(){var t;return P(this,(function(e){switch(e.label){case 0:return this.router.getCurrentNavigation()?[4,this.navigationEndListener$.pipe(r.first()).toPromise()]:[3,2];case 1:return t=e.sent(),[2,this.navigationEndListener$.pipe(r.startWith(t))];case 2:return[2,this.navigationEndListener$]}}))}))},t.prototype.modalRouteActivatedFor=function(t,e,n){var i=this;return t.pipe(r.filter((function(t){return i.modalRouteSetContainsPath(e,t,n)})),r.map((function(t){return{route:i.getCurrentActivatedRoute(),isNewModal:i.isNewModalWindow(t)}})))},t.prototype.modalRouteDeactivatedFor=function(t,e,n){var i=this;return t.pipe(r.pairwise(),r.filter((function(t){var o=M(t,2),r=o[0];o[1];return i.modalRouteSetContainsPath(e,r,n)})),r.map((function(t){var e=M(t,2),n=(e[0],e[1]);return!i.isModalRoute(n.urlAfterRedirects)||i.isNewModalWindow(n)})),r.filter((function(t){return t})))},t.prototype.modalRouteSetContainsPath=function(t,e,n){var i,o,r=e.urlAfterRedirects.split("?")[0],a=t.has(r);if(!a&&n)try{for(var s=A(t),c=s.next();!c.done;c=s.next()){var l=c.value;if(this.pathContainsChildRouteWithUrlParams(r,l,!0)){a=!0;break}}}catch(t){i={error:t}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}return a},t.prototype.getModalNavigation=function(t,e){return V(this,void 0,void 0,(function(){var n,i,r,a,s,c;return P(this,(function(l){switch(l.label){case 0:return Array.isArray(t)?[4,this.waitForCurrentThenGetNavigationEndStream()]:[3,3];case 1:return n=l.sent(),[4,this.getModalRoutes(t,e)];case 2:if(i=l.sent(),i.length>0)return r=i.some((function(t){return t.includes("/:")})),a=new Set(i),s=this.modalRouteActivatedFor(n,a,r),c=this.modalRouteDeactivatedFor(n,a,r),[2,{activated$:s,deactivated$:c}];l.label=3;case 3:return[2,{activated$:o.EMPTY,deactivated$:o.EMPTY}]}}))}))},t.prototype.navigateToModal=function(t,e){return V(this,void 0,void 0,(function(){var n,i;return P(this,(function(o){switch(o.label){case 0:return n=Array.isArray(t)?t:t.split("/"),i=n.pop(),[4,this.router.navigate(B(n,[{outlets:{modal:[i]}}]),{queryParams:e,relativeTo:this.getCurrentActivatedRoute()})];case 1:return[2,o.sent()]}}))}))},t.prototype.navigateWithinModal=function(t,e){return V(this,void 0,void 0,(function(){return P(this,(function(n){return[2,this.router.navigate([t],{queryParams:e,relativeTo:this.getCurrentActivatedRoute()})]}))}))},t.prototype.navigateOutOfModalOutlet=function(){return V(this,void 0,void 0,(function(){var t,e,n;return P(this,(function(i){return t=Promise.resolve(!0),"modal"===(e=this.getCurrentActivatedRoute()).outlet&&(n=this.getBackdropRoute(e),t=this.router.navigate(["./"],{relativeTo:n})),[2,t]}))}))},t.prototype.getBackdropRoute=function(t){for(var e=t.parent;e&&!e.component&&e.parent;)e=e.parent;return e},t}();$.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new $(e.ɵɵinject(i.Router),e.ɵɵinject(i.ActivatedRoute))},token:$,providedIn:"root"}),$.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],$.ctorParameters=function(){return[{type:i.Router},{type:i.ActivatedRoute}]};var G=function(){},U=new e.InjectionToken("componentProps"),Y=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(o,r){function a(t){try{c(i.next(t))}catch(t){r(t)}}function s(t){try{c(i.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((i=i.apply(t,e||[])).next())}))},K=function(){function t(t,e,n){this.injector=t,this.elementRef=e,this.windowRef=n,this.scrollY=Math.abs(this.windowRef.nativeWindow.scrollY),this.scrollDisabled=!1,this.ionModalDidPresent=new o.Subject,this.ionModalWillDismiss=new o.Subject,this.didPresent=this.ionModalDidPresent.toPromise(),this.willClose=this.ionModalWillDismiss.toPromise()}return t.prototype.ngOnInit=function(){this.ionModalElement=this.elementRef.nativeElement.closest("ion-modal"),this.listenForIonModalDidPresent(),this.listenForIonModalWillDismiss(),this.componentPropsInjector=e.Injector.create({providers:[{provide:U,useValue:this.config.componentProps}],parent:this.injector})},t.prototype.listenForIonModalDidPresent=function(){var t=this;this.ionModalElement&&this.ionModalElement.addEventListener("ionModalDidPresent",(function(){t.ionModalDidPresent.next(),t.ionModalDidPresent.complete()}))},t.prototype.listenForIonModalWillDismiss=function(){var t=this;this.ionModalElement&&this.ionModalElement.addEventListener("ionModalWillDismiss",(function(){t.ionModalWillDismiss.next(),t.ionModalWillDismiss.complete()}))},t.prototype.close=function(t){return Y(this,void 0,void 0,(function(){var e;return P(this,(function(n){switch(n.label){case 0:return(e=this.elementRef.nativeElement.closest("ion-modal"))?[4,e.dismiss(t)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},t.prototype.onFocusChange=function(){this.windowRef.nativeWindow.scrollTo({top:this.scrollY})},t}();K.decorators=[{type:e.Component,args:[{selector:"kirby-modal-compact-wrapper",template:'<ng-container\n *ngComponentOutlet="config.component; injector: componentPropsInjector"\n></ng-container>\n',providers:[{provide:G,useExisting:K}],host:{"[class.ion-page]":"false"},styles:[":host{display:block;padding:24px 16px}"]}]}],K.ctorParameters=function(){return[{type:e.Injector},{type:e.ElementRef},{type:H}]},K.propDecorators={config:[{type:e.Input}],onFocusChange:[{type:e.HostListener,args:["window:focus"]},{type:e.HostListener,args:["window:focusout"]}]};var q={brandColors:{primary:"#00e89a",secondary:"#005c3c",tertiary:"#01352c"},notificationColors:{success:"#2cf287",warning:"#ffca3a",danger:"#ff595e"},systemColors:{backgroundColor:"#f6f6f6",white:"#ffffff",light:"#f2f2f2",semiLight:"#ebebeb",medium:"#d1d1d1",semiDark:"#8e8e8e",dark:"#353535",black:"#1c1c1c"},textColors:{white:"#ffffff",semiDark:"#707070",black:"#1c1c1c",danger:"#ee0d0d"},focusRingColor:"#4d90fe",mainColors:{primary:"#00e89a",secondary:"#005c3c",tertiary:"#01352c",success:"#2cf287",warning:"#ffca3a",danger:"#ff595e",light:"#f2f2f2",medium:"#d1d1d1",dark:"#353535"},kirbyColors:{black:"#1c1c1c",blackRgb:"28, 28, 28",blackContrast:"#ffffff",blackContrastRgb:"255, 255, 255",blackShade:"#191919",blackShadeRgb:"25, 25, 25",blackTint:"#333333",blackTintRgb:"51, 51, 51",blackColorBrightness:"dark",dark:"#353535",darkRgb:"53, 53, 53",darkContrast:"#ffffff",darkContrastRgb:"255, 255, 255",darkShade:"#2f2f2f",darkShadeRgb:"47, 47, 47",darkTint:"#494949",darkTintRgb:"73, 73, 73",darkColorBrightness:"dark",semiDark:"#8e8e8e",semiDarkRgb:"142, 142, 142",semiDarkContrast:"#1c1c1c",semiDarkContrastRgb:"28, 28, 28",semiDarkShade:"#7d7d7d",semiDarkShadeRgb:"125, 125, 125",semiDarkTint:"#999999",semiDarkTintRgb:"153, 153, 153",semiDarkColorBrightness:"light",medium:"#d1d1d1",mediumRgb:"209, 209, 209",mediumContrast:"#1c1c1c",mediumContrastRgb:"28, 28, 28",mediumShade:"#b8b8b8",mediumShadeRgb:"184, 184, 184",mediumTint:"#d6d6d6",mediumTintRgb:"214, 214, 214",mediumColorBrightness:"light",semiLight:"#ebebeb",semiLightRgb:"235, 235, 235",semiLightContrast:"#1c1c1c",semiLightContrastRgb:"28, 28, 28",semiLightShade:"#cfcfcf",semiLightShadeRgb:"207, 207, 207",semiLightTint:"#ededed",semiLightTintRgb:"237, 237, 237",semiLightColorBrightness:"light",light:"#f2f2f2",lightRgb:"242, 242, 242",lightContrast:"#1c1c1c",lightContrastRgb:"28, 28, 28",lightShade:"#d5d5d5",lightShadeRgb:"213, 213, 213",lightTint:"#f3f3f3",lightTintRgb:"243, 243, 243",lightColorBrightness:"light",white:"#ffffff",whiteRgb:"255, 255, 255",whiteContrast:"#1c1c1c",whiteContrastRgb:"28, 28, 28",whiteShade:"#e0e0e0",whiteShadeRgb:"224, 224, 224",whiteTint:"white",whiteTintRgb:"255, 255, 255",whiteColorBrightness:"white",backgroundColor:"#f6f6f6",backgroundColorRgb:"246, 246, 246",backgroundColorContrast:"#1c1c1c",backgroundColorContrastRgb:"28, 28, 28",backgroundColorShade:"#d8d8d8",backgroundColorShadeRgb:"216, 216, 216",backgroundColorTint:"#f7f7f7",backgroundColorTintRgb:"247, 247, 247",backgroundColorColorBrightness:"light",danger:"#ff595e",dangerRgb:"255, 89, 94",dangerContrast:"#1c1c1c",dangerContrastRgb:"28, 28, 28",dangerShade:"#e04e53",dangerShadeRgb:"224, 78, 83",dangerTint:"#ff6a6e",dangerTintRgb:"255, 106, 110",dangerColorBrightness:"light",warning:"#ffca3a",warningRgb:"255, 202, 58",warningContrast:"#1c1c1c",warningContrastRgb:"28, 28, 28",warningShade:"#e0b233",warningShadeRgb:"224, 178, 51",warningTint:"#ffcf4e",warningTintRgb:"255, 207, 78",warningColorBrightness:"light",success:"#2cf287",successRgb:"44, 242, 135",successContrast:"#1c1c1c",successContrastRgb:"28, 28, 28",successShade:"#27d577",successShadeRgb:"39, 213, 119",successTint:"#41f393",successTintRgb:"65, 243, 147",successColorBrightness:"light",tertiary:"#01352c",tertiaryRgb:"1, 53, 44",tertiaryContrast:"#ffffff",tertiaryContrastRgb:"255, 255, 255",tertiaryShade:"#012f27",tertiaryShadeRgb:"1, 47, 39",tertiaryTint:"#1a4941",tertiaryTintRgb:"26, 73, 65",tertiaryColorBrightness:"dark",secondary:"#005c3c",secondaryRgb:"0, 92, 60",secondaryContrast:"#ffffff",secondaryContrastRgb:"255, 255, 255",secondaryShade:"#005135",secondaryShadeRgb:"0, 81, 53",secondaryTint:"#1a6c50",secondaryTintRgb:"26, 108, 80",secondaryColorBrightness:"dark",primary:"#00e89a",primaryRgb:"0, 232, 154",primaryContrast:"#1c1c1c",primaryContrastRgb:"28, 28, 28",primaryShade:"#00cc88",primaryShadeRgb:"0, 204, 136",primaryTint:"#1aeaa4",primaryTintRgb:"26, 234, 164",primaryColorBrightness:"light"},kirbyTextColors:{danger:"#ee0d0d",dangerRgb:"238, 13, 13",dangerContrast:"#ffffff",dangerContrastRgb:"255, 255, 255",dangerShade:"#d10b0b",dangerShadeRgb:"209, 11, 11",dangerTint:"#f02525",dangerTintRgb:"240, 37, 37",dangerColorBrightness:"dark",black:"#1c1c1c",blackRgb:"28, 28, 28",blackContrast:"#ffffff",blackContrastRgb:"255, 255, 255",blackShade:"#191919",blackShadeRgb:"25, 25, 25",blackTint:"#333333",blackTintRgb:"51, 51, 51",blackColorBrightness:"dark",semiDark:"#707070",semiDarkRgb:"112, 112, 112",semiDarkContrast:"#ffffff",semiDarkContrastRgb:"255, 255, 255",semiDarkShade:"#636363",semiDarkShadeRgb:"99, 99, 99",semiDarkTint:"#7e7e7e",semiDarkTintRgb:"126, 126, 126",semiDarkColorBrightness:"dark",white:"#ffffff",whiteRgb:"255, 255, 255",whiteContrast:"#1c1c1c",whiteContrastRgb:"28, 28, 28",whiteShade:"#e0e0e0",whiteShadeRgb:"224, 224, 224",whiteTint:"white",whiteTintRgb:"255, 255, 255",whiteColorBrightness:"white"}},Z=function(t){return t.length&&1!==t.length?t.split("-").map((function(t,e){return 0===e?t:t[0].toUpperCase()+t.substr(1)})).join(""):t},J=function(t){return t.length&&1!==t.length?t.split("").map((function(t,e){return t.toUpperCase()===t&&"-"!==t?0===e?t.toLowerCase():"-"+t.toLowerCase():t})).join(""):t},Q=function(t){return"string"!=typeof t?"":t.charAt(0).toUpperCase()+t.slice(1)},X=function(){function t(){}return t.getMainColors=function(){return Object.entries(q.mainColors).map((function(t){var e=M(t,2);return{name:e[0],value:e[1]}}))},t.mapToKirbyColorArray=function(t,e){void 0===e&&(e=q.kirbyColors);var n="Tint",i="Shade",o="Contrast";return Object.entries(t).map((function(t){var r=M(t,2),a=r[0],s=r[1];return{name:J(a),value:s,base:s,tint:{value:e[a+n],name:J(a+n)},shade:{value:e[a+i],name:J(a+i)},contrast:{value:e[a+o],name:J(a+o)}}}))},t.getBackgroundColor=function(){return t.getColor("background-color")},t.getColorBrightness=function(e){return t.getColor(e+"-color-brightness")},t.getThemeColorRgbString=function(e){return"rgb("+t.getColor(e+"-rgb")+")"},t.getThemeTextColorRgbString=function(e){return"rgb("+t.getTextColor(e+"-rgb")+")"},t.getThemeColorHexString=function(e){return t.getColor(e)},t.getThemeTextColorHexString=function(e){return t.getTextColor(e)},t.getTransparentColorRgbString=function(){return"rgba(0, 0, 0, 0)"},t.colorStringToRgbString=function(e){if(0===e.indexOf("rgb"))return e;if(0===e.indexOf("#"))return t.hexToRGB(e);if(3===e.split(",").length)return"rgb("+e+")";if(4===e.split(",").length)return"rgba("+e+")";var n=document.createElement("canvas").getContext("2d");n.fillStyle=e;var i=n.fillStyle.toString();return t.colorStringToRgbString(i)},t.hexToRGB=function(t){var e="0",n="0",i="0";return 4===t.length?(e="0x"+t[1]+t[1],n="0x"+t[2]+t[2],i="0x"+t[3]+t[3]):7===t.length&&(e="0x"+t[1]+t[2],n="0x"+t[3]+t[4],i="0x"+t[5]+t[6]),"rgb("+ +e+", "+ +n+", "+ +i+")"},t.getColor=function(t){var e=Z(t);return q.kirbyColors[e]||null},t.getTextColor=function(t){var e=Z(t);return q.kirbyTextColors[e]||null},t}();X.brandColors=X.mapToKirbyColorArray(q.brandColors),X.notificationColors=X.mapToKirbyColorArray(q.notificationColors),X.systemColors=X.mapToKirbyColorArray(q.systemColors),X.textColors=X.mapToKirbyColorArray(q.textColors,q.kirbyTextColors),X.mainColors=X.getMainColors();var tt=function(){function t(){}return t.getColor=function(t,e){var n=""+t+(e?"-"+e:"");return{name:t,variant:e,fullname:n,value:X.getThemeColorRgbString(n),hex:X.getThemeColorHexString(n)}},t.getTextColor=function(t,e){var n=""+t+(e?"-"+e:"");return{name:t,variant:e,fullname:n,value:X.getThemeTextColorRgbString(n),hex:X.getThemeTextColorHexString(n)}},t.size=function(t){return R.sizes[t]},t.fontSize=function(t){return R.fontSizes[t]},t.iconFontSize=function(t){return R.iconFontSizes[t]},t.fontWeight=function(t){return R.fontWeight[t]},t.lineHeight=function(t){return R.lineHeight[t]},t.backgroundColor=function(){return X.getBackgroundColor()},t.borderRadius=function(){return R.borderRadius},t.borderRadiusRound=function(){return R.borderRadiusRound},t.alertMaxWidth=function(){return R.alertMaxWidth},t.compactModalMaxWidth=function(){return R.compactModalMaxWidth},t.dropdownItemHeight=function(){return R.dropdownItemHeight},t.avatarSize=function(t){return R.avatarSizes[t]},t.fatFingerSize=function(){return R.fatFingerSize},t.getElevation=function(t){return R.elevations[t]},t.itemHeight=function(t){return R.itemHeights[t]},t}();tt.breakpoints=R.breakpoints,tt.softKeyboardTransitionEnter=R.softKeyboardTransitionEnter,tt.softKeyboardTransitionLeave=R.softKeyboardTransitionLeave,tt.modalDefaultHeight=R.modalDefaultHeight,tt.drawerDefaultHeight=R.drawerDefaultHeight;var et=function(){function t(t){this.windowRef=t}return t.prototype.isTouch=function(){return this.windowRef.nativeWindow.matchMedia("(pointer: coarse)").matches},t.prototype.isPhabletOrBigger=function(){var t="(min-width: "+tt.breakpoints.medium+")";return this.windowRef.nativeWindow.matchMedia(t).matches},t}();et.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new et(e.ɵɵinject(H))},token:et,providedIn:"root"}),et.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],et.ctorParameters=function(){return[{type:H}]};var nt=new e.InjectionToken("IconSettings"),it=function(){function t(t){this.iconRegistry=new Map,t&&(this.addIcons(t.icons),console.warn("Use of IconSettings is deprecated, use IconRegistryService instead"))}return t.prototype.addIcon=function(t,e){this.iconRegistry.has(t)?console.warn('Icon with name: "'+t+'" already exists'):this.iconRegistry.set(t,e)},t.prototype.addIcons=function(t){var e=this;t?t.forEach((function(t){e.addIcon(t.name,t.svg)})):console.error("Icons not defined")},t.prototype.getIcons=function(){return B(this.iconRegistry).map((function(t){return{name:t[0],svg:t[1]}}))},t.prototype.getIcon=function(t){var e=this.iconRegistry.get(t);return e?{name:t,svg:e}:void 0},t}();it.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new it(e.ɵɵinject(nt,8))},token:it,providedIn:"root"}),it.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],it.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[nt]}]}]};var ot,rt={icons:[{name:"accounts-outline",svg:"assets/kirby/icons/svg/accounts-outline.svg"},{name:"accounts",svg:"assets/kirby/icons/svg/accounts.svg"},{name:"add",svg:"assets/kirby/icons/svg/add.svg"},{name:"remove",svg:"assets/kirby/icons/svg/remove.svg"},{name:"unsubscribe",svg:"assets/kirby/icons/svg/unsubscribe.svg"},{name:"arrow-back",svg:"assets/kirby/icons/svg/arrow-back.svg"},{name:"arrow-down",svg:"assets/kirby/icons/svg/arrow-down.svg"},{name:"arrow-more",svg:"assets/kirby/icons/svg/arrow-more.svg"},{name:"arrow-up",svg:"assets/kirby/icons/svg/arrow-up.svg"},{name:"attach",svg:"assets/kirby/icons/svg/attach.svg"},{name:"backspace",svg:"assets/kirby/icons/svg/backspace.svg"},{name:"calendar",svg:"assets/kirby/icons/svg/calendar.svg"},{name:"camera",svg:"assets/kirby/icons/svg/camera.svg"},{name:"checkbox-outline",svg:"assets/kirby/icons/svg/checkbox-outline.svg"},{name:"checkbox",svg:"assets/kirby/icons/svg/checkbox.svg"},{name:"checkmark-selected",svg:"assets/kirby/icons/svg/checkmark-selected.svg"},{name:"close",svg:"assets/kirby/icons/svg/close.svg"},{name:"cog",svg:"assets/kirby/icons/svg/cog.svg"},{name:"copy",svg:"assets/kirby/icons/svg/copy.svg"},{name:"flag",svg:"assets/kirby/icons/svg/flag.svg"},{name:"edit",svg:"assets/kirby/icons/svg/edit.svg"},{name:"filter",svg:"assets/kirby/icons/svg/filter.svg"},{name:"flash-off",svg:"assets/kirby/icons/svg/flash-off.svg"},{name:"flash",svg:"assets/kirby/icons/svg/flash.svg"},{name:"moneybag",svg:"assets/kirby/icons/svg/moneybag.svg"},{name:"help",svg:"assets/kirby/icons/svg/help.svg"},{name:"home",svg:"assets/kirby/icons/svg/home.svg"},{name:"inbox",svg:"assets/kirby/icons/svg/inbox.svg"},{name:"inbox-outline",svg:"assets/kirby/icons/svg/inbox-outline.svg"},{name:"information",svg:"assets/kirby/icons/svg/information.svg"},{name:"investment",svg:"assets/kirby/icons/svg/investment.svg"},{name:"kirby",svg:"assets/kirby/icons/svg/kirby.svg"},{name:"link",svg:"assets/kirby/icons/svg/link.svg"},{name:"log-out",svg:"assets/kirby/icons/svg/log-out.svg"},{name:"menu-outline",svg:"assets/kirby/icons/svg/menu-outline.svg"},{name:"menu",svg:"assets/kirby/icons/svg/menu.svg"},{name:"misc",svg:"assets/kirby/icons/svg/misc.svg"},{name:"more",svg:"assets/kirby/icons/svg/more.svg"},{name:"move",svg:"assets/kirby/icons/svg/move.svg"},{name:"pension",svg:"assets/kirby/icons/svg/pension.svg"},{name:"person-outline",svg:"assets/kirby/icons/svg/person-outline.svg"},{name:"person",svg:"assets/kirby/icons/svg/person.svg"},{name:"qr",svg:"assets/kirby/icons/svg/QR.svg"},{name:"search",svg:"assets/kirby/icons/svg/search.svg"},{name:"share",svg:"assets/kirby/icons/svg/share.svg"},{name:"sort",svg:"assets/kirby/icons/svg/sort.svg"},{name:"support",svg:"assets/kirby/icons/svg/support.svg"},{name:"swap",svg:"assets/kirby/icons/svg/swap.svg"},{name:"trash",svg:"assets/kirby/icons/svg/trash.svg"},{name:"foreign-payment",svg:"assets/kirby/icons/svg/foreign-payment.svg"},{name:"clock",svg:"assets/kirby/icons/svg/clock.svg"},{name:"verify",svg:"assets/kirby/icons/svg/verify.svg"},{name:"warning",svg:"assets/kirby/icons/svg/warning.svg"},{name:"write-message",svg:"assets/kirby/icons/svg/write-message.svg"},{name:"reorder",svg:"assets/kirby/icons/svg/reorder.svg"}]},at=rt.icons.map((function(t){return t.name}));(ot=t.IconSize||(t.IconSize={})).XS="xs",ot.SM="sm",ot.MD="md",ot.LG="lg";var st,ct=function(){function t(t){this.iconRegistryService=t,this.defaultIcon=this.findIcon(rt.icons,"cog"),this._icon=this.icon=this.defaultIcon}return Object.defineProperty(t.prototype,"icon",{get:function(){return this._icon},set:function(t){t||!this.name&&!this.customName||(this.warnAboutMissingIcon(),t=this.defaultIcon)?t&&(this._icon=t):console.warn("Default icon was not found.")},enumerable:!1,configurable:!0}),t.prototype.warnAboutMissingIcon=function(){this.customName?console.warn('Custom icon with name "'+this.customName+"\" was not found. \n Do you have a typo in 'customName' or\n forgot to configure the custom icon through the 'IconRegistryService'?"):console.warn('Built-in icon with name "'+this.name+"\" was not found. \n Do you have a typo in 'name' or\n did you mean to use a custom icon? If so, please use: \n <kirby-icon customName=\""+this.name+'"></kirby-icon>')},t.prototype.ngOnChanges=function(t){t.name&&t.name.currentValue?this.icon=this.findIcon(rt.icons,t.name.currentValue):t.customName&&t.customName.currentValue&&(this.icon=this.iconRegistryService.getIcon(t.customName.currentValue))},t.prototype.findIcon=function(t,e){return t.find((function(t){return t.name===e}))},t}();ct.decorators=[{type:e.Component,args:[{selector:"kirby-icon",template:'<ion-icon [src]="icon?.svg"></ion-icon>\n',host:{"[class.kirby-icon]":"true"},styles:[":host{display:inline-flex;align-items:center;justify-content:center;font-size:var(--kirby-icon-font-size,24px);margin-left:var(--kirby-icon-margin-left,unset);margin-right:var(--kirby-icon-margin-right,unset)}:host svg path{fill:currentColor;stroke:currentColor}:host(.xs){--kirby-icon-font-size:16px}:host(.sm){--kirby-icon-font-size:24px}:host(.md){--kirby-icon-font-size:32px}:host(.lg){--kirby-icon-font-size:56px}:host(.primary){color:var(--kirby-primary)}:host(.secondary){color:var(--kirby-secondary)}:host(.tertiary){color:var(--kirby-tertiary)}:host(.success){color:var(--kirby-success)}:host(.warning){color:var(--kirby-warning)}:host(.danger){color:var(--kirby-danger)}:host(.light){color:var(--kirby-light)}:host(.medium){color:var(--kirby-medium)}:host(.dark){color:var(--kirby-dark)}:host-context(kirby-item)[slot=start]{margin-inline-end:8px}:host-context(kirby-item)[slot=end]{margin-inline-start:8px}"]}]}],ct.ctorParameters=function(){return[{type:it}]},ct.propDecorators={size:[{type:e.HostBinding,args:["class"]},{type:e.Input}],name:[{type:e.Input}],customName:[{type:e.Input}]},(st=t.ButtonSize||(t.ButtonSize={})).SM="sm",st.MD="md",st.LG="lg";var lt=function(){function e(e){this.elementRef=e,this.isAttentionLevel1=!0,this.destructive=!1,this._isIconLeft=!1,this._isIconRight=!1,this.isFloating=!1,this.size=t.ButtonSize.MD,this.hasText=!1}return Object.defineProperty(e.prototype,"isButtonFloating",{get:function(){return this.isFloating},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isIconOnly",{get:function(){return!!this.icon&&!this.hasText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isIconLeft",{get:function(){return this._isIconLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isIconRight",{get:function(){return this._isIconRight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_cssClass",{get:function(){return[this.themeColor,this.size].filter((function(t){return!!t}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attentionLevel",{set:function(t){this.isAttentionLevel1="1"===t,this.isAttentionLevel2="2"===t,this.isAttentionLevel3="3"===t,this.isAttentionLevel4="4"===t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDestructive",{set:function(t){this.destructive=t},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.hasText=!!this.elementRef.nativeElement.textContent,void 0!==this.iconElementRef&&this.hasText&&(this._isIconLeft=this.elementRef.nativeElement.firstChild===this.iconElementRef.nativeElement,this._isIconRight=!this._isIconLeft)},e}();lt.decorators=[{type:e.Component,args:[{selector:"button[kirby-button],Button[kirby-button]",template:"<ng-content></ng-content>\n",styles:[':host{position:relative;font-family:var(--kirby-font-family);background-color:var(--kirby-button-background-color,initial);color:var(--kirby-button-color,inherit);border-radius:999px;box-sizing:border-box;cursor:pointer;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;transition:opacity .2s linear;-webkit-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap;font-size:14px;height:40px;min-width:88px;padding:0 24px;margin:4px;line-height:20px;outline:none;border:1px solid var(--kirby-button-border-color,transparent)}:host:after{content:"";position:absolute;min-height:44px;min-width:44px;width:100%;height:100%;transform:translate(-50%,-50%);left:50%;top:50%}:host.icon-left{padding-left:12px;padding-right:16px;--kirby-icon-margin-right:8px}:host.icon-right{padding-left:16px;padding-right:12px;--kirby-icon-margin-left:8px}:host.icon-only{width:40px;padding:0;min-width:unset}:host.sm{font-size:12px;height:32px;min-width:44px}:host.sm:not(.icon-only){padding-left:16px;padding-right:16px}:host.sm.icon-only{width:32px;min-width:unset}:host.sm.icon-left,:host.sm.icon-right{--kirby-icon-font-size:16px;min-width:88px}:host.lg{font-size:16px;height:48px;min-width:220px}:host.lg.icon-only{width:48px;min-width:unset}:host.attention-level1{--kirby-button-background-color:var(--kirby-primary);--kirby-button-color:var(--kirby-primary-contrast)}:host.attention-level1.destructive{--kirby-button-background-color:var(--kirby-danger);--kirby-button-color:var(--kirby-danger-contrast)}:host.attention-level2{--kirby-button-background-color:var(--kirby-white);--kirby-button-color:var(--kirby-white-contrast)}:host.attention-level2.destructive{--kirby-button-background-color:var(--kirby-light);--kirby-button-color:var(--kirby-danger)}:host.attention-level3{--kirby-button-background-color:transparent;--kirby-button-color:var(--kirby-black);--kirby-button-border-color:var(--kirby-medium)}:host.attention-level3.destructive{--kirby-button-color:var(--kirby-danger)}:host.attention-level4{--kirby-button-background-color:transparent;--kirby-button-color:var(--kirby-black)}:host.attention-level4.destructive{--kirby-button-color:var(--kirby-danger)}:host[expand=block]{width:100%}@media (hover:hover){:host:focus{--kirby-button-border-color:#4d90fe}}@media (hover:hover){:host:hover{opacity:.8}}:host:active{opacity:.8}:host:disabled{background-color:var(--kirby-semi-light);color:var(--kirby-semi-dark-shade);border-color:transparent;pointer-events:none}:host :host-context(.default).attention-level2,:host :host-context(.kirby-color-brightness-white).attention-level2{--kirby-button-background-color:var(--kirby-black);--kirby-button-color:var(--kirby-black-contrast)}:host :host-context(.kirby-color-brightness-dark).attention-level3{--kirby-button-border-color:var(--kirby-white);--kirby-button-color:var(--kirby-white)}:host :host-context(.kirby-color-brightness-dark).attention-level4{--kirby-button-color:var(--kirby-white)}:host.floating{width:64px!important;height:64px!important;min-width:unset}:host.floating:not(:disabled){box-shadow:0 20px 30px -15px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08)}:host-context(kirby-item)[slot=end]{margin-inline-start:16px}:host-context(kirby-alert).ok-btn{--kirby-button-background-color:var(--kirby-success);--kirby-button-color:var(--kirby-success-contrast)}:host-context(ion-toolbar kirby-page-actions){font-size:14px;margin:0;height:44px}:host-context(ion-toolbar kirby-page-actions).icon-only{width:44px}:host-context(ion-toolbar kirby-page-actions).attention-level1,:host-context(ion-toolbar kirby-page-actions).attention-level2,:host-context(ion-toolbar kirby-page-actions).attention-level3,:host-context(ion-toolbar kirby-page-actions).attention-level4{--kirby-button-background-color:transparent;--kirby-button-color:var(--kirby-black)}:host-context(ion-toolbar kirby-page-actions).attention-level1.destructive,:host-context(ion-toolbar kirby-page-actions).attention-level2.destructive,:host-context(ion-toolbar kirby-page-actions).attention-level3.destructive,:host-context(ion-toolbar kirby-page-actions).attention-level4.destructive{--kirby-button-color:var(--kirby-danger)}:host-context(.page-title kirby-page-actions).attention-level1,:host-context(.page-title kirby-page-actions).attention-level2,:host-context(.page-title kirby-page-actions).attention-level3,:host-context(.page-title kirby-page-actions).attention-level4{--kirby-button-background-color:var(--kirby-white);--kirby-button-color:var(--kirby-white-contrast)}:host-context(.page-title kirby-page-actions).attention-level1.destructive,:host-context(.page-title kirby-page-actions).attention-level2.destructive,:host-context(.page-title kirby-page-actions).attention-level3.destructive,:host-context(.page-title kirby-page-actions).attention-level4.destructive{--kirby-button-background-color:var(--kirby-light);--kirby-button-color:var(--kirby-danger)}:host-context(kirby-empty-state .content){font-size:16px;height:48px;min-width:220px}:host-context(kirby-empty-state .content).icon-only{width:48px;min-width:unset}:host-context(kirby-dropdown){justify-content:space-between}:host-context(kirby-toggle-button).success{--kirby-button-background-color:var(--kirby-success);--kirby-button-color:var(--kirby-success-contrast)}:host-context(kirby-toggle-button).warning{--kirby-button-background-color:var(--kirby-warning);--kirby-button-color:var(--kirby-warning-contrast)}:host-context(kirby-toggle-button).danger{--kirby-button-background-color:var(--kirby-danger);--kirby-button-color:var(--kirby-danger-contrast)}']}]}],lt.ctorParameters=function(){return[{type:e.ElementRef}]},lt.propDecorators={isAttentionLevel1:[{type:e.HostBinding,args:["class.attention-level1"]}],isAttentionLevel2:[{type:e.HostBinding,args:["class.attention-level2"]}],isAttentionLevel3:[{type:e.HostBinding,args:["class.attention-level3"]}],isAttentionLevel4:[{type:e.HostBinding,args:["class.attention-level4"]}],destructive:[{type:e.HostBinding,args:["class.destructive"]}],isButtonFloating:[{type:e.HostBinding,args:["class.floating"]}],isIconOnly:[{type:e.HostBinding,args:["class.icon-only"]}],isIconLeft:[{type:e.HostBinding,args:["class.icon-left"]}],isIconRight:[{type:e.HostBinding,args:["class.icon-right"]}],_cssClass:[{type:e.HostBinding,args:["class"]}],attentionLevel:[{type:e.Input}],isDestructive:[{type:e.Input}],themeColor:[{type:e.Input}],expand:[{type:e.Input}],isFloating:[{type:e.Input}],size:[{type:e.Input}],icon:[{type:e.ContentChild,args:[ct]}],iconElementRef:[{type:e.ContentChild,args:[ct,{read:e.ElementRef}]}]};var dt=function(){function t(){}return t.prototype.create=function(t){return"undefined"==typeof ResizeObserver?null:new ResizeObserver(t)},t}();dt.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new dt},token:dt,providedIn:"root"}),dt.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}];var pt=function(){function t(t,e){var n=this;this._resizeObserverFactory=t,this.zone=e,this.observedElements=new WeakMap,this.observer=this._resizeObserverFactory.create((function(t){return n.handleResize(t)}))}return t.prototype.observe=function(t,n){var i=this,o=t instanceof e.ElementRef?t.nativeElement:t;this.observedElements.has(o)||(this.observer&&this.zone.runOutsideAngular((function(){i.observer.observe(o)})),this.observedElements.set(o,n))},t.prototype.ngOnDestroy=function(){var t=this;this.observer&&this.zone.runOutsideAngular((function(){t.observer.disconnect()})),this.observedElements=null},t.prototype.unobserve=function(t){var n=this,i=t instanceof e.ElementRef?t.nativeElement:t;this.observedElements.has(i)&&(this.observer&&this.zone.runOutsideAngular((function(){n.observer.unobserve(i)})),this.observedElements.delete(i))},t.prototype.handleResize=function(t){var e=this;t.forEach((function(t){var n=e.observedElements.get(t.target);n&&n(t)}))},t}();pt.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new pt(e.ɵɵinject(dt),e.ɵɵinject(e.NgZone))},token:pt,providedIn:"root"}),pt.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],pt.ctorParameters=function(){return[{type:dt},{type:e.NgZone}]};var ht=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(o,r){function a(t){try{c(i.next(t))}catch(t){r(t)}}function s(t){try{c(i.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((i=i.apply(t,e||[])).next())}))},ut=function(){function t(t,e,n,i,a,s,c,l){var d=this;this.injector=t,this.elementRef=e,this.renderer=n,this.zone=i,this.resizeObserverService=a,this.componentFactoryResolver=s,this.windowRef=c,this.platform=l,this.scrollY=Math.abs(this.windowRef.nativeWindow.scrollY),this.VIEWPORT_RESIZE_DEBOUNCE_TIME=100,this.keyboardVisible=!1,this.toolbarButtons=[],this.delayedClose=function(){},this.viewportResized=!1,this.ionModalDidPresent=new o.Subject,this.didPresent=this.ionModalDidPresent.toPromise(),this.ionModalWillDismiss=new o.Subject,this.willClose=this.ionModalWillDismiss.toPromise(),this.viewportResize=new o.Subject,this.viewportResize$=this.viewportResize.asObservable().pipe(r.debounceTime(this.VIEWPORT_RESIZE_DEBOUNCE_TIME)),this.destroy$=new o.Subject,this.willClose$=this.ionModalWillDismiss.pipe(r.first()),this.elementToParentMap={"KIRBY-MODAL-FOOTER":function(){return d.elementRef.nativeElement},"KIRBY-PAGE-TITLE":function(){return d.ionTitleElement.nativeElement},"KIRBY-PAGE-PROGRESS":function(){return d.ionToolbarElement.nativeElement}},this.setViewportHeight(),this.observeViewportResize()}return Object.defineProperty(t.prototype,"scrollDisabled",{set:function(t){this.ionContent.scrollY=!t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mutationObserver",{get:function(){return this._mutationObserver||(this._mutationObserver=this.createEmbeddedElementsMutationObserver()),this._mutationObserver},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"intersectionObserver",{get:function(){return this._intersectionObserver||(this._intersectionObserver=this.createModalWrapperIntersectionObserver()),this._intersectionObserver},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isDrawer",{get:function(){return"drawer"===this.config.flavor},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.ionModalElement=this.elementRef.nativeElement.closest("ion-modal"),this.initializeSizing(),this.initializeModalRoute(),this.listenForIonModalDidPresent(),this.listenForIonModalWillDismiss(),this.initializeResizeModalToModalWrapper(),this.componentPropsInjector=e.Injector.create({providers:[{provide:U,useValue:this.config.componentProps}],parent:this.injector})},t.prototype.initializeResizeModalToModalWrapper=function(){var t=this;"drawer"===this.config.flavor&&this.config.interactWithBackground&&o.merge(this.ionModalDidPresent,this.viewportResize$).pipe(r.takeUntil(this.destroy$)).subscribe((function(){setTimeout((function(){var e=t.elementRef.nativeElement.getBoundingClientRect(),n=t.windowRef.nativeWindow.document.documentElement.clientWidth-e.right;t.renderer.setStyle(t.ionModalElement,"top",e.top+"px"),t.renderer.setStyle(t.ionModalElement,"left",e.left+"px"),t.renderer.setStyle(t.ionModalElement,"right",n+"px")}))}))},t.prototype.initializeSizing=function(){"full-height"!==this.config.size&&(this.patchScrollElementSize(),this.observeHeaderResize(),this.observeModalFullHeight())},t.prototype.initializeModalRoute=function(){this.config.modalRoute&&(this.onSiblingModalRouteActivated(this.config.siblingModalRouteActivated$),this.routerOutlet.activateWith(this.config.modalRoute,this.componentFactoryResolver))},t.prototype.onSiblingModalRouteActivated=function(t){var e=this;t&&t.pipe(r.takeUntil(this.willClose$)).subscribe((function(t){e.routerOutlet.isActivated&&(e.mutationObserver.disconnect(),e.routerOutlet.deactivate(),e.clearEmbeddedElements()),e.routerOutlet.activateWith(t,e.componentFactoryResolver),e.checkForEmbeddedElements()}))},t.prototype.patchScrollElementSize=function(){var t=this;"part"in HTMLElement.prototype||this.ionContent.getScrollElement().then((function(e){t.renderer.setStyle(e,"height","100%"),t.renderer.setStyle(e,"position","relative"),"drawer"===t.config.flavor&&t.renderer.setStyle(e,"transition","padding-bottom "+tt.softKeyboardTransitionLeave)}))},t.prototype.observeModalFullHeight=function(){var t=this,e=this.elementRef.nativeElement.closest(".modal-wrapper");e&&this.didPresent.then((function(){t.intersectionObserver.observe(e)}))},t.prototype.ngAfterViewInit=function(){this.toolbarButtonsQuery&&(this.toolbarButtons=this.toolbarButtonsQuery.map((function(t){return t.nativeElement}))),this.checkForEmbeddedElements()},t.prototype.checkForEmbeddedElements=function(){this.moveEmbeddedElements(),this.observeEmbeddedElements()},t.prototype.observeHeaderResize=function(){var t=this;this.resizeObserverService.observe(this.ionHeaderElement.nativeElement,(function(e){var n=M(["--header-height",e.contentRect.height+"px"],2),i=n[0],o=n[1];t.setCssVar(t.elementRef.nativeElement,i,o)}))},t.prototype.moveEmbeddedElements=function(){var t=this,e=this.getEmbeddedComponentElement();e&&Object.entries(this.elementToParentMap).forEach((function(n){var i=M(n,2),o=i[0],r=i[1],a=e.querySelector(o);a&&t.moveChild(a,r())}))},t.prototype.listenForIonModalDidPresent=function(){var t=this;this.ionModalElement&&this.ionModalElement.addEventListener("ionModalDidPresent",(function(){t.ionModalDidPresent.next(),t.ionModalDidPresent.complete()}))},t.prototype.listenForIonModalWillDismiss=function(){var t=this;this.ionModalElement&&this.ionModalElement.addEventListener("ionModalWillDismiss",(function(){t.ionModalWillDismiss.next(),t.ionModalWillDismiss.complete()}))},t.prototype.scrollToTop=function(t){this.ionContent.scrollToTop(t||0)},t.prototype.scrollToBottom=function(t){this.ionContent.scrollToBottom(t||0)},t.prototype.close=function(e){return ht(this,void 0,void 0,(function(){var n=this;return P(this,(function(i){switch(i.label){case 0:return this.ionModalElement?this.keyboardVisible&&this.viewportResized?[3,2]:(clearTimeout(this.delayedCloseTimeoutId),[4,this.ionModalElement.dismiss(e)]):[2];case 1:return i.sent(),[2];case 2:return this.blurActiveElement(),[2,new Promise((function(i){n.delayedClose=function(){return ht(n,void 0,void 0,(function(){return P(this,(function(t){switch(t.label){case 0:return[4,this.ionModalElement.dismiss(e)];case 1:return t.sent(),i(),[2]}}))}))},n.delayedCloseTimeoutId=setTimeout(n.delayedClose,t.KEYBOARD_HIDE_DELAY_IN_MS)}))]}}))}))},t.prototype.onFocusChange=function(){this.windowRef.nativeWindow.scrollTo({top:this.scrollY})},t.prototype._onKeyboardShow=function(t){this.setKeyboardVisibility(t)},t.prototype._onKeyboardHide=function(){this.setKeyboardVisibility(0)},t.prototype.toggleContentMaxHeight=function(t){var e=this;if("modal"===this.config.flavor&&this.platform.isPhabletOrBigger()){var n="max-height",i=this.ionContentElement.nativeElement;this.zone.run((function(){if(t){var o=i.offsetHeight;e.renderer.setStyle(i,n,o+"px")}else e.renderer.removeStyle(i,n)}))}},t.prototype.setKeyboardVisibility=function(t){var e=t>0&&this.keyboardVisible,n=0===t&&!this.keyboardVisible;e||n||(this.keyboardVisible=t>0,this.toggleContentMaxHeight(this.keyboardVisible),this.setKeyboardOverlap(t))},t.prototype.getKeyboardOverlap=function(t,e){if(t<=0||!e)return 0;var n=Math.floor(this.windowRef.nativeWindow.innerHeight-e.getBoundingClientRect().bottom);return Math.max(t-n,0)},t.prototype.setCssVar=function(t,n,i){var o=this;this.zone.run((function(){return o.renderer.setStyle(t,n,i,e.RendererStyleFlags2.DashCase)}))},t.prototype.toggleCssClass=function(t,e,n){var i=this;this.zone.run((function(){return n?i.renderer.addClass(t,e):i.renderer.removeClass(t,e)}))},t.prototype.setKeyboardOverlap=function(t){this.toggleCssClass(this.elementRef.nativeElement,"keyboard-visible",t>0);var e=this.getKeyboardOverlap(t,this.elementRef.nativeElement),n=!1,i=this.getEmbeddedFooterElement();i&&(this.setCssVar(i,"--keyboard-offset",e+"px"),n=i.classList.contains("snap-to-keyboard"));var o=this.ionContentElement.nativeElement,r=n?e:this.getKeyboardOverlap(t,o);this.setCssVar(o,"--keyboard-offset",r+"px")},t.prototype.onHeaderTouchStart=function(t){this.keyboardVisible&&(this.toolbarButtons.some((function(e){return t.target instanceof HTMLElement&&(t.target===e||e.contains(t.target))}))||this.blurActiveElement())},t.prototype._onWindowResize=function(){this.setViewportHeight()},t.prototype.setViewportHeight=function(){var t=(.01*this.windowRef.nativeWindow.innerHeight).toFixed(2);this.setCssVar(this.elementRef.nativeElement,"--vh",t+"px")},t.prototype.observeViewportResize=function(){var t=this;this.resizeObserverService.observe(this.windowRef.nativeWindow.document.body,(function(e){return t.onViewportResize(e)}))},t.prototype.onViewportResize=function(t){this.initialViewportHeight?(this.viewportResized=t.contentRect.height!==this.initialViewportHeight,this.viewportResized||this.delayedCloseTimeoutId&&(clearTimeout(this.delayedCloseTimeoutId),this.delayedClose()),this.viewportResize.next()):this.initialViewportHeight=t.contentRect.height},t.prototype.blurActiveElement=function(){this.keyboardVisible&&document.activeElement instanceof HTMLElement&&document.activeElement.matches("input, textarea")&&document.activeElement.blur()},t.prototype.clearEmbeddedElements=function(){var t=this;Object.entries(this.elementToParentMap).forEach((function(e){var n=M(e,2),i=n[0],o=(0,n[1])().querySelector(":scope > "+i);t.removeChild(o)}))},t.prototype.getEmbeddedComponentElement=function(){return this.config.modalRoute?this.ionContentElement.nativeElement.lastElementChild:this.ionContentElement.nativeElement.firstElementChild},t.prototype.getEmbeddedFooterElement=function(){return this.elementRef.nativeElement.querySelector("kirby-modal-footer")},t.prototype.moveChild=function(t,e){var n=this;this.renderer.removeChild(t.parentElement,t),this.renderer.appendChild(e,t),"KIRBY-MODAL-FOOTER"===t.tagName&&this.resizeObserverService.observe(t,(function(t){var e=M(["--footer-height",Math.floor(t.contentRect.height)+"px"],2),i=e[0],o=e[1];n.setCssVar(n.elementRef.nativeElement,i,o)}))},t.prototype.removeChild=function(t){t&&this.renderer.removeChild(t.parentElement,t)},t.prototype.observeEmbeddedElements=function(){var t=this.getEmbeddedComponentElement();this.mutationObserver.observe(t,{childList:!0})},t.prototype.createEmbeddedElementsMutationObserver=function(){var t=this,e=Object.keys(this.elementToParentMap);return new MutationObserver((function(n){var i,o=n.filter((function(t){return"childList"===t.type})).map((function(t){return Array.from(t.addedNodes).filter((function(t){return e.includes(t.nodeName)}))}));(i=Array.prototype).concat.apply(i,B(o)).filter((function(t){return t instanceof HTMLElement})).forEach((function(e){var n=t.elementToParentMap[e.nodeName]();t.moveChild(e,n)}))}))},t.prototype.createModalWrapperIntersectionObserver=function(){var t=this,e=this.windowRef.nativeWindow.frameElement?this.windowRef.nativeWindow.document:void 0;return new IntersectionObserver((function(e){var n=e[0];n.intersectionRatio<1?t.renderer.addClass(n.target,"full-height"):t.renderer.removeClass(n.target,"full-height")}),{rootMargin:"0px 0px -1px 0px",root:e,threshold:[.99,1]})},t.prototype.ngOnDestroy=function(){this.routerOutlet.isActivated&&this.routerOutlet.deactivate(),this.mutationObserver.disconnect(),delete this._mutationObserver,this.intersectionObserver.disconnect(),delete this._intersectionObserver,this.resizeObserverService&&(this.resizeObserverService.unobserve(this.windowRef.nativeWindow.document.body),this.resizeObserverService.unobserve(this.ionHeaderElement.nativeElement),this.resizeObserverService.unobserve(this.getEmbeddedFooterElement())),this.destroy$.next(),this.destroy$.complete()},t}();ut.KEYBOARD_HIDE_DELAY_IN_MS=100,ut.decorators=[{type:e.Component,args:[{selector:"kirby-modal-wrapper",template:'<ion-header (touchstart)="onHeaderTouchStart($event)">\n <ion-toolbar>\n <ion-title>{{ config.title }}</ion-title>\n <ion-buttons slot="start" *ngIf="config.flavor === \'drawer\'">\n <ng-container *ngTemplateOutlet="closeButton; context: { icon: \'arrow-down\' }"></ng-container>\n </ion-buttons>\n <ion-buttons slot="end" *ngIf="config.flavor === \'modal\'">\n <ng-container *ngTemplateOutlet="closeButton; context: { icon: \'close\' }"></ng-container>\n </ion-buttons>\n <ion-buttons slot="end" *ngIf="config.flavor === \'drawer\' && config.drawerSupplementaryAction">\n <ng-container\n *ngTemplateOutlet="supplementaryButton; context: { btn: config.drawerSupplementaryAction }"\n ></ng-container>\n </ion-buttons>\n </ion-toolbar>\n</ion-header>\n\n<ion-content [scrollEvents]="true">\n <ng-container\n *ngComponentOutlet="config.component; injector: componentPropsInjector"\n ></ng-container>\n <router-outlet\n name="kirbyModalWrapperOutlet"\n [style.visibility]="config.modalRoute ? \'visible\' : \'hidden\'"\n ></router-outlet>\n</ion-content>\n\n<ng-template #closeButton let-icon="icon">\n <button kirby-button attentionLevel="4" size="sm" (click)="close()">\n <kirby-icon [name]="icon"></kirby-icon>\n </button>\n</ng-template>\n\n<ng-template #supplementaryButton let-btn="btn">\n <button kirby-button attentionLevel="2" size="sm" (click)="btn.action($event)">\n <kirby-icon [name]="btn.iconName"></kirby-icon>\n </button>\n</ng-template>\n',providers:[{provide:G,useExisting:ut}],styles:['@media (min-width:721px){:host-context(ion-modal:not(.kirby-modal-full-height)){padding-top:0;position:relative;contain:inherit;min-height:min(var(--min-height),calc(var(--vh100) - var(--kirby-modal-padding-top, 0px)))}:host-context(ion-modal:not(.kirby-modal-full-height)) ion-content{contain:content;max-height:calc(var(--vh100) - var(--kirby-modal-padding-top, 0px) - var(--header-height) - var(--footer-height))}:host-context(ion-modal:not(.kirby-modal-full-height)) ion-content::part(scroll){height:"100%";position:relative}:host-context(ion-modal:not(.kirby-modal-full-height)).drawer ion-content::part(scroll){transition:padding-bottom .15s ease-out}:host-context(ion-modal:not(.kirby-modal-full-height)).drawer.keyboard-visible ion-content::part(scroll){transition:padding-bottom .25s ease-out 1ms}}:host-context(ion-modal:not(.kirby-modal-full-height)).drawer{padding-top:0;position:relative;contain:inherit;min-height:min(var(--min-height),calc(var(--vh100) - var(--kirby-modal-padding-top, 0px)))}:host-context(ion-modal:not(.kirby-modal-full-height)).drawer ion-content{contain:content;max-height:calc(var(--vh100) - var(--kirby-modal-padding-top, 0px) - var(--header-height) - var(--footer-height))}:host-context(ion-modal:not(.kirby-modal-full-height)).drawer ion-content::part(scroll){height:"100%";position:relative}:host-context(ion-modal:not(.kirby-modal-full-height)).drawer.drawer ion-content::part(scroll){transition:padding-bottom .15s ease-out}:host-context(ion-modal:not(.kirby-modal-full-height)).drawer.drawer.keyboard-visible ion-content::part(scroll){transition:padding-bottom .25s ease-out 1ms}:host{--vh100:var(--vh,1vh) * 100;--header-height:0px;--footer-height:0px}:host.drawer ion-header ion-toolbar:first-of-type{padding-top:0}ion-header ion-toolbar{--padding-start:16px;--padding-end:16px;--padding-bottom:16px;--padding-top:16px;--border-width:0;--background:transparent;--color:var(--kirby-modal-color,var(--kirby-black))}ion-header ion-toolbar button{color:var(--color)}@media (min-width:721px){ion-header ion-toolbar{padding-top:8px}}:host-context(ion-modal.modal-card:not(.kirby-drawer)) ion-header ion-toolbar:first-of-type{padding-top:var(--kirby-safe-area-top,0)}@media (min-width:721px){:host-context(ion-modal.modal-card:not(.kirby-drawer)) ion-header ion-toolbar:first-of-type{padding-top:8px}}ion-title{box-sizing:border-box;padding-inline-start:calc(48px + var(--padding-start));padding-inline-end:calc(48px + var(--padding-end));font-size:22px;font-weight:700}:host(.drawer) ion-title{font-size:18px}ion-content{--background:transparent;--color:var(--kirby-modal-color,var(--kirby-black));display:flex;flex-direction:column;--padding-top:24px;--padding-bottom:24px;--padding-start:16px;--padding-end:16px}ion-content ::ng-deep>*{box-sizing:border-box;display:block}@media (min-width:721px){ion-content{--padding-start:56px;--padding-end:56px}}']}]}],ut.ctorParameters=function(){return[{type:e.Injector},{type:e.ElementRef},{type:e.Renderer2},{type:e.NgZone},{type:pt},{type:e.ComponentFactoryResolver},{type:H},{type:et}]},ut.propDecorators={config:[{type:e.Input}],toolbarButtonsQuery:[{type:e.ViewChildren,args:[lt,{read:e.ElementRef}]}],ionContent:[{type:e.ViewChild,args:[n.IonContent,{static:!0}]}],ionContentElement:[{type:e.ViewChild,args:[n.IonContent,{static:!0,read:e.ElementRef}]}],ionHeaderElement:[{type:e.ViewChild,args:[n.IonHeader,{static:!0,read:e.ElementRef}]}],ionToolbarElement:[{type:e.ViewChild,args:[n.IonToolbar,{static:!0,read:e.ElementRef}]}],ionTitleElement:[{type:e.ViewChild,args:[n.IonTitle,{static:!0,read:e.ElementRef}]}],routerOutlet:[{type:e.ViewChild,args:[i.RouterOutlet,{static:!0}]}],_isDrawer:[{type:e.HostBinding,args:["class.drawer"]}],onFocusChange:[{type:e.HostListener,args:["window:focus"]},{type:e.HostListener,args:["window:focusout"]}],_onKeyboardShow:[{type:e.HostListener,args:["window:ionKeyboardDidShow",["$event.detail.keyboardHeight"]]},{type:e.HostListener,args:["window:keyboardWillShow",["$event.keyboardHeight"]]}],_onKeyboardHide:[{type:e.HostListener,args:["window:ionKeyboardDidHide"]},{type:e.HostListener,args:["window:keyboardWillHide"]}],_onWindowResize:[{type:e.HostListener,args:["window:resize"]}]};var gt=function(){function e(e,n){this.animationCtrl=e,this.platform=n,this.easingEnter=t.KirbyAnimation.Easing.modal.enter,this.easingLeave=t.KirbyAnimation.Easing.modal.exit,this.duration=t.KirbyAnimation.Duration.LONG,this.SwipeToCloseDefaults={MIN_PRESENTING_SCALE:.93}}return e.prototype.enterAnimation=function(t){var e=this;return function(n,i){var o,r=e.animationCtrl.create().addElement(n.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),a=e.animationCtrl.create().addElement(n.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1}).fromTo("transform","translateY(100vh)","translateY(0vh)"),s=e.animationCtrl.create().addElement(n).easing(e.easingEnter).duration(e.duration).addAnimation(a);if(t&&(o=e.animationCtrl.create().addElement(t).fromTo("opacity","var(--backdrop-opacity)",.01)),i){var c=!e.platform.isPhabletOrBigger(),l="ION-MODAL"===i.tagName&&void 0!==i.presentingElement,d=e.animationCtrl.create().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"}),p=document.body;if(c){var h=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",u="translateY("+(l?"-10px":h)+") scale("+e.SwipeToCloseDefaults.MIN_PRESENTING_SCALE+")";d.afterStyles({transform:u}).beforeAddWrite((function(){return p.style.setProperty("background-color","black")})).addElement(i).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"},{offset:1,filter:"contrast(0.85)",transform:u,borderRadius:"10px 10px 0 0"}]),s.addAnimation(d)}else if(s.addAnimation(r),o&&s.addAnimation(o),l){u="translateY(-10px) scale("+(l?e.SwipeToCloseDefaults.MIN_PRESENTING_SCALE:1)+")";d.afterStyles({transform:u}).addElement(i.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:u}]);var g=e.animationCtrl.create().afterStyles({transform:u}).addElement(i.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:u}]);s.addAnimation([d,g])}else a.fromTo("opacity","0","1")}else s.addAnimation(r),o&&s.addAnimation(o);return s}},e.prototype.leaveAnimation=function(t){var e=this;return function(n,i){var o,r=e.animationCtrl.create().addElement(n.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),a=e.animationCtrl.create().addElement(n.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1}).fromTo("transform","translateY(0vh)","translateY(100vh)"),s=e.animationCtrl.create().addElement(n).easing(e.easingLeave).duration(e.duration).addAnimation(a);if(t&&(o=e.animationCtrl.create().addElement(t).fromTo("opacity",.01,"var(--backdrop-opacity)").afterStyles({opacity:"var(--backdrop-opacity)"})),i){var c=!e.platform.isPhabletOrBigger(),l="ION-MODAL"===i.tagName&&void 0!==i.presentingElement,d=e.animationCtrl.create().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish((function(t){1===t&&(i.style.setProperty("overflow",""),Array.from(p.querySelectorAll("ion-modal")).filter((function(t){return void 0!==t.presentingElement})).length<=1&&p.style.setProperty("background-color",""))})),p=document.body;if(c){var h=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",u="translateY("+(l?"-10px":h)+") scale("+e.SwipeToCloseDefaults.MIN_PRESENTING_SCALE+")";d.addElement(i).keyframes([{offset:0,filter:"contrast(0.85)",transform:u,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]),s.addAnimation(d)}else if(s.addAnimation(r),o&&s.addAnimation(o),l){u="translateY(-10px) scale("+(l?e.SwipeToCloseDefaults.MIN_PRESENTING_SCALE:1)+")";d.addElement(i.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:u},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);var g=e.animationCtrl.create().addElement(i.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:u},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);s.addAnimation([d,g])}else a.fromTo("opacity","1","0")}else s.addAnimation(r),o&&s.addAnimation(o);return s}},e}();gt.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new gt(e.ɵɵinject(n.AnimationController),e.ɵɵinject(et))},token:gt,providedIn:"root"}),gt.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],gt.ctorParameters=function(){return[{type:n.AnimationController},{type:et}]};var bt=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(o,r){function a(t){try{c(i.next(t))}catch(t){r(t)}}function s(t){try{c(i.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((i=i.apply(t,e||[])).next())}))},mt=function(){function t(t,e,n){this.ionicModalController=t,this.modalAnimationBuilder=e,this.windowRef=n}return t.prototype.showModalWindow=function(t){return bt(this,void 0,void 0,(function(){var e,n,i,o,r,a,s,c,l,d,p=this;return P(this,(function(h){switch(h.label){case 0:return t.flavor=t.flavor||"modal",[4,this.getPresentingElement(t.flavor)];case 1:return e=h.sent(),[4,this.ionicModalController.getTop()];case 2:return(i=h.sent())&&(n=i.querySelector("ion-backdrop")),o=this.modalAnimationBuilder.enterAnimation(n),r=this.modalAnimationBuilder.leaveAnimation(n),a="modal"===t.flavor?"medium":null,s=t.size||a,c="allow-background-scroll",l=[],t.cssClass&&(l=Array.isArray(t.cssClass)?t.cssClass:[t.cssClass]),t.interactWithBackground&&this.windowRef.nativeWindow.document.body.classList.add(c),[4,this.ionicModalController.create({component:"compact"===t.flavor?K:ut,cssClass:B(["kirby-overlay","kirby-modal","drawer"===t.flavor?"kirby-drawer":null,"compact"===t.flavor?"kirby-modal-compact":null,"kirby-modal-"+s,t.interactWithBackground?"interact-with-background":null],l),backdropDismiss:"compact"!==t.flavor&&!t.interactWithBackground,showBackdrop:!t.interactWithBackground,componentProps:{config:t},swipeToClose:"compact"!=t.flavor,presentingElement:e,keyboardClose:!1,enterAnimation:o,leaveAnimation:r})];case 3:return d=h.sent(),t.interactWithBackground&&d.onDidDismiss().then((function(){p.windowRef.nativeWindow.document.body.classList.remove(c)})),[4,d.present()];case 4:return h.sent(),[2,{dismiss:d.dismiss.bind(d),onWillDismiss:d.onWillDismiss(),onDidDismiss:d.onDidDismiss()}]}}))}))},t.prototype.registerPresentingElement=function(e){t.presentingElement=e},t.prototype.getPresentingElement=function(e){return bt(this,void 0,void 0,(function(){var n,i;return P(this,(function(o){switch(o.label){case 0:return n=void 0,e&&"modal"!==e?[3,2]:[4,this.ionicModalController.getTop()];case 1:(i=o.sent())?i.classList.contains("kirby-drawer")||i.classList.contains("kirby-modal-compact")||(n=i):n=t.presentingElement,o.label=2;case 2:return[2,n]}}))}))},t.prototype.scrollToTop=function(t,e){return bt(this,void 0,void 0,(function(){var n;return P(this,(function(i){switch(i.label){case 0:return[4,this.ionicModalController.getTop()];case 1:if(!((n=i.sent())&&n.component instanceof ut))throw new Error(t);return n.component.scrollToTop(e),[2]}}))}))},t.prototype.scrollToBottom=function(t,e){return bt(this,void 0,void 0,(function(){var n;return P(this,(function(i){switch(i.label){case 0:return[4,this.ionicModalController.getTop()];case 1:if(!((n=i.sent())&&n.component instanceof ut))throw new Error(t);return n.component.scrollToBottom(e),[2]}}))}))},t}();mt.presentingElement=void 0,mt.decorators=[{type:e.Injectable}],mt.ctorParameters=function(){return[{type:n.ModalController},{type:gt},{type:H}]};var yt=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(o,r){function a(t){try{c(i.next(t))}catch(t){r(t)}}function s(t){try{c(i.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((i=i.apply(t,e||[])).next())}))},ft=function(){function t(t,e,n,i,r){this.modalHelper=t,this.actionSheetHelper=e,this.alertHelper=n,this.modalNavigationService=i,this.routeConfig=r,this.overlays=[],this.noOverlayRegisteredErrorMessage="No modal overlays are currently registered",this.destroy$=new o.Subject}return t.prototype.initialize=function(t){return yt(this,void 0,void 0,(function(){var e;return P(this,(function(n){switch(n.label){case 0:return[4,this.modalNavigationService.getModalNavigation(this.routeConfig,t)];case 1:return e=n.sent(),this.onModalRouteActivated(e.activated$),this.onModalRouteDeactivated(e.deactivated$),[2]}}))}))},t.prototype.onModalRouteActivated=function(t){var e=this,n=function(){e.modalNavigationService.navigateOutOfModalOutlet()},i=t.pipe(r.filter((function(t){return!t.isNewModal})),r.map((function(t){return t.route})));t.pipe(r.takeUntil(this.destroy$),r.filter((function(){return 0===e.overlays.length}))).subscribe((function(t){return yt(e,void 0,void 0,(function(){return P(this,(function(e){switch(e.label){case 0:return t.isNewModal?[4,this.showModalRoute(t.route,i,n)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))}))},t.prototype.onModalRouteDeactivated=function(t){var e=this;t.pipe(r.takeUntil(this.destroy$),r.filter((function(){return e.overlays.length>0}))).subscribe((function(){return yt(e,void 0,void 0,(function(){return P(this,(function(t){switch(t.label){case 0:return[4,this.hideAll()];case 1:return t.sent(),[2]}}))}))}))},t.prototype.showModal=function(t,e){return yt(this,void 0,void 0,(function(){var n=this;return P(this,(function(i){switch(i.label){case 0:return t.hasOwnProperty("dim")&&console.warn("ModalConfig.dim is deprecated - please remove from your configuration."),[4,this.showAndRegisterOverlay((function(){return n.modalHelper.showModalWindow(t)}),e)];case 1:return i.sent(),[2]}}))}))},t.prototype.navigateToModal=function(t,e){return yt(this,void 0,void 0,(function(){return P(this,(function(n){return[2,this.modalNavigationService.navigateToModal(t,e)]}))}))},t.prototype.navigateWithinModal=function(t,e){return yt(this,void 0,void 0,(function(){return P(this,(function(n){return[2,this.modalNavigationService.navigateWithinModal(t,e)]}))}))},t.prototype.showModalRoute=function(t,e,n){return yt(this,void 0,void 0,(function(){var i,o=this;return P(this,(function(r){switch(r.label){case 0:return i={component:null,modalRoute:t,siblingModalRouteActivated$:e,flavor:"modal"},[4,this.showAndRegisterOverlay((function(){return o.modalHelper.showModalWindow(i)}),null,n)];case 1:return r.sent(),[2]}}))}))},t.prototype.showActionSheet=function(t,e){return yt(this,void 0,void 0,(function(){var n=this;return P(this,(function(i){switch(i.label){case 0:return[4,this.showAndRegisterOverlay((function(){return n.actionSheetHelper.showActionSheet(t)}),e)];case 1:return i.sent(),[2]}}))}))},t.prototype.showAlert=function(t,e){return yt(this,void 0,void 0,(function(){var n=this;return P(this,(function(i){switch(i.label){case 0:return[4,this.showAndRegisterOverlay((function(){return n.alertHelper.showAlert(t)}),e)];case 1:return i.sent(),[2]}}))}))},t.prototype.showAndRegisterOverlay=function(t,e,n){return yt(this,void 0,void 0,(function(){var i,o=this;return P(this,(function(r){switch(r.label){case 0:return[4,t()];case 1:return(i=r.sent())?(this.overlays.push(i),"function"==typeof n&&i.onWillDismiss.then((function(t){return n(t.data)})),i.onDidDismiss.then((function(t){o.overlays.pop(),"function"==typeof e&&e(t.data)})),[2]):[2]}}))}))},t.prototype.registerPresentingElement=function(t){this.modalHelper.registerPresentingElement(t)},t.prototype.hideTopmost=function(t){return yt(this,void 0,void 0,(function(){var e;return P(this,(function(n){if(!(e=this.overlays[this.overlays.length-1]))throw new Error(this.noOverlayRegisteredErrorMessage);return[2,e.dismiss(t)]}))}))},t.prototype.scrollToTop=function(t){if(console.warn("ModalController.scrollToTop is deprecated - please inject Modal in embedded component and use Modal.scrollToTop instead."),!this.overlays[this.overlays.length-1])throw new Error(this.noOverlayRegisteredErrorMessage);this.modalHelper.scrollToTop(this.noOverlayRegisteredErrorMessage,t)},t.prototype.scrollToBottom=function(t){if(console.warn("ModalController.scrollToBottom is deprecated - please inject Modal in embedded component and use Modal.scrollToBottom instead."),!this.overlays[this.overlays.length-1])throw new Error(this.noOverlayRegisteredErrorMessage);this.modalHelper.scrollToBottom(this.noOverlayRegisteredErrorMessage,t)},t.prototype.hideAll=function(){return yt(this,void 0,void 0,(function(){var t=this;return P(this,(function(e){switch(e.label){case 0:return[4,Promise.all(this.overlays.map((function(e){return yt(t,void 0,void 0,(function(){return P(this,(function(t){switch(t.label){case 0:return[4,e.dismiss()];case 1:return t.sent(),[2]}}))}))})))];case 1:return e.sent(),[2]}}))}))},t.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},t}();ft.decorators=[{type:e.Injectable}],ft.ctorParameters=function(){return[{type:mt},{type:j},{type:W},{type:$},{type:Array,decorators:[{type:e.Optional},{type:e.Inject,args:[i.ROUTES]}]}]};var vt=function(){function t(t){this.modalController=t}return t.prototype.ngAfterContentInit=function(){var t=this;this.routerOutlet&&this.routerOutlet.nativeElement&&this.modalController.registerPresentingElement(this.routerOutlet.nativeElement),this.ionAppElement.nativeElement.componentOnReady().then((function(){return t.registerInputs()}))},t.prototype.registerInputs=function(){setTimeout((function(){document.querySelectorAll("kirby-form-field").forEach((function(t){t.dispatchEvent(new CustomEvent("kirbyRegisterFormField"))}))}),250)},t}();vt.decorators=[{type:e.Component,args:[{selector:"kirby-app",template:"<ion-app>\n <ng-content></ng-content>\n</ion-app>\n",styles:[":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:size layout style;z-index:0;overflow:hidden}"]}]}],vt.ctorParameters=function(){return[{type:ft}]},vt.propDecorators={ionAppElement:[{type:e.ViewChild,args:[n.IonApp,{static:!0,read:e.ElementRef}]}],routerOutlet:[{type:e.ContentChild,args:[_,{static:!1,read:e.ElementRef}]}]};var kt,xt=function(){};xt.decorators=[{type:e.NgModule,args:[{declarations:[vt],imports:[a.CommonModule,n.IonicModule],exports:[vt]}]}],(kt=t.AvatarSize||(t.AvatarSize={})).XS="xs",kt.SM="sm",kt.MD="md",kt.LG="lg";var wt=function(){function e(){this.size=t.AvatarSize.SM}return Object.defineProperty(e.prototype,"_cssClass",{get:function(){return[this.themeColor,this.size].filter((function(t){return!!t}))},enumerable:!1,configurable:!0}),e}();wt.decorators=[{type:e.Component,args:[{selector:"kirby-avatar",template:'<div class="avatar" [ngClass]="{ shadow: shadow, overlay: overlay }">\n <img *ngIf="imageSrc" [src]="imageSrc" [attr.alt]="altText" />\n <ng-content *ngIf="!text" select="kirby-icon"></ng-content>\n <span class="avatar-text" *ngIf="text">{{ text }}</span>\n</div>\n<ng-content select="kirby-badge"></ng-content>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[':host{--kirby-badge-elevation:0 5px 10px -10px rgba(28,28,28,0.3),0 0 5px 0 rgba(28,28,28,0.08);--kirby-badge-position:absolute;--kirby-badge-right:-2px;--kirby-badge-top:-2px;--kirby-badge-zindex:2}.avatar,:host{position:relative}.avatar{width:40px;height:40px;border-radius:50%;overflow:hidden;z-index:1;display:flex;justify-content:center;align-items:center;background-color:var(--kirby-white);color:var(--kirby-light-contrast);--kirby-icon-font-size:24px}.avatar.shadow{box-shadow:0 2px 4px 2px hsla(0,0%,44.3%,.4)}.avatar.overlay:before{content:"";background-color:var(--kirby-black);opacity:.05;width:100%;height:100%;position:absolute;top:0;left:0}.avatar img{object-fit:cover;max-width:100%;height:100%;width:100%}:host(.xs) .avatar{width:32px;height:32px;border-radius:8px}:host(.xs) .avatar .avatar-text{font-size:14px}:host(.sm) .avatar,:host-context(kirby-progress-circle.sm) .avatar{width:40px;height:40px}:host(.sm) .avatar .avatar-text,:host-context(kirby-progress-circle.sm) .avatar .avatar-text{font-size:14px}:host(.md),:host-context(kirby-progress-circle.md){--kirby-badge-right:0px;--kirby-badge-top:0px}:host(.md) .avatar,:host-context(kirby-progress-circle.md) .avatar{width:56px;height:56px;--kirby-icon-font-size:32px}:host(.md) .avatar .avatar-text,:host-context(kirby-progress-circle.md) .avatar .avatar-text{font-size:18px}:host(.lg),:host-context(kirby-progress-circle.lg){--kirby-badge-right:6px;--kirby-badge-top:6px}:host(.lg) .avatar,:host-context(kirby-progress-circle.lg) .avatar{width:96px;height:96px;--kirby-icon-font-size:56px}:host(.lg) .avatar .avatar-text,:host-context(kirby-progress-circle.lg) .avatar .avatar-text{font-size:32px}:host-context(kirby-item)[slot=start]{margin-inline-end:12px}:host-context(kirby-item)[slot=start].xs{margin-inline-end:16px}:host(.primary) .avatar{background-color:var(--kirby-primary);color:var(--kirby-primary-contrast)}:host(.secondary) .avatar{background-color:var(--kirby-secondary);color:var(--kirby-secondary-contrast)}:host(.tertiary) .avatar{background-color:var(--kirby-tertiary);color:var(--kirby-tertiary-contrast)}:host(.success) .avatar{background-color:var(--kirby-success);color:var(--kirby-success-contrast)}:host(.warning) .avatar{background-color:var(--kirby-warning);color:var(--kirby-warning-contrast)}:host(.danger) .avatar{background-color:var(--kirby-danger);color:var(--kirby-danger-contrast)}:host(.light) .avatar{background-color:var(--kirby-light);color:var(--kirby-light-contrast)}:host(.medium) .avatar{background-color:var(--kirby-medium);color:var(--kirby-medium-contrast)}:host(.dark) .avatar{background-color:var(--kirby-dark);color:var(--kirby-dark-contrast)}:host(.white) .avatar{background-color:var(--kirby-white);color:var(--kirby-white-contrast)}:host(.semi-light) .avatar{background-color:var(--kirby-semi-light);color:var(--kirby-semi-light-contrast)}']}]}],wt.propDecorators={imageSrc:[{type:e.Input}],altText:[{type:e.Input}],shadow:[{type:e.Input}],text:[{type:e.Input}],overlay:[{type:e.Input}],size:[{type:e.Input}],themeColor:[{type:e.Input}],_cssClass:[{type:e.HostBinding,args:["class"]}]};var Ct=function(){};Ct.decorators=[{type:e.Component,args:[{selector:"kirby-badge",template:'<ion-badge color="none">\n <ng-content *ngIf="!text"></ng-content>\n <ng-container *ngIf="text">{{ text }}</ng-container>\n</ion-badge>\n',styles:[":root{--kirby-badge-elevation:none;--kirby-badge-position:relative;--kirby-badge-left:0;--kirby-badge-right:0;--kirby-badge-top:0;--kirby-badge-zindex:none}:host{--kirby-badge-background-color:var(--kirby-white);--kirby-badge-color:var(--kirby-white-contrast);--ion-color-base:var(--kirby-badge-background-color);--ion-color-contrast:var(--kirby-badge-color);position:var(--kirby-badge-position);left:var(--kirby-badge-left);right:var(--kirby-badge-right);top:var(--kirby-badge-top);z-index:var(--kirby-badge-zindex);font-size:10px;line-height:1}:host ion-badge{--padding-top:3px;--padding-end:5px;--padding-bottom:3px;--padding-start:5px;box-sizing:border-box;border-radius:8px;min-width:16px;min-height:16px;font-size:inherit;position:relative;box-shadow:var(--kirby-badge-elevation)}:host ::ng-deep kirby-icon{--kirby-icon-font-size:16px;position:absolute;top:0;left:0}:host(.success){--kirby-badge-background-color:var(--kirby-success);--kirby-badge-color:var(--kirby-success-contrast)}:host(.warning){--kirby-badge-background-color:var(--kirby-warning);--kirby-badge-color:var(--kirby-warning-contrast)}:host(.danger){--kirby-badge-background-color:var(--kirby-danger);--kirby-badge-color:var(--kirby-danger-contrast);--kirby-badge-color:var(--kirby-white)}:host(.white){--kirby-badge-background-color:var(--kirby-white);--kirby-badge-color:var(--kirby-white-contrast)}"]}]}],Ct.propDecorators={text:[{type:e.Input}]};var It=function(){function t(t,e,n){this.elementRef=t,this.resizeObserverService=e,this.renderer=n,this.sizesSortedByBreakpoint=this.sortSizesByBreakpoint({small:360,medium:720,large:1024}),this.flat=!1,this.highlighted=!1}return Object.defineProperty(t.prototype,"sizes",{set:function(t){"string"==typeof t&&console.error('Sizes property cannot be a string. Please ensure the size property is bound as an expression:\n[sizes]="{...}"'),this.sizesSortedByBreakpoint=this.sortSizesByBreakpoint(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mode",{set:function(t){this.flat="flat"===t,this.highlighted="highlighted"===t},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.resizeObserverService.observe(this.elementRef,(function(e){return t.handleResize(e)}))},t.prototype.ngOnDestroy=function(){this.resizeObserverService.unobserve(this.elementRef)},t.prototype.sortSizesByBreakpoint=function(t){return Object.entries(t).sort(this.compareSizesByBreakpoint)},t.prototype.compareSizesByBreakpoint=function(t,e){return t[1]>e[1]?1:e[1]>t[1]?-1:0},t.prototype.handleResize=function(t){var e=this,n="size",i=this.sizesSortedByBreakpoint[0][0],o=this.sizesSortedByBreakpoint[0][1];t.contentRect.width<o?this.renderer.setAttribute(t.target,n,"<"+i):this.sizesSortedByBreakpoint.forEach((function(i){var o=M(i,2),r=o[0],a=o[1];t.contentRect.width>=a&&e.renderer.setAttribute(t.target,n,r)}))},t}();It.decorators=[{type:e.Component,args:[{selector:"kirby-card",template:'<ng-content select="kirby-card-header"></ng-content>\n<div class="content-wrapper" [class.padding]="hasPadding">\n <ng-content></ng-content>\n</div>\n<ng-content select="kirby-card-footer"></ng-content>\n',styles:[":host{--kirby-card-main-background-color:var(--kirby-white);--kirby-card-main-color:var(--kirby-white-contrast);--kirby-card-footer-background-color:var(--kirby-white);--kirby-card-footer-color:var(--kirby-white-contrast);border-radius:16px;box-shadow:0 5px 10px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);color:var(--kirby-card-main-color);background-color:var(--kirby-card-main-background-color);display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;position:relative;z-index:1}:host .content-wrapper.padding{padding:16px}:host.highlighted{box-shadow:0 10px 15px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08)}:host.flat{box-shadow:none}:host-context(.swiper-slide-active){box-shadow:0 10px 15px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);transition:all .5s;transform:translateY(-3px)}:host(.primary){--kirby-card-main-background-color:var(--kirby-primary);--kirby-card-main-color:var(--kirby-primary-contrast)}:host(.secondary){--kirby-card-main-background-color:var(--kirby-secondary);--kirby-card-main-color:var(--kirby-secondary-contrast)}:host(.tertiary){--kirby-card-main-background-color:var(--kirby-tertiary);--kirby-card-main-color:var(--kirby-tertiary-contrast)}:host(.success){--kirby-card-main-background-color:var(--kirby-success);--kirby-card-main-color:var(--kirby-success-contrast)}:host(.warning){--kirby-card-main-background-color:var(--kirby-warning);--kirby-card-main-color:var(--kirby-warning-contrast)}:host(.danger){--kirby-card-main-background-color:var(--kirby-danger);--kirby-card-main-color:var(--kirby-danger-contrast)}:host(.light){--kirby-card-main-background-color:var(--kirby-light);--kirby-card-main-color:var(--kirby-light-contrast)}:host(.medium){--kirby-card-main-background-color:var(--kirby-medium);--kirby-card-main-color:var(--kirby-medium-contrast)}:host(.dark){--kirby-card-main-background-color:var(--kirby-dark);--kirby-card-main-color:var(--kirby-dark-contrast)}"]}]}],It.ctorParameters=function(){return[{type:e.ElementRef},{type:pt},{type:e.Renderer2}]},It.propDecorators={title:[{type:e.Input}],subtitle:[{type:e.Input}],hasPadding:[{type:e.Input}],sizes:[{type:e.Input}],flat:[{type:e.HostBinding,args:["class.flat"]}],highlighted:[{type:e.HostBinding,args:["class.highlighted"]}],mode:[{type:e.Input}]};var St=function(){function t(){}return t.prototype.ngOnInit=function(){},t}();St.decorators=[{type:e.Component,args:[{selector:"kirby-card-footer",template:"<footer>\n <ng-content></ng-content>\n</footer>\n",styles:[":host{display:block;padding:16px;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0)}footer{display:inherit;flex:inherit}"]}]}],St.ctorParameters=function(){return[]};var Tt=function(){this.flagged=null};function Ot(t,e,n){void 0===n&&(n={mergeArrays:!1});var i=function(t){return t&&"object"==typeof t};return[t,e].reduce((function(t,e){return Object.keys(e).forEach((function(o){var r=t[o],a=e[o];Array.isArray(r)&&Array.isArray(a)?t[o]=n.mergeArrays?r.concat(a):a:i(r)&&i(a)?t[o]=Ot(r,a):t[o]=a})),t}),{})}function Et(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.filter((function(t){return void 0!==t}));return n.reduce((function(t,e){return Ot(t,e)}))}Tt.decorators=[{type:e.Component,args:[{selector:"kirby-card-header",template:'<header>\n <h2 *ngIf="title" [class.bold]="isTitleBold">{{ title }}</h2>\n <h4 *ngIf="subtitle">{{ subtitle }}</h4>\n <ng-content></ng-content>\n</header>\n',styles:[":host{display:block;border-top-left-radius:16px;border-top-right-radius:16px;text-align:center;padding:var(--kirby_internal_card-header-padding,16px);color:var(--kirby-card-header-color);background-color:var(--kirby-card-header-background-color)}h2{font-size:16px;font-weight:400;margin:0 0 var(--kirby_internal_card-header-margin-bottom,8px);line-height:var(--kirby_internal_card-header-line-height,28px)}h2.bold{font-weight:700}h4{font-size:14px;margin:0;font-weight:400}:host(.danger){--kirby-card-header-background-color:var(--kirby-danger);--kirby-card-header-color:var(--kirby-danger-contrast)}:host(.warning){--kirby-card-header-background-color:var(--kirby-warning);--kirby-card-header-color:var(--kirby-warning-contrast)}:host(.success){--kirby-card-header-background-color:var(--kirby-success);--kirby-card-header-color:var(--kirby-success-contrast)}:host(.info){--kirby-card-header-background-color:var(--kirby-semi-light);--kirby-card-header-color:var(--kirby-semi-light-contrast)}:host(.danger,.warning,.success,.info){--kirby_internal_card-header-padding:2px 8px}:host(.danger,.warning,.success,.info) h2{--kirby_internal_card-header-line-height:24px;--kirby_internal_card-header-margin-bottom:0}"]}]}],Tt.propDecorators={title:[{type:e.Input}],subtitle:[{type:e.Input}],isTitleBold:[{type:e.Input}],flagged:[{type:e.HostBinding,args:["class"]},{type:e.Input}]},require("highcharts/highcharts-more")(S),require("highcharts/modules/solid-gauge")(S),require("highcharts/modules/broken-axis")(S);var Dt,Rt=function(){function t(){}return t.prototype.init=function(t){this.chartContainer=t},t.prototype.renderChart=function(t){this.chartContainer&&t.chart&&s.chart(this.chartContainer.nativeElement,t)},t}();Rt.decorators=[{type:e.Injectable}],(Dt=t.ChartDeprecatedType||(t.ChartDeprecatedType={})).PIE="pie",Dt.DONUT="donut",Dt.AREASPLINE="areaspline",Dt.TIMESERIES="timeseries",Dt.ACTIVITYGAUGE="activitygauge",Dt.BAR="bar",Dt.COLUMN="column",Dt.CUSTOM="custom";var _t=new e.InjectionToken("ActivityGaugeOptions"),Pt={chart:{style:{fontFamily:"Roboto, sans-serif",fontWeight:"300"},backgroundColor:"transparent",type:"solidgauge",height:"110%"},accessibility:{description:""},title:{align:"center",verticalAlign:"middle",text:"",y:0,floating:!1,style:{fontSize:"30px",color:"#fff",fontWeight:"bold"}},subtitle:{text:"",align:"center",y:25,verticalAlign:"middle",style:{color:"#fff",fontSize:"14px",fontWeight:"normal"}},credits:{enabled:!1},tooltip:{enabled:!1,animation:!1},pane:{startAngle:0,endAngle:360,background:[{backgroundColor:{linearGradient:{x1:0,x2:0,y1:0,y2:1},stops:[[1,"rgba(255, 255, 255, 0.3)"],[0,"rgba(255, 255, 255, 0.3)"]]},outerRadius:"112%",innerRadius:"88%",borderWidth:0}]},yAxis:{min:0,max:100,lineWidth:0,tickPositions:[]},plotOptions:{solidgauge:{dataLabels:{enabled:!1},linecap:"round",stickyTracking:!1,rounded:!0}},series:[{type:"solidgauge"}]},At=new e.InjectionToken("AreasplineOptions"),Mt={chart:{type:"areaspline",borderWidth:0,plotBorderWidth:0,margin:0,marginTop:48},accessibility:{description:""},title:{text:""},credits:{enabled:!1},exporting:{enabled:!1},tooltip:{enabled:!0,animation:!1,shape:"square",borderColor:"#FFFFFF",shadow:!1,backgroundColor:"#FFFFFF",style:{fontSize:"1.25rem"},formatter:function(){return String(this.y)},positioner:function(){return{x:this.chart.plotSizeX/2-this.label.width/2,y:0}}},xAxis:{visible:!1,minPadding:0,maxPadding:0,crosshair:{zIndex:3,width:1,color:"#177E17"}},yAxis:{visible:!1,endOnTick:!1,startOnTick:!1},plotOptions:{areaspline:{shadow:!0,showInLegend:!1,fillColor:{linearGradient:{x1:0,x2:0,y1:0,y2:.8},stops:[[0,"#C9E5C9"],[1,"#FFFFFF"]]},lineColor:"#177E17",lineWidth:2},series:{states:{hover:{halo:{size:0}}},marker:{enabled:!1,states:{hover:{enabled:!0,fillColor:"#177E17"}}}}},series:[{type:"areaspline"}]},Bt=tt.getColor;function zt(){for(var t=this.series,e=0,n=t.length;e<n;++e)for(var i=t[e].data,o=0,r=i.length;o<r;++o)i[o].graphic&&(i[o].graphic.element.style.stroke=Bt("background-color").value)}var Lt={chart:{type:"bar",animation:{duration:150},backgroundColor:"transparent",events:{load:zt,redraw:zt}},accessibility:{description:"Bar chart"},credits:{enabled:!1},title:{text:""},xAxis:{labels:{style:{fontSize:(0,tt.fontSize)("s"),fontFamily:"Roboto",color:Bt("black").value}},min:0,lineColor:"transparent"},yAxis:{title:{text:""},labels:{enabled:!1},min:0,lineWidth:0,minorGridLineWidth:0,gridLineColor:"transparent",minorTickLength:0,tickLength:0,maxPadding:0,endOnTick:!1,showLastLabel:!1,showFirstLabel:!1},plotOptions:{bar:{events:{}},series:{color:Bt("secondary").value,stacking:"normal",states:{hover:{enabled:!1},inactive:{opacity:1}}}},tooltip:{enabled:!1},legend:{enabled:!1}},jt=tt.getColor;function Ht(){for(var t=this.series,e=0,n=t.length;e<n;++e)for(var i=t[e].data,o=0,r=i.length;o<r;++o)i[o].graphic&&(i[o].graphic.element.style.stroke=jt("secondary").value)}var Ft={chart:{animation:{duration:500},backgroundColor:"transparent",type:"column",events:{load:Ht,redraw:Ht}},title:{text:""},accessibility:{description:"Column chart"},xAxis:{labels:{style:{fontSize:(0,tt.fontSize)("xxs"),fontFamily:"Roboto",color:jt("black").value}},lineWidth:0,minorGridLineWidth:0,lineColor:"transparent",minorTickLength:0,tickLength:0},yAxis:{title:{text:""},labels:{enabled:!1},min:0,lineWidth:0,minorGridLineWidth:0,gridLineColor:"transparent",minorTickLength:0,tickLength:0,showLastLabel:!1,showFirstLabel:!1},credits:{enabled:!1},plotOptions:{column:{stacking:"normal"},series:{color:jt("secondary").value,zIndex:10,states:{hover:{enabled:!1},inactive:{opacity:1}}},line:{className:"avg-line",marker:{enabled:!1},allowPointSelect:!1}},tooltip:{enabled:!1},legend:{enabled:!1}},Nt=new e.InjectionToken("DonutOptions"),Wt={chart:{style:{fontFamily:"Roboto",fontWeight:"300"},backgroundColor:"transparent",type:""},accessibility:{description:"Donut chart"},title:{text:""},tooltip:{enabled:!1,animation:!1},legend:{layout:"vertical",symbolRadius:0,itemStyle:{fontSize:".875rem"}},plotOptions:{pie:{colors:["#015132","#B2D1BF","#AABC08","#1FA05A","yellowgreen"],allowPointSelect:!1,cursor:"pointer",showInLegend:!0,borderColor:null,dataLabels:{format:"{point.label}",enabled:!0,connectorWidth:0,distance:5,style:{fontSize:"1rem",fontWeight:"200"}},point:{events:{legendItemClick:function(){return!1}}},states:{hover:{enabled:!1}}},series:{animation:!0,dataLabels:{},states:{hover:{enabled:!1},inactive:{opacity:1}}}},series:[{name:"",type:"pie"}],credits:{enabled:!1},exporting:{enabled:!1},responsive:{rules:[{condition:{minWidth:640},chartOptions:{legend:{layout:"vertical",align:"right",verticalAlign:"middle",itemMarginTop:12,symbolRadius:0,symbolWidth:14,symbolHeight:14,x:-100}}},{condition:{minWidth:0},chartOptions:{legend:{symbolRadius:0}}}]}},Vt=new e.InjectionToken("TimeSeriesOptions"),$t={chart:{backgroundColor:{linearGradient:{x1:0,x2:0,y1:0,y2:3},stops:[[0,"#F6F6F6"],[1,"#808080"]]},zoomType:"x",type:"timeseries",borderWidth:0,plotBorderWidth:0,margin:0,marginTop:48},accessibility:{description:""},title:{text:""},subtitle:{text:""},tooltip:{shadow:!1,formatter:function(){return s.dateFormat("%e. %b",new Date(this.x))+".<br/><b>"+this.y+"</b>"},positioner:function(t,e,n){return{x:n.x,y:0}},borderWidth:0},xAxis:{visible:!1,lineColor:"#FFFFFF",tickColor:"#FFFFFF",labels:{style:{color:"white"}},opposite:!0,crosshair:{zIndex:3,width:1,color:"#00E89A"},type:"datetime",tickInterval:1},yAxis:{visible:!1},legend:{enabled:!1},plotOptions:{area:{fillColor:"#01352C",marker:{lineWidth:14,lineColor:"rgba(255,255,255,0.2)",radius:6,fillColor:"#00E89A"},lineColor:"#01352C",lineWidth:1,states:{hover:{lineWidth:1}},threshold:null},series:{marker:{enabledThreshold:50}}},series:[{type:"area",name:"USD to EUR"}]},Gt=Wt,Ut=Mt,Yt=$t,Kt=Pt,qt=function(){function e(e,n,i,o,r,a){this.chartHelper=e,this.hostElement=n,this.donutOptions=i,this.areasplineOptions=o,this.timeSeriesOptions=r,this.activitygaugeOptions=a,this.data=[],this.categories=[],this.breaks=[],this.height=300,this.type=t.ChartDeprecatedType.PIE,this.description="",this.showDataLabels=!0,this.mergedOptions={accessibility:{}},this.chartHelper.init(this.hostElement)}return e.prototype.ngOnChanges=function(t){t.type&&this.setupChartType(),this.updateProperties(),this.chartHelper.renderChart(this.mergedOptions)},e.prototype.setupChartType=function(){switch(this.type){case t.ChartDeprecatedType.DONUT:this.mergedOptions=this.donutOptions,this.mergedOptions.chart.type=t.ChartDeprecatedType.PIE,this.mergedOptions.plotOptions.pie.innerSize="50%";break;case t.ChartDeprecatedType.PIE:this.mergedOptions=this.donutOptions,this.mergedOptions.chart.type=this.type,this.mergedOptions.plotOptions.pie.innerSize="0%";break;case t.ChartDeprecatedType.AREASPLINE:this.mergedOptions=this.areasplineOptions,this.mergedOptions.chart.type=this.type;break;case t.ChartDeprecatedType.TIMESERIES:this.mergedOptions=this.timeSeriesOptions,this.mergedOptions.chart.type=this.type;break;case t.ChartDeprecatedType.ACTIVITYGAUGE:this.mergedOptions=this.activitygaugeOptions,this.mergedOptions.chart.type=this.type;break;case t.ChartDeprecatedType.COLUMN:this.mergedOptions=Ft,this.mergedOptions.chart.type=this.type;break;case t.ChartDeprecatedType.BAR:this.mergedOptions=Lt,this.mergedOptions.chart.type=this.type}},e.prototype.updateProperties=function(){switch(this.mergedOptions.chart.height=this.height,this.mergedOptions.accessibility.description=this.description,this.mergedOptions.chart.type){case t.ChartDeprecatedType.PIE:case t.ChartDeprecatedType.DONUT:this.setPieInput();break;case t.ChartDeprecatedType.AREASPLINE:this.setSeries("areaspline");break;case t.ChartDeprecatedType.TIMESERIES:this.setTimeseriesInput();break;case t.ChartDeprecatedType.ACTIVITYGAUGE:this.setActivitygaugeInput();break;case t.ChartDeprecatedType.COLUMN:this.setColumnInput();break;case t.ChartDeprecatedType.BAR:this.setBarInput()}this.options&&(this.mergedOptions=Ot(this.mergedOptions,this.options))},e.prototype.setPieInput=function(){this.mergedOptions.plotOptions.pie.dataLabels.enabled=this.showDataLabels,this.setSeries("pie")},e.prototype.setBarInput=function(){var t=Math.max.apply(Math,B(this.data));this.mergedOptions.series=[{type:"bar",name:"InvisibleClickReceiver",data:this.data.map((function(e){return t-e})),edgeColor:"rgb(255, 255, 255, 0)",opacity:0},{type:"bar",data:this.data}],this.mergedOptions.xAxis.categories=this.categories},e.prototype.setColumnInput=function(){var t=this;this.mergedOptions.series=[{type:"column",data:this.data}];var e=Math.max.apply(Math,B(this.data));this.mergedOptions.yAxis.tickPositioner=function(){return[0,e]},this.mergedOptions.series=[{type:"column",name:"InvisibleClickReceiver",data:this.data.map((function(n,i){return e-t.data[i]})),opacity:0},{type:"column",data:this.data}],this.mergedOptions.xAxis.categories=this.categories},e.prototype.setActivitygaugeInput=function(){var t=this.data[0];this.mergedOptions.title.text=t.title,this.mergedOptions.subtitle.text=t.subtitle,t.paneBackgroundColor&&(this.mergedOptions.pane.background=[Object.assign(Object.assign({},this.mergedOptions.pane.background[0]),{backgroundColor:t.paneBackgroundColor})]),t.color&&(this.mergedOptions.title.style.color=t.color,this.mergedOptions.subtitle.style.color=t.color),this.mergedOptions.series=[{type:"solidgauge",data:t.series}]},e.prototype.setTimeseriesInput=function(){this.setSeries("area"),this.mergedOptions.xAxis=Object.assign(Object.assign({},this.mergedOptions.xAxis),{breaks:this.breaks})},e.prototype.setSeries=function(t){this.mergedOptions.series=[{type:t,data:this.data}]},e}();function Zt(t){return Array.isArray(t)&&t.every((function(t){return"number"==typeof t}))}qt.decorators=[{type:e.Component,args:[{selector:"kirby-chart-deprecated",template:"",providers:[Rt,{provide:Nt,useValue:Gt},{provide:At,useValue:Ut},{provide:Vt,useValue:Yt},{provide:_t,useValue:Kt}],styles:[":host{display:block}"]}]}],qt.ctorParameters=function(){return[{type:Rt},{type:e.ElementRef},{type:void 0,decorators:[{type:e.Inject,args:[Nt]}]},{type:void 0,decorators:[{type:e.Inject,args:[At]}]},{type:void 0,decorators:[{type:e.Inject,args:[Vt]}]},{type:void 0,decorators:[{type:e.Inject,args:[_t]}]}]},qt.propDecorators={data:[{type:e.Input}],categories:[{type:e.Input}],breaks:[{type:e.Input}],height:[{type:e.Input}],type:[{type:e.Input}],description:[{type:e.Input}],showDataLabels:[{type:e.Input}],options:[{type:e.Input}]};var Jt=(0,X.getThemeColorHexString)("semi-dark"),Qt=[6,3],Xt={line:{borderDash:Qt,borderWidth:1,borderColor:Jt},ellipse:{borderDash:Qt,borderWidth:1,borderColor:Jt,backgroundColor:"transparent"},box:{borderDash:Qt,borderWidth:1,borderColor:Jt,backgroundColor:"transparent"},point:{backgroundColor:"initial"}},te={onHover:function(t,e,n,i){n.options.onClick&&(n.canvas.style.cursor=e[0]?"pointer":"default"),i&&i(t,e,n)}},ee=tt.fontSize,ne=X.getThemeColorHexString,ie={bar:{type:"bar",options:{datasets:{bar:{barPercentage:.6},line:{spanGaps:!0}},indexAxis:"y",scales:{y:{grid:{drawBorder:!1},ticks:{font:{size:parseInt(ee("s"))}}}},elements:{point:{radius:0},line:{borderColor:ne("medium")}}}},column:{type:"bar",options:{datasets:{bar:{barPercentage:.6},line:{spanGaps:!0}},indexAxis:"x",scales:{x:{grid:{drawBorder:!1},ticks:{font:{size:parseInt(ee("xs"))}}}},elements:{line:{tension:.2,borderColor:ne("medium")},point:{radius:0}}}},line:{type:"line",options:{scales:{x:{grid:{borderColor:ne("medium"),borderWidth:1},ticks:{font:{size:parseInt(ee("xs"))}}}},elements:{point:{radius:0}}}}},oe=function(){function t(){}return t.prototype.getTypeConfig=function(t){return e=ie[t],JSON.parse(JSON.stringify(e));var e},t.prototype.getAnnotationDefaults=function(t){return Xt[t]},t.prototype.getInteractionFunctionsExtensions=function(){return te},t.prototype.chartTypeToChartJSType=function(t){return ie[t].type},t}();oe.decorators=[{type:e.Injectable}];var re=X.getThemeColorHexString,ae=re("primary"),se=re("secondary");function ce(t){var e,n=t.dataset,i=null===(e=null==n?void 0:n.kirbyOptions)||void 0===e?void 0:e.highlightedElements;return i&&i.includes(t.dataIndex)?ae:se}var le={maintainAspectRatio:!1,color:(0,X.getThemeColorHexString)("black"),resizeDelay:10,elements:{bar:{backgroundColor:ce,hoverBackgroundColor:function(t){if(t.chart.options.onClick)return ae}},line:{borderColor:ce,borderWidth:2,tension:.3}},scales:{linear:{display:!1,ticks:{display:!1}},category:{display:!0,grid:{display:!1}}},font:{family:"Roboto"},plugins:{legend:{display:!1}}},de=[c.CategoryScale,c.LinearScale],pe=[c.BarElement,c.LineElement,c.PointElement],he=[c.BarController,c.LineController],ue=[T.default];c.Chart.register.apply(c.Chart,B([c.Legend],de,pe,he,ue));var ge=Et(c.Chart.defaults,le);Object.entries(le).forEach((function(t){var e=M(t,1)[0];c.Chart.defaults[e]=ge[e]}));var be=function(){function t(t){this.chartConfigService=t}return t.prototype.renderChart=function(t){var e=t.targetElement,n=t.type,i=t.data,o=t.dataLabels,r=t.customOptions,a=t.annotations,s=t.highlightedElements,c=this.createDatasets(i,s),l=this.createOptionsObject({type:n,customOptions:r,annotations:a}),d=this.createConfigurationObject(n,c,l,o);this.initializeNewChart(e.nativeElement,d)},t.prototype.redrawChart=function(){this.chart.update()},t.prototype.updateData=function(t){var e=this.createDatasets(t);this.chart.data.datasets=e},t.prototype.updateDataLabels=function(t){this.chart.data.labels=t},t.prototype.updateType=function(t,e){"bar"===t||"column"===t?this.destructivelyUpdateType(t,e):this.nonDestructivelyUpdateType(t,e)},t.prototype.updateOptions=function(t,e){var n=this.getExistingChartAnnotations();this.chart.options=this.createOptionsObject({type:e,customOptions:t,annotations:n})},t.prototype.updateAnnotations=function(t){var e=this.applyDefaultsToAnnotations(t);this.chart.options.plugins.annotation.annotations=e},t.prototype.updateHighlightedElements=function(t){var e=this.chart.data.datasets;e.map((function(t){var e;(null===(e=null==t?void 0:t.kirbyOptions)||void 0===e?void 0:e.highlightedElements)&&delete t.kirbyOptions.highlightedElements})),this.chart.data.datasets=this.createDatasets(e,t)},t.prototype.getExistingChartAnnotations=function(){var t,e,n=null===(e=null===(t=this.chart.options.plugins)||void 0===t?void 0:t.annotation)||void 0===e?void 0:e.annotations;return void 0!==n?Object.keys(n).map((function(t){return n[t]})):[]},t.prototype.destructivelyUpdateType=function(t,e){var n=this.chart.data.datasets,i=this.chart.data.labels,o=this.getExistingChartAnnotations(),r=this.createOptionsObject({type:t,customOptions:e,annotations:o}),a=this.createConfigurationObject(t,n,r,i),s=this.chart.canvas;this.chart.destroy(),this.initializeNewChart(s,a)},t.prototype.nonDestructivelyUpdateType=function(t,e){var n=this.getExistingChartAnnotations(),i=this.createOptionsObject({type:t,customOptions:e,annotations:n});this.chart.options=i,this.chart.config.type=this.chartConfigService.chartTypeToChartJSType(t)},t.prototype.initializeNewChart=function(t,e){this.chart=new c.Chart(t,e)},t.prototype.createBlankLabels=function(t){var e=t.reduce((function(t,e){return t.data.length>e.data.length?t:e}));return Array(e.data.length).fill("")},t.prototype.applyDefaultsToAnnotations=function(t){var e=this;return t.map((function(t){return Et(e.chartConfigService.getAnnotationDefaults(t.type),t)}))},t.prototype.createAnnotationPluginOptionsObject=function(t){return{plugins:{annotation:{annotations:this.applyDefaultsToAnnotations(t)}}}},t.prototype.applyInteractionFunctionsExtensions=function(t){var e=this.chartConfigService.getInteractionFunctionsExtensions();return Object.entries(e).forEach((function(n){var i=M(n,2),o=i[0],r=(i[1],t[o]);t[o]=function(t,n,i){e[o](t,n,i,r)}})),t},t.prototype.createOptionsObject=function(t){var e=t.type,n=t.customOptions,i=t.annotations,o=this.chartConfigService.getTypeConfig(e),r=Et(null==o?void 0:o.options,n,i?this.createAnnotationPluginOptionsObject(i):{});return this.applyInteractionFunctionsExtensions(r)},t.prototype.createConfigurationObject=function(t,e,n,i){var o=i||this.createBlankLabels(e);return Et(this.chartConfigService.getTypeConfig(t),{data:{labels:o,datasets:e},options:n})},t.prototype.addHighlightedElementsToDatasets=function(t,e){t.forEach((function(t){var n,i=M(t,2),o=i[0],r=i[1],a=e[o];a&&((null===(n=null==a?void 0:a.kirbyOptions)||void 0===n?void 0:n.highlightedElements)?a.kirbyOptions.highlightedElements.push(r):a.kirbyOptions=Object.assign(Object.assign({},a.kirbyOptions),{highlightedElements:[r]}))}))},t.prototype.createDatasets=function(t,e){var n=Zt(t)?[{data:t}]:t;return e&&this.addHighlightedElementsToDatasets(e,n),n},t}();be.decorators=[{type:e.Injectable}],be.ctorParameters=function(){return[{type:oe}]};var me=function(){function t(t){this.chartJSService=t,this.type="column"}return Object.defineProperty(t.prototype,"height",{set:function(t){this._height="number"==typeof t?t+"px":t},enumerable:!1,configurable:!0}),t.prototype.ngAfterViewInit=function(){this.renderChart()},t.prototype.ngOnChanges=function(t){var e=this,n=!1,i={data:function(){return e.updateData()},dataLabels:function(){return e.updateDataLabels()},type:function(){return e.updateType()},customOptions:function(){return e.updateCustomOptions()},annotations:function(){return e.updateAnnotations()},highlightedElements:function(){return e.updateHighlightedElements()}};Object.entries(t).forEach((function(e){var o=M(e,1)[0];!t[o].firstChange&&i[o]&&(n=!0,i[o]())})),n&&this.redrawChart()},t.prototype.renderChart=function(){this.chartJSService.renderChart({targetElement:this.canvasElement,type:this.type,data:this.data,dataLabels:this.dataLabels,customOptions:this.customOptions,annotations:this.annotations,highlightedElements:this.highlightedElements})},t.prototype.updateData=function(){this.chartJSService.updateData(this.data)},t.prototype.updateDataLabels=function(){this.chartJSService.updateDataLabels(this.dataLabels)},t.prototype.updateType=function(){this.chartJSService.updateType(this.type,this.customOptions)},t.prototype.updateCustomOptions=function(){this.chartJSService.updateOptions(this.customOptions,this.type)},t.prototype.updateAnnotations=function(){this.chartJSService.updateAnnotations(this.annotations)},t.prototype.updateHighlightedElements=function(){this.chartJSService.updateHighlightedElements(this.highlightedElements)},t.prototype.redrawChart=function(){this.chartJSService.redrawChart()},t}();me.decorators=[{type:e.Component,args:[{selector:"kirby-chart",template:'<div class="chart-container">\n <canvas #chartCanvas>\n \x3c!-- Slotted content makes it possible to insert fallback content for screen readers \n https://www.chartjs.org/docs/latest/general/accessibility.html--\x3e\n <ng-content></ng-content>\n </canvas>\n</div>\n',providers:[be],styles:[":host div{height:var(--kirby-chart-height,300px);position:relative}"]}]}],me.ctorParameters=function(){return[{type:be}]},me.propDecorators={type:[{type:e.Input}],data:[{type:e.Input}],dataLabels:[{type:e.Input}],customOptions:[{type:e.Input}],annotations:[{type:e.Input}],highlightedElements:[{type:e.Input}],_height:[{type:e.HostBinding,args:["style.--kirby-chart-height"]}],height:[{type:e.Input}],canvasElement:[{type:e.ViewChild,args:["chartCanvas"]}]};var ye=function(t){return{id:"minmax",zIndex:2,labels:[{point:"max",shape:"rect",distance:5,align:"center",verticalAlign:"top",backgroundColor:X.getThemeColorRgbString("tertiary"),formatter:function(){return a.formatNumber(this.y,t,"1.1-1")}},{point:"min",shape:"rect",distance:-28,align:"center",verticalAlign:"bottom",backgroundColor:X.getThemeColorRgbString("tertiary"),formatter:function(){return a.formatNumber(this.y,t,"1.1-1")}}],labelOptions:{y:0,allowOverlap:!0}}},fe=function(t){return{chart:{zoomType:"x",type:"StockChart",spacingTop:30},navigator:{enabled:!1},rangeSelector:{enabled:!1},scrollbar:{enabled:!1},credits:{enabled:!1},title:{text:""},subtitle:{text:""},xAxis:{ordinal:!0,type:"datetime",lineWidth:.5,opposite:!1,labels:{format:"{value:%Y-%b-%e %l:%M %p }"}},yAxis:{opposite:!1,title:{text:""}},annotations:[ye(t)],legend:{enabled:!1},tooltip:{crosshairs:{width:1,zIndex:2},shadow:!1,borderWidth:0},plotOptions:{area:{marker:{lineWidth:16,radius:7},lineWidth:2,states:{hover:{lineWidth:2}},events:{},threshold:null},series:{marker:{zIndex:100,enabledThreshold:50}}},series:[{type:"area",data:[]}]}},ve=fe;E.default(O);var ke=function(){function t(t,e){this.locale=e,this._height=300,this.description="",this.showDataLabels=!0,this.chartContainer=t}return Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(t){this.onDataChanges(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this._options},set:function(t){this.onOptionsChanges(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,this.chart&&this.chart.setSize(null,t)},enumerable:!1,configurable:!0}),t.prototype.onOptionsChanges=function(t){this._options=t,this.chart=d.stockChart(this.chartContainer.nativeElement,this._options)},t.prototype.onDataChanges=function(t){this._data=t,null!=this.chart&&(this.chart.update({series:[]},!1,!0),this.chart.removeAnnotation("minmax"),this.chart.update({series:[{type:"area",data:t}]},!1,!0),this.chart.addAnnotation(ye(this.locale),!1),this.chart.redraw())},t}();ke.decorators=[{type:e.Component,args:[{selector:"kirby-stock-chart-deprecated",template:"",styles:[":host{display:block}"]}]}],ke.ctorParameters=function(){return[{type:e.ElementRef},{type:String,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},ke.propDecorators={data:[{type:e.Input}],options:[{type:e.Input}],height:[{type:e.Input}],description:[{type:e.Input}],showDataLabels:[{type:e.Input}]};var xe,we=function(){function t(t){this.windowRef=t,this.embeddedViewReady=!1}return t.prototype.init=function(t,e,n,i){var o=this;if(this.hasEmbeddedView(t)){var r=t.nativeElement;r.onload=function(){o.embeddedViewReady=!0,o.emitOptionsToEmbeddedView(e)},this.embeddedView=r.contentWindow,this.windowRef.nativeWindow.addEventListener("message",(function(t){return o.handleMessageEvent(t,n,i)}))}},t.prototype.update=function(t){this.embeddedViewReady&&this.emitOptionsToEmbeddedView(t)},t.prototype.setSelectedDay=function(t){this.embeddedViewReady&&this.embeddedView.postMessage({type:"kirbyCalendarSetSelectedDay",selectedDay:t},"*")},t.prototype.hasEmbeddedView=function(t){return t&&t.nativeElement&&t.nativeElement instanceof HTMLIFrameElement&&t.nativeElement.contentWindow},t.prototype.emitOptionsToEmbeddedView=function(t){this.embeddedView.postMessage(Object.assign({type:"kirbyCalendarInit"},t),"*")},t.prototype.handleMessageEvent=function(t,e,n){if(this.validateMessage(t))switch(t.data.type){case"kirbyCalendarDaySelected":this.validateDateSelectedMessage(t)&&e({isSelectable:!0,date:t.data.day});break;case"kirbyCalendarChangeMonth":this.validateNavigateMonthMessage(t)&&n(t.data.index)}},t.prototype.validateMessage=function(t){return this.embeddedView===t.source&&"message"===t.type&&t.data&&t.data.type},t.prototype.validateDateSelectedMessage=function(t){return"kirbyCalendarDaySelected"===t.data.type&&t.data.day},t.prototype.validateNavigateMonthMessage=function(t){return"kirbyCalendarChangeMonth"===t.data.type&&"number"==typeof t.data.index},t}();we.decorators=[{type:e.Injectable}],we.ctorParameters=function(){return[{type:H}]},function(t){t.years="years",t.months="months",t.weeks="weeks",t.days="days",t.hours="hours",t.minutes="minutes",t.seconds="seconds",t.milliseconds="milliseconds"}(xe||(xe={}));var Ce=function(){function t(t,n){this.calendarHelper=t,this.dateChange=new e.EventEmitter,this.dateSelect=new e.EventEmitter,this.yearSelect=new e.EventEmitter,this.timezone="local",this.disableWeekends=!1,this.disablePastDates=!1,this.disableFutureDates=!1,this.alwaysEnableToday=!1,this.customLocales={},this._disabledDates=[],this.includedLocales={da:g.da,enGB:g.enGB,enUS:g.enUS},this.locale=this.mapLocale(n),this.timeZoneName=Intl.DateTimeFormat().resolvedOptions().timeZone}return Object.defineProperty(t.prototype,"selectedDate",{get:function(){return this._selectedDate},set:function(t){var e=this.normalizeDate(t);this.setActiveMonth(e),this.hasDateChanged(e,this._selectedDate)&&(this.onSelectedDateChange(e),this._selectedDate=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(t){var e=this;this._disabledDates=(t||[]).map((function(t){return e.normalizeDate(t)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todayDate",{get:function(){return this._todayDate},set:function(t){this._todayDate=this.normalizeDate(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minDate",{get:function(){return this._minDate},set:function(t){t&&this.activeMonth&&h.isBefore(this.activeMonth,t)&&this.setActiveMonth(t),this._minDate=this.normalizeDate(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxDate",{get:function(){return this._maxDate},set:function(t){t&&this.activeMonth&&h.isAfter(this.activeMonth,t)&&this.setActiveMonth(t),this._maxDate=this.normalizeDate(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeMonthName",{get:function(){return Q(this.formatWithLocale(this.activeMonth,"MMMM"))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeYear",{get:function(){return this.formatWithLocale(this.activeMonth,"yyyy")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigableYears",{get:function(){var t=this.minDate||this.getDateFromNavigableYear(this.yearNavigatorOptions.from),e=this.maxDate||this.getDateFromNavigableYear(this.yearNavigatorOptions.to);return this.getYearsBetweenDates(t,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigatedYear",{get:function(){return this.navigableYears.indexOf(this.activeYear)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_hasYearNavigator",{get:function(){return!!this.yearNavigatorOptions},enumerable:!1,configurable:!0}),t.prototype.formatWithLocale=function(t,e){return h.format(t,e,{locale:this.locale})},t.prototype.mapLocale=function(t){return"en"===t&&(t="enGB"),t=t.replace("-",""),Object.assign(Object.assign({},this.includedLocales),this.customLocales)[t]||this.includedLocales.enGB},t.prototype.ngOnInit=function(){this._weekDays=this.getWeekDays(),this.setActiveMonth(this.selectedDate)},t.prototype.ngAfterViewInit=function(){this.calendarHelper.init(this.calendarContainer,this.getHelperOptions(),this._onDateSelected.bind(this),this.onChangeMonth.bind(this))},t.prototype.ngOnChanges=function(t){this.activeMonth&&(t.disableWeekends||t.disablePastDates||t.disableFutureDates||t.disabledDates||t.minDate||t.maxDate||t.todayDate||t.timezone)&&(this.refreshActiveMonth(),this.calendarHelper.update(this.getHelperOptions()))},t.prototype.setActiveMonth=function(t){void 0===t&&(t=new Date),this.activeMonth&&h.isSameMonth(this.activeMonth,t)||(this.activeMonth=h.startOfMonth(t),this.refreshActiveMonth(),this.calendarHelper.update(this.getHelperOptions()))},t.prototype.normalizeDate=function(t){if(t)return h.startOfDay(t).getTime()===t.getTime()?t:h.startOfDay(u.utcToZonedTime(t,this.timeZoneName)).getTime()===u.utcToZonedTime(t,this.timeZoneName).getTime()?u.utcToZonedTime(t,this.timeZoneName):h.startOfDay(t)},t.prototype.getWeekDays=function(){var t=this,e=new Date;return h.eachDayOfInterval({start:h.startOfWeek(e,{locale:this.locale}),end:h.endOfWeek(e,{locale:this.locale})}).map((function(e){return t.getFirstLetterOfWeekDayCapitalized(e)}))},t.prototype.getFirstLetterOfWeekDayCapitalized=function(t){return this.formatWithLocale(t,"EEEEE")},t.prototype.hasDateChanged=function(t,e){return!(!t&&!e)&&(t instanceof Date&&!e||!h.isSameDay(t,e))},t.prototype.isDisabledDate=function(t){return this.disabledDates.some((function(e){return h.isSameDay(e,t)}))},t.prototype.refreshActiveMonth=function(){var t=this;if(this.activeMonth){var e=h.startOfMonth(this.activeMonth),n=h.endOfMonth(this.activeMonth),i=h.startOfWeek(e,{locale:this.locale}),o=h.endOfWeek(n,{locale:this.locale}),r=h.differenceInDays(o,i)+1,a=this.todayDate?h.startOfDay(this.todayDate):h.startOfDay(new Date),s=Array.from(Array(r).keys()).map((function(n){var o,r=h.add(i,((o={})[xe.days]=n,o)),s=t.getCalendarDay(r,a,e),c=t.isSelectable(s,r),l=h.isSameDay(t.selectedDate,r),d={date:r.getDate(),isCurrentMonth:s.isCurrentMonth,isSelectable:c,isSelected:l,cssClasses:t.getCssClasses(s,c,l)};return l&&(t.selectedDay=d),d}));this._month=this.chunk(s,7)}},t.prototype.getCalendarDay=function(t,e,n){return{isToday:h.isSameDay(e,t),isPast:h.isBefore(t,e),isFuture:h.isAfter(t,e),isWeekend:h.isWeekend(t),isCurrentMonth:h.isSameMonth(t,n),isDisabled:this.isDisabledDate(t)}},t.prototype.isSelectable=function(t,e){return this.alwaysEnableToday&&t.isToday||!t.isDisabled&&t.isCurrentMonth&&!(this.disableWeekends&&t.isWeekend)&&!(this.disablePastDates&&t.isPast)&&!(this.disableFutureDates&&t.isFuture)&&!(this.minDate&&h.isBefore(e,this.minDate))&&!(this.maxDate&&h.isAfter(e,this.maxDate))},t.prototype.getCssClasses=function(t,e,n){var i={"current-month":t.isCurrentMonth,weekend:t.isWeekend,today:t.isToday,selectable:e,selected:n,past:t.isPast,disabled:t.isDisabled},o="day";for(var r in i)i[r]&&(o+=" "+r);return o},t.prototype.chunk=function(t,e){for(var n=[];t.length;)n.push(t.splice(0,e));return n},t.prototype.onSelectedDateChange=function(t){this.selectedDay&&(this.selectedDay.isSelected=!1);var e=this.getCell(t);e&&(e.isSelected=!0,this.selectedDay=e),this.calendarHelper.setSelectedDay(t.getDate())},t.prototype._onDateSelected=function(t){if(t.isSelectable&&t.date){var e=new Date(this.activeMonth);"UTC"===this.timezone&&(e=u.zonedTimeToUtc(this.subtractTimezoneOffset(e),this.timeZoneName)),e.setDate(t.date);var n=e;this.hasDateChanged(e,this._selectedDate)&&(this.onSelectedDateChange(e),this._selectedDate=e,this.dateChange.emit(n)),this.dateSelect.emit(n)}},t.prototype.onChangeMonth=function(t){this._changeMonth(t),this.calendarHelper.update(this.getHelperOptions())},t.prototype._changeMonth=function(t){this.changeActiveView(t,xe.months)},t.prototype._changeYear=function(t){var e=Number(t);this.changeActiveView(e-h.getYear(this.activeMonth),xe.years),this.yearSelect.emit(e)},t.prototype.changeActiveView=function(t,e){var n;0!==t&&(this.activeMonth=h.add(this.activeMonth,((n={})[e]=t,n)),this.refreshActiveMonth())},Object.defineProperty(t.prototype,"_canNavigateBack",{get:function(){var t=this.disablePastDates&&h.isSameMonth(this.activeMonth,this.todayDate),e=this.minDate&&(h.isSameMonth(this.activeMonth,this.minDate)||h.isBefore(this.activeMonth,this.minDate));return!t&&!e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_canNavigateForward",{get:function(){var t=this.disableFutureDates&&h.isSameMonth(this.activeMonth,this.todayDate),e=this.maxDate&&(h.isSameMonth(this.activeMonth,this.maxDate)||h.isAfter(this.activeMonth,this.maxDate));return!t&&!e},enumerable:!1,configurable:!0}),t.prototype.getCell=function(t){var e,n,i=null;if(t)try{for(var o=A(this._month),r=o.next();!r.done;r=o.next()){if(i=r.value.find((function(e){return e.isCurrentMonth&&e.date===t.getDate()})))break}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return i},t.prototype.getHelperOptions=function(){return{canNavigateBack:this._canNavigateBack,canNavigateForward:this._canNavigateForward,year:this.activeYear,monthName:this.activeMonthName,weekDays:this._weekDays,month:this._month}},t.prototype.subtractTimezoneOffset=function(t){var e=60*t.getTimezoneOffset()*1e3;return new Date(t.getTime()-e)},t.prototype.getDateFromNavigableYear=function(t){if(t instanceof Date)return t;var e=this.todayDate||new Date;return new Date(e.getFullYear()+t,0,1)},t.prototype.getYearsBetweenDates=function(t,e){var n=M([t.getFullYear(),e.getFullYear()].sort(),2),i=n[0],o=n[1]-i;return Array.from({length:o+1},(function(t,e){return(i+e).toString()}))},t}();Ce.decorators=[{type:e.Component,args:[{selector:"kirby-calendar",template:'<div class="header">\n <div class="month-navigator">\n <button [disabled]="!_canNavigateBack" (click)="_changeMonth(-1)">\n <kirby-icon name="arrow-back"></kirby-icon>\n </button>\n\n <div class="month-and-year">\n <span class="month">{{ activeMonthName }}</span\n ><span *ngIf="!_hasYearNavigator" class="year">{{ activeYear }}</span>\n </div>\n\n <button [disabled]="!_canNavigateForward" (click)="_changeMonth(1)">\n <kirby-icon name="arrow-more"></kirby-icon>\n </button>\n </div>\n <kirby-dropdown\n *ngIf="_hasYearNavigator"\n [selectedIndex]="navigatedYear"\n [items]="navigableYears"\n popout="left"\n (change)="_changeYear($event)"\n >\n </kirby-dropdown>\n</div>\n\n<table>\n <thead>\n <tr>\n <th *ngFor="let weekDay of _weekDays">{{ weekDay }}</th>\n </tr>\n </thead>\n\n <tbody>\n <tr *ngFor="let week of _month">\n <td *ngFor="let day of week">\n <div\n (click)="_onDateSelected(day)"\n class="{{ day.cssClasses }}"\n [class.selected]="day.isSelected"\n >\n {{ day.date }}\n </div>\n </td>\n </tr>\n </tbody>\n</table>\n\n\x3c!-- <iframe src="kirby/components/calendar/calendar.webview.html" #calendarContainer style="width: 320px; height: 304px; border: 0"> --\x3e\n',providers:[we],styles:["table{width:100%;border-collapse:collapse;-webkit-user-select:none;user-select:none;margin-bottom:8px}td,th{text-align:center;padding:0}td:first-child,th:first-child{padding-left:8px}td:last-child,th:last-child{padding-right:8px}th{height:50px;border-bottom:1px solid var(--kirby-background-color)}.header,td,th{background-color:transparent}.header{margin:8px 8px 0}.header,.month-navigator{display:flex;justify-content:space-between}.month-navigator{flex-grow:1;align-items:center}.month-navigator button{background-color:transparent;outline:none;border:none;cursor:pointer;height:40px;width:40px;padding:0}.month-navigator button:disabled{opacity:.5;pointer-events:none}.month-and-year{-webkit-user-select:none;user-select:none}.month-and-year .month{font-weight:700;margin-right:8px}:host(.has-year-navigator) .month-navigator{flex-grow:0}:host(.has-year-navigator) .month-and-year{width:80px;margin:0 8px;text-align:center}:host(.has-year-navigator) .month{margin-right:0}.day{display:inline-flex;align-items:center;justify-content:center;border-radius:20px;width:40px;height:40px;margin:4px 0}.day.selectable,.day.selected{cursor:pointer}.day.disabled,.day:not(.selectable){color:var(--kirby-text-color-semi-dark)}.day.today{color:var(--kirby-medium-contrast);background-color:var(--kirby-medium)}.day.selected{color:var(--kirby-black-contrast);background-color:var(--kirby-black)}.day:not(.current-month){visibility:hidden;pointer-events:none}.day.selectable:not(.selected):hover{color:var(--kirby-light-contrast);background-color:var(--kirby-light)}"]}]}],Ce.ctorParameters=function(){return[{type:we},{type:String,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},Ce.propDecorators={calendarContainer:[{type:e.ViewChild,args:["calendarContainer",{static:!1}]}],dateChange:[{type:e.Output}],dateSelect:[{type:e.Output}],yearSelect:[{type:e.Output}],timezone:[{type:e.Input}],disableWeekends:[{type:e.Input}],disablePastDates:[{type:e.Input}],disableFutureDates:[{type:e.Input}],alwaysEnableToday:[{type:e.Input}],customLocales:[{type:e.Input}],yearNavigatorOptions:[{type:e.Input}],selectedDate:[{type:e.Input}],disabledDates:[{type:e.Input}],todayDate:[{type:e.Input}],minDate:[{type:e.Input}],maxDate:[{type:e.Input}],_hasYearNavigator:[{type:e.HostBinding,args:["class.has-year-navigator"]}]};var Ie=function(){function t(t){this.scope=t,this.id=0}return t.scopedTo=function(e){var n=t.registry.get(e);return n||(n=new t(e),t.registry.set(e,n)),n},t.prototype.next=function(){return this.scope+"-"+this.id++},t}();Ie.registry=new Map;var Se=function(){function t(){this.checked=!1,this.attentionLevel="2",this.hasError=!1,this.disabled=!1,this.checkedChange=new e.EventEmitter,this._labelId=Ie.scopedTo("kirby-checkbox-label").next()}return Object.defineProperty(t.prototype,"_isDisabled",{get:function(){return this.disabled?"disabled":null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAttentionLevel1",{get:function(){return"1"===this.attentionLevel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAttentionLevel2",{get:function(){return"2"===this.attentionLevel},enumerable:!1,configurable:!0}),t.prototype.onChecked=function(t){this.checked=t,this.checkedChange.emit(this.checked)},t}();Se.decorators=[{type:e.Component,args:[{selector:"kirby-checkbox",template:'<div class="wrapper">\n <ion-checkbox\n mode="md"\n [checked]="checked"\n [disabled]="disabled"\n (ionChange)="onChecked($event.detail.checked)"\n [attr.aria-labelledby]="text ? _labelId : null"\n ></ion-checkbox>\n <span [id]="_labelId" *ngIf="text">{{ text }}</span>\n</div>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[":host{display:inline-block}:host.attention-level1 ion-checkbox{--checkmark-color:var(--kirby-black);--background-checked:var(--kirby-success);--border-color-checked:var(--kirby-success)}:host.attention-level1 ion-checkbox:active{--background-checked:var(--kirby-success-shade);--border-color-checked:var(--kirby-success-shade)}:host.attention-level2 ion-checkbox{--checkmark-color:var(--kirby-white);--background-checked:var(--kirby-black);--border-color-checked:var(--kirby-black)}:host.attention-level2 ion-checkbox:active{--checkmark-color:var(--kirby-white-shade);--background-checked:var(--kirby-black-tint);--border-color-checked:var(--kirby-black-tint)}:host.error ion-checkbox{--border-color:var(--kirby-danger)}:host[disabled]{color:var(--kirby-text-color-semi-dark)}:host[disabled] ion-checkbox{opacity:1;--checkmark-color:var(--kirby-semi-dark);--background:var(--kirby-semi-light);--background-checked:var(--kirby-semi-light);--border-color:var(--kirby-medium);--border-color-checked:var(--kirby-semi-light)}:host ion-checkbox{--size:24px;--checkmark-width:4px;--background:var(--kirby-white);--border-width:1px;--border-color:var(--kirby-semi-dark);--border-radius:6px;margin-left:16px;margin-right:12px}:host ion-checkbox::part(container){padding:4px}@media (hover:hover){:host ion-checkbox:focus-within::part(container){box-shadow:0 0 0 1px var(--kirby-background-color),0 0 0 2px #4d90fe;border-radius:6px}}:host ion-checkbox:active{--background:var(--kirby-white-shade)}:host.has-label{display:block;line-height:24px;white-space:pre-line}:host.has-label .wrapper{position:relative;display:inline-flex;align-items:flex-start;vertical-align:top;padding:16px 12px 16px 0}:host.has-label.xs .wrapper,:host.has-label :host-context(.checkbox-xs) .wrapper{padding-top:4px;padding-bottom:4px}:host.has-label.sm .wrapper,:host.has-label :host-context(.checkbox-sm) .wrapper{padding-top:10px;padding-bottom:10px}:host.has-label.md .wrapper,:host.has-label :host-context(.checkbox-md) .wrapper{padding-top:16px;padding-bottom:16px}:host.has-label ion-checkbox{position:static;flex-shrink:0;flex-grow:0}:host-context(kirby-item){z-index:1}:host-context(kirby-item) ion-checkbox{margin:0}:host-context(kirby-item)[slot=start]{margin-inline-end:12px}"]}]}],Se.propDecorators={checked:[{type:e.Input}],attentionLevel:[{type:e.Input}],text:[{type:e.HostBinding,args:["class.has-label"]},{type:e.Input}],size:[{type:e.HostBinding,args:["class"]},{type:e.Input}],hasError:[{type:e.HostBinding,args:["class.error"]},{type:e.Input}],disabled:[{type:e.Input}],_isDisabled:[{type:e.HostBinding,args:["attr.disabled"]}],isAttentionLevel1:[{type:e.HostBinding,args:["class.attention-level1"]}],isAttentionLevel2:[{type:e.HostBinding,args:["class.attention-level2"]}],checkedChange:[{type:e.Output}]};var Te=function(){};Te.decorators=[{type:e.Component,args:[{selector:"kirby-chip",template:"<span>{{ text }}</span>\n",styles:[':host{background-color:var(--kirby-white);color:var(--kirby-white-contrast);position:relative;white-space:nowrap;padding:0 var(--inline-padding,16px);height:32px;font-size:12px;line-height:1;display:inline-flex;align-items:center;border-radius:999px;margin:4px var(--inline-margin,4px);cursor:pointer;-webkit-user-select:none;user-select:none}:host.is-selected{background-color:var(--kirby-black);color:var(--kirby-black-contrast)}@media (hover:hover){:host:hover{background-color:var(--kirby-black);color:var(--kirby-black-contrast)}}:host:after{content:"";position:absolute;min-height:44px;min-width:44px;width:100%;height:100%;transform:translate(-50%,-50%);left:50%;top:50%}:host :host-context(.kirby-color-brightness-dark){background-color:transparent;color:var(--kirby-text-color-white)}:host :host-context(.kirby-color-brightness-dark).is-selected{background-color:var(--kirby-white);color:var(--kirby-white-contrast)}@media (hover:hover){:host :host-context(.kirby-color-brightness-dark):hover{background-color:var(--kirby-white);color:var(--kirby-white-contrast)}}:host :host-context(kirby-segmented-control.compact){min-width:44px;flex-shrink:0;justify-content:center;--inline-margin:2px;--inline-padding:13px;background-color:transparent;color:var(--kirby-text-color-black)}:host :host-context(kirby-segmented-control.compact).is-selected{background-color:var(--kirby-black);color:var(--kirby-black-contrast)}@media (hover:hover){:host :host-context(kirby-segmented-control.compact):hover{background-color:var(--kirby-black);color:var(--kirby-black-contrast)}}@media (max-width:321px){:host :host-context(kirby-segmented-control.compact){--inline-margin:0}}']}]}],Te.propDecorators={text:[{type:e.Input}],isSelected:[{type:e.Input},{type:e.HostBinding,args:["attr.aria-selected"]},{type:e.HostBinding,args:["class.is-selected"]}]};var Oe,Ee=function(){};Ee.decorators=[{type:e.Component,args:[{selector:"kirby-divider",template:'<hr [class.no-margin]="!hasMargin" />\n',styles:[":host-context(.kirby-color-brightness-white),:host-context(kirby-card){--kirby-divider-color:var(--kirby-background-color)}:host-context(.kirby-color-brightness-light){--kirby-divider-color:var(--kirby-medium)}hr{margin-top:8px;margin-bottom:8px;border:0;border-top:1px solid var(--kirby-divider-color,var(--kirby-medium))}hr.no-margin{margin-top:0;margin-bottom:0}"]}]}],Ee.propDecorators={hasMargin:[{type:e.Input}]},(Oe=t.ItemSize||(t.ItemSize={})).XS="xs",Oe.SM="sm",Oe.MD="md";var De=function(){function e(){this.size=t.ItemSize.MD}return e.prototype.onMouseDown=function(t){t.currentTarget instanceof HTMLElement&&t.currentTarget.closest("kirby-dropdown")&&t.preventDefault()},e}();De.decorators=[{type:e.Component,args:[{selector:"kirby-item",template:'<ion-item\n lines="none"\n [attr.disabled]="disabled"\n [attr.button]="selectable ? true : null"\n [attr.tabindex]="selectable ? null : 0"\n detail="false"\n (mousedown)="onMouseDown($event)"\n>\n <div class="outside" slot="start">\n <ng-content select="[slot=\'outside\']"></ng-content>\n </div>\n <ng-content></ng-content>\n <ion-reorder slot="end" *ngIf="reorderable">\n <kirby-icon name="reorder"></kirby-icon>\n </ion-reorder>\n</ion-item>\n',styles:[":host{display:block;position:relative}:host ion-item{font-size:14px;--min-height:56px;--padding-start:16px;--inner-padding-top:8px;--inner-padding-bottom:8px;--inner-padding-end:16px;--background:var(--kirby-item-background,var(--kirby-white));--background-activated:var(--kirby-item-background-activated,var(--kirby-white-shade));--background-activated-opacity:0.99;--background-focused:var(--kirby-item-background-focused,var(--kirby-background-color));--background-focused-opacity:1;--background-hover:var(--kirby-item-background-hover,var(--kirby-background-color));--background-hover-opacity:1}@media screen and (orientation:landscape){:host ion-item{--ion-safe-area-left:0px;--ion-safe-area-right:0px}}:host ion-item ::ng-deep>[slot=end]{margin-inline-start:0;margin-inline-end:0;text-align:right}:host ion-item ::ng-deep>time[slot=end]{margin-inline-start:12px}:host ion-item ::ng-deep>[detail][slot=end],:host ion-item ::ng-deep>data[slot=end],:host ion-item ::ng-deep>ion-reorder[slot=end]{margin-inline-start:16px}:host ion-item ::ng-deep>data,:host ion-item ::ng-deep>h1,:host ion-item ::ng-deep>h2,:host ion-item ::ng-deep>h3,:host ion-item ::ng-deep>h4,:host ion-item ::ng-deep>h5,:host ion-item ::ng-deep>h6,:host ion-item ::ng-deep>p{font-size:16px;line-height:24px;color:var(--kirby-text-color-black);display:block;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400}:host ion-item ::ng-deep>data.kirby-text-bold,:host ion-item ::ng-deep>h1.kirby-text-bold,:host ion-item ::ng-deep>h2.kirby-text-bold,:host ion-item ::ng-deep>h3.kirby-text-bold,:host ion-item ::ng-deep>h4.kirby-text-bold,:host ion-item ::ng-deep>h5.kirby-text-bold,:host ion-item ::ng-deep>h6.kirby-text-bold,:host ion-item ::ng-deep>p.kirby-text-bold{font-weight:700}:host ion-item ::ng-deep>p{font-size:14px}:host ion-item ::ng-deep>[detail],:host ion-item ::ng-deep>[subtitle]{font-size:12px;line-height:16px}:host ion-item ::ng-deep>[subtitle]:not(:last-child){margin-bottom:4px}:host ion-item ::ng-deep>[detail]{color:var(--kirby-text-color-semi-dark)}:host ion-item ::ng-deep>:not([slot]){width:100%}:host ion-item ::ng-deep>input[slot=end],:host ion-item ::ng-deep>kirby-form-field[slot=end] input{margin-inline-start:16px;width:auto;text-align:right}:host.sm ion-item{--min-height:44px}:host.xs ion-item{--min-height:32px;--inner-padding-top:4px;--inner-padding-bottom:4px}:host .outside{left:4px;margin:0;position:absolute;width:16px;z-index:1}:host-context(kirby-dropdown) ion-item{--min-height:44px}:host-context(kirby-list-item:first-of-type) ion-item{--padding-top:8px}:host-context(kirby-list-item:first-of-type kirby-card) ion-item{--padding-top:0}:host-context(kirby-list-item:last-of-type) ion-item{--padding-bottom:8px}:host-context(kirby-list-item:last-of-type kirby-card) ion-item{--padding-bottom:0}:host(.selected) ion-item ::ng-deep>data,:host(.selected) ion-item ::ng-deep>h1,:host(.selected) ion-item ::ng-deep>h2,:host(.selected) ion-item ::ng-deep>h3,:host(.selected) ion-item ::ng-deep>h4,:host(.selected) ion-item ::ng-deep>h5,:host(.selected) ion-item ::ng-deep>h6,:host(.selected) ion-item ::ng-deep>p,:host-context(kirby-list .selected) ion-item ::ng-deep>data,:host-context(kirby-list .selected) ion-item ::ng-deep>h1,:host-context(kirby-list .selected) ion-item ::ng-deep>h2,:host-context(kirby-list .selected) ion-item ::ng-deep>h3,:host-context(kirby-list .selected) ion-item ::ng-deep>h4,:host-context(kirby-list .selected) ion-item ::ng-deep>h5,:host-context(kirby-list .selected) ion-item ::ng-deep>h6,:host-context(kirby-list .selected) ion-item ::ng-deep>p{font-weight:700}:host-context(.shape-rounded .is-single) ion-item{--border-radius:16px}:host-context(.has-header .is-single) ion-item::part(native){border-top-left-radius:0;border-top-right-radius:0}:host-context(.has-footer .is-single) ion-item::part(native){border-bottom-left-radius:0;border-bottom-right-radius:0}:host-context(.shape-rounded.has-sections .list-items kirby-list-item:first-of-type) ion-item::part(native){border-top-left-radius:16px;border-top-right-radius:16px}"]}]}],De.propDecorators={disabled:[{type:e.Input}],selected:[{type:e.HostBinding,args:["class.selected"]},{type:e.Input}],selectable:[{type:e.Input}],reorderable:[{type:e.Input}],size:[{type:e.HostBinding,args:["class"]},{type:e.Input}]};var Re=function(){console.warn("*kirbyListItem directive is deprecated - please use *kirbyListItemTemplate directive instead.")};Re.decorators=[{type:e.Directive,args:[{selector:"[kirbyListItem]"}]}],Re.ctorParameters=function(){return[]};var _e=function(){console.warn("*kirbyListFlexItem directive is deprecated - please use *kirbyListItemTemplate directive instead.")};_e.decorators=[{type:e.Directive,args:[{selector:"[kirbyListFlexItem]"}]}],_e.ctorParameters=function(){return[]};var Pe=function(){};Pe.decorators=[{type:e.Directive,args:[{selector:"[kirbyListItemTemplate]"}]}];var Ae=function(){};Ae.decorators=[{type:e.Directive,args:[{selector:"[kirbyListHeader], [kirbyListHeaderTemplate]"}]}];var Me=function(){};Me.decorators=[{type:e.Directive,args:[{selector:"[kirbyListSectionHeader], [kirbyListSectionHeaderTemplate]"}]}];var Be,ze,Le,je=function(){};je.decorators=[{type:e.Directive,args:[{selector:"[kirbyListFooter], [kirbyListFooterTemplate]"}]}],function(t){t[t.closed=0]="closed",t[t.opening=1]="opening",t[t.open=2]="open"}(Be||(Be={})),(ze=t.HorizontalDirection||(t.HorizontalDirection={})).right="right",ze.left="left",function(t){t[t.up=0]="up",t[t.down=1]="down"}(Le||(Le={}));var He=function(){function n(n,i,o){this.renderer=n,this.elementRef=i,this.changeDetectorRef=o,this.state=Be.closed,this.hasConfiguredSlottedItems=!1,this.horizontalDirection=t.HorizontalDirection.right,this.verticalDirection=Le.down,this._items=[],this._selectedIndex=-1,this.itemTextProperty="text",this.placeholder="Please select:",this.attentionLevel="3",this.attentionLevelOpen="2",this.disabled=!1,this.size="md",this.tabindex=0,this.change=new e.EventEmitter,this._value=null,this._role="listbox",this.itemClickUnlisten=[],this._onChange=function(){},this._onTouched=function(){}}return Object.defineProperty(n.prototype,"items",{get:function(){return this._items},set:function(t){this._items=t,this._value=this.items[this.selectedIndex]||null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){this._selectedIndex!=t&&(this._selectedIndex=t,this._value=this.items[this.selectedIndex]||null)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"popout",{get:function(){return this.horizontalDirection},set:function(e){this.horizontalDirection=e||t.HorizontalDirection.right},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_isDisabled",{get:function(){return this.disabled?"disabled":null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_tabindex",{get:function(){return this.disabled?-1:this.tabindex},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_noBlurOnScroll",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selectedText",{get:function(){return this.getTextFromItem(this.value)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_isBlockLevel",{get:function(){return"block"===this.expand},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_isOpening",{get:function(){return this.state===Be.opening},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isOpen",{get:function(){return this.state===Be.open},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_popoutLeft",{get:function(){return this.horizontalDirection===t.HorizontalDirection.left},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_popoutUp",{get:function(){return this.verticalDirection===Le.up},enumerable:!1,configurable:!0}),n.prototype.onToggle=function(t){t.stopPropagation(),this.isOpen||this.elementRef.nativeElement.focus(),this.toggle()},n.prototype.toggle=function(){this.disabled||(this.isOpen?this.close():this.open())},n.prototype.onButtonMouseEvent=function(t){t.preventDefault()},n.prototype.ngAfterContentChecked=function(){var t=this;!this.hasConfiguredSlottedItems&&this.kirbyItemsSlotted.length&&(this.kirbyItemsSlotted.forEach((function(e,n){t.renderer.setAttribute(e.nativeElement,"role","option");var i=t.renderer.listen(e.nativeElement,"click",(function(){t.onItemSelect(n)}));t.itemClickUnlisten.push(i)})),this.hasConfiguredSlottedItems=!0)},n.prototype.ngAfterViewInit=function(){this.initializeAlignment()},n.prototype.initializeAlignment=function(){var t=this;if(!this.intersectionObserverRef){this.intersectionObserverRef=new IntersectionObserver((function(e){if(t.state===Be.opening){clearTimeout(t.showDropdownTimeoutId);var n=e[0];n.boundingClientRect.width>0&&n.intersectionRatio<1&&(t.setHorizontalDirection(n),t.setVerticalDirection(n)),t.showDropdown(),t.changeDetectorRef.detectChanges()}}),{rootMargin:"0px"}),this.intersectionObserverRef.observe(this.cardElement.nativeElement)}},n.prototype.setHorizontalDirection=function(e){this.horizontalDirection===t.HorizontalDirection.right?e.boundingClientRect.right>e.rootBounds.right&&(this.horizontalDirection=t.HorizontalDirection.left):e.boundingClientRect.left<e.rootBounds.left&&(this.horizontalDirection=t.HorizontalDirection.right)},n.prototype.setVerticalDirection=function(t){if(t.boundingClientRect.top<0&&(this.verticalDirection=Le.down),t.boundingClientRect.bottom>t.rootBounds.bottom){this.elementRef.nativeElement.getBoundingClientRect().top>t.target.clientHeight+5&&(this.verticalDirection=Le.up)}},n.prototype.open=function(){var t=this;this.disabled||this.isOpen||(this.state=Be.opening,this.showDropdownTimeoutId=setTimeout((function(){return t.showDropdown()}),n.OPEN_DELAY_IN_MS))},n.prototype.showDropdown=function(){this.state===Be.opening&&(this.state=Be.open,this.scrollItemIntoView(this.selectedIndex),this.changeDetectorRef.markForCheck())},n.prototype.close=function(){this.disabled||this.isOpen&&(this.state=Be.closed,this.verticalDirection=Le.down)},n.prototype.onItemSelect=function(t){this.selectItem(t),this.close()},n.prototype.writeValue=function(t){this._selectItemByValue(t)},n.prototype.registerOnChange=function(t){this._onChange=t},n.prototype.registerOnTouched=function(t){this._onTouched=t},n.prototype.setDisabledState=function(t){this.disabled=t},n.prototype.selectItem=function(t){t!=this.selectedIndex&&(this.selectedIndex=t,this.change.emit(this.value),this._onChange(this.value),this.scrollItemIntoView(t))},n.prototype._selectItemByValue=function(t){this.selectedIndex=this.items.indexOf(t)},n.prototype.getTextFromItem=function(t){return t?"string"==typeof t?t:t[this.itemTextProperty]:null},n.prototype.scrollItemIntoView=function(t){var e=this.kirbyItemsSlotted&&this.kirbyItemsSlotted.length?this.kirbyItemsSlotted:this.kirbyItemsDefault;if(e&&e.length){var n=e.toArray()[t];if(n&&n.nativeElement){var i=n.nativeElement,o=this.cardElement.nativeElement,r=i.offsetTop,a=i.offsetTop+i.offsetHeight,s=o.scrollTop,c=o.clientHeight+o.scrollTop;r<s?o.scrollTop=r:a>c&&(o.scrollTop=a-o.clientHeight)}}},n.prototype._onTab=function(t){this.isOpen&&(t.preventDefault(),this.close())},n.prototype._onMouseDown=function(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())},n.prototype._onFocus=function(){this.disabled&&this.elementRef.nativeElement.blur()},n.prototype._onBlur=function(){this.disabled||(this.isOpen&&this.close(),this._onTouched())},n.prototype._onSpace=function(t){t.preventDefault(),t.stopPropagation(),this.isOpen||this.open()},n.prototype._onEnter=function(t){t.preventDefault(),t.stopPropagation(),this.toggle()},n.prototype._onArrowKeys=function(t){if(!this.disabled&&(!this.isOpen||"ArrowLeft"!==t.key&&"ArrowRight"!==t.key)){t.preventDefault();var e=-1;"ArrowUp"!==t.key&&"ArrowLeft"!==t.key||(e=this.selectedIndex-1),"ArrowDown"!==t.key&&"ArrowRight"!==t.key||(void 0===this.selectedIndex?e=0:this.selectedIndex<this.items.length-1&&(e=this.selectedIndex+1)),e>-1&&this.selectItem(e)}},n.prototype._onHomeEndKeys=function(t){if(t.preventDefault(),!this.disabled){var e=-1;"Home"===t.key&&(e=0),"End"===t.key&&(e=this.items.length-1),e>-1&&this.selectItem(e)}},n.prototype.ngOnDestroy=function(){for(var t;void 0!==(t=this.itemClickUnlisten.pop());)t();this.intersectionObserverRef&&this.intersectionObserverRef.disconnect()},n}();He.OPEN_DELAY_IN_MS=100,He.decorators=[{type:e.Component,args:[{selector:"kirby-dropdown",template:'<button\n kirby-button\n [size]="size"\n [attentionLevel]="isOpen ? attentionLevelOpen : attentionLevel"\n tabindex="-1"\n (click)="onToggle($event)"\n (mousedown)="onButtonMouseEvent($event)"\n [disabled]="disabled"\n>\n <span class="text">{{ selectedText || placeholder }}</span>\n <kirby-icon [name]="isOpen ? \'arrow-up\' : \'arrow-down\'"></kirby-icon>\n</button>\n<kirby-card>\n <ng-container *ngFor="let item of items; let i = index">\n <ng-container\n *ngTemplateOutlet="\n itemTemplate || defaultItemTemplate;\n context: { $implicit: item, selected: i === selectedIndex, index: i }\n "\n ></ng-container>\n </ng-container>\n</kirby-card>\n\n<ng-template #defaultItemTemplate let-item let-selected="selected" let-index="index">\n <kirby-item [selectable]="true" [selected]="selected" (click)="onItemSelect(index)" role="option">\n <h3>{{ getTextFromItem(item) }}</h3>\n <kirby-icon *ngIf="selected" name="checkmark-selected" slot="end"></kirby-icon>\n </kirby-item>\n</ng-template>\n',providers:[{provide:b.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return He})),multi:!0}],styles:[":host{--kirby_internal_min-screen-width:320px;display:inline-block;position:relative;max-width:calc(100vw - 32px);outline:none}@media (min-width:321px){:host{--kirby_internal_min-screen-width:375px}}:host.expand{display:block}:host:not(.expand) kirby-card{min-width:calc(var(--kirby_internal_min-screen-width) - 32px);max-width:calc(100vw - 32px)}@media (hover:hover){:host:focus>button,:host:focus>button.attention-level3{border-color:#4d90fe}}:host.error>button,:host.ng-touched.ng-invalid>button{border-color:var(--kirby-danger)}:host>button{position:relative;margin:0;outline:none;width:100%;transition:box-shadow .2s,border-color .2s}:host>button.attention-level2{border:1px solid transparent}:host>button .text{overflow:hidden;text-overflow:ellipsis}kirby-card{display:none;opacity:0;position:absolute;width:100%;max-height:352px;margin-top:4px;overflow-y:auto;box-shadow:0 20px 30px -15px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);z-index:800}:host(.is-opening) kirby-card{display:block}:host(.is-open)>button{box-shadow:0 20px 30px -15px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08)}:host(.is-open) kirby-card{display:block;opacity:1}:host(.popout-left) kirby-card{right:0}:host(.popout-up) kirby-card{top:0;margin-top:-4px;transform:translateY(-100%)}:host(.popout-up).is-open>button{z-index:801}:host-context(kirby-calendar)>button{border-color:transparent;font-weight:700;font-size:medium}:host-context(kirby-calendar).is-open>button{box-shadow:none}"]}]}],He.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef},{type:e.ChangeDetectorRef}]},He.propDecorators={items:[{type:e.Input}],selectedIndex:[{type:e.Input}],itemTextProperty:[{type:e.Input}],placeholder:[{type:e.Input}],popout:[{type:e.Input}],attentionLevel:[{type:e.Input}],expand:[{type:e.Input}],disabled:[{type:e.Input}],_isDisabled:[{type:e.HostBinding,args:["attr.disabled"]}],hasError:[{type:e.HostBinding,args:["class.error"]},{type:e.Input}],size:[{type:e.Input}],tabindex:[{type:e.Input}],_tabindex:[{type:e.HostBinding,args:["attr.tabindex"]}],_noBlurOnScroll:[{type:e.HostBinding,args:["attr.no-blur"]}],change:[{type:e.Output}],_isBlockLevel:[{type:e.HostBinding,args:["class.expand"]}],_role:[{type:e.HostBinding,args:["attr.role"]}],_isOpening:[{type:e.HostBinding,args:["class.is-opening"]}],isOpen:[{type:e.HostBinding,args:["class.is-open"]}],_popoutLeft:[{type:e.HostBinding,args:["class.popout-left"]}],_popoutUp:[{type:e.HostBinding,args:["class.popout-up"]}],itemTemplate:[{type:e.ContentChild,args:[Pe,{static:!0,read:e.TemplateRef}]}],slottedItems:[{type:e.ContentChildren,args:[Pe,{read:e.ElementRef}]}],cardElement:[{type:e.ViewChild,args:[It,{static:!0,read:e.ElementRef}]}],kirbyItemsDefault:[{type:e.ViewChildren,args:[De,{read:e.ElementRef}]}],kirbyItemsSlotted:[{type:e.ContentChildren,args:[De,{read:e.ElementRef}]}],_onTab:[{type:e.HostListener,args:["keydown.tab",["$event"]]}],_onMouseDown:[{type:e.HostListener,args:["mousedown",["$event"]]}],_onFocus:[{type:e.HostListener,args:["focus"]}],_onBlur:[{type:e.HostListener,args:["keydown.enter"]},{type:e.HostListener,args:["keydown.escape"]},{type:e.HostListener,args:["blur"]}],_onSpace:[{type:e.HostListener,args:["keydown.space",["$event"]]}],_onEnter:[{type:e.HostListener,args:["keydown.enter",["$event"]]}],_onArrowKeys:[{type:e.HostListener,args:["keydown.arrowup",["$event"]]},{type:e.HostListener,args:["keydown.arrowdown",["$event"]]},{type:e.HostListener,args:["keydown.arrowleft",["$event"]]},{type:e.HostListener,args:["keydown.arrowright",["$event"]]}],_onHomeEndKeys:[{type:e.HostListener,args:["keydown.home",["$event"]]},{type:e.HostListener,args:["keydown.end",["$event"]]}]};var Fe=function(){function t(){}return t.prototype.ngAfterContentInit=function(){var t=this;this.enforceAttentionLevelRules(),this.slottedButtons.changes.subscribe((function(){setTimeout((function(){return t.enforceAttentionLevelRules()}))}))},t.prototype.enforceAttentionLevelRules=function(){this.slottedButtons.forEach((function(t,e){0===e&&t.isAttentionLevel1||t.isAttentionLevel3||(t.attentionLevel="3")}))},t}();Fe.decorators=[{type:e.Component,args:[{selector:"kirby-empty-state",template:'<article>\n <div *ngIf="iconName || customIconName" class="icon-outline">\n <kirby-icon [name]="iconName" [customName]="customIconName" size="lg"></kirby-icon>\n </div>\n <h3 *ngIf="title" class="title">{{ title }}</h3>\n <p *ngIf="subtitle" class="subtitle">{{ subtitle }}</p>\n <div class="content">\n <ng-content></ng-content>\n </div>\n</article>\n',styles:["article{max-width:330px;margin:auto;text-align:center}.icon-outline,article{display:flex;flex-direction:column;justify-content:center}.icon-outline{width:96px;height:96px;margin-left:auto;margin-right:auto;margin-bottom:24px;border:4px solid var(--kirby-medium);border-radius:50%}kirby-icon{color:var(--kirby-medium)}h3.title{margin-bottom:8px}p.subtitle{margin-bottom:24px;white-space:pre-wrap}:host(.primary) .icon-outline{border-color:var(--kirby-primary)}:host(.primary) kirby-icon{color:var(--kirby-primary)}:host(.secondary) .icon-outline{border-color:var(--kirby-secondary)}:host(.secondary) kirby-icon{color:var(--kirby-secondary)}:host(.tertiary) .icon-outline{border-color:var(--kirby-tertiary)}:host(.tertiary) kirby-icon{color:var(--kirby-tertiary)}:host(.success) .icon-outline{border-color:var(--kirby-success)}:host(.success) kirby-icon{color:var(--kirby-success)}:host(.warning) .icon-outline{border-color:var(--kirby-warning)}:host(.warning) kirby-icon{color:var(--kirby-warning)}:host(.danger) .icon-outline{border-color:var(--kirby-danger)}:host(.danger) kirby-icon{color:var(--kirby-danger)}:host(.light) .icon-outline{border-color:var(--kirby-light)}:host(.light) kirby-icon{color:var(--kirby-light)}:host(.medium) .icon-outline{border-color:var(--kirby-medium)}:host(.medium) kirby-icon{color:var(--kirby-medium)}:host(.dark) .icon-outline{border-color:var(--kirby-dark)}:host(.dark) kirby-icon{color:var(--kirby-dark)}"]}]}],Fe.propDecorators={iconName:[{type:e.Input}],customIconName:[{type:e.Input}],title:[{type:e.Input}],subtitle:[{type:e.Input}],slottedButtons:[{type:e.ContentChildren,args:[lt]}]};var Ne=function(){function t(){this._labelId=Ie.scopedTo("kirby-radio-label").next()}return Object.defineProperty(t.prototype,"_isDisabled",{get:function(){return this.disabled?"disabled":null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buttonTabIndex",{get:function(){return this.ionRadioElement?this.ionRadioElement.nativeElement.tabIndex:-1},enumerable:!1,configurable:!0}),t.prototype.focus=function(){this.ionRadioElement&&this.ionRadioElement.nativeElement.focus()},t}();Ne.decorators=[{type:e.Component,args:[{selector:"kirby-radio",template:'<div class="wrapper">\n <ion-radio\n [value]="value"\n [disabled]="disabled"\n mode="md"\n [attr.aria-labelledby]="text ? _labelId : null"\n ></ion-radio>\n <span [id]="_labelId" *ngIf="text">{{ text }}</span>\n</div>\n',styles:[":host{display:inline-block}:host.has-label{display:block;line-height:24px;white-space:pre-line}:host.has-label div.wrapper{position:relative;display:inline-flex;align-items:flex-start;vertical-align:top;padding:16px 12px 16px 0}:host.has-label.xs .wrapper,:host.has-label :host-context(.radio-xs) .wrapper{padding-top:4px;padding-bottom:4px}:host.has-label.sm .wrapper,:host.has-label :host-context(.radio-sm) .wrapper{padding-top:10px;padding-bottom:10px}:host.has-label.md .wrapper,:host.has-label :host-context(.radio-md) .wrapper{padding-top:16px;padding-bottom:16px}:host.has-label ion-radio{position:static;margin-left:16px;margin-right:12px}:host[disabled]{color:var(--kirby-text-color-semi-dark)}:host[disabled] ion-radio{opacity:1;--color:var(--kirby-medium);--color-checked:var(--kirby-medium)}:host[disabled] ion-radio::part(container){background-color:var(--kirby-semi-light)}ion-radio{min-height:24px;min-width:24px;padding:2px;box-sizing:border-box;--border-width:1px;--color:var(--kirby-semi-dark);--color-checked:var(--kirby-success)}ion-radio::part(container){background-color:var(--kirby-white)}ion-radio::part(mark){width:60%;height:60%}ion-radio:active{--color:transparent}ion-radio:active::part(container){background-color:var(--kirby-white-shade)}ion-radio :host-context(kirby-radio-group.error) ion-radio,ion-radio :host-context(kirby-radio-group.error) ion-radio:active,ion-radio :host-context(kirby-radio-group.ng-touched.ng-invalid) ion-radio,ion-radio :host-context(kirby-radio-group.ng-touched.ng-invalid) ion-radio:active{--color:var(--kirby-danger)}@media (hover:hover){ion-radio:focus::part(container){box-shadow:0 0 0 1px var(--kirby-background-color),0 0 0 3px #4d90fe}}ion-radio.radio-checked{--border-width:0px}ion-radio.radio-checked:not(:focus):not(.radio-disabled)::part(container){box-shadow:0 5px 10px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08)}:host-context(kirby-item){z-index:1}:host-context(kirby-item) ion-radio{margin:0}:host-context(kirby-item)[slot=start]{margin-inline-end:12px}"]}]}],Ne.propDecorators={value:[{type:e.Input}],text:[{type:e.HostBinding,args:["class.has-label"]},{type:e.Input}],size:[{type:e.HostBinding,args:["class"]},{type:e.Input}],disabled:[{type:e.Input}],_isDisabled:[{type:e.HostBinding,args:["attr.disabled"]}],ionRadioElement:[{type:e.ViewChild,args:[n.IonRadio,{read:e.ElementRef,static:!0}]}]};var We=function(){function t(t){this.changeDetectionRef=t,this.hasError=!1,this.itemTextProperty="text",this.itemDisabledProperty="disabled",this.valueChange=new e.EventEmitter,this._disabled=!1,this._items=[],this._onChangeCallback=function(){},this._onTouched=function(){},this._selectedIndex=-1,this._value=null}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t,this.setProjectedRadiosDisabledState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this._items||[]},set:function(t){(t&&t.length||this.items.length)&&(this._items=t,this.refreshSelectionState())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){"string"==typeof t&&(t=parseInt(t)),null!=t&&NaN!==t||(t=-1),t!==this.selectedIndex&&(this._selectedIndex=t,this._value=this.getValueFromSelectedIndex()||null)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this.setSelectedItem(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasItemsFromContentProjection",{get:function(){return!this.items.length&&!this._customItemTemplate&&this.projectedRadioButtons&&this.projectedRadioButtons.length>0},enumerable:!1,configurable:!0}),t.prototype.focus=function(){var t=function(t){return t&&t.find((function(t){return!isNaN(t.buttonTabIndex)&&-1!==t.buttonTabIndex}))},e=t(this.radioButtons)||t(this.projectedRadioButtons);e&&e.focus()},t.prototype.ngAfterContentInit=function(){this.initSelectionStateFromProjectedContent(),this.listenForProjectedRadiosChange()},t.prototype.registerOnChange=function(t){this._onChangeCallback=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t,this.changeDetectionRef.markForCheck()},t.prototype.writeValue=function(t){this.value=t,this.changeDetectionRef.markForCheck()},t.prototype._getTextFromItem=function(t){return t?"string"==typeof t?t:t[this.itemTextProperty]:null},t.prototype._getDisabledStateFromItem=function(t){if(t)return"string"==typeof t?void 0:t[this.itemDisabledProperty]},Object.defineProperty(t.prototype,"_hasItems",{get:function(){return this.items.length>0||this.hasItemsFromContentProjection},enumerable:!1,configurable:!0}),t.prototype._onChange=function(t){t!==this._value&&(this.setSelectedItem(t),this.valueChange.emit(t),this._onChangeCallback(t))},t.prototype._onRadioBlur=function(){this._onTouched()},t.prototype.getIndexOfSelectedValue=function(){return this.value?this.hasItemsFromContentProjection?this.getIndexOfProjectedRadio(this.value):this.items.indexOf(this.value):-1},t.prototype.getIndexOfProjectedRadio=function(t){var e=-1;return this.projectedRadioButtons&&this.projectedRadioButtons.find((function(n,i){var o=n.value===t;return o&&(e=i),o})),e},t.prototype.getValueFromSelectedIndex=function(){if(-1!==this.selectedIndex)return this.hasItemsFromContentProjection?this.getValueFromProjectedRadios(this.selectedIndex):this.items[this.selectedIndex]},t.prototype.getValueFromProjectedRadios=function(t){var e=this.projectedRadioButtons&&this.projectedRadioButtons.find((function(e,n){return n===t}));return e&&e.value},t.prototype.initSelectionStateFromProjectedContent=function(){this.hasItemsFromContentProjection&&this.refreshSelectionState()},t.prototype.listenForProjectedRadiosChange=function(){var t=this;this.projectedRadioButtons.changes.subscribe((function(){t.refreshStateFromProjectedContent(),t.disabled&&setTimeout((function(){return t.setProjectedRadiosDisabledState(t.disabled)}))}))},t.prototype.refreshSelectionState=function(){this.value&&(this._selectedIndex=this.getIndexOfSelectedValue()),this._value=this.getValueFromSelectedIndex()||null},t.prototype.refreshStateFromProjectedContent=function(){this._customItemTemplate||(this.changeDetectionRef.markForCheck(),this.refreshSelectionState())},t.prototype.setSelectedItem=function(t){t!==this._value&&(this._value=t,this._selectedIndex=this.getIndexOfSelectedValue())},t.prototype.setProjectedRadiosDisabledState=function(t){var e=this;this.projectedRadioButtons&&this.projectedRadioButtons.length&&this.projectedRadioButtons.forEach((function(n,i){n.disabled=t||e._getDisabledStateFromItem(e.items[i])}))},t}();We.decorators=[{type:e.Component,args:[{selector:"kirby-radio-group",template:'<ion-radio-group *ngIf="_hasItems" [value]="value" (ionChange)="_onChange($event.detail.value)">\n <ng-container *ngIf="!items || !items.length; else itemsTemplate">\n <ng-content></ng-content>\n </ng-container>\n</ion-radio-group>\n\n<ng-template #itemsTemplate>\n <ng-container *ngFor="let item of items; let i = index">\n <ng-container\n *ngTemplateOutlet="\n _customItemTemplate || defaultItemTemplate;\n context: { $implicit: item, selected: i === selectedIndex, index: i }\n "\n ></ng-container>\n </ng-container>\n</ng-template>\n\n<ng-template #defaultItemTemplate let-item>\n <kirby-radio\n [value]="item"\n [disabled]="disabled || _getDisabledStateFromItem(item)"\n [text]="_getTextFromItem(item)"\n ></kirby-radio>\n</ng-template>\n',providers:[{provide:b.NG_VALUE_ACCESSOR,useExisting:We,multi:!0}],changeDetection:e.ChangeDetectionStrategy.OnPush,styles:["ion-radio-group { display: inherit; flex-wrap: inherit}"]}]}],We.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},We.propDecorators={disabled:[{type:e.Input}],hasError:[{type:e.HostBinding,args:["class.error"]},{type:e.Input}],items:[{type:e.Input}],itemTextProperty:[{type:e.Input}],itemDisabledProperty:[{type:e.Input}],selectedIndex:[{type:e.Input}],value:[{type:e.Input}],valueChange:[{type:e.Output}],_customItemTemplate:[{type:e.ContentChild,args:[Pe,{read:e.TemplateRef}]}],radioButtons:[{type:e.ViewChildren,args:[Ne]}],projectedRadioButtons:[{type:e.ContentChildren,args:[Ne,{descendants:!0}]}],_onRadioBlur:[{type:e.HostListener,args:["ionBlur"]}]};var Ve,$e=function(){function t(){}return Object.defineProperty(t.prototype,"text",{get:function(){if(void 0!==this.length){var t=this.maxlength?"/"+this.maxlength:"";return""+this.length+t}},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.listenTo&&(this.length=this.listenTo.value?this.listenTo.value.length:0,this.maxlength=this.listenTo.maxlength,this._inputChangeSubscription=this.listenTo.kirbyChange.subscribe((function(e){t.length=e.length})))},t.prototype.ngOnDestroy=function(){this._inputChangeSubscription&&this._inputChangeSubscription.unsubscribe()},t}();$e.decorators=[{type:e.Component,args:[{selector:"kirby-input-counter",template:'<kirby-form-field-message [text]="text"></kirby-form-field-message>\n',styles:[""]}]}],$e.propDecorators={listenTo:[{type:e.Input}]},(Ve=t.InputSize||(t.InputSize={})).medium="md",Ve.large="lg";var Ge=function(){function n(){this.kirbyChange=new e.EventEmitter,this.size=t.InputSize.large,this.autocomplete="off",this.autocorrect="off"}return Object.defineProperty(n.prototype,"type",{set:function(t){var e=n.typeToInputmodeMap[t];e&&!this.inputmode&&(this.inputmode=e)},enumerable:!1,configurable:!0}),n.prototype._onKeyUp=function(t){this.kirbyChange.emit(t)},n.prototype._onCutPaste=function(t){var e=this;setTimeout((function(){return e.kirbyChange.emit(t.value)}))},n.prototype.ngOnChanges=function(t){t.value&&this.kirbyChange.emit(t.value.currentValue)},n}();Ge.typeToInputmodeMap={number:"decimal",search:"search"},Ge.decorators=[{type:e.Component,args:[{changeDetection:e.ChangeDetectionStrategy.OnPush,selector:"input[kirby-input]",template:"",styles:[":host(.error){border:1px solid var(--kirby-danger)}:host(.cloned-input){pointer-events:none;position:absolute;top:0;left:0}:host-context(label).cloned-input{top:24px}:host{background-color:var(--kirby-white);color:var(--kirby-white-contrast);border:none;box-sizing:border-box;display:block;font-family:var(--kirby-font-family);font-size:16px;line-height:24px;outline:none;margin:0;-webkit-appearance:none;border-radius:16px;box-shadow:0 5px 10px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);padding:16px;width:100%}:host.borderless,:host:host-context(kirby-item){border-radius:0;box-shadow:none;padding:0;width:auto}:host:disabled{background-color:var(--kirby-light-tint);color:var(--kirby-text-color-semi-dark);box-shadow:none}:host::placeholder{color:var(--kirby-text-color-semi-dark)}:host::-ms-input-placeholder,:host::-webkit-input-placeholder{color:var(--kirby-text-color-semi-dark)}:host{height:56px}:host[type=number]{-webkit-appearance:textfield;appearance:textfield;-moz-appearance:textfield}:host::-webkit-inner-spin-button,:host::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}:host(.md){height:40px;border-radius:24px}:host-context(kirby-item kirby-form-field[slot=end])[type=number]{font-weight:700}.date-mask-wrapper{position:relative}:host-context(.date-mask-wrapper){color:var(--kirby-text-color-semi-dark)}.date-mask{font-family:var(--kirby-font-family);font-size:16px;line-height:24px;color:var(--kirby-white-contrast);position:absolute;top:0;left:0;margin:16px}"]}]}],Ge.propDecorators={type:[{type:e.Input}],size:[{type:e.HostBinding,args:["class"]},{type:e.Input}],borderless:[{type:e.HostBinding,args:["class.borderless"]},{type:e.Input}],hasError:[{type:e.HostBinding,args:["class.error"]},{type:e.Input}],autocomplete:[{type:e.HostBinding,args:["attr.autocomplete"]},{type:e.Input}],autocorrect:[{type:e.HostBinding,args:["attr.autocorrect"]},{type:e.Input}],value:[{type:e.HostBinding,args:["attr.value"]},{type:e.Input}],maxlength:[{type:e.HostBinding,args:["attr.maxlength"]},{type:e.Input}],inputmode:[{type:e.HostBinding,args:["attr.inputmode"]},{type:e.Input}],_onKeyUp:[{type:e.HostListener,args:["keyup",["$event.target.value"]]}],_onCutPaste:[{type:e.HostListener,args:["paste",["$event.target"]]},{type:e.HostListener,args:["cut",["$event.target"]]}]};var Ue=function(){function t(){this.kirbyChange=new e.EventEmitter,this.autocomplete="off",this.autocorrect="off"}return t.prototype._onKeyUp=function(t){this.kirbyChange.emit(t)},t.prototype._onCutPaste=function(t){var e=this;setTimeout((function(){return e.kirbyChange.emit(t.value)}))},t.prototype.ngOnChanges=function(t){t.value&&this.kirbyChange.emit(t.value.currentValue)},t}();Ue.decorators=[{type:e.Component,args:[{changeDetection:e.ChangeDetectionStrategy.OnPush,selector:"textarea[kirby-textarea]",template:'<ng-content *ngIf="!value"></ng-content>\n<ng-container *ngIf="value">{{ value }}</ng-container>\n',styles:[":host(.error){border:1px solid var(--kirby-danger)}:host(.cloned-input){pointer-events:none;position:absolute;top:0;left:0}:host-context(label).cloned-input{top:24px}:host{background-color:var(--kirby-white);color:var(--kirby-white-contrast);border:none;box-sizing:border-box;display:block;font-size:16px;line-height:24px;outline:none;margin:0;-webkit-appearance:none;border-radius:16px;box-shadow:0 5px 10px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);padding:16px;width:100%}:host.borderless,:host:host-context(kirby-item){border-radius:0;box-shadow:none;padding:0;width:auto}:host:disabled{background-color:var(--kirby-light-tint);color:var(--kirby-text-color-semi-dark);box-shadow:none}:host::placeholder{color:var(--kirby-text-color-semi-dark)}:host::-ms-input-placeholder,:host::-webkit-input-placeholder{color:var(--kirby-text-color-semi-dark)}:host{font-family:var(--kirby-font-family);resize:none}@media (min-width:721px){:host{resize:vertical}}"]}]}],Ue.propDecorators={value:[{type:e.Input}],borderless:[{type:e.HostBinding,args:["class.borderless"]},{type:e.Input}],hasError:[{type:e.HostBinding,args:["class.error"]},{type:e.Input}],autocomplete:[{type:e.HostBinding,args:["attr.autocomplete"]},{type:e.Input}],autocorrect:[{type:e.HostBinding,args:["attr.autocorrect"]},{type:e.Input}],maxlength:[{type:e.HostBinding,args:["attr.maxlength"]},{type:e.Input}],_onKeyUp:[{type:e.HostListener,args:["keyup",["$event.target.value"]]}],_onCutPaste:[{type:e.HostListener,args:["paste",["$event.target"]]},{type:e.HostListener,args:["cut",["$event.target"]]}]};var Ye=function(){function t(t,e,n,i){this.platform=e,this.renderer=n,this.windowRef=i,this.isRegistered=!1,this._labelId=Ie.scopedTo("kirby-form-field-label").next(),this.element=t.nativeElement}return Object.defineProperty(t.prototype,"_wrapContentInLabel",{get:function(){return!(!this.label||!this.input&&!this.textarea)},enumerable:!1,configurable:!0}),t.prototype.dispatchLoadEvent=function(){this.windowRef.nativeWindow.document.dispatchEvent(new CustomEvent("ionInputDidLoad",{detail:this.element}))},t.prototype._onRegisterFormField=function(){this.dispatchLoadEvent()},t.prototype.onLabelClick=function(){this.radioGroupComponent&&this.radioGroupComponent.focus()},t.prototype.focus=function(){if(this.inputElement)if(this.isTouch){var t=new TouchEvent("touchstart"),e=new TouchEvent("touchend");this.inputElement.dispatchEvent(t),this.inputElement.dispatchEvent(e)}else this.inputElement.focus()},t.prototype.ngOnInit=function(){this.isTouch=this.platform.isTouch()},t.prototype.ngAfterContentInit=function(){this.label&&this.radioGroupElement&&this.renderer.setAttribute(this.radioGroupElement.nativeElement,"aria-labelledby",this._labelId)},t.prototype.ngAfterContentChecked=function(){this.inputElement||(this.inputElement=this.element.querySelector("input, textarea")),!this.isRegistered&&this.element.isConnected&&this.inputElement&&!this.inputElement.readOnly&&(this.isRegistered=!0,this.dispatchLoadEvent())},t.prototype.ngOnDestroy=function(){this.windowRef.nativeWindow.document.dispatchEvent(new CustomEvent("ionInputDidUnload",{detail:this.element}))},t}();Ye.decorators=[{type:e.Component,args:[{changeDetection:e.ChangeDetectionStrategy.OnPush,selector:"kirby-form-field",template:'<label *ngIf="_wrapContentInLabel">\n <ng-container *ngTemplateOutlet="labelTextTemplate"></ng-container>\n <ng-container *ngTemplateOutlet="slottedInputTemplate"></ng-container>\n</label>\n\n<ng-container *ngIf="!_wrapContentInLabel">\n <ng-container *ngTemplateOutlet="labelTemplate"></ng-container>\n <ng-container *ngTemplateOutlet="slottedInputTemplate"></ng-container>\n</ng-container>\n\n<div *ngIf="message || counter" class="texts">\n <kirby-form-field-message\n *ngIf="message"\n class="message"\n [text]="message"\n ></kirby-form-field-message>\n\n <div *ngIf="counter" class="counter">\n <ng-content select="kirby-input-counter"></ng-content>\n </div>\n</div>\n\n<ng-template #slottedInputTemplate>\n <ng-content select="input[kirby-input]"></ng-content>\n <ng-content select="textarea[kirby-textarea]"></ng-content>\n <ng-content select="kirby-radio-group"></ng-content>\n</ng-template>\n\n<ng-template #labelTextTemplate>\n <ng-container *ngIf="label">\n <span class="text">{{ label }}</span>\n </ng-container>\n</ng-template>\n\n<ng-template #labelTemplate>\n <ng-container *ngIf="label">\n <label class="text" [id]="_labelId" (click)="onLabelClick()">{{ label }}</label>\n </ng-container>\n</ng-template>\n',styles:[":host{display:block;position:relative;margin-bottom:16px}:host-context(kirby-item){margin-bottom:0}.texts{display:flex;justify-content:space-between;padding:2px 16px 0}.texts .message{flex:75%}.texts .message:only-child{flex-basis:auto}.texts .counter{flex:25%;text-align:right}.text,label{display:block}.text{font-size:14px;font-weight:300;line-height:20px;margin-bottom:4px;padding:0 16px}"]}]}],Ye.ctorParameters=function(){return[{type:e.ElementRef},{type:et},{type:e.Renderer2},{type:H}]},Ye.propDecorators={label:[{type:e.Input}],message:[{type:e.Input}],counter:[{type:e.ContentChild,args:[$e,{static:!1}]}],radioGroupComponent:[{type:e.ContentChild,args:[We]}],radioGroupElement:[{type:e.ContentChild,args:[We,{read:e.ElementRef}]}],input:[{type:e.ContentChild,args:[Ge,{read:e.ElementRef}]}],textarea:[{type:e.ContentChild,args:[Ue,{read:e.ElementRef}]}],_onRegisterFormField:[{type:e.HostListener,args:["kirbyRegisterFormField"]}]};var Ke=function(){this.position="left"};Ke.decorators=[{type:e.Component,args:[{changeDetection:e.ChangeDetectionStrategy.OnPush,selector:"kirby-form-field-message",template:"{{ text }}<ng-content></ng-content>\n",styles:[":host{font-style:italic;font-size:12px;font-weight:400;font-stretch:normal;line-height:16px;letter-spacing:normal;color:var(--kirby-text-color-black)}"]}]}],Ke.propDecorators={text:[{type:e.Input}],position:[{type:e.Input}]};var qe=function(){function t(t,e,n){this.elementRef=t,this.renderer=e,this.locale=n,this.elementRef.nativeElement.removeAttribute("type")}return t.prototype.onInput=function(){this.updateMask(this.elementRef.nativeElement.value)},t.prototype.ngAfterViewInit=function(){this.initMask()},t.prototype.initMask=function(){var t=this.getInputFormat(),e=this.getPlaceholder(t);this.renderer.setAttribute(this.elementRef.nativeElement,"placeholder",e),new D.default("datetime",{inputFormat:t,placeholder:e}).mask(this.elementRef.nativeElement),this.appendMaskingElement()},t.prototype.getInputFormat=function(){return a.getLocaleDateFormat(this.locale,a.FormatWidth.Short).toLowerCase().replace(/d+/,"dd").replace(/m+/,"mm").replace(/y+/,"yyyy")},t.prototype.getPlaceholder=function(t){return"da"===this.locale?t.split("y").join("å"):t},t.prototype.appendMaskingElement=function(){var t=this.wrapElement(this.elementRef.nativeElement);this.renderer.addClass(t,"date-mask-wrapper"),this.maskingElement=this.renderer.createElement("div"),this.renderer.appendChild(t,this.maskingElement),this.renderer.addClass(this.maskingElement,"date-mask")},t.prototype.wrapElement=function(t){var e=this.renderer.createElement("div"),n=t.parentElement;return this.renderer.insertBefore(n,e,t),this.renderer.appendChild(e,t),e},t.prototype.updateMask=function(t){if(this.maskingElement){var e=t.match(/.*?(\d)[^\d]*$/);this.maskingElement.innerHTML=t?t.slice(0,t.lastIndexOf(e[1])+1):""}},t}();qe.decorators=[{type:e.Directive,args:[{selector:'[kirby-input][type="date"]'}]}],qe.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2},{type:String,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},qe.propDecorators={onInput:[{type:e.HostListener,args:["input"]}]};var Ze=function(){function t(t,e){this.elementRef=t,this.locale=e,this.precision=2,this.setMaxOnOverflow=!1,this.groupSeparator=a.getLocaleNumberSymbol(this.locale,a.NumberSymbol.Group),this.radixPoint=a.getLocaleNumberSymbol(this.locale,a.NumberSymbol.Decimal),this._allowMinus=!1,this.onChange=function(t){}}return Object.defineProperty(t.prototype,"allowMinus",{set:function(t){this._allowMinus=t||(this.min||0)<0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disableGroupSeperator",{set:function(t){this._groupSeperatorDisabled=""===String(t)||"true"===String(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxlength",{set:function(t){this._maxlength=t;var e=parseInt("9".repeat(t));this.max=this.getMax(e),this.min=this.getMin(e)},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.elementRef.nativeElement.setAttribute("type","text"),this.elementRef.nativeElement.removeAttribute("maxlength"),this.initMask()},t.prototype.writeValue=function(t){if(this.inputmask){var e=String(t).replace(".",this.radixPoint);this.inputmask.setValue(e)}},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){},t.prototype.initMask=function(){var t=this;new D.default("decimal",{groupSeparator:this._groupSeperatorDisabled?"":this.groupSeparator,radixPoint:this.radixPoint,digits:this._maxlength?0:this.precision,min:this.min,max:this.max,allowMinus:this._allowMinus,negationSymbol:{front:a.getLocaleNumberSymbol(this.locale,a.NumberSymbol.MinusSign),back:""},SetMaxOnOverflow:this.setMaxOnOverflow,showMaskOnFocus:!1,showMaskOnHover:!1,placeholder:"",onBeforeWrite:function(){if(t.inputmask){var e=t.inputmask.unmaskedvalue();t.onChange(e.replace(t.radixPoint,"."))}}}).mask(this.elementRef.nativeElement),this.inputmask=this.elementRef.nativeElement.inputmask},t.prototype.getMax=function(t){return void 0===this.max?t:Math.min(this.max,t)},t.prototype.getMin=function(t){if(this.allowMinus)return t=-Math.abs(t),void 0===this.min?t:-Math.abs(Math.max(this.min,t))},t}();Ze.decorators=[{type:e.Directive,args:[{selector:"[kirby-decimal-mask]",providers:[{provide:b.NG_VALUE_ACCESSOR,multi:!0,useExisting:Ze}]}]}],Ze.ctorParameters=function(){return[{type:e.ElementRef},{type:String,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},Ze.propDecorators={min:[{type:e.Input}],max:[{type:e.Input}],precision:[{type:e.Input}],setMaxOnOverflow:[{type:e.Input}],allowMinus:[{type:e.Input}],disableGroupSeperator:[{type:e.Input}],maxlength:[{type:e.Input}]};var Je=function(){function t(t,e){this.renderer=t,this.document=e,this.disabled=!1,this.horizontalAlignment="right",this._isFabSheetOpen=!1,this._isBackdropVisible=!1}return Object.defineProperty(t.prototype,"isFabSheetOpen",{get:function(){return this._isFabSheetOpen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isBackdropVisible",{get:function(){return this._isBackdropVisible},enumerable:!1,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=rt.icons.find((function(t){return"close"===t.name}));this.setCloseIcon(t)},t.prototype.setCloseIcon=function(t,e){var n=this;void 0===e&&(e=0);var i=this.ionFabButton.nativeElement;if(i&&t&&!(e>=20)){if(i.shadowRoot&&i.shadowRoot.innerHTML){var o=i.shadowRoot.querySelector(".close-icon ion-icon");if(o){var r=o.shadowRoot.querySelector(".icon-inner svg");if(o&&r)return void(o.src=t.svg)}}e++,setTimeout((function(){return n.setCloseIcon(t,e)}),20)}},t.prototype.ngAfterContentInit=function(){this.actionSheet&&(this.actionSheet.hideCancel=!0)},t.prototype.hideActions=function(t){t.close(),this._isFabSheetOpen=!1,this._isBackdropVisible=!1,this.renderer.removeClass(this.document.body,"fab-sheet-active")},t.prototype.onFabClick=function(t){var e=this;this._isFabSheetOpen=!t.activated,this._isFabSheetOpen?this.renderer.addClass(this.document.body,"fab-sheet-active"):this.renderer.removeClass(this.document.body,"fab-sheet-active"),setTimeout((function(){return e._isBackdropVisible=e.isFabSheetOpen}))},t}();Je.decorators=[{type:e.Component,args:[{selector:"kirby-fab-sheet",template:'<ion-backdrop\n *ngIf="actionSheet && isFabSheetOpen"\n (ionBackdropTap)="hideActions(fab)"\n (click)="hideActions(fab)"\n></ion-backdrop>\n<ion-fab #fab (click)="disabled || onFabClick(fab)">\n <ion-fab-button [disabled]="disabled" [attr.disabled]="disabled ? true : null" tabindex="-1">\n <ng-content select="kirby-icon"></ng-content>\n </ion-fab-button>\n <ion-fab-list *ngIf="actionSheet" side="top" class="{{ horizontalAlignment }}">\n <ng-content select="kirby-action-sheet"></ng-content>\n </ion-fab-list>\n</ion-fab>\n',styles:[":host{--kirby-action-sheet-margin-horizontal:16px}ion-fab-button{--box-shadow:0 20px 30px -15px rgba(28,28,28,0.3),0 0 5px 0 rgba(28,28,28,0.08);width:64px;height:64px;-webkit-user-select:none;user-select:none;outline:none}@media (hover:hover){ion-fab-button:focus{--border-width:1px;--border-style:solid;--border-color:#4d90fe}}ion-fab-button[disabled]{--background:var(--kirby-semi-light);--box-shadow:none;opacity:1}ion-fab{position:fixed;bottom:16px;right:16px}:host-context(.fixed-content) ion-fab{position:absolute}ion-backdrop{opacity:0;transition:opacity .75s;position:fixed;z-index:999}:host(.backdrop-visible) ion-backdrop{opacity:.4}@media (min-width:721px){:host(.backdrop-visible) ion-backdrop{opacity:0}}ion-fab-list{margin-top:76px;margin-bottom:76px;right:0}"]}]}],Je.ctorParameters=function(){return[{type:e.Renderer2},{type:void 0,decorators:[{type:e.Inject,args:[a.DOCUMENT]}]}]},Je.propDecorators={disabled:[{type:e.Input}],horizontalAlignment:[{type:e.Input}],isFabSheetOpen:[{type:e.HostBinding,args:["class.is-open"]}],isBackdropVisible:[{type:e.HostBinding,args:["class.backdrop-visible"]}],actionSheet:[{type:e.ContentChild,args:[z,{static:!1}]}],ionFabButton:[{type:e.ViewChild,args:[n.IonFabButton,{static:!0,read:e.ElementRef}]}]};var Qe=function(){};Qe.BREAKPOINT_SCREEN_L=720,Qe.BREAKPOINT_CARD_S=320,Qe.BREAKPOINT_CARD_M=460,Qe.BREAKPOINT_CARD_L=820;var Xe=function(){function t(){this.orientationChangedSubject=new o.Subject,this.init()}return t.prototype.init=function(){this.orientationChangedSubject.next()},t.prototype.observe=function(){return this.orientationChangedSubject.asObservable()},t.prototype.ngOnDestroy=function(){this.orientationChangedSubject.complete()},t}();Xe.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new Xe},token:Xe,providedIn:"root"}),Xe.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],Xe.ctorParameters=function(){return[]};var tn=function(t,e,n,i){this.configuration=t,this.row=e,this.col=n,this.colSpan=i},en=function(){function t(t){this.breakpointHelper=t,this.cards=[]}return Object.defineProperty(t.prototype,"cardConfigurations",{set:function(t){this.cardConfigs=t,this.configureGrid()},enumerable:!1,configurable:!0}),t.prototype.configureGrid=function(){var t=this,e=0;e=void 0===this.maxColumns?this.breakpointHelper.currentScreenWidth>=Qe.BREAKPOINT_SCREEN_L?2:1:this.maxColumns,this.cards=[];var n=0,i=0,o=0;this.cardConfigs.forEach((function(r,a){if(n+=r.preferredSize,1===e)return t.cards.push(new tn(r,i,o,1)),void(i+=1);if(n<=e)t.cards.push(new tn(r,i,o,r.preferredSize)),o+=r.preferredSize;else{var s=e-(n-r.preferredSize),c=t.cards[a-1];c.colSpan=s+c.colSpan,i+=1,o=0,t.cards.push(new tn(r,i,o,r.preferredSize)),o=r.preferredSize,n=r.preferredSize}if(t.cardConfigs.length-1===a){s=e-n;t.cards[a].colSpan+=s}}))},t.prototype.ngOnInit=function(){},t.prototype.ngOnDestroy=function(){this.breakpointSubscription&&this.breakpointSubscription.unsubscribe()},t}();en.decorators=[{type:e.Component,args:[{selector:"kirby-grid",template:'<ng-container *ngFor="let card of cards">\n <ng-template\n [kirbyLoadComponent]="card.configuration"\n [cssClass]="\'grid-item--col-\' + card.colSpan"\n ></ng-template>\n</ng-container>\n',host:{"[attr.max-columns]":"maxColumns"},styles:[':host{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(var(--kirby-grid-item-min-height,auto),auto);gap:24px;max-width:var(--kirby-page-max-width);margin:0 auto}@media (min-width:721px){:host[max-columns="1"]{grid-template-columns:repeat(1,1fr)}:host[max-columns="2"]{grid-template-columns:repeat(2,1fr)}:host[max-columns="3"]{grid-template-columns:repeat(3,1fr)}:host[max-columns="4"]{grid-template-columns:repeat(4,1fr)}:host[max-columns="5"]{grid-template-columns:repeat(5,1fr)}:host[max-columns="6"]{grid-template-columns:repeat(6,1fr)}:host[max-columns="7"]{grid-template-columns:repeat(7,1fr)}:host[max-columns="8"]{grid-template-columns:repeat(8,1fr)}:host[max-columns="9"]{grid-template-columns:repeat(9,1fr)}:host[max-columns="10"]{grid-template-columns:repeat(10,1fr)}}@media (min-width:721px){::ng-deep .grid-item--col-1{grid-column:span 1}}@media (min-width:721px){::ng-deep .grid-item--col-2{grid-column:span 2}}@media (min-width:721px){::ng-deep .grid-item--col-3{grid-column:span 3}}@media (min-width:721px){::ng-deep .grid-item--col-4{grid-column:span 4}}@media (min-width:721px){::ng-deep .grid-item--col-5{grid-column:span 5}}@media (min-width:721px){::ng-deep .grid-item--col-6{grid-column:span 6}}@media (min-width:721px){::ng-deep .grid-item--col-7{grid-column:span 7}}@media (min-width:721px){::ng-deep .grid-item--col-8{grid-column:span 8}}@media (min-width:721px){::ng-deep .grid-item--col-9{grid-column:span 9}}@media (min-width:721px){::ng-deep .grid-item--col-10{grid-column:span 10}}']}]}],en.ctorParameters=function(){return[{type:Xe}]},en.propDecorators={maxColumns:[{type:e.Input}],cardConfigurations:[{type:e.Input}]};var nn=function(t,e,n){this.component=t,this.data=e,this.preferredSize=n},on=function(){};on.decorators=[{type:e.NgModule,args:[{imports:[n.IonicModule],declarations:[ct],exports:[ct]}]}];var rn=function(){function t(){this.direction="vertical"}return Object.defineProperty(t.prototype,"_direction",{get:function(){return"horizontal"===this.direction},enumerable:!1,configurable:!0}),t}();rn.decorators=[{type:e.Component,args:[{selector:"kirby-label",template:"<ion-label>\n <ng-content></ng-content>\n</ion-label>\n",styles:[":host.horizontal ion-label{display:flex;flex-direction:row;justify-content:space-between;align-items:center}:host.horizontal ion-label ::ng-deep>:not(:first-child){margin-left:12px}:host-context(kirby-item) ion-label ::ng-deep>data,:host-context(kirby-item) ion-label ::ng-deep>h1,:host-context(kirby-item) ion-label ::ng-deep>h2,:host-context(kirby-item) ion-label ::ng-deep>h3,:host-context(kirby-item) ion-label ::ng-deep>h4,:host-context(kirby-item) ion-label ::ng-deep>h5,:host-context(kirby-item) ion-label ::ng-deep>h6,:host-context(kirby-item) ion-label ::ng-deep>p{font-size:16px;line-height:24px;color:var(--kirby-text-color-black);display:block;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400}:host-context(kirby-item) ion-label ::ng-deep>data.kirby-text-bold,:host-context(kirby-item) ion-label ::ng-deep>h1.kirby-text-bold,:host-context(kirby-item) ion-label ::ng-deep>h2.kirby-text-bold,:host-context(kirby-item) ion-label ::ng-deep>h3.kirby-text-bold,:host-context(kirby-item) ion-label ::ng-deep>h4.kirby-text-bold,:host-context(kirby-item) ion-label ::ng-deep>h5.kirby-text-bold,:host-context(kirby-item) ion-label ::ng-deep>h6.kirby-text-bold,:host-context(kirby-item) ion-label ::ng-deep>p.kirby-text-bold{font-weight:700}:host-context(kirby-item) ion-label ::ng-deep>p{font-size:14px}:host-context(kirby-item) ion-label ::ng-deep>[detail],:host-context(kirby-item) ion-label ::ng-deep>[subtitle]{font-size:12px;line-height:16px}:host-context(kirby-item) ion-label ::ng-deep>[subtitle]:not(:last-child){margin-bottom:4px}:host-context(kirby-item) ion-label ::ng-deep>[detail]{color:var(--kirby-text-color-semi-dark)}:host([slot=end]) ion-label ::ng-deep>[detail],:host([slot=end]) ion-label ::ng-deep>data{margin-inline-start:16px}:host-context(kirby-item.selected) ion-label ::ng-deep>data,:host-context(kirby-item.selected) ion-label ::ng-deep>h1,:host-context(kirby-item.selected) ion-label ::ng-deep>h2,:host-context(kirby-item.selected) ion-label ::ng-deep>h3,:host-context(kirby-item.selected) ion-label ::ng-deep>h4,:host-context(kirby-item.selected) ion-label ::ng-deep>h5,:host-context(kirby-item.selected) ion-label ::ng-deep>h6,:host-context(kirby-item.selected) ion-label ::ng-deep>p{font-weight:700}"]}]}],rn.propDecorators={direction:[{type:e.Input}],_direction:[{type:e.HostBinding,args:["class.horizontal"]}]};var an=function(){};an.decorators=[{type:e.NgModule,args:[{imports:[n.IonicModule,on,a.CommonModule],declarations:[De,rn],exports:[De,rn]}]}];var sn=function(){function t(){}return t.prototype.ngOnInit=function(){},t}();sn.decorators=[{type:e.Component,args:[{selector:"kirby-spinner",template:'<div class="spinner">\n <div class="inner-circle"></div>\n <div class="outer-circle"></div>\n</div>\n',styles:[".spinner{overflow:hidden;width:32px;height:32px;position:relative;margin:0 auto}.inner-circle,.outer-circle{width:100%;height:100%;border-radius:50%;background-color:var(--kirby-primary);opacity:.6;position:absolute;top:0;left:0;animation:sk-bounce 2s ease-in-out infinite}.outer-circle{animation-delay:-1s}@keyframes sk-bounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}]}],sn.ctorParameters=function(){return[]};var cn=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(o,r){function a(t){try{c(i.next(t))}catch(t){r(t)}}function s(t){try{c(i.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((i=i.apply(t,e||[])).next())}))},ln=function(){function t(t,e,n){this.loadingController=t,this.componentFactoryResolver=e,this.injector=n,this.ionLoading=null}return t.prototype.showLoadingOverlay=function(t){return void 0===t&&(t=!0),cn(this,void 0,void 0,(function(){var e,n,i;return P(this,(function(o){switch(o.label){case 0:return this.ionLoading?[3,3]:(e=this,[4,this.loadingController.create({cssClass:"kirby-loading-overlay",duration:0,message:null,showBackdrop:t,spinner:null})]);case 1:return e.ionLoading=o.sent(),n=this.ionLoading.querySelector(".loading-wrapper"),i=document.createElement("kirby-spinner"),this.componentFactoryResolver.resolveComponentFactory(sn).create(this.injector,[],i),n.appendChild(i),[4,this.ionLoading.present()];case 2:o.sent(),o.label=3;case 3:return[2]}}))}))},t.prototype.hideLoadingOverlay=function(){return cn(this,void 0,void 0,(function(){return P(this,(function(t){switch(t.label){case 0:return this.ionLoading?[4,this.ionLoading.dismiss()]:[3,2];case 1:t.sent(),this.ionLoading=null,t.label=2;case 2:return[2]}}))}))},t}();ln.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new ln(e.ɵɵinject(n.LoadingController),e.ɵɵinject(e.ComponentFactoryResolver),e.ɵɵinject(e.INJECTOR))},token:ln,providedIn:"root"}),ln.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],ln.ctorParameters=function(){return[{type:n.LoadingController},{type:e.ComponentFactoryResolver},{type:e.Injector}]};var dn=function(){this.isLoading=!0,this.showBackdrop=!0};dn.decorators=[{type:e.Component,args:[{selector:"kirby-loading-overlay",template:'<div class="overlay-wrapper">\n <div *ngIf="isLoading" [class.backdrop]="showBackdrop" class="spinner-wrapper">\n <kirby-spinner class="spinner"></kirby-spinner>\n </div>\n <div class="content-wrapper">\n <ng-content></ng-content>\n </div>\n</div>\n',styles:[":host{display:block;min-height:32px}.overlay-wrapper{min-height:inherit;height:100%;width:100%;position:relative}.overlay-wrapper .spinner-wrapper{height:100%;width:100%;position:absolute;z-index:1001;display:flex;background:transparent;justify-content:center;align-items:center;justify-items:center}.overlay-wrapper .spinner-wrapper.backdrop{background-color:hsla(0,0%,96.5%,.8)}.overlay-wrapper .spinner-wrapper .spinner{width:32px;height:32px}"]}]}],dn.propDecorators={isLoading:[{type:e.Input}],showBackdrop:[{type:e.Input}]};var pn=function(){function t(t,n,i){this.elementRef=t,this.windowRef=n,this.zone=i,this.scrollEnd=new e.EventEmitter,this.disabled=!1,this.scroll$=new o.Subject,this.ngUnsubscribe$=new o.Subject,this.offset=.8}return t.prototype.ngAfterViewInit=function(){var t=this;this.scroll$.pipe(r.takeUntil(this.ngUnsubscribe$),r.debounceTime(100),r.filter((function(){return!t.disabled})),r.filter((function(e){return e.elementHeight*(1-t.offset)>=e.distanceToViewBottom-e.viewHeight}))).subscribe((function(){t.scrollEnd.emit()})),setTimeout((function(){var e=t.elementRef.nativeElement.closest("ion-content");e&&t.zone.runOutsideAngular((function(){o.fromEvent(e,"ionScroll").pipe(r.takeUntil(t.ngUnsubscribe$),r.debounceTime(100),r.filter((function(){return!t.disabled})),r.map((function(){return t.getScroll()})),r.filter((function(e){return e.elementHeight*(1-t.offset)>=e.distanceToViewBottom-e.viewHeight}))).subscribe((function(){t.zone.run((function(){return t.scrollEnd.emit()}))}))}))}))},t.prototype.onScroll=function(){if(!this.disabled){var t=this.getScroll();this.scroll$.next(t)}},t.prototype.ngOnDestroy=function(){this.ngUnsubscribe$.next(),this.ngUnsubscribe$.complete()},t.prototype.getScroll=function(){var t=this.elementRef.nativeElement.getBoundingClientRect();return{distanceToViewBottom:t.bottom,elementHeight:t.height,viewHeight:this.windowRef.nativeWindow.innerHeight}},t}();pn.decorators=[{type:e.Directive,args:[{selector:"[kirbyInfiniteScroll]"}]}],pn.ctorParameters=function(){return[{type:e.ElementRef},{type:H},{type:e.NgZone}]},pn.propDecorators={scrollEnd:[{type:e.Output}],disabled:[{type:e.Input}],onScroll:[{type:e.HostListener,args:["window:scroll"]}]};var hn=function(){function t(){}return t.prototype.onLoadOnDemand=function(t,e){t.isLoadOnDemandEnabled&&!t._isLoading&&(t._isLoading=!0,t.loadOnDemand.emit({complete:function(e){t.isLoadOnDemandEnabled=!e,t._isLoading=!1}}))},t}();hn.decorators=[{type:e.Injectable}];var un=function(){function t(){}return t.prototype.transform=function(t,e){if(!t)return null;if(!e)return t;var n=new Map;return t.forEach((function(t){var i=e(t),o=n.get(i);o?o.push(t):n.set(i,[t])})),Array.from(n).sort((function(t,e){var n=M(t,1)[0],i=M(e,1)[0];return n.localeCompare(i)})).map((function(t){var e=M(t,2);return{name:e[0],items:e[1]}}))},t}();un.decorators=[{type:e.Pipe,args:[{name:"groupBy"}]}];var gn=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(o,r){function a(t){try{c(i.next(t))}catch(t){r(t)}}function s(t){try{c(i.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((i=i.apply(t,e||[])).next())}))},bn=function(){function t(t,n){var i=this;this.listHelper=t,this.groupBy=n,this.items=[],this.showDivider=!1,this.markSelectedRow=!1,this.shape="rounded",this.useVirtualScroll=!1,this.virtualScrollViewportHeight=500,this.virtualScrollSettings={},this.virtualScrollTimeout=5e3,this._virtualScrollData={get:function(t,e){return i.getVirtualDataset(t,e)},settings:Object.assign({minIndex:this.virtualScrollSettings.minIndex||0,startIndex:this.virtualScrollSettings.startIndex||0,bufferSize:this.virtualScrollSettings.bufferSize||10},this.virtualScrollSettings)},this.loadOnDemand=new e.EventEmitter,this.swipeActions=[],this.itemSelect=new e.EventEmitter}return Object.defineProperty(t.prototype,"isShapeRounded",{get:function(){return"rounded"===this.shape},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShapeNone",{get:function(){return"none"===this.shape},enumerable:!1,configurable:!0}),t.prototype.getVirtualDataset=function(t,e){return gn(this,void 0,void 0,(function(){var n=this;return P(this,(function(i){switch(i.label){case 0:return[4,new Promise((function(i){setTimeout((function(){var o=n.getItemsSlice(t,e);if(o.length<e&&n.isLoadOnDemandEnabled){var r=0;n.scrollDirective.scrollEnd.emit();var a=setInterval((function(){r+=400,n._isLoading?r>n.virtualScrollTimeout&&(clearInterval(a),i([])):(clearInterval(a),i(n.getItemsSlice(t,e)))}),400)}else i(o)}),400)}))];case 1:return[2,i.sent()]}}))}))},t.prototype.getItemsSlice=function(t,e){return(this._isSectionsEnabled?this._virtualGroupedItems:this.items).slice(t,t+e)},t.prototype.ngOnInit=function(){this._isSelectable=this.itemSelect.observers.length>0,void 0===this.isLoadOnDemandEnabled&&(this.isLoadOnDemandEnabled=this.loadOnDemand.observers.length>0)},t.prototype.ngAfterViewInit=function(){var t=this;this._isSelectable&&setTimeout((function(){t.kirbyItems.forEach((function(t){t.selectable=!0}))}))},t.prototype.ngOnChanges=function(){this._isSectionsEnabled=!!this.getSectionName,this._groupedItems=this._isSectionsEnabled?this.groupBy.transform(this.items,this.getSectionName):null,this._virtualGroupedItems=this.useVirtualScroll&&this._groupedItems?this._groupedItems.reduce((function(t,e){return t.push({headingName:e.name}),t.concat.apply(t,B(e.items))}),[]):null},t.prototype._onLoadOnDemand=function(t){this.listHelper.onLoadOnDemand(this,t)},t.prototype.defaultTrackBy=function(t){return t},t.prototype.sectionTrackBy=function(t,e){return e.name},t.prototype.onItemSelect=function(t){this._selectedItem=t,this.itemSelect.emit(this._selectedItem)},t.prototype.onSwipeActionSelect=function(t){t.swipeAction.onSelected(t.item),this.list.closeSlidingItems(),t.event.stopPropagation()},t.prototype._getBoundaryClass=function(t,e){var n,i,o=e||this.items;return this._isSectionsEnabled&&this.useVirtualScroll&&(o=this._virtualGroupedItems),0===t||(null===(n=o[t-1])||void 0===n?void 0:n.headingName)?this.headerTemplate?null:"first":t===o.length-1||(null===(i=o[t+1])||void 0===i?void 0:i.headingName)?this.footerTemplate?null:"last":void 0},t}();bn.decorators=[{type:e.Component,args:[{selector:"kirby-list",template:'<ion-list\n #list\n kirbyInfiniteScroll\n (scrollEnd)="_onLoadOnDemand()"\n [disabled]="!isLoadOnDemandEnabled"\n class="list"\n [class.has-header]="headerTemplate"\n [class.has-footer]="footerTemplate"\n [class.has-divider]="showDivider"\n>\n <ion-list-header *ngIf="headerTemplate">\n <ng-container *ngTemplateOutlet="headerTemplate"></ng-container>\n </ion-list-header>\n\n <div\n *ngIf="useVirtualScroll"\n #viewport\n [style.height]="virtualScrollViewportHeight + \'px\'"\n class="viewport"\n >\n <ng-container\n *ngTemplateOutlet="virtualItemsTemplate; context: { $implicit: _virtualScrollData }"\n ></ng-container>\n </div>\n\n <ng-container *ngIf="!useVirtualScroll">\n <ng-container\n *ngTemplateOutlet="\n _isSectionsEnabled ? groupedListTemplate : itemsTemplate;\n context: { $implicit: items }\n "\n ></ng-container>\n </ng-container>\n\n <div *ngIf="footerTemplate" class="footer">\n <ng-container *ngTemplateOutlet="footerTemplate"></ng-container>\n </div>\n</ion-list>\n\n<p *ngIf="!isLoadOnDemandEnabled && noMoreItemsText" class="no-more-items">\n {{ noMoreItemsText }}\n</p>\n<div *ngIf="_isLoading" class="loading">\n <kirby-spinner></kirby-spinner>\n</div>\n\n<ng-template #groupedListTemplate>\n <ion-item-group *ngFor="let section of _groupedItems; trackBy: sectionTrackBy">\n <ion-item-divider>\n <ng-container\n *ngTemplateOutlet="sectionHeaderTemplate; context: { $implicit: section.name }"\n ></ng-container>\n </ion-item-divider>\n\n <div class="list-items">\n <ng-container\n *ngTemplateOutlet="itemsTemplate; context: { $implicit: section.items }"\n ></ng-container>\n </div>\n </ion-item-group>\n</ng-template>\n\n<ng-template #itemsTemplate let-items>\n <kirby-list-item\n *ngFor="let item of items; let i = index; trackBy: trackBy || defaultTrackBy"\n [item]="item"\n [itemTemplate]="itemTemplate"\n [swipeActions]="swipeActions"\n [boundaryClass]="_getBoundaryClass(i, items)"\n [isSelectable]="_isSelectable"\n [getItemColor]="getItemColor"\n [isSelected]="_isSelectable && item === _selectedItem"\n (itemSelect)="onItemSelect($event)"\n (swipeActionSelect)="onSwipeActionSelect($event)"\n [class.is-single]="items.length === 1"\n >\n </kirby-list-item>\n</ng-template>\n\n<ng-template #virtualItemsTemplate let-virtualScrollData>\n <div *uiScroll="let item of virtualScrollData; let i = index">\n <div [class.item-wrapper]="!item.headingName" [class.section-header]="item.headingName">\n <ion-item-divider *ngIf="item.headingName" class="virtual-group">\n <ng-container\n *ngTemplateOutlet="sectionHeaderTemplate; context: { $implicit: item.headingName }"\n ></ng-container>\n </ion-item-divider>\n <kirby-list-item\n *ngIf="!item.headingName"\n [item]="item"\n [itemTemplate]="itemTemplate"\n [swipeActions]="swipeActions"\n [boundaryClass]="_getBoundaryClass(i)"\n [isSelectable]="_isSelectable"\n [getItemColor]="getItemColor"\n [isSelected]="_isSelectable && item === _selectedItem"\n (itemSelect)="onItemSelect($event)"\n (swipeActionSelect)="onSwipeActionSelect($event)"\n >\n </kirby-list-item>\n </div>\n </div>\n</ng-template>\n',providers:[hn,un],styles:[":host{display:block}.list{box-shadow:0 5px 10px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);background:transparent;contain:inherit;padding:0}.viewport{overflow-y:auto}.item-wrapper{min-height:56px}ion-list-header{background-color:var(--kirby-white);border-bottom:1px solid var(--kirby-background-color);padding:0;text-transform:inherit;letter-spacing:inherit;font-weight:inherit;font-size:inherit;min-height:0;overflow:inherit}ion-item{--background:var(--kirby-white);--background-activated:var(--kirby-white-shade);--background-hover:var(--kirby-background-color);--background-focused:var(--kirby-background-color);--inner-border-width:0;--ion-safe-area-right:0;--min-height:56px;--padding-bottom:8px;--padding-end:16px;--padding-start:16px;--padding-top:8px;display:flex;font-size:14px;min-height:56px;overflow:visible;width:100%}ion-item-divider{font-weight:inherit}ion-item-sliding.item-sliding-active-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0)}ion-item-sliding.light{--kirby-item-background:var(--kirby-light);--kirby-item-background-activated:var(--kirby-light-shade);--kirby-item-background-focused:var(--kirby-light-shade);--kirby-item-background-hover:var(--kirby-light-tint)}ion-item-sliding.light ion-item{--background:var(--kirby-light);--color:var(--kirby-light-contrast);--background-activated:var(--kirby-light-shade);--background-focused:var(--kirby-light-shade);--background-hover:var(--kirby-light-tint)}ion-item-group{margin-bottom:24px}ion-item-group:last-of-type{margin-bottom:0}ion-item-divider{--inner-padding-end:0;--color:unset;background-color:transparent;border-color:transparent;min-height:0;padding:0 16px 8px}.footer{background-color:var(--kirby-white);border-top:1px solid var(--kirby-background-color);display:flex;align-items:center;justify-content:space-between;width:100%}.loading,.no-more-items{width:100%;padding:24px 0;text-align:center}.swipe-action{display:flex;color:var(--kirby-black);background-color:transparent}.swipe-action .primary{background-color:var(--kirby-primary);color:var(--kirby-primary-contrast)}.swipe-action .secondary{background-color:var(--kirby-secondary);color:var(--kirby-secondary-contrast)}.swipe-action .tertiary{background-color:var(--kirby-tertiary);color:var(--kirby-tertiary-contrast)}.swipe-action .success{background-color:var(--kirby-success);color:var(--kirby-success-contrast)}.swipe-action .warning{background-color:var(--kirby-warning);color:var(--kirby-warning-contrast)}.swipe-action .danger{background-color:var(--kirby-danger);color:var(--kirby-danger-contrast)}.swipe-action .light{background-color:var(--kirby-light);color:var(--kirby-light-contrast)}.swipe-action .medium{background-color:var(--kirby-medium);color:var(--kirby-medium-contrast)}.swipe-action .dark{background-color:var(--kirby-dark);color:var(--kirby-dark-contrast)}.swipe-action ion-item-option{height:100%;display:inline-block;text-align:center}.swipe-action .item-content{display:inline-grid;min-width:70px;flex-direction:column}.swipe-action .item-content ion-label{--background:unset;--color:unset}ion-item-options[side=end]{border-bottom-width:0}:host-context(.has-sections) .list{box-shadow:none}:host-context(.has-sections) .list-items{box-shadow:0 5px 10px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);border-radius:16px}:host-context(.has-sections) .virtual-group{margin-top:24px}:host-context(.has-sections) .section-header{overflow:hidden}:host-context(.has-sections) .footer{background-color:transparent;border-top:none}:host-context(.has-sections) ion-list-header{background-color:transparent;border-bottom:none}:host-context(.shape-rounded) .list,:host-context(.shape-rounded) .list-items{border-radius:16px}:host-context(.shape-rounded) ion-item-sliding.first,:host-context(.shape-rounded) ion-item.first,:host-context(.shape-rounded) ion-list-header{border-top-left-radius:16px;border-top-right-radius:16px;-webkit-mask-image:-webkit-radial-gradient(#fff,#000)}:host-context(.shape-rounded):not(.has-sections) .has-header ion-item,:host-context(.shape-rounded):not(.has-sections) .has-header ion-item-sliding,:host-context(.shape-rounded) ion-item-sliding>ion-item{border-top-left-radius:0;border-top-right-radius:0}:host-context(.shape-rounded) .footer,:host-context(.shape-rounded) ion-item-sliding.last,:host-context(.shape-rounded) ion-item.last{border-bottom-left-radius:16px;border-bottom-right-radius:16px;-webkit-mask-image:-webkit-radial-gradient(#fff,#000)}:host-context(.shape-rounded):not(.has-sections) .has-footer ion-item,:host-context(.shape-rounded):not(.has-sections) .has-footer ion-item-sliding,:host-context(.shape-rounded) ion-item-sliding>ion-item{border-bottom-left-radius:0;border-bottom-right-radius:0}:host-context(.shape-none) .list,:host-context(.shape-none) .list-items{box-shadow:none;border-radius:unset}:host-context(.shape-none) .list ion-item,:host-context(.shape-none) .list ion-item-sliding{--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;--inner-padding-start:0;--inner-padding-end:0;--inner-padding-top:0;--inner-padding-bottom:0;--background:none;--background-activated:none;--background-hover:none;--background-focused:none;overflow:visible}:host-context(.item-spacing) .list kirby-list-item{margin-bottom:16px}:host-context(.item-spacing) .list kirby-list-item:last-child,:host-context(.item-spacing) .list kirby-list-item>ion-item{margin-bottom:0}"]}]}],bn.ctorParameters=function(){return[{type:hn},{type:un}]},bn.propDecorators={list:[{type:e.ViewChild,args:["list",{static:!0}]}],scrollDirective:[{type:e.ViewChild,args:[pn]}],items:[{type:e.Input}],getItemColor:[{type:e.Input}],getSectionName:[{type:e.Input}],trackBy:[{type:e.Input}],noMoreItemsText:[{type:e.Input}],showDivider:[{type:e.Input}],markSelectedRow:[{type:e.Input}],shape:[{type:e.Input}],isShapeRounded:[{type:e.HostBinding,args:["class.shape-rounded"]}],isShapeNone:[{type:e.HostBinding,args:["class.shape-none"]}],hasItemSpacing:[{type:e.HostBinding,args:["class.item-spacing"]},{type:e.Input}],useVirtualScroll:[{type:e.Input}],virtualScrollViewportHeight:[{type:e.Input}],virtualScrollSettings:[{type:e.Input}],virtualScrollTimeout:[{type:e.Input}],isLoadOnDemandEnabled:[{type:e.Input}],loadOnDemand:[{type:e.Output}],swipeActions:[{type:e.Input}],itemSelect:[{type:e.Output}],kirbyItems:[{type:e.ContentChildren,args:[De]}],headerTemplate:[{type:e.ContentChild,args:[Ae,{static:!1,read:e.TemplateRef}]}],sectionHeaderTemplate:[{type:e.ContentChild,args:[Me,{static:!1,read:e.TemplateRef}]}],footerTemplate:[{type:e.ContentChild,args:[je,{static:!1,read:e.TemplateRef}]}],itemTemplate:[{type:e.ContentChild,args:[Pe,{static:!0,read:e.TemplateRef}]}],_isSectionsEnabled:[{type:e.HostBinding,args:["class.has-sections"]}]};var mn=function(){};mn.decorators=[{type:e.Component,args:[{selector:"kirby-list-header",template:"<ng-content></ng-content>\n",styles:[":host{background-color:transparent;display:flex;flex-direction:row;justify-content:space-between;width:100%;padding:24px}"]}]}],mn.ctorParameters=function(){return[]};var yn=function(){function t(){}return t.prototype.ngOnInit=function(){},t}();yn.decorators=[{type:e.Component,args:[{selector:"kirby-list-section-header",template:'<div class="header">\n <span class="kirby-text-small">{{ title }}</span>\n</div>\n',styles:[""]}]}],yn.ctorParameters=function(){return[]},yn.propDecorators={title:[{type:e.Input}]};var fn=function(){function t(t){this.platform=t,this._isSwipingEnabled=!1,this.swipeActions=[],this.itemSelect=new e.EventEmitter,this.swipeActionSelect=new e.EventEmitter,this.initializeSwipeActions()}return t.prototype._onItemSelect=function(t){this.isSelectable&&this.itemSelect.emit(t)},t.prototype._onSwipeActionSelect=function(t,e,n){this.swipeActionSelect.emit({swipeAction:t,item:e,event:n})},t.prototype.ngOnInit=function(){this.initializeSwipeActions()},t.prototype.ngAfterViewInit=function(){this.itemTemplate||console.warn("No item template was provided.")},t.prototype._hasSwipeActions=function(t){return!!Array.isArray(this.swipeActions)&&this.swipeActions.some((function(e){return!(e.isDisabled instanceof Function&&e.isDisabled(t))&&(!0!==e.isDisabled&&("left"===e.position||"right"===e.position))}))},t.prototype._getSwipeActions=function(t,e){var n=this;return Array.isArray(this.swipeActions)?this.swipeActions.filter((function(i){return!n.isSwipeActionDisabled(i,t)&&(!e||i.position===e)})):[]},t.prototype.isSwipeActionDisabled=function(t,e){return!!(t.isDisabled instanceof Function&&t.isDisabled(e))||!0===t.isDisabled},t.prototype._getSwipeActionEnd=function(t){return this._getSwipeActions(t,"left").length?"start":"end"},t.prototype._getSwipeActionIcon=function(t,e){if(t.icon)return t.icon instanceof Function?t.icon(e):t.icon},t.prototype._getSwipeActionTitle=function(t,e){return t.title instanceof Function?t.title(e):t.title},t.prototype._getSwipeActionType=function(t,e){return t.type instanceof Function?t.type(e):t.type},t.prototype.initializeSwipeActions=function(){this.swipeActions&&this.swipeActions.length&&(this._isSwipingEnabled=this.platform.isTouch())},t}();fn.decorators=[{type:e.Component,args:[{selector:"kirby-list-item",template:'<ion-item-sliding\n [class.selected]="isSelected"\n [kirbyListItemColor]="getItemColor"\n [item]="item"\n [disabled]="_isSwipingEnabled ? null : true"\n keyHandler\n [ngClass]="boundaryClass"\n (click)="_onItemSelect(item)"\n>\n <ng-container\n *ngTemplateOutlet="swipeActionsTemplate; context: { $implicit: item }"\n ></ng-container>\n <ng-container *ngTemplateOutlet="itemTemplate; context: { $implicit: item }"></ng-container>\n</ion-item-sliding>\n\n<ng-template #swipeActionsTemplate let-item>\n <ion-item-options *ngIf="_hasSwipeActions(item)" [side]="_getSwipeActionEnd(item)">\n <div class="swipe-action">\n <ng-container *ngFor="let swipeAction of _getSwipeActions(item)">\n <ion-item-option\n [ngClass]="_getSwipeActionType(swipeAction, item)"\n (click)="_onSwipeActionSelect(swipeAction, item, $event)"\n >\n <div class="item-content">\n <kirby-icon\n *ngIf="_getSwipeActionIcon(swipeAction, item)"\n size="sm"\n [name]="_getSwipeActionIcon(swipeAction, item)"\n >\n </kirby-icon>\n <ion-label>\n {{ _getSwipeActionTitle(swipeAction, item) }}\n </ion-label>\n </div>\n </ion-item-option>\n </ng-container>\n </div>\n </ion-item-options>\n</ng-template>\n',styles:[":host{display:block}.list{box-shadow:0 5px 10px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);background:transparent;contain:inherit;padding:0}.viewport{overflow-y:auto}.item-wrapper{min-height:56px}ion-list-header{background-color:var(--kirby-white);border-bottom:1px solid var(--kirby-background-color);padding:0;text-transform:inherit;letter-spacing:inherit;font-weight:inherit;font-size:inherit;min-height:0;overflow:inherit}ion-item{--background:var(--kirby-white);--background-activated:var(--kirby-white-shade);--background-hover:var(--kirby-background-color);--background-focused:var(--kirby-background-color);--inner-border-width:0;--ion-safe-area-right:0;--min-height:56px;--padding-bottom:8px;--padding-end:16px;--padding-start:16px;--padding-top:8px;display:flex;font-size:14px;min-height:56px;overflow:visible;width:100%}ion-item-divider{font-weight:inherit}ion-item-sliding.item-sliding-active-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0)}ion-item-sliding.light{--kirby-item-background:var(--kirby-light);--kirby-item-background-activated:var(--kirby-light-shade);--kirby-item-background-focused:var(--kirby-light-shade);--kirby-item-background-hover:var(--kirby-light-tint)}ion-item-sliding.light ion-item{--background:var(--kirby-light);--color:var(--kirby-light-contrast);--background-activated:var(--kirby-light-shade);--background-focused:var(--kirby-light-shade);--background-hover:var(--kirby-light-tint)}ion-item-group{margin-bottom:24px}ion-item-group:last-of-type{margin-bottom:0}ion-item-divider{--inner-padding-end:0;--color:unset;background-color:transparent;border-color:transparent;min-height:0;padding:0 16px 8px}.footer{background-color:var(--kirby-white);border-top:1px solid var(--kirby-background-color);display:flex;align-items:center;justify-content:space-between;width:100%}.loading,.no-more-items{width:100%;padding:24px 0;text-align:center}.swipe-action{display:flex;color:var(--kirby-black);background-color:transparent}.swipe-action .primary{background-color:var(--kirby-primary);color:var(--kirby-primary-contrast)}.swipe-action .secondary{background-color:var(--kirby-secondary);color:var(--kirby-secondary-contrast)}.swipe-action .tertiary{background-color:var(--kirby-tertiary);color:var(--kirby-tertiary-contrast)}.swipe-action .success{background-color:var(--kirby-success);color:var(--kirby-success-contrast)}.swipe-action .warning{background-color:var(--kirby-warning);color:var(--kirby-warning-contrast)}.swipe-action .danger{background-color:var(--kirby-danger);color:var(--kirby-danger-contrast)}.swipe-action .light{background-color:var(--kirby-light);color:var(--kirby-light-contrast)}.swipe-action .medium{background-color:var(--kirby-medium);color:var(--kirby-medium-contrast)}.swipe-action .dark{background-color:var(--kirby-dark);color:var(--kirby-dark-contrast)}.swipe-action ion-item-option{height:100%;display:inline-block;text-align:center}.swipe-action .item-content{display:inline-grid;min-width:70px;flex-direction:column}.swipe-action .item-content ion-label{--background:unset;--color:unset}ion-item-options[side=end]{border-bottom-width:0}:host-context(.has-sections) .list{box-shadow:none}:host-context(.has-sections) .list-items{box-shadow:0 5px 10px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);border-radius:16px}:host-context(.has-sections) .virtual-group{margin-top:24px}:host-context(.has-sections) .section-header{overflow:hidden}:host-context(.has-sections) .footer{background-color:transparent;border-top:none}:host-context(.has-sections) ion-list-header{background-color:transparent;border-bottom:none}:host-context(.shape-rounded) .list,:host-context(.shape-rounded) .list-items{border-radius:16px}:host-context(.shape-rounded) ion-item-sliding.first,:host-context(.shape-rounded) ion-item.first,:host-context(.shape-rounded) ion-list-header{border-top-left-radius:16px;border-top-right-radius:16px;-webkit-mask-image:-webkit-radial-gradient(#fff,#000)}:host-context(.shape-rounded):not(.has-sections) .has-header ion-item,:host-context(.shape-rounded):not(.has-sections) .has-header ion-item-sliding,:host-context(.shape-rounded) ion-item-sliding>ion-item{border-top-left-radius:0;border-top-right-radius:0}:host-context(.shape-rounded) .footer,:host-context(.shape-rounded) ion-item-sliding.last,:host-context(.shape-rounded) ion-item.last{border-bottom-left-radius:16px;border-bottom-right-radius:16px;-webkit-mask-image:-webkit-radial-gradient(#fff,#000)}:host-context(.shape-rounded):not(.has-sections) .has-footer ion-item,:host-context(.shape-rounded):not(.has-sections) .has-footer ion-item-sliding,:host-context(.shape-rounded) ion-item-sliding>ion-item{border-bottom-left-radius:0;border-bottom-right-radius:0}:host-context(.shape-none) .list,:host-context(.shape-none) .list-items{box-shadow:none;border-radius:unset}:host-context(.shape-none) .list ion-item,:host-context(.shape-none) .list ion-item-sliding{--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;--inner-padding-start:0;--inner-padding-end:0;--inner-padding-top:0;--inner-padding-bottom:0;--background:none;--background-activated:none;--background-hover:none;--background-focused:none;overflow:visible}:host-context(.item-spacing) .list kirby-list-item{margin-bottom:16px}:host-context(.item-spacing) .list kirby-list-item:last-child,:host-context(.item-spacing) .list kirby-list-item>ion-item{margin-bottom:0}",":host{overflow:hidden}:host-context(.has-divider) ion-item-sliding:not(.last){border-bottom:1px solid var(--kirby-background-color)}"]}]}],fn.ctorParameters=function(){return[{type:et}]},fn.propDecorators={ionItemSliding:[{type:e.ViewChild,args:[n.IonItemSliding]}],item:[{type:e.Input}],boundaryClass:[{type:e.Input}],swipeActions:[{type:e.Input}],itemTemplate:[{type:e.Input}],isSelected:[{type:e.Input}],isSelectable:[{type:e.Input}],getItemColor:[{type:e.Input}],itemSelect:[{type:e.Output}],swipeActionSelect:[{type:e.Output}]};var vn=function(){function t(){}return t.prototype.ngOnChanges=function(){this.color=this.getColor()},t.prototype.getColor=function(){if(this.kirbyListItemColor&&this.item)return this.kirbyListItemColor(this.item)},t}();vn.decorators=[{type:e.Directive,args:[{selector:"[kirbyListItemColor]"}]}],vn.propDecorators={kirbyListItemColor:[{type:e.Input}],item:[{type:e.Input}],color:[{type:e.HostBinding,args:["class"]}]};var kn=function(){function t(t,e){this.origEvent=t,this.parent=e,this.origEvent.cancelBubble=!0}return t.prototype.complete=function(t){return this.origEvent.detail.complete(t)},Object.defineProperty(t.prototype,"parentItem",{get:function(){return this.parent},enumerable:!1,configurable:!0}),t}(),xn=function(){function t(){this.itemReorder=new e.EventEmitter,this.subItemReorder=new e.EventEmitter,this.reorderActive=!1}return t.prototype.ngOnChanges=function(){var t=this;this.items&&this.items.length>0&&setTimeout((function(){t.setupDomListener()}))},t.prototype.setupDomListener=function(){var t=this;this.observer=new MutationObserver((function(e){var n,i;try{for(var o=A(e),r=o.next();!r.done;r=o.next()){var a=r.value;a.oldValue!==a.target.className&&(t.reorderActive=a.target.className.includes("reorder-list-active"))}}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}})),this.reorderGroupContainer.forEach((function(e){t.observer.observe(e.nativeElement,{attributes:!0,attributeFilter:["class"],attributeOldValue:!0,childList:!1,subtree:!0})}))},t.prototype.doReorder=function(t){this.itemReorder.emit(new kn(t))},t.prototype.doSubReorder=function(t,e){this.subItemReorder.emit(new kn(t,e))},t.prototype.ngOnDestroy=function(){this.observer&&this.observer.disconnect(),delete this.observer},t}();xn.decorators=[{type:e.Component,args:[{selector:"kirby-reorder-list",template:'<ion-backdrop *ngIf="reorderActive" [tappable]="false" [visible]="true" [stopPropagation]="false">\n</ion-backdrop>\n<ion-reorder-group (ionItemReorder)="doReorder($event)" disabled="false">\n <div *ngFor="let reorderItem of items" class="outerGroup">\n <kirby-card>\n <ng-container\n *ngTemplateOutlet="itemTemplate || defaultItemTemplate; context: { $implicit: reorderItem }"\n >\n </ng-container>\n <div *ngIf="reorderItem[subItemsName]" #reorderGroupContainer>\n <ion-reorder-group (ionItemReorder)="doSubReorder($event, reorderItem)" disabled="false">\n <div *ngFor="let subItem of reorderItem[subItemsName]">\n <ng-container\n *ngTemplateOutlet="\n itemTemplate || defaultItemTemplate;\n context: { $implicit: subItem, isSubItem: true }\n "\n ></ng-container>\n </div>\n </ion-reorder-group>\n </div>\n </kirby-card>\n </div>\n</ion-reorder-group>\n\n<ng-template #defaultItemTemplate let-item let-isSubItem>\n <kirby-item [reorderable]="true">\n <h3>{{ getItemTextDefault(item) }}</h3>\n </kirby-item>\n</ng-template>\n',styles:["ion-backdrop{opacity:.3;z-index:101;position:fixed}.reorder-selected{box-shadow:none;opacity:1;z-index:104}.reorder-selected kirby-card{transform:scale(1.05)}.reorder-selected kirby-card div:first-child{border-top:1px solid var(--kirby-background-color)}.reorder-selected ::ng-deep>kirby-item{box-shadow:0 0 10px rgba(0,0,0,.4);transform:scale(1.05);border-radius:16px;overflow:hidden}.reorder-list-active>*{position:relative;z-index:103}.reorder-list-active>.reorder-selected{z-index:104}.reorder-list-active div:first-child{border-top:none}.reorder-list-active ::ng-deep>div:last-child kirby-item{border-bottom-left-radius:16px;border-bottom-right-radius:16px;overflow:hidden}.reorder-list-active .reorder-selected ::ng-deep>kirby-item{box-shadow:0 0 10px rgba(0,0,0,.4);transform:scale(1.05);border-radius:16px;overflow:hidden}.outerGroup{border-bottom:20px solid transparent}kirby-card{overflow:inherit;z-index:auto}kirby-card ::ng-deep>div:last-child ion-reorder-group div:last-child>kirby-item{border-bottom-left-radius:16px;border-bottom-right-radius:16px;overflow:hidden}kirby-card ::ng-deep>div kirby-item{z-index:1}kirby-card ::ng-deep>div:first-child>kirby-item{border-radius:16px;overflow:hidden}kirby-card ::ng-deep>div .reorder-list-active kirby-item{z-index:103}kirby-card div:first-child{border-top:1px solid var(--kirby-background-color)}"]}]}],xn.propDecorators={items:[{type:e.Input}],subItemsName:[{type:e.Input}],getItemTextDefault:[{type:e.Input}],itemReorder:[{type:e.Output}],subItemReorder:[{type:e.Output}],itemTemplate:[{type:e.ContentChild,args:[Pe,{static:!0,read:e.TemplateRef}]}],reorderGroupContainer:[{type:e.ViewChildren,args:["reorderGroupContainer"]}]};var wn=function(){this.snapToKeyboard=!1};wn.decorators=[{type:e.Component,args:[{selector:"kirby-modal-footer",template:"<ion-footer>\n <ng-content></ng-content>\n</ion-footer>\n",styles:["ion-footer{box-shadow:0 20px 30px -15px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);display:flex;justify-content:var(--kirby-modal-footer-justify-content,center);align-items:center;background-color:var(--kirby-modal-footer-background,var(--kirby-white));color:var(--kirby-modal-footer-color,var(--kirby-white-contrast));padding:8px 16px;padding-bottom:calc(8px + var(--kirby-modal-footer-safe-area-bottom, 0px))}@media (max-width:720px){:host{--kirby-modal-footer-safe-area-bottom:var(--kirby-safe-area-bottom)}}:host-context(.modal-wrapper.full-height){--kirby-modal-footer-safe-area-bottom:var(--kirby-safe-area-bottom)}:host(.snap-to-keyboard) ion-footer{transition:transform .15s ease-out}:host-context(.keyboard-visible).snap-to-keyboard ion-footer{transition:transform .25s ease-out 1ms;transform:translateY(calc((var(--keyboard-offset, 0px) - var(--kirby-modal-footer-safe-area-bottom, 0px)) * -1))}:host(.light) ion-footer{background-color:var(--kirby-background-color)}"]}]}],wn.propDecorators={snapToKeyboard:[{type:e.HostBinding,args:["class.snap-to-keyboard"]},{type:e.Input}]};var Cn="kirbySelectedTabClick",In=function(){function t(){this.outletSubject$=new o.ReplaySubject,this.outlet$=this.outletSubject$.asObservable()}return t.prototype.setOutlet=function(t){this.outletSubject$.next(t)},t}();In.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new In},token:In,providedIn:"root"}),In.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}];var Sn=function(){function t(t){this.tabsService=t,this.tabBarBottomHidden=!1}return t.prototype.ngAfterViewInit=function(){this.tabsService.setOutlet(this.tabs.outlet)},t}();Sn.decorators=[{type:e.Component,args:[{selector:"kirby-tab-bar",template:'<ion-tabs>\n <ion-tab-bar [class.bottom-hidden]="tabBarBottomHidden">\n <ng-content></ng-content>\n </ion-tab-bar>\n</ion-tabs>\n',styles:[":host(:not(.tab-bar-bottom-hidden)){--kirby-page-footer-safe-area-bottom:0px}ion-tabs ion-tab-bar{--background:rgba(var(--kirby-white-rgb),0.94);--border:1px solid var(--kirby-light);--color:var(--kirby-black);display:flex;max-width:var(--kirby-tab-bar-max-width,none);justify-content:center;height:var(--kirby-tab-bar-height);padding-left:calc((100vw - var(--kirby-tab-bar-max-width, none)) / 2);padding-right:calc((100vw - var(--kirby-tab-bar-max-width, none)) / 2);width:100%}ion-tabs ion-tab-bar.bottom-hidden{display:none}@media (min-width:721px){ion-tabs{--kirby-tab-bar-height:70px}}@media (min-width:1025px) and (hover:hover) and (pointer:fine){ion-tabs{flex-direction:column-reverse;--kirby-page-footer-safe-area-bottom:initial}ion-tabs ion-tab-bar{margin:0 auto;justify-content:flex-end}ion-tabs ion-tab-bar.bottom-hidden{display:flex}}"]}]}],Sn.ctorParameters=function(){return[{type:In}]},Sn.propDecorators={tabBarBottomHidden:[{type:e.HostBinding,args:["class.tab-bar-bottom-hidden"]}],tabs:[{type:e.ViewChild,args:[n.IonTabs,{static:!0}]}]};var Tn=function(){};Tn.decorators=[{type:e.Directive,args:[{selector:"[kirbyPageTitle]"}]}];var On=function(){};On.decorators=[{type:e.Directive,args:[{selector:"[kirbyPageToolbarTitle]"}]}];var En=function(){function t(t){this.template=t,this.stickyDefault=!0,this.fixedDefault=!1}return Object.defineProperty(t.prototype,"isSticky",{get:function(){return this.config?this.config.sticky:this.stickyDefault},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFixed",{get:function(){return this.config?this.config.fixed:this.fixedDefault},enumerable:!1,configurable:!0}),t}();En.decorators=[{type:e.Directive,args:[{selector:"[kirbyPageActions]"}]}],En.ctorParameters=function(){return[{type:e.TemplateRef}]},En.propDecorators={config:[{type:e.Input,args:["kirbyPageActions"]}]};var Dn=function(){function t(t){this.template=t}return Object.defineProperty(t.prototype,"isFixed",{get:function(){return this.config&&this.config.fixed},enumerable:!1,configurable:!0}),t}();Dn.decorators=[{type:e.Directive,args:[{selector:"[kirbyPageContent]"}]}],Dn.ctorParameters=function(){return[{type:e.TemplateRef}]},Dn.propDecorators={config:[{type:e.Input,args:["kirbyPageContent"]}]};var Rn=function(){function t(t){this.modalWrapper=t,this.slot="start"}return t.prototype.ngOnInit=function(){this.modalWrapper&&"drawer"===this.modalWrapper.config.flavor&&(this.slot="end")},t}();Rn.decorators=[{type:e.Component,args:[{selector:"kirby-page-progress",template:"\n <ng-content></ng-content>\n ",styles:[":host {display: flex}"]}]}],Rn.ctorParameters=function(){return[{type:ut,decorators:[{type:e.Optional},{type:e.SkipSelf}]}]},Rn.propDecorators={slot:[{type:e.HostBinding,args:["attr.slot"]}]};var _n=function(){};_n.decorators=[{type:e.Component,args:[{selector:"kirby-page-title",template:"\n <ng-content></ng-content>\n "}]}];var Pn=function(){};Pn.decorators=[{type:e.Component,args:[{selector:"kirby-page-content",template:"\n <ng-content></ng-content>\n "}]}];var An=function(){};An.decorators=[{type:e.Component,args:[{selector:"kirby-page-actions",template:'\n <ng-content select="button[kirby-button]"></ng-content>\n '}]}];var Mn=function(){function n(t,n,a,s,c,l,d){this.elementRef=t,this.renderer=n,this.router=a,this.changeDetectorRef=s,this.windowRef=c,this.modalNavigationService=l,this.tabsComponent=d,this.titleAlignment="left",this.enter=new e.EventEmitter,this.leave=new e.EventEmitter,this.pageTitleIntersectionObserverRef=this.pageTitleIntersectionObserver(),this.urls=[],this.ngOnDestroy$=new o.Subject,this.navigationStart$=this.router.events.pipe(r.takeUntil(this.ngOnDestroy$),r.filter((function(t){return t instanceof i.NavigationStart}))),this.navigationEnd$=this.router.events.pipe(r.takeUntil(this.ngOnDestroy$),r.filter((function(t){return t instanceof i.NavigationEnd})))}return Object.defineProperty(n.prototype,"tabBarBottomHidden",{get:function(){return this._tabBarBottomHidden},set:function(t){var e=this;this.tabsComponent&&setTimeout((function(){return e.tabsComponent.tabBarBottomHidden=t})),this._tabBarBottomHidden=t},enumerable:!1,configurable:!0}),n.prototype.ngOnInit=function(){this.removeWrapper()},n.prototype.ngOnChanges=function(t){t.titleMaxLines&&(this.fitHeadingConfig=Object.assign(Object.assign({},this.fitHeadingConfig),{maxLines:t.titleMaxLines.currentValue}))},n.prototype.ngAfterViewInit=function(){var e=this;this.navigationStart$.subscribe((function(t){e.urls.includes(t.url)||e.modalNavigationService.isModalRoute(t.url)||e.modalNavigationService.isModalRoute(e.router.url)||e.onLeave()})),this.navigationEnd$.subscribe((function(t){e.urls.includes(t.urlAfterRedirects)&&e.onEnter()})),this.windowRef.nativeWindow.addEventListener(Cn,(function(){e.content.scrollToTop(t.KirbyAnimation.Duration.LONG)}))},n.prototype.ngAfterContentChecked=function(){this.urls.includes(this.router.url)||(this.urls.push(this.router.url),this.onEnter()),this.initializeTitle(),this.initializeActions(),this.initializeContent(),this.changeDetectorRef.detectChanges()},n.prototype.ngOnDestroy=function(){var e=this;this.ngOnDestroy$.next(),this.ngOnDestroy$.complete(),this.pageTitleIntersectionObserverRef.disconnect(),this.windowRef.nativeWindow.removeEventListener(Cn,(function(){e.content.scrollToTop(t.KirbyAnimation.Duration.LONG)}))},n.prototype.onEnter=function(){this.hasEntered||(this.hasEntered=!0,this.enter.emit(),this.pageTitle&&this.pageTitleIntersectionObserverRef.observe(this.pageTitle.nativeElement))},n.prototype.onLeave=function(){this.leave.emit(),this.pageTitle&&this.pageTitleIntersectionObserverRef.unobserve(this.pageTitle.nativeElement),this.hasEntered=!1,this.tabBarBottomHidden&&this.tabsComponent&&(this.tabsComponent.tabBarBottomHidden=!1)},n.prototype.initializeTitle=function(){var t=this;if(!this.hasPageTitle){this.hasPageTitle=void 0!==this.title||!!this.customTitleTemplate,this.toolbarTitleVisible=!this.hasPageTitle,this.hasPageTitle&&setTimeout((function(){t.pageTitleIntersectionObserverRef.observe(t.pageTitle.nativeElement)}));var e=this.customTitleTemplate||this.simpleTitleTemplate;this.toolbarTitleTemplate=this.customToolbarTitleTemplate?this.customToolbarTitleTemplate:"string"==typeof this.toolbarTitle?this.simpleToolbarTitleTemplate:e}},n.prototype.initializeActions=function(){var t=this;this.customActions.forEach((function(e){e.isFixed?(t.fixedActionsTemplate=e.template,t.toolbarFixedActionsVisible=!0):(t.pageActionsTemplate=e.template,e.isSticky&&(t.stickyActionsTemplate=e.template))})),this.hasActionsInPage=!!this.pageActionsTemplate},n.prototype.initializeContent=function(){var t=this;this.customContent.forEach((function(e){e.isFixed?t.fixedContentTemplate=e.template:t.customContentTemplate=e.template}))},n.prototype.removeWrapper=function(){var t=this.elementRef.nativeElement.parentNode;this.renderer.removeChild(t,this.elementRef.nativeElement),this.renderer.appendChild(t,this.ionHeaderElement.nativeElement),this.renderer.appendChild(t,this.ionContentElement.nativeElement),this.renderer.appendChild(t,this.ionFooterElement.nativeElement)},n.prototype.pageTitleIntersectionObserver=function(){var t=this,e=!1;return new IntersectionObserver((function(n){e?(t.toolbarTitleVisible=!n[0].isIntersecting,t.toolbarStickyActionsVisible=!n[0].isIntersecting,t.changeDetectorRef.detectChanges()):e=!0}),{rootMargin:"0px"})},n.prototype._onKeyboardWillShow=function(t){t&&t.keyboardHeight&&this.ionContentElement.nativeElement.style.setProperty("--keyboard-offset",t.keyboardHeight+"px")},n.prototype._onKeyboardWillHide=function(){this.ionContentElement.nativeElement.style.setProperty("--keyboard-offset","0px")},n}();Mn.decorators=[{type:e.Component,args:[{selector:"kirby-page",template:'<ion-header>\n <ion-toolbar>\n <ion-buttons slot="start">\n <ion-back-button\n text=""\n [defaultHref]="defaultBackHref"\n icon="assets/kirby/icons/svg/arrow-back.svg"\n [style.visibility]="hideBackButton ? \'hidden\' : null"\n ></ion-back-button>\n </ion-buttons>\n <ion-title>\n <div class="toolbar-title hide" [class.fade-in]="toolbarTitleVisible">\n <ng-container *ngTemplateOutlet="toolbarTitleTemplate"></ng-container>\n </div>\n </ion-title>\n <ion-buttons\n class="hide"\n slot="primary"\n [class.fade-in]="toolbarStickyActionsVisible && stickyActionsTemplate"\n >\n <ng-container *ngTemplateOutlet="stickyActionsTemplate"></ng-container>\n </ion-buttons>\n <ion-buttons\n class="hide"\n slot="secondary"\n [class.fade-in]="toolbarFixedActionsVisible && fixedActionsTemplate"\n >\n <ng-container *ngTemplateOutlet="fixedActionsTemplate"></ng-container>\n </ion-buttons>\n </ion-toolbar>\n</ion-header>\n\n<ion-content scrollEvents="true" forceOverscroll="false">\n <div class="content-inner">\n <div\n class="page-title"\n #pageTitle\n *ngIf="hasPageTitle"\n [class.has-actions]="hasActionsInPage"\n [ngClass]="{\n \'text-center\': titleAlignment === \'center\',\n \'text-right\': titleAlignment === \'right\'\n }"\n >\n <ng-container\n *ngTemplateOutlet="customTitleTemplate || defaultPageTitleTemplate"\n ></ng-container>\n <ng-container\n *ngTemplateOutlet="pageActionsTemplate || defaultPageActionsTemplate"\n ></ng-container>\n </div>\n \x3c!-- Content --\x3e\n <ng-container\n *ngTemplateOutlet="customContentTemplate || defaultContentTemplate"\n ></ng-container>\n </div>\n\n <div slot="fixed" class="fixed-content" *ngIf="fixedContentTemplate">\n <div class="content-inner">\n <ng-container *ngTemplateOutlet="fixedContentTemplate"></ng-container>\n </div>\n </div>\n</ion-content>\n\n<ion-footer>\n <ng-content select="kirby-page-footer"></ng-content>\n</ion-footer>\n\n<ng-template #defaultPageTitleTemplate>\n <h1 [kirbyFitHeading]="fitHeadingConfig">\n <ng-container *ngTemplateOutlet="simpleTitleTemplate"></ng-container>\n </h1>\n</ng-template>\n\n<ng-template #defaultPageActionsTemplate>\n <ng-content select="kirby-page-actions"></ng-content>\n</ng-template>\n\n<ng-template #defaultContentTemplate>\n <ng-content select="kirby-page-content"></ng-content>\n</ng-template>\n\n<ng-template #simpleTitleTemplate>{{ title }}</ng-template>\n<ng-template #simpleToolbarTitleTemplate>{{ toolbarTitle }}</ng-template>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:["ion-header,ion-toolbar{--background:var(--kirby-background-color);margin:0 auto}@media (min-width:1025px) and (hover:hover) and (pointer:fine){ion-header,ion-toolbar{max-width:768px}}ion-toolbar{--border-width:0!important;--padding-start:4px;--padding-end:4px;--padding-top:0;--padding-bottom:0}ion-toolbar ion-buttons[slot=secondary]{order:6}ion-toolbar ion-title .toolbar-title{text-overflow:ellipsis;white-space:nowrap;pointer-events:auto;overflow:hidden}ion-toolbar ion-title .toolbar-title ::ng-deep>*{text-overflow:ellipsis;white-space:nowrap;pointer-events:auto;overflow:hidden}.hide{visibility:hidden;opacity:0;transition:opacity .1s linear}.hide.fade-in{visibility:inherit;opacity:1}ion-title{box-sizing:border-box;font-size:16px;font-weight:400}ion-back-button{--color:var(--kirby-black);--icon-font-size:24px;height:44px;width:44px}.page-title{margin-left:16px;margin-top:8px;margin-bottom:var(--kirby-page-title-margin-bottom,40px)}.page-title.has-actions{display:flex;justify-content:space-between;align-items:flex-start}.page-title.text-center{text-align:center;margin-left:0}.page-title.text-right{text-align:right}.page-title h1,.page-title h2,.page-title h3,.page-title h4,.page-title h5,.page-title h6{margin:0}ion-content{--padding-start:var(--page-content-padding-start,16px);--padding-end:var(--page-content-padding-end,16px);--background:var(--kirby-background-color)}ion-content .content-inner{max-width:var(--page-content-max-width,720px);margin:0 auto;padding-bottom:40px}ion-content .fixed-content{width:100%;position:absolute;bottom:0}ion-content .fixed-content .content-inner{position:relative}"]}]}],Mn.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2},{type:i.Router},{type:e.ChangeDetectorRef},{type:H},{type:$},{type:Sn,decorators:[{type:e.Optional},{type:e.SkipSelf}]}]},Mn.propDecorators={title:[{type:e.Input}],toolbarTitle:[{type:e.Input}],titleAlignment:[{type:e.Input}],defaultBackHref:[{type:e.Input}],hideBackButton:[{type:e.Input}],titleMaxLines:[{type:e.Input}],tabBarBottomHidden:[{type:e.Input}],enter:[{type:e.Output}],leave:[{type:e.Output}],content:[{type:e.ViewChild,args:[n.IonContent,{static:!0}]}],ionContentElement:[{type:e.ViewChild,args:[n.IonContent,{static:!0,read:e.ElementRef}]}],ionHeaderElement:[{type:e.ViewChild,args:[n.IonHeader,{static:!0,read:e.ElementRef}]}],ionFooterElement:[{type:e.ViewChild,args:[n.IonFooter,{static:!0,read:e.ElementRef}]}],pageTitle:[{type:e.ViewChild,args:["pageTitle",{static:!1,read:e.ElementRef}]}],simpleTitleTemplate:[{type:e.ViewChild,args:["simpleTitleTemplate",{static:!0,read:e.TemplateRef}]}],simpleToolbarTitleTemplate:[{type:e.ViewChild,args:["simpleToolbarTitleTemplate",{static:!0,read:e.TemplateRef}]}],customToolbarTitleTemplate:[{type:e.ContentChild,args:[On,{static:!1,read:e.TemplateRef}]}],customTitleTemplate:[{type:e.ContentChild,args:[Tn,{static:!1,read:e.TemplateRef}]}],customActions:[{type:e.ContentChildren,args:[En]}],customContent:[{type:e.ContentChildren,args:[Dn]}],_onKeyboardWillShow:[{type:e.HostListener,args:["window:keyboardWillShow",["$event"]]}],_onKeyboardWillHide:[{type:e.HostListener,args:["window:keyboardWillHide"]}]};var Bn=function(){function t(t,e,n){if(this.pageComponent=t,this.hostElement=e,this.renderer=n,this.hasPadding=!0,!t)throw new Error("Page footer must reside inside of a Kirby page")}return t.prototype.close=function(){this.pageComponent.tabBarBottomHidden=!1,this.renderer.removeChild(this.hostElement.nativeElement.parentElement,this.hostElement.nativeElement,!0)},t.prototype.ngOnDestroy=function(){this.pageComponent.tabBarBottomHidden=!1},t}();Bn.decorators=[{type:e.Component,args:[{selector:"kirby-page-footer",template:'<div class="wrapper" [class.padding]="hasPadding">\n <ng-content></ng-content>\n</div>\n',styles:[":host{display:block;background-color:var(--kirby-white)}:host .wrapper{position:relative;max-width:var(--page-content-max-width,720px);margin:0 auto;padding-bottom:var(--kirby-page-footer-safe-area-bottom,var(--kirby-safe-area-bottom))}:host .wrapper.padding{padding:8px 16px;padding-bottom:calc(8px + var(--kirby-page-footer-safe-area-bottom, var(--kirby-safe-area-bottom)))}"]}]}],Bn.ctorParameters=function(){return[{type:Mn,decorators:[{type:e.Optional},{type:e.SkipSelf}]},{type:e.ElementRef},{type:e.Renderer2}]},Bn.propDecorators={hasPadding:[{type:e.Input}]};var zn=Object.freeze({className:"kirby-line-clamp",lineClamp:"--line-clamp",lineHeight:"--line-height"}),Ln=function(){function t(t){this.renderer=t}return t.prototype.setMaxLines=function(t,n){this.renderer.setStyle(t,zn.lineClamp,n,e.RendererStyleFlags2.DashCase),this.renderer.addClass(t,zn.className)},t.prototype.setLineHeight=function(t,n){this.renderer.setStyle(t,zn.lineHeight,n,e.RendererStyleFlags2.DashCase)},t.prototype.removeLineClamp=function(t){this.renderer.removeClass(t,zn.className),this.renderer.removeStyle(t,zn.lineClamp),this.renderer.removeStyle(t,zn.lineHeight)},t}();Ln.decorators=[{type:e.Injectable}],Ln.ctorParameters=function(){return[{type:e.Renderer2}]};var jn=tt.fontSize,Hn=tt.lineHeight,Fn=function(){function t(t,e,n,i){this.elementRef=t,this.renderer=e,this.resizeObserverService=n,this.lineClampHelper=i,this.headingSizes=[{name:"h1",fontSize:jn("xl"),lineHeight:Hn("xl")},{name:"h2",fontSize:jn("l"),lineHeight:Hn("l")},{name:"h3",fontSize:jn("m"),lineHeight:Hn("m")}]}return t.prototype.ngOnInit=function(){this.config&&this.config.maxLines&&(this.lineClampHelper.setMaxLines(this.elementRef.nativeElement,this.config.maxLines),this.observeResize(),this.isObservingHostElement=!0)},t.prototype.ngOnDestroy=function(){this.isObservingHostElement&&(this.resizeObserverService.unobserve(this.elementRef),this.hostElementClone&&this.renderer.removeChild(this.elementRef.nativeElement,this.hostElementClone))},t.prototype.observeResize=function(){var t=this;this.resizeObserverService.observe(this.elementRef,(function(){t.scaleHeader()}))},t.prototype.scaleHeader=function(){if(!this.isScalingHeader){this.isScalingHeader=!0,this.hostElementClone||(this.hostElementClone=this.generateHostElementClone(),this.renderer.appendChild(this.elementRef.nativeElement,this.hostElementClone)),this.renderer.setStyle(this.hostElementClone,"width",this.elementRef.nativeElement.clientWidth+"px");var t=this.headingSizes[this.headingSizes.length-1],e=this.headingSizes.find(this.canFitHeading.bind(this))||t;this.setSize(this.elementRef.nativeElement,e),this.lineClampHelper.setLineHeight(this.elementRef.nativeElement,e.lineHeight),this.isScalingHeader=!1}},t.prototype.canFitHeading=function(t){return this.setSize(this.hostElementClone,t),this.hostElementClone.clientHeight/parseInt(t.lineHeight)<=this.config.maxLines},t.prototype.generateHostElementClone=function(){var t=this.elementRef.nativeElement.cloneNode(!0);return this.renderer.setStyle(t,"position","absolute"),this.renderer.setStyle(t,"visibility","hidden"),this.lineClampHelper.removeLineClamp(t),t},t.prototype.setSize=function(t,e){this.renderer.setStyle(t,"font-size",e.fontSize),this.renderer.setStyle(t,"line-height",e.lineHeight)},t}();Fn.decorators=[{type:e.Directive,args:[{selector:"h1[kirbyFitHeading],h2[kirbyFitHeading],h3[kirbyFitHeading]",providers:[Ln]}]}],Fn.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2},{type:pt},{type:Ln}]},Fn.propDecorators={config:[{type:e.Input,args:["kirbyFitHeading"]}]};var Nn=function(){};Nn.decorators=[{type:e.NgModule,args:[{declarations:[Fn],exports:[Fn]}]}];var Wn=function(){};Wn.decorators=[{type:e.NgModule,args:[{declarations:[Mn,An,En,Pn,Bn,Dn,Rn,_n,Tn,On],imports:[a.CommonModule,n.IonicModule,Nn],exports:[Mn,An,En,Pn,Bn,Dn,Rn,_n,Tn,On,Nn]}]}];var Vn=function(){};Vn.decorators=[{type:e.NgModule,args:[{declarations:[_],imports:[a.CommonModule,n.IonicModule],exports:[_]}]}];var $n,Gn=function(){function t(t,e,n){this.componentFactoryResolver=t,this.viewContainerRef=e,this.renderer=n}return t.prototype.ngOnInit=function(){this.loadCard()},t.prototype.loadCard=function(){var t=this.componentFactoryResolver.resolveComponentFactory(this.configuration.component);this.viewContainerRef.clear();var e=this.viewContainerRef.createComponent(t);e&&e.location&&e.location.nativeElement&&this.renderer.addClass(e.location.nativeElement,this.cssClass),e.instance.data=this.configuration.data},t}();Gn.decorators=[{type:e.Directive,args:[{selector:"[kirbyLoadComponent]"}]}],Gn.ctorParameters=function(){return[{type:e.ComponentFactoryResolver},{type:e.ViewContainerRef},{type:e.Renderer2}]},Gn.propDecorators={configuration:[{type:e.Input,args:["kirbyLoadComponent"]}],cssClass:[{type:e.Input}]},($n=t.SegmentedControlMode||(t.SegmentedControlMode={})).chip="chip",$n.compactChip="compactChip",$n.default="default";var Un=function(){function n(){this.mode=t.SegmentedControlMode.default,this._items=[],this._selectedIndex=-1,this.segmentSelect=new e.EventEmitter}return n.prototype.preventWrapperClick=function(t){t.target instanceof HTMLElement&&t.target.classList.contains("segment-btn-wrapper")&&t.stopImmediatePropagation()},Object.defineProperty(n.prototype,"_modeCssClass",{get:function(){var e;return(e={},e[t.SegmentedControlMode.chip]="chip-mode",e[t.SegmentedControlMode.default]="default-mode",e[t.SegmentedControlMode.compactChip]="compact chip-mode",e)[this.mode]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return this._items},set:function(t){this._items=t||[];var e=this.items.findIndex((function(t){return t.checked}));e>-1&&(console.warn("SegmentItem.checked is deprecated - please remove from your `items` configuration. Use `selectedIndex` or `value` on `<kirby-segmented-control>` instead "),this._selectedIndex=e),this._value=this.items[this.selectedIndex]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){t!==this._selectedIndex&&(this._selectedIndex=t,this._value=this.items[this.selectedIndex])},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(t){this.selectedIndex=this.items.indexOf(t)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"size",{set:function(t){this.isSmallSize="sm"===t},enumerable:!1,configurable:!0}),n.prototype.onSegmentSelect=function(t){var e=this.items.findIndex((function(e){return t===e.id}));e!==this.selectedIndex&&(this.selectedIndex=e,this.segmentSelect.emit(this.value))},n}();Un.decorators=[{type:e.Component,args:[{selector:"kirby-segmented-control",template:'<ion-segment\n *ngIf="mode === \'default\'"\n [value]="value?.id"\n (ionChange)="onSegmentSelect($event.detail.value)"\n (click)="preventWrapperClick($event)"\n>\n <div *ngFor="let item of items" class="segment-btn-wrapper">\n <ion-segment-button [value]="item.id">{{ item.text }}</ion-segment-button>\n <kirby-badge\n *ngIf="item.badge"\n role="text"\n [attr.aria-label]="item.badge.description"\n [themeColor]="item.badge.themeColor"\n >{{ item.badge.content }}</kirby-badge\n >\n </div>\n</ion-segment>\n\n<ng-container *ngIf="mode === \'chip\' || mode === \'compactChip\'">\n <kirby-chip\n *ngFor="let item of items; let index = index"\n [text]="item.text"\n [isSelected]="index === selectedIndex"\n (click)="onSegmentSelect(item.id)"\n role="button"\n ></kirby-chip>\n</ng-container>\n',host:{role:"group"},styles:[':host{display:block;-webkit-user-select:none;user-select:none}:host.sm ion-segment-button{min-height:32px;font-size:12px;--padding-start:16px;--padding-end:16px}:host.chip-mode{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden}@media (pointer:coarse){:host.chip-mode{scrollbar-width:none}:host.chip-mode::-webkit-scrollbar{display:none}}ion-segment{display:inline-flex;width:auto;overflow:visible;contain:unset;--background:var(--kirby-white);border-radius:999px}ion-segment-button{position:relative;min-height:40px;font-weight:400;font-size:14px;text-transform:none;--border-radius:999px;--border-style:none;--background:none;--color:var(--kirby-white-contrast);--indicator-color:var(--kirby-black);--color-checked:var(--kirby-black-contrast);--color-hover:var(--kirby-black-tint);--indicator-box-shadow:none;--padding-start:24px;--padding-end:24px;--margin-bottom:0;--margin-end:0;--margin-start:0;--margin-top:0;margin:0}ion-segment-button:after{content:"";position:absolute;min-height:44px;min-width:44px;width:100%;height:100%;transform:translate(-50%,-50%);left:50%;top:50%}.segment-btn-wrapper{position:relative}kirby-badge{--kirby-badge-elevation:0 5px 10px -10px rgba(28,28,28,0.3),0 0 5px 0 rgba(28,28,28,0.08);position:absolute;top:-8px;right:8px;z-index:2}:host-context(.plt-desktop) ion-segment-button:focus-within{outline-color:-webkit-focus-ring-color;outline-style:auto}']}]}],Un.propDecorators={mode:[{type:e.Input}],_modeCssClass:[{type:e.HostBinding,args:["class"]}],items:[{type:e.Input}],selectedIndex:[{type:e.Input}],value:[{type:e.Input}],isSmallSize:[{type:e.HostBinding,args:["class.sm"]}],size:[{type:e.Input}],segmentSelect:[{type:e.Output}]};var Yn=function(){function t(t){this.changeDetectionRef=t,this.text="",this.slideDone=new e.EventEmitter,this.slidingPercentageChanged=new e.EventEmitter,this.slideDoneFadeTime=500,this.slideResetTime=100,this.isSlideDone=!1,this.pctInTens=0,this._value=0}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value=t,this.calculatePctInTens()},enumerable:!1,configurable:!0}),t.prototype.calculatePctInTens=function(){this.pctInTens=10*Math.ceil(this.value/10)},t.prototype.ngOnDestroy=function(){this.resetSliderIntervalTimer&&clearInterval(this.resetSliderIntervalTimer)},t.prototype.onSliderMouseup=function(){var t=this;100==this.value?this.handleSlideDone():this.resetSliderIntervalTimer=setInterval((function(){t.value>0?t.value-=2:clearInterval(t.resetSliderIntervalTimer),t.changeDetectionRef.markForCheck()}),1)},t.prototype.onSliderValueChange=function(t){this.value=+t,this.slidingPercentageChanged.emit(this.value)},t.prototype.onSliderMousedown=function(){clearInterval(this.resetSliderIntervalTimer)},t.prototype.handleSlideDone=function(){this.slideDone.emit(),this.isSlideDone=!0},t}();Yn.decorators=[{type:e.Component,args:[{selector:"kirby-slide-button",template:'<div class="slide-button-container" [ngClass]="{ \'slide-done\': isSlideDone }">\n <input\n type="range"\n (mouseup)="onSliderMouseup()"\n (touchend)="onSliderMouseup()"\n (input)="onSliderValueChange($event.target.value)"\n (mousedown)="onSliderMousedown()"\n (touchstart)="onSliderMousedown()"\n class="slide-button"\n [value]="value"\n max="100"\n />\n <p class="slide-button-text slide-{{ pctInTens }}-pct">{{ text }}</p>\n</div>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[":host{position:relative;display:inline-block;width:256px;-webkit-user-select:none;user-select:none}:host[expand=block]{display:block;width:100%}:host .slide-button-container{width:100%;display:flex;justify-content:center;align-items:center;color:var(--kirby-primary-contrast);background-color:var(--kirby-primary);height:56px;border-radius:26px}:host .slide-10-pct{opacity:.9}:host .slide-20-pct{opacity:.8}:host .slide-30-pct{opacity:.7}:host .slide-40-pct{opacity:.6}:host .slide-50-pct{opacity:.5}:host .slide-60-pct{opacity:.4}:host .slide-70-pct{opacity:.3}:host .slide-80-pct{opacity:.2}:host .slide-90-pct{opacity:.1}:host .slide-100-pct{opacity:0}:host .slide-button-text{position:absolute;font-size:16px;margin:0;line-height:1;z-index:1;width:100%;text-align:center;padding:0 26px 0 56px}:host .slide-button{width:100%;height:100%;-webkit-appearance:none;background:transparent;z-index:2}:host .slide-button::-webkit-slider-thumb{-webkit-appearance:none;border-radius:50%;background-color:var(--kirby-white);background-image:url(/assets/kirby/icons/svg/arrow-more.svg);background-repeat:no-repeat;background-position:50%;background-size:24px;width:52px;height:52px;border:none;cursor:pointer}:host .slide-button::-moz-range-thumb{-webkit-appearance:none;border-radius:50%;background-color:var(--kirby-white);background-image:url(/assets/kirby/icons/svg/arrow-more.svg);background-repeat:no-repeat;background-position:50%;background-size:24px;width:52px;height:52px;border:none;cursor:pointer}:host .slide-done{transition:all .3s ease-in-out;opacity:0;height:0;transform:scale(0);pointer-events:none}"]}]}],Yn.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},Yn.propDecorators={text:[{type:e.Input}],expand:[{type:e.Input}],slideDone:[{type:e.Output}],slidingPercentageChanged:[{type:e.Output}]};var Kn=function(){function t(t,n){this.elementRef=t,this.renderer=n,this.click=new e.EventEmitter}return t.prototype.ngOnInit=function(){this.removeWrapper()},t.prototype.onClick=function(t,e){if(this.click.emit(t),e){var n=new CustomEvent(Cn);dispatchEvent(n)}},t.prototype.removeWrapper=function(){var t=this.elementRef.nativeElement.parentNode,e=this.elementRef.nativeElement.childNodes[0];this.renderer.removeChild(t,this.elementRef.nativeElement),this.renderer.appendChild(t,e)},t}();Kn.decorators=[{type:e.Component,args:[{selector:"kirby-tab-button",template:'<ion-tab-button #ionTabButton [tab]="routerLink" (click)="onClick($event, ionTabButton.selected)">\n <div class="icon-container" *ngIf="icons.length">\n <ng-content\n *ngIf="icons.length === 1 || !ionTabButton.selected"\n select="kirby-icon[:not([selected-tab])]"\n ></ng-content>\n <ng-content *ngIf="ionTabButton.selected" select="kirby-icon[selected-tab]"></ng-content>\n <ng-content select="kirby-badge"></ng-content>\n </div>\n <ion-label>\n <ng-content></ng-content>\n </ion-label>\n</ion-tab-button>\n',styles:['ion-tab-button{height:100%;flex:1 1 0%;max-width:168px;font-size:10px;--color-selected:get-color("black");--kirby-badge-position:absolute;--kirby-badge-left:calc(50% + 5px);--kirby-badge-top:0}@media (min-width:721px){ion-tab-button{flex:none;padding:0 24px;margin-right:24px;font-size:14px;flex-direction:row;--kirby-badge-top:-5px;--kirby-badge-left:auto;--kirby-badge-right:-5px}ion-tab-button:last-child{margin-right:0}ion-tab-button .icon-container{position:relative;margin-right:8px}}@media (min-width:1025px) and (hover:hover) and (pointer:fine){ion-tab-button{padding:0 12px;margin-right:0}}']}]}],Kn.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2}]},Kn.propDecorators={routerLink:[{type:e.Input}],click:[{type:e.Output}],icons:[{type:e.ContentChildren,args:[ct]}]};var qn=function(){};qn.decorators=[{type:e.NgModule,args:[{imports:[n.IonicModule,on,a.CommonModule],providers:[In],declarations:[Sn,Kn],exports:[Sn,Kn]}]}];var Zn=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(o,r){function a(t){try{c(i.next(t))}catch(t){r(t)}}function s(t){try{c(i.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((i=i.apply(t,e||[])).next())}))},Jn=function(){function t(t){this.toastController=t}return t.prototype.showToast=function(e){return Zn(this,void 0,void 0,(function(){var n;return P(this,(function(i){switch(i.label){case 0:return[4,this.toastController.create({animated:e.animated,message:e.message,position:"top",duration:e.durationInMs?e.durationInMs:t.DURATION_IN_MS,cssClass:this.getCssClass(e.messageType)})];case 1:return[4,(n=i.sent()).present()];case 2:return i.sent(),[2,{dismiss:n.dismiss.bind(n),onWillDismiss:n.onWillDismiss(),onDidDismiss:n.onDidDismiss()}]}}))}))},t.prototype.getCssClass=function(e){var n=t.CSS_CLASS;return"danger"===e&&(console.warn("[DEPRECATED] 'danger' message type is deprecated. Use Kirby Alerts for critical warnings. Toast will be shown as 'warning'"),e="warning"),e&&(n+=" "+e),n},t}();Jn.CSS_CLASS="kirby-toast",Jn.DURATION_IN_MS=4e3,Jn.decorators=[{type:e.Injectable}],Jn.ctorParameters=function(){return[{type:n.ToastController}]};var Qn=function(){function t(t){this.toastHelper=t}return t.prototype.showToast=function(t,e){this.toastHelper.showToast(t).then((function(t){e&&t.onDidDismiss.then((function(){return e()}))}))},t}();Qn.decorators=[{type:e.Injectable}],Qn.ctorParameters=function(){return[{type:Jn}]};var Xn=function(){function t(){this.checked=!1,this.disabled=!1,this.checkedChange=new e.EventEmitter}return t.prototype.onCheckedChange=function(t){this.checked=t,this.checkedChange.emit(this.checked)},t}();Xn.decorators=[{type:e.Component,args:[{selector:"kirby-toggle",template:'<ion-toggle\n [checked]="checked"\n [disabled]="disabled"\n (ionChange)="onCheckedChange($event.detail.checked)"\n></ion-toggle>\n',styles:[".toggle-checked{--background-checked:var(--kirby-success)}"]}]}],Xn.propDecorators={checked:[{type:e.Input}],disabled:[{type:e.Input}],checkedChange:[{type:e.Output}]};var ti=function(){function t(t,e){var n=this;this.elementRef=t,this.changeDetectorRef=e,this.SIZE_CONFIG={sm:{diameter:40,strokeWidth:3,upperBound:95},md:{diameter:56,strokeWidth:4,upperBound:96},lg:{diameter:96,strokeWidth:6,upperBound:97}},this.value=0,this.size="md",this.themeColor="success",this.onIntersectionChange=function(t){n.hasElementBeenVisible=t&&t.some((function(t){return t.isIntersecting})),n.hasElementBeenVisible&&(n.unobserve(),n.changeDetectorRef.markForCheck())}}return Object.defineProperty(t.prototype,"_cssSize",{get:function(){return this.size},enumerable:!1,configurable:!0}),t.prototype.ngAfterViewInit=function(){this.observer||(this.observer=new IntersectionObserver(this.onIntersectionChange,{threshold:.5}),this.observer.observe(this.elementRef.nativeElement))},t.prototype.ngOnDestroy=function(){this.unobserve()},t.prototype.unobserve=function(){this.observer&&(this.observer.unobserve(this.elementRef.nativeElement),"function"==typeof this.observer.disconnect&&this.observer.disconnect())},Object.defineProperty(t.prototype,"_diameter",{get:function(){return this.SIZE_CONFIG[this.size].diameter},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_shownValue",{get:function(){return this.hasElementBeenVisible?this.value:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_radius",{get:function(){return this._diameter/2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_strokeWidth",{get:function(){return this.SIZE_CONFIG[this.size].strokeWidth},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_upperBound",{get:function(){return this.SIZE_CONFIG[this.size].upperBound},enumerable:!1,configurable:!0}),t}();ti.decorators=[{type:e.Component,args:[{selector:"kirby-progress-circle",template:'<div class="transcluded-content">\n <ng-content></ng-content>\n</div>\n<kirby-progress-circle-ring\n [themeColor]="themeColor"\n [value]="_shownValue"\n [radius]="_radius"\n [strokeWidth]="_strokeWidth"\n [upperBound]="_upperBound"\n>\n</kirby-progress-circle-ring>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[":host{display:inline-block;position:relative}.transcluded-content,kirby-progress-circle-ring{position:absolute;top:0;left:0}kirby-progress-circle-ring{z-index:2}.transcluded-content{width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:1;border-radius:50%;overflow:hidden}"]}]}],ti.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef}]},ti.propDecorators={value:[{type:e.Input}],size:[{type:e.Input}],themeColor:[{type:e.Input}],_cssSize:[{type:e.HostBinding,args:["class"]}],_diameter:[{type:e.HostBinding,args:["style.width.px"]},{type:e.HostBinding,args:["style.height.px"]}]};var ei=function(){function t(){this.size="md",this.themeColor="transparent"}return Object.defineProperty(t.prototype,"_cssClass",{get:function(){return[this.themeColor,this.size]},enumerable:!1,configurable:!0}),t}();ei.decorators=[{type:e.Component,args:[{selector:"kirby-flag",template:"\n <ng-content></ng-content>\n ",changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[":host{display:inline-block;background-color:var(--kirby-flag-background-color,transparent);color:var(--kirby-flag-color,var(--kirby-white-contrast));border:1px solid var(--kirby-flag-border-color,var(--kirby-medium));border-radius:4px;font-size:16px;padding:2px 8px}:host.sm{font-size:14px}:host.xs{font-size:12px;padding-left:4px;padding-right:4px}:host(.success){--kirby-flag-background-color:var(--kirby-success);--kirby-flag-color:var(--kirby-success-contrast);--kirby-flag-border-color:var(--kirby-success)}:host(.warning){--kirby-flag-background-color:var(--kirby-warning);--kirby-flag-color:var(--kirby-warning-contrast);--kirby-flag-border-color:var(--kirby-warning)}:host(.danger){--kirby-flag-background-color:var(--kirby-danger);--kirby-flag-color:var(--kirby-danger-contrast);--kirby-flag-border-color:var(--kirby-danger)}:host(.semi-light){--kirby-flag-background-color:var(--kirby-semi-light);--kirby-flag-color:var(--kirby-semi-light-contrast);--kirby-flag-border-color:var(--kirby-semi-light)}"]}]}],ei.propDecorators={size:[{type:e.Input}],themeColor:[{type:e.Input}],_cssClass:[{type:e.HostBinding,args:["class"]}]};var ni=function(){};ni.decorators=[{type:e.Directive,args:[{selector:"[kirbySlide]"}]}];var ii=function(){function t(){this.selectedSlide=new e.EventEmitter}return t.prototype.ngAfterViewInit=function(){this.slideTo(0)},t.prototype.onSlideChanged=function(){var t=this;this.ionSlides.getActiveIndex().then((function(e){t.selectedSlide.emit({slide:t.slides[e],index:e})}))},t.prototype.slideTo=function(t){this.ionSlides.slideTo(t)},t}();ii.decorators=[{type:e.Component,args:[{selector:"kirby-slides",template:'\n <ion-slides [options]="slidesOptions" #ionslides (ionSlideDidChange)="onSlideChanged()">\n <ion-slide *ngFor="let slide of slides; let i = index">\n <ng-container\n *ngTemplateOutlet="slideTemplate; context: { $implicit: slide, index: i }"\n ></ng-container>\n </ion-slide>\n </ion-slides>\n ',changeDetection:e.ChangeDetectionStrategy.OnPush}]}],ii.propDecorators={ionSlides:[{type:e.ViewChild,args:["ionslides",{static:!1}]}],slidesOptions:[{type:e.Input}],slides:[{type:e.Input}],selectedSlide:[{type:e.Output}],slideTemplate:[{type:e.ContentChild,args:[ni,{static:!0,read:e.TemplateRef}]}]};var oi=function(){function t(){this.checkChanged=new e.EventEmitter}return t.prototype.onClick=function(){this.checked=!this.checked,this.checkChanged.emit(this.checked)},t}();oi.decorators=[{type:e.Component,args:[{selector:"kirby-toggle-button",template:'<ng-container *ngIf="!checked">\n <ng-content select="button[kirby-button][unchecked]"></ng-content>\n</ng-container>\n<ng-container *ngIf="checked">\n <ng-content select="button[kirby-button][checked]"></ng-content>\n</ng-container>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}]}],oi.propDecorators={checked:[{type:e.Input}],checkChanged:[{type:e.Output}],onClick:[{type:e.HostListener,args:["click"]}]};var ri=function(){};ri.decorators=[{type:e.Directive,args:[{selector:"[kirbyAccordion], kirby-accordion",exportAs:"kirby-accordion"}]}];var ai=0,si=function(){this.isExpanded=!1,this._titleId="kirby-accordion-item-title-"+ ++ai,this._contentId="kirby-accordion-item-content-"+ai};si.decorators=[{type:e.Component,args:[{selector:"kirby-accordion-item",template:'<ng-container>\n <div\n (click)="isExpanded = !isExpanded"\n class="header"\n role="button"\n [class.expanded]="isExpanded"\n [attr.aria-expanded]="isExpanded"\n [attr.aria-controls]="_contentId"\n [id]="_titleId"\n >\n <div class="title">{{ title }}</div>\n <kirby-icon name="arrow-down"></kirby-icon>\n </div>\n <div\n class="content"\n role="region"\n [attr.aria-labelledby]="_titleId"\n [id]="_contentId"\n [@isExpanded]="!!isExpanded"\n >\n <div class="content-body">\n <ng-content></ng-content>\n </div>\n </div>\n</ng-container>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,animations:[v.trigger("isExpanded",[v.state("true",v.style({height:"*",visibility:"visible"})),v.state("false",v.style({height:"0px",visibility:"hidden"})),v.transition("true <=> false",v.animate("0.2s"))])],styles:[":host{display:block;border-top:1px solid var(--kirby-medium);border-bottom:1px solid var(--kirby-medium)}.header{display:flex;align-items:center;height:56px;padding-left:16px;padding-right:16px;cursor:pointer;-webkit-user-select:none;user-select:none}.title{flex-grow:2}.kirby-icon{transition:transform .2s}.content{overflow:hidden}.content-body{padding:0 16px 16px}.expanded .title{font-weight:700}.expanded .kirby-icon{transform:rotate(180deg)}:host-context(kirby-accordion):not(:first-child){border-top:none}:host-context(kirby-card){border-color:var(--kirby-background-color)}:host-context(kirby-card):first-child{border-top:none}:host-context(kirby-card):last-child{border-bottom:none}"]}]}],si.propDecorators={title:[{type:e.Input}],isExpanded:[{type:e.Input}]};var ci=function(){function t(){this.step=1,this.disabled=!1,this.change=new e.EventEmitter,this.onTouched=function(){},this.propagateChange=function(t){}}return Object.defineProperty(t.prototype,"value",{get:function(){return this.currentValue},set:function(t){t!==this.currentValue&&(this.currentValue=t,this.propagateChange(this.currentValue),this.change.emit(this.currentValue))},enumerable:!1,configurable:!0}),t.prototype.ngOnChanges=function(t){var e=this;this.ticks&&((this.max-this.min)/this.step>9&&(this.step=(this.max-this.min)/9),this.value=this.getTicks().reduce((function(t,n){return Math.abs(n-e.value)<Math.abs(t-e.value)?n:t})))},t.prototype.getTicks=function(){for(var t=[],e=Number(this.min);e<=Number(this.max);e+=Number(this.step))t.push(e);return t},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype._onRangeValueChange=function(t){this.writeValue(t.detail.value)},t.prototype.writeValue=function(t){void 0!==t&&(this.value=t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.registerOnChange=function(t){this.propagateChange=t},t}();ci.decorators=[{type:e.Component,args:[{selector:"kirby-range",template:'<ion-range\n (ionChange)="_onRangeValueChange($event)"\n [min]="min"\n [max]="max"\n [step]="step"\n [value]="value"\n [pin]="pin"\n [snaps]="ticks"\n [ticks]="ticks"\n [debounce]="debounce"\n [disabled]="disabled"\n>\n</ion-range>\n\n<label *ngIf="minLabel" class="min-label">{{ minLabel }}</label>\n<label *ngIf="maxLabel" class="max-label">{{ maxLabel }}</label>\n',providers:[{provide:b.NG_VALUE_ACCESSOR,multi:!0,useExisting:e.forwardRef((function(){return ci}))}],styles:[':host{display:flex;justify-content:space-between;flex-wrap:wrap}ion-range{--knob-background:var(--kirby-white);--knob-box-shadow:0 5px 10px 0px rgba(28,28,28,0.3),0 0 5px 0 rgba(28,28,28,0.08);--knob-size:24px;--pin-color:var(--kirby-text-color-black);--pin-background:var(--kirby-semi-light);--bar-background:var(--kirby-medium);--bar-background-active:var(--kirby-dark);--bar-border-radius:4px;--bar-height:2px;flex:1 1 100%;padding:0}ion-range.range-disabled{--knob-background:var(--kirby-semi-light);--knob-box-shadow:none;--bar-background:var(--kirby-semi-light);--bar-background-active:var(--kirby-semi-light)}ion-range.range-disabled::part(tick){background:var(--kirby-semi-light)}ion-range.range-has-pin{padding:0 3px}ion-range::part(pin){font-size:12px;color:var(--pin-color);background-color:var(--pin-background);padding:2px 4px;border-radius:4px;min-width:40px;position:relative}ion-range::part(pin):before{content:"";position:absolute;top:100%;left:50%;transform:translateX(-50%);display:block;border:6px solid transparent;border-top:6px solid var(--pin-background)}ion-range::part(tick),ion-range::part(tick-active){border-radius:50%;width:6px;height:6px;z-index:1;margin-inline-start:-3px}ion-range::part(tick){background:var(--kirby-medium)}label{font-size:12px;line-height:16px;color:var(--kirby-text-color-semi-dark);margin-top:-4px}']}]}],ci.propDecorators={minLabel:[{type:e.Input}],maxLabel:[{type:e.Input}],debounce:[{type:e.Input}],max:[{type:e.Input}],min:[{type:e.Input}],pin:[{type:e.Input}],step:[{type:e.Input}],ticks:[{type:e.Input}],disabled:[{type:e.Input}],value:[{type:e.Input}],change:[{type:e.Output}]};var li=function(){function t(t){this.element=t}return t.prototype.keyEvent=function(t){" "!==t.key&&"Enter"!==t.key&&"Spacebar"!==t.key||(t.preventDefault(),this.element.nativeElement.click())},t}();li.decorators=[{type:e.Directive,args:[{selector:"[keyHandler]"}]}],li.ctorParameters=function(){return[{type:e.ElementRef}]},li.propDecorators={keyEvent:[{type:e.HostListener,args:["keyup",["$event"]]}]};var di=function(){function t(){this._isDefault=!0}return Object.defineProperty(t.prototype,"isDefault",{get:function(){return this._isDefault},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrimary",{get:function(){return this._isPrimary},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSecondary",{get:function(){return this._isSecondary},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTertiary",{get:function(){return this._isTertiary},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSuccess",{get:function(){return this._isSuccess},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isWarning",{get:function(){return this._isWarning},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDanger",{get:function(){return this._isDanger},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLight",{get:function(){return this._isLight},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMedium",{get:function(){return this._isMedium},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDark",{get:function(){return this._isDark},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isWhite",{get:function(){return this._isWhite},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isBrightnessWhite",{get:function(){return this._isBrightnessWhite},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isBrightnessLight",{get:function(){return this._isBrightnessLight},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isBrightnessDark",{get:function(){return this._isBrightnessDark},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"themeColor",{set:function(t){this._isDefault=!t,this._isPrimary="primary"===t,this._isSecondary="secondary"===t,this._isTertiary="tertiary"===t,this._isSuccess="success"===t,this._isWarning="warning"===t,this._isDanger="danger"===t,this._isLight="light"===t,this._isMedium="medium"===t,this._isDark="dark"===t,this._isWhite="white"===t;var e=X.getColorBrightness(t);this._isBrightnessWhite="white"===e,this._isBrightnessLight="light"===e,this._isBrightnessDark="dark"===e},enumerable:!1,configurable:!0}),t}();di.decorators=[{type:e.Directive,args:[{selector:"kirby-avatar[themeColor],\n kirby-card[themeColor],\n kirby-badge[themeColor],\n kirby-icon[themeColor],\n kirby-progress-circle-ring[themeColor],\n kirby-modal-footer[themeColor],\n kirby-empty-state[themeColor]"}]}],di.propDecorators={isDefault:[{type:e.HostBinding,args:["class.default"]}],isPrimary:[{type:e.HostBinding,args:["class.primary"]}],isSecondary:[{type:e.HostBinding,args:["class.secondary"]}],isTertiary:[{type:e.HostBinding,args:["class.tertiary"]}],isSuccess:[{type:e.HostBinding,args:["class.success"]}],isWarning:[{type:e.HostBinding,args:["class.warning"]}],isDanger:[{type:e.HostBinding,args:["class.danger"]}],isLight:[{type:e.HostBinding,args:["class.light"]}],isMedium:[{type:e.HostBinding,args:["class.medium"]}],isDark:[{type:e.HostBinding,args:["class.dark"]}],isWhite:[{type:e.HostBinding,args:["class.white"]}],isBrightnessWhite:[{type:e.HostBinding,args:["class.kirby-color-brightness-white"]}],isBrightnessLight:[{type:e.HostBinding,args:["class.kirby-color-brightness-light"]}],isBrightnessDark:[{type:e.HostBinding,args:["class.kirby-color-brightness-dark"]}],themeColor:[{type:e.Input}]};var pi=function(){};pi.decorators=[{type:e.NgModule,args:[{declarations:[me],exports:[me],providers:[oe]}]}];var hi=function(){};hi.decorators=[{type:e.NgModule,args:[{declarations:[sn],imports:[a.CommonModule],exports:[sn],providers:[]}]}];var ui=[bn,fn,Re,_e,Pe,yn,Me,Ae,mn,je],gi=B(ui,[vn,pn,fn]),bi=function(){};bi.decorators=[{type:e.NgModule,args:[{declarations:gi,imports:[a.CommonModule,on,n.IonicModule,hi,k.UiScrollModule],exports:ui,providers:[]}]}];var mi=function(){function t(){this.value=0,this.themeColor="success"}return Object.defineProperty(t.prototype,"_offset",{get:function(){return this.value<this.upperBound||this.value>99?this.calculateOffset(this.value):this.calculateOffset(this.upperBound)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_diameter",{get:function(){return 2*this.radius},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_centerRadius",{get:function(){return this.radius-this.strokeWidth/2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_centerCircumference",{get:function(){return 2*this._centerRadius*Math.PI},enumerable:!1,configurable:!0}),t.prototype.calculateOffset=function(t){return this._centerCircumference-this._centerCircumference*(t/100)},t}();mi.decorators=[{type:e.Component,args:[{selector:"kirby-progress-circle-ring",template:'<svg [attr.width]="_diameter" [attr.height]="_diameter">\n <circle\n shape-rendering="geometricPrecision"\n class="circle"\n fill="transparent"\n [attr.stroke-width]="strokeWidth"\n [attr.r]="_centerRadius"\n [attr.cx]="radius"\n [attr.cy]="radius"\n />\n <circle\n shape-rendering="geometricPrecision"\n class="progress"\n fill="transparent"\n stroke-linecap="round"\n [attr.stroke-width]="strokeWidth"\n [attr.r]="_centerRadius"\n [attr.cx]="radius"\n [attr.cy]="radius"\n [attr.stroke-dashoffset]="_offset"\n [attr.stroke-dasharray]="_centerCircumference"\n />\n</svg>',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[".circle{stroke:var(--kirby-semi-light)}.progress{transition-property:stroke-dashoffset,stroke;transition-duration:1s;transition-timing-function:ease;transform:rotate(-90deg);transform-origin:50% 50%;stroke:var(--kirby-progress-circle-stroke-color,var(--kirby-success))}:host.success{--kirby-progress-circle-stroke-color:#2cf287}:host.warning{--kirby-progress-circle-stroke-color:#ffca3a}:host.danger{--kirby-progress-circle-stroke-color:#ff595e}"]}]}],mi.propDecorators={radius:[{type:e.Input}],value:[{type:e.Input}],themeColor:[{type:e.Input}],strokeWidth:[{type:e.Input}],upperBound:[{type:e.Input}],_diameter:[{type:e.HostBinding,args:["style.width.px"]},{type:e.HostBinding,args:["style.height.px"]}]};var yi=[oi],fi=function(){};fi.decorators=[{type:e.NgModule,args:[{declarations:B(yi),imports:[a.CommonModule],exports:B(yi)}]}];var vi=function(){function t(t){this.modalNavigationService=t}return t.prototype.onClick=function(){return this.modalNavigationService.navigateToModal(this.path,"string"!=typeof this.queryParams?this.queryParams:null),!1},t}();vi.decorators=[{type:e.Directive,args:[{selector:"[kirbyModalRouterLink]"}]}],vi.ctorParameters=function(){return[{type:$}]},vi.propDecorators={path:[{type:e.Input,args:["kirbyModalRouterLink"]}],queryParams:[{type:e.Input,args:["kirbyModalQueryParams"]}],onClick:[{type:e.HostListener,args:["click"]}]};var ki=[It,Tt,St,lt,qt,ke,en,Gn,wt,un,Ce,Se,z,wn,vi,Un,Te,Ct,di,qe,Ze,Yn,Xn,Fe,Ye,Ge,$e,Ue,Je,Ee,xn,He,dn,ti,ei,ii,ni,ri,si,Ne,We,ci],xi=B(ki,[li,Ke,F,ut,K,mi]),wi=[xt,Vn,Wn,qn,on,an,fi,bi,pi,hi],Ci=B(wi,ki),Ii=B(wi),Si=[ft,j,mt,W,Jn,Qn,Xe,ln,dt,pt],Ti=[ut,K,z,F],Oi=new e.InjectionToken("USERCONFIG"),Ei=function(){function t(t,e){t.initialize(e&&e.moduleRootRoutePath)}return t.forChild=function(e){return{ngModule:t,providers:[{provide:Oi,useValue:e}]}},t}();Ei.decorators=[{type:e.NgModule,args:[{imports:B([a.CommonModule,i.RouterModule,k.UiScrollModule,n.IonicModule.forRoot({mode:"ios",inputShims:!0,scrollAssist:!0,scrollPadding:!1})],Ii),declarations:xi,providers:Si,entryComponents:Ti,exports:Ci}]}],Ei.ctorParameters=function(){return[{type:ft},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Oi]}]}]},Object.defineProperty(t,"IonRouterOutlet",{enumerable:!0,get:function(){return n.IonRouterOutlet}}),Object.defineProperty(t,"NavController",{enumerable:!0,get:function(){return n.NavController}}),Object.defineProperty(t,"Chart",{enumerable:!0,get:function(){return c.Chart}}),t.AccordionDirective=ri,t.AccordionItemComponent=si,t.ActionSheetComponent=z,t.AppComponent=vt,t.AppModule=xt,t.AvatarComponent=wt,t.BadgeComponent=Ct,t.ButtonComponent=lt,t.COMPONENT_PROPS=U,t.CalendarComponent=Ce,t.CardComponent=It,t.CardFooterComponent=St,t.CardHeaderComponent=Tt,t.ChartComponent=me,t.ChartDeprecatedComponent=qt,t.CheckboxComponent=Se,t.ChipComponent=Te,t.ColorHelper=X,t.ComponentLoaderDirective=Gn,t.DateInputDirective=qe,t.DecimalMaskDirective=Ze,t.DesignTokenHelper=tt,t.DividerComponent=Ee,t.DropdownComponent=He,t.EmptyStateComponent=Fe,t.FabSheetComponent=Je,t.FitHeadingDirective=Fn,t.FitHeadingModule=Nn,t.FlagComponent=ei,t.FormFieldComponent=Ye,t.FormFieldMessageComponent=Ke,t.GridCardConfiguration=nn,t.GridComponent=en,t.GroupByPipe=un,t.ICON_SETTINGS=nt,t.IconComponent=ct,t.IconModule=on,t.IconRegistryService=it,t.InfiniteScrollDirective=pn,t.InputComponent=Ge,t.InputCounterComponent=$e,t.ItemComponent=De,t.ItemModule=an,t.KeyHandlerDirective=li,t.KirbyModule=Ei,t.LabelComponent=rn,t.ListComponent=bn,t.ListFlexItemDirective=_e,t.ListFooterDirective=je,t.ListHeaderComponent=mn,t.ListHeaderDirective=Ae,t.ListItemColorDirective=vn,t.ListItemComponent=fn,t.ListItemDirective=Re,t.ListItemTemplateDirective=Pe,t.ListSectionHeaderComponent=yn,t.ListSectionHeaderDirective=Me,t.LoadingOverlayComponent=dn,t.LoadingOverlayService=ln,t.Modal=G,t.ModalController=ft,t.ModalFooterComponent=wn,t.PageActionsComponent=An,t.PageActionsDirective=En,t.PageComponent=Mn,t.PageContentComponent=Pn,t.PageContentDirective=Dn,t.PageFooterComponent=Bn,t.PageModule=Wn,t.PageProgressComponent=Rn,t.PageTitleComponent=_n,t.PageTitleDirective=Tn,t.PageToolbarTitleDirective=On,t.PlatformService=et,t.ProgressCircleComponent=ti,t.RadioComponent=Ne,t.RadioGroupComponent=We,t.RangeComponent=ci,t.ReorderEvent=kn,t.ReorderListComponent=xn,t.ResizeObserverFactory=dt,t.ResizeObserverService=pt,t.RouterOutletComponent=_,t.RouterOutletModule=Vn,t.ScssHelper=Qe,t.SegmentedControlComponent=Un,t.SlideButtonComponent=Yn,t.SlideDirective=ni,t.SlidesComponent=ii,t.SpinnerComponent=sn,t.StockChartDeprecatedComponent=ke,t.TabButtonComponent=Kn,t.TabsComponent=Sn,t.TabsModule=qn,t.TabsService=In,t.TextareaComponent=Ue,t.ThemeColorDirective=di,t.ToastController=Qn,t.ToggleButtonComponent=oi,t.ToggleComponent=Xn,t.annotations=ye,t.camelToKebabCase=J,t.capitalizeFirstLetter=Q,t.defaultIcons=at,t.isNumberArray=Zt,t.kebabToCamelCase=Z,t.kebabToTitleCase=function(t){return t.length&&1!==t.length?t.split("-").map((function(t){return t[0].toUpperCase()+t.slice(1)})).join(" "):t},t.selectedTabClickEvent=Cn,t.stockChartDeprecatedOptions=function(t,e){var n=fe(t),i="rgba(255,255,255,0)";return n.chart.backgroundColor=i,n.chart.height=e,n.tooltip.backgroundColor=X.getThemeColorRgbString("background-color"),n.tooltip.formatter=function(){return'<div class="kirby-text-xsmall">'+d.dateFormat("%e. %b",new Date(this.x))+'</div><br/><div class="kirby-text-small kirby-text-bold">'+a.formatNumber(this.y,t)+"</div>"},n.plotOptions.area.fillColor=i,n.plotOptions.area.lineColor=X.getThemeColorRgbString("tertiary"),n.plotOptions.area.marker.lineColor="rgba(255,255,255,0.3)",n.plotOptions.area.marker.fillColor=X.getThemeColorRgbString("primary"),n.xAxis=Object.assign(Object.assign({},n.xAxis),{crosshair:{color:X.getThemeColorRgbString("primary")},tickColor:i,lineColor:X.getThemeColorRgbString("medium"),labels:{style:{color:X.getThemeColorRgbString("semi-dark-tint")}}}),n.yAxis=Object.assign(Object.assign({},n.yAxis),{lineColor:i,gridLineColor:X.getThemeColorRgbString("medium"),labels:{style:{color:X.getThemeColorRgbString("semi-dark-tint")}}}),n},t.ɵ0=ve,t.ɵa=xt,t.ɵb=vt,t.ɵba=G,t.ɵbb=lt,t.ɵbc=ct,t.ɵbd=it,t.ɵbf=nt,t.ɵbg=pt,t.ɵbh=dt,t.ɵbi=Nn,t.ɵbj=Fn,t.ɵbk=Ln,t.ɵbl=qn,t.ɵbm=on,t.ɵbn=Kn,t.ɵbo=an,t.ɵbp=De,t.ɵbq=rn,t.ɵbr=fi,t.ɵbs=oi,t.ɵbt=bi,t.ɵbu=bn,t.ɵbv=hn,t.ɵbw=un,t.ɵbx=pn,t.ɵby=Re,t.ɵbz=_e,t.ɵc=_,t.ɵca=Pe,t.ɵcb=Ae,t.ɵcc=Me,t.ɵcd=je,t.ɵce=fn,t.ɵcf=yn,t.ɵcg=mn,t.ɵch=vn,t.ɵci=hi,t.ɵcj=sn,t.ɵck=pi,t.ɵcl=me,t.ɵcm=be,t.ɵcn=oe,t.ɵco=It,t.ɵcp=Tt,t.ɵcq=St,t.ɵcr=qt,t.ɵcs=Rt,t.ɵct=Nt,t.ɵcu=Wt,t.ɵcv=At,t.ɵcw=Mt,t.ɵcx=Vt,t.ɵcy=$t,t.ɵcz=_t,t.ɵd=ft,t.ɵda=Pt,t.ɵdb=ke,t.ɵdc=en,t.ɵdd=Xe,t.ɵde=Gn,t.ɵdf=wt,t.ɵdg=Ce,t.ɵdh=we,t.ɵdi=Se,t.ɵdj=z,t.ɵdk=wn,t.ɵdl=vi,t.ɵdm=Un,t.ɵdn=Te,t.ɵdo=Ct,t.ɵdp=di,t.ɵdq=qe,t.ɵdr=Ze,t.ɵds=Yn,t.ɵdt=Xn,t.ɵdu=Fe,t.ɵdv=Ye,t.ɵdw=$e,t.ɵdx=We,t.ɵdy=Ne,t.ɵdz=Ge,t.ɵe=mt,t.ɵea=Ue,t.ɵeb=Je,t.ɵec=Ee,t.ɵed=xn,t.ɵee=He,t.ɵef=dn,t.ɵeg=ti,t.ɵeh=ei,t.ɵei=ni,t.ɵej=ii,t.ɵek=ri,t.ɵel=si,t.ɵem=ci,t.ɵen=li,t.ɵeo=Ke,t.ɵep=F,t.ɵeq=K,t.ɵer=mi,t.ɵes=Jn,t.ɵet=Qn,t.ɵeu=ln,t.ɵf=gt,t.ɵg=et,t.ɵh=H,t.ɵi=j,t.ɵj=W,t.ɵk=$,t.ɵl=Vn,t.ɵm=Wn,t.ɵn=Tn,t.ɵo=On,t.ɵp=En,t.ɵq=Dn,t.ɵr=Rn,t.ɵs=_n,t.ɵt=Pn,t.ɵu=An,t.ɵv=Mn,t.ɵw=Sn,t.ɵx=In,t.ɵy=Bn,t.ɵz=ut,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@ionic/angular"),require("@angular/router"),require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("highcharts"),require("chart.js"),require("chartjs-plugin-annotation"),require("highcharts/highstock"),require("highcharts/modules/annotations"),require("date-fns"),require("date-fns-tz"),require("date-fns/locale"),require("@angular/forms"),require("inputmask/lib/extensions/inputmask.date.extensions"),require("inputmask/lib/inputmask"),require("inputmask/lib/extensions/inputmask.numeric.extensions"),require("@angular/animations"),require("ngx-ui-scroll")):"function"==typeof define&&define.amd?define("@kirbydesign/designsystem",["exports","@angular/core","@ionic/angular","@angular/router","rxjs","rxjs/operators","@angular/common","highcharts","chart.js","chartjs-plugin-annotation","highcharts/highstock","highcharts/modules/annotations","date-fns","date-fns-tz","date-fns/locale","@angular/forms","inputmask/lib/extensions/inputmask.date.extensions","inputmask/lib/inputmask","inputmask/lib/extensions/inputmask.numeric.extensions","@angular/animations","ngx-ui-scroll"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).kirbydesign=e.kirbydesign||{},e.kirbydesign.designsystem={}),e.ng.core,e.ionic,e.ng.router,e.rxjs,e.rxjs.operators,e.ng.common,e.highcharts,e.chart_js,e.annotationPlugin,e["highcharts/highstock"],e.highcharts,e["date-fns"],e["date-fns-tz"],e.locale,e.ng.forms,null,e.inputmask,null,e.ng.animations,e["ngx-ui-scroll"])}(this,(function(e,t,n,i,o,r,a,s,l,c,d,p,h,u,g,m,b,y,f,v,k){"use strict";function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function w(e){if(e&&e.__esModule)return 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 C,I,S=w(s),E=x(c),T=w(d),O=x(p),D=x(y),R={sizes:{xxxl:"56px",xxl:"48px",xl:"40px",l:"32px",m:"24px",s:"16px",xs:"12px",xxs:"8px",xxxs:"4px",xxxxs:"2px"},fontSizes:{xxxxl:"72px",xxxl:"56px",xxl:"40px",xl:"32px",l:"22px",m:"18px",n:"16px",s:"14px",xs:"12px",xxs:"10px"},lineHeight:{xl:"38px",l:"28px",m:"24px",n:"24px",s:"20px",xs:"16px",xxs:"11px"},fontWeight:{light:"300",normal:"400",bold:"700",black:"900"},iconFontSizes:{xs:"16px",sm:"24px",md:"32px",lg:"56px"},zLayers:{default:"1",segmentBadge:"2",dropdown:"800",popover:"850",modalOverlay:"900",modal:"901",loadingOverlay:"1001"},borderRadius:"16px",borderRadiusRound:"999px",breakpoints:{small:"321px",medium:"721px",large:"1025px",xlarge:"60em",xxlarge:"80em"},elevations:{2:"rgba(28, 28, 28, 0.3) 0px 5px 10px -10px, rgba(28, 28, 28, 0.08) 0px 0px 5px 0px",4:"rgba(28, 28, 28, 0.3) 0px 10px 15px -10px, rgba(28, 28, 28, 0.08) 0px 0px 5px 0px",8:"rgba(28, 28, 28, 0.3) 0px 20px 30px -15px, rgba(28, 28, 28, 0.08) 0px 0px 5px 0px"},avatarSizes:{xs:"32px",s:"40px",m:"56px",l:"96px"},avatarBadgeSize:"16px",pageContentMaxWidth:"720px",alertMaxWidth:"359px",compactModalMaxWidth:"359px",modalMaxWidth:"720px",modalHeights:{s:"288px",m:"460px",l:"576px"},modalDefaultHeight:"460px",drawerDefaultHeight:"288px",itemHeights:{m:"56px",s:"44px",xs:"32px"},dropdownItemHeight:"44px",fatFingerSize:"44px",checkboxRadioSizes:{xs:"32px",sm:"44px",md:"56px"},checkboxRadioSpacing:{toEdge:"16px",toLabel:"12px"},softKeyboardTransitionEnter:"250ms ease-out 1ms",softKeyboardTransitionLeave:"150ms ease-out",transitionDurations:{quick:"200ms",short:"300ms",long:"500ms",extraLong:"1000ms"},transitionEasings:{static:"linear",enter:"ease-out",exit:"ease-in",enterExit:"ease",motion:"cubic-bezier(0.25, 0.1, 0.25, 1)",modal:{enter:"cubic-bezier(0.32, 0.72, 0, 1)",exit:"cubic-bezier(0.32, 0.72, 0, 1)"}},loadingOverlayBackdropOpacity:"0.8"};I=e.KirbyAnimation||(e.KirbyAnimation={}),(C=I.Duration||(I.Duration={}))[C.QUICK=parseInt(R.transitionDurations.quick)]="QUICK",C[C.SHORT=parseInt(R.transitionDurations.short)]="SHORT",C[C.LONG=parseInt(R.transitionDurations.long)]="LONG",C[C.EXTRA_LONG=parseInt(R.transitionDurations.extraLong)]="EXTRA_LONG",I.Easing=R.transitionEasings;var _=function(){};_.decorators=[{type:t.Component,args:[{selector:"kirby-router-outlet",template:'<ng-container *ngIf="main">\n <ion-router-outlet main></ion-router-outlet>\n</ng-container>\n<ng-container *ngIf="!main">\n <ion-router-outlet></ion-router-outlet>\n</ng-container>\n',styles:[":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:size layout style;z-index:0;overflow:hidden;background-color:var(--kirby-background-color)}"]}]}],_.propDecorators={main:[{type:t.Input}]};function P(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}Object.create;function A(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function M(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function B(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(M(arguments[t]));return e}Object.create;var z=function(){function e(){this.cancelButtonText="Cancel",this.hideCancel=!1,this.disabled=!1,this.cancel=new t.EventEmitter,this.itemSelect=new t.EventEmitter}return e.prototype.onItemSelect=function(e){this.itemSelect.emit(e)},e.prototype.onCancel=function(){this.cancel.emit()},e}();z.decorators=[{type:t.Component,args:[{selector:"kirby-action-sheet",template:'<kirby-card>\n <kirby-card-header *ngIf="header" [title]="header" [isTitleBold]="true" [subtitle]="subheader">\n </kirby-card-header>\n <button\n kirby-button\n expand="block"\n size="lg"\n attentionLevel="4"\n (click)="onItemSelect(item)"\n *ngFor="let item of items"\n >\n {{ item.text }}\n </button>\n</kirby-card>\n<button\n *ngIf="!hideCancel"\n kirby-button\n class="cancel-btn"\n size="lg"\n attentionLevel="2"\n (click)="onCancel()"\n>\n {{ cancelButtonText }}\n</button>\n',styles:[":host{--kirby_internal_margin_horizontal_default:32px;--kirby_internal_margin_horizontal_total:calc(2 * var(--kirby-action-sheet-margin-horizontal, var(--kirby_internal_margin_horizontal_default)))}@media (max-width:320px){:host{--kirby_internal_margin_horizontal_default:16px}}:host{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;margin:0 auto;width:calc(100vw - var(--kirby_internal_margin_horizontal_total));max-width:calc(375px - var(--kirby_internal_margin_horizontal_total))}kirby-card{align-self:stretch;pointer-events:auto;box-shadow:0 20px 30px -15px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08)}kirby-card button[kirby-button]{margin:0;border-radius:0}kirby-card button[kirby-button]:not(:focus){border-top:1px solid var(--kirby-background-color)}.cancel-btn{font-weight:700;margin-top:16px;margin-bottom:24px;pointer-events:auto;box-shadow:0 20px 30px -15px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08)}"]}]}],z.propDecorators={cancelButtonText:[{type:t.Input}],hideCancel:[{type:t.Input}],disabled:[{type:t.Input}],header:[{type:t.Input}],subheader:[{type:t.Input}],items:[{type:t.Input}],cancel:[{type:t.Output}],itemSelect:[{type:t.Output}]};var L=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},H=function(){function e(e){this.ionicModalController=e}return e.prototype.showActionSheet=function(e){return L(this,void 0,void 0,(function(){var n,i,o,r,a;return P(this,(function(s){switch(s.label){case 0:return n=new t.EventEmitter,i=new t.EventEmitter,[4,this.ionicModalController.create({component:z,cssClass:["kirby-overlay","kirby-action-sheet"],componentProps:Object.assign(Object.assign({},e),{cancel:n,itemSelect:i}),backdropDismiss:!1})];case 1:return o=s.sent(),r=n.subscribe((function(){return o.dismiss()})),a=i.subscribe((function(e){return o.dismiss(e)})),o.onDidDismiss().then((function(e){r.unsubscribe(),a.unsubscribe()})),[4,o.present()];case 2:return s.sent(),[2,{dismiss:o.dismiss.bind(o),onWillDismiss:o.onWillDismiss(),onDidDismiss:o.onDidDismiss()}]}}))}))},e}();H.decorators=[{type:t.Injectable}],H.ctorParameters=function(){return[{type:n.ModalController}]};var j=function(){function e(){}return Object.defineProperty(e.prototype,"nativeWindow",{get:function(){return window},enumerable:!1,configurable:!0}),e}();j.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new j},token:j,providedIn:"root"}),j.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}];var F=function(){function e(e,t){this.elementRef=e,this.windowRef=t,this.BLUR_WRAPPER_DELAY_IN_MS=50,this.scrollY=Math.abs(this.windowRef.nativeWindow.scrollY)}return Object.defineProperty(e.prototype,"title",{set:function(e){this.title$="string"==typeof e?o.of(e):e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{set:function(e){this.message$="string"==typeof e?o.of(e):e},enumerable:!1,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.alertWrapper.nativeElement.focus(),e.alertWrapper.nativeElement.blur()}),this.BLUR_WRAPPER_DELAY_IN_MS)},e.prototype.onFocusChange=function(){this.windowRef.nativeWindow.scrollTo({top:this.scrollY})},e.prototype.onCancel=function(){var e=this.elementRef.nativeElement.closest("ion-modal");e&&e.dismiss(!1)},e.prototype.onOk=function(){var e=this.elementRef.nativeElement.closest("ion-modal");e&&e.dismiss(!0)},e}();F.decorators=[{type:t.Component,args:[{selector:"kirby-alert",template:'<article #alertWrapper>\n <kirby-empty-state\n [iconName]="iconName"\n [themeColor]="iconThemeColor"\n [title]="title$ | async"\n [subtitle]="message$ | async"\n ></kirby-empty-state>\n <div class="buttongroup">\n <button\n kirby-button\n *ngIf="cancelBtnText"\n attentionLevel="3"\n class="cancel-btn"\n (click)="onCancel()"\n >\n {{ cancelBtnText }}\n </button>\n <button\n kirby-button\n [size]="cancelBtnText ? null : \'lg\'"\n attentionLevel="1"\n class="ok-btn"\n [isDestructive]="okBtnIsDestructive"\n (click)="onOk()"\n >\n {{ okBtnText }}\n </button>\n </div>\n</article>\n',host:{"[class.ion-page]":"false"},styles:["article{overflow:hidden;padding:24px 16px 16px}@media (max-width:320px){article{padding:8px}}.buttongroup{display:flex;justify-content:space-around}.buttongroup button{width:50%;margin-left:6px;margin-right:6px}"]}]}],F.ctorParameters=function(){return[{type:t.ElementRef},{type:j}]},F.propDecorators={alertWrapper:[{type:t.ViewChild,args:["alertWrapper",{static:!0}]}],title:[{type:t.Input}],message:[{type:t.Input}],iconName:[{type:t.Input}],iconThemeColor:[{type:t.Input}],okBtnText:[{type:t.Input}],okBtnIsDestructive:[{type:t.Input}],cancelBtnText:[{type:t.Input}]};var N=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},W=function(){function e(e){this.ionicModalController=e}return e.prototype.showAlert=function(e){return N(this,void 0,void 0,(function(){var t;return P(this,(function(n){switch(n.label){case 0:return[4,this.ionicModalController.create({component:F,componentProps:this.getComponentProps(e),cssClass:["kirby-overlay","kirby-alert"],mode:"ios",backdropDismiss:!1})];case 1:return[4,(t=n.sent()).present()];case 2:return n.sent(),[2,{dismiss:t.dismiss.bind(t),onWillDismiss:t.onWillDismiss(),onDidDismiss:t.onDidDismiss()}]}}))}))},e.prototype.getComponentProps=function(e){return Object.assign(Object.assign({},e),{okBtnText:this.getOkBtnText(e),cancelBtnText:this.getCancelBtnText(e),okBtnIsDestructive:this.getOkBtnIsDestructive(e),iconName:e.icon&&e.icon.name,iconThemeColor:e.icon&&e.icon.themeColor})},e.prototype.getOkBtnText=function(e){var t;return e.okBtnText&&(console.warn("`okBtnText` will be deprecated on next major version. Please use `okBtn` instead."),t=e.okBtnText),e.okBtn&&(t="string"==typeof e.okBtn?e.okBtn:e.okBtn.text),t},e.prototype.getOkBtnIsDestructive=function(e){return"object"==typeof e.okBtn?e.okBtn.isDestructive:void 0},e.prototype.getCancelBtnText=function(e){return e.cancelBtnText&&console.warn("`cancelBtnText` will be deprecated on next major version. Please use `cancelBtn` instead."),e.cancelBtn||e.cancelBtnText},e}();W.decorators=[{type:t.Injectable}],W.ctorParameters=function(){return[{type:n.ModalController}]};var V=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},$=function(){function e(e,t){this.router=e,this.route=t,this.navigationEndListener$=this.router.events.pipe(r.filter((function(e){return e instanceof i.NavigationEnd})))}return e.prototype.isModalRoute=function(e){return e.includes("(modal:")},e.prototype.getCurrentActivatedRoute=function(){for(var e=this.route.root;e.firstChild;)e=e.firstChild;return e},e.prototype.getModalRoutes=function(e,t){return V(this,void 0,void 0,(function(){var n,i,o;return P(this,(function(r){switch(r.label){case 0:return n=[].concat.apply([],B(e)),i=[],[4,this.getModuleRootPath(n,t)];case 1:return(o=r.sent())&&(i=this.getModalRoutePaths(n,o)),[2,i]}}))}))},e.prototype.getModuleRootPath=function(e,t){return V(this,void 0,void 0,(function(){var n,i;return P(this,(function(o){switch(o.label){case 0:return t?(n=t.trim().split("/").filter((function(e){return!!e})),[2,[""].concat(n)]):[4,this.getCurrentRoutePaths()];case 1:return i=o.sent(),[2,this.getRoutePathsWithoutChildSegments(i,e)]}}))}))},e.prototype.getCurrentRoutePaths=function(){return V(this,void 0,void 0,(function(){var e,t,n,i;return P(this,(function(o){switch(o.label){case 0:return e=[""],t=this.router.getCurrentNavigation(),this.router.navigated||t?t?[4,this.navigationEndListener$.pipe(r.first()).toPromise()]:[3,2]:[2,e];case 1:o.sent(),o.label=2;case 2:for(n=this.route.snapshot.root;n.firstChild;)n=n.firstChild;return i=n.pathFromRoot.filter((function(e){return"modal"!==e.outlet})),[2,e.concat.apply(e,B(i.map((function(e){return e.url.filter((function(e){return!!e.path})).map((function(e){return e.path}))}))))]}}))}))},e.prototype.getRoutePathsWithoutChildSegments=function(e,t){if(!e.length)return e;var n=this.findChildRouteForUrl(e.join("/"),t);if(!n)return e;var i=n.replace(/^\//,"").split("/").length;return e.slice(0,-i)},e.prototype.findChildRouteForUrl=function(e,t){var n=this,i=this.getRoutePaths(t,[""]).sort().reverse(),o=i.find((function(t){return e.endsWith(t)}));if(!o){o=i.find((function(t){return t.includes("/:")&&n.pathContainsChildRouteWithUrlParams(e,t,false)}))}return o},e.prototype.pathContainsChildRouteWithUrlParams=function(e,t,n){var i=e.split("/"),o=t;n||(o=t.replace(/^\//,""));var r=o.split("/").reverse().every((function(e){var t=i.pop();return e.startsWith(":")||e===t}));return n?0===i.length&&r:r},e.prototype.getRoutePaths=function(e,t){var n=this;return Array.isArray(e)?[].concat.apply([],B(e.map((function(e){return n.getRoutePath(e,t)})))):[]},e.prototype.getRoutePath=function(e,t){var n=[];if(e.outlet)return n;var i=B(t);return e.path&&(i.push(e.path),n.push(i.join("/"))),n.concat(this.getRoutePaths(e.children,i))},e.prototype.getModalRoutePath=function(e,t){var n="modal";if(e.path&&e.outlet===n)return[B(t,["(modal:"+e.path+")"]).join("/")];var i=B(t);return e.path&&i.push(e.path),[].concat.apply([],B(this.getModalRoutePaths(e.children,i)))},e.prototype.getModalRoutePaths=function(e,t){var n=this;return Array.isArray(e)?[].concat.apply([],B(e.map((function(e){return n.getModalRoutePath(e,t)})))):[]},e.prototype.isNewModalWindow=function(e){var t=this.router.getCurrentNavigation();if(!t||!t.previousNavigation)return!0;var n=(t.previousNavigation.finalUrl||t.previousNavigation.extractedUrl).toString(),i=this.isModalRoute(n),o=this.isModalRoute(e.urlAfterRedirects);if(!i&&o)return!0;var r=e.urlAfterRedirects.split("/(modal:")[0];return n.split("/(modal:")[0]!==r},e.prototype.waitForCurrentThenGetNavigationEndStream=function(){return V(this,void 0,void 0,(function(){var e;return P(this,(function(t){switch(t.label){case 0:return this.router.getCurrentNavigation()?[4,this.navigationEndListener$.pipe(r.first()).toPromise()]:[3,2];case 1:return e=t.sent(),[2,this.navigationEndListener$.pipe(r.startWith(e))];case 2:return[2,this.navigationEndListener$]}}))}))},e.prototype.modalRouteActivatedFor=function(e,t,n){var i=this;return e.pipe(r.filter((function(e){return i.modalRouteSetContainsPath(t,e,n)})),r.map((function(e){return{route:i.getCurrentActivatedRoute(),isNewModal:i.isNewModalWindow(e)}})))},e.prototype.modalRouteDeactivatedFor=function(e,t,n){var i=this;return e.pipe(r.pairwise(),r.filter((function(e){var o=M(e,2),r=o[0];o[1];return i.modalRouteSetContainsPath(t,r,n)})),r.map((function(e){var t=M(e,2),n=(t[0],t[1]);return!i.isModalRoute(n.urlAfterRedirects)||i.isNewModalWindow(n)})),r.filter((function(e){return e})))},e.prototype.modalRouteSetContainsPath=function(e,t,n){var i,o,r=t.urlAfterRedirects.split("?")[0],a=e.has(r);if(!a&&n)try{for(var s=A(e),l=s.next();!l.done;l=s.next()){var c=l.value;if(this.pathContainsChildRouteWithUrlParams(r,c,!0)){a=!0;break}}}catch(e){i={error:e}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}return a},e.prototype.getModalNavigation=function(e,t){return V(this,void 0,void 0,(function(){var n,i,r,a,s,l;return P(this,(function(c){switch(c.label){case 0:return Array.isArray(e)?[4,this.waitForCurrentThenGetNavigationEndStream()]:[3,3];case 1:return n=c.sent(),[4,this.getModalRoutes(e,t)];case 2:if(i=c.sent(),i.length>0)return r=i.some((function(e){return e.includes("/:")})),a=new Set(i),s=this.modalRouteActivatedFor(n,a,r),l=this.modalRouteDeactivatedFor(n,a,r),[2,{activated$:s,deactivated$:l}];c.label=3;case 3:return[2,{activated$:o.EMPTY,deactivated$:o.EMPTY}]}}))}))},e.prototype.navigateToModal=function(e,t){return V(this,void 0,void 0,(function(){var n,i;return P(this,(function(o){switch(o.label){case 0:return n=Array.isArray(e)?e:e.split("/"),i=n.pop(),[4,this.router.navigate(B(n,[{outlets:{modal:[i]}}]),{queryParams:t,relativeTo:this.getCurrentActivatedRoute()})];case 1:return[2,o.sent()]}}))}))},e.prototype.navigateWithinModal=function(e,t){return V(this,void 0,void 0,(function(){return P(this,(function(n){return[2,this.router.navigate([e],{queryParams:t,relativeTo:this.getCurrentActivatedRoute()})]}))}))},e.prototype.navigateOutOfModalOutlet=function(){return V(this,void 0,void 0,(function(){var e,t,n;return P(this,(function(i){return e=Promise.resolve(!0),"modal"===(t=this.getCurrentActivatedRoute()).outlet&&(n=this.getBackdropRoute(t),e=this.router.navigate(["./"],{relativeTo:n})),[2,e]}))}))},e.prototype.getBackdropRoute=function(e){for(var t=e.parent;t&&!t.component&&t.parent;)t=t.parent;return t},e}();$.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new $(t.ɵɵinject(i.Router),t.ɵɵinject(i.ActivatedRoute))},token:$,providedIn:"root"}),$.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],$.ctorParameters=function(){return[{type:i.Router},{type:i.ActivatedRoute}]};var G=function(){},U=new t.InjectionToken("componentProps"),Y=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},K=function(){function e(e,t,n){this.injector=e,this.elementRef=t,this.windowRef=n,this.scrollY=Math.abs(this.windowRef.nativeWindow.scrollY),this.scrollDisabled=!1,this.ionModalDidPresent=new o.Subject,this.ionModalWillDismiss=new o.Subject,this.didPresent=this.ionModalDidPresent.toPromise(),this.willClose=this.ionModalWillDismiss.toPromise()}return e.prototype.ngOnInit=function(){this.ionModalElement=this.elementRef.nativeElement.closest("ion-modal"),this.listenForIonModalDidPresent(),this.listenForIonModalWillDismiss(),this.componentPropsInjector=t.Injector.create({providers:[{provide:U,useValue:this.config.componentProps}],parent:this.injector})},e.prototype.listenForIonModalDidPresent=function(){var e=this;this.ionModalElement&&this.ionModalElement.addEventListener("ionModalDidPresent",(function(){e.ionModalDidPresent.next(),e.ionModalDidPresent.complete()}))},e.prototype.listenForIonModalWillDismiss=function(){var e=this;this.ionModalElement&&this.ionModalElement.addEventListener("ionModalWillDismiss",(function(){e.ionModalWillDismiss.next(),e.ionModalWillDismiss.complete()}))},e.prototype.close=function(e){return Y(this,void 0,void 0,(function(){var t;return P(this,(function(n){switch(n.label){case 0:return(t=this.elementRef.nativeElement.closest("ion-modal"))?[4,t.dismiss(e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},e.prototype.onFocusChange=function(){this.windowRef.nativeWindow.scrollTo({top:this.scrollY})},e}();K.decorators=[{type:t.Component,args:[{selector:"kirby-modal-compact-wrapper",template:'<ng-container\n *ngComponentOutlet="config.component; injector: componentPropsInjector"\n></ng-container>\n',providers:[{provide:G,useExisting:K}],host:{"[class.ion-page]":"false"},styles:[":host{display:block;padding:24px 16px}"]}]}],K.ctorParameters=function(){return[{type:t.Injector},{type:t.ElementRef},{type:j}]},K.propDecorators={config:[{type:t.Input}],onFocusChange:[{type:t.HostListener,args:["window:focus"]},{type:t.HostListener,args:["window:focusout"]}]};var q={brandColors:{primary:"#00e89a",secondary:"#005c3c",tertiary:"#01352c"},notificationColors:{success:"#2cf287",warning:"#ffca3a",danger:"#ff595e"},systemColors:{backgroundColor:"#f6f6f6",white:"#ffffff",light:"#f2f2f2",semiLight:"#ebebeb",medium:"#d1d1d1",semiDark:"#8e8e8e",dark:"#353535",black:"#1c1c1c"},textColors:{white:"#ffffff",semiDark:"#707070",black:"#1c1c1c",danger:"#ee0d0d"},focusRingColor:"#4d90fe",mainColors:{primary:"#00e89a",secondary:"#005c3c",tertiary:"#01352c",success:"#2cf287",warning:"#ffca3a",danger:"#ff595e",light:"#f2f2f2",medium:"#d1d1d1",dark:"#353535"},kirbyColors:{black:"#1c1c1c",blackRgb:"28, 28, 28",blackContrast:"#ffffff",blackContrastRgb:"255, 255, 255",blackShade:"#191919",blackShadeRgb:"25, 25, 25",blackTint:"#333333",blackTintRgb:"51, 51, 51",blackColorBrightness:"dark",dark:"#353535",darkRgb:"53, 53, 53",darkContrast:"#ffffff",darkContrastRgb:"255, 255, 255",darkShade:"#2f2f2f",darkShadeRgb:"47, 47, 47",darkTint:"#494949",darkTintRgb:"73, 73, 73",darkColorBrightness:"dark",semiDark:"#8e8e8e",semiDarkRgb:"142, 142, 142",semiDarkContrast:"#1c1c1c",semiDarkContrastRgb:"28, 28, 28",semiDarkShade:"#7d7d7d",semiDarkShadeRgb:"125, 125, 125",semiDarkTint:"#999999",semiDarkTintRgb:"153, 153, 153",semiDarkColorBrightness:"light",medium:"#d1d1d1",mediumRgb:"209, 209, 209",mediumContrast:"#1c1c1c",mediumContrastRgb:"28, 28, 28",mediumShade:"#b8b8b8",mediumShadeRgb:"184, 184, 184",mediumTint:"#d6d6d6",mediumTintRgb:"214, 214, 214",mediumColorBrightness:"light",semiLight:"#ebebeb",semiLightRgb:"235, 235, 235",semiLightContrast:"#1c1c1c",semiLightContrastRgb:"28, 28, 28",semiLightShade:"#cfcfcf",semiLightShadeRgb:"207, 207, 207",semiLightTint:"#ededed",semiLightTintRgb:"237, 237, 237",semiLightColorBrightness:"light",light:"#f2f2f2",lightRgb:"242, 242, 242",lightContrast:"#1c1c1c",lightContrastRgb:"28, 28, 28",lightShade:"#d5d5d5",lightShadeRgb:"213, 213, 213",lightTint:"#f3f3f3",lightTintRgb:"243, 243, 243",lightColorBrightness:"light",white:"#ffffff",whiteRgb:"255, 255, 255",whiteContrast:"#1c1c1c",whiteContrastRgb:"28, 28, 28",whiteShade:"#e0e0e0",whiteShadeRgb:"224, 224, 224",whiteTint:"white",whiteTintRgb:"255, 255, 255",whiteColorBrightness:"white",backgroundColor:"#f6f6f6",backgroundColorRgb:"246, 246, 246",backgroundColorContrast:"#1c1c1c",backgroundColorContrastRgb:"28, 28, 28",backgroundColorShade:"#d8d8d8",backgroundColorShadeRgb:"216, 216, 216",backgroundColorTint:"#f7f7f7",backgroundColorTintRgb:"247, 247, 247",backgroundColorColorBrightness:"light",danger:"#ff595e",dangerRgb:"255, 89, 94",dangerContrast:"#1c1c1c",dangerContrastRgb:"28, 28, 28",dangerShade:"#e04e53",dangerShadeRgb:"224, 78, 83",dangerTint:"#ff6a6e",dangerTintRgb:"255, 106, 110",dangerColorBrightness:"light",warning:"#ffca3a",warningRgb:"255, 202, 58",warningContrast:"#1c1c1c",warningContrastRgb:"28, 28, 28",warningShade:"#e0b233",warningShadeRgb:"224, 178, 51",warningTint:"#ffcf4e",warningTintRgb:"255, 207, 78",warningColorBrightness:"light",success:"#2cf287",successRgb:"44, 242, 135",successContrast:"#1c1c1c",successContrastRgb:"28, 28, 28",successShade:"#27d577",successShadeRgb:"39, 213, 119",successTint:"#41f393",successTintRgb:"65, 243, 147",successColorBrightness:"light",tertiary:"#01352c",tertiaryRgb:"1, 53, 44",tertiaryContrast:"#ffffff",tertiaryContrastRgb:"255, 255, 255",tertiaryShade:"#012f27",tertiaryShadeRgb:"1, 47, 39",tertiaryTint:"#1a4941",tertiaryTintRgb:"26, 73, 65",tertiaryColorBrightness:"dark",secondary:"#005c3c",secondaryRgb:"0, 92, 60",secondaryContrast:"#ffffff",secondaryContrastRgb:"255, 255, 255",secondaryShade:"#005135",secondaryShadeRgb:"0, 81, 53",secondaryTint:"#1a6c50",secondaryTintRgb:"26, 108, 80",secondaryColorBrightness:"dark",primary:"#00e89a",primaryRgb:"0, 232, 154",primaryContrast:"#1c1c1c",primaryContrastRgb:"28, 28, 28",primaryShade:"#00cc88",primaryShadeRgb:"0, 204, 136",primaryTint:"#1aeaa4",primaryTintRgb:"26, 234, 164",primaryColorBrightness:"light"},kirbyTextColors:{danger:"#ee0d0d",dangerRgb:"238, 13, 13",dangerContrast:"#ffffff",dangerContrastRgb:"255, 255, 255",dangerShade:"#d10b0b",dangerShadeRgb:"209, 11, 11",dangerTint:"#f02525",dangerTintRgb:"240, 37, 37",dangerColorBrightness:"dark",black:"#1c1c1c",blackRgb:"28, 28, 28",blackContrast:"#ffffff",blackContrastRgb:"255, 255, 255",blackShade:"#191919",blackShadeRgb:"25, 25, 25",blackTint:"#333333",blackTintRgb:"51, 51, 51",blackColorBrightness:"dark",semiDark:"#707070",semiDarkRgb:"112, 112, 112",semiDarkContrast:"#ffffff",semiDarkContrastRgb:"255, 255, 255",semiDarkShade:"#636363",semiDarkShadeRgb:"99, 99, 99",semiDarkTint:"#7e7e7e",semiDarkTintRgb:"126, 126, 126",semiDarkColorBrightness:"dark",white:"#ffffff",whiteRgb:"255, 255, 255",whiteContrast:"#1c1c1c",whiteContrastRgb:"28, 28, 28",whiteShade:"#e0e0e0",whiteShadeRgb:"224, 224, 224",whiteTint:"white",whiteTintRgb:"255, 255, 255",whiteColorBrightness:"white"}},Z=function(e){return e.length&&1!==e.length?e.split("-").map((function(e,t){return 0===t?e:e[0].toUpperCase()+e.substr(1)})).join(""):e},J=function(e){return e.length&&1!==e.length?e.split("").map((function(e,t){return e.toUpperCase()===e&&"-"!==e?0===t?e.toLowerCase():"-"+e.toLowerCase():e})).join(""):e},Q=function(e){return"string"!=typeof e?"":e.charAt(0).toUpperCase()+e.slice(1)},X=function(){function e(){}return e.getMainColors=function(){return Object.entries(q.mainColors).map((function(e){var t=M(e,2);return{name:t[0],value:t[1]}}))},e.mapToKirbyColorArray=function(e,t){void 0===t&&(t=q.kirbyColors);var n="Tint",i="Shade",o="Contrast";return Object.entries(e).map((function(e){var r=M(e,2),a=r[0],s=r[1];return{name:J(a),value:s,base:s,tint:{value:t[a+n],name:J(a+n)},shade:{value:t[a+i],name:J(a+i)},contrast:{value:t[a+o],name:J(a+o)}}}))},e.getBackgroundColor=function(){return e.getColor("background-color")},e.getColorBrightness=function(t){return e.getColor(t+"-color-brightness")},e.getThemeColorRgbString=function(t){return"rgb("+e.getColor(t+"-rgb")+")"},e.getThemeTextColorRgbString=function(t){return"rgb("+e.getTextColor(t+"-rgb")+")"},e.getThemeColorHexString=function(t){return e.getColor(t)},e.getThemeTextColorHexString=function(t){return e.getTextColor(t)},e.getTransparentColorRgbString=function(){return"rgba(0, 0, 0, 0)"},e.colorStringToRgbString=function(t){if(0===t.indexOf("rgb"))return t;if(0===t.indexOf("#"))return e.hexToRGB(t);if(3===t.split(",").length)return"rgb("+t+")";if(4===t.split(",").length)return"rgba("+t+")";var n=document.createElement("canvas").getContext("2d");n.fillStyle=t;var i=n.fillStyle.toString();return e.colorStringToRgbString(i)},e.hexToRGB=function(e){var t="0",n="0",i="0";return 4===e.length?(t="0x"+e[1]+e[1],n="0x"+e[2]+e[2],i="0x"+e[3]+e[3]):7===e.length&&(t="0x"+e[1]+e[2],n="0x"+e[3]+e[4],i="0x"+e[5]+e[6]),"rgb("+ +t+", "+ +n+", "+ +i+")"},e.getColor=function(e){var t=Z(e);return q.kirbyColors[t]||null},e.getTextColor=function(e){var t=Z(e);return q.kirbyTextColors[t]||null},e}();X.brandColors=X.mapToKirbyColorArray(q.brandColors),X.notificationColors=X.mapToKirbyColorArray(q.notificationColors),X.systemColors=X.mapToKirbyColorArray(q.systemColors),X.textColors=X.mapToKirbyColorArray(q.textColors,q.kirbyTextColors),X.mainColors=X.getMainColors();var ee=function(){function e(){}return e.getColor=function(e,t){var n=""+e+(t?"-"+t:"");return{name:e,variant:t,fullname:n,value:X.getThemeColorRgbString(n),hex:X.getThemeColorHexString(n)}},e.getTextColor=function(e,t){var n=""+e+(t?"-"+t:"");return{name:e,variant:t,fullname:n,value:X.getThemeTextColorRgbString(n),hex:X.getThemeTextColorHexString(n)}},e.size=function(e){return R.sizes[e]},e.fontSize=function(e){return R.fontSizes[e]},e.iconFontSize=function(e){return R.iconFontSizes[e]},e.fontWeight=function(e){return R.fontWeight[e]},e.lineHeight=function(e){return R.lineHeight[e]},e.backgroundColor=function(){return X.getBackgroundColor()},e.borderRadius=function(){return R.borderRadius},e.borderRadiusRound=function(){return R.borderRadiusRound},e.alertMaxWidth=function(){return R.alertMaxWidth},e.compactModalMaxWidth=function(){return R.compactModalMaxWidth},e.dropdownItemHeight=function(){return R.dropdownItemHeight},e.avatarSize=function(e){return R.avatarSizes[e]},e.fatFingerSize=function(){return R.fatFingerSize},e.getElevation=function(e){return R.elevations[e]},e.itemHeight=function(e){return R.itemHeights[e]},e.zLayer=function(e){return R.zLayers[e]},e}();ee.breakpoints=R.breakpoints,ee.softKeyboardTransitionEnter=R.softKeyboardTransitionEnter,ee.softKeyboardTransitionLeave=R.softKeyboardTransitionLeave,ee.modalDefaultHeight=R.modalDefaultHeight,ee.drawerDefaultHeight=R.drawerDefaultHeight;var te=function(){function e(e){this.windowRef=e}return e.prototype.isTouch=function(){return this.windowRef.nativeWindow.matchMedia("(pointer: coarse)").matches},e.prototype.isPhabletOrBigger=function(){var e="(min-width: "+ee.breakpoints.medium+")";return this.windowRef.nativeWindow.matchMedia(e).matches},e}();te.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new te(t.ɵɵinject(j))},token:te,providedIn:"root"}),te.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],te.ctorParameters=function(){return[{type:j}]};var ne=new t.InjectionToken("IconSettings"),ie=function(){function e(e){this.iconRegistry=new Map,e&&(this.addIcons(e.icons),console.warn("Use of IconSettings is deprecated, use IconRegistryService instead"))}return e.prototype.addIcon=function(e,t){this.iconRegistry.has(e)?console.warn('Icon with name: "'+e+'" already exists'):this.iconRegistry.set(e,t)},e.prototype.addIcons=function(e){var t=this;e?e.forEach((function(e){t.addIcon(e.name,e.svg)})):console.error("Icons not defined")},e.prototype.getIcons=function(){return B(this.iconRegistry).map((function(e){return{name:e[0],svg:e[1]}}))},e.prototype.getIcon=function(e){var t=this.iconRegistry.get(e);return t?{name:e,svg:t}:void 0},e}();ie.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new ie(t.ɵɵinject(ne,8))},token:ie,providedIn:"root"}),ie.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],ie.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[ne]}]}]};var oe,re={icons:[{name:"accounts-outline",svg:"assets/kirby/icons/svg/accounts-outline.svg"},{name:"accounts",svg:"assets/kirby/icons/svg/accounts.svg"},{name:"add",svg:"assets/kirby/icons/svg/add.svg"},{name:"remove",svg:"assets/kirby/icons/svg/remove.svg"},{name:"unsubscribe",svg:"assets/kirby/icons/svg/unsubscribe.svg"},{name:"arrow-back",svg:"assets/kirby/icons/svg/arrow-back.svg"},{name:"arrow-down",svg:"assets/kirby/icons/svg/arrow-down.svg"},{name:"arrow-more",svg:"assets/kirby/icons/svg/arrow-more.svg"},{name:"arrow-up",svg:"assets/kirby/icons/svg/arrow-up.svg"},{name:"attach",svg:"assets/kirby/icons/svg/attach.svg"},{name:"backspace",svg:"assets/kirby/icons/svg/backspace.svg"},{name:"calendar",svg:"assets/kirby/icons/svg/calendar.svg"},{name:"camera",svg:"assets/kirby/icons/svg/camera.svg"},{name:"checkbox-outline",svg:"assets/kirby/icons/svg/checkbox-outline.svg"},{name:"checkbox",svg:"assets/kirby/icons/svg/checkbox.svg"},{name:"checkmark-selected",svg:"assets/kirby/icons/svg/checkmark-selected.svg"},{name:"close",svg:"assets/kirby/icons/svg/close.svg"},{name:"cog",svg:"assets/kirby/icons/svg/cog.svg"},{name:"copy",svg:"assets/kirby/icons/svg/copy.svg"},{name:"flag",svg:"assets/kirby/icons/svg/flag.svg"},{name:"edit",svg:"assets/kirby/icons/svg/edit.svg"},{name:"filter",svg:"assets/kirby/icons/svg/filter.svg"},{name:"flash-off",svg:"assets/kirby/icons/svg/flash-off.svg"},{name:"flash",svg:"assets/kirby/icons/svg/flash.svg"},{name:"moneybag",svg:"assets/kirby/icons/svg/moneybag.svg"},{name:"help",svg:"assets/kirby/icons/svg/help.svg"},{name:"home",svg:"assets/kirby/icons/svg/home.svg"},{name:"inbox",svg:"assets/kirby/icons/svg/inbox.svg"},{name:"inbox-outline",svg:"assets/kirby/icons/svg/inbox-outline.svg"},{name:"information",svg:"assets/kirby/icons/svg/information.svg"},{name:"investment",svg:"assets/kirby/icons/svg/investment.svg"},{name:"kirby",svg:"assets/kirby/icons/svg/kirby.svg"},{name:"link",svg:"assets/kirby/icons/svg/link.svg"},{name:"log-out",svg:"assets/kirby/icons/svg/log-out.svg"},{name:"menu-outline",svg:"assets/kirby/icons/svg/menu-outline.svg"},{name:"menu",svg:"assets/kirby/icons/svg/menu.svg"},{name:"misc",svg:"assets/kirby/icons/svg/misc.svg"},{name:"more",svg:"assets/kirby/icons/svg/more.svg"},{name:"move",svg:"assets/kirby/icons/svg/move.svg"},{name:"pension",svg:"assets/kirby/icons/svg/pension.svg"},{name:"person-outline",svg:"assets/kirby/icons/svg/person-outline.svg"},{name:"person",svg:"assets/kirby/icons/svg/person.svg"},{name:"qr",svg:"assets/kirby/icons/svg/QR.svg"},{name:"search",svg:"assets/kirby/icons/svg/search.svg"},{name:"share",svg:"assets/kirby/icons/svg/share.svg"},{name:"sort",svg:"assets/kirby/icons/svg/sort.svg"},{name:"support",svg:"assets/kirby/icons/svg/support.svg"},{name:"swap",svg:"assets/kirby/icons/svg/swap.svg"},{name:"trash",svg:"assets/kirby/icons/svg/trash.svg"},{name:"foreign-payment",svg:"assets/kirby/icons/svg/foreign-payment.svg"},{name:"clock",svg:"assets/kirby/icons/svg/clock.svg"},{name:"verify",svg:"assets/kirby/icons/svg/verify.svg"},{name:"warning",svg:"assets/kirby/icons/svg/warning.svg"},{name:"write-message",svg:"assets/kirby/icons/svg/write-message.svg"},{name:"reorder",svg:"assets/kirby/icons/svg/reorder.svg"}]},ae=re.icons.map((function(e){return e.name}));(oe=e.IconSize||(e.IconSize={})).XS="xs",oe.SM="sm",oe.MD="md",oe.LG="lg";var se,le=function(){function e(e){this.iconRegistryService=e,this.defaultIcon=this.findIcon(re.icons,"cog"),this._icon=this.icon=this.defaultIcon}return Object.defineProperty(e.prototype,"icon",{get:function(){return this._icon},set:function(e){e||!this.name&&!this.customName||(this.warnAboutMissingIcon(),e=this.defaultIcon)?e&&(this._icon=e):console.warn("Default icon was not found.")},enumerable:!1,configurable:!0}),e.prototype.warnAboutMissingIcon=function(){this.customName?console.warn('Custom icon with name "'+this.customName+"\" was not found. \n Do you have a typo in 'customName' or\n forgot to configure the custom icon through the 'IconRegistryService'?"):console.warn('Built-in icon with name "'+this.name+"\" was not found. \n Do you have a typo in 'name' or\n did you mean to use a custom icon? If so, please use: \n <kirby-icon customName=\""+this.name+'"></kirby-icon>')},e.prototype.ngOnChanges=function(e){e.name&&e.name.currentValue?this.icon=this.findIcon(re.icons,e.name.currentValue):e.customName&&e.customName.currentValue&&(this.icon=this.iconRegistryService.getIcon(e.customName.currentValue))},e.prototype.findIcon=function(e,t){return e.find((function(e){return e.name===t}))},e}();le.decorators=[{type:t.Component,args:[{selector:"kirby-icon",template:'<ion-icon [src]="icon?.svg"></ion-icon>\n',host:{"[class.kirby-icon]":"true"},styles:[":host{display:inline-flex;align-items:center;justify-content:center;font-size:var(--kirby-icon-font-size,24px);margin-left:var(--kirby-icon-margin-left,unset);margin-right:var(--kirby-icon-margin-right,unset)}:host svg path{fill:currentColor;stroke:currentColor}:host(.xs){--kirby-icon-font-size:16px}:host(.sm){--kirby-icon-font-size:24px}:host(.md){--kirby-icon-font-size:32px}:host(.lg){--kirby-icon-font-size:56px}:host(.primary){color:var(--kirby-primary)}:host(.secondary){color:var(--kirby-secondary)}:host(.tertiary){color:var(--kirby-tertiary)}:host(.success){color:var(--kirby-success)}:host(.warning){color:var(--kirby-warning)}:host(.danger){color:var(--kirby-danger)}:host(.light){color:var(--kirby-light)}:host(.medium){color:var(--kirby-medium)}:host(.dark){color:var(--kirby-dark)}:host-context(kirby-item)[slot=start]{margin-inline-end:8px}:host-context(kirby-item)[slot=end]{margin-inline-start:8px}"]}]}],le.ctorParameters=function(){return[{type:ie}]},le.propDecorators={size:[{type:t.HostBinding,args:["class"]},{type:t.Input}],name:[{type:t.Input}],customName:[{type:t.Input}]},(se=e.ButtonSize||(e.ButtonSize={})).SM="sm",se.MD="md",se.LG="lg";var ce=function(){function t(t){this.elementRef=t,this.isAttentionLevel1=!0,this.destructive=!1,this._isIconLeft=!1,this._isIconRight=!1,this.isFloating=!1,this.size=e.ButtonSize.MD,this.hasText=!1}return Object.defineProperty(t.prototype,"isButtonFloating",{get:function(){return this.isFloating},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isIconOnly",{get:function(){return!!this.icon&&!this.hasText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isIconLeft",{get:function(){return this._isIconLeft},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isIconRight",{get:function(){return this._isIconRight},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_cssClass",{get:function(){return[this.themeColor,this.size].filter((function(e){return!!e}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attentionLevel",{set:function(e){this.isAttentionLevel1="1"===e,this.isAttentionLevel2="2"===e,this.isAttentionLevel3="3"===e,this.isAttentionLevel4="4"===e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDestructive",{set:function(e){this.destructive=e},enumerable:!1,configurable:!0}),t.prototype.ngAfterContentInit=function(){this.hasText=!!this.elementRef.nativeElement.textContent,void 0!==this.iconElementRef&&this.hasText&&(this._isIconLeft=this.elementRef.nativeElement.firstChild===this.iconElementRef.nativeElement,this._isIconRight=!this._isIconLeft)},t}();ce.decorators=[{type:t.Component,args:[{selector:"button[kirby-button],Button[kirby-button]",template:"<ng-content></ng-content>\n",styles:[':host{position:relative;font-family:var(--kirby-font-family);background-color:var(--kirby-button-background-color,initial);color:var(--kirby-button-color,inherit);border-radius:999px;box-sizing:border-box;cursor:pointer;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;transition:opacity .2s linear;-webkit-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap;font-size:14px;height:40px;min-width:88px;padding:0 24px;margin:4px;line-height:20px;outline:none;border:1px solid var(--kirby-button-border-color,transparent)}:host:after{content:"";position:absolute;min-height:44px;min-width:44px;width:100%;height:100%;transform:translate(-50%,-50%);left:50%;top:50%}:host.icon-left{padding-left:12px;padding-right:16px;--kirby-icon-margin-right:8px}:host.icon-right{padding-left:16px;padding-right:12px;--kirby-icon-margin-left:8px}:host.icon-only{width:40px;padding:0;min-width:unset}:host.sm{font-size:12px;height:32px;min-width:44px}:host.sm:not(.icon-only){padding-left:16px;padding-right:16px}:host.sm.icon-only{width:32px;min-width:unset}:host.sm.icon-left,:host.sm.icon-right{--kirby-icon-font-size:16px;min-width:88px}:host.lg{font-size:16px;height:48px;min-width:220px}:host.lg.icon-only{width:48px;min-width:unset}:host.attention-level1{--kirby-button-background-color:var(--kirby-primary);--kirby-button-color:var(--kirby-primary-contrast)}:host.attention-level1.destructive{--kirby-button-background-color:var(--kirby-danger);--kirby-button-color:var(--kirby-danger-contrast)}:host.attention-level2{--kirby-button-background-color:var(--kirby-white);--kirby-button-color:var(--kirby-white-contrast)}:host.attention-level2.destructive{--kirby-button-background-color:var(--kirby-light);--kirby-button-color:var(--kirby-danger)}:host.attention-level3{--kirby-button-background-color:transparent;--kirby-button-color:var(--kirby-black);--kirby-button-border-color:var(--kirby-medium)}:host.attention-level3.destructive{--kirby-button-color:var(--kirby-danger)}:host.attention-level4{--kirby-button-background-color:transparent;--kirby-button-color:var(--kirby-black)}:host.attention-level4.destructive{--kirby-button-color:var(--kirby-danger)}:host[expand=block]{width:100%}@media (hover:hover){:host:focus{--kirby-button-border-color:#4d90fe}}@media (hover:hover){:host:hover{opacity:.8}}:host:active{opacity:.8}:host:disabled{background-color:var(--kirby-semi-light);color:var(--kirby-semi-dark-shade);border-color:transparent;pointer-events:none}:host :host-context(.default).attention-level2,:host :host-context(.kirby-color-brightness-white).attention-level2{--kirby-button-background-color:var(--kirby-black);--kirby-button-color:var(--kirby-black-contrast)}:host :host-context(.kirby-color-brightness-dark).attention-level3{--kirby-button-border-color:var(--kirby-white);--kirby-button-color:var(--kirby-white)}:host :host-context(.kirby-color-brightness-dark).attention-level4{--kirby-button-color:var(--kirby-white)}:host.floating{width:64px!important;height:64px!important;min-width:unset}:host.floating:not(:disabled){box-shadow:0 20px 30px -15px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08)}:host-context(kirby-item)[slot=end]{margin-inline-start:16px}:host-context(kirby-alert).ok-btn{--kirby-button-background-color:var(--kirby-success);--kirby-button-color:var(--kirby-success-contrast)}:host-context(ion-toolbar kirby-page-actions){font-size:14px;margin:0;height:44px}:host-context(ion-toolbar kirby-page-actions).icon-only{width:44px}:host-context(ion-toolbar kirby-page-actions).attention-level1,:host-context(ion-toolbar kirby-page-actions).attention-level2,:host-context(ion-toolbar kirby-page-actions).attention-level3,:host-context(ion-toolbar kirby-page-actions).attention-level4{--kirby-button-background-color:transparent;--kirby-button-color:var(--kirby-black)}:host-context(ion-toolbar kirby-page-actions).attention-level1.destructive,:host-context(ion-toolbar kirby-page-actions).attention-level2.destructive,:host-context(ion-toolbar kirby-page-actions).attention-level3.destructive,:host-context(ion-toolbar kirby-page-actions).attention-level4.destructive{--kirby-button-color:var(--kirby-danger)}:host-context(.page-title kirby-page-actions).attention-level1,:host-context(.page-title kirby-page-actions).attention-level2,:host-context(.page-title kirby-page-actions).attention-level3,:host-context(.page-title kirby-page-actions).attention-level4{--kirby-button-background-color:var(--kirby-white);--kirby-button-color:var(--kirby-white-contrast)}:host-context(.page-title kirby-page-actions).attention-level1.destructive,:host-context(.page-title kirby-page-actions).attention-level2.destructive,:host-context(.page-title kirby-page-actions).attention-level3.destructive,:host-context(.page-title kirby-page-actions).attention-level4.destructive{--kirby-button-background-color:var(--kirby-light);--kirby-button-color:var(--kirby-danger)}:host-context(kirby-empty-state .content){font-size:16px;height:48px;min-width:220px}:host-context(kirby-empty-state .content).icon-only{width:48px;min-width:unset}:host-context(kirby-dropdown){justify-content:space-between}:host-context(kirby-toggle-button).success{--kirby-button-background-color:var(--kirby-success);--kirby-button-color:var(--kirby-success-contrast)}:host-context(kirby-toggle-button).warning{--kirby-button-background-color:var(--kirby-warning);--kirby-button-color:var(--kirby-warning-contrast)}:host-context(kirby-toggle-button).danger{--kirby-button-background-color:var(--kirby-danger);--kirby-button-color:var(--kirby-danger-contrast)}']}]}],ce.ctorParameters=function(){return[{type:t.ElementRef}]},ce.propDecorators={isAttentionLevel1:[{type:t.HostBinding,args:["class.attention-level1"]}],isAttentionLevel2:[{type:t.HostBinding,args:["class.attention-level2"]}],isAttentionLevel3:[{type:t.HostBinding,args:["class.attention-level3"]}],isAttentionLevel4:[{type:t.HostBinding,args:["class.attention-level4"]}],destructive:[{type:t.HostBinding,args:["class.destructive"]}],isButtonFloating:[{type:t.HostBinding,args:["class.floating"]}],isIconOnly:[{type:t.HostBinding,args:["class.icon-only"]}],isIconLeft:[{type:t.HostBinding,args:["class.icon-left"]}],isIconRight:[{type:t.HostBinding,args:["class.icon-right"]}],_cssClass:[{type:t.HostBinding,args:["class"]}],attentionLevel:[{type:t.Input}],isDestructive:[{type:t.Input}],themeColor:[{type:t.Input}],expand:[{type:t.Input}],isFloating:[{type:t.Input}],size:[{type:t.Input}],icon:[{type:t.ContentChild,args:[le]}],iconElementRef:[{type:t.ContentChild,args:[le,{read:t.ElementRef}]}]};var de=function(){function e(){}return e.prototype.create=function(e){return"undefined"==typeof ResizeObserver?null:new ResizeObserver(e)},e}();de.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new de},token:de,providedIn:"root"}),de.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}];var pe=function(){function e(e,t){var n=this;this._resizeObserverFactory=e,this.zone=t,this.observedElements=new WeakMap,this.observer=this._resizeObserverFactory.create((function(e){return n.handleResize(e)}))}return e.prototype.observe=function(e,n){var i=this,o=e instanceof t.ElementRef?e.nativeElement:e;this.observedElements.has(o)||(this.observer&&this.zone.runOutsideAngular((function(){i.observer.observe(o)})),this.observedElements.set(o,n))},e.prototype.ngOnDestroy=function(){var e=this;this.observer&&this.zone.runOutsideAngular((function(){e.observer.disconnect()})),this.observedElements=null},e.prototype.unobserve=function(e){var n=this,i=e instanceof t.ElementRef?e.nativeElement:e;this.observedElements.has(i)&&(this.observer&&this.zone.runOutsideAngular((function(){n.observer.unobserve(i)})),this.observedElements.delete(i))},e.prototype.handleResize=function(e){var t=this;e.forEach((function(e){var n=t.observedElements.get(e.target);n&&n(e)}))},e}();pe.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new pe(t.ɵɵinject(de),t.ɵɵinject(t.NgZone))},token:pe,providedIn:"root"}),pe.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],pe.ctorParameters=function(){return[{type:de},{type:t.NgZone}]};var he=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},ue=function(){function e(e,t,n,i,a,s,l,c){var d=this;this.injector=e,this.elementRef=t,this.renderer=n,this.zone=i,this.resizeObserverService=a,this.componentFactoryResolver=s,this.windowRef=l,this.platform=c,this.scrollY=Math.abs(this.windowRef.nativeWindow.scrollY),this.VIEWPORT_RESIZE_DEBOUNCE_TIME=100,this.keyboardVisible=!1,this.toolbarButtons=[],this.delayedClose=function(){},this.viewportResized=!1,this.ionModalDidPresent=new o.Subject,this.didPresent=this.ionModalDidPresent.toPromise(),this.ionModalWillDismiss=new o.Subject,this.willClose=this.ionModalWillDismiss.toPromise(),this.viewportResize=new o.Subject,this.viewportResize$=this.viewportResize.asObservable().pipe(r.debounceTime(this.VIEWPORT_RESIZE_DEBOUNCE_TIME)),this.destroy$=new o.Subject,this.willClose$=this.ionModalWillDismiss.pipe(r.first()),this.elementToParentMap={"KIRBY-MODAL-FOOTER":function(){return d.elementRef.nativeElement},"KIRBY-PAGE-TITLE":function(){return d.ionTitleElement.nativeElement},"KIRBY-PAGE-PROGRESS":function(){return d.ionToolbarElement.nativeElement}},this.setViewportHeight(),this.observeViewportResize()}return Object.defineProperty(e.prototype,"scrollDisabled",{set:function(e){this.ionContent.scrollY=!e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mutationObserver",{get:function(){return this._mutationObserver||(this._mutationObserver=this.createEmbeddedElementsMutationObserver()),this._mutationObserver},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"intersectionObserver",{get:function(){return this._intersectionObserver||(this._intersectionObserver=this.createModalWrapperIntersectionObserver()),this._intersectionObserver},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_isDrawer",{get:function(){return"drawer"===this.config.flavor},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.ionModalElement=this.elementRef.nativeElement.closest("ion-modal"),this.initializeSizing(),this.initializeModalRoute(),this.listenForIonModalDidPresent(),this.listenForIonModalWillDismiss(),this.initializeResizeModalToModalWrapper(),this.componentPropsInjector=t.Injector.create({providers:[{provide:U,useValue:this.config.componentProps}],parent:this.injector})},e.prototype.initializeResizeModalToModalWrapper=function(){var e=this;"drawer"===this.config.flavor&&this.config.interactWithBackground&&o.merge(this.ionModalDidPresent,this.viewportResize$).pipe(r.takeUntil(this.destroy$)).subscribe((function(){setTimeout((function(){var t=e.elementRef.nativeElement.getBoundingClientRect(),n=e.windowRef.nativeWindow.document.documentElement.clientWidth-t.right;e.renderer.setStyle(e.ionModalElement,"top",t.top+"px"),e.renderer.setStyle(e.ionModalElement,"left",t.left+"px"),e.renderer.setStyle(e.ionModalElement,"right",n+"px")}))}))},e.prototype.initializeSizing=function(){"full-height"!==this.config.size&&(this.patchScrollElementSize(),this.observeHeaderResize(),this.observeModalFullHeight())},e.prototype.initializeModalRoute=function(){this.config.modalRoute&&(this.onSiblingModalRouteActivated(this.config.siblingModalRouteActivated$),this.routerOutlet.activateWith(this.config.modalRoute,this.componentFactoryResolver))},e.prototype.onSiblingModalRouteActivated=function(e){var t=this;e&&e.pipe(r.takeUntil(this.willClose$)).subscribe((function(e){t.routerOutlet.isActivated&&(t.mutationObserver.disconnect(),t.routerOutlet.deactivate(),t.clearEmbeddedElements()),t.routerOutlet.activateWith(e,t.componentFactoryResolver),t.checkForEmbeddedElements()}))},e.prototype.patchScrollElementSize=function(){var e=this;"part"in HTMLElement.prototype||this.ionContent.getScrollElement().then((function(t){e.renderer.setStyle(t,"height","100%"),e.renderer.setStyle(t,"position","relative"),"drawer"===e.config.flavor&&e.renderer.setStyle(t,"transition","padding-bottom "+ee.softKeyboardTransitionLeave)}))},e.prototype.observeModalFullHeight=function(){var e=this,t=this.elementRef.nativeElement.closest(".modal-wrapper");t&&this.didPresent.then((function(){e.intersectionObserver.observe(t)}))},e.prototype.ngAfterViewInit=function(){this.toolbarButtonsQuery&&(this.toolbarButtons=this.toolbarButtonsQuery.map((function(e){return e.nativeElement}))),this.checkForEmbeddedElements()},e.prototype.checkForEmbeddedElements=function(){this.moveEmbeddedElements(),this.observeEmbeddedElements()},e.prototype.observeHeaderResize=function(){var e=this;this.resizeObserverService.observe(this.ionHeaderElement.nativeElement,(function(t){var n=M(["--header-height",t.contentRect.height+"px"],2),i=n[0],o=n[1];e.setCssVar(e.elementRef.nativeElement,i,o)}))},e.prototype.moveEmbeddedElements=function(){var e=this,t=this.getEmbeddedComponentElement();t&&Object.entries(this.elementToParentMap).forEach((function(n){var i=M(n,2),o=i[0],r=i[1],a=t.querySelector(o);a&&e.moveChild(a,r())}))},e.prototype.listenForIonModalDidPresent=function(){var e=this;this.ionModalElement&&this.ionModalElement.addEventListener("ionModalDidPresent",(function(){e.ionModalDidPresent.next(),e.ionModalDidPresent.complete()}))},e.prototype.listenForIonModalWillDismiss=function(){var e=this;this.ionModalElement&&this.ionModalElement.addEventListener("ionModalWillDismiss",(function(){e.ionModalWillDismiss.next(),e.ionModalWillDismiss.complete()}))},e.prototype.scrollToTop=function(e){this.ionContent.scrollToTop(e||0)},e.prototype.scrollToBottom=function(e){this.ionContent.scrollToBottom(e||0)},e.prototype.close=function(t){return he(this,void 0,void 0,(function(){var n=this;return P(this,(function(i){switch(i.label){case 0:return this.ionModalElement?this.keyboardVisible&&this.viewportResized?[3,2]:(clearTimeout(this.delayedCloseTimeoutId),[4,this.ionModalElement.dismiss(t)]):[2];case 1:return i.sent(),[2];case 2:return this.blurActiveElement(),[2,new Promise((function(i){n.delayedClose=function(){return he(n,void 0,void 0,(function(){return P(this,(function(e){switch(e.label){case 0:return[4,this.ionModalElement.dismiss(t)];case 1:return e.sent(),i(),[2]}}))}))},n.delayedCloseTimeoutId=setTimeout(n.delayedClose,e.KEYBOARD_HIDE_DELAY_IN_MS)}))]}}))}))},e.prototype.onFocusChange=function(){this.windowRef.nativeWindow.scrollTo({top:this.scrollY})},e.prototype._onKeyboardShow=function(e){this.setKeyboardVisibility(e)},e.prototype._onKeyboardHide=function(){this.setKeyboardVisibility(0)},e.prototype.toggleContentMaxHeight=function(e){var t=this;if("modal"===this.config.flavor&&this.platform.isPhabletOrBigger()){var n="max-height",i=this.ionContentElement.nativeElement;this.zone.run((function(){if(e){var o=i.offsetHeight;t.renderer.setStyle(i,n,o+"px")}else t.renderer.removeStyle(i,n)}))}},e.prototype.setKeyboardVisibility=function(e){var t=e>0&&this.keyboardVisible,n=0===e&&!this.keyboardVisible;t||n||(this.keyboardVisible=e>0,this.toggleContentMaxHeight(this.keyboardVisible),this.setKeyboardOverlap(e))},e.prototype.getKeyboardOverlap=function(e,t){if(e<=0||!t)return 0;var n=Math.floor(this.windowRef.nativeWindow.innerHeight-t.getBoundingClientRect().bottom);return Math.max(e-n,0)},e.prototype.setCssVar=function(e,n,i){var o=this;this.zone.run((function(){return o.renderer.setStyle(e,n,i,t.RendererStyleFlags2.DashCase)}))},e.prototype.toggleCssClass=function(e,t,n){var i=this;this.zone.run((function(){return n?i.renderer.addClass(e,t):i.renderer.removeClass(e,t)}))},e.prototype.setKeyboardOverlap=function(e){this.toggleCssClass(this.elementRef.nativeElement,"keyboard-visible",e>0);var t=this.getKeyboardOverlap(e,this.elementRef.nativeElement),n=!1,i=this.getEmbeddedFooterElement();i&&(this.setCssVar(i,"--keyboard-offset",t+"px"),n=i.classList.contains("snap-to-keyboard"));var o=this.ionContentElement.nativeElement,r=n?t:this.getKeyboardOverlap(e,o);this.setCssVar(o,"--keyboard-offset",r+"px")},e.prototype.onHeaderTouchStart=function(e){this.keyboardVisible&&(this.toolbarButtons.some((function(t){return e.target instanceof HTMLElement&&(e.target===t||t.contains(e.target))}))||this.blurActiveElement())},e.prototype._onWindowResize=function(){this.setViewportHeight()},e.prototype.setViewportHeight=function(){var e=(.01*this.windowRef.nativeWindow.innerHeight).toFixed(2);this.setCssVar(this.elementRef.nativeElement,"--vh",e+"px")},e.prototype.observeViewportResize=function(){var e=this;this.resizeObserverService.observe(this.windowRef.nativeWindow.document.body,(function(t){return e.onViewportResize(t)}))},e.prototype.onViewportResize=function(e){this.initialViewportHeight?(this.viewportResized=e.contentRect.height!==this.initialViewportHeight,this.viewportResized||this.delayedCloseTimeoutId&&(clearTimeout(this.delayedCloseTimeoutId),this.delayedClose()),this.viewportResize.next()):this.initialViewportHeight=e.contentRect.height},e.prototype.blurActiveElement=function(){this.keyboardVisible&&document.activeElement instanceof HTMLElement&&document.activeElement.matches("input, textarea")&&document.activeElement.blur()},e.prototype.clearEmbeddedElements=function(){var e=this;Object.entries(this.elementToParentMap).forEach((function(t){var n=M(t,2),i=n[0],o=(0,n[1])().querySelector(":scope > "+i);e.removeChild(o)}))},e.prototype.getEmbeddedComponentElement=function(){return this.config.modalRoute?this.ionContentElement.nativeElement.lastElementChild:this.ionContentElement.nativeElement.firstElementChild},e.prototype.getEmbeddedFooterElement=function(){return this.elementRef.nativeElement.querySelector("kirby-modal-footer")},e.prototype.moveChild=function(e,t){var n=this;this.renderer.removeChild(e.parentElement,e),this.renderer.appendChild(t,e),"KIRBY-MODAL-FOOTER"===e.tagName&&this.resizeObserverService.observe(e,(function(e){var t=M(["--footer-height",Math.floor(e.contentRect.height)+"px"],2),i=t[0],o=t[1];n.setCssVar(n.elementRef.nativeElement,i,o)}))},e.prototype.removeChild=function(e){e&&this.renderer.removeChild(e.parentElement,e)},e.prototype.observeEmbeddedElements=function(){var e=this.getEmbeddedComponentElement();this.mutationObserver.observe(e,{childList:!0})},e.prototype.createEmbeddedElementsMutationObserver=function(){var e=this,t=Object.keys(this.elementToParentMap);return new MutationObserver((function(n){var i,o=n.filter((function(e){return"childList"===e.type})).map((function(e){return Array.from(e.addedNodes).filter((function(e){return t.includes(e.nodeName)}))}));(i=Array.prototype).concat.apply(i,B(o)).filter((function(e){return e instanceof HTMLElement})).forEach((function(t){var n=e.elementToParentMap[t.nodeName]();e.moveChild(t,n)}))}))},e.prototype.createModalWrapperIntersectionObserver=function(){var e=this,t=this.windowRef.nativeWindow.frameElement?this.windowRef.nativeWindow.document:void 0;return new IntersectionObserver((function(t){var n=t[0];n.intersectionRatio<1?e.renderer.addClass(n.target,"full-height"):e.renderer.removeClass(n.target,"full-height")}),{rootMargin:"0px 0px -1px 0px",root:t,threshold:[.99,1]})},e.prototype.ngOnDestroy=function(){this.routerOutlet.isActivated&&this.routerOutlet.deactivate(),this.mutationObserver.disconnect(),delete this._mutationObserver,this.intersectionObserver.disconnect(),delete this._intersectionObserver,this.resizeObserverService&&(this.resizeObserverService.unobserve(this.windowRef.nativeWindow.document.body),this.resizeObserverService.unobserve(this.ionHeaderElement.nativeElement),this.resizeObserverService.unobserve(this.getEmbeddedFooterElement())),this.destroy$.next(),this.destroy$.complete()},e}();ue.KEYBOARD_HIDE_DELAY_IN_MS=100,ue.decorators=[{type:t.Component,args:[{selector:"kirby-modal-wrapper",template:'<ion-header (touchstart)="onHeaderTouchStart($event)">\n <ion-toolbar>\n <ion-title>{{ config.title }}</ion-title>\n <ion-buttons slot="start" *ngIf="config.flavor === \'drawer\'">\n <ng-container *ngTemplateOutlet="closeButton; context: { icon: \'arrow-down\' }"></ng-container>\n </ion-buttons>\n <ion-buttons slot="end" *ngIf="config.flavor === \'modal\'">\n <ng-container *ngTemplateOutlet="closeButton; context: { icon: \'close\' }"></ng-container>\n </ion-buttons>\n <ion-buttons slot="end" *ngIf="config.flavor === \'drawer\' && config.drawerSupplementaryAction">\n <ng-container\n *ngTemplateOutlet="supplementaryButton; context: { btn: config.drawerSupplementaryAction }"\n ></ng-container>\n </ion-buttons>\n </ion-toolbar>\n</ion-header>\n\n<ion-content [scrollEvents]="true">\n <ng-container\n *ngComponentOutlet="config.component; injector: componentPropsInjector"\n ></ng-container>\n <router-outlet\n name="kirbyModalWrapperOutlet"\n [style.visibility]="config.modalRoute ? \'visible\' : \'hidden\'"\n ></router-outlet>\n</ion-content>\n\n<ng-template #closeButton let-icon="icon">\n <button kirby-button attentionLevel="4" size="sm" (click)="close()">\n <kirby-icon [name]="icon"></kirby-icon>\n </button>\n</ng-template>\n\n<ng-template #supplementaryButton let-btn="btn">\n <button kirby-button attentionLevel="2" size="sm" (click)="btn.action($event)">\n <kirby-icon [name]="btn.iconName"></kirby-icon>\n </button>\n</ng-template>\n',providers:[{provide:G,useExisting:ue}],styles:['@media (min-width:721px){:host-context(ion-modal:not(.kirby-modal-full-height)){padding-top:0;position:relative;contain:inherit;min-height:min(var(--min-height),calc(var(--vh100) - var(--kirby-modal-padding-top, 0px)))}:host-context(ion-modal:not(.kirby-modal-full-height)) ion-content{contain:content;max-height:calc(var(--vh100) - var(--kirby-modal-padding-top, 0px) - var(--header-height) - var(--footer-height))}:host-context(ion-modal:not(.kirby-modal-full-height)) ion-content::part(scroll){height:"100%";position:relative}:host-context(ion-modal:not(.kirby-modal-full-height)).drawer ion-content::part(scroll){transition:padding-bottom .15s ease-out}:host-context(ion-modal:not(.kirby-modal-full-height)).drawer.keyboard-visible ion-content::part(scroll){transition:padding-bottom .25s ease-out 1ms}}:host-context(ion-modal:not(.kirby-modal-full-height)).drawer{padding-top:0;position:relative;contain:inherit;min-height:min(var(--min-height),calc(var(--vh100) - var(--kirby-modal-padding-top, 0px)))}:host-context(ion-modal:not(.kirby-modal-full-height)).drawer ion-content{contain:content;max-height:calc(var(--vh100) - var(--kirby-modal-padding-top, 0px) - var(--header-height) - var(--footer-height))}:host-context(ion-modal:not(.kirby-modal-full-height)).drawer ion-content::part(scroll){height:"100%";position:relative}:host-context(ion-modal:not(.kirby-modal-full-height)).drawer.drawer ion-content::part(scroll){transition:padding-bottom .15s ease-out}:host-context(ion-modal:not(.kirby-modal-full-height)).drawer.drawer.keyboard-visible ion-content::part(scroll){transition:padding-bottom .25s ease-out 1ms}:host{--vh100:var(--vh,1vh) * 100;--header-height:0px;--footer-height:0px}:host.drawer ion-header ion-toolbar:first-of-type{padding-top:0}ion-header ion-toolbar{--padding-start:16px;--padding-end:16px;--padding-bottom:16px;--padding-top:16px;--border-width:0;--background:transparent;--color:var(--kirby-modal-color,var(--kirby-black))}ion-header ion-toolbar button{color:var(--color)}@media (min-width:721px){ion-header ion-toolbar{padding-top:8px}}:host-context(ion-modal.modal-card:not(.kirby-drawer)) ion-header ion-toolbar:first-of-type{padding-top:var(--kirby-safe-area-top,0)}@media (min-width:721px){:host-context(ion-modal.modal-card:not(.kirby-drawer)) ion-header ion-toolbar:first-of-type{padding-top:8px}}ion-title{box-sizing:border-box;padding-inline-start:calc(48px + var(--padding-start));padding-inline-end:calc(48px + var(--padding-end));font-size:22px;font-weight:700}:host(.drawer) ion-title{font-size:18px}ion-content{--background:transparent;--color:var(--kirby-modal-color,var(--kirby-black));display:flex;flex-direction:column;--padding-top:24px;--padding-bottom:24px;--padding-start:16px;--padding-end:16px}ion-content ::ng-deep>*{box-sizing:border-box;display:block}@media (min-width:721px){ion-content{--padding-start:56px;--padding-end:56px}}']}]}],ue.ctorParameters=function(){return[{type:t.Injector},{type:t.ElementRef},{type:t.Renderer2},{type:t.NgZone},{type:pe},{type:t.ComponentFactoryResolver},{type:j},{type:te}]},ue.propDecorators={config:[{type:t.Input}],toolbarButtonsQuery:[{type:t.ViewChildren,args:[ce,{read:t.ElementRef}]}],ionContent:[{type:t.ViewChild,args:[n.IonContent,{static:!0}]}],ionContentElement:[{type:t.ViewChild,args:[n.IonContent,{static:!0,read:t.ElementRef}]}],ionHeaderElement:[{type:t.ViewChild,args:[n.IonHeader,{static:!0,read:t.ElementRef}]}],ionToolbarElement:[{type:t.ViewChild,args:[n.IonToolbar,{static:!0,read:t.ElementRef}]}],ionTitleElement:[{type:t.ViewChild,args:[n.IonTitle,{static:!0,read:t.ElementRef}]}],routerOutlet:[{type:t.ViewChild,args:[i.RouterOutlet,{static:!0}]}],_isDrawer:[{type:t.HostBinding,args:["class.drawer"]}],onFocusChange:[{type:t.HostListener,args:["window:focus"]},{type:t.HostListener,args:["window:focusout"]}],_onKeyboardShow:[{type:t.HostListener,args:["window:ionKeyboardDidShow",["$event.detail.keyboardHeight"]]},{type:t.HostListener,args:["window:keyboardWillShow",["$event.keyboardHeight"]]}],_onKeyboardHide:[{type:t.HostListener,args:["window:ionKeyboardDidHide"]},{type:t.HostListener,args:["window:keyboardWillHide"]}],_onWindowResize:[{type:t.HostListener,args:["window:resize"]}]};var ge=function(){function t(t,n){this.animationCtrl=t,this.platform=n,this.easingEnter=e.KirbyAnimation.Easing.modal.enter,this.easingLeave=e.KirbyAnimation.Easing.modal.exit,this.duration=e.KirbyAnimation.Duration.LONG,this.SwipeToCloseDefaults={MIN_PRESENTING_SCALE:.93}}return t.prototype.enterAnimation=function(e){var t=this;return function(n,i){var o,r=t.animationCtrl.create().addElement(n.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),a=t.animationCtrl.create().addElement(n.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1}).fromTo("transform","translateY(100vh)","translateY(0vh)"),s=t.animationCtrl.create().addElement(n).easing(t.easingEnter).duration(t.duration).addAnimation(a);if(e&&(o=t.animationCtrl.create().addElement(e).fromTo("opacity","var(--backdrop-opacity)",.01)),i){var l=!t.platform.isPhabletOrBigger(),c="ION-MODAL"===i.tagName&&void 0!==i.presentingElement,d=t.animationCtrl.create().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"}),p=document.body;if(l){var h=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",u="translateY("+(c?"-10px":h)+") scale("+t.SwipeToCloseDefaults.MIN_PRESENTING_SCALE+")";d.afterStyles({transform:u}).beforeAddWrite((function(){return p.style.setProperty("background-color","black")})).addElement(i).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"},{offset:1,filter:"contrast(0.85)",transform:u,borderRadius:"10px 10px 0 0"}]),s.addAnimation(d)}else if(s.addAnimation(r),o&&s.addAnimation(o),c){u="translateY(-10px) scale("+(c?t.SwipeToCloseDefaults.MIN_PRESENTING_SCALE:1)+")";d.afterStyles({transform:u}).addElement(i.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:u}]);var g=t.animationCtrl.create().afterStyles({transform:u}).addElement(i.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:u}]);s.addAnimation([d,g])}else a.fromTo("opacity","0","1")}else s.addAnimation(r),o&&s.addAnimation(o);return s}},t.prototype.leaveAnimation=function(e){var t=this;return function(n,i){var o,r=t.animationCtrl.create().addElement(n.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),a=t.animationCtrl.create().addElement(n.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1}).fromTo("transform","translateY(0vh)","translateY(100vh)"),s=t.animationCtrl.create().addElement(n).easing(t.easingLeave).duration(t.duration).addAnimation(a);if(e&&(o=t.animationCtrl.create().addElement(e).fromTo("opacity",.01,"var(--backdrop-opacity)").afterStyles({opacity:"var(--backdrop-opacity)"})),i){var l=!t.platform.isPhabletOrBigger(),c="ION-MODAL"===i.tagName&&void 0!==i.presentingElement,d=t.animationCtrl.create().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish((function(e){1===e&&(i.style.setProperty("overflow",""),Array.from(p.querySelectorAll("ion-modal")).filter((function(e){return void 0!==e.presentingElement})).length<=1&&p.style.setProperty("background-color",""))})),p=document.body;if(l){var h=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",u="translateY("+(c?"-10px":h)+") scale("+t.SwipeToCloseDefaults.MIN_PRESENTING_SCALE+")";d.addElement(i).keyframes([{offset:0,filter:"contrast(0.85)",transform:u,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]),s.addAnimation(d)}else if(s.addAnimation(r),o&&s.addAnimation(o),c){u="translateY(-10px) scale("+(c?t.SwipeToCloseDefaults.MIN_PRESENTING_SCALE:1)+")";d.addElement(i.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:u},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);var g=t.animationCtrl.create().addElement(i.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:u},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);s.addAnimation([d,g])}else a.fromTo("opacity","1","0")}else s.addAnimation(r),o&&s.addAnimation(o);return s}},t}();ge.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new ge(t.ɵɵinject(n.AnimationController),t.ɵɵinject(te))},token:ge,providedIn:"root"}),ge.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],ge.ctorParameters=function(){return[{type:n.AnimationController},{type:te}]};var me=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},be=function(){function e(e,t,n){this.ionicModalController=e,this.modalAnimationBuilder=t,this.windowRef=n}return e.prototype.showModalWindow=function(e){return me(this,void 0,void 0,(function(){var t,n,i,o,r,a,s,l,c,d,p=this;return P(this,(function(h){switch(h.label){case 0:return e.flavor=e.flavor||"modal",[4,this.getPresentingElement(e.flavor)];case 1:return t=h.sent(),[4,this.ionicModalController.getTop()];case 2:return(i=h.sent())&&(n=i.querySelector("ion-backdrop")),o=this.modalAnimationBuilder.enterAnimation(n),r=this.modalAnimationBuilder.leaveAnimation(n),a="modal"===e.flavor?"medium":null,s=e.size||a,l="allow-background-scroll",c=[],e.cssClass&&(c=Array.isArray(e.cssClass)?e.cssClass:[e.cssClass]),e.interactWithBackground&&this.windowRef.nativeWindow.document.body.classList.add(l),[4,this.ionicModalController.create({component:"compact"===e.flavor?K:ue,cssClass:B(["kirby-overlay","kirby-modal","drawer"===e.flavor?"kirby-drawer":null,"compact"===e.flavor?"kirby-modal-compact":null,"kirby-modal-"+s,e.interactWithBackground?"interact-with-background":null],c),backdropDismiss:"compact"!==e.flavor&&!e.interactWithBackground,showBackdrop:!e.interactWithBackground,componentProps:{config:e},swipeToClose:"compact"!=e.flavor,presentingElement:t,keyboardClose:!1,enterAnimation:o,leaveAnimation:r})];case 3:return d=h.sent(),e.interactWithBackground&&d.onDidDismiss().then((function(){p.windowRef.nativeWindow.document.body.classList.remove(l)})),[4,d.present()];case 4:return h.sent(),[2,{dismiss:d.dismiss.bind(d),onWillDismiss:d.onWillDismiss(),onDidDismiss:d.onDidDismiss()}]}}))}))},e.prototype.registerPresentingElement=function(t){e.presentingElement=t},e.prototype.getPresentingElement=function(t){return me(this,void 0,void 0,(function(){var n,i;return P(this,(function(o){switch(o.label){case 0:return n=void 0,t&&"modal"!==t?[3,2]:[4,this.ionicModalController.getTop()];case 1:(i=o.sent())?i.classList.contains("kirby-drawer")||i.classList.contains("kirby-modal-compact")||(n=i):n=e.presentingElement,o.label=2;case 2:return[2,n]}}))}))},e.prototype.scrollToTop=function(e,t){return me(this,void 0,void 0,(function(){var n;return P(this,(function(i){switch(i.label){case 0:return[4,this.ionicModalController.getTop()];case 1:if(!((n=i.sent())&&n.component instanceof ue))throw new Error(e);return n.component.scrollToTop(t),[2]}}))}))},e.prototype.scrollToBottom=function(e,t){return me(this,void 0,void 0,(function(){var n;return P(this,(function(i){switch(i.label){case 0:return[4,this.ionicModalController.getTop()];case 1:if(!((n=i.sent())&&n.component instanceof ue))throw new Error(e);return n.component.scrollToBottom(t),[2]}}))}))},e}();be.presentingElement=void 0,be.decorators=[{type:t.Injectable}],be.ctorParameters=function(){return[{type:n.ModalController},{type:ge},{type:j}]};var ye=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},fe=function(){function e(e,t,n,i,r){this.modalHelper=e,this.actionSheetHelper=t,this.alertHelper=n,this.modalNavigationService=i,this.routeConfig=r,this.overlays=[],this.noOverlayRegisteredErrorMessage="No modal overlays are currently registered",this.destroy$=new o.Subject}return e.prototype.initialize=function(e){return ye(this,void 0,void 0,(function(){var t;return P(this,(function(n){switch(n.label){case 0:return[4,this.modalNavigationService.getModalNavigation(this.routeConfig,e)];case 1:return t=n.sent(),this.onModalRouteActivated(t.activated$),this.onModalRouteDeactivated(t.deactivated$),[2]}}))}))},e.prototype.onModalRouteActivated=function(e){var t=this,n=function(){t.modalNavigationService.navigateOutOfModalOutlet()},i=e.pipe(r.filter((function(e){return!e.isNewModal})),r.map((function(e){return e.route})));e.pipe(r.takeUntil(this.destroy$),r.filter((function(){return 0===t.overlays.length}))).subscribe((function(e){return ye(t,void 0,void 0,(function(){return P(this,(function(t){switch(t.label){case 0:return e.isNewModal?[4,this.showModalRoute(e.route,i,n)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))}))},e.prototype.onModalRouteDeactivated=function(e){var t=this;e.pipe(r.takeUntil(this.destroy$),r.filter((function(){return t.overlays.length>0}))).subscribe((function(){return ye(t,void 0,void 0,(function(){return P(this,(function(e){switch(e.label){case 0:return[4,this.hideAll()];case 1:return e.sent(),[2]}}))}))}))},e.prototype.showModal=function(e,t){return ye(this,void 0,void 0,(function(){var n=this;return P(this,(function(i){switch(i.label){case 0:return e.hasOwnProperty("dim")&&console.warn("ModalConfig.dim is deprecated - please remove from your configuration."),[4,this.showAndRegisterOverlay((function(){return n.modalHelper.showModalWindow(e)}),t)];case 1:return i.sent(),[2]}}))}))},e.prototype.navigateToModal=function(e,t){return ye(this,void 0,void 0,(function(){return P(this,(function(n){return[2,this.modalNavigationService.navigateToModal(e,t)]}))}))},e.prototype.navigateWithinModal=function(e,t){return ye(this,void 0,void 0,(function(){return P(this,(function(n){return[2,this.modalNavigationService.navigateWithinModal(e,t)]}))}))},e.prototype.showModalRoute=function(e,t,n){return ye(this,void 0,void 0,(function(){var i,o=this;return P(this,(function(r){switch(r.label){case 0:return i={component:null,modalRoute:e,siblingModalRouteActivated$:t,flavor:"modal"},[4,this.showAndRegisterOverlay((function(){return o.modalHelper.showModalWindow(i)}),null,n)];case 1:return r.sent(),[2]}}))}))},e.prototype.showActionSheet=function(e,t){return ye(this,void 0,void 0,(function(){var n=this;return P(this,(function(i){switch(i.label){case 0:return[4,this.showAndRegisterOverlay((function(){return n.actionSheetHelper.showActionSheet(e)}),t)];case 1:return i.sent(),[2]}}))}))},e.prototype.showAlert=function(e,t){return ye(this,void 0,void 0,(function(){var n=this;return P(this,(function(i){switch(i.label){case 0:return[4,this.showAndRegisterOverlay((function(){return n.alertHelper.showAlert(e)}),t)];case 1:return i.sent(),[2]}}))}))},e.prototype.showAndRegisterOverlay=function(e,t,n){return ye(this,void 0,void 0,(function(){var i,o=this;return P(this,(function(r){switch(r.label){case 0:return[4,e()];case 1:return(i=r.sent())?(this.overlays.push(i),"function"==typeof n&&i.onWillDismiss.then((function(e){return n(e.data)})),i.onDidDismiss.then((function(e){o.overlays.pop(),"function"==typeof t&&t(e.data)})),[2]):[2]}}))}))},e.prototype.registerPresentingElement=function(e){this.modalHelper.registerPresentingElement(e)},e.prototype.hideTopmost=function(e){return ye(this,void 0,void 0,(function(){var t;return P(this,(function(n){if(!(t=this.overlays[this.overlays.length-1]))throw new Error(this.noOverlayRegisteredErrorMessage);return[2,t.dismiss(e)]}))}))},e.prototype.scrollToTop=function(e){if(console.warn("ModalController.scrollToTop is deprecated - please inject Modal in embedded component and use Modal.scrollToTop instead."),!this.overlays[this.overlays.length-1])throw new Error(this.noOverlayRegisteredErrorMessage);this.modalHelper.scrollToTop(this.noOverlayRegisteredErrorMessage,e)},e.prototype.scrollToBottom=function(e){if(console.warn("ModalController.scrollToBottom is deprecated - please inject Modal in embedded component and use Modal.scrollToBottom instead."),!this.overlays[this.overlays.length-1])throw new Error(this.noOverlayRegisteredErrorMessage);this.modalHelper.scrollToBottom(this.noOverlayRegisteredErrorMessage,e)},e.prototype.hideAll=function(){return ye(this,void 0,void 0,(function(){var e=this;return P(this,(function(t){switch(t.label){case 0:return[4,Promise.all(this.overlays.map((function(t){return ye(e,void 0,void 0,(function(){return P(this,(function(e){switch(e.label){case 0:return[4,t.dismiss()];case 1:return e.sent(),[2]}}))}))})))];case 1:return t.sent(),[2]}}))}))},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e}();fe.decorators=[{type:t.Injectable}],fe.ctorParameters=function(){return[{type:be},{type:H},{type:W},{type:$},{type:Array,decorators:[{type:t.Optional},{type:t.Inject,args:[i.ROUTES]}]}]};var ve=function(){function e(e){this.modalController=e}return e.prototype.ngAfterContentInit=function(){var e=this;this.routerOutlet&&this.routerOutlet.nativeElement&&this.modalController.registerPresentingElement(this.routerOutlet.nativeElement),this.ionAppElement.nativeElement.componentOnReady().then((function(){return e.registerInputs()}))},e.prototype.registerInputs=function(){setTimeout((function(){document.querySelectorAll("kirby-form-field").forEach((function(e){e.dispatchEvent(new CustomEvent("kirbyRegisterFormField"))}))}),250)},e}();ve.decorators=[{type:t.Component,args:[{selector:"kirby-app",template:"<ion-app>\n <ng-content></ng-content>\n</ion-app>\n",styles:[":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:size layout style;z-index:0;overflow:hidden}"]}]}],ve.ctorParameters=function(){return[{type:fe}]},ve.propDecorators={ionAppElement:[{type:t.ViewChild,args:[n.IonApp,{static:!0,read:t.ElementRef}]}],routerOutlet:[{type:t.ContentChild,args:[_,{static:!1,read:t.ElementRef}]}]};var ke,xe=function(){};xe.decorators=[{type:t.NgModule,args:[{declarations:[ve],imports:[a.CommonModule,n.IonicModule],exports:[ve]}]}],(ke=e.AvatarSize||(e.AvatarSize={})).XS="xs",ke.SM="sm",ke.MD="md",ke.LG="lg";var we=function(){function t(){this.size=e.AvatarSize.SM}return Object.defineProperty(t.prototype,"_cssClass",{get:function(){return[this.themeColor,this.size].filter((function(e){return!!e}))},enumerable:!1,configurable:!0}),t}();we.decorators=[{type:t.Component,args:[{selector:"kirby-avatar",template:'<div class="avatar" [ngClass]="{ shadow: shadow, overlay: overlay }">\n <img *ngIf="imageSrc" [src]="imageSrc" [attr.alt]="altText" />\n <ng-content *ngIf="!text" select="kirby-icon"></ng-content>\n <span class="avatar-text" *ngIf="text">{{ text }}</span>\n</div>\n<ng-content select="kirby-badge"></ng-content>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[':host{--kirby-badge-elevation:0 5px 10px -10px rgba(28,28,28,0.3),0 0 5px 0 rgba(28,28,28,0.08);--kirby-badge-position:absolute;--kirby-badge-right:-2px;--kirby-badge-top:-2px;--kirby-badge-zindex:2}.avatar,:host{position:relative}.avatar{width:40px;height:40px;border-radius:50%;overflow:hidden;z-index:1;display:flex;justify-content:center;align-items:center;background-color:var(--kirby-white);color:var(--kirby-light-contrast);--kirby-icon-font-size:24px}.avatar.shadow{box-shadow:0 2px 4px 2px hsla(0,0%,44.3%,.4)}.avatar.overlay:before{content:"";background-color:var(--kirby-black);opacity:.05;width:100%;height:100%;position:absolute;top:0;left:0}.avatar img{object-fit:cover;max-width:100%;height:100%;width:100%}:host(.xs) .avatar{width:32px;height:32px;border-radius:8px}:host(.xs) .avatar .avatar-text{font-size:14px}:host(.sm) .avatar,:host-context(kirby-progress-circle.sm) .avatar{width:40px;height:40px}:host(.sm) .avatar .avatar-text,:host-context(kirby-progress-circle.sm) .avatar .avatar-text{font-size:14px}:host(.md),:host-context(kirby-progress-circle.md){--kirby-badge-right:0px;--kirby-badge-top:0px}:host(.md) .avatar,:host-context(kirby-progress-circle.md) .avatar{width:56px;height:56px;--kirby-icon-font-size:32px}:host(.md) .avatar .avatar-text,:host-context(kirby-progress-circle.md) .avatar .avatar-text{font-size:18px}:host(.lg),:host-context(kirby-progress-circle.lg){--kirby-badge-right:6px;--kirby-badge-top:6px}:host(.lg) .avatar,:host-context(kirby-progress-circle.lg) .avatar{width:96px;height:96px;--kirby-icon-font-size:56px}:host(.lg) .avatar .avatar-text,:host-context(kirby-progress-circle.lg) .avatar .avatar-text{font-size:32px}:host-context(kirby-item)[slot=start]{margin-inline-end:12px}:host-context(kirby-item)[slot=start].xs{margin-inline-end:16px}:host(.primary) .avatar{background-color:var(--kirby-primary);color:var(--kirby-primary-contrast)}:host(.secondary) .avatar{background-color:var(--kirby-secondary);color:var(--kirby-secondary-contrast)}:host(.tertiary) .avatar{background-color:var(--kirby-tertiary);color:var(--kirby-tertiary-contrast)}:host(.success) .avatar{background-color:var(--kirby-success);color:var(--kirby-success-contrast)}:host(.warning) .avatar{background-color:var(--kirby-warning);color:var(--kirby-warning-contrast)}:host(.danger) .avatar{background-color:var(--kirby-danger);color:var(--kirby-danger-contrast)}:host(.light) .avatar{background-color:var(--kirby-light);color:var(--kirby-light-contrast)}:host(.medium) .avatar{background-color:var(--kirby-medium);color:var(--kirby-medium-contrast)}:host(.dark) .avatar{background-color:var(--kirby-dark);color:var(--kirby-dark-contrast)}:host(.white) .avatar{background-color:var(--kirby-white);color:var(--kirby-white-contrast)}:host(.semi-light) .avatar{background-color:var(--kirby-semi-light);color:var(--kirby-semi-light-contrast)}']}]}],we.propDecorators={imageSrc:[{type:t.Input}],altText:[{type:t.Input}],shadow:[{type:t.Input}],text:[{type:t.Input}],overlay:[{type:t.Input}],size:[{type:t.Input}],themeColor:[{type:t.Input}],_cssClass:[{type:t.HostBinding,args:["class"]}]};var Ce=function(){};Ce.decorators=[{type:t.Component,args:[{selector:"kirby-badge",template:'<ion-badge color="none">\n <ng-content *ngIf="!text"></ng-content>\n <ng-container *ngIf="text">{{ text }}</ng-container>\n</ion-badge>\n',styles:[":root{--kirby-badge-elevation:none;--kirby-badge-position:relative;--kirby-badge-left:0;--kirby-badge-right:0;--kirby-badge-top:0;--kirby-badge-zindex:none}:host{--kirby-badge-background-color:var(--kirby-white);--kirby-badge-color:var(--kirby-white-contrast);--ion-color-base:var(--kirby-badge-background-color);--ion-color-contrast:var(--kirby-badge-color);position:var(--kirby-badge-position);left:var(--kirby-badge-left);right:var(--kirby-badge-right);top:var(--kirby-badge-top);z-index:var(--kirby-badge-zindex);font-size:10px;line-height:1}:host ion-badge{--padding-top:3px;--padding-end:5px;--padding-bottom:3px;--padding-start:5px;box-sizing:border-box;border-radius:8px;min-width:16px;min-height:16px;font-size:inherit;position:relative;box-shadow:var(--kirby-badge-elevation)}:host ::ng-deep kirby-icon{--kirby-icon-font-size:16px;position:absolute;top:0;left:0}:host(.success){--kirby-badge-background-color:var(--kirby-success);--kirby-badge-color:var(--kirby-success-contrast)}:host(.warning){--kirby-badge-background-color:var(--kirby-warning);--kirby-badge-color:var(--kirby-warning-contrast)}:host(.danger){--kirby-badge-background-color:var(--kirby-danger);--kirby-badge-color:var(--kirby-danger-contrast);--kirby-badge-color:var(--kirby-white)}:host(.white){--kirby-badge-background-color:var(--kirby-white);--kirby-badge-color:var(--kirby-white-contrast)}"]}]}],Ce.propDecorators={text:[{type:t.Input}]};var Ie=function(){function e(e,t,n){this.elementRef=e,this.resizeObserverService=t,this.renderer=n,this.sizesSortedByBreakpoint=this.sortSizesByBreakpoint({small:360,medium:720,large:1024}),this.flat=!1,this.highlighted=!1}return Object.defineProperty(e.prototype,"sizes",{set:function(e){"string"==typeof e&&console.error('Sizes property cannot be a string. Please ensure the size property is bound as an expression:\n[sizes]="{...}"'),this.sizesSortedByBreakpoint=this.sortSizesByBreakpoint(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mode",{set:function(e){this.flat="flat"===e,this.highlighted="highlighted"===e},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.resizeObserverService.observe(this.elementRef,(function(t){return e.handleResize(t)}))},e.prototype.ngOnDestroy=function(){this.resizeObserverService.unobserve(this.elementRef)},e.prototype.sortSizesByBreakpoint=function(e){return Object.entries(e).sort(this.compareSizesByBreakpoint)},e.prototype.compareSizesByBreakpoint=function(e,t){return e[1]>t[1]?1:t[1]>e[1]?-1:0},e.prototype.handleResize=function(e){var t=this,n="size",i=this.sizesSortedByBreakpoint[0][0],o=this.sizesSortedByBreakpoint[0][1];e.contentRect.width<o?this.renderer.setAttribute(e.target,n,"<"+i):this.sizesSortedByBreakpoint.forEach((function(i){var o=M(i,2),r=o[0],a=o[1];e.contentRect.width>=a&&t.renderer.setAttribute(e.target,n,r)}))},e}();Ie.decorators=[{type:t.Component,args:[{selector:"kirby-card",template:'<ng-content select="kirby-card-header"></ng-content>\n<div class="content-wrapper" [class.padding]="hasPadding">\n <ng-content></ng-content>\n</div>\n<ng-content select="kirby-card-footer"></ng-content>\n',styles:[":host{--kirby-card-main-background-color:var(--kirby-white);--kirby-card-main-color:var(--kirby-white-contrast);--kirby-card-footer-background-color:var(--kirby-white);--kirby-card-footer-color:var(--kirby-white-contrast);border-radius:16px;box-shadow:0 5px 10px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);color:var(--kirby-card-main-color);background-color:var(--kirby-card-main-background-color);display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;position:relative;z-index:1;width:var(--kirby-card-width,auto)}:host .content-wrapper.padding{padding:16px}:host.highlighted{box-shadow:0 10px 15px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08)}:host.flat{box-shadow:none}:host-context(.swiper-slide-active){box-shadow:0 10px 15px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);transition:all .5s;transform:translateY(-3px)}:host(.primary){--kirby-card-main-background-color:var(--kirby-primary);--kirby-card-main-color:var(--kirby-primary-contrast)}:host(.secondary){--kirby-card-main-background-color:var(--kirby-secondary);--kirby-card-main-color:var(--kirby-secondary-contrast)}:host(.tertiary){--kirby-card-main-background-color:var(--kirby-tertiary);--kirby-card-main-color:var(--kirby-tertiary-contrast)}:host(.success){--kirby-card-main-background-color:var(--kirby-success);--kirby-card-main-color:var(--kirby-success-contrast)}:host(.warning){--kirby-card-main-background-color:var(--kirby-warning);--kirby-card-main-color:var(--kirby-warning-contrast)}:host(.danger){--kirby-card-main-background-color:var(--kirby-danger);--kirby-card-main-color:var(--kirby-danger-contrast)}:host(.light){--kirby-card-main-background-color:var(--kirby-light);--kirby-card-main-color:var(--kirby-light-contrast)}:host(.medium){--kirby-card-main-background-color:var(--kirby-medium);--kirby-card-main-color:var(--kirby-medium-contrast)}:host(.dark){--kirby-card-main-background-color:var(--kirby-dark);--kirby-card-main-color:var(--kirby-dark-contrast)}"]}]}],Ie.ctorParameters=function(){return[{type:t.ElementRef},{type:pe},{type:t.Renderer2}]},Ie.propDecorators={title:[{type:t.Input}],subtitle:[{type:t.Input}],hasPadding:[{type:t.Input}],sizes:[{type:t.Input}],flat:[{type:t.HostBinding,args:["class.flat"]}],highlighted:[{type:t.HostBinding,args:["class.highlighted"]}],mode:[{type:t.Input}]};var Se=function(){function e(){}return e.prototype.ngOnInit=function(){},e}();Se.decorators=[{type:t.Component,args:[{selector:"kirby-card-footer",template:"<footer>\n <ng-content></ng-content>\n</footer>\n",styles:[":host{display:block;padding:16px;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0)}footer{display:inherit;flex:inherit}"]}]}],Se.ctorParameters=function(){return[]};var Ee=function(){this.flagged=null};function Te(e,t,n){void 0===n&&(n={mergeArrays:!1});var i=function(e){return e&&"object"==typeof e};return[e,t].reduce((function(e,t){return Object.keys(t).forEach((function(o){var r=e[o],a=t[o];Array.isArray(r)&&Array.isArray(a)?e[o]=n.mergeArrays?r.concat(a):a:i(r)&&i(a)?e[o]=Te(r,a):e[o]=a})),e}),{})}function Oe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter((function(e){return void 0!==e}));return n.reduce((function(e,t){return Te(e,t)}))}Ee.decorators=[{type:t.Component,args:[{selector:"kirby-card-header",template:'<header>\n <h2 *ngIf="title" [class.bold]="isTitleBold">{{ title }}</h2>\n <h4 *ngIf="subtitle">{{ subtitle }}</h4>\n <ng-content></ng-content>\n</header>\n',styles:[":host{display:block;border-top-left-radius:16px;border-top-right-radius:16px;text-align:center;padding:var(--kirby_internal_card-header-padding,16px);color:var(--kirby-card-header-color);background-color:var(--kirby-card-header-background-color)}h2{font-size:16px;font-weight:400;margin:0 0 var(--kirby_internal_card-header-margin-bottom,8px);line-height:var(--kirby_internal_card-header-line-height,28px)}h2.bold{font-weight:700}h4{font-size:14px;margin:0;font-weight:400}:host(.danger){--kirby-card-header-background-color:var(--kirby-danger);--kirby-card-header-color:var(--kirby-danger-contrast)}:host(.warning){--kirby-card-header-background-color:var(--kirby-warning);--kirby-card-header-color:var(--kirby-warning-contrast)}:host(.success){--kirby-card-header-background-color:var(--kirby-success);--kirby-card-header-color:var(--kirby-success-contrast)}:host(.info){--kirby-card-header-background-color:var(--kirby-semi-light);--kirby-card-header-color:var(--kirby-semi-light-contrast)}:host(.danger,.warning,.success,.info){--kirby_internal_card-header-padding:2px 8px}:host(.danger,.warning,.success,.info) h2{--kirby_internal_card-header-line-height:24px;--kirby_internal_card-header-margin-bottom:0}"]}]}],Ee.propDecorators={title:[{type:t.Input}],subtitle:[{type:t.Input}],isTitleBold:[{type:t.Input}],flagged:[{type:t.HostBinding,args:["class"]},{type:t.Input}]},require("highcharts/highcharts-more")(S),require("highcharts/modules/solid-gauge")(S),require("highcharts/modules/broken-axis")(S);var De,Re=function(){function e(){}return e.prototype.init=function(e){this.chartContainer=e},e.prototype.renderChart=function(e){this.chartContainer&&e.chart&&s.chart(this.chartContainer.nativeElement,e)},e}();Re.decorators=[{type:t.Injectable}],(De=e.ChartDeprecatedType||(e.ChartDeprecatedType={})).PIE="pie",De.DONUT="donut",De.AREASPLINE="areaspline",De.TIMESERIES="timeseries",De.ACTIVITYGAUGE="activitygauge",De.BAR="bar",De.COLUMN="column",De.CUSTOM="custom";var _e=new t.InjectionToken("ActivityGaugeOptions"),Pe={chart:{style:{fontFamily:"Roboto, sans-serif",fontWeight:"300"},backgroundColor:"transparent",type:"solidgauge",height:"110%"},accessibility:{description:""},title:{align:"center",verticalAlign:"middle",text:"",y:0,floating:!1,style:{fontSize:"30px",color:"#fff",fontWeight:"bold"}},subtitle:{text:"",align:"center",y:25,verticalAlign:"middle",style:{color:"#fff",fontSize:"14px",fontWeight:"normal"}},credits:{enabled:!1},tooltip:{enabled:!1,animation:!1},pane:{startAngle:0,endAngle:360,background:[{backgroundColor:{linearGradient:{x1:0,x2:0,y1:0,y2:1},stops:[[1,"rgba(255, 255, 255, 0.3)"],[0,"rgba(255, 255, 255, 0.3)"]]},outerRadius:"112%",innerRadius:"88%",borderWidth:0}]},yAxis:{min:0,max:100,lineWidth:0,tickPositions:[]},plotOptions:{solidgauge:{dataLabels:{enabled:!1},linecap:"round",stickyTracking:!1,rounded:!0}},series:[{type:"solidgauge"}]},Ae=new t.InjectionToken("AreasplineOptions"),Me={chart:{type:"areaspline",borderWidth:0,plotBorderWidth:0,margin:0,marginTop:48},accessibility:{description:""},title:{text:""},credits:{enabled:!1},exporting:{enabled:!1},tooltip:{enabled:!0,animation:!1,shape:"square",borderColor:"#FFFFFF",shadow:!1,backgroundColor:"#FFFFFF",style:{fontSize:"1.25rem"},formatter:function(){return String(this.y)},positioner:function(){return{x:this.chart.plotSizeX/2-this.label.width/2,y:0}}},xAxis:{visible:!1,minPadding:0,maxPadding:0,crosshair:{zIndex:3,width:1,color:"#177E17"}},yAxis:{visible:!1,endOnTick:!1,startOnTick:!1},plotOptions:{areaspline:{shadow:!0,showInLegend:!1,fillColor:{linearGradient:{x1:0,x2:0,y1:0,y2:.8},stops:[[0,"#C9E5C9"],[1,"#FFFFFF"]]},lineColor:"#177E17",lineWidth:2},series:{states:{hover:{halo:{size:0}}},marker:{enabled:!1,states:{hover:{enabled:!0,fillColor:"#177E17"}}}}},series:[{type:"areaspline"}]},Be=ee.getColor;function ze(){for(var e=this.series,t=0,n=e.length;t<n;++t)for(var i=e[t].data,o=0,r=i.length;o<r;++o)i[o].graphic&&(i[o].graphic.element.style.stroke=Be("background-color").value)}var Le={chart:{type:"bar",animation:{duration:150},backgroundColor:"transparent",events:{load:ze,redraw:ze}},accessibility:{description:"Bar chart"},credits:{enabled:!1},title:{text:""},xAxis:{labels:{style:{fontSize:(0,ee.fontSize)("s"),fontFamily:"Roboto",color:Be("black").value}},min:0,lineColor:"transparent"},yAxis:{title:{text:""},labels:{enabled:!1},min:0,lineWidth:0,minorGridLineWidth:0,gridLineColor:"transparent",minorTickLength:0,tickLength:0,maxPadding:0,endOnTick:!1,showLastLabel:!1,showFirstLabel:!1},plotOptions:{bar:{events:{}},series:{color:Be("secondary").value,stacking:"normal",states:{hover:{enabled:!1},inactive:{opacity:1}}}},tooltip:{enabled:!1},legend:{enabled:!1}},He=ee.getColor;function je(){for(var e=this.series,t=0,n=e.length;t<n;++t)for(var i=e[t].data,o=0,r=i.length;o<r;++o)i[o].graphic&&(i[o].graphic.element.style.stroke=He("secondary").value)}var Fe={chart:{animation:{duration:500},backgroundColor:"transparent",type:"column",events:{load:je,redraw:je}},title:{text:""},accessibility:{description:"Column chart"},xAxis:{labels:{style:{fontSize:(0,ee.fontSize)("xxs"),fontFamily:"Roboto",color:He("black").value}},lineWidth:0,minorGridLineWidth:0,lineColor:"transparent",minorTickLength:0,tickLength:0},yAxis:{title:{text:""},labels:{enabled:!1},min:0,lineWidth:0,minorGridLineWidth:0,gridLineColor:"transparent",minorTickLength:0,tickLength:0,showLastLabel:!1,showFirstLabel:!1},credits:{enabled:!1},plotOptions:{column:{stacking:"normal"},series:{color:He("secondary").value,zIndex:10,states:{hover:{enabled:!1},inactive:{opacity:1}}},line:{className:"avg-line",marker:{enabled:!1},allowPointSelect:!1}},tooltip:{enabled:!1},legend:{enabled:!1}},Ne=new t.InjectionToken("DonutOptions"),We={chart:{style:{fontFamily:"Roboto",fontWeight:"300"},backgroundColor:"transparent",type:""},accessibility:{description:"Donut chart"},title:{text:""},tooltip:{enabled:!1,animation:!1},legend:{layout:"vertical",symbolRadius:0,itemStyle:{fontSize:".875rem"}},plotOptions:{pie:{colors:["#015132","#B2D1BF","#AABC08","#1FA05A","yellowgreen"],allowPointSelect:!1,cursor:"pointer",showInLegend:!0,borderColor:null,dataLabels:{format:"{point.label}",enabled:!0,connectorWidth:0,distance:5,style:{fontSize:"1rem",fontWeight:"200"}},point:{events:{legendItemClick:function(){return!1}}},states:{hover:{enabled:!1}}},series:{animation:!0,dataLabels:{},states:{hover:{enabled:!1},inactive:{opacity:1}}}},series:[{name:"",type:"pie"}],credits:{enabled:!1},exporting:{enabled:!1},responsive:{rules:[{condition:{minWidth:640},chartOptions:{legend:{layout:"vertical",align:"right",verticalAlign:"middle",itemMarginTop:12,symbolRadius:0,symbolWidth:14,symbolHeight:14,x:-100}}},{condition:{minWidth:0},chartOptions:{legend:{symbolRadius:0}}}]}},Ve=new t.InjectionToken("TimeSeriesOptions"),$e={chart:{backgroundColor:{linearGradient:{x1:0,x2:0,y1:0,y2:3},stops:[[0,"#F6F6F6"],[1,"#808080"]]},zoomType:"x",type:"timeseries",borderWidth:0,plotBorderWidth:0,margin:0,marginTop:48},accessibility:{description:""},title:{text:""},subtitle:{text:""},tooltip:{shadow:!1,formatter:function(){return s.dateFormat("%e. %b",new Date(this.x))+".<br/><b>"+this.y+"</b>"},positioner:function(e,t,n){return{x:n.x,y:0}},borderWidth:0},xAxis:{visible:!1,lineColor:"#FFFFFF",tickColor:"#FFFFFF",labels:{style:{color:"white"}},opposite:!0,crosshair:{zIndex:3,width:1,color:"#00E89A"},type:"datetime",tickInterval:1},yAxis:{visible:!1},legend:{enabled:!1},plotOptions:{area:{fillColor:"#01352C",marker:{lineWidth:14,lineColor:"rgba(255,255,255,0.2)",radius:6,fillColor:"#00E89A"},lineColor:"#01352C",lineWidth:1,states:{hover:{lineWidth:1}},threshold:null},series:{marker:{enabledThreshold:50}}},series:[{type:"area",name:"USD to EUR"}]},Ge=We,Ue=Me,Ye=$e,Ke=Pe,qe=function(){function t(t,n,i,o,r,a){this.chartHelper=t,this.hostElement=n,this.donutOptions=i,this.areasplineOptions=o,this.timeSeriesOptions=r,this.activitygaugeOptions=a,this.data=[],this.categories=[],this.breaks=[],this.height=300,this.type=e.ChartDeprecatedType.PIE,this.description="",this.showDataLabels=!0,this.mergedOptions={accessibility:{}},this.chartHelper.init(this.hostElement)}return t.prototype.ngOnChanges=function(e){e.type&&this.setupChartType(),this.updateProperties(),this.chartHelper.renderChart(this.mergedOptions)},t.prototype.setupChartType=function(){switch(this.type){case e.ChartDeprecatedType.DONUT:this.mergedOptions=this.donutOptions,this.mergedOptions.chart.type=e.ChartDeprecatedType.PIE,this.mergedOptions.plotOptions.pie.innerSize="50%";break;case e.ChartDeprecatedType.PIE:this.mergedOptions=this.donutOptions,this.mergedOptions.chart.type=this.type,this.mergedOptions.plotOptions.pie.innerSize="0%";break;case e.ChartDeprecatedType.AREASPLINE:this.mergedOptions=this.areasplineOptions,this.mergedOptions.chart.type=this.type;break;case e.ChartDeprecatedType.TIMESERIES:this.mergedOptions=this.timeSeriesOptions,this.mergedOptions.chart.type=this.type;break;case e.ChartDeprecatedType.ACTIVITYGAUGE:this.mergedOptions=this.activitygaugeOptions,this.mergedOptions.chart.type=this.type;break;case e.ChartDeprecatedType.COLUMN:this.mergedOptions=Fe,this.mergedOptions.chart.type=this.type;break;case e.ChartDeprecatedType.BAR:this.mergedOptions=Le,this.mergedOptions.chart.type=this.type}},t.prototype.updateProperties=function(){switch(this.mergedOptions.chart.height=this.height,this.mergedOptions.accessibility.description=this.description,this.mergedOptions.chart.type){case e.ChartDeprecatedType.PIE:case e.ChartDeprecatedType.DONUT:this.setPieInput();break;case e.ChartDeprecatedType.AREASPLINE:this.setSeries("areaspline");break;case e.ChartDeprecatedType.TIMESERIES:this.setTimeseriesInput();break;case e.ChartDeprecatedType.ACTIVITYGAUGE:this.setActivitygaugeInput();break;case e.ChartDeprecatedType.COLUMN:this.setColumnInput();break;case e.ChartDeprecatedType.BAR:this.setBarInput()}this.options&&(this.mergedOptions=Te(this.mergedOptions,this.options))},t.prototype.setPieInput=function(){this.mergedOptions.plotOptions.pie.dataLabels.enabled=this.showDataLabels,this.setSeries("pie")},t.prototype.setBarInput=function(){var e=Math.max.apply(Math,B(this.data));this.mergedOptions.series=[{type:"bar",name:"InvisibleClickReceiver",data:this.data.map((function(t){return e-t})),edgeColor:"rgb(255, 255, 255, 0)",opacity:0},{type:"bar",data:this.data}],this.mergedOptions.xAxis.categories=this.categories},t.prototype.setColumnInput=function(){var e=this;this.mergedOptions.series=[{type:"column",data:this.data}];var t=Math.max.apply(Math,B(this.data));this.mergedOptions.yAxis.tickPositioner=function(){return[0,t]},this.mergedOptions.series=[{type:"column",name:"InvisibleClickReceiver",data:this.data.map((function(n,i){return t-e.data[i]})),opacity:0},{type:"column",data:this.data}],this.mergedOptions.xAxis.categories=this.categories},t.prototype.setActivitygaugeInput=function(){var e=this.data[0];this.mergedOptions.title.text=e.title,this.mergedOptions.subtitle.text=e.subtitle,e.paneBackgroundColor&&(this.mergedOptions.pane.background=[Object.assign(Object.assign({},this.mergedOptions.pane.background[0]),{backgroundColor:e.paneBackgroundColor})]),e.color&&(this.mergedOptions.title.style.color=e.color,this.mergedOptions.subtitle.style.color=e.color),this.mergedOptions.series=[{type:"solidgauge",data:e.series}]},t.prototype.setTimeseriesInput=function(){this.setSeries("area"),this.mergedOptions.xAxis=Object.assign(Object.assign({},this.mergedOptions.xAxis),{breaks:this.breaks})},t.prototype.setSeries=function(e){this.mergedOptions.series=[{type:e,data:this.data}]},t}();function Ze(e){return Array.isArray(e)&&e.every((function(e){return"number"==typeof e}))}qe.decorators=[{type:t.Component,args:[{selector:"kirby-chart-deprecated",template:"",providers:[Re,{provide:Ne,useValue:Ge},{provide:Ae,useValue:Ue},{provide:Ve,useValue:Ye},{provide:_e,useValue:Ke}],styles:[":host{display:block}"]}]}],qe.ctorParameters=function(){return[{type:Re},{type:t.ElementRef},{type:void 0,decorators:[{type:t.Inject,args:[Ne]}]},{type:void 0,decorators:[{type:t.Inject,args:[Ae]}]},{type:void 0,decorators:[{type:t.Inject,args:[Ve]}]},{type:void 0,decorators:[{type:t.Inject,args:[_e]}]}]},qe.propDecorators={data:[{type:t.Input}],categories:[{type:t.Input}],breaks:[{type:t.Input}],height:[{type:t.Input}],type:[{type:t.Input}],description:[{type:t.Input}],showDataLabels:[{type:t.Input}],options:[{type:t.Input}]};var Je=(0,X.getThemeColorHexString)("semi-dark"),Qe=[6,3],Xe={line:{borderDash:Qe,borderWidth:1,borderColor:Je},ellipse:{borderDash:Qe,borderWidth:1,borderColor:Je,backgroundColor:"transparent"},box:{borderDash:Qe,borderWidth:1,borderColor:Je,backgroundColor:"transparent"},point:{backgroundColor:"initial"}},et={onHover:function(e,t,n,i){n.options.onClick&&(n.canvas.style.cursor=t[0]?"pointer":"default"),i&&i(e,t,n)}},tt=ee.fontSize,nt=X.getThemeColorHexString,it={bar:{type:"bar",options:{datasets:{bar:{barPercentage:.6},line:{spanGaps:!0}},indexAxis:"y",scales:{y:{grid:{drawBorder:!1},ticks:{font:{size:parseInt(tt("s"))}}}},elements:{point:{radius:0},line:{borderColor:nt("medium")}}}},column:{type:"bar",options:{datasets:{bar:{barPercentage:.6},line:{spanGaps:!0}},indexAxis:"x",scales:{x:{grid:{drawBorder:!1},ticks:{font:{size:parseInt(tt("xs"))}}}},elements:{line:{tension:.2,borderColor:nt("medium")},point:{radius:0}}}},line:{type:"line",options:{scales:{x:{grid:{borderColor:nt("medium"),borderWidth:1},ticks:{font:{size:parseInt(tt("xs"))}}}},elements:{point:{radius:0}}}}},ot=function(){function e(){}return e.prototype.getTypeConfig=function(e){return t=it[e],JSON.parse(JSON.stringify(t));var t},e.prototype.getAnnotationDefaults=function(e){return Xe[e]},e.prototype.getInteractionFunctionsExtensions=function(){return et},e.prototype.chartTypeToChartJSType=function(e){return it[e].type},e}();ot.decorators=[{type:t.Injectable}];var rt=X.getThemeColorHexString,at=rt("primary"),st=rt("secondary");function lt(e){var t,n=e.dataset,i=null===(t=null==n?void 0:n.kirbyOptions)||void 0===t?void 0:t.highlightedElements;return i&&i.includes(e.dataIndex)?at:st}var ct={maintainAspectRatio:!1,color:(0,X.getThemeColorHexString)("black"),resizeDelay:10,elements:{bar:{backgroundColor:lt,hoverBackgroundColor:function(e){if(e.chart.options.onClick)return at}},line:{borderColor:lt,borderWidth:2,tension:.3}},scales:{linear:{display:!1,ticks:{display:!1}},category:{display:!0,grid:{display:!1}}},font:{family:"Roboto"},plugins:{legend:{display:!1}}},dt=[l.CategoryScale,l.LinearScale],pt=[l.BarElement,l.LineElement,l.PointElement],ht=[l.BarController,l.LineController],ut=[E.default];l.Chart.register.apply(l.Chart,B([l.Legend],dt,pt,ht,ut));var gt=Oe(l.Chart.defaults,ct);Object.entries(ct).forEach((function(e){var t=M(e,1)[0];l.Chart.defaults[t]=gt[t]}));var mt=function(){function e(e){this.chartConfigService=e}return e.prototype.renderChart=function(e){var t=e.targetElement,n=e.type,i=e.data,o=e.dataLabels,r=e.customOptions,a=e.annotations,s=e.highlightedElements,l=this.createDatasets(i,s),c=this.createOptionsObject({type:n,customOptions:r,annotations:a}),d=this.createConfigurationObject(n,l,c,o);this.initializeNewChart(t.nativeElement,d)},e.prototype.redrawChart=function(){this.chart.update()},e.prototype.updateData=function(e){var t=this.createDatasets(e);this.chart.data.datasets=t},e.prototype.updateDataLabels=function(e){this.chart.data.labels=e},e.prototype.updateType=function(e,t){"bar"===e||"column"===e?this.destructivelyUpdateType(e,t):this.nonDestructivelyUpdateType(e,t)},e.prototype.updateOptions=function(e,t){var n=this.getExistingChartAnnotations();this.chart.options=this.createOptionsObject({type:t,customOptions:e,annotations:n})},e.prototype.updateAnnotations=function(e){var t=this.applyDefaultsToAnnotations(e);this.chart.options.plugins.annotation.annotations=t},e.prototype.updateHighlightedElements=function(e){var t=this.chart.data.datasets;t.map((function(e){var t;(null===(t=null==e?void 0:e.kirbyOptions)||void 0===t?void 0:t.highlightedElements)&&delete e.kirbyOptions.highlightedElements})),this.chart.data.datasets=this.createDatasets(t,e)},e.prototype.getExistingChartAnnotations=function(){var e,t,n=null===(t=null===(e=this.chart.options.plugins)||void 0===e?void 0:e.annotation)||void 0===t?void 0:t.annotations;return void 0!==n?Object.keys(n).map((function(e){return n[e]})):[]},e.prototype.destructivelyUpdateType=function(e,t){var n=this.chart.data.datasets,i=this.chart.data.labels,o=this.getExistingChartAnnotations(),r=this.createOptionsObject({type:e,customOptions:t,annotations:o}),a=this.createConfigurationObject(e,n,r,i),s=this.chart.canvas;this.chart.destroy(),this.initializeNewChart(s,a)},e.prototype.nonDestructivelyUpdateType=function(e,t){var n=this.getExistingChartAnnotations(),i=this.createOptionsObject({type:e,customOptions:t,annotations:n});this.chart.options=i,this.chart.config.type=this.chartConfigService.chartTypeToChartJSType(e)},e.prototype.initializeNewChart=function(e,t){this.chart=new l.Chart(e,t)},e.prototype.createBlankLabels=function(e){var t=e.reduce((function(e,t){return e.data.length>t.data.length?e:t}));return Array(t.data.length).fill("")},e.prototype.applyDefaultsToAnnotations=function(e){var t=this;return e.map((function(e){return Oe(t.chartConfigService.getAnnotationDefaults(e.type),e)}))},e.prototype.createAnnotationPluginOptionsObject=function(e){return{plugins:{annotation:{annotations:this.applyDefaultsToAnnotations(e)}}}},e.prototype.applyInteractionFunctionsExtensions=function(e){var t=this.chartConfigService.getInteractionFunctionsExtensions();return Object.entries(t).forEach((function(n){var i=M(n,2),o=i[0],r=(i[1],e[o]);e[o]=function(e,n,i){t[o](e,n,i,r)}})),e},e.prototype.createOptionsObject=function(e){var t=e.type,n=e.customOptions,i=e.annotations,o=this.chartConfigService.getTypeConfig(t),r=Oe(null==o?void 0:o.options,n,i?this.createAnnotationPluginOptionsObject(i):{});return this.applyInteractionFunctionsExtensions(r)},e.prototype.createConfigurationObject=function(e,t,n,i){var o=i||this.createBlankLabels(t);return Oe(this.chartConfigService.getTypeConfig(e),{data:{labels:o,datasets:t},options:n})},e.prototype.addHighlightedElementsToDatasets=function(e,t){e.forEach((function(e){var n,i=M(e,2),o=i[0],r=i[1],a=t[o];a&&((null===(n=null==a?void 0:a.kirbyOptions)||void 0===n?void 0:n.highlightedElements)?a.kirbyOptions.highlightedElements.push(r):a.kirbyOptions=Object.assign(Object.assign({},a.kirbyOptions),{highlightedElements:[r]}))}))},e.prototype.createDatasets=function(e,t){var n=Ze(e)?[{data:e}]:e;return t&&this.addHighlightedElementsToDatasets(t,n),n},e}();mt.decorators=[{type:t.Injectable}],mt.ctorParameters=function(){return[{type:ot}]};var bt=function(){function e(e){this.chartJSService=e,this.type="column"}return Object.defineProperty(e.prototype,"height",{set:function(e){this._height="number"==typeof e?e+"px":e},enumerable:!1,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.renderChart()},e.prototype.ngOnChanges=function(e){var t=this,n=!1,i={data:function(){return t.updateData()},dataLabels:function(){return t.updateDataLabels()},type:function(){return t.updateType()},customOptions:function(){return t.updateCustomOptions()},annotations:function(){return t.updateAnnotations()},highlightedElements:function(){return t.updateHighlightedElements()}};Object.entries(e).forEach((function(t){var o=M(t,1)[0];!e[o].firstChange&&i[o]&&(n=!0,i[o]())})),n&&this.redrawChart()},e.prototype.renderChart=function(){this.chartJSService.renderChart({targetElement:this.canvasElement,type:this.type,data:this.data,dataLabels:this.dataLabels,customOptions:this.customOptions,annotations:this.annotations,highlightedElements:this.highlightedElements})},e.prototype.updateData=function(){this.chartJSService.updateData(this.data)},e.prototype.updateDataLabels=function(){this.chartJSService.updateDataLabels(this.dataLabels)},e.prototype.updateType=function(){this.chartJSService.updateType(this.type,this.customOptions)},e.prototype.updateCustomOptions=function(){this.chartJSService.updateOptions(this.customOptions,this.type)},e.prototype.updateAnnotations=function(){this.chartJSService.updateAnnotations(this.annotations)},e.prototype.updateHighlightedElements=function(){this.chartJSService.updateHighlightedElements(this.highlightedElements)},e.prototype.redrawChart=function(){this.chartJSService.redrawChart()},e}();bt.decorators=[{type:t.Component,args:[{selector:"kirby-chart",template:'<div class="chart-container">\n <canvas #chartCanvas>\n \x3c!-- Slotted content makes it possible to insert fallback content for screen readers \n https://www.chartjs.org/docs/latest/general/accessibility.html--\x3e\n <ng-content></ng-content>\n </canvas>\n</div>\n',providers:[mt],styles:[":host div{height:var(--kirby-chart-height,300px);position:relative}"]}]}],bt.ctorParameters=function(){return[{type:mt}]},bt.propDecorators={type:[{type:t.Input}],data:[{type:t.Input}],dataLabels:[{type:t.Input}],customOptions:[{type:t.Input}],annotations:[{type:t.Input}],highlightedElements:[{type:t.Input}],_height:[{type:t.HostBinding,args:["style.--kirby-chart-height"]}],height:[{type:t.Input}],canvasElement:[{type:t.ViewChild,args:["chartCanvas"]}]};var yt=function(e){return{id:"minmax",zIndex:2,labels:[{point:"max",shape:"rect",distance:5,align:"center",verticalAlign:"top",backgroundColor:X.getThemeColorRgbString("tertiary"),formatter:function(){return a.formatNumber(this.y,e,"1.1-1")}},{point:"min",shape:"rect",distance:-28,align:"center",verticalAlign:"bottom",backgroundColor:X.getThemeColorRgbString("tertiary"),formatter:function(){return a.formatNumber(this.y,e,"1.1-1")}}],labelOptions:{y:0,allowOverlap:!0}}},ft=function(e){return{chart:{zoomType:"x",type:"StockChart",spacingTop:30},navigator:{enabled:!1},rangeSelector:{enabled:!1},scrollbar:{enabled:!1},credits:{enabled:!1},title:{text:""},subtitle:{text:""},xAxis:{ordinal:!0,type:"datetime",lineWidth:.5,opposite:!1,labels:{format:"{value:%Y-%b-%e %l:%M %p }"}},yAxis:{opposite:!1,title:{text:""}},annotations:[yt(e)],legend:{enabled:!1},tooltip:{crosshairs:{width:1,zIndex:2},shadow:!1,borderWidth:0},plotOptions:{area:{marker:{lineWidth:16,radius:7},lineWidth:2,states:{hover:{lineWidth:2}},events:{},threshold:null},series:{marker:{zIndex:100,enabledThreshold:50}}},series:[{type:"area",data:[]}]}},vt=ft;O.default(T);var kt=function(){function e(e,t){this.locale=t,this._height=300,this.description="",this.showDataLabels=!0,this.chartContainer=e}return Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this.onDataChanges(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this.onOptionsChanges(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e,this.chart&&this.chart.setSize(null,e)},enumerable:!1,configurable:!0}),e.prototype.onOptionsChanges=function(e){this._options=e,this.chart=d.stockChart(this.chartContainer.nativeElement,this._options)},e.prototype.onDataChanges=function(e){this._data=e,null!=this.chart&&(this.chart.update({series:[]},!1,!0),this.chart.removeAnnotation("minmax"),this.chart.update({series:[{type:"area",data:e}]},!1,!0),this.chart.addAnnotation(yt(this.locale),!1),this.chart.redraw())},e}();kt.decorators=[{type:t.Component,args:[{selector:"kirby-stock-chart-deprecated",template:"",styles:[":host{display:block}"]}]}],kt.ctorParameters=function(){return[{type:t.ElementRef},{type:String,decorators:[{type:t.Inject,args:[t.LOCALE_ID]}]}]},kt.propDecorators={data:[{type:t.Input}],options:[{type:t.Input}],height:[{type:t.Input}],description:[{type:t.Input}],showDataLabels:[{type:t.Input}]};var xt,wt=function(){function e(e){this.windowRef=e,this.embeddedViewReady=!1}return e.prototype.init=function(e,t,n,i){var o=this;if(this.hasEmbeddedView(e)){var r=e.nativeElement;r.onload=function(){o.embeddedViewReady=!0,o.emitOptionsToEmbeddedView(t)},this.embeddedView=r.contentWindow,this.windowRef.nativeWindow.addEventListener("message",(function(e){return o.handleMessageEvent(e,n,i)}))}},e.prototype.update=function(e){this.embeddedViewReady&&this.emitOptionsToEmbeddedView(e)},e.prototype.setSelectedDay=function(e){this.embeddedViewReady&&this.embeddedView.postMessage({type:"kirbyCalendarSetSelectedDay",selectedDay:e},"*")},e.prototype.hasEmbeddedView=function(e){return e&&e.nativeElement&&e.nativeElement instanceof HTMLIFrameElement&&e.nativeElement.contentWindow},e.prototype.emitOptionsToEmbeddedView=function(e){this.embeddedView.postMessage(Object.assign({type:"kirbyCalendarInit"},e),"*")},e.prototype.handleMessageEvent=function(e,t,n){if(this.validateMessage(e))switch(e.data.type){case"kirbyCalendarDaySelected":this.validateDateSelectedMessage(e)&&t({isSelectable:!0,date:e.data.day});break;case"kirbyCalendarChangeMonth":this.validateNavigateMonthMessage(e)&&n(e.data.index)}},e.prototype.validateMessage=function(e){return this.embeddedView===e.source&&"message"===e.type&&e.data&&e.data.type},e.prototype.validateDateSelectedMessage=function(e){return"kirbyCalendarDaySelected"===e.data.type&&e.data.day},e.prototype.validateNavigateMonthMessage=function(e){return"kirbyCalendarChangeMonth"===e.data.type&&"number"==typeof e.data.index},e}();wt.decorators=[{type:t.Injectable}],wt.ctorParameters=function(){return[{type:j}]},function(e){e.years="years",e.months="months",e.weeks="weeks",e.days="days",e.hours="hours",e.minutes="minutes",e.seconds="seconds",e.milliseconds="milliseconds"}(xt||(xt={}));var Ct=function(){function e(e,n){this.calendarHelper=e,this.dateChange=new t.EventEmitter,this.dateSelect=new t.EventEmitter,this.yearSelect=new t.EventEmitter,this.timezone="local",this.disableWeekends=!1,this.disablePastDates=!1,this.disableFutureDates=!1,this.alwaysEnableToday=!1,this.customLocales={},this._disabledDates=[],this.includedLocales={da:g.da,enGB:g.enGB,enUS:g.enUS},this.locale=this.mapLocale(n),this.timeZoneName=Intl.DateTimeFormat().resolvedOptions().timeZone}return Object.defineProperty(e.prototype,"selectedDate",{get:function(){return this._selectedDate},set:function(e){var t=this.normalizeDate(e);this.setActiveMonth(t),this.hasDateChanged(t,this._selectedDate)&&(this.onSelectedDateChange(t),this._selectedDate=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){var t=this;this._disabledDates=(e||[]).map((function(e){return t.normalizeDate(e)}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"todayDate",{get:function(){return this._todayDate},set:function(e){this._todayDate=this.normalizeDate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minDate",{get:function(){return this._minDate},set:function(e){e&&this.activeMonth&&h.isBefore(this.activeMonth,e)&&this.setActiveMonth(e),this._minDate=this.normalizeDate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){e&&this.activeMonth&&h.isAfter(this.activeMonth,e)&&this.setActiveMonth(e),this._maxDate=this.normalizeDate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeMonthName",{get:function(){return Q(this.formatWithLocale(this.activeMonth,"MMMM"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeYear",{get:function(){return this.formatWithLocale(this.activeMonth,"yyyy")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"navigableYears",{get:function(){var e=this.minDate||this.getDateFromNavigableYear(this.yearNavigatorOptions.from),t=this.maxDate||this.getDateFromNavigableYear(this.yearNavigatorOptions.to);return this.getYearsBetweenDates(e,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"navigatedYear",{get:function(){return this.navigableYears.indexOf(this.activeYear)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_hasYearNavigator",{get:function(){return!!this.yearNavigatorOptions},enumerable:!1,configurable:!0}),e.prototype.formatWithLocale=function(e,t){return h.format(e,t,{locale:this.locale})},e.prototype.mapLocale=function(e){return"en"===e&&(e="enGB"),e=e.replace("-",""),Object.assign(Object.assign({},this.includedLocales),this.customLocales)[e]||this.includedLocales.enGB},e.prototype.ngOnInit=function(){this._weekDays=this.getWeekDays(),this.setActiveMonth(this.selectedDate)},e.prototype.ngAfterViewInit=function(){this.calendarHelper.init(this.calendarContainer,this.getHelperOptions(),this._onDateSelected.bind(this),this.onChangeMonth.bind(this))},e.prototype.ngOnChanges=function(e){this.activeMonth&&(e.disableWeekends||e.disablePastDates||e.disableFutureDates||e.disabledDates||e.minDate||e.maxDate||e.todayDate||e.timezone)&&(this.refreshActiveMonth(),this.calendarHelper.update(this.getHelperOptions()))},e.prototype.setActiveMonth=function(e){void 0===e&&(e=new Date),this.activeMonth&&h.isSameMonth(this.activeMonth,e)||(this.activeMonth=h.startOfMonth(e),this.refreshActiveMonth(),this.calendarHelper.update(this.getHelperOptions()))},e.prototype.normalizeDate=function(e){if(e)return h.startOfDay(e).getTime()===e.getTime()?e:h.startOfDay(u.utcToZonedTime(e,this.timeZoneName)).getTime()===u.utcToZonedTime(e,this.timeZoneName).getTime()?u.utcToZonedTime(e,this.timeZoneName):h.startOfDay(e)},e.prototype.getWeekDays=function(){var e=this,t=new Date;return h.eachDayOfInterval({start:h.startOfWeek(t,{locale:this.locale}),end:h.endOfWeek(t,{locale:this.locale})}).map((function(t){return e.getFirstLetterOfWeekDayCapitalized(t)}))},e.prototype.getFirstLetterOfWeekDayCapitalized=function(e){return this.formatWithLocale(e,"EEEEE")},e.prototype.hasDateChanged=function(e,t){return!(!e&&!t)&&(e instanceof Date&&!t||!h.isSameDay(e,t))},e.prototype.isDisabledDate=function(e){return this.disabledDates.some((function(t){return h.isSameDay(t,e)}))},e.prototype.refreshActiveMonth=function(){var e=this;if(this.activeMonth){var t=h.startOfMonth(this.activeMonth),n=h.endOfMonth(this.activeMonth),i=h.startOfWeek(t,{locale:this.locale}),o=h.endOfWeek(n,{locale:this.locale}),r=h.differenceInDays(o,i)+1,a=this.todayDate?h.startOfDay(this.todayDate):h.startOfDay(new Date),s=Array.from(Array(r).keys()).map((function(n){var o,r=h.add(i,((o={})[xt.days]=n,o)),s=e.getCalendarDay(r,a,t),l=e.isSelectable(s,r),c=h.isSameDay(e.selectedDate,r),d={date:r.getDate(),isCurrentMonth:s.isCurrentMonth,isSelectable:l,isSelected:c,cssClasses:e.getCssClasses(s,l,c)};return c&&(e.selectedDay=d),d}));this._month=this.chunk(s,7)}},e.prototype.getCalendarDay=function(e,t,n){return{isToday:h.isSameDay(t,e),isPast:h.isBefore(e,t),isFuture:h.isAfter(e,t),isWeekend:h.isWeekend(e),isCurrentMonth:h.isSameMonth(e,n),isDisabled:this.isDisabledDate(e)}},e.prototype.isSelectable=function(e,t){return this.alwaysEnableToday&&e.isToday||!e.isDisabled&&e.isCurrentMonth&&!(this.disableWeekends&&e.isWeekend)&&!(this.disablePastDates&&e.isPast)&&!(this.disableFutureDates&&e.isFuture)&&!(this.minDate&&h.isBefore(t,this.minDate))&&!(this.maxDate&&h.isAfter(t,this.maxDate))},e.prototype.getCssClasses=function(e,t,n){var i={"current-month":e.isCurrentMonth,weekend:e.isWeekend,today:e.isToday,selectable:t,selected:n,past:e.isPast,disabled:e.isDisabled},o="day";for(var r in i)i[r]&&(o+=" "+r);return o},e.prototype.chunk=function(e,t){for(var n=[];e.length;)n.push(e.splice(0,t));return n},e.prototype.onSelectedDateChange=function(e){this.selectedDay&&(this.selectedDay.isSelected=!1);var t=this.getCell(e);t&&(t.isSelected=!0,this.selectedDay=t),this.calendarHelper.setSelectedDay(e.getDate())},e.prototype._onDateSelected=function(e){if(e.isSelectable&&e.date){var t=new Date(this.activeMonth);"UTC"===this.timezone&&(t=u.zonedTimeToUtc(this.subtractTimezoneOffset(t),this.timeZoneName)),t.setDate(e.date);var n=t;this.hasDateChanged(t,this._selectedDate)&&(this.onSelectedDateChange(t),this._selectedDate=t,this.dateChange.emit(n)),this.dateSelect.emit(n)}},e.prototype.onChangeMonth=function(e){this._changeMonth(e),this.calendarHelper.update(this.getHelperOptions())},e.prototype._changeMonth=function(e){this.changeActiveView(e,xt.months)},e.prototype._changeYear=function(e){var t=Number(e);this.changeActiveView(t-h.getYear(this.activeMonth),xt.years),this.yearSelect.emit(t)},e.prototype.changeActiveView=function(e,t){var n;0!==e&&(this.activeMonth=h.add(this.activeMonth,((n={})[t]=e,n)),this.refreshActiveMonth())},Object.defineProperty(e.prototype,"_canNavigateBack",{get:function(){var e=this.disablePastDates&&h.isSameMonth(this.activeMonth,this.todayDate),t=this.minDate&&(h.isSameMonth(this.activeMonth,this.minDate)||h.isBefore(this.activeMonth,this.minDate));return!e&&!t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_canNavigateForward",{get:function(){var e=this.disableFutureDates&&h.isSameMonth(this.activeMonth,this.todayDate),t=this.maxDate&&(h.isSameMonth(this.activeMonth,this.maxDate)||h.isAfter(this.activeMonth,this.maxDate));return!e&&!t},enumerable:!1,configurable:!0}),e.prototype.getCell=function(e){var t,n,i=null;if(e)try{for(var o=A(this._month),r=o.next();!r.done;r=o.next()){if(i=r.value.find((function(t){return t.isCurrentMonth&&t.date===e.getDate()})))break}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i},e.prototype.getHelperOptions=function(){return{canNavigateBack:this._canNavigateBack,canNavigateForward:this._canNavigateForward,year:this.activeYear,monthName:this.activeMonthName,weekDays:this._weekDays,month:this._month}},e.prototype.subtractTimezoneOffset=function(e){var t=60*e.getTimezoneOffset()*1e3;return new Date(e.getTime()-t)},e.prototype.getDateFromNavigableYear=function(e){if(e instanceof Date)return e;var t=this.todayDate||new Date;return new Date(t.getFullYear()+e,0,1)},e.prototype.getYearsBetweenDates=function(e,t){var n=M([e.getFullYear(),t.getFullYear()].sort(),2),i=n[0],o=n[1]-i;return Array.from({length:o+1},(function(e,t){return(i+t).toString()}))},e}();Ct.decorators=[{type:t.Component,args:[{selector:"kirby-calendar",template:'<div class="header">\n <div class="month-navigator">\n <button [disabled]="!_canNavigateBack" (click)="_changeMonth(-1)">\n <kirby-icon name="arrow-back"></kirby-icon>\n </button>\n\n <div class="month-and-year">\n <span class="month">{{ activeMonthName }}</span\n ><span *ngIf="!_hasYearNavigator" class="year">{{ activeYear }}</span>\n </div>\n\n <button [disabled]="!_canNavigateForward" (click)="_changeMonth(1)">\n <kirby-icon name="arrow-more"></kirby-icon>\n </button>\n </div>\n <kirby-dropdown\n *ngIf="_hasYearNavigator"\n [selectedIndex]="navigatedYear"\n [items]="navigableYears"\n popout="left"\n (change)="_changeYear($event)"\n >\n </kirby-dropdown>\n</div>\n\n<table>\n <thead>\n <tr>\n <th *ngFor="let weekDay of _weekDays">{{ weekDay }}</th>\n </tr>\n </thead>\n\n <tbody>\n <tr *ngFor="let week of _month">\n <td *ngFor="let day of week">\n <div\n (click)="_onDateSelected(day)"\n class="{{ day.cssClasses }}"\n [class.selected]="day.isSelected"\n >\n {{ day.date }}\n </div>\n </td>\n </tr>\n </tbody>\n</table>\n\n\x3c!-- <iframe src="kirby/components/calendar/calendar.webview.html" #calendarContainer style="width: 320px; height: 304px; border: 0"> --\x3e\n',providers:[wt],styles:["table{width:100%;border-collapse:collapse;-webkit-user-select:none;user-select:none;margin-bottom:8px}td,th{text-align:center;padding:0}td:first-child,th:first-child{padding-left:8px}td:last-child,th:last-child{padding-right:8px}th{height:50px;border-bottom:1px solid var(--kirby-background-color)}.header,td,th{background-color:transparent}.header{margin:8px 8px 0}.header,.month-navigator{display:flex;justify-content:space-between}.month-navigator{flex-grow:1;align-items:center}.month-navigator button{background-color:transparent;outline:none;border:none;cursor:pointer;height:40px;width:40px;padding:0}.month-navigator button:disabled{opacity:.5;pointer-events:none}.month-and-year{-webkit-user-select:none;user-select:none}.month-and-year .month{font-weight:700;margin-right:8px}:host(.has-year-navigator) .month-navigator{flex-grow:0}:host(.has-year-navigator) .month-and-year{width:80px;margin:0 8px;text-align:center}:host(.has-year-navigator) .month{margin-right:0}.day{display:inline-flex;align-items:center;justify-content:center;border-radius:20px;width:40px;height:40px;margin:4px 0}.day.selectable,.day.selected{cursor:pointer}.day.disabled,.day:not(.selectable){color:var(--kirby-text-color-semi-dark)}.day.today{color:var(--kirby-medium-contrast);background-color:var(--kirby-medium)}.day.selected{color:var(--kirby-black-contrast);background-color:var(--kirby-black)}.day:not(.current-month){visibility:hidden;pointer-events:none}.day.selectable:not(.selected):hover{color:var(--kirby-light-contrast);background-color:var(--kirby-light)}"]}]}],Ct.ctorParameters=function(){return[{type:wt},{type:String,decorators:[{type:t.Inject,args:[t.LOCALE_ID]}]}]},Ct.propDecorators={calendarContainer:[{type:t.ViewChild,args:["calendarContainer",{static:!1}]}],dateChange:[{type:t.Output}],dateSelect:[{type:t.Output}],yearSelect:[{type:t.Output}],timezone:[{type:t.Input}],disableWeekends:[{type:t.Input}],disablePastDates:[{type:t.Input}],disableFutureDates:[{type:t.Input}],alwaysEnableToday:[{type:t.Input}],customLocales:[{type:t.Input}],yearNavigatorOptions:[{type:t.Input}],selectedDate:[{type:t.Input}],disabledDates:[{type:t.Input}],todayDate:[{type:t.Input}],minDate:[{type:t.Input}],maxDate:[{type:t.Input}],_hasYearNavigator:[{type:t.HostBinding,args:["class.has-year-navigator"]}]};var It=function(){function e(e){this.scope=e,this.id=0}return e.scopedTo=function(t){var n=e.registry.get(t);return n||(n=new e(t),e.registry.set(t,n)),n},e.prototype.next=function(){return this.scope+"-"+this.id++},e}();It.registry=new Map;var St=function(){function e(){this.checked=!1,this.attentionLevel="2",this.hasError=!1,this.disabled=!1,this.checkedChange=new t.EventEmitter,this._labelId=It.scopedTo("kirby-checkbox-label").next()}return Object.defineProperty(e.prototype,"_isDisabled",{get:function(){return this.disabled?"disabled":null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isAttentionLevel1",{get:function(){return"1"===this.attentionLevel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isAttentionLevel2",{get:function(){return"2"===this.attentionLevel},enumerable:!1,configurable:!0}),e.prototype.onChecked=function(e){this.checked=e,this.checkedChange.emit(this.checked)},e}();St.decorators=[{type:t.Component,args:[{selector:"kirby-checkbox",template:'<div class="wrapper">\n <ion-checkbox\n mode="md"\n [checked]="checked"\n [disabled]="disabled"\n (ionChange)="onChecked($event.detail.checked)"\n [attr.aria-labelledby]="text ? _labelId : null"\n ></ion-checkbox>\n <span [id]="_labelId" *ngIf="text">{{ text }}</span>\n</div>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:inline-block}:host.attention-level1 ion-checkbox{--checkmark-color:var(--kirby-black);--background-checked:var(--kirby-success);--border-color-checked:var(--kirby-success)}:host.attention-level1 ion-checkbox:active{--background-checked:var(--kirby-success-shade);--border-color-checked:var(--kirby-success-shade)}:host.attention-level2 ion-checkbox{--checkmark-color:var(--kirby-white);--background-checked:var(--kirby-black);--border-color-checked:var(--kirby-black)}:host.attention-level2 ion-checkbox:active{--checkmark-color:var(--kirby-white-shade);--background-checked:var(--kirby-black-tint);--border-color-checked:var(--kirby-black-tint)}:host.error ion-checkbox{--border-color:var(--kirby-danger)}:host[disabled]{color:var(--kirby-text-color-semi-dark)}:host[disabled] ion-checkbox{opacity:1;--checkmark-color:var(--kirby-semi-dark);--background:var(--kirby-semi-light);--background-checked:var(--kirby-semi-light);--border-color:var(--kirby-medium);--border-color-checked:var(--kirby-semi-light)}:host ion-checkbox{--size:24px;--checkmark-width:4px;--background:var(--kirby-white);--border-width:1px;--border-color:var(--kirby-semi-dark);--border-radius:6px;margin-left:16px;margin-right:12px}:host ion-checkbox::part(container){padding:4px}@media (hover:hover){:host ion-checkbox:focus-within::part(container){box-shadow:0 0 0 1px var(--kirby-background-color),0 0 0 2px #4d90fe;border-radius:6px}}:host ion-checkbox:active{--background:var(--kirby-white-shade)}:host.has-label{display:block;line-height:24px;white-space:pre-line}:host.has-label .wrapper{position:relative;display:inline-flex;align-items:flex-start;vertical-align:top;padding:16px 12px 16px 0}:host.has-label.xs .wrapper,:host.has-label :host-context(.checkbox-xs) .wrapper{padding-top:4px;padding-bottom:4px}:host.has-label.sm .wrapper,:host.has-label :host-context(.checkbox-sm) .wrapper{padding-top:10px;padding-bottom:10px}:host.has-label.md .wrapper,:host.has-label :host-context(.checkbox-md) .wrapper{padding-top:16px;padding-bottom:16px}:host.has-label ion-checkbox{position:static;flex-shrink:0;flex-grow:0}:host-context(kirby-item){z-index:1}:host-context(kirby-item) ion-checkbox{margin:0}:host-context(kirby-item)[slot=start]{margin-inline-end:12px}"]}]}],St.propDecorators={checked:[{type:t.Input}],attentionLevel:[{type:t.Input}],text:[{type:t.HostBinding,args:["class.has-label"]},{type:t.Input}],size:[{type:t.HostBinding,args:["class"]},{type:t.Input}],hasError:[{type:t.HostBinding,args:["class.error"]},{type:t.Input}],disabled:[{type:t.Input}],_isDisabled:[{type:t.HostBinding,args:["attr.disabled"]}],isAttentionLevel1:[{type:t.HostBinding,args:["class.attention-level1"]}],isAttentionLevel2:[{type:t.HostBinding,args:["class.attention-level2"]}],checkedChange:[{type:t.Output}]};var Et=function(){};Et.decorators=[{type:t.Component,args:[{selector:"kirby-chip",template:"<span>{{ text }}</span>\n",styles:[':host{background-color:var(--kirby-white);color:var(--kirby-white-contrast);position:relative;white-space:nowrap;padding:0 var(--inline-padding,16px);height:32px;font-size:12px;line-height:1;display:inline-flex;align-items:center;border-radius:999px;margin:4px var(--inline-margin,4px);cursor:pointer;-webkit-user-select:none;user-select:none}:host.is-selected{background-color:var(--kirby-black);color:var(--kirby-black-contrast)}@media (hover:hover){:host:hover{background-color:var(--kirby-black);color:var(--kirby-black-contrast)}}:host:after{content:"";position:absolute;min-height:44px;min-width:44px;width:100%;height:100%;transform:translate(-50%,-50%);left:50%;top:50%}:host :host-context(.kirby-color-brightness-dark){background-color:transparent;color:var(--kirby-text-color-white)}:host :host-context(.kirby-color-brightness-dark).is-selected{background-color:var(--kirby-white);color:var(--kirby-white-contrast)}@media (hover:hover){:host :host-context(.kirby-color-brightness-dark):hover{background-color:var(--kirby-white);color:var(--kirby-white-contrast)}}:host :host-context(kirby-segmented-control.compact){min-width:44px;flex-shrink:0;justify-content:center;--inline-margin:2px;--inline-padding:13px;background-color:transparent;color:var(--kirby-text-color-black)}:host :host-context(kirby-segmented-control.compact).is-selected{background-color:var(--kirby-black);color:var(--kirby-black-contrast)}@media (hover:hover){:host :host-context(kirby-segmented-control.compact):hover{background-color:var(--kirby-black);color:var(--kirby-black-contrast)}}@media (max-width:321px){:host :host-context(kirby-segmented-control.compact){--inline-margin:0}}']}]}],Et.propDecorators={text:[{type:t.Input}],isSelected:[{type:t.Input},{type:t.HostBinding,args:["attr.aria-selected"]},{type:t.HostBinding,args:["class.is-selected"]}]};var Tt,Ot=function(){};Ot.decorators=[{type:t.Component,args:[{selector:"kirby-divider",template:'<hr [class.no-margin]="!hasMargin" />\n',styles:[":host-context(.kirby-color-brightness-white),:host-context(kirby-card){--kirby-divider-color:var(--kirby-background-color)}:host-context(.kirby-color-brightness-light){--kirby-divider-color:var(--kirby-medium)}hr{margin-top:8px;margin-bottom:8px;border:0;border-top:1px solid var(--kirby-divider-color,var(--kirby-medium))}hr.no-margin{margin-top:0;margin-bottom:0}"]}]}],Ot.propDecorators={hasMargin:[{type:t.Input}]},(Tt=e.ItemSize||(e.ItemSize={})).XS="xs",Tt.SM="sm",Tt.MD="md";var Dt=function(){function t(){this.size=e.ItemSize.MD}return t.prototype.onMouseDown=function(e){e.currentTarget instanceof HTMLElement&&e.currentTarget.closest("kirby-dropdown")&&e.preventDefault()},t}();Dt.decorators=[{type:t.Component,args:[{selector:"kirby-item",template:'<ion-item\n lines="none"\n [attr.disabled]="disabled"\n [attr.button]="selectable ? true : null"\n [attr.tabindex]="selectable ? null : 0"\n detail="false"\n (mousedown)="onMouseDown($event)"\n>\n <div class="outside" slot="start">\n <ng-content select="[slot=\'outside\']"></ng-content>\n </div>\n <ng-content></ng-content>\n <ion-reorder slot="end" *ngIf="reorderable">\n <kirby-icon name="reorder"></kirby-icon>\n </ion-reorder>\n</ion-item>\n',styles:[":host{display:block;position:relative}:host ion-item{font-size:14px;--min-height:56px;--padding-start:16px;--inner-padding-top:8px;--inner-padding-bottom:8px;--inner-padding-end:16px;--background:var(--kirby-item-background,var(--kirby-white));--background-activated:var(--kirby-item-background-activated,var(--kirby-white-shade));--background-activated-opacity:0.99;--background-focused:var(--kirby-item-background-focused,var(--kirby-background-color));--background-focused-opacity:1;--background-hover:var(--kirby-item-background-hover,var(--kirby-background-color));--background-hover-opacity:1}@media screen and (orientation:landscape){:host ion-item{--ion-safe-area-left:0px;--ion-safe-area-right:0px}}:host ion-item ::ng-deep>[slot=end]{margin-inline-start:0;margin-inline-end:0;text-align:right}:host ion-item ::ng-deep>time[slot=end]{margin-inline-start:12px}:host ion-item ::ng-deep>[detail][slot=end],:host ion-item ::ng-deep>data[slot=end],:host ion-item ::ng-deep>ion-reorder[slot=end]{margin-inline-start:16px}:host ion-item ::ng-deep>data,:host ion-item ::ng-deep>h1,:host ion-item ::ng-deep>h2,:host ion-item ::ng-deep>h3,:host ion-item ::ng-deep>h4,:host ion-item ::ng-deep>h5,:host ion-item ::ng-deep>h6,:host ion-item ::ng-deep>p{font-size:16px;line-height:24px;color:var(--kirby-text-color-black);display:block;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400}:host ion-item ::ng-deep>data.kirby-text-bold,:host ion-item ::ng-deep>h1.kirby-text-bold,:host ion-item ::ng-deep>h2.kirby-text-bold,:host ion-item ::ng-deep>h3.kirby-text-bold,:host ion-item ::ng-deep>h4.kirby-text-bold,:host ion-item ::ng-deep>h5.kirby-text-bold,:host ion-item ::ng-deep>h6.kirby-text-bold,:host ion-item ::ng-deep>p.kirby-text-bold{font-weight:700}:host ion-item ::ng-deep>p{font-size:14px}:host ion-item ::ng-deep>[detail],:host ion-item ::ng-deep>[subtitle]{font-size:12px;line-height:16px}:host ion-item ::ng-deep>[subtitle]:not(:last-child){margin-bottom:4px}:host ion-item ::ng-deep>[detail]{color:var(--kirby-text-color-semi-dark)}:host ion-item ::ng-deep>:not([slot]){width:100%}:host ion-item ::ng-deep>input[slot=end],:host ion-item ::ng-deep>kirby-form-field[slot=end] input{margin-inline-start:16px;width:auto;text-align:right}:host.sm ion-item{--min-height:44px}:host.xs ion-item{--min-height:32px;--inner-padding-top:4px;--inner-padding-bottom:4px}:host .outside{left:4px;margin:0;position:absolute;width:16px;z-index:1}:host-context(kirby-dropdown) ion-item,:host-context(kirby-popover) ion-item{--min-height:44px}:host-context(kirby-list-item:first-of-type) ion-item{--padding-top:8px}:host-context(kirby-list-item:first-of-type kirby-card) ion-item{--padding-top:0}:host-context(kirby-list-item:last-of-type) ion-item{--padding-bottom:8px}:host-context(kirby-list-item:last-of-type kirby-card) ion-item{--padding-bottom:0}:host(.selected) ion-item ::ng-deep>data,:host(.selected) ion-item ::ng-deep>h1,:host(.selected) ion-item ::ng-deep>h2,:host(.selected) ion-item ::ng-deep>h3,:host(.selected) ion-item ::ng-deep>h4,:host(.selected) ion-item ::ng-deep>h5,:host(.selected) ion-item ::ng-deep>h6,:host(.selected) ion-item ::ng-deep>p,:host-context(kirby-list .selected) ion-item ::ng-deep>data,:host-context(kirby-list .selected) ion-item ::ng-deep>h1,:host-context(kirby-list .selected) ion-item ::ng-deep>h2,:host-context(kirby-list .selected) ion-item ::ng-deep>h3,:host-context(kirby-list .selected) ion-item ::ng-deep>h4,:host-context(kirby-list .selected) ion-item ::ng-deep>h5,:host-context(kirby-list .selected) ion-item ::ng-deep>h6,:host-context(kirby-list .selected) ion-item ::ng-deep>p{font-weight:700}:host-context(.shape-rounded .is-single) ion-item{--border-radius:16px}:host-context(.has-header .is-single) ion-item::part(native){border-top-left-radius:0;border-top-right-radius:0}:host-context(.has-footer .is-single) ion-item::part(native){border-bottom-left-radius:0;border-bottom-right-radius:0}:host-context(.shape-rounded.has-sections .list-items kirby-list-item:first-of-type) ion-item::part(native){border-top-left-radius:16px;border-top-right-radius:16px}"]}]}],Dt.propDecorators={disabled:[{type:t.Input}],selected:[{type:t.HostBinding,args:["class.selected"]},{type:t.Input}],selectable:[{type:t.Input}],reorderable:[{type:t.Input}],size:[{type:t.HostBinding,args:["class"]},{type:t.Input}]};var Rt=function(){console.warn("*kirbyListItem directive is deprecated - please use *kirbyListItemTemplate directive instead.")};Rt.decorators=[{type:t.Directive,args:[{selector:"[kirbyListItem]"}]}],Rt.ctorParameters=function(){return[]};var _t=function(){console.warn("*kirbyListFlexItem directive is deprecated - please use *kirbyListItemTemplate directive instead.")};_t.decorators=[{type:t.Directive,args:[{selector:"[kirbyListFlexItem]"}]}],_t.ctorParameters=function(){return[]};var Pt=function(){};Pt.decorators=[{type:t.Directive,args:[{selector:"[kirbyListItemTemplate]"}]}];var At=function(){};At.decorators=[{type:t.Directive,args:[{selector:"[kirbyListHeader], [kirbyListHeaderTemplate]"}]}];var Mt=function(){};Mt.decorators=[{type:t.Directive,args:[{selector:"[kirbyListSectionHeader], [kirbyListSectionHeaderTemplate]"}]}];var Bt,zt=function(){};zt.decorators=[{type:t.Directive,args:[{selector:"[kirbyListFooter], [kirbyListFooterTemplate]"}]}],(Bt=e.HorizontalDirection||(e.HorizontalDirection={})).right="right",Bt.left="left";var Lt,Ht,jt=function(){function n(n,i){this.elementRef=n,this.renderer=i,this.preventScrollEventListenerOptions={passive:!1},this.POPOVER_BODY_PADDING=12,this.isShowing=!1,this.popout=e.HorizontalDirection.right,this.willHide=new t.EventEmitter,this.document=n.nativeElement.ownerDocument}return Object.defineProperty(n.prototype,"targetElement",{get:function(){return this.target instanceof t.ElementRef?this.target.nativeElement:this.target},enumerable:!1,configurable:!0}),n.prototype._backdropClick=function(){this.willHide.emit(),this.hide()},n.prototype._onWindowResize=function(){this.isShowing&&(this.willHide.emit(),this.hide())},n.prototype.ngAfterViewInit=function(){this.placePopoverAboveClosestModal(),this.renderer.removeChild(this.elementRef.nativeElement.parentElement,this.elementRef.nativeElement)},n.prototype.ngOnDestroy=function(){this.hide()},n.prototype.placePopoverAboveClosestModal=function(){var e=this.elementRef.nativeElement.closest("ion-modal");e?(this.zIndex=parseInt(e.style.zIndex)+1,this.elementRef.nativeElement.style.zIndex=""+this.zIndex):this.zIndex=parseInt(ee.zLayer("popover"))},n.prototype.preventEvent=function(e){e.preventDefault()},n.prototype.preventScroll=function(){this.isFirstToLockScroll=!this.document.body.classList.contains("backdrop-no-scroll"),this.isFirstToLockScroll&&this.renderer.addClass(this.document.body,"backdrop-no-scroll"),this.document.addEventListener("touchmove",this.preventEvent,this.preventScrollEventListenerOptions)},n.prototype.releaseScroll=function(){this.isFirstToLockScroll&&this.renderer.removeClass(this.document.body,"backdrop-no-scroll"),this.document.removeEventListener("touchmove",this.preventEvent,this.preventScrollEventListenerOptions)},n.prototype.show=function(){this.renderer.addClass(this.elementRef.nativeElement,"is-opening"),this.renderer.appendChild(this.document.body,this.elementRef.nativeElement),this.preventScroll(),this.positionWrapper(),this.renderer.addClass(this.elementRef.nativeElement,"is-open"),this.renderer.removeClass(this.elementRef.nativeElement,"is-opening"),this.isShowing=!0},n.prototype.hide=function(){this.renderer.removeChild(this.document.body,this.elementRef.nativeElement),this.releaseScroll(),this.renderer.removeStyle(this.targetElement,"z-index"),this.renderer.removeStyle(this.targetElement,"pointer-events"),this.isShowing=!1},n.prototype.positionWrapper=function(){var e=this.targetElement.getBoundingClientRect();this.renderer.appendChild(this.document.body,this.elementRef.nativeElement);var t=this.wrapperElement.nativeElement,n=t.getBoundingClientRect(),i=t.ownerDocument.defaultView;this.positionHorizontally(i,t,e,n),this.positionVertically(i,t,e,n)},n.prototype.positionHorizontally=function(t,n,i,o){var r=t.innerWidth,a=o.width,s=r-i.left,l=i.right,c=s>=a+this.POPOVER_BODY_PADDING||s>=l,d=M(this.popout!==e.HorizontalDirection.left&&c?["right","left"]:["left","right"],2),p=d[0],h=d[1],u="left"===p?r-i.right:i.left;this.renderer.removeStyle(n,p),this.renderer.setStyle(n,h,u+"px")},n.prototype.positionVertically=function(e,t,n,i){var o=e.innerHeight,r=i.height,a=o-n.bottom,s=n.top,l=M(a>=r+this.POPOVER_BODY_PADDING||a>=s?["bottom","top"]:["top","bottom"],2),c=l[0],d=l[1],p="bottom"===c?n.bottom:o-n.top;this.renderer.removeStyle(t,c),this.renderer.setStyle(t,d,p+"px"),"top"===c&&(this.renderer.setStyle(this.targetElement,"z-index",""+(this.zIndex+1)),this.renderer.setStyle(this.targetElement,"pointer-events","none"))},n}();jt.decorators=[{type:t.Component,args:[{selector:"kirby-popover",template:'\n <div #wrapper class="wrapper"><ng-content></ng-content></div>\n ',styles:[":host{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:850}:host(.is-opening){display:block;visibility:hidden}:host(.is-open){display:block}.wrapper{position:fixed;margin-top:4px;margin-bottom:4px}"]}]}],jt.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2}]},jt.propDecorators={wrapperElement:[{type:t.ViewChild,args:["wrapper",{static:!0,read:t.ElementRef}]}],popout:[{type:t.Input}],target:[{type:t.Input}],willHide:[{type:t.Output}],_backdropClick:[{type:t.HostListener,args:["click"]}],_onWindowResize:[{type:t.HostListener,args:["window:resize"]}]},function(e){e[e.closed=0]="closed",e[e.opening=1]="opening",e[e.open=2]="open"}(Lt||(Lt={})),function(e){e[e.up=0]="up",e[e.down=1]="down"}(Ht||(Ht={}));var Ft=function(){function e(){}return e.prototype.handle=function(e,t,n){var i=-1;switch(e.key){case"ArrowUp":case"ArrowLeft":i=n-1;break;case"ArrowDown":case"ArrowRight":void 0===n?i=0:n<t.length-1&&(i=n+1);break;case"Home":i=0;break;case"End":i=t.length-1}return i},e}();Ft.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new Ft},token:Ft,providedIn:"root"}),Ft.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}];var Nt=function(){function n(n,i,o,r){this.renderer=n,this.elementRef=i,this.changeDetectorRef=o,this.keyboardHandlerService=r,this.state=Lt.closed,this.hasConfiguredSlottedItems=!1,this.horizontalDirection=e.HorizontalDirection.right,this.verticalDirection=Ht.down,this._items=[],this._selectedIndex=-1,this.itemTextProperty="text",this.placeholder="Please select:",this.attentionLevel="3",this.attentionLevelOpen="2",this.disabled=!1,this.size="md",this.tabindex=0,this.usePopover=!1,this.change=new t.EventEmitter,this._value=null,this._role="listbox",this.itemClickUnlisten=[],this._onChange=function(){},this._onTouched=function(){}}return Object.defineProperty(n.prototype,"items",{get:function(){return this._items},set:function(e){this._items=e,this._value=this.items[this.selectedIndex]||null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(e){this._selectedIndex!=e&&(this._selectedIndex=e,this._value=this.items[this.selectedIndex]||null)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"popout",{get:function(){return this.horizontalDirection},set:function(t){this.horizontalDirection=t||e.HorizontalDirection.right},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_isDisabled",{get:function(){return this.disabled?"disabled":null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_tabindex",{get:function(){return this.disabled?-1:this.tabindex},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_noBlurOnScroll",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selectedText",{get:function(){return this.getTextFromItem(this.value)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_isBlockLevel",{get:function(){return"block"===this.expand},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_isOpening",{get:function(){return this.state===Lt.opening},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isOpen",{get:function(){return this.state===Lt.open},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_popoutLeft",{get:function(){return this.horizontalDirection===e.HorizontalDirection.left},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_popoutUp",{get:function(){return this.verticalDirection===Ht.up},enumerable:!1,configurable:!0}),n.prototype.onToggle=function(e){e.stopPropagation(),this.isOpen||this.elementRef.nativeElement.focus(),this.toggle()},n.prototype.toggle=function(){this.disabled||(this.isOpen?this.close():this.open())},n.prototype.onButtonMouseEvent=function(e){e.preventDefault()},n.prototype.ngAfterContentChecked=function(){var e=this;!this.hasConfiguredSlottedItems&&this.kirbyItemsSlotted.length&&(this.kirbyItemsSlotted.forEach((function(t,n){e.renderer.setAttribute(t.nativeElement,"role","option");var i=e.renderer.listen(t.nativeElement,"click",(function(){e.onItemSelect(n)}));e.itemClickUnlisten.push(i)})),this.hasConfiguredSlottedItems=!0)},n.prototype.setPopoverCardStyle=function(e,n){this.usePopover&&this.renderer.setStyle(this.cardElement.nativeElement,e,n,t.RendererStyleFlags2.DashCase)},n.prototype.ngAfterViewInit=function(){if(this.usePopover&&"block"===this.expand){var e=this.elementRef.nativeElement.getBoundingClientRect().width;this.setPopoverCardStyle("--kirby-card-width",e+"px"),this.setPopoverCardStyle("max-width","initial"),this.setPopoverCardStyle("min-width","initial")}this.initializeAlignment()},n.prototype.initializeAlignment=function(){var e=this;if(!this.usePopover&&!this.intersectionObserverRef){this.intersectionObserverRef=new IntersectionObserver((function(t){if(e.state===Lt.opening){clearTimeout(e.showDropdownTimeoutId);var n=t[0];n.boundingClientRect.width>0&&n.intersectionRatio<1&&(e.setHorizontalDirection(n),e.setVerticalDirection(n)),e.showDropdown(),e.changeDetectorRef.detectChanges()}}),{rootMargin:"0px"}),this.intersectionObserverRef.observe(this.cardElement.nativeElement)}},n.prototype.setHorizontalDirection=function(t){this.horizontalDirection===e.HorizontalDirection.right?t.boundingClientRect.right>t.rootBounds.right&&(this.horizontalDirection=e.HorizontalDirection.left):t.boundingClientRect.left<t.rootBounds.left&&(this.horizontalDirection=e.HorizontalDirection.right)},n.prototype.setVerticalDirection=function(e){if(e.boundingClientRect.top<0&&(this.verticalDirection=Ht.down),e.boundingClientRect.bottom>e.rootBounds.bottom){this.elementRef.nativeElement.getBoundingClientRect().top>e.target.clientHeight+5&&(this.verticalDirection=Ht.up)}},n.prototype.open=function(){var e=this;this.disabled||this.isOpen||(this.state=Lt.opening,this.showDropdownTimeoutId=setTimeout((function(){return e.showDropdown()}),n.OPEN_DELAY_IN_MS))},n.prototype.showDropdown=function(){var e;this.state===Lt.opening&&(this.state=Lt.open,null===(e=this.popover)||void 0===e||e.show(),this.scrollItemIntoView(this.selectedIndex),this.changeDetectorRef.markForCheck())},n.prototype.close=function(){var e;this.disabled||this.isOpen&&(this.state=Lt.closed,this.verticalDirection=Ht.down,null===(e=this.popover)||void 0===e||e.hide())},n.prototype.onItemSelect=function(e){this.selectItem(e),this.close()},n.prototype.writeValue=function(e){this._selectItemByValue(e)},n.prototype.registerOnChange=function(e){this._onChange=e},n.prototype.registerOnTouched=function(e){this._onTouched=e},n.prototype.setDisabledState=function(e){this.disabled=e},n.prototype.selectItem=function(e){e!=this.selectedIndex&&(this.selectedIndex=e,this.change.emit(this.value),this._onChange(this.value),this.scrollItemIntoView(e))},n.prototype._selectItemByValue=function(e){this.selectedIndex=this.items.indexOf(e)},n.prototype.getTextFromItem=function(e){return e?"string"==typeof e?e:e[this.itemTextProperty]:null},n.prototype.scrollItemIntoView=function(e){var t=this.kirbyItemsSlotted&&this.kirbyItemsSlotted.length?this.kirbyItemsSlotted:this.kirbyItemsDefault;if(t&&t.length){var n=t.toArray()[e];if(n&&n.nativeElement){var i=n.nativeElement,o=this.cardElement.nativeElement,r=i.offsetTop,a=i.offsetTop+i.offsetHeight,s=o.scrollTop,l=o.clientHeight+o.scrollTop;r<s?o.scrollTop=r:a>l&&(o.scrollTop=a-o.clientHeight)}}},n.prototype._onTab=function(e){this.isOpen&&(e.preventDefault(),this.close())},n.prototype._onMouseDown=function(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())},n.prototype._onFocus=function(){this.disabled&&this.elementRef.nativeElement.blur()},n.prototype._onPopoverWillHide=function(){this.state=Lt.closed,this.elementRef.nativeElement.focus()},n.prototype._onBlur=function(e){this.disabled||(this.isOpen&&(this.cardElement.nativeElement.contains(null==e?void 0:e.relatedTarget)||this.close()),this._onTouched())},n.prototype._onSpace=function(e){e.preventDefault(),e.stopPropagation(),this.isOpen||this.open()},n.prototype._onEnter=function(e){e.preventDefault(),e.stopPropagation(),this.toggle()},n.prototype._onArrowKeys=function(e){if(!this.disabled&&(!this.isOpen||"ArrowLeft"!==e.key&&"ArrowRight"!==e.key)){var t=this.keyboardHandlerService.handle(e,this.items,this.selectedIndex);return t>-1&&this.selectItem(t),!1}},n.prototype._onHomeEndKeys=function(e){if(!this.disabled){var t=this.keyboardHandlerService.handle(e,this.items,this.selectedIndex);return t>-1&&this.selectItem(t),!1}},n.prototype.ngOnDestroy=function(){for(var e;void 0!==(e=this.itemClickUnlisten.pop());)e();this.intersectionObserverRef&&this.intersectionObserverRef.disconnect()},n}();Nt.OPEN_DELAY_IN_MS=100,Nt.decorators=[{type:t.Component,args:[{selector:"kirby-dropdown",template:'<button\n kirby-button\n [size]="size"\n [attentionLevel]="isOpen ? attentionLevelOpen : attentionLevel"\n tabindex="-1"\n (click)="onToggle($event)"\n (mousedown)="onButtonMouseEvent($event)"\n [disabled]="disabled"\n>\n <span class="text">{{ selectedText || placeholder }}</span>\n <kirby-icon [name]="isOpen ? \'arrow-up\' : \'arrow-down\'"></kirby-icon>\n</button>\n\n<ng-container *ngTemplateOutlet="usePopover ? popoverTemplate : itemWrapperTemplate"></ng-container>\n\n<ng-template #popoverTemplate>\n <kirby-popover [target]="buttonElement" [popout]="popout" (willHide)="_onPopoverWillHide()">\n <ng-container *ngTemplateOutlet="itemWrapperTemplate"></ng-container>\n </kirby-popover>\n</ng-template>\n\n<ng-template #itemWrapperTemplate>\n <kirby-card>\n <ng-container *ngFor="let item of items; let i = index">\n <ng-container\n *ngTemplateOutlet="\n itemTemplate || defaultItemTemplate;\n context: { $implicit: item, selected: i === selectedIndex, index: i }\n "\n ></ng-container>\n </ng-container>\n </kirby-card>\n</ng-template>\n\n<ng-template #defaultItemTemplate let-item let-selected="selected" let-index="index">\n <kirby-item [selectable]="true" [selected]="selected" (click)="onItemSelect(index)" role="option">\n \x3c!-- Tabindex fixes issue with popover dropdown not working in safari --\x3e\n <h3 tabindex="0">{{ getTextFromItem(item) }}</h3>\n <kirby-icon *ngIf="selected" name="checkmark-selected" slot="end"></kirby-icon>\n </kirby-item>\n</ng-template>\n',providers:[{provide:m.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return Nt})),multi:!0}],styles:[":host{display:inline-block;position:relative;max-width:calc(100vw - 32px);outline:none}:host.expand{display:block}:host.expand kirby-card{width:100%;min-width:0;max-width:none}@media (hover:hover){:host:focus>button,:host:focus>button.attention-level3{border-color:#4d90fe}}:host.error>button,:host.ng-touched.ng-invalid>button{border-color:var(--kirby-danger)}:host>button{position:relative;margin:0;outline:none;width:100%;transition:box-shadow .2s,border-color .2s}:host>button.attention-level2{border:1px solid transparent}:host>button .text{overflow:hidden;text-overflow:ellipsis}kirby-popover{--max-height:352px}kirby-card{max-height:352px;margin-top:4px;margin-bottom:4px;overflow-y:auto;box-shadow:0 20px 30px -15px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);min-width:288px;max-width:calc(100vw - 32px)}@media (min-width:321px){kirby-card{min-width:343px}}:host(:not(.with-popover)) kirby-card{display:none;opacity:0;position:absolute;z-index:800}:host(:not(.with-popover)).is-opening kirby-card{display:block}:host(:not(.with-popover)).is-open kirby-card{display:block;opacity:1}:host(:not(.with-popover)).popout-left kirby-card{right:0}:host(:not(.with-popover)).popout-up kirby-card{top:0;margin-top:-4px;transform:translateY(-100%)}:host(:not(.with-popover)).popout-up.is-open>button{z-index:801}:host(.is-open)>button{box-shadow:0 20px 30px -15px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08)}:host-context(kirby-calendar)>button{border-color:transparent;font-weight:700;font-size:medium}:host-context(kirby-calendar).is-open>button{box-shadow:none}"]}]}],Nt.ctorParameters=function(){return[{type:t.Renderer2},{type:t.ElementRef},{type:t.ChangeDetectorRef},{type:Ft}]},Nt.propDecorators={items:[{type:t.Input}],selectedIndex:[{type:t.Input}],itemTextProperty:[{type:t.Input}],placeholder:[{type:t.Input}],popout:[{type:t.Input}],attentionLevel:[{type:t.Input}],expand:[{type:t.Input}],disabled:[{type:t.Input}],_isDisabled:[{type:t.HostBinding,args:["attr.disabled"]}],hasError:[{type:t.HostBinding,args:["class.error"]},{type:t.Input}],size:[{type:t.Input}],tabindex:[{type:t.Input}],usePopover:[{type:t.HostBinding,args:["class.with-popover"]},{type:t.Input}],_tabindex:[{type:t.HostBinding,args:["attr.tabindex"]}],_noBlurOnScroll:[{type:t.HostBinding,args:["attr.no-blur"]}],change:[{type:t.Output}],_isBlockLevel:[{type:t.HostBinding,args:["class.expand"]}],_role:[{type:t.HostBinding,args:["attr.role"]}],_isOpening:[{type:t.HostBinding,args:["class.is-opening"]}],isOpen:[{type:t.HostBinding,args:["class.is-open"]}],_popoutLeft:[{type:t.HostBinding,args:["class.popout-left"]}],_popoutUp:[{type:t.HostBinding,args:["class.popout-up"]}],itemTemplate:[{type:t.ContentChild,args:[Pt,{static:!0,read:t.TemplateRef}]}],slottedItems:[{type:t.ContentChildren,args:[Pt,{read:t.ElementRef}]}],cardElement:[{type:t.ViewChild,args:[Ie,{read:t.ElementRef}]}],popover:[{type:t.ViewChild,args:[jt]}],buttonElement:[{type:t.ViewChild,args:[ce,{static:!0,read:t.ElementRef}]}],kirbyItemsDefault:[{type:t.ViewChildren,args:[Dt,{read:t.ElementRef}]}],kirbyItemsSlotted:[{type:t.ContentChildren,args:[Dt,{read:t.ElementRef}]}],_onTab:[{type:t.HostListener,args:["keydown.tab",["$event"]]}],_onMouseDown:[{type:t.HostListener,args:["mousedown",["$event"]]}],_onFocus:[{type:t.HostListener,args:["focus"]}],_onBlur:[{type:t.HostListener,args:["keydown.enter"]},{type:t.HostListener,args:["keydown.escape"]},{type:t.HostListener,args:["blur",["$event"]]}],_onSpace:[{type:t.HostListener,args:["keydown.space",["$event"]]}],_onEnter:[{type:t.HostListener,args:["keydown.enter",["$event"]]}],_onArrowKeys:[{type:t.HostListener,args:["keydown.arrowup",["$event"]]},{type:t.HostListener,args:["keydown.arrowdown",["$event"]]},{type:t.HostListener,args:["keydown.arrowleft",["$event"]]},{type:t.HostListener,args:["keydown.arrowright",["$event"]]}],_onHomeEndKeys:[{type:t.HostListener,args:["keydown.home",["$event"]]},{type:t.HostListener,args:["keydown.end",["$event"]]}]};var Wt=function(){function e(){}return e.prototype.ngAfterContentInit=function(){var e=this;this.enforceAttentionLevelRules(),this.slottedButtons.changes.subscribe((function(){setTimeout((function(){return e.enforceAttentionLevelRules()}))}))},e.prototype.enforceAttentionLevelRules=function(){this.slottedButtons.forEach((function(e,t){0===t&&e.isAttentionLevel1||e.isAttentionLevel3||(e.attentionLevel="3")}))},e}();Wt.decorators=[{type:t.Component,args:[{selector:"kirby-empty-state",template:'<article>\n <div *ngIf="iconName || customIconName" class="icon-outline">\n <kirby-icon [name]="iconName" [customName]="customIconName" size="lg"></kirby-icon>\n </div>\n <h3 *ngIf="title" class="title">{{ title }}</h3>\n <p *ngIf="subtitle" class="subtitle">{{ subtitle }}</p>\n <div class="content">\n <ng-content></ng-content>\n </div>\n</article>\n',styles:["article{max-width:330px;margin:auto;text-align:center}.icon-outline,article{display:flex;flex-direction:column;justify-content:center}.icon-outline{width:96px;height:96px;margin-left:auto;margin-right:auto;margin-bottom:24px;border:4px solid var(--kirby-medium);border-radius:50%}kirby-icon{color:var(--kirby-medium)}h3.title{margin-bottom:8px}p.subtitle{margin-bottom:24px;white-space:pre-wrap}:host(.primary) .icon-outline{border-color:var(--kirby-primary)}:host(.primary) kirby-icon{color:var(--kirby-primary)}:host(.secondary) .icon-outline{border-color:var(--kirby-secondary)}:host(.secondary) kirby-icon{color:var(--kirby-secondary)}:host(.tertiary) .icon-outline{border-color:var(--kirby-tertiary)}:host(.tertiary) kirby-icon{color:var(--kirby-tertiary)}:host(.success) .icon-outline{border-color:var(--kirby-success)}:host(.success) kirby-icon{color:var(--kirby-success)}:host(.warning) .icon-outline{border-color:var(--kirby-warning)}:host(.warning) kirby-icon{color:var(--kirby-warning)}:host(.danger) .icon-outline{border-color:var(--kirby-danger)}:host(.danger) kirby-icon{color:var(--kirby-danger)}:host(.light) .icon-outline{border-color:var(--kirby-light)}:host(.light) kirby-icon{color:var(--kirby-light)}:host(.medium) .icon-outline{border-color:var(--kirby-medium)}:host(.medium) kirby-icon{color:var(--kirby-medium)}:host(.dark) .icon-outline{border-color:var(--kirby-dark)}:host(.dark) kirby-icon{color:var(--kirby-dark)}"]}]}],Wt.propDecorators={iconName:[{type:t.Input}],customIconName:[{type:t.Input}],title:[{type:t.Input}],subtitle:[{type:t.Input}],slottedButtons:[{type:t.ContentChildren,args:[ce]}]};var Vt=function(){function e(){this._labelId=It.scopedTo("kirby-radio-label").next()}return Object.defineProperty(e.prototype,"_isDisabled",{get:function(){return this.disabled?"disabled":null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buttonTabIndex",{get:function(){return this.ionRadioElement?this.ionRadioElement.nativeElement.tabIndex:-1},enumerable:!1,configurable:!0}),e.prototype.focus=function(){this.ionRadioElement&&this.ionRadioElement.nativeElement.focus()},e}();Vt.decorators=[{type:t.Component,args:[{selector:"kirby-radio",template:'<div class="wrapper">\n <ion-radio\n [value]="value"\n [disabled]="disabled"\n mode="md"\n [attr.aria-labelledby]="text ? _labelId : null"\n ></ion-radio>\n <span [id]="_labelId" *ngIf="text">{{ text }}</span>\n</div>\n',styles:[":host{display:inline-block}:host.has-label{display:block;line-height:24px;white-space:pre-line}:host.has-label div.wrapper{position:relative;display:inline-flex;align-items:flex-start;vertical-align:top;padding:16px 12px 16px 0}:host.has-label.xs .wrapper,:host.has-label :host-context(.radio-xs) .wrapper{padding-top:4px;padding-bottom:4px}:host.has-label.sm .wrapper,:host.has-label :host-context(.radio-sm) .wrapper{padding-top:10px;padding-bottom:10px}:host.has-label.md .wrapper,:host.has-label :host-context(.radio-md) .wrapper{padding-top:16px;padding-bottom:16px}:host.has-label ion-radio{position:static;margin-left:16px;margin-right:12px}:host[disabled]{color:var(--kirby-text-color-semi-dark)}:host[disabled] ion-radio{opacity:1;--color:var(--kirby-medium);--color-checked:var(--kirby-medium)}:host[disabled] ion-radio::part(container){background-color:var(--kirby-semi-light)}ion-radio{min-height:24px;min-width:24px;padding:2px;box-sizing:border-box;--border-width:1px;--color:var(--kirby-semi-dark);--color-checked:var(--kirby-success)}ion-radio::part(container){background-color:var(--kirby-white)}ion-radio::part(mark){width:60%;height:60%}ion-radio:active{--color:transparent}ion-radio:active::part(container){background-color:var(--kirby-white-shade)}ion-radio :host-context(kirby-radio-group.error) ion-radio,ion-radio :host-context(kirby-radio-group.error) ion-radio:active,ion-radio :host-context(kirby-radio-group.ng-touched.ng-invalid) ion-radio,ion-radio :host-context(kirby-radio-group.ng-touched.ng-invalid) ion-radio:active{--color:var(--kirby-danger)}@media (hover:hover){ion-radio:focus::part(container){box-shadow:0 0 0 1px var(--kirby-background-color),0 0 0 3px #4d90fe}}ion-radio.radio-checked{--border-width:0px}ion-radio.radio-checked:not(:focus):not(.radio-disabled)::part(container){box-shadow:0 5px 10px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08)}:host-context(kirby-item){z-index:1}:host-context(kirby-item) ion-radio{margin:0}:host-context(kirby-item)[slot=start]{margin-inline-end:12px}"]}]}],Vt.propDecorators={value:[{type:t.Input}],text:[{type:t.HostBinding,args:["class.has-label"]},{type:t.Input}],size:[{type:t.HostBinding,args:["class"]},{type:t.Input}],disabled:[{type:t.Input}],_isDisabled:[{type:t.HostBinding,args:["attr.disabled"]}],ionRadioElement:[{type:t.ViewChild,args:[n.IonRadio,{read:t.ElementRef,static:!0}]}]};var $t=function(){function e(e){this.changeDetectionRef=e,this.hasError=!1,this.itemTextProperty="text",this.itemDisabledProperty="disabled",this.valueChange=new t.EventEmitter,this._disabled=!1,this._items=[],this._onChangeCallback=function(){},this._onTouched=function(){},this._selectedIndex=-1,this._value=null}return Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=e,this.setProjectedRadiosDisabledState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this._items||[]},set:function(e){(e&&e.length||this.items.length)&&(this._items=e,this.refreshSelectionState())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(e){"string"==typeof e&&(e=parseInt(e)),null!=e&&NaN!==e||(e=-1),e!==this.selectedIndex&&(this._selectedIndex=e,this._value=this.getValueFromSelectedIndex()||null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.setSelectedItem(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasItemsFromContentProjection",{get:function(){return!this.items.length&&!this._customItemTemplate&&this.projectedRadioButtons&&this.projectedRadioButtons.length>0},enumerable:!1,configurable:!0}),e.prototype.focus=function(){var e=function(e){return e&&e.find((function(e){return!isNaN(e.buttonTabIndex)&&-1!==e.buttonTabIndex}))},t=e(this.radioButtons)||e(this.projectedRadioButtons);t&&t.focus()},e.prototype.ngAfterContentInit=function(){this.initSelectionStateFromProjectedContent(),this.listenForProjectedRadiosChange()},e.prototype.registerOnChange=function(e){this._onChangeCallback=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.changeDetectionRef.markForCheck()},e.prototype.writeValue=function(e){this.value=e,this.changeDetectionRef.markForCheck()},e.prototype._getTextFromItem=function(e){return e?"string"==typeof e?e:e[this.itemTextProperty]:null},e.prototype._getDisabledStateFromItem=function(e){if(e)return"string"==typeof e?void 0:e[this.itemDisabledProperty]},Object.defineProperty(e.prototype,"_hasItems",{get:function(){return this.items.length>0||this.hasItemsFromContentProjection},enumerable:!1,configurable:!0}),e.prototype._onChange=function(e){e!==this._value&&(this.setSelectedItem(e),this.valueChange.emit(e),this._onChangeCallback(e))},e.prototype._onRadioBlur=function(){this._onTouched()},e.prototype.getIndexOfSelectedValue=function(){return this.value?this.hasItemsFromContentProjection?this.getIndexOfProjectedRadio(this.value):this.items.indexOf(this.value):-1},e.prototype.getIndexOfProjectedRadio=function(e){var t=-1;return this.projectedRadioButtons&&this.projectedRadioButtons.find((function(n,i){var o=n.value===e;return o&&(t=i),o})),t},e.prototype.getValueFromSelectedIndex=function(){if(-1!==this.selectedIndex)return this.hasItemsFromContentProjection?this.getValueFromProjectedRadios(this.selectedIndex):this.items[this.selectedIndex]},e.prototype.getValueFromProjectedRadios=function(e){var t=this.projectedRadioButtons&&this.projectedRadioButtons.find((function(t,n){return n===e}));return t&&t.value},e.prototype.initSelectionStateFromProjectedContent=function(){this.hasItemsFromContentProjection&&this.refreshSelectionState()},e.prototype.listenForProjectedRadiosChange=function(){var e=this;this.projectedRadioButtons.changes.subscribe((function(){e.refreshStateFromProjectedContent(),e.disabled&&setTimeout((function(){return e.setProjectedRadiosDisabledState(e.disabled)}))}))},e.prototype.refreshSelectionState=function(){this.value&&(this._selectedIndex=this.getIndexOfSelectedValue()),this._value=this.getValueFromSelectedIndex()||null},e.prototype.refreshStateFromProjectedContent=function(){this._customItemTemplate||(this.changeDetectionRef.markForCheck(),this.refreshSelectionState())},e.prototype.setSelectedItem=function(e){e!==this._value&&(this._value=e,this._selectedIndex=this.getIndexOfSelectedValue())},e.prototype.setProjectedRadiosDisabledState=function(e){var t=this;this.projectedRadioButtons&&this.projectedRadioButtons.length&&this.projectedRadioButtons.forEach((function(n,i){n.disabled=e||t._getDisabledStateFromItem(t.items[i])}))},e}();$t.decorators=[{type:t.Component,args:[{selector:"kirby-radio-group",template:'<ion-radio-group *ngIf="_hasItems" [value]="value" (ionChange)="_onChange($event.detail.value)">\n <ng-container *ngIf="!items || !items.length; else itemsTemplate">\n <ng-content></ng-content>\n </ng-container>\n</ion-radio-group>\n\n<ng-template #itemsTemplate>\n <ng-container *ngFor="let item of items; let i = index">\n <ng-container\n *ngTemplateOutlet="\n _customItemTemplate || defaultItemTemplate;\n context: { $implicit: item, selected: i === selectedIndex, index: i }\n "\n ></ng-container>\n </ng-container>\n</ng-template>\n\n<ng-template #defaultItemTemplate let-item>\n <kirby-radio\n [value]="item"\n [disabled]="disabled || _getDisabledStateFromItem(item)"\n [text]="_getTextFromItem(item)"\n ></kirby-radio>\n</ng-template>\n',providers:[{provide:m.NG_VALUE_ACCESSOR,useExisting:$t,multi:!0}],changeDetection:t.ChangeDetectionStrategy.OnPush,styles:["ion-radio-group { display: inherit; flex-wrap: inherit}"]}]}],$t.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},$t.propDecorators={disabled:[{type:t.Input}],hasError:[{type:t.HostBinding,args:["class.error"]},{type:t.Input}],items:[{type:t.Input}],itemTextProperty:[{type:t.Input}],itemDisabledProperty:[{type:t.Input}],selectedIndex:[{type:t.Input}],value:[{type:t.Input}],valueChange:[{type:t.Output}],_customItemTemplate:[{type:t.ContentChild,args:[Pt,{read:t.TemplateRef}]}],radioButtons:[{type:t.ViewChildren,args:[Vt]}],projectedRadioButtons:[{type:t.ContentChildren,args:[Vt,{descendants:!0}]}],_onRadioBlur:[{type:t.HostListener,args:["ionBlur"]}]};var Gt,Ut=function(){function e(){}return Object.defineProperty(e.prototype,"text",{get:function(){if(void 0!==this.length){var e=this.maxlength?"/"+this.maxlength:"";return""+this.length+e}},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.listenTo&&(this.length=this.listenTo.value?this.listenTo.value.length:0,this.maxlength=this.listenTo.maxlength,this._inputChangeSubscription=this.listenTo.kirbyChange.subscribe((function(t){e.length=t.length})))},e.prototype.ngOnDestroy=function(){this._inputChangeSubscription&&this._inputChangeSubscription.unsubscribe()},e}();Ut.decorators=[{type:t.Component,args:[{selector:"kirby-input-counter",template:'<kirby-form-field-message [text]="text"></kirby-form-field-message>\n',styles:[""]}]}],Ut.propDecorators={listenTo:[{type:t.Input}]},(Gt=e.InputSize||(e.InputSize={})).medium="md",Gt.large="lg";var Yt=function(){function n(){this.kirbyChange=new t.EventEmitter,this.size=e.InputSize.large,this.autocomplete="off",this.autocorrect="off"}return Object.defineProperty(n.prototype,"type",{set:function(e){var t=n.typeToInputmodeMap[e];t&&!this.inputmode&&(this.inputmode=t)},enumerable:!1,configurable:!0}),n.prototype._onKeyUp=function(e){this.kirbyChange.emit(e)},n.prototype._onCutPaste=function(e){var t=this;setTimeout((function(){return t.kirbyChange.emit(e.value)}))},n.prototype.ngOnChanges=function(e){e.value&&this.kirbyChange.emit(e.value.currentValue)},n}();Yt.typeToInputmodeMap={number:"decimal",search:"search"},Yt.decorators=[{type:t.Component,args:[{changeDetection:t.ChangeDetectionStrategy.OnPush,selector:"input[kirby-input]",template:"",styles:[":host(.error){border:1px solid var(--kirby-danger)}:host(.cloned-input){pointer-events:none;position:absolute;top:0;left:0}:host-context(label).cloned-input{top:24px}:host{background-color:var(--kirby-white);color:var(--kirby-white-contrast);border:none;box-sizing:border-box;display:block;font-family:var(--kirby-font-family);font-size:16px;line-height:24px;outline:none;margin:0;-webkit-appearance:none;border-radius:16px;box-shadow:0 5px 10px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);padding:16px;width:100%}:host.borderless,:host:host-context(kirby-item){border-radius:0;box-shadow:none;padding:0;width:auto}:host:disabled{background-color:var(--kirby-light-tint);color:var(--kirby-text-color-semi-dark);box-shadow:none}:host::placeholder{color:var(--kirby-text-color-semi-dark)}:host::-ms-input-placeholder,:host::-webkit-input-placeholder{color:var(--kirby-text-color-semi-dark)}:host{height:56px}:host[type=number]{-webkit-appearance:textfield;appearance:textfield;-moz-appearance:textfield}:host::-webkit-inner-spin-button,:host::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}:host(.md){height:40px;border-radius:24px}:host-context(kirby-item kirby-form-field[slot=end])[type=number]{font-weight:700}.date-mask-wrapper{position:relative}:host-context(.date-mask-wrapper){color:var(--kirby-text-color-semi-dark)}.date-mask{font-family:var(--kirby-font-family);font-size:16px;line-height:24px;color:var(--kirby-white-contrast);position:absolute;top:0;left:0;margin:16px}"]}]}],Yt.propDecorators={type:[{type:t.Input}],size:[{type:t.HostBinding,args:["class"]},{type:t.Input}],borderless:[{type:t.HostBinding,args:["class.borderless"]},{type:t.Input}],hasError:[{type:t.HostBinding,args:["class.error"]},{type:t.Input}],autocomplete:[{type:t.HostBinding,args:["attr.autocomplete"]},{type:t.Input}],autocorrect:[{type:t.HostBinding,args:["attr.autocorrect"]},{type:t.Input}],value:[{type:t.HostBinding,args:["attr.value"]},{type:t.Input}],maxlength:[{type:t.HostBinding,args:["attr.maxlength"]},{type:t.Input}],inputmode:[{type:t.HostBinding,args:["attr.inputmode"]},{type:t.Input}],_onKeyUp:[{type:t.HostListener,args:["keyup",["$event.target.value"]]}],_onCutPaste:[{type:t.HostListener,args:["paste",["$event.target"]]},{type:t.HostListener,args:["cut",["$event.target"]]}]};var Kt=function(){function e(){this.kirbyChange=new t.EventEmitter,this.autocomplete="off",this.autocorrect="off"}return e.prototype._onKeyUp=function(e){this.kirbyChange.emit(e)},e.prototype._onCutPaste=function(e){var t=this;setTimeout((function(){return t.kirbyChange.emit(e.value)}))},e.prototype.ngOnChanges=function(e){e.value&&this.kirbyChange.emit(e.value.currentValue)},e}();Kt.decorators=[{type:t.Component,args:[{changeDetection:t.ChangeDetectionStrategy.OnPush,selector:"textarea[kirby-textarea]",template:'<ng-content *ngIf="!value"></ng-content>\n<ng-container *ngIf="value">{{ value }}</ng-container>\n',styles:[":host(.error){border:1px solid var(--kirby-danger)}:host(.cloned-input){pointer-events:none;position:absolute;top:0;left:0}:host-context(label).cloned-input{top:24px}:host{background-color:var(--kirby-white);color:var(--kirby-white-contrast);border:none;box-sizing:border-box;display:block;font-size:16px;line-height:24px;outline:none;margin:0;-webkit-appearance:none;border-radius:16px;box-shadow:0 5px 10px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);padding:16px;width:100%}:host.borderless,:host:host-context(kirby-item){border-radius:0;box-shadow:none;padding:0;width:auto}:host:disabled{background-color:var(--kirby-light-tint);color:var(--kirby-text-color-semi-dark);box-shadow:none}:host::placeholder{color:var(--kirby-text-color-semi-dark)}:host::-ms-input-placeholder,:host::-webkit-input-placeholder{color:var(--kirby-text-color-semi-dark)}:host{font-family:var(--kirby-font-family);resize:none}@media (min-width:721px){:host{resize:vertical}}"]}]}],Kt.propDecorators={value:[{type:t.Input}],borderless:[{type:t.HostBinding,args:["class.borderless"]},{type:t.Input}],hasError:[{type:t.HostBinding,args:["class.error"]},{type:t.Input}],autocomplete:[{type:t.HostBinding,args:["attr.autocomplete"]},{type:t.Input}],autocorrect:[{type:t.HostBinding,args:["attr.autocorrect"]},{type:t.Input}],maxlength:[{type:t.HostBinding,args:["attr.maxlength"]},{type:t.Input}],_onKeyUp:[{type:t.HostListener,args:["keyup",["$event.target.value"]]}],_onCutPaste:[{type:t.HostListener,args:["paste",["$event.target"]]},{type:t.HostListener,args:["cut",["$event.target"]]}]};var qt=function(){function e(e,t,n,i){this.platform=t,this.renderer=n,this.windowRef=i,this.isRegistered=!1,this._labelId=It.scopedTo("kirby-form-field-label").next(),this.element=e.nativeElement}return Object.defineProperty(e.prototype,"_wrapContentInLabel",{get:function(){return!(!this.label||!this.input&&!this.textarea)},enumerable:!1,configurable:!0}),e.prototype.dispatchLoadEvent=function(){this.windowRef.nativeWindow.document.dispatchEvent(new CustomEvent("ionInputDidLoad",{detail:this.element}))},e.prototype._onRegisterFormField=function(){this.dispatchLoadEvent()},e.prototype.onLabelClick=function(){this.radioGroupComponent&&this.radioGroupComponent.focus()},e.prototype.focus=function(){if(this.inputElement)if(this.isTouch){var e=new TouchEvent("touchstart"),t=new TouchEvent("touchend");this.inputElement.dispatchEvent(e),this.inputElement.dispatchEvent(t)}else this.inputElement.focus()},e.prototype.ngOnInit=function(){this.isTouch=this.platform.isTouch()},e.prototype.ngAfterContentInit=function(){this.label&&this.radioGroupElement&&this.renderer.setAttribute(this.radioGroupElement.nativeElement,"aria-labelledby",this._labelId)},e.prototype.ngAfterContentChecked=function(){this.inputElement||(this.inputElement=this.element.querySelector("input, textarea")),!this.isRegistered&&this.element.isConnected&&this.inputElement&&!this.inputElement.readOnly&&(this.isRegistered=!0,this.dispatchLoadEvent())},e.prototype.ngOnDestroy=function(){this.windowRef.nativeWindow.document.dispatchEvent(new CustomEvent("ionInputDidUnload",{detail:this.element}))},e}();qt.decorators=[{type:t.Component,args:[{changeDetection:t.ChangeDetectionStrategy.OnPush,selector:"kirby-form-field",template:'<label *ngIf="_wrapContentInLabel">\n <ng-container *ngTemplateOutlet="labelTextTemplate"></ng-container>\n <ng-container *ngTemplateOutlet="slottedInputTemplate"></ng-container>\n</label>\n\n<ng-container *ngIf="!_wrapContentInLabel">\n <ng-container *ngTemplateOutlet="labelTemplate"></ng-container>\n <ng-container *ngTemplateOutlet="slottedInputTemplate"></ng-container>\n</ng-container>\n\n<div *ngIf="message || counter" class="texts">\n <kirby-form-field-message\n *ngIf="message"\n class="message"\n [text]="message"\n ></kirby-form-field-message>\n\n <div *ngIf="counter" class="counter">\n <ng-content select="kirby-input-counter"></ng-content>\n </div>\n</div>\n\n<ng-template #slottedInputTemplate>\n <ng-content select="input[kirby-input]"></ng-content>\n <ng-content select="textarea[kirby-textarea]"></ng-content>\n <ng-content select="kirby-radio-group"></ng-content>\n</ng-template>\n\n<ng-template #labelTextTemplate>\n <ng-container *ngIf="label">\n <span class="text">{{ label }}</span>\n </ng-container>\n</ng-template>\n\n<ng-template #labelTemplate>\n <ng-container *ngIf="label">\n <label class="text" [id]="_labelId" (click)="onLabelClick()">{{ label }}</label>\n </ng-container>\n</ng-template>\n',styles:[":host{display:block;position:relative;margin-bottom:16px}:host-context(kirby-item){margin-bottom:0}.texts{display:flex;justify-content:space-between;padding:2px 16px 0}.texts .message{flex:75%}.texts .message:only-child{flex-basis:auto}.texts .counter{flex:25%;text-align:right}.text,label{display:block}.text{font-size:14px;font-weight:300;line-height:20px;margin-bottom:4px;padding:0 16px}"]}]}],qt.ctorParameters=function(){return[{type:t.ElementRef},{type:te},{type:t.Renderer2},{type:j}]},qt.propDecorators={label:[{type:t.Input}],message:[{type:t.Input}],counter:[{type:t.ContentChild,args:[Ut,{static:!1}]}],radioGroupComponent:[{type:t.ContentChild,args:[$t]}],radioGroupElement:[{type:t.ContentChild,args:[$t,{read:t.ElementRef}]}],input:[{type:t.ContentChild,args:[Yt,{read:t.ElementRef}]}],textarea:[{type:t.ContentChild,args:[Kt,{read:t.ElementRef}]}],_onRegisterFormField:[{type:t.HostListener,args:["kirbyRegisterFormField"]}]};var Zt=function(){this.position="left"};Zt.decorators=[{type:t.Component,args:[{changeDetection:t.ChangeDetectionStrategy.OnPush,selector:"kirby-form-field-message",template:"{{ text }}<ng-content></ng-content>\n",styles:[":host{font-style:italic;font-size:12px;font-weight:400;font-stretch:normal;line-height:16px;letter-spacing:normal;color:var(--kirby-text-color-black)}"]}]}],Zt.propDecorators={text:[{type:t.Input}],position:[{type:t.Input}]};var Jt=function(){function e(e,t,n){this.elementRef=e,this.renderer=t,this.locale=n,this.elementRef.nativeElement.removeAttribute("type")}return e.prototype.onInput=function(){this.updateMask(this.elementRef.nativeElement.value)},e.prototype.ngAfterViewInit=function(){this.initMask()},e.prototype.initMask=function(){var e=this.getInputFormat(),t=this.getPlaceholder(e);this.renderer.setAttribute(this.elementRef.nativeElement,"placeholder",t),new D.default("datetime",{inputFormat:e,placeholder:t}).mask(this.elementRef.nativeElement),this.appendMaskingElement()},e.prototype.getInputFormat=function(){return a.getLocaleDateFormat(this.locale,a.FormatWidth.Short).toLowerCase().replace(/d+/,"dd").replace(/m+/,"mm").replace(/y+/,"yyyy")},e.prototype.getPlaceholder=function(e){return"da"===this.locale?e.split("y").join("å"):e},e.prototype.appendMaskingElement=function(){var e=this.wrapElement(this.elementRef.nativeElement);this.renderer.addClass(e,"date-mask-wrapper"),this.maskingElement=this.renderer.createElement("div"),this.renderer.appendChild(e,this.maskingElement),this.renderer.addClass(this.maskingElement,"date-mask")},e.prototype.wrapElement=function(e){var t=this.renderer.createElement("div"),n=e.parentElement;return this.renderer.insertBefore(n,t,e),this.renderer.appendChild(t,e),t},e.prototype.updateMask=function(e){if(this.maskingElement){var t=e.match(/.*?(\d)[^\d]*$/);this.maskingElement.innerHTML=e?e.slice(0,e.lastIndexOf(t[1])+1):""}},e}();Jt.decorators=[{type:t.Directive,args:[{selector:'[kirby-input][type="date"]'}]}],Jt.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2},{type:String,decorators:[{type:t.Inject,args:[t.LOCALE_ID]}]}]},Jt.propDecorators={onInput:[{type:t.HostListener,args:["input"]}]};var Qt=function(){function e(e,t){this.elementRef=e,this.locale=t,this.precision=2,this.setMaxOnOverflow=!1,this.groupSeparator=a.getLocaleNumberSymbol(this.locale,a.NumberSymbol.Group),this.radixPoint=a.getLocaleNumberSymbol(this.locale,a.NumberSymbol.Decimal),this._allowMinus=!1,this.onChange=function(e){}}return Object.defineProperty(e.prototype,"allowMinus",{set:function(e){this._allowMinus=e||(this.min||0)<0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disableGroupSeperator",{set:function(e){this._groupSeperatorDisabled=""===String(e)||"true"===String(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxlength",{set:function(e){this._maxlength=e;var t=parseInt("9".repeat(e));this.max=this.getMax(t),this.min=this.getMin(t)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.elementRef.nativeElement.setAttribute("type","text"),this.elementRef.nativeElement.removeAttribute("maxlength"),this.initMask()},e.prototype.writeValue=function(e){if(this.inputmask){var t=String(e).replace(".",this.radixPoint);this.inputmask.setValue(t)}},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){},e.prototype.initMask=function(){var e=this;new D.default("decimal",{groupSeparator:this._groupSeperatorDisabled?"":this.groupSeparator,radixPoint:this.radixPoint,digits:this._maxlength?0:this.precision,min:this.min,max:this.max,allowMinus:this._allowMinus,negationSymbol:{front:a.getLocaleNumberSymbol(this.locale,a.NumberSymbol.MinusSign),back:""},SetMaxOnOverflow:this.setMaxOnOverflow,showMaskOnFocus:!1,showMaskOnHover:!1,placeholder:"",onBeforeWrite:function(){if(e.inputmask){var t=e.inputmask.unmaskedvalue();e.onChange(t.replace(e.radixPoint,"."))}}}).mask(this.elementRef.nativeElement),this.inputmask=this.elementRef.nativeElement.inputmask},e.prototype.getMax=function(e){return void 0===this.max?e:Math.min(this.max,e)},e.prototype.getMin=function(e){if(this.allowMinus)return e=-Math.abs(e),void 0===this.min?e:-Math.abs(Math.max(this.min,e))},e}();Qt.decorators=[{type:t.Directive,args:[{selector:"[kirby-decimal-mask]",providers:[{provide:m.NG_VALUE_ACCESSOR,multi:!0,useExisting:Qt}]}]}],Qt.ctorParameters=function(){return[{type:t.ElementRef},{type:String,decorators:[{type:t.Inject,args:[t.LOCALE_ID]}]}]},Qt.propDecorators={min:[{type:t.Input}],max:[{type:t.Input}],precision:[{type:t.Input}],setMaxOnOverflow:[{type:t.Input}],allowMinus:[{type:t.Input}],disableGroupSeperator:[{type:t.Input}],maxlength:[{type:t.Input}]};var Xt=function(){function e(e,t){this.renderer=e,this.document=t,this.disabled=!1,this.horizontalAlignment="right",this._isFabSheetOpen=!1,this._isBackdropVisible=!1}return Object.defineProperty(e.prototype,"isFabSheetOpen",{get:function(){return this._isFabSheetOpen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isBackdropVisible",{get:function(){return this._isBackdropVisible},enumerable:!1,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=re.icons.find((function(e){return"close"===e.name}));this.setCloseIcon(e)},e.prototype.setCloseIcon=function(e,t){var n=this;void 0===t&&(t=0);var i=this.ionFabButton.nativeElement;if(i&&e&&!(t>=20)){if(i.shadowRoot&&i.shadowRoot.innerHTML){var o=i.shadowRoot.querySelector(".close-icon ion-icon");if(o){var r=o.shadowRoot.querySelector(".icon-inner svg");if(o&&r)return void(o.src=e.svg)}}t++,setTimeout((function(){return n.setCloseIcon(e,t)}),20)}},e.prototype.ngAfterContentInit=function(){this.actionSheet&&(this.actionSheet.hideCancel=!0)},e.prototype.hideActions=function(e){e.close(),this._isFabSheetOpen=!1,this._isBackdropVisible=!1,this.renderer.removeClass(this.document.body,"fab-sheet-active")},e.prototype.onFabClick=function(e){var t=this;this._isFabSheetOpen=!e.activated,this._isFabSheetOpen?this.renderer.addClass(this.document.body,"fab-sheet-active"):this.renderer.removeClass(this.document.body,"fab-sheet-active"),setTimeout((function(){return t._isBackdropVisible=t.isFabSheetOpen}))},e}();Xt.decorators=[{type:t.Component,args:[{selector:"kirby-fab-sheet",template:'<ion-backdrop\n *ngIf="actionSheet && isFabSheetOpen"\n (ionBackdropTap)="hideActions(fab)"\n (click)="hideActions(fab)"\n></ion-backdrop>\n<ion-fab #fab (click)="disabled || onFabClick(fab)">\n <ion-fab-button [disabled]="disabled" [attr.disabled]="disabled ? true : null" tabindex="-1">\n <ng-content select="kirby-icon"></ng-content>\n </ion-fab-button>\n <ion-fab-list *ngIf="actionSheet" side="top" class="{{ horizontalAlignment }}">\n <ng-content select="kirby-action-sheet"></ng-content>\n </ion-fab-list>\n</ion-fab>\n',styles:[":host{--kirby-action-sheet-margin-horizontal:16px}ion-fab-button{--box-shadow:0 20px 30px -15px rgba(28,28,28,0.3),0 0 5px 0 rgba(28,28,28,0.08);width:64px;height:64px;-webkit-user-select:none;user-select:none;outline:none}@media (hover:hover){ion-fab-button:focus{--border-width:1px;--border-style:solid;--border-color:#4d90fe}}ion-fab-button[disabled]{--background:var(--kirby-semi-light);--box-shadow:none;opacity:1}ion-fab{position:fixed;bottom:16px;right:16px}:host-context(.fixed-content) ion-fab{position:absolute}ion-backdrop{opacity:0;transition:opacity .75s;position:fixed;z-index:999}:host(.backdrop-visible) ion-backdrop{opacity:.4}@media (min-width:721px){:host(.backdrop-visible) ion-backdrop{opacity:0}}ion-fab-list{margin-top:76px;margin-bottom:76px;right:0}"]}]}],Xt.ctorParameters=function(){return[{type:t.Renderer2},{type:void 0,decorators:[{type:t.Inject,args:[a.DOCUMENT]}]}]},Xt.propDecorators={disabled:[{type:t.Input}],horizontalAlignment:[{type:t.Input}],isFabSheetOpen:[{type:t.HostBinding,args:["class.is-open"]}],isBackdropVisible:[{type:t.HostBinding,args:["class.backdrop-visible"]}],actionSheet:[{type:t.ContentChild,args:[z,{static:!1}]}],ionFabButton:[{type:t.ViewChild,args:[n.IonFabButton,{static:!0,read:t.ElementRef}]}]};var en=function(){};en.BREAKPOINT_SCREEN_L=720,en.BREAKPOINT_CARD_S=320,en.BREAKPOINT_CARD_M=460,en.BREAKPOINT_CARD_L=820;var tn=function(){function e(){this.orientationChangedSubject=new o.Subject,this.init()}return e.prototype.init=function(){this.orientationChangedSubject.next()},e.prototype.observe=function(){return this.orientationChangedSubject.asObservable()},e.prototype.ngOnDestroy=function(){this.orientationChangedSubject.complete()},e}();tn.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new tn},token:tn,providedIn:"root"}),tn.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],tn.ctorParameters=function(){return[]};var nn=function(e,t,n,i){this.configuration=e,this.row=t,this.col=n,this.colSpan=i},on=function(){function e(e){this.breakpointHelper=e,this.cards=[]}return Object.defineProperty(e.prototype,"cardConfigurations",{set:function(e){this.cardConfigs=e,this.configureGrid()},enumerable:!1,configurable:!0}),e.prototype.configureGrid=function(){var e=this,t=0;t=void 0===this.maxColumns?this.breakpointHelper.currentScreenWidth>=en.BREAKPOINT_SCREEN_L?2:1:this.maxColumns,this.cards=[];var n=0,i=0,o=0;this.cardConfigs.forEach((function(r,a){if(n+=r.preferredSize,1===t)return e.cards.push(new nn(r,i,o,1)),void(i+=1);if(n<=t)e.cards.push(new nn(r,i,o,r.preferredSize)),o+=r.preferredSize;else{var s=t-(n-r.preferredSize),l=e.cards[a-1];l.colSpan=s+l.colSpan,i+=1,o=0,e.cards.push(new nn(r,i,o,r.preferredSize)),o=r.preferredSize,n=r.preferredSize}if(e.cardConfigs.length-1===a){s=t-n;e.cards[a].colSpan+=s}}))},e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){this.breakpointSubscription&&this.breakpointSubscription.unsubscribe()},e}();on.decorators=[{type:t.Component,args:[{selector:"kirby-grid",template:'<ng-container *ngFor="let card of cards">\n <ng-template\n [kirbyLoadComponent]="card.configuration"\n [cssClass]="\'grid-item--col-\' + card.colSpan"\n ></ng-template>\n</ng-container>\n',host:{"[attr.max-columns]":"maxColumns"},styles:[':host{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(var(--kirby-grid-item-min-height,auto),auto);gap:24px;max-width:var(--kirby-page-max-width);margin:0 auto}@media (min-width:721px){:host[max-columns="1"]{grid-template-columns:repeat(1,1fr)}:host[max-columns="2"]{grid-template-columns:repeat(2,1fr)}:host[max-columns="3"]{grid-template-columns:repeat(3,1fr)}:host[max-columns="4"]{grid-template-columns:repeat(4,1fr)}:host[max-columns="5"]{grid-template-columns:repeat(5,1fr)}:host[max-columns="6"]{grid-template-columns:repeat(6,1fr)}:host[max-columns="7"]{grid-template-columns:repeat(7,1fr)}:host[max-columns="8"]{grid-template-columns:repeat(8,1fr)}:host[max-columns="9"]{grid-template-columns:repeat(9,1fr)}:host[max-columns="10"]{grid-template-columns:repeat(10,1fr)}}@media (min-width:721px){::ng-deep .grid-item--col-1{grid-column:span 1}}@media (min-width:721px){::ng-deep .grid-item--col-2{grid-column:span 2}}@media (min-width:721px){::ng-deep .grid-item--col-3{grid-column:span 3}}@media (min-width:721px){::ng-deep .grid-item--col-4{grid-column:span 4}}@media (min-width:721px){::ng-deep .grid-item--col-5{grid-column:span 5}}@media (min-width:721px){::ng-deep .grid-item--col-6{grid-column:span 6}}@media (min-width:721px){::ng-deep .grid-item--col-7{grid-column:span 7}}@media (min-width:721px){::ng-deep .grid-item--col-8{grid-column:span 8}}@media (min-width:721px){::ng-deep .grid-item--col-9{grid-column:span 9}}@media (min-width:721px){::ng-deep .grid-item--col-10{grid-column:span 10}}']}]}],on.ctorParameters=function(){return[{type:tn}]},on.propDecorators={maxColumns:[{type:t.Input}],cardConfigurations:[{type:t.Input}]};var rn=function(e,t,n){this.component=e,this.data=t,this.preferredSize=n},an=function(){};an.decorators=[{type:t.NgModule,args:[{imports:[n.IonicModule],declarations:[le],exports:[le]}]}];var sn=function(){function e(){this.direction="vertical"}return Object.defineProperty(e.prototype,"_direction",{get:function(){return"horizontal"===this.direction},enumerable:!1,configurable:!0}),e}();sn.decorators=[{type:t.Component,args:[{selector:"kirby-label",template:"<ion-label>\n <ng-content></ng-content>\n</ion-label>\n",styles:[":host.horizontal ion-label{display:flex;flex-direction:row;justify-content:space-between;align-items:center}:host.horizontal ion-label ::ng-deep>:not(:first-child){margin-left:12px}:host-context(kirby-item) ion-label ::ng-deep>data,:host-context(kirby-item) ion-label ::ng-deep>h1,:host-context(kirby-item) ion-label ::ng-deep>h2,:host-context(kirby-item) ion-label ::ng-deep>h3,:host-context(kirby-item) ion-label ::ng-deep>h4,:host-context(kirby-item) ion-label ::ng-deep>h5,:host-context(kirby-item) ion-label ::ng-deep>h6,:host-context(kirby-item) ion-label ::ng-deep>p{font-size:16px;line-height:24px;color:var(--kirby-text-color-black);display:block;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400}:host-context(kirby-item) ion-label ::ng-deep>data.kirby-text-bold,:host-context(kirby-item) ion-label ::ng-deep>h1.kirby-text-bold,:host-context(kirby-item) ion-label ::ng-deep>h2.kirby-text-bold,:host-context(kirby-item) ion-label ::ng-deep>h3.kirby-text-bold,:host-context(kirby-item) ion-label ::ng-deep>h4.kirby-text-bold,:host-context(kirby-item) ion-label ::ng-deep>h5.kirby-text-bold,:host-context(kirby-item) ion-label ::ng-deep>h6.kirby-text-bold,:host-context(kirby-item) ion-label ::ng-deep>p.kirby-text-bold{font-weight:700}:host-context(kirby-item) ion-label ::ng-deep>p{font-size:14px}:host-context(kirby-item) ion-label ::ng-deep>[detail],:host-context(kirby-item) ion-label ::ng-deep>[subtitle]{font-size:12px;line-height:16px}:host-context(kirby-item) ion-label ::ng-deep>[subtitle]:not(:last-child){margin-bottom:4px}:host-context(kirby-item) ion-label ::ng-deep>[detail]{color:var(--kirby-text-color-semi-dark)}:host([slot=end]) ion-label ::ng-deep>[detail],:host([slot=end]) ion-label ::ng-deep>data{margin-inline-start:16px}:host-context(kirby-item.selected) ion-label ::ng-deep>data,:host-context(kirby-item.selected) ion-label ::ng-deep>h1,:host-context(kirby-item.selected) ion-label ::ng-deep>h2,:host-context(kirby-item.selected) ion-label ::ng-deep>h3,:host-context(kirby-item.selected) ion-label ::ng-deep>h4,:host-context(kirby-item.selected) ion-label ::ng-deep>h5,:host-context(kirby-item.selected) ion-label ::ng-deep>h6,:host-context(kirby-item.selected) ion-label ::ng-deep>p{font-weight:700}"]}]}],sn.propDecorators={direction:[{type:t.Input}],_direction:[{type:t.HostBinding,args:["class.horizontal"]}]};var ln=function(){};ln.decorators=[{type:t.NgModule,args:[{imports:[n.IonicModule,an,a.CommonModule],declarations:[Dt,sn],exports:[Dt,sn]}]}];var cn=function(){function e(){}return e.prototype.ngOnInit=function(){},e}();cn.decorators=[{type:t.Component,args:[{selector:"kirby-spinner",template:'<div class="spinner">\n <div class="inner-circle"></div>\n <div class="outer-circle"></div>\n</div>\n',styles:[".spinner{overflow:hidden;width:32px;height:32px;position:relative;margin:0 auto}.inner-circle,.outer-circle{width:100%;height:100%;border-radius:50%;background-color:var(--kirby-primary);opacity:.6;position:absolute;top:0;left:0;animation:sk-bounce 2s ease-in-out infinite}.outer-circle{animation-delay:-1s}@keyframes sk-bounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}]}],cn.ctorParameters=function(){return[]};var dn=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},pn=function(){function e(e,t,n){this.loadingController=e,this.componentFactoryResolver=t,this.injector=n,this.ionLoading=null}return e.prototype.showLoadingOverlay=function(e){return void 0===e&&(e=!0),dn(this,void 0,void 0,(function(){var t,n,i;return P(this,(function(o){switch(o.label){case 0:return this.ionLoading?[3,3]:(t=this,[4,this.loadingController.create({cssClass:"kirby-loading-overlay",duration:0,message:null,showBackdrop:e,spinner:null})]);case 1:return t.ionLoading=o.sent(),n=this.ionLoading.querySelector(".loading-wrapper"),i=document.createElement("kirby-spinner"),this.componentFactoryResolver.resolveComponentFactory(cn).create(this.injector,[],i),n.appendChild(i),[4,this.ionLoading.present()];case 2:o.sent(),o.label=3;case 3:return[2]}}))}))},e.prototype.hideLoadingOverlay=function(){return dn(this,void 0,void 0,(function(){return P(this,(function(e){switch(e.label){case 0:return this.ionLoading?[4,this.ionLoading.dismiss()]:[3,2];case 1:e.sent(),this.ionLoading=null,e.label=2;case 2:return[2]}}))}))},e}();pn.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new pn(t.ɵɵinject(n.LoadingController),t.ɵɵinject(t.ComponentFactoryResolver),t.ɵɵinject(t.INJECTOR))},token:pn,providedIn:"root"}),pn.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],pn.ctorParameters=function(){return[{type:n.LoadingController},{type:t.ComponentFactoryResolver},{type:t.Injector}]};var hn=function(){this.isLoading=!0,this.showBackdrop=!0};hn.decorators=[{type:t.Component,args:[{selector:"kirby-loading-overlay",template:'<div class="overlay-wrapper">\n <div *ngIf="isLoading" [class.backdrop]="showBackdrop" class="spinner-wrapper">\n <kirby-spinner class="spinner"></kirby-spinner>\n </div>\n <div class="content-wrapper">\n <ng-content></ng-content>\n </div>\n</div>\n',styles:[":host{display:block;min-height:32px}.overlay-wrapper{min-height:inherit;height:100%;width:100%;position:relative}.overlay-wrapper .spinner-wrapper{height:100%;width:100%;position:absolute;z-index:1001;display:flex;background:transparent;justify-content:center;align-items:center;justify-items:center}.overlay-wrapper .spinner-wrapper.backdrop{background-color:hsla(0,0%,96.5%,.8)}.overlay-wrapper .spinner-wrapper .spinner{width:32px;height:32px}"]}]}],hn.propDecorators={isLoading:[{type:t.Input}],showBackdrop:[{type:t.Input}]};var un=function(){function e(e,n,i){this.elementRef=e,this.windowRef=n,this.zone=i,this.scrollEnd=new t.EventEmitter,this.disabled=!1,this.scroll$=new o.Subject,this.ngUnsubscribe$=new o.Subject,this.offset=.8}return e.prototype.ngAfterViewInit=function(){var e=this;this.scroll$.pipe(r.takeUntil(this.ngUnsubscribe$),r.debounceTime(100),r.filter((function(){return!e.disabled})),r.filter((function(t){return t.elementHeight*(1-e.offset)>=t.distanceToViewBottom-t.viewHeight}))).subscribe((function(){e.scrollEnd.emit()})),setTimeout((function(){var t=e.elementRef.nativeElement.closest("ion-content");t&&e.zone.runOutsideAngular((function(){o.fromEvent(t,"ionScroll").pipe(r.takeUntil(e.ngUnsubscribe$),r.debounceTime(100),r.filter((function(){return!e.disabled})),r.map((function(){return e.getScroll()})),r.filter((function(t){return t.elementHeight*(1-e.offset)>=t.distanceToViewBottom-t.viewHeight}))).subscribe((function(){e.zone.run((function(){return e.scrollEnd.emit()}))}))}))}))},e.prototype.onScroll=function(){if(!this.disabled){var e=this.getScroll();this.scroll$.next(e)}},e.prototype.ngOnDestroy=function(){this.ngUnsubscribe$.next(),this.ngUnsubscribe$.complete()},e.prototype.getScroll=function(){var e=this.elementRef.nativeElement.getBoundingClientRect();return{distanceToViewBottom:e.bottom,elementHeight:e.height,viewHeight:this.windowRef.nativeWindow.innerHeight}},e}();un.decorators=[{type:t.Directive,args:[{selector:"[kirbyInfiniteScroll]"}]}],un.ctorParameters=function(){return[{type:t.ElementRef},{type:j},{type:t.NgZone}]},un.propDecorators={scrollEnd:[{type:t.Output}],disabled:[{type:t.Input}],onScroll:[{type:t.HostListener,args:["window:scroll"]}]};var gn=function(){function e(){}return e.prototype.onLoadOnDemand=function(e,t){e.isLoadOnDemandEnabled&&!e._isLoading&&(e._isLoading=!0,e.loadOnDemand.emit({complete:function(t){e.isLoadOnDemandEnabled=!t,e._isLoading=!1}}))},e}();gn.decorators=[{type:t.Injectable}];var mn=function(){function e(){}return e.prototype.transform=function(e,t){if(!e)return null;if(!t)return e;var n=new Map;return e.forEach((function(e){var i=t(e),o=n.get(i);o?o.push(e):n.set(i,[e])})),Array.from(n).sort((function(e,t){var n=M(e,1)[0],i=M(t,1)[0];return n.localeCompare(i)})).map((function(e){var t=M(e,2);return{name:t[0],items:t[1]}}))},e}();mn.decorators=[{type:t.Pipe,args:[{name:"groupBy"}]}];var bn=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},yn=function(){function e(e,n){var i=this;this.listHelper=e,this.groupBy=n,this.items=[],this.showDivider=!1,this.markSelectedRow=!1,this.shape="rounded",this.useVirtualScroll=!1,this.virtualScrollViewportHeight=500,this.virtualScrollSettings={},this.virtualScrollTimeout=5e3,this._virtualScrollData={get:function(e,t){return i.getVirtualDataset(e,t)},settings:Object.assign({minIndex:this.virtualScrollSettings.minIndex||0,startIndex:this.virtualScrollSettings.startIndex||0,bufferSize:this.virtualScrollSettings.bufferSize||10},this.virtualScrollSettings)},this.loadOnDemand=new t.EventEmitter,this.swipeActions=[],this.itemSelect=new t.EventEmitter}return Object.defineProperty(e.prototype,"isShapeRounded",{get:function(){return"rounded"===this.shape},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isShapeNone",{get:function(){return"none"===this.shape},enumerable:!1,configurable:!0}),e.prototype.getVirtualDataset=function(e,t){return bn(this,void 0,void 0,(function(){var n=this;return P(this,(function(i){switch(i.label){case 0:return[4,new Promise((function(i){setTimeout((function(){var o=n.getItemsSlice(e,t);if(o.length<t&&n.isLoadOnDemandEnabled){var r=0;n.scrollDirective.scrollEnd.emit();var a=setInterval((function(){r+=400,n._isLoading?r>n.virtualScrollTimeout&&(clearInterval(a),i([])):(clearInterval(a),i(n.getItemsSlice(e,t)))}),400)}else i(o)}),400)}))];case 1:return[2,i.sent()]}}))}))},e.prototype.getItemsSlice=function(e,t){return(this._isSectionsEnabled?this._virtualGroupedItems:this.items).slice(e,e+t)},e.prototype.ngOnInit=function(){this._isSelectable=this.itemSelect.observers.length>0,void 0===this.isLoadOnDemandEnabled&&(this.isLoadOnDemandEnabled=this.loadOnDemand.observers.length>0)},e.prototype.ngAfterViewInit=function(){var e=this;this._isSelectable&&setTimeout((function(){e.kirbyItems.forEach((function(e){e.selectable=!0}))}))},e.prototype.ngOnChanges=function(){this._isSectionsEnabled=!!this.getSectionName,this._groupedItems=this._isSectionsEnabled?this.groupBy.transform(this.items,this.getSectionName):null,this._virtualGroupedItems=this.useVirtualScroll&&this._groupedItems?this._groupedItems.reduce((function(e,t){return e.push({headingName:t.name}),e.concat.apply(e,B(t.items))}),[]):null},e.prototype._onLoadOnDemand=function(e){this.listHelper.onLoadOnDemand(this,e)},e.prototype.defaultTrackBy=function(e){return e},e.prototype.sectionTrackBy=function(e,t){return t.name},e.prototype.onItemSelect=function(e){this._selectedItem=e,this.itemSelect.emit(this._selectedItem)},e.prototype.onSwipeActionSelect=function(e){e.swipeAction.onSelected(e.item),this.list.closeSlidingItems(),e.event.stopPropagation()},e.prototype._getBoundaryClass=function(e,t){var n,i,o=t||this.items;return this._isSectionsEnabled&&this.useVirtualScroll&&(o=this._virtualGroupedItems),0===e||(null===(n=o[e-1])||void 0===n?void 0:n.headingName)?this.headerTemplate?null:"first":e===o.length-1||(null===(i=o[e+1])||void 0===i?void 0:i.headingName)?this.footerTemplate?null:"last":void 0},e}();yn.decorators=[{type:t.Component,args:[{selector:"kirby-list",template:'<ion-list\n #list\n kirbyInfiniteScroll\n (scrollEnd)="_onLoadOnDemand()"\n [disabled]="!isLoadOnDemandEnabled"\n class="list"\n [class.has-header]="headerTemplate"\n [class.has-footer]="footerTemplate"\n [class.has-divider]="showDivider"\n>\n <ion-list-header *ngIf="headerTemplate">\n <ng-container *ngTemplateOutlet="headerTemplate"></ng-container>\n </ion-list-header>\n\n <div\n *ngIf="useVirtualScroll"\n #viewport\n [style.height]="virtualScrollViewportHeight + \'px\'"\n class="viewport"\n >\n <ng-container\n *ngTemplateOutlet="virtualItemsTemplate; context: { $implicit: _virtualScrollData }"\n ></ng-container>\n </div>\n\n <ng-container *ngIf="!useVirtualScroll">\n <ng-container\n *ngTemplateOutlet="\n _isSectionsEnabled ? groupedListTemplate : itemsTemplate;\n context: { $implicit: items }\n "\n ></ng-container>\n </ng-container>\n\n <div *ngIf="footerTemplate" class="footer">\n <ng-container *ngTemplateOutlet="footerTemplate"></ng-container>\n </div>\n</ion-list>\n\n<p *ngIf="!isLoadOnDemandEnabled && noMoreItemsText" class="no-more-items">\n {{ noMoreItemsText }}\n</p>\n<div *ngIf="_isLoading" class="loading">\n <kirby-spinner></kirby-spinner>\n</div>\n\n<ng-template #groupedListTemplate>\n <ion-item-group *ngFor="let section of _groupedItems; trackBy: sectionTrackBy">\n <ion-item-divider>\n <ng-container\n *ngTemplateOutlet="sectionHeaderTemplate; context: { $implicit: section.name }"\n ></ng-container>\n </ion-item-divider>\n\n <div class="list-items">\n <ng-container\n *ngTemplateOutlet="itemsTemplate; context: { $implicit: section.items }"\n ></ng-container>\n </div>\n </ion-item-group>\n</ng-template>\n\n<ng-template #itemsTemplate let-items>\n <kirby-list-item\n *ngFor="let item of items; let i = index; trackBy: trackBy || defaultTrackBy"\n [item]="item"\n [itemTemplate]="itemTemplate"\n [swipeActions]="swipeActions"\n [boundaryClass]="_getBoundaryClass(i, items)"\n [isSelectable]="_isSelectable"\n [getItemColor]="getItemColor"\n [isSelected]="_isSelectable && item === _selectedItem"\n (itemSelect)="onItemSelect($event)"\n (swipeActionSelect)="onSwipeActionSelect($event)"\n [class.is-single]="items.length === 1"\n >\n </kirby-list-item>\n</ng-template>\n\n<ng-template #virtualItemsTemplate let-virtualScrollData>\n <div *uiScroll="let item of virtualScrollData; let i = index">\n <div [class.item-wrapper]="!item.headingName" [class.section-header]="item.headingName">\n <ion-item-divider *ngIf="item.headingName" class="virtual-group">\n <ng-container\n *ngTemplateOutlet="sectionHeaderTemplate; context: { $implicit: item.headingName }"\n ></ng-container>\n </ion-item-divider>\n <kirby-list-item\n *ngIf="!item.headingName"\n [item]="item"\n [itemTemplate]="itemTemplate"\n [swipeActions]="swipeActions"\n [boundaryClass]="_getBoundaryClass(i)"\n [isSelectable]="_isSelectable"\n [getItemColor]="getItemColor"\n [isSelected]="_isSelectable && item === _selectedItem"\n (itemSelect)="onItemSelect($event)"\n (swipeActionSelect)="onSwipeActionSelect($event)"\n >\n </kirby-list-item>\n </div>\n </div>\n</ng-template>\n',providers:[gn,mn],styles:[":host{display:block}.list{box-shadow:0 5px 10px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);background:transparent;contain:inherit;padding:0}.viewport{overflow-y:auto}.item-wrapper{min-height:56px}ion-list-header{background-color:var(--kirby-white);border-bottom:1px solid var(--kirby-background-color);padding:0;text-transform:inherit;letter-spacing:inherit;font-weight:inherit;font-size:inherit;min-height:0;overflow:inherit}ion-item{--background:var(--kirby-white);--background-activated:var(--kirby-white-shade);--background-hover:var(--kirby-background-color);--background-focused:var(--kirby-background-color);--inner-border-width:0;--ion-safe-area-right:0;--min-height:56px;--padding-bottom:8px;--padding-end:16px;--padding-start:16px;--padding-top:8px;display:flex;font-size:14px;min-height:56px;overflow:visible;width:100%}ion-item-divider{font-weight:inherit}ion-item-sliding.item-sliding-active-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0)}ion-item-sliding.light{--kirby-item-background:var(--kirby-light);--kirby-item-background-activated:var(--kirby-light-shade);--kirby-item-background-focused:var(--kirby-light-shade);--kirby-item-background-hover:var(--kirby-light-tint)}ion-item-sliding.light ion-item{--background:var(--kirby-light);--color:var(--kirby-light-contrast);--background-activated:var(--kirby-light-shade);--background-focused:var(--kirby-light-shade);--background-hover:var(--kirby-light-tint)}ion-item-group{margin-bottom:24px}ion-item-group:last-of-type{margin-bottom:0}ion-item-divider{--inner-padding-end:0;--color:unset;background-color:transparent;border-color:transparent;min-height:0;padding:0 16px 8px}.footer{background-color:var(--kirby-white);border-top:1px solid var(--kirby-background-color);display:flex;align-items:center;justify-content:space-between;width:100%}.loading,.no-more-items{width:100%;padding:24px 0;text-align:center}.swipe-action{display:flex;color:var(--kirby-black);background-color:transparent}.swipe-action .primary{background-color:var(--kirby-primary);color:var(--kirby-primary-contrast)}.swipe-action .secondary{background-color:var(--kirby-secondary);color:var(--kirby-secondary-contrast)}.swipe-action .tertiary{background-color:var(--kirby-tertiary);color:var(--kirby-tertiary-contrast)}.swipe-action .success{background-color:var(--kirby-success);color:var(--kirby-success-contrast)}.swipe-action .warning{background-color:var(--kirby-warning);color:var(--kirby-warning-contrast)}.swipe-action .danger{background-color:var(--kirby-danger);color:var(--kirby-danger-contrast)}.swipe-action .light{background-color:var(--kirby-light);color:var(--kirby-light-contrast)}.swipe-action .medium{background-color:var(--kirby-medium);color:var(--kirby-medium-contrast)}.swipe-action .dark{background-color:var(--kirby-dark);color:var(--kirby-dark-contrast)}.swipe-action ion-item-option{height:100%;display:inline-block;text-align:center}.swipe-action .item-content{display:inline-grid;min-width:70px;flex-direction:column}.swipe-action .item-content ion-label{--background:unset;--color:unset}ion-item-options[side=end]{border-bottom-width:0}:host-context(.has-sections) .list{box-shadow:none}:host-context(.has-sections) .list-items{box-shadow:0 5px 10px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);border-radius:16px}:host-context(.has-sections) .virtual-group{margin-top:24px}:host-context(.has-sections) .section-header{overflow:hidden}:host-context(.has-sections) .footer{background-color:transparent;border-top:none}:host-context(.has-sections) ion-list-header{background-color:transparent;border-bottom:none}:host-context(.shape-rounded) .list,:host-context(.shape-rounded) .list-items{border-radius:16px}:host-context(.shape-rounded) ion-item-sliding.first,:host-context(.shape-rounded) ion-item.first,:host-context(.shape-rounded) ion-list-header{border-top-left-radius:16px;border-top-right-radius:16px;-webkit-mask-image:-webkit-radial-gradient(#fff,#000)}:host-context(.shape-rounded):not(.has-sections) .has-header ion-item,:host-context(.shape-rounded):not(.has-sections) .has-header ion-item-sliding,:host-context(.shape-rounded) ion-item-sliding>ion-item{border-top-left-radius:0;border-top-right-radius:0}:host-context(.shape-rounded) .footer,:host-context(.shape-rounded) ion-item-sliding.last,:host-context(.shape-rounded) ion-item.last{border-bottom-left-radius:16px;border-bottom-right-radius:16px;-webkit-mask-image:-webkit-radial-gradient(#fff,#000)}:host-context(.shape-rounded):not(.has-sections) .has-footer ion-item,:host-context(.shape-rounded):not(.has-sections) .has-footer ion-item-sliding,:host-context(.shape-rounded) ion-item-sliding>ion-item{border-bottom-left-radius:0;border-bottom-right-radius:0}:host-context(.shape-none) .list,:host-context(.shape-none) .list-items{box-shadow:none;border-radius:unset}:host-context(.shape-none) .list ion-item,:host-context(.shape-none) .list ion-item-sliding{--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;--inner-padding-start:0;--inner-padding-end:0;--inner-padding-top:0;--inner-padding-bottom:0;--background:none;--background-activated:none;--background-hover:none;--background-focused:none;overflow:visible}:host-context(.item-spacing) .list kirby-list-item{margin-bottom:16px}:host-context(.item-spacing) .list kirby-list-item:last-child,:host-context(.item-spacing) .list kirby-list-item>ion-item{margin-bottom:0}"]}]}],yn.ctorParameters=function(){return[{type:gn},{type:mn}]},yn.propDecorators={list:[{type:t.ViewChild,args:["list",{static:!0}]}],scrollDirective:[{type:t.ViewChild,args:[un]}],items:[{type:t.Input}],getItemColor:[{type:t.Input}],getSectionName:[{type:t.Input}],trackBy:[{type:t.Input}],noMoreItemsText:[{type:t.Input}],showDivider:[{type:t.Input}],markSelectedRow:[{type:t.Input}],shape:[{type:t.Input}],isShapeRounded:[{type:t.HostBinding,args:["class.shape-rounded"]}],isShapeNone:[{type:t.HostBinding,args:["class.shape-none"]}],hasItemSpacing:[{type:t.HostBinding,args:["class.item-spacing"]},{type:t.Input}],useVirtualScroll:[{type:t.Input}],virtualScrollViewportHeight:[{type:t.Input}],virtualScrollSettings:[{type:t.Input}],virtualScrollTimeout:[{type:t.Input}],isLoadOnDemandEnabled:[{type:t.Input}],loadOnDemand:[{type:t.Output}],swipeActions:[{type:t.Input}],itemSelect:[{type:t.Output}],kirbyItems:[{type:t.ContentChildren,args:[Dt]}],headerTemplate:[{type:t.ContentChild,args:[At,{static:!1,read:t.TemplateRef}]}],sectionHeaderTemplate:[{type:t.ContentChild,args:[Mt,{static:!1,read:t.TemplateRef}]}],footerTemplate:[{type:t.ContentChild,args:[zt,{static:!1,read:t.TemplateRef}]}],itemTemplate:[{type:t.ContentChild,args:[Pt,{static:!0,read:t.TemplateRef}]}],_isSectionsEnabled:[{type:t.HostBinding,args:["class.has-sections"]}]};var fn=function(){};fn.decorators=[{type:t.Component,args:[{selector:"kirby-list-header",template:"<ng-content></ng-content>\n",styles:[":host{background-color:transparent;display:flex;flex-direction:row;justify-content:space-between;width:100%;padding:24px}"]}]}],fn.ctorParameters=function(){return[]};var vn=function(){function e(){}return e.prototype.ngOnInit=function(){},e}();vn.decorators=[{type:t.Component,args:[{selector:"kirby-list-section-header",template:'<div class="header">\n <span class="kirby-text-small">{{ title }}</span>\n</div>\n',styles:[""]}]}],vn.ctorParameters=function(){return[]},vn.propDecorators={title:[{type:t.Input}]};var kn=function(){function e(e){this.platform=e,this._isSwipingEnabled=!1,this.swipeActions=[],this.itemSelect=new t.EventEmitter,this.swipeActionSelect=new t.EventEmitter,this.initializeSwipeActions()}return e.prototype._onItemSelect=function(e){this.isSelectable&&this.itemSelect.emit(e)},e.prototype._onSwipeActionSelect=function(e,t,n){this.swipeActionSelect.emit({swipeAction:e,item:t,event:n})},e.prototype.ngOnInit=function(){this.initializeSwipeActions()},e.prototype.ngAfterViewInit=function(){this.itemTemplate||console.warn("No item template was provided.")},e.prototype._hasSwipeActions=function(e){return!!Array.isArray(this.swipeActions)&&this.swipeActions.some((function(t){return!(t.isDisabled instanceof Function&&t.isDisabled(e))&&(!0!==t.isDisabled&&("left"===t.position||"right"===t.position))}))},e.prototype._getSwipeActions=function(e,t){var n=this;return Array.isArray(this.swipeActions)?this.swipeActions.filter((function(i){return!n.isSwipeActionDisabled(i,e)&&(!t||i.position===t)})):[]},e.prototype.isSwipeActionDisabled=function(e,t){return!!(e.isDisabled instanceof Function&&e.isDisabled(t))||!0===e.isDisabled},e.prototype._getSwipeActionEnd=function(e){return this._getSwipeActions(e,"left").length?"start":"end"},e.prototype._getSwipeActionIcon=function(e,t){if(e.icon)return e.icon instanceof Function?e.icon(t):e.icon},e.prototype._getSwipeActionTitle=function(e,t){return e.title instanceof Function?e.title(t):e.title},e.prototype._getSwipeActionType=function(e,t){return e.type instanceof Function?e.type(t):e.type},e.prototype.initializeSwipeActions=function(){this.swipeActions&&this.swipeActions.length&&(this._isSwipingEnabled=this.platform.isTouch())},e}();kn.decorators=[{type:t.Component,args:[{selector:"kirby-list-item",template:'<ion-item-sliding\n [class.selected]="isSelected"\n [kirbyListItemColor]="getItemColor"\n [item]="item"\n [disabled]="_isSwipingEnabled ? null : true"\n keyHandler\n [ngClass]="boundaryClass"\n (click)="_onItemSelect(item)"\n>\n <ng-container\n *ngTemplateOutlet="swipeActionsTemplate; context: { $implicit: item }"\n ></ng-container>\n <ng-container *ngTemplateOutlet="itemTemplate; context: { $implicit: item }"></ng-container>\n</ion-item-sliding>\n\n<ng-template #swipeActionsTemplate let-item>\n <ion-item-options *ngIf="_hasSwipeActions(item)" [side]="_getSwipeActionEnd(item)">\n <div class="swipe-action">\n <ng-container *ngFor="let swipeAction of _getSwipeActions(item)">\n <ion-item-option\n [ngClass]="_getSwipeActionType(swipeAction, item)"\n (click)="_onSwipeActionSelect(swipeAction, item, $event)"\n >\n <div class="item-content">\n <kirby-icon\n *ngIf="_getSwipeActionIcon(swipeAction, item)"\n size="sm"\n [name]="_getSwipeActionIcon(swipeAction, item)"\n >\n </kirby-icon>\n <ion-label>\n {{ _getSwipeActionTitle(swipeAction, item) }}\n </ion-label>\n </div>\n </ion-item-option>\n </ng-container>\n </div>\n </ion-item-options>\n</ng-template>\n',styles:[":host{display:block}.list{box-shadow:0 5px 10px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);background:transparent;contain:inherit;padding:0}.viewport{overflow-y:auto}.item-wrapper{min-height:56px}ion-list-header{background-color:var(--kirby-white);border-bottom:1px solid var(--kirby-background-color);padding:0;text-transform:inherit;letter-spacing:inherit;font-weight:inherit;font-size:inherit;min-height:0;overflow:inherit}ion-item{--background:var(--kirby-white);--background-activated:var(--kirby-white-shade);--background-hover:var(--kirby-background-color);--background-focused:var(--kirby-background-color);--inner-border-width:0;--ion-safe-area-right:0;--min-height:56px;--padding-bottom:8px;--padding-end:16px;--padding-start:16px;--padding-top:8px;display:flex;font-size:14px;min-height:56px;overflow:visible;width:100%}ion-item-divider{font-weight:inherit}ion-item-sliding.item-sliding-active-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0)}ion-item-sliding.light{--kirby-item-background:var(--kirby-light);--kirby-item-background-activated:var(--kirby-light-shade);--kirby-item-background-focused:var(--kirby-light-shade);--kirby-item-background-hover:var(--kirby-light-tint)}ion-item-sliding.light ion-item{--background:var(--kirby-light);--color:var(--kirby-light-contrast);--background-activated:var(--kirby-light-shade);--background-focused:var(--kirby-light-shade);--background-hover:var(--kirby-light-tint)}ion-item-group{margin-bottom:24px}ion-item-group:last-of-type{margin-bottom:0}ion-item-divider{--inner-padding-end:0;--color:unset;background-color:transparent;border-color:transparent;min-height:0;padding:0 16px 8px}.footer{background-color:var(--kirby-white);border-top:1px solid var(--kirby-background-color);display:flex;align-items:center;justify-content:space-between;width:100%}.loading,.no-more-items{width:100%;padding:24px 0;text-align:center}.swipe-action{display:flex;color:var(--kirby-black);background-color:transparent}.swipe-action .primary{background-color:var(--kirby-primary);color:var(--kirby-primary-contrast)}.swipe-action .secondary{background-color:var(--kirby-secondary);color:var(--kirby-secondary-contrast)}.swipe-action .tertiary{background-color:var(--kirby-tertiary);color:var(--kirby-tertiary-contrast)}.swipe-action .success{background-color:var(--kirby-success);color:var(--kirby-success-contrast)}.swipe-action .warning{background-color:var(--kirby-warning);color:var(--kirby-warning-contrast)}.swipe-action .danger{background-color:var(--kirby-danger);color:var(--kirby-danger-contrast)}.swipe-action .light{background-color:var(--kirby-light);color:var(--kirby-light-contrast)}.swipe-action .medium{background-color:var(--kirby-medium);color:var(--kirby-medium-contrast)}.swipe-action .dark{background-color:var(--kirby-dark);color:var(--kirby-dark-contrast)}.swipe-action ion-item-option{height:100%;display:inline-block;text-align:center}.swipe-action .item-content{display:inline-grid;min-width:70px;flex-direction:column}.swipe-action .item-content ion-label{--background:unset;--color:unset}ion-item-options[side=end]{border-bottom-width:0}:host-context(.has-sections) .list{box-shadow:none}:host-context(.has-sections) .list-items{box-shadow:0 5px 10px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);border-radius:16px}:host-context(.has-sections) .virtual-group{margin-top:24px}:host-context(.has-sections) .section-header{overflow:hidden}:host-context(.has-sections) .footer{background-color:transparent;border-top:none}:host-context(.has-sections) ion-list-header{background-color:transparent;border-bottom:none}:host-context(.shape-rounded) .list,:host-context(.shape-rounded) .list-items{border-radius:16px}:host-context(.shape-rounded) ion-item-sliding.first,:host-context(.shape-rounded) ion-item.first,:host-context(.shape-rounded) ion-list-header{border-top-left-radius:16px;border-top-right-radius:16px;-webkit-mask-image:-webkit-radial-gradient(#fff,#000)}:host-context(.shape-rounded):not(.has-sections) .has-header ion-item,:host-context(.shape-rounded):not(.has-sections) .has-header ion-item-sliding,:host-context(.shape-rounded) ion-item-sliding>ion-item{border-top-left-radius:0;border-top-right-radius:0}:host-context(.shape-rounded) .footer,:host-context(.shape-rounded) ion-item-sliding.last,:host-context(.shape-rounded) ion-item.last{border-bottom-left-radius:16px;border-bottom-right-radius:16px;-webkit-mask-image:-webkit-radial-gradient(#fff,#000)}:host-context(.shape-rounded):not(.has-sections) .has-footer ion-item,:host-context(.shape-rounded):not(.has-sections) .has-footer ion-item-sliding,:host-context(.shape-rounded) ion-item-sliding>ion-item{border-bottom-left-radius:0;border-bottom-right-radius:0}:host-context(.shape-none) .list,:host-context(.shape-none) .list-items{box-shadow:none;border-radius:unset}:host-context(.shape-none) .list ion-item,:host-context(.shape-none) .list ion-item-sliding{--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;--inner-padding-start:0;--inner-padding-end:0;--inner-padding-top:0;--inner-padding-bottom:0;--background:none;--background-activated:none;--background-hover:none;--background-focused:none;overflow:visible}:host-context(.item-spacing) .list kirby-list-item{margin-bottom:16px}:host-context(.item-spacing) .list kirby-list-item:last-child,:host-context(.item-spacing) .list kirby-list-item>ion-item{margin-bottom:0}",":host{overflow:hidden}:host-context(.has-divider) ion-item-sliding:not(.last){border-bottom:1px solid var(--kirby-background-color)}"]}]}],kn.ctorParameters=function(){return[{type:te}]},kn.propDecorators={ionItemSliding:[{type:t.ViewChild,args:[n.IonItemSliding]}],item:[{type:t.Input}],boundaryClass:[{type:t.Input}],swipeActions:[{type:t.Input}],itemTemplate:[{type:t.Input}],isSelected:[{type:t.Input}],isSelectable:[{type:t.Input}],getItemColor:[{type:t.Input}],itemSelect:[{type:t.Output}],swipeActionSelect:[{type:t.Output}]};var xn=function(){function e(){}return e.prototype.ngOnChanges=function(){this.color=this.getColor()},e.prototype.getColor=function(){if(this.kirbyListItemColor&&this.item)return this.kirbyListItemColor(this.item)},e}();xn.decorators=[{type:t.Directive,args:[{selector:"[kirbyListItemColor]"}]}],xn.propDecorators={kirbyListItemColor:[{type:t.Input}],item:[{type:t.Input}],color:[{type:t.HostBinding,args:["class"]}]};var wn=function(){function e(e,t){this.origEvent=e,this.parent=t,this.origEvent.cancelBubble=!0}return e.prototype.complete=function(e){return this.origEvent.detail.complete(e)},Object.defineProperty(e.prototype,"parentItem",{get:function(){return this.parent},enumerable:!1,configurable:!0}),e}(),Cn=function(){function e(){this.itemReorder=new t.EventEmitter,this.subItemReorder=new t.EventEmitter,this.reorderActive=!1}return e.prototype.ngOnChanges=function(){var e=this;this.items&&this.items.length>0&&setTimeout((function(){e.setupDomListener()}))},e.prototype.setupDomListener=function(){var e=this;this.observer=new MutationObserver((function(t){var n,i;try{for(var o=A(t),r=o.next();!r.done;r=o.next()){var a=r.value;a.oldValue!==a.target.className&&(e.reorderActive=a.target.className.includes("reorder-list-active"))}}catch(e){n={error:e}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}})),this.reorderGroupContainer.forEach((function(t){e.observer.observe(t.nativeElement,{attributes:!0,attributeFilter:["class"],attributeOldValue:!0,childList:!1,subtree:!0})}))},e.prototype.doReorder=function(e){this.itemReorder.emit(new wn(e))},e.prototype.doSubReorder=function(e,t){this.subItemReorder.emit(new wn(e,t))},e.prototype.ngOnDestroy=function(){this.observer&&this.observer.disconnect(),delete this.observer},e}();Cn.decorators=[{type:t.Component,args:[{selector:"kirby-reorder-list",template:'<ion-backdrop *ngIf="reorderActive" [tappable]="false" [visible]="true" [stopPropagation]="false">\n</ion-backdrop>\n<ion-reorder-group (ionItemReorder)="doReorder($event)" disabled="false">\n <div *ngFor="let reorderItem of items" class="outerGroup">\n <kirby-card>\n <ng-container\n *ngTemplateOutlet="itemTemplate || defaultItemTemplate; context: { $implicit: reorderItem }"\n >\n </ng-container>\n <div *ngIf="reorderItem[subItemsName]" #reorderGroupContainer>\n <ion-reorder-group (ionItemReorder)="doSubReorder($event, reorderItem)" disabled="false">\n <div *ngFor="let subItem of reorderItem[subItemsName]">\n <ng-container\n *ngTemplateOutlet="\n itemTemplate || defaultItemTemplate;\n context: { $implicit: subItem, isSubItem: true }\n "\n ></ng-container>\n </div>\n </ion-reorder-group>\n </div>\n </kirby-card>\n </div>\n</ion-reorder-group>\n\n<ng-template #defaultItemTemplate let-item let-isSubItem>\n <kirby-item [reorderable]="true">\n <h3>{{ getItemTextDefault(item) }}</h3>\n </kirby-item>\n</ng-template>\n',styles:["ion-backdrop{opacity:.3;z-index:101;position:fixed}.reorder-selected{box-shadow:none;opacity:1;z-index:104}.reorder-selected kirby-card{transform:scale(1.05)}.reorder-selected kirby-card div:first-child{border-top:1px solid var(--kirby-background-color)}.reorder-selected ::ng-deep>kirby-item{box-shadow:0 0 10px rgba(0,0,0,.4);transform:scale(1.05);border-radius:16px;overflow:hidden}.reorder-list-active>*{position:relative;z-index:103}.reorder-list-active>.reorder-selected{z-index:104}.reorder-list-active div:first-child{border-top:none}.reorder-list-active ::ng-deep>div:last-child kirby-item{border-bottom-left-radius:16px;border-bottom-right-radius:16px;overflow:hidden}.reorder-list-active .reorder-selected ::ng-deep>kirby-item{box-shadow:0 0 10px rgba(0,0,0,.4);transform:scale(1.05);border-radius:16px;overflow:hidden}.outerGroup{border-bottom:20px solid transparent}kirby-card{overflow:inherit;z-index:auto}kirby-card ::ng-deep>div:last-child ion-reorder-group div:last-child>kirby-item{border-bottom-left-radius:16px;border-bottom-right-radius:16px;overflow:hidden}kirby-card ::ng-deep>div kirby-item{z-index:1}kirby-card ::ng-deep>div:first-child>kirby-item{border-radius:16px;overflow:hidden}kirby-card ::ng-deep>div .reorder-list-active kirby-item{z-index:103}kirby-card div:first-child{border-top:1px solid var(--kirby-background-color)}"]}]}],Cn.propDecorators={items:[{type:t.Input}],subItemsName:[{type:t.Input}],getItemTextDefault:[{type:t.Input}],itemReorder:[{type:t.Output}],subItemReorder:[{type:t.Output}],itemTemplate:[{type:t.ContentChild,args:[Pt,{static:!0,read:t.TemplateRef}]}],reorderGroupContainer:[{type:t.ViewChildren,args:["reorderGroupContainer"]}]};var In=function(){this.snapToKeyboard=!1};In.decorators=[{type:t.Component,args:[{selector:"kirby-modal-footer",template:"<ion-footer>\n <ng-content></ng-content>\n</ion-footer>\n",styles:["ion-footer{box-shadow:0 20px 30px -15px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);display:flex;justify-content:var(--kirby-modal-footer-justify-content,center);align-items:center;background-color:var(--kirby-modal-footer-background,var(--kirby-white));color:var(--kirby-modal-footer-color,var(--kirby-white-contrast));padding:8px 16px;padding-bottom:calc(8px + var(--kirby-modal-footer-safe-area-bottom, 0px))}@media (max-width:720px){:host{--kirby-modal-footer-safe-area-bottom:var(--kirby-safe-area-bottom)}}:host-context(.modal-wrapper.full-height){--kirby-modal-footer-safe-area-bottom:var(--kirby-safe-area-bottom)}:host(.snap-to-keyboard) ion-footer{transition:transform .15s ease-out}:host-context(.keyboard-visible).snap-to-keyboard ion-footer{transition:transform .25s ease-out 1ms;transform:translateY(calc((var(--keyboard-offset, 0px) - var(--kirby-modal-footer-safe-area-bottom, 0px)) * -1))}:host(.light) ion-footer{background-color:var(--kirby-background-color)}"]}]}],In.propDecorators={snapToKeyboard:[{type:t.HostBinding,args:["class.snap-to-keyboard"]},{type:t.Input}]};var Sn="kirbySelectedTabClick",En=function(){function e(){this.outletSubject$=new o.ReplaySubject,this.outlet$=this.outletSubject$.asObservable()}return e.prototype.setOutlet=function(e){this.outletSubject$.next(e)},e}();En.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new En},token:En,providedIn:"root"}),En.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}];var Tn=function(){function e(e){this.tabsService=e,this.tabBarBottomHidden=!1}return e.prototype.ngAfterViewInit=function(){this.tabsService.setOutlet(this.tabs.outlet)},e}();Tn.decorators=[{type:t.Component,args:[{selector:"kirby-tab-bar",template:'<ion-tabs>\n <ion-tab-bar [class.bottom-hidden]="tabBarBottomHidden">\n <ng-content></ng-content>\n </ion-tab-bar>\n</ion-tabs>\n',styles:[":host(:not(.tab-bar-bottom-hidden)){--kirby-page-footer-safe-area-bottom:0px}ion-tabs ion-tab-bar{--background:rgba(var(--kirby-white-rgb),0.94);--border:1px solid var(--kirby-light);--color:var(--kirby-black);display:flex;max-width:var(--kirby-tab-bar-max-width,none);justify-content:center;height:var(--kirby-tab-bar-height);padding-left:calc((100vw - var(--kirby-tab-bar-max-width, none)) / 2);padding-right:calc((100vw - var(--kirby-tab-bar-max-width, none)) / 2);width:100%}ion-tabs ion-tab-bar.bottom-hidden{display:none}@media (min-width:721px){ion-tabs{--kirby-tab-bar-height:70px}}@media (min-width:1025px) and (hover:hover) and (pointer:fine){ion-tabs{flex-direction:column-reverse;--kirby-page-footer-safe-area-bottom:initial}ion-tabs ion-tab-bar{margin:0 auto;justify-content:flex-end}ion-tabs ion-tab-bar.bottom-hidden{display:flex}}"]}]}],Tn.ctorParameters=function(){return[{type:En}]},Tn.propDecorators={tabBarBottomHidden:[{type:t.HostBinding,args:["class.tab-bar-bottom-hidden"]}],tabs:[{type:t.ViewChild,args:[n.IonTabs,{static:!0}]}]};var On=function(){};On.decorators=[{type:t.Directive,args:[{selector:"[kirbyPageTitle]"}]}];var Dn=function(){};Dn.decorators=[{type:t.Directive,args:[{selector:"[kirbyPageToolbarTitle]"}]}];var Rn=function(){function e(e){this.template=e,this.stickyDefault=!0,this.fixedDefault=!1}return Object.defineProperty(e.prototype,"isSticky",{get:function(){return this.config?this.config.sticky:this.stickyDefault},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFixed",{get:function(){return this.config?this.config.fixed:this.fixedDefault},enumerable:!1,configurable:!0}),e}();Rn.decorators=[{type:t.Directive,args:[{selector:"[kirbyPageActions]"}]}],Rn.ctorParameters=function(){return[{type:t.TemplateRef}]},Rn.propDecorators={config:[{type:t.Input,args:["kirbyPageActions"]}]};var _n=function(){function e(e){this.template=e}return Object.defineProperty(e.prototype,"isFixed",{get:function(){return this.config&&this.config.fixed},enumerable:!1,configurable:!0}),e}();_n.decorators=[{type:t.Directive,args:[{selector:"[kirbyPageContent]"}]}],_n.ctorParameters=function(){return[{type:t.TemplateRef}]},_n.propDecorators={config:[{type:t.Input,args:["kirbyPageContent"]}]};var Pn=function(){function e(e){this.modalWrapper=e,this.slot="start"}return e.prototype.ngOnInit=function(){this.modalWrapper&&"drawer"===this.modalWrapper.config.flavor&&(this.slot="end")},e}();Pn.decorators=[{type:t.Component,args:[{selector:"kirby-page-progress",template:"\n <ng-content></ng-content>\n ",styles:[":host {display: flex}"]}]}],Pn.ctorParameters=function(){return[{type:ue,decorators:[{type:t.Optional},{type:t.SkipSelf}]}]},Pn.propDecorators={slot:[{type:t.HostBinding,args:["attr.slot"]}]};var An=function(){};An.decorators=[{type:t.Component,args:[{selector:"kirby-page-title",template:"\n <ng-content></ng-content>\n "}]}];var Mn=function(){};Mn.decorators=[{type:t.Component,args:[{selector:"kirby-page-content",template:"\n <ng-content></ng-content>\n "}]}];var Bn=function(){};Bn.decorators=[{type:t.Component,args:[{selector:"kirby-page-actions",template:'\n <ng-content select="button[kirby-button]"></ng-content>\n '}]}];var zn=function(){function n(e,n,a,s,l,c,d){this.elementRef=e,this.renderer=n,this.router=a,this.changeDetectorRef=s,this.windowRef=l,this.modalNavigationService=c,this.tabsComponent=d,this.titleAlignment="left",this.enter=new t.EventEmitter,this.leave=new t.EventEmitter,this.pageTitleIntersectionObserverRef=this.pageTitleIntersectionObserver(),this.urls=[],this.ngOnDestroy$=new o.Subject,this.navigationStart$=this.router.events.pipe(r.takeUntil(this.ngOnDestroy$),r.filter((function(e){return e instanceof i.NavigationStart}))),this.navigationEnd$=this.router.events.pipe(r.takeUntil(this.ngOnDestroy$),r.filter((function(e){return e instanceof i.NavigationEnd})))}return Object.defineProperty(n.prototype,"tabBarBottomHidden",{get:function(){return this._tabBarBottomHidden},set:function(e){var t=this;this.tabsComponent&&setTimeout((function(){return t.tabsComponent.tabBarBottomHidden=e})),this._tabBarBottomHidden=e},enumerable:!1,configurable:!0}),n.prototype.ngOnInit=function(){this.removeWrapper()},n.prototype.ngOnChanges=function(e){e.titleMaxLines&&(this.fitHeadingConfig=Object.assign(Object.assign({},this.fitHeadingConfig),{maxLines:e.titleMaxLines.currentValue}))},n.prototype.ngAfterViewInit=function(){var t=this;this.navigationStart$.subscribe((function(e){t.urls.includes(e.url)||t.modalNavigationService.isModalRoute(e.url)||t.modalNavigationService.isModalRoute(t.router.url)||t.onLeave()})),this.navigationEnd$.subscribe((function(e){t.urls.includes(e.urlAfterRedirects)&&t.onEnter()})),this.windowRef.nativeWindow.addEventListener(Sn,(function(){t.content.scrollToTop(e.KirbyAnimation.Duration.LONG)}))},n.prototype.ngAfterContentChecked=function(){this.urls.includes(this.router.url)||(this.urls.push(this.router.url),this.onEnter()),this.initializeTitle(),this.initializeActions(),this.initializeContent(),this.changeDetectorRef.detectChanges()},n.prototype.ngOnDestroy=function(){var t=this;this.ngOnDestroy$.next(),this.ngOnDestroy$.complete(),this.pageTitleIntersectionObserverRef.disconnect(),this.windowRef.nativeWindow.removeEventListener(Sn,(function(){t.content.scrollToTop(e.KirbyAnimation.Duration.LONG)}))},n.prototype.onEnter=function(){this.hasEntered||(this.hasEntered=!0,this.enter.emit(),this.pageTitle&&this.pageTitleIntersectionObserverRef.observe(this.pageTitle.nativeElement))},n.prototype.onLeave=function(){this.leave.emit(),this.pageTitle&&this.pageTitleIntersectionObserverRef.unobserve(this.pageTitle.nativeElement),this.hasEntered=!1,this.tabBarBottomHidden&&this.tabsComponent&&(this.tabsComponent.tabBarBottomHidden=!1)},n.prototype.initializeTitle=function(){var e=this;if(!this.hasPageTitle){this.hasPageTitle=void 0!==this.title||!!this.customTitleTemplate,this.toolbarTitleVisible=!this.hasPageTitle,this.hasPageTitle&&setTimeout((function(){e.pageTitleIntersectionObserverRef.observe(e.pageTitle.nativeElement)}));var t=this.customTitleTemplate||this.simpleTitleTemplate;this.toolbarTitleTemplate=this.customToolbarTitleTemplate?this.customToolbarTitleTemplate:"string"==typeof this.toolbarTitle?this.simpleToolbarTitleTemplate:t}},n.prototype.initializeActions=function(){var e=this;this.customActions.forEach((function(t){t.isFixed?(e.fixedActionsTemplate=t.template,e.toolbarFixedActionsVisible=!0):(e.pageActionsTemplate=t.template,t.isSticky&&(e.stickyActionsTemplate=t.template))})),this.hasActionsInPage=!!this.pageActionsTemplate},n.prototype.initializeContent=function(){var e=this;this.customContent.forEach((function(t){t.isFixed?e.fixedContentTemplate=t.template:e.customContentTemplate=t.template}))},n.prototype.removeWrapper=function(){var e=this.elementRef.nativeElement.parentNode;this.renderer.removeChild(e,this.elementRef.nativeElement),this.renderer.appendChild(e,this.ionHeaderElement.nativeElement),this.renderer.appendChild(e,this.ionContentElement.nativeElement),this.renderer.appendChild(e,this.ionFooterElement.nativeElement)},n.prototype.pageTitleIntersectionObserver=function(){var e=this,t=!1;return new IntersectionObserver((function(n){t?(e.toolbarTitleVisible=!n[0].isIntersecting,e.toolbarStickyActionsVisible=!n[0].isIntersecting,e.changeDetectorRef.detectChanges()):t=!0}),{rootMargin:"0px"})},n.prototype._onKeyboardWillShow=function(e){e&&e.keyboardHeight&&this.ionContentElement.nativeElement.style.setProperty("--keyboard-offset",e.keyboardHeight+"px")},n.prototype._onKeyboardWillHide=function(){this.ionContentElement.nativeElement.style.setProperty("--keyboard-offset","0px")},n}();zn.decorators=[{type:t.Component,args:[{selector:"kirby-page",template:'<ion-header>\n <ion-toolbar>\n <ion-buttons slot="start">\n <ion-back-button\n text=""\n [defaultHref]="defaultBackHref"\n icon="assets/kirby/icons/svg/arrow-back.svg"\n [style.visibility]="hideBackButton ? \'hidden\' : null"\n ></ion-back-button>\n </ion-buttons>\n <ion-title>\n <div class="toolbar-title hide" [class.fade-in]="toolbarTitleVisible">\n <ng-container *ngTemplateOutlet="toolbarTitleTemplate"></ng-container>\n </div>\n </ion-title>\n <ion-buttons\n class="hide"\n slot="primary"\n [class.fade-in]="toolbarStickyActionsVisible && stickyActionsTemplate"\n >\n <ng-container *ngTemplateOutlet="stickyActionsTemplate"></ng-container>\n </ion-buttons>\n <ion-buttons\n class="hide"\n slot="secondary"\n [class.fade-in]="toolbarFixedActionsVisible && fixedActionsTemplate"\n >\n <ng-container *ngTemplateOutlet="fixedActionsTemplate"></ng-container>\n </ion-buttons>\n </ion-toolbar>\n</ion-header>\n\n<ion-content scrollEvents="true" forceOverscroll="false">\n <div class="content-inner">\n <div\n class="page-title"\n #pageTitle\n *ngIf="hasPageTitle"\n [class.has-actions]="hasActionsInPage"\n [ngClass]="{\n \'text-center\': titleAlignment === \'center\',\n \'text-right\': titleAlignment === \'right\'\n }"\n >\n <ng-container\n *ngTemplateOutlet="customTitleTemplate || defaultPageTitleTemplate"\n ></ng-container>\n <ng-container\n *ngTemplateOutlet="pageActionsTemplate || defaultPageActionsTemplate"\n ></ng-container>\n </div>\n \x3c!-- Content --\x3e\n <ng-container\n *ngTemplateOutlet="customContentTemplate || defaultContentTemplate"\n ></ng-container>\n </div>\n\n <div slot="fixed" class="fixed-content" *ngIf="fixedContentTemplate">\n <div class="content-inner">\n <ng-container *ngTemplateOutlet="fixedContentTemplate"></ng-container>\n </div>\n </div>\n</ion-content>\n\n<ion-footer>\n <ng-content select="kirby-page-footer"></ng-content>\n</ion-footer>\n\n<ng-template #defaultPageTitleTemplate>\n <h1 [kirbyFitHeading]="fitHeadingConfig">\n <ng-container *ngTemplateOutlet="simpleTitleTemplate"></ng-container>\n </h1>\n</ng-template>\n\n<ng-template #defaultPageActionsTemplate>\n <ng-content select="kirby-page-actions"></ng-content>\n</ng-template>\n\n<ng-template #defaultContentTemplate>\n <ng-content select="kirby-page-content"></ng-content>\n</ng-template>\n\n<ng-template #simpleTitleTemplate>{{ title }}</ng-template>\n<ng-template #simpleToolbarTitleTemplate>{{ toolbarTitle }}</ng-template>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,styles:["ion-header,ion-toolbar{--background:var(--kirby-background-color);margin:0 auto}@media (min-width:1025px) and (hover:hover) and (pointer:fine){ion-header,ion-toolbar{max-width:768px}}ion-toolbar{--border-width:0!important;--padding-start:4px;--padding-end:4px;--padding-top:0;--padding-bottom:0}ion-toolbar ion-buttons[slot=secondary]{order:6}ion-toolbar ion-title .toolbar-title{text-overflow:ellipsis;white-space:nowrap;pointer-events:auto;overflow:hidden}ion-toolbar ion-title .toolbar-title ::ng-deep>*{text-overflow:ellipsis;white-space:nowrap;pointer-events:auto;overflow:hidden}.hide{visibility:hidden;opacity:0;transition:opacity .1s linear}.hide.fade-in{visibility:inherit;opacity:1}ion-title{box-sizing:border-box;font-size:16px;font-weight:400}ion-back-button{--color:var(--kirby-black);--icon-font-size:24px;height:44px;width:44px}.page-title{margin-left:16px;margin-top:8px;margin-bottom:var(--kirby-page-title-margin-bottom,40px)}.page-title.has-actions{display:flex;justify-content:space-between;align-items:flex-start}.page-title.text-center{text-align:center;margin-left:0}.page-title.text-right{text-align:right}.page-title h1,.page-title h2,.page-title h3,.page-title h4,.page-title h5,.page-title h6{margin:0}ion-content{--padding-start:var(--page-content-padding-start,16px);--padding-end:var(--page-content-padding-end,16px);--background:var(--kirby-background-color)}ion-content .content-inner{max-width:var(--page-content-max-width,720px);margin:0 auto;padding-bottom:40px}ion-content .fixed-content{width:100%;position:absolute;bottom:0}ion-content .fixed-content .content-inner{position:relative}"]}]}],zn.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2},{type:i.Router},{type:t.ChangeDetectorRef},{type:j},{type:$},{type:Tn,decorators:[{type:t.Optional},{type:t.SkipSelf}]}]},zn.propDecorators={title:[{type:t.Input}],toolbarTitle:[{type:t.Input}],titleAlignment:[{type:t.Input}],defaultBackHref:[{type:t.Input}],hideBackButton:[{type:t.Input}],titleMaxLines:[{type:t.Input}],tabBarBottomHidden:[{type:t.Input}],enter:[{type:t.Output}],leave:[{type:t.Output}],content:[{type:t.ViewChild,args:[n.IonContent,{static:!0}]}],ionContentElement:[{type:t.ViewChild,args:[n.IonContent,{static:!0,read:t.ElementRef}]}],ionHeaderElement:[{type:t.ViewChild,args:[n.IonHeader,{static:!0,read:t.ElementRef}]}],ionFooterElement:[{type:t.ViewChild,args:[n.IonFooter,{static:!0,read:t.ElementRef}]}],pageTitle:[{type:t.ViewChild,args:["pageTitle",{static:!1,read:t.ElementRef}]}],simpleTitleTemplate:[{type:t.ViewChild,args:["simpleTitleTemplate",{static:!0,read:t.TemplateRef}]}],simpleToolbarTitleTemplate:[{type:t.ViewChild,args:["simpleToolbarTitleTemplate",{static:!0,read:t.TemplateRef}]}],customToolbarTitleTemplate:[{type:t.ContentChild,args:[Dn,{static:!1,read:t.TemplateRef}]}],customTitleTemplate:[{type:t.ContentChild,args:[On,{static:!1,read:t.TemplateRef}]}],customActions:[{type:t.ContentChildren,args:[Rn]}],customContent:[{type:t.ContentChildren,args:[_n]}],_onKeyboardWillShow:[{type:t.HostListener,args:["window:keyboardWillShow",["$event"]]}],_onKeyboardWillHide:[{type:t.HostListener,args:["window:keyboardWillHide"]}]};var Ln=function(){function e(e,t,n){if(this.pageComponent=e,this.hostElement=t,this.renderer=n,this.hasPadding=!0,!e)throw new Error("Page footer must reside inside of a Kirby page")}return e.prototype.close=function(){this.pageComponent.tabBarBottomHidden=!1,this.renderer.removeChild(this.hostElement.nativeElement.parentElement,this.hostElement.nativeElement,!0)},e.prototype.ngOnDestroy=function(){this.pageComponent.tabBarBottomHidden=!1},e}();Ln.decorators=[{type:t.Component,args:[{selector:"kirby-page-footer",template:'<div class="wrapper" [class.padding]="hasPadding">\n <ng-content></ng-content>\n</div>\n',styles:[":host{display:block;background-color:var(--kirby-white)}:host .wrapper{position:relative;max-width:var(--page-content-max-width,720px);margin:0 auto;padding-bottom:var(--kirby-page-footer-safe-area-bottom,var(--kirby-safe-area-bottom))}:host .wrapper.padding{padding:8px 16px;padding-bottom:calc(8px + var(--kirby-page-footer-safe-area-bottom, var(--kirby-safe-area-bottom)))}"]}]}],Ln.ctorParameters=function(){return[{type:zn,decorators:[{type:t.Optional},{type:t.SkipSelf}]},{type:t.ElementRef},{type:t.Renderer2}]},Ln.propDecorators={hasPadding:[{type:t.Input}]};var Hn=Object.freeze({className:"kirby-line-clamp",lineClamp:"--line-clamp",lineHeight:"--line-height"}),jn=function(){function e(e){this.renderer=e}return e.prototype.setMaxLines=function(e,n){this.renderer.setStyle(e,Hn.lineClamp,n,t.RendererStyleFlags2.DashCase),this.renderer.addClass(e,Hn.className)},e.prototype.setLineHeight=function(e,n){this.renderer.setStyle(e,Hn.lineHeight,n,t.RendererStyleFlags2.DashCase)},e.prototype.removeLineClamp=function(e){this.renderer.removeClass(e,Hn.className),this.renderer.removeStyle(e,Hn.lineClamp),this.renderer.removeStyle(e,Hn.lineHeight)},e}();jn.decorators=[{type:t.Injectable}],jn.ctorParameters=function(){return[{type:t.Renderer2}]};var Fn=ee.fontSize,Nn=ee.lineHeight,Wn=function(){function e(e,t,n,i){this.elementRef=e,this.renderer=t,this.resizeObserverService=n,this.lineClampHelper=i,this.headingSizes=[{name:"h1",fontSize:Fn("xl"),lineHeight:Nn("xl")},{name:"h2",fontSize:Fn("l"),lineHeight:Nn("l")},{name:"h3",fontSize:Fn("m"),lineHeight:Nn("m")}]}return e.prototype.ngOnInit=function(){this.config&&this.config.maxLines&&(this.lineClampHelper.setMaxLines(this.elementRef.nativeElement,this.config.maxLines),this.observeResize(),this.isObservingHostElement=!0)},e.prototype.ngOnDestroy=function(){this.isObservingHostElement&&(this.resizeObserverService.unobserve(this.elementRef),this.hostElementClone&&this.renderer.removeChild(this.elementRef.nativeElement,this.hostElementClone))},e.prototype.observeResize=function(){var e=this;this.resizeObserverService.observe(this.elementRef,(function(){e.scaleHeader()}))},e.prototype.scaleHeader=function(){if(!this.isScalingHeader){this.isScalingHeader=!0,this.hostElementClone||(this.hostElementClone=this.generateHostElementClone(),this.renderer.appendChild(this.elementRef.nativeElement,this.hostElementClone)),this.renderer.setStyle(this.hostElementClone,"width",this.elementRef.nativeElement.clientWidth+"px");var e=this.headingSizes[this.headingSizes.length-1],t=this.headingSizes.find(this.canFitHeading.bind(this))||e;this.setSize(this.elementRef.nativeElement,t),this.lineClampHelper.setLineHeight(this.elementRef.nativeElement,t.lineHeight),this.isScalingHeader=!1}},e.prototype.canFitHeading=function(e){return this.setSize(this.hostElementClone,e),this.hostElementClone.clientHeight/parseInt(e.lineHeight)<=this.config.maxLines},e.prototype.generateHostElementClone=function(){var e=this.elementRef.nativeElement.cloneNode(!0);return this.renderer.setStyle(e,"position","absolute"),this.renderer.setStyle(e,"visibility","hidden"),this.lineClampHelper.removeLineClamp(e),e},e.prototype.setSize=function(e,t){this.renderer.setStyle(e,"font-size",t.fontSize),this.renderer.setStyle(e,"line-height",t.lineHeight)},e}();Wn.decorators=[{type:t.Directive,args:[{selector:"h1[kirbyFitHeading],h2[kirbyFitHeading],h3[kirbyFitHeading]",providers:[jn]}]}],Wn.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2},{type:pe},{type:jn}]},Wn.propDecorators={config:[{type:t.Input,args:["kirbyFitHeading"]}]};var Vn=function(){};Vn.decorators=[{type:t.NgModule,args:[{declarations:[Wn],exports:[Wn]}]}];var $n=function(){};$n.decorators=[{type:t.NgModule,args:[{declarations:[zn,Bn,Rn,Mn,Ln,_n,Pn,An,On,Dn],imports:[a.CommonModule,n.IonicModule,Vn],exports:[zn,Bn,Rn,Mn,Ln,_n,Pn,An,On,Dn,Vn]}]}];var Gn=function(){};Gn.decorators=[{type:t.NgModule,args:[{declarations:[_],imports:[a.CommonModule,n.IonicModule],exports:[_]}]}];var Un,Yn=function(){function e(e,t,n){this.componentFactoryResolver=e,this.viewContainerRef=t,this.renderer=n}return e.prototype.ngOnInit=function(){this.loadCard()},e.prototype.loadCard=function(){var e=this.componentFactoryResolver.resolveComponentFactory(this.configuration.component);this.viewContainerRef.clear();var t=this.viewContainerRef.createComponent(e);t&&t.location&&t.location.nativeElement&&this.renderer.addClass(t.location.nativeElement,this.cssClass),t.instance.data=this.configuration.data},e}();Yn.decorators=[{type:t.Directive,args:[{selector:"[kirbyLoadComponent]"}]}],Yn.ctorParameters=function(){return[{type:t.ComponentFactoryResolver},{type:t.ViewContainerRef},{type:t.Renderer2}]},Yn.propDecorators={configuration:[{type:t.Input,args:["kirbyLoadComponent"]}],cssClass:[{type:t.Input}]},(Un=e.SegmentedControlMode||(e.SegmentedControlMode={})).chip="chip",Un.compactChip="compactChip",Un.default="default";var Kn=function(){function n(){this.mode=e.SegmentedControlMode.default,this._items=[],this._selectedIndex=-1,this.segmentSelect=new t.EventEmitter}return n.prototype.preventWrapperClick=function(e){e.target instanceof HTMLElement&&e.target.classList.contains("segment-btn-wrapper")&&e.stopImmediatePropagation()},Object.defineProperty(n.prototype,"_modeCssClass",{get:function(){var t;return(t={},t[e.SegmentedControlMode.chip]="chip-mode",t[e.SegmentedControlMode.default]="default-mode",t[e.SegmentedControlMode.compactChip]="compact chip-mode",t)[this.mode]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"items",{get:function(){return this._items},set:function(e){this._items=e||[];var t=this.items.findIndex((function(e){return e.checked}));t>-1&&(console.warn("SegmentItem.checked is deprecated - please remove from your `items` configuration. Use `selectedIndex` or `value` on `<kirby-segmented-control>` instead "),this._selectedIndex=t),this._value=this.items[this.selectedIndex]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(e){e!==this._selectedIndex&&(this._selectedIndex=e,this._value=this.items[this.selectedIndex])},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(e){this.selectedIndex=this.items.indexOf(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"size",{set:function(e){this.isSmallSize="sm"===e},enumerable:!1,configurable:!0}),n.prototype.onSegmentSelect=function(e){var t=this.items.findIndex((function(t){return e===t.id}));t!==this.selectedIndex&&(this.selectedIndex=t,this.segmentSelect.emit(this.value))},n}();Kn.decorators=[{type:t.Component,args:[{selector:"kirby-segmented-control",template:'<ion-segment\n *ngIf="mode === \'default\'"\n [value]="value?.id"\n (ionChange)="onSegmentSelect($event.detail.value)"\n (click)="preventWrapperClick($event)"\n>\n <div *ngFor="let item of items" class="segment-btn-wrapper">\n <ion-segment-button [value]="item.id">{{ item.text }}</ion-segment-button>\n <kirby-badge\n *ngIf="item.badge"\n role="text"\n [attr.aria-label]="item.badge.description"\n [themeColor]="item.badge.themeColor"\n >{{ item.badge.content }}</kirby-badge\n >\n </div>\n</ion-segment>\n\n<ng-container *ngIf="mode === \'chip\' || mode === \'compactChip\'">\n <kirby-chip\n *ngFor="let item of items; let index = index"\n [text]="item.text"\n [isSelected]="index === selectedIndex"\n (click)="onSegmentSelect(item.id)"\n role="button"\n ></kirby-chip>\n</ng-container>\n',host:{role:"group"},styles:[':host{display:block;-webkit-user-select:none;user-select:none}:host.sm ion-segment-button{min-height:32px;font-size:12px;--padding-start:16px;--padding-end:16px}:host.chip-mode{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden}@media (pointer:coarse){:host.chip-mode{scrollbar-width:none}:host.chip-mode::-webkit-scrollbar{display:none}}ion-segment{display:inline-flex;width:auto;overflow:visible;contain:unset;--background:var(--kirby-white);border-radius:999px}ion-segment-button{position:relative;min-height:40px;font-weight:400;font-size:14px;text-transform:none;--border-radius:999px;--border-style:none;--background:none;--color:var(--kirby-white-contrast);--indicator-color:var(--kirby-black);--color-checked:var(--kirby-black-contrast);--color-hover:var(--kirby-black-tint);--indicator-box-shadow:none;--padding-start:24px;--padding-end:24px;--margin-bottom:0;--margin-end:0;--margin-start:0;--margin-top:0;margin:0}ion-segment-button:after{content:"";position:absolute;min-height:44px;min-width:44px;width:100%;height:100%;transform:translate(-50%,-50%);left:50%;top:50%}.segment-btn-wrapper{position:relative}kirby-badge{--kirby-badge-elevation:0 5px 10px -10px rgba(28,28,28,0.3),0 0 5px 0 rgba(28,28,28,0.08);position:absolute;top:-8px;right:8px;z-index:2}:host-context(.plt-desktop) ion-segment-button:focus-within{outline-color:-webkit-focus-ring-color;outline-style:auto}']}]}],Kn.propDecorators={mode:[{type:t.Input}],_modeCssClass:[{type:t.HostBinding,args:["class"]}],items:[{type:t.Input}],selectedIndex:[{type:t.Input}],value:[{type:t.Input}],isSmallSize:[{type:t.HostBinding,args:["class.sm"]}],size:[{type:t.Input}],segmentSelect:[{type:t.Output}]};var qn=function(){function e(e){this.changeDetectionRef=e,this.text="",this.slideDone=new t.EventEmitter,this.slidingPercentageChanged=new t.EventEmitter,this.slideDoneFadeTime=500,this.slideResetTime=100,this.isSlideDone=!1,this.pctInTens=0,this._value=0}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.calculatePctInTens()},enumerable:!1,configurable:!0}),e.prototype.calculatePctInTens=function(){this.pctInTens=10*Math.ceil(this.value/10)},e.prototype.ngOnDestroy=function(){this.resetSliderIntervalTimer&&clearInterval(this.resetSliderIntervalTimer)},e.prototype.onSliderMouseup=function(){var e=this;100==this.value?this.handleSlideDone():this.resetSliderIntervalTimer=setInterval((function(){e.value>0?e.value-=2:clearInterval(e.resetSliderIntervalTimer),e.changeDetectionRef.markForCheck()}),1)},e.prototype.onSliderValueChange=function(e){this.value=+e,this.slidingPercentageChanged.emit(this.value)},e.prototype.onSliderMousedown=function(){clearInterval(this.resetSliderIntervalTimer)},e.prototype.handleSlideDone=function(){this.slideDone.emit(),this.isSlideDone=!0},e}();qn.decorators=[{type:t.Component,args:[{selector:"kirby-slide-button",template:'<div class="slide-button-container" [ngClass]="{ \'slide-done\': isSlideDone }">\n <input\n type="range"\n (mouseup)="onSliderMouseup()"\n (touchend)="onSliderMouseup()"\n (input)="onSliderValueChange($event.target.value)"\n (mousedown)="onSliderMousedown()"\n (touchstart)="onSliderMousedown()"\n class="slide-button"\n [value]="value"\n max="100"\n />\n <p class="slide-button-text slide-{{ pctInTens }}-pct">{{ text }}</p>\n</div>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{position:relative;display:inline-block;width:256px;-webkit-user-select:none;user-select:none}:host[expand=block]{display:block;width:100%}:host .slide-button-container{width:100%;display:flex;justify-content:center;align-items:center;color:var(--kirby-primary-contrast);background-color:var(--kirby-primary);height:56px;border-radius:26px}:host .slide-10-pct{opacity:.9}:host .slide-20-pct{opacity:.8}:host .slide-30-pct{opacity:.7}:host .slide-40-pct{opacity:.6}:host .slide-50-pct{opacity:.5}:host .slide-60-pct{opacity:.4}:host .slide-70-pct{opacity:.3}:host .slide-80-pct{opacity:.2}:host .slide-90-pct{opacity:.1}:host .slide-100-pct{opacity:0}:host .slide-button-text{position:absolute;font-size:16px;margin:0;line-height:1;z-index:1;width:100%;text-align:center;padding:0 26px 0 56px}:host .slide-button{width:100%;height:100%;-webkit-appearance:none;background:transparent;z-index:2}:host .slide-button::-webkit-slider-thumb{-webkit-appearance:none;border-radius:50%;background-color:var(--kirby-white);background-image:url(/assets/kirby/icons/svg/arrow-more.svg);background-repeat:no-repeat;background-position:50%;background-size:24px;width:52px;height:52px;border:none;cursor:pointer}:host .slide-button::-moz-range-thumb{-webkit-appearance:none;border-radius:50%;background-color:var(--kirby-white);background-image:url(/assets/kirby/icons/svg/arrow-more.svg);background-repeat:no-repeat;background-position:50%;background-size:24px;width:52px;height:52px;border:none;cursor:pointer}:host .slide-done{transition:all .3s ease-in-out;opacity:0;height:0;transform:scale(0);pointer-events:none}"]}]}],qn.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},qn.propDecorators={text:[{type:t.Input}],expand:[{type:t.Input}],slideDone:[{type:t.Output}],slidingPercentageChanged:[{type:t.Output}]};var Zn=function(){function e(e,n){this.elementRef=e,this.renderer=n,this.click=new t.EventEmitter}return e.prototype.ngOnInit=function(){this.removeWrapper()},e.prototype.onClick=function(e,t){if(this.click.emit(e),t){var n=new CustomEvent(Sn);dispatchEvent(n)}},e.prototype.removeWrapper=function(){var e=this.elementRef.nativeElement.parentNode,t=this.elementRef.nativeElement.childNodes[0];this.renderer.removeChild(e,this.elementRef.nativeElement),this.renderer.appendChild(e,t)},e}();Zn.decorators=[{type:t.Component,args:[{selector:"kirby-tab-button",template:'<ion-tab-button #ionTabButton [tab]="routerLink" (click)="onClick($event, ionTabButton.selected)">\n <div class="icon-container" *ngIf="icons.length">\n <ng-content\n *ngIf="icons.length === 1 || !ionTabButton.selected"\n select="kirby-icon[:not([selected-tab])]"\n ></ng-content>\n <ng-content *ngIf="ionTabButton.selected" select="kirby-icon[selected-tab]"></ng-content>\n <ng-content select="kirby-badge"></ng-content>\n </div>\n <ion-label>\n <ng-content></ng-content>\n </ion-label>\n</ion-tab-button>\n',styles:['ion-tab-button{height:100%;flex:1 1 0%;max-width:168px;font-size:10px;--color-selected:get-color("black");--kirby-badge-position:absolute;--kirby-badge-left:calc(50% + 5px);--kirby-badge-top:0}@media (min-width:721px){ion-tab-button{flex:none;padding:0 24px;margin-right:24px;font-size:14px;flex-direction:row;--kirby-badge-top:-5px;--kirby-badge-left:auto;--kirby-badge-right:-5px}ion-tab-button:last-child{margin-right:0}ion-tab-button .icon-container{position:relative;margin-right:8px}}@media (min-width:1025px) and (hover:hover) and (pointer:fine){ion-tab-button{padding:0 12px;margin-right:0}}']}]}],Zn.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2}]},Zn.propDecorators={routerLink:[{type:t.Input}],click:[{type:t.Output}],icons:[{type:t.ContentChildren,args:[le]}]};var Jn=function(){};Jn.decorators=[{type:t.NgModule,args:[{imports:[n.IonicModule,an,a.CommonModule],providers:[En],declarations:[Tn,Zn],exports:[Tn,Zn]}]}];var Qn=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},Xn=function(){function e(e){this.toastController=e}return e.prototype.showToast=function(t){return Qn(this,void 0,void 0,(function(){var n;return P(this,(function(i){switch(i.label){case 0:return[4,this.toastController.create({animated:t.animated,message:t.message,position:"top",duration:t.durationInMs?t.durationInMs:e.DURATION_IN_MS,cssClass:this.getCssClass(t.messageType)})];case 1:return[4,(n=i.sent()).present()];case 2:return i.sent(),[2,{dismiss:n.dismiss.bind(n),onWillDismiss:n.onWillDismiss(),onDidDismiss:n.onDidDismiss()}]}}))}))},e.prototype.getCssClass=function(t){var n=e.CSS_CLASS;return"danger"===t&&(console.warn("[DEPRECATED] 'danger' message type is deprecated. Use Kirby Alerts for critical warnings. Toast will be shown as 'warning'"),t="warning"),t&&(n+=" "+t),n},e}();Xn.CSS_CLASS="kirby-toast",Xn.DURATION_IN_MS=4e3,Xn.decorators=[{type:t.Injectable}],Xn.ctorParameters=function(){return[{type:n.ToastController}]};var ei=function(){function e(e){this.toastHelper=e}return e.prototype.showToast=function(e,t){this.toastHelper.showToast(e).then((function(e){t&&e.onDidDismiss.then((function(){return t()}))}))},e}();ei.decorators=[{type:t.Injectable}],ei.ctorParameters=function(){return[{type:Xn}]};var ti=function(){function e(){this.checked=!1,this.disabled=!1,this.checkedChange=new t.EventEmitter}return e.prototype.onCheckedChange=function(e){this.checked=e,this.checkedChange.emit(this.checked)},e}();ti.decorators=[{type:t.Component,args:[{selector:"kirby-toggle",template:'<ion-toggle\n [checked]="checked"\n [disabled]="disabled"\n (ionChange)="onCheckedChange($event.detail.checked)"\n></ion-toggle>\n',styles:[".toggle-checked{--background-checked:var(--kirby-success)}"]}]}],ti.propDecorators={checked:[{type:t.Input}],disabled:[{type:t.Input}],checkedChange:[{type:t.Output}]};var ni=function(){function e(e,t){var n=this;this.elementRef=e,this.changeDetectorRef=t,this.SIZE_CONFIG={sm:{diameter:40,strokeWidth:3,upperBound:95},md:{diameter:56,strokeWidth:4,upperBound:96},lg:{diameter:96,strokeWidth:6,upperBound:97}},this.value=0,this.size="md",this.themeColor="success",this.onIntersectionChange=function(e){n.hasElementBeenVisible=e&&e.some((function(e){return e.isIntersecting})),n.hasElementBeenVisible&&(n.unobserve(),n.changeDetectorRef.markForCheck())}}return Object.defineProperty(e.prototype,"_cssSize",{get:function(){return this.size},enumerable:!1,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.observer||(this.observer=new IntersectionObserver(this.onIntersectionChange,{threshold:.5}),this.observer.observe(this.elementRef.nativeElement))},e.prototype.ngOnDestroy=function(){this.unobserve()},e.prototype.unobserve=function(){this.observer&&(this.observer.unobserve(this.elementRef.nativeElement),"function"==typeof this.observer.disconnect&&this.observer.disconnect())},Object.defineProperty(e.prototype,"_diameter",{get:function(){return this.SIZE_CONFIG[this.size].diameter},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_shownValue",{get:function(){return this.hasElementBeenVisible?this.value:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_radius",{get:function(){return this._diameter/2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_strokeWidth",{get:function(){return this.SIZE_CONFIG[this.size].strokeWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_upperBound",{get:function(){return this.SIZE_CONFIG[this.size].upperBound},enumerable:!1,configurable:!0}),e}();ni.decorators=[{type:t.Component,args:[{selector:"kirby-progress-circle",template:'<div class="transcluded-content">\n <ng-content></ng-content>\n</div>\n<kirby-progress-circle-ring\n [themeColor]="themeColor"\n [value]="_shownValue"\n [radius]="_radius"\n [strokeWidth]="_strokeWidth"\n [upperBound]="_upperBound"\n>\n</kirby-progress-circle-ring>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:inline-block;position:relative}.transcluded-content,kirby-progress-circle-ring{position:absolute;top:0;left:0}kirby-progress-circle-ring{z-index:2}.transcluded-content{width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:1;border-radius:50%;overflow:hidden}"]}]}],ni.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},ni.propDecorators={value:[{type:t.Input}],size:[{type:t.Input}],themeColor:[{type:t.Input}],_cssSize:[{type:t.HostBinding,args:["class"]}],_diameter:[{type:t.HostBinding,args:["style.width.px"]},{type:t.HostBinding,args:["style.height.px"]}]};var ii=function(){function e(){this.size="md",this.themeColor="transparent"}return Object.defineProperty(e.prototype,"_cssClass",{get:function(){return[this.themeColor,this.size]},enumerable:!1,configurable:!0}),e}();ii.decorators=[{type:t.Component,args:[{selector:"kirby-flag",template:"\n <ng-content></ng-content>\n ",changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:inline-block;background-color:var(--kirby-flag-background-color,transparent);color:var(--kirby-flag-color,var(--kirby-white-contrast));border:1px solid var(--kirby-flag-border-color,var(--kirby-medium));border-radius:4px;font-size:16px;padding:2px 8px}:host.sm{font-size:14px}:host.xs{font-size:12px;padding-left:4px;padding-right:4px}:host(.success){--kirby-flag-background-color:var(--kirby-success);--kirby-flag-color:var(--kirby-success-contrast);--kirby-flag-border-color:var(--kirby-success)}:host(.warning){--kirby-flag-background-color:var(--kirby-warning);--kirby-flag-color:var(--kirby-warning-contrast);--kirby-flag-border-color:var(--kirby-warning)}:host(.danger){--kirby-flag-background-color:var(--kirby-danger);--kirby-flag-color:var(--kirby-danger-contrast);--kirby-flag-border-color:var(--kirby-danger)}:host(.semi-light){--kirby-flag-background-color:var(--kirby-semi-light);--kirby-flag-color:var(--kirby-semi-light-contrast);--kirby-flag-border-color:var(--kirby-semi-light)}"]}]}],ii.propDecorators={size:[{type:t.Input}],themeColor:[{type:t.Input}],_cssClass:[{type:t.HostBinding,args:["class"]}]};var oi=function(){};oi.decorators=[{type:t.Directive,args:[{selector:"[kirbySlide]"}]}];var ri=function(){function e(){this.selectedSlide=new t.EventEmitter}return e.prototype.ngAfterViewInit=function(){this.slideTo(0)},e.prototype.onSlideChanged=function(){var e=this;this.ionSlides.getActiveIndex().then((function(t){e.selectedSlide.emit({slide:e.slides[t],index:t})}))},e.prototype.slideTo=function(e){this.ionSlides.slideTo(e)},e}();ri.decorators=[{type:t.Component,args:[{selector:"kirby-slides",template:'\n <ion-slides [options]="slidesOptions" #ionslides (ionSlideDidChange)="onSlideChanged()">\n <ion-slide *ngFor="let slide of slides; let i = index">\n <ng-container\n *ngTemplateOutlet="slideTemplate; context: { $implicit: slide, index: i }"\n ></ng-container>\n </ion-slide>\n </ion-slides>\n ',changeDetection:t.ChangeDetectionStrategy.OnPush}]}],ri.propDecorators={ionSlides:[{type:t.ViewChild,args:["ionslides",{static:!1}]}],slidesOptions:[{type:t.Input}],slides:[{type:t.Input}],selectedSlide:[{type:t.Output}],slideTemplate:[{type:t.ContentChild,args:[oi,{static:!0,read:t.TemplateRef}]}]};var ai=function(){function e(){this.checkChanged=new t.EventEmitter}return e.prototype.onClick=function(){this.checked=!this.checked,this.checkChanged.emit(this.checked)},e}();ai.decorators=[{type:t.Component,args:[{selector:"kirby-toggle-button",template:'<ng-container *ngIf="!checked">\n <ng-content select="button[kirby-button][unchecked]"></ng-content>\n</ng-container>\n<ng-container *ngIf="checked">\n <ng-content select="button[kirby-button][checked]"></ng-content>\n</ng-container>\n',changeDetection:t.ChangeDetectionStrategy.OnPush}]}],ai.propDecorators={checked:[{type:t.Input}],checkChanged:[{type:t.Output}],onClick:[{type:t.HostListener,args:["click"]}]};var si=function(){};si.decorators=[{type:t.Directive,args:[{selector:"[kirbyAccordion], kirby-accordion",exportAs:"kirby-accordion"}]}];var li=0,ci=function(){this.isExpanded=!1,this._titleId="kirby-accordion-item-title-"+ ++li,this._contentId="kirby-accordion-item-content-"+li};ci.decorators=[{type:t.Component,args:[{selector:"kirby-accordion-item",template:'<ng-container>\n <div\n (click)="isExpanded = !isExpanded"\n class="header"\n role="button"\n [class.expanded]="isExpanded"\n [attr.aria-expanded]="isExpanded"\n [attr.aria-controls]="_contentId"\n [id]="_titleId"\n >\n <div class="title">{{ title }}</div>\n <kirby-icon name="arrow-down"></kirby-icon>\n </div>\n <div\n class="content"\n role="region"\n [attr.aria-labelledby]="_titleId"\n [id]="_contentId"\n [@isExpanded]="!!isExpanded"\n >\n <div class="content-body">\n <ng-content></ng-content>\n </div>\n </div>\n</ng-container>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,animations:[v.trigger("isExpanded",[v.state("true",v.style({height:"*",visibility:"visible"})),v.state("false",v.style({height:"0px",visibility:"hidden"})),v.transition("true <=> false",v.animate("0.2s"))])],styles:[":host{display:block;border-top:1px solid var(--kirby-medium);border-bottom:1px solid var(--kirby-medium)}.header{display:flex;align-items:center;height:56px;padding-left:16px;padding-right:16px;cursor:pointer;-webkit-user-select:none;user-select:none}.title{flex-grow:2}.kirby-icon{transition:transform .2s}.content{overflow:hidden}.content-body{padding:0 16px 16px}.expanded .title{font-weight:700}.expanded .kirby-icon{transform:rotate(180deg)}:host-context(kirby-accordion):not(:first-child){border-top:none}:host-context(kirby-card){border-color:var(--kirby-background-color)}:host-context(kirby-card):first-child{border-top:none}:host-context(kirby-card):last-child{border-bottom:none}"]}]}],ci.propDecorators={title:[{type:t.Input}],isExpanded:[{type:t.Input}]};var di=function(){function e(){this.step=1,this.disabled=!1,this.change=new t.EventEmitter,this.onTouched=function(){},this.propagateChange=function(e){}}return Object.defineProperty(e.prototype,"value",{get:function(){return this.currentValue},set:function(e){e!==this.currentValue&&(this.currentValue=e,this.propagateChange(this.currentValue),this.change.emit(this.currentValue))},enumerable:!1,configurable:!0}),e.prototype.ngOnChanges=function(e){var t=this;this.ticks&&((this.max-this.min)/this.step>9&&(this.step=(this.max-this.min)/9),this.value=this.getTicks().reduce((function(e,n){return Math.abs(n-t.value)<Math.abs(e-t.value)?n:e})))},e.prototype.getTicks=function(){for(var e=[],t=Number(this.min);t<=Number(this.max);t+=Number(this.step))e.push(t);return e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype._onRangeValueChange=function(e){this.writeValue(e.detail.value)},e.prototype.writeValue=function(e){void 0!==e&&(this.value=e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.registerOnChange=function(e){this.propagateChange=e},e}();di.decorators=[{type:t.Component,args:[{selector:"kirby-range",template:'<ion-range\n (ionChange)="_onRangeValueChange($event)"\n [min]="min"\n [max]="max"\n [step]="step"\n [value]="value"\n [pin]="pin"\n [snaps]="ticks"\n [ticks]="ticks"\n [debounce]="debounce"\n [disabled]="disabled"\n>\n</ion-range>\n\n<label *ngIf="minLabel" class="min-label">{{ minLabel }}</label>\n<label *ngIf="maxLabel" class="max-label">{{ maxLabel }}</label>\n',providers:[{provide:m.NG_VALUE_ACCESSOR,multi:!0,useExisting:t.forwardRef((function(){return di}))}],styles:[':host{display:flex;justify-content:space-between;flex-wrap:wrap}ion-range{--knob-background:var(--kirby-white);--knob-box-shadow:0 5px 10px 0px rgba(28,28,28,0.3),0 0 5px 0 rgba(28,28,28,0.08);--knob-size:24px;--pin-color:var(--kirby-text-color-black);--pin-background:var(--kirby-semi-light);--bar-background:var(--kirby-medium);--bar-background-active:var(--kirby-dark);--bar-border-radius:4px;--bar-height:2px;flex:1 1 100%;padding:0}ion-range.range-disabled{--knob-background:var(--kirby-semi-light);--knob-box-shadow:none;--bar-background:var(--kirby-semi-light);--bar-background-active:var(--kirby-semi-light)}ion-range.range-disabled::part(tick){background:var(--kirby-semi-light)}ion-range.range-has-pin{padding:0 3px}ion-range::part(pin){font-size:12px;color:var(--pin-color);background-color:var(--pin-background);padding:2px 4px;border-radius:4px;min-width:40px;position:relative}ion-range::part(pin):before{content:"";position:absolute;top:100%;left:50%;transform:translateX(-50%);display:block;border:6px solid transparent;border-top:6px solid var(--pin-background)}ion-range::part(tick),ion-range::part(tick-active){border-radius:50%;width:6px;height:6px;z-index:1;margin-inline-start:-3px}ion-range::part(tick){background:var(--kirby-medium)}label{font-size:12px;line-height:16px;color:var(--kirby-text-color-semi-dark);margin-top:-4px}']}]}],di.propDecorators={minLabel:[{type:t.Input}],maxLabel:[{type:t.Input}],debounce:[{type:t.Input}],max:[{type:t.Input}],min:[{type:t.Input}],pin:[{type:t.Input}],step:[{type:t.Input}],ticks:[{type:t.Input}],disabled:[{type:t.Input}],value:[{type:t.Input}],change:[{type:t.Output}]};var pi=function(){function e(e){this.element=e}return e.prototype.keyEvent=function(e){" "!==e.key&&"Enter"!==e.key&&"Spacebar"!==e.key||(e.preventDefault(),this.element.nativeElement.click())},e}();pi.decorators=[{type:t.Directive,args:[{selector:"[keyHandler]"}]}],pi.ctorParameters=function(){return[{type:t.ElementRef}]},pi.propDecorators={keyEvent:[{type:t.HostListener,args:["keyup",["$event"]]}]};var hi=function(){function e(){this._isDefault=!0}return Object.defineProperty(e.prototype,"isDefault",{get:function(){return this._isDefault},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPrimary",{get:function(){return this._isPrimary},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSecondary",{get:function(){return this._isSecondary},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isTertiary",{get:function(){return this._isTertiary},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSuccess",{get:function(){return this._isSuccess},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isWarning",{get:function(){return this._isWarning},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDanger",{get:function(){return this._isDanger},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLight",{get:function(){return this._isLight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMedium",{get:function(){return this._isMedium},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDark",{get:function(){return this._isDark},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isWhite",{get:function(){return this._isWhite},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isBrightnessWhite",{get:function(){return this._isBrightnessWhite},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isBrightnessLight",{get:function(){return this._isBrightnessLight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isBrightnessDark",{get:function(){return this._isBrightnessDark},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"themeColor",{set:function(e){this._isDefault=!e,this._isPrimary="primary"===e,this._isSecondary="secondary"===e,this._isTertiary="tertiary"===e,this._isSuccess="success"===e,this._isWarning="warning"===e,this._isDanger="danger"===e,this._isLight="light"===e,this._isMedium="medium"===e,this._isDark="dark"===e,this._isWhite="white"===e;var t=X.getColorBrightness(e);this._isBrightnessWhite="white"===t,this._isBrightnessLight="light"===t,this._isBrightnessDark="dark"===t},enumerable:!1,configurable:!0}),e}();hi.decorators=[{type:t.Directive,args:[{selector:"kirby-avatar[themeColor],\n kirby-card[themeColor],\n kirby-badge[themeColor],\n kirby-icon[themeColor],\n kirby-progress-circle-ring[themeColor],\n kirby-modal-footer[themeColor],\n kirby-empty-state[themeColor]"}]}],hi.propDecorators={isDefault:[{type:t.HostBinding,args:["class.default"]}],isPrimary:[{type:t.HostBinding,args:["class.primary"]}],isSecondary:[{type:t.HostBinding,args:["class.secondary"]}],isTertiary:[{type:t.HostBinding,args:["class.tertiary"]}],isSuccess:[{type:t.HostBinding,args:["class.success"]}],isWarning:[{type:t.HostBinding,args:["class.warning"]}],isDanger:[{type:t.HostBinding,args:["class.danger"]}],isLight:[{type:t.HostBinding,args:["class.light"]}],isMedium:[{type:t.HostBinding,args:["class.medium"]}],isDark:[{type:t.HostBinding,args:["class.dark"]}],isWhite:[{type:t.HostBinding,args:["class.white"]}],isBrightnessWhite:[{type:t.HostBinding,args:["class.kirby-color-brightness-white"]}],isBrightnessLight:[{type:t.HostBinding,args:["class.kirby-color-brightness-light"]}],isBrightnessDark:[{type:t.HostBinding,args:["class.kirby-color-brightness-dark"]}],themeColor:[{type:t.Input}]};var ui=function(){};ui.decorators=[{type:t.NgModule,args:[{declarations:[bt],exports:[bt],providers:[ot]}]}];var gi=function(){};gi.decorators=[{type:t.NgModule,args:[{declarations:[cn],imports:[a.CommonModule],exports:[cn],providers:[]}]}];var mi=[yn,kn,Rt,_t,Pt,vn,Mt,At,fn,zt],bi=B(mi,[xn,un,kn]),yi=function(){};yi.decorators=[{type:t.NgModule,args:[{declarations:bi,imports:[a.CommonModule,an,n.IonicModule,gi,k.UiScrollModule],exports:mi,providers:[]}]}];var fi=function(){function e(){this.value=0,this.themeColor="success"}return Object.defineProperty(e.prototype,"_offset",{get:function(){return this.value<this.upperBound||this.value>99?this.calculateOffset(this.value):this.calculateOffset(this.upperBound)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_diameter",{get:function(){return 2*this.radius},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_centerRadius",{get:function(){return this.radius-this.strokeWidth/2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_centerCircumference",{get:function(){return 2*this._centerRadius*Math.PI},enumerable:!1,configurable:!0}),e.prototype.calculateOffset=function(e){return this._centerCircumference-this._centerCircumference*(e/100)},e}();fi.decorators=[{type:t.Component,args:[{selector:"kirby-progress-circle-ring",template:'<svg [attr.width]="_diameter" [attr.height]="_diameter">\n <circle\n shape-rendering="geometricPrecision"\n class="circle"\n fill="transparent"\n [attr.stroke-width]="strokeWidth"\n [attr.r]="_centerRadius"\n [attr.cx]="radius"\n [attr.cy]="radius"\n />\n <circle\n shape-rendering="geometricPrecision"\n class="progress"\n fill="transparent"\n stroke-linecap="round"\n [attr.stroke-width]="strokeWidth"\n [attr.r]="_centerRadius"\n [attr.cx]="radius"\n [attr.cy]="radius"\n [attr.stroke-dashoffset]="_offset"\n [attr.stroke-dasharray]="_centerCircumference"\n />\n</svg>',changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".circle{stroke:var(--kirby-semi-light)}.progress{transition-property:stroke-dashoffset,stroke;transition-duration:1s;transition-timing-function:ease;transform:rotate(-90deg);transform-origin:50% 50%;stroke:var(--kirby-progress-circle-stroke-color,var(--kirby-success))}:host.success{--kirby-progress-circle-stroke-color:#2cf287}:host.warning{--kirby-progress-circle-stroke-color:#ffca3a}:host.danger{--kirby-progress-circle-stroke-color:#ff595e}"]}]}],fi.propDecorators={radius:[{type:t.Input}],value:[{type:t.Input}],themeColor:[{type:t.Input}],strokeWidth:[{type:t.Input}],upperBound:[{type:t.Input}],_diameter:[{type:t.HostBinding,args:["style.width.px"]},{type:t.HostBinding,args:["style.height.px"]}]};var vi=[ai],ki=function(){};ki.decorators=[{type:t.NgModule,args:[{declarations:B(vi),imports:[a.CommonModule],exports:B(vi)}]}];var xi=function(){function e(e){this.modalNavigationService=e}return e.prototype.onClick=function(){return this.modalNavigationService.navigateToModal(this.path,"string"!=typeof this.queryParams?this.queryParams:null),!1},e}();xi.decorators=[{type:t.Directive,args:[{selector:"[kirbyModalRouterLink]"}]}],xi.ctorParameters=function(){return[{type:$}]},xi.propDecorators={path:[{type:t.Input,args:["kirbyModalRouterLink"]}],queryParams:[{type:t.Input,args:["kirbyModalQueryParams"]}],onClick:[{type:t.HostListener,args:["click"]}]};var wi=[Ie,Ee,Se,ce,qe,kt,on,Yn,we,mn,Ct,St,z,In,xi,Kn,Et,Ce,hi,Jt,Qt,qn,ti,Wt,qt,Yt,Ut,Kt,Xt,Ot,Cn,Nt,hn,ni,ii,ri,oi,si,ci,Vt,$t,di],Ci=B(wi,[pi,Zt,F,ue,K,fi,jt]),Ii=[xe,Gn,$n,Jn,an,ln,ki,yi,ui,gi],Si=B(Ii,wi),Ei=B(Ii),Ti=[fe,H,be,W,Xn,ei,tn,pn,de,pe],Oi=[ue,K,z,F],Di=new t.InjectionToken("USERCONFIG"),Ri=function(){function e(e,t){e.initialize(t&&t.moduleRootRoutePath)}return e.forChild=function(t){return{ngModule:e,providers:[{provide:Di,useValue:t}]}},e}();Ri.decorators=[{type:t.NgModule,args:[{imports:B([a.CommonModule,i.RouterModule,k.UiScrollModule,n.IonicModule.forRoot({mode:"ios",inputShims:!0,scrollAssist:!0,scrollPadding:!1})],Ei),declarations:Ci,providers:Ti,entryComponents:Oi,exports:Si}]}],Ri.ctorParameters=function(){return[{type:fe},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[Di]}]}]},Object.defineProperty(e,"IonRouterOutlet",{enumerable:!0,get:function(){return n.IonRouterOutlet}}),Object.defineProperty(e,"NavController",{enumerable:!0,get:function(){return n.NavController}}),Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return l.Chart}}),e.AccordionDirective=si,e.AccordionItemComponent=ci,e.ActionSheetComponent=z,e.AppComponent=ve,e.AppModule=xe,e.AvatarComponent=we,e.BadgeComponent=Ce,e.ButtonComponent=ce,e.COMPONENT_PROPS=U,e.CalendarComponent=Ct,e.CardComponent=Ie,e.CardFooterComponent=Se,e.CardHeaderComponent=Ee,e.ChartComponent=bt,e.ChartDeprecatedComponent=qe,e.CheckboxComponent=St,e.ChipComponent=Et,e.ColorHelper=X,e.ComponentLoaderDirective=Yn,e.DateInputDirective=Jt,e.DecimalMaskDirective=Qt,e.DesignTokenHelper=ee,e.DividerComponent=Ot,e.DropdownComponent=Nt,e.EmptyStateComponent=Wt,e.FabSheetComponent=Xt,e.FitHeadingDirective=Wn,e.FitHeadingModule=Vn,e.FlagComponent=ii,e.FormFieldComponent=qt,e.FormFieldMessageComponent=Zt,e.GridCardConfiguration=rn,e.GridComponent=on,e.GroupByPipe=mn,e.ICON_SETTINGS=ne,e.IconComponent=le,e.IconModule=an,e.IconRegistryService=ie,e.InfiniteScrollDirective=un,e.InputComponent=Yt,e.InputCounterComponent=Ut,e.ItemComponent=Dt,e.ItemModule=ln,e.KeyHandlerDirective=pi,e.KirbyModule=Ri,e.LabelComponent=sn,e.ListComponent=yn,e.ListFlexItemDirective=_t,e.ListFooterDirective=zt,e.ListHeaderComponent=fn,e.ListHeaderDirective=At,e.ListItemColorDirective=xn,e.ListItemComponent=kn,e.ListItemDirective=Rt,e.ListItemTemplateDirective=Pt,e.ListSectionHeaderComponent=vn,e.ListSectionHeaderDirective=Mt,e.LoadingOverlayComponent=hn,e.LoadingOverlayService=pn,e.Modal=G,e.ModalController=fe,e.ModalFooterComponent=In,e.PageActionsComponent=Bn,e.PageActionsDirective=Rn,e.PageComponent=zn,e.PageContentComponent=Mn,e.PageContentDirective=_n,e.PageFooterComponent=Ln,e.PageModule=$n,e.PageProgressComponent=Pn,e.PageTitleComponent=An,e.PageTitleDirective=On,e.PageToolbarTitleDirective=Dn,e.PlatformService=te,e.PopoverComponent=jt,e.ProgressCircleComponent=ni,e.RadioComponent=Vt,e.RadioGroupComponent=$t,e.RangeComponent=di,e.ReorderEvent=wn,e.ReorderListComponent=Cn,e.ResizeObserverFactory=de,e.ResizeObserverService=pe,e.RouterOutletComponent=_,e.RouterOutletModule=Gn,e.ScssHelper=en,e.SegmentedControlComponent=Kn,e.SlideButtonComponent=qn,e.SlideDirective=oi,e.SlidesComponent=ri,e.SpinnerComponent=cn,e.StockChartDeprecatedComponent=kt,e.TabButtonComponent=Zn,e.TabsComponent=Tn,e.TabsModule=Jn,e.TabsService=En,e.TextareaComponent=Kt,e.ThemeColorDirective=hi,e.ToastController=ei,e.ToggleButtonComponent=ai,e.ToggleComponent=ti,e.annotations=yt,e.camelToKebabCase=J,e.capitalizeFirstLetter=Q,e.defaultIcons=ae,e.isNumberArray=Ze,e.kebabToCamelCase=Z,e.kebabToTitleCase=function(e){return e.length&&1!==e.length?e.split("-").map((function(e){return e[0].toUpperCase()+e.slice(1)})).join(" "):e},e.selectedTabClickEvent=Sn,e.stockChartDeprecatedOptions=function(e,t){var n=ft(e),i="rgba(255,255,255,0)";return n.chart.backgroundColor=i,n.chart.height=t,n.tooltip.backgroundColor=X.getThemeColorRgbString("background-color"),n.tooltip.formatter=function(){return'<div class="kirby-text-xsmall">'+d.dateFormat("%e. %b",new Date(this.x))+'</div><br/><div class="kirby-text-small kirby-text-bold">'+a.formatNumber(this.y,e)+"</div>"},n.plotOptions.area.fillColor=i,n.plotOptions.area.lineColor=X.getThemeColorRgbString("tertiary"),n.plotOptions.area.marker.lineColor="rgba(255,255,255,0.3)",n.plotOptions.area.marker.fillColor=X.getThemeColorRgbString("primary"),n.xAxis=Object.assign(Object.assign({},n.xAxis),{crosshair:{color:X.getThemeColorRgbString("primary")},tickColor:i,lineColor:X.getThemeColorRgbString("medium"),labels:{style:{color:X.getThemeColorRgbString("semi-dark-tint")}}}),n.yAxis=Object.assign(Object.assign({},n.yAxis),{lineColor:i,gridLineColor:X.getThemeColorRgbString("medium"),labels:{style:{color:X.getThemeColorRgbString("semi-dark-tint")}}}),n},e.ɵ0=vt,e.ɵa=xe,e.ɵb=ve,e.ɵba=G,e.ɵbb=ce,e.ɵbc=le,e.ɵbd=ie,e.ɵbf=ne,e.ɵbg=pe,e.ɵbh=de,e.ɵbi=Vn,e.ɵbj=Wn,e.ɵbk=jn,e.ɵbl=Jn,e.ɵbm=an,e.ɵbn=Zn,e.ɵbo=ln,e.ɵbp=Dt,e.ɵbq=sn,e.ɵbr=ki,e.ɵbs=ai,e.ɵbt=yi,e.ɵbu=yn,e.ɵbv=gn,e.ɵbw=mn,e.ɵbx=un,e.ɵby=Rt,e.ɵbz=_t,e.ɵc=_,e.ɵca=Pt,e.ɵcb=At,e.ɵcc=Mt,e.ɵcd=zt,e.ɵce=kn,e.ɵcf=vn,e.ɵcg=fn,e.ɵch=xn,e.ɵci=gi,e.ɵcj=cn,e.ɵck=ui,e.ɵcl=bt,e.ɵcm=mt,e.ɵcn=ot,e.ɵco=Ie,e.ɵcp=Ee,e.ɵcq=Se,e.ɵcr=qe,e.ɵcs=Re,e.ɵct=Ne,e.ɵcu=We,e.ɵcv=Ae,e.ɵcw=Me,e.ɵcx=Ve,e.ɵcy=$e,e.ɵcz=_e,e.ɵd=fe,e.ɵda=Pe,e.ɵdb=kt,e.ɵdc=on,e.ɵdd=tn,e.ɵde=Yn,e.ɵdf=we,e.ɵdg=Ct,e.ɵdh=wt,e.ɵdi=St,e.ɵdj=z,e.ɵdk=In,e.ɵdl=xi,e.ɵdm=Kn,e.ɵdn=Et,e.ɵdo=Ce,e.ɵdp=hi,e.ɵdq=Jt,e.ɵdr=Qt,e.ɵds=qn,e.ɵdt=ti,e.ɵdu=Wt,e.ɵdv=qt,e.ɵdw=Ut,e.ɵdx=$t,e.ɵdy=Vt,e.ɵdz=Yt,e.ɵe=be,e.ɵea=Kt,e.ɵeb=Xt,e.ɵec=Ot,e.ɵed=Cn,e.ɵee=Nt,e.ɵef=jt,e.ɵeg=Ft,e.ɵeh=hn,e.ɵei=ni,e.ɵej=ii,e.ɵek=oi,e.ɵel=ri,e.ɵem=si,e.ɵen=ci,e.ɵeo=di,e.ɵep=pi,e.ɵeq=Zt,e.ɵer=F,e.ɵes=K,e.ɵet=fi,e.ɵeu=Xn,e.ɵev=ei,e.ɵew=pn,e.ɵf=ge,e.ɵg=te,e.ɵh=j,e.ɵi=H,e.ɵj=W,e.ɵk=$,e.ɵl=Gn,e.ɵm=$n,e.ɵn=On,e.ɵo=Dn,e.ɵp=Rn,e.ɵq=_n,e.ɵr=Pn,e.ɵs=An,e.ɵt=Mn,e.ɵu=Bn,e.ɵv=zn,e.ɵw=Tn,e.ɵx=En,e.ɵy=Ln,e.ɵz=ue,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=kirbydesign-designsystem.umd.min.js.map
|