@foxy.io/elements 1.35.0 → 1.36.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/foxy-access-recovery-form.js +1 -1
- package/dist/cdn/foxy-address-card.js +5 -5
- package/dist/cdn/foxy-address-form.js +1 -1
- package/dist/cdn/foxy-admin-subscription-card.js +1 -1
- package/dist/cdn/foxy-admin-subscription-form.js +1 -1
- package/dist/cdn/foxy-api-browser.js +1 -1
- package/dist/cdn/foxy-applied-coupon-code-card.js +1 -1
- package/dist/cdn/foxy-applied-coupon-code-form.js +1 -1
- package/dist/cdn/foxy-applied-tax-card.js +1 -1
- package/dist/cdn/foxy-attribute-card.js +1 -1
- package/dist/cdn/foxy-attribute-form.js +1 -1
- package/dist/cdn/foxy-billing-address-card.js +1 -1
- package/dist/cdn/foxy-cancellation-form.js +1 -1
- package/dist/cdn/foxy-cart-card.js +1 -1
- package/dist/cdn/foxy-cart-form.js +1 -1
- package/dist/cdn/foxy-client-card.js +1 -1
- package/dist/cdn/foxy-client-form.js +1 -1
- package/dist/cdn/foxy-collection-page.js +1 -1
- package/dist/cdn/foxy-collection-pages.js +1 -1
- package/dist/cdn/foxy-copy-to-clipboard.js +1 -1
- package/dist/cdn/foxy-coupon-card.js +1 -1
- package/dist/cdn/foxy-coupon-code-card.js +1 -1
- package/dist/cdn/foxy-coupon-code-form.js +1 -1
- package/dist/cdn/foxy-coupon-codes-form.js +1 -1
- package/dist/cdn/foxy-coupon-detail-card.js +1 -1
- package/dist/cdn/foxy-coupon-form.js +1 -1
- package/dist/cdn/foxy-custom-field-card.js +1 -1
- package/dist/cdn/foxy-custom-field-form.js +1 -1
- package/dist/cdn/foxy-customer-card.js +1 -1
- package/dist/cdn/foxy-customer-form.js +1 -1
- package/dist/cdn/foxy-customer-portal-settings-form.js +1 -1
- package/dist/cdn/foxy-customer-portal-settings.js +1 -1
- package/dist/cdn/foxy-customer-portal.js +1 -1
- package/dist/cdn/foxy-customer.js +1 -1
- package/dist/cdn/foxy-customers-table.js +1 -1
- package/dist/cdn/foxy-discount-builder.js +1 -1
- package/dist/cdn/foxy-discount-card.js +1 -1
- package/dist/cdn/foxy-discount-detail-card.js +1 -1
- package/dist/cdn/foxy-donation.js +1 -1
- package/dist/cdn/foxy-downloadable-card.js +1 -1
- package/dist/cdn/foxy-downloadable-form.js +1 -1
- package/dist/cdn/foxy-email-template-card.js +1 -1
- package/dist/cdn/foxy-email-template-form.js +1 -1
- package/dist/cdn/foxy-error-entry-card.js +1 -1
- package/dist/cdn/foxy-experimental-add-to-cart-builder.js +2 -2
- package/dist/cdn/foxy-filter-attribute-card.js +1 -1
- package/dist/cdn/foxy-filter-attribute-form.js +1 -1
- package/dist/cdn/foxy-form-dialog.js +1 -1
- package/dist/cdn/foxy-generate-codes-form.js +1 -1
- package/dist/cdn/foxy-gift-card-card.js +1 -1
- package/dist/cdn/foxy-gift-card-code-card.js +1 -1
- package/dist/cdn/foxy-gift-card-code-form.js +1 -1
- package/dist/cdn/foxy-gift-card-code-log-card.js +1 -1
- package/dist/cdn/foxy-gift-card-codes-form.js +1 -1
- package/dist/cdn/foxy-gift-card-form.js +1 -1
- package/dist/cdn/foxy-i18n-editor.js +1 -1
- package/dist/cdn/foxy-i18n.js +1 -1
- package/dist/cdn/foxy-integration-card.js +1 -1
- package/dist/cdn/foxy-integration-form.js +1 -1
- package/dist/cdn/foxy-item-card.js +1 -1
- package/dist/cdn/foxy-item-category-card.js +1 -1
- package/dist/cdn/foxy-item-category-form.js +1 -1
- package/dist/cdn/foxy-item-form.js +1 -1
- package/dist/cdn/foxy-item-option-card.js +1 -1
- package/dist/cdn/foxy-item-option-form.js +1 -1
- package/dist/cdn/foxy-items-form.js +1 -1
- package/dist/cdn/foxy-native-integration-card.js +1 -1
- package/dist/cdn/foxy-native-integration-form.js +1 -1
- package/dist/cdn/foxy-pagination.js +1 -1
- package/dist/cdn/foxy-passkey-card.js +1 -1
- package/dist/cdn/foxy-passkey-form.js +1 -1
- package/dist/cdn/foxy-payment-card-embed.js +1 -1
- package/dist/cdn/foxy-payment-card.js +1 -1
- package/dist/cdn/foxy-payment-method-card.js +1 -1
- package/dist/cdn/foxy-payments-api-fraud-protection-card.js +1 -1
- package/dist/cdn/foxy-payments-api-fraud-protection-form.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-method-card.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-method-form.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-preset-card.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-preset-form.js +1 -1
- package/dist/cdn/foxy-query-builder.js +1 -1
- package/dist/cdn/foxy-report-form.js +15 -15
- package/dist/cdn/foxy-reports-table.js +1 -1
- package/dist/cdn/foxy-shipment-card.js +1 -1
- package/dist/cdn/foxy-shipping-container-card.js +1 -1
- package/dist/cdn/foxy-shipping-drop-type-card.js +1 -1
- package/dist/cdn/foxy-shipping-method-card.js +1 -1
- package/dist/cdn/foxy-shipping-service-card.js +1 -1
- package/dist/cdn/foxy-sign-in-form.js +1 -1
- package/dist/cdn/foxy-spinner.js +1 -1
- package/dist/cdn/foxy-store-card.js +1 -1
- package/dist/cdn/foxy-store-form.js +1 -1
- package/dist/cdn/foxy-store-shipping-method-form.js +1 -1
- package/dist/cdn/foxy-subscription-card.js +1 -1
- package/dist/cdn/foxy-subscription-form.js +1 -1
- package/dist/cdn/foxy-subscription-settings-form.js +1 -1
- package/dist/cdn/foxy-subscriptions-table.js +1 -1
- package/dist/cdn/foxy-table.js +1 -1
- package/dist/cdn/foxy-tax-card.js +1 -1
- package/dist/cdn/foxy-tax-form.js +1 -1
- package/dist/cdn/foxy-template-config-form.js +1 -1
- package/dist/cdn/foxy-template-form.js +1 -1
- package/dist/cdn/foxy-template-set-card.js +1 -1
- package/dist/cdn/foxy-template-set-form.js +1 -1
- package/dist/cdn/foxy-transaction-card.js +1 -1
- package/dist/cdn/foxy-transaction.js +1 -1
- package/dist/cdn/foxy-transactions-table.js +7 -7
- package/dist/cdn/foxy-update-payment-method-form.js +1 -1
- package/dist/cdn/foxy-user-card.js +1 -1
- package/dist/cdn/foxy-user-form.js +1 -1
- package/dist/cdn/foxy-user-invitation-card.js +1 -1
- package/dist/cdn/foxy-user-invitation-form.js +1 -1
- package/dist/cdn/foxy-users-table.js +1 -1
- package/dist/cdn/foxy-webhook-card.js +1 -1
- package/dist/cdn/foxy-webhook-form.js +1 -1
- package/dist/cdn/foxy-webhook-log-card.js +1 -1
- package/dist/cdn/foxy-webhook-status-card.js +1 -1
- package/dist/cdn/{shared-3149ab8d.js → shared-01bb183b.js} +1 -1
- package/dist/cdn/{shared-e14930ce.js → shared-0453e29f.js} +1 -1
- package/dist/cdn/{shared-6cb26d12.js → shared-0b00883f.js} +1 -1
- package/dist/cdn/{shared-6b06d5c1.js → shared-0b1b1c14.js} +1 -1
- package/dist/cdn/{shared-d9f38239.js → shared-0d8e7067.js} +1 -1
- package/dist/cdn/{shared-602ed877.js → shared-0fcc7a6c.js} +1 -1
- package/dist/cdn/{shared-2256b8b1.js → shared-10b54c49.js} +1 -1
- package/dist/cdn/{shared-0e59bad9.js → shared-1482d5dd.js} +1 -1
- package/dist/cdn/{shared-2868b35f.js → shared-1ea59bd6.js} +1 -1
- package/dist/cdn/{shared-a4d773a3.js → shared-21100e1b.js} +1 -1
- package/dist/cdn/{shared-7439665e.js → shared-2503aefc.js} +1 -1
- package/dist/cdn/{shared-bf7baab5.js → shared-25f9729f.js} +1 -1
- package/dist/cdn/{shared-84ada96e.js → shared-28682c2b.js} +1 -1
- package/dist/cdn/{shared-56271b15.js → shared-2879b67f.js} +1 -1
- package/dist/cdn/{shared-f0a38941.js → shared-2e8361e1.js} +1 -1
- package/dist/cdn/{shared-831f5042.js → shared-3aaf64e6.js} +1 -1
- package/dist/cdn/{shared-a81a1cc3.js → shared-3c4f3814.js} +1 -1
- package/dist/cdn/{shared-303cf36c.js → shared-421f9892.js} +1 -1
- package/dist/cdn/{shared-4bcb2368.js → shared-4a4cf3e3.js} +1 -1
- package/dist/cdn/{shared-c5972323.js → shared-4b84e1b4.js} +1 -1
- package/dist/cdn/{shared-35a2aabc.js → shared-4cf87721.js} +1 -1
- package/dist/cdn/{shared-2b25aedd.js → shared-4d609ecc.js} +1 -1
- package/dist/cdn/{shared-2565fed8.js → shared-4e8a5b95.js} +1 -1
- package/dist/cdn/{shared-8d92dd6e.js → shared-5f43aa36.js} +1 -1
- package/dist/cdn/{shared-37dc0b85.js → shared-60150977.js} +1 -1
- package/dist/cdn/{shared-acdf3166.js → shared-61ef8001.js} +1 -1
- package/dist/cdn/shared-62240936.js +1 -0
- package/dist/cdn/{shared-9c82e27f.js → shared-6a45a781.js} +2 -2
- package/dist/cdn/{shared-0e1d094b.js → shared-6b76afc2.js} +1 -1
- package/dist/cdn/{shared-927f1a51.js → shared-6d11190a.js} +1 -1
- package/dist/cdn/{shared-61e50856.js → shared-76dcc864.js} +1 -1
- package/dist/cdn/{shared-a5bd0da6.js → shared-775a58a9.js} +1 -1
- package/dist/cdn/{shared-afa402dc.js → shared-788e1a9b.js} +1 -1
- package/dist/cdn/{shared-40bed8c1.js → shared-843aec9a.js} +1 -1
- package/dist/cdn/{shared-2eebd7bc.js → shared-85475a4e.js} +1 -1
- package/dist/cdn/{shared-481eb635.js → shared-8612d84d.js} +1 -1
- package/dist/cdn/{shared-4fdc63d9.js → shared-86aa139c.js} +1 -1
- package/dist/cdn/{shared-544b7d4b.js → shared-87dbd821.js} +1 -1
- package/dist/cdn/{shared-59d9d6ca.js → shared-89d09114.js} +1 -1
- package/dist/cdn/{shared-50f2497c.js → shared-9092b247.js} +1 -1
- package/dist/cdn/{shared-21254863.js → shared-92490909.js} +1 -1
- package/dist/cdn/{shared-059d1e79.js → shared-95d2e9c3.js} +1 -1
- package/dist/cdn/{shared-5741ba29.js → shared-97807c4d.js} +1 -1
- package/dist/cdn/shared-9d7ae4aa.js +1 -0
- package/dist/cdn/{shared-7f68743e.js → shared-a2e51632.js} +1 -1
- package/dist/cdn/{shared-2ca4d459.js → shared-a33244f7.js} +1 -1
- package/dist/cdn/{shared-3023dfb2.js → shared-b927be75.js} +3 -3
- package/dist/cdn/{shared-db92bb31.js → shared-c1a3337f.js} +1 -1
- package/dist/cdn/{shared-247297ce.js → shared-c1ade7a9.js} +1 -1
- package/dist/cdn/{shared-120413cd.js → shared-c52295d5.js} +1 -1
- package/dist/cdn/{shared-2676836d.js → shared-cbd1fab7.js} +1 -1
- package/dist/cdn/{shared-751c9f1e.js → shared-cc76a917.js} +1 -1
- package/dist/cdn/{shared-ebd077b5.js → shared-cd652fd0.js} +1 -1
- package/dist/cdn/{shared-900fd54f.js → shared-d2340faa.js} +1 -1
- package/dist/cdn/{shared-37c52c4c.js → shared-d279baa5.js} +1 -1
- package/dist/cdn/{shared-349a42e1.js → shared-e0d1856d.js} +1 -1
- package/dist/cdn/{shared-64d48bc6.js → shared-e5417c6e.js} +1 -1
- package/dist/cdn/{shared-6fa216e7.js → shared-e622d8cf.js} +1 -1
- package/dist/cdn/{shared-939f50c2.js → shared-f20eefdd.js} +1 -1
- package/dist/cdn/{shared-d4e7383e.js → shared-f316780a.js} +1 -1
- package/dist/cdn/{shared-aa54bc96.js → shared-f72d82a9.js} +1 -1
- package/dist/cdn/{shared-cdb5ad48.js → shared-f92b9842.js} +1 -1
- package/dist/cdn/{shared-19ebb715.js → shared-fa4ab526.js} +5 -5
- package/dist/cdn/{shared-639dbd3f.js → shared-fea2714e.js} +1 -1
- package/dist/cdn/translations/native-integration-form/en.json +344 -214
- package/dist/cdn/translations/tax-card/en.json +6 -4
- package/dist/cdn/translations/tax-form/en.json +161 -32
- package/dist/elements/internal/InternalForm/InternalForm.js +2 -2
- package/dist/elements/internal/InternalForm/InternalForm.js.map +1 -1
- package/dist/elements/public/NativeIntegrationForm/NativeIntegrationForm.d.ts +4 -5
- package/dist/elements/public/NativeIntegrationForm/NativeIntegrationForm.js +415 -292
- package/dist/elements/public/NativeIntegrationForm/NativeIntegrationForm.js.map +1 -1
- package/dist/elements/public/NativeIntegrationForm/defaults.d.ts +9 -68
- package/dist/elements/public/NativeIntegrationForm/defaults.js +18 -18
- package/dist/elements/public/NativeIntegrationForm/defaults.js.map +1 -1
- package/dist/elements/public/NativeIntegrationForm/index.d.ts +4 -3
- package/dist/elements/public/NativeIntegrationForm/index.js +4 -3
- package/dist/elements/public/NativeIntegrationForm/index.js.map +1 -1
- package/dist/elements/public/TaxCard/TaxCard.js +4 -0
- package/dist/elements/public/TaxCard/TaxCard.js.map +1 -1
- package/dist/elements/public/TaxForm/TaxForm.d.ts +31 -51
- package/dist/elements/public/TaxForm/TaxForm.js +260 -634
- package/dist/elements/public/TaxForm/TaxForm.js.map +1 -1
- package/dist/elements/public/TaxForm/index.d.ts +9 -9
- package/dist/elements/public/TaxForm/index.js +9 -9
- package/dist/elements/public/TaxForm/index.js.map +1 -1
- package/dist/mixins/themeable.js +4 -0
- package/dist/mixins/themeable.js.map +1 -1
- package/package.json +1 -1
- package/dist/cdn/shared-139024d1.js +0 -1
- package/dist/cdn/shared-3b1fc10b.js +0 -1
- package/dist/cdn/shared-433b15f9.js +0 -1
- package/dist/cdn/shared-d9393c31.js +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TranslatableMixin } from "../../../mixins/translatable.js";
|
|
2
2
|
import { BooleanSelector } from '@foxy.io/sdk/core';
|
|
3
3
|
import { InternalForm } from "../../internal/InternalForm/InternalForm.js";
|
|
4
|
+
import { ifDefined } from 'lit-html/directives/if-defined';
|
|
4
5
|
import { html, svg } from 'lit-html';
|
|
5
6
|
import * as defaults from "./defaults.js";
|
|
6
7
|
import memoize from 'lodash-es/memoize';
|
|
@@ -15,6 +16,7 @@ const Base = TranslatableMixin(InternalForm, NS);
|
|
|
15
16
|
export class NativeIntegrationForm extends Base {
|
|
16
17
|
constructor() {
|
|
17
18
|
super(...arguments);
|
|
19
|
+
this.store = null;
|
|
18
20
|
this.__createConfigGetterFor = memoize((key) => {
|
|
19
21
|
return () => { var _a; return (_a = this.__config) === null || _a === void 0 ? void 0 : _a[key]; };
|
|
20
22
|
});
|
|
@@ -33,56 +35,9 @@ export class NativeIntegrationForm extends Base {
|
|
|
33
35
|
{ value: 'avalara', label: 'option_avalara' },
|
|
34
36
|
{ value: 'onesource', label: 'option_onesource' },
|
|
35
37
|
{ value: 'taxjar', label: 'option_taxjar' },
|
|
38
|
+
{ value: 'custom_tax', label: 'option_custom_tax' },
|
|
36
39
|
];
|
|
37
|
-
this.
|
|
38
|
-
{
|
|
39
|
-
value: 'use_ava_tax',
|
|
40
|
-
label: 'option_use_ava_tax',
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
value: 'enable_colorado_delivery_fee',
|
|
44
|
-
label: 'option_enable_colorado_delivery_fee',
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
value: 'create_invoice',
|
|
48
|
-
label: 'option_create_invoice',
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
value: 'use_address_validation',
|
|
52
|
-
label: 'option_use_address_validation',
|
|
53
|
-
},
|
|
54
|
-
];
|
|
55
|
-
this.__taxjarConfigOptions = [
|
|
56
|
-
{
|
|
57
|
-
value: 'create_invoice',
|
|
58
|
-
label: 'option_create_invoice',
|
|
59
|
-
},
|
|
60
|
-
];
|
|
61
|
-
this.__configOptionsGetValue = () => {
|
|
62
|
-
const config = this.__config;
|
|
63
|
-
const value = [];
|
|
64
|
-
if (config === null || config === void 0 ? void 0 : config.enable_colorado_delivery_fee)
|
|
65
|
-
value.push('enable_colorado_delivery_fee');
|
|
66
|
-
if (config === null || config === void 0 ? void 0 : config.use_address_validation)
|
|
67
|
-
value.push('use_address_validation');
|
|
68
|
-
if (config === null || config === void 0 ? void 0 : config.create_invoice)
|
|
69
|
-
value.push('create_invoice');
|
|
70
|
-
if (config === null || config === void 0 ? void 0 : config.use_ava_tax)
|
|
71
|
-
value.push('use_ava_tax');
|
|
72
|
-
return value;
|
|
73
|
-
};
|
|
74
|
-
this.__configOptionsSetValue = (value) => {
|
|
75
|
-
this.__config = {
|
|
76
|
-
enable_colorado_delivery_fee: value.includes('enable_colorado_delivery_fee'),
|
|
77
|
-
use_address_validation: value.includes('use_address_validation'),
|
|
78
|
-
create_invoice: value.includes('create_invoice'),
|
|
79
|
-
use_ava_tax: value.includes('use_ava_tax'),
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
this.__avalaraAddressValidationCountriesOptions = [
|
|
83
|
-
{ value: 'US', label: 'option_US' },
|
|
84
|
-
{ value: 'CA', label: 'option_CA' },
|
|
85
|
-
];
|
|
40
|
+
this.__avalaraAddressValidationCountriesOptions = [{ value: 'US' }, { value: 'CA' }];
|
|
86
41
|
this.__codeMappingsGetValue = () => {
|
|
87
42
|
var _a, _b;
|
|
88
43
|
const mappings = (_b = (_a = this.__config) === null || _a === void 0 ? void 0 : _a.category_to_product_tax_code_mappings) !== null && _b !== void 0 ? _b : {};
|
|
@@ -126,6 +81,12 @@ export class NativeIntegrationForm extends Base {
|
|
|
126
81
|
{ value: 'subscription/cancelled', label: 'option_subscription_cancelled' },
|
|
127
82
|
];
|
|
128
83
|
}
|
|
84
|
+
static get properties() {
|
|
85
|
+
return {
|
|
86
|
+
...super.properties,
|
|
87
|
+
store: {},
|
|
88
|
+
};
|
|
89
|
+
}
|
|
129
90
|
static get v8n() {
|
|
130
91
|
const parse = memoize(JSON.parse);
|
|
131
92
|
const isURL = memoize((value) => {
|
|
@@ -242,7 +203,7 @@ export class NativeIntegrationForm extends Base {
|
|
|
242
203
|
get readonlySelector() {
|
|
243
204
|
const match = [super.readonlySelector.toString()];
|
|
244
205
|
if (this.href) {
|
|
245
|
-
match.push('apple-pay-
|
|
206
|
+
match.push('apple-pay-group-one', 'zapier-group-one', 'provider-group-one');
|
|
246
207
|
}
|
|
247
208
|
return new BooleanSelector(match.join(' ').trim());
|
|
248
209
|
}
|
|
@@ -253,20 +214,23 @@ export class NativeIntegrationForm extends Base {
|
|
|
253
214
|
};
|
|
254
215
|
}
|
|
255
216
|
renderBody() {
|
|
256
|
-
var _a;
|
|
217
|
+
var _a, _b;
|
|
257
218
|
const provider = (_a = this.form.provider) !== null && _a !== void 0 ? _a : 'avalara';
|
|
258
219
|
return html `
|
|
259
220
|
${this.renderHeader()}
|
|
260
221
|
${this.href
|
|
261
222
|
? ''
|
|
262
223
|
: html `
|
|
263
|
-
<foxy-internal-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
224
|
+
<foxy-internal-summary-control infer="provider-group-one">
|
|
225
|
+
<foxy-internal-select-control
|
|
226
|
+
layout="summary-item"
|
|
227
|
+
infer="provider"
|
|
228
|
+
.getValue=${this.__providerGetValue}
|
|
229
|
+
.setValue=${this.__providerSetValue}
|
|
230
|
+
.options=${this.__templateProviderOptions}
|
|
231
|
+
>
|
|
232
|
+
</foxy-internal-select-control>
|
|
233
|
+
</foxy-internal-summary-control>
|
|
270
234
|
`}
|
|
271
235
|
${provider === 'avalara'
|
|
272
236
|
? this.__renderAvalaraConfig()
|
|
@@ -286,6 +250,15 @@ export class NativeIntegrationForm extends Base {
|
|
|
286
250
|
? this.__renderCustomTaxConfig()
|
|
287
251
|
: ''}
|
|
288
252
|
${super.renderBody()}
|
|
253
|
+
|
|
254
|
+
<foxy-nucleon
|
|
255
|
+
class="hidden"
|
|
256
|
+
infer=""
|
|
257
|
+
href=${ifDefined((_b = this.store) !== null && _b !== void 0 ? _b : void 0)}
|
|
258
|
+
id="storeLoader"
|
|
259
|
+
@fetch=${() => this.requestUpdate()}
|
|
260
|
+
>
|
|
261
|
+
</foxy-nucleon>
|
|
289
262
|
`;
|
|
290
263
|
}
|
|
291
264
|
async _fetch(...args) {
|
|
@@ -320,7 +293,7 @@ export class NativeIntegrationForm extends Base {
|
|
|
320
293
|
var _a;
|
|
321
294
|
const config = this.__config;
|
|
322
295
|
const provider = (_a = this.form.provider) !== null && _a !== void 0 ? _a : 'avalara';
|
|
323
|
-
const
|
|
296
|
+
const serializedDefaultConfig = (() => {
|
|
324
297
|
if (provider === 'avalara')
|
|
325
298
|
return defaults.avalara;
|
|
326
299
|
if (provider === 'taxjar')
|
|
@@ -337,158 +310,241 @@ export class NativeIntegrationForm extends Base {
|
|
|
337
310
|
return defaults.webhookJson;
|
|
338
311
|
}
|
|
339
312
|
})();
|
|
313
|
+
const defaultConfig = serializedDefaultConfig ? JSON.parse(serializedDefaultConfig) : {};
|
|
340
314
|
const newConfig = JSON.stringify({ ...defaultConfig, ...config, ...value });
|
|
341
315
|
this.edit({ provider, config: newConfig });
|
|
342
316
|
}
|
|
343
317
|
__renderAvalaraConfig() {
|
|
344
|
-
var _a;
|
|
318
|
+
var _a, _b, _c;
|
|
319
|
+
const isActive = (_b = (_a = this.__storeLoader) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.is_active;
|
|
320
|
+
const serviceUrlPlaceholder = typeof isActive === 'boolean'
|
|
321
|
+
? this.t(`avalara-group-one.avalara-service-url.placeholder_${isActive ? 'active' : 'inactive'}`)
|
|
322
|
+
: void 0;
|
|
345
323
|
return html `
|
|
346
|
-
<foxy-internal-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
.setValue=${this.__createConfigSetterFor('id')}
|
|
357
|
-
>
|
|
358
|
-
</foxy-internal-text-control>
|
|
324
|
+
<foxy-internal-summary-control infer="avalara-group-one">
|
|
325
|
+
<foxy-internal-text-control
|
|
326
|
+
json-template=${defaults.avalara}
|
|
327
|
+
placeholder=${ifDefined(serviceUrlPlaceholder)}
|
|
328
|
+
json-path="service_url"
|
|
329
|
+
property="config"
|
|
330
|
+
layout="summary-item"
|
|
331
|
+
infer="avalara-service-url"
|
|
332
|
+
>
|
|
333
|
+
</foxy-internal-text-control>
|
|
359
334
|
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
335
|
+
<foxy-internal-text-control
|
|
336
|
+
json-template=${defaults.avalara}
|
|
337
|
+
json-path="id"
|
|
338
|
+
property="config"
|
|
339
|
+
layout="summary-item"
|
|
340
|
+
infer="avalara-id"
|
|
341
|
+
>
|
|
342
|
+
</foxy-internal-text-control>
|
|
366
343
|
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
344
|
+
<foxy-internal-password-control
|
|
345
|
+
json-template=${defaults.avalara}
|
|
346
|
+
json-path="key"
|
|
347
|
+
property="config"
|
|
348
|
+
layout="summary-item"
|
|
349
|
+
infer="avalara-key"
|
|
350
|
+
>
|
|
351
|
+
</foxy-internal-password-control>
|
|
373
352
|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
353
|
+
<foxy-internal-text-control
|
|
354
|
+
json-template=${defaults.avalara}
|
|
355
|
+
json-path="company_code"
|
|
356
|
+
property="config"
|
|
357
|
+
layout="summary-item"
|
|
358
|
+
infer="avalara-company-code"
|
|
359
|
+
>
|
|
360
|
+
</foxy-internal-text-control>
|
|
361
|
+
</foxy-internal-summary-control>
|
|
362
|
+
|
|
363
|
+
<foxy-internal-summary-control infer="avalara-group-two">
|
|
364
|
+
<foxy-internal-editable-list-control
|
|
365
|
+
layout="summary-item"
|
|
366
|
+
infer="avalara-category-to-product-tax-code-mappings"
|
|
367
|
+
.getValue=${this.__codeMappingsGetValue}
|
|
368
|
+
.setValue=${this.__codeMappingsSetValue}
|
|
369
|
+
>
|
|
370
|
+
</foxy-internal-editable-list-control>
|
|
371
|
+
</foxy-internal-summary-control>
|
|
372
|
+
|
|
373
|
+
<foxy-internal-summary-control infer="avalara-group-three">
|
|
374
|
+
<foxy-internal-switch-control
|
|
375
|
+
json-template=${defaults.avalara}
|
|
376
|
+
json-path="use_ava_tax"
|
|
377
|
+
property="config"
|
|
378
|
+
infer="avalara-use-ava-tax"
|
|
379
|
+
>
|
|
380
|
+
</foxy-internal-switch-control>
|
|
380
381
|
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
382
|
+
<foxy-internal-switch-control
|
|
383
|
+
json-template=${defaults.avalara}
|
|
384
|
+
json-path="use_address_validation"
|
|
385
|
+
property="config"
|
|
386
|
+
infer="avalara-use-address-validation"
|
|
387
|
+
>
|
|
388
|
+
</foxy-internal-switch-control>
|
|
389
|
+
|
|
390
|
+
${((_c = this.__config) === null || _c === void 0 ? void 0 : _c.use_address_validation) ? html `
|
|
391
|
+
<foxy-internal-editable-list-control
|
|
392
|
+
json-template=${defaults.avalara}
|
|
393
|
+
json-path="address_validation_countries"
|
|
394
|
+
property="config"
|
|
395
|
+
layout="summary-item"
|
|
396
|
+
infer="avalara-address-validation-countries"
|
|
397
|
+
.options=${this.__avalaraAddressValidationCountriesOptions}
|
|
398
|
+
>
|
|
399
|
+
</foxy-internal-editable-list-control>
|
|
400
|
+
`
|
|
398
401
|
: ''}
|
|
402
|
+
|
|
403
|
+
<foxy-internal-switch-control
|
|
404
|
+
json-template=${defaults.avalara}
|
|
405
|
+
json-path="create_invoice"
|
|
406
|
+
property="config"
|
|
407
|
+
infer="avalara-create-invoice"
|
|
408
|
+
>
|
|
409
|
+
</foxy-internal-switch-control>
|
|
410
|
+
|
|
411
|
+
<foxy-internal-switch-control
|
|
412
|
+
json-template=${defaults.avalara}
|
|
413
|
+
json-path="enable_colorado_delivery_fee"
|
|
414
|
+
property="config"
|
|
415
|
+
infer="avalara-enable-colorado-delivery-fee"
|
|
416
|
+
>
|
|
417
|
+
</foxy-internal-switch-control>
|
|
418
|
+
</foxy-internal-summary-control>
|
|
399
419
|
`;
|
|
400
420
|
}
|
|
401
421
|
__renderTaxJarConfig() {
|
|
402
422
|
return html `
|
|
403
|
-
<foxy-internal-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
.getValue=${this.__codeMappingsGetValue}
|
|
413
|
-
.setValue=${this.__codeMappingsSetValue}
|
|
414
|
-
>
|
|
415
|
-
</foxy-internal-editable-list-control>
|
|
423
|
+
<foxy-internal-summary-control infer="taxjar-group-one">
|
|
424
|
+
<foxy-internal-password-control
|
|
425
|
+
json-template=${defaults.taxjar}
|
|
426
|
+
json-path="api_token"
|
|
427
|
+
property="config"
|
|
428
|
+
layout="summary-item"
|
|
429
|
+
infer="taxjar-api-token"
|
|
430
|
+
>
|
|
431
|
+
</foxy-internal-password-control>
|
|
416
432
|
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
433
|
+
<foxy-internal-switch-control
|
|
434
|
+
json-template=${defaults.taxjar}
|
|
435
|
+
json-path="create_invoice"
|
|
436
|
+
property="config"
|
|
437
|
+
infer="taxjar-create-invoice"
|
|
438
|
+
>
|
|
439
|
+
</foxy-internal-switch-control>
|
|
440
|
+
</foxy-internal-summary-control>
|
|
441
|
+
|
|
442
|
+
<foxy-internal-summary-control infer="taxjar-group-two">
|
|
443
|
+
<foxy-internal-editable-list-control
|
|
444
|
+
layout="summary-item"
|
|
445
|
+
infer="taxjar-category-to-product-tax-code-mappings"
|
|
446
|
+
.getValue=${this.__codeMappingsGetValue}
|
|
447
|
+
.setValue=${this.__codeMappingsSetValue}
|
|
448
|
+
>
|
|
449
|
+
</foxy-internal-editable-list-control>
|
|
450
|
+
</foxy-internal-summary-control>
|
|
424
451
|
`;
|
|
425
452
|
}
|
|
426
453
|
__renderOneSourceConfig() {
|
|
427
454
|
return html `
|
|
428
|
-
<foxy-internal-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
.getValue=${this.__createConfigGetterFor('external_company_id')}
|
|
438
|
-
.setValue=${this.__createConfigSetterFor('external_company_id')}
|
|
439
|
-
>
|
|
440
|
-
</foxy-internal-text-control>
|
|
441
|
-
|
|
442
|
-
<foxy-internal-text-control
|
|
443
|
-
infer="onesource-calling-system-number"
|
|
444
|
-
.getValue=${this.__createConfigGetterFor('calling_system_number')}
|
|
445
|
-
.setValue=${this.__createConfigSetterFor('calling_system_number')}
|
|
446
|
-
>
|
|
447
|
-
</foxy-internal-text-control>
|
|
448
|
-
|
|
449
|
-
<foxy-internal-text-control
|
|
450
|
-
infer="onesource-from-city"
|
|
451
|
-
.getValue=${this.__createConfigGetterFor('from_city')}
|
|
452
|
-
.setValue=${this.__createConfigSetterFor('from_city')}
|
|
453
|
-
>
|
|
454
|
-
</foxy-internal-text-control>
|
|
455
|
+
<foxy-internal-summary-control infer="onesource-group-one">
|
|
456
|
+
<foxy-internal-text-control
|
|
457
|
+
json-template=${defaults.onesource}
|
|
458
|
+
json-path="service_url"
|
|
459
|
+
property="config"
|
|
460
|
+
layout="summary-item"
|
|
461
|
+
infer="onesource-service-url"
|
|
462
|
+
>
|
|
463
|
+
</foxy-internal-text-control>
|
|
455
464
|
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
465
|
+
<foxy-internal-text-control
|
|
466
|
+
json-template=${defaults.onesource}
|
|
467
|
+
json-path="external_company_id"
|
|
468
|
+
property="config"
|
|
469
|
+
layout="summary-item"
|
|
470
|
+
infer="onesource-external-company-id"
|
|
471
|
+
>
|
|
472
|
+
</foxy-internal-text-control>
|
|
462
473
|
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
474
|
+
<foxy-internal-text-control
|
|
475
|
+
json-template=${defaults.onesource}
|
|
476
|
+
json-path="from_city"
|
|
477
|
+
property="config"
|
|
478
|
+
layout="summary-item"
|
|
479
|
+
infer="onesource-from-city"
|
|
480
|
+
>
|
|
481
|
+
</foxy-internal-text-control>
|
|
482
|
+
</foxy-internal-summary-control>
|
|
470
483
|
|
|
471
|
-
<foxy-internal-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
484
|
+
<foxy-internal-summary-control infer="onesource-group-two">
|
|
485
|
+
<foxy-internal-text-control
|
|
486
|
+
json-template=${defaults.onesource}
|
|
487
|
+
json-path="calling_system_number"
|
|
488
|
+
property="config"
|
|
489
|
+
layout="summary-item"
|
|
490
|
+
infer="onesource-calling-system-number"
|
|
491
|
+
>
|
|
492
|
+
</foxy-internal-text-control>
|
|
477
493
|
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
494
|
+
<foxy-internal-text-control
|
|
495
|
+
json-template=${defaults.onesource}
|
|
496
|
+
json-path="host_system"
|
|
497
|
+
property="config"
|
|
498
|
+
layout="summary-item"
|
|
499
|
+
infer="onesource-host-system"
|
|
500
|
+
>
|
|
501
|
+
</foxy-internal-text-control>
|
|
502
|
+
</foxy-internal-summary-control>
|
|
503
|
+
|
|
504
|
+
<foxy-internal-summary-control infer="onesource-group-three">
|
|
505
|
+
<foxy-internal-select-control
|
|
506
|
+
json-template=${defaults.onesource}
|
|
507
|
+
json-path="audit_settings"
|
|
508
|
+
property="config"
|
|
509
|
+
layout="summary-item"
|
|
510
|
+
infer="onesource-audit-settings"
|
|
511
|
+
.options=${this.__onesourceAuditSettingsOptions}
|
|
512
|
+
>
|
|
513
|
+
</foxy-internal-select-control>
|
|
514
|
+
|
|
515
|
+
<foxy-internal-select-control
|
|
516
|
+
json-template=${defaults.onesource}
|
|
517
|
+
json-path="company_role"
|
|
518
|
+
property="config"
|
|
519
|
+
layout="summary-item"
|
|
520
|
+
infer="onesource-company-role"
|
|
521
|
+
.options=${this.__onesourceCompanyRoleOptions}
|
|
522
|
+
>
|
|
523
|
+
</foxy-internal-select-control>
|
|
524
|
+
</foxy-internal-summary-control>
|
|
484
525
|
|
|
485
|
-
<foxy-internal-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
526
|
+
<foxy-internal-summary-control infer="onesource-group-four">
|
|
527
|
+
<foxy-internal-text-control
|
|
528
|
+
json-template=${defaults.onesource}
|
|
529
|
+
json-path="part_number_product_option"
|
|
530
|
+
property="config"
|
|
531
|
+
layout="summary-item"
|
|
532
|
+
infer="onesource-part-number-product-option"
|
|
533
|
+
.getValue=${this.__createConfigGetterFor('part_number_product_option')}
|
|
534
|
+
.setValue=${this.__createConfigSetterFor('part_number_product_option')}
|
|
535
|
+
>
|
|
536
|
+
</foxy-internal-text-control>
|
|
537
|
+
</foxy-internal-summary-control>
|
|
538
|
+
|
|
539
|
+
<foxy-internal-summary-control infer="onesource-group-five">
|
|
540
|
+
<foxy-internal-editable-list-control
|
|
541
|
+
layout="summary-item"
|
|
542
|
+
infer="onesource-product-order-priority"
|
|
543
|
+
.getValue=${this.__onesourceProductOrderPriorityGetValue}
|
|
544
|
+
.setValue=${this.__onesourceProductOrderPrioritySetValue}
|
|
545
|
+
>
|
|
546
|
+
</foxy-internal-editable-list-control>
|
|
547
|
+
</foxy-internal-summary-control>
|
|
492
548
|
`;
|
|
493
549
|
}
|
|
494
550
|
__renderWebhookConfig() {
|
|
@@ -521,178 +577,245 @@ export class NativeIntegrationForm extends Base {
|
|
|
521
577
|
}
|
|
522
578
|
__renderWebhookJsonConfig() {
|
|
523
579
|
return html `
|
|
524
|
-
<foxy-internal-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
.getValue=${this.__createConfigGetterFor('url')}
|
|
534
|
-
.setValue=${this.__createConfigSetterFor('url')}
|
|
535
|
-
>
|
|
536
|
-
</foxy-internal-text-area-control>
|
|
537
|
-
|
|
538
|
-
<foxy-internal-radio-group-control
|
|
539
|
-
infer="webhook-service"
|
|
540
|
-
.getValue=${this.__createConfigGetterFor('service')}
|
|
541
|
-
.setValue=${this.__createConfigSetterFor('service')}
|
|
542
|
-
.options=${this.__webhookServiceOptions}
|
|
543
|
-
>
|
|
544
|
-
</foxy-internal-radio-group-control>
|
|
580
|
+
<foxy-internal-summary-control infer="webhook-json-group-one">
|
|
581
|
+
<foxy-internal-text-control
|
|
582
|
+
json-template=${defaults.webhookJson}
|
|
583
|
+
json-path="title"
|
|
584
|
+
property="config"
|
|
585
|
+
layout="summary-item"
|
|
586
|
+
infer="webhook-json-title"
|
|
587
|
+
>
|
|
588
|
+
</foxy-internal-text-control>
|
|
545
589
|
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
590
|
+
<foxy-internal-text-control
|
|
591
|
+
json-template=${defaults.webhookJson}
|
|
592
|
+
json-path="url"
|
|
593
|
+
property="config"
|
|
594
|
+
layout="summary-item"
|
|
595
|
+
infer="webhook-json-url"
|
|
596
|
+
>
|
|
597
|
+
</foxy-internal-text-control>
|
|
553
598
|
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
599
|
+
<foxy-internal-select-control
|
|
600
|
+
json-template=${defaults.webhookJson}
|
|
601
|
+
json-path="service"
|
|
602
|
+
property="config"
|
|
603
|
+
layout="summary-item"
|
|
604
|
+
infer="webhook-service"
|
|
605
|
+
.options=${this.__webhookServiceOptions}
|
|
606
|
+
>
|
|
607
|
+
</foxy-internal-select-control>
|
|
608
|
+
|
|
609
|
+
<foxy-internal-password-control
|
|
610
|
+
json-template=${defaults.webhookJson}
|
|
611
|
+
json-path="encryption_key"
|
|
612
|
+
property="config"
|
|
613
|
+
layout="summary-item"
|
|
614
|
+
infer="webhook-json-encryption-key"
|
|
615
|
+
>
|
|
616
|
+
</foxy-internal-password-control>
|
|
617
|
+
</foxy-internal-summary-control>
|
|
618
|
+
|
|
619
|
+
<foxy-internal-summary-control infer="webhook-json-group-two">
|
|
620
|
+
${this.__webhookJsonEventsOptions.map(option => {
|
|
621
|
+
return html `
|
|
622
|
+
<foxy-internal-switch-control
|
|
623
|
+
infer=${`webhook-json-events-${option.value.replace(/\//g, '-')}`}
|
|
624
|
+
.getValue=${() => { var _a, _b; return (_b = (_a = this.__config) === null || _a === void 0 ? void 0 : _a.events) === null || _b === void 0 ? void 0 : _b.includes(option.value); }}
|
|
625
|
+
.setValue=${(value) => {
|
|
626
|
+
var _a, _b;
|
|
627
|
+
const events = (_b = (_a = this.__config) === null || _a === void 0 ? void 0 : _a.events) !== null && _b !== void 0 ? _b : [];
|
|
628
|
+
this.__config = {
|
|
629
|
+
events: value
|
|
630
|
+
? [...events, option.value]
|
|
631
|
+
: events.filter((v) => v !== option.value),
|
|
632
|
+
};
|
|
633
|
+
}}
|
|
634
|
+
>
|
|
635
|
+
</foxy-internal-switch-control>
|
|
636
|
+
`;
|
|
637
|
+
})}
|
|
638
|
+
</foxy-internal-summary-control>
|
|
560
639
|
`;
|
|
561
640
|
}
|
|
562
641
|
__renderWebhookLegacyXmlConfig() {
|
|
563
642
|
return html `
|
|
564
|
-
<foxy-internal-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
643
|
+
<foxy-internal-summary-control infer="webhook-legacy-xml-group-one">
|
|
644
|
+
<foxy-internal-text-control
|
|
645
|
+
json-template=${defaults.webhookLegacyXml}
|
|
646
|
+
json-path="title"
|
|
647
|
+
property="config"
|
|
648
|
+
layout="summary-item"
|
|
649
|
+
infer="webhook-legacy-xml-title"
|
|
650
|
+
>
|
|
651
|
+
</foxy-internal-text-control>
|
|
570
652
|
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
653
|
+
<foxy-internal-text-control
|
|
654
|
+
json-template=${defaults.webhookLegacyXml}
|
|
655
|
+
json-path="url"
|
|
656
|
+
property="config"
|
|
657
|
+
layout="summary-item"
|
|
658
|
+
infer="webhook-legacy-xml-url"
|
|
659
|
+
>
|
|
660
|
+
</foxy-internal-text-control>
|
|
577
661
|
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
662
|
+
<foxy-internal-select-control
|
|
663
|
+
json-template=${defaults.webhookLegacyXml}
|
|
664
|
+
json-path="service"
|
|
665
|
+
property="config"
|
|
666
|
+
layout="summary-item"
|
|
667
|
+
infer="webhook-service"
|
|
668
|
+
.options=${this.__webhookServiceOptions}
|
|
669
|
+
>
|
|
670
|
+
</foxy-internal-select-control>
|
|
671
|
+
</foxy-internal-summary-control>
|
|
585
672
|
`;
|
|
586
673
|
}
|
|
587
674
|
__renderWebflowConfig() {
|
|
588
675
|
return html `
|
|
589
|
-
<
|
|
676
|
+
<foxy-internal-summary-control infer="webflow-group-one">
|
|
590
677
|
<foxy-internal-text-control
|
|
678
|
+
json-template=${defaults.webflow}
|
|
679
|
+
json-path="site_id"
|
|
680
|
+
property="config"
|
|
681
|
+
layout="summary-item"
|
|
591
682
|
infer="webflow-site-id"
|
|
592
|
-
.getValue=${this.__createConfigGetterFor('site_id')}
|
|
593
|
-
.setValue=${this.__createConfigSetterFor('site_id')}
|
|
594
683
|
>
|
|
595
684
|
</foxy-internal-text-control>
|
|
596
685
|
|
|
597
686
|
<foxy-internal-text-control
|
|
687
|
+
json-template=${defaults.webflow}
|
|
688
|
+
json-path="site_name"
|
|
689
|
+
property="config"
|
|
690
|
+
layout="summary-item"
|
|
598
691
|
infer="webflow-site-name"
|
|
599
|
-
.getValue=${this.__createConfigGetterFor('site_name')}
|
|
600
|
-
.setValue=${this.__createConfigSetterFor('site_name')}
|
|
601
692
|
>
|
|
602
693
|
</foxy-internal-text-control>
|
|
694
|
+
</foxy-internal-summary-control>
|
|
603
695
|
|
|
696
|
+
<foxy-internal-summary-control infer="webflow-group-two">
|
|
604
697
|
<foxy-internal-text-control
|
|
698
|
+
json-template=${defaults.webflow}
|
|
699
|
+
json-path="collection_id"
|
|
700
|
+
property="config"
|
|
701
|
+
layout="summary-item"
|
|
605
702
|
infer="webflow-collection-id"
|
|
606
|
-
.getValue=${this.__createConfigGetterFor('collection_id')}
|
|
607
|
-
.setValue=${this.__createConfigSetterFor('collection_id')}
|
|
608
703
|
>
|
|
609
704
|
</foxy-internal-text-control>
|
|
610
705
|
|
|
611
706
|
<foxy-internal-text-control
|
|
707
|
+
json-template=${defaults.webflow}
|
|
708
|
+
json-path="collection_name"
|
|
709
|
+
property="config"
|
|
710
|
+
layout="summary-item"
|
|
612
711
|
infer="webflow-collection-name"
|
|
613
|
-
.getValue=${this.__createConfigGetterFor('collection_name')}
|
|
614
|
-
.setValue=${this.__createConfigSetterFor('collection_name')}
|
|
615
712
|
>
|
|
616
713
|
</foxy-internal-text-control>
|
|
714
|
+
</foxy-internal-summary-control>
|
|
617
715
|
|
|
716
|
+
<foxy-internal-summary-control infer="webflow-group-three">
|
|
618
717
|
<foxy-internal-text-control
|
|
718
|
+
json-template=${defaults.webflow}
|
|
719
|
+
json-path="sku_field_id"
|
|
720
|
+
property="config"
|
|
721
|
+
layout="summary-item"
|
|
619
722
|
infer="webflow-sku-field-id"
|
|
620
|
-
.getValue=${this.__createConfigGetterFor('sku_field_id')}
|
|
621
|
-
.setValue=${this.__createConfigSetterFor('sku_field_id')}
|
|
622
723
|
>
|
|
623
724
|
</foxy-internal-text-control>
|
|
624
725
|
|
|
625
726
|
<foxy-internal-text-control
|
|
727
|
+
json-template=${defaults.webflow}
|
|
728
|
+
json-path="sku_field_name"
|
|
729
|
+
property="config"
|
|
730
|
+
layout="summary-item"
|
|
626
731
|
infer="webflow-sku-field-name"
|
|
627
|
-
.getValue=${this.__createConfigGetterFor('sku_field_name')}
|
|
628
|
-
.setValue=${this.__createConfigSetterFor('sku_field_name')}
|
|
629
732
|
>
|
|
630
733
|
</foxy-internal-text-control>
|
|
734
|
+
</foxy-internal-summary-control>
|
|
631
735
|
|
|
736
|
+
<foxy-internal-summary-control infer="webflow-group-four">
|
|
632
737
|
<foxy-internal-text-control
|
|
738
|
+
json-template=${defaults.webflow}
|
|
739
|
+
json-path="inventory_field_id"
|
|
740
|
+
property="config"
|
|
741
|
+
layout="summary-item"
|
|
633
742
|
infer="webflow-inventory-field-id"
|
|
634
|
-
.getValue=${this.__createConfigGetterFor('inventory_field_id')}
|
|
635
|
-
.setValue=${this.__createConfigSetterFor('inventory_field_id')}
|
|
636
743
|
>
|
|
637
744
|
</foxy-internal-text-control>
|
|
638
745
|
|
|
639
746
|
<foxy-internal-text-control
|
|
747
|
+
json-template=${defaults.webflow}
|
|
748
|
+
json-path="inventory_field_name"
|
|
749
|
+
property="config"
|
|
750
|
+
layout="summary-item"
|
|
640
751
|
infer="webflow-inventory-field-name"
|
|
641
|
-
.getValue=${this.__createConfigGetterFor('inventory_field_name')}
|
|
642
|
-
.setValue=${this.__createConfigSetterFor('inventory_field_name')}
|
|
643
752
|
>
|
|
644
753
|
</foxy-internal-text-control>
|
|
645
|
-
</
|
|
754
|
+
</foxy-internal-summary-control>
|
|
646
755
|
`;
|
|
647
756
|
}
|
|
648
757
|
__renderZapierConfig() {
|
|
649
758
|
return html `
|
|
650
|
-
<foxy-internal-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
759
|
+
<foxy-internal-summary-control infer="zapier-group-one">
|
|
760
|
+
<foxy-internal-text-control
|
|
761
|
+
json-template=${defaults.zapier}
|
|
762
|
+
json-path="url"
|
|
763
|
+
property="config"
|
|
764
|
+
layout="summary-item"
|
|
765
|
+
infer="zapier-url"
|
|
766
|
+
>
|
|
767
|
+
</foxy-internal-text-control>
|
|
656
768
|
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
769
|
+
<foxy-internal-editable-list-control
|
|
770
|
+
json-template=${defaults.zapier}
|
|
771
|
+
json-path="events"
|
|
772
|
+
property="config"
|
|
773
|
+
layout="summary-item"
|
|
774
|
+
infer="zapier-events"
|
|
775
|
+
simple-value
|
|
776
|
+
>
|
|
777
|
+
</foxy-internal-editable-list-control>
|
|
663
778
|
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
779
|
+
<p class="text-secondary leading-xs">
|
|
780
|
+
<foxy-i18n infer="zapier-warning" key="warning_text"></foxy-i18n>
|
|
781
|
+
</p>
|
|
782
|
+
</foxy-internal-summary-control>
|
|
667
783
|
`;
|
|
668
784
|
}
|
|
669
785
|
__renderApplePayConfig() {
|
|
670
786
|
return html `
|
|
671
|
-
<foxy-internal-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
787
|
+
<foxy-internal-summary-control infer="apple-pay-group-one">
|
|
788
|
+
<foxy-internal-text-control
|
|
789
|
+
json-template=${defaults.applePay}
|
|
790
|
+
json-path="merchantID"
|
|
791
|
+
property="config"
|
|
792
|
+
layout="summary-item"
|
|
793
|
+
infer="apple-pay-merchant-id"
|
|
794
|
+
>
|
|
795
|
+
</foxy-internal-text-control>
|
|
677
796
|
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
797
|
+
<p class="text-secondary leading-xs">
|
|
798
|
+
<foxy-i18n infer="apple-pay-warning" key="warning_text"></foxy-i18n>
|
|
799
|
+
</p>
|
|
800
|
+
</foxy-internal-summary-control>
|
|
681
801
|
`;
|
|
682
802
|
}
|
|
683
803
|
__renderCustomTaxConfig() {
|
|
684
804
|
return html `
|
|
685
|
-
<foxy-internal-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
</
|
|
805
|
+
<foxy-internal-summary-control infer="custom-tax-group-one">
|
|
806
|
+
<foxy-internal-text-control
|
|
807
|
+
json-template=${defaults.customTax}
|
|
808
|
+
json-path="url"
|
|
809
|
+
property="config"
|
|
810
|
+
layout="summary-item"
|
|
811
|
+
infer="custom-tax-url"
|
|
812
|
+
>
|
|
813
|
+
</foxy-internal-text-control>
|
|
814
|
+
</foxy-internal-summary-control>
|
|
695
815
|
`;
|
|
696
816
|
}
|
|
817
|
+
get __storeLoader() {
|
|
818
|
+
return this.renderRoot.querySelector('#storeLoader');
|
|
819
|
+
}
|
|
697
820
|
}
|
|
698
821
|
//# sourceMappingURL=NativeIntegrationForm.js.map
|