You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

184 lines
16 KiB

  1. define(['handlebars.runtime'], function(Handlebars) {
  2. this["templates"] = this["templates"] || {};
  3. this["templates"]["drupal_admin_drawer"] = this["templates"]["drupal_admin_drawer"] || {};
  4. Handlebars.registerPartial("html", Handlebars.template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
  5. var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", lookupProperty = container.lookupProperty || function(parent, propertyName) {
  6. if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
  7. return parent[propertyName];
  8. }
  9. return undefined
  10. };
  11. return "<h2>"
  12. + container.escapeExpression(((helper = (helper = lookupProperty(helpers,"name") || (depth0 != null ? lookupProperty(depth0,"name") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"name","hash":{},"data":data,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":14}}}) : helper)))
  13. + "</h2>\n"
  14. + ((stack1 = ((helper = (helper = lookupProperty(helpers,"html") || (depth0 != null ? lookupProperty(depth0,"html") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"html","hash":{},"data":data,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":12}}}) : helper))) != null ? stack1 : "")
  15. + "\n";
  16. },"useData":true}));
  17. Handlebars.registerPartial("links", Handlebars.template({"1":function(container,depth0,helpers,partials,data) {
  18. var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
  19. if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
  20. return parent[propertyName];
  21. }
  22. return undefined
  23. };
  24. return " <li class=\"admin-drawer-"
  25. + alias4(((helper = (helper = lookupProperty(helpers,"type") || (depth0 != null ? lookupProperty(depth0,"type") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"type","hash":{},"data":data,"loc":{"start":{"line":4,"column":28},"end":{"line":4,"column":38}}}) : helper)))
  26. + "\"><a href=\""
  27. + alias4(((helper = (helper = lookupProperty(helpers,"url") || (depth0 != null ? lookupProperty(depth0,"url") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"url","hash":{},"data":data,"loc":{"start":{"line":4,"column":49},"end":{"line":4,"column":58}}}) : helper)))
  28. + "\">"
  29. + alias4(((helper = (helper = lookupProperty(helpers,"label") || (depth0 != null ? lookupProperty(depth0,"label") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"label","hash":{},"data":data,"loc":{"start":{"line":4,"column":60},"end":{"line":4,"column":71}}}) : helper)))
  30. + "</a></li>\n";
  31. },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
  32. var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {
  33. if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
  34. return parent[propertyName];
  35. }
  36. return undefined
  37. };
  38. return "<h2>"
  39. + container.escapeExpression(((helper = (helper = lookupProperty(helpers,"name") || (depth0 != null ? lookupProperty(depth0,"name") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(alias1,{"name":"name","hash":{},"data":data,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":14}}}) : helper)))
  40. + "</h2>\n<ul class=\"list-caret\">\n"
  41. + ((stack1 = lookupProperty(helpers,"each").call(alias1,(depth0 != null ? lookupProperty(depth0,"links") : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":3,"column":4},"end":{"line":5,"column":13}}})) != null ? stack1 : "")
  42. + "</ul>\n";
  43. },"useData":true}));
  44. Handlebars.registerPartial("multi", Handlebars.template({"1":function(container,depth0,helpers,partials,data) {
  45. var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, lookupProperty = container.lookupProperty || function(parent, propertyName) {
  46. if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
  47. return parent[propertyName];
  48. }
  49. return undefined
  50. };
  51. return "\n"
  52. + ((stack1 = (lookupProperty(helpers,"ifCond")||(depth0 && lookupProperty(depth0,"ifCond"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"type") : depth0),"==","links",{"name":"ifCond","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":3,"column":4},"end":{"line":5,"column":15}}})) != null ? stack1 : "")
  53. + "\n"
  54. + ((stack1 = (lookupProperty(helpers,"ifCond")||(depth0 && lookupProperty(depth0,"ifCond"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"type") : depth0),"==","html",{"name":"ifCond","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":7,"column":4},"end":{"line":9,"column":15}}})) != null ? stack1 : "")
  55. + "\n"
  56. + ((stack1 = (lookupProperty(helpers,"ifCond")||(depth0 && lookupProperty(depth0,"ifCond"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"type") : depth0),"==","multi",{"name":"ifCond","hash":{},"fn":container.program(6, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":11,"column":4},"end":{"line":13,"column":15}}})) != null ? stack1 : "")
  57. + "\n";
  58. },"2":function(container,depth0,helpers,partials,data) {
  59. var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
  60. if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
  61. return parent[propertyName];
  62. }
  63. return undefined
  64. };
  65. return ((stack1 = container.invokePartial(lookupProperty(partials,"links"),depth0,{"name":"links","hash":{"links":(depth0 != null ? lookupProperty(depth0,"links") : depth0)},"data":data,"indent":" ","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "");
  66. },"4":function(container,depth0,helpers,partials,data) {
  67. var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
  68. if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
  69. return parent[propertyName];
  70. }
  71. return undefined
  72. };
  73. return ((stack1 = container.invokePartial(lookupProperty(partials,"html"),depth0,{"name":"html","hash":{"html":(depth0 != null ? lookupProperty(depth0,"html") : depth0)},"data":data,"indent":" ","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "");
  74. },"6":function(container,depth0,helpers,partials,data) {
  75. var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
  76. if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
  77. return parent[propertyName];
  78. }
  79. return undefined
  80. };
  81. return ((stack1 = container.invokePartial(lookupProperty(partials,"multi"),depth0,{"name":"multi","hash":{"contents":(depth0 != null ? lookupProperty(depth0,"contents") : depth0)},"data":data,"indent":" ","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "");
  82. },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
  83. var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
  84. if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
  85. return parent[propertyName];
  86. }
  87. return undefined
  88. };
  89. return ((stack1 = lookupProperty(helpers,"each").call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,"contents") : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":1,"column":0},"end":{"line":15,"column":9}}})) != null ? stack1 : "")
  90. + "\n";
  91. },"usePartial":true,"useData":true}));
  92. this["templates"]["drupal_admin_drawer"]["main"] = Handlebars.template({"1":function(container,depth0,helpers,partials,data) {
  93. var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4="function", lookupProperty = container.lookupProperty || function(parent, propertyName) {
  94. if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
  95. return parent[propertyName];
  96. }
  97. return undefined
  98. };
  99. return " <li><a href=\"#admin-drawer-"
  100. + alias3((lookupProperty(helpers,"slug")||(depth0 && lookupProperty(depth0,"slug"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"name") : depth0),{"name":"slug","hash":{},"data":data,"loc":{"start":{"line":5,"column":39},"end":{"line":5,"column":54}}}))
  101. + "\" class=\"toggler\" title=\""
  102. + alias3(((helper = (helper = lookupProperty(helpers,"name") || (depth0 != null ? lookupProperty(depth0,"name") : depth0)) != null ? helper : alias2),(typeof helper === alias4 ? helper.call(alias1,{"name":"name","hash":{},"data":data,"loc":{"start":{"line":5,"column":79},"end":{"line":5,"column":89}}}) : helper)))
  103. + "\" data-target=\"#admin-drawer-"
  104. + alias3((lookupProperty(helpers,"slug")||(depth0 && lookupProperty(depth0,"slug"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"name") : depth0),{"name":"slug","hash":{},"data":data,"loc":{"start":{"line":5,"column":118},"end":{"line":5,"column":133}}}))
  105. + "\"><span class=\"sr-only\">"
  106. + alias3(((helper = (helper = lookupProperty(helpers,"name") || (depth0 != null ? lookupProperty(depth0,"name") : depth0)) != null ? helper : alias2),(typeof helper === alias4 ? helper.call(alias1,{"name":"name","hash":{},"data":data,"loc":{"start":{"line":5,"column":157},"end":{"line":5,"column":167}}}) : helper)))
  107. + "</span><span class=\""
  108. + alias3(((helper = (helper = lookupProperty(helpers,"icon") || (depth0 != null ? lookupProperty(depth0,"icon") : depth0)) != null ? helper : alias2),(typeof helper === alias4 ? helper.call(alias1,{"name":"icon","hash":{},"data":data,"loc":{"start":{"line":5,"column":187},"end":{"line":5,"column":197}}}) : helper)))
  109. + "\" aria-hidden=\"true\"></span></a></li>\n";
  110. },"3":function(container,depth0,helpers,partials,data) {
  111. var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, lookupProperty = container.lookupProperty || function(parent, propertyName) {
  112. if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
  113. return parent[propertyName];
  114. }
  115. return undefined
  116. };
  117. return " <div class=\"drawer\" id=\"admin-drawer-"
  118. + container.escapeExpression((lookupProperty(helpers,"slug")||(depth0 && lookupProperty(depth0,"slug"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"name") : depth0),{"name":"slug","hash":{},"data":data,"loc":{"start":{"line":12,"column":45},"end":{"line":12,"column":60}}}))
  119. + "\">\n\n"
  120. + ((stack1 = (lookupProperty(helpers,"ifCond")||(depth0 && lookupProperty(depth0,"ifCond"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"type") : depth0),"==","links",{"name":"ifCond","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":14,"column":12},"end":{"line":16,"column":23}}})) != null ? stack1 : "")
  121. + "\n"
  122. + ((stack1 = (lookupProperty(helpers,"ifCond")||(depth0 && lookupProperty(depth0,"ifCond"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"type") : depth0),"==","html",{"name":"ifCond","hash":{},"fn":container.program(6, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":18,"column":12},"end":{"line":20,"column":23}}})) != null ? stack1 : "")
  123. + "\n"
  124. + ((stack1 = (lookupProperty(helpers,"ifCond")||(depth0 && lookupProperty(depth0,"ifCond"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,"type") : depth0),"==","multi",{"name":"ifCond","hash":{},"fn":container.program(8, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":22,"column":12},"end":{"line":24,"column":23}}})) != null ? stack1 : "")
  125. + "\n </div>\n";
  126. },"4":function(container,depth0,helpers,partials,data) {
  127. var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
  128. if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
  129. return parent[propertyName];
  130. }
  131. return undefined
  132. };
  133. return ((stack1 = container.invokePartial(lookupProperty(partials,"links"),depth0,{"name":"links","hash":{"links":(depth0 != null ? lookupProperty(depth0,"links") : depth0)},"data":data,"indent":" ","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "");
  134. },"6":function(container,depth0,helpers,partials,data) {
  135. var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
  136. if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
  137. return parent[propertyName];
  138. }
  139. return undefined
  140. };
  141. return ((stack1 = container.invokePartial(lookupProperty(partials,"html"),depth0,{"name":"html","hash":{"html":(depth0 != null ? lookupProperty(depth0,"html") : depth0)},"data":data,"indent":" ","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "");
  142. },"8":function(container,depth0,helpers,partials,data) {
  143. var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
  144. if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
  145. return parent[propertyName];
  146. }
  147. return undefined
  148. };
  149. return ((stack1 = container.invokePartial(lookupProperty(partials,"multi"),depth0,{"name":"multi","hash":{"contents":(depth0 != null ? lookupProperty(depth0,"contents") : depth0)},"data":data,"indent":" ","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "");
  150. },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
  151. var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {
  152. if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
  153. return parent[propertyName];
  154. }
  155. return undefined
  156. };
  157. return "<div class=\"admin-drawer admin-drawer-red\">\n <nav class=\"drawer-nav\">\n <ul>\n"
  158. + ((stack1 = lookupProperty(helpers,"each").call(alias1,(depth0 != null ? lookupProperty(depth0,"data") : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":4,"column":12},"end":{"line":6,"column":21}}})) != null ? stack1 : "")
  159. + " </ul>\n </nav>\n <div class=\"drawers\">\n\n"
  160. + ((stack1 = lookupProperty(helpers,"each").call(alias1,(depth0 != null ? lookupProperty(depth0,"data") : depth0),{"name":"each","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":11,"column":8},"end":{"line":27,"column":17}}})) != null ? stack1 : "")
  161. + "\n </div>\n</div>\n";
  162. },"usePartial":true,"useData":true});
  163. return this["templates"];
  164. });