@nyris/nyris-webapp 0.3.33 → 0.3.35

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.
Files changed (83) hide show
  1. package/build/asset-manifest.json +28 -14
  2. package/build/index.html +1 -1
  3. package/build/js/settings.example.js +13 -25
  4. package/build/{precache-manifest.4cff5b8aafe3d00d59bc2c9725eb6ade.js → precache-manifest.375ac411683570ee1df5aea6de03409d.js} +70 -14
  5. package/build/service-worker.js +1 -1
  6. package/build/static/css/main.f5a1c730.chunk.css +2 -0
  7. package/build/static/css/main.f5a1c730.chunk.css.map +1 -0
  8. package/build/static/js/2.724f4cba.chunk.js +3 -0
  9. package/build/static/js/2.724f4cba.chunk.js.map +1 -0
  10. package/build/static/js/main.f579fa9f.chunk.js +3 -0
  11. package/build/static/js/main.f579fa9f.chunk.js.map +1 -0
  12. package/build/static/media/filter.bc412f08.svg +3 -0
  13. package/build/static/media/icon_search_image2.fab34be4.svg +3 -0
  14. package/build/static/media/img-1-1.6144e5f9.png +0 -0
  15. package/build/static/media/img-1-2.ad943f0f.png +0 -0
  16. package/build/static/media/img2-1.a87c79c7.png +0 -0
  17. package/build/static/media/img2-2.39c5b73f.png +0 -0
  18. package/build/static/media/img3-1.443b0c3a.png +0 -0
  19. package/build/static/media/img3-2.37db7999.png +0 -0
  20. package/build/static/media/img4-1.9c34c158.png +0 -0
  21. package/build/static/media/img4-2.9d280a04.png +0 -0
  22. package/build/static/media/img5-1.b61dbd4d.png +0 -0
  23. package/build/static/media/img5-2.1c77c093.png +0 -0
  24. package/build/static/media/img6-1.8b03dd21.png +0 -0
  25. package/build/static/media/img6-2.1e3e7fed.png +0 -0
  26. package/build/static/media/{info-tooltip.5feeef22.svg → info-tooltip.b98e8a9c.svg} +2 -2
  27. package/build/static/media/take_photo.76423216.svg +5 -0
  28. package/package.json +3 -3
  29. package/public/js/settings.example.js +13 -25
  30. package/src/Store/constants.ts +0 -1
  31. package/src/Store/search/Search.ts +32 -17
  32. package/src/Store/search/search.initialState.ts +17 -16
  33. package/src/Store/search/types.ts +15 -14
  34. package/src/common/assets/icons/expand.svg +3 -27
  35. package/src/common/assets/icons/filter.svg +3 -0
  36. package/src/common/assets/icons/icon_search_image2.svg +2 -25
  37. package/src/common/assets/icons/info-tooltip.svg +2 -2
  38. package/src/common/assets/icons/take_photo.svg +5 -0
  39. package/src/common/assets/images/imageCaptureHelp/img-1-1.png +0 -0
  40. package/src/common/assets/images/imageCaptureHelp/img-1-2.png +0 -0
  41. package/src/common/assets/images/imageCaptureHelp/img2-1.png +0 -0
  42. package/src/common/assets/images/imageCaptureHelp/img2-2.png +0 -0
  43. package/src/common/assets/images/imageCaptureHelp/img3-1.png +0 -0
  44. package/src/common/assets/images/imageCaptureHelp/img3-2.png +0 -0
  45. package/src/common/assets/images/imageCaptureHelp/img4-1.png +0 -0
  46. package/src/common/assets/images/imageCaptureHelp/img4-2.png +0 -0
  47. package/src/common/assets/images/imageCaptureHelp/img5-1.png +0 -0
  48. package/src/common/assets/images/imageCaptureHelp/img5-2.png +0 -0
  49. package/src/common/assets/images/imageCaptureHelp/img6-1.png +0 -0
  50. package/src/common/assets/images/imageCaptureHelp/img6-2.png +0 -0
  51. package/src/components/DetailItem.tsx +62 -78
  52. package/src/components/FooterMobile.tsx +80 -41
  53. package/src/components/HeaderMobile.tsx +225 -227
  54. package/src/components/ImageCaptureHelpModal.tsx +90 -0
  55. package/src/components/Layout.tsx +39 -9
  56. package/src/components/MobilePostFilter.tsx +20 -0
  57. package/src/components/PanelResult/expandable-panel.tsx +21 -21
  58. package/src/components/PanelResult/index.tsx +52 -19
  59. package/src/components/ProductList/index.tsx +5 -3
  60. package/src/components/appMobile.scss +64 -32
  61. package/src/components/carousel/ImagePreviewCarousel.tsx +2 -8
  62. package/src/components/drawer/cameraCustom.tsx +8 -33
  63. package/src/components/input/inputSearch.tsx +68 -80
  64. package/src/components/pre-filter/index.tsx +70 -57
  65. package/src/components/results/ItemResult.tsx +73 -89
  66. package/src/constants.ts +56 -0
  67. package/src/page/landingPage/AppMobile.tsx +34 -104
  68. package/src/page/landingPage/common.scss +167 -38
  69. package/src/page/result/index.tsx +70 -56
  70. package/src/services/Feedback.ts +20 -2
  71. package/src/services/types.ts +0 -1
  72. package/src/translations.ts +4 -0
  73. package/src/types.ts +3 -2
  74. package/build/static/css/main.d0b21fa5.chunk.css +0 -2
  75. package/build/static/css/main.d0b21fa5.chunk.css.map +0 -1
  76. package/build/static/js/2.69ce0823.chunk.js +0 -3
  77. package/build/static/js/2.69ce0823.chunk.js.map +0 -1
  78. package/build/static/js/main.6122377b.chunk.js +0 -3
  79. package/build/static/js/main.6122377b.chunk.js.map +0 -1
  80. package/build/static/media/icon_search_image2.e46fdfc5.svg +0 -26
  81. package/src/hooks/useVisualSearch.tsx +0 -77
  82. /package/build/static/js/{2.69ce0823.chunk.js.LICENSE.txt → 2.724f4cba.chunk.js.LICENSE.txt} +0 -0
  83. /package/build/static/js/{main.6122377b.chunk.js.LICENSE.txt → main.f579fa9f.chunk.js.LICENSE.txt} +0 -0
