-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.198cc3678d0bc5aac126.bundle.js
2 lines (2 loc) · 32.3 KB
/
main.198cc3678d0bc5aac126.bundle.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("ERkP")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("cxan")},function(module,exports){module.exports=storybook_docs_dll},,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("IAdD")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("1t7P")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("ho0z")},,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("+KXO")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("jQ/y")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("aWzz")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("7x/C")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("M+/F")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("vrRf")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("plBw")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("87if")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("DZ+c")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("lTEL")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("kYxP")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("z84I")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("aLgo")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("cARO")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("2G9S")},,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("KqXw")},,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("hCOa")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("7nmT")},,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("NyMY")},,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("UvmB")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("EgRP")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("yH/f")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("aokA")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("jwue")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("+oxZ")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("lN5B")},,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("LW0h")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("A3UQ")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("MvUL")},,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("7xRU")},,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("Ysgh")},,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("jQ3i")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("KOtZ")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("1Iuc")},,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("P2aG")},,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("x4t0")},,,,,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("ZVkB")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("y2Ah")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("WNMA")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("+wNj")},,,,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("Yct5")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("1IsZ")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("hBpG")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("vbDw")},,,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("4wDe")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("BFfR")},,,,,,,,,,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("JtPf")},,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("tVqn")},,,,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("pWxA")},,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("5o43")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("DfhM")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("LJOr")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("pu3o")},,,,,,,,,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("kvVz")},,function(module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(505),_material_ui_core_Box__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(162),_material_ui_core_Button__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(228),_material_ui_core_Tooltip__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(229),_material_ui_icons_ThumbDownRounded__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(224),_material_ui_icons_ThumbDownRounded__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_material_ui_icons_ThumbDownRounded__WEBPACK_IMPORTED_MODULE_5__),_material_ui_icons_ThumbUpRounded__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(225),_material_ui_icons_ThumbUpRounded__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_material_ui_icons_ThumbUpRounded__WEBPACK_IMPORTED_MODULE_6__),useStyles=Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__.a)((function(theme){return{root:{display:"flex"},upVote:{flex:"1",paddingLeft:theme.spacing(1)},downVote:{flex:"1",paddingRight:theme.spacing(1)},voteButton:{width:"100%"}}})),VotingPanel=function VotingPanel(_ref){var location=_ref.location,classes=useStyles();return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_material_ui_core_Box__WEBPACK_IMPORTED_MODULE_2__.a,{className:classes.root},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_material_ui_core_Box__WEBPACK_IMPORTED_MODULE_2__.a,{className:classes.downVote},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_material_ui_core_Tooltip__WEBPACK_IMPORTED_MODULE_4__.a,{title:"Does not have the chili cheese burrito"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_material_ui_core_Button__WEBPACK_IMPORTED_MODULE_3__.a,{className:classes.voteButton,variant:"outlined",onClick:function handleDownVote(){console.log("DownVote",location)}},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_material_ui_icons_ThumbDownRounded__WEBPACK_IMPORTED_MODULE_5___default.a,null)))),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_material_ui_core_Box__WEBPACK_IMPORTED_MODULE_2__.a,{className:classes.upVote},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_material_ui_core_Tooltip__WEBPACK_IMPORTED_MODULE_4__.a,{title:"Has the chili cheese burrito"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_material_ui_core_Button__WEBPACK_IMPORTED_MODULE_3__.a,{className:classes.voteButton,variant:"outlined",onClick:function handleUpVote(){console.log("UpVote",location)}},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_material_ui_icons_ThumbUpRounded__WEBPACK_IMPORTED_MODULE_6___default.a,null)))))};VotingPanel.__docgenInfo={description:"Renders voting controls used to denote whether a location has the Chili Cheese Burrito",methods:[],displayName:"VotingPanel",props:{location:{type:{name:"shape",value:{name:{name:"string",required:!1},address:{name:"string",required:!1},city:{name:"string",required:!1},state:{name:"string",required:!1},zip:{name:"string",required:!1},phone:{name:"string",required:!1},lat:{name:"number",required:!0},lng:{name:"number",required:!0}}},required:!0,description:"The location to display in the location component"}}},__webpack_exports__.a=VotingPanel,"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/VotingPanel/index.js"]={name:"VotingPanel",docgenInfo:VotingPanel.__docgenInfo,path:"src/components/VotingPanel/index.js"})},,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("oXkQ")},,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("3yYM")},,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("LqLs")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("3voH")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("6U7i")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("Cm4o")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("j4Sf")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("LUwd")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("OZaJ")},,,,,,,,,,,,,,,,,,,,,,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("IGGJ")},,,,,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("+kY7")},,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("5878")},,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("Kkar")},,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("m9LP")},,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("l1C2")},,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("sVFb")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("iKE+")},,,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("CUMQ")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("mlET")},,,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("f9bD")},,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("b2e3")},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(module,exports,__webpack_require__){__webpack_require__(242),__webpack_require__(267),__webpack_require__(268),__webpack_require__(314),__webpack_require__(440),__webpack_require__(473),__webpack_require__(478),__webpack_require__(490),__webpack_require__(492),__webpack_require__(494),module.exports=__webpack_require__(496)},,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("ARua")},,,,,,,,,,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("gqY9")},,,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("9JhN")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("PjZX")},,,,,,,function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__(168)},,,,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("/Qos")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("JY+C")},,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("ZUdG")},,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("tQbP")},,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("//nZ")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("wFLD")},,,,,,,,,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("ax0f")},,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("dSaG")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("hQin")},,,,,,,,,,,,,,,,,,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("LJ7e")},,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("I2fK")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("DY47")},,,,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("3kp9")},,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("/bc2")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("/JuR")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("+Bxv")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("muFx")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("Wci6")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("WoRU")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("o3fS")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("JmTi")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("xaiR")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("SlD/")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("Monn")},,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("fmNP")},,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("uFXj")},,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("V0IW")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("OCSl")},,,,,,,,,,,,,,,,,,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("jLkM")},,,,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("kA4r")},,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("Blm6")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("ssvU")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("lZm3")},,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("Ee2X")},,,,,,,,,,,,,,,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("5BYb")},,,,,,,,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("maj8")},,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("F63i")},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("2q8g")},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("nDih")},,,,,,,,,,,,,,,,,,,,,,,,,,function(module,exports,__webpack_require__){"use strict";var _clientApi=__webpack_require__(45),_clientLogger=__webpack_require__(33),_configFilename=__webpack_require__(495);function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach((function(key){_defineProperty(target,key,source[key])})):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach((function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))}))}return target}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}(_configFilename.args||_configFilename.argTypes)&&_clientLogger.logger.warn("Invalid args/argTypes in config, ignoring.",JSON.stringify({args:_configFilename.args,argTypes:_configFilename.argTypes})),_configFilename.decorators&&_configFilename.decorators.forEach((function(decorator){return(0,_clientApi.addDecorator)(decorator,!1)})),(_configFilename.parameters||_configFilename.globals||_configFilename.globalTypes)&&(0,_clientApi.addParameters)(_objectSpread(_objectSpread({},_configFilename.parameters),{},{globals:_configFilename.globals,globalTypes:_configFilename.globalTypes}),!1),_configFilename.argTypesEnhancers&&_configFilename.argTypesEnhancers.forEach((function(enhancer){return(0,_clientApi.addArgTypesEnhancer)(enhancer)}))},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"parameters",(function(){return parameters}));var parameters={actions:{argTypesRegex:"^on[A-Z].*"}}},function(module,exports,__webpack_require__){"use strict";(function(module){(0,__webpack_require__(168).configure)([__webpack_require__(497),__webpack_require__(498)],module,!1)}).call(this,__webpack_require__(104)(module))},function(module,exports){function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=function(){return[]},webpackEmptyContext.resolve=webpackEmptyContext,module.exports=webpackEmptyContext,webpackEmptyContext.id=497},function(module,exports,__webpack_require__){var map={"./stories/Location.stories.js":502,"./stories/LocationFilter.stories.js":503,"./stories/MapMarker.stories.js":504,"./stories/VotingPanel.stories.js":500};function webpackContext(req){var id=webpackContextResolve(req);return __webpack_require__(id)}function webpackContextResolve(req){if(!__webpack_require__.o(map,req)){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}return map[req]}webpackContext.keys=function webpackContextKeys(){return Object.keys(map)},webpackContext.resolve=webpackContextResolve,module.exports=webpackContext,webpackContext.id=498},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)("97Jx")},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"Default",(function(){return Default}));var _Users_sgomez_dev_chilicheese_org_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(70),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_components_VotingPanel__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(121);__webpack_exports__.default={title:"LocationWindow/VotingPanel",component:Location,argTypes:{backgroundColor:{control:"color"}}};var Default=function Template(args){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_components_VotingPanel__WEBPACK_IMPORTED_MODULE_2__.a,args)}.bind({});Default.args={location:{name:"Location 1",address:"425 Market Street",city:"San Francisco",state:"CA",zip:"94710",phone:"415-555-1212"}},Default.parameters=Object(_Users_sgomez_dev_chilicheese_org_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__.a)({storySource:{source:"(args) => <VotingPanel {...args} />"}},Default.parameters)},,function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"Default",(function(){return Default}));var objectSpread2=__webpack_require__(70),delegated_reactfrom_dll_reference_storybook_docs_dll=__webpack_require__(0),delegated_reactfrom_dll_reference_storybook_docs_dll_default=__webpack_require__.n(delegated_reactfrom_dll_reference_storybook_docs_dll),makeStyles=__webpack_require__(505),Box=__webpack_require__(162),Typography=__webpack_require__(507),amber=__webpack_require__(161),amber_default=__webpack_require__.n(amber),VotingPanel=__webpack_require__(121),DISTANCE_UNITS_MILES="mi",DISTANCE_UNITS_KILOMETERS="km",useStyles=Object(makeStyles.a)((function(theme){return{root:{boxSizing:"border-box",width:"100%",display:"block",padding:theme.spacing(2),borderBottom:"1px solid ".concat(theme.palette.divider),borderRadius:"3px","&:hover":{backgroundColor:amber_default.a[100]}},locationContainer:{display:"flex"},media:{flexBasis:"100px",backgroundColor:amber_default.a[700],borderRadius:"0.5rem"},content:{flex:"1",paddingLeft:"1rem"},meta:{display:"flex",marginBottom:"1rem"},address:{flex:"1"},distance:{flexBasis:"50px"}}})),Location_Location=function Location(_ref){var location=_ref.location,_ref$location=_ref.location,name=(_ref$location=void 0===_ref$location?{}:_ref$location).name,address=_ref$location.address,city=_ref$location.city,state=_ref$location.state,zip=_ref$location.zip,lat=(_ref$location.phone,_ref$location.lat),lng=_ref$location.lng,_ref$userLocation=_ref.userLocation,userLocation=void 0===_ref$userLocation?{}:_ref$userLocation,onMouseOver=_ref.onMouseOver,classes=useStyles();return delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(Box.a,{className:classes.root,onMouseOver:function handleMouseOver(){onMouseOver&&onMouseOver(location)}},delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(Box.a,{className:classes.locationContainer},delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(Box.a,{className:classes.media},"Yes"),delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(Box.a,{className:classes.content},delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(Box.a,{className:classes.meta},delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(Box.a,{className:classes.address},delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(Box.a,{className:classes.addressLine},name),delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(Box.a,{className:classes.addressLine},address),delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(Box.a,{className:classes.addressLine},city,", ",state," ",zip)),delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(Box.a,{className:classes.distance},delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(Typography.a,{variant:"caption",display:"block",gutterBottom:!0},function distance(_ref,_ref2){var lat1=_ref.lat,lon1=_ref.lng,lat2=_ref2.lat,lon2=_ref2.lng,precision=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,unit=arguments.length>3&&void 0!==arguments[3]?arguments[3]:DISTANCE_UNITS_MILES;if(void 0!==lat1&&void 0!==lon1&&void 0!==lat2&&void 0!==lon2){if(lat1===lat2&&lon1===lon2)return 0;var radlat1=Math.PI*lat1/180,radlat2=Math.PI*lat2/180,theta=lon1-lon2,radtheta=Math.PI*theta/180,dist=Math.sin(radlat1)*Math.sin(radlat2)+Math.cos(radlat1)*Math.cos(radlat2)*Math.cos(radtheta);return dist>1&&(dist=1),dist=60*(dist=180*(dist=Math.acos(dist))/Math.PI)*1.1515,unit===DISTANCE_UNITS_KILOMETERS&&(dist*=1.609344),unit===DISTANCE_UNITS_MILES&&(dist*=.8684),"".concat(dist.toFixed(precision)).concat(unit)}console.log(lat1,lon1,lat2,lon2)}({lat:lat,lng:lng},userLocation)))),delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(VotingPanel.a,{location:location}))))};Location_Location.__docgenInfo={description:"Renders a location, for use in the LocationsWindow",methods:[],displayName:"Location",props:{location:{defaultValue:{value:"{}",computed:!1},type:{name:"shape",value:{name:{name:"string",required:!1},address:{name:"string",required:!1},city:{name:"string",required:!1},state:{name:"string",required:!1},zip:{name:"string",required:!1},phone:{name:"string",required:!1},lat:{name:"number",required:!0},lng:{name:"number",required:!0}}},required:!1,description:"The location to display in the location component"},userLocation:{defaultValue:{value:"{}",computed:!1},required:!1},onMouseOver:{type:{name:"func"},required:!1,description:"Callback when the Location component is moused over"}}};var components_Location=Location_Location;"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Location/index.js"]={name:"Location",docgenInfo:Location_Location.__docgenInfo,path:"src/components/Location/index.js"});__webpack_exports__.default={title:"LocationWindow/Location",component:components_Location,argTypes:{backgroundColor:{control:"color"}}};var Default=function Template(args){return delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(components_Location,args)}.bind({});Default.args={location:{name:"Location 1",address:"425 Market Street",city:"San Francisco",state:"CA",zip:"94710",phone:"415-555-1212"}},Default.parameters=Object(objectSpread2.a)({storySource:{source:"(args) => <Location {...args} />"}},Default.parameters)},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"Default",(function(){return Default}));var objectSpread2=__webpack_require__(70),delegated_reactfrom_dll_reference_storybook_docs_dll=__webpack_require__(0),delegated_reactfrom_dll_reference_storybook_docs_dll_default=__webpack_require__.n(delegated_reactfrom_dll_reference_storybook_docs_dll),slicedToArray=__webpack_require__(103),makeStyles=__webpack_require__(505),Box=__webpack_require__(162),FormControl=__webpack_require__(542),InputLabel=__webpack_require__(543),Select=__webpack_require__(546),MenuItem=__webpack_require__(549),FormLabel=__webpack_require__(508),FormGroup=__webpack_require__(544),FormControlLabel=__webpack_require__(545),Switch=__webpack_require__(548),purple=__webpack_require__(226),purple_default=__webpack_require__.n(purple),LocationTypes={ALL:{value:"ALL",label:"All"},HAS_BURRITO:{value:"HAS_BURRITO",label:"Has CCB"},NO_BURRITO:{value:"NO_BURRITO",label:"No CCB"}},useStyles=Object(makeStyles.a)((function(theme){return{root:{display:"flex",padding:"1rem",borderTop:"1px solid ".concat(theme.palette.divider),backgroundColor:purple_default.a[50],boxShadow:"inset 0px 2px 1px -1px rgba(0,0,0,0.2), inset 0px 1px 1px 0px rgba(0,0,0,0.14), inset 0px 1px 3px 0px rgba(0,0,0,0.12);"},locationFilter:{flex:"1"},controlLabel:{fontSize:"0.75rem"},locationsList:{borderTop:"1px solid ".concat(theme.palette.divider)}}})),LocationFilter_LocationFilter=function LocationFilter(){var classes=useStyles(),_useState=Object(delegated_reactfrom_dll_reference_storybook_docs_dll.useState)(LocationTypes.ALL),_useState2=Object(slicedToArray.a)(_useState,2),locationType=_useState2[0],setLocationType=_useState2[1],_useState3=Object(delegated_reactfrom_dll_reference_storybook_docs_dll.useState)(!1),_useState4=Object(slicedToArray.a)(_useState3,2),onlyTacoBellData=_useState4[0],setOnlyTacoBellData=_useState4[1];return delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(Box.a,{className:classes.root},delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(FormControl.a,{className:classes.locationFilter},delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(InputLabel.a,{id:"demo-simple-select-label"},"Location Type"),delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(Select.a,{labelId:"demo-simple-select-label",id:"demo-simple-select",value:locationType,onChange:function onChange(e){return setLocationType(e.target.value)},size:"small"},Object.values(LocationTypes).map((function(item){var label=item.label;return delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(MenuItem.a,{key:label,value:item},label)})))),delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(FormControl.a,{component:"fieldset"},delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(FormLabel.a,{component:"legend",className:classes.controlLabel},"Taco Bell Data"),delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(FormGroup.a,null,delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(FormControlLabel.a,{control:delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(Switch.a,{checked:onlyTacoBellData,onChange:function onChange(){return setOnlyTacoBellData(!onlyTacoBellData)},name:"onlyTacoBellData"})}))))};LocationFilter_LocationFilter.__docgenInfo={description:"Renders the LocationWindow filter panel",methods:[],displayName:"LocationFilter"};var components_LocationFilter=LocationFilter_LocationFilter;"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/LocationFilter/index.js"]={name:"LocationFilter",docgenInfo:LocationFilter_LocationFilter.__docgenInfo,path:"src/components/LocationFilter/index.js"});__webpack_exports__.default={title:"LocationWindow/LocationFilter",component:components_LocationFilter,argTypes:{backgroundColor:{control:"color"}}};var Default=function Template(args){return delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(components_LocationFilter,args)}.bind({});Default.args={},Default.parameters=Object(objectSpread2.a)({storySource:{source:"(args) => <LocationFilter {...args} />"}},Default.parameters)},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"Default",(function(){return Default}));var objectSpread2=__webpack_require__(70),delegated_reactfrom_dll_reference_storybook_docs_dll=__webpack_require__(0),delegated_reactfrom_dll_reference_storybook_docs_dll_default=__webpack_require__.n(delegated_reactfrom_dll_reference_storybook_docs_dll),slicedToArray=__webpack_require__(103),MapMarker_MapMarker=function MapMarker(_ref){_ref.type;var lat=_ref.lat,lng=_ref.lng,setCenter=_ref.setCenter,_useState=Object(delegated_reactfrom_dll_reference_storybook_docs_dll.useState)(!1),_useState2=Object(slicedToArray.a)(_useState,2),expanded=_useState2[0],setExpanded=_useState2[1];return delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement("div",{onClick:function handleClick(){setCenter&&setCenter({lat:lat,lng:lng}),setExpanded(!0)}},"Expanded ",expanded)};MapMarker_MapMarker.__docgenInfo={description:"Renders a MapMarker denoting a location",methods:[],displayName:"MapMarker",props:{type:{type:{name:"enum",value:[{value:'"has_ccb"',computed:!1},{value:'"no_ccb"',computed:!1},{value:'"unknown"',computed:!1}]},required:!1,description:"The type of location that the MapMarker denotes"},lat:{type:{name:"number"},required:!1,description:"The latitude coordinates of the location"},lng:{type:{name:"number"},required:!1,description:"The longitude coordinates of the location"},setCenter:{type:{name:"func"},required:!1,description:"Callback function to be executed when the MapMarker is clicked (for centering the MapMarker)"}}};var components_MapMarker=MapMarker_MapMarker;"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/MapMarker/index.js"]={name:"MapMarker",docgenInfo:MapMarker_MapMarker.__docgenInfo,path:"src/components/MapMarker/index.js"});__webpack_exports__.default={title:"Map/MapMarker",component:components_MapMarker,argTypes:{backgroundColor:{control:"color"}}};var Default=function Template(args){return delegated_reactfrom_dll_reference_storybook_docs_dll_default.a.createElement(components_MapMarker,args)}.bind({});Default.args={type:"unknown"},Default.parameters=Object(objectSpread2.a)({storySource:{source:"(args) => <MapMarker {...args} />"}},Default.parameters)}],[[241,1,2]]]);
//# sourceMappingURL=main.198cc3678d0bc5aac126.bundle.js.map