_createOpenActions() {
        const hasPreferredWebInstance = this.hasPreferredWebInstance;
        let deepLinkLabel = "Continue";
        if (hasPreferredWebInstance) {
            if (this._proposedPlatform === this._nativePlatform) {
                deepLinkLabel = "Open in app";
            } else {
                deepLinkLabel = `Open on ${this._client.getPreferredWebInstance(this._link)}`;
            }
        }
        const actions = [];
        const proposedDeepLink = this._client.getDeepLink(this._proposedPlatform, this._link);
        if (proposedDeepLink) {
            actions.push({
                label: deepLinkLabel,
                url: proposedDeepLink,
                primary: true,
                activated: () => {
                    this._pickClient(this._client);
                    this.preferences.setClient(this._client.id, this._proposedPlatform);
                    // only show install screen if we tried to open a native deeplink
                    if (this._showOpen && this._proposedPlatform === this._nativePlatform) {
                        this._showOpen = false;
                        this.emitChange();
                    }
                },
            });
        }
        // show only if there is a preferred instance, and if we don't already link to it in the first button
        if (hasPreferredWebInstance && this._webPlatform && this._proposedPlatform !== this._webPlatform) {
            actions.push({
                label: `Open on ${this._client.getPreferredWebInstance(this._link)}`,
                url: this._client.getDeepLink(this._webPlatform, this._link),
                kind: "open-in-web",
                activated: () => {} // don't persist this choice as we don't persist the preferred web instance, it's in the url
            });
        }
        return actions;
    }
// these are only shown in the open stage
these are only shown in the open stage
these are only shown in the open stage
_createOpenActions() {
        const hasPreferredWebInstance = this.hasPreferredWebInstance;
        let deepLinkLabel = "Continue";
        if (hasPreferredWebInstance) {
            if (this._proposedPlatform === this._nativePlatform) {
                deepLinkLabel = "Open in app";
            } else {
                deepLinkLabel = `Open on ${this._client.getPreferredWebInstance(this._link)}`;
            }
        }
        const actions = [];
        const proposedDeepLink = this._client.getDeepLink(this._proposedPlatform, this._link);
        if (proposedDeepLink) {
            actions.push({
                label: deepLinkLabel,
                url: proposedDeepLink,
                primary: true,
                activated: () => {
                    this._pickClient(this._client);
                    this.preferences.setClient(this._client.id, this._proposedPlatform);
                    if (this._showOpen && this._proposedPlatform === this._nativePlatform) {
                        this._showOpen = false;
                        this.emitChange();
                    }
                },
            });
        }
        if (hasPreferredWebInstance && this._webPlatform && this._proposedPlatform !== this._webPlatform) {
            actions.push({
                label: `Open on ${this._client.getPreferredWebInstance(this._link)}`,
                url: this._client.getDeepLink(this._webPlatform, this._link),
                kind: "open-in-web",
                activated: () => {} 
            });
        }
        return actions;
    }
_createOpenActions ( ) { const hasPreferredWebInstance = this . hasPreferredWebInstance ; let deepLinkLabel = "Continue" ; if ( hasPreferredWebInstance ) { if ( this . _proposedPlatform === this . _nativePlatform ) { deepLinkLabel = "Open in app" ; } else { deepLinkLabel = ` ${ this . _client . getPreferredWebInstance ( this . _link ) } ` ; } } const actions = [ ] ; const proposedDeepLink = this . _client . getDeepLink ( this . _proposedPlatform , this . _link ) ; if ( proposedDeepLink ) { actions . push ( { label : deepLinkLabel , url : proposedDeepLink , primary : true , activated : ( ) => { this . _pickClient ( this . _client ) ; this . preferences . setClient ( this . _client . id , this . _proposedPlatform ) ; if ( this . _showOpen && this . _proposedPlatform === this . _nativePlatform ) { this . _showOpen = false ; this . emitChange ( ) ; } } , } ) ; } if ( hasPreferredWebInstance && this . _webPlatform && this . _proposedPlatform !== this . _webPlatform ) { actions . push ( { label : ` ${ this . _client . getPreferredWebInstance ( this . _link ) } ` , url : this . _client . getDeepLink ( this . _webPlatform , this . _link ) , kind : "open-in-web" , activated : ( ) => { } } ) ; } return actions ; }
these are only shown in the open stage
these are only shown in the open stage
// only show install screen if we tried to open a native deeplink // show only if there is a preferred instance, and if we don't already link to it in the first button // don't persist this choice as we don't persist the preferred web instance, it's in the url