tntd 3.0.7 → 3.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/input/input.js +12 -8
- package/es/input/input.js.map +1 -1
- package/es/input-number/inputNumber.js +8 -3
- package/es/input-number/inputNumber.js.map +1 -1
- package/es/modal/index.less +1 -4
- package/es/modal/modal.less +18 -0
- package/es/prev-locale.js +10 -2
- package/es/prev-locale.js.map +1 -1
- package/es/query-list-scene/index.less +6 -0
- package/es/select/select.js +3 -1
- package/es/select/select.js.map +1 -1
- package/es/select/style/index.less +1 -1
- package/es/svg-components/illustration-offline.js +138 -84
- package/es/svg-components/illustration-offline.js.map +1 -1
- package/es/tntd-cascader/rc-cascader/Cascader.js +5 -1
- package/es/tntd-cascader/rc-cascader/Cascader.js.map +1 -1
- package/es/tntd-rc-select/index.js +4 -1
- package/es/tntd-rc-select/index.js.map +1 -1
- package/es/tntd-select/index.js +3 -1
- package/es/tntd-select/index.js.map +1 -1
- package/lib/input/input.d.ts.map +1 -1
- package/lib/input/input.js +14 -6
- package/lib/input/input.js.map +1 -1
- package/lib/input-number/inputNumber.d.ts.map +1 -1
- package/lib/input-number/inputNumber.js +8 -2
- package/lib/input-number/inputNumber.js.map +1 -1
- package/lib/modal/index.less +1 -4
- package/lib/modal/modal.less +18 -0
- package/lib/prev-locale.d.ts +6 -0
- package/lib/prev-locale.d.ts.map +1 -1
- package/lib/prev-locale.js +10 -2
- package/lib/prev-locale.js.map +1 -1
- package/lib/query-list-scene/index.less +6 -0
- package/lib/select/select.d.ts.map +1 -1
- package/lib/select/select.js +4 -1
- package/lib/select/select.js.map +1 -1
- package/lib/select/style/index.less +1 -1
- package/lib/svg-components/illustration-offline.d.ts.map +1 -1
- package/lib/svg-components/illustration-offline.js +138 -84
- package/lib/svg-components/illustration-offline.js.map +1 -1
- package/lib/tntd-cascader/rc-cascader/Cascader.d.ts.map +1 -1
- package/lib/tntd-cascader/rc-cascader/Cascader.js +5 -1
- package/lib/tntd-cascader/rc-cascader/Cascader.js.map +1 -1
- package/lib/tntd-rc-select/index.d.ts.map +1 -1
- package/lib/tntd-rc-select/index.js +4 -1
- package/lib/tntd-rc-select/index.js.map +1 -1
- package/lib/tntd-select/index.d.ts.map +1 -1
- package/lib/tntd-select/index.js +4 -1
- package/lib/tntd-select/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"illustration-offline.js","sourceRoot":"","sources":["../../src/svg-components/illustration-offline.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA8B;AAE9B,SAAS,sBAAsB,CAC7B,KAAoC,EACpC,MAAiC;IAEjC,OAAO,CACL,2CACE,OAAO,EAAC,aAAa,EACrB,KAAK,EAAC,4BAA4B,EAClC,UAAU,EAAC,8BAA8B,EACzC,GAAG,EAAE,MAAM,IACP,KAAK;QAET;YACE,gCAAQ,EAAE,EAAC,6BAA6B,EAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAI,CACzE;QACP,2BAAG,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAC,SAAS;YAC/B,8BAAM,CAAC,EAAC,iBAAiB,GAAG;YAC5B,2BAAG,SAAS,EAAC,wBAAwB;gBACnC,8BAAM,EAAE,EAAC,6BAA6B,EAAC,IAAI,EAAC,MAAM;oBAChD,6BAAK,SAAS,EAAC,8BAA8B,GAAG,CAC3C;gBACP,6BAAK,IAAI,EAAC,SAAS,EAAC,SAAS,EAAC,8BAA8B,GAAG;gBAC/D,2BAAG,IAAI,EAAC,mCAAmC;oBACzC,8BACE,CAAC,EAAC,gHAAgH,EAClH,IAAI,EAAC,MAAM,GACX;oBACF,8BACE,CAAC,EAAC,qTAAqT,EACvT,IAAI,EAAC,SAAS,EACd,QAAQ,EAAC,SAAS,GAClB;oBACF,8BACE,CAAC,EAAC,uVAAuV,EACzV,IAAI,EAAC,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,CAAC,EAAC,sIAAsI,EACxI,IAAI,EAAC,MAAM,GACX;oBACF,8BACE,CAAC,EAAC,uVAAuV,EACzV,IAAI,EAAC,SAAS,GACd;oBACF,8BACE,CAAC,EAAC,uJAAuJ,EACzJ,IAAI,EAAC,MAAM,GACX;oBACF,8BACE,CAAC,EAAC,8WAA8W,EAChX,IAAI,EAAC,SAAS,GACd;oBACF,8BACE,CAAC,EAAC,sGAAsG,EACxG,IAAI,EAAC,MAAM,GACX;oBACF,8BACE,CAAC,EAAC,iRAAiR,EACnR,IAAI,EAAC,SAAS,GACd;oBACF,8BACE,CAAC,EAAC,2KAA2K,EAC7K,IAAI,EAAC,MAAM,GACX;oBACF,8BACE,CAAC,EAAC,gdAAgd,EACld,IAAI,EAAC,SAAS,GACd;oBACF,8BACE,CAAC,EAAC,gGAAgG,EAClG,IAAI,EAAC,MAAM,GACX;oBACF,8BACE,CAAC,EAAC,2QAA2Q,EAC7Q,IAAI,EAAC,SAAS,GACd;oBACF,8BACE,CAAC,EAAC,iFAAiF,EACnF,IAAI,EAAC,SAAS,GACd;oBACF,8BACE,CAAC,EAAC,6MAA6M,EAC/M,IAAI,EAAC,SAAS,GACd,CACA,CACF,CACF,CACA,CACP,CAAA;AACH,CAAC;AAED,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAA;AAC3D,MAAM,cAAc,GAAG,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;AAC7C,kBAAe,cAAc,CAAA","sourcesContent":["import * as React from 'react'\n\nfunction SvgIllustrationOffline(\n props: React.SVGProps<SVGSVGElement>,\n svgRef?: React.Ref<SVGSVGElement>\n) {\n return (\n <svg\n viewBox=\"0 0 160 160\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlnsXlink=\"http://www.w3.org/1999/xlink\"\n ref={svgRef}\n {...props}\n >\n <defs>\n <circle id=\"illustration-offline_svg__a\" cx={71.467} cy={71.467} r={71.467} />\n </defs>\n <g fill=\"none\" fillRule=\"evenodd\">\n <path d=\"M0 0h160v160H0z\" />\n <g transform=\"translate(8.533 8.533)\">\n <mask id=\"illustration-offline_svg__b\" fill=\"#fff\">\n <use xlinkHref=\"#illustration-offline_svg__a\" />\n </mask>\n <use fill=\"#F5F5F5\" xlinkHref=\"#illustration-offline_svg__a\" />\n <g mask=\"url(#illustration-offline_svg__b)\">\n <path\n d=\"M68.525 91.183l3.87-13.73h9.195l3.724 13.73c-4.073 2.914-7.076 4.37-9.008 4.37-1.933 0-4.527-1.456-7.781-4.37z\"\n fill=\"#FFF\"\n />\n <path\n d=\"M81.834 77.133h-9.682l-3.99 14.155.15.133c3.308 2.963 5.96 4.453 7.994 4.453 1.955 0 4.874-1.386 8.799-4.15l.576-.41-3.847-14.181zm-.49.64l3.602 13.277-.583.411c-.501.348-.985.67-1.45.97l-.685.43c-2.573 1.583-4.553 2.373-5.922 2.373l-.193-.005c-1.75-.092-4.11-1.418-7.046-3.993l-.18-.161 3.749-13.303h8.708z\"\n fill=\"#18263C\"\n fillRule=\"nonzero\"\n />\n <path\n d=\"M44.714 83.299c9.246 0 17.183 2.051 23.81 6.154 6.534 3.253 12.13 3.041 16.79-.637 6.99-5.517 15.44-14.83 27.948-14.83 10.08 9.193 15.12 15.643 15.12 19.35 0 5.56-8.527 4.943-15.12 7.822 6.24 25.189 7.521 39.562 3.844 43.12l-76.093 1.739c-1.459-14.03-.052-26.536 4.22-37.52l-4.22 6.006-22.622-12.306c8.303-12.599 17.077-18.898 26.323-18.898z\"\n fill=\"#D6DAE1\"\n />\n <path\n d=\"M113.478 73.75l-.216-.083c-7.516 0-13.608 2.955-21.145 9.062l-.788.647-4.767 4.004-.837.692-.61.493c-4.554 3.596-10.019 3.803-16.447.601-6.656-4.12-14.651-6.187-23.954-6.187-9.234 0-17.973 6.176-26.22 18.486l-.561.846 23.178 12.61 2.977-4.24-.208.613c-3.376 10.064-4.469 21.337-3.279 33.818l.124 1.232 76.388-1.746.215-.09.113-.114c.58-.611 1.037-1.486 1.368-2.625l.118-.44c.131-.527.238-1.105.322-1.733l.065-.551c.03-.282.056-.573.077-.874l.037-.613.014-.316.019-.65c.004-.222.006-.447.007-.677l-.004-.7a46.243 46.243 0 00-.007-.36l-.022-.737-.033-.763-.045-.788-.057-.813-.068-.837-.08-.863-.091-.887-.103-.913-.115-.937-.126-.963-.138-.987-.15-1.013-.161-1.037-.173-1.063-.28-1.64-.202-1.126-.213-1.15-.225-1.176-.36-1.81-.253-1.238-.402-1.905-.283-1.3-.445-2-.472-2.055-.497-2.112-.523-2.168-.303-1.228.395-.162c.87-.346 1.799-.651 2.898-.96l.859-.232.933-.238 2.028-.493 1.053-.266.654-.177.618-.177c4.092-1.214 5.627-2.53 5.627-5.305 0-1.559-.837-3.556-2.512-5.998l-.401-.571a41.128 41.128 0 00-1.382-1.81l-.52-.635-.272-.323-.565-.659-.595-.675-.624-.69a82.547 82.547 0 00-.323-.352l-.67-.715-.345-.363-.714-.74-.743-.754-.773-.771-.803-.787-.833-.804-.863-.82-.892-.835-.922-.852-.472-.432zm-.703.561l.364-.003 1.282 1.18.88.824.85.808.82.792.792.775.763.76 1.088 1.11.69.719.66.703.63.688.304.337.586.663.558.647.528.63.498.615.47.598.44.582c.283.383.547.754.792 1.115l.352.533c1.293 2.012 1.94 3.663 1.94 4.949 0 2.205-1.162 3.375-4.336 4.43l-.547.176-.288.087-.605.173-.318.087-.664.174-2.736.67-.947.241c-1.664.437-2.952.847-4.16 1.351l-.574.248.427 1.737.684 2.845.483 2.069.308 1.348.44 1.977.416 1.92.39 1.866.245 1.212.234 1.188.223 1.163.314 1.698.288 1.642.262 1.587.161 1.026.15 1.002.138.977.128.952.116.928.104.902.094.878.082.852.071.828.031.404.054.79.043.766.032.74.012.362.014.703.004.342-.002.666-.013.64a32.16 32.16 0 01-.011.311l-.03.604a26.81 26.81 0 01-.02.292l-.046.566-.058.54-.07.516c-.099.671-.228 1.275-.387 1.813l-.125.39c-.262.756-.59 1.361-.985 1.816l-.12.13-75.667 1.73.03.293c-1.453-13.982-.053-26.437 4.2-37.37l.955-2.458-5.57 7.929-22.065-12.002-.192.29c8.25-12.518 16.936-18.754 26.055-18.754 9.189 0 17.067 2.036 23.642 6.106 6.53 3.253 12.163 3.11 16.87-.437l.413-.322.678-.552 2.674-2.233 2.86-2.408.167-.138c7.502-6.163 13.478-9.195 20.757-9.324z\"\n fill=\"#182333\"\n fillRule=\"nonzero\"\n />\n <path\n d=\"M40.624 114.236c-7.324 16.03-10.559 25.596-9.703 28.697 1.283 4.652 12.043 18.467 13.926 21.718 1.884 3.25 8.785 6.991 6.828 12.01-1.958 5.02-37.29-10.297-41.98-17.208-4.688-6.911-8.743-28.028 9.484-56.932l21.445 11.715z\"\n fill=\"#FFF\"\n />\n <path\n d=\"M41.033 114.096l-21.97-12.002-.16.254c-8.325 13.2-12.607 25.689-13.385 36.863-.607 8.738 1.05 16.208 3.907 20.42.33.488.817 1.022 1.439 1.593l.434.386a29.03 29.03 0 002.116 1.639l.617.43.65.437.336.22.697.446.726.451.755.456.781.46.808.462.832.464.855.467.877.468.899.468.918.469.465.233.945.467.962.465.976.462.99.459 1.004.455 1.014.451 1.025.445.515.221.972.41.898.37 1.322.532 1.29.503.423.16.833.312.817.298.801.284.784.27.767.254.748.241.73.226.71.21.69.196.338.092.66.172.322.08.628.149.606.132.584.116.56.1.271.044.525.074c2.563.329 4.209.018 4.627-1.054 1.074-2.755-.027-4.994-3.173-8.221l-1.859-1.863c-.564-.576-.978-1.035-1.31-1.464a7.258 7.258 0 01-.399-.562l-.19-.312-.273-.42-.769-1.134-2.038-2.936-3.864-5.477-.974-1.409-.597-.875-.84-1.25-.522-.792-.492-.758-.461-.725-.43-.69-.4-.658-.367-.623c-.06-.101-.116-.201-.172-.3l-.32-.572a30.628 30.628 0 01-.29-.538l-.256-.505-.223-.47a9.422 9.422 0 01-.525-1.375c-.093-.337-.134-.756-.124-1.259l.014-.347c.003-.06.008-.12.013-.182l.037-.384.052-.409c.01-.07.02-.141.032-.213l.075-.445.09-.47.105-.494.059-.256.128-.531.143-.555.078-.287.255-.896.189-.629.204-.652.335-1.024.242-.714.392-1.115.426-1.17.46-1.224.494-1.278.349-.883.551-1.37.586-1.423.62-1.477.431-1.015.677-1.568.71-1.622 1.001-2.246 1.186-2.613zm-3.8 40.175l3.603 5.109L43 162.485l1.206 1.767.322.497.035.06c.151.26.335.53.554.812.301.387.66.791 1.12 1.272l1.82 1.826c3.194 3.214 4.293 5.31 3.312 7.824-.231.594-1.113.847-2.514.795l-.414-.023a15.638 15.638 0 01-.91-.096l-.495-.072-.52-.088-.545-.104-.569-.119a36.44 36.44 0 01-.293-.065l-.604-.143a43.98 43.98 0 01-.31-.076l-.637-.165-.659-.18-.679-.194-.699-.21-.718-.222-.737-.237-.755-.252-.772-.265-1.188-.422-1.224-.453-.834-.318-.848-.331-.86-.344-.874-.356-.885-.369-1.022-.435-1.013-.44-1.003-.446-.498-.225-1.475-.68-.966-.457-.952-.46-.47-.23-.926-.463-.908-.463-.448-.231-.878-.463-.858-.462-.835-.46-.811-.457-.786-.455c-.13-.075-.257-.15-.384-.226l-.746-.448-.717-.444-.689-.438-.657-.432a47.506 47.506 0 01-.317-.214l-.608-.422-.575-.413-.54-.405c-1.302-1.001-2.263-1.915-2.79-2.693-2.771-4.084-4.397-11.413-3.798-20.017l.047-.628c.867-10.695 4.965-22.604 12.776-35.196l.304-.487 20.92 11.428-.952 2.1-1.012 2.272-.719 1.64-.684 1.584-.649 1.53-.614 1.474-.579 1.42-.544 1.365-.51 1.31-.475 1.256-.297.806-.282.782-.393 1.128-.359 1.074-.22.685-.204.661-.188.637-.174.613-.158.59-.142.564-.127.54-.058.261-.103.505-.088.48-.039.231-.065.445c-.01.072-.018.143-.026.213l-.042.408-.027.385a7.55 7.55 0 00.002.856l.028.3c.024.193.058.37.102.53.145.526.402 1.163.769 1.912l.26.516.293.55.325.582.174.304.373.633.404.667.436.7.467.735.498.768.805 1.216.575.853 1.247 1.818z\"\n fill=\"#182333\"\n fillRule=\"nonzero\"\n />\n <path\n d=\"M113.262 73.987c14.585-7.275 20.19-12.826 16.814-16.655-3.376-3.828-17.297-5.197-41.763-4.106-5.033 1.54-8.024 1.54-8.975 0-1.426-2.31-2.621-5.319 3.878-6.447 6.5-1.128 3.714 1.734 11.439-1.128 7.724-2.862 36.248-13.147 47.025-6.01 10.776 7.138 24.39 33.037-13.787 51.699l-14.63-17.353z\"\n fill=\"#FFF\"\n />\n <path\n d=\"M116.955 38.584c-7.103 1.531-13.812 3.629-20.973 6.238l-2.118.777-.623.218-.29.098-.547.177-.5.15-.459.124-.422.1a7.755 7.755 0 01-1.094.164l-.322.014a5.168 5.168 0 01-.754-.044l-.293-.047a6.648 6.648 0 01-.147-.029l-.375-.084c-1.455-.339-2.563-.378-4.877.024-3.103.538-4.749 1.545-5.164 3.008-.32 1.13.084 2.327 1.069 3.922.849 1.375 3.01 1.65 6.486.896l.668-.154c.455-.11.93-.236 1.427-.379l.76-.225 1.443-.061 2.118-.082 2.737-.087 1.33-.035 1.95-.042 1.894-.029 1.231-.011 1.8-.007 1.744.006.568.005 1.669.024 1.08.023 1.057.028 1.537.054.993.044.968.049 1.405.084.905.063.88.07.855.074.83.081.805.087.78.092.38.048.741.1.717.107.348.056.679.115.653.12.628.127.305.065.59.135.285.07.552.144.267.074.514.152c.167.052.33.104.489.158l.464.163.222.084.425.172c1.17.496 2.034 1.06 2.591 1.692 1.588 1.801.975 4.077-1.88 6.814l-.393.368-.207.186-.434.376-.227.19-.474.384-.246.194-.514.392-.54.398-.567.403-.594.408-.62.414-.32.21-.661.422-.688.427a73.35 73.35 0 01-.354.216l-.727.435-.755.441-.78.447-.81.451-.834.457-.862.463-.89.468-1.383.711-1.32.663 15.053 17.855.224-.11c17.341-8.476 25.406-19.089 25.432-30.457.018-8.775-5.127-17.502-11.609-21.795-4.55-3.014-12.351-3.22-22.514-1.278l-1.183.234c-.398.081-.8.165-1.204.253zm24.548 1.324c6.31 4.18 11.34 12.711 11.321 21.26l-.004.374c-.197 10.834-7.943 20.994-24.494 29.227l-.35.173-14.209-16.852 1.055-.533.913-.471.887-.466.861-.462.836-.457.81-.452.784-.448.758-.443.733-.438.706-.433.681-.429.655-.423.63-.42.603-.414.291-.205.565-.408.538-.402.513-.398.246-.198.474-.39.447-.387c.145-.128.285-.255.421-.382l.396-.377c.382-.374.725-.742 1.03-1.103l.29-.358c1.807-2.315 1.957-4.337.426-6.072-.59-.67-1.484-1.265-2.68-1.787l-.436-.181-.46-.175-.485-.17a20.66 20.66 0 00-.253-.081l-.523-.16-.548-.154-.574-.147a31.395 31.395 0 00-.297-.072l-.611-.138-.637-.132a41.368 41.368 0 00-.328-.064l-.675-.123-.347-.06-.713-.114-.738-.108-.764-.102-.789-.095-.814-.09-.84-.084-.864-.078-.89-.072-.916-.065-.941-.06-.966-.054-.992-.047-1.017-.042-1.573-.05-1.631-.039-1.688-.024-1.157-.008-1.783-.002-1.84.012-1.898.025-1.955.038-2.012.052-2.07.066-2.127.078-2.185.092-.389.116-.75.214-.716.189-.681.164c-3.43.783-5.468.578-6.153-.531-.896-1.452-1.253-2.509-.997-3.411.332-1.172 1.77-2.052 4.658-2.553 2.104-.365 3.132-.353 4.396-.082l.454.104c.814.186 1.562.233 2.563.065l.415-.08c.215-.045.441-.1.682-.164l.502-.14.545-.17.29-.094.618-.21.672-.24.358-.132c7.68-2.846 14.784-5.116 22.324-6.742l1.187-.249c2.745-.559 5.322-.967 7.714-1.211l1.013-.095c6.18-.523 11.042.104 14.243 2.09l.256.164z\"\n fill=\"#182333\"\n fillRule=\"nonzero\"\n />\n <path\n d=\"M75.163 73.987c1.373 1.615 2.746 1.615 4.118 0\"\n stroke=\"#182333\"\n strokeWidth={0.6}\n strokeLinecap=\"round\"\n />\n <path\n d=\"M70.692 47.377c3.885-2.08 8.06-2.28 12.524-.598a13.853 13.853 0 018.9 14.335l-.801 8.04h-1.477l-28.437-.646c-2.23-11.264-.854-17.752 4.127-19.464.824-.233 1.54-.119 2.15.343l3.014-2.01z\"\n fill=\"#182333\"\n />\n <path\n d=\"M65.427 54.073c-1.529 1.061-2.648 5.948-3.357 14.662 2.448 6.76 6.161 10.837 11.139 12.228a14.135 14.135 0 0016.344-8.79c.776-2.055 1.164-3.812 1.164-5.272 0-5.441-.235-11.314-2.182-12.356-1.905-1.02-16.224-5.523-19.837-2.726-.08.061-.837.398-.905.466-3.169 3.169-.072.197-2.366 1.788z\"\n fill=\"#FFF\"\n />\n <path\n d=\"M68.502 51.566l-.759.373-.091.053a.609.609 0 00-.034.023l-.051.044-1.189 1.194-.028-.004a.504.504 0 00-.156.015 1.706 1.706 0 00-.414.196l-.242.152c-.09.058-.187.124-.293.198-.603.418-1.135 1.34-1.604 2.773l-.145.47a22.56 22.56 0 00-.28 1.04l-.133.572-.129.606-.125.64-.121.674-.117.708c-.02.121-.038.244-.057.368l-.111.76-.108.794-.103.83-.1.863-.096.898-.136 1.412-.129 1.49.018.136c2.481 6.85 6.266 11.005 11.354 12.427 7.049 1.597 14.18-2.239 16.729-8.985.789-2.088 1.185-3.882 1.185-5.385l-.001-.698-.005-.7-.011-.89L91 63.76l-.025-.817-.016-.394-.037-.761-.045-.725-.053-.688-.03-.33-.066-.634-.075-.598-.085-.562-.094-.526c-.366-1.862-.937-3.006-1.789-3.462a5.122 5.122 0 00-.267-.132l-.335-.146-.399-.16-.455-.17-.507-.18-.553-.187-.593-.192-.954-.294-.67-.197-1.045-.293-.713-.19-.72-.186-.723-.176-.719-.167-.71-.155-.881-.18c-.29-.056-.574-.11-.854-.159l-.827-.138c-3.926-.618-6.84-.493-8.26.605zm19.882 3.261c.608.326 1.06 1.214 1.379 2.65l.096.472c.046.245.089.504.129.776l.075.562.067.598.06.634.05.67c.009.115.016.231.023.349l.04.723.033.759.025.794.019.83.011.865.006 1.392c0 1.417-.38 3.137-1.144 5.16a13.815 13.815 0 01-15.973 8.59l-.337-.099c-4.572-1.41-8.044-5.223-10.402-11.465l-.148-.397.124-1.406.09-.942.093-.907.097-.872.1-.838.105-.803.108-.768.111-.733.115-.699.118-.663.122-.629.125-.593.128-.558c.044-.18.087-.355.132-.524l.135-.487.137-.453c.419-1.305.88-2.134 1.377-2.479l.251-.17.194-.126.028.057.286.02.05-.005a.037.037 0 00.012-.007l.014-.023.079-.068 1.496-1.503h.005l.803-.394.066-.045c1.175-.91 4.202-.929 7.591-.481l.82.116.829.133.417.072.834.156.833.168.825.18c.274.063.546.127.815.192l.8.201.778.21.753.215c.247.073.489.147.725.222l.69.225c1.12.38 2.078.77 2.78 1.146z\"\n fill=\"#18263C\"\n fillRule=\"nonzero\"\n />\n <path\n d=\"M68.525 50.945c1.4 1.369 2.465 2.325 3.194 2.87 5.901 4.402 15.716 6.575 19.85.704 1.61-2.29 2.792-8.751.734-6.506-2.058 2.244-7.968-.923-10.272-.923-4.984 0-9.486 1.285-13.506 3.855z\"\n fill=\"#182333\"\n />\n <path\n d=\"M73.209 51.74c-6.992 11.114-11.13 14.765-12.416 10.953-.951-2.82.689-7.54 6.634-10.52 1.17-.586 3.098-.73 5.782-.433zM88.313 55.79l1.577 13.557 1.227-.194L89.89 55.04z\"\n fill=\"#182333\"\n />\n <path fill=\"#182333\" d=\"M60.94 57.581l-.4 5.13.77 6.178 1.71.264v-9.77z\" />\n </g>\n <circle fill=\"#126BFB\" fillRule=\"nonzero\" cx={137.173} cy={112.043} r={3.2} />\n <g fillRule=\"nonzero\">\n <path\n d=\"M43.77 58.853c2.31 0 4.183 1.808 4.183 4.038 0 2.232-1.873 4.04-4.183 4.04-2.311 0-4.184-1.808-4.184-4.04 0-2.23 1.873-4.038 4.184-4.038z\"\n fill=\"#FFF\"\n />\n <path\n d=\"M43.77 58.533c-2.485 0-4.504 1.948-4.504 4.358 0 2.411 2.019 4.36 4.504 4.36 2.484 0 4.503-1.949 4.503-4.36 0-2.41-2.019-4.358-4.503-4.358zm0 .64c2.136 0 3.863 1.667 3.863 3.718 0 2.053-1.727 3.72-3.863 3.72-2.137 0-3.864-1.667-3.864-3.72 0-2.051 1.727-3.718 3.864-3.718z\"\n fill=\"#18263C\"\n />\n <path\n d=\"M45.232 52.059a14.3 14.3 0 00-1.462-.074c-3.803-.007-7.44 1.511-10.055 4.196l-4.143-4.001a19.825 19.825 0 0110.173-5.452l5.487 5.33z\"\n fill=\"#FFF\"\n />\n <path\n d=\"M46.116 52.471l-6.269-6.09-.165.033a20.145 20.145 0 00-10.337 5.54l-.228.23 4.605 4.449.222-.228c2.554-2.623 6.108-4.107 9.825-4.1.484 0 .962.024 1.43.072l.917.094zm-6.471-5.395l4.737 4.602-.11-.005a14.98 14.98 0 00-.502-.008l-.402.005c-3.609.093-7.045 1.527-9.602 4.008l-.055.054-3.681-3.554-.23.227a19.489 19.489 0 019.533-5.262l.312-.067z\"\n fill=\"#18263C\"\n />\n <path\n d=\"M43.35 34.614c8.68-.016 17 3.373 23.074 9.4l-4.142 3.999c-3.889-3.88-8.942-6.462-14.435-7.374l-6.153-5.985c.548-.028 1.102-.041 1.658-.041l-.001.001z\"\n fill=\"#FFF\"\n />\n <path\n d=\"M44.103 34.302l.01-.01h-.761c-.562 0-1.12.015-1.674.042l-.734.036 6.68 6.498.17.086c5.428.902 10.42 3.453 14.262 7.285l.222.222 4.604-4.444-.232-.23-.379-.37c-5.846-5.611-13.653-8.86-21.85-9.108l-.318-.007zm-.752.632l.537.003c8.222.12 16.08 3.32 21.932 8.934l.145.14-3.682 3.555-.16-.156c-3.752-3.594-8.515-6.027-13.687-6.992L48 40.34l-5.548-5.395.35-.009.55-.003z\"\n fill=\"#18263C\"\n />\n <path\n d=\"M30.11 37.357l4.477 4.354a26.514 26.514 0 00-9.75 5.897l-4.141-4a32.337 32.337 0 019.412-6.251h.001z\"\n fill=\"#FFF\"\n />\n <path\n d=\"M30.24 37.037h-.132l-.128.026a32.657 32.657 0 00-9.505 6.314l-.241.23 4.601 4.444.223-.212a26.194 26.194 0 019.632-5.825l.494-.168-4.945-4.81zm-.198.7l3.952 3.843-.063.023a26.836 26.836 0 00-8.89 5.378l-.2.186-3.682-3.556-.242.229a31.991 31.991 0 018.712-5.917l.413-.186z\"\n fill=\"#18263C\"\n />\n <path\n d=\"M43.35 22.495c12.005-.022 23.516 4.644 31.95 12.95l-4.143 4c-7.332-7.243-17.353-11.313-27.805-11.295-2.605 0-5.15.248-7.61.72l-4.821-4.686a46.274 46.274 0 0112.43-1.689z\"\n fill=\"#FFF\"\n />\n <path\n d=\"M43.975 22.179l-.622-.004-.845.007a46.59 46.59 0 00-11.673 1.694l-.537.15 5.34 5.19.164-.032a40.083 40.083 0 017.55-.714c10.369-.018 20.308 4.019 27.58 11.202l.223.22 4.603-4.445-.234-.23c-8.343-8.217-19.68-12.9-31.55-13.038zm-.62.636l.614.004.615.01c11.273.284 22.02 4.723 30.056 12.42l.2.195-3.683 3.554.225.218c-7.392-7.301-17.494-11.405-28.03-11.386l-.865.009a40.712 40.712 0 00-5.966.565l-.675.12-4.298-4.178-.542.146a45.946 45.946 0 0111.51-1.67l.838-.007z\"\n fill=\"#18263C\"\n />\n <path\n d=\"M25.13 32.517a38.982 38.982 0 00-9.166 6.521l-4.144-4a44.79 44.79 0 019.024-6.688l4.286 4.167z\"\n fill=\"#FFF\"\n />\n <path\n d=\"M25.673 32.598l-4.777-4.644-.209.117a45.11 45.11 0 00-9.088 6.737l-.24.23 4.604 4.444.222-.213a38.662 38.662 0 019.091-6.467l.397-.204zm-4.88-3.85l3.797 3.69-.28.149a39.303 39.303 0 00-8.015 5.702l-.33.307-3.682-3.554-.241.228a44.43 44.43 0 018.263-6.241l.489-.282z\"\n fill=\"#18263C\"\n />\n <path\n d=\"M56.683 53.348l-3.5 3.48-29.827-29.66a44.441 44.441 0 014.91-2.08l28.417 28.26z\"\n fill=\"#D96156\"\n />\n <path\n d=\"M57.137 53.348L28.349 24.719l-.19.067a44.761 44.761 0 00-4.945 2.096l-.4.199 30.37 30.198 3.953-3.931zm-28.952-27.89l28.043 27.889-3.045 3.03L23.9 27.258l-.403.196a44.167 44.167 0 014.047-1.763l.64-.234z\"\n fill=\"#18263C\"\n />\n </g>\n </g>\n </g>\n </svg>\n )\n}\n\nconst ForwardRef = React.forwardRef(SvgIllustrationOffline)\nconst MemoForwardRef = React.memo(ForwardRef)\nexport default MemoForwardRef\n"]}
|
|
1
|
+
{"version":3,"file":"illustration-offline.js","sourceRoot":"","sources":["../../src/svg-components/illustration-offline.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA8B;AAE9B,SAAS,sBAAsB,CAC7B,KAAoC,EACpC,MAAiC;IAEjC,OAAO,CACL,2CACE,OAAO,EAAC,aAAa,EACrB,KAAK,EAAC,4BAA4B,EAClC,UAAU,EAAC,8BAA8B,EACzC,GAAG,EAAE,MAAM,IACP,KAAK;QAET,wCAAa,wBAAwB;YACnC,8BAAM,CAAC,EAAC,OAAO,EAAC,CAAC,EAAC,OAAO,EAAC,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,EAAE,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,GAAG;YAC5E,gCAAQ,EAAE,EAAC,SAAS,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,SAAS,EAAC,IAAI,EAAC,SAAS,GAAG;YAC1D,8BAAM,EAAE,EAAC,kBAAkB,EAAC,SAAS,EAAC,gBAAgB,EAAC,CAAC,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,EAAC,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK;gBACzF,gCAAQ,EAAE,EAAC,SAAS,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,SAAS,EAAC,IAAI,EAAC,OAAO,GAAG,CACnD;YACP,2BAAG,IAAI,EAAC,wBAAwB;gBAC9B,2CACY,SAAS,eACT,SAAS,EACnB,CAAC,EAAC,0JAA0J,EAC5J,IAAI,EAAC,OAAO,GACZ;gBACF,2CACY,SAAS,eACT,SAAS,EACnB,CAAC,EAAC,8bAA8b,EAChc,IAAI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AAO,EAAC,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,EAAE,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,GAAG,CACnE,CACN,CACH,CACP,CAAA;AACH,CAAC;AAED,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAA;AAC3D,MAAM,cAAc,GAAG,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;AAC7C,kBAAe,cAAc,CAAA","sourcesContent":["import * as React from 'react'\n\nfunction SvgIllustrationOffline(\n props: React.SVGProps<SVGSVGElement>,\n svgRef?: React.Ref<SVGSVGElement>\n) {\n return (\n <svg\n viewBox=\"0 0 160 160\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlnsXlink=\"http://www.w3.org/1999/xlink\"\n ref={svgRef}\n {...props}\n >\n <g clip-path=\"url(#clip0_1553_13589)\">\n <rect x=\"-1446\" y=\"-3256\" width=\"1920\" height=\"8289\" rx=\"20\" fill=\"white\" />\n <circle cx=\"76.0001\" cy=\"80\" r=\"71.4667\" fill=\"#F5F5F5\" />\n <mask id=\"mask0_1553_13589\" maskUnits=\"userSpaceOnUse\" x=\"4\" y=\"8\" width=\"144\" height=\"144\">\n <circle cx=\"76.0001\" cy=\"80\" r=\"71.4667\" fill=\"white\" />\n </mask>\n <g mask=\"url(#mask0_1553_13589)\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M73.0583 99.7161L76.9277 85.9863H86.1232L89.8476 99.7161C89.8476 99.7161 83.7382 104.087 80.839 104.087C77.9398 104.087 73.0583 99.7161 73.0583 99.7161Z\"\n fill=\"white\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M76.6852 85.6664H86.3678L90.2145 99.847L89.6378 100.257C85.7134 103.021 82.794 104.407 80.8388 104.407C78.8058 104.407 76.153 102.917 72.8447 99.9545L72.696 99.8214L76.6852 85.6664ZM89.4794 99.5837L85.8772 86.3058H77.169L73.4196 99.6082L73.6003 99.769C76.5372 102.345 78.8956 103.671 80.6468 103.762L80.8388 103.767C82.2079 103.767 84.1883 102.978 86.7616 101.395L87.4463 100.964C87.9118 100.665 88.3951 100.342 88.8962 99.9947L89.4794 99.5837Z\"\n fill=\"#18263C\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M49.2475 91.832C63.116 91.832 73.0583 97.9861 73.0583 97.9861C73.0583 97.9861 82.8584 102.866 89.8475 97.3492C96.8366 91.832 105.287 82.5201 117.795 82.5201C117.795 82.5201 132.915 96.3085 132.915 101.869C132.915 107.429 124.388 106.812 117.795 109.692C117.795 109.692 127.156 147.474 121.639 152.811L45.5463 154.55C45.5463 154.55 43.3583 133.505 49.7655 117.031L45.5463 123.036L22.9248 110.73C22.9248 110.73 35.3791 91.832 49.2475 91.832Z\"\n fill=\"#D6DAE1\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M117.795 82.2002L118.011 82.2838C118.17 82.4284 118.327 82.5724 118.483 82.7157L119.405 83.5676L120.298 84.4032L121.16 85.2226L121.993 86.0259L122.796 86.8131L123.569 87.5841L124.312 88.3391L125.026 89.078C125.143 89.1998 125.258 89.3209 125.372 89.4414L126.041 90.1562C126.15 90.274 126.258 90.3912 126.364 90.5077L126.989 91.1985L127.583 91.8733L128.148 92.5322C128.24 92.6407 128.33 92.7485 128.42 92.8557L128.94 93.4906C129.445 94.1177 129.906 94.7208 130.322 95.3002L130.723 95.8717C132.398 98.3138 133.235 100.31 133.235 101.869C133.235 104.644 131.7 105.961 127.608 107.175L126.991 107.352L126.336 107.528L125.283 107.794L123.255 108.288L122.322 108.525L121.464 108.758C120.364 109.066 119.435 109.371 118.566 109.717L118.171 109.879L118.473 111.107L118.996 113.276L119.494 115.388L119.965 117.443L120.411 119.442L120.693 120.743L121.095 122.647L121.349 123.885L121.708 125.695L121.933 126.871L122.146 128.021L122.348 129.146L122.628 130.787L122.801 131.85L122.962 132.887L123.112 133.9L123.25 134.888L123.376 135.85L123.491 136.788L123.594 137.7L123.685 138.588L123.765 139.45L123.834 140.288L123.89 141.1L123.935 141.888L123.969 142.651L123.99 143.389C123.993 143.51 123.995 143.63 123.997 143.748L124.001 144.449C124.001 144.678 123.998 144.903 123.994 145.124L123.975 145.775C123.971 145.881 123.966 145.987 123.961 146.091L123.924 146.704C123.903 147.005 123.878 147.296 123.848 147.578L123.782 148.129C123.699 148.758 123.591 149.336 123.46 149.863L123.342 150.303C123.011 151.442 122.555 152.316 121.974 152.927L121.862 153.041L121.646 153.131L45.2583 154.877L45.1343 153.645C43.9446 141.165 45.0368 129.892 48.413 119.828L48.6217 119.214L45.6439 123.454L22.4658 110.845L23.0264 109.999C31.2744 97.6886 40.0134 91.512 49.2473 91.512C58.55 91.512 66.5453 93.5785 73.2008 97.6997C79.6297 100.901 85.0939 100.694 89.6491 97.0981L90.2578 96.6057L91.0953 95.9131L95.8619 91.9097L96.65 91.262C104.187 85.1558 110.279 82.2002 117.795 82.2002ZM117.672 82.8413L117.308 82.8445C110.029 82.9734 104.053 86.0056 96.5516 92.1682L96.3847 92.3067L93.5238 94.7144L90.8503 96.947L90.1727 97.4993L89.7587 97.8218C85.0525 101.368 79.4201 101.512 72.8897 98.2582C66.3145 94.1883 58.4359 92.152 49.2473 92.152C40.1279 92.152 31.4413 98.3885 23.1918 110.906L23.3844 110.616L45.4484 122.618L51.0193 114.69L50.0636 117.147C45.8114 128.08 44.4108 140.536 45.8644 154.517L45.8345 154.224L121.502 152.494L121.622 152.364C122.017 151.91 122.345 151.304 122.606 150.548L122.731 150.158C122.89 149.621 123.019 149.016 123.119 148.345L123.188 147.83L123.246 147.289L123.293 146.723C123.297 146.67 123.3 146.616 123.304 146.561C123.307 146.518 123.309 146.475 123.312 146.431L123.342 145.828C123.345 145.761 123.347 145.695 123.349 145.628C123.351 145.591 123.352 145.554 123.353 145.517L123.366 144.876L123.368 144.21C123.367 144.097 123.366 143.983 123.365 143.868L123.35 143.165C123.346 143.046 123.343 142.926 123.338 142.804L123.307 142.064L123.264 141.298L123.21 140.508C123.2 140.374 123.189 140.239 123.178 140.103L123.107 139.276L123.025 138.423L122.932 137.545L122.827 136.643L122.711 135.716L122.584 134.764L122.445 133.787L122.296 132.785L122.135 131.758L121.872 130.172L121.584 128.529L121.27 126.831L121.047 125.668L120.813 124.481L120.567 123.268L120.178 121.403L119.763 119.482L119.322 117.506L119.014 116.157L118.531 114.088L117.847 111.243L117.42 109.506L117.995 109.259C119.202 108.755 120.49 108.344 122.155 107.908L123.102 107.666L125.837 106.996L126.502 106.822C126.609 106.793 126.715 106.764 126.819 106.735L127.424 106.562C127.522 106.533 127.618 106.504 127.712 106.475L128.26 106.3C131.433 105.245 132.595 104.075 132.595 101.869C132.595 100.583 131.948 98.9321 130.655 96.9203L130.303 96.3873C130.058 96.0266 129.794 95.6549 129.511 95.2724L129.071 94.6905L128.602 94.0923L128.103 93.4779L127.575 92.8473L127.018 92.2004L126.431 91.5374C126.331 91.4256 126.229 91.313 126.127 91.1998L125.496 90.5126L124.837 89.8092L124.147 89.0897L123.059 87.9804L122.296 87.2207L121.505 86.445L120.684 85.6533L119.833 84.8456L118.954 84.022L117.672 82.8413Z\"\n fill=\"#182333\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M45.1575 122.769C45.1575 122.769 34.171 146.815 35.454 151.467C36.737 156.118 47.4973 169.933 49.3809 173.184C51.2645 176.435 58.1657 180.175 56.2081 185.194C54.2506 190.214 18.918 174.897 14.2291 167.986C9.54022 161.075 5.48521 139.958 23.7128 111.054L45.1575 122.769Z\"\n fill=\"white\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M23.5963 110.628L45.5662 122.63L44.3809 125.243L43.3801 127.489L42.6694 129.11L41.9928 130.678L41.5607 131.693L40.9411 133.171L40.3556 134.594L39.8043 135.963L39.4557 136.846L38.9614 138.125L38.5012 139.349L38.0752 140.519L37.6834 141.634L37.4412 142.347L37.1064 143.371L36.9022 144.024L36.7131 144.652L36.4581 145.548C36.4317 145.645 36.4059 145.741 36.3807 145.835L36.2373 146.39L36.109 146.921C36.0889 147.007 36.0695 147.093 36.0506 147.177L35.9452 147.671L35.855 148.141L35.78 148.586C35.7687 148.658 35.7581 148.729 35.7482 148.799L35.696 149.208L35.659 149.592C35.6541 149.654 35.6498 149.715 35.6462 149.775L35.632 150.122C35.6221 150.624 35.6635 151.044 35.7563 151.38C35.8634 151.768 36.0389 152.227 36.281 152.755L36.5049 153.226L36.7611 153.73C36.8519 153.904 36.9481 154.083 37.0496 154.269L37.37 154.841C37.426 154.939 37.4834 155.039 37.5421 155.14L37.9099 155.763L38.3091 156.421L38.7394 157.112L39.2006 157.836L39.6924 158.594L40.2145 159.386L41.0543 160.636L41.6514 161.512L42.6257 162.92L46.4896 168.398L48.5275 171.333L49.2967 172.468L49.5698 172.887L49.7594 173.199C49.8733 173.379 50.0058 173.566 50.1575 173.761C50.4904 174.19 50.9047 174.649 51.4688 175.226L53.3278 177.088C56.4731 180.315 57.5746 182.554 56.5001 185.309C56.0821 186.381 54.4366 186.692 51.8737 186.363L51.349 186.289C51.3037 186.282 51.2581 186.275 51.2123 186.267C51.1677 186.26 51.1228 186.253 51.0776 186.245L50.5173 186.146L49.9338 186.03L49.3278 185.897L48.6999 185.749C48.5934 185.723 48.486 185.696 48.3778 185.669L47.7179 185.496C47.6062 185.466 47.4936 185.436 47.3802 185.404L46.6896 185.209L45.9792 184.998L45.2496 184.772L44.5013 184.532L43.7349 184.276L42.9509 184.007L42.1499 183.723L41.3325 183.425L40.4991 183.114C40.3589 183.061 40.218 183.007 40.0766 182.953L38.7868 182.45L37.4648 181.918L36.5667 181.548L35.5949 181.138C35.4226 181.065 35.2507 180.992 35.0791 180.918L34.0545 180.472L33.04 180.022L32.0369 179.566L31.0465 179.107L30.07 178.645L29.1087 178.18L28.1639 177.714C28.0079 177.636 27.8526 177.558 27.698 177.48L26.7802 177.012L25.8819 176.543L25.0044 176.075L24.1491 175.609L23.317 175.144L22.5096 174.681L21.728 174.222L20.9735 173.767L20.2473 173.316L19.5508 172.87C19.4372 172.796 19.325 172.722 19.214 172.649L18.5642 172.212L17.9472 171.782C17.1469 171.214 16.4372 170.665 15.8316 170.143L15.397 169.758C14.7752 169.187 14.2892 168.652 13.9582 168.164C11.1008 163.953 9.44411 156.482 10.0519 147.744C10.8291 136.57 15.1117 124.082 23.436 110.882L23.5963 110.628ZM45.3691 167.913L41.7658 162.805L40.5183 160.986L39.9434 160.133L39.1385 158.917L38.6404 158.149L38.1735 157.415L37.7378 156.714L37.3336 156.048L36.9609 155.415C36.9015 155.312 36.8433 155.21 36.7865 155.111L36.4616 154.528L36.1688 153.978L35.9082 153.462C35.5416 152.713 35.2844 152.076 35.1394 151.55C35.0951 151.39 35.0611 151.213 35.0374 151.021L35.0096 150.72C34.9929 150.46 34.9923 150.174 35.0078 149.864L35.0342 149.48L35.076 149.071C35.0842 149.001 35.0931 148.93 35.1027 148.858L35.1677 148.414C35.1798 148.338 35.1926 148.261 35.206 148.183L35.2942 147.702L35.3979 147.198C35.4165 147.112 35.4357 147.025 35.4556 146.936L35.5824 146.396L35.7248 145.831L35.8827 145.243L36.056 144.63L36.2448 143.993L36.4491 143.332L36.6688 142.646L37.0274 141.573L37.4209 140.445L37.7026 139.662L37.9997 138.856L38.4745 137.6L38.9841 136.29L39.5285 134.925L40.1078 133.506L40.7219 132.031L41.3709 130.501L42.0547 128.917L42.7734 127.277L43.7859 125.005L44.7365 122.905L23.8173 111.477L23.5136 111.965C15.7019 124.557 11.6047 136.465 10.7377 147.16L10.6904 147.788C10.0919 156.392 11.7173 163.721 14.4878 167.805C15.0157 168.583 15.976 169.497 17.2792 170.498L17.8185 170.903L18.3931 171.317L19.0018 171.738C19.106 171.809 19.2116 171.88 19.3185 171.952L19.9758 172.384L20.664 172.822L21.3817 173.266L22.1277 173.715C22.2544 173.79 22.3821 173.865 22.511 173.941L23.2971 174.395L24.1083 174.853L24.9433 175.313L25.801 175.774L26.6799 176.237C26.8281 176.314 26.9771 176.392 27.127 176.469L28.0355 176.932L28.9621 177.394C29.118 177.471 29.2745 177.548 29.4318 177.624L30.3832 178.084L31.3496 178.542L32.8243 179.222C32.9897 179.297 33.1556 179.372 33.322 179.446L34.3255 179.892L35.3389 180.333L36.3609 180.768L37.2458 181.136L38.119 181.492L38.9798 181.836L39.8275 182.167L40.6615 182.485L41.8851 182.938L43.0738 183.361L43.8458 183.626L44.6005 183.877L45.3374 184.114L46.0557 184.337L46.7547 184.546L47.4338 184.74L48.0922 184.92L48.7292 185.085C48.8336 185.111 48.937 185.137 49.0396 185.162L49.6433 185.304C49.7421 185.326 49.8398 185.348 49.9366 185.369L50.5056 185.489L51.0505 185.592L51.5706 185.68L52.0652 185.752C52.3863 185.795 52.69 185.827 52.9754 185.848L53.3895 185.871C54.7901 185.923 55.6724 185.67 55.9039 185.077C56.8841 182.563 55.7856 180.467 52.591 177.252L50.772 175.426C50.3106 174.946 49.9525 174.541 49.6519 174.154C49.4329 173.872 49.2488 173.603 49.0979 173.343L49.062 173.283L48.7402 172.785L47.5346 171.019L45.3691 167.913Z\"\n fill=\"#182333\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M117.796 82.5202C117.796 82.5202 139.673 71.6083 134.609 65.8656C129.546 60.123 92.8466 61.7593 92.8466 61.7593C92.8466 61.7593 85.2972 64.0689 83.8715 61.7593C82.4458 59.4497 81.25 56.4405 87.7493 55.3124C94.2486 54.1843 91.4636 57.0467 99.188 54.1843C106.912 51.3219 135.436 41.0376 146.213 48.175C156.99 55.3124 170.603 81.2114 132.426 99.8733L117.796 82.5202Z\"\n fill=\"white\"\n />\n <path\n d=\"M79.696 82.5201C79.696 82.5201 81.7555 84.9424 83.815 82.5201\"\n stroke=\"#182333\"\n stroke-width=\"0.6\"\n stroke-linecap=\"round\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M75.2252 55.9107C75.2252 55.9107 81.053 52.7888 87.7494 55.3124C89.6568 56.0313 91.2149 57.3506 92.468 58.8699C96.6696 63.9644 96.5025 71.1154 95.8481 77.6865H94.3715L65.9348 77.041C65.9348 77.041 62.5891 60.146 70.0619 57.5775C71.298 57.2275 72.2112 57.9206 72.2112 57.9206L75.2252 55.9107Z\"\n fill=\"#182333\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M69.9607 62.6067C67.6671 64.1981 66.6035 77.2681 66.6035 77.2681C66.6035 77.2681 70.2761 87.4097 77.7425 89.4964C83.9467 90.9012 90.5494 88.3791 93.1722 82.5837C94.3429 79.997 95.2508 77.3677 95.2508 75.4345C95.2508 69.9932 95.0159 64.1208 93.0689 63.0785C91.1634 62.0586 76.845 57.555 73.2313 60.3525C73.1523 60.4136 72.3943 60.7508 72.3266 60.8185C69.1576 63.9869 72.2543 61.0152 69.9607 62.6067Z\"\n fill=\"white\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M72.2768 60.4725L73.0352 60.0995C74.4541 59.0011 77.3686 58.8764 81.2944 59.4942L82.121 59.6325C82.4012 59.6821 82.686 59.7352 82.9754 59.7916L83.8568 59.971L84.5664 60.1263L85.2853 60.2932L86.0078 60.4699L86.7285 60.6545L87.4417 60.845L88.4856 61.1379L89.1563 61.3351L90.1103 61.6293L90.7038 61.8214L91.2567 62.0083L91.7635 62.1879L92.2187 62.3584L92.6169 62.5179L92.9524 62.6646C93.0532 62.7111 93.1426 62.7552 93.2197 62.7965C94.0718 63.2525 94.6426 64.3959 95.0081 66.2587L95.1027 66.7845L95.1875 67.3462L95.2628 67.9439L95.329 68.5777C95.3393 68.6863 95.3492 68.7965 95.3588 68.9081L95.4118 69.5963L95.4566 70.321L95.4935 71.0822C95.4989 71.2122 95.5041 71.3436 95.509 71.4766L95.5345 72.2931L95.553 73.1465L95.5646 74.037L95.5693 74.7366L95.5707 75.4345C95.5707 76.9375 95.1744 78.7313 94.3854 80.8197C91.8365 87.5658 84.7052 91.4011 77.6562 89.8047C72.568 88.3826 68.7833 84.2278 66.3025 77.3771L66.2844 77.2422L66.413 75.7519L66.5498 74.3396L66.6456 73.4414L66.7453 72.5778L66.8487 71.7487L66.956 70.9542L67.0672 70.194C67.086 70.0702 67.105 69.9478 67.1242 69.8268L67.2413 69.1183L67.3624 68.444L67.4874 67.804L67.6166 67.1982L67.7499 66.6266C67.8401 66.2569 67.9331 65.9099 68.0289 65.5856L68.1747 65.1162C68.6432 63.6835 69.1758 62.7617 69.7781 62.3438C69.8848 62.2697 69.9822 62.2038 70.0711 62.1455L70.313 61.9934C70.4947 61.8851 70.6283 61.8219 70.7272 61.797C70.7794 61.7839 70.8327 61.7785 70.8838 61.782L70.9118 61.7865L72.1002 60.5923L72.1518 60.548C72.1618 60.5406 72.1727 60.5332 72.1849 60.5253L72.2768 60.4725ZM94.2959 66.0108C93.9766 64.5747 93.5255 63.6861 92.9177 63.3607C92.2152 62.9847 91.2566 62.5936 90.1372 62.2147L89.447 61.9891C89.211 61.9145 88.9693 61.8406 88.7227 61.7677L87.969 61.5518L87.1904 61.3427L86.3915 61.1418C86.1223 61.0763 85.8505 61.0124 85.5768 60.9503L84.7509 60.7696L83.9184 60.6009L83.0839 60.4456C82.9449 60.4209 82.806 60.3968 82.6673 60.3734L81.8382 60.2405L81.0185 60.1243C77.6291 59.6765 74.6028 59.6954 73.427 60.6056L73.3611 60.6506L72.5586 61.0441L72.5529 61.0447L71.0572 62.5474L70.9788 62.6155L70.9645 62.6384C70.9613 62.6412 70.9573 62.6435 70.9521 62.6453L70.902 62.6506L70.6167 62.6305L70.5886 62.5737L70.3946 62.699L70.143 62.8696C69.6455 63.2148 69.185 64.0432 68.7667 65.3483L68.6289 65.8009L68.4942 66.2889C68.4498 66.4574 68.406 66.6318 68.3627 66.812L68.2344 67.3703L68.1094 67.9638L67.9878 68.5922L67.8696 69.2557L67.7547 69.9541L67.6433 70.6874L67.5354 71.4555L67.4311 72.2585L67.3303 73.0961L67.2332 73.9685L67.1397 74.8755L67.0499 75.817L66.9267 77.2233L67.0748 77.6203C69.4327 83.8629 72.9043 87.6751 77.4765 89.0855L77.813 89.1844C84.5351 90.7064 91.3507 87.0409 93.7867 80.5935C94.5505 78.5718 94.9307 76.8509 94.9307 75.4345L94.9247 74.0421L94.9131 73.1773L94.8947 72.3476L94.8693 71.5533L94.8367 70.7944L94.7968 70.071C94.7895 69.9534 94.7819 69.8372 94.7739 69.7226L94.7226 69.0527L94.6634 68.4185L94.5963 67.8203L94.521 67.2581C94.4812 66.986 94.4384 66.7275 94.3923 66.4825L94.2959 66.0108Z\"\n fill=\"#18263C\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M73.0583 59.4779C73.0583 59.4779 75.1592 61.5317 76.2529 62.3476C82.1536 66.7499 91.9689 68.9233 96.1017 63.0519C97.7134 60.7624 98.8945 54.3014 96.8367 56.5461C94.7788 58.7908 88.8682 55.6238 86.5643 55.6238C79.0879 55.6238 73.0583 59.4779 73.0583 59.4779Z\"\n fill=\"#182333\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M77.7424 60.2734C77.7424 60.2734 67.2545 76.944 65.326 71.2263C64.375 68.4066 66.0151 63.6866 71.9604 60.7069C73.7163 59.8268 77.7424 60.2734 77.7424 60.2734Z\"\n fill=\"#182333\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M92.8467 64.3229L94.423 77.8803L95.6507 77.6866L94.423 63.5723L92.8467 64.3229Z\"\n fill=\"#182333\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M65.4735 66.1147L65.074 71.2441L65.8443 77.4227L67.5538 77.6866V67.9168L65.4735 66.1147Z\"\n fill=\"#182333\"\n />\n </g>\n <circle cx=\"141.707\" cy=\"120.576\" r=\"3.2\" fill=\"#126BFB\" />\n <path\n d=\"M48.303 67.3859C50.6136 67.3859 52.4861 69.1941 52.4861 71.4246C52.4861 73.6562 50.6136 75.4645 48.303 75.4645C45.9924 75.4645 44.1199 73.6562 44.1199 71.4246C44.1199 69.1942 45.9925 67.3859 48.303 67.3859V67.3859Z\"\n fill=\"white\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M43.7998 71.4245C43.7998 69.0147 45.8182 67.0658 48.3029 67.0658C50.7876 67.0658 52.8061 69.0147 52.8061 71.4245C52.8061 73.8354 50.7879 75.7845 48.3029 75.7845C45.818 75.7845 43.7998 73.8354 43.7998 71.4245ZM52.1661 71.4245C52.1661 69.3732 50.4391 67.7058 48.3029 67.7058C46.1668 67.7058 44.4398 69.3733 44.4398 71.4245C44.4398 73.4768 46.1666 75.1445 48.3029 75.1445C50.4393 75.1445 52.1661 73.4768 52.1661 71.4245Z\"\n fill=\"#18263C\"\n />\n <path\n d=\"M49.7655 60.592C49.2856 60.5427 48.7969 60.518 48.303 60.518C44.5001 60.5113 40.8626 62.0296 38.2482 64.7147L34.1057 60.713C36.855 57.941 40.3999 56.0408 44.2786 55.261L49.7655 60.592Z\"\n fill=\"white\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M44.3807 54.9141L50.6494 61.0047L49.7327 60.9104C49.2643 60.8622 48.7864 60.838 48.3024 60.838C44.5857 60.8315 41.0313 62.3151 38.4775 64.9379L38.2551 65.1663L33.6501 60.7179L33.8785 60.4877C36.673 57.6701 40.2752 55.7394 44.2155 54.9473L44.3807 54.9141ZM48.9153 60.2108L44.1782 55.6092L43.8663 55.6763C40.2362 56.4992 36.925 58.3249 34.3329 60.9383L34.5633 60.711L38.2443 64.2652L38.2994 64.2115C40.856 61.7307 44.2927 60.2963 47.9013 60.2028L48.303 60.198C48.4714 60.198 48.6392 60.2008 48.8062 60.2064L48.9153 60.2108Z\"\n fill=\"#18263C\"\n />\n <path\n d=\"M47.8841 43.1473L47.8841 43.1473C56.5635 43.1313 64.8826 46.5202 70.958 52.5467L66.8155 56.5459C62.9266 52.6663 57.8731 50.0847 52.3808 49.1721L46.2273 43.1869C46.7757 43.1597 47.3293 43.1461 47.8853 43.1461L47.8841 43.1473Z\"\n fill=\"white\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M48.647 42.8262L48.6369 42.8348L48.9546 42.8426C57.151 43.0896 64.9587 46.339 70.8048 51.9503L71.1833 52.3196L71.4154 52.5499L66.8117 56.9943L66.5894 56.7725C62.7478 52.9401 57.7551 50.3896 52.3282 49.4878L52.1576 49.4015L45.4771 42.9037L46.2114 42.8673C46.7648 42.8399 47.3236 42.8262 47.8852 42.8262H48.647ZM48.4213 43.4708L47.8846 43.4674L47.3352 43.4707L46.9857 43.4791L52.5334 48.8743L52.9696 48.9511C58.1413 49.9166 62.9042 52.3497 66.6568 55.9435L66.8161 56.0988L70.4982 52.5447L70.3537 52.4044C64.5014 46.7909 56.6433 43.5899 48.4213 43.4708Z\"\n fill=\"#18263C\"\n />\n <path\n d=\"M34.6429 45.89L39.1206 50.2447L39.1206 50.2447C35.4648 51.4905 32.136 53.5036 29.3705 56.1411L25.2292 52.1419L25.2292 52.1419C27.9605 49.5316 31.1476 47.4147 34.6416 45.89L34.6429 45.89Z\"\n fill=\"white\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M34.6416 45.5701H34.7728L39.7179 50.3793L39.2238 50.5477C35.6118 51.7786 32.3232 53.7674 29.5913 56.3727L29.3691 56.5846L24.7673 52.1407L25.0081 51.9106C27.7666 49.2743 30.9853 47.1364 34.5136 45.5968L34.6416 45.5701ZM38.5272 50.1137L34.5752 46.2705L34.1623 46.4558C30.9402 47.9413 27.9953 49.941 25.4503 52.3733L25.693 52.1447L29.3741 55.6999L29.5737 55.5139C32.1437 53.1685 35.1656 51.341 38.4649 50.1368L38.5272 50.1137Z\"\n fill=\"#18263C\"\n />\n <path\n d=\"M47.8842 31.0289L47.8842 31.0289C59.8887 31.0068 71.3996 35.6723 79.8335 43.9782L75.691 47.9774C68.3585 40.7351 58.3378 36.6649 47.8855 36.6833C45.2804 36.6833 42.7362 36.9314 40.2758 37.4029L35.4541 32.7174L35.4541 32.7174C39.4966 31.5936 43.6809 31.0252 47.8855 31.0289L47.8842 31.0289Z\"\n fill=\"white\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M47.887 30.7079L48.5083 30.7118C60.3768 30.8498 71.7145 35.5333 80.058 43.7501L80.2918 43.9804L75.6884 48.4246L75.4661 48.205C68.1939 41.0223 58.2543 36.985 47.8854 37.0033C45.3301 37.0033 42.8058 37.2439 40.336 37.7172L40.1723 37.7486L34.8313 32.5584L35.3684 32.4091C39.1666 31.3532 43.0901 30.784 47.0419 30.7157L47.887 30.7079ZM48.5026 31.3518L47.888 31.3479L47.0504 31.3556C43.1553 31.4229 39.2857 31.9843 35.5398 33.0257L36.0813 32.8796L40.3799 37.0577L41.0541 36.9371C43.0151 36.604 45.008 36.4145 47.021 36.3723L47.8849 36.3633C58.3153 36.3449 68.3198 40.3657 75.6919 47.5303L75.6909 47.5313L75.9158 47.7497C75.8414 47.6762 75.7668 47.6031 75.6919 47.5303L79.373 43.9772L79.1733 43.783C71.1375 36.0852 60.3909 31.6458 49.118 31.3631L48.5026 31.3518Z\"\n fill=\"#18263C\"\n />\n <path\n d=\"M29.6636 41.0504C26.2975 42.7777 23.2094 44.9746 20.4975 47.5713L16.3538 43.5721C19.0586 40.98 22.0908 38.7333 25.3777 36.8833L29.6636 41.0504Z\"\n fill=\"white\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M25.4292 36.4871L30.2062 41.1316L29.8097 41.3351C26.471 43.0483 23.4083 45.2271 20.7188 47.8024L20.4967 48.0152L15.8921 43.5713L16.1323 43.341C18.8552 40.7317 21.9087 38.4686 25.2207 36.6044L25.4292 36.4871ZM29.1233 40.9714L25.3271 37.2807L24.8388 37.562C21.841 39.3205 19.0674 41.4148 16.5751 43.8031L16.8161 43.5751L20.4993 47.1292L20.8281 46.8219C23.2412 44.5997 25.9342 42.6839 28.8426 41.1202L29.1233 40.9714Z\"\n fill=\"#18263C\"\n />\n <path\n d=\"M61.2162 61.8812L57.7167 65.3611L27.8894 35.7021C29.4822 34.9114 31.1227 34.2156 32.7996 33.6212L61.2162 61.8812Z\"\n fill=\"#D96156\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M32.8823 33.2523L61.6699 61.8812L57.7166 65.8123L27.3469 35.614L27.747 35.4154C29.3539 34.6177 31.0064 33.9173 32.6926 33.3196L32.8823 33.2523ZM60.7617 61.8802L32.7179 33.9911L32.0782 34.2258C30.7027 34.7448 29.3516 35.3334 28.0316 35.9887L28.4342 35.7927L57.7163 64.9095L60.7617 61.8802Z\"\n fill=\"#18263C\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M100.515 53.3555C107.676 50.7461 114.386 48.6487 121.488 47.1169C121.893 47.0297 122.294 46.9455 122.692 46.8645L123.875 46.6308C134.038 44.6884 141.839 44.8947 146.389 47.9082C152.871 52.201 158.017 60.9282 157.997 69.7032C157.972 81.0716 149.907 91.6843 132.566 100.161L132.342 100.27L117.288 82.4154L118.609 81.7527L119.993 81.041L120.882 80.5733L121.744 80.1108L122.579 79.6538L123.387 79.2021L124.169 78.7557L124.923 78.3148L125.651 77.8792C125.77 77.807 125.888 77.7351 126.004 77.6634L126.692 77.2359L127.352 76.8138C127.46 76.7439 127.567 76.6743 127.673 76.6048L128.293 76.1908L128.887 75.7823L129.454 75.3791L129.994 74.9814L130.508 74.5892C130.591 74.5242 130.674 74.4595 130.755 74.3951L131.228 74.011C131.305 73.9474 131.381 73.8841 131.455 73.821L131.889 73.445C131.959 73.3828 132.028 73.3209 132.096 73.2591L132.49 72.8914C135.344 70.154 135.957 67.8784 134.369 66.0773C133.812 65.4453 132.948 64.8813 131.778 64.3856L131.353 64.2136C131.28 64.1853 131.206 64.1574 131.131 64.1296L130.667 63.9661C130.509 63.9125 130.346 63.8599 130.178 63.8082L129.664 63.656C129.576 63.6311 129.488 63.6065 129.398 63.5821L128.846 63.4384C128.751 63.415 128.656 63.3917 128.56 63.3687L127.97 63.2337C127.869 63.2116 127.768 63.1898 127.665 63.1683L127.037 63.0418L126.384 62.921L125.706 62.8059C125.59 62.7872 125.474 62.7687 125.357 62.7505L124.64 62.644L123.899 62.5433C123.773 62.5269 123.646 62.5109 123.519 62.495L122.739 62.4029L121.935 62.3165L121.105 62.2358L120.25 62.1609L119.37 62.0917L118.464 62.0283L117.059 61.944L116.091 61.895L115.098 61.8518L113.561 61.7977L112.505 61.769L111.424 61.746L109.756 61.7223C109.567 61.7204 109.378 61.7188 109.187 61.7174L107.443 61.7111L105.643 61.7179L104.412 61.7297L102.519 61.7584L100.569 61.8001L99.238 61.8352L96.5012 61.9228L94.3832 62.0039L92.9401 62.0653L92.1802 62.2906C91.6838 62.4329 91.2081 62.5593 90.7529 62.6697L90.0856 62.8232C86.6087 63.5779 84.4481 63.3028 83.5991 61.9274C82.6143 60.3321 82.21 59.1356 82.5305 58.0055C82.9454 56.5426 84.5916 55.5357 87.6944 54.9971C90.0084 54.5955 91.1167 54.6343 92.5708 54.9729L92.9458 55.0578C92.995 55.068 93.044 55.0776 93.0929 55.0866L93.3861 55.1331C93.6309 55.1653 93.8783 55.1811 94.1402 55.1775L94.462 55.1636C94.7923 55.1401 95.1502 55.0868 95.556 54.9987L95.9786 54.8989L96.4377 54.7747L96.9377 54.625L97.4834 54.4488C97.5784 54.4171 97.6755 54.3843 97.7747 54.3503L98.3972 54.132L100.515 53.3555ZM157.357 69.7018C157.376 61.1525 152.346 52.6208 146.036 48.4418L145.78 48.2777C142.579 46.2909 137.717 45.6643 131.538 46.1873L130.524 46.2821C128.132 46.5268 125.555 46.9345 122.81 47.4936L121.623 47.7425C114.083 49.3686 106.98 51.6381 99.299 54.4844L98.9412 54.6159L98.2692 54.856L97.6514 55.0666C97.5527 55.0993 97.456 55.1308 97.3614 55.1611L96.8165 55.3294L96.3145 55.4708C96.0734 55.535 95.8468 55.5895 95.632 55.635L95.2173 55.7141C94.2164 55.8827 93.4685 55.8354 92.654 55.6492L92.2001 55.5457C90.9365 55.2741 89.9081 55.2624 87.8039 55.6277C84.9172 56.1287 83.4785 57.0087 83.1462 58.1801C82.8903 59.0825 83.2474 60.1393 84.1437 61.5912C84.8286 62.7008 86.8667 62.9052 90.2959 62.1221L90.977 61.9582L91.693 61.7695L92.4437 61.5558L92.8322 61.4396L95.0169 61.3476L97.1441 61.2689L99.2139 61.2036L101.226 61.1517L103.181 61.1131L105.079 61.088L106.92 61.0763L108.703 61.078L109.86 61.0866L111.547 61.1108L113.178 61.1484L114.751 61.1996L115.768 61.2412L116.76 61.2888L117.726 61.3425L118.667 61.4021L119.583 61.4678L120.473 61.5395L121.338 61.6173L122.177 61.7011L122.992 61.7909L123.78 61.8868L124.544 61.9887L125.282 62.0967L125.995 62.2108C126.112 62.2303 126.227 62.2501 126.342 62.2701L127.017 62.3933C127.127 62.4143 127.237 62.4356 127.345 62.4571L127.982 62.5894L128.594 62.7278C128.693 62.7514 128.792 62.7752 128.89 62.7993L129.464 62.9468L130.012 63.1004L130.536 63.2601C130.621 63.2872 130.705 63.3146 130.788 63.3422L131.273 63.5111L131.734 63.686L132.169 63.8671C133.366 64.3889 134.259 64.9844 134.849 65.654C136.38 67.3898 136.23 69.4113 134.424 71.7261L134.133 72.0845C133.829 72.4453 133.485 72.813 133.103 73.1876L132.708 73.5646C132.572 73.6911 132.431 73.8183 132.286 73.9463L131.839 74.3326L131.365 74.7236C131.284 74.7892 131.202 74.8549 131.119 74.9209L130.606 75.3189L130.068 75.7216L129.504 76.1289C129.408 76.1972 129.31 76.2657 129.212 76.3344L128.609 76.7488L127.98 77.1679L127.325 77.5918L126.644 78.0203L125.937 78.4536L125.204 78.8916L124.446 79.3344L123.662 79.7819L122.852 80.2341L122.017 80.6911L121.155 81.1529L120.268 81.6194L119.355 82.0907L118.301 82.6237L132.509 99.4749L132.86 99.3027C149.41 91.0689 157.156 80.9098 157.353 70.0756L157.357 69.7018Z\"\n fill=\"#182333\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_1553_13589\">\n <rect x=\"-1446\" y=\"-3256\" width=\"1920\" height=\"8289\" rx=\"20\" fill=\"white\" />\n </clipPath>\n </defs>\n </svg>\n )\n}\n\nconst ForwardRef = React.forwardRef(SvgIllustrationOffline)\nconst MemoForwardRef = React.memo(ForwardRef)\nexport default MemoForwardRef\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cascader.d.ts","sourceRoot":"","sources":["../../../src/tntd-cascader/rc-cascader/Cascader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAmB,6BAA6B,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAE9F,OAAO,KAAK,EAAoB,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAI3E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAS9B,OAAO,EAAkB,UAAU,EAAE,WAAW,EAAyB,MAAM,oBAAoB,CAAA;AAGnG,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"Cascader.d.ts","sourceRoot":"","sources":["../../../src/tntd-cascader/rc-cascader/Cascader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAmB,6BAA6B,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAE9F,OAAO,KAAK,EAAoB,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAI3E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAS9B,OAAO,EAAkB,UAAU,EAAE,WAAW,EAAyB,MAAM,oBAAoB,CAAA;AAGnG,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAEtC,OAAO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mBAAmB,CAAC,UAAU,CAAC,GAC/B,qBAAqB,CAAC,UAAU,CAAC,CAAA;AAErC,oBAAY,qBAAqB,CAAC,UAAU,SAAS,cAAc,GAAG,iBAAiB,IAAI,IAAI,CAC7F,mBAAmB,CAAC,UAAU,CAAC,GAAG,qBAAqB,CAAC,UAAU,CAAC,EACnE,UAAU,CACX,GAAG;IACF,QAAQ,CAAC,EAAE,CACT,KAAK,EAAE,eAAe,GAAG,eAAe,EAAE,EAC1C,aAAa,EAAE,UAAU,EAAE,GAAG,UAAU,EAAE,EAAE,KACzC,IAAI,CAAA;CACV,CAAA;AAED,oBAAY,WAAW,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAkBzD,QAAA,MAAM,QAAQ;;MA0WT,MAAM,YAAY;;iBAER,kBAAkB;gBACnB,iBAAiB;CAC9B,CAAA;AAQD,eAAe,QAAQ,CAAA"}
|
|
@@ -21,6 +21,7 @@ var _OptionList = _interopRequireDefault(require("./OptionList"));
|
|
|
21
21
|
var _commonUtil = require("./utils/commonUtil");
|
|
22
22
|
var _treeUtil = require("./utils/treeUtil");
|
|
23
23
|
var _warningPropsUtil = _interopRequireWildcard(require("./utils/warningPropsUtil"));
|
|
24
|
+
var _prevLocale = require("../../prev-locale");
|
|
24
25
|
require("./index.less");
|
|
25
26
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
26
27
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
@@ -43,6 +44,7 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
43
44
|
}
|
|
44
45
|
return t;
|
|
45
46
|
};
|
|
47
|
+
var defaultPlacehlder = (0, _prevLocale.getText)('select', (0, _prevLocale.getLanguage)());
|
|
46
48
|
function isMultipleValue(value) {
|
|
47
49
|
return Array.isArray(value) && Array.isArray(value[0]);
|
|
48
50
|
}
|
|
@@ -303,7 +305,9 @@ var Cascader = React.forwardRef(function (props, ref) {
|
|
|
303
305
|
};
|
|
304
306
|
return React.createElement(_context["default"].Provider, {
|
|
305
307
|
value: cascaderContext
|
|
306
|
-
}, React.createElement(_rcSelect.BaseSelect, Object.assign({
|
|
308
|
+
}, React.createElement(_rcSelect.BaseSelect, Object.assign({
|
|
309
|
+
placeholder: defaultPlacehlder
|
|
310
|
+
}, restProps, {
|
|
307
311
|
// MISC
|
|
308
312
|
ref: ref,
|
|
309
313
|
id: mergedId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cascader.js","sourceRoot":"","sources":["../../../src/tntd-cascader/rc-cascader/Cascader.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,yCAAsC;AAEtC,sEAA6C;AAC7C,+DAA4D;AAC5D,sFAA6D;AAC7D,6CAA8B;AAC9B,wDAAuC;AACvC,gFAAuD;AACvD,sEAA6C;AAC7C,gFAAuD;AACvD,oEAA2C;AAC3C,8EAAqD;AACrD,gFAAuD;AACvD,8DAAqC;AACrC,mDAAmG;AACnG,+CAAsE;AACtE,6EAA2E;AAC3E,qBAAsC;AACtC,wBAAqB;AAoIrB,SAAS,eAAe,CAAC,KAAgB;IACvC,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;AACxD,CAAC;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ourcesContent":["// @ts-nocheck\nimport type { BaseSelectProps, BaseSelectPropsWithoutPrivate, BaseSelectRef } from 'rc-select'\nimport { BaseSelect } from 'rc-select'\nimport type { DisplayValueType, Placement } from 'rc-select/lib/BaseSelect'\nimport useId from 'rc-select/lib/hooks/useId'\nimport { conductCheck } from 'rc-tree/lib/utils/conductUtil'\nimport useMergedState from 'rc-util/lib/hooks/useMergedState'\nimport * as React from 'react'\nimport CascaderContext from './context'\nimport useDisplayValues from './hooks/useDisplayValues'\nimport useEntities from './hooks/useEntities'\nimport useMissingValues from './hooks/useMissingValues'\nimport useRefFunc from './hooks/useRefFunc'\nimport useSearchConfig from './hooks/useSearchConfig'\nimport useSearchOptions from './hooks/useSearchOptions'\nimport OptionList from './OptionList'\nimport { fillFieldNames, SHOW_CHILD, SHOW_PARENT, toPathKey, toPathKeys } from './utils/commonUtil'\nimport { formatStrategyValues, toPathOptions } from './utils/treeUtil'\nimport warningProps, { warningNullOptions } from './utils/warningPropsUtil'\nimport { RenderItem } from './context'\nimport './index.less'\n\nexport interface ShowSearchType<OptionType extends BaseOptionType = DefaultOptionType> {\n filter?: (inputValue: string, options: OptionType[], fieldNames: FieldNames) => boolean\n render?: (\n inputValue: string,\n path: OptionType[],\n prefixCls: string,\n fieldNames: FieldNames\n ) => React.ReactNode\n sort?: (a: OptionType[], b: OptionType[], inputValue: string, fieldNames: FieldNames) => number\n matchInputWidth?: boolean\n limit?: number | false\n}\n\nexport interface FieldNames {\n label?: string\n value?: string\n children?: string\n}\n\nexport interface InternalFieldNames extends Required<FieldNames> {\n key: string\n}\n\nexport type SingleValueType = (string | number)[]\n\nexport type ValueType = SingleValueType | SingleValueType[]\nexport type ShowCheckedStrategy = typeof SHOW_PARENT | typeof SHOW_CHILD\n\nexport interface BaseOptionType {\n disabled?: boolean\n [name: string]: any\n}\nexport interface DefaultOptionType extends BaseOptionType {\n label: React.ReactNode\n value?: string | number | null\n children?: DefaultOptionType[]\n}\n\ninterface BaseCascaderProps<OptionType extends BaseOptionType = DefaultOptionType>\n extends Omit<\n BaseSelectPropsWithoutPrivate,\n 'tokenSeparators' | 'labelInValue' | 'mode' | 'showSearch'\n > {\n // MISC\n id?: string\n prefixCls?: string\n fieldNames?: FieldNames\n children?: React.ReactElement\n\n // Value\n value?: ValueType\n defaultValue?: ValueType\n changeOnSelect?: boolean\n displayRender?: (label: string[], selectedOptions?: OptionType[]) => React.ReactNode\n checkable?: boolean | React.ReactNode\n showCheckedStrategy?: ShowCheckedStrategy\n\n // Search\n showSearch?: boolean | ShowSearchType<OptionType>\n searchValue?: string\n onSearch?: (value: string) => void\n\n // Trigger\n expandTrigger?: 'hover' | 'click'\n\n // Options\n options?: OptionType[]\n /** @private Internal usage. Do not use in your production. */\n dropdownPrefixCls?: string\n loadData?: (selectOptions: OptionType[]) => void\n\n // Open\n /** @deprecated Use `open` instead */\n popupVisible?: boolean\n\n /** @deprecated Use `dropdownClassName` instead */\n popupClassName?: string\n dropdownClassName?: string\n dropdownMenuColumnStyle?: React.CSSProperties\n\n /** @deprecated Use `placement` instead */\n popupPlacement?: Placement\n placement?: Placement\n\n /** @deprecated Use `onDropdownVisibleChange` instead */\n onPopupVisibleChange?: (open: boolean) => void\n onDropdownVisibleChange?: (open: boolean) => void\n renderItem?: (item: RenderItem) => React.ReactNode\n\n // Icon\n expandIcon?: React.ReactNode\n loadingIcon?: React.ReactNode\n}\n\ntype OnSingleChange<OptionType> = (value: SingleValueType, selectOptions: OptionType[]) => void\ntype OnMultipleChange<OptionType> = (\n value: SingleValueType[],\n selectOptions: OptionType[][]\n) => void\n\nexport interface SingleCascaderProps<OptionType extends BaseOptionType = DefaultOptionType>\n extends BaseCascaderProps<OptionType> {\n checkable?: false\n\n onChange?: OnSingleChange<OptionType>\n}\n\nexport interface MultipleCascaderProps<OptionType extends BaseOptionType = DefaultOptionType>\n extends BaseCascaderProps<OptionType> {\n checkable: true | React.ReactNode\n\n onChange?: OnMultipleChange<OptionType>\n}\n\nexport type CascaderProps<OptionType extends BaseOptionType = DefaultOptionType> =\n | SingleCascaderProps<OptionType>\n | MultipleCascaderProps<OptionType>\n\nexport type InternalCascaderProps<OptionType extends BaseOptionType = DefaultOptionType> = Omit<\n SingleCascaderProps<OptionType> | MultipleCascaderProps<OptionType>,\n 'onChange'\n> & {\n onChange?: (\n value: SingleValueType | SingleValueType[],\n selectOptions: OptionType[] | OptionType[][]\n ) => void\n}\n\nexport type CascaderRef = Omit<BaseSelectRef, 'scrollTo'>\n\nfunction isMultipleValue(value: ValueType): value is SingleValueType[] {\n return Array.isArray(value) && Array.isArray(value[0])\n}\n\nfunction toRawValues(value: ValueType): SingleValueType[] {\n if (!value) {\n return []\n }\n\n if (isMultipleValue(value)) {\n return value\n }\n\n return (value.length === 0 ? [] : [value]).map((val) => (Array.isArray(val) ? val : [val]))\n}\n\nconst Cascader = React.forwardRef<CascaderRef, InternalCascaderProps>((props, ref) => {\n const {\n // MISC\n id,\n prefixCls = 'rc-cascader',\n fieldNames,\n\n // Value\n defaultValue,\n value,\n changeOnSelect,\n onChange,\n displayRender,\n checkable,\n\n // Search\n searchValue,\n onSearch,\n showSearch,\n\n // Trigger\n expandTrigger,\n\n // Options\n options,\n dropdownPrefixCls,\n loadData,\n\n // Open\n popupVisible,\n open,\n\n popupClassName,\n dropdownClassName,\n dropdownMenuColumnStyle,\n\n popupPlacement,\n placement,\n\n onDropdownVisibleChange,\n onPopupVisibleChange,\n renderItem,\n\n // Icon\n expandIcon = '>',\n loadingIcon,\n\n // Children\n children,\n dropdownMatchSelectWidth = false,\n showCheckedStrategy = SHOW_PARENT,\n ...restProps\n } = props\n\n const mergedId = useId(id)\n const multiple = !!checkable\n const [dropdownVisible, setDropdownVisible] = React.useState(false)\n\n // =========================== Values ===========================\n const [rawValues, setRawValues] = useMergedState<ValueType, SingleValueType[]>(defaultValue, {\n value,\n postState: toRawValues,\n })\n\n // ========================= FieldNames =========================\n const mergedFieldNames = React.useMemo(\n () => fillFieldNames(fieldNames),\n /* eslint-disable react-hooks/exhaustive-deps */\n [JSON.stringify(fieldNames)]\n /* eslint-enable react-hooks/exhaustive-deps */\n )\n\n // =========================== Option ===========================\n const mergedOptions = React.useMemo(() => options || [], [options])\n\n // Only used in multiple mode, this fn will not call in single mode\n const getPathKeyEntities = useEntities(mergedOptions, mergedFieldNames)\n\n /** Convert path key back to value format */\n const getValueByKeyPath = React.useCallback(\n (pathKeys: React.Key[]): SingleValueType[] => {\n const keyPathEntities = getPathKeyEntities()\n\n return pathKeys.map((pathKey) => {\n const { nodes } = keyPathEntities[pathKey]\n\n return nodes.map((node) => node[mergedFieldNames.value])\n })\n },\n [getPathKeyEntities, mergedFieldNames]\n )\n\n // =========================== Search ===========================\n const [mergedSearchValue, setSearchValue] = useMergedState('', {\n value: searchValue,\n postState: (search) => search || '',\n })\n\n const onInternalSearch: BaseSelectProps['onSearch'] = (searchText, info) => {\n setSearchValue(searchText)\n\n if (info.source !== 'blur' && onSearch) {\n onSearch(searchText)\n }\n }\n\n const [mergedShowSearch, searchConfig] = useSearchConfig(showSearch)\n\n const searchOptions = useSearchOptions(\n mergedSearchValue,\n mergedOptions,\n mergedFieldNames,\n dropdownPrefixCls || prefixCls,\n searchConfig,\n changeOnSelect\n )\n\n // =========================== Values ===========================\n const getMissingValues = useMissingValues(mergedOptions, mergedFieldNames)\n\n // Fill `rawValues` with checked conduction values\n const [checkedValues, halfCheckedValues, missingCheckedValues] = React.useMemo(() => {\n const [existValues, missingValues] = getMissingValues(rawValues)\n\n if (!multiple || !rawValues.length) {\n return [existValues, [], missingValues]\n }\n\n const keyPathValues = toPathKeys(existValues)\n const keyPathEntities = getPathKeyEntities()\n\n const { checkedKeys, halfCheckedKeys } = conductCheck(keyPathValues, true, keyPathEntities)\n\n // Convert key back to value cells\n return [getValueByKeyPath(checkedKeys), getValueByKeyPath(halfCheckedKeys), missingValues]\n }, [multiple, rawValues, getPathKeyEntities, getValueByKeyPath, getMissingValues])\n\n const deDuplicatedValues = React.useMemo(() => {\n const checkedKeys = toPathKeys(checkedValues)\n const deduplicateKeys = formatStrategyValues(\n checkedKeys,\n getPathKeyEntities,\n showCheckedStrategy\n )\n\n return [...missingCheckedValues, ...getValueByKeyPath(deduplicateKeys)]\n }, [\n checkedValues,\n getPathKeyEntities,\n getValueByKeyPath,\n missingCheckedValues,\n showCheckedStrategy,\n ])\n\n const displayValues = useDisplayValues(\n deDuplicatedValues,\n mergedOptions,\n mergedFieldNames,\n multiple,\n displayRender\n )\n\n // =========================== Change ===========================\n const triggerChange = useRefFunc((nextValues: ValueType) => {\n setRawValues(nextValues)\n\n // Save perf if no need trigger event\n if (onChange) {\n const nextRawValues = toRawValues(nextValues)\n\n const valueOptions = nextRawValues.map((valueCells) =>\n toPathOptions(valueCells, mergedOptions, mergedFieldNames).map(\n (valueOpt) => valueOpt.option\n )\n )\n\n const triggerValues = multiple ? nextRawValues : nextRawValues[0]\n const triggerOptions = multiple ? valueOptions : valueOptions[0]\n\n onChange(triggerValues, triggerOptions)\n }\n })\n\n // =========================== Select ===========================\n const onInternalSelect = useRefFunc((valuePath: SingleValueType) => {\n setSearchValue('')\n if (!multiple) {\n triggerChange(valuePath)\n } else {\n // Prepare conduct required info\n const pathKey = toPathKey(valuePath)\n const checkedPathKeys = toPathKeys(checkedValues)\n const halfCheckedPathKeys = toPathKeys(halfCheckedValues)\n\n const existInChecked = checkedPathKeys.includes(pathKey)\n const existInMissing = missingCheckedValues.some(\n (valueCells) => toPathKey(valueCells) === pathKey\n )\n\n // Do update\n let nextCheckedValues = checkedValues\n let nextMissingValues = missingCheckedValues\n\n if (existInMissing && !existInChecked) {\n // Missing value only do filter\n nextMissingValues = missingCheckedValues.filter(\n (valueCells) => toPathKey(valueCells) !== pathKey\n )\n } else {\n // Update checked key first\n const nextRawCheckedKeys = existInChecked\n ? checkedPathKeys.filter((key) => key !== pathKey)\n : [...checkedPathKeys, pathKey]\n\n const pathKeyEntities = getPathKeyEntities()\n\n // Conduction by selected or not\n let checkedKeys: React.Key[]\n if (existInChecked) {\n ;({ checkedKeys } = conductCheck(\n nextRawCheckedKeys,\n { checked: false, halfCheckedKeys: halfCheckedPathKeys },\n pathKeyEntities\n ))\n } else {\n ;({ checkedKeys } = conductCheck(nextRawCheckedKeys, true, pathKeyEntities))\n }\n\n // Roll up to parent level keys\n const deDuplicatedKeys = formatStrategyValues(\n checkedKeys,\n getPathKeyEntities,\n showCheckedStrategy\n )\n nextCheckedValues = getValueByKeyPath(deDuplicatedKeys)\n }\n\n triggerChange([...nextMissingValues, ...nextCheckedValues])\n }\n })\n\n // Display Value change logic\n const onDisplayValuesChange: BaseSelectProps['onDisplayValuesChange'] = (_, info) => {\n if (info.type === 'clear') {\n triggerChange([])\n return\n }\n\n // Cascader do not support `add` type. Only support `remove`\n const { valueCells } = info.values[0] as DisplayValueType & { valueCells: SingleValueType }\n onInternalSelect(valueCells)\n }\n\n // ============================ Open ============================\n const mergedOpen = open !== undefined ? open : popupVisible\n\n const mergedDropdownClassName = dropdownClassName || popupClassName\n\n const mergedPlacement = placement || popupPlacement\n\n const onInternalDropdownVisibleChange = (nextVisible: boolean) => {\n onDropdownVisibleChange?.(nextVisible)\n onPopupVisibleChange?.(nextVisible)\n setDropdownVisible(nextVisible)\n }\n\n // ========================== Warning ===========================\n if (process.env.NODE_ENV !== 'production') {\n warningProps(props)\n warningNullOptions(mergedOptions, mergedFieldNames)\n }\n\n // ========================== Context ===========================\n const cascaderContext = React.useMemo(\n () => ({\n options: mergedOptions,\n fieldNames: mergedFieldNames,\n values: checkedValues,\n halfValues: halfCheckedValues,\n changeOnSelect,\n onSelect: onInternalSelect,\n checkable,\n searchOptions,\n dropdownPrefixCls,\n loadData,\n expandTrigger,\n expandIcon,\n loadingIcon,\n dropdownMenuColumnStyle,\n renderItem,\n dropdownVisible,\n }),\n [\n mergedOptions,\n mergedFieldNames,\n checkedValues,\n halfCheckedValues,\n changeOnSelect,\n onInternalSelect,\n checkable,\n searchOptions,\n dropdownPrefixCls,\n loadData,\n expandTrigger,\n expandIcon,\n loadingIcon,\n dropdownMenuColumnStyle,\n renderItem,\n dropdownVisible,\n ]\n )\n\n // ==============================================================\n // == Render ==\n // ==============================================================\n const emptyOptions = !(mergedSearchValue ? searchOptions : mergedOptions).length\n\n const dropdownStyle: React.CSSProperties =\n // Search to match width\n (mergedSearchValue && searchConfig.matchInputWidth) ||\n // Empty keep the width\n emptyOptions\n ? {}\n : {\n minWidth: 'auto',\n }\n return (\n <CascaderContext.Provider value={cascaderContext}>\n <BaseSelect\n {...restProps}\n // MISC\n ref={ref as any}\n id={mergedId}\n prefixCls={prefixCls}\n dropdownMatchSelectWidth={dropdownMatchSelectWidth}\n dropdownStyle={dropdownStyle}\n // Value\n displayValues={displayValues}\n onDisplayValuesChange={onDisplayValuesChange}\n mode={multiple ? 'multiple' : undefined}\n // Search\n searchValue={mergedSearchValue}\n onSearch={onInternalSearch}\n showSearch={mergedShowSearch}\n // Options\n OptionList={OptionList}\n emptyOptions={emptyOptions}\n // Open\n open={mergedOpen}\n dropdownClassName={mergedDropdownClassName}\n placement={mergedPlacement}\n onDropdownVisibleChange={onInternalDropdownVisibleChange}\n // Children\n getRawInputElement={() => children}\n />\n </CascaderContext.Provider>\n )\n}) as unknown as (<OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>(\n props: React.PropsWithChildren<CascaderProps<OptionType>> & {\n ref?: React.Ref<BaseSelectRef>\n }\n) => React.ReactElement) & {\n displayName?: string\n SHOW_PARENT: typeof SHOW_PARENT\n SHOW_CHILD: typeof SHOW_CHILD\n}\n\nif (process.env.NODE_ENV !== 'production') {\n Cascader.displayName = 'Cascader'\n}\n\nCascader.SHOW_PARENT = SHOW_PARENT\nCascader.SHOW_CHILD = SHOW_CHILD\nexport default Cascader\n"]}
|
|
1
|
+
{"version":3,"file":"Cascader.js","sourceRoot":"","sources":["../../../src/tntd-cascader/rc-cascader/Cascader.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,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,EAAE,gBAAgB,EAC1B,UAAU,EAAE,gBAAgB;YAC5B,UAAU;YACV,UAAU,EAAE,oBAAU,EACtB,YAAY,EAAE,YAAY;YAC1B,OAAO;YACP,IAAI,EAAE,UAAU,EAChB,iBAAiB,EAAE,uBAAuB,EAC1C,SAAS,EAAE,eAAe,EAC1B,uBAAuB,EAAE,+BAA+B;YACxD,WAAW;YACX,kBAAkB,EAAE,GAAG,EAAE,CAAC,QAAQ,IAClC,CACuB,CAC5B,CAAA;AACH,CAAC,CAQA,CAAA;AAED,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;IACzC,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAA;CAClC;AAED,QAAQ,CAAC,WAAW,GAAG,wBAAW,CAAA;AAClC,QAAQ,CAAC,UAAU,GAAG,uBAAU,CAAA;AAChC,kBAAe,QAAQ,CAAA","sourcesContent":["// @ts-nocheck\nimport type { BaseSelectProps, BaseSelectPropsWithoutPrivate, BaseSelectRef } from 'rc-select'\nimport { BaseSelect } from 'rc-select'\nimport type { DisplayValueType, Placement } from 'rc-select/lib/BaseSelect'\nimport useId from 'rc-select/lib/hooks/useId'\nimport { conductCheck } from 'rc-tree/lib/utils/conductUtil'\nimport useMergedState from 'rc-util/lib/hooks/useMergedState'\nimport * as React from 'react'\nimport CascaderContext from './context'\nimport useDisplayValues from './hooks/useDisplayValues'\nimport useEntities from './hooks/useEntities'\nimport useMissingValues from './hooks/useMissingValues'\nimport useRefFunc from './hooks/useRefFunc'\nimport useSearchConfig from './hooks/useSearchConfig'\nimport useSearchOptions from './hooks/useSearchOptions'\nimport OptionList from './OptionList'\nimport { fillFieldNames, SHOW_CHILD, SHOW_PARENT, toPathKey, toPathKeys } from './utils/commonUtil'\nimport { formatStrategyValues, toPathOptions } from './utils/treeUtil'\nimport warningProps, { warningNullOptions } from './utils/warningPropsUtil'\nimport { RenderItem } from './context'\nimport { getLanguage, getText } from '../../prev-locale'\nimport './index.less'\n\nconst defaultPlacehlder = getText('select', getLanguage())\n\nexport interface ShowSearchType<OptionType extends BaseOptionType = DefaultOptionType> {\n filter?: (inputValue: string, options: OptionType[], fieldNames: FieldNames) => boolean\n render?: (\n inputValue: string,\n path: OptionType[],\n prefixCls: string,\n fieldNames: FieldNames\n ) => React.ReactNode\n sort?: (a: OptionType[], b: OptionType[], inputValue: string, fieldNames: FieldNames) => number\n matchInputWidth?: boolean\n limit?: number | false\n}\n\nexport interface FieldNames {\n label?: string\n value?: string\n children?: string\n}\n\nexport interface InternalFieldNames extends Required<FieldNames> {\n key: string\n}\n\nexport type SingleValueType = (string | number)[]\n\nexport type ValueType = SingleValueType | SingleValueType[]\nexport type ShowCheckedStrategy = typeof SHOW_PARENT | typeof SHOW_CHILD\n\nexport interface BaseOptionType {\n disabled?: boolean\n [name: string]: any\n}\nexport interface DefaultOptionType extends BaseOptionType {\n label: React.ReactNode\n value?: string | number | null\n children?: DefaultOptionType[]\n}\n\ninterface BaseCascaderProps<OptionType extends BaseOptionType = DefaultOptionType>\n extends Omit<\n BaseSelectPropsWithoutPrivate,\n 'tokenSeparators' | 'labelInValue' | 'mode' | 'showSearch'\n > {\n // MISC\n id?: string\n prefixCls?: string\n fieldNames?: FieldNames\n children?: React.ReactElement\n\n // Value\n value?: ValueType\n defaultValue?: ValueType\n changeOnSelect?: boolean\n displayRender?: (label: string[], selectedOptions?: OptionType[]) => React.ReactNode\n checkable?: boolean | React.ReactNode\n showCheckedStrategy?: ShowCheckedStrategy\n\n // Search\n showSearch?: boolean | ShowSearchType<OptionType>\n searchValue?: string\n onSearch?: (value: string) => void\n\n // Trigger\n expandTrigger?: 'hover' | 'click'\n\n // Options\n options?: OptionType[]\n /** @private Internal usage. Do not use in your production. */\n dropdownPrefixCls?: string\n loadData?: (selectOptions: OptionType[]) => void\n\n // Open\n /** @deprecated Use `open` instead */\n popupVisible?: boolean\n\n /** @deprecated Use `dropdownClassName` instead */\n popupClassName?: string\n dropdownClassName?: string\n dropdownMenuColumnStyle?: React.CSSProperties\n\n /** @deprecated Use `placement` instead */\n popupPlacement?: Placement\n placement?: Placement\n\n /** @deprecated Use `onDropdownVisibleChange` instead */\n onPopupVisibleChange?: (open: boolean) => void\n onDropdownVisibleChange?: (open: boolean) => void\n renderItem?: (item: RenderItem) => React.ReactNode\n\n // Icon\n expandIcon?: React.ReactNode\n loadingIcon?: React.ReactNode\n}\n\ntype OnSingleChange<OptionType> = (value: SingleValueType, selectOptions: OptionType[]) => void\ntype OnMultipleChange<OptionType> = (\n value: SingleValueType[],\n selectOptions: OptionType[][]\n) => void\n\nexport interface SingleCascaderProps<OptionType extends BaseOptionType = DefaultOptionType>\n extends BaseCascaderProps<OptionType> {\n checkable?: false\n\n onChange?: OnSingleChange<OptionType>\n}\n\nexport interface MultipleCascaderProps<OptionType extends BaseOptionType = DefaultOptionType>\n extends BaseCascaderProps<OptionType> {\n checkable: true | React.ReactNode\n\n onChange?: OnMultipleChange<OptionType>\n}\n\nexport type CascaderProps<OptionType extends BaseOptionType = DefaultOptionType> =\n | SingleCascaderProps<OptionType>\n | MultipleCascaderProps<OptionType>\n\nexport type InternalCascaderProps<OptionType extends BaseOptionType = DefaultOptionType> = Omit<\n SingleCascaderProps<OptionType> | MultipleCascaderProps<OptionType>,\n 'onChange'\n> & {\n onChange?: (\n value: SingleValueType | SingleValueType[],\n selectOptions: OptionType[] | OptionType[][]\n ) => void\n}\n\nexport type CascaderRef = Omit<BaseSelectRef, 'scrollTo'>\n\nfunction isMultipleValue(value: ValueType): value is SingleValueType[] {\n return Array.isArray(value) && Array.isArray(value[0])\n}\n\nfunction toRawValues(value: ValueType): SingleValueType[] {\n if (!value) {\n return []\n }\n\n if (isMultipleValue(value)) {\n return value\n }\n\n return (value.length === 0 ? [] : [value]).map((val) => (Array.isArray(val) ? val : [val]))\n}\n\nconst Cascader = React.forwardRef<CascaderRef, InternalCascaderProps>((props, ref) => {\n const {\n // MISC\n id,\n prefixCls = 'rc-cascader',\n fieldNames,\n\n // Value\n defaultValue,\n value,\n changeOnSelect,\n onChange,\n displayRender,\n checkable,\n\n // Search\n searchValue,\n onSearch,\n showSearch,\n\n // Trigger\n expandTrigger,\n\n // Options\n options,\n dropdownPrefixCls,\n loadData,\n\n // Open\n popupVisible,\n open,\n\n popupClassName,\n dropdownClassName,\n dropdownMenuColumnStyle,\n\n popupPlacement,\n placement,\n\n onDropdownVisibleChange,\n onPopupVisibleChange,\n renderItem,\n\n // Icon\n expandIcon = '>',\n loadingIcon,\n\n // Children\n children,\n dropdownMatchSelectWidth = false,\n showCheckedStrategy = SHOW_PARENT,\n ...restProps\n } = props\n\n const mergedId = useId(id)\n const multiple = !!checkable\n const [dropdownVisible, setDropdownVisible] = React.useState(false)\n\n // =========================== Values ===========================\n const [rawValues, setRawValues] = useMergedState<ValueType, SingleValueType[]>(defaultValue, {\n value,\n postState: toRawValues,\n })\n\n // ========================= FieldNames =========================\n const mergedFieldNames = React.useMemo(\n () => fillFieldNames(fieldNames),\n /* eslint-disable react-hooks/exhaustive-deps */\n [JSON.stringify(fieldNames)]\n /* eslint-enable react-hooks/exhaustive-deps */\n )\n\n // =========================== Option ===========================\n const mergedOptions = React.useMemo(() => options || [], [options])\n\n // Only used in multiple mode, this fn will not call in single mode\n const getPathKeyEntities = useEntities(mergedOptions, mergedFieldNames)\n\n /** Convert path key back to value format */\n const getValueByKeyPath = React.useCallback(\n (pathKeys: React.Key[]): SingleValueType[] => {\n const keyPathEntities = getPathKeyEntities()\n\n return pathKeys.map((pathKey) => {\n const { nodes } = keyPathEntities[pathKey]\n\n return nodes.map((node) => node[mergedFieldNames.value])\n })\n },\n [getPathKeyEntities, mergedFieldNames]\n )\n\n // =========================== Search ===========================\n const [mergedSearchValue, setSearchValue] = useMergedState('', {\n value: searchValue,\n postState: (search) => search || '',\n })\n\n const onInternalSearch: BaseSelectProps['onSearch'] = (searchText, info) => {\n setSearchValue(searchText)\n\n if (info.source !== 'blur' && onSearch) {\n onSearch(searchText)\n }\n }\n\n const [mergedShowSearch, searchConfig] = useSearchConfig(showSearch)\n\n const searchOptions = useSearchOptions(\n mergedSearchValue,\n mergedOptions,\n mergedFieldNames,\n dropdownPrefixCls || prefixCls,\n searchConfig,\n changeOnSelect\n )\n\n // =========================== Values ===========================\n const getMissingValues = useMissingValues(mergedOptions, mergedFieldNames)\n\n // Fill `rawValues` with checked conduction values\n const [checkedValues, halfCheckedValues, missingCheckedValues] = React.useMemo(() => {\n const [existValues, missingValues] = getMissingValues(rawValues)\n\n if (!multiple || !rawValues.length) {\n return [existValues, [], missingValues]\n }\n\n const keyPathValues = toPathKeys(existValues)\n const keyPathEntities = getPathKeyEntities()\n\n const { checkedKeys, halfCheckedKeys } = conductCheck(keyPathValues, true, keyPathEntities)\n\n // Convert key back to value cells\n return [getValueByKeyPath(checkedKeys), getValueByKeyPath(halfCheckedKeys), missingValues]\n }, [multiple, rawValues, getPathKeyEntities, getValueByKeyPath, getMissingValues])\n\n const deDuplicatedValues = React.useMemo(() => {\n const checkedKeys = toPathKeys(checkedValues)\n const deduplicateKeys = formatStrategyValues(\n checkedKeys,\n getPathKeyEntities,\n showCheckedStrategy\n )\n\n return [...missingCheckedValues, ...getValueByKeyPath(deduplicateKeys)]\n }, [\n checkedValues,\n getPathKeyEntities,\n getValueByKeyPath,\n missingCheckedValues,\n showCheckedStrategy,\n ])\n\n const displayValues = useDisplayValues(\n deDuplicatedValues,\n mergedOptions,\n mergedFieldNames,\n multiple,\n displayRender\n )\n\n // =========================== Change ===========================\n const triggerChange = useRefFunc((nextValues: ValueType) => {\n setRawValues(nextValues)\n\n // Save perf if no need trigger event\n if (onChange) {\n const nextRawValues = toRawValues(nextValues)\n\n const valueOptions = nextRawValues.map((valueCells) =>\n toPathOptions(valueCells, mergedOptions, mergedFieldNames).map(\n (valueOpt) => valueOpt.option\n )\n )\n\n const triggerValues = multiple ? nextRawValues : nextRawValues[0]\n const triggerOptions = multiple ? valueOptions : valueOptions[0]\n\n onChange(triggerValues, triggerOptions)\n }\n })\n\n // =========================== Select ===========================\n const onInternalSelect = useRefFunc((valuePath: SingleValueType) => {\n setSearchValue('')\n if (!multiple) {\n triggerChange(valuePath)\n } else {\n // Prepare conduct required info\n const pathKey = toPathKey(valuePath)\n const checkedPathKeys = toPathKeys(checkedValues)\n const halfCheckedPathKeys = toPathKeys(halfCheckedValues)\n\n const existInChecked = checkedPathKeys.includes(pathKey)\n const existInMissing = missingCheckedValues.some(\n (valueCells) => toPathKey(valueCells) === pathKey\n )\n\n // Do update\n let nextCheckedValues = checkedValues\n let nextMissingValues = missingCheckedValues\n\n if (existInMissing && !existInChecked) {\n // Missing value only do filter\n nextMissingValues = missingCheckedValues.filter(\n (valueCells) => toPathKey(valueCells) !== pathKey\n )\n } else {\n // Update checked key first\n const nextRawCheckedKeys = existInChecked\n ? checkedPathKeys.filter((key) => key !== pathKey)\n : [...checkedPathKeys, pathKey]\n\n const pathKeyEntities = getPathKeyEntities()\n\n // Conduction by selected or not\n let checkedKeys: React.Key[]\n if (existInChecked) {\n ;({ checkedKeys } = conductCheck(\n nextRawCheckedKeys,\n { checked: false, halfCheckedKeys: halfCheckedPathKeys },\n pathKeyEntities\n ))\n } else {\n ;({ checkedKeys } = conductCheck(nextRawCheckedKeys, true, pathKeyEntities))\n }\n\n // Roll up to parent level keys\n const deDuplicatedKeys = formatStrategyValues(\n checkedKeys,\n getPathKeyEntities,\n showCheckedStrategy\n )\n nextCheckedValues = getValueByKeyPath(deDuplicatedKeys)\n }\n\n triggerChange([...nextMissingValues, ...nextCheckedValues])\n }\n })\n\n // Display Value change logic\n const onDisplayValuesChange: BaseSelectProps['onDisplayValuesChange'] = (_, info) => {\n if (info.type === 'clear') {\n triggerChange([])\n return\n }\n\n // Cascader do not support `add` type. Only support `remove`\n const { valueCells } = info.values[0] as DisplayValueType & { valueCells: SingleValueType }\n onInternalSelect(valueCells)\n }\n\n // ============================ Open ============================\n const mergedOpen = open !== undefined ? open : popupVisible\n\n const mergedDropdownClassName = dropdownClassName || popupClassName\n\n const mergedPlacement = placement || popupPlacement\n\n const onInternalDropdownVisibleChange = (nextVisible: boolean) => {\n onDropdownVisibleChange?.(nextVisible)\n onPopupVisibleChange?.(nextVisible)\n setDropdownVisible(nextVisible)\n }\n\n // ========================== Warning ===========================\n if (process.env.NODE_ENV !== 'production') {\n warningProps(props)\n warningNullOptions(mergedOptions, mergedFieldNames)\n }\n\n // ========================== Context ===========================\n const cascaderContext = React.useMemo(\n () => ({\n options: mergedOptions,\n fieldNames: mergedFieldNames,\n values: checkedValues,\n halfValues: halfCheckedValues,\n changeOnSelect,\n onSelect: onInternalSelect,\n checkable,\n searchOptions,\n dropdownPrefixCls,\n loadData,\n expandTrigger,\n expandIcon,\n loadingIcon,\n dropdownMenuColumnStyle,\n renderItem,\n dropdownVisible,\n }),\n [\n mergedOptions,\n mergedFieldNames,\n checkedValues,\n halfCheckedValues,\n changeOnSelect,\n onInternalSelect,\n checkable,\n searchOptions,\n dropdownPrefixCls,\n loadData,\n expandTrigger,\n expandIcon,\n loadingIcon,\n dropdownMenuColumnStyle,\n renderItem,\n dropdownVisible,\n ]\n )\n\n // ==============================================================\n // == Render ==\n // ==============================================================\n const emptyOptions = !(mergedSearchValue ? searchOptions : mergedOptions).length\n\n const dropdownStyle: React.CSSProperties =\n // Search to match width\n (mergedSearchValue && searchConfig.matchInputWidth) ||\n // Empty keep the width\n emptyOptions\n ? {}\n : {\n minWidth: 'auto',\n }\n return (\n <CascaderContext.Provider value={cascaderContext}>\n <BaseSelect\n placeholder={defaultPlacehlder}\n {...restProps}\n // MISC\n ref={ref as any}\n id={mergedId}\n prefixCls={prefixCls}\n dropdownMatchSelectWidth={dropdownMatchSelectWidth}\n dropdownStyle={dropdownStyle}\n // Value\n displayValues={displayValues}\n onDisplayValuesChange={onDisplayValuesChange}\n mode={multiple ? 'multiple' : undefined}\n // Search\n searchValue={mergedSearchValue}\n onSearch={onInternalSearch}\n showSearch={mergedShowSearch}\n // Options\n OptionList={OptionList}\n emptyOptions={emptyOptions}\n // Open\n open={mergedOpen}\n dropdownClassName={mergedDropdownClassName}\n placement={mergedPlacement}\n onDropdownVisibleChange={onInternalDropdownVisibleChange}\n // Children\n getRawInputElement={() => children}\n />\n </CascaderContext.Provider>\n )\n}) as unknown as (<OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>(\n props: React.PropsWithChildren<CascaderProps<OptionType>> & {\n ref?: React.Ref<BaseSelectRef>\n }\n) => React.ReactElement) & {\n displayName?: string\n SHOW_PARENT: typeof SHOW_PARENT\n SHOW_CHILD: typeof SHOW_CHILD\n}\n\nif (process.env.NODE_ENV !== 'production') {\n Cascader.displayName = 'Cascader'\n}\n\nCascader.SHOW_PARENT = SHOW_PARENT\nCascader.SHOW_CHILD = SHOW_CHILD\nexport default Cascader\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tntd-rc-select/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,WAAW,CAAA;AAC7D,OAAiB,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAE7E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AAG9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tntd-rc-select/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,WAAW,CAAA;AAC7D,OAAiB,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,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,CACzE,SAAQ,IAAI,CACV,mBAAmB,CAAC,SAAS,EAAE,UAAU,CAAC,EAC1C,WAAW,GAAG,MAAM,GAAG,iBAAiB,GAAG,oBAAoB,GAAG,UAAU,GAAG,WAAW,CAC3F;IACD,SAAS,CAAC,EAAE,qBAAqB,CAAA;IACjC,IAAI,CAAC,EAAE,UAAU,GAAG,MAAM,CAAA;IAE1B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAkKD,QAAA,MAAM,YAAY;;;;MAOb,MAAM,YAAY;qCACY,MAAM;YAC/B,aAAa;cACX,eAAe;CAC1B,CAAA;AAMD,eAAe,YAAY,CAAA"}
|
|
@@ -18,6 +18,7 @@ var _motion = require("./_util/motion");
|
|
|
18
18
|
var _getIcons2 = _interopRequireDefault(require("./_util/getIcons"));
|
|
19
19
|
var _warning = _interopRequireDefault(require("./_util/warning"));
|
|
20
20
|
var _useCompactItemContext = require("./_util/useCompactItemContext");
|
|
21
|
+
var _prevLocale = require("../prev-locale");
|
|
21
22
|
require("./style/index.less");
|
|
22
23
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
24
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
@@ -35,6 +36,7 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
35
36
|
}
|
|
36
37
|
return t;
|
|
37
38
|
};
|
|
39
|
+
var defaultPlacehlder = (0, _prevLocale.getText)('select', (0, _prevLocale.getLanguage)());
|
|
38
40
|
var SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
|
|
39
41
|
var InternalSelect = function InternalSelect(_a, ref) {
|
|
40
42
|
var customizePrefixCls = _a.prefixCls,
|
|
@@ -129,7 +131,8 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
|
129
131
|
return React.createElement(_rcSelect["default"], Object.assign({
|
|
130
132
|
ref: ref,
|
|
131
133
|
virtual: virtual,
|
|
132
|
-
dropdownMatchSelectWidth: dropdownMatchSelectWidth
|
|
134
|
+
dropdownMatchSelectWidth: dropdownMatchSelectWidth,
|
|
135
|
+
placeholder: defaultPlacehlder
|
|
133
136
|
}, selectProps, {
|
|
134
137
|
transitionName: (0, _motion.getTransitionName)(rootPrefixCls, (0, _motion.getTransitionDirection)(placement), props.transitionName),
|
|
135
138
|
listHeight: listHeight,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tntd-rc-select/index.tsx"],"names":[],"mappings":";AAAA,kFAAkF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElF,4DAAmC;AAEnC,uDAAqE;AAGrE,4DAAmC;AACnC,6CAA8B;AAC9B,iCAAkC;AAClC,6CAA+C;AAC/C,oFAA2D;AAC3D,yFAAgE;AAEhE,iFAAwD;AACxD,uEAAmE;AAEnE,2CAA0E;AAC1E,gEAAuC;AACvC,8DAAqC;AACrC,yEAAqE;AACrE,8BAA2B;AA0C3B,MAAM,+BAA+B,GAAG,iCAAiC,CAAA;AAEzE,MAAM,cAAc,GAAG,CACrB,EAgB0B,EAC1B,GAA6B,EAC7B,EAAE;QAlBF,EACE,SAAS,EAAE,kBAAkB,EAC7B,QAAQ,GAAG,IAAI,EACf,SAAS,EACT,iB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,IAAI,SAAS,EACnC,QAAQ,EAAE,cAAc,IACxB,CACH,CAAA;AACH,CAAC,CAAA;AAED,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAAC,cAAc,CAWnD,CAAA;AAED,YAAY,CAAC,+BAA+B,GAAG,+BAA+B,CAAA;AAC9E,YAAY,CAAC,MAAM,GAAG,kBAAM,CAAA;AAC5B,YAAY,CAAC,QAAQ,GAAG,oBAAQ,CAAA;AAEhC,kBAAe,YAAY,CAAA","sourcesContent":["// TODO: 4.0 - codemod should help to change `filterOption` to support node props.\n\nimport classNames from 'classnames'\nimport type { SelectProps as RcSelectProps } from 'rc-select'\nimport RcSelect, { BaseSelectRef, OptGroup, Option } from 'rc-select'\nimport type { OptionProps } from 'rc-select/lib/Option'\nimport type { BaseOptionType, DefaultOptionType } from 'rc-select/lib/Select'\nimport omit from 'rc-util/lib/omit'\nimport * as React from 'react'\nimport { useContext } from 'react'\nimport { ConfigContext } from './_util/context'\nimport defaultRenderEmpty from './_util/defaultRenderEmpty'\nimport DisabledContext from '../config-provider/DisabledContext'\nimport type { SizeType } from '../config-provider/SizeContext'\nimport SizeContext from '../config-provider/SizeContext'\nimport { FormItemInputContext } from './_util/FormItemInputContext'\nimport type { SelectCommonPlacement } from './_util/motion'\nimport { getTransitionDirection, getTransitionName } from './_util/motion'\nimport getIcons from './_util/getIcons'\nimport warning from './_util/warning'\nimport { useCompactItemContext } from './_util/useCompactItemContext'\nimport './style/index.less'\ntype RawValue = string | number\n\nexport { OptionProps, BaseSelectRef as RefSelectProps, BaseOptionType, DefaultOptionType }\n\nexport interface LabeledValue {\n key?: string\n value: RawValue\n label: React.ReactNode\n}\n\nexport type SelectValue = RawValue | RawValue[] | LabeledValue | LabeledValue[] | undefined\n\nexport interface InternalSelectProps<\n ValueType = any,\n OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType\n> extends Omit<RcSelectProps<ValueType, OptionType>, 'mode'> {\n suffixIcon?: React.ReactNode\n size?: SizeType\n disabled?: boolean\n mode?: 'multiple' | 'tags' | 'SECRET_COMBOBOX_MODE_DO_NOT_USE'\n bordered?: boolean\n}\n\nexport interface SelectProps<\n ValueType = any,\n OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType\n> extends Omit<\n InternalSelectProps<ValueType, OptionType>,\n 'inputIcon' | 'mode' | 'getInputElement' | 'getRawInputElement' | 'backfill' | 'placement'\n > {\n placement?: SelectCommonPlacement\n mode?: 'multiple' | 'tags'\n // status?: InputStatus;\n /**\n * @deprecated `dropdownClassName` is deprecated which will be removed in next major\n * version.Please use `popupClassName` instead.\n */\n dropdownClassName?: string\n popupClassName?: string\n}\n\nconst SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE'\n\nconst InternalSelect = <OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>(\n {\n prefixCls: customizePrefixCls,\n bordered = true,\n className,\n getPopupContainer,\n dropdownClassName,\n popupClassName,\n listHeight = 256,\n placement,\n listItemHeight = 24,\n size: customizeSize,\n disabled: customDisabled,\n notFoundContent,\n // status: customStatus,\n showArrow,\n ...props\n }: SelectProps<OptionType>,\n ref: React.Ref<BaseSelectRef>\n) => {\n const {\n getPopupContainer: getContextPopupContainer,\n getPrefixCls,\n renderEmpty,\n direction,\n virtual,\n dropdownMatchSelectWidth,\n } = React.useContext(ConfigContext)\n const size = React.useContext(SizeContext)\n\n const prefixCls = getPrefixCls('select', customizePrefixCls)\n\n const rootPrefixCls = getPrefixCls()\n\n const { compactSize, compactItemClassnames } = useCompactItemContext(prefixCls, direction)\n\n const mode = React.useMemo(() => {\n const { mode: m } = props as InternalSelectProps<OptionType>\n\n if ((m as any) === 'combobox') {\n return undefined\n }\n\n if (m === SECRET_COMBOBOX_MODE_DO_NOT_USE) {\n return 'combobox'\n }\n\n return m\n }, [props.mode])\n\n const isMultiple = mode === 'multiple' || mode === 'tags'\n const mergedShowArrow =\n showArrow !== undefined ? showArrow : props.loading || !(isMultiple || mode === 'combobox')\n\n // =================== Warning =====================\n warning(\n !dropdownClassName,\n 'Select',\n '`dropdownClassName` is deprecated which will be removed in next major version. Please use `popupClassName` instead.'\n )\n\n // ===================== Form Status =====================\n const {\n status: contextStatus,\n hasFeedback,\n isFormItemInput,\n feedbackIcon,\n } = useContext(FormItemInputContext)\n // const mergedStatus = getMergedStatus(contextStatus, customStatus);\n\n // ===================== Empty =====================\n let mergedNotFound: React.ReactNode\n if (notFoundContent !== undefined) {\n mergedNotFound = notFoundContent\n } else if (mode === 'combobox') {\n mergedNotFound = null\n } else {\n mergedNotFound = (renderEmpty || defaultRenderEmpty)('Select')\n }\n\n // ===================== Icons =====================\n const { suffixIcon, itemIcon, removeIcon, clearIcon } = getIcons({\n ...props,\n multiple: isMultiple,\n hasFeedback,\n feedbackIcon,\n showArrow: mergedShowArrow,\n prefixCls,\n })\n\n const selectProps = omit(props as typeof props & { itemIcon: any }, ['suffixIcon', 'itemIcon'])\n\n const rcSelectRtlDropdownClassName = classNames(popupClassName || dropdownClassName, {\n [`${prefixCls}-dropdown-${direction}`]: direction === 'rtl',\n })\n\n const mergedSize = compactSize || customizeSize || size\n\n // ===================== Disabled =====================\n const disabled = React.useContext(DisabledContext)\n const mergedDisabled = customDisabled ?? disabled\n\n const mergedClassName = classNames(\n {\n [`${prefixCls}-lg`]: mergedSize === 'large',\n [`${prefixCls}-sm`]: mergedSize === 'small',\n [`${prefixCls}-rtl`]: direction === 'rtl',\n [`${prefixCls}-borderless`]: !bordered,\n [`${prefixCls}-in-form-item`]: isFormItemInput,\n },\n // prefixCls||hasFeedback,\n // getStatusClassNames(prefixCls, mergedStatus, hasFeedback),\n compactItemClassnames,\n className\n )\n\n // ===================== Placement =====================\n const getPlacement = () => {\n if (placement !== undefined) {\n return placement\n }\n return direction === 'rtl'\n ? ('bottomRight' as SelectCommonPlacement)\n : ('bottomLeft' as SelectCommonPlacement)\n }\n\n return (\n <RcSelect<any, any>\n ref={ref as any}\n virtual={virtual}\n dropdownMatchSelectWidth={dropdownMatchSelectWidth}\n {...selectProps}\n transitionName={getTransitionName(\n rootPrefixCls,\n getTransitionDirection(placement),\n props.transitionName\n )}\n listHeight={listHeight}\n listItemHeight={listItemHeight}\n mode={mode as any}\n prefixCls={prefixCls}\n placement={getPlacement()}\n direction={direction}\n inputIcon={suffixIcon}\n menuItemSelectedIcon={itemIcon}\n removeIcon={removeIcon}\n clearIcon={clearIcon}\n notFoundContent={mergedNotFound}\n className={mergedClassName}\n getPopupContainer={getPopupContainer || getContextPopupContainer}\n dropdownClassName={rcSelectRtlDropdownClassName}\n showArrow={hasFeedback || showArrow}\n disabled={mergedDisabled}\n />\n )\n}\n\nconst TntdRcSelect = React.forwardRef(InternalSelect) as unknown as (<\n ValueType = any,\n OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType\n>(\n props: React.PropsWithChildren<SelectProps<ValueType, OptionType>> & {\n ref?: React.Ref<BaseSelectRef>\n }\n) => React.ReactElement) & {\n SECRET_COMBOBOX_MODE_DO_NOT_USE: string\n Option: typeof Option\n OptGroup: typeof OptGroup\n}\n\nTntdRcSelect.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE\nTntdRcSelect.Option = Option\nTntdRcSelect.OptGroup = OptGroup\n\nexport default TntdRcSelect\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tntd-rc-select/index.tsx"],"names":[],"mappings":";AAAA,kFAAkF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElF,4DAAmC;AAEnC,uDAAqE;AAGrE,4DAAmC;AACnC,6CAA8B;AAC9B,iCAAkC;AAClC,6CAA+C;AAC/C,oFAA2D;AAC3D,yFAAgE;AAEhE,iFAAwD;AACxD,uEAAmE;AAEnE,2CAA0E;AAC1E,gEAAuC;AACvC,8DAAqC;AACrC,yEAAqE;AACrE,gDAAqD;AAErD,8BAA2B;AAE3B,MAAM,iBAAiB,GAAG,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EAAE,EACzB,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,UAAU,EACrB,oBAAoB,EAAE,QAAQ,EAC9B,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,cAAc,EAC/B,SAAS,EAAE,eAAe,EAC1B,iBAAiB,EAAE,iBAAiB,IAAI,wBAAwB,EAChE,iBAAiB,EAAE,4BAA4B,EAC/C,SAAS,EAAE,WAAW,IAAI,SAAS,EACnC,QAAQ,EAAE,cAAc,IACxB,CACH,CAAA;AACH,CAAC,CAAA;AAED,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAAC,cAAc,CAWnD,CAAA;AAED,YAAY,CAAC,+BAA+B,GAAG,+BAA+B,CAAA;AAC9E,YAAY,CAAC,MAAM,GAAG,kBAAM,CAAA;AAC5B,YAAY,CAAC,QAAQ,GAAG,oBAAQ,CAAA;AAEhC,kBAAe,YAAY,CAAA","sourcesContent":["// TODO: 4.0 - codemod should help to change `filterOption` to support node props.\n\nimport classNames from 'classnames'\nimport type { SelectProps as RcSelectProps } from 'rc-select'\nimport RcSelect, { BaseSelectRef, OptGroup, Option } from 'rc-select'\nimport type { OptionProps } from 'rc-select/lib/Option'\nimport type { BaseOptionType, DefaultOptionType } from 'rc-select/lib/Select'\nimport omit from 'rc-util/lib/omit'\nimport * as React from 'react'\nimport { useContext } from 'react'\nimport { ConfigContext } from './_util/context'\nimport defaultRenderEmpty from './_util/defaultRenderEmpty'\nimport DisabledContext from '../config-provider/DisabledContext'\nimport type { SizeType } from '../config-provider/SizeContext'\nimport SizeContext from '../config-provider/SizeContext'\nimport { FormItemInputContext } from './_util/FormItemInputContext'\nimport type { SelectCommonPlacement } from './_util/motion'\nimport { getTransitionDirection, getTransitionName } from './_util/motion'\nimport getIcons from './_util/getIcons'\nimport warning from './_util/warning'\nimport { useCompactItemContext } from './_util/useCompactItemContext'\nimport { getLanguage, getText } from '../prev-locale'\n\nimport './style/index.less'\n\nconst defaultPlacehlder = getText('select', getLanguage())\ntype RawValue = string | number\n\nexport { OptionProps, BaseSelectRef as RefSelectProps, BaseOptionType, DefaultOptionType }\n\nexport interface LabeledValue {\n key?: string\n value: RawValue\n label: React.ReactNode\n}\n\nexport type SelectValue = RawValue | RawValue[] | LabeledValue | LabeledValue[] | undefined\n\nexport interface InternalSelectProps<\n ValueType = any,\n OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType\n> extends Omit<RcSelectProps<ValueType, OptionType>, 'mode'> {\n suffixIcon?: React.ReactNode\n size?: SizeType\n disabled?: boolean\n mode?: 'multiple' | 'tags' | 'SECRET_COMBOBOX_MODE_DO_NOT_USE'\n bordered?: boolean\n}\n\nexport interface SelectProps<\n ValueType = any,\n OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType\n> extends Omit<\n InternalSelectProps<ValueType, OptionType>,\n 'inputIcon' | 'mode' | 'getInputElement' | 'getRawInputElement' | 'backfill' | 'placement'\n > {\n placement?: SelectCommonPlacement\n mode?: 'multiple' | 'tags'\n // status?: InputStatus;\n /**\n * @deprecated `dropdownClassName` is deprecated which will be removed in next major\n * version.Please use `popupClassName` instead.\n */\n dropdownClassName?: string\n popupClassName?: string\n}\n\nconst SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE'\n\nconst InternalSelect = <OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>(\n {\n prefixCls: customizePrefixCls,\n bordered = true,\n className,\n getPopupContainer,\n dropdownClassName,\n popupClassName,\n listHeight = 256,\n placement,\n listItemHeight = 24,\n size: customizeSize,\n disabled: customDisabled,\n notFoundContent,\n // status: customStatus,\n showArrow,\n ...props\n }: SelectProps<OptionType>,\n ref: React.Ref<BaseSelectRef>\n) => {\n const {\n getPopupContainer: getContextPopupContainer,\n getPrefixCls,\n renderEmpty,\n direction,\n virtual,\n dropdownMatchSelectWidth,\n } = React.useContext(ConfigContext)\n const size = React.useContext(SizeContext)\n\n const prefixCls = getPrefixCls('select', customizePrefixCls)\n\n const rootPrefixCls = getPrefixCls()\n\n const { compactSize, compactItemClassnames } = useCompactItemContext(prefixCls, direction)\n\n const mode = React.useMemo(() => {\n const { mode: m } = props as InternalSelectProps<OptionType>\n\n if ((m as any) === 'combobox') {\n return undefined\n }\n\n if (m === SECRET_COMBOBOX_MODE_DO_NOT_USE) {\n return 'combobox'\n }\n\n return m\n }, [props.mode])\n\n const isMultiple = mode === 'multiple' || mode === 'tags'\n const mergedShowArrow =\n showArrow !== undefined ? showArrow : props.loading || !(isMultiple || mode === 'combobox')\n\n // =================== Warning =====================\n warning(\n !dropdownClassName,\n 'Select',\n '`dropdownClassName` is deprecated which will be removed in next major version. Please use `popupClassName` instead.'\n )\n\n // ===================== Form Status =====================\n const {\n status: contextStatus,\n hasFeedback,\n isFormItemInput,\n feedbackIcon,\n } = useContext(FormItemInputContext)\n // const mergedStatus = getMergedStatus(contextStatus, customStatus);\n\n // ===================== Empty =====================\n let mergedNotFound: React.ReactNode\n if (notFoundContent !== undefined) {\n mergedNotFound = notFoundContent\n } else if (mode === 'combobox') {\n mergedNotFound = null\n } else {\n mergedNotFound = (renderEmpty || defaultRenderEmpty)('Select')\n }\n\n // ===================== Icons =====================\n const { suffixIcon, itemIcon, removeIcon, clearIcon } = getIcons({\n ...props,\n multiple: isMultiple,\n hasFeedback,\n feedbackIcon,\n showArrow: mergedShowArrow,\n prefixCls,\n })\n\n const selectProps = omit(props as typeof props & { itemIcon: any }, ['suffixIcon', 'itemIcon'])\n\n const rcSelectRtlDropdownClassName = classNames(popupClassName || dropdownClassName, {\n [`${prefixCls}-dropdown-${direction}`]: direction === 'rtl',\n })\n\n const mergedSize = compactSize || customizeSize || size\n\n // ===================== Disabled =====================\n const disabled = React.useContext(DisabledContext)\n const mergedDisabled = customDisabled ?? disabled\n\n const mergedClassName = classNames(\n {\n [`${prefixCls}-lg`]: mergedSize === 'large',\n [`${prefixCls}-sm`]: mergedSize === 'small',\n [`${prefixCls}-rtl`]: direction === 'rtl',\n [`${prefixCls}-borderless`]: !bordered,\n [`${prefixCls}-in-form-item`]: isFormItemInput,\n },\n // prefixCls||hasFeedback,\n // getStatusClassNames(prefixCls, mergedStatus, hasFeedback),\n compactItemClassnames,\n className\n )\n\n // ===================== Placement =====================\n const getPlacement = () => {\n if (placement !== undefined) {\n return placement\n }\n return direction === 'rtl'\n ? ('bottomRight' as SelectCommonPlacement)\n : ('bottomLeft' as SelectCommonPlacement)\n }\n\n return (\n <RcSelect<any, any>\n ref={ref as any}\n virtual={virtual}\n dropdownMatchSelectWidth={dropdownMatchSelectWidth}\n placeholder={defaultPlacehlder}\n {...selectProps}\n transitionName={getTransitionName(\n rootPrefixCls,\n getTransitionDirection(placement),\n props.transitionName\n )}\n listHeight={listHeight}\n listItemHeight={listItemHeight}\n mode={mode as any}\n prefixCls={prefixCls}\n placement={getPlacement()}\n direction={direction}\n inputIcon={suffixIcon}\n menuItemSelectedIcon={itemIcon}\n removeIcon={removeIcon}\n clearIcon={clearIcon}\n notFoundContent={mergedNotFound}\n className={mergedClassName}\n getPopupContainer={getPopupContainer || getContextPopupContainer}\n dropdownClassName={rcSelectRtlDropdownClassName}\n showArrow={hasFeedback || showArrow}\n disabled={mergedDisabled}\n />\n )\n}\n\nconst TntdRcSelect = React.forwardRef(InternalSelect) as unknown as (<\n ValueType = any,\n OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType\n>(\n props: React.PropsWithChildren<SelectProps<ValueType, OptionType>> & {\n ref?: React.Ref<BaseSelectRef>\n }\n) => React.ReactElement) & {\n SECRET_COMBOBOX_MODE_DO_NOT_USE: string\n Option: typeof Option\n OptGroup: typeof OptGroup\n}\n\nTntdRcSelect.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE\nTntdRcSelect.Option = Option\nTntdRcSelect.OptGroup = OptGroup\n\nexport default TntdRcSelect\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tntd-select/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tntd-select/index.js"],"names":[],"mappings":";AA6BA;IACE,wBAqCC;IAjCC,oBAAqD;IAOrD;;;;;;MAMC;IAED,iBAA2E;IAE3E,yBAA8D;IAE9D,mBAA2C;IAE3C,qBAAwB;IAExB,sBAAsB;IAEtB,gBAAgB;IAEhB,kBAAkB;IAGlB,0BAA2C;IAE3C,WAA6B;IAG/B,0BAUC;IAED,uCAiBC;IAED,yBA6BC;IAGD,4DAMC;IAED,yCAkCC;IAED,6BAEC;IAED;;;;;MAKE;IAEF,+BAEC;IAED,qBAWC;IAVC,sCAAqE;IAMrE,qCAAqD;IAOvD,4BA2CC;IAED,qBAAyD;IAEzD,yBAQC;IAPC,2BAAwC;IAS1C,6BAOC;IAGD,gCAA2E;IAE3E;;;MAOC;IAGD,6CAeC;IATG,uCAAsD;IAW1D,gDA0BC;IAED,iCAGC;IAGD,yCAwBC;IAED,2BAoCC;IAED,+CAIC;IAED,yCAsBC;IAED,wBAMC;IAED,4BAiFC;IA1EC,8BAA8D;IA0C3C,kGAAiB;IAuBxB,sCAAe;CAU9B;;;;;;AA5eD,wFAA4B"}
|
package/lib/tntd-select/index.js
CHANGED
|
@@ -11,6 +11,7 @@ var _select = _interopRequireDefault(require("../select"));
|
|
|
11
11
|
var _spin = _interopRequireDefault(require("../spin"));
|
|
12
12
|
var _utils = require("../utils");
|
|
13
13
|
var _DropDownWrap = _interopRequireDefault(require("./DropDownWrap"));
|
|
14
|
+
var _prevLocale = require("../prev-locale");
|
|
14
15
|
require("./index.less");
|
|
15
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
16
17
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -35,6 +36,7 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
35
36
|
}
|
|
36
37
|
return t;
|
|
37
38
|
};
|
|
39
|
+
var defaultPlacehlder = (0, _prevLocale.getText)('select', (0, _prevLocale.getLanguage)());
|
|
38
40
|
// 页面实际渲染的下拉菜单数量,实际为 2 * ITEM_ELEMENT_NUMBER
|
|
39
41
|
var ITEM_ELEMENT_NUMBER = 30;
|
|
40
42
|
// Select size 配置
|
|
@@ -580,7 +582,8 @@ var SuperSelect = /*#__PURE__*/function (_PureComponent) {
|
|
|
580
582
|
dropdownStyle = _a.dropdownStyle,
|
|
581
583
|
optionLabelProp = _a.optionLabelProp,
|
|
582
584
|
dropdownClassName = _a.dropdownClassName,
|
|
583
|
-
placeholder = _a.placeholder,
|
|
585
|
+
_a$placeholder = _a.placeholder,
|
|
586
|
+
placeholder = _a$placeholder === void 0 ? defaultPlacehlder : _a$placeholder,
|
|
584
587
|
capitalize = _a.capitalize,
|
|
585
588
|
props = __rest(_a, ["dropdownStyle", "optionLabelProp", "dropdownClassName", "placeholder", "capitalize"]);
|
|
586
589
|
this.allList = this.getUseChildrenList();
|