mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 10:04:18 -08:00
1 line
64 KiB
JavaScript
1 line
64 KiB
JavaScript
|
(self.webpackChunkjustice40_tool=self.webpackChunkjustice40_tool||[]).push([[691],{9697:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";eval("// ESM COMPAT FLAG\n__webpack_require__.r(__webpack_exports__);\n\n// EXPORTS\n__webpack_require__.d(__webpack_exports__, {\n \"default\": function() { return /* binding */ pages; }\n});\n\n// EXTERNAL MODULE: ./node_modules/react/index.js\nvar react = __webpack_require__(7294);\n// EXTERNAL MODULE: ./node_modules/gatsby-plugin-intl/index.js\nvar gatsby_plugin_intl = __webpack_require__(9703);\n// EXTERNAL MODULE: ./node_modules/@trussworks/react-uswds/lib/index.js\nvar lib = __webpack_require__(2593);\n;// CONCATENATED MODULE: ./src/components/LinkTypeWrapper/index.tsx\n// eslint-disable-next-line valid-jsdoc\n/**\n * This function wraps the two types of links we have. Internal links and\n * external links. Internal links should use the <Link> component, while\n * eternal links can use the standard <a> tag. This function allows the\n * instance to choose the type of link along with the props necessary to\n * set new tabs, classes.\n *\n * Note - if the link is an external link and will not open in a new\n * browser tab, ensure that hitting the back button works. This has shown to\n * have errors on edge cases (ie, launching the gmail client with mailto links)\n * and it is the recommendation to not have external links open in the same tab.\n *\n * @param props\n * @returns\n */var LinkTypeWrapper=function LinkTypeWrapper(props){if(props.internal){return/*#__PURE__*/react.createElement(gatsby_plugin_intl.Link,{to:\"\"+props.url},props.linkText);}else{return props.openUrlNewTab?/*#__PURE__*/react.createElement(\"a\",{className:props.className,href:props.url,target:\"_blank\",rel:\"noreferrer\"},props.linkText):/*#__PURE__*/react.createElement(\"a\",{className:props.className,href:props.url},props.linkText);}};/* harmony default export */ var components_LinkTypeWrapper = (LinkTypeWrapper);\n// EXTERNAL MODULE: ./cypress/integration/common/helpers.js\nvar helpers = __webpack_require__(2900);\n;// CONCATENATED MODULE: ./src/components/AboutCard/AboutCard.tsx\n// the \"body\" section is the child object to allow for html versus just text\nvar AboutCard=function AboutCard(props){if(props.size==='large'){// large are the cards on top\n// note it uses a top className='j40-aboutcard-lg-card'\nreturn/*#__PURE__*/react.createElement(lib.Grid,{tablet:{col:true},gap:'lg',className:props.className||''},/*#__PURE__*/react.createElement(lib.Grid,{row:true,className:'j40-aboutcard-lg-card'},/*#__PURE__*/react.createElement(lib.Grid,{tablet:{col:3},className:'j40-aboutpage-image-container'},/*#__PURE__*/react.createElement(\"img\",{className:'j40-aboutcard-image',alt:props.header,src:props.imgSrc})),/*#__PURE__*/react.createElement(lib.Grid,{tablet:{col:9},\"data-cy\":(0,helpers/* hyphenizeString */.d)(props.header)+\"-block\"},/*#__PURE__*/react.createElement(lib.Grid,{row:true},/*#__PURE__*/react.createElement(\"h2\",null,props.header),props.children))));}else{// small are the cards on the bottom\n// note it uses a top className='j40-aboutcard-sm-card'\nreturn/*#__PURE__*/react.createElement(lib.Grid,{tablet:{col:true},gap:'lg',className:props.className||''},/*#__PURE__*/react.createElement(lib.Grid,{row:true,className:'j40-aboutcard-sm-card'},/*#__PURE__*/react.createElement(lib.Grid,{tablet:{col:2},className:'j40-aboutpage-image-container'},/*#__PURE__*/react.createElement(\"img\",{className:'j40-aboutcard-image',alt:props.header,src:props.imgSrc})),/*#__PURE__*/react.createElement(lib.Grid,{tablet:{col:9},\"data-cy\":(0,helpers/* hyphenizeString */.d)(props.header)+\"-block\"},/*#__PURE__*/react.createElement(lib.Grid,{row:true},/*#__PURE__*/react.createElement(\"h3\",null,props.header),props.children,/*#__PURE__*/react.createElement(\"div\",{className:'j40-aboutcard-sm-link'},/*#__PURE__*/react.createElement(components_LinkTypeWrapper,{linkText:props.linkText,internal:props.internal,url:props.url,openUrlNewTab:props.openUrlNewTab,className:'j40-aboutcar
|