{"version":3,"file":"common.js","sources":["../../src/uk.co.talktalk/tradehouse/common.js"],"sourcesContent":["import ox from '$/ox'\nimport $ from '$/jquery'\nimport _ from '$/underscore'\nimport ext from '$/io.ox/core/extensions'\nimport gt from 'gettext'\nimport Dropdown from '$/io.ox/backbone/mini-views/dropdown'\nimport { getCmpReady, openManageCookies, pushAd } from '@/uk.co.talktalk/tradehouse/cmp'\n\nimport '@/uk.co.talktalk/login/login.scss'\n\next.point('io.ox/login/navbar').extend({\n id: 'header',\n index: 'first',\n draw: function () {\n this.append(\n $('
').append(\n $('
').append(\n $('').append(\n $('\"TalkTalk')\n )\n )\n )\n )\n }\n}, {\n id: 'navigation',\n index: 'last',\n draw: function () {\n const $dropdownToggle = $('').append(\n $('').append(\n $('
  • ').append(\n $('').text(gt('My TalkTalk'))\n ),\n $('
  • ').append(\n $('').text(gt('TV, Broadband & Calls'))\n ),\n $('
  • ').append(\n $('').text(gt('SuperSafe'))\n ),\n ox.serverConfig.faktorURL\n ? $('
  • ').append(\n $('').on('click', function (e) {\n e.preventDefault()\n openManageCookies()\n }).text(gt('Manage Cookies'))\n )\n : $(),\n $('
  • '),\n $('
  • ').append(\n $('').text(gt('Help'))\n ),\n $('
  • ').append(\n $('').text(gt('Accessibility'))\n ),\n $('
  • ').append(\n $('').text(gt('Code of practice'))\n ),\n $('
  • ').append(\n $('').text(gt('Customer complaints code '))\n ),\n $('
  • ').append(\n $('').text(gt('Legal'))\n ),\n $('
  • ').append(\n $('').text(gt('Privacy Policy'))\n ),\n $('
  • ').append(\n $('').text(gt('Terms & Conditions'))\n ),\n $('
  • ').append(\n $('').text(gt('Cookies and our policy'))\n )\n )\n const dropdown = new Dropdown({\n className: 'dropdown',\n $toggle: $dropdownToggle,\n $ul: $dropdownMenu,\n title: ''\n })\n\n this.find('.login-top-bar').append(\n $('