1"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([[8866],{1803:(m,f,n)=>{n.d(f,{OE:()=>a,OK:()=>i,TS:()=>h,We:()=>o});var h=function(e){return e.VERTICAL="vertical",e.HORIZONTAL="horizontal",e.GRID="grid",e.GROUP="group",e.TABS="tabs",e}(h||{}),o=function(e){return e.BLANK="_blank",e.SELF="_self",e}(o||{}),i=function(e){return e.div="div",e.a="a",e.article="article",e.aside="aside",e.br="br",e.button="button",e.details="details",e.dialog="dialog",e.em="em",e.figcaption="figcaption",e.figure="figure",e.footer="footer",e.h1="h1",e.h2="h2",e.h3="h3",e.h4="h4",e.h5="h5",e.h6="h6",e.header="header",e.hr="hr",e.iframe="iframe",e.img="img",e.input="input",e.label="label",e.li="li",e.main="main",e.mark="mark",e.nav="nav",e.ol="ol",e.p="p",e.pre="pre",e.section="section",e.small="small",e.span="span",e.strong="strong",e.summary="summary",e.time="time",e.ul="ul",e}(i||{}),a=function(e){return e.div="div",e.a="a",e.article="article",e.aside="aside",e.button="button",e.details="details",e.dialog="dialog",e.figcaption="figcaption",e.figure="figure",e.footer="footer",e.h1="h1",e.h2="h2",e.h3="h3",e.h4="h4",e.h5="h5",e.h6="h6",e.header="header",e.li="li",e.label="label",e.main="main",e.mark="mark",e.nav="nav",e.ol="ol",e.p="p",e.section="section",e.span="span",e.summary="summary",e.time="time",e.ul="ul",e}(a||{})},8866:(m,f,n)=>{n.r(f),n.d(f,{ProductModule:()=>B,component:()=>S});var h=n(177),p=n(467),o=n(9379),i=n(3953),a=n(4404),e=n(1210);const A={fallback:{type:"html",tag:n(1803).OK.p,content:"ERROR_PRODUCT",variables:["$context.error"]}};var y=n(6010),R=n(1497),x=n(8179),b=n(8251),O=n(610),E=n(4648),D=n(2868);function I(c,l){}function N(c,l){if(1&c&&i.DNE(0,I,0,0,"ng-template",0),2&c){const r=i.XpG();i.Y8G("baseContext",r.childContext)("baseConfig",r.childConfig)}}let F=(()=>{var c;class l extends e.${constructor(){super(...arguments),this.store=(0,i.WQX)(b.B),this.purpleService=(0,i.WQX)(y.Wj),this.changeDetectorRef=(0,i.WQX)(i.gRc),this.defaultConfig=(0,o.A)({},A)}onConfigChanges(){var u=()=>super.onConfigChanges,t=this;return(0,p.A)(function*(){u().call(t);const C=t.config.productId||new URL(t.document.location.href).searchParams.get("productId");try{const s=yield t.purpleService.getProducts(C);if(t.config.localIssueFilter){const d=(0,x.n)(t.config.localIssueFilter);s.issues=s.issues.filter(v=>(0,E.tU)(d,v))}if(s.issues.length)t.issue=s.issues[0],t.childContext=(0,o.A)((0,o.A)({},t.context),{},{issue:t.issue}),t.childConfig=(0,o.A)({type:"issue"},t.config.issue);else if(s.subscriptions.length){const d=s.subscriptions[0],v=yield t.purpleService.getPrice(d.productId);t.subscription=R.r.toSubscriptionsWithPrice(d,v)[0],t.childContext=(0,o.A)((0,o.A)({},t.context),{},{subscription:t.subscription}),t.childConfig=(0,o.A)({type:"subscription"},t.config.subscription)}else{if(!s.publicationProducts.length)throw{code:a.ERROR_CODE.UNKNOWN_PRODUCT};t.publicationProduct=s.publicationProducts[0],t.childContext=(0,o.A)({},t.context),t.childConfig=(0,o.A)((0,o.A)({type:"publication-completion"},t.config.publicationCompletion),{},{productFilter:{productId:{value:C}}})}}catch(s){let d=s;null!=s&&s.code||(d=(0,o.A)((0,o.A)({},s),{},{code:a.ERROR_CODE.UNKNOWN})),t.store.dispatch((0,O.k4)({url:window.location.href,key:"".concat(t.getTrackingBaseKey(),"_LOAD_FAILED"),params:{error:d.code,productId:C}})),t.childConfig=(0,o.A)({},t.config.fallback),t.childContext=(0,o.A)((0,o.A)({},t.context),{},{error:d.code})}t.changeDetectorRef.markForCheck()})()}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),"fallback"]}}return(c=l).type="product",c.\u0275fac=(()=>{let r;return function(t){return(r||(r=i.xGo(c)))(t||c)}})(),c.\u0275cmp=i.VBU({type:c,selectors:[["storefront-product"]],standalone:!1,features:[i.Jv_([b.B]),i.Vt3],decls:1,vars:1,consts:[[3,"pxpDynamicComponent","baseContext","baseConfig"]],template:function(u,t){1&u&&i.DNE(0,N,1,2,null,0),2&u&&i.vxM(t.childConfig?0:-1)},dependencies:[D.q],encapsulation:2}),l})(),B=(()=>{var c;class l{}return(c=l).\u0275fac=function(u){return new(u||c)},c.\u0275mod=i.$C({type:c}),c.\u0275inj=i.G2t({imports:[h.MD]}),l})();const S=F}}]);
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.