import React from 'react';

import Svg, { ClipPath, Defs, G, Path, Rect } from 'react-native-svg';

import { IconProps } from './utils/base';

export const PDF = ({ height, width, ...rest }: IconProps) => (
  <Svg width={width} height={height} viewBox='0 0 40 48' fill='none' {...rest}>
    <Path
      d='M0 4C0 1.79086 1.79086 0 4 0H28L40 12V44C40 46.2091 38.2091 48 36 48H4C1.79086 48 0 46.2091 0 44V4Z'
      fill='#E71A01'
    />
    <Path opacity='0.5' d='M40 12L31 12C29.3431 12 28 10.6569 28 9V0L40 12Z' fill='white' />
    <G clipPath='url(#clip0_157_2463)'>
      <Path
        d='M28.7225 23.475C28.19 22.9163 27.098 22.5975 25.5545 22.5975C24.7295 22.5975 23.7717 22.677 22.7337 22.863C22.0978 22.2515 21.5187 21.5835 21.0035 20.8673C20.6045 20.3348 20.258 19.7498 19.9385 19.1903C20.5512 17.3273 20.8437 15.81 20.8437 14.7188C20.8437 13.4948 20.3915 12.2168 19.0872 12.2168C18.6882 12.2168 18.2885 12.4568 18.0755 12.8025C17.4905 13.8405 17.7568 16.1025 18.7677 18.3383C18.3872 19.4816 17.9611 20.6093 17.4905 21.7185C17.0645 22.7303 16.5853 23.7683 16.0528 24.726C13.1255 25.8975 11.2355 27.255 11.0225 28.3186C10.943 28.7183 11.0758 29.091 11.369 29.3835C11.4755 29.4638 11.8483 29.7833 12.4865 29.7833C14.429 29.7833 16.4788 26.6423 17.5168 24.753C18.3155 24.4868 19.1143 24.2205 19.9122 24.0075C20.7542 23.7789 21.607 23.5924 22.4675 23.4488C24.5165 25.2848 26.3262 25.578 27.2315 25.578C28.349 25.578 28.7487 25.125 28.8815 24.753C29.1215 24.273 28.9617 23.7413 28.7225 23.475ZM27.6575 24.2475C27.5772 24.6465 27.1775 24.9128 26.6195 24.9128C26.4597 24.9128 26.327 24.8858 26.1665 24.8595C25.1555 24.6195 24.197 24.114 23.2392 23.3153C23.9777 23.1904 24.7253 23.1282 25.4742 23.1293C26.0337 23.1293 26.513 23.1555 26.8317 23.2358C27.2045 23.3153 27.7902 23.5553 27.6567 24.2468L27.6575 24.2475ZM22.0145 22.9965C21.2718 23.1357 20.535 23.3043 19.8057 23.502C19.1698 23.6674 18.5394 23.8537 17.9157 24.0608C18.2399 23.4329 18.5419 22.7937 18.821 22.1445C19.1405 21.399 19.406 20.6273 19.673 19.9088C19.9385 20.361 20.2317 20.814 20.5242 21.213C21.0025 21.8228 21.4995 22.4175 22.0145 22.9965ZM18.5285 13.095C18.5755 13.0008 18.6475 12.9212 18.7367 12.865C18.8258 12.8088 18.9286 12.7781 19.034 12.7763C19.5927 12.7763 19.6992 13.4145 19.6992 13.9208C19.6992 14.772 19.433 16.0763 18.9807 17.5665C18.2082 15.4905 18.1557 13.761 18.5285 13.095ZM15.6005 25.4978C14.243 27.7335 12.9388 29.1173 12.1408 29.1173C11.9968 29.1182 11.8565 29.0715 11.7418 28.9846C11.582 28.8248 11.5018 28.6388 11.555 28.4258C11.7148 27.627 13.2583 26.5095 15.6005 25.4978Z'
        fill='white'
      />
    </G>
    <Path
      d='M13.7422 41.4258V35.6992H14.8828V36.3633H14.9531C15.0286 36.2096 15.1276 36.0781 15.25 35.9688C15.375 35.8594 15.5208 35.776 15.6875 35.7188C15.8542 35.6589 16.0391 35.6289 16.2422 35.6289C16.6016 35.6289 16.9115 35.7188 17.1719 35.8984C17.4323 36.0781 17.6328 36.3333 17.7734 36.6641C17.9167 36.9922 17.9883 37.3854 17.9883 37.8438V37.8516C17.9883 38.3125 17.918 38.7083 17.7773 39.0391C17.6367 39.3698 17.4362 39.6237 17.1758 39.8008C16.9154 39.9779 16.6042 40.0664 16.2422 40.0664C16.0443 40.0664 15.8607 40.0365 15.6914 39.9766C15.5247 39.9141 15.3776 39.8268 15.25 39.7148C15.125 39.6029 15.026 39.4688 14.9531 39.3125H14.8828V41.4258H13.7422ZM15.8516 39.1211C16.0547 39.1211 16.2279 39.0703 16.3711 38.9688C16.5169 38.8672 16.6289 38.7214 16.707 38.5312C16.7878 38.3411 16.8281 38.1146 16.8281 37.8516V37.8438C16.8281 37.5807 16.7878 37.3542 16.707 37.1641C16.6289 36.974 16.5169 36.8281 16.3711 36.7266C16.2279 36.625 16.0547 36.5742 15.8516 36.5742C15.651 36.5742 15.4766 36.625 15.3281 36.7266C15.1823 36.8281 15.069 36.974 14.9883 37.1641C14.9102 37.3516 14.8711 37.5781 14.8711 37.8438V37.8516C14.8711 38.112 14.9115 38.3385 14.9922 38.5312C15.0729 38.7214 15.1862 38.8672 15.332 38.9688C15.4805 39.0703 15.6536 39.1211 15.8516 39.1211ZM20.457 40.0664C20.1003 40.0664 19.7904 39.9779 19.5273 39.8008C19.2669 39.6211 19.0651 39.3659 18.9219 39.0352C18.7812 38.7044 18.7109 38.3099 18.7109 37.8516V37.8438C18.7109 37.3828 18.7799 36.987 18.918 36.6562C19.0586 36.3255 19.2591 36.0716 19.5195 35.8945C19.7799 35.7174 20.0924 35.6289 20.457 35.6289C20.6523 35.6289 20.8333 35.6602 21 35.7227C21.1693 35.7826 21.3177 35.8685 21.4453 35.9805C21.5729 36.0924 21.6719 36.2279 21.7422 36.3867H21.8125V34.0547H22.9531V40H21.8125V39.332H21.7422C21.6693 39.4857 21.5703 39.6172 21.4453 39.7266C21.3229 39.8359 21.1784 39.9206 21.0117 39.9805C20.8451 40.0378 20.6602 40.0664 20.457 40.0664ZM20.8438 39.1211C21.0469 39.1211 21.2214 39.0703 21.3672 38.9688C21.513 38.8672 21.625 38.7214 21.7031 38.5312C21.7839 38.3411 21.8242 38.1159 21.8242 37.8555V37.8477C21.8242 37.582 21.7839 37.3555 21.7031 37.168C21.625 36.9779 21.5117 36.832 21.3633 36.7305C21.2174 36.6263 21.0443 36.5742 20.8438 36.5742C20.6458 36.5742 20.4727 36.6263 20.3242 36.7305C20.1784 36.832 20.0664 36.9779 19.9883 37.168C19.9102 37.3555 19.8711 37.5807 19.8711 37.8438V37.8516C19.8711 38.1146 19.9102 38.3411 19.9883 38.5312C20.0664 38.7214 20.1784 38.8672 20.3242 38.9688C20.4701 39.0703 20.6432 39.1211 20.8438 39.1211ZM24.4648 40V36.5586H23.7695V35.6992H24.4648V35.2969C24.4648 35.0104 24.5156 34.7721 24.6172 34.582C24.7188 34.3919 24.8776 34.25 25.0938 34.1562C25.3125 34.0599 25.5951 34.0117 25.9414 34.0117C26.0586 34.0117 26.1641 34.0156 26.2578 34.0234C26.3542 34.0312 26.444 34.0417 26.5273 34.0547V34.8164C26.4909 34.8086 26.4427 34.8034 26.3828 34.8008C26.3255 34.7956 26.2604 34.793 26.1875 34.793C25.9661 34.793 25.8099 34.8438 25.7188 34.9453C25.6276 35.0443 25.582 35.1875 25.582 35.375V35.6992H26.4922V36.5586H25.6055V40H24.4648Z'
      fill='white'
    />
    <Defs>
      <ClipPath id='clip0_157_2463'>
        <Rect width='18' height='18' fill='white' transform='translate(11 12)' />
      </ClipPath>
    </Defs>
  </Svg>
);
