{"version":3,"file":"js/vendor-4ffc241c8f6ab1ab0d22.js","mappings":"ujEAcAA,OAAOC,OAASC,IAChBF,OAAOE,EAAIA,IAMXA,IAAE,2BAA2BC,UAC7BD,IAAEE,UAAUC,GAAG,qCAAqC,WAClDH,IAAE,2BAA2BC,WAC7BG,EAAAA,EAAAA,MACAC,EAAQ,MACV,IAEAL,IAAEE,UAAUC,GAAG,2BAA2B,WACxCH,IAAE,2BAA2BC,QAAQ,UACvC,IAEAK,IAAAA,WAEAJ,SAASK,iBAAiB,mBAAmB,WAC3CC,IAAAA,mBACF,IAKAR,IAAEF,QAAQK,GAAG,yBAAyB,WACpCL,OAAOW,oBAAoBC,gBAAkB,WAC3C,IAAMC,EAAUX,IAAE,0DAClBW,EAAQC,OAAOC,YAAYF,EAE7B,CACF,IAGAb,OAAOU,MAAQA,IACfA,IAAAA,QACAM,IAAAA,O","sources":["webpack://bbc-maestro/./app/webpack/packs/vendor.ts"],"sourcesContent":["import $ from 'jquery';\nimport Rails from 'rails-ujs';\nimport Turbolinks from 'turbolinks';\nimport 'core-js/stable';\nimport 'regenerator-runtime/runtime';\nimport 'focus-visible';\nimport 'focus-within';\nimport 'intersection-observer';\nimport 'objectFitPolyfill';\nimport { withJS } from '@cookieshq/with-js/src/index';\nimport smoothscroll from 'smoothscroll-polyfill';\n// import '@nathanvda/cocoon';\n\n// window.vendorJquery = $;\nwindow.jQuery = $;\nwindow.$ = $;\n\n//TODO: Split into only what we need from bootstrap\nimport 'bootstrap/dist/js/bootstrap';\n\n// Enable Bootstrap's tooltip\n$('[data-toggle=\"tooltip\"]').tooltip();\n$(document).on('turbolinks:render turbolinks:load', () => {\n $('[data-toggle=\"tooltip\"]').tooltip();\n withJS();\n require('web-share-wrapper');\n});\n\n$(document).on('turbolinks:before-cache', () => {\n $('[data-toggle=\"tooltip\"]').tooltip('dispose');\n});\n\nsmoothscroll.polyfill();\n\ndocument.addEventListener(\"turbolinks:load\", () => {\n Rails.refreshCSRFTokens();\n});\n\n// The cookiebot banner traps focus within it, so\n// overriding that method with a function to correct\n// the order of the buttons\n$(window).on('CookiebotOnDialogInit', () => {\n window.CookieConsentDialog.trapBannerFocus = function() {\n const $button = $('#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowAll');\n $button.prev().insertAfter($button);\n return;\n };\n});\n\n// Give access to Rails to the files in `application.js`\nwindow.Rails = Rails;\nRails.start();\nTurbolinks.start();\n"],"names":["window","jQuery","$","tooltip","document","on","withJS","require","smoothscroll","addEventListener","Rails","CookieConsentDialog","trapBannerFocus","$button","prev","insertAfter","Turbolinks"],"sourceRoot":""}