{"version":3,"sources":["webpack:///./Scripts/Components/VatPicker.js"],"names":["VatPicker","props","vat","changeVat","async","post","includeVat","location","reload","React","className","onClick","translate"],"mappings":"kJAIe,SAASA,EAAUC,GAE9B,MAAM,IAAEC,GAAQD,EACVE,EAAYC,gBACRC,QAAK,sBAAuBC,GAClCC,SAASC,QAAQ,EAGrB,OACIC,gBAAA,OAAKC,UAAU,cACXD,gBAAA,OAAKC,UAAkB,SAAPR,EAAiB,mBAAqB,YAAaS,QAASA,IAAMR,EAAU,WAAWS,OAAU,sBAA2B,IAE5IH,gBAAA,OAAKC,UAAkB,QAAPR,EAAgB,mBAAqB,YAAaS,QAASA,IAAMR,GAAU,KAAQS,OAAU,qBAGzH,C","file":"56.fc14d894f3daf8a8b8ab.js","sourcesContent":["import React, { Fragment } from 'react';\nimport { get, post, put } from '../Services/http';\nimport { translate } from '../Services/translation';\n\nexport default function VatPicker(props) {\n\n    const { vat } = props;\n    const changeVat = async (includeVat) => {\n        await post('/api/cart/toggleVat', includeVat);\n        location.reload();\n    }\n\n    return (\n        <div className=\"vat-picker\">\n            <div className={vat == \"False\" ? \"caption-2 active\" : \"caption-2\"} onClick={() => changeVat(\"false\")}>{translate('checkout.business')}</div>\n            |\n            <div className={vat == \"True\" ? \"caption-2 active\" : \"caption-2\"} onClick={() => changeVat(true)}>{translate('checkout.private')}</div>\n        </div>\n    );\n}\n"],"sourceRoot":""}