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EAASA,EAAG8B,WAC9HC,MAAiJ,QAAxIL,EAAoF,QAA9EzB,EAAK0B,aAAyC,EAASA,EAAQnC,iBAA8B,IAAPS,OAAgB,EAASA,EAAG6B,kBAA+B,IAAPJ,OAAgB,EAASA,EAAG9B,QAAsB,YAAZ,WAEnM,OAAO,gBAAoB,IAASoC,OAAOC,OAAO,CAAC,EAAGJ,GAAa,C","sources":["webpack:///./assets/stone/src/components/details/Details.tsx","webpack:///./assets/stone/src/components/listing/RailDetails.tsx"],"sourcesContent":["import React, { useMemo } from 'react';\nimport ReactHtmlParser from 'react-html-parser';\nimport Accordion from '@common/ui/accordion/Accordion';\nimport AccordionItem from '@common/ui/accordion/AccordionItem';\nimport Image from '@stone/ui/image/Image';\nconst Details = (props) => {\n const _accordion = useMemo(() => (typeof props.accordion === 'string' ? JSON.parse(props.accordion) : props.accordion), [props.accordion]);\n const isSingle = useMemo(() => (_accordion === null || _accordion === void 0 ? void 0 : _accordion.length) == 1, [_accordion]);\n const renderAccordionTitle = (title, index) => (React.createElement(\"div\", { className: \"row\" },\n React.createElement(\"div\", { className: \"col-lg-12 offset-lg-12\" },\n React.createElement(\"h3\", { className: \"text-left font__cta\" },\n props.showCounter ? React.createElement(\"span\", { \"aria-hidden\": \"true\" }, index.toString().padStart(2, '0')) : null,\n \" \",\n title))));\n const renderAccordionContent = (content) => (React.createElement(\"div\", { className: \"row \" },\n React.createElement(\"div\", { className: `${isSingle ? 'col-lg-8 col-xxl-6' : 'col-lg-12'} offset-lg-12` },\n React.createElement(\"div\", { className: \"component-details__content\" }, ReactHtmlParser(content)))));\n const renderAccordion = () => (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"col-24 col-lg-12 component-details__title--wrapper\" },\n React.createElement(\"h2\", { className: \"component-details__title\" }, props.title)),\n React.createElement(\"div\", { className: \"col-24\" },\n React.createElement(Accordion, null, _accordion.length &&\n _accordion.map((item, i) => {\n var _a, _b;\n return (React.createElement(AccordionItem, { isTitleMarkup: true, title: renderAccordionTitle(item.title, i + 1), isInitialOpen: i === 0, key: item.ID, accordionId: item.title + item.ID },\n React.createElement(\"div\", { className: \"row component-details__images\" },\n React.createElement(\"div\", { className: \"col-lg-12\" },\n React.createElement(Image, { src: item.first_image.path, srcMobile: (_a = item.first_imageMobile) === null || _a === void 0 ? void 0 : _a.path, alt: item.first_imageAlt })),\n React.createElement(\"div\", { className: \"col-lg-12\" },\n React.createElement(Image, { src: item.second_image.path, srcMobile: (_b = item.second_imageMobile) === null || _b === void 0 ? void 0 : _b.path, alt: item.second_imageAlt }))),\n renderAccordionContent(item.content)));\n })))));\n const renderSingle = () => {\n var _a, _b;\n const item = _accordion[0];\n return (React.createElement(\"div\", { className: \"col-24\" },\n React.createElement(\"div\", { className: \"row component-details__images single\" },\n React.createElement(\"div\", { className: \"col-lg-12\" },\n React.createElement(Image, { src: item.first_image.path, srcMobile: (_a = item.first_imageMobile) === null || _a === void 0 ? void 0 : _a.path, alt: item.first_imageAlt })),\n React.createElement(\"div\", { className: \"col-lg-12\" },\n React.createElement(Image, { src: item.second_image.path, srcMobile: (_b = item.second_imageMobile) === null || _b === void 0 ? void 0 : _b.path, alt: item.second_imageAlt }))),\n React.createElement(\"div\", { className: \"col-24 col-lg-12 offset-lg-12 component-details__title--wrapper single\" },\n React.createElement(\"h2\", { className: \"component-details__title single\" }, item.title)),\n renderAccordionContent(item.content)));\n };\n return (React.createElement(\"div\", { className: \"component-details component-details--extended\" },\n React.createElement(\"div\", { className: \"container component-details__container\" },\n React.createElement(\"div\", { className: \"row component-details__contents\" }, isSingle ? renderSingle() : renderAccordion()))));\n};\nexport default Details;\n","import React from 'react';\nimport Details from '@stone/components/details/Details';\nconst RailDetails = (props) => {\n var _a, _b, _c;\n const { regions, counter, content, title } = props;\n const mappedProps = {\n title,\n content,\n showCounter: counter,\n accordion: (_a = regions === null || regions === void 0 ? void 0 : regions.accordion) === null || _a === void 0 ? void 0 : _a.components,\n type: !((_c = (_b = regions === null || regions === void 0 ? void 0 : regions.accordion) === null || _b === void 0 ? void 0 : _b.components) === null || _c === void 0 ? void 0 : _c.length) ? 'content' : 'accordion',\n };\n return React.createElement(Details, Object.assign({}, mappedProps));\n};\nexport default RailDetails;\n"],"names":["props","_accordion","useMemo","accordion","JSON","parse","isSingle","length","renderAccordionContent","content","className","_a","_b","item","src","first_image","path","srcMobile","first_imageMobile","alt","first_imageAlt","second_image","second_imageMobile","second_imageAlt","title","renderSingle","map","i","index","isTitleMarkup","showCounter","toString","padStart","isInitialOpen","key","ID","accordionId","_c","regions","counter","mappedProps","components","type","Object","assign"],"sourceRoot":""}