{"project":"location","branch":"main","commit":"042b3ded8d31490e6e575b6d375c3c36c4341b6a","component":{"name":"HomePage","nodes":{"root":{"tag":"div","type":"element","children":["31q-DUPGz-hfHfQ40tEZN"],"classes":{"sOHmh":{"formula":{"type":"value","value":true}}},"customProperties":{}},"-1zPPd7M3FjnA96GNUa_K":{"tag":"iframe","type":"element","attrs":{"src":{"type":"value","value":"https://www.youtube.com/embed/_1nrtJ-3VL4?si=uqzX5Pdtc338EpS6"},"allow":{"type":"value","value":"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"},"title":{"type":"value","value":"How to use this package!"},"height":{"type":"value","value":"100%"},"frameborder":{"type":"value","value":"0"},"allowfullscreen":{"type":"value","value":""}},"value":{"type":"value","value":"Accordions are helpful for things like a Q&A where you might not want to show the answer to every question. It makes the questions stand out, and if a user clicks a question to learn more, the accordion reveals that information. It’s a great way to reduce elements on your site. It works wonders for users’ cognitive load.\n"},"classes":{"cVtOXD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"-4TsVbqVsvDECAL05lzQF":{"tag":"td","type":"element","children":["DwXiNXTmrT7y5ldQD8v5f"],"classes":{"fhanpd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"-rwCgh_j0m4tIO8ozUmbH":{"tag":"tr","type":"element","children":["oX-VxyDWoWGNzvwDnxlvH","0tCawOHhXggLLpUKqnRTp"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"0G3ia7MS5YQJB1qe3MIIH":{"type":"text","value":{"type":"value","value":"Maximum length of time (in milliseconds) the device is allowed to take in order to return a position"}},"0tCawOHhXggLLpUKqnRTp":{"tag":"td","type":"element","children":["0G3ia7MS5YQJB1qe3MIIH"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"1EfqVW-Hhik9U8QPZwpEw":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["ukdMPF-QSSdAJfacF1iM3"],"classes":{"erbmxD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"1X_xfAtepRgzkkcg23sb6":{"tag":"div","type":"element","children":["t7x8_ySnLfPPbUWo8sjrf"],"customProperties":{}},"2OziQwtOqO99dAnybyBDq":{"tag":"td","type":"element","children":["9O_aQoT4yzF831L4ptxNG"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"31q-DUPGz-hfHfQ40tEZN":{"tag":"main","type":"element","children":["gg4HSTiSF-G24egcCFpW-","AET_77YDsaI9LwY8kjYDf","I_E0RvjmH9VwDYmyuPhoW","9UfxVT0zFXi4hjdutEz2p"],"classes":{"drWRwT":{"formula":{"type":"value","value":true}}},"customProperties":{}},"3YZARWizL20mgEw0TEXmS":{"id":"MdEHozLmrWqeLMPg3narV","tag":"p","type":"element","children":["VAuGpuykrpe-l_uslBc4N"],"classes":{"ehaFnm":{"formula":{"type":"value","value":true}}},"customProperties":{}},"413Ac-0pYTnf1WFuL83go":{"tag":"p","type":"element","children":["8OnMWJ9EpKPI_VQtOmosX"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"4C_jZBTijAl9PAMbbVIJi":{"type":"text","value":{"type":"value","value":"A location object obtained from getLocation or watchLocation"}},"4s6aT11IZDfas4ut3yLmt":{"tag":"td","type":"element","children":["4C_jZBTijAl9PAMbbVIJi"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"5EiZOHKn3xAn8qECEnVx5":{"tag":"tr","type":"element","children":["PSjGS4l3FiT6Uhz_uiScU","4s6aT11IZDfas4ut3yLmt"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"5T-orZbZuR6_ecXCRaGuh":{"type":"text","value":{"type":"value","value":"maximumAge"}},"6G9R52-I8jYKu30Hw419F":{"tag":"button","type":"element","attrs":{"type":{"type":"value","value":"button"}},"events":{"click":{"actions":[{"type":"TriggerWorkflow","workflow":"n1AJKk"}],"trigger":"click"}},"children":["WC6E3XCQSF61VaQreBmVx"],"classes":{"dlUANn":{"formula":{"type":"value","value":true}}},"customProperties":{}},"6PqyL_zRQgUJ83YY0fKZz":{"tag":"li","type":"element","children":["psnsmVQK4CYhdL7rZTgaD","413Ac-0pYTnf1WFuL83go","PTsIQMlCmPQcPdf2HTEsN","1X_xfAtepRgzkkcg23sb6"],"classes":{"cEskVI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"87I0YPRcuc8C1-pcg7tUc":{"tag":"div","type":"element","children":["EZha-2gF8Q6Oe4gqoEZyi","Uh6M6dv9eZEswSImxs3qw"],"classes":{"bkeoKw":{"formula":{"type":"value","value":true}}},"customProperties":{}},"8OnMWJ9EpKPI_VQtOmosX":{"type":"text","value":{"type":"value","value":"Requests the browser's current location"}},"8Plh-Qm3-vm2ts2pSSrMx":{"tag":"div","type":"element","children":["rtmXcN4t66D-3Yv593DAA","DOgkZCaUdeqFov3dAMLQ0"],"classes":{"eozNhk":{"formula":{"type":"value","value":true}}},"customProperties":{}},"9O_aQoT4yzF831L4ptxNG":{"type":"text","value":{"type":"value","value":"The maximum age in milliseconds of a possible cached position"}},"9UfxVT0zFXi4hjdutEz2p":{"tag":"section","type":"element","children":["sF9G4kUGukbxn6RX3IT9f","1EfqVW-Hhik9U8QPZwpEw"],"classes":{"fsBqBN":{"formula":{"type":"value","value":true}}},"customProperties":{}},"AET_77YDsaI9LwY8kjYDf":{"tag":"section","type":"element","children":["am2ADzHhGEnwREKT8w_Ku","rx8oTcrknx2Ak2QUP-Yd-"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"B4HQwVv1wDvUlgt1Hqh7_":{"tag":"div","type":"element","children":["dxVC-C67CMfXTIMPH0d49"],"customProperties":{}},"BAv3wzqGh1O7nEtBaIu7d":{"tag":"div","type":"element","value":{"type":"value","value":"Many apps require a location to work. It’s what enables ride-hailing apps to find their rider or you to see the location of the delivery guy who brings your delicious meal. Location enables a wealth of use cases, and this package is a set of actions and formulas you can use to start using location as part of your app. \n\nIf you want to request the user's current location, this is the package you're looking for.\n"},"children":["-1zPPd7M3FjnA96GNUa_K","8Plh-Qm3-vm2ts2pSSrMx"],"classes":{"bCauLL":{"formula":{"type":"value","value":true}}},"customProperties":{}},"C9j4ok7Yit4zO_TJ2Iz8u":{"type":"text","value":{"type":"value","value":"Many apps require a location to work. It’s what enables ride-hailing apps to find their rider or you to see the location of the delivery guy who brings your delicious meal. Location enables a wealth of use cases, and this package is a set of actions and formulas you can use to start using location as part of your app. \n"}},"D90N8R9SexcD2sxgAFhYR":{"type":"text","value":{"type":"value","value":"timeout"}},"DOgkZCaUdeqFov3dAMLQ0":{"tag":"p","type":"element","children":["C9j4ok7Yit4zO_TJ2Iz8u","k-ORcXN_8OZIYKZZnkjNf"],"classes":{"sahaH":{"formula":{"type":"value","value":true}}},"customProperties":{}},"DwXiNXTmrT7y5ldQD8v5f":{"type":"text","value":{"type":"value","value":"enableHighAccuracy"}},"EZha-2gF8Q6Oe4gqoEZyi":{"tag":"h4","type":"element","children":["RRfTIM3fyaOTuNMFpQenH"],"classes":{"cwJrhv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"EsvvYR0NOibyAQqSRDxcZ":{"tag":"h3","type":"element","children":["afWPeHt2u262lJjmxOwEH"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Hsa7wgzBFPUAV0T4R4_T4":{"tag":"tr","type":"element","children":["cIyH05PpAGayk_PxkHkGN","irBh8dNJ42OfrjddmrayD"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"IDl3GCHtmX1jDZ-km29zr":{"id":"IDl3GCHtmX1jDZ-km29zr","tag":"div","type":"element","children":["3YZARWizL20mgEw0TEXmS","sFr3ra7lQkycCokwkSLO4"],"condition":{"path":["Variables","Location"],"type":"path"},"classes":{"bvjQTH":{"formula":{"type":"value","value":true}}},"customProperties":{}},"I_E0RvjmH9VwDYmyuPhoW":{"tag":"section","type":"element","children":["RAU8JqB7OubQxWFdk_nYu","untUNYBP6ZknDa2dBH_fl"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"IryfduGqieqQeSfV4mPj4":{"type":"text","value":{"type":"value","value":"location"}},"Jjgf-S0d00aOFQ-BFsjGI":{"tag":"h3","type":"element","children":["_MByjrMjPt2sXVg307rb2"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"KcVsLrdx7kWyWv4MqHFXl":{"type":"text","value":{"type":"value","value":"Indicates the application would like to receive the best possible results"}},"KfaWH0ibU360l_KbF3KFP":{"type":"text","value":{"type":"value","value":"Geolocation API documentation\n"}},"LVYRS40sLiy9lkQuVJlXG":{"type":"text","value":{"type":"value","value":"Get the power of location.\n"}},"N_KPZSKzEVLunsAmjNvC3":{"tag":"p","type":"element","children":["r8mbowrQBduyz0SY2YOZV"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Ne_3g7RI19ivXv1qWLloY":{"tag":"a","type":"element","attrs":{"href":{"type":"value","value":"https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API"},"target":{"type":"value","value":"_blank"}},"children":["KfaWH0ibU360l_KbF3KFP"],"classes":{"dbLxYC":{"formula":{"type":"value","value":true}}},"customProperties":{}},"NsxAEWbalBbCUv1xxcMjS":{"type":"text","value":{"type":"value","value":"Test it out!"}},"OIePASTg8m6lrtGFB9YCI":{"tag":"td","type":"element","children":["t7JfDFkUCyPeLcmlivHsx"],"classes":{"fhanpd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"PSjGS4l3FiT6Uhz_uiScU":{"tag":"td","type":"element","children":["IryfduGqieqQeSfV4mPj4"],"classes":{"fhanpd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"PTsIQMlCmPQcPdf2HTEsN":{"tag":"div","type":"element","children":["tNs2NMCLsxgiCLv1UC6NF","mSkf17QFUl68ZYojLNRXo"],"classes":{"bkeoKw":{"formula":{"type":"value","value":true}}},"customProperties":{}},"PUmbRD0Ple8YqWbLe23aQ":{"tag":"div","type":"element","children":["6G9R52-I8jYKu30Hw419F","yfYjIeNsLeql17y0Z9RM5","_l7Ht7Wni8JZkNYmLjdhC","IDl3GCHtmX1jDZ-km29zr"],"classes":{"eYYyhs":{"formula":{"type":"value","value":true}}},"customProperties":{}},"RAU8JqB7OubQxWFdk_nYu":{"tag":"h2","type":"element","children":["yodl6oDnsqna4uHGcrcCx"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"RRfTIM3fyaOTuNMFpQenH":{"type":"text","value":{"type":"value","value":"Arguments"}},"SfycsSX9h-NWQu5fsM7Nl":{"tag":"td","type":"element","children":["5T-orZbZuR6_ecXCRaGuh"],"classes":{"fhanpd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"TkTo1p3QYQS3TUoXhntgx":{"tag":"tr","type":"element","children":["OIePASTg8m6lrtGFB9YCI","ycZXKwCj8wY9mm4BAoEVi"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Tw2waLtHQac0OxzdlJDbe":{"type":"text","value":{"type":"value","value":"Requests to watch the browser's location going forward"}},"Uh6M6dv9eZEswSImxs3qw":{"tag":"table","type":"element","children":["cmXh2RPdf4sPzJMdE4akR","-rwCgh_j0m4tIO8ozUmbH","vRDkhaCaqXC7JjohLfC_N"],"classes":{"fmmYYL":{"formula":{"type":"value","value":true}}},"customProperties":{}},"UtfdYtSt2auK5K_tUn5ro":{"type":"text","value":{"type":"value","value":"Intro"}},"VAuGpuykrpe-l_uslBc4N":{"type":"text","value":{"name":"@toddle/concatenate","type":"function","arguments":[{"name":"0","type":{"type":"Union","types":[{"type":"String"},{"type":"Array","ofType":{"type":"Any"}}]},"formula":{"type":"value","value":"Your location: "}},{"name":"0","type":{"type":"Union","types":[{"type":"String"},{"type":"Array","ofType":{"type":"Any"}}]},"formula":{"name":"@toddle/get","type":"function","arguments":[{"name":"Object","type":{"type":"Union","types":[{"type":"Object"},{"type":"Array"},{"type":"String"}]},"formula":{"path":["Variables","Location"],"type":"path"}},{"name":"Path","type":{"type":"Union","types":[{"type":"Array","ofType":{"type":"String"}},{"type":"String"},{"type":"Number"}]},"formula":{"type":"array","arguments":[{"Name":0,"formula":{"type":"value","value":"coords"}},{"Name":0,"formula":{"type":"value","value":"latitude"}}]}}],"display_name":"Get"}},{"name":"0","type":{"type":"Union","types":[{"type":"String"},{"type":"Array","ofType":{"type":"Any"}}]},"formula":{"type":"value","value":", "}},{"name":"0","type":{"type":"Union","types":[{"type":"String"},{"type":"Array","ofType":{"type":"Any"}}]},"formula":{"name":"@toddle/get","type":"function","arguments":[{"name":"Object","type":{"type":"Union","types":[{"type":"Object"},{"type":"Array"},{"type":"String"}]},"formula":{"path":["Variables","Location"],"type":"path"}},{"name":"Path","type":{"type":"Union","types":[{"type":"Array","ofType":{"type":"String"}},{"type":"String"},{"type":"Number"}]},"formula":{"type":"array","arguments":[{"Name":0,"formula":{"type":"value","value":"coords"}},{"Name":0,"formula":{"type":"value","value":"longitude"}}]}}],"display_name":"Get"}}],"display_name":"Concatenate","variableArguments":true},"events":null},"WC6E3XCQSF61VaQreBmVx":{"type":"text","value":{"type":"switch","cases":[{"formula":{"type":"value","value":"Requesting location ..."},"condition":{"path":["Variables","Is Requesting"],"type":"path"}}],"default":{"type":"value","value":"Request location"}},"events":null},"XI21XrAYJsJ-McHXG3-ji":{"tag":"li","type":"element","children":["EsvvYR0NOibyAQqSRDxcZ","ZStJIBlPqb5JfA7Kn_fwe","87I0YPRcuc8C1-pcg7tUc","B4HQwVv1wDvUlgt1Hqh7_"],"classes":{"cEskVI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"XKVXBJoVXXM7x53ms9fFy":{"tag":"h2","type":"element","children":["UtfdYtSt2auK5K_tUn5ro"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ZStJIBlPqb5JfA7Kn_fwe":{"tag":"p","type":"element","children":["Tw2waLtHQac0OxzdlJDbe"],"classes":{"eleUpJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"_MByjrMjPt2sXVg307rb2":{"type":"text","value":{"type":"value","value":"googleMapsLocationLink"}},"_l7Ht7Wni8JZkNYmLjdhC":{"tag":"p","type":"element","children":["mKl2XYePDgeARGuODZ6eH"],"condition":{"path":["Variables","Location Error"],"type":"path"},"classes":{"ehaFnm":{"formula":{"type":"value","value":true}}},"customProperties":{}},"aXMbJ4Fe0WtTquQMmHyBD":{"type":"text","value":{"type":"value","value":"Formulas"}},"afWPeHt2u262lJjmxOwEH":{"type":"text","value":{"type":"value","value":"watchLocation"}},"am2ADzHhGEnwREKT8w_Ku":{"tag":"h2","type":"element","children":["ksW0X_2Hgmku0IWQiV7_F"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"bYwYia88X9Ib-z9svUfeY":{"tag":"div","type":"element","children":["dlP-Yi_TZ3KDCAtUXrKDf","nwzJfIAjew3fE654esbca"],"classes":{"bkeoKw":{"formula":{"type":"value","value":true}}},"customProperties":{}},"cIyH05PpAGayk_PxkHkGN":{"tag":"td","type":"element","children":["vJUxGT52ZpHYD76O1hwmT"],"classes":{"fhanpd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"cmXh2RPdf4sPzJMdE4akR":{"tag":"tr","type":"element","children":["SfycsSX9h-NWQu5fsM7Nl","2OziQwtOqO99dAnybyBDq"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"d0ID_d3flkTmjmwy2iJXl":{"type":"text","value":{"type":"value","value":"getLocation"}},"dZYMeO2JB8-QolR8HA8Za":{"type":"text","value":{"type":"value","value":"Test it out!"}},"dj1zQJknpbji3EKhdXj0L":{"type":"text","value":{"type":"value","value":"Indicates the application would like to receive the best possible results"}},"dlP-Yi_TZ3KDCAtUXrKDf":{"tag":"h4","type":"element","children":["z1cvJz59LVF3urd9AVE3L"],"classes":{"cwJrhv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"dux02rq141usjx60fTmsQ":{"type":"text","value":{"type":"value","value":"Google Maps"},"events":null},"dxVC-C67CMfXTIMPH0d49":{"tag":"button","type":"element","attrs":{"type":{"type":"value","value":"button"}},"events":{"click":{"actions":[{"type":"TriggerWorkflow","workflow":"Vfuz1U"}],"trigger":"click"}},"children":["NsxAEWbalBbCUv1xxcMjS"],"classes":{"frdFqb":{"formula":{"type":"value","value":true}}},"customProperties":{}},"e-uZHV8mM84nD3di2SQ5e":{"type":"text","value":{"type":"value","value":"The maximum age in milliseconds of a possible cached position"}},"f6FXG0J0L7RaVaB7u_8yw":{"type":"text","value":{"type":"value","value":"Maximum length of time (in milliseconds) the device is allowed to take in order to return a position"}},"gg4HSTiSF-G24egcCFpW-":{"tag":"section","type":"element","children":["XKVXBJoVXXM7x53ms9fFy","BAv3wzqGh1O7nEtBaIu7d"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"i9KuGdcZhjEsDqKfccA0W":{"tag":"td","type":"element","children":["dj1zQJknpbji3EKhdXj0L"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"irBh8dNJ42OfrjddmrayD":{"tag":"td","type":"element","children":["e-uZHV8mM84nD3di2SQ5e"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"k-ORcXN_8OZIYKZZnkjNf":{"tag":"span","type":"element","children":["Ne_3g7RI19ivXv1qWLloY"],"classes":{"dajqpO":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ksW0X_2Hgmku0IWQiV7_F":{"type":"text","value":{"type":"value","value":"Demo"}},"lvofbwc6zlDb2bXMMjYkr":{"tag":"td","type":"element","children":["KcVsLrdx7kWyWv4MqHFXl"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"mKl2XYePDgeARGuODZ6eH":{"type":"text","value":{"path":["Variables","Location Error"],"type":"path"},"events":null},"mSkf17QFUl68ZYojLNRXo":{"tag":"table","type":"element","children":["Hsa7wgzBFPUAV0T4R4_T4","TkTo1p3QYQS3TUoXhntgx","sthW3Qjf846KUHGBRLuT9"],"classes":{"fmmYYL":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ngjEcAVNC1_MGuBpDJ6QK":{"type":"text","value":{"type":"value","value":"Watch location"},"events":null},"nwzJfIAjew3fE654esbca":{"tag":"table","type":"element","children":["5EiZOHKn3xAn8qECEnVx5"],"classes":{"fmmYYL":{"formula":{"type":"value","value":true}}},"customProperties":{}},"oX-VxyDWoWGNzvwDnxlvH":{"tag":"td","type":"element","children":["D90N8R9SexcD2sxgAFhYR"],"classes":{"fhanpd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"psnsmVQK4CYhdL7rZTgaD":{"tag":"h3","type":"element","children":["d0ID_d3flkTmjmwy2iJXl"],"classes":{"blVCsl":{"formula":{"type":"value","value":true}}},"customProperties":{}},"r80kK3yykigNhL9ESx1Eq":{"type":"text","value":{"type":"value","value":"Arguments"}},"r8mbowrQBduyz0SY2YOZV":{"type":"text","value":{"type":"value","value":"Returns a Google Maps link that centers on a given latitude/longitude of the provided location"}},"rtmXcN4t66D-3Yv593DAA":{"tag":"h3","type":"element","children":["LVYRS40sLiy9lkQuVJlXG"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"rx8oTcrknx2Ak2QUP-Yd-":{"tag":"div","type":"element","children":["PUmbRD0Ple8YqWbLe23aQ"],"classes":{"YTJFj":{"formula":{"type":"value","value":true}}},"customProperties":{}},"s-eJqvIF1p8D4qYSKCzOr":{"tag":"td","type":"element","children":["sWBHYdtu-v_VGM6NuSJS6"],"classes":{"fhanpd":{"formula":{"type":"value","value":true}}},"customProperties":{}},"sF9G4kUGukbxn6RX3IT9f":{"tag":"h2","type":"element","children":["aXMbJ4Fe0WtTquQMmHyBD"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"sFr3ra7lQkycCokwkSLO4":{"tag":"a","type":"element","attrs":{"href":{"name":"googleMapsLocationLink","type":"function","arguments":[{"name":"location","type":{"type":"Unknown"},"formula":{"path":["Variables","Location"],"type":"path"}}]},"target":{"type":"value","value":"_blank"}},"children":["dux02rq141usjx60fTmsQ"],"classes":{"cSiYsv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"sWBHYdtu-v_VGM6NuSJS6":{"type":"text","value":{"type":"value","value":"enableHighAccuracy"}},"sthW3Qjf846KUHGBRLuT9":{"tag":"tr","type":"element","children":["s-eJqvIF1p8D4qYSKCzOr","lvofbwc6zlDb2bXMMjYkr"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"t7JfDFkUCyPeLcmlivHsx":{"type":"text","value":{"type":"value","value":"timeout"}},"t7x8_ySnLfPPbUWo8sjrf":{"tag":"button","type":"element","attrs":{"type":{"type":"value","value":"button"}},"events":{"click":{"actions":[{"type":"TriggerWorkflow","workflow":"n1AJKk"}],"trigger":"click"}},"children":["dZYMeO2JB8-QolR8HA8Za"],"classes":{"frdFqb":{"formula":{"type":"value","value":true}}},"customProperties":{}},"tNs2NMCLsxgiCLv1UC6NF":{"tag":"h4","type":"element","children":["r80kK3yykigNhL9ESx1Eq"],"classes":{"cwJrhv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ukdMPF-QSSdAJfacF1iM3":{"tag":"li","type":"element","children":["Jjgf-S0d00aOFQ-BFsjGI","N_KPZSKzEVLunsAmjNvC3","bYwYia88X9Ib-z9svUfeY"],"classes":{"dSlTz":{"formula":{"type":"value","value":true}}},"customProperties":{}},"untUNYBP6ZknDa2dBH_fl":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["6PqyL_zRQgUJ83YY0fKZz","XI21XrAYJsJ-McHXG3-ji"],"classes":{"fBBdzh":{"formula":{"type":"value","value":true}}},"customProperties":{}},"vJUxGT52ZpHYD76O1hwmT":{"type":"text","value":{"type":"value","value":"maximumAge"}},"vRDkhaCaqXC7JjohLfC_N":{"tag":"tr","type":"element","children":["-4TsVbqVsvDECAL05lzQF","i9KuGdcZhjEsDqKfccA0W"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ycZXKwCj8wY9mm4BAoEVi":{"tag":"td","type":"element","children":["f6FXG0J0L7RaVaB7u_8yw"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"yfYjIeNsLeql17y0Z9RM5":{"tag":"button","type":"element","attrs":{"type":{"type":"value","value":"button"}},"events":{"click":{"actions":[{"data":{"type":"value","value":true},"type":"SetVariable","variable":"Is Requesting Watch"},{"name":"watchLocation","events":{"error":{"actions":[{"data":{"type":"value","value":false},"type":"SetVariable","variable":"Is Requesting Watch"},{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"Location Error"}],"trigger":"error"},"success":{"actions":[{"data":{"type":"value","value":false},"type":"SetVariable","variable":"Is Requesting Watch"},{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"Location"}],"trigger":"success"}},"version":2,"exported":true,"arguments":[{"name":"maximumAge","formula":{"type":"value","value":null}},{"name":"timeout","formula":{"type":"value","value":null}},{"name":"enableHighAccuracy","formula":{"type":"value","value":null}}],"handlerRaw":"function watchLocation(args, ctx) {\n    if (!navigator?.geolocation) {\n        ctx.triggerActionEvent(\"error\", \"Geo location not available\");\n    } else {\n        const options = {\n            maximumAge: 60000, // default to 1 minute\n        };\n        const isDefined = x => x !== undefined && x !== null;\n        if (isDefined(args.maximumAge) && !Number.isNaN(args.maximumAge)) {\n            options.maximumAge = Number(args.maximumAge);\n        }\n        if (isDefined(args.timeout) && !Number.isNaN(args.timeout)) {\n            options.timeout = Number(args.timeout);\n        }\n        if (isDefined(args.enableHighAccuracy) && [true, false].includes(args.enableHighAccuracy)) {\n            options.enableHighAccuracy = args.enableHighAccuracy;\n        }\n        navigator.geolocation.watchPosition(\n            location => ctx.triggerActionEvent(\"success\", location),\n            err => ctx.triggerActionEvent(\"error\", err),\n            options\n        );\n    }\n}"}],"trigger":"click"}},"children":["ngjEcAVNC1_MGuBpDJ6QK"],"classes":{"dlUANn":{"formula":{"type":"value","value":true}}},"customProperties":{}},"yodl6oDnsqna4uHGcrcCx":{"type":"text","value":{"type":"value","value":"Actions"}},"z1cvJz59LVF3urd9AVE3L":{"type":"text","value":{"type":"value","value":"Arguments"}}},"route":{"info":{"title":{"formula":{"type":"value","value":"Location package for toddle"}},"description":{"formula":{"type":"value","value":"A package with useful actions/formulas for working with the Geolocation API"}}},"path":[],"query":{}},"onLoad":{"actions":[],"trigger":"load"},"functions":{},"variables":{"Location":{"initialValue":{"type":"value","value":null}},"Is Requesting":{"initialValue":{"type":"value","value":false}},"Location Error":{"initialValue":{"type":"value","value":null}},"Is Requesting Watch":{"initialValue":{"type":"value","value":false}}},"workflows":{"Vfuz1U":{"name":"Watch location","actions":[{"data":{"type":"value","value":true},"type":"SetVariable","variable":"Is Requesting Watch"},{"name":"watchLocation","events":{"error":{"actions":[{"data":{"type":"value","value":false},"type":"SetVariable","variable":"Is Requesting Watch"},{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"Location Error"}],"trigger":"error","dummyEvent":{"code":1,"message":"User denied Geolocation"}},"success":{"actions":[{"data":{"type":"value","value":false},"type":"SetVariable","variable":"Is Requesting"},{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"Location"}],"trigger":"success","dummyEvent":{"coords":{"speed":null,"heading":null,"accuracy":20,"altitude":null,"latitude":55.22,"longitude":12.11,"altitudeAccuracy":null},"timestamp":1707164529359}}},"version":2,"exported":true,"arguments":[{"name":"maximumAge","formula":null},{"name":"timeout","formula":null},{"name":"enableHighAccuracy","formula":null}],"handlerRaw":"function watchLocation(args, ctx) {\n    if (!navigator?.geolocation) {\n        ctx.triggerActionEvent(\"error\", \"Geo location not available\");\n    } else {\n        const options = {\n            maximumAge: 60000, // default to 1 minute\n        };\n        const isDefined = x => x !== undefined && x !== null;\n        if (isDefined(args.maximumAge) && !Number.isNaN(args.maximumAge)) {\n            options.maximumAge = Number(args.maximumAge);\n        }\n        if (isDefined(args.timeout) && !Number.isNaN(args.timeout)) {\n            options.timeout = Number(args.timeout);\n        }\n        if (isDefined(args.enableHighAccuracy) && [true, false].includes(args.enableHighAccuracy)) {\n            options.enableHighAccuracy = args.enableHighAccuracy;\n        }\n        navigator.geolocation.watchPosition(\n            location => ctx.triggerActionEvent(\"success\", location),\n            err => ctx.triggerActionEvent(\"error\", err),\n            options\n        );\n    }\n}"}],"exposeInContext":false,"parameters":[]},"n1AJKk":{"name":"Request location","actions":[{"data":{"type":"value","value":true},"type":"SetVariable","variable":"Is Requesting"},{"name":"getLocation","events":{"error":{"actions":[{"data":{"type":"value","value":false},"type":"SetVariable","variable":"Is Requesting"},{"data":{"path":["Event","message"],"type":"path"},"type":"SetVariable","variable":"Location Error"}],"trigger":"error","dummyEvent":{"code":1,"message":"User denied Geolocation"}},"success":{"actions":[{"data":{"type":"value","value":false},"type":"SetVariable","variable":"Is Requesting"},{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"Location"}],"trigger":"success","dummyEvent":{"coords":{"speed":null,"heading":null,"accuracy":20,"altitude":null,"latitude":55.22,"longitude":12.11,"altitudeAccuracy":null},"timestamp":1707164529359}}},"version":2,"exported":true,"arguments":[{"name":"maximumAge","formula":null},{"name":"timeout","formula":null},{"name":"enableHighAccuracy","formula":null}],"handlerRaw":"function getLocation(args, ctx) {\n    if (!navigator?.geolocation) {\n        ctx.triggerActionEvent(\"error\", \"Geo location not available\");\n    } else {\n        const options = {\n            maximumAge: 60000, // default to 1 minute\n        };\n        const isDefined = x => x !== undefined && x !== null;\n        if (isDefined(args.maximumAge) && !Number.isNaN(args.maximumAge)) {\n            options.maximumAge = Number(args.maximumAge);\n        }\n        if (isDefined(args.timeout) && !Number.isNaN(args.timeout)) {\n            options.timeout = Number(args.timeout);\n        }\n        if (isDefined(args.enableHighAccuracy) && [true, false].includes(args.enableHighAccuracy)) {\n            options.enableHighAccuracy = args.enableHighAccuracy;\n        }\n        navigator.geolocation.getCurrentPosition(\n            location => ctx.triggerActionEvent(\"success\", location),\n            err => ctx.triggerActionEvent(\"error\", err),\n            options\n        );\n    }\n}"}],"exposeInContext":false,"parameters":[]}}},"components":[]}