www/category-category-module-es5.js
/**
     * @license
     * Copyright 2019 Google Inc.
     *
     * Licensed under the Apache License, Version 2.0 (the "License");
     * you may not use this file except in compliance with the License.
     * You may obtain a copy of the License at
     *
     *   http://www.apache.org/licenses/LICENSE-2.0
     *
     * Unless required by applicable law or agreed to in writing, software
     * distributed under the License is distributed on an "AS IS" BASIS,
     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
@license
Copyright 2019 Google Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at



Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@license Copyright 2019 Google Inc . Licensed under the Apache License Version 2 . 0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at Unless required by applicable law or agreed to in writing software distributed under the License is distributed on an " AS IS " BASIS WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied . See the License for the specific language governing permissions and limitations under the License .
function extractAppConfig(app) {
      var e_1, _a;
      if (!app || !app.options) {
        throw getMissingValueError('App Configuration Object');
      }
      if (!app.name) {
        throw getMissingValueError('App Name');
      } 
      var configKeys = ['projectId', 'apiKey', 'appId', 'messagingSenderId'];
      var options = app.options;
      try {
        for (var configKeys_1 = Object(tslib__WEBPACK_IMPORTED_MODULE_3__["__values"])(configKeys), configKeys_1_1 = configKeys_1.next(); !configKeys_1_1.done; configKeys_1_1 = configKeys_1.next()) {
          var keyName = configKeys_1_1.value;
          if (!options[keyName]) {
            throw getMissingValueError(keyName);
          }
        }
      } catch (e_1_1) {
        e_1 = {
          error: e_1_1
        };
      } finally {
        try {
          if (configKeys_1_1 && !configKeys_1_1.done && (_a = configKeys_1.return)) _a.call(configKeys_1);
        } finally {
          if (e_1) throw e_1.error;
        }
      }
      return {
        appName: app.name,
        projectId: options.projectId,
        apiKey: options.apiKey,
        appId: options.appId,
        senderId: options.messagingSenderId
      };
    }
function extractAppConfig ( app ) { var e_1 , _a ; if ( ! app || ! app . options ) { throw getMissingValueError ( 'App Configuration Object' ) ; } if ( ! app . name ) { throw getMissingValueError ( 'App Name' ) ; } var configKeys = [ 'projectId' , 'apiKey' , 'appId' , 'messagingSenderId' ] ; var options = app . options ; try { for ( var configKeys_1 = Object ( tslib__WEBPACK_IMPORTED_MODULE_3__ [ "__values" ] ) ( configKeys ) , configKeys_1_1 = configKeys_1 . next ( ) ; ! configKeys_1_1 . done ; configKeys_1_1 = configKeys_1 . next ( ) ) { var keyName = configKeys_1_1 . value ; if ( ! options [ keyName ] ) { throw getMissingValueError ( keyName ) ; } } } catch ( e_1_1 ) { e_1 = { error : e_1_1 } ; } finally { try { if ( configKeys_1_1 && ! configKeys_1_1 . done && ( _a = configKeys_1 . return ) ) _a . call ( configKeys_1 ) ; } finally { if ( e_1 ) throw e_1 . error ; } } return { appName : app . name , projectId : options . projectId , apiKey : options . apiKey , appId : options . appId , senderId : options . messagingSenderId } ; }
@license
 Copyright 2019 Google Inc.
@license Copyright 2019 Google Inc .
// Required app config keys