{"version":3,"sources":["webpack:///./cartridges/app_accelerator_core/cartridge/client/default/js/components/dialog.js","webpack:///./cartridges/app_accelerator_core/cartridge/client/default/js/components/langEnablement.js","webpack:///./cartridges/app_accelerator_core/cartridge/client/default/js/modules/module.modal-trigger.js"],"names":["_openWithContent","params","content","html","modalInstance","originalCallback","options","objectAssign","tracking","callback","afterCreateCallback","modal","initModules","validation","_handleTracking","BornModal","open","targetModal","getModal","modalID","afterOpenCallback","url","progress","$","ajax","dataType","type","data","xhrFields","withCredentials","done","response","renderedTemplate","window","SFRA","SitePreferences","languageExclusionList","langEnablement","fail","xhr","textStatus","console","log","selector","document","querySelector","replace","getActiveModal","updateModal","newID","close","closeModal","getActive","trigger","els","addEventListenerList","evt","preventDefault","getAttribute","trackEvent","trackObject","asyncURL","Urls","GTMVirtualView","asyncParams","nameOfPopin","modalName","modules","init","langEnablementInit","elementsWithReplacement","querySelectorAll","forEach","call","elementWithReplacement","siblingTextNode","nextSibling","nodeType","Node","TEXT_NODE","textContent","trim","spanElement","createElement","parentNode","insertBefore","appendChild","allElements","getElementsByTagName","wordsAndPhrasesToUpperCaseString","wordsAndPhrasesToUpperCase","JSON","parse","element","computedStyle","getComputedStyle","getPropertyValue","hasChildNodes","innermostChild","firstChild","word","regex","RegExp","concat","toLocaleUpperCase","ModalTrigger","_classCallCheck","callbackOnElements","elements","setupTriggers","bind","_createClass","key","value","currentTrigger","triggerData","auto","hasURLParameter","triggerHandler","isNaN","setTimeout","afterCloseFocusEl","addEventListener","setAttribute","removeAttribute","dynamicURL","href","dialog"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;;AAE8C;AACS;AACN;AACsB;AAChC;AACY;AACV;;AAEzC;AACA;AACA;AACA,SAASA,gBAAgBA,CAACC,MAAM,EAAE;EAC9B,IAAIC,OAAO,GAAGD,MAAM,CA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AC,UAAU,CAAC,IAAIwD,cAAc,CAACD,KAAK,IAAIE,WAAW,CAAC9F,GAAG;MAC/H;MAEA0G,uDAAW,CAACZ,WAAW,CAAC;IAC5B;EAAC;AAAA","file":"module-modal-trigger.js","sourcesContent":["/**\n * Wrapper for Born Modal.\n * Provides ease of usage for modals as well as some default fallbacks.\n */\n\nimport BornModal from '@borngroup/born-modal';\nimport {objectAssign} from '@borngroup/born-utilities';\nimport * as validation from './customValidation';\nimport {initModules, addEventListenerList} from '../helpers/utilities';\nimport * as progress from './progress';\nimport * as langEnablement from './langEnablement';\nimport modules from '../helpers/modules';\n\n/**\n * @description populate the dialog with html content, then open it\n **/\nfunction _openWithContent(params) {\n let content = params.content || params.html,\n modalInstance;\n\n if (content) {\n let originalCallback;\n\n params.options = objectAssign({}, params.options);\n params.tracking = objectAssign({}, params.tracking);\n params.options.content = content;\n\n originalCallback = params.callback || params.options.afterCreateCallback;\n\n params.options.afterCreateCallback = function(modal) {\n if (typeof originalCallback === 'function') {\n originalCallback(modal);\n }\n\n initModules(modal);\n validation.init();\n\n _handleTracking(modal, params);\n };\n\n modalInstance = new BornModal(params.options);\n\n delete params.options.afterCreateCallback;\n\n return modalInstance;\n }\n}\n\n/**\n * @description Replace the content of current dialog\n * @param {object} params\n * @param {string} params.url - If the url property is provided, an ajax call is performed to get the content to replace\n * @param {string} params.html - If no url property is provided, use html provided to replace\n */\nexport function open(params) {\n let targetModal;\n\n params.options = params.options || {};\n\n targetModal = BornModal.getModal(params.options.modalID);\n\n //Avoid making unnecessary requests if modal was already loaded once.\n if (targetModal) {\n //Makes sure the afterOpenCallback is taken from the object every time, in case the values change.\n targetModal.modal.afterOpenCallback = params.options.afterOpenCallback || function() {\n return false;\n };\n\n targetModal.modal.open();\n } else {\n if (params.url) {\n progress.showLoader();\n\n $.ajax({\n dataType: params.type || 'json',\n url: params.url,\n data: params.data,\n xhrFields: {\n withCredentials: true\n }\n })\n .done(function(response) {\n progress.hideLoader();\n\n params.content = typeof response === 'string' ? response : (response.renderedTemplate || response.content);\n\n _openWithContent(params);\n if (window.SFRA.SitePreferences.languageExclusionList) {\n langEnablement.langEnablementInit();\n }\n })\n .fail(function(xhr, textStatus) {\n // failed\n if (textStatus === 'parsererror') {\n console.log('Bad response type. Check if your `dataType` request matches the response type.');\n }\n })\n } else if (params.html) {\n _openWithContent(params);\n } else if (params.selector) {\n params.content = document.querySelector(params.selector);\n _openWithContent(params);\n }\n }\n}\n\nexport function replace(options) {\n var modal = options.modalID ? BornModal.getModal(options.modalID) : BornModal.getActiveModal();\n\n BornModal.updateModal(modal, options.content, options.newID);\n}\n\n/**\n * @function\n * @description Closes the dialog\n */\nexport function close() {\n BornModal.closeModal();\n}\n\nexport function getActive() {\n return BornModal.getActiveModal();\n}\n\n/**\n * Returns the matched Modal element.\n * @param {[type]} modalID [description]\n * @return {[type]} [description]\n */\nexport function getModal(modalID) {\n return BornModal.getModal(modalID);\n}\n\nexport function trigger(els, params) {\n addEventListenerList(els, 'click', function(evt) {\n evt.preventDefault();\n\n if (!params.url && !params.html && !params.selector) {\n params.selector = this.getAttribute('href');\n }\n\n open(params);\n });\n}\n\nfunction _handleTracking(modal, params) {\n let trackEvent = params.tracking.trackEvent || 'virtualPageview',\n trackObject = trackEvent === 'virtualPageview' ? {\n asyncURL: window.SFRA.Urls.GTMVirtualView,\n asyncParams: {\n nameOfPopin: params.tracking.modalName || params.options.modalID\n }\n } : params.tracking.trackObject;\n\n modules.tracking.init(null, {trackEvent, trackObject});\n}\n","export function langEnablementInit() {\n if (window.SFRA.SitePreferences.languageExclusionList) {\n let elementsWithReplacement = document.querySelectorAll('.font-family--cartier-logos');\n [].forEach.call(elementsWithReplacement, function(elementWithReplacement) {\n var siblingTextNode = elementWithReplacement.nextSibling;\n if (siblingTextNode.nodeType == Node.TEXT_NODE && siblingTextNode.textContent.trim() !== '') {\n let spanElement = document.createElement('span');\n siblingTextNode.parentNode.insertBefore(spanElement, siblingTextNode);\n spanElement.appendChild(siblingTextNode);\n }\n });\n\n var allElements = document.getElementsByTagName('*');\n const wordsAndPhrasesToUpperCaseString = window.SFRA.SitePreferences.languageExclusionList,\n wordsAndPhrasesToUpperCase = JSON.parse(wordsAndPhrasesToUpperCaseString);\n\n [].forEach.call(allElements, function(element) {\n var computedStyle = window.getComputedStyle(element);\n if (computedStyle.getPropertyValue('text-transform') === 'uppercase') {\n if (element && element.hasChildNodes()) {\n let innermostChild = element;\n\n while (innermostChild.hasChildNodes()) {\n innermostChild = innermostChild.firstChild;\n }\n\n if (innermostChild.nodeType === Node.TEXT_NODE) {\n let textContent = innermostChild.textContent;\n\n // Replace words and phrases with their uppercase versions\n wordsAndPhrasesToUpperCase.forEach(word => {\n const regex = new RegExp(`\\\\b${word}\\\\b`, 'gi'); // Use word boundaries and case-insensitive matching\n textContent = textContent.replace(regex, word.toLocaleUpperCase());\n });\n\n innermostChild.textContent = textContent;\n }\n }\n }\n });\n }\n}\n","import * as dialog from '../components/dialog';\nimport {callbackOnElements, hasURLParameter} from '@borngroup/born-utilities';\n\n/**\n * Very simple script to open a modal when clicking on an element with the \"data-modal-trigger\" attribute.\n * The \"data-modal-trigger\" attribute contains all settings dialog.js and born-modal support.\n */\nexport default class ModalTrigger {\n constructor(options) {\n callbackOnElements(options.elements, this.setupTriggers.bind(this));\n }\n\n setupTriggers(currentTrigger) {\n let triggerData = JSON.parse(currentTrigger.getAttribute('data-modal-trigger'));\n\n triggerData.options = triggerData.options || {};\n\n if (triggerData.options.auto) {\n if (typeof triggerData.options.auto === 'string' && hasURLParameter(triggerData.options.auto)) {\n this.triggerHandler(currentTrigger, triggerData);\n } else if (!isNaN(triggerData.options.auto)) {\n window.setTimeout(this.triggerHandler.bind(this, currentTrigger, triggerData), triggerData.options.auto);\n } else {\n this.triggerHandler(currentTrigger, triggerData);\n }\n }\n\n triggerData.options.afterCloseFocusEl = currentTrigger;\n\n currentTrigger.addEventListener('click', this.triggerHandler.bind(this, currentTrigger, triggerData));\n\n //Prevents redirection done through the tracking implementaion.\n currentTrigger.setAttribute('data-disable-redirect', '');\n\n //Avoid re-attaching listeners.\n currentTrigger.removeAttribute('data-modal-trigger');\n }\n\n triggerHandler(currentTrigger, triggerData, evt) {\n if (evt) {\n evt.preventDefault();\n }\n\n //If the `dynamicURL` flag is set, attempt to get the URL from the currentTrigger itself.\n if (triggerData.dynamicURL) {\n triggerData.url = currentTrigger.href || currentTrigger.getAttribute('data-url') || currentTrigger.value || triggerData.url;\n }\n\n dialog.open(triggerData);\n }\n}\n"],"sourceRoot":""}