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MF,EAEA8b,OAAQ,WAER,GAEDpS,EAAKC,MACN,EAl9K2B,OAAvBxH,EAAagF,MACfyJ,MAAM,0CAA2C,CAChD,QAAW,CACV,eAAgB,oBAEjB,KAAQ,GACR,OAAU,OACV,KAAQ,OACR,YAAe,YAEf3L,MAAK,SAASa,GACd,OAAOA,EAAK+K,MACb,IACC5L,MAAK,SAASa,GAEdpC,EAASoC,EAGV,IAEApC,EAAS,GA+7KX,CAhlLD,E","sources":["webpack://princes-trust/./src/constants/socialcare-prodConstants.js","webpack://princes-trust/webpack/bootstrap","webpack://princes-trust/webpack/runtime/define property getters","webpack://princes-trust/webpack/runtime/hasOwnProperty shorthand","webpack://princes-trust/webpack/runtime/make namespace object","webpack://princes-trust/./src/constants/index.js","webpack://princes-trust/./src/utils/formatFormTables.js","webpack://princes-trust/./src/utils/waitForElem.js","webpack://princes-trust/./src/utils/createPop.js","webpack://princes-trust/./src/pages/virtual-wallet-common.js","webpack://princes-trust/./src/utils/userType.js"],"sourcesContent":["export const Urls = {\r\n BaseURL: 'cdn-base-url',\r\n Domain: 'https://www.myvirtualwallet.co.uk',\r\n\r\n // Page ids\r\n vwHomepage: '93',\r\n vwHomepageTwo: '113',\r\n\r\n vwProductOne: '92',\r\n vwProductTwo: '100',\r\n vwProductThree: '101',\r\n \r\n vwMicroCommisioning: '162',\r\n addProvider: '141',\r\n myProviders: '142',\r\n myPrograms: '143',\r\n agencyEnrolments: '37',\r\n myDesignatedRep: '144',\r\n mySignatures: '145',\r\n addDesignatedRep: '146',\r\n myDetails: '148',\r\n myParticipants: '149',\r\n servicesAndRates: '154',\r\n myDocuments: '256',\r\n fundingDue: '261',\r\n providerTimesheetsAdmin: '293',\r\n personalTimesheets: '297',\r\n\r\n mainDashboard: '150',\r\n vwSagDash: '151',\r\n\r\n searchShopEquipment: '168',\r\n searchShopServices: '169',\r\n searchMyCatalogue: '170',\r\n searchShopStores: '171',\r\n\r\n manualPayment: '205',\r\n managePayee: '206',\r\n paymentTransfer: '207',\r\n providerDetails: '211',\r\n manualTransactionPayments: '221',\r\n\r\n vwLitePageId: '178',\r\n vwLiteProductId: '195',\r\n\r\n pplConnectPage: '311',\r\n pa_vacancySearchPage: '312',\r\n pplChat: '313',\r\n reportsPage: '347',\r\n \r\n vwliteCouncil: 'NHS Hull CCG',\r\n\r\n manualTransactionPaymentApproval: '221',\r\n\r\n //incrementsAttribute: 'VWLite Increments',\r\n // incrementsAttribute: 'LBBD Increments',\r\n incrementsAttribute: 'Increments',\r\n\r\n // Attributes\r\n allowSelfServicePayment: 'c4081c76-9a24-4cc1-8e7f-aeec00fad56c',\r\n\r\n // Form ids\r\n form_nwl: '971',\r\n form_essex: '823',\r\n form_croydon: '824',\r\n form_bucks: '825',\r\n form_powys: '850',\r\n form_CheshireCCG: '972',\r\n form_vwLite: '967',\r\n form_lincs: '1037',\r\n form_hull: '967',\r\n form_devon: '1016',\r\n form_dorset: '1017',\r\n form_wiltshire: '1024',\r\n form_kentMedway: '1025',\r\n attachments_appForm: '645289962a39462df7500db4',\r\n \r\n virtualWalletLiteSecurityGroup: 'bb6cf2af-029a-4cc6-b81b-ae4700ca4ff4',\r\n providerDetailsSecurityGroup: 'd3565417-134a-46c5-ac34-ab4c00a1b939',\r\n addPayeeSecurityGroup: '1c2d283f-0a85-4054-80fa-b00b01229ce5',\r\n approverSecurityGroup: '3d77e404-6da7-40c6-bd36-b02300e40c4d',\r\n readOnlySecurityGroup: 'e8bc9297-105c-4ec4-b6f2-b1b60113df5e',\r\n\r\n manualTransactionSecurityGroups: {\r\n mt_Payment: '1f181521-7821-47ca-b97a-afa400bb0ab4',\r\n mt_Repeating: '14077b13-5a1b-46a4-91de-afa400c174ba',\r\n mt_attachment: '9d0b965f-f2e3-48c7-8577-af8f00e8fa1a'\r\n },\r\n\r\n permission: {\r\n manualTransactionPayments: '8ac87b59-4ccf-4ded-b779-8343341ef198'\r\n },\r\n\r\n // Devon marketplaces\r\n devonMarketplace: '52ec69f6-9a12-40a6-81bd-b10101686083'\r\n}","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\r\nconst {Urls} = require(BUILD_ENV == \"socialcare_prod\" ? \"./socialcare-prodConstants\": BUILD_ENV == \"socialcare_dr\" ? \"./socialcare-drConstants\": BUILD_ENV == \"socialcare_uat\" ? \"./socialcare-uatConstants\": \"./servelec-demoConstants\")\r\nexport {\r\n Urls\r\n}\r\n","export function tableLabels() {\r\n\r\n console.log('Test');\r\n\r\n var checkExist = setInterval(function() {\r\n if ($('.question-type-table').length > 0) {\r\n clearInterval(checkExist);\r\n\r\n $('body').addClass('table-block')\r\n\r\n // Clear labels when adding a new table row\r\n $('.js-dyno-table-labels').remove();\r\n $('.question-type-table').each(function(){ \r\n\r\n // Loop through the headers\r\n var tableHeader = [];\r\n $(this).find('thead tr th').each(function(){\r\n //console.log('This is: ' + $(this).text());\r\n tableHeader.push($(this).text());\r\n });\r\n\r\n // Append to each table row\r\n $(this).find('tbody tr').each(function(){\r\n $(this).find('td').each(function(i){\r\n //if (tableHeader[i] !== 'Action' && tableHeader[i].toLowerCase().indexOf(\"start date\") === -1 && tableHeader[i].toLowerCase().indexOf(\"end date\") === -1 ) {\r\n if (tableHeader[i] !== 'Action') {\r\n $(this).prepend(``);\r\n }\r\n });\r\n });\r\n });\r\n\r\n // Add mondatory sr class\r\n $('.forms-mandatory').each(function(){\r\n $(this).after(\r\n `\r\n (Required) \r\n `\r\n )\r\n });\r\n }\r\n }, 100); // check every 100ms\r\n}","export function waitForElem(selector){\r\n \r\n return new Promise(resolve => {\r\n if (document.querySelector(selector)) {\r\n return resolve(document.querySelector(selector));\r\n }\r\n\r\n const observer = new MutationObserver(mutations => {\r\n if (document.querySelector(selector)) {\r\n resolve(document.querySelector(selector));\r\n observer.disconnect();\r\n }\r\n });\r\n\r\n observer.observe(document.body, {\r\n childList: true,\r\n subtree: true\r\n });\r\n });\r\n\r\n}","export function createPop(heading, message, timeout) {\r\n\r\n // Create overlay\r\n $('body').prepend(\r\n `\r\n
\r\n
\r\n \r\n
\r\n
\r\n

${heading}

\r\n
\r\n
\r\n
\r\n
\r\n

${message}

\r\n
\r\n
\r\n
\r\n
\r\n `\r\n )\r\n\r\n $('body').on('click', '.js-close-model__btn', function(){\r\n $('.js-overlay').remove();\r\n });\r\n\r\n if (timeout) {\r\n setTimeout(function() { \r\n $('.js-overlay').remove();\r\n }, timeout);\r\n }\r\n}","import {Urls} from '../constants'\r\nimport 'styles/base.scss'\r\nimport { tableLabels } from \"../utils/formatFormTables.js\";\r\nimport { waitForElem } from \"../utils/waitForElem.js\";\r\nimport { createPop } from \"../utils/createPop.js\";\r\nimport { userType } from \"../utils/userType.js\";\r\n\r\n(function(){\r\n\r\n\t/* global $ */\r\n\t'use strict';\r\n\r\n\tconst userInfo = userType(Urls);\r\n\r\n\tconst pagePath = window.location.pathname;\r\n\tconst pageUrl = window.location.href;\r\n\r\n\tlet currentState = {\r\n\t\tsummaryParameters : {},\r\n\t\tdisplayHeroMenu: true\r\n\t}\r\n\r\n\tconst authSettings = $.sc.authSettings;\r\n\r\n\t// Function to remove the loading screen\r\n\tfunction hideLoadingScreen() {\r\n\t\tlet loadingOverlay = document.getElementById(\"loading-overlay\");\r\n\t\tif (loadingOverlay) {\r\n\t\t\tloadingOverlay.style.opacity = \"0\"; // Fade out\r\n\t\t\tloadingOverlay.style.transition = \"opacity 0.2s ease-out\"; // Smooth transition\r\n\t\r\n\t\t\t// Remove the overlay from DOM after the fade-out effect\r\n\t\t\tsetTimeout(() => loadingOverlay.remove(), 200); // Wait for transition to complete\r\n\t\t}\r\n\t}\r\n\r\n\tfunction scrollToMain() {\r\n\t\tconst mainElement = document.querySelector('main');\r\n\t\tif (mainElement) {\r\n\t\t\twindow.scrollTo({\r\n\t\t\t\ttop: mainElement.offsetTop,\r\n\t\t\t\tbehavior: 'smooth'\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tfunction summaryParameters(callback) {\r\n\t\tfetch(\"/s4s/api/PPLDashboard/SummaryParameters\", {\r\n \"headers\": {\r\n \"content-type\": \"application/json\",\r\n },\r\n // \"body\": JSON.stringify(dataObj),\r\n \"method\": \"POST\",\r\n \"mode\": \"cors\",\r\n \"credentials\": \"include\"\r\n })\r\n .then(function(data){ \r\n return data.json();\r\n })\r\n .then(function(data){ \r\n console.log(data)\r\n\r\n\t\t\t// Error\r\n // if ( data.Errors.length > 0) {\r\n // createModel('Unable to create payee', `

${data.Errors[0].Description === null ? '' : data.Errors[0].Description} ${data.Errors[0].MessageResource === null ? '' : data.Errors[0].MessageResource}

