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HA9CmB,CAC3BC,KAAM,6BACNC,MAAO,4BACPC,IAAK,4BACLC,OAAQ,6BA2CqBN,KAGvBhB,EAAAA,cAAA,OAAKiB,UAAU,iCACbjB,EAAAA,cAACuB,EAAAA,EAAK,CACJN,UAAWC,IACT,0IA3DK,CACjBC,KAAM,gDACNC,MAAO,sDACPC,IAAK,yDACLC,OAAQ,iDAwDeN,GACX,gBAEFb,MAAOO,EACPc,IAAKf,EACLgB,IAAKlB,OAKbP,EAAAA,cAAA,OAAKiB,UAAU,sEACbjB,EAAAA,cAAA,OAAKiB,UAAU,aACbjB,EAAAA,cAACuB,EAAAA,EAAK,CACJN,UAAU,iDACVd,MAAOO,EACPc,IAAKf,EACLgB,IAAKpB,MAMjB,C","sources":["webpack://printivity/./client/app/bundles/App/pages/HomePage/StoryEpic.tsx","webpack://printivity/./client/app/styleguide/components/Story/Story.tsx"],"sourcesContent":["import * as React from 'react';\nimport Story from 'styleguide/components/Story/Story';\n\nimport img from 'assets/images/stories/make-something-epic.jpg';\n\nconst DescriptionBlock = () => (\n
\n

\n State-of-the-art production presses with G7 color workflows. Comprehensive file checks and intent-driven\n quality control.\n

\n

A 98% customer satisfaction rate that no printer our size or larger can match.

\n Great idea? Meet great execution.\n
\n);\n\nconst StoryEpic = () => (\n }\n imageUrlMobile={img}\n imageUrlDesktop={img}\n direction=\"right\"\n imageAlt=\"Make something epic\"\n imageTitle=\"Make Something Epic\"\n />\n);\n\nexport default StoryEpic;\n","import * as React from 'react';\nimport cn from 'classnames';\nimport Image from '../Image/Image';\n\ninterface Props {\n intro?: string;\n subtitle?: string;\n title: string;\n titleStyle?: string;\n descriptionStyle?: string;\n description: JSX.Element;\n imageUrlMobile: string;\n imageUrlDesktop: string;\n imageTitle: string;\n imageAlt: string;\n direction: 'left' | 'right' | 'top' | 'bottom';\n}\n\nfunction getImageOrder(textOrder: string | 'left') {\n return textOrder === 'left' ? 'right' : 'left';\n}\n\nconst Story = (props: Props) => {\n const {\n intro,\n subtitle,\n title,\n titleStyle,\n descriptionStyle,\n description,\n imageUrlMobile,\n imageUrlDesktop,\n imageTitle,\n imageAlt,\n direction = 'left',\n } = props;\n const imagePosition = getImageOrder(direction);\n const imageStyle = {\n left: 'xs:left-[12px] lg:left-[16px] 2xl:left-[20px]',\n right: 'xs:-right-[12px] lg:-right-[16px] 2xl:-right-[20px]',\n top: 'xs:-bottom-[12px] lg:-bottom-[16px] 2xl:-bottom-[20px]',\n bottom: 'xs:-top-[12px] lg:-top-[16px] 2xl:-top-[20px]',\n };\n const backgroundImageStyle = {\n left: ' ml-[10px] md:ml-4 md:ml-6',\n right: 'mr-[10px] md:mr-4 md:mr-6',\n top: 'mt-[10px] md:mt-4 md:mt-6',\n bottom: 'mb-[10px] md:mb-4 md:mb-6',\n };\n const imageWrapperStyle = {\n left: 'order-2 xs:ml-0 md:-ml-[100px] md:-ml-[60px] md:ml-0 ',\n right: 'order-3 xs:mr-0 md:-mr-[100px] md:-mr-[60px] md:mr-0 ',\n top: '',\n bottom: '',\n };\n const descriptionWrapperStyle = {\n left: 'order-2 justify-start xs:ml-5 lg:pr-[80px] 3xl:pr-52 xl:ml-0 ml-[10px] md:ml-4 md:ml-6',\n right: 'order-3 justify-end xs:ml-5 lg:pl-[80px] 3xl:pl-52 xl:ml-0 mr-[10px] md:mr-4 md:mr-6',\n };\n\n return (\n
\n \n
\n {intro && (\n
\n {intro}\n
\n )}\n
\n {title}\n
\n {subtitle &&
{subtitle}
}\n
{description}
\n
\n
\n \n \n
\n \n
\n \n \n
\n
\n \n
\n
\n \n );\n};\n\nexport default Story;\n"],"names":["DescriptionBlock","React","Story","intro","title","description","imageUrlMobile","img","imageUrlDesktop","direction","imageAlt","imageTitle","props","subtitle","titleStyle","descriptionStyle","_props$direction","imagePosition","className","cn","left","right","top","bottom","Image","alt","url"],"sourceRoot":""}