!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=237)}([function(e,t,n){"use strict";e.exports=n(58)},,,,,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,,,,function(e,t,n){"use strict";var r=function e(t,n,r,o){var a=function(){return t.apply(void 0,arguments)},i="".concat(n,".isRequired");return a.type=n,a.args=r,a.tag=function(e){var l=function(){return a.apply(void 0,arguments)};return l.type=n,l.args=r,l.tags=e,!o&&t.isRequired&&((l.isRequired=function(){return t.isRequired.apply(t,arguments)}).type=i,l.isRequired.args=r,l.isRequired.tags=e),l},!o&&t.isRequired&&(a.isRequired=e(t.isRequired,i,r,!0)),a},o=function(e,t){return function(n){var o=e(n);return r(o,t,n)}};e.exports={taggable:function(e,t){return e.isRequired?r(e,t):o(e,t)},taggableComplex:o,taggablePrimitive:r}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?t-1:0),r=1;r1?t-1:0),a=1;a1&&void 0!==arguments[1]?arguments[1]:"image",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{"data-feature":e,"data-field-editable":m(t),contentEditable:"true","data-searchable":"true","data-searchable-type":n,"data-content-source":null==r?void 0:r.contentSource}},searchableContent:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"image";return{"data-feature":e,"data-content-editable":y(n,t&&t[s]),contentEditable:"true","data-searchable":"true","data-searchable-type":r}}}:{editableField:function(){return{}},editableContent:function(){return{}},searchableField:function(){return{}},searchableContent:function(){return{}}}}}},function(e,t,n){(function(e,n){var r=/^\[object .+?Constructor\]$/,o=/^(?:0|[1-9]\d*)$/,a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var i="object"==typeof e&&e&&e.Object===Object&&e,l="object"==typeof self&&self&&self.Object===Object&&self,s=i||l||Function("return this")(),u=t&&!t.nodeType&&t,c=u&&"object"==typeof n&&n&&!n.nodeType&&n,f=c&&c.exports===u,d=f&&i.process,p=function(){try{var e=c&&c.require&&c.require("util").types;return e||d&&d.binding&&d.binding("util")}catch(e){}}(),h=p&&p.isTypedArray;function m(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var y,b,g,v=Array.prototype,w=Function.prototype,k=Object.prototype,S=s["__core-js_shared__"],E=w.toString,O=k.hasOwnProperty,P=(y=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+y:"",x=k.toString,C=E.call(Object),_=RegExp("^"+E.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=f?s.Buffer:void 0,A=s.Symbol,T=s.Uint8Array,I=j?j.allocUnsafe:void 0,N=(b=Object.getPrototypeOf,g=Object,function(e){return b(g(e))}),L=Object.create,R=k.propertyIsEnumerable,F=v.splice,M=A?A.toStringTag:void 0,D=function(){try{var e=ue(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),z=j?j.isBuffer:void 0,U=Math.max,B=Date.now,W=ue(s,"Map"),$=ue(Object,"create"),V=function(){function e(){}return function(t){if(!ke(t))return{};if(L)return L(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function H(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},G.prototype.set=function(e,t){var n=this.__data__,r=Z(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},q.prototype.clear=function(){this.size=0,this.__data__={hash:new H,map:new(W||G),string:new H}},q.prototype.delete=function(e){var t=se(this,e).delete(e);return this.size-=t?1:0,t},q.prototype.get=function(e){return se(this,e).get(e)},q.prototype.has=function(e){return se(this,e).has(e)},q.prototype.set=function(e,t){var n=se(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Q.prototype.clear=function(){this.__data__=new G,this.size=0},Q.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Q.prototype.get=function(e){return this.__data__.get(e)},Q.prototype.has=function(e){return this.__data__.has(e)},Q.prototype.set=function(e,t){var n=this.__data__;if(n instanceof G){var r=n.__data__;if(!W||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new q(r)}return n.set(e,t),this.size=n.size,this};var ee,te=function(e,t,n){for(var r=-1,o=Object(e),a=n(e),i=a.length;i--;){var l=a[ee?i:++r];if(!1===t(o[l],l,o))break}return e};function ne(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":M&&M in Object(e)?function(e){var t=O.call(e,M),n=e[M];try{e[M]=void 0;var r=!0}catch(e){}var o=x.call(e);r&&(t?e[M]=n:delete e[M]);return o}(e):function(e){return x.call(e)}(e)}function re(e){return Se(e)&&"[object Arguments]"==ne(e)}function oe(e){return!(!ke(e)||function(e){return!!P&&P in e}(e))&&(ve(e)?_:r).test(function(e){if(null!=e){try{return E.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function ae(e){if(!ke(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=fe(e),n=[];for(var r in e)("constructor"!=r||!t&&O.call(e,r))&&n.push(r);return n}function ie(e,t,n,r,o){e!==t&&te(t,(function(a,i){if(o||(o=new Q),ke(a))!function(e,t,n,r,o,a,i){var l=de(e,n),s=de(t,n),u=i.get(s);if(u)return void Y(e,n,u);var c=a?a(l,s,n+"",e,t,i):void 0,f=void 0===c;if(f){var d=ye(s),p=!d&&ge(s),h=!d&&!p&&Ee(s);c=s,d||p||h?ye(l)?c=l:Se(v=l)&&be(v)?c=function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(D?function(e,t){return D(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Ce);function he(e,t){return e===t||e!=e&&t!=t}var me=re(function(){return arguments}())?re:function(e){return Se(e)&&O.call(e,"callee")&&!R.call(e,"callee")},ye=Array.isArray;function be(e){return null!=e&&we(e.length)&&!ve(e)}var ge=z||function(){return!1};function ve(e){if(!ke(e))return!1;var t=ne(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function we(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function ke(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Se(e){return null!=e&&"object"==typeof e}var Ee=h?function(e){return function(t){return e(t)}}(h):function(e){return Se(e)&&we(e.length)&&!!a[ne(e)]};function Oe(e){return be(e)?K(e,!0):ae(e)}var Pe,xe=(Pe=function(e,t,n){ie(e,t,n)},le((function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(o=Pe.length>3&&"function"==typeof o?(r--,o):void 0,a&&function(e,t,n){if(!ke(n))return!1;var r=typeof t;return!!("number"==r?be(n)&&ce(t,n.length):"string"==r&&t in n)&&he(n[t],e)}(t[0],t[1],a)&&(o=r<3?void 0:o,r=1),e=Object(e);++n1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var n=m(e),a=y("%"+(n.length>0?n[0]:"")+"%",t),i=1;i=n.length){var l=o(a,n[i]);if(!(t||n[i]in a))throw new r("base intrinsic for "+e+" exists, but the property is not available.");a=l?l.get||l.value:a[n[i]]}else a=a[n[i]];return a}},,function(e,t,n){e.exports=n(63)()},,function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=n(0),s=l.useContext,u=n(12).applyLocalEdits,c=n(20),f=n(21),d=f.componentHasTest,p=f.sendEventConfirmation,h=function(){var e=s(Fusion.contexts.app),t=e.editedGlobalContents,n=e.variantMap,r=e.props,a=void 0===r?{}:r,l=s(Fusion.contexts.component),c=l.localEdits,f=(l.variants,i(l,["localEdits","variants"]));return o({},f,{get globalContent(){return t.hasOwnProperty(f.id)||(t[f.id]=u(a.globalContent,c)),t[f.id]},registerSuccessEvent:function(){var e=f.id,t=f.isVariant,r=void 0===t?e:t;return d(e,n)?p({eventType:"clicked",testId:e,variantId:r}):Promise.resolve(null)}})},m=function(){var e=s(Fusion.contexts.app).props,t=void 0===e?{}:e,n=h();return o({},t,{get globalContent(){return n.globalContent}})},y=function(){return o({},m(),{},h())};function b(e){return function(t){var n=t.children,r=i(t,["children"]),a=[].concat(n||[]),s=e();return l.createElement(l.Fragment,{},a.map((function(e,t){return l.createElement(e,o({key:t},s,{},r))})))}}var g=function(e){return function(t){return function(n){var r=e();return l.createElement(t,o({},n,{},r))}}},v=c(b(m)),w=c(b(h)),k=c(b(y));e.exports=k,e.exports.AppContext=v,e.exports.ComponentContext=w,e.exports.FusionContext=k,e.exports.useAppContext=m,e.exports.useComponentContext=h,e.exports.useFusionContext=y,e.exports.withAppContext=g(m),e.exports.withComponentContext=g(h),e.exports.withFusionContext=g(y)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t1?u-1:0),f=1;f0}e.exports={componentHasTest:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.hasOwnProperty(e)},getTestIds:function(e){return e.filter(l).map((function(e){var t=e.props;return(void 0===t?{}:t).id})).filter((function(e){return e}))},fetchVariantsToRender:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!e.length)return Promise.resolve({});var t=e.map((function(e){return e.trim()})).join(","),n="/bandito/v2/api/variants?ids=".concat(t);return window.fetch(n).then((function(e){if(200!==e.status)throw new Error("Fetching Bandito variants failed with status code ".concat(e.status));return e})).then((function(e){return e.json()})).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e,n){return e[n]=i(t,n),e}),{})})).catch((function(e){return Fusion.isAdmin&&console.warn("Error fetching winning variants:",e.message),{}}))},modifyNodeWithVariants:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.id;if(!n||!t[n])return e;var r=t[n];if(e.variants&&e.variants[r]){var a=e.variants[r],i={customFields:a.customFields,isVariant:r,localEdits:a.localEdits};return o({},e,{},i)}return e},sendEventConfirmation:function(e){var t=e.eventType,n=e.testId,r=e.variantId;if(Fusion.isAdmin)return Promise.resolve(!1);if(!t||!n||!r)return!1;var o={event:t,test_id:n,variant_id:r};return window.fetch("/bandito-events/api/save-event",{method:"POST",body:JSON.stringify(o)}).then((function(e){if(200!==e.status)throw new Error("Sending Bandito event confirmation failed with status code ".concat(e.status));return e})).then((function(e){return e.json()})).catch((function(e){Fusion.isAdmin&&console.warn(e.message)}))}}},function(e,t,n){"use strict";var r=n(92);e.exports=Function.prototype.bind||r},,,,,,,function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,s=i(e),u=1;u2?arguments[2]:{},a=r(t);o&&(a=i.call(a,Object.getOwnPropertySymbols(t)));for(var l=0;l=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";var r=n(98),o=n(99),a=n(100)("String.prototype.replace"),i=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,l=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;e.exports=function(){var e=o(r(this));return a(a(e,i,""),l,"")}},function(e,t,n){"use strict";var r=n(37);e.exports=function(){return String.prototype.trim&&"​"==="​".trim()?String.prototype.trim:r}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t,o,a){var i,l=o;"function"!=typeof l&&(l=function(e,t){i=t});var s=function(e,t,r){var o=e,a=r;return"function"==typeof a?(o=a(t,o),a="object"===n(o)?a:void 0):"function"==typeof o&&(o=void 0),{value:o,onValue:a}}(e,a,t),u=s.value,c=s.onValue;return u&&"object"===n(u)?function(e,t,n,r){var o=Object.keys(t),a=t instanceof Array,i=null,l=0,s=[],u=function(){return r(null,a?"[".concat(s.map((function(e){return null===e?"null":e})).join(","),"]"):"{".concat(s.sort().filter(Boolean).join(","),"}"))},c=function(e,t,n){return i?null:e?(i=e,r(e)):(s[n]=void 0===t?null:t,++l!==o.length?null:u())};0===o.length?u():o.map(a?function(r,o){return e(void 0===t[r]?null:t[r],n,(function(e,t){return c(e,t,o)}),r)}:function(r,o){return void 0===t[r]?c(null,null):e(t[r],n,(function(e,t){return c(e,void 0===t?null:'"'.concat(r,'":').concat(t),o)}),r)})}(r,u,c,l):function(e,t,n){var r,o=null;try{r=JSON.stringify(t)}catch(e){o=e}n(o,r)}(0,u,l),i}e.exports=function(e,t,n,o){return JSON.parse(r(e,t,n,o))},e.exports.stringify=r},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(0);e.exports=function(e){return a.createElement("div",function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t