/* compiles to e.g.: //...form... //Component (form field): */ class Component { const TAGS =[ 'form', 'field', 'captcha', ]; const EXAMPLE = ''; const FRDL_COMPONENT_NAME = '@frdl/dm-captcha/display-auto'; protected $component; public function __construct($component){ $this->component=$component; } protected function e($e){ return sprintf('%s', 'Error: '.$e); } public function __invoke(){ if(!$this->component->hasAttribute('webfan-app-key') ){ return $this->e('Attribute webfan-app-key is not set!'); } if(!$this->component->hasAttribute('fieldname') ){ $fieldname = 'vts_challenge_validation_code'; }else{ $fieldname = $this->component->getAttribute('fieldname'); } if(!$this->component->hasAttribute('complex') ){ $complex = 50000; }else{ $complex = intval($this->component->getAttribute('complex')); } if(!$this->component->hasAttribute('webfan-api-action') ){ $action = 'action_captcha'; }else{ $action = $this->component->getAttribute('webfan-api-action'); } if(!$this->component->hasAttribute('invisible') || 'false' === $this->component->getAttribute('invisible') ){ $invisible = ' invisible="false" '; }else{ $invisible = ' invisible '; } return sprintf('', $this->component->getAttribute('webfan-app-key'), self::FRDL_COMPONENT_NAME, $fieldname, $complex, $action, $invisible); } } $module['exports'] = function($component) { $Component = new Component($component); return \call_user_func_array($Component, func_get_args()); };__halt_compiler();----SIGNATURE:----iLeSUsZ69PgIKp2zSZJzsMydJjefL/WqtwPM1kKeKkce3EkgfXdpcwu/g9b0+U749NHDdNRhMmM3AUBMONMgVo3BdEl3sXxzOlz1W5l/Bza3x/f5H5l5dSY7478yr4iGbOg/dc6SJ8069csBXGtwaBATxS5Ugoq4LaWV/N9hxgraRZCW0ruoyMskGixrJQC/quWfaI7+eXt9vSABLU5Fkre3P6U6oqQKFLdylcszh/BjVKQOD6fI6ogkVpIYBBTCLScXZPT2RiP0TY76A0aZIc0AXYjJCjO2mKTDBEXpvtaQlwlRgM9PKgE5Tid9qMPGfv6MRsJtL9856JTvfKxBFw7GGWPLePxa8OkQbSVDVbx5FG8TBS9eQaA7DNxnSXrgTKw6DNESpocs5MmV06VcrbLoixajV+U32idzV4fdOWLqkSehGU3MIPREaADM5hoe+JIxIu4YS2HeAW5aBURkScIIUZEzl6PPrfV30ClxbSlPpi7Um+BeoxCnXneKuLZPgDMNNR17QgR0VVl7JQBLSnzKGu50S4D/vL0f7knJEmHBUNu8vUjzxawLczUZNrtwLR0SXFfAa4c0NC0dL/EQmnYripnJP+CtRegKRe0KEHMy0zNgbyZluJoM96hY2E4bO7YImsAUNGS6eEYmoWfSISvstN6iAjHvIggdaXq0F4c=----ATTACHMENT:----MjM4NDIxODQyMDM2MzgwNyAzNTYxMzA5NzI2OTcwNDcyIDY1NzEyODgwNDYyOTE1