{"version":3,"sources":["webpack:///./node_modules/@logitravel/alex-comp-mar/components/header-banner-destination/client/js/config.js","webpack:///./node_modules/@logitravel/alex-comp-mar/components/header-banner-destination/client/js/index.js"],"names":["config","component","type","logo","css","resize","operation","suboperation","width","height","quality","logoConfig","module","exports","elementExist","imageClient","selector","configuration","instance","element","document","querySelector"],"mappings":";4EAOA,MAAMA,EAAS,CACXC,UAAW,0BACXC,KAAM,CACFC,KAAM,QAEVC,IAAK,CACDD,KAAM,mCAEVE,OAAQ,CACJC,UAAW,SACXC,aAAc,gBACdC,MAAO,KACPC,OAAQ,IACRC,QAAS,IAEbC,WAAY,CACRN,OAAQ,CACJG,MAAO,IACPC,OAAQ,KACRF,aAAc,MAK1BK,EAAOC,QAAU,IAAMb,G,qBC1BvB,MAAM,aAAEc,GAAiB,EAAQ,QAC3BC,EAAc,EAAQ,QACtBf,EAAS,EAAQ,QAMvBY,EAAOC,QAAU,SACbG,EAAW,2CACXC,EAAgB,IAEhB,GAAIH,EAAaE,GAAW,CACxB,MAAME,EAAW,GAQjB,OANAA,EAASC,QAAUC,SAASC,cAAcL,GAE1CE,EAASlB,OAAS,IAAKA,OAAaiB,GAEpCC,EAASf,KAAOY,EAAY,GAAGC,yCAAgDhB,IAASE,KAAKC,UAEtFe","file":"header-banner-destination.9e87dba5edad05d485d9.bundle.js","sourcesContent":["/* ==========================================================================\n HeaderBannerDestination > Client > Config\n ========================================================================== */\n\n/* Import modules */\n\n/* Config */\nconst config = {\n component: 'HeaderBannerDestination',\n type: {\n logo: 'logo'\n },\n css: {\n logo: 'header-banner-destination__logo'\n },\n resize: {\n operation: 'resize',\n suboperation: 'cropTopCenter',\n width: 1920,\n height: 350,\n quality: 97\n },\n logoConfig: {\n resize: {\n width: 265,\n height: 9999,\n suboperation: ''\n }\n }\n};\n\nmodule.exports = () => config;\n","/* ==========================================================================\n HeaderBannerDestination > Client\n ========================================================================== */\n\n/* Import modules */\nconst { elementExist } = require('@bluekiri/alexandria/helpers/domHelpers');\nconst imageClient = require('@bluekiri/alexandria-contrib-components/components/image/client/js');\nconst config = require('./config');\n\n/**\n * HeaderBannerDestination component\n * @param {selector} String selector for the component in the client side.\n */\nmodule.exports = function HeaderBannerDestination(\n selector = '[data-component=HeaderBannerDestination]',\n configuration = {}\n) {\n if (elementExist(selector)) {\n const instance = {};\n\n instance.element = document.querySelector(selector);\n\n instance.config = { ...config(), ...configuration };\n\n instance.logo = imageClient(`${selector} [data-component=\"Image\"][data-type=\"${config().type.logo}\"]`);\n\n return instance;\n }\n};\n"],"sourceRoot":""}