chordsheetjs 7.2.0 → 7.3.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.
package/lib/bundle.js CHANGED
@@ -4810,40 +4810,38 @@ function $dfecd32049fa58e9$export$74743eda5dda3ccf(key) {
4810
4810
 
4811
4811
 
4812
4812
 
4813
-
4814
- const $376e205ced98486b$var$lineHasContents = (line)=>line.items.some((item)=>item.isRenderable());
4813
+ const $376e205ced98486b$export$17c9e635b932873b = (item)=>item instanceof (0, $d454f4215ba01af2$export$2e2bcd8739ae039);
4814
+ const $376e205ced98486b$export$3db5961874282581 = (line)=>line.items.some((item)=>item.isRenderable());
4815
+ const $376e205ced98486b$export$3bf645f08efe3292 = (item)=>item instanceof (0, $5e9ede69210ec54a$export$2e2bcd8739ae039);
4816
+ const $376e205ced98486b$export$3ab01370f5e64ac8 = (item)=>item.name === "comment";
4817
+ function $376e205ced98486b$export$6ea1b0eb82ead3f(string) {
4818
+ return string.trim().replace(/(<\/[a-z]+>)\s+(<)/g, "$1$2").replace(/(\n)\s+/g, "");
4819
+ }
4820
+ function $376e205ced98486b$export$79b2f7037acddd43(collection, callback) {
4821
+ return collection.map(callback).join("");
4822
+ }
4823
+ function $376e205ced98486b$export$a55877ca9db47377(condition, callback) {
4824
+ return condition ? callback() : "";
4825
+ }
4815
4826
  const $376e205ced98486b$export$b8d631d9200974fa = (line)=>line.items.some((item)=>item instanceof (0, $d454f4215ba01af2$export$2e2bcd8739ae039) && item.lyrics || item instanceof (0, $5e9ede69210ec54a$export$2e2bcd8739ae039) && item.isRenderable() || (0, $21a34a464e7bc609$export$e3f63561d52b936d)(item));
4816
- (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("isChordLyricsPair", (item)=>item instanceof (0, $d454f4215ba01af2$export$2e2bcd8739ae039));
4817
- (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("isTag", (item)=>item instanceof (0, $5e9ede69210ec54a$export$2e2bcd8739ae039));
4818
- (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("isComment", (item)=>item.name === "comment");
4819
- (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("shouldRenderLine", (line, options)=>{
4820
- if (options.data.root.renderBlankLines) return true;
4821
- return $376e205ced98486b$var$lineHasContents(line);
4822
- });
4823
- (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("hasChordContents", (0, $21a34a464e7bc609$export$d332d76d125f0cbe));
4824
- (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("hasTextContents", $376e205ced98486b$export$b8d631d9200974fa);
4825
- (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("lineHasContents", $376e205ced98486b$var$lineHasContents);
4826
- (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("lineClasses", (line)=>{
4827
+ const $376e205ced98486b$export$8a559c16cc3576 = (line)=>{
4827
4828
  const classes = [
4828
4829
  "row"
4829
4830
  ];
4830
- if (!$376e205ced98486b$var$lineHasContents(line)) classes.push("empty-line");
4831
+ if (!$376e205ced98486b$export$3db5961874282581(line)) classes.push("empty-line");
4831
4832
  return classes.join(" ");
4832
- });
4833
- (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("toUpperCase", (line)=>line.toUpperCase());
4834
- (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("paragraphClasses", (paragraph)=>{
4833
+ };
4834
+ const $376e205ced98486b$export$dcd1550c9709312c = (paragraph)=>{
4835
4835
  const classes = [
4836
4836
  "paragraph"
4837
4837
  ];
4838
4838
  if (paragraph.type !== (0, $af8d31735c159a26$export$c5a6fe907430212e) && paragraph.type !== (0, $af8d31735c159a26$export$c53d0f541b41b88e)) classes.push(paragraph.type);
4839
4839
  return classes.join(" ");
4840
- });
4841
- (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("isEvaluatable", (0, $21a34a464e7bc609$export$e3f63561d52b936d));
4842
- (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("evaluate", (item, metadata, configuration)=>{
4840
+ };
4841
+ const $376e205ced98486b$export$fef61f332f2c0afc = (item, metadata, configuration)=>{
4843
4842
  if (!metadata) throw new Error("cannot evaluate, metadata is null");
4844
4843
  return item.evaluate(metadata, configuration.get("metadata.separator"));
4845
- });
4846
- (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("renderChord", (0, $dfecd32049fa58e9$export$596ec52955da9472));
4844
+ };
4847
4845
 
4848
4846
 
4849
4847
 
@@ -4931,642 +4929,54 @@ var $525b2331e4b0ed83$export$2e2bcd8739ae039 = $525b2331e4b0ed83$var$TextFormatt
4931
4929
 
4932
4930
 
4933
4931
 
4934
- var $cc306339371360c4$var$template = $988mA$handlebars.template, $cc306339371360c4$var$templates = $988mA$handlebars.templates = $988mA$handlebars.templates || {};
4935
- $cc306339371360c4$var$templates["html_table_formatter"] = $cc306339371360c4$var$template({
4936
- "1": function(container, depth0, helpers, partials, data, blockParams) {
4937
- var stack1, alias1 = depth0 != null ? depth0 : container.nullContext || {}, lookupProperty = container.lookupProperty || function(parent, propertyName) {
4938
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
4939
- return undefined;
4940
- };
4941
- return ((stack1 = lookupProperty(helpers, "if").call(alias1, depth0 != null ? lookupProperty(depth0, "title") : depth0, {
4942
- "name": "if",
4943
- "hash": {},
4944
- "fn": container.program(2, data, 0, blockParams),
4945
- "inverse": container.noop,
4946
- "data": data,
4947
- "blockParams": blockParams,
4948
- "loc": {
4949
- "start": {
4950
- "line": 2,
4951
- "column": 2
4952
- },
4953
- "end": {
4954
- "line": 4,
4955
- "column": 11
4956
- }
4957
- }
4958
- })) != null ? stack1 : "") + ((stack1 = lookupProperty(helpers, "if").call(alias1, depth0 != null ? lookupProperty(depth0, "subtitle") : depth0, {
4959
- "name": "if",
4960
- "hash": {},
4961
- "fn": container.program(4, data, 0, blockParams),
4962
- "inverse": container.noop,
4963
- "data": data,
4964
- "blockParams": blockParams,
4965
- "loc": {
4966
- "start": {
4967
- "line": 6,
4968
- "column": 2
4969
- },
4970
- "end": {
4971
- "line": 8,
4972
- "column": 11
4973
- }
4974
- }
4975
- })) != null ? stack1 : "") + ((stack1 = lookupProperty(helpers, "if").call(alias1, depth0 != null ? lookupProperty(depth0, "bodyLines") : depth0, {
4976
- "name": "if",
4977
- "hash": {},
4978
- "fn": container.program(6, data, 0, blockParams),
4979
- "inverse": container.noop,
4980
- "data": data,
4981
- "blockParams": blockParams,
4982
- "loc": {
4983
- "start": {
4984
- "line": 10,
4985
- "column": 2
4986
- },
4987
- "end": {
4988
- "line": 52,
4989
- "column": 11
4990
- }
4991
- }
4992
- })) != null ? stack1 : "");
4993
- },
4994
- "2": function(container, depth0, helpers, partials, data) {
4995
- var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
4996
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
4997
- return undefined;
4998
- };
4999
- return "<h1>" + container.escapeExpression((helper = (helper = lookupProperty(helpers, "title") || (depth0 != null ? lookupProperty(depth0, "title") : depth0)) != null ? helper : container.hooks.helperMissing, typeof helper === "function" ? helper.call(depth0 != null ? depth0 : container.nullContext || {}, {
5000
- "name": "title",
5001
- "hash": {},
5002
- "data": data,
5003
- "loc": {
5004
- "start": {
5005
- "line": 3,
5006
- "column": 8
5007
- },
5008
- "end": {
5009
- "line": 3,
5010
- "column": 19
5011
- }
5012
- }
5013
- }) : helper)) + "</h1>";
5014
- },
5015
- "4": function(container, depth0, helpers, partials, data) {
5016
- var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
5017
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5018
- return undefined;
5019
- };
5020
- return "<h2>" + container.escapeExpression((helper = (helper = lookupProperty(helpers, "subtitle") || (depth0 != null ? lookupProperty(depth0, "subtitle") : depth0)) != null ? helper : container.hooks.helperMissing, typeof helper === "function" ? helper.call(depth0 != null ? depth0 : container.nullContext || {}, {
5021
- "name": "subtitle",
5022
- "hash": {},
5023
- "data": data,
5024
- "loc": {
5025
- "start": {
5026
- "line": 7,
5027
- "column": 8
5028
- },
5029
- "end": {
5030
- "line": 7,
5031
- "column": 22
5032
- }
5033
- }
5034
- }) : helper)) + "</h2>";
5035
- },
5036
- "6": function(container, depth0, helpers, partials, data, blockParams) {
5037
- var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
5038
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5039
- return undefined;
5040
- };
5041
- return '<div class="chord-sheet">' + ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : container.nullContext || {}, depth0 != null ? lookupProperty(depth0, "bodyParagraphs") : depth0, {
5042
- "name": "each",
5043
- "hash": {},
5044
- "fn": container.program(7, data, 1, blockParams),
5045
- "inverse": container.noop,
5046
- "data": data,
5047
- "blockParams": blockParams,
5048
- "loc": {
5049
- "start": {
5050
- "line": 12,
5051
- "column": 6
5052
- },
5053
- "end": {
5054
- "line": 50,
5055
- "column": 17
5056
- }
5057
- }
5058
- })) != null ? stack1 : "") + "</div>";
5059
- },
5060
- "7": function(container, depth0, helpers, partials, data, blockParams) {
5061
- var stack1, alias1 = depth0 != null ? depth0 : container.nullContext || {}, lookupProperty = container.lookupProperty || function(parent, propertyName) {
5062
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5063
- return undefined;
5064
- };
5065
- return '<div class="' + container.escapeExpression(lookupProperty(helpers, "paragraphClasses").call(alias1, blockParams[0][0], {
5066
- "name": "paragraphClasses",
5067
- "hash": {},
5068
- "data": data,
5069
- "blockParams": blockParams,
5070
- "loc": {
5071
- "start": {
5072
- "line": 13,
5073
- "column": 20
5074
- },
5075
- "end": {
5076
- "line": 13,
5077
- "column": 50
5078
- }
5079
- }
5080
- })) + '">' + ((stack1 = lookupProperty(helpers, "each").call(alias1, depth0 != null ? lookupProperty(depth0, "lines") : depth0, {
5081
- "name": "each",
5082
- "hash": {},
5083
- "fn": container.program(8, data, 1, blockParams),
5084
- "inverse": container.noop,
5085
- "data": data,
5086
- "blockParams": blockParams,
5087
- "loc": {
5088
- "start": {
5089
- "line": 14,
5090
- "column": 10
5091
- },
5092
- "end": {
5093
- "line": 48,
5094
- "column": 21
5095
- }
5096
- }
5097
- })) != null ? stack1 : "") + "</div>";
5098
- },
5099
- "8": function(container, depth0, helpers, partials, data, blockParams) {
5100
- var stack1, alias1 = depth0 != null ? depth0 : container.nullContext || {}, lookupProperty = container.lookupProperty || function(parent, propertyName) {
5101
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5102
- return undefined;
5103
- };
5104
- return (stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(helpers, "shouldRenderLine").call(alias1, blockParams[0][0], {
5105
- "name": "shouldRenderLine",
5106
- "hash": {},
5107
- "data": data,
5108
- "blockParams": blockParams,
5109
- "loc": {
5110
- "start": {
5111
- "line": 15,
5112
- "column": 19
5113
- },
5114
- "end": {
5115
- "line": 15,
5116
- "column": 42
5117
- }
5118
- }
5119
- }), {
5120
- "name": "if",
5121
- "hash": {},
5122
- "fn": container.program(9, data, 0, blockParams),
5123
- "inverse": container.noop,
5124
- "data": data,
5125
- "blockParams": blockParams,
5126
- "loc": {
5127
- "start": {
5128
- "line": 15,
5129
- "column": 12
5130
- },
5131
- "end": {
5132
- "line": 47,
5133
- "column": 21
5134
- }
5135
- }
5136
- })) != null ? stack1 : "";
5137
- },
5138
- "9": function(container, depth0, helpers, partials, data, blockParams) {
5139
- var stack1, alias1 = depth0 != null ? depth0 : container.nullContext || {}, lookupProperty = container.lookupProperty || function(parent, propertyName) {
5140
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5141
- return undefined;
5142
- };
5143
- return '<table class="' + container.escapeExpression(lookupProperty(helpers, "lineClasses").call(alias1, blockParams[1][0], {
5144
- "name": "lineClasses",
5145
- "hash": {},
5146
- "data": data,
5147
- "blockParams": blockParams,
5148
- "loc": {
5149
- "start": {
5150
- "line": 16,
5151
- "column": 28
5152
- },
5153
- "end": {
5154
- "line": 16,
5155
- "column": 48
5156
- }
5157
- }
5158
- })) + '">' + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(helpers, "hasChordContents").call(alias1, blockParams[1][0], {
5159
- "name": "hasChordContents",
5160
- "hash": {},
5161
- "data": data,
5162
- "blockParams": blockParams,
5163
- "loc": {
5164
- "start": {
5165
- "line": 17,
5166
- "column": 23
5167
- },
5168
- "end": {
5169
- "line": 17,
5170
- "column": 46
5171
- }
5172
- }
5173
- }), {
5174
- "name": "if",
5175
- "hash": {},
5176
- "fn": container.program(10, data, 0, blockParams),
5177
- "inverse": container.noop,
5178
- "data": data,
5179
- "blockParams": blockParams,
5180
- "loc": {
5181
- "start": {
5182
- "line": 17,
5183
- "column": 16
5184
- },
5185
- "end": {
5186
- "line": 25,
5187
- "column": 25
5188
- }
5189
- }
5190
- })) != null ? stack1 : "") + ((stack1 = lookupProperty(helpers, "if").call(alias1, (lookupProperty(helpers, "hasTextContents") || depth0 && lookupProperty(depth0, "hasTextContents") || container.hooks.helperMissing).call(alias1, blockParams[1][0], {
5191
- "name": "hasTextContents",
5192
- "hash": {},
5193
- "data": data,
5194
- "blockParams": blockParams,
5195
- "loc": {
5196
- "start": {
5197
- "line": 27,
5198
- "column": 23
5199
- },
5200
- "end": {
5201
- "line": 27,
5202
- "column": 45
5203
- }
5204
- }
5205
- }), {
5206
- "name": "if",
5207
- "hash": {},
5208
- "fn": container.program(14, data, 0, blockParams),
5209
- "inverse": container.noop,
5210
- "data": data,
5211
- "blockParams": blockParams,
5212
- "loc": {
5213
- "start": {
5214
- "line": 27,
5215
- "column": 16
5216
- },
5217
- "end": {
5218
- "line": 45,
5219
- "column": 25
5220
- }
5221
- }
5222
- })) != null ? stack1 : "") + "</table>";
5223
- },
5224
- "10": function(container, depth0, helpers, partials, data, blockParams) {
5225
- var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
5226
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5227
- return undefined;
5228
- };
5229
- return "<tr>" + ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : container.nullContext || {}, depth0 != null ? lookupProperty(depth0, "items") : depth0, {
5230
- "name": "each",
5231
- "hash": {},
5232
- "fn": container.program(11, data, 1, blockParams),
5233
- "inverse": container.noop,
5234
- "data": data,
5235
- "blockParams": blockParams,
5236
- "loc": {
5237
- "start": {
5238
- "line": 19,
5239
- "column": 20
5240
- },
5241
- "end": {
5242
- "line": 23,
5243
- "column": 31
5244
- }
5245
- }
5246
- })) != null ? stack1 : "") + "</tr>";
5247
- },
5248
- "11": function(container, depth0, helpers, partials, data, blockParams) {
5249
- var stack1, alias1 = depth0 != null ? depth0 : container.nullContext || {}, lookupProperty = container.lookupProperty || function(parent, propertyName) {
5250
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5251
- return undefined;
5252
- };
5253
- return (stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(helpers, "isChordLyricsPair").call(alias1, blockParams[0][0], {
5254
- "name": "isChordLyricsPair",
5255
- "hash": {},
5256
- "data": data,
5257
- "blockParams": blockParams,
5258
- "loc": {
5259
- "start": {
5260
- "line": 20,
5261
- "column": 29
5262
- },
5263
- "end": {
5264
- "line": 20,
5265
- "column": 53
5266
- }
5267
- }
5268
- }), {
5269
- "name": "if",
5270
- "hash": {},
5271
- "fn": container.program(12, data, 0, blockParams),
5272
- "inverse": container.noop,
5273
- "data": data,
5274
- "blockParams": blockParams,
5275
- "loc": {
5276
- "start": {
5277
- "line": 20,
5278
- "column": 22
5279
- },
5280
- "end": {
5281
- "line": 22,
5282
- "column": 31
5283
- }
5284
- }
5285
- })) != null ? stack1 : "";
5286
- },
5287
- "12": function(container, depth0, helpers, partials, data, blockParams) {
5288
- var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
5289
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5290
- return undefined;
5291
- };
5292
- return '<td class="chord">' + container.escapeExpression((lookupProperty(helpers, "renderChord") || depth0 && lookupProperty(depth0, "renderChord") || container.hooks.helperMissing).call(depth0 != null ? depth0 : container.nullContext || {}, depth0 != null ? lookupProperty(depth0, "chords") : depth0, (stack1 = blockParams[4][0]) != null ? lookupProperty(stack1, "key") : stack1, (stack1 = blockParams[4][0]) != null ? lookupProperty(stack1, "transposeKey") : stack1, (stack1 = data && lookupProperty(data, "root")) && lookupProperty(stack1, "song"), {
5293
- "name": "renderChord",
5294
- "hash": {},
5295
- "data": data,
5296
- "blockParams": blockParams,
5297
- "loc": {
5298
- "start": {
5299
- "line": 21,
5300
- "column": 42
5301
- },
5302
- "end": {
5303
- "line": 21,
5304
- "column": 102
5305
- }
5306
- }
5307
- })) + "</td>";
5308
- },
5309
- "14": function(container, depth0, helpers, partials, data, blockParams) {
5310
- var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
5311
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5312
- return undefined;
5313
- };
5314
- return "<tr>" + ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : container.nullContext || {}, depth0 != null ? lookupProperty(depth0, "items") : depth0, {
5315
- "name": "each",
5316
- "hash": {},
5317
- "fn": container.program(15, data, 1, blockParams),
5318
- "inverse": container.noop,
5319
- "data": data,
5320
- "blockParams": blockParams,
5321
- "loc": {
5322
- "start": {
5323
- "line": 29,
5324
- "column": 20
5325
- },
5326
- "end": {
5327
- "line": 43,
5328
- "column": 31
5329
- }
5330
- }
5331
- })) != null ? stack1 : "") + "</tr>";
5332
- },
5333
- "15": function(container, depth0, helpers, partials, data, blockParams) {
5334
- var stack1, alias1 = depth0 != null ? depth0 : container.nullContext || {}, lookupProperty = container.lookupProperty || function(parent, propertyName) {
5335
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5336
- return undefined;
5337
- };
5338
- return ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(helpers, "isChordLyricsPair").call(alias1, blockParams[0][0], {
5339
- "name": "isChordLyricsPair",
5340
- "hash": {},
5341
- "data": data,
5342
- "blockParams": blockParams,
5343
- "loc": {
5344
- "start": {
5345
- "line": 30,
5346
- "column": 29
5347
- },
5348
- "end": {
5349
- "line": 30,
5350
- "column": 53
5351
- }
5352
- }
5353
- }), {
5354
- "name": "if",
5355
- "hash": {},
5356
- "fn": container.program(16, data, 0, blockParams),
5357
- "inverse": container.noop,
5358
- "data": data,
5359
- "blockParams": blockParams,
5360
- "loc": {
5361
- "start": {
5362
- "line": 30,
5363
- "column": 22
5364
- },
5365
- "end": {
5366
- "line": 32,
5367
- "column": 31
5368
- }
5369
- }
5370
- })) != null ? stack1 : "") + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(helpers, "isTag").call(alias1, blockParams[0][0], {
5371
- "name": "isTag",
5372
- "hash": {},
5373
- "data": data,
5374
- "blockParams": blockParams,
5375
- "loc": {
5376
- "start": {
5377
- "line": 34,
5378
- "column": 29
5379
- },
5380
- "end": {
5381
- "line": 34,
5382
- "column": 41
5383
- }
5384
- }
5385
- }), {
5386
- "name": "if",
5387
- "hash": {},
5388
- "fn": container.program(18, data, 0, blockParams),
5389
- "inverse": container.noop,
5390
- "data": data,
5391
- "blockParams": blockParams,
5392
- "loc": {
5393
- "start": {
5394
- "line": 34,
5395
- "column": 22
5396
- },
5397
- "end": {
5398
- "line": 38,
5399
- "column": 31
5400
- }
5401
- }
5402
- })) != null ? stack1 : "") + ((stack1 = lookupProperty(helpers, "if").call(alias1, (lookupProperty(helpers, "isEvaluatable") || depth0 && lookupProperty(depth0, "isEvaluatable") || container.hooks.helperMissing).call(alias1, blockParams[0][0], {
5403
- "name": "isEvaluatable",
5404
- "hash": {},
5405
- "data": data,
5406
- "blockParams": blockParams,
5407
- "loc": {
5408
- "start": {
5409
- "line": 40,
5410
- "column": 29
5411
- },
5412
- "end": {
5413
- "line": 40,
5414
- "column": 49
5415
- }
5416
- }
5417
- }), {
5418
- "name": "if",
5419
- "hash": {},
5420
- "fn": container.program(21, data, 0, blockParams),
5421
- "inverse": container.noop,
5422
- "data": data,
5423
- "blockParams": blockParams,
5424
- "loc": {
5425
- "start": {
5426
- "line": 40,
5427
- "column": 22
5428
- },
5429
- "end": {
5430
- "line": 42,
5431
- "column": 31
5432
- }
5433
- }
5434
- })) != null ? stack1 : "");
5435
- },
5436
- "16": function(container, depth0, helpers, partials, data) {
5437
- var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
5438
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5439
- return undefined;
5440
- };
5441
- return '<td class="lyrics">' + container.escapeExpression((helper = (helper = lookupProperty(helpers, "lyrics") || (depth0 != null ? lookupProperty(depth0, "lyrics") : depth0)) != null ? helper : container.hooks.helperMissing, typeof helper === "function" ? helper.call(depth0 != null ? depth0 : container.nullContext || {}, {
5442
- "name": "lyrics",
5443
- "hash": {},
5444
- "data": data,
5445
- "loc": {
5446
- "start": {
5447
- "line": 31,
5448
- "column": 43
5449
- },
5450
- "end": {
5451
- "line": 31,
5452
- "column": 53
5453
- }
5454
- }
5455
- }) : helper)) + "</td>";
5456
- },
5457
- "18": function(container, depth0, helpers, partials, data, blockParams) {
5458
- var stack1, alias1 = depth0 != null ? depth0 : container.nullContext || {}, lookupProperty = container.lookupProperty || function(parent, propertyName) {
5459
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5460
- return undefined;
5461
- };
5462
- return (stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(helpers, "isComment").call(alias1, blockParams[1][0], {
5463
- "name": "isComment",
5464
- "hash": {},
5465
- "data": data,
5466
- "blockParams": blockParams,
5467
- "loc": {
5468
- "start": {
5469
- "line": 35,
5470
- "column": 31
5471
- },
5472
- "end": {
5473
- "line": 35,
5474
- "column": 47
5475
- }
5476
- }
5477
- }), {
5478
- "name": "if",
5479
- "hash": {},
5480
- "fn": container.program(19, data, 0, blockParams),
5481
- "inverse": container.noop,
5482
- "data": data,
5483
- "blockParams": blockParams,
5484
- "loc": {
5485
- "start": {
5486
- "line": 35,
5487
- "column": 24
5488
- },
5489
- "end": {
5490
- "line": 37,
5491
- "column": 33
5492
- }
5493
- }
5494
- })) != null ? stack1 : "";
5495
- },
5496
- "19": function(container, depth0, helpers, partials, data) {
5497
- var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
5498
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5499
- return undefined;
5500
- };
5501
- return '<td class="comment">' + container.escapeExpression((helper = (helper = lookupProperty(helpers, "value") || (depth0 != null ? lookupProperty(depth0, "value") : depth0)) != null ? helper : container.hooks.helperMissing, typeof helper === "function" ? helper.call(depth0 != null ? depth0 : container.nullContext || {}, {
5502
- "name": "value",
5503
- "hash": {},
5504
- "data": data,
5505
- "loc": {
5506
- "start": {
5507
- "line": 36,
5508
- "column": 46
5509
- },
5510
- "end": {
5511
- "line": 36,
5512
- "column": 55
5513
- }
5514
- }
5515
- }) : helper)) + "</td>";
5516
- },
5517
- "21": function(container, depth0, helpers, partials, data, blockParams) {
5518
- var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
5519
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5520
- return undefined;
5521
- };
5522
- return '<td class="lyrics">' + container.escapeExpression((lookupProperty(helpers, "evaluate") || depth0 && lookupProperty(depth0, "evaluate") || container.hooks.helperMissing).call(depth0 != null ? depth0 : container.nullContext || {}, blockParams[1][0], (stack1 = (stack1 = data && lookupProperty(data, "root")) && lookupProperty(stack1, "song")) && lookupProperty(stack1, "metadata"), (stack1 = data && lookupProperty(data, "root")) && lookupProperty(stack1, "configuration"), {
5523
- "name": "evaluate",
5524
- "hash": {},
5525
- "data": data,
5526
- "blockParams": blockParams,
5527
- "loc": {
5528
- "start": {
5529
- "line": 41,
5530
- "column": 43
5531
- },
5532
- "end": {
5533
- "line": 41,
5534
- "column": 100
5535
- }
5536
- }
5537
- })) + "</td>";
5538
- },
5539
- "compiler": [
5540
- 8,
5541
- ">= 4.3.0"
5542
- ],
5543
- "main": function(container, depth0, helpers, partials, data, blockParams) {
5544
- var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
5545
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5546
- return undefined;
5547
- };
5548
- return (stack1 = lookupProperty(helpers, "with").call(depth0 != null ? depth0 : container.nullContext || {}, depth0 != null ? lookupProperty(depth0, "song") : depth0, {
5549
- "name": "with",
5550
- "hash": {},
5551
- "fn": container.program(1, data, 0, blockParams),
5552
- "inverse": container.noop,
5553
- "data": data,
5554
- "blockParams": blockParams,
5555
- "loc": {
5556
- "start": {
5557
- "line": 1,
5558
- "column": 0
5559
- },
5560
- "end": {
5561
- "line": 53,
5562
- "column": 11
5563
- }
5564
- }
5565
- })) != null ? stack1 : "";
5566
- },
5567
- "useData": true,
5568
- "useBlockParams": true
5569
- });
4932
+
4933
+
4934
+ var $5381a6b1b90601c7$export$2e2bcd8739ae039 = ({ configuration: configuration , song: song , renderBlankLines: renderBlankLines = false , song: { title: title , subtitle: subtitle , bodyParagraphs: bodyParagraphs , bodyLines: bodyLines , metadata: metadata , } , })=>(0, $376e205ced98486b$export$6ea1b0eb82ead3f)(`
4935
+ ${(0, $376e205ced98486b$export$a55877ca9db47377)(title, ()=>`<h1>${title}</h1>`)}
4936
+ ${(0, $376e205ced98486b$export$a55877ca9db47377)(subtitle, ()=>`<h2>${subtitle}</h2>`)}
4937
+
4938
+ ${(0, $376e205ced98486b$export$a55877ca9db47377)(bodyLines.length > 0, ()=>`
4939
+ <div class="chord-sheet">
4940
+ ${(0, $376e205ced98486b$export$79b2f7037acddd43)(bodyParagraphs, (paragraph)=>`
4941
+ <div class="${(0, $376e205ced98486b$export$dcd1550c9709312c)(paragraph)}">
4942
+ ${(0, $376e205ced98486b$export$79b2f7037acddd43)(paragraph.lines, (line)=>`
4943
+ ${(0, $376e205ced98486b$export$a55877ca9db47377)(renderBlankLines || (0, $376e205ced98486b$export$3db5961874282581)(line), ()=>`
4944
+ <table class="${(0, $376e205ced98486b$export$8a559c16cc3576)(line)}">
4945
+ ${(0, $376e205ced98486b$export$a55877ca9db47377)((0, $21a34a464e7bc609$export$d332d76d125f0cbe)(line), ()=>`
4946
+ <tr>
4947
+ ${(0, $376e205ced98486b$export$79b2f7037acddd43)(line.items, (item)=>`
4948
+ ${(0, $376e205ced98486b$export$a55877ca9db47377)((0, $376e205ced98486b$export$17c9e635b932873b)(item), ()=>`
4949
+ <td class="chord">${(0, $dfecd32049fa58e9$export$596ec52955da9472)(item.chords, line.key, line.transposeKey, song)}</td>
4950
+ `)}
4951
+ `)}
4952
+ </tr>
4953
+ `)}
4954
+
4955
+ ${(0, $376e205ced98486b$export$a55877ca9db47377)((0, $376e205ced98486b$export$b8d631d9200974fa)(line), ()=>`
4956
+ <tr>
4957
+ ${(0, $376e205ced98486b$export$79b2f7037acddd43)(line.items, (item)=>`
4958
+ ${(0, $376e205ced98486b$export$a55877ca9db47377)((0, $376e205ced98486b$export$17c9e635b932873b)(item), ()=>`
4959
+ <td class="lyrics">${item.lyrics}</td>
4960
+ `)}
4961
+
4962
+ ${(0, $376e205ced98486b$export$a55877ca9db47377)((0, $376e205ced98486b$export$3bf645f08efe3292)(item) && (0, $376e205ced98486b$export$3ab01370f5e64ac8)(item), ()=>`
4963
+ <td class="comment">${item.value}</td>
4964
+ `)}
4965
+
4966
+ ${(0, $376e205ced98486b$export$a55877ca9db47377)((0, $21a34a464e7bc609$export$e3f63561d52b936d)(item), ()=>`
4967
+ <td class="lyrics">${(0, $376e205ced98486b$export$fef61f332f2c0afc)(item, metadata, configuration)}</td>
4968
+ `)}
4969
+ `)}
4970
+ </tr>
4971
+ `)}
4972
+ </table>
4973
+ `)}
4974
+ `)}
4975
+ </div>
4976
+ `)}
4977
+ </div>
4978
+ `)}
4979
+ `);
5570
4980
 