`)\r\n\t\t\t// }\r\n\r\n callback(data);\r\n })\r\n\t}\r\n\r\n\tfunction observeCreationOfElement(tagName, callback, targetNode = document.body) {\r\n\t\t// Options for the observer (which mutations to observe)\r\n\t\tconst config = { childList: true, subtree: true };\r\n\t\r\n\t\t// Mutation observer callback function\r\n\t\tconst mutationCallback = function(mutationsList, observer) {\r\n\t\t\tfor (const mutation of mutationsList) {\r\n\t\t\t\tif (mutation.type === 'childList') {\r\n\t\t\t\t\tmutation.addedNodes.forEach(node => {\r\n\t\t\t\t\t\t// Check if the added node is the desired element\r\n\t\t\t\t\t\tif (node.nodeName === tagName.toUpperCase()) {\r\n\t\t\t\t\t\t\tconsole.log(`${tagName} has been added to the page!`);\r\n\t\t\t\t\t\t\tcallback(node); // Execute callback function with the node as an argument\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\r\n\t\t// Create an instance of the observer with the callback function\r\n\t\tconst observer = new MutationObserver(mutationCallback);\r\n\t\r\n\t\t// Start observing the target node for configured mutations\r\n\t\tobserver.observe(targetNode, config);\r\n\t\r\n\t\t// Return the observer instance in case it needs to be disconnected later\r\n\t\treturn observer;\r\n\t}\r\n\r\n\tfunction observeCreationOfClass(className, callback, targetNode = document.body) {\r\n\t\t// Options for the observer (which mutations to observe)\r\n\t\tconst config = { childList: true, subtree: true };\r\n\t\r\n\t\t// Mutation observer callback function\r\n\t\tconst mutationCallback = function(mutationsList, observer) {\r\n\t\t\tfor (const mutation of mutationsList) {\r\n\t\t\t\tif (mutation.type === 'childList') {\r\n\t\t\t\t\tmutation.addedNodes.forEach(node => {\r\n\t\t\t\t\t\t// Check if the added node has the desired class\r\n\t\t\t\t\t\tif (node.classList && node.classList.contains(className)) {\r\n\t\t\t\t\t\t\tconsole.log(`${className} class element has been added to the page!`);\r\n\t\t\t\t\t\t\tcallback(node); // Execute callback function with the node as an argument\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\r\n\t\t// Create an instance of the observer with the callback function\r\n\t\tconst observer = new MutationObserver(mutationCallback);\r\n\t\r\n\t\t// Start observing the target node for configured mutations\r\n\t\tobserver.observe(targetNode, config);\r\n\t\r\n\t\t// Return the observer instance in case it needs to be disconnected later\r\n\t\treturn observer;\r\n\t}\r\n\r\n\t\r\n\r\n\tfunction postOrganisationType(callback) {\r\n\t\tif(authSettings.login !== null){\r\n\t\t\tfetch(\"/S4S/api/Authentication/CurrentUserInfo\", {\r\n\t\t\t\t\"headers\": {\r\n\t\t\t\t\t\"content-type\": \"application/json\",\r\n\t\t\t\t},\r\n\t\t\t\t\"body\": \"\",\r\n\t\t\t\t\"method\": \"POST\",\r\n\t\t\t\t\"mode\": \"cors\",\r\n\t\t\t\t\"credentials\": \"include\"\r\n\t\t\t})\r\n\t\t\t.then(function(data){ \r\n\t\t\t\treturn data.json();\r\n\t\t\t})\r\n\t\t\t.then(function(data){ \r\n\t\t\t\t// console.log(data)\r\n\t\t\t\tcallback(data);\r\n\t\t\t\t// return data;\r\n\r\n\t\t\t})\r\n\t\t} else {\r\n\t\t\tcallback('');\r\n\t\t}\r\n\t}\r\n\r\n\tfunction createBlueBtns() {\r\n\t\t// Add class to action btns and remove icons/images\r\n\t\t$('.action-btns-section a').addClass('blue-btn');\r\n\t\t$('.action-btns-section i').remove();\r\n\t\t$('.action-btns-section img').remove();\r\n\t}\r\n\r\n\tfunction editButtons(element) {\r\n\t\t// Edit product item buttons\r\n\t\t$(element + ' li').removeClass();\r\n\t\t$(element + ' a').addClass('blue-btn');\r\n\t\t$(element + ' img').remove();\r\n\t}\r\n\r\n\tpostOrganisationType(function(currentUser) {\r\n\t\r\n\t\tconst getUserJson = currentUser;\r\n\t\t\r\n\t\tvar firstName = '',\r\n\t\t\tlastName = '';\r\n\t\r\n\t\tfunction uuidv4() {\r\n\t\t\treturn 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {\r\n\t\t\t\tvar r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);\r\n\t\t\t\treturn v.toString(16);\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tfunction showLoginLogout() {\r\n\t\t\tif(authSettings.login === null){\r\n\r\n\t\t\t\t$('.js-header-nav_bottom-container-mobile__credentials').append(\r\n\t\t\t\t\t`\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tLog in\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t`\r\n\t\t\t\t);\r\n\t\t\r\n\t\t\t\t$('.js-header-nav_top-nav-container-desktop').append(\r\n\t\t\t\t\t`\r\n\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

    Log in

    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
  • \r\n\t\t\t\t\t`\r\n\t\t\t\t);\r\n\t\t\r\n\t\t\t} else {\r\n\r\n\t\t\t\t// Show log out button\r\n\t\t\t\t$('.js-header-nav_bottom-container-mobile__credentials').append(\r\n\t\t\t\t\t`\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tLog out\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t`\r\n\t\t\t\t);\r\n\t\t\t\t$('.js-header-nav_top-nav-container-desktop').append(\r\n\t\t\t\t\t`\r\n\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

    Log out

    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
  • \r\n\t\t\t\t\t`\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tfunction checkAuth() {\r\n\t\r\n\t\t\t// SAG pplRoleId\r\n\t\t\tif (currentUser.PplRoleId === '22a21fd3-9b01-4c07-a8a9-e70d17fbb4da' ) {\r\n\r\n\t\t\t\t//console.log('SAG id is firing')\r\n\t\t\t\tcreateWorkAsLink('/s4s/UserManagement/Users');\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\tlet mods = [];\r\n\r\n\t\t\t\t$(currentUser.AvailableModules).each(function(i , el){\r\n\t\t\t\t\tmods.push(el);\r\n\t\t\t\t});\r\n\t\t\t\tmods = mods.toString();\r\n\r\n\t\t\t\t// Work as page\r\n\t\t\t\t// work_as = true && user_management = true OR work_as = true && user_management = false\r\n\t\t\t\tif(mods.indexOf('work_as') > -1){\r\n\r\n\t\t\t\t\t//console.log('userjson work as is firing')\r\n\r\n\t\t\t\t\t// Added on 20th May 2024 for Lincolnshire as they are not using OE fully \r\n\t\t\t\t\t// CORE-950 update AR work as settings for Lincolnshire OE\r\n\t\t\t\t\tif ($.sc.authSettings.pplId !== null && $.sc.authSettings.organisationId !== '4904d5d2-482a-41a9-9153-9e360154daa2' && $.sc.authSettings.isAuthorizedRepresentative === true ) {\r\n\t\t\t\t\t\tcreateWorkAsLink(\"/s4s/CustomPage/Index/\" + Urls.myParticipants);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcreateWorkAsLink('/s4s/WorkAs');\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t\t\r\n\t\t\t\t// User management page\r\n\t\t\t\t// work_as module = false && user_management = true\r\n\t\t\t\tif(mods.indexOf('work_as') <= -1){\r\n\r\n\t\t\t\t\tif(mods.includes('user_management')) {\r\n\r\n\t\t\t\t\t\t//console.log('user management as page is firing')\r\n\t\t\t\t\t\tcreateWorkAsLink('/s4s/UserManagement/Users');\r\n\t\t\t\t\t};\r\n\t\t\t\t};\r\n\t\t\t};\r\n\r\n\t\t\t// Log in / Logout\r\n\t\t\tshowLoginLogout();\r\n\r\n\t\t\t//checkMessages(data.PplRoleId);\r\n\t\t\tvirtualWalletNav();\r\n\t\t};\r\n\r\n\r\n\t\tfunction createWorkAsLink(url) {\r\n\t\t\t$('.js-header-nav_bottom-container-mobile__credentials').append(\r\n\t\t\t\t`\r\n\t\t\t\t
    \r\n\t\t\t\t\t\r\n\t\t\t\t\t\tWork as\r\n\t\t\t\t\t\r\n\t\t\t\t
    \r\n\t\t\t\t`\r\n\t\t\t);\r\n\t\t\t$('.js-header-nav_top-nav-container-desktop').append(\r\n\t\t\t\t`\r\n\t\t\t\t
  • \r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

    Work as

    \r\n\t\t\t\t\t
    \r\n\t\t\t\t
  • \r\n\t\t\t\t`\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\t\r\n\t\t// Admin pannel /////////////////////////////////////////////////////\r\n\r\n\t\t// Creates the page structure\r\n\t\tfunction adminbarPageStructure(){\r\n\r\n\t\t\t// HTML display flex\r\n\t\t\t$('html').css('display', 'flex');\r\n\r\n\r\n\t\t\t// Body margin left\r\n\t\t\t$('body').css('margin-left', '50px');\r\n\r\n\r\n\t\t\t// Remove fixed position from the header\r\n\t\t\t$('.header-nav_section').css('position', 'static');\r\n\r\n\r\n\t\t\t// Remove margin-top from page\r\n\t\t\t$('#maincontent').css('margin-top', '0px');\r\n\r\n\r\n\t\t\t// Insert adminbar into body to appear as sibling of page content div\r\n\t\t\t$('body').prepend(\r\n\t\t\t\t`\r\n\t\t\t\t
    \r\n\t\t\t\t\r\n\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t

    Administration

    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t

    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\r\n\t\t\t\t`\r\n\t\t\t);\r\n\t\t\t\r\n\t\t}\r\n\r\n\r\n\t\t// Creates a main nav item\r\n\t\tfunction createNavItem(name, icon, url){\r\n\t\t\treturn `\r\n\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t

    ${name}

    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t

    ${name}

    \r\n\t\t\t\t
    \r\n\t\t\t`\r\n\t\t}\r\n\r\n\t\t// Adminbar functionality\r\n\t\t// Call the user modules\r\n\t\tif(authSettings.login !== null){\r\n\t\t\tif ( getUserJson.AvailableModules ) {\r\n\t\t\t\tgetUserJson.AvailableModules.map((adminModule) => {\r\n\t\t\t\r\n\t\t\t\t\t// Check if admin module is available\r\n\t\t\t\t\tif(adminModule === 'administration'){\r\n\r\n\t\t\t\t\t\tvar cmsElement = '';\r\n\t\t\t\t\t\tvar directoriesElement = '';\r\n\t\t\t\t\t\tvar formsElement = '';\r\n\t\t\t\t\t\tvar adminElement = '';\r\n\t\t\t\t\t\tvar librariesElement = '';\r\n\t\t\t\t\t\tvar notificationsElement = '';\r\n\t\t\t\t\t\tvar bulkOrdersElement = '';\r\n\t\t\t\t\t\tvar providerManagementElement = '';\r\n\t\t\t\t\t\tvar intergrationElement = '';\r\n\t\t\t\t\t\tvar manageUserElement = '';\r\n\t\t\t\t\t\tvar financeManagerElement = '';\r\n\t\t\t\t\t\tvar fileImport = '';\r\n\t\t\t\t\t\tvar templatesElement = '';\r\n\t\t\t\t\t\tvar groupsElement = '';\r\n\r\n\t\t\t\t\t\t// Creates the page structure\r\n\t\t\t\t\t\tadminbarPageStructure();\r\n\r\n\t\t\t\t\t\tgetUserJson.AvailableModules.map((module) => {\r\n\r\n\t\t\t\t\t\t\tif(module === 'content_management'){\r\n\t\t\t\t\t\t\t\tcmsElement = createNavItem(\"CMS\", \"fa-pencil-alt\", \"/s4s/CmsContexts/Summary\");\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tif(module === 'event_management_administration'){\r\n\t\t\t\t\t\t\t\tdirectoriesElement = createNavItem(\"Directories\", \"fa-address-book\", \"/s4s/EventsAdministration/Events\");\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tif(module === 'form_management_administration'){\r\n\t\t\t\t\t\t\t\tformsElement = createNavItem(\"Forms\", \"fa-check-square\", \"/s4s/FormsAdministration\");\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tif(module === 'content_management_administration'){\r\n\t\t\t\t\t\t\t\tadminElement = createNavItem(\"Admin (CMS, Directories, Forms)\", \"fa-cogs\", \"/s4s/CmsAdministrationSummary\");\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tif(module === 'library_management_administration'){\r\n\t\t\t\t\t\t\t\tlibrariesElement = createNavItem(\"Libraries\", \"fa-book\", \"/s4s/LibraryAdministration\");\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tif(module === 'notifications'){\r\n\t\t\t\t\t\t\t\tnotificationsElement = createNavItem(\"Notifications\", \"fa-bell\", \"/s4s/NotificationsAdministration\");\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tif(module === 'bulk_orders_administration'){\r\n\t\t\t\t\t\t\t\tbulkOrdersElement = createNavItem(\"Bulk orders\", \"fa-archive\", \"/s4s/BulkOrderAdministration\");\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tif(module === 'provider_management_administration'){\r\n\t\t\t\t\t\t\t\tproviderManagementElement = createNavItem(\"Provider Management\", \"fa-address-card\", \"/s4s/ProviderManagementAdministration\");\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tif(module === 'integration'){\r\n\t\t\t\t\t\t\t\tintergrationElement = createNavItem(\"Integration\", \"fa-handshake\", \"/s4s/IntegrationAdministration\");\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tif(module === 'user_management'){\r\n\t\t\t\t\t\t\t\tmanageUserElement = createNavItem(\"Manage User\", \"fa-user\", \"/s4s/UserManagement\");\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tif(module === 'finance_management_administration'){\r\n\t\t\t\t\t\t\t\tfinanceManagerElement = createNavItem(\"Finance Manager\", \"fa-balance-scale\", \"/s4s/FinanceManagementAdministration\");\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tif(module === 'file_import'){\r\n\t\t\t\t\t\t\t\tfileImport = createNavItem(\"File Import\", \"fa-file-upload\", \"/s4s/FileImport\");\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t// This has removed from the module check as there is currently no module for the templates section. Added manually below, based on isSag === true\r\n\t\t\t\t\t\t\t// if(module === ''){\r\n\t\t\t\t\t\t\t// \ttemplatesElement = createNavItem(\"Templates\", \"fa-clone\", \"/s4s/DocumentTemplatesManagement\");\r\n\t\t\t\t\t\t\t// };\r\n\t\t\t\t\t\t\tif(module === 'group_management'){\r\n\t\t\t\t\t\t\t\tgroupsElement = createNavItem(\"Groups\", \"fa-users\", \"/s4s/GroupsAdministration/Summary\");\r\n\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tif(authSettings.isSag === true){\r\n\r\n\t\t\t\t\t\t\ttemplatesElement = createNavItem(\"Templates\", \"fa-clone\", \"/s4s/DocumentTemplatesManagement\");\r\n\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Adds individual adminbar nav item container\r\n\t\t\t\t\t\t$('.adminbar_nav-items-container').append(\r\n\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t${cmsElement}\r\n\t\t\t\t\t\t\t${directoriesElement}\r\n\t\t\t\t\t\t\t${formsElement}\r\n\t\t\t\t\t\t\t${\r\n\t\t\t\t\t\t\t\t// Hide 'Admin (CMS, Directories, Forms)' from nav on PeoplePlus\r\n\t\t\t\t\t\t\t\tpagePath.includes('peopleplus') === -1 && authSettings.login.indexOf('@peopleplus.co.uk') === -1\r\n\t\t\t\t\t\t\t\t? ``\r\n\t\t\t\t\t\t\t\t: adminElement\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t${librariesElement}\r\n\t\t\t\t\t\t\t${notificationsElement}\r\n\t\t\t\t\t\t\t${bulkOrdersElement}\r\n\t\t\t\t\t\t\t${providerManagementElement}\r\n\t\t\t\t\t\t\t${intergrationElement}\r\n\t\t\t\t\t\t\t${manageUserElement}\r\n\t\t\t\t\t\t\t${financeManagerElement}\r\n\t\t\t\t\t\t\t${fileImport}\r\n\t\t\t\t\t\t\t${templatesElement}\r\n\t\t\t\t\t\t\t${groupsElement}\r\n\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t// Expand admin section when adminbar is clicked\r\n\t\t\t\t\t\t$('.adminbar_container').on('click', function(){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(!$('.adminbar_container').hasClass('adminbar_expand')) {\r\n\r\n\t\t\t\t\t\t\t\tlocalStorage.setItem(\"adminbar\", \"open\");\r\n\r\n\t\t\t\t\t\t\t\t// When on main nav items section. Expand the adminbar, add the headings and change toggle arrow to left facing\r\n\t\t\t\t\t\t\t\t$('.adminbar_container').addClass('adminbar_expand');\r\n\t\t\t\t\t\t\t\t$('.adminbar_container').removeClass('adminbar_hover');\r\n\t\t\t\t\t\t\t\t$('.adminbar_item-heading').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\t$('.adminbar_back-heading').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\t$('.adminbar_toggle-icon').removeClass('fa-arrow-right');\r\n\t\t\t\t\t\t\t\t$('.adminbar_toggle-icon').addClass('fa-arrow-left');\r\n\t\t\t\t\t\t\t\t$('.adminbar_back-step-container').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\t$('body').addClass('body-left-margin');\r\n\r\n\t\t\t\t\t\t\t\t// When on sub nav items section\r\n\t\t\t\t\t\t\t\t$('.adminbar_dropdown-section-heading').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\t$('.adminbar_dropdown-item-link').removeClass('adminbar_hide-el');\r\n\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\r\n\r\n\t\t\t\t\t\t// When admibar main item icon is clicked\r\n\t\t\t\t\t\t$('.adminbar_main-nav-item-container').on('click', function(e){\r\n\t\t\t\t\t\t\te.stopPropagation();\r\n\t\t\t\t\t\t});\r\n\r\n\r\n\t\t\t\t\t\t// When adminbar toggle arrow icon is clicked, \r\n\t\t\t\t\t\t$('.adminbar_toggle-icon').on('click', function(e){\r\n\t\t\t\t\t\t\te.stopPropagation();\r\n\r\n\t\t\t\t\t\t\t// If the adminbar is not expanded\r\n\t\t\t\t\t\t\tif(!$('.adminbar_container').hasClass('adminbar_expand')) {\r\n\t\t\t\t\t\t\t\tlocalStorage.setItem(\"adminbar\", \"open\");\r\n\r\n\t\t\t\t\t\t\t\t// When on main nav items section. Expand the adminbar, add the headings and change toggle arrow to left facing\r\n\t\t\t\t\t\t\t\t$('.adminbar_container').addClass('adminbar_expand');\r\n\t\t\t\t\t\t\t\t$('.adminbar_container').removeClass('adminbar_hover');\r\n\t\t\t\t\t\t\t\t$('.adminbar_item-heading').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\t$('.adminbar_toggle-icon').removeClass('fa-arrow-right');\r\n\t\t\t\t\t\t\t\t$('.adminbar_toggle-icon').addClass('fa-arrow-left');\r\n\t\t\t\t\t\t\t\t$('.adminbar_back-step-container').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\t$('body').addClass('body-left-margin');\r\n\r\n\t\t\t\t\t\t\t\t// When on sub nav items section\r\n\t\t\t\t\t\t\t\t$('.adminbar_dropdown-section-heading').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\t$('.adminbar_dropdown-item-link').removeClass('adminbar_hide-el');\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tlocalStorage.setItem(\"adminbar\", \"closed\");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// If the adminbar is already expanded\r\n\t\t\t\t\t\t\t\t// When on main nav items section. Shrink the adminbar, hide the headings and change toggle arrow to right facing\r\n\t\t\t\t\t\t\t\t$('.adminbar_container').removeClass('adminbar_expand');\r\n\t\t\t\t\t\t\t\t$('.adminbar_item-heading').addClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\t$('.adminbar_toggle-icon').removeClass('fa-arrow-left');\r\n\t\t\t\t\t\t\t\t$('.adminbar_toggle-icon').addClass('fa-arrow-right');\r\n\t\t\t\t\t\t\t\t$('.adminbar_back-step-container').addClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\t$('body').removeClass('body-left-margin');\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// When on sub nav items section\r\n\t\t\t\t\t\t\t\t$('.adminbar_dropdown-section-heading').addClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\t$('.adminbar_dropdown-item-link').addClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t})\r\n\r\n\r\n\t\t\t\t\t\t// Loop through hidden CMS dropdown nav items and insert them into new dropdown items container\r\n\t\t\t\t\t\t$('#tree > li').each(function() {\r\n\r\n\t\t\t\t\t\t\tvar dropdownItem = $(this).addClass('adminbar_dropdown-item');\r\n\t\t\t\t\t\t\tdropdownItem.appendTo('.adminbar_dropdown-items-container');\r\n\r\n\t\t\t\t\t\t\tvar pageHeading = $('#administrationExcerpt h1').html();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// Unhide dropdown section heading. Insert page section name\r\n\t\t\t\t\t\t\t$('.adminbar_dropdown-section-heading-container').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t$('.adminbar_dropdown-section-heading').html(pageHeading);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// Edits adminbar toggle heading\r\n\t\t\t\t\t\t\t$('.adminbar_back-heading').html('Back to Administration');\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// Unhide left side toggle arrow that takes you back. Hide right toggle arrow\r\n\t\t\t\t\t\t\t$('.adminbar_back-icon').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// Hide the container containing the main nav items\r\n\t\t\t\t\t\t\t$('.adminbar_nav-items-container').addClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// Unhide dropdown nav items container\r\n\t\t\t\t\t\t\t$('.adminbar_dropdown-items-container').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t});\r\n\r\n\r\n\t\t\t\t\t\t// Apply element and styling changes to each dropdown item\r\n\t\t\t\t\t\t$('.adminbar_dropdown-item a').each(function(i, item){\r\n\r\n\t\t\t\t\t\t\t// Remove the trigger element\r\n\t\t\t\t\t\t\t$('.trigger').remove();\r\n\r\n\t\t\t\t\t\t\t// Add a class to all dropdown item anchor tags\r\n\t\t\t\t\t\t\t$(item).addClass('adminbar_dropdown-item-link js-adminbar_item-link');\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// Remove classes to all dropdown item anchor tags\r\n\t\t\t\t\t\t\t$(item).removeClass('highlight roundb');\r\n\r\n\t\t\t\t\t\t\t// Remove old classes from dropdown items secondary dropdown and add new classes to them\r\n\t\t\t\t\t\t\t$('.adminbar_dropdown-item ul').removeClass('panel');\r\n\t\t\t\t\t\t\t$('.adminbar_dropdown-item ul').removeAttr('style');\r\n\t\t\t\t\t\t\t$('.adminbar_dropdown-item ul').addClass('adminbar_inner-dropdown-container adminbar_hide-el');\r\n\r\n\t\t\t\t\t\t\t// Add right chevron icon to dropdown items with inner dropdowns\r\n\t\t\t\t\t\t\tif($(item).attr('href') === '#'){\r\n\t\t\t\t\t\t\t\t$(item).append(\r\n\t\t\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// When clicking a dropdown item with an inner dropdown, toggle the inner dropdown container\r\n\t\t\t\t\t\t$('.adminbar_dropdown-item a').on('click', function(e){\r\n\t\t\t\t\t\t\te.stopPropagation()\r\n\r\n\t\t\t\t\t\t\tif($(this).attr('href') === '#'){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// Toggle the innder dropdown container\r\n\t\t\t\t\t\t\t\t$(this).siblings('.adminbar_inner-dropdown-container').toggleClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\t$(this).siblings('.adminbar_inner-dropdown-container').toggleClass('adminbar_show-el');\r\n\r\n\t\t\t\t\t\t\t\t// Toggle the main dorpdown items chevron icon\r\n\t\t\t\t\t\t\t\tif($(this).children('.adminbar_dropdown-item-chevron').hasClass('fa-chevron-right')) {\r\n\t\t\t\t\t\t\t\t\t$(this).children('.adminbar_dropdown-item-chevron').removeClass('fa-chevron-right');\r\n\t\t\t\t\t\t\t\t\t$(this).children('.adminbar_dropdown-item-chevron').addClass('fa-chevron-down');\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t$(this).children('.adminbar_dropdown-item-chevron').removeClass('fa-chevron-down');\r\n\t\t\t\t\t\t\t\t\t$(this).children('.adminbar_dropdown-item-chevron').addClass('fa-chevron-right');\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Navigation from dropdown items section to main nav items section\r\n\t\t\t\t\t\t$('.js-adminbar_back-step-container').on('click', function(e){\r\n\t\t\t\t\t\t\te.stopPropagation();\r\n\r\n\t\t\t\t\t\t\t$('.adminbar_nav-item-heading').removeClass('adminbar_hide-el');\r\n\r\n\t\t\t\t\t\t\t// Edits adminbar toggle heading\r\n\t\t\t\t\t\t\t$('.adminbar_back-heading').html('Administration');\r\n\r\n\t\t\t\t\t\t\t// Hide left side toggle arrow that takes you back. Unide right toggle arrow\r\n\t\t\t\t\t\t\t$('.adminbar_back-icon').addClass('adminbar_hide-el');\r\n\r\n\t\t\t\t\t\t\t// Hide dropdown section heading\r\n\t\t\t\t\t\t\t$('.adminbar_dropdown-section-heading-container').addClass('adminbar_hide-el');\r\n\r\n\t\t\t\t\t\t\t// Hide dropdown nav items container\r\n\t\t\t\t\t\t\t$('.adminbar_dropdown-items-container').addClass('adminbar_hide-el');\r\n\r\n\t\t\t\t\t\t\t// Unhide main nav items container\r\n\t\t\t\t\t\t\t$('.adminbar_nav-items-container').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t});\r\n\r\n\r\n\t\t\t\t\t\t// Allows you to go forward and return to the nav sub items without refreshing the page\r\n\t\t\t\t\t\t// Loop thorugh main admin nav items\r\n\t\t\t\t\t\t$('.adminbar_nav-items-container a').each(function(i, el){\r\n\r\n\t\t\t\t\t\t\tvar urlPath = $(el).attr('href');\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// Check if any of the main nav items href mathces the page url\r\n\t\t\t\t\t\t\tif(pagePath.includes(urlPath)) {\r\n\t\t\t\t\t\t\t\t// Remove the href from the matching main nav item\r\n\t\t\t\t\t\t\t\t$(el).removeAttr('href');\r\n\r\n\t\t\t\t\t\t\t\t$(el).on('click', function(e){\r\n\t\t\t\t\t\t\t\t\te.stopPropagation();\r\n\r\n\t\t\t\t\t\t\t\t\t// $('.adminbar_container').addClass('adminbar_expand');\r\n\t\t\t\t\t\t\t\t\t$('.adminbar_back-step-container').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\t\t$('.adminbar_back-heading').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\t\t$('.adminbar_dropdown-section-heading').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\t\t$('.adminbar_dropdown-item-link').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\t\t$('.adminbar_toggle-icon').removeClass('fa-arrow-right');\r\n\t\t\t\t\t\t\t\t\t$('.adminbar_toggle-icon').addClass('fa-arrow-left');\r\n\r\n\t\t\t\t\t\t\t\t\t// Hide main nav items container\r\n\t\t\t\t\t\t\t\t\t$('.adminbar_nav-items-container').addClass('adminbar_hide-el');\r\n\r\n\t\t\t\t\t\t\t\t\t// Edits adminbar toggle heading\r\n\t\t\t\t\t\t\t\t\t$('.adminbar_back-heading').html('Back to Administration');\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t// Unhide dropdown section heading\r\n\t\t\t\t\t\t\t\t\t$('.adminbar_dropdown-section-heading-container').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t// Unhide back icon\r\n\t\t\t\t\t\t\t\t\t$('.adminbar_back-icon').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t// Unhide dropdown nav items container\r\n\t\t\t\t\t\t\t\t\t$('.adminbar_dropdown-items-container').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\r\n\r\n\t\t\t\t\t\t// If local storage item is set to open on page load\r\n\t\t\t\t\t\tif(localStorage.getItem(\"adminbar\") === \"open\"){\r\n\r\n\t\t\t\t\t\t\t$('.adminbar_container').addClass('adminbar_expand');\r\n\t\t\t\t\t\t\t$('.adminbar_item-heading').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t$('.adminbar_toggle-icon').removeClass('fa-arrow-right');\r\n\t\t\t\t\t\t\t$('.adminbar_toggle-icon').addClass('fa-arrow-left');\r\n\t\t\t\t\t\t\t$('.adminbar_back-step-container').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t$('body').addClass('body-left-margin');\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// When on sub nav items section\r\n\t\t\t\t\t\t\t$('.adminbar_dropdown-section-heading').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t$('.adminbar_dropdown-item-link').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// If local storage item is set to closed on page load\r\n\t\t\t\t\t\tif(localStorage.getItem(\"adminbar\") === \"closed\"){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$('.adminbar_container').removeClass('adminbar_expand');\r\n\t\t\t\t\t\t\t$('.adminbar_item-heading').addClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t$('.adminbar_back-step-container').addClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t$('body').removeClass('body-left-margin');\r\n\r\n\t\t\t\t\t\t\t// When on sub nav items section\r\n\t\t\t\t\t\t\t$('.adminbar_dropdown-section-heading').addClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t$('.adminbar_dropdown-item-link').addClass('adminbar_hide-el');\r\n\t\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t\t// Adminbar mousenter functionality\r\n\t\t\t\t\t\t$('.adminbar_container').on('mouseenter', function(){\r\n\r\n\t\t\t\t\t\t\tif(localStorage.getItem(\"adminbar\") === \"closed\"){\r\n\r\n\t\t\t\t\t\t\t\t$('.adminbar_container').addClass('adminbar_hover');\r\n\t\t\t\t\t\t\t\t$('.adminbar_item-heading').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\t$('.adminbar_back-step-container').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\t$('body').addClass('body-left-margin');\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// When on sub nav items section\r\n\t\t\t\t\t\t\t\t$('.adminbar_dropdown-section-heading').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\t$('.adminbar_dropdown-item-link').removeClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Adminbar mouseleave functionality\r\n\t\t\t\t\t\t$('.adminbar_container').on('mouseleave', function(){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(localStorage.getItem(\"adminbar\") === \"closed\"){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$('.adminbar_container').removeClass('adminbar_hover');\r\n\t\t\t\t\t\t\t\t$('.adminbar_item-heading').addClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\t$('.adminbar_toggle-icon').removeClass('fa-arrow-left');\r\n\t\t\t\t\t\t\t\t$('.adminbar_toggle-icon').addClass('fa-arrow-right');\r\n\t\t\t\t\t\t\t\t$('.adminbar_back-step-container').addClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\t$('body').removeClass('body-left-margin');\r\n\r\n\t\t\t\t\t\t\t\t// When on sub nav items section\r\n\t\t\t\t\t\t\t\t$('.adminbar_dropdown-section-heading').addClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t\t$('.adminbar_dropdown-item-link').addClass('adminbar_hide-el');\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t})\r\n\r\n\r\n\t\t\t\t\t\t// Add Id to every adminbar nav item and dropdown item icons\r\n\t\t\t\t\t\t$('.js-adminbar_item-link').each(function(i, el){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$(el).attr('id', `adminbar_item-${i}`);\r\n\t\t\t\t\t\t\t$(el).siblings('.js-adminbar_dropdown-item-icon').attr('id', `adminbar_item-${i}`);\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Set local storage value to be the Id of the clicked admin item\r\n\t\t\t\t\t\t$('.js-adminbar_item-link, .js-adminbar_dropdown-item-icon').on('click', function(){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tconst clickedItem = $(this).attr('id');\r\n\t\t\t\t\t\t\tlocalStorage.setItem(\"adminbar_active-item\", clickedItem);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Add active highlight class to clicked admin nav item\r\n\t\t\t\t\t\t$('.js-adminbar_item-link').each(function(i, el){\r\n\r\n\t\t\t\t\t\t\t$(el).removeClass('adminbar_active-item');\r\n\r\n\t\t\t\t\t\t\t// Check which admin items Id matches the local storage value\r\n\t\t\t\t\t\t\tif(localStorage.getItem(\"adminbar_active-item\") === $(el).attr('id')) {\r\n\r\n\t\t\t\t\t\t\t\t$(el).addClass('adminbar_active-item');\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\r\n\r\n\t\t\t\t\t\t// Keep inner dropdown open for item selected and change chevron to face down\r\n\t\t\t\t\t\t$('.adminbar_active-item').parents('.adminbar_inner-dropdown-container').toggleClass('adminbar_show-el');\r\n\t\t\t\t\t\t$('.adminbar_dropdown-item a').each(function(i, el){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif($(el).hasClass('adminbar_active-item')) {\r\n\t\t\t\t\t\t\t\t$(this).parents('.adminbar_inner-dropdown-container').siblings('a').children().removeClass('fa-chevron-right').addClass('fa-chevron-down');\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t// Mobile/Tablet\r\n\t\t\t\t\t\tif ($(window).width() <= 1023){\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// When on a main CMS section page, load the dropdown items\r\n\t\t\t\t\t\t\t$('.adminbar_dropdown-items-container .adminbar_dropdown-item-link').on('click', function(){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tlocalStorage.setItem(\"adminbar\", \"closed\");\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tfunction scanForm(){\r\n\t\r\n\t\t\tconsole.log('Scan form is initiated');\r\n\t\r\n\t\t\twaitForElem(`.form-main__questions-container`).then(() => {\r\n\r\n\t\t\t\t// Show form header\r\n\t\t\t\t$('.s4s-pathway-header-container').show();\r\n\t\r\n\t\t\t\t// form-main\r\n\t\t\t\tif ( $('.navigation-bar__container').length ) {\r\n\t\r\n\t\t\t\t\t$('.navigation-bar__container').closest('.section').next().addClass('form-main');\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$('.formContainer').find('.span_12_of_12').parent().addClass('form-main');\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// For Skip to content link\r\n\t\t\t\t$('.form-main').attr('id', 'maincontent');\r\n\t\r\n\t\t\t\t// Contrast stuff\r\n\t\t\t\t$('.form-main').addClass('pcg-contrast__bg-alt pcg-contrast__bg-alt pcg-contrast__color-alt');\r\n\t\t\t\t$('h1').addClass('pcg-contrast__color-alt');\r\n\t\t\t\t$('label').addClass('pcg-contrast__color-extra');\r\n\t\t\t\t$('p').addClass('pcg-contrast__color-extra');\r\n\t\t\t\t$('legend').addClass('pcg-contrast__color-extra');\r\n\r\n\t\t\t\t// Make nav form bar tabbable\r\n\t\t\t\t$('.navigation-bar__item_clickable').attr('tabindex','0');\r\n\t\t\t});\r\n\r\n\t\t\t// This is a hack to get the calendar controls to render\r\n\t\t\twaitForElem(`.form-date__control`).then(() => {\r\n\t\t\t\t$('.form-date__control').parent().addClass('pcgf-default');\r\n\t\t\t});\r\n\r\n\t\t}\r\n\t\r\n\t\r\n\t\t\r\n\t\r\n\t\tfunction mobileTableLabels() {\r\n\t\r\n\t\t\t$('table').each(function() {\r\n\t\t\t\t$(this).find('th').each(function(i){\r\n\t\t\t\t\tvar text = $(this).text();\r\n\t\t\t\t\t//console.log('This text is: ' + text);\r\n\t\t\r\n\t\t\t\t\tif ( text !== 'Available actions' && text !== 'Detail') {\r\n\t\t\t\t\t\t$(this).parent().parent().parent().find('td:nth-child(' + (i + 1) +')').prepend('' + text + ': ');\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t})\r\n\t\t}\r\n\r\n\t\t// VW Lite - Creates mobile nav item with a quesiton mark icon\r\n\t\tfunction createMobileLinkwLite(text, link) {\r\n\t\t\treturn `\r\n\t\t\t\t
  • \r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

    ${text}

    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t
  • \r\n\t\t\t`\r\n\t\t}\r\n\t\r\n\t\t// VW Lite - Creates desktop main nav tab\r\n\t\tfunction createDesktopNavTabVwLite(name, link) {\r\n\t\t\treturn `\r\n\t\t\t${name}\r\n\t\t\t`\r\n\t\t}\r\n\t\t\r\n\t\t// Creates mobile nav item with a quesiton mark icon\r\n\t\tfunction createMobileLink(text, link) {\r\n\t\t\treturn `\r\n\t\t\t\t
  • \r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

    ${text}

    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t
  • \r\n\t\t\t`\r\n\t\t}\r\n\t\r\n\t\t// Creates mobile nav item with an info icon\r\n\t\tfunction createMobileLinkInfo(text, link) {\r\n\t\t\treturn `\r\n\t\t\t\t
  • \r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

    ${text}

    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t
  • \r\n\t\t\t`\r\n\t\t}\r\n\t\r\n\t\t// Creates mobile nav section tab and container\r\n\t\tfunction createMobileNavTab(data, name) {\r\n\t\t\treturn `\r\n\t\t\t
    \r\n\t\t\t\t

    ${name}

    \r\n\t\t\t\t\r\n\t\t\t
    \r\n\t\t\t`\r\n\t\t}\r\n\t\r\n\t\t// Creates desktop main nav tab\r\n\t\tfunction createDesktopNavTab(data, name, selected) {\r\n\t\t\treturn `\r\n\t\t\t
  • \r\n\t\t\t\t
    \r\n\t\t\t\t\t\r\n\t\t\t\t\t

    ${name}

    \r\n\t\t\t\t
    \r\n\t\t\t
  • \r\n\t\t\t`\r\n\t\t}\r\n\t\r\n\t\t// Creates desktop nav item with question mark icon\r\n\t\tfunction createDesktopLink(text, link, selected) {\r\n\t\t\treturn `\r\n\t\t\t
  • \r\n\t\t\t\t${text}\r\n\t\t\t
  • \r\n\t\t\t`\r\n\t\t}\r\n\t\r\n\t\t// Creates desktop nav item with info icon\r\n\t\tfunction createDesktopLinkInfo(text, link, selected) {\r\n\t\t\treturn `\r\n\t\t\t
  • \r\n\t\t\t\t${text}\r\n\t\t\t
  • \r\n\t\t\t`\r\n\t\t}\r\n\t\r\n\t\r\n\t\t// Displays the desktop navigation dropdowns and items depending on the page\r\n\t\tfunction selectedDesktopNavItem(navItem, noitem){\r\n\t\r\n\t\t\tvar bottomItemsContainer = $(navItem).closest('.header-nav_bottom-dropdown-container');\r\n\t\r\n\t\t\t// Check if the selected dropdown item container has the same data as any of the main nav tabs, if so, add background colour to selected main nav tab\r\n\t\t\t$('.header-nav_bottom-item-container-desktop').each(function(j, tab){\r\n\t\t\t\tif($(bottomItemsContainer).data('dropdown') === $(tab).data('dropdown')) {\r\n\t\t\t\t\t$(tab).addClass('header-active-tab');\r\n\t\t\t\t\t$(tab).attr('aria-expanded', 'true');\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t\r\n\t\t\t// Removes the bottom nav border\r\n\t\t\t$('.header-nav_bottom-section').addClass('header-active-dropdown-border');\r\n\t\t\t// Sets bottom dark nav bar to display\r\n\t\t\t$('.header-nav_bottom-dropdown-section').addClass('header-active-dropdown-section');\r\n\t\t\t// Sets selected nav item parent container to display\r\n\t\t\t$(bottomItemsContainer).addClass('header-active-dropdown-container');\r\n\r\n\t\t\tif ( noitem === undefined) {\r\n\t\t\t\t// Add blue text to active item\r\n\t\t\t\t$(navItem).css('color', '#b2e4f6');\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\r\n\t\r\n\t\tfunction virtualWalletNav() {\r\n\t\t\t\r\n\t\t\tlet securityGuids = [];\r\n\r\n\t\t\t// Push securityGroups guids into array\r\n\t\t\t$(authSettings.securityGroups).each(function(i, el){\r\n\r\n\t\t\t\tsecurityGuids.push(el);\r\n\r\n\t\t\t});\r\n\r\n\t\t\t// Desktop\r\n\t\t\tlet vwLiteDesktopDashboard_link = createDesktopNavTabVwLite('Dashboard', '/s4s/CustomPage/Index/' + Urls.vwProductOne);\r\n\t\t\tlet vwLiteMyStatementDashboard_link = createDesktopNavTabVwLite('My statement', '/s4s/CustomPage/Index/' + Urls.vwProductTwo + '?query=');\r\n\t\t\tlet vwLiteMyOrdersDashboard_link = createDesktopNavTabVwLite('My orders', '/s4s/MyOrders');\r\n\t\t\tlet vwLiteMarkeplaceDashboard_link = createDesktopNavTabVwLite('Marketplaces', '/s4s/CustomPage/Index/' + Urls.searchShopServices + '?Page=Services&Search=');\r\n\t\t\tlet vwLiteMyDocumentsDashboard_link = createDesktopNavTabVwLite('My documents' , '/s4s/CustomPage/Index/' + Urls.myDocuments);\r\n\t\t\tlet vwLiteMyProfileDashboard_link = createDesktopNavTabVwLite('My profile' , '/s4s/MyProfile/MyProfileTab');\r\n\t\t\t//let vwLiteFundingDueDashboard_link = createDesktopNavTabVwLite('Funding due', '/s4s/CustomPage/Index/' + Urls.fundingDue);\r\n\r\n\t\t\t// Mobile\r\n\t\t\tlet vwLiteMobileDashboard_link = createMobileLinkwLite('Dashboard', '/s4s/CustomPage/Index/' + Urls.vwProductOne);\r\n\t\t\tlet vwLiteMobileMyStatementDashboard_link = createMobileLinkwLite('My statement', '/s4s/CustomPage/Index/' + Urls.vwProductTwo + '?query=');\r\n\t\t\tlet vwLiteMobileMyOrdersDashboard_link = createMobileLinkwLite('My orders', '/s4s/MyOrders');\r\n\t\t\tlet vwLiteMobileMarkeplaceDashboard_link = createMobileLinkwLite('Marketplaces', '/s4s/CustomPage/Index/' + Urls.searchShopServices + '?Page=Services&Search=');\r\n\t\t\tlet vwLiteMobileMyDocumentsDashboard_link = createMobileLinkwLite('My documents' , '/s4s/CustomPage/Index/' + Urls.myDocuments);\r\n\t\t\tlet vwLiteMobileMyProfileDashboard_link = createMobileLinkwLite('My profile' , '/s4s/MyProfile/MyProfileTab');\r\n\t\t\t//let vwLiteMobileFundingDueDashboard_link = createMobileLinkwLite('Funding due' , '/s4s/CustomPage/Index/' + Urls.fundingDue);\r\n\r\n\t\t\t// VW Lite header\r\n\t\t\t// If array contains any of these guids then display VW Lite header or else display standard VW (also change logic in 93 - homepage)\r\n\t\t\tif(securityGuids.includes(Urls.virtualWalletLiteSecurityGroup)) {\r\n\r\n\t\t\t\t// Add vw lite class to body tag\r\n\t\t\t\t$('body').addClass('vw-lite');\r\n\r\n\t\t\t\t// Desktop\r\n\t\t\t\t// Adds the nav tabs to the nav bar\r\n\t\t\t\t$('.js-header-nav_bottom-container-desktop').html(\r\n\t\t\t\t\t`\r\n\t\t\t\t\t\t${vwLiteDesktopDashboard_link}\r\n\t\t\t\t\t\t${vwLiteMyStatementDashboard_link}\r\n\t\t\t\t\t\t${vwLiteMyOrdersDashboard_link}\r\n\t\t\t\t\t\t${vwLiteMarkeplaceDashboard_link}\r\n\t\t\t\t\t\t${vwLiteMyDocumentsDashboard_link}\r\n\t\t\t\t\t\t${vwLiteMyProfileDashboard_link}\r\n\t\t\t\t\t`\r\n\t\t\t\t);\r\n\t\r\n\t\t\t\t// Mobile\r\n\t\t\t\t// Adds the nav section containers to the mobile nav container\r\n\t\t\t\t$('.js-header-nav_bottom-container-mobile').prepend(\r\n\t\t\t\t\t`\r\n\t\t\t\t\t\t${vwLiteMobileDashboard_link}\r\n\t\t\t\t\t\t${vwLiteMobileMyStatementDashboard_link}\r\n\t\t\t\t\t\t${vwLiteMobileMyOrdersDashboard_link}\r\n\t\t\t\t\t\t${vwLiteMobileMarkeplaceDashboard_link}\r\n\t\t\t\t\t\t${vwLiteMobileMyDocumentsDashboard_link}\r\n\t\t\t\t\t\t${vwLiteMobileMyProfileDashboard_link}\r\n\t\t\t\t\t`\r\n\t\t\t\t);\r\n\r\n\t\t\t// Croydon managed accounts (LA staff Managed accounts) - IF LA BO type = LA AND default BV = LA AND isCaseManager= True default BV = BM AND iOrgAdmin= True && Croydon\r\n\t\t\t} else if ( authSettings.defaultBusinessView === '23513fee-e77e-4a25-bf26-e84f1825f17b' && authSettings.isOrgAdmin === true && $.sc.authSettings.organisationId === '324f8196-c77d-4f80-aac3-a99e00adb2a8' ) {\r\n\r\n\t\t\t\tconst mobileProviderDetailsTab = createMobileLink('Provider details', '/s4s/CustomPage/Index/' + Urls.providerDetails);\r\n\t\t\t\tconst desktopProviderDetailsTab = createDesktopLink('Provider details', '/s4s/CustomPage/Index/' + Urls.providerDetails, 'provider-details');\r\n\r\n\t\t\t\t// Look to see if user is a Approver\r\n\t\t\t\tlet manual_transactions_link = '';\r\n\t\t\t\tlet desktopManual_transactions_link = '';\r\n\r\n\t\t\t\tif( securityGuids.includes(Urls.approverSecurityGroup)) {\r\n\r\n\t\t\t\t\t$.sc.authSettings.permissions.forEach(function(item){\r\n\r\n\t\t\t\t\t\t// Look for Payment approvals guid\r\n\t\t\t\t\t\tif ( Urls.permission.manualTransactionPayments === item ) {\r\n\t\t\t\t\t\t\tmanual_transactions_link = createMobileLinkInfo('Payment approvals', '/s4s/CustomPage/Index/' + Urls.manualTransactionPayments)\r\n\t\t\t\t\t\t\tdesktopManual_transactions_link = createDesktopLinkInfo('Payment approvals', '/s4s/CustomPage/Index/' + Urls.manualTransactionPayments, 'manual-transactions-payments-page')\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Adds the nav tabs to the nav bar\r\n\t\t\t\t$('.js-header-nav_bottom-container-desktop').html(\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t\t${vwLiteMyProfileDashboard_link}\r\n\t\t\t\t\t\t${desktopProviderDetailsTab}\r\n\t\t\t\t\t\t${desktopManual_transactions_link}\r\n\t\t\t\t\t`\r\n\t\t\t\t);\r\n\t\r\n\t\t\t\t// Mobile\r\n\t\t\t\t// Adds the nav section containers to the mobile nav container\r\n\t\t\t\t$('.js-header-nav_bottom-container-mobile').prepend(\r\n\t\t\t\t\t`\r\n\t\t\t\t\t\t${vwLiteMobileMyProfileDashboard_link}\r\n\t\t\t\t\t\t${mobileProviderDetailsTab}\t\t\r\n\t\t\t\t\t\t${manual_transactions_link}\r\n\t\t\t\t\t`\r\n\t\t\t\t);\r\n\t\t\t\t\r\n\r\n\t\t\t// Provider links\r\n\t\t\t} else if ( authSettings.pplRole === '112c3cc7-2c81-4702-a988-ec2c1bb03cb9') {\r\n\r\n\t\t\t\t// Adds the nav tabs to the nav bar\r\n\t\t\t\t$('.js-header-nav_bottom-container-desktop').html(\r\n\t\t\t\t\t`\r\n\t\t\t\t\t\t${createDesktopLinkInfo('Dashboard', '/s4s/CustomPage/Index/' + Urls.vwProductOne, 'dashboard-page')}\r\n\t\t\t\t\t\t${$.sc.authSettings.permissions.includes('d01ddba4-0507-4ff4-a252-80a53bb020d3') ? createDesktopLink('PPL Connect' , '/s4s/CustomPage/Index/' + Urls.pplConnectPage, 'ppl-connect'): ``}\r\n\t\t\t\t\t\t${vwLiteMyProfileDashboard_link}\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t\t// ${$.sc.authSettings.permissions.includes('d01ddba4-0507-4ff4-a252-80a53bb020d3') ? createDesktopLink('Find a vacancy', '/s4s/CustomPage/Index/' + Urls.pa_vacancySearchPage, 'pa-search'): ``}\r\n\t\t\t\t);\r\n\t\r\n\t\t\t\t// Mobile\r\n\t\t\t\t// Adds the nav section containers to the mobile nav container\r\n\t\t\t\t$('.js-header-nav_bottom-container-mobile').prepend(\r\n\t\t\t\t\t`\r\n\t\t\t\t\t\t${createMobileLinkInfo('Dashboard', '/s4s/CustomPage/Index/' + Urls.vwProductOne)}\r\n\t\t\t\t\t\t${$.sc.authSettings.permissions.includes('d01ddba4-0507-4ff4-a252-80a53bb020d3') ? createMobileLink('PPL Connect' , '/s4s/CustomPage/Index/' + Urls.pplConnectPage): ``}\r\n\t\t\t\t\t\t${vwLiteMobileMyProfileDashboard_link}\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t\t// ${$.sc.authSettings.permissions.includes('d01ddba4-0507-4ff4-a252-80a53bb020d3') ? createDesktopLink('Find a vacancy', '/s4s/CustomPage/Index/' + Urls.pa_vacancySearchPage): ``}\r\n\t\t\t\t);\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\t// VW header\r\n\r\n\t\t\t\t// Mobile\r\n\t\t\t\tlet my_profile_link = '';\r\n\t\t\t\tlet calendar_link = '';\r\n\t\t\t\tlet support_package_link = '';\r\n\t\t\t\tlet messages_link = '';\r\n\t\t\t\tlet personal_assistants_link = '';\r\n\t\t\t\tlet my_typical_week_link = '';\r\n\t\t\t\tlet my_assessments_link = '';\r\n\t\t\t\tlet provider_management_administration_link = '';\r\n\t\t\t\tlet reports_link = '';\r\n\t\t\t\tlet bm_site_link = '';\r\n\t\t\t\tlet manual_transactions_link = '';\r\n\t\t\t\t\r\n\t\t\t\tlet support_summary_link = '';\r\n\t\t\t\tlet dashboard_link = '';\r\n\t\t\t\tlet my_statement_link = '';\r\n\t\t\t\tlet marketplaces_link = '';\r\n\t\t\t\tlet enrolmentDashboard_link = '';\r\n\t\t\t\tlet my_payments_link = '';\r\n\t\t\t\tlet manage_payees_link = '';\r\n\t\t\t\tlet my_payment_transfers_link = '';\r\n\t\t\t\tlet funding_due_link = '';\r\n\t\t\t\tlet pplConnect_link = '';\r\n\t\t\t\tlet findPA_link = '';\r\n\t\t\r\n\t\t\t\t// Desktop\r\n\t\t\t\tlet desktopMy_profile_link = '';\r\n\t\t\t\tlet desktopCalendar_link = '';\r\n\t\t\t\tlet desktopSupport_package_link = '';\r\n\t\t\t\tlet desktopMessages_link = '';\r\n\t\t\t\tlet desktopPersonal_assistants_link = '';\r\n\t\t\t\tlet desktopMy_typical_week_link = '';\r\n\t\t\t\tlet desktopMy_assessments_link = '';\r\n\t\t\t\tlet desktopProvider_management_administration_link = '';\r\n\t\t\t\tlet desktopReports_link = '';\r\n\t\t\t\tlet desktopBm_site_link = '';\r\n\t\t\t\tlet desktopManual_transactions_link = '';\r\n\t\t\t\t\r\n\t\t\t\tlet desktopSupport_summary_link = '';\r\n\t\t\t\tlet desktopDashboard_link = '';\r\n\t\t\t\tlet desktopMy_statement_link = '';\r\n\t\t\t\tlet desktopMarketplaces_link = '';\r\n\t\t\t\tlet desktopPPLConnect_link = '';\r\n\r\n\t\t\t\tlet desktopFindPA_link = '';\r\n\r\n\t\t\t\tlet desktopEnrolmentDashboard_link = '';\r\n\t\t\t\tlet desktopMy_payments_link = '';\r\n\t\t\t\tlet desktopManage_payees_link = '';\r\n\t\t\t\tlet desktopMy_payment_transfers_link = '';\r\n\t\t\t\tlet desktopFunding_due_link = '';\r\n\r\n\t\t\t\t//////////////////////// THIS MAY BE CONFUSING FOR USERS AS THEY WILL NEED TO SEE THEIR DETAILS ////////////////////////\r\n\t\t\t\t// let myprofilehref = '';\r\n\t\t\t\t// if ($.sc.authSettings.pplId === null) {\r\n\t\t\t\t// \tmyprofilehref = '/s4s/MyProfile/MyProfileTab';\r\n\t\t\t\t// } else {\r\n\t\t\t\t// \tmyprofilehref = '/s4s/CustomPage/Index/148';\r\n\t\t\t\t// }\r\n\t\t\t\tlet myprofilehref = '/s4s/MyProfile/MyProfileTab';\r\n\t\t\r\n\t\t\t\tif(authSettings.login !== null){\r\n\t\t\t\t\tif ( getUserJson.AvailableModules ) {\r\n\t\t\t\t\t\tgetUserJson.AvailableModules.map((module) => {\r\n\t\t\t\t\r\n\r\n\t\t\t\t\t\t\tif ( module === 'my_profile' ) {\r\n\t\t\t\t\t\t\t\tmy_profile_link = createMobileLinkInfo('My profile' , myprofilehref)\r\n\t\t\t\t\t\t\t\tdesktopMy_profile_link = createDesktopLinkInfo('My profile' , myprofilehref, 'profile-page')\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif ( module === 'my_calendar' ) {\r\n\t\t\t\t\t\t\t\tcalendar_link = createMobileLink('My calendar' , '/s4s/MyCalendar?query=&vw=1')\r\n\t\t\t\t\t\t\t\tdesktopCalendar_link = createDesktopLink('My calendar' , '/s4s/MyCalendar?query=&vw=1', 'calendar-page')\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t// Do not show these for Read only individuals\r\n\t\t\t\t\t\t\tif (userInfo.readonly === false ) {\r\n\t\t\t\t\t\t\t\tif ( module === 'my_support_packages' ) {\r\n\t\t\t\t\t\t\t\t\tsupport_package_link = createMobileLink('My quotes' , '/s4s/MySupportPackages?hideCompleted=false')\r\n\t\t\t\t\t\t\t\t\tdesktopSupport_package_link = createDesktopLink('My quotes' , '/s4s/MySupportPackages?hideCompleted=false', 'support-package-page')\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif ( module === 'my_messages' ) {\r\n\t\t\t\t\t\t\t\t\tmessages_link = createMobileLink('Messages' , '/s4s/CustomPage/Index/' + Urls.pplChat)\r\n\t\t\t\t\t\t\t\t\tdesktopMessages_link = createDesktopLink('Messages' , '/s4s/CustomPage/Index/' + Urls.pplChat, 'messages-page')\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif ( module === 'my_typical_week' ) {\r\n\t\t\t\t\t\t\t\t\tmy_typical_week_link = createMobileLink('My typical week' , '/s4s/MyTypicalWeekSpa')\r\n\t\t\t\t\t\t\t\t\tdesktopMy_typical_week_link = createDesktopLink('My typical week' , '/s4s/MyTypicalWeekSpa', 'typical-week-page')\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif ( module === 'provider_management_administration' ) {\r\n\t\t\t\t\t\t\t\t\tprovider_management_administration_link = createMobileLink('My timesheets' , '/s4s/CustomPage/Index/' + Urls.providerTimesheetsAdmin)\r\n\t\t\t\t\t\t\t\t\tdesktopProvider_management_administration_link = createDesktopLink('My timesheets' , '/s4s/CustomPage/Index/' + Urls.providerTimesheetsAdmin, 'provider-manage-admin-page')\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif ( module === 'personal_assistants' || module === 'personal_assistance' ) {\r\n\t\t\t\t\t\t\t\tpersonal_assistants_link = createMobileLink('Personal assistants' , '/s4s/CustomPage/Index/' + Urls.personalTimesheets)\r\n\t\t\t\t\t\t\t\tdesktopPersonal_assistants_link = createDesktopLink('Personal assistants' , '/s4s/CustomPage/Index/' + Urls.personalTimesheets, 'personal-assist-page')\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif ( module === 'my_assessments' ) {\r\n\t\t\t\t\t\t\t\tmy_assessments_link = createMobileLink('My documents' , '/s4s/CustomPage/Index/' + Urls.myDocuments)\r\n\t\t\t\t\t\t\t\tdesktopMy_assessments_link = createDesktopLink('My documents' , '/s4s/CustomPage/Index/' + Urls.myDocuments, 'my-assessments-page')\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif ( module === 'bm_site' ) {\r\n\t\t\t\t\t\t\t\tbm_site_link = createMobileLink('Open Budget Manager', '/s4s/BMSite');\r\n\t\t\t\t\t\t\t\tdesktopBm_site_link = createDesktopLink('Open Budget Manager', '/s4s/BMSite', 'budget-manager-page');\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t// if ( module === 'funding_due' ) {\r\n\t\t\t\t\t\t\t// \tfunding_due_link = createMobileLink('Funding due' , '/s4s/CustomPage/Index/' + Urls.fundingDue)\r\n\t\t\t\t\t\t\t// \tdesktopFunding_due_link = createDesktopLink('Funding due' , '/s4s/CustomPage/Index/' + Urls.fundingDue, 'funding-due-page')\r\n\t\t\t\t\t\t\t// }\r\n\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Look at permissions\r\n\t\t\t\t$.sc.authSettings.permissions.forEach(function(item, index){\r\n\r\n\t\t\t\t\t// Look for Payment approvals guid\r\n\t\t\t\t\tif ( Urls.permission.manualTransactionPayments === item ) {\r\n\t\t\t\t\t\tmanual_transactions_link = createMobileLinkInfo('Payment approvals', '/s4s/CustomPage/Index/' + Urls.manualTransactionPayments)\r\n\t\t\t\t\t\tdesktopManual_transactions_link = createDesktopLinkInfo('Payment approvals', '/s4s/CustomPage/Index/' + Urls.manualTransactionPayments, 'manual-transactions-payments-page')\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Funding due\r\n\t\t\t\t\tif ( 'ec2aa69b-db69-4a3e-a0c4-7a65401e64d5' === item && $.sc.authSettings.isOriginalPrincipalSag === true) {\r\n\t\t\t\t\t\tfunding_due_link = createMobileLink('Funding due' , '/s4s/CustomPage/Index/' + Urls.fundingDue)\r\n\t\t\t\t\t\tdesktopFunding_due_link = createDesktopLink('Funding due' , '/s4s/CustomPage/Index/' + Urls.fundingDue, 'funding-due-page')\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Reports\r\n\t\t\t\t\tif ( '4a7ce900-b1e1-474c-a836-db8038809bb9' === item ) {\r\n\t\t\t\t\t\treports_link = createMobileLink('Reports', '/s4s/CustomPage/Index/' + Urls.reportsPage);\r\n\t\t\t\t\t\tdesktopReports_link = createDesktopLink('Reports', '/s4s/CustomPage/Index/' + Urls.reportsPage, 'reports-page');\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\t\t// Look through MTP security groups\r\n\t\t\t\tif( authSettings.securityGroups.includes(Urls.manualTransactionSecurityGroups.mt_Payment) || authSettings.isOriginalPrincipalSag === true ) {\r\n\r\n\t\t\t\t\tmy_payments_link = createMobileLink('Payments', '/s4s/CustomPage/Index/' + Urls.manualPayment)\r\n\t\t\t\t\tdesktopMy_payments_link = createDesktopLink('Payments', '/s4s/CustomPage/Index/' + Urls.manualPayment, 'my-payments-page')\r\n\t\r\n\t\t\t\t\tmanage_payees_link = createMobileLink('Manage payees', '/s4s/CustomPage/Index/' + Urls.managePayee)\r\n\t\t\t\t\tdesktopManage_payees_link = createDesktopLink('Manage payees', '/s4s/CustomPage/Index/' + Urls.managePayee, 'manage-payees-page')\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Create nav items that do not have modules in the GetUserInfo API\r\n\t\t\t\tdashboard_link = createMobileLinkInfo('Dashboard', '/s4s/CustomPage/Index/' + Urls.vwProductOne)\r\n\t\t\t\tdesktopDashboard_link = createDesktopLinkInfo('Dashboard', '/s4s/CustomPage/Index/' + Urls.vwProductOne, 'dashboard-page')\r\n\t\t\r\n\t\t\t\tsupport_summary_link = createMobileLinkInfo('Support summary', '/s4s/CustomPage/Index/' + Urls.vwProductThree + '?query=&vw=1')\r\n\t\t\t\tdesktopSupport_summary_link = createDesktopLinkInfo('Support summary', '/s4s/CustomPage/Index/' + Urls.vwProductThree + '?query=&vw=1', 'support-summary-page')\r\n\t\t\r\n\t\t\t\tmy_statement_link = createMobileLink('My statement', '/s4s/CustomPage/Index/' + Urls.vwProductTwo + '?query=')\r\n\t\t\t\tdesktopMy_statement_link = createDesktopLink('My statement', '/s4s/CustomPage/Index/' + Urls.vwProductTwo + '?query=', 'my-statement-page')\r\n\t\t\t\t\r\n\t\t\t\tmy_payment_transfers_link = createMobileLink('Payment transfers', '/s4s/CustomPage/Index/' + Urls.paymentTransfer)\r\n\t\t\t\tdesktopMy_payment_transfers_link = createDesktopLink('Payment transfers', '/s4s/CustomPage/Index/' + Urls.paymentTransfer, 'payment-transfers-page')\r\n\r\n\t\t\t\tmarketplaces_link = createMobileLink('Marketplaces', '/s4s/CustomPage/Index/' + Urls.searchShopServices + '?Page=Services&Search=')\r\n\t\t\t\tdesktopMarketplaces_link = createDesktopLink('Marketplaces', '/s4s/CustomPage/Index/' + Urls.searchShopServices + '?Page=Services&Search=', 'marketplace-page')\r\n\t\t\t\t\r\n\t\t\t\tenrolmentDashboard_link = createMobileLink('Enrolment dashboard', '/s4s/CustomPage/Index/' + Urls.vwSagDash)\r\n\t\t\t\tdesktopEnrolmentDashboard_link = createDesktopLink('Enrolment dashboard', '/s4s/CustomPage/Index/' + Urls.vwSagDash, 'enrolment-dashboard-page')\r\n\r\n\t\t\t\t\r\n\t\t\t\t// PPL Connect\r\n\t\t\t\tif ($.sc.authSettings.permissions.includes('d01ddba4-0507-4ff4-a252-80a53bb020d3') ) {\r\n\r\n\t\t\t\t\tpplConnect_link = createMobileLink('PPL Connect', '/s4s/CustomPage/Index/' + Urls.pplConnectPage)\r\n\t\t\t\t\tdesktopPPLConnect_link = createDesktopLink('PPL Connect', '/s4s/CustomPage/Index/' + Urls.pplConnectPage, 'pplconnect-page');\r\n\r\n\t\t\t\t\t// findPA_link = createMobileLink('Find a PA', '/s4s/CustomPage/Index/' + Urls.pa_vacancySearchPage)\r\n\t\t\t\t\t// desktopFindPA_link = createDesktopLink('Find a PA', '/s4s/CustomPage/Index/' + Urls.pa_vacancySearchPage, 'find-a-pa');\r\n\t\t\t\t}\r\n\r\n\t\t\t\t\r\n\t\t\t\t// Creates desktop main nav tabs\r\n\t\t\t\tconst desktopSummaryTab = createDesktopNavTab(\"my-summary\", \"Account Summary\", \"account-summary-tab\");\r\n\t\t\t\tconst desktopSupportTab = createDesktopNavTab(\"my-support\", \"My Support\", \"my-support-tab\");\r\n\t\t\t\tconst desktopWalletTab = createDesktopNavTab(\"my-wallet\", \"Wallet Administration\", \"my-wallet-tab\");\r\n\t\t\t\tconst desktopDetailsTab = createDesktopNavTab(\"details\", \"Details\", \"details-tab\");\r\n\r\n\t\t\t\t// Creates mobile main nav section containers\r\n\t\t\t\tconst mobileSummaryTab = createMobileNavTab(\"account-summary\", \"Account Summary\");\r\n\t\t\t\tconst mobileSupportTab = createMobileNavTab(\"my-support\", \"My Support\");\r\n\t\t\t\tconst mobileWalletTab = createMobileNavTab(\"my-wallet\", \"Wallet Administration\");\r\n\t\t\t\tconst mobileDetailsTab = createMobileNavTab(\"details\", \"Details\");\r\n\r\n\r\n\t\t\t\t// If logged in then show the header options\r\n\t\t\t\t// if(authSettings.login !== null){\r\n\r\n\t\t\t\t\t// Desktop header nav\r\n\t\t\r\n\t\t\t\t\t// Adds the nav tabs to the nav bar\t\t\t\t\t\r\n\t\t\t\t\t// postOrganisationType();\r\n\r\n\t\t\t\tlet securityGuids = [];\r\n\r\n\t\t\t\t// Push securityGroups guids into array\r\n\t\t\t\t$(authSettings.securityGroups).each(function(i, el){\r\n\r\n\t\t\t\t\tsecurityGuids.push(el);\r\n\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\t$('.js-header-nav_bottom-container-desktop').html(\r\n\t\t\t\t\t`\r\n\t\t\t\t\t${desktopSummaryTab}\r\n\t\t\t\t\t${desktopSupportTab}\r\n\t\t\t\t\t${desktopWalletTab}\r\n\t\t\t\t\t${desktopDetailsTab}\r\n\t\t\t\t\t`\r\n\t\t\t\t);\r\n\r\n\t\t\r\n\t\t\t\t// Adds the nav items in seperate containers under the main nav tabs\r\n\t\t\t\t$('.js-nav_bottom-dropdown-container').html(\r\n\t\t\t\t\t`\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t${authSettings.isSag === false && authSettings.isIndividual === true || authSettings.isAuthorizedRepresentative === true\r\n\t\t\t\t\t\t\t?\r\n\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t\t${desktopDashboard_link}\r\n\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t``\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t${authSettings.hasPba === true\r\n\t\t\t\t\t\t\t?\r\n\t\t\t\t\t\t\t`${desktopMy_statement_link}`\r\n\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t``\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t${authSettings.isIndividual === true\r\n\t\t\t\t\t\t\t?\r\n\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t\t${securityGuids.includes(Urls.manualTransactionSecurityGroups.mt_Payment) || $.sc.authSettings.isOriginalPrincipalSag === true ? desktopMy_payments_link : ''} \r\n\t\t\t\t\t\t\t\t${securityGuids.includes(Urls.manualTransactionSecurityGroups.mt_Payment) || $.sc.authSettings.isOriginalPrincipalSag === true ? desktopManage_payees_link : ''} \r\n\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t``\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t
    \r\n\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t${authSettings.hasPba === true\r\n\t\t\t\t\t\t\t?\r\n\t\t\t\t\t\t\t`${desktopSupport_summary_link}`\r\n\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t``\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t${desktopPersonal_assistants_link}\r\n\t\t\t\t\t\t${desktopMy_typical_week_link}\r\n\t\t\t\t\t\t${desktopCalendar_link}\r\n\t\t\t\t\t\t${desktopSupport_package_link}\r\n\t\t\t\t\t\t${desktopPPLConnect_link}\r\n\t\t\t\t\t\t${desktopFindPA_link}\r\n\r\n\t\t\t\t\t\t${authSettings.isIndividual === true\r\n\t\t\t\t\t\t\t?\r\n\t\t\t\t\t\t\t`${desktopMarketplaces_link}`\r\n\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t``\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t
    \r\n\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t${desktopFunding_due_link}\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t${authSettings.isIndividual === false && authSettings.isEmployee === true && authSettings.pplId !== null\r\n\t\t\t\t\t\t\t?\r\n\t\t\t\t\t\t\t`${desktopDashboard_link}`\r\n\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t``\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t${desktopMy_profile_link}\r\n\t\t\t\t\t\t${authSettings.isSag === true || authSettings.isOrgAdmin === true\r\n\t\t\t\t\t\t\t?\r\n\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t\t${desktopEnrolmentDashboard_link}\r\n\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t``\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t${authSettings.isSag === true\r\n\t\t\t\t\t\t\t?\r\n\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t\t${desktopMy_payment_transfers_link}\r\n\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t``\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t${desktopProvider_management_administration_link}\r\n\t\t\t\t\t\t${desktopMessages_link}\r\n\t\t\t\t\t\t${desktopMy_assessments_link}\r\n\t\t\t\t\t\t${desktopManual_transactions_link}\r\n\t\t\t\t\t\t${desktopReports_link}\r\n\t\t\t\t\t\t${desktopBm_site_link}\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t`\r\n\t\t\t\t);\r\n\r\n\t\r\n\t\t\t\t// Mobile header nav\r\n\t\t\t\t// Adds the nav section containers to the mobile nav container\r\n\t\t\t\t$('.js-header-nav_bottom-container-mobile').append(\r\n\t\t\t\t\t`\r\n\t\t\t\t\t${mobileSummaryTab}\r\n\t\t\t\t\t${mobileSupportTab}\r\n\t\t\t\t\t${mobileWalletTab}\r\n\t\t\t\t\t${mobileDetailsTab}\r\n\t\t\t\t\t`\r\n\t\t\t\t);\r\n\t\t\t\t\r\n\t\r\n\t\t\t\t// Adds the nav items to the section created for it\r\n\t\t\t\t$('.js-header-nav-account-summary-mobile').html(\r\n\t\t\t\t\t`\r\n\t\t\t\t\t${authSettings.isSag === false && authSettings.isIndividual === true\r\n\t\t\t\t\t\t?\r\n\t\t\t\t\t\t`${dashboard_link}`\r\n\t\t\t\t\t\t:\r\n\t\t\t\t\t\t``\r\n\t\t\t\t\t}\r\n\t\t\t\t\t${authSettings.isIndividual === true\r\n\t\t\t\t\t\t?\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t${my_statement_link} \r\n\t\t\t\t\t\t\t${securityGuids.includes(Urls.manualTransactionSecurityGroups.mt_Payment) || $.sc.authSettings.isOriginalPrincipalSag === true ? my_payments_link : ''} \r\n\t\t\t\t\t\t\t${securityGuids.includes(Urls.manualTransactionSecurityGroups.mt_Payment) || $.sc.authSettings.isOriginalPrincipalSag === true ? manage_payees_link : ''} \r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t\t:\r\n\t\t\t\t\t\t``\r\n\t\t\t\t\t}\r\n\t\t\t\t\t`\r\n\t\t\t\t);\r\n\t\t\t\t\r\n\t\t\t\t// Adds the nav items to the section created for it\r\n\t\t\t\t$('.js-header-nav-my-support-mobile').html(\r\n\t\t\t\t\t`\r\n\t\t\t\t\t${authSettings.isIndividual === true\r\n\t\t\t\t\t\t?\r\n\t\t\t\t\t\t`${support_summary_link}`\r\n\t\t\t\t\t\t:\r\n\t\t\t\t\t\t``\r\n\t\t\t\t\t}\r\n\t\t\t\t\t${personal_assistants_link}\r\n\t\t\t\t\t${my_typical_week_link}\r\n\t\t\t\t\t${calendar_link}\r\n\t\t\t\t\t${support_package_link}\r\n\t\t\t\t\t${pplConnect_link}\r\n\t\t\t\t\t${findPA_link}\r\n\r\n\t\t\t\t\t${authSettings.isIndividual === true\r\n\t\t\t\t\t\t?\r\n\t\t\t\t\t\t`${marketplaces_link}`\r\n\t\t\t\t\t\t:\r\n\t\t\t\t\t\t``\r\n\t\t\t\t\t}\r\n\t\t\t\t\t`\r\n\t\t\t\t)\r\n\t\t\t\t\r\n\t\t\t\t// Adds the nav items to the section created for it\r\n\t\t\t\t$('.js-header-nav-details-mobile').html(\r\n\t\t\t\t\t`\r\n\t\t\t\t\t${authSettings.isIndividual === false && authSettings.isEmployee === true && authSettings.pplId !== null\r\n\t\t\t\t\t\t?\r\n\t\t\t\t\t\t`${dashboard_link}`\r\n\t\t\t\t\t\t:\r\n\t\t\t\t\t\t``\r\n\t\t\t\t\t}\r\n\t\t\t\t\t${my_profile_link}\r\n\t\t\t\t\t${authSettings.isSag === true || authSettings.isOrgAdmin === true\r\n\t\t\t\t\t\t?\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t${enrolmentDashboard_link}\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t\t:\r\n\t\t\t\t\t\t``\r\n\t\t\t\t\t}\r\n\t\t\t\t\t${authSettings.isSag === true\r\n\t\t\t\t\t\t?\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t${my_payment_transfers_link}\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t\t:\r\n\t\t\t\t\t\t``\r\n\t\t\t\t\t}\r\n\t\t\t\t\t${provider_management_administration_link}\r\n\t\t\t\t\t${messages_link}\r\n\t\t\t\t\t${my_assessments_link}\r\n\t\t\t\t\t${manual_transactions_link}\r\n\t\t\t\t\t${reports_link}\r\n\t\t\t\t\t${bm_site_link}\r\n\t\t\t\t\t`\r\n\t\t\t\t);\r\n\r\n\r\n\t\t\t\t// Adds the nav items to the section created for it\r\n\t\t\t\t$('.js-header-nav-my-wallet-mobile').html(\r\n\t\t\t\t\t`\r\n\t\t\t\t\t\t${funding_due_link}\r\n\t\t\t\t\t`\r\n\t\t\t\t);\r\n\t\t\t\t\r\n\r\n\r\n\r\n\t\t\t\t// NAV CLICK FUNCTIONALITY ///////////////////////////////////////////////\r\n\r\n\t\t\t\t// Desktop navigation dropdown toggling functionality\r\n\t\t\t\t$(\".header-nav_bottom-item-container-desktop\").on('click', function(){\r\n\r\n\t\t\t\t\t$(\".header-nav_bottom-item-container-desktop\").removeClass('header-active-tab')\r\n\t\t\t\t\t$(\".header-nav_bottom-item-container-desktop\").attr('aria-expanded', 'false');\r\n\t\t\t\t\t$(this).addClass('header-active-tab');\r\n\t\t\t\t\t$(this).attr('aria-expanded', 'true');\r\n\r\n\t\t\t\t\t$('.header-nav_bottom-dropdown-section').css({ 'display': 'flex' });\r\n\t\t\t\t\t$('.header-nav_bottom-section').css('border-bottom', 'unset');\r\n\r\n\t\t\t\t\t$('.header-nav_bottom-dropdown-container').css({ 'display': 'none' });\r\n\t\t\t\t\t$('.header-nav_bottom-dropdown-container').removeClass('header-active-dropdown-container');\r\n\t\t\r\n\t\t\t\t\tif ($(this).data('dropdown') === 'my-summary') {\r\n\t\t\t\t\t\t$('div.header-nav_bottom-dropdown-section').find('.header-nav_bottom-dropdown-container[data-dropdown=\"my-summary\"]').css({ 'display': 'flex' });\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ($(this).data('dropdown') === 'my-support') {\r\n\t\t\t\t\t\t$('div.header-nav_bottom-dropdown-section').find('.header-nav_bottom-dropdown-container[data-dropdown=\"my-support\"]').css({ 'display': 'flex' });\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ($(this).data('dropdown') === 'my-wallet') {\r\n\t\t\t\t\t\t$('div.header-nav_bottom-dropdown-section').find('.header-nav_bottom-dropdown-container[data-dropdown=\"my-wallet\"]').css({ 'display': 'flex' });\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ($(this).data('dropdown') === 'details') {\r\n\t\t\t\t\t\t$('div.header-nav_bottom-dropdown-section').find('.header-nav_bottom-dropdown-container[data-dropdown=\"details\"]').css({ 'display': 'flex' });\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\t\t$('.header-nav_bottom-item-container-desktop').on(\"keydown\", function(event) {\r\n\t\t\t\t\tif (event.key === \"Enter\") {\r\n\t\t\t\t\t\t$(this).click();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\t\t////////////////////////////////////////////////////////////////////\r\n\t\t\t\t\r\n\t\t\t\t// Hide empty nav items from header\r\n\t\t\t\t$('.header-nav_bottom-dropdown-container').each(function(i, el){\r\n\t\t\t\t\tif($(el).children().length === 0){\r\n\t\t\t\t\t\tlet bottomAttr = $(this).attr('data-dropdown');\r\n\t\t\t\t\t\t$('.header-nav_bottom-item-container-desktop').each(function(ind, elem){\r\n\t\t\t\t\t\t\tif(bottomAttr === $(elem).attr('data-dropdown')) {\r\n\t\t\t\t\t\t\t\t$(elem).remove();\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t};\r\n\t\t\t\t});\r\n\r\n\t\t\t\t$('.header-nav_main-item-container-mobile').each(function(i, el){\r\n\t\t\t\t\tif($(el).find('ul').children().length === 0){\r\n\t\t\t\t\t\t$(this).remove();\r\n\t\t\t\t\t};\r\n\t\t\t\t});\r\n\t\t\r\n\t\t\t\t//// Account Summary nav\r\n\t\t\t\t// Dashboard page but for items without a page in sub menu so we need to default opening the sub\r\n\t\t\t\tif(\r\n\t\t\t\t\tpageUrl === Urls.Domain + '/s4s/CustomPage/Index/' + Urls.myPrograms ||\r\n\t\t\t\t\tpageUrl === Urls.Domain + '/s4s/CustomPage/Index/' + Urls.myParticipants ||\r\n\t\t\t\t\tpageUrl === Urls.Domain + '/s4s/CustomPage/Index/' + Urls.mySignatures + '#/signatures'\r\n\t\t\t\t){\r\n\t\t\t\t\tselectedDesktopNavItem('.dashboard-page', 'no-item');\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\t// Dashboard page\r\n\t\t\t\tif(pageUrl === Urls.Domain + '/s4s/CustomPage/Index/' + Urls.vwProductOne \t\r\n\t\t\t\t){\r\n\t\t\t\t\tselectedDesktopNavItem('.dashboard-page');\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// My Statement page\r\n\t\t\t\tif(pageUrl.includes('/CustomPage/Index/' + Urls.vwProductTwo + '?query=') || pagePath.includes('/OrdersDetails/InvoiceDetails')) {\r\n\t\t\t\t\tselectedDesktopNavItem('.my-statement-page');\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Payments page\r\n\t\t\t\tif(pageUrl === Urls.Domain + '/s4s/CustomPage/Index/' + Urls.manualPayment){\r\n\t\t\t\t\tselectedDesktopNavItem('.my-payments-page');\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Manage payees page\r\n\t\t\t\tif(pageUrl === Urls.Domain + '/s4s/CustomPage/Index/' + Urls.managePayee){\r\n\t\t\t\t\tselectedDesktopNavItem('.manage-payees-page');\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Payment transfers page\r\n\t\t\t\tif(pageUrl === Urls.Domain + '/s4s/CustomPage/Index/' + Urls.paymentTransfer){\r\n\t\t\t\t\tselectedDesktopNavItem('.payment-transfers-page');\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\t//// My Support nav\r\n\t\t\t\t// My Summary page\r\n\t\t\t\tif(pageUrl.includes('/CustomPage/Index/' + Urls.vwProductThree + '?query=')) {\r\n\t\t\t\t\tselectedDesktopNavItem('.support-summary-page');\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// My Personal assistants\r\n\t\t\t\tif(pageUrl.includes('/CustomPage/Index/' + Urls.personalTimesheets) || pageUrl.includes('/PersonalTimesheet') || pageUrl.includes('/PersonalAssistance/Category') || pageUrl.includes('/ContractDetails') || pageUrl.includes('/PrincipalTimesheetSettingsDetails')) {\r\n\t\t\t\t\tselectedDesktopNavItem('.personal-assist-page');\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// My Typical Week page\r\n\t\t\t\tif(pageUrl.includes('/MyTypicalWeekSpa')) {\r\n\t\t\t\t\tselectedDesktopNavItem('.typical-week-page');\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// My Calendar page\r\n\t\t\t\tif(pageUrl.includes('/MyCalendar')) {\r\n\t\t\t\t\tselectedDesktopNavItem('.calendar-page');\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// My Quotes page\r\n\t\t\t\tif(pageUrl.includes('/MySupportPackages') || pageUrl.includes('/SupportPackageDetails') || pageUrl === Urls.Domain + '/s4s/CustomPage/Index/' + Urls.vwMicroCommisioning){\r\n\t\t\t\t\tselectedDesktopNavItem('.support-package-page');\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Marketplaces page\r\n\t\t\t\tif(pageUrl.includes('/CustomPage/Index/' + Urls.searchShopServices + '?Page=') || pageUrl === Urls.Domain + '/s4s/CustomPage/Index/' + Urls.searchShopEquipment || pageUrl === Urls.Domain + '/s4s/CustomPage/Index/' + Urls.searchShopStores || pageUrl === Urls.Domain + '/s4s/CustomPage/Index/' + Urls.searchMyCatalogue){\r\n\t\t\t\t\tselectedDesktopNavItem('.marketplace-page');\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\t// Payment approvals\r\n\t\t\t\tif(pageUrl.includes('/CustomPage/Index/' + Urls.manualTransactionPaymentApproval)) {\r\n\t\t\t\t\tselectedDesktopNavItem('.manual-transactions-payments-page');\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//// Details nav\r\n\t\t\t\t// My Profile page\r\n\t\t\t\tif(pageUrl.includes('/MyProfile')) {\r\n\t\t\t\t\tselectedDesktopNavItem('.profile-page');\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// My Messages page\r\n\t\t\t\tif(pageUrl.includes('/CustomPage/Index/' + Urls.pplChat)) {\r\n\t\t\t\t\tselectedDesktopNavItem('.messages-page');\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// My Documents page\r\n\t\t\t\tif(pageUrl.includes('/MyAssessments/Forms') || pageUrl.includes('/CustomPage/Index/' + Urls.myDocuments) ){\r\n\t\t\t\t\tselectedDesktopNavItem('.my-assessments-page');\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Enrolment Dashboard page\r\n\t\t\t\tif(pageUrl.includes('/CustomPage/Index/' + Urls.vwSagDash)) {\r\n\t\t\t\t\tselectedDesktopNavItem('.enrolment-dashboard-page');\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Funding due page\r\n\t\t\t\tif(pageUrl.includes('/CustomPage/Index/' + Urls.fundingDue)) {\r\n\t\t\t\t\tselectedDesktopNavItem('.funding-due-page');\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// PPL Connect page\r\n\t\t\t\tif(pageUrl.includes('/CustomPage/Index/' + Urls.pplConnectPage)) {\r\n\t\t\t\t\tselectedDesktopNavItem('.pplconnect-page');\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Find pa page\r\n\t\t\t\tif(pageUrl.includes('/CustomPage/Index/' + Urls.pa_vacancySearchPage)) {\r\n\t\t\t\t\tselectedDesktopNavItem('.find-a-pa');\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\t// SAG users have a peristant shown submenu on Desktop view\r\n\t\t\t\tif ( $.sc.authSettings.pplRole === '22a21fd3-9b01-4c07-a8a9-e70d17fbb4da') {\r\n\r\n\t\t\t\t\tconst isVisible = isElementVisibleByClassName('header-nav_top-nav-container-desktop');\r\n\t\t\t\t\tvar $detailsDropdown = $('li[data-dropdown=\"details\"]');\r\n\r\n\t\t\t\t\tif ( isVisible === true) {\r\n\t\t\t\t\t\t$($detailsDropdown).addClass('header-active-tab')\r\n\t\t\t\t\t\t$($detailsDropdown).attr('aria-expanded', 'true');\r\n\t\t\t\t\t\t$($detailsDropdown).click()\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t//////////////////////////////////////////////////////////////////\r\n\t\t\t}; \r\n\r\n\t\t\t// Append logged in user info\r\n\t\t\tdisplayLoggedInUser();\r\n\r\n\t\t};\r\n\r\n\t\tfunction isElementVisibleByClassName(className) {\r\n\t\t\tconst elements = document.getElementsByClassName(className);\r\n\t\t\r\n\t\t\tif (elements.length === 0) {\r\n\t\t\t\tconsole.log(\"Element with the specified class not found\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\r\n\t\t\t// Checking the first element with the specified class name\r\n\t\t\tconst elem = elements[0];\r\n\t\t\r\n\t\t\t// Check using computed style\r\n\t\t\tconst style = window.getComputedStyle(elem);\r\n\t\t\tif (style.display === 'none' || style.visibility === 'hidden' || style.opacity === '0' || elem.offsetWidth === 0 || elem.offsetHeight === 0) {\r\n\t\t\t\treturn false; // Element is not visible due to CSS or dimensions\r\n\t\t\t}\r\n\t\t\r\n\t\t\treturn true; // Element is visible\r\n\t\t}\r\n\r\n\t\tfunction displayLoggedInUser() {\r\n\r\n\t\t\tconst reference = $.sc.authSettings.laReferenceValue === null || $.sc.authSettings.laReferenceValue === undefined ? '' : `Reference: ${$.sc.authSettings.laReferenceValue}`;\r\n\t\t\t// console.log(reference)\r\n\t\t\t$('.js-header-nav_bottom-container-desktop').append(\r\n\t\t\t\t`\r\n\t\t\t\t\t
  • ${$.sc.authSettings.name} ${reference}
  • \r\n\t\t\t\t`\r\n\t\t\t);\r\n\r\n\t\t\t// Mobile\r\n\t\t\t// Adds the nav section containers to the mobile nav container\r\n\t\t\t$('.js-header-nav_bottom-container-mobile__credentials').prepend(\r\n\t\t\t\t`\r\n\t\t\t\t\t${$.sc.authSettings.name} ${reference}\r\n\t\t\t\t`\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\tfunction createUploadDocLink(form) {\r\n\t\t\t$('#myAccountExcerpt').after(\r\n\t\t\t\t'

    Upload a document

    '\r\n\t\t\t);\r\n\t\t}\r\n\r\n\r\n\t\t// CORE-7 \r\n\t\t// Expires at token\r\n\t\t// function createTimeoutModel(obj) {\r\n\t\t\r\n\t\t// \tlet windowHeight = $(window).height();\r\n\t\t// \twindowHeight = windowHeight - 150;\r\n\t\t// \t// Create overlay\r\n\t\t// \t$('.js-timeout-container').html(\r\n\t\t// \t\t`\r\n\t\t// \t\t\t
    \r\n\t\t// \t\t\t\t
    \r\n\t\t// \t\t\t\t\t
    \r\n\t\t// \t\t\t\t\t\t
    \r\n\t\t// \t\t\t\t\t\t\t

    ${obj.modelTitle}

    \r\n\t\t// \t\t\t\t\t\t
    \r\n\t\t// \t\t\t\t\t
    \r\n\t\t// \t\t\t\t\t
    \r\n\t\t// \t\t\t\t\t\t
    \r\n\t\t// \t\t\t\t\t\t\t
    \r\n\t\t// \t\t\t\t\t\t\t\t

    ${obj.modelText}

    \r\n\t\t// \t\t\t\t\t\t\t\t\r\n\t\t// \t\t\t\t\t\t\t\t${obj.buttonAlt}\r\n\t\t// \t\t\t\t\t\t\t
    \r\n\t\t// \t\t\t\t\t\t
    \r\n\r\n\t\t// \t\t\t\t\t
    \r\n\t\t// \t\t\t\t
    \r\n\t\t// \t\t\t
    \t\t\r\n\t\t// \t\t`\r\n\t\t// \t);\r\n\t\t// \tstartCountdown(obj.timeout);\r\n\r\n\t\t// \tfunction startCountdown(duration) {\r\n\t\t// \t\tlet timer = duration; // Timer in milliseconds\r\n\t\t\t\r\n\t\t// \t\tconst interval = setInterval(function () {\r\n\t\t// \t\t\t// Calculate seconds from timer\r\n\t\t// \t\t\tlet seconds = parseInt(timer / 1000, 10);\r\n\t\t\t\t\t\r\n\t\t// \t\t\t// Format seconds for display, check if singular or plural\r\n\t\t// \t\t\tlet secondsText = seconds === 1 ? \"1 second\" : (seconds < 10 ? \"0\" + seconds + \" seconds\" : seconds + \" seconds\");\r\n\t\t\t\t\t\r\n\t\t// \t\t\t// Update the DOM with the formatted countdown time\r\n\t\t// \t\t\t$('.js-logout-timer').text(secondsText);\r\n\t\t\t\t\t\r\n\t\t// \t\t\t// Decrement the timer by one second in milliseconds\r\n\t\t// \t\t\ttimer -= 1000;\r\n\t\t\t\t\t\r\n\t\t// \t\t\t// Stop the interval when the timer reaches zero or goes below\r\n\t\t// \t\t\tif (timer < 0) {\r\n\t\t// \t\t\t\tclearInterval(interval);\r\n\t\t// \t\t\t\t$('.js-logout-timer').text(\"Preparing to logout...\");\r\n\t\t// \t\t\t\t// Optional actions after countdown ends\r\n\t\t// \t\t\t\t// console.log(\"Session timed out\");\r\n\t\t// \t\t\t\t// pageUrl = '/s4s/auth/logout';\r\n\t\t// \t\t\t}\r\n\t\t// \t\t}, 1000); // Run the function every 1000 milliseconds (1 second)\r\n\t\t// \t}\r\n\t\t// }\r\n\r\n\t\t// function checkTimeout() {\r\n\t\t// \t$('.js-timeout-container').remove();\r\n\t\t// \t$('body').prepend('
    ');\r\n\t\t// \tconst expiresAt = moment.utc($.sc.authSettings.expiresAt).local();\r\n\t\t// \tconst timeNow = moment.utc();\r\n\t\r\n\t\t// \tconst diff = expiresAt - timeNow;\r\n\t\t// \tconsole.log(' ')\r\n\t\t// \tconsole.log('Expires difference: ' + diff)\r\n\t\r\n\t\t// \tconst timer = {\r\n\t\t// \t\tmouseMoveListener: diff - 140000, // 150 seconds (2m 20s)\r\n\t\t// \t\tpopupTime: diff - 90000, // 90 seconds (1m 30s)\r\n\t\t// \t\tlogoutTime: diff - 1000, // Logout 1 second before expiresAt\r\n\t\t// \t\tcountdown: 80000 // Same as popupTime but converted into actual seconds from milliseconds\r\n\t\t// \t}\r\n\r\n\t\t// \t// Mouse listener\r\n\t\t// \tvar mouseListener = setTimeout(function() {\r\n\t\t// \t\tconsole.log('Mouse listener is active');\r\n\r\n\t\t// \t\tlet hasMoved = false;\r\n\r\n\t\t// \t\tfunction removeMovementListeners() {\r\n\t\t// \t\t\tdocument.removeEventListener('mousemove', handleMouseMove);\r\n\t\t// \t\t\tdocument.removeEventListener('touchmove', handleTouchMove);\r\n\t\t// \t\t\tdocument.removeEventListener('keypress', handleKeypress);\r\n\t\t// \t\t\twindow.removeEventListener('scroll', handleScroll);\r\n\t\t// \t\t}\t\r\n\r\n\t\t// \t\tfunction addMovementListeners() {\r\n\t\t// \t\t\tdocument.addEventListener('mousemove', handleMouseMove);\r\n\t\t// \t\t\tdocument.addEventListener('touchmove', handleTouchMove);\r\n\t\t// \t\t\tdocument.addEventListener('keypress', handleKeypress);\r\n\t\t// \t\t\twindow.addEventListener('scroll', handleScroll);\r\n\t\t// \t\t}\r\n\t\t// \t\taddMovementListeners();\r\n\t\t\r\n\t\t// \t\t// Handle mouse movement\r\n\t\t// \t\tfunction handleMouseMove() {\r\n\t\t// \t\t\tif (!hasMoved) {\r\n\t\t// \t\t\t\tconsole.log('Mouse movement detected!');\r\n\t\t// \t\t\t\tclearTimeoutandPost();\r\n\t\t// \t\t\t\thasMoved = true;\r\n\t\t// \t\t\t}\r\n\t\t// \t\t}\r\n\t\t\t\r\n\t\t// \t\t// Handle touch movement\r\n\t\t// \t\tfunction handleTouchMove() {\r\n\t\t// \t\t\tif (!hasMoved) {\r\n\t\t// \t\t\t\tconsole.log('Touch movement detected!');\r\n\t\t// \t\t\t\tclearTimeoutandPost();\r\n\t\t// \t\t\t\thasMoved = true;\r\n\t\t// \t\t\t}\r\n\t\t// \t\t}\r\n\r\n\t\t// \t\t// Handle keypress movement\r\n\t\t// \t\tfunction handleKeypress(event) {\r\n\t\t// \t\t\tif (!hasMoved) {\r\n\t\t// \t\t\t\tconsole.log('Keypress detected! Key:', event.key);\r\n\t\t// \t\t\t\tclearTimeoutandPost();\r\n\t\t// \t\t\t\thasMoved = true;\r\n\t\t// \t\t\t}\r\n\t\t// \t\t}\r\n\r\n\t\t// \t\t// Handle keypress movement\r\n\t\t// \t\tfunction handleScroll() {\r\n\t\t// \t\t\tif (!hasMoved) {\r\n\t\t// \t\t\t\tconsole.log('Scrolling detected!');\r\n\t\t// \t\t\t\tclearTimeoutandPost();\r\n\t\t// \t\t\t\thasMoved = true;\r\n\t\t// \t\t\t}\r\n\t\t// \t\t}\r\n\r\n\t\t// \t\tfunction clearTimeoutandPost() {\r\n\t\t// \t\t\tclearTimeout(mouseListener);\r\n\t\t// \t\t\tclearTimeout(popupTimer);\r\n\t\t// \t\t\tclearTimeout(logoutTimer);\r\n\t\t// \t\t\tclearTimeout(resetListeners);\r\n\r\n\t\t// \t\t\tpostOrganisationType(function(){\r\n\t\t// \t\t\t\tconsole.log('API posted');\r\n\t\t// \t\t\t\tcancelLogout();\r\n\t\t// \t\t\t\tcheckTimeout();\r\n\t\t// \t\t\t});\r\n\t\t// \t\t}\r\n\r\n\t\t// \t\t// Remove the event listeners when the pop up shows\r\n\t\t// \t\tconst timeBetweenListenerandPop = timer.popupTime - timer.mouseMoveListener;\r\n\t\t// \t\tvar resetListeners = setTimeout(function() {\r\n\t\t// \t\t\tconsole.log('Pop up should appear now')\r\n\t\t// \t\t\tremoveMovementListeners();\r\n\t\t// \t\t}, timeBetweenListenerandPop); \r\n\t\t\t\t\r\n\r\n\t\t// \t}, timer.mouseMoveListener); \r\n\r\n\r\n\t\t// \t// Pop up\r\n\t\t// \tvar popupTimer = setTimeout(function() {\r\n\t\t// \t\tcreateTimeoutPopup(timer.countdown);\r\n\t\t// \t}, timer.popupTime); \r\n\r\n\r\n\t\t// \t// Log out\r\n\t\t// \tvar logoutTimer = setTimeout(function() {\r\n\t\t// \t\tlocation.href = '/s4s/Auth/Logout';\r\n\t\t// \t}, timer.logoutTime); \r\n\t\r\n\r\n\t\t// \t// Function to clear the timeout\r\n\t\t// \tfunction cancelLogout() {\r\n\t\t// \t\t$('.js-overlay-timeout').remove();\r\n\t\t// \t\tclearTimeout(logoutTimer);\r\n\t\t// \t\tconsole.log(\"Logout has been canceled\");\r\n\t\t// \t}\r\n\t\t\r\n\t\t// \tfunction createTimeoutPopup(timer) {\r\n\r\n\t\t// \t\tconsole.log('timer is: ' + timer)\r\n\r\n\t\t// \t\tvar formBuilder = {\r\n\t\t// \t\t\tbutton: \"Stay logged in\",\r\n\t\t// \t\t\tbuttonClass: \"js-reset-timeout-btn\",\r\n\t\t// \t\t\tbuttonAlt: \"Log out\",\r\n\t\t// \t\t\tbuttonAltClass: \"js-logout-btn\",\r\n\t\t// \t\t\tmodelTitle: \"Your session is about to timeout\",\r\n\t\t// \t\t\tmodelText: \"Your session is about to timeout and you will be logged out in: \",\r\n\t\t// \t\t\ttimeout: timer\r\n\t\t// \t\t};\r\n\t\t// \t\tcreateTimeoutModel(formBuilder);\r\n\t\t\r\n\t\t// \t\tconst resetBtn = document.querySelector('.js-reset-timeout-btn');\r\n\t\t// \t\tresetBtn.addEventListener(\"click\", ()=> {\r\n\t\t// \t\t\tconsole.log('Button clicked');\r\n\t\t// \t\t\tpostOrganisationType(function(){\r\n\t\t// \t\t\t\tconsole.log('API posted');\r\n\t\t// \t\t\t\tcancelLogout();\r\n\t\t// \t\t\t\tcheckTimeout();\r\n\t\t// \t\t\t});\r\n\t\t// \t\t});\r\n\t\t\r\n\t\t// \t}\r\n\t\t// }\r\n\r\n\r\n\t\t\r\n\r\n\t\tfunction removeTimesheetsWrapping(selector, callback) {\r\n\t\t\t// If selector is empty or undefined, unwrap the main wrappers instead\r\n\t\t\tif (!selector) {\r\n\t\t\t\tunwrapElementsByClassName('date-and-time-wrapper');\r\n\t\t\t\tunwrapElementsByClassName('overall-date-and-time-wrapper');\r\n\t\t\t} else {\r\n\t\t\t\t// Select child elements of .date-and-time-wrapper with the given selector\r\n\t\t\t\tdocument.querySelectorAll(`.date-and-time-wrapper ${selector}`).forEach(element => {\r\n\t\t\t\t\tunwrapElement(element);\r\n\t\t\t\t});\r\n\t\t\r\n\t\t\t\t// Select child elements of .overall-date-and-time-wrapper with the given selector\r\n\t\t\t\tdocument.querySelectorAll(`.overall-date-and-time-wrapper ${selector}`).forEach(element => {\r\n\t\t\t\t\tunwrapElement(element);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (callback !== undefined) {\r\n\t\t\t\tcallback();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Helper function to unwrap an element (similar to jQuery's unwrap)\r\n\t\tfunction unwrapElement(element) {\r\n\t\t\tlet parent = element.parentNode;\r\n\t\t\twhile (element.firstChild) {\r\n\t\t\t\tparent.insertBefore(element.firstChild, element);\r\n\t\t\t}\r\n\t\t\tparent.removeChild(element);\r\n\t\t}\r\n\t\t\r\n\t\t// Helper function to unwrap elements by class name\r\n\t\tfunction unwrapElementsByClassName(className) {\r\n\t\t\tdocument.querySelectorAll(`.${className}`).forEach(element => unwrapElement(element));\r\n\t\t}\r\n\t\t\r\n\r\n\t\tfunction unwrapElement(element) {\r\n\t\t\tlet parent = element.parentNode;\r\n\t\t\twhile (element.firstChild) {\r\n\t\t\t\tparent.insertBefore(element.firstChild, element);\r\n\t\t\t}\r\n\t\t\tparent.removeChild(element);\r\n\t\t}\r\n\r\n\t\t// function unwrapElementsByClassName(className) {\r\n\t\t// \t// Select all elements with the specified class name\r\n\t\t// \tconst elements = document.getElementsByClassName(className);\r\n\t\t\r\n\t\t// \t// Convert the HTMLCollection to an array to manipulate it during iteration\r\n\t\t// \tArray.from(elements).forEach(element => {\r\n\t\t// \t\t// Use the parent node to replace the element with its children\r\n\t\t// \t\tconst parent = element.parentNode;\r\n\t\t\r\n\t\t// \t\t// Move all children out of the element, directly into the parent\r\n\t\t// \t\twhile (element.firstChild) {\r\n\t\t// \t\t\tparent.insertBefore(element.firstChild, element);\r\n\t\t// \t\t}\r\n\t\t\r\n\t\t// \t\t// Remove the empty element from the document\r\n\t\t// \t\tparent.removeChild(element);\r\n\t\t// \t});\r\n\t\t// }\r\n\r\n\t\tfunction updateCopyrightYear() {\r\n\t\t\tconst currentYear = new Date().getFullYear();\r\n\t\t\tconst copyrightElement = document.getElementById('copyrightYear');\r\n\t\r\n\t\t\tif (copyrightElement) {\r\n\t\t\t\t// Use the current year or fallback to 2025 if something goes wrong\r\n\t\t\t\tconst displayYear = isNaN(currentYear) ? 2025 : currentYear;\r\n\t\t\t\tcopyrightElement.innerHTML = `© ${displayYear} People Places Lives Limited, which is regulated by the Financial Conduct Authority as a Small Electronic Money Institution (FRN: 953987). Funds held are not protected under the Financial Services Compensation Scheme, but are safeguarded within segregated bank accounts in accordance with the provisions of the Electronic Money Regulations 2011.`\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\tvar Init = {\r\n\t\t\tinit: function() {\r\n\t\t\t\tthis.adjustDom();\r\n\t\t\t\tthis.bindUIActions();\r\n\t\t\t\tcheckAuth();\r\n\r\n\t\t\t\tif ( $.sc.authSettings.login !== null ) {\r\n\t\r\n\t\t\t\t\t//checkTimeout();\r\n\r\n\t\t\t\t\t// https://ppl.atlassian.net/browse/WBC-128\r\n\t\t\t\t\t// Hide Hero menu\r\n\t\t\t\t\tif ( $.sc.authSettings.pplId !== null) {\r\n\t\t\t\t\t\tif ( $.sc.authSettings.isOriginalPrincipalSag === false ) {\r\n\t\r\n\t\t\t\t\t\t\tsummaryParameters(function(response){\r\n\t\t\t\r\n\t\t\t\t\t\t\t\tcurrentState.summaryParameters = response;\r\n\r\n\t\t\t\t\t\t\t\t// Employer\r\n\t\t\t\t\t\t\t\tif ( $.sc.authSettings.isSag === false && $.sc.authSettings.isOrgAdmin === false && $.sc.authSettings.isCaseManager === false ) {\r\n\t\t\t\t\t\t\t\t\t//if ( params.MyPrograms.CompletedCount > 0 && params.MyPrograms.InProgressCount === 0 && params.MyEmployees.CompletedCount > 0) {\r\n\t\t\t\t\t\t\t\t\tif ( currentState.summaryParameters.Data.MyPrograms.CompletedCount === 0) {\r\n\t\t\t\t\t\t\t\t\t\tcurrentState.displayHeroMenu = false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t// https://ppl.atlassian.net/browse/INT-56 Need to show the menu for Lincolnshire users\r\n\t\t\t\t\t\t\t\tif ( $.sc.authSettings.organisationId !== '4904d5d2-482a-41a9-9153-9e360154daa2') {\r\n\r\n\t\t\t\t\t\t\t\t\tif ( currentState.displayHeroMenu === false) {\r\n\t\t\t\t\t\t\t\t\t\t$('.header-nav_bottom-section').hide();\t\r\n\t\t\t\t\t\t\t\t\t\t$('.header-nav_bottom-dropdown-section').hide().remove();\r\n\t\t\t\t\t\t\t\t\t\t$('.header-nav_basket-btn-desktop').hide();\r\n\t\t\t\t\t\t\t\t\t\t$('#maincontent').css('margin-top', '0');\r\n\t\t\t\t\t\t\t\t\t\t$('.js-workas-btn').hide();\r\n\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t// Mobile\r\n\t\t\t\t\t\t\t\t\t\t$('.header-nav_main-item-container-mobile').hide();\r\n\t\t\t\t\t\t\t\t\t\t$('.header-nav_basket-btn-mobile basket').hide();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t\t\t});\r\n\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\r\n\r\n\t\t\t\tconst headerHeight = $('.js-header-nav').height();\r\n\t\t\t\t$('header').outerHeight(headerHeight);\r\n\r\n\t\t\t\twaitForElem(`#loading-overlay`).then(() => {\r\n\t\t\t\t\thideLoadingScreen();\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\r\n\t\t\tadjustDom: function() {\r\n\r\n\t\t\t\t// Fix issue with strapline being overlapped by header\r\n\t\t\t\t// var checkExistApp = setInterval(function() {\r\n\t\t\t\t\r\n\t\t\t\t// \tif ($('.header-active-dropdown-container').length > 0) {\r\n\t\t\t\t\r\n\t\t\t\t// \t\tclearInterval(checkExistApp);\r\n\t\t\t\t\r\n\t\t\t\t// \t\tif($('.header-nav_section').css('position') === 'fixed'){\r\n\t\t\t\t// \t\t\t$('.sc-strapline').css('margin-top', '50px')\r\n\t\t\t\t// \t\t} \r\n\t\t\t\t// \t}\r\n\t\t\t\t\r\n\t\t\t\t// }, 200); // check every 200ms\r\n\r\n\t\t\t\t// Sets height of scrolling div in mobile/tablet full screen nav\r\n\t\t\t\tconst displayHeight = window.innerHeight;\r\n\t\t\t\tconst section = document.querySelector('.header-nav_top-section');\r\n\t\t\t\tconst bottomContainer = document.querySelector('.header-nav_bottom-container-mobile');\r\n\r\n\t\t\t\tif (section && bottomContainer) {\r\n\t\t\t\t\tconst sectionHeight = section.offsetHeight;\r\n\t\t\t\t\tconst heightAdjustment = 78; // Modify this if needed\r\n\t\t\t\t\tbottomContainer.style.height = `${displayHeight - sectionHeight - heightAdjustment}px`;\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\t// Copyright notice\r\n\t\t\t\tupdateCopyrightYear();\r\n\r\n\t\t\t\t// Clear support Packages session storage if user navigates to another page\r\n\t\t\t\tif($('.support-package-page').length < 1){\r\n\t\t\t\t\tsessionStorage.removeItem(\"supportPackages\");\r\n\t\t\t\t};\r\n\t\r\n\t\r\n\t\t\t\t$('.adminBox').closest('html').addClass('pcg-admin');\r\n\r\n\r\n\t\t\t\tfunction heroWrapper() {\r\n\t\t\t\t\t$('.hero-container').wrap('
    ');\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction mainSectionWrap(className){\r\n\t\t\t\t\t$('.main-section').wrapAll(`
    `);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction myLifeWrapper() {\r\n\t\t\t\t\t$('#myLifeExcerpt').wrapAll('
    ');\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction myAccountWrapper() {\r\n\t\t\t\t\t$('#myAccountExcerpt').wrapAll('
    ');\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction adminWrapperAll() {\r\n\t\t\t\t\t$('#administrationExcerpt').wrapAll('
    ');\r\n\t\t\t\t\theroWrapper();\r\n\t\t\t\t\tdisplaySizeWrap();\r\n\t\t\t\t\tadminExceprtRm();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction adminExceprtRm() {\r\n\t\t\t\t\t$('#administrationExcerpt').removeClass('tint4 round');\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction padAddClass(){\r\n\t\t\t\t\t$('.pad').addClass('action-btns-section');\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction bottomRibbonRm() {\r\n\t\t\t\t\t$('.bottomRibbon').remove();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction displaySizeWrap() {\r\n\t\t\t\t\t$('.display-size-container').wrap('
    ')\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction contentWrapFull() {\r\n\t\t\t\t\t$('.contentWrapper div').removeClass('full-columnAlt');\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction liquidRemoveId() {\r\n\t\t\t\t\t$('.content-holder #liquid-round').removeAttr('id');\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction articleFullRmClass() {\r\n\t\t\t\t\t$('.articleFull').removeClass();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction contentWrapRmDiv() {\r\n\t\t\t\t\t$('.contentWrapper div').removeClass('right-columnAlt');\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction fullColAltRmClass() {\r\n\t\t\t\t\t$('.full-columnAlt').removeClass();\r\n\t\t\t\t\t$('.right-columnAlt').removeClass();\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction liquidReset() {\r\n\t\t\t\t\t$('#liquid-round').removeAttr('id');\r\n\t\t\t\t\t$('.center-content-no-top').removeClass();\r\n\t\t\t\t\t$('.liquid-round').removeClass();\r\n\t\t\t\t\t$('.top').remove();\r\n\t\t\t\t\t$('.topAlt').remove();\r\n\t\t\t\t\t$('.bottom').remove();\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\tfunction mainSectionRmClass() {\r\n\t\t\t\t\t$('.main-section').removeClass('section');\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction backBtnAddClass() {\r\n\t\t\t\t\t$('.actionButtons.tabs').addClass('back-btn-section');\r\n\t\t\t\t\t$('.back-btn-section').removeClass('actionButtons tabs');\r\n\t\t\t\t\t$('.back-btn-section li').addClass('back-btn-container');\r\n\t\t\t\t\t$('.back-btn-section a').addClass('blue-btn');\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction supportPackageCommonDOM() {\r\n\t\t\t\t\tmyLifeWrapper();\r\n\t\t\t\t\theroWrapper();\r\n\t\t\t\t\tdisplaySizeWrap();\r\n\t\t\t\t\t$('#myLifeExcerpt img').remove();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction formHelpers() {\r\n\t\t\t\t\t$('.js-document-helper').remove();\r\n\t\t\t\t\t$('.js-whatsThisBtn').remove();\r\n\t\t\t\t\t$('.js-moreHelpBtn').remove();\r\n\t\t\t\t\t$('.js-reload-remove').remove();\r\n\t\t\t\t}\r\n\r\n\t\r\n\t\t\t\t// Redirect Personal Timesheets to Custom page\r\n\t\t\t\tif ( pageUrl === Urls.Domain + '/s4s/PersonalTimesheet') {\r\n\t\t\t\t\twindow.location.href = `/s4s/CustomPage/Index/${Urls.personalTimesheets}`;\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\tif ( pageUrl.includes('/ServiceProviderOrganisationWizard/CompanyDetails')) {\r\n\t\t\t\t\t$('#myLifeExcerpt h1').text('Add an employee');\r\n\t\t\t\t\t$('#myLifeExcerpt p').text('Please specify employee details');\r\n\t\r\n\t\t\t\t\t$('label[for=Name]').html('Employee name:*');\r\n\t\t\t\t\t$('label[for=VatNumber]').parent().hide();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Forms\r\n\t\t\t\tif ( pageUrl.includes('/FormDetails') || pageUrl.includes('/AppFormDetails')) {\r\n\t\r\n\t\t\t\t// console.log('scanForm activated');\r\n\t\t\t\t\tscanForm();\r\n\t\t\t\t\tif ( $('.js-container').length === 0 ) {\r\n\t\t\t\t\t\t$('sc-fill-form-app').wrap('
    ')\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Create user\r\n\t\t\t\tif ( pageUrl.includes('/SignUp/PersonalDetails')) {\r\n\t\r\n\t\t\t\t\tfunction scanSignUpForm() {\r\n\t\t\t\t\t\t$('label').each(function(){\r\n\t\t\r\n\t\t\t\t\t\t\tvar thisText = $(this).attr('for');\r\n\t\t\t\t\t\t\tvar thisName = $(this).find('input').attr('name');\r\n\t\t\t\r\n\t\t\t\t\t\t\tif ( thisText === 'OrganisationIdString') {\r\n\t\t\t\t\t\t\t\t$(this).text('Organisation: ')\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif ( thisText === 'Forename') {\r\n\t\t\t\t\t\t\t\t$(this).html('First name:*')\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif ( thisText === 'Surname') {\r\n\t\t\t\t\t\t\t\t$(this).html('Last name:*')\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\t\t\tif ( thisName == 'IsReadOnlyIndividual') {\r\n\t\t\t\t\t\t\t\t$(this).hide();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif ( thisName == 'IsPbmForAnotherUser') {\r\n\t\t\t\t\t\t\t\t$(this).parent().hide();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\r\n\t\t\t\t\tscanSignUpForm();\r\n\t\t\t\t\t$('select').change(function(){\r\n\t\t\t\t\t\tscanSignUpForm();\r\n\t\t\t\t\t});\r\n\t\t\r\n\t\t\t\t}\t\t\t\r\n\t\r\n\t\t\t\t// App forms \r\n\t\t\t\tif ( pageUrl.includes('/AppFormDetails/') || pageUrl.includes('/Referrals/AddReferral') || pageUrl.includes('/AppFormDetails/FillForm') || pageUrl.includes('/PPLSignUp/PPLRegister') || pageUrl.includes('/CustomPage/Index/') || pageUrl.includes('/UserManagement/ToPreRegistration')) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Clear so we dont get dupes\r\n\t\t\t\t\tformHelpers();\r\n\t\t\t\t\t\r\n\t\t\t\t\tvar checkExistApp = setInterval(function() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t// If forms has loaded then this div will be created\r\n\t\t\t\t\t\tif ($('.form-main-content').length > 0) {\r\n\t\r\n\t\t\t\t\t\t\tclearInterval(checkExistApp);\r\n\t\r\n\t\t\t\t\t\t\t$('.pcgf-app').parent().removeClass('pcgf-default');\r\n\t\t\t\t\t\t\t$('.form-date__control').parent().addClass('pcgf-default');\r\n\t\t\t\t\t\t\t$('.navigation-bar__item_clickable').attr('tabindex','0');\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t}, 200); // check every 100ms\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tif ( pageUrl.includes('/MyInvoices')) {\r\n\t\t\t\t\t$('html').addClass('pcg-admin').addClass('pcg-account');\r\n\t\t\t\t\t$('.dropDownBox label').each(function(){\r\n\t\t\t\t\t\tif ( $(this).text() === 'Till:') {\r\n\t\t\t\t\t\t\t$(this).text('To:');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tif ( pageUrl.includes('/ProviderInvoices/Details/')) {\r\n\t\t\t\t\t$('.right-columnAlt h1').text('Invoice');\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\tif ( pageUrl.includes('/ProviderInvoices/Import')) {\r\n\t\t\t\t\t$('.right-columnAlt > #administrationExcerpt > p').remove();\r\n\t\t\t\t\t$('.right-columnAlt > #administrationExcerpt > h1').after(\r\n\t\t\t\t\t\t'

    Here you can create your invoices which will be saved in one place for future reference. If you provide services for many different individuals you can upload a file to carry out a batch submission of invoices.

    '\r\n\t\t\t\t\t);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tif ( pageUrl.includes('/ProviderInvoices/Details')) {\r\n\t\t\t\t\tvar guid = uuidv4();\r\n\t\t\t\t\t$('.right-columnAlt > h1').after(\r\n\t\t\t\t\t\t'

    Here you can edit your invoice.

    '\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( pageUrl.includes('/UserManagement')) {\r\n\t\t\t\t\t$('#actionButtons a').each(function(){\r\n\t\t\t\t\t\tif ( $(this).attr('href') === '/s4s/UserManagement/ToPreRegistration') {\r\n\t\t\t\t\t\t\t$(this).parent().hide();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tif ( pageUrl.includes('/')) {\r\n\t\t\t\t\t$('.pcg-menu-modal').parent().parent().hide();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$('.pcg-menu-modal').parent().parent().show();\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tif ( pageUrl.includes('/PurchaseOrderDetails/Main/')) {\r\n\t\r\n\t\t\t\t\t$('#liquid-round .grid th:nth-child(3)').remove();\r\n\t\t\t\t\t$('#liquid-round .grid td:nth-child(3)').remove();\r\n\t\t\t\t\t$('#liquid-round .grid col:nth-child(3)').remove();\r\n\r\n\t\t\t\t\t// https://jira.pcgprojects.co.uk/browse/CTS-37278\r\n\t\t\t\t\t$('#SupplierInvoiceNo').closest('dl').addClass('hide');\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tif ( pageUrl.includes('/MyAssessments/')) {\r\n\t\r\n\t\t\t\t\tvar checkExistC = setInterval(function() {\r\n\t\r\n\t\t\t\t\t\t// If forms has loaded then this div will be created\r\n\t\t\t\t\t\tif ($('.s4s-pathway-header-container').length > 0) {\r\n\t\t\t\t\r\n\t\t\t\t\t\tsetTimeout(function(){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$('.answer-btns button').each(function(){\r\n\t\t\t\t\t\t\t\tif ( $(this).html() === 'Save' ) {\r\n\t\t\t\t\t\t\t\t\t$(this).hide();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif ( $(this).html() === 'Close (without saving)' ) {\r\n\t\t\t\t\t\t\t\t\t$(this).hide();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\t\t\t\tclearInterval(checkExistC);\r\n\t\t\t\t\t\t}, 30);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}, 20); // check every 100ms\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tif ( pageUrl.includes('/ServiceOrderDetails/Appointments/')) {\r\n\t\t\t\t\t$('.js-accordion-body tbody tr').each(function(){\r\n\t\t\t\t\t\t// $(this).find('td:nth-child(1)').prepend('Action: ');\r\n\t\t\t\t\t\t$(this).find('td:nth-child(2)').prepend('Appointment date: ');\r\n\t\t\t\t\t\t$(this).find('td:nth-child(3)').prepend('Anytime?: ');\r\n\t\t\t\t\t\t$(this).find('td:nth-child(4)').prepend('Number of hours: ');\r\n\t\t\t\t\t\t$(this).find('td:nth-child(5)').prepend('Start and end time: ');\r\n\t\t\t\t\t\t$(this).find('td:nth-child(6)').prepend('Order cost: ');\r\n\t\t\t\t\t\t$(this).find('td:nth-child(1)').addClass('cta-button');\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif ( pageUrl.includes('/OrdersDetails/')) {\r\n\t\t\t\t\tmobileTableLabels();\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tif ( pageUrl.includes('/ProductDetails/') || pageUrl.includes('/StoreProductDetails/')) {\r\n\t\t\t\t\t$('#tabs').addClass('four-buttons');\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tif ( pageUrl.includes('/SupportPackageDetails/')) {\r\n\t\t\t\t\tmobileTableLabels();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(pagePath.includes('/BulkUpdateProductPrice')) {\r\n\r\n\t\t\t\t\t// Unhide date picker\r\n\t\t\t\t\t$('.js-update-date-field-container').removeClass('invisible');\r\n\t\t\t\t\t$('.js-update-date-field-container').css('display', 'block');\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// My typical week page styling\r\n\t\t\t\tif(pagePath.includes('/MyTypicalWeekSpa')) {\r\n\t\r\n\t\t\t\t\t// Add class to the page\r\n\t\t\t\t\t$('body').addClass('my-typical-week');\r\n\t\t\t\t\t$('sc-my-typical-week div').removeClass('mar-left1');\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// My typical week template Details styling\r\n\t\t\t\tif(pagePath.includes('/MyTypicalWeekSpa/templateDetails')) {\r\n\t\t\t\t\t$('.actionButtons').first().addClass('back-btn-container');\r\n\t\t\t\t\t$('.back-btn-container').removeClass('actionButtons alt action_bar--left action_bar--medium');\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t// Calendar page styling\r\n\t\t\t\tif(pagePath.includes('/MyCalendar')) {\r\n\t\r\n\t\t\t\t\t// Add class to the page\r\n\t\t\t\t\t$('body').addClass('calendar');\r\n\r\n\t\t\t\t\t\t// Add hero section\r\n\t\t\t\t\t\t$('.contentPaddingAppointments').before(\r\n\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t

    My Calendar

    \r\n\t\t\t\t\t\t\t\t\t\t\t

    Use the calendar to view your appointments. If you click an appointment you can see more information and even edit or cancel future appointments.

    \r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t);\r\n\t\t\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif ( userInfo.readonly === true ) {\r\n\t\t\t\t\t\t$('body').addClass('readOnlyIndividual');\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Hide SSN\r\n\t\t\t\t\tif(pagePath.includes('/MyProfile/MyProfileTab')) {\r\n\t\t\t\t\t\t$('#SocialSecurityNumber').closest('.ValidateAltNorm').hide();\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\r\n\t\t\t\t// Calendar styling\r\n\t\t\t\tif($('.dhx_cal_container').length > 0){\r\n\r\n\t\t\t\t\t// Edit calendar option\r\n\t\t\t\t\t$('.dhx_cal_navline').addClass('calendar-filter-container');\r\n\t\t\t\t\t$('.calendar-filter-container div').each(function(i, el){\r\n\t\r\n\t\t\t\t\t\tif(i <= 2){\r\n\t\t\t\t\t\t\t$(el).addClass(`day-filter day-filter-${i}`);\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(i == 3){\r\n\t\t\t\t\t\t\t$(el).addClass(`current-date-text current-date-text-${i}`);\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(i >= 4){\r\n\t\t\t\t\t\t\t$(el).addClass(`specific-filter specific-filter-${i}`);\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t});\r\n\t\r\n\t\t\t\t\t// Wraps the top selector filters\r\n\t\t\t\t\t$('.day-filter').wrapAll(`
    `);\r\n\t\t\t\t\t$('.current-date-text').wrapAll(`
    `);\r\n\t\t\t\t\t$('.specific-filter').wrapAll(`
    `);\r\n\t\r\n\t\t\t\t\t// DHTMLX calendar function calls to refresh the calendar size after page load\r\n\t\t\t\t\tsetTimeout(function(){\r\n\t\t\t\t\t\tscheduler.updateView();\r\n\t\t\t\t\t\tscheduler.setCurrentView( scheduler.getState().date,'week' );\r\n\r\n\t\t\t\t\t}, 200)\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Invoice page styling\r\n\t\t\t\tif(pagePath.includes('/OrdersDetails/InvoiceDetails')) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('invoice-details');\r\n\r\n\t\t\t\t\tcontentWrapFull();\r\n\t\t\t\t\tmyAccountWrapper();\r\n\t\t\t\t\theroWrapper();\r\n\t\t\t\t\tdisplaySizeWrap();\r\n\r\n\t\t\t\t\t$('.display-size-container').addClass('pcg-page-wrapper container site-container');\r\n\t\t\t\t\t$('.pad-right').first().addClass('invoice-transaction-detail');\r\n\t\t\t\t\t$('.invoice-transaction-detail').removeClass('pad-right');\r\n\t\t\t\t\t$('.content-holder').first().addClass('invoice-one-off-items-section');\r\n\t\t\t\t\t$('.invoice-one-off-items-section').removeClass('content-holder');\r\n\t\t\t\t\t$('.pad-right').addClass('invoice-amount-section');\r\n\t\t\t\t\t$('.invoice-amount-section').removeClass('pad-right');\r\n\t\t\t\t\t$('.content-holder').last().addClass('invoice-payments-received-section');\r\n\t\t\t\t\t$('.invoice-payments-received').removeClass('content-holder');\r\n\t\t\t\t\t$('.invoice-transaction-detail, .invoice-one-off-items-section, .invoice-amount-section, .invoice-payments-received-section').addClass('invoice-detail-section');\r\n\t\t\t\t\t$('.invoice-one-off-items-section, .invoice-payments-received-section').addClass('invoice-full-table');\r\n\t\t\t\t\t$('.invoice-transaction-detail, .invoice-amount-section').addClass('invoice-summary-table-container');\r\n\t\t\t\t\t$('.invoice-detail-section').wrapAll('
    ');\r\n\t\t\t\t\t$('.invoice-overview-container').wrapAll('
    ');\r\n\t\t\t\t\t$('.invoice-s').wrapAll('
    ');\r\n\t\t\t\t\t$('.invoice-summary-table-container .span_12_of_12').addClass('invoice-summary-container');\r\n\t\t\t\t\t$('.invoice-summary-container').removeClass('col span_12_of_12');\r\n\t\t\t\t\t$('.invoice-summary-container .span_6_of_12').addClass('invoice-summary-table');\r\n\t\t\t\t\t$('.invoice-summary-table').removeClass('col span_6_of_12');\r\n\t\t\t\t\t$('.invoice-summary-container dl').removeClass();\r\n\r\n\t\t\t\t\t$('dt').addClass('table-heading');\r\n\r\n\t\t\t\t\tliquidReset();\r\n\r\n\t\t\t\t\t$('.invoice-full-table .center-content').addClass('invoice-one-off-items-container');\r\n\t\t\t\t\t$('.invoice-one-off-items-container').removeClass('center-content');\r\n\t\t\t\t\t$('.invoice-full-table #liquid-round').addClass('table-width');\r\n\t\t\t\t\t$('.table-width').removeAttr('id');\r\n\t\t\t\t\t$('.content-holder').removeClass('margin10');\r\n\r\n\t\t\t\t\t$('.invoice-full-table h2').addClass('heading-4');\r\n\t\t\t\t\t$('.actionButtons').addClass('main-action-btn-container');\r\n\t\t\t\t\t$('.main-action-btn-container').removeClass('actionButtons tabs');\r\n\t\t\t\t\teditButtons('.main-action-btn-container');\r\n\t\t\t\t\t$('.main-action-btn-container a').first().html('Back to order details');\r\n\t\t\t\t\t$(\".main-action-btn-container\").insertBefore(\".invoice-transaction-detail\");\r\n\t\r\n\t\t\t\t\t$('#myAccountExcerpt').append(`
  • Show more...
  • `);\r\n\t\r\n\t\t\t\t\t// Edit hero text first para\r\n\t\t\t\t\t$('#myAccountExcerpt p').first().html(\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t\tThis is the list of all items that make up your invoice for this period and the dates/times you should have received the service. If you have any queries then please contact the provider before paying the invoice.\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Edit hero text second para\r\n\t\t\t\t\t$('#myAccountExcerpt p').last().html(\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t\tIf you wish to print this page for your records please use the print button in your web browser. You can also view a summary invoice by using the 'Print summary invoice' button. This will require the Adobe Reader software which you may need to install on your computer, this software is free.\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t);\r\n\t\r\n\t\t\t\t\t// Add class to bottom text container in hero\r\n\t\t\t\t\t$('#myAccountExcerpt p').last().addClass('hide-text js-hide-text');\r\n\t\r\n\t\t\t\t\t// Change the text of the toggle when clicked\r\n\t\t\t\t\t$('.js-show-more-toggle').on('click', function(){\r\n\t\r\n\t\t\t\t\t\t$('.js-hide-text').slideToggle();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif($('.js-show-more-toggle').html() === \"Show more...\"){\r\n\t\t\t\t\t\t\tconsole.log($('.js-show-more-toggle').html())\r\n\t\t\t\t\t\t\t$('.js-show-more-toggle').html('Show less');\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$('.js-show-more-toggle').html('Show more...');\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t});\r\n\t\r\n\t\r\n\t\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Payment details styling (general)\r\n\t\t\t\tif(pagePath.includes('/OrdersDetails/PaymentDetails/') || pagePath.includes('/OrdersDetails/PaymentConfirmation')) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('payment-details');\r\n\t\t\t\t\tcontentWrapFull();\r\n\t\r\n\t\t\t\t\t// Add classes/divs to hero text\r\n\t\t\t\t\tmyAccountWrapper();\r\n\t\t\t\t\theroWrapper();\r\n\t\t\t\t\tdisplaySizeWrap();\r\n\t\r\n\t\t\t\t\t// Add class to payment summary section and remove old class\r\n\t\t\t\t\t$('.pad-right').first().addClass('payment-transaction-detail payment-summary-table-container');\r\n\t\t\t\t\t$('.payment-transaction-detail').removeClass('pad-right');\r\n\t\r\n\t\t\t\t\t// Add class to payments received section and remove old class\r\n\t\t\t\t\t$('.content-holder').last().addClass('payment-form-section');\r\n\t\t\t\t\t$('.payment-payments-received').removeClass('content-holder');\r\n\t\r\n\t\t\t\t\t// Add a class to invoce sections\r\n\t\t\t\t\t$('.payment-transaction-detail, .payment-form-section').addClass('payment-detail-section');\r\n\t\r\n\t\t\t\t\t// Add class to payment form section and rmeove class/Id\r\n\t\t\t\t\t$('.payment-detail-section #liquid-round').removeAttr('id');\r\n\t\t\t\t\t$('.payment-detail-section .center-content').removeClass();\r\n\t\t\t\t\t$('.payment-detail-section .content-half').addClass('payment-form-container');\r\n\t\t\t\t\t$('.payment-form-container').removeClass('content-half borderedRight');\r\n\t\r\n\t\t\t\t\t// Edit for header container\r\n\t\t\t\t\t$('.payment-form-container .contentPadding').addClass('payment-form-heading-container');\r\n\t\t\t\t\t$('.payment-form-heading-container').removeClass('contentPadding tint2');\r\n\t\t\t\t\t$('.payment-form-heading-container h2').removeClass('center payTitle').addClass('heading-3');\r\n\t\t\t\t\t$('.payment-form-heading-container p').removeClass();\r\n\t\r\n\t\t\t\t\t// Remove class from form input\r\n\t\t\t\t\t$('fieldset').removeClass();\r\n\t\r\n\t\t\t\t\t// Add class to date filter and remove old class\r\n\t\t\t\t\t$('.appointmentDateFilter').addClass('date-filter');\r\n\t\t\t\t\t$('.date-filter').removeClass('appointmentDateFilter datesPicker roundb');\r\n\t\r\n\t\t\t\t\t// Add class and remove class from payment submit btn section\r\n\t\t\t\t\t$('form .center').addClass('payment-btn-section');\r\n\t\t\t\t\t$('.payment-btn-section').removeClass('center');\r\n\t\t\t\t\t$('.payment-btn-section ul').removeClass();\r\n\t\t\t\t\t$('.payment-btn-section li').addClass('payment-btn-container').removeClass('left');\r\n\t\t\t\t\t$('.payment-btn-section a').addClass('blue-btn');\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Wrap all payment sections in a div\r\n\t\t\t\t\t$('.payment-detail-section').wrapAll('
    ');\r\n\t\t\t\t\t$('.payment-overview-container').wrapAll('
    ');\r\n\t\t\t\t\t$('.payment-s').wrapAll('
    ');\r\n\t\r\n\t\t\t\t\t// Add classes to payment-summary-table-container divs and remove old classes\r\n\t\t\t\t\t$('.payment-summary-table-container .span_12_of_12').addClass('payment-summary-container');\r\n\t\t\t\t\t$('.payment-summary-container').removeClass('col span_12_of_12');\r\n\t\t\t\t\t$('.payment-summary-container .span_6_of_12').addClass('payment-summary-table');\r\n\t\t\t\t\t$('.payment-summary-table').removeClass('col span_6_of_12');\r\n\t\r\n\t\t\t\t\t// Remove classes from payment summary tables\r\n\t\t\t\t\t$('.payment-summary-container dl').removeClass();\r\n\t\r\n\t\t\t\t\t// Add class to table headings\r\n\t\t\t\t\t$('dt').addClass('table-heading');\r\n\t\r\n\t\t\t\t\tliquidReset();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Order details payment styling\r\n\t\t\t\tif(pagePath.includes('/OrdersDetails/PaymentDetails/')) {\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('order-details-payment');\r\n\t\r\n\t\t\t\t\t// Add classes to buttons section and remove old classes\r\n\t\t\t\t\t$('.actionButtons').addClass('main-action-btn-container');\r\n\t\t\t\t\t$('.main-action-btn-container').removeClass('actionButtons tabs');\r\n\t\t\t\t\teditButtons('.main-action-btn-container')\r\n\t\r\n\t\t\t\t\t// Move main buttons to main bottom section\r\n\t\t\t\t\t$(\".main-action-btn-container\").insertBefore(\".payment-transaction-detail\");\r\n\t\r\n\t\t\t\t\t// Edit back button text\r\n\t\t\t\t\t$('.main-action-btn-container a').html(`Back to order details`);\r\n\t\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// order details confirmation styling\r\n\t\t\t\tif(pagePath.includes('/OrdersDetails/PaymentConfirmation')) {\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('order-details-confirmation');\r\n\t\r\n\t\t\t\t\t// Add classes to buttons section and remove old classes\r\n\t\t\t\t\t$('.actionButtons').addClass('main-action-btn-container');\r\n\t\t\t\t\t$('.main-action-btn-container').removeClass('actionButtons tabs');\r\n\t\t\t\t\teditButtons('.main-action-btn-container');\r\n\t\r\n\t\t\t\t\t// Move main buttons to main bottom section\r\n\t\t\t\t\t$(\".main-action-btn-container\").appendTo(\"#myAccountExcerpt\");\r\n\t\t\t\t\t$('.main-action-btn-container a').html(`Back to order details`);\r\n\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Profile page styling\r\n\t\t\t\tif(pagePath.includes('/MyProfile')) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('profile');\r\n\t\r\n\t\t\t\t\t// Remove right margin from page\r\n\t\t\t\t\t$('form div').removeClass('full-columnAlt');\r\n\t\r\n\t\t\t\t\t// Add form section class and remove old class\r\n\t\t\t\t\t$('.center-content-no-top').addClass('form-section');\r\n\t\t\t\t\t$('.form-section').removeClass('center-content-no-top').append('
    ');\r\n\t\r\n\t\t\t\t\t// Append close button to new div\r\n\t\t\t\t\t$('#actionButtons a').addClass('form-submit-close-btn blue-btn close-btn');\r\n\t\t\t\t\t$('#actionButtons').first().appendTo('.action-btns-container').removeClass();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Append save button to new div and remove arrow img\r\n\t\t\t\t\t$('.orangeButtons').addClass('save-btn-section');\r\n\t\t\t\t\t$('.save-btn-section').removeClass('orangeButtons');\r\n\t\t\t\t\t$('.save-btn-section .right').removeClass();\r\n\t\t\t\t\t$('.save-btn-section a').addClass('blue-btn');\r\n\t\t\t\t\t$('.save-btn-section').appendTo('.action-btns-container');\r\n\t\t\t\t\t$('.myprofile-save-button img').remove();\r\n\t\r\n\t\t\t\t\t// Remove classes from form\r\n\t\t\t\t\t$('.account ul').removeClass();\r\n\t\t\t\t\t$('.account li').removeClass('blocks');\r\n\t\r\n\t\t\t\t\t// Remove old Id\r\n\t\t\t\t\tliquidReset();\r\n\t\r\n\t\t\t\t\t// Add new class and remove old from PA ref section\r\n\t\t\t\t\t$('.account .width420.col').addClass('pa-ref-section');\r\n\t\t\t\t\t$('.pa-ref-section').removeClass('width420 col');\r\n\t\t\t\t\t$('.pa-ref-section .center-content').removeClass();\r\n\t\t\t\t\t$('.pa-ref-section .initial-color').removeClass();\r\n\t\r\n\t\t\t\t\t// Add classes to tabs\r\n\t\t\t\t\t$('#tabs li').each(function(i, el){\r\n\t\t\t\t\t\t$(el).addClass(`tab-${i}`);\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\t$('.tab-2').hide();\r\n\t\t\t\t\t$('.tab-3 a').html(`Exported Documents`);\r\n\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t// Profile page styling\r\n\t\t\t\tif(pagePath.includes('/MyProfile/DocumentsTab')) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('profile-exported-docs');\r\n\r\n\t\t\t\t\t$('.action-btns-container').hide();\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t// Profile Additional information page page styling\r\n\t\t\t\tif(pagePath.includes('/MyProfile/AdditionalInformationTab')) {\t\r\n\t\t\t\t\t// Change the hero text\r\n\t\t\t\t\t$('#myAccountExcerpt p').html(`You can tell us more about you and let us know if you want to receive a news letter or other information we send out sometimes.`);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t// Provider timesheet\r\n\t\t\t\tif ( pagePath.includes('/ProviderTimesheetAdministration/Details/')) {\r\n\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('timesheet-details');\r\n\r\n\t\t\t\t\t// Add in Previous markup CORE-887\r\n\t\t\t\t\t$('.contentWrapper > div').prepend(\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t

    Timesheet details

    \r\n\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t);\r\n\r\n\t\t\t\t\t// Remove margin class from page\r\n\t\t\t\t\tfullColAltRmClass();\r\n\t\t\t\t\tadminExceprtRm();\r\n\r\n\t\t\t\t\twaitForElem(`sc-timesheet-details form`).then(() => {\r\n\r\n\t\t\t\t\t\tliquidReset();\r\n\t\r\n\t\t\t\t\t\t// Add class to main section div\r\n\t\t\t\t\t\t$('.form').addClass('main-section');\r\n\t\t\t\t\t\t$('.timesheet-participants-details__container').removeClass('timesheet-participants-details__container tint3 round');\r\n\r\n\t\t\t\t\t\t$('.form.main-section').css('margin', 'auto');\r\n\r\n\t\t\t\t\t\t// Remove hr\r\n\t\t\t\t\t\t$('hr').remove();\r\n\r\n\t\t\t\t\t\t// Edit close Timesheet button\r\n\t\t\t\t\t\t$('.actionButtons').addClass('close-btn-container');\r\n\t\t\t\t\t\t$('.close-btn-container').removeClass('actionButtons alt action_bar--left action_bar--medium');\r\n\t\t\t\t\t\t$('.close-btn-container button').hide();\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\twaitForElem(`sc-fill-form-app .form-control--valid`).then(() => {\r\n\t\t\t\t\t\t$('[data-integration-timesheet-integration-id=\"start_date\"]').hide().addClass('hide');\r\n\t\t\t\t\t\tcreateTimesheetFormAdjustDOM()\r\n\t\t\t\t\t})\r\n\r\n\t\t\t\t\tconst observer = observeCreationOfElement('sc-fill-form-app', createTimesheetFormAdjustDOM);\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\t// Personal timesheets\r\n\t\t\t\tif ( pagePath.includes('/PersonalTimesheet/Details/')) {\r\n\r\n\t\t\t\t\t//$('sc-timesheet-details').addClass('box-container');\r\n\t\t\t\t\t$('body').addClass('individual-view');\r\n\r\n\t\t\t\t\tif ( userInfo.readonly === true ) {\r\n\t\t\t\t\t\twaitForElem(`.action-bar`).then(() => {\r\n\t\t\t\t\t\t\t$('.form-btn.primary').hide()\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Provider & Personal timesheets\r\n\t\t\t\tif ( pagePath.includes('/ProviderTimesheetAdministration/Details/') || pagePath.includes('/PersonalTimesheet/Details/')) {\r\n\t\t\t\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('timesheet-details');\r\n\t\r\n\t\t\t\t\t// Check if certain elements have loaded\r\n\t\t\t\t\tvar checkExistApp = setInterval(function() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tif ($('sc-timesheet-details').length > 0 && $('sc-fill-form-app').length > 0) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tclearInterval(checkExistApp);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// Add new class and remove class from timesheet number container\r\n\t\t\t\t\t\t\t$('.timesheet-common-info__container').addClass('timesheet-number-section timesheet-detail');\r\n\t\t\t\t\t\t\t$('.timesheet-number-section').removeClass('timesheet-common-info__container tint3 round');\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// Add new class and remove class from timesheet participaants container\r\n\t\t\t\t\t\t\t$('.timesheet-participants-details__container').addClass('timesheet-participants-section timesheet-detail');\r\n\t\t\t\t\t\t\t$('.timesheet-participants-section').removeClass('timesheet-participants-details__container tint3 round');\r\n\r\n\t\t\t\t\t\t\t// Remove bold class from labels\r\n\t\t\t\t\t\t\t$('.timesheet-detail label').removeClass();\r\n\r\n\t\t\t\t\t\t\t// Add class to timesheet section\r\n\t\t\t\t\t\t\t$('.pcgf-app').addClass('timesheet-section timesheet-detail');\r\n\r\n\t\t\t\t\t\t\t// Add class ot timesheet header\r\n\t\t\t\t\t\t\t$('.form-header__title').addClass('heading-3');\r\n\r\n\t\t\t\t\t\t\t// Remove class to timesheet section\r\n\t\t\t\t\t\t\t$('.timesheet-section .form-body').removeClass();\r\n\t\t\t\t\t\t\t$('.timesheet-section .form-main-content').removeClass();\r\n\t\r\n\t\t\t\t\t\t\t// Edit close button section\r\n\t\t\t\t\t\t\t$('.actionButtons').first().addClass('close-btn-container');\r\n\t\t\t\t\t\t\t$('.close-btn-container').removeClass('actionButtons alt action_bar--left action_bar--medium');\r\n\t\t\t\t\t\t\t$('.close-btn-container button').addClass('blue-btn');\r\n\t\t\t\t\t\t\t$('.close-btn-container button').removeClass('form-btn');\r\n\r\n\t\t\t\t\t\t\tif($('.main-section').length === 0){\r\n\r\n\t\t\t\t\t\t\t\t// Wrap main div in holding containers and display size containers\r\n\t\t\t\t\t\t\t\t$('sc-timesheet-details').wrapAll(`
    `);\r\n\t\t\t\t\t\t\t\t$('.main-section').wrapAll(`
    `);\r\n\t\t\t\t\t\t\t\t$('.timesheet-d > div').removeClass('main-section')\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t// Provider timesheets\r\n\t\t\t\t\t\t\tif(pagePath.includes('/ProviderTimesheetAdministration/Details/')) {\r\n\t\t\t\t\t\t\t\t$('.close-btn-container button').hide();\r\n\t\t\t\t\t\t\t\t$('.close-btn-container').append(`Close`);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t}, 200); // check every 100ms\r\n\r\n\r\n\t\t\t\t\twaitForElem(`.craig_timesheet`).then(() => {\r\n\r\n\t\t\t\t\t\t$('.craig_timesheet .craig_timesheet tr').addClass('timesheet-date-row')\r\n\r\n\t\t\t\t\t\tvar rows = document.querySelectorAll('.timesheet-date-row');\r\n\t\t\r\n\t\t\t\t\t\t// Iterate over each row\r\n\t\t\t\t\t\trows.forEach(function(row) {\r\n\r\n\t\t\t\t\t\t\t// Populate the Hours\r\n\t\t\t\t\t\t\tvar hoursDiv = row.querySelector('td:nth-child(2) > div > p > div');\r\n\t\t\t\t\t\t\t// Check if the div is found and log its text content\r\n\t\t\t\t\t\t\tif (hoursDiv) {\r\n\t\t\t\t\t\t\t\tvar hours = hoursDiv.textContent.trim();\r\n\t\t\t\t\t\t\t\t// const hoursPlural = hours === '1' ? 'hour' : 'hours';\r\n\t\t\t\t\t\t\t\t// $(hoursDiv).html( hours + ' ' + hoursPlural + '' )\r\n\t\t\t\t\t\t\t\t$(hoursDiv).html( hours + 'hr' )\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t// Populate the Minutes\r\n\t\t\t\t\t\t\tvar minutesDiv = row.querySelector('td:nth-child(3) > div > p > div');\r\n\t\t\t\t\t\t\t// Check if the div is found and log its text content\r\n\t\t\t\t\t\t\tif (minutesDiv) {\r\n\t\t\t\t\t\t\t\tvar minutes = minutesDiv.textContent.trim();\r\n\t\t\t\t\t\t\t\t$(minutesDiv).html( minutes + 'min')\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\r\n\t\t\t\t// Category page styling (personal assistants)\r\n\t\t\t\tif( pagePath.includes('/PersonalAssistants/Category')) {\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('category');\r\n\r\n\t\t\t\t\tcontentWrapRmDiv();\r\n\t\t\t\t\tmyAccountWrapper();\r\n\t\t\t\t\theroWrapper();\r\n\t\t\t\t\tdisplaySizeWrap();\r\n\t\r\n\t\t\t\t\t// Add site display sizes to hero\r\n\t\t\t\t\t$('.display-size-container').addClass('pcg-page-wrapper container site-container');\r\n\t\r\n\t\t\t\t\t// Check if certain elements have loaded\r\n\t\t\t\t\tvar checkExistApp = setInterval(function() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tif ($('sc-timesheet-category-list .actionButtons').length > 0) {\r\n\t\r\n\t\t\t\t\t\t\tclearInterval(checkExistApp);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// Add class to filters and list section\r\n\t\t\t\t\t\t\t$('sc-timesheet-category-list').addClass('category-section');\r\n\t\r\n\t\t\t\t\t\t\t// Add class to approve button\r\n\t\t\t\t\t\t\t$('sc-timesheet-category-list .actionButtons').addClass('main-action-btn-container');\r\n\t\r\n\t\t\t\t\t\t\t// Remove classes from Add btn\r\n\t\t\t\t\t\t\t$('.main-action-btn-container').removeClass('actionButtons alt action_bar--left action_bar--medium');\r\n\t\t\t\t\t\t\t$('.main-action-btn-container button').removeClass();\r\n\t\t\t\t\t\t\t$('.main-action-btn-container button').addClass('blue-btn');\r\n\t\r\n\t\t\t\t\t\t\t// Add and update category tab link depending on module spelling\r\n\t\t\t\t\t\t\t$(getUserJson.AvailableModules).each(function(i, el){\r\n\r\n\t\t\t\t\t\t\t\tif(el === 'personal_assistants' || el === 'personal_assistance'){\r\n\t\t\t\t\t\t\t\t\t// Prepend tab section above list section\r\n\t\t\t\t\t\t\t\t\t$('.main-action-btn-container').after(\r\n\t\t\t\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\t});\r\n\t\r\n\t\t\t\t\t\t\t// Add site container to timesheets section\r\n\t\t\t\t\t\t\t$('sc-timesheet-category-list').addClass('pcg-page-wrapper container site-container');\r\n\t\r\n\t\t\t\t\t\t\t// Add class to filters section\r\n\t\t\t\t\t\t\t$('.timesheet-list-page div.section.pad20').addClass('filters-section')\r\n\t\r\n\t\t\t\t\t\t\t// Adds filters toggle button\r\n\t\t\t\t\t\t\t$('#content-holder').before(\r\n\t\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t);\r\n\t\r\n\t\t\t\t\t\t\t// Toggles the filters section\r\n\t\t\t\t\t\t\t$('.js-filter-toggle-btn').on('click', function(){\r\n\t\t\t\t\t\t\t\t$('.filters-section').slideToggle()\r\n\t\t\t\t\t\t\t}); \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// // Remove old class from main section\r\n\t\t\t\t\t\t\t$('#content-holder .liquid-round').removeClass('liquid-round');\r\n\t\t\t\t\t\t\t$('.site-container .top, .site-container .bottom').remove();\r\n\t\r\n\t\t\t\t\t\t\t// Remove class from filters/list container\r\n\t\t\t\t\t\t\t$('.timesheet-list-page').removeClass('center-content');\r\n\t\r\n\t\t\t\t\t\t\t// Add class to select input elements\r\n\t\t\t\t\t\t\t$('.col.span_1_of_5').addClass('select-el');\r\n\t\r\n\t\t\t\t\t\t\t// Add classes to searchbar section\r\n\t\t\t\t\t\t\t$('.filters-section').next().addClass('searchbar-section');\r\n\t\t\t\t\t\t\t$('.searchbar-section div').first().addClass('searchbar-container');\r\n\t\t\t\t\t\t\t$('.searchbar-container input').addClass('searchbar');\r\n\t\r\n\t\t\t\t\t\t\t// Remove old class from searchbar container\r\n\t\t\t\t\t\t\t$('.searchbar-container').removeClass('border pad10 mar-left1 mar-right1 mar-bot1 tint7');\r\n\t\r\n\t\t\t\t\t\t\t// Edit search button icon\r\n\t\t\t\t\t\t\t$('.search-button').html(``);\r\n\t\r\n\t\t\t\t\t\t\t// And add new class to list item buttons\r\n\t\t\t\t\t\t\t$('.headButtons li a').addClass('list-item-btn');\r\n\r\n\r\n\t\t\t\t\t\t\t// Readonly\r\n\t\t\t\t\t\t\tif ( userInfo.readonly === true) {\r\n\t\t\t\t\t\t\t\t$('.action-bar').hide();\r\n\t\t\t\t\t\t\t\t$('.timesheet-list-page table thead th:first-child').hide();\r\n\t\t\t\t\t\t\t\t$('.timesheet-list-page table tbody td:first-child').hide();\r\n\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\r\n\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t}, 200); // check every 100ms\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Contract page styling (personal assistants)\r\n\t\t\t\tif(pagePath.includes('/ContractDetails')) {\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('contract');\r\n\t\r\n\t\t\t\t\tcontentWrapRmDiv();\r\n\t\t\t\t\t$('.pad20-no-bot').removeClass();\r\n\t\t\t\t\t$('#administrationExcerpt').attr('id', 'myAccountExcerpt');\r\n\t\r\n\t\t\t\t\t// Add classes/divs to hero text\r\n\t\t\t\t\tmyAccountWrapper();\r\n\t\t\t\t\theroWrapper();\r\n\t\t\t\t\tdisplaySizeWrap();\r\n\t\r\n\t\t\t\t\t$('.display-size-container').addClass('pcg-page-wrapper container site-container');\r\n\t\t\t\t\t$('.actionButtons, .content-holder').addClass('contract-section-item');\r\n\t\t\t\t\t$('.contract-section-item').wrapAll(`
    `);\r\n\t\t\t\t\t$('.contract-section').addClass('pcg-page-wrapper container site-container');\r\n\t\t\t\t\t$('.contract-section .actionButtons').addClass('main-action-btn-container');\r\n\t\t\t\t\t$('.main-action-btn-container li').removeClass();\r\n\t\t\t\t\t$('.main-action-btn-container a').addClass('blue-btn');\r\n\t\r\n\t\t\t\t\t// Add and update category tab link depending on module spelling\r\n\t\t\t\t\t$(getUserJson.AvailableModules).each(function(i, el){\r\n\r\n\t\t\t\t\t\tif(el === 'personal_assistants' || el === 'personal_assistance'){\r\n\t\t\t\t\t\t\t// Prepend tab section above list section\r\n\t\t\t\t\t\t\t$('.main-action-btn-container').after(\r\n\t\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t});\r\n\t\r\n\t\t\t\t\t// Remove class from filters/list container\r\n\t\t\t\t\t$('.content-holder .center-content').removeClass('center-content');\r\n\t\t\t\t\t\r\n\t\t\t\t\tliquidRemoveId();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Remove old divs\r\n\t\t\t\t\t$('.content-holder .top').remove();\r\n\t\t\t\t\t$('.content-holder .bottom').remove();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Remove old class from filters section\r\n\t\t\t\t\t$('.summary').removeClass('pad20').removeClass('round').addClass('filters-section');\r\n\t\r\n\t\t\t\t\t// Adds filters toggle button\r\n\t\t\t\t\t$('.content-holder').before(\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t);\r\n\t\r\n\t\t\t\t\t// Toggles the filters section\r\n\t\t\t\t\t$('.js-filter-toggle-btn').on('click', function(){\r\n\t\t\t\t\t\t$('.filters-section').slideToggle()\r\n\t\t\t\t\t}); \r\n\t\r\n\t\t\t\t\t// Add class to select input elements\r\n\t\t\t\t\t$('.col.span_1_of_5 .dropDownBox').addClass('select-el');\r\n\r\n\t\t\t\t\t// Re-insert hero section at the top of the page\r\n\t\t\t\t\t$('.hero-section').insertBefore('.contract-section');\r\n\r\n\r\n\t\t\t\t\t// Read only\r\n\t\t\t\t\tif ( userInfo.readonly === true ) {\r\n\t\t\t\t\t\t$('.actionButtons.contract-section-item').hide();\r\n\t\t\t\t\t\t$('.content-holder.contract-section-item table thead th:first-child').hide();\r\n\t\t\t\t\t\t$('.content-holder.contract-section-item table tbody td:first-child').hide();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Timesheet period page styling (personal assistants)\r\n\t\t\t\t// https://ppl.atlassian.net/browse/CORE-1327\r\n\t\t\t\tif(pagePath.includes('/PrincipalTimesheetSettingsDetails')) {\r\n\t\r\n\t\t\t\t\t// Add and update category tab link depending on module spelling\r\n\t\t\t\t\t$(getUserJson.AvailableModules).each(function(i, el){\r\n\r\n\t\t\t\t\t\tif(el === 'personal_assistants' || el === 'personal_assistance'){\r\n\t\t\t\t\t\t\t// Prepend tab section above list section\r\n\t\t\t\t\t\t\t$('.summary-page-layout__section').before(\r\n\t\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t});\r\n\t\r\n\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Support package section styling (general)\r\n\t\t\t\tif(pagePath.includes('/MySupportPackages') || pagePath.includes('/SupportPackageDetails')) {\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('support-packages');\r\n\t\t\t\t\tcontentWrapFull();\r\n\t\t\t\t\t$('.contentWrapper .articleLeft').addClass('hero-section');\r\n\t\t\t\t\t$('.hero-section').removeClass('articleLeft');\r\n\t\t\t\t\t$('#myAccountExcerpt').wrap(`
    `);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Edit support package styling (Support package)\r\n\t\t\t\tif(pagePath.includes('/SupportPackage/MySupportNeeds')) {\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('my-support-needs');\r\n\r\n\t\t\t\t\tsupportPackageCommonDOM();\r\n\t\t\t\t\t$('.articleParent, .width-100percent, .articleWrapper, .articleFull, .articleLeft, .tint3 ').removeClass();\r\n\t\t\t\t\t$('.ValidateAltNorm br').remove();\r\n\t\t\t\t\t$('.asideRight').remove();\r\n\t\t\t\t\t$('.section.mar-bot1').addClass('attr-dropdown-section');\r\n\t\t\t\t\t$('.attr-dropdown-section').removeClass('section mar-bot1');\r\n\t\t\t\t\t$('.attr-dropdown-section .col.span_4_of_12.mar-top1').addClass('attr-dropdown-container')\r\n\t\t\t\t\t$('.twoCol').first().addClass('package-start-input');\r\n\t\t\t\t\t$('#TenderDaysDurationStr').parents('.ValidateAltNorm').addClass('reply-duration-input');\r\n\t\t\t\t\t$('.reply-duration-input').insertAfter('.package-start-input');\r\n\r\n\t\t\t\t\t$('#content-holder').wrapAll(`
    `);\r\n\t\t\t\t\t$('.form-section-container').wrapAll(`
    `);\r\n\t\t\t\t\t$('.form-s').wrapAll('
    ');\r\n\t\t\t\t\t\r\n\t\t\t\t\t$('.supportSteps').prependTo('.form-section-container');\r\n\r\n\t\t\t\t\tpadAddClass();\r\n\t\t\t\t\tbottomRibbonRm();\r\n\t\t\t\t\tcreateBlueBtns();\r\n\r\n\t\t\t\t\t$('.action-btns-section').appendTo('.form-section-container');\r\n\r\n\t\t\t\t\t$('.ValidateAltNorm').each(function(i, el){\r\n\t\t\t\t\t\t$(el).addClass(`input-section-${i}`);\r\n\t\t\t\t\t})\r\n\r\n\t\t\t\t\t$('.input-section-5, .input-section-6, .input-section-7, .input-section-8, .input-section-9').hide();\r\n\r\n\t\t\t\t\tvar showMore = $(`

    Show more options...

    `)\r\n\t\t\t\t\t$(showMore).insertAfter('.input-section-4');\r\n\r\n\t\t\t\t\t// Click show more to display the hidden fields\r\n\t\t\t\t\t$('.js-show-more').on('click', function(){\r\n\t\t\t\t\t\t$('.input-section-5').toggle(500);\r\n\t\t\t\t\t\t$('.input-section-6').toggle(500);\r\n\t\t\t\t\t\t$('.input-section-7').toggle(500);\r\n\t\t\t\t\t\t$('.input-section-8').toggle(500);\r\n\t\t\t\t\t\t$('.input-section-9').toggle(500);\r\n\r\n\t\t\t\t\t\tif($('.js-show-more').html() === 'Show more options...'){\r\n\t\t\t\t\t\t\t$('.js-show-more').html('Show less options...');\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$('.js-show-more').html('Show more options...');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Edit support package styling (Support package)\r\n\t\t\t\tif(pagePath.includes('/SupportPackage/ChooseProviders')) {\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('choose-providers');\r\n\t\t\t\t\t// Add classes/divs to hero text\r\n\t\t\t\t\tsupportPackageCommonDOM();\r\n\r\n\t\t\t\t\t$('.articleParent, .width-100percent, .articleWrapper, .articleFull, .articleLeft').removeClass();\r\n\r\n\t\t\t\t\t// Remove class from choose providers section\r\n\t\t\t\t\t$('.chooseProvidersContainer').removeClass('tint5 round');\r\n\r\n\t\t\t\t\t// Add/remove class from number of selected providers container\r\n\t\t\t\t\t$('.chooseProvidersContainer').addClass('number-of-selected-container');\r\n\t\t\t\t\t$('.number-of-selected-container').removeClass('chooseProvidersContainer');\r\n\r\n\t\t\t\t\t// Add/remove class from add/remove providers btns\r\n\t\t\t\t\t$('.addProviders a').addClass('add-remove-btn');\r\n\t\t\t\t\t$('.add-remove-btn').addClass('blue-btn');\r\n\t\t\t\t\t$('.add-remove-btn').removeClass('blockBtns green small');\r\n\t\t\t\t\t$('.add-remove-btn img').remove();\r\n\r\n\t\t\t\t\t// Wrap add/remove btns in container\r\n\t\t\t\t\t$('.add-remove-btn').wrapAll(`
    `);\r\n\r\n\t\t\t\t\t// Move add.remove buttons before provier number text\r\n\t\t\t\t\t$('.add-remove-btn-container').appendTo('.addProviders');\r\n\r\n\t\t\t\t\t// Add class to provider list items section container\r\n\t\t\t\t\t$('#onlineStores').addClass('provider-list-items-container');\r\n\r\n\t\t\t\t\t// Add class to provider item container\r\n\t\t\t\t\t$('.provider-list-items-container li').addClass('provider-items-container');\r\n\r\n\t\t\t\t\t// Remove image container form provider item (image currently not pulling through)\r\n\t\t\t\t\t$('.store-proportions').remove();\r\n\r\n\t\t\t\t\t// Add class to item prover name and remove old class\r\n\t\t\t\t\t$('.itemBody').addClass('provider-name');\r\n\t\t\t\t\t$('.provider-name').removeClass('itemBody');\r\n\r\n\t\t\t\t\t// Add class to item prover button and remove old class\r\n\t\t\t\t\t$('.itemFooter').addClass('provier-item-btn-container');\r\n\t\t\t\t\t$('.provier-item-btn-container').removeClass('itemFooter');\r\n\t\t\t\t\t$('.provier-item-btn-container a').addClass('provier-item-btn').removeClass('blockBtns small');\r\n\r\n\t\t\t\t\t// Wrap main div in holding containers and display size containers\r\n\t\t\t\t\t$('#content-holder').wrapAll(`
    `);\r\n\t\t\t\t\t$('.providers-section-container').wrapAll(`
    `);\r\n\t\t\t\t\t$('.providers-s').wrapAll('
    ');\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Move support steps section into main form section\r\n\t\t\t\t\t$('.supportSteps').prependTo('.providers-section-container');\r\n\t\t\t\t\t\r\n\t\t\t\t\tpadAddClass();\r\n\t\t\t\t\tbottomRibbonRm();\r\n\t\t\t\t\tcreateBlueBtns();\r\n\t\t\t\t\t$('.action-btns-section').appendTo('.providers-section-container');\r\n\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Add support package styling (Support package)\r\n\t\t\t\tif(pagePath.includes('/SupportPackage/AddProviders')) {\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('add-providers');\r\n\r\n\t\t\t\t\tmyAccountWrapper();\r\n\t\t\t\t\theroWrapper();\r\n\t\t\t\t\tdisplaySizeWrap();\r\n\r\n\t\t\t\t\t$('#myAccountExcerpt img').remove();\r\n\t\t\t\t\t$('.articleParent, .width-100percent, .articleWrapper, .articleFull, .articleLeft').removeClass();\r\n\t\t\t\t\t$('.hero_micro-searchbar-container').appendTo('.hero-container')\r\n\t\t\t\t\t$('.supportSteps').prependTo('.support-package_list-section');\r\n\t\t\t\t\t\r\n\t\t\t\t\tpadAddClass();\r\n\t\t\t\t\tbottomRibbonRm();\r\n\t\t\t\t\tcreateBlueBtns();\r\n\t\t\t\t\t$('.action-btns-section').appendTo('.support-package_list-section');\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// My quotes page styling (Support package)\r\n\t\t\t\tif(pagePath.includes('/MySupportPackages')) {\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('my-support-packages');\r\n\t\r\n\r\n\t\t\t\t\t$('#myAccountExcerpt h1').html(`My quotes`);\r\n\t\t\t\t\t$('#myAccountExcerpt').append(`Create new quote`);\r\n\t\t\t\t\t$('#myAccountExcerpt p').html(\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t\tYou can tell service providers about you and how you need supporting they can then provide a quote for their services. Select the 'Create a new quote' button to get started or select the 'View details' button to manage an existing request.\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t);\r\n\r\n\t\t\t\t\t$('.supportPackageCreate').remove();\r\n\t\t\t\t\t$('.itemSort').addClass('filter-item').removeClass('itemSort tint3 orders');\r\n\t\t\t\t\t$('.filter-item').each(function(i, el){\r\n\t\t\t\t\t\t$(el).addClass(`filter-item-${i}`);\r\n\t\t\t\t\t})\r\n\t\r\n\t\t\t\t\t$('.filterBox').addClass('filters-section')\r\n\t\t\t\t\t$('.filters-section').before(\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t);\r\n\t\r\n\t\t\t\t\t// Toggles the filters section\r\n\t\t\t\t\t$('.js-filter-toggle-btn').on('click', function(){\r\n\t\t\t\t\t\t$('.filters-section').slideToggle()\r\n\t\t\t\t\t});\r\n\t\r\n\t\t\t\t\t// Add classes to searchbar section and remove old class\r\n\t\t\t\t\t$('.contentWrapper .section').addClass('searchbar-section');\r\n\t\t\t\t\t$('.searchbar-section').removeClass('section');\r\n\t\t\t\t\t$('.searchbar-section div').first().removeClass('border pad10 tint7 mar-top10px mar-left10px mar-right20px');\r\n\t\t\t\t\t$('.searchbar-section div').first().addClass('search-query-filter');\r\n\t\t\t\t\t$('.searchbar-section span').addClass('searchbar-container');\r\n\t\r\n\t\t\t\t\t// Add class to search button\r\n\t\t\t\t\t$('.js-search-button').addClass('search-button');\r\n\t\r\n\t\t\t\t\t// Edit search button icon\r\n\t\t\t\t\t$('.search-button').html(``);\r\n\t\r\n\t\t\t\t\t// Add classes to list item buttons and remove old classes\r\n\t\t\t\t\t$('.yellowBtn').addClass('list-item-btn list-item-btn-blue');\r\n\t\t\t\t\t$('.greenBtn').addClass('list-item-btn list-item-btn-white');\r\n\t\t\t\t\t$('.list-item-btn').removeClass('yellowBtn greenBtn');\r\n\t\r\n\t\t\t\t\t// Remove old divs from table section\r\n\t\t\t\t\t$('#liquid-round .top').remove();\r\n\t\t\t\t\t$('#liquid-round .bottom').remove();\r\n\t\r\n\t\t\t\t\t// Add class to list item cell that hold buttons\r\n\t\t\t\t\t$('.gridrow a, .gridrow_alternate a').parent().addClass('list-item-btn-container');\r\n\t\r\n\t\t\t\t\t// Add class to divs within supprot package main section\r\n\t\t\t\t\t$('.filter-item-0, .filter-toggle-btn, .filters-section, .searchbar-section, .content-holder').addClass('support-packages-main');\r\n\t\r\n\t\t\t\t\t$('.support-packages-main').wrapAll('
    ');\r\n\t\t\t\t\t$('.support-packages-container').wrapAll('
    ');\r\n\t\t\t\t\t$('.support-p').wrapAll('
    ');\r\n\r\n\t\t\t\t\t// Add class to no package message container and append to support packages container\r\n\t\t\t\t\t$('.contentPadding').addClass('no-package-message');\r\n\t\t\t\t\t$('.no-package-message').appendTo('.support-packages-container');\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\t// Support package details styling (general)\r\n\t\t\t\tif(pagePath.includes('/SupportPackageDetails')) { \r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('support-package-details');\r\n\r\n\t\t\t\t\t$('.detailsRibbon, #tabs-holder, .content-holder, .liquid-round').addClass('main-section');\r\n\t\t\t\t\t$('.main-section').wrapAll(`
    `);\r\n\t\t\t\t\t$('.package-details-container').wrapAll(`
    `);\r\n\t\t\t\t\t$('.support-p').wrapAll('
    ');\r\n\t\t\t\t\t$('.detailsRibbon tr').first().addClass('desktop-details-headings-row');\r\n\t\t\t\t\t$('.detailsRibbon tr').last().addClass('desktop-details-row');\r\n\t\t\t\t\t$('.mobile-table-header').each(function(i, el){\r\n\t\t\t\t\t\t$(el).addClass(`mobile-table-header-${i}`);\r\n\t\t\t\t\t})\r\n\t\r\n\t\t\t\t\t$('.mobile-table-header-0').html('Service start date: ');\r\n\t\t\t\t\t$('.mobile-table-header-1').html('How much you can spend: ');\r\n\t\t\t\t\t$('.mobile-table-header-2').html('Start date: ');\r\n\t\t\t\t\t$('.mobile-table-header-3').html('End date: ');\r\n\t\t\t\t\t$('.mobile-table-header-4').html('Location: ');\r\n\r\n\t\t\t\t\t$('.detailsRibbon').clone().insertAfter('#tabs-holder');\r\n\t\t\t\t\t$('.detailsRibbon').first().remove();\r\n\t\r\n\t\t\t\t\t$('#tabs').removeClass('Alt');\r\n\t\t\t\t\t$('#tabs li').addClass('tab-item');\r\n\t\t\t\t\t$('#tabs li a').addClass('tab-item-anchor');\r\n\t\r\n\t\t\t\t\tliquidRemoveId();\r\n\r\n\t\t\t\t\t$('.content-holder .center-content-no-top').removeClass();\r\n\t\t\t\t\t$('.myStatement').removeClass('contentPadding');\r\n\t\t\t\t\t$('.myStatement li.blocks').removeClass();\r\n\t\t\t\t\t$('.bottom').remove();\r\n\t\t\t\t\t$('.bottomRibbon').addClass('bottom-btns-container');\r\n\t\t\t\t\t$('.bottom-btns-container').removeClass('bottomRibbon');\r\n\t\t\t\t\t$('.bottom-btns-container div').removeClass();\r\n\t\t\t\t\t$('.bottom-btns-container a').removeClass().addClass('blue-btn');\r\n\t\t\t\t\t$('.bottom-btns-container a img').remove();\r\n\t\t\t\t\t$('.bottom-btns-container').clone().appendTo('.package-details-container');\r\n\t\t\t\t\t$('.bottom-btns-container').last().remove();\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Support package Extend deadline styling \r\n\t\t\t\tif(pagePath.includes('/SupportPackageDetails/ExtendDeadline')) {\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('extend-deadline');\r\n\r\n\t\t\t\t\t$('.main-section').removeClass('liquid-round');\r\n\t\t\t\t\t$('.main-section .top').remove();\r\n\t\t\t\t\t$('.main-section .center-content').addClass('form-section');\r\n\t\t\t\t\t$('.form-section').removeClass('visible-overflow center-content');\r\n\t\t\t\t\t$('.main-section .account.supportPackage.section').removeClass();\r\n\t\t\t\t\t$('.main-section .blocks').removeClass();\r\n\t\t\t\t\t$('.ValidateAltNorm').first().addClass('days-hours-input');\r\n\t\t\t\t\t$('.ValidateAltNorm textarea').attr('rows', '5');\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\t// Support package Manage Responses Tab styling \r\n\t\t\t\tif(pagePath.includes('/SupportPackageDetails/ManageResponsesTab')) {\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('manage-responses');\r\n\r\n\t\t\t\t\tliquidRemoveId();\r\n\t\t\t\t\t$('.content-holder div').removeClass('center-content-no-top');\r\n\t\t\t\t\t$('.myStatement').addClass('responses-container');\r\n\t\t\t\t\t$('.myStatement').removeClass('contentPadding');\r\n\r\n\t\t\t\t\t$('.section .col').addClass('individual-filter-container');\r\n\t\t\t\t\t$('.individual-filter-container').removeClass('col span_3_of_12');\r\n\t\t\t\t\t$('.individual-filter-container div').removeClass();\r\n\t\t\t\t\t\r\n\t\t\t\t\t$('.section').addClass('filters-container');\r\n\t\t\t\t\t$('.filters-container').removeClass('section');\r\n\r\n\t\t\t\t\t$('.chooseProvidersContainer').removeClass('tint4 round');\r\n\t\t\t\t\t$('.chooseProvidersContainer ul').removeAttr('id');\r\n\t\r\n\t\t\t\t\t$('.parent').addClass('response-item-container');\r\n\t\t\t\t\t$('.response-item-container').removeClass('parent');\r\n\r\n\t\t\t\t\t$('.itemBody h2').addClass('heading-3');\r\n\t\t\t\t\t$('.content-holder .bottom').remove();\r\n\t\r\n\t\t\t\t\t$('.itemFooter a').removeClass().addClass('blue-btn');\r\n\t\r\n\t\t\t\t\t$('.responses-container').prepend(\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t);\r\n\t\r\n\t\t\t\t\t// Toggles the filters section\r\n\t\t\t\t\t$('.js-filter-toggle-btn').on('click', function(){\r\n\t\t\t\t\t\t$('.responses-container form').slideToggle()\r\n\t\t\t\t\t});\r\n\t\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Support package Attachments Tab styling \r\n\t\t\t\tif(pagePath.includes('/SupportPackageDetails/AttachmentsTab')) { \r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('attachments');\r\n\t\r\n\t\t\t\t\t$('.supportPackageCreate').removeClass('left');\r\n\t\t\t\t\t$('#addAttachment').removeClass();\r\n\t\t\t\t\t$('#addAttachment').addClass('blue-btn');\r\n\t\t\t\t\t$('.myStatement .tint3').removeClass();\r\n\t\t\t\t\t$('table.attachments').addClass('attachments-table');\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Support package History Tab styling \r\n\t\t\t\tif(pagePath.includes('/SupportPackageDetails/HistoryTab')) { \r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('history');\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t// My Basket Tab styling \r\n\t\t\t\tif(pagePath.includes('/MyBasket/MyBasket')) { \r\n\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('my-basket');\r\n\r\n\t\t\t\t\tif ( userInfo.readonly === true) {\r\n\t\t\t\t\t\t$('body').addClass('readOnlyIndividual');\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t// Add classes/divs to hero text\r\n\t\t\t\t\t$('#searchShopExcerpt').wrapAll('
    ');\r\n\t\t\t\t\theroWrapper();\r\n\t\t\t\t\tdisplaySizeWrap();\r\n\t\r\n\t\t\t\t\t// Add class to remove provider button section\r\n\t\t\t\t\t$('.basketTitle').parent().parent().addClass('remove-provider-items-container');\r\n\t\r\n\t\t\t\t\t// Add class to remove provider button\r\n\t\t\t\t\t$('.remove-provider-items-container a').addClass('remove-provider-btn');\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Remove margin class from page\r\n\t\t\t\t\tfullColAltRmClass();\r\n\t\r\n\t\t\t\t\t// Add class to provider item table section and remove old classes/Id\r\n\t\t\t\t\t$('.remove-provider-items-container').next('div.section').addClass('provider-item-table-section');\r\n\t\t\t\t\t$('.provider-item-table-section').removeClass('section border pad10 roundb mar-right20px mar-bot1');\r\n\t\t\t\t\t$('.provider-item-table-section .liquid-round').removeClass();\r\n\t\t\t\t\t$('.provider-item-table-section #liquid-round').removeAttr('id');\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Remove old divs item table section\r\n\t\t\t\t\t$('.provider-item-table-section .top').remove();\r\n\t\t\t\t\t$('.provider-item-table-section .bottom').remove();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add class to provider item table container and remove old class\r\n\t\t\t\t\t$('.provider-item-table-section .center-content').addClass('provider-item-table-container');\r\n\t\t\t\t\t$('.provider-item-table-container').removeClass('center-content');\r\n\t\t\t\t\t$('.provider-item-table-container tr').removeClass();\r\n\t\r\n\t\t\t\t\t// Add class to oder now buttons and remove old class\r\n\t\t\t\t\t$('.purpleButtons').addClass('order-now-btn-container');\r\n\t\t\t\t\t$('.order-now-btn-container').removeClass('purpleButtons');\r\n\t\t\t\t\t$('.order-now-btn-container a').addClass('blue-btn');\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Remove image from order now buttons\r\n\t\t\t\t\t$('.order-now-btn-container img').remove();\r\n\t\r\n\t\t\t\t\t// Add classes to update cost buttons section and remove old class\r\n\t\t\t\t\t$('table .basketButtons').addClass('update-cost-btn-section');\r\n\t\t\t\t\t$('.update-cost-btn-section').removeClass('basketButtons right primary');\r\n\t\t\t\t\t$('.update-cost-btn-section a').addClass('update-cost-btn');\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add classes to basketTotals section and remove old class\r\n\t\t\t\t\t$('.basketTotals').addClass('basket-total');\r\n\t\t\t\t\t$('.basket-total').removeClass('basketTotals');\r\n\t\r\n\t\t\t\t\t// Add class to basketTotals/update section\r\n\t\t\t\t\t$('.basket-total').parent().addClass('basket-total-update-container');\r\n\t\t\t\t\t$('.basket-total-update-container').parents('.grid').addClass('basket-total-update-section');\r\n\t\r\n\t\t\t\t\t// Wrap main div in holding containers and display size containers\r\n\t\t\t\t\t$('#content-holder').wrapAll(`
    `);\r\n\t\t\t\t\t$('.basket-section-container').wrapAll(`
    `);\r\n\t\t\t\t\t$('.basket-s').wrapAll('
    ');\r\n\t\r\n\t\t\t\t\t// Add and remove classes from main action buttons section\r\n\t\t\t\t\t$('.actionButtons').parent().addClass('main-action-btn-section');\r\n\t\t\t\t\t$('.main-action-btn-section ul').addClass('main-action-btn-container');\r\n\t\t\t\t\t$('.main-action-btn-container').removeClass('actionButtons alt');\r\n\t\t\t\t\t$('.main-action-btn-section a').addClass('blue-btn');\r\n\t\r\n\t\t\t\t\t// Add class to first main action buttons section\r\n\t\t\t\t\t$('.remove-provider-items-container').first().addClass('first-remove-provider-items-container');\r\n\t\r\n\t\t\t\t\t// Edit url of add to basket button to go to the marketplaces page\r\n\t\t\t\t\t$('#addMoreItemsButtonId').attr('href', `/s4s/CustomPage/Index/${Urls.searchShopServices}?Page=Services&Search=`);\r\n\t\r\n\t\t\t\t\tvar mainActionBtnSection = $('.main-action-btn-section');\r\n\t\r\n\t\r\n\t\t\t\t\tif($('.first-remove-provider-items-container').length > 0){\r\n\t\r\n\t\t\t\t\t\t$('.main-action-btn-section').insertBefore('.first-remove-provider-items-container');\r\n\t\r\n\t\t\t\t\t} else {\r\n\t\r\n\t\t\t\t\t\t$('#content-holder').append(mainActionBtnSection)\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Basket Tab styling (appointment dates and times)\r\n\t\t\t\tif(pagePath.includes('/Basket/AppointmentDatesAndTimes') || pagePath.includes('/Basket/DeliveryAndBilling') || pagePath.includes('/Basket/OverviewAndPay')) { \r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('basket-appointment-dates');\r\n\t\r\n\t\t\t\t\t// Add classes/divs to hero text\r\n\t\t\t\t\tmyLifeWrapper();\r\n\t\t\t\t\theroWrapper();\r\n\t\t\t\t\tdisplaySizeWrap();\r\n\t\t\t\t\tarticleFullRmClass();\r\n\t\r\n\t\t\t\t\t// Add class and wrap main section containers\r\n\t\t\t\t\t$('.supportSteps, #content-holder').addClass('lower-section-item');\r\n\t\t\t\t\t$('.lower-section-item').wrapAll(`
    `);\r\n\t\t\t\t\t$('.main-section-container').wrapAll(`
    `);\r\n\t\t\t\t\t$('.appointment-s').wrapAll('
    ');\r\n\t\r\n\t\t\t\t\t// Add class and remove old class from add items button section\r\n\t\t\t\t\t$('.actionButtons.alt').first().addClass('add-items-btn-section');\r\n\t\t\t\t\t$('.add-items-btn-section').removeClass('actionButtons alt');\r\n\t\t\t\t\t$('.add-items-btn-section li').addClass('add-items-btn-container').removeClass('primary');\r\n\t\t\t\t\t$('.add-items-btn-section a').addClass('blue-btn');\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Move Add items button into main section\r\n\t\t\t\t\t$('.add-items-btn-section').insertBefore('.supportSteps');\r\n\t\r\n\t\t\t\t\t// Edit choose dates and times button\r\n\t\t\t\t\t$('.basketButtons').addClass('choose-dates-btn-section');\r\n\t\t\t\t\t$('.choose-dates-btn-section').removeClass('basketButtons primary');\r\n\t\t\t\t\t$('.choose-dates-btn-section p').addClass('choose-dates-btn-container');\r\n\t\t\t\t\t$('.choose-dates-btn-section a').addClass('blue-btn');\r\n\t\t\t\t\t$('.choose-dates-btn-section img').remove();\r\n\t\r\n\t\t\t\t\t// Edit main basket button section\r\n\t\t\t\t\t$('.bottomRibbon .pad').addClass('basket-btns-section');\r\n\t\t\t\t\t$('.basket-btns-section').removeClass('pad');\r\n\t\t\t\t\t$('.basket-btns-section a').removeClass('blockBtns small green');\r\n\t\t\t\t\t$('.basket-btns-section img').remove();\r\n\t\t\t\t\t$('.basket-btns-section i').remove();\r\n\r\n\t\t\t\t\t// Add blue button class to next button and white button class to other options\r\n\t\t\t\t\t$('.basket-btns-section a').each(function(i, el){\r\n\r\n\t\t\t\t\t\tif($(el).hasClass('js-next-step-button')) {\r\n\t\t\t\t\t\t\t$(el).addClass('blue-btn');\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(!$(el).hasClass('js-next-step-button')) {\r\n\t\t\t\t\t\t\t$(el).addClass('white-btn');\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t});\r\n\t\r\n\t\t\t\t\t// Insert main basket button into main section\r\n\t\t\t\t\t$('.basket-btns-section').appendTo('.main-section-container');\r\n\t\r\n\t\t\t\t\tliquidReset();\r\n\t\t\t\t\tbottomRibbonRm();\r\n\t\r\n\t\t\t\t\t// Remove images from address headings\r\n\t\t\t\t\t$('.basketBoxes th img').remove();\r\n\t\r\n\t\t\t\t\t// Remove class from address table header\r\n\t\t\t\t\t$('.gridAltHeader').removeClass();\r\n\t\r\n\t\t\t\t\t// Edit buttons within tables\r\n\t\t\t\t\t$('.basket-appointment-dates .basketBoxes button').removeClass('form-btn primary');\r\n\t\t\t\t\t$('.basket-appointment-dates .basketBoxes button').addClass('blue-btn');\r\n\t\r\n\t\t\t\t\t// Remove class from textarea\r\n\t\t\t\t\t$('.basketBoxes').removeClass('contentPadding Alt');\r\n\r\n\t\t\t\t\t// Remove class from manual payment button\r\n\t\t\t\t\t$('#manualPaymentButtonId').removeClass('round mar-bot1');\r\n\r\n\t\t\t\t\t// Remove classes from online payment/manual payment buttons\r\n\t\t\t\t\t$('#paypalPaymentButtonId').removeClass('round mar-bot1');\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Basket Tab styling (choose dates and times)\r\n\t\t\t\tif(pagePath.includes('/Basket/ChooseDatesAndTimes') || pagePath.includes('/Basket/SelectRepeatingOptions') || pagePath.includes('/Basket/ReviewAppointments')) { \r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('basket-choose-dates');\r\n\t\r\n\t\t\t\t\t// Add classes/divs to hero text\r\n\t\t\t\t\tmyLifeWrapper();\r\n\t\t\t\t\theroWrapper();\r\n\t\t\t\t\tdisplaySizeWrap();\r\n\t\t\t\t\tarticleFullRmClass();\r\n\t\r\n\t\t\t\t\t// Remove class from fixed shortlist container\r\n\t\t\t\t\t$('.shortlist-container div').removeClass();\r\n\t\r\n\t\t\t\t\t// Add class to appointment section\r\n\t\t\t\t\t$('.js-first-appointment').addClass('appointment-section');\r\n\t\r\n\t\t\t\t\t// Remove class from main section\r\n\t\t\t\t\t$('.js-first-appointment .col').removeClass();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add class to appointment container and remove old class\r\n\t\t\t\t\t$('.js-first-appointment .pad20.mar-top2.mar-bot1.center').addClass('appointment-container');\r\n\t\t\t\t\t$('.appointment-container').removeClass('pad20 mar-top2 mar-bot1 center');\r\n\t\r\n\t\t\t\t\t// Edit time duration section\r\n\t\t\t\t\t$('#durationSectionContainer .pad20.section.tint5').addClass('appointment-duration');\r\n\t\t\t\t\t$('.appointment-duration').removeClass('tint5');\r\n\t\t\t\t\t$('.appointment-duration .tint3.pad20.section.mar-bot1').addClass('hours-minutes-section');\r\n\t\t\t\t\t$('.appointment-duration .hours-minutes-section').removeClass('tint3 pad20 section mar-bot1');\r\n\t\r\n\t\t\t\t\t// Add class and wrap main section containers\r\n\t\t\t\t\t$('.supportSteps, #content-holder').addClass('lower-section-item');\r\n\t\t\t\t\t$('.lower-section-item').wrapAll(`
    `);\r\n\t\t\t\t\t$('.main-section-container').wrapAll(`
    `);\r\n\t\t\t\t\t$('.appointment-s').wrapAll('
    ');\r\n\t\r\n\t\t\t\t\t// Add class to repeat appointments tick box on repeating options page\r\n\t\t\t\t\t$('#isRepeatAppointments').parent().addClass('repeatAppointmentsInputSection');\r\n\t\r\n\t\t\t\t\t// Edit main basket button section\r\n\t\t\t\t\t$('.bottomRibbon .pad').addClass('basket-btns-section');\r\n\t\t\t\t\t$('.basket-btns-section').removeClass('pad');\r\n\t\t\t\t\t$('.basket-btns-section a').removeClass('blockBtns small green');\r\n\t\t\t\t\t$('.basket-btns-section img').remove();\r\n\t\t\t\t\t$('.basket-btns-section i').remove();\r\n\r\n\t\t\t\t\t// Add blue button class to next button and white button class to other options\r\n\t\t\t\t\t$('.basket-btns-section a').each(function(i, el){\r\n\r\n\t\t\t\t\t\tif($(el).hasClass('js-next-step-button')) {\r\n\t\t\t\t\t\t\t$(el).addClass('blue-btn');\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(!$(el).hasClass('js-next-step-button')) {\r\n\t\t\t\t\t\t\t$(el).addClass('white-btn');\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t});\r\n\t\r\n\t\t\t\t\t// Insert main basket button into main section\r\n\t\t\t\t\t$('.basket-btns-section').appendTo('.main-section-container')\r\n\t\t\t\t\t\r\n\t\t\t\t\tbottomRibbonRm();\r\n\r\n\t\t\t\t\t// Make time selector visible as soon as a calendar date is selected\r\n\t\t\t\t\tvar checkExistApp = setInterval(function() {\r\n\t\t\t\t\r\n\t\t\t\t\t\tif ($('#appointmentDaysOfWeekContainer div').length > 0) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\tclearInterval(checkExistApp);\r\n\t\t\t\t\t\t\t$('.js-appointment-hours, .js-service-availability-container').removeClass('invisible');\r\n\t\t\t\t\t\t\t$('.js-service-availability-container').insertBefore('.js-appointment-hours');\r\n\t\t\t\t\t\t\t$('.js-appointment-hours').parent().addClass('time-section');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t}, 200); // check every 200ms\r\n\r\n\t\t\t\t\t// Make date picker 'past date' warning appear when a past data is selected\r\n\t\t\t\t\t$('.js-warning-section').removeClass('invisible');\r\n\t\t\t\t\t$('.js-warning-section').css('display', 'none');\r\n\r\n\t\t\t\t\t// Add class to 'past date' warning section\r\n\t\t\t\t\t$('.js-warning-section').addClass('past-date-warning-container');\r\n\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Basket choose dates and times stlying\r\n\t\t\t\tif(pagePath === '/s4s/Basket/ChooseDatesAndTimes'){\r\n\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('choose-dates-and-times');\r\n\t\r\n\t\t\t\t\t// Remove white button class from 'Add appointments' button and add blue button class\r\n\t\t\t\t\t$('.js-add-times').removeClass('white-btn');\r\n\t\t\t\t\t$('.js-add-times').addClass('blue-btn');\r\n\t\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t// Basket select repeating appointments stlying\r\n\t\t\t\tif(pagePath === '/s4s/Basket/SelectRepeatingOptions'){\r\n\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('select-repeating-options');\r\n\t\r\n\t\t\t\t\t// Add class to each of the bottom action buttons\r\n\t\t\t\t\t$('.basket-btns-section a').each(function(i, el){\r\n\t\t\t\t\t\t$(el).addClass(`basket-btn-${i}`)\r\n\t\t\t\t\t});\r\n\t\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t// Basket delivery and billing stlying\r\n\t\t\t\tif(pagePath === '/s4s/Basket/DeliveryAndBilling'){\r\n\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('delivery-billing');\r\n\t\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t// Basket overview and pay stlying\r\n\t\t\t\tif(pagePath === '/s4s/Basket/OverviewAndPay'){\r\n\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('overview-pay');\r\n\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Basket order confirmation page styling\r\n\t\t\t\tif(pagePath.includes('/Basket/SubmittedOrder')) { \r\n\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('order-confirmation');\r\n\t\r\n\t\t\t\t\t// Remove old classes from page containers\r\n\t\t\t\t\t$('form div').removeClass('contentFixed full-columnAlt');\r\n\t\r\n\t\t\t\t\t// Add class to hero text container and remove old id/class\r\n\t\t\t\t\t$('#HelperBox').addClass('hero-text-container');\r\n\t\t\t\t\t$('.hero-text-container').removeClass('searchShop round tint4');\r\n\t\t\t\t\t$('.hero-text-container').removeAttr('id');\r\n\t\r\n\t\t\t\t\t// Add classes/divs to hero text\r\n\t\t\t\t\t$('.hero-text-container').wrapAll('
    ');\r\n\t\t\t\t\theroWrapper();\r\n\t\t\t\t\tdisplaySizeWrap();\r\n\t\r\n\t\t\t\t\t// Edit main bottom section\r\n\t\t\t\t\t$('#searchShopExcerpt').addClass('main-section-container');\r\n\t\t\t\t\t$('#searchShopExcerpt').removeAttr('id');\r\n\t\t\t\t\t$('hgroup').removeClass();\r\n\t\r\n\t\t\t\t\t$('.main-section-container h1').addClass('heading-2');\r\n\t\t\t\t\t$('.main-section-container').wrapAll(`
    `);\r\n\t\t\t\t\t$('.order-c').wrapAll('
    ');\r\n\r\n\t\t\t\t\t$('.actionButtons.inline').addClass('main-action-btn-container');\r\n\t\t\t\t\t$('.main-action-btn-container').removeClass('actionButtons inline');\r\n\t\t\t\t\t$('.actionButtons.alt li').removeClass().appendTo('.main-action-btn-container');\r\n\t\t\t\t\t$('.main-action-btn-container a').addClass('blue-btn');\r\n\t\t\t\t\t\r\n\t\t\t\t\t$('.main-action-btn-container').insertBefore('hgroup h1');\r\n\t\t\t\t\t$('hgroup p').each(function(i, el){\r\n\r\n\t\t\t\t\t\tif(i === 2){\r\n\t\t\t\t\t\t\t$(el).html(\r\n\t\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t\tTo follow the status of this order, please visit the 'Support summary' area of this website which can be found under 'My Support'.\r\n\t\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t};\r\n\t\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\t// Remove class from items in basket message container\r\n\t\t\t\t\t$('.purpleButtons').removeClass();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Product details styling (general)\r\n\t\t\t\tif(pagePath.includes('/ProductDetails') || pagePath.includes('/StoreProductDetails')) {\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('product-details');\r\n\t\r\n\t\t\t\t\tfullColAltRmClass();\r\n\t\r\n\t\t\t\t\t// Add class to product item and remove old class\r\n\t\t\t\t\t$('.content-holder').first().addClass('product-item-container');\r\n\t\t\t\t\t$('.product-item-container').removeClass('content-holder');\r\n\t\r\n\t\t\t\t\t// Add classes/divs to hero\r\n\t\t\t\t\t$('.product-item-container').wrapAll('
    ');\r\n\t\t\t\t\theroWrapper();\r\n\t\t\t\t\tdisplaySizeWrap();\r\n\t\r\n\t\t\t\t\t// Add class to product item image section and remove Id\r\n\t\t\t\t\t$('#productLeft').addClass('product-item-image-section');\r\n\t\t\t\t\t$('.product-item-image-section').removeAttr('id');\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add class to product item details section and remove Id\r\n\t\t\t\t\t$('#productRight').addClass('product-item-details-section');\r\n\t\t\t\t\t$('.product-item-details-section').removeAttr('id');\r\n\t\r\n\t\t\t\t\t// Add class to product details heading and remove old class\r\n\t\t\t\t\t$('.product-item-details-section h1').addClass('heading-3').removeClass('inline-caption');\r\n\t\r\n\t\t\t\t\t// Remove tick image from product item details section\r\n\t\t\t\t\t$('.product-item-details-section p img').remove();\r\n\t\r\n\t\t\t\t\t// Add class to product item buttons section and remove Id/class\r\n\t\t\t\t\t$('#productOrder').addClass('product-item-btns-section');\r\n\t\t\t\t\t$('.product-item-btns-section').removeAttr('id').removeClass('roundb');\r\n\t\t\t\t\t$('#addToBasket').removeClass();\r\n\t\r\n\t\t\t\t\teditButtons('#addToBasket')\r\n\r\n\t\t\t\t\t// Remove class from tabs section tab\r\n\t\t\t\t\t$('#tabs a').removeClass('infoRequests')\r\n\t\r\n\t\t\t\t\t// Add class to main content section and remove old class\r\n\t\t\t\t\t$('.content-holder').addClass('main-content-section');\r\n\t\t\t\t\t$('.main-content-section').removeClass('content-holder');\r\n\t\r\n\t\t\t\t\tliquidReset();\r\n\t\r\n\t\t\t\t\t// Add class to main content container and remove old class\r\n\t\t\t\t\t$('.productDescription').addClass('main-content-container');\r\n\t\t\t\t\t$('.main-content-container').removeClass('contentPadding productDescription');\r\n\t\r\n\t\t\t\t\t// Add class to main content heading\r\n\t\t\t\t\t$('.main-content-container h2').addClass('main-content-heading heading-3');\r\n\t\r\n\t\t\t\t\t// Add class to input container and remove old class\r\n\t\t\t\t\t$('.requestService').addClass('input-container');\r\n\t\t\t\t\t$('.input-container').removeClass('requestService');\r\n\t\r\n\t\t\t\t\t// Edit submit request button section\r\n\t\t\t\t\t$('.purpleButtons').addClass('submit-request-btn-section');\r\n\t\t\t\t\t$('.submit-request-btn-section').removeClass('purpleButtons request');\r\n\t\t\t\t\t$('.submit-request-btn-section li').addClass('submit-request-btn-container');\r\n\t\t\t\t\t$('.submit-request-btn-container').removeClass('left mar-left1');\r\n\t\t\t\t\t$('.submit-request-btn-section a').addClass('blue-btn');\r\n\t\t\t\t\t$('.submit-request-btn-section img').remove();\r\n\t\r\n\t\t\t\t\t// Wrap main div in holding containers and display size containers\r\n\t\t\t\t\t$('#content-holder').wrapAll(`
    `);\r\n\t\t\t\t\t$('.product-section-container').wrapAll(`
    `);\r\n\t\t\t\t\t$('.product-d').wrapAll('
    ');\r\n\t\r\n\t\t\t\t\t// Add class to hero store banner section and remove old class\r\n\t\t\t\t\t$('.storeHeader').addClass('hero-banner');\r\n\t\t\t\t\t$('.hero-banner').removeClass('storeHeader');\r\n\t\t\t\t\t$('.hero-banner').removeAttr('style');\r\n\t\t\t\t\t$('.hero-banner .storeContainer').addClass('store-banner-image-container');\r\n\t\t\t\t\t$('.store-banner-image-container').removeClass('storeContainer');\r\n\t\r\n\t\t\t\t\t// Insert hero banner into hero section\r\n\t\t\t\t\t$('.hero-banner').insertBefore('.product-item-container');\r\n\t\r\n\r\n\t\t\t\t};\r\n\r\n\t\t\t\t// redirect the 'My Typical Week' 'Find products' button\r\n\t\t\t\tif(pagePath === \"/s4s/Catalogue\" || pagePath === \"/s4s/Catalogue/\"){\r\n\r\n\t\t\t\t\t$('#maincontent').html(\r\n\t\t\t\t\t\t'
    ' +\r\n\t\t\t\t\t\t'' +\r\n\t\t\t\t\t\t'
    '\r\n\t\t\t\t\t);\r\n\r\n\t\t\t\t\twindow.location.href = \"/s4s/CustomPage/Index/\" + Urls.searchShopServices + \"?Page=Services&Search=\"; \r\n\r\n\t\t\t\t};\r\n\r\n\t\t\t\tif(pagePath.includes('/ProductDetails/')) {\r\n\t\t\t\t\tif ( userInfo.readonly === true) {\r\n\t\t\t\t\t\t$('body').addClass('readOnlyIndividual');\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Insert add to list button to service detail page if navigated from My tpyical week page\r\n\t\t\t\tif(pagePath.includes('/ProductDetails/ProductDescriptionTab')) {\r\n\r\n\t\t\t\t\t//if(localStorage.getItem(\"myTypicalWeek\") === 'true'){\r\n\r\n\t\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t\t$('body').addClass('product-description');\r\n\t\r\n\t\t\t\t\t\tvar url = pageUrl;\r\n\r\n\t\t\t\t\t\t// Remove built in add to list button\r\n\t\t\t\t\t\t$('.add-product-to-favourites').remove();\r\n\t\r\n\t\t\t\t\t\t// Product Id\r\n\t\t\t\t\t\tvar prodId = url.split('ProductDescriptionTab/');\r\n\t\t\t\t\t\tprodId = prodId[1].split('?supId=').shift();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Supplier Id\r\n\t\t\t\t\t\tvar supId = url.split('?supId=');\r\n\t\t\t\t\t\tsupId = supId[1].split('&bcgId=').shift();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// BCG Id\r\n\t\t\t\t\t\tvar bcgId = url.split('&bcgId=');\r\n\t\t\t\t\t\tbcgId = bcgId[1];\r\n\t\r\n\t\t\t\t\t\t// Call api to check if item is a product, if false then its a service and do this\r\n\t\t\t\t\t\t$.getJSON(`/s4s/api/Products/GetProductDetails?productId=${prodId}&supplierId=${supId}&bcgId=${bcgId}`).done(function(data){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(data.IsProduct === false){\r\n\t\r\n\t\t\t\t\t\t\t\t// If 'my_typical_week' module is availabe then add buttons\r\n\t\t\t\t\t\t\t\t$(getUserJson.AvailableModules).each(function(i, el){\r\n\t\t\t\r\n\t\t\t\t\t\t\t\t\t// Add add/remove to list button and back to my typical week button\r\n\t\t\t\t\t\t\t\t\tif(el === \"my_typical_week\"){\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t$('.product-section-container').prepend(\r\n\t\t\t\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t\tAdd to list\r\n\t\t\t\t\t\t\t\t\t\t\tRemove from list\r\n\t\t\t\t\t\t\t\t\t\t\tBack to My typical week\r\n\t\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// Call api from my typical week page that lists the favourited items\r\n\t\t\t\t\t\t\t\t$.getJSON('/s4s/api/MyTypicalWeekApi/GetFavouriteProducts').done(function(data){\r\n\t\t\t\r\n\t\t\t\t\t\t\t\t\t$(data).each(function(i, el){\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t// Check if any of favourited items productId is the same as the the id in the product detail page url. If so, show remove from list button\r\n\t\t\t\t\t\t\t\t\t\tif(pagePath.includes(el.ProductId)) {\r\n\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t$('.remove-from-list-btn').removeClass('hide-btn');\r\n\t\t\t\t\t\t\t\t\t\t\t$('.add-to-list-btn').addClass('hide-btn');\r\n\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\r\n\t\t\t\t\t\t\t\t// Qulix function call to add/remove item from list\r\n\t\t\t\t\t\t\t\tvar htmlEl = $('body');\r\n\t\t\t\t\t\t\t\tinitializeSubmitWithChangingActionLinks(htmlEl);\r\n\t\r\n\t\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t//};\r\n\r\n\t\t\t\t};\t\r\n\t\r\n\t\t\t\t// Service order details styling \r\n\t\t\t\tif(pagePath.includes('/ServiceOrderDetails')) {\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('service-order');\r\n\t\r\n\t\t\t\t\t// Remove margin class from page\r\n\t\t\t\t\tfullColAltRmClass();\r\n\t\r\n\t\t\t\t\t// Add class to service image container\r\n\t\t\t\t\t$('.mar-top10px').first().addClass('service-item-img-container service-item');\r\n\t\t\t\t\t$('.service-item-img-container').removeClass('left mar-top10px');\r\n\t\r\n\t\t\t\t\t// Add class to service details container and remove old Id\r\n\t\t\t\t\t$('#productRight').addClass('service-item-details-container service-item');\r\n\t\t\t\t\t$('.service-item-details-container').removeAttr('id');\r\n\t\r\n\t\t\t\t\t// Add classes/divs to hero\r\n\t\t\t\t\t$('.service-item').wrapAll('
    ')\r\n\t\t\t\t\t$('.service-item-container').wrapAll('
    ');\r\n\t\t\t\t\theroWrapper();\r\n\t\t\t\t\tdisplaySizeWrap();\r\n\t\r\n\t\t\t\t\t// Add class to service item heading\r\n\t\t\t\t\t$('.service-item-details-container h1').addClass('heading-3');\r\n\t\r\n\t\t\t\t\t// Add class to service order summary tables\r\n\t\t\t\t\t$('.summary.alt.tint5.round').addClass('service-summary-table');\r\n\t\t\t\t\t$('.service-summary-table').removeClass('summary alt tint5 round');\r\n\t\r\n\t\t\t\t\t// Add class to table headings\r\n\t\t\t\t\t$('dt').addClass('table-heading');\r\n\t\r\n\t\t\t\t\t// Add class to main buttons container\r\n\t\t\t\t\t$('.actionButtons.inline').addClass('main-btns-container');\r\n\t\t\t\t\t$('.main-btns-container').removeClass('actionButtons inline');\r\n\t\t\t\t\t$('.main-btns-container a').addClass('blue-btn');\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add class to main buttons section\r\n\t\t\t\t\t$('.main-btns-container').parent().addClass('main-btns-section');\r\n\t\r\n\t\t\t\t\t// Remove class from address section\r\n\t\t\t\t\t$('.addressFooter').removeClass('tint3 round');\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add class to address section heading\r\n\t\t\t\t\t$('.addressFooter h2').addClass('heading-3');\r\n\t\r\n\t\t\t\t\t// Add and remove classes from invoice/delivery address\r\n\t\t\t\t\t$('.addressLeft').first().addClass('invoice-address-container');\r\n\t\t\t\t\t$('.addressLeft').last().addClass('delivery-address-container');\r\n\t\t\t\t\t$('.addressLeft').removeClass('addressLeft');\r\n\t\r\n\t\t\t\t\t// Add class to main section items\r\n\t\t\t\t\t$('.service-summary-table, .main-btns-section, .addressFooter').addClass('service-order-detail-section');\r\n\t\r\n\t\t\t\t\t// Wrap main div in holding containers and display size containers\r\n\t\t\t\t\t$('.service-order-detail-section').wrapAll(`
    `);\r\n\t\t\t\t\t$('.service-order-section-container').wrapAll(`
    `);\r\n\t\t\t\t\t$('.service-order-d').wrapAll('
    ');\r\n\t\r\n\t\t\t\t\t// Add class to back button section and remove old class\r\n\t\t\t\t\tbackBtnAddClass();\r\n\t\r\n\t\t\t\t\t// Move back button section into main section\r\n\t\t\t\t\tconst firstTable = $('.service-summary-table').first();\r\n\t\t\t\t\t$('.back-btn-section').insertBefore(firstTable);\r\n\t\r\n\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Service order details styling \r\n\t\t\t\tif(pagePath.includes('/ServiceOrderDetails/Appointments')) {\r\n\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('appointment-list');\r\n\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add classes/divs to hero text\r\n\t\t\t\t\tmyAccountWrapper();\r\n\t\t\t\t\theroWrapper();\r\n\t\t\t\t\tdisplaySizeWrap();\r\n\t\t\t\t\tarticleFullRmClass();\r\n\t\t\t\t\tmainSectionRmClass();\r\n\t\r\n\t\t\t\t\t// Add class to main section and remove old class\r\n\t\t\t\t\t$('.hero-section').siblings('.section').addClass('main-section');\r\n\t\r\n\t\t\t\t\t// Wrap main section in desiplay container\r\n\t\t\t\t\tmainSectionWrap('appointment-l');\r\n\t\t\t\t\t$('.appointment-l').wrapAll('
    ');\r\n\t\r\n\t\t\t\t\t$('.main-section .col.span_12_of_12').first().addClass('appointment-month-section');\r\n\t\t\t\t\t$('.appointment-month-section').removeClass('col span_12_of_12');\r\n\t\r\n\t\t\t\t\t// Edit back button section\r\n\t\t\t\t\tbackBtnAddClass();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Edit back button text\r\n\t\t\t\t\t$('.back-btn-section a').html(`Back to order details`);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Insert back button section before tabs section\r\n\t\t\t\t\t$('.back-btn-section').insertBefore('.appointment-month-section');\r\n\t\r\n\t\t\t\t\t// Remove class from table element\r\n\t\t\t\t\t$('table').removeClass('border');\r\n\t\t\t\t\t$('thead tr').removeClass('tint7');\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Premium stores styling \r\n\t\t\t\tif(pagePath.includes('/PremiumStores')) {\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('premium-stores');\r\n\t\r\n\t\t\t\t\t// Remove margin class from page\r\n\t\t\t\t\tfullColAltRmClass();\r\n\t\r\n\t\t\t\t\t// Add classes/divs to hero\r\n\t\t\t\t\t$('.storeHeader').addClass('hero-container');\r\n\t\t\t\t\theroWrapper();\r\n\t\t\t\t\tdisplaySizeWrap();\r\n\t\t\t\t\t$('.hero-container').removeClass('storeHeader CustomPages');\r\n\t\t\t\t\t$('.hero-container').removeAttr('style');\r\n\t\r\n\t\t\t\t\t// Edit store Image container\r\n\t\t\t\t\t$('.storeContainer').addClass('store-image-container');\r\n\t\t\t\t\t$('.store-image-container').removeClass('storeContainer image-scale-container');\r\n\t\r\n\t\t\t\t\t// Add class to tab navigation container\r\n\t\t\t\t\t$('#storeNavigation ul').addClass('tabs-container');\r\n\t\r\n\t\t\t\t\t// Add active class to selected page tab\r\n\t\t\t\t\t$('.tabs-container a').each(function(i, el) {\r\n\t\t\t\t\t\tif(i === 1){\r\n\t\t\t\t\t\t\t$(el).addClass('active');\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t});\r\n\t\r\n\t\t\t\t\t// Add class to store heading\r\n\t\t\t\t\t$('.wrapperStores h1').addClass('store-heading');\r\n\t\t\t\t\t$('.store-heading').addClass('heading-2');\r\n\t\r\n\t\t\t\t\t// Add class to store details section and remove old class\r\n\t\t\t\t\t$('.wrapperStores').addClass('store-details-container');\r\n\t\t\t\t\t$('.store-details-container').removeClass('wrapperStores');\r\n\t\r\n\t\t\t\t\t// Add class to store description section and remove old class\r\n\t\t\t\t\t$('.storesLeft').addClass('store-description-container');\r\n\t\t\t\t\t$('.store-description-container').removeClass('storesLeft');\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add class to store contact details section and remove old class\r\n\t\t\t\t\t$('.storesRight').addClass('store-contact-container');\r\n\t\t\t\t\t$('.store-contact-container').removeClass('storesRight tint3');\r\n\t\r\n\t\t\t\t\t// Add classes to Review, Care quality and Find us sections\r\n\t\t\t\t\t$('.threeColumns').each(function(i, el){\r\n\t\r\n\t\t\t\t\t\tif(i === 0){\r\n\t\t\t\t\t\t\t$(el).addClass('store-review-section');\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(i === 1){\r\n\t\t\t\t\t\t\t$(el).addClass('store-care-section');\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(i === 2){\r\n\t\t\t\t\t\t\t$(el).addClass('store-find-section');\r\n\t\t\t\t\t\t};\r\n\t\r\n\t\t\t\t\t});\r\n\t\r\n\t\t\t\t\t// Remove old class from Review, Care quality and Find us sections\r\n\t\t\t\t\t$('.store-review-section, .store-care-section, .store-find-section').removeClass('threeColumns');\r\n\t\r\n\t\t\t\t\t// Add class to store detail sections\r\n\t\t\t\t\t$('.store-description-container, .store-contact-container, .store-review-section, .store-care-section, .store-find-section').addClass('store-section');\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add class to store detail section headings\r\n\t\t\t\t\t$('.store-section h2').addClass('heading-3');\r\n\t\r\n\t\t\t\t\t// Add class to Store review container and remove old class\r\n\t\t\t\t\t$('.tint3.innercolumns').addClass('store-review-container');\r\n\t\t\t\t\t$('.store-review-container').removeClass('tint3 innercolumns');\r\n\t\r\n\t\t\t\t\t// Add class to write review button\r\n\t\t\t\t\t$('.userReviewBtn').addClass('blue-btn');\r\n\t\r\n\t\t\t\t\t// Move tabs navigation section in store description section\r\n\t\t\t\t\t$('#storeNavigation').insertBefore('.store-heading');\r\n\t\r\n\t\t\t\t\t// Wrap main section in desiplay container\r\n\t\t\t\t\t$('.store-details-container').wrapAll(`
    `);\r\n\t\t\t\t\t$('.premium-s').wrapAll('
    ');\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Store products styling \r\n\t\t\t\tif(pagePath.includes('/StoreProducts/Index/')) {\r\n\t\r\n\t\t\t\t\tvar storeUrl = pagePath;\r\n\t\t\t\t\tvar splitUrl = storeUrl.split('/s4s/StoreProducts/Index/');\r\n\t\t\t\t\tvar providerUrl = splitUrl[1];\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('store-products');\r\n\t\r\n\t\t\t\t\tfullColAltRmClass();\r\n\t\r\n\t\t\t\t\t// Add classes/divs to hero\r\n\t\t\t\t\t$('.storeHeader').addClass('hero-container hero-store-section');\r\n\t\t\t\t\theroWrapper();\r\n\t\t\t\t\tdisplaySizeWrap();\r\n\t\t\t\t\t$('.hero-container').removeClass('storeHeader CustomPages').removeAttr('style');\r\n\t\r\n\t\t\t\t\t// Edit store Image container\r\n\t\t\t\t\t$('.storeContainer').addClass('store-image-container');\r\n\t\t\t\t\t$('.store-image-container').removeClass('storeContainer image-scale-container');\r\n\t\r\n\t\t\t\t\t// Add class to store heading container and remove old Id\r\n\t\t\t\t\t$('#searchShopExcerpt').addClass('store-heading-container');\r\n\t\t\t\t\t$('.store-heading-container').removeAttr('id');\r\n\t\t\t\t\t$('.store-image-container').wrapAll('
    ').insertAfter('.store-image-container');\r\n\t\t\t\t\t$('.store-heading-container h1').addClass('store-heading heading-2');\r\n\t\r\n\t\t\t\t\t// Add class to searchbar section and remove old class\r\n\t\t\t\t\t$('.content-holderFilters').addClass('stores-searchbar-section');\r\n\t\t\t\t\t$('.stores-searchbar-section').removeClass('content-holderFilters');\r\n\t\t\t\t\t$('.stores-searchbar-section .searchForm').removeClass();\r\n\t\t\t\t\t$('#liquid-roundFilters').addClass('stores-searchbar-width');\r\n\t\r\n\t\t\t\t\t// Remove old id and classes from searchbar section\r\n\t\t\t\t\t$('#liquid-roundFilters').removeAttr('id');\r\n\t\t\t\t\t$('.topFilters').removeClass();\r\n\t\t\t\t\t$('.center-contentFilters').removeClass();\r\n\t\r\n\t\t\t\t\t// Remove label from searchbar section\r\n\t\t\t\t\t$('.stores-searchbar-section label').remove();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Remove classes from searchbar and add new class\r\n\t\t\t\t\t$('.stores-searchbar-section input').removeClass('search watermark').addClass('stores-searchbar');\r\n\t\r\n\t\t\t\t\t// Add class to searchbar container\r\n\t\t\t\t\t$('#searchForm').addClass('stores-searchbar-container');\r\n\t\r\n\t\t\t\t\t// Add class to search button\r\n\t\t\t\t\t$('.stores-searchbar-section a').addClass('stores-search-btn');\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Remove text from search button\r\n\t\t\t\t\t$('.stores-search-btn').html(``);\r\n\t\r\n\t\t\t\t\t$('.stores-searchbar').attr(\"defaultvalue\", \"I'm looking for...\")\r\n\t\r\n\t\t\t\t\t// Move searchbar section into hero section\r\n\t\t\t\t\t$('.stores-searchbar-section').insertAfter('.hero-store-container');\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add class to sort input container\r\n\t\t\t\t\t$('#content-holder form').addClass('sort-filter-container');\r\n\t\r\n\t\t\t\t\t// Wrap sort filter in container. Warp list section and pagination in container\r\n\t\t\t\t\t$('.sort-filter-container').wrap(`
    `);\r\n\t\t\t\t\t$('.store-main-section').wrapAll(`
    `)\r\n\t\r\n\t\t\t\t\t// Remove old classes from filter container\r\n\t\t\t\t\t$('.itemSort').removeClass();\r\n\t\r\n\t\t\t\t\t// Insert filters header to filters section\r\n\t\t\t\t\t$('.sort-filter-container').prepend(`

    Filters

    `);\r\n\t\r\n\t\t\t\t\t// Prepend filters toggle button to filters section\r\n\t\t\t\t\t$('.store-filters-section').prepend(\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t);\r\n\t\r\n\t\t\t\t\t// Toggles the filters section\r\n\t\t\t\t\t$('.js-filter-toggle-btn').on('click', function(){\r\n\t\t\t\t\t\t$('.store-filters-section form').slideToggle();\r\n\t\t\t\t\t});\r\n\t\r\n\t\t\t\t\t// Add class to list item section and remove old Id\r\n\t\t\t\t\t$('#itemList, .pagination-sort').addClass('list-item-section');\r\n\t\t\t\t\t$('.list-item-section').removeAttr('id');\r\n\t\r\n\t\t\t\t\t// Wrap list item section in contianer\r\n\t\t\t\t\t$('.list-item-section').wrapAll(`
    `);\r\n\t\r\n\t\t\t\t\t// Add class to list item\r\n\t\t\t\t\t$('.list-item-section .parent').addClass('list-item');\r\n\t\r\n\t\t\t\t\t// Add class to list item container\r\n\t\t\t\t\t$('.list-item a').addClass('list-item-container');\r\n\t\r\n\t\t\t\t\t// Add class to list item image container and remove old class\r\n\t\t\t\t\t$('.product-proportions').addClass('list-item-image-container');\r\n\t\t\t\t\t$('.list-item-image-container').removeClass('product-proportions');\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add class to list item image and remove old class\r\n\t\t\t\t\t$('.list-item-image-container img').addClass('list-item-image');\r\n\t\t\t\t\t$('.list-item-image').removeClass('product-proportions');\r\n\t\r\n\t\t\t\t\t// Add class to list item product name section and remove old class\r\n\t\t\t\t\t$('.itemBody').addClass('list-item-product-info-container');\r\n\t\t\t\t\t$('.list-item-product-container').removeClass('itemBody');\r\n\t\t\t\t\t$('.list-item-product-info-container h2').addClass('list-item-product-name');\r\n\t\r\n\t\t\t\t\t// Add class to item store name container\r\n\t\t\t\t\t$('.itemFooter').addClass('list-item-store-name-container');\r\n\t\t\t\t\t$('.list-item-store-name-container').removeClass('itemFooter tint5');\r\n\t\r\n\t\t\t\t\t// Wrap main section in display containers\r\n\t\t\t\t\t$('#content-holder').wrap(`
    `);\r\n\t\t\t\t\t$('.store-p').wrap(`
    `);\r\n\t\r\n\t\t\t\t\t// Prepend tab section above list section\r\n\t\t\t\t\t$('.store-list-item-section').prepend(\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t);\r\n\t\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Orders details styling (general)\r\n\t\t\t\tif(pagePath.includes('/OrdersDetails/Orders/') || pagePath.includes('/OrdersDetails/Invoices/') || pagePath.includes('/OrdersDetails/Appointments/')) {\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('orders');\r\n\t\r\n\t\t\t\t\t// Remove margin class from page\r\n\t\t\t\t\tfullColAltRmClass();\r\n\t\r\n\t\t\t\t\t// Add classes/divs to hero text\r\n\t\t\t\t\tmyAccountWrapper();\r\n\t\t\t\t\theroWrapper();\r\n\t\t\t\t\tdisplaySizeWrap();\r\n\t\r\n\t\t\t\t\t// Remove old classes from hero\r\n\t\t\t\t\t$('#myAccountExcerpt').removeClass();\r\n\r\n\t\t\t\t\t$('#tabs-holder').first().addClass('main-orders-section');\r\n\t\t\t\t\t$('.main-orders-section').removeAttr('id').removeClass('margin10');\r\n\r\n\t\t\t\t\t$('#tabs').removeClass();\r\n\t\t\t\t\t$('#tabs a img').remove();\r\n\r\n\t\t\t\t\t$('dl.summary.tint5.round').addClass('order-summary-container');\r\n\t\t\t\t\t$('.order-summary-container').removeClass('summary tint5 round').insertAfter('#tabs-holder');\r\n\t\r\n\t\t\t\t\t$('.top, .bottom').remove();\r\n\t\r\n\t\t\t\t\t$('.content-holder').first().addClass('main-section');\r\n\t\t\t\t\t$('.main-section .content-holder').removeClass('content-holder');\r\n\t\t\t\t\t\r\n\t\t\t\t\t$('.main-section #liquid-round').addClass('main-section-container').removeAttr('id');\r\n\t\t\t\t\t$('.main-section .center-content-no-top').removeClass();\r\n\t\t\t\t\t$('.main-section .center-content').removeClass();\r\n\t\t\t\t\t$('.main-section table').removeClass('noTabs');\r\n\t\r\n\t\t\t\t\t$('tr').removeClass('gridHeader account noTitle');\r\n\t\t\t\t\t$('table a').removeClass();\r\n\r\n\t\t\t\t\tmainSectionWrap('order-d');\r\n\t\t\t\t\t$('.order-d').wrapAll('
    ');\r\n\r\n\t\t\t\t\tbackBtnAddClass();\r\n\t\t\t\t\t\r\n\t\t\t\t\t$('.back-btn-section a').html(`Back to my orders`);\r\n\t\t\t\t\t$('.back-btn-section').insertBefore('#tabs-holder');\t\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Orders details styling (general)\r\n\t\t\t\tif(pagePath.includes('/OrdersAndInvoices/')) {\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('orders-and-invoices');\r\n\r\n\t\t\t\t\tfullColAltRmClass();\r\n\t\t\t\t\tadminWrapperAll();\r\n\t\r\n\t\t\t\t\t// Add class to searchbar section and remove old class\r\n\t\t\t\t\t$('.summary .section.mar-bot1').addClass('searchbar-section');\r\n\t\t\t\t\t$('.searchbar-section').removeClass('section mar-bot1').insertAfter('#administrationExcerpt');\r\n\r\n\t\t\t\t\t$('.js-search-container').addClass('searchbar-container');\r\n\t\t\t\t\t$('.searchbar-container').removeClass('border pad10 tint7 mar-top10px mar-left10px mar-right20px');\r\n\t\t\t\t\t$('.js-search-button').addClass('searchbar-btn-container')\r\n\t\t\t\t\t$('.js-search-button').html(``);\r\n\t\r\n\t\t\t\t\t$('.itemSort').each(function(i, el){\r\n\t\t\t\t\t\t$(el).addClass(`filter-input-item filter-input-item-${i}`);\r\n\t\t\t\t\t});\r\n\t\r\n\t\t\t\t\t// Add class to each date filter container\r\n\t\t\t\t\t$('.filter-input-item-1 label').each(function(i, el){\r\n\t\t\t\t\t\t$(el).addClass(`filter-date-container-${i}`);\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\t$('.filter-date-container-0 input').addClass('filter-date-picker-0');\r\n\t\t\t\t\t$('.filter-date-container-0 img').addClass('filter-date-picker-0');\r\n\t\t\t\t\t$('.filter-date-container-1 input').addClass('filter-date-picker-1');\r\n\t\t\t\t\t$('.filter-date-container-1 img').addClass('filter-date-picker-1');\r\n\t\t\t\t\t$('.filter-date-picker-0').wrapAll(`
    `);\r\n\t\t\t\t\t$('.filter-date-picker-1').wrapAll(`
    `);\r\n\t\t\t\t\t$('.filter-input-item').removeClass('itemSort tint3 orders chosen-width-250 provider-management-filter-box__item');\r\n\t\r\n\t\t\t\t\t$('.summary').addClass('filters-section');\r\n\t\t\t\t\t$('.filters-section').removeClass('summary tint5 round mar-right20px');\r\n\t\t\t\t\t$('.filterBox').addClass('filters-toggle-section');\r\n\t\t\t\t\t$('.filters-toggle-section').removeClass('filterBox provider-management-filter-box');\r\n\t\t\t\t\t$('.filters-section').prepend(\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t);\r\n\t\r\n\t\t\t\t\t$('.js-filter-toggle-btn').on('click', function(){\r\n\t\t\t\t\t\t$('.filters-toggle-section').slideToggle();\r\n\t\t\t\t\t});\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add class to main bottom section and remove old Id/class\r\n\t\t\t\t\t$('#tabs-holder').first().addClass('orders-invoices-section');\r\n\t\t\t\t\t$('.orders-invoices-section').removeAttr('id').removeClass('margin10');\r\n\t\r\n\t\t\t\t\t// Remove old div\r\n\t\t\t\t\t$('.top, .bottom').remove();\r\n\t\r\n\t\t\t\t\t// Add class to main bottom section and remove old class\r\n\t\t\t\t\t$('.content-holder').first().addClass('orders-list-section');\r\n\t\t\t\t\t$('.orders-list-section .content-holder').removeClass('content-holder');\r\n\t\t\t\t\t$('.orders-list-section #liquid-round').first().addClass('orders-list-container');\r\n\t\t\t\t\t$('.orders-list-section #liquid-round').removeAttr('id');\r\n\t\t\t\t\t$('.orders-list-section .center-content-no-top').removeClass();\r\n\t\t\t\t\t$('.orders-list-section .center-content').removeClass();\r\n\t\t\t\t\t$('.orders-list-section table').removeClass('noTabs');\r\n\t\r\n\t\t\t\t\t// Remove class from table header row\r\n\t\t\t\t\t$('tr').removeClass('gridHeader account noTitle');\r\n\t\t\t\t\t$('table a').removeClass();\r\n\t\t\t\t\t$('td a').parent().addClass('col-btn-container');\r\n\t\r\n\t\t\t\t\t// Add class to filters section and main section \r\n\t\t\t\t\t$('.filters-section, .orders-list-section').addClass('main-section-container');\r\n\t\r\n\t\t\t\t\t$('.main-section-container').wrapAll(`
    `);\r\n\t\r\n\t\t\t\t\t// Wrap main section in desiplay container\r\n\t\t\t\t\tmainSectionWrap('orders-i');\r\n\t\t\t\t\t$('.orders-i').wrapAll('
    ');\r\n\t\r\n\t\t\t\t\t// Edit back button section\r\n\t\t\t\t\t$('#actionButtons').addClass('action-btns-section');\r\n\t\t\t\t\t$('.action-btns-section').removeClass('actionButtons');\r\n\t\t\t\t\t$('.action-btns-section').removeAttr('id');\r\n\t\t\t\t\t$('.action-btns-section sc-export-button, .action-btns-section li').addClass('action-btns-container');\r\n\t\t\t\t\t$('.action-btns-section a').addClass('blue-btn');\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Insert back button section before tabs section\r\n\t\t\t\t\t$('.action-btns-section').insertBefore('#tabs-holder');\r\n\r\n\t\t\t\t\t// Add class to table container\r\n\t\t\t\t\t$('table').parent().addClass('table-container');\r\n\r\n\t\t\t\t\t// Add mobile table headers\r\n\t\t\t\t\tmobileTableLabels();\r\n\r\n\t\t\t\t\t// Remove the bulk action tickbox header\r\n\t\t\t\t\t$('.js-bulk-action-item').siblings('small').hide();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Schedule order details stlying (general)\r\n\t\t\t\tif(pagePath.includes('/ScheduleOrderDetails/')) {\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('schedule-order');\r\n\t\r\n\t\t\t\t\t// Remove margin class from page\r\n\t\t\t\t\tfullColAltRmClass();\r\n\t\r\n\t\t\t\t\t// Add classes/divs to hero text\r\n\t\t\t\t\tadminWrapperAll();\r\n\t\r\n\t\t\t\t\t// Add class to main bottom section and remove Id\r\n\t\t\t\t\t$('#tabs-holder').first().addClass('schedule-order-section');\r\n\t\t\t\t\t$('.schedule-order-section').removeAttr('id');\r\n\t\r\n\t\t\t\t\tliquidReset();\r\n\t\r\n\t\t\t\t\t// Remove class from tabs section\r\n\t\t\t\t\t$('#tabs').removeClass('Alt')\r\n\t\r\n\t\t\t\t\t// Add class to schedule order container\r\n\t\t\t\t\t$('.center-content-no-top').first().addClass('schedule-order-container');\r\n\t\t\t\t\t$('.schedule-order-container').removeClass('center-content-no-top');\r\n\t\r\n\t\t\t\t\t// Add class to order image container and remove old class\r\n\t\t\t\t\t$('.left.mar-top10px.pad20').addClass('order-image-container order-item');\r\n\t\t\t\t\t$('.order-image-container').removeClass('left mar-top10px pad20');\r\n\t\r\n\t\t\t\t\t// Add class to order item description container and remove old class\r\n\t\t\t\t\t$('#productRight').addClass('order-description-container order-item');\r\n\t\t\t\t\t$('.order-description-container').removeClass('pad20').removeAttr('id');\r\n\t\r\n\t\t\t\t\t// Wrap order image and description in container\r\n\t\t\t\t\t$('.order-item').wrapAll(`
    `);\r\n\t\r\n\t\t\t\t\t// Add class to order details table and remove old class\r\n\t\t\t\t\t$('.summary.tint5.round').addClass('details-table');\r\n\t\t\t\t\t$('.details-table').removeClass('summary tint5 round');\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add class to order details table headings\r\n\t\t\t\t\t$('.details-table dt').addClass('details-table-heading');\r\n\t\r\n\t\t\t\t\t// Add class to details grid table\r\n\t\t\t\t\t$('.pad20').first().addClass('details-grid-table');\r\n\t\t\t\t\t$('.details-grid-table').removeClass('pad20');\r\n\t\r\n\t\t\t\t\t// Remove old Id/class from details grid table section\r\n\t\t\t\t\t$('.details-grid-table #liquid-round').removeAttr('id');\r\n\t\t\t\t\t$('.details-grid-table .center-content-no-top').removeClass();\r\n\t\t\t\t\t$('.gridHeader').removeClass('gridHeader admin');\r\n\t\r\n\t\t\t\t\t// Add class to address section and remove old class\r\n\t\t\t\t\t$('.addressFooter').addClass('details-table address-section');\r\n\t\t\t\t\t$('.details-table').removeClass('addressFooter tint3 round');\r\n\t\t\t\t\t$('.details-table .addressLeft').removeClass();\r\n\t\r\n\t\t\t\t\t// Remove header from address section\r\n\t\t\t\t\t$('.details-table h2').remove();\r\n\t\r\n\t\t\t\t\t// Add class to show list button section and remove old class\r\n\t\t\t\t\t$('.actionButtons.inline').parent().addClass('show-list-btn-section');\r\n\t\t\t\t\t$('.show-list-btn-section').removeClass('pad20');\r\n\t\t\t\t\t$('.show-list-btn-section .actionButtons').removeClass();\r\n\t\t\t\t\t$('.show-list-btn-section li').addClass('show-list-btn-container');\r\n\t\t\t\t\t$('.show-list-btn-section a').addClass('blue-btn');\r\n\t\r\n\t\t\t\t\t// Remove class from notes section\r\n\t\t\t\t\t$('.notes-block').removeClass('blocks tint3 round');\r\n\t\r\n\t\t\t\t\t// Edit page button section\r\n\t\t\t\t\t$('.orangeButtons').addClass('page-btn-section');\r\n\t\t\t\t\t$('.page-btn-section').removeClass('orangeButtons payManually');\r\n\t\t\t\t\t$('.page-btn-section li').addClass('page-btn-container');\r\n\t\t\t\t\t$('.page-btn-section a').addClass('blue-btn');\r\n\t\r\n\t\t\t\t\t$('.form-btn.note-creation-block__form-button').addClass('blue-btn');\r\n\t\t\t\t\t$('.blue-btn').removeClass('form-btn note-creation-block__form-button');\r\n\t\t\t\t\r\n\t\t\t\t\t// Wrap main section in desiplay container\r\n\t\t\t\t\t$('.schedule-order-section').wrapAll(`
    `);\r\n\t\t\t\t\t$('.schedule-o').wrapAll('
    ');\r\n\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Schedule order main tab stlying (general)\r\n\t\t\t\tif(pagePath.includes('/ScheduleOrderDetails/Main')) {\r\n\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('schedule-order-main');\r\n\r\n\t\t\t\t\t// Add class to back button section and remove old class\r\n\t\t\t\t\t$('.contentWrapper .actionButtons.tabs').addClass('btn-section');\r\n\t\t\t\t\t$('.btn-section').removeClass('actionButtons tabs');\r\n\t\t\t\t\t$('.btn-section li').addClass('btn-container');\r\n\t\t\t\t\t$('.btn-section a').addClass('blue-btn');\r\n\r\n\t\t\t\r\n\t\t\t\t\t// Insert back button sectoin before tabs section\r\n\t\t\t\t\t$('.btn-section').insertBefore('#tabs-holder');\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t// Schedule order main tab stlying (general)\r\n\t\t\t\tif(pagePath.includes('/ScheduleOrderDetails/Appointments')) {\r\n\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('schedule-order-appointments');\r\n\r\n\t\t\t\t\tarticleFullRmClass();\r\n\t\t\t\t\tmainSectionRmClass();\r\n\r\n\t\t\t\t\t// Add class to main bottom section and remove old class\r\n\t\t\t\t\t$('.section').addClass('main-section');\r\n\r\n\t\t\t\t\t// Wrap main section in desiplay container\r\n\t\t\t\t\tmainSectionWrap('schedule-a');\r\n\t\t\t\t\t$('.schedule-a').wrapAll('
    ');\r\n\r\n\t\t\t\t\tbackBtnAddClass();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Insert back button sectoin before tabs section\r\n\t\t\t\t\t$('.btn-section').prependTo('.main-section');\r\n\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t// Purchase order details notes tab stlying\r\n\t\t\t\tif(pagePath.includes('/ScheduleOrderDetails/Notes')) {\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('schedule-order-notes');\r\n\r\n\t\t\t\t\tbackBtnAddClass();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add class to each back button container\r\n\t\t\t\t\t$('.btn-section').each(function(i, el){\r\n\t\t\t\t\t\t$(el).addClass(`btn-section-${i}`);\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\t// Edit text of back button\r\n\t\t\t\t\t$('.btn-section-0 a').html(`Back to orders and invoices`);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Insert back button sectoin before tabs section\r\n\t\t\t\t\t$('.btn-section-0').insertBefore('#tabs-holder');\r\n\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Invoice details stlying (general)\r\n\t\t\t\tif(pagePath.includes('/InvoiceDetails/')) {\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('provider-invoice-details');\r\n\t\r\n\t\t\t\t\t// Remove margin class from page\r\n\t\t\t\t\tfullColAltRmClass();\r\n\t\t\t\t\tadminWrapperAll();\r\n\t\r\n\t\t\t\t\t// Add class to main bottom section and remove Id\r\n\t\t\t\t\t$('#tabs-holder').first().addClass('provider-invoice-details-section');\r\n\t\t\t\t\t$('.provider-invoice-details-section').removeAttr('id');\r\n\t\r\n\t\t\t\t\tliquidReset();\r\n\t\r\n\t\t\t\t\t// Add class to invoice details section\r\n\t\t\t\t\t$('.center-content-no-top').first().addClass('invoice-details');\r\n\t\t\t\t\t$('.invoice-details').removeClass('center-content-no-top');\r\n\t\r\n\t\t\t\t\t// Add class to order details table and remove old class\r\n\t\t\t\t\t$('.summary.tint5.round').addClass('details-table');\r\n\t\t\t\t\t$('.details-table').removeClass('summary tint5 round');\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add class to order details table headings\r\n\t\t\t\t\t$('.details-table dt').addClass('details-table-heading');\r\n\t\r\n\t\t\t\t\t// Add class to details grid table\r\n\t\t\t\t\t$('.pad20').first().addClass('details-grid-table');\r\n\t\t\t\t\t$('.details-grid-table').removeClass('pad20');\r\n\t\r\n\t\t\t\t\t// Remove old Id/class from details grid table section\r\n\t\t\t\t\t$('.details-grid-table #liquid-round').removeAttr('id');\r\n\t\t\t\t\t$('.details-grid-table .center-content-no-top').removeClass();\r\n\t\t\t\t\t$('.gridHeader').removeClass('gridHeader admin');\r\n\t\r\n\t\t\t\t\t// Remove class from invoice details sections\r\n\t\t\t\t\t$('.invoice-details .pad-right').removeClass();\r\n\t\t\t\t\t$('.invoice-details .col.span_12_of_12').removeClass();\r\n\t\t\t\t\t$('.invoice-details .col.span_6_of_12').removeClass();\r\n\t\r\n\t\t\t\t\t// Remove class from recurring items header\r\n\t\t\t\t\t$('p.margin10').addClass('recurring-items-header');\r\n\t\t\t\t\t$('.recurring-items-header').removeClass('margin10');\r\n\t\r\n\t\t\t\t\t// Add class to show list button section and remove old class\r\n\t\t\t\t\t$('.actionButtons.inline').parent().addClass('show-list-btn-section');\r\n\t\t\t\t\t$('.show-list-btn-section').removeClass('pad20');\r\n\t\t\t\t\t$('.show-list-btn-section .actionButtons').removeClass();\r\n\t\t\t\t\t$('.show-list-btn-section li').addClass('show-list-btn-container');\r\n\t\t\t\t\t$('.show-list-btn-section a').addClass('blue-btn');\r\n\t\r\n\t\t\t\t\t// Add class to back button section and remove old class\r\n\t\t\t\t\t$('.actionButtons.tabs').first().addClass('back-btn-section');\r\n\t\t\t\t\t$('.back-btn-section').removeClass('actionButtons tabs');\r\n\t\t\t\t\t$('.back-btn-section li').addClass('back-btn-container');\r\n\t\t\t\t\t$('.back-btn-section a').addClass('blue-btn');\r\n\t\t\t\t\t$('.back-btn-section a').first().html(`Back to orders and invoices`);\r\n\r\n\t\t\t\t\t// Edit save and close button\r\n\t\t\t\t\t$('.note-creation-block__save-button').removeClass('actionButtons tabs');\r\n\t\t\t\t\t$('.note-creation-block__save-button a').addClass('blue-btn');\r\n\t\r\n\t\t\t\t\t// Insert back button sectoin before tabs section\r\n\t\t\t\t\t$('.back-btn-section').insertBefore('#tabs-holder');\r\n\t\r\n\t\t\t\t\t// Remove save button from back button section\r\n\t\t\t\t\t// $('.back-btn-section a.submit').remove();\r\n\t\r\n\t\t\t\t\t// Remove class from notes section\r\n\t\t\t\t\t$('.notes-block').removeClass('blocks tint3 round');\r\n\t\r\n\t\t\t\t\t// Edit page button section\r\n\t\t\t\t\t$('.orangeButtons').addClass('page-btn-section');\r\n\t\t\t\t\t$('.page-btn-section').removeClass('orangeButtons payManually');\r\n\t\t\t\t\t$('.page-btn-section li').addClass('page-btn-container');\r\n\t\t\t\t\t$('.page-btn-section a').addClass('blue-btn');\r\n\t\r\n\t\t\t\t\t$('.form-btn.note-creation-block__form-button').addClass('blue-btn');\r\n\t\t\t\t\t$('.blue-btn').removeClass('form-btn note-creation-block__form-button');\r\n\t\t\t\t\r\n\t\t\t\t\t// Wrap main section in desiplay container\r\n\t\t\t\t\t$('.provider-invoice-details-section').wrapAll(`
    `);\r\n\t\t\t\t\t$('.provider-invoice-d').wrapAll('
    ');\r\n\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Product order details stlying\r\n\t\t\t\tif(pagePath.includes('/ProductOrderDetails/Index/')) {\r\n\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('product-order');\r\n\t\r\n\t\t\t\t\t// Remove margin class from page\r\n\t\t\t\t\tfullColAltRmClass();\r\n\t\r\n\t\t\t\t\t// Add classes/divs to hero text\r\n\t\t\t\t\tmyAccountWrapper();\r\n\t\t\t\t\theroWrapper();\r\n\t\t\t\t\tdisplaySizeWrap();\r\n\t\r\n\t\t\t\t\t// Remove old classes from hero\r\n\t\t\t\t\t$('#myAccountExcerpt').removeClass();\r\n\t\r\n\t\t\t\t\t// Add class to main bottom section and remove old Id/class\r\n\t\t\t\t\t$('#tabs-holder').first().addClass('main-orders-section');\r\n\t\t\t\t\t$('.main-orders-section').removeAttr('id');\r\n\t\t\t\t\t$('.main-orders-section').removeClass('margin10');\r\n\t\r\n\t\t\t\t\t// Remove Id from tabs section\r\n\t\t\t\t\t$('#tabs').removeClass();\r\n\t\r\n\t\t\t\t\t// remove image from tab\r\n\t\t\t\t\t$('#tabs a img').remove();\r\n\t\r\n\t\t\t\t\t// Add class to order summary section and remove old class\r\n\t\t\t\t\t$('dl.summary.tint5.round').addClass('order-summary-container order-info-container');\r\n\t\t\t\t\t$('.order-summary-container').removeClass('summary tint5 round');\r\n\r\n\t\t\t\t\t// Add class to address section and remove old class\r\n\t\t\t\t\t$('.addressParent').addClass('order-address-section order-info-container');\r\n\t\t\t\t\t$('.order-address-section').removeClass('addressParent tint3 round');\r\n\t\t\t\t\t$('.addressLeft').removeClass();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add class to address section heading and inner containers\r\n\t\t\t\t\t$('.order-address-section h2').addClass('heading-3');\r\n\t\t\t\t\t$('.order-address-section div').first().addClass('invoice-address-container');\r\n\t\t\t\t\t$('.order-address-section div').last().addClass('delivery-address-container');\r\n\r\n\t\t\t\t\t// Move address section below summary section\r\n\t\t\t\t\t$('.order-address-section').insertAfter('.order-summary-container');\r\n\t\r\n\t\t\t\t\t// Move order summary section after tabs container\r\n\t\t\t\t\t$('.order-summary-container').insertAfter('#tabs-holder');\r\n\t\r\n\t\t\t\t\t// Remove old div\r\n\t\t\t\t\t$('.top, .bottom').remove();\r\n\t\r\n\t\t\t\t\t// Add class to main bottom section and remove old class\r\n\t\t\t\t\t$('.content-holder').first().addClass('main-section');\r\n\t\t\t\t\t$('.main-section .content-holder').removeClass('content-holder');\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Remove old Id/classes from main section\r\n\t\t\t\t\t$('.main-section #liquid-round').first().addClass('main-section-container');\r\n\t\t\t\t\t$('.main-section #liquid-round').removeAttr('id');\r\n\t\t\t\t\t$('.main-section .center-content-no-top').removeClass();\r\n\t\t\t\t\t$('.main-section .center-content').removeClass();\r\n\t\t\t\t\t$('.main-section table').removeClass('noTabs');\r\n\r\n\t\t\t\t\t// Add/remove class from table section\r\n\t\t\t\t\t$('.main-section-container .margin10').addClass('table-section');\r\n\t\t\t\t\t$('.table-section').removeClass('margin10');\r\n\t\t\t\t\t$('table').parent().addClass('table-container');\r\n\t\r\n\t\t\t\t\t// Remove class from table header row\r\n\t\t\t\t\t$('tr').removeClass('gridHeader account noTitle');\r\n\t\r\n\t\t\t\t\t// Remove class from table button\r\n\t\t\t\t\t$('table a').removeClass();\r\n\r\n\t\t\t\t\t// Add/remove class from cost table section\r\n\t\t\t\t\t$('.summary.right.tint3.round').addClass('order-cost-container order-info-container');\r\n\t\t\t\t\t$('.order-cost-container').removeClass('summary right tint3 round');\r\n\t\r\n\t\t\t\t\t// Wrap main section in desiplay container\r\n\t\t\t\t\tmainSectionWrap('order-d');\r\n\t\t\t\t\t$('.order-d').wrapAll('
    ');\r\n\t\r\n\t\t\t\t\t// Edit back button section\r\n\t\t\t\t\tbackBtnAddClass();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Edit back button text\r\n\t\t\t\t\t$('.back-btn-section a').html(`Back to my orders`);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Insert back button section before tabs section\r\n\t\t\t\t\t$('.back-btn-section').insertBefore('.order-summary-container');\r\n\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Purchase order details stlying (general)\r\n\t\t\t\tif(pagePath.includes('/PurchaseOrderDetails/')) {\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('purchase-order');\r\n\t\r\n\t\t\t\t\tfullColAltRmClass();\r\n\t\t\t\t\tadminWrapperAll();\r\n\r\n\t\t\t\t\t// Add class to main bottom section and remove Id\r\n\t\t\t\t\t$('#tabs-holder').first().addClass('purchase-order-section');\r\n\t\t\t\t\t$('.purchase-order-section').removeAttr('id');\r\n\t\r\n\t\t\t\t\tliquidReset();\r\n\t\r\n\t\t\t\t\t// Remove class from tabs section\r\n\t\t\t\t\t$('#tabs').removeClass('Alt');\r\n\t\t\t\t\t$('#tabs-holder').removeClass('margin10');\r\n\t\r\n\t\t\t\t\t// Add class to schedule order container\r\n\t\t\t\t\t$('.center-content-no-top').first().addClass('purchase-order-container');\r\n\t\t\t\t\t$('.purchase-order-container').removeClass('center-content-no-top');\r\n\t\r\n\t\t\t\t\t// Add class to order image container and remove old class\r\n\t\t\t\t\t$('.left.mar-top10px.pad20').addClass('order-image-container order-item');\r\n\t\t\t\t\t$('.order-image-container').removeClass('left mar-top10px pad20');\r\n\t\r\n\t\t\t\t\t// Add class to order item description container and remove old class\r\n\t\t\t\t\t$('#productRight').addClass('order-description-container order-item');\r\n\t\t\t\t\t$('.order-description-container').removeClass('pad20');\r\n\t\t\t\t\t$('.order-description-container').removeAttr('id');\r\n\t\r\n\t\t\t\t\t// Wrap order image and description in container\r\n\t\t\t\t\t$('.order-item').wrapAll(`
    `);\r\n\t\r\n\t\t\t\t\t// Add class to order details table and remove old class\r\n\t\t\t\t\t$('.summary.tint5.round').addClass('details-table');\r\n\t\t\t\t\t$('.summary.right.tint3.round').addClass('details-table');\r\n\t\t\t\t\t$('.details-table').removeClass('summary right tint5 tint3 round');\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add class to order details table headings\r\n\t\t\t\t\t$('.details-table dt').addClass('details-table-heading');\r\n\t\r\n\t\t\t\t\t// Add class to details grid table\r\n\t\t\t\t\t$('.provider-management-pi-container').addClass('details-grid-table');\r\n\t\t\t\t\t$('.details-grid-table').removeClass('content-holder margin10 provider-management-pi-container');\r\n\t\r\n\t\t\t\t\t// Remove old Id/class from details grid table section\r\n\t\t\t\t\t$('.details-grid-table #liquid-round').removeAttr('id');\r\n\t\t\t\t\t$('.details-grid-table .center-content-no-top').removeClass();\r\n\t\t\t\t\t$('.gridHeader').removeClass('gridHeader admin');\r\n\t\r\n\t\t\t\t\t// Add class to address section and remove old class\r\n\t\t\t\t\t$('.addressParent').addClass('details-table address-section');\r\n\t\t\t\t\t$('.details-table').removeClass('addressParent tint3 round');\r\n\t\t\t\t\t$('.details-table .addressLeft').removeClass();\r\n\t\r\n\t\t\t\t\t// Remove header from address section\r\n\t\t\t\t\t$('.details-table h2').remove();\r\n\t\r\n\t\t\t\t\t// Add class to show list button section and remove old class\r\n\t\t\t\t\t$('.actionButtons.inline').parent().addClass('show-list-btn-section');\r\n\t\t\t\t\t$('.show-list-btn-section').removeClass('pad20');\r\n\t\t\t\t\t$('.show-list-btn-section .actionButtons').removeClass();\r\n\t\t\t\t\t$('.show-list-btn-section li').addClass('show-list-btn-container');\r\n\t\t\t\t\t$('.show-list-btn-section a').addClass('blue-btn');\r\n\t\r\n\t\t\t\t\t// Remove class from notes section\r\n\t\t\t\t\t$('.notes-block').removeClass('blocks tint3 round');\r\n\t\r\n\t\t\t\t\t// Edit page button section\r\n\t\t\t\t\t$('.orangeButtons').addClass('page-btn-section');\r\n\t\t\t\t\t$('.page-btn-section').removeClass('orangeButtons payManually');\r\n\t\t\t\t\t$('.page-btn-section li').addClass('page-btn-container');\r\n\t\t\t\t\t$('.page-btn-section a').addClass('blue-btn');\r\n\t\r\n\t\t\t\t\t$('.form-btn.note-creation-block__form-button').addClass('blue-btn');\r\n\t\t\t\t\t$('.blue-btn').removeClass('form-btn note-creation-block__form-button');\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Wrap main section in desiplay container\r\n\t\t\t\t\t$('.purchase-order-section').wrapAll(`
    `);\r\n\t\t\t\t\t$('.schedule-o').wrapAll('
    ');\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Purchase order details main tab stlying\r\n\t\t\t\tif(pagePath.includes('/PurchaseOrderDetails/Main')) {\r\n\t\r\n\t\t\t\t\tbackBtnAddClass();\r\n\t\t\t\t\t\r\n\t\t\t\t\t$('.btn-section').insertBefore('#tabs-holder');\r\n\t\t\t\t\t$('.btn-section').last().remove();\r\n\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Purchase order details notes tab stlying\r\n\t\t\t\tif(pagePath.includes('/PurchaseOrderDetails/Notes')) {\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('purchase-order-notes');\r\n\r\n\t\t\t\t\tbackBtnAddClass();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add class to each back button container\r\n\t\t\t\t\t$('.btn-section').each(function(i, el){\r\n\t\t\t\t\t\t$(el).addClass(`btn-section-${i}`);\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\t// Edit text of back button\r\n\t\t\t\t\t$('.btn-section-0 a').html(`Back to orders and invoices`);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Insert back button sectoin before tabs section\r\n\t\t\t\t\t$('.btn-section-0').insertBefore('#tabs-holder');\r\n\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Timesheet list redirect\r\n\t\t\t\tif(pagePath === '/s4s/ProviderTimesheetAdministration'){\r\n\t\t\t\t\twindow.location.href = `/s4s/CustomPage/Index/${Urls.providerTimesheetsAdmin}`\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Create timesheet styling\r\n\t\t\t\tif(pagePath === '/s4s/ProviderTimesheetAdministration/Create'){\r\n\r\n\t\t\t\t\t// Add in Previous markup CORE-887\r\n\t\t\t\t\t$('.contentWrapper > div').prepend(\r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t\t\t

    Create timesheet

    \r\n\t\t\t\t\t\t\t\t\t\t

    \r\n\t\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t`\r\n\t\t\t\t\t);\r\n\r\n\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('create-timesheet');\r\n\t\r\n\t\t\t\t\t// Remove margin class from page\r\n\t\t\t\t\tfullColAltRmClass();\r\n\t\t\t\t\tadminExceprtRm();\r\n\t\r\n\t\t\t\t\twaitForElem(`sc-timesheet-details form`).then(() => {\r\n\r\n\t\t\t\t\t\tliquidReset();\r\n\t\t\r\n\t\t\t\t\t\t// Add class to main section div\r\n\t\t\t\t\t\t$('.form').addClass('main-section');\r\n\t\t\t\t\t\t$('.timesheet-participants-details__container').removeClass('timesheet-participants-details__container tint3 round');\r\n\t\t\t\t\t\t$('.form.main-section').css('margin', 'auto');\r\n\r\n\t\t\t\t\t\t// Remove hr\r\n\t\t\t\t\t\t$('hr').remove();\r\n\r\n\t\t\t\t\t\t// Edit close Timesheet button\r\n\t\t\t\t\t\t$('.actionButtons').addClass('close-btn-container');\r\n\t\t\t\t\t\t$('.close-btn-container').removeClass('actionButtons alt action_bar--left action_bar--medium');\r\n\t\t\t\t\t\t$('.close-btn-container button').hide();\r\n\r\n\t\t\t\t\t\t// Prepend label\r\n\t\t\t\t\t\t$('.js-select-pa__label').remove();\r\n\t\t\t\t\t\t$('.buyer-info__container').prepend(\r\n\t\t\t\t\t\t\t`

    Select an individual:

    `\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t// Listen for changes to DOM\r\n\t\t\t\t\tconst observerElement = observeCreationOfElement('sc-fill-form-app', timesheetLoaded);\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\tif(pagePath.includes('/FinanceManagementAdministration/ManualTransactionPayments')) { \r\n\t\t\t\t\t$('body').css('overflow-x', 'auto');\r\n\t\t\t\t\t$('.summary-page-layout').css('margin-right', '0');\r\n\r\n\t\t\t\t\t$('.table-wrapper').css('overflow-x', 'scroll');\r\n\r\n\t\t\t\t\t$(\".manual-transactions-payment__table\").draggable({ \r\n\t\t\t\t\t\tcursor: \"move\", \r\n\t\t\t\t\t\tcontainment: \"parent\",\r\n\t\t\t\t\t\tstop: function() {\r\n\t\t\t\t\t\t if(jQuery(\".manual-transactions-payment__table\").position().left < 1)\r\n\t\t\t\t\t\t\t jQuery(\".manual-transactions-payment__table\").css(\"left\", \"720px\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction timesheetLoaded() {\r\n\r\n\t\t\t\t\tconsole.log('timesheetLoaded()');\r\n\r\n\t\t\t\t\tcreateTimesheetFormAdjustDOM();\r\n\r\n\t\t\t\t\t// Listen for when the Date container comes on\r\n\t\t\t\t\tconst className = 'js-date-container';\r\n\t\t\t\t\tconst observer = observeCreationOfClass(className, node => {\r\n\t\t\t\t\t\t//console.log('Action performed on:', node);\r\n\t\t\t\t\t\t//console.log('observeCreationOfClass');\r\n\r\n\t\t\t\t\t\tcreateTimesheetFormAdjustDOM();\r\n\t\t\t\t\t\tobserver.disconnect();\r\n\r\n\t\t\t\t\t\t// Stop the Start date from being changed\r\n\t\t\t\t\t\t$('[data-integration-timesheet-integration-id=\"start_date\"]').addClass('readonlyOverlay');\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction getTimesheetCategoryEndpoint(individualId, categoryType, callback) {\r\n\t\t\t\t\t// Make a GET request using the Fetch API\r\n\t\t\t\t\tfetch('/s4s/api/Timesheet/Categories?supplierId=' + $.sc.authSettings.organisationId + '&individualId=' + individualId + '&categoryType=' + categoryType)\r\n\t\t\t\t\t.then(response => {\r\n\t\t\t\t\tif (!response.ok) {\r\n\t\t\t\t\t\tthrow new Error('Network response was not ok');\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn response.json();\r\n\t\t\t\t\t})\r\n\t\t\t\t\t.then(userData => {\r\n\t\t\t\t\t// Process the retrieved user data\r\n\t\t\t\t\tconsole.log('User Data:', userData);\r\n\t\t\t\t\tcallback(userData)\r\n\t\t\t\t\t})\r\n\t\t\t\t\t.catch(error => {\r\n\t\t\t\t\tconsole.error('Error:', error);\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction createTimesheetFormAdjustDOM() {\r\n\t\t\t\t\tremoveTimesheetsWrapping('', function(){\r\n\t\t\t\t\t\r\n\t\t\t\t\t\twaitForElem(`sc-fill-form-app .form-control--valid`).then(() => {\r\n\r\n\t\t\t\t\t\t\t// Remove class/Id\r\n\t\t\t\t\t\t\t$('.form-main-content').removeClass();\r\n\t\t\t\t\t\t\t$('.form-main__questions-container').removeClass();\r\n\r\n\t\t\t\t\t\t\tshowPTOMileageExpensesChecklists();\r\n\r\n\t\t\t\t\t\t\twaitForElem(`.question-type-search`).then(() => {\r\n\t\t\t\t\t\t\t\tshowFinishButtonAndNotes();\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t// Append Fake finish button\r\n\t\t\t\t\t\t\twaitForElem(`.form-mongo-search__answer`).then(() => {\r\n\t\t\t\t\t\t\t\t$('.js-mimic-finish').remove();\r\n\t\t\t\t\t\t\t\t$('.form-navigation-btns__container').append('')\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// CTA\r\n\t\t\t\t\t\t\t\t$('.js-mimic-finish').click(function(){\r\n\t\t\t\t\t\t\t\t\tvalidateTimesheet(function() {\r\n\t\t\t\t\t\t\t\t\t\tremoveTimesheetsWrapping('', function(){\r\n\t\t\t\t\t\t\t\t\t\t\t// Check on the Finish buton if it exists otherwise click on next\r\n\t\t\t\t\t\t\t\t\t\t\tif ($('.form-navigation-btns__btn_finish').length > 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t$('.form-navigation-btns__btn_finish').click();\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t$('.form-navigation-btns__btn_next').click();\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// Check what type of form\r\n\t\t\t\t\t\t\tif ($('.form-app').hasClass('monthly-timesheet')) {\r\n\r\n\t\t\t\t\t\t\t\t//console.log('Monthly timesheet')\r\n\t\t\t\t\t\t\t\trewrapElements('.js-services-date-container'); // Services\r\n\t\t\t\t\t\t\t\trewrapElements('.js-pto-date-container'); // PTO\r\n\t\t\t\t\t\t\t\trewrapElements('.js-sleep-date-container', 'single-field'); // Sleep\r\n\t\t\t\t\t\t\t\trewrapElements('.js-miles-date-container', 'single-field'); // Mileage\r\n\t\t\t\t\t\t\t\trewrapElements('.js-expenses-date-container', 'single-field'); // Expenses\r\n\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\trewrapElements('.question-type-label');\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t});\t\t\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction rewrapElements(selector, type) {\r\n\r\n\t\t\t\t\t// Get the start date\r\n\t\t\t\t\twaitForElem(`${selector}`).then(() => {\r\n\t\t\t\t\t\tconst startDate = $('[data-integration-timesheet-integration-id=\"start_date\"]').find('input').val();\r\n\t\t\t\t\t\tconsole.log('Start date is: ');\r\n\t\t\t\t\t\tconsole.log(startDate);\r\n\r\n\t\t\t\t\t\tsetTimeout(function(){\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tremoveTimesheetsWrapping(selector, function(){\r\n\t\t\t\t\t\t\t\t// Iterate over each '.question-type-label' element\r\n\t\t\t\t\t\t\t\t$(selector).each(function(i) {\r\n\t\t\t\t\t\t\t\t\t// Start with the current '.question-type-label'\r\n\t\t\t\t\t\t\t\t\tvar $start = $(this);\r\n\t\r\n\t\t\t\t\t\t\t\t\t// Add the next two siblings to the selection\r\n\t\t\t\t\t\t\t\t\tif (type === 'single-field') {\r\n\t\t\t\t\t\t\t\t\t\tvar $elementsToWrap = $start;\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tvar $elementsToWrap = $start.add($start.next()).add($start.next().next());\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t// Wrap these three elements with a new div\r\n\t\t\t\t\t\t\t\t\t$elementsToWrap.wrapAll(`
    `);\r\n\t\r\n\t\t\t\t\t\t\t\t\t// Append the start date into the container\r\n\t\t\t\t\t\t\t\t\tif ( startDate !== '') {\r\n\t\t\t\t\t\t\t\t\t\tvar givenDate = moment(startDate, \"DD/MM/YYYY\"); // Parse the given start date\r\n\t\t\t\t\t\t\t\t\t\tvar originalMonth = givenDate.month(); // Store the original month\r\n\t\r\n\t\t\t\t\t\t\t\t\t\tvar newDate = givenDate.clone().add(i, 'days'); // Clone the date and add 'i' days\r\n\t\t\t\t\t\t\t\t\t\tvar newMonth = newDate.month(); // Get the month of the new date\r\n\t\r\n\t\t\t\t\t\t\t\t\t\t// Adding the date to the box.\r\n\t\t\t\t\t\t\t\t\t\tif (type === 'single-field') {\r\n\t\t\t\t\t\t\t\t\t\t\t$(selector).closest('.date-and-time-wrapper.box-' + i).find('.js-small-date').remove();\r\n\t\t\t\t\t\t\t\t\t\t\t$(selector).closest('.date-and-time-wrapper.box-' + i).find('.question-type-text label').append('' + formatDate(newDate) + '');\r\n\t\t\t\t\t\t\t\t\t\t\t$(selector).closest('.date-and-time-wrapper.box-' + i).find('.question-type-singlecheckbox label').append('' + formatDate(newDate) + '');\r\n\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t$(selector).closest('.date-and-time-wrapper.box-' + i).find('.question-type-label p div .js-small-date').remove();\r\n\t\t\t\t\t\t\t\t\t\t\t$(selector).closest('.date-and-time-wrapper.box-' + i).find('.question-type-label p div').append('' + formatDate(newDate) + '');\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\r\n\t\t\t\t\t\t\t\t$(selector).closest('.date-and-time-wrapper').wrapAll('
    ');\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t}, 50);\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction validateTimesheet(callback) {\r\n\t\t\t\t\tconst contractedTime = $('.buyer-info__container > div:last-child > span:last-child').text();\r\n\t\t\t\t\tlet timeSheetTime = $('.form-calculation__question-value').text();\r\n\t\t\t\t\t// const parsedTotalTimeSheet = Math.ceil(parseFloat(timeSheetTime));\r\n\t\t\t\t\tconst parsedTotalTimeSheet = parseFloat(timeSheetTime).toFixed(2);\r\n\t\t\t\t\tconst parsedContractedTime = parseFloat(contractedTime);\r\n\r\n\t\t\t\t\t// console.log('parsedTotalTimeSheet is: ')\r\n\t\t\t\t\t// console.log(parsedTotalTimeSheet);\r\n\r\n\t\t\t\t\t// Check there is data first\r\n\t\t\t\t\tif ( parsedTotalTimeSheet === 0 || isNaN(parsedTotalTimeSheet)) {\r\n\r\n\t\t\t\t\t\tconst pto = $('[data-integration-timesheet-integration-id=\"holidays_amount\"] input').val();\r\n\t\t\t\t\t\tconst mileage = $('[data-integration-timesheet-integration-id=\"miles_amount\"] input').val();\r\n\t\t\t\t\t\tconst expenses = $('[data-integration-timesheet-integration-id=\"expenses_amount\"] input').val();\r\n\t\t\t\t\t\t// console.log('pto')\r\n\t\t\t\t\t\t// console.log(pto)\r\n\r\n\t\t\t\t\t\t// Guard clauses to prevent no values being sent\r\n\t\t\t\t\t\tif ( (mileage == 0 || mileage == undefined) \r\n\t\t\t\t\t\t\t&& (pto == 0 || pto == undefined) \r\n\t\t\t\t\t\t\t&& (expenses == 0 || expenses == undefined)\r\n\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t//alert(`Your timesheet is empty, please review your timesheet`)\r\n\t\t\t\t\t\t\tcreatePop('Please review', `

    Your timesheet is empty, please review before resubmitting.

    `, 50000)\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif ( parsedTotalTimeSheet > parsedContractedTime ) {\r\n\t\t\t\t\t\t//alert(`You cannot exceed your hours past your contracted time of ${contractedTime} hours`);\r\n\t\t\t\t\t\tcreatePop('Please review', `

    You cannot submit more than your contracted time of ${contractedTime} hours.

    `, 50000)\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t// // Check on the Finish buton if it exists otherwise click on next\r\n\t\t\t\t\t\t// if ($('.form-navigation-btns__btn_finish').length > 0) {\r\n\t\t\t\t\t\t// \t$('.form-navigation-btns__btn_finish').click();\r\n\t\t\t\t\t\t// } else {\r\n\t\t\t\t\t\t// \t$('.form-navigation-btns__btn_next').click();\r\n\t\t\t\t\t\t// }\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Validate hours input boxes\r\n\t\t\t\t\tconst mondayHours = $('[data-integration-timesheet-integration-id=\"monday_1_hours\"] input').val();\r\n\t\t\t\t\tconst tuesdayHours = $('[data-integration-timesheet-integration-id=\"tuesday_1_hours\"] input').val();\r\n\t\t\t\t\tconst wednesdayHours = $('[data-integration-timesheet-integration-id=\"wednesday_1_hours\"] input').val();\r\n\t\t\t\t\tconst thursdayHours = $('[data-integration-timesheet-integration-id=\"thursday_1_hours\"] input').val();\r\n\t\t\t\t\tconst fridayHours = $('[data-integration-timesheet-integration-id=\"friday_1_hours\"] input').val();\r\n\t\t\t\t\tconst saturdayHours = $('[data-integration-timesheet-integration-id=\"saturday_1_hours\"] input').val();\r\n\t\t\t\t\tconst sundayHours = $('[data-integration-timesheet-integration-id=\"sunday_1_hours\"] input').val();\r\n\r\n\t\t\t\t\tif ( \r\n\t\t\t\t\t\tmondayHours > 24 ||\r\n\t\t\t\t\t\ttuesdayHours > 24 ||\r\n\t\t\t\t\t\twednesdayHours > 24 ||\r\n\t\t\t\t\t\tthursdayHours > 24 ||\r\n\t\t\t\t\t\tfridayHours > 24 ||\r\n\t\t\t\t\t\tsaturdayHours > 24 ||\r\n\t\t\t\t\t\tsundayHours > 24\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tcreatePop('Please review', `

    Hours cannot exceed 24 hours

    `, 50000)\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Validate minutes input boxes\r\n\t\t\t\t\tconst mondayMinutes = $('[data-integration-timesheet-integration-id=\"monday_1_minutes\"] input').val();\r\n\t\t\t\t\tconst tuesdayMinutes = $('[data-integration-timesheet-integration-id=\"tuesday_1_minutes\"] input').val();\r\n\t\t\t\t\tconst wednesdayMinutes = $('[data-integration-timesheet-integration-id=\"wednesday_1_minutes\"] input').val();\r\n\t\t\t\t\tconst thursdayMinutes = $('[data-integration-timesheet-integration-id=\"thursday_1_minutes\"] input').val();\r\n\t\t\t\t\tconst fridayMinutes = $('[data-integration-timesheet-integration-id=\"friday_1_minutes\"] input').val();\r\n\t\t\t\t\tconst saturdayMinutes = $('[data-integration-timesheet-integration-id=\"saturday_1_minutes\"] input').val();\r\n\t\t\t\t\tconst sundayMinutes = $('[data-integration-timesheet-integration-id=\"sunday_1_minutes\"] input').val();\r\n\r\n\t\t\t\t\tif ( \r\n\t\t\t\t\t\tmondayMinutes > 59 ||\r\n\t\t\t\t\t\ttuesdayMinutes > 59 ||\r\n\t\t\t\t\t\twednesdayMinutes > 59 ||\r\n\t\t\t\t\t\tthursdayMinutes > 59 ||\r\n\t\t\t\t\t\tfridayMinutes > 59 ||\r\n\t\t\t\t\t\tsaturdayMinutes > 59 ||\r\n\t\t\t\t\t\tsundayMinutes > 59\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tcreatePop('Please review', `

    Minutes cannot exceed 59 minutes

    `, 50000)\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tcallback();\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction showFinishButtonAndNotes(){\r\n\t\t\t\t\t$('body').addClass('show-finish-btn');\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction showPTOMileageExpensesChecklists() {\r\n\r\n\t\t\t\t\tconst element = document.querySelector('sc-fill-form-app.js-api-component');\r\n\r\n\t\t\t\t\t// Get the 'pipe-values' attribute\r\n\t\t\t\t\tconst pipeValues = element.getAttribute('additional-data');\r\n\r\n\t\t\t\t\t// Decode HTML entities and parse JSON\r\n\t\t\t\t\tconst decodedJson = decodeURIComponent(pipeValues.replace(/"/g, '\"'));\r\n\t\t\t\t\tconst parsedValues = JSON.parse(decodedJson);\r\n\r\n\t\t\t\t\t// Extract the 'individualId' value\r\n\t\t\t\t\tconst individualId = parsedValues.individualId;\r\n\r\n\t\t\t\t\tlet isPTOAvailable;\r\n\t\t\t\t\tlet isMileageAvailable;\r\n\t\t\t\t\tlet isExpensesAvailable;\r\n\t\t\t\t\tlet isSleepInAvailable;\r\n\r\n\t\t\t\t\t$('body').removeClass('show-pto');\r\n\t\t\t\t\t$('body').removeClass('show-mileage');\r\n\t\t\t\t\t$('body').removeClass('show-expenses');\r\n\t\t\t\t\t$('body').removeClass('show-sleepin');\r\n\r\n\t\t\t\t\t// Get PTO data\r\n\t\t\t\t\tgetTimesheetCategoryEndpoint(individualId, '76536913-464b-4988-926b-c6d2c5f8d135', function(ptoData) {\r\n\t\t\t\t\t\tptoData.data.list.length === 0 ? isPTOAvailable = false : isPTOAvailable = true;\r\n\r\n\t\t\t\t\t\t// Get Mileage data\r\n\t\t\t\t\t\tgetTimesheetCategoryEndpoint(individualId, '80b13f90-11d4-44dc-a057-d0b379ad685f', function(mileageData) {\r\n\t\t\t\t\t\t\tmileageData.data.list.length === 0 ? isMileageAvailable = false : isMileageAvailable = true;\r\n\r\n\t\t\t\t\t\t\t// Get Expenses data\r\n\t\t\t\t\t\t\tgetTimesheetCategoryEndpoint(individualId, '24c3e86c-8fa1-49dd-98ea-8eecbadd8358', function(expensesData) {\r\n\t\t\t\t\t\t\t\texpensesData.data.list.length === 0 ? isExpensesAvailable = false : isExpensesAvailable = true;\r\n\r\n\t\t\t\t\t\t\t\t// Get Sleep in data\r\n\t\t\t\t\t\t\t\t// getTimesheetCategoryEndpoint(individualId, 'xxxxxx-xxxxxxxx-xxxxxxxx', function(expensesData) {\r\n\t\t\t\t\t\t\t\t// expensesData.data.list.length === 0 ? isSleepInAvailable = false : isSleepInAvailable = true;\r\n\r\n\t\t\t\t\t\t\t\t\tif ( isPTOAvailable === true ) {\r\n\t\t\t\t\t\t\t\t\t// \t$('[data-integration-timesheet-integration-id=\"pto\"]').show();\r\n\t\t\t\t\t\t\t\t\t\t$('body').addClass('show-pto');\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif ( isMileageAvailable === true ) {\r\n\t\t\t\t\t\t\t\t\t\t// $('[data-integration-timesheet-integration-id=\"mileage\"]').show();\r\n\t\t\t\t\t\t\t\t\t\t$('body').addClass('show-mileage');\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif ( isExpensesAvailable === true ) {\r\n\t\t\t\t\t\t\t\t\t\t// $('[data-integration-timesheet-integration-id=\"expenses\"]').show();\r\n\t\t\t\t\t\t\t\t\t\t$('body').addClass('show-expenses');\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif ( isSleepInAvailable === true ) {\r\n\t\t\t\t\t\t\t\t\t\t// $('[data-integration-timesheet-integration-id=\"support\"]').show();\r\n\t\t\t\t\t\t\t\t\t\t$('body').addClass('show-sleepin');\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t// });\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction formatDate(momentDate) {\r\n\t\t\t\t\t// Getting the day as a number\r\n\t\t\t\t\tconst day = momentDate.date();\r\n\t\t\t\t\t// Formatting the month name\r\n\t\t\t\t\tconst month = momentDate.format('MMMM');\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Function to determine the ordinal suffix\r\n\t\t\t\t\tfunction getOrdinal(n) {\r\n\t\t\t\t\t\tconst s = [\"th\", \"st\", \"nd\", \"rd\"],\r\n\t\t\t\t\t\t\t v = n % 100;\r\n\t\t\t\t\t\treturn n + (s[(v - 20) % 10] || s[v] || s[0]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\t// Combine day with its ordinal suffix and month name\r\n\t\t\t\t\treturn getOrdinal(day) + \" \" + month;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Create timesheet styling\r\n\t\t\t\tif(pagePath === '/s4s/MyOrders'){\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('my-orders');\r\n\t\r\n\t\t\t\t\tfullColAltRmClass();\r\n\t\t\t\t\tmyAccountWrapper();\r\n\t\t\t\t\theroWrapper();\r\n\t\t\t\t\tdisplaySizeWrap();\r\n\r\n\t\t\t\t\t$('tr').removeClass();\r\n\t\r\n\t\t\t\t\t$('.itemSort').addClass('show-orders-input');\r\n\t\t\t\t\t$('.show-orders-input').removeClass('itemSort tint3 orders');\r\n\t\t\t\t\t$('.show-orders-input').removeAttr('style');\r\n\t\r\n\t\t\t\t\t// Add class to main section items\r\n\t\t\t\t\t$('.show-orders-input, .my-orders-table, .pagination-sort').addClass('main-section-item');\r\n\t\r\n\t\t\t\t\t// Wrap main sections items in container\r\n\t\t\t\t\t$('.main-section-item').wrapAll(`
    `);\r\n\t\r\n\t\t\t\t\t// Wrap main section in desiplay container\r\n\t\t\t\t\tmainSectionWrap('orders-s');\r\n\t\t\t\t\t$('.orders-s').wrapAll('
    ');\r\n\t\r\n\t\t\t\t\t// Remove class from table buttons\r\n\t\t\t\t\t$('td a').removeClass();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Login page styling\r\n\t\t\t\tif(pagePath === '/s4s/Auth'){\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('Auth');\r\n\t\r\n\t\t\t\t\t$('.contentWrapper.loginBackground').removeClass('loginBackground');\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Catalogue products - Live page styling\r\n\t\t\t\tif(pagePath === '/s4s/CatalogueProductsAdministration/Live'){\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('catalogue-products-live');\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Fill form styling\r\n\t\t\t\tif(pagePath.includes('/FormDetails/FillForm') || pagePath.includes('/MyAssessments/Edit/')) {\r\n\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('fill-form');\r\n\t\r\n\t\t\t\t\tvar checkExistApp = setInterval(function() {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif ($('sc-fill-form-app .mainheader').length > 0) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tclearInterval(checkExistApp);\r\n\t\r\n\t\t\t\t\t\t\t// Edit hero section and add hero container\r\n\t\t\t\t\t\t\t$('.mainheader').addClass('hero-text-container');\r\n\t\t\t\t\t\t\t$('.hero-text-container').removeClass('mainheader tint3');\r\n\t\t\t\t\t\t\t$('.s4s-pathway-header-container').addClass('hero-container');\r\n\t\t\t\t\t\t\t$('.hero-container').removeClass('s4s-pathway-header-container');\r\n\t\t\t\t\t\t\theroWrapper();\r\n\t\t\t\t\t\t\tdisplaySizeWrap();\r\n\r\n\t\t\t\t\t\t\t$('.hero-section + .section').addClass('main-section');\r\n\t\t\t\t\t\t\t$('.main-section .pad20').addClass('main-section-container');\r\n\t\t\t\t\t\t\t$('.main-section-container').removeClass('pad20');\r\n\t\t\t\t\t\t\t$('.main-section-continer .section').removeClass('section');\r\n\t\t\t\t\t\t\t$('h3').parent('.fill-form-question-label').addClass('flex-label')\r\n\r\n\t\t\t\t\t\t\t// Edit buttons section\r\n\t\t\t\t\t\t\t$('.answer-btns button').removeClass();\r\n\t\t\t\t\t\t\t$('.answer-btns button').addClass('blue-btn');\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}, 200);\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\tif ( pageUrl.includes('/FormDetails/FillForm')) {\r\n\t\t\t\t\tvar checkExistC = setInterval(function() {\r\n\t\t\t\t\t\tif ($('.s4s-pathway-header-container').length > 0) {\r\n\t\t\t\t\r\n\t\t\t\t\t\t\tsetTimeout(function(){\t\r\n\t\t\t\t\t\t\t\t$('.answer-btns button').each(function(){\r\n\t\t\t\t\t\t\t\t\tif ( $(this).html() === 'Save' ) {\r\n\t\t\t\t\t\t\t\t\t\t$(this).hide();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\tclearInterval(checkExistC);\r\n\t\t\t\t\t\t\t}, 30);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}, 20);\r\n\t\t\t\r\n\t\t\t\t\tvar checkAppForm = setInterval(function() {\r\n\t\t\t\t\t\tif ($('sc-fill-form-app .form-header').length > 0) {\r\n\r\n\t\t\t\t\t\t\tclearInterval(checkAppForm);\r\n\t\t\t\t\t\t\t$('body').addClass('legacy-forms');\r\n\r\n\t\t\t\t\t\t\t// Edit hero section and add hero container\r\n\t\t\t\t\t\t\tif ( $('.hero-section').length === 0 ) {\r\n\t\t\t\t\t\t\t\t$('.form-header').addClass('hero-text-container');\r\n\t\t\t\t\t\t\t\t$('.hero-text-container').wrap('
    ');\r\n\t\t\t\t\t\t\t\theroWrapper();\r\n\t\t\t\t\t\t\t\tdisplaySizeWrap();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\ttableLabels();\r\n\r\n\t\t\t\t\t\t\t$('body').on('change', 'input', function(){\r\n\t\t\t\t\t\t\t\ttableLabels();\r\n\t\t\t\t\t\t\t})\r\n\r\n\t\t\t\t\t\t\t$('body').on('click', '.forms-add-button', function(){\r\n\t\t\t\t\t\t\t\ttableLabels();\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}, 200); // check every 100ms \r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\t// Purchase order details notes tab stlying\r\n\t\t\t\tif(pagePath.includes('/CatalogueLiveProductDetailsAdministration')) {\r\n\t\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('catalogue-products-edit');\r\n\r\n\t\t\t\t\t// Add class to checkbox/radio inputs\r\n\t\t\t\t\t$('input').each(function(i, el){\r\n\r\n\t\t\t\t\t\tif($(this).attr('type') === 'checkbox' || $(this).attr('type') === 'radio'){\r\n\t\t\t\t\t\t\t$(this).parent().addClass('inline-input');\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\t$('br').remove();\r\n\t\t\t\t\t$('#chageCategoryButtonId').removeClass();\r\n\t\t\t\t\t$('.tiny-mce-overlay').parent().addClass('product-description-container');\t\t\t\t\t\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\t// Work as page styling\r\n\t\t\t\tif ( pageUrl.includes('/WorkAs')) {\r\n\r\n\t\t\t\t\t// Added on 20th May 2024 for Lincolnshire as they are not using OE fully \r\n\t\t\t\t\t// CORE-950 update AR work as settings for Lincolnshire OE\r\n\t\t\t\t\tif ($.sc.authSettings.pplId !== null && $.sc.authSettings.organisationId !== '4904d5d2-482a-41a9-9153-9e360154daa2' && $.sc.authSettings.isAuthorizedRepresentative === true ) {\r\n\t\t\t\t\t\twindow.location.href = \"/s4s/CustomPage/Index/\" + Urls.myParticipants;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('work-as');\r\n\r\n\t\t\t\t\t// Remove old page container class\r\n\t\t\t\t\t$('.contentFixed').removeClass();\r\n\t\r\n\t\t\t\t\t// Add classes/divs to hero text\r\n\t\t\t\t\tmyAccountWrapper();\r\n\t\t\t\t\theroWrapper();\r\n\t\t\t\t\tdisplaySizeWrap();\r\n\t\t\t\t\t$('#content-holder').addClass('main-section');\r\n\t\t\t\t\tmainSectionWrap('work-a');\r\n\t\t\t\t\t$('.work-a').wrapAll('
    ');\r\n\r\n\t\t\t\t\t// Add/remove class to items list container\r\n\t\t\t\t\t$('#onlineStores').addClass('work-as-list-item-container');\r\n\t\t\t\t\t$('#onlineStores').removeClass('actAs');\r\n\t\t\t\t\t$('#onlineStores li').addClass('work-as-list-item');\r\n\t\t\t\t\t$('.store-proportions').hide();\r\n\t\t\t\t\t$('.work-as-list-item a').addClass('item-details-section');\r\n\t\t\t\t\t$('.noneheight').remove();\r\n\r\n\t\t\t\t\t$('.main-section .section').addClass('filter-section');\r\n\t\t\t\t\t$('.filter-section .border.pad10.mar-bot1').addClass('filter-container');\r\n\t\t\t\t\t$('.filter-container').removeClass('border pad10 mar-bot1 mar-right20px tint7');\r\n\t\t\t\t\t$('.filter-container').prepend(``);\r\n\t\t\t\t\t$('.js-predictive-search').addClass('searchbar');\r\n\t\t\t\t\t$('.js-search-button').addClass('blue-btn');\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\tif ( pageUrl.includes('/EventAdministrationDetails/EventDetails/')) {\r\n\r\n\t\t\t\t\t// Add class the page\r\n\t\t\t\t\t$('body').addClass('event-admin-details-event-details');\r\n\t\r\n\t\t\t\t\t$('.col.span_4_of_12.mar-top1').addClass('attributes-list-container');\r\n\t\t\t\t\t$('.attributes-list-container .section.mar-top1').addClass('attribute-item-container');\r\n\t\t\t\t}\r\n\r\n\t\t\t},\r\n\t\r\n\t\t\tbindUIActions: function() {\r\n\r\n\t\t\t\t// Clear the input box when search button is clicked on the Address component\r\n\t\t\t\t$('body').on('click', '.form-address-search__search-input button.search-button', function(){\r\n\t\t\t\t\tconsole.log('Button clicked');\r\n\t\t\t\r\n\t\t\t\t\tsetTimeout(function(){\r\n\t\t\t\t\t\t$(this).closest('.form-address-search__search-input').find(\"input[type=text]\").val(\"\");\r\n\t\t\t\t\t// $(\"input[type=text]\").val(\"\")\r\n\t\t\t\t\t}, 300);\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\t$('body').on('click', '.js-enrollments-btn', function(){\r\n\t\t\t\t\twindow.location.href = '/s4s/';\r\n\t\t\t\t});\r\n\t\r\n\t\t\t\t// Hack on field\r\n\t\t\t\t$('body').on('keyup', '.social-security input', function(){\r\n\t\t\t\t\r\n\t\t\t\t\tvar thisText = $(this).val();\r\n\t\t\t\t\tvar thisTarget = $(this).next().find('.js-social-security-input');\r\n\t\r\n\t\t\t\t\t$(thisTarget).text(thisText);\r\n\t\r\n\t\t\t\t});\r\n\t\r\n\t\r\n\t\t\t\t$('body').on({\r\n\t\t\t\t\tmouseenter: function () {\r\n\t\t\t\t\t\t$('.js-messages-toggle').removeClass('hide');\r\n\t\t\t\t\t},\r\n\t\t\t\t\tmouseleave: function () {\r\n\t\t\t\t\t\t$('.js-messages-toggle').addClass('hide');\r\n\t\t\t\t\t}\r\n\t\t\t\t}, '.js-messages-alert'); //pass the element as an argument to .on \r\n\t\r\n\r\n\t\t\t\t$('body').on('keydown', function(e) {\r\n\t\t\t\t\tvar keycode = (window.event) ? event.keyCode : e.keyCode;\r\n\t\t\t\t\t\tif (keycode == 9){\r\n\t\t\t\t\t// console.log('User is using tab key and could be keyboard only user');\r\n\t\t\t\t\t\t\t$('body').addClass('keyboardUser');\r\n\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\t// Retrigger DOM adjustments on paging\r\n\t\t\t\t$('body').on('click', '.form-navigation-btns__button', function(){\r\n\t\t\t\t\tif ( !$('body').hasClass('timesheet-details') && !$('body').hasClass('create-timesheet') ) {\r\n\t\t\t\t\t\tInit.adjustDom();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t});\r\n\t\t\t\t$('body').on('click', '.navigation-bar__item', function(){\r\n\t\t\t\t\tInit.adjustDom();\r\n\t\t\t\t});\r\n\t\r\n\t\t\t\t$('body').on('change', '.form-checkbox__option input', function(){\r\n\t\t\t\t\tscanForm();\r\n\t\t\t\t});\r\n\t\r\n\t\t\t\t$('body').on('change', '.form-radio__option input', function(){\r\n\t\t\t\t\tscanForm();\r\n\t\t\t\t});\r\n\t\r\n\t\r\n\t\t\t\t$('body').on('click', '.js-pcg-dropdown-menu .trigger, .js-pcg-dropdown-menu .group', function(e) {\r\n\t\t\t\t\te.preventDefault();\r\n\t\r\n\t\t\t\t\t$(this).parent().find('.panel').toggle();\r\n\t\t\t\t})\r\n\r\n\r\n\t\t\t\t// Scroll back to top button\r\n\t\t\t\tif($('.js-floating-back-to-top-button').length > 0){\r\n\r\n\t\t\t\t\t$('.js-floating-back-to-top-button').on({\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tclick: function(e){\r\n\t\t\t\t\t\t\tconsole.log('its lcikced')\r\n\t\t\t\t\t\t\te.preventDefault();\r\n\t\r\n\t\t\t\t\t\t\t$('.page-content-scroll').animate({\r\n\t\t\t\t\t\t\t\tscrollTop: $('.page-content-scroll').offset().top\r\n\t\t\t\t\t\t\t}, 800)\r\n\t\t\t\t\t\t},\r\n\t\r\n\t\t\t\t\t\tkeypress: function(e){\r\n\t\t\t\t\t\t\te.preventDefault();\r\n\t\r\n\t\t\t\t\t\t\tif(e.which == 13) {\r\n\t\t\t\t\t\t\t\t$('.page-content-scroll').animate({\r\n\t\t\t\t\t\t\t\t\tscrollTop: $('.page-content-scroll').offset().top\r\n\t\t\t\t\t\t\t\t}, 800);\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t},\r\n\t\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdocument.querySelector('.skip-to-content').addEventListener('click', function(e) {\r\n\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\tscrollToMain();\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\tdocument.querySelector('.skip-to-content').addEventListener('keypress', function(e) {\r\n\t\t\t\t\tif (e.key === 'Enter') {\r\n\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\tscrollToMain();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\r\n\t\t\t\t// Toggles the mobile navbar dropdown and the display behind the navbar scroll\r\n\t\t\t\t$('.js-header-nav_top-burger-img').on({\r\n\t\r\n\t\t\t\t\tclick: function(){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$('.header-nav_bottom-section').slideToggle();\r\n\t\t\t\t\t\t$('body').toggleClass('no-scroll');\r\n\t\t\t\r\n\t\t\t\t\t\tif($('.header-nav_top-burger-img').hasClass('fa-bars')){\r\n\t\t\t\t\t\t\t// Changes toggle icon from burger to X when clicked\r\n\t\t\t\t\t\t\t$('.header-nav_top-burger-img').removeClass('fa-bars');\r\n\t\t\t\t\t\t\t$('.header-nav_top-burger-img').addClass('fa-times');\r\n\t\t\t\t\r\n\t\t\t\t\t\t} else if($('.header-nav_top-burger-img').hasClass('fa-times')){\r\n\t\t\t\t\t\t\t// Changes toggle icon from X to burger when clicked\r\n\t\t\t\t\t\t\t$('.header-nav_top-burger-img').removeClass('fa-times');\r\n\t\t\t\t\t\t\t$('.header-nav_top-burger-img').addClass('fa-bars');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t},\r\n\t\t\t\r\n\t\t\t\t\tkeypress: function(e){\r\n\t\t\t\r\n\t\t\t\t\t\tif(e.which == 13) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$('.header-nav_bottom-section').slideToggle();\r\n\t\t\t\t\t\t\t$('body').toggleClass('no-scroll');\r\n\t\t\t\r\n\t\t\t\t\t\t\tif($('.header-nav_top-burger-img').hasClass('fa-bars')){\r\n\t\t\t\t\t\t\t\t// Changes toggle icon from burger to X when clicked\r\n\t\t\t\t\t\t\t\t$('.header-nav_top-burger-img').removeClass('fa-bars');\r\n\t\t\t\t\t\t\t\t$('.header-nav_top-burger-img').addClass('fa-times');\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t} else if($('.header-nav_top-burger-img').hasClass('fa-times')){\r\n\t\t\t\t\t\t\t\t// Changes toggle icon from X to burger when clicked\r\n\t\t\t\t\t\t\t\t$('.header-nav_top-burger-img').removeClass('fa-times');\r\n\t\t\t\t\t\t\t\t$('.header-nav_top-burger-img').addClass('fa-bars');\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t});\r\n\t\r\n\t\r\n\t\t\t\t\r\n\t\t\t},\r\n\t\r\n\t\t\tunload: function() {\r\n\t\r\n\t\t\t}\r\n\t\t};\r\n\t\tInit.init();\r\n\t});\r\n})();","export function userType(Urls){\r\n \r\n let thisUser = {\r\n readonly: false\r\n }\r\n const securityGuids = $.sc.authSettings.securityGroups;\r\n\r\n // Read only users who are not LA Org and SAG\r\n if (securityGuids.indexOf(Urls.readOnlySecurityGroup) > -1 && ($.sc.authSettings.isOriginalPrincipalOrgAdmin === false && $.sc.authSettings.isOriginalPrincipalSag === false) ) {\r\n thisUser.readonly = true;\r\n }\r\n\r\n return thisUser;\r\n\r\n}"],"names":["Urls","BaseURL","Domain","vwHomepage","vwHomepageTwo","vwProductOne","vwProductTwo","vwProductThree","vwMicroCommisioning","addProvider","myProviders","myPrograms","agencyEnrolments","myDesignatedRep","mySignatures","addDesignatedRep","myDetails","myParticipants","servicesAndRates","myDocuments","fundingDue","providerTimesheetsAdmin","personalTimesheets","mainDashboard","vwSagDash","searchShopEquipment","searchShopServices","searchMyCatalogue","searchShopStores","manualPayment","managePayee","paymentTransfer","providerDetails","manualTransactionPayments","vwLitePageId","vwLiteProductId","pplConnectPage","pa_vacancySearchPage","pplChat","reportsPage","vwliteCouncil","manualTransactionPaymentApproval","incrementsAttribute","allowSelfServicePayment","form_nwl","form_essex","form_croydon","form_bucks","form_powys","form_CheshireCCG","form_vwLite","form_lincs","form_hull","form_devon","form_dorset","form_wiltshire","form_kentMedway","attachments_appForm","virtualWalletLiteSecurityGroup","providerDetailsSecurityGroup","addPayeeSecurityGroup","approverSecurityGroup","readOnlySecurityGroup","manualTransactionSecurityGroups","mt_Payment","mt_Repeating","mt_attachment","permission","devonMarketplace","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","require","BUILD_ENV","tableLabels","console","log","checkExist","setInterval","$","length","clearInterval","addClass","remove","each","tableHeader","this","find","push","text","i","prepend","after","waitForElem","selector","Promise","resolve","document","querySelector","observer","MutationObserver","mutations","disconnect","observe","body","childList","subtree","createPop","heading","message","timeout","on","setTimeout","userInfo","thisUser","readonly","sc","authSettings","securityGroups","indexOf","isOriginalPrincipalOrgAdmin","isOriginalPrincipalSag","userType","pagePath","window","location","pathname","pageUrl","href","currentState","summaryParameters","displayHeroMenu","scrollToMain","mainElement","scrollTo","top","offsetTop","behavior","observeCreationOfElement","tagName","callback","targetNode","mutationsList","mutation","type","addedNodes","forEach","node","nodeName","toUpperCase","createBlueBtns","editButtons","element","removeClass","currentUser","getUserJson","createWorkAsLink","url","append","createNavItem","name","icon","scanForm","then","show","closest","next","parent","attr","mobileTableLabels","createMobileLinkwLite","link","createDesktopNavTabVwLite","createMobileLink","createMobileLinkInfo","createMobileNavTab","data","createDesktopNavTab","selected","createDesktopLink","createDesktopLinkInfo","selectedDesktopNavItem","navItem","noitem","bottomItemsContainer","j","tab","css","removeTimesheetsWrapping","querySelectorAll","unwrapElement","unwrapElementsByClassName","parentNode","firstChild","insertBefore","removeChild","className","login","AvailableModules","map","adminModule","cmsElement","directoriesElement","formsElement","adminElement","librariesElement","notificationsElement","bulkOrdersElement","providerManagementElement","intergrationElement","manageUserElement","financeManagerElement","fileImport","templatesElement","groupsElement","isSag","includes","hasClass","localStorage","setItem","e","stopPropagation","appendTo","pageHeading","html","item","removeAttr","siblings","toggleClass","children","el","urlPath","getItem","clickedItem","parents","width","Init","init","adjustDom","bindUIActions","PplRoleId","mods","toString","pplId","organisationId","isAuthorizedRepresentative","securityGuids","vwLiteDesktopDashboard_link","vwLiteMyStatementDashboard_link","vwLiteMyOrdersDashboard_link","vwLiteMarkeplaceDashboard_link","vwLiteMyDocumentsDashboard_link","vwLiteMyProfileDashboard_link","vwLiteMobileDashboard_link","vwLiteMobileMyStatementDashboard_link","vwLiteMobileMyOrdersDashboard_link","vwLiteMobileMarkeplaceDashboard_link","vwLiteMobileMyDocumentsDashboard_link","vwLiteMobileMyProfileDashboard_link","defaultBusinessView","isOrgAdmin","mobileProviderDetailsTab","desktopProviderDetailsTab","manual_transactions_link","desktopManual_transactions_link","permissions","pplRole","my_profile_link","calendar_link","support_package_link","messages_link","personal_assistants_link","my_typical_week_link","my_assessments_link","provider_management_administration_link","reports_link","bm_site_link","support_summary_link","dashboard_link","my_statement_link","marketplaces_link","enrolmentDashboard_link","my_payments_link","manage_payees_link","my_payment_transfers_link","funding_due_link","pplConnect_link","findPA_link","desktopMy_profile_link","desktopCalendar_link","desktopSupport_package_link","desktopMessages_link","desktopPersonal_assistants_link","desktopMy_typical_week_link","desktopMy_assessments_link","desktopProvider_management_administration_link","desktopReports_link","desktopBm_site_link","desktopSupport_summary_link","desktopDashboard_link","desktopMy_statement_link","desktopMarketplaces_link","desktopPPLConnect_link","desktopFindPA_link","desktopEnrolmentDashboard_link","desktopMy_payments_link","desktopManage_payees_link","desktopMy_payment_transfers_link","desktopFunding_due_link","myprofilehref","index","desktopSummaryTab","desktopSupportTab","desktopWalletTab","desktopDetailsTab","mobileSummaryTab","mobileSupportTab","mobileWalletTab","mobileDetailsTab","isIndividual","hasPba","isEmployee","event","click","bottomAttr","ind","elem","isVisible","elements","getElementsByClassName","style","getComputedStyle","display","visibility","opacity","offsetWidth","offsetHeight","isElementVisibleByClassName","$detailsDropdown","reference","laReferenceValue","displayLoggedInUser","virtualWalletNav","checkAuth","response","isCaseManager","Data","MyPrograms","CompletedCount","hide","fetch","json","headerHeight","height","outerHeight","loadingOverlay","getElementById","transition","hideLoadingScreen","displayHeight","innerHeight","section","bottomContainer","sectionHeight","heightAdjustment","heroWrapper","wrap","mainSectionWrap","wrapAll","myLifeWrapper","myAccountWrapper","adminWrapperAll","displaySizeWrap","adminExceprtRm","padAddClass","bottomRibbonRm","contentWrapFull","liquidRemoveId","articleFullRmClass","contentWrapRmDiv","fullColAltRmClass","liquidReset","mainSectionRmClass","backBtnAddClass","supportPackageCommonDOM","currentYear","Date","getFullYear","copyrightElement","displayYear","isNaN","innerHTML","updateCopyrightYear","sessionStorage","removeItem","scanSignUpForm","thisText","thisName","change","checkExistApp","replace","c","Math","random","checkExistC","first","before","scheduler","updateView","setCurrentView","getState","date","last","slideToggle","createTimesheetFormAdjustDOM","row","hoursDiv","hours","textContent","trim","minutesDiv","minutes","insertAfter","prependTo","showMore","toggle","clone","mainActionBtnSection","prodId","split","shift","supId","bcgId","getJSON","done","IsProduct","ProductId","htmlEl","initializeSubmitWithChangingActionLinks","firstTable","storeUrl","providerUrl","getTimesheetCategoryEndpoint","individualId","categoryType","ok","Error","userData","catch","error","pipeValues","getAttribute","decodedJson","decodeURIComponent","JSON","parse","isPTOAvailable","isMileageAvailable","isExpensesAvailable","ptoData","list","mileageData","expensesData","showPTOMileageExpensesChecklists","contractedTime","timeSheetTime","parsedTotalTimeSheet","parseFloat","toFixed","parsedContractedTime","pto","val","mileage","expenses","mondayHours","tuesdayHours","wednesdayHours","thursdayHours","fridayHours","saturdayHours","sundayHours","mondayMinutes","tuesdayMinutes","wednesdayMinutes","thursdayMinutes","fridayMinutes","saturdayMinutes","sundayMinutes","validateTimesheet","rewrapElements","startDate","$start","$elementsToWrap","add","givenDate","moment","newDate","month","formatDate","momentDate","day","format","n","s","v","getOrdinal","classList","contains","observeCreationOfClass","draggable","cursor","containment","stop","jQuery","position","left","checkAppForm","thisTarget","mouseenter","mouseleave","keyCode","preventDefault","animate","scrollTop","offset","keypress","which","addEventListener","unload"],"sourceRoot":""}