@ordergroove/offers 2.27.11 → 2.27.12-alpha-PR-650-5.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.
@@ -1,6 +1,6 @@
1
1
  <pre id="esbuild-metadata">
2
- dist/examples.js ─────────────────────────────────────────── 258.1kb ─ 100.0%
3
- ├ ../offers-templates/dist/main.js ──────────────────────── 248.7kb ── 96.3%
2
+ dist/examples.js ─────────────────────────────────────────── 258.3kb ─ 100.0%
3
+ ├ ../offers-templates/dist/main.js ──────────────────────── 248.9kb ── 96.4%
4
4
  │ └ examples/index.js
5
5
  └ examples/index.js ───────────────────────────────────────── 8.4kb ─── 3.3%
6
6
 
@@ -164,7 +164,7 @@
164
164
  ├ src/components/Text.js ──────────────────────────────────── 862b ──── 0.7%
165
165
  │ └ src/make-api.js
166
166
  │ └ src/index.js
167
- ├ src/core/localStorage.js ────────────────────────────────── 810b ──── 0.7%
167
+ ├ src/core/localStorage.js ────────────────────────────────── 810b ──── 0.6%
168
168
  │ └ src/make-api.js
169
169
  │ └ src/index.js
170
170
  ├ src/core/connect.js ─────────────────────────────────────── 794b ──── 0.6%
package/dist/examples.js CHANGED
@@ -250,6 +250,7 @@ button {
250
250
  }
251
251
  .og-regular-offer-content {
252
252
  display: flex;
253
+ flex-direction: row;
253
254
  gap: 1.5em;
254
255
  }
255
256
  .og-select-frequency,
