etendo-ui-library 1.2.13 → 1.2.15
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-native/components/navbar/Navbar.d.ts +1 -1
- package/dist-native/components/navbar/Navbar.js +1 -1
- package/dist-native/components/navbar/Navbar.types.d.ts +4 -4
- package/dist-web/components/button/Button.js +4 -4
- package/dist-web/components/button/Button.styles.js +3 -3
- package/dist-web/components/cards/cardDropdown/CardDropdown.js +1 -1
- package/dist-web/components/cards/cardDropdown/component/CardDropdownOptions.js +1 -1
- package/dist-web/components/input/components/InputField.js +2 -2
- package/dist-web/components/input/components/InputOptions.js +2 -2
- package/dist-web/components/navbar/Navbar.d.ts +1 -1
- package/dist-web/components/navbar/Navbar.js +52 -42
- package/dist-web/components/navbar/Navbar.types.d.ts +4 -4
- package/dist-web/components/navbar/components/DrawerLateral/DrawerLateral.js +1 -1
- package/dist-web/components/navbar/components/DrawerLateral/DrawerLateralSubMenu.js +4 -4
- package/dist-web/components/navbar/components/DrawerLateral/DrawerSectionsContainer.js +1 -1
- package/dist-web/components/navbar/components/Notification/Notification.js +1 -1
- package/dist-web/components/navbar/components/Notification/NotificationsOptions.js +1 -1
- package/dist-web/components/navbar/components/Profile/Profile.js +1 -1
- package/dist-web/components/navbar/components/Profile/ProfileOptions.js +1 -1
- package/dist-web/components/pagination/Pagination.js +1 -1
- package/dist-web/components/secondaryComponents/SkeletonItem.js +1 -1
- package/dist-web/components/tab/Tab.js +1 -1
- package/dist-web/components/viewEtendo/ViewEtendo.js +3 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { NavbarProps } from './Navbar.types';
|
|
3
|
-
declare const Navbar: ({ name, title, email,
|
|
3
|
+
declare const Navbar: ({ name, title, email, navbarComponents, profileOptions, profileImage, endOptions, onOptionSelectedProfile, onPressMenuBurger, onPressLogo, }: NavbarProps) => React.JSX.Element;
|
|
4
4
|
export default Navbar;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _toConsumableArray2=_interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _reactNative=require("react-native");var _react=_interopRequireWildcard(require("react"));var _Navbar=require("./Navbar.styles");var _index=require("./index");var _MenuBurger=_interopRequireDefault(require("./components/MenuBurger/MenuBurger"));var _table_utils=require("../../helpers/table_utils");var _this=this,_jsxFileName="/home/jenkins/workspace/etendo_ui_library_develop/src/components/navbar/Navbar.tsx";function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=="object"&&typeof obj!=="function"){return{default:obj};}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}var Navbar=function Navbar(_ref){var name=_ref.name,title=_ref.title,email=_ref.email,
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _toConsumableArray2=_interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _reactNative=require("react-native");var _react=_interopRequireWildcard(require("react"));var _Navbar=require("./Navbar.styles");var _index=require("./index");var _MenuBurger=_interopRequireDefault(require("./components/MenuBurger/MenuBurger"));var _table_utils=require("../../helpers/table_utils");var _this=this,_jsxFileName="/home/jenkins/workspace/etendo_ui_library_develop/src/components/navbar/Navbar.tsx";function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=="object"&&typeof obj!=="function"){return{default:obj};}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}var Navbar=function Navbar(_ref){var name=_ref.name,title=_ref.title,email=_ref.email,navbarComponents=_ref.navbarComponents,profileOptions=_ref.profileOptions,profileImage=_ref.profileImage,endOptions=_ref.endOptions,onOptionSelectedProfile=_ref.onOptionSelectedProfile,onPressMenuBurger=_ref.onPressMenuBurger,onPressLogo=_ref.onPressLogo;var widthLeft=_Navbar.styles.leftContainer.width;var profileWidth=(0,_table_utils.isTablet)()?84:72;var _useState=(0,_react.useState)(navbarComponents),_useState2=(0,_slicedToArray2.default)(_useState,2),renderedComponents=_useState2[0],setRenderedComponents=_useState2[1];var _useState3=(0,_react.useState)([]),_useState4=(0,_slicedToArray2.default)(_useState3,2),removedComponents=_useState4[0],setRemovedComponents=_useState4[1];var _useState5=(0,_react.useState)(0),_useState6=(0,_slicedToArray2.default)(_useState5,2),widthContainer=_useState6[0],setWidthContainer=_useState6[1];var hasCalculated=(0,_react.useRef)(false);var componentWidths=[];for(var i=0;i<((navbarComponents==null?void 0:navbarComponents.length)||0);i++){componentWidths[i]=0;}var calculateRenderedComponents=function calculateRenderedComponents(index,newWidth){componentWidths[index]=newWidth;if(navbarComponents){if(!hasCalculated.current&&index===(navbarComponents==null?void 0:navbarComponents.length)-1){removeAditionalComponents();hasCalculated.current=true;}}};var removeAditionalComponents=function removeAditionalComponents(){var totalWidth=0;for(var element of componentWidths){totalWidth+=element;}var _loop=function _loop(){var _renderedComponents$l;var lastComponentIndex=componentWidths.length-1;if(renderedComponents!=null&&(_renderedComponents$l=renderedComponents[lastComponentIndex])!=null&&_renderedComponents$l.inOptions){setRemovedComponents(function(prevRemovedComponent){var updatedRemovedComponent=[renderedComponents[lastComponentIndex].inOptions].concat((0,_toConsumableArray2.default)(prevRemovedComponent!=null?prevRemovedComponent:[]));return updatedRemovedComponent;});}totalWidth-=componentWidths[lastComponentIndex];componentWidths.splice(lastComponentIndex,1);};while(totalWidth+widthLeft+profileWidth-_Navbar.marginIncomponents>widthContainer){_loop();}setRenderedComponents(function(prev){var slicedComponents=prev==null?void 0:prev.slice(0,componentWidths.length);return slicedComponents==null?void 0:slicedComponents.reverse();});};return _react.default.createElement(_reactNative.View,{style:_Navbar.styles.container,onLayout:function onLayout(event){setWidthContainer(event.nativeEvent.layout.width);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:87,columnNumber:5}},_react.default.createElement(_reactNative.View,{style:[_Navbar.styles.leftContainer],__self:_this,__source:{fileName:_jsxFileName,lineNumber:92,columnNumber:7}},(0,_table_utils.isTablet)()?_react.default.createElement(_react.default.Fragment,null,_react.default.createElement(_index.EtendoLogo,{onPress:onPressLogo,pressable:true,__self:_this,__source:{fileName:_jsxFileName,lineNumber:95,columnNumber:13}}),_react.default.createElement(_index.Welcome,{name:name,title:title,__self:_this,__source:{fileName:_jsxFileName,lineNumber:96,columnNumber:13}})):_react.default.createElement(_MenuBurger.default,{onPress:onPressMenuBurger,__self:_this,__source:{fileName:_jsxFileName,lineNumber:99,columnNumber:11}})),_react.default.createElement(_reactNative.View,{style:[_Navbar.styles.rightContainer],__self:_this,__source:{fileName:_jsxFileName,lineNumber:102,columnNumber:7}},_react.default.createElement(_react.default.Fragment,null,widthContainer!==0&&(renderedComponents==null?void 0:renderedComponents.map(function(item,index){return _react.default.createElement(_reactNative.View,{key:index,onLayout:function onLayout(event){calculateRenderedComponents(index,event.nativeEvent.layout.width+_Navbar.marginIncomponents);},style:[_Navbar.styles.itemMapContainer,hasCalculated.current&&{opacity:0}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:106,columnNumber:15}},item.component);}))),_react.default.createElement(_reactNative.View,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:122,columnNumber:9}},_react.default.createElement(_index.Profile,{profileOptions:profileOptions,otherOptions:removedComponents,name:name,email:email,onOptionSelected:onOptionSelectedProfile,profileImage:profileImage,endOptions:endOptions,__self:_this,__source:{fileName:_jsxFileName,lineNumber:123,columnNumber:11}}))));};var _default=Navbar;exports.default=_default;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { GestureResponderEvent, LayoutChangeEvent } from 'react-native';
|
|
3
|
-
export type
|
|
3
|
+
export type NavbarComponents = {
|
|
4
4
|
component: React.ReactElement;
|
|
5
|
-
inOptions
|
|
5
|
+
inOptions: OptionProfileItem;
|
|
6
6
|
};
|
|
7
7
|
export interface NavbarProps {
|
|
8
8
|
name?: string;
|
|
9
9
|
title?: string;
|
|
10
10
|
email?: string;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
navbarComponents?: NavbarComponents[];
|
|
12
|
+
profileOptions?: OptionProfileItem[];
|
|
13
13
|
profileImage?: React.ReactElement;
|
|
14
14
|
endOptions?: OptionProfileItem[];
|
|
15
15
|
onOptionSelectedProfile?: (item?: string, index?: number) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
@@ -8,7 +8,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
8
8
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
9
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
10
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
-
function _iterableToArrayLimit(
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import React, { useState } from 'react';
|
|
14
14
|
import { Pressable, Text, TouchableOpacity, View } from "react-native-web";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { View, TouchableOpacity, Dimensions, Text } from "react-native-web";
|
|
8
8
|
import React, { useEffect, useRef, useState } from 'react';
|
|
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { View, Modal, TouchableOpacity, ScrollView, Pressable, Text } from "react-native-web";
|
|
8
8
|
import React, { useState } from 'react';
|
|
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { useEffect, useRef, useState } from 'react';
|
|
8
8
|
import { TextInput, TouchableOpacity, View, Dimensions, Text } from "react-native-web";
|
|
@@ -183,7 +183,7 @@ var InputField = function InputField(_ref) {
|
|
|
183
183
|
return !prevState;
|
|
184
184
|
});
|
|
185
185
|
} else {
|
|
186
|
-
onSubmit === null || onSubmit === void 0
|
|
186
|
+
onSubmit === null || onSubmit === void 0 || onSubmit();
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
189
|
var handleOnPress = function handleOnPress(event) {
|
|
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { Modal, Pressable, ScrollView, Text, TextInput, TouchableOpacity, View } from "react-native-web";
|
|
8
8
|
import React, { useEffect, useRef, useState } from 'react';
|
|
@@ -57,7 +57,7 @@ var InputOptions = function InputOptions(_ref) {
|
|
|
57
57
|
var handleOnFocus = function handleOnFocus() {
|
|
58
58
|
var _textInputRef$current;
|
|
59
59
|
setShowSearchImg(false);
|
|
60
|
-
textInputRef === null || textInputRef === void 0 || (_textInputRef$current = textInputRef.current) === null || _textInputRef$current === void 0
|
|
60
|
+
textInputRef === null || textInputRef === void 0 || (_textInputRef$current = textInputRef.current) === null || _textInputRef$current === void 0 || _textInputRef$current.focus();
|
|
61
61
|
setPlaceholderText('');
|
|
62
62
|
};
|
|
63
63
|
var handlePressOverlay = function handlePressOverlay() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { NavbarProps } from './Navbar.types';
|
|
3
|
-
declare const Navbar: ({ name, title, email,
|
|
3
|
+
declare const Navbar: ({ name, title, email, navbarComponents, profileOptions, profileImage, endOptions, onOptionSelectedProfile, onPressMenuBurger, onPressLogo, }: NavbarProps) => React.JSX.Element;
|
|
4
4
|
export default Navbar;
|
|
@@ -6,10 +6,10 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
6
6
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7
7
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8
8
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
9
|
-
function _iterableToArrayLimit(
|
|
9
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
10
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
-
import {
|
|
12
|
-
import React, { useState } from 'react';
|
|
11
|
+
import { View } from "react-native-web";
|
|
12
|
+
import React, { useRef, useState } from 'react';
|
|
13
13
|
import { marginIncomponents, styles } from "./Navbar.styles";
|
|
14
14
|
import { Welcome, Profile, EtendoLogo } from "./index";
|
|
15
15
|
import MenuBurger from "./components/MenuBurger/MenuBurger";
|
|
@@ -18,17 +18,16 @@ var Navbar = function Navbar(_ref) {
|
|
|
18
18
|
var name = _ref.name,
|
|
19
19
|
title = _ref.title,
|
|
20
20
|
email = _ref.email,
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
navbarComponents = _ref.navbarComponents,
|
|
22
|
+
profileOptions = _ref.profileOptions,
|
|
23
23
|
profileImage = _ref.profileImage,
|
|
24
24
|
endOptions = _ref.endOptions,
|
|
25
25
|
onOptionSelectedProfile = _ref.onOptionSelectedProfile,
|
|
26
26
|
onPressMenuBurger = _ref.onPressMenuBurger,
|
|
27
27
|
onPressLogo = _ref.onPressLogo;
|
|
28
|
-
var width = Dimensions.get('window').width;
|
|
29
28
|
var widthLeft = styles.leftContainer.width;
|
|
30
29
|
var profileWidth = isTablet() ? 84 : 72;
|
|
31
|
-
var _useState = useState(
|
|
30
|
+
var _useState = useState(navbarComponents),
|
|
32
31
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33
32
|
renderedComponents = _useState2[0],
|
|
34
33
|
setRenderedComponents = _useState2[1];
|
|
@@ -36,43 +35,55 @@ var Navbar = function Navbar(_ref) {
|
|
|
36
35
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
37
36
|
removedComponents = _useState4[0],
|
|
38
37
|
setRemovedComponents = _useState4[1];
|
|
39
|
-
var _useState5 = useState(
|
|
38
|
+
var _useState5 = useState(0),
|
|
40
39
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
var
|
|
40
|
+
widthContainer = _useState6[0],
|
|
41
|
+
setWidthContainer = _useState6[1];
|
|
42
|
+
var hasCalculated = useRef(false);
|
|
43
|
+
var componentWidths = [];
|
|
44
|
+
for (var i = 0; i < ((navbarComponents === null || navbarComponents === void 0 ? void 0 : navbarComponents.length) || 0); i++) {
|
|
45
|
+
componentWidths[i] = 0;
|
|
46
|
+
}
|
|
44
47
|
var calculateRenderedComponents = function calculateRenderedComponents(index, newWidth) {
|
|
45
48
|
componentWidths[index] = newWidth;
|
|
46
|
-
if (
|
|
47
|
-
if (index === (
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
setRenderedComponents(function (prev) {
|
|
67
|
-
var slicedComponents = prev === null || prev === void 0 ? void 0 : prev.slice(0, componentWidths.length);
|
|
68
|
-
return slicedComponents === null || slicedComponents === void 0 ? void 0 : slicedComponents.reverse();
|
|
49
|
+
if (navbarComponents) {
|
|
50
|
+
if (!hasCalculated.current && index === (navbarComponents === null || navbarComponents === void 0 ? void 0 : navbarComponents.length) - 1) {
|
|
51
|
+
removeAditionalComponents();
|
|
52
|
+
hasCalculated.current = true;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
var removeAditionalComponents = function removeAditionalComponents() {
|
|
57
|
+
var totalWidth = 0;
|
|
58
|
+
for (var _i = 0, _componentWidths = componentWidths; _i < _componentWidths.length; _i++) {
|
|
59
|
+
var element = _componentWidths[_i];
|
|
60
|
+
totalWidth += element;
|
|
61
|
+
}
|
|
62
|
+
var _loop = function _loop() {
|
|
63
|
+
var _renderedComponents$l;
|
|
64
|
+
var lastComponentIndex = componentWidths.length - 1;
|
|
65
|
+
if (renderedComponents !== null && renderedComponents !== void 0 && (_renderedComponents$l = renderedComponents[lastComponentIndex]) !== null && _renderedComponents$l !== void 0 && _renderedComponents$l.inOptions) {
|
|
66
|
+
setRemovedComponents(function (prevRemovedComponent) {
|
|
67
|
+
var updatedRemovedComponent = [renderedComponents[lastComponentIndex].inOptions].concat(_toConsumableArray(prevRemovedComponent !== null && prevRemovedComponent !== void 0 ? prevRemovedComponent : []));
|
|
68
|
+
return updatedRemovedComponent;
|
|
69
69
|
});
|
|
70
|
-
setIsLoading(false);
|
|
71
70
|
}
|
|
71
|
+
totalWidth -= componentWidths[lastComponentIndex];
|
|
72
|
+
componentWidths.splice(lastComponentIndex, 1);
|
|
73
|
+
};
|
|
74
|
+
while (totalWidth + widthLeft + profileWidth - marginIncomponents > widthContainer) {
|
|
75
|
+
_loop();
|
|
72
76
|
}
|
|
77
|
+
setRenderedComponents(function (prev) {
|
|
78
|
+
var slicedComponents = prev === null || prev === void 0 ? void 0 : prev.slice(0, componentWidths.length);
|
|
79
|
+
return slicedComponents === null || slicedComponents === void 0 ? void 0 : slicedComponents.reverse();
|
|
80
|
+
});
|
|
73
81
|
};
|
|
74
82
|
return /*#__PURE__*/React.createElement(View, {
|
|
75
|
-
style: styles.container
|
|
83
|
+
style: styles.container,
|
|
84
|
+
onLayout: function onLayout(event) {
|
|
85
|
+
setWidthContainer(event.nativeEvent.layout.width);
|
|
86
|
+
}
|
|
76
87
|
}, /*#__PURE__*/React.createElement(View, {
|
|
77
88
|
style: [styles.leftContainer]
|
|
78
89
|
}, isTablet() ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(EtendoLogo, {
|
|
@@ -85,19 +96,18 @@ var Navbar = function Navbar(_ref) {
|
|
|
85
96
|
onPress: onPressMenuBurger
|
|
86
97
|
})), /*#__PURE__*/React.createElement(View, {
|
|
87
98
|
style: [styles.rightContainer]
|
|
88
|
-
}, /*#__PURE__*/React.createElement(React.Fragment, null, renderedComponents === null || renderedComponents === void 0 ? void 0 : renderedComponents.map(function (item, index) {
|
|
99
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null, widthContainer !== 0 && (renderedComponents === null || renderedComponents === void 0 ? void 0 : renderedComponents.map(function (item, index) {
|
|
89
100
|
return /*#__PURE__*/React.createElement(View, {
|
|
90
101
|
key: index,
|
|
91
102
|
onLayout: function onLayout(event) {
|
|
92
|
-
|
|
93
|
-
calculateRenderedComponents(index, width + marginIncomponents);
|
|
103
|
+
calculateRenderedComponents(index, event.nativeEvent.layout.width + marginIncomponents);
|
|
94
104
|
},
|
|
95
|
-
style: [styles.itemMapContainer,
|
|
105
|
+
style: [styles.itemMapContainer, hasCalculated.current && {
|
|
96
106
|
opacity: 0
|
|
97
107
|
}]
|
|
98
108
|
}, item.component);
|
|
99
|
-
})), /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Profile, {
|
|
100
|
-
profileOptions:
|
|
109
|
+
}))), /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Profile, {
|
|
110
|
+
profileOptions: profileOptions,
|
|
101
111
|
otherOptions: removedComponents,
|
|
102
112
|
name: name,
|
|
103
113
|
email: email,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { GestureResponderEvent, LayoutChangeEvent } from 'react-native';
|
|
3
|
-
export type
|
|
3
|
+
export type NavbarComponents = {
|
|
4
4
|
component: React.ReactElement;
|
|
5
|
-
inOptions
|
|
5
|
+
inOptions: OptionProfileItem;
|
|
6
6
|
};
|
|
7
7
|
export interface NavbarProps {
|
|
8
8
|
name?: string;
|
|
9
9
|
title?: string;
|
|
10
10
|
email?: string;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
navbarComponents?: NavbarComponents[];
|
|
12
|
+
profileOptions?: OptionProfileItem[];
|
|
13
13
|
profileImage?: React.ReactElement;
|
|
14
14
|
endOptions?: OptionProfileItem[];
|
|
15
15
|
onOptionSelectedProfile?: (item?: string, index?: number) => void;
|
|
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { useEffect, useState } from 'react';
|
|
8
8
|
import { View, Modal, TouchableOpacity, ScrollView, Text } from "react-native-web";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
@@ -8,7 +8,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
8
8
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
9
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
10
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
-
function _iterableToArrayLimit(
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import { Pressable, Text, View } from "react-native-web";
|
|
14
14
|
import React, { useState } from 'react';
|
|
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { useState } from 'react';
|
|
8
8
|
import { Pressable, Text, View } from "react-native-web";
|
|
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { useState, useMemo, useEffect, useRef } from 'react';
|
|
8
8
|
import { Modal, TouchableOpacity } from "react-native-web";
|
|
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { useState } from 'react';
|
|
8
8
|
import { View, Text, TouchableOpacity, Pressable } from "react-native-web";
|
|
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { TouchableOpacity, Modal } from "react-native-web";
|
|
8
8
|
import React, { useEffect, useRef, useState } from 'react';
|
|
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { View, Text, Pressable, ScrollView } from "react-native-web";
|
|
8
8
|
import React, { useState } from 'react';
|
|
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
/* Imports */
|
|
8
8
|
import React, { useState } from 'react';
|
|
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { View, Animated } from "react-native-web";
|
|
8
8
|
import React, { useEffect, useRef, useState } from 'react';
|
|
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
// Imports
|
|
8
8
|
import React, { useEffect, useState } from 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|