import { Component, h, State } from '@stencil/core';
export class SwContentWrapper {
  constructor() {
    this.baseUrl = 'cicciobello';
    this.done = false;
    this.sendDateForCalendar = false;
  }
  componentWillRender() {
    this.myProperty = { name: "cambiato complimenti", description: "aaaaa", startDate: "2022-07-21T01:15:00", endDate: "2022-07-21T03:15:00", actionRead: false, id: 187, idPluginAction: 9, sendUpdateNotification: false };
  }
  render() {
    return (h("div", null,
      h("button", { onClick: (ev) => this.changeDTO(ev) }, "Submit"),
      h("button", { onClick: (ev) => this.changeAnotherDTO(ev) }, "cambia di nuovo dto"),
      h("sw-addon-reminder", { doneFlag: this.done, idPluginAction: this.idPlugin, idPluginActionExternal: this.idPluginExternal, reminderInfoDTO: this.myProperty, state: "view" }),
      h("sw-addon-reminder", { sendDataForCalendar: this.sendDateForCalendar, reminderInfoDTO: this.myProperty, withoutFooter: true })));
  }
  changeAnotherDTO(ev) {
    if (ev) {
      this.done = false;
      this.idPlugin = 70;
      this.idPluginExternal = 777;
      this.myProperty = { name: "cambiato complimenti", description: "aaaaa", startDate: "2022-07-20T01:15:00", endDate: "2022-07-20T03:15:00", actionRead: false, id: 187, idPluginAction: 9, sendUpdateNotification: false };
    }
  }
  changeDTO(ev) {
    if (ev) {
      this.sendDateForCalendar = true;
      this.done = true;
      this.idPlugin = 69;
      this.idPluginExternal = 666;
      this.baseUrl = 'http://federico-derrico.app.dev.synbee.it';
      this.myProperty = { name: "proviamo di nuovo", description: "aaaaa", startDate: "2022-05-20T01:15:00", endDate: "2022-05-20T03:15:00", actionRead: false, id: 187, idPluginAction: 9, sendUpdateNotification: false };
    }
  }
  static get is() { return "sw-content-wrapper"; }
  static get encapsulation() { return "shadow"; }
  static get originalStyleUrls() { return {
    "$": ["sw-content-wrapper.css"]
  }; }
  static get styleUrls() { return {
    "$": ["sw-content-wrapper.css"]
  }; }
  static get states() { return {
    "myProperty": {}
  }; }
}
