www/category-category-module-es5.js
/** Call if FID registration is pending in another request. */
Call if FID registration is pending in another request.
Call if FID registration is pending in another request .
function waitUntilFidRegistration(appConfig) {
      return Object(tslib__WEBPACK_IMPORTED_MODULE_2__["__awaiter"])(this, void 0, void 0, function () {
        var entry, _a, installationEntry, registrationPromise;
        return Object(tslib__WEBPACK_IMPORTED_MODULE_2__["__generator"])(this, function (_b) {
          switch (_b.label) {
            case 0:
              return [4
              , updateInstallationRequest(appConfig)];
            case 1:
              entry = _b.sent();
              _b.label = 2;
            case 2:
              if (!(entry.registrationStatus === 1
              )) return [3
                , 5]; 
              return [4
              , sleep(100)];
            case 3:
              _b.sent();
              return [4
              , updateInstallationRequest(appConfig)];
            case 4:
              entry = _b.sent();
              return [3
              , 2];
            case 5:
              if (!(entry.registrationStatus === 0
              )) return [3
                , 7];
              return [4
              , getInstallationEntry(appConfig)];
            case 6:
              _a = _b.sent(), installationEntry = _a.installationEntry, registrationPromise = _a.registrationPromise;
              if (registrationPromise) {
                return [2
                , registrationPromise];
              } else {
                return [2
                , installationEntry];
              }
            case 7:
              return [2
              , entry];
          }
        });
      });
    }
function waitUntilFidRegistration ( appConfig ) { return Object ( tslib__WEBPACK_IMPORTED_MODULE_2__ [ "__awaiter" ] ) ( this , void 0 , void 0 , function ( ) { var entry , _a , installationEntry , registrationPromise ; return Object ( tslib__WEBPACK_IMPORTED_MODULE_2__ [ "__generator" ] ) ( this , function ( _b ) { switch ( _b . label ) { case 0 : return [ 4 , updateInstallationRequest ( appConfig ) ] ; case 1 : entry = _b . sent ( ) ; _b . label = 2 ; case 2 : if ( ! ( entry . registrationStatus === 1 ) ) return [ 3 , 5 ] ; return [ 4 , sleep ( 100 ) ] ; case 3 : _b . sent ( ) ; return [ 4 , updateInstallationRequest ( appConfig ) ] ; case 4 : entry = _b . sent ( ) ; return [ 3 , 2 ] ; case 5 : if ( ! ( entry . registrationStatus === 0 ) ) return [ 3 , 7 ] ; return [ 4 , getInstallationEntry ( appConfig ) ] ; case 6 : _a = _b . sent ( ) , installationEntry = _a . installationEntry , registrationPromise = _a . registrationPromise ; if ( registrationPromise ) { return [ 2 , registrationPromise ] ; } else { return [ 2 , installationEntry ] ; } case 7 : return [ 2 , entry ] ; } } ) ; } ) ; }
Call if FID registration is pending in another request.
Call if FID registration is pending in another request .
/*yield*/ /* IN_PROGRESS */ /*break*/ // createInstallation request still in progress. /*yield*/ // createInstallation request still in progress. /*yield*/ /*break*/ /* NOT_STARTED */ /*break*/ /*yield*/ /*return*/ // if there is no registrationPromise, entry is registered. /*return*/ /*return*/