{"version":3,"file":"Locations_Sorter.KNPW45O2.mjs","names":["React.useState","__esmMin","init_npm_react_18_3_1","_e","p","c","init_jsx_runtime","ce","addPropertyControls","init_framer_Bf4_tcb2","ControlType","ExoticusDispensaryLocator","props","zip","setZip","sortedLocations","setSortedLocations","locations","error","setError","loading","setLoading","hasSearched","setHasSearched","calculateDistance","dLat","lat2","lat1","dLon","lon2","lon1","a","lookupZipCode","response","zipCode","data","handleSort","cleanZip","errorText","userCoordinates","calculatedLocations","location","b","handleKeyDown","event","getMapUrl","mapZoom","cardStyle","cardLayout","cardGap","cardPaddingTop","cardPaddingRight","cardPaddingBottom","cardPaddingLeft","cardBackground","cardBorderWidth","cardBorderColor","cardRadius","formGap","inputMaxWidth","value","inputFontFamily","inputFontSize","inputFontWeight","inputColor","inputBackground","inputBorderColor","buttonFontFamily","buttonFontSize","buttonFontWeight","buttonColor","buttonBackground","buttonBorderColor","buttonText","cardsGap","hasDistance","titleFontFamily","titleFontSize","titleFontWeight","titleColor","addressFontFamily","addressFontSize","addressFontWeight","addressColor","distanceFontFamily","distanceFontSize","distanceFontWeight","distanceColor","distanceSuffix","showMaps","mapWidth","mapHeight","index","init_Locations_Sorter"],"sources":["https:/framerusercontent.com/modules/6JsXioyKoQgpLb9YPHpz/cDR98SsdeXZSwhQAEsWi/Locations_Sorter.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function ExoticusDispensaryLocator(props){const{locations,placeholder,buttonText,errorText,distanceSuffix,maxWidth,inputMaxWidth,formGap,cardsGap,cardGap,cardPaddingTop,cardPaddingRight,cardPaddingBottom,cardPaddingLeft,mapHeight,mapWidth,mapZoom,cardLayout,showMaps,inputFontFamily,inputFontSize,inputFontWeight,inputColor,buttonFontFamily,buttonFontSize,buttonFontWeight,buttonColor,titleFontFamily,titleFontSize,titleFontWeight,titleColor,addressFontFamily,addressFontSize,addressFontWeight,addressColor,distanceFontFamily,distanceFontSize,distanceFontWeight,distanceColor,inputBorderColor,inputBackground,buttonBackground,buttonBorderColor,cardBackground,cardBorderColor,cardBorderWidth,cardRadius}=props;const[zip,setZip]=React.useState(\"\");const[sortedLocations,setSortedLocations]=React.useState(locations);const[error,setError]=React.useState(\"\");const[loading,setLoading]=React.useState(false);const[hasSearched,setHasSearched]=React.useState(false);/**\n     * Keep displayed locations synchronized\n     * with the Framer property panel.\n     */React.useEffect(()=>{if(!hasSearched){setSortedLocations(locations);}},[locations,hasSearched]);/**\n     * Haversine distance.\n     * Returns distance in miles.\n     */function calculateDistance(lat1,lon1,lat2,lon2){const earthRadiusMiles=3958.7613;const dLat=(lat2-lat1)*Math.PI/180;const dLon=(lon2-lon1)*Math.PI/180;const a=Math.sin(dLat/2)*Math.sin(dLat/2)+Math.cos(lat1*Math.PI/180)*Math.cos(lat2*Math.PI/180)*Math.sin(dLon/2)*Math.sin(dLon/2);const c=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return earthRadiusMiles*c;}/**\n     * Look up ZIP code coordinates\n     * using Zippopotam.us.\n     */async function lookupZipCode(zipCode){const response=await fetch(`https://api.zippopotam.us/us/${zipCode}`);if(!response.ok){throw new Error(\"Invalid ZIP\");}const data=await response.json();if(!data||!data.places||!data.places.length||!data.places[0].latitude||!data.places[0].longitude){throw new Error(\"Invalid ZIP\");}return{latitude:parseFloat(data.places[0].latitude),longitude:parseFloat(data.places[0].longitude)};}/**\n     * Sort locations by distance.\n     */async function handleSort(){const cleanZip=zip.trim();// ZIP validation\nif(!/^\\d{5}$/.test(cleanZip)){setError(errorText);setHasSearched(false);return;}setLoading(true);setError(\"\");try{const userCoordinates=await lookupZipCode(cleanZip);const calculatedLocations=locations.map(location=>({...location,distance:calculateDistance(userCoordinates.latitude,userCoordinates.longitude,Number(location.latitude),Number(location.longitude))}));calculatedLocations.sort((a,b)=>a.distance-b.distance);setSortedLocations(calculatedLocations);setHasSearched(true);}catch{setError(errorText);setHasSearched(false);}finally{setLoading(false);}}/**\n     * Allow Enter key to trigger sorting.\n     */function handleKeyDown(event){if(event.key===\"Enter\"){handleSort();}}/**\n     * Google Maps embed URL.\n     *\n     * No Google Maps API key is required.\n     */function getMapUrl(location){return`https://www.google.com/maps?q=${location.latitude},${location.longitude}&z=${mapZoom}&output=embed`;}/**\n     * Card layout styles.\n     *\n     * IMPORTANT:\n     * alignItems: center makes the text column vertically\n     * centered against the map when the map is positioned right.\n     */const cardStyle=cardLayout===\"right\"?{display:\"flex\",flexDirection:\"row\",alignItems:\"center\",justifyContent:\"space-between\",gap:cardGap,width:\"100%\",boxSizing:\"border-box\",paddingTop:cardPaddingTop,paddingRight:cardPaddingRight,paddingBottom:cardPaddingBottom,paddingLeft:cardPaddingLeft,background:cardBackground,border:`${cardBorderWidth}px solid ${cardBorderColor}`,borderRadius:cardRadius,overflow:\"hidden\"}:{display:\"flex\",flexDirection:\"column\",alignItems:\"stretch\",gap:cardGap,width:\"100%\",boxSizing:\"border-box\",paddingTop:cardPaddingTop,paddingRight:cardPaddingRight,paddingBottom:cardPaddingBottom,paddingLeft:cardPaddingLeft,background:cardBackground,border:`${cardBorderWidth}px solid ${cardBorderColor}`,borderRadius:cardRadius,overflow:\"hidden\"};return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",maxWidth,margin:\"0 auto\",boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",display:\"flex\",// Center the entire form horizontally\n// even when inputMaxWidth is smaller.\njustifyContent:\"center\",// Center input + button vertically.\nalignItems:\"center\",gap:formGap,flexWrap:\"wrap\",boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",maxWidth:inputMaxWidth,flex:`0 1 ${inputMaxWidth}px`},children:/*#__PURE__*/_jsx(\"input\",{type:\"text\",value:zip,onChange:event=>{const value=event.target.value.replace(/\\D/g,\"\").slice(0,5);setZip(value);if(error){setError(\"\");}},onKeyDown:handleKeyDown,placeholder:placeholder,style:{width:\"100%\",height:50,boxSizing:\"border-box\",padding:\"0 16px\",fontFamily:inputFontFamily,fontSize:inputFontSize,fontWeight:inputFontWeight,color:inputColor,background:inputBackground,border:`1px solid ${inputBorderColor}`,borderRadius:0,outline:\"none\"}})}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:handleSort,disabled:loading,style:{height:50,padding:\"0 24px\",fontFamily:buttonFontFamily,fontSize:buttonFontSize,fontWeight:buttonFontWeight,color:buttonColor,background:buttonBackground,border:`1px solid ${buttonBorderColor}`,borderRadius:0,cursor:loading?\"wait\":\"pointer\",whiteSpace:\"nowrap\",opacity:loading?.7:1},children:loading?\"...\":buttonText})]}),error&&/*#__PURE__*/_jsx(\"div\",{style:{marginTop:8,fontFamily:inputFontFamily,fontSize:14,fontWeight:400,color:\"#D32F2F\",textAlign:\"left\"},children:error}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:cardsGap,width:\"100%\",marginTop:error?24:32},children:sortedLocations.map((location,index)=>{const hasDistance=hasSearched&&typeof location.distance===\"number\";return /*#__PURE__*/_jsxs(\"div\",{style:cardStyle,children:[/*#__PURE__*/_jsxs(\"div\",{style:{flex:cardLayout===\"right\"?\"1 1 0\":\"none\",width:cardLayout===\"right\"?\"auto\":\"100%\",minWidth:0,display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",textAlign:\"left\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:titleFontFamily,fontSize:titleFontSize,fontWeight:titleFontWeight,color:titleColor,lineHeight:1.2,marginBottom:8},children:location.name}),/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:addressFontFamily,fontSize:addressFontSize,fontWeight:addressFontWeight,color:addressColor,lineHeight:1.5},children:location.address}),hasDistance&&/*#__PURE__*/_jsxs(\"div\",{style:{fontFamily:distanceFontFamily,fontSize:distanceFontSize,fontWeight:distanceFontWeight,color:distanceColor,lineHeight:1.3,marginTop:10},children:[location.distance.toFixed(1),\" \",distanceSuffix]})]}),showMaps&&/*#__PURE__*/_jsx(\"div\",{style:{flex:cardLayout===\"right\"?`0 0 ${mapWidth}px`:\"none\",width:cardLayout===\"right\"?mapWidth:\"100%\",height:mapHeight,flexShrink:0,overflow:\"hidden\",boxSizing:\"border-box\"},children:/*#__PURE__*/_jsx(\"iframe\",{title:`${location.name} map`,src:getMapUrl(location),width:\"100%\",height:\"100%\",style:{display:\"block\",width:\"100%\",height:\"100%\",border:0},loading:\"lazy\",referrerPolicy:\"no-referrer-when-downgrade\"})})]},`${location.name}-${index}`);})})]});}/* -------------------------------------------------------\n   PROPERTY CONTROLS\n------------------------------------------------------- */ExoticusDispensaryLocator.defaultProps={locations:[{name:\"Dispensary name\",address:\"8302 NW 39th Expy Bethany, OK 73008 County: Oklahoma\",latitude:35.51,longitude:-97.64},{name:\"Dispensary name\",address:\"9551 E Waterloo Rd Arcadia, OK 73007 County: Logan\",latitude:35.65,longitude:-97.32}],placeholder:\"Enter Zipcode...\",buttonText:\"SORT BY NEAREST\",errorText:\"Please enter a valid ZIP code.\",distanceSuffix:\"mi away\",maxWidth:1200,inputMaxWidth:400,formGap:12,cardsGap:24,cardGap:32,cardPaddingTop:24,cardPaddingRight:24,cardPaddingBottom:24,cardPaddingLeft:24,mapHeight:240,mapWidth:400,mapZoom:13,cardLayout:\"right\",showMaps:true,inputFontFamily:\"Inter\",inputFontSize:16,inputFontWeight:400,inputColor:\"#000000\",buttonFontFamily:\"Inter\",buttonFontSize:14,buttonFontWeight:600,buttonColor:\"#FFFFFF\",titleFontFamily:\"Inter\",titleFontSize:20,titleFontWeight:600,titleColor:\"#000000\",addressFontFamily:\"Inter\",addressFontSize:15,addressFontWeight:400,addressColor:\"#555555\",distanceFontFamily:\"Inter\",distanceFontSize:14,distanceFontWeight:500,distanceColor:\"#000000\",inputBorderColor:\"#000000\",inputBackground:\"#FFFFFF\",buttonBackground:\"#000000\",buttonBorderColor:\"#000000\",cardBackground:\"#FFFFFF\",cardBorderColor:\"#DDDDDD\",cardBorderWidth:1,cardRadius:0};addPropertyControls(ExoticusDispensaryLocator,{/* -----------------------------\n           LOCATIONS\n        ----------------------------- */locations:{type:ControlType.Array,title:\"Locations\",maxCount:100,control:{type:ControlType.Object,controls:{name:{type:ControlType.String,title:\"Name\",defaultValue:\"Dispensary name\"},address:{type:ControlType.String,title:\"Address\",defaultValue:\"8302 NW 39th Expy Bethany, OK 73008\"},latitude:{type:ControlType.Number,title:\"Latitude\",defaultValue:35.51,step:1e-6},longitude:{type:ControlType.Number,title:\"Longitude\",defaultValue:-97.64,step:1e-6}}}},/* -----------------------------\n           SEARCH\n        ----------------------------- */placeholder:{type:ControlType.String,title:\"Placeholder\",defaultValue:\"Enter Zipcode...\"},buttonText:{type:ControlType.String,title:\"Button Text\",defaultValue:\"SORT BY NEAREST\"},errorText:{type:ControlType.String,title:\"Error Text\",defaultValue:\"Please enter a valid ZIP code.\"},distanceSuffix:{type:ControlType.String,title:\"Distance Suffix\",defaultValue:\"mi away\"},/* -----------------------------\n           CONTAINER\n        ----------------------------- */maxWidth:{type:ControlType.Number,title:\"Max Width\",min:300,max:2e3,step:10,defaultValue:1200},inputMaxWidth:{type:ControlType.Number,title:\"Input Max Width\",min:100,max:1e3,step:10,defaultValue:400},formGap:{type:ControlType.Number,title:\"Form Gap\",min:0,max:100,step:1,defaultValue:12},cardsGap:{type:ControlType.Number,title:\"Cards Gap\",min:0,max:100,step:1,defaultValue:24},cardGap:{type:ControlType.Number,title:\"Card Gap\",min:0,max:100,step:1,defaultValue:32},/* -----------------------------\n           CARD PADDING\n        ----------------------------- */cardPaddingTop:{type:ControlType.Number,title:\"Card Padding Top\",min:0,max:200,step:1,defaultValue:24},cardPaddingRight:{type:ControlType.Number,title:\"Card Padding Right\",min:0,max:200,step:1,defaultValue:24},cardPaddingBottom:{type:ControlType.Number,title:\"Card Padding Bottom\",min:0,max:200,step:1,defaultValue:24},cardPaddingLeft:{type:ControlType.Number,title:\"Card Padding Left\",min:0,max:200,step:1,defaultValue:24},/* -----------------------------\n           MAP\n        ----------------------------- */mapHeight:{type:ControlType.Number,title:\"Map Height\",min:100,max:800,step:10,defaultValue:240},mapWidth:{type:ControlType.Number,title:\"Map Width\",min:150,max:800,step:10,defaultValue:400},mapZoom:{type:ControlType.Number,title:\"Map Zoom\",min:1,max:20,step:1,defaultValue:13},cardLayout:{type:ControlType.Enum,title:\"Map Position\",options:[\"right\",\"bottom\"],optionTitles:[\"Right\",\"Bottom\"],defaultValue:\"right\"},showMaps:{type:ControlType.Boolean,title:\"Show Maps\",enabledTitle:\"Yes\",disabledTitle:\"No\",defaultValue:true},/* -----------------------------\n           INPUT TYPOGRAPHY\n        ----------------------------- */inputFontFamily:{type:ControlType.String,title:\"Input Font\",defaultValue:\"Inter\"},inputFontSize:{type:ControlType.Number,title:\"Input Size\",min:8,max:72,step:1,defaultValue:16},inputFontWeight:{type:ControlType.Number,title:\"Input Weight\",min:100,max:900,step:100,defaultValue:400},inputColor:{type:ControlType.Color,title:\"Input Color\",defaultValue:\"#000000\"},/* -----------------------------\n           BUTTON TYPOGRAPHY\n        ----------------------------- */buttonFontFamily:{type:ControlType.String,title:\"Button Font\",defaultValue:\"Inter\"},buttonFontSize:{type:ControlType.Number,title:\"Button Size\",min:8,max:72,step:1,defaultValue:14},buttonFontWeight:{type:ControlType.Number,title:\"Button Weight\",min:100,max:900,step:100,defaultValue:600},buttonColor:{type:ControlType.Color,title:\"Button Color\",defaultValue:\"#FFFFFF\"},/* -----------------------------\n           LOCATION TITLE\n        ----------------------------- */titleFontFamily:{type:ControlType.String,title:\"Title Font\",defaultValue:\"Inter\"},titleFontSize:{type:ControlType.Number,title:\"Title Size\",min:8,max:72,step:1,defaultValue:20},titleFontWeight:{type:ControlType.Number,title:\"Title Weight\",min:100,max:900,step:100,defaultValue:600},titleColor:{type:ControlType.Color,title:\"Title Color\",defaultValue:\"#000000\"},/* -----------------------------\n           ADDRESS\n        ----------------------------- */addressFontFamily:{type:ControlType.String,title:\"Address Font\",defaultValue:\"Inter\"},addressFontSize:{type:ControlType.Number,title:\"Address Size\",min:8,max:72,step:1,defaultValue:15},addressFontWeight:{type:ControlType.Number,title:\"Address Weight\",min:100,max:900,step:100,defaultValue:400},addressColor:{type:ControlType.Color,title:\"Address Color\",defaultValue:\"#555555\"},/* -----------------------------\n           DISTANCE\n        ----------------------------- */distanceFontFamily:{type:ControlType.String,title:\"Miles Font\",defaultValue:\"Inter\"},distanceFontSize:{type:ControlType.Number,title:\"Miles Size\",min:8,max:72,step:1,defaultValue:14},distanceFontWeight:{type:ControlType.Number,title:\"Miles Weight\",min:100,max:900,step:100,defaultValue:500},distanceColor:{type:ControlType.Color,title:\"Miles Color\",defaultValue:\"#000000\"},/* -----------------------------\n           INPUT COLORS\n        ----------------------------- */inputBorderColor:{type:ControlType.Color,title:\"Input Border\",defaultValue:\"#000000\"},inputBackground:{type:ControlType.Color,title:\"Input Background\",defaultValue:\"#FFFFFF\"},/* -----------------------------\n           BUTTON COLORS\n        ----------------------------- */buttonBackground:{type:ControlType.Color,title:\"Button Background\",defaultValue:\"#000000\"},buttonBorderColor:{type:ControlType.Color,title:\"Button Border\",defaultValue:\"#000000\"},/* -----------------------------\n           CARD\n        ----------------------------- */cardBackground:{type:ControlType.Color,title:\"Card Background\",defaultValue:\"#FFFFFF\"},cardBorderColor:{type:ControlType.Color,title:\"Card Border\",defaultValue:\"#DDDDDD\"},cardBorderWidth:{type:ControlType.Number,title:\"Card Border Width\",min:0,max:10,step:1,defaultValue:1},cardRadius:{type:ControlType.Number,title:\"Card Radius\",min:0,max:100,step:1,defaultValue:0}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ExoticusDispensaryLocator\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Locations_Sorter.map"],"mappings":"A,wLAAyI,SAAwBW,EAA0B,EAAM,CAAC,GA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