@bookipi/htmlgenerator 1.8.2 → 1.8.4-alpha1
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/.vscode/common.settings.json +38 -0
- package/dist/index.js +18 -9
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +18 -9
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"//": "auto save & auto formatting on save",
|
|
3
|
+
"files.autoSave": "onFocusChange",
|
|
4
|
+
"editor.formatOnSave": true,
|
|
5
|
+
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
6
|
+
"prettier.requireConfig": false,
|
|
7
|
+
"editor.codeActionsOnSave": {
|
|
8
|
+
"source.organizeImports": "always",
|
|
9
|
+
"source.fixAll": "always"
|
|
10
|
+
},
|
|
11
|
+
"eslint.enable": true,
|
|
12
|
+
|
|
13
|
+
"//": "please install `Code Spell Checker` extension to use this configuration",
|
|
14
|
+
"cSpell.words": [
|
|
15
|
+
"AIPO",
|
|
16
|
+
"bds",
|
|
17
|
+
"bg",
|
|
18
|
+
"Bookipay",
|
|
19
|
+
"bw",
|
|
20
|
+
"comms",
|
|
21
|
+
"cy",
|
|
22
|
+
"devias",
|
|
23
|
+
"esign",
|
|
24
|
+
"Fcm",
|
|
25
|
+
"FRAMEBUSTED",
|
|
26
|
+
"gql",
|
|
27
|
+
"hocs",
|
|
28
|
+
"idx",
|
|
29
|
+
"noreferrer",
|
|
30
|
+
"Quickbook",
|
|
31
|
+
"Quickbooks",
|
|
32
|
+
"showmore",
|
|
33
|
+
"Signit",
|
|
34
|
+
"testid",
|
|
35
|
+
"UI",
|
|
36
|
+
"vh"
|
|
37
|
+
]
|
|
38
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -13677,11 +13677,20 @@ var ItemsContainer$2 = function ItemsContainer(_ref) {
|
|
|
13677
13677
|
var getItemUnit = function getItemUnit(item) {
|
|
13678
13678
|
return item.unitType || defaultLang['item_unit_piece'];
|
|
13679
13679
|
};
|
|
13680
|
+
var getQISTax = function getQISTax(item) {
|
|
13681
|
+
if (item.tx2) {
|
|
13682
|
+
return company.tp2 + "%";
|
|
13683
|
+
}
|
|
13684
|
+
if (item.tx) {
|
|
13685
|
+
return company.tp + "%";
|
|
13686
|
+
}
|
|
13687
|
+
return '0%';
|
|
13688
|
+
};
|
|
13680
13689
|
for (var _iterator = _createForOfIteratorHelperLoose(document.it), _step; !(_step = _iterator()).done;) {
|
|
13681
13690
|
var _item$photos;
|
|
13682
13691
|
var item = _step.value;
|
|
13683
13692
|
var photoUrl = (_item$photos = item.photos) !== null && _item$photos !== void 0 && _item$photos[0] ? item.photos[0].url || "https://s3.amazonaws.com/bookipi/" + company._id + "/item/images/" + item.photos[0].filename + ".jpg" : '';
|
|
13684
|
-
itemsContainer = itemsContainer + html$z(_templateObject$B || (_templateObject$B = _taggedTemplateLiteralLoose(["<tr>\n ", "\n <td\n class=\"item-detail-cell d-none d-md-table-cell\"\n style=\"", "\"\n >\n ", "\n <div style=\"display:block;page-break-inside: auto!important;\">\n <span class=\"text-inverse\"\n ><span class=\"item-name\">", "</span></span\n >\n ", "\n <div\n class=\"item-description mt-2\"\n style=\"page-break-inside: auto!important;\"\n >\n ", "\n </div>\n </div>\n </td>\n <td\n class=\"item-detail-cell d-table-cell d-md-none\"\n style=\"padding-left: .75rem;\"\n >\n ", "\n <div style=\"display:block;page-break-inside: auto!important;\">\n ", "\n\n <span class=\"text-inverse\"\n ><span class=\"item-name\">", "</span></span\n >\n ", "\n <div\n class=\"item-description\"\n style=\"page-break-inside: auto!important;\"\n >\n ", "\n </div>\n <div class=\"d-block d-md-none mt-2\">\n ", "\n ", "\n </div>\n </div>\n </td>\n ", "\n <td class=\"item-detail-cell text-center d-none d-md-table-cell\">\n ", "\n </td>\n <td class=\"item-detail-cell text-center d-none d-md-table-cell\">\n ", "\n </td>\n ", "\n ", "\n <td\n class=\"item-detail-cell t text-right item-total-cell\"\n style=\"padding-right: .75rem;\"\n >\n ", "\n ", "\n </td>\n </tr>"])), isQIS ? html$z(_templateObject2$h || (_templateObject2$h = _taggedTemplateLiteralLoose(["<td\n class=\"text-left d-none d-md-table-cell item-detail-cell\"\n style=\"padding-left: .75rem;\"\n >\n ", "\n </td>"])), item.deliveryDate ? formatShortDateJapan(item.deliveryDate, company.tz) : '—') : '', isQIS ? '' : 'padding-left: .75rem;', photoUrl ? "<img class=\"mb-2\" style=\"width:56px;height:56px;display:inline-block;margin-right:12px;border-radius:4px;vertical-align:top;\" src=\"" + photoUrl + "\" />" : '', item.n || '', item.productCode ? html$z(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteralLoose(["<div class=\"item-productcode text-inverse\">\n ", "\n </div>"])), item.productCode) : '', nl2br(item.dsc) || '', photoUrl ? "<img class=\"mb-2\" style=\"width:56px;height:56px;display:inline-block;margin-right:12px;border-radius:4px;vertical-align:top;\" src=\"" + photoUrl + "\" />" : '', item.deliveryDate ? "<div class=\"d-block d-md-none item-delivery-date-small-screen mb-2\">\n " + formatShortDateJapan(item.deliveryDate, company.tz) + "\n </div>" : ' ', item.n || '', item.productCode ? html$z(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["<div class=\"item-productcode text-inverse\">\n ", "\n </div>"])), item.productCode) : '', nl2br(item.dsc) || '', (item.p || item.p == 0) && (item.q || item.q == 0) ? FormatCurrencyJP(item.p, company.cr, company.la, company.cf) + ' ✕ ' + (item.q || '0') + ' ' + getItemUnit(item) : '', discountOnItem && (item.p || item.p == 0) && item.dc ? "" + (item.dc > 0 ? ' - ' : ' + ') + FormatCurrencyJP(Math.abs(item.dc), company.cr, company.la, company.cf) + " (" + (company.r_dc ? company.r_dc : defaultLang.discount) + ")" : '', isQIS ? "\n <td class=\"item-detail-cell text-center d-none d-md-table-cell\">\n " + (item.tx2 ? '※' : '') + "\n </td>\n " : '', (item.p || item.p == 0) && (item.q || item.q == 0) ? item.q + ' ' + getItemUnit(item) : '', item.p || item.p == 0 ? FormatCurrencyJP(item.p, company.cr, company.la, company.cf) : '', discountOnItem ? html$z(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["<td\n class=\"item-detail-cell text-center d-none d-md-table-cell\"\n >\n ", "\n </td>"])), (item.p || item.p == 0) && item.dc ? FormatCurrencyJP(item.dc, company.cr, company.la, company.cf) : '') : '', isQIS ? html$z(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["<td\n class=\"item-detail-cell text-center d-none d-md-table-cell\"\n >\n ", "\n </td>"])), item
|
|
13693
|
+
itemsContainer = itemsContainer + html$z(_templateObject$B || (_templateObject$B = _taggedTemplateLiteralLoose(["<tr>\n ", "\n <td\n class=\"item-detail-cell d-none d-md-table-cell\"\n style=\"", "\"\n >\n ", "\n <div style=\"display:block;page-break-inside: auto!important;\">\n <span class=\"text-inverse\"\n ><span class=\"item-name\">", "</span></span\n >\n ", "\n <div\n class=\"item-description mt-2\"\n style=\"page-break-inside: auto!important;\"\n >\n ", "\n </div>\n </div>\n </td>\n <td\n class=\"item-detail-cell d-table-cell d-md-none\"\n style=\"padding-left: .75rem;\"\n >\n ", "\n <div style=\"display:block;page-break-inside: auto!important;\">\n ", "\n\n <span class=\"text-inverse\"\n ><span class=\"item-name\">", "</span></span\n >\n ", "\n <div\n class=\"item-description\"\n style=\"page-break-inside: auto!important;\"\n >\n ", "\n </div>\n <div class=\"d-block d-md-none mt-2\">\n ", "\n ", "\n </div>\n </div>\n </td>\n ", "\n <td class=\"item-detail-cell text-center d-none d-md-table-cell\">\n ", "\n </td>\n <td class=\"item-detail-cell text-center d-none d-md-table-cell\">\n ", "\n </td>\n ", "\n ", "\n <td\n class=\"item-detail-cell t text-right item-total-cell\"\n style=\"padding-right: .75rem;\"\n >\n ", "\n ", "\n </td>\n </tr>"])), isQIS ? html$z(_templateObject2$h || (_templateObject2$h = _taggedTemplateLiteralLoose(["<td\n class=\"text-left d-none d-md-table-cell item-detail-cell\"\n style=\"padding-left: .75rem;\"\n >\n ", "\n </td>"])), item.deliveryDate ? formatShortDateJapan(item.deliveryDate, company.tz) : '—') : '', isQIS ? '' : 'padding-left: .75rem;', photoUrl ? "<img class=\"mb-2\" style=\"width:56px;height:56px;display:inline-block;margin-right:12px;border-radius:4px;vertical-align:top;\" src=\"" + photoUrl + "\" />" : '', item.n || '', item.productCode ? html$z(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteralLoose(["<div class=\"item-productcode text-inverse\">\n ", "\n </div>"])), item.productCode) : '', nl2br(item.dsc) || '', photoUrl ? "<img class=\"mb-2\" style=\"width:56px;height:56px;display:inline-block;margin-right:12px;border-radius:4px;vertical-align:top;\" src=\"" + photoUrl + "\" />" : '', item.deliveryDate ? "<div class=\"d-block d-md-none item-delivery-date-small-screen mb-2\">\n " + formatShortDateJapan(item.deliveryDate, company.tz) + "\n </div>" : ' ', item.n || '', item.productCode ? html$z(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["<div class=\"item-productcode text-inverse\">\n ", "\n </div>"])), item.productCode) : '', nl2br(item.dsc) || '', (item.p || item.p == 0) && (item.q || item.q == 0) ? FormatCurrencyJP(item.p, company.cr, company.la, company.cf) + ' ✕ ' + (item.q || '0') + ' ' + getItemUnit(item) : '', discountOnItem && (item.p || item.p == 0) && item.dc ? "" + (item.dc > 0 ? ' - ' : ' + ') + FormatCurrencyJP(Math.abs(item.dc), company.cr, company.la, company.cf) + " (" + (company.r_dc ? company.r_dc : defaultLang.discount) + ")" : '', isQIS ? "\n <td class=\"item-detail-cell text-center d-none d-md-table-cell\">\n " + (item.tx2 ? '※' : '') + "\n </td>\n " : '', (item.p || item.p == 0) && (item.q || item.q == 0) ? item.q + ' ' + getItemUnit(item) : '', item.p || item.p == 0 ? FormatCurrencyJP(item.p, company.cr, company.la, company.cf) : '', discountOnItem ? html$z(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["<td\n class=\"item-detail-cell text-center d-none d-md-table-cell\"\n >\n ", "\n </td>"])), (item.p || item.p == 0) && item.dc ? FormatCurrencyJP(item.dc, company.cr, company.la, company.cf) : '') : '', isQIS ? html$z(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["<td\n class=\"item-detail-cell text-center d-none d-md-table-cell\"\n >\n ", "\n </td>"])), getQISTax(item)) : '', isQIS ? "\n <div class=\"d-block d-md-none mb-2 item-tax-small-screen\">\n <div>" + (item.tx2 ? '※ ' : '') + defaultLang['tax_rate'] + ": " + getQISTax(item) + "</div>\n </div>\n " : '', item.p || item.p == 0 ? FormatCurrencyJP(item.t, company.cr, company.la, company.cf) : '');
|
|
13685
13694
|
}
|
|
13686
13695
|
return itemsContainer;
|
|
13687
13696
|
};
|
|
@@ -14290,7 +14299,7 @@ var processHtml = function processHtml(_ref) {
|
|
|
14290
14299
|
return html$P(_templateObject5$2 || (_templateObject5$2 = _taggedTemplateLiteralLoose(["\n <div class=\"slide slide--process\">\n <div class=\"content\">\n <h2 class=\"title\">", "</h2>\n <ul\n class=\"bullets-ul\"\n style=\"display:flex;gap:24px;list-style:none;padding:16px 0 0;justify-content:center;width:auto;border-top:1px solid ", ";\"\n >\n ", "\n </ul>\n </div>\n </div>\n "])), escapeHtml(slide.title), escapeHtml(borderColor), listItems);
|
|
14291
14300
|
};
|
|
14292
14301
|
|
|
14293
|
-
var _templateObject$T, _templateObject2$u, _templateObject3$f, _templateObject4$5;
|
|
14302
|
+
var _templateObject$T, _templateObject2$u, _templateObject3$f, _templateObject4$5, _templateObject5$3;
|
|
14294
14303
|
var html$Q = String.raw;
|
|
14295
14304
|
var teamMemberHtml = function teamMemberHtml(_ref) {
|
|
14296
14305
|
var _ref$slide = _ref.slide,
|
|
@@ -14300,18 +14309,18 @@ var teamMemberHtml = function teamMemberHtml(_ref) {
|
|
|
14300
14309
|
return html$Q(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n <div class=\"slide\">\n <div class=\"content\">\n <h2 class=\"title\">", "</h2>\n </div>\n </div>\n "])), escapeHtml(slide.title || ''));
|
|
14301
14310
|
}
|
|
14302
14311
|
var isRow = members.length > 1;
|
|
14303
|
-
var imageStyle = isRow ? '
|
|
14312
|
+
var imageStyle = isRow ? 'width:100%;' : '';
|
|
14304
14313
|
var memberHtml = members.map(function (member) {
|
|
14305
14314
|
var name = (member === null || member === void 0 ? void 0 : member.name) || '';
|
|
14306
14315
|
var role = (member === null || member === void 0 ? void 0 : member.role) || '';
|
|
14307
14316
|
var bio = (member === null || member === void 0 ? void 0 : member.bio) || '';
|
|
14308
14317
|
var img = getImage(member === null || member === void 0 ? void 0 : member.imageSource) || '';
|
|
14309
|
-
return html$Q(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n <div\n style=\"flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;box-sizing:border-box;\"\n >\n <span class=\"subtitle\" style=\"margin:0;font-weight:600;\"\n >", "</span\n >\n <span class=\"text\" style=\"margin:0
|
|
14318
|
+
return html$Q(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n <div\n style=\"flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;box-sizing:border-box;\"\n >\n <span class=\"subtitle\" style=\"margin:0;font-weight:600;\"\n >", "</span\n >\n <span class=\"text\" style=\"margin:0;\">", "</span>\n <div style=\"position:relative;width:100%;\">\n <img\n src=\"", "\"\n alt=\"", "-avatar\"\n style=\"max-height:20vh;", "border-radius:12px;object-fit:cover;\"\n />\n </div>\n ", "\n </div>\n "])), escapeHtml(name), escapeHtml(role), escapeHtml(img), escapeHtml(name), imageStyle, bio ? html$Q(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["<p class=\"text\" style=\"margin:0;text-align:left;\">\n ", "\n </p>"])), escapeHtml(bio)) : '');
|
|
14310
14319
|
}).join('');
|
|
14311
|
-
return html$Q(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteralLoose(["\n <div class=\"slide\">\n <div class=\"content\" style=\"align-items:flex-start;\">\n
|
|
14320
|
+
return html$Q(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteralLoose(["\n <div class=\"slide\">\n <div class=\"content\" style=\"align-items:flex-start;\">\n ", "\n <div style=\"display:flex;gap:24px;width:100%;align-items:stretch;\">\n ", "\n </div>\n </div>\n </div>\n "])), slide.title ? html$Q(_templateObject5$3 || (_templateObject5$3 = _taggedTemplateLiteralLoose(["<h2 class=\"title\" style=\"text-align:left;\">\n ", "\n </h2>"])), escapeHtml(slide.title)) : '', memberHtml);
|
|
14312
14321
|
};
|
|
14313
14322
|
|
|
14314
|
-
var _templateObject$U, _templateObject2$v, _templateObject3$g, _templateObject4$6, _templateObject5$
|
|
14323
|
+
var _templateObject$U, _templateObject2$v, _templateObject3$g, _templateObject4$6, _templateObject5$4;
|
|
14315
14324
|
var html$R = String.raw;
|
|
14316
14325
|
var textWithImageHtml = function textWithImageHtml(_ref) {
|
|
14317
14326
|
var _ref$slide = _ref.slide,
|
|
@@ -14324,7 +14333,7 @@ var textWithImageHtml = function textWithImageHtml(_ref) {
|
|
|
14324
14333
|
var img = getImage(rawImg);
|
|
14325
14334
|
var imgUrl = escapeHtml(img);
|
|
14326
14335
|
var bg = escapeHtml(themeColors);
|
|
14327
|
-
return html$R(_templateObject3$g || (_templateObject3$g = _taggedTemplateLiteralLoose(["<div class=\"slide split\">\n <div class=\"slide-bg\" style=\"background-color:", "\"></div>\n <div class=\"split-inner\">\n <div class=\"right-image\" style=\"width:50%;\">\n <img src=\"", "\" alt=\"\" />\n </div>\n <div class=\"left-content\" style=\"width:50%;box-sizing:border-box;\">\n ", "\n ", "\n </div>\n </div>\n </div>"])), bg, imgUrl, slide.title ? html$R(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteralLoose(["<h2 class=\"title\" style=\"text-align:left;margin:0 0 12px;\">\n ", "\n </h2>"])), escapeHtml(slide.title)) : '', slide.text ? html$R(_templateObject5$
|
|
14336
|
+
return html$R(_templateObject3$g || (_templateObject3$g = _taggedTemplateLiteralLoose(["<div class=\"slide split\">\n <div class=\"slide-bg\" style=\"background-color:", "\"></div>\n <div class=\"split-inner\">\n <div class=\"right-image\" style=\"width:50%;\">\n <img src=\"", "\" alt=\"\" />\n </div>\n <div class=\"left-content\" style=\"width:50%;box-sizing:border-box;\">\n ", "\n ", "\n </div>\n </div>\n </div>"])), bg, imgUrl, slide.title ? html$R(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteralLoose(["<h2 class=\"title\" style=\"text-align:left;margin:0 0 12px;\">\n ", "\n </h2>"])), escapeHtml(slide.title)) : '', slide.text ? html$R(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteralLoose(["<p class=\"text\" style=\"text-align:left;margin:0;\">\n ", "\n </p>"])), escapeHtml(slide.text)) : '');
|
|
14328
14337
|
};
|
|
14329
14338
|
|
|
14330
14339
|
var _templateObject$V;
|
|
@@ -14342,7 +14351,7 @@ var presentationStyle = function presentationStyle(_ref) {
|
|
|
14342
14351
|
return html$S(_templateObject$V || (_templateObject$V = _taggedTemplateLiteralLoose(["\n <style>\n :root {\n --slide-width: 1600px;\n --slide-height: 900px;\n --rounded: 24px;\n --theme-bg: ", ";\n --theme-title-color: ", ";\n --theme-subtitle-color: ", ";\n --theme-text-color: ", ";\n --print-width: 29.7cm; /* A4 long side (landscape width) */\n --print-height: 21cm; /* A4 short side (landscape height) */\n }\n @page {\n size: var(--print-width) var(--print-height);\n margin: 0;\n }\n\n @media print {\n html,\n body {\n height: 100%;\n margin: 0 !important;\n padding: 0 !important;\n -webkit-transform: none !important;\n transform: none !important;\n }\n .slides-export {\n padding: 0 !important;\n margin: 0 !important;\n gap: 0 !important;\n align-items: stretch !important;\n display: block !important;\n }\n .slide {\n width: var(--print-width) !important;\n height: var(--print-height) !important;\n box-shadow: none !important;\n border-radius: 0 !important;\n overflow: hidden !important;\n margin: 0 !important;\n page-break-inside: avoid !important;\n break-inside: avoid !important;\n page-break-after: always !important;\n break-after: page !important;\n -webkit-transform: none !important;\n transform: none !important;\n }\n .slide + .slide {\n page-break-before: always !important;\n break-before: page !important;\n }\n .slide:first-child {\n page-break-before: auto !important;\n }\n .slide:last-child {\n page-break-after: auto !important;\n }\n .slide-bg {\n position: absolute !important;\n inset: 0 !important;\n width: 100% !important;\n height: 100% !important;\n }\n .slide img.slide-bg,\n .right-image img {\n width: 100% !important;\n height: 100% !important;\n object-fit: cover !important;\n display: block !important;\n }\n * {\n -webkit-print-color-adjust: exact;\n print-color-adjust: exact;\n }\n }\n body {\n background: var(--theme-bg);\n margin: 0;\n padding: 0;\n }\n .slides-export {\n font-family: ", ";\n padding: 40px;\n display: flex;\n flex-direction: column;\n gap: 32px;\n align-items: center;\n }\n .slide {\n position: relative;\n width: var(--slide-width);\n height: var(--slide-height);\n border-radius: var(--rounded);\n background: var(--theme-bg);\n box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);\n overflow: hidden;\n display: flex;\n flex-direction: column;\n page-break-inside: avoid;\n break-inside: avoid;\n page-break-after: always;\n break-after: page;\n -webkit-transform: none !important;\n transform: none !important;\n }\n .slide:last-child {\n page-break-after: auto;\n break-after: auto;\n }\n .slide.split {\n display: flex;\n }\n .split-inner {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n display: flex;\n }\n .cover-inner {\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n z-index: 1;\n padding: 40px;\n }\n .cover-row {\n width: 100%;\n box-sizing: border-box;\n }\n .cover-center {\n flex: 1 1 auto;\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n }\n .cover-title {\n font-weight: 700;\n font-size: 48px;\n color: var(--theme-title-color);\n }\n .cover-subtitle {\n margin: 0;\n font-size: 20px;\n color: var(--theme-subtitle-color);\n }\n .left-content {\n flex: 1 1 50%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 40px;\n box-sizing: border-box;\n z-index: 1;\n }\n .right-image {\n width: 50%;\n min-width: 0;\n background-position: center;\n background-size: cover;\n z-index: 0;\n }\n .right-image img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n display: block;\n }\n .slide-bg {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n z-index: 0;\n }\n .content {\n position: relative;\n z-index: 1;\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n padding: 40px;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n }\n .page-number {\n position: absolute;\n top: 12px;\n right: 16px;\n font-size: 14px;\n color: var(--theme-subtitle-color);\n background: rgba(255,255,255,0.0);\n padding: 4px 8px;\n border-radius: 6px;\n z-index: 3;\n pointer-events: none;\n }\n .slide--bullet .content {\n align-items: flex-start;\n }\n .slide--bullet .title,\n .slide--bullet .subtitle,\n .slide--bullet .text {\n align-self: start;\n text-align: left;\n }\n .slide--bullet .bullets-ul {\n margin-top: 48px;\n }\n .slide--process .content {\n align-items: flex-start;\n }\n .slide--process .title,\n .slide--process .subtitle,\n .slide--process .text {\n align-self: start;\n text-align: left;\n }\n .slide--process .bullets-ul {\n margin-top: 48px;\n }\n .title {\n font-weight: 700;\n font-size: 48px;\n margin: 0 0 8px;\n text-align: center;\n color: var(--theme-title-color);\n }\n .subtitle {\n font-weight: 500;\n font-size: 28px;\n margin: 0;\n text-align: center;\n color: var(--theme-subtitle-color);\n }\n .text {\n font-size: 20px;\n margin-top: 16px;\n text-align: center;\n color: var(--theme-text-color);\n }\n .bullets {\n padding-left: 24px;\n font-size: 20px;\n }\n .image-wrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n }\n .image-wrapper img {\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n }\n @media (max-width: 1200px) {\n :root {\n --slide-width: 960px;\n --slide-height: 540px;\n }\n }\n @media (max-width: 720px) {\n :root {\n --slide-width: 360px;\n --slide-height: 640px;\n }\n }\n </style>\n"])), theme.background, theme.title, theme.subtitle, theme.text, fontStack);
|
|
14343
14352
|
};
|
|
14344
14353
|
|
|
14345
|
-
var _templateObject$W, _templateObject2$w, _templateObject3$h, _templateObject4$7, _templateObject5$
|
|
14354
|
+
var _templateObject$W, _templateObject2$w, _templateObject3$h, _templateObject4$7, _templateObject5$5;
|
|
14346
14355
|
var htmlRaw$3 = String.raw;
|
|
14347
14356
|
var presentationHtml = function presentationHtml(_ref) {
|
|
14348
14357
|
var _ref$customizationSty = _ref.customizationStyle,
|
|
@@ -14397,7 +14406,7 @@ var presentationHtml = function presentationHtml(_ref) {
|
|
|
14397
14406
|
var fontLinkTags = fontLinks.map(function (href) {
|
|
14398
14407
|
return htmlRaw$3(_templateObject4$7 || (_templateObject4$7 = _taggedTemplateLiteralLoose(["<link rel=\"stylesheet\" href=\"", "\" />"])), href);
|
|
14399
14408
|
}).join('');
|
|
14400
|
-
return htmlRaw$3(_templateObject5$
|
|
14409
|
+
return htmlRaw$3(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteralLoose(["<!DOCTYPE html>\n <html>\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n ", "\n ", "\n </head>\n <body>\n <div class=\"slides-export\">\n ", "\n </div>\n </body>\n </html>"])), fontLinkTags, css, innerContent);
|
|
14401
14410
|
};
|
|
14402
14411
|
|
|
14403
14412
|
exports.ContractHtml = contractHtml;
|