/
angular-phrase.js.map
1 lines (1 loc) · 7.67 KB
/
angular-phrase.js.map
1
{"version":3,"sources":["webpack:///webpack/bootstrap 9b46f3cf9ea687094b0b","webpack:///external \"angular\"","webpack:///./src/angular-phrase.ts"],"names":[],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA,mDAA2C,cAAc;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;AAEA;AACA;;;;;;;AChEA,yB;;;;;;ACCA,mDAAI,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,wBAAwB,EAAE,IAAI,CAAC,CAAC;AAEvE,MAAM,CAAC,KAAK,CAAC,iBAAiB,EAAE,EAAE,CAAC;AACnC,MAAM,CAAC,KAAK,CAAC,eAAe,EAAE,IAAI,CAAC;AACnC,MAAM,CAAC,KAAK,CAAC,uBAAuB,EAAE,MAAM,CAAC;AAC7C,MAAM,CAAC,KAAK,CAAC,uBAAuB,EAAE,MAAM,CAAC;AAC7C,MAAM,CAAC,KAAK,CAAC,qBAAqB,EAAE,IAAI,CAAC;AAEzC,MAAM,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,UAAS,QAAQ;QAC1C,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,YAAY,EAAE,CAAC,WAAW,EAAE,eAAe,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,UAAS,UAAU,EAAE,aAAa,EAAE,qBAAqB,EAAE,qBAAqB;gBACvM,EAAE,EAAC,aAAa,CAAC,EAAC;oBAChB,UAAU,CAAC,QAAQ,GAAG,UAAU,CAA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/E,IAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC;4BACjC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;wBAC9B,CAAC;oBACH,CAAC;iBACF;YACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,SAAS,CAAC,kBAAkB,EAAE,CAAC,eAAe,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,SAAS,EAAE,UAAC,aAAa,EAAE,eAAe,EAAE,mBAAmB,EAAE,OAAO;QACvK,MAAM,CAAC;YACL,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,IAAI;YACb,IAAI,EAAE;gBACJ,EAAE,EAAC,aAAa,CAAC,CAAC,CAAC;oBACjB,IAAI,GAAG,GAAY,CAAC,UAAU,EAAE,oDAAoD,EAAE,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;oBACpH,OAAO,CAAC,gBAAgB,GAAG;wBACzB,SAAS,EAAE,eAAe;wBAC1B,aAAa,EAAE,mBAAmB;qBACnC;oBACD,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC;gBAC/B,CAAC;YACH,CAAC;SACF;IACH,CAAC,CAAC,CAAC","file":"angular-phrase.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// identity function for calling harmony imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 1);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 9b46f3cf9ea687094b0b","module.exports = angular;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"angular\"\n// module id = 0\n// module chunks = 0","/// <reference path=\"../typings/index.d.ts\" />\nvar phrase = angular.module(\"phrase\", ['pascalprecht.translate', 'ng'])\n\nphrase.value(\"phraseProjectId\", \"\")\nphrase.value(\"phraseEnabled\", true)\nphrase.value(\"phraseDecoratorPrefix\", \"{{__\")\nphrase.value(\"phraseDecoratorSuffix\", \"__}}\")\nphrase.value(\"phraseAutoLowercase\", true)\n\nphrase.config([\"$provide\", function($provide) {\n return $provide.decorator(\"$translate\", [\"$delegate\", \"phraseEnabled\", \"phraseDecoratorPrefix\", \"phraseDecoratorSuffix\", function($translate, phraseEnabled, phraseDecoratorPrefix, phraseDecoratorSuffix) {\n if(phraseEnabled){\n $translate._instant = $translate.instant\n $translate.instant = function(translationId, interpolateParams, interpolationId) : string {\n return phraseDecoratorPrefix+\"phrase_\"+translationId+phraseDecoratorSuffix\n }\n }\n return $translate\n }])\n}])\n\nphrase.config([\"$compileProvider\", function($compileProvider) {\n return $compileProvider.directive('translate', [\"phraseEnabled\", \"phraseDecoratorPrefix\", \"phraseDecoratorSuffix\", function(phraseEnabled, phraseDecoratorPrefix, phraseDecoratorSuffix) : any {\n if(!phraseEnabled){\n return {}\n }\n return {\n priority: 1001,\n terminal: true,\n restrict: 'AE',\n scope: true,\n compile: function(elem, attr) {\n let translationId:string\n if(elem.attr(\"translate\") != undefined){\n if(elem.attr(\"translate\") != \"\")\n translationId = elem.attr(\"translate\")\n else\n translationId = elem.text()\n }\n\n if(translationId){\n let decoratedTranslationId : string = phraseDecoratorPrefix+'phrase_'+translationId+phraseDecoratorSuffix\n if(attr.translateValues)\n decoratedTranslationId = decoratedTranslationId+' ('+attr.translateValues+')'\n elem.html(decoratedTranslationId)\n elem.removeAttr(\"translate\")\n }\n }\n }\n }])\n}])\n\nphrase.directive(\"phraseJavascript\", [\"phraseEnabled\", \"phraseProjectId\", \"phraseAutoLowercase\", \"$window\", (phraseEnabled, phraseProjectId, phraseAutoLowercase, $window) => {\n return {\n restrict: \"EA\",\n replace: true,\n link: () : void => {\n if(phraseEnabled) {\n let url : string = ['https://', 'phraseapp.com/assets/in-context-editor/2.0/app.js?', new Date().getTime()].join('')\n $window.PHRASEAPP_CONFIG = {\n projectId: phraseProjectId,\n autoLowercase: phraseAutoLowercase,\n }\n $window.jQuery.getScript(url)\n }\n }\n }\n}])\n\n\n\n// WEBPACK FOOTER //\n// ./src/angular-phrase.ts"],"sourceRoot":""}