!function(e){functiont(n){if(r[n])returnr[n].exports;varo=r[n]={exports:{},id:n,loaded:!1};returne[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}varr={};returnt.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";functionn(e){if(e&&e.__esModule)returne;vart={};if(null!=e)for(varrine)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);returnt["default"]=e,t}functiono(e){returne&&e.__esModule?e:{"default":e}}functiona(){h["default"].add("config",g["default"]),h["default"].add("form",w["default"]),h["default"].add("schemas",T["default"]),h["default"].add("records",P["default"]),h["default"].add("campaign",j["default"]),h["default"].add("breadcrumbs",A["default"]),h["default"].add("routing",te.routerReducer),m["default"].register("TextField",I["default"]),m["default"].register("HiddenField",N["default"]),m["default"].register("GridField",U["default"]),m["default"].register("SingleSelectField",M["default"]),m["default"].register("PopoverField",G["default"]),m["default"].register("HeaderField",Q["default"]),m["default"].register("LiteralField",K["default"]),m["default"].register("HtmlReadonlyField",W["default"]),m["default"].register("CompositeField",J["default"]),m["default"].register("Tabs",z["default"]),m["default"].register("TabItem",ee["default"]),m["default"].register("FormAction",B["default"]);vare={},t=(0,s.combineReducers)(h["default"].getAll()),r=[c["default"]],n=p["default"].get("environment"),o=p["default"].get("debugging"),a=s.applyMiddleware.apply(void0,r),i=window.devToolsExtension;"dev"===n&&o&&"function"==typeofi&&(a=(0,s.compose)(s.applyMiddleware.apply(void0,r),i()));varl=a(s.createStore),f=l(t,e);f.dispatch(v.setConfig(p["default"].getAll())),window.ss=window.ss||{},window.ss.store=f;vard=newu["default"](f);d.start(window.location.pathname)}vari=r(2),u=o(i),s=r(30),l=r(31),c=o(l),f=r(24),p=o(f),d=r(32),h=o(d),y=r(33),m=o(y),b=r(34),v=n(b),_=r(36),g=o(_),E=r(38),w=o(E),O=r(40),T=o(O),C=r(42),P=o(C),S=r(44),j=o(S),R=r(46),A=o(R),k=r(48),I=o(k),x=r(50),M=o(x),D=r(52),N=o(D),L=r(53),U=o(L),F=r(54),B=o(F),H=r(55),G=o(H),q=r(57),Q=o(q),V=r(58),K=o(V),Y=r(59),W=o(Y),$=r(60),J=o($),X=r(61),z=o(X),Z=r(62),ee=o(Z),te=r(29),re=r(63),ne=o(re);window.onload=a},function(e,t){e.exports=jQuery},function(e,t,r){"use strict";functionn(e){returne&&e.__esModule?e:{"default":e}}functiono(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});vara=function(){functione(e,t){for(varr=0;r<t.length;r++){varn=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}returnfunction(t,r,n){returnr&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(1),u=n(i),s=r(3),l=n(s),c=r(4),f=n(c),p=r(5),d=r(6),h=r(7),y=n(h),m=r(24),b=n(m),v=r(25),_=n(v),g=r(26),E=n(g),w=r(27),O=n(w),T=r(29),C=function(){functione(t){o(this,e),this.store=t;varr=b["default"].get("absoluteBaseUrl");_["default"].setAbsoluteBase(r)}returna(e,[{key:"start",value:functiont(e){this.matchesLegacyRoute(e)?this.initLegacyRouter():this.initReactRouter()}},{key:"matchesLegacyRoute",value:functionr(e){vart=b["default"].get("sections"),r=_["default"].resolveURLToBase(e).replace(/\/$/,"");return!!Object.keys(t).find(function(e){varn=t[e],o=_["default"].resolveURLToBase(n.url).replace(/\/$/,"");return!n.reactRouter&&r.match(o)})}},{key:"initReactRouter",value:functionn(){E["default"].updateRootRoute({component:O["default"]});vare=(0,T.syncHistoryWithStore)((0,d.useRouterHistory)(y["default"])({basename:b["default"].get("baseUrl")}),this.store);f["default"].render(l["default"].createElement(p.Provider,{store:this.store},l["default"].createElement(d.Router,{history:e,routes:E["default"].getRootRoute()})),document.getElementsByClassName("cms-content")[0])}},{key:"initLegacyRouter",value:functioni(){vare=b["default"].get("sections"),t=this.store;(0,_["default"])("*",function(e,r){e.store=t,r()});varr=null;Object.keys(e).forEach(function(t){varn=_["default"].resolveURLToBase(e[t].url);n=n.replace(/\/$/,""),
}functiona(e,t){if(!e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeoft&&"function"!=typeoft?e:t}functioni(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function, not "+typeoft);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});varu=function(){functione(e,t){for(varr=0;r<t.length;r++){varn=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}returnfunction(t,r,n){returnr&&e(t.prototype,r),n&&e(t,n),t}}(),s=r(3),l=n(s),c=r(28),f=n(c),p=r(49),d=n(p),h=r(51),y=n(h),m=function(e){functiont(e){o(this,t);varr=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));returnr.handleChange=r.handleChange.bind(r),r}returni(t,e),u(t,[{key:"render",value:functionr(){vare=null;returne=this.props.readOnly?this.getReadonlyField():this.getSelectField()}},{key:"getReadonlyField",value:functionn(){vare=this,t=this.props.source&&this.props.source.find(function(t){returnt.value===e.props.value});returnt="string"==typeoft?t:this.props.value,l["default"].createElement("div",null,l["default"].createElement("i",null,t))}},{key:"getSelectField",value:functions(){vare=this,t=this.props.source||[];returnthis.props.data.hasEmptyDefault&&!t.find(function(e){return!e.value})&&t.unshift({value:"",title:this.props.data.emptyString,disabled:!1}),l["default"].createElement("select",this.getInputProps(),t.map(function(t,r){varn=e.props.name+"-"+(t.value||"empty"+r);returnl["default"].createElement("option",{key:n,value:t.value,disabled:t.disabled},t.title)}))}},{key:"getInputProps",value:functionc(){return{className:["form-control",this.props.extraClass].join(" "),id:this.props.id,name:this.props.name,onChange:this.handleChange,value:this.props.value}}},{key:"handleChange",value:functionf(e){"function"==typeofthis.props.onChange&&this.props.onChange(e,{id:this.props.id,value:e.target.value})}}]),t}(f["default"]);m.propTypes={id:l["default"].PropTypes.string,name:l["default"].PropTypes.string.isRequired,onChange:l["default"].PropTypes.func,value:l["default"].PropTypes.oneOfType([l["default"].PropTypes.string,l["default"].PropTypes.number]),readOnly:l["default"].PropTypes.bool,source:l["default"].PropTypes.arrayOf(l["default"].PropTypes.shape({value:l["default"].PropTypes.oneOfType([l["default"].PropTypes.string,l["default"].PropTypes.number]),title:l["default"].PropTypes.any,disabled:l["default"].PropTypes.bool})),data:l["default"].PropTypes.oneOfType([l["default"].PropTypes.array,l["default"].PropTypes.shape({hasEmptyDefault:l["default"].PropTypes.bool,emptyString:l["default"].PropTypes.string})])},m.defaultProps={source:[],data:{emptyString:y["default"]._t("Boolean.ANY","Any")}},t["default"]=(0,d["default"])(m)},function(e,t){e.exports=i18n},function(e,t,r){"use strict";functionn(e){returne&&e.__esModule?e:{"default":e}}functiono(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functiona(e,t){if(!e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeoft&&"function"!=typeoft?e:t}functioni(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function, not "+typeoft);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});varu=function(){functione(e,t){for(varr=0;r<t.length;r++){varn=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}returnfunction(t,r,n){returnr&&e(t.prototype,r),n&&e(t,n),t}}(),s=r(3),l=n(s),c=r(28),f=n(c),p=function(e){functiont(e){o(this,t);varr=a(this,(t.__proto__||O
itemLinks:r,itemId:t}))}},{key:"handleItemSelected",value:functions(e,t){this.props.campaignActions.selectChangeSetItem(t)}},{key:"renderButtonToolbar",value:functionl(){vare=this.getItems();if(!e||!e.length)returnh["default"].createElement("div",{className:"btn-toolbar"});vart={};return"open"===this.props.record.State?t=c(t,{title:G["default"]._t("Campaigns.PUBLISHCAMPAIGN"),bootstrapButtonStyle:"primary",loading:this.props.campaign.isPublishing,handleClick:this.handlePublish,icon:"rocket"}):"published"===this.props.record.State&&(t=c(t,{title:G["default"]._t("Campaigns.REVERTCAMPAIGN"),bootstrapButtonStyle:"default",icon:"back-in-time",disabled:!0})),h["default"].createElement("div",{className:"btn-toolbar"},h["default"].createElement(M["default"],t))}},{key:"getItems",value:functiond(){returnthis.props.record&&this.props.record._embedded?this.props.record._embedded.items:null}},{key:"groupItemsForSet",value:functiony(){vare={},t=this.getItems();returnt?(t.forEach(function(t){varr=t.BaseClass;e[r]||(e[r]={singular:t.Singular,plural:t.Plural,items:[]}),e[r].items.push(t)}),e):e}},{key:"handlePublish",value:functionm(e){e.preventDefault(),this.props.campaignActions.publishCampaign(this.props.publishApi,this.props.treeClass,this.props.campaignId)}}]),t}(T["default"]);q.propTypes={campaign:h["default"].PropTypes.shape({isPublishing:h["default"].PropTypes.bool.isRequired,changeSetItemId:h["default"].PropTypes.number}),breadcrumbsActions:h["default"].PropTypes.object.isRequired,campaignActions:h["default"].PropTypes.object.isRequired,publishApi:h["default"].PropTypes.func.isRequired,record:h["default"].PropTypes.object.isRequired,recordActions:h["default"].PropTypes.object.isRequired,sectionConfig:h["default"].PropTypes.object.isRequired,handleBackButtonClick:h["default"].PropTypes.func},t["default"]=(0,m.connect)(s,l)(q)},function(e,t,r){"use strict";functionn(e){returne&&e.__esModule?e:{"default":e}}functiono(e,t){varr=["id"];returnr.reduce(function(e,r){returne.replace(":"+r,t[r])},e)}functiona(e,t,r){varn={recordType:e},a={Accept:"text/json"},i=t.toLowerCase();returnfunction(t){t({type:l["default"].FETCH_RECORDS_REQUEST,payload:n});varu="get"===i?[o(r,n),a]:[o(r,n),{},a];returnf["default"][i].apply(f["default"],u).then(function(e){returne.json()}).then(function(r){t({type:l["default"].FETCH_RECORDS_SUCCESS,payload:{recordType:e,data:r}})})["catch"](function(r){t({type:l["default"].FETCH_RECORDS_FAILURE,payload:{error:r,recordType:e}})})}}functioni(e,t,r){varn={recordType:e},a={Accept:"text/json"},i=t.toLowerCase();returnfunction(t){t({type:l["default"].FETCH_RECORD_REQUEST,payload:n});varu="get"===i?[o(r,n),a]:[o(r,n),{},a];returnf["default"][i].apply(f["default"],u).then(function(e){returne.json()}).then(function(r){t({type:l["default"].FETCH_RECORD_SUCCESS,payload:{recordType:e,data:r}})})["catch"](function(r){t({type:l["default"].FETCH_RECORD_FAILURE,payload:{error:r,recordType:e}})})}}functionu(e,t,r,n){vara=arguments.length<=4||void0===arguments[4]?{}:arguments[4],i={recordType:e,id:t},u=r.toLowerCase(),s="get"===u?[o(n,i),a]:[o(n,i),{},a];returnfunction(r){returnr({type:l["default"].DELETE_RECORD_REQUEST,payload:i}),f["default"][u].apply(f["default"],s).then(function(){r({type:l["default"].DELETE_RECORD_SUCCESS,payload:{recordType:e,id:t}})})["catch"](function(n){r({type:l["default"].DELETE_RECORD_FAILURE,payload:{error:n,recordType:e,id:t}})})}}Object.defineProperty(t,"__esModule",{value:!0}),t.fetchRecords=a,t.fetchRecord=i,t.deleteRecord=u;vars=r(43),l=n(s),c=r(72),f=n(c)},function(e,t,r){"use strict";functionn(e){returne&&e.__esModule?e:{"default":e}}functiono(e,t,r){returntine?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}functiona(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functioni(e){vart=null,r=null;if(!(e.status>=200&&e.status<300))throwr=newError(e.statusText),r.response=e,r;returnt=e}Object.defineProperty(t,"__esModule",{value:!0});varu=Object.assign||function(e){for(vart=
!function(t,r){e.exports=r()}(this,function(){"use strict";functione(e){return"function"==typeofe||"object"==typeofe&&null!==e}functiona(e){return"function"==typeofe}functioni(e){J=e}functionu(e){X=e}functions(){returnfunction(){returnt.nextTick(d)}}functionl(){returnfunction(){$(d)}}functionc(){vare=0,t=newee(d),r=document.createTextNode("");returnt.observe(r,{characterData:!0}),function(){r.data=e=++e%2}}functionf(){vare=newMessageChannel;returne.port1.onmessage=d,function(){returne.port2.postMessage(0)}}functionp(){vare=setTimeout;returnfunction(){returne(d,1)}}functiond(){for(vare=0;e<W;e+=2){vart=ne[e],r=ne[e+1];t(r),ne[e]=void0,ne[e+1]=void0}W=0}functionh(){try{vare=n,t=r(77);return$=t.runOnLoop||t.runOnContext,l()}catch(o){returnp()}}functiony(e,t){varr=arguments,n=this,o=newthis.constructor(b);void0===o[ae]&&N(o);vara=n._state;returna?!function(){vare=r[a-1];X(function(){returnx(a,o,e,n._result)})}():R(n,o,e,t),o}functionm(e){vart=this;if(e&&"object"==typeofe&&e.constructor===t)returne;varr=newt(b);returnC(r,e),r}functionb(){}functionv(){returnnewTypeError("You cannot resolve a promise with itself")}function_(){returnnewTypeError("A promises callback cannot return that same promise.")}functiong(e){try{returne.then}catch(t){returnle.error=t,le}}functionE(e,t,r,n){try{e.call(t,r,n)}catch(o){returno}}functionw(e,t,r){X(function(e){varn=!1,o=E(r,t,function(r){n||(n=!0,t!==r?C(e,r):S(e,r))},function(t){n||(n=!0,j(e,t))},"Settle: "+(e._label||" unknown promise"));!n&&o&&(n=!0,j(e,o))},e)}functionO(e,t){t._state===ue?S(e,t._result):t._state===se?j(e,t._result):R(t,void0,function(t){returnC(e,t)},function(t){returnj(e,t)})}functionT(e,t,r){t.constructor===e.constructor&&r===y&&t.constructor.resolve===m?O(e,t):r===le?j(e,le.error):void0===r?S(e,t):a(r)?w(e,t,r):S(e,t)}functionC(t,r){t===r?j(t,v()):e(r)?T(t,r,g(r)):S(t,r)}functionP(e){e._onerror&&e._onerror(e._result),A(e)}functionS(e,t){e._state===ie&&(e._result=t,e._state=ue,0!==e._subscribers.length&&X(A,e))}functionj(e,t){e._state===ie&&(e._state=se,e._result=t,X(P,e))}functionR(e,t,r,n){varo=e._subscribers,a=o.length;e._onerror=null,o[a]=t,o[a+ue]=r,o[a+se]=n,0===a&&e._state&&X(A,e)}functionA(e){vart=e._subscribers,r=e._state;if(0!==t.length){for(varn=void0,o=void0,a=e._result,i=0;i<t.length;i+=3)n=t[i],o=t[i+r],n?x(r,n,o,a):o(a);e._subscribers.length=0}}functionk(){this.error=null}functionI(e,t){try{returne(t)}catch(r){returnce.error=r,ce}}functionx(e,t,r,n){varo=a(r),i=void0,u=void0,s=void0,l=void0;if(o){if(i=I(r,n),i===ce?(l=!0,u=i.error,i=null):s=!0,t===i)returnvoidj(t,_())}elsei=n,s=!0;t._state!==ie||(o&&s?C(t,i):l?j(t,u):e===ue?S(t,i):e===se&&j(t,i))}functionM(e,t){try{t(functionn(t){C(e,t)},functiono(t){j(e,t)})}catch(r){j(e,r)}}functionD(){returnfe++}functionN(e){e[ae]=fe++,e._state=void0,e._result=void0,e._subscribers=[]}functionL(e,t){this._instanceConstructor=e,this.promise=newe(b),this.promise[ae]||N(this.promise),Y(t)?(this._input=t,this.length=t.length,this._remaining=t.length,this._result=newArray(this.length),0===this.length?S(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&S(this.promise,this._result))):j(this.promise,U())}functionU(){returnnewError("Array Methods must be provided an Array")}functionF(e){returnnewL(this,e).promise}functionB(e){vart=this;returnnewt(Y(e)?function(r,n){for(varo=e.length,a=0;a<o;a++)t.resolve(e[a]).then(r,n)}:function(e,t){returnt(newTypeError("You must pass an array to race."))})}functionH(e){vart=this,r=newt(b);returnj(r,e),r}functionG(){thrownewTypeError("You must pass a resolver function as the first argument to the promise constructor")}functionq(){thrownewTypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}functionQ(e){this[ae]=D(),this._result=this._state=void0,this._subscribers=[],b!==e&&("function"!=typeofe&&G(),thisinstanceofQ?M(this,e):q())}functionV(){var