@bjsdistribution/dms-client-return 0.1.80-prod → 0.1.81-prod

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.
@@ -1,78 +1,99 @@
1
- import { jsx as e, jsxs as f } from "react/jsx-runtime";
2
- import { ViewIcon as h } from "@bjsdistribution/dms-component-library";
3
- import l from "@tippyjs/react";
4
- import { useState as g } from "react";
5
- import c from "styled-components";
6
- import { atom as y } from "jotai";
7
- import { useOrderProductsResources as R } from "../../../store.js";
8
- import { notification as t } from "antd";
9
- import { DownloadIcon as b } from "../../../../../assets/icons/DownloadIcon.js";
10
- y([]);
11
- function P({ row: m }) {
12
- const [p] = R(), [i, s] = g(!1), u = m?.original?.id, r = p?.data?.find(
13
- (o) => o.id === u
14
- )?.url;
15
- return /* @__PURE__ */ e(k, { children: /* @__PURE__ */ f(D, { children: [
16
- /* @__PURE__ */ e(l, { content: "View", placement: "top", trigger: "mouseenter", children: /* @__PURE__ */ e(a, { onClick: () => {
17
- r && window.open(r, "_blank");
18
- }, children: /* @__PURE__ */ e(h, { style: { cursor: "pointer" } }) }) }),
19
- /* @__PURE__ */ e(l, { content: "Download", placement: "top", trigger: "mouseenter", children: /* @__PURE__ */ e(
20
- a,
1
+ import { jsx as r, jsxs as x } from "react/jsx-runtime";
2
+ import { ViewIcon as j } from "@bjsdistribution/dms-component-library";
3
+ import u from "@tippyjs/react";
4
+ import { useState as k } from "react";
5
+ import p from "styled-components";
6
+ import { DownloadIcon as D } from "../../../../../assets/icons/DownloadIcon.js";
7
+ import { atom as U } from "jotai";
8
+ import { useOrderProductsResources as E } from "../../../store.js";
9
+ import { notification as a } from "antd";
10
+ U([]);
11
+ function N({ row: g }) {
12
+ const [w] = E(), [c, d] = k(!1), h = g?.original?.id, i = w?.data?.find(
13
+ (o) => o.id === h
14
+ )?.url, y = () => {
15
+ i && window.open(i, "_blank");
16
+ }, b = async (o) => {
17
+ const e = new Uint8Array(await o.slice(0, 12).arrayBuffer());
18
+ return e[0] === 255 && e[1] === 216 && e[2] === 255 ? ".jpeg" : e[0] === 137 && e[1] === 80 && e[2] === 78 && e[3] === 71 ? ".png" : e[0] === 37 && e[1] === 80 && e[2] === 68 && e[3] === 70 ? ".pdf" : e[0] === 73 && e[1] === 68 && e[2] === 51 || e[0] === 255 && (e[1] === 251 || e[1] === 243 || e[1] === 242) ? ".mp3" : e[0] === 82 && e[1] === 73 && e[2] === 70 && e[3] === 70 && e[8] === 87 && e[9] === 65 && e[10] === 86 && e[11] === 69 ? ".wav" : e[0] === 79 && e[1] === 103 && e[2] === 103 && e[3] === 83 ? ".ogg" : e[0] === 71 && e[1] === 73 && e[2] === 70 && e[3] === 56 ? ".gif" : e[0] === 82 && e[1] === 73 && e[2] === 70 && e[3] === 70 && e[8] === 87 && e[9] === 69 && e[10] === 66 && e[11] === 80 ? ".webp" : e[4] === 102 && e[5] === 116 && e[6] === 121 && e[7] === 112 ? ".mp4" : "";
19
+ }, l = (o) => ({
20
+ "image/jpeg": ".jpeg",
21
+ "image/jpg": ".jpg",
22
+ "image/png": ".png",
23
+ "image/gif": ".gif",
24
+ "image/webp": ".webp",
25
+ "application/pdf": ".pdf",
26
+ "audio/mpeg": ".mp3",
27
+ "audio/mp3": ".mp3",
28
+ "audio/wav": ".wav",
29
+ "audio/ogg": ".ogg",
30
+ "audio/x-wav": ".wav",
31
+ "video/mp4": ".mp4"
32
+ })[o?.toLowerCase()] || "";
33
+ return /* @__PURE__ */ r(C, { children: /* @__PURE__ */ x(L, { children: [
34
+ /* @__PURE__ */ r(u, { content: "View", placement: "top", trigger: "mouseenter", children: /* @__PURE__ */ r(f, { onClick: y, children: /* @__PURE__ */ r(j, { style: { cursor: "pointer" } }) }) }),
35
+ /* @__PURE__ */ r(u, { content: "Download", placement: "top", trigger: "mouseenter", children: /* @__PURE__ */ r(
36
+ f,
21
37
  {
22
- onClick: i ? void 0 : async () => {
23
- if (!r) {
24
- t.error({
38
+ onClick: c ? void 0 : async () => {
39
+ if (!i) {
40
+ a.error({
25
41
  message: "Error",
26
42
  description: "Resource URL is not available"
27
43
  });
28
44
  return;
29
45
  }
30
- s(!0), t.info({
46
+ d(!0), a.info({
31
47
  message: "Info",
32
48
  description: "Download is in progress. Please wait"
33
- }), fetch(r, {
34
- method: "GET",
35
- headers: {}
36
- }).then((o) => {
37
- if (!o.ok)
49
+ });
50
+ try {
51
+ const o = new URL(i);
52
+ o.searchParams.set("export", "pdf");
53
+ const e = await fetch(o.toString(), {
54
+ method: "GET",
55
+ headers: {}
56
+ });
57
+ if (!e.ok)
38
58
  throw new Error("Network response was not ok");
39
- return o.blob();
40
- }).then((o) => {
41
- const d = window.URL.createObjectURL(o), n = document.createElement("a");
42
- n.href = d;
43
- const w = "Downloads";
44
- n.download = w, document.body.appendChild(n), n.click(), document.body.removeChild(n), window.URL.revokeObjectURL(d), t.success({
59
+ const s = await e.blob();
60
+ let n = await b(s);
61
+ if (!n) {
62
+ const R = e.headers.get("Content-Type") || "";
63
+ n = l(R.split(";")[0]?.trim());
64
+ }
65
+ !n && s.type && (n = l(s.type));
66
+ const v = `Download${n || ""}`, m = window.URL.createObjectURL(s), t = document.createElement("a");
67
+ t.href = m, t.download = v, document.body.appendChild(t), t.click(), document.body.removeChild(t), window.URL.revokeObjectURL(m), a.success({
45
68
  message: "Success",
46
69
  description: "Document downloaded successfully."
47
- }), s(!1);
48
- }).catch((o) => {
49
- console.error("Error downloading the document:", o), t.error({
70
+ }), d(!1);
71
+ } catch (o) {
72
+ console.error("Error downloading the document:", o), a.error({
50
73
  message: "Error",
51
74
  description: "Failed to download the document."
52
- });
53
- }).finally(() => {
54
- s(!1);
55
- });
75
+ }), d(!1);
76
+ }
56
77
  },
57
78
  style: {
58
- cursor: i ? "not-allowed" : "pointer",
59
- opacity: i ? 0.6 : 1
79
+ cursor: c ? "not-allowed" : "pointer",
80
+ opacity: c ? 0.6 : 1
60
81
  },
61
- children: /* @__PURE__ */ e(b, {})
82
+ children: /* @__PURE__ */ r(D, {})
62
83
  }
63
84
  ) })
64
85
  ] }) });
65
86
  }
66
- const k = c.div``, a = c.div`
87
+ const C = p.div``, f = p.div`
67
88
  display: inline-block;
68
89
  margin: 7px;
69
- `, D = c.div`
90
+ `, L = p.div`
70
91
  gap: 10px;
71
92
  cursor: pointer;
72
93
  display: flex;
73
94
  align-items: center;
74
95
  `;
75
96
  export {
76
- P as default
97
+ N as default
77
98
  };
78
99
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../src/components/order-view/order-resources/columns/actions/index.tsx"],"sourcesContent":["import { ViewIcon } from '@bjsdistribution/dms-component-library';\nimport Tippy from '@tippyjs/react';\nimport React, { useState } from 'react';\nimport styled from 'styled-components';\nimport { atom } from 'jotai';\nimport { useOrderProductsResources } from '../../../store';\nimport { notification } from 'antd';\nimport DownloadIcon from '../../../../../assets/icons/DownloadIcon';\n\nexport const selectedOrderIdAtom = atom<number[]>([]);\n\ninterface ActionProps {\n row: {\n original: {\n id: number;\n };\n };\n}\n\nfunction Action({ row }: ActionProps) {\n const [orderResources] = useOrderProductsResources();\n const [isDownloading, setIsDownloading] = useState(false);\n const urlID = row?.original?.id;\n\n const matchingResource = orderResources?.data?.find(\n (resource: any) => resource.id === urlID\n );\n\n const resourceUrl = matchingResource?.url;\n\n const handleView = () => {\n if (resourceUrl) {\n window.open(resourceUrl, '_blank');\n }\n };\n\n const handleDownload = async () => {\n if (!resourceUrl) {\n notification.error({\n message: 'Error',\n description: 'Resource URL is not available',\n });\n return;\n }\n\n setIsDownloading(true); // disable button\n notification.info({\n message: 'Info',\n description: `Download is in progress. Please wait`,\n });\n //to change\n fetch(resourceUrl, {\n method: 'GET',\n headers: {},\n })\n .then(response => {\n if (!response.ok) {\n throw new Error('Network response was not ok');\n }\n return response.blob();\n })\n .then(blob => {\n // Create a temporary URL for the blob\n const urlObject = window.URL.createObjectURL(blob);\n\n // Create a temporary anchor element\n const link = document.createElement('a');\n link.href = urlObject;\n\n // Generate a filename (you can customize this)\n const filename = `Downloads`;\n link.download = filename;\n\n // Append to body, click, and remove\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n\n // Revoke the blob URL\n window.URL.revokeObjectURL(urlObject);\n\n notification.success({\n message: 'Success',\n description: 'Document downloaded successfully.',\n });\n\n setIsDownloading(false); // enable button\n })\n .catch(error => {\n console.error('Error downloading the document:', error);\n notification.error({\n message: 'Error',\n description: 'Failed to download the document.',\n });\n })\n .finally(() => {\n setIsDownloading(false);\n });\n };\n\n return (\n <Actions>\n <Row>\n <Tippy content=\"View\" placement=\"top\" trigger=\"mouseenter\">\n <TippyContainer onClick={handleView}>\n <ViewIcon style={{ cursor: 'pointer' }} />\n </TippyContainer>\n </Tippy>\n <Tippy content=\"Download\" placement=\"top\" trigger=\"mouseenter\">\n <TippyContainer\n onClick={isDownloading ? undefined : handleDownload}\n style={{\n cursor: isDownloading ? 'not-allowed' : 'pointer',\n opacity: isDownloading ? 0.6 : 1,\n }}\n >\n <DownloadIcon />\n </TippyContainer>\n </Tippy>\n </Row>\n </Actions>\n );\n}\n\n// Styled components for styling\nconst Actions = styled.div``;\n\nconst TippyContainer = styled.div`\n display: inline-block;\n margin: 7px;\n`;\n\nconst Row = styled.div`\n gap: 10px;\n cursor: pointer;\n display: flex;\n align-items: center;\n`;\n\nexport default Action;\n"],"names":["atom","Action","row","orderResources","useOrderProductsResources","isDownloading","setIsDownloading","useState","urlID","resourceUrl","resource","jsx","Actions","jsxs","Row","Tippy","TippyContainer","ViewIcon","notification","response","blob","urlObject","link","filename","error","DownloadIcon","styled"],"mappings":";;;;;;;;;AASmCA,EAAe,CAAA,CAAE;AAUpD,SAASC,EAAO,EAAE,KAAAC,KAAoB;AACpC,QAAM,CAACC,CAAc,IAAIC,EAAA,GACnB,CAACC,GAAeC,CAAgB,IAAIC,EAAS,EAAK,GAClDC,IAAQN,GAAK,UAAU,IAMvBO,IAJmBN,GAAgB,MAAM;AAAA,IAC7C,CA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,CAAS,GAEpCH,EAAa,QAAQ;AAAA,cACnB,SAAS;AAAA,cACT,aAAa;AAAA,YAAA,CACd,GAEDZ,EAAiB,EAAK;AAAA,UACxB,CAAC,EACA,MAAM,CAAAkB,MAAS;AACd,oBAAQ,MAAM,mCAAmCA,CAAK,GACtDN,EAAa,MAAM;AAAA,cACjB,SAAS;AAAA,cACT,aAAa;AAAA,YAAA,CACd;AAAA,UACH,CAAC,EACA,QAAQ,MAAM;AACb,YAAAZ,EAAiB,EAAK;AAAA,UACxB,CAAC;AAAA,QACL;AAAA,QAaU,OAAO;AAAA,UACL,QAAQD,IAAgB,gBAAgB;AAAA,UACxC,SAASA,IAAgB,MAAM;AAAA,QAAA;AAAA,QAGjC,4BAACoB,GAAA,CAAA,CAAa;AAAA,MAAA;AAAA,IAAA,EAChB,CACF;AAAA,EAAA,EAAA,CACF,EAAA,CACF;AAEJ;AAGA,MAAMb,IAAUc,EAAO,OAEjBV,IAAiBU,EAAO;AAAA;AAAA;AAAA,GAKxBZ,IAAMY,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../src/components/order-view/order-resources/columns/actions/index.tsx"],"sourcesContent":["import { ViewIcon } from '@bjsdistribution/dms-component-library';\nimport Tippy from '@tippyjs/react';\nimport React, { useState } from 'react';\nimport styled from 'styled-components';\nimport DownloadIcon from '../../../../../assets/icons/DownloadIcon';\nimport { atom } from 'jotai';\nimport { useOrderProductsResources } from '../../../store';\nimport { notification } from 'antd';\n\nexport const selectedOrderIdAtom = atom<number[]>([]);\n\ninterface ActionProps {\n row: {\n original: {\n id: number;\n };\n };\n}\n\nfunction Action({ row }: ActionProps) {\n const [orderResources] = useOrderProductsResources();\n const [isDownloading, setIsDownloading] = useState(false);\n const urlID = row?.original?.id;\n\n const matchingResource = orderResources?.data?.find(\n (resource: any) => resource.id === urlID\n );\n\n const resourceUrl = matchingResource?.url;\n\n const handleView = () => {\n if (resourceUrl) {\n window.open(resourceUrl, '_blank');\n }\n };\n\n // Detect file type from the first bytes (magic numbers) of a blob\n const detectExtensionFromBlob = async (blob: Blob): Promise<string> => {\n const arr = new Uint8Array(await blob.slice(0, 12).arrayBuffer());\n\n // JPEG: FF D8 FF\n if (arr[0] === 0xff && arr[1] === 0xd8 && arr[2] === 0xff) return '.jpeg';\n // PNG: 89 50 4E 47\n if (\n arr[0] === 0x89 &&\n arr[1] === 0x50 &&\n arr[2] === 0x4e &&\n arr[3] === 0x47\n )\n return '.png';\n // PDF: %PDF (25 50 44 46)\n if (\n arr[0] === 0x25 &&\n arr[1] === 0x50 &&\n arr[2] === 0x44 &&\n arr[3] === 0x46\n )\n return '.pdf';\n // MP3 with ID3 tag: 49 44 33\n if (arr[0] === 0x49 && arr[1] === 0x44 && arr[2] === 0x33) return '.mp3';\n // MP3 frame sync: FF FB, FF F3, FF F2\n if (\n arr[0] === 0xff &&\n (arr[1] === 0xfb || arr[1] === 0xf3 || arr[1] === 0xf2)\n )\n return '.mp3';\n // WAV: RIFF....WAVE\n if (\n arr[0] === 0x52 &&\n arr[1] === 0x49 &&\n arr[2] === 0x46 &&\n arr[3] === 0x46 &&\n arr[8] === 0x57 &&\n arr[9] === 0x41 &&\n arr[10] === 0x56 &&\n arr[11] === 0x45\n )\n return '.wav';\n // OGG: OggS\n if (\n arr[0] === 0x4f &&\n arr[1] === 0x67 &&\n arr[2] === 0x67 &&\n arr[3] === 0x53\n )\n return '.ogg';\n // GIF: GIF8\n if (\n arr[0] === 0x47 &&\n arr[1] === 0x49 &&\n arr[2] === 0x46 &&\n arr[3] === 0x38\n )\n return '.gif';\n // WEBP: RIFF....WEBP\n if (\n arr[0] === 0x52 &&\n arr[1] === 0x49 &&\n arr[2] === 0x46 &&\n arr[3] === 0x46 &&\n arr[8] === 0x57 &&\n arr[9] === 0x45 &&\n arr[10] === 0x42 &&\n arr[11] === 0x50\n )\n return '.webp';\n // MP4: ....ftyp (bytes 4-7)\n if (\n arr[4] === 0x66 &&\n arr[5] === 0x74 &&\n arr[6] === 0x79 &&\n arr[7] === 0x70\n )\n return '.mp4';\n\n return '';\n };\n\n // Fallback: map MIME type to extension\n const getExtensionFromMime = (mimeType: string): string => {\n const mimeMap: Record<string, string> = {\n 'image/jpeg': '.jpeg',\n 'image/jpg': '.jpg',\n 'image/png': '.png',\n 'image/gif': '.gif',\n 'image/webp': '.webp',\n 'application/pdf': '.pdf',\n 'audio/mpeg': '.mp3',\n 'audio/mp3': '.mp3',\n 'audio/wav': '.wav',\n 'audio/ogg': '.ogg',\n 'audio/x-wav': '.wav',\n 'video/mp4': '.mp4',\n };\n return mimeMap[mimeType?.toLowerCase()] || '';\n };\n\n const handleDownload = async () => {\n if (!resourceUrl) {\n notification.error({\n message: 'Error',\n description: 'Resource URL is not available',\n });\n return;\n }\n\n setIsDownloading(true);\n notification.info({\n message: 'Info',\n description: `Download is in progress. Please wait`,\n });\n\n try {\n const downloadUrl = new URL(resourceUrl);\n downloadUrl.searchParams.set('export', 'pdf');\n\n const response = await fetch(downloadUrl.toString(), {\n method: 'GET',\n headers: {},\n });\n\n if (!response.ok) {\n throw new Error('Network response was not ok');\n }\n\n const blob = await response.blob();\n\n // 1. Try magic bytes detection (most reliable)\n let extension = await detectExtensionFromBlob(blob);\n\n // 2. Fallback to Content-Type header\n if (!extension) {\n const contentType = response.headers.get('Content-Type') || '';\n extension = getExtensionFromMime(contentType.split(';')[0]?.trim());\n }\n\n // 3. Fallback to blob.type\n if (!extension && blob.type) {\n extension = getExtensionFromMime(blob.type);\n }\n\n const filename = `Download${extension || ''}`;\n\n // Create a temporary URL for the blob\n const urlObject = window.URL.createObjectURL(blob);\n\n const link = document.createElement('a');\n link.href = urlObject;\n link.download = filename;\n\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n\n window.URL.revokeObjectURL(urlObject);\n\n notification.success({\n message: 'Success',\n description: 'Document downloaded successfully.',\n });\n\n setIsDownloading(false);\n } catch (error) {\n console.error('Error downloading the document:', error);\n notification.error({\n message: 'Error',\n description: 'Failed to download the document.',\n });\n setIsDownloading(false);\n }\n };\n\n return (\n <Actions>\n <Row>\n <Tippy content=\"View\" placement=\"top\" trigger=\"mouseenter\">\n <TippyContainer onClick={handleView}>\n <ViewIcon style={{ cursor: 'pointer' }} />\n </TippyContainer>\n </Tippy>\n <Tippy content=\"Download\" placement=\"top\" trigger=\"mouseenter\">\n <TippyContainer\n onClick={isDownloading ? undefined : handleDownload}\n style={{\n cursor: isDownloading ? 'not-allowed' : 'pointer',\n opacity: isDownloading ? 0.6 : 1,\n }}\n >\n <DownloadIcon />\n </TippyContainer>\n </Tippy>\n </Row>\n </Actions>\n );\n}\n\n// Styled components for styling\nconst Actions = styled.div``;\n\nconst TippyContainer = styled.div`\n display: inline-block;\n margin: 7px;\n`;\n\nconst Row = styled.div`\n gap: 10px;\n cursor: pointer;\n display: flex;\n align-items: center;\n`;\n\nexport default Action;\n"],"names":["atom","Action","row","orderResources","useOrderProductsResources","isDownloading","setIsDownloading","useState","urlID","resourceUrl","resource","handleView","detectExtensionFromBlob","blob","arr","getExtensionFromMime","mimeType","jsx","Actions","jsxs","Row","Tippy","TippyContainer","ViewIcon","notification","downloadUrl","response","extension","contentType","filename","urlObject","link","error","DownloadIcon","styled"],"mappings":";;;;;;;;;AASmCA,EAAe,CAAA,CAAE;AAUpD,SAASC,EAAO,EAAE,KAAAC,KAAoB;AACpC,QAAM,CAACC,CAAc,IAAIC,EAAA,GACnB,CAACC,GAAeC,CAAgB,IAAIC,EAAS,EAAK,GAClDC,IAAQN,GAAK,UAAU,IAMvBO,IAJmBN,GAAgB,MAAM;AAAA,IAC7C,CAACO,MAAkBA,EAAS,OAAOF;AAAA,EAAA,GAGC,KAEhCG,IAAa,MAAM;AACvB,IAAIF,KACF,OAAO,KAAKA,GAAa,QAAQ;AAAA,EAErC,GAGMG,IAA0B,OAAOC,MAAgC;AACrE,UAAMC,IAAM,IAAI,WAAW,MAAMD,EAAK,MAAM,GAAG,EAAE,EAAE,aA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/index.js",
5
5
  "module": "dist/index.js",