diff --git a/build.gradle b/build.gradle index 5cd265a..afee0ca 100644 --- a/build.gradle +++ b/build.gradle @@ -45,13 +45,6 @@ publishing { artifact("$libsDirName/react-native-android-open-settings-release.aar") } - tareactnativeappsettings(MavenPublication) { - groupId 'tecnavia' - artifactId 'react-native-app-settings' - version '2.0.1' - artifact("$libsDirName/react-native-app-settings-release.aar") - } - tareactnativeasyncstorageasyncstorage(MavenPublication) { groupId 'tecnavia' artifactId 'react-native-async-storage_async-storage' @@ -66,13 +59,6 @@ publishing { artifact("$libsDirName/react-native-color-matrix-image-filters-release.aar") } - tareactnativecommunityart(MavenPublication) { - groupId 'tecnavia' - artifactId 'react-native-community_art' - version '1.2.0' - artifact("$libsDirName/react-native-community_art-release.aar") - } - tareactnativecommunitydatetimepicker(MavenPublication) { groupId 'tecnavia' artifactId 'react-native-community_datetimepicker' @@ -181,7 +167,7 @@ publishing { tareactnativepagerview(MavenPublication) { groupId 'tecnavia' artifactId 'react-native-pager-view' - version '6.1.4' + version '6.4.1' artifact("$libsDirName/react-native-pager-view-release.aar") } @@ -237,7 +223,7 @@ publishing { tareactnativesvg(MavenPublication) { groupId 'tecnavia' artifactId 'react-native-svg' - version '12.1.0' + version '15.7.1' artifact("$libsDirName/react-native-svg-release.aar") } @@ -293,7 +279,7 @@ publishing { tareactnativewebview(MavenPublication) { groupId 'tecnavia' artifactId 'react-native-webview' - version '11.17.2' + version '12.4.0' artifact("$libsDirName/react-native-webview-release.aar") } @@ -466,10 +452,8 @@ def amazonSdkVersion = safeExtGet("amazonSdkVersion", "3.0.3") dependencies { implementation "tecnavia:react-native-android-open-settings:1.3.0" - implementation "tecnavia:react-native-app-settings:2.0.1" implementation "tecnavia:react-native-async-storage_async-storage:2.0.0" implementation "tecnavia:react-native-color-matrix-image-filters:6.0.9" - implementation "tecnavia:react-native-community_art:1.2.0" implementation "tecnavia:react-native-community_datetimepicker:6.7.5" implementation "tecnavia:react-native-community_image-editor:2.3.0" implementation "tecnavia:react-native-community_netinfo:5.9.10" @@ -485,7 +469,7 @@ dependencies { implementation "tecnavia:react-native-image-marker:0.9.2" implementation "tecnavia:react-native-linear-gradient:2.8.3" implementation "tecnavia:react-native-mail:6.1.1" - implementation "tecnavia:react-native-pager-view:6.1.4" + implementation "tecnavia:react-native-pager-view:6.4.1" implementation "tecnavia:react-native-photo-view-ex:1.1.0" implementation "tecnavia:react-native-reanimated:2.17.0" implementation "tecnavia:react-native-safe-area-context:3.3.2" @@ -493,7 +477,7 @@ dependencies { implementation "tecnavia:react-native-share:10.2.1" implementation "tecnavia:react-native-splash-screen:3.2.0" implementation "tecnavia:react-native-sqlite-storage:3.3.10" - implementation "tecnavia:react-native-svg:12.1.0" + implementation "tecnavia:react-native-svg:15.7.1" implementation "tecnavia:react-native-tecnavia-utils:1.2.1" implementation "tecnavia:react-native-text-size:3.0.0" implementation "tecnavia:react-native-tts:4.1.0" @@ -501,7 +485,7 @@ dependencies { implementation "tecnavia:react-native-vector-icons:8.1.0" implementation "tecnavia:react-native-video:5.2.1" implementation "tecnavia:react-native-volume-control:1.0.1" - implementation "tecnavia:react-native-webview:11.17.2" + implementation "tecnavia:react-native-webview:12.4.0" implementation "tecnavia:rn-fetch-blob:0.11.2" api "tecnavia:tecnavia_react-native-bridge:1.3.6" implementation "tecnavia:tecnavia_react-native-default-preference:1.5.0" diff --git a/gradle.properties b/gradle.properties index 67c4ae0..43b344b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ android.useAndroidX=true APP_NAME=Android SDK -APP_VERSION_NAME=3.16.09 -APP_VERSION_CODE=1730189840518 +APP_VERSION_NAME=3.16.13 +APP_VERSION_CODE=1732114058365 ANDROID_APP_ID=com.tecnaviaapplication IS_ADDON=true diff --git a/libs/react-native-app-settings-release.aar b/libs/react-native-app-settings-release.aar deleted file mode 100644 index d374060..0000000 Binary files a/libs/react-native-app-settings-release.aar and /dev/null differ diff --git a/libs/react-native-community_art-release.aar b/libs/react-native-community_art-release.aar deleted file mode 100644 index 81cad94..0000000 Binary files a/libs/react-native-community_art-release.aar and /dev/null differ diff --git a/libs/react-native-pager-view-release.aar b/libs/react-native-pager-view-release.aar index 4bf3a8b..854b5e1 100644 Binary files a/libs/react-native-pager-view-release.aar and b/libs/react-native-pager-view-release.aar differ diff --git a/libs/react-native-svg-release.aar b/libs/react-native-svg-release.aar index 9e19bce..5b460a4 100644 Binary files a/libs/react-native-svg-release.aar and b/libs/react-native-svg-release.aar differ diff --git a/libs/react-native-webview-release.aar b/libs/react-native-webview-release.aar index 90c7df9..f590699 100644 Binary files a/libs/react-native-webview-release.aar and b/libs/react-native-webview-release.aar differ diff --git a/src/main/assets/index.android.bundle b/src/main/assets/index.android.bundle index c7b921d..d9a727e 100644 --- a/src/main/assets/index.android.bundle +++ b/src/main/assets/index.android.bundle @@ -803,7 +803,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _$$_REQUIRE(_dependencyMap[1]); _$$_REQUIRE(_dependencyMap[2]); -},0,[1,404,2259]); +},0,[1,404,2142]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -47626,7 +47626,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _$$_REQUIRE(_dependencyMap[10]).Logger.initializedLogSession = false; _$$_REQUIRE(_dependencyMap[10]).Logger.logSessionFileName = ""; global.getLocaleConfig().initLocale(); -},404,[3,270,405,1974,2080,2081,1834,613,1835,443,438,2082,2096,2132,2188,2195,1965,2203,1961]); +},404,[3,270,405,1863,1964,1965,1723,613,1724,443,438,1966,1980,2015,2071,2078,1854,2086,1850]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -47834,7 +47834,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e hybrid: 2, hybridLite: 3 }; -},405,[3,270,6,7,406,1834,438,1837,1916,1917,1957,1958,1961,1968,1973]); +},405,[3,270,6,7,406,1723,438,1726,1805,1806,1846,1847,1850,1857,1862]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -49010,7 +49010,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},406,[3,4,270,6,7,407,434,572,613,841,552,842,654,843,847,848,849,438,574,573,853]); +},406,[3,4,270,6,7,407,434,572,613,842,552,843,654,844,848,849,850,438,574,573,854]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -49413,14 +49413,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, { key: "sslCertificatesURI", - value: function sslCertificatesURI() { - var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var cdnServer = arguments.length > 1 ? arguments[1] : undefined; - var excludeParams = cdnServer ? true : false; - return _$$_REQUIRE(_dependencyMap[8]).StringUtils.appendParams(API.baseUrl(cdnServer), Object.assign({}, API.getDefaultParams(excludeParams, excludeParams), params, { + value: function sslCertificatesURI(config) { + var cdnEnabled = config.cdnEnabled, + cdnServer = config.cdnServer, + sslCertificateFileTime = config.sslCertificateFileTime, + machine = config.machine; + var action = "certificates"; + var useCDN = cdnEnabled && !!cdnServer; + var serverToUse = machine; + var params = Object.assign({}, API.getDefaultParams(useCDN, useCDN), { os: "android", - action: "certificates" - })); + action: action + }); + + if (useCDN) { + serverToUse = cdnServer; + params.cc = action; + params.mtime = sslCertificateFileTime; + } + + return _$$_REQUIRE(_dependencyMap[8]).StringUtils.appendParams(API.baseUrl(serverToUse), params); } }, { key: "pSetup", @@ -49609,8 +49621,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function () { var _sendLog = (0, _asyncToGenerator2.default)(function* () { var result = yield API.sendLogToServer(); - yield _$$_REQUIRE(_dependencyMap[8]).Logger.deleteLogFile(); - yield _$$_REQUIRE(_dependencyMap[8]).Logger.createNewSessionLog(); + + if (result) { + yield _$$_REQUIRE(_dependencyMap[8]).Logger.deleteLogFile(); + yield _$$_REQUIRE(_dependencyMap[8]).Logger.createNewSessionLog(); + } + return result; }); @@ -86761,7 +86777,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var filters = _$$_REQUIRE(_dependencyMap[13]).CssUtils.getAttributeFromStyle("filters", style); - if (filters) { + if (Array.isArray(filters) && !_$$_REQUIRE(_dependencyMap[13]).JSUtils.isEmpty(filters)) { props.filters = filters; filterStyle.push(imageStyle); @@ -96717,7 +96733,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function _f(){}"; _f.__workletHash = 16394749715515; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (40:48)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (40:48)"; return _f; }(); @@ -96769,7 +96785,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function requestFrame(frame){const{NativeReanimatedModule,pushFrame}=jsThis._closure;{if(NativeReanimatedModule.native){requestAnimationFrame(frame);}else{pushFrame(frame);}}}"; _f.__workletHash = 12115854397223; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (76:7)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (76:7)"; return _f; }(); @@ -96821,7 +96837,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function _f(){if(_frameTimestamp){return _frameTimestamp;}if(_eventTimestamp){return _eventTimestamp;}return _getCurrentTime();}"; _f.__workletHash = 7105333655134; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (123:18)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (123:18)"; return _f; }(); } @@ -96846,7 +96862,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function getTimestamp(){const{Platform,NativeReanimatedModule,_getTimestamp}=jsThis._closure;{if(Platform.OS==='web'){return NativeReanimatedModule.getTimestamp();}return _getTimestamp();}}"; _f.__workletHash = 16781279444967; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (135:7)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (135:7)"; return _f; }(); @@ -96914,7 +96930,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function workletValueSetter(value){const{getTimestamp}=jsThis._closure;{var _this=this;const previousAnimation=this._animation;if(previousAnimation){previousAnimation.cancelled=true;this._animation=null;}if(typeof value==='function'||value!==null&&typeof value==='object'&&value.onFrame!==undefined){const animation=typeof value==='function'?value():value;if(this._value===animation.current&&!animation.isHigherOrder){animation.callback&&animation.callback(true);return;}const initializeAnimation=function(timestamp){animation.onStart(animation,_this.value,timestamp,previousAnimation);};initializeAnimation(getTimestamp());const step=function(timestamp){if(animation.cancelled){animation.callback&&animation.callback(false);return;}const finished=animation.onFrame(animation,timestamp);animation.finished=true;animation.timestamp=timestamp;_this._value=animation.current;if(finished){animation.callback&&animation.callback(true);}else{requestAnimationFrame(step);}};this._animation=animation;if(_frameTimestamp){step(_frameTimestamp);}else{requestAnimationFrame(step);}}else{if(this._value===value){return;}this._value=value;}}}"; _f.__workletHash = 16934339415702; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (143:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (143:0)"; return _f; }(); @@ -97004,7 +97020,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function runOnJS(fun){if(!_WORKLET){return fun;}if(!fun.__callAsync){throw new Error(\"Attempting to call runOnJS with an object that is not a host function. Using runOnJS is only possible with methods that are defined on the main React-Native Javascript thread and that aren't marked as worklets\");}else{return fun.__callAsync;}}"; _f.__workletHash = 6674264901856; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (302:7)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (302:7)"; return _f; }(); @@ -97037,7 +97053,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(){const{runOnJS,capturableConsole}=jsThis._closure;{const console={debug:runOnJS(capturableConsole.debug),log:runOnJS(capturableConsole.log),warn:runOnJS(capturableConsole.warn),error:runOnJS(capturableConsole.error),info:runOnJS(capturableConsole.info)};_setGlobalConsole(console);}}"; _f.__workletHash = 12797137083328; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (326:10)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/core.ts (326:10)"; return _f; }())(); } @@ -97793,7 +97809,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "_args": [ [ "react-native-reanimated@2.17.0", - "/Users/ipaddev/sdk/3.16.09.rc" + "/Users/ipaddev/sdk/3.16.13.rc" ] ], "_from": "react-native-reanimated@2.17.0", @@ -97817,7 +97833,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex ], "_resolved": "https://registry.npmjs.org/react-native-reanimated/-/react-native-reanimated-2.17.0.tgz", "_spec": "2.17.0", - "_where": "/Users/ipaddev/sdk/3.16.09.rc", + "_where": "/Users/ipaddev/sdk/3.16.13.rc", "author": { "name": "Krzysztof Magiera", "email": "krzys.magiera@gmail.com" @@ -98164,7 +98180,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(){const{tag,config}=jsThis._closure;{global.LayoutAnimationRepository.registerConfig(tag,config);}}"; _f.__workletHash = 5455589887771; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/createAnimatedComponent.tsx (575:18)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/createAnimatedComponent.tsx (575:18)"; return _f; }())(); } @@ -100836,7 +100852,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(){const{ColorProperties,processColor,withStyleAnimation}=jsThis._closure;{const configs=Object.create(null);const enteringAnimationForTag={};global.LayoutAnimationRepository={configs:configs,registerConfig:function(tag,config){configs[tag]=config;enteringAnimationForTag[tag]=null;},removeConfig:function(tag){delete configs[tag];delete enteringAnimationForTag[tag];},startAnimationForTag:function(tag,type,yogaValues){if(configs[tag]==null){return;}const style=configs[tag][type](yogaValues);let currentAnimation=style.animations;if(type==='entering'){enteringAnimationForTag[tag]=style;}else if(type==='layout'&&enteringAnimationForTag[tag]!==null){const entryAniamtion=enteringAnimationForTag[tag].animations;const layoutAnimation=style.animations;currentAnimation={};for(const key in entryAniamtion){currentAnimation[key]=entryAniamtion[key];}for(const key in layoutAnimation){currentAnimation[key]=layoutAnimation[key];}}const sv=configs[tag].sv;_stopObservingProgress(tag,false);_startObservingProgress(tag,sv);const backupColor={};for(const key in style.initialValues){if(ColorProperties.includes(key)){const value=style.initialValues[key];backupColor[key]=value;style.initialValues[key]=processColor(value);}}sv.value=Object.assign({},sv._value,style.initialValues);_stopObservingProgress(tag,false);const animation=withStyleAnimation(currentAnimation);animation.callback=function(finished){if(finished){_stopObservingProgress(tag,finished);}style.callback&&style.callback(finished);};if(backupColor){configs[tag].sv._value={...configs[tag].sv.value,...backupColor};}configs[tag].sv.value=animation;_startObservingProgress(tag,sv);}};}}"; _f.__workletHash = 10033167792218; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/layoutReanimation/LayoutAnimationRepository.ts (7:8)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/layoutReanimation/LayoutAnimationRepository.ts (7:8)"; return _f; }())(); },696,[660,697,698,699]); @@ -100864,7 +100880,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(_,updates,maybeViewRef){const{_updatePropsJS}=jsThis._closure;{if(maybeViewRef){maybeViewRef.items.forEach(function(item,_){_updatePropsJS(updates,item);});}}}"; _f.__workletHash = 2597780801718; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/UpdateProps.ts (33:26)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/UpdateProps.ts (33:26)"; return _f; }(); } else { @@ -100887,7 +100903,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(viewDescriptors,updates,_){const{ColorProperties,processColor}=jsThis._closure;{for(const key in updates){if(ColorProperties.indexOf(key)!==-1){updates[key]=processColor(updates[key]);}}viewDescriptors.value.forEach(function(viewDescriptor){_updateProps(viewDescriptor.tag,viewDescriptor.name||'RCTView',updates);});}}"; _f.__workletHash = 5208286904059; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/UpdateProps.ts (46:26)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/UpdateProps.ts (46:26)"; return _f; }(); } @@ -100927,7 +100943,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function call(...args){return'\\\\(\\\\s*('+args.join(')\\\\s*,\\\\s*(')+')\\\\s*\\\\)';}"; _f.__workletHash = 17112204286815; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (29:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (29:0)"; return _f; }(); @@ -100961,7 +100977,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function getMatchers(){const{uiCachedMatchers,jsCachedMatchers,call,NUMBER,PERCENTAGE}=jsThis._closure;{const cachedMatchers=_WORKLET?uiCachedMatchers:jsCachedMatchers;if(cachedMatchers.rgb===undefined){cachedMatchers.rgb=new RegExp('rgb'+call(NUMBER,NUMBER,NUMBER));cachedMatchers.rgba=new RegExp('rgba'+call(NUMBER,NUMBER,NUMBER,NUMBER));cachedMatchers.hsl=new RegExp('hsl'+call(NUMBER,PERCENTAGE,PERCENTAGE));cachedMatchers.hsla=new RegExp('hsla'+call(NUMBER,PERCENTAGE,PERCENTAGE,NUMBER));cachedMatchers.hex3=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/;cachedMatchers.hex4=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/;cachedMatchers.hex6=/^#([0-9a-fA-F]{6})$/;cachedMatchers.hex8=/^#([0-9a-fA-F]{8})$/;}return cachedMatchers;}}"; _f.__workletHash = 11728480460328; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (50:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (50:0)"; return _f; }(); @@ -100995,7 +101011,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function hue2rgb(p,q,t){if(t<0){t+=1;}if(t>1){t-=1;}if(t<1/6){return p+(q-p)*6*t;}if(t<1/2){return q;}if(t<2/3){return p+(q-p)*(2/3-t)*6;}return p;}"; _f.__workletHash = 3618366985414; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (79:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (79:0)"; return _f; }(); @@ -101014,7 +101030,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function hslToRgb(h,s,l){const{hue2rgb}=jsThis._closure;{const q=l<0.5?l*(1+s):l+s-l*s;const p=2*l-q;const r=hue2rgb(p,q,h+1/3);const g=hue2rgb(p,q,h);const b=hue2rgb(p,q,h-1/3);return Math.round(r*255)<<24|Math.round(g*255)<<16|Math.round(b*255)<<8;}}"; _f.__workletHash = 4500055963175; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (99:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (99:0)"; return _f; }(); @@ -101036,7 +101052,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function parse255(str){const int=Number.parseInt(str,10);if(int<0){return 0;}if(int>255){return 255;}return int;}"; _f.__workletHash = 7024550667346; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (114:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (114:0)"; return _f; }(); @@ -101049,7 +101065,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function parse360(str){const int=Number.parseFloat(str);return(int%360+360)%360/360;}"; _f.__workletHash = 6683812623228; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (126:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (126:0)"; return _f; }(); @@ -101071,7 +101087,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function parse1(str){const num=Number.parseFloat(str);if(num<0){return 0;}if(num>1){return 255;}return Math.round(num*255);}"; _f.__workletHash = 7197247664793; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (132:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (132:0)"; return _f; }(); @@ -101093,7 +101109,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function parsePercentage(str){const int=Number.parseFloat(str);if(int<0){return 0;}if(int>100){return 1;}return int/100;}"; _f.__workletHash = 8813932430184; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (144:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (144:0)"; return _f; }(); @@ -101319,7 +101335,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function normalizeColor(color){const{getMatchers,names,parse255,parse1,hslToRgb,parse360,parsePercentage}=jsThis._closure;{var _matchers$hex,_matchers$rgb,_matchers$rgba,_matchers$hex2,_matchers$hex3,_matchers$hex4,_matchers$hsl,_matchers$hsla;if(typeof color==='number'){if(color>>>0===color&&color>=0&&color<=0xffffffff){return color;}return null;}if(typeof color!=='string'){return null;}const matchers=getMatchers();let match;if(match=matchers===null||matchers===void 0?void 0:(_matchers$hex=matchers.hex6)===null||_matchers$hex===void 0?void 0:_matchers$hex.exec(color)){return Number.parseInt(match[1]+'ff',16)>>>0;}if(names[color]!==undefined){return names[color];}if(match=matchers===null||matchers===void 0?void 0:(_matchers$rgb=matchers.rgb)===null||_matchers$rgb===void 0?void 0:_matchers$rgb.exec(color)){return(parse255(match[1])<<24|parse255(match[2])<<16|parse255(match[3])<<8|0x000000ff)>>>0;}if(match=matchers===null||matchers===void 0?void 0:(_matchers$rgba=matchers.rgba)===null||_matchers$rgba===void 0?void 0:_matchers$rgba.exec(color)){return(parse255(match[1])<<24|parse255(match[2])<<16|parse255(match[3])<<8|parse1(match[4]))>>>0;}if(match=matchers===null||matchers===void 0?void 0:(_matchers$hex2=matchers.hex3)===null||_matchers$hex2===void 0?void 0:_matchers$hex2.exec(color)){return Number.parseInt(match[1]+match[1]+match[2]+match[2]+match[3]+match[3]+'ff',16)>>>0;}if(match=matchers===null||matchers===void 0?void 0:(_matchers$hex3=matchers.hex8)===null||_matchers$hex3===void 0?void 0:_matchers$hex3.exec(color)){return Number.parseInt(match[1],16)>>>0;}if(match=matchers===null||matchers===void 0?void 0:(_matchers$hex4=matchers.hex4)===null||_matchers$hex4===void 0?void 0:_matchers$hex4.exec(color)){return Number.parseInt(match[1]+match[1]+match[2]+match[2]+match[3]+match[3]+match[4]+match[4],16)>>>0;}if(match=matchers===null||matchers===void 0?void 0:(_matchers$hsl=matchers.hsl)===null||_matchers$hsl===void 0?void 0:_matchers$hsl.exec(color)){return(hslToRgb(parse360(match[1]),parsePercentage(match[2]),parsePercentage(match[3]))|0x000000ff)>>>0;}if(match=matchers===null||matchers===void 0?void 0:(_matchers$hsla=matchers.hsla)===null||_matchers$hsla===void 0?void 0:_matchers$hsla.exec(color)){return(hslToRgb(parse360(match[1]),parsePercentage(match[2]),parsePercentage(match[3]))|parse1(match[4]))>>>0;}return null;}}"; _f.__workletHash = 10755688444334; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (314:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (314:0)"; return _f; }(); @@ -101331,7 +101347,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function _f(c){return(c>>24&255)/255;}"; _f.__workletHash = 14708696455524; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (426:23)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (426:23)"; return _f; }(); @@ -101343,7 +101359,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function _f(c){return c>>16&255;}"; _f.__workletHash = 12808130152281; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (431:19)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (431:19)"; return _f; }(); @@ -101355,7 +101371,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function _f(c){return c>>8&255;}"; _f.__workletHash = 3499836539046; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (436:21)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (436:21)"; return _f; }(); @@ -101367,7 +101383,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function _f(c){return c&255;}"; _f.__workletHash = 14770248723134; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (441:20)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (441:20)"; return _f; }(); @@ -101395,7 +101411,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(r,g,b,alpha=1){const{Platform}=jsThis._closure;{if(Platform.OS==='web'||!_WORKLET){return\"rgba(\"+r+\", \"+g+\", \"+b+\", \"+alpha+\")\";}const c=Math.round(alpha*255)*(1<<24)+Math.round(r)*(1<<16)+Math.round(g)*(1<<8)+Math.round(b);if(Platform.OS==='android'){return c<1<<31>>>0?c:c-4294967296;}return c;}}"; _f.__workletHash = 3685267134575; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (446:25)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Colors.ts (446:25)"; return _f; }(); @@ -101446,7 +101462,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function RGBtoHSV(r,g,b){if(arguments.length===1){g=r.g;b=r.b;r=r.r;}const max=Math.max(r,g,b);const min=Math.min(r,g,b);const d=max-min;const s=max===0?0:d/max;const v=max/255;let h;switch(max){default:case min:h=0;break;case r:h=g-b+d*(g0){const currentAnimation=animationsToCheck.pop();if(Array.isArray(currentAnimation)){for(const element of currentAnimation){animationsToCheck.push(element);}}else if(typeof currentAnimation==='object'&¤tAnimation.onStart===undefined){for(const value of Object.values(currentAnimation)){animationsToCheck.push(value);}}else{const currentStyleAnimation=currentAnimation;if(!currentStyleAnimation.finished&¤tStyleAnimation.callback){currentStyleAnimation.callback(false);}}}}};return{isHigherOrder:true,onFrame:onFrame,onStart:onStart,current:{},styleAnimations:styleAnimations,callback:callback};}}"; _f.__workletHash = 16217306184372; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/animation/styleAnimation.ts (73:51)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/animation/styleAnimation.ts (73:51)"; return _f; }()); }; @@ -101902,7 +101918,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function withStyleAnimation(styleAnimations){const{defineAnimation,ColorProperties,processColor,setPath,resolvePath,withTiming}=jsThis._closure;{return defineAnimation({},function(){'worklet';const onFrame=function(animation,now){let stillGoing=false;const entriesToCheck=[{value:animation.styleAnimations,path:[]}];while(entriesToCheck.length>0){const currentEntry=entriesToCheck.pop();if(Array.isArray(currentEntry.value)){for(let index=0;index0){const currentEntry=entriesToCheck.pop();if(Array.isArray(currentEntry.value)){for(let index=0;index0){const currentAnimation=animationsToCheck.pop();if(Array.isArray(currentAnimation)){for(const element of currentAnimation){animationsToCheck.push(element);}}else if(typeof currentAnimation==='object'&¤tAnimation.onStart===undefined){for(const value of Object.values(currentAnimation)){animationsToCheck.push(value);}}else{const currentStyleAnimation=currentAnimation;if(!currentStyleAnimation.finished&¤tStyleAnimation.callback){currentStyleAnimation.callback(false);}}}}};return{isHigherOrder:true,onFrame:onFrame,onStart:onStart,current:{},styleAnimations:styleAnimations,callback:callback};});}}"; _f.__workletHash = 5859144058646; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/animation/styleAnimation.ts (69:7)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/animation/styleAnimation.ts (69:7)"; return _f; }(); },699,[700,697,698,701]); @@ -101954,7 +101970,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function recognizePrefixSuffix(value){if(typeof value==='string'){var _match$;const match=value.match(/([A-Za-z]*)(-?\\d*\\.?\\d*)([eE][-+]?[0-9]+)?([A-Za-z%]*)/);if(!match){throw Error(\"Couldn't parse animation value. Check if there isn't any typo.\");}const prefix=match[1];const suffix=match[4];const number=match[2]+((_match$=match[3])!==null&&_match$!==void 0?_match$:'');return{prefix:prefix,suffix:suffix,strippedValue:parseFloat(number)};}else{return{strippedValue:value};}}"; _f.__workletHash = 10298453511432; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (45:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (45:0)"; return _f; }(); @@ -102107,7 +102123,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function decorateAnimation(animation){const{recognizePrefixSuffix,isColor,toLinearSpace,convertToRGBA,rgbaArrayToRGBAColor,toGammaSpace}=jsThis._closure;{if(animation.isHigherOrder){return;}const baseOnStart=animation.onStart;const baseOnFrame=animation.onFrame;const animationCopy=Object.assign({},animation);delete animationCopy.callback;const prefNumberSuffOnStart=function(animation,value,timestamp,previousAnimation){var _animation$__prefix,_animation$__suffix;const{prefix:prefix,suffix:suffix,strippedValue:strippedValue}=recognizePrefixSuffix(value);animation.__prefix=prefix;animation.__suffix=suffix;animation.strippedCurrent=strippedValue;const{strippedValue:strippedToValue}=recognizePrefixSuffix(animation.toValue);animation.current=strippedValue;animation.startValue=strippedValue;animation.toValue=strippedToValue;if(previousAnimation&&previousAnimation!==animation){const{prefix:paPrefix,suffix:paSuffix,strippedValue:paStrippedValue}=recognizePrefixSuffix(previousAnimation.current);previousAnimation.current=paStrippedValue;previousAnimation.__prefix=paPrefix;previousAnimation.__suffix=paSuffix;}baseOnStart(animation,strippedValue,timestamp,previousAnimation);animation.current=((_animation$__prefix=animation.__prefix)!==null&&_animation$__prefix!==void 0?_animation$__prefix:'')+animation.current+((_animation$__suffix=animation.__suffix)!==null&&_animation$__suffix!==void 0?_animation$__suffix:'');if(previousAnimation&&previousAnimation!==animation){var _previousAnimation$__,_previousAnimation$__2;previousAnimation.current=((_previousAnimation$__=previousAnimation.__prefix)!==null&&_previousAnimation$__!==void 0?_previousAnimation$__:'')+previousAnimation.current+((_previousAnimation$__2=previousAnimation.__suffix)!==null&&_previousAnimation$__2!==void 0?_previousAnimation$__2:'');}};const prefNumberSuffOnFrame=function(animation,timestamp){var _animation$__prefix2,_animation$__suffix2;animation.current=animation.strippedCurrent;const res=baseOnFrame(animation,timestamp);animation.strippedCurrent=animation.current;animation.current=((_animation$__prefix2=animation.__prefix)!==null&&_animation$__prefix2!==void 0?_animation$__prefix2:'')+animation.current+((_animation$__suffix2=animation.__suffix)!==null&&_animation$__suffix2!==void 0?_animation$__suffix2:'');return res;};const tab=['R','G','B','A'];const colorOnStart=function(animation,value,timestamp,previousAnimation){let RGBAValue;let RGBACurrent;let RGBAToValue;const res=[];if(isColor(value)){RGBACurrent=toLinearSpace(convertToRGBA(animation.current));RGBAValue=toLinearSpace(convertToRGBA(value));if(animation.toValue){RGBAToValue=toLinearSpace(convertToRGBA(animation.toValue));}}tab.forEach(function(i,index){animation[i]=Object.assign({},animationCopy);animation[i].current=RGBACurrent[index];animation[i].toValue=RGBAToValue?RGBAToValue[index]:undefined;animation[i].onStart(animation[i],RGBAValue[index],timestamp,previousAnimation?previousAnimation[i]:undefined);res.push(animation[i].current);});animation.current=rgbaArrayToRGBAColor(toGammaSpace(res));};const colorOnFrame=function(animation,timestamp){const RGBACurrent=toLinearSpace(convertToRGBA(animation.current));const res=[];let finished=true;tab.forEach(function(i,index){animation[i].current=RGBACurrent[index];finished&=animation[i].onFrame(animation[i],timestamp);res.push(animation[i].current);});animation.current=rgbaArrayToRGBAColor(toGammaSpace(res));return finished;};const arrayOnStart=function(animation,value,timestamp,previousAnimation){value.forEach(function(v,i){animation[i]=Object.assign({},animationCopy);animation[i].current=v;animation[i].toValue=animation.toValue[i];animation[i].onStart(animation[i],v,timestamp,previousAnimation?previousAnimation[i]:undefined);});animation.current=value;};const arrayOnFrame=function(animation,timestamp){let finished=true;animation.current.forEach(function(v,i){finished&=animation[i].onFrame(animation[i],timestamp);animation.current[i]=animation[i].current;});return finished;};animation.onStart=function(animation,value,timestamp,previousAnimation){if(isColor(value)){colorOnStart(animation,value,timestamp,previousAnimation);animation.onFrame=colorOnFrame;return;}else if(Array.isArray(value)){arrayOnStart(animation,value,timestamp,previousAnimation);animation.onFrame=arrayOnFrame;return;}else if(typeof value==='string'){prefNumberSuffOnStart(animation,value,timestamp,previousAnimation);animation.onFrame=prefNumberSuffOnFrame;return;}baseOnStart(animation,value,timestamp,previousAnimation);};}}"; _f.__workletHash = 7767808760058; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (66:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (66:0)"; return _f; }(); @@ -102130,7 +102146,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(){const{factory,decorateAnimation}=jsThis._closure;{const animation=factory();decorateAnimation(animation);return animation;}}"; _f.__workletHash = 2441595458132; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (267:17)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (267:17)"; return _f; }(); @@ -102150,7 +102166,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function defineAnimation(starting,factory){const{IN_STYLE_UPDATER,decorateAnimation,NativeReanimatedModule}=jsThis._closure;{if(IN_STYLE_UPDATER){return starting;}const create=function(){'worklet';const animation=factory();decorateAnimation(animation);return animation;};if(_WORKLET||!NativeReanimatedModule.native){return create();}return create;}}"; _f.__workletHash = 4939784890886; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (260:7)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (260:7)"; return _f; }(); @@ -102162,7 +102178,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function cancelAnimation(sharedValue){sharedValue.value=sharedValue.value;}"; _f.__workletHash = 15056882569526; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (281:7)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (281:7)"; return _f; }(); @@ -102184,7 +102200,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(){const{animation,startValue}=jsThis._closure;{if(!_WORKLET&&typeof animation==='function'){animation=animation();}animation.current=startValue;return animation;}}"; _f.__workletHash = 5374403234008; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (293:37)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (293:37)"; return _f; }()); }; @@ -102194,7 +102210,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function withStartValue(startValue,animation){const{defineAnimation}=jsThis._closure;{return defineAnimation(startValue,function(){'worklet';if(!_WORKLET&&typeof animation==='function'){animation=animation();}animation.current=startValue;return animation;});}}"; _f.__workletHash = 5100017907325; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (288:7)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts (288:7)"; return _f; }(); },700,[3,661,698]); @@ -102281,7 +102297,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(){const{Easing,userConfig,toValue,callback}=jsThis._closure;{const config={duration:300,easing:Easing.inOut(Easing.quad)};if(userConfig){Object.keys(userConfig).forEach(function(key){return config[key]=userConfig[key];});}function timing(animation,now){const{toValue:toValue,startTime:startTime,startValue:startValue}=animation;const runtime=now-startTime;if(runtime>=config.duration){animation.startTime=0;animation.current=toValue;return true;}const progress=animation.easing(runtime/config.duration);animation.current=startValue+(toValue-startValue)*progress;return false;}function onStart(animation,value,now,previousAnimation){if(previousAnimation&&previousAnimation.type==='timing'&&previousAnimation.toValue===toValue&&previousAnimation.startTime){animation.startTime=previousAnimation.startTime;animation.startValue=previousAnimation.startValue;}else{animation.startTime=now;animation.startValue=value;}animation.current=value;if(typeof config.easing==='object'){animation.easing=config.easing.factory();}else{animation.easing=config.easing;}}return{type:'timing',onFrame:timing,onStart:onStart,progress:0,toValue:toValue,startValue:0,startTime:0,easing:function(){return 0;},current:toValue,callback:callback};}}"; _f.__workletHash = 7771814081277; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/animation/timing.ts (38:51)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/animation/timing.ts (38:51)"; return _f; }()); }; @@ -102295,7 +102311,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function withTiming(toValue,userConfig,callback){const{defineAnimation,Easing}=jsThis._closure;{return defineAnimation(toValue,function(){'worklet';const config={duration:300,easing:Easing.inOut(Easing.quad)};if(userConfig){Object.keys(userConfig).forEach(function(key){return config[key]=userConfig[key];});}function timing(animation,now){const{toValue:toValue,startTime:startTime,startValue:startValue}=animation;const runtime=now-startTime;if(runtime>=config.duration){animation.startTime=0;animation.current=toValue;return true;}const progress=animation.easing(runtime/config.duration);animation.current=startValue+(toValue-startValue)*progress;return false;}function onStart(animation,value,now,previousAnimation){if(previousAnimation&&previousAnimation.type==='timing'&&previousAnimation.toValue===toValue&&previousAnimation.startTime){animation.startTime=previousAnimation.startTime;animation.startValue=previousAnimation.startValue;}else{animation.startTime=now;animation.startValue=value;}animation.current=value;if(typeof config.easing==='object'){animation.easing=config.easing.factory();}else{animation.easing=config.easing;}}return{type:'timing',onFrame:timing,onStart:onStart,progress:0,toValue:toValue,startValue:0,startTime:0,easing:function(){return 0;},current:toValue,callback:callback};});}}"; _f.__workletHash = 2875714024024; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/animation/timing.ts (31:7)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/animation/timing.ts (31:7)"; return _f; }(); },701,[700,702]); @@ -102315,7 +102331,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function linear(t){return t;}"; _f.__workletHash = 7988822508142; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (66:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (66:0)"; return _f; }(); @@ -102329,7 +102345,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function ease(t){const{Bezier}=jsThis._closure;{return Bezier(0.42,0,1,1)(t);}}"; _f.__workletHash = 13039945852153; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (77:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (77:0)"; return _f; }(); @@ -102341,7 +102357,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function quad(t){return t*t;}"; _f.__workletHash = 8628631460172; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (88:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (88:0)"; return _f; }(); @@ -102353,7 +102369,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function cubic(t){return t*t*t;}"; _f.__workletHash = 9374441307661; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (99:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (99:0)"; return _f; }(); @@ -102369,7 +102385,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(t){const{n}=jsThis._closure;{return Math.pow(t,n);}}"; _f.__workletHash = 1121339919789; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (112:9)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (112:9)"; return _f; }(); }; @@ -102377,7 +102393,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function poly(n){return function(t){'worklet';return Math.pow(t,n);};}"; _f.__workletHash = 16553371555377; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (110:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (110:0)"; return _f; }(); @@ -102389,7 +102405,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function sin(t){return 1-Math.cos(t*Math.PI/2);}"; _f.__workletHash = 8621899987563; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (123:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (123:0)"; return _f; }(); @@ -102401,7 +102417,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function circle(t){return 1-Math.sqrt(1-t*t);}"; _f.__workletHash = 15893365817828; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (133:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (133:0)"; return _f; }(); @@ -102413,7 +102429,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function exp(t){return Math.pow(2,10*(t-1));}"; _f.__workletHash = 15907471981377; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (143:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (143:0)"; return _f; }(); @@ -102431,7 +102447,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(t){const{p}=jsThis._closure;{return 1-Math.pow(Math.cos(t*Math.PI/2),3)*Math.cos(t*p);}}"; _f.__workletHash = 8897284077766; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (161:9)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (161:9)"; return _f; }(); }; @@ -102439,7 +102455,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function elastic(bounciness=1){const p=bounciness*Math.PI;return function(t){'worklet';return 1-Math.pow(Math.cos(t*Math.PI/2),3)*Math.cos(t*p);};}"; _f.__workletHash = 15898989302935; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (158:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (158:0)"; return _f; }(); @@ -102456,7 +102472,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(t){const{s}=jsThis._closure;{return t*t*((s+1)*t-s);}}"; _f.__workletHash = 9334724225624; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (177:9)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (177:9)"; return _f; }(); }; @@ -102464,7 +102480,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function back(s=1.70158){return function(t){'worklet';return t*t*((s+1)*t-s);};}"; _f.__workletHash = 2360128598492; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (175:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (175:0)"; return _f; }(); @@ -102493,7 +102509,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function bounce(t){if(t<1/2.75){return 7.5625*t*t;}if(t<2/2.75){const t2=t-1.5/2.75;return 7.5625*t2*t2+0.75;}if(t<2.5/2.75){const t2=t-2.25/2.75;return 7.5625*t2*t2+0.9375;}const t2=t-2.625/2.75;return 7.5625*t2*t2+0.984375;}"; _f.__workletHash = 5721637210615; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (188:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (188:0)"; return _f; }(); @@ -102514,7 +102530,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(){const{Bezier,x1,y1,x2,y2}=jsThis._closure;{return Bezier(x1,y1,x2,y2);}}"; _f.__workletHash = 4879686787739; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (223:13)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (223:13)"; return _f; }() }; @@ -102525,7 +102541,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function bezier(x1,y1,x2,y2){const{Bezier}=jsThis._closure;{return{factory:function(){'worklet';return Bezier(x1,y1,x2,y2);}};}}"; _f.__workletHash = 853527302262; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (215:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (215:0)"; return _f; }(); @@ -102539,7 +102555,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function bezierFn(x1,y1,x2,y2){const{Bezier}=jsThis._closure;{return Bezier(x1,y1,x2,y2);}}"; _f.__workletHash = 15185855900453; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (230:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (230:0)"; return _f; }(); @@ -102551,7 +102567,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function in_(easing){return easing;}"; _f.__workletHash = 1837493474379; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (243:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (243:0)"; return _f; }(); @@ -102567,7 +102583,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(t){const{easing}=jsThis._closure;{return 1-easing(1-t);}}"; _f.__workletHash = 5726884014519; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (253:9)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (253:9)"; return _f; }(); }; @@ -102575,7 +102591,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function out(easing){return function(t){'worklet';return 1-easing(1-t);};}"; _f.__workletHash = 7718549646703; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (251:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (251:0)"; return _f; }(); @@ -102595,7 +102611,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function _f(t){const{easing}=jsThis._closure;{if(t<0.5){return easing(t*2)/2;}return 1-easing((1-t)*2)/2;}}"; _f.__workletHash = 2325007799982; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (266:9)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (266:9)"; return _f; }(); }; @@ -102603,7 +102619,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _f._closure = {}; _f.asString = "function inOut(easing){return function(t){'worklet';if(t<0.5){return easing(t*2)/2;}return 1-easing((1-t)*2)/2;};}"; _f.__workletHash = 7048715165105; - _f.__location = "/Users/ipaddev/sdk/3.16.09.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (264:0)"; + _f.__location = "/Users/ipaddev/sdk/3.16.13.rc/node_modules/react-native-reanimated/src/reanimated2/Easing.ts (264:0)"; return _f; }(); @@ -102663,7 +102679,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _f.asString = "function checkIfReaOne(){const{prevArgs,EasingNode,workletName,worklet,createChecker}=jsThis._closure;{if(arguments&&!_WORKLET){for(let i=0;i2){if(x>input[length-1]){narrowedInput.leftEdgeInput=input[length-2];narrowedInput.rightEdgeInput=input[length-1];narrowedInput.leftEdgeOutput=output[length-2];narrowedInput.rightEdgeOutput=output[length-1];}else{for(let i=1;i 0 && arguments[0] !== undefined ? arguments[0] : {}; var merged = RnCss.CssHelper.mergeRnStyles((0, _$$_REQUIRE(_dependencyMap[14]).getDefaultStyles)(), otherStyles, (0, _$$_REQUIRE(_dependencyMap[15]).getDebugStyles)()); + var activeTheme = Css.getUserTheme() || RnCss.CssHelper.getDefaultTheme(merged); RnCss.default.set(Object.assign({ rnStyles: merged }, getDeviceInfo(), { - activeTheme: Css.getUserTheme() + activeTheme: activeTheme })); } }, { @@ -118417,6 +118446,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return RnCss.CssHelper.isActiveThemeDark() ? _$$_REQUIRE(_dependencyMap[11]).colors.white_transparent_135 : _$$_REQUIRE(_dependencyMap[11]).colors.black; } + }, { + key: "getDefaultSearchColor", + value: function getDefaultSearchColor() { + var _RnCss$CssHelper$getA4 = RnCss.CssHelper.getActiveBaseColors(), + search = _RnCss$CssHelper$getA4.search; + + if (search) { + return search; + } + + return _$$_REQUIRE(_dependencyMap[16]).SEARCH_COLOR; + } }, { key: "isDarkTheme", value: function isDarkTheme() { @@ -118439,7 +118480,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Css.Provider = CssProvider; Css.use = RnCss.useCss; -},803,[3,270,6,7,11,13,14,804,16,436,434,438,179,550,810,811]); +},803,[3,270,6,7,11,13,14,804,16,436,434,438,179,550,810,812,811]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -118583,7 +118624,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _$$_REQUIRE(_dependencyMap[5]).CssManager.getActiveBaseColors(Css.get().state); }, mergeRnStyles: _$$_REQUIRE(_dependencyMap[6]).CssUtils.mergeRnStyles, - resolvePlaceholders: _$$_REQUIRE(_dependencyMap[6]).CssUtils.resolvePlaceholders + resolvePlaceholders: _$$_REQUIRE(_dependencyMap[6]).CssUtils.resolvePlaceholders, + getDefaultTheme: _$$_REQUIRE(_dependencyMap[6]).CssUtils.getDefaultTheme }; var _default = exports.default = Css; @@ -119001,17 +119043,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return activeTheme; } - var themes = rnStyles.themes; - - if (typeof themes === "object") { - return Object.keys(themes).find(function (key) { - var _themes$key4; - - return typeof themes[key] === "object" && ((_themes$key4 = themes[key]) === null || _themes$key4 === undefined ? undefined : _themes$key4.default) === 1; - }); - } - - return undefined; + return _$$_REQUIRE(_dependencyMap[5]).CssUtils.getDefaultTheme(rnStyles); } _CssManager.getActiveThemeId = getActiveThemeId; @@ -119115,6 +119147,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + function getDefaultTheme() { + var defaultStyles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var themes = defaultStyles.themes; + + if (typeof themes === "object") { + return Object.keys(themes).find(function (key) { + var _themes$key; + + return typeof themes[key] === "object" && ((_themes$key = themes[key]) === null || _themes$key === undefined ? undefined : _themes$key.default) === 1; + }); + } + + return undefined; + } + + _CssUtils.getDefaultTheme = getDefaultTheme; + function mergeRnStyles(defaultStyles) { for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { args[_key - 1] = arguments[_key]; @@ -119255,7 +119304,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e colors: { foreground: _$$_REQUIRE(_dependencyMap[0]).colors.black, background: _$$_REQUIRE(_dependencyMap[0]).colors.white, - alternateBackground: _$$_REQUIRE(_dependencyMap[0]).colors.grey200 + alternateBackground: _$$_REQUIRE(_dependencyMap[0]).colors.grey200, + search: _$$_REQUIRE(_dependencyMap[1]).SEARCH_COLOR }, styles: { "newsmemory-article-container-splitscreen": { @@ -119277,6 +119327,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, "newsmemory-article-header-icon-toggleArticleExtra": { tintColor: _$$_REQUIRE(_dependencyMap[0]).colors.white + }, + "newsmemory-article-mode-header-search": { + backgroundColor: "{search}" } } }, @@ -119422,6 +119475,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: "{alternateBackground}", color: "{foreground}" }, + "newsmemory-article-mode-header-search": { + backgroundColor: "{alternateBackground}" + }, "newsmemory-search": { color: "{foreground}" }, @@ -119589,30 +119645,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, "epaper-logo-image": { filters: [{ - filter: _$$_REQUIRE(_dependencyMap[1]).FILTERS.GRAYSCALE + filter: _$$_REQUIRE(_dependencyMap[2]).FILTERS.GRAYSCALE }, { - filter: _$$_REQUIRE(_dependencyMap[1]).FILTERS.INVERT + filter: _$$_REQUIRE(_dependencyMap[2]).FILTERS.INVERT }] }, "navigation-header-logo": { filters: [{ - filter: _$$_REQUIRE(_dependencyMap[1]).FILTERS.GRAYSCALE + filter: _$$_REQUIRE(_dependencyMap[2]).FILTERS.GRAYSCALE }, { - filter: _$$_REQUIRE(_dependencyMap[1]).FILTERS.INVERT + filter: _$$_REQUIRE(_dependencyMap[2]).FILTERS.INVERT }] }, "drawer-header-logo": { filters: [{ - filter: _$$_REQUIRE(_dependencyMap[1]).FILTERS.GRAYSCALE + filter: _$$_REQUIRE(_dependencyMap[2]).FILTERS.GRAYSCALE }, { - filter: _$$_REQUIRE(_dependencyMap[1]).FILTERS.INVERT + filter: _$$_REQUIRE(_dependencyMap[2]).FILTERS.INVERT }] }, "drawer-item-icon": { filters: [{ - filter: _$$_REQUIRE(_dependencyMap[1]).FILTERS.GRAYSCALE + filter: _$$_REQUIRE(_dependencyMap[2]).FILTERS.GRAYSCALE }, { - filter: _$$_REQUIRE(_dependencyMap[1]).FILTERS.INVERT + filter: _$$_REQUIRE(_dependencyMap[2]).FILTERS.INVERT }], image: "inherit" } @@ -119639,7 +119695,44 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; } -},810,[438,603]); +},810,[438,811,603]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.TITLE_SIZE = exports.SUB_HEADER_HEIGHT = exports.SEARCH_TEXT_SIZE = exports.SEARCH_COLOR = exports.PAGE_SIZE = exports.LOGO_PARENT_HEIGHT = exports.LOGO_HEIGHT = exports.LIST_TITLE_SIZE = exports.LIST_ITEM_SEPARATOR_HEIGHT = exports.LIST_ITEM_SEPARATOR_COLOR = exports.LIST_ITEM_PADDING = exports.LIST_ITEM_HEIGHT = exports.INFO_SIZE = exports.HIDE_ANIMATION_TIMER = exports.HIDE_ANIMATION_FOOTER_TIMER = exports.HIDE_ANIMATION_DURATION = exports.HEADER_PARENT_BUTTON_SIZE = exports.HEADER_PARENT_BUTTON_PADDING = exports.HEADER_PADDING = exports.HEADER_HR_SIZE = exports.HEADER_HEIGHT = exports.HEADER_FONT_SIZE = exports.HEADER_BUTTON_SIZE = exports.HEADER_BG_COLOR = exports.FOOTER_FONT_SIZE = undefined; + var HEADER_HEIGHT = exports.HEADER_HEIGHT = 50; + var HEADER_PADDING = exports.HEADER_PADDING = 10; + var SUB_HEADER_HEIGHT = exports.SUB_HEADER_HEIGHT = 40; + + var HEADER_BG_COLOR = exports.HEADER_BG_COLOR = _$$_REQUIRE(_dependencyMap[0]).colors.black; + + var HEADER_PARENT_BUTTON_SIZE = exports.HEADER_PARENT_BUTTON_SIZE = 45; + var HEADER_PARENT_BUTTON_PADDING = exports.HEADER_PARENT_BUTTON_PADDING = 7.5; + var HEADER_BUTTON_SIZE = exports.HEADER_BUTTON_SIZE = 30; + var HEADER_HR_SIZE = exports.HEADER_HR_SIZE = 1; + var HEADER_FONT_SIZE = exports.HEADER_FONT_SIZE = 18; + var LOGO_PARENT_HEIGHT = exports.LOGO_PARENT_HEIGHT = 50; + var LOGO_HEIGHT = exports.LOGO_HEIGHT = "100%"; + var LIST_TITLE_SIZE = exports.LIST_TITLE_SIZE = 18; + var LIST_ITEM_HEIGHT = exports.LIST_ITEM_HEIGHT = 50; + var LIST_ITEM_PADDING = exports.LIST_ITEM_PADDING = 6; + var LIST_ITEM_SEPARATOR_HEIGHT = exports.LIST_ITEM_SEPARATOR_HEIGHT = 0.5; + + var LIST_ITEM_SEPARATOR_COLOR = exports.LIST_ITEM_SEPARATOR_COLOR = _$$_REQUIRE(_dependencyMap[0]).colors.grey300; + + var TITLE_SIZE = exports.TITLE_SIZE = 22; + var PAGE_SIZE = exports.PAGE_SIZE = 22; + var INFO_SIZE = exports.INFO_SIZE = 16; + var SEARCH_TEXT_SIZE = exports.SEARCH_TEXT_SIZE = 16; + + var SEARCH_COLOR = exports.SEARCH_COLOR = _$$_REQUIRE(_dependencyMap[0]).colors.md_red_400; + + var FOOTER_FONT_SIZE = exports.FOOTER_FONT_SIZE = 16; + var HIDE_ANIMATION_FOOTER_TIMER = exports.HIDE_ANIMATION_FOOTER_TIMER = 5000; + var HIDE_ANIMATION_TIMER = exports.HIDE_ANIMATION_TIMER = 3000; + var HIDE_ANIMATION_DURATION = exports.HIDE_ANIMATION_DURATION = 1000; +},811,[438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -119653,7 +119746,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return {}; } -},811,[]); +},812,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -119761,7 +119854,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = JsModal; -},812,[3,4,568,16,18,438,179]); +},813,[3,4,568,16,18,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -119980,7 +120073,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var ModalStyle = exports.ModalStyle = styles; var _default = exports.default = TaModal; -},813,[3,33,4,568,16,18,814,434,839,840,438,179,803]); +},814,[3,33,4,568,16,18,815,434,840,841,438,179,803]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -119994,7 +120087,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.default = undefined; var _default = exports.default = _$$_REQUIRE(_dependencyMap[0]).ReactNativeModal; -},814,[815]); +},815,[816]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -120735,7 +120828,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ReactNativeModal.defaultProps = defaultProps; var _default = exports.default = ReactNativeModal; -},815,[3,4,6,7,11,13,14,16,18,568,816,837,838]); +},816,[3,4,6,7,11,13,14,16,18,568,817,838,839]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -120777,7 +120870,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var View = exports.View = (0, _createAnimatableComponent.default)(_reactNative.View); var Text = exports.Text = (0, _createAnimatableComponent.default)(_reactNative.Text); var Image = exports.Image = (0, _createAnimatableComponent.default)(_reactNative.Image); -},816,[817,18,3,820,825,818]); +},817,[818,18,3,821,826,819]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -120808,7 +120901,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e registerAnimation(animationName, (0, _createAnimation.default)(definitions[animationName])); }); } -},817,[3,818]); +},818,[3,819]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -120906,7 +120999,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cache[cacheKey] = compiled; return compiled; } -},818,[3,819]); +},819,[3,820]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -120928,7 +121021,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return flatStyle; } -},819,[18]); +},820,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -121488,7 +121581,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e useNativeDriver: false }, _AnimatableComponent; } -},820,[3,6,7,11,13,14,16,568,18,821,822,819,818,824,817,179]); +},821,[3,6,7,11,13,14,16,568,18,822,823,820,819,825,818,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -121514,7 +121607,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); return wrapped; } -},821,[3,240]); +},822,[3,240]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -121533,7 +121626,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); return values; } -},822,[3,819,823]); +},823,[3,820,824]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -121593,7 +121686,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return 0; } -},823,[]); +},824,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -121635,7 +121728,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = EASING_FUNCTIONS; -},824,[18]); +},825,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -121750,7 +121843,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},825,[826,827,828,829,830,831,832,833,834,835,836]); +},826,[827,828,829,830,831,832,833,834,835,836,837]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -122028,7 +122121,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e rotate: '0deg' } }; -},826,[]); +},827,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -122133,7 +122226,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e translateX: 0 } }; -},827,[]); +},828,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -122251,7 +122344,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e translateX: -600 } }; -},828,[]); +},829,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -122287,7 +122380,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var fadeInUpBig = exports.fadeInUpBig = makeFadeInTranslation('translateY', 500); var fadeInLeftBig = exports.fadeInLeftBig = makeFadeInTranslation('translateX', -500); var fadeInRightBig = exports.fadeInRightBig = makeFadeInTranslation('translateX', 500); -},829,[3,240]); +},830,[3,240]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -122323,7 +122416,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var fadeOutUpBig = exports.fadeOutUpBig = makeFadeOutTranslation('translateY', -500); var fadeOutLeftBig = exports.fadeOutLeftBig = makeFadeOutTranslation('translateX', -500); var fadeOutRightBig = exports.fadeOutRightBig = makeFadeOutTranslation('translateX', 500); -},830,[3,240]); +},831,[3,240]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -122415,7 +122508,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e rotateY: '90deg' } }; -},831,[]); +},832,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -122455,7 +122548,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e skewX: '30deg' } }; -},832,[]); +},833,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -122475,7 +122568,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var slideInUp = exports.slideInUp = makeSlideInTranslation('translateY', 100); var slideInLeft = exports.slideInLeft = makeSlideInTranslation('translateX', -100); var slideInRight = exports.slideInRight = makeSlideInTranslation('translateX', 100); -},833,[3,240]); +},834,[3,240]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -122495,7 +122588,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var slideOutUp = exports.slideOutUp = makeSlideOutTranslation('translateY', -100); var slideOutLeft = exports.slideOutLeft = makeSlideOutTranslation('translateX', -100); var slideOutRight = exports.slideOutRight = makeSlideOutTranslation('translateX', 100); -},834,[3,240]); +},835,[3,240]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -122541,7 +122634,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var zoomInUp = exports.zoomInUp = makeZoomInTranslation('translateY', -60); var zoomInLeft = exports.zoomInLeft = makeZoomInTranslation('translateX', 10); var zoomInRight = exports.zoomInRight = makeZoomInTranslation('translateX', -10); -},835,[3,240,18]); +},836,[3,240,18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -122589,7 +122682,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var zoomOutUp = exports.zoomOutUp = makeZoomOutTranslation('translateY', -60); var zoomOutLeft = exports.zoomOutLeft = makeZoomOutTranslation('translateX', 10); var zoomOutRight = exports.zoomOutRight = makeZoomOutTranslation('translateX', -10); -},836,[3,240,18]); +},837,[3,240,18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -122618,7 +122711,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: 'transparent' } }); -},837,[18]); +},838,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -122700,7 +122793,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var isObject = function isObject(obj) { return obj !== null && typeof obj === 'object'; }; -},838,[3,240,18,816]); +},839,[3,240,18,817]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -122765,7 +122858,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = TecnaviaKeyboardAvoidingView; -},839,[3,4,33,16,18,179,438]); +},840,[3,4,33,16,18,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -122832,7 +122925,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ModalFooter.defaultProps = {}; var _default = exports.default = ModalFooter; -},840,[3,16,568,18,800,179]); +},841,[3,16,568,18,800,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -123033,7 +123126,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},841,[3,4,6,7,654,438]); +},842,[3,4,6,7,654,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -123207,7 +123300,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},842,[3,6,7,650,654,552,613]); +},843,[3,6,7,650,654,552,613]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -123724,7 +123817,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _NewsmemoryDatabasesManager = NewsmemoryDatabasesManager; NewsmemoryDatabasesManager.database = new _Database.default(_NewsmemoryDatabasesManager.getDatabaseFilePath()); -},843,[3,270,6,7,844,552,842]); +},844,[3,270,6,7,845,552,843]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -124140,7 +124233,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Database.MAX_INSERT_PARAMS = 500; Database.TAG = "DATABASE"; -},844,[3,270,6,7,527,845,552]); +},845,[3,270,6,7,527,846,552]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var config = [[false, "SQLitePlugin", "transaction", false, true, true], [false, "SQLitePlugin", "readTransaction", false, true, true], [false, "SQLitePlugin", "close", false, false, true], [false, "SQLitePlugin", "executeSql", true, false, true], [false, "SQLitePlugin", "sqlBatch", false, false, true], [false, "SQLitePlugin", "attach", true, false, true], [false, "SQLitePlugin", "detach", false, false, true], [false, "SQLitePluginTransaction", "executeSql", true, false, false], [false, "SQLiteFactory", "deleteDatabase", false, false, true], [true, "SQLiteFactory", "openDatabase", false, false, true], [false, "SQLiteFactory", "echoTest", false, false, true]]; var originalFns = {}; @@ -124232,7 +124325,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _$$_REQUIRE(_dependencyMap[1]).SQLiteFactory.prototype.enablePromise = enablePromiseRuntime; module.exports = new (_$$_REQUIRE(_dependencyMap[1]).SQLiteFactory)(); -},845,[33,846]); +},846,[33,847]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var NativeModules = _$$_REQUIRE(_dependencyMap[0]).NativeModules; @@ -125099,7 +125192,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e SQLitePlugin: SQLitePlugin }; module.exports = plugin.sqlitePlugin; -},846,[18]); +},847,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -125316,7 +125409,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},847,[3,270,6,7,552,438]); +},848,[3,270,6,7,552,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -125610,7 +125703,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},848,[3,4,22,11,13,14,6,7,434,438]); +},849,[3,4,22,11,13,14,6,7,434,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -125656,6 +125749,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e HTML5: "NewsmemoryHTML5Screen" }; var URL_TYPES = exports.URL_TYPES = { + NONE: "none", UNDERLINE: "underline", SQUARED: "squared", ROUNDED: "rounded" @@ -126156,7 +126250,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.checksum = (yield this.getValue(keys.checksum)) || ""; this.pushTags = (yield this.getValue(keys.push_tags)) || ""; - this.sslDomains = ((yield this.getValue(keys.ssl_domains)) || "").split(","); this.useAsymmetricCardList = ((yield this.getValue(keys.use_asymmetric_card_list)) || "1") === "1"; this.preventScreenshots = ((yield this.getValue(keys.prevent_screenshots)) || "0") === "1"; return true; @@ -126393,7 +126486,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(_$$_REQUIRE(_dependencyMap[25]).PaperSetupBaseConfig); -},849,[3,270,6,7,11,85,13,14,850,851,852,438,853,855,856,858,859,860,861,862,863,864,1831,1832,1833,857]); +},850,[3,270,6,7,11,85,13,14,851,852,853,438,854,856,857,859,860,861,862,863,811,864,1720,1721,1722,858]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -126841,14 +126934,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e push_tags: "pushTags", disable_reader_app_modal: "disableReaderAppModal", reader_app_learn_more_link: "readerAppLearnMoreLink", - ssl_domains: "sslDomains", use_asymmetric_card_list: "useAsymmetricCardList", prevent_screenshots: "preventScreenshots", enable_phone_article_layout_on_tablet_in_landscape: "enablePhoneArticleLayoutOnTabletInLandscape", enable_desktop_article_layout_on_ipad_pro_in_landscape: "enableDesktopArticleLayoutOnIPadProInLandscape" } }; -},850,[3,270,6,7,438]); +},851,[3,270,6,7,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -126894,45 +126986,47 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "parseUniversalLink", value: function parseUniversalLink(url) { - var params; + if (!url) { + return undefined; + } - if (url) { - if (url.indexOf("?") === -1) { - for (var i = 0; i < UNIVERSAL_LINKS_SUPPORTED_PATHS.length; i++) { - if (url.indexOf("/" + UNIVERSAL_LINKS_SUPPORTED_PATHS[i] + "/") !== -1) { - url = url.replace("/" + UNIVERSAL_LINKS_SUPPORTED_PATHS[i] + "/", "/" + UNIVERSAL_LINKS_SUPPORTED_PATHS[i] + "/?"); - break; - } + if (url.indexOf("?") === -1) { + for (var i = 0; i < UNIVERSAL_LINKS_SUPPORTED_PATHS.length; i++) { + if (url.indexOf("/" + UNIVERSAL_LINKS_SUPPORTED_PATHS[i] + "/") !== -1) { + url = url.replace("/" + UNIVERSAL_LINKS_SUPPORTED_PATHS[i] + "/", "/" + UNIVERSAL_LINKS_SUPPORTED_PATHS[i] + "/?"); + break; } } + } - var info = _$$_REQUIRE(_dependencyMap[4]).StringUtils.segmentUrl(url); + var info = _$$_REQUIRE(_dependencyMap[4]).StringUtils.segmentUrl(url); - var domain = info.domain, - getParams = info.getParams; - var path = info.path; + var domain = info.domain, + getParams = info.getParams; + var path = info.path; - if (!path) { - path = domain; - } + if (!path) { + path = domain; + } - path = path.replace(/\//g, ""); + path = path.replace(/\//g, ""); - if (UNIVERSAL_LINKS_SUPPORTED_PATHS.includes(path)) { - params = getParams || {}; - params.schemaURL = url; - params.schemaPath = path; + if (!UNIVERSAL_LINKS_SUPPORTED_PATHS.includes(path)) { + return undefined; + } - if (params.machine) { - if (_$$_REQUIRE(_dependencyMap[4]).StringUtils.isTecnaviaHTTPDomain(params.machine)) { - var oldMachine = params.machine; - params.machine = _$$_REQUIRE(_dependencyMap[4]).StringUtils.convertNewsmemoryDomainToHTTPS(oldMachine); - params.schemaURL = url.replace("machine=" + oldMachine, "machine=" + params.machine); - params.schemaURL = params.schemaURL.replace("machine=" + encodeURIComponent(oldMachine), "machine=" + params.machine); - } else { - params.schemaURL = params.schemaURL.replace("machine=" + encodeURIComponent(params.machine), "machine=" + params.machine); - } - } + var params = getParams || {}; + params.schemaURL = url; + params.schemaPath = path; + + if (params.machine) { + if (_$$_REQUIRE(_dependencyMap[4]).StringUtils.isTecnaviaHTTPDomain(params.machine)) { + var oldMachine = params.machine; + params.machine = _$$_REQUIRE(_dependencyMap[4]).StringUtils.convertNewsmemoryDomainToHTTPS(oldMachine); + params.schemaURL = url.replace("machine=" + oldMachine, "machine=" + params.machine); + params.schemaURL = params.schemaURL.replace("machine=" + encodeURIComponent(oldMachine), "machine=" + params.machine); + } else { + params.schemaURL = params.schemaURL.replace("machine=" + encodeURIComponent(params.machine), "machine=" + params.machine); } } @@ -127143,9 +127237,39 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var unixTimestamp = new Date().getTime(); return _$$_REQUIRE(_dependencyMap[4]).StringUtils.getMd5(_$$_REQUIRE(_dependencyMap[4]).StringUtils.getMd5("TecnaviaSecret") + global.machineId) + "_" + _$$_REQUIRE(_dependencyMap[4]).StringUtils.getHexOfAsciiOfLong(unixTimestamp / 1000); } + }, { + key: "getTargetBlankPatch", + value: function getTargetBlankPatch() { + return "\n Array.from(document.querySelectorAll('a[target=\"_blank\"]')).forEach(link => link.removeAttribute('target'));"; + } + }, { + key: "getThemeClassesScript", + value: function getThemeClassesScript() { + var themeClasses = _$$_REQUIRE(_dependencyMap[5]).Css.getThemeClasses(); + + if (_$$_REQUIRE(_dependencyMap[4]).JSUtils.isEmpty(themeClasses)) { + return ""; + } + + var args = themeClasses.reduce(function (prev, current) { + return prev ? prev + ", '" + current + "'" : "'" + current + "'"; + }, ""); + return "document.body.classList.add(" + args + ");"; + } + }, { + key: "getThemeClassesAttribute", + value: function getThemeClassesAttribute() { + var themeClasses = _$$_REQUIRE(_dependencyMap[5]).Css.getThemeClasses(); + + if (_$$_REQUIRE(_dependencyMap[4]).JSUtils.isEmpty(themeClasses)) { + return ""; + } + + return " class='" + themeClasses.join(" ") + "'"; + } }]); }(); -},851,[3,6,7,434,438]); +},852,[3,6,7,434,438,803]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -127275,7 +127399,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},852,[3,6,7]); +},853,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -127887,7 +128011,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},853,[3,270,6,7,854,438]); +},854,[3,270,6,7,855,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -127998,7 +128122,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e allowed_ip_user: "allowedIPUser" } }; -},854,[3,270,6,7,438]); +},855,[3,270,6,7,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -128199,7 +128323,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},855,[3,6,7,434,438]); +},856,[3,6,7,434,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -128287,7 +128411,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(_$$_REQUIRE(_dependencyMap[10]).PaperSetupBaseConfig); -},856,[3,270,6,7,11,85,13,14,850,438,857]); +},857,[3,270,6,7,11,85,13,14,851,438,858]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -128393,7 +128517,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},857,[3,270,6,7,850,438]); +},858,[3,270,6,7,851,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -128492,7 +128616,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(_$$_REQUIRE(_dependencyMap[10]).PaperSetupBaseConfig); -},858,[3,270,6,7,11,85,13,14,850,438,857]); +},859,[3,270,6,7,11,85,13,14,851,438,858]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -128564,7 +128688,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(_$$_REQUIRE(_dependencyMap[9]).PaperSetupBaseConfig); -},859,[3,270,6,7,11,85,13,14,850,857]); +},860,[3,270,6,7,11,85,13,14,851,858]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -128658,7 +128782,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(_$$_REQUIRE(_dependencyMap[10]).PaperSetupBaseConfig); -},860,[3,270,11,85,13,14,7,6,850,438,857]); +},861,[3,270,11,85,13,14,7,6,851,438,858]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -128721,7 +128845,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(_$$_REQUIRE(_dependencyMap[9]).PaperSetupBaseConfig); -},861,[3,270,6,7,11,85,13,14,850,857]); +},862,[3,270,6,7,11,85,13,14,851,858]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -128831,44 +128955,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(_$$_REQUIRE(_dependencyMap[9]).PaperSetupBaseConfig); -},862,[3,270,6,7,11,85,13,14,850,857]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.TITLE_SIZE = exports.SUB_HEADER_HEIGHT = exports.SEARCH_TEXT_SIZE = exports.SEARCH_COLOR = exports.PAGE_SIZE = exports.LOGO_PARENT_HEIGHT = exports.LOGO_HEIGHT = exports.LIST_TITLE_SIZE = exports.LIST_ITEM_SEPARATOR_HEIGHT = exports.LIST_ITEM_SEPARATOR_COLOR = exports.LIST_ITEM_PADDING = exports.LIST_ITEM_HEIGHT = exports.INFO_SIZE = exports.HIDE_ANIMATION_TIMER = exports.HIDE_ANIMATION_FOOTER_TIMER = exports.HIDE_ANIMATION_DURATION = exports.HEADER_PARENT_BUTTON_SIZE = exports.HEADER_PARENT_BUTTON_PADDING = exports.HEADER_PADDING = exports.HEADER_HR_SIZE = exports.HEADER_HEIGHT = exports.HEADER_FONT_SIZE = exports.HEADER_BUTTON_SIZE = exports.HEADER_BG_COLOR = exports.FOOTER_FONT_SIZE = undefined; - var HEADER_HEIGHT = exports.HEADER_HEIGHT = 50; - var HEADER_PADDING = exports.HEADER_PADDING = 10; - var SUB_HEADER_HEIGHT = exports.SUB_HEADER_HEIGHT = 40; - - var HEADER_BG_COLOR = exports.HEADER_BG_COLOR = _$$_REQUIRE(_dependencyMap[0]).colors.black; - - var HEADER_PARENT_BUTTON_SIZE = exports.HEADER_PARENT_BUTTON_SIZE = 45; - var HEADER_PARENT_BUTTON_PADDING = exports.HEADER_PARENT_BUTTON_PADDING = 7.5; - var HEADER_BUTTON_SIZE = exports.HEADER_BUTTON_SIZE = 30; - var HEADER_HR_SIZE = exports.HEADER_HR_SIZE = 1; - var HEADER_FONT_SIZE = exports.HEADER_FONT_SIZE = 18; - var LOGO_PARENT_HEIGHT = exports.LOGO_PARENT_HEIGHT = 50; - var LOGO_HEIGHT = exports.LOGO_HEIGHT = "100%"; - var LIST_TITLE_SIZE = exports.LIST_TITLE_SIZE = 18; - var LIST_ITEM_HEIGHT = exports.LIST_ITEM_HEIGHT = 50; - var LIST_ITEM_PADDING = exports.LIST_ITEM_PADDING = 6; - var LIST_ITEM_SEPARATOR_HEIGHT = exports.LIST_ITEM_SEPARATOR_HEIGHT = 0.5; - - var LIST_ITEM_SEPARATOR_COLOR = exports.LIST_ITEM_SEPARATOR_COLOR = _$$_REQUIRE(_dependencyMap[0]).colors.grey300; - - var TITLE_SIZE = exports.TITLE_SIZE = 22; - var PAGE_SIZE = exports.PAGE_SIZE = 22; - var INFO_SIZE = exports.INFO_SIZE = 16; - var SEARCH_TEXT_SIZE = exports.SEARCH_TEXT_SIZE = 16; - - var SEARCH_COLOR = exports.SEARCH_COLOR = _$$_REQUIRE(_dependencyMap[0]).colors.md_red_400; - - var FOOTER_FONT_SIZE = exports.FOOTER_FONT_SIZE = 16; - var HIDE_ANIMATION_FOOTER_TIMER = exports.HIDE_ANIMATION_FOOTER_TIMER = 5000; - var HIDE_ANIMATION_TIMER = exports.HIDE_ANIMATION_TIMER = 3000; - var HIDE_ANIMATION_DURATION = exports.HIDE_ANIMATION_DURATION = 1000; -},863,[438]); +},863,[3,270,6,7,11,85,13,14,851,858]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -129477,7 +129564,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e CloudMessaging: Push.FirebaseCloudMessaging, AmazonDeviceMessaging: Push.AmazonDeviceMessaging, HcmDeviceMessaging: Push.HcmDeviceMessaging, - PushNotification: PushNotification.default, + PushNotification: PushNotification, PushNotificationIOS: PushNotificationIOS.default } : {}; } @@ -129794,7 +129881,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},865,[3,6,7,866,869,887,888,894,438]); +},865,[3,6,7,866,869,889,890,896,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _RNDFPBanner = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); @@ -129977,7 +130064,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _iubendaContainer = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); var _default = exports.default = _iubenda.default; -},869,[3,870,880]); +},869,[3,870,882]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -130912,179 +130999,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); exports.default = undefined; - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0])); - var _reactNative = _$$_REQUIRE(_dependencyMap[2]); + var _reactNative = _$$_REQUIRE(_dependencyMap[1]); - var _BatchedBridge = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + var _BatchedBridge = _$$_REQUIRE(_dependencyMap[2])(_$$_REQUIRE(_dependencyMap[3])); - var _invariant = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + var _invariant = _$$_REQUIRE(_dependencyMap[2])(_$$_REQUIRE(_dependencyMap[4])); - var _WebView = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + var _RNCWebViewNativeComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5])); - var __extends = this && this.__extends || function () { - var _extendStatics = function extendStatics(d, b) { - _extendStatics = Object.setPrototypeOf || { - __proto__: [] - } instanceof Array && function (d, b) { - d.__proto__ = b; - } || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; - }; + var _NativeRNCWebView = _$$_REQUIRE(_dependencyMap[2])(_$$_REQUIRE(_dependencyMap[6])); - return _extendStatics(d, b); + var _WebView = _$$_REQUIRE(_dependencyMap[2])(_$$_REQUIRE(_dependencyMap[7])); + + 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); } + + 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; } + + var __assign = this && this.__assign || function () { + __assign = Object.assign || function (t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + + return t; }; - return function (d, b) { - _extendStatics(d, b); - - function __() { - this.constructor = d; - } - - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - }(); - - var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) { - function adopt(value) { - return value instanceof P ? value : new P(function (resolve) { - resolve(value); - }); - } - - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { - try { - step(generator.next(value)); - } catch (e) { - reject(e); - } - } - - function rejected(value) { - try { - step(generator["throw"](value)); - } catch (e) { - reject(e); - } - } - - function step(result) { - result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); - } - - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - - var __generator = this && this.__generator || function (thisArg, body) { - var _ = { - label: 0, - sent: function sent() { - if (t[0] & 1) throw t[1]; - return t[1]; - }, - trys: [], - ops: [] - }, - f, - y, - t, - g; - return g = { - next: verb(0), - "throw": verb(1), - "return": verb(2) - }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { - return this; - }), g; - - function verb(n) { - return function (v) { - return step([n, v]); - }; - } - - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - - switch (op[0]) { - case 0: - case 1: - t = op; - break; - - case 4: - _.label++; - return { - value: op[1], - done: false - }; - - case 5: - _.label++; - y = op[1]; - op = [0]; - continue; - - case 7: - op = _.ops.pop(); - - _.trys.pop(); - - continue; - - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { - _ = 0; - continue; - } - - if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) { - _.label = op[1]; - break; - } - - if (op[0] === 6 && _.label < t[1]) { - _.label = t[1]; - t = op; - break; - } - - if (t && _.label < t[2]) { - _.label = t[2]; - - _.ops.push(op); - - break; - } - - if (t[2]) _.ops.pop(); - - _.trys.pop(); - - continue; - } - - op = body.call(thisArg, _); - } catch (e) { - op = [6, e]; - y = 0; - } finally { - f = t = 0; - } - - if (op[0] & 5) throw op[1]; - return { - value: op[0] ? op[1] : undefined, - done: true - }; - } + return __assign.apply(this, arguments); }; var __rest = this && this.__rest || function (s, e) { @@ -131098,296 +131042,249 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return t; }; - var UIManager = _reactNative.UIManager; - var RNCWebView = (0, _reactNative.requireNativeComponent)('RNCWebView'); var resolveAssetSource = _reactNative.Image.resolveAssetSource; var uniqueRef = 0; + var WebViewComponent = (0, _react.forwardRef)(function (_a, ref) { + var _b = _a.overScrollMode, + overScrollMode = _b === undefined ? 'always' : _b, + _c = _a.javaScriptEnabled, + javaScriptEnabled = _c === undefined ? true : _c, + _d = _a.thirdPartyCookiesEnabled, + thirdPartyCookiesEnabled = _d === undefined ? true : _d, + _e = _a.scalesPageToFit, + scalesPageToFit = _e === undefined ? true : _e, + _f = _a.allowsFullscreenVideo, + allowsFullscreenVideo = _f === undefined ? false : _f, + _g = _a.allowFileAccess, + allowFileAccess = _g === undefined ? false : _g, + _h = _a.saveFormDataDisabled, + saveFormDataDisabled = _h === undefined ? false : _h, + _j = _a.cacheEnabled, + cacheEnabled = _j === undefined ? true : _j, + _k = _a.androidLayerType, + androidLayerType = _k === undefined ? "none" : _k, + _l = _a.originWhitelist, + originWhitelist = _l === undefined ? _$$_REQUIRE(_dependencyMap[8]).defaultOriginWhitelist : _l, + _m = _a.setSupportMultipleWindows, + setSupportMultipleWindows = _m === undefined ? true : _m, + _o = _a.setBuiltInZoomControls, + setBuiltInZoomControls = _o === undefined ? true : _o, + _p = _a.setDisplayZoomControls, + setDisplayZoomControls = _p === undefined ? false : _p, + _q = _a.nestedScrollEnabled, + nestedScrollEnabled = _q === undefined ? false : _q, + startInLoadingState = _a.startInLoadingState, + onNavigationStateChange = _a.onNavigationStateChange, + onLoadStart = _a.onLoadStart, + onError = _a.onError, + onLoad = _a.onLoad, + onLoadEnd = _a.onLoadEnd, + onLoadProgress = _a.onLoadProgress, + onHttpErrorProp = _a.onHttpError, + onRenderProcessGoneProp = _a.onRenderProcessGone, + onMessageProp = _a.onMessage, + renderLoading = _a.renderLoading, + renderError = _a.renderError, + style = _a.style, + containerStyle = _a.containerStyle, + source = _a.source, + nativeConfig = _a.nativeConfig, + onShouldStartLoadWithRequestProp = _a.onShouldStartLoadWithRequest, + otherProps = __rest(_a, ["overScrollMode", "javaScriptEnabled", "thirdPartyCookiesEnabled", "scalesPageToFit", "allowsFullscreenVideo", "allowFileAccess", "saveFormDataDisabled", "cacheEnabled", "androidLayerType", "originWhitelist", "setSupportMultipleWindows", "setBuiltInZoomControls", "setDisplayZoomControls", "nestedScrollEnabled", "startInLoadingState", "onNavigationStateChange", "onLoadStart", "onError", "onLoad", "onLoadEnd", "onLoadProgress", "onHttpError", "onRenderProcessGone", "onMessage", "renderLoading", "renderError", "style", "containerStyle", "source", "nativeConfig", "onShouldStartLoadWithRequest"]); - var WebView = function (_super) { - __extends(WebView, _super); + var messagingModuleName = (0, _react.useRef)("WebViewMessageHandler".concat(uniqueRef += 1)).current; + var webViewRef = (0, _react.useRef)(null); + var onShouldStartLoadWithRequestCallback = (0, _react.useCallback)(function (shouldStart, url, lockIdentifier) { + if (lockIdentifier) { + _NativeRNCWebView.default.shouldStartLoadWithLockIdentifier(shouldStart, lockIdentifier); + } else if (shouldStart && webViewRef.current) { + _RNCWebViewNativeComponent.Commands.loadUrl(webViewRef.current, url); + } + }, []); - function WebView() { - var _this = _super !== null && _super.apply(this, arguments) || this; + var _r = (0, _$$_REQUIRE(_dependencyMap[8]).useWebViewLogic)({ + onNavigationStateChange: onNavigationStateChange, + onLoad: onLoad, + onError: onError, + onHttpErrorProp: onHttpErrorProp, + onLoadEnd: onLoadEnd, + onLoadProgress: onLoadProgress, + onLoadStart: onLoadStart, + onRenderProcessGoneProp: onRenderProcessGoneProp, + onMessageProp: onMessageProp, + startInLoadingState: startInLoadingState, + originWhitelist: originWhitelist, + onShouldStartLoadWithRequestProp: onShouldStartLoadWithRequestProp, + onShouldStartLoadWithRequestCallback: onShouldStartLoadWithRequestCallback + }), + onLoadingStart = _r.onLoadingStart, + onShouldStartLoadWithRequest = _r.onShouldStartLoadWithRequest, + onMessage = _r.onMessage, + viewState = _r.viewState, + setViewState = _r.setViewState, + lastErrorEvent = _r.lastErrorEvent, + onHttpError = _r.onHttpError, + onLoadingError = _r.onLoadingError, + onLoadingFinish = _r.onLoadingFinish, + onLoadingProgress = _r.onLoadingProgress, + onRenderProcessGone = _r.onRenderProcessGone; - _this.startUrl = null; - _this.state = { - viewState: _this.props.startInLoadingState ? 'LOADING' : 'IDLE', - lastErrorEvent: null - }; - _this.onShouldStartLoadWithRequest = null; - _this.webViewRef = _react.default.createRef(); - _this.messagingModuleName = "WebViewMessageHandler" + (uniqueRef += 1); + (0, _react.useImperativeHandle)(ref, function () { + return { + goForward: function goForward() { + return webViewRef.current && _RNCWebViewNativeComponent.Commands.goForward(webViewRef.current); + }, + goBack: function goBack() { + return webViewRef.current && _RNCWebViewNativeComponent.Commands.goBack(webViewRef.current); + }, + reload: function reload() { + setViewState('LOADING'); - _this.componentDidMount = function () { - _BatchedBridge.default.registerCallableModule(_this.messagingModuleName, _this); - }; - - _this.getCommands = function () { - return UIManager.getViewManagerConfig('RNCWebView').Commands; - }; - - _this.goForward = function () { - UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), _this.getCommands().goForward, undefined); - }; - - _this.goBack = function () { - UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), _this.getCommands().goBack, undefined); - }; - - _this.reload = function () { - _this.setState({ - viewState: 'LOADING' - }); - - UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), _this.getCommands().reload, undefined); - }; - - _this.stopLoading = function () { - UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), _this.getCommands().stopLoading, undefined); - }; - - _this.requestFocus = function () { - UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), _this.getCommands().requestFocus, undefined); - }; - - _this.postMessage = function (data) { - UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), _this.getCommands().postMessage, [String(data)]); - }; - - _this.clearFormData = function () { - UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), _this.getCommands().clearFormData, undefined); - }; - - _this.clearCache = function (includeDiskFiles) { - UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), _this.getCommands().clearCache, [includeDiskFiles]); - }; - - _this.clearHistory = function () { - UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), _this.getCommands().clearHistory, undefined); - }; - - _this.injectJavaScript = function (data) { - UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), _this.getCommands().injectJavaScript, [data]); - }; - - _this.updateNavigationState = function (event) { - if (_this.props.onNavigationStateChange) { - _this.props.onNavigationStateChange(event.nativeEvent); + if (webViewRef.current) { + _RNCWebViewNativeComponent.Commands.reload(webViewRef.current); + } + }, + stopLoading: function stopLoading() { + return webViewRef.current && _RNCWebViewNativeComponent.Commands.stopLoading(webViewRef.current); + }, + postMessage: function postMessage(data) { + return webViewRef.current && _RNCWebViewNativeComponent.Commands.postMessage(webViewRef.current, data); + }, + injectJavaScript: function injectJavaScript(data) { + return webViewRef.current && _RNCWebViewNativeComponent.Commands.injectJavaScript(webViewRef.current, data); + }, + requestFocus: function requestFocus() { + return webViewRef.current && _RNCWebViewNativeComponent.Commands.requestFocus(webViewRef.current); + }, + clearFormData: function clearFormData() { + return webViewRef.current && _RNCWebViewNativeComponent.Commands.clearFormData(webViewRef.current); + }, + clearCache: function clearCache(includeDiskFiles) { + return webViewRef.current && _RNCWebViewNativeComponent.Commands.clearCache(webViewRef.current, includeDiskFiles); + }, + clearHistory: function clearHistory() { + return webViewRef.current && _RNCWebViewNativeComponent.Commands.clearHistory(webViewRef.current); } }; - - _this.getWebViewHandle = function () { - var nodeHandle = (0, _reactNative.findNodeHandle)(_this.webViewRef.current); - (0, _invariant.default)(nodeHandle != null, 'nodeHandle expected to be non-null'); - return nodeHandle; + }, [setViewState, webViewRef]); + var directEventCallbacks = (0, _react.useMemo)(function () { + return { + onShouldStartLoadWithRequest: onShouldStartLoadWithRequest, + onMessage: onMessage }; + }, [onMessage, onShouldStartLoadWithRequest]); + (0, _react.useEffect)(function () { + _BatchedBridge.default.registerCallableModule(messagingModuleName, directEventCallbacks); + }, [messagingModuleName, directEventCallbacks]); + var otherView; - _this.onLoadingStart = function (event) { - var onLoadStart = _this.props.onLoadStart; - var url = event.nativeEvent.url; - _this.startUrl = url; + if (viewState === 'LOADING') { + otherView = (renderLoading || _$$_REQUIRE(_dependencyMap[8]).defaultRenderLoading)(); + } else if (viewState === 'ERROR') { + (0, _invariant.default)(lastErrorEvent != null, 'lastErrorEvent expected to be non-null'); - if (onLoadStart) { - onLoadStart(event); - } - - _this.updateNavigationState(event); - }; - - _this.onLoadingError = function (event) { - event.persist(); - var _a = _this.props, - onError = _a.onError, - onLoadEnd = _a.onLoadEnd; - - if (onError) { - onError(event); - } else { - console.warn('Encountered an error loading page', event.nativeEvent); - } - - if (onLoadEnd) { - onLoadEnd(event); - } - - if (event.isDefaultPrevented()) return; - - _this.setState({ - lastErrorEvent: event.nativeEvent, - viewState: 'ERROR' - }); - }; - - _this.onHttpError = function (event) { - var onHttpError = _this.props.onHttpError; - - if (onHttpError) { - onHttpError(event); - } - }; - - _this.onRenderProcessGone = function (event) { - var onRenderProcessGone = _this.props.onRenderProcessGone; - - if (onRenderProcessGone) { - onRenderProcessGone(event); - } - }; - - _this.onLoadingFinish = function (event) { - var _a = _this.props, - onLoad = _a.onLoad, - onLoadEnd = _a.onLoadEnd; - var url = event.nativeEvent.url; - - if (onLoad) { - onLoad(event); - } - - if (onLoadEnd) { - onLoadEnd(event); - } - - if (url === _this.startUrl) { - _this.setState({ - viewState: 'IDLE' - }); - } - - _this.updateNavigationState(event); - }; - - _this.onMessage = function (event) { - var onMessage = _this.props.onMessage; - - if (onMessage) { - onMessage(event); - } - }; - - _this.onLoadingProgress = function (event) { - var onLoadProgress = _this.props.onLoadProgress; - var progress = event.nativeEvent.progress; - - if (progress === 1) { - _this.setState(function (state) { - if (state.viewState === 'LOADING') { - return { - viewState: 'IDLE' - }; - } - - return null; - }); - } - - if (onLoadProgress) { - onLoadProgress(event); - } - }; - - _this.onShouldStartLoadWithRequestCallback = function (shouldStart, url, lockIdentifier) { - if (lockIdentifier) { - _reactNative.NativeModules.RNCWebView.onShouldStartLoadWithRequestCallback(shouldStart, lockIdentifier); - } else if (shouldStart) { - UIManager.dispatchViewManagerCommand(_this.getWebViewHandle(), _this.getCommands().loadUrl, [String(url)]); - } - }; - - return _this; + if (lastErrorEvent) { + otherView = (renderError || _$$_REQUIRE(_dependencyMap[8]).defaultRenderError)(lastErrorEvent.domain, lastErrorEvent.code, lastErrorEvent.description); + } + } else if (viewState !== 'IDLE') { + console.error("RNCWebView invalid state encountered: ".concat(viewState)); } - WebView.prototype.render = function () { - var _a = this.props, - onMessage = _a.onMessage, - onShouldStartLoadWithRequestProp = _a.onShouldStartLoadWithRequest, - originWhitelist = _a.originWhitelist, - renderError = _a.renderError, - renderLoading = _a.renderLoading, - source = _a.source, - style = _a.style, - containerStyle = _a.containerStyle, - _b = _a.nativeConfig, - nativeConfig = _b === undefined ? {} : _b, - otherProps = __rest(_a, ["onMessage", "onShouldStartLoadWithRequest", "originWhitelist", "renderError", "renderLoading", "source", "style", "containerStyle", "nativeConfig"]); + var webViewStyles = [_WebView.default.container, _WebView.default.webView, style]; + var webViewContainerStyle = [_WebView.default.container, containerStyle]; - var otherView = null; - - if (this.state.viewState === 'LOADING') { - otherView = (renderLoading || _$$_REQUIRE(_dependencyMap[6]).defaultRenderLoading)(); - } else if (this.state.viewState === 'ERROR') { - var errorEvent = this.state.lastErrorEvent; - (0, _invariant.default)(errorEvent != null, 'lastErrorEvent expected to be non-null'); - otherView = (renderError || _$$_REQUIRE(_dependencyMap[6]).defaultRenderError)(errorEvent.domain, errorEvent.code, errorEvent.description); - } else if (this.state.viewState !== 'IDLE') { - console.error("RNCWebView invalid state encountered: " + this.state.viewState); + if (typeof source !== "number" && source && 'method' in source) { + if (source.method === 'POST' && source.headers) { + console.warn('WebView: `source.headers` is not supported when using POST.'); + } else if (source.method === 'GET' && source.body) { + console.warn('WebView: `source.body` is not supported when using GET.'); } + } - var webViewStyles = [_WebView.default.container, _WebView.default.webView, style]; - var webViewContainerStyle = [_WebView.default.container, containerStyle]; + var NativeWebView = (nativeConfig === null || nativeConfig === undefined ? undefined : nativeConfig.component) || _RNCWebViewNativeComponent.default; + var sourceResolved = resolveAssetSource(source); + var newSource = typeof sourceResolved === "object" ? Object.entries(sourceResolved).reduce(function (prev, _a) { + var _b; - if (typeof source !== "number" && source && 'method' in source) { - if (source.method === 'POST' && source.headers) { - console.warn('WebView: `source.headers` is not supported when using POST.'); - } else if (source.method === 'GET' && source.body) { - console.warn('WebView: `source.body` is not supported when using GET.'); - } - } - - var NativeWebView = nativeConfig.component || RNCWebView; - this.onShouldStartLoadWithRequest = (0, _$$_REQUIRE(_dependencyMap[6]).createOnShouldStartLoadWithRequest)(this.onShouldStartLoadWithRequestCallback, originWhitelist, onShouldStartLoadWithRequestProp); - var webView = (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(NativeWebView, Object.assign({}, otherProps, { - messagingEnabled: typeof onMessage === 'function', - messagingModuleName: this.messagingModuleName, - onLoadingError: this.onLoadingError, - onLoadingFinish: this.onLoadingFinish, - onLoadingProgress: this.onLoadingProgress, - onLoadingStart: this.onLoadingStart, - onHttpError: this.onHttpError, - onRenderProcessGone: this.onRenderProcessGone, - onMessage: this.onMessage, - onShouldStartLoadWithRequest: this.onShouldStartLoadWithRequest, - ref: this.webViewRef, - source: resolveAssetSource(source), - style: webViewStyles - }, nativeConfig.props), "webViewKey"); - return (0, _$$_REQUIRE(_dependencyMap[7]).jsxs)(_reactNative.View, { - style: webViewContainerStyle, - children: [webView, otherView] - }); - }; - - WebView.defaultProps = { - overScrollMode: 'always', - javaScriptEnabled: true, - thirdPartyCookiesEnabled: true, - scalesPageToFit: true, - allowsFullscreenVideo: false, - allowFileAccess: false, - saveFormDataDisabled: false, - cacheEnabled: true, - androidHardwareAccelerationDisabled: false, - androidLayerType: 'none', - originWhitelist: _$$_REQUIRE(_dependencyMap[6]).defaultOriginWhitelist, - setSupportMultipleWindows: true, - setBuiltInZoomControls: true, - setDisplayZoomControls: false, - nestedScrollEnabled: false - }; - - WebView.isFileUploadSupported = function () { - return __awaiter(undefined, undefined, undefined, function () { - return __generator(this, function (_a) { - return [2, _reactNative.NativeModules.RNCWebView.isFileUploadSupported()]; - }); - }); - }; - - return WebView; - }(_react.default.Component); + var currKey = _a[0], + currValue = _a[1]; + return __assign(__assign({}, prev), (_b = {}, _b[currKey] = currKey === "headers" && currValue && typeof currValue === "object" ? Object.entries(currValue).map(function (_a) { + var key = _a[0], + value = _a[1]; + return { + name: key, + value: value + }; + }) : currValue, _b)); + }, {}) : sourceResolved; + var webView = (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(NativeWebView, Object.assign({}, otherProps, { + messagingEnabled: typeof onMessageProp === 'function', + messagingModuleName: messagingModuleName, + hasOnScroll: !!otherProps.onScroll, + onLoadingError: onLoadingError, + onLoadingFinish: onLoadingFinish, + onLoadingProgress: onLoadingProgress, + onLoadingStart: onLoadingStart, + onHttpError: onHttpError, + onRenderProcessGone: onRenderProcessGone, + onMessage: onMessage, + onShouldStartLoadWithRequest: onShouldStartLoadWithRequest, + ref: webViewRef, + source: sourceResolved, + newSource: newSource, + style: webViewStyles, + overScrollMode: overScrollMode, + javaScriptEnabled: javaScriptEnabled, + thirdPartyCookiesEnabled: thirdPartyCookiesEnabled, + scalesPageToFit: scalesPageToFit, + allowsFullscreenVideo: allowsFullscreenVideo, + allowFileAccess: allowFileAccess, + saveFormDataDisabled: saveFormDataDisabled, + cacheEnabled: cacheEnabled, + androidLayerType: androidLayerType, + setSupportMultipleWindows: setSupportMultipleWindows, + setBuiltInZoomControls: setBuiltInZoomControls, + setDisplayZoomControls: setDisplayZoomControls, + nestedScrollEnabled: nestedScrollEnabled + }, nativeConfig === null || nativeConfig === undefined ? undefined : nativeConfig.props), "webViewKey"); + return (0, _$$_REQUIRE(_dependencyMap[9]).jsxs)(_reactNative.View, { + style: webViewContainerStyle, + children: [webView, otherView] + }); + }); + var isFileUploadSupported = _NativeRNCWebView.default.isFileUploadSupported; + var WebView = Object.assign(WebViewComponent, { + isFileUploadSupported: isFileUploadSupported + }); var _default = exports.default = WebView; -},876,[3,16,18,37,31,877,878,179]); +},876,[16,18,3,37,31,877,878,879,880,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = exports.Commands = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _codegenNativeCommands = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var Commands = exports.Commands = (0, _codegenNativeCommands.default)({ + supportedCommands: ['goBack', 'goForward', 'reload', 'stopLoading', 'injectJavaScript', 'requestFocus', 'postMessage', 'loadUrl', 'clearFormData', 'clearCache', 'clearHistory'] + }); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNCWebView'); +},877,[3,183,133]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var _default = exports.default = _reactNative.TurboModuleRegistry.getEnforcing('RNCWebView'); +},878,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -131429,27 +131326,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); var _default = exports.default = styles; -},877,[18]); +},879,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); - exports.defaultRenderLoading = exports.defaultRenderError = exports.defaultOriginWhitelist = exports.createOnShouldStartLoadWithRequest = undefined; + exports.useWebViewLogic = exports.defaultRenderLoading = exports.defaultRenderError = exports.defaultOriginWhitelist = exports.createOnShouldStartLoadWithRequest = undefined; var _escapeStringRegexp = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2])); var _reactNative = _$$_REQUIRE(_dependencyMap[3]); var _WebView = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var __spreadArrays = this && this.__spreadArrays || function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; + 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); } - for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j]; + 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; } - return r; + var __spreadArray = this && this.__spreadArray || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); }; var defaultOriginWhitelist = exports.defaultOriginWhitelist = ['http://*', 'https://*']; @@ -131460,7 +131363,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var originWhitelistToRegex = function originWhitelistToRegex(originWhitelist) { - return "^" + (0, _escapeStringRegexp.default)(originWhitelist).replace(/\\\*/g, '.*'); + return "^".concat((0, _escapeStringRegexp.default)(originWhitelist).replace(/\\\*/g, '.*')); }; var passesWhitelist = function passesWhitelist(compiledWhitelist, url) { @@ -131471,7 +131374,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var compileWhitelist = function compileWhitelist(originWhitelist) { - return __spreadArrays(['about:blank'], originWhitelist || []).map(originWhitelistToRegex); + return __spreadArray(['about:blank'], originWhitelist || [], true).map(originWhitelistToRegex); }; var createOnShouldStartLoadWithRequest = exports.createOnShouldStartLoadWithRequest = function createOnShouldStartLoadWithRequest(loadRequest, originWhitelist, onShouldStartLoadWithRequest) { @@ -131487,7 +131390,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _reactNative.Linking.openURL(url); } - console.warn("Can't open url: " + url); + console.warn("Can't open url: ".concat(url)); return undefined; })["catch"](function (e) { console.warn('Error opening URL: ', e); @@ -131517,17 +131420,122 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: "Error loading page" }), (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_reactNative.Text, { style: _WebView.default.errorText, - children: "Domain: " + errorDomain + children: "Domain: ".concat(errorDomain) }), (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_reactNative.Text, { style: _WebView.default.errorText, - children: "Error Code: " + errorCode + children: "Error Code: ".concat(errorCode) }), (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_reactNative.Text, { style: _WebView.default.errorText, - children: "Description: " + errorDesc + children: "Description: ".concat(errorDesc) })] }); }; -},878,[3,879,16,18,877,179]); + + var useWebViewLogic = exports.useWebViewLogic = function useWebViewLogic(_a) { + var startInLoadingState = _a.startInLoadingState, + onNavigationStateChange = _a.onNavigationStateChange, + onLoadStart = _a.onLoadStart, + onLoad = _a.onLoad, + onLoadProgress = _a.onLoadProgress, + onLoadEnd = _a.onLoadEnd, + onError = _a.onError, + onHttpErrorProp = _a.onHttpErrorProp, + onMessageProp = _a.onMessageProp, + onRenderProcessGoneProp = _a.onRenderProcessGoneProp, + onContentProcessDidTerminateProp = _a.onContentProcessDidTerminateProp, + originWhitelist = _a.originWhitelist, + onShouldStartLoadWithRequestProp = _a.onShouldStartLoadWithRequestProp, + onShouldStartLoadWithRequestCallback = _a.onShouldStartLoadWithRequestCallback; + + var _b = (0, _react.useState)(startInLoadingState ? "LOADING" : "IDLE"), + viewState = _b[0], + setViewState = _b[1]; + + var _c = (0, _react.useState)(null), + lastErrorEvent = _c[0], + setLastErrorEvent = _c[1]; + + var startUrl = (0, _react.useRef)(null); + var updateNavigationState = (0, _react.useCallback)(function (event) { + onNavigationStateChange === null || onNavigationStateChange === undefined ? undefined : onNavigationStateChange(event.nativeEvent); + }, [onNavigationStateChange]); + var onLoadingStart = (0, _react.useCallback)(function (event) { + startUrl.current = event.nativeEvent.url; + onLoadStart === null || onLoadStart === undefined ? undefined : onLoadStart(event); + updateNavigationState(event); + }, [onLoadStart, updateNavigationState]); + var onLoadingError = (0, _react.useCallback)(function (event) { + event.persist(); + + if (onError) { + onError(event); + } else { + console.warn('Encountered an error loading page', event.nativeEvent); + } + + onLoadEnd === null || onLoadEnd === undefined ? undefined : onLoadEnd(event); + + if (event.isDefaultPrevented()) { + return; + } + + ; + setViewState('ERROR'); + setLastErrorEvent(event.nativeEvent); + }, [onError, onLoadEnd]); + var onHttpError = (0, _react.useCallback)(function (event) { + onHttpErrorProp === null || onHttpErrorProp === undefined ? undefined : onHttpErrorProp(event); + }, [onHttpErrorProp]); + var onRenderProcessGone = (0, _react.useCallback)(function (event) { + onRenderProcessGoneProp === null || onRenderProcessGoneProp === undefined ? undefined : onRenderProcessGoneProp(event); + }, [onRenderProcessGoneProp]); + var onContentProcessDidTerminate = (0, _react.useCallback)(function (event) { + onContentProcessDidTerminateProp === null || onContentProcessDidTerminateProp === undefined ? undefined : onContentProcessDidTerminateProp(event); + }, [onContentProcessDidTerminateProp]); + var onLoadingFinish = (0, _react.useCallback)(function (event) { + onLoad === null || onLoad === undefined ? undefined : onLoad(event); + onLoadEnd === null || onLoadEnd === undefined ? undefined : onLoadEnd(event); + var url = event.nativeEvent.url; + + if (_reactNative.Platform.OS !== "android" || url === startUrl.current) { + setViewState('IDLE'); + } + + updateNavigationState(event); + }, [onLoad, onLoadEnd, updateNavigationState]); + var onMessage = (0, _react.useCallback)(function (event) { + onMessageProp === null || onMessageProp === undefined ? undefined : onMessageProp(event); + }, [onMessageProp]); + var onLoadingProgress = (0, _react.useCallback)(function (event) { + var progress = event.nativeEvent.progress; + + if (_reactNative.Platform.OS === "android" && progress === 1) { + setViewState(function (prevViewState) { + return prevViewState === 'LOADING' ? 'IDLE' : prevViewState; + }); + } + + onLoadProgress === null || onLoadProgress === undefined ? undefined : onLoadProgress(event); + }, [onLoadProgress]); + var onShouldStartLoadWithRequest = (0, _react.useMemo)(function () { + return createOnShouldStartLoadWithRequest(onShouldStartLoadWithRequestCallback, originWhitelist, onShouldStartLoadWithRequestProp); + }, [originWhitelist, onShouldStartLoadWithRequestProp, onShouldStartLoadWithRequestCallback]); + return { + onShouldStartLoadWithRequest: onShouldStartLoadWithRequest, + onLoadingStart: onLoadingStart, + onLoadingProgress: onLoadingProgress, + onLoadingError: onLoadingError, + onLoadingFinish: onLoadingFinish, + onHttpError: onHttpError, + onRenderProcessGone: onRenderProcessGone, + onContentProcessDidTerminate: onContentProcessDidTerminate, + onMessage: onMessage, + viewState: viewState, + setViewState: setViewState, + lastErrorEvent: lastErrorEvent + }; + }; +},880,[3,881,16,18,879,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -131540,7 +131548,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return string.replace(matchOperatorsRegex, '\\$&'); }; -},879,[]); +},881,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -131577,7 +131585,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = IubendaContainer; -},880,[3,16,568,870,873,881,179]); +},882,[3,16,568,870,873,883,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -131622,7 +131630,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},881,[882,884,885,886]); +},883,[884,886,887,888]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -131755,7 +131763,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var SafeAreaConsumer = exports.SafeAreaConsumer = SafeAreaInsetsContext.Consumer; var SafeAreaContext = exports.SafeAreaContext = SafeAreaInsetsContext; -},882,[3,33,16,18,883,179]); +},884,[3,33,16,18,885,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -131765,7 +131773,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[0]); var _default = exports.default = (0, _reactNative.requireNativeComponent)('RNCSafeAreaProvider'); -},883,[18]); +},885,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -131775,7 +131783,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[0]); var SafeAreaView = exports.SafeAreaView = (0, _reactNative.requireNativeComponent)('RNCSafeAreaView'); -},884,[18]); +},886,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -131788,12 +131796,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var initialWindowMetrics = exports.initialWindowMetrics = RNCSafeAreaProviderConfig != null && RNCSafeAreaProviderConfig.Constants != null ? RNCSafeAreaProviderConfig.Constants.initialWindowMetrics : null; var initialWindowSafeAreaInsets = exports.initialWindowSafeAreaInsets = initialWindowMetrics == null ? undefined : initialWindowMetrics.insets; -},885,[18]); +},887,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); -},886,[]); +},888,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -131921,7 +131929,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},887,[3,270,6,7,18]); +},889,[3,270,6,7,18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -131938,7 +131946,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = analytics; -},888,[889]); +},890,[891]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -132100,14 +132108,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},889,[3,270,6,7,18,890,891,892]); +},891,[3,270,6,7,18,892,893,894]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.RAW_HTML = undefined; var RAW_HTML = exports.RAW_HTML = "\n \n \n \n \n \n \n \n"; -},890,[]); +},892,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -132168,7 +132176,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return true; } -},891,[892,893]); +},893,[894,895]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -132273,14 +132281,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function noop() {} -},892,[]); +},894,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.RESERVED_EVENT_NAMES = undefined; var RESERVED_EVENT_NAMES = exports.RESERVED_EVENT_NAMES = ["ad_reward", "app_background", "app_clear_data", "app_remove", "app_store_refund", "app_store_subscription_cancel", "app_store_subscription_convert", "app_store_subscription_renew", "app_update", "app_upgrade", "dynamic_link_app_open", "dynamic_link_app_update", "dynamic_link_first_open", "error", "first_open", "in_app_purchase", "notification_dismiss", "notification_foreground", "notification_open", "notification_receive", "os_update", "session_start", "session_start_with_rollout", "user_engagement"]; -},893,[]); +},895,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -132451,13 +132459,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = Root; exports.default = _default; -},894,[3,577,4,895,16,568,18,916,1829,1830,935,927,1395,1155,1151]); +},896,[3,577,4,897,16,568,18,918,1718,1719,937,929,1302,1062,1058]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { _$$_REQUIRE(_dependencyMap[0]); -},895,[896]); +},897,[898]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { (0, _$$_REQUIRE(_dependencyMap[0]).setupURLPolyfill)(); -},896,[897]); +},898,[899]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -132501,7 +132509,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _$$_REQUIRE(_dependencyMap[2]).URLSearchParams; }); } -},897,[898,899,914,915,70]); +},899,[900,901,916,917,70]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var _reactNative = _$$_REQUIRE(_dependencyMap[0]); @@ -132518,7 +132526,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } } -},898,[18]); +},900,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -132549,7 +132557,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _$$_REQUIRE(_dependencyMap[1]).URL.revokeObjectURL = function revokeObjectURL(url) {}; var URL = exports.URL = _$$_REQUIRE(_dependencyMap[1]).URL; -},899,[18,900]); +},901,[18,902]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -132571,13 +132579,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.setThePassword = _$$_REQUIRE(_dependencyMap[1]).setThePassword; exports.cannotHaveAUsernamePasswordPort = _$$_REQUIRE(_dependencyMap[1]).cannotHaveAUsernamePasswordPort; exports.percentDecode = _$$_REQUIRE(_dependencyMap[2]).percentDecode; -},900,[901,905,910]); +},902,[903,907,912]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; exports.URL = _$$_REQUIRE(_dependencyMap[0]); exports.URLSearchParams = _$$_REQUIRE(_dependencyMap[1]); -},901,[902,911]); +},903,[904,913]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -132990,7 +132998,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; module.exports = iface; -},902,[903,904,6,913,7,240]); +},904,[905,906,6,915,7,240]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -133110,7 +133118,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e namedSetExisting: namedSetExisting, namedDelete: namedDelete }; -},903,[]); +},905,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -133363,7 +133371,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},904,[6,905,911,7,910]); +},906,[6,907,913,7,912]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -134697,7 +134705,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e encodingOverride: options.encodingOverride }); }; -},905,[906,907,908,910]); +},907,[908,909,910,912]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -134976,7 +134984,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e 'toUnicode': toUnicode }; module.exports = punycode; -},906,[22]); +},908,[22]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -135002,7 +135010,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e isASCIIAlphanumeric: isASCIIAlphanumeric, isASCIIHex: isASCIIHex }; -},907,[]); +},909,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { /*! * The buffer module from node.js, for the browser. @@ -136677,7 +136685,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return table; }(); -},908,[94,909]); +},910,[94,911]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { exports.read = function (buffer, offset, isLE, mLen, nBytes) { var e, m; @@ -136767,7 +136775,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e buffer[offset + i - d] |= s * 128; }; -},909,[]); +},911,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -136918,7 +136926,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, serializeUrlencoded: serializeUrlencoded }; -},910,[908,907,33]); +},912,[910,909,33]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -137442,7 +137450,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; module.exports = iface; -},911,[903,240,33,912,6,913,7]); +},913,[905,240,33,914,6,915,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -137611,7 +137619,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(Symbol.iterator); -},912,[6,910,7]); +},914,[6,912,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -137967,7 +137975,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.DOMTimeStamp = exports["unsigned long long"]; exports.Function = convertCallbackFunction; exports.VoidFunction = convertCallbackFunction; -},913,[]); +},915,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -137978,13 +137986,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _$$_REQUIRE(_dependencyMap[0]).URLSearchParams; } }); -},914,[900]); +},916,[902]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = { "_args": [ [ "react-native-url-polyfill@1.3.0", - "/Users/ipaddev/sdk/3.16.09.rc" + "/Users/ipaddev/sdk/3.16.13.rc" ] ], "_from": "react-native-url-polyfill@1.3.0", @@ -138008,7 +138016,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex ], "_resolved": "https://registry.npmjs.org/react-native-url-polyfill/-/react-native-url-polyfill-1.3.0.tgz", "_spec": "1.3.0", - "_where": "/Users/ipaddev/sdk/3.16.09.rc", + "_where": "/Users/ipaddev/sdk/3.16.13.rc", "author": { "name": "Nicolas Charpentier", "email": "nicolas.charpentier079@gmail.com" @@ -138087,7 +138095,7 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex "version": "1.3.0" } ; -},915,[]); +},917,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -138681,7 +138689,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = Container; exports.default = _default; -},916,[3,22,33,4,917,577,16,18,568,919,923,933,934,1156,1287,1289,1290,1157,1162,1158,1275,1291,922,935,1146,1801,1802,1164,1155,1420,1803]); +},918,[3,22,33,4,919,577,16,18,568,921,925,935,936,1063,1194,1196,1197,1064,1069,1065,1182,1198,924,937,1053,1706,1707,1071,1062,1328,1708]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var runtime = _$$_REQUIRE(_dependencyMap[0])(); @@ -138696,7 +138704,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Function("r", "regeneratorRuntime = r")(runtime); } } -},917,[918]); +},919,[920]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function _regeneratorRuntime() { "use strict"; @@ -139050,7 +139058,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; -},918,[10]); +},920,[10]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -139427,7 +139435,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = API; exports.default = _default; -},919,[3,917,577,6,7,920,921,408,922,923,924,925,926]); +},921,[3,919,577,6,7,922,923,408,924,925,926,927,928]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { function _classPrivateFieldBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { @@ -139438,7 +139446,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = _classPrivateFieldBase, module.exports.__esModule = true, module.exports["default"] = module.exports; -},920,[]); +},922,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { var id = 0; @@ -139447,7 +139455,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = _classPrivateFieldKey, module.exports.__esModule = true, module.exports["default"] = module.exports; -},921,[]); +},923,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -139776,7 +139784,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = Issue; -},922,[3,6,7,920,921]); +},924,[3,6,7,922,923]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -139887,7 +139895,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e writable: true, value: {} }); -},923,[3,6,7,920,921]); +},925,[3,6,7,922,923]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -139929,7 +139937,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function dpToPx(size) { return _reactNative.PixelRatio.roundToNearestPixel(size) * _reactNative.PixelRatio.get(); } -},924,[18]); +},926,[18]); __d(function(global, require, _importDefaultUnused, _importAllUnused, module, exports, _dependencyMapUnused) { module.exports = [ { @@ -139952,13 +139960,14 @@ __d(function(global, require, _importDefaultUnused, _importAllUnused, module, ex } ] ; -},925,[]); +},927,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.addParamsToURL = addParamsToURL; exports.decodeHTML = decodeHTML; + exports.isTecnaviaDomain = isTecnaviaDomain; exports.segmentURL = segmentURL; exports.toMD5 = toMD5; @@ -140000,7 +140009,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); return uri.toString(); } -},926,[3,472,927,923,929]); + + function isTecnaviaDomain(domain, referenceURL) { + if (domain.endsWith(".newsmemory.com") || domain.endsWith(".eedition.net")) { + return true; + } + + if (!referenceURL) { + return false; + } + + var uri = segmentURL(referenceURL); + return domain === uri.getDomain(); + } +},928,[3,472,929,925,931]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -140123,7 +140145,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = URI; -},927,[3,6,7,920,921,928]); +},929,[3,6,7,922,923,930]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -140477,7 +140499,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); exports.default = JSUtils; -},928,[3,33,22,6,7,917,18,923]); +},930,[3,33,22,6,7,919,18,925]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -140503,6 +140525,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e all: _$$_REQUIRE(_dependencyMap[0]).namedReferences.html5 }); + function replaceUsingRegExp(macroText, macroRegExp, macroReplacer) { + macroRegExp.lastIndex = 0; + var replaceMatch = macroRegExp.exec(macroText); + var replaceResult; + + if (replaceMatch) { + replaceResult = ""; + var replaceLastIndex = 0; + + do { + if (replaceLastIndex !== replaceMatch.index) { + replaceResult += macroText.substring(replaceLastIndex, replaceMatch.index); + } + + var replaceInput = replaceMatch[0]; + replaceResult += macroReplacer(replaceInput); + replaceLastIndex = replaceMatch.index + replaceInput.length; + } while (replaceMatch = macroRegExp.exec(macroText)); + + if (replaceLastIndex !== macroText.length) { + replaceResult += macroText.substring(replaceLastIndex); + } + } else { + replaceResult = macroText; + } + + return replaceResult; + } + var encodeRegExps = { specialChars: /[<>'"&]/g, nonAscii: /[<>'"&\u0080-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g, @@ -140511,68 +140562,43 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e extensive: /[\x01-\x0c\x0e-\x1f\x21-\x2c\x2e-\x2f\x3a-\x40\x5b-\x60\x7b-\x7d\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g }; var defaultEncodeOptions = { - mode: 'specialChars', - level: 'all', - numeric: 'decimal' + mode: "specialChars", + level: "all", + numeric: "decimal" }; function encode(text, _a) { var _b = _a === undefined ? defaultEncodeOptions : _a, _c = _b.mode, - mode = _c === undefined ? 'specialChars' : _c, + mode = _c === undefined ? "specialChars" : _c, _d = _b.numeric, - numeric = _d === undefined ? 'decimal' : _d, + numeric = _d === undefined ? "decimal" : _d, _e = _b.level, - level = _e === undefined ? 'all' : _e; + level = _e === undefined ? "all" : _e; if (!text) { - return ''; + return ""; } var encodeRegExp = encodeRegExps[mode]; var references = allNamedReferences[level].characters; - var isHex = numeric === 'hexadecimal'; - encodeRegExp.lastIndex = 0; + var isHex = numeric === "hexadecimal"; + return replaceUsingRegExp(text, encodeRegExp, function (input) { + var result = references[input]; - var _b = encodeRegExp.exec(text); - - var _c; - - if (_b) { - _c = ''; - var _d = 0; - - do { - if (_d !== _b.index) { - _c += text.substring(_d, _b.index); - } - - var _e = _b[0]; - var result_1 = references[_e]; - - if (!result_1) { - var code_1 = _e.length > 1 ? _$$_REQUIRE(_dependencyMap[1]).getCodePoint(_e, 0) : _e.charCodeAt(0); - result_1 = (isHex ? '&#x' + code_1.toString(16) : '&#' + code_1) + ';'; - } - - _c += result_1; - _d = _b.index + _e.length; - } while (_b = encodeRegExp.exec(text)); - - if (_d !== text.length) { - _c += text.substring(_d); + if (!result) { + var code = input.length > 1 ? _$$_REQUIRE(_dependencyMap[1]).getCodePoint(input, 0) : input.charCodeAt(0); + result = (isHex ? "&#x" + code.toString(16) : "&#" + code) + ";"; } - } else { - _c = text; - } - return _c; + return result; + }); } exports.encode = encode; var defaultDecodeOptions = { - scope: 'body', - level: 'all' + scope: "body", + level: "all" }; var strict = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g; var attribute = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g; @@ -140601,99 +140627,67 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var fromCharCode = String.fromCharCode; var outOfBoundsChar = fromCharCode(65533); var defaultDecodeEntityOptions = { - level: 'all' + level: "all" }; + function getDecodedEntity(entity, references, isAttribute, isStrict) { + var decodeResult = entity; + var decodeEntityLastChar = entity[entity.length - 1]; + + if (isAttribute && decodeEntityLastChar === "=") { + decodeResult = entity; + } else if (isStrict && decodeEntityLastChar !== ";") { + decodeResult = entity; + } else { + var decodeResultByReference = references[entity]; + + if (decodeResultByReference) { + decodeResult = decodeResultByReference; + } else if (entity[0] === "&" && entity[1] === "#") { + var decodeSecondChar = entity[2]; + var decodeCode = decodeSecondChar == "x" || decodeSecondChar == "X" ? parseInt(entity.substr(3), 16) : parseInt(entity.substr(2)); + decodeResult = decodeCode >= 1114111 ? outOfBoundsChar : decodeCode > 65535 ? _$$_REQUIRE(_dependencyMap[1]).fromCodePoint(decodeCode) : fromCharCode(_$$_REQUIRE(_dependencyMap[2]).numericUnicodeMap[decodeCode] || decodeCode); + } + } + + return decodeResult; + } + function decodeEntity(entity, _a) { var _b = (_a === undefined ? defaultDecodeEntityOptions : _a).level, - level = _b === undefined ? 'all' : _b; + level = _b === undefined ? "all" : _b; if (!entity) { - return ''; + return ""; } - var _b = entity; - var decodeEntityLastChar_1 = entity[entity.length - 1]; - { - var decodeResultByReference_1 = allNamedReferences[level].entities[entity]; - - if (decodeResultByReference_1) { - _b = decodeResultByReference_1; - } else if (entity[0] === '&' && entity[1] === '#') { - var decodeSecondChar_1 = entity[2]; - var decodeCode_1 = decodeSecondChar_1 == 'x' || decodeSecondChar_1 == 'X' ? parseInt(entity.substr(3), 16) : parseInt(entity.substr(2)); - _b = decodeCode_1 >= 0x10ffff ? outOfBoundsChar : decodeCode_1 > 65535 ? _$$_REQUIRE(_dependencyMap[1]).fromCodePoint(decodeCode_1) : fromCharCode(_$$_REQUIRE(_dependencyMap[2]).numericUnicodeMap[decodeCode_1] || decodeCode_1); - } - } - return _b; + return getDecodedEntity(entity, allNamedReferences[level].entities, false, false); } exports.decodeEntity = decodeEntity; function decode(text, _a) { - var decodeSecondChar_1 = _a === undefined ? defaultDecodeOptions : _a, - decodeCode_1 = decodeSecondChar_1.level, - level = decodeCode_1 === undefined ? 'all' : decodeCode_1, - _b = decodeSecondChar_1.scope, - scope = _b === undefined ? level === 'xml' ? 'strict' : 'body' : _b; + var _b = _a === undefined ? defaultDecodeOptions : _a, + _c = _b.level, + level = _c === undefined ? "all" : _c, + _d = _b.scope, + scope = _d === undefined ? level === "xml" ? "strict" : "body" : _d; if (!text) { - return ''; + return ""; } var decodeRegExp = decodeRegExps[level][scope]; var references = allNamedReferences[level].entities; - var isAttribute = scope === 'attribute'; - var isStrict = scope === 'strict'; - decodeRegExp.lastIndex = 0; - var replaceMatch_1 = decodeRegExp.exec(text); - var replaceResult_1; - - if (replaceMatch_1) { - replaceResult_1 = ''; - var replaceLastIndex_1 = 0; - - do { - if (replaceLastIndex_1 !== replaceMatch_1.index) { - replaceResult_1 += text.substring(replaceLastIndex_1, replaceMatch_1.index); - } - - var replaceInput_1 = replaceMatch_1[0]; - var decodeResult_1 = replaceInput_1; - var decodeEntityLastChar_2 = replaceInput_1[replaceInput_1.length - 1]; - - if (isAttribute && decodeEntityLastChar_2 === '=') { - decodeResult_1 = replaceInput_1; - } else if (isStrict && decodeEntityLastChar_2 !== ';') { - decodeResult_1 = replaceInput_1; - } else { - var decodeResultByReference_2 = references[replaceInput_1]; - - if (decodeResultByReference_2) { - decodeResult_1 = decodeResultByReference_2; - } else if (replaceInput_1[0] === '&' && replaceInput_1[1] === '#') { - var decodeSecondChar_2 = replaceInput_1[2]; - var decodeCode_2 = decodeSecondChar_2 == 'x' || decodeSecondChar_2 == 'X' ? parseInt(replaceInput_1.substr(3), 16) : parseInt(replaceInput_1.substr(2)); - decodeResult_1 = decodeCode_2 >= 0x10ffff ? outOfBoundsChar : decodeCode_2 > 65535 ? _$$_REQUIRE(_dependencyMap[1]).fromCodePoint(decodeCode_2) : fromCharCode(_$$_REQUIRE(_dependencyMap[2]).numericUnicodeMap[decodeCode_2] || decodeCode_2); - } - } - - replaceResult_1 += decodeResult_1; - replaceLastIndex_1 = replaceMatch_1.index + replaceInput_1.length; - } while (replaceMatch_1 = decodeRegExp.exec(text)); - - if (replaceLastIndex_1 !== text.length) { - replaceResult_1 += text.substring(replaceLastIndex_1); - } - } else { - replaceResult_1 = text; - } - - return replaceResult_1; + var isAttribute = scope === "attribute"; + var isStrict = scope === "strict"; + return replaceUsingRegExp(text, decodeRegExp, function (entity) { + return getDecodedEntity(entity, references, isAttribute, isStrict); + }); } exports.decode = decode; -},929,[930,931,932]); +},931,[932,933,934]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -145083,7 +145077,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } }; -},930,[]); +},932,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -145102,7 +145096,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; exports.highSurrogateFrom = 55296; exports.highSurrogateTo = 56319; -},931,[]); +},933,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -145139,7 +145133,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e 158: 382, 159: 376 }; -},932,[]); +},934,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145352,7 +145346,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Network.IP = "n/a"; var _default = Network; exports.default = _default; -},933,[3,917,6,7,542]); +},935,[3,919,6,7,542]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145488,7 +145482,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = Errors; exports.default = _default; -},934,[3,22,33,16,568,18,935,936,923,1155,1151,926]); +},936,[3,22,33,16,568,18,937,938,925,1062,1058,928]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145512,7 +145506,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Events.ON_ACTION_CLICK = "on_action_click"; var _default = Events; exports.default = _default; -},935,[3,7,6]); +},937,[3,7,6]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145678,7 +145672,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = Error; exports.default = _default; -},936,[16,3,568,18,937,1147,1152,1153,1146,1154,1151]); +},938,[16,3,568,18,939,1054,1059,1060,1053,1061,1058]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145819,7 +145813,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.TaAnimatedImageIcon = TaAnimatedImageIcon; var _default = TaImageIcon; exports.default = _default; -},937,[3,6,7,14,11,13,577,4,16,18,568,938,939,940,924]); +},939,[3,6,7,14,11,13,577,4,16,18,568,940,941,942,926]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -145864,7 +145858,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = FSImage; exports.default = _default; -},938,[3,577,4,16,576]); +},940,[3,577,4,16,576]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -146052,7 +146046,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _default = CssStyle; exports.default = _default; -},939,[3,6,7]); +},941,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -146157,7 +146151,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function TaPath(props) { return _react.default.createElement(_reactNativeSvg.Path, props); } -},940,[3,577,4,16,18,941,1145]); +},942,[3,577,4,16,18,943,1052]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -146187,107 +146181,63 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e 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); } 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; } -},941,[942]); +},943,[944]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); - Object.defineProperty(exports, "Circle", { - enumerable: true, - get: function get() { - return _Circle.default; - } - }); - Object.defineProperty(exports, "ClipPath", { - enumerable: true, - get: function get() { - return _ClipPath.default; - } - }); - Object.defineProperty(exports, "Defs", { - enumerable: true, - get: function get() { - return _Defs.default; - } - }); - Object.defineProperty(exports, "Ellipse", { - enumerable: true, - get: function get() { - return _Ellipse.default; - } - }); - Object.defineProperty(exports, "ForeignObject", { - enumerable: true, - get: function get() { - return _ForeignObject.default; - } - }); - Object.defineProperty(exports, "G", { - enumerable: true, - get: function get() { - return _G.default; - } - }); - Object.defineProperty(exports, "Image", { - enumerable: true, - get: function get() { - return _Image.default; - } - }); - Object.defineProperty(exports, "Line", { - enumerable: true, - get: function get() { - return _Line.default; - } - }); - Object.defineProperty(exports, "LinearGradient", { - enumerable: true, - get: function get() { - return _LinearGradient.default; - } - }); + var _exportNames = { + Shape: true, + camelCase: true, + parse: true, + SvgAst: true, + SvgFromUri: true, + SvgFromXml: true, + SvgUri: true, + SvgXml: true, + fetchText: true, + RNSVGCircle: true, + RNSVGClipPath: true, + RNSVGDefs: true, + RNSVGEllipse: true, + RNSVGFeColorMatrix: true, + RNSVGFeGaussianBlur: true, + RNSVGFeMerge: true, + RNSVGFeOffset: true, + RNSVGFilter: true, + RNSVGForeignObject: true, + RNSVGGroup: true, + RNSVGImage: true, + RNSVGLine: true, + RNSVGLinearGradient: true, + RNSVGMarker: true, + RNSVGMask: true, + RNSVGPath: true, + RNSVGPattern: true, + RNSVGRadialGradient: true, + RNSVGRect: true, + RNSVGSvgAndroid: true, + RNSVGSvgIOS: true, + RNSVGSymbol: true, + RNSVGText: true, + RNSVGTextPath: true, + RNSVGTSpan: true, + RNSVGUse: true, + inlineStyles: true, + loadLocalRawResource: true, + LocalSvg: true, + SvgCss: true, + SvgCssUri: true, + SvgWithCss: true, + SvgWithCssUri: true, + WithLocalSvg: true + }; Object.defineProperty(exports, "LocalSvg", { enumerable: true, get: function get() { return _$$_REQUIRE(_dependencyMap[0]).LocalSvg; } }); - Object.defineProperty(exports, "Marker", { - enumerable: true, - get: function get() { - return _Marker.default; - } - }); - Object.defineProperty(exports, "Mask", { - enumerable: true, - get: function get() { - return _Mask.default; - } - }); - Object.defineProperty(exports, "Path", { - enumerable: true, - get: function get() { - return _Path.default; - } - }); - Object.defineProperty(exports, "Pattern", { - enumerable: true, - get: function get() { - return _Pattern.default; - } - }); - Object.defineProperty(exports, "Polygon", { - enumerable: true, - get: function get() { - return _Polygon.default; - } - }); - Object.defineProperty(exports, "Polyline", { - enumerable: true, - get: function get() { - return _Polyline.default; - } - }); Object.defineProperty(exports, "RNSVGCircle", { enumerable: true, get: function get() { @@ -146312,6 +146262,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _$$_REQUIRE(_dependencyMap[1]).RNSVGEllipse; } }); + Object.defineProperty(exports, "RNSVGFeColorMatrix", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[1]).RNSVGFeColorMatrix; + } + }); + Object.defineProperty(exports, "RNSVGFeGaussianBlur", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[1]).RNSVGFeGaussianBlur; + } + }); + Object.defineProperty(exports, "RNSVGFeMerge", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[1]).RNSVGFeMerge; + } + }); + Object.defineProperty(exports, "RNSVGFeOffset", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[1]).RNSVGFeOffset; + } + }); + Object.defineProperty(exports, "RNSVGFilter", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[1]).RNSVGFilter; + } + }); Object.defineProperty(exports, "RNSVGForeignObject", { enumerable: true, get: function get() { @@ -146378,10 +146358,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _$$_REQUIRE(_dependencyMap[1]).RNSVGRect; } }); - Object.defineProperty(exports, "RNSVGSvg", { + Object.defineProperty(exports, "RNSVGSvgAndroid", { enumerable: true, get: function get() { - return _$$_REQUIRE(_dependencyMap[1]).RNSVGSvg; + return _$$_REQUIRE(_dependencyMap[1]).RNSVGSvgAndroid; + } + }); + Object.defineProperty(exports, "RNSVGSvgIOS", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[1]).RNSVGSvgIOS; } }); Object.defineProperty(exports, "RNSVGSymbol", { @@ -146414,36 +146400,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _$$_REQUIRE(_dependencyMap[1]).RNSVGUse; } }); - Object.defineProperty(exports, "RadialGradient", { - enumerable: true, - get: function get() { - return _RadialGradient.default; - } - }); - Object.defineProperty(exports, "Rect", { - enumerable: true, - get: function get() { - return _Rect.default; - } - }); Object.defineProperty(exports, "Shape", { enumerable: true, get: function get() { return _Shape.default; } }); - Object.defineProperty(exports, "Stop", { - enumerable: true, - get: function get() { - return _Stop.default; - } - }); - Object.defineProperty(exports, "Svg", { - enumerable: true, - get: function get() { - return _Svg.default; - } - }); Object.defineProperty(exports, "SvgAst", { enumerable: true, get: function get() { @@ -146453,13 +146415,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Object.defineProperty(exports, "SvgCss", { enumerable: true, get: function get() { - return _$$_REQUIRE(_dependencyMap[3]).SvgCss; + return _$$_REQUIRE(_dependencyMap[0]).SvgCss; } }); Object.defineProperty(exports, "SvgCssUri", { enumerable: true, get: function get() { - return _$$_REQUIRE(_dependencyMap[3]).SvgCssUri; + return _$$_REQUIRE(_dependencyMap[0]).SvgCssUri; } }); Object.defineProperty(exports, "SvgFromUri", { @@ -146483,13 +146445,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Object.defineProperty(exports, "SvgWithCss", { enumerable: true, get: function get() { - return _$$_REQUIRE(_dependencyMap[3]).SvgWithCss; + return _$$_REQUIRE(_dependencyMap[0]).SvgWithCss; } }); Object.defineProperty(exports, "SvgWithCssUri", { enumerable: true, get: function get() { - return _$$_REQUIRE(_dependencyMap[3]).SvgWithCssUri; + return _$$_REQUIRE(_dependencyMap[0]).SvgWithCssUri; } }); Object.defineProperty(exports, "SvgXml", { @@ -146498,47 +146460,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _$$_REQUIRE(_dependencyMap[2]).SvgXml; } }); - Object.defineProperty(exports, "Symbol", { - enumerable: true, - get: function get() { - return _Symbol.default; - } - }); - Object.defineProperty(exports, "TSpan", { - enumerable: true, - get: function get() { - return _TSpan.default; - } - }); - Object.defineProperty(exports, "Text", { - enumerable: true, - get: function get() { - return _Text.default; - } - }); - Object.defineProperty(exports, "TextPath", { - enumerable: true, - get: function get() { - return _TextPath.default; - } - }); - Object.defineProperty(exports, "Use", { - enumerable: true, - get: function get() { - return _Use.default; - } - }); Object.defineProperty(exports, "WithLocalSvg", { enumerable: true, get: function get() { return _$$_REQUIRE(_dependencyMap[0]).WithLocalSvg; } }); - exports.default = undefined; + Object.defineProperty(exports, "camelCase", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[2]).camelCase; + } + }); + Object.defineProperty(exports, "default", { + enumerable: true, + get: function get() { + return _elements.default; + } + }); + Object.defineProperty(exports, "fetchText", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[3]).fetchText; + } + }); Object.defineProperty(exports, "inlineStyles", { enumerable: true, get: function get() { - return _$$_REQUIRE(_dependencyMap[3]).inlineStyles; + return _$$_REQUIRE(_dependencyMap[0]).inlineStyles; } }); Object.defineProperty(exports, "loadLocalRawResource", { @@ -146556,229 +146505,583 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _Shape = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[5])); - var _Rect = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[6])); + Object.keys(_$$_REQUIRE(_dependencyMap[6])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[6])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[6])[key]; + } + }); + }); - var _Circle = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[7])); + var _elements = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); - var _Ellipse = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[8])); + Object.keys(_elements).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + if (key in exports && exports[key] === _elements[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _elements[key]; + } + }); + }); - var _Polygon = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[9])); + 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); } - var _Polyline = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[10])); - - var _Line = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[11])); - - var _Svg = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[12])); - - var _Path = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[13])); - - var _G = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[14])); - - var _Text = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[15])); - - var _TSpan = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[16])); - - var _TextPath = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[17])); - - var _Use = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[18])); - - var _Image = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[19])); - - var _Symbol = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[20])); - - var _Defs = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[21])); - - var _LinearGradient = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[22])); - - var _RadialGradient = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[23])); - - var _Stop = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[24])); - - var _ClipPath = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[25])); - - var _Pattern = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[26])); - - var _Mask = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[27])); - - var _Marker = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[28])); - - var _ForeignObject = _$$_REQUIRE(_dependencyMap[4])(_$$_REQUIRE(_dependencyMap[29])); - - var _default = exports.default = _Svg.default; -},942,[943,948,944,988,3,946,945,961,962,963,966,967,968,964,970,972,973,974,975,976,977,978,979,982,983,984,985,986,987,1144]); + 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; } +},944,[945,946,974,1050,3,982,1051,976]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.LocalSvg = LocalSvg; - exports.default = exports.WithLocalSvg = undefined; - exports.getUriFromSource = getUriFromSource; - exports.isUriAnAndroidResourceIdentifier = isUriAnAndroidResourceIdentifier; - exports.loadAndroidRawResource = loadAndroidRawResource; - exports.loadLocalRawResource = undefined; - exports.loadLocalRawResourceAndroid = loadLocalRawResourceAndroid; - exports.loadLocalRawResourceDefault = loadLocalRawResourceDefault; + exports.SvgCss = SvgCss; + exports.SvgCssUri = SvgCssUri; + exports.SvgWithCss = SvgWithCss; + exports.SvgWithCssUri = SvgWithCssUri; + exports.WithLocalSvg = WithLocalSvg; + exports.inlineStyles = inlineStyles; + exports.loadLocalRawResource = loadLocalRawResource; + exports.showErrorCSS = showErrorCSS; - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[10]); - - var _resolveAssetSource = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - var _excluded = ["asset"]; - - 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); } - - 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; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var _ref = _reactNative.NativeModules.RNSVGRenderableManager || {}, - getRawResource = _ref.getRawResource; - - function getUriFromSource(source) { - var resolvedAssetSource = (0, _resolveAssetSource.default)(source); - return resolvedAssetSource.uri; + function showErrorCSS(name, type) { + throw Error("[react-native-svg] You are trying to import a " + type + " `" + name + "` that has been moved to a sub-package. Change your import from `react-native-svg` to `react-native-svg/css`."); } - function loadLocalRawResourceDefault(source) { - var uri = getUriFromSource(source); - return (0, _$$_REQUIRE(_dependencyMap[12]).fetchText)(uri); + function SvgCss() { + showErrorCSS('SvgCss', 'component'); } - function isUriAnAndroidResourceIdentifier(uri) { - return typeof uri === 'string' && uri.indexOf('/') <= -1; + function SvgCssUri() { + showErrorCSS('SvgCssUri', 'component'); } - function loadAndroidRawResource(_x) { - return _loadAndroidRawResource.apply(this, arguments); + function SvgWithCss() { + showErrorCSS('SvgWithCss', 'component'); } - function _loadAndroidRawResource() { - _loadAndroidRawResource = (0, _asyncToGenerator2.default)(function* (uri) { - try { - return yield getRawResource(uri); - } catch (e) { - console.error('Error in RawResourceUtils while trying to natively load an Android raw resource: ', e); - return null; - } - }); - return _loadAndroidRawResource.apply(this, arguments); + function SvgWithCssUri() { + showErrorCSS('SvgWithCssUri', 'component'); } - function loadLocalRawResourceAndroid(source) { - var uri = getUriFromSource(source); + function inlineStyles() { + showErrorCSS('inlineStyles', 'function'); + } - if (isUriAnAndroidResourceIdentifier(uri)) { - return loadAndroidRawResource(uri); - } else { - return (0, _$$_REQUIRE(_dependencyMap[12]).fetchText)(uri); + function LocalSvg() { + showErrorCSS('LocalSvg', 'component'); + } + + function WithLocalSvg() { + showErrorCSS('WithLocalSvg', 'component'); + } + + function loadLocalRawResource() { + showErrorCSS('loadLocalRawResource', 'function'); + } +},945,[]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.defineProperty(exports, "RNSVGCircle", { + enumerable: true, + get: function get() { + return _CircleNativeComponent.default; } - } - - var loadLocalRawResource = exports.loadLocalRawResource = _reactNative.Platform.OS !== 'android' ? loadLocalRawResourceDefault : loadLocalRawResourceAndroid; - - function LocalSvg(props) { - var asset = props.asset, - rest = (0, _objectWithoutProperties2.default)(props, _excluded); - - var _useState = (0, _react.useState)(null), - _useState2 = (0, _slicedToArray2.default)(_useState, 2), - xml = _useState2[0], - setXml = _useState2[1]; - - (0, _react.useEffect)(function () { - loadLocalRawResource(asset).then(setXml); - }, [asset]); - return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_$$_REQUIRE(_dependencyMap[14]).SvgCss, Object.assign({ - xml: xml - }, rest)); - } - - var WithLocalSvg = exports.WithLocalSvg = function (_Component) { - function WithLocalSvg() { - var _this; - - (0, _classCallCheck2.default)(this, WithLocalSvg); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _callSuper(this, WithLocalSvg, [].concat(args)); - _this.state = { - xml: null - }; - return _this; + }); + Object.defineProperty(exports, "RNSVGClipPath", { + enumerable: true, + get: function get() { + return _ClipPathNativeComponent.default; } + }); + Object.defineProperty(exports, "RNSVGDefs", { + enumerable: true, + get: function get() { + return _DefsNativeComponent.default; + } + }); + Object.defineProperty(exports, "RNSVGEllipse", { + enumerable: true, + get: function get() { + return _EllipseNativeComponent.default; + } + }); + Object.defineProperty(exports, "RNSVGFeColorMatrix", { + enumerable: true, + get: function get() { + return _FeColorMatrixNativeComponent.default; + } + }); + Object.defineProperty(exports, "RNSVGFeGaussianBlur", { + enumerable: true, + get: function get() { + return _FeGaussianBlurNativeComponent.default; + } + }); + Object.defineProperty(exports, "RNSVGFeMerge", { + enumerable: true, + get: function get() { + return _FeMergeNativeComponent.default; + } + }); + Object.defineProperty(exports, "RNSVGFeOffset", { + enumerable: true, + get: function get() { + return _FeOffsetNativeComponent.default; + } + }); + Object.defineProperty(exports, "RNSVGFilter", { + enumerable: true, + get: function get() { + return _FilterNativeComponent.default; + } + }); + Object.defineProperty(exports, "RNSVGForeignObject", { + enumerable: true, + get: function get() { + return _ForeignObjectNativeComponent.default; + } + }); + Object.defineProperty(exports, "RNSVGGroup", { + enumerable: true, + get: function get() { + return _GroupNativeComponent.default; + } + }); + Object.defineProperty(exports, "RNSVGImage", { + enumerable: true, + get: function get() { + return _ImageNativeComponent.default; + } + }); + Object.defineProperty(exports, "RNSVGLine", { + enumerable: true, + get: function get() { + return _LineNativeComponent.default; + } + }); + Object.defineProperty(exports, "RNSVGLinearGradient", { + enumerable: true, + get: function get() { + return _LinearGradientNativeComponent.default; + } + }); + Object.defineProperty(exports, "RNSVGMarker", { + enumerable: true, + get: function get() { + return _MarkerNativeComponent.default; + } + }); + Object.defineProperty(exports, "RNSVGMask", { + enumerable: true, + get: function get() { + return _MaskNativeComponent.default; + } + }); + Object.defineProperty(exports, "RNSVGPath", { + enumerable: true, + get: function get() { + return _PathNativeComponent.default; + } + }); + Object.defineProperty(exports, "RNSVGPattern", { + enumerable: true, + get: function get() { + return _PatternNativeComponent.default; + } + }); + Object.defineProperty(exports, "RNSVGRadialGradient", { + enumerable: true, + get: function get() { + return _RadialGradientNativeComponent.default; + } + }); + Object.defineProperty(exports, "RNSVGRect", { + enumerable: true, + get: function get() { + return _RectNativeComponent.default; + } + }); + Object.defineProperty(exports, "RNSVGSvgAndroid", { + enumerable: true, + get: function get() { + return _AndroidSvgViewNativeComponent.default; + } + }); + Object.defineProperty(exports, "RNSVGSvgIOS", { + enumerable: true, + get: function get() { + return _IOSSvgViewNativeComponent.default; + } + }); + Object.defineProperty(exports, "RNSVGSymbol", { + enumerable: true, + get: function get() { + return _SymbolNativeComponent.default; + } + }); + Object.defineProperty(exports, "RNSVGTSpan", { + enumerable: true, + get: function get() { + return _TSpanNativeComponent.default; + } + }); + Object.defineProperty(exports, "RNSVGText", { + enumerable: true, + get: function get() { + return _TextNativeComponent.default; + } + }); + Object.defineProperty(exports, "RNSVGTextPath", { + enumerable: true, + get: function get() { + return _TextPathNativeComponent.default; + } + }); + Object.defineProperty(exports, "RNSVGUse", { + enumerable: true, + get: function get() { + return _UseNativeComponent.default; + } + }); - (0, _inherits2.default)(WithLocalSvg, _Component); - return (0, _createClass2.default)(WithLocalSvg, [{ - key: "componentDidMount", - value: function componentDidMount() { - this.load(this.props.asset); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var asset = this.props.asset; + var _CircleNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - if (asset !== prevProps.asset) { - this.load(asset); - } - } - }, { - key: "load", - value: function () { - var _load = (0, _asyncToGenerator2.default)(function* (asset) { - try { - this.setState({ - xml: asset ? yield loadLocalRawResource(asset) : null - }); - } catch (e) { - console.error(e); - } - }); + var _ClipPathNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - function load(_x2) { - return _load.apply(this, arguments); - } + var _DefsNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - return load; - }() - }, { - key: "render", - value: function render() { - var props = this.props, - xml = this.state.xml; - return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_$$_REQUIRE(_dependencyMap[14]).SvgWithCss, { - xml: xml, - override: props - }); - } - }]); - }(_react.Component); + var _EllipseNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var _default = exports.default = LocalSvg; -},943,[3,6,7,11,13,14,33,4,270,16,18,154,944,179,988]); + var _ForeignObjectNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _GroupNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _ImageNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _LinearGradientNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _LineNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _MarkerNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _MaskNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + var _PathNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + + var _PatternNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); + + var _RadialGradientNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); + + var _RectNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); + + var _AndroidSvgViewNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); + + var _IOSSvgViewNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[17])); + + var _SymbolNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[18])); + + var _TextNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[19])); + + var _TextPathNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[20])); + + var _TSpanNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[21])); + + var _UseNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[22])); + + var _FilterNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[23])); + + var _FeColorMatrixNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[24])); + + var _FeGaussianBlurNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[25])); + + var _FeMergeNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[26])); + + var _FeOffsetNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[27])); +},946,[3,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGCircle'); +},947,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGClipPath'); +},948,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGDefs'); +},949,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGEllipse'); +},950,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGForeignObject'); +},951,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGGroup'); +},952,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGImage', { + interfaceOnly: true + }); +},953,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGLinearGradient'); +},954,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGLine'); +},955,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGMarker'); +},956,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGMask'); +},957,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGPath'); +},958,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGPattern'); +},959,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGRadialGradient'); +},960,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGRect'); +},961,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGSvgViewAndroid', { + excludedPlatforms: ['iOS'] + }); +},962,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGSvgView', { + excludedPlatforms: ['android'] + }); +},963,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGSymbol'); +},964,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGText'); +},965,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGTextPath'); +},966,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGTSpan'); +},967,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGUse'); +},968,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGFilter'); +},969,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGFeColorMatrix'); +},970,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGFeGaussianBlur'); +},971,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGFeMerge'); +},972,[3,183]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _codegenNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _default = exports.default = (0, _codegenNativeComponent.default)('RNSVGFeOffset'); +},973,[3,183]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -146788,73 +147091,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e exports.SvgUri = SvgUri; exports.SvgXml = SvgXml; exports.astToReact = astToReact; - exports.err = exports.camelCase = undefined; - exports.fetchText = fetchText; + exports.camelCase = undefined; exports.getStyle = getStyle; exports.parse = _parse; - exports.tags = undefined; + Object.defineProperty(exports, "tags", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0]).tags; + } + }); - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[2])); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[3])); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + var _createClass2 = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[4])); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[5])); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[6])); - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _inherits2 = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[7])); - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[8])); - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8])); + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9])); - var _Rect = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _Circle = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _Ellipse = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - var _Polygon = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - - var _Polyline = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); - - var _Line = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); - - var _Svg = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); - - var _Path = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); - - var _G = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[17])); - - var _Text = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[18])); - - var _TSpan = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[19])); - - var _TextPath = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[20])); - - var _Use = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[21])); - - var _Image = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[22])); - - var _Symbol = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[23])); - - var _Defs = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[24])); - - var _LinearGradient = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[25])); - - var _RadialGradient = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[26])); - - var _Stop = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[27])); - - var _ClipPath = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[28])); - - var _Pattern = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[29])); - - var _Mask = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[30])); - - var _Marker = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[31])); + var React = _react; 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); } @@ -146864,32 +147127,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - var tags = exports.tags = { - svg: _Svg.default, - circle: _Circle.default, - ellipse: _Ellipse.default, - g: _G.default, - text: _Text.default, - tspan: _TSpan.default, - textPath: _TextPath.default, - path: _Path.default, - polygon: _Polygon.default, - polyline: _Polyline.default, - line: _Line.default, - rect: _Rect.default, - use: _Use.default, - image: _Image.default, - symbol: _Symbol.default, - defs: _Defs.default, - linearGradient: _LinearGradient.default, - radialGradient: _RadialGradient.default, - stop: _Stop.default, - clipPath: _ClipPath.default, - pattern: _Pattern.default, - mask: _Mask.default, - marker: _Marker.default - }; - function missingTag() { return null; } @@ -146904,61 +147141,74 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var props = ast.props, children = ast.children; - return (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(_Svg.default, Object.assign({}, props, override, { + + var Svg = _$$_REQUIRE(_dependencyMap[0]).tags.svg; + + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(Svg, Object.assign({}, props, override, { children: children })); } - var err = exports.err = console.error.bind(console); + var err = console.error.bind(console); function SvgXml(props) { var _props$onError = props.onError, onError = _props$onError === undefined ? err : _props$onError, xml = props.xml, - override = props.override; - var ast = (0, _react.useMemo)(function () { - return xml !== null ? _parse(xml) : null; - }, [xml]); + override = props.override, + fallback = props.fallback; try { - return (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(SvgAst, { - ast: ast, + var _ast = (0, _react.useMemo)(function () { + return xml !== null ? _parse(xml) : null; + }, [xml]); + + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(SvgAst, { + ast: _ast, override: override || props }); } catch (error) { onError(error); - return null; + return fallback != null ? fallback : null; } } - function fetchText(_x) { - return _fetchText.apply(this, arguments); - } - - function _fetchText() { - _fetchText = (0, _asyncToGenerator2.default)(function* (uri) { - var response = yield fetch(uri); - return yield response.text(); - }); - return _fetchText.apply(this, arguments); - } - function SvgUri(props) { var _props$onError2 = props.onError, onError = _props$onError2 === undefined ? err : _props$onError2, - uri = props.uri; + uri = props.uri, + onLoad = props.onLoad, + fallback = props.fallback; var _useState = (0, _react.useState)(null), _useState2 = (0, _slicedToArray2.default)(_useState, 2), xml = _useState2[0], setXml = _useState2[1]; + var _useState3 = (0, _react.useState)(false), + _useState4 = (0, _slicedToArray2.default)(_useState3, 2), + isError = _useState4[0], + setIsError = _useState4[1]; + (0, _react.useEffect)(function () { - uri ? fetchText(uri).then(setXml).catch(onError) : setXml(null); - }, [onError, uri]); - return (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(SvgXml, { + uri ? (0, _$$_REQUIRE(_dependencyMap[11]).fetchText)(uri).then(function (data) { + setXml(data); + isError && setIsError(false); + onLoad == null ? undefined : onLoad(); + }).catch(function (e) { + onError(e); + setIsError(true); + }) : setXml(null); + }, [onError, uri, onLoad]); + + if (isError) { + return fallback != null ? fallback : null; + } + + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(SvgXml, { xml: xml, - override: props + override: props, + fallback: fallback }); } @@ -146997,12 +147247,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "parse", value: function parse(xml) { + var _this$props$onError = this.props.onError, + onError = _this$props$onError === undefined ? err : _this$props$onError; + try { this.setState({ ast: xml ? _parse(xml) : null }); } catch (e) { - console.error(e); + var _error = e; + onError(Object.assign({}, _error, { + message: "[RNSVG] Couldn't parse SVG, reason: " + _error.message + })); } } }, { @@ -147010,7 +147266,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function render() { var props = this.props, ast = this.state.ast; - return (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(SvgAst, { + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(SvgAst, { ast: ast, override: props.override || props }); @@ -147056,14 +147312,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _fetch = (0, _asyncToGenerator2.default)(function* (uri) { try { this.setState({ - xml: uri ? yield fetchText(uri) : null + xml: uri ? yield (0, _$$_REQUIRE(_dependencyMap[11]).fetchText)(uri) : null }); } catch (e) { console.error(e); } }); - function fetch(_x2) { + function fetch(_x) { return _fetch.apply(this, arguments); } @@ -147074,9 +147330,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function render() { var props = this.props, xml = this.state.xml; - return (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(SvgFromXml, { + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(SvgFromXml, { xml: xml, - override: props + override: props, + onError: props.onError }); } }]); @@ -147092,7 +147349,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function getStyle(string) { var style = {}; - var declarations = string.split(';'); + var declarations = string.split(';').filter(function (v) { + return v.trim(); + }); var length = declarations.length; for (var i = 0; i < length; i++) { @@ -147111,10 +147370,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function astToReact(value, index) { if (typeof value === 'object') { - var Tag = value.Tag, + var _Tag = value.Tag, props = value.props, children = value.children; - return (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(Tag, Object.assign({}, props, { + + if (props != null && props.class) { + props.className = props.class; + delete props.class; + } + + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_Tag, Object.assign({}, props, { children: children.map(astToReact) }), index); } @@ -147168,6 +147433,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } var validNameCharacters = /[a-zA-Z0-9:_-]/; + var commentStart = / ' + loc + '\n' + filler + ' |\n' + offset_s.line + ' | ' + line + '\n' + filler + ' | ' + peg$padEnd('', s.column - 1, ' ') + peg$padEnd('', hatLen, '^'); + } else { + str += '\n at ' + loc; + } + } + + return str; + }; + + peg$SyntaxError.buildMessage = function (expected, found) { + var DESCRIBE_EXPECTATION_FNS = { + literal: function literal(expectation) { + return '"' + literalEscape(expectation.text) + '"'; + }, + class: function _class(expectation) { + var escapedParts = expectation.parts.map(function (part) { + return Array.isArray(part) ? classEscape(part[0]) + '-' + classEscape(part[1]) : classEscape(part); + }); + return '[' + (expectation.inverted ? '^' : '') + escapedParts.join('') + ']'; + }, + any: function any() { + return 'any character'; + }, + end: function end() { + return 'end of input'; + }, + other: function other(expectation) { + return expectation.description; + } + }; + + function hex(ch) { + return ch.charCodeAt(0).toString(16).toUpperCase(); + } + + function literalEscape(s) { + return s.replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\0/g, '\\0').replace(/\t/g, '\\t').replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/[\x00-\x0F]/g, function (ch) { + return '\\x0' + hex(ch); + }).replace(/[\x10-\x1F\x7F-\x9F]/g, function (ch) { + return '\\x' + hex(ch); + }); + } + + function classEscape(s) { + return s.replace(/\\/g, '\\\\').replace(/\]/g, '\\]').replace(/\^/g, '\\^').replace(/-/g, '\\-').replace(/\0/g, '\\0').replace(/\t/g, '\\t').replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/[\x00-\x0F]/g, function (ch) { + return '\\x0' + hex(ch); + }).replace(/[\x10-\x1F\x7F-\x9F]/g, function (ch) { + return '\\x' + hex(ch); + }); + } + + function describeExpectation(expectation) { + return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation); + } + + function describeExpected(expected) { + var descriptions = expected.map(describeExpectation); + var i, j; + descriptions.sort(); + + if (descriptions.length > 0) { + for (i = 1, j = 1; i < descriptions.length; i++) { + if (descriptions[i - 1] !== descriptions[i]) { + descriptions[j] = descriptions[i]; + j++; + } + } + + descriptions.length = j; + } + + switch (descriptions.length) { + case 1: + return descriptions[0]; + + case 2: + return descriptions[0] + ' or ' + descriptions[1]; + + default: + return descriptions.slice(0, -1).join(', ') + ', or ' + descriptions[descriptions.length - 1]; + } + } + + function describeFound(found) { + return found ? '"' + literalEscape(found) + '"' : 'end of input'; + } + + return 'Expected ' + describeExpected(expected) + ' but ' + describeFound(found) + ' found.'; + }; + + function peg$parse(input, options) { + options = options !== undefined ? options : {}; + var peg$FAILED = {}; + var peg$source = options.grammarSource; + var peg$startRuleFunctions = { + start: peg$parsestart + }; + var peg$startRuleFunction = peg$parsestart; + var peg$c0 = 'matrix('; + var peg$c1 = ')'; + var peg$c2 = 'translate('; + var peg$c3 = 'scale('; + var peg$c4 = 'rotate('; + var peg$c5 = 'skewX('; + var peg$c6 = 'skewY('; + var peg$c7 = '.'; + var peg$c8 = 'e'; + var peg$r0 = /^[ \t\n\r,]/; + var peg$r1 = /^[ \t\n\r]/; + var peg$r2 = /^[+\-]/; + var peg$r3 = /^[0-9]/; + var peg$e0 = peg$otherExpectation('transform functions'); + var peg$e1 = peg$otherExpectation('transformFunctions'); + var peg$e2 = peg$otherExpectation('transform function'); + var peg$e3 = peg$otherExpectation('matrix'); + var peg$e4 = peg$literalExpectation('matrix(', false); + var peg$e5 = peg$literalExpectation(')', false); + var peg$e6 = peg$otherExpectation('translate'); + var peg$e7 = peg$literalExpectation('translate(', false); + var peg$e8 = peg$otherExpectation('scale'); + var peg$e9 = peg$literalExpectation('scale(', false); + var peg$e10 = peg$otherExpectation('rotate'); + var peg$e11 = peg$literalExpectation('rotate(', false); + var peg$e12 = peg$otherExpectation('x, y'); + var peg$e13 = peg$otherExpectation('skewX'); + var peg$e14 = peg$literalExpectation('skewX(', false); + var peg$e15 = peg$otherExpectation('skewY'); + var peg$e16 = peg$literalExpectation('skewY(', false); + var peg$e17 = peg$otherExpectation('space or comma'); + var peg$e18 = peg$classExpectation([' ', '\t', '\n', '\r', ','], false, false); + var peg$e19 = peg$otherExpectation('whitespace'); + var peg$e20 = peg$classExpectation([' ', '\t', '\n', '\r'], false, false); + var peg$e21 = peg$classExpectation(['+', '-'], false, false); + var peg$e22 = peg$classExpectation([['0', '9']], false, false); + var peg$e23 = peg$literalExpectation('.', false); + var peg$e24 = peg$literalExpectation('e', false); + + var peg$f0 = function peg$f0(head, tail) { + var results = Array.isArray(head) ? head : [head]; + tail.forEach(function (element) { + if (Array.isArray(element[1])) { + results.push.apply(results, _$$_REQUIRE(_dependencyMap[0])(element[1])); + } else { + results.push(element[1]); + } + }); + return results; + }; + + var peg$f1 = function peg$f1(a, b, c, d, e, f, g, h, i) { + return { + matrix: [a, b, c, d, e, f, g, h, i] + }; + }; + + var peg$f2 = function peg$f2(x, y) { + if (y == undefined) { + return { + translate: x + }; + } + + return { + translate: [x, y] + }; + }; + + var peg$f3 = function peg$f3(x, y) { + if (y == undefined) { + return { + scale: x + }; + } + + return [{ + scaleX: x + }, { + scaleY: y + }]; + }; + + var peg$f4 = function peg$f4(x, yz) { + if (yz !== null) { + return { + rotate: x + "deg" + }; + } + + return [{ + rotate: x + "deg" + }]; + }; + + var peg$f5 = function peg$f5(y, z) { + return [y, z]; + }; + + var peg$f6 = function peg$f6(x) { + return [{ + skewX: x + "deg" + }]; + }; + + var peg$f7 = function peg$f7(y) { + return [{ + skewY: y + "deg" + }]; + }; + + var peg$f8 = function peg$f8() { + return parseFloat(text()); + }; + + var peg$currPos = options.peg$currPos | 0; + var peg$savedPos = peg$currPos; + var peg$posDetailsCache = [{ + line: 1, + column: 1 + }]; + var peg$maxFailPos = peg$currPos; + var peg$maxFailExpected = options.peg$maxFailExpected || []; + var peg$silentFails = options.peg$silentFails | 0; + var peg$result; + + if (options.startRule) { + if (!(options.startRule in peg$startRuleFunctions)) { + throw new Error('Can\'t start parsing from rule "' + options.startRule + '".'); + } + + peg$startRuleFunction = peg$startRuleFunctions[options.startRule]; + } + + function text() { + return input.substring(peg$savedPos, peg$currPos); + } + + function peg$literalExpectation(text, ignoreCase) { + return { + type: 'literal', + text: text, + ignoreCase: ignoreCase + }; + } + + function peg$classExpectation(parts, inverted, ignoreCase) { + return { + type: 'class', + parts: parts, + inverted: inverted, + ignoreCase: ignoreCase + }; + } + + function peg$endExpectation() { + return { + type: 'end' + }; + } + + function peg$otherExpectation(description) { + return { + type: 'other', + description: description + }; + } + + function peg$computePosDetails(pos) { + var details = peg$posDetailsCache[pos]; + var p; + + if (details) { + return details; + } else { + if (pos >= peg$posDetailsCache.length) { + p = peg$posDetailsCache.length - 1; + } else { + p = pos; + + while (!peg$posDetailsCache[--p]) {} + } + + details = peg$posDetailsCache[p]; + details = { + line: details.line, + column: details.column + }; + + while (p < pos) { + if (input.charCodeAt(p) === 10) { + details.line++; + details.column = 1; + } else { + details.column++; + } + + p++; + } + + peg$posDetailsCache[pos] = details; + return details; + } + } + + function peg$computeLocation(startPos, endPos, offset) { + var startPosDetails = peg$computePosDetails(startPos); + var endPosDetails = peg$computePosDetails(endPos); + var res = { + source: peg$source, + start: { + offset: startPos, + line: startPosDetails.line, + column: startPosDetails.column + }, + end: { + offset: endPos, + line: endPosDetails.line, + column: endPosDetails.column + } + }; + + if (offset && peg$source && typeof peg$source.offset === 'function') { + res.start = peg$source.offset(res.start); + res.end = peg$source.offset(res.end); + } + + return res; + } + + function peg$fail(expected) { + if (peg$currPos < peg$maxFailPos) { + return; + } + + if (peg$currPos > peg$maxFailPos) { + peg$maxFailPos = peg$currPos; + peg$maxFailExpected = []; + } + + peg$maxFailExpected.push(expected); + } + + function peg$buildStructuredError(expected, found, location) { + return new peg$SyntaxError(peg$SyntaxError.buildMessage(expected, found), expected, found, location); + } + + function peg$parsestart() { + var s0, s1; + peg$silentFails++; + s0 = peg$parsetransformFunctions(); + peg$silentFails--; + + if (s0 === peg$FAILED) { + s1 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e0); + } + } + + return s0; + } + + function peg$parsetransformFunctions() { + var s0, s1, s2, s3, s4, s5; + peg$silentFails++; + s0 = peg$currPos; + s1 = peg$parsefunction(); + + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse_(); + s5 = peg$parsefunction(); + + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse_(); + s5 = peg$parsefunction(); + + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + + peg$savedPos = s0; + s0 = peg$f0(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + peg$silentFails--; + + if (s0 === peg$FAILED) { + s1 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e1); + } + } + + return s0; + } + + function peg$parsefunction() { + var s0, s1; + peg$silentFails++; + s0 = peg$parsematrix(); + + if (s0 === peg$FAILED) { + s0 = peg$parsetranslate(); + + if (s0 === peg$FAILED) { + s0 = peg$parsescale(); + + if (s0 === peg$FAILED) { + s0 = peg$parserotate(); + + if (s0 === peg$FAILED) { + s0 = peg$parseskewX(); + + if (s0 === peg$FAILED) { + s0 = peg$parseskewY(); + } + } + } + } + } + + peg$silentFails--; + + if (s0 === peg$FAILED) { + s1 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e2); + } + } + + return s0; + } + + function peg$parsematrix() { + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14, s15, s16, s17, s18, s19, s20, s21, s22, s23; + peg$silentFails++; + s0 = peg$currPos; + s1 = peg$parse_(); + + if (input.substr(peg$currPos, 7) === peg$c0) { + s2 = peg$c0; + peg$currPos += 7; + } else { + s2 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e4); + } + } + + if (s2 !== peg$FAILED) { + s3 = peg$parse_(); + s4 = peg$parseNUM(); + + if (s4 !== peg$FAILED) { + s5 = peg$parsespaceOrComma(); + s6 = peg$parseNUM(); + + if (s6 !== peg$FAILED) { + s7 = peg$parsespaceOrComma(); + s8 = peg$parseNUM(); + + if (s8 !== peg$FAILED) { + s9 = peg$parsespaceOrComma(); + s10 = peg$parseNUM(); + + if (s10 !== peg$FAILED) { + s11 = peg$parsespaceOrComma(); + s12 = peg$parseNUM(); + + if (s12 !== peg$FAILED) { + s13 = peg$parsespaceOrComma(); + s14 = peg$parseNUM(); + + if (s14 !== peg$FAILED) { + s15 = peg$parsespaceOrComma(); + s16 = peg$parseNUM(); + + if (s16 !== peg$FAILED) { + s17 = peg$parsespaceOrComma(); + s18 = peg$parseNUM(); + + if (s18 !== peg$FAILED) { + s19 = peg$parsespaceOrComma(); + s20 = peg$parseNUM(); + + if (s20 !== peg$FAILED) { + s21 = peg$parse_(); + + if (input.charCodeAt(peg$currPos) === 41) { + s22 = peg$c1; + peg$currPos++; + } else { + s22 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e5); + } + } + + if (s22 !== peg$FAILED) { + s23 = peg$parse_(); + peg$savedPos = s0; + s0 = peg$f1(s4, s6, s8, s10, s12, s14, s16, s18, s20); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + peg$silentFails--; + + if (s0 === peg$FAILED) { + s1 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e3); + } + } + + return s0; + } + + function peg$parsetranslate() { + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; + peg$silentFails++; + s0 = peg$currPos; + s1 = peg$parse_(); + + if (input.substr(peg$currPos, 10) === peg$c2) { + s2 = peg$c2; + peg$currPos += 10; + } else { + s2 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e7); + } + } + + if (s2 !== peg$FAILED) { + s3 = peg$parse_(); + s4 = peg$parseNUM(); + + if (s4 !== peg$FAILED) { + s5 = peg$parsespaceOrComma(); + s6 = peg$parseNUM(); + + if (s6 === peg$FAILED) { + s6 = null; + } + + s7 = peg$parse_(); + + if (input.charCodeAt(peg$currPos) === 41) { + s8 = peg$c1; + peg$currPos++; + } else { + s8 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e5); + } + } + + if (s8 !== peg$FAILED) { + s9 = peg$parse_(); + peg$savedPos = s0; + s0 = peg$f2(s4, s6); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + peg$silentFails--; + + if (s0 === peg$FAILED) { + s1 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e6); + } + } + + return s0; + } + + function peg$parsescale() { + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; + peg$silentFails++; + s0 = peg$currPos; + s1 = peg$parse_(); + + if (input.substr(peg$currPos, 6) === peg$c3) { + s2 = peg$c3; + peg$currPos += 6; + } else { + s2 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e9); + } + } + + if (s2 !== peg$FAILED) { + s3 = peg$parse_(); + s4 = peg$parseNUM(); + + if (s4 !== peg$FAILED) { + s5 = peg$parsespaceOrComma(); + s6 = peg$parseNUM(); + + if (s6 === peg$FAILED) { + s6 = null; + } + + s7 = peg$parse_(); + + if (input.charCodeAt(peg$currPos) === 41) { + s8 = peg$c1; + peg$currPos++; + } else { + s8 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e5); + } + } + + if (s8 !== peg$FAILED) { + s9 = peg$parse_(); + peg$savedPos = s0; + s0 = peg$f3(s4, s6); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + peg$silentFails--; + + if (s0 === peg$FAILED) { + s1 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e8); + } + } + + return s0; + } + + function peg$parserotate() { + var s0, s1, s2, s3, s4, s5, s6, s7, s8; + peg$silentFails++; + s0 = peg$currPos; + s1 = peg$parse_(); + + if (input.substr(peg$currPos, 7) === peg$c4) { + s2 = peg$c4; + peg$currPos += 7; + } else { + s2 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e11); + } + } + + if (s2 !== peg$FAILED) { + s3 = peg$parse_(); + s4 = peg$parseNUM(); + + if (s4 !== peg$FAILED) { + s5 = peg$parsetwoNumbers(); + + if (s5 === peg$FAILED) { + s5 = null; + } + + s6 = peg$parse_(); + + if (input.charCodeAt(peg$currPos) === 41) { + s7 = peg$c1; + peg$currPos++; + } else { + s7 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e5); + } + } + + if (s7 !== peg$FAILED) { + s8 = peg$parse_(); + peg$savedPos = s0; + s0 = peg$f4(s4, s5); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + peg$silentFails--; + + if (s0 === peg$FAILED) { + s1 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e10); + } + } + + return s0; + } + + function peg$parsetwoNumbers() { + var s0, s1, s2, s3, s4; + peg$silentFails++; + s0 = peg$currPos; + s1 = peg$parsespaceOrComma(); + s2 = peg$parseNUM(); + + if (s2 !== peg$FAILED) { + s3 = peg$parsespaceOrComma(); + s4 = peg$parseNUM(); + + if (s4 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f5(s2, s4); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + peg$silentFails--; + + if (s0 === peg$FAILED) { + s1 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e12); + } + } + + return s0; + } + + function peg$parseskewX() { + var s0, s1, s2, s3, s4, s5, s6, s7; + peg$silentFails++; + s0 = peg$currPos; + s1 = peg$parse_(); + + if (input.substr(peg$currPos, 6) === peg$c5) { + s2 = peg$c5; + peg$currPos += 6; + } else { + s2 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e14); + } + } + + if (s2 !== peg$FAILED) { + s3 = peg$parse_(); + s4 = peg$parseNUM(); + + if (s4 !== peg$FAILED) { + s5 = peg$parse_(); + + if (input.charCodeAt(peg$currPos) === 41) { + s6 = peg$c1; + peg$currPos++; + } else { + s6 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e5); + } + } + + if (s6 !== peg$FAILED) { + s7 = peg$parse_(); + peg$savedPos = s0; + s0 = peg$f6(s4); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + peg$silentFails--; + + if (s0 === peg$FAILED) { + s1 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e13); + } + } + + return s0; + } + + function peg$parseskewY() { + var s0, s1, s2, s3, s4, s5, s6, s7; + peg$silentFails++; + s0 = peg$currPos; + s1 = peg$parse_(); + + if (input.substr(peg$currPos, 6) === peg$c6) { + s2 = peg$c6; + peg$currPos += 6; + } else { + s2 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e16); + } + } + + if (s2 !== peg$FAILED) { + s3 = peg$parse_(); + s4 = peg$parseNUM(); + + if (s4 !== peg$FAILED) { + s5 = peg$parse_(); + + if (input.charCodeAt(peg$currPos) === 41) { + s6 = peg$c1; + peg$currPos++; + } else { + s6 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e5); + } + } + + if (s6 !== peg$FAILED) { + s7 = peg$parse_(); + peg$savedPos = s0; + s0 = peg$f7(s4); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + peg$silentFails--; + + if (s0 === peg$FAILED) { + s1 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e15); + } + } + + return s0; + } + + function peg$parsespaceOrComma() { + var s0, s1; + peg$silentFails++; + s0 = []; + s1 = input.charAt(peg$currPos); + + if (peg$r0.test(s1)) { + peg$currPos++; + } else { + s1 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e18); + } + } + + while (s1 !== peg$FAILED) { + s0.push(s1); + s1 = input.charAt(peg$currPos); + + if (peg$r0.test(s1)) { + peg$currPos++; + } else { + s1 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e18); + } + } + } + + peg$silentFails--; + s1 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e17); + } + + return s0; + } + + function peg$parse_() { + var s0, s1; + peg$silentFails++; + s0 = []; + s1 = input.charAt(peg$currPos); + + if (peg$r1.test(s1)) { + peg$currPos++; + } else { + s1 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e20); + } + } + + while (s1 !== peg$FAILED) { + s0.push(s1); + s1 = input.charAt(peg$currPos); + + if (peg$r1.test(s1)) { + peg$currPos++; + } else { + s1 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e20); + } + } + } + + peg$silentFails--; + s1 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e19); + } + + return s0; + } + + function peg$parseNUM() { + var s0, s1, s2, s3, s4, s5, s6, s7; + s0 = peg$currPos; + s1 = input.charAt(peg$currPos); + + if (peg$r2.test(s1)) { + peg$currPos++; + } else { + s1 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e21); + } + } + + if (s1 === peg$FAILED) { + s1 = null; + } + + s2 = peg$currPos; + s3 = []; + s4 = input.charAt(peg$currPos); + + if (peg$r3.test(s4)) { + peg$currPos++; + } else { + s4 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e22); + } + } + + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = input.charAt(peg$currPos); + + if (peg$r3.test(s4)) { + peg$currPos++; + } else { + s4 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e22); + } + } + } + + if (input.charCodeAt(peg$currPos) === 46) { + s4 = peg$c7; + peg$currPos++; + } else { + s4 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e23); + } + } + + if (s4 !== peg$FAILED) { + s5 = []; + s6 = input.charAt(peg$currPos); + + if (peg$r3.test(s6)) { + peg$currPos++; + } else { + s6 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e22); + } + } + + if (s6 !== peg$FAILED) { + while (s6 !== peg$FAILED) { + s5.push(s6); + s6 = input.charAt(peg$currPos); + + if (peg$r3.test(s6)) { + peg$currPos++; + } else { + s6 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e22); + } + } + } + } else { + s5 = peg$FAILED; + } + + if (s5 !== peg$FAILED) { + s3 = [s3, s4, s5]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + + if (s2 === peg$FAILED) { + s2 = []; + s3 = input.charAt(peg$currPos); + + if (peg$r3.test(s3)) { + peg$currPos++; + } else { + s3 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e22); + } + } + + if (s3 !== peg$FAILED) { + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = input.charAt(peg$currPos); + + if (peg$r3.test(s3)) { + peg$currPos++; + } else { + s3 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e22); + } + } + } + } else { + s2 = peg$FAILED; + } + } + + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + + if (input.charCodeAt(peg$currPos) === 101) { + s4 = peg$c8; + peg$currPos++; + } else { + s4 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e24); + } + } + + if (s4 !== peg$FAILED) { + s5 = input.charAt(peg$currPos); + + if (peg$r2.test(s5)) { + peg$currPos++; + } else { + s5 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e21); + } + } + + if (s5 === peg$FAILED) { + s5 = null; + } + + s6 = []; + s7 = input.charAt(peg$currPos); + + if (peg$r3.test(s7)) { + peg$currPos++; + } else { + s7 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e22); + } + } + + if (s7 !== peg$FAILED) { + while (s7 !== peg$FAILED) { + s6.push(s7); + s7 = input.charAt(peg$currPos); + + if (peg$r3.test(s7)) { + peg$currPos++; + } else { + s7 = peg$FAILED; + + if (peg$silentFails === 0) { + peg$fail(peg$e22); + } + } + } + } else { + s6 = peg$FAILED; + } + + if (s6 !== peg$FAILED) { + s4 = [s4, s5, s6]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + + if (s3 === peg$FAILED) { + s3 = null; + } + + peg$savedPos = s0; + s0 = peg$f8(); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + return s0; + } + + peg$result = peg$startRuleFunction(); + + if (options.peg$library) { + return { + peg$result: peg$result, + peg$currPos: peg$currPos, + peg$FAILED: peg$FAILED, + peg$maxFailExpected: peg$maxFailExpected, + peg$maxFailPos: peg$maxFailPos + }; + } + + if (peg$result !== peg$FAILED && peg$currPos === input.length) { + return peg$result; + } else { + if (peg$result !== peg$FAILED && peg$currPos < input.length) { + peg$fail(peg$endExpectation()); + } + + throw peg$buildStructuredError(peg$maxFailExpected, peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null, peg$maxFailPos < input.length ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1) : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)); + } + } + + module.exports = { + StartRules: ['start'], + SyntaxError: peg$SyntaxError, + parse: peg$parse + }; +},995,[22]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = extractResponder; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var responderKeys = Object.keys(_reactNative.PanResponder.create({}).panHandlers); + var numResponderKeys = responderKeys.length; + + function extractResponder(o, props, ref) { + var onPress = props.onPress, + disabled = props.disabled, + onPressIn = props.onPressIn, + onPressOut = props.onPressOut, + onLongPress = props.onLongPress, + delayPressIn = props.delayPressIn, + delayPressOut = props.delayPressOut, + delayLongPress = props.delayLongPress, + pointerEvents = props.pointerEvents; + var responsible = false; + + for (var i = 0; i < numResponderKeys; i++) { + var key = responderKeys[i]; + var value = props[key]; + + if (value) { + responsible = true; + o[key] = value; + } + } + + if (pointerEvents) { + o.pointerEvents = pointerEvents; + } + + var hasTouchableProperty = disabled != null || onPress || onPressIn || onPressOut || onLongPress || delayPressIn || delayPressOut || delayLongPress; + + if (hasTouchableProperty) { + responsible = true; + o.onResponderMove = ref.touchableHandleResponderMove; + o.onResponderGrant = ref.touchableHandleResponderGrant; + o.onResponderRelease = ref.touchableHandleResponderRelease; + o.onResponderTerminate = ref.touchableHandleResponderTerminate; + o.onStartShouldSetResponder = ref.touchableHandleStartShouldSetResponder; + o.onResponderTerminationRequest = ref.touchableHandleResponderTerminationRequest; + } + + if (responsible) { + o.responsible = true; + } + } +},996,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -150930,46 +152917,42 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _ClipPathNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + 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); } + + 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; } + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - var Circle = exports.default = function (_Shape) { - function Circle() { - (0, _classCallCheck2.default)(this, Circle); - return _callSuper(this, Circle, arguments); + var ClipPath = exports.default = function (_Shape) { + function ClipPath() { + (0, _classCallCheck2.default)(this, ClipPath); + return _callSuper(this, ClipPath, arguments); } - (0, _inherits2.default)(Circle, _Shape); - return (0, _createClass2.default)(Circle, [{ + (0, _inherits2.default)(ClipPath, _Shape); + return (0, _createClass2.default)(ClipPath, [{ key: "render", value: function render() { var props = this.props; - var cx = props.cx, - cy = props.cy, - r = props.r; - return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).RNSVGCircle, Object.assign({ + return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_ClipPathNativeComponent.default, Object.assign({ ref: this.refMethod }, (0, _$$_REQUIRE(_dependencyMap[10]).extract)(this, props), { - cx: cx, - cy: cy, - r: r + children: props.children })); } }]); }(_Shape2.default); - Circle.displayName = 'Circle'; - Circle.defaultProps = { - cx: 0, - cy: 0, - r: 0 - }; -},961,[3,6,7,11,13,14,16,946,179,948,949]); + ClipPath.displayName = 'ClipPath'; +},997,[3,6,7,11,13,14,16,982,948,179,987]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -150986,10 +152969,65 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); + + var React = _react; + + var _DefsNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var Defs = exports.default = function (_Component) { + function Defs() { + (0, _classCallCheck2.default)(this, Defs); + return _callSuper(this, Defs, arguments); + } + + (0, _inherits2.default)(Defs, _Component); + return (0, _createClass2.default)(Defs, [{ + key: "render", + value: function render() { + return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_DefsNativeComponent.default, { + children: this.props.children + }); + } + }]); + }(_react.Component); + + Defs.displayName = 'Defs'; +},998,[3,6,7,11,13,14,16,949,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _EllipseNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + 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); } + + 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; } + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } @@ -151004,19 +153042,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return (0, _createClass2.default)(Ellipse, [{ key: "render", value: function render() { + var _this = this; + var props = this.props; var cx = props.cx, cy = props.cy, rx = props.rx, ry = props.ry; - return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).RNSVGEllipse, Object.assign({ - ref: this.refMethod - }, (0, _$$_REQUIRE(_dependencyMap[10]).extract)(this, props), { + var ellipseProps = Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[9]).extract)(this, props), { cx: cx, cy: cy, rx: rx, ry: ry - })); + }); + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_EllipseNativeComponent.default, Object.assign({ + ref: function ref(_ref) { + return _this.refMethod(_ref); + } + }, ellipseProps)); } }]); }(_Shape2.default); @@ -151028,7 +153071,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e rx: 0, ry: 0 }; -},962,[3,6,7,11,13,14,16,946,179,948,949]); +},999,[3,6,7,11,13,14,16,982,950,987,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -151045,119 +153088,63 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); - var _Path = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _G2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _ForeignObjectNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - var _extractPolyPoints = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + 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); } + + 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; } function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - var Polygon = exports.default = function (_Shape) { - function Polygon() { - var _this; - - (0, _classCallCheck2.default)(this, Polygon); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _callSuper(this, Polygon, [].concat(args)); - - _this.setNativeProps = function (props) { - var points = props.points; - - if (points) { - props.d = "M" + (0, _extractPolyPoints.default)(points) + "z"; - } - - _this.root && _this.root.setNativeProps(props); - }; - - return _this; + var ForeignObject = exports.default = function (_G) { + function ForeignObject() { + (0, _classCallCheck2.default)(this, ForeignObject); + return _callSuper(this, ForeignObject, arguments); } - (0, _inherits2.default)(Polygon, _Shape); - return (0, _createClass2.default)(Polygon, [{ + (0, _inherits2.default)(ForeignObject, _G); + return (0, _createClass2.default)(ForeignObject, [{ key: "render", value: function render() { + var _this = this; + var props = this.props; - var points = props.points; - return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_Path.default, Object.assign({ - ref: this.refMethod, - d: points && "M" + (0, _extractPolyPoints.default)(points) + "z" - }, props)); - } - }]); - }(_Shape2.default); - - Polygon.displayName = 'Polygon'; - Polygon.defaultProps = { - points: '' - }; -},963,[3,6,7,11,13,14,16,964,946,965,179]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var Path = exports.default = function (_Shape) { - function Path() { - (0, _classCallCheck2.default)(this, Path); - return _callSuper(this, Path, arguments); - } - - (0, _inherits2.default)(Path, _Shape); - return (0, _createClass2.default)(Path, [{ - key: "render", - value: function render() { - var props = this.props; - return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).RNSVGPath, Object.assign({ - ref: this.refMethod - }, (0, _$$_REQUIRE(_dependencyMap[10]).extract)(this, props), { - d: props.d + var x = props.x, + y = props.y, + width = props.width, + height = props.height, + children = props.children; + var foreignObjectProps = { + x: x, + y: y, + width: width, + height: height + }; + return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_ForeignObjectNativeComponent.default, Object.assign({ + ref: function ref(_ref) { + return _this.refMethod(_ref); + } + }, (0, _$$_REQUIRE(_dependencyMap[10]).withoutXY)(this, props), foreignObjectProps, { + children: children })); } }]); - }(_Shape2.default); + }(_G2.default); - Path.displayName = 'Path'; -},964,[3,6,7,11,13,14,16,946,179,948,949]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = extractPolyPoints; - - function extractPolyPoints(points) { - var polyPoints = Array.isArray(points) ? points.join(',') : points; - return polyPoints.replace(/[^e]-/, ' -').split(/(?:\s+|\s*,\s*)/g).join(' '); - } -},965,[]); + ForeignObject.displayName = 'ForeignObject'; + ForeignObject.defaultProps = { + x: '0%', + y: '0%', + width: '100%', + height: '100%' + }; +},1000,[3,6,7,11,13,14,16,1001,951,179,987]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -151174,416 +153161,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _Path = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _extractPolyPoints = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var Polyline = exports.default = function (_Shape) { - function Polyline() { - var _this; - - (0, _classCallCheck2.default)(this, Polyline); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _callSuper(this, Polyline, [].concat(args)); - - _this.setNativeProps = function (props) { - var points = props.points; - - if (points) { - props.d = "M" + (0, _extractPolyPoints.default)(points); - } - - _this.root && _this.root.setNativeProps(props); - }; - - return _this; - } - - (0, _inherits2.default)(Polyline, _Shape); - return (0, _createClass2.default)(Polyline, [{ - key: "render", - value: function render() { - var props = this.props; - var points = props.points; - return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_Path.default, Object.assign({ - ref: this.refMethod, - d: points && "M" + (0, _extractPolyPoints.default)(points) - }, props)); - } - }]); - }(_Shape2.default); - - Polyline.displayName = 'Polyline'; - Polyline.defaultProps = { - points: '' - }; -},966,[3,6,7,11,13,14,16,964,946,965,179]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var Line = exports.default = function (_Shape) { - function Line() { - (0, _classCallCheck2.default)(this, Line); - return _callSuper(this, Line, arguments); - } - - (0, _inherits2.default)(Line, _Shape); - return (0, _createClass2.default)(Line, [{ - key: "render", - value: function render() { - var props = this.props; - var x1 = props.x1, - y1 = props.y1, - x2 = props.x2, - y2 = props.y2; - return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).RNSVGLine, Object.assign({ - ref: this.refMethod - }, (0, _$$_REQUIRE(_dependencyMap[10]).extract)(this, props), { - x1: x1, - y1: y1, - x2: x2, - y2: y2 - })); - } - }]); - }(_Shape2.default); - - Line.displayName = 'Line'; - Line.defaultProps = { - x1: 0, - y1: 0, - x2: 0, - y2: 0 - }; -},967,[3,6,7,11,13,14,16,946,179,948,949]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[9]); - - var _extractResponder = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _extractViewBox = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - var _extractColor = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - - var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); - - var _G = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); - - var _excluded = ["style", "opacity", "viewBox", "children", "onLayout", "preserveAspectRatio"]; - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var RNSVGSvgViewManager = _reactNative.NativeModules.RNSVGSvgViewManager; - - var styles = _reactNative.StyleSheet.create({ - svg: { - backgroundColor: 'transparent', - borderWidth: 0 - } - }); - - var defaultStyle = styles.svg; - - var Svg = exports.default = function (_Shape) { - function Svg() { - var _this; - - (0, _classCallCheck2.default)(this, Svg); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _callSuper(this, Svg, [].concat(args)); - - _this.measureInWindow = function (callback) { - var _this2 = _this, - root = _this2.root; - root && root.measureInWindow(callback); - }; - - _this.measure = function (callback) { - var _this3 = _this, - root = _this3.root; - root && root.measure(callback); - }; - - _this.measureLayout = function (relativeToNativeNode, onSuccess, onFail) { - var _this4 = _this, - root = _this4.root; - root && root.measureLayout(relativeToNativeNode, onSuccess, onFail); - }; - - _this.setNativeProps = function (props) { - var width = props.width, - height = props.height; - - if (width) { - props.bbWidth = width; - } - - if (height) { - props.bbHeight = height; - } - - var _this5 = _this, - root = _this5.root; - root && root.setNativeProps(props); - }; - - _this.toDataURL = function (callback, options) { - if (!callback) { - return; - } - - var handle = (0, _reactNative.findNodeHandle)(_this.root); - RNSVGSvgViewManager.toDataURL(handle, options, callback); - }; - - return _this; - } - - (0, _inherits2.default)(Svg, _Shape); - return (0, _createClass2.default)(Svg, [{ - key: "render", - value: function render() { - var _this$props = this.props, - style = _this$props.style, - opacity = _this$props.opacity, - viewBox = _this$props.viewBox, - children = _this$props.children, - onLayout = _this$props.onLayout, - preserveAspectRatio = _this$props.preserveAspectRatio, - extracted = (0, _objectWithoutProperties2.default)(_this$props, _excluded); - var stylesAndProps = Object.assign({}, Array.isArray(style) ? Object.assign.apply(Object, [{}].concat((0, _toConsumableArray2.default)(style))) : style, extracted); - var color = stylesAndProps.color, - width = stylesAndProps.width, - height = stylesAndProps.height, - focusable = stylesAndProps.focusable, - font = stylesAndProps.font, - transform = stylesAndProps.transform, - fill = stylesAndProps.fill, - fillOpacity = stylesAndProps.fillOpacity, - fillRule = stylesAndProps.fillRule, - stroke = stylesAndProps.stroke, - strokeWidth = stylesAndProps.strokeWidth, - strokeOpacity = stylesAndProps.strokeOpacity, - strokeDasharray = stylesAndProps.strokeDasharray, - strokeDashoffset = stylesAndProps.strokeDashoffset, - strokeLinecap = stylesAndProps.strokeLinecap, - strokeLinejoin = stylesAndProps.strokeLinejoin, - strokeMiterlimit = stylesAndProps.strokeMiterlimit; - - if (width === undefined && height === undefined) { - width = height = '100%'; - } - - var props = extracted; - props.focusable = Boolean(focusable) && focusable !== 'false'; - var rootStyles = [defaultStyle]; - - if (style) { - rootStyles.push(style); - } - - var override = false; - var overrideStyles = {}; - var o = opacity != null ? +opacity : NaN; - - if (!isNaN(o)) { - override = true; - overrideStyles.opacity = o; - } - - if (width && height) { - override = true; - var w = parseInt(width, 10); - var h = parseInt(height, 10); - var doNotParseWidth = isNaN(w) || width[width.length - 1] === '%'; - var doNotParseHeight = isNaN(h) || height[height.length - 1] === '%'; - overrideStyles.width = doNotParseWidth ? width : w; - overrideStyles.height = doNotParseHeight ? height : h; - overrideStyles.flex = 0; - } - - if (override) { - rootStyles.push(overrideStyles); - } - - props.style = rootStyles.length > 1 ? rootStyles : defaultStyle; - - if (width != null) { - props.bbWidth = width; - } - - if (height != null) { - props.bbHeight = height; - } - - (0, _extractResponder.default)(props, props, this); - var tint = (0, _extractColor.default)(color); - - if (tint != null) { - props.color = tint; - props.tintColor = tint; - } - - if (onLayout != null) { - props.onLayout = onLayout; - } - - return (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_$$_REQUIRE(_dependencyMap[16]).RNSVGSvg, Object.assign({}, props, { - ref: this.refMethod - }, (0, _extractViewBox.default)({ - viewBox: viewBox, - preserveAspectRatio: preserveAspectRatio - }), { - children: (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_G.default, { - children: children, - style: style, - font: font, - transform: transform, - fill: fill, - fillOpacity: fillOpacity, - fillRule: fillRule, - stroke: stroke, - strokeWidth: strokeWidth, - strokeOpacity: strokeOpacity, - strokeDasharray: strokeDasharray, - strokeDashoffset: strokeDashoffset, - strokeLinecap: strokeLinecap, - strokeLinejoin: strokeLinejoin, - strokeMiterlimit: strokeMiterlimit - }) - })); - } - }]); - }(_Shape2.default); - - Svg.displayName = 'Svg'; - Svg.defaultProps = { - preserveAspectRatio: 'xMidYMid meet' - }; -},968,[3,22,4,6,7,11,13,14,16,18,956,969,952,946,970,179,948]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.alignEnum = undefined; - exports.default = extractViewBox; - exports.meetOrSliceTypes = undefined; - var meetOrSliceTypes = exports.meetOrSliceTypes = { - meet: 0, - slice: 1, - none: 2 - }; - var alignEnum = exports.alignEnum = ['xMinYMin', 'xMidYMin', 'xMaxYMin', 'xMinYMid', 'xMidYMid', 'xMaxYMid', 'xMinYMax', 'xMidYMax', 'xMaxYMax', 'none'].reduce(function (prev, name) { - prev[name] = name; - return prev; - }, {}); - var spacesRegExp = /\s+/; - - function extractViewBox(props) { - var viewBox = props.viewBox, - preserveAspectRatio = props.preserveAspectRatio; - - if (!viewBox) { - return null; - } - - var params = (Array.isArray(viewBox) ? viewBox : viewBox.trim().split(spacesRegExp)).map(Number); - - if (params.length !== 4 || params.some(isNaN)) { - console.warn('Invalid `viewBox` prop:' + viewBox); - return null; - } - - var modes = preserveAspectRatio ? preserveAspectRatio.trim().split(spacesRegExp) : []; - var align = modes[0]; - var meetOrSlice = modes[1]; - return { - minX: params[0], - minY: params[1], - vbWidth: params[2], - vbHeight: params[3], - align: alignEnum[align] || 'xMidYMid', - meetOrSlice: meetOrSliceTypes[meetOrSlice] || 0 - }; - } -},969,[]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); var _extractProps = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); @@ -151591,6 +153169,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + var _GroupNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + 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); } 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; } @@ -151612,13 +153192,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _this = _callSuper(this, G, [].concat(args)); _this.setNativeProps = function (props) { + var _this$root; + var matrix = !props.matrix && (0, _extractTransform.default)(props); if (matrix) { props.matrix = matrix; } - _this.root && _this.root.setNativeProps(props); + (_this$root = _this.root) == null ? undefined : _this$root.setNativeProps(props); }; return _this; @@ -151628,17 +153210,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return (0, _createClass2.default)(G, [{ key: "render", value: function render() { + var _this2 = this; + var props = this.props; var prop = (0, _extractProps.propsAndStyles)(props); var extractedProps = (0, _extractProps.default)(prop, this); - var font = (0, _$$_REQUIRE(_dependencyMap[10]).extractFont)(prop); + var font = (0, _$$_REQUIRE(_dependencyMap[11]).extractFont)(prop); if (hasProps(font)) { extractedProps.font = font; } - return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_$$_REQUIRE(_dependencyMap[12]).RNSVGGroup, Object.assign({ - ref: this.refMethod + return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_GroupNativeComponent.default, Object.assign({ + ref: function ref(_ref) { + return _this2.refMethod(_ref); + } }, extractedProps, { children: props.children })); @@ -151655,7 +153241,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return false; }; -},970,[3,6,7,11,13,14,16,949,958,946,971,179,948]); +},1001,[3,6,7,11,13,14,16,987,992,982,952,1002,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -151666,6 +153252,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0])); + var React = _react; + var _extractLengthList = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[2])); 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); } @@ -151683,7 +153271,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } function parseFontString(font) { - if (cachedFontObjectsFromString.hasOwnProperty(font)) { + if (Object.prototype.hasOwnProperty.call(cachedFontObjectsFromString, font)) { return cachedFontObjectsFromString[font]; } @@ -151788,7 +153376,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e rotate: (0, _extractLengthList.default)(rotate) }; } -},971,[16,3,955,957,179]); +},1002,[16,3,991,979,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -151805,353 +153393,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _extractText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _extractProps = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8])); - - var _extractTransform = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - _$$_REQUIRE(_dependencyMap[11]); - - 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); } - - 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; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var Text = exports.default = function (_Shape) { - function Text() { - var _this; - - (0, _classCallCheck2.default)(this, Text); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _callSuper(this, Text, [].concat(args)); - - _this.setNativeProps = function (props) { - var matrix = props && !props.matrix && (0, _extractTransform.default)(props); - - if (matrix) { - props.matrix = matrix; - } - - var prop = (0, _extractProps.propsAndStyles)(props); - Object.assign(prop, (0, _$$_REQUIRE(_dependencyMap[12]).pickNotNil)((0, _extractText.default)(prop, true))); - _this.root && _this.root.setNativeProps(prop); - }; - - return _this; - } - - (0, _inherits2.default)(Text, _Shape); - return (0, _createClass2.default)(Text, [{ - key: "render", - value: function render() { - var prop = (0, _extractProps.propsAndStyles)(this.props); - var props = (0, _extractProps.default)(Object.assign({}, prop, { - x: null, - y: null - }), this); - Object.assign(props, (0, _extractText.default)(prop, true)); - props.ref = this.refMethod; - return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_$$_REQUIRE(_dependencyMap[14]).RNSVGText, Object.assign({}, props)); - } - }]); - }(_Shape2.default); - - Text.displayName = 'Text'; -},972,[3,6,7,11,13,14,16,971,949,958,946,973,957,179,948]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _extractProps = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); - - var _extractTransform = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _extractText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9])); - - var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - 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); } - - 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; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var TSpan = exports.default = function (_Shape) { - function TSpan() { - var _this; - - (0, _classCallCheck2.default)(this, TSpan); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _callSuper(this, TSpan, [].concat(args)); - - _this.setNativeProps = function (props) { - var matrix = !props.matrix && (0, _extractTransform.default)(props); - - if (matrix) { - props.matrix = matrix; - } - - var prop = (0, _extractProps.propsAndStyles)(props); - Object.assign(prop, (0, _$$_REQUIRE(_dependencyMap[11]).pickNotNil)((0, _extractText.default)(prop, false))); - _this.root && _this.root.setNativeProps(prop); - }; - - return _this; - } - - (0, _inherits2.default)(TSpan, _Shape); - return (0, _createClass2.default)(TSpan, [{ - key: "render", - value: function render() { - var prop = (0, _extractProps.propsAndStyles)(this.props); - var props = (0, _extractProps.default)(Object.assign({}, prop, { - x: null, - y: null - }), this); - Object.assign(props, (0, _extractText.default)(prop, false)); - props.ref = this.refMethod; - return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[13]).RNSVGTSpan, Object.assign({}, props)); - } - }]); - }(_Shape2.default); - - TSpan.displayName = 'TSpan'; - (0, _extractText.setTSpan)(TSpan); -},973,[3,6,7,11,13,14,16,949,958,971,946,957,179,948]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _extractTransform = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _extractText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _TSpan = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - var _excluded = ["children", "xlinkHref", "href", "startOffset", "method", "spacing", "side", "alignmentBaseline", "midLine"]; - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var TextPath = exports.default = function (_Shape) { - function TextPath() { - var _this; - - (0, _classCallCheck2.default)(this, TextPath); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _callSuper(this, TextPath, [].concat(args)); - - _this.setNativeProps = function (props) { - var matrix = !props.matrix && (0, _extractTransform.default)(props); - - if (matrix) { - props.matrix = matrix; - } - - Object.assign(props, (0, _$$_REQUIRE(_dependencyMap[12]).pickNotNil)((0, _extractText.default)(props, true))); - _this.root && _this.root.setNativeProps(props); - }; - - return _this; - } - - (0, _inherits2.default)(TextPath, _Shape); - return (0, _createClass2.default)(TextPath, [{ - key: "render", - value: function render() { - var _this$props = this.props, - children = _this$props.children, - xlinkHref = _this$props.xlinkHref, - _this$props$href = _this$props.href, - href = _this$props$href === undefined ? xlinkHref : _this$props$href, - _this$props$startOffs = _this$props.startOffset, - startOffset = _this$props$startOffs === undefined ? 0 : _this$props$startOffs, - method = _this$props.method, - spacing = _this$props.spacing, - side = _this$props.side, - alignmentBaseline = _this$props.alignmentBaseline, - midLine = _this$props.midLine, - prop = (0, _objectWithoutProperties2.default)(_this$props, _excluded); - var matched = href && href.match(_$$_REQUIRE(_dependencyMap[12]).idPattern); - var match = matched && matched[1]; - - if (match) { - var props = (0, _$$_REQUIRE(_dependencyMap[13]).withoutXY)(this, prop); - Object.assign(props, (0, _extractText.default)({ - children: children - }, true), { - href: match, - startOffset: startOffset, - method: method, - spacing: spacing, - side: side, - alignmentBaseline: alignmentBaseline, - midLine: midLine - }); - props.ref = this.refMethod; - return (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_$$_REQUIRE(_dependencyMap[15]).RNSVGTextPath, Object.assign({}, props)); - } - - console.warn('Invalid `href` prop for `TextPath` element, expected a href like "#id", but got: "' + href + '"'); - return (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_TSpan.default, { - ref: this.refMethod, - children: children - }); - } - }]); - }(_Shape2.default); - - TextPath.displayName = 'TextPath'; -},974,[3,4,6,7,11,13,14,16,958,971,946,973,957,949,179,948]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var Use = exports.default = function (_Shape) { - function Use() { - (0, _classCallCheck2.default)(this, Use); - return _callSuper(this, Use, arguments); - } - - (0, _inherits2.default)(Use, _Shape); - return (0, _createClass2.default)(Use, [{ - key: "render", - value: function render() { - var props = this.props; - var children = props.children, - x = props.x, - y = props.y, - width = props.width, - height = props.height, - xlinkHref = props.xlinkHref, - _props$href = props.href, - href = _props$href === undefined ? xlinkHref : _props$href; - var matched = href && href.match(_$$_REQUIRE(_dependencyMap[8]).idPattern); - var match = matched && matched[1]; - - if (!match) { - console.warn('Invalid `href` prop for `Use` element, expected a href like "#id", but got: "' + href + '"'); - } - - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[10]).RNSVGUse, Object.assign({ - ref: this.refMethod - }, (0, _$$_REQUIRE(_dependencyMap[11]).withoutXY)(this, props), { - href: match, - x: x, - y: y, - width: width, - height: height, - children: children - })); - } - }]); - }(_Shape2.default); - - Use.displayName = 'Use'; - Use.defaultProps = { - x: 0, - y: 0, - width: 0, - height: 0 - }; -},975,[3,6,7,11,13,14,16,946,957,179,948,949]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); var _reactNative = _$$_REQUIRE(_dependencyMap[7]); var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _ImageNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + 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); } + + 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; } + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } @@ -152168,6 +153421,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return (0, _createClass2.default)(SvgImage, [{ key: "render", value: function render() { + var _this = this; + var props = this.props; var preserveAspectRatio = props.preserveAspectRatio, x = props.x, @@ -152176,23 +153431,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height = props.height, xlinkHref = props.xlinkHref, _props$href = props.href, - href = _props$href === undefined ? xlinkHref : _props$href; + href = _props$href === undefined ? xlinkHref : _props$href, + onLoad = props.onLoad; var modes = preserveAspectRatio ? preserveAspectRatio.trim().split(spacesRegExp) : []; var align = modes[0]; var meetOrSlice = modes[1]; - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[10]).RNSVGImage, Object.assign({ - ref: this.refMethod - }, (0, _$$_REQUIRE(_dependencyMap[11]).withoutXY)(this, props), { + var imageProps = { x: x, y: y, width: width, height: height, - meetOrSlice: _$$_REQUIRE(_dependencyMap[12]).meetOrSliceTypes[meetOrSlice] || 0, - align: _$$_REQUIRE(_dependencyMap[12]).alignEnum[align] || 'xMidYMid', + onLoad: onLoad, + meetOrSlice: _$$_REQUIRE(_dependencyMap[10]).meetOrSliceTypes[meetOrSlice] || 0, + align: _$$_REQUIRE(_dependencyMap[10]).alignEnum[align] || 'xMidYMid', src: !href ? null : _reactNative.Image.resolveAssetSource(typeof href === 'string' ? { uri: href } : href) - })); + }; + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_ImageNativeComponent.default, Object.assign({ + ref: function ref(_ref) { + return _this.refMethod(_ref); + } + }, (0, _$$_REQUIRE(_dependencyMap[12]).withoutXY)(this, props), imageProps)); } }]); }(_Shape2.default); @@ -152205,58 +153465,53 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: 0, preserveAspectRatio: 'xMidYMid meet' }; -},976,[3,6,7,11,13,14,16,18,946,179,948,949,969]); +},1003,[3,6,7,11,13,14,16,18,982,953,1004,179,987]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = undefined; + exports.alignEnum = undefined; + exports.default = extractViewBox; + exports.meetOrSliceTypes = undefined; + var meetOrSliceTypes = exports.meetOrSliceTypes = { + meet: 0, + slice: 1, + none: 2 + }; + var alignEnum = exports.alignEnum = ['xMinYMin', 'xMidYMin', 'xMaxYMin', 'xMinYMid', 'xMidYMid', 'xMaxYMid', 'xMinYMax', 'xMidYMax', 'xMaxYMax', 'none'].reduce(function (prev, name) { + prev[name] = name; + return prev; + }, {}); + var spacesRegExp = /\s+/; - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + function extractViewBox(props) { + var viewBox = props.viewBox, + preserveAspectRatio = props.preserveAspectRatio; - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _extractViewBox = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var Symbol = exports.default = function (_Shape) { - function Symbol() { - (0, _classCallCheck2.default)(this, Symbol); - return _callSuper(this, Symbol, arguments); + if (!viewBox) { + return null; } - (0, _inherits2.default)(Symbol, _Shape); - return (0, _createClass2.default)(Symbol, [{ - key: "render", - value: function render() { - var props = this.props; - var id = props.id, - children = props.children; - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[10]).RNSVGSymbol, Object.assign({ - ref: this.refMethod, - name: id - }, (0, _extractViewBox.default)(props), { - children: children - })); - } - }]); - }(_Shape2.default); + var params = (Array.isArray(viewBox) ? viewBox : viewBox.trim().replace(/,/g, ' ').split(spacesRegExp)).map(Number); - Symbol.displayName = 'Symbol'; -},977,[3,6,7,11,13,14,16,969,946,179,948]); + if (params.length !== 4 || params.some(isNaN)) { + console.warn('Invalid `viewBox` prop:' + viewBox); + return null; + } + + var modes = preserveAspectRatio ? preserveAspectRatio.trim().split(spacesRegExp) : []; + var align = modes[0]; + var meetOrSlice = modes[1]; + return { + minX: params[0], + minY: params[1], + vbWidth: params[2], + vbHeight: params[3], + align: alignEnum[align] || 'xMidYMid', + meetOrSlice: meetOrSliceTypes[meetOrSlice] || 0 + }; + } +},1004,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -152273,7 +153528,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); + + var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _LineNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); 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); } @@ -152283,25 +153542,46 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - var Defs = exports.default = function (_Component) { - function Defs() { - (0, _classCallCheck2.default)(this, Defs); - return _callSuper(this, Defs, arguments); + var Line = exports.default = function (_Shape) { + function Line() { + (0, _classCallCheck2.default)(this, Line); + return _callSuper(this, Line, arguments); } - (0, _inherits2.default)(Defs, _Component); - return (0, _createClass2.default)(Defs, [{ + (0, _inherits2.default)(Line, _Shape); + return (0, _createClass2.default)(Line, [{ key: "render", value: function render() { - return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_$$_REQUIRE(_dependencyMap[8]).RNSVGDefs, { - children: this.props.children + var _this = this; + + var props = this.props; + var x1 = props.x1, + y1 = props.y1, + x2 = props.x2, + y2 = props.y2; + var lineProps = Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[9]).extract)(this, props), { + x1: x1, + y1: y1, + x2: x2, + y2: y2 }); + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_LineNativeComponent.default, Object.assign({ + ref: function ref(_ref) { + return _this.refMethod(_ref); + } + }, lineProps)); } }]); - }(_react.Component); + }(_Shape2.default); - Defs.displayName = 'Defs'; -},978,[3,6,7,11,13,14,16,179,948]); + Line.displayName = 'Line'; + Line.defaultProps = { + x1: 0, + y1: 0, + x2: 0, + y2: 0 + }; +},1005,[3,6,7,11,13,14,16,982,955,987,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -152318,12 +153598,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); var _extractGradient = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _LinearGradientNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + 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); } + + 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; } + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } @@ -152338,18 +153624,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return (0, _createClass2.default)(LinearGradient, [{ key: "render", value: function render() { + var _this = this; + var props = this.props; var x1 = props.x1, y1 = props.y1, x2 = props.x2, y2 = props.y2; - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[10]).RNSVGLinearGradient, Object.assign({ - ref: this.refMethod, + var linearGradientProps = { x1: x1, y1: y1, x2: x2, y2: y2 - }, (0, _extractGradient.default)(props, this))); + }; + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_LinearGradientNativeComponent.default, Object.assign({ + ref: function ref(_ref) { + return _this.refMethod(_ref); + } + }, linearGradientProps, (0, _extractGradient.default)(props, this))); } }]); }(_Shape2.default); @@ -152361,7 +153653,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e x2: '100%', y2: '0%' }; -},979,[3,6,7,11,13,14,16,980,946,179,948]); +},1006,[3,6,7,11,13,14,16,1007,982,954,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -152370,13 +153662,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0])); - var _extractColor = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[2])); + var React = _react; - var _extractOpacity = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[3])); + var _reactNative = _$$_REQUIRE(_dependencyMap[1]); - var _extractTransform = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[4])); + var _extractOpacity = _$$_REQUIRE(_dependencyMap[2])(_$$_REQUIRE(_dependencyMap[3])); - var _units = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[5])); + var _extractTransform = _$$_REQUIRE(_dependencyMap[2])(_$$_REQUIRE(_dependencyMap[4])); + + var _units = _$$_REQUIRE(_dependencyMap[2])(_$$_REQUIRE(_dependencyMap[5])); 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); } @@ -152420,7 +153714,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var stops = []; var childArray = children ? _react.Children.map(children, function (child) { - return _react.default.cloneElement(child, { + return React.cloneElement(child, { parent: parent }); }) : []; @@ -152436,7 +153730,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _childArray$i$props$s2 = _childArray$i$props.stopOpacity, stopOpacity = _childArray$i$props$s2 === undefined ? style && style.stopOpacity : _childArray$i$props$s2; var offsetNumber = percentToFloat(offset || 0); - var color = stopColor && (0, _extractColor.default)(stopColor); + var color = stopColor && (0, _reactNative.processColor)(stopColor); if (typeof color !== 'number' || isNaN(offsetNumber)) { console.warn("\"" + stopColor + "\" is not a valid color or \"" + offset + "\" is not a valid offset"); @@ -152464,7 +153758,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e gradientTransform: (0, _extractTransform.default)(gradientTransform || transform || props) }; } -},980,[16,3,952,953,958,981]); +},1007,[16,18,3,989,992,1008]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -152476,7 +153770,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = units; -},981,[]); +},1008,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -152493,12 +153787,513 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); + + var _extractViewBox = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _MarkerNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var Marker = exports.default = function (_Shape) { + function Marker() { + (0, _classCallCheck2.default)(this, Marker); + return _callSuper(this, Marker, arguments); + } + + (0, _inherits2.default)(Marker, _Shape); + return (0, _createClass2.default)(Marker, [{ + key: "render", + value: function render() { + var _this = this; + + var props = this.props; + var id = props.id, + viewBox = props.viewBox, + preserveAspectRatio = props.preserveAspectRatio, + refX = props.refX, + refY = props.refY, + markerUnits = props.markerUnits, + orient = props.orient, + markerWidth = props.markerWidth, + markerHeight = props.markerHeight, + children = props.children; + var markerProps = { + name: id, + refX: refX, + refY: refY, + markerUnits: markerUnits, + orient: String(orient), + markerWidth: markerWidth, + markerHeight: markerHeight + }; + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_MarkerNativeComponent.default, Object.assign({ + ref: function ref(_ref) { + return _this.refMethod(_ref); + } + }, markerProps, (0, _extractViewBox.default)({ + viewBox: viewBox, + preserveAspectRatio: preserveAspectRatio + }), { + children: children + })); + } + }]); + }(_Shape2.default); + + Marker.displayName = 'Marker'; + Marker.defaultProps = { + refX: 0, + refY: 0, + orient: '0', + markerWidth: 3, + markerHeight: 3, + markerUnits: 'strokeWidth' + }; +},1009,[3,6,7,11,13,14,16,1004,982,956,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); + + var _units = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _MaskNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var Mask = exports.default = function (_Shape) { + function Mask() { + (0, _classCallCheck2.default)(this, Mask); + return _callSuper(this, Mask, arguments); + } + + (0, _inherits2.default)(Mask, _Shape); + return (0, _createClass2.default)(Mask, [{ + key: "render", + value: function render() { + var _this = this; + + var props = this.props; + var x = props.x, + y = props.y, + width = props.width, + height = props.height, + maskUnits = props.maskUnits, + maskContentUnits = props.maskContentUnits, + children = props.children, + style = props.style; + var maskProps = { + x: x, + y: y, + width: width, + height: height, + maskUnits: maskUnits !== undefined ? _units.default[maskUnits] : 0, + maskContentUnits: maskContentUnits !== undefined ? _units.default[maskContentUnits] : 1, + maskType: _$$_REQUIRE(_dependencyMap[10]).maskType[(props == null ? undefined : props.maskType) || (style == null ? undefined : style.maskType) || 'luminance'] + }; + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_MaskNativeComponent.default, Object.assign({ + ref: function ref(_ref) { + return _this.refMethod(_ref); + } + }, (0, _$$_REQUIRE(_dependencyMap[12]).withoutXY)(this, props), maskProps, { + children: children + })); + } + }]); + }(_Shape2.default); + + Mask.displayName = 'Mask'; + Mask.defaultProps = { + x: '0%', + y: '0%', + width: '100%', + height: '100%' + }; +},1010,[3,6,7,11,13,14,16,1008,982,957,1011,179,987]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.maskType = undefined; + var maskType = exports.maskType = { + luminance: 0, + alpha: 1 + }; +},1011,[]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); + + var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _PathNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var Path = exports.default = function (_Shape) { + function Path() { + (0, _classCallCheck2.default)(this, Path); + return _callSuper(this, Path, arguments); + } + + (0, _inherits2.default)(Path, _Shape); + return (0, _createClass2.default)(Path, [{ + key: "render", + value: function render() { + var _this = this; + + var props = this.props; + var d = props.d; + var pathProps = Object.assign({}, (0, _$$_REQUIRE(_dependencyMap[9]).extract)(this, props), { + d: d + }); + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_PathNativeComponent.default, Object.assign({ + ref: function ref(_ref) { + return _this.refMethod(_ref); + } + }, pathProps)); + } + }]); + }(_Shape2.default); + + Path.displayName = 'Path'; +},1012,[3,6,7,11,13,14,16,982,958,987,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); + + var _extractTransform = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _extractViewBox = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _units = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _PatternNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var Pattern = exports.default = function (_Shape) { + function Pattern() { + (0, _classCallCheck2.default)(this, Pattern); + return _callSuper(this, Pattern, arguments); + } + + (0, _inherits2.default)(Pattern, _Shape); + return (0, _createClass2.default)(Pattern, [{ + key: "render", + value: function render() { + var _this = this; + + var props = this.props; + var patternTransform = props.patternTransform, + transform = props.transform, + id = props.id, + x = props.x, + y = props.y, + width = props.width, + height = props.height, + patternUnits = props.patternUnits, + patternContentUnits = props.patternContentUnits, + children = props.children, + viewBox = props.viewBox, + preserveAspectRatio = props.preserveAspectRatio; + var matrix = (0, _extractTransform.default)(patternTransform || transform || props); + var patternProps = { + x: x, + y: y, + width: width, + height: height, + name: id, + matrix: matrix, + patternTransform: matrix, + patternUnits: patternUnits && _units.default[patternUnits] || 0, + patternContentUnits: patternContentUnits ? _units.default[patternContentUnits] : 1 + }; + return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_PatternNativeComponent.default, Object.assign({ + ref: function ref(_ref) { + return _this.refMethod(_ref); + } + }, patternProps, (0, _extractViewBox.default)({ + viewBox: viewBox, + preserveAspectRatio: preserveAspectRatio + }), { + children: children + })); + } + }]); + }(_Shape2.default); + + Pattern.displayName = 'Pattern'; + Pattern.defaultProps = { + x: '0%', + y: '0%', + width: '100%', + height: '100%' + }; +},1013,[3,6,7,11,13,14,16,992,1004,1008,982,959,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); + + var _Path = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _extractPolyPoints = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var Polygon = exports.default = function (_Shape) { + function Polygon() { + var _this; + + (0, _classCallCheck2.default)(this, Polygon); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _callSuper(this, Polygon, [].concat(args)); + + _this.setNativeProps = function (props) { + var points = props.points; + + if (points) { + props.d = "M" + (0, _extractPolyPoints.default)(points) + "z"; + } + + _this.root && _this.root.setNativeProps(props); + }; + + return _this; + } + + (0, _inherits2.default)(Polygon, _Shape); + return (0, _createClass2.default)(Polygon, [{ + key: "render", + value: function render() { + var props = this.props; + var points = props.points; + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_Path.default, Object.assign({ + ref: this.refMethod, + d: points && "M" + (0, _extractPolyPoints.default)(points) + "z" + }, props)); + } + }]); + }(_Shape2.default); + + Polygon.displayName = 'Polygon'; + Polygon.defaultProps = { + points: '' + }; +},1014,[3,6,7,11,13,14,16,1012,982,1015,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = extractPolyPoints; + + function extractPolyPoints(points) { + var polyPoints = Array.isArray(points) ? points.join(',') : points; + return polyPoints.replace(/[^eE]-/, ' -').split(/(?:\s+|\s*,\s*)/g).join(' '); + } +},1015,[]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); + + var _Path = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _extractPolyPoints = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var Polyline = exports.default = function (_Shape) { + function Polyline() { + var _this; + + (0, _classCallCheck2.default)(this, Polyline); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _callSuper(this, Polyline, [].concat(args)); + + _this.setNativeProps = function (props) { + var points = props.points; + + if (points) { + props.d = "M" + (0, _extractPolyPoints.default)(points); + } + + _this.root && _this.root.setNativeProps(props); + }; + + return _this; + } + + (0, _inherits2.default)(Polyline, _Shape); + return (0, _createClass2.default)(Polyline, [{ + key: "render", + value: function render() { + var props = this.props; + var points = props.points; + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_Path.default, Object.assign({ + ref: this.refMethod, + d: points && "M" + (0, _extractPolyPoints.default)(points) + }, props)); + } + }]); + }(_Shape2.default); + + Polyline.displayName = 'Polyline'; + Polyline.defaultProps = { + points: '' + }; +},1016,[3,6,7,11,13,14,16,1012,982,1015,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); var _extractGradient = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _RadialGradientNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + 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); } + + 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; } + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } @@ -152513,6 +154308,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return (0, _createClass2.default)(RadialGradient, [{ key: "render", value: function render() { + var _this = this; + var props = this.props; var rx = props.rx, ry = props.ry, @@ -152523,15 +154320,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fx = _props$fx === undefined ? cx : _props$fx, _props$fy = props.fy, fy = _props$fy === undefined ? cy : _props$fy; - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[10]).RNSVGRadialGradient, Object.assign({ - ref: this.refMethod, + var radialGradientProps = { fx: fx, fy: fy, rx: rx || r, ry: ry || r, cx: cx, cy: cy - }, (0, _extractGradient.default)(props, this))); + }; + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_RadialGradientNativeComponent.default, Object.assign({ + ref: function ref(_ref) { + return _this.refMethod(_ref); + } + }, radialGradientProps, (0, _extractGradient.default)(props, this))); } }]); }(_Shape2.default); @@ -152542,7 +154343,81 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cy: '50%', r: '50%' }; -},982,[3,6,7,11,13,14,16,980,946,179,948]); +},1017,[3,6,7,11,13,14,16,1007,982,960,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); + + var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _RectNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var Rect = exports.default = function (_Shape) { + function Rect() { + (0, _classCallCheck2.default)(this, Rect); + return _callSuper(this, Rect, arguments); + } + + (0, _inherits2.default)(Rect, _Shape); + return (0, _createClass2.default)(Rect, [{ + key: "render", + value: function render() { + var _this = this; + + var props = this.props; + var x = props.x, + y = props.y, + width = props.width, + height = props.height, + rx = props.rx, + ry = props.ry; + var rectProps = { + x: x, + y: y, + width: width, + height: height, + rx: rx, + ry: ry + }; + return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_RectNativeComponent.default, Object.assign({ + ref: function ref(_ref) { + return _this.refMethod(_ref); + } + }, (0, _$$_REQUIRE(_dependencyMap[10]).withoutXY)(this, props), rectProps)); + } + }]); + }(_Shape2.default); + + Rect.displayName = 'Rect'; + Rect.defaultProps = { + x: 0, + y: 0, + width: 0, + height: 0 + }; +},1018,[3,6,7,11,13,14,16,982,961,179,987]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -152598,136 +154473,257 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_react.Component); Stop.displayName = 'Stop'; -},983,[3,6,7,11,13,14,16]); +},1019,[3,6,7,11,13,14,16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[9]); + + var _extractResponder = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _extractViewBox = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + + var _G = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); + + var _AndroidSvgViewNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); + + var _IOSSvgViewNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); + + var _extractOpacity = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); + + var _excluded = ["style", "opacity", "viewBox", "children", "onLayout", "preserveAspectRatio"]; + + 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); } + + 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; } function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - var ClipPath = exports.default = function (_Shape) { - function ClipPath() { - (0, _classCallCheck2.default)(this, ClipPath); - return _callSuper(this, ClipPath, arguments); + var styles = _reactNative.StyleSheet.create({ + svg: { + backgroundColor: 'transparent', + borderWidth: 0 } + }); - (0, _inherits2.default)(ClipPath, _Shape); - return (0, _createClass2.default)(ClipPath, [{ - key: "render", - value: function render() { - var props = this.props; - return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).RNSVGClipPath, Object.assign({ - ref: this.refMethod - }, (0, _$$_REQUIRE(_dependencyMap[10]).extract)(this, props), { - children: props.children - })); + var defaultStyle = styles.svg; + + var Svg = exports.default = function (_Shape) { + function Svg() { + var _this; + + (0, _classCallCheck2.default)(this, Svg); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; } - }]); - }(_Shape2.default); - ClipPath.displayName = 'ClipPath'; -},984,[3,6,7,11,13,14,16,946,179,948,949]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; + _this = _callSuper(this, Svg, [].concat(args)); - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + _this.measureInWindow = function (callback) { + var _this2 = _this, + root = _this2.root; + root && root.measureInWindow(callback); + }; - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + _this.measure = function (callback) { + var _this3 = _this, + root = _this3.root; + root && root.measure(callback); + }; - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + _this.measureLayout = function (relativeToNativeNode, onSuccess, onFail) { + var _this4 = _this, + root = _this4.root; + root && root.measureLayout(relativeToNativeNode, onSuccess, onFail); + }; - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + _this.setNativeProps = function (props) { + var _this5 = _this, + root = _this5.root; + root && root.setNativeProps(props); + }; - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + _this.toDataURL = function (callback, options) { + if (!callback) { + return; + } - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var handle = (0, _reactNative.findNodeHandle)(_this.root); - var _extractTransform = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var RNSVGSvgViewModule = _$$_REQUIRE(_dependencyMap[17]).default; - var _extractViewBox = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + RNSVGSvgViewModule.toDataURL(handle, options, callback); + }; - var _units = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var Pattern = exports.default = function (_Shape) { - function Pattern() { - (0, _classCallCheck2.default)(this, Pattern); - return _callSuper(this, Pattern, arguments); + return _this; } - (0, _inherits2.default)(Pattern, _Shape); - return (0, _createClass2.default)(Pattern, [{ + (0, _inherits2.default)(Svg, _Shape); + return (0, _createClass2.default)(Svg, [{ key: "render", value: function render() { - var props = this.props; - var patternTransform = props.patternTransform, - transform = props.transform, - id = props.id, - x = props.x, - y = props.y, - width = props.width, - height = props.height, - patternUnits = props.patternUnits, - patternContentUnits = props.patternContentUnits, - children = props.children, - viewBox = props.viewBox, - preserveAspectRatio = props.preserveAspectRatio; - var matrix = (0, _extractTransform.default)(patternTransform || transform || props); - return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_$$_REQUIRE(_dependencyMap[12]).RNSVGPattern, Object.assign({ - ref: this.refMethod, - name: id, - x: x, - y: y, - width: width, - height: height, - matrix: matrix, - patternTransform: matrix, - patternUnits: patternUnits && _units.default[patternUnits] || 0, - patternContentUnits: patternContentUnits ? _units.default[patternContentUnits] : 1 + var _this6 = this; + + var _this$props = this.props, + style = _this$props.style, + opacity = _this$props.opacity, + viewBox = _this$props.viewBox, + children = _this$props.children, + onLayout = _this$props.onLayout, + preserveAspectRatio = _this$props.preserveAspectRatio, + extracted = (0, _objectWithoutProperties2.default)(_this$props, _excluded); + var stylesAndProps = Object.assign({}, Array.isArray(style) ? Object.assign.apply(Object, [{}].concat((0, _toConsumableArray2.default)(style))) : style, extracted); + var color = stylesAndProps.color, + width = stylesAndProps.width, + height = stylesAndProps.height, + focusable = stylesAndProps.focusable, + transform = stylesAndProps.transform, + font = stylesAndProps.font, + fill = stylesAndProps.fill, + fillOpacity = stylesAndProps.fillOpacity, + fillRule = stylesAndProps.fillRule, + stroke = stylesAndProps.stroke, + strokeWidth = stylesAndProps.strokeWidth, + strokeOpacity = stylesAndProps.strokeOpacity, + strokeDasharray = stylesAndProps.strokeDasharray, + strokeDashoffset = stylesAndProps.strokeDashoffset, + strokeLinecap = stylesAndProps.strokeLinecap, + strokeLinejoin = stylesAndProps.strokeLinejoin, + strokeMiterlimit = stylesAndProps.strokeMiterlimit; + + if (width === undefined && height === undefined) { + width = height = '100%'; + } + + var props = extracted; + props.focusable = Boolean(focusable) && focusable !== 'false'; + var rootStyles = [defaultStyle]; + + if (style) { + rootStyles.push(style); + } + + var override = false; + var overrideStyles = {}; + var o = opacity != null ? (0, _extractOpacity.default)(opacity) : NaN; + + if (!isNaN(o)) { + override = true; + overrideStyles.opacity = o; + } + + if (width && height) { + override = true; + var w = parseInt(width, 10); + var h = parseInt(height, 10); + var doNotParseWidth = isNaN(w) || width[width.length - 1] === '%'; + var doNotParseHeight = isNaN(h) || height[height.length - 1] === '%'; + overrideStyles.width = doNotParseWidth ? width : w; + overrideStyles.height = doNotParseHeight ? height : h; + overrideStyles.flex = 0; + } + + if (override) { + rootStyles.push(overrideStyles); + } + + props.style = rootStyles.length > 1 ? rootStyles : defaultStyle; + + if (width != null) { + props.bbWidth = width; + } + + if (height != null) { + props.bbHeight = height; + } + + (0, _extractResponder.default)(props, props, this); + props.tintColor = color; + + if (onLayout != null) { + props.onLayout = onLayout; + } + + var gStyle = Object.assign({}, _reactNative.StyleSheet.flatten(style)); + + if (transform) { + if (gStyle.transform) { + props.transform = gStyle.transform; + gStyle.transform = undefined; + } + + props.transform = (0, _$$_REQUIRE(_dependencyMap[18]).extractTransformSvgView)(props); + } + + var RNSVGSvg = _reactNative.Platform.OS === 'android' ? _AndroidSvgViewNativeComponent.default : _IOSSvgViewNativeComponent.default; + return (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(RNSVGSvg, Object.assign({}, props, { + ref: function ref(_ref) { + return _this6.refMethod(_ref); + } }, (0, _extractViewBox.default)({ viewBox: viewBox, preserveAspectRatio: preserveAspectRatio }), { - children: children + children: (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_G.default, { + children: children, + style: gStyle, + font: font, + fill: fill, + fillOpacity: fillOpacity, + fillRule: fillRule, + stroke: stroke, + strokeWidth: strokeWidth, + strokeOpacity: strokeOpacity, + strokeDasharray: strokeDasharray, + strokeDashoffset: strokeDashoffset, + strokeLinecap: strokeLinecap, + strokeLinejoin: strokeLinejoin, + strokeMiterlimit: strokeMiterlimit + }) })); } }]); }(_Shape2.default); - Pattern.displayName = 'Pattern'; - Pattern.defaultProps = { - x: '0%', - y: '0%', - width: '100%', - height: '100%' + Svg.displayName = 'Svg'; + Svg.defaultProps = { + preserveAspectRatio: 'xMidYMid meet' }; -},985,[3,6,7,11,13,14,16,958,969,981,946,179,948]); +},1020,[3,22,4,6,7,11,13,14,16,18,996,1004,982,1001,962,963,989,1021,992,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var _default = exports.default = _reactNative.TurboModuleRegistry.getEnforcing('RNSVGSvgViewModule'); +},1021,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -152744,147 +154740,225 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _extractTransform = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _units = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var Mask = exports.default = function (_Shape) { - function Mask() { - (0, _classCallCheck2.default)(this, Mask); - return _callSuper(this, Mask, arguments); - } - - (0, _inherits2.default)(Mask, _Shape); - return (0, _createClass2.default)(Mask, [{ - key: "render", - value: function render() { - var props = this.props; - var maskTransform = props.maskTransform, - transform = props.transform, - x = props.x, - y = props.y, - width = props.width, - height = props.height, - maskUnits = props.maskUnits, - maskContentUnits = props.maskContentUnits, - children = props.children; - return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_$$_REQUIRE(_dependencyMap[11]).RNSVGMask, Object.assign({ - ref: this.refMethod - }, (0, _$$_REQUIRE(_dependencyMap[12]).withoutXY)(this, props), { - x: x, - y: y, - width: width, - height: height, - maskTransform: (0, _extractTransform.default)(maskTransform || transform || props), - maskUnits: maskUnits !== undefined ? _units.default[maskUnits] : 0, - maskContentUnits: maskContentUnits !== undefined ? _units.default[maskContentUnits] : 1, - children: children - })); - } - }]); - }(_Shape2.default); - - Mask.displayName = 'Mask'; - Mask.defaultProps = { - x: '0%', - y: '0%', - width: '100%', - height: '100%' - }; -},986,[3,6,7,11,13,14,16,958,981,946,179,948,949]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); var _extractViewBox = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _SymbolNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + 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); } + + 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; } + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - var Marker = exports.default = function (_Shape) { - function Marker() { - (0, _classCallCheck2.default)(this, Marker); - return _callSuper(this, Marker, arguments); + var Symbol = exports.default = function (_Shape) { + function Symbol() { + (0, _classCallCheck2.default)(this, Symbol); + return _callSuper(this, Symbol, arguments); } - (0, _inherits2.default)(Marker, _Shape); - return (0, _createClass2.default)(Marker, [{ + (0, _inherits2.default)(Symbol, _Shape); + return (0, _createClass2.default)(Symbol, [{ key: "render", value: function render() { + var _this = this; + var props = this.props; var id = props.id, - viewBox = props.viewBox, - preserveAspectRatio = props.preserveAspectRatio, - refX = props.refX, - refY = props.refY, - markerUnits = props.markerUnits, - orient = props.orient, - markerWidth = props.markerWidth, - markerHeight = props.markerHeight, children = props.children; - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[10]).RNSVGMarker, Object.assign({ - ref: this.refMethod, - name: id, - refX: refX, - refY: refY, - orient: String(orient), - markerUnits: markerUnits, - markerWidth: markerWidth, - markerHeight: markerHeight - }, (0, _extractViewBox.default)({ - viewBox: viewBox, - preserveAspectRatio: preserveAspectRatio - }), { + var symbolProps = { + name: id + }; + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_SymbolNativeComponent.default, Object.assign({ + ref: function ref(_ref) { + return _this.refMethod(_ref); + } + }, symbolProps, (0, _extractViewBox.default)(props), { children: children })); } }]); }(_Shape2.default); - Marker.displayName = 'Marker'; - Marker.defaultProps = { - refX: 0, - refY: 0, - orient: '0', - markerWidth: 3, - markerHeight: 3, - markerUnits: 'strokeWidth' - }; -},987,[3,6,7,11,13,14,16,969,946,179,948]); + Symbol.displayName = 'Symbol'; +},1022,[3,6,7,11,13,14,16,1004,982,964,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); - exports.SvgCss = SvgCss; - exports.SvgCssUri = SvgCssUri; - exports.inlineStyles = exports.SvgWithCssUri = exports.SvgWithCss = undefined; + exports.default = undefined; - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); + + var _extractProps = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); + + var _extractTransform = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _extractText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9])); + + var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _TSpanNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var TSpan = exports.default = function (_Shape) { + function TSpan() { + var _this; + + (0, _classCallCheck2.default)(this, TSpan); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _callSuper(this, TSpan, [].concat(args)); + + _this.setNativeProps = function (props) { + var matrix = !props.matrix && (0, _extractTransform.default)(props); + + if (matrix) { + props.matrix = matrix; + } + + var prop = (0, _extractProps.propsAndStyles)(props); + Object.assign(prop, (0, _$$_REQUIRE(_dependencyMap[12]).pickNotNil)((0, _extractText.default)(prop, false))); + _this.root && _this.root.setNativeProps(prop); + }; + + return _this; + } + + (0, _inherits2.default)(TSpan, _Shape); + return (0, _createClass2.default)(TSpan, [{ + key: "render", + value: function render() { + var prop = (0, _extractProps.propsAndStyles)(this.props); + var props = (0, _extractProps.default)(Object.assign({}, prop, { + x: null, + y: null + }), this); + Object.assign(props, (0, _extractText.default)(prop, false)); + props.ref = this.refMethod; + return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_TSpanNativeComponent.default, Object.assign({}, props)); + } + }]); + }(_Shape2.default); + + TSpan.displayName = 'TSpan'; + (0, _extractText.setTSpan)(TSpan); +},1023,[3,6,7,11,13,14,16,987,992,1002,982,967,979,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); + + var _extractText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _extractProps = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8])); + + var _extractTransform = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + _$$_REQUIRE(_dependencyMap[11]); + + var _TextNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var Text = exports.default = function (_Shape) { + function Text() { + var _this; + + (0, _classCallCheck2.default)(this, Text); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _callSuper(this, Text, [].concat(args)); + + _this.setNativeProps = function (props) { + var matrix = props && !props.matrix && (0, _extractTransform.default)(props); + + if (matrix) { + props.matrix = matrix; + } + + var prop = (0, _extractProps.propsAndStyles)(props); + Object.assign(prop, (0, _$$_REQUIRE(_dependencyMap[13]).pickNotNil)((0, _extractText.default)(prop, true))); + _this.root && _this.root.setNativeProps(prop); + }; + + return _this; + } + + (0, _inherits2.default)(Text, _Shape); + return (0, _createClass2.default)(Text, [{ + key: "render", + value: function render() { + var prop = (0, _extractProps.propsAndStyles)(this.props); + var props = (0, _extractProps.default)(Object.assign({}, prop, { + x: null, + y: null + }), this); + Object.assign(props, (0, _extractText.default)(prop, true)); + props.ref = this.refMethod; + return (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_TextNativeComponent.default, Object.assign({}, props)); + } + }]); + }(_Shape2.default); + + Text.displayName = 'Text'; +},1024,[3,6,7,11,13,14,16,1002,987,992,982,1023,965,979,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); @@ -152896,13 +154970,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8])); + var _extractTransform = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - var _cssTree = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9])); + var _extractText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - var _cssSelect = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + var _Shape2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _TSpan = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + var _TextPathNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + + var _excluded = ["children", "xlinkHref", "href", "startOffset", "method", "spacing", "side", "alignmentBaseline", "midLine"]; 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); } @@ -152912,24557 +154992,80 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - function isTag(node) { - return typeof node === 'object'; - } - - function getParent(node) { - return typeof node === 'object' && node.parent || null; - } - - function getChildren(node) { - return typeof node === 'object' && node.children || []; - } - - function getName(elem) { - return elem.tag; - } - - function getText(_node) { - return ''; - } - - function getAttributeValue(elem, name) { - return elem.props[name] || null; - } - - function removeSubsets(nodes) { - var idx = nodes.length, - node, - ancestor, - replace; - - while (--idx > -1) { - node = ancestor = nodes[idx]; - delete nodes[idx]; - replace = true; - - while (ancestor) { - if (nodes.includes(ancestor)) { - replace = false; - nodes.splice(idx, 1); - break; - } - - ancestor = typeof ancestor === 'object' && ancestor.parent || null; - } - - if (replace) { - nodes[idx] = node; - } - } - - return nodes; - } - - function existsOne(predicate, elems) { - return elems.some(function (elem) { - return typeof elem === 'object' && (predicate(elem) || existsOne(predicate, elem.children)); - }); - } - - function getSiblings(node) { - var parent = typeof node === 'object' && node.parent; - return parent && parent.children || []; - } - - function hasAttrib(elem, name) { - return elem.props.hasOwnProperty(name); - } - - function findOne(predicate, elems) { - var elem; - - for (var i = 0, l = elems.length; i < l && !elem; i++) { - var node = elems[i]; - - if (typeof node === 'string') {} else if (predicate(node)) { - elem = node; - } else { - var children = node.children; - - if (children.length !== 0) { - elem = findOne(predicate, children); - } - } - } - - return elem; - } - - function findAll(predicate, nodes) { - var result = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; - - for (var i = 0, j = nodes.length; i < j; i++) { - var node = nodes[i]; - - if (typeof node !== 'object') { - continue; - } - - if (predicate(node)) { - result.push(node); - } - - var children = node.children; - - if (children.length !== 0) { - findAll(predicate, children, result); - } - } - - return result; - } - - var adapter = { - removeSubsets: removeSubsets, - existsOne: existsOne, - getSiblings: getSiblings, - hasAttrib: hasAttrib, - findOne: findOne, - findAll: findAll, - isTag: isTag, - getParent: getParent, - getChildren: getChildren, - getName: getName, - getText: getText, - getAttributeValue: getAttributeValue - }; - var cssSelectOpts = { - xmlMode: true, - adapter: adapter - }; - - function querySelectorAll(query, elems) { - return (0, _cssSelect.default)(query, elems, cssSelectOpts); - } - - function flattenToSelectors(cssAst, selectors) { - _cssTree.default.walk(cssAst, { - visit: 'Rule', - enter: function enter(rule) { - var _ref = rule, - type = _ref.type, - prelude = _ref.prelude; - - if (type !== 'Rule') { - return; - } - - var atrule = this.atrule; - prelude.children.each(function (node, item) { - var _ref2 = node, - children = _ref2.children; - var pseudos = []; - selectors.push({ - item: item, - atrule: atrule, - rule: rule, - pseudos: pseudos - }); - children.each(function (_ref3, pseudoItem, list) { - var childType = _ref3.type; - - if (childType === 'PseudoClassSelector' || childType === 'PseudoElementSelector') { - pseudos.push({ - item: pseudoItem, - list: list - }); - } - }); - }); - } - }); - } - - function filterByMqs(selectors) { - return selectors.filter(function (_ref4) { - var atrule = _ref4.atrule; - - if (atrule === null) { - return true; - } - - var name = atrule.name, - prelude = atrule.prelude; - var atPrelude = prelude; - var first = atPrelude && atPrelude.children.first(); - var mq = first && first.type === 'MediaQueryList'; - var query = mq ? _cssTree.default.generate(atPrelude) : name; - return useMqs.includes(query); - }); - } - - var useMqs = ['', 'screen']; - - function filterByPseudos(selectors) { - return selectors.filter(function (_ref5) { - var pseudos = _ref5.pseudos; - return usePseudos.includes(_cssTree.default.generate({ - type: 'Selector', - children: new _cssTree.List().fromArray(pseudos.map(function (pseudo) { - return pseudo.item.data; - })) - })); - }); - } - - var usePseudos = ['']; - - function cleanPseudos(selectors) { - selectors.forEach(function (_ref6) { - var pseudos = _ref6.pseudos; - return pseudos.forEach(function (pseudo) { - return pseudo.list.remove(pseudo.item); - }); - }); - } - - function specificity(selector) { - var A = 0; - var B = 0; - var C = 0; - selector.children.each(function walk(node) { - switch (node.type) { - case 'SelectorList': - case 'Selector': - node.children.each(walk); - break; - - case 'IdSelector': - A++; - break; - - case 'ClassSelector': - case 'AttributeSelector': - B++; - break; - - case 'PseudoClassSelector': - switch (node.name.toLowerCase()) { - case 'not': - var children = node.children; - children && children.each(walk); - break; - - case 'before': - case 'after': - case 'first-line': - case 'first-letter': - C++; - break; - - default: - B++; - } - - break; - - case 'PseudoElementSelector': - C++; - break; - - case 'TypeSelector': - var name = node.name; - - if (name.charAt(name.length - 1) !== '*') { - C++; - } - - break; - } - }); - return [A, B, C]; - } - - function compareSpecificity(aSpecificity, bSpecificity) { - for (var i = 0; i < 4; i += 1) { - if (aSpecificity[i] < bSpecificity[i]) { - return -1; - } else if (aSpecificity[i] > bSpecificity[i]) { - return 1; - } - } - - return 0; - } - - function selectorWithSpecificity(selector) { - return { - selector: selector, - specificity: specificity(selector.item.data) - }; - } - - function bySelectorSpecificity(a, b) { - return compareSpecificity(a.specificity, b.specificity); - } - - function pass(arr, len, chk, result) { - var dbl = chk * 2; - var l, r, e; - var li, ri; - var i = 0; - - for (l = 0; l < len; l += dbl) { - r = l + chk; - e = r + chk; - - if (r > len) { - r = len; - } - - if (e > len) { - e = len; - } - - li = l; - ri = r; - - while (true) { - if (li < r && ri < e) { - if (bySelectorSpecificity(arr[li], arr[ri]) <= 0) { - result[i++] = arr[li++]; - } else { - result[i++] = arr[ri++]; - } - } else if (li < r) { - result[i++] = arr[li++]; - } else if (ri < e) { - result[i++] = arr[ri++]; - } else { - break; - } - } - } - } - - function exec(arr, len) { - var buffer = new Array(len); - - for (var chk = 1; chk < len; chk *= 2) { - pass(arr, len, chk, buffer); - var tmp = arr; - arr = buffer; - buffer = tmp; - } - - return arr; - } - - function sortSelectors(selectors) { - var len = selectors.length; - - if (len <= 1) { - return selectors; - } - - var specs = selectors.map(selectorWithSpecificity); - return exec(specs, len).map(function (s) { - return s.selector; - }); - } - - var declarationParseProps = { - context: 'declarationList', - parseValue: false - }; - - function CSSStyleDeclaration(ast) { - var props = ast.props, - styles = ast.styles; - - if (!props.style) { - props.style = {}; - } - - var style = props.style; - var priority = new Map(); - ast.style = style; - ast.priority = priority; - - if (!styles || styles.length === 0) { - return; - } - - try { - var declarations = _cssTree.default.parse(styles, declarationParseProps); - - declarations.children.each(function (node) { - try { - var _ref7 = node, - property = _ref7.property, - value = _ref7.value, - important = _ref7.important; - var name = property.trim(); - priority.set(name, important); - style[(0, _$$_REQUIRE(_dependencyMap[11]).camelCase)(name)] = _cssTree.default.generate(value).trim(); - } catch (styleError) { - if (styleError.message !== 'Unknown node type: undefined') { - console.warn("Warning: Parse error when parsing inline styles, style properties of this element cannot be used. The raw styles can still be get/set using .attr('style').value. Error details: " + styleError); - } - } - }); - } catch (parseError) { - console.warn("Warning: Parse error when parsing inline styles, style properties of this element cannot be used. The raw styles can still be get/set using .attr('style').value. Error details: " + parseError); - } - } - - function initStyle(selectedEl) { - if (!selectedEl.style) { - CSSStyleDeclaration(selectedEl); - } - - return selectedEl; - } - - function closestElem(node, elemName) { - var elem = node; - - while ((elem = elem.parent) && elem.tag !== elemName) {} - - return elem; - } - - var parseProps = { - parseValue: false, - parseCustomProperty: false - }; - - var inlineStyles = exports.inlineStyles = function inlineStyles(document) { - var styleElements = querySelectorAll('style', document); - - if (styleElements.length === 0) { - return document; - } - - var selectors = []; - - for (var element of styleElements) { - var children = element.children; - - if (!children.length || closestElem(element, 'foreignObject')) { - continue; - } - - try { - var styleString = children.join(''); - flattenToSelectors(_cssTree.default.parse(styleString, parseProps), selectors); - } catch (parseError) { - console.warn('Warning: Parse error of styles of \n " + columnizerCss + "\n " + allBlackCss + "\n \n " + libraryScripts + "\n \n \n
\n
\n " + html + "\n
\n
\n \n \n \n \n \n \n " + moveImagesScript + "\n \n \n " + columnizerScript + "\n " + positionScript + "\n \n \n \n "; if (searchText) { - newHtml = newHtml.replace(new RegExp("(" + searchText + "(?![^<>]*>))", "gim"), "" + searchText + ""); + newHtml = newHtml.replace(new RegExp("(" + searchText + "(?![^<>]*>))", "gim"), "" + searchText + ""); } newHtml = newHtml.replace(REGEX_TAGS.HTML_ENTITY_GREATER, ">"); @@ -320038,153 +295717,157 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var replacePageJumps = function replacePageJumps(edition, articles, pjType, pjIndex) { - var replacedTags = []; - - if (articles && articles.length > 0) { - var article = articles[0]; - var page = edition.getPageByArticle(article); - - if (article && page) { - var pageJumps = article.getPageJumps(); - - if (pageJumps && pageJumps.length > 0) { - pageJumps.forEach(function (pageJump, index) { - var pageRef = ""; - - if (pageJump) { - switch (pjType) { - case _$$_REQUIRE(_dependencyMap[11]).MERGE_ARTICLES_TYPES.MERGED: - if (pageJump.isHiddenSlug() || pageJump.isSlug()) { - var slug = pageJump.isSlug() ? pageJump.getSlug() : ""; - var slugDiv = slug ? "
" + slug + "
" : ""; - - var fromPage = _pageUtils.default.removeZerosFromPageNumber(pageJump.getFrom() || page.getPage()); - - var articleFrom = pageJump.getArticleFrom() >= 0 ? pageJump.getArticleFrom() : article.getXmlId(); - var pageJumpTo = pageJump.getTo() || page.getPage(); - var toPage = "" + _pageUtils.default.removeZerosFromPageNumber(pageJumpTo) + ""; - - if (slug) { - var nextPageJumpsToAdd = []; - var nextPageJumpTos = []; - - var _loop = function _loop() { - var nextArticle = articles[i]; - - if (nextArticle) { - var nextPageJumps = nextArticle.getPageJumps(); - - if (nextPageJumps && nextPageJumps.length > 0) { - nextPageJumps.forEach(function (nextPageJump, nextIndex) { - if (nextPageJump && (nextPageJump.isHiddenSlug() || nextPageJump.isSlug()) && nextPageJump.getSlug() === slug) { - var nextPageJumpTo; - - if (nextPageJump.getTo()) { - if (nextPageJump.getTo() !== pageJumpTo) { - nextPageJumpTo = nextPageJump.getTo(); - } - } else if (nextPageJump.getArticleFrom()) { - var nextPage = edition.getPageByArticle(nextArticle); - - if (nextPage && nextPage.getPage() !== pageJumpTo) { - nextPageJumpTo = nextPage.getPage(); - } - } - - if (nextPageJumpTo && !nextPageJumpTos.includes(nextPageJumpTo)) { - nextPageJumpTos.push(nextPageJumpTo); - nextPageJumpsToAdd.push(nextPageJump); - } - } - }); - } - } - }; - - for (var i = 1; i < articles.length; i++) { - _loop(); - } - - if (nextPageJumpTos.length > 0) { - toPage += nextPageJumpTos.reduce(function (result, nextPageJumpTo, pageJumpIndex) { - var articleId = nextPageJumpsToAdd[pageJumpIndex] ? nextPageJumpsToAdd[pageJumpIndex].getArticleId() : ""; - return result + ", " + _pageUtils.default.removeZerosFromPageNumber(nextPageJumpTo) + ""; - }, ""); - } - } - - pageRef = "\n
\n
\n " + slugDiv + "\n \n " + global.strings("pj_from_page") + "\n \n \n " + fromPage + "\n \n \n " + global.strings("pj_to_page") + " \n \n " + toPage + "\n
\n
\n
"; - } else if (pageJump.isParent()) { - var pjText = ""; - var articleId = -1; - - if (pageJump.hasTo()) { - pjText = _pageUtils.default.removeZerosFromPageNumber(pageJump.getTo()); - articleId = pageJump.getArticleId(); - } else if (pageJump.hasFrom()) { - pjText = _pageUtils.default.removeZerosFromPageNumber(pageJump.getFrom()); - articleId = pageJump.getArticleFrom(); - } - - if (pjText) { - pageRef = "\n
\n \n " + global.strings("pj_continue_to_page_parent") + "\n \n " + pjText + "\n
\n
"; - } - } - - break; - - case _$$_REQUIRE(_dependencyMap[11]).MERGE_ARTICLES_TYPES.ONLY_FIRST: - if (pageJump.hasFrom()) { - var _fromPage = _pageUtils.default.removeZerosFromPageNumber(pageJump.getFrom()); - - pageRef = "\n \n " + index + "\n " + global.strings("pj_from_page") + "\n \n \n " + _fromPage + "\n "; - } - - break; - - case _$$_REQUIRE(_dependencyMap[11]).MERGE_ARTICLES_TYPES.PAGE_REFS: - if (pageJump.isHiddenSlug() || pageJump.isSlug()) { - var _fromPage2 = _pageUtils.default.removeZerosFromPageNumber(pageJump.getFrom() || page.getPage()); - - var _articleFrom = pageJump.getArticleFrom() >= 0 ? pageJump.getArticleFrom() : article.getXmlId(); - - var _toPage = _pageUtils.default.removeZerosFromPageNumber(pageJump.getTo() || page.getPage()); - - var _slug = pageJump.isSlug() ? pageJump.getSlug() : ""; - - var _slugDiv = _slug ? "\n " + _slug + "\n " : ""; - - pageRef = "\n
\n " + _slugDiv + "\n \n " + global.strings("pj_from_page") + "\n \n \n " + _fromPage2 + "\n \n \n " + global.strings("pj_to_page") + " \n \n \n " + _toPage + "\n \n
\n
"; - } else if (pageJump.isParent()) { - var _pjText = ""; - - var _articleId = -1; - - if (pageJump.hasTo()) { - _pjText = _pageUtils.default.removeZerosFromPageNumber(pageJump.getTo()); - _articleId = pageJump.getArticleId(); - } else if (pageJump.hasFrom()) { - _pjText = _pageUtils.default.removeZerosFromPageNumber(pageJump.getFrom()); - _articleId = pageJump.getArticleFrom(); - } - - if (_pjText) { - pageRef = "\n
\n \n " + global.strings("pj_continue_to_page_parent") + "\n \n " + _pjText + "\n
\n
"; - } - } - - break; - } - - if (pageRef) { - replacedTags.push(pageRef); - } - } - }); - } - } + if (_$$_REQUIRE(_dependencyMap[11]).JSUtils.isEmpty(articles)) { + return []; } + var article = articles[0]; + var page = edition.getPageByArticle(article); + + if (!article || !page) { + return []; + } + + var pageJumps = article.getPageJumps(); + + if (_$$_REQUIRE(_dependencyMap[11]).JSUtils.isEmpty(pageJumps)) { + return []; + } + + var replacedTags = []; + pageJumps.forEach(function (pageJump, index) { + var pageRef = ""; + + if (pageJump) { + switch (pjType) { + case _$$_REQUIRE(_dependencyMap[12]).MERGE_ARTICLES_TYPES.MERGED: + if (pageJump.isHiddenSlug() || pageJump.isSlug()) { + var slug = pageJump.isSlug() ? pageJump.getSlug() : ""; + var slugDiv = slug ? "
" + slug + "
" : ""; + + var fromPage = _pageUtils.default.removeZerosFromPageNumber(pageJump.getFrom() || page.getPage()); + + var articleFrom = pageJump.getArticleFrom() >= 0 ? pageJump.getArticleFrom() : article.getXmlId(); + var pageJumpTo = pageJump.getTo() || page.getPage(); + var toPage = "" + _pageUtils.default.removeZerosFromPageNumber(pageJumpTo) + ""; + + if (slug) { + var nextPageJumpsToAdd = []; + var nextPageJumpTos = []; + + var _loop = function _loop() { + var nextArticle = articles[i]; + + if (nextArticle) { + var nextPageJumps = nextArticle.getPageJumps(); + + if (nextPageJumps && nextPageJumps.length > 0) { + nextPageJumps.forEach(function (nextPageJump, nextIndex) { + if (nextPageJump && (nextPageJump.isHiddenSlug() || nextPageJump.isSlug()) && nextPageJump.getSlug() === slug) { + var nextPageJumpTo; + + if (nextPageJump.getTo()) { + if (nextPageJump.getTo() !== pageJumpTo) { + nextPageJumpTo = nextPageJump.getTo(); + } + } else if (nextPageJump.getArticleFrom()) { + var nextPage = edition.getPageByArticle(nextArticle); + + if (nextPage && nextPage.getPage() !== pageJumpTo) { + nextPageJumpTo = nextPage.getPage(); + } + } + + if (nextPageJumpTo && !nextPageJumpTos.includes(nextPageJumpTo)) { + nextPageJumpTos.push(nextPageJumpTo); + nextPageJumpsToAdd.push(nextPageJump); + } + } + }); + } + } + }; + + for (var i = 1; i < articles.length; i++) { + _loop(); + } + + if (nextPageJumpTos.length > 0) { + toPage += nextPageJumpTos.reduce(function (result, nextPageJumpTo, pageJumpIndex) { + var articleId = nextPageJumpsToAdd[pageJumpIndex] ? nextPageJumpsToAdd[pageJumpIndex].getArticleId() : ""; + return result + ", " + _pageUtils.default.removeZerosFromPageNumber(nextPageJumpTo) + ""; + }, ""); + } + } + + pageRef = "\n
\n
\n " + slugDiv + "\n \n " + global.strings("pj_from_page") + "\n \n \n " + fromPage + "\n \n \n " + global.strings("pj_to_page") + " \n \n " + toPage + "\n
\n
\n
"; + } else if (pageJump.isParent()) { + var pjText = ""; + var articleId = -1; + + if (pageJump.hasTo()) { + pjText = _pageUtils.default.removeZerosFromPageNumber(pageJump.getTo()); + articleId = pageJump.getArticleId(); + } else if (pageJump.hasFrom()) { + pjText = _pageUtils.default.removeZerosFromPageNumber(pageJump.getFrom()); + articleId = pageJump.getArticleFrom(); + } + + if (pjText) { + pageRef = "\n
\n \n " + global.strings("pj_continue_to_page_parent") + "\n \n " + pjText + "\n
\n
"; + } + } + + break; + + case _$$_REQUIRE(_dependencyMap[12]).MERGE_ARTICLES_TYPES.ONLY_FIRST: + if (pageJump.hasFrom()) { + var _fromPage = _pageUtils.default.removeZerosFromPageNumber(pageJump.getFrom()); + + pageRef = "\n \n " + index + "\n " + global.strings("pj_from_page") + "\n \n \n " + _fromPage + "\n "; + } + + break; + + case _$$_REQUIRE(_dependencyMap[12]).MERGE_ARTICLES_TYPES.PAGE_REFS: + if (pageJump.isHiddenSlug() || pageJump.isSlug()) { + var _fromPage2 = _pageUtils.default.removeZerosFromPageNumber(pageJump.getFrom() || page.getPage()); + + var _articleFrom = pageJump.getArticleFrom() >= 0 ? pageJump.getArticleFrom() : article.getXmlId(); + + var _toPage = _pageUtils.default.removeZerosFromPageNumber(pageJump.getTo() || page.getPage()); + + var _slug = pageJump.isSlug() ? pageJump.getSlug() : ""; + + var _slugDiv = _slug ? "\n " + _slug + "\n " : ""; + + pageRef = "\n
\n " + _slugDiv + "\n \n " + global.strings("pj_from_page") + "\n \n \n " + _fromPage2 + "\n \n \n " + global.strings("pj_to_page") + " \n \n \n " + _toPage + "\n \n
\n
"; + } else if (pageJump.isParent()) { + var _pjText = ""; + + var _articleId = -1; + + if (pageJump.hasTo()) { + _pjText = _pageUtils.default.removeZerosFromPageNumber(pageJump.getTo()); + _articleId = pageJump.getArticleId(); + } else if (pageJump.hasFrom()) { + _pjText = _pageUtils.default.removeZerosFromPageNumber(pageJump.getFrom()); + _articleId = pageJump.getArticleFrom(); + } + + if (_pjText) { + pageRef = "\n
\n \n " + global.strings("pj_continue_to_page_parent") + "\n \n " + _pjText + "\n
\n
"; + } + } + + break; + } + + if (pageRef) { + replacedTags.push(pageRef); + } + } + }); return replacedTags; }; @@ -320378,7 +296061,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var midAdsStr = "
\n
\n " + htmlChildArtEditorial + "\n
"; } - } else if (mergeArticles === _$$_REQUIRE(_dependencyMap[11]).MERGE_ARTICLES_TYPES.PAGE_REFS) { + } else if (mergeArticles === _$$_REQUIRE(_dependencyMap[12]).MERGE_ARTICLES_TYPES.PAGE_REFS) { var _chain2 = edition.getChainOfArticle(article); var _hrs2 = html.match(REGEX_TAGS.HR); @@ -320720,7 +296403,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return html; }; -},2299,[3,22,406,2300,613,841,651,650,654,652,438,849,2301,803,2302,2303,2304,2305]); +},2182,[3,22,406,2183,613,842,852,651,650,654,652,438,850,2184,2185,2186,2187,2188]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -320730,7 +296413,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var columnizer = "\n function setTopAdsPos(){\n $(\"#articleAds_top\").insertBefore(\"#slideArt\");\n $(\"#slideArt\").find(\"#articleAds_top\").remove();\n }\n\n function setTranslateBannerPos(){\n $(\"#image_div_translation\").insertBefore(\"#slideArt\");\n $(\"#slideArt\").find(\"#image_div_translation\").remove();\n }\n\n function setMiddleAdsPos(){\n var ads = $(\"#articleAds_mid\");\n if(ads.length > 0){\n var objMiddle = ads[0].outerHTML;\n ads.remove();\n $(objMiddle).prependTo($(\"#scrollMergeADD\"));\n }\n }\n\n function setPaddingToColumns(element, index) {\n $(\"
\").insertBefore(element);\n $(element)\n .children()\n .appendTo(\".div_padding\" + index);\n $(\".div_padding\" + index).appendTo(element);\n $(\".div_padding\" + index).css(\"padding\", \"3px\");\n }\n\n function updateTopArt(){\n var artAddObjs = $(\"div[id^='ArtADD']\");\n $(artAddObjs).each(function(i){\n var idArtAdd = $(this).attr(\"id\");\n var parentArtADD = $(\"#\"+idArtAdd).parent();\n if(typeof $($(\"#\"+idArtAdd).parent().parent()).attr(\"class\") != \"undefined\" && $($(\"#\"+idArtAdd).parent().parent()).attr(\"class\").indexOf(\"last\") > -1){\n var cloneArtADD = \"
\"+$(\"#\"+idArtAdd).html()+\"
\";\n $(\"#\"+idArtAdd).remove();\n if($(\".first.column.last\").length == 0 && $(\".first.column\").length > 0){\n $(parentArtADD).prepend(cloneArtADD);\n }else if($(\".first.last.column\").length == 1){\n $(parentArtADD).append(cloneArtADD);\n }else{\n $(parentArtADD).prepend('');\n $(parentArtADD).append(cloneArtADD);\n }\n }\n });\n }\n\n var BASE_COLUMN_WIDTH = " + columnizerBaseColumnWidth + ";\n var VERY_SHORT_ARTICLE_LENGTH = 500;\n var SHORT_ARTICLE_LENGTH = 1500;\n\n function fixSingleColumnWidth(element) {\n var textLength = $(element).children().text().length;\n /* if single column on a very short article reduce the width of the column \n to improve the readability */ \n if ($(element+\" .column\").length === 1 && textLength <= VERY_SHORT_ARTICLE_LENGTH) {\n var containerWidth = $(\"#slideArt\").width();\n var virtualCols = Math.round(containerWidth / BASE_COLUMN_WIDTH);\n var colWidth = containerWidth/virtualCols;\n if ($(element+\" .column\").width() != colWidth) {\n $(element+\" .column\").width(colWidth);\n }\n }\n }\n\n function fixImagesAlignment(element) {\n $(\"p.imgContainer img\").each(function() {\n /* check if the image is followed by a paragraph */\n var parentNode = $(this).parent();\n var prevElement = parentNode && parentNode.prev();\n var nextElement = parentNode && parentNode.next();\n if ((!prevElement || !prevElement.hasClass(\"quote\")) && (!nextElement || !nextElement.hasClass(\"paragraph\"))) {\n /* if the image has a width less than 25% of the column align to the left */\n if ($(this).width() < $(element+\" .column\").width()*0.25) {\n $(this).css(\"margin\", 0);\n }\n }\n });\n }\n\n function moveImagesIfSingleColumn(element) {\n if ($(element+\" .column\").length === 1 && typeof moveImages === \"function\") {\n moveImages();\n }\n }\n\n function movePageJumpsColumnizer(index) {\n try {\n /* on single column move page jumps after the hr of the previous article */\n if ($(\".column\").length === $(\".first.last.column\").length) {\n $(\"div[data-pjindex]\").each(function() {\n var pjindex = parseInt($(this).data(\"pjindex\"), 10);\n if (pjindex > 0) {\n var prevHr = $(\"hr[class='hr\"+(pjindex-1)+\"']\");\n if (prevHr) {\n prevHr.after(this);\n }\n }\n });\n } else if (index > 0 && ($(\".div_padding\"+index+\" #artTopLast img\").length > 0 || $(\".div_padding\"+index+\" #artTopLast .pageJump\").length > 0)) {\n /* move the img or the pj div at the top of the last column */\n var pjImgContainer = $(\".div_padding\"+index+\" #artTopLast\");\n pjImgContainer.parent().prepend(pjImgContainer);\n }\n } catch (e) {\n console.log(e);\n }\n }\n \n function setColumns(element, index, pageJump, multipleArticles, scrollToHrIndex, isLast, moveTopArtOnTop) {\n console.log(\"columnize \" + element);\n var arabic = /[\u0600-\u06FF]/;\n var isArabic = arabic.test($($(\".maintitle\")[0]).text()) || arabic.test($($(\".uptitle\")[0]).text());\n var columnFloat = isArabic ? \"right\" : \"left\";\n console.log(\"is arabic \" + isArabic);\n var columnOptions = {\n lastNeverTallest: true,\n columnFloat: columnFloat,\n doneFunc: function () {\n console.log(\"columnized \" + element);\n setTopAdsPos();\n setTranslateBannerPos();\n setMiddleAdsPos();\n if(moveTopArtOnTop){\n updateTopArt();\n }\n\n fixSingleColumnWidth(element);\n fixImagesAlignment(element);\n moveImagesIfSingleColumn(element);\n\n saveImages();\n \n if(isLast){\n movePageJumpsColumnizer(index);\n \n /*var heads = $('[class^=article_head]');*/\n var heads = $(\"hr\");\n /*if index is related to second piece of article there is just one hr between articles so index is articleIndex -1*/\n scrollToHrIndex = scrollToHrIndex - 1;\n var top = 0;\n if(heads && heads.length >= scrollToHrIndex && scrollToHrIndex >= 0){\n top = $(heads[scrollToHrIndex]).offset().top;\n }\n console.log(\"scroll to \" + top);\n if (window.ReactNativeWebView && top > 0) {\n try{\n var content = $(\"#content\")[0];\n /*is important to set the height because article text scroll to position when set the same height of scrollview\n the height of scrollview comes from autoheight webview*/\n var height = Math.max(content.scrollHeight, content.offsetHeight, content.clientHeight);\n window.ReactNativeWebView.postMessage(JSON.stringify({ scrollTop: top, type: \"SCROLL_TOP\", scrollHeight: height }));\n } catch(e){\n console.log(\"error on post message scroll top\");\n }\n }\n }\n }\n };\n\n var images = $(element + \" img\");\n var countParagraphs = $(element).children().length * 50;\n var textLength = $(element).children().text().length;\n var countImages = images.length * 200;\n var totalLength = textLength + countParagraphs + countImages;\n console.log(\"total length \" + totalLength);\n console.log(\"short length \" + SHORT_ARTICLE_LENGTH);\n console.log(\"count paragraphs \" + countParagraphs);\n console.log(\"text length \" + textLength);\n console.log(\"very short length \" + VERY_SHORT_ARTICLE_LENGTH);\n console.log(\"count images \" + countImages);\n console.log(\"page jump \" + pageJump);\n console.log(\"multiple articles \" + multipleArticles);\n\n if (totalLength > SHORT_ARTICLE_LENGTH || ((pageJump === 1 || multipleArticles) && textLength > VERY_SHORT_ARTICLE_LENGTH)) {\n columnOptions.width = BASE_COLUMN_WIDTH;\n } else {\n columnOptions.columns = 1; \n }\n console.log(\"columnizer options\");\n console.log(columnOptions);\n setPaddingToColumns(element, index);\n $(element).columnize(columnOptions);\n }\n\n function getWidthOfSpans(element) {\n var width = 0;\n if (element) {\n $(element)\n .find(\"span\")\n .each(function () {\n width += $(this).width();\n });\n }\n return width;\n }\n\n function setColumnizerArticle(index, article, multipleArticles, scrollToHrIndex, isLast, moveTopArtOnTop) {\n console.log(\"===============================================\");\n console.log(\"set columnizer article...: \" + index);\n console.log(\"slide art width: \" + $(\"#slideArt\").width());\n var column_width = " + columnizerBaseColumnWidth + ";\n if( $(\"#slideArt\").width() / 4 > " + columnizerBaseColumnWidth + " ){\n column_width = parseInt($(\"#slideArt\").width() / 4);\n }\n console.log(\"column width: \" + column_width);\n var headArticle = new Array();\n $(article).each(function(){\n if(this.className == \"abody\")return false;\n headArticle.push(this);\n });\n /*var headArticle = $(article).filter(\".abody\").first().prevAll().get().reverse();\n if($(headArticle).filter(\".byline\").length > 0){\n headArticle = $(headArticle).filter(\".byline\").first().prevAll().get().reverse();\n }*/\n var maintitle=$(headArticle).filter(\".maintitle\");\n var parentPage=$(headArticle).filter(\".parentPage\");\n /* PUT MAINTITLE AND UPPER CONTENT OUTSIDE OF ARTICLE TEXT ONLY IF ONE MAINTITLE EXSISTS AND IF MAINTITLE IS LARGER THEN COLUMN WIDTH*/\n var first_element=$(article)[0];\n $(\"
\").insertAfter($(first_element));\n $(article).appendTo(\".article_body\" + index);\n if (maintitle.length <= 1 ) {\n console.log(\"main title exists\");\n $(\"
\").insertBefore(\".article_body\" + index);\n var moveTitleOutColumns = false;\n $(headArticle).each(function(){\n if($(this).attr(\"class\") && $(this).attr(\"class\").indexOf(\"title\") > -1){\n var widthParagraph = getWidthOfSpans(this);\n console.log(\"width: \" + widthParagraph);\n if(widthParagraph > column_width){\n moveTitleOutColumns = true;\n }\n }\n });\n $(headArticle).each(function(){\n if($(this).attr(\"class\") && $(this).attr(\"class\").indexOf(\"title\") > -1){\n if(moveTitleOutColumns){\n $(this).appendTo('.article_head' + index);\n }else{\n /*$(\".article_body\" + index).prepend(this);*/\n }\n }\n });\n $(\".article_body\" + index).css(\"margin-top\",\"10px\");\n /*CREATE COLUMNS FROM ARTICLE TEXT*/\n setColumns(\".article_body\" + index, index, 0, multipleArticles, scrollToHrIndex, isLast, moveTopArtOnTop);\n }else {\n setColumns(\".article_body\" + index, index, 1, multipleArticles, scrollToHrIndex, isLast, moveTopArtOnTop);\n }\n if (index > 0 && parentPage) {\n $(parentPage).appendTo(\".article_body\" + (index - 1));\n $(\".article_body\" + index + \" .parentPage\").remove();\n }\n }\n\n function setColumnizerArticleWithPageJump(hrs, scrollToHrIndex, moveTopArtOnTop) {\n var articles = [];\n \n $(hrs).each(function (i) {\n var _this = $(this);\n _this.addClass(\"hr\" + i);\n _this.css(\"margin-top\", \"0.8em\");\n _this.css(\"margin-bottom\", \"0.8em\");\n articles.push(_this.prevUntil(\"hr\").get().reverse());\n });\n articles.push(\n $(hrs[hrs.length - 1])\n .nextUntil(\"hr\")\n .get()\n );\n /*columnize all articles separately*/\n var jArticles = $(articles);\n jArticles.each(function(index,article){\n var isLast = index === jArticles.length - 1;\n setColumnizerArticle(index, article, true, scrollToHrIndex, isLast, moveTopArtOnTop)\n });\n }\n\n function setColumnizer(scrollToHrIndex, mergeArt) {\n if ($(\".column\").length > 0) {\n /*already done*/\n return;\n }\n console.log(\"scroll to hr index: \" + scrollToHrIndex);\n console.log(\"using merge art: \" + mergeArt);\n console.log(\"merge art type: \" + (typeof mergeArt));\n var element = $(\"#slideArt\");\n if (!element) {\n console.log(\"missing slideArt\");\n return;\n }\n var moveTopArtOnTop = mergeArt > 0;\n var hrs = element.find(\"hr\");\n if (hrs && hrs.length && mergeArt !== 1) {\n console.log(\"found hr: \" + hrs.length);\n setColumnizerArticleWithPageJump(hrs, scrollToHrIndex, moveTopArtOnTop);\n } else {\n setColumnizerArticle(0, element.children(), false, scrollToHrIndex, false, moveTopArtOnTop);\n }\n }\n \n $(window).resize(function () {\n fixSingleColumnWidth(\".article_body0\");\n });\n"; var _default = exports.default = columnizer; -},2300,[]); +},2183,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -320853,7 +296536,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2301,[3,6,7]); +},2184,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -321014,7 +296697,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var asyncPostMessageFunctions = exports.asyncPostMessageFunctions = function asyncPostMessageFunctions() { return "\n var waiting = {};\n var AWAITING_TIMEOUT = 30000;\n\n function parsePayload(payload) {\n if (payload === \"true\") {\n return true;\n }\n if (payload === \"false\") {\n return false;\n }\n let result = parseFloat(payload);\n if (!Number.isNaN(result)) {\n return result;\n }\n try {\n return JSON.parse(payload);\n } catch (e) {\n }\n\n return payload;\n }\n\n /**\n * resolve or reject the promise attacched to this key\n * @param {*} key contained inside postMessage payload\n * @param {string} method reject|resolve\n * @param {string} payload the string, if resolve will be parsed with JSON.parse otherwise is the error message\n */\n function awaitPostMessage(key, method, payload) {\n try {\n if (method === \"resolve\") {\n waiting[key].resolve(parsePayload(payload));\n } else {\n waiting[key].reject(new Error(payload));\n }\n } catch (e) {\n if (waiting[key] && waiting[key].reject) {\n waiting[key].reject(e);\n }\n }\n delete waiting[key];\n };\n\n function generateId() {\n return \"\"+Math.random().toString(36).substr(2, 9);\n }\n\n function emit(data) {\n window.ReactNativeWebView.postMessage(JSON.stringify(data ?? {}));\n }\n\n /**\n * call this method to post a message and awaiting a response from native code\n * each message has a unique key, used to identified the promise and resolve it\n * to resolve the promise from native code you need to inject js awaitPostMessage,\n * see the method below\n * @param {*} data\n * @returns Promise\n */\n async function asyncPostMessage (data) {\n return new Promise((resolve, reject) => {\n try {\n const key = generateId();\n waiting[key] = { resolve, reject };\n emit({ asyncKey: key, ...data });\n setTimeout(() => {\n awaitPostMessage(key, \"reject\", key+\" went in timeout\");\n }, AWAITING_TIMEOUT);\n } catch (e) {\n console.warn(e.message);\n reject(e);\n }\n });\n }"; }; -},2302,[18,3,2000,438]); +},2185,[18,3,1889,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -321049,6 +296732,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var defaultForegroundColor = _$$_REQUIRE(_dependencyMap[0]).Css.getDefaultForegroundColor(); var foregroundColor = isDarkMode ? defaultForegroundColor : "#333333"; + var searchColor = !ignoreTheme ? _$$_REQUIRE(_dependencyMap[0]).Css.getDefaultSearchColor() : _$$_REQUIRE(_dependencyMap[1]).SEARCH_COLOR; var translateStyle = "\n #image_div_translation {\n padding: 5px 0 !important;\n }"; var otherDarkStyles = ""; @@ -321060,11 +296744,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var serifFonts = fontFamilyRegular + ", Georgia, \"Times New Roman\", Times, serif !important"; var serifBoldFonts = fontFamilyBold + ", Georgia, \"Times New Roman\", Times, serif !important"; var sansSerifFonts = fontFamilyRegular + ", Arial, Helvetica, sans-serif, Georgia !important"; - var css = "\n * {\n font-family: " + fontFamilyRegular + " !important;\n }\n body {\n margin: 0;\n }\n #content {\n padding: 8px;\n }\n a {\n word-wrap: break-word;\n }\n img {\n max-width: 100%;\n height: auto;\n }\n #categoryType{\n font-size: 20px;\n margin-top: 15px;\n }\n .abody, .paragraph, .advp, .native_ad_container {\n padding: 0px 5px 0px 5px;\n }\n .abody {\n font-size: 1.1em;\n margin-top: 10px;\n color: " + foregroundColor + ";\n font-weight: normal;\n line-height: normal;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .titles {\n font-size: 20px;\n padding: 5px;\n color: #0069B1;\n font-weight: bold;\n z-index: 10;\n }\n .pagetitles.titles {\n font-size: 1.1em;\n line-height: normal;\n color: #0069B1;\n z-index: 10;\n font-weight: normal;\n font-style: normal;\n }\n * {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n }\n #slideArt{\n color: " + foregroundColor + ";\n line-height: normal;\n " + (_$$_REQUIRE(_dependencyMap[1]).PlatformUtils.isTablet() ? "padding: 0 8px;" : "") + "\n }\n #slideArt .subtitle{\n margin-left: 5px;\n margin-right: 5px;\n margin-top: 10px;\n } \n #slideArt .uptitle, #slideArt .byline, #slideArt p img, #slideArt a {\n margin: 0 5px;\n }\n\n #slideArt p.imgContainer {\n display: inline;\n }\n\n /** fix to center images when columnizer is on */\n #slideArt .column p.imgContainer {\n margin: 0 5px;\n display: block;\n } \n \n #slideArt .column p.imgContainer img {\n margin: 0 auto;\n display: block;\n }\n\n #slideArt a.pageJumpRef {\n margin: 0;\n }\n\n #textContent {\n background-color: #FFFFFF;\n font-family: " + sansSerifFonts + ";\n font-size: 14px;\n font-weight: normal;\n padding: 5px;\n overflow: hidden;\n }\n .maintitle {\n font-size: 2em;\n margin: 0 5px;\n padding: 5px 0px 5px 0px;\n color: #2A719C;\n font-weight: normal;\n line-height : 1.2;\n font-family: " + serifFonts + ";\n }\n .uptitle, .subtitle {\n font-size: 1.2em;\n font-weight: normal;\n font-family: " + serifFonts + ";\n line-height : 1.2;\n }\n .firstindexsection {\n font-size: 1.1em;\n line-height: normal;\n color: #CC0000;\n z-index: 10;\n font-weight: normal;\n font-family: " + serifFonts + ";\n }\n .firstindexarticle {\n font-size: 1.1em;\n line-height: normal;\n color: #0069B1;\n z-index: 10;\n font-weight: normal;\n font-family: " + serifFonts + ";\n }\n .pageref {\n font-size: 1.1em;\n line-height: normal;\n color: " + foregroundColor + ";\n text-decoration: none;\n z-index: 10;\n font-weight: bold;\n font-family: " + serifBoldFonts + ";\n }\n .pagerefart {\n font-size: 16px;\n line-height: 25px;\n color: " + foregroundColor + ";\n text-decoration: none;\n z-index: 10;\n font-weight: bold;\n font-family: " + serifBoldFonts + ";\n }\n .pagerefart:hover {\n text-decoration: underline;\n }\n .swipe {\n z-index: 1;\n overflow: hidden;\n width: 200%;\n visibility: hidden;\n position: relative;\n z-index: 100;\n }\n .swipe-wrap {\n z-index: 1;\n overflow: hidden;\n width: 50%;\n position: relative;\n }\n .swipe-wrap > div {\n z-index: 1;\n float: left;\n width: 50%;\n position: relative;\n }\n #poweredby a, #copyright a{\n color: #000000;\n text-decoration: none;\n }\n #poweredby{\n width: 50%;\n float: left;\n }\n #copyright {\n width: 50%;\n float: left;\n text-align: right;\n }\n div#titlesCont i {\n font-weight: normal;\n }\n div#scrollMergeADD {\n text-align: center;\n }\n .pjFromPageMergeArt3{\n color: blue;\n }\n div.pageJumpMergeArt3 {\n text-align: right;\n border-bottom: 0px;\n }\n .column div.pageJumpMergeArt3 {\n display: inline;\n text-align: center;\n }\n div.pageJumpContainer {\n display: inline-block;\n }\n div.pageJumpSlug {\n text-align: center;\n }\n .pageJumpMergeArt3 span.pjFromPage{\n font-weight: bold;\n }\n a.pageJumpRef {\n font-weight: bold;\n color: blue;\n text-decoration: none;\n }\n .column .imgArt {\n position: relative;\n text-align: center;\n margin-top: 15px;\n margin-bottom: 10px;\n }\n .img-parent {\n text-align: center;\n }\n .div-column {\n padding: 0 5px 0 0;\n margin-right: 15px;\n }\n .hr {\n border-top: 1px solid;\n padding-bottom: 3px;\n margin-top: 10px;\n margin-bottom: 10px;\n }\n .caption {\n font-style: italic;\n }\n p.maintitleChild span {\n color: #093d72; \n font-family: " + serifFonts + "; \n font-weight: bold !important;\n line-height: 1.1em;\n padding:0px 10px 0px 10px;\n }\n \n .subtitleChild {\n font-size: 1em !important;\n line-height: normal !important;\n color: #666;\n margin-top: 5px;\n font-family: " + serifFonts + "\n }\n \n .article_body::after{\n content: \"\";\n display: block;\n clear: both;\n }\n\n " + translateStyle + "\n \n " + hrBylineStyle + "\n \n " + otherDarkStyles; + var css = "\n * {\n font-family: " + fontFamilyRegular + " !important;\n }\n body {\n margin: 0;\n }\n #content {\n padding: 8px;\n }\n a {\n word-wrap: break-word;\n }\n img {\n max-width: 100%;\n height: auto;\n }\n #categoryType{\n font-size: 20px;\n margin-top: 15px;\n }\n .abody, .paragraph, .advp, .native_ad_container {\n padding: 0px 5px 0px 5px;\n }\n .abody {\n font-size: 1.1em;\n margin-top: 10px;\n color: " + foregroundColor + ";\n font-weight: normal;\n line-height: normal;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .titles {\n font-size: 20px;\n padding: 5px;\n color: #0069B1;\n font-weight: bold;\n z-index: 10;\n }\n .pagetitles.titles {\n font-size: 1.1em;\n line-height: normal;\n color: #0069B1;\n z-index: 10;\n font-weight: normal;\n font-style: normal;\n }\n * {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n }\n #slideArt{\n color: " + foregroundColor + ";\n line-height: normal;\n " + (_$$_REQUIRE(_dependencyMap[2]).PlatformUtils.isTablet() ? "padding: 0 8px;" : "") + "\n }\n #slideArt .subtitle{\n margin-left: 5px;\n margin-right: 5px;\n margin-top: 10px;\n } \n #slideArt .uptitle, #slideArt .byline, #slideArt p img, #slideArt a {\n margin: 0 5px;\n }\n\n #slideArt p.imgContainer {\n display: inline;\n }\n\n /** fix to center images when columnizer is on */\n #slideArt .column p.imgContainer {\n margin: 0 5px;\n display: block;\n } \n \n #slideArt .column p.imgContainer img {\n margin: 0 auto;\n display: block;\n }\n\n #slideArt a.pageJumpRef {\n margin: 0;\n }\n\n #textContent {\n background-color: #FFFFFF;\n font-family: " + sansSerifFonts + ";\n font-size: 14px;\n font-weight: normal;\n padding: 5px;\n overflow: hidden;\n }\n .maintitle {\n font-size: 2em;\n margin: 0 5px;\n padding: 5px 0px 5px 0px;\n color: #2A719C;\n font-weight: normal;\n line-height : 1.2;\n font-family: " + serifFonts + ";\n }\n .uptitle, .subtitle {\n font-size: 1.2em;\n font-weight: normal;\n font-family: " + serifFonts + ";\n line-height : 1.2;\n }\n .firstindexsection {\n font-size: 1.1em;\n line-height: normal;\n color: #CC0000;\n z-index: 10;\n font-weight: normal;\n font-family: " + serifFonts + ";\n }\n .firstindexarticle {\n font-size: 1.1em;\n line-height: normal;\n color: #0069B1;\n z-index: 10;\n font-weight: normal;\n font-family: " + serifFonts + ";\n }\n .pageref {\n font-size: 1.1em;\n line-height: normal;\n color: " + foregroundColor + ";\n text-decoration: none;\n z-index: 10;\n font-weight: bold;\n font-family: " + serifBoldFonts + ";\n }\n .pagerefart {\n font-size: 16px;\n line-height: 25px;\n color: " + foregroundColor + ";\n text-decoration: none;\n z-index: 10;\n font-weight: bold;\n font-family: " + serifBoldFonts + ";\n }\n .pagerefart:hover {\n text-decoration: underline;\n }\n .swipe {\n z-index: 1;\n overflow: hidden;\n width: 200%;\n visibility: hidden;\n position: relative;\n z-index: 100;\n }\n .swipe-wrap {\n z-index: 1;\n overflow: hidden;\n width: 50%;\n position: relative;\n }\n .swipe-wrap > div {\n z-index: 1;\n float: left;\n width: 50%;\n position: relative;\n }\n #poweredby a, #copyright a{\n color: #000000;\n text-decoration: none;\n }\n #poweredby{\n width: 50%;\n float: left;\n }\n #copyright {\n width: 50%;\n float: left;\n text-align: right;\n }\n div#titlesCont i {\n font-weight: normal;\n }\n div#scrollMergeADD {\n text-align: center;\n }\n .pjFromPageMergeArt3{\n color: blue;\n }\n div.pageJumpMergeArt3 {\n text-align: right;\n border-bottom: 0px;\n }\n .column div.pageJumpMergeArt3 {\n display: inline;\n text-align: center;\n }\n div.pageJumpContainer {\n display: inline-block;\n }\n div.pageJumpSlug {\n text-align: center;\n }\n .pageJumpMergeArt3 span.pjFromPage{\n font-weight: bold;\n }\n a.pageJumpRef {\n font-weight: bold;\n color: blue;\n text-decoration: none;\n }\n .column .imgArt {\n position: relative;\n text-align: center;\n margin-top: 15px;\n margin-bottom: 10px;\n }\n .img-parent {\n text-align: center;\n }\n .div-column {\n padding: 0 5px 0 0;\n margin-right: 15px;\n }\n .hr {\n border-top: 1px solid;\n padding-bottom: 3px;\n margin-top: 10px;\n margin-bottom: 10px;\n }\n .caption {\n font-style: italic;\n }\n p.maintitleChild span {\n color: #093d72; \n font-family: " + serifFonts + "; \n font-weight: bold !important;\n line-height: 1.1em;\n padding:0px 10px 0px 10px;\n }\n \n .subtitleChild {\n font-size: 1em !important;\n line-height: normal !important;\n color: #666;\n margin-top: 5px;\n font-family: " + serifFonts + "\n }\n \n .article_body::after{\n content: \"\";\n display: block;\n clear: both;\n }\n\n a.searchTerm {\n color: " + searchColor + ";\n }\n\n " + translateStyle + "\n \n " + hrBylineStyle + "\n \n " + otherDarkStyles; css += NO_ARTICLE_TEXT_SELECTION_CSS(enableArticleTextSelection); return css; }; -},2303,[803,438]); +},2186,[803,811,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -321337,7 +297021,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _ref3.apply(this, arguments); }; }(); -},2304,[3,270,843,552,651,2137,438]); +},2187,[3,270,844,552,651,2020,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -321346,7 +297030,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var jQueryBase64 = exports.jQueryBase64 = "LyohIGpRdWVyeSB2My41LjEgfCAoYykgSlMgRm91bmRhdGlvbiBhbmQgb3RoZXIgY29udHJpYnV0b3JzIHwganF1ZXJ5Lm9yZy9saWNlbnNlICovCiFmdW5jdGlvbihlLHQpeyJ1c2Ugc3RyaWN0Ijsib2JqZWN0Ij09dHlwZW9mIG1vZHVsZSYmIm9iamVjdCI9PXR5cGVvZiBtb2R1bGUuZXhwb3J0cz9tb2R1bGUuZXhwb3J0cz1lLmRvY3VtZW50P3QoZSwhMCk6ZnVuY3Rpb24oZSl7a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md0aDt0aGlzLmxhc3RPdGhlcisrKXtpZigkcGFyZW50c1t0aGlzLmxhc3RPdGhlcl0udGFnTmFtZSE9JHRhZzImJiRwYXJlbnRzW3RoaXMubGFzdE90aGVyXS50YWdOYW1lIT0iTEkiKXskZm91bmQ9dHJ1ZTt0aGlzLmxhc3RPdGhlci0tO2JyZWFrO319CnRoaXMubmVzdD0xO2lmKCQodGhpcy5jb2xzW3RoaXMub2Zmc2V0XSkuZmluZCgiPiIrJHRhZzErJzpmaXJzdCBsaSAnKyR0YWcxKyI6Zmlyc3QiKS5sZW5ndGgpe3RoaXMubmVzdD0yO30KdGhpcy5zZXRMaXN0KHRoaXMuY29scywkbGlzdCwkdGFnMSk7dGhpcy5sYXN0T3RoZXItLTskbGlzdD0kKHRoaXMuY29sc1t0aGlzLm9mZnNldF0pLmZpbmQoJHRhZzErJzpmaXJzdCBsaSAnKyR0YWcxKyI6Zmlyc3QiKTtpZigkbGlzdC5sZW5ndGgpe3RoaXMuYmVmb3JlPSQodGhpcy5jb2xzW3RoaXMub2Zmc2V0LTFdKS5maW5kKCI+IiskdGFnMSsnOmxhc3QgbGkgJyskdGFnMSsiOmxhc3QiKTt0aGlzLnByZXZNYXg9MDt0aGlzLm5lc3Q9MTt0aGlzLnNldExpc3QodGhpcy5jb2xzLCRsaXN0LCR0YWcxKTt9CnZhciAkcmVzZXQ9JCh0aGlzLmNvbHNbdGhpcy5vZmZzZXQtMV0pLmZpbmQoIj4iKyR0YWcxKyc6bGFzdCcpO3RoaXMucHJldk1heD0kcmVzZXQuY2hpbGRyZW4oKS5sZW5ndGg7fX0KcmV0dXJuIDA7fTt9KShqUXVlcnkpOw=="; -},2305,[]); +},2188,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -321530,7 +297214,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onPress: _propTypes.default.func, children: _propTypes.default.any }; -},2306,[3,33,4,22,16,568,18,800,2307,2277,436,2114,179,803,438,550]); +},2189,[3,33,4,22,16,568,18,800,2190,2160,436,1998,179,803,438,550]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -321659,7 +297343,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2307,[18,863,438]); +},2190,[18,811,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -321685,7 +297369,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e justifyContent: "space-between" } }); -},2308,[18]); +},2191,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322041,7 +297725,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onOpenGallery: _propTypes.default.func, maxHeight: _propTypes.default.number.isRequired }; -},2309,[3,270,6,7,11,13,14,568,16,18,2090,2310,179,803,1918,1,438,2048,2038,2034]); +},2192,[3,270,6,7,11,13,14,568,16,18,1974,2193,179,803,1807,1,438,1937,1923,1919]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322114,7 +297798,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white } }); -},2310,[18,438]); +},2193,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322192,7 +297876,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ArticleFling.defaultProps = {}; var _default = exports.default = ArticleFling; -},2311,[3,16,568,18,2279,1,438,179]); +},2194,[3,16,568,18,2162,1,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322375,7 +298059,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e HeaderParent.defaultProps = { header: false }; -},2312,[3,4,270,6,7,11,13,14,16,568,18,2313,800,847,650,2018,179,803,438,2314,1968]); +},2195,[3,4,270,6,7,11,13,14,16,568,18,2196,800,848,650,1928,179,803,438,2197,1857]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322429,7 +298113,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e marginHorizontal: 15 } }); -},2313,[18,863,438]); +},2196,[18,811,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322583,7 +298267,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e logoHeight: _$$_REQUIRE(_dependencyMap[16]).LOGO_HEIGHT, style: undefined }; -},2314,[3,270,6,7,11,13,14,568,16,18,2315,2316,438,179,803,1969,863]); +},2197,[3,270,6,7,11,13,14,568,16,18,2198,2199,438,179,803,1858,811]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322736,7 +298420,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e style: _propTypes.default.any, source: _propTypes.default.any }; -},2315,[3,4,6,7,11,13,14,16,568,574,179]); +},2198,[3,4,6,7,11,13,14,16,568,574,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -322758,7 +298442,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: _$$_REQUIRE(_dependencyMap[1]).LOGO_HEIGHT } }); -},2316,[18,863]); +},2199,[18,811]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -323082,7 +298766,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e InterstitialsHelper.prebidInitialized = false; InterstitialsHelper.showingNativeInterstitial = false; -},2317,[3,270,6,7,2139,2140,2142,2143,654,865,2318,2319,438]); +},2200,[3,270,6,7,2022,2023,2025,2026,654,865,2201,2202,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -323223,7 +298907,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2318,[3,22,6,7,2009,803,438]); +},2201,[3,22,6,7,1898,803,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -323406,7 +299090,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(_react.default.Component); InterstitialContainer.popup = {}; -},2319,[3,270,6,7,11,13,14,16,18,2320,434,2321,2140,179]); +},2202,[3,270,6,7,11,13,14,16,18,2203,434,2204,2023,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -323425,7 +299109,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.transparent } }); -},2320,[18,438]); +},2203,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -323663,7 +299347,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Interstitial.defaultProps = { innerRef: function innerRef() {} }; -},2321,[3,270,6,7,11,13,14,568,16,18,2139,2140,2017,434,2322,2320,179,2008,2042,2034]); +},2204,[3,270,6,7,11,13,14,568,16,18,2022,2023,1906,434,2205,2203,179,1897,1927,1919]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -323768,7 +299452,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e showAfter: _propTypes.default.number, onClose: _propTypes.default.func }; -},2322,[3,6,7,11,13,14,16,568,434,2323,438,803,179]); +},2205,[3,6,7,11,13,14,16,568,434,2206,438,803,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -323852,7 +299536,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e CloseComponent.defaultProps = { cssClasses: [] }; -},2323,[3,6,7,11,13,14,16,18,568,1918,2324,179,1,803]); +},2206,[3,6,7,11,13,14,16,18,568,1807,2207,179,1,803]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -323890,7 +299574,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _$$_REQUIRE(_dependencyMap[1]).colors.white } }); -},2324,[18,438]); +},2207,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -324039,7 +299723,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })] }); } -},2325,[3,16,2326,2582,2768,1999,2769,2771,2772,2773,2774,2775,2328,2336,179,2777]); +},2208,[3,16,2209,2465,2651,1888,2652,2654,2655,2656,2657,2658,2211,2219,179,2660]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -324234,7 +299918,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[22]).NavigatorBaseScreen); -},2326,[3,270,6,7,11,85,13,14,16,436,2327,2184,2318,2329,2269,550,849,438,1961,2331,179,2330,2581]); +},2209,[3,270,6,7,11,85,13,14,16,436,2210,2067,2201,2212,2152,550,850,438,1850,2214,179,2213,2464]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -324428,7 +300112,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }); } -},2327,[3,16,2328,2336,1999,2343,2204,2344,2165,849,179,2357,2050,2358,2487,2510,2512,2513]); +},2210,[3,16,2211,2219,1888,2226,2087,2227,2048,850,179,2240,1939,2241,2370,2393,2395,2396]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -324737,7 +300421,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e WebScreen.defaultProps = { considerSafeArea: true }; -},2328,[3,270,6,7,11,85,13,14,568,16,2329,2009,436,2000,2012,2318,2018,851,839,550,2331,438,2019,179,2042,2034,2330]); +},2211,[3,270,6,7,11,85,13,14,568,16,2212,1898,436,1889,1901,2201,1928,852,840,550,2214,438,1929,179,1927,1919,2213]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -324848,7 +300532,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; } -},2329,[3,33,16,18,436,438,550,2330,179]); +},2212,[3,33,16,18,436,438,550,2213,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -324913,7 +300597,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: children })); } -},2330,[3,4,16,18,434,881,179]); +},2213,[3,4,16,18,434,883,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -324928,7 +300612,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2331,[2332]); +},2214,[2215]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -325264,7 +300948,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NavigationBaseScreen.defaultProps = { enablePostponeAction: false }; -},2332,[3,22,270,6,7,11,85,13,14,568,16,18,436,2333,865,2008,550,2019,438,798]); +},2215,[3,22,270,6,7,11,85,13,14,568,16,18,436,2216,865,1897,550,1929,438,798]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -325475,7 +301159,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e UPGRADED: 2, UPDATED: 3 }; -},2333,[3,270,6,7,847,1975,2204,865,552,2334,438,801]); +},2216,[3,270,6,7,848,1864,2087,865,552,2217,438,801]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -325901,7 +301585,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _global$getMainPSetup3 = global.getMainPSetup(), feedbackConfig = _global$getMainPSetup3.feedbackConfig; - var email = (feedbackConfig ? feedbackConfig.emailForFeedback : "") || global.strings("feedback_email_feedback"); + var email = (feedbackConfig == null ? undefined : feedbackConfig.emailForFeedback) || global.strings("feedback_email_feedback"); _reactNativeMail.default.mail({ subject: subject, @@ -326019,7 +301703,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2334,[3,270,6,7,2286,407,2269,2335,2018,2014,438,798,2008]); +},2217,[3,270,6,7,2169,407,2152,2218,1928,1903,438,798,1897]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -326097,7 +301781,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e active_days_total: "activeDaysTotal" } }; -},2335,[3,270,6,7,438]); +},2218,[3,270,6,7,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -326633,7 +302317,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: [actionBar, barComponent] }); } -},2336,[3,4,16,18,1402,2329,2000,434,2318,552,2018,800,2090,2331,803,2330,438,2337,179,2338,1918,2178,1323]); +},2219,[3,4,16,18,1310,2212,1889,434,2201,552,1928,800,1974,2214,803,2213,438,2220,179,2221,1807,2061,1230]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -326741,7 +302425,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _$$_REQUIRE(_dependencyMap[1]).colors.white } }); -},2337,[18,438]); +},2220,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -326989,7 +302673,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e buttonStyle: buttonLayoutStyle }, props)); } -},2338,[3,33,16,18,2009,847,2165,1999,2339,1918,574,179,803,2337,2340,438,2341]); +},2221,[3,33,16,18,1898,848,2048,1888,2222,1807,574,179,803,2220,2223,438,2224]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -327073,7 +302757,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e Button: Button, Text: Text }; -},2339,[3,4,16,18,800,438,179,803]); +},2222,[3,4,16,18,800,438,179,803]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -327085,7 +302769,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "text_banner", "type": "png" }); -},2340,[1337]); +},2223,[1244]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -327100,7 +302784,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2341,[2342]); +},2224,[2225]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -327218,7 +302902,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e buttonStyle: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.array, _propTypes.default.object]), backgroundColor: _propTypes.default.string }; -},2342,[3,6,7,11,13,14,16,568,436,1918,2339,550,179,803]); +},2225,[3,6,7,11,13,14,16,568,436,1807,2222,550,179,803]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -327298,7 +302982,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[10]).NavigationBaseScreen); -},2343,[3,6,7,11,13,14,16,2204,179,2042,2331]); +},2226,[3,6,7,11,13,14,16,2087,179,1927,2214]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -327453,7 +303137,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[20]).NavigationBaseScreen); -},2344,[3,270,6,7,11,13,14,16,18,851,407,406,1974,438,2090,179,2330,803,2345,864,2331]); +},2227,[3,270,6,7,11,13,14,16,18,852,407,406,1863,438,1974,179,2213,803,2228,864,2214]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -327692,9 +303376,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "_reload", value: function _reload() { - if (this.webview) { - this.webview.reload(); - } + var _this$webview; + + (_this$webview = this.webview) == null ? undefined : _this$webview.reload(); } }, { key: "_close", @@ -327706,9 +303390,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "postMessage", value: function postMessage(js) { - if (this.webview) { - this.webview.injectJavaScript("try{ window.ReactNativeWebView.postMessage(JSON.stringify(" + js + ")); }catch(e){console.log(e.message)}"); - } + var _this$webview2; + + (_this$webview2 = this.webview) == null ? undefined : _this$webview2.injectJavaScript("try{ window.ReactNativeWebView.postMessage(JSON.stringify(" + js + ")); }catch(e){console.log(e.message)}"); } }, { key: "_onMessage", @@ -328089,20 +303773,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "_onLoadEnd", value: function _onLoadEnd(nativeEvent) { - if (nativeEvent) { - if (typeof nativeEvent.code === "undefined") { - this.retries = 0; - } + if (!nativeEvent) { + return; + } - var currentTab = _optionspageUtils.default.getTabByURL(this.currentUrl); + if (typeof nativeEvent.code === "undefined") { + this.retries = 0; + } - this._retrieveTabTitle(currentTab); + var currentTab = _optionspageUtils.default.getTabByURL(this.currentUrl); - var onTabLoaded = this.props.onTabLoaded; + this._retrieveTabTitle(currentTab); - if (typeof onTabLoaded === "function") { - onTabLoaded(currentTab); - } + var onTabLoaded = this.props.onTabLoaded; + + if (typeof onTabLoaded === "function") { + onTabLoaded(currentTab); } } }, { @@ -328298,7 +303984,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e shortcutEnabled: true, forceFullscreen: false }); -},2345,[3,4,270,6,7,11,85,13,14,568,16,18,1974,2184,436,1976,613,864,1999,2346,2349,839,550,438,2010,2019,798,2074,2186,2356,179,1839,803,2042,2034,2050]); +},2228,[3,4,270,6,7,11,85,13,14,568,16,18,1863,2067,436,1865,613,864,1888,2229,2232,840,550,438,1899,1929,798,1958,2069,2239,179,1728,803,1927,1919,1939]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -328348,7 +304034,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e source: _$$_REQUIRE(_dependencyMap[10]), library: undefined }; -},2346,[3,6,7,11,13,14,16,568,2347,179,1869]); +},2229,[3,6,7,11,13,14,16,568,2230,179,1758]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -328518,7 +304204,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e library: undefined, cssProps: {} }; -},2347,[3,6,7,11,13,14,16,568,18,2348,2090,550,179,803,1]); +},2230,[3,6,7,11,13,14,16,568,18,2231,1974,550,179,803,1]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -328553,7 +304239,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e alignSelf: "center" } }); -},2348,[18,863]); +},2231,[18,811]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -329121,7 +304807,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e SettingDebug.defaultProps = { hidden: false }; -},2349,[3,270,6,7,11,13,14,568,16,18,2286,2269,2009,2184,865,552,1999,813,800,2350,2351,1992,438,2334,798,2075,803,179,2352,2048,2353,2354]); +},2232,[3,270,6,7,11,13,14,568,16,18,2169,2152,1898,2067,865,552,1888,814,800,2233,2234,1881,438,2217,798,1959,803,179,2235,1937,2236,2237]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -329241,7 +304927,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = FontTextInput; -},2350,[3,22,4,568,16,18,801,179,438]); +},2233,[3,22,4,568,16,18,801,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -329352,7 +305038,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = SettingHeader; -},2351,[3,16,568,18,800,1918,803,179,2352]); +},2234,[3,16,568,18,800,1807,803,179,2235]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -329470,7 +305156,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e justifyContent: "center" } }); -},2352,[18,438]); +},2235,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -329489,15 +305175,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); var _reactNative = _$$_REQUIRE(_dependencyMap[9]); - var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } @@ -329537,19 +305223,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e id: "log" }); - if (result) { - _$$_REQUIRE(_dependencyMap[15]).Toast.show(global.strings("msg_sent", { - result: result - }), { - position: "top" - }); - } else { - _$$_REQUIRE(_dependencyMap[15]).Toast.show(global.strings("msg_failed", { - result: result - }), { - position: "top" - }); - } + var message = result ? global.strings("msg_sent") : global.strings("msg_failed"); + + _$$_REQUIRE(_dependencyMap[15]).Toast.show(message, { + position: "top" + }); }), children: (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_fontText.default, { style: { @@ -329570,7 +305248,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onSending: _propTypes.default.func, style: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.object, _propTypes.default.array]) }; -},2353,[3,270,6,7,11,13,14,16,568,18,800,407,179,1992,438,2019]); +},2236,[3,270,6,7,11,13,14,568,16,18,407,800,179,1881,438,1929]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -329740,7 +305418,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = Setting; -},2354,[3,4,16,568,18,800,2090,803,179,2355,2339]); +},2237,[3,4,16,568,18,800,1974,803,179,2238,2222]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -329823,7 +305501,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e justifyContent: "center" } }); -},2355,[18,438]); +},2238,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -329870,7 +305548,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e justifyContent: "center" } }); -},2356,[18,438]); +},2239,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -329910,7 +305588,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e rest = (0, _objectWithoutProperties2.default)(props, _excluded); return (0, _$$_REQUIRE(_dependencyMap[3]).jsx)(_$$_REQUIRE(_dependencyMap[4]).NavigationContainer, Object.assign({ ref: function ref(_ref3) { - if (typeof onNavigationRef === "function") { + if (_ref3 && typeof onNavigationRef === "function") { onNavigationRef(_ref3); } } @@ -329918,7 +305596,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e children: children })); } -},2357,[3,4,16,179,1166]); +},2240,[3,4,16,179,1073]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -329933,7 +305611,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2358,[2359]); +},2241,[2242]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -330147,6 +305825,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _this2._showEpaperModeSelection(); + (0, _$$_REQUIRE(_dependencyMap[40]).addDebugOperation)("NewsmemoryScreen", "newspaper loaded"); + _this2.setState({ loaded: true }); @@ -330982,7 +306662,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cssTextClasses: ["newsmemory-download-circle-text"] }); } else if (loaded) { - (0, _$$_REQUIRE(_dependencyMap[40]).addDebugOperation)("NewsmemoryScreen", "newspaper loaded"); var navigation = this.props.navigation; component = (0, _$$_REQUIRE(_dependencyMap[48]).jsx)(_reactNative.View, { ref: this.onNewsmemoryRef, @@ -331028,7 +306707,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: _propTypes.default.object, tab: _propTypes.default.string }; -},2359,[3,33,270,6,7,11,85,13,14,1688,568,16,18,407,2269,2009,1974,843,2360,2361,2291,436,2317,2008,2260,613,865,2318,842,1999,2374,2375,2377,2381,2382,2385,2386,550,2074,2187,801,438,2334,864,798,1166,2019,2043,179,803,1995,2387,2483,2331]); +},2242,[3,33,270,6,7,11,85,13,14,1592,568,16,18,407,2152,1898,1863,844,2243,2244,2174,436,2200,1897,2143,613,865,2201,843,1888,2257,2258,2260,2264,2265,2268,2269,550,1958,2070,801,438,2217,864,798,1073,1929,1932,179,803,1884,2270,2366,2214]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -331751,7 +307430,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); var _default = exports.default = NewsmemoryManager; -},2360,[3,270,6,7,1974,436,2008,613,864,842,843,2184,2361,2371,438,550,2075,2373,798,572,849]); +},2243,[3,270,6,7,1863,436,1897,613,864,843,844,2067,2244,2254,438,550,1959,2256,798,572,850]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -334482,7 +310161,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2361,[3,4,22,270,6,7,407,1974,436,1976,613,864,841,552,651,573,650,842,654,843,2362,2363,406,2365,2366,2367,2368,2369,2370,2184,2371,2291,550,2372,438,574,2304,572,2075,2074,2373,798,1961]); +},2244,[3,4,22,270,6,7,407,1863,436,1865,613,864,842,552,651,573,650,843,654,844,2245,2246,406,2248,2249,2250,2251,2252,2253,2067,2254,2174,550,2255,438,574,2187,572,1959,1958,2256,798,1850]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -335062,7 +310741,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2362,[3,270,6,7,844,650,2363,573,651,2364,654,2365]); +},2245,[3,270,6,7,845,650,2246,573,651,2247,654,2248]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -335301,7 +310980,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2363,[3,33,6,7,613,648,649,650,651,573,655,654,652,653,438]); +},2246,[3,33,6,7,613,648,649,650,651,573,655,654,652,653,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -335390,7 +311069,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2364,[3,6,7,648,649,650,651,573,655,654,652,653,438]); +},2247,[3,6,7,648,649,650,651,573,655,654,652,653,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -336799,7 +312478,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2365,[3,22,270,6,7,1982,1974,436,434,572,613,2274,552,651,573,842,654,843,2363,406,550,438,2282,574]); +},2248,[3,22,270,6,7,1871,1863,436,434,572,613,2157,552,651,573,843,654,844,2246,406,550,438,2165,574]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -336856,7 +312535,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2366,[3,6,7]); +},2249,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -336912,7 +312591,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_DownloadOperation2.default); -},2367,[3,6,7,11,13,14,2366,654]); +},2250,[3,6,7,11,13,14,2249,654]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -336950,7 +312629,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _inherits2.default)(SingleHRZipDownloadOperation, _DownloadOperation); return (0, _createClass2.default)(SingleHRZipDownloadOperation); }(_DownloadOperation2.default); -},2368,[3,7,6,11,13,14,2366,654]); +},2251,[3,7,6,11,13,14,2249,654]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -337002,7 +312681,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_DownloadOperation2.default); -},2369,[3,6,7,11,13,14,2366,654,573]); +},2252,[3,6,7,11,13,14,2249,654,573]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -337040,7 +312719,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e (0, _inherits2.default)(SingleZipDownloadOperation, _DownloadOperation); return (0, _createClass2.default)(SingleZipDownloadOperation); }(_DownloadOperation2.default); -},2370,[3,7,6,11,13,14,2366,654]); +},2253,[3,7,6,11,13,14,2249,654]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -337607,7 +313286,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function purgeLog(message) {} }]); }(); -},2371,[3,270,6,7,552,843,844,842,2362,654,438]); +},2254,[3,270,6,7,552,844,845,843,2245,654,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -337934,7 +313613,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2372,[3,270,6,7,613,1975]); +},2255,[3,270,6,7,613,1864]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -338084,7 +313763,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return _ref5.apply(this, arguments); }; }(); -},2373,[3,270,843,2184,2291,436,550,798]); +},2256,[3,270,844,2067,2174,436,550,798]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -338133,9 +313812,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _optionspageUtils = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[21])); - var _NewspaperIssue = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[22])); + var _webUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[22])); - var _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[23])); + var _NewspaperIssue = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[23])); + + var _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[24])); 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); } @@ -338165,7 +313846,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var domain = segments.domain; var closeType = this.state.closeType; - var isTecnaviaDomain = _$$_REQUIRE(_dependencyMap[24]).StringUtils.isTecnaviaDomain(domain); + var isTecnaviaDomain = _$$_REQUIRE(_dependencyMap[25]).StringUtils.isTecnaviaDomain(domain); if (!isTecnaviaDomain) { this.setState({ @@ -338177,7 +313858,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _global$getRSSActiveP = global.getRSSActivePSetup(), rssIsEnabled = _global$getRSSActiveP.rssIsEnabled; - var hideCloseButton = !rssIsEnabled && !isNewspaperLoaded() && !_$$_REQUIRE(_dependencyMap[25]).PaperSetupManager.isGenericAppConfigured(); + var hideCloseButton = !rssIsEnabled && !isNewspaperLoaded() && !_$$_REQUIRE(_dependencyMap[26]).PaperSetupManager.isGenericAppConfigured(); if (hideCloseButton) { this.setState({ @@ -338200,7 +313881,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e forceFullscreen = _ref.forceFullscreen, hidden = _ref.hidden; - var isOnline = _$$_REQUIRE(_dependencyMap[24]).NetworkUtils.isOnline(); + var isOnline = _$$_REQUIRE(_dependencyMap[25]).NetworkUtils.isOnline(); if (isOnline && tab === _optionspageUtils.tabs.specialsections) { var newsmemoryManager = this.props.newsmemoryManager; @@ -338255,7 +313936,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _global$getActivePSet = global.getActivePSetup(), external = _global$getActivePSet.external; - if (external && !_$$_REQUIRE(_dependencyMap[25]).PaperSetupManager.isGenericAppConfigured()) { + if (external && !_$$_REQUIRE(_dependencyMap[26]).PaperSetupManager.isGenericAppConfigured()) { var _global$getMainPSetup = global.getMainPSetup(), pSetup = _global$getMainPSetup.pSetup; @@ -338275,7 +313956,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var currentTab = _optionspageUtils.default.getTabByURL(this.currentUrl); if (!isNewspaperLoaded() || currentTab && currentTab === _optionspageUtils.tabs.home) { - _$$_REQUIRE(_dependencyMap[26]).EventRegister.emit(_events.default.NEWSMEMORY_OPEN_OFFLINE_EDITION_MENU); + _$$_REQUIRE(_dependencyMap[27]).EventRegister.emit(_events.default.NEWSMEMORY_OPEN_OFFLINE_EDITION_MENU); } } } @@ -338317,7 +313998,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this._resetToHome(); } else if (rssIsEnabled) { this.goToRssNavigator(); - } else if (_$$_REQUIRE(_dependencyMap[25]).PaperSetupManager.isGenericAppConfigured()) { + } else if (_$$_REQUIRE(_dependencyMap[26]).PaperSetupManager.isGenericAppConfigured()) { _NavigationService.default.main.navigate("PublicationsPageScreen"); } else if (typeof handleBackButton === "function") { handleBackButton(); @@ -338338,6 +314019,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } + if (this.currentUrl && _$$_REQUIRE(_dependencyMap[25]).PlatformUtils.isAndroid()) { + var _StringUtils$segmentU = _$$_REQUIRE(_dependencyMap[25]).StringUtils.segmentUrl(this.currentUrl), + domain = _StringUtils$segmentU.domain; + + if (domain && !_$$_REQUIRE(_dependencyMap[25]).StringUtils.isTecnaviaDomain(domain)) { + this._execJavaScript(_webUtils.default.getTargetBlankPatch()); + } + } + (0, _get2.default)((0, _getPrototypeOf2.default)(Optionspage.prototype), "_onLoadEnd", this).call(this, nativeEvent); } }, { @@ -338370,12 +314060,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e yield Analytics.updateAnalytics(); } - _$$_REQUIRE(_dependencyMap[26]).EventRegister.emit(_events.default.NEWSMEMORY_DOWNLOAD_EDITION, { + _$$_REQUIRE(_dependencyMap[27]).EventRegister.emit(_events.default.NEWSMEMORY_DOWNLOAD_EDITION, { issue: issue, edition: edition }); } else { - _$$_REQUIRE(_dependencyMap[27]).Toast.show(global.strings("err_download_psetup")); + _$$_REQUIRE(_dependencyMap[28]).Toast.show(global.strings("err_download_psetup")); } }); @@ -338405,16 +314095,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e newsmemoryConfig.setRNUseDemo(getParams.useRnDemo); } else { - _$$_REQUIRE(_dependencyMap[27]).Toast.show(global.strings("err_module_unavailable", { + _$$_REQUIRE(_dependencyMap[28]).Toast.show(global.strings("err_module_unavailable", { module: "Classic eEdition" })); } } else if (domain.includes(_optionspageUtils.locals.CLEAR_STORAGE)) { try { - var reloadLatestEdition = yield (0, _$$_REQUIRE(_dependencyMap[28]).optionspageDeleteProcess)(); + var reloadLatestEdition = yield (0, _$$_REQUIRE(_dependencyMap[29]).optionspageDeleteProcess)(); if (reloadLatestEdition) { - _$$_REQUIRE(_dependencyMap[26]).EventRegister.emit(_events.default.NEWSMEMORY_DOWNLOAD_LATEST_EDITION); + _$$_REQUIRE(_dependencyMap[27]).EventRegister.emit(_events.default.NEWSMEMORY_DOWNLOAD_LATEST_EDITION); this._close(true); } else { @@ -338422,7 +314112,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } catch (e) {} } else if (domain.includes(_optionspageUtils.locals.RESTORE_DEFAULT_SETTINGS)) { - yield (0, _$$_REQUIRE(_dependencyMap[28]).askTo)(global.strings("msg_restore_default_settings"), (0, _asyncToGenerator2.default)(function* () { + yield (0, _$$_REQUIRE(_dependencyMap[29]).askTo)(global.strings("msg_restore_default_settings"), (0, _asyncToGenerator2.default)(function* () { yield global.getNewsmemoryConfig().reset(); })); this.reload(); @@ -338475,7 +314165,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e period = getParams.period, isRecurring = getParams.isRecurring; yield _IAPHelper.default.setServerCallback(this.sendIAPTransactionResult); - var model = new (_$$_REQUIRE(_dependencyMap[29]).IAPTecnaviaModel)(); + var model = new (_$$_REQUIRE(_dependencyMap[30]).IAPTecnaviaModel)(); model.setProductId(productId); model.setInvoiceId(invoiceId); model.setPSetup(pSetup); @@ -338483,12 +314173,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e model.setEdition(edition); model.setEditionId(editionId); - if (period && (_$$_REQUIRE(_dependencyMap[24]).JSUtils.isNull(isRecurring) || isRecurring === "1")) { + if (period && (_$$_REQUIRE(_dependencyMap[25]).JSUtils.isNull(isRecurring) || isRecurring === "1")) { model.setRecurringSubscriptionPeriod(period); } if (period) { - model.setType(_$$_REQUIRE(_dependencyMap[29]).IAPTecnaviaType.SUBSCRIPTION); + model.setType(_$$_REQUIRE(_dependencyMap[30]).IAPTecnaviaType.SUBSCRIPTION); } _IAPHelper.default.requestIAP(model); @@ -338534,7 +314224,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _NavigationService.default.main.navigate("WebScreen", { url: url, onClose: function onClose() { - _$$_REQUIRE(_dependencyMap[24]).PlatformUtils.colorBars(); + _$$_REQUIRE(_dependencyMap[25]).PlatformUtils.colorBars(); newsmemoryConfig.setAccessibilityMode(false); @@ -338569,7 +314259,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } else if (domain.includes(_optionspageUtils.locals.LOGOUT)) { yield _LoginManager.default.logout(); - _$$_REQUIRE(_dependencyMap[26]).EventRegister.emit(_events.default.NEWSMEMORY_RELOAD_EDITION); + _$$_REQUIRE(_dependencyMap[27]).EventRegister.emit(_events.default.NEWSMEMORY_RELOAD_EDITION); } else { (0, _get2.default)((0, _getPrototypeOf2.default)(Optionspage.prototype), "_handleLocals", this).call(this, { domain: domain, @@ -338670,21 +314360,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } } }]); - }(_$$_REQUIRE(_dependencyMap[30]).BaseOptionspage); + }(_$$_REQUIRE(_dependencyMap[31]).BaseOptionspage); - Optionspage.propTypes = Object.assign({}, _$$_REQUIRE(_dependencyMap[30]).BaseOptionspage.propTypes, { + Optionspage.propTypes = Object.assign({}, _$$_REQUIRE(_dependencyMap[31]).BaseOptionspage.propTypes, { handleBackButton: _propTypes.default.func, isNewspaperLoaded: _propTypes.default.func, newsmemoryManager: _propTypes.default.instanceOf(_NewsmemoryManager.default) }); var _default = exports.default = function _default(props) { - var navigation = (0, _$$_REQUIRE(_dependencyMap[31]).useNavigation)(); - return (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(Optionspage, Object.assign({}, props, { + var navigation = (0, _$$_REQUIRE(_dependencyMap[32]).useNavigation)(); + return (0, _$$_REQUIRE(_dependencyMap[33]).jsx)(Optionspage, Object.assign({}, props, { navigation: navigation })); }; -},2374,[3,270,6,7,11,85,13,14,568,16,2269,1974,843,2184,2360,2361,436,2008,1976,2165,865,864,842,1999,438,1961,550,2019,2373,1979,2345,1166,179]); +},2257,[3,270,6,7,11,85,13,14,568,16,2152,1863,844,2067,2243,2244,436,1897,1865,2048,865,864,852,843,1888,438,1850,550,1929,2256,1868,2228,1073,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -338835,7 +314525,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cssClasses: [], cssTextClasses: [] }; -},2375,[3,4,6,7,11,13,14,16,18,568,2376,550,179,1995]); +},2258,[3,4,6,7,11,13,14,16,18,568,2259,550,179,1884]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -338866,7 +314556,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e margin: 10 } }); -},2376,[18]); +},2259,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -339499,7 +315189,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2377,[3,4,270,6,7,11,85,13,14,568,16,18,2269,1974,2184,2360,436,2008,434,2165,865,2018,1999,839,2378,1961,864,2379,2380,2186,853,550,2019,2010,438,1837,179,2048,2038,2034,2338,2050,1166]); +},2260,[3,4,270,6,7,11,85,13,14,568,16,18,2152,1863,2067,2243,436,1897,434,2048,865,1928,1888,840,2261,1850,864,2262,2263,2069,854,550,1929,1899,438,1726,179,1937,1923,1919,2221,1939,1073]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -339612,7 +315302,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); var _default = exports.default = NativeOptionsPageUtils; -},2378,[3,270,6,7,843,2360,2361,864,842,1961,438]); +},2261,[3,270,6,7,844,2243,2244,864,843,1850,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -339803,7 +315493,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value = data.value; global.getNewsmemoryConfig().setValue(key, value); } -},2379,[3,270,2184,436,1999,2074,550,438,798]); +},2262,[3,270,2067,436,1888,1958,550,438,798]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -339974,7 +315664,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); return _completeTransaction.apply(this, arguments); } -},2380,[3,270,1976,865,864,1979,438]); +},2263,[3,270,1865,865,864,1868,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -340540,7 +316230,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2381,[3,4,270,6,7,11,85,13,14,568,16,18,2269,2360,436,2008,2165,865,2018,1999,2378,1961,864,2379,2184,1837,2380,2186,550,2019,2010,438,179,2042,2050,1166]); +},2264,[3,4,270,6,7,11,85,13,14,568,16,18,2152,2243,436,1897,2048,865,1928,1888,2261,1850,864,2262,2067,1726,2263,2069,550,1929,1899,438,179,1927,1939,1073]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -340888,7 +316578,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e OptionPageAccessibility.defaultProps = { shortcutPriority: 0 }; -},2382,[3,270,6,7,11,13,14,568,16,18,2269,406,436,2008,1838,2047,800,2383,550,438,1837,2384,179,2306,2312]); +},2265,[3,270,6,7,11,13,14,568,16,18,2152,406,436,1897,1727,1936,800,2266,550,438,1726,2267,179,2189,2195]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -340930,7 +316620,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e issue: {}, issueText: {} }); -},2383,[18,438]); +},2266,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -340964,7 +316654,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.pathEdi = obj.pathEdi; this.editionIndex = obj.editionIndex; }); -},2384,[3,7,6]); +},2267,[3,7,6]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -340999,7 +316689,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _newsmemoryUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); - var _closeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); + var _webUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); + + var _closeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); 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); } @@ -341031,13 +316723,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "componentDidMount", value: function componentDidMount() { if (this.isModal) { - this.onOpenId = _$$_REQUIRE(_dependencyMap[16]).EventRegister.on(_events.default.NEWSMEMORY_OPEN_SPECIAL_SECTION, this.onOpen); + this.onOpenId = _$$_REQUIRE(_dependencyMap[17]).EventRegister.on(_events.default.NEWSMEMORY_OPEN_SPECIAL_SECTION, this.onOpen); } } }, { key: "componentWillUnmount", value: function componentWillUnmount() { - _$$_REQUIRE(_dependencyMap[16]).EventRegister.rm(this.onOpenId); + _$$_REQUIRE(_dependencyMap[17]).EventRegister.rm(this.onOpenId); } }, { key: "_onOpen", @@ -341064,7 +316756,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var newsmemoryConfig = global.getNewsmemoryConfig(); switch (domain) { - case _$$_REQUIRE(_dependencyMap[17]).locals.SET_KEY: + case _$$_REQUIRE(_dependencyMap[18]).locals.SET_KEY: var key = getParams.key, value = getParams.value, callback = getParams.callback; @@ -341076,12 +316768,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e break; - case _$$_REQUIRE(_dependencyMap[17]).locals.INITPAGE_SET_NEWSPAPER_AND_READ: + case _$$_REQUIRE(_dependencyMap[18]).locals.INITPAGE_SET_NEWSPAPER_AND_READ: if (this.isModal) { this.onClose(); } - _$$_REQUIRE(_dependencyMap[16]).EventRegister.emit(_events.default.NEWSMEMORY_ON_LOAD_SPECIAL, getParams); + _$$_REQUIRE(_dependencyMap[17]).EventRegister.emit(_events.default.NEWSMEMORY_ON_LOAD_SPECIAL, getParams); break; } @@ -341105,23 +316797,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e showSections = _this$props.showSections, newspaperManager = _this$props.newspaperManager; - if (!_$$_REQUIRE(_dependencyMap[18]).NetworkUtils.isOnline() || !newspaperManager) { + if (!_$$_REQUIRE(_dependencyMap[19]).NetworkUtils.isOnline() || !newspaperManager) { return null; } - var injectedJavaScript = ""; + var injectedJavaScript = _webUtils.default.getThemeClassesScript(); - var activeTheme = _$$_REQUIRE(_dependencyMap[19]).Css.getThemeInUse(); + var activeTheme = _$$_REQUIRE(_dependencyMap[20]).Css.getThemeInUse(); - if (activeTheme) { - injectedJavaScript += "document.body.setAttribute('class', '" + activeTheme + "');"; - - if (_$$_REQUIRE(_dependencyMap[19]).Css.isDarkTheme()) { - var css = "body." + activeTheme + ", ." + activeTheme + " .mainSpecialDiv, ." + activeTheme + " span.titlespan { background-color: " + _$$_REQUIRE(_dependencyMap[19]).Css.getDefaultBackgroundColor() + "; }"; - css += "body." + activeTheme + " { color: " + _$$_REQUIRE(_dependencyMap[19]).Css.getDefaultForegroundColor() + "; }"; - css += "." + activeTheme + " .divdatespan { opacity: 1; }"; - injectedJavaScript += "\n try {\n var style = document.createElement('style');\n style.type = 'text/css';\n style.appendChild(document.createTextNode('" + css + "'));\n document.head.appendChild(style);\n } catch (e) {\n console.error('Error injecting css', e);\n }"; - } + if (activeTheme && _$$_REQUIRE(_dependencyMap[20]).Css.isDarkTheme()) { + var css = "body." + activeTheme + ", ." + activeTheme + " .mainSpecialDiv, ." + activeTheme + " span.titlespan { background-color: " + _$$_REQUIRE(_dependencyMap[20]).Css.getDefaultBackgroundColor() + "; }"; + css += "body." + activeTheme + " { color: " + _$$_REQUIRE(_dependencyMap[20]).Css.getDefaultForegroundColor() + "; }"; + css += "." + activeTheme + " .divdatespan { opacity: 1; }"; + injectedJavaScript += "\n try {\n var style = document.createElement('style');\n style.type = 'text/css';\n style.appendChild(document.createTextNode('" + css + "'));\n document.head.appendChild(style);\n } catch (e) {\n console.error('Error injecting css', e);\n }"; } if (_newsmemoryUtils.default.isXPaperActive()) { @@ -341141,13 +316829,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onRedirect: function onRedirect(request) { return true; }, - startInLoadingState: _$$_REQUIRE(_dependencyMap[20]).LoadingStatePosition.center, + startInLoadingState: _$$_REQUIRE(_dependencyMap[21]).LoadingStatePosition.center, innerRef: this.onRef, injectedJavaScript: injectedJavaScript }; if (!this.isModal) { - return (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_$$_REQUIRE(_dependencyMap[22]).AutoHeightWebView, Object.assign({}, webViewProps, { + return (0, _$$_REQUIRE(_dependencyMap[22]).jsx)(_$$_REQUIRE(_dependencyMap[23]).AutoHeightWebView, Object.assign({}, webViewProps, { defaultHeight: 50 })); } @@ -341164,17 +316852,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e optionspageConfig = _global$getActivePSet2.optionspageConfig; if (optionspageConfig.isModal()) { - style = [_$$_REQUIRE(_dependencyMap[23]).styles.modal, _$$_REQUIRE(_dependencyMap[23]).styles.main, optionspageConfig.getCoordinates()]; + style = [_$$_REQUIRE(_dependencyMap[24]).styles.modal, _$$_REQUIRE(_dependencyMap[24]).styles.main, optionspageConfig.getCoordinates()]; } else { - style = [_$$_REQUIRE(_dependencyMap[23]).styles.fullscreen, _$$_REQUIRE(_dependencyMap[23]).styles.main]; + style = [_$$_REQUIRE(_dependencyMap[24]).styles.fullscreen, _$$_REQUIRE(_dependencyMap[24]).styles.main]; } - var optionspage = (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_$$_REQUIRE(_dependencyMap[19]).Css, { + var optionspage = (0, _$$_REQUIRE(_dependencyMap[22]).jsx)(_$$_REQUIRE(_dependencyMap[20]).Css, { classes: ["optionspage", "optionspage-specialsections"], - children: (0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_reactNative.View, { + children: (0, _$$_REQUIRE(_dependencyMap[22]).jsxs)(_reactNative.View, { style: style, - children: [(0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_$$_REQUIRE(_dependencyMap[24]).BaseWebView, Object.assign({}, webViewProps)), (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_closeComponent.default, { - parentStyle: _$$_REQUIRE(_dependencyMap[23]).styles.closeIcon, + children: [(0, _$$_REQUIRE(_dependencyMap[22]).jsx)(_$$_REQUIRE(_dependencyMap[25]).BaseWebView, Object.assign({}, webViewProps)), (0, _$$_REQUIRE(_dependencyMap[22]).jsx)(_closeComponent.default, { + parentStyle: _$$_REQUIRE(_dependencyMap[24]).styles.closeIcon, cssProps: { classes: ["newsmemory-icon", "newsmemory-close-icon", "optionspage-icon", "optionspage-close-icon", "optionspage-specialsections-close-icon"] }, @@ -341182,8 +316870,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })] }) }); - return optionspageConfig.isModal() ? (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_reactNative.View, { - style: [_$$_REQUIRE(_dependencyMap[23]).styles.background], + return optionspageConfig.isModal() ? (0, _$$_REQUIRE(_dependencyMap[22]).jsx)(_reactNative.View, { + style: [_$$_REQUIRE(_dependencyMap[24]).styles.background], children: optionspage }) : optionspage; } @@ -341203,7 +316891,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onOpen: function onOpen() {}, onClose: function onClose() {} }; -},2385,[3,270,6,7,11,13,14,568,16,18,875,1974,2361,436,613,2346,550,864,438,803,2034,179,2038,2356,2042]); +},2268,[3,270,6,7,11,13,14,568,16,18,875,1863,2244,436,613,852,2229,550,864,438,803,1919,179,1923,2239,1927]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -341230,7 +316918,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2386,[18]); +},2269,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -343656,7 +319344,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NewsmemoryLayoutManager.defaultProps = Object.assign({}, _$$_REQUIRE(_dependencyMap[50]).Shortcut.defaultProps, { shortcutEnabled: true }); -},2387,[3,270,240,6,7,11,85,13,14,568,16,18,405,1974,2361,436,434,613,841,651,573,650,842,654,2388,2390,2424,2391,2431,2465,2385,2471,2478,2479,2480,438,550,2010,1837,2074,2304,864,1961,849,2014,179,803,863,2481,1995,2050]); +},2270,[3,270,240,6,7,11,85,13,14,568,16,18,405,1863,2244,436,434,613,842,651,573,650,843,654,2271,2273,2307,2274,2314,2348,2268,2354,2361,2362,2363,438,550,1899,1726,1958,2187,864,1850,850,1903,179,803,811,2364,1884,1939]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -343719,7 +319407,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2388,[3,6,7,16,800,2389,798,438,179,2306]); +},2271,[3,6,7,16,800,2272,798,438,179,2189]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -343755,7 +319443,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _$$_REQUIRE(_dependencyMap[1]).colors.black } }); -},2389,[18,438]); +},2272,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -344108,7 +319796,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ArticleModeManager.defaultProps = Object.assign({}, _$$_REQUIRE(_dependencyMap[24]).Shortcut.defaultProps, { indexMode: false }); -},2390,[3,4,6,7,11,13,14,16,568,650,842,2312,2391,436,654,841,613,1999,438,550,864,803,179,2418,2050]); +},2273,[3,4,6,7,11,13,14,16,568,650,843,2195,2274,436,654,842,613,1888,438,550,864,803,179,2301,1939]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -344990,7 +320678,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NewsmemoryIndexLayoutManager.defaultProps = Object.assign({}, _$$_REQUIRE(_dependencyMap[38]).PureShortcut.defaultProps, { indexLevel: 1 }); -},2391,[3,4,270,6,7,11,13,14,16,568,2392,2396,654,651,2137,2347,434,2346,2406,2408,436,650,2410,2411,2412,1838,1999,613,2012,2414,842,2010,438,2074,1837,550,179,803,2050,1968]); +},2274,[3,4,270,6,7,11,13,14,16,568,2275,2279,654,651,2020,2230,434,2229,2289,2291,436,650,2293,2294,2295,1727,1888,613,1901,2297,843,1899,438,1958,1726,550,179,803,1939,1857]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -345181,7 +320869,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NewsmemoryIndex.propTypes = { title: _propTypes.default.string }; -},2392,[3,22,6,7,11,13,14,16,568,434,841,2393,1837,2394,613,179]); +},2275,[3,22,6,7,11,13,14,16,568,434,842,2276,1726,2277,613,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -345598,7 +321286,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e enableSeparator: true, fullscreen: false }); -},2393,[3,22,6,7,11,13,14,16,18,568,2230,654,2307,2047,179,863,2312,438,2394,803,2048,613,2050]); +},2276,[3,22,6,7,11,13,14,16,18,568,2113,654,2190,1936,179,811,2195,438,2277,803,1937,613,1939]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -345880,7 +321568,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })) }); }; -},2394,[3,16,568,18,800,2307,654,651,841,613,434,2395,1838,438,179,803,2306]); +},2277,[3,16,568,18,800,2190,654,651,842,613,434,2278,1727,438,179,803,2189]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -346099,7 +321787,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e style: _propTypes.default.any, page: _propTypes.default.instanceOf(_Page.default) }; -},2395,[3,4,270,6,7,11,13,14,16,568,18,574,654,573,552,438,179,1995]); +},2278,[3,4,270,6,7,11,13,14,16,568,18,574,654,573,552,438,179,1884]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -346416,7 +322104,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NewsmemorySecondIndex.defaultProps = Object.assign({}, _indexBaseComponent.default.defaultProps, { secondLevelIndex: 0 }); -},2396,[3,22,6,7,11,85,13,14,16,568,2397,2393,654,613,2394,1837,179]); +},2279,[3,22,6,7,11,85,13,14,16,568,2280,2276,654,613,2277,1726,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -346433,21 +322121,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); var _reactNative = _$$_REQUIRE(_dependencyMap[8]); var _reactNativePagerView = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - var _viewPagerIndicators = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - var _viewPagerChild = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + var _einkNavigationsButtons = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + var _viewPagerChild = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - var _einkNavigationsButtons = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); + var _viewPagerIndicators = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } @@ -346479,37 +322167,42 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return (0, _createClass2.default)(ViewPager, [{ key: "UNSAFE_componentWillReceiveProps", value: function UNSAFE_componentWillReceiveProps(nextProps) { + var startPage = nextProps.startPage; var index = this.state.index; - if (index !== nextProps.startPage && this.getRef()) { - this.scrollTo(nextProps.startPage); + if (index !== startPage) { + this.scrollTo(startPage); } } - }, { - key: "getRef", - value: function getRef() { - return this.viewPagerRef && this.viewPagerRef.current ? this.viewPagerRef.current : undefined; - } }, { key: "getGestureHandlerRef", value: function getGestureHandlerRef() { return this.viewPagerRef; } + }, { + key: "getRef", + value: function getRef() { + var _this$getGestureHandl; + + return (_this$getGestureHandl = this.getGestureHandlerRef()) == null ? undefined : _this$getGestureHandl.current; + } }, { key: "scrollTo", value: function scrollTo(newPage) { var animated = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; var ref = this.getRef(); - if (ref) { - var data = this.props.data; + if (!ref) { + return; + } - if (newPage >= 0 && newPage < data.length) { - if (animated && !_$$_REQUIRE(_dependencyMap[15]).PlatformUtils.isEInk()) { - ref.setPage(newPage); - } else { - ref.setPageWithoutAnimation(newPage); - } + var data = this.props.data; + + if (newPage >= 0 && newPage < data.length) { + if (animated && !_$$_REQUIRE(_dependencyMap[15]).PlatformUtils.isEInk()) { + ref.setPage(newPage); + } else { + ref.setPageWithoutAnimation(newPage); } } } @@ -346528,9 +322221,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "toggleState", value: function toggleState(state) { - if (this.getRef()) { - this.getRef().setScrollEnabled(_$$_REQUIRE(_dependencyMap[15]).PlatformUtils.isEInk() ? false : state); - } + var _this$getRef; + + (_this$getRef = this.getRef()) == null ? undefined : _this$getRef.setScrollEnabled(_$$_REQUIRE(_dependencyMap[15]).PlatformUtils.isEInk() ? false : state); } }, { key: "_toggleViewPagerState", @@ -346545,24 +322238,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "_onPageSelected", value: function _onPageSelected(_ref2) { var nativeEvent = _ref2.nativeEvent; + var position = nativeEvent.position; var _this$props = this.props, onPageChange = _this$props.onPageChange, data = _this$props.data; if (typeof onPageChange === "function") { - onPageChange(nativeEvent.position); + onPageChange(position); } var index = this.state.index; - if (nativeEvent.position !== index) { - if (this.einkRef && this.einkRef.current) { - this.einkRef.current.toggleLeft(nativeEvent.position > 0); - this.einkRef.current.toggleRight(nativeEvent.position < data.length - 1); + if (position !== index) { + var _this$einkRef; + + if ((_this$einkRef = this.einkRef) != null && _this$einkRef.current) { + this.einkRef.current.toggleLeft(position > 0); + this.einkRef.current.toggleRight(position < data.length - 1); } this.setState({ - index: nativeEvent.position + index: position }); } } @@ -346646,151 +322342,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e showIndicators: false, skipChildMemo: false }; -},2397,[3,6,7,11,13,14,16,568,18,1795,2398,2400,434,2401,1,438,179]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3]); - - var _viewPagerComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - function Indicators(props) { - var color = props.color, - activeColor = props.activeColor, - activeIndex = props.activeIndex, - total = props.total; - - if (total < 2) { - return null; - } - - var dots = []; - - for (var i = 0; i < total; i++) { - dots.push((0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_reactNative.View, { - style: [{ - backgroundColor: i === activeIndex ? activeColor : color - }, _viewPagerComponent.default.dot] - }, i)); - } - - return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_reactNative.View, { - pointerEvents: "none", - style: _viewPagerComponent.default.pagination, - children: dots - }); - } - - Indicators.propTypes = { - color: _propTypes.default.string, - activeColor: _propTypes.default.string, - total: _propTypes.default.number.isRequired, - activeIndex: _propTypes.default.number.isRequired - }; - Indicators.defaultProps = { - color: _$$_REQUIRE(_dependencyMap[6]).colors.black, - activeColor: _$$_REQUIRE(_dependencyMap[6]).colors.white - }; - - var _default = exports.default = Indicators; -},2398,[3,16,568,18,2399,179,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var _default = exports.default = _reactNative.StyleSheet.create({ - pagination: { - position: "absolute", - bottom: 25, - left: 0, - right: 0, - flexDirection: "row", - flex: 1, - justifyContent: "center", - alignItems: "center", - backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.transparent - }, - dot: { - width: 8, - height: 8, - borderRadius: 4, - marginLeft: 3, - marginRight: 3, - marginTop: 3, - marginBottom: 3 - } - }); -},2399,[18,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3]); - - var _newsmemoryUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var styles = _reactNative.StyleSheet.create({ - container: { - width: "100%", - height: "100%" - } - }); - - function Child(props) { - var index = props.index, - isInInterval = props.isInInterval, - isInProgressInterval = props.isInProgressInterval, - renderChildContent = props.renderChildContent, - item = props.item; - var Component = null; - - if (isInInterval) { - Component = renderChildContent(item, index); - } else if (isInProgressInterval) { - Component = (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_$$_REQUIRE(_dependencyMap[6]).ProgressCircle, { - spinnerColor: _newsmemoryUtils.default.getSpinnerColor() - }); - } - - return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_reactNative.View, { - style: styles.container, - collapsable: false, - children: Component - }); - } - - Child.propTypes = { - item: _propTypes.default.object, - index: _propTypes.default.number, - isInInterval: _propTypes.default.bool, - isInProgressInterval: _propTypes.default.bool, - renderChildContent: _propTypes.default.func - }; - Child.defaultProps = {}; - - var ViewPagerChild = _react.default.memo(Child, function (prevProps, nextProps) { - return prevProps.isInInterval === nextProps.isInInterval && prevProps.isInProgressInterval === nextProps.isInProgressInterval && prevProps.orientation === nextProps.orientation && prevProps.skipMemo === false; - }); - - var _default = exports.default = ViewPagerChild; -},2400,[3,16,568,18,613,179,1995]); +},2280,[3,6,7,11,13,14,568,16,18,1699,434,2281,2286,2287,1,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -346945,7 +322497,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = EInkNavigationButtons; -},2401,[3,33,4,16,568,18,2402,179,803,2404,2405]); +},2281,[3,33,4,16,568,18,2282,179,803,2284,2285]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -346995,7 +322547,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = EInkButton; -},2402,[3,16,568,18,2403,179,803]); +},2282,[3,16,568,18,2283,179,803]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -347034,7 +322586,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = ButtonIcon; -},2403,[3,16,568,2090,179,803]); +},2283,[3,16,568,1974,179,803]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -347046,7 +322598,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-left-button", "type": "png" }); -},2404,[1337]); +},2284,[1244]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -347058,7 +322610,151 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-right-button", "type": "png" }); -},2405,[1337]); +},2285,[1244]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[3]); + + var _newsmemoryUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var styles = _reactNative.StyleSheet.create({ + container: { + width: "100%", + height: "100%" + } + }); + + function Child(props) { + var index = props.index, + isInInterval = props.isInInterval, + isInProgressInterval = props.isInProgressInterval, + renderChildContent = props.renderChildContent, + item = props.item; + var Component = null; + + if (isInInterval) { + Component = renderChildContent(item, index); + } else if (isInProgressInterval) { + Component = (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_$$_REQUIRE(_dependencyMap[6]).ProgressCircle, { + spinnerColor: _newsmemoryUtils.default.getSpinnerColor() + }); + } + + return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_reactNative.View, { + style: styles.container, + collapsable: false, + children: Component + }); + } + + Child.propTypes = { + item: _propTypes.default.object, + index: _propTypes.default.number, + isInInterval: _propTypes.default.bool, + isInProgressInterval: _propTypes.default.bool, + renderChildContent: _propTypes.default.func + }; + Child.defaultProps = {}; + + var ViewPagerChild = _react.default.memo(Child, function (prevProps, nextProps) { + return prevProps.isInInterval === nextProps.isInInterval && prevProps.isInProgressInterval === nextProps.isInProgressInterval && prevProps.orientation === nextProps.orientation && prevProps.skipMemo === false; + }); + + var _default = exports.default = ViewPagerChild; +},2286,[3,16,568,18,613,179,1884]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[3]); + + var _viewPagerComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + function Indicators(props) { + var color = props.color, + activeColor = props.activeColor, + activeIndex = props.activeIndex, + total = props.total; + + if (total < 2) { + return null; + } + + var dots = []; + + for (var i = 0; i < total; i++) { + dots.push((0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_reactNative.View, { + style: [{ + backgroundColor: i === activeIndex ? activeColor : color + }, _viewPagerComponent.default.dot] + }, i)); + } + + return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_reactNative.View, { + pointerEvents: "none", + style: _viewPagerComponent.default.pagination, + children: dots + }); + } + + Indicators.propTypes = { + color: _propTypes.default.string, + activeColor: _propTypes.default.string, + total: _propTypes.default.number.isRequired, + activeIndex: _propTypes.default.number.isRequired + }; + Indicators.defaultProps = { + color: _$$_REQUIRE(_dependencyMap[6]).colors.black, + activeColor: _$$_REQUIRE(_dependencyMap[6]).colors.white + }; + + var _default = exports.default = Indicators; +},2287,[3,16,568,18,2288,179,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var _default = exports.default = _reactNative.StyleSheet.create({ + pagination: { + position: "absolute", + bottom: 25, + left: 0, + right: 0, + flexDirection: "row", + flex: 1, + justifyContent: "center", + alignItems: "center", + backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.transparent + }, + dot: { + width: 8, + height: 8, + borderRadius: 4, + marginLeft: 3, + marginRight: 3, + marginTop: 3, + marginBottom: 3 + } + }); +},2288,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -347131,7 +322827,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e SubHeaderComponent.defaultProps = { cssClasses: [] }; -},2406,[3,6,7,11,13,14,16,568,18,2407,179,803]); +},2289,[3,6,7,11,13,14,16,568,18,2290,179,803]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -347151,7 +322847,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e justifyContent: "flex-end" } }); -},2407,[18,863]); +},2290,[18,811]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -347294,7 +322990,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _propTypes.default.string.isRequired, onChangeEventName: _propTypes.default.string }; -},2408,[3,6,7,11,13,14,16,18,568,800,2409,550,438,179,803,2306]); +},2291,[3,6,7,11,13,14,16,18,568,800,2292,550,438,179,803,2189]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -347328,7 +323024,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fontStyle: "italic" } }); -},2409,[18,863]); +},2292,[18,811]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -347492,7 +323188,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e active: false, cssProps: {} }; -},2410,[3,4,6,7,11,13,14,16,568,2347,550,179]); +},2293,[3,4,6,7,11,13,14,16,568,2230,550,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -347707,7 +323403,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e rightButtons: [], cssButtonClasses: [] }; -},2411,[3,22,6,7,11,13,14,16,568,18,1837,803,438,863,179,1917]); +},2294,[3,22,6,7,11,13,14,16,568,18,1726,803,438,811,179,1806]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -347728,11 +323424,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _indexBaseComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _webUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - var _indexLayoutManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + var _articleComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - var _articleComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + var _indexLayoutManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _indexBaseComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } @@ -347752,35 +323450,31 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e customIndexHtml = _this$props.customIndexHtml, onLocal = _this$props.onLocal; - var cssTheme = _$$_REQUIRE(_dependencyMap[11]).Css.getThemeInUse(); + var themeClass = _webUtils.default.getThemeClassesScript(); - var themeClass = ""; - - if (cssTheme) { - themeClass = "\n document.body.classList.add('" + cssTheme + "');\n "; - } - - var INJECTEDJAVASCRIPT = "\n parent.hybrid_openOptionPage = function(){ \n window.location.href = 'local://openOptionPage';\n };\n const manualIndex = document.getElementById('manualIndex');\n if(manualIndex){\n manualIndex.style.height = 'auto';\n }\n const meta = document.createElement('meta');\n if (meta) {\n meta.setAttribute('content', 'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0');\n meta.setAttribute('name', 'viewport');\n document.getElementsByTagName('head')[0].appendChild(meta);\n }\n " + themeClass + "\n "; + var INJECTEDJAVASCRIPT = "\n parent.hybrid_openOptionPage = function(){ \n window.location.href = 'local://openOptionPage';\n };\n const manualIndex = document.getElementById('manualIndex');\n if(manualIndex){\n manualIndex.style.height = 'auto';\n }\n const meta = document.createElement('meta');\n if (meta) {\n meta.setAttribute('content', 'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0');\n meta.setAttribute('name', 'viewport');\n document.getElementsByTagName('head')[0].appendChild(meta);\n }\n " + themeClass; var _global$getActivePSet = global.getActivePSetup(), enableArticleTextSelection = _global$getActivePSet.enableArticleTextSelection; var darkModeStyle = ""; - if (cssTheme && _$$_REQUIRE(_dependencyMap[11]).Css.isDarkTheme()) { - darkModeStyle = "\n ." + cssTheme + " #manualIndex .article-title,\n ." + cssTheme + " #manualIndex .subhead,\n ." + cssTheme + " #manualIndex .byline,\n ." + cssTheme + " #manualIndex .index-element,\n ." + cssTheme + " #manualIndex .page-number-container,\n ." + cssTheme + " #manualIndex h2 {\n color: " + _$$_REQUIRE(_dependencyMap[11]).Css.getDefaultForegroundColor() + ";\n }\n ." + cssTheme + " #manualIndex .logo {\n filter: invert(50%);\n }\n "; + var cssTheme = _$$_REQUIRE(_dependencyMap[12]).Css.getThemeInUse(); + + if (cssTheme && _$$_REQUIRE(_dependencyMap[12]).Css.isDarkTheme()) { + darkModeStyle = "\n ." + cssTheme + " #manualIndex .article-title,\n ." + cssTheme + " #manualIndex .subhead,\n ." + cssTheme + " #manualIndex .byline,\n ." + cssTheme + " #manualIndex .index-element,\n ." + cssTheme + " #manualIndex .page-number-container,\n ." + cssTheme + " #manualIndex h2 {\n color: " + _$$_REQUIRE(_dependencyMap[12]).Css.getDefaultForegroundColor() + ";\n }\n ." + cssTheme + " #manualIndex .logo {\n filter: invert(50%);\n }\n "; } - var defaultCss = ""; + var defaultCss = ""; var customCss = ""; var FONT_AWESOME_CSS_URL = _Api.default.getServer() + "/eebrowser/librarybranches/libraries.check.20120417/css/4.5.0/css/font-awesome.min.css"; var fontAwesome = ""; - var jQuery = ""; - var iframeDefinition = (0, _$$_REQUIRE(_dependencyMap[14]).getCustomIndexIframeDefinition)(); - var indexFunctionDefinition = (0, _$$_REQUIRE(_dependencyMap[14]).getCustomIndexFunctionDefinition)(); - return (0, _$$_REQUIRE(_dependencyMap[15]).jsxs)(_$$_REQUIRE(_dependencyMap[16]).TecnaviaScrollView, { + var jQuery = ""; + var iframeDefinition = (0, _$$_REQUIRE(_dependencyMap[15]).getCustomIndexIframeDefinition)(); + var indexFunctionDefinition = (0, _$$_REQUIRE(_dependencyMap[15]).getCustomIndexFunctionDefinition)(); + return (0, _$$_REQUIRE(_dependencyMap[16]).jsxs)(_$$_REQUIRE(_dependencyMap[17]).TecnaviaScrollView, { style: _indexLayoutManager.default.container, - children: [this._getHeader(), (0, _$$_REQUIRE(_dependencyMap[15]).jsx)(_$$_REQUIRE(_dependencyMap[17]).AutoHeightWebView, { + children: [this._getHeader(), (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_$$_REQUIRE(_dependencyMap[18]).AutoHeightWebView, { htmlContentId: "manualIndex", source: { html: defaultCss + customCss + fontAwesome + jQuery + customIndexHtml + iframeDefinition + indexFunctionDefinition @@ -347792,7 +323486,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_indexBaseComponent.default); -},2412,[3,6,7,11,13,14,16,407,2393,2307,2270,803,2303,2305,2413,179,2048,2038]); +},2295,[3,6,7,11,13,14,16,407,852,2153,2190,2276,803,2186,2188,2296,179,1937,1923]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -347806,7 +323500,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var getCustomIndexIframeDefinition = exports.getCustomIndexIframeDefinition = function getCustomIndexIframeDefinition() { return "\n "; }; -},2413,[]); +},2296,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -347967,7 +323661,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e supportColor: global.getRssIndex() }); } -},2414,[3,4,16,2084,434,651,842,2206,2415,438,2299,2092,2172,2304,2159,179,2394,2167,803]); +},2297,[3,4,16,1968,434,651,843,2089,2298,438,2182,1976,2055,2187,2042,179,2277,2050,803]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348064,7 +323758,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = TabNavigator; -},2415,[3,4,16,18,568,2416,2069,179,438]); +},2298,[3,4,16,18,568,2299,1682,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348300,7 +323994,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = TabBar; -},2416,[3,22,33,16,18,568,2417,438,179]); +},2299,[3,22,33,16,18,568,2300,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348386,7 +324080,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = TabItem; -},2417,[3,16,18,568,2090,800,438,179]); +},2300,[3,16,18,568,1974,800,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -348483,6 +324177,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var NewsmemoryArticleLayoutManager = exports.NewsmemoryArticleLayoutManager = function (_Shortcut) { function NewsmemoryArticleLayoutManager(props) { + var _props$newspaper; + var _this; (0, _classCallCheck2.default)(this, NewsmemoryArticleLayoutManager); @@ -348549,7 +324245,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; _this.articleRefs = []; - var edition = props.newspaper && props.newspaper.getEditionModel(); + var edition = (_props$newspaper = props.newspaper) == null ? undefined : _props$newspaper.getEditionModel(); _this.allArticles = _newsmemoryUtils.default.getAllArticles(edition); var _global$getNewsmemory = global.getNewsmemoryConfig(), @@ -349357,7 +325053,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _this$props2 = this.props, searchText = _this$props2.searchText, newspaper = _this$props2.newspaper, - searchColor = _this$props2.searchColor, size = _this$props2.size, formattedIssue = _this$props2.formattedIssue, FooterComponent = _this$props2.FooterComponent, @@ -349409,7 +325104,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e newspaper: newspaper, mode: article.isText() ? _$$_REQUIRE(_dependencyMap[44]).NewsmemoryArticleModes.TEXT : _$$_REQUIRE(_dependencyMap[44]).NewsmemoryArticleModes.GRAPHIC, searchText: searchText, - searchColor: searchColor, carModeEnabled: this._isCarModeEnabled(), accessibilityEnabled: this._isAccessibilityModeEnabled(), header: showArticleHeader, @@ -350186,19 +325880,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "_getComponentSubHeader", value: function _getComponentSubHeader(header) { var _this$props5 = this.props, - searchColor = _this$props5.searchColor, size = _this$props5.size, renderHr = _this$props5.renderHr; var leftSection = header.getLeft(); var rightSection = header.getRight(); var carModeSection = header.getCarMode(); var hrTop = header.getHrTop(); + var classes = ["newsmemory-article-mode-header"]; - var searchStyle = _$$_REQUIRE(_dependencyMap[51]).Css.getStyleObjByCssClasses(["newsmemory-search"]); + if (this._isFromSearch()) { + classes.push("newsmemory-article-mode-header-search"); + } - var customSearchColor = _$$_REQUIRE(_dependencyMap[42]).CssUtils.getAttributeFromStyle("color", searchStyle, searchColor); + var headerStyle = _$$_REQUIRE(_dependencyMap[51]).Css.getStyleObjByCssClasses(classes); + + var bgColor = _$$_REQUIRE(_dependencyMap[42]).CssUtils.getAttributeFromStyle("backgroundColor", headerStyle, hrTop.getColor()); - var bgColor = this._isFromSearch() ? customSearchColor : hrTop.getColor(); var rightButtons; var leftButtons; var searchButtons; @@ -350227,7 +325924,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e renderButton: this.getSearchButton }), bgColor: bgColor, - cssClasses: ["newsmemory-article-mode-header"] + cssClasses: classes }); } }, { @@ -350680,7 +326377,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: _propTypes.default.shape({ navigate: _propTypes.default.func }).isRequired, - searchColor: _propTypes.default.string, size: _propTypes.default.shape({ width: _propTypes.default.number, height: _propTypes.default.number @@ -350688,10 +326384,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e FooterComponent: _propTypes.default.node }, _$$_REQUIRE(_dependencyMap[54]).Shortcut.propTypes); NewsmemoryArticleLayoutManager.defaultProps = Object.assign({}, _$$_REQUIRE(_dependencyMap[54]).Shortcut.defaultProps, { - header: false, - searchColor: _$$_REQUIRE(_dependencyMap[56]).SEARCH_COLOR + header: false }); -},2418,[3,270,6,7,11,85,13,14,568,16,18,1974,406,1975,2114,436,2419,434,613,841,2274,552,1838,650,651,842,654,2116,2397,2270,2420,2346,2421,2408,2406,2422,2347,2411,2410,2423,1837,550,438,2010,2015,1992,2019,2300,179,2074,2044,803,849,2299,2050,1968,863]); +},2301,[3,270,6,7,11,85,13,14,568,16,18,1863,406,1864,1998,436,2302,434,613,842,2157,552,1727,650,651,843,654,2000,2280,2153,2303,2229,2304,2291,2289,2305,2230,2294,2293,2306,1726,550,438,1899,1904,1881,1929,2183,179,1958,1933,803,850,2182,1939,1857]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -350706,19 +326401,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[4]); - var _reactNativeShare = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + var _reactNativeMail = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _reactNativeMail = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _reactNativeShare = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); var _NewsmemoryAJAX = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _EPaperArticle = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _Edition = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - var _Page = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + var _EPaperArticle = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - var _Edition = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + var _NewspaperIssue = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - var _NewspaperIssue = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + var _Page = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); var _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); @@ -351017,7 +326712,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _shareReddit = (0, _asyncToGenerator2.default)(function* (publink) { var shareUrl = "https://reddit.com/submit?"; shareUrl += "title=" + this.getDefaultTitle(); - shareUrl += "text=" + this.getContent(publink); + shareUrl += "&text=" + this.getContent(publink); shareUrl += "&url=" + publink; yield _tecnaviaPlatformUtils.default.openURL(shareUrl); }); @@ -351175,7 +326870,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2419,[3,270,6,7,18,553,2286,406,651,654,650,842,1999,552,2018,2019,2015,2014,2074,438,849,572]); +},2302,[3,270,6,7,18,2169,553,406,650,651,843,654,1888,552,1928,1929,1904,1903,1958,438,850,572]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -351357,7 +327052,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e level: DEFAULT_LEVEL, visible: false }; -},2420,[3,6,7,11,13,14,16,18,568,800,436,550,179,803,863]); +},2303,[3,6,7,11,13,14,16,18,568,800,436,550,179,803,811]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -351429,7 +327124,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = FlagIconComponent; -},2421,[3,22,4,16,568,18,2090,2291,800,438,1837,179,803]); +},2304,[3,22,4,16,568,18,1974,2174,800,438,1726,179,803]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -351602,7 +327297,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e badgeIcon: undefined, cssBadgeClasses: [] }; -},2422,[3,6,7,11,85,13,14,16,568,18,2347,2348,2090,550,438,179,803]); +},2305,[3,6,7,11,85,13,14,16,568,18,2230,2231,1974,550,438,179,803]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -351656,7 +327351,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2423,[18,863]); +},2306,[18,811]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -352320,8 +328015,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 }, children: ButtonComponent - }, key) - }); + }) + }, key); }) }) }) @@ -352351,7 +328046,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e isItemPresent: _propTypes.default.func, style: _propTypes.default.any }, _$$_REQUIRE(_dependencyMap[33]).Shortcut.propTypes); -},2424,[3,270,22,6,7,11,85,13,14,568,16,18,1974,2361,436,434,2165,2012,1999,2090,2425,550,2010,803,438,1837,179,2044,864,798,2238,2426,2430,2050,1958]); +},2307,[3,270,22,6,7,11,85,13,14,568,16,18,1863,2244,436,434,2048,1901,1888,1974,2308,550,1899,803,438,1726,179,1933,864,798,2121,2309,2313,1939,1847]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -352717,7 +328412,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e duration: _$$_REQUIRE(_dependencyMap[12]).HIDE_ANIMATION_DURATION, hideAfter: _$$_REQUIRE(_dependencyMap[12]).HIDE_ANIMATION_TIMER }; -},2425,[3,4,6,7,11,13,14,16,568,18,550,179,863]); +},2308,[3,4,6,7,11,13,14,16,568,18,550,179,811]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -352937,7 +328632,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[18]).NewsMemoryFooterIcon); -},2426,[3,6,7,11,85,13,14,16,436,2427,550,842,798,438,1837,179,1995,2429,2430]); +},2309,[3,6,7,11,85,13,14,16,436,2310,550,843,798,438,1726,179,1884,2312,2313]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -353085,7 +328780,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cssTextClasses: [], cssTextParentClasses: [] }; -},2427,[3,6,7,11,13,14,16,18,154,568,2428,2090,179,2429,803]); +},2310,[3,6,7,11,13,14,16,18,154,568,2311,1974,179,2312,803]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -353208,7 +328903,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cssClasses: [], cssParentClasses: [] }; -},2428,[3,270,6,7,11,13,14,16,568,18,800,438,179,803,2429]); +},2311,[3,270,6,7,11,13,14,16,568,18,800,438,179,803,2312]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -353242,7 +328937,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fontSize: 12 } }); -},2429,[18]); +},2312,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -353477,7 +329172,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e active: false, visible: true }); -},2430,[3,270,6,7,11,13,14,16,568,18,800,2427,179,438,803,2429,2050,1917]); +},2313,[3,270,6,7,11,13,14,16,568,18,800,2310,179,438,803,2312,1939,1806]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -354164,7 +329859,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e pageNumberTop: true, isSpecialSection: false }); -},2431,[3,270,6,7,11,85,13,14,16,568,18,654,613,436,2432,2446,841,2317,842,1974,550,438,2010,2074,179,2050,1973]); +},2314,[3,270,6,7,11,85,13,14,16,568,18,654,613,436,2315,2329,842,2200,843,1863,550,438,1899,1958,179,1939,1862]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -354575,7 +330270,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e animateButtons: false } }; -},2432,[3,4,6,7,11,13,14,568,16,18,436,613,650,2090,2427,2433,2434,2436,2445,438,550,179,1,798,1837,1918,1973]); +},2315,[3,4,6,7,11,13,14,568,16,18,436,613,650,1974,2310,2316,2317,2319,2328,438,550,179,1,798,1726,1807,1862]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -354643,7 +330338,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e PagesBackToPaperButton.propTypes = { onPress: _propTypes.default.func.isRequired }; -},2433,[3,6,7,11,13,14,16,568,18,2434,574,179,2435]); +},2316,[3,6,7,11,13,14,16,568,18,2317,574,179,2318]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -354748,7 +330443,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: 23 } }); -},2434,[18,438,863]); +},2317,[18,438,811]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -354760,7 +330455,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-back-to-paper", "type": "png" }); -},2435,[1337]); +},2318,[1244]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -355063,7 +330758,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e PagesNavigationButtons.defaultProps = { version: 2 }; -},2436,[3,6,7,11,13,14,16,568,18,2434,2277,436,2425,2090,2437,2438,2439,2440,2441,2442,2443,2444,179,803,438,1973]); +},2319,[3,6,7,11,13,14,16,568,18,2317,2160,436,2308,1974,2320,2321,2322,2323,2324,2325,2326,2327,179,803,438,1862]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -355075,7 +330770,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-back-button", "type": "png" }); -},2437,[1337]); +},2320,[1244]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -355087,7 +330782,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-back-section-button", "type": "png" }); -},2438,[1337]); +},2321,[1244]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -355099,7 +330794,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-forward-button", "type": "png" }); -},2439,[1337]); +},2322,[1244]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -355111,7 +330806,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-forward-section-button", "type": "png" }); -},2440,[1337]); +},2323,[1244]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -355123,7 +330818,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-back-button", "type": "png" }); -},2441,[1337]); +},2324,[1244]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -355135,7 +330830,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-back-section-button", "type": "png" }); -},2442,[1337]); +},2325,[1244]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -355147,7 +330842,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-forward-button", "type": "png" }); -},2443,[1337]); +},2326,[1244]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -355159,7 +330854,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic-forward-section-button", "type": "png" }); -},2444,[1337]); +},2327,[1244]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -355322,7 +331017,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e pagesAreaSize: _propTypes.default.object, onPress: _propTypes.default.func }; -},2445,[3,6,7,11,13,14,16,568,18,800,2425,436,179,803,1,2436]); +},2328,[3,6,7,11,13,14,16,568,18,800,2308,436,179,803,1,2319]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -356713,7 +332408,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e numberOfShowedPages: 1, initialEvent: undefined }); -},2446,[3,270,22,6,7,11,85,13,14,568,16,1974,436,613,841,648,651,842,654,2447,2279,2448,2455,438,550,2010,655,2019,2074,179,2050]); +},2329,[3,270,22,6,7,11,85,13,14,568,16,1863,436,613,842,648,651,843,654,2330,2162,2331,2338,438,550,1899,655,1929,1958,179,1939]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -356841,7 +332536,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2447,[3,6,7]); +},2330,[3,6,7]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -357535,7 +333230,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e twoFingerTapEnabled: false, cssContainerClasses: [] }; -},2448,[3,22,6,7,11,13,14,568,16,18,657,2278,2449,2277,2450,2454,438,656,179,1,803]); +},2331,[3,22,6,7,11,13,14,568,16,18,657,2161,2332,2160,2333,2337,438,656,179,1,803]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -357780,7 +333475,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2449,[3,6,7,2447,438]); +},2332,[3,6,7,2330,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358413,7 +334108,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2450,[3,33,6,7,657,2279,1,2451,2452,2453,656]); +},2333,[3,33,6,7,657,2162,1,2334,2335,2336,656]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358515,7 +334210,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e startStopClock: false })), (0, _$$_REQUIRE(_dependencyMap[4]).runTiming)(clock, value, rest)], cond(pinchEnd, [set(displacementX, focalXRest), set(displacementY, focalYRest), set(finishPinch, 1), debug("PINCH SCALE TO END: ", rest), rest], [debug("PINCH SCALE START: ", value), set(isStartScaleEqualToMinScale, cond(eq(value, minScale), 1, 0)), cond(or(pinchStart, eq(starting, 1)), [set(starting, 0), call([starting], onStart)]), value])))))), set(leftLimit, leftConstraint(scaleToRet, minScale, displacementX)), set(topLimit, topConstraint(scaleToRet, minScale, displacementY)), set(rightLimit, rightConstraint(leftLimit, scaleToRet, width, nPages, pagesVisible)), set(bottomLimit, bottomConstraint(topLimit, scaleToRet, minScale, height, viewHeight)), set(fit, fitValue(scaleToRet, width, viewWidth)), set(horizontalMargin, hMargin(scaleToRet, minScale, width, viewWidth, pagesVisible)), cond(eq(finishPinch, 1), [call([leftLimit, topLimit, rightLimit, bottomLimit], onUpdateLimit), cond(isFitted, call([], onFit), call([], onUnFit)), call([scaleToRet, displacementX, displacementY, zoomToActive], onEnd), set(finishPinch, 0), set(pinchOldState, _$$_REQUIRE(_dependencyMap[3]).State.UNDETERMINED), set(prevPinchScale, 1), set(pinchScale, 1)]), scaleToRet]; } -},2451,[3,657,2279,1,656]); +},2334,[3,657,2162,1,656]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358569,7 +334264,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var maxVelocityXCondition = greaterThan(abs(velocityX), abs(maxVelocityX)); return block([cond(notSet, [set(maxVelocityX, 0), set(tempDragX, 0)]), cond(enableDirectionSet, [cond(enableX, set(direction, Direction.EnableX)), cond(enable, set(direction, Direction.Enable)), cond(enableY, set(direction, Direction.EnableY))]), cond(eq(direction, Direction.EnableX), [set(velocityY, 0), set(dragY, 0)]), cond(eq(direction, Direction.EnableY), [cond(and(panActive, maxVelocityXCondition), set(maxVelocityX, velocityX)), cond(swipeCondition, [set(tempDragX, dragX)]), cond(panEnd, set(dragX, tempDragX), set(dragX, 0))]), cond(panEnd, [set(direction, Direction.NotSet)])]); }; -},2452,[657,3,2279]); +},2335,[657,3,2162]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358742,7 +334437,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e duration: _zoomConstants.default.constants.ZOOM_TO_DURATION })), set(value, panRest(top, bottom, add(tempPan, tempDragY))), cond(not(clockRunning(zoomClock)), [set(tempDragY, 0), set(zoomToDragY, 0), call([value], onEnd)]), value], cond([diffY, velocityY, panActive], [stopClock(clockMagnetic), cond(not(isScaling), cond(greaterThan(abs(velocityY), 0), set(maxVelocityY, velocityY)), set(maxVelocityY, 0)), cond(and(eq(bottomReachedCalled, 0), (0, _reactNativeReanimated.lessOrEq)(value, bottom), lessThan(drag, -_zoomConstants.default.constants.VERTICAL_THRESHOLD)), [set(bottomReachedCalled, 1), call([], onBottomReached)]), set(velocityY, 0), debug("VELOCITY Y: ", maxVelocityY), panRest(top, bottom, add(value, diffY))], cond(and(panEnd, not(panCancelled)), cond(isMagneting, [set(nextMagneticValue, (0, _$$_REQUIRE(_dependencyMap[5]).runTiming)(clockMagnetic, rest, magneticDestination)), cond(not(clockRunning(clockMagnetic)), [debug("MAGNETIC END Y: ", nextMagneticValue), set(bottomReachedCalled, 0), set(maxVelocityY, 0), call([nextMagneticValue], onEnd)]), nextMagneticValue], [debug("PAN END Y: ", rest), stopClock(zoomClock), call([rest], onEnd), set(bottomReachedCalled, 0), set(maxVelocityY, 0), rest]), [cond(panStart, [debug("PAN START Y: ", value), call([], onStart)]), cond(panCancelled, [debug("PAN CANCELLED Y: ", value), stopClock(clockMagnetic), call([rest], onEnd), set(bottomReachedCalled, 0), set(maxVelocityY, 0)]), rest]))))]; } -},2453,[657,3,2279,438,1,656]); +},2336,[657,3,2162,438,1,656]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -358785,7 +334480,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white } }); -},2454,[18,438]); +},2337,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -359515,7 +335210,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e showBorder: false, loginOverlayPosition: _$$_REQUIRE(_dependencyMap[30]).PageViewPosition.CENTER }; -},2455,[3,6,7,11,13,14,568,16,18,1974,436,613,842,654,2456,2296,2457,2458,2284,2459,2460,2461,2464,849,550,438,572,573,179,651,841]); +},2338,[3,6,7,11,13,14,568,16,18,1863,436,613,843,654,2339,2179,2340,2341,2167,2342,2343,2344,2347,850,550,438,572,573,179,651,842]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -359776,7 +335471,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e page: _propTypes.default.instanceOf(_Page.default), style: _propTypes.default.any }; -},2456,[3,4,270,6,7,11,13,14,16,18,875,568,654,2317,438,1,565,179]); +},2339,[3,4,270,6,7,11,13,14,16,18,875,568,654,2200,438,1,565,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -359981,7 +335676,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e minZoom: 1, hidden: false }; -},2457,[3,33,6,7,11,13,14,16,18,568,654,650,800,438,803,179]); +},2340,[3,33,6,7,11,13,14,16,18,568,654,650,800,438,803,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360074,7 +335769,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_react.default.PureComponent); -},2458,[3,6,7,11,13,14,16,18,179,803,438]); +},2341,[3,6,7,11,13,14,16,18,179,803,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360352,7 +336047,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }).isRequired, fitWidth: _propTypes.default.bool }; -},2459,[3,6,7,11,13,14,16,568,18,941,436,613,648,1974,2285,655,654,550,438,179]); +},2342,[3,6,7,11,13,14,16,568,18,943,436,613,648,1863,2168,655,654,550,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360443,7 +336138,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e PageImage.defaultProps = { show: true }; -},2460,[3,4,6,7,11,13,14,16,568,573,552,574,438,179,1995]); +},2343,[3,4,6,7,11,13,14,16,568,573,552,574,438,179,1884]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360585,7 +336280,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e left: _propTypes.default.number }) }; -},2461,[3,6,7,11,13,14,16,568,2462,18,654,573,2460,2463,552,842,179,438]); +},2344,[3,6,7,11,13,14,16,568,2345,18,654,573,2343,2346,552,843,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -360755,7 +336450,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e blackAndWhite: false, enableThumbnail: false }; -},2462,[3,4,6,7,11,13,14,16,568,18,438,179,581]); +},2345,[3,4,6,7,11,13,14,16,568,18,438,179,581]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -361004,7 +336699,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e PageHr.defaultProps = { showAll: true }; -},2463,[3,6,7,11,13,14,16,568,18,654,613,436,842,573,2281,438,550,179]); +},2346,[3,6,7,11,13,14,16,568,18,654,613,436,843,573,2164,438,550,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -361032,7 +336727,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _$$_REQUIRE(_dependencyMap[1]).colors.black } }); -},2464,[18,438]); +},2347,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -361412,7 +337107,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }).isRequired, model: _propTypes.default.instanceOf(_$$_REQUIRE(_dependencyMap[28]).Header).isRequired }, _$$_REQUIRE(_dependencyMap[27]).Shortcut.propTypes); -},2465,[3,6,7,11,13,14,16,568,18,800,2346,2466,651,654,2467,650,841,2009,2047,2010,179,863,1837,803,2469,438,2312,2050,1968]); +},2348,[3,6,7,11,13,14,16,568,18,800,2229,2349,651,654,2350,650,842,1898,1936,1899,179,811,1726,803,2352,438,2195,1939,1857]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -361477,7 +337172,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e color: _$$_REQUIRE(_dependencyMap[1]).SEARCH_COLOR } }); -},2466,[18,863,438]); +},2349,[18,811,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -361598,7 +337293,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cssClassesIcon: [], cssClassesText: [] }; -},2467,[3,6,7,11,13,14,16,568,18,800,2468,1918,179,803,438]); +},2350,[3,6,7,11,13,14,16,568,18,800,2351,1807,179,803,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -361620,7 +337315,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e textAlign: "center" } }); -},2468,[18]); +},2351,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -361865,7 +337560,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderRadius: 0, autoFocus: false }; -},2469,[3,270,6,7,11,13,14,568,16,18,2350,1918,803,438,179,2470]); +},2352,[3,270,6,7,11,13,14,568,16,18,2233,1807,803,438,179,2353]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -361901,7 +337596,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fontSize: 30 } }); -},2470,[18]); +},2353,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -362601,7 +338296,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }).isRequired }, _$$_REQUIRE(_dependencyMap[30]).Shortcut.propTypes); NewsmemoryThumbnail.defaultProps = Object.assign({}, _$$_REQUIRE(_dependencyMap[30]).Shortcut.defaultProps); -},2471,[3,270,6,7,11,85,13,14,568,16,18,2472,436,613,841,552,650,573,842,654,2473,550,849,2010,2474,438,179,2049,2475,803,2050]); +},2354,[3,270,6,7,11,85,13,14,568,16,18,2355,436,613,842,552,650,573,843,654,2356,550,850,1899,2357,438,179,1938,2358,803,1939]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -362711,7 +338406,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; }; }; -},2472,[]); +},2355,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -362876,7 +338571,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e padding: 5 } }); -},2473,[18,3,654,613,650,438,863]); +},2356,[18,3,654,613,650,438,811]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -362956,7 +338651,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2474,[3,6,7,654]); +},2357,[3,6,7,654]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -363253,7 +338948,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }); }; -},2475,[3,270,16,18,2473,800,2476,654,841,613,650,842,2419,436,179,803,2312,1992,2074,2477,863,1918,438,2049]); +},2358,[3,270,16,18,2356,800,2359,654,842,613,650,843,2302,436,179,803,2195,1881,1958,2360,811,1807,438,1938]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -363367,7 +339062,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e style: _propTypes.default.any, source: _propTypes.default.object }; -},2476,[3,4,270,6,7,11,13,14,16,568,574,179,1995]); +},2359,[3,4,270,6,7,11,13,14,16,568,574,179,1884]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -363548,7 +339243,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e DownloadButton.defaultProps = { disabled: false }; -},2477,[3,4,6,7,11,13,14,16,568,18,1918,550,179,803,1995]); +},2360,[3,4,6,7,11,13,14,16,568,18,1807,550,179,803,1884]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -363821,7 +339516,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e BackgroundPages.defaultProps = { hidden: false }; -},2478,[3,6,7,11,13,14,568,16,18,436,613,650,842,654,2455,2479,550,863,179,438,803,1995]); +},2361,[3,6,7,11,13,14,568,16,18,436,613,650,843,654,2338,2362,550,811,179,438,803,1884]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -363852,7 +339547,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e overflow: "hidden" } }); -},2479,[18,438]); +},2362,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364518,7 +340213,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }(); LayoutFlexManager.LAST_ACCESSIBILITY_STATE = false; -},2480,[3,6,7,434,1974,803,438]); +},2363,[3,6,7,434,1863,803,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364533,7 +340228,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2481,[2482]); +},2364,[2365]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364664,7 +340359,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cssClasses: [], cssTextClasses: [] }; -},2482,[3,6,7,11,13,14,16,568,436,550,179,1995,438]); +},2365,[3,6,7,11,13,14,16,568,436,550,179,1884,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364679,7 +340374,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2483,[2484]); +},2366,[2367]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364918,7 +340613,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e showLoading: true, ignoreSafeArea: false }; -},2484,[3,6,7,11,13,14,568,16,18,436,434,574,2485,550,179,2486,1995,438]); +},2367,[3,6,7,11,13,14,568,16,18,436,434,574,2368,550,179,2369,1884,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364944,7 +340639,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e resizeMode: "contain" }; }; -},2485,[3,434]); +},2368,[3,434]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -364960,7 +340655,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: "100%" } }); -},2486,[18]); +},2369,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365271,7 +340966,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigate: _propTypes.default.func.isRequired }).isRequired }; -},2487,[3,6,7,11,85,13,14,568,16,18,1974,436,2159,2351,2488,2499,2500,2504,2505,438,550,179,803,2352,2331,2166,2049]); +},2370,[3,6,7,11,85,13,14,568,16,18,1863,436,2042,2234,2371,2382,2383,2387,2388,438,550,179,803,2235,2214,2049,1938]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365292,31 +340987,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _GlobalConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _reactNative = _$$_REQUIRE(_dependencyMap[8]); - var _PushHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + var _GlobalConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - var _PushTags = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + var _PushHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - var _cmpUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + var _PushTags = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + var _cmpUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - var _tecnaviaPlatformUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); - var _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); + var _tecnaviaPlatformUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); - var _settingButton = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); + var _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); - var _settingCheckbox = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); + var _settingButton = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); - var _settingPicker = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[17])); + var _settingCheckbox = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[17])); - var _settingPickerMulti = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[18])); + var _settingPicker = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[18])); - var _settingText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[19])); + var _settingPickerMulti = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[19])); - var _settingsBaseManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[20])); + var _settingText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[20])); + + var _settingsBaseManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[21])); function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } @@ -365342,8 +341039,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "_openUrl", value: function () { var _openUrl2 = (0, _asyncToGenerator2.default)(function* () { - var poweredByURL = global.getMainPSetup(); - var url = poweredByURL && poweredByURL.length ? poweredByURL : "http://www.newsmemory.com/"; + var _global$getMainPSetup = global.getMainPSetup(), + poweredByURL = _global$getMainPSetup.poweredByURL; + + var url = poweredByURL || "https://www.newsmemory.com/"; yield _tecnaviaPlatformUtils.default.openURL(url); }); @@ -365361,7 +341060,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "_toggleAllowFontScaling", value: function _toggleAllowFontScaling() { - _$$_REQUIRE(_dependencyMap[21]).FontContext.set({ + _$$_REQUIRE(_dependencyMap[22]).FontContext.set({ allowFontScaling: global.getUserSettings().toggleAllowFontScaling() }); @@ -365373,13 +341072,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _this$labels = this.labels, startup = _this$labels.startup, ePaper = _this$labels.ePaper; + var userSettings = global.getUserSettings(); if (value === global.strings("settings_startup_rss")) { - global.getUserSettings().setRssAsStartupMode(); + userSettings.setRssAsStartupMode(); } else if (value === ePaper) { - global.getUserSettings().setNewsmemoryAsStartupMode(); + userSettings.setNewsmemoryAsStartupMode(); } else { - global.getUserSettings().resetStartupMode(); + userSettings.resetStartupMode(); } this._displayToast(global.strings("msg_available_next_startup")); @@ -365389,19 +341089,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "_openPushSettings", value: function _openPushSettings() { - _$$_REQUIRE(_dependencyMap[22]).NativeSettingsNavigation.appNotificationSettings(); + _$$_REQUIRE(_dependencyMap[23]).NativeSettingsNavigation.appNotificationSettings(); } }, { key: "_openAccessibilitySettings", value: function _openAccessibilitySettings() { - _$$_REQUIRE(_dependencyMap[22]).NativeSettingsNavigation.accessibilitySettings(); + _$$_REQUIRE(_dependencyMap[23]).NativeSettingsNavigation.accessibilitySettings(); } }, { key: "_openPrivacySettings", value: function () { var _openPrivacySettings2 = (0, _asyncToGenerator2.default)(function* () { - if (_$$_REQUIRE(_dependencyMap[23]).PlatformUtils.isIOS() && _cmpUtils.default.isGDPRComplianceRequired() && (yield _cmpUtils.default.isTrackingPermissionDenied())) { - _tecnaviaPlatformUtils.default.openURL("app-settings:"); + if (_$$_REQUIRE(_dependencyMap[24]).PlatformUtils.isIOS() && _cmpUtils.default.isGDPRComplianceRequired() && (yield _cmpUtils.default.isTrackingPermissionDenied())) { + _reactNative.Linking.openSettings(); } else { _cmpUtils.default.changePreferences().then(function (preference) { _NavigationService.default.restart(); @@ -365418,9 +341118,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "getSettings", value: function getSettings() { - var _global$getMainPSetup = global.getMainPSetup(), - showThemesCustomization = _global$getMainPSetup.showThemesCustomization, - pushTags = _global$getMainPSetup.pushTags; + var _global$getMainPSetup2 = global.getMainPSetup(), + showThemesCustomization = _global$getMainPSetup2.showThemesCustomization, + pushTags = _global$getMainPSetup2.pushTags, + poweredBy = _global$getMainPSetup2.poweredBy; var _global$getRSSActiveP = global.getRSSActivePSetup(), newsMemoryIsEnabled = _global$getRSSActiveP.newsMemoryIsEnabled, @@ -365429,9 +341130,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var userSettings = global.getUserSettings(); - var themes = _$$_REQUIRE(_dependencyMap[24]).Css.getThemes(); + var themes = _$$_REQUIRE(_dependencyMap[25]).Css.getThemes(); - var currentTheme = _$$_REQUIRE(_dependencyMap[24]).Css.getActiveTheme(); + var currentTheme = _$$_REQUIRE(_dependencyMap[25]).Css.getActiveTheme(); var _this$labels2 = this.labels, startup = _this$labels2.startup, @@ -365458,18 +341159,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return Object.assign({ label: global.strings("general") }, this.getCollapsedParams(), { - data: this.isCollapsed() ? [] : [newsMemoryIsEnabled && rssIsEnabled ? (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_settingPicker.default, { + data: this.isCollapsed() ? [] : [newsMemoryIsEnabled && rssIsEnabled ? (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_settingPicker.default, { label: global.strings("start_with"), value: startup, values: startupValues, button: global.strings("change"), onChange: this.changeStartWith - }) : undefined, (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_settingButton.default, { + }) : undefined, (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_settingButton.default, { label: global.strings("settings_allow_font_scaling"), value: this._fontScalingLabel(), button: global.strings("toggle"), onChange: this.toggleAllowFontScaling - }), showThemesCustomization && themes && themes.length > 0 ? (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_settingPicker.default, { + }), showThemesCustomization && (themes == null ? undefined : themes.length) > 0 ? (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_settingPicker.default, { label: global.strings("settings_themes"), value: currentTheme, values: themes.map(function (theme) { @@ -365486,11 +341187,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); } - }) : null, showPushNotificationsSettings ? (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_settingButton.default, { + }) : null, showPushNotificationsSettings ? (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_settingButton.default, { label: global.strings("push_notification"), button: global.strings("open"), onChange: this.openPushSettings - }) : null, showPushNotificationsSettings ? (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_settingCheckbox.default, { + }) : null, showPushNotificationsSettings ? (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_settingCheckbox.default, { value: userSettings.pushNotificationsEnabled, label: global.strings("settings_enable_push_notifications"), onChange: (0, _asyncToGenerator2.default)(function* () { @@ -365510,7 +341211,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (!result) { - _$$_REQUIRE(_dependencyMap[26]).Toast.show(global.strings(newState ? "err_enabling_push_notifications" : "err_disabling_push_notifications", { + _$$_REQUIRE(_dependencyMap[27]).Toast.show(global.strings(newState ? "err_enabling_push_notifications" : "err_disabling_push_notifications", { error: "" })); @@ -365520,7 +341221,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e userSettings.setPushNotificationsState(newState); return newState; }) - }) : null, showPushNotificationsSettings && pushTags && pushTags.length ? (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_settingPickerMulti.default, { + }) : null, showPushNotificationsSettings && (pushTags == null ? undefined : pushTags.length) > 0 ? (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_settingPickerMulti.default, { label: global.strings("settings_push_scopes"), selected: _PushTags.default.parseTags(userSettings.userDefinedPushTags), values: _PushTags.default.parseTags(pushTags), @@ -365532,23 +341233,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _PushHelper.default.updateTags(); } - }) : undefined, _$$_REQUIRE(_dependencyMap[23]).PlatformUtils.isAndroid() ? (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_settingButton.default, { + }) : undefined, _$$_REQUIRE(_dependencyMap[24]).PlatformUtils.isAndroid() ? (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_settingButton.default, { label: global.strings("accessibility"), button: global.strings("open"), onChange: this.openAccessibilitySettings - }) : undefined, _cmpUtils.default.isConsentNeeded() || _cmpUtils.default.isUSComplianceRequired() ? (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_settingButton.default, { + }) : undefined, _cmpUtils.default.isConsentNeeded() || _cmpUtils.default.isUSComplianceRequired() ? (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_settingButton.default, { label: global.strings("settings_manage_privacy_preferences"), button: global.strings("open"), onChange: this.openPrivacySettings - }) : null, (0, _$$_REQUIRE(_dependencyMap[25]).jsx)(_settingText.default, { - label: global.getMainPSetup().poweredBy || global.strings("powered_by"), + }) : null, (0, _$$_REQUIRE(_dependencyMap[26]).jsx)(_settingText.default, { + label: poweredBy || global.strings("powered_by"), onPress: this.openUrl })] }); } }]); }(_settingsBaseManager.default); -},2488,[3,270,6,7,11,13,14,16,2269,2260,2205,2017,865,2018,1999,2489,2490,2492,2496,2497,2498,801,2129,438,803,179,2019]); +},2371,[3,270,6,7,11,13,14,16,18,2152,2143,2088,1906,865,1928,1888,2372,2373,2375,2379,2380,2381,801,2013,438,803,179,1929]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365675,7 +341376,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }), onChange: _propTypes.default.func.isRequired }; -},2489,[3,270,6,7,11,13,14,568,16,2354,798,179]); +},2372,[3,270,6,7,11,13,14,568,16,2237,798,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365816,7 +341517,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: _propTypes.default.bool, onChange: _propTypes.default.func.isRequired }; -},2490,[3,270,6,7,11,13,14,16,568,18,2491,803,179,2355,2354]); +},2373,[3,270,6,7,11,13,14,16,568,18,2374,803,179,2238,2237]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -365903,7 +341604,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = TecnaviaCheckBox; -},2491,[3,16,568,18,1918,438,179,803]); +},2374,[3,16,568,18,1807,438,179,803]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -366057,7 +341758,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = SettingPicker; -},2492,[3,270,33,4,16,568,18,2354,2493,179]); +},2375,[3,270,33,4,16,568,18,2237,2376,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -366268,16 +341969,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DropDownList; -},2493,[3,22,33,16,568,18,813,2494,803,179,2049]); +},2376,[3,22,33,16,568,18,814,2377,803,179,1938]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); var _reactNative = _$$_REQUIRE(_dependencyMap[3]); @@ -366347,9 +342048,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e classes: ["drop-down-option-image"], toggle: true, active: selected, - children: (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_dropDownDecorators.default.Image, { + children: (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_dropDownDecorators.default.Image, Object.assign({ source: option.image - }) + }, option.imageProps)) })] }) }); @@ -366359,7 +342060,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e option: _propTypes.default.shape({ label: _propTypes.default.string.isRequired, text: _propTypes.default.string, - image: _propTypes.default.any + image: _propTypes.default.any, + imageProps: _propTypes.default.any }), onPress: _propTypes.default.func.isRequired, multiChoice: _propTypes.default.bool, @@ -366370,7 +342072,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e DropDownOption.defaultProps = {}; var _default = exports.default = DropDownOption; -},2494,[3,16,568,18,2495,179,803]); +},2377,[3,568,16,18,2378,179,803]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -366379,17 +342081,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); var _reactNative = _$$_REQUIRE(_dependencyMap[4]); var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _imageIconChooserComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); - var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); + var _imageIconChooserComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); var _excluded = ["text", "style"], _excluded2 = ["label", "style"], @@ -366413,8 +342115,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e image: { width: 40, height: 40, - marginHorizontal: 5, - backgroundColor: "red" + marginHorizontal: 5 }, icon: { fontSize: 25 @@ -366503,7 +342204,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = Option; -},2495,[3,4,16,568,18,800,2090,1918,438,179]); +},2378,[3,4,568,16,18,800,1807,1974,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -366560,7 +342261,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = SettingPickerMulti; -},2496,[3,4,16,568,2492,179]); +},2379,[3,4,16,568,2375,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -366605,7 +342306,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = SettingText; -},2497,[3,16,568,18,803,179,2355,2354]); +},2380,[3,16,568,18,803,179,2238,2237]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -366677,7 +342378,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(); -},2498,[3,6,7,2019]); +},2381,[3,6,7,1929]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -366877,7 +342578,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_settingsBaseManager.default); -},2499,[3,270,6,7,11,13,14,16,1974,843,1975,436,865,2489,2490,2492,2498,179,438,849,550,2373,864]); +},2382,[3,270,6,7,11,13,14,16,1863,844,1864,436,865,2372,2373,2375,2381,179,438,850,550,2256,864]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -366886,37 +342587,39 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - var _GlobalConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - var _NewsmemoryConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + var _GlobalConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - var _TranslationManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + var _NewsmemoryConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - var _NewsmemoryHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + var _TranslationManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); + var _NewsmemoryHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); - var Analytics = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[14])); + var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); - var _settingCheckbox = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); + var Analytics = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[15])); - var _settingPicker = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); + var _settingCheckbox = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); - var _settingsBaseManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[17])); + var _settingPicker = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[17])); + + var _settingsBaseManager = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[18])); 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); } @@ -366948,68 +342651,76 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _global$getActivePSet = global.getActivePSetup(), pSetup = _global$getActivePSet.pSetup, machine = _global$getActivePSet.machine, - changeFavoriteEdition = _global$getActivePSet.changeFavoriteEdition; + changeFavoriteEdition = _global$getActivePSet.changeFavoriteEdition, + translationAvailable = _global$getActivePSet.translationAvailable, + defaultColumnView = _global$getActivePSet.columnView; var newsmemoryConfig = global.getNewsmemoryConfig(); + var network = newsmemoryConfig.network, + translationsAvailable = newsmemoryConfig.translationsAvailable, + currentTranslationLanguage = newsmemoryConfig.currentTranslationLanguage, + graphSize = newsmemoryConfig.graphSize, + limit = newsmemoryConfig.limit, + favoriteEdition = newsmemoryConfig.favoriteEdition, + columnView = newsmemoryConfig.columnView; + var _NewsmemoryHelper$SP = _NewsmemoryHelper.default.SP, + keys = _NewsmemoryHelper$SP.keys, + values = _NewsmemoryHelper$SP.values; var ePaper = this.labels.ePaper; return Object.assign({ label: ePaper }, this.getCollapsedParams(), { - data: this.isCollapsed() ? [] : [enableConnectivityOptions ? (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_settingPicker.default, { + data: this.isCollapsed() ? [] : [enableConnectivityOptions ? (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_settingPicker.default, { label: global.strings("network"), - value: "" + newsmemoryConfig.network, + value: "" + network, values: [{ - image: _$$_REQUIRE(_dependencyMap[19]), + image: _$$_REQUIRE(_dependencyMap[20]), label: global.strings("connection_2"), text: global.strings("connection_2_description"), - value: _$$_REQUIRE(_dependencyMap[20]).DownloadType.FULL - }, { - image: _$$_REQUIRE(_dependencyMap[21]), - label: global.strings("connection_1"), - text: global.strings("connection_1_description"), - value: _$$_REQUIRE(_dependencyMap[20]).DownloadType.MID_AND_LOW + value: _$$_REQUIRE(_dependencyMap[21]).DownloadType.FULL }, { image: _$$_REQUIRE(_dependencyMap[22]), + label: global.strings("connection_1"), + text: global.strings("connection_1_description"), + value: _$$_REQUIRE(_dependencyMap[21]).DownloadType.MID_AND_LOW + }, { + image: _$$_REQUIRE(_dependencyMap[23]), label: global.strings("connection_0"), text: global.strings("connection_0_description"), - value: _$$_REQUIRE(_dependencyMap[20]).DownloadType.LOW_ONLY + value: _$$_REQUIRE(_dependencyMap[21]).DownloadType.LOW_ONLY }], button: global.strings("change"), onChange: function onChange(value) { - newsmemoryConfig.setValue(_NewsmemoryHelper.default.SP.keys.network, "" + value); + newsmemoryConfig.setValue(keys.network, "" + value); } - }) : null, showTranslationCustomization && newsmemoryConfig.translationsAvailable && newsmemoryConfig.translationsAvailable.length > 0 ? (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_settingPicker.default, { + }) : null, showTranslationCustomization && translationAvailable && !_$$_REQUIRE(_dependencyMap[24]).JSUtils.isEmpty(translationsAvailable) ? (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_settingPicker.default, { label: global.strings("settings_translate"), - value: newsmemoryConfig.currentTranslationLanguage || _NewsmemoryHelper.default.SP.values.no_translation, - values: function values() { - var translations = [{ - label: global.strings("disabled"), - value: _NewsmemoryHelper.default.SP.values.translation_disabled - }, { - label: global.strings("settings_translate_original"), - value: _NewsmemoryHelper.default.SP.values.no_translation - }]; - newsmemoryConfig.translationsAvailable.forEach(function (translation) { - translations.push({ - imageProps: { - source: _TranslationManager.default.getTranslationBadgeIcon(translation.language), - style: { - borderRadius: 40, - borderWidth: 1, - borderColor: _$$_REQUIRE(_dependencyMap[23]).colors.black - } - }, - label: translation.name, - value: translation.language - }); - }); - return translations; - }, + value: currentTranslationLanguage || values.no_translation, + values: [{ + label: global.strings("disabled"), + value: values.translation_disabled + }, { + label: global.strings("settings_translate_original"), + value: values.no_translation + }].concat((0, _toConsumableArray2.default)(translationsAvailable.map(function (translation) { + return { + imageProps: { + source: _TranslationManager.default.getTranslationBadgeIcon(translation.language), + style: { + borderRadius: 40, + borderWidth: 1, + borderColor: _$$_REQUIRE(_dependencyMap[24]).colors.black + } + }, + label: translation.name, + value: translation.language + }; + }))), button: global.strings("change"), onChange: function onChange(value) { - newsmemoryConfig.setValue(_NewsmemoryHelper.default.SP.keys.current_translation_language, value); + newsmemoryConfig.setValue(keys.current_translation_language, value); } - }) : null, enableFontSizeCustomization ? (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_settingPicker.default, { + }) : null, enableFontSizeCustomization ? (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_settingPicker.default, { label: global.strings("settings_font_size"), value: newsmemoryConfig.getFontSize(), values: [{ @@ -367036,11 +342747,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }], button: global.strings("change"), onChange: function onChange(value) { - newsmemoryConfig.setValue(_NewsmemoryHelper.default.SP.keys.font_size, value); + newsmemoryConfig.setValue(keys.font_size, value); } - }) : null, enableGraphSizeCustomization ? (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_settingPicker.default, { + }) : null, enableGraphSizeCustomization ? (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_settingPicker.default, { label: global.strings("settings_graph_size"), - value: newsmemoryConfig.graphSize, + value: graphSize, values: [{ value: 75, label: "x0.75 " + global.strings("font_small") @@ -367065,11 +342776,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }], button: global.strings("change"), onChange: function onChange(value) { - newsmemoryConfig.setValue(_NewsmemoryHelper.default.SP.keys.graph_size, value); + newsmemoryConfig.setValue(keys.graph_size, value); } - }) : null, (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_settingPicker.default, { + }) : null, (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_settingPicker.default, { label: global.strings("settings_number_stored_editions"), - value: newsmemoryConfig.limit + 2, + value: limit + 2, values: Array.from({ length: 8 }, function (item, index) { @@ -367082,9 +342793,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onChange: function onChange(value) { newsmemoryConfig.setLimit(value - 2); } - }), changeFavoriteEdition ? (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_settingPicker.default, { + }), changeFavoriteEdition ? (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_settingPicker.default, { label: global.strings("settings_favorite_edition"), - value: newsmemoryConfig.favoriteEdition, + value: favoriteEdition, values: (0, _asyncToGenerator2.default)(function* () { var _yield$API$get = yield _Api.default.get(_Api.default.baseUrl(machine), {}, { pSetup: pSetup, @@ -367092,53 +342803,49 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }), data = _yield$API$get.data; - var result = []; - - if (data.editionsDetails) { - result.push({ - value: "", - label: global.strings("settings_favorite_edition_default_label") - }); - data.editionsDetails.forEach(function (item) { - result.push({ - value: item.val, - label: item.edition - }); - }); + if (_$$_REQUIRE(_dependencyMap[24]).JSUtils.isEmpty(data == null ? undefined : data.editionsDetails)) { + return []; } - return result; + return [{ + value: "", + label: global.strings("settings_favorite_edition_default_label") + }].concat((0, _toConsumableArray2.default)(data.editionsDetails.map(function (_ref2) { + var val = _ref2.val, + edition = _ref2.edition; + return { + value: val, + label: edition + }; + }))); }), button: global.strings("change"), onChange: function () { - var _ref2 = (0, _asyncToGenerator2.default)(function* (value) { - newsmemoryConfig.setValue(_NewsmemoryHelper.default.SP.keys.favorite_edition, value); + var _ref3 = (0, _asyncToGenerator2.default)(function* (value) { + newsmemoryConfig.setValue(keys.favorite_edition, value); var favEdiPSetup = value.split("|")[1]; - var _global$getActivePSet2 = global.getActivePSetup(), - currentPSetup = _global$getActivePSet2.pSetup; - var _yield$global$loadPSe = yield global.loadPSetup(favEdiPSetup), config = _yield$global$loadPSe.config; if (config) { - if (currentPSetup !== favEdiPSetup) { + if (pSetup !== favEdiPSetup) { yield _GlobalConfig.default.initEpaperLayoutConfig(false); yield Analytics.updateAnalytics(); } - _$$_REQUIRE(_dependencyMap[24]).EventRegister.emit(_events.default.NEWSMEMORY_DOWNLOAD_EDITION, {}); + _$$_REQUIRE(_dependencyMap[25]).EventRegister.emit(_events.default.NEWSMEMORY_DOWNLOAD_EDITION, {}); _this.onNavigation("back"); } else {} }); return function (_x) { - return _ref2.apply(this, arguments); + return _ref3.apply(this, arguments); }; }() - }) : null, showArticleColumnViewCustomization && _$$_REQUIRE(_dependencyMap[23]).PlatformUtils.isTablet() ? (0, _$$_REQUIRE(_dependencyMap[18]).jsx)(_settingCheckbox.default, { - value: newsmemoryConfig.columnView > 0, + }) : null, showArticleColumnViewCustomization && _$$_REQUIRE(_dependencyMap[24]).PlatformUtils.isTablet() ? (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_settingCheckbox.default, { + value: columnView > 0, label: global.strings("settings_enable_column_view"), onChange: function onChange() { var isChecked = newsmemoryConfig.columnView > 0; @@ -367146,18 +342853,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e if (isChecked) { newValue = 0; + } else if (defaultColumnView === 0) { + newValue = 1; } else { - var _global$getActivePSet3 = global.getActivePSetup(), - defaultColumnView = _global$getActivePSet3.columnView; - - if (defaultColumnView === 0) { - newValue = 1; - } else { - newValue = defaultColumnView; - } + newValue = defaultColumnView; } - newsmemoryConfig.setValue(_NewsmemoryHelper.default.SP.keys.column_view, "" + newValue); + newsmemoryConfig.setValue(keys.column_view, "" + newValue); return newValue > 0; } }) : null] @@ -367165,7 +342867,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_settingsBaseManager.default); -},2500,[3,270,6,7,11,13,14,16,407,2269,1974,2291,1975,436,2008,2490,2492,2498,179,2501,613,2502,2503,438,550]); +},2383,[3,270,22,6,7,11,13,14,16,407,2152,1863,2174,1864,436,1897,2373,2375,2381,179,2384,613,2385,2386,438,550]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -367177,7 +342879,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "download_full", "type": "png" }); -},2501,[1337]); +},2384,[1244]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -367189,7 +342891,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "download_medium", "type": "png" }); -},2502,[1337]); +},2385,[1244]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -367201,7 +342903,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "download_low", "type": "png" }); -},2503,[1337]); +},2386,[1244]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -367291,7 +342993,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_settingsBaseManager.default); -},2504,[3,270,6,7,11,13,14,16,434,2489,2349,2498,2334,179]); +},2387,[3,270,6,7,11,13,14,16,434,2372,2232,2381,2217,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -367481,7 +343183,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_settingsBaseManager.default); -},2505,[3,270,6,7,11,13,14,16,2009,2179,552,2489,2506,2498,438,2167,179]); +},2388,[3,270,6,7,11,13,14,16,1898,2062,552,2372,2389,2381,438,2050,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -367544,7 +343246,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = SettingMyHome; -},2506,[3,16,568,2354,813,179,2507]); +},2389,[3,16,568,2237,814,179,2390]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -367559,7 +343261,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2507,[2508]); +},2390,[2391]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -368336,7 +344038,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e RssMyHomeConfig.defaultProps = { showAlwaysOnClose: false }; -},2508,[3,22,240,6,7,11,13,14,270,568,16,18,2164,2179,2083,434,2171,2339,2491,800,1918,574,2509,2167,2172,179,803,603,438,2049]); +},2391,[3,22,240,6,7,11,13,14,270,568,16,18,2047,2062,1967,434,2054,2222,2374,800,1807,574,2392,2050,2055,179,803,603,438,1938]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -368496,7 +344198,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fontSize: 40 } }); -},2509,[18,2159,438]); +},2392,[18,2042,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -368511,7 +344213,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2510,[2511]); +},2393,[2394]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -368671,7 +344373,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NewsmemoryHTML5Screen.propTypes = { navigation: _propTypes.default.object }; -},2511,[3,6,7,11,85,13,14,16,18,553,568,2009,1999,438,179,2042,2019,2331]); +},2394,[3,6,7,11,85,13,14,16,18,553,568,1898,1888,438,179,1927,1929,2214]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -368967,7 +344669,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NewsmemoryNativeScreen.propTypes = { navigation: _propTypes.default.object }; -},2512,[3,270,6,7,11,85,13,14,568,16,18,2009,1974,2164,436,2008,1976,434,865,1999,2484,2079,550,438,2334,179,2331]); +},2395,[3,270,6,7,11,85,13,14,568,16,18,1898,1863,2047,436,1897,1865,434,865,1888,2367,1963,550,438,2217,179,2214]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -368982,7 +344684,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2513,[2514]); +},2396,[2397]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -369398,7 +345100,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e GalleryScreen.defaultProps = { considerSafeAreaTop: false }; -},2514,[3,270,4,6,7,11,85,13,14,16,18,568,434,2515,2519,2577,1918,2419,552,438,2182,2074,2331,803,179,2523,2579]); +},2397,[3,270,4,6,7,11,85,13,14,16,18,568,434,2398,2402,2460,1807,2302,552,438,2065,1958,2214,803,179,2406,2462]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -369540,7 +345242,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e visible: true, startIndex: 0 }; -},2515,[3,6,7,11,13,14,16,568,436,2516,550,438,179,2049,2517]); +},2398,[3,6,7,11,13,14,16,568,436,2399,550,438,179,1938,2400]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -369657,7 +345359,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e GalleryThumbnail.defaultProps = { selected: false }; -},2516,[3,6,7,11,13,14,16,568,18,436,2517,574,550,2518,438,179]); +},2399,[3,6,7,11,13,14,16,568,18,436,2400,574,550,2401,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -369683,7 +345385,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderColor: "white" } }); -},2517,[18,438]); +},2400,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ "__packager_asset": true, @@ -369695,7 +345397,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e "name": "ic_not_available", "type": "png" }); -},2518,[1337]); +},2401,[1244]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -369841,7 +345543,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e GalleryPager.defaultProps = { startIndex: 0 }; -},2519,[3,6,7,11,13,14,16,568,2397,179,2520,2524,2568,2571,2574,2576]); +},2402,[3,6,7,11,13,14,16,568,2280,179,2403,2407,2451,2454,2457,2459]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -369856,7 +345558,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2520,[2521]); +},2403,[2404]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -369957,7 +345659,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }), isPlaylist: _propTypes.default.bool }; -},2521,[3,6,7,11,13,14,16,18,568,865,179,2522]); +},2404,[3,6,7,11,13,14,16,18,568,865,179,2405]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -369975,7 +345677,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e paddingTop: _$$_REQUIRE(_dependencyMap[1]).GALLERY_ITEM_HEIGHT } }); -},2522,[18,2523]); +},2405,[18,2406]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370089,7 +345791,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderColor: "white" } }); -},2523,[18,438]); +},2406,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370104,7 +345806,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2524,[2525]); +},2407,[2408]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370182,7 +345884,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e url: _propTypes.default.string.isRequired }) }; -},2525,[3,6,7,11,13,14,16,2526,18,568,179,2567]); +},2408,[3,6,7,11,13,14,16,2409,18,568,179,2450]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -370947,7 +346649,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e customStyles: {}, showDuration: false }; -},2526,[3,4,6,7,11,13,14,16,568,18,1948,2527,2550,179]); +},2409,[3,4,6,7,11,13,14,16,568,18,1837,2410,2433,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -371498,7 +347200,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fullscreen: true } }); -},2527,[3,270,6,7,11,13,14,16,568,18,154,2528,2529,2530,2531,179,2533]); +},2410,[3,270,6,7,11,13,14,16,568,18,154,2411,2412,2413,2414,179,2416]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -371510,7 +347212,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e TTML: 'application/ttml+xml', VTT: 'text/vtt' }; -},2528,[]); +},2411,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -371535,7 +347237,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e TRANSFER: 'CIPhotoEffectTransfer', SEPIA: 'CISepiaTone' }; -},2529,[]); +},2412,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -371548,7 +347250,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e CLEARKEY: 'clearkey', FAIRPLAY: 'fairplay' }; -},2530,[]); +},2413,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -371562,7 +347264,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e cover: null, stretch: null }); -},2531,[3,2532]); +},2414,[3,2415]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { "use strict"; @@ -371586,7 +347288,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; module.exports = keyMirror; -},2532,[]); +},2415,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -371620,7 +347322,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; -},2533,[2534,2535,2536,2546,2547,2548,2537]); +},2416,[2417,2418,2419,2429,2430,2431,2420]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -371647,7 +347349,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var ColorPropType = colorPropType.bind(null, false); ColorPropType.isRequired = colorPropType.bind(null, true); module.exports = ColorPropType; -},2534,[145]); +},2417,[145]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -371659,7 +347361,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); module.exports = DeprecatedEdgeInsetsPropType; -},2535,[568]); +},2418,[568]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -371691,7 +347393,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e resizeMode: _$$_REQUIRE(_dependencyMap[3]).oneOf(['cover', 'contain', 'stretch', 'repeat', 'center']) }); module.exports = DeprecatedImagePropType; -},2536,[2537,2538,2545,568]); +},2419,[2420,2421,2428,568]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -371735,7 +347437,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e collapsable: _$$_REQUIRE(_dependencyMap[2]).bool, needsOffscreenAlphaCompositing: _$$_REQUIRE(_dependencyMap[2]).bool }; -},2537,[2538,2540,568,2544,2535]); +},2420,[2421,2423,568,2427,2418]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -371783,7 +347485,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = DeprecatedStyleSheetPropType; -},2538,[2539]); +},2421,[2422]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -371839,7 +347541,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = deprecatedCreateStrictShapeTypeChecker; -},2539,[31]); +},2422,[31]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -371872,7 +347574,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e elevation: _$$_REQUIRE(_dependencyMap[3]).number }); module.exports = DeprecatedViewStylePropTypes; -},2540,[2541,2542,2543,568,2534]); +},2423,[2424,2425,2426,568,2417]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -371932,7 +347634,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e direction: _$$_REQUIRE(_dependencyMap[0]).oneOf(['inherit', 'ltr', 'rtl']) }; module.exports = LayoutPropTypes; -},2541,[568]); +},2424,[568]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -371946,7 +347648,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e shadowRadius: _$$_REQUIRE(_dependencyMap[1]).number }; module.exports = DeprecatedShadowPropTypesIOS; -},2542,[2534,568]); +},2425,[2417,568]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -372012,14 +347714,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = DeprecatedTransformPropTypes; -},2543,[568]); +},2426,[568]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; module.exports = { DeprecatedAccessibilityRoles: ['none', 'button', 'togglebutton', 'link', 'search', 'image', 'keyboardkey', 'text', 'adjustable', 'imagebutton', 'header', 'summary', 'alert', 'checkbox', 'combobox', 'menu', 'menubar', 'menuitem', 'progressbar', 'radio', 'radiogroup', 'scrollbar', 'spinbutton', 'switch', 'tab', 'tablist', 'timer', 'toolbar'] }; -},2544,[]); +},2427,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -372040,7 +347742,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderBottomRightRadius: _$$_REQUIRE(_dependencyMap[3]).number }); module.exports = ImageStylePropTypes; -},2545,[2541,2542,2543,568,2534]); +},2428,[2424,2425,2426,568,2417]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -372050,7 +347752,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); module.exports = PointPropType; -},2546,[568]); +},2429,[568]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -372113,7 +347815,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e textContentType: _$$_REQUIRE(_dependencyMap[1]).oneOf(['none', 'URL', 'addressCity', 'addressCityAndState', 'addressState', 'countryName', 'creditCardNumber', 'emailAddress', 'familyName', 'fullStreetAddress', 'givenName', 'jobTitle', 'location', 'middleName', 'name', 'namePrefix', 'nameSuffix', 'nickname', 'organizationName', 'postalCode', 'streetAddressLine1', 'streetAddressLine2', 'sublocality', 'telephoneNumber', 'username', 'password', 'newPassword', 'oneTimeCode']), showSoftInputOnFocus: _$$_REQUIRE(_dependencyMap[1]).bool }); -},2547,[2537,568,2534,2548]); +},2430,[2420,568,2417,2431]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -372142,7 +347844,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e disabled: _$$_REQUIRE(_dependencyMap[2]).bool, dataDetectorType: _$$_REQUIRE(_dependencyMap[2]).oneOf(DataDetectorTypes) }; -},2548,[2538,2549,568,2535,2534]); +},2431,[2421,2432,568,2418,2417]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -372171,7 +347873,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e writingDirection: _$$_REQUIRE(_dependencyMap[2]).oneOf(['auto', 'ltr', 'rtl']) }); module.exports = DeprecatedTextStylePropTypes; -},2549,[2540,2534,568]); +},2432,[2423,2417,568]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -372205,7 +347907,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }; -},2550,[2551,2552,2553,2563,2564,2565,2554]); +},2433,[2434,2435,2436,2446,2447,2448,2437]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -372232,7 +347934,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var ColorPropType = colorPropType.bind(null, false); ColorPropType.isRequired = colorPropType.bind(null, true); module.exports = ColorPropType; -},2551,[145]); +},2434,[145]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -372244,7 +347946,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); module.exports = DeprecatedEdgeInsetsPropType; -},2552,[568]); +},2435,[568]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -372276,7 +347978,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e resizeMode: _$$_REQUIRE(_dependencyMap[3]).oneOf(['cover', 'contain', 'stretch', 'repeat', 'center']) }); module.exports = DeprecatedImagePropType; -},2553,[2554,2555,2562,568]); +},2436,[2437,2438,2445,568]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -372320,7 +348022,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e collapsable: _$$_REQUIRE(_dependencyMap[2]).bool, needsOffscreenAlphaCompositing: _$$_REQUIRE(_dependencyMap[2]).bool }; -},2554,[2555,2557,568,2561,2552]); +},2437,[2438,2440,568,2444,2435]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -372368,7 +348070,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = DeprecatedStyleSheetPropType; -},2555,[2556]); +},2438,[2439]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -372424,7 +348126,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = deprecatedCreateStrictShapeTypeChecker; -},2556,[31]); +},2439,[31]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -372457,7 +348159,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e elevation: _$$_REQUIRE(_dependencyMap[3]).number }); module.exports = DeprecatedViewStylePropTypes; -},2557,[2558,2559,2560,568,2551]); +},2440,[2441,2442,2443,568,2434]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -372517,7 +348219,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e direction: _$$_REQUIRE(_dependencyMap[0]).oneOf(['inherit', 'ltr', 'rtl']) }; module.exports = LayoutPropTypes; -},2558,[568]); +},2441,[568]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -372531,7 +348233,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e shadowRadius: _$$_REQUIRE(_dependencyMap[1]).number }; module.exports = DeprecatedShadowPropTypesIOS; -},2559,[2551,568]); +},2442,[2434,568]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -372597,14 +348299,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } module.exports = DeprecatedTransformPropTypes; -},2560,[568]); +},2443,[568]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; module.exports = { DeprecatedAccessibilityRoles: ['none', 'button', 'togglebutton', 'link', 'search', 'image', 'keyboardkey', 'text', 'adjustable', 'imagebutton', 'header', 'summary', 'alert', 'checkbox', 'combobox', 'menu', 'menubar', 'menuitem', 'progressbar', 'radio', 'radiogroup', 'scrollbar', 'spinbutton', 'switch', 'tab', 'tablist', 'timer', 'toolbar'] }; -},2561,[]); +},2444,[]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -372625,7 +348327,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderBottomRightRadius: _$$_REQUIRE(_dependencyMap[3]).number }); module.exports = ImageStylePropTypes; -},2562,[2558,2559,2560,568,2551]); +},2445,[2441,2442,2443,568,2434]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -372635,7 +348337,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); module.exports = PointPropType; -},2563,[568]); +},2446,[568]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -372698,7 +348400,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e textContentType: _$$_REQUIRE(_dependencyMap[1]).oneOf(['none', 'URL', 'addressCity', 'addressCityAndState', 'addressState', 'countryName', 'creditCardNumber', 'emailAddress', 'familyName', 'fullStreetAddress', 'givenName', 'jobTitle', 'location', 'middleName', 'name', 'namePrefix', 'nameSuffix', 'nickname', 'organizationName', 'postalCode', 'streetAddressLine1', 'streetAddressLine2', 'sublocality', 'telephoneNumber', 'username', 'password', 'newPassword', 'oneTimeCode']), showSoftInputOnFocus: _$$_REQUIRE(_dependencyMap[1]).bool }); -},2564,[2554,568,2551,2565]); +},2447,[2437,568,2434,2448]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -372727,7 +348429,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e disabled: _$$_REQUIRE(_dependencyMap[2]).bool, dataDetectorType: _$$_REQUIRE(_dependencyMap[2]).oneOf(DataDetectorTypes) }; -},2565,[2555,2566,568,2552,2551]); +},2448,[2438,2449,568,2435,2434]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -372756,7 +348458,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e writingDirection: _$$_REQUIRE(_dependencyMap[2]).oneOf(['auto', 'ltr', 'rtl']) }); module.exports = DeprecatedTextStylePropTypes; -},2566,[2557,2551,568]); +},2449,[2440,2434,568]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -372772,7 +348474,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e justifyContent: "center" } }); -},2567,[18]); +},2450,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -372787,7 +348489,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2568,[2569]); +},2451,[2452]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -372878,7 +348580,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e thumbnail: _propTypes.default.string }) }; -},2569,[3,6,7,11,13,14,16,18,568,574,2018,2090,179,803,2570,1918]); +},2452,[3,6,7,11,13,14,16,18,568,574,1928,1974,179,803,2453,1807]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -372906,7 +348608,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fontSize: 80 } }); -},2570,[18,438]); +},2453,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -372921,7 +348623,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2571,[2572]); +},2454,[2455]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -373000,7 +348702,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e url: _propTypes.default.string.isRequired }) }; -},2572,[3,6,7,11,13,14,16,568,18,179,2573,2042,851]); +},2455,[3,6,7,11,13,14,16,568,18,179,2456,1927,852]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -373017,7 +348719,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2573,[18,438]); +},2456,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -373032,7 +348734,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2574,[2575]); +},2457,[2458]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -373187,7 +348889,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: _propTypes.default.number }) }; -},2575,[3,270,6,7,11,13,14,16,18,568,552,434,574,438,179]); +},2458,[3,270,6,7,11,13,14,16,18,568,552,434,574,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -373211,7 +348913,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e borderColor: "white" } }); -},2576,[18,438]); +},2459,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -373280,7 +348982,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e startIndex: _propTypes.default.number.isRequired, total: _propTypes.default.number.isRequired }; -},2577,[3,6,7,11,13,14,16,568,800,2578,179]); +},2460,[3,6,7,11,13,14,16,568,800,2461,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -373299,7 +349001,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e textAlignVertical: "center" } }); -},2578,[18,2523]); +},2461,[18,2406]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -373314,7 +349016,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2579,[2580]); +},2462,[2463]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -373452,7 +349154,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e maxLines: 1, color: _$$_REQUIRE(_dependencyMap[12]).colors.white }; -},2580,[3,6,7,11,13,14,16,568,18,800,1918,179,438]); +},2463,[3,6,7,11,13,14,16,568,18,800,1807,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -373580,7 +349282,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NavigatorBaseScreen.propTypes = { navigation: _propTypes.default.object }; -},2581,[3,6,7,11,13,14,16,568,2123]); +},2464,[3,6,7,11,13,14,16,568,2007]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -373840,7 +349542,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e RssComponent.INTERVAL_ID = -1; RssComponent.INTERSTITIAL_TIMER = undefined; -},2582,[3,270,6,7,11,85,13,14,16,2583,2317,436,2179,2260,1999,2746,2329,2318,2009,2184,2008,2766,550,438,2334,179,2330,2581]); +},2465,[3,270,6,7,11,85,13,14,16,2466,2200,436,2062,2143,1888,2629,2212,2201,1898,2067,1897,2649,550,438,2217,179,2213,2464]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -373849,21 +349551,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _webScreen = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + var _navigationUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - var _drawerNavigator = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + var _styleUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - var CommonHeader = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4])); + var _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var _verticalJobNavigator = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + var _webScreen = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); var _verticalEventNavigator = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _navigationUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _verticalJobNavigator = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var CommonHeader = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8])); - var _styleUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + var _drawerNavigator = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); 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); } @@ -373873,10 +349575,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e function _getInitialRouteName() { var screen = "DrawerNavigator"; + var userSettings = global.getUserSettings(); - if (!global.getUserSettings().tutorialAlreadyShown) { + if (!userSettings) { + return screen; + } + + var tutorialAlreadyShown = userSettings.tutorialAlreadyShown; + + if (!tutorialAlreadyShown) { screen = "TutorialScreen"; - global.getUserSettings().tutorialAlreadyShowTrue(); + userSettings.tutorialAlreadyShowTrue(); } return screen; @@ -374051,7 +349760,11697 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }); } -},2583,[3,16,2328,2584,2336,2629,2686,2165,1999,2318,2041,438,179,2357,2050,2737,2513,2740,2487,2742]); +},2466,[3,16,2048,2201,1888,2211,2467,2567,2219,2588,1926,438,179,2240,1939,2620,2396,2623,2370,2625]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = VerticalEventNavigator; + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[2]); + + var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _styleUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); + + var Header = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); + + 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); } + + 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; } + + var Stack = _NavigationService.default.navigator.createStack(); + + var Tab = _NavigationService.default.navigator.createBottomTab(); + + function VerticalTabNavigator(props) { + return (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(Tab.Navigator, { + screenOptions: function screenOptions(tabProps) { + return { + headerShown: false, + gesturesEnabled: false, + tabBarShowLabel: false, + swipeEnabled: false, + tabBarStyle: { + backgroundColor: _$$_REQUIRE(_dependencyMap[9]).Css.getDefaultBackgroundColor(), + paddingBottom: 0, + height: 50 + }, + tabBarIcon: function tabBarIcon(_ref) { + var focused = _ref.focused; + var routeName = tabProps.route.name; + var iconName; + + if (routeName === "VerticalHomeScreen") { + iconName = "home"; + } else if (routeName === "VerticalFiltersScreen") { + iconName = "user-cog"; + } else if (routeName === "VerticalListScreen") { + iconName = "home"; + } else if (routeName === "VerticalSavedSearchScreen") { + iconName = "search"; + } else if (routeName === "VerticalFavoritesScreen") { + iconName = "heart"; + } + + var filtersIcon = false; + + var _getNavigationParams = (0, _$$_REQUIRE(_dependencyMap[10]).getNavigationParams)(tabProps), + _getNavigationParams$ = _getNavigationParams.filters, + filters = _getNavigationParams$ === undefined ? {} : _getNavigationParams$, + apiHomeOverride = _getNavigationParams.apiHomeOverride; + + var getParams = {}; + + if (apiHomeOverride) { + var _StringUtils$segmentU = _$$_REQUIRE(_dependencyMap[11]).StringUtils.segmentUrl(apiHomeOverride); + + getParams = _StringUtils$segmentU.getParams; + } + + if (apiHomeOverride && _$$_REQUIRE(_dependencyMap[11]).JSUtils.equals(filters, getParams)) { + filtersIcon = false; + } else if (filters && Object.keys(filters).length) { + filtersIcon = true; + } + + return (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_reactNative.View, { + children: [(0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_iconComponent.default, { + type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, + name: iconName, + size: _$$_REQUIRE(_dependencyMap[11]).PlatformUtils.isTablet() || !_deviceUtils.default.isPortrait() ? 20 : 25, + color: focused ? (0, _$$_REQUIRE(_dependencyMap[12]).getEventColor)() : _$$_REQUIRE(_dependencyMap[11]).colors.grey400 + }), filtersIcon ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_reactNative.View, { + style: { + position: "absolute", + right: -5, + top: -5, + zIndex: 1 + }, + children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_iconComponent.default, { + type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, + name: "filter", + size: 10, + color: focused ? _$$_REQUIRE(_dependencyMap[11]).colors.md_red_900 : _$$_REQUIRE(_dependencyMap[11]).colors.grey400 + }) + }) : null] + }); + } + }; + }, + children: [(0, _$$_REQUIRE(_dependencyMap[8]).jsx)(Tab.Screen, { + name: "VerticalListScreen", + children: function children(tabProps) { + var _getNavigationParams2 = (0, _$$_REQUIRE(_dependencyMap[10]).getNavigationParams)(props), + user = _getNavigationParams2.user, + pass = _getNavigationParams2.pass, + portal = _getNavigationParams2.portal, + apiHomeOverride = _getNavigationParams2.apiHomeOverride; + + return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[13]).EventListScreen, Object.assign({ + apiHomeOverride: apiHomeOverride, + user: user, + pass: pass, + portal: portal + }, tabProps)); + } + }), (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(Tab.Screen, { + name: "VerticalFiltersScreen", + children: function children(tabProps) { + var _getNavigationParams3 = (0, _$$_REQUIRE(_dependencyMap[10]).getNavigationParams)(props), + user = _getNavigationParams3.user, + pass = _getNavigationParams3.pass, + portal = _getNavigationParams3.portal, + extraSearchField = _getNavigationParams3.extraSearchField; + + return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[14]).EventFilterScreen, Object.assign({ + user: user, + pass: pass, + portal: portal, + extraSearchField: extraSearchField + }, tabProps)); + } + }), (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(Tab.Screen, { + name: "VerticalFavoritesScreen", + children: function children(tabProps) { + var _getNavigationParams4 = (0, _$$_REQUIRE(_dependencyMap[10]).getNavigationParams)(props), + user = _getNavigationParams4.user, + pass = _getNavigationParams4.pass, + portal = _getNavigationParams4.portal; + + return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[15]).EventFavoritesScreen, Object.assign({ + user: user, + pass: pass, + portal: portal + }, tabProps)); + } + })] + }); + } + + function VerticalEventNavigator() { + var _global$getRssIndex = global.getRssIndex(), + actionBarBackgroundColor = _global$getRssIndex.actionBarBackgroundColor; + + var backgroundColor = _styleUtils.default.fixColorForDarkTheme(actionBarBackgroundColor); + + var getDefaultHeader = function getDefaultHeader(navigation) { + var hasRight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[16]).ActionBar, { + considerSafeAreaTop: true, + backgroundColor: backgroundColor, + left: Header._getHeaderLeftButtonsBackButtonOnly(navigation, (0, _$$_REQUIRE(_dependencyMap[12]).getEventColor)()), + center: Header._getHeader(global.strings("local_events"), global.strings("powered_by_who", { + who: "" + }), function () { + navigation.navigate("VerticalWebScreen", { + url: (0, _$$_REQUIRE(_dependencyMap[12]).getCitySparkUrl)() + }); + }, (0, _$$_REQUIRE(_dependencyMap[12]).getCitySparkLogo)()), + right: hasRight ? Header._getHeaderRightButton(navigation, (0, _$$_REQUIRE(_dependencyMap[12]).getEventColor)(), "", global.strings("btn_add_event"), function () { + navigation.navigate("VerticalWebScreen", { + url: (0, _$$_REQUIRE(_dependencyMap[12]).getNewEventUrl)() + }); + }) : null + }); + }; + + return (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(Stack.Navigator, { + screenOptions: _NavigationService.default.getStackScreenOptions(), + initialRouteName: "VerticalTabNavigator", + children: [(0, _$$_REQUIRE(_dependencyMap[8]).jsx)(Stack.Screen, { + name: "VerticalTabNavigator", + component: VerticalTabNavigator, + options: function options(_ref2) { + var navigation = _ref2.navigation; + return { + header: function header() { + return getDefaultHeader(navigation, true); + } + }; + } + }), (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(Stack.Screen, { + name: "VerticalDetailScreen", + component: _$$_REQUIRE(_dependencyMap[17]).EventDetailScreen, + options: function options(_ref3) { + var navigation = _ref3.navigation; + return { + header: function header() { + return getDefaultHeader(navigation, true); + } + }; + } + }), (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(Stack.Screen, { + name: "VerticalSavedSearchScreen", + options: function options(_ref4) { + var navigation = _ref4.navigation; + return { + header: function header() { + return getDefaultHeader(navigation, true); + }, + gesturesEnabled: false + }; + }, + children: function children(props) { + var _getNavigationParams5 = (0, _$$_REQUIRE(_dependencyMap[10]).getNavigationParams)(props), + user = _getNavigationParams5.user, + pass = _getNavigationParams5.pass, + portal = _getNavigationParams5.portal, + _getNavigationParams6 = _getNavigationParams5.labels, + labels = _getNavigationParams6 === undefined ? [] : _getNavigationParams6; + + return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[18]).EventSearchScreen, Object.assign({ + user: user, + pass: pass, + portal: portal, + labels: labels + }, props)); + } + }), (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(Stack.Screen, { + name: "VerticalWebScreen", + component: _$$_REQUIRE(_dependencyMap[19]).EventWebScreen, + options: function options(_ref5) { + var navigation = _ref5.navigation; + return { + header: function header() { + return getDefaultHeader(navigation); + }, + gesturesEnabled: false + }; + } + })] + }); + } +},2467,[3,16,18,434,2201,1888,1807,2468,179,803,2214,438,2470,2471,2505,2551,2219,2557,2559,2565]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports._getHeader = _getHeader; + exports._getHeaderLeftButtonsBackButtonOnly = _getHeaderLeftButtonsBackButtonOnly; + exports._getHeaderRightButton = _getHeaderRightButton; + exports._getLogo = _getLogo; + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[2]); + + var _buttonComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _fontText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4])); + + var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5])); + + var _imageComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + 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); } + + 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; } + + function _getLogo(url, requireDefaultObj) { + return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_$$_REQUIRE(_dependencyMap[8]).Css, { + classes: ["navigation-header-logo"], + children: (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_imageComponent.default, { + resizeMode: "contain", + style: _$$_REQUIRE(_dependencyMap[9]).styles.headerLogo, + source: url ? { + uri: url + } : requireDefaultObj + }) + }); + } + + function _getHeaderLeftButtonsBackButtonOnly(navigation, color) { + var buttonStyle = [_$$_REQUIRE(_dependencyMap[9]).styles.button, { + backgroundColor: _$$_REQUIRE(_dependencyMap[8]).Css.getDefaultBackgroundColor() + }]; + var iconStyle = [_$$_REQUIRE(_dependencyMap[9]).styles.icon, { + color: color + }]; + + if (_$$_REQUIRE(_dependencyMap[10]).PlatformUtils.isiPhone()) { + buttonStyle.push(_$$_REQUIRE(_dependencyMap[9]).styles.buttonIphone); + iconStyle.push(_$$_REQUIRE(_dependencyMap[9]).styles.iconIphone); + } + + return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[9]).styles.container, + children: (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_buttonComponent.default, { + style: buttonStyle, + onPress: function onPress() { + navigation.goBack(null); + }, + children: (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_iconComponent.default, { + name: _$$_REQUIRE(_dependencyMap[10]).PlatformUtils.isRTL() ? "arrow-forward" : "arrow-back", + style: iconStyle, + type: _iconComponent.TecnaviaIconType.MATERIAL_ICONS + }) + }) + }); + } + + function _getHeaderRightButton(navigation, color, iconName, text, callback) { + var iconStyle = [_$$_REQUIRE(_dependencyMap[9]).styles.icon, { + color: color, + backgroundColor: _$$_REQUIRE(_dependencyMap[8]).Css.getDefaultBackgroundColor() + }]; + + if (_$$_REQUIRE(_dependencyMap[10]).PlatformUtils.isiPhone()) { + iconStyle.push(_$$_REQUIRE(_dependencyMap[9]).styles.iconIphone); + } + + return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_reactNative.View, { + style: [_$$_REQUIRE(_dependencyMap[9]).styles.container], + children: (0, _$$_REQUIRE(_dependencyMap[7]).jsxs)(_buttonComponent.default, { + style: _$$_REQUIRE(_dependencyMap[9]).styles.rightButton, + onPress: callback, + children: [(0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_fontText.default, { + style: { + color: color + }, + children: text + }), (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_iconComponent.default, { + name: iconName, + style: iconStyle, + type: _iconComponent.TecnaviaIconType.MATERIAL_ICONS + })] + }) + }); + } + + function _getHeader(title, subtitle, callback, imageUrl) { + var color = _$$_REQUIRE(_dependencyMap[8]).Css.getDefaultForegroundColor(); + + return (0, _$$_REQUIRE(_dependencyMap[7]).jsxs)(_reactNative.TouchableOpacity, { + style: { + position: "absolute", + left: 0, + right: 0, + alignItems: "center", + zIndex: -10 + }, + onPress: callback, + children: [(0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_fontText.default, { + style: [_$$_REQUIRE(_dependencyMap[9]).styles.titleText, { + color: color + }], + type: _fontText.Type.medium, + children: title + }), (0, _$$_REQUIRE(_dependencyMap[7]).jsxs)(_reactNative.View, { + style: { + display: "flex", + flexDirection: "row", + alignItems: "flex-end" + }, + children: [(0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_fontText.default, { + style: [_$$_REQUIRE(_dependencyMap[9]).styles.subtitleText, { + color: color + }], + children: subtitle + }), (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_$$_REQUIRE(_dependencyMap[8]).Css, { + classes: ["navigation-header-logo"], + children: (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_reactNative.Image, { + style: _$$_REQUIRE(_dependencyMap[9]).styles.image, + source: { + uri: imageUrl + } + }) + })] + })] + }); + } +},2468,[3,16,18,2222,800,1807,574,179,803,2469,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var styles = exports.styles = _reactNative.StyleSheet.create({ + headerTitle: { + position: "absolute", + top: 0, + start: 0, + bottom: 0, + end: 0, + resizeMode: "center", + width: null, + height: null + }, + headerLogo: { + position: "absolute", + top: 0, + start: 0, + bottom: 0, + end: 0, + width: null, + height: null, + marginHorizontal: 25, + marginVertical: 5 + }, + container: { + flexWrap: "wrap", + alignItems: "flex-start", + flexDirection: "row" + }, + icon: { + fontSize: 24, + marginEnd: 0, + marginLeft: 0, + marginStart: 0, + marginRight: 0 + }, + iconIphone: { + fontSize: 16 + }, + button: { + alignItems: "center", + justifyContent: "center", + width: 40, + height: 40, + borderRadius: 40, + marginEnd: 5, + marginStart: 5 + }, + buttonIphone: { + width: 30, + height: 30 + }, + rightButton: { + alignItems: "center", + justifyContent: "center", + borderRadius: 40, + marginEnd: 10, + marginStart: 10, + flexDirection: "row" + }, + titleText: { + fontSize: 17 + }, + subtitleText: { + fontSize: 8, + fontStyle: "italic" + }, + image: { + width: 39, + height: 14 + } + }); +},2469,[18]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.getNewEventUrl = exports.getJobUrlPageById = exports.getJobTypes = exports.getJobType = exports.getJobLogo = exports.getJobDurations = exports.getJobDuration = exports.getJobColor = exports.getJobBackground = exports.getFeaturedEventApi = exports.getEventSchedule = exports.getEventColor = exports.getEventCategories = exports.getEventById = exports.getEventBackground = exports.getEventApi = exports.getCitySparkUrl = exports.getCitySparkLogo = undefined; + + var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var getJobUrlPageById = exports.getJobUrlPageById = function getJobUrlPageById(id) { + return "http://jobview.local-jobs.monster.com/Job-US-" + id + ".aspx"; + }; + + var getJobColor = exports.getJobColor = function getJobColor() { + return _$$_REQUIRE(_dependencyMap[2]).colors.md_purple_800; + }; + + var getEventApi = exports.getEventApi = function getEventApi() { + return "https://api.cityspark.com/v1/events"; + }; + + var getFeaturedEventApi = exports.getFeaturedEventApi = function getFeaturedEventApi() { + return "https://api.cityspark.com/v1/Promotions/Flat"; + }; + + var getEventCategories = exports.getEventCategories = function getEventCategories() { + return "https://api.cityspark.com/v1/categories"; + }; + + var getEventById = exports.getEventById = function getEventById(id) { + return "https://api.cityspark.com/v1/event/" + id; + }; + + var getEventColor = exports.getEventColor = function getEventColor() { + return _$$_REQUIRE(_dependencyMap[2]).colors.md_blue_800; + }; + + var getNewEventUrl = exports.getNewEventUrl = function getNewEventUrl() { + return "https://portal.cityspark.com/EventEntry/EventEntry/joplinglobe"; + }; + + var getCitySparkUrl = exports.getCitySparkUrl = function getCitySparkUrl() { + return "https://www.cityspark.com"; + }; + + var getCitySparkLogo = exports.getCitySparkLogo = function getCitySparkLogo() { + return "https://www.cityspark.com/wp-content/uploads/2019/05/citysparklogoSmall.png"; + }; + + var getJobLogo = exports.getJobLogo = function getJobLogo() { + return _Api.default.baseUrl() + "?pSetup=" + global.getActivePSetup().pSetup + "&action=jobs&view=logo"; + }; + + var getJobBackground = exports.getJobBackground = function getJobBackground() { + return "https://media.newjobs.com/homepage/images/hero-img/bg_purple_7.jpg"; + }; + + var getEventBackground = exports.getEventBackground = function getEventBackground() { + return "https://cdn.pixabay.com/photo/2016/03/28/09/52/firework-1285264_960_720.jpg"; + }; + + var getJobDurations = exports.getJobDurations = function getJobDurations() { + return [{ + text: "All" + }, { + text: "Full Time", + value: "FULLTIME" + }, { + text: "Part Time", + value: "PARTTIME" + }]; + }; + + var getJobTypes = exports.getJobTypes = function getJobTypes() { + return [{ + text: "All" + }, { + text: "Permanent", + value: "1" + }, { + text: "Temporary", + value: "2" + }, { + text: "Internship", + value: "3" + }]; + }; + + var getEventSchedule = exports.getEventSchedule = function getEventSchedule() { + return [{ + text: "This week" + }, { + text: "Next week" + }, { + text: "This weekend" + }, { + text: "Today" + }, { + text: "Tomorrow" + }, { + text: "Custom Date Range" + }]; + }; + + var getJobDuration = exports.getJobDuration = function getJobDuration(value) { + return getJobDurations().find(function (duration) { + return duration.value === value; + }).text; + }; + + var getJobType = exports.getJobType = function getJobType(value) { + return getJobTypes().find(function (type) { + return type.value === value; + }).text; + }; +},2470,[3,407,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2471,[2472]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.EventListScreen = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[10]); + + var _eventBaseScreen = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var EventListScreen = exports.EventListScreen = function (_EventBaseScreen) { + function EventListScreen(props) { + var _this; + + (0, _classCallCheck2.default)(this, EventListScreen); + _this = _callSuper(this, EventListScreen, [props]); + _this.state = { + searches: [], + loading: true + }; + return _this; + } + + (0, _inherits2.default)(EventListScreen, _EventBaseScreen); + return (0, _createClass2.default)(EventListScreen, [{ + key: "componentDidMount", + value: function () { + var _componentDidMount = (0, _asyncToGenerator2.default)(function* () { + try { + yield this.loadPromotions(); + this.setState({ + loading: false + }); + } catch (error) {} + }); + + function componentDidMount() { + return _componentDidMount.apply(this, arguments); + } + + return componentDidMount; + }() + }, { + key: "didFocus", + value: function didFocus() { + (0, _get2.default)((0, _getPrototypeOf2.default)(EventListScreen.prototype), "didFocus", this).call(this); + + this._retrieveData(); + } + }, { + key: "_retrieveData", + value: function _retrieveData() { + var searchVerticalManager = global.getVerticalsConfig().getEvents(); + var result = searchVerticalManager.getSearches(); + this.setState({ + searches: result + }); + } + }, { + key: "render", + value: function render() { + var loading = this.state.loading; + + if (loading) { + return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_reactNative.View, { + style: { + flex: 1, + backgroundColor: _$$_REQUIRE(_dependencyMap[13]).Css.getDefaultBackgroundColor() + } + }); + } + + var searchVerticalManager = global.getVerticalsConfig().getEvents(); + var _this$props = this.props, + portal = _this$props.portal, + apiHomeOverride = _this$props.apiHomeOverride; + var filters = (0, _$$_REQUIRE(_dependencyMap[14]).getNavigationParams)(this.props).filters || {}; + var apiToOverride; + + if (filters && (Object.keys(filters).length > 0 || !apiHomeOverride)) { + filters.includeLabels = true; + filters.portal = portal; + } else { + apiToOverride = apiHomeOverride; + } + + return this.renderList(filters, searchVerticalManager, apiToOverride); + } + }]); + }(_eventBaseScreen.default); + + EventListScreen.propTypes = { + apiHomeOverride: _propTypes.default.string, + portal: _propTypes.default.string.isRequired, + pass: _propTypes.default.string.isRequired, + user: _propTypes.default.string.isRequired, + navigation: _propTypes.default.shape({ + getParam: _propTypes.default.func.isRequired + }) + }; +},2472,[3,270,6,7,11,85,13,14,568,16,18,2473,179,803,2214]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[9]); + + var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _AdsHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + var _tecnaviaPlatformUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + + var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); + + var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[14])); + + var _imageComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var EventBaseScreen = exports.default = function (_NavigationBaseScreen) { + function EventBaseScreen(props) { + var _this; + + (0, _classCallCheck2.default)(this, EventBaseScreen); + _this = _callSuper(this, EventBaseScreen, [props]); + _this.state = { + sortValue: 0 + }; + return _this; + } + + (0, _inherits2.default)(EventBaseScreen, _NavigationBaseScreen); + return (0, _createClass2.default)(EventBaseScreen, [{ + key: "loadPromotions", + value: function () { + var _loadPromotions = (0, _asyncToGenerator2.default)(function* () { + var _this2 = this; + + var portal = this.props.portal; + var params = (0, _$$_REQUIRE(_dependencyMap[16]).getNavigationParams)(this.props); + var filter = { + portal: portal, + numberOfDays: 365, + asOfDate: _$$_REQUIRE(_dependencyMap[17]).DateUtils.getDateString().substring(0, 10) + }; + var _params$user = params.user, + user = _params$user === undefined ? "" : _params$user, + _params$pass = params.pass, + pass = _params$pass === undefined ? "" : _params$pass; + var username = user; + var password = pass; + var config = { + auth: { + username: username, + password: password + } + }; + this.featuredIds = []; + this.enhancedIds = []; + this.ads = []; + + try { + var featuredResults = yield _Api.default.get((0, _$$_REQUIRE(_dependencyMap[18]).getFeaturedEventApi)(), config, filter); + var model = global.getAdsConfig().getAdEvent(); + var ad = global.getAdsConfig().getAdComponent(model); + this.notice = { + key: "notice", + data: ad + }; + featuredResults.data.forEach(function (event) { + if (event.eventId && event.type === "Featured" && !_this2.featuredIds.includes(event.eventId)) { + _this2.featuredIds.push(event.eventId); + } + + if (event.eventId && event.type === "Enhanced") { + _this2.enhancedIds.push(event.eventId); + } + + if (event.eventId && event.type === "Premium") { + _this2.featuredIds.push(event.eventId); + + _this2.enhancedIds.push(event.eventId); + } + + if (event.promoImage && event.type === "Display Ad") { + _this2.ads.push({ + isAd: true, + promoImage: event.promoImage, + destinationUrl: event.destinationUrl + }); + } + }); + this.ads.push({ + isAd: true + }); + } catch (error) {} + }); + + function loadPromotions() { + return _loadPromotions.apply(this, arguments); + } + + return loadPromotions; + }() + }, { + key: "handleBackButton", + value: function handleBackButton() { + var navigation = this.props.navigation; + navigation.goBack(null); + return (0, _get2.default)((0, _getPrototypeOf2.default)(EventBaseScreen.prototype), "handleBackButton", this).call(this); + } + }, { + key: "getClosestEventDate", + value: function getClosestEventDate(event) { + var start = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new Date(); + var numberOfEventInstances = event.instances.length; + var startDate; + var outputResult = ""; + + var now = _$$_REQUIRE(_dependencyMap[17]).DateUtils.getMomentStartOfDay(start); + + for (var i = 0; i < numberOfEventInstances; i++) { + startDate = _$$_REQUIRE(_dependencyMap[17]).DateUtils.getMomentDate(event.instances[i].startDateTime); + + if (startDate >= now) { + outputResult += startDate.utc().format("dddd, MMMM D"); + return outputResult; + } + } + + return outputResult; + } + }, { + key: "getSortedSections", + value: function getSortedSections(items, sorting, filters) { + var _this3 = this; + + var sections = []; + var keys = []; + var eventsAdded = []; + items.forEach(function (item) { + var newSection = ""; + newSection = _this3.getClosestEventDate(item, filters.startDate); + + if (newSection) { + var eventId = String(item.eventId); + + if (!keys.includes(newSection)) { + keys.push(newSection); + sections.push({ + title: newSection, + data: [item] + }); + eventsAdded.push(eventId); + } else if (!eventsAdded.includes(eventId)) { + var index = sections.findIndex(function (section) { + return section.title === newSection; + }); + + if (index > -1) { + eventsAdded.push(eventId); + sections[index].data.push(item); + } + } + } + }); + var numberOfAds = this.ads.length; + + if (numberOfAds) { + var counter = 0; + var adIndex = 0; + + for (var i = 0; i < sections.length; i++) { + for (var k = 0; k < sections[i].data.length; k++) { + counter += 1; + + if (counter === 3 || (counter - 3) % 10 === 0) { + sections[i].data.splice(k, 0, this.ads[adIndex % numberOfAds]); + adIndex += 1; + } + } + } + + sections[0].data.splice(0, 0, this.notice); + } + + return sections; + } + }, { + key: "getMapProps", + value: function getMapProps() { + var _this$props = this.props, + navigation = _this$props.navigation, + user = _this$props.user, + pass = _this$props.pass, + portal = _this$props.portal; + return { + enable: true, + renderCallout: this.renderCallout, + titleKey: "name", + itemKey: "eventId", + latitudeKey: "location.latitude", + longitudeKey: "location.longitude", + getMarkerIcon: _$$_REQUIRE(_dependencyMap[19]).eventIcon, + onItemPress: function onItemPress(clicked) { + navigation.navigate("VerticalDetailScreen", { + id: clicked.eventId, + user: user, + pass: pass, + portal: portal + }); + } + }; + } + }, { + key: "getOrderProps", + value: function getOrderProps() { + var color = _$$_REQUIRE(_dependencyMap[20]).Css.getDefaultBackgroundColor(); + + var iconStyle = { + fontSize: 20, + height: 22, + color: color + }; + var activeIconStyle = { + fontSize: 20, + height: 22, + color: (0, _$$_REQUIRE(_dependencyMap[18]).getEventColor)() + }; + var commonProps = { + type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, + style: iconStyle + }; + return { + items: [[{ + label: global.strings("sort_by_popularity"), + Component: (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_iconComponent.default, Object.assign({ + name: "star" + }, commonProps)), + ActiveComponent: (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_iconComponent.default, Object.assign({ + name: "star" + }, commonProps, { + style: activeIconStyle + })), + param: EventBaseScreen.SORT_POPULARITY + }], [{ + label: global.strings("sort_by_date"), + Component: (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_iconComponent.default, Object.assign({ + name: "calendar-alt" + }, commonProps)), + ActiveComponent: (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_iconComponent.default, Object.assign({ + name: "calendar-alt" + }, commonProps, { + style: activeIconStyle + })), + param: EventBaseScreen.SORT_DATE + }], [{ + label: global.strings("sort_by_name"), + Component: (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_iconComponent.default, Object.assign({ + name: "sort-alpha-down" + }, commonProps)), + ActiveComponent: (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_iconComponent.default, Object.assign({ + name: "sort-alpha-down" + }, commonProps, { + style: activeIconStyle + })), + param: EventBaseScreen.SORT_NAME + "+asc" + }], [{ + label: global.strings("sort_by_name_reverse"), + Component: (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_iconComponent.default, Object.assign({ + name: "sort-alpha-up" + }, commonProps)), + ActiveComponent: (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_iconComponent.default, Object.assign({ + name: "sort-alpha-up" + }, commonProps, { + style: activeIconStyle + })), + param: EventBaseScreen.SORT_NAME + "+desc" + }]], + defaultSort: EventBaseScreen.SORT_POPULARITY + }; + } + }, { + key: "renderSectionHeader", + value: function renderSectionHeader(data) { + var _data$section; + + var title = ""; + + if (data != null && (_data$section = data.section) != null && _data$section.title) { + title = data.section.title; + } + + return (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_reactNative.View, { + style: { + height: title ? 40 : 0, + flexDirection: "row", + justifyContent: "flex-start", + alignItems: "center", + padding: 0, + opacity: 0.9, + backgroundColor: (0, _$$_REQUIRE(_dependencyMap[18]).getEventColor)() + }, + children: (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { + style: { + fontSize: 18, + fontWeight: "bold", + color: _$$_REQUIRE(_dependencyMap[17]).colors.md_white_1000, + paddingHorizontal: 10 + }, + children: title + }) + }); + } + }, { + key: "renderItem", + value: function renderItem(item, filters) { + var _this$props2 = this.props, + navigation = _this$props2.navigation, + user = _this$props2.user, + pass = _this$props2.pass, + portal = _this$props2.portal; + var params = (0, _$$_REQUIRE(_dependencyMap[16]).getNavigationParams)(this.props); + var adWidth = parseInt(params.adWidth || "300", 10); + var adHeight = parseInt(params.adHeight || "250", 10); + var adFallback = params.adFallback; + + if (item.isAd) { + if (item.promoImage && item.destinationUrl) { + return (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_reactNative.TouchableOpacity, { + onPress: function onPress() { + return _tecnaviaPlatformUtils.default.openURL(item.destinationUrl); + }, + children: (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_imageComponent.default, { + source: { + uri: item.promoImage + }, + forceProgressComponent: true, + style: { + marginTop: 20, + marginBottom: 20, + height: adWidth, + width: adWidth, + alignSelf: "center" + } + }) + }); + } + + if (item.promoImage && !item.destinationUrl && item.eventId) { + return (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_reactNative.TouchableOpacity, { + onPress: function onPress() { + navigation.navigate("VerticalDetailScreen", { + id: item.eventId, + user: user, + pass: pass, + portal: portal, + isVirtual: item.labels ? item.labels.includes("csVirtual") : false + }); + }, + children: (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_imageComponent.default, { + source: { + uri: item.promoImage + }, + forceProgressComponent: true, + style: { + marginTop: 20, + marginBottom: 20, + height: adWidth, + width: adWidth, + alignSelf: "center" + } + }) + }); + } + + var adUnitId = params.adUnitId; + return (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_reactNative.View, { + style: { + display: "flex", + flexDirection: "row", + justifyContent: "center", + marginTop: 20, + marginBottom: 20 + }, + children: _AdsHelper.default.getNativeAdComponent({ + unitId: adUnitId, + width: adWidth, + height: adHeight, + fallback: adFallback + }) + }); + } + + if (item.key === "notice") { + return (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_reactNative.View, { + style: { + flexDirection: "row", + justifyContent: "center", + margin: 10 + }, + children: item.data + }); + } + + return (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_$$_REQUIRE(_dependencyMap[22]).EventListItem, { + item: item, + onItemPress: function onItemPress(clicked) { + navigation.navigate("VerticalDetailScreen", { + id: clicked.eventId, + user: user, + pass: pass, + portal: portal, + isVirtual: item.labels ? item.labels.includes("csVirtual") : false + }); + }, + manager: global.getVerticalsConfig().getEvents(), + color: (0, _$$_REQUIRE(_dependencyMap[18]).getEventColor)(), + startDate: filters.startDate, + endDate: filters.endDate, + baseLatitude: filters.latitude, + baseLongitude: filters.longitude, + enhanced: this.enhancedIds.includes(item.eventId), + portal: portal + }); + } + }, { + key: "renderCallout", + value: function renderCallout(item) { + return (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_$$_REQUIRE(_dependencyMap[23]).EventCustomCallout, { + title: item.name, + image: item.primaryImage ? item.primaryImage.smallImageUrl : null, + description: item.eventId, + date: item.seriesStart + }); + } + }, { + key: "renderList", + value: function renderList(filters, manager, apiHomeOverride) { + var _this4 = this; + + var api = apiHomeOverride || (0, _$$_REQUIRE(_dependencyMap[18]).getEventApi)(); + var _this$props3 = this.props, + navigation = _this$props3.navigation, + user = _this$props3.user, + pass = _this$props3.pass, + portal = _this$props3.portal; + return (0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_reactNative.View, { + style: { + flex: 1, + backgroundColor: _$$_REQUIRE(_dependencyMap[20]).Css.getDefaultBackgroundColor() + }, + children: [(0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_$$_REQUIRE(_dependencyMap[24]).EventFeaturedComponent, { + getItemById: _$$_REQUIRE(_dependencyMap[18]).getEventById, + featuredApi: (0, _$$_REQUIRE(_dependencyMap[18]).getFeaturedEventApi)(), + featuredEvents: this.featuredIds, + config: { + auth: { + username: user, + password: pass + } + }, + normalizeResults: function normalizeResults(res) { + return { + items: res.events + }; + }, + skipDefaultParams: true, + portal: portal, + onEventPress: function onEventPress(id) { + navigation.navigate("VerticalDetailScreen", { + id: id, + user: user, + pass: pass, + portal: portal + }); + } + }), (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_$$_REQUIRE(_dependencyMap[25]).VerticalList, { + color: (0, _$$_REQUIRE(_dependencyMap[18]).getEventColor)(), + api: api, + config: { + auth: { + username: user, + password: pass + } + }, + params: filters, + normalizeResults: function normalizeResults(res) { + return { + items: res.events + }; + }, + getFilterNames: function getFilterNames(rows, sort, currentPage) { + var sortValue = typeof sort === "string" ? sort.split("+") : undefined; + return { + limit: rows, + sortBy: sortValue ? sortValue[0] : sort, + page: currentPage, + sortAsc: sortValue && sortValue[1] === "desc" ? false : undefined + }; + }, + map: this.getMapProps(), + order: this.getOrderProps(), + enableInfiniteScroll: true, + skipDefaultParams: true, + serverSidePaging: false, + searchVerticalManager: manager, + renderItem: function renderItem(_ref) { + var item = _ref.item; + return _this4.renderItem(item, filters); + }, + getSections: function getSections(items, sorting) { + return _this4.getSortedSections(items, sorting, filters); + }, + renderSectionHeader: this.renderSectionHeader, + onErrorPress: function onErrorPress() { + navigation.navigate("VerticalFiltersScreen"); + }, + onEmptyPress: function onEmptyPress() { + navigation.navigate("VerticalFiltersScreen"); + }, + style: { + paddingVertical: 5 + } + })] + }); + } + }]); + }(_$$_REQUIRE(_dependencyMap[16]).NavigationBaseScreen); + + EventBaseScreen.SORT_POPULARITY = 0; + EventBaseScreen.SORT_DATE = 1; + EventBaseScreen.SORT_NAME = 2; +},2473,[3,270,6,7,11,85,13,14,16,18,407,2101,1928,800,1807,574,2214,438,2470,2474,803,179,2488,2490,2492,2495]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2474,[2475]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.eventIcon = eventIcon; + + function eventIcon(marker, filterCategory) { + var out; + var id = marker.categories[0] ? marker.categories[0].categoryId : -1; + + if (filterCategory) { + id = filterCategory; + } + + switch (id) { + case 2: + out = _$$_REQUIRE(_dependencyMap[0]); + break; + + case 3: + out = _$$_REQUIRE(_dependencyMap[1]); + break; + + case 4: + out = _$$_REQUIRE(_dependencyMap[2]); + break; + + case 5: + out = _$$_REQUIRE(_dependencyMap[3]); + break; + + case 6: + out = _$$_REQUIRE(_dependencyMap[4]); + break; + + case 7: + out = _$$_REQUIRE(_dependencyMap[5]); + break; + + case 8: + out = _$$_REQUIRE(_dependencyMap[6]); + break; + + case 10: + out = _$$_REQUIRE(_dependencyMap[7]); + break; + + case 14: + out = _$$_REQUIRE(_dependencyMap[8]); + break; + + case 15: + out = _$$_REQUIRE(_dependencyMap[9]); + break; + + case 76: + out = _$$_REQUIRE(_dependencyMap[10]); + break; + + case 390: + out = _$$_REQUIRE(_dependencyMap[11]); + break; + + default: + out = _$$_REQUIRE(_dependencyMap[11]); + break; + } + + return out; + } +},2475,[2476,2477,2478,2479,2480,2481,2482,2483,2484,2485,2486,2487]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/verticals/event-icons/icons", + "width": 33, + "height": 44, + "scales": [1], + "hash": "f6a5204893e0a85af94682d9020ed1dd", + "name": "2", + "type": "png" + }); +},2476,[1244]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/verticals/event-icons/icons", + "width": 33, + "height": 44, + "scales": [1], + "hash": "26beddc43143443aa67b230f273f9fb2", + "name": "3", + "type": "png" + }); +},2477,[1244]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/verticals/event-icons/icons", + "width": 33, + "height": 44, + "scales": [1], + "hash": "2f15106a97eca883b6cfaf85b1d5a9a7", + "name": "4", + "type": "png" + }); +},2478,[1244]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/verticals/event-icons/icons", + "width": 33, + "height": 44, + "scales": [1], + "hash": "f9bc7e630f61cb611aa95fb6d9d49282", + "name": "5", + "type": "png" + }); +},2479,[1244]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/verticals/event-icons/icons", + "width": 33, + "height": 44, + "scales": [1], + "hash": "3925bc3bb2e4ac320a5cbc3fd2c6e494", + "name": "6", + "type": "png" + }); +},2480,[1244]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/verticals/event-icons/icons", + "width": 33, + "height": 44, + "scales": [1], + "hash": "d27b56206d43f01cc144ebc65fc2efa5", + "name": "7", + "type": "png" + }); +},2481,[1244]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/verticals/event-icons/icons", + "width": 33, + "height": 44, + "scales": [1], + "hash": "41a839b11e9be3d93f8f023cd0628009", + "name": "8", + "type": "png" + }); +},2482,[1244]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/verticals/event-icons/icons", + "width": 33, + "height": 44, + "scales": [1], + "hash": "65a4d260cc3cf40a53b448cdfadf1b34", + "name": "10", + "type": "png" + }); +},2483,[1244]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/verticals/event-icons/icons", + "width": 35, + "height": 44, + "scales": [1], + "hash": "b23a4381adba88f0a0a35e11e6906bb7", + "name": "14", + "type": "png" + }); +},2484,[1244]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/verticals/event-icons/icons", + "width": 33, + "height": 44, + "scales": [1], + "hash": "b88bdba86ef801b7adfa873d39827db9", + "name": "15", + "type": "png" + }); +},2485,[1244]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/verticals/event-icons/icons", + "width": 33, + "height": 44, + "scales": [1], + "hash": "cbb96fc80a91bdadbd5f0c09c706a68d", + "name": "76", + "type": "png" + }); +},2486,[1244]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/verticals/event-icons/icons", + "width": 33, + "height": 44, + "scales": [1], + "hash": "356463c16a6c2a9b77f7059c3a40f5e5", + "name": "390", + "type": "png" + }); +},2487,[1244]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.EventListItem = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[8]); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _reactNativeLinearGradient = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _iconTile = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + var _blurImageComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + + var _fontText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[13])); + + var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); + + var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[15])); + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var EventListItem = exports.EventListItem = function (_React$Component) { + function EventListItem() { + var _this; + + (0, _classCallCheck2.default)(this, EventListItem); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _callSuper(this, EventListItem, [].concat(args)); + + _this.onShare = function () { + var _ref = (0, _asyncToGenerator2.default)(function* (message, id) { + var portal = _this.props.portal; + + try { + yield _reactNative.Share.share({ + message: message, + url: global.strings("share_event_url", { + portal: portal, + id: id + }) + }); + } catch (error) {} + }); + + return function (_x, _x2) { + return _ref.apply(this, arguments); + }; + }(); + + return _this; + } + + (0, _inherits2.default)(EventListItem, _React$Component); + return (0, _createClass2.default)(EventListItem, [{ + key: "shouldComponentUpdate", + value: function shouldComponentUpdate() { + return false; + } + }, { + key: "getDistanceString", + value: function getDistanceString(item) { + var baseLatitude = this.props.baseLatitude || global.getRssIndex().latitude; + var baseLongitude = this.props.baseLongitude || global.getRssIndex().longitude; + var manager = global.getVerticalsConfig().getEvents(); + var lastSearch = manager.getLastSearch(); + + if (!lastSearch || !item.location || !item.location.latitude || !item.location.longitude) { + return ""; + } + + var pi = Math.PI; + var lat1 = parseFloat(baseLatitude, 10) * pi / 180; + var lon1 = parseFloat(baseLongitude, 10) * pi / 180; + var lat2 = parseFloat(item.location.latitude, 10) * pi / 180; + var lon2 = parseFloat(item.location.longitude, 10) * pi / 180; + var R = 3958.75; + var x = (lon2 - lon1) * Math.cos((lat1 + lat2) / 2); + var y = lat2 - lat1; + var d = Math.sqrt(x * x + y * y) * R; + return "| " + d.toFixed(1) + " mi"; + } + }, { + key: "getClosestEventDate", + value: function getClosestEventDate(event) { + var start = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new Date(); + var numberOfEventInstances = event.instances.length; + var startDate; + var endDate; + var outputResult = ""; + + var now = _$$_REQUIRE(_dependencyMap[16]).DateUtils.getMomentStartOfDay(start); + + for (var i = 0; i < numberOfEventInstances; i++) { + startDate = _$$_REQUIRE(_dependencyMap[16]).DateUtils.getMomentDate(event.instances[i].startDateTime); + endDate = event.instances[i].endDateTime ? _$$_REQUIRE(_dependencyMap[16]).DateUtils.getMomentDate(event.instances[i].endDateTime) : null; + + if (startDate >= now) { + outputResult += startDate.utc().format("LLLL"); + outputResult += endDate ? endDate.utc().format(" - hh:mm A") : ""; + return outputResult; + } + } + + now = _$$_REQUIRE(_dependencyMap[16]).DateUtils.getMomentStartOfDay(start).utc(); + startDate = _$$_REQUIRE(_dependencyMap[16]).DateUtils.getMomentDate(event.instances[numberOfEventInstances - 1].startDateTime).utc().format("YYYY MM DD, hh:mm a"); + + if (event.instances[numberOfEventInstances - 1].startDateTime) { + endDate = _$$_REQUIRE(_dependencyMap[16]).DateUtils.getMomentDate(event.instances[numberOfEventInstances - 1].endDateTime); + } + + if (endDate && endDate > now) { + outputResult += startDate; + outputResult += endDate.format(" - hh:mm a"); + } else { + outputResult = global.strings("msg_event_over"); + } + + return outputResult; + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var _this$props = this.props, + item = _this$props.item, + manager = _this$props.manager, + color = _this$props.color, + startDate = _this$props.startDate, + onItemPress = _this$props.onItemPress, + enhanced = _this$props.enhanced; + var location = item.location || {}; + var sep = location.locationName ? " | " : ""; + return (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_reactNative.TouchableWithoutFeedback, { + onPress: function onPress() { + if (onItemPress) { + onItemPress(item); + } + }, + children: (0, _$$_REQUIRE(_dependencyMap[17]).jsxs)(_reactNative.View, { + style: enhanced ? _$$_REQUIRE(_dependencyMap[18]).styles.enhanced : _$$_REQUIRE(_dependencyMap[18]).styles.line, + children: [(0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_reactNative.View, { + children: item.primaryImage ? (0, _$$_REQUIRE(_dependencyMap[17]).jsxs)(_reactNative.View, { + children: [(0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_blurImageComponent.default, { + image: _$$_REQUIRE(_dependencyMap[16]).PlatformUtils.isTablet() ? item.primaryImage.largeImageUrl : item.primaryImage.mediumImageUrl, + style: _$$_REQUIRE(_dependencyMap[16]).PlatformUtils.isTablet() ? _$$_REQUIRE(_dependencyMap[18]).styles.tabletImage : _$$_REQUIRE(_dependencyMap[18]).styles.image + }), (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_reactNativeLinearGradient.default, { + style: _$$_REQUIRE(_dependencyMap[16]).PlatformUtils.isTablet() ? _$$_REQUIRE(_dependencyMap[18]).styles.tabletGradient : _$$_REQUIRE(_dependencyMap[18]).styles.gradient, + colors: [_$$_REQUIRE(_dependencyMap[16]).colors.transparent, _$$_REQUIRE(_dependencyMap[16]).colors.transparent, _$$_REQUIRE(_dependencyMap[16]).colors.transparent200] + }), (0, _$$_REQUIRE(_dependencyMap[17]).jsxs)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[18]).styles.cardBottom, + children: [(0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_fontText.default, { + style: item.primaryImage ? _$$_REQUIRE(_dependencyMap[18]).styles.title : _$$_REQUIRE(_dependencyMap[18]).styles.titleNoImage, + type: _fontText.Type.medium, + children: item.name + }), (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_fontText.default, { + style: item.primaryImage ? _$$_REQUIRE(_dependencyMap[18]).styles.description : _$$_REQUIRE(_dependencyMap[18]).styles.descriptionNoImage, + children: "" + (location.locationName || "") + sep + (location.city || "") + ", " + (location.state || "") + " " + this.getDistanceString(item) + }), (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_fontText.default, { + style: item.primaryImage ? _$$_REQUIRE(_dependencyMap[18]).styles.description : _$$_REQUIRE(_dependencyMap[18]).styles.descriptionNoImage, + children: "" + this.getClosestEventDate(item, startDate) + })] + })] + }) : (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[18]).styles.noImageView, + children: (0, _$$_REQUIRE(_dependencyMap[17]).jsxs)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[18]).styles.cardBottomNoImage, + children: [(0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_fontText.default, { + style: _$$_REQUIRE(_dependencyMap[18]).styles.titleNoImage, + type: _fontText.Type.bold, + children: item.name + }), (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_fontText.default, { + style: _$$_REQUIRE(_dependencyMap[18]).styles.descriptionNoImage, + children: "" + (location.locationName || "") + sep + (location.city || "") + ", " + (location.state || "") + " " + this.getDistanceString(item) + }), (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_fontText.default, { + style: item.primaryImage ? _$$_REQUIRE(_dependencyMap[18]).styles.description : _$$_REQUIRE(_dependencyMap[18]).styles.descriptionNoImage, + children: "" + this.getClosestEventDate(item, startDate) + })] + }) + }) + }), (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[18]).styles.icons, + children: (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_iconTile.default, { + style: { + alignSelf: "flex-start" + }, + icons: [{ + title: global.strings("action_share"), + component: function component(style) { + return (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_iconComponent.default, { + type: _iconComponent.TecnaviaIconType.MATERIAL_ICONS, + name: "share", + style: style + }); + }, + onPress: function onPress(clicked) { + _this2.onShare(clicked.name, clicked.eventId); + } + }, { + title: !manager.favoriteIsStored(item) ? global.strings("action_save_for_later") : global.strings("action_remove_from_favorites"), + component: function component(style) { + return (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_$$_REQUIRE(_dependencyMap[19]).IconFavorite, { + item: item, + size: 20, + style: style, + eventToggleItemChecker: function eventToggleItemChecker(currentItem, params) { + return currentItem.eventId === params.eventId; + }, + toggleFavoritesEventName: _events.default.TOGGLE_EVENTS_FAVORITE, + isFavoriteChecker: function isFavoriteChecker(toCheck) { + return manager.favoriteIsStored(toCheck); + } + }); + }, + onPress: function onPress(clicked) { + manager.toggleFavorite(clicked); + } + }], + tintColor: color, + item: item, + availableSpace: 5 + }) + })] + }) + }); + } + }]); + }(_react.default.Component); + + EventListItem.propTypes = { + item: _propTypes.default.shape({ + name: _propTypes.default.string, + description: _propTypes.default.string, + instances: _propTypes.default.array, + location: _propTypes.default.object, + primaryImage: _propTypes.default.shape({ + mediumImageUrl: _propTypes.default.string + }), + seriesStart: _propTypes.default.string, + url: _propTypes.default.string, + handPicked: _propTypes.default.bool + }).isRequired, + manager: _propTypes.default.shape({ + favoriteIsStored: _propTypes.default.func.isRequired, + toggleFavorite: _propTypes.default.func.isRequired, + getLastSearch: _propTypes.default.func.isRequired + }).isRequired, + onItemPress: _propTypes.default.func, + color: _propTypes.default.string.isRequired, + startDate: _propTypes.default.any, + baseLatitude: _propTypes.default.number, + baseLongitude: _propTypes.default.number, + enhanced: _propTypes.default.bool, + portal: _propTypes.default.string.isRequired + }; +},2488,[3,270,6,7,11,13,14,16,18,568,1310,2092,2054,800,436,1807,438,179,2489,1973]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var styles = exports.styles = _reactNative.StyleSheet.create({ + line: { + paddingHorizontal: 10, + paddingVertical: 5 + }, + enhanced: { + backgroundColor: (0, _$$_REQUIRE(_dependencyMap[1]).getEventColor)(), + paddingTop: 10, + paddingBottom: 10, + paddingHorizontal: 10, + paddingVertical: 5, + opacity: 0.9 + }, + title: { + flex: 1, + fontSize: 25, + margin: 10, + color: _$$_REQUIRE(_dependencyMap[2]).colors.white, + textShadowColor: _$$_REQUIRE(_dependencyMap[2]).colors.black, + textShadowOffset: { + width: -2, + height: 2 + }, + textShadowRadius: 2 + }, + titleNoImage: { + flex: 1, + fontSize: 25, + margin: 10, + marginTop: 30, + color: _$$_REQUIRE(_dependencyMap[2]).colors.black + }, + descriptionNoImage: { + flex: 2, + textAlign: "justify", + padding: 5, + paddingLeft: 10, + color: _$$_REQUIRE(_dependencyMap[2]).colors.black + }, + description: { + flex: 2, + textAlign: "justify", + padding: 5, + paddingLeft: 10, + color: _$$_REQUIRE(_dependencyMap[2]).colors.white, + textShadowColor: _$$_REQUIRE(_dependencyMap[2]).colors.black, + textShadowOffset: { + width: -2, + height: 2 + }, + textShadowRadius: 2 + }, + icon: { + height: 30, + width: 30, + marginStart: 5, + marginEnd: 5 + }, + icons: { + position: "absolute", + left: 0, + right: 10, + top: 30 + }, + image: { + borderRadius: 3, + height: 300, + width: "100%", + flex: 1 + }, + tabletImage: { + borderRadius: 3, + height: 500, + width: "100%", + flex: 1 + }, + gradient: { + borderRadius: 3, + height: 300, + backgroundColor: _$$_REQUIRE(_dependencyMap[2]).colors.transparent, + position: "absolute", + top: 0, + start: 0, + end: 0, + bottom: 0 + }, + tabletGradient: { + borderRadius: 3, + height: 500, + backgroundColor: _$$_REQUIRE(_dependencyMap[2]).colors.transparent, + position: "absolute", + top: 0, + start: 0, + end: 0, + bottom: 0 + }, + cardBottom: { + position: "absolute", + bottom: 0, + right: 0, + left: 0, + justifyContent: "flex-start", + alignItems: "flex-start" + }, + cardBottomNoImage: { + justifyContent: "flex-start", + alignItems: "flex-start" + }, + noImageView: { + borderWidth: 1, + borderColor: _$$_REQUIRE(_dependencyMap[2]).colors.grey400, + borderRadius: 3 + } + }); +},2489,[18,2470,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2490,[2491]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.EventCustomCallout = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[7]); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var EventCustomCallout; + + if (_optionalPackageUtils.default.isMapsAvailable()) { + var _TaCallout; + + var _OptionalPackages$get = _optionalPackageUtils.default.getMaps(), + Callout = _OptionalPackages$get.Callout; + + exports.EventCustomCallout = EventCustomCallout = (_TaCallout = function (_Callout) { + function TaCallout() { + var _this; + + (0, _classCallCheck2.default)(this, TaCallout); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _callSuper(this, TaCallout, [].concat(args)); + + _this.dateFormatter = function (date) { + if (!date) { + return ""; + } + + var out = ""; + + for (var c = 0; c < date.length; c++) { + if (date[c] === "T" || date[c] === "Z") { + out += " "; + } else { + out += date[c]; + } + } + + return out.substring(0, 10); + }; + + return _this; + } + + (0, _inherits2.default)(TaCallout, _Callout); + return (0, _createClass2.default)(TaCallout, [{ + key: "render", + value: function render() { + var _this$props = this.props, + title = _this$props.title, + date = _this$props.date; + return (0, _$$_REQUIRE(_dependencyMap[11]).jsxs)(_reactNative.View, { + children: [title.length > 50 ? (0, _$$_REQUIRE(_dependencyMap[11]).jsxs)(_reactNative.View, { + children: [(0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.Text, { + style: { + fontWeight: "bold" + }, + children: title.substring(0, 50) + }), (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.Text, { + style: { + fontWeight: "bold" + }, + children: title.substring(50) + })] + }) : (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.Text, { + style: { + fontWeight: "bold" + }, + children: title + }), (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_fontText.default, { + children: this.dateFormatter(date) + })] + }); + } + }]); + }(Callout), _TaCallout.propTypes = { + title: _propTypes.default.string, + description: _propTypes.default.string, + image: _propTypes.default.string, + date: _propTypes.default.string + }, _TaCallout); + } else { + exports.EventCustomCallout = EventCustomCallout = function (_React$Component) { + function TaCallout() { + (0, _classCallCheck2.default)(this, TaCallout); + return _callSuper(this, TaCallout, arguments); + } + + (0, _inherits2.default)(TaCallout, _React$Component); + return (0, _createClass2.default)(TaCallout, [{ + key: "render", + value: function render() { + return null; + } + }]); + }(_react.default.Component); + } +},2491,[3,6,7,11,13,14,16,18,568,800,865,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.EventFeaturedComponent = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[9]); + + var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + var _eventFeaturedItemComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var EventFeaturedComponent = exports.EventFeaturedComponent = function (_Component) { + function EventFeaturedComponent(props) { + var _this; + + (0, _classCallCheck2.default)(this, EventFeaturedComponent); + _this = _callSuper(this, EventFeaturedComponent, [props]); + _this.state = { + items: [], + firstLoading: true, + counter: 0 + }; + _this.mounted = false; + _this.animatedValue = new _reactNative.Animated.Value(0); + _this.featuredIds = props.featuredEvents; + return _this; + } + + (0, _inherits2.default)(EventFeaturedComponent, _Component); + return (0, _createClass2.default)(EventFeaturedComponent, [{ + key: "componentDidMount", + value: function () { + var _componentDidMount = (0, _asyncToGenerator2.default)(function* () { + this.mounted = true; + yield this.firstLoad(); + var items = this.state.items; + + if (items.length > 2) { + this.animate(); + } + }); + + function componentDidMount() { + return _componentDidMount.apply(this, arguments); + } + + return componentDidMount; + }() + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.mounted = false; + } + }, { + key: "doAjaxCall", + value: function () { + var _doAjaxCall = (0, _asyncToGenerator2.default)(function* (params, start) { + var _this$props = this.props, + getItemById = _this$props.getItemById, + config = _this$props.config, + normalizeResults = _this$props.normalizeResults, + skipDefaultParams = _this$props.skipDefaultParams; + var data = { + events: [] + }; + + try { + for (var i = start; i < Math.min(start + 4, this.featuredIds.length); i++) { + var ajaxResult = yield _Api.default.get(getItemById(this.featuredIds[i]), config, params, skipDefaultParams); + data.events.push(ajaxResult.data); + } + + return normalizeResults(data); + } catch (e) { + throw e; + } + }); + + function doAjaxCall(_x, _x2) { + return _doAjaxCall.apply(this, arguments); + } + + return doAjaxCall; + }() + }, { + key: "firstLoad", + value: function () { + var _firstLoad = (0, _asyncToGenerator2.default)(function* () { + var items = this.state.items; + var _this$props2 = this.props, + portal = _this$props2.portal, + featuredApi = _this$props2.featuredApi, + config = _this$props2.config, + featuredEvents = _this$props2.featuredEvents; + var filter = { + portal: portal + }; + + try { + var newItems = yield this.doAjaxCall(filter, 0); + this.setState({ + items: items.concat(newItems.items) || [], + firstLoading: false + }); + } catch (e) { + this.setState({ + firstLoading: true + }); + } + }); + + function firstLoad() { + return _firstLoad.apply(this, arguments); + } + + return firstLoad; + }() + }, { + key: "animate", + value: function animate() { + var _this2 = this; + + var items = this.state.items; + var portal = this.props.portal; + var filter = { + portal: portal + }; + var counter = this.state.counter; + this.animatedValue.setValue(0); + + _reactNative.Animated.timing(this.animatedValue, { + duration: 5000, + useNativeDriver: true + }).start(function () { + return _this2.animate(); + }); + + if (this.mounted) { + this.setState({ + counter: counter + 1 + }, (0, _asyncToGenerator2.default)(function* () { + if ((counter + 3) % 4 === 0) { + var newItems = yield _this2.doAjaxCall(filter, counter + 3); + + _this2.setState({ + items: items.concat(newItems.items) || [] + }); + } + })); + } + } + }, { + key: "render", + value: function render() { + var onEventPress = this.props.onEventPress; + var _this$state = this.state, + items = _this$state.items, + firstLoading = _this$state.firstLoading, + counter = _this$state.counter; + var translateX = -_deviceUtils.default.getSafeArea().width / 2; + var itemsToLoad = Math.min(items.length, 3); + var featured = []; + + for (var i = 0; i < itemsToLoad; i++) { + var index = (counter + i) % items.length; + featured.push((0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_eventFeaturedItemComponent.default, { + item: { + key: index, + title: items[index].name, + image: items[index].primaryImage ? items[index].primaryImage.largeImageUrl : undefined, + id: items[index].eventId, + date: _$$_REQUIRE(_dependencyMap[14]).DateUtils.getClosestEventDate(items[index]) + }, + onEventPress: onEventPress + }, index)); + } + + return !firstLoading && items.length ? (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNative.View, { + style: { + display: "flex", + flexDirection: "row", + justifyContent: items.length === 1 ? "center" : "flex-start", + backgroundColor: (0, _$$_REQUIRE(_dependencyMap[15]).getEventColor)() + }, + children: (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNative.Animated.View, { + style: { + width: items.length > 2 ? "150%" : items.length == 2 ? "100%" : "75%", + height: _$$_REQUIRE(_dependencyMap[14]).PlatformUtils.isTablet() ? 200 : 100, + display: "flex", + flexDirection: "row", + transform: [{ + translateX: this.animatedValue.interpolate({ + inputRange: [0, 0.7, 1], + outputRange: [0, 0, translateX] + }) + }] + }, + children: featured + }) + }) : null; + } + }]); + }(_react.Component); + + EventFeaturedComponent.propTypes = { + normalizeResults: _propTypes.default.func.isRequired, + skipDefaultParams: _propTypes.default.bool, + onEventPress: _propTypes.default.func.isRequired, + config: _propTypes.default.shape({ + auth: _propTypes.default.shape({ + username: _propTypes.default.string.isRequired, + password: _propTypes.default.string.isRequired + }) + }), + portal: _propTypes.default.string.isRequired, + featuredApi: _propTypes.default.string.isRequired, + getItemById: _propTypes.default.func.isRequired, + featuredEvents: _propTypes.default.arrayOf(_propTypes.default.number) + }; +},2492,[3,270,6,7,11,13,14,16,568,18,434,407,2493,179,438,2470]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[7]); + + var _reactNativeLinearGradient = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _fontText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10])); + + var _eventFeaturedItemComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + var _imageComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var TileGridImage = exports.default = function (_React$Component) { + function TileGridImage() { + var _this; + + (0, _classCallCheck2.default)(this, TileGridImage); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _callSuper(this, TileGridImage, [].concat(args)); + _this.NUMBER_OF_TITLE_LINES = 3; + return _this; + } + + (0, _inherits2.default)(TileGridImage, _React$Component); + return (0, _createClass2.default)(TileGridImage, [{ + key: "_getContent", + value: function _getContent() { + var item = this.props.item; + var style = _eventFeaturedItemComponent.default.titleFull; + return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNative.View, { + style: _eventFeaturedItemComponent.default.containerFull, + children: (0, _$$_REQUIRE(_dependencyMap[13]).jsxs)(_reactNative.View, { + children: [(0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_fontText.default, { + numberOfLines: this.NUMBER_OF_TITLE_LINES, + type: _fontText.Type.medium, + style: style, + children: item.title + }), (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_fontText.default, { + numberOfLines: 1, + type: _fontText.Type.medium, + style: style, + children: item.date + })] + }) + }); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + item = _this$props.item, + onEventPress = _this$props.onEventPress; + return (0, _$$_REQUIRE(_dependencyMap[13]).jsxs)(_$$_REQUIRE(_dependencyMap[14]).TileParent, { + bgColor: _$$_REQUIRE(_dependencyMap[15]).colors.white, + style: _eventFeaturedItemComponent.default.tileParent, + hideBottomLine: true, + children: [(0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_imageComponent.default, { + style: [_eventFeaturedItemComponent.default.imageFull], + source: { + uri: item.image + } + }), item.image ? (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNativeLinearGradient.default, { + style: _eventFeaturedItemComponent.default.gradient, + colors: [_$$_REQUIRE(_dependencyMap[15]).colors.transparent, _$$_REQUIRE(_dependencyMap[15]).colors.transparent, _$$_REQUIRE(_dependencyMap[15]).colors.transparent200] + }) : undefined, (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNative.TouchableOpacity, { + style: _eventFeaturedItemComponent.default.parent, + onPress: function onPress() { + onEventPress(item.id); + }, + children: this._getContent() + })] + }); + } + }]); + }(_react.default.Component); + + TileGridImage.propTypes = { + item: _propTypes.default.shape({ + title: _propTypes.default.string.isRequired, + image: _propTypes.default.string, + id: _propTypes.default.number.isRequired + }), + onEventPress: _propTypes.default.func.isRequired + }; +},2493,[3,6,7,11,13,14,16,18,1310,568,800,2494,574,179,2043,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var _default = exports.default = _reactNative.StyleSheet.create({ + imageFull: { + position: "absolute", + top: 0, + start: 0, + end: 0, + bottom: 0, + margin: 0 + }, + containerFull: { + flexDirection: "column" + }, + titleFull: { + color: "white", + marginHorizontal: 8, + paddingVertical: 6, + textAlign: "left", + textShadowColor: _$$_REQUIRE(_dependencyMap[1]).colors.black, + textShadowOffset: { + width: -2, + height: 2 + }, + textShadowRadius: 2, + alignItems: "flex-end", + fontSize: 14 + }, + titleFullNoImage: { + color: "black", + marginHorizontal: 8, + paddingVertical: 8, + textAlign: "left", + alignItems: "flex-end", + fontSize: 14 + }, + gradient: { + backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.transparent, + position: "absolute", + top: 0, + start: 0, + end: 0, + bottom: 0 + }, + tileParent: { + display: "flex", + flexDirection: "row", + alignItems: "flex-end", + backgroundColor: (0, _$$_REQUIRE(_dependencyMap[2]).getEventColor)() + }, + parent: { + flexDirection: "row", + alignItems: "flex-end" + } + }); +},2494,[18,438,2470]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2495,[2496]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.VerticalList = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[9]); + + var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _emptyComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + var _fontText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[12])); + + var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[13])); + + var _imageComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); + + var _loadingMoreComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); + + var _VerticalList; + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var VerticalList = exports.VerticalList = function (_React$Component) { + function VerticalList(props) { + var _this; + + (0, _classCallCheck2.default)(this, VerticalList); + _this = _callSuper(this, VerticalList, [props]); + _this.state = { + items: [], + firstLoading: true, + error: false, + errors: [], + mapVisible: props.startupComponent === VerticalList.Startup.map && props.map.enable + }; + _this.loadingMore = false; + _this.currentRadius = props.radius.start; + _this.currentPage = 1; + _this.totalPages = 1; + _this.sortValue = props.order.defaultSort; + _this.disableLoadMore = false; + _this.handleLoadMore = _this._handleLoadMore.bind(_this); + return _this; + } + + (0, _inherits2.default)(VerticalList, _React$Component); + return (0, _createClass2.default)(VerticalList, [{ + key: "componentDidMount", + value: function componentDidMount() { + this.firstLoad(); + } + }, { + key: "UNSAFE_componentWillReceiveProps", + value: function UNSAFE_componentWillReceiveProps(nextProps) { + var params = this.props.params; + var newParams = nextProps.params; + + if (!_$$_REQUIRE(_dependencyMap[16]).JSUtils.equals(params, newParams)) { + this._update(); + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var prevRadius = prevProps.radius, + prevOrder = prevProps.order; + var _this$props = this.props, + radius = _this$props.radius, + order = _this$props.order; + + if (prevRadius.start !== radius.start || prevOrder.defaultSort !== order.defaultSort) { + this._update(); + } + } + }, { + key: "_update", + value: function _update() { + var _this2 = this; + + this.setState({ + items: [], + firstLoading: true, + error: false, + errors: [] + }, function () { + var radius = _this2.props.radius; + _this2.currentRadius = radius.start; + _this2.currentPage = 1; + _this2.totalPages = 1; + + _this2.firstLoad(); + }); + } + }, { + key: "doAjaxCall", + value: function () { + var _doAjaxCall = (0, _asyncToGenerator2.default)(function* (params) { + var _this$props2 = this.props, + api = _this$props2.api, + config = _this$props2.config, + normalizeResults = _this$props2.normalizeResults, + skipDefaultParams = _this$props2.skipDefaultParams; + + var uri = _$$_REQUIRE(_dependencyMap[16]).StringUtils.segmentUrl(api); + + var newParams = Object.assign({}, params, uri.getParams); + newParams = Object.keys(newParams).reduce(function (result, key) { + var param = newParams[key]; + + if (Array.isArray(param)) { + if (param.length) { + result[key] = param; + } + } else if (typeof param === "string") { + if (param.length) { + result[key] = param; + } + } else if (param !== undefined && !Number.isNaN(param)) { + result[key] = param; + } + + return result; + }, {}); + + try { + var ajaxResult = yield _Api.default.get(uri.baseUrl, config, newParams, skipDefaultParams); + return normalizeResults(ajaxResult.data); + } catch (e) { + throw e; + } + }); + + function doAjaxCall(_x) { + return _doAjaxCall.apply(this, arguments); + } + + return doAjaxCall; + }() + }, { + key: "firstLoad", + value: function () { + var _firstLoad = (0, _asyncToGenerator2.default)(function* () { + var _this$props3 = this.props, + params = _this$props3.params, + rows = _this$props3.rows, + radius = _this$props3.radius, + serverSidePaging = _this$props3.serverSidePaging, + getFilterNames = _this$props3.getFilterNames; + var currentPage = this.currentPage, + sortValue = this.sortValue; + var filter = Object.assign({}, params, getFilterNames(rows, sortValue, currentPage)); + + if (radius.enable) { + filter.radius = this.currentRadius; + } + + try { + do { + var _yield$this$doAjaxCal = yield this.doAjaxCall(filter), + total = _yield$this$doAjaxCal.total, + page = _yield$this$doAjaxCal.page, + pages = _yield$this$doAjaxCal.pages, + items = _yield$this$doAjaxCal.items; + + if ((total === 0 || items.length === 0) && radius.enable) { + this.currentRadius *= 2; + } else { + if (!serverSidePaging) { + this.total = items.length || 0; + } else { + this.total = total || 0; + } + + this.currentPage = page || this.currentPage; + this.totalPages = pages || this.totalPages; + this.setState({ + items: items || [], + firstLoading: false, + error: false, + errors: [] + }); + break; + } + } while (this.currentRadius < radius.max); + } catch (e) { + this.setState({ + firstLoading: false, + error: true + }); + } + }); + + function firstLoad() { + return _firstLoad.apply(this, arguments); + } + + return firstLoad; + }() + }, { + key: "_handleLoadMore", + value: function () { + var _handleLoadMore2 = (0, _asyncToGenerator2.default)(function* () { + var _this$props4 = this.props, + params = _this$props4.params, + rows = _this$props4.rows, + radius = _this$props4.radius, + getFilterNames = _this$props4.getFilterNames, + serverSidePaging = _this$props4.serverSidePaging, + enableInfiniteScroll = _this$props4.enableInfiniteScroll; + var items = this.state.items; + var currentPage = this.currentPage, + totalPages = this.totalPages, + sortValue = this.sortValue; + + if (enableInfiniteScroll && !this.loadingMore && (serverSidePaging && currentPage < totalPages || !serverSidePaging && !this.disableLoadMore)) { + this.loadingMore = true; + this.loadingRef.show(); + var filter = Object.assign({}, params, getFilterNames(rows, sortValue, currentPage + 1)); + + if (radius.enable) { + filter.radius = this.currentRadius; + } + + try { + var _yield$this$doAjaxCal2 = yield this.doAjaxCall(filter), + results = _yield$this$doAjaxCal2.items, + page = _yield$this$doAjaxCal2.page; + + if (results) { + this.disableLoadMore = results.length < rows; + + if (!serverSidePaging) { + this.total += results.length; + } + + this.currentPage = page || this.currentPage + 1; + this.setState({ + items: items.concat(results), + errors: [] + }); + } else { + this.disableLoadMore = true; + this.setState({ + errors: [] + }); + } + } catch (e) { + this.setState({ + errors: [global.strings("error_on_load_more")] + }); + } + + this.loadingMore = false; + this.loadingRef.hide(); + } + }); + + function _handleLoadMore() { + return _handleLoadMore2.apply(this, arguments); + } + + return _handleLoadMore; + }() + }, { + key: "_getError", + value: function _getError() { + var onErrorPress = this.props.onErrorPress; + return this._getIconView("frown", global.strings("msg_error_list"), onErrorPress); + } + }, { + key: "_getEmpty", + value: function _getEmpty() { + var onEmptyPress = this.props.onEmptyPress; + return this._getIconView("surprise", global.strings("msg_empty_list"), onEmptyPress); + } + }, { + key: "_getIconView", + value: function _getIconView(icon, message, callback) { + var color = this.props.color; + return (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_emptyComponent.default, { + onPress: callback, + iconName: icon, + message: message, + color: color + }); + } + }, { + key: "_getActions", + value: function _getActions() { + var _this3 = this; + + var _this$props5 = this.props, + params = _this$props5.params, + color = _this$props5.color, + map = _this$props5.map, + order = _this$props5.order, + searchVerticalManager = _this$props5.searchVerticalManager; + var _this$state = this.state, + mapVisible = _this$state.mapVisible, + height = _this$state.height; + var actions = []; + + var tintColor = _$$_REQUIRE(_dependencyMap[18]).Css.getDefaultBackgroundColor(); + + if (order.items) { + order.items.forEach(function (orderButtons) { + actions.push({ + values: orderButtons.map(function (_ref) { + var param = _ref.param, + source = _ref.source, + label = _ref.label, + Component = _ref.Component, + ActiveComponent = _ref.ActiveComponent; + return { + value: param, + Component: Component || (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_imageComponent.default, { + source: source, + style: [_$$_REQUIRE(_dependencyMap[19]).styles.actionButtonImage, { + tintColor: tintColor + }], + resizeMode: "contain" + }), + ActiveComponent: ActiveComponent || (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_imageComponent.default, { + source: source, + style: [_$$_REQUIRE(_dependencyMap[19]).styles.actionButtonImage, { + tintColor: tintColor + }], + resizeMode: "contain" + }), + title: label, + isActive: param === _this3.sortValue + }; + }), + current: _this3.sortValue, + callback: function callback(value) { + _this3.sortValue = value; + + _this3._update(); + } + }); + }); + } + + var commonIconProps = { + type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, + style: [_$$_REQUIRE(_dependencyMap[19]).styles.actionButtonIcon, { + color: tintColor + }] + }; + + if (map.enable) { + actions.push({ + values: [{ + value: false, + Component: (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_iconComponent.default, Object.assign({ + name: "list-ul" + }, commonIconProps)), + title: global.strings("toggle_list") + }, { + value: true, + Component: (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_iconComponent.default, Object.assign({ + name: "map" + }, commonIconProps)), + title: global.strings("toggle_map") + }], + current: mapVisible, + callback: function callback(value) { + _this3.setState({ + mapVisible: value + }); + } + }); + } + + if (searchVerticalManager) { + actions.push({ + values: [{ + value: false, + Component: (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_iconComponent.default, Object.assign({ + name: "bookmark", + solid: true + }, commonIconProps)), + title: global.strings("unsave_search") + }, { + value: true, + Component: (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_iconComponent.default, Object.assign({ + name: "bookmark" + }, commonIconProps)), + title: global.strings("save_search") + }], + current: searchVerticalManager.searchIsStored(params), + callback: function callback() { + searchVerticalManager.toggleSearch(params); + } + }); + } + + return (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_$$_REQUIRE(_dependencyMap[20]).ActionButtonList, { + color: color, + buttons: actions, + availableHeight: height, + bgColor: _$$_REQUIRE(_dependencyMap[16]).colors.transparent200 + }); + } + }, { + key: "render", + value: function render() { + var _this4 = this; + + var _this$props6 = this.props, + renderItem = _this$props6.renderItem, + color = _this$props6.color, + totalKey = _this$props6.totalKey, + map = _this$props6.map, + _keyExtractor = _this$props6.keyExtractor, + getSections = _this$props6.getSections, + renderSectionHeader = _this$props6.renderSectionHeader; + var _this$state2 = this.state, + error = _this$state2.error, + errors = _this$state2.errors, + firstLoading = _this$state2.firstLoading, + mapVisible = _this$state2.mapVisible, + items = _this$state2.items; + + if (firstLoading) { + return (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_$$_REQUIRE(_dependencyMap[21]).ProgressCircle, { + spinnerColor: color + }); + } + + if (error) { + return this._getError(); + } + + if (!items || !items.length) { + return this._getEmpty(); + } + + var sectionItems = getSections(items, this.sortValue); + return (0, _$$_REQUIRE(_dependencyMap[17]).jsxs)(_reactNative.View, { + style: { + flex: 1, + flexDirection: "column", + backgroundColor: _$$_REQUIRE(_dependencyMap[18]).Css.getAlternateDefaultBackgroundColor() + }, + onLayout: function onLayout(event) { + var height = event.nativeEvent.layout.height; + + _this4.setState({ + height: height + }); + }, + children: [this.total && totalKey ? (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_reactNative.View, { + style: { + backgroundColor: color, + flexDirection: "row", + justifyContent: "center", + alignItems: "center" + }, + children: (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_fontText.default, { + style: { + fontSize: 15, + textAlign: "center", + color: _$$_REQUIRE(_dependencyMap[16]).colors.white + }, + type: _fontText.Type.medium, + children: global.strings(totalKey, { + total: this.total + }) + }) + }) : null, mapVisible ? (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_$$_REQUIRE(_dependencyMap[22]).VerticalMap, Object.assign({ + style: { + flex: 1 + }, + data: items + }, map)) : (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_$$_REQUIRE(_dependencyMap[23]).TecnaviaSectionList, { + removeClippedSubviews: true, + sections: sectionItems, + stickySectionHeadersEnabled: true, + extraData: this.state, + keyExtractor: function keyExtractor(item, index) { + if (typeof _keyExtractor === "function") { + return _keyExtractor(item, index); + } + + return "" + index; + }, + renderSectionHeader: renderSectionHeader, + renderItem: renderItem, + onEndReached: this.handleLoadMore, + onEndReachedThreshold: 3 + }), this._getActions(), errors ? (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_$$_REQUIRE(_dependencyMap[24]).Error, { + style: { + position: "absolute", + bottom: 0, + start: 0, + end: 0 + }, + errors: errors, + autoHide: true + }) : null, (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_loadingMoreComponent.default, { + ref: function ref(_ref2) { + _this4.loadingRef = _ref2; + }, + style: _$$_REQUIRE(_dependencyMap[19]).styles.loading, + color: color + })] + }); + } + }]); + }(_react.default.Component); + + _VerticalList = VerticalList; + VerticalList.Startup = { + list: "list", + map: "map" + }; + VerticalList.propTypes = { + color: _propTypes.default.string.isRequired, + api: _propTypes.default.string.isRequired, + config: _propTypes.default.object, + params: _propTypes.default.object.isRequired, + getSections: _propTypes.default.func, + renderSectionHeader: _propTypes.default.func, + normalizeResults: _propTypes.default.func.isRequired, + serverSidePaging: _propTypes.default.bool, + skipDefaultParams: _propTypes.default.bool, + getFilterNames: _propTypes.default.func.isRequired, + keyExtractor: _propTypes.default.func, + totalKey: _propTypes.default.string, + rows: _propTypes.default.number, + radius: _propTypes.default.shape({ + enable: _propTypes.default.bool, + max: _propTypes.default.number, + start: _propTypes.default.number + }), + startupComponent: _propTypes.default.oneOf([_VerticalList.Startup.list, _VerticalList.Startup.map]), + map: _propTypes.default.shape({ + enable: _propTypes.default.bool, + renderItem: _propTypes.default.func, + renderCallout: _propTypes.default.func, + itemKey: _propTypes.default.func, + latitudeKey: _propTypes.default.string, + longitudeKey: _propTypes.default.string, + titleKey: _propTypes.default.string, + getMarkerIcon: _propTypes.default.func, + onItemPress: _propTypes.default.func.isRequired + }), + enableInfiniteScroll: _propTypes.default.bool, + order: _propTypes.default.shape({ + items: _propTypes.default.arrayOf(_propTypes.default.arrayOf(_propTypes.default.shape({ + label: _propTypes.default.string, + Component: _propTypes.default.node, + param: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]), + source: _propTypes.default.any + }))), + defaultSort: _propTypes.default.string + }), + renderItem: _propTypes.default.func.isRequired, + onErrorPress: _propTypes.default.func, + onEmptyPress: _propTypes.default.func, + searchVerticalManager: _propTypes.default.shape({ + searchIsStored: _propTypes.default.func.isRequired, + toggleSearch: _propTypes.default.func.isRequired + }), + style: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.object, _propTypes.default.array]) + }; + VerticalList.defaultProps = { + rows: 25, + radius: { + enable: false, + start: 5, + max: 32 + }, + startupComponent: _VerticalList.Startup.list, + map: { + enable: false + }, + enableInfiniteScroll: true, + order: { + items: [], + defaultSort: "" + }, + config: {}, + serverSidePaging: true, + skipDefaultParams: false, + getSections: function getSections(items) { + return [{ + title: "", + data: items || [] + }]; + }, + renderSectionHeader: function renderSectionHeader() { + return null; + } + }; +},2496,[3,270,6,7,11,13,14,568,16,18,407,2350,800,1807,574,2497,438,179,803,2498,2499,1884,2504,1938,2171]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var LoadingMore = exports.default = function (_React$Component) { + function LoadingMore(props) { + var _this; + + (0, _classCallCheck2.default)(this, LoadingMore); + _this = _callSuper(this, LoadingMore, [props]); + _this.state = { + visible: props.visible + }; + return _this; + } + + (0, _inherits2.default)(LoadingMore, _React$Component); + return (0, _createClass2.default)(LoadingMore, [{ + key: "show", + value: function show() { + this.setState({ + visible: true + }); + } + }, { + key: "hide", + value: function hide() { + this.setState({ + visible: false + }); + } + }, { + key: "render", + value: function render() { + var visible = this.state.visible; + var _this$props = this.props, + color = _this$props.color, + style = _this$props.style; + + if (visible) { + return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).ProgressCircle, { + parentStyle: style, + text: global.strings("msg_loading_more"), + showText: true, + spinnerColor: color + }); + } + + return null; + } + }]); + }(_react.default.Component); + + LoadingMore.propTypes = { + visible: _propTypes.default.bool, + style: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.object, _propTypes.default.array]), + color: _propTypes.default.string + }; + LoadingMore.defaultProps = { + visible: false + }; +},2497,[3,6,7,11,13,14,16,568,179,1884]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var styles = exports.styles = _reactNative.StyleSheet.create({ + loading: { + position: "absolute", + bottom: 0, + start: 0, + end: 0, + height: 50, + backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white + }, + actionButtonImage: { + height: 20, + width: 20 + }, + actionButtonIcon: { + fontSize: 20, + height: 22 + } + }); +},2498,[18,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2499,[2500]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.ActionButtonList = undefined; + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _reactNativeActionButton = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9])); + + var _excluded = ["availableHeight", "offsetY"]; + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var SPACING_TO_SIZE_RATIO = 4; + var MINIMUM_BUTTON_SIZE = 30; + var MAXIMUM_BUTTON_SIZE = 56; + var OFFSET_Y = 30; + + var ActionButtonList = exports.ActionButtonList = function (_React$Component) { + function ActionButtonList() { + (0, _classCallCheck2.default)(this, ActionButtonList); + return _callSuper(this, ActionButtonList, arguments); + } + + (0, _inherits2.default)(ActionButtonList, _React$Component); + return (0, _createClass2.default)(ActionButtonList, [{ + key: "render", + value: function render() { + var _this = this; + + var _this$props = this.props, + availableHeight = _this$props.availableHeight, + offsetY = _this$props.offsetY, + rest = (0, _objectWithoutProperties2.default)(_this$props, _excluded); + var _this$props2 = this.props, + buttons = _this$props2.buttons, + color = _this$props2.color; + + if (buttons && buttons.length) { + var size = Math.max(Math.min((availableHeight - offsetY * 2) / ((1 + buttons.length) * 1.25), MAXIMUM_BUTTON_SIZE), MINIMUM_BUTTON_SIZE); + var spacing = size / SPACING_TO_SIZE_RATIO; + + var backgroundColor = _$$_REQUIRE(_dependencyMap[10]).Css.getDefaultBackgroundColor(); + + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNativeActionButton.default, Object.assign({ + buttonColor: color, + buttonTextStyle: { + color: backgroundColor + }, + spacing: spacing, + size: size, + offsetY: offsetY + }, rest, { + children: buttons.map(function (item, key) { + var index = item.values.findIndex(function (_ref) { + var value = _ref.value; + return value === item.current; + }); + var nextButton = index + 1 === item.values.length ? item.values[0] : item.values[index + 1]; + var title = nextButton.title, + Component = nextButton.Component, + ActiveComponent = nextButton.ActiveComponent, + isActive = nextButton.isActive; + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNativeActionButton.default.Item, { + size: size, + buttonColor: isActive ? backgroundColor : color, + textContainerStyle: { + backgroundColor: backgroundColor + }, + textStyle: { + color: _$$_REQUIRE(_dependencyMap[10]).Css.getDefaultForegroundColor() + }, + title: title, + onPress: function onPress() { + if (item.callback) { + item.callback(nextButton.value); + } + + if (nextButton) { + item.current = nextButton.value; + + _this.forceUpdate(); + } + }, + children: isActive ? ActiveComponent : Component + }, key); + }) + })); + } + + return null; + } + }]); + }(_react.default.Component); + + ActionButtonList.propTypes = Object.assign({ + buttons: _propTypes.default.arrayOf(_propTypes.default.shape({ + values: _propTypes.default.arrayOf(_propTypes.default.shape({ + Component: _propTypes.default.node.isRequired, + title: _propTypes.default.string.isRequired, + value: _propTypes.default.any + })), + callback: _propTypes.default.func.isRequired, + current: _propTypes.default.any + })), + color: _propTypes.default.string.isRequired, + availableHeight: _propTypes.default.number, + offsetY: _propTypes.default.number + }, _reactNativeActionButton.ActionButtonProperties); + ActionButtonList.defaultProps = { + offsetY: OFFSET_Y, + availableHeight: 0 + }; +},2500,[3,4,6,7,11,13,14,568,16,2501,803,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[8]); + + var _ActionButtonItem = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var ActionButton = exports.default = function (_Component) { + function ActionButton(props) { + var _this; + + (0, _classCallCheck2.default)(this, ActionButton); + _this = _callSuper(this, ActionButton, [props]); + _this.state = { + resetToken: props.resetToken, + active: props.active + }; + _this.anim = new _reactNative.Animated.Value(props.active ? 1 : 0); + _this.timeout = null; + return _this; + } + + (0, _inherits2.default)(ActionButton, _Component); + return (0, _createClass2.default)(ActionButton, [{ + key: "componentDidMount", + value: function componentDidMount() { + this.mounted = true; + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.mounted = false; + clearTimeout(this.timeout); + } + }, { + key: "UNSAFE_componentWillReceiveProps", + value: function UNSAFE_componentWillReceiveProps(nextProps) { + var _this2 = this; + + if (nextProps.resetToken !== this.state.resetToken) { + if (nextProps.active === false && this.state.active === true) { + if (this.props.onReset) this.props.onReset(); + + _reactNative.Animated.spring(this.anim, { + toValue: 0, + useNativeDriver: false + }).start(); + + setTimeout(function () { + return _this2.setState({ + active: false, + resetToken: nextProps.resetToken + }); + }, 250); + return; + } + + if (nextProps.active === true && this.state.active === false) { + _reactNative.Animated.spring(this.anim, { + toValue: 1, + useNativeDriver: false + }).start(); + + this.setState({ + active: true, + resetToken: nextProps.resetToken + }); + return; + } + + this.setState({ + resetToken: nextProps.resetToken, + active: nextProps.active + }); + } + } + }, { + key: "getOrientation", + value: function getOrientation() { + return { + alignItems: _$$_REQUIRE(_dependencyMap[10]).alignItemsMap[this.props.position] + }; + } + }, { + key: "getOffsetXY", + value: function getOffsetXY() { + return { + paddingVertical: this.props.offsetY + }; + } + }, { + key: "getOverlayStyles", + value: function getOverlayStyles() { + return [styles.overlay, { + elevation: this.props.elevation, + zIndex: this.props.zIndex, + justifyContent: this.props.verticalOrientation === "up" ? "flex-end" : "flex-start" + }]; + } + }, { + key: "render", + value: function render() { + return (0, _$$_REQUIRE(_dependencyMap[11]).jsxs)(_reactNative.View, { + pointerEvents: "box-none", + style: [this.getOverlayStyles(), this.props.style], + children: [(0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.Animated.View, { + pointerEvents: "none", + style: [this.getOverlayStyles(), { + backgroundColor: this.props.bgColor, + opacity: this.anim.interpolate({ + inputRange: [0, 1], + outputRange: [0, this.props.bgOpacity] + }) + }], + children: this.props.backdrop + }), (0, _$$_REQUIRE(_dependencyMap[11]).jsxs)(_reactNative.View, { + pointerEvents: "box-none", + style: [this.getOverlayStyles(), this.getOrientation(), this.getOffsetXY()], + children: [this.state.active && !this.props.backgroundTappable && this._renderTappableBackground(), this.props.verticalOrientation === "up" && this.props.children && this._renderActions(), this._renderMainButton(), this.props.verticalOrientation === "down" && this.props.children && this._renderActions()] + })] + }); + } + }, { + key: "_renderMainButton", + value: function _renderMainButton() { + var _this3 = this; + + var animatedViewStyle = { + transform: [{ + scale: this.anim.interpolate({ + inputRange: [0, 1], + outputRange: [1, this.props.outRangeScale] + }) + }, { + rotate: this.anim.interpolate({ + inputRange: [0, 1], + outputRange: ["0deg", this.props.degrees + "deg"] + }) + }] + }; + var wrapperStyle = { + backgroundColor: this.anim.interpolate({ + inputRange: [0, 1], + outputRange: [this.props.buttonColor, this.props.btnOutRange || this.props.buttonColor] + }), + width: this.props.size, + height: this.props.size, + borderRadius: this.props.size / 2 + }; + var buttonStyle = { + width: this.props.size, + height: this.props.size, + borderRadius: this.props.size / 2, + alignItems: "center", + justifyContent: "center" + }; + var Touchable = (0, _$$_REQUIRE(_dependencyMap[10]).getTouchableComponent)(this.props.useNativeFeedback); + var parentStyle = _$$_REQUIRE(_dependencyMap[10]).isAndroid && this.props.fixNativeFeedbackRadius ? { + right: this.props.offsetX, + zIndex: this.props.zIndex, + borderRadius: this.props.size / 2, + width: this.props.size + } : { + marginHorizontal: this.props.offsetX, + zIndex: this.props.zIndex + }; + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.View, { + style: [parentStyle, !this.props.hideShadow && _$$_REQUIRE(_dependencyMap[10]).shadowStyle, !this.props.hideShadow && this.props.shadowStyle], + children: (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(Touchable, { + testID: this.props.testID, + accessible: this.props.accessible, + accessibilityLabel: this.props.accessibilityLabel, + background: (0, _$$_REQUIRE(_dependencyMap[10]).touchableBackground)(this.props.nativeFeedbackRippleColor, this.props.fixNativeFeedbackRadius), + activeOpacity: this.props.activeOpacity, + onLongPress: this.props.onLongPress, + onPress: function onPress() { + _this3.props.onPress(); + + if (_this3.props.children) _this3.animateButton(); + }, + onPressIn: this.props.onPressIn, + onPressOut: this.props.onPressOut, + children: (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.Animated.View, { + style: wrapperStyle, + children: (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.Animated.View, { + style: [buttonStyle, animatedViewStyle], + children: this._renderButtonIcon() + }) + }) + }) + }); + } + }, { + key: "_renderButtonIcon", + value: function _renderButtonIcon() { + var _this$props = this.props, + icon = _this$props.icon, + renderIcon = _this$props.renderIcon, + btnOutRangeTxt = _this$props.btnOutRangeTxt, + buttonTextStyle = _this$props.buttonTextStyle, + buttonText = _this$props.buttonText; + if (renderIcon) return renderIcon(this.state.active); + + if (icon) { + console.warn('react-native-action-button: The `icon` prop is deprecated! Use `renderIcon` instead.'); + return icon; + } + + var textColor = buttonTextStyle.color || "rgba(255,255,255,1)"; + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.Animated.Text, { + style: [styles.btnText, buttonTextStyle, { + color: this.anim.interpolate({ + inputRange: [0, 1], + outputRange: [textColor, btnOutRangeTxt || textColor] + }) + }], + children: buttonText + }); + } + }, { + key: "_renderActions", + value: function _renderActions() { + var _this4 = this; + + var _this$props2 = this.props, + children = _this$props2.children, + verticalOrientation = _this$props2.verticalOrientation; + if (!this.state.active) return null; + var actionButtons = !Array.isArray(children) ? [children] : children; + actionButtons = actionButtons.filter(function (actionButton) { + return typeof actionButton == 'object'; + }); + var actionStyle = { + flex: 1, + alignSelf: "stretch", + justifyContent: verticalOrientation === "up" ? "flex-end" : "flex-start", + paddingTop: this.props.verticalOrientation === "down" ? this.props.spacing : 0, + zIndex: this.props.zIndex + }; + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.View, { + style: actionStyle, + pointerEvents: "box-none", + children: actionButtons.map(function (_ActionButton, idx) { + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_ActionButtonItem.default, Object.assign({ + anim: _this4.anim + }, _this4.props, _ActionButton.props, { + parentSize: _this4.props.size, + btnColor: _this4.props.btnOutRange, + onPress: function onPress() { + if (_this4.props.autoInactive) { + _this4.timeout = setTimeout(_this4.reset.bind(_this4), 200); + } + + _ActionButton.props.onPress(); + } + }), idx); + }) + }); + } + }, { + key: "_renderTappableBackground", + value: function _renderTappableBackground() { + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.TouchableOpacity, { + activeOpacity: 1, + style: this.getOverlayStyles(), + onPress: this.reset.bind(this) + }); + } + }, { + key: "animateButton", + value: function animateButton() { + var animate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; + if (this.state.active) return this.reset(); + + if (animate) { + _reactNative.Animated.spring(this.anim, { + toValue: 1, + useNativeDriver: false + }).start(); + } else { + this.anim.setValue(1); + } + + this.setState({ + active: true, + resetToken: this.state.resetToken + }); + } + }, { + key: "reset", + value: function reset() { + var _this5 = this; + + var animate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; + if (this.props.onReset) this.props.onReset(); + + if (animate) { + _reactNative.Animated.spring(this.anim, { + toValue: 0, + useNativeDriver: false + }).start(); + } else { + this.anim.setValue(0); + } + + setTimeout(function () { + if (_this5.mounted) { + _this5.setState({ + active: false, + resetToken: _this5.state.resetToken + }); + } + }, 250); + } + }]); + }(_react.Component); + + ActionButton.Item = _ActionButtonItem.default; + ActionButton.propTypes = { + resetToken: _propTypes.default.any, + active: _propTypes.default.bool, + position: _propTypes.default.string, + elevation: _propTypes.default.number, + zIndex: _propTypes.default.number, + hideShadow: _propTypes.default.bool, + shadowStyle: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.array, _propTypes.default.number]), + renderIcon: _propTypes.default.func, + bgColor: _propTypes.default.string, + bgOpacity: _propTypes.default.number, + buttonColor: _propTypes.default.string, + buttonTextStyle: _$$_REQUIRE(_dependencyMap[12]).TextPropTypes.style, + buttonText: _propTypes.default.string, + offsetX: _propTypes.default.number, + offsetY: _propTypes.default.number, + spacing: _propTypes.default.number, + size: _propTypes.default.number, + autoInactive: _propTypes.default.bool, + onPress: _propTypes.default.func, + onPressIn: _propTypes.default.func, + onPressOut: _propTypes.default.func, + backdrop: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.object]), + degrees: _propTypes.default.number, + verticalOrientation: _propTypes.default.oneOf(["up", "down"]), + backgroundTappable: _propTypes.default.bool, + activeOpacity: _propTypes.default.number, + useNativeFeedback: _propTypes.default.bool, + fixNativeFeedbackRadius: _propTypes.default.bool, + nativeFeedbackRippleColor: _propTypes.default.string, + testID: _propTypes.default.string, + accessibilityLabel: _propTypes.default.string, + accessible: _propTypes.default.bool + }; + ActionButton.defaultProps = { + resetToken: null, + active: false, + bgColor: "transparent", + bgOpacity: 1, + buttonColor: "rgba(0,0,0,1)", + buttonTextStyle: {}, + buttonText: "+", + spacing: 20, + outRangeScale: 1, + autoInactive: true, + onPress: function onPress() {}, + onPressIn: function onPressIn() {}, + onPressOn: function onPressOn() {}, + backdrop: false, + degrees: 45, + position: "right", + offsetX: 30, + offsetY: 30, + size: 56, + verticalOrientation: "up", + backgroundTappable: false, + useNativeFeedback: true, + activeOpacity: _$$_REQUIRE(_dependencyMap[10]).DEFAULT_ACTIVE_OPACITY, + fixNativeFeedbackRadius: false, + nativeFeedbackRippleColor: "rgba(255,255,255,0.75)", + testID: undefined, + accessibilityLabel: undefined, + accessible: undefined + }; + + var styles = _reactNative.StyleSheet.create({ + overlay: { + position: "absolute", + bottom: 0, + left: 0, + right: 0, + top: 0, + backgroundColor: "transparent" + }, + btnText: { + marginTop: -4, + fontSize: 24, + backgroundColor: "transparent" + } + }); +},2501,[3,6,7,11,13,14,568,16,18,2502,2503,179,581]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[8]); + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var _Dimensions$get = _reactNative.Dimensions.get("window"), + WIDTH = _Dimensions$get.width; + + var SHADOW_SPACE = 10; + var TEXT_HEIGHT = 22; + var TextTouchable = _$$_REQUIRE(_dependencyMap[9]).isAndroid ? _reactNative.TouchableNativeFeedback : _reactNative.TouchableWithoutFeedback; + + var ActionButtonItem = exports.default = function (_Component) { + function ActionButtonItem() { + (0, _classCallCheck2.default)(this, ActionButtonItem); + return _callSuper(this, ActionButtonItem, arguments); + } + + (0, _inherits2.default)(ActionButtonItem, _Component); + return (0, _createClass2.default)(ActionButtonItem, [{ + key: "render", + value: function render() { + var _this$props = this.props, + size = _this$props.size, + position = _this$props.position, + verticalOrientation = _this$props.verticalOrientation, + hideShadow = _this$props.hideShadow, + spacing = _this$props.spacing; + if (!this.props.active) return null; + var animatedViewStyle = { + marginBottom: -10, + alignItems: _$$_REQUIRE(_dependencyMap[9]).alignItemsMap[position], + opacity: this.props.anim, + transform: [{ + translateY: this.props.anim.interpolate({ + inputRange: [0, 1], + outputRange: [verticalOrientation === "down" ? -40 : 40, 0] + }) + }] + }; + var buttonStyle = { + justifyContent: "center", + alignItems: "center", + width: size, + height: size, + borderRadius: size / 2, + backgroundColor: this.props.buttonColor || this.props.btnColor + }; + if (position !== "center") buttonStyle[position] = (this.props.parentSize - size) / 2; + var Touchable = (0, _$$_REQUIRE(_dependencyMap[9]).getTouchableComponent)(this.props.useNativeFeedback); + var parentStyle = _$$_REQUIRE(_dependencyMap[9]).isAndroid && this.props.fixNativeFeedbackRadius ? { + height: size, + marginBottom: spacing, + right: this.props.offsetX, + borderRadius: this.props.size / 2 + } : { + paddingHorizontal: this.props.offsetX, + height: size + SHADOW_SPACE + spacing + }; + return (0, _$$_REQUIRE(_dependencyMap[10]).jsxs)(_reactNative.Animated.View, { + pointerEvents: "box-none", + style: [animatedViewStyle, parentStyle], + children: [(0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.View, { + children: (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(Touchable, { + testID: this.props.testID, + accessibilityLabel: this.props.accessibilityLabel, + background: (0, _$$_REQUIRE(_dependencyMap[9]).touchableBackground)(this.props.nativeFeedbackRippleColor, this.props.fixNativeFeedbackRadius), + activeOpacity: this.props.activeOpacity || _$$_REQUIRE(_dependencyMap[9]).DEFAULT_ACTIVE_OPACITY, + onPress: this.props.onPress, + children: (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.View, { + style: [buttonStyle, !hideShadow ? Object.assign({}, _$$_REQUIRE(_dependencyMap[9]).shadowStyle, this.props.shadowStyle) : null], + children: this.props.children + }) + }) + }), this._renderTitle()] + }); + } + }, { + key: "_renderTitle", + value: function _renderTitle() { + if (!this.props.title) return null; + var _this$props2 = this.props, + textContainerStyle = _this$props2.textContainerStyle, + hideLabelShadow = _this$props2.hideLabelShadow, + offsetX = _this$props2.offsetX, + parentSize = _this$props2.parentSize, + size = _this$props2.size, + position = _this$props2.position, + spaceBetween = _this$props2.spaceBetween; + var offsetTop = Math.max(size / 2 - 11, 0); + var positionStyles = { + top: offsetTop + }; + var hideShadow = hideLabelShadow === undefined ? this.props.hideShadow : hideLabelShadow; + + if (position !== "center") { + positionStyles[position] = offsetX + (parentSize - size) / 2 + size + spaceBetween; + } else { + positionStyles.right = WIDTH / 2 + size / 2 + spaceBetween; + } + + var textStyles = [styles.textContainer, positionStyles, !hideShadow && _$$_REQUIRE(_dependencyMap[9]).shadowStyle, textContainerStyle]; + var title = _react.default.isValidElement(this.props.title) ? this.props.title : (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.Text, { + allowFontScaling: false, + style: [styles.text, this.props.textStyle], + children: this.props.title + }); + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(TextTouchable, { + background: (0, _$$_REQUIRE(_dependencyMap[9]).touchableBackground)(this.props.nativeFeedbackRippleColor, this.props.fixNativeFeedbackRadius), + activeOpacity: this.props.activeOpacity || _$$_REQUIRE(_dependencyMap[9]).DEFAULT_ACTIVE_OPACITY, + onPress: this.props.onPress, + children: (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.View, { + style: textStyles, + children: title + }) + }); + } + }], [{ + key: "defaultProps", + get: function get() { + return { + active: true, + spaceBetween: 15, + useNativeFeedback: true, + activeOpacity: _$$_REQUIRE(_dependencyMap[9]).DEFAULT_ACTIVE_OPACITY, + fixNativeFeedbackRadius: false, + nativeFeedbackRippleColor: "rgba(255,255,255,0.75)" + }; + } + }, { + key: "propTypes", + get: function get() { + return { + active: _propTypes.default.bool, + useNativeFeedback: _propTypes.default.bool, + fixNativeFeedbackRadius: _propTypes.default.bool, + nativeFeedbackRippleColor: _propTypes.default.string, + activeOpacity: _propTypes.default.number + }; + } + }]); + }(_react.Component); + + var styles = _reactNative.StyleSheet.create({ + textContainer: { + position: "absolute", + paddingVertical: _$$_REQUIRE(_dependencyMap[9]).isAndroid ? 2 : 3, + paddingHorizontal: 8, + borderRadius: 3, + borderWidth: _reactNative.StyleSheet.hairlineWidth, + borderColor: "#eee", + backgroundColor: "white", + height: TEXT_HEIGHT + }, + text: { + flex: 1, + fontSize: 12, + color: "#444" + } + }); +},2502,[3,6,7,11,13,14,568,16,18,2503,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.alignItemsMap = exports.DEFAULT_ACTIVE_OPACITY = undefined; + exports.getTouchableComponent = getTouchableComponent; + exports.shadowStyle = exports.isAndroid = undefined; + exports.touchableBackground = touchableBackground; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var DEFAULT_ACTIVE_OPACITY = exports.DEFAULT_ACTIVE_OPACITY = 0.85; + var shadowStyle = exports.shadowStyle = { + shadowOpacity: 0.35, + shadowOffset: { + width: 0, + height: 5 + }, + shadowColor: "#000", + shadowRadius: 3, + elevation: 5 + }; + var alignItemsMap = exports.alignItemsMap = { + center: "center", + left: "flex-start", + right: "flex-end" + }; + var isAndroid = exports.isAndroid = _reactNative.Platform.OS === "android"; + + function getTouchableComponent(useNativeFeedback) { + if (useNativeFeedback === true && isAndroid === true) { + return _reactNative.TouchableNativeFeedback; + } + + return _reactNative.TouchableOpacity; + } + + function touchableBackground(color, fixRadius) { + if (isAndroid) { + if (_reactNative.Platform["Version"] >= 21) { + return _reactNative.TouchableNativeFeedback.Ripple(color || "rgba(255,255,255,0.75)", fixRadius); + } else { + _reactNative.TouchableNativeFeedback.SelectableBackground(); + } + } + + return undefined; + } +},2503,[18]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.VerticalMap = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var _OptionalPackages$get = _optionalPackageUtils.default.getMaps(), + MapView = _OptionalPackages$get.MapView, + Marker = _OptionalPackages$get.Marker, + Callout = _OptionalPackages$get.Callout; + + var VerticalMap = exports.VerticalMap = function (_React$Component) { + function VerticalMap(props) { + var _this; + + (0, _classCallCheck2.default)(this, VerticalMap); + _this = _callSuper(this, VerticalMap, [props]); + + var _global$getRssIndex = global.getRssIndex(), + latitude = _global$getRssIndex.latitude, + longitude = _global$getRssIndex.longitude; + + _this.defaultLatitude = parseFloat(latitude) || 41.578518; + _this.defaultLongitude = parseFloat(longitude) || -85.804958; + _this.state = { + data: props.data + }; + return _this; + } + + (0, _inherits2.default)(VerticalMap, _React$Component); + return (0, _createClass2.default)(VerticalMap, [{ + key: "getValueByKeyPath", + value: function getValueByKeyPath(element, key) { + var tokens = key.split("."); + var result = element; + tokens.forEach(function (token) { + result = result ? result[token] : result; + }); + return result; + } + }, { + key: "getCenterRegionOnData", + value: function getCenterRegionOnData(markers) { + var _this2 = this; + + var _this$props = this.props, + latitudeKey = _this$props.latitudeKey, + longitudeKey = _this$props.longitudeKey; + var latitudes = markers.map(function (marker) { + return _this2.getValueByKeyPath(marker, latitudeKey); + }).sort(function (a, b) { + return a - b; + }); + var longitudes = markers.map(function (marker) { + return _this2.getValueByKeyPath(marker, longitudeKey); + }).sort(function (a, b) { + return a - b; + }); + var middleLatitude = (latitudes[0] + latitudes[latitudes.length - 1]) / 2; + var middleLongitude = (longitudes[0] + longitudes[longitudes.length - 1]) / 2; + var latitudeDelta = latitudes[latitudes.length - 1] - latitudes[0]; + var longitudeDelta = longitudes[longitudes.length - 1] - longitudes[0]; + return { + latitude: middleLatitude || this.defaultLatitude, + longitude: middleLongitude || this.defaultLongitude, + latitudeDelta: latitudeDelta || 0.015, + longitudeDelta: longitudeDelta || 0.0121 + }; + } + }, { + key: "removeItemWithoutLocation", + value: function removeItemWithoutLocation(data) { + var _this3 = this; + + var _this$props2 = this.props, + latitudeKey = _this$props2.latitudeKey, + longitudeKey = _this$props2.longitudeKey; + return data.reduce(function (result, item) { + if (_this3.getValueByKeyPath(item, latitudeKey) && _this3.getValueByKeyPath(item, longitudeKey)) { + result.push(item); + } + + return result; + }, []); + } + }, { + key: "render", + value: function render() { + var _this4 = this; + + var _this$props3 = this.props, + style = _this$props3.style, + renderItem = _this$props3.renderItem, + renderCallout = _this$props3.renderCallout, + onItemPress = _this$props3.onItemPress, + itemKey = _this$props3.itemKey, + latitudeKey = _this$props3.latitudeKey, + longitudeKey = _this$props3.longitudeKey, + titleKey = _this$props3.titleKey, + getMarkerIcon = _this$props3.getMarkerIcon; + var data = this.state.data; + var markers = this.removeItemWithoutLocation(data); + + if (_optionalPackageUtils.default.isMapsAvailable()) { + return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(MapView, { + style: style, + region: this.getCenterRegionOnData(markers), + children: markers.map(function (marker, index) { + if (renderItem) { + return renderItem({ + item: marker, + index: index + }); + } + + var extraProp = {}; + + if (getMarkerIcon) { + extraProp.image = getMarkerIcon(marker); + } + + return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(Marker, Object.assign({ + title: _this4.getValueByKeyPath(marker, titleKey), + coordinate: { + latitude: _this4.getValueByKeyPath(marker, latitudeKey), + longitude: _this4.getValueByKeyPath(marker, longitudeKey) + } + }, extraProp, { + children: (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(Callout, { + onPress: function onPress() { + if (onItemPress) { + onItemPress(marker); + } + }, + children: renderCallout(marker) + }) + }), _this4.getValueByKeyPath(marker, itemKey)); + }) + }); + } + + return null; + } + }], [{ + key: "getDerivedStateFromProps", + value: function getDerivedStateFromProps(nextProps, prevState) { + var prevData = prevState.data; + var data = nextProps.data; + + if (_$$_REQUIRE(_dependencyMap[10]).JSUtils.equals(prevData, data)) { + return { + data: data + }; + } + + return null; + } + }]); + }(_react.default.Component); + + VerticalMap.propTypes = { + style: _propTypes.default.object.isRequired, + data: _propTypes.default.array.isRequired, + itemKey: _propTypes.default.func.isRequired, + renderItem: _propTypes.default.func, + renderCallout: _propTypes.default.func, + onItemPress: _propTypes.default.func, + latitudeKey: _propTypes.default.string, + longitudeKey: _propTypes.default.string, + titleKey: _propTypes.default.string, + getMarkerIcon: _propTypes.default.func + }; + VerticalMap.defaultProps = { + latitudeKey: "latitude", + longitudeKey: "longitude" + }; +},2504,[3,6,7,11,13,14,16,568,865,179,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2505,[2506]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.EventFilterScreen = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[10]); + + var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var EventFilterScreen = exports.EventFilterScreen = function (_NavigationBaseScreen) { + function EventFilterScreen(props) { + var _this; + + (0, _classCallCheck2.default)(this, EventFilterScreen); + _this = _callSuper(this, EventFilterScreen, [props]); + + var defaultSearch = _this._getEventsManager().getDefaultSearch(); + + _this.state = Object.assign({ + categories: [], + loading: true + }, _this._getFilterFromSearch(defaultSearch)); + _this.onFilterLocationRef = _this._onFilterLocationRef.bind(_this); + _this.onFilterCategoriesRef = _this._onFilterCategoriesRef.bind(_this); + _this.onFilterTimeRangeRef = _this._onFilterTimeRangeRef.bind(_this); + _this.onFilterRadiusRef = _this._onFilterRadiusRef.bind(_this); + _this.onFilterTextRef = _this._onFilterTextRef.bind(_this); + _this.onResetLocation = _this._onResetLocation.bind(_this); + _this.onSetAsDefaultPress = _this._onSetAsDefaultPress.bind(_this); + _this.onResetPress = _this._onResetPress.bind(_this); + _this.onSearchPress = _this._onSearchPress.bind(_this); + _this.onSavedSearchesPress = _this._onSavedSearchesPress.bind(_this); + return _this; + } + + (0, _inherits2.default)(EventFilterScreen, _NavigationBaseScreen); + return (0, _createClass2.default)(EventFilterScreen, [{ + key: "componentDidMount", + value: function componentDidMount() { + (0, _get2.default)((0, _getPrototypeOf2.default)(EventFilterScreen.prototype), "componentDidMount", this).call(this); + + this._loading(); + } + }, { + key: "getTag", + value: function getTag() { + return "Event Filter"; + } + }, { + key: "handleBackButton", + value: function handleBackButton() { + var navigation = this.props.navigation; + navigation.goBack(null); + return (0, _get2.default)((0, _getPrototypeOf2.default)(EventFilterScreen.prototype), "handleBackButton", this).call(this); + } + }, { + key: "_getFilterFromSearch", + value: function _getFilterFromSearch() { + var search = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + return { + filterText: search.searchTerm, + filterRadius: search.radius || 35, + filterTimeRange: search.timeRange, + filterStartDate: search.startDate, + filterEndDate: search.endDate, + filterLatitude: search.latitude, + filterLongitude: search.longitude, + filterUseLocation: search.useLocation || false, + filterLabels: search.labels || [], + filterCategories: search.categories || [] + }; + } + }, { + key: "_onFilterTextRef", + value: function _onFilterTextRef(ref) { + this.filterTextRef = ref; + } + }, { + key: "_onFilterRadiusRef", + value: function _onFilterRadiusRef(ref) { + this.filterRadiusRef = ref; + } + }, { + key: "_onFilterTimeRangeRef", + value: function _onFilterTimeRangeRef(ref) { + this.filterTimeRangeRef = ref; + } + }, { + key: "_onFilterCategoriesRef", + value: function _onFilterCategoriesRef(ref) { + this.filterCategoriesRef = ref; + } + }, { + key: "_onFilterLocationRef", + value: function _onFilterLocationRef(ref) { + this.filterLocationRef = ref; + } + }, { + key: "_getFilterValue", + value: function _getFilterValue(filter, defaultValue) { + var value = defaultValue; + + if (filter) { + var filterValue = filter.getValue(); + + if (filterValue) { + value = filterValue; + } + } + + return value; + } + }, { + key: "_onResetLocation", + value: function _onResetLocation() { + var defaultSearch = this._getEventsManager().getDefaultSearch(); + + this.setState({ + filterLatitude: defaultSearch ? defaultSearch.latitude : undefined, + filterLongitude: defaultSearch ? defaultSearch.longitude : undefined + }); + } + }, { + key: "_onSearchPress", + value: function _onSearchPress() { + var navigation = this.props.navigation; + + var _this$_getFilterValue = this._getFilterValue(this.filterLocationRef, {}), + latitude = _this$_getFilterValue.latitude, + longitude = _this$_getFilterValue.longitude, + useLocation = _this$_getFilterValue.useLocation; + + var _this$_getFilterValue2 = this._getFilterValue(this.filterTimeRangeRef, {}), + startDate = _this$_getFilterValue2.startDate, + endDate = _this$_getFilterValue2.endDate, + timeRange = _this$_getFilterValue2.timeRange; + + var _this$_getFilterValue3 = this._getFilterValue(this.filterRadiusRef, {}), + radius = _this$_getFilterValue3.radius; + + var _this$_getFilterValue4 = this._getFilterValue(this.filterCategoriesRef, {}), + selectedCategories = _this$_getFilterValue4.selectedCategories, + selectedLabels = _this$_getFilterValue4.selectedLabels; + + var term = this._getFilterValue(this.filterTextRef, ""); + + var filters = { + startDate: startDate || _$$_REQUIRE(_dependencyMap[12]).DateUtils.getMomentDate().format("YYYY-MM-DD"), + endDate: endDate, + latitude: latitude, + longitude: longitude, + useLocation: useLocation, + radius: radius, + categories: selectedCategories, + searchTerm: term, + timeRange: timeRange, + labels: selectedLabels + }; + + this._getEventsManager().toggleLastSearch(filters); + + this.setState(Object.assign({}, this._getFilterFromSearch(this._getEventsManager().getLastSearch())), function () { + navigation.navigate("VerticalListScreen", { + filters: filters + }); + }); + return []; + } + }, { + key: "_onResetPress", + value: function _onResetPress() { + var _this2 = this; + + var navigation = this.props.navigation; + var resetted = { + filterText: "", + filterRadius: 35, + filterTimeRange: "", + filterLatitude: undefined, + filterLongitude: undefined, + filterUseLocation: false, + filterCategories: [], + filterLabels: [] + }; + this.setState(Object.assign({}, resetted), function () { + _this2._getEventsManager().toggleDefaultSearch(resetted, false); + + navigation.navigate("VerticalListScreen", { + filters: {} + }); + }); + } + }, { + key: "_onSavedSearchesPress", + value: function _onSavedSearchesPress() { + var _this$props = this.props, + navigation = _this$props.navigation, + user = _this$props.user, + pass = _this$props.pass, + portal = _this$props.portal; + navigation.navigate("VerticalSavedSearchScreen", { + user: user, + pass: pass, + portal: portal, + labels: this._getLabels() + }); + } + }, { + key: "_onSetAsDefaultPress", + value: function _onSetAsDefaultPress() { + var _this$_getFilterValue5 = this._getFilterValue(this.filterRadiusRef, {}), + radius = _this$_getFilterValue5.radius; + + var _this$_getFilterValue6 = this._getFilterValue(this.filterCategoriesRef, {}), + selectedCategories = _this$_getFilterValue6.selectedCategories, + selectedLabels = _this$_getFilterValue6.selectedLabels; + + var _this$_getFilterValue7 = this._getFilterValue(this.filterTimeRangeRef, {}), + startDate = _this$_getFilterValue7.startDate, + endDate = _this$_getFilterValue7.endDate, + timeRange = _this$_getFilterValue7.timeRange; + + var term = this._getFilterValue(this.filterTextRef, ""); + + var _this$_getFilterValue8 = this._getFilterValue(this.filterLocationRef), + latitude = _this$_getFilterValue8.latitude, + longitude = _this$_getFilterValue8.longitude, + useLocation = _this$_getFilterValue8.useLocation; + + var filters = { + startDate: startDate || _$$_REQUIRE(_dependencyMap[12]).DateUtils.getMomentDate().format("YYYY-MM-DD"), + endDate: endDate, + latitude: latitude, + longitude: longitude, + radius: radius, + categories: selectedCategories, + searchTerm: term, + timeRange: timeRange, + useLocation: useLocation, + labels: selectedLabels + }; + + this._getEventsManager().toggleDefaultSearch(filters, true); + + return []; + } + }, { + key: "_loading", + value: function () { + var _loading2 = (0, _asyncToGenerator2.default)(function* (callback) { + var _this3 = this; + + this.setState({ + loading: true + }, (0, _asyncToGenerator2.default)(function* () { + var result = {}; + + try { + result = yield _this3._loadCategories(); + } catch (e) {} + + _this3.setState(Object.assign({ + loading: false + }, result)); + })); + }); + + function _loading(_x) { + return _loading2.apply(this, arguments); + } + + return _loading; + }() + }, { + key: "_loadCategories", + value: function () { + var _loadCategories2 = (0, _asyncToGenerator2.default)(function* () { + var _this$props2 = this.props, + user = _this$props2.user, + pass = _this$props2.pass, + portal = _this$props2.portal; + var config = { + auth: { + username: user, + password: pass + } + }; + var categories = []; + + var _yield$API$get = yield _Api.default.get((0, _$$_REQUIRE(_dependencyMap[13]).getEventCategories)(), config, { + portal: portal + }), + data = _yield$API$get.data; + + data.forEach(function (category) { + if (!category.parentCategoryId) { + categories.push({ + name: category.name, + categoryId: category.categoryId, + content: [] + }); + } else { + var parent = categories.find(function (el) { + return el.categoryId === category.parentCategoryId; + }); + + if (parent) { + parent.content.push({ + name: category.name, + parentCategoryId: category.parentCategoryId, + categoryId: category.categoryId + }); + } + } + }); + return { + categories: categories + }; + }); + + function _loadCategories() { + return _loadCategories2.apply(this, arguments); + } + + return _loadCategories; + }() + }, { + key: "_getLabels", + value: function _getLabels() { + var extraSearchField = this.props.extraSearchField; + + var defaultSearch = this._getEventsManager().getDefaultSearch(); + + var extraLabels; + + try { + extraLabels = JSON.parse(extraSearchField); + } catch (e) { + extraLabels = []; + } + + extraLabels.push({ + name: global.strings("str_editor_picks"), + label: "handPicked" + }); + var labels = []; + extraLabels.forEach(function (extraLabel) { + if (defaultSearch && defaultSearch.labels) { + var isSelected = defaultSearch.labels.find(function (item) { + return item.label === extraLabel.label; + }) !== undefined; + labels.push(Object.assign({}, extraLabel, { + selected: isSelected + })); + } else { + labels.push(extraLabel); + } + }); + return labels; + } + }, { + key: "_getEventsManager", + value: function _getEventsManager() { + return global.getVerticalsConfig().getEvents(); + } + }, { + key: "render", + value: function render() { + var _this$state = this.state, + categories = _this$state.categories, + loading = _this$state.loading, + filterText = _this$state.filterText, + filterRadius = _this$state.filterRadius, + filterStartDate = _this$state.filterStartDate, + filterEndDate = _this$state.filterEndDate, + filterTimeRange = _this$state.filterTimeRange, + filterLatitude = _this$state.filterLatitude, + filterLongitude = _this$state.filterLongitude, + filterUseLocation = _this$state.filterUseLocation, + filterCategories = _this$state.filterCategories, + filterLabels = _this$state.filterLabels; + var navigation = this.props.navigation; + + var defaultSearch = this._getEventsManager().getDefaultSearch(); + + var labels = this._getLabels(); + + return !loading ? (0, _$$_REQUIRE(_dependencyMap[14]).jsxs)(_$$_REQUIRE(_dependencyMap[15]).FilterParent, { + buttons: [{ + label: global.strings("btn_set_as_default"), + onPress: this.onSetAsDefaultPress + }, { + label: global.strings("saved_searches"), + onPress: this.onSavedSearchesPress + }, { + label: global.strings("btn_reset"), + onPress: this.onResetPress + }], + backgroundResizeMode: "cover", + backgroundUrl: (0, _$$_REQUIRE(_dependencyMap[13]).getEventBackground)(), + color: (0, _$$_REQUIRE(_dependencyMap[13]).getEventColor)(), + onSearch: this.onSearchPress, + children: [(0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_$$_REQUIRE(_dependencyMap[16]).FilterText, { + style: _$$_REQUIRE(_dependencyMap[17]).styles.filter, + borderColor: (0, _$$_REQUIRE(_dependencyMap[13]).getEventColor)(), + hint: global.strings("vertical_job_text_hint"), + ref: this.onFilterTextRef, + defaultSearch: filterText || null + }, "filter_text"), (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_$$_REQUIRE(_dependencyMap[18]).FilterLocation, { + latitude: filterLatitude, + longitude: filterLongitude, + useLocation: filterUseLocation, + style: _$$_REQUIRE(_dependencyMap[17]).styles.filter, + hint: defaultSearch && defaultSearch.latitude && defaultSearch.longitude ? global.strings("change_location_hint") : global.strings("vertical_job_location_hint"), + borderColor: (0, _$$_REQUIRE(_dependencyMap[13]).getEventColor)(), + textColor: _$$_REQUIRE(_dependencyMap[12]).colors.white, + ref: this.onFilterLocationRef, + onDisableSwitch: this.onResetLocation + }, "filter_location"), (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_$$_REQUIRE(_dependencyMap[19]).EventRadiusSlider, { + style: _$$_REQUIRE(_dependencyMap[17]).styles.filter, + color: (0, _$$_REQUIRE(_dependencyMap[13]).getEventColor)(), + maxValue: 100, + defaultValue: filterRadius, + label: global.strings("change_radius"), + ref: this.onFilterRadiusRef + }), (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_$$_REQUIRE(_dependencyMap[20]).EventModalCategories, { + color: (0, _$$_REQUIRE(_dependencyMap[13]).getEventColor)(), + label: global.strings("selected_categories"), + selectedLabels: filterLabels, + labels: labels, + selectedCategories: filterCategories, + categories: categories, + ref: this.onFilterCategoriesRef, + multiSelect: true, + navigation: navigation + }), (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_$$_REQUIRE(_dependencyMap[21]).EventModalTimeRange, { + data: [{ + value: "all" + }, { + value: "this_week", + intervalFunction: _$$_REQUIRE(_dependencyMap[12]).DateUtils.thisWeek + }, { + value: "next_week", + intervalFunction: _$$_REQUIRE(_dependencyMap[12]).DateUtils.nextWeek + }, { + value: "this_weekend", + intervalFunction: _$$_REQUIRE(_dependencyMap[12]).DateUtils.thisWeekend + }, { + value: "today", + intervalFunction: _$$_REQUIRE(_dependencyMap[12]).DateUtils.today + }, { + value: "tomorrow", + intervalFunction: _$$_REQUIRE(_dependencyMap[12]).DateUtils.tomorrow + }, { + value: "custom" + }], + color: (0, _$$_REQUIRE(_dependencyMap[13]).getEventColor)(), + format: "YYYY-MM-DD", + label: global.strings("selected_time_range"), + ref: this.onFilterTimeRangeRef, + timeRange: filterTimeRange, + startDate: filterStartDate, + endDate: filterEndDate + })] + }) : (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_reactNative.View, { + style: { + flex: 1, + backgroundColor: _$$_REQUIRE(_dependencyMap[22]).Css.getDefaultBackgroundColor() + }, + children: (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_$$_REQUIRE(_dependencyMap[23]).ProgressCircle, { + parentStyle: _$$_REQUIRE(_dependencyMap[17]).styles.spinner, + text: global.strings("loading"), + spinnerColor: (0, _$$_REQUIRE(_dependencyMap[13]).getEventColor)(), + showText: true + }) + }); + } + }]); + }(_$$_REQUIRE(_dependencyMap[24]).NavigationBaseScreen); + + EventFilterScreen.propTypes = { + user: _propTypes.default.string, + pass: _propTypes.default.string, + portal: _propTypes.default.string, + navigation: _propTypes.default.object.isRequired + }; + EventFilterScreen.defaultProps = { + user: "", + pass: "", + portal: "" + }; +},2506,[3,270,6,7,11,85,13,14,568,16,18,407,438,2470,179,2507,2519,2521,2522,2525,2530,2535,803,1884,2214]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2507,[2508]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.FilterParent = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[8]); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var FilterParent = exports.FilterParent = function (_React$Component) { + function FilterParent(props) { + var _this; + + (0, _classCallCheck2.default)(this, FilterParent); + _this = _callSuper(this, FilterParent, [props]); + _this.state = { + errors: [] + }; + return _this; + } + + (0, _inherits2.default)(FilterParent, _React$Component); + return (0, _createClass2.default)(FilterParent, [{ + key: "render", + value: function render() { + var _this2 = this; + + var _this$props = this.props, + backgroundUrl = _this$props.backgroundUrl, + children = _this$props.children, + color = _this$props.color, + onSearch = _this$props.onSearch, + advanceFilters = _this$props.advanceFilters, + backGroundResizeMode = _this$props.backGroundResizeMode, + buttons = _this$props.buttons; + var errors = this.state.errors; + return (0, _$$_REQUIRE(_dependencyMap[9]).jsxs)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[10]).styles.parent, + children: [(0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_reactNative.ImageBackground, { + source: { + uri: backgroundUrl + }, + style: _$$_REQUIRE(_dependencyMap[10]).styles.background, + resizeMode: backGroundResizeMode || "cover", + children: (0, _$$_REQUIRE(_dependencyMap[9]).jsxs)(_$$_REQUIRE(_dependencyMap[11]).TecnaviaScrollView, { + width: "100%", + horizontal: false, + centerContent: true, + children: [children, advanceFilters.length ? (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[12]).FilterAccordion, { + textColor: _$$_REQUIRE(_dependencyMap[13]).colors.white, + headerColor: color, + borderColor: color, + style: _$$_REQUIRE(_dependencyMap[10]).styles.filter, + children: advanceFilters + }) : null, (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[14]).FilterSearch, { + style: _$$_REQUIRE(_dependencyMap[10]).styles.filterButton, + backgroundColor: _$$_REQUIRE(_dependencyMap[13]).colors.white, + textColor: color, + borderColor: color, + onPress: function onPress() { + var newErrors = onSearch(); + + if (newErrors && newErrors.length) { + _this2.setState({ + errors: newErrors + }); + } + } + }), buttons.map(function (_ref, index) { + var label = _ref.label, + onPress = _ref.onPress; + return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[14]).FilterSearch, { + text: label, + style: _$$_REQUIRE(_dependencyMap[10]).styles.filterButton, + backgroundColor: color, + onPress: onPress + }, index); + })] + }) + }), (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[15]).Error, { + style: { + position: "absolute", + bottom: 0, + start: 0, + end: 0 + }, + errors: errors + })] + }); + } + }]); + }(_react.default.Component); + + FilterParent.propTypes = { + children: _propTypes.default.array.isRequired, + backgroundUrl: _propTypes.default.string, + color: _propTypes.default.string.isRequired, + onSearch: _propTypes.default.func.isRequired, + advanceFilters: _propTypes.default.arrayOf(_propTypes.default.node), + backGroundResizeMode: _propTypes.default.string, + buttons: _propTypes.default.arrayOf(_propTypes.default.shape({ + label: _propTypes.default.string.isRequired, + onPress: _propTypes.default.func.isRequired + })) + }; + FilterParent.defaultProps = { + advanceFilters: [], + buttons: [] + }; +},2508,[3,6,7,11,13,14,16,568,18,179,2509,1937,2510,438,2517,2171]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var styles = exports.styles = _reactNative.StyleSheet.create({ + parent: { + flex: 1, + justifyContent: "center", + alignItems: "center" + }, + background: { + width: "100%", + flex: 1, + flexDirection: "column", + justifyContent: "center", + alignItems: "center" + }, + filterViews: { + width: "100%", + flexDirection: "column", + justifyContent: "center", + alignItems: "center" + }, + filter: { + width: "100%" + }, + searchButton: { + borderWidth: 1, + borderColor: (0, _$$_REQUIRE(_dependencyMap[1]).getEventColor)() + } + }); +},2509,[18,2470]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2510,[2511]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.FilterAccordion = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[7]); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9])); + + var _accordionComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var FilterAccordion = exports.FilterAccordion = function (_React$Component) { + function FilterAccordion(props) { + var _this; + + (0, _classCallCheck2.default)(this, FilterAccordion); + _this = _callSuper(this, FilterAccordion, [props]); + + var _global$getRssIndex = global.getRssIndex(), + supportColor = _global$getRssIndex.supportColor; + + _this.borderColor = props.borderColor || supportColor; + return _this; + } + + (0, _inherits2.default)(FilterAccordion, _React$Component); + return (0, _createClass2.default)(FilterAccordion, [{ + key: "_renderHeader", + value: function _renderHeader(item, index, expanded) { + var _this$props = this.props, + textColor = _this$props.textColor, + headerColor = _this$props.headerColor; + return (0, _$$_REQUIRE(_dependencyMap[11]).jsxs)(_reactNative.View, { + style: [_$$_REQUIRE(_dependencyMap[12]).styles.header, { + backgroundColor: headerColor, + borderColor: this.borderColor + }], + children: [(0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.Text, { + style: [_$$_REQUIRE(_dependencyMap[12]).styles.headerText, { + color: textColor + }], + children: item.title + }), expanded ? (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_iconComponent.default, { + style: { + fontSize: 18, + color: textColor + }, + name: "remove", + type: _iconComponent.TecnaviaIconType.MATERIAL_ICONS + }) : (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_iconComponent.default, { + style: { + fontSize: 18, + color: textColor + }, + name: "add", + type: _iconComponent.TecnaviaIconType.MATERIAL_ICONS + })] + }); + } + }, { + key: "_renderContent", + value: function _renderContent() { + var _this$props2 = this.props, + children = _this$props2.children, + contentStyle = _this$props2.contentStyle; + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.View, { + style: [_$$_REQUIRE(_dependencyMap[12]).styles.content, { + backgroundColor: _$$_REQUIRE(_dependencyMap[13]).colors.transparent + }, contentStyle], + children: children + }); + } + }, { + key: "render", + value: function render() { + var style = this.props.style; + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_accordionComponent.default, { + style: style, + sections: [{ + title: global.strings("btn_advance_filters") + }], + renderHeader: this._renderHeader.bind(this), + renderContent: this._renderContent.bind(this) + }); + } + }]); + }(_react.default.Component); + + FilterAccordion.propTypes = { + textColor: _propTypes.default.string, + headerColor: _propTypes.default.string, + borderColor: _propTypes.default.string, + style: _propTypes.default.object, + children: _propTypes.default.array, + contentStyle: _propTypes.default.object + }; + FilterAccordion.defaultProps = { + textColor: _$$_REQUIRE(_dependencyMap[13]).colors.white, + headerColor: _$$_REQUIRE(_dependencyMap[13]).colors.black, + borderColor: _$$_REQUIRE(_dependencyMap[13]).colors.black + }; +},2511,[3,6,7,11,13,14,16,18,568,1807,2512,179,2515,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = TecnaviaAccordion; + + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _Accordion = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + function TecnaviaAccordion(props) { + var _React$useState = _react.default.useState([]), + _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), + activeSections = _React$useState2[0], + setActiveSections = _React$useState2[1]; + + return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_Accordion.default, Object.assign({ + underlayColor: _$$_REQUIRE(_dependencyMap[6]).colors.transparent + }, props, { + activeSections: activeSections, + onChange: function onChange() { + var active = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + return setActiveSections((0, _toConsumableArray2.default)(active)); + } + })); + } +},2512,[3,22,33,16,2513,179,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[9]); + + var _Collapsible = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _excluded = ["activeSections", "expandMultiple", "onChange", "containerStyle", "sectionContainerStyle", "expandFromBottom", "sections", "underlayColor", "touchableProps", "touchableComponent", "onAnimationEnd", "renderContent", "renderHeader", "renderFooter", "renderSectionTitle", "disabled", "renderAsFlatList", "keyExtractor"]; + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var COLLAPSIBLE_PROPS = ['align', 'collapsed', 'collapsedHeight', 'renderChildrenCollapsed', 'enablePointerEvents', 'duration', 'easing', 'style', 'onAnimationEnd']; + + var Accordion = exports.default = function (_Component) { + function Accordion() { + var _this; + + (0, _classCallCheck2.default)(this, Accordion); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _callSuper(this, Accordion, [].concat(args)); + + _this._renderContainer = function (section, key, renderCollapsible) { + var _this$props = _this.props, + activeSections = _this$props.activeSections, + sectionContainerStyle = _this$props.sectionContainerStyle, + expandFromBottom = _this$props.expandFromBottom, + sections = _this$props.sections, + underlayColor = _this$props.underlayColor, + touchableProps = _this$props.touchableProps, + Touchable = _this$props.touchableComponent, + renderHeader = _this$props.renderHeader, + renderFooter = _this$props.renderFooter, + renderSectionTitle = _this$props.renderSectionTitle; + return (0, _$$_REQUIRE(_dependencyMap[11]).jsxs)(_reactNative.View, { + style: sectionContainerStyle, + children: [renderSectionTitle(section, key, activeSections.includes(key)), expandFromBottom && renderCollapsible(section, key), (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(Touchable, Object.assign({ + onPress: function onPress() { + return _this._toggleSection(key); + }, + underlayColor: underlayColor + }, touchableProps, { + accessibilityState: { + expanded: activeSections.includes(key) + }, + children: renderHeader(section, key, activeSections.includes(key), sections) + })), !expandFromBottom && renderCollapsible(section, key), renderFooter && renderFooter(section, key, activeSections.includes(key), sections)] + }, key); + }; + + return _this; + } + + (0, _inherits2.default)(Accordion, _Component); + return (0, _createClass2.default)(Accordion, [{ + key: "_toggleSection", + value: function _toggleSection(section) { + if (!this.props.disabled) { + var _this$props2 = this.props, + activeSections = _this$props2.activeSections, + expandMultiple = _this$props2.expandMultiple, + onChange = _this$props2.onChange; + var updatedSections = []; + + if (activeSections.includes(section)) { + updatedSections = activeSections.filter(function (a) { + return a !== section; + }); + } else if (expandMultiple) { + updatedSections = [].concat((0, _toConsumableArray2.default)(activeSections), [section]); + } else { + updatedSections = [section]; + } + + if (onChange) { + onChange(updatedSections); + } + } + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var _this$props3 = this.props, + activeSections = _this$props3.activeSections, + expandMultiple = _this$props3.expandMultiple, + onChange = _this$props3.onChange, + containerStyle = _this$props3.containerStyle, + sectionContainerStyle = _this$props3.sectionContainerStyle, + expandFromBottom = _this$props3.expandFromBottom, + sections = _this$props3.sections, + underlayColor = _this$props3.underlayColor, + touchableProps = _this$props3.touchableProps, + Touchable = _this$props3.touchableComponent, + _onAnimationEnd = _this$props3.onAnimationEnd, + renderContent = _this$props3.renderContent, + renderHeader = _this$props3.renderHeader, + renderFooter = _this$props3.renderFooter, + renderSectionTitle = _this$props3.renderSectionTitle, + disabled = _this$props3.disabled, + renderAsFlatList = _this$props3.renderAsFlatList, + keyExtractor = _this$props3.keyExtractor, + restProps = (0, _objectWithoutProperties2.default)(_this$props3, _excluded); + var viewProps = {}; + var collapsibleProps = {}; + Object.keys(restProps).forEach(function (key) { + if (COLLAPSIBLE_PROPS.includes(key)) { + collapsibleProps[key] = restProps[key]; + } else { + viewProps[key] = restProps[key]; + } + }); + + var renderCollapsible = function renderCollapsible(section, key) { + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_Collapsible.default, Object.assign({ + collapsed: !activeSections.includes(key) + }, collapsibleProps, { + onAnimationEnd: function onAnimationEnd() { + return _onAnimationEnd(section, key); + }, + children: renderContent(section, key, activeSections.includes(key), sections) + })); + }; + + if (renderAsFlatList) { + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.FlatList, Object.assign({ + style: containerStyle, + data: sections, + extraData: activeSections, + nestedScrollEnabled: true, + keyExtractor: keyExtractor, + renderItem: function renderItem(_ref) { + var item = _ref.item, + index = _ref.index; + var section = item; + var key = keyExtractor(item, index); + return _this2._renderContainer(section, key, renderCollapsible); + } + }, viewProps)); + } + + return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.View, Object.assign({ + style: containerStyle + }, viewProps, { + children: sections.map(function (section, index) { + var key = keyExtractor(section, index); + return _this2._renderContainer(section, key, renderCollapsible); + }) + })); + } + }]); + }(_react.Component); + + Accordion.defaultProps = { + underlayColor: 'black', + disabled: false, + expandFromBottom: false, + expandMultiple: false, + touchableComponent: _reactNative.TouchableHighlight, + keyExtractor: function keyExtractor(item, index) { + return index; + }, + renderSectionTitle: function renderSectionTitle() { + return null; + }, + onAnimationEnd: function onAnimationEnd() { + return null; + }, + sectionContainerStyle: {}, + renderAsFlatList: false + }; +},2513,[3,4,22,6,7,11,13,14,16,18,2514,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[7]); + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var ANIMATED_EASING_PREFIXES = ['easeInOut', 'easeOut', 'easeIn']; + + var Collapsible = exports.default = function (_Component) { + function Collapsible(props) { + var _this; + + (0, _classCallCheck2.default)(this, Collapsible); + _this = _callSuper(this, Collapsible, [props]); + _this.contentHandle = null; + + _this._handleRef = function (ref) { + _this.contentHandle = ref; + }; + + _this._handleLayoutChange = function (event) { + var contentHeight = event.nativeEvent.layout.height; + + if (_this.state.animating || _this.props.collapsed || _this.state.measuring || _this.state.contentHeight === contentHeight) { + return; + } + + _this.state.height.setValue(contentHeight); + + _this.setState({ + contentHeight: contentHeight + }); + }; + + _this.state = { + measuring: false, + measured: false, + height: new _reactNative.Animated.Value(props.collapsedHeight), + contentHeight: 0, + animating: false + }; + return _this; + } + + (0, _inherits2.default)(Collapsible, _Component); + return (0, _createClass2.default)(Collapsible, [{ + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var _this2 = this; + + if (prevProps.collapsed !== this.props.collapsed) { + this.setState({ + measured: false + }, function () { + return _this2._componentDidUpdate(prevProps); + }); + } else { + this._componentDidUpdate(prevProps); + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.unmounted = true; + } + }, { + key: "_componentDidUpdate", + value: function _componentDidUpdate(prevProps) { + if (prevProps.collapsed !== this.props.collapsed) { + this._toggleCollapsed(this.props.collapsed); + } else if (this.props.collapsed && prevProps.collapsedHeight !== this.props.collapsedHeight) { + this.state.height.setValue(this.props.collapsedHeight); + } + } + }, { + key: "_measureContent", + value: function _measureContent(callback) { + var _this3 = this; + + this.setState({ + measuring: true + }, function () { + requestAnimationFrame(function () { + if (!_this3.contentHandle) { + _this3.setState({ + measuring: false + }, function () { + return callback(_this3.props.collapsedHeight); + }); + } else { + var ref; + + if (typeof _this3.contentHandle.measure === 'function') { + ref = _this3.contentHandle; + } else { + ref = _this3.contentHandle.getNode(); + } + + ref.measure(function (x, y, width, height) { + _this3.setState({ + measuring: false, + measured: true, + contentHeight: height + }, function () { + return callback(height); + }); + }); + } + }); + }); + } + }, { + key: "_toggleCollapsed", + value: function _toggleCollapsed(collapsed) { + var _this4 = this; + + if (collapsed) { + this._transitionToHeight(this.props.collapsedHeight); + } else if (!this.contentHandle) { + if (this.state.measured) { + this._transitionToHeight(this.state.contentHeight); + } + + return; + } else { + this._measureContent(function (contentHeight) { + _this4._transitionToHeight(contentHeight); + }); + } + } + }, { + key: "_transitionToHeight", + value: function _transitionToHeight(height) { + var _this5 = this; + + var duration = this.props.duration; + var easing = this.props.easing; + + if (typeof easing === 'string') { + var prefix; + var found = false; + + for (var i = 0; i < ANIMATED_EASING_PREFIXES.length; i++) { + prefix = ANIMATED_EASING_PREFIXES[i]; + + if (easing.substr(0, prefix.length) === prefix) { + easing = easing.substr(prefix.length, 1).toLowerCase() + easing.substr(prefix.length + 1); + prefix = prefix.substr(4, 1).toLowerCase() + prefix.substr(5); + easing = _reactNative.Easing[prefix](_reactNative.Easing[easing || 'ease']); + found = true; + break; + } + } + + if (!found) { + easing = _reactNative.Easing[easing]; + } + + if (!easing) { + throw new Error('Invalid easing type "' + this.props.easing + '"'); + } + } + + if (this._animation) { + this._animation.stop(); + } + + this.setState({ + animating: true + }); + this._animation = _reactNative.Animated.timing(this.state.height, { + useNativeDriver: false, + toValue: height ? height : 0, + duration: duration, + easing: easing + }).start(function () { + if (_this5.unmounted) { + return; + } + + _this5.setState({ + animating: false + }, function () { + if (_this5.unmounted) { + return; + } + + _this5.props.onAnimationEnd(); + }); + }); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + collapsed = _this$props.collapsed, + enablePointerEvents = _this$props.enablePointerEvents, + renderChildrenCollapsed = _this$props.renderChildrenCollapsed; + var _this$state = this.state, + height = _this$state.height, + contentHeight = _this$state.contentHeight, + measuring = _this$state.measuring, + measured = _this$state.measured, + animating = _this$state.animating; + var hasKnownHeight = !measuring && (measured || collapsed); + var style = { + overflow: 'hidden', + height: hasKnownHeight ? height : 0 + }; + var contentStyle = {}; + + if (measuring) { + contentStyle.position = 'absolute'; + contentStyle.opacity = 0; + } else if (this.props.align === 'center') { + contentStyle.transform = [{ + translateY: height.interpolate({ + inputRange: [0, contentHeight], + outputRange: [contentHeight / -2, 0] + }) + }]; + } else if (this.props.align === 'bottom') { + contentStyle.transform = [{ + translateY: height.interpolate({ + inputRange: [0, contentHeight], + outputRange: [-contentHeight, 0] + }) + }]; + } + + if (animating) { + contentStyle.height = contentHeight; + } + + var shouldRenderChildren = renderChildrenCollapsed || (!collapsed || collapsed && animating) && (animating || measuring || measured); + return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_reactNative.Animated.View, { + style: style, + pointerEvents: !enablePointerEvents && collapsed ? 'none' : 'auto', + children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_reactNative.Animated.View, { + ref: this._handleRef, + style: [this.props.style, contentStyle], + onLayout: this.state.animating ? undefined : this._handleLayoutChange, + children: shouldRenderChildren && this.props.children + }) + }); + } + }]); + }(_react.Component); + + Collapsible.defaultProps = { + align: 'top', + collapsed: true, + collapsedHeight: 0, + enablePointerEvents: false, + duration: 300, + easing: 'easeOutCubic', + onAnimationEnd: function onAnimationEnd() { + return null; + }, + renderChildrenCollapsed: true + }; +},2514,[3,6,7,11,13,14,16,18,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var styles = exports.styles = _reactNative.StyleSheet.create({ + header: { + height: _$$_REQUIRE(_dependencyMap[1]).filterStyles.LINE_HEIGHT, + margin: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, + borderWidth: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_WIDTH, + borderRadius: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_RADIUS, + flexDirection: "row", + justifyContent: "center", + alignItems: "center", + padding: _$$_REQUIRE(_dependencyMap[1]).filterStyles.TEXT_PADDING + }, + headerText: { + flex: 3 + }, + headerIcon: { + flex: 1 + }, + content: { + flexDirection: "column" + } + }); +},2515,[18,2516]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.filterStyles = undefined; + var filterStyles = exports.filterStyles = { + LINE_HEIGHT: 50, + TEXT_PADDING: 5, + MARGIN: 10, + BORDER_WIDTH: 2, + BORDER_RADIUS: 5, + SEARCH_WIDTH: 200 + }; +},2516,[]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.FilterSearch = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[7]); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var FilterSearch = exports.FilterSearch = function (_React$Component) { + function FilterSearch() { + (0, _classCallCheck2.default)(this, FilterSearch); + return _callSuper(this, FilterSearch, arguments); + } + + (0, _inherits2.default)(FilterSearch, _React$Component); + return (0, _createClass2.default)(FilterSearch, [{ + key: "render", + value: function render() { + var _this$props = this.props, + style = _this$props.style, + backgroundColor = _this$props.backgroundColor, + textColor = _this$props.textColor, + borderColor = _this$props.borderColor, + _onPress = _this$props.onPress; + var text = this.props.text; + text = text || global.strings("btn_search"); + return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_reactNative.View, { + style: style, + children: (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_reactNative.TouchableOpacity, { + activeOpacity: 0.8, + onPress: function onPress() { + if (typeof _onPress === "function") { + _onPress(); + } + }, + style: [_$$_REQUIRE(_dependencyMap[10]).styles.touchable, { + backgroundColor: backgroundColor, + borderColor: borderColor, + borderWidth: borderColor ? 2 : 0 + }], + children: (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_reactNative.Text, { + style: [_$$_REQUIRE(_dependencyMap[10]).styles.text, { + color: textColor + }], + children: text + }) + }) + }); + } + }]); + }(_react.default.Component); + + FilterSearch.propTypes = { + style: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.number]), + backgroundColor: _propTypes.default.string, + textColor: _propTypes.default.string, + borderColor: _propTypes.default.string, + text: _propTypes.default.string, + onPress: _propTypes.default.func.isRequired + }; + FilterSearch.defaultProps = { + backgroundColor: _$$_REQUIRE(_dependencyMap[11]).colors.black, + textColor: _$$_REQUIRE(_dependencyMap[11]).colors.white + }; +},2517,[3,6,7,11,13,14,16,18,568,179,2518,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var styles = exports.styles = _reactNative.StyleSheet.create({ + touchable: { + margin: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, + height: _$$_REQUIRE(_dependencyMap[1]).filterStyles.LINE_HEIGHT, + width: _$$_REQUIRE(_dependencyMap[1]).filterStyles.SEARCH_WIDTH, + borderRadius: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_RADIUS, + flexDirection: "column", + justifyContent: "center", + alignItems: "center", + alignSelf: "center" + }, + text: { + color: _$$_REQUIRE(_dependencyMap[2]).colors.white, + padding: _$$_REQUIRE(_dependencyMap[1]).filterStyles.TEXT_PADDING + } + }); +},2518,[18,2516,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.FilterText = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[8]); + + var _fontTextInput = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var FilterText = exports.FilterText = function (_React$Component) { + function FilterText(props) { + var _this; + + (0, _classCallCheck2.default)(this, FilterText); + _this = _callSuper(this, FilterText, [props]); + + var _global$getRssIndex = global.getRssIndex(), + supportColor = _global$getRssIndex.supportColor; + + _this.borderColor = props.borderColor || supportColor; + _this.state = { + input: props.defaultSearch || "" + }; + return _this; + } + + (0, _inherits2.default)(FilterText, _React$Component); + return (0, _createClass2.default)(FilterText, [{ + key: "UNSAFE_componentWillReceiveProps", + value: function UNSAFE_componentWillReceiveProps(newProps) { + if (newProps.defaultSearch !== undefined) { + this.setState({ + input: newProps.defaultSearch + }); + } + } + }, { + key: "getValue", + value: function getValue() { + var input = this.state.input; + return input; + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var style = this.props.style; + var hint = this.props.hint; + hint = hint || global.strings("filter_text"); + var input = this.state.input; + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.View, { + style: style, + children: (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_fontTextInput.default, { + style: [_$$_REQUIRE(_dependencyMap[11]).styles.text, { + borderColor: this.borderColor, + padding: 5, + color: _$$_REQUIRE(_dependencyMap[12]).colors.md_black_1000 + }], + underlineColorAndroid: this.borderColor, + onChangeText: function onChangeText(text) { + return _this2.setState({ + input: text + }); + }, + value: input, + returnKeyType: "done", + placeholder: hint, + placeholderTextColor: _$$_REQUIRE(_dependencyMap[12]).colors.grey + }) + }); + } + }]); + }(_react.default.Component); + + FilterText.propTypes = { + style: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.number]), + borderColor: _propTypes.default.string, + hint: _propTypes.default.string, + defaultSearch: _propTypes.default.string + }; +},2519,[3,6,7,11,13,14,16,568,18,2233,179,2520,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var styles = exports.styles = _reactNative.StyleSheet.create({ + text: { + backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white, + height: _$$_REQUIRE(_dependencyMap[2]).filterStyles.LINE_HEIGHT, + margin: _$$_REQUIRE(_dependencyMap[2]).filterStyles.MARGIN, + borderWidth: _$$_REQUIRE(_dependencyMap[2]).filterStyles.BORDER_WIDTH, + borderRadius: _$$_REQUIRE(_dependencyMap[2]).filterStyles.BORDER_RADIUS + } + }); +},2520,[18,438,2516]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var styles = exports.styles = _reactNative.StyleSheet.create({ + parent: { + justifyContent: "center", + alignItems: "center" + }, + background: { + width: "100%", + flex: 1, + flexDirection: "column", + justifyContent: "center", + alignItems: "center" + }, + filterViews: { + maxWidth: 500, + width: "100%", + flexDirection: "column", + justifyContent: "center", + alignItems: "center" + }, + filter: { + width: "100%" + }, + filterButton: {}, + text: { + color: _$$_REQUIRE(_dependencyMap[1]).colors.md_black_1000, + padding: _$$_REQUIRE(_dependencyMap[2]).filterStyles.TEXT_PADDING + }, + spinner: { + position: "absolute", + bottom: "50%", + start: 0, + end: 0, + height: 50 + } + }); +},2521,[18,438,2516]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2522,[2523]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.FilterLocation = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[10]); + + var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + var _RssIndexConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + + var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); + + var _locationPermission = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); + + var _modal = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); + + var _fontTextInput = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); + + var _excluded = ["lng"]; + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + function parseApiCitiesResult(result) { + if (result === undefined || typeof result === "string" || typeof result === "number") { + return []; + } + + var parsed; + + if (!Array.isArray(result)) { + parsed = [result]; + } else { + parsed = result; + } + + return parsed.map(function (item) { + var lng = item.lng, + rest = (0, _objectWithoutProperties2.default)(item, _excluded); + return Object.assign({}, rest, { + lon: lng + }); + }); + } + + function getCities(_x) { + return _getCities.apply(this, arguments); + } + + function _getCities() { + _getCities = (0, _asyncToGenerator2.default)(function* (input) { + try { + var result = (yield _Api.default.cities(input)).data; + return parseApiCitiesResult(result); + } catch (e) {} + + return []; + }); + return _getCities.apply(this, arguments); + } + + function getClosestCities() { + return _getClosestCities.apply(this, arguments); + } + + function _getClosestCities() { + _getClosestCities = (0, _asyncToGenerator2.default)(function* () { + var location = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + + try { + var result = (yield _Api.default.closestCities(location)).data; + return parseApiCitiesResult(result); + } catch (e) {} + + return []; + }); + return _getClosestCities.apply(this, arguments); + } + + var FilterLocation = exports.FilterLocation = function (_React$Component) { + function FilterLocation(props) { + var _this; + + (0, _classCallCheck2.default)(this, FilterLocation); + _this = _callSuper(this, FilterLocation, [props]); + _this.state = { + input: "", + switchValue: props.useLocation || false, + data: [], + modal: false + }; + _this.toggleModal = _this._toggleModal.bind(_this); + _this.onTextChange = _this._onTextChange.bind(_this); + _this.onSelectItem = _this._onSelectItem.bind(_this); + _this.renderItem = _this._renderItem.bind(_this); + _this.onSwitchChange = _this._onSwitchChange.bind(_this); + _this.onLayout = _this._onLayout.bind(_this); + _this.onLocationChange = _this._onLocationChange.bind(_this); + + var _global$getRssIndex = global.getRssIndex(), + actionBarBackgroundColor = _global$getRssIndex.actionBarBackgroundColor, + supportColor = _global$getRssIndex.supportColor; + + _this.textColor = props.textColor || actionBarBackgroundColor; + _this.borderColor = props.borderColor || supportColor; + + _this._initDefaultLocation(props); + + if (props.useLocation) { + _this._manageLocation(props.useLocation); + } + + return _this; + } + + (0, _inherits2.default)(FilterLocation, _React$Component); + return (0, _createClass2.default)(FilterLocation, [{ + key: "componentDidMount", + value: function componentDidMount() { + this._initDefaultCity(); + } + }, { + key: "UNSAFE_componentWillReceiveProps", + value: function UNSAFE_componentWillReceiveProps(newProps) { + this._initDefaultLocation(newProps); + + this._initDefaultCity(); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this._unWatch(); + } + }, { + key: "getValue", + value: function getValue() { + var _this$state = this.state, + input = _this$state.input, + switchValue = _this$state.switchValue; + return { + input: input, + city: this.selected ? this.selected.city : "", + state: this.selected ? this.selected.state : "", + zip: this.selected ? this.selected.zip : "", + latitude: this.selected ? this.selected.lat : "", + longitude: this.selected ? this.selected.lon : "", + useLocation: switchValue + }; + } + }, { + key: "_initDefaultLocation", + value: function _initDefaultLocation() { + var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + + var _global$getRssIndex2 = global.getRssIndex(), + latitude = _global$getRssIndex2.latitude, + longitude = _global$getRssIndex2.longitude; + + if (props.latitude && props.longitude) { + latitude = props.latitude; + longitude = props.longitude; + } + + this.selected = { + lat: latitude, + lon: longitude + }; + } + }, { + key: "_initDefaultCity", + value: function () { + var _initDefaultCity2 = (0, _asyncToGenerator2.default)(function* () { + try { + if (this.selected) { + var item = (yield getClosestCities(this.selected))[0]; + + if (item !== undefined) { + this.selected = item; + + this._updateInput(item.city + ", " + item.state); + } + } + } catch (e) {} + }); + + function _initDefaultCity() { + return _initDefaultCity2.apply(this, arguments); + } + + return _initDefaultCity; + }() + }, { + key: "_manageLocation", + value: function () { + var _manageLocation2 = (0, _asyncToGenerator2.default)(function* (enable) { + if (enable) { + yield _locationPermission.default.ask(); + + if (this.geolocation === undefined) { + this.geolocation = new (_$$_REQUIRE(_dependencyMap[17]).LocationMgr)(); + } + + this.geolocation.watchPosition(this.onLocationChange); + } else { + this._unWatch(); + } + }); + + function _manageLocation(_x2) { + return _manageLocation2.apply(this, arguments); + } + + return _manageLocation; + }() + }, { + key: "_onLocationChange", + value: function () { + var _onLocationChange2 = (0, _asyncToGenerator2.default)(function* (_ref) { + var coords = _ref.coords; + + try { + var data = yield this._updateListByLocation(coords); + + if (data.length === 0) { + _$$_REQUIRE(_dependencyMap[18]).Toast.show(global.strings("msg_zip_not_found")); + + this._updateSwitch(false); + } else { + this.selected = data[0]; + this.setState({ + input: data[0].city + ", " + data[0].state + }); + } + } catch (e) { + this._updateSwitch(false); + } + }); + + function _onLocationChange(_x3) { + return _onLocationChange2.apply(this, arguments); + } + + return _onLocationChange; + }() + }, { + key: "_unWatch", + value: function _unWatch() { + if (this.geolocation && this.geolocation.isWatching()) { + this.geolocation.unWatch(); + } + } + }, { + key: "_updateSwitch", + value: function _updateSwitch(value) { + var onDisableSwitch = this.props.onDisableSwitch; + + if (!value) { + this._initDefaultLocation(this.props); + + this._initDefaultCity(); + + if (typeof onDisableSwitch === "function") { + onDisableSwitch(); + } + } + + this.setState({ + switchValue: value, + data: [] + }); + } + }, { + key: "_updateInput", + value: function _updateInput(text) { + this.setState({ + input: text, + switchValue: false, + data: [] + }); + + this._unWatch(); + } + }, { + key: "_updateListByLocation", + value: function () { + var _updateListByLocation2 = (0, _asyncToGenerator2.default)(function* (location) { + var _global$getRssIndex3 = global.getRssIndex(), + latitude = _global$getRssIndex3.latitude, + longitude = _global$getRssIndex3.longitude; + + var lon = location ? location.longitude : longitude; + var lat = location ? location.latitude : latitude; + return getClosestCities({ + lat: lat, + lon: lon + }); + }); + + function _updateListByLocation(_x4) { + return _updateListByLocation2.apply(this, arguments); + } + + return _updateListByLocation; + }() + }, { + key: "_filterData", + value: function () { + var _filterData2 = (0, _asyncToGenerator2.default)(function* (input) { + try { + var cities = yield getCities({ + wording: input + }); + this.setState({ + data: cities + }); + } catch (e) {} + }); + + function _filterData(_x5) { + return _filterData2.apply(this, arguments); + } + + return _filterData; + }() + }, { + key: "_toggleModal", + value: function _toggleModal() { + var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; + this.setState({ + modal: state + }); + } + }, { + key: "_onTextChange", + value: function _onTextChange(text) { + this._updateInput(text); + + if (text.length > 2) { + this._filterData(text); + } + } + }, { + key: "_onSelectItem", + value: function _onSelectItem(item) { + var onSelect = this.props.onSelect; + this.selected = item; + + this._updateInput(item.city + ", " + item.state); + + if (onSelect) { + onSelect(); + } + + this._toggleModal(false); + } + }, { + key: "_onSwitchChange", + value: function _onSwitchChange(value) { + this._manageLocation(value); + + this._updateSwitch(value); + } + }, { + key: "_onLayout", + value: function _onLayout() { + this.inputWidth = "100%"; + } + }, { + key: "_renderItem", + value: function _renderItem(_ref2) { + var _this2 = this; + + var item = _ref2.item, + index = _ref2.index; + var switchValue = this.state.switchValue; + return (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_reactNative.TouchableWithoutFeedback, { + onPress: function onPress() { + return _this2.onSelectItem(item); + }, + children: !switchValue ? (0, _$$_REQUIRE(_dependencyMap[19]).jsxs)(_reactNative.View, { + style: [_$$_REQUIRE(_dependencyMap[20]).styles.listItem], + children: [(0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_reactNative.Text, { + style: [_$$_REQUIRE(_dependencyMap[20]).styles.text, _$$_REQUIRE(_dependencyMap[20]).styles.textCity, { + color: _$$_REQUIRE(_dependencyMap[17]).colors.md_black_1000 + }], + children: (item.city || "") + ", " + (item.state || "") + }), (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_reactNative.Text, { + style: [_$$_REQUIRE(_dependencyMap[20]).styles.text, _$$_REQUIRE(_dependencyMap[20]).styles.textZip], + children: item.zip + })] + }) : (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_reactNative.View, {}) + }, index); + } + }, { + key: "_getModal", + value: function _getModal() { + var hint = this.props.hint; + var borderColor = this.borderColor; + var _this$state2 = this.state, + input = _this$state2.input, + data = _this$state2.data; + var modal = this.state.modal; + var inputWidth = this.inputWidth ? this.inputWidth : _deviceUtils.default.screenDimensions.width - _$$_REQUIRE(_dependencyMap[21]).filterStyles.MARGIN * 2; + return (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_modal.default, { + transparent: true, + visible: modal, + containerStyle: { + padding: 0 + }, + children: (0, _$$_REQUIRE(_dependencyMap[19]).jsxs)(_reactNative.View, { + style: [{ + width: inputWidth + }], + children: [(0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_fontTextInput.default, { + autoFocus: true, + style: [_$$_REQUIRE(_dependencyMap[20]).styles.textInput, _$$_REQUIRE(_dependencyMap[20]).styles.textInputModal, { + borderColor: borderColor, + color: _$$_REQUIRE(_dependencyMap[17]).colors.md_black_1000 + }], + underlineColorAndroid: borderColor, + onChangeText: this.onTextChange, + value: input, + returnKeyType: "search", + placeholder: hint, + placeholderTextColor: _$$_REQUIRE(_dependencyMap[17]).colors.grey + }), data && data.length ? (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[20]).styles.list, + children: (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_$$_REQUIRE(_dependencyMap[22]).TecnaviaFlatList, { + data: data, + renderItem: this.renderItem + }) + }) : null] + }) + }); + } + }, { + key: "render", + value: function render() { + var borderColor = this.borderColor, + textColor = this.textColor; + var _this$props = this.props, + hint = _this$props.hint, + style = _this$props.style, + onPopulateSelect = _this$props.onPopulateSelect; + var _this$state3 = this.state, + input = _this$state3.input, + switchValue = _this$state3.switchValue, + data = _this$state3.data; + + if (onPopulateSelect) { + onPopulateSelect(data && data.length); + } + + return (0, _$$_REQUIRE(_dependencyMap[19]).jsxs)(_reactNative.View, { + style: [{ + flexDirection: "column" + }, style], + children: [this._getModal(), (0, _$$_REQUIRE(_dependencyMap[19]).jsxs)(_reactNative.View, { + style: [_$$_REQUIRE(_dependencyMap[20]).styles.parent, { + borderColor: borderColor + }], + children: [(0, _$$_REQUIRE(_dependencyMap[19]).jsxs)(_reactNative.View, { + style: [_$$_REQUIRE(_dependencyMap[20]).styles.parentMyLocation, { + backgroundColor: borderColor + }], + children: [(0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_reactNative.Text, { + style: [_$$_REQUIRE(_dependencyMap[20]).styles.text, _$$_REQUIRE(_dependencyMap[20]).styles.textMyLocation, { + color: textColor + }], + children: global.strings("my_location") + }), (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_reactNative.Switch, { + style: _$$_REQUIRE(_dependencyMap[20]).styles.switchMyLocation, + onValueChange: this.onSwitchChange, + value: switchValue, + ios_backgroundColor: _$$_REQUIRE(_dependencyMap[17]).colors.grey200 + })] + }), (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_reactNative.TouchableOpacity, { + onPress: this.toggleModal, + children: (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_reactNative.View, { + pointerEvents: "none", + children: (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_fontTextInput.default, { + onLayout: this.onLayout, + style: [_$$_REQUIRE(_dependencyMap[20]).styles.textInput, { + padding: 5, + color: _$$_REQUIRE(_dependencyMap[17]).colors.md_black_1000 + }], + underlineColorAndroid: borderColor, + value: input, + returnKeyType: "search", + placeholder: hint || global.strings("filter_text"), + placeholderTextColor: _$$_REQUIRE(_dependencyMap[17]).colors.grey, + editable: false + }) + }) + })] + })] + }); + } + }]); + }(_react.default.Component); + + FilterLocation.propTypes = { + style: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.number]), + textColor: _propTypes.default.string, + borderColor: _propTypes.default.string, + hint: _propTypes.default.string, + onPopulateSelect: _propTypes.default.func, + onSelect: _propTypes.default.func, + latitude: _propTypes.default.string, + longitude: _propTypes.default.string, + useLocation: _propTypes.default.bool, + onDisableSwitch: _propTypes.default.func + }; +},2523,[3,6,7,11,13,14,270,4,568,16,18,407,2047,434,2066,814,2233,438,1929,179,2524,2516,1938]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var styles = exports.styles = _reactNative.StyleSheet.create({ + parent: { + flexDirection: "column", + marginTop: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, + marginBottom: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_WIDTH * 2, + marginStart: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, + marginEnd: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, + borderWidth: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_WIDTH, + borderRadius: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_RADIUS + }, + text: { + padding: _$$_REQUIRE(_dependencyMap[1]).filterStyles.TEXT_PADDING + }, + textMyLocation: { + flex: 3 + }, + switchMyLocation: { + marginRight: 20 + }, + parentMyLocation: { + height: _$$_REQUIRE(_dependencyMap[1]).filterStyles.LINE_HEIGHT, + flexDirection: "row", + justifyContent: "center", + alignItems: "center" + }, + textCity: { + flex: 3 + }, + textZip: { + flex: 1, + textAlign: "right" + }, + textInput: { + backgroundColor: _$$_REQUIRE(_dependencyMap[2]).colors.white, + height: _$$_REQUIRE(_dependencyMap[1]).filterStyles.LINE_HEIGHT, + borderBottomLeftRadius: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_RADIUS, + borderBottomRightRadius: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_RADIUS + }, + modal: { + flex: 1, + alignItems: "center", + justifyContent: "center", + backgroundColor: _$$_REQUIRE(_dependencyMap[2]).colors.transparent200 + }, + modalBackground: { + margin: 0 + }, + parentModal: { + flexDirection: "column", + marginTop: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, + marginStart: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, + marginEnd: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN + }, + textInputModal: { + opacity: 1, + margin: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, + padding: 5, + borderTopLeftRadius: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_RADIUS, + borderTopRightRadius: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_RADIUS + }, + list: { + marginTop: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, + marginBottom: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, + padding: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN + }, + listItem: { + flexDirection: "row", + height: _$$_REQUIRE(_dependencyMap[1]).filterStyles.LINE_HEIGHT, + justifyContent: "center", + alignItems: "center" + } + }); +},2524,[18,2516,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2525,[2526]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.EventRadiusSlider = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _slider = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[9]); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var EventRadiusSlider = exports.EventRadiusSlider = function (_React$Component) { + function EventRadiusSlider(props) { + var _this; + + (0, _classCallCheck2.default)(this, EventRadiusSlider); + _this = _callSuper(this, EventRadiusSlider, [props]); + _this.state = { + radius: props.defaultValue + }; + return _this; + } + + (0, _inherits2.default)(EventRadiusSlider, _React$Component); + return (0, _createClass2.default)(EventRadiusSlider, [{ + key: "UNSAFE_componentWillReceiveProps", + value: function UNSAFE_componentWillReceiveProps(newProps) { + if (newProps.defaultValue !== undefined) { + this.setState({ + radius: newProps.defaultValue + }); + } + } + }, { + key: "getValue", + value: function getValue() { + var radius = this.state.radius; + return { + radius: radius + }; + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var radius = this.state.radius; + var _this$props = this.props, + color = _this$props.color, + label = _this$props.label, + maxValue = _this$props.maxValue; + return (0, _$$_REQUIRE(_dependencyMap[10]).jsxs)(_reactNative.View, { + style: [{ + backgroundColor: color + }, _$$_REQUIRE(_dependencyMap[11]).styles.container], + children: [(0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.Text, { + style: _$$_REQUIRE(_dependencyMap[11]).styles.text, + children: label + }), (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_slider.default, { + minimumTrackTintColor: _$$_REQUIRE(_dependencyMap[12]).colors.white, + maximumTrackTintColor: _$$_REQUIRE(_dependencyMap[12]).colors.grey300, + thumbTintColor: _$$_REQUIRE(_dependencyMap[12]).colors.white, + style: _$$_REQUIRE(_dependencyMap[11]).styles.slider, + value: radius, + maximumValue: maxValue, + minimumValue: 1, + step: 1, + onValueChange: function onValueChange(r) { + return _this2.setState({ + radius: r + }); + } + }), (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.Text, { + style: _$$_REQUIRE(_dependencyMap[11]).styles.text, + children: parseInt(radius, 10) + "mi" + })] + }); + } + }]); + }(_react.default.Component); + + EventRadiusSlider.propTypes = { + label: _propTypes.default.string, + color: _propTypes.default.string, + maxValue: _propTypes.default.number.isRequired, + defaultValue: _propTypes.default.number.isRequired + }; +},2526,[3,6,7,11,13,14,2527,568,16,18,179,2529,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[3]); + + var _RNCSliderNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _excluded = ["onValueChange", "onSlidingStart", "onSlidingComplete"]; + + var SliderComponent = function SliderComponent(props, forwardedRef) { + var style = _reactNative.StyleSheet.compose(styles.slider, props.style); + + var onValueChange = props.onValueChange, + onSlidingStart = props.onSlidingStart, + onSlidingComplete = props.onSlidingComplete, + localProps = (0, _objectWithoutProperties2.default)(props, _excluded); + var onValueChangeEvent = onValueChange ? function (event) { + var userEvent = true; + + if (_reactNative.Platform.OS === 'android') { + userEvent = event.nativeEvent.fromUser != null && event.nativeEvent.fromUser; + } + + userEvent && onValueChange(event.nativeEvent.value); + } : null; + var onChangeEvent = onValueChangeEvent; + var onSlidingStartEvent = onSlidingStart ? function (event) { + onSlidingStart(event.nativeEvent.value); + } : null; + var onSlidingCompleteEvent = onSlidingComplete ? function (event) { + onSlidingComplete(event.nativeEvent.value); + } : null; + return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_RNCSliderNativeComponent.default, Object.assign({}, localProps, { + thumbImage: _reactNative.Image.resolveAssetSource(props.thumbImage), + ref: forwardedRef, + style: style, + onChange: onChangeEvent, + onRNCSliderSlidingStart: onSlidingStartEvent, + onRNCSliderSlidingComplete: onSlidingCompleteEvent, + onRNCSliderValueChange: onValueChangeEvent, + enabled: !props.disabled, + onStartShouldSetResponder: function onStartShouldSetResponder() { + return true; + }, + onResponderTerminationRequest: function onResponderTerminationRequest() { + return false; + } + })); + }; + + var SliderWithRef = _react.default.forwardRef(SliderComponent); + + SliderWithRef.defaultProps = { + disabled: false, + value: 0, + minimumValue: 0, + maximumValue: 1, + step: 0, + inverted: false + }; + var styles; + + if (_reactNative.Platform.OS === 'ios') { + styles = _reactNative.StyleSheet.create({ + slider: { + height: 40 + } + }); + } else { + styles = _reactNative.StyleSheet.create({ + slider: {} + }); + } + + var Slider = SliderWithRef; + + var _default = exports.default = Slider; +},2527,[3,4,16,18,2528,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + 'use strict'; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var RNCSliderNativeComponent = (0, _reactNative.requireNativeComponent)('RNCSlider'); + + var _default = exports.default = RNCSliderNativeComponent; +},2528,[18]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var styles = exports.styles = _reactNative.StyleSheet.create({ + container: { + marginTop: 10, + height: 50, + borderRadius: 5, + flexDirection: "row", + justifyContent: "flex-start", + alignItems: "center", + marginRight: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, + marginLeft: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN + }, + text: { + color: _$$_REQUIRE(_dependencyMap[2]).colors.white, + padding: _$$_REQUIRE(_dependencyMap[1]).filterStyles.TEXT_PADDING, + width: "25%" + }, + slider: { + width: "50%" + } + }); +},2529,[18,2516,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2530,[2531]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.EventModalCategories = undefined; + + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[4]); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _modal = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + 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); } + + 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; } + + var _labelsStateFromProps = function _labelsStateFromProps(props) { + var labels = props.labels, + selectedLabels = props.selectedLabels; + return labels.map(function (item) { + var isSelected = selectedLabels.includes(item.label); + return Object.assign({}, item, { + checked: item.selected || isSelected + }); + }); + }; + + var _categoriesStateFromProps = function _categoriesStateFromProps(props) { + var categories = props.categories, + selectedCategories = props.selectedCategories; + return categories.map(function (category) { + category.checked = selectedCategories && selectedCategories.includes(category.categoryId); + category.content.map(function (el) { + el.checked = selectedCategories && selectedCategories.includes(el.categoryId); + return el; + }); + return category; + }); + }; + + var _getNumberOfCheckedInList = function _getNumberOfCheckedInList() { + var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var counter = 0; + list.forEach(function (item) { + if (item.checked) { + counter += 1; + } + }); + return counter; + }; + + var _getNumberOfChecked = function _getNumberOfChecked() { + var labels = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var categories = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; + + var counter = _getNumberOfCheckedInList(labels); + + counter += _getNumberOfCheckedInList(categories); + categories.forEach(function (category) { + counter += _getNumberOfCheckedInList(category.content); + }); + return counter || "All"; + }; + + var EventModalCategories = exports.EventModalCategories = (0, _react.forwardRef)(function (props, ref) { + var color = props.color, + title = props.label, + multiSelect = props.multiSelect; + + var _useState = (0, _react.useState)(false), + _useState2 = (0, _slicedToArray2.default)(_useState, 2), + modalVisible = _useState2[0], + setModalVisible = _useState2[1]; + + var _useState3 = (0, _react.useState)([]), + _useState4 = (0, _slicedToArray2.default)(_useState3, 2), + labels = _useState4[0], + setLabels = _useState4[1]; + + var _useState5 = (0, _react.useState)([]), + _useState6 = (0, _slicedToArray2.default)(_useState5, 2), + categories = _useState6[0], + setCategories = _useState6[1]; + + var _resetLabels = function _resetLabels() { + return setLabels(_labelsStateFromProps(props)); + }; + + var _resetCategories = function _resetCategories() { + return setCategories(_categoriesStateFromProps(props)); + }; + + var _reset = function _reset() { + _resetLabels(); + + _resetCategories(); + }; + + var _getValue = function _getValue() { + var selectedCategories = []; + categories.forEach(function (category) { + if (category.checked) { + selectedCategories.push(category.categoryId); + } + + if (category.content) { + category.content.forEach(function (categoryChild) { + if (categoryChild.checked) { + selectedCategories.push(categoryChild.categoryId); + } + }); + } + }); + var selectedLabels = []; + labels.forEach(function (_ref) { + var label = _ref.label, + checked = _ref.checked; + + if (checked) { + selectedLabels.push(label); + } + }); + return { + selectedCategories: selectedCategories, + selectedLabels: selectedLabels + }; + }; + + (0, _react.useEffect)(function () { + _resetCategories(); + }, [props.categories, props.selectedCategories]); + (0, _react.useEffect)(function () { + _resetLabels(); + }, [props.labels, props.selectedLabels]); + (0, _react.useImperativeHandle)(ref, function () { + return { + getValue: function getValue() { + return _getValue(); + } + }; + }); + return (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_reactNative.View, { + children: [(0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_modal.default, { + visible: modalVisible, + onClose: function onClose() { + return setModalVisible(false); + }, + foregroundColor: color, + hasFooter: true, + onConfirm: function onConfirm() { + setModalVisible(false); + return true; + }, + onCancel: function onCancel() { + _reset(); + + setModalVisible(false); + return true; + }, + containerStyle: { + padding: 20, + flex: 1, + flexDirection: "column", + justifyContent: "flex-end" + }, + children: [(0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).Labels, { + labels: labels, + onChange: function onChange(updated) { + return setLabels((0, _toConsumableArray2.default)(updated)); + } + }), (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[10]).Categories, { + categories: categories, + color: color, + multiSelect: multiSelect, + onChange: function onChange(updated) { + return setCategories((0, _toConsumableArray2.default)(updated)); + } + })] + }), (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_reactNative.TouchableOpacity, { + style: [{ + backgroundColor: color + }, _$$_REQUIRE(_dependencyMap[11]).styles.container], + onPress: function onPress() { + setModalVisible(true); + }, + children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_fontText.default, { + style: _$$_REQUIRE(_dependencyMap[11]).styles.text, + children: title + ": " + _getNumberOfChecked(labels, categories) + }) + })] + }); + }); + EventModalCategories.propTypes = { + selectedCategories: _propTypes.default.arrayOf(_propTypes.default.string), + categories: _propTypes.default.arrayOf(_propTypes.default.shape({ + name: _propTypes.default.string.isRequired, + categoryId: _propTypes.default.number.isRequired, + parentCategoryId: _propTypes.default.number + })), + selectedLabels: _propTypes.default.arrayOf(_propTypes.default.string), + labels: _propTypes.default.arrayOf(_propTypes.default.shape({ + name: _propTypes.default.string.isRequired, + label: _propTypes.default.string.isRequired, + selected: _propTypes.default.bool + })), + label: _propTypes.default.string.isRequired, + color: _propTypes.default.string.isRequired, + multiSelect: _propTypes.default.bool + }; + EventModalCategories.defaultProps = { + labels: [], + categories: [], + selectedCategories: [], + selectedLabels: [] + }; +},2531,[3,22,33,16,18,568,800,814,179,2532,2534,2533]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.Labels = Labels; + + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[4]); + + var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + 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); } + + 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; } + + function Label(props) { + var label = props.label, + onChange = props.onChange; + + var _useState = (0, _react.useState)(label.checked), + _useState2 = (0, _slicedToArray2.default)(_useState, 2), + checked = _useState2[0], + setChecked = _useState2[1]; + + (0, _react.useEffect)(function () { + label.checked = checked; + + if (typeof onChange === "function") { + onChange(label); + } + }, [checked]); + return (0, _$$_REQUIRE(_dependencyMap[6]).jsxs)(_reactNative.View, { + style: [_$$_REQUIRE(_dependencyMap[7]).styles.categoryContainer, _$$_REQUIRE(_dependencyMap[7]).styles.labelsContainer], + children: [(0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_fontText.default, { + type: "medium", + children: label.name + }), (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_reactNative.Switch, { + onValueChange: function onValueChange(value) { + return setChecked(value); + }, + value: checked, + ios_backgroundColor: _$$_REQUIRE(_dependencyMap[8]).colors.grey200 + })] + }); + } + + Label.propTypes = { + label: _propTypes.default.shape({ + name: _propTypes.default.string.isRequired, + checked: _propTypes.default.bool.isRequired + }).isRequired, + onChange: _propTypes.default.func.isRequired + }; + + function Labels(props) { + var _onChange = props.onChange, + labelsProp = props.labels; + var labels = (0, _react.useRef)(labelsProp); + return labels.current.map(function (item, index) { + return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(Label, { + label: item, + onChange: function onChange(label) { + if (typeof _onChange === "function") { + labels.current[index].checked = label.checked; + + _onChange(labels.current); + } + } + }, index); + }); + } + + Labels.propTypes = { + labels: _propTypes.default.array.isRequired, + onChange: _propTypes.default.func.isRequired + }; +},2532,[3,33,16,568,18,800,179,2533,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var styles = exports.styles = _reactNative.StyleSheet.create({ + container: { + marginTop: 15, + height: 50, + borderRadius: 5, + flexDirection: "row", + justifyContent: "flex-start", + alignItems: "center", + marginLeft: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, + marginRight: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN + }, + text: { + padding: 5, + color: _$$_REQUIRE(_dependencyMap[2]).colors.white, + margin: 0 + }, + categoryContainer: { + flexDirection: "row", + alignItems: "center", + padding: 10 + }, + labelsContainer: { + justifyContent: "space-between" + }, + subCategoryContainer: { + flexDirection: "row", + alignItems: "center", + padding: 12, + margin: 2, + marginLeft: 25 + }, + lineContainer: { + flexDirection: "row", + alignItems: "center", + padding: 10 + }, + line: { + flex: 1, + paddingHorizontal: 10, + paddingVertical: 5 + }, + category: { + flex: 1, + paddingHorizontal: 10, + paddingVertical: 5 + }, + icon: { + fontSize: 15, + height: 15, + width: 15 + } + }); +},2533,[18,2516,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.Categories = Categories; + + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[4]); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _accordionComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); + + var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + 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); } + + 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; } + + function Line(props) { + var style = props.style, + onPress = props.onPress, + checked = props.checked, + color = props.color, + text = props.text, + children = props.children; + return (0, _$$_REQUIRE(_dependencyMap[9]).jsxs)(_reactNative.View, { + style: [_$$_REQUIRE(_dependencyMap[10]).styles.lineContainer, style], + children: [children, (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_reactNative.TouchableOpacity, { + style: { + flex: 1 + }, + onPress: onPress, + children: (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_fontText.default, { + style: _$$_REQUIRE(_dependencyMap[10]).styles.line, + children: "" + text + }) + }), checked ? (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_iconComponent.default, { + type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, + name: "check", + style: [{ + color: color + }, _$$_REQUIRE(_dependencyMap[10]).styles.icon] + }) : null] + }); + } + + function Category(props) { + var category = props.category, + color = props.color, + hasChildren = props.hasChildren, + checked = props.checked, + onCheck = props.onCheck, + subListStyle = props.subListStyle, + onChange = props.onChange; + + if (hasChildren) { + var hasChildrenChecked = category.content.findIndex(function (el) { + return el.checked; + }) > -1; + return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_accordionComponent.default, { + sections: [category], + renderHeader: function renderHeader(section, _, expanded) { + return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(Line, { + onPress: onCheck, + checked: checked, + text: section.name, + children: (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_iconComponent.default, { + style: Object.assign({ + fontSize: 18 + }, hasChildrenChecked ? { + color: color + } : {}), + name: expanded ? "chevron-up" : "chevron-down", + type: _iconComponent.TecnaviaIconType.MATERIAL_COMMUNITY_ICONS + }) + }); + }, + renderContent: function renderContent(section) { + return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(Categories, { + categories: section.content, + color: color, + multiSelect: false, + style: subListStyle, + onChange: onChange + }); + } + }); + } + + return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(Line, { + onPress: onCheck, + checked: checked, + text: category.name + }); + } + + function Categories(props) { + var color = props.color, + multiSelect = props.multiSelect, + categoriesProp = props.categories, + style = props.style, + _onChange = props.onChange; + var categories = (0, _react.useRef)((0, _toConsumableArray2.default)(categoriesProp)); + + var _useState = (0, _react.useState)(categories.current.map(function (item, _i) { + return item.checked ? _i : -1; + }).filter(function (_i) { + return _i > -1; + })), + _useState2 = (0, _slicedToArray2.default)(_useState, 2), + checkedIndexes = _useState2[0], + setCheckedIndexes = _useState2[1]; + + var _handleCheck = function _handleCheck(index) { + if (!multiSelect) { + categories.current.forEach(function (el) { + el.checked = false; + }); + checkedIndexes.splice(0, checkedIndexes.length); + checkedIndexes.push(index); + categories.current[index].checked = true; + } else { + if (checkedIndexes.includes(index)) { + checkedIndexes.splice(checkedIndexes.indexOf(index), 1); + categories.current[index].checked = false; + } else { + checkedIndexes.push(index); + categories.current[index].checked = true; + } + } + + setCheckedIndexes((0, _toConsumableArray2.default)(checkedIndexes)); + }; + + (0, _react.useEffect)(function () { + if (typeof _onChange === "function") { + _onChange(categories.current); + } + }, [checkedIndexes]); + return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[11]).TecnaviaFlatList, { + style: style, + data: categories.current, + keyExtractor: function keyExtractor(_, index) { + return "categories_" + index; + }, + renderItem: function renderItem(_ref) { + var item = _ref.item, + index = _ref.index; + var hasChildren = item.content && item.content.length > 0; + return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(Category, { + category: item, + color: color, + hasChildren: hasChildren, + onCheck: function onCheck() { + return _handleCheck(index); + }, + checked: checkedIndexes.includes(index), + subListStyle: { + marginLeft: 20 + }, + onChange: function onChange(selectedItems) { + categories.current[index].content = selectedItems; + + if (typeof _onChange === "function") { + _onChange(categories.current); + } + } + }); + } + }); + } + + Categories.propTypes = { + color: _propTypes.default.string, + style: _propTypes.default.any, + categories: _propTypes.default.arrayOf(_propTypes.default.shape({ + name: _propTypes.default.string, + checked: _propTypes.default.bool, + content: _propTypes.default.arrayOf(_propTypes.default.shape({ + name: _propTypes.default.string, + checked: _propTypes.default.bool + })) + })), + multiSelect: _propTypes.default.bool, + onChange: _propTypes.default.func + }; +},2534,[3,33,22,16,18,568,2512,1807,800,179,2533,1938]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2535,[2536]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.EventModalTimeRange = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[7]); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _rangepickerComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10])); + + var _modal = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var EventModalTimeRange = exports.EventModalTimeRange = function (_Component) { + function EventModalTimeRange(props) { + var _this; + + (0, _classCallCheck2.default)(this, EventModalTimeRange); + _this = _callSuper(this, EventModalTimeRange, [props]); + _this.state = { + modalVisible: false, + timeRange: props.timeRange || "all", + selectedIndex: props.data.findIndex(function (el) { + return el.value === props.timeRange; + }), + rangePickerIsVisible: false + }; + return _this; + } + + (0, _inherits2.default)(EventModalTimeRange, _Component); + return (0, _createClass2.default)(EventModalTimeRange, [{ + key: "UNSAFE_componentWillReceiveProps", + value: function UNSAFE_componentWillReceiveProps(newProps) { + var data = this.props.data; + + if (newProps.timeRange !== undefined) { + this.setState({ + selectedIndex: data.findIndex(function (el) { + return el.value === newProps.timeRange; + }), + rangePickerIsVisible: false, + timeRange: newProps.timeRange + }); + } + } + }, { + key: "setModalVisible", + value: function setModalVisible(visible) { + this.setState({ + modalVisible: visible + }); + } + }, { + key: "getValue", + value: function getValue() { + var selectedIndex = this.state.selectedIndex; + var _this$props = this.props, + data = _this$props.data, + format = _this$props.format; + + if (selectedIndex > 0) { + if (data[selectedIndex].intervalFunction) { + return { + startDate: data[selectedIndex].intervalFunction().begin.format(format), + endDate: data[selectedIndex].intervalFunction().end.format(format), + timeRange: data[selectedIndex].value + }; + } + + return { + startDate: _$$_REQUIRE(_dependencyMap[13]).DateUtils.getDateString(this.start, format), + endDate: _$$_REQUIRE(_dependencyMap[13]).DateUtils.getDateString(this.end, format), + timeRange: data[selectedIndex].value + }; + } + + return {}; + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var _this$state = this.state, + modalVisible = _this$state.modalVisible, + timeRange = _this$state.timeRange, + selectedIndex = _this$state.selectedIndex, + rangePickerIsVisible = _this$state.rangePickerIsVisible; + var _this$props2 = this.props, + label = _this$props2.label, + color = _this$props2.color, + data = _this$props2.data; + return (0, _$$_REQUIRE(_dependencyMap[14]).jsxs)(_reactNative.View, { + children: [(0, _$$_REQUIRE(_dependencyMap[14]).jsxs)(_modal.default, { + visible: modalVisible, + onClose: function onClose() { + return _this2.setModalVisible(false); + }, + foregroundColor: color, + hasFooter: true, + onConfirm: function onConfirm() { + _this2.setModalVisible(false); + + return true; + }, + onCancel: function onCancel() { + _this2.setModalVisible(false); + + _this2.setState({ + selectedIndex: 0, + timeRange: "", + rangePickerIsVisible: false + }); + + return true; + }, + containerStyle: { + padding: 20 + }, + children: [(0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_$$_REQUIRE(_dependencyMap[15]).TecnaviaFlatList, { + data: data, + keyExtractor: function keyExtractor(item, index) { + return "time_range_" + index; + }, + renderItem: function renderItem(_ref) { + var item = _ref.item, + index = _ref.index; + var checked = index === selectedIndex ? (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_iconComponent.default, { + type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, + name: "check", + style: [{ + color: color + }, _$$_REQUIRE(_dependencyMap[16]).styles.icon] + }) : null; + return (0, _$$_REQUIRE(_dependencyMap[14]).jsxs)(_reactNative.TouchableOpacity, { + style: _$$_REQUIRE(_dependencyMap[16]).styles.itemContainer, + onPress: function onPress() { + var dateInterval = data[index].intervalFunction; + + if (selectedIndex === index) { + _this2.setState({ + selectedIndex: 0, + rangePickerIsVisible: false, + timeRange: "" + }); + } else { + _this2.setState({ + selectedIndex: index, + rangePickerIsVisible: !dateInterval && index !== 0, + timeRange: data[index].value + }); + } + }, + children: [(0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_fontText.default, { + style: _$$_REQUIRE(_dependencyMap[16]).styles.itemText, + children: _$$_REQUIRE(_dependencyMap[13]).DateUtils.getTimeRangeString(item.value) + }), checked] + }); + } + }), rangePickerIsVisible ? (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_rangepickerComponent.default, { + showText: false, + color: color, + onRangeChange: function onRangeChange(start, end) { + _this2.start = start; + _this2.end = end; + }, + containerStyle: _$$_REQUIRE(_dependencyMap[16]).styles.pickerContainer, + pickerProps: { + locale: global.getLocaleConfig().getCurrentLocale() + }, + pickerStartProps: { + style: { + marginStart: 0 + } + }, + pickerEndProps: { + style: { + marginEnd: 0 + } + } + }) : null] + }), (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_reactNative.TouchableOpacity, { + style: [{ + backgroundColor: color + }, _$$_REQUIRE(_dependencyMap[16]).styles.container], + onPress: function onPress() { + return _this2.setModalVisible(true); + }, + children: (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_fontText.default, { + style: _$$_REQUIRE(_dependencyMap[16]).styles.text, + children: label + ": " + (_$$_REQUIRE(_dependencyMap[13]).DateUtils.getTimeRangeString(timeRange) || global.strings("all")) + }) + })] + }); + } + }]); + }(_react.Component); + + EventModalTimeRange.propTypes = { + label: _propTypes.default.string.isRequired, + color: _propTypes.default.string.isRequired, + timeRange: _propTypes.default.string, + format: _propTypes.default.string.isRequired, + data: _propTypes.default.arrayOf(_propTypes.default.shape({ + intervalFunction: Function, + title: String, + value: String + })) + }; +},2536,[3,6,7,11,13,14,16,18,568,2537,1807,814,800,438,179,1938,2550]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[4]); + + var _datepickerComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5])); + + var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); + + 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); } + + 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; } + + var styles = _reactNative.StyleSheet.create({ + container: {}, + pickerContainer: { + flexDirection: "row", + flex: 1 + }, + picker: { + height: 50, + alignItems: "center", + justifyContent: "center", + marginBottom: 5, + marginTop: 5, + flex: 1, + borderWidth: 0.3, + borderColor: _$$_REQUIRE(_dependencyMap[7]).colors.transparent600, + borderRadius: 20 + }, + icon: { + color: _$$_REQUIRE(_dependencyMap[7]).colors.transparent600 + } + }); + + function RangePickerComponent(props) { + var showText = props.showText, + start = props.start, + end = props.end, + onRangeChange = props.onRangeChange, + color = props.color, + containerStyle = props.containerStyle, + minDate = props.minDate, + maxDate = props.maxDate, + pickerProps = props.pickerProps, + pickerStartProps = props.pickerStartProps, + pickerEndProps = props.pickerEndProps; + + var _useState = (0, _react.useState)((0, _datepickerComponent.getDate)(start)), + _useState2 = (0, _slicedToArray2.default)(_useState, 2), + startRange = _useState2[0], + setStartRange = _useState2[1]; + + var _useState3 = (0, _react.useState)((0, _datepickerComponent.getDate)(end)), + _useState4 = (0, _slicedToArray2.default)(_useState3, 2), + endRange = _useState4[0], + setEndRange = _useState4[1]; + + var _onStartChange = function _onStartChange(strDate, date) { + var startDate = new Date(date); + + if (startDate > new Date(endRange)) { + setStartRange(strDate); + setEndRange(strDate); + } else { + setStartRange(strDate); + } + }; + + var _onEndChange = function _onEndChange(strDate) { + setEndRange(strDate); + }; + + (0, _react.useEffect)(function () { + if (typeof onRangeChange === "function") { + onRangeChange(startRange, endRange); + } + }, [startRange, endRange]); + return (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_reactNative.View, { + style: [styles.container, containerStyle], + children: [(0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_datepickerComponent.default, Object.assign({ + title: showText ? global.strings("btn_from") : "", + color: color, + date: startRange, + minDate: (0, _datepickerComponent.getDate)(minDate), + maxDate: (0, _datepickerComponent.getDate)(maxDate) + }, pickerProps, pickerStartProps, { + style: [styles.picker, { + borderColor: color + }, pickerProps.style, pickerStartProps.style], + containerStyle: [styles.pickerContainer, pickerProps.containerStyle, pickerStartProps.containerStyle], + iconStyle: [styles.icon, pickerProps.iconStyle, pickerStartProps.iconStyle], + onDateChange: _onStartChange + })), !showText ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_iconComponent.default, { + type: _iconComponent.TecnaviaIconType.MATERIAL_COMMUNITY_ICONS, + name: "arrow-left-right", + style: { + fontSize: 20, + margin: 5, + alignSelf: "center", + color: color + } + }) : null, (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_datepickerComponent.default, Object.assign({ + title: showText ? global.strings("btn_to") : "", + date: endRange, + color: color, + minDate: startRange, + maxDate: (0, _datepickerComponent.getDate)(maxDate) + }, pickerProps, pickerEndProps, { + style: [styles.picker, { + borderColor: color + }, pickerProps.style, pickerEndProps.style], + containerStyle: [styles.pickerContainer, pickerProps.containerStyle, pickerStartProps.containerStyle], + iconStyle: [styles.icon, pickerProps.iconStyle, pickerStartProps.iconStyle], + onDateChange: _onEndChange + }))] + }); + } + + RangePickerComponent.defaultProps = { + showText: true, + start: new Date(), + end: new Date(), + minDate: new Date(), + containerStyle: {}, + pickerProps: {}, + pickerStartProps: {}, + pickerEndProps: {} + }; + RangePickerComponent.propTypes = { + start: _propTypes.default.string, + end: _propTypes.default.string, + color: _propTypes.default.string, + showText: _propTypes.default.bool, + minDate: _propTypes.default.object, + maxDate: _propTypes.default.object, + onRangeChange: _propTypes.default.func.isRequired, + containerStyle: _propTypes.default.any, + pickerProps: _datepickerComponent.default.propTypes, + pickerStartProps: _datepickerComponent.default.propTypes, + pickerEndProps: _datepickerComponent.default.propTypes + }; + + var _default = exports.default = RangePickerComponent; +},2537,[3,33,16,568,18,2538,1807,438,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.getDate = exports.default = undefined; + + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[4]); + + var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _pickerComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); + + 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); } + + 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; } + + var FORMATS = { + date: "YYYY-MM-DD", + datetime: "YYYY-MM-DD HH:mm", + time: "HH:mm" + }; + + var getDate = exports.getDate = function getDate(date, format) { + if (date) { + if (date instanceof Date) { + return date; + } + + return _$$_REQUIRE(_dependencyMap[8]).DateUtils.toDate(date, format); + } + + return date; + }; + + var styles = _reactNative.StyleSheet.create({ + container: { + alignItems: "center" + }, + dateTouchBody: { + flexDirection: "row", + flex: 1, + alignItems: "center", + justifyContent: "center" + }, + dateInput: { + flex: 1, + flexDirection: "row", + marginHorizontal: 10, + alignItems: "center", + justifyContent: "space-evenly" + }, + dateText: { + flex: 1, + padding: 2, + textAlign: "center" + }, + dateIcon: { + marginHorizontal: 5, + fontSize: 20 + } + }); + + var DatePicker = (0, _react.forwardRef)(function (props, ref) { + var mode = props.mode, + _props$format = props.format, + format = _props$format === undefined ? FORMATS[mode] : _props$format, + startEmpty = props.startEmpty, + onDateChange = props.onDateChange, + style = props.style, + containerStyle = props.containerStyle, + iconStyle = props.iconStyle, + textStyle = props.textStyle, + labelStyle = props.labelStyle, + color = props.color, + title = props.title, + hint = props.hint; + + var _useState = (0, _react.useState)(false), + _useState2 = (0, _slicedToArray2.default)(_useState, 2), + visible = _useState2[0], + setVisibility = _useState2[1]; + + var _useState3 = (0, _react.useState)(startEmpty ? undefined : getDate(props.date, format) || new Date()), + _useState4 = (0, _slicedToArray2.default)(_useState3, 2), + date = _useState4[0], + setDate = _useState4[1]; + + var _useState5 = (0, _react.useState)(getDate(props.minDate, format)), + _useState6 = (0, _slicedToArray2.default)(_useState5, 2), + minDate = _useState6[0], + setMinDate = _useState6[1]; + + var _useState7 = (0, _react.useState)(getDate(props.maxDate, format)), + _useState8 = (0, _slicedToArray2.default)(_useState7, 2), + maxDate = _useState8[0], + setMaxDate = _useState8[1]; + + (0, _react.useImperativeHandle)(ref, function () { + return { + getValue: function getValue() { + return date; + } + }; + }); + + var _getDateStr = function _getDateStr(toConvert) { + return _$$_REQUIRE(_dependencyMap[8]).DateUtils.getDateString(toConvert, format); + }; + + var _cancel = function _cancel() { + setVisibility(false); + setDate(startEmpty ? undefined : date); + }; + + var _setDate = function _setDate(event, newDate) { + if (newDate !== undefined) { + setVisibility(false); + setDate(newDate); + } else { + _cancel(); + } + }; + + var _show = function _show() { + return setVisibility(true); + }; + + (0, _react.useEffect)(function () { + setDate(getDate(props.date, format)); + }, [props.date]); + (0, _react.useEffect)(function () { + setMinDate(getDate(props.minDate, format)); + }, [props.minDate]); + (0, _react.useEffect)(function () { + setMaxDate(getDate(props.maxDate, format)); + }, [props.maxDate]); + (0, _react.useEffect)(function () { + if (typeof onDateChange === "function" && date) { + onDateChange(_getDateStr(date), date); + } + }, [date]); + var text = hint; + + if (date) { + text = _$$_REQUIRE(_dependencyMap[8]).DateUtils.getMomentDate(date).format("LL"); + } + + return (0, _$$_REQUIRE(_dependencyMap[9]).jsxs)(_reactNative.View, { + style: [styles.container, containerStyle], + children: [title ? (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_fontText.default, { + style: labelStyle, + children: title + }) : null, (0, _$$_REQUIRE(_dependencyMap[9]).jsxs)(_reactNative.TouchableOpacity, { + style: [styles.dateTouchBody, style], + onPress: _show, + children: [(0, _$$_REQUIRE(_dependencyMap[9]).jsxs)(_reactNative.View, { + style: styles.dateInput, + children: [(0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_iconComponent.default, { + style: [styles.dateIcon, iconStyle], + type: _iconComponent.TecnaviaIconType.MATERIAL_COMMUNITY_ICONS, + name: "calendar-month" + }), (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_fontText.default, { + style: [styles.dateText, textStyle], + numberOfLines: 2, + children: text + })] + }), (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_pickerComponent.default, { + visible: visible, + date: date, + minDate: getDate(minDate, format), + maxDate: getDate(maxDate, format), + mode: mode, + onChange: _setDate, + color: color + })] + })] + }); + }); + DatePicker.defaultProps = { + mode: "date", + startEmpty: false + }; + DatePicker.propTypes = { + hint: _propTypes.default.string, + style: _propTypes.default.any, + containerStyle: _propTypes.default.any, + labelStyle: _propTypes.default.any, + textStyle: _propTypes.default.any, + iconStyle: _propTypes.default.any, + color: _propTypes.default.string, + title: _propTypes.default.string, + mode: _propTypes.default.oneOf(["date", "datetime", "time"]), + format: _propTypes.default.string, + date: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.instanceOf(Date)]), + minDate: _propTypes.default.string, + maxDate: _propTypes.default.string, + onDateChange: _propTypes.default.func, + startEmpty: _propTypes.default.bool + }; + + var _default = exports.default = DatePicker; +},2538,[3,33,16,568,18,800,2539,1807,438,179]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _datetimepicker = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + function Picker(props) { + var visible = props.visible, + date = props.date, + minDate = props.minDate, + maxDate = props.maxDate, + mode = props.mode, + onChange = props.onChange, + style = props.style, + locale = props.locale, + color = props.color; + + if (visible) { + return (0, _$$_REQUIRE(_dependencyMap[4]).jsx)(_datetimepicker.default, { + value: date || new Date(), + mode: mode, + maximumDate: maxDate, + minimumDate: minDate, + display: "default", + onChange: onChange, + style: style, + textColor: color, + locale: locale, + themeVariant: _$$_REQUIRE(_dependencyMap[5]).Css.isDarkTheme() ? "dark" : "light" + }); + } + + return null; + } + + Picker.propTypes = { + visible: _propTypes.default.bool, + date: _propTypes.default.any, + minDate: _propTypes.default.any, + maxDate: _propTypes.default.any, + mode: _propTypes.default.string, + onChange: _propTypes.default.func, + color: _propTypes.default.string, + style: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.object, _propTypes.default.array]), + locale: _propTypes.default.string + }; + Picker.defaultProps = { + visible: false, + onChange: function onChange() {} + }; + + var _default = exports.default = Picker; +},2539,[3,2540,568,16,179,803]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + var _exportNames = { + DateTimePickerAndroid: true + }; + Object.defineProperty(exports, "DateTimePickerAndroid", { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0]).DateTimePickerAndroid; + } + }); + exports.default = undefined; + + var _datetimepicker = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[2])); + + Object.keys(_$$_REQUIRE(_dependencyMap[3])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[3])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[3])[key]; + } + }); + }); + + var _default = exports.default = _datetimepicker.default; +},2540,[2541,3,2549,2548]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.DateTimePickerAndroid = undefined; + + var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _invariant = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _picker = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[5]); + + function open(props) { + var _props$mode = props.mode, + mode = _props$mode === undefined ? _$$_REQUIRE(_dependencyMap[6]).ANDROID_MODE.date : _props$mode, + display = props.display, + originalValue = props.value, + is24Hour = props.is24Hour, + minimumDate = props.minimumDate, + maximumDate = props.maximumDate, + minuteInterval = props.minuteInterval, + timeZoneOffsetInMinutes = props.timeZoneOffsetInMinutes, + onChange = props.onChange, + onError = props.onError, + positiveButton = props.positiveButton, + negativeButton = props.negativeButton, + neutralButton = props.neutralButton, + neutralButtonLabel = props.neutralButtonLabel, + positiveButtonLabel = props.positiveButtonLabel, + negativeButtonLabel = props.negativeButtonLabel; + (0, _$$_REQUIRE(_dependencyMap[7]).validateAndroidProps)(props); + (0, _invariant.default)(originalValue, 'A date or time must be specified as `value` prop.'); + var valueTimestamp = originalValue.getTime(); + var openPicker = (0, _$$_REQUIRE(_dependencyMap[7]).getOpenPicker)(mode); + + var presentPicker = function () { + var _ref = (0, _asyncToGenerator2.default)(function* () { + try { + var dialogButtons = { + positive: Object.assign({ + label: positiveButtonLabel + }, positiveButton, { + textColor: (0, _reactNative.processColor)(positiveButton == null ? undefined : positiveButton.textColor) + }), + neutral: Object.assign({ + label: neutralButtonLabel + }, neutralButton, { + textColor: (0, _reactNative.processColor)(neutralButton == null ? undefined : neutralButton.textColor) + }), + negative: Object.assign({ + label: negativeButtonLabel + }, negativeButton, { + textColor: (0, _reactNative.processColor)(negativeButton == null ? undefined : negativeButton.textColor) + }) + }; + var displayOverride = display === _$$_REQUIRE(_dependencyMap[6]).ANDROID_DISPLAY.spinner ? _$$_REQUIRE(_dependencyMap[6]).ANDROID_DISPLAY.spinner : _$$_REQUIRE(_dependencyMap[6]).ANDROID_DISPLAY.default; + + var _yield$openPicker = yield openPicker({ + value: valueTimestamp, + display: displayOverride, + is24Hour: is24Hour, + minimumDate: minimumDate, + maximumDate: maximumDate, + minuteInterval: minuteInterval, + timeZoneOffsetInMinutes: timeZoneOffsetInMinutes, + dialogButtons: dialogButtons + }), + action = _yield$openPicker.action, + day = _yield$openPicker.day, + month = _yield$openPicker.month, + year = _yield$openPicker.year, + minute = _yield$openPicker.minute, + hour = _yield$openPicker.hour; + + switch (action) { + case _$$_REQUIRE(_dependencyMap[6]).DATE_SET_ACTION: + { + var date = new Date(valueTimestamp); + date.setFullYear(year, month, day); + date = (0, _$$_REQUIRE(_dependencyMap[7]).timeZoneOffsetDateSetter)(date, timeZoneOffsetInMinutes); + + var _createDateTimeSetEvt = (0, _$$_REQUIRE(_dependencyMap[8]).createDateTimeSetEvtParams)(date), + _createDateTimeSetEvt2 = (0, _slicedToArray2.default)(_createDateTimeSetEvt, 1), + event = _createDateTimeSetEvt2[0]; + + onChange == null ? undefined : onChange(event, date); + break; + } + + case _$$_REQUIRE(_dependencyMap[6]).TIME_SET_ACTION: + { + var _date = new Date(valueTimestamp); + + _date.setHours(hour, minute); + + _date = (0, _$$_REQUIRE(_dependencyMap[7]).timeZoneOffsetDateSetter)(_date, timeZoneOffsetInMinutes); + + var _createDateTimeSetEvt3 = (0, _$$_REQUIRE(_dependencyMap[8]).createDateTimeSetEvtParams)(_date), + _createDateTimeSetEvt4 = (0, _slicedToArray2.default)(_createDateTimeSetEvt3, 1), + _event = _createDateTimeSetEvt4[0]; + + onChange == null ? undefined : onChange(_event, _date); + break; + } + + case _$$_REQUIRE(_dependencyMap[6]).NEUTRAL_BUTTON_ACTION: + { + var _createNeutralEvtPara = (0, _$$_REQUIRE(_dependencyMap[8]).createNeutralEvtParams)(originalValue), + _createNeutralEvtPara2 = (0, _slicedToArray2.default)(_createNeutralEvtPara, 1), + _event2 = _createNeutralEvtPara2[0]; + + onChange == null ? undefined : onChange(_event2, originalValue); + break; + } + + case _$$_REQUIRE(_dependencyMap[6]).DISMISS_ACTION: + default: + { + var _createDismissEvtPara = (0, _$$_REQUIRE(_dependencyMap[8]).createDismissEvtParams)(originalValue), + _createDismissEvtPara2 = (0, _slicedToArray2.default)(_createDismissEvtPara, 1), + _event3 = _createDismissEvtPara2[0]; + + onChange == null ? undefined : onChange(_event3, originalValue); + break; + } + } + } catch (error) { + onError && onError(error); + } + }); + + return function presentPicker() { + return _ref.apply(this, arguments); + }; + }(); + + presentPicker(); + } + + function dismiss(mode) { + return _picker.default[mode].dismiss(); + } + + var DateTimePickerAndroid = exports.DateTimePickerAndroid = { + open: open, + dismiss: dismiss + }; +},2541,[3,33,270,31,2542,18,2545,2547,2548]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _datepicker = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _timepicker = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var pickers = (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _$$_REQUIRE(_dependencyMap[4]).ANDROID_MODE.date, _datepicker.default), _$$_REQUIRE(_dependencyMap[4]).ANDROID_MODE.time, _timepicker.default); + + var _default = exports.default = pickers; +},2542,[3,240,2543,2546,2545]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[4]); + + var DatePickerAndroid = exports.default = function () { + function DatePickerAndroid() { + (0, _classCallCheck2.default)(this, DatePickerAndroid); + } + + return (0, _createClass2.default)(DatePickerAndroid, null, [{ + key: "open", + value: function () { + var _open = (0, _asyncToGenerator2.default)(function* (options) { + (0, _$$_REQUIRE(_dependencyMap[5]).toMilliseconds)(options, 'value', 'minimumDate', 'maximumDate'); + options.display = options.display || _$$_REQUIRE(_dependencyMap[6]).ANDROID_DISPLAY.default; + return _reactNative.NativeModules.RNDatePickerAndroid.open(options); + }); + + function open(_x) { + return _open.apply(this, arguments); + } + + return open; + }() + }, { + key: "dismiss", + value: function () { + var _dismiss = (0, _asyncToGenerator2.default)(function* () { + return _reactNative.NativeModules.RNDatePickerAndroid.dismiss(); + }); + + function dismiss() { + return _dismiss.apply(this, arguments); + } + + return dismiss; + }() + }]); + }(); + + DatePickerAndroid.dateSetAction = _$$_REQUIRE(_dependencyMap[6]).DATE_SET_ACTION; + DatePickerAndroid.dismissedAction = _$$_REQUIRE(_dependencyMap[6]).DISMISS_ACTION; +},2543,[3,270,6,7,18,2544,2545]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.dateToMilliseconds = dateToMilliseconds; + exports.sharedPropsValidation = sharedPropsValidation; + exports.toMilliseconds = toMilliseconds; + + var _invariant = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + function toMilliseconds(options) { + for (var _len = arguments.length, keys = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + keys[_key - 1] = arguments[_key]; + } + + keys.forEach(function each(key) { + var value = options[key]; + + if (Object.prototype.toString.call(value) === '[object Date]') { + options[key] = value.getTime(); + } + }); + } + + function dateToMilliseconds(date) { + if (!date) { + return; + } + + return date.getTime(); + } + + function sharedPropsValidation(_ref) { + var value = _ref.value; + (0, _invariant.default)(value, 'A date or time must be specified as `value` prop'); + (0, _invariant.default)(value instanceof Date, '`value` prop must be an instance of Date object'); + } +},2544,[3,31]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.WINDOWS_MODE = exports.TIME_SET_ACTION = exports.NEUTRAL_BUTTON_ACTION = exports.MIN_MS = exports.IOS_MODE = exports.IOS_DISPLAY = exports.EVENT_TYPE_SET = exports.EVENT_TYPE_DISMISSED = exports.DISMISS_ACTION = exports.DAY_OF_WEEK = exports.DATE_SET_ACTION = exports.ANDROID_MODE = exports.ANDROID_EVT_TYPE = exports.ANDROID_DISPLAY = undefined; + var MIN_MS = exports.MIN_MS = 60000; + var ANDROID_DISPLAY = exports.ANDROID_DISPLAY = Object.freeze({ + default: 'default', + spinner: 'spinner', + clock: 'clock', + calendar: 'calendar' + }); + var EVENT_TYPE_SET = exports.EVENT_TYPE_SET = 'set'; + var EVENT_TYPE_DISMISSED = exports.EVENT_TYPE_DISMISSED = 'dismissed'; + var ANDROID_EVT_TYPE = exports.ANDROID_EVT_TYPE = Object.freeze({ + set: EVENT_TYPE_SET, + dismissed: EVENT_TYPE_DISMISSED, + neutralButtonPressed: 'neutralButtonPressed' + }); + var IOS_DISPLAY = exports.IOS_DISPLAY = Object.freeze({ + default: 'default', + spinner: 'spinner', + compact: 'compact', + inline: 'inline' + }); + var COMMON_MODES = Object.freeze({ + date: 'date', + time: 'time' + }); + var ANDROID_MODE = exports.ANDROID_MODE = COMMON_MODES; + var WINDOWS_MODE = exports.WINDOWS_MODE = COMMON_MODES; + var IOS_MODE = exports.IOS_MODE = Object.freeze(Object.assign({}, COMMON_MODES, { + datetime: 'datetime', + countdown: 'countdown' + })); + var DAY_OF_WEEK = exports.DAY_OF_WEEK = Object.freeze({ + Sunday: 0, + Monday: 1, + Tuesday: 2, + Wednesday: 3, + Thursday: 4, + Friday: 5, + Saturday: 6 + }); + var DATE_SET_ACTION = exports.DATE_SET_ACTION = 'dateSetAction'; + var TIME_SET_ACTION = exports.TIME_SET_ACTION = 'timeSetAction'; + var DISMISS_ACTION = exports.DISMISS_ACTION = 'dismissedAction'; + var NEUTRAL_BUTTON_ACTION = exports.NEUTRAL_BUTTON_ACTION = 'neutralButtonAction'; +},2545,[]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[4]); + + var TimePickerAndroid = exports.default = function () { + function TimePickerAndroid() { + (0, _classCallCheck2.default)(this, TimePickerAndroid); + } + + return (0, _createClass2.default)(TimePickerAndroid, null, [{ + key: "open", + value: function () { + var _open = (0, _asyncToGenerator2.default)(function* (options) { + (0, _$$_REQUIRE(_dependencyMap[5]).toMilliseconds)(options, 'value'); + options.display = options.display || _$$_REQUIRE(_dependencyMap[6]).ANDROID_DISPLAY.default; + return _reactNative.NativeModules.RNTimePickerAndroid.open(options); + }); + + function open(_x) { + return _open.apply(this, arguments); + } + + return open; + }() + }, { + key: "dismiss", + value: function () { + var _dismiss = (0, _asyncToGenerator2.default)(function* () { + return _reactNative.NativeModules.RNTimePickerAndroid.dismiss(); + }); + + function dismiss() { + return _dismiss.apply(this, arguments); + } + + return dismiss; + }() + }]); + }(); + + TimePickerAndroid.timeSetAction = _$$_REQUIRE(_dependencyMap[6]).TIME_SET_ACTION; + TimePickerAndroid.dismissedAction = _$$_REQUIRE(_dependencyMap[6]).DISMISS_ACTION; +},2546,[3,270,6,7,18,2544,2545]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.getOpenPicker = getOpenPicker; + exports.timeZoneOffsetDateSetter = timeZoneOffsetDateSetter; + exports.validateAndroidProps = validateAndroidProps; + + var _picker = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _invariant = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[3]); + + function getOpenPicker(mode) { + switch (mode) { + case _$$_REQUIRE(_dependencyMap[4]).ANDROID_MODE.time: + return function (_ref) { + var value = _ref.value, + display = _ref.display, + is24Hour = _ref.is24Hour, + minuteInterval = _ref.minuteInterval, + timeZoneOffsetInMinutes = _ref.timeZoneOffsetInMinutes, + dialogButtons = _ref.dialogButtons; + return _picker.default[mode].open({ + value: value, + display: display, + minuteInterval: minuteInterval, + is24Hour: is24Hour, + timeZoneOffsetInMinutes: timeZoneOffsetInMinutes, + dialogButtons: dialogButtons + }); + }; + + default: + return function (_ref2) { + var value = _ref2.value, + display = _ref2.display, + minimumDate = _ref2.minimumDate, + maximumDate = _ref2.maximumDate, + timeZoneOffsetInMinutes = _ref2.timeZoneOffsetInMinutes, + dialogButtons = _ref2.dialogButtons; + return _picker.default[_$$_REQUIRE(_dependencyMap[4]).ANDROID_MODE.date].open({ + value: value, + display: display, + minimumDate: minimumDate, + maximumDate: maximumDate, + timeZoneOffsetInMinutes: timeZoneOffsetInMinutes, + dialogButtons: dialogButtons + }); + }; + } + } + + function timeZoneOffsetDateSetter(date, timeZoneOffsetInMinutes) { + if (typeof timeZoneOffsetInMinutes === 'number') { + var offset = date.getTimezoneOffset() + timeZoneOffsetInMinutes; + var shiftedDate = new Date(date.getTime() - offset * _$$_REQUIRE(_dependencyMap[4]).MIN_MS); + return shiftedDate; + } + + return date; + } + + function validateAndroidProps(props) { + (0, _$$_REQUIRE(_dependencyMap[5]).sharedPropsValidation)({ + value: props == null ? undefined : props.value + }); + var mode = props.mode, + display = props.display; + (0, _invariant.default)(!(display === _$$_REQUIRE(_dependencyMap[4]).ANDROID_DISPLAY.calendar && mode === _$$_REQUIRE(_dependencyMap[4]).ANDROID_MODE.time) && !(display === _$$_REQUIRE(_dependencyMap[4]).ANDROID_DISPLAY.clock && mode === _$$_REQUIRE(_dependencyMap[4]).ANDROID_MODE.date), "display: " + display + " and mode: " + mode + " cannot be used together."); + + if ((props == null ? undefined : props.positiveButtonLabel) !== undefined || (props == null ? undefined : props.negativeButtonLabel) !== undefined || (props == null ? undefined : props.neutralButtonLabel) !== undefined) { + console.warn("positiveButtonLabel, negativeButtonLabel and neutralButtonLabel are deprecated.Use positive / negative / neutralButton prop instead."); + } + } +},2547,[3,2542,31,18,2545,2544]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.createNeutralEvtParams = exports.createDismissEvtParams = exports.createDateTimeSetEvtParams = undefined; + + var createDateTimeSetEvtParams = exports.createDateTimeSetEvtParams = function createDateTimeSetEvtParams(date) { + return [{ + type: _$$_REQUIRE(_dependencyMap[0]).EVENT_TYPE_SET, + nativeEvent: { + timestamp: date.getTime() + } + }, date]; + }; + + var createDismissEvtParams = exports.createDismissEvtParams = function createDismissEvtParams(date) { + return [{ + type: _$$_REQUIRE(_dependencyMap[0]).ANDROID_EVT_TYPE.dismissed, + nativeEvent: { + timestamp: date.getTime() + } + }, date]; + }; + + var createNeutralEvtParams = exports.createNeutralEvtParams = function createNeutralEvtParams(date) { + return [{ + type: _$$_REQUIRE(_dependencyMap[0]).ANDROID_EVT_TYPE.neutralButtonPressed, + nativeEvent: { + timestamp: date.getTime() + } + }, date]; + }; +},2548,[2545]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = RNDateTimePickerAndroid; + + var _react = _$$_REQUIRE(_dependencyMap[0]); + + function RNDateTimePickerAndroid(props) { + (0, _$$_REQUIRE(_dependencyMap[1]).validateAndroidProps)(props); + var _props$mode = props.mode, + mode = _props$mode === undefined ? _$$_REQUIRE(_dependencyMap[2]).ANDROID_MODE.date : _props$mode, + _props$display = props.display, + display = _props$display === undefined ? _$$_REQUIRE(_dependencyMap[2]).ANDROID_DISPLAY.default : _props$display, + value = props.value, + onChange = props.onChange, + is24Hour = props.is24Hour, + minimumDate = props.minimumDate, + maximumDate = props.maximumDate, + minuteInterval = props.minuteInterval, + onError = props.onError, + timeZoneOffsetInMinutes = props.timeZoneOffsetInMinutes, + positiveButton = props.positiveButton, + negativeButton = props.negativeButton, + neutralButton = props.neutralButton, + positiveButtonLabel = props.positiveButtonLabel, + negativeButtonLabel = props.negativeButtonLabel, + neutralButtonLabel = props.neutralButtonLabel; + var valueTimestamp = value.getTime(); + (0, _react.useEffect)(function () { + return function () { + return _$$_REQUIRE(_dependencyMap[3]).DateTimePickerAndroid.dismiss(mode); + }; + }, [mode]); + (0, _react.useEffect)(function showOrUpdatePicker() { + var params = { + mode: mode, + value: new Date(valueTimestamp), + display: display, + is24Hour: is24Hour, + minimumDate: minimumDate, + maximumDate: maximumDate, + minuteInterval: minuteInterval, + timeZoneOffsetInMinutes: timeZoneOffsetInMinutes, + onError: onError, + onChange: onChange, + positiveButton: positiveButton, + negativeButton: negativeButton, + neutralButton: neutralButton, + positiveButtonLabel: positiveButtonLabel, + negativeButtonLabel: negativeButtonLabel, + neutralButtonLabel: neutralButtonLabel + }; + + _$$_REQUIRE(_dependencyMap[3]).DateTimePickerAndroid.open(params); + }, [onChange, valueTimestamp, mode]); + return null; + } +},2549,[16,2547,2545,2541]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var styles = exports.styles = _reactNative.StyleSheet.create({ + container: { + marginTop: 15, + height: 50, + borderRadius: 5, + flexDirection: "row", + justifyContent: "flex-start", + alignItems: "center", + marginLeft: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, + marginRight: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, + marginBottom: 10 + }, + pickerContainer: { + flexDirection: "row", + width: "100%", + height: 50, + padding: 10 + }, + icon: { + fontSize: 15, + height: 15, + width: 15 + }, + itemContainer: { + height: 50, + justifyContent: "center", + flexDirection: "row", + padding: 10 + }, + itemText: { + flex: 1 + }, + text: { + padding: 5, + color: _$$_REQUIRE(_dependencyMap[2]).colors.white + } + }); +},2550,[18,2516,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2551,[2552]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.EventFavoritesScreen = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var EventFavoritesScreen = exports.EventFavoritesScreen = function (_NavigationBaseScreen) { + function EventFavoritesScreen() { + (0, _classCallCheck2.default)(this, EventFavoritesScreen); + return _callSuper(this, EventFavoritesScreen, arguments); + } + + (0, _inherits2.default)(EventFavoritesScreen, _NavigationBaseScreen); + return (0, _createClass2.default)(EventFavoritesScreen, [{ + key: "handleBackButton", + value: function handleBackButton() { + var navigation = this.props.navigation; + navigation.goBack(null); + return (0, _get2.default)((0, _getPrototypeOf2.default)(EventFavoritesScreen.prototype), "handleBackButton", this).call(this); + } + }, { + key: "getTag", + value: function getTag() { + return "Event Favorites"; + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + navigation = _this$props.navigation, + user = _this$props.user, + pass = _this$props.pass, + portal = _this$props.portal; + return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[10]).VerticalFavoritesList, { + eventName: _events.default.TOGGLE_EVENTS_FAVORITE, + color: (0, _$$_REQUIRE(_dependencyMap[11]).getEventColor)(), + searchVerticalManager: global.getVerticalsConfig().getEvents(), + onItemPress: function onItemPress(item) { + navigation.navigate("VerticalDetailScreen", { + id: item.eventId, + user: user, + pass: pass, + portal: portal + }); + }, + renderItem: function renderItem(item) { + return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[12]).EventListItem, { + onItemPress: function onItemPress(clicked) { + navigation.navigate("VerticalDetailScreen", { + id: clicked.eventId, + user: user, + pass: pass, + portal: portal + }); + }, + item: item, + manager: global.getVerticalsConfig().getEvents(), + color: (0, _$$_REQUIRE(_dependencyMap[11]).getEventColor)(), + portal: portal + }); + }, + onEmptyPress: function onEmptyPress() { + navigation.navigate("VerticalFiltersScreen"); + }, + itemKey: "eventId" + }); + } + }]); + }(_$$_REQUIRE(_dependencyMap[13]).NavigationBaseScreen); +},2552,[3,6,7,11,85,13,14,16,436,179,2553,2470,2556,2214]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2553,[2554]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.VerticalFavoritesList = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[9]); + + var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11])); + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var VerticalFavoritesList = exports.VerticalFavoritesList = function (_React$Component) { + function VerticalFavoritesList(props) { + var _this; + + (0, _classCallCheck2.default)(this, VerticalFavoritesList); + _this = _callSuper(this, VerticalFavoritesList, [props]); + _this.state = { + items: [], + loading: true + }; + return _this; + } + + (0, _inherits2.default)(VerticalFavoritesList, _React$Component); + return (0, _createClass2.default)(VerticalFavoritesList, [{ + key: "componentDidMount", + value: function componentDidMount() { + var _this2 = this; + + var eventName = this.props.eventName; + this.toggleFavorite = _$$_REQUIRE(_dependencyMap[12]).EventRegister.on(eventName, function () { + _this2._retrieveData(); + }); + + this._retrieveData(); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + _$$_REQUIRE(_dependencyMap[12]).EventRegister.rm(this.toggleFavorite); + } + }, { + key: "_retrieveData", + value: function () { + var _retrieveData2 = (0, _asyncToGenerator2.default)(function* () { + var searchVerticalManager = this.props.searchVerticalManager; + this.setState({ + items: searchVerticalManager.getFavorites(), + loading: false + }); + }); + + function _retrieveData() { + return _retrieveData2.apply(this, arguments); + } + + return _retrieveData; + }() + }, { + key: "_getEmpty", + value: function _getEmpty() { + var onEmptyPress = this.props.onEmptyPress; + return this._getIconView("surprise", global.strings("msg_empty_favorites"), onEmptyPress); + } + }, { + key: "_getIconView", + value: function _getIconView(icon, message, callback) { + var color = this.props.color; + return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNative.TouchableOpacity, { + onPress: function onPress() { + if (callback) { + callback(); + } + }, + style: [_$$_REQUIRE(_dependencyMap[14]).styles.message, { + backgroundColor: _$$_REQUIRE(_dependencyMap[15]).Css.getDefaultBackgroundColor() + }], + children: (0, _$$_REQUIRE(_dependencyMap[13]).jsxs)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[14]).styles.message, + children: [(0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_iconComponent.default, { + type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, + name: icon, + size: 70, + color: color + }), (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_fontText.default, { + style: [_$$_REQUIRE(_dependencyMap[14]).styles.messageText, { + color: color + }], + children: message + })] + }) + }); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + _renderItem = _this$props.renderItem, + color = _this$props.color, + onItemPress = _this$props.onItemPress, + totalKey = _this$props.totalKey; + var itemKey = this.props.itemKey; + var _this$state = this.state, + items = _this$state.items, + loading = _this$state.loading; + + if (!itemKey) { + itemKey = "id"; + } + + if (loading) { + return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_$$_REQUIRE(_dependencyMap[16]).ProgressCircle, { + spinnerColor: color + }); + } + + if (!items || !items.length) { + return this._getEmpty(); + } + + return (0, _$$_REQUIRE(_dependencyMap[13]).jsxs)(_reactNative.View, { + style: { + flex: 1, + flexDirection: "column" + }, + children: [totalKey ? (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNative.View, { + style: { + backgroundColor: color, + flexDirection: "row", + justifyContent: "center", + alignItems: "center", + padding: 5 + }, + children: (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_fontText.default, { + style: { + fontSize: 15, + textAlign: "center", + color: _$$_REQUIRE(_dependencyMap[17]).colors.white + }, + children: global.strings(totalKey, { + total: items.length + }) + }) + }) : null, (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_$$_REQUIRE(_dependencyMap[18]).TecnaviaFlatList, { + style: { + flex: 1 + }, + data: items, + extraData: this.state, + keyExtractor: function keyExtractor(item) { + return item[itemKey]; + }, + renderItem: function renderItem(_ref) { + var item = _ref.item, + index = _ref.index; + + if (_renderItem) { + return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNative.TouchableOpacity, { + onPress: function onPress() { + if (onItemPress) { + onItemPress(item); + } + }, + children: _renderItem(item, index) + }); + } + + return null; + } + })] + }); + } + }]); + }(_react.default.Component); + + VerticalFavoritesList.propTypes = { + color: _propTypes.default.string.isRequired, + totalKey: _propTypes.default.string.isRequired, + renderItem: _propTypes.default.func.isRequired, + eventName: _propTypes.default.string.isRequired, + onEmptyPress: _propTypes.default.func, + onItemPress: _propTypes.default.func.isRequired, + searchVerticalManager: _propTypes.default.shape({ + getFavorites: _propTypes.default.func.isRequired + }).isRequired, + itemKey: _propTypes.default.string + }; +},2554,[3,270,6,7,11,13,14,568,16,18,800,1807,550,179,2555,803,1884,438,1938]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var styles = exports.styles = _reactNative.StyleSheet.create({ + message: { + flex: 1, + justifyContent: "center", + alignItems: "center", + flexDirection: "column" + }, + messageText: { + paddingVertical: 20, + paddingHorizontal: 50, + textAlign: "center" + }, + loading: { + position: "absolute", + bottom: 0, + start: 0, + end: 0, + height: 50, + backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white + }, + actionButtonImage: { + height: 20, + width: 20 + }, + actionButtonIcon: { + fontSize: 20, + height: 22, + color: _$$_REQUIRE(_dependencyMap[1]).colors.white + } + }); +},2555,[18,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2556,[2488]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.EventDetailScreen = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[9]); + + var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + var _tecnaviaPlatformUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + + var _iconTile = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); + + var _fontText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[14])); + + var _fontTextInput = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); + + var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[16])); + + var _imageComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[17])); + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var EventDetailScreen = exports.EventDetailScreen = function (_NavigationBaseScreen) { + function EventDetailScreen(props) { + var _this; + + (0, _classCallCheck2.default)(this, EventDetailScreen); + _this = _callSuper(this, EventDetailScreen, [props]); + + _this.onShare = function () { + var _ref = (0, _asyncToGenerator2.default)(function* (message, id) { + var _getNavigationParams = (0, _$$_REQUIRE(_dependencyMap[18]).getNavigationParams)(_this.props), + _getNavigationParams$ = _getNavigationParams.portal, + portal = _getNavigationParams$ === undefined ? "" : _getNavigationParams$; + + try { + yield _reactNative.Share.share({ + message: message, + url: global.strings("share_event_url", { + portal: portal, + id: id + }) + }); + } catch (error) {} + }); + + return function (_x, _x2) { + return _ref.apply(this, arguments); + }; + }(); + + _this.state = { + loading: true, + data: {} + }; + return _this; + } + + (0, _inherits2.default)(EventDetailScreen, _NavigationBaseScreen); + return (0, _createClass2.default)(EventDetailScreen, [{ + key: "handleBackButton", + value: function handleBackButton() { + var navigation = this.props.navigation; + navigation.goBack(null); + return (0, _get2.default)((0, _getPrototypeOf2.default)(EventDetailScreen.prototype), "handleBackButton", this).call(this); + } + }, { + key: "componentDidMount", + value: function componentDidMount() { + this.firstLoad(); + } + }, { + key: "getTag", + value: function getTag() { + return "Event Details"; + } + }, { + key: "filterInstances", + value: function filterInstances(data) { + var instances = []; + + if (!data.instances) { + return instances; + } + + var today = _$$_REQUIRE(_dependencyMap[19]).DateUtils.getMomentStartOfDay(); + + data.instances.forEach(function (instance) { + if (_$$_REQUIRE(_dependencyMap[19]).DateUtils.getMomentDate(instance.startDateTime) >= today) { + instances.push({ + start: _$$_REQUIRE(_dependencyMap[19]).DateUtils.getMomentDate(instance.startDateTime).utc(), + end: instance.endDateTime ? _$$_REQUIRE(_dependencyMap[19]).DateUtils.getMomentDate(instance.endDateTime).utc() : null + }); + } + }); + return instances; + } + }, { + key: "firstLoad", + value: function () { + var _firstLoad = (0, _asyncToGenerator2.default)(function* () { + var _this2 = this; + + this.setState({ + loading: true, + data: {} + }, (0, _asyncToGenerator2.default)(function* () { + var params = (0, _$$_REQUIRE(_dependencyMap[18]).getNavigationParams)(_this2.props); + var _params$id = params.id, + id = _params$id === undefined ? "" : _params$id, + _params$user = params.user, + user = _params$user === undefined ? "" : _params$user, + _params$pass = params.pass, + pass = _params$pass === undefined ? "" : _params$pass, + _params$portal = params.portal, + portal = _params$portal === undefined ? "" : _params$portal; + var username = user; + var password = pass; + var api = (0, _$$_REQUIRE(_dependencyMap[20]).getEventById)(id); + var config = { + auth: { + username: username, + password: password + } + }; + var result = yield _Api.default.get(api, config, { + portal: portal + }); + + _this2.setState({ + loading: false, + data: result.data + }); + })); + }); + + function firstLoad() { + return _firstLoad.apply(this, arguments); + } + + return firstLoad; + }() + }, { + key: "render", + value: function render() { + var _this3 = this; + + var _this$state = this.state, + data = _this$state.data, + loading = _this$state.loading; + + if (loading) { + return (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_reactNative.View, { + style: { + flex: 1, + backgroundColor: _$$_REQUIRE(_dependencyMap[22]).Css.getDefaultBackgroundColor() + }, + children: (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_$$_REQUIRE(_dependencyMap[23]).ProgressCircle, { + parentStyle: _$$_REQUIRE(_dependencyMap[24]).styles.spinner, + text: global.strings("loading"), + spinnerColor: (0, _$$_REQUIRE(_dependencyMap[20]).getEventColor)(), + showText: true + }) + }); + } + + var categories = global.strings("str_no_categories"); + var description = ""; + + var _getNavigationParams2 = (0, _$$_REQUIRE(_dependencyMap[18]).getNavigationParams)(this.props), + _getNavigationParams3 = _getNavigationParams2.isVirtual, + isVirtual = _getNavigationParams3 === undefined ? "" : _getNavigationParams3; + + var filteredInstances = this.filterInstances(data); + var manager = global.getVerticalsConfig().getEvents(); + + if (data.description) { + for (var i = 0; i < data.description.length; i++) { + description += data.description[i] === "\n" ? "\n\n" : data.description[i]; + } + } else { + description = ""; + } + + if (data.categories && data.categories.length) { + categories = ""; + var len = data.categories.length; + + for (var _i = 0; _i < len - 1; _i++) { + categories += data.categories[_i].name + ", "; + } + + categories += data.categories[len - 1].name; + } + + var _data$price = data.price, + free = _data$price.free, + lowerPrice = _data$price.lowerPrice, + upperPrice = _data$price.upperPrice; + var priceString; + + if (free) { + priceString = global.strings("str_free"); + } else if (lowerPrice && upperPrice && lowerPrice === upperPrice) { + priceString = "$" + lowerPrice; + } else if (lowerPrice && upperPrice) { + priceString = "$" + lowerPrice + " - $" + upperPrice; + } else { + priceString = global.strings("str_not_available"); + } + + var commonStyle = { + color: _$$_REQUIRE(_dependencyMap[22]).Css.getDefaultForegroundColor() + }; + return (0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_$$_REQUIRE(_dependencyMap[25]).TecnaviaScrollView, { + showsVerticalScrollIndicator: false, + style: { + backgroundColor: _$$_REQUIRE(_dependencyMap[22]).Css.getDefaultBackgroundColor() + }, + children: [data.primaryImage ? (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_imageComponent.default, { + source: { + uri: data.primaryImage.largeImageUrl + }, + style: _$$_REQUIRE(_dependencyMap[24]).styles.image + }) : null, (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[24]).styles.title, + children: (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { + style: { + fontSize: 16, + color: _$$_REQUIRE(_dependencyMap[22]).Css.isDarkTheme ? _$$_REQUIRE(_dependencyMap[22]).Css.getDefaultBackgroundColor() : _$$_REQUIRE(_dependencyMap[19]).colors.white + }, + type: _fontText.Type.bold, + children: data.name + }) + }), (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[24]).styles.section, + children: filteredInstances.map(function (element, index) { + return index < 7 ? (0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_fontText.default, { + style: commonStyle, + type: index === 0 && filteredInstances.length > 1 ? "bold" : "regular", + children: [filteredInstances[index].start.format("dddd, MMMM D, YYYY: hh-mmA"), filteredInstances[index].end ? " - " + filteredInstances[0].end.format("h:mmA") : ""] + }, index) : null; + }) + }), data.location ? (0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[24]).styles.map, + children: [(0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { + style: [_$$_REQUIRE(_dependencyMap[24]).styles.location, commonStyle], + type: _fontText.Type.bold, + children: global.strings("str_location") + }), (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { + style: [_$$_REQUIRE(_dependencyMap[24]).styles.location, commonStyle], + children: data.location.locationName + }), data.location.address ? (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { + style: [_$$_REQUIRE(_dependencyMap[24]).styles.location, commonStyle], + children: data.location.address + }) : null, data.location.city && data.location.state ? (0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_fontText.default, { + style: [_$$_REQUIRE(_dependencyMap[24]).styles.location, commonStyle], + children: [data.location.city, ", ", data.location.state] + }) : null] + }) : null, isVirtual ? (0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[24]).styles.section, + children: [(0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { + style: commonStyle, + type: _fontText.Type.bold, + children: "Virtual Event URL:" + }), data.links.length && data.links[0].name && data.links[0].linkUrl ? (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { + style: { + color: _$$_REQUIRE(_dependencyMap[19]).colors.md_blue_600 + }, + onPress: function onPress() { + _tecnaviaPlatformUtils.default.openURL(data.links[0].linkUrl); + }, + children: data.links[0].linkUrl + }) : (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { + style: commonStyle, + type: _fontText.Type.regular, + children: "No website has been specified for this event." + })] + }) : null, (0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[24]).styles.section, + children: [(0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { + style: commonStyle, + type: _fontText.Type.bold, + children: "Price:" + }), (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { + style: commonStyle, + children: priceString + })] + }), data.description ? (0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[24]).styles.section, + children: [(0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { + style: commonStyle, + type: _fontText.Type.bold, + children: global.strings("str_description") + }), (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontTextInput.default, { + style: commonStyle, + multiline: true, + editable: false, + dataDetectorTypes: "all", + children: description + })] + }) : null, data.categories.length > 0 ? (0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[24]).styles.section, + children: [(0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_fontText.default, { + style: commonStyle, + type: _fontText.Type.bold, + children: [global.strings("categories"), ":"] + }), (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { + style: commonStyle, + children: categories + })] + }) : null, data.contact && (data.contact.organization || data.contact.name || data.contact.email || data.contact.phone) ? (0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[24]).styles.section, + children: [(0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { + style: commonStyle, + type: _fontText.Type.bold, + children: "Contact info:" + }), data.contact.organization ? (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontTextInput.default, { + style: commonStyle, + editable: false, + dataDetectorTypes: "all", + multiline: true, + children: data.contact.organization + }) : null, data.contact.name ? (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontTextInput.default, { + style: commonStyle, + editable: false, + dataDetectorTypes: "all", + multiline: true, + children: data.contact.name + }) : null, data.contact.email ? (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontTextInput.default, { + style: commonStyle, + editable: false, + dataDetectorTypes: "all", + multiline: true, + children: data.contact.email + }) : null, data.contact.phone ? (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontTextInput.default, { + style: commonStyle, + editable: false, + dataDetectorTypes: "all", + multiline: true, + children: data.contact.phone + }) : null] + }) : null, data.media && data.media.length ? (0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[24]).styles.section, + children: [(0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { + style: commonStyle, + atype: _fontText.Type.bold, + children: "Media:" + }), data.media.map(function (url) { + return (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { + style: { + color: _$$_REQUIRE(_dependencyMap[19]).colors.md_blue_600 + }, + onPress: function onPress() { + _tecnaviaPlatformUtils.default.openURL(url); + }, + children: url + }); + })] + }) : null, data.links.length && data.links[0].name && data.links[0].linkUrl ? (0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[24]).styles.section, + children: [(0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { + style: commonStyle, + type: _fontText.Type.bold, + children: "More info:" + }), (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { + style: { + color: _$$_REQUIRE(_dependencyMap[19]).colors.md_blue_600 + }, + onPress: function onPress() { + _tecnaviaPlatformUtils.default.openURL(data.links[0].linkUrl); + }, + children: data.links[0].name + })] + }) : null, data.location ? (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[24]).styles.map, + children: (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_reactNative.TouchableOpacity, { + onPress: function onPress() { + var scheme = _reactNative.Platform.select({ + ios: "maps:0,0?q=", + android: "geo:0,0?q=" + }); + + var latLng = data.location.latitude + "," + data.location.longitude; + var label = data.name; + + var url = _reactNative.Platform.select({ + ios: "" + scheme + label + "@" + latLng, + android: "" + scheme + latLng + "(" + label + ")" + }); + + _tecnaviaPlatformUtils.default.openURL(url); + }, + children: (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_imageComponent.default, { + source: { + uri: "https://maps.googleapis.com/maps/api/staticmap?size=800x600&zoom=15¢er=" + data.location.latitude + "," + data.location.longitude + "&markers=color:blue%7C" + data.location.latitude + "," + data.location.longitude + "&key=AIzaSyCOsXayiWmGzfoIxTM6BQYa0HY7Z89h0Aw" + }, + style: _$$_REQUIRE(_dependencyMap[24]).styles.image + }) + }) + }) : null, (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[24]).styles.icons, + children: (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_iconTile.default, { + icons: [{ + title: global.strings("action_share"), + component: function component(style) { + return (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_iconComponent.default, { + type: _iconComponent.TecnaviaIconType.MATERIAL_ICONS, + name: "share", + style: style + }); + }, + onPress: function onPress(clicked) { + _this3.onShare(clicked.name, clicked.eventId); + } + }, { + title: !manager.favoriteIsStored(data) ? global.strings("action_save_for_later") : global.strings("action_remove_from_favorites"), + component: function component(style) { + return (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_$$_REQUIRE(_dependencyMap[26]).IconFavorite, { + item: data, + size: 20, + style: style, + eventToggleItemChecker: function eventToggleItemChecker(currentItem, params) { + return currentItem.eventId === params.eventId; + }, + toggleFavoritesEventName: _events.default.TOGGLE_EVENTS_FAVORITE, + isFavoriteChecker: function isFavoriteChecker(toCheck) { + return manager.favoriteIsStored(toCheck); + } + }); + }, + onPress: function onPress(clicked) { + manager.toggleFavorite(clicked); + } + }], + tintColor: (0, _$$_REQUIRE(_dependencyMap[20]).getEventColor)(), + item: data, + availableSpace: 5 + }) + })] + }); + } + }]); + }(_$$_REQUIRE(_dependencyMap[18]).NavigationBaseScreen); +},2557,[3,270,6,7,11,85,13,14,16,18,407,436,1928,2092,800,2233,1807,574,2214,438,2470,179,803,1884,2558,1937,1973]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var styles = exports.styles = _reactNative.StyleSheet.create({ + title: { + flexDirection: "row", + justifyContent: "center", + alignItems: "center", + backgroundColor: (0, _$$_REQUIRE(_dependencyMap[1]).getEventColor)(), + minHeight: 50, + padding: 3 + }, + map: { + flexDirection: "column", + marginTop: 10 + }, + section: { + flexDirection: "column", + margin: 10, + marginTop: 20 + }, + bold: { + color: _$$_REQUIRE(_dependencyMap[2]).colors.black + }, + category: { + flex: 95, + color: _$$_REQUIRE(_dependencyMap[2]).colors.black + }, + check: { + flex: 5, + color: (0, _$$_REQUIRE(_dependencyMap[1]).getEventColor)() + }, + image: { + width: "100%", + height: 300 + }, + spinner: { + position: "absolute", + bottom: "50%", + start: 0, + end: 0, + height: 50 + }, + location: { + marginLeft: 10, + marginBottom: 5 + }, + icons: { + position: "absolute", + left: 0, + right: 10, + top: 25 + } + }); +},2558,[18,2470,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2559,[2560]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.EventSearchScreen = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[9]); + + var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + var _fontText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[12])); + + var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[13])); + + var _imageComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var EventSearchScreen = exports.EventSearchScreen = function (_NavigationBaseScreen) { + function EventSearchScreen(props) { + var _this; + + (0, _classCallCheck2.default)(this, EventSearchScreen); + _this = _callSuper(this, EventSearchScreen, [props, { + loading: true + }]); + _this.categories = []; + return _this; + } + + (0, _inherits2.default)(EventSearchScreen, _NavigationBaseScreen); + return (0, _createClass2.default)(EventSearchScreen, [{ + key: "componentDidMount", + value: function () { + var _componentDidMount = (0, _asyncToGenerator2.default)(function* () { + var _this$props = this.props, + username = _this$props.user, + password = _this$props.pass, + portal = _this$props.portal; + var api = (0, _$$_REQUIRE(_dependencyMap[15]).getEventCategories)(); + var config = { + auth: { + username: username, + password: password + } + }; + + try { + this.categories = (yield _Api.default.get(api, config, { + portal: portal + })).data; + } catch (e) {} + + this.setState({ + loading: false + }); + }); + + function componentDidMount() { + return _componentDidMount.apply(this, arguments); + } + + return componentDidMount; + }() + }, { + key: "handleBackButton", + value: function handleBackButton() { + var navigation = this.props.navigation; + navigation.goBack(null); + return (0, _get2.default)((0, _getPrototypeOf2.default)(EventSearchScreen.prototype), "handleBackButton", this).call(this); + } + }, { + key: "getTag", + value: function getTag() { + return "Event Search"; + } + }, { + key: "getZoomLevel", + value: function getZoomLevel(radius) { + return 14 - Math.log(radius) / Math.log(2); + } + }, { + key: "GMapCircle", + value: function GMapCircle(lat, lng, rad) { + var detail = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 8; + var color = (0, _$$_REQUIRE(_dependencyMap[15]).getEventColor)(); + var uri = "https://maps.googleapis.com/maps/api/staticmap"; + var staticMapSrc = "key=AIzaSyCOsXayiWmGzfoIxTM6BQYa0HY7Z89h0Aw"; + staticMapSrc += "&markers=color:blue|" + lat + "," + lng; + staticMapSrc += "¢er=" + lat + "," + lng; + staticMapSrc += "&size=800x600"; + staticMapSrc += "&zoom=" + this.getZoomLevel(rad); + staticMapSrc += "&path=fillcolor:0x" + color.substring(1) + "33|color:0xFFFFFF00|weight:1"; + var circle = ""; + var r = 3959.87; + var pi = Math.PI; + + var _lat = lat * pi / 180; + + var _lng = lng * pi / 180; + + var d = rad / r; + var i = 0; + + for (i = 0; i <= 360; i += detail) { + var brng = i * pi / 180; + var pLat = Math.asin(Math.sin(_lat) * Math.cos(d) + Math.cos(_lat) * Math.sin(d) * Math.cos(brng)); + var pLng = (_lng + Math.atan2(Math.sin(brng) * Math.sin(d) * Math.cos(_lat), Math.cos(d) - Math.sin(_lat) * Math.sin(pLat))) * 180 / pi; + pLat = pLat * 180 / pi; + circle += "|" + pLat + "," + pLng; + } + + return "https://maps.googleapis.com/maps/api/staticmap?" + staticMapSrc + circle; + } + }, { + key: "formatCategories", + value: function formatCategories(item) { + if (this.categories && item.categories) { + var categoriesText = this.categories.filter(function (_ref) { + var categoryId = _ref.categoryId, + name = _ref.name; + return item.categories.includes(categoryId); + }).map(function (_ref2) { + var name = _ref2.name; + return name; + }); + return categoriesText.join(","); + } + + return undefined; + } + }, { + key: "formatLabels", + value: function formatLabels(item) { + var labels = this.props.labels; + + if (labels && item.labels) { + var labelsText = labels.filter(function (_ref3) { + var label = _ref3.label; + return item.labels.includes(label); + }).map(function (_ref4) { + var name = _ref4.name; + return name; + }); + return labelsText.join(","); + } + + return undefined; + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var FORMAT = "YYYY-MM-DD"; + var navigation = this.props.navigation; + var loading = this.state.loading; + + if (loading) { + return null; + } + + var manager = global.getVerticalsConfig().getEvents(); + return (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_$$_REQUIRE(_dependencyMap[17]).VerticalSearchesList, { + eventName: _events.default.TOGGLE_EVENTS_SEARCH, + color: (0, _$$_REQUIRE(_dependencyMap[15]).getEventColor)(), + searchVerticalManager: manager, + onItemPress: function onItemPress(item) { + var lastSearch = manager.getLastSearch(); + + if (item !== lastSearch) { + manager.toggleLastSearch(item); + } + + if (item.timeRange) { + var result = _$$_REQUIRE(_dependencyMap[18]).DateUtils.getTimeRange(item.timeRange); + + if (result) { + var begin = result.begin, + end = result.end; + + if (begin && end) { + item.startDate = begin.format(FORMAT); + item.endDate = end.format(FORMAT); + } + } + } + + navigation.navigate("VerticalListScreen", { + filters: Object.assign({}, item) + }); + }, + renderItem: function renderItem(item) { + var startDate = item.startDate, + endDate = item.endDate, + searchTerm = item.searchTerm, + timeRange = item.timeRange; + var location = item.latitude || item.longitude ? global.strings("custom_location") : ""; + + var categories = _this2.formatCategories(item); + + var labels = _this2.formatLabels(item); + + var isDefault = manager.searchIsDefault(item); + var isLastSearch = manager.searchIsLastSearch(item); + var allEvents = !startDate && !endDate && !location && !categories && !searchTerm ? global.strings("all_events") : null; + + var color = _$$_REQUIRE(_dependencyMap[19]).Css.getDefaultForegroundColor(); + + var commonProps = { + style: [_$$_REQUIRE(_dependencyMap[20]).styles.text, { + color: color + }], + type: _fontText.Type.medium + }; + return (0, _$$_REQUIRE(_dependencyMap[16]).jsxs)(_reactNative.View, { + style: (_$$_REQUIRE(_dependencyMap[20]).styles.line, { + backgroundColor: _$$_REQUIRE(_dependencyMap[19]).Css.getDefaultBackgroundColor() + }), + children: [(0, _$$_REQUIRE(_dependencyMap[16]).jsxs)(_reactNative.View, { + style: { + flexDirection: "row" + }, + children: [(0, _$$_REQUIRE(_dependencyMap[16]).jsxs)(_reactNative.View, { + style: { + flex: 93 + }, + children: [timeRange && timeRange !== "custom" ? (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_fontText.default, Object.assign({}, commonProps, { + children: global.strings("str_time_range") + ": " + _$$_REQUIRE(_dependencyMap[18]).DateUtils.getTimeRangeString(timeRange) + })) : null, startDate && timeRange === "custom" ? (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_fontText.default, Object.assign({}, commonProps, { + children: global.strings("str_from") + ": " + startDate + })) : null, endDate && timeRange === "custom" ? (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_fontText.default, Object.assign({}, commonProps, { + children: global.strings("str_to") + ": " + endDate + })) : null, categories ? (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_fontText.default, Object.assign({}, commonProps, { + children: global.strings("categories") + ": " + categories + })) : null, labels ? (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_fontText.default, Object.assign({}, commonProps, { + children: global.strings("labels") + ": " + labels + })) : null, searchTerm ? (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_fontText.default, Object.assign({}, commonProps, { + children: global.strings("search_term") + ": " + searchTerm + })) : null, allEvents ? (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_fontText.default, { + style: [_$$_REQUIRE(_dependencyMap[20]).styles.title, { + color: color + }], + type: _fontText.Type.medium, + children: "" + allEvents + }) : null] + }), (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_reactNative.View, { + style: { + flex: 7, + justifyContent: "center" + }, + children: !isLastSearch ? (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_reactNative.TouchableOpacity, { + onPress: function onPress() { + if (isDefault) { + manager.toggleDefaultSearch(item, false); + } else { + manager.toggleSearch(item); + } + }, + children: (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_iconComponent.default, { + type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, + name: "trash", + color: (0, _$$_REQUIRE(_dependencyMap[15]).getEventColor)(), + size: 18 + }) + }) : null + })] + }), location ? (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_reactNative.View, { + style: { + justifyContent: "center", + alignItems: "center" + }, + children: (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_imageComponent.default, { + style: { + width: "100%", + height: 280, + margin: 10 + }, + source: { + uri: _this2.GMapCircle(item.latitude, item.longitude, item.radius) + } + }) + }) : null] + }); + }, + onEmptyPress: function onEmptyPress() { + navigation.navigate("VerticalFiltersScreen"); + } + }); + } + }]); + }(_$$_REQUIRE(_dependencyMap[21]).NavigationBaseScreen); +},2560,[3,270,6,7,11,85,13,14,16,18,407,436,800,1807,574,2470,179,2561,438,803,2564,2214]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2561,[2562]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.VerticalSearchesList = undefined; + + var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[9]); + + var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); + + var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11])); + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var VerticalSearchesList = exports.VerticalSearchesList = function (_React$Component) { + function VerticalSearchesList(props) { + var _this; + + (0, _classCallCheck2.default)(this, VerticalSearchesList); + _this = _callSuper(this, VerticalSearchesList, [props]); + _this.state = { + items: [], + loading: true + }; + return _this; + } + + (0, _inherits2.default)(VerticalSearchesList, _React$Component); + return (0, _createClass2.default)(VerticalSearchesList, [{ + key: "componentDidMount", + value: function componentDidMount() { + var _this2 = this; + + var eventName = this.props.eventName; + this.toggleSearch = _$$_REQUIRE(_dependencyMap[12]).EventRegister.on(eventName, function () { + _this2._retrieveData(); + }); + + this._retrieveData(); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + _$$_REQUIRE(_dependencyMap[12]).EventRegister.rm(this.toggleSearch); + } + }, { + key: "_retrieveData", + value: function () { + var _retrieveData2 = (0, _asyncToGenerator2.default)(function* () { + var searchVerticalManager = this.props.searchVerticalManager; + var items = []; + var defaultSearch = searchVerticalManager.getDefaultSearch(); + + if (defaultSearch) { + items.push({ + title: global.strings("default_search"), + data: [defaultSearch] + }); + } + + var lastSearch = searchVerticalManager.getLastSearch(); + + if (lastSearch) { + items.push({ + title: global.strings("last_search"), + data: [lastSearch] + }); + } + + var searches = searchVerticalManager.getSearches(); + + if (searches) { + items.push({ + title: global.strings("saved_searches"), + data: searches + }); + } + + this.setState({ + items: items, + loading: false + }); + }); + + function _retrieveData() { + return _retrieveData2.apply(this, arguments); + } + + return _retrieveData; + }() + }, { + key: "_getEmpty", + value: function _getEmpty() { + var onEmptyPress = this.props.onEmptyPress; + return this._getIconView("surprise", global.strings("msg_empty_searches"), onEmptyPress); + } + }, { + key: "_getIconView", + value: function _getIconView(icon, message, callback) { + var color = this.props.color; + return (0, _$$_REQUIRE(_dependencyMap[13]).jsxs)(_reactNative.TouchableOpacity, { + onPress: function onPress() { + if (callback) { + callback(); + } + }, + style: _$$_REQUIRE(_dependencyMap[14]).styles.message, + children: [(0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_iconComponent.default, { + type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, + name: icon, + size: 70, + color: color + }), (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_fontText.default, { + style: [_$$_REQUIRE(_dependencyMap[14]).styles.messageText, { + color: color + }], + children: message + })] + }); + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + _renderItem = _this$props.renderItem, + color = _this$props.color, + onItemPress = _this$props.onItemPress, + totalKey = _this$props.totalKey; + var _this$state = this.state, + items = _this$state.items, + loading = _this$state.loading; + + if (loading) { + return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_$$_REQUIRE(_dependencyMap[15]).ProgressCircle, { + spinnerColor: color + }); + } + + if (!items || !items.length) { + return this._getEmpty(); + } + + return (0, _$$_REQUIRE(_dependencyMap[13]).jsxs)(_reactNative.View, { + style: { + flex: 1, + flexDirection: "column", + backgroundColor: _$$_REQUIRE(_dependencyMap[16]).Css.getDefaultBackgroundColor() + }, + children: [totalKey ? (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNative.View, { + style: { + backgroundColor: color, + flexDirection: "row", + justifyContent: "center", + alignItems: "center", + padding: 5 + }, + children: (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_fontText.default, { + style: { + fontSize: 15, + textAlign: "center", + color: _$$_REQUIRE(_dependencyMap[17]).colors.white + }, + children: global.strings(totalKey, { + total: items.find(function (el) { + return el.title === global.strings("saved_searches"); + }).data.length + }) + }) + }) : null, (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_$$_REQUIRE(_dependencyMap[18]).TecnaviaSectionList, { + style: { + flex: 1 + }, + sections: items, + extraData: items, + keyExtractor: function keyExtractor(item) { + return item.id; + }, + renderItem: function renderItem(_ref) { + var item = _ref.item, + index = _ref.index; + + if (_renderItem) { + return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNative.TouchableWithoutFeedback, { + style: { + width: 200 + }, + onPress: function onPress() { + if (onItemPress) { + onItemPress(item); + } + }, + children: _renderItem(item, index) + }); + } + + return null; + }, + renderSectionHeader: function renderSectionHeader(section) { + var title = ""; + + if (section && section.section && section.section.title) { + title = section.section.title; + } + + return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNative.View, { + style: { + height: 40, + flexDirection: "row", + justifyContent: "flex-start", + backgroundColor: color + }, + children: (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNative.Text, { + style: { + fontSize: 18, + fontWeight: "bold", + color: _$$_REQUIRE(_dependencyMap[17]).colors.white, + padding: 10 + }, + children: title + }) + }); + } + })] + }); + } + }]); + }(_react.default.Component); + + VerticalSearchesList.propTypes = { + color: _propTypes.default.string.isRequired, + totalKey: _propTypes.default.string.isRequired, + renderItem: _propTypes.default.func.isRequired, + eventName: _propTypes.default.string.isRequired, + searchVerticalManager: _propTypes.default.shape({ + getSearches: _propTypes.default.func.isRequired, + getLastSearch: _propTypes.default.func + }).isRequired, + onEmptyPress: _propTypes.default.func, + onItemPress: _propTypes.default.func + }; +},2562,[3,270,6,7,11,13,14,568,16,18,800,1807,550,179,2563,1884,803,438,1938]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var styles = exports.styles = _reactNative.StyleSheet.create({ + message: { + flex: 1, + justifyContent: "center", + alignItems: "center", + flexDirection: "column" + }, + messageText: { + paddingVertical: 20, + paddingHorizontal: 50, + textAlign: "center" + }, + loading: { + position: "absolute", + bottom: 0, + start: 0, + end: 0, + height: 50, + backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white + }, + actionButtonImage: { + height: 20, + width: 20 + }, + actionButtonIcon: { + fontSize: 20, + height: 22, + color: _$$_REQUIRE(_dependencyMap[1]).colors.white + } + }); +},2563,[18,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var styles = exports.styles = _reactNative.StyleSheet.create({ + line: { + flexDirection: "column", + padding: 10, + borderBottomWidth: 0.5, + borderColor: (0, _$$_REQUIRE(_dependencyMap[1]).getEventColor)(), + justifyContent: "center" + }, + title: { + fontSize: 20, + flex: 1 + }, + text: { + fontSize: 14, + flex: 1 + }, + subtitle: { + fontSize: 20, + flex: 1 + } + }); +},2564,[18,2470]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2565,[2566]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.EventWebScreen = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[8]); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var EventWebScreen = exports.EventWebScreen = function (_NavigationBaseScreen) { + function EventWebScreen() { + (0, _classCallCheck2.default)(this, EventWebScreen); + return _callSuper(this, EventWebScreen, arguments); + } + + (0, _inherits2.default)(EventWebScreen, _NavigationBaseScreen); + return (0, _createClass2.default)(EventWebScreen, [{ + key: "handleBackButton", + value: function handleBackButton() { + var navigation = this.props.navigation; + navigation.goBack(null); + return (0, _get2.default)((0, _getPrototypeOf2.default)(EventWebScreen.prototype), "handleBackButton", this).call(this); + } + }, { + key: "getTag", + value: function getTag() { + return "Event WebView"; + } + }, { + key: "render", + value: function render() { + var _getNavigationParams = (0, _$$_REQUIRE(_dependencyMap[9]).getNavigationParams)(this.props), + url = _getNavigationParams.url; + + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.View, { + style: { + flex: 1, + backgroundColor: _$$_REQUIRE(_dependencyMap[11]).Css.getDefaultBackgroundColor() + }, + children: (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_$$_REQUIRE(_dependencyMap[12]).BaseWebView, { + source: { + uri: url + }, + progressColor: (0, _$$_REQUIRE(_dependencyMap[13]).getEventColor)(), + browser: true + }) + }); + } + }]); + }(_$$_REQUIRE(_dependencyMap[9]).NavigationBaseScreen); +},2566,[3,6,7,11,85,13,14,16,18,2214,179,803,1927,2470]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = VerticalJobNavigator; + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3])); + + var Header = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4])); + + 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); } + + 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; } + + var Stack = _NavigationService.default.navigator.createStack(); + + var Tab = _NavigationService.default.navigator.createBottomTab(); + + function VerticalTabNavigator(props) { + return (0, _$$_REQUIRE(_dependencyMap[5]).jsxs)(Tab.Navigator, { + screenOptions: function screenOptions(_ref) { + var route = _ref.route; + return { + headerShown: false, + tabBarShowLabel: false, + swipeEnabled: false, + tabBarStyle: { + backgroundColor: _$$_REQUIRE(_dependencyMap[6]).colors.white + }, + tabBarIcon: function tabBarIcon(_ref2) { + var focused = _ref2.focused; + var routeName = route.name; + var iconName; + + if (routeName === "VerticalFiltersScreen") { + iconName = "filter"; + } else if (routeName === "VerticalSavedSearchScreen") { + iconName = "search"; + } else if (routeName === "VerticalFavoritesScreen") { + var favoritesConfig = global.getRssFavoritesConfig(); + iconName = favoritesConfig.getIcon(); + } else if (routeName === "VerticalListScreen") { + iconName = "list-ul"; + } + + return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_iconComponent.default, { + type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, + name: iconName, + size: 25, + color: (0, _$$_REQUIRE(_dependencyMap[7]).getJobColor)() + }); + } + }; + }, + children: [(0, _$$_REQUIRE(_dependencyMap[5]).jsx)(Tab.Screen, { + name: "VerticalFiltersScreen", + component: _$$_REQUIRE(_dependencyMap[8]).JobFilterScreen + }), (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(Tab.Screen, { + name: "VerticalSavedSearchScreen", + component: _$$_REQUIRE(_dependencyMap[9]).JobSearchScreen + }), (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(Tab.Screen, { + name: "VerticalFavoritesScreen", + component: _$$_REQUIRE(_dependencyMap[10]).JobFavoritesScreen + }), (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(Tab.Screen, { + name: "VerticalListScreen", + component: _$$_REQUIRE(_dependencyMap[11]).JobListScreen + })] + }); + } + + function VerticalJobNavigator() { + var backgroundColor = _$$_REQUIRE(_dependencyMap[12]).Css.getAlternateDefaultBackgroundColor(); + + return (0, _$$_REQUIRE(_dependencyMap[5]).jsxs)(Stack.Navigator, { + screenOptions: _NavigationService.default.getStackScreenOptions(), + initialRouteName: "VerticalTabNavigator", + children: [(0, _$$_REQUIRE(_dependencyMap[5]).jsx)(Stack.Screen, { + name: "VerticalTabNavigator", + component: VerticalTabNavigator, + options: function options(props) { + return { + header: function header() { + return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_$$_REQUIRE(_dependencyMap[13]).ActionBar, { + considerSafeAreaTop: true, + backgroundColor: backgroundColor, + left: Header._getHeaderLeftButtonsBackButtonOnly(props.navigation, (0, _$$_REQUIRE(_dependencyMap[7]).getJobColor)()), + center: Header._getLogo((0, _$$_REQUIRE(_dependencyMap[14]).getNavigationParams)(props).logoUrl || (0, _$$_REQUIRE(_dependencyMap[7]).getJobLogo)(), _$$_REQUIRE(_dependencyMap[15])) + }); + }, + gesturesEnabled: false, + backBehavior: "initialRoute" + }; + } + }), (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(Stack.Screen, { + name: "VerticalDetailScreen", + component: _$$_REQUIRE(_dependencyMap[16]).JobDetailScreen, + options: function options(props) { + return { + header: function header() { + return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_$$_REQUIRE(_dependencyMap[13]).ActionBar, { + considerSafeAreaTop: true, + backgroundColor: backgroundColor, + left: Header._getHeaderLeftButtonsBackButtonOnly(props.navigation, (0, _$$_REQUIRE(_dependencyMap[7]).getJobColor)()), + center: Header._getLogo((0, _$$_REQUIRE(_dependencyMap[14]).getNavigationParams)(props).logoUrl || (0, _$$_REQUIRE(_dependencyMap[7]).getJobLogo)(), _$$_REQUIRE(_dependencyMap[15])) + }); + }, + gesturesEnabled: false + }; + } + })] + }); + } +},2567,[3,16,1888,1807,2468,179,438,2470,2568,2577,2580,2584,803,2219,2214,2586,2587]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2568,[2569]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.JobFilterScreen = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _datepickerComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var JobFilterScreen = exports.JobFilterScreen = function (_NavigationBaseScreen) { + function JobFilterScreen() { + (0, _classCallCheck2.default)(this, JobFilterScreen); + return _callSuper(this, JobFilterScreen, arguments); + } + + (0, _inherits2.default)(JobFilterScreen, _NavigationBaseScreen); + return (0, _createClass2.default)(JobFilterScreen, [{ + key: "handleBackButton", + value: function handleBackButton() { + var navigation = this.props.navigation; + navigation.goBack(null); + return (0, _get2.default)((0, _getPrototypeOf2.default)(JobFilterScreen.prototype), "handleBackButton", this).call(this); + } + }, { + key: "getFilterValue", + value: function getFilterValue(filter, defaultValue) { + var value = defaultValue; + + if (filter) { + if (filter.getValue()) { + value = filter.getValue(); + } + } + + return value; + } + }, { + key: "getTag", + value: function getTag() { + return "Job Filter"; + } + }, { + key: "render", + value: function render() { + var _this = this; + + return (0, _$$_REQUIRE(_dependencyMap[9]).jsxs)(_$$_REQUIRE(_dependencyMap[10]).FilterParent, { + backgroundUrl: (0, _$$_REQUIRE(_dependencyMap[11]).getJobBackground)(), + color: (0, _$$_REQUIRE(_dependencyMap[11]).getJobColor)(), + onSearch: function onSearch() { + var navigation = _this.props.navigation; + + var _this$getFilterValue = _this.getFilterValue(_this.filterLocation, {}), + state = _this$getFilterValue.state, + city = _this$getFilterValue.city, + input = _this$getFilterValue.input, + zip = _this$getFilterValue.zip; + + var term = _this.getFilterValue(_this.filterText, ""); + + var dayPublished = _$$_REQUIRE(_dependencyMap[12]).DateUtils.getDaysFromDateToToday(_this.getFilterValue(_this.filterDate, "")); + + var type = _this.getFilterValue(_this.filterType, ""); + + var status = _this.getFilterValue(_this.filterDuration, ""); + + var _this$getFilterValue2 = _this.getFilterValue(_this.filterSalary, {}), + min = _this$getFilterValue2.min, + max = _this$getFilterValue2.max, + error = _this$getFilterValue2.error; + + if (error) { + return [error]; + } + + navigation.navigate("VerticalListScreen", { + filters: Object.assign({ + action: "jobs", + view: "filtered", + day_published: dayPublished, + salary_min: min, + salary_max: max, + job_type: type, + job_status: status, + city: city || input, + term: term + }, state ? { + state: state + } : {}, zip ? { + zip: zip + } : {}) + }); + return []; + }, + advanceFilters: [(0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[13]).FilterRadioButton, { + ref: function ref(_ref) { + _this.filterDuration = _ref; + }, + bgColor: (0, _$$_REQUIRE(_dependencyMap[11]).getJobColor)(), + textColor: _$$_REQUIRE(_dependencyMap[12]).colors.white, + buttons: (0, _$$_REQUIRE(_dependencyMap[11]).getJobDurations)(), + active: "All" + }, "filter_duration"), (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[13]).FilterRadioButton, { + ref: function ref(_ref2) { + _this.filterType = _ref2; + }, + bgColor: (0, _$$_REQUIRE(_dependencyMap[11]).getJobColor)(), + textColor: _$$_REQUIRE(_dependencyMap[12]).colors.white, + buttons: (0, _$$_REQUIRE(_dependencyMap[11]).getJobTypes)(), + active: "All" + }, "filter_type"), (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[14]).FilterMinMax, { + ref: function ref(_ref3) { + _this.filterSalary = _ref3; + }, + borderColor: (0, _$$_REQUIRE(_dependencyMap[11]).getJobColor)(), + hintMin: global.strings("min_salary"), + hintMax: global.strings("max_salary") + }, "filter_salary"), (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_datepickerComponent.default, { + startEmpty: true, + maxDate: new Date(), + style: [_$$_REQUIRE(_dependencyMap[15]).styles.datePicker, { + borderColor: (0, _$$_REQUIRE(_dependencyMap[11]).getJobColor)() + }], + ref: function ref(_ref4) { + _this.filterDate = _ref4; + }, + borderColor: (0, _$$_REQUIRE(_dependencyMap[11]).getJobColor)(), + hint: global.strings("str_published_after_date"), + locale: global.getLocaleConfig().getCurrentLocale() + }, "filter_date")], + children: [(0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[16]).FilterText, { + style: _$$_REQUIRE(_dependencyMap[15]).styles.filter, + borderColor: (0, _$$_REQUIRE(_dependencyMap[11]).getJobColor)(), + hint: global.strings("vertical_job_text_hint"), + ref: function ref(_ref5) { + _this.filterText = _ref5; + } + }, "filter_text"), (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[17]).FilterLocation, { + style: _$$_REQUIRE(_dependencyMap[15]).styles.filter, + hint: global.strings("vertical_job_location_hint"), + borderColor: (0, _$$_REQUIRE(_dependencyMap[11]).getJobColor)(), + textColor: _$$_REQUIRE(_dependencyMap[12]).colors.white, + ref: function ref(_ref6) { + _this.filterLocation = _ref6; + } + }, "filter_location")] + }); + } + }]); + }(_$$_REQUIRE(_dependencyMap[18]).NavigationBaseScreen); +},2569,[3,6,7,11,85,13,14,16,2538,179,2507,2470,438,2570,2573,2576,2519,2522,2214]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2570,[2571]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.FilterRadioButton = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[7]); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var FilterRadioButton = exports.FilterRadioButton = function (_React$Component) { + function FilterRadioButton(props) { + var _this; + + (0, _classCallCheck2.default)(this, FilterRadioButton); + _this = _callSuper(this, FilterRadioButton, [props]); + _this.state = { + activeText: props.active + }; + return _this; + } + + (0, _inherits2.default)(FilterRadioButton, _React$Component); + return (0, _createClass2.default)(FilterRadioButton, [{ + key: "getValue", + value: function getValue() { + var buttons = this.props.buttons; + var activeText = this.state.activeText; + var result = buttons.find(function (_ref) { + var text = _ref.text; + return text === activeText; + }); + + if (result && result.value) { + return result.value; + } + + return ""; + } + }, { + key: "isActive", + value: function isActive(toCheck) { + var activeText = this.state.activeText; + return toCheck === activeText; + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var _this$props = this.props, + buttons = _this$props.buttons, + style = _this$props.style; + var _this$props2 = this.props, + bgColor = _this$props2.bgColor, + textColor = _this$props2.textColor; + + var _global$getRssIndex = global.getRssIndex(), + actionBarBackgroundColor = _global$getRssIndex.actionBarBackgroundColor, + supportColor = _global$getRssIndex.supportColor; + + bgColor = bgColor || supportColor; + textColor = textColor || actionBarBackgroundColor; + return buttons ? (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_reactNative.View, { + style: [style, _$$_REQUIRE(_dependencyMap[10]).styles.parent], + children: buttons.map(function (_ref2, index) { + var text = _ref2.text; + return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_reactNative.TouchableOpacity, { + activeOpacity: 1, + onPress: function onPress() { + _this2.setState({ + activeText: text + }); + }, + style: [_$$_REQUIRE(_dependencyMap[10]).styles.button, { + borderColor: bgColor, + borderRightWidth: index === buttons.length - 1 ? _$$_REQUIRE(_dependencyMap[11]).filterStyles.BORDER_WIDTH : 0, + backgroundColor: _this2.isActive(text) ? bgColor : textColor, + borderTopLeftRadius: index === 0 ? _$$_REQUIRE(_dependencyMap[11]).filterStyles.BORDER_RADIUS : 0, + borderBottomLeftRadius: index === 0 ? _$$_REQUIRE(_dependencyMap[11]).filterStyles.BORDER_RADIUS : 0, + borderTopRightRadius: index === buttons.length - 1 ? _$$_REQUIRE(_dependencyMap[11]).filterStyles.BORDER_RADIUS : 0, + borderBottomRightRadius: index === buttons.length - 1 ? _$$_REQUIRE(_dependencyMap[11]).filterStyles.BORDER_RADIUS : 0 + }], + children: (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_reactNative.Text, { + style: { + color: _this2.isActive(text) ? textColor : bgColor, + textAlign: "center" + }, + children: text + }) + }, index); + }) + }) : null; + } + }]); + }(_react.default.Component); + + FilterRadioButton.propTypes = { + style: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.number]), + buttons: _propTypes.default.arrayOf(_propTypes.default.shape({ + text: _propTypes.default.string.isRequired, + value: _propTypes.default.string + })).isRequired, + bgColor: _propTypes.default.string, + textColor: _propTypes.default.string, + active: _propTypes.default.string.isRequired + }; +},2571,[3,6,7,11,13,14,16,18,568,179,2572,2516]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var styles = exports.styles = _reactNative.StyleSheet.create({ + parent: { + flexDirection: "row", + margin: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN + }, + button: { + flex: 1, + justifyContent: "center", + height: _$$_REQUIRE(_dependencyMap[1]).filterStyles.LINE_HEIGHT, + borderWidth: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_WIDTH + } + }); +},2572,[18,2516]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2573,[2574]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.FilterMinMax = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[8]); + + var _fontTextInput = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var FilterMinMax = exports.FilterMinMax = function (_React$Component) { + function FilterMinMax(props) { + var _this; + + (0, _classCallCheck2.default)(this, FilterMinMax); + _this = _callSuper(this, FilterMinMax, [props]); + + var _global$getRssIndex = global.getRssIndex(), + supportColor = _global$getRssIndex.supportColor; + + _this.borderColor = props.borderColor || supportColor; + _this.state = { + min: "", + max: "" + }; + return _this; + } + + (0, _inherits2.default)(FilterMinMax, _React$Component); + return (0, _createClass2.default)(FilterMinMax, [{ + key: "getValue", + value: function getValue() { + var min = parseInt(this.state.min, 10); + var max = parseInt(this.state.max, 10); + + if (this.isFilterValid(min, max)) { + return { + min: min, + max: max + }; + } + + return { + error: global.strings("err_max_min") + }; + } + }, { + key: "isFilterValid", + value: function isFilterValid(min, max) { + return !min && !max || min || max || min < max; + } + }, { + key: "render", + value: function render() { + var _this2 = this; + + var _this$props = this.props, + hintMin = _this$props.hintMin, + hintMax = _this$props.hintMax; + var style = this.props.style; + hintMin = hintMin || global.strings("filter_min"); + hintMax = hintMax || global.strings("filter_max"); + var _this$state = this.state, + min = _this$state.min, + max = _this$state.max; + return (0, _$$_REQUIRE(_dependencyMap[10]).jsxs)(_reactNative.View, { + style: [style, _$$_REQUIRE(_dependencyMap[11]).styles.parent], + children: [(0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_fontTextInput.default, { + keyboardType: "numeric", + style: [_$$_REQUIRE(_dependencyMap[11]).styles.min, { + borderColor: this.borderColor + }], + underlineColorAndroid: this.borderColor, + onChangeText: function onChangeText(number) { + _this2.setState({ + min: number + }); + }, + value: min, + returnKeyType: "done", + placeholder: hintMin + }), (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_fontTextInput.default, { + keyboardType: "numeric", + style: [_$$_REQUIRE(_dependencyMap[11]).styles.max, { + borderColor: this.borderColor + }], + underlineColorAndroid: this.borderColor, + onChangeText: function onChangeText(number) { + _this2.setState({ + max: number + }); + }, + value: max, + returnKeyType: "done", + placeholder: hintMax + })] + }); + } + }]); + }(_react.default.Component); + + FilterMinMax.propTypes = { + style: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.number]), + borderColor: _propTypes.default.string, + hintMin: _propTypes.default.string, + hintMax: _propTypes.default.string + }; +},2574,[3,6,7,11,13,14,16,568,18,2233,179,2575]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var styles = exports.styles = _reactNative.StyleSheet.create({ + parent: { + flexDirection: "row", + margin: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN + }, + min: { + backgroundColor: _$$_REQUIRE(_dependencyMap[2]).colors.white, + flex: 1, + height: _$$_REQUIRE(_dependencyMap[1]).filterStyles.LINE_HEIGHT, + marginEnd: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN / 2, + borderWidth: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_WIDTH, + borderRadius: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_RADIUS + }, + max: { + backgroundColor: _$$_REQUIRE(_dependencyMap[2]).colors.white, + flex: 1, + height: _$$_REQUIRE(_dependencyMap[1]).filterStyles.LINE_HEIGHT, + marginStart: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN / 2, + borderWidth: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_WIDTH, + borderRadius: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_RADIUS + } + }); +},2575,[18,2516,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var styles = exports.styles = _reactNative.StyleSheet.create({ + parent: { + flex: 1, + justifyContent: "center", + alignItems: "center" + }, + background: { + width: "100%", + flex: 1, + flexDirection: "column", + justifyContent: "center", + alignItems: "center" + }, + filterViews: { + maxWidth: 500, + width: "100%", + flexDirection: "column", + justifyContent: "center", + alignItems: "center" + }, + filter: { + width: "100%" + }, + filterButton: {}, + text: { + color: _$$_REQUIRE(_dependencyMap[1]).colors.white, + padding: _$$_REQUIRE(_dependencyMap[2]).filterStyles.TEXT_PADDING + }, + datePicker: { + alignItems: "center", + justifyContent: "center", + borderColor: _$$_REQUIRE(_dependencyMap[1]).colors.black, + backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white, + height: _$$_REQUIRE(_dependencyMap[2]).filterStyles.LINE_HEIGHT, + margin: _$$_REQUIRE(_dependencyMap[2]).filterStyles.MARGIN, + borderWidth: _$$_REQUIRE(_dependencyMap[2]).filterStyles.BORDER_WIDTH, + borderRadius: _$$_REQUIRE(_dependencyMap[2]).filterStyles.BORDER_RADIUS + } + }); +},2576,[18,438,2516]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2577,[2578]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.JobSearchScreen = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[8]); + + var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _fontText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10])); + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var JobSearchScreen = exports.JobSearchScreen = function (_NavigationBaseScreen) { + function JobSearchScreen() { + (0, _classCallCheck2.default)(this, JobSearchScreen); + return _callSuper(this, JobSearchScreen, arguments); + } + + (0, _inherits2.default)(JobSearchScreen, _NavigationBaseScreen); + return (0, _createClass2.default)(JobSearchScreen, [{ + key: "handleBackButton", + value: function handleBackButton() { + var navigation = this.props.navigation; + navigation.goBack(null); + return (0, _get2.default)((0, _getPrototypeOf2.default)(JobSearchScreen.prototype), "handleBackButton", this).call(this); + } + }, { + key: "getTag", + value: function getTag() { + return "Job Search"; + } + }, { + key: "getBaseSearchString", + value: function getBaseSearchString(_ref) { + var city = _ref.city, + job_status = _ref.job_status, + job_type = _ref.job_type; + var string = ""; + + if (city) { + string += city + " "; + } + + if (job_status) { + string += (0, _$$_REQUIRE(_dependencyMap[11]).getJobDuration)(job_status) + " "; + } + + if (job_type) { + string += "" + (0, _$$_REQUIRE(_dependencyMap[11]).getJobType)(job_type); + } + + return string; + } + }, { + key: "getAdvanceSearchString", + value: function getAdvanceSearchString(_ref2) { + var salary_min = _ref2.salary_min, + salary_max = _ref2.salary_max, + day_published = _ref2.day_published; + var string = ""; + + if (day_published) { + string += "from " + day_published + " "; + } + + if (salary_min && salary_max) { + string += "with salary between " + salary_min + " and " + salary_max; + } else if (salary_min) { + string += "with salary greater than " + salary_min; + } else if (salary_max) { + string += "with salary lower than " + salary_min; + } + + return string; + } + }, { + key: "render", + value: function render() { + var _this = this; + + var navigation = this.props.navigation; + return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[13]).VerticalSearchesList, { + eventName: _events.default.TOGGLE_JOB_SEARCH, + color: (0, _$$_REQUIRE(_dependencyMap[11]).getJobColor)(), + totalKey: "total_searches", + searchVerticalManager: global.getVerticalsConfig().getJob(), + onItemPress: function onItemPress(item) { + navigation.navigate("VerticalListScreen", { + filters: Object.assign({}, item) + }); + }, + renderItem: function renderItem(item) { + var title = item.term || global.strings("all_jobs"); + + var base = _this.getBaseSearchString(item); + + var advance = _this.getAdvanceSearchString(item); + + return (0, _$$_REQUIRE(_dependencyMap[12]).jsxs)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[14]).styles.line, + children: [(0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_fontText.default, { + style: _$$_REQUIRE(_dependencyMap[14]).styles.title, + type: _fontText.Type.bold, + children: title + }), base ? (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_fontText.default, { + style: _$$_REQUIRE(_dependencyMap[14]).styles.subtitle, + type: _fontText.Type.medium, + children: base + }) : null, advance ? (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_fontText.default, { + style: _$$_REQUIRE(_dependencyMap[14]).styles.subtitle, + type: _fontText.Type.medium, + children: advance + }) : null] + }); + }, + onEmptyPress: function onEmptyPress() { + navigation.navigate("VerticalFiltersScreen"); + } + }); + } + }]); + }(_$$_REQUIRE(_dependencyMap[15]).NavigationBaseScreen); +},2578,[3,6,7,11,85,13,14,16,18,436,800,2470,179,2561,2579,2214]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var styles = exports.styles = _reactNative.StyleSheet.create({ + line: { + flexDirection: "column", + padding: 10, + borderBottomWidth: 0.5, + borderColor: _$$_REQUIRE(_dependencyMap[1]).colors.black, + justifyContent: "center" + }, + title: { + fontSize: 20, + flex: 1 + }, + subtitle: { + fontSize: 20, + flex: 1 + } + }); +},2579,[18,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2580,[2581]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.JobFavoritesScreen = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var JobFavoritesScreen = exports.JobFavoritesScreen = function (_NavigationBaseScreen) { + function JobFavoritesScreen() { + (0, _classCallCheck2.default)(this, JobFavoritesScreen); + return _callSuper(this, JobFavoritesScreen, arguments); + } + + (0, _inherits2.default)(JobFavoritesScreen, _NavigationBaseScreen); + return (0, _createClass2.default)(JobFavoritesScreen, [{ + key: "handleBackButton", + value: function handleBackButton() { + var navigation = this.props.navigation; + navigation.goBack(null); + return (0, _get2.default)((0, _getPrototypeOf2.default)(JobFavoritesScreen.prototype), "handleBackButton", this).call(this); + } + }, { + key: "getTag", + value: function getTag() { + return "Job Favorites"; + } + }, { + key: "render", + value: function render() { + var navigation = this.props.navigation; + return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[10]).VerticalFavoritesList, { + eventName: _events.default.TOGGLE_JOB_FAVORITE, + color: (0, _$$_REQUIRE(_dependencyMap[11]).getJobColor)(), + totalKey: "total_favorites", + searchVerticalManager: global.getVerticalsConfig().getJob(), + renderItem: function renderItem(item) { + return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[12]).JobListItem, { + item: item, + onItemPress: function onItemPress(clicked) { + navigation.navigate("VerticalDetailScreen", { + url: (0, _$$_REQUIRE(_dependencyMap[11]).getJobUrlPageById)(clicked.id) + }); + }, + manager: global.getVerticalsConfig().getJob(), + color: (0, _$$_REQUIRE(_dependencyMap[11]).getJobColor)() + }); + }, + onEmptyPress: function onEmptyPress() { + navigation.navigate("VerticalFiltersScreen"); + } + }); + } + }]); + }(_$$_REQUIRE(_dependencyMap[13]).NavigationBaseScreen); +},2581,[3,6,7,11,85,13,14,16,436,179,2553,2470,2582,2214]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.JobListItem = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _reactNative = _$$_REQUIRE(_dependencyMap[8]); + + var _reactNativeShare = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); + + var _fontText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10])); + + var _iconTile = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); + + var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); + + var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[13])); + + 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); } + + 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; } + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var JobListItem = exports.JobListItem = function (_React$Component) { + function JobListItem() { + (0, _classCallCheck2.default)(this, JobListItem); + return _callSuper(this, JobListItem, arguments); + } + + (0, _inherits2.default)(JobListItem, _React$Component); + return (0, _createClass2.default)(JobListItem, [{ + key: "shouldComponentUpdate", + value: function shouldComponentUpdate() { + return false; + } + }, { + key: "render", + value: function render() { + var _this$props = this.props, + item = _this$props.item, + manager = _this$props.manager, + color = _this$props.color, + onItemPress = _this$props.onItemPress; + return (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_reactNative.TouchableOpacity, { + onPress: function onPress() { + if (onItemPress) { + onItemPress(item); + } + }, + children: (0, _$$_REQUIRE(_dependencyMap[14]).jsxs)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[15]).styles.line, + children: [(0, _$$_REQUIRE(_dependencyMap[14]).jsxs)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[15]).styles.header, + children: [(0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_fontText.default, { + style: _$$_REQUIRE(_dependencyMap[15]).styles.title, + type: _fontText.Type.bold, + children: item.heading + }), (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_iconTile.default, { + parentStyle: { + position: "relative", + top: 0 + }, + icons: [{ + title: global.strings("action_share"), + component: function component(style) { + return (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_iconComponent.default, { + type: _iconComponent.TecnaviaIconType.MATERIAL_ICONS, + name: "share", + style: style + }); + }, + onPress: function onPress(clicked) { + var shareOptions = { + url: (0, _$$_REQUIRE(_dependencyMap[16]).getJobUrlPageById)(clicked.item.id), + message: clicked.item.heading + }; + + _reactNativeShare.default.open(shareOptions); + } + }, { + title: !manager.favoriteIsStored(item) ? global.strings("action_save_for_later") : global.strings("action_remove_from_favorites"), + component: function component(style) { + return (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_$$_REQUIRE(_dependencyMap[17]).IconFavorite, { + item: item, + size: 20, + style: style, + eventToggleItemChecker: function eventToggleItemChecker(currentItem, params) { + return currentItem.id === params.id; + }, + toggleFavoritesEventName: _events.default.TOGGLE_JOB_FAVORITE, + isFavoriteChecker: function isFavoriteChecker(toCheck) { + return manager.favoriteIsStored(toCheck); + } + }); + }, + onPress: function onPress(clicked) { + manager.toggleFavorite(clicked); + } + }], + tintColor: color, + item: item, + availableSpace: _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.isTablet() ? 2 : 1, + border: true + })] + }), (0, _$$_REQUIRE(_dependencyMap[14]).jsxs)(_reactNative.View, { + style: _$$_REQUIRE(_dependencyMap[15]).styles.subline, + children: [(0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_fontText.default, { + style: _$$_REQUIRE(_dependencyMap[15]).styles.make, + type: _fontText.Type.medium, + children: item.make + }), item.dateentered ? (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_fontText.default, { + style: _$$_REQUIRE(_dependencyMap[15]).styles.date, + type: _fontText.Type.medium, + children: _$$_REQUIRE(_dependencyMap[18]).DateUtils.getMomentDate(item.dateentered, "MM/DD/YYYY").fromNow() + }) : null] + }), (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_fontText.default, { + style: _$$_REQUIRE(_dependencyMap[15]).styles.description, + children: item.description + }), (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_fontText.default, { + style: _$$_REQUIRE(_dependencyMap[15]).styles.salary, + type: _fontText.Type.medium, + children: item.price ? global.strings("salary", { + salary: item.price + }) : global.strings("unknown_salary") + })] + }) + }); + } + }]); + }(_react.default.Component); + + JobListItem.propTypes = { + item: _propTypes.default.shape({ + heading: _propTypes.default.string, + subline: _propTypes.default.string, + make: _propTypes.default.string, + description: _propTypes.default.string, + dateentered: _propTypes.default.string, + price: _propTypes.default.number + }).isRequired, + manager: _propTypes.default.shape({ + favoriteIsStored: _propTypes.default.func.isRequired, + toggleFavorite: _propTypes.default.func.isRequired + }).isRequired, + onItemPress: _propTypes.default.func, + color: _propTypes.default.string.isRequired + }; +},2582,[3,6,7,11,13,14,16,568,18,553,800,2092,436,1807,179,2583,2470,1973,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.styles = undefined; + + var _reactNative = _$$_REQUIRE(_dependencyMap[0]); + + var styles = exports.styles = _reactNative.StyleSheet.create({ + header: { + flexDirection: "row" + }, + line: { + flexDirection: "column", + padding: 10, + borderBottomWidth: 0.5, + borderBottomColor: _$$_REQUIRE(_dependencyMap[1]).colors.black + }, + title: { + flex: 1, + fontSize: 20 + }, + subline: { + flexDirection: "row", + paddingTop: 10, + paddingBottom: 10 + }, + make: { + flex: 1, + fontSize: 16 + }, + salary: { + flex: 1, + fontSize: 16, + paddingVertical: 10 + }, + date: { + textAlign: "right", + fontSize: 16 + }, + description: { + flex: 2, + textAlign: "justify" + }, + icon: { + height: 30, + width: 30, + marginStart: 5, + marginEnd: 5 + } + }); +},2583,[18,438]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _$$_REQUIRE(_dependencyMap[0])[key]; + } + }); + }); +},2584,[2585]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.JobListScreen = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var JobListScreen = exports.JobListScreen = function (_NavigationBaseScreen) { + function JobListScreen() { + (0, _classCallCheck2.default)(this, JobListScreen); + return _callSuper(this, JobListScreen, arguments); + } + + (0, _inherits2.default)(JobListScreen, _NavigationBaseScreen); + return (0, _createClass2.default)(JobListScreen, [{ + key: "handleBackButton", + value: function handleBackButton() { + var navigation = this.props.navigation; + navigation.goBack(null); + return (0, _get2.default)((0, _getPrototypeOf2.default)(JobListScreen.prototype), "handleBackButton", this).call(this); + } + }, { + key: "getTag", + value: function getTag() { + return "Job List"; + } + }, { + key: "keyExtractor", + value: function keyExtractor(item, index) { + return item.id; + } + }, { + key: "render", + value: function render() { + var navigation = this.props.navigation; + + var _getNavigationParams = (0, _$$_REQUIRE(_dependencyMap[9]).getNavigationParams)(this.props), + _getNavigationParams$ = _getNavigationParams.filters, + filters = _getNavigationParams$ === undefined ? { + action: "jobs", + view: "filtered" + } : _getNavigationParams$; + + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_$$_REQUIRE(_dependencyMap[11]).VerticalList, { + color: (0, _$$_REQUIRE(_dependencyMap[12]).getJobColor)(), + api: _Api.default.baseUrl(), + totalKey: "total_jobs", + params: filters, + normalizeResults: function normalizeResults(res) { + return res.result; + }, + keyExtractor: this.keyExtractor, + getFilterNames: function getFilterNames(rows, sort, currentPage) { + return { + rows: rows, + sort: sort, + start: currentPage + }; + }, + searchVerticalManager: global.getVerticalsConfig().getJob(), + renderItem: function renderItem(_ref) { + var item = _ref.item; + return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_$$_REQUIRE(_dependencyMap[13]).JobListItem, { + item: item, + onItemPress: function onItemPress(clicked) { + var url = clicked.url || (0, _$$_REQUIRE(_dependencyMap[12]).getJobUrlPageById)(clicked.id); + navigation.navigate("VerticalDetailScreen", { + url: url + }); + }, + manager: global.getVerticalsConfig().getJob(), + color: (0, _$$_REQUIRE(_dependencyMap[12]).getJobColor)() + }); + }, + onErrorPress: function onErrorPress() { + navigation.navigate("VerticalFiltersScreen"); + }, + onEmptyPress: function onEmptyPress() { + navigation.navigate("VerticalFiltersScreen"); + } + }); + } + }]); + }(_$$_REQUIRE(_dependencyMap[9]).NavigationBaseScreen); +},2585,[3,6,7,11,85,13,14,16,407,2214,179,2495,2470,2582]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ + "__packager_asset": true, + "httpServerLocation": "/assets/src/views/verticals/navigation/img", + "width": 2000, + "height": 394, + "scales": [1], + "hash": "f782f11b313b5c72922dfa380b1e9e2a", + "name": "monster_logo", + "type": "png" + }); +},2586,[1244]); +__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.JobDetailScreen = undefined; + + var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + + var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); + + var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + + var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); + + var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + + var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); + + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + + function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } + + function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } + + var JobDetailScreen = exports.JobDetailScreen = function (_NavigationBaseScreen) { + function JobDetailScreen() { + (0, _classCallCheck2.default)(this, JobDetailScreen); + return _callSuper(this, JobDetailScreen, arguments); + } + + (0, _inherits2.default)(JobDetailScreen, _NavigationBaseScreen); + return (0, _createClass2.default)(JobDetailScreen, [{ + key: "handleBackButton", + value: function handleBackButton() { + var navigation = this.props.navigation; + navigation.goBack(null); + return (0, _get2.default)((0, _getPrototypeOf2.default)(JobDetailScreen.prototype), "handleBackButton", this).call(this); + } + }, { + key: "getTag", + value: function getTag() { + return "Job Details"; + } + }, { + key: "render", + value: function render() { + var _getNavigationParams = (0, _$$_REQUIRE(_dependencyMap[8]).getNavigationParams)(this.props), + url = _getNavigationParams.url; + + return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[10]).BaseWebView, { + source: { + uri: url + }, + progressColor: (0, _$$_REQUIRE(_dependencyMap[11]).getJobColor)(), + browser: true + }); + } + }]); + }(_$$_REQUIRE(_dependencyMap[8]).NavigationBaseScreen); +},2587,[3,6,7,11,85,13,14,16,2214,179,1927,2470]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -374394,7 +361793,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }); } -},2584,[3,4,16,18,2329,2009,2083,436,434,2318,1999,2235,2415,2167,179,2585,2178,2596,2598,2600,2620,438,803,550,2338,2159,1303,2622]); +},2588,[3,4,16,18,2212,1898,1967,436,434,2201,1888,2118,2298,2050,179,2589,2061,2600,2602,2604,2611,438,803,550,2221,2042,1210,2613]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -374409,7 +361808,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2585,[2586]); +},2589,[2590]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -374891,7 +362290,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e isHome: false, isLive: false }; -},2586,[3,270,6,7,11,85,13,14,568,16,18,2009,2587,2179,436,2260,434,2165,2225,550,1166,438,2095,179,803,2588,2589]); +},2590,[3,270,6,7,11,85,13,14,568,16,18,1898,2591,2062,436,2143,434,2048,2108,550,1073,438,1979,179,803,2592,2593]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -374939,7 +362338,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }() }]); }(); -},2587,[3,270,6,7,2179]); +},2591,[3,270,6,7,2062]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -374988,7 +362387,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2588,[18,438]); +},2592,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -375003,7 +362402,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2589,[2590]); +},2593,[2594]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -375636,7 +363035,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var params = navigation.state.params; return params; }; -},2590,[3,270,6,7,11,85,13,14,568,16,18,2009,436,2218,2093,2000,434,2165,865,1999,2467,800,2591,2182,550,2179,798,179,2594,803,438,2595,2167,1995,2019,2331]); +},2594,[3,270,6,7,11,85,13,14,568,16,18,1898,436,2101,1977,1889,434,2048,865,1888,2350,800,2595,2065,550,2062,798,179,2598,803,438,2599,2050,1884,1929,2214]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -375891,7 +363290,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2591,[3,6,7,11,13,14,16,18,2230,2592,2231,2159,2095,179,438,803,2206,1166]); +},2595,[3,6,7,11,13,14,16,18,2113,2596,2114,2042,1979,179,438,803,2089,1073]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -375996,7 +363395,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }); -},2592,[3,6,7,11,13,14,16,438,2593,1166,179]); +},2596,[3,6,7,11,13,14,16,438,2597,1073,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -376388,7 +363787,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }); -},2593,[3,6,7,11,13,14,568,16,18,2084,436,800,2153,2170,2208,2159,550,803,438,2088,179,2150,2212,2042,851,1166]); +},2597,[3,6,7,11,13,14,568,16,18,1968,436,800,2036,2053,2091,2042,550,803,438,1972,179,2033,2095,1927,852,1073]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -376417,8 +363816,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var onHide = configuration.onHide, onShow = configuration.onShow, rest = (0, _objectWithoutProperties2.default)(configuration, _excluded); + var isWeb = false; + var visibleDefault = true; - var _useState = (0, _react.useState)(true), + var model = _AdsHelper.default.getModelFromConfiguration(data, rest); + + if (model) { + isWeb = model.isWeb; + var url = model.url, + unitId = model.unitId; + var uri = url || unitId; + + if (isWeb && uri) { + visibleDefault = uri.indexOf("shouldWaitForLocal=1") === -1; + } + } + + var _useState = (0, _react.useState)(visibleDefault), _useState2 = (0, _slicedToArray2.default)(_useState, 2), visible = _useState2[0], setVisible = _useState2[1]; @@ -376439,19 +363853,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onShow == null ? undefined : onShow(); }, [onShow, toggleVisibility]); - var adsComponent = _AdsHelper.default.getAdComponentFromConfiguration(data, Object.assign({}, rest, { + if (!model) { + return null; + } + + var adsComponent = _AdsHelper.default.getConfig().getAdComponent(model, Object.assign({}, rest, { onHide: onAdsHide, onShow: onAdsShow })); - return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_reactNative.View, { - style: !visible && { + var style = []; + + if (isWeb) { + style.push({ + width: "100%" + }); + } + + if (!visible) { + style.push({ height: 0 - }, + }); + } + + return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_reactNative.View, { + style: style, children: adsComponent }); }; -},2594,[3,33,4,16,18,2218,179]); +},2598,[3,33,4,16,18,2101,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -376469,7 +363899,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e paddingVertical: 10 } }); -},2595,[18,2159]); +},2599,[18,2042]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -376879,7 +364309,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e RssMyHomeScreen.propTypes = Object.assign({ item: _propTypes.default.object }, _$$_REQUIRE(_dependencyMap[27]).RssBaseScreen.propTypes); -},2596,[3,270,6,7,11,85,13,14,568,16,18,2009,2587,2179,2165,2124,2122,2339,800,1918,179,2597,550,438,2235,2507,2167,2589]); +},2600,[3,270,6,7,11,85,13,14,568,16,18,1898,2591,2062,2048,2008,2006,2222,800,1807,179,2601,550,438,2118,2390,2050,2593]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -376926,7 +364356,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e padding: 3 } }); -},2597,[18,2159,438]); +},2601,[18,2042,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -376941,7 +364371,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2598,[2599]); +},2602,[2603]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -377059,7 +364489,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[13]).RssBaseScreen); -},2599,[3,270,6,7,11,85,13,14,16,18,436,550,179,2589]); +},2603,[3,270,6,7,11,85,13,14,16,18,436,550,179,2593]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -377074,7 +364504,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2600,[2601]); +},2604,[2605]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -377253,7 +364683,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[17]).RssBaseScreen); -},2601,[3,270,6,7,11,13,14,16,18,2179,434,2602,438,803,179,2619,2167,2589]); +},2605,[3,270,6,7,11,13,14,16,18,2062,434,2606,438,803,179,2610,2050,2593]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -377552,991 +364982,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = RssSearchAdvanceModal; -},2602,[3,4,270,33,16,568,800,2603,2616,2618,2179,813,438,179,803]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[4]); - - var _datepickerComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5])); - - var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); - - 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); } - - 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; } - - var styles = _reactNative.StyleSheet.create({ - container: {}, - pickerContainer: { - flexDirection: "row", - flex: 1 - }, - picker: { - height: 50, - alignItems: "center", - justifyContent: "center", - marginBottom: 5, - marginTop: 5, - flex: 1, - borderWidth: 0.3, - borderColor: _$$_REQUIRE(_dependencyMap[7]).colors.transparent600, - borderRadius: 20 - }, - icon: { - color: _$$_REQUIRE(_dependencyMap[7]).colors.transparent600 - } - }); - - function RangePickerComponent(props) { - var showText = props.showText, - start = props.start, - end = props.end, - onRangeChange = props.onRangeChange, - color = props.color, - containerStyle = props.containerStyle, - minDate = props.minDate, - maxDate = props.maxDate, - pickerProps = props.pickerProps, - pickerStartProps = props.pickerStartProps, - pickerEndProps = props.pickerEndProps; - - var _useState = (0, _react.useState)((0, _datepickerComponent.getDate)(start)), - _useState2 = (0, _slicedToArray2.default)(_useState, 2), - startRange = _useState2[0], - setStartRange = _useState2[1]; - - var _useState3 = (0, _react.useState)((0, _datepickerComponent.getDate)(end)), - _useState4 = (0, _slicedToArray2.default)(_useState3, 2), - endRange = _useState4[0], - setEndRange = _useState4[1]; - - var _onStartChange = function _onStartChange(strDate, date) { - var startDate = new Date(date); - - if (startDate > new Date(endRange)) { - setStartRange(strDate); - setEndRange(strDate); - } else { - setStartRange(strDate); - } - }; - - var _onEndChange = function _onEndChange(strDate) { - setEndRange(strDate); - }; - - (0, _react.useEffect)(function () { - if (typeof onRangeChange === "function") { - onRangeChange(startRange, endRange); - } - }, [startRange, endRange]); - return (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_reactNative.View, { - style: [styles.container, containerStyle], - children: [(0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_datepickerComponent.default, Object.assign({ - title: showText ? global.strings("btn_from") : "", - color: color, - date: startRange, - minDate: (0, _datepickerComponent.getDate)(minDate), - maxDate: (0, _datepickerComponent.getDate)(maxDate) - }, pickerProps, pickerStartProps, { - style: [styles.picker, { - borderColor: color - }, pickerProps.style, pickerStartProps.style], - containerStyle: [styles.pickerContainer, pickerProps.containerStyle, pickerStartProps.containerStyle], - iconStyle: [styles.icon, pickerProps.iconStyle, pickerStartProps.iconStyle], - onDateChange: _onStartChange - })), !showText ? (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_iconComponent.default, { - type: _iconComponent.TecnaviaIconType.MATERIAL_COMMUNITY_ICONS, - name: "arrow-left-right", - style: { - fontSize: 20, - margin: 5, - alignSelf: "center", - color: color - } - }) : null, (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_datepickerComponent.default, Object.assign({ - title: showText ? global.strings("btn_to") : "", - date: endRange, - color: color, - minDate: startRange, - maxDate: (0, _datepickerComponent.getDate)(maxDate) - }, pickerProps, pickerEndProps, { - style: [styles.picker, { - borderColor: color - }, pickerProps.style, pickerEndProps.style], - containerStyle: [styles.pickerContainer, pickerProps.containerStyle, pickerStartProps.containerStyle], - iconStyle: [styles.icon, pickerProps.iconStyle, pickerStartProps.iconStyle], - onDateChange: _onEndChange - }))] - }); - } - - RangePickerComponent.defaultProps = { - showText: true, - start: new Date(), - end: new Date(), - minDate: new Date(), - containerStyle: {}, - pickerProps: {}, - pickerStartProps: {}, - pickerEndProps: {} - }; - RangePickerComponent.propTypes = { - start: _propTypes.default.string, - end: _propTypes.default.string, - color: _propTypes.default.string, - showText: _propTypes.default.bool, - minDate: _propTypes.default.object, - maxDate: _propTypes.default.object, - onRangeChange: _propTypes.default.func.isRequired, - containerStyle: _propTypes.default.any, - pickerProps: _datepickerComponent.default.propTypes, - pickerStartProps: _datepickerComponent.default.propTypes, - pickerEndProps: _datepickerComponent.default.propTypes - }; - - var _default = exports.default = RangePickerComponent; -},2603,[3,33,16,568,18,2604,1918,438,179]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getDate = exports.default = undefined; - - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[4]); - - var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _pickerComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); - - 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); } - - 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; } - - var FORMATS = { - date: "YYYY-MM-DD", - datetime: "YYYY-MM-DD HH:mm", - time: "HH:mm" - }; - - var getDate = exports.getDate = function getDate(date, format) { - if (date) { - if (date instanceof Date) { - return date; - } - - return _$$_REQUIRE(_dependencyMap[8]).DateUtils.toDate(date, format); - } - - return date; - }; - - var styles = _reactNative.StyleSheet.create({ - container: { - alignItems: "center" - }, - dateTouchBody: { - flexDirection: "row", - flex: 1, - alignItems: "center", - justifyContent: "center" - }, - dateInput: { - flex: 1, - flexDirection: "row", - marginHorizontal: 10, - alignItems: "center", - justifyContent: "space-evenly" - }, - dateText: { - flex: 1, - padding: 2, - textAlign: "center" - }, - dateIcon: { - marginHorizontal: 5, - fontSize: 20 - } - }); - - var DatePicker = (0, _react.forwardRef)(function (props, ref) { - var mode = props.mode, - _props$format = props.format, - format = _props$format === undefined ? FORMATS[mode] : _props$format, - startEmpty = props.startEmpty, - onDateChange = props.onDateChange, - style = props.style, - containerStyle = props.containerStyle, - iconStyle = props.iconStyle, - textStyle = props.textStyle, - labelStyle = props.labelStyle, - color = props.color, - title = props.title, - hint = props.hint; - - var _useState = (0, _react.useState)(false), - _useState2 = (0, _slicedToArray2.default)(_useState, 2), - visible = _useState2[0], - setVisibility = _useState2[1]; - - var _useState3 = (0, _react.useState)(startEmpty ? undefined : getDate(props.date, format) || new Date()), - _useState4 = (0, _slicedToArray2.default)(_useState3, 2), - date = _useState4[0], - setDate = _useState4[1]; - - var _useState5 = (0, _react.useState)(getDate(props.minDate, format)), - _useState6 = (0, _slicedToArray2.default)(_useState5, 2), - minDate = _useState6[0], - setMinDate = _useState6[1]; - - var _useState7 = (0, _react.useState)(getDate(props.maxDate, format)), - _useState8 = (0, _slicedToArray2.default)(_useState7, 2), - maxDate = _useState8[0], - setMaxDate = _useState8[1]; - - (0, _react.useImperativeHandle)(ref, function () { - return { - getValue: function getValue() { - return date; - } - }; - }); - - var _getDateStr = function _getDateStr(toConvert) { - return _$$_REQUIRE(_dependencyMap[8]).DateUtils.getDateString(toConvert, format); - }; - - var _cancel = function _cancel() { - setVisibility(false); - setDate(startEmpty ? undefined : date); - }; - - var _setDate = function _setDate(event, newDate) { - if (newDate !== undefined) { - setVisibility(false); - setDate(newDate); - } else { - _cancel(); - } - }; - - var _show = function _show() { - return setVisibility(true); - }; - - (0, _react.useEffect)(function () { - setDate(getDate(props.date, format)); - }, [props.date]); - (0, _react.useEffect)(function () { - setMinDate(getDate(props.minDate, format)); - }, [props.minDate]); - (0, _react.useEffect)(function () { - setMaxDate(getDate(props.maxDate, format)); - }, [props.maxDate]); - (0, _react.useEffect)(function () { - if (typeof onDateChange === "function" && date) { - onDateChange(_getDateStr(date), date); - } - }, [date]); - var text = hint; - - if (date) { - text = _$$_REQUIRE(_dependencyMap[8]).DateUtils.getMomentDate(date).format("LL"); - } - - return (0, _$$_REQUIRE(_dependencyMap[9]).jsxs)(_reactNative.View, { - style: [styles.container, containerStyle], - children: [title ? (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_fontText.default, { - style: labelStyle, - children: title - }) : null, (0, _$$_REQUIRE(_dependencyMap[9]).jsxs)(_reactNative.TouchableOpacity, { - style: [styles.dateTouchBody, style], - onPress: _show, - children: [(0, _$$_REQUIRE(_dependencyMap[9]).jsxs)(_reactNative.View, { - style: styles.dateInput, - children: [(0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_iconComponent.default, { - style: [styles.dateIcon, iconStyle], - type: _iconComponent.TecnaviaIconType.MATERIAL_COMMUNITY_ICONS, - name: "calendar-month" - }), (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_fontText.default, { - style: [styles.dateText, textStyle], - numberOfLines: 2, - children: text - })] - }), (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_pickerComponent.default, { - visible: visible, - date: date, - minDate: getDate(minDate, format), - maxDate: getDate(maxDate, format), - mode: mode, - onChange: _setDate, - color: color - })] - })] - }); - }); - DatePicker.defaultProps = { - mode: "date", - startEmpty: false - }; - DatePicker.propTypes = { - hint: _propTypes.default.string, - style: _propTypes.default.any, - containerStyle: _propTypes.default.any, - labelStyle: _propTypes.default.any, - textStyle: _propTypes.default.any, - iconStyle: _propTypes.default.any, - color: _propTypes.default.string, - title: _propTypes.default.string, - mode: _propTypes.default.oneOf(["date", "datetime", "time"]), - format: _propTypes.default.string, - date: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.instanceOf(Date)]), - minDate: _propTypes.default.string, - maxDate: _propTypes.default.string, - onDateChange: _propTypes.default.func, - startEmpty: _propTypes.default.bool - }; - - var _default = exports.default = DatePicker; -},2604,[3,33,16,568,18,800,2605,1918,438,179]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _datetimepicker = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - function Picker(props) { - var visible = props.visible, - date = props.date, - minDate = props.minDate, - maxDate = props.maxDate, - mode = props.mode, - onChange = props.onChange, - style = props.style, - locale = props.locale, - color = props.color; - - if (visible) { - return (0, _$$_REQUIRE(_dependencyMap[4]).jsx)(_datetimepicker.default, { - value: date || new Date(), - mode: mode, - maximumDate: maxDate, - minimumDate: minDate, - display: "default", - onChange: onChange, - style: style, - textColor: color, - locale: locale, - themeVariant: _$$_REQUIRE(_dependencyMap[5]).Css.isDarkTheme() ? "dark" : "light" - }); - } - - return null; - } - - Picker.propTypes = { - visible: _propTypes.default.bool, - date: _propTypes.default.any, - minDate: _propTypes.default.any, - maxDate: _propTypes.default.any, - mode: _propTypes.default.string, - onChange: _propTypes.default.func, - color: _propTypes.default.string, - style: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.object, _propTypes.default.array]), - locale: _propTypes.default.string - }; - Picker.defaultProps = { - visible: false, - onChange: function onChange() {} - }; - - var _default = exports.default = Picker; -},2605,[3,2606,568,16,179,803]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - var _exportNames = { - DateTimePickerAndroid: true - }; - Object.defineProperty(exports, "DateTimePickerAndroid", { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0]).DateTimePickerAndroid; - } - }); - exports.default = undefined; - - var _datetimepicker = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[2])); - - Object.keys(_$$_REQUIRE(_dependencyMap[3])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[3])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[3])[key]; - } - }); - }); - - var _default = exports.default = _datetimepicker.default; -},2606,[2607,3,2615,2614]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.DateTimePickerAndroid = undefined; - - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _invariant = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _picker = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[5]); - - function open(props) { - var _props$mode = props.mode, - mode = _props$mode === undefined ? _$$_REQUIRE(_dependencyMap[6]).ANDROID_MODE.date : _props$mode, - display = props.display, - originalValue = props.value, - is24Hour = props.is24Hour, - minimumDate = props.minimumDate, - maximumDate = props.maximumDate, - minuteInterval = props.minuteInterval, - timeZoneOffsetInMinutes = props.timeZoneOffsetInMinutes, - onChange = props.onChange, - onError = props.onError, - positiveButton = props.positiveButton, - negativeButton = props.negativeButton, - neutralButton = props.neutralButton, - neutralButtonLabel = props.neutralButtonLabel, - positiveButtonLabel = props.positiveButtonLabel, - negativeButtonLabel = props.negativeButtonLabel; - (0, _$$_REQUIRE(_dependencyMap[7]).validateAndroidProps)(props); - (0, _invariant.default)(originalValue, 'A date or time must be specified as `value` prop.'); - var valueTimestamp = originalValue.getTime(); - var openPicker = (0, _$$_REQUIRE(_dependencyMap[7]).getOpenPicker)(mode); - - var presentPicker = function () { - var _ref = (0, _asyncToGenerator2.default)(function* () { - try { - var dialogButtons = { - positive: Object.assign({ - label: positiveButtonLabel - }, positiveButton, { - textColor: (0, _reactNative.processColor)(positiveButton == null ? undefined : positiveButton.textColor) - }), - neutral: Object.assign({ - label: neutralButtonLabel - }, neutralButton, { - textColor: (0, _reactNative.processColor)(neutralButton == null ? undefined : neutralButton.textColor) - }), - negative: Object.assign({ - label: negativeButtonLabel - }, negativeButton, { - textColor: (0, _reactNative.processColor)(negativeButton == null ? undefined : negativeButton.textColor) - }) - }; - var displayOverride = display === _$$_REQUIRE(_dependencyMap[6]).ANDROID_DISPLAY.spinner ? _$$_REQUIRE(_dependencyMap[6]).ANDROID_DISPLAY.spinner : _$$_REQUIRE(_dependencyMap[6]).ANDROID_DISPLAY.default; - - var _yield$openPicker = yield openPicker({ - value: valueTimestamp, - display: displayOverride, - is24Hour: is24Hour, - minimumDate: minimumDate, - maximumDate: maximumDate, - minuteInterval: minuteInterval, - timeZoneOffsetInMinutes: timeZoneOffsetInMinutes, - dialogButtons: dialogButtons - }), - action = _yield$openPicker.action, - day = _yield$openPicker.day, - month = _yield$openPicker.month, - year = _yield$openPicker.year, - minute = _yield$openPicker.minute, - hour = _yield$openPicker.hour; - - switch (action) { - case _$$_REQUIRE(_dependencyMap[6]).DATE_SET_ACTION: - { - var date = new Date(valueTimestamp); - date.setFullYear(year, month, day); - date = (0, _$$_REQUIRE(_dependencyMap[7]).timeZoneOffsetDateSetter)(date, timeZoneOffsetInMinutes); - - var _createDateTimeSetEvt = (0, _$$_REQUIRE(_dependencyMap[8]).createDateTimeSetEvtParams)(date), - _createDateTimeSetEvt2 = (0, _slicedToArray2.default)(_createDateTimeSetEvt, 1), - event = _createDateTimeSetEvt2[0]; - - onChange == null ? undefined : onChange(event, date); - break; - } - - case _$$_REQUIRE(_dependencyMap[6]).TIME_SET_ACTION: - { - var _date = new Date(valueTimestamp); - - _date.setHours(hour, minute); - - _date = (0, _$$_REQUIRE(_dependencyMap[7]).timeZoneOffsetDateSetter)(_date, timeZoneOffsetInMinutes); - - var _createDateTimeSetEvt3 = (0, _$$_REQUIRE(_dependencyMap[8]).createDateTimeSetEvtParams)(_date), - _createDateTimeSetEvt4 = (0, _slicedToArray2.default)(_createDateTimeSetEvt3, 1), - _event = _createDateTimeSetEvt4[0]; - - onChange == null ? undefined : onChange(_event, _date); - break; - } - - case _$$_REQUIRE(_dependencyMap[6]).NEUTRAL_BUTTON_ACTION: - { - var _createNeutralEvtPara = (0, _$$_REQUIRE(_dependencyMap[8]).createNeutralEvtParams)(originalValue), - _createNeutralEvtPara2 = (0, _slicedToArray2.default)(_createNeutralEvtPara, 1), - _event2 = _createNeutralEvtPara2[0]; - - onChange == null ? undefined : onChange(_event2, originalValue); - break; - } - - case _$$_REQUIRE(_dependencyMap[6]).DISMISS_ACTION: - default: - { - var _createDismissEvtPara = (0, _$$_REQUIRE(_dependencyMap[8]).createDismissEvtParams)(originalValue), - _createDismissEvtPara2 = (0, _slicedToArray2.default)(_createDismissEvtPara, 1), - _event3 = _createDismissEvtPara2[0]; - - onChange == null ? undefined : onChange(_event3, originalValue); - break; - } - } - } catch (error) { - onError && onError(error); - } - }); - - return function presentPicker() { - return _ref.apply(this, arguments); - }; - }(); - - presentPicker(); - } - - function dismiss(mode) { - return _picker.default[mode].dismiss(); - } - - var DateTimePickerAndroid = exports.DateTimePickerAndroid = { - open: open, - dismiss: dismiss - }; -},2607,[3,33,270,31,2608,18,2611,2613,2614]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _datepicker = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _timepicker = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var pickers = (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _$$_REQUIRE(_dependencyMap[4]).ANDROID_MODE.date, _datepicker.default), _$$_REQUIRE(_dependencyMap[4]).ANDROID_MODE.time, _timepicker.default); - - var _default = exports.default = pickers; -},2608,[3,240,2609,2612,2611]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[4]); - - var DatePickerAndroid = exports.default = function () { - function DatePickerAndroid() { - (0, _classCallCheck2.default)(this, DatePickerAndroid); - } - - return (0, _createClass2.default)(DatePickerAndroid, null, [{ - key: "open", - value: function () { - var _open = (0, _asyncToGenerator2.default)(function* (options) { - (0, _$$_REQUIRE(_dependencyMap[5]).toMilliseconds)(options, 'value', 'minimumDate', 'maximumDate'); - options.display = options.display || _$$_REQUIRE(_dependencyMap[6]).ANDROID_DISPLAY.default; - return _reactNative.NativeModules.RNDatePickerAndroid.open(options); - }); - - function open(_x) { - return _open.apply(this, arguments); - } - - return open; - }() - }, { - key: "dismiss", - value: function () { - var _dismiss = (0, _asyncToGenerator2.default)(function* () { - return _reactNative.NativeModules.RNDatePickerAndroid.dismiss(); - }); - - function dismiss() { - return _dismiss.apply(this, arguments); - } - - return dismiss; - }() - }]); - }(); - - DatePickerAndroid.dateSetAction = _$$_REQUIRE(_dependencyMap[6]).DATE_SET_ACTION; - DatePickerAndroid.dismissedAction = _$$_REQUIRE(_dependencyMap[6]).DISMISS_ACTION; -},2609,[3,270,6,7,18,2610,2611]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.dateToMilliseconds = dateToMilliseconds; - exports.sharedPropsValidation = sharedPropsValidation; - exports.toMilliseconds = toMilliseconds; - - var _invariant = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - function toMilliseconds(options) { - for (var _len = arguments.length, keys = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - keys[_key - 1] = arguments[_key]; - } - - keys.forEach(function each(key) { - var value = options[key]; - - if (Object.prototype.toString.call(value) === '[object Date]') { - options[key] = value.getTime(); - } - }); - } - - function dateToMilliseconds(date) { - if (!date) { - return; - } - - return date.getTime(); - } - - function sharedPropsValidation(_ref) { - var value = _ref.value; - (0, _invariant.default)(value, 'A date or time must be specified as `value` prop'); - (0, _invariant.default)(value instanceof Date, '`value` prop must be an instance of Date object'); - } -},2610,[3,31]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.WINDOWS_MODE = exports.TIME_SET_ACTION = exports.NEUTRAL_BUTTON_ACTION = exports.MIN_MS = exports.IOS_MODE = exports.IOS_DISPLAY = exports.EVENT_TYPE_SET = exports.EVENT_TYPE_DISMISSED = exports.DISMISS_ACTION = exports.DAY_OF_WEEK = exports.DATE_SET_ACTION = exports.ANDROID_MODE = exports.ANDROID_EVT_TYPE = exports.ANDROID_DISPLAY = undefined; - var MIN_MS = exports.MIN_MS = 60000; - var ANDROID_DISPLAY = exports.ANDROID_DISPLAY = Object.freeze({ - default: 'default', - spinner: 'spinner', - clock: 'clock', - calendar: 'calendar' - }); - var EVENT_TYPE_SET = exports.EVENT_TYPE_SET = 'set'; - var EVENT_TYPE_DISMISSED = exports.EVENT_TYPE_DISMISSED = 'dismissed'; - var ANDROID_EVT_TYPE = exports.ANDROID_EVT_TYPE = Object.freeze({ - set: EVENT_TYPE_SET, - dismissed: EVENT_TYPE_DISMISSED, - neutralButtonPressed: 'neutralButtonPressed' - }); - var IOS_DISPLAY = exports.IOS_DISPLAY = Object.freeze({ - default: 'default', - spinner: 'spinner', - compact: 'compact', - inline: 'inline' - }); - var COMMON_MODES = Object.freeze({ - date: 'date', - time: 'time' - }); - var ANDROID_MODE = exports.ANDROID_MODE = COMMON_MODES; - var WINDOWS_MODE = exports.WINDOWS_MODE = COMMON_MODES; - var IOS_MODE = exports.IOS_MODE = Object.freeze(Object.assign({}, COMMON_MODES, { - datetime: 'datetime', - countdown: 'countdown' - })); - var DAY_OF_WEEK = exports.DAY_OF_WEEK = Object.freeze({ - Sunday: 0, - Monday: 1, - Tuesday: 2, - Wednesday: 3, - Thursday: 4, - Friday: 5, - Saturday: 6 - }); - var DATE_SET_ACTION = exports.DATE_SET_ACTION = 'dateSetAction'; - var TIME_SET_ACTION = exports.TIME_SET_ACTION = 'timeSetAction'; - var DISMISS_ACTION = exports.DISMISS_ACTION = 'dismissedAction'; - var NEUTRAL_BUTTON_ACTION = exports.NEUTRAL_BUTTON_ACTION = 'neutralButtonAction'; -},2611,[]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[4]); - - var TimePickerAndroid = exports.default = function () { - function TimePickerAndroid() { - (0, _classCallCheck2.default)(this, TimePickerAndroid); - } - - return (0, _createClass2.default)(TimePickerAndroid, null, [{ - key: "open", - value: function () { - var _open = (0, _asyncToGenerator2.default)(function* (options) { - (0, _$$_REQUIRE(_dependencyMap[5]).toMilliseconds)(options, 'value'); - options.display = options.display || _$$_REQUIRE(_dependencyMap[6]).ANDROID_DISPLAY.default; - return _reactNative.NativeModules.RNTimePickerAndroid.open(options); - }); - - function open(_x) { - return _open.apply(this, arguments); - } - - return open; - }() - }, { - key: "dismiss", - value: function () { - var _dismiss = (0, _asyncToGenerator2.default)(function* () { - return _reactNative.NativeModules.RNTimePickerAndroid.dismiss(); - }); - - function dismiss() { - return _dismiss.apply(this, arguments); - } - - return dismiss; - }() - }]); - }(); - - TimePickerAndroid.timeSetAction = _$$_REQUIRE(_dependencyMap[6]).TIME_SET_ACTION; - TimePickerAndroid.dismissedAction = _$$_REQUIRE(_dependencyMap[6]).DISMISS_ACTION; -},2612,[3,270,6,7,18,2610,2611]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getOpenPicker = getOpenPicker; - exports.timeZoneOffsetDateSetter = timeZoneOffsetDateSetter; - exports.validateAndroidProps = validateAndroidProps; - - var _picker = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _invariant = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3]); - - function getOpenPicker(mode) { - switch (mode) { - case _$$_REQUIRE(_dependencyMap[4]).ANDROID_MODE.time: - return function (_ref) { - var value = _ref.value, - display = _ref.display, - is24Hour = _ref.is24Hour, - minuteInterval = _ref.minuteInterval, - timeZoneOffsetInMinutes = _ref.timeZoneOffsetInMinutes, - dialogButtons = _ref.dialogButtons; - return _picker.default[mode].open({ - value: value, - display: display, - minuteInterval: minuteInterval, - is24Hour: is24Hour, - timeZoneOffsetInMinutes: timeZoneOffsetInMinutes, - dialogButtons: dialogButtons - }); - }; - - default: - return function (_ref2) { - var value = _ref2.value, - display = _ref2.display, - minimumDate = _ref2.minimumDate, - maximumDate = _ref2.maximumDate, - timeZoneOffsetInMinutes = _ref2.timeZoneOffsetInMinutes, - dialogButtons = _ref2.dialogButtons; - return _picker.default[_$$_REQUIRE(_dependencyMap[4]).ANDROID_MODE.date].open({ - value: value, - display: display, - minimumDate: minimumDate, - maximumDate: maximumDate, - timeZoneOffsetInMinutes: timeZoneOffsetInMinutes, - dialogButtons: dialogButtons - }); - }; - } - } - - function timeZoneOffsetDateSetter(date, timeZoneOffsetInMinutes) { - if (typeof timeZoneOffsetInMinutes === 'number') { - var offset = date.getTimezoneOffset() + timeZoneOffsetInMinutes; - var shiftedDate = new Date(date.getTime() - offset * _$$_REQUIRE(_dependencyMap[4]).MIN_MS); - return shiftedDate; - } - - return date; - } - - function validateAndroidProps(props) { - (0, _$$_REQUIRE(_dependencyMap[5]).sharedPropsValidation)({ - value: props == null ? undefined : props.value - }); - var mode = props.mode, - display = props.display; - (0, _invariant.default)(!(display === _$$_REQUIRE(_dependencyMap[4]).ANDROID_DISPLAY.calendar && mode === _$$_REQUIRE(_dependencyMap[4]).ANDROID_MODE.time) && !(display === _$$_REQUIRE(_dependencyMap[4]).ANDROID_DISPLAY.clock && mode === _$$_REQUIRE(_dependencyMap[4]).ANDROID_MODE.date), "display: " + display + " and mode: " + mode + " cannot be used together."); - - if ((props == null ? undefined : props.positiveButtonLabel) !== undefined || (props == null ? undefined : props.negativeButtonLabel) !== undefined || (props == null ? undefined : props.neutralButtonLabel) !== undefined) { - console.warn("positiveButtonLabel, negativeButtonLabel and neutralButtonLabel are deprecated.Use positive / negative / neutralButton prop instead."); - } - } -},2613,[3,2608,31,18,2611,2610]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.createNeutralEvtParams = exports.createDismissEvtParams = exports.createDateTimeSetEvtParams = undefined; - - var createDateTimeSetEvtParams = exports.createDateTimeSetEvtParams = function createDateTimeSetEvtParams(date) { - return [{ - type: _$$_REQUIRE(_dependencyMap[0]).EVENT_TYPE_SET, - nativeEvent: { - timestamp: date.getTime() - } - }, date]; - }; - - var createDismissEvtParams = exports.createDismissEvtParams = function createDismissEvtParams(date) { - return [{ - type: _$$_REQUIRE(_dependencyMap[0]).ANDROID_EVT_TYPE.dismissed, - nativeEvent: { - timestamp: date.getTime() - } - }, date]; - }; - - var createNeutralEvtParams = exports.createNeutralEvtParams = function createNeutralEvtParams(date) { - return [{ - type: _$$_REQUIRE(_dependencyMap[0]).ANDROID_EVT_TYPE.neutralButtonPressed, - nativeEvent: { - timestamp: date.getTime() - } - }, date]; - }; -},2614,[2611]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = RNDateTimePickerAndroid; - - var _react = _$$_REQUIRE(_dependencyMap[0]); - - function RNDateTimePickerAndroid(props) { - (0, _$$_REQUIRE(_dependencyMap[1]).validateAndroidProps)(props); - var _props$mode = props.mode, - mode = _props$mode === undefined ? _$$_REQUIRE(_dependencyMap[2]).ANDROID_MODE.date : _props$mode, - _props$display = props.display, - display = _props$display === undefined ? _$$_REQUIRE(_dependencyMap[2]).ANDROID_DISPLAY.default : _props$display, - value = props.value, - onChange = props.onChange, - is24Hour = props.is24Hour, - minimumDate = props.minimumDate, - maximumDate = props.maximumDate, - minuteInterval = props.minuteInterval, - onError = props.onError, - timeZoneOffsetInMinutes = props.timeZoneOffsetInMinutes, - positiveButton = props.positiveButton, - negativeButton = props.negativeButton, - neutralButton = props.neutralButton, - positiveButtonLabel = props.positiveButtonLabel, - negativeButtonLabel = props.negativeButtonLabel, - neutralButtonLabel = props.neutralButtonLabel; - var valueTimestamp = value.getTime(); - (0, _react.useEffect)(function () { - return function () { - return _$$_REQUIRE(_dependencyMap[3]).DateTimePickerAndroid.dismiss(mode); - }; - }, [mode]); - (0, _react.useEffect)(function showOrUpdatePicker() { - var params = { - mode: mode, - value: new Date(valueTimestamp), - display: display, - is24Hour: is24Hour, - minimumDate: minimumDate, - maximumDate: maximumDate, - minuteInterval: minuteInterval, - timeZoneOffsetInMinutes: timeZoneOffsetInMinutes, - onError: onError, - onChange: onChange, - positiveButton: positiveButton, - negativeButton: negativeButton, - neutralButton: neutralButton, - positiveButtonLabel: positiveButtonLabel, - negativeButtonLabel: negativeButtonLabel, - neutralButtonLabel: neutralButtonLabel - }; - - _$$_REQUIRE(_dependencyMap[3]).DateTimePickerAndroid.open(params); - }, [onChange, valueTimestamp, mode]); - return null; - } -},2615,[16,2613,2611,2607]); +},2606,[3,4,270,33,16,568,800,2537,2607,2609,2062,814,438,179,803]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -378597,7 +365043,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e DropDown.defaultProps = {}; var _default = exports.default = DropDown; -},2616,[3,4,16,568,2493,2617,179]); +},2607,[3,4,16,568,2376,2608,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -378682,7 +365128,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DropDownButton; -},2617,[3,16,568,18,1918,438,179,803,2339]); +},2608,[3,16,568,18,1807,438,179,803,2222]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -378719,7 +365165,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e height: 50 } }); -},2618,[18,438]); +},2609,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -378734,7 +365180,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2619,[2469]); +},2610,[2352]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -378749,7 +365195,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2620,[2621]); +},2611,[2612]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -378786,7 +365232,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_react.default.Component); -},2621,[3,6,7,11,13,14,16]); +},2612,[3,6,7,11,13,14,16]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -378801,7 +365247,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2622,[2623]); +},2613,[2614]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -378981,7 +365427,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onItemPress: _propTypes.default.func.isRequired, drawerHeader: _propTypes.default.node }; -},2623,[3,33,16,568,18,2624,436,2165,550,179,2330,803,438,1303]); +},2614,[3,33,16,568,18,2615,436,2048,550,179,2213,803,438,1210]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -379196,7 +365642,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DrawerLabelComponent; -},2624,[3,4,16,18,568,2164,2625,2626,2627,2628,438,2159,803,179]); +},2615,[3,4,16,18,568,2047,2616,2617,2618,2619,438,2042,803,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -379258,7 +365704,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DrawerLabelChevronComponent; -},2625,[3,16,568,1918,2339,179,803,438]); +},2616,[3,16,568,1807,2222,179,803,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -379334,7 +365780,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DrawerLabelIconComponent; -},2626,[3,568,16,18,2090,2159,803,179,438]); +},2617,[3,568,16,18,1974,2042,803,179,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -379429,7 +365875,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DrawerLabelTextComponent; -},2627,[3,33,16,568,436,800,2083,550,179,803]); +},2618,[3,33,16,568,436,800,1967,550,179,803]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -379446,439 +365892,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e alignItems: "center" } }); -},2628,[18]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = VerticalJobNavigator; - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var Header = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2])); - - var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3])); - - var _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - 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); } - - 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; } - - var Stack = _NavigationService.default.navigator.createStack(); - - var Tab = _NavigationService.default.navigator.createBottomTab(); - - function VerticalTabNavigator(props) { - return (0, _$$_REQUIRE(_dependencyMap[5]).jsxs)(Tab.Navigator, { - screenOptions: function screenOptions(_ref) { - var route = _ref.route; - return { - headerShown: false, - tabBarShowLabel: false, - swipeEnabled: false, - tabBarStyle: { - backgroundColor: _$$_REQUIRE(_dependencyMap[6]).colors.white - }, - tabBarIcon: function tabBarIcon(_ref2) { - var focused = _ref2.focused; - var routeName = route.name; - var iconName; - - if (routeName === "VerticalFiltersScreen") { - iconName = "filter"; - } else if (routeName === "VerticalSavedSearchScreen") { - iconName = "search"; - } else if (routeName === "VerticalFavoritesScreen") { - var favoritesConfig = global.getRssFavoritesConfig(); - iconName = favoritesConfig.getIcon(); - } else if (routeName === "VerticalListScreen") { - iconName = "list-ul"; - } - - return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_iconComponent.default, { - type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, - name: iconName, - size: 25, - color: (0, _$$_REQUIRE(_dependencyMap[7]).getJobColor)() - }); - } - }; - }, - children: [(0, _$$_REQUIRE(_dependencyMap[5]).jsx)(Tab.Screen, { - name: "VerticalFiltersScreen", - component: _$$_REQUIRE(_dependencyMap[8]).JobFilterScreen - }), (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(Tab.Screen, { - name: "VerticalSavedSearchScreen", - component: _$$_REQUIRE(_dependencyMap[9]).JobSearchScreen - }), (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(Tab.Screen, { - name: "VerticalFavoritesScreen", - component: _$$_REQUIRE(_dependencyMap[10]).JobFavoritesScreen - }), (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(Tab.Screen, { - name: "VerticalListScreen", - component: _$$_REQUIRE(_dependencyMap[11]).JobListScreen - })] - }); - } - - function VerticalJobNavigator() { - return (0, _$$_REQUIRE(_dependencyMap[5]).jsxs)(Stack.Navigator, { - screenOptions: _NavigationService.default.getStackScreenOptions(), - initialRouteName: "VerticalTabNavigator", - children: [(0, _$$_REQUIRE(_dependencyMap[5]).jsx)(Stack.Screen, { - name: "VerticalTabNavigator", - component: VerticalTabNavigator, - options: function options(props) { - return { - header: function header() { - return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_$$_REQUIRE(_dependencyMap[12]).ActionBar, { - considerSafeAreaTop: true, - left: Header._getHeaderLeftButtonsBackButtonOnly(props.navigation, (0, _$$_REQUIRE(_dependencyMap[7]).getJobColor)()), - center: Header._getLogo((0, _$$_REQUIRE(_dependencyMap[13]).getNavigationParams)(props).logoUrl || (0, _$$_REQUIRE(_dependencyMap[7]).getJobLogo)(), _$$_REQUIRE(_dependencyMap[14])) - }); - }, - gesturesEnabled: false, - backBehavior: "initialRoute" - }; - } - }), (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(Stack.Screen, { - name: "VerticalDetailScreen", - component: _$$_REQUIRE(_dependencyMap[15]).JobDetailScreen, - options: function options(props) { - return { - header: function header() { - return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_$$_REQUIRE(_dependencyMap[12]).ActionBar, { - considerSafeAreaTop: true, - left: Header._getHeaderLeftButtonsBackButtonOnly(props.navigation, (0, _$$_REQUIRE(_dependencyMap[7]).getJobColor)()), - center: Header._getLogo((0, _$$_REQUIRE(_dependencyMap[13]).getNavigationParams)(props).logoUrl || (0, _$$_REQUIRE(_dependencyMap[7]).getJobLogo)(), _$$_REQUIRE(_dependencyMap[14])) - }); - }, - gesturesEnabled: false - }; - } - })] - }); - } -},2629,[3,16,2630,1918,1999,179,438,2632,2633,2659,2665,2672,2336,2331,2684,2685]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports._getHeader = _getHeader; - exports._getHeaderLeftButtonsBackButtonOnly = _getHeaderLeftButtonsBackButtonOnly; - exports._getHeaderRightButton = _getHeaderRightButton; - exports._getLogo = _getLogo; - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2]); - - var _imageComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4])); - - var _buttonComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - 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); } - - 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; } - - function _getLogo(url, requireDefaultObj) { - return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_imageComponent.default, { - resizeMode: "contain", - style: _$$_REQUIRE(_dependencyMap[8]).styles.headerLogo, - source: url ? { - uri: url - } : requireDefaultObj - }); - } - - function _getHeaderLeftButtonsBackButtonOnly(navigation, color) { - var buttonStyle = [_$$_REQUIRE(_dependencyMap[8]).styles.button]; - var iconStyle = [_$$_REQUIRE(_dependencyMap[8]).styles.icon, { - color: color - }]; - - if (_$$_REQUIRE(_dependencyMap[9]).PlatformUtils.isiPhone()) { - buttonStyle.push(_$$_REQUIRE(_dependencyMap[8]).styles.buttonIphone); - iconStyle.push(_$$_REQUIRE(_dependencyMap[8]).styles.iconIphone); - } - - return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[8]).styles.container, - children: (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_buttonComponent.default, { - style: buttonStyle, - onPress: function onPress() { - navigation.goBack(null); - }, - children: (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_iconComponent.default, { - name: _$$_REQUIRE(_dependencyMap[9]).PlatformUtils.isRTL() ? "arrow-forward" : "arrow-back", - style: iconStyle, - type: _iconComponent.TecnaviaIconType.MATERIAL_ICONS - }) - }) - }); - } - - function _getHeaderRightButton(navigation, color, iconName, text, callback) { - var iconStyle = [_$$_REQUIRE(_dependencyMap[8]).styles.icon, { - color: color - }]; - - if (_$$_REQUIRE(_dependencyMap[9]).PlatformUtils.isiPhone()) { - iconStyle.push(_$$_REQUIRE(_dependencyMap[8]).styles.iconIphone); - } - - return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_reactNative.View, { - style: [_$$_REQUIRE(_dependencyMap[8]).styles.container], - children: (0, _$$_REQUIRE(_dependencyMap[7]).jsxs)(_buttonComponent.default, { - style: _$$_REQUIRE(_dependencyMap[8]).styles.rightButton, - onPress: callback, - children: [(0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_fontText.default, { - style: { - color: color - }, - children: text - }), (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_iconComponent.default, { - name: iconName, - style: iconStyle, - type: _iconComponent.TecnaviaIconType.MATERIAL_ICONS - })] - }) - }); - } - - function _getHeader(title, subtitle, callback, imageUrl) { - return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_reactNative.TouchableOpacity, { - onPress: callback, - children: (0, _$$_REQUIRE(_dependencyMap[7]).jsxs)(_reactNative.View, { - style: { - display: "flex", - flexDirection: "column", - alignItems: "center" - }, - children: [(0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[8]).styles.titleText, - type: "medium", - children: title - }), (0, _$$_REQUIRE(_dependencyMap[7]).jsxs)(_reactNative.View, { - style: { - display: "flex", - flexDirection: "row", - alignItems: "flex-end" - }, - children: [(0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[8]).styles.subtitleText, - children: subtitle - }), (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_reactNative.Image, { - style: _$$_REQUIRE(_dependencyMap[8]).styles.image, - source: { - uri: imageUrl - } - })] - })] - }) - }); - } -},2630,[3,16,18,574,1918,2339,800,179,2631,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.styles = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var styles = exports.styles = _reactNative.StyleSheet.create({ - headerTitle: { - position: "absolute", - top: 0, - start: 0, - bottom: 0, - end: 0, - resizeMode: "center", - width: null, - height: null - }, - headerLogo: { - position: "absolute", - top: 0, - start: 0, - bottom: 0, - end: 0, - width: null, - height: null, - marginHorizontal: 25, - marginVertical: 5 - }, - container: { - flexWrap: "wrap", - alignItems: "flex-start", - flexDirection: "row" - }, - icon: { - fontSize: 24, - marginEnd: 0, - marginLeft: 0, - marginStart: 0, - marginRight: 0 - }, - iconIphone: { - fontSize: 16 - }, - button: { - backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white, - alignItems: "center", - justifyContent: "center", - width: 40, - height: 40, - borderRadius: 40, - marginEnd: 5, - marginStart: 5 - }, - buttonIphone: { - width: 30, - height: 30 - }, - rightButton: { - backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white, - alignItems: "center", - justifyContent: "center", - borderRadius: 40, - marginEnd: 10, - marginStart: 10, - flexDirection: "row" - }, - titleText: { - fontSize: 17 - }, - subtitleText: { - fontSize: 8, - fontStyle: "italic" - }, - image: { - width: 39, - height: 14 - } - }); -},2631,[18,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.getNewEventUrl = exports.getJobUrlPageById = exports.getJobTypes = exports.getJobType = exports.getJobLogo = exports.getJobDurations = exports.getJobDuration = exports.getJobColor = exports.getJobBackground = exports.getFeaturedEventApi = exports.getEventSchedule = exports.getEventColor = exports.getEventCategories = exports.getEventById = exports.getEventBackground = exports.getEventApi = exports.getCitySparkUrl = exports.getCitySparkLogo = undefined; - - var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var getJobUrlPageById = exports.getJobUrlPageById = function getJobUrlPageById(id) { - return "http://jobview.local-jobs.monster.com/Job-US-" + id + ".aspx"; - }; - - var getJobColor = exports.getJobColor = function getJobColor() { - return _$$_REQUIRE(_dependencyMap[2]).colors.md_purple_800; - }; - - var getEventApi = exports.getEventApi = function getEventApi() { - return "https://api.cityspark.com/v1/events"; - }; - - var getFeaturedEventApi = exports.getFeaturedEventApi = function getFeaturedEventApi() { - return "https://api.cityspark.com/v1/Promotions/Flat"; - }; - - var getEventCategories = exports.getEventCategories = function getEventCategories() { - return "https://api.cityspark.com/v1/categories"; - }; - - var getEventById = exports.getEventById = function getEventById(id) { - return "https://api.cityspark.com/v1/event/" + id; - }; - - var getEventColor = exports.getEventColor = function getEventColor() { - return _$$_REQUIRE(_dependencyMap[2]).colors.md_blue_800; - }; - - var getNewEventUrl = exports.getNewEventUrl = function getNewEventUrl() { - return "https://portal.cityspark.com/EventEntry/EventEntry/joplinglobe"; - }; - - var getCitySparkUrl = exports.getCitySparkUrl = function getCitySparkUrl() { - return "https://www.cityspark.com"; - }; - - var getCitySparkLogo = exports.getCitySparkLogo = function getCitySparkLogo() { - return "https://www.cityspark.com/wp-content/uploads/2019/05/citysparklogoSmall.png"; - }; - - var getJobLogo = exports.getJobLogo = function getJobLogo() { - return _Api.default.baseUrl() + "?pSetup=" + global.getActivePSetup().pSetup + "&action=jobs&view=logo"; - }; - - var getJobBackground = exports.getJobBackground = function getJobBackground() { - return "https://media.newjobs.com/homepage/images/hero-img/bg_purple_7.jpg"; - }; - - var getEventBackground = exports.getEventBackground = function getEventBackground() { - return "https://cdn.pixabay.com/photo/2016/03/28/09/52/firework-1285264_960_720.jpg"; - }; - - var getJobDurations = exports.getJobDurations = function getJobDurations() { - return [{ - text: "All" - }, { - text: "Full Time", - value: "FULLTIME" - }, { - text: "Part Time", - value: "PARTTIME" - }]; - }; - - var getJobTypes = exports.getJobTypes = function getJobTypes() { - return [{ - text: "All" - }, { - text: "Permanent", - value: "1" - }, { - text: "Temporary", - value: "2" - }, { - text: "Internship", - value: "3" - }]; - }; - - var getEventSchedule = exports.getEventSchedule = function getEventSchedule() { - return [{ - text: "This week" - }, { - text: "Next week" - }, { - text: "This weekend" - }, { - text: "Today" - }, { - text: "Tomorrow" - }, { - text: "Custom Date Range" - }]; - }; - - var getJobDuration = exports.getJobDuration = function getJobDuration(value) { - return getJobDurations().find(function (duration) { - return duration.value === value; - }).text; - }; - - var getJobType = exports.getJobType = function getJobType(value) { - return getJobTypes().find(function (type) { - return type.value === value; - }).text; - }; -},2632,[3,407,438]); +},2619,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -379893,10212 +365907,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2633,[2634]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.JobFilterScreen = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _datepickerComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var JobFilterScreen = exports.JobFilterScreen = function (_NavigationBaseScreen) { - function JobFilterScreen() { - (0, _classCallCheck2.default)(this, JobFilterScreen); - return _callSuper(this, JobFilterScreen, arguments); - } - - (0, _inherits2.default)(JobFilterScreen, _NavigationBaseScreen); - return (0, _createClass2.default)(JobFilterScreen, [{ - key: "handleBackButton", - value: function handleBackButton() { - var navigation = this.props.navigation; - navigation.goBack(null); - return (0, _get2.default)((0, _getPrototypeOf2.default)(JobFilterScreen.prototype), "handleBackButton", this).call(this); - } - }, { - key: "getFilterValue", - value: function getFilterValue(filter, defaultValue) { - var value = defaultValue; - - if (filter) { - if (filter.getValue()) { - value = filter.getValue(); - } - } - - return value; - } - }, { - key: "getTag", - value: function getTag() { - return "Job Filter"; - } - }, { - key: "render", - value: function render() { - var _this = this; - - return (0, _$$_REQUIRE(_dependencyMap[9]).jsxs)(_$$_REQUIRE(_dependencyMap[10]).FilterParent, { - backgroundUrl: (0, _$$_REQUIRE(_dependencyMap[11]).getJobBackground)(), - color: (0, _$$_REQUIRE(_dependencyMap[11]).getJobColor)(), - onSearch: function onSearch() { - var navigation = _this.props.navigation; - - var _this$getFilterValue = _this.getFilterValue(_this.filterLocation, {}), - state = _this$getFilterValue.state, - city = _this$getFilterValue.city, - input = _this$getFilterValue.input, - zip = _this$getFilterValue.zip; - - var term = _this.getFilterValue(_this.filterText, ""); - - var dayPublished = _$$_REQUIRE(_dependencyMap[12]).DateUtils.getDaysFromDateToToday(_this.getFilterValue(_this.filterDate, "")); - - var type = _this.getFilterValue(_this.filterType, ""); - - var status = _this.getFilterValue(_this.filterDuration, ""); - - var _this$getFilterValue2 = _this.getFilterValue(_this.filterSalary, {}), - min = _this$getFilterValue2.min, - max = _this$getFilterValue2.max, - error = _this$getFilterValue2.error; - - if (error) { - return [error]; - } - - navigation.navigate("VerticalListScreen", { - filters: Object.assign({ - action: "jobs", - view: "filtered", - day_published: dayPublished, - salary_min: min, - salary_max: max, - job_type: type, - job_status: status, - city: city || input, - term: term - }, state ? { - state: state - } : {}, zip ? { - zip: zip - } : {}) - }); - return []; - }, - advanceFilters: [(0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[13]).FilterRadioButton, { - ref: function ref(_ref) { - _this.filterDuration = _ref; - }, - bgColor: (0, _$$_REQUIRE(_dependencyMap[11]).getJobColor)(), - textColor: _$$_REQUIRE(_dependencyMap[12]).colors.white, - buttons: (0, _$$_REQUIRE(_dependencyMap[11]).getJobDurations)(), - active: "All" - }, "filter_duration"), (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[13]).FilterRadioButton, { - ref: function ref(_ref2) { - _this.filterType = _ref2; - }, - bgColor: (0, _$$_REQUIRE(_dependencyMap[11]).getJobColor)(), - textColor: _$$_REQUIRE(_dependencyMap[12]).colors.white, - buttons: (0, _$$_REQUIRE(_dependencyMap[11]).getJobTypes)(), - active: "All" - }, "filter_type"), (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[14]).FilterMinMax, { - ref: function ref(_ref3) { - _this.filterSalary = _ref3; - }, - borderColor: (0, _$$_REQUIRE(_dependencyMap[11]).getJobColor)(), - hintMin: global.strings("min_salary"), - hintMax: global.strings("max_salary") - }, "filter_salary"), (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_datepickerComponent.default, { - startEmpty: true, - maxDate: new Date(), - style: [_$$_REQUIRE(_dependencyMap[15]).styles.datePicker, { - borderColor: (0, _$$_REQUIRE(_dependencyMap[11]).getJobColor)() - }], - ref: function ref(_ref4) { - _this.filterDate = _ref4; - }, - borderColor: (0, _$$_REQUIRE(_dependencyMap[11]).getJobColor)(), - hint: global.strings("str_published_after_date"), - locale: global.getLocaleConfig().getCurrentLocale() - }, "filter_date")], - children: [(0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[16]).FilterText, { - style: _$$_REQUIRE(_dependencyMap[15]).styles.filter, - borderColor: (0, _$$_REQUIRE(_dependencyMap[11]).getJobColor)(), - hint: global.strings("vertical_job_text_hint"), - ref: function ref(_ref5) { - _this.filterText = _ref5; - } - }, "filter_text"), (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[17]).FilterLocation, { - style: _$$_REQUIRE(_dependencyMap[15]).styles.filter, - hint: global.strings("vertical_job_location_hint"), - borderColor: (0, _$$_REQUIRE(_dependencyMap[11]).getJobColor)(), - textColor: _$$_REQUIRE(_dependencyMap[12]).colors.white, - ref: function ref(_ref6) { - _this.filterLocation = _ref6; - } - }, "filter_location")] - }); - } - }]); - }(_$$_REQUIRE(_dependencyMap[18]).NavigationBaseScreen); -},2634,[3,6,7,11,85,13,14,16,2604,179,2635,2632,438,2647,2650,2653,2654,2656,2331]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2635,[2636]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.FilterParent = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[8]); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var FilterParent = exports.FilterParent = function (_React$Component) { - function FilterParent(props) { - var _this; - - (0, _classCallCheck2.default)(this, FilterParent); - _this = _callSuper(this, FilterParent, [props]); - _this.state = { - errors: [] - }; - return _this; - } - - (0, _inherits2.default)(FilterParent, _React$Component); - return (0, _createClass2.default)(FilterParent, [{ - key: "render", - value: function render() { - var _this2 = this; - - var _this$props = this.props, - backgroundUrl = _this$props.backgroundUrl, - children = _this$props.children, - color = _this$props.color, - onSearch = _this$props.onSearch, - advanceFilters = _this$props.advanceFilters, - backGroundResizeMode = _this$props.backGroundResizeMode, - buttons = _this$props.buttons; - var errors = this.state.errors; - return (0, _$$_REQUIRE(_dependencyMap[9]).jsxs)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[10]).styles.parent, - children: [(0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_reactNative.ImageBackground, { - source: { - uri: backgroundUrl - }, - style: _$$_REQUIRE(_dependencyMap[10]).styles.background, - resizeMode: backGroundResizeMode || "cover", - children: (0, _$$_REQUIRE(_dependencyMap[9]).jsxs)(_$$_REQUIRE(_dependencyMap[11]).TecnaviaScrollView, { - width: "100%", - horizontal: false, - centerContent: true, - children: [children, advanceFilters.length ? (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[12]).FilterAccordion, { - textColor: _$$_REQUIRE(_dependencyMap[13]).colors.white, - headerColor: color, - borderColor: color, - style: _$$_REQUIRE(_dependencyMap[10]).styles.filter, - children: advanceFilters - }) : null, (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[14]).FilterSearch, { - style: _$$_REQUIRE(_dependencyMap[10]).styles.filterButton, - backgroundColor: _$$_REQUIRE(_dependencyMap[13]).colors.white, - textColor: color, - borderColor: color, - onPress: function onPress() { - var newErrors = onSearch(); - - if (newErrors && newErrors.length) { - _this2.setState({ - errors: newErrors - }); - } - } - }), buttons.map(function (_ref, index) { - var label = _ref.label, - onPress = _ref.onPress; - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[14]).FilterSearch, { - text: label, - style: _$$_REQUIRE(_dependencyMap[10]).styles.filterButton, - backgroundColor: color, - onPress: onPress - }, index); - })] - }) - }), (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[15]).Error, { - style: { - position: "absolute", - bottom: 0, - start: 0, - end: 0 - }, - errors: errors - })] - }); - } - }]); - }(_react.default.Component); - - FilterParent.propTypes = { - children: _propTypes.default.array.isRequired, - backgroundUrl: _propTypes.default.string, - color: _propTypes.default.string.isRequired, - onSearch: _propTypes.default.func.isRequired, - advanceFilters: _propTypes.default.arrayOf(_propTypes.default.node), - backGroundResizeMode: _propTypes.default.string, - buttons: _propTypes.default.arrayOf(_propTypes.default.shape({ - label: _propTypes.default.string.isRequired, - onPress: _propTypes.default.func.isRequired - })) - }; - FilterParent.defaultProps = { - advanceFilters: [], - buttons: [] - }; -},2636,[3,6,7,11,13,14,16,568,18,179,2637,2048,2638,438,2645,2288]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.styles = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var styles = exports.styles = _reactNative.StyleSheet.create({ - parent: { - flex: 1, - justifyContent: "center", - alignItems: "center" - }, - background: { - width: "100%", - flex: 1, - flexDirection: "column", - justifyContent: "center", - alignItems: "center" - }, - filterViews: { - width: "100%", - flexDirection: "column", - justifyContent: "center", - alignItems: "center" - }, - filter: { - width: "100%" - }, - searchButton: { - borderWidth: 1, - borderColor: (0, _$$_REQUIRE(_dependencyMap[1]).getEventColor)() - } - }); -},2637,[18,2632]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2638,[2639]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.FilterAccordion = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[7]); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9])); - - var _accordionComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - 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); } - - 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; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var FilterAccordion = exports.FilterAccordion = function (_React$Component) { - function FilterAccordion(props) { - var _this; - - (0, _classCallCheck2.default)(this, FilterAccordion); - _this = _callSuper(this, FilterAccordion, [props]); - - var _global$getRssIndex = global.getRssIndex(), - supportColor = _global$getRssIndex.supportColor; - - _this.borderColor = props.borderColor || supportColor; - return _this; - } - - (0, _inherits2.default)(FilterAccordion, _React$Component); - return (0, _createClass2.default)(FilterAccordion, [{ - key: "_renderHeader", - value: function _renderHeader(item, index, expanded) { - var _this$props = this.props, - textColor = _this$props.textColor, - headerColor = _this$props.headerColor; - return (0, _$$_REQUIRE(_dependencyMap[11]).jsxs)(_reactNative.View, { - style: [_$$_REQUIRE(_dependencyMap[12]).styles.header, { - backgroundColor: headerColor, - borderColor: this.borderColor - }], - children: [(0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.Text, { - style: [_$$_REQUIRE(_dependencyMap[12]).styles.headerText, { - color: textColor - }], - children: item.title - }), expanded ? (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_iconComponent.default, { - style: { - fontSize: 18, - color: textColor - }, - name: "remove", - type: _iconComponent.TecnaviaIconType.MATERIAL_ICONS - }) : (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_iconComponent.default, { - style: { - fontSize: 18, - color: textColor - }, - name: "add", - type: _iconComponent.TecnaviaIconType.MATERIAL_ICONS - })] - }); - } - }, { - key: "_renderContent", - value: function _renderContent() { - var _this$props2 = this.props, - children = _this$props2.children, - contentStyle = _this$props2.contentStyle; - return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.View, { - style: [_$$_REQUIRE(_dependencyMap[12]).styles.content, { - backgroundColor: _$$_REQUIRE(_dependencyMap[13]).colors.transparent - }, contentStyle], - children: children - }); - } - }, { - key: "render", - value: function render() { - var style = this.props.style; - return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_accordionComponent.default, { - style: style, - sections: [{ - title: global.strings("btn_advance_filters") - }], - renderHeader: this._renderHeader.bind(this), - renderContent: this._renderContent.bind(this) - }); - } - }]); - }(_react.default.Component); - - FilterAccordion.propTypes = { - textColor: _propTypes.default.string, - headerColor: _propTypes.default.string, - borderColor: _propTypes.default.string, - style: _propTypes.default.object, - children: _propTypes.default.array, - contentStyle: _propTypes.default.object - }; - FilterAccordion.defaultProps = { - textColor: _$$_REQUIRE(_dependencyMap[13]).colors.white, - headerColor: _$$_REQUIRE(_dependencyMap[13]).colors.black, - borderColor: _$$_REQUIRE(_dependencyMap[13]).colors.black - }; -},2639,[3,6,7,11,13,14,16,18,568,1918,2640,179,2643,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = TecnaviaAccordion; - - var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _Accordion = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - function TecnaviaAccordion(props) { - var _React$useState = _react.default.useState([]), - _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2), - activeSections = _React$useState2[0], - setActiveSections = _React$useState2[1]; - - return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_Accordion.default, Object.assign({ - underlayColor: _$$_REQUIRE(_dependencyMap[6]).colors.transparent - }, props, { - activeSections: activeSections, - onChange: function onChange() { - var active = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - return setActiveSections((0, _toConsumableArray2.default)(active)); - } - })); - } -},2640,[3,22,33,16,2641,179,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[9]); - - var _Collapsible = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _excluded = ["activeSections", "expandMultiple", "onChange", "containerStyle", "sectionContainerStyle", "expandFromBottom", "sections", "underlayColor", "touchableProps", "touchableComponent", "onAnimationEnd", "renderContent", "renderHeader", "renderFooter", "renderSectionTitle", "disabled", "renderAsFlatList", "keyExtractor"]; - - 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); } - - 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; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var COLLAPSIBLE_PROPS = ['align', 'collapsed', 'collapsedHeight', 'renderChildrenCollapsed', 'enablePointerEvents', 'duration', 'easing', 'style', 'onAnimationEnd']; - - var Accordion = exports.default = function (_Component) { - function Accordion() { - var _this; - - (0, _classCallCheck2.default)(this, Accordion); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _callSuper(this, Accordion, [].concat(args)); - - _this._renderContainer = function (section, key, renderCollapsible) { - var _this$props = _this.props, - activeSections = _this$props.activeSections, - sectionContainerStyle = _this$props.sectionContainerStyle, - expandFromBottom = _this$props.expandFromBottom, - sections = _this$props.sections, - underlayColor = _this$props.underlayColor, - touchableProps = _this$props.touchableProps, - Touchable = _this$props.touchableComponent, - renderHeader = _this$props.renderHeader, - renderFooter = _this$props.renderFooter, - renderSectionTitle = _this$props.renderSectionTitle; - return (0, _$$_REQUIRE(_dependencyMap[11]).jsxs)(_reactNative.View, { - style: sectionContainerStyle, - children: [renderSectionTitle(section, key, activeSections.includes(key)), expandFromBottom && renderCollapsible(section, key), (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(Touchable, Object.assign({ - onPress: function onPress() { - return _this._toggleSection(key); - }, - underlayColor: underlayColor - }, touchableProps, { - accessibilityState: { - expanded: activeSections.includes(key) - }, - children: renderHeader(section, key, activeSections.includes(key), sections) - })), !expandFromBottom && renderCollapsible(section, key), renderFooter && renderFooter(section, key, activeSections.includes(key), sections)] - }, key); - }; - - return _this; - } - - (0, _inherits2.default)(Accordion, _Component); - return (0, _createClass2.default)(Accordion, [{ - key: "_toggleSection", - value: function _toggleSection(section) { - if (!this.props.disabled) { - var _this$props2 = this.props, - activeSections = _this$props2.activeSections, - expandMultiple = _this$props2.expandMultiple, - onChange = _this$props2.onChange; - var updatedSections = []; - - if (activeSections.includes(section)) { - updatedSections = activeSections.filter(function (a) { - return a !== section; - }); - } else if (expandMultiple) { - updatedSections = [].concat((0, _toConsumableArray2.default)(activeSections), [section]); - } else { - updatedSections = [section]; - } - - if (onChange) { - onChange(updatedSections); - } - } - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props3 = this.props, - activeSections = _this$props3.activeSections, - expandMultiple = _this$props3.expandMultiple, - onChange = _this$props3.onChange, - containerStyle = _this$props3.containerStyle, - sectionContainerStyle = _this$props3.sectionContainerStyle, - expandFromBottom = _this$props3.expandFromBottom, - sections = _this$props3.sections, - underlayColor = _this$props3.underlayColor, - touchableProps = _this$props3.touchableProps, - Touchable = _this$props3.touchableComponent, - _onAnimationEnd = _this$props3.onAnimationEnd, - renderContent = _this$props3.renderContent, - renderHeader = _this$props3.renderHeader, - renderFooter = _this$props3.renderFooter, - renderSectionTitle = _this$props3.renderSectionTitle, - disabled = _this$props3.disabled, - renderAsFlatList = _this$props3.renderAsFlatList, - keyExtractor = _this$props3.keyExtractor, - restProps = (0, _objectWithoutProperties2.default)(_this$props3, _excluded); - var viewProps = {}; - var collapsibleProps = {}; - Object.keys(restProps).forEach(function (key) { - if (COLLAPSIBLE_PROPS.includes(key)) { - collapsibleProps[key] = restProps[key]; - } else { - viewProps[key] = restProps[key]; - } - }); - - var renderCollapsible = function renderCollapsible(section, key) { - return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_Collapsible.default, Object.assign({ - collapsed: !activeSections.includes(key) - }, collapsibleProps, { - onAnimationEnd: function onAnimationEnd() { - return _onAnimationEnd(section, key); - }, - children: renderContent(section, key, activeSections.includes(key), sections) - })); - }; - - if (renderAsFlatList) { - return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.FlatList, Object.assign({ - style: containerStyle, - data: sections, - extraData: activeSections, - nestedScrollEnabled: true, - keyExtractor: keyExtractor, - renderItem: function renderItem(_ref) { - var item = _ref.item, - index = _ref.index; - var section = item; - var key = keyExtractor(item, index); - return _this2._renderContainer(section, key, renderCollapsible); - } - }, viewProps)); - } - - return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.View, Object.assign({ - style: containerStyle - }, viewProps, { - children: sections.map(function (section, index) { - var key = keyExtractor(section, index); - return _this2._renderContainer(section, key, renderCollapsible); - }) - })); - } - }]); - }(_react.Component); - - Accordion.defaultProps = { - underlayColor: 'black', - disabled: false, - expandFromBottom: false, - expandMultiple: false, - touchableComponent: _reactNative.TouchableHighlight, - keyExtractor: function keyExtractor(item, index) { - return index; - }, - renderSectionTitle: function renderSectionTitle() { - return null; - }, - onAnimationEnd: function onAnimationEnd() { - return null; - }, - sectionContainerStyle: {}, - renderAsFlatList: false - }; -},2641,[3,4,22,6,7,11,13,14,16,18,2642,179]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[7]); - - 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); } - - 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; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var ANIMATED_EASING_PREFIXES = ['easeInOut', 'easeOut', 'easeIn']; - - var Collapsible = exports.default = function (_Component) { - function Collapsible(props) { - var _this; - - (0, _classCallCheck2.default)(this, Collapsible); - _this = _callSuper(this, Collapsible, [props]); - _this.contentHandle = null; - - _this._handleRef = function (ref) { - _this.contentHandle = ref; - }; - - _this._handleLayoutChange = function (event) { - var contentHeight = event.nativeEvent.layout.height; - - if (_this.state.animating || _this.props.collapsed || _this.state.measuring || _this.state.contentHeight === contentHeight) { - return; - } - - _this.state.height.setValue(contentHeight); - - _this.setState({ - contentHeight: contentHeight - }); - }; - - _this.state = { - measuring: false, - measured: false, - height: new _reactNative.Animated.Value(props.collapsedHeight), - contentHeight: 0, - animating: false - }; - return _this; - } - - (0, _inherits2.default)(Collapsible, _Component); - return (0, _createClass2.default)(Collapsible, [{ - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _this2 = this; - - if (prevProps.collapsed !== this.props.collapsed) { - this.setState({ - measured: false - }, function () { - return _this2._componentDidUpdate(prevProps); - }); - } else { - this._componentDidUpdate(prevProps); - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this.unmounted = true; - } - }, { - key: "_componentDidUpdate", - value: function _componentDidUpdate(prevProps) { - if (prevProps.collapsed !== this.props.collapsed) { - this._toggleCollapsed(this.props.collapsed); - } else if (this.props.collapsed && prevProps.collapsedHeight !== this.props.collapsedHeight) { - this.state.height.setValue(this.props.collapsedHeight); - } - } - }, { - key: "_measureContent", - value: function _measureContent(callback) { - var _this3 = this; - - this.setState({ - measuring: true - }, function () { - requestAnimationFrame(function () { - if (!_this3.contentHandle) { - _this3.setState({ - measuring: false - }, function () { - return callback(_this3.props.collapsedHeight); - }); - } else { - var ref; - - if (typeof _this3.contentHandle.measure === 'function') { - ref = _this3.contentHandle; - } else { - ref = _this3.contentHandle.getNode(); - } - - ref.measure(function (x, y, width, height) { - _this3.setState({ - measuring: false, - measured: true, - contentHeight: height - }, function () { - return callback(height); - }); - }); - } - }); - }); - } - }, { - key: "_toggleCollapsed", - value: function _toggleCollapsed(collapsed) { - var _this4 = this; - - if (collapsed) { - this._transitionToHeight(this.props.collapsedHeight); - } else if (!this.contentHandle) { - if (this.state.measured) { - this._transitionToHeight(this.state.contentHeight); - } - - return; - } else { - this._measureContent(function (contentHeight) { - _this4._transitionToHeight(contentHeight); - }); - } - } - }, { - key: "_transitionToHeight", - value: function _transitionToHeight(height) { - var _this5 = this; - - var duration = this.props.duration; - var easing = this.props.easing; - - if (typeof easing === 'string') { - var prefix; - var found = false; - - for (var i = 0; i < ANIMATED_EASING_PREFIXES.length; i++) { - prefix = ANIMATED_EASING_PREFIXES[i]; - - if (easing.substr(0, prefix.length) === prefix) { - easing = easing.substr(prefix.length, 1).toLowerCase() + easing.substr(prefix.length + 1); - prefix = prefix.substr(4, 1).toLowerCase() + prefix.substr(5); - easing = _reactNative.Easing[prefix](_reactNative.Easing[easing || 'ease']); - found = true; - break; - } - } - - if (!found) { - easing = _reactNative.Easing[easing]; - } - - if (!easing) { - throw new Error('Invalid easing type "' + this.props.easing + '"'); - } - } - - if (this._animation) { - this._animation.stop(); - } - - this.setState({ - animating: true - }); - this._animation = _reactNative.Animated.timing(this.state.height, { - useNativeDriver: false, - toValue: height ? height : 0, - duration: duration, - easing: easing - }).start(function () { - if (_this5.unmounted) { - return; - } - - _this5.setState({ - animating: false - }, function () { - if (_this5.unmounted) { - return; - } - - _this5.props.onAnimationEnd(); - }); - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - collapsed = _this$props.collapsed, - enablePointerEvents = _this$props.enablePointerEvents, - renderChildrenCollapsed = _this$props.renderChildrenCollapsed; - var _this$state = this.state, - height = _this$state.height, - contentHeight = _this$state.contentHeight, - measuring = _this$state.measuring, - measured = _this$state.measured, - animating = _this$state.animating; - var hasKnownHeight = !measuring && (measured || collapsed); - var style = { - overflow: 'hidden', - height: hasKnownHeight ? height : 0 - }; - var contentStyle = {}; - - if (measuring) { - contentStyle.position = 'absolute'; - contentStyle.opacity = 0; - } else if (this.props.align === 'center') { - contentStyle.transform = [{ - translateY: height.interpolate({ - inputRange: [0, contentHeight], - outputRange: [contentHeight / -2, 0] - }) - }]; - } else if (this.props.align === 'bottom') { - contentStyle.transform = [{ - translateY: height.interpolate({ - inputRange: [0, contentHeight], - outputRange: [-contentHeight, 0] - }) - }]; - } - - if (animating) { - contentStyle.height = contentHeight; - } - - var shouldRenderChildren = renderChildrenCollapsed || (!collapsed || collapsed && animating) && (animating || measuring || measured); - return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_reactNative.Animated.View, { - style: style, - pointerEvents: !enablePointerEvents && collapsed ? 'none' : 'auto', - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_reactNative.Animated.View, { - ref: this._handleRef, - style: [this.props.style, contentStyle], - onLayout: this.state.animating ? undefined : this._handleLayoutChange, - children: shouldRenderChildren && this.props.children - }) - }); - } - }]); - }(_react.Component); - - Collapsible.defaultProps = { - align: 'top', - collapsed: true, - collapsedHeight: 0, - enablePointerEvents: false, - duration: 300, - easing: 'easeOutCubic', - onAnimationEnd: function onAnimationEnd() { - return null; - }, - renderChildrenCollapsed: true - }; -},2642,[3,6,7,11,13,14,16,18,179]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.styles = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var styles = exports.styles = _reactNative.StyleSheet.create({ - header: { - height: _$$_REQUIRE(_dependencyMap[1]).filterStyles.LINE_HEIGHT, - margin: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, - borderWidth: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_WIDTH, - borderRadius: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_RADIUS, - flexDirection: "row", - justifyContent: "center", - alignItems: "center", - padding: _$$_REQUIRE(_dependencyMap[1]).filterStyles.TEXT_PADDING - }, - headerText: { - flex: 3 - }, - headerIcon: { - flex: 1 - }, - content: { - flexDirection: "column" - } - }); -},2643,[18,2644]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.filterStyles = undefined; - var filterStyles = exports.filterStyles = { - LINE_HEIGHT: 50, - TEXT_PADDING: 5, - MARGIN: 10, - BORDER_WIDTH: 2, - BORDER_RADIUS: 5, - SEARCH_WIDTH: 200 - }; -},2644,[]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.FilterSearch = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[7]); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var FilterSearch = exports.FilterSearch = function (_React$Component) { - function FilterSearch() { - (0, _classCallCheck2.default)(this, FilterSearch); - return _callSuper(this, FilterSearch, arguments); - } - - (0, _inherits2.default)(FilterSearch, _React$Component); - return (0, _createClass2.default)(FilterSearch, [{ - key: "render", - value: function render() { - var _this$props = this.props, - style = _this$props.style, - backgroundColor = _this$props.backgroundColor, - textColor = _this$props.textColor, - borderColor = _this$props.borderColor, - _onPress = _this$props.onPress; - var text = this.props.text; - text = text || global.strings("btn_search"); - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_reactNative.View, { - style: style, - children: (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_reactNative.TouchableOpacity, { - activeOpacity: 0.8, - onPress: function onPress() { - if (typeof _onPress === "function") { - _onPress(); - } - }, - style: [_$$_REQUIRE(_dependencyMap[10]).styles.touchable, { - backgroundColor: backgroundColor, - borderColor: borderColor, - borderWidth: borderColor ? 2 : 0 - }], - children: (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_reactNative.Text, { - style: [_$$_REQUIRE(_dependencyMap[10]).styles.text, { - color: textColor - }], - children: text - }) - }) - }); - } - }]); - }(_react.default.Component); - - FilterSearch.propTypes = { - style: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.number]), - backgroundColor: _propTypes.default.string, - textColor: _propTypes.default.string, - borderColor: _propTypes.default.string, - text: _propTypes.default.string, - onPress: _propTypes.default.func.isRequired - }; - FilterSearch.defaultProps = { - backgroundColor: _$$_REQUIRE(_dependencyMap[11]).colors.black, - textColor: _$$_REQUIRE(_dependencyMap[11]).colors.white - }; -},2645,[3,6,7,11,13,14,16,18,568,179,2646,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.styles = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var styles = exports.styles = _reactNative.StyleSheet.create({ - touchable: { - margin: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, - height: _$$_REQUIRE(_dependencyMap[1]).filterStyles.LINE_HEIGHT, - width: _$$_REQUIRE(_dependencyMap[1]).filterStyles.SEARCH_WIDTH, - borderRadius: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_RADIUS, - flexDirection: "column", - justifyContent: "center", - alignItems: "center", - alignSelf: "center" - }, - text: { - color: _$$_REQUIRE(_dependencyMap[2]).colors.white, - padding: _$$_REQUIRE(_dependencyMap[1]).filterStyles.TEXT_PADDING - } - }); -},2646,[18,2644,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2647,[2648]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.FilterRadioButton = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[7]); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var FilterRadioButton = exports.FilterRadioButton = function (_React$Component) { - function FilterRadioButton(props) { - var _this; - - (0, _classCallCheck2.default)(this, FilterRadioButton); - _this = _callSuper(this, FilterRadioButton, [props]); - _this.state = { - activeText: props.active - }; - return _this; - } - - (0, _inherits2.default)(FilterRadioButton, _React$Component); - return (0, _createClass2.default)(FilterRadioButton, [{ - key: "getValue", - value: function getValue() { - var buttons = this.props.buttons; - var activeText = this.state.activeText; - var result = buttons.find(function (_ref) { - var text = _ref.text; - return text === activeText; - }); - - if (result && result.value) { - return result.value; - } - - return ""; - } - }, { - key: "isActive", - value: function isActive(toCheck) { - var activeText = this.state.activeText; - return toCheck === activeText; - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props = this.props, - buttons = _this$props.buttons, - style = _this$props.style; - var _this$props2 = this.props, - bgColor = _this$props2.bgColor, - textColor = _this$props2.textColor; - - var _global$getRssIndex = global.getRssIndex(), - actionBarBackgroundColor = _global$getRssIndex.actionBarBackgroundColor, - supportColor = _global$getRssIndex.supportColor; - - bgColor = bgColor || supportColor; - textColor = textColor || actionBarBackgroundColor; - return buttons ? (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_reactNative.View, { - style: [style, _$$_REQUIRE(_dependencyMap[10]).styles.parent], - children: buttons.map(function (_ref2, index) { - var text = _ref2.text; - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_reactNative.TouchableOpacity, { - activeOpacity: 1, - onPress: function onPress() { - _this2.setState({ - activeText: text - }); - }, - style: [_$$_REQUIRE(_dependencyMap[10]).styles.button, { - borderColor: bgColor, - borderRightWidth: index === buttons.length - 1 ? _$$_REQUIRE(_dependencyMap[11]).filterStyles.BORDER_WIDTH : 0, - backgroundColor: _this2.isActive(text) ? bgColor : textColor, - borderTopLeftRadius: index === 0 ? _$$_REQUIRE(_dependencyMap[11]).filterStyles.BORDER_RADIUS : 0, - borderBottomLeftRadius: index === 0 ? _$$_REQUIRE(_dependencyMap[11]).filterStyles.BORDER_RADIUS : 0, - borderTopRightRadius: index === buttons.length - 1 ? _$$_REQUIRE(_dependencyMap[11]).filterStyles.BORDER_RADIUS : 0, - borderBottomRightRadius: index === buttons.length - 1 ? _$$_REQUIRE(_dependencyMap[11]).filterStyles.BORDER_RADIUS : 0 - }], - children: (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_reactNative.Text, { - style: { - color: _this2.isActive(text) ? textColor : bgColor, - textAlign: "center" - }, - children: text - }) - }, index); - }) - }) : null; - } - }]); - }(_react.default.Component); - - FilterRadioButton.propTypes = { - style: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.number]), - buttons: _propTypes.default.arrayOf(_propTypes.default.shape({ - text: _propTypes.default.string.isRequired, - value: _propTypes.default.string - })).isRequired, - bgColor: _propTypes.default.string, - textColor: _propTypes.default.string, - active: _propTypes.default.string.isRequired - }; -},2648,[3,6,7,11,13,14,16,18,568,179,2649,2644]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.styles = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var styles = exports.styles = _reactNative.StyleSheet.create({ - parent: { - flexDirection: "row", - margin: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN - }, - button: { - flex: 1, - justifyContent: "center", - height: _$$_REQUIRE(_dependencyMap[1]).filterStyles.LINE_HEIGHT, - borderWidth: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_WIDTH - } - }); -},2649,[18,2644]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2650,[2651]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.FilterMinMax = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[8]); - - var _fontTextInput = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var FilterMinMax = exports.FilterMinMax = function (_React$Component) { - function FilterMinMax(props) { - var _this; - - (0, _classCallCheck2.default)(this, FilterMinMax); - _this = _callSuper(this, FilterMinMax, [props]); - - var _global$getRssIndex = global.getRssIndex(), - supportColor = _global$getRssIndex.supportColor; - - _this.borderColor = props.borderColor || supportColor; - _this.state = { - min: "", - max: "" - }; - return _this; - } - - (0, _inherits2.default)(FilterMinMax, _React$Component); - return (0, _createClass2.default)(FilterMinMax, [{ - key: "getValue", - value: function getValue() { - var min = parseInt(this.state.min, 10); - var max = parseInt(this.state.max, 10); - - if (this.isFilterValid(min, max)) { - return { - min: min, - max: max - }; - } - - return { - error: global.strings("err_max_min") - }; - } - }, { - key: "isFilterValid", - value: function isFilterValid(min, max) { - return !min && !max || min || max || min < max; - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props = this.props, - hintMin = _this$props.hintMin, - hintMax = _this$props.hintMax; - var style = this.props.style; - hintMin = hintMin || global.strings("filter_min"); - hintMax = hintMax || global.strings("filter_max"); - var _this$state = this.state, - min = _this$state.min, - max = _this$state.max; - return (0, _$$_REQUIRE(_dependencyMap[10]).jsxs)(_reactNative.View, { - style: [style, _$$_REQUIRE(_dependencyMap[11]).styles.parent], - children: [(0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_fontTextInput.default, { - keyboardType: "numeric", - style: [_$$_REQUIRE(_dependencyMap[11]).styles.min, { - borderColor: this.borderColor - }], - underlineColorAndroid: this.borderColor, - onChangeText: function onChangeText(number) { - _this2.setState({ - min: number - }); - }, - value: min, - returnKeyType: "done", - placeholder: hintMin - }), (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_fontTextInput.default, { - keyboardType: "numeric", - style: [_$$_REQUIRE(_dependencyMap[11]).styles.max, { - borderColor: this.borderColor - }], - underlineColorAndroid: this.borderColor, - onChangeText: function onChangeText(number) { - _this2.setState({ - max: number - }); - }, - value: max, - returnKeyType: "done", - placeholder: hintMax - })] - }); - } - }]); - }(_react.default.Component); - - FilterMinMax.propTypes = { - style: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.number]), - borderColor: _propTypes.default.string, - hintMin: _propTypes.default.string, - hintMax: _propTypes.default.string - }; -},2651,[3,6,7,11,13,14,16,568,18,2350,179,2652]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.styles = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var styles = exports.styles = _reactNative.StyleSheet.create({ - parent: { - flexDirection: "row", - margin: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN - }, - min: { - backgroundColor: _$$_REQUIRE(_dependencyMap[2]).colors.white, - flex: 1, - height: _$$_REQUIRE(_dependencyMap[1]).filterStyles.LINE_HEIGHT, - marginEnd: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN / 2, - borderWidth: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_WIDTH, - borderRadius: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_RADIUS - }, - max: { - backgroundColor: _$$_REQUIRE(_dependencyMap[2]).colors.white, - flex: 1, - height: _$$_REQUIRE(_dependencyMap[1]).filterStyles.LINE_HEIGHT, - marginStart: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN / 2, - borderWidth: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_WIDTH, - borderRadius: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_RADIUS - } - }); -},2652,[18,2644,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.styles = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var styles = exports.styles = _reactNative.StyleSheet.create({ - parent: { - flex: 1, - justifyContent: "center", - alignItems: "center" - }, - background: { - width: "100%", - flex: 1, - flexDirection: "column", - justifyContent: "center", - alignItems: "center" - }, - filterViews: { - maxWidth: 500, - width: "100%", - flexDirection: "column", - justifyContent: "center", - alignItems: "center" - }, - filter: { - width: "100%" - }, - filterButton: {}, - text: { - color: _$$_REQUIRE(_dependencyMap[1]).colors.white, - padding: _$$_REQUIRE(_dependencyMap[2]).filterStyles.TEXT_PADDING - }, - datePicker: { - alignItems: "center", - justifyContent: "center", - borderColor: _$$_REQUIRE(_dependencyMap[1]).colors.black, - backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white, - height: _$$_REQUIRE(_dependencyMap[2]).filterStyles.LINE_HEIGHT, - margin: _$$_REQUIRE(_dependencyMap[2]).filterStyles.MARGIN, - borderWidth: _$$_REQUIRE(_dependencyMap[2]).filterStyles.BORDER_WIDTH, - borderRadius: _$$_REQUIRE(_dependencyMap[2]).filterStyles.BORDER_RADIUS - } - }); -},2653,[18,438,2644]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.FilterText = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[8]); - - var _fontTextInput = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var FilterText = exports.FilterText = function (_React$Component) { - function FilterText(props) { - var _this; - - (0, _classCallCheck2.default)(this, FilterText); - _this = _callSuper(this, FilterText, [props]); - - var _global$getRssIndex = global.getRssIndex(), - supportColor = _global$getRssIndex.supportColor; - - _this.borderColor = props.borderColor || supportColor; - _this.state = { - input: props.defaultSearch || "" - }; - return _this; - } - - (0, _inherits2.default)(FilterText, _React$Component); - return (0, _createClass2.default)(FilterText, [{ - key: "UNSAFE_componentWillReceiveProps", - value: function UNSAFE_componentWillReceiveProps(newProps) { - if (newProps.defaultSearch !== undefined) { - this.setState({ - input: newProps.defaultSearch - }); - } - } - }, { - key: "getValue", - value: function getValue() { - var input = this.state.input; - return input; - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var style = this.props.style; - var hint = this.props.hint; - hint = hint || global.strings("filter_text"); - var input = this.state.input; - return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.View, { - style: style, - children: (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_fontTextInput.default, { - style: [_$$_REQUIRE(_dependencyMap[11]).styles.text, { - borderColor: this.borderColor, - padding: 5, - color: _$$_REQUIRE(_dependencyMap[12]).colors.md_black_1000 - }], - underlineColorAndroid: this.borderColor, - onChangeText: function onChangeText(text) { - return _this2.setState({ - input: text - }); - }, - value: input, - returnKeyType: "done", - placeholder: hint, - placeholderTextColor: _$$_REQUIRE(_dependencyMap[12]).colors.grey - }) - }); - } - }]); - }(_react.default.Component); - - FilterText.propTypes = { - style: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.number]), - borderColor: _propTypes.default.string, - hint: _propTypes.default.string, - defaultSearch: _propTypes.default.string - }; -},2654,[3,6,7,11,13,14,16,568,18,2350,179,2655,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.styles = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var styles = exports.styles = _reactNative.StyleSheet.create({ - text: { - backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white, - height: _$$_REQUIRE(_dependencyMap[2]).filterStyles.LINE_HEIGHT, - margin: _$$_REQUIRE(_dependencyMap[2]).filterStyles.MARGIN, - borderWidth: _$$_REQUIRE(_dependencyMap[2]).filterStyles.BORDER_WIDTH, - borderRadius: _$$_REQUIRE(_dependencyMap[2]).filterStyles.BORDER_RADIUS - } - }); -},2655,[18,438,2644]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2656,[2657]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.FilterLocation = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[10]); - - var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - var _RssIndexConfig = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - - var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); - - var _locationPermission = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); - - var _modal = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); - - var _fontTextInput = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); - - var _excluded = ["lng"]; - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - function parseApiCitiesResult(result) { - if (result === undefined || typeof result === "string" || typeof result === "number") { - return []; - } - - var parsed; - - if (!Array.isArray(result)) { - parsed = [result]; - } else { - parsed = result; - } - - return parsed.map(function (item) { - var lng = item.lng, - rest = (0, _objectWithoutProperties2.default)(item, _excluded); - return Object.assign({}, rest, { - lon: lng - }); - }); - } - - function getCities(_x) { - return _getCities.apply(this, arguments); - } - - function _getCities() { - _getCities = (0, _asyncToGenerator2.default)(function* (input) { - try { - var result = (yield _Api.default.cities(input)).data; - return parseApiCitiesResult(result); - } catch (e) {} - - return []; - }); - return _getCities.apply(this, arguments); - } - - function getClosestCities() { - return _getClosestCities.apply(this, arguments); - } - - function _getClosestCities() { - _getClosestCities = (0, _asyncToGenerator2.default)(function* () { - var location = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - try { - var result = (yield _Api.default.closestCities(location)).data; - return parseApiCitiesResult(result); - } catch (e) {} - - return []; - }); - return _getClosestCities.apply(this, arguments); - } - - var FilterLocation = exports.FilterLocation = function (_React$Component) { - function FilterLocation(props) { - var _this; - - (0, _classCallCheck2.default)(this, FilterLocation); - _this = _callSuper(this, FilterLocation, [props]); - _this.state = { - input: "", - switchValue: props.useLocation || false, - data: [], - modal: false - }; - _this.toggleModal = _this._toggleModal.bind(_this); - _this.onTextChange = _this._onTextChange.bind(_this); - _this.onSelectItem = _this._onSelectItem.bind(_this); - _this.renderItem = _this._renderItem.bind(_this); - _this.onSwitchChange = _this._onSwitchChange.bind(_this); - _this.onLayout = _this._onLayout.bind(_this); - _this.onLocationChange = _this._onLocationChange.bind(_this); - - var _global$getRssIndex = global.getRssIndex(), - actionBarBackgroundColor = _global$getRssIndex.actionBarBackgroundColor, - supportColor = _global$getRssIndex.supportColor; - - _this.textColor = props.textColor || actionBarBackgroundColor; - _this.borderColor = props.borderColor || supportColor; - - _this._initDefaultLocation(props); - - if (props.useLocation) { - _this._manageLocation(props.useLocation); - } - - return _this; - } - - (0, _inherits2.default)(FilterLocation, _React$Component); - return (0, _createClass2.default)(FilterLocation, [{ - key: "componentDidMount", - value: function componentDidMount() { - this._initDefaultCity(); - } - }, { - key: "UNSAFE_componentWillReceiveProps", - value: function UNSAFE_componentWillReceiveProps(newProps) { - this._initDefaultLocation(newProps); - - this._initDefaultCity(); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this._unWatch(); - } - }, { - key: "getValue", - value: function getValue() { - var _this$state = this.state, - input = _this$state.input, - switchValue = _this$state.switchValue; - return { - input: input, - city: this.selected ? this.selected.city : "", - state: this.selected ? this.selected.state : "", - zip: this.selected ? this.selected.zip : "", - latitude: this.selected ? this.selected.lat : "", - longitude: this.selected ? this.selected.lon : "", - useLocation: switchValue - }; - } - }, { - key: "_initDefaultLocation", - value: function _initDefaultLocation() { - var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var _global$getRssIndex2 = global.getRssIndex(), - latitude = _global$getRssIndex2.latitude, - longitude = _global$getRssIndex2.longitude; - - if (props.latitude && props.longitude) { - latitude = props.latitude; - longitude = props.longitude; - } - - this.selected = { - lat: latitude, - lon: longitude - }; - } - }, { - key: "_initDefaultCity", - value: function () { - var _initDefaultCity2 = (0, _asyncToGenerator2.default)(function* () { - try { - if (this.selected) { - var item = (yield getClosestCities(this.selected))[0]; - - if (item !== undefined) { - this.selected = item; - - this._updateInput(item.city + ", " + item.state); - } - } - } catch (e) {} - }); - - function _initDefaultCity() { - return _initDefaultCity2.apply(this, arguments); - } - - return _initDefaultCity; - }() - }, { - key: "_manageLocation", - value: function () { - var _manageLocation2 = (0, _asyncToGenerator2.default)(function* (enable) { - if (enable) { - yield _locationPermission.default.ask(); - - if (this.geolocation === undefined) { - this.geolocation = new (_$$_REQUIRE(_dependencyMap[17]).LocationMgr)(); - } - - this.geolocation.watchPosition(this.onLocationChange); - } else { - this._unWatch(); - } - }); - - function _manageLocation(_x2) { - return _manageLocation2.apply(this, arguments); - } - - return _manageLocation; - }() - }, { - key: "_onLocationChange", - value: function () { - var _onLocationChange2 = (0, _asyncToGenerator2.default)(function* (_ref) { - var coords = _ref.coords; - - try { - var data = yield this._updateListByLocation(coords); - - if (data.length === 0) { - _$$_REQUIRE(_dependencyMap[18]).Toast.show(global.strings("msg_zip_not_found")); - - this._updateSwitch(false); - } else { - this.selected = data[0]; - this.setState({ - input: data[0].city + ", " + data[0].state - }); - } - } catch (e) { - this._updateSwitch(false); - } - }); - - function _onLocationChange(_x3) { - return _onLocationChange2.apply(this, arguments); - } - - return _onLocationChange; - }() - }, { - key: "_unWatch", - value: function _unWatch() { - if (this.geolocation && this.geolocation.isWatching()) { - this.geolocation.unWatch(); - } - } - }, { - key: "_updateSwitch", - value: function _updateSwitch(value) { - var onDisableSwitch = this.props.onDisableSwitch; - - if (!value) { - this._initDefaultLocation(this.props); - - this._initDefaultCity(); - - if (typeof onDisableSwitch === "function") { - onDisableSwitch(); - } - } - - this.setState({ - switchValue: value, - data: [] - }); - } - }, { - key: "_updateInput", - value: function _updateInput(text) { - this.setState({ - input: text, - switchValue: false, - data: [] - }); - - this._unWatch(); - } - }, { - key: "_updateListByLocation", - value: function () { - var _updateListByLocation2 = (0, _asyncToGenerator2.default)(function* (location) { - var _global$getRssIndex3 = global.getRssIndex(), - latitude = _global$getRssIndex3.latitude, - longitude = _global$getRssIndex3.longitude; - - var lon = location ? location.longitude : longitude; - var lat = location ? location.latitude : latitude; - return getClosestCities({ - lat: lat, - lon: lon - }); - }); - - function _updateListByLocation(_x4) { - return _updateListByLocation2.apply(this, arguments); - } - - return _updateListByLocation; - }() - }, { - key: "_filterData", - value: function () { - var _filterData2 = (0, _asyncToGenerator2.default)(function* (input) { - try { - var cities = yield getCities({ - wording: input - }); - this.setState({ - data: cities - }); - } catch (e) {} - }); - - function _filterData(_x5) { - return _filterData2.apply(this, arguments); - } - - return _filterData; - }() - }, { - key: "_toggleModal", - value: function _toggleModal() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; - this.setState({ - modal: state - }); - } - }, { - key: "_onTextChange", - value: function _onTextChange(text) { - this._updateInput(text); - - if (text.length > 2) { - this._filterData(text); - } - } - }, { - key: "_onSelectItem", - value: function _onSelectItem(item) { - var onSelect = this.props.onSelect; - this.selected = item; - - this._updateInput(item.city + ", " + item.state); - - if (onSelect) { - onSelect(); - } - - this._toggleModal(false); - } - }, { - key: "_onSwitchChange", - value: function _onSwitchChange(value) { - this._manageLocation(value); - - this._updateSwitch(value); - } - }, { - key: "_onLayout", - value: function _onLayout() { - this.inputWidth = "100%"; - } - }, { - key: "_renderItem", - value: function _renderItem(_ref2) { - var _this2 = this; - - var item = _ref2.item, - index = _ref2.index; - var switchValue = this.state.switchValue; - return (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_reactNative.TouchableWithoutFeedback, { - onPress: function onPress() { - return _this2.onSelectItem(item); - }, - children: !switchValue ? (0, _$$_REQUIRE(_dependencyMap[19]).jsxs)(_reactNative.View, { - style: [_$$_REQUIRE(_dependencyMap[20]).styles.listItem], - children: [(0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_reactNative.Text, { - style: [_$$_REQUIRE(_dependencyMap[20]).styles.text, _$$_REQUIRE(_dependencyMap[20]).styles.textCity, { - color: _$$_REQUIRE(_dependencyMap[17]).colors.md_black_1000 - }], - children: (item.city || "") + ", " + (item.state || "") - }), (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_reactNative.Text, { - style: [_$$_REQUIRE(_dependencyMap[20]).styles.text, _$$_REQUIRE(_dependencyMap[20]).styles.textZip], - children: item.zip - })] - }) : (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_reactNative.View, {}) - }, index); - } - }, { - key: "_getModal", - value: function _getModal() { - var hint = this.props.hint; - var borderColor = this.borderColor; - var _this$state2 = this.state, - input = _this$state2.input, - data = _this$state2.data; - var modal = this.state.modal; - var inputWidth = this.inputWidth ? this.inputWidth : _deviceUtils.default.screenDimensions.width - _$$_REQUIRE(_dependencyMap[21]).filterStyles.MARGIN * 2; - return (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_modal.default, { - transparent: true, - visible: modal, - containerStyle: { - padding: 0 - }, - children: (0, _$$_REQUIRE(_dependencyMap[19]).jsxs)(_reactNative.View, { - style: [{ - width: inputWidth - }], - children: [(0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_fontTextInput.default, { - autoFocus: true, - style: [_$$_REQUIRE(_dependencyMap[20]).styles.textInput, _$$_REQUIRE(_dependencyMap[20]).styles.textInputModal, { - borderColor: borderColor, - color: _$$_REQUIRE(_dependencyMap[17]).colors.md_black_1000 - }], - underlineColorAndroid: borderColor, - onChangeText: this.onTextChange, - value: input, - returnKeyType: "search", - placeholder: hint, - placeholderTextColor: _$$_REQUIRE(_dependencyMap[17]).colors.grey - }), data && data.length ? (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[20]).styles.list, - children: (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_$$_REQUIRE(_dependencyMap[22]).TecnaviaFlatList, { - data: data, - renderItem: this.renderItem - }) - }) : null] - }) - }); - } - }, { - key: "render", - value: function render() { - var borderColor = this.borderColor, - textColor = this.textColor; - var _this$props = this.props, - hint = _this$props.hint, - style = _this$props.style, - onPopulateSelect = _this$props.onPopulateSelect; - var _this$state3 = this.state, - input = _this$state3.input, - switchValue = _this$state3.switchValue, - data = _this$state3.data; - - if (onPopulateSelect) { - onPopulateSelect(data && data.length); - } - - return (0, _$$_REQUIRE(_dependencyMap[19]).jsxs)(_reactNative.View, { - style: [{ - flexDirection: "column" - }, style], - children: [this._getModal(), (0, _$$_REQUIRE(_dependencyMap[19]).jsxs)(_reactNative.View, { - style: [_$$_REQUIRE(_dependencyMap[20]).styles.parent, { - borderColor: borderColor - }], - children: [(0, _$$_REQUIRE(_dependencyMap[19]).jsxs)(_reactNative.View, { - style: [_$$_REQUIRE(_dependencyMap[20]).styles.parentMyLocation, { - backgroundColor: borderColor - }], - children: [(0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_reactNative.Text, { - style: [_$$_REQUIRE(_dependencyMap[20]).styles.text, _$$_REQUIRE(_dependencyMap[20]).styles.textMyLocation, { - color: textColor - }], - children: global.strings("my_location") - }), (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_reactNative.Switch, { - style: _$$_REQUIRE(_dependencyMap[20]).styles.switchMyLocation, - onValueChange: this.onSwitchChange, - value: switchValue, - ios_backgroundColor: _$$_REQUIRE(_dependencyMap[17]).colors.grey200 - })] - }), (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_reactNative.TouchableOpacity, { - onPress: this.toggleModal, - children: (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_reactNative.View, { - pointerEvents: "none", - children: (0, _$$_REQUIRE(_dependencyMap[19]).jsx)(_fontTextInput.default, { - onLayout: this.onLayout, - style: [_$$_REQUIRE(_dependencyMap[20]).styles.textInput, { - padding: 5, - color: _$$_REQUIRE(_dependencyMap[17]).colors.md_black_1000 - }], - underlineColorAndroid: borderColor, - value: input, - returnKeyType: "search", - placeholder: hint || global.strings("filter_text"), - placeholderTextColor: _$$_REQUIRE(_dependencyMap[17]).colors.grey, - editable: false - }) - }) - })] - })] - }); - } - }]); - }(_react.default.Component); - - FilterLocation.propTypes = { - style: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.number]), - textColor: _propTypes.default.string, - borderColor: _propTypes.default.string, - hint: _propTypes.default.string, - onPopulateSelect: _propTypes.default.func, - onSelect: _propTypes.default.func, - latitude: _propTypes.default.string, - longitude: _propTypes.default.string, - useLocation: _propTypes.default.bool, - onDisableSwitch: _propTypes.default.func - }; -},2657,[3,6,7,11,13,14,270,4,568,16,18,407,2164,434,2183,813,2350,438,2019,179,2658,2644,2049]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.styles = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var styles = exports.styles = _reactNative.StyleSheet.create({ - parent: { - flexDirection: "column", - marginTop: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, - marginBottom: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_WIDTH * 2, - marginStart: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, - marginEnd: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, - borderWidth: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_WIDTH, - borderRadius: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_RADIUS - }, - text: { - padding: _$$_REQUIRE(_dependencyMap[1]).filterStyles.TEXT_PADDING - }, - textMyLocation: { - flex: 3 - }, - switchMyLocation: { - marginRight: 20 - }, - parentMyLocation: { - height: _$$_REQUIRE(_dependencyMap[1]).filterStyles.LINE_HEIGHT, - flexDirection: "row", - justifyContent: "center", - alignItems: "center" - }, - textCity: { - flex: 3 - }, - textZip: { - flex: 1, - textAlign: "right" - }, - textInput: { - backgroundColor: _$$_REQUIRE(_dependencyMap[2]).colors.white, - height: _$$_REQUIRE(_dependencyMap[1]).filterStyles.LINE_HEIGHT, - borderBottomLeftRadius: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_RADIUS, - borderBottomRightRadius: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_RADIUS - }, - modal: { - flex: 1, - alignItems: "center", - justifyContent: "center", - backgroundColor: _$$_REQUIRE(_dependencyMap[2]).colors.transparent200 - }, - modalBackground: { - margin: 0 - }, - parentModal: { - flexDirection: "column", - marginTop: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, - marginStart: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, - marginEnd: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN - }, - textInputModal: { - opacity: 1, - margin: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, - padding: 5, - borderTopLeftRadius: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_RADIUS, - borderTopRightRadius: _$$_REQUIRE(_dependencyMap[1]).filterStyles.BORDER_RADIUS - }, - list: { - marginTop: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, - marginBottom: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, - padding: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN - }, - listItem: { - flexDirection: "row", - height: _$$_REQUIRE(_dependencyMap[1]).filterStyles.LINE_HEIGHT, - justifyContent: "center", - alignItems: "center" - } - }); -},2658,[18,2644,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2659,[2660]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.JobSearchScreen = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[8]); - - var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _fontText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10])); - - 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); } - - 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; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var JobSearchScreen = exports.JobSearchScreen = function (_NavigationBaseScreen) { - function JobSearchScreen() { - (0, _classCallCheck2.default)(this, JobSearchScreen); - return _callSuper(this, JobSearchScreen, arguments); - } - - (0, _inherits2.default)(JobSearchScreen, _NavigationBaseScreen); - return (0, _createClass2.default)(JobSearchScreen, [{ - key: "handleBackButton", - value: function handleBackButton() { - var navigation = this.props.navigation; - navigation.goBack(null); - return (0, _get2.default)((0, _getPrototypeOf2.default)(JobSearchScreen.prototype), "handleBackButton", this).call(this); - } - }, { - key: "getTag", - value: function getTag() { - return "Job Search"; - } - }, { - key: "getBaseSearchString", - value: function getBaseSearchString(_ref) { - var city = _ref.city, - job_status = _ref.job_status, - job_type = _ref.job_type; - var string = ""; - - if (city) { - string += city + " "; - } - - if (job_status) { - string += (0, _$$_REQUIRE(_dependencyMap[11]).getJobDuration)(job_status) + " "; - } - - if (job_type) { - string += "" + (0, _$$_REQUIRE(_dependencyMap[11]).getJobType)(job_type); - } - - return string; - } - }, { - key: "getAdvanceSearchString", - value: function getAdvanceSearchString(_ref2) { - var salary_min = _ref2.salary_min, - salary_max = _ref2.salary_max, - day_published = _ref2.day_published; - var string = ""; - - if (day_published) { - string += "from " + day_published + " "; - } - - if (salary_min && salary_max) { - string += "with salary between " + salary_min + " and " + salary_max; - } else if (salary_min) { - string += "with salary greater than " + salary_min; - } else if (salary_max) { - string += "with salary lower than " + salary_min; - } - - return string; - } - }, { - key: "render", - value: function render() { - var _this = this; - - var navigation = this.props.navigation; - return (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_$$_REQUIRE(_dependencyMap[13]).VerticalSearchesList, { - eventName: _events.default.TOGGLE_JOB_SEARCH, - color: (0, _$$_REQUIRE(_dependencyMap[11]).getJobColor)(), - totalKey: "total_searches", - searchVerticalManager: global.getVerticalsConfig().getJob(), - onItemPress: function onItemPress(item) { - navigation.navigate("VerticalListScreen", { - filters: Object.assign({}, item) - }); - }, - renderItem: function renderItem(item) { - var title = item.term || global.strings("all_jobs"); - - var base = _this.getBaseSearchString(item); - - var advance = _this.getAdvanceSearchString(item); - - return (0, _$$_REQUIRE(_dependencyMap[12]).jsxs)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[14]).styles.line, - children: [(0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[14]).styles.title, - type: _fontText.Type.bold, - children: title - }), base ? (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[14]).styles.subtitle, - type: _fontText.Type.medium, - children: base - }) : null, advance ? (0, _$$_REQUIRE(_dependencyMap[12]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[14]).styles.subtitle, - type: _fontText.Type.medium, - children: advance - }) : null] - }); - }, - onEmptyPress: function onEmptyPress() { - navigation.navigate("VerticalFiltersScreen"); - } - }); - } - }]); - }(_$$_REQUIRE(_dependencyMap[15]).NavigationBaseScreen); -},2660,[3,6,7,11,85,13,14,16,18,436,800,2632,179,2661,2664,2331]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2661,[2662]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.VerticalSearchesList = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[9]); - - var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11])); - - 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); } - - 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; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var VerticalSearchesList = exports.VerticalSearchesList = function (_React$Component) { - function VerticalSearchesList(props) { - var _this; - - (0, _classCallCheck2.default)(this, VerticalSearchesList); - _this = _callSuper(this, VerticalSearchesList, [props]); - _this.state = { - items: [], - loading: true - }; - return _this; - } - - (0, _inherits2.default)(VerticalSearchesList, _React$Component); - return (0, _createClass2.default)(VerticalSearchesList, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - var eventName = this.props.eventName; - this.toggleSearch = _$$_REQUIRE(_dependencyMap[12]).EventRegister.on(eventName, function () { - _this2._retrieveData(); - }); - - this._retrieveData(); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - _$$_REQUIRE(_dependencyMap[12]).EventRegister.rm(this.toggleSearch); - } - }, { - key: "_retrieveData", - value: function () { - var _retrieveData2 = (0, _asyncToGenerator2.default)(function* () { - var searchVerticalManager = this.props.searchVerticalManager; - var items = []; - var defaultSearch = searchVerticalManager.getDefaultSearch(); - - if (defaultSearch) { - items.push({ - title: global.strings("default_search"), - data: [defaultSearch] - }); - } - - var lastSearch = searchVerticalManager.getLastSearch(); - - if (lastSearch) { - items.push({ - title: global.strings("last_search"), - data: [lastSearch] - }); - } - - var searches = searchVerticalManager.getSearches(); - - if (searches) { - items.push({ - title: global.strings("saved_searches"), - data: searches - }); - } - - this.setState({ - items: items, - loading: false - }); - }); - - function _retrieveData() { - return _retrieveData2.apply(this, arguments); - } - - return _retrieveData; - }() - }, { - key: "_getEmpty", - value: function _getEmpty() { - var onEmptyPress = this.props.onEmptyPress; - return this._getIconView("surprise", global.strings("msg_empty_searches"), onEmptyPress); - } - }, { - key: "_getIconView", - value: function _getIconView(icon, message, callback) { - var color = this.props.color; - return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNative.TouchableOpacity, { - onPress: function onPress() { - if (callback) { - callback(); - } - }, - style: _$$_REQUIRE(_dependencyMap[14]).styles.message, - children: (0, _$$_REQUIRE(_dependencyMap[13]).jsxs)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[14]).styles.message, - children: [(0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_iconComponent.default, { - type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, - name: icon, - size: 70, - color: color - }), (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_fontText.default, { - style: [_$$_REQUIRE(_dependencyMap[14]).styles.messageText, { - color: color - }], - children: message - })] - }) - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - _renderItem = _this$props.renderItem, - color = _this$props.color, - onItemPress = _this$props.onItemPress, - totalKey = _this$props.totalKey; - var _this$state = this.state, - items = _this$state.items, - loading = _this$state.loading; - - if (loading) { - return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_$$_REQUIRE(_dependencyMap[15]).ProgressCircle, { - spinnerColor: color - }); - } - - if (!items || !items.length) { - return this._getEmpty(); - } - - return (0, _$$_REQUIRE(_dependencyMap[13]).jsxs)(_reactNative.View, { - style: { - flex: 1, - flexDirection: "column" - }, - children: [totalKey ? (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNative.View, { - style: { - backgroundColor: color, - flexDirection: "row", - justifyContent: "center", - alignItems: "center", - padding: 5 - }, - children: (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_fontText.default, { - style: { - fontSize: 15, - textAlign: "center", - color: _$$_REQUIRE(_dependencyMap[16]).colors.white - }, - children: global.strings(totalKey, { - total: items.find(function (el) { - return el.title === global.strings("saved_searches"); - }).data.length - }) - }) - }) : null, (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_$$_REQUIRE(_dependencyMap[17]).TecnaviaSectionList, { - style: { - flex: 1 - }, - sections: items, - extraData: items, - keyExtractor: function keyExtractor(item) { - return item.id; - }, - renderItem: function renderItem(_ref) { - var item = _ref.item, - index = _ref.index; - - if (_renderItem) { - return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNative.TouchableWithoutFeedback, { - style: { - width: 200 - }, - onPress: function onPress() { - if (onItemPress) { - onItemPress(item); - } - }, - children: _renderItem(item, index) - }); - } - - return null; - }, - renderSectionHeader: function renderSectionHeader(section) { - var title = ""; - - if (section && section.section && section.section.title) { - title = section.section.title; - } - - return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNative.View, { - style: { - height: 40, - flexDirection: "row", - justifyContent: "flex-start", - backgroundColor: color - }, - children: (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNative.Text, { - style: { - fontSize: 18, - fontWeight: "bold", - color: _$$_REQUIRE(_dependencyMap[16]).colors.white, - padding: 10 - }, - children: title - }) - }); - } - })] - }); - } - }]); - }(_react.default.Component); - - VerticalSearchesList.propTypes = { - color: _propTypes.default.string.isRequired, - totalKey: _propTypes.default.string.isRequired, - renderItem: _propTypes.default.func.isRequired, - eventName: _propTypes.default.string.isRequired, - searchVerticalManager: _propTypes.default.shape({ - getSearches: _propTypes.default.func.isRequired, - getLastSearch: _propTypes.default.func - }).isRequired, - onEmptyPress: _propTypes.default.func, - onItemPress: _propTypes.default.func - }; -},2662,[3,270,6,7,11,13,14,16,568,18,800,1918,550,179,2663,1995,438,2049]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.styles = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var styles = exports.styles = _reactNative.StyleSheet.create({ - message: { - flex: 1, - justifyContent: "center", - alignItems: "center", - flexDirection: "column" - }, - messageText: { - paddingVertical: 20, - paddingHorizontal: 50, - textAlign: "center" - }, - loading: { - position: "absolute", - bottom: 0, - start: 0, - end: 0, - height: 50, - backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white - }, - actionButtonImage: { - height: 20, - width: 20 - }, - actionButtonIcon: { - fontSize: 20, - height: 22, - color: _$$_REQUIRE(_dependencyMap[1]).colors.white - } - }); -},2663,[18,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.styles = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var styles = exports.styles = _reactNative.StyleSheet.create({ - line: { - flexDirection: "column", - padding: 10, - borderBottomWidth: 0.5, - borderColor: _$$_REQUIRE(_dependencyMap[1]).colors.black, - justifyContent: "center" - }, - title: { - fontSize: 20, - flex: 1 - }, - subtitle: { - fontSize: 20, - flex: 1 - } - }); -},2664,[18,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2665,[2666]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.JobFavoritesScreen = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var JobFavoritesScreen = exports.JobFavoritesScreen = function (_NavigationBaseScreen) { - function JobFavoritesScreen() { - (0, _classCallCheck2.default)(this, JobFavoritesScreen); - return _callSuper(this, JobFavoritesScreen, arguments); - } - - (0, _inherits2.default)(JobFavoritesScreen, _NavigationBaseScreen); - return (0, _createClass2.default)(JobFavoritesScreen, [{ - key: "handleBackButton", - value: function handleBackButton() { - var navigation = this.props.navigation; - navigation.goBack(null); - return (0, _get2.default)((0, _getPrototypeOf2.default)(JobFavoritesScreen.prototype), "handleBackButton", this).call(this); - } - }, { - key: "getTag", - value: function getTag() { - return "Job Favorites"; - } - }, { - key: "render", - value: function render() { - var navigation = this.props.navigation; - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[10]).VerticalFavoritesList, { - eventName: _events.default.TOGGLE_JOB_FAVORITE, - color: (0, _$$_REQUIRE(_dependencyMap[11]).getJobColor)(), - totalKey: "total_favorites", - searchVerticalManager: global.getVerticalsConfig().getJob(), - renderItem: function renderItem(item) { - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[12]).JobListItem, { - item: item, - onItemPress: function onItemPress(clicked) { - navigation.navigate("VerticalDetailScreen", { - url: (0, _$$_REQUIRE(_dependencyMap[11]).getJobUrlPageById)(clicked.id) - }); - }, - manager: global.getVerticalsConfig().getJob(), - color: (0, _$$_REQUIRE(_dependencyMap[11]).getJobColor)() - }); - }, - onEmptyPress: function onEmptyPress() { - navigation.navigate("VerticalFiltersScreen"); - } - }); - } - }]); - }(_$$_REQUIRE(_dependencyMap[13]).NavigationBaseScreen); -},2666,[3,6,7,11,85,13,14,16,436,179,2667,2632,2670,2331]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2667,[2668]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.VerticalFavoritesList = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[9]); - - var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11])); - - 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); } - - 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; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var VerticalFavoritesList = exports.VerticalFavoritesList = function (_React$Component) { - function VerticalFavoritesList(props) { - var _this; - - (0, _classCallCheck2.default)(this, VerticalFavoritesList); - _this = _callSuper(this, VerticalFavoritesList, [props]); - _this.state = { - items: [], - loading: true - }; - return _this; - } - - (0, _inherits2.default)(VerticalFavoritesList, _React$Component); - return (0, _createClass2.default)(VerticalFavoritesList, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _this2 = this; - - var eventName = this.props.eventName; - this.toggleFavorite = _$$_REQUIRE(_dependencyMap[12]).EventRegister.on(eventName, function () { - _this2._retrieveData(); - }); - - this._retrieveData(); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - _$$_REQUIRE(_dependencyMap[12]).EventRegister.rm(this.toggleFavorite); - } - }, { - key: "_retrieveData", - value: function () { - var _retrieveData2 = (0, _asyncToGenerator2.default)(function* () { - var searchVerticalManager = this.props.searchVerticalManager; - this.setState({ - items: searchVerticalManager.getFavorites(), - loading: false - }); - }); - - function _retrieveData() { - return _retrieveData2.apply(this, arguments); - } - - return _retrieveData; - }() - }, { - key: "_getEmpty", - value: function _getEmpty() { - var onEmptyPress = this.props.onEmptyPress; - return this._getIconView("surprise", global.strings("msg_empty_favorites"), onEmptyPress); - } - }, { - key: "_getIconView", - value: function _getIconView(icon, message, callback) { - var color = this.props.color; - return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNative.TouchableOpacity, { - onPress: function onPress() { - if (callback) { - callback(); - } - }, - style: _$$_REQUIRE(_dependencyMap[14]).styles.message, - children: (0, _$$_REQUIRE(_dependencyMap[13]).jsxs)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[14]).styles.message, - children: [(0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_iconComponent.default, { - type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, - name: icon, - size: 70, - color: color - }), (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_fontText.default, { - style: [_$$_REQUIRE(_dependencyMap[14]).styles.messageText, { - color: color - }], - children: message - })] - }) - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - _renderItem = _this$props.renderItem, - color = _this$props.color, - onItemPress = _this$props.onItemPress, - totalKey = _this$props.totalKey; - var itemKey = this.props.itemKey; - var _this$state = this.state, - items = _this$state.items, - loading = _this$state.loading; - - if (!itemKey) { - itemKey = "id"; - } - - if (loading) { - return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_$$_REQUIRE(_dependencyMap[15]).ProgressCircle, { - spinnerColor: color - }); - } - - if (!items || !items.length) { - return this._getEmpty(); - } - - return (0, _$$_REQUIRE(_dependencyMap[13]).jsxs)(_reactNative.View, { - style: { - flex: 1, - flexDirection: "column" - }, - children: [totalKey ? (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNative.View, { - style: { - backgroundColor: color, - flexDirection: "row", - justifyContent: "center", - alignItems: "center", - padding: 5 - }, - children: (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_fontText.default, { - style: { - fontSize: 15, - textAlign: "center", - color: _$$_REQUIRE(_dependencyMap[16]).colors.white - }, - children: global.strings(totalKey, { - total: items.length - }) - }) - }) : null, (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_$$_REQUIRE(_dependencyMap[17]).TecnaviaFlatList, { - style: { - flex: 1 - }, - data: items, - extraData: this.state, - keyExtractor: function keyExtractor(item) { - return item[itemKey]; - }, - renderItem: function renderItem(_ref) { - var item = _ref.item, - index = _ref.index; - - if (_renderItem) { - return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNative.TouchableOpacity, { - onPress: function onPress() { - if (onItemPress) { - onItemPress(item); - } - }, - children: _renderItem(item, index) - }); - } - - return null; - } - })] - }); - } - }]); - }(_react.default.Component); - - VerticalFavoritesList.propTypes = { - color: _propTypes.default.string.isRequired, - totalKey: _propTypes.default.string.isRequired, - renderItem: _propTypes.default.func.isRequired, - eventName: _propTypes.default.string.isRequired, - onEmptyPress: _propTypes.default.func, - onItemPress: _propTypes.default.func.isRequired, - searchVerticalManager: _propTypes.default.shape({ - getFavorites: _propTypes.default.func.isRequired - }).isRequired, - itemKey: _propTypes.default.string - }; -},2668,[3,270,6,7,11,13,14,16,568,18,800,1918,550,179,2669,1995,438,2049]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.styles = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var styles = exports.styles = _reactNative.StyleSheet.create({ - message: { - flex: 1, - justifyContent: "center", - alignItems: "center", - flexDirection: "column" - }, - messageText: { - paddingVertical: 20, - paddingHorizontal: 50, - textAlign: "center" - }, - loading: { - position: "absolute", - bottom: 0, - start: 0, - end: 0, - height: 50, - backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white - }, - actionButtonImage: { - height: 20, - width: 20 - }, - actionButtonIcon: { - fontSize: 20, - height: 22, - color: _$$_REQUIRE(_dependencyMap[1]).colors.white - } - }); -},2669,[18,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.JobListItem = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[8]); - - var _reactNativeShare = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _fontText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10])); - - var _iconTile = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - - var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[13])); - - 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); } - - 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; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var JobListItem = exports.JobListItem = function (_React$Component) { - function JobListItem() { - (0, _classCallCheck2.default)(this, JobListItem); - return _callSuper(this, JobListItem, arguments); - } - - (0, _inherits2.default)(JobListItem, _React$Component); - return (0, _createClass2.default)(JobListItem, [{ - key: "shouldComponentUpdate", - value: function shouldComponentUpdate() { - return false; - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - item = _this$props.item, - manager = _this$props.manager, - color = _this$props.color, - onItemPress = _this$props.onItemPress; - return (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_reactNative.TouchableOpacity, { - onPress: function onPress() { - if (onItemPress) { - onItemPress(item); - } - }, - children: (0, _$$_REQUIRE(_dependencyMap[14]).jsxs)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[15]).styles.line, - children: [(0, _$$_REQUIRE(_dependencyMap[14]).jsxs)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[15]).styles.header, - children: [(0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[15]).styles.title, - type: _fontText.Type.bold, - children: item.heading - }), (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_iconTile.default, { - parentStyle: { - position: "relative", - top: 0 - }, - icons: [{ - title: global.strings("action_share"), - component: function component(style) { - return (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_iconComponent.default, { - type: _iconComponent.TecnaviaIconType.MATERIAL_ICONS, - name: "share", - style: style - }); - }, - onPress: function onPress(clicked) { - var shareOptions = { - url: (0, _$$_REQUIRE(_dependencyMap[16]).getJobUrlPageById)(clicked.item.id), - message: clicked.item.heading - }; - - _reactNativeShare.default.open(shareOptions); - } - }, { - title: !manager.favoriteIsStored(item) ? global.strings("action_save_for_later") : global.strings("action_remove_from_favorites"), - component: function component(style) { - return (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_$$_REQUIRE(_dependencyMap[17]).IconFavorite, { - item: item, - size: 20, - style: style, - eventToggleItemChecker: function eventToggleItemChecker(currentItem, params) { - return currentItem.id === params.id; - }, - toggleFavoritesEventName: _events.default.TOGGLE_JOB_FAVORITE, - isFavoriteChecker: function isFavoriteChecker(toCheck) { - return manager.favoriteIsStored(toCheck); - } - }); - }, - onPress: function onPress(clicked) { - manager.toggleFavorite(clicked); - } - }], - tintColor: color, - item: item, - availableSpace: _$$_REQUIRE(_dependencyMap[18]).PlatformUtils.isTablet() ? 2 : 1, - border: true - })] - }), (0, _$$_REQUIRE(_dependencyMap[14]).jsxs)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[15]).styles.subline, - children: [(0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[15]).styles.make, - type: _fontText.Type.medium, - children: item.make - }), item.dateentered ? (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[15]).styles.date, - type: _fontText.Type.medium, - children: _$$_REQUIRE(_dependencyMap[18]).DateUtils.getMomentDate(item.dateentered, "MM/DD/YYYY").fromNow() - }) : null] - }), (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[15]).styles.description, - children: item.description - }), (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[15]).styles.salary, - type: _fontText.Type.medium, - children: item.price ? global.strings("salary", { - salary: item.price - }) : global.strings("unknown_salary") - })] - }) - }); - } - }]); - }(_react.default.Component); - - JobListItem.propTypes = { - item: _propTypes.default.shape({ - heading: _propTypes.default.string, - subline: _propTypes.default.string, - make: _propTypes.default.string, - description: _propTypes.default.string, - dateentered: _propTypes.default.string, - price: _propTypes.default.number - }).isRequired, - manager: _propTypes.default.shape({ - favoriteIsStored: _propTypes.default.func.isRequired, - toggleFavorite: _propTypes.default.func.isRequired - }).isRequired, - onItemPress: _propTypes.default.func, - color: _propTypes.default.string.isRequired - }; -},2670,[3,6,7,11,13,14,16,568,18,553,800,2209,436,1918,179,2671,2632,2089,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.styles = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var styles = exports.styles = _reactNative.StyleSheet.create({ - header: { - flexDirection: "row" - }, - line: { - flexDirection: "column", - padding: 10, - borderBottomWidth: 0.5, - borderBottomColor: _$$_REQUIRE(_dependencyMap[1]).colors.black - }, - title: { - flex: 1, - fontSize: 20 - }, - subline: { - flexDirection: "row", - paddingTop: 10, - paddingBottom: 10 - }, - make: { - flex: 1, - fontSize: 16 - }, - salary: { - flex: 1, - fontSize: 16, - paddingVertical: 10 - }, - date: { - textAlign: "right", - fontSize: 16 - }, - description: { - flex: 2, - textAlign: "justify" - }, - icon: { - height: 30, - width: 30, - marginStart: 5, - marginEnd: 5 - } - }); -},2671,[18,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2672,[2673]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.JobListScreen = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var JobListScreen = exports.JobListScreen = function (_NavigationBaseScreen) { - function JobListScreen() { - (0, _classCallCheck2.default)(this, JobListScreen); - return _callSuper(this, JobListScreen, arguments); - } - - (0, _inherits2.default)(JobListScreen, _NavigationBaseScreen); - return (0, _createClass2.default)(JobListScreen, [{ - key: "handleBackButton", - value: function handleBackButton() { - var navigation = this.props.navigation; - navigation.goBack(null); - return (0, _get2.default)((0, _getPrototypeOf2.default)(JobListScreen.prototype), "handleBackButton", this).call(this); - } - }, { - key: "getTag", - value: function getTag() { - return "Job List"; - } - }, { - key: "keyExtractor", - value: function keyExtractor(item, index) { - return item.id; - } - }, { - key: "render", - value: function render() { - var navigation = this.props.navigation; - - var _getNavigationParams = (0, _$$_REQUIRE(_dependencyMap[9]).getNavigationParams)(this.props), - _getNavigationParams$ = _getNavigationParams.filters, - filters = _getNavigationParams$ === undefined ? { - action: "jobs", - view: "filtered" - } : _getNavigationParams$; - - return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_$$_REQUIRE(_dependencyMap[11]).VerticalList, { - color: (0, _$$_REQUIRE(_dependencyMap[12]).getJobColor)(), - api: _Api.default.baseUrl(), - totalKey: "total_jobs", - params: filters, - normalizeResults: function normalizeResults(res) { - return res.result; - }, - keyExtractor: this.keyExtractor, - getFilterNames: function getFilterNames(rows, sort, currentPage) { - return { - rows: rows, - sort: sort, - start: currentPage - }; - }, - searchVerticalManager: global.getVerticalsConfig().getJob(), - renderItem: function renderItem(_ref) { - var item = _ref.item; - return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_$$_REQUIRE(_dependencyMap[13]).JobListItem, { - item: item, - onItemPress: function onItemPress(clicked) { - var url = clicked.url || (0, _$$_REQUIRE(_dependencyMap[12]).getJobUrlPageById)(clicked.id); - navigation.navigate("VerticalDetailScreen", { - url: url - }); - }, - manager: global.getVerticalsConfig().getJob(), - color: (0, _$$_REQUIRE(_dependencyMap[12]).getJobColor)() - }); - }, - onErrorPress: function onErrorPress() { - navigation.navigate("VerticalFiltersScreen"); - }, - onEmptyPress: function onEmptyPress() { - navigation.navigate("VerticalFiltersScreen"); - } - }); - } - }]); - }(_$$_REQUIRE(_dependencyMap[9]).NavigationBaseScreen); -},2673,[3,6,7,11,85,13,14,16,407,2331,179,2674,2632,2670]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2674,[2675]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.VerticalList = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[9]); - - var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _fontText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11])); - - var _emptyComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - - var _loadingMoreComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); - - var _imageComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); - - var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[15])); - - var _VerticalList; - - 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); } - - 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; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var VerticalList = exports.VerticalList = function (_React$Component) { - function VerticalList(props) { - var _this; - - (0, _classCallCheck2.default)(this, VerticalList); - _this = _callSuper(this, VerticalList, [props]); - _this.state = { - items: [], - firstLoading: true, - error: false, - errors: [], - mapVisible: props.startupComponent === VerticalList.Startup.map && props.map.enable - }; - _this.loadingMore = false; - _this.currentRadius = props.radius.start; - _this.currentPage = 1; - _this.totalPages = 1; - _this.sortValue = props.order.defaultSort; - _this.disableLoadMore = false; - _this.handleLoadMore = _this._handleLoadMore.bind(_this); - return _this; - } - - (0, _inherits2.default)(VerticalList, _React$Component); - return (0, _createClass2.default)(VerticalList, [{ - key: "componentDidMount", - value: function componentDidMount() { - this.firstLoad(); - } - }, { - key: "UNSAFE_componentWillReceiveProps", - value: function UNSAFE_componentWillReceiveProps(nextProps) { - var params = this.props.params; - var newParams = nextProps.params; - - if (!_$$_REQUIRE(_dependencyMap[16]).JSUtils.equals(params, newParams)) { - this._update(); - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var prevRadius = prevProps.radius, - prevOrder = prevProps.order; - var _this$props = this.props, - radius = _this$props.radius, - order = _this$props.order; - - if (prevRadius.start !== radius.start || prevOrder.defaultSort !== order.defaultSort) { - this._update(); - } - } - }, { - key: "_update", - value: function _update() { - var _this2 = this; - - this.setState({ - items: [], - firstLoading: true, - error: false, - errors: [] - }, function () { - var radius = _this2.props.radius; - _this2.currentRadius = radius.start; - _this2.currentPage = 1; - _this2.totalPages = 1; - - _this2.firstLoad(); - }); - } - }, { - key: "doAjaxCall", - value: function () { - var _doAjaxCall = (0, _asyncToGenerator2.default)(function* (params) { - var _this$props2 = this.props, - api = _this$props2.api, - config = _this$props2.config, - normalizeResults = _this$props2.normalizeResults, - skipDefaultParams = _this$props2.skipDefaultParams; - - var uri = _$$_REQUIRE(_dependencyMap[16]).StringUtils.segmentUrl(api); - - var newParams = Object.assign({}, params, uri.getParams); - newParams = Object.keys(newParams).reduce(function (result, key) { - var param = newParams[key]; - - if (Array.isArray(param)) { - if (param.length) { - result[key] = param; - } - } else if (typeof param === "string") { - if (param.length) { - result[key] = param; - } - } else if (param !== undefined && !Number.isNaN(param)) { - result[key] = param; - } - - return result; - }, {}); - - try { - var ajaxResult = yield _Api.default.get(uri.baseUrl, config, newParams, skipDefaultParams); - return normalizeResults(ajaxResult.data); - } catch (e) { - throw e; - } - }); - - function doAjaxCall(_x) { - return _doAjaxCall.apply(this, arguments); - } - - return doAjaxCall; - }() - }, { - key: "firstLoad", - value: function () { - var _firstLoad = (0, _asyncToGenerator2.default)(function* () { - var _this$props3 = this.props, - params = _this$props3.params, - rows = _this$props3.rows, - radius = _this$props3.radius, - serverSidePaging = _this$props3.serverSidePaging, - getFilterNames = _this$props3.getFilterNames; - var currentPage = this.currentPage, - sortValue = this.sortValue; - var filter = Object.assign({}, params, getFilterNames(rows, sortValue, currentPage)); - - if (radius.enable) { - filter.radius = this.currentRadius; - } - - try { - do { - var _yield$this$doAjaxCal = yield this.doAjaxCall(filter), - total = _yield$this$doAjaxCal.total, - page = _yield$this$doAjaxCal.page, - pages = _yield$this$doAjaxCal.pages, - items = _yield$this$doAjaxCal.items; - - if ((total === 0 || items.length === 0) && radius.enable) { - this.currentRadius *= 2; - } else { - if (!serverSidePaging) { - this.total = items.length || 0; - } else { - this.total = total || 0; - } - - this.currentPage = page || this.currentPage; - this.totalPages = pages || this.totalPages; - this.setState({ - items: items || [], - firstLoading: false, - error: false, - errors: [] - }); - break; - } - } while (this.currentRadius < radius.max); - } catch (e) { - this.setState({ - firstLoading: false, - error: true - }); - } - }); - - function firstLoad() { - return _firstLoad.apply(this, arguments); - } - - return firstLoad; - }() - }, { - key: "_handleLoadMore", - value: function () { - var _handleLoadMore2 = (0, _asyncToGenerator2.default)(function* () { - var _this$props4 = this.props, - params = _this$props4.params, - rows = _this$props4.rows, - radius = _this$props4.radius, - getFilterNames = _this$props4.getFilterNames, - serverSidePaging = _this$props4.serverSidePaging, - enableInfiniteScroll = _this$props4.enableInfiniteScroll; - var items = this.state.items; - var currentPage = this.currentPage, - totalPages = this.totalPages, - sortValue = this.sortValue; - - if (enableInfiniteScroll && !this.loadingMore && (serverSidePaging && currentPage < totalPages || !serverSidePaging && !this.disableLoadMore)) { - this.loadingMore = true; - this.loadingRef.show(); - var filter = Object.assign({}, params, getFilterNames(rows, sortValue, currentPage + 1)); - - if (radius.enable) { - filter.radius = this.currentRadius; - } - - try { - var _yield$this$doAjaxCal2 = yield this.doAjaxCall(filter), - results = _yield$this$doAjaxCal2.items, - page = _yield$this$doAjaxCal2.page; - - if (results) { - this.disableLoadMore = results.length < rows; - - if (!serverSidePaging) { - this.total += results.length; - } - - this.currentPage = page || this.currentPage + 1; - this.setState({ - items: items.concat(results), - errors: [] - }); - } else { - this.disableLoadMore = true; - this.setState({ - errors: [] - }); - } - } catch (e) { - this.setState({ - errors: [global.strings("error_on_load_more")] - }); - } - - this.loadingMore = false; - this.loadingRef.hide(); - } - }); - - function _handleLoadMore() { - return _handleLoadMore2.apply(this, arguments); - } - - return _handleLoadMore; - }() - }, { - key: "_getError", - value: function _getError() { - var onErrorPress = this.props.onErrorPress; - return this._getIconView("frown", global.strings("msg_error_list"), onErrorPress); - } - }, { - key: "_getEmpty", - value: function _getEmpty() { - var onEmptyPress = this.props.onEmptyPress; - return this._getIconView("surprise", global.strings("msg_empty_list"), onEmptyPress); - } - }, { - key: "_getIconView", - value: function _getIconView(icon, message, callback) { - var color = this.props.color; - return (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_emptyComponent.default, { - onPress: callback, - iconName: icon, - message: message, - color: color - }); - } - }, { - key: "_getActions", - value: function _getActions() { - var _this3 = this; - - var _this$props5 = this.props, - params = _this$props5.params, - color = _this$props5.color, - map = _this$props5.map, - order = _this$props5.order, - searchVerticalManager = _this$props5.searchVerticalManager; - var _this$state = this.state, - mapVisible = _this$state.mapVisible, - height = _this$state.height; - var actions = []; - - if (order.items) { - order.items.forEach(function (orderButtons) { - actions.push({ - values: orderButtons.map(function (_ref) { - var param = _ref.param, - source = _ref.source, - label = _ref.label, - Component = _ref.Component, - ActiveComponent = _ref.ActiveComponent; - return { - value: param, - Component: Component || (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_imageComponent.default, { - source: source, - style: [_$$_REQUIRE(_dependencyMap[18]).styles.actionButtonImage, { - tintColor: _$$_REQUIRE(_dependencyMap[16]).colors.white - }], - resizeMode: "contain" - }), - ActiveComponent: ActiveComponent || (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_imageComponent.default, { - source: source, - style: [_$$_REQUIRE(_dependencyMap[18]).styles.actionButtonImage, { - tintColor: _$$_REQUIRE(_dependencyMap[16]).colors.white - }], - resizeMode: "contain" - }), - title: label, - isActive: param === _this3.sortValue - }; - }), - current: _this3.sortValue, - callback: function callback(value) { - _this3.sortValue = value; - - _this3._update(); - } - }); - }); - } - - if (map.enable) { - actions.push({ - values: [{ - value: false, - Component: (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_iconComponent.default, { - type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, - name: "list-ul", - style: _$$_REQUIRE(_dependencyMap[18]).styles.actionButtonIcon - }), - title: global.strings("toggle_list") - }, { - value: true, - Component: (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_iconComponent.default, { - type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, - name: "map", - style: _$$_REQUIRE(_dependencyMap[18]).styles.actionButtonIcon - }), - title: global.strings("toggle_map") - }], - current: mapVisible, - callback: function callback(value) { - _this3.setState({ - mapVisible: value - }); - } - }); - } - - if (searchVerticalManager) { - actions.push({ - values: [{ - value: false, - Component: (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_iconComponent.default, { - type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, - name: "bookmark", - style: _$$_REQUIRE(_dependencyMap[18]).styles.actionButtonIcon, - solid: true - }), - title: global.strings("unsave_search") - }, { - value: true, - Component: (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_iconComponent.default, { - type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, - name: "bookmark", - style: _$$_REQUIRE(_dependencyMap[18]).styles.actionButtonIcon - }), - title: global.strings("save_search") - }], - current: searchVerticalManager.searchIsStored(params), - callback: function callback() { - searchVerticalManager.toggleSearch(params); - } - }); - } - - return (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_$$_REQUIRE(_dependencyMap[19]).ActionButtonList, { - color: color, - buttons: actions, - availableHeight: height, - bgColor: _$$_REQUIRE(_dependencyMap[16]).colors.transparent200 - }); - } - }, { - key: "render", - value: function render() { - var _this4 = this; - - var _this$props6 = this.props, - renderItem = _this$props6.renderItem, - color = _this$props6.color, - totalKey = _this$props6.totalKey, - map = _this$props6.map, - _keyExtractor = _this$props6.keyExtractor, - getSections = _this$props6.getSections, - renderSectionHeader = _this$props6.renderSectionHeader; - var _this$state2 = this.state, - error = _this$state2.error, - errors = _this$state2.errors, - firstLoading = _this$state2.firstLoading, - mapVisible = _this$state2.mapVisible, - items = _this$state2.items; - - if (firstLoading) { - return (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_$$_REQUIRE(_dependencyMap[20]).ProgressCircle, { - spinnerColor: color - }); - } - - if (error) { - return this._getError(); - } - - if (!items || !items.length) { - return this._getEmpty(); - } - - var sectionItems = getSections(items, this.sortValue); - return (0, _$$_REQUIRE(_dependencyMap[17]).jsxs)(_reactNative.View, { - style: { - flex: 1, - flexDirection: "column" - }, - onLayout: function onLayout(event) { - var height = event.nativeEvent.layout.height; - - _this4.setState({ - height: height - }); - }, - children: [this.total && totalKey ? (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_reactNative.View, { - style: { - backgroundColor: color, - flexDirection: "row", - justifyContent: "center", - alignItems: "center" - }, - children: (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_fontText.default, { - style: { - fontSize: 15, - textAlign: "center", - color: _$$_REQUIRE(_dependencyMap[16]).colors.white - }, - type: _fontText.Type.medium, - children: global.strings(totalKey, { - total: this.total - }) - }) - }) : null, mapVisible ? (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_$$_REQUIRE(_dependencyMap[21]).VerticalMap, Object.assign({ - style: { - flex: 1 - }, - data: items - }, map)) : (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_$$_REQUIRE(_dependencyMap[22]).TecnaviaSectionList, { - removeClippedSubviews: true, - sections: sectionItems, - stickySectionHeadersEnabled: true, - extraData: this.state, - keyExtractor: function keyExtractor(item, index) { - if (typeof _keyExtractor === "function") { - return _keyExtractor(item, index); - } - - return "" + index; - }, - renderSectionHeader: renderSectionHeader, - renderItem: renderItem, - onEndReached: this.handleLoadMore, - onEndReachedThreshold: 3 - }), this._getActions(), errors ? (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_$$_REQUIRE(_dependencyMap[23]).Error, { - style: { - position: "absolute", - bottom: 0, - start: 0, - end: 0 - }, - errors: errors, - autoHide: true - }) : null, (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_loadingMoreComponent.default, { - ref: function ref(_ref2) { - _this4.loadingRef = _ref2; - }, - style: _$$_REQUIRE(_dependencyMap[18]).styles.loading, - color: color - })] - }); - } - }]); - }(_react.default.Component); - - _VerticalList = VerticalList; - VerticalList.Startup = { - list: "list", - map: "map" - }; - VerticalList.propTypes = { - color: _propTypes.default.string.isRequired, - api: _propTypes.default.string.isRequired, - config: _propTypes.default.object, - params: _propTypes.default.object.isRequired, - getSections: _propTypes.default.func, - renderSectionHeader: _propTypes.default.func, - normalizeResults: _propTypes.default.func.isRequired, - serverSidePaging: _propTypes.default.bool, - skipDefaultParams: _propTypes.default.bool, - getFilterNames: _propTypes.default.func.isRequired, - keyExtractor: _propTypes.default.func, - totalKey: _propTypes.default.string, - rows: _propTypes.default.number, - radius: _propTypes.default.shape({ - enable: _propTypes.default.bool, - max: _propTypes.default.number, - start: _propTypes.default.number - }), - startupComponent: _propTypes.default.oneOf([_VerticalList.Startup.list, _VerticalList.Startup.map]), - map: _propTypes.default.shape({ - enable: _propTypes.default.bool, - renderItem: _propTypes.default.func, - renderCallout: _propTypes.default.func, - itemKey: _propTypes.default.func, - latitudeKey: _propTypes.default.string, - longitudeKey: _propTypes.default.string, - titleKey: _propTypes.default.string, - getMarkerIcon: _propTypes.default.func, - onItemPress: _propTypes.default.func.isRequired - }), - enableInfiniteScroll: _propTypes.default.bool, - order: _propTypes.default.shape({ - items: _propTypes.default.arrayOf(_propTypes.default.arrayOf(_propTypes.default.shape({ - label: _propTypes.default.string, - Component: _propTypes.default.node, - param: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]), - source: _propTypes.default.any - }))), - defaultSort: _propTypes.default.string - }), - renderItem: _propTypes.default.func.isRequired, - onErrorPress: _propTypes.default.func, - onEmptyPress: _propTypes.default.func, - searchVerticalManager: _propTypes.default.shape({ - searchIsStored: _propTypes.default.func.isRequired, - toggleSearch: _propTypes.default.func.isRequired - }), - style: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.object, _propTypes.default.array]) - }; - VerticalList.defaultProps = { - rows: 25, - radius: { - enable: false, - start: 5, - max: 32 - }, - startupComponent: _VerticalList.Startup.list, - map: { - enable: false - }, - enableInfiniteScroll: true, - order: { - items: [], - defaultSort: "" - }, - config: {}, - serverSidePaging: true, - skipDefaultParams: false, - getSections: function getSections(items) { - return [{ - title: "", - data: items || [] - }]; - }, - renderSectionHeader: function renderSectionHeader() { - return null; - } - }; -},2675,[3,270,6,7,11,13,14,16,568,18,407,800,2467,2676,574,1918,438,179,2677,2678,1995,2683,2049,2288]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var LoadingMore = exports.default = function (_React$Component) { - function LoadingMore(props) { - var _this; - - (0, _classCallCheck2.default)(this, LoadingMore); - _this = _callSuper(this, LoadingMore, [props]); - _this.state = { - visible: props.visible - }; - return _this; - } - - (0, _inherits2.default)(LoadingMore, _React$Component); - return (0, _createClass2.default)(LoadingMore, [{ - key: "show", - value: function show() { - this.setState({ - visible: true - }); - } - }, { - key: "hide", - value: function hide() { - this.setState({ - visible: false - }); - } - }, { - key: "render", - value: function render() { - var visible = this.state.visible; - var _this$props = this.props, - color = _this$props.color, - style = _this$props.style; - - if (visible) { - return (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).ProgressCircle, { - parentStyle: style, - text: global.strings("msg_loading_more"), - showText: true, - spinnerColor: color - }); - } - - return null; - } - }]); - }(_react.default.Component); - - LoadingMore.propTypes = { - visible: _propTypes.default.bool, - style: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.object, _propTypes.default.array]), - color: _propTypes.default.string - }; - LoadingMore.defaultProps = { - visible: false - }; -},2676,[3,6,7,11,13,14,16,568,179,1995]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.styles = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var styles = exports.styles = _reactNative.StyleSheet.create({ - loading: { - position: "absolute", - bottom: 0, - start: 0, - end: 0, - height: 50, - backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.white - }, - actionButtonImage: { - height: 20, - width: 20 - }, - actionButtonIcon: { - fontSize: 20, - height: 22, - color: _$$_REQUIRE(_dependencyMap[1]).colors.white - } - }); -},2677,[18,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2678,[2679]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.ActionButtonList = undefined; - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _reactNativeActionButton = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[9])); - - var _excluded = ["availableHeight", "offsetY"]; - - 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); } - - 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; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var SPACING_TO_SIZE_RATIO = 4; - var MINIMUM_BUTTON_SIZE = 30; - var MAXIMUM_BUTTON_SIZE = 56; - var OFFSET_Y = 30; - - var ActionButtonList = exports.ActionButtonList = function (_React$Component) { - function ActionButtonList() { - (0, _classCallCheck2.default)(this, ActionButtonList); - return _callSuper(this, ActionButtonList, arguments); - } - - (0, _inherits2.default)(ActionButtonList, _React$Component); - return (0, _createClass2.default)(ActionButtonList, [{ - key: "render", - value: function render() { - var _this = this; - - var _this$props = this.props, - availableHeight = _this$props.availableHeight, - offsetY = _this$props.offsetY, - rest = (0, _objectWithoutProperties2.default)(_this$props, _excluded); - var _this$props2 = this.props, - buttons = _this$props2.buttons, - color = _this$props2.color; - - if (buttons && buttons.length) { - var size = Math.max(Math.min((availableHeight - offsetY * 2) / ((1 + buttons.length) * 1.25), MAXIMUM_BUTTON_SIZE), MINIMUM_BUTTON_SIZE); - var spacing = size / SPACING_TO_SIZE_RATIO; - return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNativeActionButton.default, Object.assign({ - buttonColor: color, - spacing: spacing, - size: size, - offsetY: offsetY - }, rest, { - children: buttons.map(function (item, key) { - var index = item.values.findIndex(function (_ref) { - var value = _ref.value; - return value === item.current; - }); - var button = item.values[index]; - var nextButton = index + 1 === item.values.length ? item.values[0] : item.values[index + 1]; - var title = nextButton.title, - Component = nextButton.Component, - ActiveComponent = nextButton.ActiveComponent, - isActive = nextButton.isActive; - return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNativeActionButton.default.Item, { - size: size, - buttonColor: isActive ? _$$_REQUIRE(_dependencyMap[11]).colors.md_white_1000 : color, - title: title, - onPress: function onPress() { - if (item.callback) { - item.callback(nextButton.value); - } - - if (nextButton) { - item.current = nextButton.value; - - _this.forceUpdate(); - } - }, - children: isActive ? ActiveComponent : Component - }, key); - }) - })); - } - - return null; - } - }]); - }(_react.default.Component); - - ActionButtonList.propTypes = Object.assign({ - buttons: _propTypes.default.arrayOf(_propTypes.default.shape({ - values: _propTypes.default.arrayOf(_propTypes.default.shape({ - Component: _propTypes.default.node.isRequired, - title: _propTypes.default.string.isRequired, - value: _propTypes.default.any - })), - callback: _propTypes.default.func.isRequired, - current: _propTypes.default.any - })), - color: _propTypes.default.string.isRequired, - availableHeight: _propTypes.default.number, - offsetY: _propTypes.default.number - }, _reactNativeActionButton.ActionButtonProperties); - ActionButtonList.defaultProps = { - offsetY: OFFSET_Y, - availableHeight: 0 - }; -},2679,[3,4,6,7,11,13,14,16,568,2680,179,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[8]); - - var _ActionButtonItem = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - 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); } - - 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; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var ActionButton = exports.default = function (_Component) { - function ActionButton(props) { - var _this; - - (0, _classCallCheck2.default)(this, ActionButton); - _this = _callSuper(this, ActionButton, [props]); - _this.state = { - resetToken: props.resetToken, - active: props.active - }; - _this.anim = new _reactNative.Animated.Value(props.active ? 1 : 0); - _this.timeout = null; - return _this; - } - - (0, _inherits2.default)(ActionButton, _Component); - return (0, _createClass2.default)(ActionButton, [{ - key: "componentDidMount", - value: function componentDidMount() { - this.mounted = true; - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this.mounted = false; - clearTimeout(this.timeout); - } - }, { - key: "componentWillReceiveProps", - value: function componentWillReceiveProps(nextProps) { - var _this2 = this; - - if (nextProps.resetToken !== this.state.resetToken) { - if (nextProps.active === false && this.state.active === true) { - if (this.props.onReset) this.props.onReset(); - - _reactNative.Animated.spring(this.anim, { - toValue: 0 - }).start(); - - setTimeout(function () { - return _this2.setState({ - active: false, - resetToken: nextProps.resetToken - }); - }, 250); - return; - } - - if (nextProps.active === true && this.state.active === false) { - _reactNative.Animated.spring(this.anim, { - toValue: 1 - }).start(); - - this.setState({ - active: true, - resetToken: nextProps.resetToken - }); - return; - } - - this.setState({ - resetToken: nextProps.resetToken, - active: nextProps.active - }); - } - } - }, { - key: "getOrientation", - value: function getOrientation() { - return { - alignItems: _$$_REQUIRE(_dependencyMap[10]).alignItemsMap[this.props.position] - }; - } - }, { - key: "getOffsetXY", - value: function getOffsetXY() { - return { - paddingVertical: this.props.offsetY - }; - } - }, { - key: "getOverlayStyles", - value: function getOverlayStyles() { - return [styles.overlay, { - elevation: this.props.elevation, - zIndex: this.props.zIndex, - justifyContent: this.props.verticalOrientation === "up" ? "flex-end" : "flex-start" - }]; - } - }, { - key: "render", - value: function render() { - return (0, _$$_REQUIRE(_dependencyMap[11]).jsxs)(_reactNative.View, { - pointerEvents: "box-none", - style: [this.getOverlayStyles(), this.props.style], - children: [(0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.Animated.View, { - pointerEvents: "none", - style: [this.getOverlayStyles(), { - backgroundColor: this.props.bgColor, - opacity: this.anim.interpolate({ - inputRange: [0, 1], - outputRange: [0, this.props.bgOpacity] - }) - }], - children: this.props.backdrop - }), (0, _$$_REQUIRE(_dependencyMap[11]).jsxs)(_reactNative.View, { - pointerEvents: "box-none", - style: [this.getOverlayStyles(), this.getOrientation(), this.getOffsetXY()], - children: [this.state.active && !this.props.backgroundTappable && this._renderTappableBackground(), this.props.verticalOrientation === "up" && this.props.children && this._renderActions(), this._renderMainButton(), this.props.verticalOrientation === "down" && this.props.children && this._renderActions()] - })] - }); - } - }, { - key: "_renderMainButton", - value: function _renderMainButton() { - var _this3 = this; - - var animatedViewStyle = { - transform: [{ - scale: this.anim.interpolate({ - inputRange: [0, 1], - outputRange: [1, this.props.outRangeScale] - }) - }, { - rotate: this.anim.interpolate({ - inputRange: [0, 1], - outputRange: ["0deg", this.props.degrees + "deg"] - }) - }] - }; - var wrapperStyle = { - backgroundColor: this.anim.interpolate({ - inputRange: [0, 1], - outputRange: [this.props.buttonColor, this.props.btnOutRange || this.props.buttonColor] - }), - width: this.props.size, - height: this.props.size, - borderRadius: this.props.size / 2 - }; - var buttonStyle = { - width: this.props.size, - height: this.props.size, - borderRadius: this.props.size / 2, - alignItems: "center", - justifyContent: "center" - }; - var Touchable = (0, _$$_REQUIRE(_dependencyMap[10]).getTouchableComponent)(this.props.useNativeFeedback); - var parentStyle = _$$_REQUIRE(_dependencyMap[10]).isAndroid && this.props.fixNativeFeedbackRadius ? { - right: this.props.offsetX, - zIndex: this.props.zIndex, - borderRadius: this.props.size / 2, - width: this.props.size - } : { - marginHorizontal: this.props.offsetX, - zIndex: this.props.zIndex - }; - return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.View, { - style: [parentStyle, !this.props.hideShadow && _$$_REQUIRE(_dependencyMap[10]).shadowStyle, !this.props.hideShadow && this.props.shadowStyle], - children: (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(Touchable, { - testID: this.props.testID, - accessible: this.props.accessible, - accessibilityLabel: this.props.accessibilityLabel, - background: (0, _$$_REQUIRE(_dependencyMap[10]).touchableBackground)(this.props.nativeFeedbackRippleColor, this.props.fixNativeFeedbackRadius), - activeOpacity: this.props.activeOpacity, - onLongPress: this.props.onLongPress, - onPress: function onPress() { - _this3.props.onPress(); - - if (_this3.props.children) _this3.animateButton(); - }, - onPressIn: this.props.onPressIn, - onPressOut: this.props.onPressOut, - children: (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.Animated.View, { - style: wrapperStyle, - children: (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.Animated.View, { - style: [buttonStyle, animatedViewStyle], - children: this._renderButtonIcon() - }) - }) - }) - }); - } - }, { - key: "_renderButtonIcon", - value: function _renderButtonIcon() { - var _this$props = this.props, - icon = _this$props.icon, - renderIcon = _this$props.renderIcon, - btnOutRangeTxt = _this$props.btnOutRangeTxt, - buttonTextStyle = _this$props.buttonTextStyle, - buttonText = _this$props.buttonText; - if (renderIcon) return renderIcon(this.state.active); - - if (icon) { - console.warn('react-native-action-button: The `icon` prop is deprecated! Use `renderIcon` instead.'); - return icon; - } - - var textColor = buttonTextStyle.color || "rgba(255,255,255,1)"; - return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.Animated.Text, { - style: [styles.btnText, buttonTextStyle, { - color: this.anim.interpolate({ - inputRange: [0, 1], - outputRange: [textColor, btnOutRangeTxt || textColor] - }) - }], - children: buttonText - }); - } - }, { - key: "_renderActions", - value: function _renderActions() { - var _this4 = this; - - var _this$props2 = this.props, - children = _this$props2.children, - verticalOrientation = _this$props2.verticalOrientation; - if (!this.state.active) return null; - var actionButtons = !Array.isArray(children) ? [children] : children; - actionButtons = actionButtons.filter(function (actionButton) { - return typeof actionButton == 'object'; - }); - var actionStyle = { - flex: 1, - alignSelf: "stretch", - justifyContent: verticalOrientation === "up" ? "flex-end" : "flex-start", - paddingTop: this.props.verticalOrientation === "down" ? this.props.spacing : 0, - zIndex: this.props.zIndex - }; - return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.View, { - style: actionStyle, - pointerEvents: "box-none", - children: actionButtons.map(function (_ActionButton, idx) { - return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_ActionButtonItem.default, Object.assign({ - anim: _this4.anim - }, _this4.props, _ActionButton.props, { - parentSize: _this4.props.size, - btnColor: _this4.props.btnOutRange, - onPress: function onPress() { - if (_this4.props.autoInactive) { - _this4.timeout = setTimeout(_this4.reset.bind(_this4), 200); - } - - _ActionButton.props.onPress(); - } - }), idx); - }) - }); - } - }, { - key: "_renderTappableBackground", - value: function _renderTappableBackground() { - return (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.TouchableOpacity, { - activeOpacity: 1, - style: this.getOverlayStyles(), - onPress: this.reset.bind(this) - }); - } - }, { - key: "animateButton", - value: function animateButton() { - var animate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; - if (this.state.active) return this.reset(); - - if (animate) { - _reactNative.Animated.spring(this.anim, { - toValue: 1 - }).start(); - } else { - this.anim.setValue(1); - } - - this.setState({ - active: true, - resetToken: this.state.resetToken - }); - } - }, { - key: "reset", - value: function reset() { - var _this5 = this; - - var animate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; - if (this.props.onReset) this.props.onReset(); - - if (animate) { - _reactNative.Animated.spring(this.anim, { - toValue: 0 - }).start(); - } else { - this.anim.setValue(0); - } - - setTimeout(function () { - if (_this5.mounted) { - _this5.setState({ - active: false, - resetToken: _this5.state.resetToken - }); - } - }, 250); - } - }]); - }(_react.Component); - - ActionButton.Item = _ActionButtonItem.default; - ActionButton.propTypes = { - resetToken: _propTypes.default.any, - active: _propTypes.default.bool, - position: _propTypes.default.string, - elevation: _propTypes.default.number, - zIndex: _propTypes.default.number, - hideShadow: _propTypes.default.bool, - shadowStyle: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.array, _propTypes.default.number]), - renderIcon: _propTypes.default.func, - bgColor: _propTypes.default.string, - bgOpacity: _propTypes.default.number, - buttonColor: _propTypes.default.string, - buttonTextStyle: _reactNative.Text.propTypes.style, - buttonText: _propTypes.default.string, - offsetX: _propTypes.default.number, - offsetY: _propTypes.default.number, - spacing: _propTypes.default.number, - size: _propTypes.default.number, - autoInactive: _propTypes.default.bool, - onPress: _propTypes.default.func, - onPressIn: _propTypes.default.func, - onPressOut: _propTypes.default.func, - backdrop: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.object]), - degrees: _propTypes.default.number, - verticalOrientation: _propTypes.default.oneOf(["up", "down"]), - backgroundTappable: _propTypes.default.bool, - activeOpacity: _propTypes.default.number, - useNativeFeedback: _propTypes.default.bool, - fixNativeFeedbackRadius: _propTypes.default.bool, - nativeFeedbackRippleColor: _propTypes.default.string, - testID: _propTypes.default.string, - accessibilityLabel: _propTypes.default.string, - accessible: _propTypes.default.bool - }; - ActionButton.defaultProps = { - resetToken: null, - active: false, - bgColor: "transparent", - bgOpacity: 1, - buttonColor: "rgba(0,0,0,1)", - buttonTextStyle: {}, - buttonText: "+", - spacing: 20, - outRangeScale: 1, - autoInactive: true, - onPress: function onPress() {}, - onPressIn: function onPressIn() {}, - onPressOn: function onPressOn() {}, - backdrop: false, - degrees: 45, - position: "right", - offsetX: 30, - offsetY: 30, - size: 56, - verticalOrientation: "up", - backgroundTappable: false, - useNativeFeedback: true, - activeOpacity: _$$_REQUIRE(_dependencyMap[10]).DEFAULT_ACTIVE_OPACITY, - fixNativeFeedbackRadius: false, - nativeFeedbackRippleColor: "rgba(255,255,255,0.75)", - testID: undefined, - accessibilityLabel: undefined, - accessible: undefined - }; - - var styles = _reactNative.StyleSheet.create({ - overlay: { - position: "absolute", - bottom: 0, - left: 0, - right: 0, - top: 0, - backgroundColor: "transparent" - }, - btnText: { - marginTop: -4, - fontSize: 24, - backgroundColor: "transparent" - } - }); -},2680,[3,6,7,11,13,14,16,568,18,2681,2682,179]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[8]); - - 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); } - - 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; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var _Dimensions$get = _reactNative.Dimensions.get("window"), - WIDTH = _Dimensions$get.width; - - var SHADOW_SPACE = 10; - var TEXT_HEIGHT = 22; - var TextTouchable = _$$_REQUIRE(_dependencyMap[9]).isAndroid ? _reactNative.TouchableNativeFeedback : _reactNative.TouchableWithoutFeedback; - - var ActionButtonItem = exports.default = function (_Component) { - function ActionButtonItem() { - (0, _classCallCheck2.default)(this, ActionButtonItem); - return _callSuper(this, ActionButtonItem, arguments); - } - - (0, _inherits2.default)(ActionButtonItem, _Component); - return (0, _createClass2.default)(ActionButtonItem, [{ - key: "render", - value: function render() { - var _this$props = this.props, - size = _this$props.size, - position = _this$props.position, - verticalOrientation = _this$props.verticalOrientation, - hideShadow = _this$props.hideShadow, - spacing = _this$props.spacing; - if (!this.props.active) return null; - var animatedViewStyle = { - marginBottom: -10, - alignItems: _$$_REQUIRE(_dependencyMap[9]).alignItemsMap[position], - opacity: this.props.anim, - transform: [{ - translateY: this.props.anim.interpolate({ - inputRange: [0, 1], - outputRange: [verticalOrientation === "down" ? -40 : 40, 0] - }) - }] - }; - var buttonStyle = { - justifyContent: "center", - alignItems: "center", - width: size, - height: size, - borderRadius: size / 2, - backgroundColor: this.props.buttonColor || this.props.btnColor - }; - if (position !== "center") buttonStyle[position] = (this.props.parentSize - size) / 2; - var Touchable = (0, _$$_REQUIRE(_dependencyMap[9]).getTouchableComponent)(this.props.useNativeFeedback); - var parentStyle = _$$_REQUIRE(_dependencyMap[9]).isAndroid && this.props.fixNativeFeedbackRadius ? { - height: size, - marginBottom: spacing, - right: this.props.offsetX, - borderRadius: this.props.size / 2 - } : { - paddingHorizontal: this.props.offsetX, - height: size + SHADOW_SPACE + spacing - }; - return (0, _$$_REQUIRE(_dependencyMap[10]).jsxs)(_reactNative.Animated.View, { - pointerEvents: "box-none", - style: [animatedViewStyle, parentStyle], - children: [(0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.View, { - children: (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(Touchable, { - testID: this.props.testID, - accessibilityLabel: this.props.accessibilityLabel, - background: (0, _$$_REQUIRE(_dependencyMap[9]).touchableBackground)(this.props.nativeFeedbackRippleColor, this.props.fixNativeFeedbackRadius), - activeOpacity: this.props.activeOpacity || _$$_REQUIRE(_dependencyMap[9]).DEFAULT_ACTIVE_OPACITY, - onPress: this.props.onPress, - children: (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.View, { - style: [buttonStyle, !hideShadow ? Object.assign({}, _$$_REQUIRE(_dependencyMap[9]).shadowStyle, this.props.shadowStyle) : null], - children: this.props.children - }) - }) - }), this._renderTitle()] - }); - } - }, { - key: "_renderTitle", - value: function _renderTitle() { - if (!this.props.title) return null; - var _this$props2 = this.props, - textContainerStyle = _this$props2.textContainerStyle, - hideLabelShadow = _this$props2.hideLabelShadow, - offsetX = _this$props2.offsetX, - parentSize = _this$props2.parentSize, - size = _this$props2.size, - position = _this$props2.position, - spaceBetween = _this$props2.spaceBetween; - var offsetTop = Math.max(size / 2 - 11, 0); - var positionStyles = { - top: offsetTop - }; - var hideShadow = hideLabelShadow === undefined ? this.props.hideShadow : hideLabelShadow; - - if (position !== "center") { - positionStyles[position] = offsetX + (parentSize - size) / 2 + size + spaceBetween; - } else { - positionStyles.right = WIDTH / 2 + size / 2 + spaceBetween; - } - - var textStyles = [styles.textContainer, positionStyles, !hideShadow && _$$_REQUIRE(_dependencyMap[9]).shadowStyle, textContainerStyle]; - var title = _react.default.isValidElement(this.props.title) ? this.props.title : (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.Text, { - allowFontScaling: false, - style: [styles.text, this.props.textStyle], - children: this.props.title - }); - return (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(TextTouchable, { - background: (0, _$$_REQUIRE(_dependencyMap[9]).touchableBackground)(this.props.nativeFeedbackRippleColor, this.props.fixNativeFeedbackRadius), - activeOpacity: this.props.activeOpacity || _$$_REQUIRE(_dependencyMap[9]).DEFAULT_ACTIVE_OPACITY, - onPress: this.props.onPress, - children: (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.View, { - style: textStyles, - children: title - }) - }); - } - }], [{ - key: "defaultProps", - get: function get() { - return { - active: true, - spaceBetween: 15, - useNativeFeedback: true, - activeOpacity: _$$_REQUIRE(_dependencyMap[9]).DEFAULT_ACTIVE_OPACITY, - fixNativeFeedbackRadius: false, - nativeFeedbackRippleColor: "rgba(255,255,255,0.75)" - }; - } - }, { - key: "propTypes", - get: function get() { - return { - active: _propTypes.default.bool, - useNativeFeedback: _propTypes.default.bool, - fixNativeFeedbackRadius: _propTypes.default.bool, - nativeFeedbackRippleColor: _propTypes.default.string, - activeOpacity: _propTypes.default.number - }; - } - }]); - }(_react.Component); - - var styles = _reactNative.StyleSheet.create({ - textContainer: { - position: "absolute", - paddingVertical: _$$_REQUIRE(_dependencyMap[9]).isAndroid ? 2 : 3, - paddingHorizontal: 8, - borderRadius: 3, - borderWidth: _reactNative.StyleSheet.hairlineWidth, - borderColor: "#eee", - backgroundColor: "white", - height: TEXT_HEIGHT - }, - text: { - flex: 1, - fontSize: 12, - color: "#444" - } - }); -},2681,[3,6,7,11,13,14,16,568,18,2682,179]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.alignItemsMap = exports.DEFAULT_ACTIVE_OPACITY = undefined; - exports.getTouchableComponent = getTouchableComponent; - exports.shadowStyle = exports.isAndroid = undefined; - exports.touchableBackground = touchableBackground; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var DEFAULT_ACTIVE_OPACITY = exports.DEFAULT_ACTIVE_OPACITY = 0.85; - var shadowStyle = exports.shadowStyle = { - shadowOpacity: 0.35, - shadowOffset: { - width: 0, - height: 5 - }, - shadowColor: "#000", - shadowRadius: 3, - elevation: 5 - }; - var alignItemsMap = exports.alignItemsMap = { - center: "center", - left: "flex-start", - right: "flex-end" - }; - var isAndroid = exports.isAndroid = _reactNative.Platform.OS === "android"; - - function getTouchableComponent(useNativeFeedback) { - if (useNativeFeedback === true && isAndroid === true) { - return _reactNative.TouchableNativeFeedback; - } - - return _reactNative.TouchableOpacity; - } - - function touchableBackground(color, fixRadius) { - if (isAndroid) { - if (_reactNative.Platform["Version"] >= 21) { - return _reactNative.TouchableNativeFeedback.Ripple(color || "rgba(255,255,255,0.75)", fixRadius); - } else { - _reactNative.TouchableNativeFeedback.SelectableBackground(); - } - } - - return undefined; - } -},2682,[18]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.VerticalMap = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var _OptionalPackages$get = _optionalPackageUtils.default.getMaps(), - MapView = _OptionalPackages$get.MapView, - Marker = _OptionalPackages$get.Marker, - Callout = _OptionalPackages$get.Callout; - - var VerticalMap = exports.VerticalMap = function (_React$Component) { - function VerticalMap(props) { - var _this; - - (0, _classCallCheck2.default)(this, VerticalMap); - _this = _callSuper(this, VerticalMap, [props]); - - var _global$getRssIndex = global.getRssIndex(), - latitude = _global$getRssIndex.latitude, - longitude = _global$getRssIndex.longitude; - - _this.defaultLatitude = parseFloat(latitude) || 41.578518; - _this.defaultLongitude = parseFloat(longitude) || -85.804958; - _this.state = { - data: props.data - }; - return _this; - } - - (0, _inherits2.default)(VerticalMap, _React$Component); - return (0, _createClass2.default)(VerticalMap, [{ - key: "getValueByKeyPath", - value: function getValueByKeyPath(element, key) { - var tokens = key.split("."); - var result = element; - tokens.forEach(function (token) { - result = result ? result[token] : result; - }); - return result; - } - }, { - key: "getCenterRegionOnData", - value: function getCenterRegionOnData(markers) { - var _this2 = this; - - var _this$props = this.props, - latitudeKey = _this$props.latitudeKey, - longitudeKey = _this$props.longitudeKey; - var latitudes = markers.map(function (marker) { - return _this2.getValueByKeyPath(marker, latitudeKey); - }).sort(function (a, b) { - return a - b; - }); - var longitudes = markers.map(function (marker) { - return _this2.getValueByKeyPath(marker, longitudeKey); - }).sort(function (a, b) { - return a - b; - }); - var middleLatitude = (latitudes[0] + latitudes[latitudes.length - 1]) / 2; - var middleLongitude = (longitudes[0] + longitudes[longitudes.length - 1]) / 2; - var latitudeDelta = latitudes[latitudes.length - 1] - latitudes[0]; - var longitudeDelta = longitudes[longitudes.length - 1] - longitudes[0]; - return { - latitude: middleLatitude || this.defaultLatitude, - longitude: middleLongitude || this.defaultLongitude, - latitudeDelta: latitudeDelta || 0.015, - longitudeDelta: longitudeDelta || 0.0121 - }; - } - }, { - key: "removeItemWithoutLocation", - value: function removeItemWithoutLocation(data) { - var _this3 = this; - - var _this$props2 = this.props, - latitudeKey = _this$props2.latitudeKey, - longitudeKey = _this$props2.longitudeKey; - return data.reduce(function (result, item) { - if (_this3.getValueByKeyPath(item, latitudeKey) && _this3.getValueByKeyPath(item, longitudeKey)) { - result.push(item); - } - - return result; - }, []); - } - }, { - key: "render", - value: function render() { - var _this4 = this; - - var _this$props3 = this.props, - style = _this$props3.style, - renderItem = _this$props3.renderItem, - renderCallout = _this$props3.renderCallout, - onItemPress = _this$props3.onItemPress, - itemKey = _this$props3.itemKey, - latitudeKey = _this$props3.latitudeKey, - longitudeKey = _this$props3.longitudeKey, - titleKey = _this$props3.titleKey, - getMarkerIcon = _this$props3.getMarkerIcon; - var data = this.state.data; - var markers = this.removeItemWithoutLocation(data); - - if (_optionalPackageUtils.default.isMapsAvailable()) { - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(MapView, { - style: style, - region: this.getCenterRegionOnData(markers), - children: markers.map(function (marker, index) { - if (renderItem) { - return renderItem({ - item: marker, - index: index - }); - } - - var extraProp = {}; - - if (getMarkerIcon) { - extraProp.image = getMarkerIcon(marker); - } - - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(Marker, Object.assign({ - title: _this4.getValueByKeyPath(marker, titleKey), - coordinate: { - latitude: _this4.getValueByKeyPath(marker, latitudeKey), - longitude: _this4.getValueByKeyPath(marker, longitudeKey) - } - }, extraProp, { - children: (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(Callout, { - onPress: function onPress() { - if (onItemPress) { - onItemPress(marker); - } - }, - children: renderCallout(marker) - }) - }), _this4.getValueByKeyPath(marker, itemKey)); - }) - }); - } - - return null; - } - }], [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(nextProps, prevState) { - var prevData = prevState.data; - var data = nextProps.data; - - if (_$$_REQUIRE(_dependencyMap[10]).JSUtils.equals(prevData, data)) { - return { - data: data - }; - } - - return null; - } - }]); - }(_react.default.Component); - - VerticalMap.propTypes = { - style: _propTypes.default.object.isRequired, - data: _propTypes.default.array.isRequired, - itemKey: _propTypes.default.func.isRequired, - renderItem: _propTypes.default.func, - renderCallout: _propTypes.default.func, - onItemPress: _propTypes.default.func, - latitudeKey: _propTypes.default.string, - longitudeKey: _propTypes.default.string, - titleKey: _propTypes.default.string, - getMarkerIcon: _propTypes.default.func - }; - VerticalMap.defaultProps = { - latitudeKey: "latitude", - longitudeKey: "longitude" - }; -},2683,[3,6,7,11,13,14,16,568,865,179,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/verticals/navigation/img", - "width": 2000, - "height": 394, - "scales": [1], - "hash": "f782f11b313b5c72922dfa380b1e9e2a", - "name": "monster_logo", - "type": "png" - }); -},2684,[1337]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.JobDetailScreen = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var JobDetailScreen = exports.JobDetailScreen = function (_NavigationBaseScreen) { - function JobDetailScreen() { - (0, _classCallCheck2.default)(this, JobDetailScreen); - return _callSuper(this, JobDetailScreen, arguments); - } - - (0, _inherits2.default)(JobDetailScreen, _NavigationBaseScreen); - return (0, _createClass2.default)(JobDetailScreen, [{ - key: "handleBackButton", - value: function handleBackButton() { - var navigation = this.props.navigation; - navigation.goBack(null); - return (0, _get2.default)((0, _getPrototypeOf2.default)(JobDetailScreen.prototype), "handleBackButton", this).call(this); - } - }, { - key: "getTag", - value: function getTag() { - return "Job Details"; - } - }, { - key: "render", - value: function render() { - var _getNavigationParams = (0, _$$_REQUIRE(_dependencyMap[8]).getNavigationParams)(this.props), - url = _getNavigationParams.url; - - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[10]).BaseWebView, { - source: { - uri: url - }, - progressColor: (0, _$$_REQUIRE(_dependencyMap[11]).getJobColor)(), - browser: true - }); - } - }]); - }(_$$_REQUIRE(_dependencyMap[8]).NavigationBaseScreen); -},2685,[3,6,7,11,85,13,14,16,2331,179,2042,2632]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = VerticalEventNavigator; - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[2]); - - var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var Header = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4])); - - var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5])); - - var _NavigationService = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - 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); } - - 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; } - - var Stack = _NavigationService.default.navigator.createStack(); - - var Tab = _NavigationService.default.navigator.createBottomTab(); - - function VerticalTabNavigator(props) { - return (0, _$$_REQUIRE(_dependencyMap[7]).jsxs)(Tab.Navigator, { - screenOptions: function screenOptions(tabProps) { - return { - headerShown: false, - gesturesEnabled: false, - tabBarShowLabel: false, - swipeEnabled: false, - tabBarStyle: { - backgroundColor: _$$_REQUIRE(_dependencyMap[8]).colors.white - }, - tabBarIcon: function tabBarIcon(_ref) { - var focused = _ref.focused; - var routeName = tabProps.route.name; - var iconName; - - if (routeName === "VerticalHomeScreen") { - iconName = "home"; - } else if (routeName === "VerticalFiltersScreen") { - iconName = "user-cog"; - } else if (routeName === "VerticalListScreen") { - iconName = "home"; - } else if (routeName === "VerticalSavedSearchScreen") { - iconName = "search"; - } else if (routeName === "VerticalFavoritesScreen") { - iconName = "heart"; - } - - var filtersIcon = false; - - var _getNavigationParams = (0, _$$_REQUIRE(_dependencyMap[9]).getNavigationParams)(tabProps), - _getNavigationParams$ = _getNavigationParams.filters, - filters = _getNavigationParams$ === undefined ? {} : _getNavigationParams$, - apiHomeOverride = _getNavigationParams.apiHomeOverride; - - var getParams = {}; - - if (apiHomeOverride) { - var _StringUtils$segmentU = _$$_REQUIRE(_dependencyMap[8]).StringUtils.segmentUrl(apiHomeOverride); - - getParams = _StringUtils$segmentU.getParams; - } - - if (apiHomeOverride && _$$_REQUIRE(_dependencyMap[8]).JSUtils.equals(filters, getParams)) { - filtersIcon = false; - } else if (filters && Object.keys(filters).length) { - filtersIcon = true; - } - - return (0, _$$_REQUIRE(_dependencyMap[7]).jsxs)(_reactNative.View, { - children: [(0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_iconComponent.default, { - type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, - name: iconName, - size: _$$_REQUIRE(_dependencyMap[8]).PlatformUtils.isTablet() || !_deviceUtils.default.isPortrait() ? 20 : 25, - color: focused ? (0, _$$_REQUIRE(_dependencyMap[10]).getEventColor)() : _$$_REQUIRE(_dependencyMap[8]).colors.grey400 - }), filtersIcon ? (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_reactNative.View, { - style: { - position: "absolute", - right: -5, - top: -5, - zIndex: 1 - }, - children: (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_iconComponent.default, { - type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, - name: "filter", - size: 10, - color: focused ? _$$_REQUIRE(_dependencyMap[8]).colors.md_red_900 : _$$_REQUIRE(_dependencyMap[8]).colors.grey400 - }) - }) : null] - }); - } - }; - }, - children: [(0, _$$_REQUIRE(_dependencyMap[7]).jsx)(Tab.Screen, { - name: "VerticalListScreen", - children: function children(tabProps) { - var _getNavigationParams2 = (0, _$$_REQUIRE(_dependencyMap[9]).getNavigationParams)(props), - user = _getNavigationParams2.user, - pass = _getNavigationParams2.pass, - portal = _getNavigationParams2.portal, - apiHomeOverride = _getNavigationParams2.apiHomeOverride; - - return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_$$_REQUIRE(_dependencyMap[11]).EventListScreen, Object.assign({ - apiHomeOverride: apiHomeOverride, - user: user, - pass: pass, - portal: portal - }, tabProps)); - } - }), (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(Tab.Screen, { - name: "VerticalFiltersScreen", - children: function children(tabProps) { - var _getNavigationParams3 = (0, _$$_REQUIRE(_dependencyMap[9]).getNavigationParams)(props), - user = _getNavigationParams3.user, - pass = _getNavigationParams3.pass, - portal = _getNavigationParams3.portal, - extraSearchField = _getNavigationParams3.extraSearchField; - - return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_$$_REQUIRE(_dependencyMap[12]).EventFilterScreen, Object.assign({ - user: user, - pass: pass, - portal: portal, - extraSearchField: extraSearchField - }, tabProps)); - } - }), (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(Tab.Screen, { - name: "VerticalFavoritesScreen", - children: function children(tabProps) { - var _getNavigationParams4 = (0, _$$_REQUIRE(_dependencyMap[9]).getNavigationParams)(props), - user = _getNavigationParams4.user, - pass = _getNavigationParams4.pass, - portal = _getNavigationParams4.portal; - - return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_$$_REQUIRE(_dependencyMap[13]).EventFavoritesScreen, Object.assign({ - user: user, - pass: pass, - portal: portal - }, tabProps)); - } - })] - }); - } - - function VerticalEventNavigator() { - return (0, _$$_REQUIRE(_dependencyMap[7]).jsxs)(Stack.Navigator, { - screenOptions: _NavigationService.default.getStackScreenOptions(), - initialRouteName: "VerticalTabNavigator", - children: [(0, _$$_REQUIRE(_dependencyMap[7]).jsx)(Stack.Screen, { - name: "VerticalTabNavigator", - component: VerticalTabNavigator, - options: function options(_ref2) { - var navigation = _ref2.navigation; - return { - header: function header() { - return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_$$_REQUIRE(_dependencyMap[14]).ActionBar, { - considerSafeAreaTop: true, - left: Header._getHeaderLeftButtonsBackButtonOnly(navigation, (0, _$$_REQUIRE(_dependencyMap[10]).getEventColor)()), - center: Header._getHeader(global.strings("local_events"), global.strings("powered_by_who", { - who: "" - }), function () { - navigation.navigate("VerticalWebScreen", { - url: (0, _$$_REQUIRE(_dependencyMap[10]).getCitySparkUrl)() - }); - }, (0, _$$_REQUIRE(_dependencyMap[10]).getCitySparkLogo)()), - right: Header._getHeaderRightButton(navigation, (0, _$$_REQUIRE(_dependencyMap[10]).getEventColor)(), "", global.strings("btn_add_event"), function () { - navigation.navigate("VerticalWebScreen", { - url: (0, _$$_REQUIRE(_dependencyMap[10]).getNewEventUrl)() - }); - }) - }); - } - }; - } - }), (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(Stack.Screen, { - name: "VerticalDetailScreen", - component: _$$_REQUIRE(_dependencyMap[15]).EventDetailScreen, - options: function options(_ref3) { - var navigation = _ref3.navigation; - return { - header: function header() { - return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_$$_REQUIRE(_dependencyMap[14]).ActionBar, { - considerSafeAreaTop: true, - left: Header._getHeaderLeftButtonsBackButtonOnly(navigation, (0, _$$_REQUIRE(_dependencyMap[10]).getEventColor)()), - center: Header._getHeader(global.strings("local_events"), global.strings("powered_by_who", { - who: "" - }), function () { - navigation.navigate("VerticalWebScreen", { - url: (0, _$$_REQUIRE(_dependencyMap[10]).getCitySparkUrl)() - }); - }, (0, _$$_REQUIRE(_dependencyMap[10]).getCitySparkLogo)()), - right: Header._getHeaderRightButton(navigation, (0, _$$_REQUIRE(_dependencyMap[10]).getEventColor)(), "", global.strings("btn_add_event"), function () { - navigation.navigate("VerticalWebScreen", { - url: (0, _$$_REQUIRE(_dependencyMap[10]).getNewEventUrl)() - }); - }) - }); - } - }; - } - }), (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(Stack.Screen, { - name: "VerticalSavedSearchScreen", - options: function options(_ref4) { - var navigation = _ref4.navigation; - return { - header: function header() { - return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_$$_REQUIRE(_dependencyMap[14]).ActionBar, { - considerSafeAreaTop: true, - left: Header._getHeaderLeftButtonsBackButtonOnly(navigation, (0, _$$_REQUIRE(_dependencyMap[10]).getEventColor)()), - center: Header._getHeader(global.strings("local_events"), global.strings("powered_by_who", { - who: "" - }), function () { - navigation.navigate("VerticalWebScreen", { - url: (0, _$$_REQUIRE(_dependencyMap[10]).getCitySparkUrl)() - }); - }, (0, _$$_REQUIRE(_dependencyMap[10]).getCitySparkLogo)()), - right: Header._getHeaderRightButton(navigation, (0, _$$_REQUIRE(_dependencyMap[10]).getEventColor)(), "", global.strings("btn_add_event"), function () { - navigation.navigate("VerticalWebScreen", { - url: (0, _$$_REQUIRE(_dependencyMap[10]).getNewEventUrl)() - }); - }) - }); - }, - gesturesEnabled: false - }; - }, - children: function children(props) { - var _getNavigationParams5 = (0, _$$_REQUIRE(_dependencyMap[9]).getNavigationParams)(props), - user = _getNavigationParams5.user, - pass = _getNavigationParams5.pass, - portal = _getNavigationParams5.portal, - _getNavigationParams6 = _getNavigationParams5.labels, - labels = _getNavigationParams6 === undefined ? [] : _getNavigationParams6; - - return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_$$_REQUIRE(_dependencyMap[16]).EventSearchScreen, Object.assign({ - user: user, - pass: pass, - portal: portal, - labels: labels - }, props)); - } - }), (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(Stack.Screen, { - name: "VerticalWebScreen", - component: _$$_REQUIRE(_dependencyMap[17]).EventWebScreen, - options: function options(_ref5) { - var navigation = _ref5.navigation; - return { - header: function header() { - return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_$$_REQUIRE(_dependencyMap[14]).ActionBar, { - considerSafeAreaTop: true, - left: Header._getHeaderLeftButtonsBackButtonOnly(navigation, (0, _$$_REQUIRE(_dependencyMap[10]).getEventColor)()), - center: Header._getHeader(global.strings("local_events"), global.strings("powered_by_who", { - who: "" - }), function () { - navigation.navigate("VerticalWebScreen", { - url: (0, _$$_REQUIRE(_dependencyMap[10]).getCitySparkUrl)() - }); - }, (0, _$$_REQUIRE(_dependencyMap[10]).getCitySparkLogo)()) - }); - }, - gesturesEnabled: false - }; - } - })] - }); - } -},2686,[3,16,18,434,2630,1918,1999,179,438,2331,2632,2687,2711,2727,2336,2730,2732,2735]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2687,[2688]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.EventListScreen = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _eventBaseScreen = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var EventListScreen = exports.EventListScreen = function (_EventBaseScreen) { - function EventListScreen(props) { - var _this; - - (0, _classCallCheck2.default)(this, EventListScreen); - _this = _callSuper(this, EventListScreen, [props]); - _this.state = { - searches: [], - loading: true - }; - return _this; - } - - (0, _inherits2.default)(EventListScreen, _EventBaseScreen); - return (0, _createClass2.default)(EventListScreen, [{ - key: "componentDidMount", - value: function () { - var _componentDidMount = (0, _asyncToGenerator2.default)(function* () { - try { - yield this.loadPromotions(); - this.setState({ - loading: false - }); - } catch (error) {} - }); - - function componentDidMount() { - return _componentDidMount.apply(this, arguments); - } - - return componentDidMount; - }() - }, { - key: "didFocus", - value: function didFocus() { - (0, _get2.default)((0, _getPrototypeOf2.default)(EventListScreen.prototype), "didFocus", this).call(this); - - this._retrieveData(); - } - }, { - key: "_retrieveData", - value: function _retrieveData() { - var searchVerticalManager = global.getVerticalsConfig().getEvents(); - var result = searchVerticalManager.getSearches(); - this.setState({ - searches: result - }); - } - }, { - key: "render", - value: function render() { - var loading = this.state.loading; - var searchVerticalManager = global.getVerticalsConfig().getEvents(); - var _this$props = this.props, - portal = _this$props.portal, - apiHomeOverride = _this$props.apiHomeOverride; - var filters = (0, _$$_REQUIRE(_dependencyMap[10]).getNavigationParams)(this.props).filters || {}; - var apiToOverride; - - if (filters && (Object.keys(filters).length > 0 || !apiHomeOverride)) { - filters.includeLabels = true; - filters.portal = portal; - } else { - apiToOverride = apiHomeOverride; - } - - return !loading ? this.renderList(filters, searchVerticalManager, apiToOverride) : null; - } - }]); - }(_eventBaseScreen.default); - - EventListScreen.propTypes = { - apiHomeOverride: _propTypes.default.string, - portal: _propTypes.default.string.isRequired, - pass: _propTypes.default.string.isRequired, - user: _propTypes.default.string.isRequired, - navigation: _propTypes.default.shape({ - getParam: _propTypes.default.func.isRequired - }) - }; -},2688,[3,270,6,7,11,85,13,14,568,2689,2331]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[9]); - - var _imageComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - - var _AdsHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); - - var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[14])); - - var _tecnaviaPlatformUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); - - 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); } - - 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; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var EventBaseScreen = exports.default = function (_NavigationBaseScreen) { - function EventBaseScreen(props) { - var _this; - - (0, _classCallCheck2.default)(this, EventBaseScreen); - _this = _callSuper(this, EventBaseScreen, [props]); - _this.state = { - sortValue: 0 - }; - return _this; - } - - (0, _inherits2.default)(EventBaseScreen, _NavigationBaseScreen); - return (0, _createClass2.default)(EventBaseScreen, [{ - key: "loadPromotions", - value: function () { - var _loadPromotions = (0, _asyncToGenerator2.default)(function* () { - var _this2 = this; - - var portal = this.props.portal; - var params = (0, _$$_REQUIRE(_dependencyMap[16]).getNavigationParams)(this.props); - var filter = { - portal: portal, - numberOfDays: 365, - asOfDate: _$$_REQUIRE(_dependencyMap[17]).DateUtils.getDateString().substring(0, 10) - }; - var _params$user = params.user, - user = _params$user === undefined ? "" : _params$user, - _params$pass = params.pass, - pass = _params$pass === undefined ? "" : _params$pass; - var username = user; - var password = pass; - var config = { - auth: { - username: username, - password: password - } - }; - this.featuredIds = []; - this.enhancedIds = []; - this.ads = []; - - try { - var featuredResults = yield _Api.default.get((0, _$$_REQUIRE(_dependencyMap[18]).getFeaturedEventApi)(), config, filter); - var model = global.getAdsConfig().getAdEvent(); - var ad = global.getAdsConfig().getAdComponent(model); - this.notice = { - key: "notice", - data: ad - }; - featuredResults.data.forEach(function (event) { - if (event.eventId && event.type === "Featured" && !_this2.featuredIds.includes(event.eventId)) { - _this2.featuredIds.push(event.eventId); - } - - if (event.eventId && event.type === "Enhanced") { - _this2.enhancedIds.push(event.eventId); - } - - if (event.eventId && event.type === "Premium") { - _this2.featuredIds.push(event.eventId); - - _this2.enhancedIds.push(event.eventId); - } - - if (event.promoImage && event.type === "Display Ad") { - _this2.ads.push({ - isAd: true, - promoImage: event.promoImage, - destinationUrl: event.destinationUrl - }); - } - }); - this.ads.push({ - isAd: true - }); - } catch (error) {} - }); - - function loadPromotions() { - return _loadPromotions.apply(this, arguments); - } - - return loadPromotions; - }() - }, { - key: "handleBackButton", - value: function handleBackButton() { - var navigation = this.props.navigation; - navigation.goBack(null); - return (0, _get2.default)((0, _getPrototypeOf2.default)(EventBaseScreen.prototype), "handleBackButton", this).call(this); - } - }, { - key: "getClosestEventDate", - value: function getClosestEventDate(event) { - var start = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new Date(); - var numberOfEventInstances = event.instances.length; - var startDate; - var outputResult = ""; - - var now = _$$_REQUIRE(_dependencyMap[17]).DateUtils.getMomentStartOfDay(start); - - for (var i = 0; i < numberOfEventInstances; i++) { - startDate = _$$_REQUIRE(_dependencyMap[17]).DateUtils.getMomentDate(event.instances[i].startDateTime); - - if (startDate >= now) { - outputResult += startDate.utc().format("dddd, MMMM D"); - return outputResult; - } - } - - return outputResult; - } - }, { - key: "getSortedSections", - value: function getSortedSections(items, sorting, filters) { - var _this3 = this; - - var sections = []; - var keys = []; - var eventsAdded = []; - items.forEach(function (item) { - var newSection = ""; - newSection = _this3.getClosestEventDate(item, filters.startDate); - - if (newSection) { - var eventId = String(item.eventId); - - if (!keys.includes(newSection)) { - keys.push(newSection); - sections.push({ - title: newSection, - data: [item] - }); - eventsAdded.push(eventId); - } else if (!eventsAdded.includes(eventId)) { - var index = sections.findIndex(function (section) { - return section.title === newSection; - }); - - if (index > -1) { - eventsAdded.push(eventId); - sections[index].data.push(item); - } - } - } - }); - var numberOfAds = this.ads.length; - - if (numberOfAds) { - var counter = 0; - var adIndex = 0; - - for (var i = 0; i < sections.length; i++) { - for (var k = 0; k < sections[i].data.length; k++) { - counter += 1; - - if (counter === 3 || (counter - 3) % 10 === 0) { - sections[i].data.splice(k, 0, this.ads[adIndex % numberOfAds]); - adIndex += 1; - } - } - } - - sections[0].data.splice(0, 0, this.notice); - } - - return sections; - } - }, { - key: "getMapProps", - value: function getMapProps() { - var _this$props = this.props, - navigation = _this$props.navigation, - user = _this$props.user, - pass = _this$props.pass, - portal = _this$props.portal; - return { - enable: true, - renderCallout: this.renderCallout, - titleKey: "name", - itemKey: "eventId", - latitudeKey: "location.latitude", - longitudeKey: "location.longitude", - getMarkerIcon: _$$_REQUIRE(_dependencyMap[19]).eventIcon, - onItemPress: function onItemPress(clicked) { - navigation.navigate("VerticalDetailScreen", { - id: clicked.eventId, - user: user, - pass: pass, - portal: portal - }); - } - }; - } - }, { - key: "getOrderProps", - value: function getOrderProps() { - var iconStyle = { - fontSize: 20, - height: 22, - color: _$$_REQUIRE(_dependencyMap[17]).colors.white - }; - var activeIconStyle = { - fontSize: 20, - height: 22, - color: (0, _$$_REQUIRE(_dependencyMap[18]).getEventColor)() - }; - return { - items: [[{ - label: global.strings("sort_by_popularity"), - Component: (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_iconComponent.default, { - type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, - name: "star", - style: iconStyle - }), - ActiveComponent: (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_iconComponent.default, { - type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, - name: "star", - style: activeIconStyle - }), - param: EventBaseScreen.SORT_POPULARITY - }], [{ - label: global.strings("sort_by_date"), - Component: (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_iconComponent.default, { - type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, - name: "calendar-alt", - style: iconStyle - }), - ActiveComponent: (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_iconComponent.default, { - type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, - name: "calendar-alt", - style: activeIconStyle - }), - param: EventBaseScreen.SORT_DATE - }], [{ - label: global.strings("sort_by_name"), - Component: (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_iconComponent.default, { - type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, - name: "sort-alpha-down", - style: iconStyle - }), - ActiveComponent: (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_iconComponent.default, { - type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, - name: "sort-alpha-down", - style: activeIconStyle - }), - param: EventBaseScreen.SORT_NAME + "+asc" - }], [{ - label: global.strings("sort_by_name_reverse"), - Component: (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_iconComponent.default, { - type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, - name: "sort-alpha-up", - style: iconStyle - }), - ActiveComponent: (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_iconComponent.default, { - type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, - name: "sort-alpha-up", - style: activeIconStyle - }), - param: EventBaseScreen.SORT_NAME + "+desc" - }]], - defaultSort: EventBaseScreen.SORT_POPULARITY - }; - } - }, { - key: "renderSectionHeader", - value: function renderSectionHeader(data) { - var title = ""; - - if (data && data.section && data.section.title) { - title = data.section.title; - } - - return (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.View, { - style: { - height: title ? 40 : 0, - flexDirection: "row", - justifyContent: "flex-start", - alignItems: "center", - padding: 0, - opacity: 0.9, - backgroundColor: (0, _$$_REQUIRE(_dependencyMap[18]).getEventColor)() - }, - children: (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_fontText.default, { - style: { - fontSize: 18, - fontWeight: "bold", - color: _$$_REQUIRE(_dependencyMap[17]).colors.md_white_1000, - paddingHorizontal: 10 - }, - children: title - }) - }); - } - }, { - key: "renderItem", - value: function renderItem(item, filters) { - var _this$props2 = this.props, - navigation = _this$props2.navigation, - user = _this$props2.user, - pass = _this$props2.pass, - portal = _this$props2.portal; - var params = (0, _$$_REQUIRE(_dependencyMap[16]).getNavigationParams)(this.props); - var adWidth = parseInt(params.adWidth || "300", 10); - var adHeight = parseInt(params.adHeight || "250", 10); - var adFallback = params.adFallback; - - if (item.isAd) { - if (item.promoImage && item.destinationUrl) { - return (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.TouchableOpacity, { - onPress: function onPress() { - return _tecnaviaPlatformUtils.default.openURL(item.destinationUrl); - }, - children: (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_imageComponent.default, { - source: { - uri: item.promoImage - }, - forceProgressComponent: true, - style: { - marginTop: 20, - marginBottom: 20, - height: adWidth, - width: adWidth, - alignSelf: "center" - } - }) - }); - } - - if (item.promoImage && !item.destinationUrl && item.eventId) { - return (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.TouchableOpacity, { - onPress: function onPress() { - navigation.navigate("VerticalDetailScreen", { - id: item.eventId, - user: user, - pass: pass, - portal: portal, - isVirtual: item.labels ? item.labels.includes("csVirtual") : false - }); - }, - children: (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_imageComponent.default, { - source: { - uri: item.promoImage - }, - forceProgressComponent: true, - style: { - marginTop: 20, - marginBottom: 20, - height: adWidth, - width: adWidth, - alignSelf: "center" - } - }) - }); - } - - var adUnitId = params.adUnitId; - return (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.View, { - style: { - display: "flex", - flexDirection: "row", - justifyContent: "center", - marginTop: 20, - marginBottom: 20 - }, - children: _AdsHelper.default.getNativeAdComponent({ - unitId: adUnitId, - width: adWidth, - height: adHeight, - fallback: adFallback - }) - }); - } - - if (item.key === "notice") { - return (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.View, { - style: { - flexDirection: "row", - justifyContent: "center", - margin: 10 - }, - children: item.data - }); - } - - return (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_$$_REQUIRE(_dependencyMap[21]).EventListItem, { - item: item, - onItemPress: function onItemPress(clicked) { - navigation.navigate("VerticalDetailScreen", { - id: clicked.eventId, - user: user, - pass: pass, - portal: portal, - isVirtual: item.labels ? item.labels.includes("csVirtual") : false - }); - }, - manager: global.getVerticalsConfig().getEvents(), - color: (0, _$$_REQUIRE(_dependencyMap[18]).getEventColor)(), - startDate: filters.startDate, - endDate: filters.endDate, - baseLatitude: filters.latitude, - baseLongitude: filters.longitude, - enhanced: this.enhancedIds.includes(item.eventId), - portal: portal - }); - } - }, { - key: "renderCallout", - value: function renderCallout(item) { - return (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_$$_REQUIRE(_dependencyMap[22]).EventCustomCallout, { - title: item.name, - image: item.primaryImage ? item.primaryImage.smallImageUrl : null, - description: item.eventId, - date: item.seriesStart - }); - } - }, { - key: "renderList", - value: function renderList(filters, manager, apiHomeOverride) { - var _this4 = this; - - var api = apiHomeOverride || (0, _$$_REQUIRE(_dependencyMap[18]).getEventApi)(); - var _this$props3 = this.props, - navigation = _this$props3.navigation, - user = _this$props3.user, - pass = _this$props3.pass, - portal = _this$props3.portal; - return (0, _$$_REQUIRE(_dependencyMap[20]).jsxs)(_reactNative.View, { - style: { - flex: 1 - }, - children: [(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_$$_REQUIRE(_dependencyMap[23]).EventFeaturedComponent, { - getItemById: _$$_REQUIRE(_dependencyMap[18]).getEventById, - featuredApi: (0, _$$_REQUIRE(_dependencyMap[18]).getFeaturedEventApi)(), - featuredEvents: this.featuredIds, - config: { - auth: { - username: user, - password: pass - } - }, - normalizeResults: function normalizeResults(res) { - return { - items: res.events - }; - }, - skipDefaultParams: true, - portal: portal, - onEventPress: function onEventPress(id) { - navigation.navigate("VerticalDetailScreen", { - id: id, - user: user, - pass: pass, - portal: portal - }); - } - }), (0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_$$_REQUIRE(_dependencyMap[24]).VerticalList, { - color: (0, _$$_REQUIRE(_dependencyMap[18]).getEventColor)(), - api: api, - config: { - auth: { - username: user, - password: pass - } - }, - params: filters, - normalizeResults: function normalizeResults(res) { - return { - items: res.events - }; - }, - getFilterNames: function getFilterNames(rows, sort, currentPage) { - var sortValue = typeof sort === "string" ? sort.split("+") : undefined; - return { - limit: rows, - sortBy: sortValue ? sortValue[0] : sort, - page: currentPage, - sortAsc: sortValue && sortValue[1] === "desc" ? false : undefined - }; - }, - map: this.getMapProps(), - order: this.getOrderProps(), - enableInfiniteScroll: true, - skipDefaultParams: true, - serverSidePaging: false, - searchVerticalManager: manager, - renderItem: function renderItem(_ref) { - var item = _ref.item; - return _this4.renderItem(item, filters); - }, - getSections: function getSections(items, sorting) { - return _this4.getSortedSections(items, sorting, filters); - }, - renderSectionHeader: this.renderSectionHeader, - onErrorPress: function onErrorPress() { - navigation.navigate("VerticalFiltersScreen"); - }, - onEmptyPress: function onEmptyPress() { - navigation.navigate("VerticalFiltersScreen"); - }, - style: { - paddingVertical: 5 - } - })] - }); - } - }]); - }(_$$_REQUIRE(_dependencyMap[16]).NavigationBaseScreen); - - EventBaseScreen.SORT_POPULARITY = 0; - EventBaseScreen.SORT_DATE = 1; - EventBaseScreen.SORT_NAME = 2; -},2689,[3,270,6,7,11,85,13,14,16,18,574,800,407,2218,1918,2018,2331,438,2632,2690,179,2704,2706,2708,2674]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2690,[2691]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.eventIcon = eventIcon; - - function eventIcon(marker, filterCategory) { - var out; - var id = marker.categories[0] ? marker.categories[0].categoryId : -1; - - if (filterCategory) { - id = filterCategory; - } - - switch (id) { - case 2: - out = _$$_REQUIRE(_dependencyMap[0]); - break; - - case 3: - out = _$$_REQUIRE(_dependencyMap[1]); - break; - - case 4: - out = _$$_REQUIRE(_dependencyMap[2]); - break; - - case 5: - out = _$$_REQUIRE(_dependencyMap[3]); - break; - - case 6: - out = _$$_REQUIRE(_dependencyMap[4]); - break; - - case 7: - out = _$$_REQUIRE(_dependencyMap[5]); - break; - - case 8: - out = _$$_REQUIRE(_dependencyMap[6]); - break; - - case 10: - out = _$$_REQUIRE(_dependencyMap[7]); - break; - - case 14: - out = _$$_REQUIRE(_dependencyMap[8]); - break; - - case 15: - out = _$$_REQUIRE(_dependencyMap[9]); - break; - - case 76: - out = _$$_REQUIRE(_dependencyMap[10]); - break; - - case 390: - out = _$$_REQUIRE(_dependencyMap[11]); - break; - - default: - out = _$$_REQUIRE(_dependencyMap[11]); - break; - } - - return out; - } -},2691,[2692,2693,2694,2695,2696,2697,2698,2699,2700,2701,2702,2703]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/verticals/event-icons/icons", - "width": 33, - "height": 44, - "scales": [1], - "hash": "f6a5204893e0a85af94682d9020ed1dd", - "name": "2", - "type": "png" - }); -},2692,[1337]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/verticals/event-icons/icons", - "width": 33, - "height": 44, - "scales": [1], - "hash": "26beddc43143443aa67b230f273f9fb2", - "name": "3", - "type": "png" - }); -},2693,[1337]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/verticals/event-icons/icons", - "width": 33, - "height": 44, - "scales": [1], - "hash": "2f15106a97eca883b6cfaf85b1d5a9a7", - "name": "4", - "type": "png" - }); -},2694,[1337]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/verticals/event-icons/icons", - "width": 33, - "height": 44, - "scales": [1], - "hash": "f9bc7e630f61cb611aa95fb6d9d49282", - "name": "5", - "type": "png" - }); -},2695,[1337]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/verticals/event-icons/icons", - "width": 33, - "height": 44, - "scales": [1], - "hash": "3925bc3bb2e4ac320a5cbc3fd2c6e494", - "name": "6", - "type": "png" - }); -},2696,[1337]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/verticals/event-icons/icons", - "width": 33, - "height": 44, - "scales": [1], - "hash": "d27b56206d43f01cc144ebc65fc2efa5", - "name": "7", - "type": "png" - }); -},2697,[1337]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/verticals/event-icons/icons", - "width": 33, - "height": 44, - "scales": [1], - "hash": "41a839b11e9be3d93f8f023cd0628009", - "name": "8", - "type": "png" - }); -},2698,[1337]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/verticals/event-icons/icons", - "width": 33, - "height": 44, - "scales": [1], - "hash": "65a4d260cc3cf40a53b448cdfadf1b34", - "name": "10", - "type": "png" - }); -},2699,[1337]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/verticals/event-icons/icons", - "width": 35, - "height": 44, - "scales": [1], - "hash": "b23a4381adba88f0a0a35e11e6906bb7", - "name": "14", - "type": "png" - }); -},2700,[1337]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/verticals/event-icons/icons", - "width": 33, - "height": 44, - "scales": [1], - "hash": "b88bdba86ef801b7adfa873d39827db9", - "name": "15", - "type": "png" - }); -},2701,[1337]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/verticals/event-icons/icons", - "width": 33, - "height": 44, - "scales": [1], - "hash": "cbb96fc80a91bdadbd5f0c09c706a68d", - "name": "76", - "type": "png" - }); -},2702,[1337]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - module.exports = _$$_REQUIRE(_dependencyMap[0]).registerAsset({ - "__packager_asset": true, - "httpServerLocation": "/assets/src/views/verticals/event-icons/icons", - "width": 33, - "height": 44, - "scales": [1], - "hash": "356463c16a6c2a9b77f7059c3a40f5e5", - "name": "390", - "type": "png" - }); -},2703,[1337]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.EventListItem = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[8]); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _reactNativeLinearGradient = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _iconTile = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - var _blurImageComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - - var _fontText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[13])); - - var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14])); - - var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[15])); - - 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); } - - 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; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var EventListItem = exports.EventListItem = function (_React$Component) { - function EventListItem() { - var _this; - - (0, _classCallCheck2.default)(this, EventListItem); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _callSuper(this, EventListItem, [].concat(args)); - - _this.onShare = function () { - var _ref = (0, _asyncToGenerator2.default)(function* (message, id) { - var portal = _this.props.portal; - - try { - yield _reactNative.Share.share({ - message: message, - url: global.strings("share_event_url", { - portal: portal, - id: id - }) - }); - } catch (error) {} - }); - - return function (_x, _x2) { - return _ref.apply(this, arguments); - }; - }(); - - return _this; - } - - (0, _inherits2.default)(EventListItem, _React$Component); - return (0, _createClass2.default)(EventListItem, [{ - key: "shouldComponentUpdate", - value: function shouldComponentUpdate() { - return false; - } - }, { - key: "getDistanceString", - value: function getDistanceString(item) { - var baseLatitude = this.props.baseLatitude || global.getRssIndex().latitude; - var baseLongitude = this.props.baseLongitude || global.getRssIndex().longitude; - var manager = global.getVerticalsConfig().getEvents(); - var lastSearch = manager.getLastSearch(); - - if (!lastSearch || !item.location || !item.location.latitude || !item.location.longitude) { - return ""; - } - - var pi = Math.PI; - var lat1 = parseFloat(baseLatitude, 10) * pi / 180; - var lon1 = parseFloat(baseLongitude, 10) * pi / 180; - var lat2 = parseFloat(item.location.latitude, 10) * pi / 180; - var lon2 = parseFloat(item.location.longitude, 10) * pi / 180; - var R = 3958.75; - var x = (lon2 - lon1) * Math.cos((lat1 + lat2) / 2); - var y = lat2 - lat1; - var d = Math.sqrt(x * x + y * y) * R; - return "| " + d.toFixed(1) + " mi"; - } - }, { - key: "getClosestEventDate", - value: function getClosestEventDate(event) { - var start = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new Date(); - var numberOfEventInstances = event.instances.length; - var startDate; - var endDate; - var outputResult = ""; - - var now = _$$_REQUIRE(_dependencyMap[16]).DateUtils.getMomentStartOfDay(start); - - for (var i = 0; i < numberOfEventInstances; i++) { - startDate = _$$_REQUIRE(_dependencyMap[16]).DateUtils.getMomentDate(event.instances[i].startDateTime); - endDate = event.instances[i].endDateTime ? _$$_REQUIRE(_dependencyMap[16]).DateUtils.getMomentDate(event.instances[i].endDateTime) : null; - - if (startDate >= now) { - outputResult += startDate.utc().format("LLLL"); - outputResult += endDate ? endDate.utc().format(" - hh:mm A") : ""; - return outputResult; - } - } - - now = _$$_REQUIRE(_dependencyMap[16]).DateUtils.getMomentStartOfDay(start).utc(); - startDate = _$$_REQUIRE(_dependencyMap[16]).DateUtils.getMomentDate(event.instances[numberOfEventInstances - 1].startDateTime).utc().format("YYYY MM DD, hh:mm a"); - - if (event.instances[numberOfEventInstances - 1].startDateTime) { - endDate = _$$_REQUIRE(_dependencyMap[16]).DateUtils.getMomentDate(event.instances[numberOfEventInstances - 1].endDateTime); - } - - if (endDate && endDate > now) { - outputResult += startDate; - outputResult += endDate.format(" - hh:mm a"); - } else { - outputResult = global.strings("msg_event_over"); - } - - return outputResult; - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props = this.props, - item = _this$props.item, - manager = _this$props.manager, - color = _this$props.color, - startDate = _this$props.startDate, - onItemPress = _this$props.onItemPress, - enhanced = _this$props.enhanced; - var location = item.location || {}; - var sep = location.locationName ? " | " : ""; - return (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_reactNative.TouchableWithoutFeedback, { - onPress: function onPress() { - if (onItemPress) { - onItemPress(item); - } - }, - children: (0, _$$_REQUIRE(_dependencyMap[17]).jsxs)(_reactNative.View, { - style: enhanced ? _$$_REQUIRE(_dependencyMap[18]).styles.enhanced : _$$_REQUIRE(_dependencyMap[18]).styles.line, - children: [(0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_reactNative.View, { - children: item.primaryImage ? (0, _$$_REQUIRE(_dependencyMap[17]).jsxs)(_reactNative.View, { - children: [(0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_blurImageComponent.default, { - image: _$$_REQUIRE(_dependencyMap[16]).PlatformUtils.isTablet() ? item.primaryImage.largeImageUrl : item.primaryImage.mediumImageUrl, - style: _$$_REQUIRE(_dependencyMap[16]).PlatformUtils.isTablet() ? _$$_REQUIRE(_dependencyMap[18]).styles.tabletImage : _$$_REQUIRE(_dependencyMap[18]).styles.image - }), (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_reactNativeLinearGradient.default, { - style: _$$_REQUIRE(_dependencyMap[16]).PlatformUtils.isTablet() ? _$$_REQUIRE(_dependencyMap[18]).styles.tabletGradient : _$$_REQUIRE(_dependencyMap[18]).styles.gradient, - colors: [_$$_REQUIRE(_dependencyMap[16]).colors.transparent, _$$_REQUIRE(_dependencyMap[16]).colors.transparent, _$$_REQUIRE(_dependencyMap[16]).colors.transparent200] - }), (0, _$$_REQUIRE(_dependencyMap[17]).jsxs)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[18]).styles.cardBottom, - children: [(0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_fontText.default, { - style: item.primaryImage ? _$$_REQUIRE(_dependencyMap[18]).styles.title : _$$_REQUIRE(_dependencyMap[18]).styles.titleNoImage, - type: _fontText.Type.medium, - children: item.name - }), (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_fontText.default, { - style: item.primaryImage ? _$$_REQUIRE(_dependencyMap[18]).styles.description : _$$_REQUIRE(_dependencyMap[18]).styles.descriptionNoImage, - children: "" + (location.locationName || "") + sep + (location.city || "") + ", " + (location.state || "") + " " + this.getDistanceString(item) - }), (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_fontText.default, { - style: item.primaryImage ? _$$_REQUIRE(_dependencyMap[18]).styles.description : _$$_REQUIRE(_dependencyMap[18]).styles.descriptionNoImage, - children: "" + this.getClosestEventDate(item, startDate) - })] - })] - }) : (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[18]).styles.noImageView, - children: (0, _$$_REQUIRE(_dependencyMap[17]).jsxs)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[18]).styles.cardBottomNoImage, - children: [(0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[18]).styles.titleNoImage, - type: _fontText.Type.bold, - children: item.name - }), (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[18]).styles.descriptionNoImage, - children: "" + (location.locationName || "") + sep + (location.city || "") + ", " + (location.state || "") + " " + this.getDistanceString(item) - }), (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_fontText.default, { - style: item.primaryImage ? _$$_REQUIRE(_dependencyMap[18]).styles.description : _$$_REQUIRE(_dependencyMap[18]).styles.descriptionNoImage, - children: "" + this.getClosestEventDate(item, startDate) - })] - }) - }) - }), (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[18]).styles.icons, - children: (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_iconTile.default, { - style: { - alignSelf: "flex-start" - }, - icons: [{ - title: global.strings("action_share"), - component: function component(style) { - return (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_iconComponent.default, { - type: _iconComponent.TecnaviaIconType.MATERIAL_ICONS, - name: "share", - style: style - }); - }, - onPress: function onPress(clicked) { - _this2.onShare(clicked.name, clicked.eventId); - } - }, { - title: !manager.favoriteIsStored(item) ? global.strings("action_save_for_later") : global.strings("action_remove_from_favorites"), - component: function component(style) { - return (0, _$$_REQUIRE(_dependencyMap[17]).jsx)(_$$_REQUIRE(_dependencyMap[19]).IconFavorite, { - item: item, - size: 20, - style: style, - eventToggleItemChecker: function eventToggleItemChecker(currentItem, params) { - return currentItem.eventId === params.eventId; - }, - toggleFavoritesEventName: _events.default.TOGGLE_EVENTS_FAVORITE, - isFavoriteChecker: function isFavoriteChecker(toCheck) { - return manager.favoriteIsStored(toCheck); - } - }); - }, - onPress: function onPress(clicked) { - manager.toggleFavorite(clicked); - } - }], - tintColor: color, - item: item, - availableSpace: 5 - }) - })] - }) - }); - } - }]); - }(_react.default.Component); - - EventListItem.propTypes = { - item: _propTypes.default.shape({ - name: _propTypes.default.string, - description: _propTypes.default.string, - instances: _propTypes.default.array, - location: _propTypes.default.object, - primaryImage: _propTypes.default.shape({ - mediumImageUrl: _propTypes.default.string - }), - seriesStart: _propTypes.default.string, - url: _propTypes.default.string, - handPicked: _propTypes.default.bool - }).isRequired, - manager: _propTypes.default.shape({ - favoriteIsStored: _propTypes.default.func.isRequired, - toggleFavorite: _propTypes.default.func.isRequired, - getLastSearch: _propTypes.default.func.isRequired - }).isRequired, - onItemPress: _propTypes.default.func, - color: _propTypes.default.string.isRequired, - startDate: _propTypes.default.any, - baseLatitude: _propTypes.default.number, - baseLongitude: _propTypes.default.number, - enhanced: _propTypes.default.bool, - portal: _propTypes.default.string.isRequired - }; -},2704,[3,270,6,7,11,13,14,16,18,568,1402,2209,2171,800,436,1918,438,179,2705,2089]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.styles = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var styles = exports.styles = _reactNative.StyleSheet.create({ - line: { - paddingHorizontal: 10, - paddingVertical: 5 - }, - enhanced: { - backgroundColor: (0, _$$_REQUIRE(_dependencyMap[1]).getEventColor)(), - paddingTop: 10, - paddingBottom: 10, - paddingHorizontal: 10, - paddingVertical: 5, - opacity: 0.9 - }, - title: { - flex: 1, - fontSize: 25, - margin: 10, - color: _$$_REQUIRE(_dependencyMap[2]).colors.white, - textShadowColor: _$$_REQUIRE(_dependencyMap[2]).colors.black, - textShadowOffset: { - width: -2, - height: 2 - }, - textShadowRadius: 2 - }, - titleNoImage: { - flex: 1, - fontSize: 25, - margin: 10, - marginTop: 30, - color: _$$_REQUIRE(_dependencyMap[2]).colors.black - }, - descriptionNoImage: { - flex: 2, - textAlign: "justify", - padding: 5, - paddingLeft: 10, - color: _$$_REQUIRE(_dependencyMap[2]).colors.black - }, - description: { - flex: 2, - textAlign: "justify", - padding: 5, - paddingLeft: 10, - color: _$$_REQUIRE(_dependencyMap[2]).colors.white, - textShadowColor: _$$_REQUIRE(_dependencyMap[2]).colors.black, - textShadowOffset: { - width: -2, - height: 2 - }, - textShadowRadius: 2 - }, - icon: { - height: 30, - width: 30, - marginStart: 5, - marginEnd: 5 - }, - icons: { - position: "absolute", - left: 0, - right: 10, - top: 30 - }, - image: { - borderRadius: 3, - height: 300, - width: "100%", - flex: 1 - }, - tabletImage: { - borderRadius: 3, - height: 500, - width: "100%", - flex: 1 - }, - gradient: { - borderRadius: 3, - height: 300, - backgroundColor: _$$_REQUIRE(_dependencyMap[2]).colors.transparent, - position: "absolute", - top: 0, - start: 0, - end: 0, - bottom: 0 - }, - tabletGradient: { - borderRadius: 3, - height: 500, - backgroundColor: _$$_REQUIRE(_dependencyMap[2]).colors.transparent, - position: "absolute", - top: 0, - start: 0, - end: 0, - bottom: 0 - }, - cardBottom: { - position: "absolute", - bottom: 0, - right: 0, - left: 0, - justifyContent: "flex-start", - alignItems: "flex-start" - }, - cardBottomNoImage: { - justifyContent: "flex-start", - alignItems: "flex-start" - }, - noImageView: { - borderWidth: 1, - borderColor: _$$_REQUIRE(_dependencyMap[2]).colors.grey400, - borderRadius: 3 - } - }); -},2705,[18,2632,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2706,[2707]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.EventCustomCallout = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[7]); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _optionalPackageUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var EventCustomCallout; - - if (_optionalPackageUtils.default.isMapsAvailable()) { - var _TaCallout; - - var _OptionalPackages$get = _optionalPackageUtils.default.getMaps(), - Callout = _OptionalPackages$get.Callout; - - exports.EventCustomCallout = EventCustomCallout = (_TaCallout = function (_Callout) { - function TaCallout() { - var _this; - - (0, _classCallCheck2.default)(this, TaCallout); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _callSuper(this, TaCallout, [].concat(args)); - - _this.dateFormatter = function (date) { - if (!date) { - return ""; - } - - var out = ""; - - for (var c = 0; c < date.length; c++) { - if (date[c] === "T" || date[c] === "Z") { - out += " "; - } else { - out += date[c]; - } - } - - return out.substring(0, 10); - }; - - return _this; - } - - (0, _inherits2.default)(TaCallout, _Callout); - return (0, _createClass2.default)(TaCallout, [{ - key: "render", - value: function render() { - var _this$props = this.props, - title = _this$props.title, - date = _this$props.date; - return (0, _$$_REQUIRE(_dependencyMap[11]).jsxs)(_reactNative.View, { - children: [title.length > 50 ? (0, _$$_REQUIRE(_dependencyMap[11]).jsxs)(_reactNative.View, { - children: [(0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.Text, { - style: { - fontWeight: "bold" - }, - children: title.substring(0, 50) - }), (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.Text, { - style: { - fontWeight: "bold" - }, - children: title.substring(50) - })] - }) : (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_reactNative.Text, { - style: { - fontWeight: "bold" - }, - children: title - }), (0, _$$_REQUIRE(_dependencyMap[11]).jsx)(_fontText.default, { - children: this.dateFormatter(date) - })] - }); - } - }]); - }(Callout), _TaCallout.propTypes = { - title: _propTypes.default.string, - description: _propTypes.default.string, - image: _propTypes.default.string, - date: _propTypes.default.string - }, _TaCallout); - } else { - exports.EventCustomCallout = EventCustomCallout = function (_React$Component) { - function TaCallout() { - (0, _classCallCheck2.default)(this, TaCallout); - return _callSuper(this, TaCallout, arguments); - } - - (0, _inherits2.default)(TaCallout, _React$Component); - return (0, _createClass2.default)(TaCallout, [{ - key: "render", - value: function render() { - return null; - } - }]); - }(_react.default.Component); - } -},2707,[3,6,7,11,13,14,16,18,568,800,865,179]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.EventFeaturedComponent = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[9]); - - var _deviceUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - var _eventFeaturedItemComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - - 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); } - - 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; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var EventFeaturedComponent = exports.EventFeaturedComponent = function (_Component) { - function EventFeaturedComponent(props) { - var _this; - - (0, _classCallCheck2.default)(this, EventFeaturedComponent); - _this = _callSuper(this, EventFeaturedComponent, [props]); - _this.state = { - items: [], - firstLoading: true, - counter: 0 - }; - _this.mounted = false; - _this.animatedValue = new _reactNative.Animated.Value(0); - _this.featuredIds = props.featuredEvents; - return _this; - } - - (0, _inherits2.default)(EventFeaturedComponent, _Component); - return (0, _createClass2.default)(EventFeaturedComponent, [{ - key: "componentDidMount", - value: function () { - var _componentDidMount = (0, _asyncToGenerator2.default)(function* () { - this.mounted = true; - yield this.firstLoad(); - var items = this.state.items; - - if (items.length > 2) { - this.animate(); - } - }); - - function componentDidMount() { - return _componentDidMount.apply(this, arguments); - } - - return componentDidMount; - }() - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - this.mounted = false; - } - }, { - key: "doAjaxCall", - value: function () { - var _doAjaxCall = (0, _asyncToGenerator2.default)(function* (params, start) { - var _this$props = this.props, - getItemById = _this$props.getItemById, - config = _this$props.config, - normalizeResults = _this$props.normalizeResults, - skipDefaultParams = _this$props.skipDefaultParams; - var data = { - events: [] - }; - - try { - for (var i = start; i < Math.min(start + 4, this.featuredIds.length); i++) { - var ajaxResult = yield _Api.default.get(getItemById(this.featuredIds[i]), config, params, skipDefaultParams); - data.events.push(ajaxResult.data); - } - - return normalizeResults(data); - } catch (e) { - throw e; - } - }); - - function doAjaxCall(_x, _x2) { - return _doAjaxCall.apply(this, arguments); - } - - return doAjaxCall; - }() - }, { - key: "firstLoad", - value: function () { - var _firstLoad = (0, _asyncToGenerator2.default)(function* () { - var items = this.state.items; - var _this$props2 = this.props, - portal = _this$props2.portal, - featuredApi = _this$props2.featuredApi, - config = _this$props2.config, - featuredEvents = _this$props2.featuredEvents; - var filter = { - portal: portal - }; - - try { - var newItems = yield this.doAjaxCall(filter, 0); - this.setState({ - items: items.concat(newItems.items) || [], - firstLoading: false - }); - } catch (e) { - this.setState({ - firstLoading: true - }); - } - }); - - function firstLoad() { - return _firstLoad.apply(this, arguments); - } - - return firstLoad; - }() - }, { - key: "animate", - value: function animate() { - var _this2 = this; - - var items = this.state.items; - var portal = this.props.portal; - var filter = { - portal: portal - }; - var counter = this.state.counter; - this.animatedValue.setValue(0); - - _reactNative.Animated.timing(this.animatedValue, { - duration: 5000, - useNativeDriver: true - }).start(function () { - return _this2.animate(); - }); - - if (this.mounted) { - this.setState({ - counter: counter + 1 - }, (0, _asyncToGenerator2.default)(function* () { - if ((counter + 3) % 4 === 0) { - var newItems = yield _this2.doAjaxCall(filter, counter + 3); - - _this2.setState({ - items: items.concat(newItems.items) || [] - }); - } - })); - } - } - }, { - key: "render", - value: function render() { - var onEventPress = this.props.onEventPress; - var _this$state = this.state, - items = _this$state.items, - firstLoading = _this$state.firstLoading, - counter = _this$state.counter; - var translateX = -_deviceUtils.default.getSafeArea().width / 2; - var itemsToLoad = Math.min(items.length, 3); - var featured = []; - - for (var i = 0; i < itemsToLoad; i++) { - var index = (counter + i) % items.length; - featured.push((0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_eventFeaturedItemComponent.default, { - item: { - key: index, - title: items[index].name, - image: items[index].primaryImage ? items[index].primaryImage.largeImageUrl : undefined, - id: items[index].eventId, - date: _$$_REQUIRE(_dependencyMap[14]).DateUtils.getClosestEventDate(items[index]) - }, - onEventPress: onEventPress - }, index)); - } - - return !firstLoading && items.length ? (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNative.View, { - style: { - display: "flex", - flexDirection: "row", - justifyContent: items.length === 1 ? "center" : "flex-start", - backgroundColor: (0, _$$_REQUIRE(_dependencyMap[15]).getEventColor)() - }, - children: (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNative.Animated.View, { - style: { - width: items.length > 2 ? "150%" : items.length == 2 ? "100%" : "75%", - height: _$$_REQUIRE(_dependencyMap[14]).PlatformUtils.isTablet() ? 200 : 100, - display: "flex", - flexDirection: "row", - transform: [{ - translateX: this.animatedValue.interpolate({ - inputRange: [0, 0.7, 1], - outputRange: [0, 0, translateX] - }) - }] - }, - children: featured - }) - }) : null; - } - }]); - }(_react.Component); - - EventFeaturedComponent.propTypes = { - normalizeResults: _propTypes.default.func.isRequired, - skipDefaultParams: _propTypes.default.bool, - onEventPress: _propTypes.default.func.isRequired, - config: _propTypes.default.shape({ - auth: _propTypes.default.shape({ - username: _propTypes.default.string.isRequired, - password: _propTypes.default.string.isRequired - }) - }), - portal: _propTypes.default.string.isRequired, - featuredApi: _propTypes.default.string.isRequired, - getItemById: _propTypes.default.func.isRequired, - featuredEvents: _propTypes.default.arrayOf(_propTypes.default.number) - }; -},2708,[3,270,6,7,11,13,14,16,568,18,434,407,2709,179,438,2632]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[7]); - - var _reactNativeLinearGradient = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _fontText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10])); - - var _eventFeaturedItemComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - var _imageComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - - 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); } - - 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; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var TileGridImage = exports.default = function (_React$Component) { - function TileGridImage() { - var _this; - - (0, _classCallCheck2.default)(this, TileGridImage); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _callSuper(this, TileGridImage, [].concat(args)); - _this.NUMBER_OF_TITLE_LINES = 3; - return _this; - } - - (0, _inherits2.default)(TileGridImage, _React$Component); - return (0, _createClass2.default)(TileGridImage, [{ - key: "_getContent", - value: function _getContent() { - var item = this.props.item; - var style = _eventFeaturedItemComponent.default.titleFull; - return (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNative.View, { - style: _eventFeaturedItemComponent.default.containerFull, - children: (0, _$$_REQUIRE(_dependencyMap[13]).jsxs)(_reactNative.View, { - children: [(0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_fontText.default, { - numberOfLines: this.NUMBER_OF_TITLE_LINES, - type: _fontText.Type.medium, - style: style, - children: item.title - }), (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_fontText.default, { - numberOfLines: 1, - type: _fontText.Type.medium, - style: style, - children: item.date - })] - }) - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - item = _this$props.item, - onEventPress = _this$props.onEventPress; - return (0, _$$_REQUIRE(_dependencyMap[13]).jsxs)(_$$_REQUIRE(_dependencyMap[14]).TileParent, { - bgColor: _$$_REQUIRE(_dependencyMap[15]).colors.white, - style: _eventFeaturedItemComponent.default.tileParent, - hideBottomLine: true, - children: [(0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_imageComponent.default, { - style: [_eventFeaturedItemComponent.default.imageFull], - source: { - uri: item.image - } - }), item.image ? (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNativeLinearGradient.default, { - style: _eventFeaturedItemComponent.default.gradient, - colors: [_$$_REQUIRE(_dependencyMap[15]).colors.transparent, _$$_REQUIRE(_dependencyMap[15]).colors.transparent, _$$_REQUIRE(_dependencyMap[15]).colors.transparent200] - }) : undefined, (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_reactNative.TouchableOpacity, { - style: _eventFeaturedItemComponent.default.parent, - onPress: function onPress() { - onEventPress(item.id); - }, - children: this._getContent() - })] - }); - } - }]); - }(_react.default.Component); - - TileGridImage.propTypes = { - item: _propTypes.default.shape({ - title: _propTypes.default.string.isRequired, - image: _propTypes.default.string, - id: _propTypes.default.number.isRequired - }), - onEventPress: _propTypes.default.func.isRequired - }; -},2709,[3,6,7,11,13,14,16,18,1402,568,800,2710,574,179,2160,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var _default = exports.default = _reactNative.StyleSheet.create({ - imageFull: { - position: "absolute", - top: 0, - start: 0, - end: 0, - bottom: 0, - margin: 0 - }, - containerFull: { - flexDirection: "column" - }, - titleFull: { - color: "white", - marginHorizontal: 8, - paddingVertical: 6, - textAlign: "left", - textShadowColor: _$$_REQUIRE(_dependencyMap[1]).colors.black, - textShadowOffset: { - width: -2, - height: 2 - }, - textShadowRadius: 2, - alignItems: "flex-end", - fontSize: 14 - }, - titleFullNoImage: { - color: "black", - marginHorizontal: 8, - paddingVertical: 8, - textAlign: "left", - alignItems: "flex-end", - fontSize: 14 - }, - gradient: { - backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.transparent, - position: "absolute", - top: 0, - start: 0, - end: 0, - bottom: 0 - }, - tileParent: { - display: "flex", - flexDirection: "row", - alignItems: "flex-end", - backgroundColor: (0, _$$_REQUIRE(_dependencyMap[2]).getEventColor)() - }, - parent: { - flexDirection: "row", - alignItems: "flex-end" - } - }); -},2710,[18,438,2632]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2711,[2712]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.EventFilterScreen = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var EventFilterScreen = exports.EventFilterScreen = function (_NavigationBaseScreen) { - function EventFilterScreen(props) { - var _this; - - (0, _classCallCheck2.default)(this, EventFilterScreen); - _this = _callSuper(this, EventFilterScreen, [props]); - - var defaultSearch = _this._getEventsManager().getDefaultSearch(); - - _this.state = Object.assign({ - categories: [], - loading: true - }, _this._getFilterFromSearch(defaultSearch)); - _this.onFilterLocationRef = _this._onFilterLocationRef.bind(_this); - _this.onFilterCategoriesRef = _this._onFilterCategoriesRef.bind(_this); - _this.onFilterTimeRangeRef = _this._onFilterTimeRangeRef.bind(_this); - _this.onFilterRadiusRef = _this._onFilterRadiusRef.bind(_this); - _this.onFilterTextRef = _this._onFilterTextRef.bind(_this); - _this.onResetLocation = _this._onResetLocation.bind(_this); - _this.onSetAsDefaultPress = _this._onSetAsDefaultPress.bind(_this); - _this.onResetPress = _this._onResetPress.bind(_this); - _this.onSearchPress = _this._onSearchPress.bind(_this); - _this.onSavedSearchesPress = _this._onSavedSearchesPress.bind(_this); - return _this; - } - - (0, _inherits2.default)(EventFilterScreen, _NavigationBaseScreen); - return (0, _createClass2.default)(EventFilterScreen, [{ - key: "componentDidMount", - value: function componentDidMount() { - (0, _get2.default)((0, _getPrototypeOf2.default)(EventFilterScreen.prototype), "componentDidMount", this).call(this); - - this._loading(); - } - }, { - key: "getTag", - value: function getTag() { - return "Event Filter"; - } - }, { - key: "handleBackButton", - value: function handleBackButton() { - var navigation = this.props.navigation; - navigation.goBack(null); - return (0, _get2.default)((0, _getPrototypeOf2.default)(EventFilterScreen.prototype), "handleBackButton", this).call(this); - } - }, { - key: "_getFilterFromSearch", - value: function _getFilterFromSearch() { - var search = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return { - filterText: search.searchTerm, - filterRadius: search.radius || 35, - filterTimeRange: search.timeRange, - filterStartDate: search.startDate, - filterEndDate: search.endDate, - filterLatitude: search.latitude, - filterLongitude: search.longitude, - filterUseLocation: search.useLocation || false, - filterLabels: search.labels || [], - filterCategories: search.categories || [] - }; - } - }, { - key: "_onFilterTextRef", - value: function _onFilterTextRef(ref) { - this.filterTextRef = ref; - } - }, { - key: "_onFilterRadiusRef", - value: function _onFilterRadiusRef(ref) { - this.filterRadiusRef = ref; - } - }, { - key: "_onFilterTimeRangeRef", - value: function _onFilterTimeRangeRef(ref) { - this.filterTimeRangeRef = ref; - } - }, { - key: "_onFilterCategoriesRef", - value: function _onFilterCategoriesRef(ref) { - this.filterCategoriesRef = ref; - } - }, { - key: "_onFilterLocationRef", - value: function _onFilterLocationRef(ref) { - this.filterLocationRef = ref; - } - }, { - key: "_getFilterValue", - value: function _getFilterValue(filter, defaultValue) { - var value = defaultValue; - - if (filter) { - var filterValue = filter.getValue(); - - if (filterValue) { - value = filterValue; - } - } - - return value; - } - }, { - key: "_onResetLocation", - value: function _onResetLocation() { - var defaultSearch = this._getEventsManager().getDefaultSearch(); - - this.setState({ - filterLatitude: defaultSearch ? defaultSearch.latitude : undefined, - filterLongitude: defaultSearch ? defaultSearch.longitude : undefined - }); - } - }, { - key: "_onSearchPress", - value: function _onSearchPress() { - var navigation = this.props.navigation; - - var _this$_getFilterValue = this._getFilterValue(this.filterLocationRef, {}), - latitude = _this$_getFilterValue.latitude, - longitude = _this$_getFilterValue.longitude, - useLocation = _this$_getFilterValue.useLocation; - - var _this$_getFilterValue2 = this._getFilterValue(this.filterTimeRangeRef, {}), - startDate = _this$_getFilterValue2.startDate, - endDate = _this$_getFilterValue2.endDate, - timeRange = _this$_getFilterValue2.timeRange; - - var _this$_getFilterValue3 = this._getFilterValue(this.filterRadiusRef, {}), - radius = _this$_getFilterValue3.radius; - - var _this$_getFilterValue4 = this._getFilterValue(this.filterCategoriesRef, {}), - selectedCategories = _this$_getFilterValue4.selectedCategories, - selectedLabels = _this$_getFilterValue4.selectedLabels; - - var term = this._getFilterValue(this.filterTextRef, ""); - - var filters = { - startDate: startDate || _$$_REQUIRE(_dependencyMap[11]).DateUtils.getMomentDate().format("YYYY-MM-DD"), - endDate: endDate, - latitude: latitude, - longitude: longitude, - useLocation: useLocation, - radius: radius, - categories: selectedCategories, - searchTerm: term, - timeRange: timeRange, - labels: selectedLabels - }; - - this._getEventsManager().toggleLastSearch(filters); - - this.setState(Object.assign({}, this._getFilterFromSearch(this._getEventsManager().getLastSearch())), function () { - navigation.navigate("VerticalListScreen", { - filters: filters - }); - }); - return []; - } - }, { - key: "_onResetPress", - value: function _onResetPress() { - var _this2 = this; - - var navigation = this.props.navigation; - var resetted = { - filterText: "", - filterRadius: 35, - filterTimeRange: "", - filterLatitude: undefined, - filterLongitude: undefined, - filterUseLocation: false, - filterCategories: [], - filterLabels: [] - }; - this.setState(Object.assign({}, resetted), function () { - _this2._getEventsManager().toggleDefaultSearch(resetted, false); - - navigation.navigate("VerticalListScreen", { - filters: {} - }); - }); - } - }, { - key: "_onSavedSearchesPress", - value: function _onSavedSearchesPress() { - var _this$props = this.props, - navigation = _this$props.navigation, - user = _this$props.user, - pass = _this$props.pass, - portal = _this$props.portal; - navigation.navigate("VerticalSavedSearchScreen", { - user: user, - pass: pass, - portal: portal, - labels: this._getLabels() - }); - } - }, { - key: "_onSetAsDefaultPress", - value: function _onSetAsDefaultPress() { - var _this$_getFilterValue5 = this._getFilterValue(this.filterRadiusRef, {}), - radius = _this$_getFilterValue5.radius; - - var _this$_getFilterValue6 = this._getFilterValue(this.filterCategoriesRef, {}), - selectedCategories = _this$_getFilterValue6.selectedCategories, - selectedLabels = _this$_getFilterValue6.selectedLabels; - - var _this$_getFilterValue7 = this._getFilterValue(this.filterTimeRangeRef, {}), - startDate = _this$_getFilterValue7.startDate, - endDate = _this$_getFilterValue7.endDate, - timeRange = _this$_getFilterValue7.timeRange; - - var term = this._getFilterValue(this.filterTextRef, ""); - - var _this$_getFilterValue8 = this._getFilterValue(this.filterLocationRef), - latitude = _this$_getFilterValue8.latitude, - longitude = _this$_getFilterValue8.longitude, - useLocation = _this$_getFilterValue8.useLocation; - - var filters = { - startDate: startDate || _$$_REQUIRE(_dependencyMap[11]).DateUtils.getMomentDate().format("YYYY-MM-DD"), - endDate: endDate, - latitude: latitude, - longitude: longitude, - radius: radius, - categories: selectedCategories, - searchTerm: term, - timeRange: timeRange, - useLocation: useLocation, - labels: selectedLabels - }; - - this._getEventsManager().toggleDefaultSearch(filters, true); - - return []; - } - }, { - key: "_loading", - value: function () { - var _loading2 = (0, _asyncToGenerator2.default)(function* (callback) { - var _this3 = this; - - this.setState({ - loading: true - }, (0, _asyncToGenerator2.default)(function* () { - var result = {}; - - try { - result = yield _this3._loadCategories(); - } catch (e) {} - - _this3.setState(Object.assign({ - loading: false - }, result)); - })); - }); - - function _loading(_x) { - return _loading2.apply(this, arguments); - } - - return _loading; - }() - }, { - key: "_loadCategories", - value: function () { - var _loadCategories2 = (0, _asyncToGenerator2.default)(function* () { - var _this$props2 = this.props, - user = _this$props2.user, - pass = _this$props2.pass, - portal = _this$props2.portal; - var config = { - auth: { - username: user, - password: pass - } - }; - var categories = []; - - var _yield$API$get = yield _Api.default.get((0, _$$_REQUIRE(_dependencyMap[12]).getEventCategories)(), config, { - portal: portal - }), - data = _yield$API$get.data; - - data.forEach(function (category) { - if (!category.parentCategoryId) { - categories.push({ - name: category.name, - categoryId: category.categoryId, - content: [] - }); - } else { - var parent = categories.find(function (el) { - return el.categoryId === category.parentCategoryId; - }); - - if (parent) { - parent.content.push({ - name: category.name, - parentCategoryId: category.parentCategoryId, - categoryId: category.categoryId - }); - } - } - }); - return { - categories: categories - }; - }); - - function _loadCategories() { - return _loadCategories2.apply(this, arguments); - } - - return _loadCategories; - }() - }, { - key: "_getLabels", - value: function _getLabels() { - var extraSearchField = this.props.extraSearchField; - - var defaultSearch = this._getEventsManager().getDefaultSearch(); - - var extraLabels; - - try { - extraLabels = JSON.parse(extraSearchField); - } catch (e) { - extraLabels = []; - } - - extraLabels.push({ - name: global.strings("str_editor_picks"), - label: "handPicked" - }); - var labels = []; - extraLabels.forEach(function (extraLabel) { - if (defaultSearch && defaultSearch.labels) { - var isSelected = defaultSearch.labels.find(function (item) { - return item.label === extraLabel.label; - }) !== undefined; - labels.push(Object.assign({}, extraLabel, { - selected: isSelected - })); - } else { - labels.push(extraLabel); - } - }); - return labels; - } - }, { - key: "_getEventsManager", - value: function _getEventsManager() { - return global.getVerticalsConfig().getEvents(); - } - }, { - key: "render", - value: function render() { - var _this$state = this.state, - categories = _this$state.categories, - loading = _this$state.loading, - filterText = _this$state.filterText, - filterRadius = _this$state.filterRadius, - filterStartDate = _this$state.filterStartDate, - filterEndDate = _this$state.filterEndDate, - filterTimeRange = _this$state.filterTimeRange, - filterLatitude = _this$state.filterLatitude, - filterLongitude = _this$state.filterLongitude, - filterUseLocation = _this$state.filterUseLocation, - filterCategories = _this$state.filterCategories, - filterLabels = _this$state.filterLabels; - var navigation = this.props.navigation; - - var defaultSearch = this._getEventsManager().getDefaultSearch(); - - var labels = this._getLabels(); - - return !loading ? (0, _$$_REQUIRE(_dependencyMap[13]).jsxs)(_$$_REQUIRE(_dependencyMap[14]).FilterParent, { - buttons: [{ - label: global.strings("btn_set_as_default"), - onPress: this.onSetAsDefaultPress - }, { - label: global.strings("saved_searches"), - onPress: this.onSavedSearchesPress - }, { - label: global.strings("btn_reset"), - onPress: this.onResetPress - }], - backgroundResizeMode: "cover", - backgroundUrl: (0, _$$_REQUIRE(_dependencyMap[12]).getEventBackground)(), - color: (0, _$$_REQUIRE(_dependencyMap[12]).getEventColor)(), - onSearch: this.onSearchPress, - children: [(0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_$$_REQUIRE(_dependencyMap[15]).FilterText, { - style: _$$_REQUIRE(_dependencyMap[16]).styles.filter, - borderColor: (0, _$$_REQUIRE(_dependencyMap[12]).getEventColor)(), - hint: global.strings("vertical_job_text_hint"), - ref: this.onFilterTextRef, - defaultSearch: filterText || null - }, "filter_text"), (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_$$_REQUIRE(_dependencyMap[17]).FilterLocation, { - latitude: filterLatitude, - longitude: filterLongitude, - useLocation: filterUseLocation, - style: _$$_REQUIRE(_dependencyMap[16]).styles.filter, - hint: defaultSearch && defaultSearch.latitude && defaultSearch.longitude ? global.strings("change_location_hint") : global.strings("vertical_job_location_hint"), - borderColor: (0, _$$_REQUIRE(_dependencyMap[12]).getEventColor)(), - textColor: _$$_REQUIRE(_dependencyMap[11]).colors.white, - ref: this.onFilterLocationRef, - onDisableSwitch: this.onResetLocation - }, "filter_location"), (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_$$_REQUIRE(_dependencyMap[18]).EventRadiusSlider, { - style: _$$_REQUIRE(_dependencyMap[16]).styles.filter, - color: (0, _$$_REQUIRE(_dependencyMap[12]).getEventColor)(), - maxValue: 100, - defaultValue: filterRadius, - label: global.strings("change_radius"), - ref: this.onFilterRadiusRef - }), (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_$$_REQUIRE(_dependencyMap[19]).EventModalCategories, { - color: (0, _$$_REQUIRE(_dependencyMap[12]).getEventColor)(), - label: global.strings("selected_categories"), - selectedLabels: filterLabels, - labels: labels, - selectedCategories: filterCategories, - categories: categories, - ref: this.onFilterCategoriesRef, - multiSelect: true, - navigation: navigation - }), (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_$$_REQUIRE(_dependencyMap[20]).EventModalTimeRange, { - data: [{ - value: "all" - }, { - value: "this_week", - intervalFunction: _$$_REQUIRE(_dependencyMap[11]).DateUtils.thisWeek - }, { - value: "next_week", - intervalFunction: _$$_REQUIRE(_dependencyMap[11]).DateUtils.nextWeek - }, { - value: "this_weekend", - intervalFunction: _$$_REQUIRE(_dependencyMap[11]).DateUtils.thisWeekend - }, { - value: "today", - intervalFunction: _$$_REQUIRE(_dependencyMap[11]).DateUtils.today - }, { - value: "tomorrow", - intervalFunction: _$$_REQUIRE(_dependencyMap[11]).DateUtils.tomorrow - }, { - value: "custom" - }], - color: (0, _$$_REQUIRE(_dependencyMap[12]).getEventColor)(), - format: "YYYY-MM-DD", - label: global.strings("selected_time_range"), - ref: this.onFilterTimeRangeRef, - timeRange: filterTimeRange, - startDate: filterStartDate, - endDate: filterEndDate - })] - }) : (0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_$$_REQUIRE(_dependencyMap[21]).ProgressCircle, { - parentStyle: _$$_REQUIRE(_dependencyMap[16]).styles.spinner, - text: global.strings("loading"), - spinnerColor: (0, _$$_REQUIRE(_dependencyMap[12]).getEventColor)(), - showText: true - }); - } - }]); - }(_$$_REQUIRE(_dependencyMap[22]).NavigationBaseScreen); - - EventFilterScreen.propTypes = { - user: _propTypes.default.string, - pass: _propTypes.default.string, - portal: _propTypes.default.string, - navigation: _propTypes.default.object.isRequired - }; - EventFilterScreen.defaultProps = { - user: "", - pass: "", - portal: "" - }; -},2712,[3,270,6,7,11,85,13,14,16,568,407,438,2632,179,2635,2654,2713,2656,2714,2719,2724,1995,2331]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.styles = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var styles = exports.styles = _reactNative.StyleSheet.create({ - parent: { - justifyContent: "center", - alignItems: "center" - }, - background: { - width: "100%", - flex: 1, - flexDirection: "column", - justifyContent: "center", - alignItems: "center" - }, - filterViews: { - maxWidth: 500, - width: "100%", - flexDirection: "column", - justifyContent: "center", - alignItems: "center" - }, - filter: { - width: "100%" - }, - filterButton: {}, - text: { - color: _$$_REQUIRE(_dependencyMap[1]).colors.md_black_1000, - padding: _$$_REQUIRE(_dependencyMap[2]).filterStyles.TEXT_PADDING - } - }); -},2713,[18,438,2644]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2714,[2715]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.EventRadiusSlider = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _slider = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[9]); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var EventRadiusSlider = exports.EventRadiusSlider = function (_React$Component) { - function EventRadiusSlider(props) { - var _this; - - (0, _classCallCheck2.default)(this, EventRadiusSlider); - _this = _callSuper(this, EventRadiusSlider, [props]); - _this.state = { - radius: props.defaultValue - }; - return _this; - } - - (0, _inherits2.default)(EventRadiusSlider, _React$Component); - return (0, _createClass2.default)(EventRadiusSlider, [{ - key: "UNSAFE_componentWillReceiveProps", - value: function UNSAFE_componentWillReceiveProps(newProps) { - if (newProps.defaultValue !== undefined) { - this.setState({ - radius: newProps.defaultValue - }); - } - } - }, { - key: "getValue", - value: function getValue() { - var radius = this.state.radius; - return { - radius: radius - }; - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var radius = this.state.radius; - var _this$props = this.props, - color = _this$props.color, - label = _this$props.label, - maxValue = _this$props.maxValue; - return (0, _$$_REQUIRE(_dependencyMap[10]).jsxs)(_reactNative.View, { - style: [{ - backgroundColor: color - }, _$$_REQUIRE(_dependencyMap[11]).styles.container], - children: [(0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.Text, { - style: _$$_REQUIRE(_dependencyMap[11]).styles.text, - children: label - }), (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_slider.default, { - minimumTrackTintColor: _$$_REQUIRE(_dependencyMap[12]).colors.white, - maximumTrackTintColor: _$$_REQUIRE(_dependencyMap[12]).colors.grey300, - thumbTintColor: _$$_REQUIRE(_dependencyMap[12]).colors.white, - style: _$$_REQUIRE(_dependencyMap[11]).styles.slider, - value: radius, - maximumValue: maxValue, - minimumValue: 1, - step: 1, - onValueChange: function onValueChange(r) { - return _this2.setState({ - radius: r - }); - } - }), (0, _$$_REQUIRE(_dependencyMap[10]).jsx)(_reactNative.Text, { - style: _$$_REQUIRE(_dependencyMap[11]).styles.text, - children: parseInt(radius, 10) + "mi" - })] - }); - } - }]); - }(_react.default.Component); - - EventRadiusSlider.propTypes = { - label: _propTypes.default.string, - color: _propTypes.default.string, - maxValue: _propTypes.default.number.isRequired, - defaultValue: _propTypes.default.number.isRequired - }; -},2715,[3,6,7,11,13,14,2716,568,16,18,179,2718,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[3]); - - var _RNCSliderNativeComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _excluded = ["onValueChange", "onSlidingStart", "onSlidingComplete"]; - - var SliderComponent = function SliderComponent(props, forwardedRef) { - var style = _reactNative.StyleSheet.compose(styles.slider, props.style); - - var onValueChange = props.onValueChange, - onSlidingStart = props.onSlidingStart, - onSlidingComplete = props.onSlidingComplete, - localProps = (0, _objectWithoutProperties2.default)(props, _excluded); - var onValueChangeEvent = onValueChange ? function (event) { - var userEvent = true; - - if (_reactNative.Platform.OS === 'android') { - userEvent = event.nativeEvent.fromUser != null && event.nativeEvent.fromUser; - } - - userEvent && onValueChange(event.nativeEvent.value); - } : null; - var onChangeEvent = onValueChangeEvent; - var onSlidingStartEvent = onSlidingStart ? function (event) { - onSlidingStart(event.nativeEvent.value); - } : null; - var onSlidingCompleteEvent = onSlidingComplete ? function (event) { - onSlidingComplete(event.nativeEvent.value); - } : null; - return (0, _$$_REQUIRE(_dependencyMap[5]).jsx)(_RNCSliderNativeComponent.default, Object.assign({}, localProps, { - thumbImage: _reactNative.Image.resolveAssetSource(props.thumbImage), - ref: forwardedRef, - style: style, - onChange: onChangeEvent, - onRNCSliderSlidingStart: onSlidingStartEvent, - onRNCSliderSlidingComplete: onSlidingCompleteEvent, - onRNCSliderValueChange: onValueChangeEvent, - enabled: !props.disabled, - onStartShouldSetResponder: function onStartShouldSetResponder() { - return true; - }, - onResponderTerminationRequest: function onResponderTerminationRequest() { - return false; - } - })); - }; - - var SliderWithRef = _react.default.forwardRef(SliderComponent); - - SliderWithRef.defaultProps = { - disabled: false, - value: 0, - minimumValue: 0, - maximumValue: 1, - step: 0, - inverted: false - }; - var styles; - - if (_reactNative.Platform.OS === 'ios') { - styles = _reactNative.StyleSheet.create({ - slider: { - height: 40 - } - }); - } else { - styles = _reactNative.StyleSheet.create({ - slider: {} - }); - } - - var Slider = SliderWithRef; - - var _default = exports.default = Slider; -},2716,[3,4,16,18,2717,179]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.default = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var RNCSliderNativeComponent = (0, _reactNative.requireNativeComponent)('RNCSlider'); - - var _default = exports.default = RNCSliderNativeComponent; -},2717,[18]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.styles = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var styles = exports.styles = _reactNative.StyleSheet.create({ - container: { - marginTop: 10, - height: 50, - borderRadius: 5, - flexDirection: "row", - justifyContent: "flex-start", - alignItems: "center", - marginRight: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, - marginLeft: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN - }, - text: { - color: _$$_REQUIRE(_dependencyMap[2]).colors.white, - padding: _$$_REQUIRE(_dependencyMap[1]).filterStyles.TEXT_PADDING, - width: "25%" - }, - slider: { - width: "50%" - } - }); -},2718,[18,2644,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2719,[2720]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.EventModalCategories = undefined; - - var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[4]); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _modal = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - 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); } - - 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; } - - var _labelsStateFromProps = function _labelsStateFromProps(props) { - var labels = props.labels, - selectedLabels = props.selectedLabels; - return labels.map(function (item) { - var isSelected = selectedLabels.includes(item.label); - return Object.assign({}, item, { - checked: item.selected || isSelected - }); - }); - }; - - var _categoriesStateFromProps = function _categoriesStateFromProps(props) { - var categories = props.categories, - selectedCategories = props.selectedCategories; - return categories.map(function (category) { - category.checked = selectedCategories && selectedCategories.includes(category.categoryId); - category.content.map(function (el) { - el.checked = selectedCategories && selectedCategories.includes(el.categoryId); - return el; - }); - return category; - }); - }; - - var _getNumberOfCheckedInList = function _getNumberOfCheckedInList() { - var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - var counter = 0; - list.forEach(function (item) { - if (item.checked) { - counter += 1; - } - }); - return counter; - }; - - var _getNumberOfChecked = function _getNumberOfChecked() { - var labels = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - var categories = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - - var counter = _getNumberOfCheckedInList(labels); - - counter += _getNumberOfCheckedInList(categories); - categories.forEach(function (category) { - counter += _getNumberOfCheckedInList(category.content); - }); - return counter || "All"; - }; - - var EventModalCategories = exports.EventModalCategories = (0, _react.forwardRef)(function (props, ref) { - var color = props.color, - title = props.label, - multiSelect = props.multiSelect; - - var _useState = (0, _react.useState)(false), - _useState2 = (0, _slicedToArray2.default)(_useState, 2), - modalVisible = _useState2[0], - setModalVisible = _useState2[1]; - - var _useState3 = (0, _react.useState)([]), - _useState4 = (0, _slicedToArray2.default)(_useState3, 2), - labels = _useState4[0], - setLabels = _useState4[1]; - - var _useState5 = (0, _react.useState)([]), - _useState6 = (0, _slicedToArray2.default)(_useState5, 2), - categories = _useState6[0], - setCategories = _useState6[1]; - - var _resetLabels = function _resetLabels() { - return setLabels(_labelsStateFromProps(props)); - }; - - var _resetCategories = function _resetCategories() { - return setCategories(_categoriesStateFromProps(props)); - }; - - var _reset = function _reset() { - _resetLabels(); - - _resetCategories(); - }; - - var _getValue = function _getValue() { - var selectedCategories = []; - categories.forEach(function (category) { - if (category.checked) { - selectedCategories.push(category.categoryId); - } - - if (category.content) { - category.content.forEach(function (categoryChild) { - if (categoryChild.checked) { - selectedCategories.push(categoryChild.categoryId); - } - }); - } - }); - var selectedLabels = []; - labels.forEach(function (_ref) { - var label = _ref.label, - checked = _ref.checked; - - if (checked) { - selectedLabels.push(label); - } - }); - return { - selectedCategories: selectedCategories, - selectedLabels: selectedLabels - }; - }; - - (0, _react.useEffect)(function () { - _resetCategories(); - }, [props.categories, props.selectedCategories]); - (0, _react.useEffect)(function () { - _resetLabels(); - }, [props.labels, props.selectedLabels]); - (0, _react.useImperativeHandle)(ref, function () { - return { - getValue: function getValue() { - return _getValue(); - } - }; - }); - return (0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_reactNative.View, { - children: [(0, _$$_REQUIRE(_dependencyMap[8]).jsxs)(_modal.default, { - visible: modalVisible, - onClose: function onClose() { - return setModalVisible(false); - }, - foregroundColor: color, - hasFooter: true, - onConfirm: function onConfirm() { - setModalVisible(false); - return true; - }, - onCancel: function onCancel() { - _reset(); - - setModalVisible(false); - return true; - }, - containerStyle: { - padding: 20, - flex: 1, - flexDirection: "column", - justifyContent: "flex-end" - }, - children: [(0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[9]).Labels, { - labels: labels, - onChange: function onChange(updated) { - return setLabels((0, _toConsumableArray2.default)(updated)); - } - }), (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_$$_REQUIRE(_dependencyMap[10]).Categories, { - categories: categories, - color: color, - multiSelect: multiSelect, - onChange: function onChange(updated) { - return setCategories((0, _toConsumableArray2.default)(updated)); - } - })] - }), (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_reactNative.TouchableOpacity, { - style: [{ - backgroundColor: color - }, _$$_REQUIRE(_dependencyMap[11]).styles.container], - onPress: function onPress() { - setModalVisible(true); - }, - children: (0, _$$_REQUIRE(_dependencyMap[8]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[11]).styles.text, - children: title + ": " + _getNumberOfChecked(labels, categories) - }) - })] - }); - }); - EventModalCategories.propTypes = { - selectedCategories: _propTypes.default.arrayOf(_propTypes.default.string), - categories: _propTypes.default.arrayOf(_propTypes.default.shape({ - name: _propTypes.default.string.isRequired, - categoryId: _propTypes.default.number.isRequired, - parentCategoryId: _propTypes.default.number - })), - selectedLabels: _propTypes.default.arrayOf(_propTypes.default.string), - labels: _propTypes.default.arrayOf(_propTypes.default.shape({ - name: _propTypes.default.string.isRequired, - label: _propTypes.default.string.isRequired, - selected: _propTypes.default.bool - })), - label: _propTypes.default.string.isRequired, - color: _propTypes.default.string.isRequired, - multiSelect: _propTypes.default.bool - }; - EventModalCategories.defaultProps = { - labels: [], - categories: [], - selectedCategories: [], - selectedLabels: [] - }; -},2720,[3,22,33,16,18,568,800,813,179,2721,2723,2722]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.Labels = Labels; - - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[2])); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[4]); - - var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - 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); } - - 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; } - - function Label(props) { - var label = props.label, - onChange = props.onChange; - - var _useState = (0, _react.useState)(label.checked), - _useState2 = (0, _slicedToArray2.default)(_useState, 2), - checked = _useState2[0], - setChecked = _useState2[1]; - - (0, _react.useEffect)(function () { - label.checked = checked; - - if (typeof onChange === "function") { - onChange(label); - } - }, [checked]); - return (0, _$$_REQUIRE(_dependencyMap[6]).jsxs)(_reactNative.View, { - style: [_$$_REQUIRE(_dependencyMap[7]).styles.categoryContainer, _$$_REQUIRE(_dependencyMap[7]).styles.labelsContainer], - children: [(0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_fontText.default, { - type: "medium", - children: label.name - }), (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(_reactNative.Switch, { - onValueChange: function onValueChange(value) { - return setChecked(value); - }, - value: checked, - ios_backgroundColor: _$$_REQUIRE(_dependencyMap[8]).colors.grey200 - })] - }); - } - - Label.propTypes = { - label: _propTypes.default.shape({ - name: _propTypes.default.string.isRequired, - checked: _propTypes.default.bool.isRequired - }).isRequired, - onChange: _propTypes.default.func.isRequired - }; - - function Labels(props) { - var _onChange = props.onChange, - labelsProp = props.labels; - var labels = (0, _react.useRef)(labelsProp); - return labels.current.map(function (item, index) { - return (0, _$$_REQUIRE(_dependencyMap[6]).jsx)(Label, { - label: item, - onChange: function onChange(label) { - if (typeof _onChange === "function") { - labels.current[index].checked = label.checked; - - _onChange(labels.current); - } - } - }, index); - }); - } - - Labels.propTypes = { - labels: _propTypes.default.array.isRequired, - onChange: _propTypes.default.func.isRequired - }; -},2721,[3,33,16,568,18,800,179,2722,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.styles = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var styles = exports.styles = _reactNative.StyleSheet.create({ - container: { - marginTop: 15, - height: 50, - borderRadius: 5, - flexDirection: "row", - justifyContent: "flex-start", - alignItems: "center", - marginLeft: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, - marginRight: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN - }, - text: { - padding: 5, - color: _$$_REQUIRE(_dependencyMap[2]).colors.white, - margin: 0 - }, - categoryContainer: { - flexDirection: "row", - alignItems: "center", - padding: 10 - }, - labelsContainer: { - justifyContent: "space-between" - }, - subCategoryContainer: { - flexDirection: "row", - alignItems: "center", - padding: 12, - margin: 2, - marginLeft: 25 - }, - lineContainer: { - flexDirection: "row", - alignItems: "center", - padding: 10 - }, - line: { - flex: 1, - paddingHorizontal: 10, - paddingVertical: 5 - }, - category: { - flex: 1, - paddingHorizontal: 10, - paddingVertical: 5 - }, - icon: { - fontSize: 15, - height: 15, - width: 15 - } - }); -},2722,[18,2644,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.Categories = Categories; - - var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[3])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[4]); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _accordionComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[7])); - - var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - 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); } - - 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; } - - function Line(props) { - var style = props.style, - onPress = props.onPress, - checked = props.checked, - color = props.color, - text = props.text, - children = props.children; - return (0, _$$_REQUIRE(_dependencyMap[9]).jsxs)(_reactNative.View, { - style: [_$$_REQUIRE(_dependencyMap[10]).styles.lineContainer, style], - children: [children, (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_reactNative.TouchableOpacity, { - style: { - flex: 1 - }, - onPress: onPress, - children: (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[10]).styles.line, - children: "" + text - }) - }), checked ? (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_iconComponent.default, { - type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, - name: "check", - style: [{ - color: color - }, _$$_REQUIRE(_dependencyMap[10]).styles.icon] - }) : null] - }); - } - - function Category(props) { - var category = props.category, - color = props.color, - hasChildren = props.hasChildren, - checked = props.checked, - onCheck = props.onCheck, - subListStyle = props.subListStyle, - onChange = props.onChange; - - if (hasChildren) { - var hasChildrenChecked = category.content.findIndex(function (el) { - return el.checked; - }) > -1; - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_accordionComponent.default, { - sections: [category], - renderHeader: function renderHeader(section, _, expanded) { - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(Line, { - onPress: onCheck, - checked: checked, - text: section.name, - children: (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_iconComponent.default, { - style: Object.assign({ - fontSize: 18 - }, hasChildrenChecked ? { - color: color - } : {}), - name: expanded ? "chevron-up" : "chevron-down", - type: _iconComponent.TecnaviaIconType.MATERIAL_COMMUNITY_ICONS - }) - }); - }, - renderContent: function renderContent(section) { - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(Categories, { - categories: section.content, - color: color, - multiSelect: false, - style: subListStyle, - onChange: onChange - }); - } - }); - } - - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(Line, { - onPress: onCheck, - checked: checked, - text: category.name - }); - } - - function Categories(props) { - var color = props.color, - multiSelect = props.multiSelect, - categoriesProp = props.categories, - style = props.style, - _onChange = props.onChange; - var categories = (0, _react.useRef)((0, _toConsumableArray2.default)(categoriesProp)); - - var _useState = (0, _react.useState)(categories.current.map(function (item, _i) { - return item.checked ? _i : -1; - }).filter(function (_i) { - return _i > -1; - })), - _useState2 = (0, _slicedToArray2.default)(_useState, 2), - checkedIndexes = _useState2[0], - setCheckedIndexes = _useState2[1]; - - var _handleCheck = function _handleCheck(index) { - if (!multiSelect) { - categories.current.forEach(function (el) { - el.checked = false; - }); - checkedIndexes.splice(0, checkedIndexes.length); - checkedIndexes.push(index); - categories.current[index].checked = true; - } else { - if (checkedIndexes.includes(index)) { - checkedIndexes.splice(checkedIndexes.indexOf(index), 1); - categories.current[index].checked = false; - } else { - checkedIndexes.push(index); - categories.current[index].checked = true; - } - } - - setCheckedIndexes((0, _toConsumableArray2.default)(checkedIndexes)); - }; - - (0, _react.useEffect)(function () { - if (typeof _onChange === "function") { - _onChange(categories.current); - } - }, [checkedIndexes]); - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[11]).TecnaviaFlatList, { - style: style, - data: categories.current, - keyExtractor: function keyExtractor(_, index) { - return "categories_" + index; - }, - renderItem: function renderItem(_ref) { - var item = _ref.item, - index = _ref.index; - var hasChildren = item.content && item.content.length > 0; - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(Category, { - category: item, - color: color, - hasChildren: hasChildren, - onCheck: function onCheck() { - return _handleCheck(index); - }, - checked: checkedIndexes.includes(index), - subListStyle: { - marginLeft: 20 - }, - onChange: function onChange(selectedItems) { - categories.current[index].content = selectedItems; - - if (typeof _onChange === "function") { - _onChange(categories.current); - } - } - }); - } - }); - } - - Categories.propTypes = { - color: _propTypes.default.string, - style: _propTypes.default.any, - categories: _propTypes.default.arrayOf(_propTypes.default.shape({ - name: _propTypes.default.string, - checked: _propTypes.default.bool, - content: _propTypes.default.arrayOf(_propTypes.default.shape({ - name: _propTypes.default.string, - checked: _propTypes.default.bool - })) - })), - multiSelect: _propTypes.default.bool, - onChange: _propTypes.default.func - }; -},2723,[3,33,22,16,18,568,2640,1918,800,179,2722,2049]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2724,[2725]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.EventModalTimeRange = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[6])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[7]); - - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _rangepickerComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9])); - - var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[10])); - - var _modal = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - var _fontText = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - - 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); } - - 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; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var EventModalTimeRange = exports.EventModalTimeRange = function (_Component) { - function EventModalTimeRange(props) { - var _this; - - (0, _classCallCheck2.default)(this, EventModalTimeRange); - _this = _callSuper(this, EventModalTimeRange, [props]); - _this.state = { - modalVisible: false, - timeRange: props.timeRange || "all", - selectedIndex: props.data.findIndex(function (el) { - return el.value === props.timeRange; - }), - rangePickerIsVisible: false - }; - return _this; - } - - (0, _inherits2.default)(EventModalTimeRange, _Component); - return (0, _createClass2.default)(EventModalTimeRange, [{ - key: "UNSAFE_componentWillReceiveProps", - value: function UNSAFE_componentWillReceiveProps(newProps) { - var data = this.props.data; - - if (newProps.timeRange !== undefined) { - this.setState({ - selectedIndex: data.findIndex(function (el) { - return el.value === newProps.timeRange; - }), - rangePickerIsVisible: false, - timeRange: newProps.timeRange - }); - } - } - }, { - key: "setModalVisible", - value: function setModalVisible(visible) { - this.setState({ - modalVisible: visible - }); - } - }, { - key: "getValue", - value: function getValue() { - var selectedIndex = this.state.selectedIndex; - var _this$props = this.props, - data = _this$props.data, - format = _this$props.format; - - if (selectedIndex > 0) { - if (data[selectedIndex].intervalFunction) { - return { - startDate: data[selectedIndex].intervalFunction().begin.format(format), - endDate: data[selectedIndex].intervalFunction().end.format(format), - timeRange: data[selectedIndex].value - }; - } - - return { - startDate: _$$_REQUIRE(_dependencyMap[13]).DateUtils.getDateString(this.start, format), - endDate: _$$_REQUIRE(_dependencyMap[13]).DateUtils.getDateString(this.end, format), - timeRange: data[selectedIndex].value - }; - } - - return {}; - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$state = this.state, - modalVisible = _this$state.modalVisible, - timeRange = _this$state.timeRange, - selectedIndex = _this$state.selectedIndex, - rangePickerIsVisible = _this$state.rangePickerIsVisible; - var _this$props2 = this.props, - label = _this$props2.label, - color = _this$props2.color, - data = _this$props2.data; - return (0, _$$_REQUIRE(_dependencyMap[14]).jsxs)(_reactNative.View, { - children: [(0, _$$_REQUIRE(_dependencyMap[14]).jsxs)(_modal.default, { - visible: modalVisible, - onClose: function onClose() { - return _this2.setModalVisible(false); - }, - foregroundColor: color, - hasFooter: true, - onConfirm: function onConfirm() { - _this2.setModalVisible(false); - - return true; - }, - onCancel: function onCancel() { - _this2.setModalVisible(false); - - _this2.setState({ - selectedIndex: 0, - timeRange: "", - rangePickerIsVisible: false - }); - - return true; - }, - containerStyle: { - padding: 20 - }, - children: [(0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_$$_REQUIRE(_dependencyMap[15]).TecnaviaFlatList, { - data: data, - keyExtractor: function keyExtractor(item, index) { - return "time_range_" + index; - }, - renderItem: function renderItem(_ref) { - var item = _ref.item, - index = _ref.index; - var checked = index === selectedIndex ? (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_iconComponent.default, { - type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, - name: "check", - style: [{ - color: color - }, _$$_REQUIRE(_dependencyMap[16]).styles.icon] - }) : null; - return (0, _$$_REQUIRE(_dependencyMap[14]).jsxs)(_reactNative.TouchableOpacity, { - style: _$$_REQUIRE(_dependencyMap[16]).styles.itemContainer, - onPress: function onPress() { - var dateInterval = data[index].intervalFunction; - - if (selectedIndex === index) { - _this2.setState({ - selectedIndex: 0, - rangePickerIsVisible: false, - timeRange: "" - }); - } else { - _this2.setState({ - selectedIndex: index, - rangePickerIsVisible: !dateInterval && index !== 0, - timeRange: data[index].value - }); - } - }, - children: [(0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[16]).styles.itemText, - children: _$$_REQUIRE(_dependencyMap[13]).DateUtils.getTimeRangeString(item.value) - }), checked] - }); - } - }), rangePickerIsVisible ? (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_rangepickerComponent.default, { - showText: false, - color: color, - onRangeChange: function onRangeChange(start, end) { - _this2.start = start; - _this2.end = end; - }, - containerStyle: _$$_REQUIRE(_dependencyMap[16]).styles.pickerContainer, - pickerProps: { - locale: global.getLocaleConfig().getCurrentLocale() - }, - pickerStartProps: { - style: { - marginStart: 0 - } - }, - pickerEndProps: { - style: { - marginEnd: 0 - } - } - }) : null] - }), (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_reactNative.TouchableOpacity, { - style: [{ - backgroundColor: color - }, _$$_REQUIRE(_dependencyMap[16]).styles.container], - onPress: function onPress() { - return _this2.setModalVisible(true); - }, - children: (0, _$$_REQUIRE(_dependencyMap[14]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[16]).styles.text, - children: label + ": " + (_$$_REQUIRE(_dependencyMap[13]).DateUtils.getTimeRangeString(timeRange) || global.strings("all")) - }) - })] - }); - } - }]); - }(_react.Component); - - EventModalTimeRange.propTypes = { - label: _propTypes.default.string.isRequired, - color: _propTypes.default.string.isRequired, - timeRange: _propTypes.default.string, - format: _propTypes.default.string.isRequired, - data: _propTypes.default.arrayOf(_propTypes.default.shape({ - intervalFunction: Function, - title: String, - value: String - })) - }; -},2725,[3,6,7,11,13,14,16,18,568,2603,1918,813,800,438,179,2049,2726]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.styles = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var styles = exports.styles = _reactNative.StyleSheet.create({ - container: { - marginTop: 15, - height: 50, - borderRadius: 5, - flexDirection: "row", - justifyContent: "flex-start", - alignItems: "center", - marginLeft: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, - marginRight: _$$_REQUIRE(_dependencyMap[1]).filterStyles.MARGIN, - marginBottom: 10 - }, - pickerContainer: { - flexDirection: "row", - width: "100%", - height: 50, - padding: 10 - }, - icon: { - fontSize: 15, - height: 15, - width: 15 - }, - itemContainer: { - height: 50, - justifyContent: "center", - flexDirection: "row", - padding: 10 - }, - itemText: { - flex: 1 - }, - text: { - padding: 5, - color: _$$_REQUIRE(_dependencyMap[2]).colors.white - } - }); -},2726,[18,2644,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2727,[2728]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.EventFavoritesScreen = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var EventFavoritesScreen = exports.EventFavoritesScreen = function (_NavigationBaseScreen) { - function EventFavoritesScreen() { - (0, _classCallCheck2.default)(this, EventFavoritesScreen); - return _callSuper(this, EventFavoritesScreen, arguments); - } - - (0, _inherits2.default)(EventFavoritesScreen, _NavigationBaseScreen); - return (0, _createClass2.default)(EventFavoritesScreen, [{ - key: "handleBackButton", - value: function handleBackButton() { - var navigation = this.props.navigation; - navigation.goBack(null); - return (0, _get2.default)((0, _getPrototypeOf2.default)(EventFavoritesScreen.prototype), "handleBackButton", this).call(this); - } - }, { - key: "getTag", - value: function getTag() { - return "Event Favorites"; - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - navigation = _this$props.navigation, - user = _this$props.user, - pass = _this$props.pass, - portal = _this$props.portal; - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[10]).VerticalFavoritesList, { - eventName: _events.default.TOGGLE_EVENTS_FAVORITE, - color: (0, _$$_REQUIRE(_dependencyMap[11]).getEventColor)(), - searchVerticalManager: global.getVerticalsConfig().getEvents(), - onItemPress: function onItemPress(item) { - navigation.navigate("VerticalDetailScreen", { - id: item.eventId, - user: user, - pass: pass, - portal: portal - }); - }, - renderItem: function renderItem(item) { - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[12]).EventListItem, { - onItemPress: function onItemPress(clicked) { - navigation.navigate("VerticalDetailScreen", { - id: clicked.eventId, - user: user, - pass: pass, - portal: portal - }); - }, - item: item, - manager: global.getVerticalsConfig().getEvents(), - color: (0, _$$_REQUIRE(_dependencyMap[11]).getEventColor)(), - portal: portal - }); - }, - onEmptyPress: function onEmptyPress() { - navigation.navigate("VerticalFiltersScreen"); - }, - itemKey: "eventId" - }); - } - }]); - }(_$$_REQUIRE(_dependencyMap[13]).NavigationBaseScreen); -},2728,[3,6,7,11,85,13,14,16,436,179,2667,2632,2729,2331]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2729,[2704]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.EventDetailScreen = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[9]); - - var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _iconTile = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11])); - - var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - - var _imageComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13])); - - var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[14])); - - var _fontTextInput = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15])); - - var _fontText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[16])); - - var _tecnaviaPlatformUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[17])); - - 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); } - - 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; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var EventDetailScreen = exports.EventDetailScreen = function (_NavigationBaseScreen) { - function EventDetailScreen(props) { - var _this; - - (0, _classCallCheck2.default)(this, EventDetailScreen); - _this = _callSuper(this, EventDetailScreen, [props]); - - _this.onShare = function () { - var _ref = (0, _asyncToGenerator2.default)(function* (message, id) { - var _getNavigationParams = (0, _$$_REQUIRE(_dependencyMap[18]).getNavigationParams)(_this.props), - _getNavigationParams$ = _getNavigationParams.portal, - portal = _getNavigationParams$ === undefined ? "" : _getNavigationParams$; - - try { - yield _reactNative.Share.share({ - message: message, - url: global.strings("share_event_url", { - portal: portal, - id: id - }) - }); - } catch (error) {} - }); - - return function (_x, _x2) { - return _ref.apply(this, arguments); - }; - }(); - - _this.state = { - loading: true, - data: {} - }; - return _this; - } - - (0, _inherits2.default)(EventDetailScreen, _NavigationBaseScreen); - return (0, _createClass2.default)(EventDetailScreen, [{ - key: "handleBackButton", - value: function handleBackButton() { - var navigation = this.props.navigation; - navigation.goBack(null); - return (0, _get2.default)((0, _getPrototypeOf2.default)(EventDetailScreen.prototype), "handleBackButton", this).call(this); - } - }, { - key: "componentDidMount", - value: function componentDidMount() { - this.firstLoad(); - } - }, { - key: "getTag", - value: function getTag() { - return "Event Details"; - } - }, { - key: "filterInstances", - value: function filterInstances(data) { - var instances = []; - - if (!data.instances) { - return instances; - } - - var today = _$$_REQUIRE(_dependencyMap[19]).DateUtils.getMomentStartOfDay(); - - data.instances.forEach(function (instance) { - if (_$$_REQUIRE(_dependencyMap[19]).DateUtils.getMomentDate(instance.startDateTime) >= today) { - instances.push({ - start: _$$_REQUIRE(_dependencyMap[19]).DateUtils.getMomentDate(instance.startDateTime).utc(), - end: instance.endDateTime ? _$$_REQUIRE(_dependencyMap[19]).DateUtils.getMomentDate(instance.endDateTime).utc() : null - }); - } - }); - return instances; - } - }, { - key: "firstLoad", - value: function () { - var _firstLoad = (0, _asyncToGenerator2.default)(function* () { - var _this2 = this; - - this.setState({ - loading: true, - data: {} - }, (0, _asyncToGenerator2.default)(function* () { - var params = (0, _$$_REQUIRE(_dependencyMap[18]).getNavigationParams)(_this2.props); - var _params$id = params.id, - id = _params$id === undefined ? "" : _params$id, - _params$user = params.user, - user = _params$user === undefined ? "" : _params$user, - _params$pass = params.pass, - pass = _params$pass === undefined ? "" : _params$pass, - _params$portal = params.portal, - portal = _params$portal === undefined ? "" : _params$portal; - var username = user; - var password = pass; - var api = (0, _$$_REQUIRE(_dependencyMap[20]).getEventById)(id); - var config = { - auth: { - username: username, - password: password - } - }; - var result = yield _Api.default.get(api, config, { - portal: portal - }); - - _this2.setState({ - loading: false, - data: result.data - }); - })); - }); - - function firstLoad() { - return _firstLoad.apply(this, arguments); - } - - return firstLoad; - }() - }, { - key: "render", - value: function render() { - var _this3 = this; - - var _this$state = this.state, - data = _this$state.data, - loading = _this$state.loading; - var categories = global.strings("str_no_categories"); - var description = ""; - - var _getNavigationParams2 = (0, _$$_REQUIRE(_dependencyMap[18]).getNavigationParams)(this.props), - _getNavigationParams3 = _getNavigationParams2.isVirtual, - isVirtual = _getNavigationParams3 === undefined ? "" : _getNavigationParams3; - - var filteredInstances = this.filterInstances(data); - var manager = global.getVerticalsConfig().getEvents(); - - if (data.description) { - for (var i = 0; i < data.description.length; i++) { - description += data.description[i] === "\n" ? "\n\n" : data.description[i]; - } - } else { - description = ""; - } - - if (data.categories && data.categories.length) { - categories = ""; - var len = data.categories.length; - - for (var _i = 0; _i < len - 1; _i++) { - categories += data.categories[_i].name + ", "; - } - - categories += data.categories[len - 1].name; - } - - if (!loading) { - var _data$price = data.price, - free = _data$price.free, - lowerPrice = _data$price.lowerPrice, - upperPrice = _data$price.upperPrice; - var priceString; - - if (free) { - priceString = global.strings("str_free"); - } else if (lowerPrice && upperPrice && lowerPrice === upperPrice) { - priceString = "$" + lowerPrice; - } else if (lowerPrice && upperPrice) { - priceString = "$" + lowerPrice + " - $" + upperPrice; - } else { - priceString = global.strings("str_not_available"); - } - - return (0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_$$_REQUIRE(_dependencyMap[22]).TecnaviaScrollView, { - showsVerticalScrollIndicator: false, - children: [data.primaryImage ? (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_imageComponent.default, { - source: { - uri: data.primaryImage.largeImageUrl - }, - style: _$$_REQUIRE(_dependencyMap[23]).styles.image - }) : null, (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[23]).styles.title, - children: (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { - style: { - fontSize: 16, - color: _$$_REQUIRE(_dependencyMap[19]).colors.white - }, - type: _fontText.Type.bold, - children: data.name - }) - }), (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[23]).styles.section, - children: filteredInstances.map(function (element, index) { - return index < 7 ? (0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_fontText.default, { - type: index === 0 && filteredInstances.length > 1 ? "bold" : "regular", - children: [filteredInstances[index].start.format("dddd, MMMM D, YYYY: hh-mmA"), filteredInstances[index].end ? " - " + filteredInstances[0].end.format("h:mmA") : ""] - }, index) : null; - }) - }), data.location ? (0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[23]).styles.map, - children: [(0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[23]).styles.location, - type: _fontText.Type.bold, - children: global.strings("str_location") - }), (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[23]).styles.location, - children: data.location.locationName - }), data.location.address ? (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[23]).styles.location, - children: data.location.address - }) : null, data.location.city && data.location.state ? (0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[23]).styles.location, - children: [data.location.city, ", ", data.location.state] - }) : null] - }) : null, isVirtual ? (0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[23]).styles.section, - children: [(0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { - type: _fontText.Type.bold, - children: "Virtual Event URL: " - }), data.links.length && data.links[0].name && data.links[0].linkUrl ? (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { - style: { - color: _$$_REQUIRE(_dependencyMap[19]).colors.md_blue_600 - }, - onPress: function onPress() { - _tecnaviaPlatformUtils.default.openURL(data.links[0].linkUrl); - }, - children: data.links[0].linkUrl - }) : (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { - type: _fontText.Type.regular, - children: "No website has been specified for this event." - })] - }) : null, (0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[23]).styles.section, - children: [(0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { - type: _fontText.Type.bold, - children: "Price:" - }), (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { - children: priceString - })] - }), data.description ? (0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[23]).styles.section, - children: [(0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { - style: { - color: _$$_REQUIRE(_dependencyMap[19]).colors.black - }, - type: _fontText.Type.bold, - children: global.strings("str_description") - }), (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontTextInput.default, { - multiline: true, - editable: false, - dataDetectorTypes: "all", - children: description - })] - }) : null, data.categories.length > 0 ? (0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[23]).styles.section, - children: [(0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_fontText.default, { - style: { - color: _$$_REQUIRE(_dependencyMap[19]).colors.black - }, - type: _fontText.Type.bold, - children: [global.strings("categories"), ":"] - }), (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { - children: categories - })] - }) : null, data.contact && (data.contact.organization || data.contact.name || data.contact.email || data.contact.phone) ? (0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[23]).styles.section, - children: [(0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { - type: "bold", - children: "Contact info:" - }), data.contact.organization ? (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontTextInput.default, { - editable: false, - dataDetectorTypes: "all", - multiline: true, - children: data.contact.organization - }) : null, data.contact.name ? (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontTextInput.default, { - editable: false, - dataDetectorTypes: "all", - multiline: true, - children: data.contact.name - }) : null, data.contact.email ? (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontTextInput.default, { - editable: false, - dataDetectorTypes: "all", - multiline: true, - children: data.contact.email - }) : null, data.contact.phone ? (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontTextInput.default, { - editable: false, - dataDetectorTypes: "all", - multiline: true, - children: data.contact.phone - }) : null] - }) : null, data.media && data.media.length ? (0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[23]).styles.section, - children: [(0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { - type: "bold", - children: "Media:" - }), data.media.map(function (url) { - return (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { - style: { - color: _$$_REQUIRE(_dependencyMap[19]).colors.md_blue_600 - }, - onPress: function onPress() { - _tecnaviaPlatformUtils.default.openURL(url); - }, - children: url - }); - })] - }) : null, data.links.length && data.links[0].name && data.links[0].linkUrl ? (0, _$$_REQUIRE(_dependencyMap[21]).jsxs)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[23]).styles.section, - children: [(0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { - type: "bold", - children: "More info:" - }), (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_fontText.default, { - style: { - color: _$$_REQUIRE(_dependencyMap[19]).colors.md_blue_600 - }, - onPress: function onPress() { - _tecnaviaPlatformUtils.default.openURL(data.links[0].linkUrl); - }, - children: data.links[0].name - })] - }) : null, data.location ? (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[23]).styles.map, - children: (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_reactNative.TouchableOpacity, { - onPress: function onPress() { - var scheme = _reactNative.Platform.select({ - ios: "maps:0,0?q=", - android: "geo:0,0?q=" - }); - - var latLng = data.location.latitude + "," + data.location.longitude; - var label = data.name; - - var url = _reactNative.Platform.select({ - ios: "" + scheme + label + "@" + latLng, - android: "" + scheme + latLng + "(" + label + ")" - }); - - _tecnaviaPlatformUtils.default.openURL(url); - }, - children: (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_imageComponent.default, { - source: { - uri: "https://maps.googleapis.com/maps/api/staticmap?size=800x600&zoom=15¢er=" + data.location.latitude + "," + data.location.longitude + "&markers=color:blue%7C" + data.location.latitude + "," + data.location.longitude + "&key=AIzaSyCOsXayiWmGzfoIxTM6BQYa0HY7Z89h0Aw" - }, - style: _$$_REQUIRE(_dependencyMap[23]).styles.image - }) - }) - }) : null, (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[23]).styles.icons, - children: (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_iconTile.default, { - icons: [{ - title: global.strings("action_share"), - component: function component(style) { - return (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_iconComponent.default, { - type: _iconComponent.TecnaviaIconType.MATERIAL_ICONS, - name: "share", - style: style - }); - }, - onPress: function onPress(clicked) { - _this3.onShare(clicked.name, clicked.eventId); - } - }, { - title: !manager.favoriteIsStored(data) ? global.strings("action_save_for_later") : global.strings("action_remove_from_favorites"), - component: function component(style) { - return (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_$$_REQUIRE(_dependencyMap[24]).IconFavorite, { - item: data, - size: 20, - style: style, - eventToggleItemChecker: function eventToggleItemChecker(currentItem, params) { - return currentItem.eventId === params.eventId; - }, - toggleFavoritesEventName: _events.default.TOGGLE_EVENTS_FAVORITE, - isFavoriteChecker: function isFavoriteChecker(toCheck) { - return manager.favoriteIsStored(toCheck); - } - }); - }, - onPress: function onPress(clicked) { - manager.toggleFavorite(clicked); - } - }], - tintColor: (0, _$$_REQUIRE(_dependencyMap[20]).getEventColor)(), - item: data, - availableSpace: 5 - }) - })] - }); - } - - return (0, _$$_REQUIRE(_dependencyMap[21]).jsx)(_$$_REQUIRE(_dependencyMap[25]).ProgressCircle, { - parentStyle: _$$_REQUIRE(_dependencyMap[23]).styles.spinner, - text: global.strings("loading"), - spinnerColor: (0, _$$_REQUIRE(_dependencyMap[20]).getEventColor)(), - showText: true - }); - } - }]); - }(_$$_REQUIRE(_dependencyMap[18]).NavigationBaseScreen); -},2730,[3,270,6,7,11,85,13,14,16,18,436,2209,407,574,1918,2350,800,2018,2331,438,2632,179,2048,2731,2089,1995]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.styles = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var styles = exports.styles = _reactNative.StyleSheet.create({ - title: { - flexDirection: "row", - justifyContent: "center", - alignItems: "center", - backgroundColor: (0, _$$_REQUIRE(_dependencyMap[1]).getEventColor)(), - minHeight: 50, - padding: 3 - }, - map: { - flexDirection: "column", - marginTop: 10 - }, - section: { - flexDirection: "column", - margin: 10, - marginTop: 20 - }, - bold: { - color: _$$_REQUIRE(_dependencyMap[2]).colors.black - }, - category: { - flex: 95, - color: _$$_REQUIRE(_dependencyMap[2]).colors.black - }, - check: { - flex: 5, - color: (0, _$$_REQUIRE(_dependencyMap[1]).getEventColor)() - }, - image: { - width: "100%", - height: 300 - }, - spinner: { - position: "absolute", - bottom: "50%", - start: 0, - end: 0, - height: 50, - backgroundColor: _$$_REQUIRE(_dependencyMap[2]).colors.white - }, - location: { - marginLeft: 10, - marginBottom: 5 - }, - icons: { - position: "absolute", - left: 0, - right: 10, - top: 25 - } - }); -},2731,[18,2632,438]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2732,[2733]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.EventSearchScreen = undefined; - - var _asyncToGenerator2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); - - var _reactNative = _$$_REQUIRE(_dependencyMap[9]); - - var _events = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10])); - - var _fontText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11])); - - var _imageComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12])); - - var _iconComponent = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[13])); - - var _Api = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[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); } - - 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; } - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var EventSearchScreen = exports.EventSearchScreen = function (_NavigationBaseScreen) { - function EventSearchScreen(props) { - var _this; - - (0, _classCallCheck2.default)(this, EventSearchScreen); - _this = _callSuper(this, EventSearchScreen, [props, { - loading: true - }]); - _this.categories = []; - return _this; - } - - (0, _inherits2.default)(EventSearchScreen, _NavigationBaseScreen); - return (0, _createClass2.default)(EventSearchScreen, [{ - key: "componentDidMount", - value: function () { - var _componentDidMount = (0, _asyncToGenerator2.default)(function* () { - var _this$props = this.props, - username = _this$props.user, - password = _this$props.pass, - portal = _this$props.portal; - var api = (0, _$$_REQUIRE(_dependencyMap[15]).getEventCategories)(); - var config = { - auth: { - username: username, - password: password - } - }; - - try { - this.categories = (yield _Api.default.get(api, config, { - portal: portal - })).data; - } catch (e) {} - - this.setState({ - loading: false - }); - }); - - function componentDidMount() { - return _componentDidMount.apply(this, arguments); - } - - return componentDidMount; - }() - }, { - key: "handleBackButton", - value: function handleBackButton() { - var navigation = this.props.navigation; - navigation.goBack(null); - return (0, _get2.default)((0, _getPrototypeOf2.default)(EventSearchScreen.prototype), "handleBackButton", this).call(this); - } - }, { - key: "getTag", - value: function getTag() { - return "Event Search"; - } - }, { - key: "getZoomLevel", - value: function getZoomLevel(radius) { - return 14 - Math.log(radius) / Math.log(2); - } - }, { - key: "GMapCircle", - value: function GMapCircle(lat, lng, rad) { - var detail = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 8; - var color = (0, _$$_REQUIRE(_dependencyMap[15]).getEventColor)(); - var uri = "https://maps.googleapis.com/maps/api/staticmap"; - var staticMapSrc = "key=AIzaSyCOsXayiWmGzfoIxTM6BQYa0HY7Z89h0Aw"; - staticMapSrc += "&markers=color:blue|" + lat + "," + lng; - staticMapSrc += "¢er=" + lat + "," + lng; - staticMapSrc += "&size=800x600"; - staticMapSrc += "&zoom=" + this.getZoomLevel(rad); - staticMapSrc += "&path=fillcolor:0x" + color.substring(1) + "33|color:0xFFFFFF00|weight:1"; - var circle = ""; - var r = 3959.87; - var pi = Math.PI; - - var _lat = lat * pi / 180; - - var _lng = lng * pi / 180; - - var d = rad / r; - var i = 0; - - for (i = 0; i <= 360; i += detail) { - var brng = i * pi / 180; - var pLat = Math.asin(Math.sin(_lat) * Math.cos(d) + Math.cos(_lat) * Math.sin(d) * Math.cos(brng)); - var pLng = (_lng + Math.atan2(Math.sin(brng) * Math.sin(d) * Math.cos(_lat), Math.cos(d) - Math.sin(_lat) * Math.sin(pLat))) * 180 / pi; - pLat = pLat * 180 / pi; - circle += "|" + pLat + "," + pLng; - } - - return "https://maps.googleapis.com/maps/api/staticmap?" + staticMapSrc + circle; - } - }, { - key: "formatCategories", - value: function formatCategories(item) { - if (this.categories && item.categories) { - var categoriesText = this.categories.filter(function (_ref) { - var categoryId = _ref.categoryId, - name = _ref.name; - return item.categories.includes(categoryId); - }).map(function (_ref2) { - var name = _ref2.name; - return name; - }); - return categoriesText.join(","); - } - - return undefined; - } - }, { - key: "formatLabels", - value: function formatLabels(item) { - var labels = this.props.labels; - - if (labels && item.labels) { - var labelsText = labels.filter(function (_ref3) { - var label = _ref3.label; - return item.labels.includes(label); - }).map(function (_ref4) { - var name = _ref4.name; - return name; - }); - return labelsText.join(","); - } - - return undefined; - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var FORMAT = "YYYY-MM-DD"; - var navigation = this.props.navigation; - var loading = this.state.loading; - - if (loading) { - return null; - } - - var manager = global.getVerticalsConfig().getEvents(); - return (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_$$_REQUIRE(_dependencyMap[17]).VerticalSearchesList, { - eventName: _events.default.TOGGLE_EVENTS_SEARCH, - color: (0, _$$_REQUIRE(_dependencyMap[15]).getEventColor)(), - searchVerticalManager: manager, - onItemPress: function onItemPress(item) { - var lastSearch = manager.getLastSearch(); - - if (item !== lastSearch) { - manager.toggleLastSearch(item); - } - - if (item.timeRange) { - var result = _$$_REQUIRE(_dependencyMap[18]).DateUtils.getTimeRange(item.timeRange); - - if (result) { - var begin = result.begin, - end = result.end; - - if (begin && end) { - item.startDate = begin.format(FORMAT); - item.endDate = end.format(FORMAT); - } - } - } - - navigation.navigate("VerticalListScreen", { - filters: Object.assign({}, item) - }); - }, - renderItem: function renderItem(item) { - var startDate = item.startDate, - endDate = item.endDate, - searchTerm = item.searchTerm, - timeRange = item.timeRange; - var location = item.latitude || item.longitude ? global.strings("custom_location") : ""; - - var categories = _this2.formatCategories(item); - - var labels = _this2.formatLabels(item); - - var isDefault = manager.searchIsDefault(item); - var isLastSearch = manager.searchIsLastSearch(item); - var allEvents = !startDate && !endDate && !location && !categories && !searchTerm ? global.strings("all_events") : null; - return (0, _$$_REQUIRE(_dependencyMap[16]).jsxs)(_reactNative.View, { - style: _$$_REQUIRE(_dependencyMap[19]).styles.line, - children: [(0, _$$_REQUIRE(_dependencyMap[16]).jsxs)(_reactNative.View, { - style: { - flexDirection: "row" - }, - children: [(0, _$$_REQUIRE(_dependencyMap[16]).jsxs)(_reactNative.View, { - style: { - flex: 93 - }, - children: [timeRange && timeRange !== "custom" ? (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[19]).styles.text, - type: _fontText.Type.medium, - children: global.strings("str_time_range") + ": " + _$$_REQUIRE(_dependencyMap[18]).DateUtils.getTimeRangeString(timeRange) - }) : null, startDate && timeRange === "custom" ? (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[19]).styles.text, - type: _fontText.Type.medium, - children: global.strings("str_from") + ": " + startDate - }) : null, endDate && timeRange === "custom" ? (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[19]).styles.text, - type: _fontText.Type.medium, - children: global.strings("str_to") + ": " + endDate - }) : null, categories ? (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[19]).styles.text, - type: _fontText.Type.medium, - children: global.strings("categories") + ": " + categories - }) : null, labels ? (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[19]).styles.text, - type: _fontText.Type.medium, - children: global.strings("labels") + ": " + labels - }) : null, searchTerm ? (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[19]).styles.text, - type: _fontText.Type.medium, - children: global.strings("search_term") + ": " + searchTerm - }) : null, allEvents ? (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_fontText.default, { - style: _$$_REQUIRE(_dependencyMap[19]).styles.title, - type: _fontText.Type.medium, - children: "" + allEvents - }) : null] - }), (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_reactNative.View, { - style: { - flex: 7, - justifyContent: "center" - }, - children: !isLastSearch ? (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_reactNative.TouchableOpacity, { - onPress: function onPress() { - if (isDefault) { - manager.toggleDefaultSearch(item, false); - } else { - manager.toggleSearch(item); - } - }, - children: (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_iconComponent.default, { - type: _iconComponent.TecnaviaIconType.FONT_AWESOME_5, - name: "trash", - color: (0, _$$_REQUIRE(_dependencyMap[15]).getEventColor)(), - size: 18 - }) - }) : null - })] - }), location ? (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_reactNative.View, { - style: { - justifyContent: "center", - alignItems: "center" - }, - children: (0, _$$_REQUIRE(_dependencyMap[16]).jsx)(_imageComponent.default, { - style: { - width: "100%", - height: 280, - margin: 10 - }, - source: { - uri: _this2.GMapCircle(item.latitude, item.longitude, item.radius) - } - }) - }) : null] - }); - }, - onEmptyPress: function onEmptyPress() { - navigation.navigate("VerticalFiltersScreen"); - } - }); - } - }]); - }(_$$_REQUIRE(_dependencyMap[20]).NavigationBaseScreen); -},2733,[3,270,6,7,11,85,13,14,16,18,436,800,574,1918,407,2632,179,2661,438,2734,2331]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.styles = undefined; - - var _reactNative = _$$_REQUIRE(_dependencyMap[0]); - - var styles = exports.styles = _reactNative.StyleSheet.create({ - line: { - flexDirection: "column", - padding: 10, - borderBottomWidth: 0.5, - borderColor: (0, _$$_REQUIRE(_dependencyMap[1]).getEventColor)(), - justifyContent: "center" - }, - title: { - fontSize: 20, - flex: 1 - }, - text: { - fontSize: 14, - flex: 1 - }, - subtitle: { - fontSize: 20, - flex: 1 - } - }); -},2734,[18,2632]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2735,[2736]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.EventWebScreen = undefined; - - var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - - var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - - var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); - - var _get2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - - var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); - - var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - - function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } - - function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } - - var EventWebScreen = exports.EventWebScreen = function (_NavigationBaseScreen) { - function EventWebScreen() { - (0, _classCallCheck2.default)(this, EventWebScreen); - return _callSuper(this, EventWebScreen, arguments); - } - - (0, _inherits2.default)(EventWebScreen, _NavigationBaseScreen); - return (0, _createClass2.default)(EventWebScreen, [{ - key: "handleBackButton", - value: function handleBackButton() { - var navigation = this.props.navigation; - navigation.goBack(null); - return (0, _get2.default)((0, _getPrototypeOf2.default)(EventWebScreen.prototype), "handleBackButton", this).call(this); - } - }, { - key: "getTag", - value: function getTag() { - return "Event WebView"; - } - }, { - key: "render", - value: function render() { - var _getNavigationParams = (0, _$$_REQUIRE(_dependencyMap[8]).getNavigationParams)(this.props), - url = _getNavigationParams.url; - - return (0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[10]).BaseWebView, { - source: { - uri: url - }, - progressColor: (0, _$$_REQUIRE(_dependencyMap[11]).getEventColor)(), - browser: true - }); - } - }]); - }(_$$_REQUIRE(_dependencyMap[8]).NavigationBaseScreen); -},2736,[3,6,7,11,85,13,14,16,2331,179,2042,2632]); -__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.keys(_$$_REQUIRE(_dependencyMap[0])).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - if (key in exports && exports[key] === _$$_REQUIRE(_dependencyMap[0])[key]) return; - Object.defineProperty(exports, key, { - enumerable: true, - get: function get() { - return _$$_REQUIRE(_dependencyMap[0])[key]; - } - }); - }); -},2737,[2738]); +},2620,[2621]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -390254,7 +366063,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e TutorialScreen.propTypes = { navigation: _propTypes.default.object }; -},2738,[3,6,7,11,85,13,14,16,18,568,800,2164,2397,574,434,1999,2331,179,2739,1995]); +},2621,[3,6,7,11,85,13,14,16,18,568,800,2047,2280,574,434,1888,2214,179,2622,1884]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -390296,7 +366105,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e backgroundColor: _$$_REQUIRE(_dependencyMap[1]).colors.black } }); -},2739,[18,438]); +},2622,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -390311,7 +366120,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2740,[2741]); +},2623,[2624]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -390692,7 +366501,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigate: _propTypes.default.func.isRequired }).isRequired }; -},2741,[3,270,6,7,11,85,13,14,16,18,568,434,2009,552,2179,2489,2497,2349,2159,2018,438,2331,2129,179,2355,2019,803,2049]); +},2624,[3,270,6,7,11,85,13,14,16,18,568,434,1898,552,2062,2372,2380,2232,2042,1928,438,2214,2013,179,2238,1929,803,1938]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -390707,7 +366516,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2742,[2743]); +},2625,[2626]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -390986,25 +366795,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return 0; } - }, { - key: "_getBanner", - value: function _getBanner(configuration, _onLayout) { - var _this$settings4; - - var backgroundColor = global.getAdsConfig().getBackgroundColor(); - return (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(_reactNative.View, { - style: { - alignItems: "center", - backgroundColor: backgroundColor - }, - onLayout: function onLayout(e) { - if (_onLayout) { - _onLayout(e); - } - }, - children: _AdsHelper.default.getAdComponentFromConfiguration((_this$settings4 = this.settings) == null ? undefined : _this$settings4.adUnitId, configuration) - }); - } }, { key: "_onArticleRef", value: function _onArticleRef(ref, index) { @@ -391042,24 +366832,39 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, { key: "_getTopBanner", - value: function _getTopBanner(onLayout) { - return this._getBanner({ - screen: "article", - position: "top", - caller: this.getTag() - }, onLayout); + value: function _getTopBanner() { + var _this$settings4; + + if (!((_this$settings4 = this.settings) != null && _this$settings4.adUnitId)) { + return null; + } + + var backgroundColor = global.getAdsConfig().getBackgroundColor(); + return (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(_reactNative.View, { + style: { + alignItems: "center", + backgroundColor: backgroundColor + }, + children: (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(_$$_REQUIRE(_dependencyMap[33]).BannerAutoHide, { + data: this.settings.adUnitId, + configuration: { + screen: "article", + position: "top", + caller: this.getTag() + } + }) + }); } }, { key: "_getBottomBanner", - value: function _getBottomBanner(onLayout) { - return (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(_$$_REQUIRE(_dependencyMap[33]).FooterBanner, { + value: function _getBottomBanner() { + return (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(_$$_REQUIRE(_dependencyMap[34]).FooterBanner, { item: this.settings, configuration: { screen: "article", position: "bottom", caller: this.getTag() - }, - onLayout: onLayout + } }); } }, { @@ -391106,46 +366911,45 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e key: "_updateNativeIds", value: function () { var _updateNativeIds2 = (0, _asyncToGenerator2.default)(function* (index) { - if (_optionalPackageUtils.default.isNativoSDKAvailable()) { - if (this.articlesRefs) { - this.delayedNativoSetup = false; - var articlesSet = this.articlesRefs.filter(function (article) { - return !!article; - }); - this.delayedNativoSetup = articlesSet.length === 0; + if (!_optionalPackageUtils.default.isNativoSDKAvailable() || !this.articlesRefs) { + return; + } - if (this.nativoAdsMOAP) { - for (var i = 0; i < this.articlesRefs.length; i++) { - var ref = this.articlesRefs[i]; + var articlesSet = this.articlesRefs.filter(function (article) { + return !!article; + }); + this.delayedNativoSetup = articlesSet.length === 0; - if (ref) { - yield ref.setNativeID("article_" + i); - } - } + if (this.nativoAdsMOAP) { + for (var i = 0; i < this.articlesRefs.length; i++) { + var ref = this.articlesRefs[i]; - if (this.articlesRefs[index]) { - yield this.articlesRefs[index].setNativeID("nativoMoapAdView"); + if (ref) { + yield ref.setNativeID("article_" + i); + } + } - if (this.articlesRefs[index].pageLoaded) { - this._placeNativoMOAPAd(this.nativoAdsMOAP, true); - } - } - } else if (this.nativoAdsMOAPExtra) { - for (var _i = 0; _i < this.articlesRefs.length; _i++) { - var _ref = this.articlesRefs[_i]; + if (this.articlesRefs[index]) { + yield this.articlesRefs[index].setNativeID("nativoMoapAdView"); - if (_ref && _ref.nativoMOAPWebView) { - yield _ref.nativoMOAPWebView.setNativeID("article_" + _i); - } - } + if (this.articlesRefs[index].pageLoaded) { + this._placeNativoMOAPAd(this.nativoAdsMOAP, true); + } + } + } else if (this.nativoAdsMOAPExtra) { + for (var _i = 0; _i < this.articlesRefs.length; _i++) { + var _ref = this.articlesRefs[_i]; - if (this.articlesRefs[index] && this.articlesRefs[index].nativoMOAPWebView) { - yield this.articlesRefs[index].nativoMOAPWebView.setNativeID("nativoMoapAdView"); + if (_ref && _ref.nativoMOAPWebView) { + yield _ref.nativoMOAPWebView.setNativeID("article_" + _i); + } + } - if (this.articlesRefs[index].pageLoaded) { - this._placeNativoMOAPAd(this.nativoAdsMOAPExtra, true); - } - } + if (this.articlesRefs[index] && this.articlesRefs[index].nativoMOAPWebView) { + yield this.articlesRefs[index].nativoMOAPWebView.setNativeID("nativoMoapAdView"); + + if (this.articlesRefs[index].pageLoaded) { + this._placeNativoMOAPAd(this.nativoAdsMOAPExtra, true); } } } @@ -391195,11 +366999,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(_reactNative.View, { style: _articleScreen.default.root, children: (0, _$$_REQUIRE(_dependencyMap[32]).jsxs)(_keyboardAvoidingComponent.default, Object.assign({}, keyboardProps, { - children: [(0, _$$_REQUIRE(_dependencyMap[32]).jsx)(_$$_REQUIRE(_dependencyMap[34]).Css, { + children: [(0, _$$_REQUIRE(_dependencyMap[32]).jsx)(_$$_REQUIRE(_dependencyMap[35]).Css, { classes: ["article-pager"], children: (0, _$$_REQUIRE(_dependencyMap[32]).jsx)(_viewPagerComponent.default, { containerStyle: [_articleScreen.default.swiper, { - backgroundColor: _$$_REQUIRE(_dependencyMap[34]).Css.getDefaultBackgroundColor() + backgroundColor: _$$_REQUIRE(_dependencyMap[35]).Css.getDefaultBackgroundColor() }], data: this.articles, startPage: this.currentIndex, @@ -391226,7 +367030,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }) }; -},2743,[3,270,6,7,11,85,13,14,568,16,18,436,2218,2317,2093,2000,434,865,1999,2116,839,2397,2744,2748,2757,2765,2331,550,2182,2014,438,2167,179,2235,803]); +},2626,[3,270,6,7,11,85,13,14,568,16,18,436,2101,2200,1977,1889,434,865,1888,2000,840,2280,2627,2631,2640,2648,2214,550,2065,1903,438,2050,179,2598,2118,803]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -391265,13 +367069,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _styleUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16])); - var _Resource = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[17])); + var _webUtils = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[17])); - var _articleAdContainer = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[18])); + var _Resource = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[18])); - var _autoheightRssOptionspageComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[19])); + var _articleAdContainer = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[19])); - var _iconGallery = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[20])); + var _autoheightRssOptionspageComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[20])); + + var _iconGallery = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[21])); 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); } @@ -391336,16 +367142,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e value: function componentDidMount() { var _this2 = this; - this.toggleFont = _$$_REQUIRE(_dependencyMap[21]).EventRegister.on(_events.default.TOGGLE_FULLSCREEN_FONT_SIZE, function () { + this.toggleFont = _$$_REQUIRE(_dependencyMap[22]).EventRegister.on(_events.default.TOGGLE_FULLSCREEN_FONT_SIZE, function () { _this2._updateWebviewFontSize(); }); - this.systemFontSizeChanged = _$$_REQUIRE(_dependencyMap[21]).EventRegister.on(_events.default.SYSTEM_FONT_SIZE_CHANGED, function () { + this.systemFontSizeChanged = _$$_REQUIRE(_dependencyMap[22]).EventRegister.on(_events.default.SYSTEM_FONT_SIZE_CHANGED, function () { _this2._updateWebviewFontSize(); }); - this.orientationListener = _$$_REQUIRE(_dependencyMap[21]).EventRegister.on(_events.default.ON_ORIENTATION_CHANGE, function () { + this.orientationListener = _$$_REQUIRE(_dependencyMap[22]).EventRegister.on(_events.default.ON_ORIENTATION_CHANGE, function () { _this2._getLoadedAds(); }); - this.paywallReload = _$$_REQUIRE(_dependencyMap[21]).EventRegister.on(_events.default.PAYWALL_USER_STATUS_UPDATE, function () { + this.paywallReload = _$$_REQUIRE(_dependencyMap[22]).EventRegister.on(_events.default.PAYWALL_USER_STATUS_UPDATE, function () { var item = _this2.props.item; var source = item.source; @@ -391353,7 +367159,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e truncate: _Paywall.default.needToAppendPaywall(source) }); }); - this.paywallValidate = _$$_REQUIRE(_dependencyMap[21]).EventRegister.on(_events.default.PAYWALL_VALIDATE, function (_ref) { + this.paywallValidate = _$$_REQUIRE(_dependencyMap[22]).EventRegister.on(_events.default.PAYWALL_VALIDATE, function (_ref) { var ACI = _ref.ACI, validated = _ref.validated; var item = _this2.props.item; @@ -391365,7 +367171,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }); } }); - this.changeAdsVisibility = _$$_REQUIRE(_dependencyMap[21]).EventRegister.on(_events.default.CHANGE_ADS_VISIBILITY, function (_ref2) { + this.changeAdsVisibility = _$$_REQUIRE(_dependencyMap[22]).EventRegister.on(_events.default.CHANGE_ADS_VISIBILITY, function (_ref2) { var hideAds = _ref2.hideAds; _this2._changeAdsVisibility(hideAds); @@ -391382,17 +367188,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onUnmount(index); } - _$$_REQUIRE(_dependencyMap[21]).EventRegister.rm(this.toggleFont); + _$$_REQUIRE(_dependencyMap[22]).EventRegister.rm(this.toggleFont); - _$$_REQUIRE(_dependencyMap[21]).EventRegister.rm(this.systemFontSizeChanged); + _$$_REQUIRE(_dependencyMap[22]).EventRegister.rm(this.systemFontSizeChanged); - _$$_REQUIRE(_dependencyMap[21]).EventRegister.rm(this.orientationListener); + _$$_REQUIRE(_dependencyMap[22]).EventRegister.rm(this.orientationListener); - _$$_REQUIRE(_dependencyMap[21]).EventRegister.rm(this.paywallReload); + _$$_REQUIRE(_dependencyMap[22]).EventRegister.rm(this.paywallReload); - _$$_REQUIRE(_dependencyMap[21]).EventRegister.rm(this.paywallValidate); + _$$_REQUIRE(_dependencyMap[22]).EventRegister.rm(this.paywallValidate); - _$$_REQUIRE(_dependencyMap[21]).EventRegister.rm(this.changeAdsVisibility); + _$$_REQUIRE(_dependencyMap[22]).EventRegister.rm(this.changeAdsVisibility); } }, { key: "_onScroll", @@ -391401,7 +367207,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var item = this.props.item; var yOffset = nativeEvent.contentOffset.y; - _$$_REQUIRE(_dependencyMap[21]).EventRegister.emit(_events.default.ARTICLE_SCROLL, { + _$$_REQUIRE(_dependencyMap[22]).EventRegister.emit(_events.default.ARTICLE_SCROLL, { id: item.feedId, scrollYOffset: yOffset }); @@ -391417,7 +367223,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e this.articleWebView.updateHeight(height); } - _$$_REQUIRE(_dependencyMap[21]).EventRegister.emit(_events.default.ARTICLE_SCROLL_LAYOUT, { + _$$_REQUIRE(_dependencyMap[22]).EventRegister.emit(_events.default.ARTICLE_SCROLL_LAYOUT, { id: item.feedId, scrollHeight: height }); @@ -391514,7 +367320,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e fontBold = _global$getFontsConfi.fontBold, dynamicFonts = _global$getFontsConfi.mappedDynamicFonts; - return (0, _$$_REQUIRE(_dependencyMap[22]).generateAssetsFontCss)(fontRegular, fontBold, dynamicFonts); + return (0, _$$_REQUIRE(_dependencyMap[23]).generateAssetsFontCss)(fontRegular, fontBold, dynamicFonts); } }, { key: "_getCommonCss", @@ -391522,11 +367328,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _global$getRssIndex2 = global.getRssIndex(), articleBgColor = _global$getRssIndex2.articleBgColor; - var articleBodyStyle = _$$_REQUIRE(_dependencyMap[23]).Css.getStyleObjByCssClasses(["article-body"]); + var articleBodyStyle = _$$_REQUIRE(_dependencyMap[24]).Css.getStyleObjByCssClasses(["article-body"]); var backgroundColor = articleBodyStyle.backgroundColor || _styleUtils.default.fixColorForDarkTheme(articleBgColor); - var foregroundColor = articleBodyStyle.color || _$$_REQUIRE(_dependencyMap[24]).colors.grey1000; + var foregroundColor = articleBodyStyle.color || _$$_REQUIRE(_dependencyMap[25]).colors.grey1000; var _global$getRSSActiveP = global.getRSSActivePSetup(), enableArticleTextSelection = _global$getRSSActiveP.enableArticleTextSelection; @@ -391564,19 +367370,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _global$getActivePSet = global.getActivePSetup(), enableInStoryAdMarker = _global$getActivePSet.enableInStoryAdMarker; - var cssTheme = _$$_REQUIRE(_dependencyMap[23]).Css.getThemeInUse(); - - var themeClass = ""; - - if (cssTheme) { - themeClass = " class='" + cssTheme + "'"; - } + var themeClass = _webUtils.default.getThemeClassesAttribute(); if (hasColumnizer) { - return "\n \n \n " + this._getTagTitle(title) + "\n \n \n \n \n \n \n \n \n \n \n \n
\n
\n " + html + "\n
\n
\n \n \n "; + return "\n \n \n " + this._getTagTitle(title) + "\n \n \n \n \n \n \n \n \n \n \n \n
\n
\n " + html + "\n
\n
\n \n \n "; } - return "\n \n \n " + this._getTagTitle(title) + "\n \n \n \n \n \n \n \n \n \n \n
" + html + "
\n \n \n "; + return "\n \n \n " + this._getTagTitle(title) + "\n \n \n \n \n \n \n \n \n \n \n
" + html + "
\n \n \n "; } }, { key: "_replacePlaceholder", @@ -391609,7 +367409,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e content = this._getContent(content + html, this._getFontSize(), title); content = this._replacePlaceholder(content); - content = (0, _$$_REQUIRE(_dependencyMap[22]).removeWebAdsFromString)(content); + content = (0, _$$_REQUIRE(_dependencyMap[23]).removeWebAdsFromString)(content); return content; } }, { @@ -391620,7 +367420,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e uri: item.html } : { html: this._getHtmlContent(item), - baseUrl: _$$_REQUIRE(_dependencyMap[26]).WEBVIEW_BASE_URL + baseUrl: _webUtils.WEBVIEW_BASE_URL }; } }, { @@ -391718,20 +367518,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }, { key: "_getTopBanner", - value: function _getTopBanner(onLayout) { + value: function _getTopBanner() { var renderTopBanner = this.props.renderTopBanner; - return renderTopBanner(onLayout); + + if (typeof renderTopBanner !== "function") { + return null; + } + + return renderTopBanner(); } }, { key: "_setNativeAdsCallback", value: function _setNativeAdsCallback(data) { - if (data && data.length) { + if (!_$$_REQUIRE(_dependencyMap[25]).JSUtils.isEmpty(data)) { var nativeAds = data.filter(function (ad) { return ad.provider !== InterstitialsKeysAndValues.values.provider.nativo; }); var item = this.props.item; - _$$_REQUIRE(_dependencyMap[21]).EventRegister.emit(_events.default.LOAD_NATIVE_ADS, { + _$$_REQUIRE(_dependencyMap[22]).EventRegister.emit(_events.default.LOAD_NATIVE_ADS, { id: item.feedId, nativeAds: nativeAds }); @@ -391788,16 +367593,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "_getLoadedAds", value: function _getLoadedAds() { - if (this.articleWebView) { - this.articleWebView.injectJavaScript("if (typeof getLoadedAds === 'function') getLoadedAds();"); - } + var _this$articleWebView; + + (_this$articleWebView = this.articleWebView) == null ? undefined : _this$articleWebView.injectJavaScript("if (typeof getLoadedAds === 'function') getLoadedAds();"); } }, { key: "_changeAdsVisibility", value: function _changeAdsVisibility(hide) { - if (this.articleWebView) { - this.articleWebView.injectJavaScript("$(\"div[id^='mobileRectangle_atf']\")." + (hide ? "hide" : "show") + "();"); - } + var _this$articleWebView2; + + (_this$articleWebView2 = this.articleWebView) == null ? undefined : _this$articleWebView2.injectJavaScript("$(\"div[id^='mobileRectangle_atf']\")." + (hide ? "hide" : "show") + "();"); } }, { key: "_openLink", @@ -391878,7 +367683,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } else if (type === "GET_NATIVE_ADS_PLACEHOLDER") { this._setNativeAdsCallback(content); } else if (type === "SET_CUSTOM_EMBED") { - _$$_REQUIRE(_dependencyMap[21]).EventRegister.emit(_events.default.CUSTOM_WEBVIEW_CONTENT, content); + _$$_REQUIRE(_dependencyMap[22]).EventRegister.emit(_events.default.CUSTOM_WEBVIEW_CONTENT, content); } else if (asyncKey) { var asyncMethod; @@ -391890,7 +367695,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e asyncMethod = function () { var _ref6 = (0, _asyncToGenerator2.default)(function* () { return new Promise(function (resolve, reject) { - _$$_REQUIRE(_dependencyMap[21]).EventRegister.on(_events.default.PAYWALL_USER_STATUS_UPDATE, function (_ref7) { + _$$_REQUIRE(_dependencyMap[22]).EventRegister.on(_events.default.PAYWALL_USER_STATUS_UPDATE, function (_ref7) { var loggedIn = _ref7.loggedIn; var subscriptions = _PaywallLoginStatus.default.getSubscriptions().join(","); @@ -391910,7 +367715,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } if (typeof asyncMethod === "function") { - var _this$articleWebView; + var _this$articleWebView3; var result; var method = "resolve"; @@ -391922,7 +367727,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e method = "reject"; } - (_this$articleWebView = this.articleWebView) == null ? undefined : _this$articleWebView.injectJavaScript("awaitPostMessage('" + asyncKey + "', '" + method + "', '" + result + "');"); + (_this$articleWebView3 = this.articleWebView) == null ? undefined : _this$articleWebView3.injectJavaScript("awaitPostMessage('" + asyncKey + "', '" + method + "', '" + result + "');"); } } }); @@ -392023,7 +367828,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var views = resources.map(function (resource, index) { switch (resource.getType()) { case _Resource.ResourceType.VIAFOURA: - return ViafouraWebView ? (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[23]).Css, { + return ViafouraWebView ? (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[24]).Css, { classes: ["article-resource-viafoura"], children: (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(ViafouraWebView, { autoHeightJs: "(" + _$$_REQUIRE(_dependencyMap[33]).checkContentHeight + ")();", @@ -392042,7 +367847,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, "resource_" + index) : null; case _Resource.ResourceType.TOP_STORY: - return (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[23]).Css, { + return (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[24]).Css, { classes: ["article-resource-top-stories"], children: (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[35]).AutoHeightWebView, { ref: _this4.onTopStoryRef, @@ -392055,7 +367860,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, "resource_" + index); case _Resource.ResourceType.NATIVO_MOAP_AD: - return (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[23]).Css, { + return (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[24]).Css, { classes: ["article-resource-nativo-moap"], children: (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[35]).AutoHeightWebView, { ref: _this4.onNativoMOAPContainerRef, @@ -392071,7 +367876,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e return null; } }); - return (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[23]).Css, { + return (0, _$$_REQUIRE(_dependencyMap[27]).jsx)(_$$_REQUIRE(_dependencyMap[24]).Css, { classes: ["article-resources"], children: views }); @@ -392133,7 +367938,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e hasColumnizer: false, insideAdModels: [] }; -},2744,[3,270,6,7,11,13,14,568,16,2286,2173,436,2093,2000,2003,865,2318,2094,2292,2745,2148,550,2302,803,438,2305,851,179,864,2006,2004,2172,2019,2040,1995,2038]); +},2627,[3,270,6,7,11,13,14,568,16,2169,2056,436,1977,1889,1892,865,2201,852,1978,2175,2628,2031,550,2185,803,438,2188,179,864,1895,1893,2055,1929,1925,1884,1923]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -392270,7 +368075,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2745,[3,270,6,7,11,85,13,14,568,16,436,1976,613,864,550,179,2038,438,2034,2746,1166]); +},2628,[3,270,6,7,11,85,13,14,568,16,436,1865,613,864,550,179,1923,438,1919,2629,1073]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -392410,7 +368215,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e navigation: navigation })); }; -},2746,[3,270,6,7,11,85,13,14,568,16,2184,436,434,2165,864,550,2747,1166,179]); +},2629,[3,270,6,7,11,85,13,14,568,16,2067,436,434,2048,864,550,2630,1073,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -392482,7 +368287,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[9]).BaseOptionspage); -},2747,[3,6,7,11,85,13,14,864,438,2345]); +},2630,[3,6,7,11,85,13,14,864,438,2228]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -392635,7 +368440,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e item: _propTypes.default.object, onBylinePress: _propTypes.default.func }; -},2748,[3,6,7,11,13,14,568,16,18,2318,2744,2749,179,2048,803,438,2750,2159,2752]); +},2631,[3,6,7,11,13,14,568,16,18,2201,2627,2632,179,1937,803,438,2633,2042,2635]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -392657,7 +368462,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e minHeight: 0 } }); -},2749,[18]); +},2632,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -392906,7 +368711,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e hasSquaredImage: _propTypes.default.bool, rootStyle: _propTypes.default.any }; -},2750,[3,6,7,11,13,14,16,18,568,800,574,2165,2156,803,438,179,2751]); +},2633,[3,6,7,11,13,14,16,18,568,800,574,2048,2039,803,438,179,2634]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -392957,7 +368762,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2751,[18]); +},2634,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -392972,7 +368777,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2752,[2753]); +},2635,[2636]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -393350,7 +369155,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e style: _propTypes.default.any, loadUrlInArticle: _propTypes.default.bool }; -},2753,[3,270,6,7,11,13,14,568,16,553,436,2000,2090,2754,2091,550,803,179,2756,1918,438]); +},2636,[3,270,6,7,11,13,14,568,16,553,436,1889,1974,2637,1975,550,803,179,2639,1807,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -393502,7 +369307,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _reactNative.Animated.spring(anim, { toValue: 1, - duration: 250 + duration: 250, + useNativeDriver: false }).start(); this.setState({ @@ -393518,7 +369324,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e _reactNative.Animated.spring(anim, { toValue: 0, - duration: 250 + duration: 250, + useNativeDriver: false }).start(); setTimeout(function () { @@ -393753,7 +369560,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e btnOutRange: _$$_REQUIRE(_dependencyMap[10]).colors.black, btnOutRangeTxt: _$$_REQUIRE(_dependencyMap[10]).colors.white }; -},2754,[3,6,7,11,13,14,568,16,18,2755,438,179]); +},2637,[3,6,7,11,13,14,568,16,18,2638,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -393876,7 +369683,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e startDegree: 0, endDegree: 720 }; -},2755,[3,6,7,11,13,14,16,18,568,179]); +},2638,[3,6,7,11,13,14,16,18,568,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -393891,7 +369698,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2756,[2089]); +},2639,[1973]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -394031,7 +369838,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = ArticleContent; -},2757,[3,6,7,11,13,14,568,16,18,2744,803,2588,179,2758,438,2760,2762,2752]); +},2640,[3,6,7,11,13,14,568,16,18,2627,803,2592,179,2641,438,2643,2645,2635]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -394178,7 +369985,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e onImagePress: _propTypes.default.func, onImageError: _propTypes.default.func }; -},2758,[3,16,18,568,800,2171,2148,2226,2318,438,179,803,2759,2095]); +},2641,[3,16,18,568,800,2054,2031,2109,2201,438,179,803,2642,1979]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -394204,7 +370011,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e padding: 10 } }); -},2759,[18,438]); +},2642,[18,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -394219,7 +370026,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2760,[2761]); +},2643,[2644]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -394320,7 +370127,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e renderParallaxBackground: null, parallaxBackgroundScrollSpeed: 2 }; -},2761,[3,4,16,18,568,179,2048,438]); +},2644,[3,4,16,18,568,179,1937,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -394335,22 +370142,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2762,[2763]); +},2645,[2646]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true }); exports.ArticleContentHeadline = ArticleContentHeadline; - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1])); - var _reactNative = _$$_REQUIRE(_dependencyMap[2]); + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2])); - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3])); + var _reactNative = _$$_REQUIRE(_dependencyMap[3]); - var _fontText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[4])); + var _styleUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4])); - var _styleUtils = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5])); + var _fontText = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[5])); 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); } @@ -394427,7 +370234,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) }) : null] }) - }), renderTopBanner && renderTopBanner()] + }), renderTopBanner == null ? undefined : renderTopBanner()] }) }); } @@ -394443,7 +370250,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e ArticleContentHeadline.defaultProps = { date: "" }; -},2763,[3,16,18,568,800,2318,803,179,2764]); +},2646,[3,568,16,18,2201,800,803,179,2647]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -394479,7 +370286,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e paddingHorizontal: 4 } }); -},2764,[18]); +},2647,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -394502,7 +370309,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e flex: 1 } }); -},2765,[18]); +},2648,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -394622,7 +370429,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = CustomEmbedWebView; -},2766,[3,33,4,568,16,18,436,434,2323,2305,851,550,179,803,2767,2034,438]); +},2649,[3,33,4,568,16,18,436,434,2206,2188,852,550,179,803,2650,1919,438]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -394641,9 +370448,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6])); - var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); + var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7])); - var _propTypes = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); + var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[8])); var _excluded = ["onLoadEnd", "onLoadStart", "onMessage", "style", "onHeightChange", "source", "innerRef"]; @@ -394844,12 +370651,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "stopLoading", value: function stopLoading() { - this.webview.stopLoading(); + var _this$webview; + + (_this$webview = this.webview) == null ? undefined : _this$webview.stopLoading(); } }, { key: "reload", value: function reload() { - this.webview.reload(); + var _this$webview2; + + (_this$webview2 = this.webview) == null ? undefined : _this$webview2.reload(); } }, { key: "injectJavaScript", @@ -394872,9 +370683,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }, { key: "_log", value: function _log(message) { - if (this.baseWebViewRef) { - this.baseWebViewRef._log(message); - } + var _this$baseWebViewRef; + + (_this$baseWebViewRef = this.baseWebViewRef) == null ? undefined : _this$baseWebViewRef._log(message); } }, { key: "render", @@ -394927,7 +370738,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e htmlContentId: "", disableStartAutoHeightEvaluation: false }; -},2767,[3,4,6,7,11,13,14,16,568,438,2040,179,2042]); +},2650,[3,4,6,7,11,13,14,568,16,438,1925,179,1927]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -395071,7 +370882,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e NativoLandingPageScreen.propTypes = { navigation: _propTypes.default.object.isRequired }; -},2768,[3,6,7,11,13,14,16,568,18,865,2331,179,2048]); +},2651,[3,6,7,11,13,14,16,568,18,865,2214,179,1937]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -395154,7 +370965,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[9]).NavigationBaseScreen); -},2769,[3,6,7,11,13,14,16,407,2770,2331,438,179]); +},2652,[3,6,7,11,13,14,16,407,2653,2214,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -395241,7 +371052,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }) : null] }); } -},2770,[3,33,16,18,2329,436,434,851,438,550,803,179,2042,2034]); +},2653,[3,33,16,18,2212,436,434,852,438,550,803,179,1927,1919]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -395327,7 +371138,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[10]).NavigationBaseScreen); -},2771,[3,6,7,11,13,14,16,406,407,2770,2331,438,179]); +},2654,[3,6,7,11,13,14,16,406,407,2653,2214,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -395565,7 +371376,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[25]).NavigationBaseScreen); -},2772,[3,270,6,7,11,85,13,14,16,2269,2009,2179,1834,436,2008,864,1835,1999,2770,438,550,2019,179,1995,2037,2331]); +},2655,[3,270,6,7,11,85,13,14,16,2152,1898,2062,1723,436,1897,864,1724,1888,2653,438,550,1929,179,1884,1922,2214]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -395706,7 +371517,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e SelectionScreen.propTypes = { navigation: _propTypes.default.object }; -},2773,[3,270,6,7,11,85,13,14,16,568,2770,2331,438,179]); +},2656,[3,270,6,7,11,85,13,14,16,568,2653,2214,438,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -395782,7 +371593,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[12]).NavigationBaseScreen); -},2774,[3,6,7,11,13,14,16,18,800,1918,803,179,2331]); +},2657,[3,6,7,11,13,14,16,18,800,1807,803,179,2214]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -396104,7 +371915,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e UpdaterScreen.defaultProps = { manualRestartContext: global.__DEV__ }; -},2775,[3,270,6,7,11,85,13,14,568,16,18,407,434,613,2012,552,2339,800,2776,438,565,2123,2331,803,179,1995,2357]); +},2658,[3,270,6,7,11,85,13,14,568,16,18,407,434,613,1901,552,2222,800,2659,438,565,2007,2214,803,179,1884,2240]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -396141,7 +371952,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e alignItems: "center" } }); -},2776,[18]); +},2659,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -396156,7 +371967,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2777,[2778]); +},2660,[2661]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -396324,11 +372135,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e try { yield _PushHelper.default.init(); + (0, _$$_REQUIRE(_dependencyMap[23]).addDebugOperation)("PushHelper", "init completed"); } catch (e) {} - if (!(yield _PushHelper.default.checkIfAppIsOpenedByNotification(function (navigator) { + var isOpenedByNotification = yield _PushHelper.default.checkIfAppIsOpenedByNotification(function (navigator) { _this3.setStartupNavigator(navigator); - }))) { + }); + + if (!isOpenedByNotification) { if (_$$_REQUIRE(_dependencyMap[25]).PlatformUtils.hasNotDefaultFontScale() && !global.getUserSettings().userAlreadySetAllowFontScale) { yield global.getUserSettings().showAllowFontScalingModal(); } @@ -396794,7 +372608,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }]); }(_$$_REQUIRE(_dependencyMap[35]).NavigationBaseScreen); -},2778,[3,270,6,7,11,85,13,14,16,2779,2269,2009,2371,436,2008,1976,2260,2333,2017,2012,552,1835,1999,801,798,438,565,1961,2334,550,407,849,2483,179,2357,2331]); +},2661,[3,270,6,7,11,85,13,14,16,2662,2152,1898,2254,436,1897,1865,2143,2216,1906,1901,552,1724,1888,801,798,438,565,1850,2217,550,407,850,2366,179,2240,2214]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { 'use strict'; @@ -396806,7 +372620,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e var _reactNative = _$$_REQUIRE(_dependencyMap[0]); var _default = exports.default = _reactNative.NativeModules.SplashScreen; -},2779,[18]); +},2662,[18]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -396977,7 +372791,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e RootBase.propTypes = { children: _propTypes.default.any }; -},2780,[3,4,568,16,18,434,865,1999,2781,2330,438,2005,2319,2043,2019,798,1992,2123,2127,179,803,801,2782]); +},2663,[3,4,568,16,18,434,865,1888,2664,2213,438,1894,2202,1932,1929,798,1881,2007,2011,179,803,801,2665]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -397056,7 +372870,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e operation: operation, elaspedTime: elaspedTime, totalElapsedTime: totalElapsedTime - }); + }, "debug_operation_" + index); })] }); } @@ -397127,7 +372941,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e maxHeight: height * 0.75 }, bounces: false, - children: Object.keys(operationGroups).map(function (type) { + children: Object.keys(operationGroups).map(function (type, index) { return (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_reactNative.View, { style: { flex: 1, @@ -397137,7 +372951,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e type: type, operations: operationGroups[type] }) - }); + }, "debug_operations_group_" + index); }) }) }) : null, (0, _$$_REQUIRE(_dependencyMap[7]).jsx)(_$$_REQUIRE(_dependencyMap[11]).FooterAccordion, { @@ -397161,7 +372975,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e }; var _default = exports.default = DebugOverlay; -},2781,[3,22,33,568,16,18,438,179,2330,801,2048,2235]); +},2664,[3,22,33,568,16,18,438,179,2213,801,1937,2118]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -397246,7 +373060,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e })] }); }; -},2782,[3,33,4,16,18,179]); +},2665,[3,33,4,16,18,179]); __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { Object.defineProperty(exports, "__esModule", { value: true @@ -397261,6 +373075,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e } }); }); -},2783,[2353]); +},2666,[2236]); __r(55); __r(0); \ No newline at end of file diff --git a/src/main/assets/packages.txt b/src/main/assets/packages.txt index 1fecfb0..5f117fe 100644 --- a/src/main/assets/packages.txt +++ b/src/main/assets/packages.txt @@ -1,7 +1,6 @@ com.facebook.react.shell.MainReactPackage com.rtmalone.volumecontrol.RNVolumeControlPackage com.levelasquez.androidopensettings.AndroidOpenSettingsPackage -com.krazylabs.OpenAppSettingsPackage com.chirag.RNMail.RNMail net.no_mad.tts.TextToSpeechPackage com.idehub.GoogleAnalyticsBridge.GoogleAnalyticsBridgePackage @@ -12,7 +11,6 @@ com.prebidlibrary.RNPrebidPackage com.oblador.vectoricons.VectorIconsPackage com.reactcommunity.rndatetimepicker.RNDateTimePickerPackage com.reactnativecommunity.asyncstorage.AsyncStoragePackage -com.reactnativecommunity.art.ARTPackage com.reactnativecommunity.imageeditor.ImageEditorPackage com.reactnativecommunity.netinfo.NetInfoPackage com.reactnativecommunity.slider.ReactSliderPackage