GetLoader()->LocalizeScript('rnAI', $hook, 'rnai', [ 'ajaxurl' => IntegrationURL::AjaxURL(), 'Models' => (new SettingsRepository(AllInOneForms()->GetLoader()))->GetModelNames(), 'DefaultModel' => Sanitizer::GetStringValueFromPath((new SettingsRepository(AllInOneForms()->GetLoader()))->GetDefaultModel(), ['Name'], ''), 'URL' => AllInOneForms()->GetLoader()->URL, 'SettingsURL' => IntegrationURL::PageURL('rednao_calculation_form_settings') ]); } public static function GetFieldDescriptor() { return new AIFieldDescriptor(); } }