init() {
    this._super(...arguments);

    let signUrlMissingMessage = [
      'SignUrl must be set to use the hello-sign component. You can set the ',
      'key property on the component when instantiating it in your hbs template. ',
      'See how to get SignUrl at https://www.hellosign.com/home/myAccount#api'
    ].join('\n');
    assert(signUrlMissingMessage, this.get('url'));

    let keyMissingMessage =
      'Your HelloSign publishable key seems to be missing. It is required.';
    assert(keyMissingMessage, this.get('key'));

    this.get('hellosign').init(this.get('key'));

    if (!this.get('userCulture')) {
      this.set('userCulture', this.get('hellosign').CULTURES.EN_US);
    }

    let options = this.getProperties([
      'allowCancel',
      'url',
      'redirectUrl',
      'userCulture',
      'debug',
      'skipDomainVerification',
      'height',
      'uxVersion',
      'hideHeader',
      'requester',
      'whiteLabelingOptions',
      'healthCheckTimeoutMs'
    ]);

    /* Do not conflict with ember's `container` attribute. */
    if (this.get('containerElement')) {
      options.container = this.get('containerElement');
    }

    options.messageListener = eventData => {
      switch (eventData.event) {
        case this.hellosign.EVENT_SIGNED:
          this.get('onEventSigned')(eventData);
          break;
        case this.hellosign.EVENT_CANCELED:
          this.get('onEventCanceled')();
          break;
        case this.hellosign.EVENT_ERROR:
          this.get('onEventError')(eventData);
          break;
        default:
          this.get('onEventInvalid')();
      }
    };

    this.get('hellosign').open(options);
  }
// then open embedded HelloSign signing form
then open embedded HelloSign signing form
then open embedded HelloSign signing form
init() {
    this._super(...arguments);
    let signUrlMissingMessage = [
      'SignUrl must be set to use the hello-sign component. You can set the ',
      'key property on the component when instantiating it in your hbs template. ',
      'See how to get SignUrl at https://www.hellosign.com/home/myAccount#api'
    ].join('\n');
    assert(signUrlMissingMessage, this.get('url'));
    let keyMissingMessage =
      'Your HelloSign publishable key seems to be missing. It is required.';
    assert(keyMissingMessage, this.get('key'));
    this.get('hellosign').init(this.get('key'));
    if (!this.get('userCulture')) {
      this.set('userCulture', this.get('hellosign').CULTURES.EN_US);
    }
    let options = this.getProperties([
      'allowCancel',
      'url',
      'redirectUrl',
      'userCulture',
      'debug',
      'skipDomainVerification',
      'height',
      'uxVersion',
      'hideHeader',
      'requester',
      'whiteLabelingOptions',
      'healthCheckTimeoutMs'
    ]);
    if (this.get('containerElement')) {
      options.container = this.get('containerElement');
    }
    options.messageListener = eventData => {
      switch (eventData.event) {
        case this.hellosign.EVENT_SIGNED:
          this.get('onEventSigned')(eventData);
          break;
        case this.hellosign.EVENT_CANCELED:
          this.get('onEventCanceled')();
          break;
        case this.hellosign.EVENT_ERROR:
          this.get('onEventError')(eventData);
          break;
        default:
          this.get('onEventInvalid')();
      }
    };
    this.get('hellosign').open(options);
  }
init ( ) { this . _super ( ... arguments ) ; let signUrlMissingMessage = [ 'SignUrl must be set to use the hello-sign component. You can set the ' , 'key property on the component when instantiating it in your hbs template. ' , 'See how to get SignUrl at https://www.hellosign.com/home/myAccount#api' ] . join ( '\n' ) ; assert ( signUrlMissingMessage , this . get ( 'url' ) ) ; let keyMissingMessage = 'Your HelloSign publishable key seems to be missing. It is required.' ; assert ( keyMissingMessage , this . get ( 'key' ) ) ; this . get ( 'hellosign' ) . init ( this . get ( 'key' ) ) ; if ( ! this . get ( 'userCulture' ) ) { this . set ( 'userCulture' , this . get ( 'hellosign' ) . CULTURES . EN_US ) ; } let options = this . getProperties ( [ 'allowCancel' , 'url' , 'redirectUrl' , 'userCulture' , 'debug' , 'skipDomainVerification' , 'height' , 'uxVersion' , 'hideHeader' , 'requester' , 'whiteLabelingOptions' , 'healthCheckTimeoutMs' ] ) ; if ( this . get ( 'containerElement' ) ) { options . container = this . get ( 'containerElement' ) ; } options . messageListener = eventData => { switch ( eventData . event ) { case this . hellosign . EVENT_SIGNED : this . get ( 'onEventSigned' ) ( eventData ) ; break ; case this . hellosign . EVENT_CANCELED : this . get ( 'onEventCanceled' ) ( ) ; break ; case this . hellosign . EVENT_ERROR : this . get ( 'onEventError' ) ( eventData ) ; break ; default : this . get ( 'onEventInvalid' ) ( ) ; } } ; this . get ( 'hellosign' ) . open ( options ) ; }
then open embedded HelloSign signing form
then open embedded HelloSign signing form
/* Do not conflict with ember's `container` attribute. */