@builder.io/sdk-vue 0.1.7 → 0.1.9

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.
Files changed (60) hide show
  1. package/package.json +1 -1
  2. package/packages/_vue2/dist/block-styles.d7d7aa69.js +69 -0
  3. package/packages/_vue2/dist/block-styles.f25ea71f.cjs +1 -0
  4. package/packages/{_vue3/dist/get-processed-block.d00eccbb.cjs → _vue2/dist/get-processed-block.d3c744f7.cjs} +1 -1
  5. package/packages/{_vue3/dist/get-processed-block.7f0848a3.js → _vue2/dist/get-processed-block.ef627078.js} +1 -1
  6. package/packages/_vue2/dist/{index.2d467eb1.cjs → index.bef62fde.cjs} +5 -5
  7. package/packages/_vue2/dist/{index.055082cd.js → index.ea6d5c33.js} +74 -73
  8. package/packages/_vue2/dist/{render-block.3d616731.js → render-block.68538b72.js} +34 -31
  9. package/packages/_vue2/dist/render-block.8a810b21.cjs +3 -0
  10. package/packages/_vue2/dist/{render-component.69758ebf.js → render-component.d5a06a9f.js} +3 -3
  11. package/packages/_vue2/dist/{render-component.f92ce0c3.cjs → render-component.fa85c266.cjs} +1 -1
  12. package/packages/_vue2/dist/{render-inlined-styles.8d0c5a9b.js → render-inlined-styles.32e2a109.js} +1 -1
  13. package/packages/_vue2/dist/{render-inlined-styles.3d0f9fe7.cjs → render-inlined-styles.c58a27b9.cjs} +1 -1
  14. package/packages/_vue2/dist/{render-repeated-block.6c0e784a.cjs → render-repeated-block.9563405f.cjs} +1 -1
  15. package/packages/_vue2/dist/{render-repeated-block.e773db2b.js → render-repeated-block.c577be97.js} +2 -2
  16. package/packages/_vue2/dist/{render-styles.f5c763be.cjs → render-styles.1c71bf0a.cjs} +2 -2
  17. package/packages/_vue2/dist/{render-styles.38da6402.js → render-styles.31ad9a17.js} +2 -2
  18. package/packages/_vue2/dist/sdk.cjs +1 -1
  19. package/packages/_vue2/dist/sdk.js +3 -3
  20. package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +4 -0
  21. package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +4 -0
  22. package/packages/_vue2/dist/src/components/render-block/block-styles.vue.d.ts +1 -0
  23. package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +3 -0
  24. package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +3 -0
  25. package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +3 -0
  26. package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +4 -0
  27. package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +4 -0
  28. package/packages/_vue2/dist/src/types/builder-block.d.ts +8 -0
  29. package/packages/_vue2/dist/style.css +1 -1
  30. package/packages/_vue3/dist/block-styles.8ee7887b.cjs +1 -0
  31. package/packages/_vue3/dist/block-styles.b74d2b45.js +66 -0
  32. package/packages/{_vue2/dist/get-processed-block.e426e5c8.js → _vue3/dist/get-processed-block.348e1332.js} +1 -1
  33. package/packages/{_vue2/dist/get-processed-block.3cf6c3ff.cjs → _vue3/dist/get-processed-block.49919209.cjs} +1 -1
  34. package/packages/_vue3/dist/{index.59001d0e.cjs → index.4f68e6f8.cjs} +10 -10
  35. package/packages/_vue3/dist/{index.3d6c5319.js → index.5773f262.js} +37 -36
  36. package/packages/_vue3/dist/render-block.1021bf96.cjs +3 -0
  37. package/packages/_vue3/dist/{render-block.9166425b.js → render-block.f48dafa3.js} +76 -71
  38. package/packages/_vue3/dist/{render-component.bca347e7.js → render-component.2ae850d5.js} +3 -3
  39. package/packages/_vue3/dist/{render-component.79b00fb5.cjs → render-component.f152b6e4.cjs} +1 -1
  40. package/packages/_vue3/dist/{render-inlined-styles.56c17d2f.cjs → render-inlined-styles.9dd02e33.cjs} +1 -1
  41. package/packages/_vue3/dist/{render-inlined-styles.97f3e330.js → render-inlined-styles.da7419c9.js} +1 -1
  42. package/packages/_vue3/dist/{render-repeated-block.d0ab60c1.js → render-repeated-block.0c8d0906.js} +2 -2
  43. package/packages/_vue3/dist/{render-repeated-block.791d2698.cjs → render-repeated-block.58283c8b.cjs} +1 -1
  44. package/packages/_vue3/dist/{render-styles.86687760.cjs → render-styles.90022a69.cjs} +2 -2
  45. package/packages/_vue3/dist/{render-styles.e5ee2819.js → render-styles.fc3b8b2e.js} +2 -2
  46. package/packages/_vue3/dist/sdk.cjs +1 -1
  47. package/packages/_vue3/dist/sdk.js +3 -3
  48. package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +1 -0
  49. package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +1 -0
  50. package/packages/_vue3/dist/src/components/render-block/block-styles.vue.d.ts +1 -0
  51. package/packages/_vue3/dist/src/components/render-blocks.vue.d.ts +1 -0
  52. package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +1 -0
  53. package/packages/_vue3/dist/src/types/builder-block.d.ts +8 -0
  54. package/packages/_vue3/dist/style.css +1 -1
  55. package/packages/_vue2/dist/block-styles.39cc91ef.cjs +0 -1
  56. package/packages/_vue2/dist/block-styles.ed7736cd.js +0 -66
  57. package/packages/_vue2/dist/render-block.f934b32f.cjs +0 -3
  58. package/packages/_vue3/dist/block-styles.057be752.cjs +0 -1
  59. package/packages/_vue3/dist/block-styles.90be320f.js +0 -63
  60. package/packages/_vue3/dist/render-block.fad21827.cjs +0 -3
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.2d467eb1.cjs"),d=e=>{var o,c;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],i=(c=e.fileUrl)!=null?c:(o=e==null?void 0:e.files)==null?void 0:o.regular;let l="";if(i&&t&&n&&(l+=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.bef62fde.cjs"),d=e=>{var c,o;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],i=(o=e.fileUrl)!=null?o:(c=e==null?void 0:e.files)==null?void 0:c.regular;let l="";if(i&&t&&n&&(l+=`
2
2
  @font-face {
3
3
  font-family: "${t}";
4
4
  src: local("${n}"), url('${i}') format('woff2');
@@ -12,7 +12,7 @@ src: url('${s}') format('woff2');
12
12
  font-display: fallback;
13
13
  font-weight: ${r};
14
14
  }
15
- `.trim())}return l},f=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(n=>d(n)))==null?void 0:t.join(" "))||""},u=({cssCode:e,contentId:t})=>e?t?(e==null?void 0:e.replace(/&/g,`div[builder-content-id="${t}"]`))||"":e:"",m=()=>Promise.resolve().then(()=>require("./render-inlined-styles.3d0f9fe7.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderInlinedStyles at ../../render-inlined-styles.vue",e),e}),y={name:"render-content-styles",components:{RenderInlinedStyles:m},props:["cssCode","contentId","customFonts"],data(){return{injectedStyles:`
15
+ `.trim())}return l},f=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(n=>d(n)))==null?void 0:t.join(" "))||""},u=({cssCode:e,contentId:t})=>e?t?(e==null?void 0:e.replace(/&/g,`div[builder-content-id="${t}"]`))||"":e:"",m=()=>Promise.resolve().then(()=>require("./render-inlined-styles.c58a27b9.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderInlinedStyles at ../../render-inlined-styles.vue",e),e}),y={name:"render-content-styles",components:{RenderInlinedStyles:m},props:["cssCode","contentId","customFonts"],data(){return{injectedStyles:`
16
16
  ${u({cssCode:this.cssCode,contentId:this.contentId})}
17
17
  ${f({customFonts:this.customFonts})}
18
18
  `}}};var p=function(){var t=this,n=t._self._c;return n("render-inlined-styles",{attrs:{styles:t.injectedStyles}})},_=[],g=a.normalizeComponent(y,p,_,!1,null,null,null,null);const h=g.exports;exports.default=h;
