@pronto-tools-and-more/files 5.9.0 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/files/framework/src/default/storefront/3rdpartylicenses.txt +0 -29
- package/files/framework/src/default/storefront/buildInfo.json +4 -4
- package/files/framework/src/default/storefront/deep-link-landing/purple-deep-link-landing.js +80 -80
- package/files/framework/src/default/storefront/deep-link-landing/purple-deep-link-landing.js.LICENSE.txt +1 -1
- package/files/framework/src/default/storefront/index.html +3 -3
- package/files/framework/src/default/storefront/modules/common.js +1 -1
- package/files/framework/src/default/storefront/modules/default-node_modules_angular_forms_fesm2022_forms_mjs.js +1 -1
- package/files/framework/src/default/storefront/modules/default-projects_storefront_src_app_component_base-component_base-datacollection_component_ts-4706f8.js +1 -1
- package/files/framework/src/default/storefront/modules/default-projects_storefront_src_app_component_content_content_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/default-projects_storefront_src_app_component_issue_issue_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/default-projects_storefront_src_app_service_tts_tts_service_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/main.js +1 -1
- package/files/framework/src/default/storefront/modules/node_modules_purple_web-player_dist_webPresenter_js_webPresenter_min_js.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_common-pipes_common-pipes_module_ts-projects_storefront_src_app_c-94b9b6.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_action-executor_action-executor_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_ad_ad_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_app-menu-xml_app-menu-xml_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_base-component_base-datacollection_component_ts-project-6cb588.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_bookmark_bookmark_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_catalog-content_content-body_content-body_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_catalog-content_content-featured-image_content-featured-c9ba26.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_category_category_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_collection_collection_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_component_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_coupon_coupon_module_ts.js +1 -1
- package/files/framework/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/src/default/storefront/modules/projects_storefront_src_app_component_download-issues_download-issues_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_dropdown_dropdown_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_embeddable-view_embeddable-view_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_iframe_iframe_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_issue-search-result_issue-search-result_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_login_login_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_menu_menu_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_product_product_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_publication-completion_publication-completion_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_publication_publication_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_recommendations_recommendations_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_search-field_search-field_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_subscription_subscription_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_swiper_swiper_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_ticker_ticker_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_toggle_toggle_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_toolbar_toolbar_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_web-presenter_presenter_presenter_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_widget_widget_module_ts.js +1 -1
- package/files/framework/src/default/storefront/modules/styles.css +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_subscription_subscription_module_ts"],{2932:(K,A,s)=>{s.d(A,{h:()=>S,q:()=>b});var _=s(177),r=s(4438),t=s(4338),d=s(8890),I=s(9876),y=s(345),T=s(4748),O=s(5483),D=s(8471);const $=["image"];function X(l,U){if(1&l){const g=r.RV6();r.j41(0,"img",2,0),r.bIt("error",function(){r.eBV(g);const a=r.XpG();return r.Njj(a.onError())}),r.k0s()}if(2&l){const g=r.XpG();r.Y8G("src",g.safeResizeSrc,r.B4B)("alt",g.alt)("title",g.title),r.BMQ("aria-label",g.ariaLabel)}}let S=(()=>{var l;class U{set image(o){o&&this.onLoad(o),this._image=o}get image(){return this._image}constructor(o,a,m,R,F,V,z,j){this.sanitizer=o,this.changeDetectorRef=a,this.elementRef=m,this.subscriptions=R,this.platformId=F,this.ssrService=V,this.contextService=z,this.purpleService=j,this.error=new r.bkB,this.height=b.AUTO}get empty(){return!this.src}ngOnInit(){this.initProperties(),(0,_.UE)(this.platformId)&&this.subscriptions.subscribe((0,d.eh)(this,this.elementRef,{skipWait:!1}),o=>this.load())}initProperties(){var o,a,m,R;this.alt=(null===(o=this.extendedThumbnail)||void 0===o?void 0:o.properties.alt)||(null===(a=this.extendedThumbnail)||void 0===a?void 0:a.properties.caption)||"",this.title=this.alt,this.ariaLabel=null!==(m=this.label)&&void 0!==m?m:this.alt,this.focalPoint=null===(R=this.extendedThumbnail)||void 0===R?void 0:R.properties.focuspoint}initAndLoad(){this.initProperties(),this.load()}load(){this.loaded||(this.loaded=!0,this.src&&this.update(),this.changeDetectorRef.detectChanges())}ngOnChanges(o){o.src&&this.loaded&&this.update()}update(){this.updateImageRatio(),this.updateResizeSrc()}onLoad(o){o.nativeElement.classList.add("loaded"),this.elementRef.nativeElement.classList.add("loaded"),this.changeDetectorRef.detectChanges(),o.nativeElement.addEventListener("load",()=>{this.updateImageRatio(!0,o),this.changeDetectorRef.markForCheck()}),o.nativeElement.addEventListener("error",function(){o.nativeElement.style.display="none",o.nativeElement.nextElementSibling&&(o.nativeElement.nextElementSibling.style.display="inline")}),this.purpleService.addImageSrc(this.resizeSrc)}onError(){if(!this.safeResizeSrc)return;const o=this.purpleService.getAlternativeSrc(this.src);var a;o&&o!==this.resizeSrc?(this.setResizeSrc(o),this.changeDetectorRef.detectChanges()):(null===(a=this.image)||void 0===a||a.nativeElement.classList.add("error"),this.elementRef.nativeElement.classList.add("error"),this.error.emit(this))}updateImageRatio(o=!1,a=this.image){this.imageRatio=this.height===b.AUTO?(0,I.z)(!o,null==a?void 0:a.nativeElement,this.src)+"%":void 0}updateResizeSrc(){this.setResizeSrc((0,I.G)(this.elementRef.nativeElement,this.src,this.imageResolutionStrategy,this.focalPoint)),this.changeDetectorRef.detectChanges()}setResizeSrc(o){const a=this.contextService.toResourceUrl(o);this.resizeSrc=a,this.safeResizeSrc=this.sanitizer.bypassSecurityTrustResourceUrl(a)}}return(l=U).\u0275fac=function(o){return new(o||l)(r.rXU(y.up),r.rXU(r.gRc),r.rXU(r.aKT),r.rXU(t.v),r.rXU(r.Agw),r.rXU(T.i),r.rXU(O.V),r.rXU(D.Wj))},l.\u0275cmp=r.VBU({type:l,selectors:[["storefront-image"]],viewQuery:function(o,a){if(1&o&&r.GBs($,5),2&o){let m;r.mGM(m=r.lsd())&&(a.image=m.first)}},hostAttrs:["ngSkipHydration","true"],hostVars:12,hostBindings:function(o,a){2&o&&(r.BMQ("src",a.src)("label",a.label)("resolution-strategy",a.imageResolutionStrategy)("alt",a.alt)("title",a.title)("aria-label",a.ariaLabel)("focal-point",a.focalPoint)("height-strategy",a.height),r.xc7("padding-top",a.imageRatio),r.AVh("empty",a.empty))},inputs:{src:"src",label:"label",extendedThumbnail:"extendedThumbnail",imageResolutionStrategy:"imageResolutionStrategy",height:"height"},outputs:{error:"error"},features:[r.Jv_([t.v]),r.OA$],decls:1,vars:1,consts:[["image",""],[3,"src","alt","title","error",4,"ngIf"],[3,"error","src","alt","title"]],template:function(o,a){1&o&&r.DNE(0,X,2,4,"img",1),2&o&&r.Y8G("ngIf",a.loaded&&a.src)},dependencies:[_.bT],styles:["storefront-image{display:flex;justify-content:center;align-items:center;position:relative;background-color:var(--imageLoadingColor);transition:.2s background-color ease-in}storefront-image[height-strategy=FIXED]>img,storefront-image[height-strategy=AUTO]>img{position:absolute;width:auto;max-width:100%;top:0;object-fit:contain;height:100%;left:50%;transform:translate(-50%)}storefront-image.img-with-hidden-alt{content:attr(data-alt);display:none}storefront-image>img{display:block;transition:opacity .2s ease-in,background-color .2s ease-in;background-color:#fff0;max-width:100%;max-height:100%;opacity:0}storefront-image>img.loaded{opacity:1;background-color:var(--imageBackgroundColor)}storefront-image.loaded{background:#fff0}\n"],encapsulation:2,changeDetection:0}),U})();var b=function(l){return l.AUTO="AUTO",l.FIXED="FIXED",l.DEFAULT="DEFAULT",l}(b||{})},4403:(K,A,s)=>{s.d(A,{U:()=>t});var _=s(177),r=s(4438);let t=(()=>{var d;class I{}return(d=I).\u0275fac=function(T){return new(T||d)},d.\u0275mod=r.$C({type:d}),d.\u0275inj=r.G2t({imports:[_.MD]}),I})()},7995:(K,A,s)=>{s.r(A),s.d(A,{SubscriptionModule:()=>yt,component:()=>Dt});var _=s(177),r=s(467),t=s(4438),d=s(4404),I=s(4338),y=s(1210),T=function(i){return i.DEFAULT="default",i.ISSUES="issues",i.DETAILS="details",i}(T||{});const O={template:T.DEFAULT,maxDisplayIssues:3,purchase:{showErrorDialog:!0},titleMessage:"SUBSCRIPTION_TITLE",purchaseButtonMessage:"SUBSCRIPTION_ACTION_PURCHASE",purchaseUnavailableButtonMessage:"SUBSCRIPTION_ACTION_PURCHASE_UNAVAILABLE",promotionMessage:"SUBSCRIPTION_ISSUES_PROMOTION",promotionAdditionalMessage:"SUBSCRIPTION_ISSUES_ADDITIONAL_PROMOTION",priceMessage:"SUBSCRIPTION_PRICE",finalPriceMessage:"SUBSCRIPTION_PRICE_FINAL",introductoryPriceMessage:"SUBSCRIPTION_PRICE_INTRODUCTORY",trialPriceMessage:"SUBSCRIPTION_PRICE_TRIAL",discountPriceMessage:"SUBSCRIPTION_PRICE_DISCOUNT",descriptionMessage:"SUBSCRIPTION_DESCRIPTION"};var D=s(3178),$=s(4622),X=s(4004),S=s(4333),b=s(7967),l=s(8179),U=s(7879),g=s(4452),o=s(362),a=s(20),m=s(8004),R=s(5483),F=s(8471),V=s(1652),z=s(2838),j=s(8909),Z=s(7240),w=s(2932),k=s(9383),q=s(3648);const G=i=>[i],tt=()=>[];function et(i,u){1&i&&t.nrm(0,"storefront-image",11),2&i&&t.Y8G("src",u.$implicit.thumbnails.default)}function nt(i,u){if(1&i&&(t.j41(0,"div",9),t.DNE(1,et,1,1,"storefront-image",10),t.k0s()),2&i){const n=t.XpG(4);t.R7$(),t.Y8G("ngForOf",n.displayedIssues)}}function it(i,u){if(1&i&&t.nrm(0,"p",12),2&i){const n=t.XpG(4);t.Y8G("storefrontTranslate",n.issuesPromotionMessage)("storefrontTranslateArgs",n.issuesPromotionArgs)}}function st(i,u){1&i&&t.nrm(0,"storefront-spinner",13)}function rt(i,u){if(1&i&&t.nrm(0,"span",3),2&i){const n=t.XpG(4);t.Y8G("storefrontTranslate",n.config.purchaseButtonMessage)("storefrontTranslateArgs",t.eq3(2,G,n.subscription.price.formattedPrice))}}function ot(i,u){if(1&i&&t.nrm(0,"span",14),2&i){const n=t.XpG(4);t.Y8G("storefrontTranslate",n.config.purchaseUnavailableButtonMessage)}}function at(i,u){if(1&i){const n=t.RV6();t.qex(0),t.DNE(1,nt,2,1,"div",2),t.nrm(2,"h3",3),t.DNE(3,it,1,2,"p",4),t.j41(4,"button",5),t.bIt("click",function(){t.eBV(n);const c=t.XpG(3);return t.Njj(c.onClickPurchase())}),t.DNE(5,st,1,0,"storefront-spinner",6)(6,rt,1,4,"span",7)(7,ot,1,1,"span",8),t.k0s(),t.bVm()}if(2&i){const n=t.XpG(3);t.R7$(),t.Y8G("ngIf",n.displayedIssues),t.R7$(),t.Y8G("storefrontTranslate",n.config.titleMessage)("storefrontTranslateArgs",t.eq3(8,G,n.subscription.name)),t.R7$(),t.Y8G("ngIf",n.issuesPromotionMessage),t.R7$(),t.Y8G("disabled",!n.subscription.price||n.purchaseLoading),t.R7$(),t.Y8G("ngIf",n.purchaseLoading),t.R7$(),t.Y8G("ngIf",n.subscription.price),t.R7$(),t.Y8G("ngIf",!n.subscription.price)}}function ct(i,u){1&i&&t.nrm(0,"storefront-spinner",15)}function ut(i,u){if(1&i&&(t.qex(0),t.DNE(1,at,8,10,"ng-container",0)(2,ct,1,0,"storefront-spinner",1),t.bVm()),2&i){const n=t.XpG(2);t.R7$(),t.Y8G("ngIf",n.config&&!n.priceLoading),t.R7$(),t.Y8G("ngIf",!n.config||n.priceLoading)}}function lt(i,u){1&i&&t.nrm(0,"div",22)}function pt(i,u){if(1&i&&(t.qex(0),t.nrm(1,"div",24)(2,"div",25),t.bVm()),2&i){const n=t.XpG(4);t.R7$(),t.Y8G("storefrontTranslate",n.config.trialPriceMessage)("storefrontTranslateArgs",n.trialPriceArgs),t.R7$(),t.Y8G("storefrontTranslate",n.config.finalPriceMessage)("storefrontTranslateArgs",n.finalPriceArgs)}}function gt(i,u){if(1&i&&(t.qex(0),t.nrm(1,"div",26)(2,"div",25),t.bVm()),2&i){const n=t.XpG(4);t.R7$(),t.Y8G("storefrontTranslate",n.config.introductoryPriceMessage)("storefrontTranslateArgs",n.introductoryPriceArgs),t.R7$(),t.Y8G("storefrontTranslate",n.config.finalPriceMessage)("storefrontTranslateArgs",n.finalPriceArgs)}}function ft(i,u){if(1&i&&(t.qex(0),t.nrm(1,"div",27)(2,"div",25),t.bVm()),2&i){const n=t.XpG(4);t.R7$(),t.Y8G("storefrontTranslate",n.config.discountPriceMessage)("storefrontTranslateArgs",n.discountPriceArgs),t.R7$(),t.Y8G("storefrontTranslate",n.config.finalPriceMessage)("storefrontTranslateArgs",n.finalPriceArgs)}}function dt(i,u){if(1&i&&(t.qex(0),t.nrm(1,"div",28),t.bVm()),2&i){const n=t.XpG(4);t.R7$(),t.Y8G("storefrontTranslate",n.config.priceMessage)("storefrontTranslateArgs",n.finalPriceArgs)}}function mt(i,u){if(1&i&&(t.j41(0,"div",23),t.DNE(1,pt,3,4,"ng-container",0)(2,gt,3,4,"ng-container",0)(3,ft,3,4,"ng-container",0)(4,dt,2,2,"ng-container",0),t.k0s()),2&i){const n=t.XpG(3);t.R7$(),t.Y8G("ngIf",n.subscription.trial),t.R7$(),t.Y8G("ngIf",!n.subscription.trial&&n.subscription.introductoryPrice),t.R7$(),t.Y8G("ngIf",!n.subscription.trial&&!n.subscription.introductoryPrice&&n.subscription.discount),t.R7$(),t.Y8G("ngIf",!n.subscription.trial&&!n.subscription.introductoryPrice&&!n.subscription.discount)}}function ht(i,u){if(1&i&&t.nrm(0,"div",29),2&i){const n=t.XpG(3);t.Y8G("storefrontTranslate",n.config.descriptionMessage)("storefrontTranslateArgs",t.eq3(2,G,n.subscription.description))}}function _t(i,u){if(1&i&&t.nrm(0,"div",3),2&i){const n=u.$implicit;t.ZvI("issue-custom-message ",n.class||"",""),t.Y8G("storefrontTranslate",n.message)("storefrontTranslateArgs",n.variables||t.lJ4(5,tt))}}function bt(i,u){1&i&&t.nrm(0,"storefront-spinner",13)}function vt(i,u){1&i&&t.nrm(0,"span",14),2&i&&t.Y8G("storefrontTranslate","SUBSCRIPTION_ACTION_PURCHASE_UNAVAILABLE")}function It(i,u){if(1&i&&(t.qex(0),t.j41(1,"div",16),t.nrm(2,"h3",17),t.DNE(3,lt,1,0,"div",18),t.k0s(),t.DNE(4,mt,5,4,"div",19)(5,ht,1,4,"div",20)(6,_t,1,6,"div",21)(7,bt,1,0,"storefront-spinner",6)(8,vt,1,1,"span",8),t.bVm()),2&i){const n=t.XpG(2);t.R7$(2),t.Y8G("storefrontTranslate",n.config.titleMessage)("storefrontTranslateArgs",t.eq3(8,G,n.subscription.name)),t.R7$(),t.Y8G("ngIf",n.active),t.R7$(),t.Y8G("ngIf",n.subscription.price),t.R7$(),t.Y8G("ngIf","details"==n.template&&!!n.subscription.description),t.R7$(),t.Y8G("ngForOf",n.customMessages),t.R7$(),t.Y8G("ngIf",n.purchaseLoading||n.priceLoading),t.R7$(),t.Y8G("ngIf",!n.subscription.price&&!n.priceLoading)}}function Tt(i,u){if(1&i&&(t.qex(0),t.DNE(1,ut,3,2,"ng-container",0)(2,It,9,10,"ng-container",0),t.bVm()),2&i){const n=t.XpG();t.R7$(),t.Y8G("ngIf","issues"===n.template),t.R7$(),t.Y8G("ngIf","details"==n.template||"default"==n.template||!n.template)}}function St(i,u){if(1&i&&(t.qex(0),t.nrm(1,"storefront-element",30),t.bVm()),2&i){const n=t.XpG();t.R7$(),t.Y8G("baseContext",n.baseContext)("baseConfig",n.fallback)}}let Ct=(()=>{var i;class u extends y.${get active(){return this.subscription&&this.subscription.purchased}get isDisabled(){if(!this.subscription||!this.subscription.price)return!0}get contextKey(){return u.type}constructor(e,c,p,h,B,E,v,M,P,L,x,N,f){super(p,E,v,M,x),this.dialog=e,this.store=c,this.injector=p,this.changeDetectorRef=h,this.eventActionService=B,this.elementRef=E,this.contextService=v,this.document=M,this.transferState=P,this.purpleService=L,this.globalService=x,this.platformId=N,this.resourceService=f,this.defaultConfig={...O},this.priceLoading=!1,this.issuesPromotionArgs=[],this.introductoryPriceArgs=[],this.trialPriceArgs=[],this.finalPriceArgs=[],this.discountPriceArgs=[]}ngOnDestroy(){this.dataSource&&this.contextService.unregisterDataSource(this.dataSource)}onConfigChanges(){var e=this;return(0,r.A)(function*(){var c;e.purchaseConfig={...O.purchase,...e.config.purchase},e.purchaseConfig.upgradeMode=(0,l.v3)(e.purchaseConfig.upgradeMode),e.subscription?e.subscription=e.context.subscription:e.config.dataSource?(e.dataSource=(0,g.O8)(e.config.dataSource,e.contextService,e.store,e.elementRef.nativeElement,e.transferState,e.purpleService,e.globalService,e.document,e.resourceService,e.platformId),e.store.subscribe(e.dataSource.data$,p=>{e.subscription=p[0],(0===p.length||p.some(h=>null!==h)&&!e.subscription)&&e.showFallback(),e.onLoadSubscription()},D.lQ,D.lQ,"data"),yield e.dataSource.loadData()):e.subscription=e.baseContext.subscription,e.onLoadSubscription(),e.customMessages=null===(c=e.config.customMessages)||void 0===c?void 0:c.filter(p=>(0,l.Ol)(p)).map(p=>(0,l.v3)(p)),e.changeDetectorRef.markForCheck()})()}onLoadSubscription(){var e=this;return(0,r.A)(function*(){e.subscription&&(e.context.subscription=e.subscription,yield e.loadPrice())})()}loadPrice(){var e=this;return(0,r.A)(function*(){if(e.template===T.ISSUES){const c=Object.keys(e.subscription.publications).map(f=>({publication:{id:{value:f}}})),p=e.config.issueFilter?{AND:[e.config.issueFilter,{OR:c}]}:{OR:c},h=(yield e.purpleService.getIssues({issueFilter:p})).nodes[0],B=new Date(h.publicationDate),E=(0,S.vY)(e.subscription.duration,B),v=(yield e.purpleService.getIssues({issueFilter:e.getDateFilter(E,p,h)})).nodes;e.displayedIssues=[...v,h].slice(0,e.config.maxDisplayIssues);let M=v.length+1,P=v.map(f=>f.productId);P.push(h.productId);const L=new Set(P);let x=[...v,h],N=e.config.promotionMessage;if(e.subscription.additionalUnlocks.count>0){const f=(0,S.BH)(e.subscription.additionalUnlocks,B),C=f===E?[...v]:(yield e.purpleService.getIssues({issueFilter:e.getDateFilter(f,p,h)})).nodes;x=[...x,...C],f!==E&&C.forEach(Y=>Y&&L.add(Y.productId)),M+=C.length,N=e.config.promotionAdditionalMessage}P=Array.from(L),e.priceLoading=!0,e.store.select((0,$.TX)(P),f=>{if(!f.includes(void 0)){const C=e.subscription.price,Y=x.reduce((H,Ut)=>{const Q=f.find(J=>J&&J.productId===Ut.productId);return Q?H+Q.price:H},0),W=new Intl.NumberFormat((0,D.JK)(),{style:"currency",currency:null==C?void 0:C.currency});e.issuesPromotionArgs=['<span class="issue-count">'.concat(M,"</span>"),'<span class="future-issue-count">'.concat(v.length+1,"</span>"),'<span class="former-price">'.concat(W.format(Y),"</span>"),'<span class="current-price">'.concat(W.format(C.price),"</span>")],e.issuesPromotionMessage=N,e.priceLoading=!1}}),e.store.dispatch((0,X.$W)({productIds:P}))}e.formatPrice()})()}formatPrice(){const e=(0,S.fs)(this.subscription.duration);if(this.finalPriceArgs=[this.subscription.price.formattedPrice,e.count,(0,b.t)(e.unit,e.count)],this.subscription.trial){const c=(0,S.ch)(this.subscription.trial);this.trialPriceArgs=[c.count,(0,b.t)(c.unit,c.count)]}if(this.subscription.introductoryPrice){const c=(0,S.ch)(this.subscription.introductoryPrice.pricePeriod);this.introductoryPriceArgs=[this.subscription.introductoryPrice.priceCycles,c.count,(0,b.t)(c.unit,c.count),this.subscription.introductoryPrice.formattedPrice]}if(this.subscription.discount){const c=(0,S.ch)(this.subscription.discount.pricePeriod);this.discountPriceArgs=[this.subscription.discount.priceCycles,c.count,(0,b.t)(c.unit,c.count),this.subscription.discount.formattedPrice]}}onClick(){this.template!==T.ISSUES&&this.purchase()}onClickPurchase(){this.purchase()}purchase(){var e=this;return(0,r.A)(function*(){var c;e.active||e.purchaseLoading||e.isDisabled||(e.purchaseLoading=!0,e.changeDetectorRef.detectChanges(),yield e.eventActionService.processSubscribeAction({...e.purchaseConfig,productId:e.subscription.productId,price:e.subscription.price.price,currency:e.subscription.price.currency,offerId:(null===(c=e.subscription.discount)||void 0===c?void 0:c.offerId)||void 0},e),e.purchaseLoading=!1,e.changeDetectorRef.detectChanges())})()}getDateFilter(e,c,p){return{AND:[{publicationDate:{value:e,operation:d.DateOperation.GREATER_THAN}},c,{id:{value:p.id,negated:!0}}]}}getTrackingParams(){return(0,U.z5)(this.subscription,this.subscription.price)}isGhost(){return!this.subscription&&!this.fallback}showFallback(){this.fallback=this.config.fallback}getContextKey(){return this.contextKey}hasContextChanged(e){return!o(e[this.getContextKey()],this.subscription)||super.hasContextChanged(e)}}return(i=u).type="subscription",i.\u0275fac=function(e){return new(e||i)(t.rXU(a.o),t.rXU(I.B),t.rXU(t.zZn),t.rXU(t.gRc),t.rXU(m.G),t.rXU(t.aKT),t.rXU(R.V),t.rXU(_.qQ),t.rXU(t.pJN),t.rXU(F.Wj),t.rXU(V.d),t.rXU(t.Agw),t.rXU(z.Q))},i.\u0275cmp=t.VBU({type:i,selectors:[["storefront-subscription"]],hostVars:3,hostBindings:function(e,c){1&e&&t.bIt("click",function(){return c.onClick()}),2&e&&(t.BMQ("disabled",c.isDisabled),t.AVh("active",c.active))},features:[t.Jv_([I.B]),t.Vt3],decls:2,vars:2,consts:[[4,"ngIf"],["class","subscription-loading",4,"ngIf"],["class","subscription-issues stacked",4,"ngIf"],[3,"storefrontTranslate","storefrontTranslateArgs"],["class","subscription-issues-promotion",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],["mat-ripple","",1,"action-button",3,"click","disabled"],["class","button-spinner",4,"ngIf"],[3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[3,"storefrontTranslate",4,"ngIf"],[1,"subscription-issues","stacked"],["height","DEFAULT",3,"src",4,"ngFor","ngForOf"],["height","DEFAULT",3,"src"],[1,"subscription-issues-promotion",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"button-spinner"],[3,"storefrontTranslate"],[1,"subscription-loading"],[1,"subscription-info"],[1,"subscription-title",3,"storefrontTranslate","storefrontTranslateArgs"],["class","subscription-purchased","storefrontTranslate","SUBSCRIPTION_PURCHASED",4,"ngIf"],["class","subscription-price",4,"ngIf"],["class","subscription-description",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[3,"class","storefrontTranslate","storefrontTranslateArgs",4,"ngFor","ngForOf"],["storefrontTranslate","SUBSCRIPTION_PURCHASED",1,"subscription-purchased"],[1,"subscription-price"],[1,"subscription-price-trial",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-price-final",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-price-introductory",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-price-discount",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-price-regular",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-description",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-fallback",3,"baseContext","baseConfig"]],template:function(e,c){1&e&&t.DNE(0,Tt,3,2,"ng-container",0)(1,St,2,2,"ng-container",0),2&e&&(t.Y8G("ngIf",c.subscription),t.R7$(),t.Y8G("ngIf",!c.subscription&&c.fallback))},dependencies:[_.Sq,_.bT,j.M,Z.t,w.h,k.r6,q._],styles:['.aspectRatioBase{position:relative;display:block}.aspectRatioBase:before{content:"";position:relative;display:block}.aspectRatioBase>*{position:absolute}storefront-subscription{position:relative;display:flex;border-radius:var(--borderRadius);overflow:hidden;border:2px solid var(--primaryColor);background-color:var(--primaryColor);color:#fff;align-items:center;padding:var(--subscriptionPaddingVert) var(--subscriptionPaddingHoriz)}storefront-subscription .subscription-info{position:relative;flex-grow:1;display:flex;align-items:center}storefront-subscription .subscription-info .subscription-purchased{background-color:var(--primaryColor);color:#fff;line-height:1;border-radius:var(--subscriptionPurchasedBorderRadius);margin-left:var(--subscriptionPurchasedMarginHoriz)}storefront-subscription .subscription-price{position:relative}storefront-subscription storefront-spinner{width:20px;margin:0 8px}storefront-subscription.active{background-color:#fff;color:#000}storefront-subscription.ghost{background-image:linear-gradient(90deg,var(--ghostColor) 0px,rgb(236,236,236) 40px,var(--ghostColor) 80px);background-size:80vw;animation:ghost-lines 2s infinite linear;border-color:transparent}storefront-subscription[template=issues]{background-color:transparent;border:none;flex-direction:column;color:var(--textColor)}storefront-subscription[template=issues] h3{margin:var(--gutter);text-align:center}storefront-subscription[template=issues] .subscription-issues{display:flex;justify-content:center;width:100%}storefront-subscription[template=issues] .subscription-issues storefront-image{margin:calc(var(--gutter) / 2)}storefront-subscription[template=issues] .subscription-issues storefront-image img{width:100%}storefront-subscription[template=issues] .subscription-issues-promotion{text-align:center;margin:var(--gutter)}storefront-subscription[template=issues] .subscription-issues-promotion span{font-weight:700}storefront-subscription[template=issues] .subscription-issues-promotion span.former-price,storefront-subscription[template=issues] .subscription-issues-promotion span.current-price{color:var(--primaryColor)}storefront-subscription[template=issues] button{color:#fff;background-color:var(--primaryColor)}storefront-subscription[template=issues] button[disabled]{opacity:.5}@media (max-width: 533px) and (orientation: portrait),(max-height: 533px) and (orientation: landscape){storefront-subscription[template=issues] button{width:100%}}storefront-subscription[template=issues] storefront-spinner.subscription-loading{height:100px;width:100px;--spinnerColor: var(--secondaryColor)}\n'],encapsulation:2}),u})();var Rt=s(6483),Pt=s(6215),At=s(1605),Et=s(4403),xt=s(6895);let yt=(()=>{var i;class u{}return(i=u).\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.$C({type:i}),i.\u0275inj=t.G2t({imports:[_.MD,Rt.h,Pt.O,At.P,Et.U,k.pZ,xt.r]}),u})();const Dt=Ct}}]);
|
1
|
+
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_subscription_subscription_module_ts"],{2932:(K,P,s)=>{s.d(P,{h:()=>y,q:()=>T});var h=s(177),r=s(3953),A=s(8251),g=s(8890),S=s(9876),b=s(345),E=s(4748),U=s(9516),$=s(8471);const X=["image"];function v(l,M){if(1&l){const p=r.RV6();r.j41(0,"img",2,0),r.bIt("error",function(){r.eBV(p);const o=r.XpG();return r.Njj(o.onError())}),r.k0s()}if(2&l){const p=r.XpG();r.Y8G("src",p.safeResizeSrc,r.B4B)("alt",p.alt)("title",p.title),r.BMQ("aria-label",p.ariaLabel)}}let y=(()=>{var l;class M{set image(t){t&&this.onLoad(t),this._image=t}get image(){return this._image}constructor(t,o,f,C,F,V,j,z){this.sanitizer=t,this.changeDetectorRef=o,this.elementRef=f,this.subscriptions=C,this.platformId=F,this.ssrService=V,this.contextService=j,this.purpleService=z,this.error=new r.bkB,this.height=T.AUTO}get empty(){return!this.src}ngOnInit(){this.initProperties(),(0,h.UE)(this.platformId)&&this.subscriptions.subscribe((0,g.eh)(this,this.elementRef,{skipWait:!1}),t=>this.load())}initProperties(){var t,o,f,C;this.alt=(null===(t=this.extendedThumbnail)||void 0===t?void 0:t.properties.alt)||(null===(o=this.extendedThumbnail)||void 0===o?void 0:o.properties.caption)||"",this.title=this.alt,this.ariaLabel=null!==(f=this.label)&&void 0!==f?f:this.alt,this.focalPoint=null===(C=this.extendedThumbnail)||void 0===C?void 0:C.properties.focuspoint}initAndLoad(){this.initProperties(),this.load()}load(){this.loaded||(this.loaded=!0,this.src&&this.update(),this.changeDetectorRef.detectChanges())}ngOnChanges(t){t.src&&this.loaded&&this.update()}update(){this.updateImageRatio(),this.updateResizeSrc()}onLoad(t){t.nativeElement.classList.add("loaded"),this.elementRef.nativeElement.classList.add("loaded"),this.changeDetectorRef.detectChanges(),t.nativeElement.addEventListener("load",()=>{this.updateImageRatio(!0,t),this.changeDetectorRef.markForCheck()}),t.nativeElement.addEventListener("error",function(){t.nativeElement.style.display="none",t.nativeElement.nextElementSibling&&(t.nativeElement.nextElementSibling.style.display="inline")}),this.purpleService.addImageSrc(this.resizeSrc)}onError(){if(!this.safeResizeSrc)return;const t=this.purpleService.getAlternativeSrc(this.src);var o;t&&t!==this.resizeSrc?(this.setResizeSrc(t),this.changeDetectorRef.detectChanges()):(null===(o=this.image)||void 0===o||o.nativeElement.classList.add("error"),this.elementRef.nativeElement.classList.add("error"),this.error.emit(this))}updateImageRatio(t=!1,o=this.image){this.imageRatio=this.height===T.AUTO?(0,S.z)(!t,null==o?void 0:o.nativeElement,this.src)+"%":void 0}updateResizeSrc(){this.setResizeSrc((0,S.G)(this.elementRef.nativeElement,this.src,this.imageResolutionStrategy,this.focalPoint)),this.changeDetectorRef.detectChanges()}setResizeSrc(t){const o=this.contextService.toResourceUrl(t);this.resizeSrc=o,this.safeResizeSrc=this.sanitizer.bypassSecurityTrustResourceUrl(o)}}return(l=M).\u0275fac=function(t){return new(t||l)(r.rXU(b.up),r.rXU(r.gRc),r.rXU(r.aKT),r.rXU(A.v),r.rXU(r.Agw),r.rXU(E.i),r.rXU(U.V),r.rXU($.Wj))},l.\u0275cmp=r.VBU({type:l,selectors:[["storefront-image"]],viewQuery:function(t,o){if(1&t&&r.GBs(X,5),2&t){let f;r.mGM(f=r.lsd())&&(o.image=f.first)}},hostAttrs:["ngSkipHydration","true"],hostVars:12,hostBindings:function(t,o){2&t&&(r.BMQ("src",o.src)("label",o.label)("resolution-strategy",o.imageResolutionStrategy)("alt",o.alt)("title",o.title)("aria-label",o.ariaLabel)("focal-point",o.focalPoint)("height-strategy",o.height),r.xc7("padding-top",o.imageRatio),r.AVh("empty",o.empty))},inputs:{src:"src",label:"label",extendedThumbnail:"extendedThumbnail",imageResolutionStrategy:"imageResolutionStrategy",height:"height"},outputs:{error:"error"},features:[r.Jv_([A.v]),r.OA$],decls:1,vars:1,consts:[["image",""],[3,"src","alt","title","error",4,"ngIf"],[3,"error","src","alt","title"]],template:function(t,o){1&t&&r.DNE(0,v,2,4,"img",1),2&t&&r.Y8G("ngIf",o.loaded&&o.src)},dependencies:[h.bT],styles:["storefront-image{display:flex;justify-content:center;align-items:center;position:relative;background-color:var(--imageLoadingColor);transition:.2s background-color ease-in}storefront-image[height-strategy=FIXED]>img,storefront-image[height-strategy=AUTO]>img{position:absolute;width:auto;max-width:100%;top:0;object-fit:contain;height:100%;left:50%;transform:translate(-50%)}storefront-image.img-with-hidden-alt{content:attr(data-alt);display:none}storefront-image>img{display:block;transition:opacity .2s ease-in,background-color .2s ease-in;background-color:#fff0;max-width:100%;max-height:100%;opacity:0}storefront-image>img.loaded{opacity:1;background-color:var(--imageBackgroundColor)}storefront-image.loaded{background:#fff0}\n"],encapsulation:2,changeDetection:0}),M})();var T=function(l){return l.AUTO="AUTO",l.FIXED="FIXED",l.DEFAULT="DEFAULT",l}(T||{})},4403:(K,P,s)=>{s.d(P,{U:()=>A});var h=s(177),r=s(3953);let A=(()=>{var g;class S{}return(g=S).\u0275fac=function(E){return new(E||g)},g.\u0275mod=r.$C({type:g}),g.\u0275inj=r.G2t({imports:[h.MD]}),S})()},7995:(K,P,s)=>{s.r(P),s.d(P,{SubscriptionModule:()=>yt,component:()=>xt});var h=s(177),r=s(467),A=s(4404),g=s(8251),S=s(1210),b=function(i){return i.DEFAULT="default",i.ISSUES="issues",i.DETAILS="details",i}(b||{});const E={template:b.DEFAULT,maxDisplayIssues:3,purchase:{showErrorDialog:!0},titleMessage:"SUBSCRIPTION_TITLE",purchaseButtonMessage:"SUBSCRIPTION_ACTION_PURCHASE",purchaseUnavailableButtonMessage:"SUBSCRIPTION_ACTION_PURCHASE_UNAVAILABLE",promotionMessage:"SUBSCRIPTION_ISSUES_PROMOTION",promotionAdditionalMessage:"SUBSCRIPTION_ISSUES_ADDITIONAL_PROMOTION",priceMessage:"SUBSCRIPTION_PRICE",finalPriceMessage:"SUBSCRIPTION_PRICE_FINAL",introductoryPriceMessage:"SUBSCRIPTION_PRICE_INTRODUCTORY",trialPriceMessage:"SUBSCRIPTION_PRICE_TRIAL",discountPriceMessage:"SUBSCRIPTION_PRICE_DISCOUNT",descriptionMessage:"SUBSCRIPTION_DESCRIPTION"};var U=s(3178),$=s(4622),X=s(4004),v=s(4333),y=s(7967),T=s(8179),l=s(7879),M=s(4452),p=s(362),t=s(3953),o=s(20),f=s(8004),C=s(9516),F=s(8471),V=s(1652),j=s(8909),z=s(7240),Z=s(2932),k=s(6600),w=s(3648);const G=i=>[i],q=()=>[];function tt(i,c){1&i&&t.nrm(0,"storefront-image",11),2&i&&t.Y8G("src",c.$implicit.thumbnails.default)}function nt(i,c){if(1&i&&(t.j41(0,"div",9),t.DNE(1,tt,1,1,"storefront-image",10),t.k0s()),2&i){const e=t.XpG(4);t.R7$(),t.Y8G("ngForOf",e.displayedIssues)}}function et(i,c){if(1&i&&t.nrm(0,"p",12),2&i){const e=t.XpG(4);t.Y8G("storefrontTranslate",e.issuesPromotionMessage)("storefrontTranslateArgs",e.issuesPromotionArgs)}}function it(i,c){1&i&&t.nrm(0,"storefront-spinner",13)}function st(i,c){if(1&i&&t.nrm(0,"span",3),2&i){const e=t.XpG(4);t.Y8G("storefrontTranslate",e.config.purchaseButtonMessage)("storefrontTranslateArgs",t.eq3(2,G,e.subscription.price.formattedPrice))}}function rt(i,c){if(1&i&&t.nrm(0,"span",14),2&i){const e=t.XpG(4);t.Y8G("storefrontTranslate",e.config.purchaseUnavailableButtonMessage)}}function ot(i,c){if(1&i){const e=t.RV6();t.qex(0),t.DNE(1,nt,2,1,"div",2),t.nrm(2,"h3",3),t.DNE(3,et,1,2,"p",4),t.j41(4,"button",5),t.bIt("click",function(){t.eBV(e);const a=t.XpG(3);return t.Njj(a.onClickPurchase())}),t.DNE(5,it,1,0,"storefront-spinner",6)(6,st,1,4,"span",7)(7,rt,1,1,"span",8),t.k0s(),t.bVm()}if(2&i){const e=t.XpG(3);t.R7$(),t.Y8G("ngIf",e.displayedIssues),t.R7$(),t.Y8G("storefrontTranslate",e.config.titleMessage)("storefrontTranslateArgs",t.eq3(8,G,e.subscription.name)),t.R7$(),t.Y8G("ngIf",e.issuesPromotionMessage),t.R7$(),t.Y8G("disabled",!e.subscription.price||e.purchaseLoading),t.R7$(),t.Y8G("ngIf",e.purchaseLoading),t.R7$(),t.Y8G("ngIf",e.subscription.price),t.R7$(),t.Y8G("ngIf",!e.subscription.price)}}function at(i,c){1&i&&t.nrm(0,"storefront-spinner",15)}function ct(i,c){if(1&i&&(t.qex(0),t.DNE(1,ot,8,10,"ng-container",0)(2,at,1,0,"storefront-spinner",1),t.bVm()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",e.config&&!e.priceLoading),t.R7$(),t.Y8G("ngIf",!e.config||e.priceLoading)}}function ut(i,c){1&i&&t.nrm(0,"div",22)}function lt(i,c){if(1&i&&(t.qex(0),t.nrm(1,"div",24)(2,"div",25),t.bVm()),2&i){const e=t.XpG(4);t.R7$(),t.Y8G("storefrontTranslate",e.config.trialPriceMessage)("storefrontTranslateArgs",e.trialPriceArgs),t.R7$(),t.Y8G("storefrontTranslate",e.config.finalPriceMessage)("storefrontTranslateArgs",e.finalPriceArgs)}}function pt(i,c){if(1&i&&(t.qex(0),t.nrm(1,"div",26)(2,"div",25),t.bVm()),2&i){const e=t.XpG(4);t.R7$(),t.Y8G("storefrontTranslate",e.config.introductoryPriceMessage)("storefrontTranslateArgs",e.introductoryPriceArgs),t.R7$(),t.Y8G("storefrontTranslate",e.config.finalPriceMessage)("storefrontTranslateArgs",e.finalPriceArgs)}}function gt(i,c){if(1&i&&(t.qex(0),t.nrm(1,"div",27)(2,"div",25),t.bVm()),2&i){const e=t.XpG(4);t.R7$(),t.Y8G("storefrontTranslate",e.config.discountPriceMessage)("storefrontTranslateArgs",e.discountPriceArgs),t.R7$(),t.Y8G("storefrontTranslate",e.config.finalPriceMessage)("storefrontTranslateArgs",e.finalPriceArgs)}}function ft(i,c){if(1&i&&(t.qex(0),t.nrm(1,"div",28),t.bVm()),2&i){const e=t.XpG(4);t.R7$(),t.Y8G("storefrontTranslate",e.config.priceMessage)("storefrontTranslateArgs",e.finalPriceArgs)}}function dt(i,c){if(1&i&&(t.j41(0,"div",23),t.DNE(1,lt,3,4,"ng-container",0)(2,pt,3,4,"ng-container",0)(3,gt,3,4,"ng-container",0)(4,ft,2,2,"ng-container",0),t.k0s()),2&i){const e=t.XpG(3);t.R7$(),t.Y8G("ngIf",e.subscription.trial),t.R7$(),t.Y8G("ngIf",!e.subscription.trial&&e.subscription.introductoryPrice),t.R7$(),t.Y8G("ngIf",!e.subscription.trial&&!e.subscription.introductoryPrice&&e.subscription.discount),t.R7$(),t.Y8G("ngIf",!e.subscription.trial&&!e.subscription.introductoryPrice&&!e.subscription.discount)}}function mt(i,c){if(1&i&&t.nrm(0,"div",29),2&i){const e=t.XpG(3);t.Y8G("storefrontTranslate",e.config.descriptionMessage)("storefrontTranslateArgs",t.eq3(2,G,e.subscription.description))}}function ht(i,c){if(1&i&&t.nrm(0,"div",3),2&i){const e=c.$implicit;t.ZvI("issue-custom-message ",e.class||"",""),t.Y8G("storefrontTranslate",e.message)("storefrontTranslateArgs",e.variables||t.lJ4(5,q))}}function _t(i,c){1&i&&t.nrm(0,"storefront-spinner",13)}function bt(i,c){1&i&&t.nrm(0,"span",14),2&i&&t.Y8G("storefrontTranslate","SUBSCRIPTION_ACTION_PURCHASE_UNAVAILABLE")}function vt(i,c){if(1&i&&(t.qex(0),t.j41(1,"div",16),t.nrm(2,"h3",17),t.DNE(3,ut,1,0,"div",18),t.k0s(),t.DNE(4,dt,5,4,"div",19)(5,mt,1,4,"div",20)(6,ht,1,6,"div",21)(7,_t,1,0,"storefront-spinner",6)(8,bt,1,1,"span",8),t.bVm()),2&i){const e=t.XpG(2);t.R7$(2),t.Y8G("storefrontTranslate",e.config.titleMessage)("storefrontTranslateArgs",t.eq3(8,G,e.subscription.name)),t.R7$(),t.Y8G("ngIf",e.active),t.R7$(),t.Y8G("ngIf",e.subscription.price),t.R7$(),t.Y8G("ngIf","details"==e.template&&!!e.subscription.description),t.R7$(),t.Y8G("ngForOf",e.customMessages),t.R7$(),t.Y8G("ngIf",e.purchaseLoading||e.priceLoading),t.R7$(),t.Y8G("ngIf",!e.subscription.price&&!e.priceLoading)}}function Tt(i,c){if(1&i&&(t.qex(0),t.DNE(1,ct,3,2,"ng-container",0)(2,vt,9,10,"ng-container",0),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngIf","issues"===e.template),t.R7$(),t.Y8G("ngIf","details"==e.template||"default"==e.template||!e.template)}}function It(i,c){if(1&i&&(t.qex(0),t.nrm(1,"storefront-element",30),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.Y8G("baseContext",e.baseContext)("baseConfig",e.fallback)}}let St=(()=>{var i;class c extends S.${get active(){return this.subscription&&this.subscription.purchased}get isDisabled(){if(!this.subscription||!this.subscription.price)return!0}get contextKey(){return c.type}constructor(n,a,u,d,B,x,_,O,R,L,D,N){super(u,x,_,O,D),this.dialog=n,this.store=a,this.injector=u,this.changeDetectorRef=d,this.eventActionService=B,this.elementRef=x,this.contextService=_,this.document=O,this.transferState=R,this.purpleService=L,this.globalService=D,this.purpleEnv=N,this.defaultConfig={...E},this.priceLoading=!1,this.issuesPromotionArgs=[],this.introductoryPriceArgs=[],this.trialPriceArgs=[],this.finalPriceArgs=[],this.discountPriceArgs=[]}ngOnDestroy(){this.dataSource&&this.contextService.unregisterDataSource(this.dataSource)}onConfigChanges(){var n=this;return(0,r.A)(function*(){var a;n.purchaseConfig={...E.purchase,...n.config.purchase},n.purchaseConfig.upgradeMode=(0,T.v3)(n.purchaseConfig.upgradeMode),n.subscription?n.subscription=n.context.subscription:n.config.dataSource?(n.dataSource=(0,M.O8)(n.injector,n.config.dataSource,n.elementRef.nativeElement,n.document),n.store.subscribe(n.dataSource.data$,u=>{n.subscription=u[0],(0===u.length||u.some(d=>null!==d)&&!n.subscription)&&n.showFallback(),n.onLoadSubscription()},U.lQ,U.lQ,"data"),yield n.dataSource.loadData()):n.subscription=n.baseContext.subscription,n.onLoadSubscription(),n.customMessages=null===(a=n.config.customMessages)||void 0===a?void 0:a.filter(u=>(0,T.Ol)(u)).map(u=>(0,T.v3)(u)),n.changeDetectorRef.markForCheck()})()}onLoadSubscription(){var n=this;return(0,r.A)(function*(){n.subscription&&(n.context.subscription=n.subscription,yield n.loadPrice())})()}loadPrice(){var n=this;return(0,r.A)(function*(){if(n.template===b.ISSUES){const a=Object.keys(n.subscription.publications).map(m=>({publication:{id:{value:m}}})),u=n.config.issueFilter?{AND:[n.config.issueFilter,{OR:a}]}:{OR:a},d=(yield n.purpleService.getIssues({issueFilter:u})).nodes[0],B=new Date(d.publicationDate),x=(0,v.vY)(n.subscription.duration,B),_=(yield n.purpleService.getIssues({issueFilter:n.getDateFilter(x,u,d)})).nodes;n.displayedIssues=[..._,d].slice(0,n.config.maxDisplayIssues);let O=_.length+1,R=_.map(m=>m.productId);R.push(d.productId);const L=new Set(R);let D=[..._,d],N=n.config.promotionMessage;if(n.subscription.additionalUnlocks.count>0){const m=(0,v.BH)(n.subscription.additionalUnlocks,B),I=m===x?[..._]:(yield n.purpleService.getIssues({issueFilter:n.getDateFilter(m,u,d)})).nodes;D=[...D,...I],m!==x&&I.forEach(Y=>Y&&L.add(Y.productId)),O+=I.length,N=n.config.promotionAdditionalMessage}R=Array.from(L),n.priceLoading=!0,n.store.select((0,$.TX)(R),m=>{if(!m.includes(void 0)){const I=n.subscription.price,Y=D.reduce((H,Dt)=>{const Q=m.find(J=>J&&J.productId===Dt.productId);return Q?H+Q.price:H},0),W=new Intl.NumberFormat((0,U.JK)(),{style:"currency",currency:null==I?void 0:I.currency});n.issuesPromotionArgs=['<span class="issue-count">'.concat(O,"</span>"),'<span class="future-issue-count">'.concat(_.length+1,"</span>"),'<span class="former-price">'.concat(W.format(Y),"</span>"),'<span class="current-price">'.concat(W.format(I.price),"</span>")],n.issuesPromotionMessage=N,n.priceLoading=!1}}),n.store.dispatch((0,X.$W)({productIds:R}))}n.formatPrice()})()}formatPrice(){const n=(0,v.fs)(this.subscription.duration);if(this.finalPriceArgs=[this.subscription.price.formattedPrice,n.count,(0,y.t)(n.unit,n.count)],this.subscription.trial){const a=(0,v.ch)(this.subscription.trial);this.trialPriceArgs=[a.count,(0,y.t)(a.unit,a.count)]}if(this.subscription.introductoryPrice){const a=(0,v.ch)(this.subscription.introductoryPrice.pricePeriod);this.introductoryPriceArgs=[this.subscription.introductoryPrice.priceCycles,a.count,(0,y.t)(a.unit,a.count),this.subscription.introductoryPrice.formattedPrice]}if(this.subscription.discount){const a=(0,v.ch)(this.subscription.discount.pricePeriod);this.discountPriceArgs=[this.subscription.discount.priceCycles,a.count,(0,y.t)(a.unit,a.count),this.subscription.discount.formattedPrice]}}onClick(){this.template!==b.ISSUES&&this.purchase()}onClickPurchase(){this.purchase()}purchase(){var n=this;return(0,r.A)(function*(){var a;n.active||n.purchaseLoading||n.isDisabled||(n.purchaseLoading=!0,n.changeDetectorRef.detectChanges(),yield n.eventActionService.processSubscribeAction({...n.purchaseConfig,productId:n.subscription.productId,price:n.subscription.price.price,currency:n.subscription.price.currency,offerId:(null===(a=n.subscription.discount)||void 0===a?void 0:a.offerId)||void 0},n),n.purchaseLoading=!1,n.changeDetectorRef.detectChanges())})()}getDateFilter(n,a,u){return{AND:[{publicationDate:{value:n,operation:A.DateOperation.GREATER_THAN}},a,{id:{value:u.id,negated:!0}}]}}getTrackingParams(){return(0,l.z5)(this.subscription,this.subscription.price)}isGhost(){return!this.subscription&&!this.fallback}showFallback(){this.fallback=this.config.fallback}getContextKey(){return this.contextKey}hasContextChanged(n){return!p(n[this.getContextKey()],this.subscription)||super.hasContextChanged(n)}}return(i=c).type="subscription",i.\u0275fac=function(n){return new(n||i)(t.rXU(o.o),t.rXU(g.B),t.rXU(t.zZn),t.rXU(t.gRc),t.rXU(f.G),t.rXU(t.aKT),t.rXU(C.V),t.rXU(h.qQ),t.rXU(t.pJN),t.rXU(F.Wj),t.rXU(V.d),t.rXU(l.r6))},i.\u0275cmp=t.VBU({type:i,selectors:[["storefront-subscription"]],hostVars:3,hostBindings:function(n,a){1&n&&t.bIt("click",function(){return a.onClick()}),2&n&&(t.BMQ("disabled",a.isDisabled),t.AVh("active",a.active))},features:[t.Jv_([g.B]),t.Vt3],decls:2,vars:2,consts:[[4,"ngIf"],["class","subscription-loading",4,"ngIf"],["class","subscription-issues stacked",4,"ngIf"],[3,"storefrontTranslate","storefrontTranslateArgs"],["class","subscription-issues-promotion",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],["mat-ripple","",1,"action-button",3,"click","disabled"],["class","button-spinner",4,"ngIf"],[3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[3,"storefrontTranslate",4,"ngIf"],[1,"subscription-issues","stacked"],["height","DEFAULT",3,"src",4,"ngFor","ngForOf"],["height","DEFAULT",3,"src"],[1,"subscription-issues-promotion",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"button-spinner"],[3,"storefrontTranslate"],[1,"subscription-loading"],[1,"subscription-info"],[1,"subscription-title",3,"storefrontTranslate","storefrontTranslateArgs"],["class","subscription-purchased","storefrontTranslate","SUBSCRIPTION_PURCHASED",4,"ngIf"],["class","subscription-price",4,"ngIf"],["class","subscription-description",3,"storefrontTranslate","storefrontTranslateArgs",4,"ngIf"],[3,"class","storefrontTranslate","storefrontTranslateArgs",4,"ngFor","ngForOf"],["storefrontTranslate","SUBSCRIPTION_PURCHASED",1,"subscription-purchased"],[1,"subscription-price"],[1,"subscription-price-trial",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-price-final",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-price-introductory",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-price-discount",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-price-regular",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-description",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"subscription-fallback",3,"baseContext","baseConfig"]],template:function(n,a){1&n&&t.DNE(0,Tt,3,2,"ng-container",0)(1,It,2,2,"ng-container",0),2&n&&(t.Y8G("ngIf",a.subscription),t.R7$(),t.Y8G("ngIf",!a.subscription&&a.fallback))},dependencies:[h.Sq,h.bT,j.M,z.t,Z.h,k.r6,w._],styles:['.aspectRatioBase{position:relative;display:block}.aspectRatioBase:before{content:"";position:relative;display:block}.aspectRatioBase>*{position:absolute}storefront-subscription{position:relative;display:flex;border-radius:var(--borderRadius);overflow:hidden;border:2px solid var(--primaryColor);background-color:var(--primaryColor);color:#fff;align-items:center;padding:var(--subscriptionPaddingVert) var(--subscriptionPaddingHoriz)}storefront-subscription .subscription-info{position:relative;flex-grow:1;display:flex;align-items:center}storefront-subscription .subscription-info .subscription-purchased{background-color:var(--primaryColor);color:#fff;line-height:1;border-radius:var(--subscriptionPurchasedBorderRadius);margin-left:var(--subscriptionPurchasedMarginHoriz)}storefront-subscription .subscription-price{position:relative}storefront-subscription storefront-spinner{width:20px;margin:0 8px}storefront-subscription.active{background-color:#fff;color:#000}storefront-subscription.ghost{background-image:linear-gradient(90deg,var(--ghostColor) 0px,rgb(236,236,236) 40px,var(--ghostColor) 80px);background-size:80vw;animation:ghost-lines 2s infinite linear;border-color:transparent}storefront-subscription[template=issues]{background-color:transparent;border:none;flex-direction:column;color:var(--textColor)}storefront-subscription[template=issues] h3{margin:var(--gutter);text-align:center}storefront-subscription[template=issues] .subscription-issues{display:flex;justify-content:center;width:100%}storefront-subscription[template=issues] .subscription-issues storefront-image{margin:calc(var(--gutter) / 2)}storefront-subscription[template=issues] .subscription-issues storefront-image img{width:100%}storefront-subscription[template=issues] .subscription-issues-promotion{text-align:center;margin:var(--gutter)}storefront-subscription[template=issues] .subscription-issues-promotion span{font-weight:700}storefront-subscription[template=issues] .subscription-issues-promotion span.former-price,storefront-subscription[template=issues] .subscription-issues-promotion span.current-price{color:var(--primaryColor)}storefront-subscription[template=issues] button{color:#fff;background-color:var(--primaryColor)}storefront-subscription[template=issues] button[disabled]{opacity:.5}@media (max-width: 533px) and (orientation: portrait),(max-height: 533px) and (orientation: landscape){storefront-subscription[template=issues] button{width:100%}}storefront-subscription[template=issues] storefront-spinner.subscription-loading{height:100px;width:100px;--spinnerColor: var(--secondaryColor)}\n'],encapsulation:2}),c})();var Ct=s(6483),Rt=s(6215),Pt=s(1605),At=s(4403),Et=s(6895);let yt=(()=>{var i;class c{}return(i=c).\u0275fac=function(n){return new(n||i)},i.\u0275mod=t.$C({type:i}),i.\u0275inj=t.G2t({imports:[h.MD,Ct.h,Rt.O,Pt.P,At.U,k.pZ,Et.r]}),c})();const xt=St}}]);
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_swiper_swiper_module_ts"],{6082:(me,x,s)=>{s.r(x),s.d(x,{SwiperModule:()=>ge,component:()=>we});var v=s(177),u=s(467),t=s(4438),F=s(6239),R=s(4452),A=s(610),S=s(4338),z=s(3648),B=s(5273),m=s(3178),P=s(152),G=s(5964),U=s(9758),X=s(1985),O=s(8890),C=s(8179),E=s(9383),M=s(3472),j=s(8075),N=s(7879),V=s(9047),$=s(8004),H=s(5483),Z=s(4748),K=s(6860),Q=s(7900),W=s(8471),Y=s(1652),J=s(2838);const q=["container"],_=["ghostTemplate"],ee=["template"],te=["indicator"],ie=["pagination"],ne=["wrapper"];function re(o,f){1&o&&t.nrm(0,"div",14,5)}function se(o,f){if(1&o&&(t.j41(0,"div",11),t.DNE(1,re,2,0,"div",12),t.nrm(2,"div",13,4),t.k0s()),2&o){const w=t.XpG();t.R7$(),t.Y8G("ngIf","tabs"===w.paginationType)}}function ae(o,f){1&o&&(t.j41(0,"div",11),t.nrm(1,"div",13),t.k0s())}function oe(o,f){if(1&o){const w=t.RV6();t.j41(0,"div",17),t.bIt("click",function(){t.eBV(w);const i=t.XpG(2);return t.Njj(i.onClickPrev())}),t.k0s()}}function pe(o,f){if(1&o){const w=t.RV6();t.j41(0,"div",18),t.bIt("click",function(){t.eBV(w);const i=t.XpG(2);return t.Njj(i.onClickNext())}),t.k0s()}}function le(o,f){if(1&o&&(t.qex(0),t.DNE(1,oe,1,0,"div",15)(2,pe,1,0,"div",16),t.bVm()),2&o){const w=t.XpG();t.R7$(),t.Y8G("ngIf",!w.reachStart),t.R7$(),t.Y8G("ngIf",!w.reachEnd)}}const I="swiper-pagination-tab",D="swiper-pagination-tab-active";let ce=(()=>{var o;class f extends M.M{get heightStrategy(){return(this.config||this.baseConfig).height}get paginationType(){const e=(this.config||this.baseConfig).pagination;return e?"boolean"==typeof e?"bullets":(this.config||this.baseConfig).pagination.type:null}get swiperEffect(){return(this.config||{...this.defaultConfig,...this.baseConfig}).effect}constructor(e,i,n,r,p,a,d,l,c,g,h,y,L,b,k,de,fe,he,ue,T,ve){super(i,e,c,k,T),this.elementRef=e,this.injector=i,this.factoryResolver=n,this.renderer=r,this.changeDetectorRef=p,this.router=a,this.eventActionService=d,this.store=l,this.contextService=c,this.ngZone=g,this.ssrService=h,this.platform=y,this.translateService=L,this.matRippleOptions=b,this.document=k,this.platformId=de,this.purpleEnv=fe,this.transferState=he,this.purpleService=ue,this.globalService=T,this.resourceService=ve,this.reachEnd=!1,this.reachStart=!1,this.defaultConfig={...F.d},this.swiperConfig={slidesPerView:"auto",loop:!0,spaceBetween:0,floatEffect:{scale:.9,slideWidth:60,spaceBetweenAsPercentage:!1,opacity:.5},pagination:{el:".swiper-pagination",type:"bullets"},autoHeight:!1,initialSlide:0,shortSwipesRatio:.1},this.slides=[],this.ripples=[]}ngOnInit(){var e=()=>super.ngOnInit,i=this;return(0,u.A)(function*(){i.baseContext.isGhost||(yield i.translateService.inited,Array(3).fill(null).forEach((n,r)=>i.renderSlide(r,{ghost:!0})),i.initializing=!0,e().call(i))})()}updateRipples(){const e=this.elementRef.nativeElement.querySelectorAll(".".concat(I));this.ripples.forEach(i=>i.ngOnDestroy()),this.ripples=[],e.forEach(i=>{const n=new E.r6(new t.aKT(i),this.ngZone,this.platform,{...this.matRippleOptions});n.ngOnInit(),this.ripples.push(n)})}ngOnDestroy(){super.ngOnDestroy(),this.swiper&&this.swiper.destroy()}onConfigChanges(){var e=this;return(0,u.A)(function*(){var i;if(e.dataSource){if(e.dataSource.hasConfigChanged(e.config.dataSource))e.dataSource.setConfig(e.config.dataSource),e.dataSource.reset();else if(e.swiper){const r=e.getSlideIndexFromContext();return void(r!==e.swiper.activeIndex%e.dataSource.getData().length&&e.swiper.slideTo(r))}}else e.dataSource=(0,R.O8)(e.config.dataSource,e.contextService,e.store,e.elementRef.nativeElement,e.transferState,e.purpleService,e.globalService,e.document,e.resourceService,e.platformId);if(e.swiperConfig.loop=e.config.loop,e.swiperConfig.effect=e.config.effect,e.swiperConfig.centeredSlides=null===(i=e.config.centeredSlides)||void 0===i||i,e.swiperConfig.pagination={...e.swiperConfig.pagination,..."object"==typeof e.config.pagination?e.config.pagination:{},type:"tabs"===e.paginationType?"bullets":e.paginationType},e.config.autoplay){let r={disableOnInteraction:!1};"object"==typeof e.config.autoplay&&(r={...r,...e.config.autoplay}),e.swiperConfig.autoplay=r}"tabs"===e.paginationType&&(e.swiperConfig.pagination.bulletClass=I,e.swiperConfig.pagination.bulletActiveClass=D,e.swiperConfig.pagination.clickable=!0,e.swiperConfig.pagination.renderBullet=(r,p)=>{let a=r;return"object"==typeof e.config.pagination&&e.config.pagination.content&&(a=e.translateService.translate((0,C.uQ)(e.config.pagination.content,e.getEntryContext(e.getData()[r]),e.contextService.$functions,e.globalService.getGlobalData()))),'<span class="'+p+'">'+a+"</span>"});const n=e.ngZone.runOutsideAngular(()=>new X.c(r=>{var p;e.swiperConfig.on={slideChangeTransitionEnd:(p=(0,u.A)(function*(){if(!e.swiper)return;let a,d;const l=e.swiper.activeIndex-e.swiper.previousIndex;var c,g;l>0?e.reachStart=!1:e.reachEnd=!1,e.config.lazyload&&(l>0?(a=e.config.loop&&e.swiper.activeIndex+1>2*e.swiper.loopedSlides?e.swiper.activeIndex+1-e.swiper.loopedSlides:e.swiper.activeIndex+1,d=e.config.loop?e.prevIndex:e.swiper.activeIndex-2):l<0&&(a=e.config.loop&&e.swiper.activeIndex-1<=e.swiper.loopedSlides?e.swiper.activeIndex-1+e.swiper.loopedSlides:e.swiper.activeIndex-1,d=e.config.loop?e.nextIndex:e.swiper.activeIndex+2),yield null===(c=e.slides[a])||void 0===c?void 0:c.lazyLoad(!0),null===(g=e.slides[d])||void 0===g||g.clear(),e.saveSwiperState()),e.changeDetectorRef.detectChanges(),r.next()}),function(){return p.apply(this,arguments)}),slideChangeTransitionStart:()=>{e.swiper&&(e.changeDetectorRef.detectChanges(),r.next())},slideChange:function(){var p=(0,u.A)(function*(a){e.swiper&&r.next()});return function(d){return p.apply(this,arguments)}}(),init:function(){var p=(0,u.A)(function*(){e.ngZone.run((0,u.A)(function*(){if(e.slides&&e.slides.length){let a=(0,m.KF)(e.slides,e.swiperConfig.initialSlide,e.swiperConfig.loop);const d=["swiper-slide-prev","swiper-slide-next","swiper-slide-active"],l=g=>d.some(h=>g.classList.contains(h));a.sort((g,h)=>{const y=d.findIndex(b=>g.elementRef.nativeElement.classList.contains(b));return d.findIndex(b=>h.elementRef.nativeElement.classList.contains(b))-y}),e.elementRef.nativeElement.classList.add("initialized"),e.config.lazyload&&(a=a.filter(g=>l(g.elementRef.nativeElement))),yield a[0].lazyLoad();const c=g=>{g>=a.length||(a[g].lazyLoad(),e.changeDetectorRef.detectChanges(),(0,m.lg)(()=>c(g+1),e.config.lazyloadDelay||100))};(0,m.lg)(()=>c(1),e.config.lazyloadDelay||100)}e.changeDetectorRef.detectChanges()}))});return function(){return p.apply(this,arguments)}}(),paginationUpdate:()=>{e.updateRipples(),e.updatePositionIndicator()}}}));e.config.autoplay&&(0,v.UE)(e.platformId)&&new IntersectionObserver(([p])=>{var a,d;p.isIntersecting?null!==(d=e.swiper)&&void 0!==d&&d.autoplay&&!e.swiper.autoplay.running&&e.swiper.autoplay.start():null!==(a=e.swiper)&&void 0!==a&&a.autoplay&&e.swiper.autoplay.stop()},{rootMargin:"0px",threshold:.9}).observe(e.elementRef.nativeElement),e.ngZone.runOutsideAngular(()=>{n.pipe((0,P.B)(300)).subscribe(r=>{(!e.swiper||!e.swiper.autoplay||!e.swiper.autoplay.running)&&e.ngZone.run(()=>{e.updateSelection()})})}),e.swiperConfig.loopClone=(r,p)=>{e.renderSlide(r,{prepend:p,clone:!0}),e.changeDetectorRef.detectChanges()},e.store.subscribe(e.dataSource.data$.pipe((0,G.p)(r=>!!r&&e.dataSource.hasData())),r=>{e.contentTemplate.clear(),e.slides=[],Array.from(e.wrapper.nativeElement.children).forEach(p=>p.remove()),r.forEach((p,a)=>e.renderSlide(a)),e.changeDetectorRef.detectChanges(),e.swiperConfig.initialSlide=e.getSlideIndexFromContext(),e.initializing=!1,r.length<2&&(e.swiperConfig.loop=!1,e.swiperConfig.autoplay=!1),e.purpleEnv.isApp?e.initSwiper():(0,v.UE)(e.platformId)&&e.ssrService.prebootCompleted$.subscribe(()=>e.initSwiper())},m.lQ,m.lQ,"data"),e.dataSource.loadData(),e.store.subscribe((0,O.Ne)(),r=>e.updatePositionIndicator())})()}renderSlide(e,i={clone:!1,prepend:!1,ghost:!1}){var n;const r=this.config||{...this.defaultConfig,...this.baseConfig},p=i.ghost?this.ghostTemplate:this.contentTemplate,a=null===(n=this.getData())||void 0===n?void 0:n[e];if(!(0,C.ru)(this.getEntryConfig(a),this.getEntryContext(a),this.contextService.$functions,this.globalService.getGlobalData()))return;const l=p.createComponent(z._,{index:i.prepend?0:null}),c=l.hostView.rootNodes[0];return this.renderer.addClass(c,"swiper-slide"),i.clone&&this.renderer.addClass(c,"swiper-slide-duplicate"),this.renderer.listen(c,"click",g=>{this.onClickEntry(l.instance,a)}),l.instance.baseConfig=this.getEntryConfig(a),l.instance.baseContext=this.getEntryContext(a),l.instance.dataType=this.getDataType(),i.ghost||(l.instance.lazy=!0),"float"===r.effect&&(this.renderer.setStyle(c,"width",this.swiperConfig.floatEffect.slideWidth+"%"),1!==e&&(this.renderer.setStyle(c,"transform","scale(".concat(this.swiperConfig.floatEffect.scale,")")),this.renderer.setStyle(c,"opacity",this.swiperConfig.floatEffect.opacity))),i.prepend?this.slides.unshift(l.instance):this.slides.push(l.instance),this.changeDetectorRef.detectChanges(),l.instance}initSwiper(){var e=this;return(0,u.A)(function*(){e.swiper&&(e.swiper.destroy(),delete e.swiper),e.ngZone.runOutsideAngular(()=>{e.swiper=new B.A(e.container.nativeElement,e.swiperConfig),e.swiper.on("reachEnd",()=>{e.reachEnd=!0,e.changeDetectorRef.detectChanges()}),e.swiper.on("reachBeginning",()=>{e.reachStart=!0,e.changeDetectorRef.detectChanges()}),e.saveSwiperState()}),e.ghostTemplate.clear(),e.changeDetectorRef.detectChanges()})()}saveSwiperState(){if(this.swiper){for(let e=0;e<this.swiper.slides.length;e++)this.activeIndex=this.swiper.slides[e].classList.contains("swiper-slide-active")?e:this.activeIndex,this.prevIndex=this.swiper.slides[e].classList.contains("swiper-slide-prev")?e:this.prevIndex,this.nextIndex=this.swiper.slides[e].classList.contains("swiper-slide-next")?e:this.nextIndex;this.changeDetectorRef.markForCheck()}}onClickPrev(){this.swiper&&(this.swiper.animating=!1,this.swiper.slidePrev())}onClickNext(){this.swiper&&(this.swiper.animating=!1,this.swiper.slideNext())}onClickEntry(e,i){var n=this;return(0,u.A)(function*(){const r=(0,C.v3)((0,C.uQ)(n.config.tapEntry,n.getEntryContext(i),n.contextService.$functions,n.globalService.getGlobalData()));r&&(n.store.dispatch((0,A.k4)({key:"".concat(n.getTrackingBaseKey(),"_").concat(e.getChildComponent().getTrackingBaseKey(),"_CLICKED"),params:e.getChildComponent().getTrackingParams()})),e.processing=!0,n.changeDetectorRef.detectChanges(),yield n.eventActionService.processEventAction(r,e.getChildComponent(),n),e.processing=!1,n.changeDetectorRef.detectChanges())})()}isAnyChildComponentProcessing(){return!(!this.slides||!this.slides.find(e=>e.processing))}getData(){return this.dataSource&&this.dataSource.getData()}isGhost(){return this.initializing}updateSelection(){if(this.swiper){let e=this.swiper.realIndex;e>this.getData().length&&(e=0);const i=this.slides[e],n=i&&i.getDataId();n&&n!==this.currentId&&!this.config.autoplay&&(this.currentId=n,this.config.paramScope===U.x.USER_ATTRIBUTE?this.contextService.setUserAttribute(this.getParam(),n):(0,j.CV)(this.router,{[this.getParam()]:n}))}}updatePositionIndicator(){if("tabs"===this.paginationType&&this.indicator&&this.indicator.nativeElement){const e=this.elementRef.nativeElement.querySelector(".".concat(D)),i=this.indicator.nativeElement;i.style.transform="translateX(calc(".concat(e.offsetLeft+e.parentElement.offsetLeft+e.offsetWidth/2,"px - 50%)) translateY(calc(").concat(e.offsetTop+e.parentElement.offsetTop+e.offsetHeight/2,"px - 50%))"),i.style.width=e.offsetWidth+"px",i.style.height=e.offsetHeight+"px",this.changeDetectorRef.detectChanges()}}getSlideIndexFromContext(){const e=this.getDataFromContext(),i="object"==typeof e?e.id:e;return Math.max(this.slides.findIndex(n=>n.getDataId()===i),0)}isSelectionEnabled(){return!0}getParam(){return this.config&&this.config.param||"swiper-id"}getSelectionScope(){return this.config&&this.config.paramScope}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),"tapEntry"]}}return(o=f).type="swiper",o.\u0275fac=function(e){return new(e||o)(t.rXU(t.aKT),t.rXU(t.zZn),t.rXU(t.OM3),t.rXU(t.sFG),t.rXU(t.gRc),t.rXU(V.Ix),t.rXU($.G),t.rXU(S.B),t.rXU(H.V),t.rXU(t.SKi),t.rXU(Z.i),t.rXU(K.OD),t.rXU(Q.c),t.rXU(E.$E),t.rXU(v.qQ),t.rXU(t.Agw),t.rXU(N.r6),t.rXU(t.pJN),t.rXU(W.Wj),t.rXU(Y.d),t.rXU(J.Q))},o.\u0275cmp=t.VBU({type:o,selectors:[["storefront-swiper"]],viewQuery:function(e,i){if(1&e&&(t.GBs(q,7),t.GBs(_,7,t.c1b),t.GBs(ee,7,t.c1b),t.GBs(te,5,t.aKT),t.GBs(ie,5,t.aKT),t.GBs(ne,7)),2&e){let n;t.mGM(n=t.lsd())&&(i.container=n.first),t.mGM(n=t.lsd())&&(i.ghostTemplate=n.first),t.mGM(n=t.lsd())&&(i.contentTemplate=n.first),t.mGM(n=t.lsd())&&(i.indicator=n.first),t.mGM(n=t.lsd())&&(i.pagination=n.first),t.mGM(n=t.lsd())&&(i.wrapper=n.first)}},hostAttrs:["ngSkipHydration","true"],hostVars:3,hostBindings:function(e,i){2&e&&t.BMQ("height-strategy",i.heightStrategy)("pagination-type",i.paginationType)("effect",i.swiperEffect)},features:[t.Jv_([S.B]),t.Vt3],decls:13,vars:3,consts:[["container",""],["wrapper",""],["template",""],["ghostTemplate",""],["pagination",""],["indicator",""],[1,"swiper-container"],[1,"swiper-wrapper"],["class","swiper-pagination-wrapper",4,"ngIf"],[1,"swiper-container","swiper-container-ghost"],[4,"ngIf"],[1,"swiper-pagination-wrapper"],["class","pagination-position-indicator",4,"ngIf"],[1,"swiper-pagination"],[1,"pagination-position-indicator"],["class","swiper-button swiper-button-prev icon icon-arrow-left",3,"click",4,"ngIf"],["class","swiper-button swiper-button-next icon icon-arrow-right",3,"click",4,"ngIf"],[1,"swiper-button","swiper-button-prev","icon","icon-arrow-left",3,"click"],[1,"swiper-button","swiper-button-next","icon","icon-arrow-right",3,"click"]],template:function(e,i){1&e&&(t.j41(0,"div",6,0)(2,"div",7,1),t.eu8(4,null,2),t.k0s(),t.DNE(6,se,4,1,"div",8),t.k0s(),t.j41(7,"div",9)(8,"div",7),t.eu8(9,null,3),t.k0s(),t.DNE(11,ae,2,0,"div",8),t.k0s(),t.DNE(12,le,3,2,"ng-container",10)),2&e&&(t.R7$(6),t.Y8G("ngIf",(i.config||i.baseConfig).pagination),t.R7$(5),t.Y8G("ngIf",(i.config||i.baseConfig).pagination),t.R7$(),t.Y8G("ngIf",i.config&&i.config.navButtons))},dependencies:[v.bT],styles:[".swiper-container{margin:0 auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-container-no-flexbox .swiper-slide{float:left}.swiper-container-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}.swiper-container-android .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-container-multirow>.swiper-wrapper{flex-wrap:wrap}.swiper-container-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform}.swiper-slide-invisible-blank{visibility:hidden}.swiper-container-autoheight,.swiper-container-autoheight .swiper-slide{height:auto}.swiper-container-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-container-3d{perspective:1200px}.swiper-container-3d .swiper-cube-shadow,.swiper-container-3d .swiper-slide,.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top,.swiper-container-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-container-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,#00000080,#0000)}.swiper-container-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,#00000080,#0000)}.swiper-container-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,#00000080,#0000)}.swiper-container-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-container-wp8-horizontal,.swiper-container-wp8-horizontal>.swiper-wrapper{touch-action:pan-y}.swiper-container-wp8-vertical,.swiper-container-wp8-vertical>.swiper-wrapper{touch-action:pan-x}.swiper-button-next,.swiper-button-prev{position:absolute;top:50%;width:27px;height:44px;margin-top:-22px;z-index:10;cursor:pointer;background-size:27px 44px;background-position:center;background-repeat:no-repeat}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-prev,.swiper-container-rtl .swiper-button-next{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E\");left:10px;right:auto}.swiper-button-next,.swiper-container-rtl .swiper-button-prev{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E\");right:10px;left:auto}.swiper-button-prev.swiper-button-white,.swiper-container-rtl .swiper-button-next.swiper-button-white{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E\")}.swiper-button-next.swiper-button-white,.swiper-container-rtl .swiper-button-prev.swiper-button-white{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E\")}.swiper-button-prev.swiper-button-black,.swiper-container-rtl .swiper-button-next.swiper-button-black{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E\")}.swiper-button-next.swiper-button-black,.swiper-container-rtl .swiper-button-prev.swiper-button-black{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E\")}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-container-horizontal>.swiper-pagination-bullets,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:10px;left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:8px;height:8px;display:inline-block;border-radius:100%;background:#000;opacity:.2}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet-active{opacity:1;background:#007aff}.swiper-container-vertical>.swiper-pagination-bullets{right:10px;top:50%;transform:translate3d(0,-50%,0)}.swiper-container-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:6px 0;display:block}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s top,.2s -webkit-transform;transition:.2s transform,.2s top;transition:.2s transform,.2s top,.2s -webkit-transform}.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 4px}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translate(-50%);white-space:nowrap}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s left,.2s -webkit-transform;transition:.2s transform,.2s left;transition:.2s transform,.2s left,.2s -webkit-transform}.swiper-container-horizontal.swiper-container-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s right,.2s -webkit-transform;transition:.2s transform,.2s right;transition:.2s transform,.2s right,.2s -webkit-transform}.swiper-pagination-progressbar{background:#00000040;position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:#007aff;position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-container-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-container-horizontal>.swiper-pagination-progressbar,.swiper-container-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:4px;left:0;top:0}.swiper-container-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-container-vertical>.swiper-pagination-progressbar{width:4px;height:100%;left:0;top:0}.swiper-pagination-white .swiper-pagination-bullet-active{background:#fff}.swiper-pagination-progressbar.swiper-pagination-white{background:#ffffff40}.swiper-pagination-progressbar.swiper-pagination-white .swiper-pagination-progressbar-fill{background:#fff}.swiper-pagination-black .swiper-pagination-bullet-active{background:#000}.swiper-pagination-progressbar.swiper-pagination-black{background:#00000040}.swiper-pagination-progressbar.swiper-pagination-black .swiper-pagination-progressbar-fill{background:#000}.swiper-pagination-lock{display:none}.swiper-container-float .swiper-wrapper .swiper-slide{transition-property:transform,opacity}storefront-swiper{display:block;position:relative;overflow:hidden;width:100%}storefront-swiper .swiper-container{width:100%}storefront-swiper .swiper-container .swiper-wrapper{opacity:0}storefront-swiper .swiper-container.swiper-container-ghost{position:absolute;top:0}storefront-swiper .swiper-container.swiper-container-ghost .swiper-wrapper{opacity:1}storefront-swiper.initialized .swiper-container .swiper-wrapper{opacity:1}storefront-swiper.initialized .swiper-container-ghost{display:none}storefront-swiper[effect=float] .swiper-container-ghost .swiper-wrapper{justify-content:center}storefront-swiper.ghost .swiper-container{position:absolute}storefront-swiper.ghost .swiper-container .swiper-wrapper{opacity:0}storefront-swiper.ghost .swiper-container.swiper-container-ghost{display:block;position:relative}storefront-swiper.ghost .swiper-container.swiper-container-ghost .swiper-wrapper{opacity:1}storefront-swiper .swiper-pagination{position:relative;margin:var(--gutter) 0;color:var(--swiperPaginationColor)}storefront-swiper .swiper-pagination .swiper-pagination-bullet{margin:0 4px}storefront-swiper .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active{background-color:var(--swiperPaginationColor)}storefront-swiper .swiper-button{background:transparent;position:absolute;top:50%;display:flex;justify-content:center;align-items:center;width:50px;height:50px}storefront-swiper .swiper-button .swiper-button-prev{left:0;right:auto}storefront-swiper .swiper-button .swiper-button-next{right:0;left:auto}storefront-swiper[height-strategy=FILL_VIEWPORT]{height:calc(100vh - var(--navigationHeight) - var(--appBarHeight))}storefront-swiper[height-strategy=FILL_VIEWPORT]>.swiper-container{height:100%}storefront-swiper[height-strategy=FILL_VIEWPORT]>.swiper-container>.swiper-wrapper>.swiper-slide>*{padding-top:var(--swiperPaginationTabHeight);max-height:100%}storefront-swiper[pagination-type=tabs] .swiper-pagination-wrapper{position:fixed;top:var(--appBarHeight);bottom:auto!important;background-color:var(--swiperPaginationBackgroundColor);margin:0;height:var(--swiperPaginationTabHeight);display:flex;justify-content:center;align-items:center;width:100%;z-index:1}storefront-swiper[pagination-type=tabs] .pagination-position-indicator{position:absolute;height:100%;bottom:0;left:0;transition:transform .15s ease;background:transparent;border-bottom:var(--swiperPaginationBorderWidth) solid var(--swiperPaginationColor);overflow:hidden}storefront-swiper[pagination-type=tabs] .swiper-pagination{height:100%;display:flex;justify-content:center;align-items:center;width:100%;margin:0;max-width:640px}storefront-swiper[pagination-type=tabs] .swiper-pagination .swiper-pagination-tab{display:flex;align-items:center;justify-content:center;background:transparent!important;border-radius:0;width:auto;height:100%;flex:1 1 0;padding:10px;position:relative;overflow:hidden}storefront-swiper[pagination-type=tabs] .swiper-pagination .swiper-pagination-tab-active{color:var(--swiperPaginationColor)}\n"],encapsulation:2,changeDetection:0}),f})(),ge=(()=>{var o;class f{}return(o=f).\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.$C({type:o}),o.\u0275inj=t.G2t({imports:[v.MD]}),f})();const we=ce}}]);
|
1
|
+
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_swiper_swiper_module_ts"],{6082:(he,x,a)=>{a.r(x),a.d(x,{SwiperModule:()=>le,component:()=>ce});var m=a(177),u=a(467),t=a(3953),T=a(6239),F=a(4452),R=a(610),S=a(8251),A=a(3648),z=a(5273),b=a(3178),B=a(152),P=a(5964),G=a(9758),U=a(1985),O=a(8890),C=a(8179),E=a(6600),X=a(3472),j=a(8075),M=a(7879),N=a(4559),V=a(8004),$=a(9516),H=a(4748),Z=a(6860),K=a(7900),W=a(8471),Q=a(1652);const Y=["container"],J=["ghostTemplate"],q=["template"],_=["indicator"],ee=["pagination"],te=["wrapper"];function ie(o,f){1&o&&t.nrm(0,"div",14,5)}function ne(o,f){if(1&o&&(t.j41(0,"div",11),t.DNE(1,ie,2,0,"div",12),t.nrm(2,"div",13,4),t.k0s()),2&o){const g=t.XpG();t.R7$(),t.Y8G("ngIf","tabs"===g.paginationType)}}function re(o,f){1&o&&(t.j41(0,"div",11),t.nrm(1,"div",13),t.k0s())}function se(o,f){if(1&o){const g=t.RV6();t.j41(0,"div",17),t.bIt("click",function(){t.eBV(g);const i=t.XpG(2);return t.Njj(i.onClickPrev())}),t.k0s()}}function ae(o,f){if(1&o){const g=t.RV6();t.j41(0,"div",18),t.bIt("click",function(){t.eBV(g);const i=t.XpG(2);return t.Njj(i.onClickNext())}),t.k0s()}}function oe(o,f){if(1&o&&(t.qex(0),t.DNE(1,se,1,0,"div",15)(2,ae,1,0,"div",16),t.bVm()),2&o){const g=t.XpG();t.R7$(),t.Y8G("ngIf",!g.reachStart),t.R7$(),t.Y8G("ngIf",!g.reachEnd)}}const I="swiper-pagination-tab",D="swiper-pagination-tab-active";let pe=(()=>{var o;class f extends X.M{get heightStrategy(){return(this.config||this.baseConfig).height}get paginationType(){const e=(this.config||this.baseConfig).pagination;return e?"boolean"==typeof e?"bullets":(this.config||this.baseConfig).pagination.type:null}get swiperEffect(){return(this.config||{...this.defaultConfig,...this.baseConfig}).effect}constructor(e,i,n,r,p,s,w,l,d,c,h,y,L,v,ge,we,de,fe,k){super(i,e,l,v,k),this.elementRef=e,this.injector=i,this.renderer=n,this.changeDetectorRef=r,this.router=p,this.eventActionService=s,this.store=w,this.contextService=l,this.ngZone=d,this.ssrService=c,this.platform=h,this.translateService=y,this.matRippleOptions=L,this.document=v,this.platformId=ge,this.purpleEnv=we,this.transferState=de,this.purpleService=fe,this.globalService=k,this.reachEnd=!1,this.reachStart=!1,this.defaultConfig={...T.d},this.swiperConfig={slidesPerView:"auto",loop:!0,spaceBetween:0,floatEffect:{scale:.9,slideWidth:60,spaceBetweenAsPercentage:!1,opacity:.5},pagination:{el:".swiper-pagination",type:"bullets"},autoHeight:!1,initialSlide:0,shortSwipesRatio:.1},this.slides=[],this.ripples=[]}ngOnInit(){var e=()=>super.ngOnInit,i=this;return(0,u.A)(function*(){i.baseContext.isGhost||(yield i.translateService.inited,Array(3).fill(null).forEach((n,r)=>i.renderSlide(r,{ghost:!0})),i.initializing=!0,e().call(i))})()}updateRipples(){const e=this.elementRef.nativeElement.querySelectorAll(".".concat(I));this.ripples.forEach(i=>i.ngOnDestroy()),this.ripples=[],e.forEach(i=>{const n=new E.r6(new t.aKT(i),this.ngZone,this.platform,{...this.matRippleOptions});n.ngOnInit(),this.ripples.push(n)})}ngOnDestroy(){super.ngOnDestroy(),this.swiper&&this.swiper.destroy()}onConfigChanges(){var e=this;return(0,u.A)(function*(){var i;if(e.dataSource){if(e.dataSource.hasConfigChanged(e.config.dataSource))e.dataSource.setConfig(e.config.dataSource),e.dataSource.reset();else if(e.swiper){const r=e.getSlideIndexFromContext();return void(r!==e.swiper.activeIndex%e.dataSource.getData().length&&e.swiper.slideTo(r))}}else e.dataSource=(0,F.O8)(e.injector,e.config.dataSource,e.elementRef.nativeElement,e.document);if(e.swiperConfig.loop=e.config.loop,e.swiperConfig.effect=e.config.effect,e.swiperConfig.centeredSlides=null===(i=e.config.centeredSlides)||void 0===i||i,e.swiperConfig.pagination={...e.swiperConfig.pagination,..."object"==typeof e.config.pagination?e.config.pagination:{},type:"tabs"===e.paginationType?"bullets":e.paginationType},e.config.autoplay){let r={disableOnInteraction:!1};"object"==typeof e.config.autoplay&&(r={...r,...e.config.autoplay}),e.swiperConfig.autoplay=r}"tabs"===e.paginationType&&(e.swiperConfig.pagination.bulletClass=I,e.swiperConfig.pagination.bulletActiveClass=D,e.swiperConfig.pagination.clickable=!0,e.swiperConfig.pagination.renderBullet=(r,p)=>{let s=r;return"object"==typeof e.config.pagination&&e.config.pagination.content&&(s=e.translateService.translate((0,C.uQ)(e.config.pagination.content,e.getEntryContext(e.getData()[r]),e.contextService.$functions,e.globalService.getGlobalData()))),'<span class="'+p+'">'+s+"</span>"});const n=e.ngZone.runOutsideAngular(()=>new U.c(r=>{var p;e.swiperConfig.on={slideChangeTransitionEnd:(p=(0,u.A)(function*(){if(!e.swiper)return;let s,w;const l=e.swiper.activeIndex-e.swiper.previousIndex;var d,c;l>0?e.reachStart=!1:e.reachEnd=!1,e.config.lazyload&&(l>0?(s=e.config.loop&&e.swiper.activeIndex+1>2*e.swiper.loopedSlides?e.swiper.activeIndex+1-e.swiper.loopedSlides:e.swiper.activeIndex+1,w=e.config.loop?e.prevIndex:e.swiper.activeIndex-2):l<0&&(s=e.config.loop&&e.swiper.activeIndex-1<=e.swiper.loopedSlides?e.swiper.activeIndex-1+e.swiper.loopedSlides:e.swiper.activeIndex-1,w=e.config.loop?e.nextIndex:e.swiper.activeIndex+2),yield null===(d=e.slides[s])||void 0===d?void 0:d.lazyLoad(!0),null===(c=e.slides[w])||void 0===c||c.clear(),e.saveSwiperState()),e.changeDetectorRef.detectChanges(),r.next()}),function(){return p.apply(this,arguments)}),slideChangeTransitionStart:()=>{e.swiper&&(e.changeDetectorRef.detectChanges(),r.next())},slideChange:function(){var p=(0,u.A)(function*(s){e.swiper&&r.next()});return function(w){return p.apply(this,arguments)}}(),init:function(){var p=(0,u.A)(function*(){e.ngZone.run((0,u.A)(function*(){if(e.slides&&e.slides.length){let s=(0,b.KF)(e.slides,e.swiperConfig.initialSlide,e.swiperConfig.loop);const w=["swiper-slide-prev","swiper-slide-next","swiper-slide-active"],l=c=>w.some(h=>c.classList.contains(h));s.sort((c,h)=>{const y=w.findIndex(v=>c.elementRef.nativeElement.classList.contains(v));return w.findIndex(v=>h.elementRef.nativeElement.classList.contains(v))-y}),e.elementRef.nativeElement.classList.add("initialized"),e.config.lazyload&&(s=s.filter(c=>l(c.elementRef.nativeElement))),yield s[0].lazyLoad();const d=c=>{c>=s.length||(s[c].lazyLoad(),e.changeDetectorRef.detectChanges(),(0,b.lg)(()=>d(c+1),e.config.lazyloadDelay||100))};(0,b.lg)(()=>d(1),e.config.lazyloadDelay||100)}e.changeDetectorRef.detectChanges()}))});return function(){return p.apply(this,arguments)}}(),paginationUpdate:()=>{e.updateRipples(),e.updatePositionIndicator()}}}));e.config.autoplay&&(0,m.UE)(e.platformId)&&new IntersectionObserver(([p])=>{var s,w;p.isIntersecting?null!==(w=e.swiper)&&void 0!==w&&w.autoplay&&!e.swiper.autoplay.running&&e.swiper.autoplay.start():null!==(s=e.swiper)&&void 0!==s&&s.autoplay&&e.swiper.autoplay.stop()},{rootMargin:"0px",threshold:.9}).observe(e.elementRef.nativeElement),e.ngZone.runOutsideAngular(()=>{n.pipe((0,B.B)(300)).subscribe(r=>{(!e.swiper||!e.swiper.autoplay||!e.swiper.autoplay.running)&&e.ngZone.run(()=>{e.updateSelection()})})}),e.swiperConfig.loopClone=(r,p)=>{e.renderSlide(r,{prepend:p,clone:!0}),e.changeDetectorRef.detectChanges()},e.store.subscribe(e.dataSource.data$.pipe((0,P.p)(r=>!!r&&e.dataSource.hasData())),r=>{e.contentTemplate.clear(),e.slides=[],Array.from(e.wrapper.nativeElement.children).forEach(p=>p.remove()),r.forEach((p,s)=>e.renderSlide(s)),e.changeDetectorRef.detectChanges(),e.swiperConfig.initialSlide=e.getSlideIndexFromContext(),e.initializing=!1,r.length<2&&(e.swiperConfig.loop=!1,e.swiperConfig.autoplay=!1),e.purpleEnv.isApp?e.initSwiper():(0,m.UE)(e.platformId)&&e.ssrService.prebootCompleted$.subscribe(()=>e.initSwiper())},b.lQ,b.lQ,"data"),e.dataSource.loadData(),e.store.subscribe((0,O.Ne)(),r=>e.updatePositionIndicator())})()}renderSlide(e,i={clone:!1,prepend:!1,ghost:!1}){var n;const r=this.config||{...this.defaultConfig,...this.baseConfig},p=i.ghost?this.ghostTemplate:this.contentTemplate,s=null===(n=this.getData())||void 0===n?void 0:n[e];if(!(0,C.ru)(this.getEntryConfig(s),this.getEntryContext(s),this.contextService.$functions,this.globalService.getGlobalData()))return;const l=p.createComponent(A._,{index:i.prepend?0:null}),d=l.hostView.rootNodes[0];return this.renderer.addClass(d,"swiper-slide"),i.clone&&this.renderer.addClass(d,"swiper-slide-duplicate"),this.renderer.listen(d,"click",c=>{this.onClickEntry(l.instance,s)}),l.instance.baseConfig=this.getEntryConfig(s),l.instance.baseContext=this.getEntryContext(s),l.instance.dataType=this.getDataType(),i.ghost||(l.instance.lazy=!0),"float"===r.effect&&(this.renderer.setStyle(d,"width",this.swiperConfig.floatEffect.slideWidth+"%"),1!==e&&(this.renderer.setStyle(d,"transform","scale(".concat(this.swiperConfig.floatEffect.scale,")")),this.renderer.setStyle(d,"opacity",this.swiperConfig.floatEffect.opacity))),i.prepend?this.slides.unshift(l.instance):this.slides.push(l.instance),this.changeDetectorRef.detectChanges(),l.instance}initSwiper(){var e=this;return(0,u.A)(function*(){e.swiper&&(e.swiper.destroy(),delete e.swiper),e.ngZone.runOutsideAngular(()=>{e.swiper=new z.A(e.container.nativeElement,e.swiperConfig),e.swiper.on("reachEnd",()=>{e.reachEnd=!0,e.changeDetectorRef.detectChanges()}),e.swiper.on("reachBeginning",()=>{e.reachStart=!0,e.changeDetectorRef.detectChanges()}),e.saveSwiperState()}),e.ghostTemplate.clear(),e.changeDetectorRef.detectChanges()})()}saveSwiperState(){if(this.swiper){for(let e=0;e<this.swiper.slides.length;e++)this.activeIndex=this.swiper.slides[e].classList.contains("swiper-slide-active")?e:this.activeIndex,this.prevIndex=this.swiper.slides[e].classList.contains("swiper-slide-prev")?e:this.prevIndex,this.nextIndex=this.swiper.slides[e].classList.contains("swiper-slide-next")?e:this.nextIndex;this.changeDetectorRef.markForCheck()}}onClickPrev(){this.swiper&&(this.swiper.animating=!1,this.swiper.slidePrev())}onClickNext(){this.swiper&&(this.swiper.animating=!1,this.swiper.slideNext())}onClickEntry(e,i){var n=this;return(0,u.A)(function*(){const r=(0,C.v3)((0,C.uQ)(n.config.tapEntry,n.getEntryContext(i),n.contextService.$functions,n.globalService.getGlobalData()));r&&(n.store.dispatch((0,R.k4)({url:window.location.href,key:"".concat(n.getTrackingBaseKey(),"_").concat(e.getChildComponent().getTrackingBaseKey(),"_CLICKED"),params:e.getChildComponent().getTrackingParams()})),e.processing=!0,n.changeDetectorRef.detectChanges(),yield n.eventActionService.processEventAction(r,e.getChildComponent(),n),e.processing=!1,n.changeDetectorRef.detectChanges())})()}isAnyChildComponentProcessing(){return!(!this.slides||!this.slides.find(e=>e.processing))}getData(){return this.dataSource&&this.dataSource.getData()}isGhost(){return this.initializing}updateSelection(){if(this.swiper){let e=this.swiper.realIndex;e>this.getData().length&&(e=0);const i=this.slides[e],n=i&&i.getDataId();n&&n!==this.currentId&&!this.config.autoplay&&(this.currentId=n,this.config.paramScope===G.x.USER_ATTRIBUTE?this.contextService.setUserAttribute(this.getParam(),n):(0,j.CV)(this.router,{[this.getParam()]:n}))}}updatePositionIndicator(){if("tabs"===this.paginationType&&this.indicator&&this.indicator.nativeElement){const e=this.elementRef.nativeElement.querySelector(".".concat(D)),i=this.indicator.nativeElement;i.style.transform="translateX(calc(".concat(e.offsetLeft+e.parentElement.offsetLeft+e.offsetWidth/2,"px - 50%)) translateY(calc(").concat(e.offsetTop+e.parentElement.offsetTop+e.offsetHeight/2,"px - 50%))"),i.style.width=e.offsetWidth+"px",i.style.height=e.offsetHeight+"px",this.changeDetectorRef.detectChanges()}}getSlideIndexFromContext(){const e=this.getDataFromContext(),i="object"==typeof e?e.id:e;return Math.max(this.slides.findIndex(n=>n.getDataId()===i),0)}isSelectionEnabled(){return!0}getParam(){return this.config&&this.config.param||"swiper-id"}getSelectionScope(){return this.config&&this.config.paramScope}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),"tapEntry"]}}return(o=f).type="swiper",o.\u0275fac=function(e){return new(e||o)(t.rXU(t.aKT),t.rXU(t.zZn),t.rXU(t.sFG),t.rXU(t.gRc),t.rXU(N.Ix),t.rXU(V.G),t.rXU(S.B),t.rXU($.V),t.rXU(t.SKi),t.rXU(H.i),t.rXU(Z.OD),t.rXU(K.c),t.rXU(E.$E),t.rXU(m.qQ),t.rXU(t.Agw),t.rXU(M.r6),t.rXU(t.pJN),t.rXU(W.Wj),t.rXU(Q.d))},o.\u0275cmp=t.VBU({type:o,selectors:[["storefront-swiper"]],viewQuery:function(e,i){if(1&e&&(t.GBs(Y,7),t.GBs(J,7,t.c1b),t.GBs(q,7,t.c1b),t.GBs(_,5,t.aKT),t.GBs(ee,5,t.aKT),t.GBs(te,7)),2&e){let n;t.mGM(n=t.lsd())&&(i.container=n.first),t.mGM(n=t.lsd())&&(i.ghostTemplate=n.first),t.mGM(n=t.lsd())&&(i.contentTemplate=n.first),t.mGM(n=t.lsd())&&(i.indicator=n.first),t.mGM(n=t.lsd())&&(i.pagination=n.first),t.mGM(n=t.lsd())&&(i.wrapper=n.first)}},hostAttrs:["ngSkipHydration","true"],hostVars:3,hostBindings:function(e,i){2&e&&t.BMQ("height-strategy",i.heightStrategy)("pagination-type",i.paginationType)("effect",i.swiperEffect)},features:[t.Jv_([S.B]),t.Vt3],decls:13,vars:3,consts:[["container",""],["wrapper",""],["template",""],["ghostTemplate",""],["pagination",""],["indicator",""],[1,"swiper-container"],[1,"swiper-wrapper"],["class","swiper-pagination-wrapper",4,"ngIf"],[1,"swiper-container","swiper-container-ghost"],[4,"ngIf"],[1,"swiper-pagination-wrapper"],["class","pagination-position-indicator",4,"ngIf"],[1,"swiper-pagination"],[1,"pagination-position-indicator"],["class","swiper-button swiper-button-prev icon icon-arrow-left",3,"click",4,"ngIf"],["class","swiper-button swiper-button-next icon icon-arrow-right",3,"click",4,"ngIf"],[1,"swiper-button","swiper-button-prev","icon","icon-arrow-left",3,"click"],[1,"swiper-button","swiper-button-next","icon","icon-arrow-right",3,"click"]],template:function(e,i){1&e&&(t.j41(0,"div",6,0)(2,"div",7,1),t.eu8(4,null,2),t.k0s(),t.DNE(6,ne,4,1,"div",8),t.k0s(),t.j41(7,"div",9)(8,"div",7),t.eu8(9,null,3),t.k0s(),t.DNE(11,re,2,0,"div",8),t.k0s(),t.DNE(12,oe,3,2,"ng-container",10)),2&e&&(t.R7$(6),t.Y8G("ngIf",(i.config||i.baseConfig).pagination),t.R7$(5),t.Y8G("ngIf",(i.config||i.baseConfig).pagination),t.R7$(),t.Y8G("ngIf",i.config&&i.config.navButtons))},dependencies:[m.bT],styles:[".swiper-container{margin:0 auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-container-no-flexbox .swiper-slide{float:left}.swiper-container-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}.swiper-container-android .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-container-multirow>.swiper-wrapper{flex-wrap:wrap}.swiper-container-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform}.swiper-slide-invisible-blank{visibility:hidden}.swiper-container-autoheight,.swiper-container-autoheight .swiper-slide{height:auto}.swiper-container-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-container-3d{perspective:1200px}.swiper-container-3d .swiper-cube-shadow,.swiper-container-3d .swiper-slide,.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top,.swiper-container-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-container-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,#00000080,#0000)}.swiper-container-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,#00000080,#0000)}.swiper-container-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,#00000080,#0000)}.swiper-container-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-container-wp8-horizontal,.swiper-container-wp8-horizontal>.swiper-wrapper{touch-action:pan-y}.swiper-container-wp8-vertical,.swiper-container-wp8-vertical>.swiper-wrapper{touch-action:pan-x}.swiper-button-next,.swiper-button-prev{position:absolute;top:50%;width:27px;height:44px;margin-top:-22px;z-index:10;cursor:pointer;background-size:27px 44px;background-position:center;background-repeat:no-repeat}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-prev,.swiper-container-rtl .swiper-button-next{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E\");left:10px;right:auto}.swiper-button-next,.swiper-container-rtl .swiper-button-prev{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E\");right:10px;left:auto}.swiper-button-prev.swiper-button-white,.swiper-container-rtl .swiper-button-next.swiper-button-white{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E\")}.swiper-button-next.swiper-button-white,.swiper-container-rtl .swiper-button-prev.swiper-button-white{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E\")}.swiper-button-prev.swiper-button-black,.swiper-container-rtl .swiper-button-next.swiper-button-black{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E\")}.swiper-button-next.swiper-button-black,.swiper-container-rtl .swiper-button-prev.swiper-button-black{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E\")}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-container-horizontal>.swiper-pagination-bullets,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:10px;left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:8px;height:8px;display:inline-block;border-radius:100%;background:#000;opacity:.2}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet-active{opacity:1;background:#007aff}.swiper-container-vertical>.swiper-pagination-bullets{right:10px;top:50%;transform:translate3d(0,-50%,0)}.swiper-container-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:6px 0;display:block}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s top,.2s -webkit-transform;transition:.2s transform,.2s top;transition:.2s transform,.2s top,.2s -webkit-transform}.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 4px}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translate(-50%);white-space:nowrap}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s left,.2s -webkit-transform;transition:.2s transform,.2s left;transition:.2s transform,.2s left,.2s -webkit-transform}.swiper-container-horizontal.swiper-container-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s right,.2s -webkit-transform;transition:.2s transform,.2s right;transition:.2s transform,.2s right,.2s -webkit-transform}.swiper-pagination-progressbar{background:#00000040;position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:#007aff;position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-container-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-container-horizontal>.swiper-pagination-progressbar,.swiper-container-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:4px;left:0;top:0}.swiper-container-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-container-vertical>.swiper-pagination-progressbar{width:4px;height:100%;left:0;top:0}.swiper-pagination-white .swiper-pagination-bullet-active{background:#fff}.swiper-pagination-progressbar.swiper-pagination-white{background:#ffffff40}.swiper-pagination-progressbar.swiper-pagination-white .swiper-pagination-progressbar-fill{background:#fff}.swiper-pagination-black .swiper-pagination-bullet-active{background:#000}.swiper-pagination-progressbar.swiper-pagination-black{background:#00000040}.swiper-pagination-progressbar.swiper-pagination-black .swiper-pagination-progressbar-fill{background:#000}.swiper-pagination-lock{display:none}.swiper-container-float .swiper-wrapper .swiper-slide{transition-property:transform,opacity}storefront-swiper{display:block;position:relative;overflow:hidden;width:100%}storefront-swiper .swiper-container{width:100%}storefront-swiper .swiper-container .swiper-wrapper{opacity:0}storefront-swiper .swiper-container.swiper-container-ghost{position:absolute;top:0}storefront-swiper .swiper-container.swiper-container-ghost .swiper-wrapper{opacity:1}storefront-swiper.initialized .swiper-container .swiper-wrapper{opacity:1}storefront-swiper.initialized .swiper-container-ghost{display:none}storefront-swiper[effect=float] .swiper-container-ghost .swiper-wrapper{justify-content:center}storefront-swiper.ghost .swiper-container{position:absolute}storefront-swiper.ghost .swiper-container .swiper-wrapper{opacity:0}storefront-swiper.ghost .swiper-container.swiper-container-ghost{display:block;position:relative}storefront-swiper.ghost .swiper-container.swiper-container-ghost .swiper-wrapper{opacity:1}storefront-swiper .swiper-pagination{position:relative;margin:var(--gutter) 0;color:var(--swiperPaginationColor)}storefront-swiper .swiper-pagination .swiper-pagination-bullet{margin:0 4px}storefront-swiper .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active{background-color:var(--swiperPaginationColor)}storefront-swiper .swiper-button{background:transparent;position:absolute;top:50%;display:flex;justify-content:center;align-items:center;width:50px;height:50px}storefront-swiper .swiper-button .swiper-button-prev{left:0;right:auto}storefront-swiper .swiper-button .swiper-button-next{right:0;left:auto}storefront-swiper[height-strategy=FILL_VIEWPORT]{height:calc(100vh - var(--navigationHeight) - var(--appBarHeight))}storefront-swiper[height-strategy=FILL_VIEWPORT]>.swiper-container{height:100%}storefront-swiper[height-strategy=FILL_VIEWPORT]>.swiper-container>.swiper-wrapper>.swiper-slide>*{padding-top:var(--swiperPaginationTabHeight);max-height:100%}storefront-swiper[pagination-type=tabs] .swiper-pagination-wrapper{position:fixed;top:var(--appBarHeight);bottom:auto!important;background-color:var(--swiperPaginationBackgroundColor);margin:0;height:var(--swiperPaginationTabHeight);display:flex;justify-content:center;align-items:center;width:100%;z-index:1}storefront-swiper[pagination-type=tabs] .pagination-position-indicator{position:absolute;height:100%;bottom:0;left:0;transition:transform .15s ease;background:transparent;border-bottom:var(--swiperPaginationBorderWidth) solid var(--swiperPaginationColor);overflow:hidden}storefront-swiper[pagination-type=tabs] .swiper-pagination{height:100%;display:flex;justify-content:center;align-items:center;width:100%;margin:0;max-width:640px}storefront-swiper[pagination-type=tabs] .swiper-pagination .swiper-pagination-tab{display:flex;align-items:center;justify-content:center;background:transparent!important;border-radius:0;width:auto;height:100%;flex:1 1 0;padding:10px;position:relative;overflow:hidden}storefront-swiper[pagination-type=tabs] .swiper-pagination .swiper-pagination-tab-active{color:var(--swiperPaginationColor)}\n"],encapsulation:2,changeDetection:0}),f})(),le=(()=>{var o;class f{}return(o=f).\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.$C({type:o}),o.\u0275inj=t.G2t({imports:[m.MD]}),f})();const ce=pe}}]);
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_ticker_ticker_module_ts"],{1786:(q,X,u)=>{u.r(X),u.d(X,{TickerModule:()=>K,component:()=>Z});var y=u(177),M=u(467),j=u(
|
1
|
+
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_ticker_ticker_module_ts"],{1786:(q,X,u)=>{u.r(X),u.d(X,{TickerModule:()=>K,component:()=>Z});var y=u(177),M=u(467),j=u(8251),O=u(1210),E=u(3178);const $={url:"https://news.purpledshub.com/demo/index.php/wp-json/wp/v2/ditty_news_ticker"};var N=u(8890),Q=u(3236),V=u(1584),e=u(3953),z=u(9516),P=u(1652);const Y=["ticksContainer"];function H(n,k){if(1&n&&(e.j41(0,"div",4),e.EFF(1),e.k0s()),2&n){const c=k.$implicit;e.R7$(),e.JRh(c.tick)}}function J(n,k){if(1&n&&(e.j41(0,"div",2,0),e.DNE(2,H,2,1,"div",3),e.k0s()),2&n){const c=e.XpG();e.R7$(2),e.Y8G("ngForOf",c.ticks)}}let W=(()=>{var n;class k extends O.${get isEmpty(){return!this.ticks||!this.ticks.length}constructor(s,o,r,a,l,t,h){super(o,s,r,t,h),this.elementRef=s,this.injector=o,this.contextService=r,this.subscriptions=a,this.changeDetectorRef=l,this.document=t,this.globalService=h,this.defaultConfig={...$},this.ticks=[],this.translate=0}ngOnInit(){super.ngOnInit(),this.subscriptions.subscribe((0,N.Ne)(),s=>this.animate())}onConfigChanges(){var s=this;return(0,M.A)(function*(){try{const o=yield(0,E.hI)(s.config.url);o[0]&&(s.ticks=function S(n){var k=function(r){for(var a=r.length,l=r.length-1;l>=0;l--){var t=r.charCodeAt(l);t>127&&t<=2047?a++:t>2047&&t<=65535&&(a+=2),t>=56320&&t<=57343&&l--}return a-1},c=function(r,a,l){for(var t=2,h=[],v=r.slice(a,a+1);v!==l;){if(t+a>r.length)throw Error("Invalid");h.push(v),v=r.slice(a+(t-1),a+t),t+=1}return[h.length,h.join("")]};try{return"string"==typeof n&&function o(r,a){var l,t,h,v,x,C,b,I,p,i,U,w,m,g,D,F,f=0,T=function(d){return d};switch(a||(a=0),t=a+2,l=r.slice(a,a+1)){case"i":T=function(d){return parseInt(d,10)},p=(i=c(r,t,";"))[1],t+=(f=i[0])+1;break;case"b":T=function(d){switch(parseInt(d,10)){case 0:return!1;case 1:return!0;default:throw SyntaxError("Invalid boolean value")}},p=(i=c(r,t,";"))[1],t+=(f=i[0])+1;break;case"d":T=function(d){return parseFloat(d)},p=(i=c(r,t,";"))[1],t+=(f=i[0])+1;break;case"n":p=null;break;case"s":if(w=(U=c(r,t,":"))[1],i=function(r,a,l){var t,h,v;for(v=[],t=0;t<l;t++)h=r.slice(a+(t-1),a+t),v.push(h),l-=k(h);return[v.length,v.join("")]}(r,(t+=(f=U[0])+2)+1,parseInt(w,10)),p=i[1],t+=(f=i[0])+2,f!==parseInt(w,10)&&f!==p.length)throw SyntaxError("String length mismatch");break;case"a":for(p={},v=(h=c(r,t,":"))[1],t+=(f=h[0])+2,C=parseInt(v,10),x=!0,m=0;m<C;m++)g=(D=o(r,t))[2],t+=D[1],t+=(F=o(r,t))[1],g!==m&&(x=!1),p[g]=F[2];if(x){for(b=new Array(C),m=0;m<C;m++)b[m]=p[m];p=b}t+=1;break;case"O":if(i=c(r,t,":"),'"stdClass"'!==(i=c(r,t+=i[0]+1,":"))[1])throw Error("Unsupported object type: "+i[1]);for(i=c(r,t+=i[0]+1,":"),v=parseInt(i[1],10),t+=i[0]+2,I={},m=0;m<v;m++)g=(i=o(r,t))[2],t+=i[1],t+=(i=o(r,t))[1],I[g]=i[2];t+=1,p=I;break;default:throw SyntaxError("Unknown / Unhandled data type(s): "+l)}return[l,t-a,T(p)]}(n,0)[2]}catch(r){return console.error(r),!1}}(o[0].metadata._mtphr_dnt_ticks[0]),s.ticks.length&&(s.changeDetectorRef.detectChanges(),s.animate()))}catch{console.warn("Error fetching ticker data")}})()}resetTranslate(){this.translate=this.elementRef.nativeElement.parentNode.offsetWidth,this.ticksContainer.nativeElement.style.transform="translateX(".concat(this.translate,"px)")}animate(){this.resetTranslate(),this.subscriptions.subscribe(function B(n=0,k=Q.E){return n<0&&(n=0),(0,V.O)(n,n,k)}(12),()=>{this.translate-=1,this.ticksContainer.nativeElement.style.transform="translateX(".concat(this.translate,"px)"),-1*this.translate>this.ticksContainer.nativeElement.offsetWidth&&this.resetTranslate()},E.lQ,E.lQ,"interval"),this.changeDetectorRef.detectChanges()}}return(n=k).type="ticker",n.\u0275fac=function(s){return new(s||n)(e.rXU(e.aKT),e.rXU(e.zZn),e.rXU(z.V),e.rXU(j.v),e.rXU(e.gRc),e.rXU(y.qQ),e.rXU(P.d))},n.\u0275cmp=e.VBU({type:n,selectors:[["storefront-ticker"]],viewQuery:function(s,o){if(1&s&&e.GBs(Y,5),2&s){let r;e.mGM(r=e.lsd())&&(o.ticksContainer=r.first)}},hostVars:2,hostBindings:function(s,o){2&s&&e.AVh("empty",o.isEmpty)},features:[e.Jv_([j.v]),e.Vt3],decls:1,vars:1,consts:[["ticksContainer",""],["class","ticker-ticks",4,"ngIf"],[1,"ticker-ticks"],["class","ticker-tick",4,"ngFor","ngForOf"],[1,"ticker-tick"]],template:function(s,o){1&s&&e.DNE(0,J,3,1,"div",1),2&s&&e.Y8G("ngIf",o.ticks&&o.ticks.length)},dependencies:[y.Sq,y.bT],styles:["storefront-ticker{display:flex;overflow:hidden}storefront-ticker .ticker-ticks{display:flex;padding:var(--tickerPaddingY) 0}storefront-ticker .ticker-ticks .ticker-tick{margin:0 var(--tickerGutter);white-space:nowrap}storefront-ticker.empty{display:none}\n"],encapsulation:2,changeDetection:0}),k})(),K=(()=>{var n;class k{}return(n=k).\u0275fac=function(s){return new(s||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[y.MD]}),k})();const Z=W}}]);
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_toggle_toggle_module_ts"],{4568:(P,f,s)=>{s.r(f),s.d(f,{ToggleModule:()=>A,component:()=>V});var a=s(177),c=s(467),u=s(4404),d=s(
|
1
|
+
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_toggle_toggle_module_ts"],{4568:(P,f,s)=>{s.r(f),s.d(f,{ToggleModule:()=>A,component:()=>V});var a=s(177),c=s(467),u=s(4404),d=s(8251);const C={content:"publication-type"};var h=s(610),y=s(1210),X=s(8075),t=s(3953),m=s(4559),G=s(6067),U=s(9516),I=s(1652),N=s(8909);function O(o,l){if(1&o){const r=t.RV6();t.j41(0,"div",2),t.bIt("click",function(){const n=t.eBV(r).$implicit,i=t.XpG(2);return t.Njj(i.setSelection(n))}),t.k0s()}if(2&o){const r=l.$implicit,e=t.XpG(2);t.AVh("selected",e.isSelected(r)),t.Y8G("storefrontTranslate",r.name)}}function S(o,l){if(1&o&&(t.qex(0),t.DNE(1,O,1,3,"div",1),t.bVm()),2&o){const r=t.XpG();t.R7$(),t.Y8G("ngForOf",r.entries)}}let x=(()=>{var o;class l extends y.${constructor(e,n,i,g,b,M,v,p,T){super(i,n,v,p,T),this.route=e,this.elementRef=n,this.injector=i,this.router=g,this.store=b,this.translate=M,this.contextService=v,this.document=p,this.globalService=T,this.defaultConfig={...C}}ngOnInit(){var e=this;return(0,c.A)(function*(){e.baseConfig={...e.defaultConfig,...e.baseConfig},e.entries=yield e.loadEntries(),e.store.subscribe(e.route.queryParams,n=>{const i=n[e.baseConfig.content];e.setSelection(i&&[...e.entries].find(g=>g.value===i)||e.entries[0])})})()}loadEntries(){var e=this;return(0,c.A)(function*(){return"publication-type"===e.baseConfig.content?[{name:"TOGGLE_PUBLICATION_TYPE_KIOSK",value:u.PublicationType.KIOSK},{name:"TOGGLE_PUBLICATION_TYPE_CHANNEL",value:u.PublicationType.CHANNEL}]:[]})()}setSelection(e){var n=this;return(0,c.A)(function*(){JSON.stringify(n.selection)!==JSON.stringify(e)&&(n.selection=e,n.store.dispatch((0,h.k4)({url:window.location.href,key:"toggle-".concat(n.baseConfig.content),params:{[n.baseConfig.content]:n.selection.value,["".concat(n.baseConfig.content,"-translated")]:yield n.translate.translate(n.selection.name)}})),(0,X.CV)(n.router,{[n.baseConfig.content]:n.selection.value}))})()}isSelected(e){return e===this.selection}}return(o=l).type="toggle",o.\u0275fac=function(e){return new(e||o)(t.rXU(m.nX),t.rXU(t.aKT),t.rXU(t.zZn),t.rXU(m.Ix),t.rXU(d.B),t.rXU(G.D),t.rXU(U.V),t.rXU(a.qQ),t.rXU(I.d))},o.\u0275cmp=t.VBU({type:o,selectors:[["storefront-toggle"]],features:[t.Jv_([d.B]),t.Vt3],decls:1,vars:1,consts:[[4,"ngIf"],["class","toggle-entry",3,"selected","storefrontTranslate","click",4,"ngFor","ngForOf"],[1,"toggle-entry",3,"click","storefrontTranslate"]],template:function(e,n){1&e&&t.DNE(0,S,2,1,"ng-container",0),2&e&&t.Y8G("ngIf",n.entries)},dependencies:[a.Sq,a.bT,N.M],styles:["storefront-toggle{display:flex}storefront-toggle .toggle-entry{flex:1 1 0;text-align:center;padding:calc(var(--gutter) / 4) var(--gutter);white-space:nowrap}storefront-toggle .toggle-entry.selected{background-color:var(--primaryColor)}\n"],encapsulation:2}),l})();var E=s(6483);let A=(()=>{var o;class l{}return(o=l).\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.$C({type:o}),o.\u0275inj=t.G2t({imports:[a.MD,E.h]}),l})();const V=x}}]);
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_toolbar_toolbar_module_ts"],{4767:(w,v,a)=>{a.d(v,{d:()=>b});var d=a(177),h=a(4438);let b=(()=>{var f;class T{}return(f=T).\u0275fac=function(k){return new(k||f)},f.\u0275mod=h.$C({type:f}),f.\u0275inj=h.G2t({imports:[d.MD]}),T})()},5650:(w,v,a)=>{a.r(v),a.d(v,{ToolbarModule:()=>ct,component:()=>dt});var d=a(177),h=a(467),b=a(9079),f=a(4404),T=a(7786),C=a(7673),k=a(5343),U=a(3386),S=a(6354),E=a(4338),x=a(610),M=a(8091),j=a(7879),F=a(1210),u=a(2589),o=a(4438),R=a(5483),L=a(20),_=a(9047),K=a(5628),P=a(8471),G=a(354),X=a(1652),I=a(9383),N=a(6860);const $=["*",[["mat-toolbar-row"]]],z=["*","mat-toolbar-row"];let V=(()=>{var n;class s{}return(n=s).\u0275fac=function(t){return new(t||n)},n.\u0275dir=o.FsC({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0}),s})(),Y=(()=>{var n;class s{constructor(t,e,i){this._elementRef=t,this._platform=e,this._document=i}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return(n=s).\u0275fac=function(t){return new(t||n)(o.rXU(o.aKT),o.rXU(N.OD),o.rXU(d.qQ))},n.\u0275cmp=o.VBU({type:n,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){if(1&t&&o.wni(i,V,5),2&t){let l;o.mGM(l=o.lsd())&&(e._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(t,e){2&t&&(o.HbH(e.color?"mat-"+e.color:""),o.AVh("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[o.aNF],ngContentSelectors:z,decls:2,vars:0,template:function(t,e){1&t&&(o.NAR($),o.SdG(0),o.SdG(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0}),s})(),Q=(()=>{var n;class s{}return(n=s).\u0275fac=function(t){return new(t||n)},n.\u0275mod=o.$C({type:n}),n.\u0275inj=o.G2t({imports:[I.yE,I.yE]}),s})();var D=a(8909);const W=["container"],H=n=>({"toc-issue-title":!0,active:n});function J(n,s){if(1&n){const r=o.RV6();o.j41(0,"div",11),o.bIt("click",function(){const e=o.eBV(r).$implicit,i=o.XpG();return o.Njj(i.moveTo(e))}),o.j41(1,"div",12),o.EFF(2),o.k0s()()}if(2&n){const r=s.$implicit,t=o.XpG();o.R7$(),o.Y8G("ngClass",o.eq3(2,H,r.id===t.activeItem)),o.R7$(),o.SpI(" ",r.name,"")}}let Z=(()=>{var n;class s{constructor(t,e,i){this.contextService=t,this.destroyRef=e,this.renderer=i,this.dataList=[],this.toggleToc=new o.bkB}ngOnInit(){this.contextService.dataCollectionSubject.pipe((0,b.pQ)(this.destroyRef)).subscribe(t=>{this.dataList=t}),this.contextService.activeTocItemSubject.pipe((0,b.pQ)(this.destroyRef)).subscribe(t=>{t&&(this.activeItem=t)}),this.renderer.addClass(this.container.nativeElement,"open")}getParam(){return"post"}toggle(){this.toggleToc.emit("")}moveTo(t){this.contextService.moveToSlideSubject.next(t.id),this.toggle()}}return(n=s).\u0275fac=function(t){return new(t||n)(o.rXU(R.V),o.rXU(o.abz),o.rXU(o.sFG))},n.\u0275cmp=o.VBU({type:n,selectors:[["storefront-toc"]],viewQuery:function(t,e){if(1&t&&o.GBs(W,7),2&t){let i;o.mGM(i=o.lsd())&&(e.container=i.first)}},outputs:{toggleToc:"toggleToc"},decls:11,vars:1,consts:[["container",""],[1,"toc-container"],[1,"toc-backface",3,"click"],[1,"toc","collapsible"],[1,"toc-header"],[1,"toc-title"],["storefrontTranslate","TOC_TITLE"],[1,"toc-actions"],["mat-ripple","",1,"icon","icon-close",3,"click"],[1,"toc-content"],["class","toc-issue",3,"click",4,"ngFor","ngForOf"],[1,"toc-issue",3,"click"],[3,"ngClass"]],template:function(t,e){if(1&t){const i=o.RV6();o.j41(0,"div",1,0)(2,"div",2),o.bIt("click",function(){return o.eBV(i),o.Njj(e.toggle())}),o.k0s(),o.j41(3,"div",3)(4,"div",4)(5,"div",5),o.nrm(6,"h2",6),o.k0s(),o.j41(7,"div",7)(8,"button",8),o.bIt("click",function(){return o.eBV(i),o.Njj(e.toggle())}),o.k0s()()(),o.j41(9,"div",9),o.DNE(10,J,3,4,"div",10),o.k0s()()()}2&t&&(o.R7$(10),o.Y8G("ngForOf",e.dataList))},dependencies:[d.YU,d.Sq,D.M],styles:['.aspectRatioBase{position:relative;display:block}.aspectRatioBase:before{content:"";position:relative;display:block}.aspectRatioBase>*{position:absolute}.toc-container .toc-backface{position:fixed;width:100%;height:100%;top:0;left:0;background-color:#0009}.toc{padding:0 28px 24px;font-family:openSans,sans-serif;border-radius:4px;display:grid;justify-content:end}.toc.collapsible{position:fixed;top:56px;z-index:1;width:100%;max-width:384px;right:0;bottom:50px;height:auto;overflow:auto;background-color:#fff;-webkit-overflow-scrolling:touch}.toc.collapsible .toc-header button{display:block}.toc .toc-content{display:grid}.toc .toc-actions{display:flex;justify-content:end;-webkit-justify-content:flex-end;align-items:flex-end;-webkit-align-items:flex-end}.toc .toc-actions button.icon{margin-right:.2em}.toc .toc-content .toc-issue .toc-issue-title{line-height:22px;font-weight:500}.toc .toc-header{text-transform:uppercase;border-bottom:2px solid black;padding-bottom:12px;padding-top:35px;display:flex;background-color:#fff;z-index:1;justify-content:space-between;position:-webkit-sticky;position:-webkit-sticky;position:sticky;top:0}.toc .toc-header h2{letter-spacing:.3px;font-size:16px;line-height:22px;font-weight:500}.toc .toc-header button{display:none;color:#000;font-size:16px}.toc .toc-content .toc-issue{margin-top:14px;padding-bottom:14px;border-bottom:1px solid black;position:relative}.toc .toc-content .toc-issue .toc-issue-title{padding-right:46px;font-size:14px;line-height:24px}.toc .toc-content .toc-issue .active{font-weight:800}.toc-content .toc-issue .toc-issue-title{line-height:24px}\n'],encapsulation:2}),s})(),q=(()=>{var n;class s{transform(t,e){return null==t?void 0:t.filter(e)}}return(n=s).\u0275fac=function(t){return new(t||n)},n.\u0275pipe=o.EJ8({name:"impureFilter",type:n,pure:!1}),s})();const tt=(n,s)=>["toolbar-icon","icon",n,s];function ot(n,s){if(1&n&&o.nrm(0,"span",7),2&n){const r=o.XpG().$implicit;o.Y8G("storefrontTranslate",null==r?null:r.content)}}function et(n,s){if(1&n&&o.nrm(0,"img",8),2&n){const r=o.XpG().$implicit;o.Y8G("src",r?r.isActive?r.activeIconUrl:r.iconUrl:"",o.B4B)}}function nt(n,s){if(1&n){const r=o.RV6();o.j41(0,"div",3),o.bIt("click",function(){const e=o.eBV(r).$implicit,i=o.XpG(2);return o.Njj(i.onClick(e))}),o.j41(1,"a")(2,"div",4),o.DNE(3,ot,1,1,"span",5)(4,et,1,1,"img",6),o.k0s()()()}if(2&n){const r=s.$implicit;o.R7$(),o.BMQ("href",null==r?null:r.href,o.B4B),o.R7$(),o.Y8G("ngClass",r?o.l_i(4,tt,"toolbar-icon-"+r.type,r.isActive?"is-active":"").join(" "):""),o.R7$(),o.Y8G("ngIf",null==r?null:r.content),o.R7$(),o.Y8G("ngIf",r&&r.activeIconUrl)}}function it(n,s){if(1&n&&(o.j41(0,"mat-toolbar"),o.DNE(1,nt,5,7,"div",2),o.nI1(2,"impureFilter"),o.k0s()),2&n){const r=o.XpG();o.R7$(),o.Y8G("ngForOf",o.i5U(2,2,r.actions,r.notNullfilter))("ngForTrackBy",r.trackToolbarAction)}}function rt(n,s){if(1&n){const r=o.RV6();o.j41(0,"storefront-toc",9),o.bIt("toggleToc",function(){o.eBV(r);const e=o.XpG();return o.Njj(e.tocAction())}),o.k0s()}}let at=(()=>{var n;class s extends F.${constructor(t,e,i,l,c,m,p,g,y,A,mt,ft,pt,B){super(c,t,e,i,B),this.elementRef=t,this.contextService=e,this.document=i,this.changeDetectorRef=l,this.injector=c,this.dialog=m,this.store=p,this.destroyRef=g,this.route=y,this.ttsService=A,this.router=mt,this.purpleService=ft,this.downloadService=pt,this.globalService=B,this.tocOpened=!1,this.bookmarkLoading=!1,this.ttsAvailable=!1}ngOnInit(){var t=this;this.createActions(),(0,T.h)(this.route.queryParamMap,this.contextService.viewContext$,(0,C.of)(void 0)).pipe((0,U.c)(500,void 0,{leading:!1,trailing:!0}),(0,b.pQ)(this.destroyRef)).subscribe((0,h.A)(function*(){yield t.updateAffectedContent(),t.loadBookmark()}))}updateAffectedContent(){var t=this;return(0,h.A)(function*(){const e=t.contextService.getCurrentViewContext();let l,i=e.content;if(!i){var c,m,p,g;const y=null===(c=e.pathParams)||void 0===c?void 0:c.bundleSlug,A=null!==(m=null===(p=e.pathParams)||void 0===p?void 0:p.postSlug)&&void 0!==m?m:null===(g=e.pathParams)||void 0===g?void 0:g.contentSlug;A&&(i=(yield t.purpleService.getCatalogContents({first:1,contentFilter:{AND:[{contentType:{value:f.CatalogContentType.POST}},{properties:{key:"slug",value:A}}]}})).nodes[0]),y&&(l=(yield t.purpleService.getCatalogContents({first:1,contentFilter:{AND:[{contentType:{value:f.CatalogContentType.BUNDLE}},{properties:{key:"slug",value:y}}]}})).nodes[0])}if(!i)return t.bundle=void 0,void(t.post=void 0);i.contentType===f.CatalogContentType.BUNDLE&&(l=i,i=e.post),t.bundle=l,t.post=i})()}onConfigChanges(){}ngOnDestroy(){super.ngOnDestroy(),this.store.unsubscribe("bookmark"),this.subscription&&this.subscription.unsubscribe(),this.contextService.dataCollectionSubject.next(null)}onClick(t){switch(t.type){case"bookmark":this.bookmarkAction();break;case"toc":this.tocAction();break;case"close":this.closeAction();break;case"tts":this.ttsAction();break;case"back":this.backAction();break;case"menu":this.menuAction()}}closeAction(){var t;let e;const i=this.router.getCurrentNavigation();return null!=i&&null!==(t=i.extras)&&void 0!==t&&t.queryParams&&(e={...i.extras.queryParams}),this.router.navigate(["/"],{queryParams:e,queryParamsHandling:"merge",replaceUrl:!0})}ttsAction(){this.ttsService.ttsPlayer.toggleOpenPlayer()}backAction(){this.store.dispatch((0,x.k4)({key:"APP_BAR_BACK_CLICKED"})),window.history.back()}menuAction(){this.store.dispatch((0,x.k4)({key:"APP_BAR_MENU_CLICKED"})),this.purpleService.openActionUrl("purple://app/menu/open")}bookmarkAction(){var t=this;return(0,h.A)(function*(){if(!t.bookmarkLoading){if(t.bookmarkLoading=!0,t.bookmark){t.baseConfig.bookmark&&t.baseConfig.bookmark.deleteConfirm&&(yield t.dialog.confirm(t.bookmark.title?{text:"BOOKMARK_DELETE_MESSAGE_WITH_TITLE",args:[t.bookmark.title]}:"BOOKMARK_DELETE_MESSAGE","BOOKMARK_DELETE_TITLE","BOOKMARK_DELETE_CONFIRM","BOOKMARK_DELETE_CANCEL")),t.handleTrackAction("BOOKMARK_DELETE_CLICKED",t.bookmark);try{yield t.purpleService.deleteBookmark({id:t.bookmark.id}),t.handleTrackAction("BOOKMARK_DELETED",t.bookmark)}catch(e){t.dialog.alert(t.bookmark.title?{text:"ERROR_DELETE_BOOKMARK_WITH_TITLE",args:(0,M._3)((0,M.E2)(e,t.contextService),t.bookmark)}:{text:"ERROR_DELETE_BOOKMARK",args:[(0,M.E2)(e,t.contextService)]},"DIALOG_ERROR"),t.handleTrackAction("BOOKMARK_DELETE_FAILED",t.bookmark)}}else{if(t.handleTrackAction("BOOKMARK_ADD_CLICKED",t.bookmark),yield t.updateAffectedContent(),!t.post)return console.error("no post found"),void(t.bookmarkLoading=!1);const e=t.post,i=t.bundle;let l={title:e.name,description:e.description,issueId:e.id,customData:{contentType:i?i.contentType:e.contentType,bundleId:i?i.id:void 0}};e.thumbnails&&e.thumbnails.default&&"false"!==e.thumbnails.default?l.thumbnailURL=e.thumbnails.default:i&&i.thumbnails&&i.thumbnails.default&&"false"!==i.thumbnails.default&&(l.thumbnailURL=i.thumbnails.default),t.baseConfig.bookmark&&(l={...l,...t.baseConfig.bookmark});try{yield t.purpleService.createBookmark(l),t.handleTrackAction("BOOKMARK_ADDED",t.bookmark)}catch(c){t.handleTrackAction("BOOKMARK_ADD_FAILED",t.bookmark),t.dialog.alert({text:"ERROR_ADD_BOOKMARK",args:t.getErrorDialogArgs(c)},"DIALOG_ERROR")}}t.bookmarkLoading=!1}})()}tocAction(){this.tocOpened=!this.tocOpened}getIconForAction(t){return this.contextService.toResourceUrl(t)}getActionFromPath(t){return t.split("/").pop().split(".").shift()}createActions(){var t;if((null===(t=this.baseConfig.actions)||void 0===t?void 0:t.length)>0){this.actions=Array(this.baseConfig.actions.length).fill(null);for(var e=this.baseConfig.actions.length-1;e>=0;e--)-1==this.containAction(this.baseConfig.actions[e])&&this.addAction(this.baseConfig.actions[e],e)}}loadBookmark(){this.findActionFromConfig(u.f.bookmark)&&this.store.subscribe(this.purpleService.bookmarks.pipe((0,S.T)(t=>t.find(e=>{return this.post?e.issueId===this.post.id:e.issueId===(null===(i=this.bundle)||void 0===i?void 0:i.id);var i}))),t=>{this.bookmark=t,this.updateBookmarkIcon()},k.l,k.l,"bookmark")}handleTrackAction(t,e){const i="".concat(this.getTrackingBaseKey(),"_").concat(t);let l=e?(0,j.aM)(e):{};l={...l,...this.getTrackingParams()},this.store.dispatch((0,x.k4)({key:i,params:l}))}updateBookmarkIcon(){this.actions.find(e=>(null==e?void 0:e.type)===u.f.bookmark).isActive=!!this.bookmark}updateTtsIcon(){let t=this.actions.find(e=>(null==e?void 0:e.type)===u.f.tts);this.ttsService.ttsPlayer.state.isOpen.subscribe(e=>{t.isActive=e,this.changeDetectorRef.detectChanges()})}containAction(t){const e=this.actions.find(i=>(null==i?void 0:i.type)===t.type);return this.actions.indexOf(e)}addAction(t,e){switch(t.type){case u.f.toc:this.contextService.dataCollectionSubject.pipe((0,b.pQ)(this.destroyRef)).subscribe(i=>{const l=this.containAction(t);!i&&l>-1?this.actions.splice(l):(null==i?void 0:i.length)>1&&this.addToActions(t,e),this.changeDetectorRef.detectChanges()});break;case u.f.tts:this.ttsService.initTts$.subscribe(i=>{i&&(this.addToActions(t,e),this.updateTtsIcon())});break;case u.f.pdf:this.downloadService.initPdf.subscribe(i=>{i?(t={...t,href:i},this.addToActions(t,e)):this.removeAction(e),this.changeDetectorRef.detectChanges()});break;default:this.addToActions(t,e)}}findActionFromConfig(t){var e;return null===(e=this.baseConfig.actions)||void 0===e?void 0:e.find(i=>i.type===t)}trackToolbarAction(t,e){var i,l;return u.f[e.type]+"_"+(null!==(i=e.content)&&void 0!==i?i:null!==(l=e.href)&&void 0!==l?l:"")}notNullfilter(t){return!!t}addToActions(t,e){var i,l,c;this.actions[e]={...null===(i=this.baseConfig.actions)||void 0===i?void 0:i[e],isActive:!1},this.actions[e].href=t.href,this.actions[e].content=t.content;let m=t.iconUrl;null!==(l=m)&&void 0!==l&&l.startsWith("storefront/assets")&&(m=m.replace("storefront/","./"));let p=t.activeIconUrl;null!==(c=p)&&void 0!==c&&c.startsWith("storefront/assets")&&(p=p.replace("storefront/","./")),this.actions[e].iconUrl=this.getIconForAction(m),this.actions[e].activeIconUrl=this.getIconForAction(t.activeIconUrl?p:m)}removeAction(t){this.actions[t]=null}}return(n=s).\u0275fac=function(t){return new(t||n)(o.rXU(o.aKT),o.rXU(R.V),o.rXU(d.qQ),o.rXU(o.gRc),o.rXU(o.zZn),o.rXU(L.o),o.rXU(E.B),o.rXU(o.abz),o.rXU(_.nX),o.rXU(K.z),o.rXU(_.Ix),o.rXU(P.Wj),o.rXU(G.s),o.rXU(X.d))},n.\u0275cmp=o.VBU({type:n,selectors:[["storefront-toolbar"]],features:[o.Jv_([E.B]),o.Vt3],decls:2,vars:2,consts:[[4,"ngIf"],[3,"toggleToc",4,"ngIf"],[3,"click",4,"ngFor","ngForOf","ngForTrackBy"],[3,"click"],["mat-ripple","",3,"ngClass"],[3,"storefrontTranslate",4,"ngIf"],[3,"src",4,"ngIf"],[3,"storefrontTranslate"],[3,"src"],[3,"toggleToc"]],template:function(t,e){1&t&&o.DNE(0,it,3,5,"mat-toolbar",0)(1,rt,1,0,"storefront-toc",1),2&t&&(o.Y8G("ngIf",e.baseConfig&&e.actions),o.R7$(),o.Y8G("ngIf",e.tocOpened))},dependencies:[d.YU,d.Sq,d.bT,Y,Z,D.M,q],styles:["storefront-toolbar{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;transition:height .2s ease,transform .2s ease;background-color:var(--toolbarbackgroundColor);z-index:22}storefront-toolbar>mat-toolbar{width:100%;display:flex;max-width:640px;margin:0 auto;justify-content:center;padding:0 var(--gutter)!important}storefront-toolbar>mat-toolbar div{height:100%;padding:0 var(--gutter)!important;color:var(--navigationColor);flex-shrink:0;flex-grow:1;flex-basis:0;display:flex!important;align-items:center;justify-content:center}storefront-toolbar>mat-toolbar div span{padding-right:10px}storefront-toolbar>mat-toolbar div img{color:var(--toolbarIconColor);height:25px;width:25px}\n"],encapsulation:2}),s})();var O=a(6483);let st=(()=>{var n;class s{}return(n=s).\u0275fac=function(t){return new(t||n)},n.\u0275mod=o.$C({type:n}),n.\u0275inj=o.G2t({imports:[d.MD,O.h]}),s})();var lt=a(4767);let ct=(()=>{var n;class s{}return(n=s).\u0275fac=function(t){return new(t||n)},n.\u0275mod=o.$C({type:n}),n.\u0275inj=o.G2t({imports:[d.MD,Q,st,O.h,lt.d]}),s})();const dt=at}}]);
|
1
|
+
"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_toolbar_toolbar_module_ts"],{4767:(Dt,j,d)=>{d.d(j,{d:()=>x});var m=d(177),D=d(3953);let x=(()=>{var S;class R{}return(S=R).\u0275fac=function(z){return new(z||S)},S.\u0275mod=D.$C({type:S}),S.\u0275inj=D.G2t({imports:[m.MD]}),R})()},694:(Dt,j,d)=>{d.r(j),d.d(j,{ToolbarModule:()=>hi,component:()=>di});var m=d(177),D=d(467),x=d(9079),S=d(4404),R=d(7786),P=d(7673),z=d(5343),xt=d(3386),Pt=d(6354),tt=d(8251),K=d(610),W=d(8091),Tt=d(7879),At=d(1210),O=d(2589),n=d(3953),et=d(9516),It=d(20),it=d(4559),Ft=d(5628),Bt=d(8471),Vt=d(354),Lt=d(1652),E=d(6600),b=d(6860);const Nt=["*",[["mat-toolbar-row"]]],jt=["*","mat-toolbar-row"];let zt=(()=>{var s;class e{}return(s=e).\u0275fac=function(t){return new(t||s)},s.\u0275dir=n.FsC({type:s,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0}),e})(),Ht=(()=>{var s;class e{constructor(t,i,r){this._elementRef=t,this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return(s=e).\u0275fac=function(t){return new(t||s)(n.rXU(n.aKT),n.rXU(b.OD),n.rXU(m.qQ))},s.\u0275cmp=n.VBU({type:s,selectors:[["mat-toolbar"]],contentQueries:function(t,i,r){if(1&t&&n.wni(r,zt,5),2&t){let a;n.mGM(a=n.lsd())&&(i._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(t,i){2&t&&(n.HbH(i.color?"mat-"+i.color:""),n.AVh("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[n.aNF],ngContentSelectors:jt,decls:2,vars:0,template:function(t,i){1&t&&(n.NAR(Nt),n.SdG(0),n.SdG(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0}),e})(),Xt=(()=>{var s;class e{}return(s=e).\u0275fac=function(t){return new(t||s)},s.\u0275mod=n.$C({type:s}),s.\u0275inj=n.G2t({imports:[E.yE,E.yE]}),e})();var ot=d(8909);const Yt=["container"],Ut=s=>({"toc-issue-title":!0,active:s});function Kt(s,e){if(1&s){const o=n.RV6();n.j41(0,"div",11),n.bIt("click",function(){const i=n.eBV(o).$implicit,r=n.XpG();return n.Njj(r.moveTo(i))}),n.j41(1,"div",12),n.EFF(2),n.k0s()()}if(2&s){const o=e.$implicit,t=n.XpG();n.R7$(),n.Y8G("ngClass",n.eq3(2,Ut,o.id===t.activeItem)),n.R7$(),n.SpI(" ",o.name,"")}}let Wt=(()=>{var s;class e{constructor(t,i,r){this.contextService=t,this.destroyRef=i,this.renderer=r,this.dataList=[],this.toggleToc=new n.bkB}ngOnInit(){this.contextService.dataCollectionSubject.pipe((0,x.pQ)(this.destroyRef)).subscribe(t=>{this.dataList=t}),this.contextService.activeTocItemSubject.pipe((0,x.pQ)(this.destroyRef)).subscribe(t=>{t&&(this.activeItem=t)}),this.renderer.addClass(this.container.nativeElement,"open")}getParam(){return"post"}toggle(){this.toggleToc.emit("")}moveTo(t){this.contextService.moveToSlideSubject.next(t.id),this.toggle()}}return(s=e).\u0275fac=function(t){return new(t||s)(n.rXU(et.V),n.rXU(n.abz),n.rXU(n.sFG))},s.\u0275cmp=n.VBU({type:s,selectors:[["storefront-toc"]],viewQuery:function(t,i){if(1&t&&n.GBs(Yt,7),2&t){let r;n.mGM(r=n.lsd())&&(i.container=r.first)}},outputs:{toggleToc:"toggleToc"},decls:11,vars:1,consts:[["container",""],[1,"toc-container"],[1,"toc-backface",3,"click"],[1,"toc","collapsible"],[1,"toc-header"],[1,"toc-title"],["storefrontTranslate","TOC_TITLE"],[1,"toc-actions"],["mat-ripple","",1,"icon","icon-close",3,"click"],[1,"toc-content"],["class","toc-issue",3,"click",4,"ngFor","ngForOf"],[1,"toc-issue",3,"click"],[3,"ngClass"]],template:function(t,i){if(1&t){const r=n.RV6();n.j41(0,"div",1,0)(2,"div",2),n.bIt("click",function(){return n.eBV(r),n.Njj(i.toggle())}),n.k0s(),n.j41(3,"div",3)(4,"div",4)(5,"div",5),n.nrm(6,"h2",6),n.k0s(),n.j41(7,"div",7)(8,"button",8),n.bIt("click",function(){return n.eBV(r),n.Njj(i.toggle())}),n.k0s()()(),n.j41(9,"div",9),n.DNE(10,Kt,3,4,"div",10),n.k0s()()()}2&t&&(n.R7$(10),n.Y8G("ngForOf",i.dataList))},dependencies:[m.YU,m.Sq,ot.M],styles:['.aspectRatioBase{position:relative;display:block}.aspectRatioBase:before{content:"";position:relative;display:block}.aspectRatioBase>*{position:absolute}.toc-container .toc-backface{position:fixed;width:100%;height:100%;top:0;left:0;background-color:#0009}.toc{padding:0 28px 24px;font-family:openSans,sans-serif;border-radius:4px;display:grid;justify-content:end}.toc.collapsible{position:fixed;top:56px;z-index:1;width:100%;max-width:384px;right:0;bottom:50px;height:auto;overflow:auto;background-color:#fff;-webkit-overflow-scrolling:touch}.toc.collapsible .toc-header button{display:block}.toc .toc-content{display:grid}.toc .toc-actions{display:flex;justify-content:end;-webkit-justify-content:flex-end;align-items:flex-end;-webkit-align-items:flex-end}.toc .toc-actions button.icon{margin-right:.2em}.toc .toc-content .toc-issue .toc-issue-title{line-height:22px;font-weight:500}.toc .toc-header{text-transform:uppercase;border-bottom:2px solid black;padding-bottom:12px;padding-top:35px;display:flex;background-color:#fff;z-index:1;justify-content:space-between;position:-webkit-sticky;position:-webkit-sticky;position:sticky;top:0}.toc .toc-header h2{letter-spacing:.3px;font-size:16px;line-height:22px;font-weight:500}.toc .toc-header button{display:none;color:#000;font-size:16px}.toc .toc-content .toc-issue{margin-top:14px;padding-bottom:14px;border-bottom:1px solid black;position:relative}.toc .toc-content .toc-issue .toc-issue-title{padding-right:46px;font-size:14px;line-height:24px}.toc .toc-content .toc-issue .active{font-weight:800}.toc-content .toc-issue .toc-issue-title{line-height:24px}\n'],encapsulation:2}),e})();var F=d(6039),k=d(7336),C=d(1413),T=d(8359),G=d(5007),$=d(9172),nt=d(5558),H=d(6977),A=d(5964),X=d(6697),rt=d(3236),Gt=d(8793),$t=d(3557),Zt=d(3703),Qt=d(1397),st=d(8750);function at(s,e){return e?o=>(0,Gt.x)(e.pipe((0,X.s)(1),(0,$t.w)()),o.pipe(at(s))):(0,Qt.Z)((o,t)=>(0,st.Tg)(s(o,t)).pipe((0,X.s)(1),(0,Zt.u)(o)))}var lt=d(1584);function ct(s,e=rt.E){const o=(0,lt.O)(s,e);return at(()=>o)}class Z{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class Jt extends Z{constructor(e,o,t,i,r){super(),this.component=e,this.viewContainerRef=o,this.injector=t,this.componentFactoryResolver=i,this.projectableNodes=r}}class ht extends Z{constructor(e,o,t,i){super(),this.templateRef=e,this.viewContainerRef=o,this.context=t,this.injector=i}get origin(){return this.templateRef.elementRef}attach(e,o=this.context){return this.context=o,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class qt extends Z{constructor(e){super(),this.element=e instanceof n.aKT?e.nativeElement:e}}class te{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof Jt?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof ht?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof qt?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ee extends te{constructor(e,o,t,i,r){super(),this.outletElement=e,this._componentFactoryResolver=o,this._appRef=t,this._defaultInjector=i,this.attachDomPortal=a=>{const l=a.element,c=this._document.createComment("dom-portal");l.parentNode.insertBefore(c,l),this.outletElement.appendChild(l),this._attachedPortal=a,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(l,c)})},this._document=r}attachComponentPortal(e){const t=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let i;return e.viewContainerRef?(i=e.viewContainerRef.createComponent(t,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>i.destroy())):(i=t.create(e.injector||this._defaultInjector||n.zZn.NULL),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=e,i}attachTemplatePortal(e){let o=e.viewContainerRef,t=o.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return t.rootNodes.forEach(i=>this.outletElement.appendChild(i)),t.detectChanges(),this.setDisposeFn(()=>{let i=o.indexOf(t);-1!==i&&o.remove(i)}),this._attachedPortal=e,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let ie=(()=>{var s;class e{}return(s=e).\u0275fac=function(t){return new(t||s)},s.\u0275mod=n.$C({type:s}),s.\u0275inj=n.G2t({}),e})();var y=d(9969),B=d(8203),_=d(4085),oe=d(1985),ne=d(3726),re=d(6780);const V={schedule(s){let e=requestAnimationFrame,o=cancelAnimationFrame;const{delegate:t}=V;t&&(e=t.requestAnimationFrame,o=t.cancelAnimationFrame);const i=e(r=>{o=void 0,s(r)});return new T.yU(()=>null==o?void 0:o(i))},requestAnimationFrame(...s){const{delegate:e}=V;return((null==e?void 0:e.requestAnimationFrame)||requestAnimationFrame)(...s)},cancelAnimationFrame(...s){const{delegate:e}=V;return((null==e?void 0:e.cancelAnimationFrame)||cancelAnimationFrame)(...s)},delegate:void 0};var ae=d(9687);new class le extends ae.q{flush(e){this._active=!0;const o=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let i;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while((e=t[0])&&e.id===o&&t.shift());if(this._active=!1,i){for(;(e=t[0])&&e.id===o&&t.shift();)e.unsubscribe();throw i}}}(class se extends re.R{constructor(e,o){super(e,o),this.scheduler=e,this.work=o}requestAsyncId(e,o,t=0){return null!==t&&t>0?super.requestAsyncId(e,o,t):(e.actions.push(this),e._scheduled||(e._scheduled=V.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,o,t=0){var i;if(null!=t?t>0:this.delay>0)return super.recycleAsyncId(e,o,t);const{actions:r}=e;null!=o&&(null===(i=r[r.length-1])||void 0===i?void 0:i.id)!==o&&(V.cancelAnimationFrame(o),e._scheduled=void 0)}});var he=d(9974),dt=d(4360);function ut(s,e=rt.E){return function de(s){return(0,he.N)((e,o)=>{let t=!1,i=null,r=null,a=!1;const l=()=>{if(null==r||r.unsubscribe(),r=null,t){t=!1;const h=i;i=null,o.next(h)}a&&o.complete()},c=()=>{r=null,a&&o.complete()};e.subscribe((0,dt._)(o,h=>{t=!0,i=h,r||(0,st.Tg)(s(h)).subscribe(r=(0,dt._)(o,l,c))},()=>{a=!0,(!t||!r||r.closed)&&o.complete()}))})}(()=>(0,lt.O)(s,e))}let fe=(()=>{var s;class e{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new C.B,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new oe.c(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(ut(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,P.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe((0,A.p)(a=>!a||r.indexOf(a)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,a)=>{this._scrollableContainsElement(a,t)&&i.push(a)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=(0,_.i8)(i),a=t.getElementRef().nativeElement;do{if(r==a)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return(0,ne.R)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return(s=e).\u0275fac=function(t){return new(t||s)(n.KVO(n.SKi),n.KVO(b.OD),n.KVO(m.qQ,8))},s.\u0275prov=n.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),e})(),ft=(()=>{var s;class e{constructor(t,i,r){this._platform=t,this._change=new C.B,this._changeListener=a=>{this._change.next(a)},this._document=r,i.runOutsideAngular(()=>{if(t.isBrowser){const a=this._getWindow();a.addEventListener("resize",this._changeListener),a.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,a=r.getBoundingClientRect();return{top:-a.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-a.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(ut(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return(s=e).\u0275fac=function(t){return new(t||s)(n.KVO(b.OD),n.KVO(n.SKi),n.KVO(m.qQ,8))},s.\u0275prov=n.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),e})(),Q=(()=>{var s;class e{}return(s=e).\u0275fac=function(t){return new(t||s)},s.\u0275mod=n.$C({type:s}),s.\u0275inj=n.G2t({}),e})(),pt=(()=>{var s;class e{}return(s=e).\u0275fac=function(t){return new(t||s)},s.\u0275mod=n.$C({type:s}),s.\u0275inj=n.G2t({imports:[B.jI,Q,B.jI,Q]}),e})();const mt=(0,b.CZ)();class me{constructor(e,o){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=o}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=(0,_.a1)(-this._previousScrollPosition.left),e.style.top=(0,_.a1)(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,t=e.style,i=this._document.body.style,r=t.scrollBehavior||"",a=i.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),mt&&(t.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),mt&&(t.scrollBehavior=r,i.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const o=this._document.body,t=this._viewportRuler.getViewportSize();return o.scrollHeight>t.height||o.scrollWidth>t.width}}class _e{constructor(e,o,t,i){this._scrollDispatcher=e,this._ngZone=o,this._viewportRuler=t,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0).pipe((0,A.p)(o=>!o||!this._overlayRef.overlayElement.contains(o.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const o=this._viewportRuler.getViewportScrollPosition().top;Math.abs(o-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class _t{enable(){}disable(){}attach(){}}function J(s,e){return e.some(o=>s.bottom<o.top||s.top>o.bottom||s.right<o.left||s.left>o.right)}function gt(s,e){return e.some(o=>s.top<o.top||s.bottom>o.bottom||s.left<o.left||s.right>o.right)}class ge{constructor(e,o,t,i){this._scrollDispatcher=e,this._viewportRuler=o,this._ngZone=t,this._config=i,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const o=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:i}=this._viewportRuler.getViewportSize();J(o,[{width:t,height:i,bottom:i,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let ve=(()=>{var s;class e{constructor(t,i,r,a){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new _t,this.close=l=>new _e(this._scrollDispatcher,this._ngZone,this._viewportRuler,l),this.block=()=>new me(this._viewportRuler,this._document),this.reposition=l=>new ge(this._scrollDispatcher,this._viewportRuler,this._ngZone,l),this._document=a}}return(s=e).\u0275fac=function(t){return new(t||s)(n.KVO(fe),n.KVO(ft),n.KVO(n.SKi),n.KVO(m.qQ))},s.\u0275prov=n.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),e})();class vt{constructor(e){if(this.scrollStrategy=new _t,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const o=Object.keys(e);for(const t of o)void 0!==e[t]&&(this[t]=e[t])}}}class ye{constructor(e,o){this.connectionPair=e,this.scrollableViewProperties=o}}let yt=(()=>{var s;class e{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return(s=e).\u0275fac=function(t){return new(t||s)(n.KVO(m.qQ))},s.\u0275prov=n.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),e})(),be=(()=>{var s;class e extends yt{constructor(t,i){super(t),this._ngZone=i,this._keydownListener=r=>{const a=this._attachedOverlays;for(let l=a.length-1;l>-1;l--)if(a[l]._keydownEvents.observers.length>0){const c=a[l]._keydownEvents;this._ngZone?this._ngZone.run(()=>c.next(r)):c.next(r);break}}}add(t){super.add(t),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return(s=e).\u0275fac=function(t){return new(t||s)(n.KVO(m.qQ),n.KVO(n.SKi,8))},s.\u0275prov=n.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),e})(),Ce=(()=>{var s;class e extends yt{constructor(t,i,r){super(t),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=a=>{this._pointerDownEventTarget=(0,b.Fb)(a)},this._clickListener=a=>{const l=(0,b.Fb)(a),c="click"===a.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:l;this._pointerDownEventTarget=null;const h=this._attachedOverlays.slice();for(let u=h.length-1;u>-1;u--){const f=h[u];if(f._outsidePointerEvents.observers.length<1||!f.hasAttached())continue;if(bt(f.overlayElement,l)||bt(f.overlayElement,c))break;const p=f._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>p.next(a)):p.next(a)}}}add(t){if(super.add(t),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}}return(s=e).\u0275fac=function(t){return new(t||s)(n.KVO(m.qQ),n.KVO(b.OD),n.KVO(n.SKi,8))},s.\u0275prov=n.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),e})();function bt(s,e){const o=typeof ShadowRoot<"u"&&ShadowRoot;let t=e;for(;t;){if(t===s)return!0;t=o&&t instanceof ShadowRoot?t.host:t.parentNode}return!1}let Ct=(()=>{var s;class e{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){var t;null===(t=this._containerElement)||void 0===t||t.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||(0,b.v8)()){const r=this._document.querySelectorAll(".".concat(t,'[platform="server"], ')+".".concat(t,'[platform="test"]'));for(let a=0;a<r.length;a++)r[a].remove()}const i=this._document.createElement("div");i.classList.add(t),(0,b.v8)()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return(s=e).\u0275fac=function(t){return new(t||s)(n.KVO(m.qQ),n.KVO(b.OD))},s.\u0275prov=n.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),e})();class we{constructor(e,o,t,i,r,a,l,c,h,u=!1,f){this._portalOutlet=e,this._host=o,this._pane=t,this._config=i,this._ngZone=r,this._keyboardDispatcher=a,this._document=l,this._location=c,this._outsideClickDispatcher=h,this._animationsDisabled=u,this._injector=f,this._backdropElement=null,this._backdropClick=new C.B,this._attachments=new C.B,this._detachments=new C.B,this._locationChanges=T.yU.EMPTY,this._backdropClickHandler=p=>this._backdropClick.next(p),this._backdropTransitionendHandler=p=>{this._disposeBackdrop(p.target)},this._keydownEvents=new C.B,this._outsidePointerEvents=new C.B,this._renders=new C.B,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy,this._afterRenderRef=(0,n.O8t)(()=>(0,n.Tzd)(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const o=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),(0,n.mal)(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof(null==o?void 0:o.onDestroy)&&o.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),o}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){var e;const o=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(e=this._host)||void 0===e||e.remove(),this._previousHostParent=this._pane=this._host=null,o&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config={...this._config,...e},this._updateElementSize()}setDirection(e){this._config={...this._config,direction:e},this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=(0,_.a1)(this._config.width),e.height=(0,_.a1)(this._config.height),e.minWidth=(0,_.a1)(this._config.minWidth),e.minHeight=(0,_.a1)(this._config.minHeight),e.maxWidth=(0,_.a1)(this._config.maxWidth),e.maxHeight=(0,_.a1)(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;if(e){if(this._animationsDisabled)return void this._disposeBackdrop(e);e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,o,t){const i=(0,_.FG)(o||[]).filter(r=>!!r);i.length&&(t?e.classList.add(...i):e.classList.remove(...i))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{const e=this._renders.pipe((0,H.Q)((0,R.h)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const wt="cdk-overlay-connected-position-bounding-box",Se=/([A-Za-z%]+)$/;class ke{get positions(){return this._preferredPositions}constructor(e,o,t,i,r){this._viewportRuler=o,this._document=t,this._platform=i,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new C.B,this._resizeSubscription=T.yU.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._validatePositions(),e.hostElement.classList.add(wt),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._originRect,o=this._overlayRect,t=this._viewportRect,i=this._containerRect,r=[];let a;for(let l of this._preferredPositions){let c=this._getOriginPoint(e,i,l),h=this._getOverlayPoint(c,o,l),u=this._getOverlayFit(h,o,t,l);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(l,c);this._canFitWithFlexibleDimensions(u,h,t)?r.push({position:l,origin:c,overlayRect:o,boundingBoxRect:this._calculateBoundingBoxRect(c,l)}):(!a||a.overlayFit.visibleArea<u.visibleArea)&&(a={overlayFit:u,overlayPoint:h,originPoint:c,position:l,overlayRect:o})}if(r.length){let l=null,c=-1;for(const h of r){const u=h.boundingBoxRect.width*h.boundingBoxRect.height*(h.position.weight||1);u>c&&(c=u,l=h)}return this._isPushed=!1,void this._applyPosition(l.position,l.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(a.position,a.originPoint);this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&M(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(wt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const o=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,o)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,o,t){let i,r;if("center"==t.originX)i=e.left+e.width/2;else{const a=this._isRtl()?e.right:e.left,l=this._isRtl()?e.left:e.right;i="start"==t.originX?a:l}return o.left<0&&(i-=o.left),r="center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom,o.top<0&&(r-=o.top),{x:i,y:r}}_getOverlayPoint(e,o,t){let i,r;return i="center"==t.overlayX?-o.width/2:"start"===t.overlayX?this._isRtl()?-o.width:0:this._isRtl()?0:-o.width,r="center"==t.overlayY?-o.height/2:"top"==t.overlayY?0:-o.height,{x:e.x+i,y:e.y+r}}_getOverlayFit(e,o,t,i){const r=kt(o);let{x:a,y:l}=e,c=this._getOffset(i,"x"),h=this._getOffset(i,"y");c&&(a+=c),h&&(l+=h);let p=0-l,g=l+r.height-t.height,v=this._subtractOverflows(r.width,0-a,a+r.width-t.width),w=this._subtractOverflows(r.height,p,g),N=v*w;return{visibleArea:N,isCompletelyWithinViewport:r.width*r.height===N,fitsInViewportVertically:w===r.height,fitsInViewportHorizontally:v==r.width}}_canFitWithFlexibleDimensions(e,o,t){if(this._hasFlexibleDimensions){const i=t.bottom-o.y,r=t.right-o.x,a=St(this._overlayRef.getConfig().minHeight),l=St(this._overlayRef.getConfig().minWidth);return(e.fitsInViewportVertically||null!=a&&a<=i)&&(e.fitsInViewportHorizontally||null!=l&&l<=r)}return!1}_pushOverlayOnScreen(e,o,t){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const i=kt(o),r=this._viewportRect,a=Math.max(e.x+i.width-r.width,0),l=Math.max(e.y+i.height-r.height,0),c=Math.max(r.top-t.top-e.y,0),h=Math.max(r.left-t.left-e.x,0);let u=0,f=0;return u=i.width<=r.width?h||-a:e.x<this._viewportMargin?r.left-t.left-e.x:0,f=i.height<=r.height?c||-l:e.y<this._viewportMargin?r.top-t.top-e.y:0,this._previousPushAmount={x:u,y:f},{x:e.x+u,y:e.y+f}}_applyPosition(e,o){if(this._setTransformOrigin(e),this._setOverlayElementStyles(o,e),this._setBoundingBoxStyles(o,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._positionChanges.observers.length){const t=this._getScrollVisibility();if(e!==this._lastPosition||!this._lastScrollVisibility||!function Re(s,e){return s===e||s.isOriginClipped===e.isOriginClipped&&s.isOriginOutsideView===e.isOriginOutsideView&&s.isOverlayClipped===e.isOverlayClipped&&s.isOverlayOutsideView===e.isOverlayOutsideView}(this._lastScrollVisibility,t)){const i=new ye(e,t);this._positionChanges.next(i)}this._lastScrollVisibility=t}this._lastPosition=e,this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const o=this._boundingBox.querySelectorAll(this._transformOriginSelector);let t,i=e.overlayY;t="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let r=0;r<o.length;r++)o[r].style.transformOrigin="".concat(t," ").concat(i)}_calculateBoundingBoxRect(e,o){const t=this._viewportRect,i=this._isRtl();let r,a,l,u,f,p;if("top"===o.overlayY)a=e.y,r=t.height-a+this._viewportMargin;else if("bottom"===o.overlayY)l=t.height-e.y+2*this._viewportMargin,r=t.height-l+this._viewportMargin;else{const g=Math.min(t.bottom-e.y+t.top,e.y),v=this._lastBoundingBoxSize.height;r=2*g,a=e.y-g,r>v&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.y-v/2)}if("end"===o.overlayX&&!i||"start"===o.overlayX&&i)p=t.width-e.x+2*this._viewportMargin,u=e.x-this._viewportMargin;else if("start"===o.overlayX&&!i||"end"===o.overlayX&&i)f=e.x,u=t.right-e.x;else{const g=Math.min(t.right-e.x+t.left,e.x),v=this._lastBoundingBoxSize.width;u=2*g,f=e.x-g,u>v&&!this._isInitialRender&&!this._growAfterOpen&&(f=e.x-v/2)}return{top:a,left:f,bottom:l,right:p,width:u,height:r}}_setBoundingBoxStyles(e,o){const t=this._calculateBoundingBoxRect(e,o);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;i.height=(0,_.a1)(t.height),i.top=(0,_.a1)(t.top),i.bottom=(0,_.a1)(t.bottom),i.width=(0,_.a1)(t.width),i.left=(0,_.a1)(t.left),i.right=(0,_.a1)(t.right),i.alignItems="center"===o.overlayX?"center":"end"===o.overlayX?"flex-end":"flex-start",i.justifyContent="center"===o.overlayY?"center":"bottom"===o.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=(0,_.a1)(r)),a&&(i.maxWidth=(0,_.a1)(a))}this._lastBoundingBoxSize=t,M(this._boundingBox.style,i)}_resetBoundingBoxStyles(){M(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){M(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,o){const t={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(i){const u=this._viewportRuler.getViewportScrollPosition();M(t,this._getExactOverlayY(o,e,u)),M(t,this._getExactOverlayX(o,e,u))}else t.position="static";let l="",c=this._getOffset(o,"x"),h=this._getOffset(o,"y");c&&(l+="translateX(".concat(c,"px) ")),h&&(l+="translateY(".concat(h,"px)")),t.transform=l.trim(),a.maxHeight&&(i?t.maxHeight=(0,_.a1)(a.maxHeight):r&&(t.maxHeight="")),a.maxWidth&&(i?t.maxWidth=(0,_.a1)(a.maxWidth):r&&(t.maxWidth="")),M(this._pane.style,t)}_getExactOverlayY(e,o,t){let i={top:"",bottom:""},r=this._getOverlayPoint(o,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,t)),"bottom"===e.overlayY?i.bottom="".concat(this._document.documentElement.clientHeight-(r.y+this._overlayRect.height),"px"):i.top=(0,_.a1)(r.y),i}_getExactOverlayX(e,o,t){let a,i={left:"",right:""},r=this._getOverlayPoint(o,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,t)),a=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===a?i.right="".concat(this._document.documentElement.clientWidth-(r.x+this._overlayRect.width),"px"):i.left=(0,_.a1)(r.x),i}_getScrollVisibility(){const e=this._getOriginRect(),o=this._pane.getBoundingClientRect(),t=this._scrollables.map(i=>i.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:gt(e,t),isOriginOutsideView:J(e,t),isOverlayClipped:gt(o,t),isOverlayOutsideView:J(o,t)}}_subtractOverflows(e,...o){return o.reduce((t,i)=>t-Math.max(i,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,o=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+e-this._viewportMargin,bottom:t.top+o-this._viewportMargin,width:e-2*this._viewportMargin,height:o-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,o){return"x"===o?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&(0,_.FG)(e).forEach(o=>{""!==o&&-1===this._appliedPanelClasses.indexOf(o)&&(this._appliedPanelClasses.push(o),this._pane.classList.add(o))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof n.aKT)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const o=e.width||0,t=e.height||0;return{top:e.y,bottom:e.y+t,left:e.x,right:e.x+o,height:t,width:o}}}function M(s,e){for(let o in e)e.hasOwnProperty(o)&&(s[o]=e[o]);return s}function St(s){if("number"!=typeof s&&null!=s){const[e,o]=s.split(Se);return o&&"px"!==o?null:parseFloat(e)}return s||null}function kt(s){return{top:Math.floor(s.top),right:Math.floor(s.right),bottom:Math.floor(s.bottom),left:Math.floor(s.left),width:Math.floor(s.width),height:Math.floor(s.height)}}const Rt="cdk-global-overlay-wrapper";class Oe{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){const o=e.getConfig();this._overlayRef=e,this._width&&!o.width&&e.updateSize({width:this._width}),this._height&&!o.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(Rt),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,o=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:i,height:r,maxWidth:a,maxHeight:l}=t,c=!("100%"!==i&&"100vw"!==i||a&&"100%"!==a&&"100vw"!==a),h=!("100%"!==r&&"100vh"!==r||l&&"100%"!==l&&"100vh"!==l),u=this._xPosition,f=this._xOffset,p="rtl"===this._overlayRef.getConfig().direction;let g="",v="",w="";c?w="flex-start":"center"===u?(w="center",p?v=f:g=f):p?"left"===u||"end"===u?(w="flex-end",g=f):("right"===u||"start"===u)&&(w="flex-start",v=f):"left"===u||"start"===u?(w="flex-start",g=f):("right"===u||"end"===u)&&(w="flex-end",v=f),e.position=this._cssPosition,e.marginLeft=c?"0":g,e.marginTop=h?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=c?"0":v,o.justifyContent=w,o.alignItems=h?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,o=this._overlayRef.hostElement,t=o.style;o.classList.remove(Rt),t.justifyContent=t.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let Ee=(()=>{var s;class e{constructor(t,i,r,a){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=a}global(){return new Oe}flexibleConnectedTo(t){return new ke(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return(s=e).\u0275fac=function(t){return new(t||s)(n.KVO(ft),n.KVO(m.qQ),n.KVO(b.OD),n.KVO(Ct))},s.\u0275prov=n.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),e})(),Me=0,I=(()=>{var s;class e{constructor(t,i,r,a,l,c,h,u,f,p,g,v){this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=a,this._keyboardDispatcher=l,this._injector=c,this._ngZone=h,this._document=u,this._directionality=f,this._location=p,this._outsideClickDispatcher=g,this._animationsModuleType=v}create(t){const i=this._createHostElement(),r=this._createPaneElement(i),a=this._createPortalOutlet(r),l=new vt(t);return l.direction=l.direction||this._directionality.value,new we(a,i,r,l,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType,this._injector.get(n.uvJ))}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id="cdk-overlay-".concat(Me++),i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(n.o8S)),new ee(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return(s=e).\u0275fac=function(t){return new(t||s)(n.KVO(ve),n.KVO(Ct),n.KVO(n.OM3),n.KVO(Ee),n.KVO(be),n.KVO(n.zZn),n.KVO(n.SKi),n.KVO(m.qQ),n.KVO(B.dS),n.KVO(m.aZ),n.KVO(Ce),n.KVO(n.bc$,8))},s.\u0275prov=n.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),e})();const Pe={provide:new n.nKC("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const s=(0,n.WQX)(I);return()=>s.scrollStrategies.reposition()}}),deps:[I],useFactory:function xe(s){return()=>s.scrollStrategies.reposition()}};let Te=(()=>{var s;class e{}return(s=e).\u0275fac=function(t){return new(t||s)},s.\u0275mod=n.$C({type:s}),s.\u0275inj=n.G2t({providers:[I,Pe],imports:[B.jI,ie,pt,pt]}),e})();const Ae=["mat-menu-item",""],Ie=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Fe=["mat-icon, [matMenuItemIcon]","*"];function Be(s,e){1&s&&(n.qSk(),n.j41(0,"svg",2),n.nrm(1,"polygon",3),n.k0s())}const Ve=["*"];function Le(s,e){if(1&s){const o=n.RV6();n.j41(0,"div",0),n.bIt("keydown",function(i){n.eBV(o);const r=n.XpG();return n.Njj(r._handleKeydown(i))})("click",function(){n.eBV(o);const i=n.XpG();return n.Njj(i.closed.emit("click"))})("@transformMenu.start",function(i){n.eBV(o);const r=n.XpG();return n.Njj(r._onAnimationStart(i))})("@transformMenu.done",function(i){n.eBV(o);const r=n.XpG();return n.Njj(r._onAnimationDone(i))}),n.j41(1,"div",1),n.SdG(2),n.k0s()()}if(2&s){const o=n.XpG();n.HbH(o._classList),n.Y8G("id",o.panelId)("@transformMenu",o._panelAnimationState),n.BMQ("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null)("aria-describedby",o.ariaDescribedby||null)}}const q=new n.nKC("MAT_MENU_PANEL");let Y=(()=>{var s;class e{constructor(t,i,r,a,l){var c;this._elementRef=t,this._document=i,this._focusMonitor=r,this._parentMenu=a,this._changeDetectorRef=l,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new C.B,this._focused=new C.B,this._highlighted=!1,this._triggersSubmenu=!1,null==a||null===(c=a.addItem)||void 0===c||c.call(a,this)}focus(t,i){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t;const i=this._elementRef.nativeElement.cloneNode(!0),r=i.querySelectorAll("mat-icon, .material-icons");for(let a=0;a<r.length;a++)r[a].remove();return(null===(t=i.textContent)||void 0===t?void 0:t.trim())||""}_setHighlighted(t){var i;this._highlighted=t,null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}_setTriggersSubmenu(t){var i;this._triggersSubmenu=t,null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return(s=e).\u0275fac=function(t){return new(t||s)(n.rXU(n.aKT),n.rXU(m.qQ),n.rXU(F.FN),n.rXU(q,8),n.rXU(n.gRc))},s.\u0275cmp=n.VBU({type:s,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator"],hostVars:8,hostBindings:function(t,i){1&t&&n.bIt("click",function(a){return i._checkDisabled(a)})("mouseenter",function(){return i._handleMouseEnter()}),2&t&&(n.BMQ("role",i.role)("tabindex",i._getTabIndex())("aria-disabled",i.disabled)("disabled",i.disabled||null),n.AVh("mat-mdc-menu-item-highlighted",i._highlighted)("mat-mdc-menu-item-submenu-trigger",i._triggersSubmenu))},inputs:{role:"role",disabled:[2,"disabled","disabled",n.L39],disableRipple:[2,"disableRipple","disableRipple",n.L39]},exportAs:["matMenuItem"],standalone:!0,features:[n.GFd,n.aNF],attrs:Ae,ngContentSelectors:Fe,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(t,i){1&t&&(n.NAR(Ie),n.SdG(0),n.j41(1,"span",0),n.SdG(2,1),n.k0s(),n.nrm(3,"div",1),n.DNE(4,Be,2,0,":svg:svg",2)),2&t&&(n.R7$(3),n.Y8G("matRippleDisabled",i.disableRipple||i.disabled)("matRippleTrigger",i._getHostElement()),n.R7$(),n.vxM(i._triggersSubmenu?4:-1))},dependencies:[E.r6],encapsulation:2,changeDetection:0}),e})();const Ne=new n.nKC("MatMenuContent"),U={transformMenu:(0,y.hZ)("transformMenu",[(0,y.wk)("void",(0,y.iF)({opacity:0,transform:"scale(0.8)"})),(0,y.kY)("void => enter",(0,y.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,y.iF)({opacity:1,transform:"scale(1)"}))),(0,y.kY)("* => void",(0,y.i0)("100ms 25ms linear",(0,y.iF)({opacity:0})))]),fadeInItems:(0,y.hZ)("fadeInItems",[(0,y.wk)("showing",(0,y.iF)({opacity:1})),(0,y.kY)("void => *",[(0,y.iF)({opacity:0}),(0,y.i0)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let je=0;const ze=new n.nKC("mat-menu-default-options",{providedIn:"root",factory:function He(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let L=(()=>{var s;class e{get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}set panelClass(t){const i=this._previousPanelClass,r={...this._classList};i&&i.length&&i.split(" ").forEach(a=>{r[a]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(a=>{r[a]=!0}),this._elementRef.nativeElement.className=""),this._classList=r}get classList(){return this.panelClass}set classList(t){this.panelClass=t}constructor(t,i,r,a){this._elementRef=t,this._changeDetectorRef=a,this._elevationPrefix="mat-elevation-z",this._baseElevation=null,this._directDescendantItems=new n.rOR,this._classList={},this._panelAnimationState="void",this._animationDone=new C.B,this.closed=new n.bkB,this.close=this.closed,this.panelId="mat-menu-panel-".concat(je++),this._injector=(0,n.WQX)(n.zZn),this.overlayPanelClass=r.overlayPanelClass||"",this._xPosition=r.xPosition,this._yPosition=r.yPosition,this.backdropClass=r.backdropClass,this.overlapTrigger=r.overlapTrigger,this.hasBackdrop=r.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new F.Bu(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,$.Z)(this._directDescendantItems),(0,nt.n)(t=>(0,R.h)(...t.map(i=>i._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t)),this._directDescendantItems.changes.subscribe(t=>{var i;const r=this._keyManager;if("enter"===this._panelAnimationState&&null!==(i=r.activeItem)&&void 0!==i&&i._hasFocus()){const a=t.toArray(),l=Math.max(0,Math.min(a.length-1,r.activeItemIndex||0));a[l]&&!a[l].disabled?r.setActiveItem(l):r.setNextItemActive()}})}ngOnDestroy(){var t,i;null===(t=this._keyManager)||void 0===t||t.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),null===(i=this._firstItemFocusRef)||void 0===i||i.destroy()}_hovered(){return this._directDescendantItems.changes.pipe((0,$.Z)(this._directDescendantItems),(0,nt.n)(i=>(0,R.h)(...i.map(r=>r._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const i=t.keyCode,r=this._keyManager;switch(i){case k._f:(0,k.rp)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case k.UQ:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case k.LE:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(i===k.i7||i===k.n6)&&r.setFocusOrigin("keyboard"),void r.onKeydown(t)}t.stopPropagation()}focusFirstItem(t="program"){var i;null===(i=this._firstItemFocusRef)||void 0===i||i.destroy(),this._firstItemFocusRef=(0,n.mal)(()=>{let r=null;if(this._directDescendantItems.length&&(r=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!r||!r.contains(document.activeElement)){const a=this._keyManager;a.setFocusOrigin(t).setFirstItemActive(),!a.activeItem&&r&&r.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){if(null===this._baseElevation){const l="function"==typeof getComputedStyle?getComputedStyle(this._elementRef.nativeElement):null,c=(null==l?void 0:l.getPropertyValue("--mat-menu-base-elevation-level"))||"8";this._baseElevation=parseInt(c)}const i=Math.min(this._baseElevation+t,24),r="".concat(this._elevationPrefix).concat(i),a=Object.keys(this._classList).find(l=>l.startsWith(this._elevationPrefix));if(!a||a===this._previousElevation){const l={...this._classList};this._previousElevation&&(l[this._previousElevation]=!1),l[r]=!0,this._previousElevation=r,this._classList=l}}setPositionClasses(t=this.xPosition,i=this.yPosition){var r;this._classList={...this._classList,"mat-menu-before":"before"===t,"mat-menu-after":"after"===t,"mat-menu-above":"above"===i,"mat-menu-below":"below"===i},null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,$.Z)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return(s=e).\u0275fac=function(t){return new(t||s)(n.rXU(n.aKT),n.rXU(n.SKi),n.rXU(ze),n.rXU(n.gRc))},s.\u0275cmp=n.VBU({type:s,selectors:[["mat-menu"]],contentQueries:function(t,i,r){if(1&t&&(n.wni(r,Ne,5),n.wni(r,Y,5),n.wni(r,Y,4)),2&t){let a;n.mGM(a=n.lsd())&&(i.lazyContent=a.first),n.mGM(a=n.lsd())&&(i._allItems=a),n.mGM(a=n.lsd())&&(i.items=a)}},viewQuery:function(t,i){if(1&t&&n.GBs(n.C4Q,5),2&t){let r;n.mGM(r=n.lsd())&&(i.templateRef=r.first)}},hostVars:3,hostBindings:function(t,i){2&t&&n.BMQ("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",n.L39],hasBackdrop:[2,"hasBackdrop","hasBackdrop",o=>null==o?null:(0,n.L39)(o)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[n.Jv_([{provide:q,useExisting:s}]),n.GFd,n.aNF],ngContentSelectors:Ve,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(t,i){1&t&&(n.NAR(),n.DNE(0,Le,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.mat-mdc-menu-panel.ng-animating:has(.mat-mdc-menu-content:empty){display:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color);margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}[dir=rtl] .mat-mdc-menu-item{padding-right:var(--mat-menu-item-leading-spacing);padding-left:var(--mat-menu-item-trailing-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-right:var(--mat-menu-item-with-icon-leading-spacing);padding-left:var(--mat-menu-item-with-icon-trailing-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[U.transformMenu,U.fadeInItems]},changeDetection:0}),e})();const Ot=new n.nKC("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const s=(0,n.WQX)(I);return()=>s.scrollStrategies.reposition()}}),Ye={provide:Ot,deps:[I],useFactory:function Xe(s){return()=>s.scrollStrategies.reposition()}},Et=(0,b.BQ)({passive:!0});let Ue=(()=>{var s;class e{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){var i;t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(r=>{this._destroyMenu(r),("click"===r||"tab"===r)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(r)})),null===(i=this._menuItemInstance)||void 0===i||i._setTriggersSubmenu(this.triggersSubmenu()))}constructor(t,i,r,a,l,c,h,u,f){this._overlay=t,this._element=i,this._viewContainerRef=r,this._menuItemInstance=c,this._dir=h,this._focusMonitor=u,this._ngZone=f,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=T.yU.EMPTY,this._hoverSubscription=T.yU.EMPTY,this._menuCloseSubscription=T.yU.EMPTY,this._changeDetectorRef=(0,n.WQX)(n.gRc),this._handleTouchStart=p=>{(0,F.w6)(p)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new n.bkB,this.onMenuOpen=this.menuOpened,this.menuClosed=new n.bkB,this.onMenuClose=this.menuClosed,this._scrollStrategy=a,this._parentMaterialMenu=l instanceof L?l:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,Et)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Et),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const t=this.menu;if(this._menuOpen||!t)return;const i=this._createOverlay(t),r=i.getConfig(),a=r.positionStrategy;this._setPosition(t,a),r.hasBackdrop=null==t.hasBackdrop?!this.triggersSubmenu():t.hasBackdrop,i.attach(this._getPortal(t)),t.lazyContent&&t.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(t),t instanceof L&&(t._startAnimation(),t._directDescendantItems.changes.pipe((0,H.Q)(t.close)).subscribe(()=>{a.withLockedPosition(!1).reapplyLastPosition(),a.withLockedPosition(!0)}))}closeMenu(){var t;null===(t=this.menu)||void 0===t||t.close.emit()}focus(t,i){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,i):this._element.nativeElement.focus(i)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;var r;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===t||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof L?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe((0,A.p)(a=>"void"===a.toState),(0,X.s)(1),(0,H.Q)(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null==i||null===(r=i.lazyContent)||void 0===r||r.detach())}_initMenu(t){t.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,t.direction=this.dir,this._setMenuElevation(t),t.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(t){if(t.setElevation){let i=0,r=t.parentMenu;for(;r;)i++,r=r.parentMenu;t.setElevation(i)}}_setIsMenuOpen(t){t!==this._menuOpen&&(this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(t),this._changeDetectorRef.markForCheck())}_createOverlay(t){if(!this._overlayRef){const i=this._getOverlayConfig(t);this._subscribeToPositions(t,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(t){return new vt({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:t.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:t.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t,i){t.setPositionClasses&&i.positionChanges.subscribe(r=>{const a="start"===r.connectionPair.overlayX?"after":"before",l="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>t.setPositionClasses(a,l)):t.setPositionClasses(a,l)})}_setPosition(t,i){let[r,a]="before"===t.xPosition?["end","start"]:["start","end"],[l,c]="above"===t.yPosition?["bottom","top"]:["top","bottom"],[h,u]=[l,c],[f,p]=[r,a],g=0;if(this.triggersSubmenu()){if(p=r="before"===t.xPosition?"start":"end",a=f="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const v=this._parentMaterialMenu.items.first;this._parentInnerPadding=v?v._getHostElement().offsetTop:0}g="bottom"===l?this._parentInnerPadding:-this._parentInnerPadding}}else t.overlapTrigger||(h="top"===l?"bottom":"top",u="top"===c?"bottom":"top");i.withPositions([{originX:r,originY:h,overlayX:f,overlayY:l,offsetY:g},{originX:a,originY:h,overlayX:p,overlayY:l,offsetY:g},{originX:r,originY:u,overlayX:f,overlayY:c,offsetY:-g},{originX:a,originY:u,overlayX:p,overlayY:c,offsetY:-g}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),i=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,P.of)(),a=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,A.p)(l=>l!==this._menuItemInstance),(0,A.p)(()=>this._menuOpen)):(0,P.of)();return(0,R.h)(t,r,a,i)}_handleMousedown(t){(0,F._G)(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const i=t.keyCode;(i===k.Fm||i===k.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===k.LE&&"ltr"===this.dir||i===k.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,A.p)(t=>t===this._menuItemInstance&&!t.disabled),ct(0,G.$)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof L&&this.menu._isAnimating?this.menu._animationDone.pipe((0,X.s)(1),ct(0,G.$),(0,H.Q)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(t){return(!this._portal||this._portal.templateRef!==t.templateRef)&&(this._portal=new ht(t.templateRef,this._viewContainerRef)),this._portal}}return(s=e).\u0275fac=function(t){return new(t||s)(n.rXU(I),n.rXU(n.aKT),n.rXU(n.c1b),n.rXU(Ot),n.rXU(q,8),n.rXU(Y,10),n.rXU(B.dS,8),n.rXU(F.FN),n.rXU(n.SKi))},s.\u0275dir=n.FsC({type:s,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(t,i){1&t&&n.bIt("click",function(a){return i._handleClick(a)})("mousedown",function(a){return i._handleMousedown(a)})("keydown",function(a){return i._handleKeydown(a)}),2&t&&n.BMQ("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0}),e})(),Ke=(()=>{var s;class e{}return(s=e).\u0275fac=function(t){return new(t||s)},s.\u0275mod=n.$C({type:s}),s.\u0275inj=n.G2t({providers:[Ye],imports:[m.MD,E.pZ,E.yE,Te,Q,E.yE]}),e})(),We=(()=>{var s;class e{transform(t,i){return null==t?void 0:t.filter(i)}}return(s=e).\u0275fac=function(t){return new(t||s)},s.\u0275pipe=n.EJ8({name:"impureFilter",type:s,pure:!1}),e})();const Ge=(s,e)=>["toolbar-icon","icon","toolbar-icon-pdf",s,e],$e=(s,e)=>["toolbar-icon","icon",s,e];function Ze(s,e){if(1&s&&n.nrm(0,"span",11),2&s){const o=n.XpG(2).$implicit;n.Y8G("storefrontTranslate",null==o?null:o.content)}}function Qe(s,e){if(1&s&&n.nrm(0,"img",12),2&s){const o=n.XpG(2).$implicit;n.Y8G("src",o?o.isActive?o.activeIconUrl:o.iconUrl:"",n.B4B)}}function Je(s,e){1&s&&n.nrm(0,"span",11),2&s&&n.Y8G("storefrontTranslate","DOWNLOAD_PDF_FULL")}function qe(s,e){if(1&s&&(n.j41(0,"a",9)(1,"div",10),n.nrm(2,"span",11),n.k0s()()),2&s){const o=e.$implicit,t=e.$index,i=n.XpG(4);n.BMQ("href",o,n.B4B),n.R7$(2),n.Y8G("storefrontTranslate",i.getDownloadTranslationKey(t))}}function ti(s,e){if(1&s&&(n.j41(0,"a",5)(1,"div",6),n.DNE(2,Ze,1,1,"span",7)(3,Qe,1,1,"img",8),n.k0s()(),n.j41(4,"mat-menu",null,0)(6,"a",9)(7,"div",10),n.DNE(8,Je,1,1,"span",7),n.k0s()(),n.Z7z(9,qe,3,2,"a",9,n.Vm6),n.k0s()),2&s){const o=n.sdS(5),t=n.XpG().$implicit,i=n.XpG(2);n.Y8G("matMenuTriggerFor",o),n.R7$(),n.Y8G("ngClass",t?n.l_i(6,Ge,"toolbar-icon-"+t.type,t.isActive?"is-active":"").join(" "):""),n.R7$(),n.Y8G("ngIf",null==t?null:t.content),n.R7$(),n.Y8G("ngIf",t&&t.activeIconUrl),n.R7$(3),n.BMQ("href",null==t?null:t.href,n.B4B),n.R7$(2),n.Y8G("ngIf",null==t?null:t.content),n.R7$(),n.Dyx(i.downloadService.getSingleDownloadLink())}}function ei(s,e){if(1&s&&n.nrm(0,"span",11),2&s){const o=n.XpG(2).$implicit;n.Y8G("storefrontTranslate",null==o?null:o.content)}}function ii(s,e){if(1&s&&n.nrm(0,"img",14),2&s){const o=n.XpG(2).$implicit;n.Y8G("src",o?o.isActive?o.activeIconUrl:o.iconUrl:"",n.B4B)}}function oi(s,e){if(1&s&&(n.j41(0,"a")(1,"div",6),n.DNE(2,ei,1,1,"span",7)(3,ii,1,1,"img",13),n.k0s()()),2&s){const o=n.XpG().$implicit;n.BMQ("href",null==o?null:o.href,n.B4B),n.R7$(),n.Y8G("ngClass",o?n.l_i(4,$e,"toolbar-icon-"+o.type,o.isActive?"is-active":"").join(" "):""),n.R7$(),n.Y8G("ngIf",null==o?null:o.content),n.R7$(),n.Y8G("ngIf",o&&o.activeIconUrl)}}function ni(s,e){if(1&s){const o=n.RV6();n.j41(0,"div",4),n.bIt("click",function(){const i=n.eBV(o).$implicit,r=n.XpG(2);return n.Njj(r.onClick(i))}),n.DNE(1,ti,11,9)(2,oi,4,7,"a"),n.k0s()}if(2&s){const o=e.$implicit;n.R7$(),n.vxM("pdf_dropdown"===o.type?1:2)}}function ri(s,e){if(1&s&&(n.j41(0,"mat-toolbar"),n.DNE(1,ni,3,1,"div",3),n.nI1(2,"impureFilter"),n.k0s()),2&s){const o=n.XpG();n.R7$(),n.Y8G("ngForOf",n.i5U(2,2,o.actions,o.notNullfilter))("ngForTrackBy",o.trackToolbarAction)}}function si(s,e){if(1&s){const o=n.RV6();n.j41(0,"storefront-toc",15),n.bIt("toggleToc",function(){n.eBV(o);const i=n.XpG();return n.Njj(i.tocAction())}),n.k0s()}}let ai=(()=>{var s;class e extends At.${constructor(t,i,r,a,l,c,h,u,f,p,g,v,w,N){super(l,t,i,r,N),this.elementRef=t,this.contextService=i,this.document=r,this.changeDetectorRef=a,this.injector=l,this.dialog=c,this.store=h,this.destroyRef=u,this.route=f,this.ttsService=p,this.router=g,this.purpleService=v,this.downloadService=w,this.globalService=N,this.tocOpened=!1,this.bookmarkLoading=!1,this.ttsAvailable=!1}ngOnInit(){var t=this;this.createActions(),(0,R.h)(this.route.queryParamMap,this.contextService.viewContext$,(0,P.of)(void 0)).pipe((0,xt.c)(500,void 0,{leading:!1,trailing:!0}),(0,x.pQ)(this.destroyRef)).subscribe((0,D.A)(function*(){yield t.updateAffectedContent(),t.loadBookmark()}))}updateAffectedContent(){var t=this;return(0,D.A)(function*(){const i=t.contextService.getCurrentViewContext();let a,r=i.content;if(!r){var l,c,h,u;const f=null===(l=i.pathParams)||void 0===l?void 0:l.bundleSlug,p=null!==(c=null===(h=i.pathParams)||void 0===h?void 0:h.postSlug)&&void 0!==c?c:null===(u=i.pathParams)||void 0===u?void 0:u.contentSlug;p&&(r=(yield t.purpleService.getCatalogContents({first:1,contentFilter:{AND:[{contentType:{value:S.CatalogContentType.POST}},{properties:{key:"slug",value:p}}]}})).nodes[0]),f&&(a=(yield t.purpleService.getCatalogContents({first:1,contentFilter:{AND:[{contentType:{value:S.CatalogContentType.BUNDLE}},{properties:{key:"slug",value:f}}]}})).nodes[0])}if(!r)return t.bundle=void 0,void(t.post=void 0);r.contentType===S.CatalogContentType.BUNDLE&&(a=r,r=i.post),t.bundle=a,t.post=r})()}onConfigChanges(){}ngOnDestroy(){super.ngOnDestroy(),this.store.unsubscribe("bookmark"),this.subscription&&this.subscription.unsubscribe(),this.contextService.dataCollectionSubject.next(null)}onClick(t){switch(t.type){case"bookmark":this.bookmarkAction();break;case"toc":this.tocAction();break;case"close":this.closeAction();break;case"tts":this.ttsAction();break;case"back":this.backAction();break;case"menu":this.menuAction()}}closeAction(){var t;let i;const r=this.router.getCurrentNavigation();null!=r&&null!==(t=r.extras)&&void 0!==t&&t.queryParams&&(i={...r.extras.queryParams});const a=this.contextService.getIsCustomerDomainUsed()?"/":this.contextService.getBrand();return this.router.navigate([a],{queryParams:i,queryParamsHandling:"merge",replaceUrl:!0})}ttsAction(){this.ttsService.ttsPlayer.toggleOpenPlayer()}backAction(){this.store.dispatch((0,K.k4)({url:window.location.href,key:"APP_BAR_BACK_CLICKED"})),window.history.back()}menuAction(){this.store.dispatch((0,K.k4)({url:window.location.href,key:"APP_BAR_MENU_CLICKED"})),this.purpleService.openActionUrl("purple://app/menu/open")}bookmarkAction(){var t=this;return(0,D.A)(function*(){if(!t.bookmarkLoading){if(t.bookmarkLoading=!0,t.bookmark){t.baseConfig.bookmark&&t.baseConfig.bookmark.deleteConfirm&&(yield t.dialog.confirm(t.bookmark.title?{text:"BOOKMARK_DELETE_MESSAGE_WITH_TITLE",args:[t.bookmark.title]}:"BOOKMARK_DELETE_MESSAGE","BOOKMARK_DELETE_TITLE","BOOKMARK_DELETE_CONFIRM","BOOKMARK_DELETE_CANCEL")),t.handleTrackAction("BOOKMARK_DELETE_CLICKED",t.bookmark);try{yield t.purpleService.deleteBookmark({id:t.bookmark.id}),t.handleTrackAction("BOOKMARK_DELETED",t.bookmark)}catch(i){t.dialog.alert(t.bookmark.title?{text:"ERROR_DELETE_BOOKMARK_WITH_TITLE",args:(0,W._3)((0,W.E2)(i,t.contextService),t.bookmark)}:{text:"ERROR_DELETE_BOOKMARK",args:[(0,W.E2)(i,t.contextService)]},"DIALOG_ERROR"),t.handleTrackAction("BOOKMARK_DELETE_FAILED",t.bookmark)}}else{if(t.handleTrackAction("BOOKMARK_ADD_CLICKED",t.bookmark),yield t.updateAffectedContent(),!t.post)return console.error("no post found"),void(t.bookmarkLoading=!1);const i=t.post,r=t.bundle;let a={title:i.name,description:i.description,issueId:i.id,customData:{contentType:r?r.contentType:i.contentType,bundleId:r?r.id:void 0}};i.thumbnails&&i.thumbnails.default&&"false"!==i.thumbnails.default?a.thumbnailURL=i.thumbnails.default:r&&r.thumbnails&&r.thumbnails.default&&"false"!==r.thumbnails.default&&(a.thumbnailURL=r.thumbnails.default),t.baseConfig.bookmark&&(a={...a,...t.baseConfig.bookmark});try{yield t.purpleService.createBookmark(a),t.handleTrackAction("BOOKMARK_ADDED",t.bookmark)}catch(l){t.handleTrackAction("BOOKMARK_ADD_FAILED",t.bookmark),t.dialog.alert({text:"ERROR_ADD_BOOKMARK",args:t.getErrorDialogArgs(l)},"DIALOG_ERROR")}}t.bookmarkLoading=!1}})()}tocAction(){this.tocOpened=!this.tocOpened}getIconForAction(t){return this.contextService.toResourceUrl(t)}getActionFromPath(t){return t.split("/").pop().split(".").shift()}createActions(){var t;if((null===(t=this.baseConfig.actions)||void 0===t?void 0:t.length)>0){this.actions=Array(this.baseConfig.actions.length).fill(null);for(var i=this.baseConfig.actions.length-1;i>=0;i--)-1==this.containAction(this.baseConfig.actions[i])&&this.addAction(this.baseConfig.actions[i],i)}}loadBookmark(){this.findActionFromConfig(O.f.bookmark)&&this.store.subscribe(this.purpleService.bookmarks.pipe((0,Pt.T)(t=>t.find(i=>{return this.post?i.issueId===this.post.id:i.issueId===(null===(r=this.bundle)||void 0===r?void 0:r.id);var r}))),t=>{this.bookmark=t,this.updateBookmarkIcon()},z.l,z.l,"bookmark")}handleTrackAction(t,i){const r="".concat(this.getTrackingBaseKey(),"_").concat(t);let a=i?(0,Tt.aM)(i):{};a={...a,...this.getTrackingParams()},this.store.dispatch((0,K.k4)({url:window.location.href,key:r,params:a}))}updateBookmarkIcon(){this.actions.find(i=>(null==i?void 0:i.type)===O.f.bookmark).isActive=!!this.bookmark}updateTtsIcon(){let t=this.actions.find(i=>(null==i?void 0:i.type)===O.f.tts);this.ttsService.ttsPlayer.state.isOpen.subscribe(i=>{t.isActive=i,this.changeDetectorRef.detectChanges()})}containAction(t){const i=this.actions.find(r=>(null==r?void 0:r.type)===t.type);return this.actions.indexOf(i)}addAction(t,i){switch(t.type){case O.f.toc:this.contextService.dataCollectionSubject.pipe((0,x.pQ)(this.destroyRef)).subscribe(r=>{const a=this.containAction(t);!r&&a>-1?this.actions.splice(a):(null==r?void 0:r.length)>1&&this.addToActions(t,i),this.changeDetectorRef.detectChanges()});break;case O.f.tts:this.ttsService.initTts$.subscribe(r=>{r&&(this.addToActions(t,i),this.updateTtsIcon())});break;case O.f.pdf:case O.f.pdf_dropdown:this.downloadService.initPdf.subscribe(r=>{r?(t={...t,href:r},this.addToActions(t,i)):this.removeAction(i),this.changeDetectorRef.detectChanges()});break;default:this.addToActions(t,i)}}getDownloadTranslationKey(t){return 2===this.downloadService.getSingleDownloadLink().length?0===t?"DOWNLOAD_PDF_SINGLE_LEFT":"DOWNLOAD_PDF_SINGLE_RIGHT":"DOWNLOAD_PDF_SINGLE"}findActionFromConfig(t){var i;return null===(i=this.baseConfig.actions)||void 0===i?void 0:i.find(r=>r.type===t)}trackToolbarAction(t,i){var r,a;return O.f[i.type]+"_"+(null!==(r=i.content)&&void 0!==r?r:null!==(a=i.href)&&void 0!==a?a:"")}notNullfilter(t){return!!t}addToActions(t,i){var r,a,l;this.actions[i]={...null===(r=this.baseConfig.actions)||void 0===r?void 0:r[i],isActive:!1},this.actions[i].href=t.href,this.actions[i].content=t.content;let c=t.iconUrl;null!==(a=c)&&void 0!==a&&a.startsWith("storefront/assets")&&(c=c.replace("storefront/","./"));let h=t.activeIconUrl;null!==(l=h)&&void 0!==l&&l.startsWith("storefront/assets")&&(h=h.replace("storefront/","./")),this.actions[i].iconUrl=this.getIconForAction(c),this.actions[i].activeIconUrl=this.getIconForAction(t.activeIconUrl?h:c)}removeAction(t){this.actions[t]=null}}return(s=e).\u0275fac=function(t){return new(t||s)(n.rXU(n.aKT),n.rXU(et.V),n.rXU(m.qQ),n.rXU(n.gRc),n.rXU(n.zZn),n.rXU(It.o),n.rXU(tt.B),n.rXU(n.abz),n.rXU(it.nX),n.rXU(Ft.z),n.rXU(it.Ix),n.rXU(Bt.Wj),n.rXU(Vt.s),n.rXU(Lt.d))},s.\u0275cmp=n.VBU({type:s,selectors:[["storefront-toolbar"]],features:[n.Jv_([tt.B]),n.Vt3],decls:2,vars:2,consts:[["menu","matMenu"],[4,"ngIf"],[3,"toggleToc",4,"ngIf"],[3,"click",4,"ngFor","ngForOf","ngForTrackBy"],[3,"click"],["mat-button","",3,"matMenuTriggerFor"],["mat-ripple","",3,"ngClass"],[3,"storefrontTranslate",4,"ngIf"],["alt","download-icon",3,"src",4,"ngIf"],["mat-menu-item",""],["mat-ripple",""],[3,"storefrontTranslate"],["alt","download-icon",3,"src"],["alt","toolbar-action-icon",3,"src",4,"ngIf"],["alt","toolbar-action-icon",3,"src"],[3,"toggleToc"]],template:function(t,i){1&t&&n.DNE(0,ri,3,5,"mat-toolbar",1)(1,si,1,0,"storefront-toc",2),2&t&&(n.Y8G("ngIf",i.baseConfig&&i.actions),n.R7$(),n.Y8G("ngIf",i.tocOpened))},dependencies:[m.YU,m.Sq,m.bT,Ht,Wt,ot.M,E.r6,L,Y,Ue,We],styles:["storefront-toolbar{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;transition:height .2s ease,transform .2s ease;background-color:var(--toolbarbackgroundColor);z-index:22}storefront-toolbar>mat-toolbar{width:100%;display:flex;max-width:640px;margin:0 auto;justify-content:center;padding:0 var(--gutter)!important}storefront-toolbar>mat-toolbar div{height:100%;padding:0 var(--gutter)!important;color:var(--navigationColor);flex-shrink:0;flex-grow:1;flex-basis:0;display:flex!important;align-items:center;justify-content:center}storefront-toolbar>mat-toolbar div span{padding-right:10px}storefront-toolbar>mat-toolbar div img{color:var(--toolbarIconColor);height:25px;width:25px}\n"],encapsulation:2}),e})();var Mt=d(6483);let li=(()=>{var s;class e{}return(s=e).\u0275fac=function(t){return new(t||s)},s.\u0275mod=n.$C({type:s}),s.\u0275inj=n.G2t({imports:[m.MD,Mt.h]}),e})();var ci=d(4767);let hi=(()=>{var s;class e{}return(s=e).\u0275fac=function(t){return new(t||s)},s.\u0275mod=n.$C({type:s}),s.\u0275inj=n.G2t({imports:[m.MD,Xt,li,Mt.h,ci.d,Ke]}),e})();const di=ai}}]);
|