TimeTrex/interface/html5/dist/quick_punch-header-HeaderViewController.bundle.js

1 line
3.1 KiB
JavaScript

"use strict";(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["quick_punch-header-HeaderViewController"],{5196:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"HeaderViewController\": () => (/* binding */ HeaderViewController)\n/* harmony export */ });\n/* harmony import */ var _views_TTBackboneView__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6739);\n/* harmony import */ var _services_ServiceCaller__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12);\n/* provided dependency */ var _ = __webpack_require__(9050);\n\n\n\nclass HeaderViewController extends _views_TTBackboneView__WEBPACK_IMPORTED_MODULE_0__.TTBackboneView {\n\tconstructor( options = {} ) {\n\t\t_.defaults( options, {} );\n\n\t\tsuper( options );\n\t}\n\n\tinitialize( options ) {\n\t\tsuper.initialize( options );\n\t\tvar tpl = Global.loadWidget( 'views/quick_punch/header/HeaderView.html' );\n\t\tif ( tpl ) { //JS Exception: Uncaught TypeError: Cannot read property 'replace' of undefined\n\t\t\tthis.tpl = _.template( tpl );\n\t\t}\n\t\tthis.render();\n\t}\n\n\trender() {\n\t\tvar url = _services_ServiceCaller__WEBPACK_IMPORTED_MODULE_1__/* .ServiceCaller.getURLByObjectType */ .n.getURLByObjectType( 'primary_company_logo' );\n\t\tif ( this.tpl ) {\n\t\t\tthis.setElement( this.tpl( { company_logo: url } ) );\n\t\t}\n\t}\n\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNTE5Ni5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQXdEO0FBQ0M7O0FBRWxELG1DQUFtQyxpRUFBYztBQUN4RCwyQkFBMkI7QUFDM0IsRUFBRSxDQUFDLHVCQUF1Qjs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