!functione(t,n,r){functions(o,u){if(!n[o]){if(!t[o]){vara="function"==typeofrequire&&require;if(!u&&a)returna(o,!0);if(i)returni(o,!0);varf=newError("Cannot find module '"+o+"'");throwf.code="MODULE_NOT_FOUND",f}varl=n[o]={exports:{}};t[o][0].call(l.exports,function(e){varn=t[o][1][e];returns(n?n:e)},l,l.exports,e,t,n,r)}returnn[o].exports}for(vari="function"==typeofrequire&&require,o=0;o<r.length;o++)s(r[o]);returns}({1:[function(require,module,exports){"use strict";function_interopRequireWildcard(obj){if(obj&&obj.__esModule)returnobj;varnewObj={};if(null!=obj)for(varkeyinobj)Object.prototype.hasOwnProperty.call(obj,key)&&(newObj[key]=obj[key]);returnnewObj["default"]=obj,newObj}function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}functionappBoot(){_ReducerRegister2["default"].add("config",_ConfigReducer2["default"]),_ReducerRegister2["default"].add("form",_FormReducer2["default"]),_ReducerRegister2["default"].add("schemas",_SchemaReducer2["default"]),_ReducerRegister2["default"].add("records",_RecordsReducer2["default"]),_ReducerRegister2["default"].add("campaign",_CampaignReducer2["default"]);varinitialState={},rootReducer=(0,_redux.combineReducers)(_ReducerRegister2["default"].getAll()),middleware=[_reduxThunk2["default"]];"dev"===window.ss.config.environment&&middleware.push((0,_reduxLogger2["default"])());varcreateStoreWithMiddleware=_redux.applyMiddleware.apply(void0,middleware)(_redux.createStore);window.store=createStoreWithMiddleware(rootReducer,initialState),window.store.dispatch(configActions.setConfig(window.ss.config))}var_jQuery=require("jQuery"),_jQuery2=_interopRequireDefault(_jQuery),_redux=require("redux"),_reduxThunk=require("redux-thunk"),_reduxThunk2=_interopRequireDefault(_reduxThunk),_reduxLogger=require("redux-logger"),_reduxLogger2=_interopRequireDefault(_reduxLogger),_ReducerRegister=require("lib/ReducerRegister"),_ReducerRegister2=_interopRequireDefault(_ReducerRegister),_ConfigActions=require("state/config/ConfigActions"),configActions=_interopRequireWildcard(_ConfigActions),_ConfigReducer=require("state/config/ConfigReducer"),_ConfigReducer2=_interopRequireDefault(_ConfigReducer),_FormReducer=require("state/form/FormReducer"),_FormReducer2=_interopRequireDefault(_FormReducer),_SchemaReducer=require("state/schema/SchemaReducer"),_SchemaReducer2=_interopRequireDefault(_SchemaReducer),_RecordsReducer=require("state/records/RecordsReducer"),_RecordsReducer2=_interopRequireDefault(_RecordsReducer),_CampaignReducer=require("state/campaign/CampaignReducer"),_CampaignReducer2=_interopRequireDefault(_CampaignReducer),_index=require("containers/CampaignAdmin/index");_interopRequireDefault(_index);(0,_jQuery2["default"])("body").entwine({onadd:function(){returnappBoot()}})},{"containers/CampaignAdmin/index":10,jQuery:"jQuery","lib/ReducerRegister":"lib/ReducerRegister",redux:"redux","redux-logger":33,"redux-thunk":"redux-thunk","state/campaign/CampaignReducer":14,"state/config/ConfigActions":16,"state/config/ConfigReducer":17,"state/form/FormReducer":19,"state/records/RecordsReducer":22,"state/schema/SchemaReducer":24}],2:[function(require,module,exports){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}function_defaults(obj,defaults){for(varkeys=Object.getOwnPropertyNames(defaults),i=0;i<keys.length;i++){varkey=keys[i],value=Object.getOwnPropertyDescriptor(defaults,key);value&&value.configurable&&void0===obj[key]&&Object.defineProperty(obj,key,value)}returnobj}function_classCallCheck(instance,Constructor){if(!(instanceinstanceofConstructor))thrownewTypeError("Cannot call a class as a function")}function_possibleConstructorReturn(self,call){if(!self)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeofcall&&"function"!=typeofcall?self:call}function_inherits(subClass,superClass){if("function"!=typeofsuperClass&&null!==superClass)thrownewTypeError("Super expression must either be null or a function, not "+typeofsuperCl
returnfunction(){lib$es6$promise$asap$$vertxNext(lib$es6$promise$asap$$flush)}}functionlib$es6$promise$asap$$useMutationObserver(){variterations=0,observer=newlib$es6$promise$asap$$BrowserMutationObserver(lib$es6$promise$asap$$flush),node=document.createTextNode("");returnobserver.observe(node,{characterData:!0}),function(){node.data=iterations=++iterations%2}}functionlib$es6$promise$asap$$useMessageChannel(){varchannel=newMessageChannel;returnchannel.port1.onmessage=lib$es6$promise$asap$$flush,function(){channel.port2.postMessage(0)}}functionlib$es6$promise$asap$$useSetTimeout(){returnfunction(){setTimeout(lib$es6$promise$asap$$flush,1)}}functionlib$es6$promise$asap$$flush(){for(vari=0;lib$es6$promise$asap$$len>i;i+=2){varcallback=lib$es6$promise$asap$$queue[i],arg=lib$es6$promise$asap$$queue[i+1];callback(arg),lib$es6$promise$asap$$queue[i]=void0,lib$es6$promise$asap$$queue[i+1]=void0}lib$es6$promise$asap$$len=0}functionlib$es6$promise$asap$$attemptVertx(){try{varr=require,vertx=r("vertx");returnlib$es6$promise$asap$$vertxNext=vertx.runOnLoop||vertx.runOnContext,lib$es6$promise$asap$$useVertxTimer()}catch(e){returnlib$es6$promise$asap$$useSetTimeout()}}functionlib$es6$promise$then$$then(onFulfillment,onRejection){varparent=this,state=parent._state;if(state===lib$es6$promise$$internal$$FULFILLED&&!onFulfillment||state===lib$es6$promise$$internal$$REJECTED&&!onRejection)returnthis;varchild=newthis.constructor(lib$es6$promise$$internal$$noop),result=parent._result;if(state){varcallback=arguments[state-1];lib$es6$promise$asap$$asap(function(){lib$es6$promise$$internal$$invokeCallback(state,child,callback,result)})}elselib$es6$promise$$internal$$subscribe(parent,child,onFulfillment,onRejection);returnchild}functionlib$es6$promise$promise$resolve$$resolve(object){varConstructor=this;if(object&&"object"==typeofobject&&object.constructor===Constructor)returnobject;varpromise=newConstructor(lib$es6$promise$$internal$$noop);returnlib$es6$promise$$internal$$resolve(promise,object),promise}functionlib$es6$promise$$internal$$noop(){}functionlib$es6$promise$$internal$$selfFulfillment(){returnnewTypeError("You cannot resolve a promise with itself")}functionlib$es6$promise$$internal$$cannotReturnOwn(){returnnewTypeError("A promises callback cannot return that same promise.")}functionlib$es6$promise$$internal$$getThen(promise){try{returnpromise.then}catch(error){returnlib$es6$promise$$internal$$GET_THEN_ERROR.error=error,lib$es6$promise$$internal$$GET_THEN_ERROR}}functionlib$es6$promise$$internal$$tryThen(then,value,fulfillmentHandler,rejectionHandler){try{then.call(value,fulfillmentHandler,rejectionHandler)}catch(e){returne}}functionlib$es6$promise$$internal$$handleForeignThenable(promise,thenable,then){lib$es6$promise$asap$$asap(function(promise){varsealed=!1,error=lib$es6$promise$$internal$$tryThen(then,thenable,function(value){sealed||(sealed=!0,thenable!==value?lib$es6$promise$$internal$$resolve(promise,value):lib$es6$promise$$internal$$fulfill(promise,value))},function(reason){sealed||(sealed=!0,lib$es6$promise$$internal$$reject(promise,reason))},"Settle: "+(promise._label||" unknown promise"));!sealed&&error&&(sealed=!0,lib$es6$promise$$internal$$reject(promise,error))},promise)}functionlib$es6$promise$$internal$$handleOwnThenable(promise,thenable){thenable._state===lib$es6$promise$$internal$$FULFILLED?lib$es6$promise$$internal$$fulfill(promise,thenable._result):thenable._state===lib$es6$promise$$internal$$REJECTED?lib$es6$promise$$internal$$reject(promise,thenable._result):lib$es6$promise$$internal$$subscribe(thenable,void0,function(value){lib$es6$promise$$internal$$resolve(promise,value)},function(reason){lib$es6$promise$$internal$$reject(promise,reason)})}functionlib$es6$promise$$internal$$handleMaybeThenable(promise,maybeThenable,then){maybeThenable.constructor===promise.constructor&&then===lib$es6$promise$then$$default&&constructor.resolve===lib$es6$promise$promise$resolve$$default?lib$es6$promise$$internal$$handleOwnThenable(promise,maybeThenable):then===lib$es6$promise$
returnname.toLowerCase()}functionnormalizeValue(value){return"string"!=typeofvalue&&(value=String(value)),value}functionHeaders(headers){this.map={},headersinstanceofHeaders?headers.forEach(function(value,name){this.append(name,value)},this):headers&&Object.getOwnPropertyNames(headers).forEach(function(name){this.append(name,headers[name])},this)}functionconsumed(body){returnbody.bodyUsed?Promise.reject(newTypeError("Already read")):void(body.bodyUsed=!0)}functionfileReaderReady(reader){returnnewPromise(function(resolve,reject){reader.onload=function(){resolve(reader.result)},reader.onerror=function(){reject(reader.error)}})}functionreadBlobAsArrayBuffer(blob){varreader=newFileReader;returnreader.readAsArrayBuffer(blob),fileReaderReady(reader)}functionreadBlobAsText(blob){varreader=newFileReader;returnreader.readAsText(blob),fileReaderReady(reader)}functionBody(){returnthis.bodyUsed=!1,this._initBody=function(body){if(this._bodyInit=body,"string"==typeofbody)this._bodyText=body;elseif(support.blob&&Blob.prototype.isPrototypeOf(body))this._bodyBlob=body;elseif(support.formData&&FormData.prototype.isPrototypeOf(body))this._bodyFormData=body;elseif(body){if(!support.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(body))thrownewError("unsupported BodyInit type")}elsethis._bodyText="";this.headers.get("content-type")||("string"==typeofbody?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type&&this.headers.set("content-type",this._bodyBlob.type))},support.blob?(this.blob=function(){varrejected=consumed(this);if(rejected)returnrejected;if(this._bodyBlob)returnPromise.resolve(this._bodyBlob);if(this._bodyFormData)thrownewError("could not read FormData body as blob");returnPromise.resolve(newBlob([this._bodyText]))},this.arrayBuffer=function(){returnthis.blob().then(readBlobAsArrayBuffer)},this.text=function(){varrejected=consumed(this);if(rejected)returnrejected;if(this._bodyBlob)returnreadBlobAsText(this._bodyBlob);if(this._bodyFormData)thrownewError("could not read FormData body as text");returnPromise.resolve(this._bodyText)}):this.text=function(){varrejected=consumed(this);returnrejected?rejected:Promise.resolve(this._bodyText)},support.formData&&(this.formData=function(){returnthis.text().then(decode)}),this.json=function(){returnthis.text().then(JSON.parse)},this}functionnormalizeMethod(method){varupcased=method.toUpperCase();returnmethods.indexOf(upcased)>-1?upcased:method}functionRequest(input,options){options=options||{};varbody=options.body;if(Request.prototype.isPrototypeOf(input)){if(input.bodyUsed)thrownewTypeError("Already read");this.url=input.url,this.credentials=input.credentials,options.headers||(this.headers=newHeaders(input.headers)),this.method=input.method,this.mode=input.mode,body||(body=input._bodyInit,input.bodyUsed=!0)}elsethis.url=input;if(this.credentials=options.credentials||this.credentials||"omit",!options.headers&&this.headers||(this.headers=newHeaders(options.headers)),this.method=normalizeMethod(options.method||this.method||"GET"),this.mode=options.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&body)thrownewTypeError("Body not allowed for GET or HEAD requests");this._initBody(body)}functiondecode(body){varform=newFormData;returnbody.trim().split("&").forEach(function(bytes){if(bytes){varsplit=bytes.split("="),name=split.shift().replace(/\+/g," "),value=split.join("=").replace(/\+/g," ");form.append(decodeURIComponent(name),decodeURIComponent(value))}}),form}functionheaders(xhr){varhead=newHeaders,pairs=xhr.getAllResponseHeaders().trim().split("\n");returnpairs.forEach(function(header){varsplit=header.trim().split(":"),key=split.shift().trim(),value=split.join(":").trim();head.append(key,value)}),head}functionResponse(bodyInit,options){options||(options={}),this.type="default",this.status=options.status,this.ok=this.status>=200&&this.status<300,this.statusText=options.statusText,this.headers=options.headersinstanceofHeaders?options.headers:n