{"version":3,"file":"acfModules-halfWidthAlternator.chunk.0cb778285caf8d510a31.js","mappings":"kIAAe,SAASA,EAAoBC,GAEpCA,EAAiBC,SAAQ,SAACC,EAAQC,GAAU,IAAAC,EAC1B,IAAVD,EAKgE,WAArC,QAA3BC,EAAAJ,EAAiBG,EAAQ,UAAE,IAAAC,OAAA,EAA3BA,EAA6BC,QAAQC,wBACrCJ,EAAOG,QAAQC,uBAAyB,QAExCJ,EAAOG,QAAQC,uBAAyB,OAPxCJ,EAAOG,QAAQC,uBAAyB,OAShD,GAGR,C","sources":["webpack:///./html/wp-content/themes/ls/src/js/main/components/acfModules/halfWidthAlternator.ts"],"sourcesContent":["export default function halfWidthAlternator(halfWidthModules: NodeListOf) {\n const addDataAttributeToRightAlignedHalfWidthModules = () => {\n halfWidthModules.forEach((module, index) => {\n if (index === 0) {\n module.dataset.moduleContentAlignment = 'right';\n return;\n }\n\n if (halfWidthModules[index - 1]?.dataset.moduleContentAlignment !== 'right') {\n module.dataset.moduleContentAlignment = 'right';\n } else {\n module.dataset.moduleContentAlignment = 'left';\n }\n });\n };\n addDataAttributeToRightAlignedHalfWidthModules();\n}\n"],"names":["halfWidthAlternator","halfWidthModules","forEach","module","index","_halfWidthModules","dataset","moduleContentAlignment"],"sourceRoot":""}