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O,CAAC;IAC5C,CAAC,CAAC;EACN;AACJ,CAAC;;;;;;;;;;ACzBY;;AAAA,SAAAC,QAAAC,CAAA,sCAAAD,OAAA,wBAAAE,MAAA,uBAAAA,MAAA,CAAAC,QAAA,aAAAF,CAAA,kBAAAA,CAAA,gBAAAA,CAAA,WAAAA,CAAA,yBAAAC,MAAA,IAAAD,CAAA,CAAAG,WAAA,KAAAF,MAAA,IAAAD,CAAA,KAAAC,MAAA,CAAAG,SAAA,qBAAAJ,CAAA,KAAAD,OAAA,CAAAC,CAAA;AAEbhB,MAAM,CAACC,OAAO,GAAG,UAAUoB,OAAO,EAAE;EAChC,IAAI,OAAOA,OAAO,KAAK,UAAU,EAAE;IAC/BA,OAAO,CAAC,CAAC;EACb,CAAC,MAAM,IAAIN,OAAA,CAAOM,OAAO,MAAK,QAAQ,EAAE;IACpCC,MAAM,CAACC,IAAI,CAACF,OAAO,CAAC,CAACG,OAAO,CAAC,UAAUC,GAAG,EAAE;MACxC,IAAI,OAAOJ,OAAO,CAACI,GAAG,CAAC,KAAK,UAAU,EAAE;QACpCJ,OAAO,CAACI,GAAG,CAAC,CAAC,CAAC;MAClB;IACJ,CAAC,CAAC;EACN;AACJ,CAAC;;;;;;UCZD;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;;;;;ACtBa;;AAEb,IAAIC,cAAc,GAAGC,mBAAO,CAAC,uFAAW,CAAC;AAEzCxB,CAAC,CAACyB,QAAQ,CAAC,CAACC,KAAK,CAAC,YAAY;EAC1BH,cAAc,CAACC,mBAAO,CAAC,oJAAuC,CAAC,CAAC;AACpE,CAAC,CAAC,C","sources":["webpack://app_custom_dietdirect/./cartridges/app_custom_dietdirect/cartridge/client/default/js/accordionsElement/accordionsElement.js","webpack://app_custom_dietdirect/./cartridges/app_storefront_base/cartridge/client/default/js/util.js","webpack://app_custom_dietdirect/webpack/bootstrap","webpack://app_custom_dietdirect/./cartridges/app_custom_dietdirect/cartridge/client/default/js/accordionsElement.js"],"sourcesContent":["'use strict';\n\n\nmodule.exports = {\n    accordion: function () {\n        if ($('.dynamic-accrdion-component').length > 0) {\n            $('body').on('click', '.dynamic-accrdion-component .accrdion-heading', function () {\n                if ($(this).hasClass('active')) {\n                    $(this).removeClass('active');\n                    $(this).closest('.card').find('.accordion-description').slideUp('slow');\n                } else {\n                    $(this).closest('#accordion').find('.accrdion-heading').removeClass('active');\n                    $(this).closest('#accordion').find('.accordion-description').slideUp('slow');\n                    $(this).addClass('active');\n                    $(this).closest('.card').find('.accordion-description').slideDown('slow');\n                }\n            });\n        }\n    },\n\n    liveChatOpen: function () {\n        $('body').on('click', '.live-chat-link', function () {\n            $('.helpButtonEnabled').trigger('click');\n        });\n    }\n};\n","'use strict';\n\nmodule.exports = function (include) {\n    if (typeof include === 'function') {\n        include();\n    } else if (typeof include === 'object') {\n        Object.keys(include).forEach(function (key) {\n            if (typeof include[key] === 'function') {\n                include[key]();\n            }\n        });\n    }\n};\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","'use strict';\n\nvar processInclude = require('base/util');\n\n$(document).ready(function () {\n    processInclude(require('./accordionsElement/accordionsElement'));\n});\n"],"names":["module","exports","accordion","$","length","on","hasClass","removeClass","closest","find","slideUp","addClass","slideDown","liveChatOpen","trigger","_typeof","o","Symbol","iterator","constructor","prototype","include","Object","keys","forEach","key","processInclude","require","document","ready"],"sourceRoot":""}