if (typeof arc === 'undefined') { // In registration page return; } arc.globals_init() .saveAwayGlobalQueryParameters() .csrf_token("{{ csrf_token }}") .enable_direct_access("{{ flippers.enable_direct_access }}" === "True") .enable_download_from_url("{{ app_settings.site_enable_download_from_url }}" === "true") .enable_user_create("{{ flippers.enable_user_create }}" === "True") .data_extracts_target_tablename_prefix("{{ arcviz_settings.DATA_EXTRACTS_TARGET_TABLENAME_PREFIX }}") /* * apply_custom_styles permits url level controls on styling, meant * for debugging purposes. * enable_custom_styles permits site-wide preferences on whether styling * is enabled. Note that it is important for enable_custom_styles to be * set after apply_custom_styles because if custom styles are disabled * site-wide, then they should not be applied either, and the * enable_custom_styles() function has that logic in place. */ .use_derived_data("{{ use_derived_data }}" === "True" || "{{ use_derived_data }}" === "") .apply_custom_styles("{{ styles }}" === "on") .enable_custom_styles("{{ enable_styles }}" === "true") .enable_explore_interfaces("{{ enable_explore_interfaces }}" === "true") .max_trellis_displayed("{{ max_trellis_displayed }}") .enable_visual_transitions("{{ enable_visual_transitions }}" === "true") .enable_script_parameters("{{ enable_script_parameters }}" === "true") .enable_tooltip_highlights("{{ enable_tooltip_highlights }}" === "true") .dashboard_width("{{ app_settings.dashboard_width }}") .dashboard_loading_message_in_viewmode("{{ app_settings.dashboard_loading_message_in_viewmode }}") .enable_IE_optimisations("{{ arcviz_settings.ENABLE_IE_OPTIMISATIONS }}" === "True") .enable_advanced_settings("{{ arcviz_settings.ENABLE_ADVANCED_SETTINGS }}" === "True") .allow_png_download_default("{{ app_settings.site_png_download_on }}" === "true") .allow_csv_download_default("{{ app_settings.site_csv_download_on }}" === "" || "{{ app_settings.site_csv_download_on }}" === "true") .email_enabled("{{ app_settings.email_enabled }}" === "true") .jira_enabled("{{ app_settings.jira_enabled }}" === "true" && "{{ arcviz_settings.ENABLE_VISUAL_ACTION}}" === "True" && "{{ arcviz_settings.ENABLE_JIRA}}" === "True") .webhook_enabled("{{ app_settings.webhook_enabled }}" === "true" && "{{ arcviz_settings.ENABLE_VISUAL_ACTION}}" === "True" && "{{ arcviz_settings.ENABLE_WEBHOOK}}" === "True") .cdvSubMode("{{ arcviz_settings.CDV_SUB_MODE }}") .enable_thumbnails("{{ enable_thumbnails }}" === "true") .chromium_pdf_available("{{ arcviz_settings.chromium_pdf_available }}" === "True") .server_platform("{{ platform }}") .everyone_group("{{ everyone_group }}") .permdefs("{{ permdefs|escapejs }}") .permlists("{{ permlists|escapejs }}") .sysperms("{{ sysperms|escapejs }}") .arcviz_settings("{{ arcviz_settings_json|escapejs }}") .site_hide_refresh_button_from_connection_explorer("{{ site_hide_refresh_button_from_connection_explorer }}" === "true") .site_enable_column_rename("{{ site_enable_column_rename }}" === "true") .site_enable_app_acceleration("{{ site_enable_app_acceleration }}" === "true" || "{{ site_enable_app_acceleration }}" === "") .google_api_id("{{ app_settings.google_api_id }}") .google_client_id("{{ app_settings.google_client_id }}") .mapbox_access_token("{{ app_settings.mapbox_access_token }}") .local_mapbox_server("{{ app_settings.local_mapbox_server }}") .maximumCanvasWidth("{{ app_settings.maximum_canvas_width }}") .email_prefix("{{ app_settings.email_prefix }}") {% if email_addresses %} .email_addresses('{{ email_addresses|escapejs }}') {% endif %} .username("{{ user.username }}") .is_superuser("{{ user.is_superuser }}" == "True") .embedded("{{ embed }}" == "True" ? true: false) .send_message_params("{{ send_message_params }}" == "True" ? true: false) .auto_refresh("{{ auto_refresh }}") .jserrors_enabled("{{ app_settings.jserrors_enabled }}" === "true") .page_profile_enabled("{{ app_settings.page_profile_enabled }}" === "true") .page_profile_appview_enabled("{{ app_settings.page_profile_appview_enabled }}" === "true") .visual_max_rows("{{ app_settings.visual_maxrows }}") .download_maxrows("{{ app_settings.download_maxrows }}") .embed_url_prefix("{{ arcviz_settings.EMBED_URL_PREFIX }}") .bulkMaxEntries("{{ app_settings.bulk_max_entries }}") .bulkMaxInterval("{{ app_settings.bulk_max_interval }}") .bulkMaxRetention("{{ app_settings.bulk_max_retention }}") .http_dataconnection_id({{ http_dataconnection_id | default:"0" }}) .unnamedVersionDeletionInterval("{{ app_settings.unnamed_versions_deletion_interval }}") .unnamedVersionMaxRetention("{{ app_settings.unnamed_versions_max_retention }}") .can_user_explore_any_dataconnections("{{ user_can_explore_any_dataconnections }}" === "True"); arc.perf.PAGEPERF.setup(); {% for dc_ext in dc_ext_list %} arc.dataconnection.add_extension( '{{ dc_ext|escapejs }}'); {% endfor %}