{
    "tailapp": 2,
    "manifest": {
        "format": 2,
        "app_id": "qr-code",
        "name": "QR Code",
        "version": 1,
        "schema": "tailapps/v0",
        "exported_at": 1795564614,
        "from": "gallery",
        "connections": [],
        "files": {
            "app.json": "13ed2f50c4ff55a3e0a4414555cdd47df2c81bc40da7b84100680b96c239f771"
        },
        "signature": "WPIauZWhOKTmXLxP0rAzS6PL52/vD/KzmYTf7OE2tAPJ3CR3YL2XBdxobUNyHQTzUztfvEJkIlEnpXkRH/00Bw==",
        "key_id": "gallery-1"
    },
    "app": {
        "schema": "tailapps/v0",
        "app": "qr-code",
        "name": "QR Code",
        "description": "Make a QR code for a link, a Wi-Fi network, a contact card or any text, right on this device, ready to scan with a phone camera.",
        "icon": "qrcode",
        "version": 1,
        "permissions": [
            "open:url"
        ],
        "state": {
            "kind": {
                "type": "text",
                "default": "link"
            },
            "link": {
                "type": "text",
                "default": "https://tailapps.com"
            },
            "ssid": {
                "type": "text",
                "default": ""
            },
            "password": {
                "type": "text",
                "default": ""
            },
            "security": {
                "type": "text",
                "default": "WPA"
            },
            "hidden": {
                "type": "bool",
                "default": false
            },
            "first_name": {
                "type": "text",
                "default": ""
            },
            "last_name": {
                "type": "text",
                "default": ""
            },
            "company": {
                "type": "text",
                "default": ""
            },
            "phone": {
                "type": "text",
                "default": ""
            },
            "email": {
                "type": "text",
                "default": ""
            },
            "text": {
                "type": "text",
                "default": ""
            }
        },
        "actions": {
            "open_link": {
                "steps": [
                    {
                        "open": "$link"
                    }
                ]
            },
            "security_changed": {
                "steps": [
                    {
                        "if": "$args.value | map:{nopass:true, else:false}",
                        "then": [
                            {
                                "set": {
                                    "password": ""
                                }
                            }
                        ]
                    }
                ]
            }
        },
        "cards": [
            {
                "id": "main",
                "layout": {
                    "column": [
                        {
                            "field": "Kind",
                            "type": "segmented",
                            "bind": "$kind",
                            "options": [
                                {
                                    "label": "Link",
                                    "value": "link",
                                    "icon": "link"
                                },
                                {
                                    "label": "Wi-Fi",
                                    "value": "wifi",
                                    "icon": "wifi"
                                },
                                {
                                    "label": "Contact",
                                    "value": "contact",
                                    "icon": "person.crop.circle"
                                },
                                {
                                    "label": "Text",
                                    "value": "text",
                                    "icon": "text.alignleft"
                                }
                            ]
                        },
                        {
                            "column": [
                                {
                                    "field": "Link",
                                    "type": "text",
                                    "bind": "$link",
                                    "placeholder": "https://example.com"
                                }
                            ],
                            "when": "$kind | map:{link:true, else:false}"
                        },
                        {
                            "column": [
                                {
                                    "field": "Network name",
                                    "type": "text",
                                    "bind": "$ssid",
                                    "placeholder": "Home Wi-Fi"
                                },
                                {
                                    "field": "Password",
                                    "type": "text",
                                    "bind": "$password",
                                    "placeholder": "Password",
                                    "disabled": "$security | map:{nopass:true, else:false}"
                                },
                                {
                                    "field": "Security",
                                    "type": "segmented",
                                    "bind": "$security",
                                    "options": [
                                        {
                                            "label": "WPA/WPA3",
                                            "value": "WPA"
                                        },
                                        {
                                            "label": "WEP",
                                            "value": "WEP"
                                        },
                                        {
                                            "label": "None",
                                            "value": "nopass"
                                        }
                                    ],
                                    "on_change": "security_changed"
                                },
                                {
                                    "field": "Hidden network",
                                    "type": "toggle",
                                    "bind": "$hidden"
                                }
                            ],
                            "gap": "s",
                            "when": "$kind | map:{wifi:true, else:false}"
                        },
                        {
                            "column": [
                                {
                                    "field": "First name",
                                    "type": "text",
                                    "bind": "$first_name",
                                    "placeholder": "Ada"
                                },
                                {
                                    "field": "Last name",
                                    "type": "text",
                                    "bind": "$last_name",
                                    "placeholder": "Lovelace"
                                },
                                {
                                    "field": "Company",
                                    "type": "text",
                                    "bind": "$company",
                                    "placeholder": "Optional"
                                },
                                {
                                    "field": "Phone",
                                    "type": "text",
                                    "bind": "$phone",
                                    "placeholder": "+44 20 7946 0000"
                                },
                                {
                                    "field": "Email",
                                    "type": "text",
                                    "bind": "$email",
                                    "placeholder": "ada@example.com"
                                }
                            ],
                            "gap": "s",
                            "when": "$kind | map:{contact:true, else:false}"
                        },
                        {
                            "column": [
                                {
                                    "field": "Text",
                                    "type": "textarea",
                                    "bind": "$text",
                                    "placeholder": "Anything up to a couple of thousand characters"
                                }
                            ],
                            "when": "$kind | map:{text:true, else:false}"
                        },
                        {
                            "column": [
                                {
                                    "qr": "$link",
                                    "size": "l",
                                    "label": "Scan to open the link",
                                    "when": "$link"
                                },
                                {
                                    "text": "Type a link to make its code",
                                    "size": "s",
                                    "emphasis": "subtle",
                                    "when": "$link | count | map:{0:true, else:false}"
                                },
                                {
                                    "button": "Open link",
                                    "icon": "safari",
                                    "style": "secondary",
                                    "size": "s",
                                    "on": "open_link",
                                    "when": "$link"
                                },
                                {
                                    "section": "What it holds",
                                    "collapsible": true,
                                    "collapsed": true,
                                    "when": "$link",
                                    "children": [
                                        {
                                            "code": "$link",
                                            "lines": 8
                                        }
                                    ]
                                }
                            ],
                            "gap": "s",
                            "align": "center",
                            "when": "$kind | map:{link:true, else:false}"
                        },
                        {
                            "column": [
                                {
                                    "qr": "WIFI:T:{$security};S:{$ssid | encode:'wifi'};P:{$password | encode:'wifi'};H:{$hidden};;",
                                    "size": "l",
                                    "label": "Scan to join {$ssid}",
                                    "when": "$ssid"
                                },
                                {
                                    "text": "Type the network name to make its code",
                                    "size": "s",
                                    "emphasis": "subtle",
                                    "when": "$ssid | count | map:{0:true, else:false}"
                                },
                                {
                                    "section": "What it holds",
                                    "collapsible": true,
                                    "collapsed": true,
                                    "when": "$ssid",
                                    "children": [
                                        {
                                            "code": "WIFI:T:{$security};S:{$ssid | encode:'wifi'};P:{$password | encode:'wifi'};H:{$hidden};;",
                                            "lines": 8
                                        }
                                    ]
                                }
                            ],
                            "gap": "s",
                            "align": "center",
                            "when": "$kind | map:{wifi:true, else:false}"
                        },
                        {
                            "column": [
                                {
                                    "qr": "BEGIN:VCARD\nVERSION:3.0\nN:{$last_name | encode:'vcard'};{$first_name | encode:'vcard'};;;\nFN:{$first_name | encode:'vcard'} {$last_name | encode:'vcard'}\nORG:{$company | encode:'vcard'}\nTEL:{$phone | encode:'vcard'}\nEMAIL:{$email | encode:'vcard'}\nEND:VCARD",
                                    "size": "l",
                                    "label": "Scan to add {$first_name} {$last_name}",
                                    "when": "$first_name"
                                },
                                {
                                    "text": "Type a first name to make the contact card",
                                    "size": "s",
                                    "emphasis": "subtle",
                                    "when": "$first_name | count | map:{0:true, else:false}"
                                },
                                {
                                    "section": "What it holds",
                                    "collapsible": true,
                                    "collapsed": true,
                                    "when": "$first_name",
                                    "children": [
                                        {
                                            "code": "BEGIN:VCARD\nVERSION:3.0\nN:{$last_name | encode:'vcard'};{$first_name | encode:'vcard'};;;\nFN:{$first_name | encode:'vcard'} {$last_name | encode:'vcard'}\nORG:{$company | encode:'vcard'}\nTEL:{$phone | encode:'vcard'}\nEMAIL:{$email | encode:'vcard'}\nEND:VCARD",
                                            "lines": 8
                                        }
                                    ]
                                }
                            ],
                            "gap": "s",
                            "align": "center",
                            "when": "$kind | map:{contact:true, else:false}"
                        },
                        {
                            "column": [
                                {
                                    "qr": "$text",
                                    "size": "l",
                                    "label": "Scan to read the text",
                                    "when": "$text"
                                },
                                {
                                    "text": "Type some text to make its code",
                                    "size": "s",
                                    "emphasis": "subtle",
                                    "when": "$text | count | map:{0:true, else:false}"
                                },
                                {
                                    "section": "What it holds",
                                    "collapsible": true,
                                    "collapsed": true,
                                    "when": "$text",
                                    "children": [
                                        {
                                            "code": "$text",
                                            "lines": 8
                                        }
                                    ]
                                }
                            ],
                            "gap": "s",
                            "align": "center",
                            "when": "$kind | map:{text:true, else:false}"
                        }
                    ],
                    "gap": "m"
                }
            }
        ],
        "views": {
            "menubar": {
                "icon": "qrcode",
                "card": "main"
            },
            "floating": {
                "card": "main",
                "width": "default"
            }
        }
    },
    "app_json": "{\n  \"schema\": \"tailapps/v0\",\n  \"app\": \"qr-code\",\n  \"name\": \"QR Code\",\n  \"description\": \"Make a QR code for a link, a Wi-Fi network, a contact card or any text, right on this device, ready to scan with a phone camera.\",\n  \"icon\": \"qrcode\",\n  \"version\": 1,\n  \"permissions\": [\"open:url\"],\n  \"state\": {\n    \"kind\": { \"type\": \"text\", \"default\": \"link\" },\n    \"link\": { \"type\": \"text\", \"default\": \"https://tailapps.com\" },\n    \"ssid\": { \"type\": \"text\", \"default\": \"\" },\n    \"password\": { \"type\": \"text\", \"default\": \"\" },\n    \"security\": { \"type\": \"text\", \"default\": \"WPA\" },\n    \"hidden\": { \"type\": \"bool\", \"default\": false },\n    \"first_name\": { \"type\": \"text\", \"default\": \"\" },\n    \"last_name\": { \"type\": \"text\", \"default\": \"\" },\n    \"company\": { \"type\": \"text\", \"default\": \"\" },\n    \"phone\": { \"type\": \"text\", \"default\": \"\" },\n    \"email\": { \"type\": \"text\", \"default\": \"\" },\n    \"text\": { \"type\": \"text\", \"default\": \"\" }\n  },\n  \"actions\": {\n    \"open_link\": { \"steps\": [{ \"open\": \"$link\" }] },\n    \"security_changed\": { \"steps\": [{ \"if\": \"$args.value | map:{nopass:true, else:false}\", \"then\": [{ \"set\": { \"password\": \"\" } }] }] }\n  },\n  \"cards\": [\n    {\n      \"id\": \"main\",\n      \"layout\": {\n        \"column\": [\n          {\n            \"field\": \"Kind\",\n            \"type\": \"segmented\",\n            \"bind\": \"$kind\",\n            \"options\": [\n              { \"label\": \"Link\", \"value\": \"link\", \"icon\": \"link\" },\n              { \"label\": \"Wi-Fi\", \"value\": \"wifi\", \"icon\": \"wifi\" },\n              { \"label\": \"Contact\", \"value\": \"contact\", \"icon\": \"person.crop.circle\" },\n              { \"label\": \"Text\", \"value\": \"text\", \"icon\": \"text.alignleft\" }\n            ]\n          },\n          {\n            \"column\": [{ \"field\": \"Link\", \"type\": \"text\", \"bind\": \"$link\", \"placeholder\": \"https://example.com\" }],\n            \"when\": \"$kind | map:{link:true, else:false}\"\n          },\n          {\n            \"column\": [\n              { \"field\": \"Network name\", \"type\": \"text\", \"bind\": \"$ssid\", \"placeholder\": \"Home Wi-Fi\" },\n              {\n                \"field\": \"Password\",\n                \"type\": \"text\",\n                \"bind\": \"$password\",\n                \"placeholder\": \"Password\",\n                \"disabled\": \"$security | map:{nopass:true, else:false}\"\n              },\n              {\n                \"field\": \"Security\",\n                \"type\": \"segmented\",\n                \"bind\": \"$security\",\n                \"options\": [{ \"label\": \"WPA/WPA3\", \"value\": \"WPA\" }, { \"label\": \"WEP\", \"value\": \"WEP\" }, { \"label\": \"None\", \"value\": \"nopass\" }],\n                \"on_change\": \"security_changed\"\n              },\n              { \"field\": \"Hidden network\", \"type\": \"toggle\", \"bind\": \"$hidden\" }\n            ],\n            \"gap\": \"s\",\n            \"when\": \"$kind | map:{wifi:true, else:false}\"\n          },\n          {\n            \"column\": [\n              { \"field\": \"First name\", \"type\": \"text\", \"bind\": \"$first_name\", \"placeholder\": \"Ada\" },\n              { \"field\": \"Last name\", \"type\": \"text\", \"bind\": \"$last_name\", \"placeholder\": \"Lovelace\" },\n              { \"field\": \"Company\", \"type\": \"text\", \"bind\": \"$company\", \"placeholder\": \"Optional\" },\n              { \"field\": \"Phone\", \"type\": \"text\", \"bind\": \"$phone\", \"placeholder\": \"+44 20 7946 0000\" },\n              { \"field\": \"Email\", \"type\": \"text\", \"bind\": \"$email\", \"placeholder\": \"ada@example.com\" }\n            ],\n            \"gap\": \"s\",\n            \"when\": \"$kind | map:{contact:true, else:false}\"\n          },\n          {\n            \"column\": [{ \"field\": \"Text\", \"type\": \"textarea\", \"bind\": \"$text\", \"placeholder\": \"Anything up to a couple of thousand characters\" }],\n            \"when\": \"$kind | map:{text:true, else:false}\"\n          },\n          {\n            \"column\": [\n              { \"qr\": \"$link\", \"size\": \"l\", \"label\": \"Scan to open the link\", \"when\": \"$link\" },\n              {\n                \"text\": \"Type a link to make its code\",\n                \"size\": \"s\",\n                \"emphasis\": \"subtle\",\n                \"when\": \"$link | count | map:{0:true, else:false}\"\n              },\n              { \"button\": \"Open link\", \"icon\": \"safari\", \"style\": \"secondary\", \"size\": \"s\", \"on\": \"open_link\", \"when\": \"$link\" },\n              {\n                \"section\": \"What it holds\",\n                \"collapsible\": true,\n                \"collapsed\": true,\n                \"when\": \"$link\",\n                \"children\": [{ \"code\": \"$link\", \"lines\": 8 }]\n              }\n            ],\n            \"gap\": \"s\",\n            \"align\": \"center\",\n            \"when\": \"$kind | map:{link:true, else:false}\"\n          },\n          {\n            \"column\": [\n              {\n                \"qr\": \"WIFI:T:{$security};S:{$ssid | encode:'wifi'};P:{$password | encode:'wifi'};H:{$hidden};;\",\n                \"size\": \"l\",\n                \"label\": \"Scan to join {$ssid}\",\n                \"when\": \"$ssid\"\n              },\n              {\n                \"text\": \"Type the network name to make its code\",\n                \"size\": \"s\",\n                \"emphasis\": \"subtle\",\n                \"when\": \"$ssid | count | map:{0:true, else:false}\"\n              },\n              {\n                \"section\": \"What it holds\",\n                \"collapsible\": true,\n                \"collapsed\": true,\n                \"when\": \"$ssid\",\n                \"children\": [{ \"code\": \"WIFI:T:{$security};S:{$ssid | encode:'wifi'};P:{$password | encode:'wifi'};H:{$hidden};;\", \"lines\": 8 }]\n              }\n            ],\n            \"gap\": \"s\",\n            \"align\": \"center\",\n            \"when\": \"$kind | map:{wifi:true, else:false}\"\n          },\n          {\n            \"column\": [\n              {\n                \"qr\": \"BEGIN:VCARD\\nVERSION:3.0\\nN:{$last_name | encode:'vcard'};{$first_name | encode:'vcard'};;;\\nFN:{$first_name | encode:'vcard'} {$last_name | encode:'vcard'}\\nORG:{$company | encode:'vcard'}\\nTEL:{$phone | encode:'vcard'}\\nEMAIL:{$email | encode:'vcard'}\\nEND:VCARD\",\n                \"size\": \"l\",\n                \"label\": \"Scan to add {$first_name} {$last_name}\",\n                \"when\": \"$first_name\"\n              },\n              {\n                \"text\": \"Type a first name to make the contact card\",\n                \"size\": \"s\",\n                \"emphasis\": \"subtle\",\n                \"when\": \"$first_name | count | map:{0:true, else:false}\"\n              },\n              {\n                \"section\": \"What it holds\",\n                \"collapsible\": true,\n                \"collapsed\": true,\n                \"when\": \"$first_name\",\n                \"children\": [\n                  {\n                    \"code\": \"BEGIN:VCARD\\nVERSION:3.0\\nN:{$last_name | encode:'vcard'};{$first_name | encode:'vcard'};;;\\nFN:{$first_name | encode:'vcard'} {$last_name | encode:'vcard'}\\nORG:{$company | encode:'vcard'}\\nTEL:{$phone | encode:'vcard'}\\nEMAIL:{$email | encode:'vcard'}\\nEND:VCARD\",\n                    \"lines\": 8\n                  }\n                ]\n              }\n            ],\n            \"gap\": \"s\",\n            \"align\": \"center\",\n            \"when\": \"$kind | map:{contact:true, else:false}\"\n          },\n          {\n            \"column\": [\n              { \"qr\": \"$text\", \"size\": \"l\", \"label\": \"Scan to read the text\", \"when\": \"$text\" },\n              {\n                \"text\": \"Type some text to make its code\",\n                \"size\": \"s\",\n                \"emphasis\": \"subtle\",\n                \"when\": \"$text | count | map:{0:true, else:false}\"\n              },\n              {\n                \"section\": \"What it holds\",\n                \"collapsible\": true,\n                \"collapsed\": true,\n                \"when\": \"$text\",\n                \"children\": [{ \"code\": \"$text\", \"lines\": 8 }]\n              }\n            ],\n            \"gap\": \"s\",\n            \"align\": \"center\",\n            \"when\": \"$kind | map:{text:true, else:false}\"\n          }\n        ],\n        \"gap\": \"m\"\n      }\n    }\n  ],\n  \"views\": { \"menubar\": { \"icon\": \"qrcode\", \"card\": \"main\" }, \"floating\": { \"card\": \"main\", \"width\": \"default\" } }\n}\n",
    "files": []
}