[{"name":"QRCode","comment":" QR Code encoding and rendering.\r\n\r\n@docs QRCode, ErrorCorrection\r\n\r\n\r\n# Encoding\r\n\r\n@docs encode, encodeWith\r\n\r\n\r\n# Rendering\r\n\r\n@docs toSvg, toString\r\n\r\n\r\n# Error\r\n\r\n@docs Error\r\n\r\n","unions":[{"name":"Error","comment":" Possible enconding errors.\r\n","args":[],"cases":[["AlignmentPatternNotFound",[]],["InvalidNumericChar",[]],["InvalidAlphanumericChar",[]],["InvalidUTF8Char",[]],["LogTableException",["Basics.Int"]],["PolynomialMultiplyException",[]],["PolynomialModException",[]],["InputLengthOverflow",[]]]},{"name":"ErrorCorrection","comment":" Error correction level. Provides the following error\r\ncorrection capability:\r\n\r\n  - **Low**: 7% of codewords can be restored.\r\n  - **Medium**: 15% of codewords can be restored.\r\n  - **Quartile**: 25% of codewords can be restored.\r\n  - **High**: 30% of codewords can be restored.\r\n\r\n","args":[],"cases":[["Low",[]],["Medium",[]],["Quartile",[]],["High",[]]]},{"name":"QRCode","comment":" QRCode type.\r\n","args":[],"cases":[]}],"aliases":[],"values":[{"name":"encode","comment":" Transform a string into a result [Error](#Error)\r\nor a [QRCode](#QRCode) using `Quartile` [ErrorCorrection](#ErrorCorrection).\r\n","type":"String.String -> Result.Result QRCode.Error QRCode.QRCode"},{"name":"encodeWith","comment":" Transform a string with a given [ErrorCorrection](#ErrorCorrection)\r\ninto a result [Error](#Error) or a [QRCode](#QRCode).\r\n","type":"QRCode.ErrorCorrection -> String.String -> Result.Result QRCode.Error QRCode.QRCode"},{"name":"toString","comment":" Transform a [QRCode](#QRCode) into a string.\r\n\r\n    \"Hello World!\"\r\n        |> QRCode.encode\r\n        |> Result.map QRCode.toString\r\n        |> Result.withDefault \"Error while encoding to QRCode.\"\r\n\r\nReturns:\r\n\r\n    ■■■■■■■ ■■■■  ■■■■■■■\r\n    ■     ■ ■■■■  ■     ■\r\n    ■ ■■■ ■ ■■■■■ ■ ■■■ ■\r\n    ■ ■■■ ■ ■   ■ ■ ■■■ ■\r\n    ■ ■■■ ■ ■■■■  ■ ■■■ ■\r\n    ■     ■    ■  ■     ■\r\n    ■■■■■■■ ■ ■ ■ ■■■■■■■\r\n            ■ ■■\r\n     ■■ ■ ■■  ■   ■ ■■■■■\r\n    ■■ ■■■   ■■■■ ■■■  ■■\r\n     ■ ■■ ■■ ■■■■■ ■■■■■■\r\n     ■■      ■■■■   ■  ■\r\n    ■  ■ ■■■  ■■■■ ■■\r\n            ■■ ■■■    ■■\r\n    ■■■■■■■ ■ ■    ■■ ■■■\r\n    ■     ■  ■  ■  ■    ■\r\n    ■ ■■■ ■ ■■■     ■\r\n    ■ ■■■ ■   ■■  ■■■ ■■\r\n    ■ ■■■ ■ ■ ■ ■ ■ ■ ■ ■\r\n    ■     ■ ■  ■    ■  ■\r\n    ■■■■■■■   ■■■  ■   ■■\r\n\r\n","type":"QRCode.QRCode -> String.String"},{"name":"toSvg","comment":" Transform a [QRCode](#QRCode) into a svg element.\r\n\r\n    qrCodeView : String -> Html msg\r\n    qrCodeView message =\r\n        QRCode.encode message\r\n            |> Result.map QRCode.toSvg\r\n            |> Result.withDefault\r\n                (Html.text \"Error while encoding to QRCode.\")\r\n\r\n**Tip**: You can determine the size of the generated svg setting\r\n`width` and `height` styles.\r\n\r\n","type":"QRCode.QRCode -> Html.Html msg"}],"binops":[]}]