@magmamath/students-features 0.5.5 → 0.5.6
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/dist/commonjs/features/celebrations/components/ParticleBatch.js.map +1 -1
- package/dist/commonjs/features/celebrations/components/Spark.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/Modal/assets/SunrisingIcon.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/Modal/assets/TrophyIcon.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js +42 -21
- package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/ui/SparkIcon.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/ui/ThumbUpIcon.js.map +1 -1
- package/dist/commonjs/index.js +0 -12
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/shared/icons/Halloween.js.map +1 -1
- package/dist/commonjs/shared/icons/MessageBubbleIcon.js.map +1 -1
- package/dist/commonjs/shared/icons/Pi.js.map +1 -1
- package/dist/commonjs/shared/icons/Star.js.map +1 -1
- package/dist/commonjs/shared/icons/Valentine.js.map +1 -1
- package/dist/commonjs/shared/icons/Winter.js.map +1 -1
- package/dist/commonjs/shared/icons/XCloseIcon.js.map +1 -1
- package/dist/module/features/celebrations/components/ParticleBatch.js.map +1 -1
- package/dist/module/features/celebrations/components/Spark.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/Modal/assets/SunrisingIcon.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/Modal/assets/TrophyIcon.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js +43 -22
- package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
- package/dist/module/features/endOfAssignment/ui/SparkIcon.js.map +1 -1
- package/dist/module/features/endOfAssignment/ui/ThumbUpIcon.js.map +1 -1
- package/dist/module/index.js +0 -1
- package/dist/module/index.js.map +1 -1
- package/dist/module/shared/icons/Halloween.js.map +1 -1
- package/dist/module/shared/icons/MessageBubbleIcon.js.map +1 -1
- package/dist/module/shared/icons/Pi.js.map +1 -1
- package/dist/module/shared/icons/Star.js.map +1 -1
- package/dist/module/shared/icons/Valentine.js.map +1 -1
- package/dist/module/shared/icons/Winter.js.map +1 -1
- package/dist/module/shared/icons/XCloseIcon.js.map +1 -1
- package/dist/typescript/commonjs/features/celebrations/components/ParticleBatch.d.ts +1 -1
- package/dist/typescript/commonjs/features/celebrations/components/ParticleBatch.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/celebrations/components/Spark.d.ts +1 -1
- package/dist/typescript/commonjs/features/celebrations/components/Spark.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/ui/SparkIcon.d.ts +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/ui/SparkIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/ui/ThumbUpIcon.d.ts +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/ui/ThumbUpIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/index.d.ts +0 -1
- package/dist/typescript/commonjs/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/Halloween.d.ts +1 -1
- package/dist/typescript/commonjs/shared/icons/Halloween.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/MessageBubbleIcon.d.ts +1 -1
- package/dist/typescript/commonjs/shared/icons/MessageBubbleIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/Pi.d.ts +1 -1
- package/dist/typescript/commonjs/shared/icons/Pi.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/Star.d.ts +1 -1
- package/dist/typescript/commonjs/shared/icons/Star.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/Valentine.d.ts +1 -1
- package/dist/typescript/commonjs/shared/icons/Valentine.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/Winter.d.ts +1 -1
- package/dist/typescript/commonjs/shared/icons/Winter.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/XCloseIcon.d.ts +1 -1
- package/dist/typescript/commonjs/shared/icons/XCloseIcon.d.ts.map +1 -1
- package/dist/typescript/module/features/celebrations/components/ParticleBatch.d.ts +1 -1
- package/dist/typescript/module/features/celebrations/components/ParticleBatch.d.ts.map +1 -1
- package/dist/typescript/module/features/celebrations/components/Spark.d.ts +1 -1
- package/dist/typescript/module/features/celebrations/components/Spark.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/ui/SparkIcon.d.ts +1 -1
- package/dist/typescript/module/features/endOfAssignment/ui/SparkIcon.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/ui/ThumbUpIcon.d.ts +1 -1
- package/dist/typescript/module/features/endOfAssignment/ui/ThumbUpIcon.d.ts.map +1 -1
- package/dist/typescript/module/index.d.ts +0 -1
- package/dist/typescript/module/index.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/Halloween.d.ts +1 -1
- package/dist/typescript/module/shared/icons/Halloween.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/MessageBubbleIcon.d.ts +1 -1
- package/dist/typescript/module/shared/icons/MessageBubbleIcon.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/Pi.d.ts +1 -1
- package/dist/typescript/module/shared/icons/Pi.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/Star.d.ts +1 -1
- package/dist/typescript/module/shared/icons/Star.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/Valentine.d.ts +1 -1
- package/dist/typescript/module/shared/icons/Valentine.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/Winter.d.ts +1 -1
- package/dist/typescript/module/shared/icons/Winter.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/XCloseIcon.d.ts +1 -1
- package/dist/typescript/module/shared/icons/XCloseIcon.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/features/celebrations/components/ParticleBatch.tsx +1 -1
- package/src/features/celebrations/components/Spark.tsx +4 -4
- package/src/features/endOfAssignment/components/Modal/assets/SunrisingIcon.tsx +74 -74
- package/src/features/endOfAssignment/components/Modal/assets/TrophyIcon.tsx +24 -24
- package/src/features/endOfAssignment/components/NoAnswer/NoAnswer.tsx +52 -25
- package/src/features/endOfAssignment/ui/SparkIcon.tsx +2 -1
- package/src/features/endOfAssignment/ui/ThumbUpIcon.tsx +2 -2
- package/src/index.ts +0 -1
- package/src/shared/icons/Halloween.tsx +2 -2
- package/src/shared/icons/MessageBubbleIcon.tsx +5 -6
- package/src/shared/icons/Pi.tsx +1 -2
- package/src/shared/icons/Star.tsx +1 -2
- package/src/shared/icons/Valentine.tsx +1 -2
- package/src/shared/icons/Winter.tsx +2 -2
- package/src/shared/icons/XCloseIcon.tsx +3 -4
- package/dist/commonjs/features/formulaSheet/components/FormulaSheet.js +0 -52
- package/dist/commonjs/features/formulaSheet/components/FormulaSheet.js.map +0 -1
- package/dist/commonjs/features/formulaSheet/components/FormulaSheetModal.js +0 -64
- package/dist/commonjs/features/formulaSheet/components/FormulaSheetModal.js.map +0 -1
- package/dist/commonjs/features/formulaSheet/index.js +0 -20
- package/dist/commonjs/features/formulaSheet/index.js.map +0 -1
- package/dist/commonjs/features/formulaSheet/model/api.model.js +0 -15
- package/dist/commonjs/features/formulaSheet/model/api.model.js.map +0 -1
- package/dist/commonjs/features/formulaSheet/model/file.model.js +0 -19
- package/dist/commonjs/features/formulaSheet/model/file.model.js.map +0 -1
- package/dist/commonjs/features/formulaSheet/model/modal.model.js +0 -15
- package/dist/commonjs/features/formulaSheet/model/modal.model.js.map +0 -1
- package/dist/commonjs/features/formulaSheet/model/model.js +0 -35
- package/dist/commonjs/features/formulaSheet/model/model.js.map +0 -1
- package/dist/module/features/formulaSheet/components/FormulaSheet.js +0 -46
- package/dist/module/features/formulaSheet/components/FormulaSheet.js.map +0 -1
- package/dist/module/features/formulaSheet/components/FormulaSheetModal.js +0 -58
- package/dist/module/features/formulaSheet/components/FormulaSheetModal.js.map +0 -1
- package/dist/module/features/formulaSheet/index.js +0 -5
- package/dist/module/features/formulaSheet/index.js.map +0 -1
- package/dist/module/features/formulaSheet/model/api.model.js +0 -10
- package/dist/module/features/formulaSheet/model/api.model.js.map +0 -1
- package/dist/module/features/formulaSheet/model/file.model.js +0 -14
- package/dist/module/features/formulaSheet/model/file.model.js.map +0 -1
- package/dist/module/features/formulaSheet/model/modal.model.js +0 -10
- package/dist/module/features/formulaSheet/model/modal.model.js.map +0 -1
- package/dist/module/features/formulaSheet/model/model.js +0 -30
- package/dist/module/features/formulaSheet/model/model.js.map +0 -1
- package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheet.d.ts +0 -15
- package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheet.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheetModal.d.ts +0 -10
- package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheetModal.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/formulaSheet/index.d.ts +0 -3
- package/dist/typescript/commonjs/features/formulaSheet/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/formulaSheet/model/api.model.d.ts +0 -9
- package/dist/typescript/commonjs/features/formulaSheet/model/api.model.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/formulaSheet/model/file.model.d.ts +0 -14
- package/dist/typescript/commonjs/features/formulaSheet/model/file.model.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/formulaSheet/model/modal.model.d.ts +0 -7
- package/dist/typescript/commonjs/features/formulaSheet/model/modal.model.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/formulaSheet/model/model.d.ts +0 -14
- package/dist/typescript/commonjs/features/formulaSheet/model/model.d.ts.map +0 -1
- package/dist/typescript/module/features/formulaSheet/components/FormulaSheet.d.ts +0 -15
- package/dist/typescript/module/features/formulaSheet/components/FormulaSheet.d.ts.map +0 -1
- package/dist/typescript/module/features/formulaSheet/components/FormulaSheetModal.d.ts +0 -10
- package/dist/typescript/module/features/formulaSheet/components/FormulaSheetModal.d.ts.map +0 -1
- package/dist/typescript/module/features/formulaSheet/index.d.ts +0 -3
- package/dist/typescript/module/features/formulaSheet/index.d.ts.map +0 -1
- package/dist/typescript/module/features/formulaSheet/model/api.model.d.ts +0 -9
- package/dist/typescript/module/features/formulaSheet/model/api.model.d.ts.map +0 -1
- package/dist/typescript/module/features/formulaSheet/model/file.model.d.ts +0 -14
- package/dist/typescript/module/features/formulaSheet/model/file.model.d.ts.map +0 -1
- package/dist/typescript/module/features/formulaSheet/model/modal.model.d.ts +0 -7
- package/dist/typescript/module/features/formulaSheet/model/modal.model.d.ts.map +0 -1
- package/dist/typescript/module/features/formulaSheet/model/model.d.ts +0 -14
- package/dist/typescript/module/features/formulaSheet/model/model.d.ts.map +0 -1
- package/src/features/formulaSheet/components/FormulaSheet.tsx +0 -74
- package/src/features/formulaSheet/components/FormulaSheetModal.tsx +0 -64
- package/src/features/formulaSheet/index.ts +0 -2
- package/src/features/formulaSheet/model/api.model.ts +0 -13
- package/src/features/formulaSheet/model/file.model.ts +0 -18
- package/src/features/formulaSheet/model/modal.model.ts +0 -10
- package/src/features/formulaSheet/model/model.ts +0 -31
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.FormulaSheet = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _effectorReact = require("effector-react");
|
|
9
|
-
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
10
|
-
var _FormulaSheetModal = require("./FormulaSheetModal.js");
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
-
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; }
|
|
14
|
-
const FormulaSheet = exports.FormulaSheet = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
15
|
-
model,
|
|
16
|
-
fileId,
|
|
17
|
-
renderer,
|
|
18
|
-
buttonSize = _reactNativeUi.ButtonSize.MEDIUM,
|
|
19
|
-
buttonColor = _reactNativeUi.ButtonColor.BLUE,
|
|
20
|
-
loaderColor = _reactNativeUi.LoaderColor.BLUE,
|
|
21
|
-
onPress
|
|
22
|
-
}, ref) => {
|
|
23
|
-
const isOpen = (0, _effectorReact.useUnit)(model.modal.$isOpen);
|
|
24
|
-
const sheetFileBlob = (0, _effectorReact.useUnit)(model.file.$blob);
|
|
25
|
-
const isRequestPending = (0, _effectorReact.useUnit)(model.api.getPDFFileBlobFx.pending);
|
|
26
|
-
(0, _react.useEffect)(() => {
|
|
27
|
-
model.file.setId(fileId ?? null);
|
|
28
|
-
}, [fileId]);
|
|
29
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
30
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Button, {
|
|
31
|
-
ref: ref,
|
|
32
|
-
size: buttonSize,
|
|
33
|
-
variant: _reactNativeUi.ButtonVariant.SECONDARY,
|
|
34
|
-
colorScheme: buttonColor,
|
|
35
|
-
isActive: isOpen,
|
|
36
|
-
onPress: () => {
|
|
37
|
-
model.modal.toggle();
|
|
38
|
-
onPress?.();
|
|
39
|
-
},
|
|
40
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.TheoryIcon, {
|
|
41
|
-
color: isOpen ? _reactNativeUi.COLORS.NEUTRAL_1 : undefined,
|
|
42
|
-
size: 20
|
|
43
|
-
})
|
|
44
|
-
}), isOpen && /*#__PURE__*/(0, _jsxRuntime.jsx)(_FormulaSheetModal.FormulaSheetModal, {
|
|
45
|
-
isLoading: isRequestPending,
|
|
46
|
-
loaderColor: loaderColor,
|
|
47
|
-
onClose: () => model.modal.setIsOpen(false),
|
|
48
|
-
children: renderer(sheetFileBlob ?? '')
|
|
49
|
-
})]
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
//# sourceMappingURL=FormulaSheet.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_effectorReact","_reactNativeUi","_FormulaSheetModal","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","FormulaSheet","exports","forwardRef","model","fileId","renderer","buttonSize","ButtonSize","MEDIUM","buttonColor","ButtonColor","BLUE","loaderColor","LoaderColor","onPress","ref","isOpen","useUnit","modal","$isOpen","sheetFileBlob","file","$blob","isRequestPending","api","getPDFFileBlobFx","pending","useEffect","setId","jsxs","Fragment","children","jsx","Button","size","variant","ButtonVariant","SECONDARY","colorScheme","isActive","toggle","icon","TheoryIcon","color","COLORS","NEUTRAL_1","undefined","FormulaSheetModal","isLoading","onClose","setIsOpen"],"sourceRoot":"../../../../../src","sources":["features/formulaSheet/components/FormulaSheet.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAWA,IAAAG,kBAAA,GAAAH,OAAA;AAAuD,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAK,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAA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mD,QAAA;IAAAC,QAAA,gBACE,IAAApD,WAAA,CAAAqD,GAAA,EAACvD,cAAA,CAAAwD,MAAM;MACLlB,GAAG,EAAEA,GAAI;MACTmB,IAAI,EAAE5B,UAAW;MACjB6B,OAAO,EAAEC,4BAAa,CAACC,SAAU;MACjCC,WAAW,EAAE7B,WAAY;MACzB8B,QAAQ,EAAEvB,MAAO;MACjBF,OAAO,EAAEA,CAAA,KAAM;QACbX,KAAK,CAACe,KAAK,CAACsB,MAAM,CAAC,CAAC;QACpB1B,OAAO,GAAG,CAAC;MACb,CAAE;MACF2B,IAAI,eAAE,IAAA9D,WAAA,CAAAqD,GAAA,EAACvD,cAAA,CAAAiE,UAAU;QAACC,KAAK,EAAE3B,MAAM,GAAG4B,qBAAM,CAACC,SAAS,GAAGC,SAAU;QAACZ,IAAI,EAAE;MAAG,CAAE;IAAE,CAC9E,CAAC,EAEDlB,MAAM,iBACL,IAAArC,WAAA,CAAAqD,GAAA,EAACtD,kBAAA,CAAAqE,iBAAiB;MAChBC,SAAS,EAAEzB,gBAAiB;MAC5BX,WAAW,EAAEA,WAAY;MACzBqC,OAAO,EAAEA,CAAA,KAAM9C,KAAK,CAACe,KAAK,CAACgC,SAAS,CAAC,KAAK,CAAE;MAAAnB,QAAA,EAE3C1B,QAAQ,CAACe,aAAa,IAAI,EAAE;IAAC,CACb,CACpB;EAAA,CACD,CAAC;AAEP,CACF,CAAC","ignoreList":[]}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.FormulaSheetModal = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
const FormulaSheetModal = ({
|
|
13
|
-
children,
|
|
14
|
-
loaderColor,
|
|
15
|
-
isLoading,
|
|
16
|
-
onClose
|
|
17
|
-
}) => {
|
|
18
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
|
|
19
|
-
visible: true,
|
|
20
|
-
transparent: true,
|
|
21
|
-
animationType: "none",
|
|
22
|
-
onRequestClose: onClose,
|
|
23
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableWithoutFeedback, {
|
|
24
|
-
onPress: onClose,
|
|
25
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
26
|
-
style: styles.container,
|
|
27
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableWithoutFeedback, {
|
|
28
|
-
onPress: event => event.stopPropagation(),
|
|
29
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
30
|
-
style: styles.content,
|
|
31
|
-
children: isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Loader, {
|
|
32
|
-
type: _reactNativeUi.LoaderType.PRIMARY,
|
|
33
|
-
color: loaderColor,
|
|
34
|
-
size: _reactNativeUi.LoaderSize.LARGE
|
|
35
|
-
}) : children
|
|
36
|
-
})
|
|
37
|
-
})
|
|
38
|
-
})
|
|
39
|
-
})
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
exports.FormulaSheetModal = FormulaSheetModal;
|
|
43
|
-
const styles = _reactNative.StyleSheet.create({
|
|
44
|
-
container: {
|
|
45
|
-
width: '100%',
|
|
46
|
-
height: '100%',
|
|
47
|
-
alignItems: 'center',
|
|
48
|
-
justifyContent: 'center',
|
|
49
|
-
backgroundColor: 'rgba(0, 0, 0, 0.25)'
|
|
50
|
-
},
|
|
51
|
-
content: {
|
|
52
|
-
width: '100%',
|
|
53
|
-
maxWidth: 720,
|
|
54
|
-
height: '100%',
|
|
55
|
-
maxHeight: '80%',
|
|
56
|
-
alignItems: 'center',
|
|
57
|
-
justifyContent: 'center',
|
|
58
|
-
paddingHorizontal: _reactNativeUi.SPACING['800'],
|
|
59
|
-
paddingVertical: _reactNativeUi.SPACING['400'],
|
|
60
|
-
borderRadius: _reactNativeUi.BORDER_RADIUS['400'],
|
|
61
|
-
backgroundColor: _reactNativeUi.COLORS.NEUTRAL_1
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
//# sourceMappingURL=FormulaSheetModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_jsxRuntime","e","__esModule","default","FormulaSheetModal","children","loaderColor","isLoading","onClose","jsx","Modal","visible","transparent","animationType","onRequestClose","TouchableWithoutFeedback","onPress","View","style","styles","container","event","stopPropagation","content","Loader","type","LoaderType","PRIMARY","color","size","LoaderSize","LARGE","exports","StyleSheet","create","width","height","alignItems","justifyContent","backgroundColor","maxWidth","maxHeight","paddingHorizontal","SPACING","paddingVertical","borderRadius","BORDER_RADIUS","COLORS","NEUTRAL_1"],"sourceRoot":"../../../../../src","sources":["features/formulaSheet/components/FormulaSheetModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAQmC,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAQ5B,MAAMG,iBAAiB,GAAGA,CAAC;EAChCC,QAAQ;EACRC,WAAW;EACXC,SAAS;EACTC;AACyC,CAAC,KAAK;EAC/C,oBACE,IAAAR,WAAA,CAAAS,GAAA,EAACX,YAAA,CAAAY,KAAK;IAACC,OAAO;IAACC,W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,iBAAiB,EAAEC,sBAAO,CAAC,KAAK,CAAC;IACjCC,eAAe,EAAED,sBAAO,CAAC,KAAK,CAAC;IAC/BE,YAAY,EAAEC,4BAAa,CAAC,KAAK,CAAC;IAClCP,eAAe,EAAEQ,qBAAM,CAACC;EAC1B;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "FormulaSheet", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _FormulaSheet.FormulaSheet;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "FormulaSheetModel", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return _model.FormulaSheetModel;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
var _FormulaSheet = require("./components/FormulaSheet.js");
|
|
19
|
-
var _model = require("./model/model.js");
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_FormulaSheet","require","_model"],"sourceRoot":"../../../../src","sources":["features/formulaSheet/index.ts"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA","ignoreList":[]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.FormulaSheetAPI = void 0;
|
|
7
|
-
var _effector = require("effector");
|
|
8
|
-
class FormulaSheetAPI {
|
|
9
|
-
getPDFFileBlobFx = (0, _effector.createEffect)();
|
|
10
|
-
setupRequests(api) {
|
|
11
|
-
this.getPDFFileBlobFx.use(api.getPDFFileBlob);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.FormulaSheetAPI = FormulaSheetAPI;
|
|
15
|
-
//# sourceMappingURL=api.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_effector","require","FormulaSheetAPI","getPDFFileBlobFx","createEffect","setupRequests","api","use","getPDFFileBlob","exports"],"sourceRoot":"../../../../../src","sources":["features/formulaSheet/model/api.model.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAMO,MAAMC,eAAe,CAAC;EACXC,gBAAgB,GAA2B,IAAAC,sBAAY,EAAC,CAAC;EAElEC,aAAaA,CAACC,GAAyB,EAAE;IAC9C,IAAI,CAACH,gBAAgB,CAACI,GAAG,CAACD,GAAG,CAACE,cAAc,CAAC;EAC/C;AACF;AAACC,OAAA,CAAAP,eAAA,GAAAA,eAAA","ignoreList":[]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.FormulaSheetFile = void 0;
|
|
7
|
-
var _effector = require("effector");
|
|
8
|
-
class FormulaSheetFile {
|
|
9
|
-
reset = (0, _effector.createEvent)();
|
|
10
|
-
setId = (0, _effector.createEvent)();
|
|
11
|
-
$id = (0, _effector.restore)(this.setId, null);
|
|
12
|
-
constructor({
|
|
13
|
-
api
|
|
14
|
-
}) {
|
|
15
|
-
this.$blob = (0, _effector.restore)(api.getPDFFileBlobFx.doneData, null).reset(this.reset);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.FormulaSheetFile = FormulaSheetFile;
|
|
19
|
-
//# sourceMappingURL=file.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_effector","require","FormulaSheetFile","reset","createEvent","setId","$id","restore","constructor","api","$blob","getPDFFileBlobFx","doneData","exports"],"sourceRoot":"../../../../../src","sources":["features/formulaSheet/model/file.model.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAOO,MAAMC,gBAAgB,CAAC;EACZC,KAAK,GAAG,IAAAC,qBAAW,EAAC,CAAC;EAGrBC,KAAK,GAAG,IAAAD,qBAAW,EAAS,CAAC;EAC7BE,GAAG,GAAG,IAAAC,iBAAO,EAAC,IAAI,CAACF,KAAK,EAAE,IAAI,CAAC;EAE/CG,WAAWA,CAAC;IAAEC;EAA2B,CAAC,EAAE;IAC1C,IAAI,CAACC,KAAK,GAAG,IAAAH,iBAAO,EAACE,GAAG,CAACE,gBAAgB,CAACC,QAAQ,EAAE,IAAI,CAAC,CAACT,KAAK,CAAC,IAAI,CAACA,KAAK,CAAC;EAC7E;AACF;AAACU,OAAA,CAAAX,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.FormulaSheetModal = void 0;
|
|
7
|
-
var _effector = require("effector");
|
|
8
|
-
class FormulaSheetModal {
|
|
9
|
-
reset = (0, _effector.createEvent)();
|
|
10
|
-
toggle = (0, _effector.createEvent)();
|
|
11
|
-
setIsOpen = (0, _effector.createEvent)();
|
|
12
|
-
$isOpen = (0, _effector.restore)(this.setIsOpen, false).on(this.toggle, state => !state).reset(this.reset);
|
|
13
|
-
}
|
|
14
|
-
exports.FormulaSheetModal = FormulaSheetModal;
|
|
15
|
-
//# sourceMappingURL=modal.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_effector","require","FormulaSheetModal","reset","createEvent","toggle","setIsOpen","$isOpen","restore","on","state","exports"],"sourceRoot":"../../../../../src","sources":["features/formulaSheet/model/modal.model.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAEO,MAAMC,iBAAiB,CAAC;EACbC,KAAK,GAAG,IAAAC,qBAAW,EAAC,CAAC;EACrBC,MAAM,GAAG,IAAAD,qBAAW,EAAC,CAAC;EACtBE,SAAS,GAAG,IAAAF,qBAAW,EAAU,CAAC;EAClCG,OAAO,GAAG,IAAAC,iBAAO,EAAC,IAAI,CAACF,SAAS,EAAE,KAAK,CAAC,CACrDG,EAAE,CAAC,IAAI,CAACJ,MAAM,EAAGK,KAAK,IAAK,CAACA,KAAK,CAAC,CAClCP,KAAK,CAAC,IAAI,CAACA,KAAK,CAAC;AACtB;AAACQ,OAAA,CAAAT,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.FormulaSheetModel = void 0;
|
|
7
|
-
var _effector = require("effector");
|
|
8
|
-
var _apiModel = require("./api.model.js");
|
|
9
|
-
var _modalModel = require("./modal.model.js");
|
|
10
|
-
var _fileModel = require("./file.model.js");
|
|
11
|
-
class FormulaSheetModel {
|
|
12
|
-
api = new _apiModel.FormulaSheetAPI();
|
|
13
|
-
modal = new _modalModel.FormulaSheetModal();
|
|
14
|
-
file = new _fileModel.FormulaSheetFile({
|
|
15
|
-
api: this.api
|
|
16
|
-
});
|
|
17
|
-
constructor({
|
|
18
|
-
api
|
|
19
|
-
}) {
|
|
20
|
-
this.api.setupRequests(api);
|
|
21
|
-
(0, _effector.sample)({
|
|
22
|
-
clock: this.modal.$isOpen,
|
|
23
|
-
source: [this.file.$id, this.file.$blob],
|
|
24
|
-
filter: ([fileId, blob], isOpen) => !!(isOpen && fileId && !blob),
|
|
25
|
-
fn: ([fileId]) => fileId,
|
|
26
|
-
target: this.api.getPDFFileBlobFx
|
|
27
|
-
});
|
|
28
|
-
(0, _effector.sample)({
|
|
29
|
-
clock: this.file.$id,
|
|
30
|
-
target: [this.file.reset, this.modal.reset]
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
exports.FormulaSheetModel = FormulaSheetModel;
|
|
35
|
-
//# sourceMappingURL=model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_effector","require","_apiModel","_modalModel","_fileModel","FormulaSheetModel","api","FormulaSheetAPI","modal","FormulaSheetModal","file","FormulaSheetFile","constructor","setupRequests","sample","clock","$isOpen","source","$id","$blob","filter","fileId","blob","isOpen","fn","target","getPDFFileBlobFx","reset","exports"],"sourceRoot":"../../../../../src","sources":["features/formulaSheet/model/model.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAMO,MAAMI,iBAAiB,CAAC;EACbC,GAAG,GAAG,IAAIC,yBAAe,CAAC,CAAC;EAC3BC,KAAK,GAAG,IAAIC,6BAAiB,CAAC,CAAC;EAC/BC,IAAI,GAAG,IAAIC,2BAAgB,CAAC;IAAEL,GAAG,EAAE,IAAI,CAACA;EAAI,CAAC,CAAC;EAE9DM,WAAWA,CAAC;IAAEN;EAA4B,CAAC,EAAE;IAC3C,IAAI,CAACA,GAAG,CAACO,aAAa,CAACP,GAAG,CAAC;IAE3B,IAAAQ,gBAAM,EAAC;MACLC,KAAK,EAAE,IAAI,CAACP,KAAK,CAACQ,OAAO;MACzBC,MAAM,EAAE,CAAC,IAAI,CAACP,IAAI,CAACQ,GAAG,EAAE,IAAI,CAACR,IAAI,CAACS,KAAK,CAAC;MACxCC,MAAM,EAAEA,CAAC,CAACC,MAAM,EAAEC,IAAI,CAAC,EAAEC,MAAM,KAAK,CAAC,EAAEA,MAAM,IAAIF,MAAM,IAAI,CAACC,IAAI,CAAC;MACjEE,EAAE,EAAEA,CAAC,CAACH,MAAM,CAAC,KAAKA,MAAgB;MAClCI,MAAM,EAAE,IAAI,CAACnB,GAAG,CAACoB;IACnB,CAAC,CAAC;IAEF,IAAAZ,gBAAM,EAAC;MACLC,KAAK,EAAE,IAAI,CAACL,IAAI,CAACQ,GAAG;MACpBO,MAAM,EAAE,CAAC,IAAI,CAACf,IAAI,CAACiB,KAAK,EAAE,IAAI,CAACnB,KAAK,CAACmB,KAAK;IAC5C,CAAC,CAAC;EACJ;AACF;AAACC,OAAA,CAAAvB,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { forwardRef, useEffect } from 'react';
|
|
4
|
-
import { useUnit } from 'effector-react';
|
|
5
|
-
import { Button, ButtonColor, ButtonSize, ButtonVariant, COLORS, TheoryIcon, LoaderColor } from '@magmamath/react-native-ui';
|
|
6
|
-
import { FormulaSheetModal } from "./FormulaSheetModal.js";
|
|
7
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
-
export const FormulaSheet = /*#__PURE__*/forwardRef(({
|
|
9
|
-
model,
|
|
10
|
-
fileId,
|
|
11
|
-
renderer,
|
|
12
|
-
buttonSize = ButtonSize.MEDIUM,
|
|
13
|
-
buttonColor = ButtonColor.BLUE,
|
|
14
|
-
loaderColor = LoaderColor.BLUE,
|
|
15
|
-
onPress
|
|
16
|
-
}, ref) => {
|
|
17
|
-
const isOpen = useUnit(model.modal.$isOpen);
|
|
18
|
-
const sheetFileBlob = useUnit(model.file.$blob);
|
|
19
|
-
const isRequestPending = useUnit(model.api.getPDFFileBlobFx.pending);
|
|
20
|
-
useEffect(() => {
|
|
21
|
-
model.file.setId(fileId ?? null);
|
|
22
|
-
}, [fileId]);
|
|
23
|
-
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
24
|
-
children: [/*#__PURE__*/_jsx(Button, {
|
|
25
|
-
ref: ref,
|
|
26
|
-
size: buttonSize,
|
|
27
|
-
variant: ButtonVariant.SECONDARY,
|
|
28
|
-
colorScheme: buttonColor,
|
|
29
|
-
isActive: isOpen,
|
|
30
|
-
onPress: () => {
|
|
31
|
-
model.modal.toggle();
|
|
32
|
-
onPress?.();
|
|
33
|
-
},
|
|
34
|
-
icon: /*#__PURE__*/_jsx(TheoryIcon, {
|
|
35
|
-
color: isOpen ? COLORS.NEUTRAL_1 : undefined,
|
|
36
|
-
size: 20
|
|
37
|
-
})
|
|
38
|
-
}), isOpen && /*#__PURE__*/_jsx(FormulaSheetModal, {
|
|
39
|
-
isLoading: isRequestPending,
|
|
40
|
-
loaderColor: loaderColor,
|
|
41
|
-
onClose: () => model.modal.setIsOpen(false),
|
|
42
|
-
children: renderer(sheetFileBlob ?? '')
|
|
43
|
-
})]
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
//# sourceMappingURL=FormulaSheet.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","forwardRef","useEffect","useUnit","Button","ButtonColor","ButtonSize","ButtonVariant","COLORS","TheoryIcon","LoaderColor","FormulaSheetModal","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","FormulaSheet","model","fileId","renderer","buttonSize","MEDIUM","buttonColor","BLUE","loaderColor","onPress","ref","isOpen","modal","$isOpen","sheetFileBlob","file","$blob","isRequestPending","api","getPDFFileBlobFx","pending","setId","children","size","variant","SECONDARY","colorScheme","isActive","toggle","icon","color","NEUTRAL_1","undefined","isLoading","onClose","setIsOpen"],"sourceRoot":"../../../../../src","sources":["features/formulaSheet/components/FormulaSheet.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAaC,SAAS,QAAQ,OAAO;AAC/D,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SACEC,MAAM,EACNC,WAAW,EACXC,UAAU,EACVC,aAAa,EACbC,MAAM,EACNC,UAAU,EAEVC,WAAW,QACN,4BAA4B;AAEnC,SAASC,iBAAiB,QAAQ,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AAC,EAEDZ,MAAM,iBACLhB,IAAA,CAACF,iBAAiB;MAChBwC,SAAS,EAAEhB,gBAAiB;MAC5BT,WAAW,EAAEA,WAAY;MACzB0B,OAAO,EAAEA,CAAA,KAAMjC,KAAK,CAACW,KAAK,CAACuB,SAAS,CAAC,KAAK,CAAE;MAAAb,QAAA,EAE3CnB,QAAQ,CAACW,aAAa,IAAI,EAAE;IAAC,CACb,CACpB;EAAA,CACD,CAAC;AAEP,CACF,CAAC","ignoreList":[]}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { View, Modal, StyleSheet, TouchableWithoutFeedback } from 'react-native';
|
|
5
|
-
import { BORDER_RADIUS, COLORS, Loader, LoaderSize, LoaderType, SPACING } from '@magmamath/react-native-ui';
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
export const FormulaSheetModal = ({
|
|
8
|
-
children,
|
|
9
|
-
loaderColor,
|
|
10
|
-
isLoading,
|
|
11
|
-
onClose
|
|
12
|
-
}) => {
|
|
13
|
-
return /*#__PURE__*/_jsx(Modal, {
|
|
14
|
-
visible: true,
|
|
15
|
-
transparent: true,
|
|
16
|
-
animationType: "none",
|
|
17
|
-
onRequestClose: onClose,
|
|
18
|
-
children: /*#__PURE__*/_jsx(TouchableWithoutFeedback, {
|
|
19
|
-
onPress: onClose,
|
|
20
|
-
children: /*#__PURE__*/_jsx(View, {
|
|
21
|
-
style: styles.container,
|
|
22
|
-
children: /*#__PURE__*/_jsx(TouchableWithoutFeedback, {
|
|
23
|
-
onPress: event => event.stopPropagation(),
|
|
24
|
-
children: /*#__PURE__*/_jsx(View, {
|
|
25
|
-
style: styles.content,
|
|
26
|
-
children: isLoading ? /*#__PURE__*/_jsx(Loader, {
|
|
27
|
-
type: LoaderType.PRIMARY,
|
|
28
|
-
color: loaderColor,
|
|
29
|
-
size: LoaderSize.LARGE
|
|
30
|
-
}) : children
|
|
31
|
-
})
|
|
32
|
-
})
|
|
33
|
-
})
|
|
34
|
-
})
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
const styles = StyleSheet.create({
|
|
38
|
-
container: {
|
|
39
|
-
width: '100%',
|
|
40
|
-
height: '100%',
|
|
41
|
-
alignItems: 'center',
|
|
42
|
-
justifyContent: 'center',
|
|
43
|
-
backgroundColor: 'rgba(0, 0, 0, 0.25)'
|
|
44
|
-
},
|
|
45
|
-
content: {
|
|
46
|
-
width: '100%',
|
|
47
|
-
maxWidth: 720,
|
|
48
|
-
height: '100%',
|
|
49
|
-
maxHeight: '80%',
|
|
50
|
-
alignItems: 'center',
|
|
51
|
-
justifyContent: 'center',
|
|
52
|
-
paddingHorizontal: SPACING['800'],
|
|
53
|
-
paddingVertical: SPACING['400'],
|
|
54
|
-
borderRadius: BORDER_RADIUS['400'],
|
|
55
|
-
backgroundColor: COLORS.NEUTRAL_1
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
//# sourceMappingURL=FormulaSheetModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","Modal","StyleSheet","TouchableWithoutFeedback","BORDER_RADIUS","COLORS","Loader","LoaderSize","LoaderType","SPACING","jsx","_jsx","FormulaSheetModal","children","loaderColor","isLoading","onClose","visible","transparent","animationType","onRequestClose","onPress","style","styles","container","event","stopPropagation","content","type","PRIMARY","color","size","LARGE","create","width","height","alignItems","justifyContent","backgroundColor","maxWidth","maxHeight","paddingHorizontal","paddingVertical","borderRadius","NEUTRAL_1"],"sourceRoot":"../../../../../src","sources":["features/formulaSheet/components/FormulaSheetModal.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAA6B,OAAO;AAChD,SAASC,IAAI,EAAEC,KAAK,EAAEC,UAAU,EAAEC,wBAAwB,QAAQ,cAAc;AAChF,SACEC,aAAa,EACbC,MAAM,EACNC,MAAM,EAENC,UAAU,EACVC,UAAU,EACVC,OAAO,QACF,4BA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EAAEhC,OAAO,CAAC,KAAK,CAAC;IACjCiC,eAAe,EAAEjC,OAAO,CAAC,KAAK,CAAC;IAC/BkC,YAAY,EAAEvC,aAAa,CAAC,KAAK,CAAC;IAClCkC,eAAe,EAAEjC,MAAM,CAACuC;EAC1B;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["FormulaSheet","FormulaSheetModel"],"sourceRoot":"../../../../src","sources":["features/formulaSheet/index.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,8BAA2B;AACxD,SAASC,iBAAiB,QAAQ,kBAAe","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["createEffect","FormulaSheetAPI","getPDFFileBlobFx","setupRequests","api","use","getPDFFileBlob"],"sourceRoot":"../../../../../src","sources":["features/formulaSheet/model/api.model.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAgB,UAAU;AAM/C,OAAO,MAAMC,eAAe,CAAC;EACXC,gBAAgB,GAA2BF,YAAY,CAAC,CAAC;EAElEG,aAAaA,CAACC,GAAyB,EAAE;IAC9C,IAAI,CAACF,gBAAgB,CAACG,GAAG,CAACD,GAAG,CAACE,cAAc,CAAC;EAC/C;AACF","ignoreList":[]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { createEvent, restore } from 'effector';
|
|
4
|
-
export class FormulaSheetFile {
|
|
5
|
-
reset = createEvent();
|
|
6
|
-
setId = createEvent();
|
|
7
|
-
$id = restore(this.setId, null);
|
|
8
|
-
constructor({
|
|
9
|
-
api
|
|
10
|
-
}) {
|
|
11
|
-
this.$blob = restore(api.getPDFFileBlobFx.doneData, null).reset(this.reset);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=file.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["createEvent","restore","FormulaSheetFile","reset","setId","$id","constructor","api","$blob","getPDFFileBlobFx","doneData"],"sourceRoot":"../../../../../src","sources":["features/formulaSheet/model/file.model.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,OAAO,QAAuB,UAAU;AAO9D,OAAO,MAAMC,gBAAgB,CAAC;EACZC,KAAK,GAAGH,WAAW,CAAC,CAAC;EAGrBI,KAAK,GAAGJ,WAAW,CAAS,CAAC;EAC7BK,GAAG,GAAGJ,OAAO,CAAC,IAAI,CAACG,KAAK,EAAE,IAAI,CAAC;EAE/CE,WAAWA,CAAC;IAAEC;EAA2B,CAAC,EAAE;IAC1C,IAAI,CAACC,KAAK,GAAGP,OAAO,CAACM,GAAG,CAACE,gBAAgB,CAACC,QAAQ,EAAE,IAAI,CAAC,CAACP,KAAK,CAAC,IAAI,CAACA,KAAK,CAAC;EAC7E;AACF","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { createEvent, restore } from 'effector';
|
|
4
|
-
export class FormulaSheetModal {
|
|
5
|
-
reset = createEvent();
|
|
6
|
-
toggle = createEvent();
|
|
7
|
-
setIsOpen = createEvent();
|
|
8
|
-
$isOpen = restore(this.setIsOpen, false).on(this.toggle, state => !state).reset(this.reset);
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=modal.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["createEvent","restore","FormulaSheetModal","reset","toggle","setIsOpen","$isOpen","on","state"],"sourceRoot":"../../../../../src","sources":["features/formulaSheet/model/modal.model.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,OAAO,QAAQ,UAAU;AAE/C,OAAO,MAAMC,iBAAiB,CAAC;EACbC,KAAK,GAAGH,WAAW,CAAC,CAAC;EACrBI,MAAM,GAAGJ,WAAW,CAAC,CAAC;EACtBK,SAAS,GAAGL,WAAW,CAAU,CAAC;EAClCM,OAAO,GAAGL,OAAO,CAAC,IAAI,CAACI,SAAS,EAAE,KAAK,CAAC,CACrDE,EAAE,CAAC,IAAI,CAACH,MAAM,EAAGI,KAAK,IAAK,CAACA,KAAK,CAAC,CAClCL,KAAK,CAAC,IAAI,CAACA,KAAK,CAAC;AACtB","ignoreList":[]}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { sample } from 'effector';
|
|
4
|
-
import { FormulaSheetAPI } from "./api.model.js";
|
|
5
|
-
import { FormulaSheetModal } from "./modal.model.js";
|
|
6
|
-
import { FormulaSheetFile } from "./file.model.js";
|
|
7
|
-
export class FormulaSheetModel {
|
|
8
|
-
api = new FormulaSheetAPI();
|
|
9
|
-
modal = new FormulaSheetModal();
|
|
10
|
-
file = new FormulaSheetFile({
|
|
11
|
-
api: this.api
|
|
12
|
-
});
|
|
13
|
-
constructor({
|
|
14
|
-
api
|
|
15
|
-
}) {
|
|
16
|
-
this.api.setupRequests(api);
|
|
17
|
-
sample({
|
|
18
|
-
clock: this.modal.$isOpen,
|
|
19
|
-
source: [this.file.$id, this.file.$blob],
|
|
20
|
-
filter: ([fileId, blob], isOpen) => !!(isOpen && fileId && !blob),
|
|
21
|
-
fn: ([fileId]) => fileId,
|
|
22
|
-
target: this.api.getPDFFileBlobFx
|
|
23
|
-
});
|
|
24
|
-
sample({
|
|
25
|
-
clock: this.file.$id,
|
|
26
|
-
target: [this.file.reset, this.modal.reset]
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["sample","FormulaSheetAPI","FormulaSheetModal","FormulaSheetFile","FormulaSheetModel","api","modal","file","constructor","setupRequests","clock","$isOpen","source","$id","$blob","filter","fileId","blob","isOpen","fn","target","getPDFFileBlobFx","reset"],"sourceRoot":"../../../../../src","sources":["features/formulaSheet/model/model.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,UAAU;AACjC,SAASC,eAAe,QAAmC,gBAAa;AACxE,SAASC,iBAAiB,QAAQ,kBAAe;AACjD,SAASC,gBAAgB,QAAQ,iBAAc;AAM/C,OAAO,MAAMC,iBAAiB,CAAC;EACbC,GAAG,GAAG,IAAIJ,eAAe,CAAC,CAAC;EAC3BK,KAAK,GAAG,IAAIJ,iBAAiB,CAAC,CAAC;EAC/BK,IAAI,GAAG,IAAIJ,gBAAgB,CAAC;IAAEE,GAAG,EAAE,IAAI,CAACA;EAAI,CAAC,CAAC;EAE9DG,WAAWA,CAAC;IAAEH;EAA4B,CAAC,EAAE;IAC3C,IAAI,CAACA,GAAG,CAACI,aAAa,CAACJ,GAAG,CAAC;IAE3BL,MAAM,CAAC;MACLU,KAAK,EAAE,IAAI,CAACJ,KAAK,CAACK,OAAO;MACzBC,MAAM,EAAE,CAAC,IAAI,CAACL,IAAI,CAACM,GAAG,EAAE,IAAI,CAACN,IAAI,CAACO,KAAK,CAAC;MACxCC,MAAM,EAAEA,CAAC,CAACC,MAAM,EAAEC,IAAI,CAAC,EAAEC,MAAM,KAAK,CAAC,EAAEA,MAAM,IAAIF,MAAM,IAAI,CAACC,IAAI,CAAC;MACjEE,EAAE,EAAEA,CAAC,CAACH,MAAM,CAAC,KAAKA,MAAgB;MAClCI,MAAM,EAAE,IAAI,CAACf,GAAG,CAACgB;IACnB,CAAC,CAAC;IAEFrB,MAAM,CAAC;MACLU,KAAK,EAAE,IAAI,CAACH,IAAI,CAACM,GAAG;MACpBO,MAAM,EAAE,CAAC,IAAI,CAACb,IAAI,CAACe,KAAK,EAAE,IAAI,CAAChB,KAAK,CAACgB,KAAK;IAC5C,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { ButtonColor, ButtonSize, ButtonRef, LoaderColor } from '@magmamath/react-native-ui';
|
|
3
|
-
import { FormulaSheetModel } from '../model/model';
|
|
4
|
-
type FormulaSheetProps = {
|
|
5
|
-
model: FormulaSheetModel;
|
|
6
|
-
fileId: string;
|
|
7
|
-
renderer: (fileBlob: string) => ReactNode;
|
|
8
|
-
buttonSize: ButtonSize;
|
|
9
|
-
buttonColor: ButtonColor;
|
|
10
|
-
loaderColor: LoaderColor;
|
|
11
|
-
onPress?: () => void;
|
|
12
|
-
};
|
|
13
|
-
export declare const FormulaSheet: React.ForwardRefExoticComponent<FormulaSheetProps & React.RefAttributes<ButtonRef | null>>;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=FormulaSheet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormulaSheet.d.ts","sourceRoot":"","sources":["../../../../../../src/features/formulaSheet/components/FormulaSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,SAAS,EAAa,MAAM,OAAO,CAAA;AAE/D,OAAO,EAEL,WAAW,EACX,UAAU,EAIV,SAAS,EACT,WAAW,EACZ,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAGlD,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,iBAAiB,CAAA;IACxB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,SAAS,CAAA;IACzC,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,WAAW,EAAE,WAAW,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,YAAY,4FAgDxB,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { LoaderColor } from '@magmamath/react-native-ui';
|
|
3
|
-
type FormulaSheetModalProps = {
|
|
4
|
-
isLoading: boolean;
|
|
5
|
-
loaderColor: LoaderColor;
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
};
|
|
8
|
-
export declare const FormulaSheetModal: ({ children, loaderColor, isLoading, onClose, }: PropsWithChildren<FormulaSheetModalProps>) => React.JSX.Element;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=FormulaSheetModal.d.ts.map
|
package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheetModal.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormulaSheetModal.d.ts","sourceRoot":"","sources":["../../../../../../src/features/formulaSheet/components/FormulaSheetModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAEhD,OAAO,EAIL,WAAW,EAIZ,MAAM,4BAA4B,CAAA;AAEnC,KAAK,sBAAsB,GAAG;IAC5B,SAAS,EAAE,OAAO,CAAA;IAClB,WAAW,EAAE,WAAW,CAAA;IACxB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,iBAAiB,mDAK3B,iBAAiB,CAAC,sBAAsB,CAAC,sBAkB3C,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/formulaSheet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Effect } from 'effector';
|
|
2
|
-
export type FormulaSheetApiProps = {
|
|
3
|
-
getPDFFileBlob: (id: string) => Promise<string>;
|
|
4
|
-
};
|
|
5
|
-
export declare class FormulaSheetAPI {
|
|
6
|
-
readonly getPDFFileBlobFx: Effect<string, string>;
|
|
7
|
-
setupRequests(api: FormulaSheetApiProps): void;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=api.model.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.model.d.ts","sourceRoot":"","sources":["../../../../../../src/features/formulaSheet/model/api.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,MAAM,EAAE,MAAM,UAAU,CAAA;AAE/C,MAAM,MAAM,oBAAoB,GAAG;IACjC,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;CAChD,CAAA;AAED,qBAAa,eAAe;IAC1B,SAAgB,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAiB;IAElE,aAAa,CAAC,GAAG,EAAE,oBAAoB;CAG/C"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { StoreWritable } from 'effector';
|
|
2
|
-
import { FormulaSheetAPI } from './api.model';
|
|
3
|
-
type FormulaSheetFileProps = {
|
|
4
|
-
api: FormulaSheetAPI;
|
|
5
|
-
};
|
|
6
|
-
export declare class FormulaSheetFile {
|
|
7
|
-
readonly reset: import("effector").EventCallable<void>;
|
|
8
|
-
readonly $blob: StoreWritable<string | null>;
|
|
9
|
-
readonly setId: import("effector").EventCallable<string>;
|
|
10
|
-
readonly $id: StoreWritable<string | null>;
|
|
11
|
-
constructor({ api }: FormulaSheetFileProps);
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=file.model.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.model.d.ts","sourceRoot":"","sources":["../../../../../../src/features/formulaSheet/model/file.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,aAAa,EAAE,MAAM,UAAU,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7C,KAAK,qBAAqB,GAAG;IAC3B,GAAG,EAAE,eAAe,CAAA;CACrB,CAAA;AAED,qBAAa,gBAAgB;IAC3B,SAAgB,KAAK,yCAAgB;IACrC,SAAgB,KAAK,EAAE,aAAa,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;IAEnD,SAAgB,KAAK,2CAAwB;IAC7C,SAAgB,GAAG,+BAA4B;gBAEnC,EAAE,GAAG,EAAE,EAAE,qBAAqB;CAG3C"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare class FormulaSheetModal {
|
|
2
|
-
readonly reset: import("effector").EventCallable<void>;
|
|
3
|
-
readonly toggle: import("effector").EventCallable<void>;
|
|
4
|
-
readonly setIsOpen: import("effector").EventCallable<boolean>;
|
|
5
|
-
readonly $isOpen: import("effector").StoreWritable<boolean>;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=modal.model.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modal.model.d.ts","sourceRoot":"","sources":["../../../../../../src/features/formulaSheet/model/modal.model.ts"],"names":[],"mappings":"AAEA,qBAAa,iBAAiB;IAC5B,SAAgB,KAAK,yCAAgB;IACrC,SAAgB,MAAM,yCAAgB;IACtC,SAAgB,SAAS,4CAAyB;IAClD,SAAgB,OAAO,4CAEH;CACrB"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FormulaSheetAPI, type FormulaSheetApiProps } from './api.model';
|
|
2
|
-
import { FormulaSheetModal } from './modal.model';
|
|
3
|
-
import { FormulaSheetFile } from './file.model';
|
|
4
|
-
type FormulaSheetModelProps = {
|
|
5
|
-
api: FormulaSheetApiProps;
|
|
6
|
-
};
|
|
7
|
-
export declare class FormulaSheetModel {
|
|
8
|
-
readonly api: FormulaSheetAPI;
|
|
9
|
-
readonly modal: FormulaSheetModal;
|
|
10
|
-
readonly file: FormulaSheetFile;
|
|
11
|
-
constructor({ api }: FormulaSheetModelProps);
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=model.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../../src/features/formulaSheet/model/model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,aAAa,CAAA;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAE/C,KAAK,sBAAsB,GAAG;IAC5B,GAAG,EAAE,oBAAoB,CAAA;CAC1B,CAAA;AAED,qBAAa,iBAAiB;IAC5B,SAAgB,GAAG,kBAAwB;IAC3C,SAAgB,KAAK,oBAA0B;IAC/C,SAAgB,IAAI,mBAA0C;gBAElD,EAAE,GAAG,EAAE,EAAE,sBAAsB;CAgB5C"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { ButtonColor, ButtonSize, ButtonRef, LoaderColor } from '@magmamath/react-native-ui';
|
|
3
|
-
import { FormulaSheetModel } from '../model/model';
|
|
4
|
-
type FormulaSheetProps = {
|
|
5
|
-
model: FormulaSheetModel;
|
|
6
|
-
fileId: string;
|
|
7
|
-
renderer: (fileBlob: string) => ReactNode;
|
|
8
|
-
buttonSize: ButtonSize;
|
|
9
|
-
buttonColor: ButtonColor;
|
|
10
|
-
loaderColor: LoaderColor;
|
|
11
|
-
onPress?: () => void;
|
|
12
|
-
};
|
|
13
|
-
export declare const FormulaSheet: React.ForwardRefExoticComponent<FormulaSheetProps & React.RefAttributes<ButtonRef | null>>;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=FormulaSheet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormulaSheet.d.ts","sourceRoot":"","sources":["../../../../../../src/features/formulaSheet/components/FormulaSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,SAAS,EAAa,MAAM,OAAO,CAAA;AAE/D,OAAO,EAEL,WAAW,EACX,UAAU,EAIV,SAAS,EACT,WAAW,EACZ,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAGlD,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,iBAAiB,CAAA;IACxB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,SAAS,CAAA;IACzC,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,WAAW,EAAE,WAAW,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,YAAY,4FAgDxB,CAAA"}
|