5571
4981
 
5572
4982
 
@@ -5665,484 +5075,44 @@ var $5b02ea769c63fd56$export$2e2bcd8739ae039 = $5b02ea769c63fd56$var$HtmlTableFo
5665
5075
 
5666
5076
 
5667
5077
 
5668
- var $9d647eea0a7973fb$var$template = $988mA$handlebars.template, $9d647eea0a7973fb$var$templates = $988mA$handlebars.templates = $988mA$handlebars.templates || {};
5669
- $9d647eea0a7973fb$var$templates["html_div_formatter"] = $9d647eea0a7973fb$var$template({
5670
- "1": function(container, depth0, helpers, partials, data, blockParams) {
5671
- var stack1, alias1 = depth0 != null ? depth0 : container.nullContext || {}, lookupProperty = container.lookupProperty || function(parent, propertyName) {
5672
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5673
- return undefined;
5674
- };
5675
- return ((stack1 = lookupProperty(helpers, "if").call(alias1, depth0 != null ? lookupProperty(depth0, "title") : depth0, {
5676
- "name": "if",
5677
- "hash": {},
5678
- "fn": container.program(2, data, 0, blockParams),
5679
- "inverse": container.noop,
5680
- "data": data,
5681
- "blockParams": blockParams,
5682
- "loc": {
5683
- "start": {
5684
- "line": 2,
5685
- "column": 2
5686
- },
5687
- "end": {
5688
- "line": 4,
5689
- "column": 11
5690
- }
5691
- }
5692
- })) != null ? stack1 : "") + ((stack1 = lookupProperty(helpers, "if").call(alias1, depth0 != null ? lookupProperty(depth0, "subtitle") : depth0, {
5693
- "name": "if",
5694
- "hash": {},
5695
- "fn": container.program(4, data, 0, blockParams),
5696
- "inverse": container.noop,
5697
- "data": data,
5698
- "blockParams": blockParams,
5699
- "loc": {
5700
- "start": {
5701
- "line": 6,
5702
- "column": 2
5703
- },
5704
- "end": {
5705
- "line": 8,
5706
- "column": 11
5707
- }
5708
- }
5709
- })) != null ? stack1 : "") + '<div class="chord-sheet">' + ((stack1 = lookupProperty(helpers, "each").call(alias1, depth0 != null ? lookupProperty(depth0, "bodyParagraphs") : depth0, {
5710
- "name": "each",
5711
- "hash": {},
5712
- "fn": container.program(6, data, 1, blockParams),
5713
- "inverse": container.noop,
5714
- "data": data,
5715
- "blockParams": blockParams,
5716
- "loc": {
5717
- "start": {
5718
- "line": 11,
5719
- "column": 4
5720
- },
5721
- "end": {
5722
- "line": 35,
5723
- "column": 15
5724
- }
5725
- }
5726
- })) != null ? stack1 : "") + "</div>";
5727
- },
5728
- "2": function(container, depth0, helpers, partials, data) {
5729
- var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
5730
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5731
- return undefined;
5732
- };
5733
- return "<h1>" + container.escapeExpression((helper = (helper = lookupProperty(helpers, "title") || (depth0 != null ? lookupProperty(depth0, "title") : depth0)) != null ? helper : container.hooks.helperMissing, typeof helper === "function" ? helper.call(depth0 != null ? depth0 : container.nullContext || {}, {
5734
- "name": "title",
5735
- "hash": {},
5736
- "data": data,
5737
- "loc": {
5738
- "start": {
5739
- "line": 3,
5740
- "column": 8
5741
- },
5742
- "end": {
5743
- "line": 3,
5744
- "column": 19
5745
- }
5746
- }
5747
- }) : helper)) + "</h1>";
5748
- },
5749
- "4": function(container, depth0, helpers, partials, data) {
5750
- var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
5751
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5752
- return undefined;
5753
- };
5754
- return "<h2>" + container.escapeExpression((helper = (helper = lookupProperty(helpers, "subtitle") || (depth0 != null ? lookupProperty(depth0, "subtitle") : depth0)) != null ? helper : container.hooks.helperMissing, typeof helper === "function" ? helper.call(depth0 != null ? depth0 : container.nullContext || {}, {
5755
- "name": "subtitle",
5756
- "hash": {},
5757
- "data": data,
5758
- "loc": {
5759
- "start": {
5760
- "line": 7,
5761
- "column": 8
5762
- },
5763
- "end": {
5764
- "line": 7,
5765
- "column": 22
5766
- }
5767
- }
5768
- }) : helper)) + "</h2>";
5769
- },
5770
- "6": function(container, depth0, helpers, partials, data, blockParams) {
5771
- var stack1, alias1 = depth0 != null ? depth0 : container.nullContext || {}, lookupProperty = container.lookupProperty || function(parent, propertyName) {
5772
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5773
- return undefined;
5774
- };
5775
- return '<div class="' + container.escapeExpression(lookupProperty(helpers, "paragraphClasses").call(alias1, blockParams[0][0], {
5776
- "name": "paragraphClasses",
5777
- "hash": {},
5778
- "data": data,
5779
- "blockParams": blockParams,
5780
- "loc": {
5781
- "start": {
5782
- "line": 12,
5783
- "column": 18
5784
- },
5785
- "end": {
5786
- "line": 12,
5787
- "column": 48
5788
- }
5789
- }
5790
- })) + '">' + ((stack1 = lookupProperty(helpers, "each").call(alias1, depth0 != null ? lookupProperty(depth0, "lines") : depth0, {
5791
- "name": "each",
5792
- "hash": {},
5793
- "fn": container.program(7, data, 1, blockParams),
5794
- "inverse": container.noop,
5795
- "data": data,
5796
- "blockParams": blockParams,
5797
- "loc": {
5798
- "start": {
5799
- "line": 13,
5800
- "column": 8
5801
- },
5802
- "end": {
5803
- "line": 33,
5804
- "column": 19
5805
- }
5806
- }
5807
- })) != null ? stack1 : "") + "</div>";
5808
- },
5809
- "7": function(container, depth0, helpers, partials, data, blockParams) {
5810
- var stack1, alias1 = depth0 != null ? depth0 : container.nullContext || {}, lookupProperty = container.lookupProperty || function(parent, propertyName) {
5811
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5812
- return undefined;
5813
- };
5814
- return (stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(helpers, "shouldRenderLine").call(alias1, blockParams[0][0], {
5815
- "name": "shouldRenderLine",
5816
- "hash": {},
5817
- "data": data,
5818
- "blockParams": blockParams,
5819
- "loc": {
5820
- "start": {
5821
- "line": 14,
5822
- "column": 17
5823
- },
5824
- "end": {
5825
- "line": 14,
5826
- "column": 40
5827
- }
5828
- }
5829
- }), {
5830
- "name": "if",
5831
- "hash": {},
5832
- "fn": container.program(8, data, 0, blockParams),
5833
- "inverse": container.noop,
5834
- "data": data,
5835
- "blockParams": blockParams,
5836
- "loc": {
5837
- "start": {
5838
- "line": 14,
5839
- "column": 10
5840
- },
5841
- "end": {
5842
- "line": 32,
5843
- "column": 19
5844
- }
5845
- }
5846
- })) != null ? stack1 : "";
5847
- },
5848
- "8": function(container, depth0, helpers, partials, data, blockParams) {
5849
- var stack1, alias1 = depth0 != null ? depth0 : container.nullContext || {}, lookupProperty = container.lookupProperty || function(parent, propertyName) {
5850
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5851
- return undefined;
5852
- };
5853
- return '<div class="' + container.escapeExpression(lookupProperty(helpers, "lineClasses").call(alias1, blockParams[1][0], {
5854
- "name": "lineClasses",
5855
- "hash": {},
5856
- "data": data,
5857
- "blockParams": blockParams,
5858
- "loc": {
5859
- "start": {
5860
- "line": 15,
5861
- "column": 24
5862
- },
5863
- "end": {
5864
- "line": 15,
5865
- "column": 44
5866
- }
5867
- }
5868
- })) + '">' + ((stack1 = lookupProperty(helpers, "each").call(alias1, depth0 != null ? lookupProperty(depth0, "items") : depth0, {
5869
- "name": "each",
5870
- "hash": {},
5871
- "fn": container.program(9, data, 1, blockParams),
5872
- "inverse": container.noop,
5873
- "data": data,
5874
- "blockParams": blockParams,
5875
- "loc": {
5876
- "start": {
5877
- "line": 16,
5878
- "column": 14
5879
- },
5880
- "end": {
5881
- "line": 30,
5882
- "column": 25
5883
- }
5884
- }
5885
- })) != null ? stack1 : "") + "</div>";
5886
- },
5887
- "9": function(container, depth0, helpers, partials, data, blockParams) {
5888
- var stack1, alias1 = depth0 != null ? depth0 : container.nullContext || {}, lookupProperty = container.lookupProperty || function(parent, propertyName) {
5889
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5890
- return undefined;
5891
- };
5892
- return ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(helpers, "isChordLyricsPair").call(alias1, blockParams[0][0], {
5893
- "name": "isChordLyricsPair",
5894
- "hash": {},
5895
- "data": data,
5896
- "blockParams": blockParams,
5897
- "loc": {
5898
- "start": {
5899
- "line": 17,
5900
- "column": 23
5901
- },
5902
- "end": {
5903
- "line": 17,
5904
- "column": 47
5905
- }
5906
- }
5907
- }), {
5908
- "name": "if",
5909
- "hash": {},
5910
- "fn": container.program(10, data, 0, blockParams),
5911
- "inverse": container.noop,
5912
- "data": data,
5913
- "blockParams": blockParams,
5914
- "loc": {
5915
- "start": {
5916
- "line": 17,
5917
- "column": 16
5918
- },
5919
- "end": {
5920
- "line": 19,
5921
- "column": 25
5922
- }
5923
- }
5924
- })) != null ? stack1 : "") + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(helpers, "isTag").call(alias1, blockParams[0][0], {
5925
- "name": "isTag",
5926
- "hash": {},
5927
- "data": data,
5928
- "blockParams": blockParams,
5929
- "loc": {
5930
- "start": {
5931
- "line": 21,
5932
- "column": 23
5933
- },
5934
- "end": {
5935
- "line": 21,
5936
- "column": 35
5937
- }
5938
- }
5939
- }), {
5940
- "name": "if",
5941
- "hash": {},
5942
- "fn": container.program(12, data, 0, blockParams),
5943
- "inverse": container.noop,
5944
- "data": data,
5945
- "blockParams": blockParams,
5946
- "loc": {
5947
- "start": {
5948
- "line": 21,
5949
- "column": 16
5950
- },
5951
- "end": {
5952
- "line": 25,
5953
- "column": 25
5954
- }
5955
- }
5956
- })) != null ? stack1 : "") + ((stack1 = lookupProperty(helpers, "if").call(alias1, (lookupProperty(helpers, "isEvaluatable") || depth0 && lookupProperty(depth0, "isEvaluatable") || container.hooks.helperMissing).call(alias1, blockParams[0][0], {
5957
- "name": "isEvaluatable",
5958
- "hash": {},
5959
- "data": data,
5960
- "blockParams": blockParams,
5961
- "loc": {
5962
- "start": {
5963
- "line": 27,
5964
- "column": 23
5965
- },
5966
- "end": {
5967
- "line": 27,
5968
- "column": 43
5969
- }
5970
- }
5971
- }), {
5972
- "name": "if",
5973
- "hash": {},
5974
- "fn": container.program(15, data, 0, blockParams),
5975
- "inverse": container.noop,
5976
- "data": data,
5977
- "blockParams": blockParams,
5978
- "loc": {
5979
- "start": {
5980
- "line": 27,
5981
- "column": 16
5982
- },
5983
- "end": {
5984
- "line": 29,
5985
- "column": 25
5986
- }
5987
- }
5988
- })) != null ? stack1 : "");
5989
- },
5990
- "10": function(container, depth0, helpers, partials, data, blockParams) {
5991
- var stack1, helper, alias1 = depth0 != null ? depth0 : container.nullContext || {}, alias2 = container.hooks.helperMissing, alias3 = container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
5992
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5993
- return undefined;
5994
- };
5995
- return '<div class="column"><div class="chord">' + alias3((lookupProperty(helpers, "renderChord") || depth0 && lookupProperty(depth0, "renderChord") || alias2).call(alias1, depth0 != null ? lookupProperty(depth0, "chords") : depth0, (stack1 = blockParams[3][0]) != null ? lookupProperty(stack1, "key") : stack1, (stack1 = blockParams[3][0]) != null ? lookupProperty(stack1, "transposeKey") : stack1, (stack1 = data && lookupProperty(data, "root")) && lookupProperty(stack1, "song"), {
5996
- "name": "renderChord",
5997
- "hash": {},
5998
- "data": data,
5999
- "blockParams": blockParams,
6000
- "loc": {
6001
- "start": {
6002
- "line": 18,
6003
- "column": 57
6004
- },
6005
- "end": {
6006
- "line": 18,
6007
- "column": 117
6008
- }
6009
- }
6010
- })) + '</div><div class="lyrics">' + alias3((helper = (helper = lookupProperty(helpers, "lyrics") || (depth0 != null ? lookupProperty(depth0, "lyrics") : depth0)) != null ? helper : alias2, typeof helper === "function" ? helper.call(alias1, {
6011
- "name": "lyrics",
6012
- "hash": {},
6013
- "data": data,
6014
- "blockParams": blockParams,
6015
- "loc": {
6016
- "start": {
6017
- "line": 18,
6018
- "column": 143
6019
- },
6020
- "end": {
6021
- "line": 18,
6022
- "column": 153
6023
- }
6024
- }
6025
- }) : helper)) + "</div></div>";
6026
- },
6027
- "12": function(container, depth0, helpers, partials, data, blockParams) {
6028
- var stack1, alias1 = depth0 != null ? depth0 : container.nullContext || {}, lookupProperty = container.lookupProperty || function(parent, propertyName) {
6029
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
6030
- return undefined;
6031
- };
6032
- return (stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(helpers, "isComment").call(alias1, blockParams[1][0], {
6033
- "name": "isComment",
6034
- "hash": {},
6035
- "data": data,
6036
- "blockParams": blockParams,
6037
- "loc": {
6038
- "start": {
6039
- "line": 22,
6040
- "column": 25
6041
- },
6042
- "end": {
6043
- "line": 22,
6044
- "column": 41
6045
- }
6046
- }
6047
- }), {
6048
- "name": "if",
6049
- "hash": {},
6050
- "fn": container.program(13, data, 0, blockParams),
6051
- "inverse": container.noop,
6052
- "data": data,
6053
- "blockParams": blockParams,
6054
- "loc": {
6055
- "start": {
6056
- "line": 22,
6057
- "column": 18
6058
- },
6059
- "end": {
6060
- "line": 24,
6061
- "column": 27
6062
- }
6063
- }
6064
- })) != null ? stack1 : "";
6065
- },
6066
- "13": function(container, depth0, helpers, partials, data) {
6067
- var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
6068
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
6069
- return undefined;
6070
- };
6071
- return '<div class="comment">' + container.escapeExpression((helper = (helper = lookupProperty(helpers, "value") || (depth0 != null ? lookupProperty(depth0, "value") : depth0)) != null ? helper : container.hooks.helperMissing, typeof helper === "function" ? helper.call(depth0 != null ? depth0 : container.nullContext || {}, {
6072
- "name": "value",
6073
- "hash": {},
6074
- "data": data,
6075
- "loc": {
6076
- "start": {
6077
- "line": 23,
6078
- "column": 41
6079
- },
6080
- "end": {
6081
- "line": 23,
6082
- "column": 50
6083
- }
6084
- }
6085
- }) : helper)) + "</div>";
6086
- },
6087
- "15": function(container, depth0, helpers, partials, data, blockParams) {
6088
- var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
6089
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
6090
- return undefined;
6091
- };
6092
- return '<div class="column"><div class="chord"></div><div class="lyrics">' + container.escapeExpression((lookupProperty(helpers, "evaluate") || depth0 && lookupProperty(depth0, "evaluate") || container.hooks.helperMissing).call(depth0 != null ? depth0 : container.nullContext || {}, blockParams[1][0], (stack1 = (stack1 = data && lookupProperty(data, "root")) && lookupProperty(stack1, "song")) && lookupProperty(stack1, "metadata"), (stack1 = data && lookupProperty(data, "root")) && lookupProperty(stack1, "configuration"), {
6093
- "name": "evaluate",
6094
- "hash": {},
6095
- "data": data,
6096
- "blockParams": blockParams,
6097
- "loc": {
6098
- "start": {
6099
- "line": 28,
6100
- "column": 83
6101
- },
6102
- "end": {
6103
- "line": 28,
6104
- "column": 140
6105
- }
6106
- }
6107
- })) + "</div></div>";
6108
- },
6109
- "compiler": [
6110
- 8,
6111
- ">= 4.3.0"
6112
- ],
6113
- "main": function(container, depth0, helpers, partials, data, blockParams) {
6114
- var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
6115
- if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
6116
- return undefined;
6117
- };
6118
- return (stack1 = lookupProperty(helpers, "with").call(depth0 != null ? depth0 : container.nullContext || {}, depth0 != null ? lookupProperty(depth0, "song") : depth0, {
6119
- "name": "with",
6120
- "hash": {},
6121
- "fn": container.program(1, data, 0, blockParams),
6122
- "inverse": container.noop,
6123
- "data": data,
6124
- "blockParams": blockParams,
6125
- "loc": {
6126
- "start": {
6127
- "line": 1,
6128
- "column": 0
6129
- },
6130
- "end": {
6131
- "line": 37,
6132
- "column": 11
6133
- }
6134
- }
6135
- })) != null ? stack1 : "";
6136
- },
6137
- "useData": true,
6138
- "useBlockParams": true
6139
- });
6140
-
6141
5078
 