@@ -1,4 +1,4 @@
1
- import { n as c } from "./index.055082cd.js";
1
+ import { n as c } from "./index.ea6d5c33.js";
2
2
  const f = (e) => {
3
3
  var o, a;
4
4
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
@@ -31,7 +31,7 @@ font-weight: ${r};
31
31
  }, m = ({
32
32
  cssCode: e,
33
33
  contentId: t
34
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", u = () => import("./render-inlined-styles.8d0c5a9b.js").then((e) => e.default).catch((e) => {
34
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", u = () => import("./render-inlined-styles.32e2a109.js").then((e) => e.default).catch((e) => {
35
35
  throw console.error(
36
36
  "Error while attempting to dynamically import component RenderInlinedStyles at ../../render-inlined-styles.vue",
37
37
  e
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.2d467eb1.cjs");exports.Button=e.Button;exports.Columns=e.Columns;exports.Fragment=e.Fragment;exports.Image=e.Image;exports.RenderBlocks=e.renderBlocks;exports.RenderContent=e.renderContent;exports.Section=e.Section;exports.Symbol=e.Symbol;exports.Text=e.Text;exports.Video=e.Video;exports.components=e.components;exports.convertSearchParamsToQueryObject=e.convertSearchParamsToQueryObject;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getBuilderSearchParamsFromWindow=e.getBuilderSearchParamsFromWindow;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.normalizeSearchParams=e.normalizeSearchParams;exports.register=e.register;exports.registerComponent=e.registerComponent;exports.setEditorSettings=e.setEditorSettings;exports.track=e.track;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.bef62fde.cjs");exports.Button=e.Button;exports.Columns=e.Columns;exports.Fragment=e.Fragment;exports.Image=e.Image;exports.RenderBlocks=e.renderBlocks;exports.RenderContent=e.renderContent;exports.Section=e.Section;exports.Symbol=e.Symbol;exports.Text=e.Text;exports.Video=e.Video;exports.components=e.components;exports.convertSearchParamsToQueryObject=e.convertSearchParamsToQueryObject;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getBuilderSearchParamsFromWindow=e.getBuilderSearchParamsFromWindow;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.normalizeSearchParams=e.normalizeSearchParams;exports.register=e.register;exports.registerComponent=e.registerComponent;exports.setEditorSettings=e.setEditorSettings;exports.track=e.track;
@@ -1,4 +1,4 @@
1
- import { d as s, C as t, F as r, I as n, r as o, h as i, S as m, i as g, j as c, V as d, m as l, w as S, p as C, v as u, x as h, y as p, u as P, k as B, l as k, z as v, q as w, o as x, s as y, t as F } from "./index.055082cd.js";
1
+ import { h as s, C as t, F as r, I as n, r as o, i, S as m, j as g, k as c, V as l, o as d, x as S, q as C, w as u, y as h, z as p, v as P, l as B, m as k, A as v, s as w, p as x, u as y, t as F } from "./index.ea6d5c33.js";
2
2
  export {
3
3
  s as Button,
4
4
  t as Columns,
@@ -9,8 +9,8 @@ export {
9
9
  m as Section,
10
10
  g as Symbol,
11
11
  c as Text,
12
- d as Video,
13
- l as components,
12
+ l as Video,
13
+ d as components,
14
14
  S as convertSearchParamsToQueryObject,
15
15
  C as createRegisterComponentMessage,
16
16
  u as getAllContent,
@@ -56,6 +56,7 @@ declare const _sfc_main: {
56
56
  };
57
57
  computed: {
58
58
  useBlock(): any;
59
+ canShowBlock(): any;
59
60
  css(): any;
60
61
  };
61
62
  }>;
@@ -91,6 +92,7 @@ declare const _sfc_main: {
91
92
  };
92
93
  computed: {
93
94
  useBlock(): any;
95
+ canShowBlock(): any;
94
96
  css(): any;
95
97
  };
96
98
  }>;
@@ -100,6 +102,7 @@ declare const _sfc_main: {
100
102
  computed: {
101
103
  tag(): any;
102
104
  useBlock(): any;
105
+ canShowBlock(): any;
103
106
  proxyState(): any;
104
107
  actions(): any;
105
108
  attributes(): any;
@@ -132,6 +135,7 @@ declare const _sfc_main: {
132
135
  };
133
136
  computed: {
134
137
  useBlock(): any;
138
+ canShowBlock(): any;
135
139
  css(): any;
136
140
  };
137
141
  }>;
@@ -72,6 +72,7 @@ declare const _sfc_main: {
72
72
  };
73
73
  computed: {
74
74
  useBlock(): any;
75
+ canShowBlock(): any;
75
76
  css(): any;
76
77
  };
77
78
  }>;
@@ -107,6 +108,7 @@ declare const _sfc_main: {
107
108
  };
108
109
  computed: {
109
110
  useBlock(): any;
111
+ canShowBlock(): any;
110
112
  css(): any;
111
113
  };
112
114
  }>;
@@ -116,6 +118,7 @@ declare const _sfc_main: {
116
118
  computed: {
117
119
  tag(): any;
118
120
  useBlock(): any;
121
+ canShowBlock(): any;
119
122
  proxyState(): any;
120
123
  actions(): any;
121
124
  attributes(): any;
@@ -148,6 +151,7 @@ declare const _sfc_main: {
148
151
  };
149
152
  computed: {
150
153
  useBlock(): any;
154
+ canShowBlock(): any;
151
155
  css(): any;
152
156
  };
153
157
  }>;
@@ -25,6 +25,7 @@ declare const _sfc_main: {
25
25
  };
26
26
  computed: {
27
27
  useBlock(): any;
28
+ canShowBlock(): any;
28
29
  css(): any;
29
30
  };
30
31
  };
@@ -32,6 +32,7 @@ declare const _sfc_main: {
32
32
  };
33
33
  computed: {
34
34
  useBlock(): any;
35
+ canShowBlock(): any;
35
36
  css(): any;
36
37
  };
37
38
  }>;
