@zero-bits/taro-components 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/Permission/PermissionProvider.js +1 -35
- package/es/components/Permission/index.js +1 -2
- package/es/components/Permission/store.js +1 -158
- package/es/components/Text/index.js +1 -136
- package/es/components/View/index.d.ts +1 -1
- package/es/components/View/index.js +1 -220
- package/es/components/index.js +1 -3
- package/es/context/index.js +1 -6
- package/es/hooks/index.js +1 -2
- package/es/hooks/usePermission.js +1 -18
- package/es/hooks/useWeappUpdate.js +1 -33
- package/es/index.js +1 -3
- package/es/styles/index.css +120 -1
- package/es/types/index.js +1 -1
- package/lib/components/Permission/PermissionProvider.js +1 -41
- package/lib/components/Permission/index.js +1 -20
- package/lib/components/Permission/store.js +1 -164
- package/lib/components/Text/index.js +1 -145
- package/lib/components/View/index.d.ts +1 -1
- package/lib/components/View/index.js +1 -227
- package/lib/components/index.js +1 -36
- package/lib/context/index.js +1 -12
- package/lib/hooks/index.js +1 -19
- package/lib/hooks/usePermission.js +1 -24
- package/lib/hooks/useWeappUpdate.js +1 -38
- package/lib/index.js +1 -63
- package/lib/styles/index.css +120 -1
- package/lib/types/index.js +1 -5
- package/package.json +1 -1
|
@@ -1,164 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.createPermissionStore = createPermissionStore;
|
|
7
|
-
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); }
|
|
8
|
-
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; }
|
|
9
|
-
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; }
|
|
10
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
12
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
-
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; }
|
|
14
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
15
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16
|
-
/**
|
|
17
|
-
* Store 完整接口,包含 React useSyncExternalStore 所需的 getSnapshot / subscribe
|
|
18
|
-
* 业务侧若不希望在 IDE 补全中看到 React 内部方法,可将变量显式声明为 PermissionStorePublic
|
|
19
|
-
*
|
|
20
|
-
* @template P - 权限对象类型
|
|
21
|
-
* @template U - 用户对象类型
|
|
22
|
-
*/
|
|
23
|
-
/**
|
|
24
|
-
* 业务侧(axios 拦截器等非 React 环境)使用的 Store 公共接口
|
|
25
|
-
* 只暴露权限操作方法和销毁能力,屏蔽 React 内部机制
|
|
26
|
-
*
|
|
27
|
-
* @template P - 权限对象类型
|
|
28
|
-
* @template U - 用户对象类型
|
|
29
|
-
*/
|
|
30
|
-
var PermissionStore = /*#__PURE__*/function () {
|
|
31
|
-
/**
|
|
32
|
-
* @param adapter - 权限数据持久化适配器
|
|
33
|
-
* 类字段初始化先于构造函数体,此处 this.granted 等已绑定完毕
|
|
34
|
-
*/
|
|
35
|
-
function PermissionStore(adapter) {
|
|
36
|
-
var _this = this;
|
|
37
|
-
_classCallCheck(this, PermissionStore);
|
|
38
|
-
_defineProperty(this, "state", void 0);
|
|
39
|
-
_defineProperty(this, "listeners", new Set());
|
|
40
|
-
/**
|
|
41
|
-
* 缓存 actions 对象以保证引用稳定
|
|
42
|
-
* 注意:类字段箭头函数(granted/denied 等)在构造函数体执行前已完成初始化
|
|
43
|
-
* 因此在构造函数体中赋值 cachedActions 时,this.granted 等引用已可用
|
|
44
|
-
*/
|
|
45
|
-
_defineProperty(this, "cachedActions", void 0);
|
|
46
|
-
/**
|
|
47
|
-
* 获取当前状态快照(供 React 及内部使用)
|
|
48
|
-
* @returns {PermissionContextValue<P, U>} 权限上下文值
|
|
49
|
-
*/
|
|
50
|
-
_defineProperty(this, "getSnapshot", function () {
|
|
51
|
-
return _this.state;
|
|
52
|
-
});
|
|
53
|
-
/**
|
|
54
|
-
* 同步获取当前状态(供业务侧非 React 环境使用)
|
|
55
|
-
* @returns {PermissionContextValue<P, U>} 权限上下文值
|
|
56
|
-
*/
|
|
57
|
-
_defineProperty(this, "getState", function () {
|
|
58
|
-
return _this.state;
|
|
59
|
-
});
|
|
60
|
-
/**
|
|
61
|
-
* 订阅状态变更,返回取消订阅函数(供 useSyncExternalStore 使用)
|
|
62
|
-
* @param {() => void} listener - 状态变更时的回调
|
|
63
|
-
* @returns {() => void} 取消订阅函数
|
|
64
|
-
*/
|
|
65
|
-
_defineProperty(this, "subscribe", function (listener) {
|
|
66
|
-
_this.listeners.add(listener);
|
|
67
|
-
return function () {
|
|
68
|
-
return _this.listeners.delete(listener);
|
|
69
|
-
};
|
|
70
|
-
});
|
|
71
|
-
/**
|
|
72
|
-
* 通知所有订阅者状态已变更
|
|
73
|
-
*/
|
|
74
|
-
_defineProperty(this, "emitChange", function () {
|
|
75
|
-
_this.listeners.forEach(function (l) {
|
|
76
|
-
return l();
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
/**
|
|
80
|
-
* 授权方法,登录成功后调用
|
|
81
|
-
* @param {P} permission - 权限数据
|
|
82
|
-
* @param {U} [user] - 用户信息(可选,后续可通过 updateUser 补充)
|
|
83
|
-
*/
|
|
84
|
-
_defineProperty(this, "granted", function (permission, user) {
|
|
85
|
-
_this.adapter.savePermission(permission);
|
|
86
|
-
if (user !== undefined) {
|
|
87
|
-
_this.adapter.saveUser(user);
|
|
88
|
-
}
|
|
89
|
-
_this.state = _this.buildState(permission, user);
|
|
90
|
-
_this.emitChange();
|
|
91
|
-
});
|
|
92
|
-
/**
|
|
93
|
-
* 取消授权,清空所有持久化数据并通知订阅者
|
|
94
|
-
*/
|
|
95
|
-
_defineProperty(this, "denied", function () {
|
|
96
|
-
_this.adapter.clear();
|
|
97
|
-
_this.state = _this.buildState();
|
|
98
|
-
_this.emitChange();
|
|
99
|
-
});
|
|
100
|
-
/**
|
|
101
|
-
* 更新用户信息(部分字段覆盖,不影响权限数据)
|
|
102
|
-
* @param {Partial<U>} userInfo - 需要更新的字段
|
|
103
|
-
*/
|
|
104
|
-
_defineProperty(this, "updateUser", function (userInfo) {
|
|
105
|
-
var nextUser = _objectSpread(_objectSpread({}, _this.state.user), userInfo);
|
|
106
|
-
_this.adapter.saveUser(nextUser);
|
|
107
|
-
_this.state = _this.buildState(_this.state.permission, nextUser);
|
|
108
|
-
_this.emitChange();
|
|
109
|
-
});
|
|
110
|
-
/**
|
|
111
|
-
* 更新权限数据(部分字段覆盖,例如无感刷新 token 后调用)
|
|
112
|
-
* @param {Partial<P>} permissionInfo - 需要更新的权限字段
|
|
113
|
-
*/
|
|
114
|
-
_defineProperty(this, "updatePermission", function (permissionInfo) {
|
|
115
|
-
var nextPermission = _objectSpread(_objectSpread({}, _this.state.permission), permissionInfo);
|
|
116
|
-
_this.adapter.savePermission(nextPermission);
|
|
117
|
-
_this.state = _this.buildState(nextPermission, _this.state.user);
|
|
118
|
-
_this.emitChange();
|
|
119
|
-
});
|
|
120
|
-
/** 销毁 Store,清除所有订阅者 */
|
|
121
|
-
_defineProperty(this, "destroy", function () {
|
|
122
|
-
_this.listeners.clear();
|
|
123
|
-
});
|
|
124
|
-
this.adapter = adapter;
|
|
125
|
-
this.cachedActions = {
|
|
126
|
-
granted: this.granted,
|
|
127
|
-
denied: this.denied,
|
|
128
|
-
updateUser: this.updateUser,
|
|
129
|
-
updatePermission: this.updatePermission
|
|
130
|
-
};
|
|
131
|
-
var _permission = adapter.loadPermission();
|
|
132
|
-
var _user = adapter.loadUser();
|
|
133
|
-
this.state = this.buildState(_permission instanceof Promise ? undefined : _permission, _user instanceof Promise ? undefined : _user);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* 构建状态快照,复用 cachedActions 保证方法引用稳定性
|
|
138
|
-
* @param permission - 权限数据
|
|
139
|
-
* @param user - 用户信息
|
|
140
|
-
*/
|
|
141
|
-
_createClass(PermissionStore, [{
|
|
142
|
-
key: "buildState",
|
|
143
|
-
value: function buildState(permission, user) {
|
|
144
|
-
return _objectSpread(_objectSpread({}, this.cachedActions), {}, {
|
|
145
|
-
permission: permission,
|
|
146
|
-
user: user,
|
|
147
|
-
isGranted: !!permission
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
}]);
|
|
151
|
-
return PermissionStore;
|
|
152
|
-
}();
|
|
153
|
-
/**
|
|
154
|
-
* 创建权限 Store 实例
|
|
155
|
-
* 返回 PermissionStoreInternal 类型(包含完整接口)
|
|
156
|
-
* 若业务侧不希望在 IDE 中看到 React 内部方法,可将变量显式声明为 PermissionStorePublic:
|
|
157
|
-
* const store: PermissionStorePublic<P, U> = createPermissionStore(adapter)
|
|
158
|
-
*
|
|
159
|
-
* @param {PermissionAdapter<P, U>} adapter - 权限数据持久化适配器
|
|
160
|
-
* @returns {PermissionStoreInternal<P, U>} 权限 Store 实例
|
|
161
|
-
*/
|
|
162
|
-
function createPermissionStore(adapter) {
|
|
163
|
-
return new PermissionStore(adapter);
|
|
164
|
-
}
|
|
1
|
+
'use strict';var _0x208245=_0x2a34;(function(_0x7a777d,_0x3d0323){var _0x3e2382=_0x2a34,_0x2d06d6=_0x7a777d();while(!![]){try{var _0xbf4d5a=parseInt(_0x3e2382(0x104))/0x1*(-parseInt(_0x3e2382(0xf5))/0x2)+parseInt(_0x3e2382(0x10a))/0x3+parseInt(_0x3e2382(0xfe))/0x4*(parseInt(_0x3e2382(0xea))/0x5)+parseInt(_0x3e2382(0x113))/0x6*(parseInt(_0x3e2382(0xf0))/0x7)+-parseInt(_0x3e2382(0x10e))/0x8*(parseInt(_0x3e2382(0x10f))/0x9)+parseInt(_0x3e2382(0xe9))/0xa+parseInt(_0x3e2382(0x115))/0xb*(-parseInt(_0x3e2382(0xf3))/0xc);if(_0xbf4d5a===_0x3d0323)break;else _0x2d06d6['push'](_0x2d06d6['shift']());}catch(_0x47ae77){_0x2d06d6['push'](_0x2d06d6['shift']());}}}(_0x5148,0x23f74));Object[_0x208245(0xfa)](exports,'__esModule',{'value':!![]}),exports[_0x208245(0xf2)]=createPermissionStore;function _0x5148(){var _0x264924=['mJi5mNb6qKPeuG','z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9YCW','mtK4BMjey3zf','Bg9HzfbLCM1PC3nPB24','A2v5','ywrK','ChjVDg90ExbL','zgvMAw5LuhjVCgvYDhK','z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9Y','yNvPBgrtDgf0zq','DxbKyxrLvxnLCG','ndyZndH2wuXHrLu','zgvZDhjVEq','Bg9HzfvZzxi','yxbWBhK','D3jPDgfIBgu','C2f2zvvZzxi','nda0BgXkvw9s','y2XLyxi','z2v0u3rHDgu','DxnLCG','ywrHChrLCG','C3LTyM9S','mZqZmte2zvnOreze','zgvSzxrL','C3rYAw5N','zgvUAwvK','ndbXzLrUAg4','ntK4odzTAxnmCxK','y2fJAgvKqwn0Aw9UCW','C3vIC2nYAwjL','z3jHBNrLza','mZKWotburgXevLe','DMfSDwu','mJi3ntLus3HZt1i','z2v0t3DUuhjVCgvYDhLtEw1IB2XZ','C2f2zvbLCM1PC3nPB24','zw51BwvYywjSzq','DxbKyxrLugvYBwLZC2LVBG','z2v0u25HChnOB3q','B2jQzwn0','AxrLCMf0B3i','BgvUz3rO','zM9YrwfJAa','C3rHDgu','mJuZnZC2mgDmCw14Eq','ndvAvMvMAKy','q2fUBM90ignHBgWGysbJBgfZCYbHCYbHigz1BMn0Aw9U','zw1PDenOyw5Nzq','zgvMyxvSDa','CgvYBwLZC2LVBG','zNvUy3rPB24','mtu0tgHRAuXl','BgLZDgvUzxjZ','y3jLyxrLugvYBwLZC2LVBLn0B3jL'];_0x5148=function(){return _0x264924;};return _0x5148();}function _typeof(_0x345ebe){'@babel/helpers - typeof';var _0x2ef022=_0x208245;return _typeof=_0x2ef022(0xef)==typeof Symbol&&_0x2ef022(0x109)==typeof Symbol[_0x2ef022(0xe5)]?function(_0xb70e05){return typeof _0xb70e05;}:function(_0x2f2e52){var _0x4200ab=_0x2ef022;return _0x2f2e52&&_0x4200ab(0xef)==typeof Symbol&&_0x2f2e52['constructor']===Symbol&&_0x2f2e52!==Symbol[_0x4200ab(0xf9)]?_0x4200ab(0x109):typeof _0x2f2e52;},_typeof(_0x345ebe);}function ownKeys(_0xec7d45,_0x57139d){var _0x39d806=_0x208245,_0x3f4e92=Object['keys'](_0xec7d45);if(Object[_0x39d806(0x116)]){var _0x2478f4=Object[_0x39d806(0x116)](_0xec7d45);_0x57139d&&(_0x2478f4=_0x2478f4['filter'](function(_0xe873f5){var _0x604e39=_0x39d806;return Object[_0x604e39(0xfb)](_0xec7d45,_0xe873f5)['enumerable'];})),_0x3f4e92['push'][_0x39d806(0x101)](_0x3f4e92,_0x2478f4);}return _0x3f4e92;}function _objectSpread(_0x4d7e5a){var _0x4e7438=_0x208245;for(var _0x5a342b=0x1;_0x5a342b<arguments[_0x4e7438(0xe6)];_0x5a342b++){var _0x59ef9e=null!=arguments[_0x5a342b]?arguments[_0x5a342b]:{};_0x5a342b%0x2?ownKeys(Object(_0x59ef9e),!0x0)[_0x4e7438(0xe7)](function(_0x54c6d4){_defineProperty(_0x4d7e5a,_0x54c6d4,_0x59ef9e[_0x54c6d4]);}):Object[_0x4e7438(0xf4)]?Object['defineProperties'](_0x4d7e5a,Object[_0x4e7438(0xf4)](_0x59ef9e)):ownKeys(Object(_0x59ef9e))[_0x4e7438(0xe7)](function(_0x598004){var _0x5c1bda=_0x4e7438;Object[_0x5c1bda(0xfa)](_0x4d7e5a,_0x598004,Object['getOwnPropertyDescriptor'](_0x59ef9e,_0x598004));});}return _0x4d7e5a;}function _classCallCheck(_0x42d336,Constructor){var _0x3a6d8f=_0x208245;if(!(_0x42d336 instanceof Constructor))throw new TypeError(_0x3a6d8f(0xeb));}function _defineProperties(_0x5e5538,_0x16d079){var _0x6e62ba=_0x208245;for(var _0x40b432=0x0;_0x40b432<_0x16d079[_0x6e62ba(0xe6)];_0x40b432++){var _0x457b20=_0x16d079[_0x40b432];_0x457b20[_0x6e62ba(0x118)]=_0x457b20[_0x6e62ba(0x118)]||![],_0x457b20['configurable']=!![];if(_0x6e62ba(0x114)in _0x457b20)_0x457b20[_0x6e62ba(0x102)]=!![];Object['defineProperty'](_0x5e5538,_toPropertyKey(_0x457b20[_0x6e62ba(0xf7)]),_0x457b20);}}function _0x2a34(_0x46dcf2,_0x48dbe3){_0x46dcf2=_0x46dcf2-0xe3;var _0x514807=_0x5148();var _0x2a3468=_0x514807[_0x46dcf2];if(_0x2a34['ZuqPcr']===undefined){var _0x14eb30=function(_0x3de3f0){var _0x3da92b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x345ebe='',_0xb70e05='';for(var _0x2f2e52=0x0,_0xec7d45,_0x57139d,_0x3f4e92=0x0;_0x57139d=_0x3de3f0['charAt'](_0x3f4e92++);~_0x57139d&&(_0xec7d45=_0x2f2e52%0x4?_0xec7d45*0x40+_0x57139d:_0x57139d,_0x2f2e52++%0x4)?_0x345ebe+=String['fromCharCode'](0xff&_0xec7d45>>(-0x2*_0x2f2e52&0x6)):0x0){_0x57139d=_0x3da92b['indexOf'](_0x57139d);}for(var _0x2478f4=0x0,_0xe873f5=_0x345ebe['length'];_0x2478f4<_0xe873f5;_0x2478f4++){_0xb70e05+='%'+('00'+_0x345ebe['charCodeAt'](_0x2478f4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xb70e05);};_0x2a34['MbiZvT']=_0x14eb30,_0x2a34['ehucnI']={},_0x2a34['ZuqPcr']=!![];}var _0x423366=_0x514807[0x0],_0x121e6d=_0x46dcf2+_0x423366,_0x7eacb9=_0x2a34['ehucnI'][_0x121e6d];return!_0x7eacb9?(_0x2a3468=_0x2a34['MbiZvT'](_0x2a3468),_0x2a34['ehucnI'][_0x121e6d]=_0x2a3468):_0x2a3468=_0x7eacb9,_0x2a3468;}function _createClass(Constructor,_0x57bc6f,_0x41944a){var _0x468cab=_0x208245;if(_0x57bc6f)_defineProperties(Constructor[_0x468cab(0xf9)],_0x57bc6f);if(_0x41944a)_defineProperties(Constructor,_0x41944a);return Object['defineProperty'](Constructor,'prototype',{'writable':![]}),Constructor;}function _defineProperty(_0x2dbd19,_0x1bdf1a,_0x1f2d91){var _0x5a2a1c=_0x208245;return _0x1bdf1a=_toPropertyKey(_0x1bdf1a),_0x1bdf1a in _0x2dbd19?Object[_0x5a2a1c(0xfa)](_0x2dbd19,_0x1bdf1a,{'value':_0x1f2d91,'enumerable':!![],'configurable':!![],'writable':!![]}):_0x2dbd19[_0x1bdf1a]=_0x1f2d91,_0x2dbd19;}function _toPropertyKey(_0x321487){var _0x1b900a=_0x208245,_0x2e664e=_toPrimitive(_0x321487,_0x1b900a(0x10c));return _0x1b900a(0x109)==_typeof(_0x2e664e)?_0x2e664e:String(_0x2e664e);}function _toPrimitive(_0x50ee44,_0x2a4da4){var _0xdb01a7=_0x208245;if('object'!=_typeof(_0x50ee44)||!_0x50ee44)return _0x50ee44;var _0x21032e=_0x50ee44[Symbol['toPrimitive']];if(void 0x0!==_0x21032e){var _0x3d91e1=_0x21032e['call'](_0x50ee44,_0x2a4da4||_0xdb01a7(0xed));if(_0xdb01a7(0xe4)!=_typeof(_0x3d91e1))return _0x3d91e1;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xdb01a7(0x10c)===_0x2a4da4?String:Number)(_0x50ee44);}var PermissionStore=(function(){function PermissionStore(_0x960443){var _0x5320e5=_0x2a34,_0x1bd48=this;_classCallCheck(this,PermissionStore),_defineProperty(this,_0x5320e5(0xe8),void 0x0),_defineProperty(this,_0x5320e5(0xf1),new Set()),_defineProperty(this,_0x5320e5(0x110),void 0x0),_defineProperty(this,_0x5320e5(0xe3),function(){var _0x106677=_0x5320e5;return _0x1bd48[_0x106677(0xe8)];}),_defineProperty(this,_0x5320e5(0x106),function(){var _0x33b251=_0x5320e5;return _0x1bd48[_0x33b251(0xe8)];}),_defineProperty(this,_0x5320e5(0x111),function(_0x2c807a){var _0x1bbbc5=_0x5320e5;return _0x1bd48[_0x1bbbc5(0xf1)][_0x1bbbc5(0xf8)](_0x2c807a),function(){var _0x3f7091=_0x1bbbc5;return _0x1bd48['listeners'][_0x3f7091(0x10b)](_0x2c807a);};}),_defineProperty(this,_0x5320e5(0xec),function(){var _0x2fe81c=_0x5320e5;_0x1bd48[_0x2fe81c(0xf1)][_0x2fe81c(0xe7)](function(_0x3eeb98){return _0x3eeb98();});}),_defineProperty(this,_0x5320e5(0x112),function(_0x4e6e10,_0x25e62c){var _0x3a3f56=_0x5320e5;_0x1bd48[_0x3a3f56(0x108)][_0x3a3f56(0x117)](_0x4e6e10),_0x25e62c!==undefined&&_0x1bd48[_0x3a3f56(0x108)][_0x3a3f56(0x103)](_0x25e62c),_0x1bd48['state']=_0x1bd48['buildState'](_0x4e6e10,_0x25e62c),_0x1bd48[_0x3a3f56(0xec)]();}),_defineProperty(this,_0x5320e5(0x10d),function(){var _0x409875=_0x5320e5;_0x1bd48['adapter'][_0x409875(0x105)](),_0x1bd48[_0x409875(0xe8)]=_0x1bd48[_0x409875(0xfc)](),_0x1bd48[_0x409875(0xec)]();}),_defineProperty(this,_0x5320e5(0xfd),function(_0x3e7f99){var _0x272d92=_0x5320e5,_0x3d5c12=_objectSpread(_objectSpread({},_0x1bd48[_0x272d92(0xe8)]['user']),_0x3e7f99);_0x1bd48[_0x272d92(0x108)][_0x272d92(0x103)](_0x3d5c12),_0x1bd48[_0x272d92(0xe8)]=_0x1bd48[_0x272d92(0xfc)](_0x1bd48[_0x272d92(0xe8)][_0x272d92(0xee)],_0x3d5c12),_0x1bd48[_0x272d92(0xec)]();}),_defineProperty(this,_0x5320e5(0x119),function(_0x5e69dc){var _0x37371e=_0x5320e5,_0x5686f2=_objectSpread(_objectSpread({},_0x1bd48[_0x37371e(0xe8)][_0x37371e(0xee)]),_0x5e69dc);_0x1bd48[_0x37371e(0x108)]['savePermission'](_0x5686f2),_0x1bd48[_0x37371e(0xe8)]=_0x1bd48[_0x37371e(0xfc)](_0x5686f2,_0x1bd48[_0x37371e(0xe8)][_0x37371e(0x107)]),_0x1bd48['emitChange']();}),_defineProperty(this,_0x5320e5(0xff),function(){var _0x5ede62=_0x5320e5;_0x1bd48['listeners'][_0x5ede62(0x105)]();}),this[_0x5320e5(0x108)]=_0x960443,this['cachedActions']={'granted':this[_0x5320e5(0x112)],'denied':this['denied'],'updateUser':this[_0x5320e5(0xfd)],'updatePermission':this[_0x5320e5(0x119)]};var _0x395210=_0x960443[_0x5320e5(0xf6)](),_0x2a23fa=_0x960443[_0x5320e5(0x100)]();this[_0x5320e5(0xe8)]=this['buildState'](_0x395210 instanceof Promise?undefined:_0x395210,_0x2a23fa instanceof Promise?undefined:_0x2a23fa);}return _createClass(PermissionStore,[{'key':'buildState','value':function _0x59deae(_0x89aa22,_0x503998){var _0x3345c9=_0x2a34;return _objectSpread(_objectSpread({},this[_0x3345c9(0x110)]),{},{'permission':_0x89aa22,'user':_0x503998,'isGranted':!!_0x89aa22});}}]),PermissionStore;}());function createPermissionStore(_0x48dd0b){return new PermissionStore(_0x48dd0b);}
|
|
@@ -1,145 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _components = require("@tarojs/components");
|
|
9
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
-
require("../../styles/index.css");
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
var _excluded = ["children", "clamp", "width", "height", "lineHeight", "bold", "fontSize", "color", "margin", "padding", "style", "bgColor", "mHorizontal", "mVertical", "pHorizontal", "pVertical", "mTop", "mBottom", "mLeft", "mRight", "pTop", "pBottom", "pLeft", "pRight", "className", "textAlign", "decoration", "selectable", "skeleton"];
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15
|
-
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 && Object.prototype.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; }
|
|
16
|
-
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); }
|
|
17
|
-
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; }
|
|
18
|
-
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; }
|
|
19
|
-
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; }
|
|
20
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
21
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
22
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
23
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
24
|
-
/**
|
|
25
|
-
* 处理 px 转换
|
|
26
|
-
* @param val px|string|undefined
|
|
27
|
-
* @returns px|string|undefined
|
|
28
|
-
*/
|
|
29
|
-
var px = function px(val) {
|
|
30
|
-
if (val === undefined || val === null || val === '') return undefined;
|
|
31
|
-
return typeof val === 'number' || !isNaN(Number(val)) ? "".concat(val, "px") : String(val);
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* taro weapp Text Component (Tailwind 版)
|
|
36
|
-
* - clamp: number|undefined 溢出显示行数
|
|
37
|
-
* - width: px|string|undefined 宽度
|
|
38
|
-
* - height: px|string|undefined 高度
|
|
39
|
-
* - fontSize: px|string|undefined 字体大小
|
|
40
|
-
* - lineHeight: px|string|undefined 行高
|
|
41
|
-
* - bold: boolean|number|string 字体粗细
|
|
42
|
-
* - color: string 字体颜色
|
|
43
|
-
* - bgColor: string 背景颜色
|
|
44
|
-
* - textAlign: 'left' | 'center' | 'right' | 'justify' 文本对齐方式
|
|
45
|
-
* - decoration: 'underline' | 'line-through' | 'none' 文本装饰
|
|
46
|
-
* - selectable: boolean 是否可选择
|
|
47
|
-
* - skeleton: boolean 是否为骨架屏
|
|
48
|
-
* - style: CSSProperties 自定义样式
|
|
49
|
-
* - children: ReactNode 子元素
|
|
50
|
-
* - margin: px|string|undefined 外边距
|
|
51
|
-
* - mTop: px|string|undefined 上外边距
|
|
52
|
-
* - mBottom: px|string|undefined 下外边距
|
|
53
|
-
* - mLeft: px|string|undefined 左外边距
|
|
54
|
-
* - mRight: px|string|undefined 右外边距
|
|
55
|
-
* - mHorizontal: px|string|undefined 水平外边距
|
|
56
|
-
* - mVertical: px|string|undefined 垂直外边距
|
|
57
|
-
* - padding: px|string|undefined 内边距
|
|
58
|
-
* - pTop: px|string|undefined 上内边距
|
|
59
|
-
* - pBottom: px|string|undefined 下内边距
|
|
60
|
-
* - pLeft: px|string|undefined 左内边距
|
|
61
|
-
* - pRight: px|string|undefined 右内边距
|
|
62
|
-
* - pHorizontal: px|string|undefined 水平内边距
|
|
63
|
-
* - pVertical: px|string|undefined 垂直内边距
|
|
64
|
-
* - rest: Text组件的其他属性
|
|
65
|
-
*/
|
|
66
|
-
var Text = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
67
|
-
var children = props.children,
|
|
68
|
-
clamp = props.clamp,
|
|
69
|
-
width = props.width,
|
|
70
|
-
height = props.height,
|
|
71
|
-
lineHeight = props.lineHeight,
|
|
72
|
-
bold = props.bold,
|
|
73
|
-
fontSize = props.fontSize,
|
|
74
|
-
color = props.color,
|
|
75
|
-
margin = props.margin,
|
|
76
|
-
padding = props.padding,
|
|
77
|
-
_props$style = props.style,
|
|
78
|
-
style = _props$style === void 0 ? {} : _props$style,
|
|
79
|
-
bgColor = props.bgColor,
|
|
80
|
-
mHorizontal = props.mHorizontal,
|
|
81
|
-
mVertical = props.mVertical,
|
|
82
|
-
pHorizontal = props.pHorizontal,
|
|
83
|
-
pVertical = props.pVertical,
|
|
84
|
-
mTop = props.mTop,
|
|
85
|
-
mBottom = props.mBottom,
|
|
86
|
-
mLeft = props.mLeft,
|
|
87
|
-
mRight = props.mRight,
|
|
88
|
-
pTop = props.pTop,
|
|
89
|
-
pBottom = props.pBottom,
|
|
90
|
-
pLeft = props.pLeft,
|
|
91
|
-
pRight = props.pRight,
|
|
92
|
-
className = props.className,
|
|
93
|
-
textAlign = props.textAlign,
|
|
94
|
-
decoration = props.decoration,
|
|
95
|
-
selectable = props.selectable,
|
|
96
|
-
skeleton = props.skeleton,
|
|
97
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
98
|
-
var textClassNames = (0, _classnames.default)(className, {
|
|
99
|
-
'zero-line-clamp-1': clamp === 1,
|
|
100
|
-
'zero-line-clamp-2': clamp === 2,
|
|
101
|
-
'zero-line-clamp-3': clamp === 3,
|
|
102
|
-
'zero-line-clamp-4': clamp === 4,
|
|
103
|
-
'zero-line-clamp-5': clamp === 5,
|
|
104
|
-
'zero-line-clamp-6': clamp === 6,
|
|
105
|
-
'zero-animate-pulse zero-bg-gray-200 zero-text-transparent': skeleton
|
|
106
|
-
});
|
|
107
|
-
var textStyle = _objectSpread({
|
|
108
|
-
width: px(width),
|
|
109
|
-
height: px(height),
|
|
110
|
-
margin: px(margin),
|
|
111
|
-
marginTop: px(mTop !== null && mTop !== void 0 ? mTop : mVertical),
|
|
112
|
-
marginBottom: px(mBottom !== null && mBottom !== void 0 ? mBottom : mVertical),
|
|
113
|
-
marginLeft: px(mLeft !== null && mLeft !== void 0 ? mLeft : mHorizontal),
|
|
114
|
-
marginRight: px(mRight !== null && mRight !== void 0 ? mRight : mHorizontal),
|
|
115
|
-
padding: px(padding),
|
|
116
|
-
paddingTop: px(pTop !== null && pTop !== void 0 ? pTop : pVertical),
|
|
117
|
-
paddingBottom: px(pBottom !== null && pBottom !== void 0 ? pBottom : pVertical),
|
|
118
|
-
paddingLeft: px(pLeft !== null && pLeft !== void 0 ? pLeft : pHorizontal),
|
|
119
|
-
paddingRight: px(pRight !== null && pRight !== void 0 ? pRight : pHorizontal),
|
|
120
|
-
fontSize: px(fontSize),
|
|
121
|
-
color: skeleton ? 'transparent' : color,
|
|
122
|
-
backgroundColor: bgColor,
|
|
123
|
-
lineHeight: px(lineHeight),
|
|
124
|
-
fontWeight: typeof bold === 'boolean' ? bold ? 'bold' : 'normal' : bold,
|
|
125
|
-
textAlign: textAlign,
|
|
126
|
-
textDecoration: decoration
|
|
127
|
-
}, _typeof(style) === 'object' ? style : {});
|
|
128
|
-
var cleanStyle = {};
|
|
129
|
-
for (var key in textStyle) {
|
|
130
|
-
if (textStyle[key] !== undefined && textStyle[key] !== null) {
|
|
131
|
-
// @ts-ignore
|
|
132
|
-
cleanStyle[key] = textStyle[key];
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Text, _objectSpread(_objectSpread({
|
|
136
|
-
ref: ref,
|
|
137
|
-
style: cleanStyle,
|
|
138
|
-
className: textClassNames,
|
|
139
|
-
selectable: selectable
|
|
140
|
-
}, rest), {}, {
|
|
141
|
-
children: children
|
|
142
|
-
}));
|
|
143
|
-
});
|
|
144
|
-
Text.displayName = 'Text';
|
|
145
|
-
var _default = exports.default = Text;
|
|
1
|
+
'use strict';var _0x2b9d7b=_0x5b16;(function(_0xc1c87,_0x289097){var _0x51ad0c=_0x5b16,_0x54c354=_0xc1c87();while(!![]){try{var _0x1fd5c3=-parseInt(_0x51ad0c(0xcc))/0x1+-parseInt(_0x51ad0c(0xe5))/0x2*(parseInt(_0x51ad0c(0xf8))/0x3)+-parseInt(_0x51ad0c(0xd2))/0x4+parseInt(_0x51ad0c(0xe0))/0x5+parseInt(_0x51ad0c(0xf3))/0x6+parseInt(_0x51ad0c(0xc6))/0x7*(parseInt(_0x51ad0c(0xc0))/0x8)+-parseInt(_0x51ad0c(0xc9))/0x9*(parseInt(_0x51ad0c(0xb4))/0xa);if(_0x1fd5c3===_0x289097)break;else _0x54c354['push'](_0x54c354['shift']());}catch(_0x20f33a){_0x54c354['push'](_0x54c354['shift']());}}}(_0x55db,0xdc918));Object['defineProperty'](exports,_0x2b9d7b(0xb9),{'value':!![]}),exports[_0x2b9d7b(0xbd)]=void 0x0;var _react=_interopRequireWildcard(require(_0x2b9d7b(0xb5))),_components=require(_0x2b9d7b(0xee)),_classnames=_interopRequireDefault(require(_0x2b9d7b(0xbe)));require(_0x2b9d7b(0xe4));var _jsxRuntime=require('react/jsx-runtime'),_excluded=['children','clamp',_0x2b9d7b(0xd8),'height',_0x2b9d7b(0xb8),_0x2b9d7b(0xfb),_0x2b9d7b(0xd5),_0x2b9d7b(0xdb),_0x2b9d7b(0xea),_0x2b9d7b(0xc8),_0x2b9d7b(0xf0),_0x2b9d7b(0xca),_0x2b9d7b(0xce),_0x2b9d7b(0xe2),_0x2b9d7b(0xd4),_0x2b9d7b(0xd6),_0x2b9d7b(0xf5),'mBottom',_0x2b9d7b(0xdf),'mRight','pTop',_0x2b9d7b(0xcb),_0x2b9d7b(0xef),_0x2b9d7b(0xe7),_0x2b9d7b(0xb7),_0x2b9d7b(0xed),_0x2b9d7b(0xe3),'selectable',_0x2b9d7b(0xd0)];function _interopRequireDefault(_0x43af1a){var _0x55e0b2=_0x2b9d7b;return _0x43af1a&&_0x43af1a[_0x55e0b2(0xb9)]?_0x43af1a:{'default':_0x43af1a};}function _getRequireWildcardCache(_0x2cae4b){if('function'!=typeof WeakMap)return null;var _0x532229=new WeakMap(),_0x22c91d=new WeakMap();return(_getRequireWildcardCache=function _0x4f7d30(_0x3af8a9){return _0x3af8a9?_0x22c91d:_0x532229;})(_0x2cae4b);}function _interopRequireWildcard(_0x36e3be,_0x1de360){var _0x242ed4=_0x2b9d7b;if(!_0x1de360&&_0x36e3be&&_0x36e3be[_0x242ed4(0xb9)])return _0x36e3be;if(null===_0x36e3be||_0x242ed4(0xd7)!=_typeof(_0x36e3be)&&'function'!=typeof _0x36e3be)return{'default':_0x36e3be};var _0x3096bb=_getRequireWildcardCache(_0x1de360);if(_0x3096bb&&_0x3096bb[_0x242ed4(0xf7)](_0x36e3be))return _0x3096bb[_0x242ed4(0xdc)](_0x36e3be);var _0x3c8d94={'__proto__':null},_0x501e44=Object[_0x242ed4(0xb3)]&&Object[_0x242ed4(0xf6)];for(var _0x4d8696 in _0x36e3be)if('default'!==_0x4d8696&&Object[_0x242ed4(0xbb)][_0x242ed4(0xda)][_0x242ed4(0xec)](_0x36e3be,_0x4d8696)){var _0x3306f0=_0x501e44?Object[_0x242ed4(0xf6)](_0x36e3be,_0x4d8696):null;_0x3306f0&&(_0x3306f0[_0x242ed4(0xdc)]||_0x3306f0[_0x242ed4(0xbf)])?Object[_0x242ed4(0xb3)](_0x3c8d94,_0x4d8696,_0x3306f0):_0x3c8d94[_0x4d8696]=_0x36e3be[_0x4d8696];}return _0x3c8d94[_0x242ed4(0xbd)]=_0x36e3be,_0x3096bb&&_0x3096bb[_0x242ed4(0xbf)](_0x36e3be,_0x3c8d94),_0x3c8d94;}function _typeof(_0x15ba38){'@babel/helpers - typeof';var _0x5a942a=_0x2b9d7b;return _typeof='function'==typeof Symbol&&_0x5a942a(0xfa)==typeof Symbol['iterator']?function(_0x27b31d){return typeof _0x27b31d;}:function(_0x8b7691){var _0xf3c3c3=_0x5a942a;return _0x8b7691&&'function'==typeof Symbol&&_0x8b7691[_0xf3c3c3(0xdd)]===Symbol&&_0x8b7691!==Symbol[_0xf3c3c3(0xbb)]?_0xf3c3c3(0xfa):typeof _0x8b7691;},_typeof(_0x15ba38);}function ownKeys(_0x5de00e,_0x440955){var _0x344120=_0x2b9d7b,_0x1cc314=Object[_0x344120(0xbc)](_0x5de00e);if(Object[_0x344120(0xcf)]){var _0x30397f=Object[_0x344120(0xcf)](_0x5de00e);_0x440955&&(_0x30397f=_0x30397f['filter'](function(_0x56f45c){var _0x4287a7=_0x344120;return Object[_0x4287a7(0xf6)](_0x5de00e,_0x56f45c)['enumerable'];})),_0x1cc314[_0x344120(0xf9)][_0x344120(0xf4)](_0x1cc314,_0x30397f);}return _0x1cc314;}function _objectSpread(_0x9ee5d1){var _0x3e211b=_0x2b9d7b;for(var _0x1b8569=0x1;_0x1b8569<arguments[_0x3e211b(0xe6)];_0x1b8569++){var _0x1fe2ce=null!=arguments[_0x1b8569]?arguments[_0x1b8569]:{};_0x1b8569%0x2?ownKeys(Object(_0x1fe2ce),!0x0)[_0x3e211b(0xc1)](function(_0x193603){_defineProperty(_0x9ee5d1,_0x193603,_0x1fe2ce[_0x193603]);}):Object['getOwnPropertyDescriptors']?Object[_0x3e211b(0xf2)](_0x9ee5d1,Object[_0x3e211b(0xf1)](_0x1fe2ce)):ownKeys(Object(_0x1fe2ce))[_0x3e211b(0xc1)](function(_0x875ea6){var _0x5134d3=_0x3e211b;Object[_0x5134d3(0xb3)](_0x9ee5d1,_0x875ea6,Object[_0x5134d3(0xf6)](_0x1fe2ce,_0x875ea6));});}return _0x9ee5d1;}function _defineProperty(_0x283fbe,_0x12f148,_0x242ff8){return _0x12f148=_toPropertyKey(_0x12f148),_0x12f148 in _0x283fbe?Object['defineProperty'](_0x283fbe,_0x12f148,{'value':_0x242ff8,'enumerable':!![],'configurable':!![],'writable':!![]}):_0x283fbe[_0x12f148]=_0x242ff8,_0x283fbe;}function _toPropertyKey(_0x2fbfd9){var _0x317c57=_0x2b9d7b,_0x3c24de=_toPrimitive(_0x2fbfd9,'string');return _0x317c57(0xfa)==_typeof(_0x3c24de)?_0x3c24de:String(_0x3c24de);}function _toPrimitive(_0x12ae9d,_0x415fa4){var _0x350d29=_0x2b9d7b;if('object'!=_typeof(_0x12ae9d)||!_0x12ae9d)return _0x12ae9d;var _0xc2c26d=_0x12ae9d[Symbol[_0x350d29(0xc3)]];if(void 0x0!==_0xc2c26d){var _0x5ab855=_0xc2c26d['call'](_0x12ae9d,_0x415fa4||_0x350d29(0xbd));if(_0x350d29(0xd7)!=_typeof(_0x5ab855))return _0x5ab855;throw new TypeError(_0x350d29(0xc4));}return(_0x350d29(0xeb)===_0x415fa4?String:Number)(_0x12ae9d);}function _objectWithoutProperties(_0x3e3975,_0x59b9a7){var _0x16c177=_0x2b9d7b;if(_0x3e3975==null)return{};var _0x45b56f=_objectWithoutPropertiesLoose(_0x3e3975,_0x59b9a7),_0x491002,_0x54cc17;if(Object['getOwnPropertySymbols']){var _0x258045=Object['getOwnPropertySymbols'](_0x3e3975);for(_0x54cc17=0x0;_0x54cc17<_0x258045[_0x16c177(0xe6)];_0x54cc17++){_0x491002=_0x258045[_0x54cc17];if(_0x59b9a7['indexOf'](_0x491002)>=0x0)continue;if(!Object['prototype']['propertyIsEnumerable'][_0x16c177(0xec)](_0x3e3975,_0x491002))continue;_0x45b56f[_0x491002]=_0x3e3975[_0x491002];}}return _0x45b56f;}function _objectWithoutPropertiesLoose(_0x1a4644,_0x7289bf){var _0x598c3e=_0x2b9d7b;if(_0x1a4644==null)return{};var _0x914040={},_0x2093b9=Object[_0x598c3e(0xbc)](_0x1a4644),_0x9f4d0f,_0x200e8d;for(_0x200e8d=0x0;_0x200e8d<_0x2093b9[_0x598c3e(0xe6)];_0x200e8d++){_0x9f4d0f=_0x2093b9[_0x200e8d];if(_0x7289bf[_0x598c3e(0xc7)](_0x9f4d0f)>=0x0)continue;_0x914040[_0x9f4d0f]=_0x1a4644[_0x9f4d0f];}return _0x914040;}function _0x55db(){var _0x74327b=['B2jQzwn0','D2LKDgG','zM9YD2fYzfjLzG','AgfZt3DUuhjVCgvYDhK','y29SB3i','z2v0','y29UC3rYDwn0B3i','DhjHBNnWyxjLBNq','BuXLzNq','nti2otyWnxfjtMvwyq','vgv4Da','BvzLCNrPy2fS','zgvJB3jHDgLVBG','lI4VlI4VC3r5BgvZl2LUzgv4lMnZCW','mKTJBLPUCq','BgvUz3rO','CfjPz2H0','BujVDhrVBq','ANn4','BwfYz2LU','C3rYAw5N','y2fSBa','Dgv4DefSAwDU','qhrHCM9QCY9JB21WB25LBNrZ','CeXLzNq','C3r5Bgu','z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9YCW','zgvMAw5LuhjVCgvYDgLLCW','mti1nJuZmMztA3DJza','yxbWBhK','BvrVCa','z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9Y','AgfZ','nZe5nJC5B0DWB1DK','ChvZAa','C3LTyM9S','yM9Sza','zgvMAw5LuhjVCgvYDhK','mteYnduYmgXuCM16CG','CMvHy3q','y2XHBxa','y2XHC3noyw1L','BgLUzuHLAwDODa','x19LC01VzhvSzq','y29Uy2f0','ChjVDg90ExbL','A2v5CW','zgvMyxvSDa','y2XHC3nUyw1LCW','C2v0','mtqYmJu2ntz2D1zxy1K','zM9YrwfJAa','yM9VBgvHBG','Dg9qCMLTAxrPDMu','qeb0B1bYAw1PDgL2zsbTDxn0ihjLDhvYBIbHihbYAw1PDgL2zsb2ywX1zs4','BvjPz2H0','n05vBhDYta','Aw5KzxHpzG','CgfKzgLUzW','mtH6Afzlq2O','yMDdB2XVCG','CejVDhrVBq','otyYmZC1v2XhteHX','BNvTyMvY','BuHVCML6B250ywW','z2v0t3DUuhjVCgvYDhLtEw1IB2XZ','C2TLBgv0B24','BM9YBwfS','mJG0mZCYmeLct3HpDq','zgLZCgXHEu5HBwu','CeHVCML6B250ywW','zM9UDfnPEMu','CfzLCNrPy2fS'];_0x55db=function(){return _0x74327b;};return _0x55db();}var px=function px(_0x4e3177){var _0x4ef1f2=_0x2b9d7b;if(_0x4e3177===undefined||_0x4e3177===null||_0x4e3177==='')return undefined;return typeof _0x4e3177===_0x4ef1f2(0xcd)||!isNaN(Number(_0x4e3177))?''[_0x4ef1f2(0xba)](_0x4e3177,'px'):String(_0x4e3177);},Text=(0x0,_react[_0x2b9d7b(0xd9)])(function(_0x4319c0,_0x353abc){var _0x4d9f42=_0x2b9d7b,_0x18a190=_0x4319c0['children'],_0x11091b=_0x4319c0[_0x4d9f42(0xb6)],_0x4b19aa=_0x4319c0[_0x4d9f42(0xd8)],_0x385be5=_0x4319c0['height'],_0x50e3ae=_0x4319c0[_0x4d9f42(0xb8)],_0x153b6c=_0x4319c0[_0x4d9f42(0xfb)],_0xdf1e7c=_0x4319c0[_0x4d9f42(0xd5)],_0x42c089=_0x4319c0[_0x4d9f42(0xdb)],_0x549197=_0x4319c0[_0x4d9f42(0xea)],_0x4f6140=_0x4319c0[_0x4d9f42(0xc8)],_0x8d8444=_0x4319c0['style'],_0x4a4715=_0x8d8444===void 0x0?{}:_0x8d8444,_0xa9bca1=_0x4319c0[_0x4d9f42(0xca)],_0x3240a7=_0x4319c0[_0x4d9f42(0xce)],_0x585cf8=_0x4319c0['mVertical'],_0x58a91b=_0x4319c0['pHorizontal'],_0x1a7516=_0x4319c0[_0x4d9f42(0xd6)],_0x363edd=_0x4319c0[_0x4d9f42(0xf5)],_0x418e09=_0x4319c0[_0x4d9f42(0xe8)],_0x5b34d9=_0x4319c0[_0x4d9f42(0xdf)],_0x21ce43=_0x4319c0[_0x4d9f42(0xc5)],_0x36e420=_0x4319c0['pTop'],_0x32837f=_0x4319c0[_0x4d9f42(0xcb)],_0x712b30=_0x4319c0[_0x4d9f42(0xef)],_0x3584d3=_0x4319c0['pRight'],_0x294e8d=_0x4319c0['className'],_0x1c71b2=_0x4319c0[_0x4d9f42(0xed)],_0x1a9d7f=_0x4319c0[_0x4d9f42(0xe3)],_0x333ecd=_0x4319c0['selectable'],_0xa1f2fe=_0x4319c0[_0x4d9f42(0xd0)],_0x15775f=_objectWithoutProperties(_0x4319c0,_excluded),_0x116d79=(0x0,_classnames[_0x4d9f42(0xbd)])(_0x294e8d,{'zero-line-clamp-1':_0x11091b===0x1,'zero-line-clamp-2':_0x11091b===0x2,'zero-line-clamp-3':_0x11091b===0x3,'zero-line-clamp-4':_0x11091b===0x4,'zero-line-clamp-5':_0x11091b===0x5,'zero-line-clamp-6':_0x11091b===0x6,'zero-animate-pulse\x20zero-bg-gray-200\x20zero-text-transparent':_0xa1f2fe}),_0x3a32a8=_objectSpread({'width':px(_0x4b19aa),'height':px(_0x385be5),'margin':px(_0x549197),'marginTop':px(_0x363edd!==null&&_0x363edd!==void 0x0?_0x363edd:_0x585cf8),'marginBottom':px(_0x418e09!==null&&_0x418e09!==void 0x0?_0x418e09:_0x585cf8),'marginLeft':px(_0x5b34d9!==null&&_0x5b34d9!==void 0x0?_0x5b34d9:_0x3240a7),'marginRight':px(_0x21ce43!==null&&_0x21ce43!==void 0x0?_0x21ce43:_0x3240a7),'padding':px(_0x4f6140),'paddingTop':px(_0x36e420!==null&&_0x36e420!==void 0x0?_0x36e420:_0x1a7516),'paddingBottom':px(_0x32837f!==null&&_0x32837f!==void 0x0?_0x32837f:_0x1a7516),'paddingLeft':px(_0x712b30!==null&&_0x712b30!==void 0x0?_0x712b30:_0x58a91b),'paddingRight':px(_0x3584d3!==null&&_0x3584d3!==void 0x0?_0x3584d3:_0x58a91b),'fontSize':px(_0xdf1e7c),'color':_0xa1f2fe?_0x4d9f42(0xde):_0x42c089,'backgroundColor':_0xa9bca1,'lineHeight':px(_0x50e3ae),'fontWeight':typeof _0x153b6c===_0x4d9f42(0xc2)?_0x153b6c?'bold':_0x4d9f42(0xd1):_0x153b6c,'textAlign':_0x1c71b2,'textDecoration':_0x1a9d7f},_typeof(_0x4a4715)===_0x4d9f42(0xd7)?_0x4a4715:{}),_0x1ff08b={};for(var _0x13a609 in _0x3a32a8){_0x3a32a8[_0x13a609]!==undefined&&_0x3a32a8[_0x13a609]!==null&&(_0x1ff08b[_0x13a609]=_0x3a32a8[_0x13a609]);}return(0x0,_jsxRuntime[_0x4d9f42(0xe9)])(_components[_0x4d9f42(0xe1)],_objectSpread(_objectSpread({'ref':_0x353abc,'style':_0x1ff08b,'className':_0x116d79,'selectable':_0x333ecd},_0x15775f),{},{'children':_0x18a190}));});Text[_0x2b9d7b(0xd3)]=_0x2b9d7b(0xe1);function _0x5b16(_0x44218b,_0x239d13){_0x44218b=_0x44218b-0xb3;var _0x55dbd6=_0x55db();var _0x5b1666=_0x55dbd6[_0x44218b];if(_0x5b16['bqCNco']===undefined){var _0x3235fe=function(_0x194c3d){var _0x507d0d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x43af1a='',_0x2cae4b='';for(var _0x532229=0x0,_0x22c91d,_0x4f7d30,_0x3af8a9=0x0;_0x4f7d30=_0x194c3d['charAt'](_0x3af8a9++);~_0x4f7d30&&(_0x22c91d=_0x532229%0x4?_0x22c91d*0x40+_0x4f7d30:_0x4f7d30,_0x532229++%0x4)?_0x43af1a+=String['fromCharCode'](0xff&_0x22c91d>>(-0x2*_0x532229&0x6)):0x0){_0x4f7d30=_0x507d0d['indexOf'](_0x4f7d30);}for(var _0x36e3be=0x0,_0x1de360=_0x43af1a['length'];_0x36e3be<_0x1de360;_0x36e3be++){_0x2cae4b+='%'+('00'+_0x43af1a['charCodeAt'](_0x36e3be)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2cae4b);};_0x5b16['KXasoU']=_0x3235fe,_0x5b16['ZTnIZH']={},_0x5b16['bqCNco']=!![];}var _0x4cb6c2=_0x55dbd6[0x0],_0x3569c7=_0x44218b+_0x4cb6c2,_0x462158=_0x5b16['ZTnIZH'][_0x3569c7];return!_0x462158?(_0x5b1666=_0x5b16['KXasoU'](_0x5b1666),_0x5b16['ZTnIZH'][_0x3569c7]=_0x5b1666):_0x5b1666=_0x462158,_0x5b1666;}var _default=exports[_0x2b9d7b(0xbd)]=Text;
|
|
@@ -8,7 +8,7 @@ export type MarginType = Record<MarginKeys, string | number>;
|
|
|
8
8
|
export type PaddingKeys = 'pTop' | 'pBottom' | 'pLeft' | 'pRight' | 'padding' | 'pHorizontal' | 'pVertical';
|
|
9
9
|
export type PaddingType = Record<PaddingKeys, string | number>;
|
|
10
10
|
export type PositionValue = 'static' | 'relative' | 'absolute' | 'fixed' | 'sticky';
|
|
11
|
-
export type OverflowValue = 'hidden' | 'visible' | 'scroll';
|
|
11
|
+
export type OverflowValue = 'hidden' | 'visible' | 'scroll' | 'auto';
|
|
12
12
|
export interface UIViewProps {
|
|
13
13
|
full?: boolean;
|
|
14
14
|
row?: boolean;
|
|
@@ -1,227 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _components = require("@tarojs/components");
|
|
9
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
-
require("../../styles/index.css");
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
var _excluded = ["full", "row", "column", "wrap", "flex", "around", "between", "className", "justifyItems", "alignItems", "alignSelf", "gap", "rowGap", "columnGap", "flexShrink", "flexGrow", "flexBasis", "opacity", "hidden", "width", "height", "bgColor", "background", "style", "children", "margin", "mTop", "mBottom", "mLeft", "mRight", "mHorizontal", "mVertical", "padding", "pTop", "pBottom", "pLeft", "pRight", "pHorizontal", "pVertical", "safeArea", "hover", "skeleton", "position", "zIndex", "left", "right", "top", "bottom", "overflow", "radius", "border", "borderColor", "borderWidth", "borderStyle"];
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
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); }
|
|
15
|
-
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; }
|
|
16
|
-
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; }
|
|
17
|
-
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; }
|
|
18
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
19
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
21
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
22
|
-
/**
|
|
23
|
-
* 处理 px 转换
|
|
24
|
-
* @param val px|string|undefined
|
|
25
|
-
* @returns px|string|undefined
|
|
26
|
-
*/
|
|
27
|
-
var px = function px(val) {
|
|
28
|
-
if (val === undefined || val === null || val === '') return undefined;
|
|
29
|
-
return typeof val === 'number' || !isNaN(Number(val)) ? "".concat(val, "px") : String(val);
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* taro weapp View Component (Tailwind 版)
|
|
34
|
-
* - full: 100% 100% 宽度、高度100%
|
|
35
|
-
* - flex: flex: 1 自动适应
|
|
36
|
-
* - row: flex-direction: row 主轴水平
|
|
37
|
-
* - column: flex-direction: column 主轴垂直
|
|
38
|
-
* - wrap: flex-wrap: wrap 换行
|
|
39
|
-
* - around: flex-direction: row justify-content: space-around 主轴平均分布
|
|
40
|
-
* - between: flex-direction: row justify-content: space-between 主轴两端对齐
|
|
41
|
-
* - justifyItems: justify-content 主轴对齐方式
|
|
42
|
-
* - alignItems: align-items 交叉轴对齐方式
|
|
43
|
-
* - alignSelf: align-self 自身对齐方式
|
|
44
|
-
* - gap: gap 间距
|
|
45
|
-
* - rowGap: row-gap 行间距
|
|
46
|
-
* - columnGap: column-gap 列间距
|
|
47
|
-
* - flexShrink: flex-shrink 剩余空间不足时
|
|
48
|
-
* - flexGrow: flex-grow 剩余空间
|
|
49
|
-
* - flexBasis: flex-basis 初始大小
|
|
50
|
-
* - opacity: opacity 透明度
|
|
51
|
-
* - hidden: hidden 隐藏
|
|
52
|
-
* - width: width 宽度
|
|
53
|
-
* - height: height 高度
|
|
54
|
-
* - bgColor: background-color 背景颜色
|
|
55
|
-
* - background: background 背景图片等复杂背景
|
|
56
|
-
* - safeArea: safe-area-inset 安全区域
|
|
57
|
-
* - hover: hover 悬停状态
|
|
58
|
-
* - skeleton: skeleton 骨架屏
|
|
59
|
-
* - position: position 定位
|
|
60
|
-
* - zIndex: z-index 层级
|
|
61
|
-
* - left: left 定位左侧
|
|
62
|
-
* - right: right 定位右侧
|
|
63
|
-
* - top: top 定位上侧
|
|
64
|
-
* - bottom: bottom 定位下侧
|
|
65
|
-
* - overflow: overflow 显示
|
|
66
|
-
* - overflowX: overflow-x 显示
|
|
67
|
-
* - overflowY: overflow-y 显示
|
|
68
|
-
* - radius: border-radius 圆角
|
|
69
|
-
* - border: boolean 边框
|
|
70
|
-
* - borderColor: border-color 边框颜色
|
|
71
|
-
* - borderWidth: border-width 边框宽度
|
|
72
|
-
* - borderStyle: border-style 边框样式
|
|
73
|
-
* - style: style 自定义样式
|
|
74
|
-
* - children: children 子元素
|
|
75
|
-
* - margin: margin 外边距
|
|
76
|
-
* - mTop: margin-top 上外边距
|
|
77
|
-
* - mBottom: margin-bottom 下外边距
|
|
78
|
-
* - mLeft: margin-left 左外边距
|
|
79
|
-
* - mRight: margin-right 右外边距
|
|
80
|
-
* - mHorizontal: margin-horizontal 水平外边距
|
|
81
|
-
* - mVertical: margin-vertical 垂直外边距
|
|
82
|
-
* - padding: padding 内边距
|
|
83
|
-
* - pTop: padding-top 上内边距
|
|
84
|
-
* - pBottom: padding-bottom 下内边距
|
|
85
|
-
* - pLeft: padding-left 左内边距
|
|
86
|
-
* - pRight: padding-right 右内边距
|
|
87
|
-
* - pHorizontal: padding-horizontal 水平内边距
|
|
88
|
-
* - pVertical: padding-vertical 垂直内边距
|
|
89
|
-
* - rest: View组件其他属性
|
|
90
|
-
*/
|
|
91
|
-
var View = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
92
|
-
var full = props.full,
|
|
93
|
-
row = props.row,
|
|
94
|
-
column = props.column,
|
|
95
|
-
wrap = props.wrap,
|
|
96
|
-
flex = props.flex,
|
|
97
|
-
around = props.around,
|
|
98
|
-
between = props.between,
|
|
99
|
-
className = props.className,
|
|
100
|
-
justifyItems = props.justifyItems,
|
|
101
|
-
alignItems = props.alignItems,
|
|
102
|
-
alignSelf = props.alignSelf,
|
|
103
|
-
gap = props.gap,
|
|
104
|
-
rowGap = props.rowGap,
|
|
105
|
-
columnGap = props.columnGap,
|
|
106
|
-
flexShrink = props.flexShrink,
|
|
107
|
-
flexGrow = props.flexGrow,
|
|
108
|
-
flexBasis = props.flexBasis,
|
|
109
|
-
opacity = props.opacity,
|
|
110
|
-
hidden = props.hidden,
|
|
111
|
-
width = props.width,
|
|
112
|
-
height = props.height,
|
|
113
|
-
bgColor = props.bgColor,
|
|
114
|
-
background = props.background,
|
|
115
|
-
_props$style = props.style,
|
|
116
|
-
style = _props$style === void 0 ? {} : _props$style,
|
|
117
|
-
children = props.children,
|
|
118
|
-
margin = props.margin,
|
|
119
|
-
mTop = props.mTop,
|
|
120
|
-
mBottom = props.mBottom,
|
|
121
|
-
mLeft = props.mLeft,
|
|
122
|
-
mRight = props.mRight,
|
|
123
|
-
mHorizontal = props.mHorizontal,
|
|
124
|
-
mVertical = props.mVertical,
|
|
125
|
-
padding = props.padding,
|
|
126
|
-
pTop = props.pTop,
|
|
127
|
-
pBottom = props.pBottom,
|
|
128
|
-
pLeft = props.pLeft,
|
|
129
|
-
pRight = props.pRight,
|
|
130
|
-
pHorizontal = props.pHorizontal,
|
|
131
|
-
pVertical = props.pVertical,
|
|
132
|
-
safeArea = props.safeArea,
|
|
133
|
-
hover = props.hover,
|
|
134
|
-
skeleton = props.skeleton,
|
|
135
|
-
position = props.position,
|
|
136
|
-
zIndex = props.zIndex,
|
|
137
|
-
left = props.left,
|
|
138
|
-
right = props.right,
|
|
139
|
-
top = props.top,
|
|
140
|
-
bottom = props.bottom,
|
|
141
|
-
overflow = props.overflow,
|
|
142
|
-
radius = props.radius,
|
|
143
|
-
border = props.border,
|
|
144
|
-
borderColor = props.borderColor,
|
|
145
|
-
borderWidth = props.borderWidth,
|
|
146
|
-
borderStyle = props.borderStyle,
|
|
147
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
148
|
-
var viewClass = (0, _classnames.default)(className, {
|
|
149
|
-
'zero-flex': true,
|
|
150
|
-
'zero-flex-1': flex,
|
|
151
|
-
'zero-flex-col': column,
|
|
152
|
-
'zero-flex-row': row,
|
|
153
|
-
'zero-flex-wrap': wrap,
|
|
154
|
-
'zero-items-start': alignItems === 'flex-start',
|
|
155
|
-
'zero-items-end': alignItems === 'flex-end',
|
|
156
|
-
'zero-items-center': alignItems === 'center',
|
|
157
|
-
'zero-justify-start': justifyItems === 'flex-start',
|
|
158
|
-
'zero-justify-end': justifyItems === 'flex-end',
|
|
159
|
-
'zero-justify-center': justifyItems === 'center',
|
|
160
|
-
'zero-place-content-around': around === 'content-around',
|
|
161
|
-
'zero-justify-around': around === 'justify-around',
|
|
162
|
-
'zero-justify-between': between,
|
|
163
|
-
'zero-hidden': hidden,
|
|
164
|
-
'zero-animate-pulse zero-bg-gray-200': skeleton
|
|
165
|
-
});
|
|
166
|
-
var getSafeAreaPadding = function getSafeAreaPadding(type, safeAreaVal, userPadding) {
|
|
167
|
-
var isSafe = safeAreaVal === type || safeAreaVal === 'both';
|
|
168
|
-
if (!isSafe) return px(userPadding);
|
|
169
|
-
return userPadding ? "calc(env(safe-area-inset-".concat(type, ") + ").concat(px(userPadding), ")") : "env(safe-area-inset-".concat(type, ")");
|
|
170
|
-
};
|
|
171
|
-
var hasBorder = border || borderColor !== undefined || borderWidth !== undefined;
|
|
172
|
-
var customStyle = _objectSpread({
|
|
173
|
-
width: px(full ? '100%' : width),
|
|
174
|
-
height: px(full ? '100%' : height),
|
|
175
|
-
backgroundColor: bgColor,
|
|
176
|
-
background: background,
|
|
177
|
-
margin: px(margin),
|
|
178
|
-
marginTop: px(mTop !== null && mTop !== void 0 ? mTop : mVertical),
|
|
179
|
-
marginBottom: px(mBottom !== null && mBottom !== void 0 ? mBottom : mVertical),
|
|
180
|
-
marginLeft: px(mLeft !== null && mLeft !== void 0 ? mLeft : mHorizontal),
|
|
181
|
-
marginRight: px(mRight !== null && mRight !== void 0 ? mRight : mHorizontal),
|
|
182
|
-
padding: px(padding),
|
|
183
|
-
paddingTop: getSafeAreaPadding('top', safeArea, pTop !== null && pTop !== void 0 ? pTop : pVertical),
|
|
184
|
-
paddingBottom: getSafeAreaPadding('bottom', safeArea, pBottom !== null && pBottom !== void 0 ? pBottom : pVertical),
|
|
185
|
-
paddingLeft: px(pLeft !== null && pLeft !== void 0 ? pLeft : pHorizontal),
|
|
186
|
-
paddingRight: px(pRight !== null && pRight !== void 0 ? pRight : pHorizontal),
|
|
187
|
-
position: position,
|
|
188
|
-
zIndex: zIndex,
|
|
189
|
-
left: px(left),
|
|
190
|
-
right: px(right),
|
|
191
|
-
top: px(top),
|
|
192
|
-
bottom: px(bottom),
|
|
193
|
-
overflow: overflow,
|
|
194
|
-
borderRadius: px(radius),
|
|
195
|
-
borderWidth: hasBorder ? px(borderWidth !== null && borderWidth !== void 0 ? borderWidth : 1) : undefined,
|
|
196
|
-
borderStyle: hasBorder ? borderStyle !== null && borderStyle !== void 0 ? borderStyle : 'solid' : undefined,
|
|
197
|
-
borderColor: borderColor,
|
|
198
|
-
gap: px(gap),
|
|
199
|
-
rowGap: px(rowGap),
|
|
200
|
-
columnGap: px(columnGap),
|
|
201
|
-
alignSelf: alignSelf,
|
|
202
|
-
flexShrink: flexShrink,
|
|
203
|
-
flexGrow: flexGrow,
|
|
204
|
-
flexBasis: px(flexBasis),
|
|
205
|
-
opacity: opacity,
|
|
206
|
-
display: hidden ? 'none' : undefined,
|
|
207
|
-
color: skeleton ? 'transparent' : undefined
|
|
208
|
-
}, _typeof(style) === 'object' ? style : {});
|
|
209
|
-
var cleanStyle = {};
|
|
210
|
-
for (var key in customStyle) {
|
|
211
|
-
if (customStyle[key] !== undefined && customStyle[key] !== null) {
|
|
212
|
-
// @ts-ignore
|
|
213
|
-
cleanStyle[key] = customStyle[key];
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.View, _objectSpread(_objectSpread({
|
|
217
|
-
ref: ref,
|
|
218
|
-
className: viewClass,
|
|
219
|
-
style: cleanStyle,
|
|
220
|
-
hoverClass: hover ? 'zero:opacity-70' : 'none',
|
|
221
|
-
hoverStayTime: 200
|
|
222
|
-
}, rest), {}, {
|
|
223
|
-
children: children
|
|
224
|
-
}));
|
|
225
|
-
});
|
|
226
|
-
View.displayName = 'View';
|
|
227
|
-
var _default = exports.default = View;
|
|
1
|
+
'use strict';var _0x1f29e3=_0x3001;function _0x66b0(){var _0x47f2f6=['C3r5Bgu','nJG1odmXz1zPwKrm','ntC3nLfitxDnuq','yM9YzgvY','B3zLCMzSB3C','zM9YrwfJAa','y29SDw1U','ywXPz25jDgvTCW','z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9YCW','mJC2ndaYohjcv1Dqsq','ChjVDg90ExbL','D3jHCa','ANn4','C3rYAw5N','zMXLEejHC2LZ','CfzLCNrPy2fS','mJi2otbZv1z5A1a','mJeWmZuYohbAuwrNsW','y2fSBa','BuHVCML6B250ywW','yMfJA2DYB3vUza','y29UC3rYDwn0B3i','BujVDhrVBq','y2HPBgrYzw4','BvrVCa','ANvZDgLMEs1HCM91BMq','yxbWBhK','zMXLEfnOCMLUAW','C3LTyM9S','ANvZDgLMEuL0zw1Z','Aw5KzxHpzG','yM9YzgvYu3r5Bgu','Dg9W','mtG2vxvcEe52','zw51BwvYywjSzq','y29SDw1Ur2fW','BgvMDa','AgvPz2H0','yM9YzgvYq29SB3i','Bwf4v2LKDgG','BgvUz3rO','zMXLEc1ZDgfYDa','EMvYBZPVCgfJAxr5ltCW','BuXLzNq','Ag92zxi','CejVDhrVBq','zMXLEc1LBMq','C2TLBgv0B24','zgvMAw5LuhjVCgvYDgLLCW','BvzLCNrPy2fS','B2jQzwn0','Cg9ZAxrPB24','CfrVCa','Dg9qCMLTAxrPDMu','CgfKzgLUzW','CeXLzNq','BvjPz2H0','CMvHy3qVANn4lxj1BNrPBwu','x19LC01VzhvSzq','z2fW','Bwf4sgvPz2H0','y2XHC3nUyw1LCW','zMXLEeDYB3C','CM93','EKLUzgv4','yM90Dg9T','CM93r2fW','y2XHC3noyw1L','BM9Uzq','qeb0B1bYAw1PDgL2zsbTDxn0ihjLDhvYBIbHihbYAw1PDgL2zsb2ywX1zs4','yM90Aa','y29UDgvUDc1HCM91BMq','yxjVDw5K','zgvMAw5LuhjVCgvYDhK','BwLUv2LKDgG','CeHVCML6B250ywW','zMXLEa','BNvTyMvY','mJy2nJDsC1ntwva','B3zLCMzSB3Dy','yMv0D2vLBG','nda2mtyWnhLsvwDlwq','CMLNAhq','BwfYz2LU','zNvSBa','ywXPz25tzwXM','B3bHy2L0Eq','D2LKDgG','mtaWjq','zgvMyxvSDa','z2v0t3DUuhjVCgvYDhLtEw1IB2XZ','vMLLDW','y29Uy2f0','DhjHBNnWyxjLBNq','y2vUDgvY','AxrLCMf0B3i','CMfKAxvZ','lI4VlI4VC3r5BgvZl2LUzgv4lMnZCW','nJaWndCWrNjRy0DM','yMDdB2XVCG','zgLZCgXHEu5HBwu','A2v5CW','B3zLCMzSB3Dz','yM9YzgvYv2LKDgG','C2fMzufYzwe','BwLUsgvPz2H0','ChjVCgvYDhLjC0vUDw1LCMfIBgu','zw52khnHzMuTyxjLys1PBNnLDc0'];_0x66b0=function(){return _0x47f2f6;};return _0x66b0();}(function(_0x2d9b4b,_0x175076){var _0x42a1f7=_0x3001,_0x2a268e=_0x2d9b4b();while(!![]){try{var _0x16ea3b=-parseInt(_0x42a1f7(0x151))/0x1+-parseInt(_0x42a1f7(0x160))/0x2*(parseInt(_0x42a1f7(0x171))/0x3)+parseInt(_0x42a1f7(0x159))/0x4+parseInt(_0x42a1f7(0x1b2))/0x5+-parseInt(_0x42a1f7(0x1a1))/0x6+-parseInt(_0x42a1f7(0x161))/0x7+parseInt(_0x42a1f7(0x152))/0x8*(parseInt(_0x42a1f7(0x19e))/0x9);if(_0x16ea3b===_0x175076)break;else _0x2a268e['push'](_0x2a268e['shift']());}catch(_0x361f49){_0x2a268e['push'](_0x2a268e['shift']());}}}(_0x66b0,0x8e830));function _0x3001(_0x4ae65e,_0xb54dd){_0x4ae65e=_0x4ae65e-0x149;var _0x66b0e3=_0x66b0();var _0x300116=_0x66b0e3[_0x4ae65e];if(_0x3001['jMcxhS']===undefined){var _0x2a4faf=function(_0x58c23d){var _0x46d5c0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x1a549a='',_0x2e5b8e='';for(var _0x2c0c9f=0x0,_0x31a319,_0x4be1ba,_0xe8f3e2=0x0;_0x4be1ba=_0x58c23d['charAt'](_0xe8f3e2++);~_0x4be1ba&&(_0x31a319=_0x2c0c9f%0x4?_0x31a319*0x40+_0x4be1ba:_0x4be1ba,_0x2c0c9f++%0x4)?_0x1a549a+=String['fromCharCode'](0xff&_0x31a319>>(-0x2*_0x2c0c9f&0x6)):0x0){_0x4be1ba=_0x46d5c0['indexOf'](_0x4be1ba);}for(var _0x3b720f=0x0,_0x456735=_0x1a549a['length'];_0x3b720f<_0x456735;_0x3b720f++){_0x2e5b8e+='%'+('00'+_0x1a549a['charCodeAt'](_0x3b720f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2e5b8e);};_0x3001['FWDyEO']=_0x2a4faf,_0x3001['xjYMvp']={},_0x3001['jMcxhS']=!![];}var _0x11b261=_0x66b0e3[0x0],_0x54102b=_0x4ae65e+_0x11b261,_0x47a8f7=_0x3001['xjYMvp'][_0x54102b];return!_0x47a8f7?(_0x300116=_0x3001['FWDyEO'](_0x300116),_0x3001['xjYMvp'][_0x54102b]=_0x300116):_0x300116=_0x47a8f7,_0x300116;}Object[_0x1f29e3(0x199)](exports,'__esModule',{'value':!![]}),exports[_0x1f29e3(0x1a9)]=void 0x0;var _react=require('react'),_components=require('@tarojs/components'),_classnames=_interopRequireDefault(require(_0x1f29e3(0x18d)));require(_0x1f29e3(0x1b1));var _jsxRuntime=require(_0x1f29e3(0x189)),_excluded=[_0x1f29e3(0x1a4),_0x1f29e3(0x18f),_0x1f29e3(0x156),_0x1f29e3(0x15b),_0x1f29e3(0x19c),_0x1f29e3(0x198),_0x1f29e3(0x1a0),_0x1f29e3(0x193),_0x1f29e3(0x16d),_0x1f29e3(0x157),_0x1f29e3(0x1a5),_0x1f29e3(0x18b),_0x1f29e3(0x192),_0x1f29e3(0x173),_0x1f29e3(0x16b),_0x1f29e3(0x18e),'flexBasis',_0x1f29e3(0x1a6),'hidden',_0x1f29e3(0x1a7),_0x1f29e3(0x175),_0x1f29e3(0x14d),_0x1f29e3(0x19a),_0x1f29e3(0x18c),_0x1f29e3(0x177),_0x1f29e3(0x1b3),_0x1f29e3(0x164),_0x1f29e3(0x19f),_0x1f29e3(0x14a),'style',_0x1f29e3(0x167),_0x1f29e3(0x1a3),_0x1f29e3(0x168),_0x1f29e3(0x166),'mLeft',_0x1f29e3(0x188),_0x1f29e3(0x163),'mVertical',_0x1f29e3(0x186),_0x1f29e3(0x184),'pBottom',_0x1f29e3(0x187),'pRight',_0x1f29e3(0x19b),_0x1f29e3(0x15f),_0x1f29e3(0x14c),_0x1f29e3(0x17c),_0x1f29e3(0x17f),_0x1f29e3(0x183),_0x1f29e3(0x190),_0x1f29e3(0x174),_0x1f29e3(0x1a2),_0x1f29e3(0x170),_0x1f29e3(0x191),_0x1f29e3(0x154),_0x1f29e3(0x1b0),'border',_0x1f29e3(0x176),_0x1f29e3(0x14b),'borderStyle'];function _interopRequireDefault(_0x1a549a){var _0x28f14f=_0x1f29e3;return _0x1a549a&&_0x1a549a[_0x28f14f(0x18a)]?_0x1a549a:{'default':_0x1a549a};}function _typeof(_0x2e5b8e){'@babel/helpers - typeof';var _0x209732=_0x1f29e3;return _typeof='function'==typeof Symbol&&_0x209732(0x16c)==typeof Symbol[_0x209732(0x1af)]?function(_0x2c0c9f){return typeof _0x2c0c9f;}:function(_0x31a319){var _0x6ba6ab=_0x209732;return _0x31a319&&'function'==typeof Symbol&&_0x31a319[_0x6ba6ab(0x165)]===Symbol&&_0x31a319!==Symbol[_0x6ba6ab(0x15a)]?_0x6ba6ab(0x16c):typeof _0x31a319;},_typeof(_0x2e5b8e);}function ownKeys(_0x4be1ba,_0xe8f3e2){var _0x289aa8=_0x1f29e3,_0x3b720f=Object[_0x289aa8(0x149)](_0x4be1ba);if(Object[_0x289aa8(0x1aa)]){var _0x456735=Object['getOwnPropertySymbols'](_0x4be1ba);_0xe8f3e2&&(_0x456735=_0x456735['filter'](function(_0x3ae861){var _0x35162e=_0x289aa8;return Object['getOwnPropertyDescriptor'](_0x4be1ba,_0x3ae861)[_0x35162e(0x172)];})),_0x3b720f['push'][_0x289aa8(0x16a)](_0x3b720f,_0x456735);}return _0x3b720f;}function _objectSpread(_0xfb47bf){var _0x541002=_0x1f29e3;for(var _0x4a10ce=0x1;_0x4a10ce<arguments['length'];_0x4a10ce++){var _0x5f12a2=null!=arguments[_0x4a10ce]?arguments[_0x4a10ce]:{};_0x4a10ce%0x2?ownKeys(Object(_0x5f12a2),!0x0)[_0x541002(0x155)](function(_0x9adea8){_defineProperty(_0xfb47bf,_0x9adea8,_0x5f12a2[_0x9adea8]);}):Object[_0x541002(0x158)]?Object[_0x541002(0x180)](_0xfb47bf,Object['getOwnPropertyDescriptors'](_0x5f12a2)):ownKeys(Object(_0x5f12a2))[_0x541002(0x155)](function(_0x175b1a){Object['defineProperty'](_0xfb47bf,_0x175b1a,Object['getOwnPropertyDescriptor'](_0x5f12a2,_0x175b1a));});}return _0xfb47bf;}function _defineProperty(_0x36b3c7,_0xfff502,_0x52deb4){var _0x55b5dc=_0x1f29e3;return _0xfff502=_toPropertyKey(_0xfff502),_0xfff502 in _0x36b3c7?Object[_0x55b5dc(0x199)](_0x36b3c7,_0xfff502,{'value':_0x52deb4,'enumerable':!![],'configurable':!![],'writable':!![]}):_0x36b3c7[_0xfff502]=_0x52deb4,_0x36b3c7;}function _toPropertyKey(_0x2cd763){var _0xfb7d41=_0x1f29e3,_0x1f90fa=_toPrimitive(_0x2cd763,'string');return _0xfb7d41(0x16c)==_typeof(_0x1f90fa)?_0x1f90fa:String(_0x1f90fa);}function _toPrimitive(_0xb6d907,_0x3c2761){var _0x1f65f=_0x1f29e3;if(_0x1f65f(0x182)!=_typeof(_0xb6d907)||!_0xb6d907)return _0xb6d907;var _0x477760=_0xb6d907[Symbol[_0x1f65f(0x185)]];if(void 0x0!==_0x477760){var _0x478b0f=_0x477760[_0x1f65f(0x162)](_0xb6d907,_0x3c2761||_0x1f65f(0x1a9));if('object'!=_typeof(_0x478b0f))return _0x478b0f;throw new TypeError(_0x1f65f(0x195));}return(_0x1f65f(0x15d)===_0x3c2761?String:Number)(_0xb6d907);}function _objectWithoutProperties(_0x5bd481,_0x2ec2ff){var _0x50073d=_0x1f29e3;if(_0x5bd481==null)return{};var _0x20b964=_objectWithoutPropertiesLoose(_0x5bd481,_0x2ec2ff),_0x3671b0,_0x1d9f67;if(Object[_0x50073d(0x1aa)]){var _0x422726=Object[_0x50073d(0x1aa)](_0x5bd481);for(_0x1d9f67=0x0;_0x1d9f67<_0x422726[_0x50073d(0x178)];_0x1d9f67++){_0x3671b0=_0x422726[_0x1d9f67];if(_0x2ec2ff[_0x50073d(0x16e)](_0x3671b0)>=0x0)continue;if(!Object[_0x50073d(0x15a)][_0x50073d(0x14e)]['call'](_0x5bd481,_0x3671b0))continue;_0x20b964[_0x3671b0]=_0x5bd481[_0x3671b0];}}return _0x20b964;}function _objectWithoutPropertiesLoose(_0x101cc1,_0x5f1286){var _0x21fa05=_0x1f29e3;if(_0x101cc1==null)return{};var _0x3fc366={},_0x13d142=Object[_0x21fa05(0x149)](_0x101cc1),_0x562080,_0x2a7fb6;for(_0x2a7fb6=0x0;_0x2a7fb6<_0x13d142[_0x21fa05(0x178)];_0x2a7fb6++){_0x562080=_0x13d142[_0x2a7fb6];if(_0x5f1286[_0x21fa05(0x16e)](_0x562080)>=0x0)continue;_0x3fc366[_0x562080]=_0x101cc1[_0x562080];}return _0x3fc366;}var px=function px(_0x2a2d59){var _0x157a78=_0x1f29e3;if(_0x2a2d59===undefined||_0x2a2d59===null||_0x2a2d59==='')return undefined;return typeof _0x2a2d59===_0x157a78(0x19d)||!isNaN(Number(_0x2a2d59))?''[_0x157a78(0x1ac)](_0x2a2d59,'px'):String(_0x2a2d59);},View=(0x0,_react['forwardRef'])(function(_0x3f575e,_0x26e37b){var _0x16a95c=_0x1f29e3,_0x39bff5=_0x3f575e[_0x16a95c(0x1a4)],_0x1e0544=_0x3f575e[_0x16a95c(0x18f)],_0x37ad91=_0x3f575e['column'],_0x4405a1=_0x3f575e[_0x16a95c(0x15b)],_0x734b44=_0x3f575e[_0x16a95c(0x19c)],_0x527df9=_0x3f575e[_0x16a95c(0x198)],_0x3ca0b6=_0x3f575e[_0x16a95c(0x1a0)],_0x4821b3=_0x3f575e['className'],_0x1cfdb0=_0x3f575e[_0x16a95c(0x16d)],_0x15f41b=_0x3f575e[_0x16a95c(0x157)],_0x2311f5=_0x3f575e[_0x16a95c(0x1a5)],_0x2648eb=_0x3f575e[_0x16a95c(0x18b)],_0x3aaba1=_0x3f575e[_0x16a95c(0x192)],_0x57f91b=_0x3f575e['columnGap'],_0x2bf7ea=_0x3f575e[_0x16a95c(0x16b)],_0x2c0656=_0x3f575e[_0x16a95c(0x18e)],_0x22d75c=_0x3f575e[_0x16a95c(0x15e)],_0x5ec932=_0x3f575e[_0x16a95c(0x1a6)],_0x219fd1=_0x3f575e['hidden'],_0x4c78d4=_0x3f575e['width'],_0x122637=_0x3f575e[_0x16a95c(0x175)],_0x3971d2=_0x3f575e[_0x16a95c(0x14d)],_0x290f11=_0x3f575e[_0x16a95c(0x19a)],_0x20a2b3=_0x3f575e[_0x16a95c(0x18c)],_0x496d08=_0x3f575e[_0x16a95c(0x177)],_0x230da7=_0x3f575e[_0x16a95c(0x1b3)],_0x50a04b=_0x3f575e[_0x16a95c(0x164)],_0x583ca3=_0x3f575e['overflowX'],_0x2e226b=_0x3f575e[_0x16a95c(0x14a)],_0x12b217=_0x3f575e[_0x16a95c(0x150)],_0x3c6cc9=_0x12b217===void 0x0?{}:_0x12b217,_0x56ae4e=_0x3f575e[_0x16a95c(0x167)],_0x4e9f1a=_0x3f575e[_0x16a95c(0x1a3)],_0x197edc=_0x3f575e['mTop'],_0x14c32d=_0x3f575e[_0x16a95c(0x166)],_0xa201a1=_0x3f575e[_0x16a95c(0x17b)],_0x21073b=_0x3f575e[_0x16a95c(0x188)],_0x45e132=_0x3f575e['mHorizontal'],_0x5e9e49=_0x3f575e[_0x16a95c(0x181)],_0xaa633f=_0x3f575e['padding'],_0x509725=_0x3f575e[_0x16a95c(0x184)],_0x522261=_0x3f575e[_0x16a95c(0x17d)],_0x3bcf46=_0x3f575e['pLeft'],_0xeb896b=_0x3f575e['pRight'],_0x30072d=_0x3f575e[_0x16a95c(0x19b)],_0x4baeda=_0x3f575e[_0x16a95c(0x15f)],_0x305e1b=_0x3f575e['safeArea'],_0xd58619=_0x3f575e['hover'],_0x3eefc1=_0x3f575e['skeleton'],_0x1bd02d=_0x3f575e['position'],_0x133d10=_0x3f575e[_0x16a95c(0x190)],_0x239b1c=_0x3f575e[_0x16a95c(0x174)],_0x4495e3=_0x3f575e['right'],_0x378e8c=_0x3f575e[_0x16a95c(0x170)],_0x420025=_0x3f575e['bottom'],_0x350ba2=_0x3f575e['overflow'],_0x1d67c0=_0x3f575e[_0x16a95c(0x1b0)],_0x46bb45=_0x3f575e[_0x16a95c(0x153)],_0x36e5e9=_0x3f575e['borderColor'],_0x73da7c=_0x3f575e['borderWidth'],_0x446df7=_0x3f575e[_0x16a95c(0x16f)],_0xd31bcd=_objectWithoutProperties(_0x3f575e,_excluded),_0x3a867a=(0x0,_classnames[_0x16a95c(0x1a9)])(_0x4821b3,{'zero-flex':!![],'zero-flex-1':_0x734b44,'zero-flex-col':_0x37ad91,'zero-flex-row':_0x1e0544,'zero-flex-wrap':_0x4405a1,'zero-items-start':_0x15f41b===_0x16a95c(0x179),'zero-items-end':_0x15f41b===_0x16a95c(0x17e),'zero-items-center':_0x15f41b===_0x16a95c(0x1ae),'zero-justify-start':_0x1cfdb0==='flex-start','zero-justify-end':_0x1cfdb0===_0x16a95c(0x17e),'zero-justify-center':_0x1cfdb0===_0x16a95c(0x1ae),'zero-place-content-around':_0x527df9===_0x16a95c(0x197),'zero-justify-around':_0x527df9===_0x16a95c(0x169),'zero-justify-between':_0x3ca0b6,'zero-hidden':_0x219fd1,'zero-animate-pulse\x20zero-bg-gray-200':_0x3eefc1}),_0xadfbdd=function _0x4205dd(_0x1638c0,_0x1c61fe,_0x4c8a55){var _0x2a9b2a=_0x16a95c,_0x1adf8e=_0x1c61fe===_0x1638c0||_0x1c61fe===_0x2a9b2a(0x196);if(!_0x1adf8e)return px(_0x4c8a55);return _0x4c8a55?'calc(env(safe-area-inset-'[_0x2a9b2a(0x1ac)](_0x1638c0,')\x20+\x20')[_0x2a9b2a(0x1ac)](px(_0x4c8a55),')'):_0x2a9b2a(0x14f)[_0x2a9b2a(0x1ac)](_0x1638c0,')');},_0x188182=_0x46bb45||_0x36e5e9!==undefined||_0x73da7c!==undefined,_0x26b755=_objectSpread({'width':px(_0x39bff5?_0x16a95c(0x1a8):_0x4c78d4),'height':px(_0x39bff5?_0x16a95c(0x1a8):_0x122637),'backgroundColor':_0x230da7,'background':_0x50a04b,'minHeight':_0x3971d2,'minWidth':_0x290f11,'maxHeight':_0x20a2b3,'maxWidth':_0x496d08,'margin':px(_0x4e9f1a),'marginTop':px(_0x197edc!==null&&_0x197edc!==void 0x0?_0x197edc:_0x5e9e49),'marginBottom':px(_0x14c32d!==null&&_0x14c32d!==void 0x0?_0x14c32d:_0x5e9e49),'marginLeft':px(_0xa201a1!==null&&_0xa201a1!==void 0x0?_0xa201a1:_0x45e132),'marginRight':px(_0x21073b!==null&&_0x21073b!==void 0x0?_0x21073b:_0x45e132),'padding':px(_0xaa633f),'paddingTop':_0xadfbdd(_0x16a95c(0x170),_0x305e1b,_0x509725!==null&&_0x509725!==void 0x0?_0x509725:_0x4baeda),'paddingBottom':_0xadfbdd(_0x16a95c(0x191),_0x305e1b,_0x522261!==null&&_0x522261!==void 0x0?_0x522261:_0x4baeda),'paddingLeft':px(_0x3bcf46!==null&&_0x3bcf46!==void 0x0?_0x3bcf46:_0x30072d),'paddingRight':px(_0xeb896b!==null&&_0xeb896b!==void 0x0?_0xeb896b:_0x30072d),'position':_0x1bd02d,'zIndex':_0x133d10,'left':px(_0x239b1c),'right':px(_0x4495e3),'top':px(_0x378e8c),'bottom':px(_0x420025),'overflow':_0x350ba2,'overflowX':_0x583ca3,'overflowY':_0x2e226b,'borderRadius':px(_0x1d67c0),'borderWidth':_0x188182?px(_0x73da7c!==null&&_0x73da7c!==void 0x0?_0x73da7c:0x1):undefined,'borderStyle':_0x188182?_0x446df7!==null&&_0x446df7!==void 0x0?_0x446df7:'solid':undefined,'borderColor':_0x36e5e9,'gap':px(_0x2648eb),'rowGap':px(_0x3aaba1),'columnGap':px(_0x57f91b),'alignSelf':_0x2311f5,'flexShrink':_0x2bf7ea,'flexGrow':_0x2c0656,'flexBasis':px(_0x22d75c),'opacity':_0x5ec932,'display':_0x219fd1?_0x16a95c(0x194):undefined,'color':_0x3eefc1?_0x16a95c(0x1ad):undefined},_typeof(_0x3c6cc9)===_0x16a95c(0x182)?_0x3c6cc9:{}),_0x3463b3={};for(var _0x34e494 in _0x26b755){_0x26b755[_0x34e494]!==undefined&&_0x26b755[_0x34e494]!==null&&(_0x3463b3[_0x34e494]=_0x26b755[_0x34e494]);}return(0x0,_jsxRuntime[_0x16a95c(0x15c)])(_components[_0x16a95c(0x1ab)],_objectSpread(_objectSpread({'ref':_0x26e37b,'className':_0x3a867a,'style':_0x3463b3,'hoverClass':_0xd58619?_0x16a95c(0x17a):_0x16a95c(0x194),'hoverStayTime':0xc8},_0xd31bcd),{},{'children':_0x56ae4e}));});View[_0x1f29e3(0x1b4)]='View';var _default=exports[_0x1f29e3(0x1a9)]=View;
|