--- +++ @@ -2,6 +2,7 @@ import { - el, mount, card, button, field, fieldValue, modal, toast, confirmDialog, - pill, loadingBlock, emptyBlock, errorBlock, toggleSwitch, + el, mount, card, button, modal, toast, confirmDialog, + pill, loadingBlock, emptyBlock, errorBlock, toggleSwitch, fmtNum, } from '../core/ui.js'; import { t, extendStrings } from '../core/i18n.js'; +import { paymentRuleForm } from './payment_condition_editor.js'; @@ -72,22 +73,3 @@ -const CHECKS = ['PAYMENT_COUNT', 'PAYMENT_AMOUNT', 'USER_AGE', 'SUBSCRIPTION_COUNT']; -const OPS = ['>=', '<=', '=', '>', '<', '!=']; -const METHOD_CHECKS = { PAYMENT_COUNT: 1, PAYMENT_AMOUNT: 1 }; - -// Operator symbol -> friendly i18n label key. The