<xf:macro id="head" arg-app="!">
	<xf:macro id="public:helper_js_global::head" arg-app="{$app}" />
	<xf:js src="xf/admin.js" min="1" />
	<script{{ $xf.request.isRocketLoaderDisabled() ? ' data-cfasync="false"' : ''}}>
		XF.ready(() =>
		{
			XF.extendObject(true, XF.config, {
				job: {
					manualUrl: "{{ link('tools/run-job')|escape('js') }}"
				},
				visitorCounts: null
			})
			XF.extendObject(XF.phrases, {
				cancel: "{{ phrase('cancel')|escape('js') }}",
				cancelling: "{{ phrase('cancelling')|escape('js') }}",
				no_items_matched_your_filter: "{{ phrase('no_items_matched_your_filter')|escape('js') }}"
			})
		})
	</script>
</xf:macro>

<xf:macro id="body" arg-jsState="{{ null }}">
	<xf:macro id="public:helper_js_global::body" arg-app="admin" arg-jsState="{$jsState}" />
</xf:macro>