@@ -67,6 +68,7 @@ declare const _sfc_main: {
67
68
  };
68
69
  computed: {
69
70
  useBlock(): any;
71
+ canShowBlock(): any;
70
72
  css(): any;
71
73
  };
72
74
  }>;
@@ -76,6 +78,7 @@ declare const _sfc_main: {
76
78
  computed: {
77
79
  tag(): any;
78
80
  useBlock(): any;
81
+ canShowBlock(): any;
79
82
  proxyState(): any;
80
83
  actions(): any;
81
84
  attributes(): any;
@@ -48,6 +48,7 @@ declare const _sfc_main: {
48
48
  };
49
49
  computed: {
50
50
  useBlock(): any;
51
+ canShowBlock(): any;
51
52
  css(): any;
52
53
  };
53
54
  }>;
@@ -57,6 +58,7 @@ declare const _sfc_main: {
57
58
  computed: {
58
59
  tag(): any;
59
60
  useBlock(): any;
61
+ canShowBlock(): any;
60
62
  proxyState(): any;
61
63
  actions(): any;
62
64
  attributes(): any;
@@ -89,6 +91,7 @@ declare const _sfc_main: {
89
91
  };
90
92
  computed: {
91
93
  useBlock(): any;
94
+ canShowBlock(): any;
92
95
  css(): any;
93
96
  };
94
97
  }>;
@@ -29,6 +29,7 @@ declare const _sfc_main: {
29
29
  };
30
30
  computed: {
31
31
  useBlock(): any;
32
+ canShowBlock(): any;
32
33
  css(): any;
33
34
  };
34
35
  }>;
@@ -57,6 +58,7 @@ declare const _sfc_main: {
57
58
  };
58
59
  computed: {
59
60
  useBlock(): any;
61
+ canShowBlock(): any;
60
62
  css(): any;
61
63
  };
62
64
  }>;
