$context["parent_class"]=((array_key_exists("parent_class",$context))?(_twig_default_filter((isset($context["parent_class"])||array_key_exists("parent_class",$context)?$context["parent_class"]:(function(){thrownewRuntimeError('Variable "parent_class" does not exist.',4,$this->source);})()),((twig_get_attribute($this->env,$this->source,($context["attr"]??null),"class",[],"any",true,true,false,4))?(_twig_default_filter(twig_get_attribute($this->env,$this->source,($context["attr"]??null),"class",[],"any",false,false,false,4),"")):("")))):(((twig_get_attribute($this->env,$this->source,($context["attr"]??null),"class",[],"any",true,true,false,4))?(_twig_default_filter(twig_get_attribute($this->env,$this->source,($context["attr"]??null),"class",[],"any",false,false,false,4),"")):(""))));
// line 5
if(twig_in_filter("switch-input",(isset($context["parent_class"])||array_key_exists("parent_class",$context)?$context["parent_class"]:(function(){thrownewRuntimeError('Variable "parent_class" does not exist.',5,$this->source);})()))){
// line 6
echo$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"])||array_key_exists("form",$context)?$context["form"]:(function(){thrownewRuntimeError('Variable "form" does not exist.',6,$this->source);})()),'label');
// line 7
$context["attr"]=twig_array_merge((isset($context["attr"])||array_key_exists("attr",$context)?$context["attr"]:(function(){thrownewRuntimeError('Variable "attr" does not exist.',7,$this->source);})()),["class"=>twig_trim_filter((((twig_get_attribute($this->env,$this->source,($context["attr"]??null),"class",[],"any",true,true,false,7))?(_twig_default_filter(twig_get_attribute($this->env,$this->source,($context["attr"]??null),"class",[],"any",false,false,false,7),"")):(""))." switch-input"))]);
// line 8
echo$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"])||array_key_exists("form",$context)?$context["form"]:(function(){thrownewRuntimeError('Variable "form" does not exist.',8,$this->source);})()),'widget');
// line 9
echo"<label class=\"switch-paddle\" for=\"";
echotwig_escape_filter($this->env,twig_get_attribute($this->env,$this->source,twig_get_attribute($this->env,$this->source,(isset($context["form"])||array_key_exists("form",$context)?$context["form"]:(function(){thrownewRuntimeError('Variable "form" does not exist.',9,$this->source);})()),"vars",[],"any",false,false,false,9),"id",[],"any",false,false,false,9),"html",null,true);
echo"\"></label>";
// line 10
echo$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"])||array_key_exists("form",$context)?$context["form"]:(function(){thrownewRuntimeError('Variable "form" does not exist.',10,$this->source);})()),'errors');
$context["prepend"]=!(is_string($__internal_compile_0=(isset($context["money_pattern"])||array_key_exists("money_pattern",$context)?$context["money_pattern"]:(function(){thrownewRuntimeError('Variable "money_pattern" does not exist.',17,$this->source);})()))&&is_string($__internal_compile_1="{{")&&(''===$__internal_compile_1||0===strpos($__internal_compile_0,$__internal_compile_1)));
// line 18
echo"";
$context["append"]=!(is_string($__internal_compile_2=(isset($context["money_pattern"])||array_key_exists("money_pattern",$context)?$context["money_pattern"]:(function(){thrownewRuntimeError('Variable "money_pattern" does not exist.',18,$this->source);})()))&&is_string($__internal_compile_3="}}")&&(''===$__internal_compile_3||$__internal_compile_3===substr($__internal_compile_2,-strlen($__internal_compile_3))));
// line 19
echo"";
if(((isset($context["prepend"])||array_key_exists("prepend",$context)?$context["prepend"]:(function(){thrownewRuntimeError('Variable "prepend" does not exist.',19,$this->source);})())||(isset($context["append"])||array_key_exists("append",$context)?$context["append"]:(function(){thrownewRuntimeError('Variable "append" does not exist.',19,$this->source);})()))){
// line 20
echo" <div class=\"input-group\">
";
// line 21
if((isset($context["prepend"])||array_key_exists("prepend",$context)?$context["prepend"]:(function(){thrownewRuntimeError('Variable "prepend" does not exist.',21,$this->source);})())){
// line 22
echo" <span class=\"input-group-label\">";
echo$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->encodeCurrency($this->env,(isset($context["money_pattern"])||array_key_exists("money_pattern",$context)?$context["money_pattern"]:(function(){thrownewRuntimeError('Variable "money_pattern" does not exist.',22,$this->source);})()));
echo"</span>
";
}
// line 24
echo"";
$context["attr"]=twig_array_merge((isset($context["attr"])||array_key_exists("attr",$context)?$context["attr"]:(function(){thrownewRuntimeError('Variable "attr" does not exist.',24,$this->source);})()),["class"=>twig_trim_filter((((twig_get_attribute($this->env,$this->source,($context["attr"]??null),"class",[],"any",true,true,false,24))?(_twig_default_filter(twig_get_attribute($this->env,$this->source,($context["attr"]??null),"class",[],"any",false,false,false,24),"")):(""))." input-group-field"))]);
if((isset($context["append"])||array_key_exists("append",$context)?$context["append"]:(function(){thrownewRuntimeError('Variable "append" does not exist.',26,$this->source);})())){
// line 27
echo" <span class=\"input-group-label\">";
echo$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->encodeCurrency($this->env,(isset($context["money_pattern"])||array_key_exists("money_pattern",$context)?$context["money_pattern"]:(function(){thrownewRuntimeError('Variable "money_pattern" does not exist.',27,$this->source);})()));
if((isset($context["symbol"])||array_key_exists("symbol",$context)?$context["symbol"]:(function(){thrownewRuntimeError('Variable "symbol" does not exist.',36,$this->source);})())){
// line 37
echo"<div class=\"input-group\">
";
// line 38
$context["attr"]=twig_array_merge((isset($context["attr"])||array_key_exists("attr",$context)?$context["attr"]:(function(){thrownewRuntimeError('Variable "attr" does not exist.',38,$this->source);})()),["class"=>twig_trim_filter((((twig_get_attribute($this->env,$this->source,($context["attr"]??null),"class",[],"any",true,true,false,38))?(_twig_default_filter(twig_get_attribute($this->env,$this->source,($context["attr"]??null),"class",[],"any",false,false,false,38),"")):(""))." input-group-field"))]);
echotwig_escape_filter($this->env,((array_key_exists("symbol",$context))?(_twig_default_filter((isset($context["symbol"])||array_key_exists("symbol",$context)?$context["symbol"]:(function(){thrownewRuntimeError('Variable "symbol" does not exist.',40,$this->source);})()),"%")):("%")),"html",null,true);
$context["attr"]=twig_array_merge((isset($context["attr"])||array_key_exists("attr",$context)?$context["attr"]:(function(){thrownewRuntimeError('Variable "attr" does not exist.',48,$this->source);})()),["class"=>twig_trim_filter((((twig_get_attribute($this->env,$this->source,($context["attr"]??null),"class",[],"any",true,true,false,48))?(_twig_default_filter(twig_get_attribute($this->env,$this->source,($context["attr"]??null),"class",[],"any",false,false,false,48),"")):(""))." button"))]);