@grupalia/rn-ui-kit 0.33.0 → 0.34.0
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/lib/commonjs/components/AppNotificationModal.js +155 -0
- package/lib/commonjs/components/AppNotificationModal.js.map +1 -0
- package/lib/commonjs/components/AppNotifications.js +98 -0
- package/lib/commonjs/components/AppNotifications.js.map +1 -0
- package/lib/commonjs/components/BasePing.js +59 -0
- package/lib/commonjs/components/BasePing.js.map +1 -0
- package/lib/commonjs/components/NotificationDrawer.js +53 -0
- package/lib/commonjs/components/NotificationDrawer.js.map +1 -0
- package/lib/commonjs/components/index.js +28 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/notifications/types.js +2 -0
- package/lib/commonjs/components/notifications/types.js.map +1 -0
- package/lib/commonjs/utils/index.js +11 -0
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/commonjs/utils/svg.js +15 -0
- package/lib/commonjs/utils/svg.js.map +1 -0
- package/lib/module/components/AppNotificationModal.js +150 -0
- package/lib/module/components/AppNotificationModal.js.map +1 -0
- package/lib/module/components/AppNotifications.js +93 -0
- package/lib/module/components/AppNotifications.js.map +1 -0
- package/lib/module/components/BasePing.js +55 -0
- package/lib/module/components/BasePing.js.map +1 -0
- package/lib/module/components/NotificationDrawer.js +48 -0
- package/lib/module/components/NotificationDrawer.js.map +1 -0
- package/lib/module/components/index.js +4 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/notifications/types.js +2 -0
- package/lib/module/components/notifications/types.js.map +1 -0
- package/lib/module/utils/index.js +1 -0
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/utils/svg.js +12 -0
- package/lib/module/utils/svg.js.map +1 -0
- package/lib/typescript/commonjs/components/AppNotificationModal.d.ts +10 -0
- package/lib/typescript/commonjs/components/AppNotificationModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/AppNotifications.d.ts +11 -0
- package/lib/typescript/commonjs/components/AppNotifications.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/BasePing.d.ts +10 -0
- package/lib/typescript/commonjs/components/BasePing.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/NotificationDrawer.d.ts +13 -0
- package/lib/typescript/commonjs/components/NotificationDrawer.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/notifications/types.d.ts +14 -0
- package/lib/typescript/commonjs/components/notifications/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/index.d.ts +1 -0
- package/lib/typescript/commonjs/utils/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/svg.d.ts +3 -0
- package/lib/typescript/commonjs/utils/svg.d.ts.map +1 -0
- package/lib/typescript/module/components/AppNotificationModal.d.ts +10 -0
- package/lib/typescript/module/components/AppNotificationModal.d.ts.map +1 -0
- package/lib/typescript/module/components/AppNotifications.d.ts +11 -0
- package/lib/typescript/module/components/AppNotifications.d.ts.map +1 -0
- package/lib/typescript/module/components/BasePing.d.ts +10 -0
- package/lib/typescript/module/components/BasePing.d.ts.map +1 -0
- package/lib/typescript/module/components/NotificationDrawer.d.ts +13 -0
- package/lib/typescript/module/components/NotificationDrawer.d.ts.map +1 -0
- package/lib/typescript/module/components/index.d.ts +4 -0
- package/lib/typescript/module/components/index.d.ts.map +1 -1
- package/lib/typescript/module/components/notifications/types.d.ts +14 -0
- package/lib/typescript/module/components/notifications/types.d.ts.map +1 -0
- package/lib/typescript/module/utils/index.d.ts +1 -0
- package/lib/typescript/module/utils/index.d.ts.map +1 -1
- package/lib/typescript/module/utils/svg.d.ts +3 -0
- package/lib/typescript/module/utils/svg.d.ts.map +1 -0
- package/package.json +3 -1
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = AppNotificationModal;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _reactNativeRenderHtml = _interopRequireDefault(require("react-native-render-html"));
|
|
9
|
+
var _reactNativeSvg = require("react-native-svg");
|
|
10
|
+
var _BaseButton = _interopRequireDefault(require("./BaseButton"));
|
|
11
|
+
var _BaseText = _interopRequireDefault(require("./BaseText"));
|
|
12
|
+
var _hocComponents = require("../hoc-components");
|
|
13
|
+
var _useTimezonedDate = require("../hooks/useTimezonedDate");
|
|
14
|
+
var _foregroundColors = _interopRequireDefault(require("../styles/foreground-colors"));
|
|
15
|
+
var _utilityColors = _interopRequireDefault(require("../styles/utility-colors"));
|
|
16
|
+
var _utils = require("../utils");
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
|
+
const BRAND_COLOR = _foregroundColors.default['fg-brand-primary'].light;
|
|
20
|
+
const htmlStyles = {
|
|
21
|
+
body: {
|
|
22
|
+
fontSize: 16,
|
|
23
|
+
lineHeight: 24,
|
|
24
|
+
color: _foregroundColors.default['fg-secondary'].light
|
|
25
|
+
},
|
|
26
|
+
p: {
|
|
27
|
+
marginVertical: 8
|
|
28
|
+
},
|
|
29
|
+
strong: {
|
|
30
|
+
fontWeight: 'bold',
|
|
31
|
+
color: BRAND_COLOR
|
|
32
|
+
},
|
|
33
|
+
b: {
|
|
34
|
+
fontWeight: 'bold',
|
|
35
|
+
color: BRAND_COLOR
|
|
36
|
+
},
|
|
37
|
+
em: {
|
|
38
|
+
fontStyle: 'italic'
|
|
39
|
+
},
|
|
40
|
+
i: {
|
|
41
|
+
fontStyle: 'italic'
|
|
42
|
+
},
|
|
43
|
+
u: {
|
|
44
|
+
textDecorationLine: 'underline'
|
|
45
|
+
},
|
|
46
|
+
s: {
|
|
47
|
+
textDecorationLine: 'line-through'
|
|
48
|
+
},
|
|
49
|
+
strike: {
|
|
50
|
+
textDecorationLine: 'line-through'
|
|
51
|
+
},
|
|
52
|
+
del: {
|
|
53
|
+
textDecorationLine: 'line-through'
|
|
54
|
+
},
|
|
55
|
+
a: {
|
|
56
|
+
fontWeight: '500',
|
|
57
|
+
color: BRAND_COLOR,
|
|
58
|
+
textDecorationLine: 'underline'
|
|
59
|
+
},
|
|
60
|
+
h1: {
|
|
61
|
+
fontSize: 24,
|
|
62
|
+
fontWeight: 'bold',
|
|
63
|
+
marginVertical: 12,
|
|
64
|
+
lineHeight: 32
|
|
65
|
+
},
|
|
66
|
+
blockquote: {
|
|
67
|
+
borderLeftWidth: 4,
|
|
68
|
+
borderLeftColor: _utilityColors.default['utility-gray-200'].light,
|
|
69
|
+
paddingLeft: 16,
|
|
70
|
+
marginVertical: 8,
|
|
71
|
+
backgroundColor: _utilityColors.default['utility-gray-50'].light,
|
|
72
|
+
paddingVertical: 8
|
|
73
|
+
},
|
|
74
|
+
code: {
|
|
75
|
+
backgroundColor: _utilityColors.default['utility-gray-100'].light,
|
|
76
|
+
paddingHorizontal: 4,
|
|
77
|
+
paddingVertical: 2,
|
|
78
|
+
fontSize: 14,
|
|
79
|
+
borderRadius: 4
|
|
80
|
+
},
|
|
81
|
+
pre: {
|
|
82
|
+
backgroundColor: _utilityColors.default['utility-gray-100'].light,
|
|
83
|
+
padding: 12,
|
|
84
|
+
marginVertical: 8,
|
|
85
|
+
fontSize: 14,
|
|
86
|
+
borderRadius: 8
|
|
87
|
+
},
|
|
88
|
+
div: {
|
|
89
|
+
marginVertical: 4
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
const htmlClassesStyles = {
|
|
93
|
+
'trix-content': {
|
|
94
|
+
fontSize: 14,
|
|
95
|
+
lineHeight: 20
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
function AppNotificationModal({
|
|
99
|
+
notification,
|
|
100
|
+
onClose,
|
|
101
|
+
onRead
|
|
102
|
+
}) {
|
|
103
|
+
const {
|
|
104
|
+
tz
|
|
105
|
+
} = (0, _useTimezonedDate.useTimezonedDate)();
|
|
106
|
+
const {
|
|
107
|
+
width
|
|
108
|
+
} = _reactNative.Dimensions.get('window');
|
|
109
|
+
function handleRead() {
|
|
110
|
+
if (!notification.readAt) {
|
|
111
|
+
onRead(notification.id, tz().toISOString());
|
|
112
|
+
}
|
|
113
|
+
onClose();
|
|
114
|
+
}
|
|
115
|
+
const imageUrl = notification.portrait?.small?.url;
|
|
116
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_hocComponents.Modal, {
|
|
117
|
+
visible: true,
|
|
118
|
+
transparent: true,
|
|
119
|
+
animationType: "fade",
|
|
120
|
+
onRequestClose: onClose,
|
|
121
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_hocComponents.View, {
|
|
122
|
+
className: "flex-1 items-center justify-center bg-overlay/90 px-8 py-16",
|
|
123
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_hocComponents.View, {
|
|
124
|
+
className: "w-full space-y-5 rounded-lg bg-white p-4",
|
|
125
|
+
children: [!!imageUrl && /*#__PURE__*/(0, _jsxRuntime.jsx)(_hocComponents.View, {
|
|
126
|
+
className: "flex w-full items-center rounded-lg bg-tertiary py-3",
|
|
127
|
+
children: (0, _utils.isSvg)(imageUrl) ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.SvgUri, {
|
|
128
|
+
width: "180",
|
|
129
|
+
height: "180",
|
|
130
|
+
uri: imageUrl
|
|
131
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_hocComponents.Image, {
|
|
132
|
+
source: {
|
|
133
|
+
uri: imageUrl
|
|
134
|
+
},
|
|
135
|
+
className: "h-10 w-10 rounded-full"
|
|
136
|
+
})
|
|
137
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_BaseText.default, {
|
|
138
|
+
className: "text-center font-semibold",
|
|
139
|
+
children: notification.title
|
|
140
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeRenderHtml.default, {
|
|
141
|
+
contentWidth: width,
|
|
142
|
+
source: {
|
|
143
|
+
html: notification.body
|
|
144
|
+
},
|
|
145
|
+
tagsStyles: htmlStyles,
|
|
146
|
+
classesStyles: htmlClassesStyles
|
|
147
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_BaseButton.default, {
|
|
148
|
+
text: "Entendido",
|
|
149
|
+
onPress: () => handleRead()
|
|
150
|
+
})]
|
|
151
|
+
})
|
|
152
|
+
})
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
//# sourceMappingURL=AppNotificationModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_reactNativeRenderHtml","_interopRequireDefault","_reactNativeSvg","_BaseButton","_BaseText","_hocComponents","_useTimezonedDate","_foregroundColors","_utilityColors","_utils","_jsxRuntime","e","__esModule","default","BRAND_COLOR","foregroundColors","light","htmlStyles","body","fontSize","lineHeight","color","p","marginVertical","strong","fontWeight","b","em","fontStyle","i","u","textDecorationLine","s","strike","del","a","h1","blockquote","borderLeftWidth","borderLeftColor","utilityColors","paddingLeft","backgroundColor","paddingVertical","code","paddingHorizontal","borderRadius","pre","padding","div","htmlClassesStyles","AppNotificationModal","notification","onClose","onRead","tz","useTimezonedDate","width","Dimensions","get","handleRead","readAt","id","toISOString","imageUrl","portrait","small","url","jsx","Modal","visible","transparent","animationType","onRequestClose","children","View","className","jsxs","isSvg","SvgUri","height","uri","Image","source","title","contentWidth","html","tagsStyles","classesStyles","text","onPress"],"sourceRoot":"../../../src","sources":["components/AppNotificationModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AAEA,IAAAI,WAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,SAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,cAAA,GAAA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;UAAK,CAAE;UACpCqE,UAAU,EAAEtE,UAAW;UACvBuE,aAAa,EAAEtC;QAAkB,CAClC,CAAC,eACF,IAAAxC,WAAA,CAAA0D,GAAA,EAACjE,WAAA,CAAAU,OAAU;UACT4E,IAAI,EAAC,WAAW;UAChBC,OAAO,EAAEA,CAAA,KAAM9B,UAAU,CAAC;QAAE,CAC7B,CAAC;MAAA,CACE;IAAC,CACH;EAAC,CACF,CAAC;AAEZ","ignoreList":[]}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = AppNotifications;
|
|
7
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
var _outline = require("react-native-heroicons/outline");
|
|
10
|
+
var _reactNativeSvg = require("react-native-svg");
|
|
11
|
+
var _AppNotificationModal = _interopRequireDefault(require("./AppNotificationModal"));
|
|
12
|
+
var _BaseIcon = _interopRequireDefault(require("./BaseIcon"));
|
|
13
|
+
var _BasePing = _interopRequireDefault(require("./BasePing"));
|
|
14
|
+
var _BaseText = _interopRequireDefault(require("./BaseText"));
|
|
15
|
+
var _PressableOpacity = _interopRequireDefault(require("./PressableOpacity"));
|
|
16
|
+
var _hocComponents = require("../hoc-components");
|
|
17
|
+
var _svg = require("../utils/svg");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
|
+
function AppNotificationCard({
|
|
21
|
+
notification,
|
|
22
|
+
onPress,
|
|
23
|
+
className,
|
|
24
|
+
...props
|
|
25
|
+
}) {
|
|
26
|
+
const imageUrl = notification.portrait?.small?.url;
|
|
27
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_PressableOpacity.default, {
|
|
28
|
+
className: (0, _clsx.default)('flex flex-row items-center space-x-2', className),
|
|
29
|
+
onPress: onPress,
|
|
30
|
+
...props,
|
|
31
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_hocComponents.View, {
|
|
32
|
+
className: "h-14 w-14 items-center justify-center rounded-full border border-primary bg-quaternary",
|
|
33
|
+
children: [!!imageUrl && (0, _svg.isSvg)(imageUrl) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.SvgUri, {
|
|
34
|
+
width: "40",
|
|
35
|
+
height: "40",
|
|
36
|
+
uri: imageUrl
|
|
37
|
+
}), !!imageUrl && !(0, _svg.isSvg)(imageUrl) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_hocComponents.Image, {
|
|
38
|
+
source: {
|
|
39
|
+
uri: imageUrl
|
|
40
|
+
},
|
|
41
|
+
className: "h-10 w-10 rounded-full"
|
|
42
|
+
}), !notification.readAt && /*#__PURE__*/(0, _jsxRuntime.jsx)(_BasePing.default, {
|
|
43
|
+
className: "absolute -bottom-1 -right-1 mb-1 mr-1 h-3 w-3 rounded-full bg-warning-solid p-0.5"
|
|
44
|
+
})]
|
|
45
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_hocComponents.View, {
|
|
46
|
+
className: "flex-1",
|
|
47
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_BaseText.default, {
|
|
48
|
+
className: "text-sm font-medium text-secondary",
|
|
49
|
+
children: notification.title
|
|
50
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_BaseText.default, {
|
|
51
|
+
className: "text-sm text-tertiary",
|
|
52
|
+
children: notification.preview
|
|
53
|
+
})]
|
|
54
|
+
})]
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
function AppNotifications({
|
|
58
|
+
visible,
|
|
59
|
+
onClose,
|
|
60
|
+
notifications,
|
|
61
|
+
onNotificationRead
|
|
62
|
+
}) {
|
|
63
|
+
const [selectedNotification, setSelectedNotification] = (0, _react.useState)(null);
|
|
64
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_hocComponents.Modal, {
|
|
65
|
+
visible: visible,
|
|
66
|
+
transparent: true,
|
|
67
|
+
onRequestClose: onClose,
|
|
68
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PressableOpacity.default, {
|
|
69
|
+
className: "flex-1 items-center justify-center bg-overlay/80 pl-10",
|
|
70
|
+
onPress: onClose,
|
|
71
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_hocComponents.Pressable, {
|
|
72
|
+
className: "w-full flex-1 bg-primary p-6",
|
|
73
|
+
onPress: e => e.stopPropagation(),
|
|
74
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_hocComponents.View, {
|
|
75
|
+
className: "mb-6 flex flex-row items-center justify-between",
|
|
76
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_BaseText.default, {
|
|
77
|
+
className: "font-semibold text-primary",
|
|
78
|
+
children: "Notificaciones"
|
|
79
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_BaseIcon.default, {
|
|
80
|
+
icon: _outline.XMarkIcon,
|
|
81
|
+
size: 24,
|
|
82
|
+
color: "fg-primary",
|
|
83
|
+
onPress: onClose
|
|
84
|
+
})]
|
|
85
|
+
}), notifications.map(notification => /*#__PURE__*/(0, _jsxRuntime.jsx)(AppNotificationCard, {
|
|
86
|
+
className: "mb-4",
|
|
87
|
+
notification: notification,
|
|
88
|
+
onPress: () => setSelectedNotification(notification)
|
|
89
|
+
}, notification.id)), selectedNotification && /*#__PURE__*/(0, _jsxRuntime.jsx)(_AppNotificationModal.default, {
|
|
90
|
+
notification: selectedNotification,
|
|
91
|
+
onClose: () => setSelectedNotification(null),
|
|
92
|
+
onRead: onNotificationRead
|
|
93
|
+
})]
|
|
94
|
+
})
|
|
95
|
+
})
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=AppNotifications.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_clsx","_interopRequireDefault","require","_react","_outline","_reactNativeSvg","_AppNotificationModal","_BaseIcon","_BasePing","_BaseText","_PressableOpacity","_hocComponents","_svg","_jsxRuntime","e","__esModule","default","AppNotificationCard","notification","onPress","className","props","imageUrl","portrait","small","url","jsxs","clsx","children","View","isSvg","jsx","SvgUri","width","height","uri","Image","source","readAt","title","preview","AppNotifications","visible","onClose","notifications","onNotificationRead","selectedNotification","setSelectedNotification","useState","Modal","transparent","onRequestClose","Pressable","stopPropagation","icon","XMarkIcon","size","color","map","id","onRead"],"sourceRoot":"../../../src","sources":["components/AppNotifications.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AAEA,IAAAI,qBAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,SAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,SAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,SAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,iBAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,cAAA,GAAAT,OAAA;AAIA,IAAAU,IAAA,GAAAV,OAAA;AAAqC,IAAAW,WAAA,GAAAX,OAAA;AAAA,SAAAD,uBAAAa,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAOrC,SAASG,mBAAmBA,CAAC;EAC3BC,YAAY;EAAEC,OAAO;EAAEC,SAAS;EAAE,GAAGC;AACb,CAAC,EAAE;EAC3B,MAAMC,QAAQ,GAAGJ,YAAY,CAACK,QAAQ,EAAEC,KAAK,EAAEC,GAAG;EAElD,oBACE,IAAAZ,WAAA,CAAAa,IAAA,EAAChB,iBAAA,CAAAM,OAAgB;IACfI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AC7B,YAAY;QAAE,GAHhDA,YAAY,CAACyC,EAInB,CACF,CAAC,EACDb,oBAAoB,iBACnB,IAAAjC,WAAA,CAAAkB,GAAA,EAACzB,qBAAA,CAAAU,OAAoB;UACnBE,YAAY,EAAE4B,oBAAqB;UACnCH,OAAO,EAAEA,CAAA,KAAMI,uBAAuB,CAAC,IAAI,CAAE;UAC7Ca,MAAM,EAAEf;QAAmB,CAC5B,CACF;MAAA,CACQ;IAAC,CACI;EAAC,CACd,CAAC;AAEZ","ignoreList":[]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _nativewind = require("nativewind");
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
var _reactNative = require("react-native");
|
|
10
|
+
var _hocComponents = require("../hoc-components");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
function BasePing({
|
|
13
|
+
style,
|
|
14
|
+
...props
|
|
15
|
+
}) {
|
|
16
|
+
const pingScale = (0, _react.useRef)(new _reactNative.Animated.Value(1)).current;
|
|
17
|
+
const pingOpacity = (0, _react.useRef)(new _reactNative.Animated.Value(1)).current;
|
|
18
|
+
(0, _react.useEffect)(() => {
|
|
19
|
+
const startPingAnimation = () => {
|
|
20
|
+
pingScale.setValue(1);
|
|
21
|
+
pingOpacity.setValue(1);
|
|
22
|
+
_reactNative.Animated.parallel([_reactNative.Animated.timing(pingScale, {
|
|
23
|
+
toValue: 2,
|
|
24
|
+
duration: 1500,
|
|
25
|
+
useNativeDriver: true
|
|
26
|
+
}), _reactNative.Animated.timing(pingOpacity, {
|
|
27
|
+
toValue: 0,
|
|
28
|
+
duration: 1500,
|
|
29
|
+
useNativeDriver: true
|
|
30
|
+
})]).start(() => {
|
|
31
|
+
startPingAnimation();
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
startPingAnimation();
|
|
35
|
+
return () => {
|
|
36
|
+
pingScale.stopAnimation();
|
|
37
|
+
pingOpacity.stopAnimation();
|
|
38
|
+
};
|
|
39
|
+
}, [pingScale, pingOpacity]);
|
|
40
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
41
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_hocComponents.View, {
|
|
42
|
+
style: [style, {
|
|
43
|
+
zIndex: 1
|
|
44
|
+
}],
|
|
45
|
+
...props
|
|
46
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
|
|
47
|
+
style: [style, {
|
|
48
|
+
opacity: pingOpacity,
|
|
49
|
+
transform: [{
|
|
50
|
+
scale: pingScale
|
|
51
|
+
}],
|
|
52
|
+
zIndex: 0
|
|
53
|
+
}],
|
|
54
|
+
...props
|
|
55
|
+
})]
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
var _default = exports.default = (0, _nativewind.styled)(BasePing);
|
|
59
|
+
//# sourceMappingURL=BasePing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_nativewind","require","_react","_reactNative","_hocComponents","_jsxRuntime","BasePing","style","props","pingScale","useRef","Animated","Value","current","pingOpacity","useEffect","startPingAnimation","setValue","parallel","timing","toValue","duration","useNativeDriver","start","stopAnimation","jsxs","Fragment","children","jsx","View","zIndex","opacity","transform","scale","_default","exports","default","styled"],"sourceRoot":"../../../src","sources":["components/BasePing.tsx"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AAAyC,IAAAI,WAAA,GAAAJ,OAAA;AAEzC,SAASK,QAAQA,CAAC;EAAEC,KAAK;EAAE,GAAGC;AAAiB,CAAC,EAAE;EAChD,MAAMC,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EAACzB,YAAA,CAAAQ,QAAQ,CAACkB,IAAI;MACZtB,KAAK,EAAE,CACLA,KAAK,EACL;QACEwB,OAAO,EAAEjB,WAAW;QACpBkB,SAAS,EAAE,CAAC;UAAEC,KAAK,EAAExB;QAAU,CAAC,CAAC;QACjCqB,MAAM,EAAE;MACV,CAAC,CACD;MAAA,GACEtB;IAAK,CACV,CAAC;EAAA,CACF,CAAC;AAEP;AAAC,IAAA0B,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEc,IAAAC,kBAAM,EAAC/B,QAAQ,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = NotificationDrawer;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _outline = require("react-native-heroicons/outline");
|
|
9
|
+
var _AppNotifications = _interopRequireDefault(require("./AppNotifications"));
|
|
10
|
+
var _BaseIcon = _interopRequireDefault(require("./BaseIcon"));
|
|
11
|
+
var _BasePing = _interopRequireDefault(require("./BasePing"));
|
|
12
|
+
var _timeConstants = require("../utils/timeConstants");
|
|
13
|
+
var _PressableOpacity = _interopRequireDefault(require("./PressableOpacity"));
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
function NotificationDrawer({
|
|
17
|
+
iconSize = 18,
|
|
18
|
+
notifications,
|
|
19
|
+
unreadCount,
|
|
20
|
+
refreshInterval = 5 * _timeConstants.MS_IN_A_MINUTE,
|
|
21
|
+
onRefresh,
|
|
22
|
+
onNotificationRead
|
|
23
|
+
}) {
|
|
24
|
+
const [isAppNotificationsModalVisible, setIsAppNotificationsModalVisible] = (0, _react.useState)(false);
|
|
25
|
+
const showPing = unreadCount > 0;
|
|
26
|
+
(0, _react.useEffect)(() => {
|
|
27
|
+
const interval = setInterval(() => {
|
|
28
|
+
onRefresh();
|
|
29
|
+
}, refreshInterval);
|
|
30
|
+
return () => clearInterval(interval);
|
|
31
|
+
}, [onRefresh, refreshInterval]);
|
|
32
|
+
const openNotifications = () => setIsAppNotificationsModalVisible(true);
|
|
33
|
+
const closeNotifications = () => setIsAppNotificationsModalVisible(false);
|
|
34
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
35
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_PressableOpacity.default, {
|
|
36
|
+
onPress: openNotifications,
|
|
37
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_BaseIcon.default, {
|
|
38
|
+
color: "fg-quaternary",
|
|
39
|
+
icon: _outline.BellIcon,
|
|
40
|
+
size: iconSize,
|
|
41
|
+
strokeWidth: 2
|
|
42
|
+
}), showPing && /*#__PURE__*/(0, _jsxRuntime.jsx)(_BasePing.default, {
|
|
43
|
+
className: "absolute -bottom-1 -right-1 h-2 w-2 rounded-full bg-warning-solid p-0.5"
|
|
44
|
+
})]
|
|
45
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_AppNotifications.default, {
|
|
46
|
+
visible: isAppNotificationsModalVisible,
|
|
47
|
+
notifications: notifications,
|
|
48
|
+
onClose: closeNotifications,
|
|
49
|
+
onNotificationRead: onNotificationRead
|
|
50
|
+
})]
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=NotificationDrawer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_outline","_AppNotifications","_interopRequireDefault","_BaseIcon","_BasePing","_timeConstants","_PressableOpacity","_jsxRuntime","e","__esModule","default","NotificationDrawer","iconSize","notifications","unreadCount","refreshInterval","MS_IN_A_MINUTE","onRefresh","onNotificationRead","isAppNotificationsModalVisible","setIsAppNotificationsModalVisible","useState","showPing","useEffect","interval","setInterval","clearInterval","openNotifications","closeNotifications","jsxs","Fragment","children","onPress","jsx","color","icon","BellIcon","size","strokeWidth","className","visible","onClose"],"sourceRoot":"../../../src","sources":["components/NotificationDrawer.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAEA,IAAAE,iBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,SAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,SAAA,GAAAF,sBAAA,CAAAH,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AAEA,IAAAO,iBAAA,GAAAJ,sBAAA,CAAAH,OAAA;AAAkD,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAG,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAWnC,SAASG,kBAAkBA,CAAC;EACzCC,QAAQ,GAAG,EAAE;EACbC,aAAa;EACbC,WAAW;EACXC,eAAe,GAAG,CAAC,GAAGC,6BAAc;EACpCC,SAAS;EACTC;AACuB,CAAC,EAAE;EAC1B,MAAM,CAACC,8BAA8B,EAAEC,iCAAiC,CAAC,GAAG,IAAAC,eAAQ,EAAC,KAAK,CAAC;EAE3F,MAAMC,QAAQ,GAAGR,WAAW,GAAG,CAAC;EAEhC,IAAAS,gBAAS,EAAC,MAAM;IACd,MAAMC,QAAQ,GAAGC,WAAW,CAAC,MAAM;MACjCR,SAAS,CAAC,CAAC;IACb,CAAC,EAAEF,eAAe,CAAC;IAEnB,OAAO,MAAMW,aAAa,CAACF,QAAQ,CAAC;EACtC,CAAC,EAAE,CAACP,SAAS,EAAEF,eAAe,CAAC,CAAC;EAEhC,MAAMY,iBAAiB,GAAGA,CAAA,KAAMP,iCAAiC,CAAC,IAAI,CAAC;EACvE,MAAMQ,kBAAkB,GAAGA,CAAA,KAAMR,iCAAiC,CAAC,KAAK,CAAC;EAEzE,oBACE,IAAAb,WAAA,CAAAsB,IAAA,EAAAtB,WAAA,CAAAuB,QAAA;IAAAC,QAAA,gBACE,IAAAxB,WAAA,CAAAsB,IAAA,EAACvB,iBAAA,CAAAI,OAAgB;MAACsB,OAAO,EAAEL,iBAAkB;MAAAI,QAAA,gBAC3C,IAAAxB,WAAA,CAAA0B,GAAA,EAAC9B,SAAA,CAAAO,OAAQ;QACPwB,KAAK,EAAC,eAAe;QACrBC,IAAI,EAAEC,iBAAS;QACfC,IAAI,EAAEzB,QAAS;QACf0B,WAAW,EAAE;MAAE,CAChB,CAAC,EACDhB,QAAQ,iBACP,IAAAf,WAAA,CAAA0B,GAAA,EAAC7B,SAAA,CAAAM,OAAQ;QACP6B,SAAS,EAAC;MAAyE,CACpF,CACF;IAAA,CACe,CAAC,eACnB,IAAAhC,WAAA,CAAA0B,GAAA,EAAChC,iBAAA,CAAAS,OAAgB;MACf8B,OAAO,EAAErB,8BAA+B;MACxCN,aAAa,EAAEA,aAAc;MAC7B4B,OAAO,EAAEb,kBAAmB;MAC5BV,kBAAkB,EAAEA;IAAmB,CACxC,CAAC;EAAA,CACF,CAAC;AAEP","ignoreList":[]}
|
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "AppNotificationModal", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _AppNotificationModal.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "AppNotifications", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _AppNotifications.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
6
18
|
Object.defineProperty(exports, "AppView", {
|
|
7
19
|
enumerable: true,
|
|
8
20
|
get: function () {
|
|
@@ -87,6 +99,12 @@ Object.defineProperty(exports, "BasePhoneInput", {
|
|
|
87
99
|
return _BasePhoneInput.default;
|
|
88
100
|
}
|
|
89
101
|
});
|
|
102
|
+
Object.defineProperty(exports, "BasePing", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () {
|
|
105
|
+
return _BasePing.default;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
90
108
|
Object.defineProperty(exports, "BaseRadioGroup", {
|
|
91
109
|
enumerable: true,
|
|
92
110
|
get: function () {
|
|
@@ -249,6 +267,12 @@ Object.defineProperty(exports, "NetworkBanner", {
|
|
|
249
267
|
return _NetworkBanner.default;
|
|
250
268
|
}
|
|
251
269
|
});
|
|
270
|
+
Object.defineProperty(exports, "NotificationDrawer", {
|
|
271
|
+
enumerable: true,
|
|
272
|
+
get: function () {
|
|
273
|
+
return _NotificationDrawer.default;
|
|
274
|
+
}
|
|
275
|
+
});
|
|
252
276
|
Object.defineProperty(exports, "PhotoPickerModal", {
|
|
253
277
|
enumerable: true,
|
|
254
278
|
get: function () {
|
|
@@ -333,6 +357,10 @@ var _BasePhoneInput = _interopRequireDefault(require("./BasePhoneInput"));
|
|
|
333
357
|
var _FormikTextInput = _interopRequireDefault(require("./FormikTextInput"));
|
|
334
358
|
var _FormikPhoneInput = _interopRequireDefault(require("./FormikPhoneInput"));
|
|
335
359
|
var _RetrieveGeolocation = _interopRequireDefault(require("./RetrieveGeolocation"));
|
|
360
|
+
var _NotificationDrawer = _interopRequireDefault(require("./NotificationDrawer"));
|
|
361
|
+
var _AppNotifications = _interopRequireDefault(require("./AppNotifications"));
|
|
362
|
+
var _AppNotificationModal = _interopRequireDefault(require("./AppNotificationModal"));
|
|
363
|
+
var _BasePing = _interopRequireDefault(require("./BasePing"));
|
|
336
364
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
337
365
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
338
366
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_AppView","_interopRequireDefault","require","_BaseAlert","_BaseBadge","_BaseBottomSheetModal","_BaseButton","_BaseConfirmationModal","_BaseDateInput","_BaseErrorBox","_BaseErrorScreen","_BaseHorizontalTabs","_interopRequireWildcard","_BaseIcon","_BaseIconBox","_BaseLoadingBox","_BaseRadioGroup","_BaseSelect","_BaseSelectionItem","_BaseSpinner","_BaseStackedList","_BaseSwitch","_BaseText","_CameraImageInput","_CameraWrapperModal","_DateSelector","_DateTimeSelector","_FormikCameraImageInput","_FormikDateInput","_FormikDateSelector","_FormikDateTimeSelector","_FormikDateTimeSelectorBottomSheet","_FormikRadioGroup","_FormikSelect","_ImagePickerBottomSheet","_NetworkBanner","_PhotoPickerModal","_PressableOpacity","_SignatureApiWebView","_Toasts","_BaseTextInput","_BasePhoneInput","_FormikTextInput","_FormikPhoneInput","_RetrieveGeolocation","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_AppView","_interopRequireDefault","require","_BaseAlert","_BaseBadge","_BaseBottomSheetModal","_BaseButton","_BaseConfirmationModal","_BaseDateInput","_BaseErrorBox","_BaseErrorScreen","_BaseHorizontalTabs","_interopRequireWildcard","_BaseIcon","_BaseIconBox","_BaseLoadingBox","_BaseRadioGroup","_BaseSelect","_BaseSelectionItem","_BaseSpinner","_BaseStackedList","_BaseSwitch","_BaseText","_CameraImageInput","_CameraWrapperModal","_DateSelector","_DateTimeSelector","_FormikCameraImageInput","_FormikDateInput","_FormikDateSelector","_FormikDateTimeSelector","_FormikDateTimeSelectorBottomSheet","_FormikRadioGroup","_FormikSelect","_ImagePickerBottomSheet","_NetworkBanner","_PhotoPickerModal","_PressableOpacity","_SignatureApiWebView","_Toasts","_BaseTextInput","_BasePhoneInput","_FormikTextInput","_FormikPhoneInput","_RetrieveGeolocation","_NotificationDrawer","_AppNotifications","_AppNotificationModal","_BasePing","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,qBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,WAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,sBAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,cAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,aAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,gBAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA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,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAAA,SAAAjD,uBAAAgD,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAK,UAAA,GAAAL,CAAA,KAAAU,OAAA,EAAAV,CAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/notifications/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -58,4 +58,15 @@ Object.keys(_log).forEach(function (key) {
|
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
|
+
var _svg = require("./svg");
|
|
62
|
+
Object.keys(_svg).forEach(function (key) {
|
|
63
|
+
if (key === "default" || key === "__esModule") return;
|
|
64
|
+
if (key in exports && exports[key] === _svg[key]) return;
|
|
65
|
+
Object.defineProperty(exports, key, {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function () {
|
|
68
|
+
return _svg[key];
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
});
|
|
61
72
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_clabe","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_fileDirectoryUtils","_timeConstants","_filters","_log"],"sourceRoot":"../../../src","sources":["utils/index.ts"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,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AAA,OAAAG,QAAA,CAAAP,GAAA;IAAA;EAAA;AAAA;AACA,IAAAQ,IAAA,GAAAZ,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAU,IAAA,EAAAT,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAQ,IAAA,CAAAR,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAI,IAAA,CAAAR,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_clabe","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_fileDirectoryUtils","_timeConstants","_filters","_log","_svg"],"sourceRoot":"../../../src","sources":["utils/index.ts"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,mBAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,mBAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,mBAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA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A,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAS,IAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAK,IAAA,CAAAT,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.isSvg = isSvg;
|
|
7
|
+
function isSvg(imageUrl) {
|
|
8
|
+
try {
|
|
9
|
+
const url = new URL(imageUrl);
|
|
10
|
+
return url.pathname.toLowerCase().includes('.svg');
|
|
11
|
+
} catch {
|
|
12
|
+
return imageUrl.toLowerCase().includes('.svg');
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=svg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["isSvg","imageUrl","url","URL","pathname","toLowerCase","includes"],"sourceRoot":"../../../src","sources":["utils/svg.ts"],"mappings":";;;;;;AAAA,SAASA,KAAKA,CAACC,QAAgB,EAAE;EAC/B,IAAI;IACF,MAAMC,GAAG,GAAG,IAAIC,GAAG,CAACF,QAAQ,CAAC;IAC7B,OAAOC,GAAG,CAACE,QAAQ,CAACC,WAAW,CAAC,CAAC,CAACC,QAAQ,CAAC,MAAM,CAAC;EACpD,CAAC,CAAC,MAAM;IACN,OAAOL,QAAQ,CAACI,WAAW,CAAC,CAAC,CAACC,QAAQ,CAAC,MAAM,CAAC;EAChD;AACF","ignoreList":[]}
|