// phpcs:ignoreFile
import{t as a,D as o,a as r,T as p}from"./twig-TIIEE6v_.js";r(p);p.cache(!1);const s=t=>t,y=(t={})=>{const i=a.twig({id:"/app/web/themes/contrib/civictheme/components/01-atoms/video/video.twig",data:[{type:"raw",value:`

`,position:{start:666,end:668}},{type:"logic",token:{type:"Twig.logic.type.set",key:"theme_class",expression:[{type:"Twig.expression.type.string",value:"ct-theme-%s"},{type:"Twig.expression.type.filter",value:"format",match:["|format","format"],params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.variable",value:"theme",match:["theme"]},{type:"Twig.expression.type.filter",value:"default",match:["|default","default"],params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.string",value:"light"},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]}],position:{start:668,end:736}},position:{start:668,end:736}},{type:"logic",token:{type:"Twig.logic.type.set",key:"modifier_class",expression:[{type:"Twig.expression.type.string",value:"%s %s"},{type:"Twig.expression.type.filter",value:"format",match:["|format","format"],params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.variable",value:"theme_class",match:["theme_class"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.variable",value:"modifier_class",match:["modifier_class"]},{type:"Twig.expression.type.filter",value:"default",match:["|default","default"],params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.string",value:""},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]}],position:{start:737,end:819}},position:{start:737,end:819}},{type:"raw",value:"",position:{start:820,end:821}},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"sources",match:["sources"]},{type:"Twig.expression.type.test",filter:"empty",modifier:"not"}],position:{start:821,end:850},output:[{type:"raw",value:"  ",position:{start:851,end:853}},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"fallback_text",match:["fallback_text"]},{type:"Twig.expression.type.test",filter:"empty"}],position:{start:853,end:884},output:[{type:"raw",value:"    ",position:{start:885,end:889}},{type:"logic",token:{type:"Twig.logic.type.set",key:"fallback_text",expression:[{type:"Twig.expression.type.string",value:"Your browser doesn't support HTML5 video."}],position:{start:889,end:958}},position:{start:889,end:958}},{type:"raw",value:"  ",position:{start:959,end:961}}]},position:{open:{start:853,end:884},close:{start:961,end:972}}},{type:"raw",value:`
  `,position:{start:973,end:976}},{type:"logic",token:{type:"Twig.logic.type.set",key:"attributes",expression:[{type:"Twig.expression.type.variable",value:"attributes",match:["attributes"]},{type:"Twig.expression.type.filter",value:"default",match:["|default","default"],params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.string",value:""},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]}],position:{start:976,end:1021}},position:{start:976,end:1021}},{type:"raw",value:`
  `,position:{start:1022,end:1025}},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"title",match:["title"]},{type:"Twig.expression.type.test",filter:"empty",modifier:"not"}],position:{start:1025,end:1052},output:[{type:"raw",value:"    ",position:{start:1053,end:1057}},{type:"logic",token:{type:"Twig.logic.type.set",key:"attributes",expression:[{type:"Twig.expression.type.variable",value:"attributes",match:["attributes"]},{type:"Twig.expression.type.string",value:'title="'},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.variable",value:"title",match:["title"]},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.string",value:'"'},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}],position:{start:1057,end:1116}},position:{start:1057,end:1116}},{type:"raw",value:"  ",position:{start:1117,end:1119}}]},position:{open:{start:1025,end:1052},close:{start:1119,end:1130}}},{type:"raw",value:`
  `,position:{start:1131,end:1134}},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"has_controls",match:["has_controls"]}],position:{start:1134,end:1155},output:[{type:"raw",value:"    ",position:{start:1156,end:1160}},{type:"logic",token:{type:"Twig.logic.type.set",key:"attributes",expression:[{type:"Twig.expression.type.variable",value:"attributes",match:["attributes"]},{type:"Twig.expression.type.string",value:'controls=""'},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}],position:{start:1160,end:1209}},position:{start:1160,end:1209}},{type:"raw",value:"  ",position:{start:1210,end:1212}}]},position:{open:{start:1134,end:1155},close:{start:1212,end:1223}}},{type:"raw",value:`
  `,position:{start:1224,end:1227}},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"poster",match:["poster"]},{type:"Twig.expression.type.test",filter:"empty",modifier:"not"}],position:{start:1227,end:1255},output:[{type:"raw",value:"    ",position:{start:1256,end:1260}},{type:"logic",token:{type:"Twig.logic.type.set",key:"attributes",expression:[{type:"Twig.expression.type.variable",value:"attributes",match:["attributes"]},{type:"Twig.expression.type.string",value:'poster="'},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.variable",value:"poster",match:["poster"]},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.string",value:'"'},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}],position:{start:1260,end:1321}},position:{start:1260,end:1321}},{type:"raw",value:"  ",position:{start:1322,end:1324}}]},position:{open:{start:1227,end:1255},close:{start:1324,end:1335}}},{type:"raw",value:`
  `,position:{start:1336,end:1339}},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"width",match:["width"]},{type:"Twig.expression.type.test",filter:"empty",modifier:"not"}],position:{start:1339,end:1366},output:[{type:"raw",value:"    ",position:{start:1367,end:1371}},{type:"logic",token:{type:"Twig.logic.type.set",key:"attributes",expression:[{type:"Twig.expression.type.variable",value:"attributes",match:["attributes"]},{type:"Twig.expression.type.string",value:'width="'},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.variable",value:"width",match:["width"]},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.string",value:'"'},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}],position:{start:1371,end:1430}},position:{start:1371,end:1430}},{type:"raw",value:"  ",position:{start:1431,end:1433}}]},position:{open:{start:1339,end:1366},close:{start:1433,end:1444}}},{type:"raw",value:`
  `,position:{start:1445,end:1448}},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"height",match:["height"]},{type:"Twig.expression.type.test",filter:"empty",modifier:"not"}],position:{start:1448,end:1476},output:[{type:"raw",value:"    ",position:{start:1477,end:1481}},{type:"logic",token:{type:"Twig.logic.type.set",key:"attributes",expression:[{type:"Twig.expression.type.variable",value:"attributes",match:["attributes"]},{type:"Twig.expression.type.string",value:'height="'},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.variable",value:"height",match:["height"]},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.string",value:'"'},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}],position:{start:1481,end:1542}},position:{start:1481,end:1542}},{type:"raw",value:"  ",position:{start:1543,end:1545}}]},position:{open:{start:1448,end:1476},close:{start:1545,end:1556}}},{type:"raw",value:`
  <video class="ct-video `,position:{start:1557,end:1583}},{type:"output_whitespace_post",position:{start:1583,end:1604},stack:[{type:"Twig.expression.type.variable",value:"modifier_class",match:["modifier_class"],position:{start:1583,end:1604}}]},{type:"raw",value:'" ',position:{start:1604,end:1606}},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"attributes",match:["attributes"]},{type:"Twig.expression.type.test",filter:"empty",modifier:"not"}],position:{start:1606,end:1638},output:[{type:"output_whitespace_both",position:{start:1638,end:1660},stack:[{type:"Twig.expression.type.variable",value:"attributes",match:["attributes"],position:{start:1638,end:1660}},{type:"Twig.expression.type.filter",value:"raw",match:["|raw","raw"],position:{start:1638,end:1660}}]}]},position:{open:{start:1606,end:1638},close:{start:1660,end:1671}}},{type:"raw",value:`>
    `,position:{start:1671,end:1677}},{type:"logic",token:{type:"Twig.logic.type.for",keyVar:null,valueVar:"source",expression:[{type:"Twig.expression.type.variable",value:"sources",match:["sources"]}],position:{start:1677,end:1704},output:[{type:"raw",value:'      <source src="',position:{start:1705,end:1724}},{type:"output",position:{start:1724,end:1740},stack:[{type:"Twig.expression.type.variable",value:"source",match:["source"],position:{start:1724,end:1740}},{type:"Twig.expression.type.key.period",position:{start:1724,end:1740},key:"url"}]},{type:"raw",value:'" type="',position:{start:1740,end:1748}},{type:"output",position:{start:1748,end:1765},stack:[{type:"Twig.expression.type.variable",value:"source",match:["source"],position:{start:1748,end:1765}},{type:"Twig.expression.type.key.period",position:{start:1748,end:1765},key:"type"}]},{type:"raw",value:`"/>
    `,position:{start:1765,end:1773}}]},position:{open:{start:1677,end:1704},close:{start:1773,end:1785}}},{type:"raw",value:"    ",position:{start:1786,end:1790}},{type:"output",position:{start:1790,end:1809},stack:[{type:"Twig.expression.type.variable",value:"fallback_text",match:["fallback_text"],position:{start:1790,end:1809}}]},{type:"raw",value:`
  </video>
`,position:{start:1809,end:1821}}]},position:{open:{start:821,end:850},close:{start:1821,end:1832}}}],precompiled:!0});i.options.allowInlineIncludes=!0;try{let e=t.defaultAttributes?t.defaultAttributes:[];return Array.isArray(e)||(e=Object.entries(e)),s(i.render({attributes:new o(e),...t}))}catch(e){return s("An error occurred whilst rendering /app/web/themes/contrib/civictheme/components/01-atoms/video/video.twig: "+e.toString())}};export{y as C};
