whoami7 - Manager
:
/
home
/
dataiclx
/
vielorbe.com
/
wp-content
/
plugins
/
surecart
/
dist
/
components
/
esm
/
Upload File:
files >> //home/dataiclx/vielorbe.com/wp-content/plugins/surecart/dist/components/esm/tax-a03623ca.js.map
{"file":"tax-a03623ca.js","mappings":";;eAIW,UAAE;qBACI,UAAE;;;eAGR,UAAE;qBACI,UAAE;;;eAGR,UAAE;qBACI,UAAE;;;eAGR,UAAE;qBACI,UAAE;;;eAGR,UAAE;qBACI,UAAE;;;;8BAwBS,UAAE,gCAAgC,UAAE;;AAEhE;;;;","names":[],"sources":["src/functions/tax.ts"],"sourcesContent":["import { __ } from '@wordpress/i18n';\nimport { TaxZones } from '../types';\nexport const zones: TaxZones = {\n ca_gst: {\n label: __('GST Number', 'surecart'),\n label_small: __('CA GST', 'surecart'),\n },\n au_abn: {\n label: __('ABN Number', 'surecart'),\n label_small: __('AU ABN', 'surecart'),\n },\n gb_vat: {\n label: __('VAT Number', 'surecart'),\n label_small: __('UK VAT', 'surecart'),\n },\n eu_vat: {\n label: __('VAT Number', 'surecart'),\n label_small: __('EU VAT', 'surecart'),\n },\n other: {\n label: __('Tax ID', 'surecart'),\n label_small: __('Other', 'surecart'),\n },\n};\n\nexport const getType = key => {\n key = key ? key.toUpperCase() : key;\n if (key === 'CA') {\n return 'ca_gst';\n }\n if (key === 'AU') {\n return 'au_abn';\n }\n if (key === 'GB') {\n return 'gb_vat';\n }\n if (\n ['AT', 'BE', 'EU', 'BG', 'HR', 'CY', 'CZ', 'DK', 'EE', 'FI', 'FR', 'DE', 'EL', 'HU', 'IE', 'IT', 'LV', 'LT', 'LU', 'MT', 'NL', 'PL', 'RO', 'SK', 'SI', 'ES', 'SE'].includes(key)\n ) {\n return 'eu_vat';\n }\n return null;\n};\n\nexport const formatTaxDisplay = (taxLabel, estimated = false) => {\n const label = estimated ? __('Estimated Tax', 'surecart') : __('Tax', 'surecart');\n return !taxLabel ? label : `${label}: ${taxLabel}`;\n};\n"],"version":3}
Copyright ©2021 || Defacer Indonesia