5079
+ var $93f055b77b2d269f$export$2e2bcd8739ae039 = ({ configuration: configuration , song: song , renderBlankLines: renderBlankLines = false , song: { title: title , subtitle: subtitle , bodyParagraphs: bodyParagraphs , metadata: metadata , } , })=>(0, $376e205ced98486b$export$6ea1b0eb82ead3f)(`
5080
+ ${(0, $376e205ced98486b$export$a55877ca9db47377)(title, ()=>`<h1>${title}</h1>`)}
5081
+ ${(0, $376e205ced98486b$export$a55877ca9db47377)(subtitle, ()=>`<h2>${subtitle}</h2>`)}
5082
+
5083
+ <div class="chord-sheet">
5084
+ ${(0, $376e205ced98486b$export$79b2f7037acddd43)(bodyParagraphs, (paragraph)=>`
5085
+ <div class="${(0, $376e205ced98486b$export$dcd1550c9709312c)(paragraph)}">
5086
+ ${(0, $376e205ced98486b$export$79b2f7037acddd43)(paragraph.lines, (line)=>`
5087
+ ${(0, $376e205ced98486b$export$a55877ca9db47377)(renderBlankLines || (0, $376e205ced98486b$export$3db5961874282581)(line), ()=>`
5088
+ <div class="${(0, $376e205ced98486b$export$8a559c16cc3576)(line)}">
5089
+ ${(0, $376e205ced98486b$export$79b2f7037acddd43)(line.items, (item)=>`
5090
+ ${(0, $376e205ced98486b$export$a55877ca9db47377)((0, $376e205ced98486b$export$17c9e635b932873b)(item), ()=>`
5091
+ <div class="column">
5092
+ <div class="chord">${(0, $dfecd32049fa58e9$export$596ec52955da9472)(item.chords, line.key, line.transposeKey, song)}</div>
5093
+ <div class="lyrics">${item.lyrics}</div>
5094
+ </div>
5095
+ `)}
5096
+
5097
+ ${(0, $376e205ced98486b$export$a55877ca9db47377)((0, $376e205ced98486b$export$3bf645f08efe3292)(item) && (0, $376e205ced98486b$export$3ab01370f5e64ac8)(item), ()=>`<div class="comment">${item.value}</div>`)}
5098
+
5099
+ ${(0, $376e205ced98486b$export$a55877ca9db47377)((0, $21a34a464e7bc609$export$e3f63561d52b936d)(item), ()=>`
5100
+ <div class="column">
5101
+ <div class="chord"></div>
5102
+ <div class="lyrics">${(0, $376e205ced98486b$export$fef61f332f2c0afc)(item, metadata, configuration)}</div>
5103
+ </div>
5104
+ `)}
5105
+ `)}
5106
+ </div>
5107
+ `)}
5108
+ `)}
5109
+ </div>
5110
+ `)}
5111
+ </div>
5112
+ `);
6142
5113
 
6143
5114
 
6144
5115
 
6145
- const { html_div_formatter: $ee0c149cc33dc156$var$template } = (0, ($parcel$interopDefault($988mA$handlebars))).templates;
6146
5116
  const $ee0c149cc33dc156$var$defaultCss = {
6147
5117
  ".chord:not(:last-child)": {
6148
5118
  paddingRight: "10px"
@@ -6168,7 +5138,7 @@ const $ee0c149cc33dc156$var$defaultCss = {
6168
5138
  * @param {Song} song The song to be formatted
6169
5139
  * @returns {string} The HTML string
6170
5140
  */ format(song) {
6171
- return this.formatWithTemplate(song, $ee0c149cc33dc156$var$template);
5141
+ return this.formatWithTemplate(song, (0, $93f055b77b2d269f$export$2e2bcd8739ae039));
6172
5142
  }
6173
5143
  /**
6174
5144
  * Generates basic CSS, optionally scoped within the provided selector, to use with output generated by