@ordergroove/offers 2.26.0 → 2.26.1-alpha-PR-581-2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle-report.html +2 -2
- package/dist/offers.js +1 -1
- package/dist/offers.js.map +2 -2
- package/package.json +2 -2
- package/src/components/Offer.js +2 -1
package/dist/bundle-report.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
│ └ examples/index.js
|
|
5
5
|
└ examples/index.js ───────────────────────────────────────── 8.3kb ─── 3.3%
|
|
6
6
|
|
|
7
|
-
dist/offers.js ───────────────────────────────────────────── 108.
|
|
7
|
+
dist/offers.js ───────────────────────────────────────────── 108.5kb ─ 100.0%
|
|
8
8
|
├ src/components/Offer.js ─────────────────────────────────── 7.9kb ─── 7.3%
|
|
9
9
|
│ └ src/index.js
|
|
10
10
|
├ node_modules/redux/es/redux.js ──────────────────────────── 6.7kb ─── 6.2%
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
│ └ src/core/selectors.js
|
|
75
75
|
│ └ src/components/Price.js
|
|
76
76
|
│ └ src/index.js
|
|
77
|
-
├ src/components/OptinSelect.js ───────────────────────────── 1.2kb ─── 1.
|
|
77
|
+
├ src/components/OptinSelect.js ───────────────────────────── 1.2kb ─── 1.1%
|
|
78
78
|
│ └ src/index.js
|
|
79
79
|
├ src/core/descriptors.js ─────────────────────────────────── 1.2kb ─── 1.1%
|
|
80
80
|
│ └ src/components/When.js
|
package/dist/offers.js
CHANGED
|
@@ -317,7 +317,7 @@ var lib=(()=>{var ei=Object.create;var ke=Object.defineProperty;var ti=Object.ge
|
|
|
317
317
|
></og-select>
|
|
318
318
|
`}};n(lo,"SelectFrequency");var Os=h(Xe,{productChangeFrequency:Nt})(lo);v();var Nc={day:{day:"2-digit"},"day-numeric":{day:"numeric"},"day-short":{weekday:"short"},"day-long":{weekday:"long"},month:{month:"2-digit"},"month-numeric":{month:"numeric"},"month-short":{month:"short"},"month-long":{month:"long"},year:{year:"2-digit"},"year-numeric":{year:"numeric"}};var Cs=n((t,e)=>t instanceof Date?(e||"").toString().replace(/\{\{([-\w]+)\}\}/g,r=>{let o=r.replace(/[{}]/g,""),s=Nc[o];if(typeof s=="undefined")return o;let a=new Intl.DateTimeFormat("en-us",s).formatToParts(t),[{value:c}]=a;return c}):t,"formatDate");var uo=class extends x{static get properties(){return{value:{type:String,reflect:!0},format:{type:String}}}createRenderRoot(){return this}render(){return u`
|
|
319
319
|
${Cs(this.value,this.format||"{{month-long}} {{day}}, {{year-numeric}}")}
|
|
320
|
-
`}};n(uo,"FormattedDate");var kc=n(t=>({value:t.previewUpsellOffer?new Date:t.nextUpcomingOrder.place}),"mapStateToProps"),Ps=h(kc)(uo);v();var Ns=oe(vt());N();ce();var Rs=n((t,e)=>n(async function(o){await o({type:Ue,payload:t}),await o({type:_e}),await o(Te({in_stock:{[e]:!0},eligibility_groups:{[e]:["subscription","upsell"]},result:"success",autoship:{[e]:!0},modifiers:{},module_view:{regular:"096135e6650111e9a444bc764e106cf4"},incentives_display:{"47c01e9aacbe40389b5c7325d79091aa":{field:"sub_total",object:"order",type:"Discount Percent",value:5},e6534b9d877f41e586c37b7d8abc3a58:{field:"total_price",object:"item",type:"Discount Percent",value:10},f35e842710b24929922db4a529eecd40:{field:"total_price",object:"item",type:"Discount Percent",value:10},"5be321d7c17f4e18a757212b9a20bfcc":{field:"total_price",object:"item",type:"Discount Percent",value:1}},incentives:{[e]:{initial:["5be321d7c17f4e18a757212b9a20bfcc"],ongoing:["e6534b9d877f41e586c37b7d8abc3a58","47c01e9aacbe40389b5c7325d79091aa","f35e842710b24929922db4a529eecd40"]}}}))},"setPreviewStandardOfferThunk"),"setPreviewStandardOffer"),Ic=n((t,e)=>n(async function(o,s){await o({type:De,payload:t});let{merchantId:i}=s();t?(await o(Te({in_stock:{[e]:!0},module_view:{regular:"096135e6650111e9a444bc764e106cf4"},default_frequencies:{[e]:{every:1,every_period:3}},eligibility_groups:{[e]:["subscription","upsell"]},result:"success",autoship:{[e]:!0},modifiers:{}})),await o(_r({count:1,next:null,previous:null,results:[{merchant:"0e5de2bedc5e11e3a2e4bc764e106cf4",customer:"TestCust",payment:"e98e789aba0111e9b90fbc764e107990",shipping_address:"b3a5816ae59611e78937bc764e1043b0",public_id:"23322d4a83eb11ea9a1ebc764e101db1",sub_total:"206.98",tax_total:"0.00",shipping_total:"10.00",discount_total:"0.00",total:"216.98",created:"2020-04-21 11:14:11",place:"2020-06-24 00:00:00",cancelled:null,tries:0,generic_error_count:0,status:1,type:1,order_merchant_id:null,rejected_message:null,extra_data:null,locked:!1,oos_free_shipping:!1}]})),await o(br(i,"sig_field","ts","sig"))):await o(J())},"setPreviewUpsellOfferThunk"),"setPreviewUpsellOffer"),As=n((t,e,r)=>async function(o,s){switch(await o({type:G}),await o({type:Ue,payload:!1}),await o({type:De,payload:!1}),t){case"regular":o(Rs(!0,r.product.id));break;case"upsell":o(Ic(!0,r.product.id));break;case"subscribed":o(Rs(!0,r.product.id)),o(Q(r.product,"2_2"));break;default:}},"setPreview");N();var qc=n((...t)=>JSON.stringify(t),"memoizeKey"),Uc=(0,Ns.default)((t,e)=>Object.assign({components:e},t),qc),po=class extends D{static get properties(){return{...super.properties,config:{type:Object,attribute:!1},product:ds,productComponents:{type:Array,attribute:"product-components"},offerId:{type:String,attribute:!1},auth:Ae,preview:{type:String,attribute:"preview",reflect:"true"},location:{type:String},autoshipByDefault:{type:Boolean,attribute:"autoship-by-default"},productDefaultFrequency:{type:String,attribute:!1},locale:{type:Object,attribute:!0},firstOrderPlaceDate:{type:String,attribute:"first-order-place-date"},productToSubscribe:{type:String,attribute:"product-to-subscribe"},subscribed:{type:Boolean,reflect:!0},frequency:{type:String,reflect:!0}}}firstUpdated(){let e=Array.from(this.getAttributeNames()).find(r=>r.startsWith("preview-"));e==="preview-standard-offer"?this.preview="regular":e==="preview-upsell-offer"?this.preview="upsell":e==="preview-subscribed-offer"&&(this.preview="subscribed")}static get styles(){return w`
|
|
320
|
+
`}};n(uo,"FormattedDate");var kc=n(t=>({value:t.previewUpsellOffer?new Date:t.nextUpcomingOrder.place}),"mapStateToProps"),Ps=h(kc)(uo);v();var Ns=oe(vt());N();ce();var Rs=n((t,e)=>n(async function(o){await o({type:Ue,payload:t}),await o({type:_e}),await o(Te({in_stock:{[e]:!0},eligibility_groups:{[e]:["subscription","upsell"]},result:"success",autoship:{[e]:!0},modifiers:{},module_view:{regular:"096135e6650111e9a444bc764e106cf4"},incentives_display:{"47c01e9aacbe40389b5c7325d79091aa":{field:"sub_total",object:"order",type:"Discount Percent",value:5},e6534b9d877f41e586c37b7d8abc3a58:{field:"total_price",object:"item",type:"Discount Percent",value:10},f35e842710b24929922db4a529eecd40:{field:"total_price",object:"item",type:"Discount Percent",value:10},"5be321d7c17f4e18a757212b9a20bfcc":{field:"total_price",object:"item",type:"Discount Percent",value:1}},incentives:{[e]:{initial:["5be321d7c17f4e18a757212b9a20bfcc"],ongoing:["e6534b9d877f41e586c37b7d8abc3a58","47c01e9aacbe40389b5c7325d79091aa","f35e842710b24929922db4a529eecd40"]}}}))},"setPreviewStandardOfferThunk"),"setPreviewStandardOffer"),Ic=n((t,e)=>n(async function(o,s){await o({type:De,payload:t});let{merchantId:i}=s();t?(await o(Te({in_stock:{[e]:!0},module_view:{regular:"096135e6650111e9a444bc764e106cf4"},default_frequencies:{[e]:{every:1,every_period:3}},eligibility_groups:{[e]:["subscription","upsell"]},result:"success",autoship:{[e]:!0},modifiers:{}})),await o(_r({count:1,next:null,previous:null,results:[{merchant:"0e5de2bedc5e11e3a2e4bc764e106cf4",customer:"TestCust",payment:"e98e789aba0111e9b90fbc764e107990",shipping_address:"b3a5816ae59611e78937bc764e1043b0",public_id:"23322d4a83eb11ea9a1ebc764e101db1",sub_total:"206.98",tax_total:"0.00",shipping_total:"10.00",discount_total:"0.00",total:"216.98",created:"2020-04-21 11:14:11",place:"2020-06-24 00:00:00",cancelled:null,tries:0,generic_error_count:0,status:1,type:1,order_merchant_id:null,rejected_message:null,extra_data:null,locked:!1,oos_free_shipping:!1}]})),await o(br(i,"sig_field","ts","sig"))):await o(J())},"setPreviewUpsellOfferThunk"),"setPreviewUpsellOffer"),As=n((t,e,r)=>async function(o,s){switch(await o({type:G}),await o({type:Ue,payload:!1}),await o({type:De,payload:!1}),t){case"regular":o(Rs(!0,r.product.id));break;case"upsell":o(Ic(!0,r.product.id));break;case"subscribed":o(Rs(!0,r.product.id)),o(Q(r.product,"2_2"));break;default:}},"setPreview");N();var qc=n((...t)=>JSON.stringify(t),"memoizeKey"),Uc=(0,Ns.default)((t,e)=>Object.assign({components:e},t),qc),po=class extends D{static get properties(){return{...super.properties,config:{type:Object,attribute:!1},product:ds,productComponents:{type:Array,attribute:"product-components"},offerId:{type:String,attribute:!1},auth:Ae,preview:{type:String,attribute:"preview",reflect:"true"},location:{type:String},autoshipByDefault:{type:Boolean,attribute:"autoship-by-default",reflect:!0},optedout:{type:Boolean,reflect:!0},productDefaultFrequency:{type:String,attribute:!1},locale:{type:Object,attribute:!0},firstOrderPlaceDate:{type:String,attribute:"first-order-place-date"},productToSubscribe:{type:String,attribute:"product-to-subscribe"},subscribed:{type:Boolean,reflect:!0},frequency:{type:String,reflect:!0}}}firstUpdated(){let e=Array.from(this.getAttributeNames()).find(r=>r.startsWith("preview-"));e==="preview-standard-offer"?this.preview="regular":e==="preview-upsell-offer"?this.preview="upsell":e==="preview-subscribed-offer"&&(this.preview="subscribed")}static get styles(){return w`
|
|
321
321
|
:host[hidden] {
|
|
322
322
|
display: none;
|
|
323
323
|
}
|