@@ -1,26 +0,0 @@
1
- <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g filter="url(#filter0_d_573_4241)">
3
- <circle cx="20" cy="20" r="16" fill="url(#paint0_linear_573_4241)"/>
4
- <mask id="path-2-outside-1_573_4241" maskUnits="userSpaceOnUse" x="11" y="11" width="18" height="18" fill="black">
5
- <rect fill="white" x="11" y="11" width="18" height="18"/>
6
- <path fill-rule="evenodd" clip-rule="evenodd" d="M12.5013 12C12.2249 12 12 12.2249 12 12.5013V16.0246C12 16.301 12.2249 16.5259 12.5013 16.5259H12.5528C12.8292 16.5259 13.0541 16.301 13.0541 16.0246V13.2203C13.0541 13.1003 13.1518 13.0026 13.2718 13.0026H16.0967C16.3731 13.0026 16.598 12.7777 16.598 12.5013C16.598 12.2249 16.3731 12 16.0967 12H12.5013ZM28 16.0246C28 16.301 27.7751 16.5259 27.4987 16.5259H27.4472C27.1708 16.5259 26.9459 16.301 26.9459 16.0246V13.2203C26.9459 13.1003 26.8482 13.0026 26.7282 13.0026H23.9033C23.6269 13.0026 23.402 12.7777 23.402 12.5013C23.402 12.2249 23.6269 12 23.9033 12H27.4987C27.7751 12 28 12.2249 28 12.5013V16.0246ZM28 27.4987C28 27.7751 27.7751 28 27.4987 28H23.9033C23.6269 28 23.402 27.7751 23.402 27.4987C23.402 27.2223 23.6269 26.9974 23.9033 26.9974H26.7282C26.8482 26.9974 26.9459 26.8997 26.9459 26.7797V23.9757C26.9459 23.6993 27.1708 23.4744 27.4472 23.4744H27.4987C27.7751 23.4744 28 23.6993 28 23.9757V27.4987ZM16.0967 28H12.5013C12.2249 28 12 27.7751 12 27.4987V23.9757C12 23.6993 12.2249 23.4744 12.5013 23.4744H12.5528C12.8292 23.4744 13.0541 23.6993 13.0541 23.9757V26.7797C13.0541 26.8997 13.1518 26.9974 13.2718 26.9974H16.0967C16.3731 26.9974 16.598 27.2223 16.598 27.4987C16.598 27.7751 16.3731 28 16.0967 28ZM23.2482 22.3423L24.5784 23.6725C24.8282 23.9223 24.8282 24.3285 24.5784 24.5784C24.4574 24.6993 24.2961 24.7662 24.1253 24.7662C23.9544 24.7662 23.7935 24.6993 23.6725 24.5784L22.342 23.2482L22.2079 23.3374C21.5564 23.7711 20.7931 24.0007 20 24.0007C18.9315 24.0007 17.9272 23.5843 17.1715 22.8289C16.4161 22.0734 15.9997 21.0692 15.9997 20.0003C15.9997 18.9315 16.4161 17.9272 17.1715 17.1715C17.9272 16.4161 18.9315 16 20 16C21.0685 16 22.0731 16.4161 22.8289 17.1715C23.5843 17.9272 24.0003 18.9315 24.0003 20.0003C24.0003 20.7931 23.7712 21.5564 23.3374 22.2079L23.2482 22.3423ZM21.9639 21.879L21.9708 21.8715C22.4535 21.3636 22.719 20.699 22.719 20.0003C22.719 18.501 21.499 17.2813 20 17.2813C18.501 17.2813 17.281 18.5013 17.281 20.0003C17.281 21.4993 18.501 22.7193 20 22.7193C20.699 22.7193 21.3636 22.4534 21.8715 21.9708L21.8787 21.9639L21.8853 21.9561C21.8964 21.9433 21.9079 21.9308 21.9194 21.9193C21.9312 21.9075 21.9433 21.8964 21.9561 21.8856L21.9639 21.879Z"/>
7
- </mask>
8
- <path fill-rule="evenodd" clip-rule="evenodd" d="M12.5013 12C12.2249 12 12 12.2249 12 12.5013V16.0246C12 16.301 12.2249 16.5259 12.5013 16.5259H12.5528C12.8292 16.5259 13.0541 16.301 13.0541 16.0246V13.2203C13.0541 13.1003 13.1518 13.0026 13.2718 13.0026H16.0967C16.3731 13.0026 16.598 12.7777 16.598 12.5013C16.598 12.2249 16.3731 12 16.0967 12H12.5013ZM28 16.0246C28 16.301 27.7751 16.5259 27.4987 16.5259H27.4472C27.1708 16.5259 26.9459 16.301 26.9459 16.0246V13.2203C26.9459 13.1003 26.8482 13.0026 26.7282 13.0026H23.9033C23.6269 13.0026 23.402 12.7777 23.402 12.5013C23.402 12.2249 23.6269 12 23.9033 12H27.4987C27.7751 12 28 12.2249 28 12.5013V16.0246ZM28 27.4987C28 27.7751 27.7751 28 27.4987 28H23.9033C23.6269 28 23.402 27.7751 23.402 27.4987C23.402 27.2223 23.6269 26.9974 23.9033 26.9974H26.7282C26.8482 26.9974 26.9459 26.8997 26.9459 26.7797V23.9757C26.9459 23.6993 27.1708 23.4744 27.4472 23.4744H27.4987C27.7751 23.4744 28 23.6993 28 23.9757V27.4987ZM16.0967 28H12.5013C12.2249 28 12 27.7751 12 27.4987V23.9757C12 23.6993 12.2249 23.4744 12.5013 23.4744H12.5528C12.8292 23.4744 13.0541 23.6993 13.0541 23.9757V26.7797C13.0541 26.8997 13.1518 26.9974 13.2718 26.9974H16.0967C16.3731 26.9974 16.598 27.2223 16.598 27.4987C16.598 27.7751 16.3731 28 16.0967 28ZM23.2482 22.3423L24.5784 23.6725C24.8282 23.9223 24.8282 24.3285 24.5784 24.5784C24.4574 24.6993 24.2961 24.7662 24.1253 24.7662C23.9544 24.7662 23.7935 24.6993 23.6725 24.5784L22.342 23.2482L22.2079 23.3374C21.5564 23.7711 20.7931 24.0007 20 24.0007C18.9315 24.0007 17.9272 23.5843 17.1715 22.8289C16.4161 22.0734 15.9997 21.0692 15.9997 20.0003C15.9997 18.9315 16.4161 17.9272 17.1715 17.1715C17.9272 16.4161 18.9315 16 20 16C21.0685 16 22.0731 16.4161 22.8289 17.1715C23.5843 17.9272 24.0003 18.9315 24.0003 20.0003C24.0003 20.7931 23.7712 21.5564 23.3374 22.2079L23.2482 22.3423ZM21.9639 21.879L21.9708 21.8715C22.4535 21.3636 22.719 20.699 22.719 20.0003C22.719 18.501 21.499 17.2813 20 17.2813C18.501 17.2813 17.281 18.5013 17.281 20.0003C17.281 21.4993 18.501 22.7193 20 22.7193C20.699 22.7193 21.3636 22.4534 21.8715 21.9708L21.8787 21.9639L21.8853 21.9561C21.8964 21.9433 21.9079 21.9308 21.9194 21.9193C21.9312 21.9075 21.9433 21.8964 21.9561 21.8856L21.9639 21.879Z" fill="currentColor"/>
9
- <path d="M24.5784 23.6725L24.7198 23.531L24.5784 23.6725ZM23.2482 22.3423L23.0815 22.2317L22.9911 22.368L23.1068 22.4837L23.2482 22.3423ZM23.6725 24.5784L23.8139 24.4369L23.8139 24.4369L23.6725 24.5784ZM22.342 23.2482L22.4834 23.1068L22.3676 22.991L22.2312 23.0817L22.342 23.2482ZM22.2079 23.3374L22.0971 23.1708L22.097 23.1709L22.2079 23.3374ZM17.1715 22.8289L17.0301 22.9703L17.0301 22.9703L17.1715 22.8289ZM17.1715 17.1715L17.0301 17.03L17.03 17.0301L17.1715 17.1715ZM22.8289 17.1715L22.9703 17.0301L22.9703 17.03L22.8289 17.1715ZM23.3374 22.2079L23.1709 22.097L23.1707 22.0973L23.3374 22.2079ZM21.9708 21.8715L21.8258 21.7337L21.8231 21.7366L21.9708 21.8715ZM21.9639 21.879L22.092 22.0327L22.1025 22.0239L22.1117 22.0139L21.9639 21.879ZM21.8715 21.9708L22.0093 22.1158L22.0096 22.1155L21.8715 21.9708ZM21.8787 21.9639L22.0168 22.1086L22.025 22.1007L22.0323 22.092L21.8787 21.9639ZM21.8853 21.9561L21.7345 21.8246L21.7316 21.828L21.8853 21.9561ZM21.9194 21.9193L21.7779 21.7779L21.7779 21.7779L21.9194 21.9193ZM21.9561 21.8856L21.828 21.7319L21.8269 21.7329L21.9561 21.8856ZM12.2 12.5013C12.2 12.3354 12.3354 12.2 12.5013 12.2V11.8C12.1145 11.8 11.8 12.1145 11.8 12.5013H12.2ZM12.2 16.0246V12.5013H11.8V16.0246H12.2ZM12.5013 16.3259C12.3354 16.3259 12.2 16.1905 12.2 16.0246H11.8C11.8 16.4114 12.1145 16.7259 12.5013 16.7259V16.3259ZM12.5528 16.3259H12.5013V16.7259H12.5528V16.3259ZM12.8541 16.0246C12.8541 16.1905 12.7187 16.3259 12.5528 16.3259V16.7259C12.9396 16.7259 13.2541 16.4114 13.2541 16.0246H12.8541ZM12.8541 13.2203V16.0246H13.2541V13.2203H12.8541ZM13.2718 12.8026C13.0413 12.8026 12.8541 12.9899 12.8541 13.2203H13.2541C13.2541 13.2108 13.2623 13.2026 13.2718 13.2026V12.8026ZM16.0967 12.8026H13.2718V13.2026H16.0967V12.8026ZM16.398 12.5013C16.398 12.6672 16.2627 12.8026 16.0967 12.8026V13.2026C16.4836 13.2026 16.798 12.8882 16.798 12.5013H16.398ZM16.0967 12.2C16.2627 12.2 16.398 12.3354 16.398 12.5013H16.798C16.798 12.1145 16.4836 11.8 16.0967 11.8V12.2ZM12.5013 12.2H16.0967V11.8H12.5013V12.2ZM27.4987 16.7259C27.8855 16.7259 28.2 16.4114 28.2 16.0246H27.8C27.8 16.1905 27.6646 16.3259 27.4987 16.3259V16.7259ZM27.4472 16.7259H27.4987V16.3259H27.4472V16.7259ZM26.7459 16.0246C26.7459 16.4114 27.0604 16.7259 27.4472 16.7259V16.3259C27.2813 16.3259 27.1459 16.1905 27.1459 16.0246H26.7459ZM26.7459 13.2203V16.0246H27.1459V13.2203H26.7459ZM26.7282 13.2026C26.7377 13.2026 26.7459 13.2108 26.7459 13.2203H27.1459C27.1459 12.9899 26.9586 12.8026 26.7282 12.8026V13.2026ZM23.9033 13.2026H26.7282V12.8026H23.9033V13.2026ZM23.202 12.5013C23.202 12.8882 23.5164 13.2026 23.9033 13.2026V12.8026C23.7373 12.8026 23.602 12.6672 23.602 12.5013H23.202ZM23.9033 11.8C23.5164 11.8 23.202 12.1145 23.202 12.5013H23.602C23.602 12.3354 23.7373 12.2 23.9033 12.2V11.8ZM27.4987 11.8H23.9033V12.2H27.4987V11.8ZM28.2 12.5013C28.2 12.1145 27.8855 11.8 27.4987 11.8V12.2C27.6646 12.2 27.8 12.3354 27.8 12.5013H28.2ZM28.2 16.0246V12.5013H27.8V16.0246H28.2ZM27.4987 28.2C27.8855 28.2 28.2 27.8855 28.2 27.4987H27.8C27.8 27.6646 27.6646 27.8 27.4987 27.8V28.2ZM23.9033 28.2H27.4987V27.8H23.9033V28.2ZM23.202 27.4987C23.202 27.8855 23.5164 28.2 23.9033 28.2V27.8C23.7373 27.8 23.602 27.6646 23.602 27.4987H23.202ZM23.9033 26.7974C23.5164 26.7974 23.202 27.1118 23.202 27.4987H23.602C23.602 27.3328 23.7373 27.1974 23.9033 27.1974V26.7974ZM26.7282 26.7974H23.9033V27.1974H26.7282V26.7974ZM26.7459 26.7797C26.7459 26.7892 26.7377 26.7974 26.7282 26.7974V27.1974C26.9586 27.1974 27.1459 27.0101 27.1459 26.7797H26.7459ZM26.7459 23.9757V26.7797H27.1459V23.9757H26.7459ZM27.4472 23.2744C27.0604 23.2744 26.7459 23.5889 26.7459 23.9757H27.1459C27.1459 23.8098 27.2813 23.6744 27.4472 23.6744V23.2744ZM27.4987 23.2744H27.4472V23.6744H27.4987V23.2744ZM28.2 23.9757C28.2 23.5889 27.8855 23.2744 27.4987 23.2744V23.6744C27.6646 23.6744 27.8 23.8098 27.8 23.9757H28.2ZM28.2 27.4987V23.9757H27.8V27.4987H28.2ZM12.5013 28.2H16.0967V27.8H12.5013V28.2ZM11.8 27.4987C11.8 27.8855 12.1145 28.2 12.5013 28.2V27.8C12.3354 27.8 12.2 27.6646 12.2 27.4987H11.8ZM11.8 23.9757V27.4987H12.2V23.9757H11.8ZM12.5013 23.2744C12.1145 23.2744 11.8 23.5889 11.8 23.9757H12.2C12.2 23.8098 12.3354 23.6744 12.5013 23.6744V23.2744ZM12.5528 23.2744H12.5013V23.6744H12.5528V23.2744ZM13.2541 23.9757C13.2541 23.5889 12.9396 23.2744 12.5528 23.2744V23.6744C12.7187 23.6744 12.8541 23.8098 12.8541 23.9757H13.2541ZM13.2541 26.7797V23.9757H12.8541V26.7797H13.2541ZM13.2718 26.7974C13.2623 26.7974 13.2541 26.7892 13.2541 26.7797H12.8541C12.8541 27.0101 13.0413 27.1974 13.2718 27.1974V26.7974ZM16.0967 26.7974H13.2718V27.1974H16.0967V26.7974ZM16.798 27.4987C16.798 27.1118 16.4836 26.7974 16.0967 26.7974V27.1974C16.2627 27.1974 16.398 27.3328 16.398 27.4987H16.798ZM16.0967 28.2C16.4836 28.2 16.798 27.8855 16.798 27.4987H16.398C16.398 27.6646 16.2627 27.8 16.0967 27.8V28.2ZM24.7198 23.531L23.3896 22.2009L23.1068 22.4837L24.4369 23.8139L24.7198 23.531ZM24.7198 24.7198C25.0477 24.3918 25.0477 23.859 24.7198 23.531L24.4369 23.8139C24.6087 23.9856 24.6087 24.2652 24.4369 24.4369L24.7198 24.7198ZM24.1253 24.9662C24.3492 24.9662 24.5614 24.8782 24.7198 24.7198L24.4369 24.4369C24.3534 24.5205 24.2429 24.5662 24.1253 24.5662V24.9662ZM23.531 24.7198C23.6894 24.8781 23.9012 24.9662 24.1253 24.9662V24.5662C24.0077 24.5662 23.8975 24.5206 23.8139 24.4369L23.531 24.7198ZM22.2006 23.3896L23.5311 24.7198L23.8139 24.4369L22.4834 23.1068L22.2006 23.3896ZM22.3186 23.5039L22.4527 23.4147L22.2312 23.0817L22.0971 23.1708L22.3186 23.5039ZM20 24.2007C20.8321 24.2007 21.634 23.9598 22.3187 23.5039L22.097 23.1709C21.4788 23.5825 20.7542 23.8007 20 23.8007V24.2007ZM17.0301 22.9703C17.8233 23.7632 18.8784 24.2007 20 24.2007V23.8007C18.9846 23.8007 18.0312 23.4054 17.3129 22.6874L17.0301 22.9703ZM15.7997 20.0003C15.7997 21.1223 16.2372 22.1774 17.0301 22.9703L17.3129 22.6874C16.595 21.9695 16.1997 21.0161 16.1997 20.0003H15.7997ZM17.03 17.0301C16.2372 17.8233 15.7997 18.8784 15.7997 20.0003H16.1997C16.1997 18.9846 16.595 18.0311 17.3129 17.3129L17.03 17.0301ZM20 15.8C18.8784 15.8 17.8233 16.2371 17.0301 17.03L17.3129 17.3129C18.0311 16.595 18.9845 16.2 20 16.2V15.8ZM22.9703 17.03C22.177 16.2371 21.1216 15.8 20 15.8V16.2C21.0155 16.2 21.9692 16.595 22.6875 17.3129L22.9703 17.03ZM24.2003 20.0003C24.2003 18.8784 23.7632 17.8233 22.9703 17.0301L22.6874 17.3129C23.4053 18.0311 23.8003 18.9845 23.8003 20.0003H24.2003ZM23.5039 22.3187C23.9598 21.6339 24.2003 20.832 24.2003 20.0003H23.8003C23.8003 20.7542 23.5825 21.4788 23.1709 22.097L23.5039 22.3187ZM23.4149 22.4529L23.504 22.3184L23.1707 22.0973L23.0815 22.2317L23.4149 22.4529ZM21.8231 21.7366L21.8162 21.7442L22.1117 22.0139L22.1185 22.0063L21.8231 21.7366ZM22.519 20.0003C22.519 20.6476 22.2732 21.2629 21.8258 21.7337L22.1158 22.0092C22.6337 21.4643 22.919 20.7504 22.919 20.0003H22.519ZM20 17.4813C21.3886 17.4813 22.519 18.6115 22.519 20.0003H22.919C22.919 18.3905 21.6095 17.0813 20 17.0813V17.4813ZM17.481 20.0003C17.481 18.6118 18.6114 17.4813 20 17.4813V17.0813C18.3905 17.0813 17.081 18.3909 17.081 20.0003H17.481ZM20 22.5193C18.6114 22.5193 17.481 21.3889 17.481 20.0003H17.081C17.081 21.6098 18.3905 22.9193 20 22.9193V22.5193ZM21.7337 21.8258C21.2629 22.2732 20.6476 22.5193 20 22.5193V22.9193C20.7505 22.9193 21.4643 22.6336 22.0093 22.1158L21.7337 21.8258ZM21.7406 21.8193L21.7334 21.8261L22.0096 22.1155L22.0168 22.1086L21.7406 21.8193ZM21.7316 21.828L21.7251 21.8359L22.0323 22.092L22.0389 22.0841L21.7316 21.828ZM21.7779 21.7779C21.7625 21.7933 21.7479 21.8092 21.7345 21.8246L22.036 22.0875C22.0449 22.0773 22.0532 22.0683 22.0608 22.0608L21.7779 21.7779ZM21.8269 21.7329C21.8099 21.7472 21.7937 21.7621 21.7779 21.7779L22.0608 22.0608C22.0686 22.0529 22.0766 22.0456 22.0853 22.0383L21.8269 21.7329ZM21.8359 21.7254L21.828 21.7319L22.0841 22.0392L22.092 22.0327L21.8359 21.7254Z" fill="currentColor" mask="url(#path-2-outside-1_573_4241)"/>
10
- </g>
11
- <defs>
12
- <filter id="filter0_d_573_4241" x="0" y="0" width="40" height="40" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
13
- <feFlood flood-opacity="0" result="BackgroundImageFix"/>
14
- <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
15
- <feOffset/>
16
- <feGaussianBlur stdDeviation="2"/>
17
- <feColorMatrix type="matrix" values="0 0 0 0 0.333333 0 0 0 0 0.337255 0 0 0 0 0.419608 0 0 0 0.502974 0"/>
18
- <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_573_4241"/>
19
- <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_573_4241" result="shape"/>
20
- </filter>
21
- <linearGradient id="paint0_linear_573_4241" x1="20" y1="4" x2="20" y2="36" gradientUnits="userSpaceOnUse">
22
- <stop stop-color="white"/>
23
- <stop offset="1" stop-color="#F4F4F6"/>
24
- </linearGradient>
25
- </defs>
26
- </svg>
@@ -1,77 +0,0 @@
1
- import { RectCoords } from '@nyris/nyris-api';
2
- import { useCallback } from 'react';
3
- import { useMediaQuery } from 'react-responsive';
4
- import { feedbackClickEpic } from 'services/Feedback';
5
- import { createImage, findByImage, findRegions } from 'services/image';
6
- import { showFeedback, showResults } from 'Store/nyris/Nyris';
7
- import {
8
- loadingActionResults,
9
- onToggleModalItemDetail,
10
- setImageSearchInput,
11
- setRegions,
12
- setRequestImage,
13
- setSearchResults,
14
- setSelectedRegion,
15
- updateStatusLoading,
16
- } from 'Store/search/Search';
17
- import { useAppDispatch, useAppSelector } from 'Store/Store';
18
-
19
- export const useVisualSearch = () => {
20
- const dispatch = useAppDispatch();
21
- const stateGlobal = useAppSelector((state: any) => state);
22
- const isMobile = useMediaQuery({ query: '(max-width: 776px)' });
23
-
24
- const getUrlToCanvasFile = useCallback(
25
- async (url: string, position?: number) => {
26
- const {
27
- search: { keyFilter },
28
- settings,
29
- } = stateGlobal;
30
-
31
- dispatch(updateStatusLoading(true));
32
- if (isMobile) {
33
- // executeScroll();
34
- // setOpenModalImage(false);
35
- dispatch(onToggleModalItemDetail(false));
36
- }
37
- dispatch(showResults());
38
- dispatch(loadingActionResults());
39
- dispatch(setImageSearchInput(url));
40
- let image = await createImage(url);
41
- dispatch(setRequestImage(image));
42
-
43
- if (position) {
44
- feedbackClickEpic(stateGlobal, position);
45
- return;
46
- }
47
- let searchRegion: RectCoords | undefined = undefined;
48
-
49
- if (settings.regions) {
50
- let res = await findRegions(image, settings);
51
- searchRegion = res.selectedRegion;
52
- dispatch(setRegions(res.regions));
53
- dispatch(setSelectedRegion(searchRegion));
54
- }
55
- const preFilter = [
56
- {
57
- key: settings.visualSearchFilterKey,
58
- values: [`${keyFilter}`],
59
- },
60
- ];
61
- findByImage({
62
- image,
63
- settings,
64
- region: searchRegion,
65
- filters: keyFilter ? preFilter : undefined,
66
- }).then(res => {
67
- dispatch(setSearchResults(res));
68
- dispatch(showFeedback());
69
- dispatch(updateStatusLoading(false));
70
- return;
71
- });
72
- },
73
- [dispatch, stateGlobal, isMobile],
74
- );
75
-
76
- return { getUrlToCanvasFile };
77
- };