1"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([[418],{418:(C,b,n)=>{n.r(b),n.d(b,{BookmarkModule:()=>Z,component:()=>z});var d=n(177),g=n(3),c=n(6953),k=n(1605),l=n(4403),p=n(467),m=n(9379),o=n(3953),A=n(362),D=n.n(A),R=n(8179),B=n(20),_=n(6010),M=n(8004),u=n(8251),U=n(610),f=n(8091),x=n(7879),O=n(1210),E=n(2932),G=n(4404),y=n(9745);const K={openContent:{type:y.H.OPEN_CONTENT,mode:G.DisplayMode.MODAL,titleBar:!0,fallback:{path:"issueDetails",type:y.H.POPUP,params:{issue:"$context.bookmark.issueId"}}},deleteConfirm:!0,bookmarkTitleMessage:"BOOKMARK_TITLE",creationDateMessage:"BOOKMARK_CREATION_DATE_MESSAGE",pageLabelMessage:"BOOKMARK_PAGE_LABEL_MESSAGE"};var I=n(1302),v=n(8909),S=n(2813);const T=r=>[r];function P(r,i){if(1&r&&o.nrm(0,"div",1),2&r){const t=o.XpG(2);o.Y8G("src",t.bookmark.thumbnailURL)("height",t.getImageHeight())("extendedThumbnail",null==t.issue||null==t.issue.thumbnailsExtended?null:t.issue.thumbnailsExtended.default)}}function j(r,i){if(1&r&&o.nrm(0,"storefront-image",2),2&r){const t=o.XpG(2);o.Y8G("src",t.bookmark.thumbnailURL)("height",t.getImageHeight())("extendedThumbnail",null==t.issue||null==t.issue.thumbnailsExtended?null:t.issue.thumbnailsExtended.default)}}function X(r,i){if(1&r&&o.nrm(0,"h3",4),2&r){const t=o.XpG(2);o.Y8G("storefrontTranslate",t.config.bookmarkTitleMessage)("storefrontTranslateArgs",o.eq3(2,T,t.bookmarkTitle))}}function N(r,i){if(1&r&&o.nrm(0,"div",6),2&r){const t=o.XpG(2);o.Y8G("storefrontTranslate",t.config.pageLabelMessage)("storefrontTranslateArgs",o.eq3(2,T,t.pageLabel))}}function H(r,i){if(1&r){const t=o.RV6();o.j41(0,"div",0),o.bIt("click",function(a){o.eBV(t);const s=o.XpG();return o.Njj(s.onClickBookmark(a))}),o.DNE(1,P,1,3,"div",1)(2,j,1,3,"storefront-image",2),o.k0s(),o.j41(3,"div",3),o.DNE(4,X,1,4,"h3",4),o.nrm(5,"div",5),o.nI1(6,"storefrontDate"),o.DNE(7,N,1,4,"div",6),o.j41(8,"div",7)(9,"i",8),o.bIt("click",function(a){o.eBV(t);const s=o.XpG();return o.Njj(s.onClickDelete(a))}),o.k0s()()()}if(2&r){const t=o.XpG();o.R7$(),o.vxM(t.domHelper.leanDom?1:2),o.R7$(3),o.vxM(t.bookmarkTitle?4:-1),o.R7$(),o.Y8G("storefrontTranslate",t.config.creationDateMessage)("storefrontTranslateArgs",o.eq3(7,T,o.bMT(6,5,t.bookmark.createdAt))),o.R7$(2),o.vxM(t.pageLabel?7:-1)}}let L=(()=>{var r;class i extends O.${constructor(){super(...arguments),this.store=(0,o.WQX)(u.B),this.dialog=(0,o.WQX)(B.o),this.eventActionService=(0,o.WQX)(M.G),this.purpleService=(0,o.WQX)(_.Wj),this.changeDetectorRef=(0,o.WQX)(o.gRc),this.defaultConfig=(0,m.A)({},K),this.openLoading=!1,this.deleteLoading=!1}get issueType(){return this.bookmark&&this.bookmark.issueType}get regularIssueType(){return this.domHelper.regularSelector(this.issueType)}get prefixedIssueType(){return this.domHelper.prefixedSelector(this.issueType)}get bookmarkTitle(){return this.bookmark.title?this.bookmark.title:this.issue.name}ngOnInit(){super.ngOnInit()}onConfigChanges(){var e=this;return(0,p.A)(function*(){var a;e.context.bookmark&&(e.bookmark=e.context.bookmark,e.pageLabel=e.bookmark.pageLabel,e.issue=(null===(a=e.bookmark.customData)||void 0===a||null===(a=a.contentType)||void 0===a?void 0:a.length)>0?yield e.purpleService.getCatalogContent(e.bookmark.contentId).catch(()=>null):yield e.purpleService.getIssue(e.bookmark.contentId).catch(()=>null),e.issue&&(e.bookmark.issue=e.issue),e.publication=yield e.purpleService.getPublication(e.issue.publicationId)),e.changeDetectorRef.markForCheck()})()}hasContextChanged(e){return!D()(e.bookmark,this.bookmark)||super.hasContextChanged(e)}onClickBookmark(e){var a=this;return(0,p.A)(function*(){if(a.config.openContent){e.stopPropagation(),a.changeDetectorRef.detectChanges(),a.purpleService.getDownloadHandler(a.issue).then(w=>a.handleTrackAction("OPEN_CLICKED",w));const s=(0,m.A)((0,m.A)({},(0,R.uQ)(a.config.openContent,a.context,a.contextService.$functions,a.globalService.getGlobalData())),{},{issueId:a.issue.id,pageIndex:a.bookmark.pageIndex});yield a.eventActionService.processEventAction(s,a),a.changeDetectorRef.detectChanges()}})()}onClickDelete(e){var a=this;return(0,p.A)(function*(){if(e.stopPropagation(),a.config.deleteConfirm)try{yield a.dialog.confirm(a.bookmark.title?{text:"BOOKMARK_DELETE_MESSAGE_WITH_TITLE",args:[a.bookmark.title]}:"BOOKMARK_DELETE_MESSAGE","BOOKMARK_DELETE_TITLE","BOOKMARK_DELETE_CONFIRM","BOOKMARK_DELETE_CANCEL"),yield a.deleteBookmark()}catch(s){}else yield a.deleteBookmark()})()}deleteBookmark(){var e=this;return(0,p.A)(function*(){if(!e.deleteLoading)try{e.deleteLoading=!0,e.changeDetectorRef.detectChanges(),e.purpleService.getDownloadHandler(e.issue).then(a=>e.handleTrackAction("DELETE_CLICKED",a)),yield e.purpleService.deleteBookmark({id:e.bookmark.id}),e.purpleService.getDownloadHandler(e.issue).then(a=>e.handleTrackAction("DELETED",a)),e.deleteLoading=!1,e.changeDetectorRef.detectChanges(),e.delete.emit(e.bookmark)}catch(a){console.log(a),e.deleteLoading=!1,e.changeDetectorRef.detectChanges(),e.dialog.alert(e.bookmark.title?{text:"ERROR_DELETE_BOOKMARK_WITH_TITLE",args:(0,f._3)((0,f.E2)(a,e.contextService),e.bookmark)}:{text:"ERROR_DELETE_BOOKMARK",args:[(0,f.E2)(a,e.contextService)]},"DIALOG_ERROR"),e.purpleService.getDownloadHandler(e.issue).then(s=>e.handleTrackAction("DELETE_FAILED",s))}})()}getImageHeight(){return E.q.FIXED}getTrackingBaseKey(e){return this.elementId||e&&"".concat(e.getContentType(),"_").concat(this.getType())||this.getType()}getTrackingParams(e){const a=(0,x.aM)(this.bookmark,this.issue,this.publication),s=e&&(0,x.Gw)(e.getContentType())?(0,x.VP)(e.content,e.publication,null,"SOURCE_"):{};return(0,m.A)((0,m.A)({},s),a)}handleTrackAction(e,a){this.store.dispatch((0,U.k4)({url:window.location.href,key:"".concat(this.getTrackingBaseKey(a),"_").concat(e),params:this.getTrackingParams(a)}))}}return(r=i).type="bookmark",r.\u0275fac=(()=>{let t;return function(a){return(t||(t=o.xGo(r)))(a||r)}})(),r.\u0275cmp=o.VBU({type:r,selectors:[["storefront-bookmark"]
1],hostVars:2,hostBindings:function(e,a){2&e&&o.BMQ("issue-type",a.regularIssueType)("data-pxp-issue-type",a.prefixedIssueType)},standalone:!1,features:[o.Jv_([u.B]),o.Vt3],decls:1,vars:1,consts:[[1,"bookmark-image",3,"click"],[1,"pxp-image",3,"src","height","extendedThumbnail"],[3,"src","height","extendedThumbnail"],[1,"bookmark-data"],[1,"bookmark-title",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"bookmark-creation-date",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"bookmark-page-label",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"bookmark-actions"],[1,"icon","icon-bookmark-active",3,"click"]],template:function(e,a){1&e&&o.DNE(0,H,10,9),2&e&&o.vxM(a.bookmark&&a.issue?0:-1)},dependencies:[E.h,I.x,v.M,S.Z],styles:["storefront-bookmark,.pxp-bookmark{display:flex;flex-direction:column;position:relative;background-color:var(--bookmarkBgColor)}storefront-bookmark .bookmark-image,.pxp-bookmark .bookmark-image{position:relative;background-color:var(--bookmarkImageBgColor)}storefront-bookmark .bookmark-image storefront-image,storefront-bookmark .bookmark-image .pxp-image,.pxp-bookmark .bookmark-image storefront-image,.pxp-bookmark .bookmark-image .pxp-image{width:100%}storefront-bookmark .bookmark-image storefront-spinner,storefront-bookmark .bookmark-image .pxp-spinner,.pxp-bookmark .bookmark-image storefront-spinner,.pxp-bookmark .bookmark-image .pxp-spinner{position:absolute;top:0;height:100%;width:100%;background-color:#0000001a}storefront-bookmark .bookmark-data,.pxp-bookmark .bookmark-data{display:flex;flex-direction:column;padding:var(--gutter) 0}storefront-bookmark .bookmark-data .bookmark-title,storefront-bookmark .bookmark-data .bookmark-creation-date,storefront-bookmark .bookmark-data .bookmark-page-label,.pxp-bookmark .bookmark-data .bookmark-title,.pxp-bookmark .bookmark-data .bookmark-creation-date,.pxp-bookmark .bookmark-data .bookmark-page-label{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;padding-right:calc(var(--gutter) * 2)}storefront-bookmark .bookmark-data .bookmark-actions,.pxp-bookmark .bookmark-data .bookmark-actions{position:absolute;right:0}storefront-bookmark .bookmark-data .bookmark-actions i,.pxp-bookmark .bookmark-data .bookmark-actions i{color:var(--primaryColor)}storefront-bookmark[issue-type=ISSUE] storefront-image,storefront-bookmark[issue-type=ISSUE] .pxp-image,storefront-bookmark[data-pxp-issue-type=ISSUE] storefront-image,storefront-bookmark[data-pxp-issue-type=ISSUE] .pxp-image,.pxp-bookmark[issue-type=ISSUE] storefront-image,.pxp-bookmark[issue-type=ISSUE] .pxp-image,.pxp-bookmark[data-pxp-issue-type=ISSUE] storefront-image,.pxp-bookmark[data-pxp-issue-type=ISSUE] .pxp-image{padding-top:75%;height:100%}storefront-bookmark[issue-type=ISSUE] storefront-image>img,storefront-bookmark[issue-type=ISSUE] .pxp-image>img,storefront-bookmark[data-pxp-issue-type=ISSUE] storefront-image>img,storefront-bookmark[data-pxp-issue-type=ISSUE] .pxp-image>img,.pxp-bookmark[issue-type=ISSUE] storefront-image>img,.pxp-bookmark[issue-type=ISSUE] .pxp-image>img,.pxp-bookmark[data-pxp-issue-type=ISSUE] storefront-image>img,.pxp-bookmark[data-pxp-issue-type=ISSUE] .pxp-image>img{object-fit:cover;width:100%}storefront-bookmark[issue-type=ISSUE] .bookmark-data .bookmark-title,storefront-bookmark[data-pxp-issue-type=ISSUE] .bookmark-data .bookmark-title,.pxp-bookmark[issue-type=ISSUE] .bookmark-data .bookmark-title,.pxp-bookmark[data-pxp-issue-type=ISSUE] .bookmark-data .bookmark-title{display:none}storefront-bookmark[issue-type=ARTICLE] storefront-image,storefront-bookmark[issue-type=ARTICLE] .pxp-image,storefront-bookmark[data-pxp-issue-type=ARTICLE] storefront-image,storefront-bookmark[data-pxp-issue-type=ARTICLE] .pxp-image,.pxp-bookmark[issue-type=ARTICLE] storefront-image,.pxp-bookmark[issue-type=ARTICLE] .pxp-image,.pxp-bookmark[data-pxp-issue-type=ARTICLE] storefront-image,.pxp-bookmark[data-pxp-issue-type=ARTICLE] .pxp-image{padding-top:75%;height:100%}storefront-bookmark[issue-type=ARTICLE] storefront-image>img,storefront-bookmark[issue-type=ARTICLE] .pxp-image>img,storefront-bookmark[data-pxp-issue-type=ARTICLE] storefront-image>img,storefront-bookmark[data-pxp-issue-type=ARTICLE] .pxp-image>img,.pxp-bookmark[issue-type=ARTICLE] storefront-image>img,.pxp-bookmark[issue-type=ARTICLE] .pxp-image>img,.pxp-bookmark[data-pxp-issue-type=ARTICLE] storefront-image>img,.pxp-bookmark[data-pxp-issue-type=ARTICLE] .pxp-image>img{object-fit:cover;width:100%}storefront-bookmark[issue-type=ARTICLE] .bookmark-data .bookmark-page-label,storefront-bookmark[data-pxp-issue-type=ARTICLE] .bookmark-data .bookmark-page-label,.pxp-bookmark[issue-type=ARTICLE] .bookmark-data .bookmark-page-label,.pxp-bookmark[data-pxp-issue-type=ARTICLE] .bookmark-data .bookmark-page-label{display:none}\n"],encapsulation:2,changeDetection:0}),i})();const V=["class","pxp-bookmark"],h=r=>[r];function W(r,i){if(1&r&&o.nrm(0,"div",1),2&r){const t=o.XpG(2);o.Y8G("src",t.bookmark.thumbnailURL)("height",t.getImageHeight())("extendedThumbnail",null==t.issue||null==t.issue.thumbnailsExtended?null:t.issue.thumbnailsExtended.default)}}function F(r,i){if(1&r&&o.nrm(0,"storefront-image",2),2&r){const t=o.XpG(2);o.Y8G("src",t.bookmark.thumbnailURL)("height",t.getImageHeight())("extendedThumbnail",null==t.issue||null==t.issue.thumbnailsExtended?null:t.issue.thumbnailsExtended.default)}}function Y(r,i){if(1&r&&o.nrm(0,"h3",4),2&r){const t=o.XpG(2);o.Y8G("storefrontTranslate",t.config.bookmarkTitleMessage)("storefrontTranslateArgs",o.eq3(2,h,t.bookmarkTitle))}}function Q(r,i){if(1&r&&o.nrm(0,"div",6),2&r){const t=o.XpG(2);o.Y8G("storefrontTranslate",t.config.pageLabelMessage)("storefrontTranslateArgs",o.eq3(2,h,t.pageLabel))}}function $(r,i){if(1&r){const t=o.RV6();o.j41(0,"div",0),o.bIt("click",function(a){o.eBV(t);const s=o.XpG();return o.Njj(s.onClickBookmark(a))}),o.DNE(1,W,1,3,"div",1)(2,F,1,3,"storefront-image",2),o.k0s(),o.j41(3,"div",3),o.DNE(4,Y,1,4,"h3",4),o.nrm(5,"div",5),o.nI1(6,"storefrontDate"),o.DNE(7,Q,1,4,"div",6),o.j41(8,"div",7)(9,"i",8),o.bIt("click",function(a){o.eBV(t);const s=o.XpG();return o.Njj(s.onClickDelete(a))}),o.k0s()()()}if(2&r){const t=o.XpG();o.R7$(),o.vxM(t.domHelper.leanDom?1:2),o.R7$(3),o.vxM(t.bookmarkTitle?4:-1),o.R7$(),o.Y8G("storefrontTranslate",t.config.creationDateMessage)("storefrontTranslateArgs",o.eq3(7,h,o.bMT(6,5,t.bookmark.createdAt))),o.R7$(2),o.vxM(t.pageLabel?7:-1)}}let J=(()=>{var r;class i extends L{}return(r=i).\u0275fac=(()=>{let t;return function(a){return(t||(t=o.xGo(r)))(a||r)}})(),r.\u0275cmp=o.VBU({type:r,selectors:[["div",8,"pxp-bookmark"]
1],standalone:!1,features:[o.Jv_([u.B]),o.Vt3],attrs:V,decls:1,vars:1,consts:[[1,"bookmark-image",3,"click"],[1,"pxp-image",3,"src","height","extendedThumbnail"],[3,"src","height","extendedThumbnail"],[1,"bookmark-data"],[1,"bookmark-title",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"bookmark-creation-date",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"bookmark-page-label",3,"storefrontTranslate","storefrontTranslateArgs"],[1,"bookmark-actions"],[1,"icon","icon-bookmark-active",3,"click"]],template:function(e,a){1&e&&o.DNE(0,$,10,9),2&e&&o.vxM(a.bookmark&&a.issue?0:-1)},dependencies:[E.h,I.x,v.M,S.Z],styles:["storefront-bookmark,.pxp-bookmark{display:flex;flex-direction:column;position:relative;background-color:var(--bookmarkBgColor)}storefront-bookmark .bookmark-image,.pxp-bookmark .bookmark-image{position:relative;background-color:var(--bookmarkImageBgColor)}storefront-bookmark .bookmark-image storefront-image,storefront-bookmark .bookmark-image .pxp-image,.pxp-bookmark .bookmark-image storefront-image,.pxp-bookmark .bookmark-image .pxp-image{width:100%}storefront-bookmark .bookmark-image storefront-spinner,storefront-bookmark .bookmark-image .pxp-spinner,.pxp-bookmark .bookmark-image storefront-spinner,.pxp-bookmark .bookmark-image .pxp-spinner{position:absolute;top:0;height:100%;width:100%;background-color:#0000001a}storefront-bookmark .bookmark-data,.pxp-bookmark .bookmark-data{display:flex;flex-direction:column;padding:var(--gutter) 0}storefront-bookmark .bookmark-data .bookmark-title,storefront-bookmark .bookmark-data .bookmark-creation-date,storefront-bookmark .bookmark-data .bookmark-page-label,.pxp-bookmark .bookmark-data .bookmark-title,.pxp-bookmark .bookmark-data .bookmark-creation-date,.pxp-bookmark .bookmark-data .bookmark-page-label{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;padding-right:calc(var(--gutter) * 2)}storefront-bookmark .bookmark-data .bookmark-actions,.pxp-bookmark .bookmark-data .bookmark-actions{position:absolute;right:0}storefront-bookmark .bookmark-data .bookmark-actions i,.pxp-bookmark .bookmark-data .bookmark-actions i{color:var(--primaryColor)}storefront-bookmark[issue-type=ISSUE] storefront-image,storefront-bookmark[issue-type=ISSUE] .pxp-image,storefront-bookmark[data-pxp-issue-type=ISSUE] storefront-image,storefront-bookmark[data-pxp-issue-type=ISSUE] .pxp-image,.pxp-bookmark[issue-type=ISSUE] storefront-image,.pxp-bookmark[issue-type=ISSUE] .pxp-image,.pxp-bookmark[data-pxp-issue-type=ISSUE] storefront-image,.pxp-bookmark[data-pxp-issue-type=ISSUE] .pxp-image{padding-top:75%;height:100%}storefront-bookmark[issue-type=ISSUE] storefront-image>img,storefront-bookmark[issue-type=ISSUE] .pxp-image>img,storefront-bookmark[data-pxp-issue-type=ISSUE] storefront-image>img,storefront-bookmark[data-pxp-issue-type=ISSUE] .pxp-image>img,.pxp-bookmark[issue-type=ISSUE] storefront-image>img,.pxp-bookmark[issue-type=ISSUE] .pxp-image>img,.pxp-bookmark[data-pxp-issue-type=ISSUE] storefront-image>img,.pxp-bookmark[data-pxp-issue-type=ISSUE] .pxp-image>img{object-fit:cover;width:100%}storefront-bookmark[issue-type=ISSUE] .bookmark-data .bookmark-title,storefront-bookmark[data-pxp-issue-type=ISSUE] .bookmark-data .bookmark-title,.pxp-bookmark[issue-type=ISSUE] .bookmark-data .bookmark-title,.pxp-bookmark[data-pxp-issue-type=ISSUE] .bookmark-data .bookmark-title{display:none}storefront-bookmark[issue-type=ARTICLE] storefront-image,storefront-bookmark[issue-type=ARTICLE] .pxp-image,storefront-bookmark[data-pxp-issue-type=ARTICLE] storefront-image,storefront-bookmark[data-pxp-issue-type=ARTICLE] .pxp-image,.pxp-bookmark[issue-type=ARTICLE] storefront-image,.pxp-bookmark[issue-type=ARTICLE] .pxp-image,.pxp-bookmark[data-pxp-issue-type=ARTICLE] storefront-image,.pxp-bookmark[data-pxp-issue-type=ARTICLE] .pxp-image{padding-top:75%;height:100%}storefront-bookmark[issue-type=ARTICLE] storefront-image>img,storefront-bookmark[issue-type=ARTICLE] .pxp-image>img,storefront-bookmark[data-pxp-issue-type=ARTICLE] storefront-image>img,storefront-bookmark[data-pxp-issue-type=ARTICLE] .pxp-image>img,.pxp-bookmark[issue-type=ARTICLE] storefront-image>img,.pxp-bookmark[issue-type=ARTICLE] .pxp-image>img,.pxp-bookmark[data-pxp-issue-type=ARTICLE] storefront-image>img,.pxp-bookmark[data-pxp-issue-type=ARTICLE] .pxp-image>img{object-fit:cover;width:100%}storefront-bookmark[issue-type=ARTICLE] .bookmark-data .bookmark-page-label,storefront-bookmark[data-pxp-issue-type=ARTICLE] .bookmark-data .bookmark-page-label,.pxp-bookmark[issue-type=ARTICLE] .bookmark-data .bookmark-page-label,.pxp-bookmark[data-pxp-issue-type=ARTICLE] .bookmark-data .bookmark-page-label{display:none}\n"],encapsulation:2,changeDetection:0}),i})(),Z=(()=>{var r;class i{}return(r=i).\u0275fac=function(e){return new(e||r)},r.\u0275mod=o.$C({type:r}),r.\u0275inj=o.G2t({imports:[d.MD,l.U,k.P,g.pZ,c.n]}),i})();const z={component:L,leanDomComponent:J}},6953:(C,b,n)=>{n.d(b,{n:()=>c});var d=n(177),g=n(3953);let c=(()=>{var k;class l{}return(k=l).\u0275fac=function(m){return new(m||k)},k.\u0275mod=g.$C({type:k}),k.\u0275inj=g.G2t({imports:[d.MD]}),l})()},2813:(C,b,n)=>{n.d(b,{Z:()=>c});var d=n(3178),g=n(3953);let c=(()=>{var k;class l{transform(m,o){return new Date(m).toLocaleDateString((0,d.JK)())}}return(k=l).\u0275fac=function(m){return new(m||k)},k.\u0275pipe=g.EJ8({name:"storefrontDate",type:k,pure:!0,standalone:!1}),l})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.