@pronto-tools-and-more/files 12.51.0 → 12.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_product_product_module_ts"],{1803:(R,v,n)=>{n.d(v,{OK:()=>g,T0:()=>b,TS:()=>A,We:()=>m,gb:()=>y,or:()=>d});var s=n(9379),A=function(t){return t.VERTICAL="vertical",t.HORIZONTAL="horizontal",t.GRID="grid",t.GROUP="group",t.TABS="tabs",t}(A||{}),m=function(t){return t.BLANK="_blank",t.SELF="_self",t}(m||{}),a=function(t){return t.article="article",t.aside="aside",t.details="details",t.figcaption="figcaption",t.figure="figure",t.footer="footer",t.header="header",t.main="main",t.mark="mark",t.nav="nav",t.section="section",t.summary="summary",t.time="time",t}(a||{}),d=function(t){return t.div="div",t.p="p",t}(d||{}),P=function(t){return t.a="a",t.br="br",t.button="button",t.em="em",t.h1="h1",t.h2="h2",t.h3="h3",t.h4="h4",t.h5="h5",t.h6="h6",t.hr="hr",t.iframe="iframe",t.img="img",t.input="input",t.li="li",t.pre="pre",t.small="small",t.span="span",t.ul="ul",t}(P||{});const g=(0,s.A)((0,s.A)((0,s.A)({},P),a),d),y=(0,s.A)((0,s.A)({},a),d),b=(0,s.A)((0,s.A)({},a),d)},8866:(R,v,n)=>{n.r(v),n.d(v,{ProductModule:()=>G,component:()=>K});var s=n(177),A=n(467),e=n(9379),m=n(4404),a=n(1210);const P={fallback:{type:"html",tag:n(1803).or.p,content:"ERROR_PRODUCT",variables:["$context.error"]}};var g=n(1497),y=n(8179),b=n(8251),t=n(610),x=n(4648),r=n(4438),E=n(9516),U=n(5102),I=n(1652),D=n(2868);function N(c,p){}function F(c,p){if(1&c&&r.DNE(0,N,0,0,"ng-template",1),2&c){const f=r.XpG();r.Y8G("baseContext",f.childContext)("baseConfig",f.childConfig)}}let X=(()=>{var c;class p extends a.${constructor(u,o,h,i,l,C,O){super(o,u,h,l,O),this.elementRef=u,this.injector=o,this.contextService=h,this.store=i,this.document=l,this.purpleService=C,this.globalService=O,this.defaultConfig=(0,e.A)({},P)}onConfigChanges(){var u=()=>super.onConfigChanges,o=this;return(0,A.A)(function*(){u().call(o);const h=o.config.productId||new URL(o.document.location.href).searchParams.get("productId");try{const i=yield o.purpleService.getProducts(h);if(o.config.localIssueFilter){const l=(0,y.n)(o.config.localIssueFilter);i.issues=i.issues.filter(C=>(0,x.tU)(l,C))}if(i.issues.length)o.issue=i.issues[0],o.childContext=(0,e.A)((0,e.A)({},o.context),{},{issue:o.issue}),o.childConfig=(0,e.A)({type:"issue"},o.config.issue);else if(i.subscriptions.length){const l=i.subscriptions[0],C=yield o.purpleService.getPrice(l.productId);o.subscription=g.r.toSubscriptionsWithPrice(l,C)[0],o.childContext=(0,e.A)((0,e.A)({},o.context),{},{subscription:o.subscription}),o.childConfig=(0,e.A)({type:"subscription"},o.config.subscription)}else{if(!i.publicationProducts.length)throw{code:m.ERROR_CODE.UNKNOWN_PRODUCT};o.publicationProduct=i.publicationProducts[0],o.childContext=(0,e.A)({},o.context),o.childConfig=(0,e.A)((0,e.A)({type:"publication-completion"},o.config.publicationCompletion),{},{productFilter:{productId:{value:h}}})}}catch(i){let l=i;null!=i&&i.code||(l=(0,e.A)((0,e.A)({},i),{},{code:m.ERROR_CODE.UNKNOWN})),o.store.dispatch((0,t.k4)({url:window.location.href,key:"".concat(o.getTrackingBaseKey(),"_LOAD_FAILED"),params:{error:l.code,productId:h}})),o.childConfig=(0,e.A)({},o.config.fallback),o.childContext=(0,e.A)((0,e.A)({},o.context),{},{error:l.code})}o.changeDetectorRef.markForCheck()})()}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),"fallback"]}}return(c=p).type="product",c.\u0275fac=function(u){return new(u||c)(r.rXU(r.aKT),r.rXU(r.zZn),r.rXU(E.V),r.rXU(b.B),r.rXU(s.qQ),r.rXU(U.Wj),r.rXU(I.d))},c.\u0275cmp=r.VBU({type:c,selectors:[["storefront-product"]],standalone:!1,features:[r.Jv_([b.B]),r.Vt3],decls:1,vars:1,consts:[[4,"ngIf"],[3,"pxpDynamicComponent","baseContext","baseConfig"]],template:function(u,o){1&u&&r.DNE(0,F,1,2,null,0),2&u&&r.Y8G("ngIf",o.childConfig)},dependencies:[s.bT,D.q],encapsulation:2}),p})(),G=(()=>{var c;class p{}return(c=p).\u0275fac=function(u){return new(u||c)},c.\u0275mod=r.$C({type:c}),c.\u0275inj=r.G2t({imports:[s.MD]}),p})();const K=X}}]);
1
+ "use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["projects_storefront_src_app_component_product_product_module_ts"],{1803:(b,v,n)=>{n.d(v,{OE:()=>C,OK:()=>p,TS:()=>a,We:()=>i});var a=function(t){return t.VERTICAL="vertical",t.HORIZONTAL="horizontal",t.GRID="grid",t.GROUP="group",t.TABS="tabs",t}(a||{}),i=function(t){return t.BLANK="_blank",t.SELF="_self",t}(i||{}),p=function(t){return t.a="a",t.br="br",t.button="button",t.div="div",t.em="em",t.h1="h1",t.h2="h2",t.h3="h3",t.h4="h4",t.h5="h5",t.h6="h6",t.hr="hr",t.iframe="iframe",t.img="img",t.input="input",t.li="li",t.ol="ol",t.p="p",t.pre="pre",t.small="small",t.span="span",t.ul="ul",t.article="article",t.aside="aside",t.details="details",t.figcaption="figcaption",t.figure="figure",t.footer="footer",t.header="header",t.main="main",t.mark="mark",t.nav="nav",t.section="section",t.summary="summary",t.time="time",t}(p||{}),C=function(t){return t.div="div",t.li="li",t.ol="ol",t.p="p",t.ul="ul",t.article="article",t.aside="aside",t.details="details",t.figcaption="figcaption",t.figure="figure",t.footer="footer",t.header="header",t.main="main",t.mark="mark",t.nav="nav",t.section="section",t.summary="summary",t.time="time",t}(C||{})},8866:(b,v,n)=>{n.r(v),n.d(v,{ProductModule:()=>B,component:()=>K});var a=n(177),m=n(467),i=n(9379),p=n(4404),C=n(1210);const y={fallback:{type:"html",tag:n(1803).OK.p,content:"ERROR_PRODUCT",variables:["$context.error"]}};var O=n(1497),x=n(8179),P=n(8251),R=n(610),E=n(4648),e=n(4438),U=n(9516),I=n(5102),D=n(1652),N=n(2868);function F(c,u){}function S(c,u){if(1&c&&e.DNE(0,F,0,0,"ng-template",1),2&c){const l=e.XpG();e.Y8G("baseContext",l.childContext)("baseConfig",l.childConfig)}}let X=(()=>{var c;class u extends C.${constructor(s,o,f,r,d,h,A){super(o,s,f,d,A),this.elementRef=s,this.injector=o,this.contextService=f,this.store=r,this.document=d,this.purpleService=h,this.globalService=A,this.defaultConfig=(0,i.A)({},y)}onConfigChanges(){var s=()=>super.onConfigChanges,o=this;return(0,m.A)(function*(){s().call(o);const f=o.config.productId||new URL(o.document.location.href).searchParams.get("productId");try{const r=yield o.purpleService.getProducts(f);if(o.config.localIssueFilter){const d=(0,x.n)(o.config.localIssueFilter);r.issues=r.issues.filter(h=>(0,E.tU)(d,h))}if(r.issues.length)o.issue=r.issues[0],o.childContext=(0,i.A)((0,i.A)({},o.context),{},{issue:o.issue}),o.childConfig=(0,i.A)({type:"issue"},o.config.issue);else if(r.subscriptions.length){const d=r.subscriptions[0],h=yield o.purpleService.getPrice(d.productId);o.subscription=O.r.toSubscriptionsWithPrice(d,h)[0],o.childContext=(0,i.A)((0,i.A)({},o.context),{},{subscription:o.subscription}),o.childConfig=(0,i.A)({type:"subscription"},o.config.subscription)}else{if(!r.publicationProducts.length)throw{code:p.ERROR_CODE.UNKNOWN_PRODUCT};o.publicationProduct=r.publicationProducts[0],o.childContext=(0,i.A)({},o.context),o.childConfig=(0,i.A)((0,i.A)({type:"publication-completion"},o.config.publicationCompletion),{},{productFilter:{productId:{value:f}}})}}catch(r){let d=r;null!=r&&r.code||(d=(0,i.A)((0,i.A)({},r),{},{code:p.ERROR_CODE.UNKNOWN})),o.store.dispatch((0,R.k4)({url:window.location.href,key:"".concat(o.getTrackingBaseKey(),"_LOAD_FAILED"),params:{error:d.code,productId:f}})),o.childConfig=(0,i.A)({},o.config.fallback),o.childContext=(0,i.A)((0,i.A)({},o.context),{},{error:d.code})}o.changeDetectorRef.markForCheck()})()}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),"fallback"]}}return(c=u).type="product",c.\u0275fac=function(s){return new(s||c)(e.rXU(e.aKT),e.rXU(e.zZn),e.rXU(U.V),e.rXU(P.B),e.rXU(a.qQ),e.rXU(I.Wj),e.rXU(D.d))},c.\u0275cmp=e.VBU({type:c,selectors:[["storefront-product"]],standalone:!1,features:[e.Jv_([P.B]),e.Vt3],decls:1,vars:1,consts:[[4,"ngIf"],[3,"pxpDynamicComponent","baseContext","baseConfig"]],template:function(s,o){1&s&&e.DNE(0,S,1,2,null,0),2&s&&e.Y8G("ngIf",o.childConfig)},dependencies:[a.bT,N.q],encapsulation:2}),u})(),B=(()=>{var c;class u{}return(c=u).\u0275fac=function(s){return new(s||c)},c.\u0275mod=e.$C({type:c}),c.\u0275inj=e.G2t({imports:[a.MD]}),u})();const K=X}}]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/files",
3
- "version": "12.51.0",
3
+ "version": "12.52.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {},