@pronto-tools-and-more/files 13.3.0 → 13.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/files/framework-latest/src/default/storefront/buildInfo.json +3 -3
- package/files/framework-latest/src/default/storefront/deep-link-landing/purple-deep-link-landing.js +80 -80
- package/files/framework-latest/src/default/storefront/index.html +2 -2
- package/files/framework-latest/src/default/storefront/modules/common.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-node_modules_angular_forms_fesm2022_forms_mjs.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_base-component_base-datacollection_component_ts-4706f8.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_content_content_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_html_html_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_image_image_leandom_component_ts-projects_store-571069.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_image_image_leandom_component_ts-projects_store-a6979f.js +1 -0
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_issue_issue_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_section_section_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_service_tts_tts_service_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/main.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_common-pipes_common-pipes_module_ts-projects_storefront_src_app_c-445afb.js +1 -0
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_common-pipes_common-pipes_module_ts-projects_storefront_src_app_c-7956f0.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_action-executor_action-executor_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_ad_ad_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_app-menu-xml_app-menu-xml_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_base-component_base-datacollection_component_ts-project-6cb588.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_bookmark_bookmark_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_catalog-content_content-body_content-body_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_catalog-content_content-featured-image_content-featured-c9ba26.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_category_category_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_collection_collection_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_component_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_coupon_coupon_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_dev-components_user-tag-testing_user-tag-testing_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_download-issues_download-issues_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_dropdown_dropdown_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_embeddable-view_embeddable-view_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_iframe_iframe_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_issue-search-result_issue-search-result_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_login_login_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_menu_menu_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_product_product_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_publication-completion_publication-completion_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_publication_publication_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_recommendations_recommendations_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_search-field_search-field_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_subscription_subscription_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_swiper_swiper_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_ticker_ticker_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_toggle_toggle_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_toolbar_toolbar_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_web-presenter_presenter_presenter_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_widget_widget_module_ts.js +1 -1
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_directive_check-overflow_check-overflow_directive_ts.js +1 -0
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_modal_modal_leandom_component_ts.js +1 -0
- package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_preview_preview_leandom_component_ts.js +1 -0
- package/package.json +1 -1
@@ -3,8 +3,8 @@
|
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<title></title>
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1
|
7
|
-
<meta name="storefront-commit" content="
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
7
|
+
<meta name="storefront-commit" content="a75d8c3">
|
8
8
|
<meta name="storefront-version" content="3.9.0-SNAPSHOT">
|
9
9
|
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
10
10
|
<link rel="stylesheet" href="assets/fonts.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="assets/fonts.css"></noscript>
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["common"],{3472:(x,D,t)=>{t.d(D,{M:()=>f});var d=t(9379),i=t(9758),_=t(8179),n=t(362),p=t.n(n),s=t(4452),h=t(3713),u=t(4438);let f=(()=>{var r;class g extends h.r{getDataFromContext(e=this.context){return this.getSelectionScope()===i.x.USER_ATTRIBUTE?e.userAttributes[this.getParam()]:e[this.getParam()]}hasContextChanged(e){let a=super.hasContextChanged(e);if(!a&&this.isSelectionEnabled()){const c=this.getDataFromContext(),E=this.getDataFromContext(e);a=!p()(c,E)}return a}ngOnDestroy(){super.ngOnDestroy(),this.dataSource&&this.contextService.unregisterDataSource(this.dataSource)}getEntryConfig(e){return e&&e.ad||(0,d.A)({},this.baseConfig.content)}getEntryContext(e){var a;let c=(0,_.uQ)(null!==(a=this.getConfig().dataSource.entryId)&&void 0!==a?a:this.getDataType(),this.context,this.contextService.$functions,this.globalService.getGlobalData());return(0,d.A)((0,d.A)({},this.baseContext),{},{[c]:e})}getConfig(){return this.config||this.baseConfig}isSelectionEnabled(){return!1}stripChildConfigs(e){return"content"in e&&"object"==typeof e.content&&null!==e.content&&(e.content={_uuid:e.content._uuid,condition:e.content.condition}),e}getDataType(){return this.getConfig().dataSource.type}getGroupDataType(e){return e.dataSource.type}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),...(0,s.Kj)(this.baseConfig)].filter(e=>!!e)}}return(r=g).\u0275fac=(()=>{let P;return function(a){return(P||(P=u.xGo(r)))(a||r)}})(),r.\u0275dir=u.FsC({type:r,features:[u.Vt3]}),g})()},3303:(x,D,t)=>{t.d(D,{y:()=>n});var d=t(177),i=t(9733),_=t(4438);let n=(()=>{var p;class s{}return(p=s).\u0275fac=function(u){return new(u||p)},p.\u0275mod=_.$C({type:p}),p.\u0275inj=_.G2t({imports:[d.MD,i.ContentTitleModule]}),s})()},5848:(x,D,t)=>{t.d(D,{Q:()=>f});var d=t(467),i=t(177),_=t(1210),n=t(5706),p=t(4438),s=t(9516),h=t(5102),u=t(1652);let f=(()=>{var r;class g extends _.${get contextKey(){var e,a,c;return null!==(e=null!==(a=null===(c=this.config)||void 0===c?void 0:c.contextKey)&&void 0!==a?a:this.defaultConfig.contextKey)&&void 0!==e?e:"content"}constructor(e,a,c,E,w,l){super(a,e,c,E,l),this.elementRef=e,this.injector=a,this.contextService=c,this.document=E,this.purpleService=w,this.globalService=l}updatePostWithOptionalData(e,a){var c=this;return(0,d.A)(function*(){const E=yield c.purpleService.getOptionalData(c.catalogContent,e,a);return(0,n.mF)(c.catalogContent)?(c.catalogContent=E,c.catalogContent):(0,n.G4)(c.catalogContent)?(c.bundleContent=(0,n.Ig)(c.catalogContent),c.bundleContent[a]=E,c.bundleContent[a]):void 0})()}hasContentChanged(e,a){return(null==e?void 0:e.id)!==(null==a?void 0:a.id)||this.hasVersionChanged(e,a)}hasVersionChanged(e,a){return(null==e?void 0:e.version)!==(null==a?void 0:a.version)}onConfigChanges(){var e;let a=null===(e=this.context)||void 0===e?void 0:e[this.contextKey];Array.isArray(a)&&(a=a[0]);const c=this.hasContentChanged(this.catalogContent,a)&&!!a;return c&&(this.catalogContent=a),this.changeDetectorRef.markForCheck(),c}isGhost(){var e;return!this.config||!(null!==(e=this.context)&&void 0!==e&&e[this.contextKey])}ngOnDestroy(){super.ngOnDestroy()}getContextKey(){return this.contextKey}}return(r=g).\u0275fac=function(e){return new(e||r)(p.rXU(p.aKT),p.rXU(p.zZn),p.rXU(s.V),p.rXU(i.qQ),p.rXU(h.Wj),p.rXU(u.d))},r.\u0275dir=p.FsC({type:r,features:[p.Vt3]}),g})()},9733:(x,D,t)=>{t.r(D),t.d(D,{ContentTitleModule:()=>v,component:()=>O});var d=t(177);const i={titleMessage:"%s"};var _=t(5848),n=t(4438),p=t(9516),s=t(5102),h=t(1652),u=t(8909);const f=o=>[o];function r(o,C){1&o&&(n.j41(0,"h1"),n.EFF(1,"..."),n.k0s())}function g(o,C){if(1&o&&n.nrm(0,"h1",0),2&o){const m=n.XpG();n.Y8G("storefrontTranslate",m.config.titleMessage)("storefrontTranslateArgs",n.eq3(2,f,null==m.catalogContent?null:m.catalogContent.name))}}let P=(()=>{var o;class C extends _.Q{constructor(M,T,B,y,S,U){super(M,B,T,y,S,U),this.elementRef=M,this.contextService=T,this.injector=B,this.document=y,this.purpleService=S,this.globalService=U,this.type="content-title",this.defaultConfig=i}}return(o=C).\u0275fac=function(M){return new(M||o)(n.rXU(n.aKT),n.rXU(p.V),n.rXU(n.zZn),n.rXU(d.qQ),n.rXU(s.Wj),n.rXU(h.d))},o.\u0275cmp=n.VBU({type:o,selectors:[["storefront-content-title"]],standalone:!1,features:[n.Vt3],decls:2,vars:1,consts:[[3,"storefrontTranslate","storefrontTranslateArgs"]],template:function(M,T){1&M&&n.DNE(0,r,2,0,"h1")(1,g,1,4,"h1",0),2&M&&n.vxM(T.ghost?0:1)},dependencies:[u.M],styles:["storefront-content-title>h1,.pxp-content-title>h1{margin-top:var(--contentHeaderMarginTop);margin-bottom:var(--contentHeaderMarginBottom);padding-top:var(--contentHeaderPaddingVert);padding-bottom:var(--contentHeaderPaddingVert);font-size:1.5rem}\n"],encapsulation:2}),C})();var e=t(6483);const a=["class","pxp-content-title"],c=o=>[o];function E(o,C){1&o&&(n.j41(0,"h1"),n.EFF(1,"..."),n.k0s())}function w(o,C){if(1&o&&n.nrm(0,"h1",0),2&o){const m=n.XpG();n.Y8G("storefrontTranslate",m.config.titleMessage)("storefrontTranslateArgs",n.eq3(2,c,null==m.catalogContent?null:m.catalogContent.name))}}let l=(()=>{var o;class C extends P{}return(o=C).\u0275fac=(()=>{let m;return function(T){return(m||(m=n.xGo(o)))(T||o)}})(),o.\u0275cmp=n.VBU({type:o,selectors:[["div",8,"pxp-content-title"]],standalone:!1,features:[n.Vt3],attrs:a,decls:2,vars:1,consts:[[3,"storefrontTranslate","storefrontTranslateArgs"]],template:function(M,T){1&M&&n.DNE(0,E,2,0,"h1")(1,w,1,4,"h1",0),2&M&&n.vxM(T.ghost?0:1)},dependencies:[u.M],styles:["storefront-content-title>h1,.pxp-content-title>h1{margin-top:var(--contentHeaderMarginTop);margin-bottom:var(--contentHeaderMarginBottom);padding-top:var(--contentHeaderPaddingVert);padding-bottom:var(--contentHeaderPaddingVert);font-size:1.5rem}\n"],encapsulation:2}),C})(),v=(()=>{var o;class C{}return(o=C).\u0275fac=function(M){return new(M||o)},o.\u0275mod=n.$C({type:o}),o.\u0275inj=n.G2t({imports:[d.MD,e.h]}),C})();const O={component:P,leanDomComponent:l}},4765:(x,D,t)=>{t.d(D,{s:()=>u});var d=t(8251),i=t(3648),_=t(4438),n=t(177),p=t(7240);const s=["class","pxp-element"];function h(f,r){if(1&f&&_.nrm(0,"storefront-spinner"),2&f){const g=_.XpG();_.Aen(g.getSpinnerStyle())}}let u=(()=>{var f;class r extends i._{}return(f=r).\u0275fac=(()=>{let g;return function(e){return(g||(g=_.xGo(f)))(e||f)}})(),f.\u0275cmp=_.VBU({type:f,selectors:[["div",8,"pxp-element"]],standalone:!1,features:[_.Jv_([d.v]),_.Vt3],attrs:s,decls:3,vars:1,consts:[["viewTemplate",""],[3,"style",4,"ngIf"]],template:function(P,e){1&P&&(_.eu8(0,null,0),_.DNE(2,h,1,2,"storefront-spinner",1)),2&P&&(_.R7$(2),_.Y8G("ngIf",e.processing))},dependencies:[n.bT,p.t],styles:["storefront-element{max-width:100%;display:block}storefront-element>storefront-spinner{position:absolute;top:0;padding:calc(2 * var(--gutter));background-color:#0000001a;z-index:1;width:100%;height:100%}\n"],encapsulation:2,changeDetection:0}),r})()},1802:(x,D,t)=>{t.d(D,{c:()=>P});var d=t(9379),i=t(1210),_=t(9758),n=t(8075),p=t(177),s=t(4438),h=t(9516),u=t(3331),f=t(1652),r=t(5927),g=t(8909);let P=(()=>{var e;class a extends i.${constructor(E,w,l,v,O,o,C){super(l,E,w,O,o),this.elementRef=E,this.contextService=w,this.injector=l,this.router=v,this.document=O,this.globalService=o,this.domHelper=C,this.type="switch",this.defaultConfig={}}ngOnInit(){this.config=(0,d.A)({},this.baseConfig),this.checked=this.config.initialValue,super.ngOnInit(),this.contextService.viewContext$.subscribe(E=>{const w=this.config.paramScope===_.x.USER_ATTRIBUTE?E.userAttributes[this.config.param]:E[this.config.param];w&&(this.checked="true"===w)})}isChecked(){return this.checked}toggle(){this.setChecked(!this.checked)}setChecked(E){this.config.paramScope===_.x.USER_ATTRIBUTE?this.contextService.setUserAttribute(this.config.param,"".concat(E)):(0,n.CV)(this.router,{[this.config.param]:E})}}return(e=a).\u0275fac=function(E){return new(E||e)(s.rXU(s.aKT),s.rXU(h.V),s.rXU(s.zZn),s.rXU(u.Ix),s.rXU(p.qQ),s.rXU(f.d),s.rXU(r.S))},e.\u0275cmp=s.VBU({type:e,selectors:[["storefront-switch"]],hostVars:2,hostBindings:function(E,w){2&E&&s.AVh("checked",w.checked)},standalone:!1,features:[s.Vt3],decls:4,vars:2,consts:[[1,"label",3,"storefrontTranslate"],[1,"switch"],["type","checkbox",3,"change","checked"]],template:function(E,w){1&E&&(s.nrm(0,"label",0),s.j41(1,"label",1)(2,"input",2),s.bIt("change",function(){return w.toggle()}),s.k0s(),s.nrm(3,"span"),s.k0s()),2&E&&(s.Y8G("storefrontTranslate",w.config.label),s.R7$(2),s.Y8G("checked",w.isChecked()))},dependencies:[g.M],styles:['storefront-switch,.pxp-switch{align-items:center;display:flex}storefront-switch .label,.pxp-switch .label{margin:0 var(--gutter)}storefront-switch .switch,.pxp-switch .switch{text-align:left;width:calc(var(--switchWidth) - 2 * var(--switchBorderWidth));height:calc(var(--switchWidth) / 2);border-radius:var(--switchBorderRadius);background-color:var(--switchActiveColor);display:inline-block;position:relative;cursor:pointer}storefront-switch .switch>span,.pxp-switch .switch>span{display:block;width:100%;height:100%;border-radius:var(--switchBorderRadius)}storefront-switch .switch>span:before,storefront-switch .switch>span:after,.pxp-switch .switch>span:before,.pxp-switch .switch>span:after{content:"";cursor:pointer;position:absolute}storefront-switch .switch>span:before,.pxp-switch .switch>span:before{width:100%;height:100%;box-sizing:border-box;background-color:var(--switchBackgroundColor);border-radius:var(--switchBorderRadius);transition:opacity .2s ease-out .1s,transform .2s ease-out .1s;transform:scale(1);opacity:1}storefront-switch .switch>span:after,.pxp-switch .switch>span:after{top:var(--switchBorderWidth);z-index:3;transition:transform .4s cubic-bezier(.44,-.12,.07,1.15);width:calc(var(--switchWidth) / 2 - 2 * var(--switchBorderWidth));height:calc(var(--switchWidth) / 2 - 2 * var(--switchBorderWidth));background-color:var(--switchHandleColor);border-radius:100%;box-shadow:0 2px 5px #0000004d;left:var(--switchBorderWidth)}storefront-switch .switch>input[type=checkbox],.pxp-switch .switch>input[type=checkbox]{opacity:0;position:absolute}storefront-switch .switch>input[type=checkbox]:checked~span:before,.pxp-switch .switch>input[type=checkbox]:checked~span:before{transform:scale(0);opacity:.7}storefront-switch .switch>input[type=checkbox]:checked~span:after,.pxp-switch .switch>input[type=checkbox]:checked~span:after{transform:translate(100%)}\n'],encapsulation:2}),a})()},2960:(x,D,t)=>{t.d(D,{q:()=>p});var d=t(1802),i=t(4438),_=t(8909);const n=["class","pxp-switch"];let p=(()=>{var s;class h extends d.c{}return(s=h).\u0275fac=(()=>{let u;return function(r){return(u||(u=i.xGo(s)))(r||s)}})(),s.\u0275cmp=i.VBU({type:s,selectors:[["div",8,"pxp-switch"]],standalone:!1,features:[i.Vt3],attrs:n,decls:4,vars:2,consts:[[1,"label",3,"storefrontTranslate"],[1,"switch"],["type","checkbox",3,"change","checked"]],template:function(f,r){1&f&&(i.nrm(0,"label",0),i.j41(1,"label",1)(2,"input",2),i.bIt("change",function(){return r.toggle()}),i.k0s(),i.nrm(3,"span"),i.k0s()),2&f&&(i.Y8G("storefrontTranslate",r.config.label),i.R7$(2),i.Y8G("checked",r.isChecked()))},dependencies:[_.M],styles:['storefront-switch,.pxp-switch{align-items:center;display:flex}storefront-switch .label,.pxp-switch .label{margin:0 var(--gutter)}storefront-switch .switch,.pxp-switch .switch{text-align:left;width:calc(var(--switchWidth) - 2 * var(--switchBorderWidth));height:calc(var(--switchWidth) / 2);border-radius:var(--switchBorderRadius);background-color:var(--switchActiveColor);display:inline-block;position:relative;cursor:pointer}storefront-switch .switch>span,.pxp-switch .switch>span{display:block;width:100%;height:100%;border-radius:var(--switchBorderRadius)}storefront-switch .switch>span:before,storefront-switch .switch>span:after,.pxp-switch .switch>span:before,.pxp-switch .switch>span:after{content:"";cursor:pointer;position:absolute}storefront-switch .switch>span:before,.pxp-switch .switch>span:before{width:100%;height:100%;box-sizing:border-box;background-color:var(--switchBackgroundColor);border-radius:var(--switchBorderRadius);transition:opacity .2s ease-out .1s,transform .2s ease-out .1s;transform:scale(1);opacity:1}storefront-switch .switch>span:after,.pxp-switch .switch>span:after{top:var(--switchBorderWidth);z-index:3;transition:transform .4s cubic-bezier(.44,-.12,.07,1.15);width:calc(var(--switchWidth) / 2 - 2 * var(--switchBorderWidth));height:calc(var(--switchWidth) / 2 - 2 * var(--switchBorderWidth));background-color:var(--switchHandleColor);border-radius:100%;box-shadow:0 2px 5px #0000004d;left:var(--switchBorderWidth)}storefront-switch .switch>input[type=checkbox],.pxp-switch .switch>input[type=checkbox]{opacity:0;position:absolute}storefront-switch .switch>input[type=checkbox]:checked~span:before,.pxp-switch .switch>input[type=checkbox]:checked~span:before{transform:scale(0);opacity:.7}storefront-switch .switch>input[type=checkbox]:checked~span:after,.pxp-switch .switch>input[type=checkbox]:checked~span:after{transform:translate(100%)}\n'],encapsulation:2}),h})()},9645:(x,D,t)=>{t.r(D),t.d(D,{SwitchModule:()=>s,component:()=>h});var d=t(177),i=t(1802),_=t(6483),n=t(2960),p=t(4438);let s=(()=>{var u;class f{}return(u=f).\u0275fac=function(g){return new(g||u)},u.\u0275mod=p.$C({type:u}),u.\u0275inj=p.G2t({imports:[d.MD,_.h]}),f})();const h={component:i.c,leanDomComponent:n.q}},2364:(x,D,t)=>{t.d(D,{S:()=>p});var d=t(4412),i=t(4438),_=t(1626),n=t(9118);let p=(()=>{var s;class h{constructor(f,r){this.http=f,this.kioskConfigService=r,this.initialization=new d.t(null),this.data=[{identifier:"phone",minScreenWidth:null},{identifier:"tablet_small",minScreenWidth:533},{identifier:"tablet_large",minScreenWidth:720}]}init(){}getDeviceClass(){const r=this.data.reduce((g,P)=>window.innerWidth>=P.minScreenWidth?P:g,null);return r&&r.identifier}}return(s=h).\u0275fac=function(f){return new(f||s)(i.KVO(_.Qq),i.KVO(n.x))},s.\u0275prov=i.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),h})()},354:(x,D,t)=>{t.d(D,{s:()=>a});var d=t(467),i=t(5102),_=t(1413),n=t(4843),p=t(5964),s=t(6697),h=t(4438),u=t(496),f=t(1626),r=t(9118),g=t(3072),P=t(2364),e=t(9516);let a=(()=>{var c;class E{constructor(l,v,O,o,C,m,M){this.publicationService=l,this.http=v,this.purpleService=O,this.kioskConfigService=o,this.sessionService=C,this.deviceClassService=m,this.contextService=M,this.data=[],this.initPdf=new _.B,this.presenterLoaded=new _.B,this.subscriptions=[]}init(l){var v=this;return(0,d.A)(function*(){const[O,o]=yield Promise.all([(0,n._)(v.kioskConfigService.getConfig()),v.publicationService.selectByContentCriteria(l)]);v.kioskConfigData=O,v.content=o;const[C,m]=yield Promise.all([v.getLink(v.content,"pdf_single_page_download"),v.getLink(v.content,"pdf_download")]);yield v.getSinglePageDownloadLinkFromJSON(C),v.initPdf.next(m)})()}getLink(l,v){var O=this;return(0,d.A)(function*(){const o=yield(0,i.GA)(l,O.purpleService);if(l&&l.properties&&!o){let C=Object.keys(l.properties);for(let m=0;m<C.length;m++)if(C[m]===v)return O.getAttachmentLink(l,l.properties[C[m]]);return null}})()}getSinglePageDownloadLinkFromJSON(l){var v=this;return(0,d.A)(function*(){try{const O=v.presenterLoaded.pipe((0,p.p)(o=>o),(0,s.s)(1)).subscribe(function(){var o=(0,d.A)(function*(C){if(C){const S=yield(0,n._)(v.http.get(l));var m=WP.instance.getPurpleData().getPages();if(S){var M=0;v.data=[];for(const U of m){for(var T=parseInt(U.pageCount),B=[],y=0;y<T;y++)B.push(yield v.getAttachmentLink(v.content,S[M],M+1)),M++;v.data.push(B)}}}});return function(C){return o.apply(this,arguments)}}());v.subscriptions.push(O)}catch(O){console.error("Error fetching data from JSON link:",O)}})()}getAttachmentLink(l,v,O){var o=this;return(0,d.A)(function*(){const C=new URL(window.location.href).origin,m=o.contextService.getIsCustomerDomainUsed()?C:o.purpleService.getPurpleConfig().contentUrl,M=JSON.parse(localStorage.getItem("AppWebConfiguration")).id;let T="".concat(m,"/resources/web/attachment/").concat(M,"/").concat(l.id,"/").concat(v);T+="?preview=".concat(o.contextService.isPreview()),T+="&deviceId=".concat(localStorage.getItem("deviceId")),T+="&deviceClass=".concat(o.deviceClassService.getDeviceClass());const B=yield o.sessionService.getReceiptData(l);if(B){const{receipt:S,providerType:U}=B;T+="&receipt=".concat(window.encodeURIComponent(S)),T+="&providerType=".concat(U)}const y=o.sanitize(o.getFileName(l,v,O));return T+="&targetFilename=".concat(window.encodeURIComponent(y)),T})()}getSingleDownloadLink(){return this.data&&WP.instance&&WP.instance.getScroller()&&this.data[WP.instance.getScroller().getIndex()]}getDownloadLink(){var l=this;return(0,d.A)(function*(){return yield l.getLink(l.content,"pdf_download")})()}getFileName(l,v,O){const C=this.kioskConfigData.kioskConfig.downloadFileName,m=v.substr(v.lastIndexOf(".")),M=O?" - "+O:"";switch(C){case"publication_issue":return this.publicationService.currentPublication.name+" - "+l.name+M+m;case"issue":return l.name+M+m;default:return v}}sanitize(l){return l.replace(/,/g,"").replace(/\xe4/g,"ae").replace(/\xc4/g,"Ae").replace(/\xf6/g,"oe").replace(/\xd6/g,"Oe").replace(/\xfc/g,"ue").replace(/\xdc/g,"Ue")}ngOnDestroy(){this.subscriptions.forEach(l=>l.unsubscribe())}}return(c=E).\u0275fac=function(l){return new(l||c)(h.KVO(u.m),h.KVO(f.Qq),h.KVO(i.Wj),h.KVO(r.x),h.KVO(g.Q),h.KVO(P.S),h.KVO(e.V))},c.\u0275prov=h.jDH({token:c,factory:c.\u0275fac,providedIn:"root"}),E})()},3072:(x,D,t)=>{t.d(D,{Q:()=>s});var d=t(467),i=t(4404),n=t(4438),p=t(5102);let s=(()=>{var h;class u{constructor(r){this.purpleService=r}getReceiptData(r){var g=this;return(0,d.A)(function*(){return r.purchaseData.purchasedBy.includes(i.PurchaseOption.ENTITLEMENT)?{receipt:yield g.getAccessToken(),providerType:"entitlement"}:r.purchaseData.purchasedBy.includes(i.PurchaseOption.SUBSCRIPTION_CODE)?{receipt:(yield g.getSubscriptionCodes()).join(","),providerType:"subscriptionCode"}:null})()}getAccessToken(){var r=this;return(0,d.A)(function*(){const g=yield r.purpleService.purpleRef.entitlement.getUserData();return null==g?void 0:g.accessToken})()}getSubscriptionCodes(){var r=this;return(0,d.A)(function*(){return(yield r.purpleService.purpleRef.store.getSubscriptionCodes()).subscriptionCodes})()}}return(h=u).\u0275fac=function(r){return new(r||h)(n.KVO(p.Wj))},h.\u0275prov=n.jDH({token:h,factory:h.\u0275fac,providedIn:"root"}),u})()},7967:(x,D,t)=>{function d(i,_){return"object"!=typeof i?1===_?i:i+"S":1===_?i.singular:i.plural}t.d(D,{t:()=>d})}}]);
|
1
|
+
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["common"],{3472:(y,D,e)=>{e.d(D,{M:()=>E});var p=e(9379),t=e(9758),u=e(8179),n=e(362),v=e.n(n),g=e(4452),c=e(3713),h=e(3953);let E=(()=>{var o;class a extends c.r{getDataFromContext(r=this.context){return this.getSelectionScope()===t.x.USER_ATTRIBUTE?r.userAttributes[this.getParam()]:r[this.getParam()]}hasContextChanged(r){let T=super.hasContextChanged(r);if(!T&&this.isSelectionEnabled()){const x=this.getDataFromContext(),B=this.getDataFromContext(r);T=!v()(x,B)}return T}ngOnDestroy(){super.ngOnDestroy(),this.dataSource&&this.contextService.unregisterDataSource(this.dataSource)}getEntryConfig(r){return r&&r.ad||(0,p.A)({},this.baseConfig.content)}getEntryContext(r){var T;let x=(0,u.uQ)(null!==(T=this.getConfig().dataSource.entryId)&&void 0!==T?T:this.getDataType(),this.context,this.contextService.$functions,this.globalService.getGlobalData());return(0,p.A)((0,p.A)({},this.baseContext),{},{[x]:r})}getConfig(){return this.config||this.baseConfig}isSelectionEnabled(){return!1}stripChildConfigs(r){return"content"in r&&"object"==typeof r.content&&null!==r.content&&(r.content={_uuid:r.content._uuid,condition:r.content.condition}),r}getDataType(){return this.getConfig().dataSource.type}getGroupDataType(r){return r.dataSource.type}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),...(0,g.Kj)(this.baseConfig)].filter(r=>!!r)}}return(o=a).\u0275fac=(()=>{let l;return function(T){return(l||(l=h.xGo(o)))(T||o)}})(),o.\u0275dir=h.FsC({type:o,features:[h.Vt3]}),a})()},3303:(y,D,e)=>{e.d(D,{y:()=>n});var p=e(177),t=e(9733),u=e(3953);let n=(()=>{var v;class g{}return(v=g).\u0275fac=function(h){return new(h||v)},v.\u0275mod=u.$C({type:v}),v.\u0275inj=u.G2t({imports:[p.MD,t.ContentTitleModule]}),g})()},5848:(y,D,e)=>{e.d(D,{Q:()=>g});var p=e(467),t=e(3953),u=e(1210),n=e(5706),v=e(5102);let g=(()=>{var c;class h extends u.${constructor(){super(...arguments),this.purpleService=(0,t.WQX)(v.Wj),this.changeDetectorRef=(0,t.WQX)(t.gRc)}get contextKey(){var o,a,l;return null!==(o=null!==(a=null===(l=this.config)||void 0===l?void 0:l.contextKey)&&void 0!==a?a:this.defaultConfig.contextKey)&&void 0!==o?o:"content"}updatePostWithOptionalData(o,a){var l=this;return(0,p.A)(function*(){const r=yield l.purpleService.getOptionalData(l.catalogContent,o,a);return(0,n.mF)(l.catalogContent)?(l.catalogContent=r,l.catalogContent):(0,n.G4)(l.catalogContent)?(l.bundleContent=(0,n.Ig)(l.catalogContent),l.bundleContent[a]=r,l.bundleContent[a]):void 0})()}hasContentChanged(o,a){return(null==o?void 0:o.id)!==(null==a?void 0:a.id)||this.hasVersionChanged(o,a)}hasVersionChanged(o,a){return(null==o?void 0:o.version)!==(null==a?void 0:a.version)}onConfigChanges(){var o;let a=null===(o=this.context)||void 0===o?void 0:o[this.contextKey];Array.isArray(a)&&(a=a[0]);const l=this.hasContentChanged(this.catalogContent,a)&&!!a;return l&&(this.catalogContent=a),this.changeDetectorRef.markForCheck(),l}isGhost(){var o;return!this.config||!(null!==(o=this.context)&&void 0!==o&&o[this.contextKey])}ngOnDestroy(){super.ngOnDestroy()}getContextKey(){return this.contextKey}}return(c=h).\u0275fac=(()=>{let E;return function(a){return(E||(E=t.xGo(c)))(a||c)}})(),c.\u0275dir=t.FsC({type:c,features:[t.Vt3]}),h})()},9733:(y,D,e)=>{e.r(D),e.d(D,{ContentTitleModule:()=>w,component:()=>O});var p=e(177),t=e(3953);const u={titleMessage:"%s"};var n=e(5848),v=e(9516),g=e(5102),c=e(1652),h=e(8909);const E=i=>[i];function o(i,_){1&i&&(t.j41(0,"h1"),t.EFF(1,"..."),t.k0s())}function a(i,_){if(1&i&&t.nrm(0,"h1",0),2&i){const s=t.XpG(2);t.Y8G("storefrontTranslate",s.config.titleMessage)("storefrontTranslateArgs",t.eq3(2,E,null==s.catalogContent?null:s.catalogContent.name))}}function l(i,_){if(1&i&&t.DNE(0,o,2,0,"h1")(1,a,1,4,"h1",0),2&i){const s=t.XpG();t.vxM(s.ghost?0:1)}}let r=(()=>{var i;class _ extends n.Q{constructor(){super(...arguments),this.elementRef=(0,t.WQX)(t.aKT),this.contextService=(0,t.WQX)(v.V),this.injector=(0,t.WQX)(t.zZn),this.document=(0,t.WQX)(p.qQ),this.purpleService=(0,t.WQX)(g.Wj),this.globalService=(0,t.WQX)(c.d),this.defaultConfig=u,this.type="content-title"}}return(i=_).\u0275fac=(()=>{let s;return function(P){return(s||(s=t.xGo(i)))(P||i)}})(),i.\u0275cmp=t.VBU({type:i,selectors:[["storefront-content-title"]],standalone:!1,features:[t.Vt3],decls:1,vars:1,consts:[[3,"storefrontTranslate","storefrontTranslateArgs"]],template:function(M,P){1&M&&t.DNE(0,l,2,1),2&M&&t.vxM(P.domHelper.leanDom?-1:0)},dependencies:[h.M],styles:["storefront-content-title>h1{margin-top:var(--contentHeaderMarginTop);margin-bottom:var(--contentHeaderMarginBottom);padding-top:var(--contentHeaderPaddingVert);padding-bottom:var(--contentHeaderPaddingVert);font-size:1.5rem}\n"],encapsulation:2}),_})();const T=["class","pxp-content-title"],x=i=>[i];function B(i,_){1&i&&(t.j41(0,"h1"),t.EFF(1,"..."),t.k0s())}function W(i,_){if(1&i&&t.nrm(0,"h1",0),2&i){const s=t.XpG(2);t.Y8G("storefrontTranslate",s.config.titleMessage)("storefrontTranslateArgs",t.eq3(2,x,null==s.catalogContent?null:s.catalogContent.name))}}function C(i,_){if(1&i&&t.DNE(0,B,2,0,"h1")(1,W,1,4,"h1",0),2&i){const s=t.XpG();t.vxM(s.ghost?0:1)}}let m=(()=>{var i;class _ extends r{constructor(){super(...arguments),this.translateDirective=(0,t.WQX)(h.M)}ngAfterViewInit(){setTimeout(()=>{var M,P;this.translateDirective.applyTranslation(null===(M=this.config)||void 0===M?void 0:M.titleMessage,[null===(P=this.catalogContent)||void 0===P?void 0:P.name])})}}return(i=_).\u0275fac=(()=>{let s;return function(P){return(s||(s=t.xGo(i)))(P||i)}})(),i.\u0275cmp=t.VBU({type:i,selectors:[["h1",8,"pxp-content-title"]],standalone:!1,features:[t.nM4([h.M]),t.Vt3],attrs:T,decls:1,vars:1,consts:[[3,"storefrontTranslate","storefrontTranslateArgs"]],template:function(M,P){1&M&&t.DNE(0,C,2,1),2&M&&t.vxM(P.domHelper.leanDom?-1:0)},dependencies:[h.M],styles:[".pxp-content-title{margin-top:var(--contentHeaderMarginTop);margin-bottom:var(--contentHeaderMarginBottom);padding-top:var(--contentHeaderPaddingVert);padding-bottom:var(--contentHeaderPaddingVert);font-size:1.5rem}\n"],encapsulation:2}),_})(),w=(()=>{var i;class _{}return(i=_).\u0275fac=function(M){return new(M||i)},i.\u0275mod=t.$C({type:i}),i.\u0275inj=t.G2t({imports:[p.MD]}),_})();const O={component:r,leanDomComponent:m}},1802:(y,D,e)=>{e.d(D,{c:()=>h});var p=e(9379),t=e(3953),u=e(1210),n=e(3331),v=e(9758),g=e(8075),c=e(8909);let h=(()=>{var E;class o extends u.${constructor(){super(...arguments),this.router=(0,t.WQX)(n.Ix),this.type="switch",this.defaultConfig={}}ngOnInit(){this.config=(0,p.A)({},this.baseConfig),this.checked=this.config.initialValue,super.ngOnInit(),this.contextService.viewContext$.subscribe(l=>{const r=this.config.paramScope===v.x.USER_ATTRIBUTE?l.userAttributes[this.config.param]:l[this.config.param];r&&(this.checked="true"===r)})}isChecked(){return this.checked}toggle(){this.setChecked(!this.checked)}setChecked(l){this.config.paramScope===v.x.USER_ATTRIBUTE?this.contextService.setUserAttribute(this.config.param,"".concat(l)):(0,g.CV)(this.router,{[this.config.param]:l})}}return(E=o).\u0275fac=(()=>{let a;return function(r){return(a||(a=t.xGo(E)))(r||E)}})(),E.\u0275cmp=t.VBU({type:E,selectors:[["storefront-switch"]],hostVars:2,hostBindings:function(l,r){2&l&&t.AVh("checked",r.checked)},standalone:!1,features:[t.Vt3],decls:4,vars:2,consts:[[1,"label",3,"storefrontTranslate"],[1,"switch"],["type","checkbox",3,"change","checked"]],template:function(l,r){1&l&&(t.nrm(0,"label",0),t.j41(1,"label",1)(2,"input",2),t.bIt("change",function(){return r.toggle()}),t.k0s(),t.nrm(3,"span"),t.k0s()),2&l&&(t.Y8G("storefrontTranslate",r.config.label),t.R7$(2),t.Y8G("checked",r.isChecked()))},dependencies:[c.M],styles:['storefront-switch,.pxp-switch{align-items:center;display:flex}storefront-switch .label,.pxp-switch .label{margin:0 var(--gutter)}storefront-switch .switch,.pxp-switch .switch{text-align:left;width:calc(var(--switchWidth) - 2 * var(--switchBorderWidth));height:calc(var(--switchWidth) / 2);border-radius:var(--switchBorderRadius);background-color:var(--switchActiveColor);display:inline-block;position:relative;cursor:pointer}storefront-switch .switch>span,.pxp-switch .switch>span{display:block;width:100%;height:100%;border-radius:var(--switchBorderRadius)}storefront-switch .switch>span:before,storefront-switch .switch>span:after,.pxp-switch .switch>span:before,.pxp-switch .switch>span:after{content:"";cursor:pointer;position:absolute}storefront-switch .switch>span:before,.pxp-switch .switch>span:before{width:100%;height:100%;box-sizing:border-box;background-color:var(--switchBackgroundColor);border-radius:var(--switchBorderRadius);transition:opacity .2s ease-out .1s,transform .2s ease-out .1s;transform:scale(1);opacity:1}storefront-switch .switch>span:after,.pxp-switch .switch>span:after{top:var(--switchBorderWidth);z-index:3;transition:transform .4s cubic-bezier(.44,-.12,.07,1.15);width:calc(var(--switchWidth) / 2 - 2 * var(--switchBorderWidth));height:calc(var(--switchWidth) / 2 - 2 * var(--switchBorderWidth));background-color:var(--switchHandleColor);border-radius:100%;box-shadow:0 2px 5px #0000004d;left:var(--switchBorderWidth)}storefront-switch .switch>input[type=checkbox],.pxp-switch .switch>input[type=checkbox]{opacity:0;position:absolute}storefront-switch .switch>input[type=checkbox]:checked~span:before,.pxp-switch .switch>input[type=checkbox]:checked~span:before{transform:scale(0);opacity:.7}storefront-switch .switch>input[type=checkbox]:checked~span:after,.pxp-switch .switch>input[type=checkbox]:checked~span:after{transform:translate(100%)}\n'],encapsulation:2}),o})()},2960:(y,D,e)=>{e.d(D,{q:()=>v});var p=e(1802),t=e(3953),u=e(8909);const n=["class","pxp-switch"];let v=(()=>{var g;class c extends p.c{}return(g=c).\u0275fac=(()=>{let h;return function(o){return(h||(h=t.xGo(g)))(o||g)}})(),g.\u0275cmp=t.VBU({type:g,selectors:[["div",8,"pxp-switch"]],standalone:!1,features:[t.Vt3],attrs:n,decls:4,vars:2,consts:[[1,"label",3,"storefrontTranslate"],[1,"switch"],["type","checkbox",3,"change","checked"]],template:function(E,o){1&E&&(t.nrm(0,"label",0),t.j41(1,"label",1)(2,"input",2),t.bIt("change",function(){return o.toggle()}),t.k0s(),t.nrm(3,"span"),t.k0s()),2&E&&(t.Y8G("storefrontTranslate",o.config.label),t.R7$(2),t.Y8G("checked",o.isChecked()))},dependencies:[u.M],styles:['storefront-switch,.pxp-switch{align-items:center;display:flex}storefront-switch .label,.pxp-switch .label{margin:0 var(--gutter)}storefront-switch .switch,.pxp-switch .switch{text-align:left;width:calc(var(--switchWidth) - 2 * var(--switchBorderWidth));height:calc(var(--switchWidth) / 2);border-radius:var(--switchBorderRadius);background-color:var(--switchActiveColor);display:inline-block;position:relative;cursor:pointer}storefront-switch .switch>span,.pxp-switch .switch>span{display:block;width:100%;height:100%;border-radius:var(--switchBorderRadius)}storefront-switch .switch>span:before,storefront-switch .switch>span:after,.pxp-switch .switch>span:before,.pxp-switch .switch>span:after{content:"";cursor:pointer;position:absolute}storefront-switch .switch>span:before,.pxp-switch .switch>span:before{width:100%;height:100%;box-sizing:border-box;background-color:var(--switchBackgroundColor);border-radius:var(--switchBorderRadius);transition:opacity .2s ease-out .1s,transform .2s ease-out .1s;transform:scale(1);opacity:1}storefront-switch .switch>span:after,.pxp-switch .switch>span:after{top:var(--switchBorderWidth);z-index:3;transition:transform .4s cubic-bezier(.44,-.12,.07,1.15);width:calc(var(--switchWidth) / 2 - 2 * var(--switchBorderWidth));height:calc(var(--switchWidth) / 2 - 2 * var(--switchBorderWidth));background-color:var(--switchHandleColor);border-radius:100%;box-shadow:0 2px 5px #0000004d;left:var(--switchBorderWidth)}storefront-switch .switch>input[type=checkbox],.pxp-switch .switch>input[type=checkbox]{opacity:0;position:absolute}storefront-switch .switch>input[type=checkbox]:checked~span:before,.pxp-switch .switch>input[type=checkbox]:checked~span:before{transform:scale(0);opacity:.7}storefront-switch .switch>input[type=checkbox]:checked~span:after,.pxp-switch .switch>input[type=checkbox]:checked~span:after{transform:translate(100%)}\n'],encapsulation:2}),c})()},9645:(y,D,e)=>{e.r(D),e.d(D,{SwitchModule:()=>v,component:()=>g});var p=e(177),t=e(1802),u=e(2960),n=e(3953);let v=(()=>{var c;class h{}return(c=h).\u0275fac=function(o){return new(o||c)},c.\u0275mod=n.$C({type:c}),c.\u0275inj=n.G2t({imports:[p.MD]}),h})();const g={component:t.c,leanDomComponent:u.q}},8301:(y,D,e)=>{e.d(D,{d:()=>u});var p=e(177),t=e(3953);let u=(()=>{var n;class v{}return(n=v).\u0275fac=function(c){return new(c||n)},n.\u0275mod=t.$C({type:n}),n.\u0275inj=t.G2t({imports:[p.MD]}),v})()},2316:(y,D,e)=>{e.r(D),e.d(D,{ModalComponent:()=>_});var p=e(9379),t=e(467),u=e(177),n=e(3953),v=e(9079),g=e(3331),c=e(5102),h=e(9745),E=e(8251),o=e(610),a=e(3178),l=e(2962),r=e(7879),T=e(6080),x=e(8301),B=e(2868),W=e(680);const C=["template"],m=["scrollContainer"],w=["container"];function O(s,M){}function i(s,M){1&s&&n.DNE(0,O,0,0,"ng-template",6,2,n.C5r),2&s&&n.Y8G("baseConfig",M.$implicit)}let _=(()=>{var s;class M extends T.v{constructor(){super(...arguments),this.document=(0,n.WQX)(u.qQ),this.platformId=(0,n.WQX)(n.Agw),this.purpleService=(0,n.WQX)(c.Wj),this.purpleEnv=(0,n.WQX)(r.r6),this.renderer=(0,n.WQX)(n.sFG),this.router=(0,n.WQX)(g.Ix),this.context={},this.isModal=!0}static isValidAnimation(d){return Object.values(h.L).includes(d)}ngOnInit(){this.contextService.closeModalSubject.pipe((0,v.pQ)(this.destroyRef)).subscribe(b=>{this.elementRef.nativeElement.contains(b)?this.onClickClose():this.contextService.closeModalCompleteSubject.next(!1)}),this.hasNavigated=this.contextService.navigationCount>0,this.renderer.addClass(this.document.body,"no-scroll");const d=this.store.snapshot(this.route.params),f=d&&d.animation;this.animation=f&&M.isValidAnimation(f)?f:h.L.SLIDE_IN}ngAfterViewInit(){var d=()=>super.ngOnInit,f=this;return(0,t.A)(function*(){yield(0,a.wR)(1);const b=getComputedStyle(f.container.nativeElement),S=()=>{d().call(f),f.initialized=!0},A=parseFloat(b.transitionDuration);A>0&&f.animation!==h.L.POP_UP?setTimeout(S,A):S(),f.elementRef.nativeElement.classList.add("visible"),f.displayMode=yield f.purpleService.getDisplayMode()})()}ngOnDestroy(){this.renderer.removeClass(this.document.body,"no-scroll"),this.contextService.clearOutletData((0,l.kO)(this.elementRef.nativeElement))}getPath(){return this.route.snapshot.params.id}getTrackingConfig(d){return(0,p.A)((0,p.A)({},super.getTrackingConfig(d)),{},{popup:!0})}onConfigReceived(){}onClick(){this.initialized&&this.onClickClose()}onClickClose(){var d=this;return(0,t.A)(function*(){d.elementRef.nativeElement.classList.remove("visible");const f=(0,u.UE)(d.platformId)?getComputedStyle(d.container.nativeElement):{},b=()=>{d.store.dispatch((0,o.k4)({url:window.location.href,key:"POPUP_CLOSE_CLICKED",params:{popup:d.viewConfig&&d.viewConfig.name}})),!d.hasNavigated&&(0,a.dg)(d.displayMode)?d.purpleService.closeView():d.router.navigate([{outlets:{modal:null}}],{queryParamsHandling:"merge",replaceUrl:!0}),d.contextService.closeModalCompleteSubject.next(!0)};parseFloat(f.transitionDuration)>0?(0,l.L$)(d.container.nativeElement,"transitionend",b):b()})()}onClickContent(d){d.stopPropagation()}update(){return(0,t.A)(function*(){})()}}return(s=M).\u0275fac=(()=>{let P;return function(f){return(P||(P=n.xGo(s)))(f||s)}})(),s.\u0275cmp=n.VBU({type:s,selectors:[["storefront-modal"]],viewQuery:function(d,f){if(1&d&&(n.GBs(C,7,n.c1b),n.GBs(m,7,n.aKT),n.GBs(w,7,n.aKT)),2&d){let b;n.mGM(b=n.lsd())&&(f.template=b.first),n.mGM(b=n.lsd())&&(f.scrollContainer=b.first),n.mGM(b=n.lsd())&&(f.container=b.first)}},hostVars:1,hostBindings:function(d,f){1&d&&n.bIt("click",function(){return f.onClick()}),2&d&&n.BMQ("animation",f.animation)},features:[n.Jv_([E.B]),n.Vt3],decls:7,vars:4,consts:[["container",""],["scrollContainer",""],["viewChild",""],[3,"click"],[1,"icon","icon-close",3,"click"],["storefrontCheckOverflowTarget","self",1,"modal-content",3,"storefrontCheckOverflow"],[3,"pxpDynamicComponent","baseConfig"]],template:function(d,f){if(1&d){const b=n.RV6();n.j41(0,"div",3,0),n.bIt("click",function(A){return n.eBV(b),n.Njj(f.onClickContent(A))}),n.j41(2,"button",4),n.bIt("click",function(){return n.eBV(b),n.Njj(f.onClickClose())}),n.k0s(),n.j41(3,"div",5,1),n.Z7z(5,i,2,1,null,6,n.Vm6),n.k0s()()}2&d&&(n.ZvI("modal-container ",f.viewConfig&&f.viewConfig.name,""),n.R7$(3),n.Y8G("storefrontCheckOverflow","vertical"),n.R7$(2),n.Dyx(f.children))},dependencies:[x.d,W.G,B.q],styles:["storefront-modal,.pxp-modal{position:fixed;height:auto;bottom:0;width:100%;left:0;top:0;background:transparent;z-index:21;overflow:hidden;display:flex;justify-content:center;align-items:center;transition:background-color 60ms ease-in}storefront-modal[animation=POP_UP] .modal-container,.pxp-modal[animation=POP_UP] .modal-container{min-width:200px;min-height:200px;max-width:90%;max-height:90%;width:auto;transform:scale(0);position:relative}storefront-modal[animation=POP_UP] .modal-container .modal-content,.pxp-modal[animation=POP_UP] .modal-container .modal-content{padding:var(--modalPadding);padding-bottom:var(--modalPaddingBottom)}storefront-modal[animation=POP_UP].visible,.pxp-modal[animation=POP_UP].visible{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background-color:transparent}storefront-modal[animation=POP_UP].visible .modal-container,.pxp-modal[animation=POP_UP].visible .modal-container{transform:scale(1);top:auto;left:auto}storefront-modal.visible,.pxp-modal.visible{opacity:1;transition:background-color 60ms ease-out;background-color:#00000080}storefront-modal.visible .modal-container,.pxp-modal.visible .modal-container{transition:transform .2s ease-out 60ms;transform:translateY(0)}storefront-modal .modal-content,.pxp-modal .modal-content{overflow:auto}storefront-modal .modal-content>storefront-element:last-child,storefront-modal .modal-content>div:last-child,.pxp-modal .modal-content>storefront-element:last-child,.pxp-modal .modal-content>div:last-child{margin-bottom:var(--modalPaddingBottom)}storefront-modal .modal-container,.pxp-modal .modal-container{position:absolute;top:var(--appBarHeight);bottom:0;height:auto;width:100%;background-color:var(--modalBgColor);overflow:auto;display:flex;flex-direction:column;transform:translateY(100%);transition:transform .15s ease-in}storefront-modal .modal-container>button.icon-close,.pxp-modal .modal-container>button.icon-close{align-self:flex-end;width:32px;height:32px;flex-shrink:0;font-size:18px;margin:var(--gutter)}storefront-modal .modal-container .modal-content.scrollable-vert.scrollable-bottom,.pxp-modal .modal-container .modal-content.scrollable-vert.scrollable-bottom{-webkit-mask-image:linear-gradient(to bottom,black 0%,black calc(100% - 2 * var(--gutter)),rgba(0,0,0,0) 100%);mask-image:linear-gradient(to bottom,#000,#000 calc(100% - 2 * var(--gutter)),#0000)}storefront-modal .modal-container .modal-content.scrollable-vert.scrollable-top,.pxp-modal .modal-container .modal-content.scrollable-vert.scrollable-top{-webkit-mask-image:linear-gradient(to top,black 0%,black calc(100% - 2 * var(--gutter)),rgba(0,0,0,0) 100%);mask-image:linear-gradient(to top,#000,#000 calc(100% - 2 * var(--gutter)),#0000)}storefront-modal .modal-container .modal-content.scrollable-vert.scrollable-bottom.scrollable-top,.pxp-modal .modal-container .modal-content.scrollable-vert.scrollable-bottom.scrollable-top{-webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,0) 0%,black calc(2 * var(--gutter)),black calc(100% - 2 * var(--gutter)),rgba(0,0,0,0) 100%);mask-image:linear-gradient(to bottom,#0000,#000 calc(2 * var(--gutter)),#000 calc(100% - 2 * var(--gutter)),#0000)}\n"],encapsulation:2}),M})()},2364:(y,D,e)=>{e.d(D,{S:()=>t});var p=e(3953);let t=(()=>{var u;class n{constructor(){this.data=[{identifier:"phone",minScreenWidth:null},{identifier:"tablet_small",minScreenWidth:533},{identifier:"tablet_large",minScreenWidth:720}]}init(){}getDeviceClass(){const c=this.data.reduce((h,E)=>window.innerWidth>=E.minScreenWidth?E:h,null);return c&&c.identifier}}return(u=n).\u0275fac=function(g){return new(g||u)},u.\u0275prov=p.jDH({token:u,factory:u.\u0275fac,providedIn:"root"}),n})()},354:(y,D,e)=>{e.d(D,{s:()=>T});var p=e(467),t=e(3953),u=e(496),n=e(5102),v=e(9118),g=e(3072),c=e(1413),h=e(4843),E=e(2364),o=e(1626),a=e(5964),l=e(6697),r=e(7879);let T=(()=>{var x;class B{constructor(){this.publicationService=(0,t.WQX)(u.m),this.http=(0,t.WQX)(o.Qq),this.purpleService=(0,t.WQX)(n.Wj),this.kioskConfigService=(0,t.WQX)(v.x),this.sessionService=(0,t.WQX)(g.Q),this.deviceClassService=(0,t.WQX)(E.S),this.appData=(0,t.WQX)(r.fj),this.data=[],this.initPdf=new c.B,this.presenterLoaded=new c.B,this.subscriptions=[]}init(C){var m=this;return(0,p.A)(function*(){const[w,O]=yield Promise.all([(0,h._)(m.kioskConfigService.getConfig()),m.publicationService.selectByContentCriteria(C)]);m.kioskConfigData=w,m.content=O;const[i,_]=yield Promise.all([m.getLink(m.content,"pdf_single_page_download"),m.getLink(m.content,"pdf_download")]);yield m.getSinglePageDownloadLinkFromJSON(i),m.initPdf.next(_)})()}getLink(C,m){var w=this;return(0,p.A)(function*(){const O=yield(0,n.GA)(C,w.purpleService);if(C&&C.properties&&!O){let i=Object.keys(C.properties);for(let _=0;_<i.length;_++)if(i[_]===m)return w.getAttachmentLink(C,C.properties[i[_]]);return null}})()}getSinglePageDownloadLinkFromJSON(C){var m=this;return(0,p.A)(function*(){try{const w=m.presenterLoaded.pipe((0,a.p)(O=>O),(0,l.s)(1)).subscribe(function(){var O=(0,p.A)(function*(i){if(i){const f=yield(0,h._)(m.http.get(C));var _=WP.instance.getPurpleData().getPages();if(f){var s=0;m.data=[];for(const b of _){for(var M=parseInt(b.pageCount),P=[],d=0;d<M;d++)P.push(yield m.getAttachmentLink(m.content,f[s],s+1)),s++;m.data.push(P)}}}});return function(i){return O.apply(this,arguments)}}());m.subscriptions.push(w)}catch(w){console.error("Error fetching data from JSON link:",w)}})()}getAttachmentLink(C,m,w){var O=this;return(0,p.A)(function*(){const i=JSON.parse(localStorage.getItem("AppWebConfiguration")).id;let _="".concat(O.appData.baseUrl,"/resources/web/attachment/").concat(i,"/").concat(C.id,"/").concat(m);_+="?deviceId=".concat(localStorage.getItem("deviceId")),_+="&deviceClass=".concat(O.deviceClassService.getDeviceClass()),O.appData.preview&&(_+="&preview=true");const s=yield O.sessionService.getReceiptData(C);if(s){const{receipt:P,providerType:d}=s;_+="&receipt=".concat(window.encodeURIComponent(P)),_+="&providerType=".concat(d)}const M=O.sanitize(O.getFileName(C,m,w));return _+="&targetFilename=".concat(window.encodeURIComponent(M)),_})()}getSingleDownloadLink(){return this.data&&WP.instance&&WP.instance.getScroller()&&this.data[WP.instance.getScroller().getIndex()]}getDownloadLink(){var C=this;return(0,p.A)(function*(){return yield C.getLink(C.content,"pdf_download")})()}getFileName(C,m,w){const i=this.kioskConfigData.kioskConfig.downloadFileName,_=m.substr(m.lastIndexOf(".")),s=w?" - "+w:"";switch(i){case"publication_issue":return this.publicationService.currentPublication.name+" - "+C.name+s+_;case"issue":return C.name+s+_;default:return m}}sanitize(C){return C.replace(/,/g,"").replace(/\xe4/g,"ae").replace(/\xc4/g,"Ae").replace(/\xf6/g,"oe").replace(/\xd6/g,"Oe").replace(/\xfc/g,"ue").replace(/\xdc/g,"Ue")}ngOnDestroy(){this.subscriptions.forEach(C=>C.unsubscribe())}}return(x=B).\u0275fac=function(C){return new(C||x)},x.\u0275prov=t.jDH({token:x,factory:x.\u0275fac,providedIn:"root"}),B})()},3072:(y,D,e)=>{e.d(D,{Q:()=>g});var p=e(467),t=e(3953),u=e(4404),v=e(5102);let g=(()=>{var c;class h{constructor(){this.purpleService=(0,t.WQX)(v.Wj)}getReceiptData(o){var a=this;return(0,p.A)(function*(){return o.purchaseData.purchasedBy.includes(u.PurchaseOption.ENTITLEMENT)?{receipt:yield a.getAccessToken(),providerType:"entitlement"}:o.purchaseData.purchasedBy.includes(u.PurchaseOption.SUBSCRIPTION_CODE)?{receipt:(yield a.getSubscriptionCodes()).join(","),providerType:"subscriptionCode"}:null})()}getAccessToken(){var o=this;return(0,p.A)(function*(){const a=yield o.purpleService.purpleRef.entitlement.getUserData();return null==a?void 0:a.accessToken})()}getSubscriptionCodes(){var o=this;return(0,p.A)(function*(){return(yield o.purpleService.purpleRef.store.getSubscriptionCodes()).subscriptionCodes})()}}return(c=h).\u0275fac=function(o){return new(o||c)},c.\u0275prov=t.jDH({token:c,factory:c.\u0275fac,providedIn:"root"}),h})()},7967:(y,D,e)=>{function p(t,u){return"object"!=typeof t?1===u?t:t+"S":1===u?t.singular:t.plural}e.d(D,{t:()=>p})}}]);
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["default-node_modules_angular_forms_fesm2022_forms_mjs"],{9417:(bn,gt,_)=>{_.d(gt,{BC:()=>Ge,YN:()=>Vn,Zm:()=>$,cV:()=>k,cb:()=>Ie,me:()=>w,qT:()=>Ze,vS:()=>oe});var u=_(9379),s=_(1660),i=_(4438),he=_(177),vt=_(9724),yt=_(7468),At=_(1413),Ct=_(6354);let fe=(()=>{var n;class e{constructor(t,o){(0,s.A)(this,"_renderer",void 0),(0,s.A)(this,"_elementRef",void 0),(0,s.A)(this,"onChange",a=>{}),(0,s.A)(this,"onTouched",()=>{}),this._renderer=t,this._elementRef=o}setProperty(t,o){this._renderer.setProperty(this._elementRef.nativeElement,t,o)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return n=e,(0,s.A)(e,"\u0275fac",function(t){return new(t||n)(i.rXU(i.sFG),i.rXU(i.aKT))}),(0,s.A)(e,"\u0275dir",i.FsC({type:n})),e})(),y=(()=>{var n;class e extends fe{}return n=e,(0,s.A)(e,"\u0275fac",(()=>{let r;return function(o){return(r||(r=i.xGo(n)))(o||n)}})()),(0,s.A)(e,"\u0275dir",i.FsC({type:n,features:[i.Vt3]})),e})();const f=new i.nKC(""),Vt={provide:f,useExisting:(0,i.Rfq)(()=>$),multi:!0};let $=(()=>{var n;class e extends y{writeValue(t){this.setProperty("checked",t)}}return n=e,(0,s.A)(e,"\u0275fac",(()=>{let r;return function(o){return(r||(r=i.xGo(n)))(o||n)}})()),(0,s.A)(e,"\u0275dir",i.FsC({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,o){1&t&&i.bIt("change",function(l){return o.onChange(l.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[i.Jv_([Vt]),i.Vt3]})),e})();const bt={provide:f,useExisting:(0,i.Rfq)(()=>w),multi:!0},Dt=new i.nKC("");let w=(()=>{var n;class e extends fe{constructor(t,o,a){super(t,o),(0,s.A)(this,"_compositionMode",void 0),(0,s.A)(this,"_composing",!1),this._compositionMode=a,null==this._compositionMode&&(this._compositionMode=!function Mt(){const n=(0,he.QT)()?(0,he.QT)().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return n=e,(0,s.A)(e,"\u0275fac",function(t){return new(t||n)(i.rXU(i.sFG),i.rXU(i.aKT),i.rXU(Dt,8))}),(0,s.A)(e,"\u0275dir",i.FsC({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,o){1&t&&i.bIt("input",function(l){return o._handleInput(l.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(l){return o._compositionEnd(l.target.value)})},standalone:!1,features:[i.Jv_([bt]),i.Vt3]})),e})();const c=new i.nKC(""),g=new i.nKC("");function be(n){return null!=n}function Me(n){return(0,i.jNT)(n)?(0,vt.H)(n):n}function De(n){let e={};return n.forEach(r=>{e=null!=r?(0,u.A)((0,u.A)({},e),r):e}),0===Object.keys(e).length?null:e}function Fe(n,e){return e.map(r=>r(n))}function Ee(n){return n.map(e=>function Et(n){return!n.validate}(e)?e:r=>e.validate(r))}function H(n){return null!=n?function we(n){if(!n)return null;const e=n.filter(be);return 0==e.length?null:function(r){return De(Fe(r,e))}}(Ee(n)):null}function W(n){return null!=n?function Oe(n){if(!n)return null;const e=n.filter(be);return 0==e.length?null:function(r){const t=Fe(r,e).map(Me);return(0,yt.p)(t).pipe((0,Ct.T)(De))}}(Ee(n)):null}function Ne(n,e){return null===n?[e]:Array.isArray(n)?[...n,e]:[n,e]}function j(n){return n?Array.isArray(n)?n:[n]:[]}function N(n,e){return Array.isArray(n)?n.includes(e):n===e}function Re(n,e){const r=j(e);return j(n).forEach(o=>{N(r,o)||r.push(o)}),r}function Be(n,e){return j(e).filter(r=>!N(n,r))}class Pe{constructor(){(0,s.A)(this,"_composedValidatorFn",void 0),(0,s.A)(this,"_composedAsyncValidatorFn",void 0),(0,s.A)(this,"_rawValidators",[]),(0,s.A)(this,"_rawAsyncValidators",[]),(0,s.A)(this,"_onDestroyCallbacks",[])}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=H(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=W(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return!!this.control&&this.control.hasError(e,r)}getError(e,r){return this.control?this.control.getError(e,r):null}}class h extends Pe{constructor(...e){super(...e),(0,s.A)(this,"name",void 0)}get formDirective(){return null}get path(){return null}}class v extends Pe{constructor(...e){super(...e),(0,s.A)(this,"_parent",null),(0,s.A)(this,"name",null),(0,s.A)(this,"valueAccessor",null)}}class Ue{constructor(e){(0,s.A)(this,"_cd",void 0),this._cd=e}get isTouched(){var e,r,t;return null===(e=this._cd)||void 0===e||null===(e=e.control)||void 0===e||null===(r=e._touched)||void 0===r||r.call(e),!(null===(t=this._cd)||void 0===t||null===(t=t.control)||void 0===t||!t.touched)}get isUntouched(){var e;return!(null===(e=this._cd)||void 0===e||null===(e=e.control)||void 0===e||!e.untouched)}get isPristine(){var e,r,t;return null===(e=this._cd)||void 0===e||null===(e=e.control)||void 0===e||null===(r=e._pristine)||void 0===r||r.call(e),!(null===(t=this._cd)||void 0===t||null===(t=t.control)||void 0===t||!t.pristine)}get isDirty(){var e;return!(null===(e=this._cd)||void 0===e||null===(e=e.control)||void 0===e||!e.dirty)}get isValid(){var e,r,t;return null===(e=this._cd)||void 0===e||null===(e=e.control)||void 0===e||null===(r=e._status)||void 0===r||r.call(e),!(null===(t=this._cd)||void 0===t||null===(t=t.control)||void 0===t||!t.valid)}get isInvalid(){var e;return!(null===(e=this._cd)||void 0===e||null===(e=e.control)||void 0===e||!e.invalid)}get isPending(){var e;return!(null===(e=this._cd)||void 0===e||null===(e=e.control)||void 0===e||!e.pending)}get isSubmitted(){var e,r,t;return null===(e=this._cd)||void 0===e||null===(r=e._submitted)||void 0===r||r.call(e),!(null===(t=this._cd)||void 0===t||!t.submitted)}}let Ge=(()=>{var n;class e extends Ue{constructor(t){super(t)}}return n=e,(0,s.A)(e,"\u0275fac",function(t){return new(t||n)(i.rXU(v,2))}),(0,s.A)(e,"\u0275dir",i.FsC({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,o){2&t&&i.AVh("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[i.Vt3]})),e})(),Ie=(()=>{var n;class e extends Ue{constructor(t){super(t)}}return n=e,(0,s.A)(e,"\u0275fac",function(t){return new(t||n)(i.rXU(h,10))}),(0,s.A)(e,"\u0275dir",i.FsC({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,o){2&t&&i.AVh("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},standalone:!1,features:[i.Vt3]})),e})();const M="VALID",x="INVALID",C="PENDING",D="DISABLED";class V{}class ke extends V{constructor(e,r){super(),(0,s.A)(this,"value",void 0),(0,s.A)(this,"source",void 0),this.value=e,this.source=r}}class K extends V{constructor(e,r){super(),(0,s.A)(this,"pristine",void 0),(0,s.A)(this,"source",void 0),this.pristine=e,this.source=r}}class J extends V{constructor(e,r){super(),(0,s.A)(this,"touched",void 0),(0,s.A)(this,"source",void 0),this.touched=e,this.source=r}}class R extends V{constructor(e,r){super(),(0,s.A)(this,"status",void 0),(0,s.A)(this,"source",void 0),this.status=e,this.source=r}}function z(n){return(B(n)?n.validators:n)||null}function Q(n,e){return(B(e)?e.asyncValidators:n)||null}function B(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class Z{constructor(e,r){(0,s.A)(this,"_pendingDirty",!1),(0,s.A)(this,"_hasOwnPendingAsyncValidator",null),(0,s.A)(this,"_pendingTouched",!1),(0,s.A)(this,"_onCollectionChange",()=>{}),(0,s.A)(this,"_updateOn",void 0),(0,s.A)(this,"_parent",null),(0,s.A)(this,"_asyncValidationSubscription",void 0),(0,s.A)(this,"_composedValidatorFn",void 0),(0,s.A)(this,"_composedAsyncValidatorFn",void 0),(0,s.A)(this,"_rawValidators",void 0),(0,s.A)(this,"_rawAsyncValidators",void 0),(0,s.A)(this,"value",void 0),(0,s.A)(this,"_status",(0,i.EWP)(()=>this.statusReactive())),(0,s.A)(this,"statusReactive",(0,i.vPA)(void 0)),(0,s.A)(this,"errors",void 0),(0,s.A)(this,"_pristine",(0,i.EWP)(()=>this.pristineReactive())),(0,s.A)(this,"pristineReactive",(0,i.vPA)(!0)),(0,s.A)(this,"_touched",(0,i.EWP)(()=>this.touchedReactive())),(0,s.A)(this,"touchedReactive",(0,i.vPA)(!1)),(0,s.A)(this,"_events",new At.B),(0,s.A)(this,"events",this._events.asObservable()),(0,s.A)(this,"valueChanges",void 0),(0,s.A)(this,"statusChanges",void 0),(0,s.A)(this,"_onDisabledChange",[]),this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return(0,i.O8t)(this.statusReactive)}set status(e){(0,i.O8t)(()=>this.statusReactive.set(e))}get valid(){return this.status===M}get invalid(){return this.status===x}get pending(){return this.status==C}get disabled(){return this.status===D}get enabled(){return this.status!==D}get pristine(){return(0,i.O8t)(this.pristineReactive)}set pristine(e){(0,i.O8t)(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return(0,i.O8t)(this.touchedReactive)}set touched(e){(0,i.O8t)(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Re(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Re(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Be(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Be(e,this._rawAsyncValidators))}hasValidator(e){return N(this._rawValidators,e)}hasAsyncValidator(e){return N(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){var r;const t=!1===this.touched;this.touched=!0;const o=null!==(r=e.sourceControl)&&void 0!==r?r:this;this._parent&&!e.onlySelf&&this._parent.markAsTouched((0,u.A)((0,u.A)({},e),{},{sourceControl:o})),t&&!1!==e.emitEvent&&this._events.next(new J(!0,o))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(r=>r.markAllAsTouched(e))}markAsUntouched(e={}){var r;const t=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const o=null!==(r=e.sourceControl)&&void 0!==r?r:this;this._forEachChild(a=>{a.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:o})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,o),t&&!1!==e.emitEvent&&this._events.next(new J(!1,o))}markAsDirty(e={}){var r;const t=!0===this.pristine;this.pristine=!1;const o=null!==(r=e.sourceControl)&&void 0!==r?r:this;this._parent&&!e.onlySelf&&this._parent.markAsDirty((0,u.A)((0,u.A)({},e),{},{sourceControl:o})),t&&!1!==e.emitEvent&&this._events.next(new K(!1,o))}markAsPristine(e={}){var r;const t=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const o=null!==(r=e.sourceControl)&&void 0!==r?r:this;this._forEachChild(a=>{a.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,o),t&&!1!==e.emitEvent&&this._events.next(new K(!0,o))}markAsPending(e={}){var r;this.status=C;const t=null!==(r=e.sourceControl)&&void 0!==r?r:this;!1!==e.emitEvent&&(this._events.next(new R(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending((0,u.A)((0,u.A)({},e),{},{sourceControl:t}))}disable(e={}){var r;const t=this._parentMarkedDirty(e.onlySelf);this.status=D,this.errors=null,this._forEachChild(a=>{a.disable((0,u.A)((0,u.A)({},e),{},{onlySelf:!0}))}),this._updateValue();const o=null!==(r=e.sourceControl)&&void 0!==r?r:this;!1!==e.emitEvent&&(this._events.next(new ke(this.value,o)),this._events.next(new R(this.status,o)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors((0,u.A)((0,u.A)({},e),{},{skipPristineCheck:t}),this),this._onDisabledChange.forEach(a=>a(!0))}enable(e={}){const r=this._parentMarkedDirty(e.onlySelf);this.status=M,this._forEachChild(t=>{t.enable((0,u.A)((0,u.A)({},e),{},{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors((0,u.A)((0,u.A)({},e),{},{skipPristineCheck:r}),this),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(e,r){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},r),this._parent._updateTouched({},r))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){var r;if(this._setInitialStatus(),this._updateValue(),this.enabled){const o=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===M||this.status===C)&&this._runAsyncValidator(o,e.emitEvent)}const t=null!==(r=e.sourceControl)&&void 0!==r?r:this;!1!==e.emitEvent&&(this._events.next(new ke(this.value,t)),this._events.next(new R(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity((0,u.A)((0,u.A)({},e),{},{sourceControl:t}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?D:M}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,r){if(this.asyncValidator){this.status=C,this._hasOwnPendingAsyncValidator={emitEvent:!1!==r};const t=Me(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:r,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){var e,r;this._asyncValidationSubscription.unsubscribe();const t=null!==(e=null===(r=this._hasOwnPendingAsyncValidator)||void 0===r?void 0:r.emitEvent)&&void 0!==e&&e;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(!1!==r.emitEvent,this,r.shouldHaveEmitted)}get(e){let r=e;return null==r||(Array.isArray(r)||(r=r.split(".")),0===r.length)?null:r.reduce((t,o)=>t&&t._find(o),this)}getError(e,r){const t=r?this.get(r):this;return t&&t.errors?t.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,r,t){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||t)&&this._events.next(new R(this.status,r)),this._parent&&this._parent._updateControlsErrors(e,r,t)}_initObservables(){this.valueChanges=new i.bkB,this.statusChanges=new i.bkB}_calculateStatus(){return this._allControlsDisabled()?D:this.errors?x:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(C)?C:this._anyControlsHaveStatus(x)?x:M}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,r){const t=!this._anyControlsDirty(),o=this.pristine!==t;this.pristine=t,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),o&&this._events.next(new K(this.pristine,r))}_updateTouched(e={},r){this.touched=this._anyControlsTouched(),this._events.next(new J(this.touched,r)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){B(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=function Pt(n){return Array.isArray(n)?H(n):n||null}(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=function Ut(n){return Array.isArray(n)?W(n):n||null}(this._rawAsyncValidators)}}class Y extends Z{constructor(e,r,t){super(z(r),Q(t,r)),(0,s.A)(this,"controls",void 0),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,t={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){(function $e(n,e,r){n._forEachChild((t,o)=>{if(void 0===r[o])throw new i.wOt(1002,"")})})(this,0,e),Object.keys(e).forEach(t=>{(function Le(n,e,r){const t=n.controls;if(!(e?Object.keys(t):t).length)throw new i.wOt(1e3,"");if(!t[r])throw new i.wOt(1001,"")})(this,!0,t),this.controls[t].setValue(e[t],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){null!=e&&(Object.keys(e).forEach(t=>{const o=this.controls[t];o&&o.patchValue(e[t],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((t,o)=>{t.reset(e?e[o]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,t)=>(e[t]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,t)=>!!t._syncPendingControls()||r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{const t=this.controls[r];t&&e(t,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const[r,t]of Object.entries(this.controls))if(this.contains(r)&&e(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(r,t,o)=>((t.enabled||this.disabled)&&(r[o]=t.value),r))}_reduceChildren(e,r){let t=e;return this._forEachChild((o,a)=>{t=r(t,o,a)}),t}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}}const b=new i.nKC("",{providedIn:"root",factory:()=>P}),P="always";function F(n,e,r=P){var t,o;ee(n,e),e.valueAccessor.writeValue(n.value),(n.disabled||"always"===r)&&(null===(t=(o=e.valueAccessor).setDisabledState)||void 0===t||t.call(o,n.disabled)),function Tt(n,e){e.valueAccessor.registerOnChange(r=>{n._pendingValue=r,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&He(n,e)})}(n,e),function Lt(n,e){const r=(t,o)=>{e.valueAccessor.writeValue(t),o&&e.viewToModelUpdate(t)};n.registerOnChange(r),e._registerOnDestroy(()=>{n._unregisterOnChange(r)})}(n,e),function kt(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&He(n,e),"submit"!==n.updateOn&&n.markAsTouched()})}(n,e),function It(n,e){if(e.valueAccessor.setDisabledState){const r=t=>{e.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(r),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(r)})}}(n,e)}function I(n,e){n.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function ee(n,e){const r=function Se(n){return n._rawValidators}(n);null!==e.validator?n.setValidators(Ne(r,e.validator)):"function"==typeof r&&n.setValidators([r]);const t=function xe(n){return n._rawAsyncValidators}(n);null!==e.asyncValidator?n.setAsyncValidators(Ne(t,e.asyncValidator)):"function"==typeof t&&n.setAsyncValidators([t]);const o=()=>n.updateValueAndValidity();I(e._rawValidators,o),I(e._rawAsyncValidators,o)}function He(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}const qt={provide:h,useExisting:(0,i.Rfq)(()=>k)},E=Promise.resolve();let k=(()=>{var n;class e extends h{get submitted(){return(0,i.O8t)(this.submittedReactive)}constructor(t,o,a){super(),(0,s.A)(this,"callSetDisabledState",void 0),(0,s.A)(this,"_submitted",(0,i.EWP)(()=>this.submittedReactive())),(0,s.A)(this,"submittedReactive",(0,i.vPA)(!1)),(0,s.A)(this,"_directives",new Set),(0,s.A)(this,"form",void 0),(0,s.A)(this,"ngSubmit",new i.bkB),(0,s.A)(this,"options",void 0),this.callSetDisabledState=a,this.form=new Y({},H(t),W(o))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){E.then(()=>{const o=this._findContainer(t.path);t.control=o.registerControl(t.name,t.control),F(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){E.then(()=>{const o=this._findContainer(t.path);o&&o.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){E.then(()=>{const o=this._findContainer(t.path),a=new Y({});(function We(n,e){ee(n,e)})(a,t),o.registerControl(t.name,a),a.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){E.then(()=>{const o=this._findContainer(t.path);o&&o.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,o){E.then(()=>{this.form.get(t.path).setValue(o)})}setValue(t){this.control.setValue(t)}onSubmit(t){var o;return this.submittedReactive.set(!0),function je(n,e){n._syncPendingControls(),e.forEach(r=>{const t=r.control;"submit"===t.updateOn&&t._pendingChange&&(r.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===(null==t||null===(o=t.target)||void 0===o?void 0:o.method)}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return n=e,(0,s.A)(e,"\u0275fac",function(t){return new(t||n)(i.rXU(c,10),i.rXU(g,10),i.rXU(b,8))}),(0,s.A)(e,"\u0275dir",i.FsC({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,o){1&t&&i.bIt("submit",function(l){return o.onSubmit(l)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[i.Jv_([qt]),i.Vt3]})),e})();function qe(n,e){const r=n.indexOf(e);r>-1&&n.splice(r,1)}function Xe(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const Ke=class extends Z{constructor(e=null,r,t){super(z(r),Q(t,r)),(0,s.A)(this,"defaultValue",null),(0,s.A)(this,"_onChange",[]),(0,s.A)(this,"_pendingValue",void 0),(0,s.A)(this,"_pendingChange",!1),this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),B(r)&&(r.nonNullable||r.initialValueIsDefault)&&(this.defaultValue=Xe(e)?e.value:e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==r.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==r.emitViewToModelChange)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){qe(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){qe(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){Xe(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}},Jt={provide:v,useExisting:(0,i.Rfq)(()=>oe)},Qe=Promise.resolve();let oe=(()=>{var n;class e extends v{constructor(t,o,a,l,d,p){super(),(0,s.A)(this,"_changeDetectorRef",void 0),(0,s.A)(this,"callSetDisabledState",void 0),(0,s.A)(this,"control",new Ke),(0,s.A)(this,"_registered",!1),(0,s.A)(this,"viewModel",void 0),(0,s.A)(this,"name",""),(0,s.A)(this,"isDisabled",void 0),(0,s.A)(this,"model",void 0),(0,s.A)(this,"options",void 0),(0,s.A)(this,"update",new i.bkB),this._changeDetectorRef=d,this.callSetDisabledState=p,this._parent=t,this._setValidators(o),this._setAsyncValidators(a),this.valueAccessor=function re(n,e){if(!e)return null;let r,t,o;return Array.isArray(e),e.forEach(a=>{a.constructor===w?r=a:function Wt(n){return Object.getPrototypeOf(n.constructor)===y}(a)?t=a:o=a}),o||t||r||null}(0,l)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const o=t.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),function ne(n,e){if(!n.hasOwnProperty("model"))return!1;const r=n.model;return!!r.isFirstChange()||!Object.is(e,r.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){F(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){Qe.then(()=>{var o;this.control.setValue(t,{emitViewToModelChange:!1}),null===(o=this._changeDetectorRef)||void 0===o||o.markForCheck()})}_updateDisabled(t){const o=t.isDisabled.currentValue,a=0!==o&&(0,i.L39)(o);Qe.then(()=>{var l;a&&!this.control.disabled?this.control.disable():!a&&this.control.disabled&&this.control.enable(),null===(l=this._changeDetectorRef)||void 0===l||l.markForCheck()})}_getPath(t){return this._parent?function U(n,e){return[...e.path,n]}(t,this._parent):[t]}}return n=e,(0,s.A)(e,"ngAcceptInputType_isDisabled",void 0),(0,s.A)(e,"\u0275fac",function(t){return new(t||n)(i.rXU(h,9),i.rXU(c,10),i.rXU(g,10),i.rXU(f,10),i.rXU(i.gRc,8),i.rXU(b,8))}),(0,s.A)(e,"\u0275dir",i.FsC({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[i.Jv_([Jt]),i.Vt3,i.OA$]})),e})(),Ze=(()=>{var n;class e{}return n=e,(0,s.A)(e,"\u0275fac",function(t){return new(t||n)}),(0,s.A)(e,"\u0275dir",i.FsC({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})),e})(),An=(()=>{var n;class e{}return n=e,(0,s.A)(e,"\u0275fac",function(t){return new(t||n)}),(0,s.A)(e,"\u0275mod",i.$C({type:n})),(0,s.A)(e,"\u0275inj",i.G2t({})),e})(),Vn=(()=>{var n;class e{static withConfig(t){var o;return{ngModule:e,providers:[{provide:b,useValue:null!==(o=t.callSetDisabledState)&&void 0!==o?o:P}]}}}return n=e,(0,s.A)(e,"\u0275fac",function(t){return new(t||n)}),(0,s.A)(e,"\u0275mod",i.$C({type:n})),(0,s.A)(e,"\u0275inj",i.G2t({imports:[An]})),e})()}}]);
|
1
|
+
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["default-node_modules_angular_forms_fesm2022_forms_mjs"],{9417:(bn,gt,_)=>{_.d(gt,{BC:()=>Ge,YN:()=>Vn,Zm:()=>$,cV:()=>k,cb:()=>Ie,me:()=>w,qT:()=>Ze,vS:()=>oe});var u=_(9379),s=_(1660),i=_(3953),he=_(177),vt=_(9724),yt=_(7468),At=_(1413),Ct=_(6354);let fe=(()=>{var n;class e{constructor(t,o){(0,s.A)(this,"_renderer",void 0),(0,s.A)(this,"_elementRef",void 0),(0,s.A)(this,"onChange",a=>{}),(0,s.A)(this,"onTouched",()=>{}),this._renderer=t,this._elementRef=o}setProperty(t,o){this._renderer.setProperty(this._elementRef.nativeElement,t,o)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return n=e,(0,s.A)(e,"\u0275fac",function(t){return new(t||n)(i.rXU(i.sFG),i.rXU(i.aKT))}),(0,s.A)(e,"\u0275dir",i.FsC({type:n})),e})(),y=(()=>{var n;class e extends fe{}return n=e,(0,s.A)(e,"\u0275fac",(()=>{let r;return function(o){return(r||(r=i.xGo(n)))(o||n)}})()),(0,s.A)(e,"\u0275dir",i.FsC({type:n,features:[i.Vt3]})),e})();const f=new i.nKC(""),Vt={provide:f,useExisting:(0,i.Rfq)(()=>$),multi:!0};let $=(()=>{var n;class e extends y{writeValue(t){this.setProperty("checked",t)}}return n=e,(0,s.A)(e,"\u0275fac",(()=>{let r;return function(o){return(r||(r=i.xGo(n)))(o||n)}})()),(0,s.A)(e,"\u0275dir",i.FsC({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,o){1&t&&i.bIt("change",function(l){return o.onChange(l.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[i.Jv_([Vt]),i.Vt3]})),e})();const bt={provide:f,useExisting:(0,i.Rfq)(()=>w),multi:!0},Dt=new i.nKC("");let w=(()=>{var n;class e extends fe{constructor(t,o,a){super(t,o),(0,s.A)(this,"_compositionMode",void 0),(0,s.A)(this,"_composing",!1),this._compositionMode=a,null==this._compositionMode&&(this._compositionMode=!function Mt(){const n=(0,he.QT)()?(0,he.QT)().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return n=e,(0,s.A)(e,"\u0275fac",function(t){return new(t||n)(i.rXU(i.sFG),i.rXU(i.aKT),i.rXU(Dt,8))}),(0,s.A)(e,"\u0275dir",i.FsC({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,o){1&t&&i.bIt("input",function(l){return o._handleInput(l.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(l){return o._compositionEnd(l.target.value)})},standalone:!1,features:[i.Jv_([bt]),i.Vt3]})),e})();const c=new i.nKC(""),g=new i.nKC("");function be(n){return null!=n}function Me(n){return(0,i.jNT)(n)?(0,vt.H)(n):n}function De(n){let e={};return n.forEach(r=>{e=null!=r?(0,u.A)((0,u.A)({},e),r):e}),0===Object.keys(e).length?null:e}function Fe(n,e){return e.map(r=>r(n))}function Ee(n){return n.map(e=>function Et(n){return!n.validate}(e)?e:r=>e.validate(r))}function H(n){return null!=n?function we(n){if(!n)return null;const e=n.filter(be);return 0==e.length?null:function(r){return De(Fe(r,e))}}(Ee(n)):null}function W(n){return null!=n?function Oe(n){if(!n)return null;const e=n.filter(be);return 0==e.length?null:function(r){const t=Fe(r,e).map(Me);return(0,yt.p)(t).pipe((0,Ct.T)(De))}}(Ee(n)):null}function Ne(n,e){return null===n?[e]:Array.isArray(n)?[...n,e]:[n,e]}function j(n){return n?Array.isArray(n)?n:[n]:[]}function N(n,e){return Array.isArray(n)?n.includes(e):n===e}function Re(n,e){const r=j(e);return j(n).forEach(o=>{N(r,o)||r.push(o)}),r}function Be(n,e){return j(e).filter(r=>!N(n,r))}class Pe{constructor(){(0,s.A)(this,"_composedValidatorFn",void 0),(0,s.A)(this,"_composedAsyncValidatorFn",void 0),(0,s.A)(this,"_rawValidators",[]),(0,s.A)(this,"_rawAsyncValidators",[]),(0,s.A)(this,"_onDestroyCallbacks",[])}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=H(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=W(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return!!this.control&&this.control.hasError(e,r)}getError(e,r){return this.control?this.control.getError(e,r):null}}class h extends Pe{constructor(...e){super(...e),(0,s.A)(this,"name",void 0)}get formDirective(){return null}get path(){return null}}class v extends Pe{constructor(...e){super(...e),(0,s.A)(this,"_parent",null),(0,s.A)(this,"name",null),(0,s.A)(this,"valueAccessor",null)}}class Ue{constructor(e){(0,s.A)(this,"_cd",void 0),this._cd=e}get isTouched(){var e,r,t;return null===(e=this._cd)||void 0===e||null===(e=e.control)||void 0===e||null===(r=e._touched)||void 0===r||r.call(e),!(null===(t=this._cd)||void 0===t||null===(t=t.control)||void 0===t||!t.touched)}get isUntouched(){var e;return!(null===(e=this._cd)||void 0===e||null===(e=e.control)||void 0===e||!e.untouched)}get isPristine(){var e,r,t;return null===(e=this._cd)||void 0===e||null===(e=e.control)||void 0===e||null===(r=e._pristine)||void 0===r||r.call(e),!(null===(t=this._cd)||void 0===t||null===(t=t.control)||void 0===t||!t.pristine)}get isDirty(){var e;return!(null===(e=this._cd)||void 0===e||null===(e=e.control)||void 0===e||!e.dirty)}get isValid(){var e,r,t;return null===(e=this._cd)||void 0===e||null===(e=e.control)||void 0===e||null===(r=e._status)||void 0===r||r.call(e),!(null===(t=this._cd)||void 0===t||null===(t=t.control)||void 0===t||!t.valid)}get isInvalid(){var e;return!(null===(e=this._cd)||void 0===e||null===(e=e.control)||void 0===e||!e.invalid)}get isPending(){var e;return!(null===(e=this._cd)||void 0===e||null===(e=e.control)||void 0===e||!e.pending)}get isSubmitted(){var e,r,t;return null===(e=this._cd)||void 0===e||null===(r=e._submitted)||void 0===r||r.call(e),!(null===(t=this._cd)||void 0===t||!t.submitted)}}let Ge=(()=>{var n;class e extends Ue{constructor(t){super(t)}}return n=e,(0,s.A)(e,"\u0275fac",function(t){return new(t||n)(i.rXU(v,2))}),(0,s.A)(e,"\u0275dir",i.FsC({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,o){2&t&&i.AVh("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[i.Vt3]})),e})(),Ie=(()=>{var n;class e extends Ue{constructor(t){super(t)}}return n=e,(0,s.A)(e,"\u0275fac",function(t){return new(t||n)(i.rXU(h,10))}),(0,s.A)(e,"\u0275dir",i.FsC({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,o){2&t&&i.AVh("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},standalone:!1,features:[i.Vt3]})),e})();const M="VALID",x="INVALID",C="PENDING",D="DISABLED";class V{}class ke extends V{constructor(e,r){super(),(0,s.A)(this,"value",void 0),(0,s.A)(this,"source",void 0),this.value=e,this.source=r}}class K extends V{constructor(e,r){super(),(0,s.A)(this,"pristine",void 0),(0,s.A)(this,"source",void 0),this.pristine=e,this.source=r}}class J extends V{constructor(e,r){super(),(0,s.A)(this,"touched",void 0),(0,s.A)(this,"source",void 0),this.touched=e,this.source=r}}class R extends V{constructor(e,r){super(),(0,s.A)(this,"status",void 0),(0,s.A)(this,"source",void 0),this.status=e,this.source=r}}function z(n){return(B(n)?n.validators:n)||null}function Q(n,e){return(B(e)?e.asyncValidators:n)||null}function B(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class Z{constructor(e,r){(0,s.A)(this,"_pendingDirty",!1),(0,s.A)(this,"_hasOwnPendingAsyncValidator",null),(0,s.A)(this,"_pendingTouched",!1),(0,s.A)(this,"_onCollectionChange",()=>{}),(0,s.A)(this,"_updateOn",void 0),(0,s.A)(this,"_parent",null),(0,s.A)(this,"_asyncValidationSubscription",void 0),(0,s.A)(this,"_composedValidatorFn",void 0),(0,s.A)(this,"_composedAsyncValidatorFn",void 0),(0,s.A)(this,"_rawValidators",void 0),(0,s.A)(this,"_rawAsyncValidators",void 0),(0,s.A)(this,"value",void 0),(0,s.A)(this,"_status",(0,i.EWP)(()=>this.statusReactive())),(0,s.A)(this,"statusReactive",(0,i.vPA)(void 0)),(0,s.A)(this,"errors",void 0),(0,s.A)(this,"_pristine",(0,i.EWP)(()=>this.pristineReactive())),(0,s.A)(this,"pristineReactive",(0,i.vPA)(!0)),(0,s.A)(this,"_touched",(0,i.EWP)(()=>this.touchedReactive())),(0,s.A)(this,"touchedReactive",(0,i.vPA)(!1)),(0,s.A)(this,"_events",new At.B),(0,s.A)(this,"events",this._events.asObservable()),(0,s.A)(this,"valueChanges",void 0),(0,s.A)(this,"statusChanges",void 0),(0,s.A)(this,"_onDisabledChange",[]),this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return(0,i.O8t)(this.statusReactive)}set status(e){(0,i.O8t)(()=>this.statusReactive.set(e))}get valid(){return this.status===M}get invalid(){return this.status===x}get pending(){return this.status==C}get disabled(){return this.status===D}get enabled(){return this.status!==D}get pristine(){return(0,i.O8t)(this.pristineReactive)}set pristine(e){(0,i.O8t)(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return(0,i.O8t)(this.touchedReactive)}set touched(e){(0,i.O8t)(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Re(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Re(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Be(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Be(e,this._rawAsyncValidators))}hasValidator(e){return N(this._rawValidators,e)}hasAsyncValidator(e){return N(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){var r;const t=!1===this.touched;this.touched=!0;const o=null!==(r=e.sourceControl)&&void 0!==r?r:this;this._parent&&!e.onlySelf&&this._parent.markAsTouched((0,u.A)((0,u.A)({},e),{},{sourceControl:o})),t&&!1!==e.emitEvent&&this._events.next(new J(!0,o))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(r=>r.markAllAsTouched(e))}markAsUntouched(e={}){var r;const t=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const o=null!==(r=e.sourceControl)&&void 0!==r?r:this;this._forEachChild(a=>{a.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:o})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,o),t&&!1!==e.emitEvent&&this._events.next(new J(!1,o))}markAsDirty(e={}){var r;const t=!0===this.pristine;this.pristine=!1;const o=null!==(r=e.sourceControl)&&void 0!==r?r:this;this._parent&&!e.onlySelf&&this._parent.markAsDirty((0,u.A)((0,u.A)({},e),{},{sourceControl:o})),t&&!1!==e.emitEvent&&this._events.next(new K(!1,o))}markAsPristine(e={}){var r;const t=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const o=null!==(r=e.sourceControl)&&void 0!==r?r:this;this._forEachChild(a=>{a.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,o),t&&!1!==e.emitEvent&&this._events.next(new K(!0,o))}markAsPending(e={}){var r;this.status=C;const t=null!==(r=e.sourceControl)&&void 0!==r?r:this;!1!==e.emitEvent&&(this._events.next(new R(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending((0,u.A)((0,u.A)({},e),{},{sourceControl:t}))}disable(e={}){var r;const t=this._parentMarkedDirty(e.onlySelf);this.status=D,this.errors=null,this._forEachChild(a=>{a.disable((0,u.A)((0,u.A)({},e),{},{onlySelf:!0}))}),this._updateValue();const o=null!==(r=e.sourceControl)&&void 0!==r?r:this;!1!==e.emitEvent&&(this._events.next(new ke(this.value,o)),this._events.next(new R(this.status,o)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors((0,u.A)((0,u.A)({},e),{},{skipPristineCheck:t}),this),this._onDisabledChange.forEach(a=>a(!0))}enable(e={}){const r=this._parentMarkedDirty(e.onlySelf);this.status=M,this._forEachChild(t=>{t.enable((0,u.A)((0,u.A)({},e),{},{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors((0,u.A)((0,u.A)({},e),{},{skipPristineCheck:r}),this),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(e,r){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},r),this._parent._updateTouched({},r))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){var r;if(this._setInitialStatus(),this._updateValue(),this.enabled){const o=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===M||this.status===C)&&this._runAsyncValidator(o,e.emitEvent)}const t=null!==(r=e.sourceControl)&&void 0!==r?r:this;!1!==e.emitEvent&&(this._events.next(new ke(this.value,t)),this._events.next(new R(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity((0,u.A)((0,u.A)({},e),{},{sourceControl:t}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?D:M}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,r){if(this.asyncValidator){this.status=C,this._hasOwnPendingAsyncValidator={emitEvent:!1!==r};const t=Me(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:r,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){var e,r;this._asyncValidationSubscription.unsubscribe();const t=null!==(e=null===(r=this._hasOwnPendingAsyncValidator)||void 0===r?void 0:r.emitEvent)&&void 0!==e&&e;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(!1!==r.emitEvent,this,r.shouldHaveEmitted)}get(e){let r=e;return null==r||(Array.isArray(r)||(r=r.split(".")),0===r.length)?null:r.reduce((t,o)=>t&&t._find(o),this)}getError(e,r){const t=r?this.get(r):this;return t&&t.errors?t.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,r,t){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||t)&&this._events.next(new R(this.status,r)),this._parent&&this._parent._updateControlsErrors(e,r,t)}_initObservables(){this.valueChanges=new i.bkB,this.statusChanges=new i.bkB}_calculateStatus(){return this._allControlsDisabled()?D:this.errors?x:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(C)?C:this._anyControlsHaveStatus(x)?x:M}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,r){const t=!this._anyControlsDirty(),o=this.pristine!==t;this.pristine=t,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),o&&this._events.next(new K(this.pristine,r))}_updateTouched(e={},r){this.touched=this._anyControlsTouched(),this._events.next(new J(this.touched,r)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){B(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=function Pt(n){return Array.isArray(n)?H(n):n||null}(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=function Ut(n){return Array.isArray(n)?W(n):n||null}(this._rawAsyncValidators)}}class Y extends Z{constructor(e,r,t){super(z(r),Q(t,r)),(0,s.A)(this,"controls",void 0),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,t={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){(function $e(n,e,r){n._forEachChild((t,o)=>{if(void 0===r[o])throw new i.wOt(1002,"")})})(this,0,e),Object.keys(e).forEach(t=>{(function Le(n,e,r){const t=n.controls;if(!(e?Object.keys(t):t).length)throw new i.wOt(1e3,"");if(!t[r])throw new i.wOt(1001,"")})(this,!0,t),this.controls[t].setValue(e[t],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){null!=e&&(Object.keys(e).forEach(t=>{const o=this.controls[t];o&&o.patchValue(e[t],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((t,o)=>{t.reset(e?e[o]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,t)=>(e[t]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,t)=>!!t._syncPendingControls()||r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{const t=this.controls[r];t&&e(t,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const[r,t]of Object.entries(this.controls))if(this.contains(r)&&e(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(r,t,o)=>((t.enabled||this.disabled)&&(r[o]=t.value),r))}_reduceChildren(e,r){let t=e;return this._forEachChild((o,a)=>{t=r(t,o,a)}),t}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}}const b=new i.nKC("",{providedIn:"root",factory:()=>P}),P="always";function F(n,e,r=P){var t,o;ee(n,e),e.valueAccessor.writeValue(n.value),(n.disabled||"always"===r)&&(null===(t=(o=e.valueAccessor).setDisabledState)||void 0===t||t.call(o,n.disabled)),function Tt(n,e){e.valueAccessor.registerOnChange(r=>{n._pendingValue=r,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&He(n,e)})}(n,e),function Lt(n,e){const r=(t,o)=>{e.valueAccessor.writeValue(t),o&&e.viewToModelUpdate(t)};n.registerOnChange(r),e._registerOnDestroy(()=>{n._unregisterOnChange(r)})}(n,e),function kt(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&He(n,e),"submit"!==n.updateOn&&n.markAsTouched()})}(n,e),function It(n,e){if(e.valueAccessor.setDisabledState){const r=t=>{e.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(r),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(r)})}}(n,e)}function I(n,e){n.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function ee(n,e){const r=function Se(n){return n._rawValidators}(n);null!==e.validator?n.setValidators(Ne(r,e.validator)):"function"==typeof r&&n.setValidators([r]);const t=function xe(n){return n._rawAsyncValidators}(n);null!==e.asyncValidator?n.setAsyncValidators(Ne(t,e.asyncValidator)):"function"==typeof t&&n.setAsyncValidators([t]);const o=()=>n.updateValueAndValidity();I(e._rawValidators,o),I(e._rawAsyncValidators,o)}function He(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}const qt={provide:h,useExisting:(0,i.Rfq)(()=>k)},E=Promise.resolve();let k=(()=>{var n;class e extends h{get submitted(){return(0,i.O8t)(this.submittedReactive)}constructor(t,o,a){super(),(0,s.A)(this,"callSetDisabledState",void 0),(0,s.A)(this,"_submitted",(0,i.EWP)(()=>this.submittedReactive())),(0,s.A)(this,"submittedReactive",(0,i.vPA)(!1)),(0,s.A)(this,"_directives",new Set),(0,s.A)(this,"form",void 0),(0,s.A)(this,"ngSubmit",new i.bkB),(0,s.A)(this,"options",void 0),this.callSetDisabledState=a,this.form=new Y({},H(t),W(o))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){E.then(()=>{const o=this._findContainer(t.path);t.control=o.registerControl(t.name,t.control),F(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){E.then(()=>{const o=this._findContainer(t.path);o&&o.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){E.then(()=>{const o=this._findContainer(t.path),a=new Y({});(function We(n,e){ee(n,e)})(a,t),o.registerControl(t.name,a),a.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){E.then(()=>{const o=this._findContainer(t.path);o&&o.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,o){E.then(()=>{this.form.get(t.path).setValue(o)})}setValue(t){this.control.setValue(t)}onSubmit(t){var o;return this.submittedReactive.set(!0),function je(n,e){n._syncPendingControls(),e.forEach(r=>{const t=r.control;"submit"===t.updateOn&&t._pendingChange&&(r.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===(null==t||null===(o=t.target)||void 0===o?void 0:o.method)}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return n=e,(0,s.A)(e,"\u0275fac",function(t){return new(t||n)(i.rXU(c,10),i.rXU(g,10),i.rXU(b,8))}),(0,s.A)(e,"\u0275dir",i.FsC({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,o){1&t&&i.bIt("submit",function(l){return o.onSubmit(l)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[i.Jv_([qt]),i.Vt3]})),e})();function qe(n,e){const r=n.indexOf(e);r>-1&&n.splice(r,1)}function Xe(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const Ke=class extends Z{constructor(e=null,r,t){super(z(r),Q(t,r)),(0,s.A)(this,"defaultValue",null),(0,s.A)(this,"_onChange",[]),(0,s.A)(this,"_pendingValue",void 0),(0,s.A)(this,"_pendingChange",!1),this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),B(r)&&(r.nonNullable||r.initialValueIsDefault)&&(this.defaultValue=Xe(e)?e.value:e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==r.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==r.emitViewToModelChange)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){qe(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){qe(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){Xe(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}},Jt={provide:v,useExisting:(0,i.Rfq)(()=>oe)},Qe=Promise.resolve();let oe=(()=>{var n;class e extends v{constructor(t,o,a,l,d,p){super(),(0,s.A)(this,"_changeDetectorRef",void 0),(0,s.A)(this,"callSetDisabledState",void 0),(0,s.A)(this,"control",new Ke),(0,s.A)(this,"_registered",!1),(0,s.A)(this,"viewModel",void 0),(0,s.A)(this,"name",""),(0,s.A)(this,"isDisabled",void 0),(0,s.A)(this,"model",void 0),(0,s.A)(this,"options",void 0),(0,s.A)(this,"update",new i.bkB),this._changeDetectorRef=d,this.callSetDisabledState=p,this._parent=t,this._setValidators(o),this._setAsyncValidators(a),this.valueAccessor=function re(n,e){if(!e)return null;let r,t,o;return Array.isArray(e),e.forEach(a=>{a.constructor===w?r=a:function Wt(n){return Object.getPrototypeOf(n.constructor)===y}(a)?t=a:o=a}),o||t||r||null}(0,l)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const o=t.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),function ne(n,e){if(!n.hasOwnProperty("model"))return!1;const r=n.model;return!!r.isFirstChange()||!Object.is(e,r.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){F(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){Qe.then(()=>{var o;this.control.setValue(t,{emitViewToModelChange:!1}),null===(o=this._changeDetectorRef)||void 0===o||o.markForCheck()})}_updateDisabled(t){const o=t.isDisabled.currentValue,a=0!==o&&(0,i.L39)(o);Qe.then(()=>{var l;a&&!this.control.disabled?this.control.disable():!a&&this.control.disabled&&this.control.enable(),null===(l=this._changeDetectorRef)||void 0===l||l.markForCheck()})}_getPath(t){return this._parent?function U(n,e){return[...e.path,n]}(t,this._parent):[t]}}return n=e,(0,s.A)(e,"ngAcceptInputType_isDisabled",void 0),(0,s.A)(e,"\u0275fac",function(t){return new(t||n)(i.rXU(h,9),i.rXU(c,10),i.rXU(g,10),i.rXU(f,10),i.rXU(i.gRc,8),i.rXU(b,8))}),(0,s.A)(e,"\u0275dir",i.FsC({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[i.Jv_([Jt]),i.Vt3,i.OA$]})),e})(),Ze=(()=>{var n;class e{}return n=e,(0,s.A)(e,"\u0275fac",function(t){return new(t||n)}),(0,s.A)(e,"\u0275dir",i.FsC({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})),e})(),An=(()=>{var n;class e{}return n=e,(0,s.A)(e,"\u0275fac",function(t){return new(t||n)}),(0,s.A)(e,"\u0275mod",i.$C({type:n})),(0,s.A)(e,"\u0275inj",i.G2t({})),e})(),Vn=(()=>{var n;class e{static withConfig(t){var o;return{ngModule:e,providers:[{provide:b,useValue:null!==(o=t.callSetDisabledState)&&void 0!==o?o:P}]}}}return n=e,(0,s.A)(e,"\u0275fac",function(t){return new(t||n)}),(0,s.A)(e,"\u0275mod",i.$C({type:n})),(0,s.A)(e,"\u0275inj",i.G2t({imports:[An]})),e})()}}]);
|