import { html, property } from '@skhemata/skhemata-base'
import { SkhemataCrowdfundingManagerSection } from './SkhemataCrowdfundingManagerSection';
export class SkhemataCrowdfundingManagerRewards extends SkhemataCrowdfundingManagerSection{
@property({ type: Array })
rewards: any = []
constructor(){
super();
this.translations = {
name: {
description: 'Create a unique title for your campaign to engage users.',
},
blurb: {
description: 'The campaign blurb will appear in your campaign\'s thumbnail and at the top of your campaign page.',
},
location: {
description: 'Choose the location of your campaign.'
},
fundingMode: {
description: `
Choose between the two funding modes of your choice. If the campaign has no end date (continuous), the Keep it all funding mode will be the default.
Keep it all - Keep all the funds contributed even if the goal isn't met.
All or nothing - Keep the funds contributed if the funded goal is met`
}
};
}
render(){
const repeatedFields = [
{
type: 'textbox',
attributes: {
name: "amount",
label: 'Contribution Amount',
description: 'Set your reward amount you want to receive from backers.',
required: 'true',
placeholder: "0",
type: "number"
}
},
{
type: 'textbox',
attributes: {
name: "name",
label: 'Name',
description: 'Create a title that best describes your reward is offering.',
required: 'true',
placeholder: "Title for your reward",
}
},
{
type: 'textarea',
attributes: {
name: "description",
label: 'Description',
description: 'Describe the details of your reward. You can specify your info about what the backers will be receiving after they claim this reward.',
required: 'true',
}
},
{
type: 'textbox',
attributes: {
name: "item_limit",
label: 'Item Limit',
description: 'Choose how many rewards you want to be offered. If you leave this field blank, there will be no limit to number of claims that can be made for this perk.',
placeholder: "Limit of this reward",
}
},
{
type: 'datepicker',
attributes: {
name: "estimated_delivery_time",
label: 'Estimated Delivery Date (PDT) (Optional)',
description: 'When do you estimate to deliver the items in this reward?',
}
}
];
// value=${this.campaign?.settings[2].value}
return html`
`;
}
}