@@ -264,7 +265,6 @@ og-tooltip svg {
264
265
  og-optin-button,
265
266
  og-optout-button {
266
267
  display: flex;
267
- align-items: center;
268
268
  gap: 5px;
269
269
  }
270
270
 
@@ -334,7 +334,6 @@ og-text[key="offerEveryLabel"] {
334
334
  }
335
335
 
336
336
  og-optin-button {
337
- margin-top: 1em;
338
337
  font-weight: 700;
339
338
  }
340
339
 
@@ -362,7 +361,14 @@ og-price[subscription] {
362
361
 
363
362
  .line-through {
364
363
  text-decoration: line-through;
365
- }`}),Ta={};ro(Ta,{availableTemplates:()=>Wl,getMarkup:()=>La,getStyles:()=>Jl});var ue=ir(Qr());ue.default.registerHelper("case",bo()),ue.default.registerHelper("default",xo()),ue.default.registerHelper("frequencyText",Po()),ue.default.registerHelper("ifEqual",wo()),ue.default.registerHelper("switch",Eo()),ue.default.registerHelper("withIncentives",_o()),ue.default.registerPartial("buttons",ue.default.template({"1":function(l,r,e,o,a,t,n){var s,i=l.lambda,u=l.escapeExpression,f=r??(l.nullContext||{}),h=l.hooks.helperMissing,v=l.lookupProperty||function(b,y){if(Object.prototype.hasOwnProperty.call(b,y))return b[y]};return` <div class="og-optin-button-item">
364
+ }
365
+
366
+ .og-regular-offer-content {
367
+ display: flex;
368
+ flex-direction: column;
369
+ gap: 1em;
370
+ }
371
+ `}),Ta={};ro(Ta,{availableTemplates:()=>Wl,getMarkup:()=>La,getStyles:()=>Jl});var ue=ir(Qr());ue.default.registerHelper("case",bo()),ue.default.registerHelper("default",xo()),ue.default.registerHelper("frequencyText",Po()),ue.default.registerHelper("ifEqual",wo()),ue.default.registerHelper("switch",Eo()),ue.default.registerHelper("withIncentives",_o()),ue.default.registerPartial("buttons",ue.default.template({"1":function(l,r,e,o,a,t,n){var s,i=l.lambda,u=l.escapeExpression,f=r??(l.nullContext||{}),h=l.hooks.helperMissing,v=l.lookupProperty||function(b,y){if(Object.prototype.hasOwnProperty.call(b,y))return b[y]};return` <div class="og-optin-button-item">
366
372
  <og-optin-button default-frequency="`+u(i(r!=null?v(r,"every"):r,r))+"_"+u(i(r!=null?v(r,"period"):r,r))+`">
367
373
  <span slot='default'>
368
374
  `+u((v(e,"frequencyText")||r&&v(r,"frequencyText")||h).call(f,r,{name:"frequencyText",hash:{},data:a,loc:{start:{line:23,column:20},end:{line:23,column:42}}}))+`
@@ -468,23 +474,24 @@ og-price[subscription] {
468
474
  `+l.escapeExpression((n(e,"withIncentives")||r&&n(r,"withIncentives")||l.hooks.helperMissing).call(r??(l.nullContext||{}),(t=r!=null?n(r,"textCopy"):r)!=null?n(t,"offerOptInLabel"):t,{name:"withIncentives",hash:{},data:a,loc:{start:{line:2,column:4},end:{line:2,column:47}}}))+`
469
475
  </og-optin-button>`},useData:!0})),ue.default.registerPartial("optoutButton",ue.default.template({compiler:[8,">= 4.3.0"],main:function(l,r,e,o,a){var t,n=l.lookupProperty||function(s,i){if(Object.prototype.hasOwnProperty.call(s,i))return s[i]};return`<og-optout-button>
470
476
  `+l.escapeExpression((n(e,"withIncentives")||r&&n(r,"withIncentives")||l.hooks.helperMissing).call(r??(l.nullContext||{}),(t=r!=null?n(r,"textCopy"):r)!=null?n(t,"offerOptOutLabel"):t,{name:"withIncentives",hash:{},data:a,loc:{start:{line:2,column:4},end:{line:2,column:48}}}))+`
471
- </og-optout-button>`},useData:!0})),ue.default.registerPartial("radio",ue.default.template({"1":function(l,r,e,o,a){var t,n=r??(l.nullContext||{}),s=l.lookupProperty||function(i,u){if(Object.prototype.hasOwnProperty.call(i,u))return i[u]};return" <og-tooltip "+((t=s(e,"if").call(n,(t=r!=null?s(r,"styles"):r)!=null?s(t,"tooltipPlacement"):t,{name:"if",hash:{},fn:l.program(2,a,0),inverse:l.noop,data:a,loc:{start:{line:12,column:20},end:{line:12,column:98}}}))!=null?t:"")+`>
472
- <span slot="trigger">`+((t=l.invokePartial(s(o,"tooltipSvg"),r,{name:"tooltipSvg",data:a,helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")+`</span>
473
- <span slot="content">`+l.escapeExpression((s(e,"withIncentives")||r&&s(r,"withIncentives")||l.hooks.helperMissing).call(n,(t=r!=null?s(r,"textCopy"):r)!=null?s(t,"offerTooltipContent"):t,{name:"withIncentives",hash:{},data:a,loc:{start:{line:14,column:33},end:{line:14,column:80}}}))+`</span>
474
- </og-tooltip>
477
+ </og-optout-button>`},useData:!0})),ue.default.registerPartial("radio",ue.default.template({"1":function(l,r,e,o,a){var t,n=r??(l.nullContext||{}),s=l.lookupProperty||function(i,u){if(Object.prototype.hasOwnProperty.call(i,u))return i[u]};return" <og-tooltip "+((t=s(e,"if").call(n,(t=r!=null?s(r,"styles"):r)!=null?s(t,"tooltipPlacement"):t,{name:"if",hash:{},fn:l.program(2,a,0),inverse:l.noop,data:a,loc:{start:{line:13,column:24},end:{line:13,column:102}}}))!=null?t:"")+`>
478
+ <span slot="trigger">`+((t=l.invokePartial(s(o,"tooltipSvg"),r,{name:"tooltipSvg",data:a,helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")+`</span>
479
+ <span slot="content">`+l.escapeExpression((s(e,"withIncentives")||r&&s(r,"withIncentives")||l.hooks.helperMissing).call(n,(t=r!=null?s(r,"textCopy"):r)!=null?s(t,"offerTooltipContent"):t,{name:"withIncentives",hash:{},data:a,loc:{start:{line:15,column:37},end:{line:15,column:84}}}))+`</span>
480
+ </og-tooltip>
475
481
  `},"2":function(l,r,e,o,a){var t,n=l.lookupProperty||function(s,i){if(Object.prototype.hasOwnProperty.call(s,i))return s[i]};return'placement="'+l.escapeExpression(l.lambda((t=r!=null?n(r,"styles"):r)!=null?n(t,"tooltipPlacement"):t,r))+'" '},compiler:[8,">= 4.3.0"],main:function(l,r,e,o,a){var t,n=r??(l.nullContext||{}),s=l.lookupProperty||function(i,u){if(Object.prototype.hasOwnProperty.call(i,u))return i[u]};return`<og-when test="regularEligible">
476
- <div>
477
- `+((t=l.invokePartial(s(o,"optoutButton"),r,{name:"optoutButton",data:a,indent:" ",helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")+` <og-price regular></og-price>
478
- </div>
479
- <div>
480
- `+((t=l.invokePartial(s(o,"optinButton"),r,{name:"optinButton",data:a,indent:" ",helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")+` <og-price regular class="italic line-through"></og-price>
481
- <og-price subscription></og-price>
482
-
483
- `+((t=s(e,"if").call(n,(t=r!=null?s(r,"textCopy"):r)!=null?s(t,"showTooltip"):t,{name:"if",hash:{},fn:l.program(1,a,0),inverse:l.noop,data:a,loc:{start:{line:11,column:8},end:{line:16,column:15}}}))!=null?t:"")+`
482
+ <div class="og-regular-offer-content">
483
+ <div>
484
+ `+((t=l.invokePartial(s(o,"optoutButton"),r,{name:"optoutButton",data:a,indent:" ",helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")+` <og-price regular></og-price>
485
+ </div>
486
+ <div>
487
+ `+((t=l.invokePartial(s(o,"optinButton"),r,{name:"optinButton",data:a,indent:" ",helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")+` <og-price regular class="italic line-through"></og-price>
488
+ <og-price subscription></og-price>
489
+
490
+ `+((t=s(e,"if").call(n,(t=r!=null?s(r,"textCopy"):r)!=null?s(t,"showTooltip"):t,{name:"if",hash:{},fn:l.program(1,a,0),inverse:l.noop,data:a,loc:{start:{line:12,column:12},end:{line:17,column:19}}}))!=null?t:"")+` </div>
484
491
  </div>
485
492
  <div style="margin-left: 2.2em">
486
493
  `+((t=l.invokePartial(s(o,"offerIncentive"),r,{name:"offerIncentive",data:a,indent:" ",helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")+` <og-text key="offerEveryLabel">
487
- `+l.escapeExpression((s(e,"withIncentives")||r&&s(r,"withIncentives")||l.hooks.helperMissing).call(n,(t=r!=null?s(r,"textCopy"):r)!=null?s(t,"offerEveryLabel"):t,{name:"withIncentives",hash:{},data:a,loc:{start:{line:22,column:12},end:{line:22,column:55}}}))+`
494
+ `+l.escapeExpression((s(e,"withIncentives")||r&&s(r,"withIncentives")||l.hooks.helperMissing).call(n,(t=r!=null?s(r,"textCopy"):r)!=null?s(t,"offerEveryLabel"):t,{name:"withIncentives",hash:{},data:a,loc:{start:{line:23,column:12},end:{line:23,column:55}}}))+`
488
495
  </og-text>
489
496
  `+((t=l.invokePartial(s(o,"selectFrequency"),r,{name:"selectFrequency",data:a,indent:" ",helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")+` </div>
490
497
  </og-when>