!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_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}function_classCallCheck(instance,Constructor){if(!(instanceinstanceofConstructor))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(exports,"__esModule",{value:!0});var_jQuery=require("jQuery"),_jQuery2=_interopRequireDefault(_jQuery),_react=require("react"),_react2=_interopRequireDefault(_react),_reactDom=require("react-dom"),_reactDom2=_interopRequireDefault(_reactDom),_reactRedux=require("react-redux"),_reactRouter=require("react-router"),_createBrowserHistory=require("history/lib/createBrowserHistory"),_createBrowserHistory2=_interopRequireDefault(_createBrowserHistory),_Config=require("lib/Config"),_Config2=_interopRequireDefault(_Config),_Router=require("lib/Router"),_Router2=_interopRequireDefault(_Router),_ReactRouteRegister=require("lib/ReactRouteRegister"),_ReactRouteRegister2=_interopRequireDefault(_ReactRouteRegister),_App=require("containers/App/App"),_App2=_interopRequireDefault(_App),_reactRouterRedux=require("react-router-redux"),BootRoutes=function(){functionBootRoutes(store){_classCallCheck(this,BootRoutes),this.store=store;varbase=_Config2["default"].get("absoluteBaseUrl");_Router2["default"].setAbsoluteBase(base)}returnBootRoutes.prototype.start=function(location){this.matchesLegacyRoute(location)?this.initLegacyRouter():this.initReactRouter()},BootRoutes.prototype.matchesLegacyRoute=function(location){varsections=_Config2["default"].get("sections"),currentPath=_Router2["default"].resolveURLToBase(location).replace(/\/$/,"");return!!Object.keys(sections).find(function(key){varsection=sections[key],route=_Router2["default"].resolveURLToBase(section.url).replace(/\/$/,"");returnsection.reactRouter?!1:currentPath.match(route)})},BootRoutes.prototype.initReactRouter=function(){_ReactRouteRegister2["default"].updateRootRoute({component:_App2["default"]});varhistory=(0,_reactRouterRedux.syncHistoryWithStore)((0,_reactRouter.useRouterHistory)(_createBrowserHistory2["default"])({basename:_Config2["default"].get("baseUrl")}),this.store);_reactDom2["default"].render(_react2["default"].createElement(_reactRedux.Provider,{store:this.store},_react2["default"].createElement(_reactRouter.Router,{history:history,routes:_ReactRouteRegister2["default"].getRootRoute()})),document.getElementsByClassName("cms-content")[0])},BootRoutes.prototype.initLegacyRouter=function(){varsections=_Config2["default"].get("sections"),store=this.store;(0,_Router2["default"])("*",function(ctx,next){ctx.store=store,next()});varlastPath=null;Object.keys(sections).forEach(function(key){varroute=_Router2["default"].resolveURLToBase(sections[key].url);route=route.replace(/\/$/,""),route+="(/*?)?",(0,_Router2["default"])(route,function(ctx,next){if("complete"!==document.readyState||ctx.init)returnvoidnext();lastPath||(lastPath=window.location.pathname);varforceReload=ctx.data&&ctx.data.__forceReload;(ctx.path!==lastPath||forceReload)&&(lastPath=ctx.path.replace(/#.*$/,""),(0,_jQuery2["default"])(".cms-container").entwine("ss").handleStateChange(null,ctx.state))})}),_Router2["default"].start()},BootRoutes}();exports["default"]=BootRoutes},{"containers/App/App":18,"history/lib/createBrowserHistory":57,jQuery:"jQuery","lib/Config":24,"lib/ReactRouteRegister":"lib/ReactRouteRegister","lib/Router":26,react:"react","react-dom":"react-dom","react-redux":"react-redux","react-router":"react-router","react-router-redux":"react-router-redux"}],2:[function(require,module,exports){"use strict";function_interopRequireWildcard(obj){if(obj&&obj.__esMod
})},LiteralField}(_SilverStripeComponent2["default"]);LiteralField.propTypes={id:_react2["default"].PropTypes.string,extraClass:_react2["default"].PropTypes.string,data:_react2["default"].PropTypes.oneOfType([_react2["default"].PropTypes.array,_react2["default"].PropTypes.shape({content:_react2["default"].PropTypes.string.isRequired})]).isRequired},exports["default"]=LiteralField},{"lib/SilverStripeComponent":"lib/SilverStripeComponent",react:"react"}],12:[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 "+typeofsuperClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):_defaults(subClass,superClass))}Object.defineProperty(exports,"__esModule",{value:!0});var_react=require("react"),_react2=_interopRequireDefault(_react),_reactBootstrapSs=require("react-bootstrap-ss"),_SilverStripeComponent=require("lib/SilverStripeComponent"),_SilverStripeComponent2=_interopRequireDefault(_SilverStripeComponent),PopoverField=function(_SilverStripeComponen){functionPopoverField(props){_classCallCheck(this,PopoverField);var_this=_possibleConstructorReturn(this,_SilverStripeComponen.call(this,props));return_this.handleShow=_this.handleShow.bind(_this),_this.handleHide=_this.handleHide.bind(_this),_this.state={showing:!1},_this}return_inherits(PopoverField,_SilverStripeComponen),PopoverField.prototype.handleShow=function(){this.setState({showing:!0})},PopoverField.prototype.handleHide=function(){this.setState({showing:!1})},PopoverField.prototype.render=function(){varplacement=this.getPlacement(),overlay=_react2["default"].createElement(_reactBootstrapSs.Popover,{id:this.props.id+"_Popover",className:"fade in popover-"+placement,title:this.props.data.popoverTitle},this.props.children),buttonClasses=["btn","btn-secondary"];returnthis.state.showing&&buttonClasses.push("btn--no-focus"),this.props.title||buttonClasses.push("font-icon-dot-3 btn--no-text btn--icon-xl"),_react2["default"].createElement(_reactBootstrapSs.OverlayTrigger,{rootClose:!0,trigger:"click",container:this,placement:placement,overlay:overlay,onEnter:this.handleShow,onExited:this.handleHide},_react2["default"].createElement("button",{id:this.props.id,type:"button",className:buttonClasses.join(" ")},this.props.title))},PopoverField.prototype.getPlacement=function(){varplacement=this.props.data.placement;returnplacement||"bottom"},PopoverField}(_SilverStripeComponent2["default"]);PopoverField.propTypes={id:_react2["default"].PropTypes.string,title:_react2["default"].PropTypes.oneOfType([_react2["default"].PropTypes.string,_react2["default"].PropTypes.bool]),data:_react2["default"].PropTypes.oneOfType([_react2["default"].PropTypes.array,_react2["default"].PropTypes.shape({popoverTitle:_react2["default"].PropTypes.string,placement:_react2["default"].PropTypes.oneOf(["top","right","bottom","left"])})])},exports["default"]=PopoverField},{"lib/SilverStripeComponent":"lib/SilverStripeComponent",react:"react","react-bootstrap-ss":"react-bootstrap-ss"}],13:[function(require,module,exports){"use strict";function_interopRequireDefault(obj){returnobj&&ob
showBackButton:!0,handleBackButtonClick:this.handleBackButtonClick},_react2["default"].createElement(_Breadcrumb2["default"],{multiline:!0,crumbs:this.props.breadcrumbs})),_react2["default"].createElement("div",{className:"panel-scrollable panel-scrollable--single-toolbar container-fluid m-t-1"},_react2["default"].createElement(_FormBuilder2["default"],formBuilderProps)))},CampaignAdmin.prototype.campaignEditCreateFn=function(Component,props){var_this2=this,url=this.props.sectionConfig.url;if("action_cancel"===props.name){varextendedProps=_extends({},props,{handleClick:function(event){event.preventDefault(),_this2.props.router.push(url)}});return_react2["default"].createElement(Component,_extends({key:props.id},extendedProps))}return_react2["default"].createElement(Component,_extends({key:props.id},props))},CampaignAdmin.prototype.campaignAddCreateFn=function(Component,props){var_this3=this,url=this.props.sectionConfig.url;if("action_cancel"===props.name){varextendedProps=_extends({},props,{handleClick:function(event){event.preventDefault(),_this3.props.router.push(url)}});return_react2["default"].createElement(Component,_extends({key:props.name},extendedProps))}return_react2["default"].createElement(Component,_extends({key:props.name},props))},CampaignAdmin.prototype.campaignListCreateFn=function(Component,props){var_this4=this,sectionUrl=this.props.sectionConfig.url,typeUrlParam="set";if("GridField"===props.component){varextendedProps=_extends({},props,{data:_extends({},props.data,{handleDrillDown:function(event,record){_this4.props.router.push(sectionUrl+"/"+typeUrlParam+"/"+record.ID+"/show")},handleEditRecord:function(event,id){_this4.props.router.push(sectionUrl+"/"+typeUrlParam+"/"+id+"/edit")}})});return_react2["default"].createElement(Component,_extends({key:extendedProps.name},extendedProps))}return_react2["default"].createElement(Component,_extends({key:props.name},props))},CampaignAdmin.prototype.addCampaign=function(){varpath=this.getActionRoute(0,"create");this.props.router.push(path)},CampaignAdmin.prototype.getActionRoute=function(id,view){returnthis.props.sectionConfig.url+"/set/"+id+"/"+view},CampaignAdmin}(_SilverStripeComponent2["default"]);CampaignAdmin.propTypes={breadcrumbsActions:_react2["default"].PropTypes.object.isRequired,campaignId:_react2["default"].PropTypes.string,sectionConfig:_react2["default"].PropTypes.object.isRequired,securityId:_react2["default"].PropTypes.string.isRequired,view:_react2["default"].PropTypes.string},exports["default"]=(0,_reactRouter.withRouter)((0,_reactRedux.connect)(mapStateToProps,mapDispatchToProps)(CampaignAdmin))},{"./CampaignAdminList":21,"components/Breadcrumb/Breadcrumb":"components/Breadcrumb/Breadcrumb","components/FormAction/FormAction":"components/FormAction/FormAction","components/FormBuilder/FormBuilder":"components/FormBuilder/FormBuilder","components/Toolbar/Toolbar":"components/Toolbar/Toolbar",i18n:"i18n","lib/Backend":"lib/Backend","lib/SilverStripeComponent":"lib/SilverStripeComponent",react:"react","react-redux":"react-redux","react-router":"react-router",redux:"redux","state/breadcrumbs/BreadcrumbsActions":"state/breadcrumbs/BreadcrumbsActions"}],20:[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("Superexpressionmusteitherb
error=value.error,value=null):succeeded=!0,promise===value)returnvoidlib$es6$promise$$internal$$reject(promise,lib$es6$promise$$internal$$cannotReturnOwn())}elsevalue=detail,succeeded=!0;promise._state!==lib$es6$promise$$internal$$PENDING||(hasCallback&&succeeded?lib$es6$promise$$internal$$resolve(promise,value):failed?lib$es6$promise$$internal$$reject(promise,error):settled===lib$es6$promise$$internal$$FULFILLED?lib$es6$promise$$internal$$fulfill(promise,value):settled===lib$es6$promise$$internal$$REJECTED&&lib$es6$promise$$internal$$reject(promise,value))}functionlib$es6$promise$$internal$$initializePromise(promise,resolver){try{resolver(function(value){lib$es6$promise$$internal$$resolve(promise,value)},function(reason){lib$es6$promise$$internal$$reject(promise,reason)})}catch(e){lib$es6$promise$$internal$$reject(promise,e)}}functionlib$es6$promise$promise$all$$all(entries){returnnewlib$es6$promise$enumerator$$default(this,entries).promise}functionlib$es6$promise$promise$race$$race(entries){functiononFulfillment(value){lib$es6$promise$$internal$$resolve(promise,value)}functiononRejection(reason){lib$es6$promise$$internal$$reject(promise,reason)}varConstructor=this,promise=newConstructor(lib$es6$promise$$internal$$noop);if(!lib$es6$promise$utils$$isArray(entries))returnlib$es6$promise$$internal$$reject(promise,newTypeError("You must pass an array to race.")),promise;for(varlength=entries.length,i=0;promise._state===lib$es6$promise$$internal$$PENDING&&length>i;i++)lib$es6$promise$$internal$$subscribe(Constructor.resolve(entries[i]),void0,onFulfillment,onRejection);returnpromise}functionlib$es6$promise$promise$reject$$reject(reason){varConstructor=this,promise=newConstructor(lib$es6$promise$$internal$$noop);returnlib$es6$promise$$internal$$reject(promise,reason),promise}functionlib$es6$promise$promise$$needsResolver(){thrownewTypeError("You must pass a resolver function as the first argument to the promise constructor")}functionlib$es6$promise$promise$$needsNew(){thrownewTypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}functionlib$es6$promise$promise$$Promise(resolver){this._id=lib$es6$promise$promise$$counter++,this._state=void0,this._result=void0,this._subscribers=[],lib$es6$promise$$internal$$noop!==resolver&&("function"!=typeofresolver&&lib$es6$promise$promise$$needsResolver(),thisinstanceoflib$es6$promise$promise$$Promise?lib$es6$promise$$internal$$initializePromise(this,resolver):lib$es6$promise$promise$$needsNew())}functionlib$es6$promise$enumerator$$Enumerator(Constructor,input){this._instanceConstructor=Constructor,this.promise=newConstructor(lib$es6$promise$$internal$$noop),Array.isArray(input)?(this._input=input,this.length=input.length,this._remaining=input.length,this._result=newArray(this.length),0===this.length?lib$es6$promise$$internal$$fulfill(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&lib$es6$promise$$internal$$fulfill(this.promise,this._result))):lib$es6$promise$$internal$$reject(this.promise,this._validationError())}functionlib$es6$promise$polyfill$$polyfill(){varlocal;if("undefined"!=typeofglobal)local=global;elseif("undefined"!=typeofself)local=self;elsetry{local=Function("return this")()}catch(e){thrownewError("polyfill failed because global object is unavailable in this environment")}varP=local.Promise;P&&"[object Promise]"===Object.prototype.toString.call(P.resolve())&&!P.cast||(local.Promise=lib$es6$promise$promise$$default)}varlib$es6$promise$utils$$_isArray;lib$es6$promise$utils$$_isArray=Array.isArray?Array.isArray:function(x){return"[object Array]"===Object.prototype.toString.call(x)};varlib$es6$promise$asap$$vertxNext,lib$es6$promise$asap$$customSchedulerFn,lib$es6$promise$asap$$scheduleFlush,lib$es6$promise$utils$$isArray=lib$es6$promise$utils$$_isArray,lib$es6$promise$asap$$len=0,lib$es6$promise$asap$$asap=function(callback,arg){lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len]=callback,lib$es6$promise$asap