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

`,position:{start:363,end:365}},{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:365,end:433}},position:{start:365,end:433}},{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:434,end:516}},position:{start:434,end:516}},{type:"logic",token:{type:"Twig.logic.type.set",key:"alt",expression:[{type:"Twig.expression.type.subexpression.end",value:")",match:[")"],expression:!0,params:[{type:"Twig.expression.type.variable",value:"alt",match:["alt"]},{type:"Twig.expression.type.string",value:'""'},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}]},{type:"Twig.expression.type.string",value:""},{type:"Twig.expression.type.variable",value:"alt",match:["alt"]},{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.operator.binary",value:"?",precidence:16,associativity:"rightToLeft",operator:"?"}],position:{start:517,end:569}},position:{start:517,end:569}},{type:"raw",value:"",position:{start:570,end:571}},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"url",match:["url"]},{type:"Twig.expression.type.test",filter:"empty",modifier:"not"}],position:{start:571,end:596},output:[{type:"raw",value:`  <img
    class="ct-image `,position:{start:597,end:624}},{type:"output_whitespace_post",position:{start:624,end:645},stack:[{type:"Twig.expression.type.variable",value:"modifier_class",match:["modifier_class"],position:{start:624,end:645}}]},{type:"raw",value:`"
    src="`,position:{start:645,end:656}},{type:"output",position:{start:656,end:665},stack:[{type:"Twig.expression.type.variable",value:"url",match:["url"],position:{start:656,end:665}}]},{type:"raw",value:`"
    alt="`,position:{start:665,end:676}},{type:"output",position:{start:676,end:685},stack:[{type:"Twig.expression.type.variable",value:"alt",match:["alt"],position:{start:676,end:685}}]},{type:"raw",value:`"
    `,position:{start:685,end:691}},{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:691,end:718},output:[{type:"raw",value:'width="',position:{start:718,end:725}},{type:"output",position:{start:725,end:736},stack:[{type:"Twig.expression.type.variable",value:"width",match:["width"],position:{start:725,end:736}}]},{type:"raw",value:'"',position:{start:736,end:737}}]},position:{open:{start:691,end:718},close:{start:737,end:748}}},{type:"raw",value:"    ",position:{start:749,end:753}},{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:753,end:781},output:[{type:"raw",value:'height="',position:{start:781,end:789}},{type:"output",position:{start:789,end:801},stack:[{type:"Twig.expression.type.variable",value:"height",match:["height"],position:{start:789,end:801}}]},{type:"raw",value:'"',position:{start:801,end:802}}]},position:{open:{start:753,end:781},close:{start:802,end:813}}},{type:"raw",value:"    ",position:{start:814,end:818}},{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:818,end:850},output:[{type:"output_whitespace_both",position:{start:850,end:872},stack:[{type:"Twig.expression.type.variable",value:"attributes",match:["attributes"],position:{start:850,end:872}},{type:"Twig.expression.type.filter",value:"raw",match:["|raw","raw"],position:{start:850,end:872}}]}]},position:{open:{start:818,end:850},close:{start:872,end:883}}},{type:"raw",value:`  />
`,position:{start:884,end:889}}]},position:{open:{start:571,end:596},close:{start:889,end:900}}}],precompiled:!0});i.options.allowInlineIncludes=!0;try{let e=t.defaultAttributes?t.defaultAttributes:[];return Array.isArray(e)||(e=Object.entries(e)),a(i.render({attributes:new r(e),...t}))}catch(e){return a("An error occurred whilst rendering /app/web/themes/contrib/civictheme/components/01-atoms/image/image.twig: "+e.toString())}};export{l as C};