@@ -66,6 +68,7 @@ declare const _sfc_main: {
66
68
  computed: {
67
69
  tag(): any;
68
70
  useBlock(): any;
71
+ canShowBlock(): any;
69
72
  proxyState(): any;
70
73
  actions(): any;
71
74
  attributes(): any;
@@ -36,6 +36,7 @@ declare const _sfc_main: {
36
36
  };
37
37
  computed: {
38
38
  useBlock(): any;
39
+ canShowBlock(): any;
39
40
  css(): any;
40
41
  };
41
42
  }>;
@@ -71,6 +72,7 @@ declare const _sfc_main: {
71
72
  };
72
73
  computed: {
73
74
  useBlock(): any;
75
+ canShowBlock(): any;
74
76
  css(): any;
75
77
  };
76
78
  }>;
@@ -80,6 +82,7 @@ declare const _sfc_main: {
80
82
  computed: {
81
83
  tag(): any;
82
84
  useBlock(): any;
85
+ canShowBlock(): any;
83
86
  proxyState(): any;
84
87
  actions(): any;
85
88
  attributes(): any;
@@ -112,6 +115,7 @@ declare const _sfc_main: {
112
115
  };
113
116
  computed: {
114
117
  useBlock(): any;
118
+ canShowBlock(): any;
115
119
  css(): any;
116
120
  };
117
121
  }>;
@@ -52,6 +52,7 @@ declare const _sfc_main: {
52
52
  };
53
53
  computed: {
54
54
  useBlock(): any;
55
+ canShowBlock(): any;
55
56
  css(): any;
56
57
  };
57
58
  }>;
