import { html } from '@skhemata/skhemata-base'; import { SkhemataCrowdfundingManagerSection } from './SkhemataCrowdfundingManagerSection'; export class SkhemataCrowdfundingManagerProfile extends SkhemataCrowdfundingManagerSection{ profileTypeId = this.campaign.profile_type_id; advancedView = this.settings['toggle_profile_type_view_advance']; constructor(){ super(); this.translations = { description: 'Do not worry if you cannot think of anything to say you can change your bio later on.' } } updateSettings(data) { if(data['profile_type_id']) { this.profileTypeId = data['profile_type_id']; } else { this.profileTypeId = this.campaign['profile_type_id']; } this.advancedView = data['toggle_profile_type_view_advance']; this.requestUpdate(); } render(){ const repeatedFields = [ { type: 'textbox', attributes: { name: "uri", label: 'Url', placeholder: "Url", required: "true" } }, { type: 'textbox', attributes: { name: "uri_text", placeholder: "Link Text", label: 'Text', required: "true" } } ]; let companyImageUrl = ''; if(this.campaign?.business_organizations) { if(this.campaign?.business_organizations[0]?.business_files) { companyImageUrl = this.api['base'] + '/image/campaign_profile/' + this.campaign?.business_organizations[0]?.business_files[0]?.path_external; } } return html` this.updateSettings(e.detail.data)} >

Profile Settings

Individual Profile

Company Profile

`; } }