Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated README.md

  • Loading branch information...
commit e65ce1dc8e0eea67362285575659094e1b0b26cd 2 parents 7847e18 + 43fca11
@sirrapa authored
View
2  src/main/java/com/sirrapa/maven/plugins/nodejs/NodeJsMojo.java
@@ -148,7 +148,7 @@ protected void executeCommandLine(Commandline commandLine)
getLog().info(output);
}
if (exitCode != 0) {
- output = StringUtils.isEmpty(systemOut.getOutput()) ? null : '\n' + systemErr.getOutput().trim();
+ output = StringUtils.isEmpty(systemErr.getOutput()) ? null : '\n' + systemErr.getOutput().trim();
if (StringUtils.isNotEmpty(output)) {
getLog().error(output);
}
View
4 src/test/java/com/sirrapa/maven/plugins/nodejs/NodeJsMojoTest.java
@@ -206,14 +206,14 @@ public void testGetCommandLine() throws Exception {
cmd.setShell(new CmdShell());
cmd.getShell().setQuotedExecutableEnabled(false);
cmd.getShell().setQuotedArgumentsEnabled(false);
- String expected = "cmd.exe /X /C \"%s %s -o buildconfig.js\"";
+ String expected = "cmd.exe /X /C \"%s %s -o ${project.build.outputDirectory}/build/buildconfig.js\"";
assertEquals("The windows commandline string is invalid", String.format(expected, executable, module.getName()), cmd.toString());
//faking all OS with bourne shell...
cmd.setShell(new BourneShell());
cmd.getShell().setQuotedExecutableEnabled(false);
cmd.getShell().setQuotedArgumentsEnabled(false);
- expected= "/bin/sh -c cd %s && %s %s -o buildconfig.js";
+ expected= "/bin/sh -c cd %s && %s %s -o ${project.build.outputDirectory}/build/buildconfig.js";
assertEquals("The commandline string is invalid", String.format(expected, cmd.getWorkingDirectory().getAbsolutePath(), executable, module.getName()), cmd.toString());
}
View
12 src/test/resources/projects/project-001/pom.xml
@@ -5,10 +5,14 @@
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>Sample pom</name>
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+ </properties>
<build>
<resources>
<resource>
- <directory>src/main/build</directory>
+ <directory>src/main/javascript</directory>
<filtering>true</filtering>
</resource>
</resources>
@@ -28,12 +32,12 @@
<!--</executions>-->
<configuration>
<nodejsVersion>0.8.15</nodejsVersion>
- <workingDirectory>${project.build.outputDirectory}</workingDirectory>
+ <workingDirectory>${project.build.outputDirectory}/build</workingDirectory>
<modules>
<module>
- <name>r.js</name>
+ <name>${project.build.outputDirectory}/build/r.js</name>
<arguments>
- <argument>-o buildconfig.js</argument>
+ <argument>-o ${project.build.outputDirectory}/build/buildconfig.js</argument>
</arguments>
</module>
</modules>
View
41 src/test/resources/projects/project-001/src/main/build/buildconfig.js
@@ -1,41 +0,0 @@
-// docs
-// https://github.com/jrburke/r.js/blob/master/build/example.build.js
-({
- //appDir : "${project.build.directory}/filtered/modules",
- baseUrl : "./",
- dir : "intermediate",
- paths : {
- "v1" : "../ams/frontend/v-1/js/modules",
- "dlpstatic" : "../static"
- },
-
- optimize : "uglify", // 'uglify for production'
-
- // Finds require() dependencies inside a require() or define call.
- // needed for laf-mi.js inside bootstrap
- findNestedDependencies: true,
-
- optimizeCss : "standard.keepLines",
-
- preserveLicenceComments : true,
-
- modules : [
- {
- name : "dlpstatic/js/dlp",
- include : [
- "dlpstatic/js/dlp-view-offer"
- ],
- exclude : [
- "v1/jquery"
- ]
- },
- {
- name : "dlpstatic/js/dlp-change-origin",
- exclude : [
- "v1/jquery"
- ]
- }
- ]
-
-})
-
View
507 src/test/resources/projects/project-001/src/main/build/dist/css/dlp.css
@@ -1,507 +0,0 @@
-
-.g-container {
- width: 936px;
- margin : 0 auto;
- padding: 24px 0 0 24px;
- clear: both;
- max-width:984px;
-
-}
-.g-row {
-
- *padding-bottom:24px;
- *zoom: 1;
- margin-right: 24px;
-}
-.g-row:before,
-.g-row:after {
- display: table;
- content: "";
- line-height: 0;
-}
-.g-row:after {
- clear: both;
-}
-.g-span3,
-.g-span4,
-.g-span6,
-.g-span8,
-.g-span9,
-.g-span12 {
- display: inline;
- float: left;
- min-height: 1px;
- margin-left: 24px;
- margin-bottom: 24px;
-}
-.g-span12 {
- width: 936px;
-}
-.g-span9 {
- width: 696px;
-}
-.g-span8 {
- width: 616px;
-}
-.g-span6 {
- width: 456px;
-}
-.g-span4 {
- width: 296px;
-}
-.g-span3 {
- width: 216px;
-}
-.g-row-fluid {
- width: 100%;
- *zoom: 1;
-}
-.g-row-fluid:before,
-.g-row-fluid:after {
- display: table;
- content: "";
- line-height: 0;
-}
-.g-row-fluid:after {
- clear: both;
-}
-.g-row-fluid .g-span3,
-.g-row-fluid .g-span4,
-.g-row-fluid .g-span6,
-.g-row-fluid .g-span8,
-.g-row-fluid .g-span9,
-.g-row-fluid .g-span12 {
- display: block;
- width: 100%;
- min-height: 30px;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- float: left;
- margin-left: 2.56%;
- *margin-left: 2.51%;
-}
-.g-row-fluid .g-span3:first-child,
-.g-row-fluid .g-span4:first-child,
-.g-row-fluid .g-span6:first-child,
-.g-row-fluid .g-span8:first-child,
-.g-row-fluid .g-span9:first-child,
-.g-row-fluid .g-span12:first-child {
- margin-left: 0;
-}
-.g-row-fluid .g-span12 {
- width: 100%;
- *width: 99.95%;
-}
-.g-row-fluid .g-span9 {
- width: 74.36%;
- *width: 74.31%;
-}
-.g-row-fluid .g-span8 {
- width: 65.81%;
- *width: 65.76%;
-}
-.g-row-fluid .g-span6 {
- width: 48.72%;
- *width: 48.66%;
-}
-.g-row-fluid .g-span4 {
- width: 31.62%;
- *width: 31.57%;
-}
-.g-row-fluid .g-span3 {
- width: 23.08%;
- *width: 23.02%;
-}
-@media (max-width: 979px) {
-
- .g-container-fluid {
- padding: 0;
- }
- .g-container {
- width: auto;
- }
- .g-row-fluid {
- width: 100%;
- }
- .g-row {
- margin-left: 0;
- }
-
-}
-@media (min-width: 420px) and (max-width: 983px) {
- .g-row .g-span12 {
- width: auto;
- float: none;
- display: block;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- margin-left: 24px;
- }
-}
-@media (min-width: 420px) and (max-width: 743px) {
- .g-row .g-span9 {
- width: auto;
- float: none;
- clear: left;
- display: block;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- margin-left: 24px;
- }
-}
-@media (min-width: 420px) and (max-width: 663px) {
- .g-row .g-span8 {
- width: auto;
- float: none;
- clear: left;
- display: block;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- margin-left: 24px;
- }
-}
-@media (min-width: 420px) and (max-width: 503px) {
- .g-row .g-span6 {
- width: auto;
- float: none;
- clear: left;
- display: block;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- margin-left: 24px;
- }
-}
-@media (max-width: 419px) {
- .g-row {
- margin-right: 0;
- }
-
- [class*="g-span"],
- .g-row-fluid [class*="g-span"] {
- float: none;
- display: block;
- width: 100%;
- margin-right: 0;
- margin-left: 0;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- }
-}
-.klm-wrapper {
- max-width: 1280px;
- margin: 0 auto;
-}
-.klm-content-header {
- max-width: 984px;
- margin : 0 auto;
- padding: 10px 0 0 0;
-}
-.klm-content {
- max-width: 984px;
- margin: 0 auto;
-}
-.klm-page-title, h1 {
- color: #00A1DE;
- font-size: 32px;
-}
-.klm-content-header h1 {
- padding-bottom: 14px;
-}
-
-.klm-section-title {
- font-family: 'NoaLight', verdana, arial, sans-serif;
- font-weight: normal;
- -webkit-font-smoothing: antialiased;
- color: #005B82;
- font-size: 22px;
- margin-left:24px;
- margin-bottom: 24px;
-}
-
-.dlp-pb-boxcontainer {
- min-height: 165px;
-}
-.dlp-pb-pricebox {
- min-width: 200px;
- max-width: 230px;
- text-align: right;
-
- padding: 11px 18px 18px 18px;
-
- float: right;
- box-shadow: 0 2px 3px #BFCBD0;
-
- background: #fff;
-}
-.dlp-pb-pricebox p {
- clear: both;
-}
-.dlp-pb-topshadow {
- background-image: linear-gradient(top, #D9E0E3 0%, #FFFFFF 8px);
- background-image: -o-linear-gradient(top, #D9E0E3 0%, #FFFFFF 8px);
- background-image: -moz-linear-gradient(top, #D9E0E3 0%, #FFFFFF 8px);
- background-image: -webkit-linear-gradient(top, #D9E0E3 0%, #FFFFFF 8px);
- background-image: -ms-linear-gradient(top, #D9E0E3 0%, #FFFFFF 8px);
- background-image: -webkit-gradient( linear, left top, left bottom, color-stop(0, #D9E0E3), color-stop(0.04, #FFFFFF));
- border-top: solid 1px #D9E0E3;
-}
-.dlp-pb-heading {
- text-align: left;
- color: #00a1de;
- font-size: 22px;
- margin-bottom: 4px;
-}
-.dlp-pb-fare-label {
- float: left;
- margin-bottom: 4px;
-}
-.dlp-pb-pricebox p {
- clear: both;
-}
-.dlp-pb-fare-line {
- float: right;
- display: block;
-}
-.dlp-pb-fare {
- color: #00a1de;
- position: relative;
- top: -5px;
- margin-bottom: 12px;
-}
-.dlp-pb-fare-currency {
- vertical-align: top;
- padding-left: 5px;
- font-size: 18px;
-}
-.dlp-pb-fare-value {
- display:inline-block;
- margin-top: -3px;
- vertical-align: top;
- padding-left: 5px;
- font-size: 32px;
- line-height: 1;
-}
-.dlp-pb-specialprice {
- color: #E37222;
-}
-.dlp-pb-fare-original {
- text-decoration: line-through;
-}
-.dlp-pb-fare-conditions {
- margin-bottom: 18px;
- text-align: left;
- color: #9b9b9b;
- clear: both;
-}
-.dlp-pb-fare-condition {
- margin: 0 0 1px 18px;
- list-style: disc;
-}
-.dlp-search input {
- width: 260px;
-}
-.dlp-search label {
- padding-right: 10px;
- font-weight: bold;
- color: #005b82;
-}
-* html .ui-autocomplete {
- height: 200px;
- overflow: auto;
-}
-.ui-autocomplete li {
- list-style: none;
- margin: 0;
- padding: 0;
-}
-.ui-autocomplete-hint,
-.ui-autocomplete {
- text-align: left;
- margin: 0;
- padding: 0;
- position: absolute;
- width: 320px;
- max-height: 200px;
- overflow: auto;
- white-space: normal;
- background-color: white;
- border: 1px solid #c2deea;
- -moz-box-shadow: 0 0 5px #b2b2b2;
- -webkit-box-shadow: 0 0 5px #b2b2b2;
- box-shadow: 0 0 5px #b2b2b2;
- z-index: 999;
-}
-.ui-autocomplete-hint {
- padding: 10px;
-}
-.ui-autocomplete strong {
- font-weight: bold;
-}
-.ui-autocomplete li span {
- display: block;
- padding: 8px 4px 8px 12px;
- font-size: 0.9em;
- line-height: 1.3em;
- background: #eee;
-}
-.ui-autocomplete a {
- display: block;
- cursor: pointer;
- outline: none;
- padding: 4px 4px 4px 12px;
- color: #003145;
-}
-.ui-autocomplete .ui-state-hover {
- background-color: #C2DEEA;
-}
-.dlp-tt-box {
- min-height: 238px;
-
- padding: 20px 24px 0 24px;
-
- background: #F3F8FB;
- border: solid 1px #8DC9E8;
- font-size: 12px;
-}
-.dlp-tt-heading {
- color: #005B82;
- font-size: 22px;
- padding-bottom: 10px;
- border-bottom: 1px solid #8DC9E8;
-}
-.dlp-tt-infolines {
- color: #005B82;
- margin: 10px 0;
-}
-.dlp-tt-infolines li {
- clear: both;
- line-height: 20px;
-}
-.dlp-tt-infolinebullet {
- color: #00a1de;
- font-size: 20px;
- line-height: 1;
-}
-.dlp-tt-box ul {
- margin-bottom: 20px;
-}
-.dlp-tt-time {
- float: left;
- white-space: nowrap;
- padding-right: 5px;
-}
-.dlp-tt-infoline {
- display: block;
- *display: inline-block;
- overflow: hidden;
- font-weight: bold;
-}
-.dlp-tt-linktodetail {
- color: #00a1de;
- display: block;
- margin-bottom: 15px;
-}
-@charset "utf-8";
-.dlp-weather-box {
- text-align: left;
- padding: 20px 24px 24px 24px;
- background: #F3F8FB;
- border: solid 1px #8DC9E8;
- font-size: 12px;
- line-height: 20px;
-}
-.dd-trigger {position:relative;}
-.dd-weather-sub {
- text-align: center;
- padding: 24px 0 0 0;
-}
-.dd-weather-sub img {height:86px;width:86px}
-.dd-mmb-temp {display:inline;font-size:24px;color:#00A1DE;vertical-align:top}
-.dd-trigger h4 {
- font-family: Verdana, Arial, Helvetica, sans-serif;
- font-size: 24px;
- color:#00a1de;
- margin-bottom:24px;
-}
-.dd-trigger p { color:#00a1de;margin-bottom: 0; font-size: inherit}
-.dd-trigger p a { text-decoration: none; }
-.dd-trigger p a:hover { text-decoration: underline; }
-
- .dlp-content {
- position: relative;
- z-index: 10;
-}
-.klm-hdr {
- position: relative;
- z-index: 12;
- width: 984px;
- margin: 0 auto;
-}
-@media (max-width: 984px) {
- .klm-hdr {
- max-width: 984px;
- width: auto;
- }
-}
-.dlp-top-img {
- position: absolute;
- display: block;
- max-width: 1280px;
- min-width: 916px;
-}
-@media (max-width: 1297px) {
- .dlp-top-img {
- max-width: 100%;
- }
-}
-.dlp-heading {
- text-align: left;
- color: #00a1de;
- font-size: 22px;
-}
-.dlp-share-buttons {
- float: right;
-}
-.dlp-search {
- margin-bottom: 24px;
-}
-.dlp-highlightscontainer {
- height: 238px;
- position: relative;
-}
-.dlp-highlights {
- position: absolute;
- bottom : 0;
- left: 0;
- padding: 12px;
- float: left;
- width: 312px;
- box-shadow: 0 1px 3px #BFCBD0;
- background: #fff;
-}
-.dlp-topimglabel {
- float: right;
- padding: 5px 10px;
- margin: 0 0 16px 0;
- color: #005b82;
- font-size: 11px;
- background: rgba(255, 255, 255, 0.8);
- background: #fff;
- text-align: right;
-
-}
-.dlp-body {
- clear: both;
- background: #fff;
- padding: 24px 0 0 0;
-}
-.g-more-link a,a:visited{color:#00A1DE;font-family:Verdana;text-decoration:none}
-.g-more-link a:hover{text-decoration:underline}
-.g-more-link a.normal{text-decoration:none}
-.g-more-link a.normal:hover{text-decoration:underline}
View
19 src/test/resources/projects/project-001/src/main/build/dist/js/dlp-change-origin.js
@@ -1,19 +0,0 @@
-/*!
- * jQuery UI 1.8.15
- *
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI
- */
-/*!
- * jQuery UI Widget 1.8.15
- *
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Widget
- */
-define("v1/utils",[],function(){function a(a){return typeof a=="undefined"}function b(a){return a===null}function c(a){return typeof a=="string"}function d(a){return typeof a=="number"}function e(a){return typeof a=="boolean"}function f(a){return typeof a=="function"}function g(a){return!b(a)&&typeof a=="object"}function h(a){return g(a)&&a.constructor===Array}function i(a){if(!g(a))return!1;try{return a instanceof HTMLDocument}catch(b){return c(a.nodeName)&&g(a.getElementById)}}function j(a){if(!g(a))return!1;try{return a instanceof HTMLElement}catch(b){return d(a.nodeType)&&i(a.ownerDocument)}}function k(a,b){return Array.prototype.slice.call(a,b||0)}function l(b,c){var d={};if(!arguments.length)return d;for(var e=0;e<arguments.length;e++)if(g(arguments[e]))for(var f in arguments[e]){var h=arguments[e][f];a(h)?delete d[f]:d[f]=h}return d}function m(a){var b=a.split("&"),c={};while(b.length){var d=b.pop().split("=");c[d[0]]=d[1]}return c}function n(a){return c(a)?a.replace(/^\s+|\s+$/g,""):""}function o(a,b){return c(a)?(b&&(a=a.replace(new RegExp(b,"g"),"-")),a.replace(/(\-[a-z])/g,function(a){return a.toUpperCase().replace("-","")})):""}function p(a){var b={};c(a)||(a="");var d=u.exec(a),e=w.length;while(e--)b[w[e]]=d[e]||"";return b.params={},b.query.replace(v,function(a,c,d){c&&(b.params[c]=d)}),b}function q(a,b){var d=p(a);c(a)||(a="");var e=[];if(b!==!1){g(b)||(b={});for(var f in b){if(!b.hasOwnProperty(f))continue;d.params[f]=b[f]}for(var f in d.params){if(!d.params.hasOwnProperty(f))continue;var h=d.params[f];h!==!1&&e.push([f,h].join("="))}}return[d.protocol,"://",d.authority,d.path||"/",e.length?"?"+e.join("&"):"",d.anchor?"#"+d.anchor:""].join("")}function r(a,b){var c=p(a),d=p(b);c.scheme=d.scheme;if(!c.authority){c.authority=d.authority;if(c.path.charAt(0)!="/"){aUriSegments=c.path.split("/"),aBaseUriSegments=d.path.split("/"),aBaseUriSegments.pop();var e=aBaseUriSegments[0]==""?1:0;for(var f in aUriSegments)aUriSegments[f]==".."?aBaseUriSegments.length>e?aBaseUriSegments.pop():(aBaseUriSegments.push(aUriSegments[f]),e++):aUriSegments[f]!="."&&aBaseUriSegments.push(aUriSegments[f]);(aUriSegments[f]==".."||aUriSegments[f]==".")&&aBaseUriSegments.push(""),c.path=aBaseUriSegments.join("/")}}var g="";return c.scheme&&(g+=c.scheme+":"),c.authority&&(g+="//"+c.authority),c.path&&(g+=c.path),c.query&&(g+="?"+c.query),c.fragment&&(g+="#"+c.fragment),g}function s(){var a="",b=window.countryCode,c=window.languageCode;return b&&c&&(a=[b,c].join("_")),a}function t(a){if(!g(window.top.console))return;if(!f(window.top.console.log))return;window.top.console.log(a)}var u=new RegExp("^(?:([^:/?#]+):)?(?://((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:/?#]*)(?::(\\d*))?))?((((?:[^?#/]*/)*)([^?#]*))(?:\\?([^#]*))?(?:#(.*))?)"),v=new RegExp("(?:^|&)([^&=]*)=?([^&]*)","g"),w=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];return"bind"in Function.prototype||(Function.prototype.bind=function(a){var b=this;if(arguments.length<=1)return function(){return b.apply(a,arguments)};var c=k(arguments,1);return function(){return b.apply(a,arguments.length===0?c:c.concat(k(arguments)))}}),"startsWith"in String.prototype||(String.prototype.startsWith=function(a){return this.indexOf(a)===0}),{isUndefined:a,isNull:b,isString:c,isNumber:d,isBoolean:e,isFunction:f,isObject:g,isArray:h,isHTMLDocument:i,isHTMLElement:j,objectMerge:l,stringObject:m,trim:n,toCamelCase:o,parseUri:p,modifyUriParams:q,resolveUri:r,getLocale:s,log:t}}),define("v1/jquery-ui-autocomplete",["v1/jquery"],function(a){(function(a,b){function c(b,c){var e=b.nodeName.toLowerCase();return"area"===e?(c=b.parentNode,e=c.name,!b.href||!e||c.nodeName.toLowerCase()!=="map"?!1:(b=a("img[usemap=#"+e+"]")[0],!!b&&d(b))):(/input|select|textarea|button|object/.test(e)?!b.disabled:"a"==e?b.href||c:c)&&d(b)}function d(b){return!a(b).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{},a.ui.version||(a.extend(a.ui,{version:"1.8.15",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(b,c){return typeof b=="number"?this.each(function(){var d=this;setTimeout(function(){a(d).focus(),c&&c.call(d)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;return b=a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0),/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length){c=a(this[0]);for(var d;c.length&&c[0]!==document;){d=c.css("position");if(d==="absolute"||d==="relative"||d==="fixed"){d=parseInt(c.css("zIndex"),10);if(!isNaN(d)&&d!==0)return d}c=c.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.each(["Width","Height"],function(c,d){function e(b,c,d,e){return a.each(f,function(){c-=parseFloat(a.curCSS(b,"padding"+this,!0))||0,d&&(c-=parseFloat(a.curCSS(b,"border"+this+"Width",!0))||0),e&&(c-=parseFloat(a.curCSS(b,"margin"+this,!0))||0)}),c}var f=d==="Width"?["Left","Right"]:["Top","Bottom"],g=d.toLowerCase(),h={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(c){return c===b?h["inner"+d].call(this):this.each(function(){a(this).css(g,e(this,c)+"px")})},a.fn["outer"+d]=function(b,c){return typeof b!="number"?h["outer"+d].call(this,b):this.each(function(){a(this).css(g,e(this,b,!0,c)+"px")})}}),a.extend(a.expr[":"],{data:function(b,c,d){return!!a.data(b,d[3])},focusable:function(b){return c(b,!isNaN(a.attr(b,"tabindex")))},tabbable:function(b){var d=a.attr(b,"tabindex"),e=isNaN(d);return(e||d>=0)&&c(b,!e)}}),a(function(){var b=document.body,c=b.appendChild(c=document.createElement("div"));a.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),a.support.minHeight=c.offsetHeight===100,a.support.selectstart="onselectstart"in c,b.removeChild(c).style.display="none"}),a.extend(a.ui,{plugin:{add:function(b,c,d){b=a.ui[b].prototype;for(var e in d)b.plugins[e]=b.plugins[e]||[],b.plugins[e].push([c,d[e]])},call:function(a,b,c){if((b=a.plugins[b])&&a.element[0].parentNode)for(var d=0;d<b.length;d++)a.options[b[d][0]]&&b[d][1].apply(a.element,c)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(b,c){if(a(b).css("overflow")==="hidden")return!1;c=c&&c==="left"?"scrollLeft":"scrollTop";var d=!1;return b[c]>0?!0:(b[c]=1,d=b[c]>0,b[c]=0,d)},isOverAxis:function(a,b,c){return a>b&&a<b+c},isOver:function(b,c,d,e,f,g){return a.ui.isOverAxis(b,d,f)&&a.ui.isOverAxis(c,e,g)}}))})(a),function(a,b){if(a.cleanData){var c=a.cleanData;a.cleanData=function(b){for(var d=0,e;(e=b[d])!=null;d++)a(e).triggerHandler("remove");c(b)}}else{var d=a.fn.remove;a.fn.remove=function(b,c){return this.each(function(){return c||(!b||a.filter(b,[this]).length)&&a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")}),d.call(a(this),b,c)})}}a.widget=function(b,c,d){var e=b.split(".")[0],f;b=b.split(".")[1],f=e+"-"+b,d||(d=c,c=a.Widget),a.expr[":"][f]=function(c){return!!a.data(c,b)},a[e]=a[e]||{},a[e][b]=function(a,b){arguments.length&&this._createWidget(a,b)},c=new c,c.options=a.extend(!0,{},c.options),a[e][b].prototype=a.extend(!0,c,{namespace:e,widgetName:b,widgetEventPrefix:a[e][b].prototype.widgetEventPrefix||b,widgetBaseClass:f},d),a.widget.bridge(b,a[e][b])},a.widget.bridge=function(c,d){a.fn[c]=function(e){var f=typeof e=="string",g=Array.prototype.slice.call(arguments,1),h=this;return e=!f&&g.length?a.extend.apply(null,[!0,e].concat(g)):e,f&&e.charAt(0)==="_"?h:(f?this.each(function(){var d=a.data(this,c),f=d&&a.isFunction(d[e])?d[e].apply(d,g):d;if(f!==d&&f!==b)return h=f,!1}):this.each(function(){var b=a.data(this,c);b?b.option(e||{})._init():a.data(this,c,new d(e,this))}),h)}},a.Widget=function(a,b){arguments.length&&this._createWidget(a,b)},a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(b,c){a.data(c,this.widgetName,this),this.element=a(c),this.options=a.extend(!0,{},this.options,this._getCreateOptions(),b);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()}),this._create(),this._trigger("create"),this._init()},_getCreateOptions:function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName),this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(c,d){var e=c;if(arguments.length===0)return a.extend({},this.options);if(typeof c=="string"){if(d===b)return this.options[c];e={},e[c]=d}return this._setOptions(e),this},_setOptions:function(b){var c=this;return a.each(b,function(a,b){c._setOption(a,b)}),this},_setOption:function(a,b){return this.options[a]=b,a==="disabled"&&this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",b),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(b,c,d){var e=this.options[b];c=a.Event(c),c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase(),d=d||{};if(c.originalEvent){b=a.event.props.length;for(var f;b;)f=a.event.props[--b],c[f]=c.originalEvent[f]}return this.element.trigger(c,d),!(a.isFunction(e)&&e.call(this.element[0],c,d)===!1||c.isDefaultPrevented())}}}(a),function(a){a.ui=a.ui||{};var b=/left|center|right/,c=/top|center|bottom/,d=a.fn.position,e=a.fn.offset;a.fn.position=function(e){if(!e||!e.of)return d.apply(this,arguments);e=a.extend({},e);var f=a(e.of),g=f[0],h=(e.collision||"flip").split(" "),i=e.offset?e.offset.split(" "):[0,0],j,k,l;return g.nodeType===9?(j=f.width(),k=f.height(),l={top:0,left:0}):g.setTimeout?(j=f.width(),k=f.height(),l={top:f.scrollTop(),left:f.scrollLeft()}):g.preventDefault?(e.at="left top",j=k=0,l={top:e.of.pageY,left:e.of.pageX}):(j=f.outerWidth(),k=f.outerHeight(),l=f.offset()),a.each(["my","at"],function(){var a=(e[this]||"").split(" ");a.length===1&&(a=b.test(a[0])?a.concat(["center"]):c.test(a[0])?["center"].concat(a):["center","center"]),a[0]=b.test(a[0])?a[0]:"center",a[1]=c.test(a[1])?a[1]:"center",e[this]=a}),h.length===1&&(h[1]=h[0]),i[0]=parseInt(i[0],10)||0,i.length===1&&(i[1]=i[0]),i[1]=parseInt(i[1],10)||0,e.at[0]==="right"?l.left+=j:e.at[0]==="center"&&(l.left+=j/2),e.at[1]==="bottom"?l.top+=k:e.at[1]==="center"&&(l.top+=k/2),l.left+=i[0],l.top+=i[1],this.each(function(){var b=a(this),c=b.outerWidth(),d=b.outerHeight(),f=parseInt(a.curCSS(this,"marginLeft",!0))||0,g=parseInt(a.curCSS(this,"marginTop",!0))||0,m=c+f+(parseInt(a.curCSS(this,"marginRight",!0))||0),n=d+g+(parseInt(a.curCSS(this,"marginBottom",!0))||0),o=a.extend({},l),p;e.my[0]==="right"?o.left-=c:e.my[0]==="center"&&(o.left-=c/2),e.my[1]==="bottom"?o.top-=d:e.my[1]==="center"&&(o.top-=d/2),o.left=Math.round(o.left),o.top=Math.round(o.top),p={left:o.left-f,top:o.top-g},a.each(["left","top"],function(b,f){a.ui.position[h[b]]&&a.ui.position[h[b]][f](o,{targetWidth:j,targetHeight:k,elemWidth:c,elemHeight:d,collisionPosition:p,collisionWidth:m,collisionHeight:n,offset:i,my:e.my,at:e.at})}),a.fn.bgiframe&&b.bgiframe(),b.offset(a.extend(o,{using:e.using}))})},a.ui.position={fit:{left:function(b,c){var d=a(window);d=c.collisionPosition.left+c.collisionWidth-d.width()-d.scrollLeft(),b.left=d>0?b.left-d:Math.max(b.left-c.collisionPosition.left,b.left)},top:function(b,c){var d=a(window);d=c.collisionPosition.top+c.collisionHeight-d.height()-d.scrollTop(),b.top=d>0?b.top-d:Math.max(b.top-c.collisionPosition.top,b.top)}},flip:{left:function(b,c){if(c.at[0]!=="center"){var d=a(window);d=c.collisionPosition.left+c.collisionWidth-d.width()-d.scrollLeft();var e=c.my[0]==="left"?-c.elemWidth:c.my[0]==="right"?c.elemWidth:0,f=c.at[0]==="left"?c.targetWidth:-c.targetWidth,g=-2*c.offset[0];b.left+=c.collisionPosition.left<0?e+f+g:d>0?e+f+g:0}},top:function(b,c){if(c.at[1]!=="center"){var d=a(window);d=c.collisionPosition.top+c.collisionHeight-d.height()-d.scrollTop();var e=c.my[1]==="top"?-c.elemHeight:c.my[1]==="bottom"?c.elemHeight:0,f=c.at[1]==="top"?c.targetHeight:-c.targetHeight,g=-2*c.offset[1];b.top+=c.collisionPosition.top<0?e+f+g:d>0?e+f+g:0}}}},a.offset.setOffset||(a.offset.setOffset=function(b,c){/static/.test(a.curCSS(b,"position"))&&(b.style.position="relative");var d=a(b),e=d.offset(),f=parseInt(a.curCSS(b,"top",!0),10)||0,g=parseInt(a.curCSS(b,"left",!0),10)||0;e={top:c.top-e.top+f,left:c.left-e.left+g},"using"in c?c.using.call(b,e):d.css(e)},a.fn.offset=function(b){var c=this[0];return!c||!c.ownerDocument?null:b?this.each(function(){a.offset.setOffset(this,b)}):e.call(this)})}(a),function(a){var b=0;a.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var b=this,c=this.element[0].ownerDocument,d;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(c){if(!b.options.disabled&&!b.element.propAttr("readOnly")){d=!1;var f=a.ui.keyCode;switch(c.keyCode){case f.PAGE_UP:b._move("previousPage",c);break;case f.PAGE_DOWN:b._move("nextPage",c);break;case f.UP:b._move("previous",c),c.preventDefault();break;case f.DOWN:b._move("next",c),c.preventDefault();break;case f.ENTER:case f.NUMPAD_ENTER:b.menu.active&&(d=!0,c.preventDefault());case f.TAB:if(!b.menu.active)return;b.menu.select(c);break;case f.ESCAPE:b.element.val(b.term),b.close(c);break;default:clearTimeout(b.searching),b.searching=setTimeout(function(){b.term!=b.element.val()&&(b.selectedItem=null,b.search(null,c))},b.options.delay)}}}).bind("keypress.autocomplete",function(a){d&&(d=!1,a.preventDefault())}).bind("focus.autocomplete",function(){b.options.disabled||(b.selectedItem=null,b.previous=b.element.val())}).bind("blur.autocomplete",function(a){b.options.disabled||(clearTimeout(b.searching),b.closing=setTimeout(function(){b.close(a),b._change(a)},150))}),this._initSource(),this.response=function(){return b._response.apply(b,arguments)},this.menu=a("<ul></ul>").addClass("ui-autocomplete").appendTo(a(this.options.appendTo||"body",c)[0]).mousedown(function(c){var d=b.menu.element[0];a(c.target).closest(".ui-menu-item").length||setTimeout(function(){a(document).one("mousedown",function(c){c.target!==b.element[0]&&c.target!==d&&!a.ui.contains(d,c.target)&&b.close()})},1),setTimeout(function(){clearTimeout(b.closing)},13)}).menu({focus:function(a,c){c=c.item.data("item.autocomplete"),!1!==b._trigger("focus",a,{item:c})&&/^key/.test(a.originalEvent.type)&&b.element.val(c.value)},selected:function(a,d){var e=d.item.data("item.autocomplete"),f=b.previous;b.element[0]!==c.activeElement&&(b.element.focus(),b.previous=f,setTimeout(function(){b.previous=f,b.selectedItem=e},1)),!1!==b._trigger("select",a,{item:e})&&b.element.val(e.value),b.term=b.element.val(),b.close(a),b.selectedItem=e},blur:function(){b.menu.element.is(":visible")&&b.element.val()!==b.term&&b.element.val(b.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu"),a.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup"),this.menu.element.remove(),a.Widget.prototype.destroy.call(this)},_setOption:function(b,c){a.Widget.prototype._setOption.apply(this,arguments),b==="source"&&this._initSource(),b==="appendTo"&&this.menu.element.appendTo(a(c||"body",this.element[0].ownerDocument)[0]),b==="disabled"&&c&&this.xhr&&this.xhr.abort()},_initSource:function(){var c=this,d,e;a.isArray(this.options.source)?(d=this.options.source,this.source=function(b,c){c(a.ui.autocomplete.filter(d,b.term))}):typeof this.options.source=="string"?(e=this.options.source,this.source=function(d,f){c.xhr&&c.xhr.abort(),c.xhr=a.ajax({url:e,data:d,dataType:"json",autocompleteRequest:++b,success:function(a){this.autocompleteRequest===b&&f(a)},error:function(){this.autocompleteRequest===b&&f([])}})}):this.source=this.options.source},search:function(a,b){a=a!=null?a:this.element.val(),this.term=this.element.val();if(a.length<this.options.minLength)return this.close(b);clearTimeout(this.closing);if(this._trigger("search",b)!==!1)return this._search(a)},_search:function(a){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.source({term:a},this.response)},_response:function(a){!this.options.disabled&&a&&a.length?(a=this._normalize(a),this._suggest(a),this._trigger("open")):this.close(),this.pending--,this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(a){clearTimeout(this.closing),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.deactivate(),this._trigger("close",a))},_change:function(a){this.previous!==this.element.val()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(b){return b.length&&b[0].label&&b[0].value?b:a.map(b,function(b){return typeof b=="string"?{label:b,value:b}:a.extend({label:b.label||b.value,value:b.value||b.label},b)})},_suggest:function(b){var c=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(c,b),this.menu.deactivate(),this.menu.refresh(),c.show(),this._resizeMenu(),c.position(a.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(new a.Event("mouseover"))},_resizeMenu:function(){var a=this.menu.element;a.outerWidth(Math.max(a.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(b,c){var d=this;a.each(c,function(a,c){d._renderItem(b,c)})},_renderItem:function(b,c){return a("<li></li>").data("item.autocomplete",c).append(a("<a></a>").text(c.label)).appendTo(b)},_move:function(a,b){this.menu.element.is(":visible")?this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)?(this.element.val(this.term),this.menu.deactivate()):this.menu[a](b):this.search(null,b)},widget:function(){return this.menu.element}}),a.extend(a.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(b,c){var d=new RegExp(a.ui.autocomplete.escapeRegex(c),"i");return a.grep(b,function(a){return d.test(a.label||a.value||a)})}})}(a),function(a){a.widget("ui.menu",{_create:function(){var b=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(c){a(c.target).closest(".ui-menu-item a").length&&(c.preventDefault(),b.select(c))}),this.refresh()},refresh:function(){var b=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(c){b.activate(c,a(this).parent())}).mouseleave(function(){b.deactivate()})},activate:function(a,b){this.deactivate();if(this.hasScroll()){var c=b.offset().top-this.element.offset().top,d=this.element.scrollTop(),e=this.element.height();c<0?this.element.scrollTop(d+c):c>=e&&this.element.scrollTop(d+c-e+b.height())}this.active=b.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end(),this._trigger("focus",a,{item:b})},deactivate:function(){this.active&&(this.active.children("a").removeClass("ui-state-hover").removeAttr("id"),this._trigger("blur"),this.active=null)},next:function(a){this.move("next",".ui-menu-item:first",a)},previous:function(a){this.move("prev",".ui-menu-item:last",a)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(a,b,c){this.active?(a=this.active[a+"All"](".ui-menu-item").eq(0),a.length?this.activate(c,a):this.activate(c,this.element.children(b))):this.activate(c,this.element.children(b))},nextPage:function(b){if(this.hasScroll())if(!this.active||this.last())this.activate(b,this.element.children(".ui-menu-item:first"));else{var c=this.active.offset().top,d=this.element.height(),e=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-c-d+a(this).height();return b<10&&b>-10});e.length||(e=this.element.children(".ui-menu-item:last")),this.activate(b,e)}else this.activate(b,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previousPage:function(b){if(this.hasScroll())if(!this.active||this.first())this.activate(b,this.element.children(".ui-menu-item:last"));else{var c=this.active.offset().top,d=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-c+d-a(this).height();return b<10&&b>-10}),result.length||(result=this.element.children(".ui-menu-item:first")),this.activate(b,result)}else this.activate(b,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element[a.fn.prop?"prop":"attr"]("scrollHeight")},select:function(a){this._trigger("selected",a,{item:this.active})}})}(a)}),define("dlpstatic/js/g-autocomplete",["v1/jquery","v1/jquery-ui-autocomplete"],function(a){a.widget("custom.g_autocomplete",a.ui.autocomplete,{_super:a.ui.autocomplete.prototype,_create:function(){var b=this;this._super._create.call(this),this.hintText=this.element.data("hint")||"Enter at least three characters",this.noMatchText=this.element.data("nomatch")||"No match found",this.hint=a("<div></div>").addClass("ui-autocomplete-hint ui-menu ui-widget ui-widget-content ui-corner-all").appendTo(a(this.options.appendTo||"body",this.element[0].ownerDocument)[0]).hide(),this.element.bind("focus.autocomplete",function(a){b._showHint(b.hintText)}).bind("blur.autocomplete",function(a){b._hideHint()})},_response:function(a){!this.options.disabled&&a&&a.length?(a=this._normalize(a),this._suggest(a),this._trigger("open")):(this.close(),this._showHint(this.noMatchText)),this.pending--,this.pending||this.element.removeClass("ui-autocomplete-loading")},_render:function(b,c){var d=b.type?' class="g-combo-'+b.type+'"':"",e=b.value?"<a>"+b.display+"</a>":"<span"+d+">"+b.display+"</span>",f=c&&c%2!==0?"g-combo-even":"g-combo-uneven";return a("<li class="+f+"></li>").data("item.autocomplete",b).append(e)},_renderMenu:function(b,c){var d=this,e=document.createDocumentFragment();a.each(c,function(a,b){e.appendChild(d._render(b,a)[0])}),b.append(e)},destroy:function(){this.hint.remove(),this_super.destroy.call(this)},_search:function(a){this._hideHint(),this._super._search.call(this,a)},_showHint:function(b){b!==""&&(this.hint.text(b).show(),this._resizeHint(),this.hint.position(a.extend({of:this.element},this.options.position)))},_hideHint:function(){this.hint.hide()},_resizeHint:function(){var a=this.menu.element;this.hint.outerWidth(Math.max(a.width("").outerWidth(),this.element.outerWidth()))}})}),define("dlpstatic/js/g-location-autocomplete",["v1/jquery","v1/utils","dlpstatic/js/g-autocomplete"],function(a,b){function e(b,c){function i(){return d.data("invalidVal")}function j(b,d){function q(a,b){var c=a[h],d=a[g],i=a.pos||c;f.test(d)&&c!==n&&e.push({label:d,value:d,val:c,pos:i,display:d.replace(f,function(a){return"<strong>"+a+"</strong>"})})}var e=[],f=a.trim(b.term),j,k,l,m,n=i(),o,p=c.length;f=f.replace(/\(/g,""),f=f.replace(/\)/g,""),f=new RegExp("^("+f+")|\\(("+f+")\\)|,\\s*("+f+")","gi");for(o=0;o<p;o++)j=c[o],q(j,m);d(e)}function k(a,b){d.trigger("locChange",b.item)}var d=b.el,e=b.searchObj||{},f=e.list,g=e.label||"label",h=e.value;c=f?c[f]:c,d.g_autocomplete({source:j,minLength:3,autoFocus:!0,position:{collision:"fit"},select:k}).bind("click focus",function(){a(this).select()})}function f(){!c&&typeof $css=="string"&&a("<style>"+$css+"</style>").appendTo(a("head"))}function g(a,b){function h(a){e(g,a)}var c=b.origins||"",g={el:a,searchObj:{list:"origins",label:"content",value:"code"}};return f(),d(c,h),a}function h(a){var b=a.elem;return b.autocomplete("destroy"),a.addButton=!1,g(a)}var c,d;return d=function(c,e){function f(a){var f=d.busy[c],g=b.isArray(f)&&f.length;d.cached[c]=a;if(g){while(g--)typeof f[g]=="function"&&f[g](a);d.busy[c]=[]}else window.console&&console.log("autocomplete script, should not get here anytime"),e(a)}function g(a){window.console&&console.log("autocomplete error",a)}if(!c||typeof e!="function")return;d.cached=d.cached||{},d.busy=d.busy||{};if(b.isObject(d.cached[c])){e(d.cached[c]);return}if(!d.busy[c])d.busy[c]=[],d.busy[c].push(e);else{d.busy[c].push(e);return}a.ajax({url:c,dataType:"json",success:f,error:g})},{init:g,update:h}}),define("dlpstatic/js/dlp-change-origin",["v1/jquery","v1/utils","dlpstatic/js/g-location-autocomplete"],function(a,b,c){function d(a,d){var e,f=document.location;a.on("locChange",function(a,c){c.val&&(e=b.modifyUriParams(f.href,{origin:c.val}),document.location=e)}),c.init(a,d)}return{init:d}})
View
1  src/test/resources/projects/project-001/src/main/build/dist/js/dlp.js
@@ -1 +0,0 @@
-define("dlpstatic/js/initcomponents",["v1/jquery"],function(a){function d(){b="mobile+"}function e(a,b){b.path&&require([b.path],function(c){c.init(a,b)})}function f(b){var d=b.data(),f=d.initon;if(!f){e(b,d);return}f.indexOf(c)!==-1?a("body").one(f,b,function(a){e(b,d)}):b.one(f,function(a){e(b,d)})}function g(b){var c=a("."+b||"js-init"),d=c.length,e;for(e=0;e<d;e+=1)f(c.eq(e))}var b,c=["click"].join(",");return{components:g}}),define("dlpstatic/js/handleCountryLanguage",[],function(){function a(a){var b=/\/\w{2}\/\w{2}\//gim,c=document.location.href,d;if(!(a.country&&a.language&&typeof (a.country+a.language)=="string"&&b.test(c))&&window.console){console.log("country lang switch failed","\n\t new country: ",a.country,"\n\t new language: ",a.language,"\n\t match country language in current url: ",b.test(c));return}d=("/"+a.country+"/"+a.language+"/").toLowerCase(),typeof d=="string"&&(document.location=c.replace(b,d))}function b(){var b=window.AFKL||{},c=b.event&&b.event.subscribe;if(typeof c!="function")return;c("cms.countrylang.switch",a)}return{init:b}}),require(["dlpstatic/js/initcomponents"],function(a){a.components("js-init")}),require(["dlpstatic/js/handleCountryLanguage"],function(a){a.init()}),define("dlpstatic/js/dlp",function(){}),define("dlpstatic/js/dlp-view-offer",["v1/jquery"],function(a){function b(b,c){b.click(function(c){c.preventDefault();var d=a(b.attr("href")),e=d.offset().top;a("html, body").animate({scrollTop:e},800)})}return{init:b}})
View
21 src/test/resources/projects/project-001/src/main/javascript/build/buildconfig.js
@@ -0,0 +1,21 @@
+// docs
+// https://github.com/jrburke/r.js/blob/master/build/example.build.js
+({
+ baseUrl : "./",
+ dir : "${project.build.outputDirectory}/js",
+
+
+ optimize : "uglify",
+
+ findNestedDependencies: true,
+
+ preserveLicenceComments : true,
+
+ modules : [
+ {
+ name : "dist/js/application"
+ }
+ ]
+
+})
+
View
9 src/test/resources/projects/project-001/src/main/javascript/build/dist/js/application.js
@@ -0,0 +1,9 @@
+define(function () {
+
+ var Application = {
+ name: '${project.name}',
+ description: '${project.description}',
+ version: '${project.version}'
+ };
+
+});
View
0  .../projects/project-001/src/main/build/r.js → ...roject-001/src/main/javascript/build/r.js
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.