!function(e){functiont(r){if(n[r])returnn[r].exports;varo=n[r]={exports:{},id:r,loaded:!1};returne[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}varn={};returnt.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";functionr(e){if(e&&e.__esModule)returne;vart={};if(null!=e)for(varnine)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);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",k["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",$["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()),n=[c["default"]],r=p["default"].get("environment"),o=p["default"].get("debugging"),a=s.applyMiddleware.apply(void0,n),i=window.devToolsExtension;"dev"===r&&o&&"function"==typeofi&&(a=(0,s.compose)(s.applyMiddleware.apply(void0,n),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=n(2),u=o(i),s=n(30),l=n(31),c=o(l),f=n(24),p=o(f),d=n(32),h=o(d),y=n(33),m=o(y),b=n(34),v=r(b),_=n(36),g=o(_),E=n(38),w=o(E),O=n(40),T=o(O),C=n(42),P=o(C),S=n(44),j=o(S),R=n(46),k=o(R),A=n(48),I=o(A),x=n(50),M=o(x),D=n(52),N=o(D),L=n(53),U=o(L),F=n(54),B=o(F),H=n(55),G=o(H),q=n(57),Q=o(q),V=n(58),K=o(V),Y=n(59),W=o(Y),J=n(60),$=o(J),X=n(61),z=o(X),Z=n(62),ee=o(Z),te=n(29),ne=n(63),re=o(ne);window.onload=a},function(e,t){e.exports=jQuery},function(e,t,n){"use strict";functionr(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(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}returnfunction(t,n,r){returnn&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),u=r(i),s=n(3),l=r(s),c=n(4),f=r(c),p=n(5),d=n(6),h=n(7),y=r(h),m=n(24),b=r(m),v=n(25),_=r(v),g=n(26),E=r(g),w=n(27),O=r(w),T=n(29),C=function(){functione(t){o(this,e),this.store=t;varn=b["default"].get("absoluteBaseUrl");_["default"].setAbsoluteBase(n)}returna(e,[{key:"start",value:functiont(e){this.matchesLegacyRoute(e)?this.initLegacyRouter():this.initReactRouter()}},{key:"matchesLegacyRoute",value:functionn(e){vart=b["default"].get("sections"),n=_["default"].resolveURLToBase(e).replace(/\/$/,"");return!!Object.keys(t).find(function(e){varr=t[e],o=_["default"].resolveURLToBase(r.url).replace(/\/$/,"");return!r.reactRouter&&n.match(o)})}},{key:"initReactRouter",value:functionr(){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,n){e.store=t,n()});varn=null;Object.keys(e).forEach(function(t){varr=_["default"].resolveURLToBase(e[t].url);r=r.replace(/\/$/,""),
extraClass:p["default"].PropTypes.string,holder_id:p["default"].PropTypes.string,id:p["default"].PropTypes.string,description:p["default"].PropTypes.oneOfType([p["default"].PropTypes.string,p["default"].PropTypes.object])},t}Object.defineProperty(t,"__esModule",{value:!0});vars="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol?"symbol":typeofe},l=Object.assign||function(e){for(vart=1;t<arguments.length;t++){varn=arguments[t];for(varrinn)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}returne},c=function(){functione(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}returnfunction(t,n,r){returnn&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(3),p=r(f),d=n(28),h=r(d);t["default"]=u},function(e,t,n){"use strict";functionr(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(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}returnfunction(t,n,r){returnn&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(3),l=r(s),c=n(28),f=r(c),p=n(49),d=r(p),h=n(51),y=r(h),m=function(e){functiont(e){o(this,t);varn=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));returnn.handleChange=n.handleChange.bind(n),n}returni(t,e),u(t,[{key:"render",value:functionn(){vare=null;returne=this.props.readOnly?this.getReadonlyField():this.getSelectField()}},{key:"getReadonlyField",value:functionr(){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,n){varr=e.props.name+"-"+(t.value||"empty"+n);returnl["default"].createElement("option",{key:r,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["def
className:"alert alert-warning",role:"alert"},h["default"].createElement("strong",null,"This campaign is empty.")," You can add pages by selecting"," ",h["default"].createElement("em",null,"Add to campaign")," from within the ",h["default"].createElement("em",null,"More Options")," popup on"," ","the ",h["default"].createElement("a",{href:u},"edit page screen"),"."),l=["container-fluid","campaign-items","panel-scrollable","panel-scrollable--double-toolbar"];returnh["default"].createElement("div",{className:"cms-content__split cms-content__split--left-sm"},h["default"].createElement("div",{className:"cms-content__left cms-campaigns collapse in","aria-expanded":"true"},h["default"].createElement(I["default"],{showBackButton:!0,handleBackButtonClick:this.props.handleBackButtonClick},h["default"].createElement(U["default"],{multiline:!0,crumbs:this.props.breadcrumbs})),h["default"].createElement("div",{className:l.join(" ")},s),h["default"].createElement("div",{className:"toolbar--south"},this.renderButtonToolbar())),h["default"].createElement(B["default"],{itemLinks:n,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){varn=t.BaseClass;e[n]||(e[n]={singular:t.Singular,plural:t.Plural,items:[]}),e[n].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,n){"use strict";functionr(e){returne&&e.__esModule?e:{"default":e}}functiono(e,t){varn=["id"];returnn.reduce(function(e,n){returne.replace(":"+n,t[n])},e)}functiona(e,t,n){varr={recordType:e},a={Accept:"text/json"},i=t.toLowerCase();returnfunction(t){t({type:l["default"].FETCH_RECORDS_REQUEST,payload:r});varu="get"===i?[o(n,r),a]:[o(n,r),{},a];returnf["default"][i].apply(f["default"],u).then(function(e){returne.json()}).then(function(n){t({type:l["default"].FETCH_RECORDS_SUCCESS,payload:{recordType:e,data:n}})})["catch"](function(n){t({type:l["default"].FETCH_RECORDS_FAILURE,payload:{error:n,recordType:e}})})}}functioni(e,t,n){varr={recordType:e},a={Accept:"text/json"},i=t.toLowerCase();returnfunction(t){t({type:l["default"].FETCH_RECORD_REQUEST,payload:r});varu="get"===i?[o(n,r),a]:[o(n,r),{},a];returnf["default"][i].apply(f["default"],u).then(function(e){returne.json()}).then(function(n){t({type:l["default"].FETCH_RECORD_SUCCESS,payload:{recordType:e,data:n}})})["catch"](function(n){t({type:l["default"].FETCH_RECORD_FAILURE,payload:{error:n,recordType:e}})})}}functionu(e,t,n,r){vara=arguments.length<=4||void
!function(t,n){e.exports=n()}(this,function(){"use strict";functione(e){return"function"==typeofe||"object"==typeofe&&null!==e}functiona(e){return"function"==typeofe}functioni(e){$=e}functionu(e){X=e}functions(){returnfunction(){returnt.nextTick(d)}}functionl(){returnfunction(){J(d)}}functionc(){vare=0,t=newee(d),n=document.createTextNode("");returnt.observe(n,{characterData:!0}),function(){n.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=re[e],n=re[e+1];t(n),re[e]=void0,re[e+1]=void0}W=0}functionh(){try{vare=r,t=n(77);returnJ=t.runOnLoop||t.runOnContext,l()}catch(o){returnp()}}functiony(e,t){varn=arguments,r=this,o=newthis.constructor(b);void0===o[ae]&&N(o);vara=r._state;returna?!function(){vare=n[a-1];X(function(){returnx(a,o,e,r._result)})}():R(r,o,e,t),o}functionm(e){vart=this;if(e&&"object"==typeofe&&e.constructor===t)returne;varn=newt(b);returnC(n,e),n}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,n,r){try{e.call(t,n,r)}catch(o){returno}}functionw(e,t,n){X(function(e){varr=!1,o=E(n,t,function(n){r||(r=!0,t!==n?C(e,n):S(e,n))},function(t){r||(r=!0,j(e,t))},"Settle: "+(e._label||" unknown promise"));!r&&o&&(r=!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,n){t.constructor===e.constructor&&n===y&&t.constructor.resolve===m?O(e,t):n===le?j(e,le.error):void0===n?S(e,t):a(n)?w(e,t,n):S(e,t)}functionC(t,n){t===n?j(t,v()):e(n)?T(t,n,g(n)):S(t,n)}functionP(e){e._onerror&&e._onerror(e._result),k(e)}functionS(e,t){e._state===ie&&(e._result=t,e._state=ue,0!==e._subscribers.length&&X(k,e))}functionj(e,t){e._state===ie&&(e._state=se,e._result=t,X(P,e))}functionR(e,t,n,r){varo=e._subscribers,a=o.length;e._onerror=null,o[a]=t,o[a+ue]=n,o[a+se]=r,0===a&&e._state&&X(k,e)}functionk(e){vart=e._subscribers,n=e._state;if(0!==t.length){for(varr=void0,o=void0,a=e._result,i=0;i<t.length;i+=3)r=t[i],o=t[i+n],r?x(n,r,o,a):o(a);e._subscribers.length=0}}functionA(){this.error=null}functionI(e,t){try{returne(t)}catch(n){returnce.error=n,ce}}functionx(e,t,n,r){varo=a(n),i=void0,u=void0,s=void0,l=void0;if(o){if(i=I(n,r),i===ce?(l=!0,u=i.error,i=null):s=!0,t===i)returnvoidj(t,_())}elsei=r,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(functionr(t){C(e,t)},functiono(t){j(e,t)})}catch(n){j(e,n)}}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(n,r){for(varo=e.length,a=0;a<o;a++)t.resolve(e[a]).then(n,r)}:function(e,t){returnt(newTypeError("You must pass an array to race."))})}functionH(e){vart=this,n=newt(b);returnj(n,e),n}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