@@ -87,6 +88,7 @@ declare const _sfc_main: {
87
88
  };
88
89
  computed: {
89
90
  useBlock(): any;
91
+ canShowBlock(): any;
90
92
  css(): any;
91
93
  };
92
94
  }>;
@@ -96,6 +98,7 @@ declare const _sfc_main: {
96
98
  computed: {
97
99
  tag(): any;
98
100
  useBlock(): any;
101
+ canShowBlock(): any;
99
102
  proxyState(): any;
100
103
  actions(): any;
101
104
  attributes(): any;
@@ -128,6 +131,7 @@ declare const _sfc_main: {
128
131
  };
129
132
  computed: {
130
133
  useBlock(): any;
134
+ canShowBlock(): any;
131
135
  css(): any;
132
136
  };
133
137
  }>;
@@ -54,5 +54,13 @@ export interface BuilderBlock {
54
54
  } | null;
55
55
  animations?: any[];
56
56
  style?: Partial<CSSStyleDeclaration>;
57
+ /**
58
+ * generated by the "Hide If" binding
59
+ */
60
+ hide?: boolean;
61
+ /**
62
+ * generated by the "Show If" binding
63
+ */
64
+ show?: boolean;
57
65
  }
58
66
  export {};
@@ -1 +1 @@
1
- .button-1pl23ac79ld[data-v-48205b37]{all:unset}.div-29wpyomtntv[data-v-4dd8606b]{display:flex;line-height:normal}.div-29wpyomtntv-2[data-v-4dd8606b]{display:flex;flex-direction:column;align-items:stretch}.img-1j57pcfa436[data-v-76004f06]{opacity:1;transition:opacity .2s ease-in-out}.div-1j57pcfa436[data-v-76004f06]{width:100%;pointer-events:none;font-size:0}.div-1j57pcfa436-2[data-v-76004f06]{display:flex;flex-direction:column;align-items:stretch;position:absolute;top:0;left:0;width:100%;height:100%}.div-23e8fqt91nf[data-v-7c56f14d]{display:flex;flex-direction:column;align-items:stretch}
1
+ .button-2fnk003dqad[data-v-3e6fa42c]{all:unset}.div-2brhoa1k8gd[data-v-4e30ecf8]{display:flex;line-height:normal}.div-2brhoa1k8gd-2[data-v-4e30ecf8]{display:flex;flex-direction:column;align-items:stretch}.img-20351ewpue7[data-v-893a0f79]{opacity:1;transition:opacity .2s ease-in-out}.div-20351ewpue7[data-v-893a0f79]{width:100%;pointer-events:none;font-size:0}.div-20351ewpue7-2[data-v-893a0f79]{display:flex;flex-direction:column;align-items:stretch;position:absolute;top:0;left:0;width:100%;height:100%}.div-21azgz5avex[data-v-7d4553c5]{display:flex;flex-direction:column;align-items:stretch}
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),s=require("./index.4f68e6f8.cjs"),h=require("./get-processed-block.49919209.cjs"),y=()=>Promise.resolve().then(()=>require("./render-inlined-styles.9dd02e33.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderInlinedStyles at ../render-inlined-styles.vue",e),e}),k={name:"block-styles",components:{RenderInlinedStyles:o.defineAsyncComponent(y)},props:["block","context"],data(){return{TARGET:s.TARGET}},computed:{useBlock(){return h.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!0})},canShowBlock(){return s.checkIsDefined(this.useBlock.hide)?!this.useBlock.hide:s.checkIsDefined(this.useBlock.show)?this.useBlock.show:!0},css(){var a;const e=this.useBlock.responsiveStyles,c=this.context.content,l=s.getSizesForBreakpoints(((a=c==null?void 0:c.meta)==null?void 0:a.breakpoints)||{}),i=e==null?void 0:e.large,r=e==null?void 0:e.medium,t=e==null?void 0:e.small,n=this.useBlock.id,d=i?s.createCssClass({className:n,styles:i}):"",u=r?s.createCssClass({className:n,styles:r,mediaQuery:s.getMaxWidthQueryForSize("medium",l)}):"",m=t?s.createCssClass({className:n,styles:t,mediaQuery:s.getMaxWidthQueryForSize("small",l)}):"";return[d,u,m].join(" ")}}};function p(e,c,l,i,r,t){const n=o.resolveComponent("render-inlined-styles");return r.TARGET!=="reactNative"&&t.css&&t.canShowBlock?(o.openBlock(),o.createBlock(n,{key:0,styles:t.css},null,8,["styles"])):o.createCommentVNode("",!0)}const S=s._export_sfc(k,[["render",p]]);exports.default=S;
@@ -0,0 +1,66 @@
1
+ import { defineAsyncComponent as p, resolveComponent as k, openBlock as y, createBlock as B, createCommentVNode as S } from "vue";
2
+ import { T as f, c as i, g as _, a as r, b as d, _ as g } from "./index.5773f262.js";
3
+ import { g as x } from "./get-processed-block.348e1332.js";
4
+ const C = () => import("./render-inlined-styles.da7419c9.js").then((e) => e.default).catch((e) => {
5
+ throw console.error(
6
+ "Error while attempting to dynamically import component RenderInlinedStyles at ../render-inlined-styles.vue",
7
+ e
8
+ ), e;
9
+ }), b = {
10
+ name: "block-styles",
11
+ components: {
12
+ RenderInlinedStyles: p(C)
13
+ },
14
+ props: ["block", "context"],
15
+ data() {
16
+ return { TARGET: f };
17
+ },
18
+ computed: {
19
+ useBlock() {
20
+ return x({
21
+ block: this.block,
22
+ state: this.context.state,
23
+ context: this.context.context,
24
+ shouldEvaluateBindings: !0
25
+ });
26
+ },
27
+ canShowBlock() {
28
+ return i(this.useBlock.hide) ? !this.useBlock.hide : i(this.useBlock.show) ? this.useBlock.show : !0;
29
+ },
30
+ css() {
31
+ var a;
32
+ const e = this.useBlock.responsiveStyles, o = this.context.content, c = _(
33
+ ((a = o == null ? void 0 : o.meta) == null ? void 0 : a.breakpoints) || {}
34
+ ), l = e == null ? void 0 : e.large, n = e == null ? void 0 : e.medium, t = e == null ? void 0 : e.small, s = this.useBlock.id, m = l ? r({
35
+ className: s,
36
+ styles: l
37
+ }) : "", u = n ? r({
38
+ className: s,
39
+ styles: n,
40
+ mediaQuery: d(
41
+ "medium",
42
+ c
43
+ )
44
+ }) : "", h = t ? r({
45
+ className: s,
46
+ styles: t,
47
+ mediaQuery: d(
48
+ "small",
49
+ c
50
+ )
51
+ }) : "";
52
+ return [m, u, h].join(" ");
53
+ }
54
+ }
55
+ };
56
+ function w(e, o, c, l, n, t) {
57
+ const s = k("render-inlined-styles");
58
+ return n.TARGET !== "reactNative" && t.css && t.canShowBlock ? (y(), B(s, {
59
+ key: 0,
60
+ styles: t.css
61
+ }, null, 8, ["styles"])) : S("", !0);
62
+ }
63
+ const E = /* @__PURE__ */ g(b, [["render", w]]);
64
+ export {
65
+ E as default
66
+ };
@@ -1,4 +1,4 @@
1
- import { f as a, e as u } from "./index.055082cd.js";
1
+ import { f as a, e as u } from "./index.5773f262.js";
2
2
  const f = (n, r, i) => {
3
3
  if (Object(n) !== n)
4
4
  return n;
@@ -1 +1 @@
1
- "use strict";const o=require("./index.2d467eb1.cjs"),d=(e,r,i)=>{if(Object(e)!==e)return e;const n=Array.isArray(r)?r:r.toString().match(/[^.[\]]+/g);return n.slice(0,-1).reduce((t,s,c)=>Object(t[s])===t[s]?t[s]:t[s]=Math.abs(Number(n[c+1]))>>0===+n[c+1]?[]:{},e)[n[n.length-1]]=i,e};const a=({block:e,context:r,state:i})=>{if(!e.bindings)return e;const n=o.fastClone(e),t={...n,properties:{...n.properties},actions:{...n.actions}};for(const s in e.bindings){const c=e.bindings[s],u=o.evaluate({code:c,state:i,context:r});d(t,s,u)}return t};function g({block:e,context:r,shouldEvaluateBindings:i,state:n}){const t=e;return i?a({block:t,state:n,context:r}):t}exports.getProcessedBlock=g;
1
+ "use strict";const o=require("./index.4f68e6f8.cjs"),d=(e,r,i)=>{if(Object(e)!==e)return e;const n=Array.isArray(r)?r:r.toString().match(/[^.[\]]+/g);return n.slice(0,-1).reduce((t,s,c)=>Object(t[s])===t[s]?t[s]:t[s]=Math.abs(Number(n[c+1]))>>0===+n[c+1]?[]:{},e)[n[n.length-1]]=i,e};const a=({block:e,context:r,state:i})=>{if(!e.bindings)return e;const n=o.fastClone(e),t={...n,properties:{...n.properties},actions:{...n.actions}};for(const s in e.bindings){const c=e.bindings[s],u=o.evaluate({code:c,state:i,context:r});d(t,s,u)}return t};function f({block:e,context:r,shouldEvaluateBindings:i,state:n}){const t=e;return i?a({block:t,state:n,context:r}):t}exports.getProcessedBlock=f;