{"app":{"id":14,"summary":"Back-Office of an E-Commerce Business","versions":[47,48,57,58,59,66,67],"created_by":"henri186","created_at":"2023-04-11T14:57:34.366Z","votes":0,"approved":true,"apps":["supabase"],"app_type":"openapp","external_embed_url":null,"value":{"css":{"app":{"grid":{"class":"","style":""},"viewer":{"class":"","style":""},"component":{"class":"","style":""}},"mapcomponent":{"map":{"class":"","style":""}},"formcomponent":{"button":{"class":"","style":""},"container":{"class":"","style":""}},"htmlcomponent":{"container":{"class":"","style":""}},"iconcomponent":{"icon":{"class":"","style":""},"container":{"class":"","style":""}},"tabscomponent":{"tabRow":{"class":"","style":""},"allTabs":{"class":"","style":""},"container":{"class":"","style":""},"selectedTab":{"class":"","style":""}},"textcomponent":{"text":{"class":"","style":""}},"imagecomponent":{"image":{"class":"","style":""}},"rangecomponent":{"limits":{"class":"","style":""},"values":{"class":"","style":""},"handles":{"style":""}},"tablecomponent":{"container":{"class":"","style":""},"tableBody":{"class":"","style":""},"tableFooter":{"class":"","style":""},"tableHeader":{"class":"","style":""}},"aggridcomponent":{},"buttoncomponent":{"button":{"class":"","style":""}},"drawercomponent":{},"plotlycomponent":{},"selectcomponent":{"input":{"style":""}},"slidercomponent":{"value":{"class":"","style":""},"handle":{"style":""},"limits":{"class":"","style":""}},"displaycomponent":{"header":{"class":"","style":""},"container":{"class":"","style":""}},"barchartcomponent":{"container":{"class":"","style":""}},"checkboxcomponent":{"text":{"class":"","style":""}},"currencycomponent":{"input":{"class":"","style":""}},"piechartcomponent":{"container":{"class":"","style":""}},"vegalitecomponent":{},"containercomponent":{"container":{"class":"","style":""}},"dateinputcomponent":{"input":{"class":"","style":""}},"fileinputcomponent":{"container":{"class":"","style":""}},"textinputcomponent":{"input":{"class":"","style":""}},"formbuttoncomponent":{"popup":{"class":"","style":""},"button":{"class":"","style":""}},"timeseriescomponent":{"container":{"class":"","style":""}},"multiselectcomponent":{"input":{"style":""}},"numberinputcomponent":{"input":{"class":"","style":""}},"scatterchartcomponent":{"container":{"class":"","style":""}},"passwordinputcomponent":{"input":{"class":"","style":""}},"verticaldividercomponent":{"divider":{"class":"","style":""},"container":{"class":"","style":""}},"horizontaldividercomponent":{"divider":{"class":"","style":""},"container":{"class":"","style":""}},"verticalsplitpanescomponent":{"container":{"class":"","style":""}},"horizontalsplitpanescomponent":{"container":{"class":"","style":""}}},"grid":[{"3":{"h":1,"w":1,"x":0,"y":8,"fixed":false},"12":{"h":1,"w":12,"x":0,"y":0,"id":"c","fixed":false},"id":"c","data":{"id":"c","type":"textcomponent","customCss":{"text":{"class":"","style":"color: #177cc8;"}},"configuration":{"style":{"type":"static","value":"Body"},"tooltip":{"type":"static","value":""},"copyButton":{"type":"static","value":false}},"componentInput":{"eval":"This app can be used on Windmill's demo workspace: https://app.windmill.dev/user/login","type":"template","value":"Hello ${ctx.username}","fieldType":"template"},"verticalAlignment":"top","horizontalAlignment":"left"}},{"3":{"h":1,"w":1,"x":1,"y":8,"fixed":false},"12":{"h":1,"w":12,"x":0,"y":1,"id":"f","fixed":false},"id":"f","data":{"id":"f","type":"textcomponent","customCss":{"text":{"class":"","style":""}},"configuration":{"style":{"type":"static","value":"Body"},"tooltip":{"type":"static","value":""},"copyButton":{"type":"static","value":false}},"componentInput":{"eval":"Tutorial: https://docs.windmill.dev/docs/apps/app_e-commerce","type":"template","value":"Hello ${ctx.username}","fieldType":"template"},"verticalAlignment":"top","horizontalAlignment":"left"}},{"3":{"h":8,"w":2,"x":0,"y":0,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":true,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":22,"w":12,"x":0,"y":2,"id":"a","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":true,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"a","data":{"id":"a","card":false,"tabs":["Products","Orders","Users","Manuel order"],"type":"tabscomponent","softWrap":true,"customCss":{"tabRow":{"class":"","style":""},"allTabs":{"class":"","style":""},"container":{"class":"","style":""},"selectedTab":{"class":"","style":""}},"disabledTabs":[{"type":"static"},{"type":"static"},{"type":"static"},{"type":"static"}],"configuration":{"tabsKind":{"type":"static","value":null},"noPadding":{"type":"static","value":true,"fieldType":"boolean","onlyStatic":true}},"numberOfSubgrids":4}}],"subgrids":{"a-0":[{"3":{"h":1,"w":1,"x":0,"y":0,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":true,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":2,"x":10,"y":0,"id":"b","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":true,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"b","data":{"id":"b","card":false,"type":"drawercomponent","softWrap":true,"configuration":{"size":{"type":"static","value":"xs","fieldType":"select","onlyStatic":true,"optionValuesKey":"buttonSizeOptions"},"color":{"type":"static","value":"dark","fieldType":"select","onlyStatic":true,"optionValuesKey":"buttonColorOptions"},"label":{"type":"static","value":"Add a new product","fieldType":"text"},"disabled":{"expr":"false","type":"eval","fieldType":"boolean"},"noPadding":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true},"drawerTitle":{"type":"static","value":"Drawer title","fieldType":"text","onlyStatic":true},"fillContainer":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true}},"numberOfSubgrids":1,"verticalAlignment":"center","horizontalAlignment":"right"}},{"3":{"h":8,"w":2,"x":1,"y":0,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":true,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":19,"w":12,"x":0,"y":1,"id":"i","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":true,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"i","data":{"id":"i","card":false,"type":"verticalsplitpanescomponent","panes":[60,40],"softWrap":true,"customCss":{"container":{"class":"","style":""}},"configuration":{"noPadding":{"type":"static","value":true,"fieldType":"boolean","onlyStatic":true}},"numberOfSubgrids":2}}],"a-1":[{"3":{"h":8,"w":2,"x":0,"y":0,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":20,"w":12,"x":0,"y":0,"id":"d","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"d","data":{"id":"d","card":false,"tabs":["List of orders","Analytics","Shipping map"],"type":"tabscomponent","softWrap":true,"customCss":{"tabRow":{"class":"","style":""},"allTabs":{"class":"","style":""},"container":{"class":"","style":""},"selectedTab":{"class":"","style":""}},"configuration":{"noPadding":{"type":"static","value":true,"fieldType":"boolean","onlyStatic":true}},"numberOfSubgrids":3}}],"a-2":[{"3":{"h":8,"w":2,"x":0,"y":10,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":20,"w":12,"x":0,"y":0,"id":"aw","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"aw","data":{"id":"aw","card":false,"type":"verticalsplitpanescomponent","panes":[50,50],"softWrap":true,"customCss":{"container":{"class":"","style":""}},"configuration":{"noPadding":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true}},"numberOfSubgrids":2}}],"a-3":[{"3":{"h":8,"w":2,"x":0,"y":0,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":20,"w":12,"x":0,"y":0,"id":"al","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"al","data":{"id":"al","card":false,"type":"verticalsplitpanescomponent","panes":[60,40],"softWrap":true,"customCss":{"container":{"class":"","style":""}},"configuration":{"noPadding":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true}},"numberOfSubgrids":2}}],"b-0":[{"3":{"h":1,"w":1,"x":0,"y":0,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":12,"x":0,"y":0,"id":"s","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"s","data":{"id":"s","card":false,"type":"textcomponent","softWrap":false,"customCss":{"text":{"class":"","style":""}},"configuration":{"style":{"type":"static","value":"Label","fieldType":"select","onlyStatic":true,"optionValuesKey":"textStyleOptions"},"copyButton":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true}},"componentInput":{"eval":"Name","type":"template","value":"Hello ${ctx.username}","fieldType":"template"},"verticalAlignment":"center","horizontalAlignment":"left"}},{"3":{"h":1,"w":2,"x":1,"y":0,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":12,"x":0,"y":1,"id":"t","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"t","data":{"id":"t","card":false,"type":"textinputcomponent","softWrap":true,"customCss":{"input":{"class":"","style":""}},"configuration":{"placeholder":{"type":"static","value":"Type...","fieldType":"text","onlyStatic":true},"defaultValue":{"type":"static","fieldType":"text"}},"verticalAlignment":"center"}},{"3":{"h":1,"w":1,"x":0,"y":5,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":12,"x":0,"y":2,"id":"v","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"v","data":{"id":"v","card":false,"type":"textcomponent","softWrap":false,"customCss":{"text":{"class":"","style":""}},"configuration":{"style":{"type":"static","value":"Label","fieldType":"select","onlyStatic":true,"optionValuesKey":"textStyleOptions"},"copyButton":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true}},"componentInput":{"eval":"Description","type":"template","value":"Hello ${ctx.username}","fieldType":"template"},"verticalAlignment":"center","horizontalAlignment":"left"}},{"3":{"h":1,"w":2,"x":1,"y":5,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":12,"x":0,"y":3,"id":"w","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"w","data":{"id":"w","card":false,"type":"textinputcomponent","softWrap":true,"customCss":{"input":{"class":"","style":""}},"configuration":{"placeholder":{"type":"static","value":"Type...","fieldType":"text","onlyStatic":true},"defaultValue":{"type":"static","fieldType":"text"}},"verticalAlignment":"center"}},{"3":{"h":1,"w":1,"x":0,"y":6,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":12,"x":0,"y":4,"id":"x","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"x","data":{"id":"x","card":false,"type":"textcomponent","softWrap":false,"customCss":{"text":{"class":"","style":""}},"configuration":{"style":{"type":"static","value":"Label","fieldType":"select","onlyStatic":true,"optionValuesKey":"textStyleOptions"},"copyButton":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true}},"componentInput":{"eval":"Quantity","type":"template","value":"Hello ${ctx.username}","fieldType":"template"},"verticalAlignment":"center","horizontalAlignment":"left"}},{"3":{"h":1,"w":2,"x":1,"y":6,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":12,"x":0,"y":5,"id":"y","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"y","data":{"id":"y","card":false,"type":"numberinputcomponent","softWrap":true,"customCss":{"input":{"class":"","style":""}},"configuration":{"max":{"type":"static","fieldType":"number"},"min":{"type":"static","value":0,"fieldType":"number"},"step":{"type":"static","value":1,"fieldType":"number"},"placeholder":{"type":"static","value":"Type...","fieldType":"text","onlyStatic":true},"defaultValue":{"type":"static","value":1,"fieldType":"number"}},"verticalAlignment":"center"}},{"3":{"h":1,"w":1,"x":0,"y":7,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":12,"x":0,"y":6,"id":"z","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"z","data":{"id":"z","card":false,"type":"textcomponent","softWrap":false,"customCss":{"text":{"class":"","style":""}},"configuration":{"style":{"type":"static","value":"Label","fieldType":"select","onlyStatic":true,"optionValuesKey":"textStyleOptions"},"copyButton":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true}},"componentInput":{"eval":"Image","type":"template","value":"Hello ${ctx.username}","fieldType":"template"},"verticalAlignment":"center","horizontalAlignment":"left"}},{"3":{"h":4,"w":3,"x":0,"y":1,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":6,"w":12,"x":0,"y":7,"id":"u","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"u","data":{"id":"u","card":false,"type":"fileinputcomponent","customCss":{"container":{"class":"","style":""}},"configuration":{"text":{"type":"static","value":"Drag and drop files or click to select them","fieldType":"text","onlyStatic":true},"allowMultiple":{"type":"static","value":false,"tooltip":"If allowed, the user will be able to select more than one file","fieldType":"boolean","onlyStatic":true},"acceptedFileTypes":{"type":"static","value":["image/*","application/pdf"],"fieldType":"array","onlyStatic":true}}}},{"3":{"h":1,"w":1,"x":1,"y":7,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":2,"w":3,"x":9,"y":14,"id":"aa","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"aa","data":{"id":"aa","card":false,"type":"buttoncomponent","softWrap":true,"customCss":{"button":{"class":"","style":""}},"configuration":{"goto":{"type":"static","value":"","tooltip":"Go to an url on success if not empty","fieldType":"text"},"size":{"type":"static","value":"sm","fieldType":"select","onlyStatic":true,"optionValuesKey":"buttonSizeOptions"},"color":{"type":"static","value":"gray","fieldType":"select","onlyStatic":true,"optionValuesKey":"buttonColorOptions"},"label":{"type":"static","value":"Create product","fieldType":"text"},"disabled":{"expr":"false","type":"eval","fieldType":"boolean"},"afterIcon":{"type":"static","fieldType":"icon-select","onlyStatic":true},"onSuccess":{"selected":"","configuration":{"":{}}},"beforeIcon":{"type":"static","value":"Plus","fieldType":"icon-select","onlyStatic":true},"gotoNewTab":{"type":"static","value":true,"tooltip":"Go to create a new tab","fieldType":"boolean"},"fillContainer":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true},"triggerOnAppLoad":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true}},"componentInput":{"type":"runnable","fields":{},"fieldType":"any"},"verticalAlignment":"center","horizontalAlignment":"center"}}],"d-0":[{"3":{"h":8,"w":2,"x":0,"y":0,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":18,"w":12,"x":0,"y":0,"id":"ab","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"ab","data":{"id":"ab","card":false,"type":"verticalsplitpanescomponent","panes":[60,40],"softWrap":true,"customCss":{"container":{"class":"","style":""}},"configuration":{"noPadding":{"type":"static","value":true,"fieldType":"boolean","onlyStatic":true}},"numberOfSubgrids":2}}],"d-1":[{"3":{"h":8,"w":2,"x":0,"y":8,"fixed":false},"12":{"h":7,"w":5,"x":0,"y":0,"id":"g","fixed":false},"id":"g","data":{"id":"g","type":"chartjscomponentv2","xData":{"expr":"[\"1 item\", \"2 items\", \"More than 2 items\"]","type":"evalv2","fieldType":"array","connections":[]},"datasets":{"type":"static","value":[{"name":"Dataset 1","value":{"expr":"bg_6.result","type":"evalv2","value":[25,25,50],"fieldType":"array","connections":[{"id":"result","componentId":"bg_6"}],"subFieldType":"number"}}],"fieldType":"array","subFieldType":"chartjs"},"customCss":{"container":{"class":"","style":""}},"configuration":{"type":{"type":"static","value":"pie"},"options":{"type":"static","value":{}}}}}],"d-2":[{"3":{"h":6,"w":3,"x":0,"y":1,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":10,"w":12,"x":0,"y":0,"id":"bb","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"bb","data":{"id":"bb","card":false,"type":"mapcomponent","customCss":{"map":{"class":"","style":""}},"configuration":{"zoom":{"type":"static","value":3,"fieldType":"number"},"markers":{"type":"static","value":[{"lat":41.902783,"lon":12.496366,"color":"#dc2626","title":"Rome","radius":7,"strokeColor":"#fca5a5","strokeWidth":3},{"lat":51.507359,"lon":-0.136439,"title":"London"}],"fieldType":"array","fileUpload":{"accept":"application/json","convertTo":"text"},"subFieldType":"object"},"latitude":{"type":"static","value":50,"fieldType":"number"},"longitude":{"type":"static","value":15,"fieldType":"number"}}}}],"i-0":[{"3":{"h":10,"w":3,"x":0,"y":0,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":18,"w":12,"x":0,"y":0,"id":"j","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"j","data":{"id":"j","card":true,"type":"tablecomponent","customCss":{"container":{"class":"capitalize ","style":""},"tableBody":{"class":"","style":""},"tableFooter":{"class":"","style":""},"tableHeader":{"class":"","style":""}},"actionButtons":[],"configuration":{"search":{"type":"static","value":"By Component","fieldType":"select","onlyStatic":true,"optionValuesKey":"tableSearchOptions"},"columnDefs":{"type":"static","value":[{"type":"text","field":"image_url","headerName":"New column","hideColumn":true},{"type":"text","field":"id","headerName":"New column","hideColumn":true}]},"pagination":{"type":"oneOf","selected":"auto","configuration":{"auto":{"pageSize":{"type":"static","value":20}},"manual":{"pageCount":{"type":"static","value":-1}}}},"initialState":{"type":"static"},"downloadButton":{"type":"static"}},"componentInput":{"expr":"bg_0.result.data","type":"evalv2","value":[{"id":"06dfcbdc-f256-4c83-8022-5e70a07a2d91","price":79990,"title":"Samsung Galaxy S23","quantity":27,"description":"A powerful Android phone"},{"id":"f991898d-cb27-4ac7-b10c-0b9050ce104c","price":199990,"title":"MacBook Pro","quantity":30,"description":"Apple laptop with high performance"},{"id":"829ca080-5630-4562-9d5e-7611199dc669","price":49990,"title":"Xbox Series X","quantity":50,"description":"Microsoft gaming console with powerful hardware"},{"id":"354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","price":49990,"title":"PlayStation 5","quantity":58,"description":"The latest gaming console from Sony"},{"id":"89c0a336-1343-4812-ac34-e4bb8e2735aa","price":29990,"title":"Nintendo Switch","quantity":43,"description":"Hybrid gaming console from Nintendo"},{"id":"c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","price":99990,"title":"iPhone 14","quantity":48,"description":"The latest smartphone from Apple"},{"id":"ccee43dc-27e0-40a8-b768-b09579b0c6cf","price":299990,"title":"Sony Alpha A7R IV","quantity":15,"description":"High-end mirrorless camera with impressive image quality"},{"id":"2128adca-7fc6-44bd-800c-dc115df6ace5","price":139990,"title":"Surface Laptop 4","quantity":27,"description":"Microsoft laptop with excellent battery life"},{"id":"b3e864c8-7fe3-4270-89e9-54c1203885db","price":389990,"title":"Canon EOS R5","quantity":11,"description":"Professional mirrorless camera with high resolution"},{"id":"2e120bb2-8366-4192-b04e-818afbe8e77a","price":32990,"title":"Bose QuietComfort 45","quantity":37,"description":"Noise-cancelling headphones with excellent sound quality"}],"fields":{},"runnable":{"name":"Inline Script 1","type":"runnableByName"},"fieldType":"array","connection":{"path":"result.data","componentId":"bg_0"},"autoRefresh":true,"connections":[{"id":"result","componentId":"bg_0"}],"subFieldType":"object","recomputeOnInputChanged":true}}}],"i-1":[{"3":{"h":1,"w":1,"x":0,"y":1,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":12,"x":0,"y":0,"id":"m","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"m","data":{"id":"m","card":false,"type":"textcomponent","softWrap":false,"customCss":{"text":{"class":"","style":""}},"configuration":{"style":{"type":"static","value":"Label","fieldType":"select","onlyStatic":true,"optionValuesKey":"textStyleOptions"},"copyButton":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true}},"componentInput":{"eval":"Name","type":"template","value":"Hello ${ctx.username}","fieldType":"template"},"verticalAlignment":"center","horizontalAlignment":"left"}},{"3":{"h":1,"w":2,"x":1,"y":1,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":12,"x":0,"y":1,"id":"n","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"n","data":{"id":"n","card":false,"type":"textinputcomponent","softWrap":true,"customCss":{"input":{"class":"","style":""}},"configuration":{"placeholder":{"type":"static","value":"Type...","fieldType":"text","onlyStatic":true},"defaultValue":{"type":"connected","fieldType":"text","connection":{"path":"selectedRow.title","componentId":"j"}}},"verticalAlignment":"center"}},{"3":{"h":1,"w":1,"x":0,"y":2,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":12,"x":0,"y":2,"id":"o","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"o","data":{"id":"o","card":false,"type":"textcomponent","softWrap":false,"customCss":{"text":{"class":"","style":""}},"configuration":{"style":{"type":"static","value":"Label","fieldType":"select","onlyStatic":true,"optionValuesKey":"textStyleOptions"},"copyButton":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true}},"componentInput":{"eval":"Description","type":"template","value":"Hello ${ctx.username}","fieldType":"template"},"verticalAlignment":"center","horizontalAlignment":"left"}},{"3":{"h":1,"w":2,"x":1,"y":2,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":12,"x":0,"y":3,"id":"p","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"p","data":{"id":"p","card":false,"type":"textinputcomponent","softWrap":true,"customCss":{"input":{"class":"","style":""}},"configuration":{"placeholder":{"type":"static","value":"Type...","fieldType":"text","onlyStatic":true},"defaultValue":{"type":"connected","fieldType":"text","connection":{"path":"selectedRow.description","componentId":"j"}}},"verticalAlignment":"center"}},{"3":{"h":1,"w":1,"x":2,"y":0,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":12,"x":0,"y":4,"id":"l","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"l","data":{"id":"l","card":false,"type":"textcomponent","softWrap":false,"customCss":{"text":{"class":"","style":""}},"configuration":{"style":{"type":"static","value":"Label","fieldType":"select","onlyStatic":true,"optionValuesKey":"textStyleOptions"},"copyButton":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true}},"componentInput":{"eval":"Quantity","type":"template","value":"Hello ${ctx.username}","fieldType":"template"},"verticalAlignment":"center","horizontalAlignment":"left"}},{"3":{"h":1,"w":2,"x":0,"y":0,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":12,"x":0,"y":5,"id":"k","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"k","data":{"id":"k","card":false,"type":"numberinputcomponent","softWrap":true,"customCss":{"input":{"class":"","style":""}},"configuration":{"max":{"type":"static","fieldType":"number"},"min":{"type":"static","fieldType":"number"},"step":{"type":"static","value":1,"fieldType":"number"},"placeholder":{"type":"static","value":"Type...","fieldType":"text","onlyStatic":true},"defaultValue":{"type":"connected","fieldType":"number","connection":{"path":"selectedRow.quantity","componentId":"j"}}},"verticalAlignment":"center"}},{"3":{"h":1,"w":1,"x":1,"y":3,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":12,"x":0,"y":6,"id":"au","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"au","data":{"id":"au","card":false,"type":"textcomponent","softWrap":false,"customCss":{"text":{"class":"","style":""}},"configuration":{"style":{"type":"static","value":"Label","fieldType":"select","onlyStatic":true,"optionValuesKey":"textStyleOptions"},"copyButton":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true}},"componentInput":{"eval":"Price","type":"template","value":"Hello ${ctx.username}","fieldType":"template"},"verticalAlignment":"center","horizontalAlignment":"left"}},{"3":{"h":1,"w":2,"x":0,"y":8,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":12,"x":0,"y":7,"id":"av","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"av","data":{"id":"av","card":false,"type":"numberinputcomponent","softWrap":true,"customCss":{"input":{"class":"","style":""}},"configuration":{"max":{"type":"static","fieldType":"number"},"min":{"type":"static","fieldType":"number"},"step":{"type":"static","value":1,"fieldType":"number"},"placeholder":{"type":"static","value":"Type...","fieldType":"text","onlyStatic":true},"defaultValue":{"type":"connected","fieldType":"number","connection":{"path":"selectedRow.price","componentId":"j"}}},"verticalAlignment":"center"}},{"3":{"h":4,"w":3,"x":0,"y":4,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":6,"w":12,"x":0,"y":8,"id":"r","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"r","data":{"id":"r","card":false,"type":"imagecomponent","customCss":{"image":{"class":"","style":""}},"configuration":{"source":{"type":"connected","value":"/logo.svg","fieldType":"text","connection":{"path":"selectedRow.image_url","componentId":"j"},"fileUpload":{"accept":"image/*","convertTo":"base64"}},"altText":{"type":"static","value":"","tooltip":"This text will appear if the image can't be loaded for any reason","fieldType":"text","onlyStatic":true},"imageFit":{"type":"static","value":"contain","fieldType":"select","onlyStatic":true,"optionValuesKey":"objectFitOptions"}}}},{"3":{"h":1,"w":1,"x":0,"y":3,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":12,"x":0,"y":17,"id":"q","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"q","data":{"id":"q","card":false,"type":"buttoncomponent","softWrap":true,"customCss":{"button":{"class":"","style":""}},"recomputeIds":["bg_0"],"configuration":{"goto":{"type":"static","value":"","tooltip":"Go to an url on success if not empty","fieldType":"text"},"size":{"type":"static","value":"xs","fieldType":"select","onlyStatic":true,"optionValuesKey":"buttonSizeOptions"},"color":{"type":"static","value":"dark","fieldType":"select","onlyStatic":true,"optionValuesKey":"buttonColorOptions"},"label":{"type":"static","value":"Save","fieldType":"text"},"onError":{"type":"oneOf","selected":"errorOverlay","configuration":{"open":{"id":{"type":"static","value":""}},"close":{"id":{"type":"static","value":""}},"setTab":{"setTab":{"type":"static","value":[]}},"gotoUrl":{"url":{"type":"static","value":""},"newTab":{"type":"static","value":true}},"errorOverlay":{},"sendErrorToast":{"message":{"type":"static","value":""},"appendError":{"type":"static","value":true}}}},"disabled":{"expr":"false","type":"eval","fieldType":"boolean"},"afterIcon":{"type":"static","value":"","fieldType":"icon-select","onlyStatic":true},"onSuccess":{"type":"oneOf","selected":"none","configuration":{"none":{},"open":{"id":{"type":"static","value":""}},"close":{"id":{"type":"static","value":""}},"setTab":{"setTab":{"type":"static","value":[]}},"gotoUrl":{"url":{"type":"static","value":""},"newTab":{"type":"static","value":true}},"openModal":{"modalId":{"type":"static","value":""}},"sendToast":{"message":{"type":"static","value":""}},"closeModal":{"modalId":{"type":"static","value":""}}}},"beforeIcon":{"type":"static","value":"Save","fieldType":"icon-select","onlyStatic":true},"gotoNewTab":{"type":"static","value":true,"tooltip":"Go to create a new tab","fieldType":"boolean"},"fillContainer":{"type":"static","value":true,"fieldType":"boolean","onlyStatic":true},"triggerOnAppLoad":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true}},"componentInput":{"type":"runnable","fields":{},"runnable":{"name":"updateProduct","type":"runnableByName","inlineScript":{"path":"u/faton/newapp/updateProduct","schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":[],"properties":{}},"content":"export async function main() {\n  console.log(\"update\");\n}\n","language":"deno"}},"fieldType":"any","autoRefresh":false,"recomputeOnInputChanged":false},"verticalAlignment":"center","horizontalAlignment":"right"}}],"ab-0":[{"3":{"h":10,"w":3,"x":0,"y":0,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":17,"w":12,"x":0,"y":0,"id":"ac","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"ac","data":{"id":"ac","card":true,"type":"tablecomponent","customCss":{"container":{"class":"","style":""},"tableBody":{"class":"","style":""},"tableFooter":{"class":"","style":""},"tableHeader":{"class":"","style":""}},"actionButtons":[{"id":"ac_a","card":false,"type":"buttoncomponent","customCss":{"button":{"class":"","style":""}},"recomputeIds":["bg_0","bg_2"],"configuration":{"goto":{"type":"static","value":"","tooltip":"Go to an url on success if not empty","fieldType":"text"},"size":{"type":"static","value":"xs","fieldType":"select","optionValuesKey":"buttonSizeOptions"},"color":{"type":"static","value":"dark","fieldType":"select","optionValuesKey":"buttonColorOptions"},"label":{"type":"static","value":"Refund","fieldType":"text"},"disabled":{"expr":"false","type":"eval","fieldType":"boolean"},"afterIcon":{"type":"static","fieldType":"icon-select","onlyStatic":true},"onSuccess":{"selected":"","configuration":{"":{}}},"beforeIcon":{"type":"static","value":"DollarSign","fieldType":"icon-select","onlyStatic":true},"gotoNewTab":{"type":"static","value":true,"tooltip":"Go to create a new tab","fieldType":"boolean"},"fillContainer":{"type":"static"},"triggerOnAppLoad":{"type":"static"}},"componentInput":{"type":"runnable","fields":{"auth":{"type":"static","value":"$res:u/henri/wm_showcases_supabase","format":"resource-supabase","fieldType":"object"},"orderId":{"type":"connected","value":"","fieldType":"string","connection":{"path":"selectedRow.id","componentId":"ac"}}},"runnable":{"name":"toggleRefund","type":"runnableByName","inlineScript":{"lock":"{\n  \"version\": \"2\",\n  \"remote\": {\n    \"https://deno.land/std@0.150.0/media_types/_util.ts\": \"ce9b4fc4ba1c447dafab619055e20fd88236ca6bdd7834a21f98bd193c3fbfa1\",\n    \"https://deno.land/std@0.150.0/media_types/mod.ts\": \"2d4b6f32a087029272dc59e0a55ae3cc4d1b27b794ccf528e94b1925795b3118\",\n    \"https://deno.land/std@0.150.0/media_types/vendor/mime-db.v1.52.0.ts\": \"724cee25fa40f1a52d3937d6b4fbbfdd7791ff55e1b7ac08d9319d5632c7f5af\",\n    \"https://deno.land/std@0.160.0/_util/assert.ts\": \"e94f2eb37cebd7f199952e242c77654e43333c1ac4c5c700e929ea3aa5489f74\",\n    \"https://deno.land/std@0.160.0/_util/os.ts\": \"8a33345f74990e627b9dfe2de9b040004b08ea5146c7c9e8fe9a29070d193934\",\n    \"https://deno.land/std@0.160.0/async/abortable.ts\": \"87aa7230be8360c24ad437212311c9e8d4328854baec27b4c7abb26e85515c06\",\n    \"https://deno.land/std@0.160.0/async/deadline.ts\": \"48ac998d7564969f3e6ec6b6f9bf0217ebd00239b1b2292feba61272d5dd58d0\",\n    \"https://deno.land/std@0.160.0/async/debounce.ts\": \"dc8b92d4a4fe7eac32c924f2b8d3e62112530db70cadce27042689d82970b350\",\n    \"https://deno.land/std@0.160.0/async/deferred.ts\": \"d8fb253ffde2a056e4889ef7e90f3928f28be9f9294b6505773d33f136aab4e6\",\n    \"https://deno.land/std@0.160.0/async/delay.ts\": \"0419dfc993752849692d1f9647edf13407c7facc3509b099381be99ffbc9d699\",\n    \"https://deno.land/std@0.160.0/async/mod.ts\": \"dd0a8ed4f3984ffabe2fcca7c9f466b7932d57b1864ffee148a5d5388316db6b\",\n    \"https://deno.land/std@0.160.0/async/mux_async_iterator.ts\": \"3447b28a2a582224a3d4d3596bccbba6e85040da3b97ed64012f7decce98d093\",\n    \"https://deno.land/std@0.160.0/async/pool.ts\": \"ef9eb97b388543acbf0ac32647121e4dbe629236899586c4d4311a8770fbb239\",\n    \"https://deno.land/std@0.160.0/async/tee.ts\": \"9af3a3e7612af75861308b52249e167f5ebc3dcfc8a1a4d45462d96606ee2b70\",\n    \"https://deno.land/std@0.160.0/bytes/bytes_list.ts\": \"aba5e2369e77d426b10af1de0dcc4531acecec27f9b9056f4f7bfbf8ac147ab4\",\n    \"https://deno.land/std@0.160.0/bytes/equals.ts\": \"3c3558c3ae85526f84510aa2b48ab2ad7bdd899e2e0f5b7a8ffc85acb3a6043a\",\n    \"https://deno.land/std@0.160.0/bytes/mod.ts\": \"b2e342fd3669176a27a4e15061e9d588b89c1aaf5008ab71766e23669565d179\",\n    \"https://deno.land/std@0.160.0/crypto/_fnv/fnv32.ts\": \"aa9bddead8c6345087d3abd4ef35fb9655622afc333fc41fff382b36e64280b5\",\n    \"https://deno.land/std@0.160.0/crypto/_fnv/fnv64.ts\": \"625d7e7505b6cb2e9801b5fd6ed0a89256bac12b2bbb3e4664b85a88b0ec5bef\",\n    \"https://deno.land/std@0.160.0/crypto/_fnv/index.ts\": \"a8f6a361b4c6d54e5e89c16098f99b6962a1dd6ad1307dbc97fa1ecac5d7060a\",\n    \"https://deno.land/std@0.160.0/crypto/_fnv/util.ts\": \"4848313bed7f00f55be3cb080aa0583fc007812ba965b03e4009665bde614ce3\",\n    \"https://deno.land/std@0.160.0/crypto/_wasm_crypto/lib/deno_std_wasm_crypto.generated.mjs\": \"258b484c2da27578bec61c01d4b62c21f72268d928d03c968c4eb590cb3bd830\",\n    \"https://deno.land/std@0.160.0/crypto/_wasm_crypto/mod.ts\": \"6c60d332716147ded0eece0861780678d51b560f533b27db2e15c64a4ef83665\",\n    \"https://deno.land/std@0.160.0/crypto/keystack.ts\": \"e481eed28007395e554a435e880fee83a5c73b9259ed8a135a75e4b1e4f381f7\",\n    \"https://deno.land/std@0.160.0/crypto/mod.ts\": \"fadedc013b4a86fda6305f1adc6d1c02225834d53cff5d95cc05f62b25127517\",\n    \"https://deno.land/std@0.160.0/crypto/timing_safe_equal.ts\": \"82a29b737bc8932d75d7a20c404136089d5d23629e94ba14efa98a8cc066c73e\",\n    \"https://deno.land/std@0.160.0/datetime/formatter.ts\": \"7c8e6d16a0950f400aef41b9f1eb9168249869776ec520265dfda785d746589e\",\n    \"https://deno.land/std@0.160.0/datetime/mod.ts\": \"ea927ca96dfb28c7b9a5eed5bdc7ac46bb9db38038c4922631895cea342fea87\",\n    \"https://deno.land/std@0.160.0/datetime/tokenizer.ts\": \"7381e28f6ab51cb504c7e132be31773d73ef2f3e1e50a812736962b9df1e8c47\",\n    \"https://deno.land/std@0.160.0/encoding/base64.ts\": \"c57868ca7fa2fbe919f57f88a623ad34e3d970d675bdc1ff3a9d02bba7409db2\",\n    \"https://deno.land/std@0.160.0/encoding/base64url.ts\": \"a5f82a9fa703bd85a5eb8e7c1296bc6529e601ebd9642cc2b5eaa6b38fa9e05a\",\n    \"https://deno.land/std@0.160.0/encoding/hex.ts\": \"4cc5324417cbb4ac9b828453d35aed45b9cc29506fad658f1f138d981ae33795\",\n    \"https://deno.land/std@0.160.0/fmt/colors.ts\": \"9e36a716611dcd2e4865adea9c4bec916b5c60caad4cdcdc630d4974e6bb8bd4\",\n    \"https://deno.land/std@0.160.0/io/buffer.ts\": \"fae02290f52301c4e0188670e730cd902f9307fb732d79c4aa14ebdc82497289\",\n    \"https://deno.land/std@0.160.0/path/_constants.ts\": \"df1db3ffa6dd6d1252cc9617e5d72165cd2483df90e93833e13580687b6083c3\",\n    \"https://deno.land/std@0.160.0/path/_interface.ts\": \"ee3b431a336b80cf445441109d089b70d87d5e248f4f90ff906820889ecf8d09\",\n    \"https://deno.land/std@0.160.0/path/_util.ts\": \"d16be2a16e1204b65f9d0dfc54a9bc472cafe5f4a190b3c8471ec2016ccd1677\",\n    \"https://deno.land/std@0.160.0/path/common.ts\": \"bee563630abd2d97f99d83c96c2fa0cca7cee103e8cb4e7699ec4d5db7bd2633\",\n    \"https://deno.land/std@0.160.0/path/glob.ts\": \"cb5255638de1048973c3e69e420c77dc04f75755524cb3b2e160fe9277d939ee\",\n    \"https://deno.land/std@0.160.0/path/mod.ts\": \"56fec03ad0ebd61b6ab39ddb9b0ddb4c4a5c9f2f4f632e09dd37ec9ebfd722ac\",\n    \"https://deno.land/std@0.160.0/path/posix.ts\": \"6b63de7097e68c8663c84ccedc0fd977656eb134432d818ecd3a4e122638ac24\",\n    \"https://deno.land/std@0.160.0/path/separator.ts\": \"fe1816cb765a8068afb3e8f13ad272351c85cbc739af56dacfc7d93d710fe0f9\",\n    \"https://deno.land/std@0.160.0/path/win32.ts\": \"ee8826dce087d31c5c81cd414714e677eb68febc40308de87a2ce4b40e10fb8d\",\n    \"https://deno.land/std@0.160.0/testing/_diff.ts\": \"a23e7fc2b4d8daa3e158fa06856bedf5334ce2a2831e8bf9e509717f455adb2c\",\n    \"https://deno.land/std@0.160.0/testing/_format.ts\": \"cd11136e1797791045e639e9f0f4640d5b4166148796cad37e6ef75f7d7f3832\",\n    \"https://deno.land/std@0.160.0/testing/asserts.ts\": \"1e340c589853e82e0807629ba31a43c84ebdcdeca910c4a9705715dfdb0f5ce8\",\n    \"https://deno.land/x/postgres@v0.17.0/client.ts\": \"348779c9f6a1c75ef1336db662faf08dce7d2101ff72f0d1e341ba1505c8431d\",\n    \"https://deno.land/x/postgres@v0.17.0/client/error.ts\": \"0817583b666fd546664ed52c1d37beccc5a9eebcc6e3c2ead20ada99b681e5f7\",\n    \"https://deno.land/x/postgres@v0.17.0/connection/auth.ts\": \"1070125e2ac4ca4ade36d69a4222d37001903092826d313217987583edd61ce9\",\n    \"https://deno.land/x/postgres@v0.17.0/connection/connection.ts\": \"428ed3efa055870db505092b5d3545ef743497b7b4b72cf8f0593e7dd4788acd\",\n    \"https://deno.land/x/postgres@v0.17.0/connection/connection_params.ts\": \"52bfe90e8860f584b95b1b08c254dde97c3aa763c4b6bee0c80c5930e35459e0\",\n    \"https://deno.land/x/postgres@v0.17.0/connection/message.ts\": \"f9257948b7f87d58bfbfe3fc6e2e08f0de3ef885655904d56a5f73655cc22c5a\",\n    \"https://deno.land/x/postgres@v0.17.0/connection/message_code.ts\": \"466719008b298770c366c5c63f6cf8285b7f76514dadb4b11e7d9756a8a1ddbf\",\n    \"https://deno.land/x/postgres@v0.17.0/connection/packet.ts\": \"050aeff1fc13c9349e89451a155ffcd0b1343dc313a51f84439e3e45f64b56c8\",\n    \"https://deno.land/x/postgres@v0.17.0/connection/scram.ts\": \"0c7a2551fe7b1a1c62dd856b7714731a7e7534ccca10093336782d1bfc5b2bd2\",\n    \"https://deno.land/x/postgres@v0.17.0/deps.ts\": \"f47ccb41f7f97eaad455d94f407ef97146ae99443dbe782894422c869fbba69e\",\n    \"https://deno.land/x/postgres@v0.17.0/mod.ts\": \"a1e18fd9e6fedc8bc24e5aeec3ae6de45e2274be1411fb66e9081420c5e81d7d\",\n    \"https://deno.land/x/postgres@v0.17.0/pool.ts\": \"892db7b5e1787988babecc994a151ebbd7d017f080905cbe9c3d7b44a73032a9\",\n    \"https://deno.land/x/postgres@v0.17.0/query/array_parser.ts\": \"f8a229d82c3801de8266fa2cc4afe12e94fef8d0c479e73655c86ed3667ef33f\",\n    \"https://deno.land/x/postgres@v0.17.0/query/decode.ts\": \"44a4a6cbcf494ed91a4fecae38a57dce63a7b519166f02c702791d9717371419\",\n    \"https://deno.land/x/postgres@v0.17.0/query/decoders.ts\": \"16cb0e60227d86692931e315421b15768c78526e3aeb84e25fcc4111096de9fd\",\n    \"https://deno.land/x/postgres@v0.17.0/query/encode.ts\": \"5f1418a2932b7c2231556e4a5f5f56efef48728014070cfafe7656963f342933\",\n    \"https://deno.land/x/postgres@v0.17.0/query/oid.ts\": \"8c33e1325f34e4ca9f11a48b8066c8cfcace5f64bc1eb17ad7247af4936999e1\",\n    \"https://deno.land/x/postgres@v0.17.0/query/query.ts\": \"edb473cbcfeff2ee1c631272afb25d079d06b66b5853f42492725b03ffa742b6\",\n    \"https://deno.land/x/postgres@v0.17.0/query/transaction.ts\": \"8e75c3ce0aca97da7fe126e68f8e6c08d640e5c8d2016e62cee5c254bebe7fe8\",\n    \"https://deno.land/x/postgres@v0.17.0/query/types.ts\": \"a6dc8024867fe7ccb0ba4b4fa403ee5d474c7742174128c8e689c3b5e5eaa933\",\n    \"https://deno.land/x/postgres@v0.17.0/utils/deferred.ts\": \"dd94f2a57355355c47812b061a51b55263f72d24e9cb3fdb474c7519f4d61083\",\n    \"https://deno.land/x/postgres@v0.17.0/utils/utils.ts\": \"19c3527ddd5c6c4c49ae36397120274c7f41f9d3cbf479cb36065d23329e9f90\",\n    \"https://deno.land/x/windmill@v1.70.1/mod.ts\": \"3bd67c231a1f9e0b361e3f292a9f3c3a68f5728ff85088bfea9eb6de0a24e628\",\n    \"https://deno.land/x/windmill@v1.70.1/pg.ts\": \"841515a5633464ba2e70777e264eaad104f0e0191ad93f8eb7e85070a71de0e3\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/core/ApiError.ts\": \"d3139fc732bcb6207b01c086f6f46b7e2c244f752ac01921a70cabb380d9c921\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/core/ApiRequestOptions.ts\": \"dbf0cddf0fff4e97e9fc76d142fec32da4fcb9c16be80efbf37144434fb716a5\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/core/ApiResult.ts\": \"203f365871242de44402e927f08b07888d99db13f1c4dd56cd9bd5b706de169c\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/core/CancelablePromise.ts\": \"9512059962d4dd415cb7678a8a3accccc92f2ebb581e3bfb19200d83ebaea344\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/core/OpenAPI.ts\": \"a19625206ea9f8d7cf066403f84e828690140232b450e6b2a4793c53d5ecddde\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/core/request.ts\": \"7cdd1fb083e30793e46d144d6c20a899286648e56af5ae2635ee721253608aea\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/index.ts\": \"ad7e36bf5e6b9b5434ec833d2a43d0e53674bc1a63c8949a3d6bb62f03415265\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/AppWithLastVersion.ts\": \"fd70d4c9791bd4af4ea19e1c55addbbde896190556be3f7678ea52e561d920ef\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/AuditLog.ts\": \"87bffeef830ca2563395c020ddbadbfc03c5eaae08f23b219a622a4259aa7a5c\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/BranchAll.ts\": \"341fac8a2375c875020599ddd41012e13928f61a0f5aceacd40faf8365f918df\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/BranchOne.ts\": \"1d1bd9aa993382aa1005aa77d265694cc06b1fcce79f6438faa10230f76e9e89\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/CompletedJob.ts\": \"16e9de7b6d64b44619c3927fab838b79e9eb9594cee2ebf1904f80f74c621b7c\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/ContextualVariable.ts\": \"5fe49f330cf2b64e9e7588d8c5e22835897e89d107bc79611764316809d00b4c\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/CreateResource.ts\": \"9d0e6f1647b958d5f8fb60b955bd8a20c2bcd6fec76f5ca10afd4138dd40c83c\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/CreateVariable.ts\": \"8e1364b48f1712a4f3b9247ed0a98d0c9102e6f85592cb5874770344122e9d1e\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/CreateWorkspace.ts\": \"13bf9b0ae70670144005e801d3fcecfe97369f99a8c4f7fde2ec9efc40ab8c94\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/EditResource.ts\": \"9d26febafb3320817125a92d0ea30fd32d8cdb7ae3e3ebd172638f8ec3e21fad\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/EditResourceType.ts\": \"b0a230f4c6fc34727ed0bc0dfaeec55235b2ad32fae7f27554639274fbf9601b\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/EditSchedule.ts\": \"5ae8836b2c473ac105850a037c5b79628a6fc33687adefe5bddd142961cfcb53\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/EditVariable.ts\": \"d68944af3ae8f86df55e5c3cf0404adf591f297f4d96326824b3134622aacfbb\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/EditWorkspaceUser.ts\": \"fdef3e980effab27c4c63840282c09e59c0dfc52b10ecaf3cb94f4f476f507a9\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/Flow.ts\": \"b1a0915ea1fdc0582ee9e7fc0885672dc877a73c33cee156711c202abb10b845\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/FlowMetadata.ts\": \"a5e1c47e8727b645264f90bdc354097b8cfa6284d9eea6f803bcc44f5365170b\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/FlowModule.ts\": \"9b1d91fc6ac03ff82dbe6b1333fc258e740dd1260a49dd8b19dd36e30fec0fcd\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/FlowModuleValue.ts\": \"2fb026379e6f5d9a19aba26d9826aac6b6718ca6c45d8c7519ecfe8bd8f722a3\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/FlowPreview.ts\": \"a65e71c62e49ddf66dcbabc7086c2e1491087ccd718d384c60b33107fdc853f0\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/FlowStatus.ts\": \"d594c8dce4d42d043412a2f33cb6e292f5502fbdc085d2344bc72ae987cfd48c\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/FlowStatusModule.ts\": \"aea0c8753c3b796de85a4b901d6d0429e99534cf1d54f5271d479809d95b8c67\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/FlowValue.ts\": \"1a1c25f1c9f8b8c7928121c4a0332b2bfaa3f167da8c01702d1f573fcd174b0b\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/Folder.ts\": \"46cda8b84fc8cbf4c707263752d587e08aee309e2744d6644b9fc5fdd56539a0\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/ForloopFlow.ts\": \"cb0253e564e83232a75c9443a9591cb95b5233b15b269d71f545a4f53f3b225c\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/GlobalUserInfo.ts\": \"9b9eb0c6fd730c2242158b829fd0475f74509de82ffcaceceb0a48c306347bb3\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/Group.ts\": \"078299123198e5620e88b49160e9c8054d3b454f0e675fb7dc01d2eec60b3e77\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/Identity.ts\": \"1bd4f508aa5c4ef594444f85bd2785e83871a0b2535bc3073217a7ae77577c3e\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/InputTransform.ts\": \"8275e7297c573c771d32ce010f656f75a8262f7230c78eada40579a61f91cd25\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/JavascriptTransform.ts\": \"22fcd44a654281e805094c65feef9acc969ea17e83785c0cf5e7288561b52c8a\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/Job.ts\": \"04bc2c79d2fa55ce84236f5ec3a70d5e4f07b6a1ec754be1e23d2b2e2fe1cb39\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/ListableApp.ts\": \"e696f193945b2da44f824b604e9b17eec30a10b3f533dac1c60f65b48eb6d1b9\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/ListableResource.ts\": \"fe25a5ce0fe6829ad11737b4829d66dcf8ee67245d670d7ba7a38b2cf001e701\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/ListableVariable.ts\": \"520ea27e5f6d0dbcca508293dd2edbf26fafbb6d11aa52c8dadfbc0389db9f7d\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/Login.ts\": \"a76d0d6a9c7836aec28275a924b4bd3fb2d6cf09459eafe0eeebd881f5fc50cd\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/MainArgSignature.ts\": \"0bbac597e19ab1df2eb254c0dd5950a6b94859691de5bd86b730db31d354e880\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/NewSchedule.ts\": \"9b480b21a9bf2e4b40fbcc6d02eaede388146427f44d7d7766e226c92e2101ad\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/NewToken.ts\": \"d85bc25509967bda432e420a566fe1def4ee5f44f92b62cc16025a26fa7dc2cb\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/NewUser.ts\": \"c225f73b82771bff95e6a82707bc45fab61508cd2290dc0404d2ce650910a159\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/OpenFlow.ts\": \"b5afbce63fb044b203e5cdcf5b56c42802c855159d79df3cd1b4c83b55a74329\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/OpenFlowWPath.ts\": \"ddde2d71f030594da767f7a1d75bae875c00c1f7eb19439914afcb94c775169a\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/PathFlow.ts\": \"adfac10c278f00c89d36bb3af99494c04d9d817c6d0e68a6e01e8e2eb2dff77d\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/PathScript.ts\": \"c794d92d061017f2e3e6361e1f7cded8ce53b79a40a6bbb248002f040b31151f\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/Policy.ts\": \"26f3f21aa23753343eaa91f7b7e4e7c26a0b5cd95e384d8a0c91032f7b656ae5\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/Preview.ts\": \"1c5f10b8f234935fc6782236675160078904a661a287a5c6d658e6b5dc157637\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/QueuedJob.ts\": \"e6d332cba5f82c4608af0969604f255ae3f72f2507762ba914b8ec56211cedce\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/RawScript.ts\": \"dcea1167335a69ca5587067af013f4306ed607e1433795a9e309d72096067acb\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/Resource.ts\": \"ac87ef39dfd2bc28dc488e6c79250772c4af28d9624affc07ff0348dc38f2c36\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/ResourceType.ts\": \"a001b45bcbcc9be538f38fbc8a2553987d978815a4d69346c47e426a23eb52ed\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/Retry.ts\": \"2b2cb6cfa6c60e6791f4fccea779f5903db101b14492a3254174e535d3c3da91\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/Schedule.ts\": \"7f197f55d5b64f7048e499fb2a5c9271e1e944e5fd1d69288bf9a801a39c1f54\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/Script.ts\": \"c1015066b230cb69d8f6eaa687fef2ed72d9e8238b4b4a2ba99f5a0b56728009\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/ScriptArgs.ts\": \"14cdb2905b91c7356b87287978b82175f9d5f6075e063eeb47ed0a89efff41cc\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/SlackToken.ts\": \"d4408d75e23b9be7819f34c7717bf9e5150619603fc255b102e723fb458a9ccb\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/StaticTransform.ts\": \"d4f056f72abce7eb61748a543a5c6dd5cd9828f24a096a2298b4bdddb2d93f4d\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/TokenResponse.ts\": \"0763c5c53cbdb3406c0d944858830d283a6e33b840f807c267d3210b58c5cde7\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/TruncatedToken.ts\": \"3a8f0a003d9aeb5041813b3a940beae24740d1ca4432c665a1e06635681ac8ec\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/Usage.ts\": \"a5763c34e75d5d542997bf0ba50787863639ea234478b4153500734fe687dfa4\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/User.ts\": \"7d1a70ded83dc6659494fe1628580d11cf555562c11f810ac6b24d6ddd2621f3\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/UserWorkspaceList.ts\": \"77d85559a562b3d55860c8b90914a4f5cec6ef8a4571531a9dbb3675bbda54f5\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/WorkerPing.ts\": \"f85a9a1a7e9eea3602c09741423deba231049fb9b23302326dd064f1ae466074\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/Workspace.ts\": \"d9474a123d8697e3ce2da8bcf91caf01749d9d9cce2e91948f3c33ab463cb4d0\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/models/WorkspaceInvite.ts\": \"f2507959e68c78ca8ae363461f3258b233c33739bf236d38558e86838de1adb2\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/services/AdminService.ts\": \"012abc99c87013c175317dd6f77535bdaf572361762660dcdc983f8c67feab2c\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/services/AppService.ts\": \"4f74d306b9a661509f0a9ddc475a7f2f06d7cd0077f548e016d57e6600ae8874\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/services/AuditService.ts\": \"099bc1398cf91d861214e38bfad99914902682fb14a578cb33e6b6ebd7090a11\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/services/CaptureService.ts\": \"f83e9c46e43f141f029cf31ed202ce3d3da57f64fa6625370cca8bfb61ba15ad\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/services/FavoriteService.ts\": \"87a8878549fa806aced9675005bd4577176d56bfdf458b18423a20f3e934a180\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/services/FlowService.ts\": \"01c297e88ada1175c9217e0152902ccce6f80ac11e506cacb0cfd4466d48f230\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/services/FolderService.ts\": \"a05f9ca3e1faf78498993ed23b0ae719641a67c5444cac1696ae87a5426a7283\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/services/GranularAclService.ts\": \"ac6b345013c6601818e3973a5d28ab1984b674b8db01f56f7478dd0ff147aae5\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/services/GroupService.ts\": \"ea285dc6f2bf18f285f6c38168247839d46cb5998846e1c6a7890265ecf3fbe1\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/services/JobService.ts\": \"176c316457571cc1148bc009ece7cb5250089c9fac9ad87db026c5eb0313a03f\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/services/OauthService.ts\": \"1ed3abd3e70bad4b8ef21f77d38df8cbbf18a49ccf0216dcc6b95954a47eb626\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/services/ResourceService.ts\": \"2aa344f85b6e279a9c6e9aa58a40359c40444e8ea5cd0b55b0b0bbed619662bd\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/services/ScheduleService.ts\": \"01dab550f2679a114bb834a667823fb61a1cbc9a95fb0d708acbe47053c946b1\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/services/ScriptService.ts\": \"9077ca78221eb71ca187746e41c93c5a736139e0200bedc49257daba34bbf519\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/services/SettingsService.ts\": \"6beb1e904073b13c4b160b08f842f128f478fdeb686529675d063e1d50660000\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/services/UserService.ts\": \"66c17e1ea4fad96a4b05476446f1f0b63d2f5f19c9e5232e7fff21e315ac1c7d\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/services/VariableService.ts\": \"30874fc564c7817435ca2d4ec0ab459c3394a2308f4daf22ae3f92a10ccb02cc\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/services/WorkerService.ts\": \"cb47e532df3fc89359e575b0e21e6f3323e051ee9fcc2454caacb1cc0f076e53\",\n    \"https://deno.land/x/windmill@v1.70.1/windmill-api/services/WorkspaceService.ts\": \"2e945ccde1c8a2ef683597db304abae8501d81be604f051b62998642f9d39b31\",\n    \"https://deno.land/x/xhr@0.3.0/mod.ts\": \"094aacd627fd9635cd942053bf8032b5223b909858fa9dc8ffa583752ff63b20\",\n    \"https://esm.sh/@supabase/supabase-js@2.10.0\": \"698f0bea5cf8a4dcab308c240082bb87eb6e09ea6c2188546c939b43f9129370\",\n    \"https://esm.sh/v133/@supabase/functions-js@2.1.5/denonext/functions-js.mjs\": \"baba764a4f87e1b0abc01adb3cee8eff1d78781576ef5ac963fad753777238af\",\n    \"https://esm.sh/v133/@supabase/gotrue-js@2.55.0/denonext/gotrue-js.mjs\": \"ead72a1eb6abf95c107e8bf63d6ab10c417739e4098733b3d2cf19884f63bf68\",\n    \"https://esm.sh/v133/@supabase/node-fetch@2.6.14/denonext/node-fetch.mjs\": \"23a71af3512da67a8757ab1e2356fa22565758444ea1fc08e0de0e8d4625e8aa\",\n    \"https://esm.sh/v133/@supabase/postgrest-js@1.8.4/denonext/postgrest-js.mjs\": \"be6bb16c512f1bc72d523cd95e82f814a37983805715e44b957061d88157fcbf\",\n    \"https://esm.sh/v133/@supabase/realtime-js@2.8.0/denonext/realtime-js.mjs\": \"ca3121a97e25b09c3598e84fbd9b098ed4fd8a960dd2cdce0fba75a5968216af\",\n    \"https://esm.sh/v133/@supabase/storage-js@2.5.4/denonext/storage-js.mjs\": \"00a848e496164c164dcdc2b40a294190b05d18b6ecb722c5b78eb83ee67ea4e9\",\n    \"https://esm.sh/v133/@supabase/supabase-js@2.10.0/denonext/supabase-js.mjs\": \"f2a48d2577f191b8e53ec1b1d118a4da5bcc16704b49a0a920f45657a5c4909b\",\n    \"https://esm.sh/v133/cross-fetch@3.1.8/denonext/cross-fetch.mjs\": \"8fba9e7c3fbaf0d2168beb63ce0cd21b5bfbfbd77e2fcbf8d957d533a71222f6\",\n    \"https://esm.sh/v133/es5-ext@0.10.62/denonext/global.js\": \"2f51d9acef1f761faaa542da919b3c747744ea29fe709d0a904fd531716a93d6\",\n    \"https://esm.sh/v133/websocket@1.0.34/denonext/websocket.mjs\": \"81cb3821c85e307548b6024cd4a56ca9519f3b0a68fc258a60f06a995fd11517\"\n  }\n}\n","path":"/toggleRefund","schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["auth","orderId"],"properties":{"auth":{"type":"object","format":"resource-supabase","default":null,"description":""},"orderId":{"type":"string","default":null,"description":""}}},"content":"import { Resource } from \"https://deno.land/x/windmill@v1.70.1/mod.ts\";\nimport { createClient, SupabaseClient } from \"https://esm.sh/@supabase/supabase-js@2.10.0\";\n\nexport async function main(\n  auth: Resource<\"supabase\">,\n  orderId: string\n) {\n  const client = createClient(auth.url, auth.key);\n\n  const { data } = await client.from('orders').select('refunded').eq('id', orderId);\n  if(data[0]?.refunded) {\n    return `Order with ID \"${orderId}\" is already refunded`;\n  }\n\n  const refunded = await setOrderRefundedValue(client, orderId, true);\n  \n  const promises = (refunded.product_ids as string[]).map(id => {\n    return client\n      .from('products')\n      .select('id, quantity')\n      .eq('id', id);\n  });\n  try {\n    const products = await Promise.all(promises);\n    const productValues = [];\n    for(const p of products) {\n      if(p.error) {\n        throw Error(p.error);\n      }\n      const { id, quantity } = p.data[0];\n      productValues.push({ id, quantity });\n    }\n    return await revertProductQuantities(client, productValues);\n  } catch (err: any) {\n    await setOrderRefundedValue(client, orderId, false);\n    throw Error(`Reverted refund because:\\n${err}`);\n  }\n}\n\nasync function setOrderRefundedValue(client: SupabaseClient<any, \"public\", any>, id: string, value: boolean) {\n  const { data, error } = await client\n    .from('orders')\n    .update({refunded: value})\n    .eq('id', id)\n    .select();\n\n  if(error || !data.length) {\n    throw Error(error || `Couldn't find order with ID \"${id}\"`);\n  }\n\n  return data[0];\n}\n\nasync function revertProductQuantities(client: SupabaseClient<any, \"public\", any>, products: {id: string, quantity: number}[]) {\n  const promises = products.map(({id, quantity}) => {\n    return client\n      .from('products')\n      .update({quantity: quantity + 1})\n      .eq('id', id)\n      .select();\n  })\n\n  return await Promise.all(promises);\n}","language":"deno"}},"fieldType":"any","recomputeOnInputChanged":true}},{"id":"ac_b","card":false,"type":"buttoncomponent","customCss":{"button":{"class":"","style":""}},"configuration":{"goto":{"type":"static","value":"","tooltip":"Go to an url on success if not empty","fieldType":"text"},"size":{"type":"static","value":"xs","fieldType":"select","optionValuesKey":"buttonSizeOptions"},"color":{"type":"static","value":"light","fieldType":"select","optionValuesKey":"buttonColorOptions"},"label":{"type":"static","value":"Go to user","fieldType":"text"},"onError":{"type":"oneOf","selected":"errorOverlay","configuration":{"open":{"id":{"type":"static","value":""}},"close":{"id":{"type":"static","value":""}},"setTab":{"setTab":{"type":"static","value":[]}},"gotoUrl":{"url":{"type":"static","value":""},"newTab":{"type":"static","value":true}},"errorOverlay":{},"sendErrorToast":{"message":{"type":"static","value":""},"appendError":{"type":"static","value":true}}}},"disabled":{"expr":"false","type":"eval","fieldType":"boolean"},"afterIcon":{"type":"static","value":"","fieldType":"icon-select","onlyStatic":true},"onSuccess":{"type":"oneOf","selected":"none","configuration":{"none":{},"open":{"id":{"type":"static","value":""}},"close":{"id":{"type":"static","value":""}},"setTab":{"setTab":{"type":"static","value":[]}},"gotoUrl":{"url":{"type":"static","value":""},"newTab":{"type":"static","value":true}},"openModal":{"modalId":{"type":"static","value":""}},"sendToast":{"message":{"type":"static","value":""}},"closeModal":{"modalId":{"type":"static","value":""}}}},"beforeIcon":{"type":"static","value":"User","fieldType":"icon-select","onlyStatic":true},"gotoNewTab":{"type":"static","value":true,"tooltip":"Go to create a new tab","fieldType":"boolean"},"fillContainer":{"type":"static"},"triggerOnAppLoad":{"type":"static"}},"componentInput":{"type":"runnable","fields":{},"runnable":{"name":"Go to user tab","type":"runnableByName","inlineScript":{"path":"u/faton/newapp/Go_to_user_tab","content":"setTab('a', 2)","language":"frontend","suggestedRefreshOn":[]}},"fieldType":"any","autoRefresh":false,"recomputeOnInputChanged":false}}],"configuration":{"search":{"type":"static","value":"By Component","fieldType":"select","onlyStatic":true,"optionValuesKey":"tableSearchOptions"},"columnDefs":{"type":"static","value":[]},"pagination":{"type":"oneOf","selected":"auto","configuration":{"auto":{"pageSize":{"type":"static","value":20}},"manual":{"pageCount":{"type":"static","value":-1}}}},"initialState":{"type":"static"},"downloadButton":{"type":"static"}},"componentInput":{"type":"runnable","value":[{"id":"e4e3f68c-dbf0-491f-ac0b-85ad984bda73","address":"7-7-7 Friedrichstrasse, Berlin, Germany","total_price":499970},{"id":"9be54e0b-5dba-40ef-9c5f-dd1a4109bd9b","address":"9-9-9 Champs-Elysees, Paris, France","total_price":869950},{"id":"f1b27527-8ccc-4ebc-8d80-700347f996e2","address":"5-5-5 Queen Road, Central, Hong Kong","total_price":932920},{"id":"0d025f0f-1035-43a4-bf72-d4ffba9ce113","address":"123 Main St, Los Angeles, USA","total_price":32990},{"id":"ae685d52-fb68-4bb6-8b6c-5476c897779e","address":"10 George St, Sydney, Australia","total_price":582950},{"id":"b71dd585-eaf5-41bf-9861-f11ad7d7abe6","address":"8-8-8 Bahnhofstrasse, Zurich, Switzerland","total_price":452960},{"id":"e5ab58d5-67f0-478e-9b7b-b89c4719fdca","address":"3-3-3 Nguyen Hue, Ho Chi Minh City, Vietnam","total_price":362960},{"id":"52db83b0-3af6-4cbd-b502-9fc5a0e136fd","address":"6-6-6 Zhongxiao East Rd, Taipei, Taiwan","total_price":422980},{"id":"429b7a8f-0dc2-4f01-a117-9d619edc81e0","address":"1-1-1 Shibuya, Tokyo, Japan","total_price":519950},{"id":"93206697-22e9-4f24-895c-dfb17952081b","address":"5-5-5 Queen Road, Central, Hong Kong","total_price":732930},{"id":"a338c3ca-e624-4546-a423-0cccb2aefc4e","address":"6-6-6 Zhongxiao East Rd, Taipei, Taiwan","total_price":679960},{"id":"0e75badc-4b62-4742-a31f-99cc594249f9","address":"4-4-4 Gran Via, Madrid, Spain","total_price":352950},{"id":"b5f691e1-639c-4d9e-a127-32284d9af0ab","address":"10 George St, Sydney, Australia","total_price":32990},{"id":"793c68fc-8551-42e3-85af-2b7c13e30aa3","address":"10 George St, Sydney, Australia","total_price":299990},{"id":"5abca216-bb6b-4ee9-8e75-7cf484fa728b","address":"10 George St, Sydney, Australia","total_price":79990},{"id":"bf7907a8-a781-4b39-94a8-64c646407d8f","address":"123 Main St, Los Angeles, USA","total_price":32990},{"id":"55c37905-14a4-4dbd-8213-2f921cc4ac39","address":"9-9-9 Champs-Elysees, Paris, France","total_price":409950},{"id":"266ffd1b-8193-4ed7-9919-6a48d10b2ab9","address":"1-1-1 Shibuya, Tokyo, Japan","total_price":299990},{"id":"c80b68a0-1ab3-4051-97b7-1056c17f13b1","address":"9-9-9 Champs-Elysees, Paris, France","total_price":1192920},{"id":"205936a5-1d62-4959-9879-c1c50f8261af","address":"5-5-5 Queen Road, Central, Hong Kong","total_price":392950},{"id":"ea44cea3-55f0-45b9-b298-b19d1b56c90d","address":"123 Main St, New York, USA","total_price":959930},{"id":"e1959a5e-1923-454a-a94f-a94fafc0ccf1","address":"9-9-9 Champs-Elysees, Paris, France","total_price":539970},{"id":"b3c7c1ae-f9e4-453d-bd14-90e2faadd73f","address":"123 Main St, New York, USA","total_price":1009950}],"fields":{"orders":{"type":"connected","value":null,"fieldType":"array","connection":{"path":"result.data","componentId":"bg_2"}}},"runnable":{"name":"selectOrdersColumns","type":"runnableByName","inlineScript":{"lock":"{\n  \"version\": \"2\",\n  \"remote\": {}\n}\n","path":"u/faton/newapp/selectOrdersColumns","schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["orders"],"properties":{"orders":{"type":"array","items":{"type":"string"},"default":null,"description":""}}},"content":"export async function main(orders: any[]) {\n  return orders?.map((order) => {\n    const {  total_price, country, city, address, id } = order;\n    return { id, total_price, address: `${address}, ${city}, ${country}`};\n  });\n}\n","language":"deno"}},"fieldType":"array","autoRefresh":true,"subFieldType":"object","recomputeOnInputChanged":true}}}],"ab-1":[{"3":{"h":8,"w":2,"x":0,"y":0,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":17,"w":12,"x":0,"y":0,"id":"ad","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"ad","data":{"id":"ad","card":false,"type":"containercomponent","softWrap":true,"customCss":{"container":{"class":"m-2","style":""}},"configuration":{"noPadding":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true}},"numberOfSubgrids":1}}],"ad-0":[{"3":{"h":1,"w":1,"x":0,"y":10,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":12,"x":0,"y":0,"id":"af","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"af","data":{"id":"af","card":false,"type":"textcomponent","softWrap":false,"customCss":{"text":{"class":"","style":""}},"configuration":{"style":{"type":"static","value":"Label","fieldType":"select","onlyStatic":true,"optionValuesKey":"textStyleOptions"},"tooltip":{"type":"static"},"copyButton":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true}},"componentInput":{"eval":"Order items","type":"template","value":"Hello ${ctx.username}","fieldType":"template"},"verticalAlignment":"center","horizontalAlignment":"left"}},{"3":{"h":10,"w":3,"x":0,"y":0,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":15,"w":12,"x":0,"y":1,"id":"ae","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"ae","data":{"id":"ae","card":true,"type":"tablecomponent","customCss":{"container":{"class":"","style":""},"tableBody":{"class":"","style":""},"tableFooter":{"class":"","style":""},"tableHeader":{"class":"","style":""}},"actionButtons":[{"id":"ae_a","card":false,"type":"buttoncomponent","customCss":{"button":{"class":"","style":""}},"configuration":{"goto":{"type":"static","value":"","tooltip":"Go to an url on success if not empty","fieldType":"text"},"size":{"type":"static","value":"xs","fieldType":"select","optionValuesKey":"buttonSizeOptions"},"color":{"type":"static","value":"dark","fieldType":"select","optionValuesKey":"buttonColorOptions"},"label":{"type":"static","value":"Go to product","fieldType":"text"},"onError":{"type":"oneOf","selected":"errorOverlay","configuration":{"open":{"id":{"type":"static","value":""}},"close":{"id":{"type":"static","value":""}},"setTab":{"setTab":{"type":"static","value":[]}},"gotoUrl":{"url":{"type":"static","value":""},"newTab":{"type":"static","value":true}},"errorOverlay":{},"sendErrorToast":{"message":{"type":"static","value":""},"appendError":{"type":"static","value":true}}}},"disabled":{"expr":"false","type":"eval","fieldType":"boolean"},"afterIcon":{"type":"static","value":"","fieldType":"icon-select","onlyStatic":true},"onSuccess":{"type":"oneOf","selected":"none","configuration":{"none":{},"open":{"id":{"type":"static","value":""}},"close":{"id":{"type":"static","value":""}},"setTab":{"setTab":{"type":"static","value":[]}},"gotoUrl":{"url":{"type":"static","value":""},"newTab":{"type":"static","value":true}},"openModal":{"modalId":{"type":"static","value":""}},"sendToast":{"message":{"type":"static","value":""}},"closeModal":{"modalId":{"type":"static","value":""}}}},"beforeIcon":{"type":"static","value":"ArrowUpRight","fieldType":"icon-select","onlyStatic":true},"gotoNewTab":{"type":"static","value":true,"tooltip":"Go to create a new tab","fieldType":"boolean"},"fillContainer":{"type":"static"},"triggerOnAppLoad":{"type":"static"}},"componentInput":{"type":"runnable","fields":{},"runnable":{"name":"Go to product tab","type":"runnableByName","inlineScript":{"path":"u/faton/newapp/Go_to_product_tab","content":"setTab('a', 0)","language":"frontend","suggestedRefreshOn":[]}},"fieldType":"any","autoRefresh":false,"recomputeOnInputChanged":false}}],"configuration":{"search":{"type":"static","value":"Disabled","fieldType":"select","onlyStatic":true,"optionValuesKey":"tableSearchOptions"},"columnDefs":{"type":"static","value":[]},"pagination":{"type":"oneOf","selected":"auto","configuration":{"auto":{"pageSize":{"type":"static","value":20}},"manual":{"pageCount":{"type":"static","value":-1}}}},"initialState":{"type":"static"},"downloadButton":{"type":"static"}},"componentInput":{"type":"runnable","value":[{"price":49990,"title":"PlayStation 5","quantity":1,"description":"The latest gaming console from Sony"},{"price":299990,"title":"Sony Alpha A7R IV","quantity":1,"description":"High-end mirrorless camera with impressive image quality"},{"price":99990,"title":"iPhone 14","quantity":1,"description":"The latest smartphone from Apple"},{"price":29990,"title":"Nintendo Switch","quantity":1,"description":"Hybrid gaming console from Nintendo"},{"price":389990,"title":"Canon EOS R5","quantity":1,"description":"Professional mirrorless camera with high resolution"}],"fields":{"orders":{"type":"connected","value":null,"fieldType":"array","connection":{"path":"result.data","componentId":"bg_2"}},"products":{"type":"connected","value":null,"fieldType":"array","connection":{"path":"result.data","componentId":"bg_0"}},"selectedOrderIndex":{"type":"connected","value":null,"fieldType":"number","connection":{"path":"selectedRowIndex","componentId":"ac"}}},"runnable":{"name":"getOrderProducts","type":"runnableByName","inlineScript":{"lock":"{\n  \"version\": \"2\",\n  \"remote\": {}\n}\n","path":"u/faton/newapp/getOrderProducts","schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["selectedOrderIndex","orders","products"],"properties":{"orders":{"type":"array","items":{"type":"string"},"default":null},"products":{"type":"array","items":{"type":"string"},"default":null},"selectedOrderIndex":{"type":"number","default":null}}},"content":"// import * as wmill from \"https://deno.land/x/windmill@v1.72.0/mod.ts\"\n\nexport async function main(\n  selectedOrderIndex: number,\n  orders: any[],\n  products: any[],\n) {\n  if (!orders) {\n    return [];\n  }\n\n  return orders[selectedOrderIndex].product_ids.map((id) => {\n    const product = products?.find((p) => p.id === id);\n\n    if (!product) {\n      return {};\n    }\n\n    const { title, description, price } = product;\n\n    return { title, description, price, quantity: 1 };\n  });\n}\n","language":"deno"}},"fieldType":"array","autoRefresh":true,"subFieldType":"object","recomputeOnInputChanged":true}}}],"al-0":[{"3":{"h":1,"w":1,"x":2,"y":0,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":12,"x":0,"y":0,"id":"an","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"an","data":{"id":"an","card":false,"type":"textcomponent","softWrap":false,"customCss":{"text":{"class":"","style":""}},"configuration":{"style":{"type":"static","value":"Label","fieldType":"select","onlyStatic":true,"optionValuesKey":"textStyleOptions"},"tooltip":{"type":"static"},"copyButton":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true}},"componentInput":{"eval":"Select a user","type":"template","value":"Hello ${ctx.username}","fieldType":"template"},"verticalAlignment":"center","horizontalAlignment":"left"}},{"3":{"h":1,"w":2,"x":0,"y":0,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":12,"x":0,"y":1,"id":"am","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"am","data":{"id":"am","card":false,"type":"selectcomponent","softWrap":true,"customCss":{"input":{"style":""}},"configuration":{"items":{"type":"connected","value":[{"label":"Foo","value":"foo"},{"label":"Bar","value":"bar"}],"fieldType":"array","connection":{"path":"result","componentId":"bg_4"},"subFieldType":"object"},"create":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true},"disabled":{"type":"static"},"fullWidth":{"type":"static"},"placeholder":{"type":"static","value":"Select an item","fieldType":"text","onlyStatic":true},"defaultValue":{"type":"static","fieldType":"object"},"preselectFirst":{"type":"static"}},"verticalAlignment":"center"}},{"3":{"h":10,"w":3,"x":0,"y":1,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":17,"w":12,"x":0,"y":2,"id":"ao","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"ao","data":{"id":"ao","card":true,"type":"tablecomponent","customCss":{"container":{"class":"","style":""},"tableBody":{"class":"","style":""},"tableFooter":{"class":"","style":""},"tableHeader":{"class":"","style":""}},"actionButtons":[{"id":"ao_a","card":false,"type":"buttoncomponent","customCss":{"button":{"class":"","style":""}},"recomputeIds":["ap"],"configuration":{"goto":{"type":"static","value":"","tooltip":"Go to an url on success if not empty","fieldType":"text"},"size":{"type":"static","value":"xs","fieldType":"select","optionValuesKey":"buttonSizeOptions"},"color":{"type":"static","value":"blue","fieldType":"select","optionValuesKey":"buttonColorOptions"},"label":{"type":"static","value":"Add","fieldType":"text"},"onError":{"type":"oneOf","selected":"errorOverlay","configuration":{"open":{"id":{"type":"static","value":""}},"close":{"id":{"type":"static","value":""}},"setTab":{"setTab":{"type":"static","value":[]}},"gotoUrl":{"url":{"type":"static","value":""},"newTab":{"type":"static","value":true}},"errorOverlay":{},"sendErrorToast":{"message":{"type":"static","value":""},"appendError":{"type":"static","value":true}}}},"disabled":{"expr":"false","type":"eval","fieldType":"boolean"},"afterIcon":{"type":"static","value":"","fieldType":"icon-select","onlyStatic":true},"onSuccess":{"type":"oneOf","selected":"none","configuration":{"none":{},"open":{"id":{"type":"static","value":""}},"close":{"id":{"type":"static","value":""}},"setTab":{"setTab":{"type":"static","value":[]}},"gotoUrl":{"url":{"type":"static","value":""},"newTab":{"type":"static","value":true}},"openModal":{"modalId":{"type":"static","value":""}},"sendToast":{"message":{"type":"static","value":""}},"closeModal":{"modalId":{"type":"static","value":""}}}},"beforeIcon":{"type":"static","value":"PlusCircle","fieldType":"icon-select","onlyStatic":true},"gotoNewTab":{"type":"static","value":true,"tooltip":"Go to create a new tab","fieldType":"boolean"},"fillContainer":{"type":"static"},"triggerOnAppLoad":{"type":"static"}},"componentInput":{"type":"runnable","fields":{},"runnable":{"name":"addToCart","type":"runnableByName","inlineScript":{"path":"u/faton/newapp/addToCart","content":"\nif (state.cart) {\n  state.cart = [ao.selectedRow.id, ...state.cart]\n} else {\n  state.cart = [ao.selectedRow.id]\n}\n","language":"frontend","suggestedRefreshOn":[{"id":"state","key":"cart"},{"id":"ao","key":"selectedRow"}]}},"fieldType":"any","autoRefresh":false,"recomputeOnInputChanged":false}}],"configuration":{"search":{"type":"static","value":"By Component","fieldType":"select","onlyStatic":true,"optionValuesKey":"tableSearchOptions"},"columnDefs":{"type":"static","value":[{"type":"text","field":"id","headerName":"New column","hideColumn":true},{"type":"text","field":"image_url","headerName":"New column","hideColumn":true}]},"pagination":{"type":"oneOf","selected":"auto","configuration":{"auto":{"pageSize":{"type":"static","value":20}},"manual":{"pageCount":{"type":"static","value":-1}}}},"initialState":{"type":"static"},"downloadButton":{"type":"static"}},"componentInput":{"type":"connected","value":[{"id":1,"age":42,"name":"A cell with a long name"},{"id":2,"age":84,"name":"A briefer cell"}],"fieldType":"array","connection":{"path":"result","componentId":"j"},"subFieldType":"object"}}}],"al-1":[{"3":{"h":1,"w":1,"x":0,"y":10,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":12,"x":0,"y":0,"id":"aq","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"aq","data":{"id":"aq","card":false,"type":"textcomponent","softWrap":false,"customCss":{"text":{"class":"","style":""}},"configuration":{"style":{"type":"static","value":"Label","fieldType":"select","onlyStatic":true,"optionValuesKey":"textStyleOptions"},"copyButton":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true}},"componentInput":{"eval":"Cart","type":"template","value":"Hello ${ctx.username}","fieldType":"template"},"verticalAlignment":"center","horizontalAlignment":"left"}},{"3":{"h":10,"w":3,"x":0,"y":0,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":14,"w":12,"x":0,"y":1,"id":"ap","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"ap","data":{"id":"ap","card":true,"type":"tablecomponent","customCss":{"container":{"class":"","style":""},"tableBody":{"class":"","style":""},"tableFooter":{"class":"","style":""},"tableHeader":{"class":"","style":""}},"actionButtons":[{"id":"ap_a","card":false,"type":"buttoncomponent","customCss":{"button":{"class":"","style":""}},"recomputeIds":["ap"],"configuration":{"goto":{"type":"static","value":"","tooltip":"Go to an url on success if not empty","fieldType":"text"},"size":{"type":"static","value":"xs","fieldType":"select","optionValuesKey":"buttonSizeOptions"},"color":{"type":"static","value":"red","fieldType":"select","optionValuesKey":"buttonColorOptions"},"label":{"type":"static","value":"Remove","fieldType":"text"},"onError":{"type":"oneOf","selected":"errorOverlay","configuration":{"open":{"id":{"type":"static","value":""}},"close":{"id":{"type":"static","value":""}},"setTab":{"setTab":{"type":"static","value":[]}},"gotoUrl":{"url":{"type":"static","value":""},"newTab":{"type":"static","value":true}},"errorOverlay":{},"sendErrorToast":{"message":{"type":"static","value":""},"appendError":{"type":"static","value":true}}}},"disabled":{"expr":"false","type":"eval","fieldType":"boolean"},"afterIcon":{"type":"static","value":"","fieldType":"icon-select","onlyStatic":true},"onSuccess":{"type":"oneOf","selected":"none","configuration":{"none":{},"open":{"id":{"type":"static","value":""}},"close":{"id":{"type":"static","value":""}},"setTab":{"setTab":{"type":"static","value":[]}},"gotoUrl":{"url":{"type":"static","value":""},"newTab":{"type":"static","value":true}},"openModal":{"modalId":{"type":"static","value":""}},"sendToast":{"message":{"type":"static","value":""}},"closeModal":{"modalId":{"type":"static","value":""}}}},"beforeIcon":{"type":"static","value":"","fieldType":"icon-select","onlyStatic":true},"gotoNewTab":{"type":"static","value":true,"tooltip":"Go to create a new tab","fieldType":"boolean"},"fillContainer":{"type":"static"},"triggerOnAppLoad":{"type":"static"}},"componentInput":{"type":"runnable","fields":{},"runnable":{"name":"Remove item from cart","type":"runnableByName","inlineScript":{"path":"u/faton/newapp/Remove_item_from_cart","content":"if (state.cart) {\n  state.cart.splice(ap.selectedRowIndex, 1)\n}","language":"frontend","suggestedRefreshOn":[{"id":"state","key":"cart"},{"id":"ap","key":"selectedRowIndex"}]}},"fieldType":"any","autoRefresh":true,"recomputeOnInputChanged":true}}],"configuration":{"search":{"type":"static","value":"Disabled","fieldType":"select","onlyStatic":true,"optionValuesKey":"tableSearchOptions"},"columnDefs":{"type":"static","value":[{"type":"text","field":"id","headerName":"New column","hideColumn":true},{"type":"text","field":"image_url","headerName":"New column","hideColumn":true},{"type":"text","field":"description","headerName":"New column","hideColumn":true},{"type":"text","field":"newColumn","headerName":"New column"}]},"pagination":{"type":"oneOf","selected":"auto","configuration":{"auto":{"pageSize":{"type":"static","value":20}},"manual":{"pageCount":{"type":"static","value":-1}}}},"initialState":{"type":"static"},"downloadButton":{"type":"static"}},"componentInput":{"type":"runnable","value":[],"fields":{},"runnable":{"name":"loadCartFromState","type":"runnableByName","inlineScript":{"path":"u/faton/newapp/loadCartFromState","content":"\nreturn state.cart ? state.cart.map(id => j.result.find(x => x.id === id)) : []","language":"frontend","suggestedRefreshOn":[{"id":"state","key":"cart"},{"id":"j","key":"result"}]}},"fieldType":"array","autoRefresh":true,"subFieldType":"object","recomputeOnInputChanged":true}}},{"3":{"h":1,"w":1,"x":0,"y":12,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":12,"x":0,"y":15,"id":"ba","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"ba","data":{"id":"ba","card":false,"type":"textcomponent","softWrap":false,"customCss":{"text":{"class":"","style":""}},"configuration":{"style":{"type":"static","value":"Label","fieldType":"select","onlyStatic":true,"optionValuesKey":"textStyleOptions"},"copyButton":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true}},"componentInput":{"eval":"Total: ${ap.result.reduce((accu, curr) => accu + curr.price/100, 0)} CHF","type":"template","value":"Hello ${ctx.username}","fieldType":"template"},"verticalAlignment":"center","horizontalAlignment":"right"}},{"3":{"h":1,"w":1,"x":0,"y":11,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":3,"x":0,"y":18,"id":"at","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"at","data":{"id":"at","card":false,"type":"buttoncomponent","softWrap":true,"customCss":{"button":{"class":"","style":""}},"recomputeIds":["ap"],"configuration":{"goto":{"type":"static","value":"","tooltip":"Go to an url on success if not empty","fieldType":"text"},"size":{"type":"static","value":"xs","fieldType":"select","onlyStatic":true,"optionValuesKey":"buttonSizeOptions"},"color":{"type":"static","value":"red","fieldType":"select","onlyStatic":true,"optionValuesKey":"buttonColorOptions"},"label":{"type":"static","value":"Delete cart","fieldType":"text"},"onError":{"type":"oneOf","selected":"errorOverlay","configuration":{"open":{"id":{"type":"static","value":""}},"close":{"id":{"type":"static","value":""}},"setTab":{"setTab":{"type":"static","value":[]}},"gotoUrl":{"url":{"type":"static","value":""},"newTab":{"type":"static","value":true}},"errorOverlay":{},"sendErrorToast":{"message":{"type":"static","value":""},"appendError":{"type":"static","value":true}}}},"disabled":{"expr":"false","type":"eval","fieldType":"boolean"},"afterIcon":{"type":"static","value":"","fieldType":"icon-select","onlyStatic":true},"onSuccess":{"type":"oneOf","selected":"none","configuration":{"none":{},"open":{"id":{"type":"static","value":""}},"close":{"id":{"type":"static","value":""}},"setTab":{"setTab":{"type":"static","value":[]}},"gotoUrl":{"url":{"type":"static","value":""},"newTab":{"type":"static","value":true}},"openModal":{"modalId":{"type":"static","value":""}},"sendToast":{"message":{"type":"static","value":""}},"closeModal":{"modalId":{"type":"static","value":""}}}},"beforeIcon":{"type":"static","value":"Trash","fieldType":"icon-select","onlyStatic":true},"gotoNewTab":{"type":"static","value":true,"tooltip":"Go to create a new tab","fieldType":"boolean"},"fillContainer":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true},"triggerOnAppLoad":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true}},"componentInput":{"type":"runnable","fields":{},"runnable":{"name":"Delete cart","type":"runnableByName","inlineScript":{"path":"u/faton/newapp/Delete_cart","content":"state.cart = []","language":"frontend","suggestedRefreshOn":[{"id":"state","key":"cart"}]}},"fieldType":"any","autoRefresh":false,"recomputeOnInputChanged":false},"verticalAlignment":"center","horizontalAlignment":"left"}},{"3":{"h":1,"w":1,"x":1,"y":10,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":5,"x":7,"y":18,"id":"ar","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"ar","data":{"id":"ar","card":false,"type":"buttoncomponent","softWrap":true,"customCss":{"button":{"class":"","style":""}},"recomputeIds":["bg_6","at"],"configuration":{"goto":{"type":"static","value":"","tooltip":"Go to an url on success if not empty","fieldType":"text"},"size":{"type":"static","value":"xs","fieldType":"select","onlyStatic":true,"optionValuesKey":"buttonSizeOptions"},"color":{"type":"static","value":"dark","fieldType":"select","onlyStatic":true,"optionValuesKey":"buttonColorOptions"},"label":{"type":"static","value":"Checkout","fieldType":"text"},"onError":{"type":"oneOf","selected":"errorOverlay","configuration":{"open":{"id":{"type":"static","value":""}},"close":{"id":{"type":"static","value":""}},"setTab":{"setTab":{"type":"static","value":[]}},"gotoUrl":{"url":{"type":"static","value":""},"newTab":{"type":"static","value":true}},"errorOverlay":{},"sendErrorToast":{"message":{"type":"static","value":""},"appendError":{"type":"static","value":true}}}},"disabled":{"expr":"state.cart?.length === 0","type":"eval","fieldType":"boolean"},"afterIcon":{"type":"static","value":"","fieldType":"icon-select","onlyStatic":true},"onSuccess":{"type":"oneOf","selected":"none","configuration":{"none":{},"open":{"id":{"type":"static","value":""}},"close":{"id":{"type":"static","value":""}},"setTab":{"setTab":{"type":"static","value":[]}},"gotoUrl":{"url":{"type":"static","value":""},"newTab":{"type":"static","value":true}},"openModal":{"modalId":{"type":"static","value":""}},"sendToast":{"message":{"type":"static","value":""}},"closeModal":{"modalId":{"type":"static","value":""}}}},"beforeIcon":{"type":"static","value":"ArrowRight","fieldType":"icon-select","onlyStatic":true},"gotoNewTab":{"type":"static","value":true,"tooltip":"Go to create a new tab","fieldType":"boolean"},"fillContainer":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true},"triggerOnAppLoad":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true}},"componentInput":{"type":"runnable","fields":{},"runnable":{"name":"checkout","type":"runnableByName","inlineScript":{"path":"u/faton/newapp/checkout","schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":[],"properties":{}},"content":"export async function main() {\n  return \"checkout\";\n}\n","language":"deno"}},"fieldType":"any","autoRefresh":false,"recomputeOnInputChanged":false},"verticalAlignment":"center","horizontalAlignment":"right"}}],"aw-0":[{"3":{"h":10,"w":3,"x":0,"y":0,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":19,"w":12,"x":0,"y":0,"id":"aj","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"aj","data":{"id":"aj","card":true,"type":"tablecomponent","customCss":{"container":{"class":"","style":""},"tableBody":{"class":"","style":""},"tableFooter":{"class":"","style":""},"tableHeader":{"class":"","style":""}},"actionButtons":[],"configuration":{"search":{"type":"static","value":"By Component","fieldType":"select","onlyStatic":true,"optionValuesKey":"tableSearchOptions"},"columnDefs":{"type":"static","value":[]},"pagination":{"type":"oneOf","selected":"auto","configuration":{"auto":{"pageSize":{"type":"static","value":20}},"manual":{"pageCount":{"type":"static","value":-1}}}},"initialState":{"type":"static"},"downloadButton":{"type":"static"}},"componentInput":{"type":"connected","value":[{"id":1,"age":42,"name":"A cell with a long name"},{"id":2,"age":84,"name":"A briefer cell"}],"fieldType":"array","connection":{"path":"result.data","componentId":"bg_3"},"subFieldType":"object"}}}],"aw-1":[{"3":{"h":1,"w":1,"x":0,"y":10,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":1,"w":12,"x":0,"y":0,"id":"ay","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"ay","data":{"id":"ay","card":false,"type":"textcomponent","softWrap":false,"customCss":{"text":{"class":"","style":""}},"configuration":{"style":{"type":"static","value":"Label","fieldType":"select","onlyStatic":true,"optionValuesKey":"textStyleOptions"},"copyButton":{"type":"static","value":false,"fieldType":"boolean","onlyStatic":true}},"componentInput":{"eval":"Orders of ${aj.selectedRow.first_name} ${aj.selectedRow.last_name} ","type":"template","value":"Hello ${ctx.username}","fieldType":"template"},"verticalAlignment":"center","horizontalAlignment":"left"}},{"3":{"h":10,"w":3,"x":0,"y":0,"max":{"h":100,"w":3},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"12":{"h":18,"w":12,"x":0,"y":1,"id":"ax","max":{"h":100,"w":12},"min":{"h":1,"w":1},"fixed":false,"draggable":true,"resizable":true,"customDragger":false,"customResizer":false},"id":"ax","data":{"id":"ax","card":true,"type":"tablecomponent","customCss":{"container":{"class":"","style":""},"tableBody":{"class":"","style":""},"tableFooter":{"class":"","style":""},"tableHeader":{"class":"","style":""}},"actionButtons":[{"id":"ax_a","card":false,"type":"buttoncomponent","customCss":{"button":{"class":"","style":""}},"configuration":{"goto":{"type":"static","value":"","tooltip":"Go to an url on success if not empty","fieldType":"text"},"size":{"type":"static","value":"xs","fieldType":"select","optionValuesKey":"buttonSizeOptions"},"color":{"type":"static","value":"dark","fieldType":"select","optionValuesKey":"buttonColorOptions"},"label":{"type":"static","value":"Go to order","fieldType":"text"},"onError":{"type":"oneOf","selected":"errorOverlay","configuration":{"open":{"id":{"type":"static","value":""}},"close":{"id":{"type":"static","value":""}},"setTab":{"setTab":{"type":"static","value":[]}},"gotoUrl":{"url":{"type":"static","value":""},"newTab":{"type":"static","value":true}},"errorOverlay":{},"sendErrorToast":{"message":{"type":"static","value":""},"appendError":{"type":"static","value":true}}}},"disabled":{"expr":"false","type":"eval","fieldType":"boolean"},"afterIcon":{"type":"static","value":"","fieldType":"icon-select","onlyStatic":true},"onSuccess":{"type":"oneOf","selected":"none","configuration":{"none":{},"open":{"id":{"type":"static","value":""}},"close":{"id":{"type":"static","value":""}},"setTab":{"setTab":{"type":"static","value":[]}},"gotoUrl":{"url":{"type":"static","value":""},"newTab":{"type":"static","value":true}},"openModal":{"modalId":{"type":"static","value":""}},"sendToast":{"message":{"type":"static","value":""}},"closeModal":{"modalId":{"type":"static","value":""}}}},"beforeIcon":{"type":"static","value":"","fieldType":"icon-select","onlyStatic":true},"gotoNewTab":{"type":"static","value":true,"tooltip":"Go to create a new tab","fieldType":"boolean"},"fillContainer":{"type":"static"},"triggerOnAppLoad":{"type":"static"}},"componentInput":{"type":"runnable","fields":{},"runnable":{"name":"Go to order tab","type":"runnableByName","inlineScript":{"path":"u/faton/newapp/Go_to_order_tab","content":"setTab('a', 1)","language":"frontend","suggestedRefreshOn":[]}},"fieldType":"any","autoRefresh":false,"recomputeOnInputChanged":false}}],"configuration":{"search":{"type":"static","value":"Disabled","fieldType":"select","onlyStatic":true,"optionValuesKey":"tableSearchOptions"},"columnDefs":{"type":"static","value":[{"type":"text","field":"id","headerName":"New column","hideColumn":true},{"type":"text","field":"product_ids","headerName":"New column","hideColumn":true},{"type":"text","field":"customer_id","headerName":"New column","hideColumn":true},{"type":"text","field":"created_at","headerName":"New column","hideColumn":true}]},"pagination":{"type":"oneOf","selected":"auto","configuration":{"auto":{"pageSize":{"type":"static","value":20}},"manual":{"pageCount":{"type":"static","value":-1}}}},"initialState":{"type":"static"},"downloadButton":{"type":"static"}},"componentInput":{"type":"runnable","value":[{"id":"ea44cea3-55f0-45b9-b298-b19d1b56c90d"},{"id":"b3c7c1ae-f9e4-453d-bd14-90e2faadd73f"}],"fields":{"orders":{"expr":"bg_2.result.data","type":"evalv2","value":[],"fieldType":"array","connections":[{"id":"result","componentId":"bg_2"}]},"customerId":{"type":"connected","value":null,"fieldType":"string","connection":{"path":"selectedRow.id","componentId":"aj"}}},"runnable":{"name":"loadOrderByCustomer","type":"runnableByName","inlineScript":{"path":"u/faton/newapp/loadOrderByCustomer","schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["orders","customerId"],"properties":{"orders":{"type":"array","items":{"type":"object"},"default":null,"description":""},"customerId":{"type":"string","default":null,"description":""}}},"content":"\n\nexport async function main(\n  orders: any[],\n  customerId: string,\n) {\n  \n  return orders?.filter(o => o.customer_id === customerId)\n\n}\n","language":"deno"}},"fieldType":"array","autoRefresh":true,"subFieldType":"object","hideRefreshButton":false,"recomputeOnInputChanged":true}}}]},"fullscreen":true,"norefreshbar":false,"hiddenInlineScripts":[{"name":"loadProducts","type":"runnableByName","fields":{},"autoRefresh":true,"inlineScript":{"path":"u/faton/newapp/loadProducts","schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":[],"properties":{}},"content":"export async function main() {\n  return {\n    \"data\": [\n      {\n        \"id\": \"829ca080-5630-4562-9d5e-7611199dc669\",\n        \"price\": 49990,\n        \"title\": \"Xbox Series X\",\n        \"quantity\": 56,\n        \"image_url\": \"https://m.media-amazon.com/images/I/61JGKhqxHxL.jpg\",\n        \"description\": \"Microsoft gaming console with powerful hardware\",\n      },\n      {\n        \"id\": \"c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db\",\n        \"price\": 99990,\n        \"title\": \"iPhone 14\",\n        \"quantity\": 60,\n        \"image_url\":\n          \"https://store.storeimages.cdn-apple.com/4668/as-images.apple.com/is/iphone-13-family-hero?wid=940&hei=1112&fmt=png-alpha&.v=1645036276543\",\n        \"description\": \"The latest smartphone from Apple\",\n      },\n      {\n        \"id\": \"89c0a336-1343-4812-ac34-e4bb8e2735aa\",\n        \"price\": 29990,\n        \"title\": \"Nintendo Switch\",\n        \"quantity\": 55,\n        \"image_url\":\n          \"https://media.wired.com/photos/59849154ca110e53e806cef1/16:9/w_2148,h_1208,c_limit/nintendo-switch2_HP.jpg\",\n        \"description\": \"Hybrid gaming console from Nintendo\",\n      },\n      {\n        \"id\": \"f991898d-cb27-4ac7-b10c-0b9050ce104c\",\n        \"price\": 199990,\n        \"title\": \"MacBook Pro\",\n        \"quantity\": 37,\n        \"image_url\":\n          \"https://store.storeimages.cdn-apple.com/4982/as-images.apple.com/is/refurb-mbp14-space-m1-2021?wid=1144&hei=1144&fmt=jpeg&qlt=90&.v=1638575247000\",\n        \"description\": \"Apple laptop with high performance\",\n      },\n      {\n        \"id\": \"b3e864c8-7fe3-4270-89e9-54c1203885db\",\n        \"price\": 389990,\n        \"title\": \"Canon EOS R5\",\n        \"quantity\": 19,\n        \"image_url\":\n          \"https://www.samys.com/images/product/main/S-066987x2000.jpg\",\n        \"description\": \"Professional mirrorless camera with high resolution\",\n      },\n      {\n        \"id\": \"06dfcbdc-f256-4c83-8022-5e70a07a2d91\",\n        \"price\": 79990,\n        \"title\": \"Samsung Galaxy S23\",\n        \"quantity\": 32,\n        \"image_url\":\n          \"https://image-us.samsung.com/us/smartphones/galaxy-s21/Gallery-images-Palette/O1-Grey/PDP-O1-Grey-lockup-01-1600x1200.jpg\",\n        \"description\": \"A powerful Android phone\",\n      },\n      {\n        \"id\": \"2e120bb2-8366-4192-b04e-818afbe8e77a\",\n        \"price\": 32990,\n        \"title\": \"Bose QuietComfort 45\",\n        \"quantity\": 50,\n        \"image_url\": \"https://m.media-amazon.com/images/I/51JbsHSktkL.jpg\",\n        \"description\":\n          \"Noise-cancelling headphones with excellent sound quality\",\n      },\n      {\n        \"id\": \"354f6afd-43ac-4321-b1bc-0b5e5adcb4fc\",\n        \"price\": 49990,\n        \"title\": \"PlayStation 5\",\n        \"quantity\": 66,\n        \"image_url\":\n          \"https://assets.reedpopcdn.com/playstation-5-review-digitalfoundry-1604678146723.jpg/BROK/thumbnail/1600x900/quality/100/playstation-5-review-digitalfoundry-1604678146723.jpg\",\n        \"description\": \"The latest gaming console from Sony\",\n      },\n      {\n        \"id\": \"2128adca-7fc6-44bd-800c-dc115df6ace5\",\n        \"price\": 139990,\n        \"title\": \"Surface Laptop 4\",\n        \"quantity\": 39,\n        \"image_url\":\n          \"https://img-prod-cms-rt-microsoft-com.akamaized.net/cms/api/am/imageFileData/RE4LEgb?ver=421a&q=90&m=6&h=705&w=1253&b=%23FFFFFFFF&f=jpg&o=f&p=140&aim=true\",\n        \"description\": \"Microsoft laptop with excellent battery life\",\n      },\n      {\n        \"id\": \"ccee43dc-27e0-40a8-b768-b09579b0c6cf\",\n        \"price\": 299990,\n        \"title\": \"Sony Alpha A7R IV\",\n        \"quantity\": 20,\n        \"image_url\":\n          \"https://www.sony.hu/image/88baadceb434e99fb6f0a6acaa134700?fmt=pjpeg&wid=1014&hei=396&bgcolor=F1F5F9&bgc=F1F5F9\",\n        \"description\":\n          \"High-end mirrorless camera with impressive image quality\",\n      },\n    ],\n  };\n}\n","language":"deno"},"noBackendValue":{"data":[{"id":"06dfcbdc-f256-4c83-8022-5e70a07a2d91","price":79990,"title":"Samsung Galaxy S23","quantity":27,"image_url":"https://image-us.samsung.com/us/smartphones/galaxy-s21/Gallery-images-Palette/O1-Grey/PDP-O1-Grey-lockup-01-1600x1200.jpg","description":"A powerful Android phone"},{"id":"f991898d-cb27-4ac7-b10c-0b9050ce104c","price":199990,"title":"MacBook Pro","quantity":30,"image_url":"https://store.storeimages.cdn-apple.com/4982/as-images.apple.com/is/refurb-mbp14-space-m1-2021?wid=1144&hei=1144&fmt=jpeg&qlt=90&.v=1638575247000","description":"Apple laptop with high performance"},{"id":"829ca080-5630-4562-9d5e-7611199dc669","price":49990,"title":"Xbox Series X","quantity":50,"image_url":"https://m.media-amazon.com/images/I/61JGKhqxHxL.jpg","description":"Microsoft gaming console with powerful hardware"},{"id":"354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","price":49990,"title":"PlayStation 5","quantity":58,"image_url":"https://assets.reedpopcdn.com/playstation-5-review-digitalfoundry-1604678146723.jpg/BROK/thumbnail/1600x900/quality/100/playstation-5-review-digitalfoundry-1604678146723.jpg","description":"The latest gaming console from Sony"},{"id":"89c0a336-1343-4812-ac34-e4bb8e2735aa","price":29990,"title":"Nintendo Switch","quantity":43,"image_url":"https://media.wired.com/photos/59849154ca110e53e806cef1/16:9/w_2148,h_1208,c_limit/nintendo-switch2_HP.jpg","description":"Hybrid gaming console from Nintendo"},{"id":"c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","price":99990,"title":"iPhone 14","quantity":48,"image_url":"https://store.storeimages.cdn-apple.com/4668/as-images.apple.com/is/iphone-13-family-hero?wid=940&hei=1112&fmt=png-alpha&.v=1645036276543","description":"The latest smartphone from Apple"},{"id":"ccee43dc-27e0-40a8-b768-b09579b0c6cf","price":299990,"title":"Sony Alpha A7R IV","quantity":15,"image_url":"https://www.sony.hu/image/88baadceb434e99fb6f0a6acaa134700?fmt=pjpeg&wid=1014&hei=396&bgcolor=F1F5F9&bgc=F1F5F9","description":"High-end mirrorless camera with impressive image quality"},{"id":"2128adca-7fc6-44bd-800c-dc115df6ace5","price":139990,"title":"Surface Laptop 4","quantity":27,"image_url":"https://img-prod-cms-rt-microsoft-com.akamaized.net/cms/api/am/imageFileData/RE4LEgb?ver=421a&q=90&m=6&h=705&w=1253&b=%23FFFFFFFF&f=jpg&o=f&p=140&aim=true","description":"Microsoft laptop with excellent battery life"},{"id":"b3e864c8-7fe3-4270-89e9-54c1203885db","price":389990,"title":"Canon EOS R5","quantity":11,"image_url":"https://www.samys.com/images/product/main/S-066987x2000.jpg","description":"Professional mirrorless camera with high resolution"},{"id":"2e120bb2-8366-4192-b04e-818afbe8e77a","price":32990,"title":"Bose QuietComfort 45","quantity":37,"image_url":"https://m.media-amazon.com/images/I/51JbsHSktkL.jpg","description":"Noise-cancelling headphones with excellent sound quality"}],"count":null,"error":null,"status":200,"statusText":"OK"},"recomputeOnInputChanged":true},{"name":"Background Runnable 1","type":"runnableByName","fields":{},"hidden":true},{"name":"loadOrders","type":"runnableByName","fields":{},"autoRefresh":true,"inlineScript":{"path":"u/faton/newapp/loadOrders","schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":[],"properties":{}},"content":"export async function main() {\n  return {\n    \"data\": [\n      {\n        \"id\": \"0e75badc-4b62-4742-a31f-99cc594249f9\",\n        \"city\": \"Madrid\",\n        \"address\": \"4-4-4 Gran Via\",\n        \"country\": \"Spain\",\n        \"refunded\": true,\n        \"created_at\": \"2023-01-27T17:48:14.525578+00:00\",\n        \"customer_id\": \"47be624c-e5ba-4c10-b591-46b6d1324c56\",\n        \"product_ids\": [\n          \"2e120bb2-8366-4192-b04e-818afbe8e77a\",\n          \"c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db\",\n          \"89c0a336-1343-4812-ac34-e4bb8e2735aa\",\n          \"2128adca-7fc6-44bd-800c-dc115df6ace5\",\n          \"354f6afd-43ac-4321-b1bc-0b5e5adcb4fc\",\n        ],\n        \"total_price\": 352950,\n      },\n      {\n        \"id\": \"b71dd585-eaf5-41bf-9861-f11ad7d7abe6\",\n        \"city\": \"Zurich\",\n        \"address\": \"8-8-8 Bahnhofstrasse\",\n        \"country\": \"Switzerland\",\n        \"refunded\": true,\n        \"created_at\": \"2022-08-22T00:56:59.89963+00:00\",\n        \"customer_id\": \"484cf93a-d496-4aca-9efe-c57f97b979a6\",\n        \"product_ids\": [\n          \"06dfcbdc-f256-4c83-8022-5e70a07a2d91\",\n          \"2e120bb2-8366-4192-b04e-818afbe8e77a\",\n          \"f991898d-cb27-4ac7-b10c-0b9050ce104c\",\n          \"2128adca-7fc6-44bd-800c-dc115df6ace5\",\n        ],\n        \"total_price\": 452960,\n      },\n      {\n        \"id\": \"c80b68a0-1ab3-4051-97b7-1056c17f13b1\",\n        \"city\": \"Paris\",\n        \"address\": \"9-9-9 Champs-Elysees\",\n        \"country\": \"France\",\n        \"refunded\": true,\n        \"created_at\": \"2023-01-13T01:17:46.786771+00:00\",\n        \"customer_id\": \"5bae8f4b-ecd9-44a1-97b1-439451544934\",\n        \"product_ids\": [\n          \"f991898d-cb27-4ac7-b10c-0b9050ce104c\",\n          \"ccee43dc-27e0-40a8-b768-b09579b0c6cf\",\n          \"354f6afd-43ac-4321-b1bc-0b5e5adcb4fc\",\n          \"89c0a336-1343-4812-ac34-e4bb8e2735aa\",\n          \"829ca080-5630-4562-9d5e-7611199dc669\",\n          \"2128adca-7fc6-44bd-800c-dc115df6ace5\",\n          \"2e120bb2-8366-4192-b04e-818afbe8e77a\",\n          \"b3e864c8-7fe3-4270-89e9-54c1203885db\",\n        ],\n        \"total_price\": 1192920,\n      },\n      {\n        \"id\": \"bf7907a8-a781-4b39-94a8-64c646407d8f\",\n        \"city\": \"Los Angeles\",\n        \"address\": \"123 Main St\",\n        \"country\": \"USA\",\n        \"refunded\": true,\n        \"created_at\": \"2023-01-01T21:08:30.151782+00:00\",\n        \"customer_id\": \"32cf2a9a-d783-4ad3-a03e-d4d20638ebbb\",\n        \"product_ids\": [\"2e120bb2-8366-4192-b04e-818afbe8e77a\"],\n        \"total_price\": 32990,\n      },\n      {\n        \"id\": \"793c68fc-8551-42e3-85af-2b7c13e30aa3\",\n        \"city\": \"Sydney\",\n        \"address\": \"10 George St\",\n        \"country\": \"Australia\",\n        \"refunded\": false,\n        \"created_at\": \"2023-03-16T10:50:37.308372+00:00\",\n        \"customer_id\": \"208a3034-4974-449c-b058-a479ba35890d\",\n        \"product_ids\": [\"ccee43dc-27e0-40a8-b768-b09579b0c6cf\"],\n        \"total_price\": 299990,\n      },\n      {\n        \"id\": \"5abca216-bb6b-4ee9-8e75-7cf484fa728b\",\n        \"city\": \"Sydney\",\n        \"address\": \"10 George St\",\n        \"country\": \"Australia\",\n        \"refunded\": false,\n        \"created_at\": \"2023-03-16T10:51:25.339487+00:00\",\n        \"customer_id\": \"208a3034-4974-449c-b058-a479ba35890d\",\n        \"product_ids\": [\"06dfcbdc-f256-4c83-8022-5e70a07a2d91\"],\n        \"total_price\": 79990,\n      },\n      {\n        \"id\": \"b5f691e1-639c-4d9e-a127-32284d9af0ab\",\n        \"city\": \"Sydney\",\n        \"address\": \"10 George St\",\n        \"country\": \"Australia\",\n        \"refunded\": false,\n        \"created_at\": \"2023-03-16T10:51:56.876073+00:00\",\n        \"customer_id\": \"208a3034-4974-449c-b058-a479ba35890d\",\n        \"product_ids\": [\"2e120bb2-8366-4192-b04e-818afbe8e77a\"],\n        \"total_price\": 32990,\n      },\n      {\n        \"id\": \"e1959a5e-1923-454a-a94f-a94fafc0ccf1\",\n        \"city\": \"Paris\",\n        \"address\": \"9-9-9 Champs-Elysees\",\n        \"country\": \"France\",\n        \"refunded\": true,\n        \"created_at\": \"2022-11-12T00:16:17.285291+00:00\",\n        \"customer_id\": \"5bae8f4b-ecd9-44a1-97b1-439451544934\",\n        \"product_ids\": [\n          \"ccee43dc-27e0-40a8-b768-b09579b0c6cf\",\n          \"c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db\",\n          \"2128adca-7fc6-44bd-800c-dc115df6ace5\",\n        ],\n        \"total_price\": 539970,\n      },\n      {\n        \"id\": \"266ffd1b-8193-4ed7-9919-6a48d10b2ab9\",\n        \"city\": \"Tokyo\",\n        \"address\": \"1-1-1 Shibuya\",\n        \"country\": \"Japan\",\n        \"refunded\": true,\n        \"created_at\": \"2022-08-19T06:47:57.163763+00:00\",\n        \"customer_id\": \"f5e10946-7e9c-4837-9da8-130ff0a616bb\",\n        \"product_ids\": [\"ccee43dc-27e0-40a8-b768-b09579b0c6cf\"],\n        \"total_price\": 299990,\n      },\n      {\n        \"id\": \"b3c7c1ae-f9e4-453d-bd14-90e2faadd73f\",\n        \"city\": \"New York\",\n        \"address\": \"123 Main St\",\n        \"country\": \"USA\",\n        \"refunded\": true,\n        \"created_at\": \"2022-11-23T11:11:46.902264+00:00\",\n        \"customer_id\": \"8125f02e-c9d7-4ca4-9044-91ffcefa4350\",\n        \"product_ids\": [\n          \"2128adca-7fc6-44bd-800c-dc115df6ace5\",\n          \"b3e864c8-7fe3-4270-89e9-54c1203885db\",\n          \"ccee43dc-27e0-40a8-b768-b09579b0c6cf\",\n          \"06dfcbdc-f256-4c83-8022-5e70a07a2d91\",\n          \"c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db\",\n        ],\n        \"total_price\": 1009950,\n      },\n      {\n        \"id\": \"55c37905-14a4-4dbd-8213-2f921cc4ac39\",\n        \"city\": \"Paris\",\n        \"address\": \"9-9-9 Champs-Elysees\",\n        \"country\": \"France\",\n        \"refunded\": true,\n        \"created_at\": \"2022-09-07T08:02:45.055638+00:00\",\n        \"customer_id\": \"5bae8f4b-ecd9-44a1-97b1-439451544934\",\n        \"product_ids\": [\n          \"f991898d-cb27-4ac7-b10c-0b9050ce104c\",\n          \"829ca080-5630-4562-9d5e-7611199dc669\",\n          \"89c0a336-1343-4812-ac34-e4bb8e2735aa\",\n          \"354f6afd-43ac-4321-b1bc-0b5e5adcb4fc\",\n          \"06dfcbdc-f256-4c83-8022-5e70a07a2d91\",\n        ],\n        \"total_price\": 409950,\n      },\n      {\n        \"id\": \"93206697-22e9-4f24-895c-dfb17952081b\",\n        \"city\": \"Central\",\n        \"address\": \"5-5-5 Queen Road\",\n        \"country\": \"Hong Kong\",\n        \"refunded\": true,\n        \"created_at\": \"2022-10-29T14:11:42.563493+00:00\",\n        \"customer_id\": \"92595bcc-c391-4a3b-bdb0-5134301d2068\",\n        \"product_ids\": [\n          \"c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db\",\n          \"89c0a336-1343-4812-ac34-e4bb8e2735aa\",\n          \"06dfcbdc-f256-4c83-8022-5e70a07a2d91\",\n          \"ccee43dc-27e0-40a8-b768-b09579b0c6cf\",\n          \"2e120bb2-8366-4192-b04e-818afbe8e77a\",\n          \"2128adca-7fc6-44bd-800c-dc115df6ace5\",\n          \"829ca080-5630-4562-9d5e-7611199dc669\",\n        ],\n        \"total_price\": 732930,\n      },\n      {\n        \"id\": \"42c53548-89ce-4e08-ba24-81214ec3b449\",\n        \"city\": \"Zurich\",\n        \"address\": \"8-8-8 Bahnhofstrasse\",\n        \"country\": \"Switzerland\",\n        \"refunded\": false,\n        \"created_at\": \"2023-08-07T16:59:28.278384+00:00\",\n        \"customer_id\": \"484cf93a-d496-4aca-9efe-c57f97b979a6\",\n        \"product_ids\": [\"2e120bb2-8366-4192-b04e-818afbe8e77a\"],\n        \"total_price\": 32990,\n      },\n      {\n        \"id\": \"e5ab58d5-67f0-478e-9b7b-b89c4719fdca\",\n        \"city\": \"Ho Chi Minh City\",\n        \"address\": \"3-3-3 Nguyen Hue\",\n        \"country\": \"Vietnam\",\n        \"refunded\": true,\n        \"created_at\": \"2022-11-14T21:02:05.990757+00:00\",\n        \"customer_id\": \"3ac8388a-b10f-4ba0-bc29-aa6ef3cfe9c8\",\n        \"product_ids\": [\n          \"2e120bb2-8366-4192-b04e-818afbe8e77a\",\n          \"f991898d-cb27-4ac7-b10c-0b9050ce104c\",\n          \"89c0a336-1343-4812-ac34-e4bb8e2735aa\",\n          \"c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db\",\n        ],\n        \"total_price\": 362960,\n      },\n      {\n        \"id\": \"e4e3f68c-dbf0-491f-ac0b-85ad984bda73\",\n        \"city\": \"Berlin\",\n        \"address\": \"7-7-7 Friedrichstrasse\",\n        \"country\": \"Germany\",\n        \"refunded\": true,\n        \"created_at\": \"2023-02-02T15:41:34.291746+00:00\",\n        \"customer_id\": \"bf01df5a-9512-43cc-b049-e912b2b20806\",\n        \"product_ids\": [\n          \"06dfcbdc-f256-4c83-8022-5e70a07a2d91\",\n          \"89c0a336-1343-4812-ac34-e4bb8e2735aa\",\n          \"b3e864c8-7fe3-4270-89e9-54c1203885db\",\n        ],\n        \"total_price\": 499970,\n      },\n      {\n        \"id\": \"9be54e0b-5dba-40ef-9c5f-dd1a4109bd9b\",\n        \"city\": \"Paris\",\n        \"address\": \"9-9-9 Champs-Elysees\",\n        \"country\": \"France\",\n        \"refunded\": true,\n        \"created_at\": \"2023-01-12T22:03:41.204962+00:00\",\n        \"customer_id\": \"5bae8f4b-ecd9-44a1-97b1-439451544934\",\n        \"product_ids\": [\n          \"354f6afd-43ac-4321-b1bc-0b5e5adcb4fc\",\n          \"ccee43dc-27e0-40a8-b768-b09579b0c6cf\",\n          \"c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db\",\n          \"89c0a336-1343-4812-ac34-e4bb8e2735aa\",\n          \"b3e864c8-7fe3-4270-89e9-54c1203885db\",\n        ],\n        \"total_price\": 869950,\n      },\n      {\n        \"id\": \"ab5e3676-d112-42ce-8a1c-9bac275543cc\",\n        \"city\": \"Toronto\",\n        \"address\": \"456 Queen St\",\n        \"country\": \"Canada\",\n        \"refunded\": false,\n        \"created_at\": \"2023-08-08T06:55:12.252541+00:00\",\n        \"customer_id\": \"4edfd0b1-d3be-4c52-8aed-e8ac8c57f6c4\",\n        \"product_ids\": [\"f991898d-cb27-4ac7-b10c-0b9050ce104c\"],\n        \"total_price\": 199990,\n      },\n      {\n        \"id\": \"205936a5-1d62-4959-9879-c1c50f8261af\",\n        \"city\": \"Central\",\n        \"address\": \"5-5-5 Queen Road\",\n        \"country\": \"Hong Kong\",\n        \"refunded\": true,\n        \"created_at\": \"2023-01-15T10:06:00.498794+00:00\",\n        \"customer_id\": \"92595bcc-c391-4a3b-bdb0-5134301d2068\",\n        \"product_ids\": [\n          \"354f6afd-43ac-4321-b1bc-0b5e5adcb4fc\",\n          \"f991898d-cb27-4ac7-b10c-0b9050ce104c\",\n          \"89c0a336-1343-4812-ac34-e4bb8e2735aa\",\n          \"2e120bb2-8366-4192-b04e-818afbe8e77a\",\n          \"06dfcbdc-f256-4c83-8022-5e70a07a2d91\",\n        ],\n        \"total_price\": 392950,\n      },\n      {\n        \"id\": \"429b7a8f-0dc2-4f01-a117-9d619edc81e0\",\n        \"city\": \"Tokyo\",\n        \"address\": \"1-1-1 Shibuya\",\n        \"country\": \"Japan\",\n        \"refunded\": true,\n        \"created_at\": \"2022-10-19T21:08:49.069932+00:00\",\n        \"customer_id\": \"f5e10946-7e9c-4837-9da8-130ff0a616bb\",\n        \"product_ids\": [\n          \"f991898d-cb27-4ac7-b10c-0b9050ce104c\",\n          \"829ca080-5630-4562-9d5e-7611199dc669\",\n          \"c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db\",\n          \"2128adca-7fc6-44bd-800c-dc115df6ace5\",\n          \"89c0a336-1343-4812-ac34-e4bb8e2735aa\",\n        ],\n        \"total_price\": 519950,\n      },\n      {\n        \"id\": \"601c5c4f-2e82-48bf-91c1-d26e7bc5decb\",\n        \"city\": \"Madrid\",\n        \"address\": \"4-4-4 Gran Via\",\n        \"country\": \"Spain\",\n        \"refunded\": false,\n        \"created_at\": \"2023-08-08T06:59:34.973079+00:00\",\n        \"customer_id\": \"47be624c-e5ba-4c10-b591-46b6d1324c56\",\n        \"product_ids\": [\"2128adca-7fc6-44bd-800c-dc115df6ace5\"],\n        \"total_price\": 139990,\n      },\n      {\n        \"id\": \"f1b27527-8ccc-4ebc-8d80-700347f996e2\",\n        \"city\": \"Central\",\n        \"address\": \"5-5-5 Queen Road\",\n        \"country\": \"Hong Kong\",\n        \"refunded\": true,\n        \"created_at\": \"2023-02-15T09:41:13.281327+00:00\",\n        \"customer_id\": \"92595bcc-c391-4a3b-bdb0-5134301d2068\",\n        \"product_ids\": [\n          \"89c0a336-1343-4812-ac34-e4bb8e2735aa\",\n          \"2e120bb2-8366-4192-b04e-818afbe8e77a\",\n          \"ccee43dc-27e0-40a8-b768-b09579b0c6cf\",\n          \"f991898d-cb27-4ac7-b10c-0b9050ce104c\",\n          \"c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db\",\n          \"354f6afd-43ac-4321-b1bc-0b5e5adcb4fc\",\n          \"06dfcbdc-f256-4c83-8022-5e70a07a2d91\",\n          \"2128adca-7fc6-44bd-800c-dc115df6ace5\",\n        ],\n        \"total_price\": 932920,\n      },\n      {\n        \"id\": \"0d025f0f-1035-43a4-bf72-d4ffba9ce113\",\n        \"city\": \"Los Angeles\",\n        \"address\": \"123 Main St\",\n        \"country\": \"USA\",\n        \"refunded\": true,\n        \"created_at\": \"2022-09-27T21:23:23.035281+00:00\",\n        \"customer_id\": \"32cf2a9a-d783-4ad3-a03e-d4d20638ebbb\",\n        \"product_ids\": [\"2e120bb2-8366-4192-b04e-818afbe8e77a\"],\n        \"total_price\": 32990,\n      },\n      {\n        \"id\": \"ae685d52-fb68-4bb6-8b6c-5476c897779e\",\n        \"city\": \"Sydney\",\n        \"address\": \"10 George St\",\n        \"country\": \"Australia\",\n        \"refunded\": true,\n        \"created_at\": \"2022-10-14T18:57:10.126285+00:00\",\n        \"customer_id\": \"208a3034-4974-449c-b058-a479ba35890d\",\n        \"product_ids\": [\n          \"829ca080-5630-4562-9d5e-7611199dc669\",\n          \"b3e864c8-7fe3-4270-89e9-54c1203885db\",\n          \"89c0a336-1343-4812-ac34-e4bb8e2735aa\",\n          \"2e120bb2-8366-4192-b04e-818afbe8e77a\",\n          \"06dfcbdc-f256-4c83-8022-5e70a07a2d91\",\n        ],\n        \"total_price\": 582950,\n      },\n      {\n        \"id\": \"52db83b0-3af6-4cbd-b502-9fc5a0e136fd\",\n        \"city\": \"Taipei\",\n        \"address\": \"6-6-6 Zhongxiao East Rd\",\n        \"country\": \"Taiwan\",\n        \"refunded\": true,\n        \"created_at\": \"2022-08-11T07:48:42.689905+00:00\",\n        \"customer_id\": \"f3ffb22f-c258-443d-afa7-b88ae201f6b7\",\n        \"product_ids\": [\n          \"2e120bb2-8366-4192-b04e-818afbe8e77a\",\n          \"b3e864c8-7fe3-4270-89e9-54c1203885db\",\n        ],\n        \"total_price\": 422980,\n      },\n      {\n        \"id\": \"a338c3ca-e624-4546-a423-0cccb2aefc4e\",\n        \"city\": \"Taipei\",\n        \"address\": \"6-6-6 Zhongxiao East Rd\",\n        \"country\": \"Taiwan\",\n        \"refunded\": true,\n        \"created_at\": \"2022-12-02T18:43:04.860487+00:00\",\n        \"customer_id\": \"f3ffb22f-c258-443d-afa7-b88ae201f6b7\",\n        \"product_ids\": [\n          \"c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db\",\n          \"829ca080-5630-4562-9d5e-7611199dc669\",\n          \"b3e864c8-7fe3-4270-89e9-54c1203885db\",\n          \"2128adca-7fc6-44bd-800c-dc115df6ace5\",\n        ],\n        \"total_price\": 679960,\n      },\n      {\n        \"id\": \"ea44cea3-55f0-45b9-b298-b19d1b56c90d\",\n        \"city\": \"New York\",\n        \"address\": \"123 Main St\",\n        \"country\": \"USA\",\n        \"refunded\": true,\n        \"created_at\": \"2022-08-28T13:40:37.858691+00:00\",\n        \"customer_id\": \"8125f02e-c9d7-4ca4-9044-91ffcefa4350\",\n        \"product_ids\": [\n          \"829ca080-5630-4562-9d5e-7611199dc669\",\n          \"c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db\",\n          \"b3e864c8-7fe3-4270-89e9-54c1203885db\",\n          \"89c0a336-1343-4812-ac34-e4bb8e2735aa\",\n          \"354f6afd-43ac-4321-b1bc-0b5e5adcb4fc\",\n          \"f991898d-cb27-4ac7-b10c-0b9050ce104c\",\n          \"2128adca-7fc6-44bd-800c-dc115df6ace5\",\n        ],\n        \"total_price\": 959930,\n      },\n    ],\n  };\n}\n","language":"deno"},"noBackendValue":{"data":[{"id":"e4e3f68c-dbf0-491f-ac0b-85ad984bda73","city":"Berlin","address":"7-7-7 Friedrichstrasse","country":"Germany","refunded":false,"created_at":"2023-02-02T15:41:34.291746+00:00","customer_id":"bf01df5a-9512-43cc-b049-e912b2b20806","product_ids":["354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","ccee43dc-27e0-40a8-b768-b09579b0c6cf","c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","89c0a336-1343-4812-ac34-e4bb8e2735aa","b3e864c8-7fe3-4270-89e9-54c1203885db"],"total_price":499970},{"id":"9be54e0b-5dba-40ef-9c5f-dd1a4109bd9b","city":"Paris","address":"9-9-9 Champs-Elysees","country":"France","refunded":false,"created_at":"2023-01-12T22:03:41.204962+00:00","customer_id":"5bae8f4b-ecd9-44a1-97b1-439451544934","product_ids":["354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","ccee43dc-27e0-40a8-b768-b09579b0c6cf","c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","89c0a336-1343-4812-ac34-e4bb8e2735aa","b3e864c8-7fe3-4270-89e9-54c1203885db"],"total_price":869950},{"id":"f1b27527-8ccc-4ebc-8d80-700347f996e2","city":"Central","address":"5-5-5 Queen Road","country":"Hong Kong","refunded":false,"created_at":"2023-02-15T09:41:13.281327+00:00","customer_id":"92595bcc-c391-4a3b-bdb0-5134301d2068","product_ids":["354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","ccee43dc-27e0-40a8-b768-b09579b0c6cf","c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","89c0a336-1343-4812-ac34-e4bb8e2735aa","b3e864c8-7fe3-4270-89e9-54c1203885db"],"total_price":932920},{"id":"0d025f0f-1035-43a4-bf72-d4ffba9ce113","city":"Los Angeles","address":"123 Main St","country":"USA","refunded":false,"created_at":"2022-09-27T21:23:23.035281+00:00","customer_id":"32cf2a9a-d783-4ad3-a03e-d4d20638ebbb","product_ids":["354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","ccee43dc-27e0-40a8-b768-b09579b0c6cf","c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","89c0a336-1343-4812-ac34-e4bb8e2735aa","b3e864c8-7fe3-4270-89e9-54c1203885db"],"total_price":32990},{"id":"ae685d52-fb68-4bb6-8b6c-5476c897779e","city":"Sydney","address":"10 George St","country":"Australia","refunded":false,"created_at":"2022-10-14T18:57:10.126285+00:00","customer_id":"208a3034-4974-449c-b058-a479ba35890d","product_ids":["354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","ccee43dc-27e0-40a8-b768-b09579b0c6cf","c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","89c0a336-1343-4812-ac34-e4bb8e2735aa","b3e864c8-7fe3-4270-89e9-54c1203885db"],"total_price":582950},{"id":"b71dd585-eaf5-41bf-9861-f11ad7d7abe6","city":"Zurich","address":"8-8-8 Bahnhofstrasse","country":"Switzerland","refunded":false,"created_at":"2022-08-22T00:56:59.89963+00:00","customer_id":"484cf93a-d496-4aca-9efe-c57f97b979a6","product_ids":["354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","ccee43dc-27e0-40a8-b768-b09579b0c6cf","c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","89c0a336-1343-4812-ac34-e4bb8e2735aa","b3e864c8-7fe3-4270-89e9-54c1203885db"],"total_price":452960},{"id":"e5ab58d5-67f0-478e-9b7b-b89c4719fdca","city":"Ho Chi Minh City","address":"3-3-3 Nguyen Hue","country":"Vietnam","refunded":false,"created_at":"2022-11-14T21:02:05.990757+00:00","customer_id":"3ac8388a-b10f-4ba0-bc29-aa6ef3cfe9c8","product_ids":["354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","ccee43dc-27e0-40a8-b768-b09579b0c6cf","c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","89c0a336-1343-4812-ac34-e4bb8e2735aa","b3e864c8-7fe3-4270-89e9-54c1203885db"],"total_price":362960},{"id":"52db83b0-3af6-4cbd-b502-9fc5a0e136fd","city":"Taipei","address":"6-6-6 Zhongxiao East Rd","country":"Taiwan","refunded":false,"created_at":"2022-08-11T07:48:42.689905+00:00","customer_id":"f3ffb22f-c258-443d-afa7-b88ae201f6b7","product_ids":["354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","ccee43dc-27e0-40a8-b768-b09579b0c6cf","c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","89c0a336-1343-4812-ac34-e4bb8e2735aa","b3e864c8-7fe3-4270-89e9-54c1203885db"],"total_price":422980},{"id":"429b7a8f-0dc2-4f01-a117-9d619edc81e0","city":"Tokyo","address":"1-1-1 Shibuya","country":"Japan","refunded":false,"created_at":"2022-10-19T21:08:49.069932+00:00","customer_id":"f5e10946-7e9c-4837-9da8-130ff0a616bb","product_ids":["354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","ccee43dc-27e0-40a8-b768-b09579b0c6cf","c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","89c0a336-1343-4812-ac34-e4bb8e2735aa","b3e864c8-7fe3-4270-89e9-54c1203885db"],"total_price":519950},{"id":"93206697-22e9-4f24-895c-dfb17952081b","city":"Central","address":"5-5-5 Queen Road","country":"Hong Kong","refunded":false,"created_at":"2022-10-29T14:11:42.563493+00:00","customer_id":"92595bcc-c391-4a3b-bdb0-5134301d2068","product_ids":["354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","ccee43dc-27e0-40a8-b768-b09579b0c6cf","c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","89c0a336-1343-4812-ac34-e4bb8e2735aa","b3e864c8-7fe3-4270-89e9-54c1203885db"],"total_price":732930},{"id":"a338c3ca-e624-4546-a423-0cccb2aefc4e","city":"Taipei","address":"6-6-6 Zhongxiao East Rd","country":"Taiwan","refunded":false,"created_at":"2022-12-02T18:43:04.860487+00:00","customer_id":"f3ffb22f-c258-443d-afa7-b88ae201f6b7","product_ids":["354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","ccee43dc-27e0-40a8-b768-b09579b0c6cf","c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","89c0a336-1343-4812-ac34-e4bb8e2735aa","b3e864c8-7fe3-4270-89e9-54c1203885db"],"total_price":679960},{"id":"0e75badc-4b62-4742-a31f-99cc594249f9","city":"Madrid","address":"4-4-4 Gran Via","country":"Spain","refunded":false,"created_at":"2023-01-27T17:48:14.525578+00:00","customer_id":"47be624c-e5ba-4c10-b591-46b6d1324c56","product_ids":["354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","ccee43dc-27e0-40a8-b768-b09579b0c6cf","c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","89c0a336-1343-4812-ac34-e4bb8e2735aa","b3e864c8-7fe3-4270-89e9-54c1203885db"],"total_price":352950},{"id":"b5f691e1-639c-4d9e-a127-32284d9af0ab","city":"Sydney","address":"10 George St","country":"Australia","refunded":false,"created_at":"2023-03-16T10:51:56.876073+00:00","customer_id":"208a3034-4974-449c-b058-a479ba35890d","product_ids":["354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","ccee43dc-27e0-40a8-b768-b09579b0c6cf","c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","89c0a336-1343-4812-ac34-e4bb8e2735aa","b3e864c8-7fe3-4270-89e9-54c1203885db"],"total_price":32990},{"id":"793c68fc-8551-42e3-85af-2b7c13e30aa3","city":"Sydney","address":"10 George St","country":"Australia","refunded":false,"created_at":"2023-03-16T10:50:37.308372+00:00","customer_id":"208a3034-4974-449c-b058-a479ba35890d","product_ids":["354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","ccee43dc-27e0-40a8-b768-b09579b0c6cf","c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","89c0a336-1343-4812-ac34-e4bb8e2735aa","b3e864c8-7fe3-4270-89e9-54c1203885db"],"total_price":299990},{"id":"5abca216-bb6b-4ee9-8e75-7cf484fa728b","city":"Sydney","address":"10 George St","country":"Australia","refunded":false,"created_at":"2023-03-16T10:51:25.339487+00:00","customer_id":"208a3034-4974-449c-b058-a479ba35890d","product_ids":["354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","ccee43dc-27e0-40a8-b768-b09579b0c6cf","c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","89c0a336-1343-4812-ac34-e4bb8e2735aa","b3e864c8-7fe3-4270-89e9-54c1203885db"],"total_price":79990},{"id":"bf7907a8-a781-4b39-94a8-64c646407d8f","city":"Los Angeles","address":"123 Main St","country":"USA","refunded":true,"created_at":"2023-01-01T21:08:30.151782+00:00","customer_id":"32cf2a9a-d783-4ad3-a03e-d4d20638ebbb","product_ids":["354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","ccee43dc-27e0-40a8-b768-b09579b0c6cf","c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","89c0a336-1343-4812-ac34-e4bb8e2735aa","b3e864c8-7fe3-4270-89e9-54c1203885db"],"total_price":32990},{"id":"55c37905-14a4-4dbd-8213-2f921cc4ac39","city":"Paris","address":"9-9-9 Champs-Elysees","country":"France","refunded":true,"created_at":"2022-09-07T08:02:45.055638+00:00","customer_id":"5bae8f4b-ecd9-44a1-97b1-439451544934","product_ids":["354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","ccee43dc-27e0-40a8-b768-b09579b0c6cf","c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","89c0a336-1343-4812-ac34-e4bb8e2735aa","b3e864c8-7fe3-4270-89e9-54c1203885db"],"total_price":409950},{"id":"266ffd1b-8193-4ed7-9919-6a48d10b2ab9","city":"Tokyo","address":"1-1-1 Shibuya","country":"Japan","refunded":true,"created_at":"2022-08-19T06:47:57.163763+00:00","customer_id":"f5e10946-7e9c-4837-9da8-130ff0a616bb","product_ids":["354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","ccee43dc-27e0-40a8-b768-b09579b0c6cf","c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","89c0a336-1343-4812-ac34-e4bb8e2735aa","b3e864c8-7fe3-4270-89e9-54c1203885db"],"total_price":299990},{"id":"c80b68a0-1ab3-4051-97b7-1056c17f13b1","city":"Paris","address":"9-9-9 Champs-Elysees","country":"France","refunded":false,"created_at":"2023-01-13T01:17:46.786771+00:00","customer_id":"5bae8f4b-ecd9-44a1-97b1-439451544934","product_ids":["354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","ccee43dc-27e0-40a8-b768-b09579b0c6cf","c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","89c0a336-1343-4812-ac34-e4bb8e2735aa","b3e864c8-7fe3-4270-89e9-54c1203885db"],"total_price":1192920},{"id":"205936a5-1d62-4959-9879-c1c50f8261af","city":"Central","address":"5-5-5 Queen Road","country":"Hong Kong","refunded":false,"created_at":"2023-01-15T10:06:00.498794+00:00","customer_id":"92595bcc-c391-4a3b-bdb0-5134301d2068","product_ids":["354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","ccee43dc-27e0-40a8-b768-b09579b0c6cf","c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","89c0a336-1343-4812-ac34-e4bb8e2735aa","b3e864c8-7fe3-4270-89e9-54c1203885db"],"total_price":392950},{"id":"ea44cea3-55f0-45b9-b298-b19d1b56c90d","city":"New York","address":"123 Main St","country":"USA","refunded":false,"created_at":"2022-08-28T13:40:37.858691+00:00","customer_id":"8125f02e-c9d7-4ca4-9044-91ffcefa4350","product_ids":["354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","ccee43dc-27e0-40a8-b768-b09579b0c6cf","c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","89c0a336-1343-4812-ac34-e4bb8e2735aa","b3e864c8-7fe3-4270-89e9-54c1203885db"],"total_price":959930},{"id":"e1959a5e-1923-454a-a94f-a94fafc0ccf1","city":"Paris","address":"9-9-9 Champs-Elysees","country":"France","refunded":true,"created_at":"2022-11-12T00:16:17.285291+00:00","customer_id":"5bae8f4b-ecd9-44a1-97b1-439451544934","product_ids":["354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","ccee43dc-27e0-40a8-b768-b09579b0c6cf","c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","89c0a336-1343-4812-ac34-e4bb8e2735aa","b3e864c8-7fe3-4270-89e9-54c1203885db"],"total_price":539970},{"id":"b3c7c1ae-f9e4-453d-bd14-90e2faadd73f","city":"New York","address":"123 Main St","country":"USA","refunded":true,"created_at":"2022-11-23T11:11:46.902264+00:00","customer_id":"8125f02e-c9d7-4ca4-9044-91ffcefa4350","product_ids":["354f6afd-43ac-4321-b1bc-0b5e5adcb4fc","ccee43dc-27e0-40a8-b768-b09579b0c6cf","c303bce7-cb2e-42c6-8fdf-6aa01fc4e4db","89c0a336-1343-4812-ac34-e4bb8e2735aa","b3e864c8-7fe3-4270-89e9-54c1203885db"],"total_price":1009950}],"count":null,"error":null,"status":200,"statusText":"OK"},"recomputeOnInputChanged":true},{"name":"loadCustomers","type":"runnableByName","fields":{},"autoRefresh":true,"inlineScript":{"path":"u/faton/newapp/loadCustomers","schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":[],"properties":{}},"content":"export async function main() {\n  return {\n    \"data\": [\n      {\n        \"id\": \"8125f02e-c9d7-4ca4-9044-91ffcefa4350\",\n        \"city\": \"New York\",\n        \"email\": \"johndoe@example.com\",\n        \"address\": \"123 Main St\",\n        \"country\": \"USA\",\n        \"last_name\": \"Doe\",\n        \"first_name\": \"John\",\n      },\n      {\n        \"id\": \"4edfd0b1-d3be-4c52-8aed-e8ac8c57f6c4\",\n        \"city\": \"Toronto\",\n        \"email\": \"janedoe@example.com\",\n        \"address\": \"456 Queen St\",\n        \"country\": \"Canada\",\n        \"last_name\": \"Doe\",\n        \"first_name\": \"Jane\",\n      },\n      {\n        \"id\": \"e4e96f28-b3a3-4166-9f35-027addb7b8a5\",\n        \"city\": \"London\",\n        \"email\": \"bobsmith@example.com\",\n        \"address\": \"789 Oxford St\",\n        \"country\": \"UK\",\n        \"last_name\": \"Smith\",\n        \"first_name\": \"Bob\",\n      },\n      {\n        \"id\": \"208a3034-4974-449c-b058-a479ba35890d\",\n        \"city\": \"Sydney\",\n        \"email\": \"alicejones@example.com\",\n        \"address\": \"10 George St\",\n        \"country\": \"Australia\",\n        \"last_name\": \"Jones\",\n        \"first_name\": \"Alice\",\n      },\n      {\n        \"id\": \"f5e10946-7e9c-4837-9da8-130ff0a616bb\",\n        \"city\": \"Tokyo\",\n        \"email\": \"davidlee@example.com\",\n        \"address\": \"1-1-1 Shibuya\",\n        \"country\": \"Japan\",\n        \"last_name\": \"Lee\",\n        \"first_name\": \"David\",\n      },\n      {\n        \"id\": \"c4080c80-e72f-4b28-8fbd-0aab98e9ff0b\",\n        \"city\": \"Seoul\",\n        \"email\": \"sarahkim@example.com\",\n        \"address\": \"2-2-2 Myeongdong\",\n        \"country\": \"South Korea\",\n        \"last_name\": \"Kim\",\n        \"first_name\": \"Sarah\",\n      },\n      {\n        \"id\": \"3ac8388a-b10f-4ba0-bc29-aa6ef3cfe9c8\",\n        \"city\": \"Ho Chi Minh City\",\n        \"email\": \"michaelnguyen@example.com\",\n        \"address\": \"3-3-3 Nguyen Hue\",\n        \"country\": \"Vietnam\",\n        \"last_name\": \"Nguyen\",\n        \"first_name\": \"Michael\",\n      },\n      {\n        \"id\": \"47be624c-e5ba-4c10-b591-46b6d1324c56\",\n        \"city\": \"Madrid\",\n        \"email\": \"mariagarcia@example.com\",\n        \"address\": \"4-4-4 Gran Via\",\n        \"country\": \"Spain\",\n        \"last_name\": \"Garcia\",\n        \"first_name\": \"Maria\",\n      },\n      {\n        \"id\": \"92595bcc-c391-4a3b-bdb0-5134301d2068\",\n        \"city\": \"Central\",\n        \"email\": \"alexwong@example.com\",\n        \"address\": \"5-5-5 Queen Road\",\n        \"country\": \"Hong Kong\",\n        \"last_name\": \"Wong\",\n        \"first_name\": \"Alex\",\n      },\n      {\n        \"id\": \"f3ffb22f-c258-443d-afa7-b88ae201f6b7\",\n        \"city\": \"Taipei\",\n        \"email\": \"catherinechen@example.com\",\n        \"address\": \"6-6-6 Zhongxiao East Rd\",\n        \"country\": \"Taiwan\",\n        \"last_name\": \"Chen\",\n        \"first_name\": \"Catherine\",\n      },\n      {\n        \"id\": \"32cf2a9a-d783-4ad3-a03e-d4d20638ebbb\",\n        \"city\": \"Los Angeles\",\n        \"email\": \"keirarowland@example.com\",\n        \"address\": \"123 Main St\",\n        \"country\": \"USA\",\n        \"last_name\": \"Rowland\",\n        \"first_name\": \"Keira\",\n      },\n      {\n        \"id\": \"bf01df5a-9512-43cc-b049-e912b2b20806\",\n        \"city\": \"Berlin\",\n        \"email\": \"mariaanders@example.com\",\n        \"address\": \"7-7-7 Friedrichstrasse\",\n        \"country\": \"Germany\",\n        \"last_name\": \"Anders\",\n        \"first_name\": \"Maria\",\n      },\n      {\n        \"id\": \"484cf93a-d496-4aca-9efe-c57f97b979a6\",\n        \"city\": \"Zurich\",\n        \"email\": \"hansmuller@example.com\",\n        \"address\": \"8-8-8 Bahnhofstrasse\",\n        \"country\": \"Switzerland\",\n        \"last_name\": \"Muller\",\n        \"first_name\": \"Hans\",\n      },\n      {\n        \"id\": \"5bae8f4b-ecd9-44a1-97b1-439451544934\",\n        \"city\": \"Paris\",\n        \"email\": \"sophiedubois@example.com\",\n        \"address\": \"9-9-9 Champs-Elysees\",\n        \"country\": \"France\",\n        \"last_name\": \"Dubois\",\n        \"first_name\": \"Sophie\",\n      },\n    ],\n  };\n}\n","language":"deno"},"noBackendValue":{"data":[{"id":"8125f02e-c9d7-4ca4-9044-91ffcefa4350","city":"New York","email":"johndoe@example.com","address":"123 Main St","country":"USA","last_name":"Doe","first_name":"John"},{"id":"4edfd0b1-d3be-4c52-8aed-e8ac8c57f6c4","city":"Toronto","email":"janedoe@example.com","address":"456 Queen St","country":"Canada","last_name":"Doe","first_name":"Jane"},{"id":"e4e96f28-b3a3-4166-9f35-027addb7b8a5","city":"London","email":"bobsmith@example.com","address":"789 Oxford St","country":"UK","last_name":"Smith","first_name":"Bob"},{"id":"208a3034-4974-449c-b058-a479ba35890d","city":"Sydney","email":"alicejones@example.com","address":"10 George St","country":"Australia","last_name":"Jones","first_name":"Alice"},{"id":"f5e10946-7e9c-4837-9da8-130ff0a616bb","city":"Tokyo","email":"davidlee@example.com","address":"1-1-1 Shibuya","country":"Japan","last_name":"Lee","first_name":"David"},{"id":"c4080c80-e72f-4b28-8fbd-0aab98e9ff0b","city":"Seoul","email":"sarahkim@example.com","address":"2-2-2 Myeongdong","country":"South Korea","last_name":"Kim","first_name":"Sarah"},{"id":"3ac8388a-b10f-4ba0-bc29-aa6ef3cfe9c8","city":"Ho Chi Minh City","email":"michaelnguyen@example.com","address":"3-3-3 Nguyen Hue","country":"Vietnam","last_name":"Nguyen","first_name":"Michael"},{"id":"47be624c-e5ba-4c10-b591-46b6d1324c56","city":"Madrid","email":"mariagarcia@example.com","address":"4-4-4 Gran Via","country":"Spain","last_name":"Garcia","first_name":"Maria"},{"id":"92595bcc-c391-4a3b-bdb0-5134301d2068","city":"Central","email":"alexwong@example.com","address":"5-5-5 Queen Road","country":"Hong Kong","last_name":"Wong","first_name":"Alex"},{"id":"f3ffb22f-c258-443d-afa7-b88ae201f6b7","city":"Taipei","email":"catherinechen@example.com","address":"6-6-6 Zhongxiao East Rd","country":"Taiwan","last_name":"Chen","first_name":"Catherine"},{"id":"32cf2a9a-d783-4ad3-a03e-d4d20638ebbb","city":"Los Angeles","email":"keirarowland@example.com","address":"123 Main St","country":"USA","last_name":"Rowland","first_name":"Keira"},{"id":"bf01df5a-9512-43cc-b049-e912b2b20806","city":"Berlin","email":"mariaanders@example.com","address":"7-7-7 Friedrichstrasse","country":"Germany","last_name":"Anders","first_name":"Maria"},{"id":"484cf93a-d496-4aca-9efe-c57f97b979a6","city":"Zurich","email":"hansmuller@example.com","address":"8-8-8 Bahnhofstrasse","country":"Switzerland","last_name":"Muller","first_name":"Hans"},{"id":"5bae8f4b-ecd9-44a1-97b1-439451544934","city":"Paris","email":"sophiedubois@example.com","address":"9-9-9 Champs-Elysees","country":"France","last_name":"Dubois","first_name":"Sophie"}],"count":null,"error":null,"status":200,"statusText":"OK"},"recomputeOnInputChanged":true},{"name":"listUser","type":"runnableByName","fields":{"users":{"type":"connected","value":null,"fieldType":"array","connection":{"path":"result.data","componentId":"bg_3"}}},"autoRefresh":true,"inlineScript":{"path":"u/faton/newapp/listUser","schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["users"],"properties":{"users":{"type":"array","items":{"type":"object"},"default":null,"description":""}}},"content":"export async function main(users: any[]) {\n  return users.map((u) => ({\n    label: `${u.first_name}  ${u.last_name}`,\n    value: u.id,\n  }));\n}\n","language":"deno"},"noBackendValue":[{"label":"John  Doe","value":"8125f02e-c9d7-4ca4-9044-91ffcefa4350"},{"label":"Jane  Doe","value":"4edfd0b1-d3be-4c52-8aed-e8ac8c57f6c4"},{"label":"Bob  Smith","value":"e4e96f28-b3a3-4166-9f35-027addb7b8a5"},{"label":"Alice  Jones","value":"208a3034-4974-449c-b058-a479ba35890d"},{"label":"David  Lee","value":"f5e10946-7e9c-4837-9da8-130ff0a616bb"},{"label":"Sarah  Kim","value":"c4080c80-e72f-4b28-8fbd-0aab98e9ff0b"},{"label":"Michael  Nguyen","value":"3ac8388a-b10f-4ba0-bc29-aa6ef3cfe9c8"},{"label":"Maria  Garcia","value":"47be624c-e5ba-4c10-b591-46b6d1324c56"},{"label":"Alex  Wong","value":"92595bcc-c391-4a3b-bdb0-5134301d2068"},{"label":"Catherine  Chen","value":"f3ffb22f-c258-443d-afa7-b88ae201f6b7"},{"label":"Keira  Rowland","value":"32cf2a9a-d783-4ad3-a03e-d4d20638ebbb"},{"label":"Maria  Anders","value":"bf01df5a-9512-43cc-b049-e912b2b20806"},{"label":"Hans  Muller","value":"484cf93a-d496-4aca-9efe-c57f97b979a6"},{"label":"Sophie  Dubois","value":"5bae8f4b-ecd9-44a1-97b1-439451544934"}],"recomputeOnInputChanged":true},{"name":"Background Runnable 5","type":"runnableByName","fields":{},"hidden":true},{"name":"pieChartData","type":"runnableByName","fields":{"orders":{"expr":"bg_2.result.data","type":"evalv2","value":[],"fieldType":"array","connections":[{"id":"result","componentId":"bg_2"}]}},"autoRefresh":true,"inlineScript":{"lock":"{\n  \"version\": \"2\",\n  \"remote\": {}\n}\n","path":"u/faton/newapp/pieChartData","schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["orders"],"properties":{"orders":{"type":"array","items":{"type":"object"},"default":null,"description":""}}},"content":"export async function main(orders: any[]) {if(!orders){return []}\n  let one = 0;\n  let two = 0;\n  let more = 0;\n\n  orders.forEach((o) => {\n    if (o.product_ids.length === 1) {\n      one++;\n    } else if (o.product_ids.length === 2) {\n      two++;\n    } else {\n      more++;\n    }\n  });\n\n  return [\n    one,\n    two,\n    more,\n  ];\n}\n","language":"deno"},"recomputeIds":[],"recomputeOnInputChanged":true}],"unusedInlineScripts":[]},"description":"How we built it : https://docs.windmill.dev/docs/apps/app_e-commerce","vcreated_at":"2023-11-01T13:26:42.688Z","vcreated_by":"faton ramadani2","comments":[]}}