iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://www.gamasutra.com/build/_shared/chunk-ZDAXSOB7.js
import{a as ct}from"/build/_shared/chunk-ZX65YBHQ.js";import{A as Lt,a as $,ea as Bt,la as Qo,ra as Vl,sa as Jo}from"/build/_shared/chunk-ZJGIOTWJ.js";import{K as b}from"/build/_shared/chunk-X2QZ46OV.js";import{a as S}from"/build/_shared/chunk-63EVRDSK.js";import{b as x,c as C,d as pt,e as d,f as kt}from"/build/_shared/chunk-ADMCF34Z.js";var A={};pt(A,{DEFAULT_CONSENT_CLASSNAMES:()=>Mt,DEFAULT_ENTITLEMENT_LAYOUT_CLASSNAMES:()=>xt,DEFAULT_ERROR_CLASSNAMES:()=>Dt,DEFAULT_FORM_CLASSNAMES:()=>I,DEFAULT_FORM_SUBMISSION_STATES:()=>Lr,DEFAULT_NEWSLETTER_LAYOUT_CLASSNAMES:()=>Re,DEFAULT_NEWSLETTER_LIST_CLASSNAMES:()=>et,DEFAULT_NEWSLETTER_SUCCESS_CLASSNAMES:()=>ft,DEFAULT_SPINNER_CLASSNAMES:()=>Oe,STATE_PROVINCE_SELECT_INPUT_HTML_NAME:()=>Wl,TYPE_CONCEPT_SELECT_INPUT_HTML_NAME:()=>Gl});var ft,Dt,Re,Mt,et,I,Oe,Lr,Wl,Gl,xt,Ue=x(()=>{ft={CONTAINER_DIV:"eln-newsletter-success-container",PLAIN_TEXT:"eln-newsletter-success-paragraph-text",EMPHASIS_TEXT:"eln-newsletter-success-emphasis-text",THANKYOU_TITLE:"eln-newsletter-success-title",BUTTON:"eln-newsletter-success-button"},Dt={CONTAINER_DIV:"eln-error-container",PLAIN_TEXT:"eln-error-paragraph-text",ERROR_TITLE:"eln-error-title",BUTTON:"eln-error-button"},Re={CONTAINER:"eln-newsletter-formlayout-container",SUBMIT_CONTAINER:"eln-newsletter-formlayout-submit-container",SUBMIT_BUTTON:"eln-newsletter-formlayout-submit-button"},Mt={CONTAINER:"eln-newsletter-consent-container",THIRD_PARTY_CONTAINER:"eln-third-party-consent-container",INPUT:"eln-third-party-consent-input",A:"eln-third-party-consent-a",P:"eln-third-party-consent-p",LAYOUT:"eln-third-party-consent-layout"},et={CONTAINER:"eln-newsletter-newsletterlist-container",ITEM:"eln-newsletter-newsletterlist-item",TITLE:"eln-newsletter-newsletterlist-title",INPUT_CONTAINER:"eln-newsletter-newsletterlist-input-container",CONTENT_CONTAINER:"eln-newsletter-newsletterlist-content-container",CONTENT_A:"eln-newsletter-newsletterlist-content-a",CONTENT_P:"eln-newsletter-newsletterlist-content-p",FREQUENCY:"eln-newsletter-newsletterlist-frequency",FREQUENCY_A:"eln-newsletter-newsletterlist-frequency-a",FREQUENCY_P:"eln-newsletter-newsletterlist-frequency-p"},I={FORM:"eln-newsletter-form",ENTITLEMENTFORM:"eln-entitlement-form",CONTAINER:"eln-newsletter-form-container",SUBMIT_FRAGMENT:"eln-newsletter-form-submit-fragment",TEXT_INPUT_FRAGMENT:"eln-newsletter-form-text-input-fragment",LABEL_FRAGMENT:"eln-newsletter-form-label-fragment",TEXT_FRAGMENT:"eln-newsletter-form-text-fragment",SELECT_INPUT_FRAGMENT:"eln-newsletter-form-select-input-fragment",CHECKBOX_INPUT_FRAGMENT:"eln-newsletter-form-checkbox-input-fragment",SELECT_STATE_PROVINCE_HIDDEN:"eln-newsletter-form-select-state-province-hidden",SELECT_MULTIPLE:"eln-newsletter-form-select-multiple",VALIDATION_HEADER:"eln-form-validation-header",VALIDATION_ERRORED_FIELD:"eln-form-errored-field",VALIDATION_ERROR_NEWSLETTER:"eln-newsletter-error",ROW:"eln-newsletter-form-row",SELECT_ELEMENT:"eln-newsletter-form-select-element",SELECT_OPTION_ELEMENT:"eln-newsletter-form-select-option-element",INPUT_ELEMENT:"eln-newsletter-form-input-element",A:"eln-newsletter-form-a",P:"eln-newsletter-form-p",CHECKBOX_CONTAINER:"eln-newsletter-form-checkbox-container",RADIO_OPTION_ELEMENT:"eln-newsletter-form-radio-option-element"},Oe={CONTAINER:"eln-ui-spinner-container",LOADING:"eln-ui-spinner-loading"},Lr=(s=>(s.ERROR="ERROR",s.PENDING="PENDING",s.SUCCESS="SUCCESS",s.NEW="NEW",s))(Lr||{}),Wl="state",Gl="typeConcept",xt={CONTAINER:"eln-entitlement-formlayout-container",TITLE:"eln-entitlement-formlayout-title",DESCRIPTION:"eln-entitlement-formlayout-description",SUBMIT:"eln-entitlement-formlayout-submit-container",HUBSPOT_HELPER_TEXT_WRAPPER:"eln-entitlement-formlayour-helper-text-wrapper",HUBSPOT_HELPER_TEXT_LINKS:"eln-entitlement-formlayour-helper-text-links"}});var k={};pt(k,{ElementNames:()=>as,FilterFieldAction:()=>Le,FilterOperator:()=>ns,FormType:()=>ke});var ke,ns,Le,as,Ht=x(()=>{ke=(r=>(r.ELOQUA="ELOQUA",r.HUBSPOT="HUBSPOT",r))(ke||{}),ns=(h=>(h.EQ="EQ",h.NEQ="NEQ",h.CONTAINS="CONTAINS",h.DOESNT_CONTAIN="DOESNT_CONTAIN",h.STR_STARTS_WITH="STR_STARTS_WITH",h.STR_ENDS_WITH="STR_ENDS_WITH",h.LT="LT",h.LTE="LTE",h.GT="GT",h.GTE="GTE",h.BETWEEN="BETWEEN",h.NOT_BETWEEN="NOT_BETWEEN",h.WITHIN_TIME_REVERSE="WITHIN_TIME_REVERSE",h.WITHIN_TIME="WITHIN_TIME",h.SET_ALL="SET_ALL",h.SET_ANY="SET_ANY",h.SET_NOT_ANY="SET_NOT_ANY",h.SET_EQ="SET_EQ",h.SET_NEQ="SET_NEQ",h.IS_NOT_EMPTY="IS_NOT_EMPTY",h))(ns||{}),Le=(t=>(t.DISPLAY="DISPLAY",t))(Le||{}),as=(l=>(l.STATE="state",l.COUNTRY="country",l.CONSENT="consent",l.THIRD_PARTY_CONSENT="thirdPartyConsent",l.NEWSLETTER_LIST="newsletterList",l.EMAIL_ADDRESS="emailAddress",l.BUSINESS_EMAIL="business_email",l.MARKETO_EMAIL="Email",l.MARKETO_COUNTRY="Country",l))(as||{})});var ls=x(()=>{});var jl,Br,is=x(()=>{jl=e=>{let t=document.cookie.split("; ").map(r=>r.split(/=(.*)/s).map(decodeURIComponent));return Object.fromEntries(t)[e]||null},Br=()=>{let e=jl("utm_parameters");return e?e.split(",").map(t=>t.split(":")).map(([t,r])=>({key:t,value:r})):[]}});var Dr=C((Um,ps)=>{"use strict";ps.exports=function(t,r){return function(){for(var s=new Array(arguments.length),n=0;n{"use strict";var zl=Dr(),Hr=Object.prototype.toString,Vr=function(e){return function(t){var r=Hr.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())}}(Object.create(null));function ht(e){return e=e.toLowerCase(),function(r){return Vr(r)===e}}function qr(e){return Array.isArray(e)}function De(e){return typeof e>"u"}function Yl(e){return e!==null&&!De(e)&&e.constructor!==null&&!De(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var cs=ht("ArrayBuffer");function $l(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&cs(e.buffer),t}function Ql(e){return typeof e=="string"}function Jl(e){return typeof e=="number"}function ms(e){return e!==null&&typeof e=="object"}function Be(e){if(Vr(e)!=="object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var Kl=ht("Date"),Xl=ht("File"),Zl=ht("Blob"),ti=ht("FileList");function Wr(e){return Hr.call(e)==="[object Function]"}function ei(e){return ms(e)&&Wr(e.pipe)}function ri(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Hr.call(e)===t||Wr(e.toString)&&e.toString()===t)}var oi=ht("URLSearchParams");function si(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function ni(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Gr(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),qr(e))for(var r=0,o=e.length;r0;)n=o[s],a[n]||(t[n]=e[n],a[n]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t}function ci(e,t,r){e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;var o=e.indexOf(t,r);return o!==-1&&o===r}function mi(e){if(!e)return null;var t=e.length;if(De(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r}var di=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));ds.exports={isArray:qr,isArrayBuffer:cs,isBuffer:Yl,isFormData:ri,isArrayBufferView:$l,isString:Ql,isNumber:Jl,isObject:ms,isPlainObject:Be,isUndefined:De,isDate:Kl,isFile:Xl,isBlob:Zl,isFunction:Wr,isStream:ei,isURLSearchParams:oi,isStandardBrowserEnv:ni,forEach:Gr,merge:Mr,extend:ai,trim:si,stripBOM:li,inherits:ii,toFlatObject:pi,kindOf:Vr,kindOfTest:ht,endsWith:ci,toArray:mi,isTypedArray:di,isFileList:ti}});var jr=C((Lm,us)=>{"use strict";var Vt=L();function ys(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}us.exports=function(t,r,o){if(!r)return t;var s;if(o)s=o(r);else if(Vt.isURLSearchParams(r))s=r.toString();else{var n=[];Vt.forEach(r,function(p,l){p===null||typeof p>"u"||(Vt.isArray(p)?l=l+"[]":p=[p],Vt.forEach(p,function(m){Vt.isDate(m)?m=m.toISOString():Vt.isObject(m)&&(m=JSON.stringify(m)),n.push(ys(l)+"="+ys(m))}))}),s=n.join("&")}if(s){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}});var gs=C((Bm,bs)=>{"use strict";var yi=L();function Me(){this.handlers=[]}Me.prototype.use=function(t,r,o){return this.handlers.push({fulfilled:t,rejected:r,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1};Me.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Me.prototype.forEach=function(t){yi.forEach(this.handlers,function(o){o!==null&&t(o)})};bs.exports=Me});var xs=C((Dm,fs)=>{"use strict";var ui=L();fs.exports=function(t,r){ui.forEach(t,function(s,n){n!==r&&n.toUpperCase()===r.toUpperCase()&&(t[r]=s,delete t[n])})}});var Tt=C((Mm,Cs)=>{"use strict";var hs=L();function qt(e,t,r,o,s){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),o&&(this.request=o),s&&(this.response=s)}hs.inherits(qt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Ts=qt.prototype,ws={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){ws[e]={value:e}});Object.defineProperties(qt,ws);Object.defineProperty(Ts,"isAxiosError",{value:!0});qt.from=function(e,t,r,o,s,n){var a=Object.create(Ts);return hs.toFlatObject(e,a,function(p){return p!==Error.prototype}),qt.call(a,e.message,t,r,o,s),a.name=e.name,n&&Object.assign(a,n),a};Cs.exports=qt});var zr=C((Hm,Es)=>{"use strict";Es.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}});var Yr=C((Vm,vs)=>{"use strict";var K=L();function bi(e,t){t=t||new FormData;var r=[];function o(n){return n===null?"":K.isDate(n)?n.toISOString():K.isArrayBuffer(n)||K.isTypedArray(n)?typeof Blob=="function"?new Blob([n]):Buffer.from(n):n}function s(n,a){if(K.isPlainObject(n)||K.isArray(n)){if(r.indexOf(n)!==-1)throw Error("Circular reference detected in "+a);r.push(n),K.forEach(n,function(p,l){if(!K.isUndefined(p)){var c=a?a+"."+l:l,m;if(p&&!a&&typeof p=="object"){if(K.endsWith(l,"{}"))p=JSON.stringify(p);else if(K.endsWith(l,"[]")&&(m=K.toArray(p))){m.forEach(function(y){!K.isUndefined(y)&&t.append(c,o(y))});return}}s(p,c)}}),r.pop()}else t.append(a,o(n))}return s(e),t}vs.exports=bi});var Ns=C((qm,Ss)=>{"use strict";var $r=Tt();Ss.exports=function(t,r,o){var s=o.config.validateStatus;!o.status||!s||s(o.status)?t(o):r(new $r("Request failed with status code "+o.status,[$r.ERR_BAD_REQUEST,$r.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}});var _s=C((Wm,Fs)=>{"use strict";var He=L();Fs.exports=He.isStandardBrowserEnv()?function(){return{write:function(r,o,s,n,a,i){var p=[];p.push(r+"="+encodeURIComponent(o)),He.isNumber(s)&&p.push("expires="+new Date(s).toGMTString()),He.isString(n)&&p.push("path="+n),He.isString(a)&&p.push("domain="+a),i===!0&&p.push("secure"),document.cookie=p.join("; ")},read:function(r){var o=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var Ps=C((Gm,As)=>{"use strict";As.exports=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}});var Rs=C((jm,Is)=>{"use strict";Is.exports=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}});var Qr=C((zm,Os)=>{"use strict";var gi=Ps(),fi=Rs();Os.exports=function(t,r){return t&&!gi(r)?fi(t,r):r}});var ks=C((Ym,Us)=>{"use strict";var Jr=L(),xi=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];Us.exports=function(t){var r={},o,s,n;return t&&Jr.forEach(t.split(` `),function(i){if(n=i.indexOf(":"),o=Jr.trim(i.substr(0,n)).toLowerCase(),s=Jr.trim(i.substr(n+1)),o){if(r[o]&&xi.indexOf(o)>=0)return;o==="set-cookie"?r[o]=(r[o]?r[o]:[]).concat([s]):r[o]=r[o]?r[o]+", "+s:s}}),r}});var Ds=C(($m,Bs)=>{"use strict";var Ls=L();Bs.exports=Ls.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),o;function s(n){var a=n;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return o=s(window.location.href),function(a){var i=Ls.isString(a)?s(a):a;return i.protocol===o.protocol&&i.host===o.host}}():function(){return function(){return!0}}()});var pe=C((Qm,Hs)=>{"use strict";var Kr=Tt(),hi=L();function Ms(e){Kr.call(this,e??"canceled",Kr.ERR_CANCELED),this.name="CanceledError"}hi.inherits(Ms,Kr,{__CANCEL__:!0});Hs.exports=Ms});var qs=C((Jm,Vs)=>{"use strict";Vs.exports=function(t){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""}});var Xr=C((Km,Ws)=>{"use strict";var ce=L(),Ti=Ns(),wi=_s(),Ci=jr(),Ei=Qr(),vi=ks(),Si=Ds(),Ni=zr(),ot=Tt(),Fi=pe(),_i=qs();Ws.exports=function(t){return new Promise(function(o,s){var n=t.data,a=t.headers,i=t.responseType,p;function l(){t.cancelToken&&t.cancelToken.unsubscribe(p),t.signal&&t.signal.removeEventListener("abort",p)}ce.isFormData(n)&&ce.isStandardBrowserEnv()&&delete a["Content-Type"];var c=new XMLHttpRequest;if(t.auth){var m=t.auth.username||"",y=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";a.Authorization="Basic "+btoa(m+":"+y)}var f=Ei(t.baseURL,t.url);c.open(t.method.toUpperCase(),Ci(f,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function g(){if(c){var w="getAllResponseHeaders"in c?vi(c.getAllResponseHeaders()):null,v=!i||i==="text"||i==="json"?c.responseText:c.response,F={data:v,status:c.status,statusText:c.statusText,headers:w,config:t,request:c};Ti(function(D){o(D),l()},function(D){s(D),l()},F),c=null}}if("onloadend"in c?c.onloadend=g:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(g)},c.onabort=function(){c&&(s(new ot("Request aborted",ot.ECONNABORTED,t,c)),c=null)},c.onerror=function(){s(new ot("Network Error",ot.ERR_NETWORK,t,c,c)),c=null},c.ontimeout=function(){var v=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",F=t.transitional||Ni;t.timeoutErrorMessage&&(v=t.timeoutErrorMessage),s(new ot(v,F.clarifyTimeoutError?ot.ETIMEDOUT:ot.ECONNABORTED,t,c)),c=null},ce.isStandardBrowserEnv()){var _=(t.withCredentials||Si(f))&&t.xsrfCookieName?wi.read(t.xsrfCookieName):void 0;_&&(a[t.xsrfHeaderName]=_)}"setRequestHeader"in c&&ce.forEach(a,function(v,F){typeof n>"u"&&F.toLowerCase()==="content-type"?delete a[F]:c.setRequestHeader(F,v)}),ce.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),i&&i!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(p=function(w){c&&(s(!w||w&&w.type?new Fi:w),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(p),t.signal&&(t.signal.aborted?p():t.signal.addEventListener("abort",p))),n||(n=null);var E=_i(f);if(E&&["http","https","file"].indexOf(E)===-1){s(new ot("Unsupported protocol "+E+":",ot.ERR_BAD_REQUEST,t));return}c.send(n)})}});var js=C((Xm,Gs)=>{Gs.exports=null});var qe=C((Zm,Qs)=>{"use strict";var B=L(),zs=xs(),Ys=Tt(),Ai=zr(),Pi=Yr(),Ii={"Content-Type":"application/x-www-form-urlencoded"};function $s(e,t){!B.isUndefined(e)&&B.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function Ri(){var e;return typeof XMLHttpRequest<"u"?e=Xr():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(e=Xr()),e}function Oi(e,t,r){if(B.isString(e))try{return(t||JSON.parse)(e),B.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(e)}var Ve={transitional:Ai,adapter:Ri(),transformRequest:[function(t,r){if(zs(r,"Accept"),zs(r,"Content-Type"),B.isFormData(t)||B.isArrayBuffer(t)||B.isBuffer(t)||B.isStream(t)||B.isFile(t)||B.isBlob(t))return t;if(B.isArrayBufferView(t))return t.buffer;if(B.isURLSearchParams(t))return $s(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var o=B.isObject(t),s=r&&r["Content-Type"],n;if((n=B.isFileList(t))||o&&s==="multipart/form-data"){var a=this.env&&this.env.FormData;return Pi(n?{"files[]":t}:t,a&&new a)}else if(o||s==="application/json")return $s(r,"application/json"),Oi(t);return t}],transformResponse:[function(t){var r=this.transitional||Ve.transitional,o=r&&r.silentJSONParsing,s=r&&r.forcedJSONParsing,n=!o&&this.responseType==="json";if(n||s&&B.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(n)throw a.name==="SyntaxError"?Ys.from(a,Ys.ERR_BAD_RESPONSE,this,null,this.response):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:js()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};B.forEach(["delete","get","head"],function(t){Ve.headers[t]={}});B.forEach(["post","put","patch"],function(t){Ve.headers[t]=B.merge(Ii)});Qs.exports=Ve});var Ks=C((td,Js)=>{"use strict";var Ui=L(),ki=qe();Js.exports=function(t,r,o){var s=this||ki;return Ui.forEach(o,function(a){t=a.call(s,t,r)}),t}});var Zr=C((ed,Xs)=>{"use strict";Xs.exports=function(t){return!!(t&&t.__CANCEL__)}});var en=C((rd,tn)=>{"use strict";var Zs=L(),to=Ks(),Li=Zr(),Bi=qe(),Di=pe();function eo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Di}tn.exports=function(t){eo(t),t.headers=t.headers||{},t.data=to.call(t,t.data,t.headers,t.transformRequest),t.headers=Zs.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Zs.forEach(["delete","get","head","post","put","patch","common"],function(s){delete t.headers[s]});var r=t.adapter||Bi.adapter;return r(t).then(function(s){return eo(t),s.data=to.call(t,s.data,s.headers,t.transformResponse),s},function(s){return Li(s)||(eo(t),s&&s.response&&(s.response.data=to.call(t,s.response.data,s.response.headers,t.transformResponse))),Promise.reject(s)})}});var ro=C((od,rn)=>{"use strict";var z=L();rn.exports=function(t,r){r=r||{};var o={};function s(c,m){return z.isPlainObject(c)&&z.isPlainObject(m)?z.merge(c,m):z.isPlainObject(m)?z.merge({},m):z.isArray(m)?m.slice():m}function n(c){if(z.isUndefined(r[c])){if(!z.isUndefined(t[c]))return s(void 0,t[c])}else return s(t[c],r[c])}function a(c){if(!z.isUndefined(r[c]))return s(void 0,r[c])}function i(c){if(z.isUndefined(r[c])){if(!z.isUndefined(t[c]))return s(void 0,t[c])}else return s(void 0,r[c])}function p(c){if(c in r)return s(t[c],r[c]);if(c in t)return s(void 0,t[c])}var l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:p};return z.forEach(Object.keys(t).concat(Object.keys(r)),function(m){var y=l[m]||n,f=y(m);z.isUndefined(f)&&y!==p||(o[m]=f)}),o}});var oo=C((sd,on)=>{on.exports={version:"0.27.2"}});var an=C((nd,nn)=>{"use strict";var Mi=oo().version,mt=Tt(),so={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){so[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});var sn={};so.transitional=function(t,r,o){function s(n,a){return"[Axios v"+Mi+"] Transitional option '"+n+"'"+a+(o?". "+o:"")}return function(n,a,i){if(t===!1)throw new mt(s(a," has been removed"+(r?" in "+r:"")),mt.ERR_DEPRECATED);return r&&!sn[a]&&(sn[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(n,a,i):!0}};function Hi(e,t,r){if(typeof e!="object")throw new mt("options must be an object",mt.ERR_BAD_OPTION_VALUE);for(var o=Object.keys(e),s=o.length;s-- >0;){var n=o[s],a=t[n];if(a){var i=e[n],p=i===void 0||a(i,n,e);if(p!==!0)throw new mt("option "+n+" must be "+p,mt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new mt("Unknown option "+n,mt.ERR_BAD_OPTION)}}nn.exports={assertOptions:Hi,validators:so}});var yn=C((ad,dn)=>{"use strict";var cn=L(),Vi=jr(),ln=gs(),pn=en(),We=ro(),qi=Qr(),mn=an(),Wt=mn.validators;function Gt(e){this.defaults=e,this.interceptors={request:new ln,response:new ln}}Gt.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=We(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var o=r.transitional;o!==void 0&&mn.assertOptions(o,{silentJSONParsing:Wt.transitional(Wt.boolean),forcedJSONParsing:Wt.transitional(Wt.boolean),clarifyTimeoutError:Wt.transitional(Wt.boolean)},!1);var s=[],n=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(r)===!1||(n=n&&f.synchronous,s.unshift(f.fulfilled,f.rejected))});var a=[];this.interceptors.response.forEach(function(f){a.push(f.fulfilled,f.rejected)});var i;if(!n){var p=[pn,void 0];for(Array.prototype.unshift.apply(p,s),p=p.concat(a),i=Promise.resolve(r);p.length;)i=i.then(p.shift(),p.shift());return i}for(var l=r;s.length;){var c=s.shift(),m=s.shift();try{l=c(l)}catch(y){m(y);break}}try{i=pn(l)}catch(y){return Promise.reject(y)}for(;a.length;)i=i.then(a.shift(),a.shift());return i};Gt.prototype.getUri=function(t){t=We(this.defaults,t);var r=qi(t.baseURL,t.url);return Vi(r,t.params,t.paramsSerializer)};cn.forEach(["delete","get","head","options"],function(t){Gt.prototype[t]=function(r,o){return this.request(We(o||{},{method:t,url:r,data:(o||{}).data}))}});cn.forEach(["post","put","patch"],function(t){function r(o){return function(n,a,i){return this.request(We(i||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:n,data:a}))}}Gt.prototype[t]=r(),Gt.prototype[t+"Form"]=r(!0)});dn.exports=Gt});var bn=C((ld,un)=>{"use strict";var Wi=pe();function jt(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(s){t=s});var r=this;this.promise.then(function(o){if(r._listeners){var s,n=r._listeners.length;for(s=0;s{"use strict";gn.exports=function(t){return function(o){return t.apply(null,o)}}});var hn=C((pd,xn)=>{"use strict";var Gi=L();xn.exports=function(t){return Gi.isObject(t)&&t.isAxiosError===!0}});var Cn=C((cd,no)=>{"use strict";var Tn=L(),ji=Dr(),Ge=yn(),zi=ro(),Yi=qe();function wn(e){var t=new Ge(e),r=ji(Ge.prototype.request,t);return Tn.extend(r,Ge.prototype,t),Tn.extend(r,t),r.create=function(s){return wn(zi(e,s))},r}var V=wn(Yi);V.Axios=Ge;V.CanceledError=pe();V.CancelToken=bn();V.isCancel=Zr();V.VERSION=oo().version;V.toFormData=Yr();V.AxiosError=Tt();V.Cancel=V.CanceledError;V.all=function(t){return Promise.all(t)};V.spread=fn();V.isAxiosError=hn();no.exports=V;no.exports.default=V});var vn=C((md,En)=>{En.exports=Cn()});var Sn,je,ao=x(()=>{Sn="@informaplc/gs-ps-eln-fe",je="0.4.72"});var Nn,zt,Fn=x(()=>{Nn=d(vn());ao();zt=()=>Nn.default.create({headers:{"x-eln-fe-version":je}})});var wt=x(()=>{Ue();Ht();ls();is();Fn()});var lo,ze,io=x(()=>{lo=class{constructor(){this.validateFormField=(t,r)=>{let o=r.validations,s=[];return o?.forEach(n=>{switch(n.type){case"IsRequiredCondition":return this.isEmpty(t)?s.push(this.errorMessage(n,r)):null;case"PreventUrlCondition":return this.isUrl(t)?s.push(this.errorMessage(n,r)):null;case"PreventXSSCondition":return this.isXss(t)?s.push(this.errorMessage(n,r)):null;case"TextLengthCondition":return this.isInvalidLength(t,n.minimum,n.maximum)?s.push(this.errorMessage(n,r,[{name:"minimum",value:n.minimum},{name:"maximum",value:n.maximum}])):null;case"IsEmailAddressCondition":return!this.isEmpty(t)&&this.isInvalidEmail(t)?s.push(this.errorMessage(n,r)):null;case"IsIfOtherFieldCondition":return this.isOther(t)?s.push(this.errorMessage(n,r)):null;default:return null}}),s};this.errorMessage=(t,r,o)=>({code:t.type,message:t.message,params:o||[],formElement:r});this.isEmpty=t=>t==="";this.isInvalidEmail=t=>{let r=/(^[A-Z0-9!#$%&'*+\-/=?^_`{|}~][A-Z0-9!#$%&'*+\-/=?^_`{|}~.]{0,62}@(([A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?)(\.[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?)+)$)/i;return!t.match(r)};this.isUrl=t=>{let r=/(telnet|ftp|https|http?):\/\/(?:[a-z0-9][a-z0-9-]{0,61}[a-z0-9]\.|[a-z0-9]\.)+[a-z]{2,63}/i;return!!t.match(r)};this.isXss=t=>{let r=/(<([^>]+)>)/i;return!!t.match(r)};this.isInvalidLength=(t,r,o)=>{let s=r?+r:0,n=o?+o:0;return s>n||s===0&&n===0?!0:t.lengthn};this.isOther=t=>{let r=/^Other.*/i;return!!t.match(r)}}},ze=lo});var H=C((Td,Ye)=>{(function(){"use strict";var e={}.hasOwnProperty,t="[native code]";function r(){for(var o=[],s=0;s{var $i=200,Bn="__lodash_hash_undefined__",Qi=800,Ji=16,Dn=9007199254740991,Mn="[object Arguments]",Ki="[object Array]",Xi="[object AsyncFunction]",Zi="[object Boolean]",tp="[object Date]",ep="[object Error]",Hn="[object Function]",rp="[object GeneratorFunction]",op="[object Map]",sp="[object Number]",np="[object Null]",Vn="[object Object]",ap="[object Proxy]",lp="[object RegExp]",ip="[object Set]",pp="[object String]",cp="[object Undefined]",mp="[object WeakMap]",dp="[object ArrayBuffer]",yp="[object DataView]",up="[object Float32Array]",bp="[object Float64Array]",gp="[object Int8Array]",fp="[object Int16Array]",xp="[object Int32Array]",hp="[object Uint8Array]",Tp="[object Uint8ClampedArray]",wp="[object Uint16Array]",Cp="[object Uint32Array]",Ep=/[\\^$.*+?()[\]{}|]/g,vp=/^\[object .+?Constructor\]$/,Sp=/^(?:0|[1-9]\d*)$/,P={};P[up]=P[bp]=P[gp]=P[fp]=P[xp]=P[hp]=P[Tp]=P[wp]=P[Cp]=!0;P[Mn]=P[Ki]=P[dp]=P[Zi]=P[yp]=P[tp]=P[ep]=P[Hn]=P[op]=P[sp]=P[Vn]=P[lp]=P[ip]=P[pp]=P[mp]=!1;var qn=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,Np=typeof self=="object"&&self&&self.Object===Object&&self,ue=qn||Np||Function("return this")(),Wn=typeof me=="object"&&me&&!me.nodeType&&me,de=Wn&&typeof Yt=="object"&&Yt&&!Yt.nodeType&&Yt,Gn=de&&de.exports===Wn,po=Gn&&qn.process,_n=function(){try{var e=de&&de.require&&de.require("util").types;return e||po&&po.binding&&po.binding("util")}catch{}}(),An=_n&&_n.isTypedArray;function Fp(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function _p(e,t){for(var r=-1,o=Array(e);++r-1}function Jp(e,t){var r=this.__data__,o=Xe(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}nt.prototype.clear=zp;nt.prototype.delete=Yp;nt.prototype.get=$p;nt.prototype.has=Qp;nt.prototype.set=Jp;function $t(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t1?r[s-1]:void 0,a=s>2?r[2]:void 0;for(n=e.length>3&&typeof n=="function"?(s--,n):void 0,a&&Sc(r[0],r[1],a)&&(n=s<3?void 0:n,s=1),t=Object(t);++o-1&&e%1==0&&e0){if(++t>=Qi)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Oc(e){if(e!=null){try{return Ke.call(e)}catch{}try{return e+""}catch{}}return""}function er(e,t){return e===t||e!==e&&t!==t}var uo=Ln(function(){return arguments}())?Ln:function(e){return be(e)&&st.call(e,"callee")&&!Lp.call(e,"callee")},bo=Array.isArray;function xo(e){return e!=null&&Xn(e.length)&&!ho(e)}function Uc(e){return be(e)&&xo(e)}var Kn=Dp||Mc;function ho(e){if(!vt(e))return!1;var t=Ze(e);return t==Hn||t==rp||t==Xi||t==ap}function Xn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Dn}function vt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function be(e){return e!=null&&typeof e=="object"}function kc(e){if(!be(e)||Ze(e)!=Vn)return!1;var t=zn(e);if(t===null)return!0;var r=st.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Ke.call(r)==Up}var Zn=An?Ap(An):mc;function Lc(e){return Tc(e,ta(e))}function ta(e){return xo(e)?lc(e,!0):dc(e)}var Bc=wc(function(e,t,r){$n(e,t,r)});function Dc(e){return function(){return e}}function ea(e){return e}function Mc(){return!1}Yt.exports=Bc});var oa,sa,ge,T,O=x(()=>{oa=d(S()),sa=d(ra());Ue();ge=(e,t)=>(0,sa.default)({base:{h1:"",p:"",span:"",a:"",button:"",form:"",label:"",input:"",checkbox:"",radio:"",select:"",option:""},formLayout:{container:t==="newsletter"?Re.CONTAINER:xt.CONTAINER,formContainer:I.CONTAINER,formContainerRow:"row",form:I.FORM,submitContainer:Re.SUBMIT_CONTAINER,submit:"",title:t==="entitlement"?xt.TITLE:"",description:t==="entitlement"?xt.DESCRIPTION:"",checkbox:I.CHECKBOX_INPUT_FRAGMENT,select:I.SELECT_INPUT_FRAGMENT,selectLabelSpan:"",selectState:I.SELECT_STATE_PROVINCE_HIDDEN,selectMultiple:I.SELECT_MULTIPLE,label:I.LABEL_FRAGMENT,input:I.SELECT_INPUT_FRAGMENT,textInput:I.TEXT_INPUT_FRAGMENT,textInputLabelSpan:"",validationErroredField:I.VALIDATION_ERRORED_FIELD,validationHeader:I.VALIDATION_HEADER,a:I.A,p:I.P,selectElement:I.SELECT_ELEMENT,selectOptionElement:I.SELECT_OPTION_ELEMENT,radioOptionElement:I.RADIO_OPTION_ELEMENT,inputElement:I.INPUT_ELEMENT,checkboxContainer:I.CHECKBOX_CONTAINER,hubspotHelperTextWrapper:xt.HUBSPOT_HELPER_TEXT_WRAPPER,hubspotHelperTextLinks:xt.HUBSPOT_HELPER_TEXT_LINKS},consentLayout:{container:Mt.CONTAINER,thirdPartyContainer:Mt.THIRD_PARTY_CONTAINER,a:Mt.A,p:Mt.P,input:"",label:""},errorLayout:{container:Dt.CONTAINER_DIV,title:Dt.ERROR_TITLE,plainText:Dt.PLAIN_TEXT,button:Dt.BUTTON},newsletterLayout:{container:et.CONTAINER,item:et.ITEM,inputContainer:et.INPUT_CONTAINER,input:"",consentContainer:et.CONTENT_CONTAINER,itemTitle:et.TITLE,itemFrequency:et.FREQUENCY,itemFrequencyA:et.FREQUENCY_A,itemFrequencyP:et.FREQUENCY_P,validationError:I.VALIDATION_ERROR_NEWSLETTER,success:{container:ft.CONTAINER_DIV,thankYouTitle:ft.THANKYOU_TITLE,plainText:ft.PLAIN_TEXT,emphasisText:ft.EMPHASIS_TEXT,button:ft.BUTTON}},spinnerLayout:{container:Oe.CONTAINER,loading:Oe.LOADING}},e),T=(0,oa.createContext)(ge(void 0,"newsletter"))});var na,To,rr,Hc,rt,Jt=x(()=>{na=d(S()),To=d(H());O();rr=d(b()),Hc=({element:e,align:t="center"})=>{let{base:r,formLayout:o}=(0,na.useContext)(T),s=e.elementType==="select"?o.selectLabelSpan:o.textInputLabelSpan;return(0,rr.jsxs)("label",{style:{textAlign:t},className:(0,To.default)(r.label,o.label),htmlFor:e.fieldName,children:[e.label,e.isRequired&&(0,rr.jsx)("span",{className:(0,To.default)(r.span,s),children:"*"})]})},rt=Hc});var aa,la,St,Vc,ia,pa=x(()=>{aa=d(S()),la=d(H());O();Jt();St=d(b()),Vc=({element:e,handleChange:t})=>{let{base:r,formLayout:o}=(0,aa.useContext)(T);return(0,St.jsxs)(St.Fragment,{children:[(0,St.jsx)(rt,{element:e}),(0,St.jsx)("input",{className:(0,la.default)(r.input,o.input),name:e.fieldName,type:e.inputType,required:e.isRequired,onInput:t,value:e.value},e.fieldName)]})},ia=Vc});var or,Kt,J,qc,ca,ma=x(()=>{or=d(S());O();Jt();Kt=d(H()),J=d(b()),qc=({element:e,handleChange:t})=>{let{base:r,formLayout:o}=(0,or.useContext)(T),s=e.inputType==="multiple",n=(a,i)=>{if(i===0){if(!a.value)return(0,J.jsx)("option",{className:(0,Kt.default)(r.option,o.selectOptionElement),value:"",children:a.displayName},i);if(a.value!=="")return(0,J.jsxs)(or.default.Fragment,{children:[!s&&(0,J.jsx)("option",{className:(0,Kt.default)(r.option,o.selectOptionElement),value:"",children:"Please select"}),(0,J.jsx)("option",{className:(0,Kt.default)(r.option,o.selectOptionElement),value:a.value,children:a.displayName})]},i)}return(0,J.jsx)("option",{className:(0,Kt.default)(r.option,o.selectOptionElement),value:a.value,children:a.displayName},i)};return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(rt,{element:e}),(0,J.jsx)("select",{className:(0,Kt.default)(r.select,o.selectElement,s&&o.selectMultiple),name:e.fieldName,required:e.isRequired,onInput:t,multiple:s,children:e.optionList?.map(n)})]})},ca=qc});var sr,da,q,Wc,ya,Gc,ua,ba=x(()=>{sr=d(S());O();Jt();da=d(H()),q=d(b()),Wc=({element:e,handleChange:t})=>e.inputType==="checkbox"&&e?.optionList?.length>0?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(rt,{element:e}),(0,q.jsx)(Gc,{element:e,handleChange:t})]}):(0,q.jsx)(ya,{name:e.fieldName,label:e.label,value:e.value,required:e.isRequired,onChange:t}),ya=({name:e,label:t,value:r,required:o,onChange:s})=>{let{base:n,formLayout:a}=(0,sr.useContext)(T);return(0,q.jsxs)("div",{className:a.checkboxContainer,children:[(0,q.jsx)("input",{className:(0,da.default)(n.input,n.checkbox),type:"checkbox",onInput:s,name:e,value:r,required:o}),(0,q.jsx)("label",{className:n.label,htmlFor:e,dangerouslySetInnerHTML:{__html:t}},e)]})},Gc=({element:e,handleChange:t})=>{let{optionList:r}=e,[o,s]=sr.default.useState([]),n=a=>{let{checked:i,value:p}=a.target,l=[];i?l=[...o,p]:l=o.filter(c=>c!==p),s(l),t(a,l)};return(0,q.jsx)(q.Fragment,{children:r?.map(a=>{let i=e.fieldName+"-option-"+a.displayName;return(0,q.jsx)(ya,{name:i,label:a.displayName,value:a.value,required:!1,onChange:n})})})},ua=Wc});var ga,fa,dt,xa,ha=x(()=>{ga=d(S());O();fa=d(H());Jt();dt=d(b()),xa=({element:e,handleChange:t})=>{let{formLayout:r,base:o}=(0,ga.useContext)(T);return(0,dt.jsxs)("div",{style:{marginTop:5},children:[(0,dt.jsx)(rt,{element:e,align:"left"}),(0,dt.jsx)("div",{style:{marginTop:15}}),e?.optionList?.map((s,n)=>(0,dt.jsxs)("div",{className:r.radioOptionElement,children:[(0,dt.jsx)("input",{id:s.displayName,name:e.fieldName,type:"radio",className:(0,fa.default)(o.option,r.selectOptionElement),value:s.value,onChange:t},n),(0,dt.jsx)("label",{htmlFor:s.displayName,children:s.displayName})]}))]})}});var Ca={};pt(Ca,{Input:()=>wa,default:()=>wo});var Ta,nr,X,wa,jc,wo,Co=x(()=>{Ta=d(S()),nr=d(H());pa();ma();O();ba();Jt();ha();X=d(b()),wa=({element:e,handleChange:t})=>e.elementType==="button"||e.isHidden?null:e.elementType==="checkbox"?(0,X.jsx)(ua,{element:e,handleChange:t}):e.elementType==="radio"?(0,X.jsx)(xa,{element:e,handleChange:t}):e.elementType!=="text"&&e.elementType!=="select"?(0,X.jsx)(ia,{element:e,handleChange:t}):e.elementType==="select"?(0,X.jsx)(ca,{element:e,handleChange:t}):(0,X.jsx)(rt,{element:e}),jc=({element:e,handleChange:t,showErrorMessages:r,showAllViolations:o})=>{let{base:s,formLayout:n}=(0,Ta.useContext)(T);if(e.elementType==="button")return null;let a=l=>(0,X.jsx)("p",{className:(0,nr.default)(s.p,n.p),children:l.message},l.message),i=r&&(o||e.touched)&&Boolean(e?.errors?.length),p=(0,nr.default)(n.formContainerRow||"row",{[n.validationErroredField]:i});return(0,X.jsx)("div",{className:p,children:(0,X.jsxs)("div",{className:(0,nr.default)(e.classNames),children:[(0,X.jsx)(wa,{element:e,handleChange:t}),i&&e?.errors?.map(a)]})})},wo=jc});var fe,Sa,zc,Na,Yc,Ea,Fa,$c,_a,Qc,Eo,Jc,va,ar,Kc,Xc,Aa,vo=x(()=>{fe=e=>typeof e!="object"?[e]:e,Sa=(e,t)=>Eo(e,t),zc=(e,t)=>!Sa(e,t),Na=(e,t)=>e.indexOf(t)>-1,Yc=(e,t)=>!Na(e,t),Ea=(e,t)=>et!Fa(e,t,r),_a=(e,t)=>fe(e)?.some(r=>fe(t).indexOf(r)>=0),Qc=(e,t)=>!_a(e,t),Eo=(e,t)=>JSON.stringify([...fe(e)].sort())===JSON.stringify([...fe(t)].sort()),Jc=(e,t)=>!Eo(e,t),va={EQ:Sa,NEQ:zc,CONTAINS:Na,DOESNT_CONTAIN:Yc,STR_STARTS_WITH:(e,t)=>e.substring(0,t.length)===t,STR_ENDS_WITH:(e,t)=>e.slice(-t.length)===t,LT:Ea,LTE:(e,t)=>e<=t,GT:(e,t)=>e>t,GTE:(e,t)=>e>=t,BETWEEN:Fa,NOT_BETWEEN:$c,WITHIN_TIME_REVERSE:Ea,WITHIN_TIME:(e,t)=>tfe(e)?.every(r=>t.indexOf(r)>=0),SET_ANY:_a,SET_NOT_ANY:Qc,SET_EQ:Eo,SET_NEQ:Jc,IS_NOT_EMPTY:e=>e.length!==void 0?!!e.length:!!e},ar=(e,t)=>{let r=!0;return t?.forEach(o=>{let s=typeof va[o.operator]=="function"?va[o.operator]:()=>!1;r=r&&(s(e,o.strValue)||s(e,o.strValues)||s(e,o.numberValue)||s(e,o.numberValue))}),r},Kc=["SQ_PPC-A01","SQ_PPC-A02","SQ_PPC-A03","SQ_PPC-A04","SQ_PPC-A05","SQ_PPC-A06","SQ_PPC-A07","SQ_PPC-A08","SQ_PPC-A09","SQ_PPC-A10","SQ_PPC-A11","SQ_PPC-A12","SQ_PPC-A13","SQ_PPC-A14","SQ_PPC-A15","SQ_PPC-A16"],Xc=["PC_LIC-02","PC_LIC-08","PC_LIC-10","PC_LIC-11","PC_LIC-12","PC_LIC-13","PC_LIC-15","PC_LIC-16","PC_LIC-17","PC_LIC-18","PC_LIC-19","PC_LIC-21","PC_LIC-22","PC_LIC-25","PC_LIC-27","PC_LIC-28","PC_LIC-30","PC_LIC-31","PC_LIC-32","PC_LIC-33","PC_LIC-34"],Aa=(e,t)=>{if(!e||!t)return;let r=t.optionList;e.fieldName==="industry"&&(t.fieldName==="PPC_PropertyCategory"||t.fieldName==="PC_ProductCategory")&&(e.value==="NOB_LCNSOR"||e.value==="NOB_CSLCSNG"?(r=r.filter(o=>Kc.includes(o.value)),t.optionList=r):(r=r.filter(o=>Xc.includes(o.value)),t.optionList=r))}});var Pa,Z,lr,ir,So=x(()=>{Pa=d(S());wt();io();Co();Ht();O();vo();Z=d(b()),lr=class extends Pa.Component{constructor(r,o){super(r);this.handleChange=(r,o)=>{let{currentTarget:s}=r,n="",a=this.state.elements;var i=s.name,p=a.get(i);if(o&&(i=s.name.split("-option-")[0],p=a.get(i)),!p)throw new Error(`FormBuilder: Element with name ${s.name} not found`);p.elementType!=="radio"&&r.preventDefault(),p.elementType==="select"&&p.inputType==="multiple"?n=Array.from(s?.selectedOptions,m=>m.value).join(";"):n=s.value,p.elementType==="checkbox"&&(n=""+s?.checked),o&&o.length>0&&(n=o.join(";")),p.elementType==="radio"&&(n=s.value),p.errors=this.validationService.validateFormField(n,p),p.value=n,p.touched=!0,a.set(i,p);let l=p?.dependentElements||[];for(let{element:m}of l){let y=this.createDefaultElementFromDependField(m);a.set(m.fieldName,y)}let c=l.filter(({filters:m})=>m.some(({strValues:y})=>y.includes(n)));for(let{formFieldAction:m,element:y,filters:f}of c){let g=this.createDefaultElementFromDependField(y);m==="DISPLAY"&&(g.classNames=this.findClassNames(y,this.context),g.isHidden=!ar(n,f),g.isRequired=this.isElementRequired(y),g.validations=y.validations,Aa(p,g)),a.set(y.fieldName,g)}this.setState(m=>({...m,elements:a}),()=>{this.triggerFullFormValidation()})};this.validationService=new ze,this.state={elements:this.prepareElementsForState(this.props.elements,o),siteId:this.props.siteId??""}}componentDidMount(){this.triggerFullFormValidation()}prepareElementsForState(r,o){return r.reduce((s,n)=>{let a=s.set(n.fieldName,{...n,isRequired:this.isElementRequired(n),classNames:this.findClassNames(n,o),isHidden:this.isElementHidden(n)});if(n.dependentElements?.length)for(let{element:i}of n.dependentElements)s.set(i.fieldName,{...i,isRequired:!1,classNames:this.findClassNames(n,o),isHidden:!0,validations:[]});return a},new Map)}isElementRequired(r){return r.validations?.some(({type:o})=>o==="IsRequiredCondition")}isElementHidden(r){return(r.fieldName===A.STATE_PROVINCE_SELECT_INPUT_HTML_NAME||r.fieldName==="state_or_province")&&this.props.siteId!=="bioprocessintl"||r.fieldName===A.TYPE_CONCEPT_SELECT_INPUT_HTML_NAME||r.fieldName==="type_concept"||r.fieldName==="responsibilitiesOther"||r.fieldName==="complianceOther"||r.fieldName==="technologyRequirementsOther"||r.fieldName==="State"}findClassNames(r,{formLayout:o,base:s}){switch(r.elementType){case"checkbox":return[o.checkbox];case"checkboxes":return[o.checkbox];case"select":return[o.select];case"radio":return[s.radio];default:return[o.textInput]}}createDefaultElementFromDependField(r){return{...r,classNames:this.findClassNames(r,this.context),isHidden:!0,isRequired:!1,value:"",validations:[]}}triggerFullFormValidation(){let{elements:r}=this.state;for(let[s,n]of r.entries()){let a=this.validationService.validateFormField(n.value||"",n);a.length>0&&r.set(s,{...n,errors:a})}let o=Array.from(r.values()).map(s=>({htmlName:s.fieldName,value:s.value||"",touched:!!s.touched,violations:s.errors?.map(n=>`${s.label}: ${n.message}`)||[]}));this.setState(s=>({...s,elements:r}),()=>{this.props.onChange(o,Array.from(r.values()))})}render(){let{elements:r}=this.state,{formLayout:o}=this.context;return(0,Z.jsxs)("div",{className:o.formContainer,children:[Array.from(r).map(([s,n],a)=>n.inputType!=="hidden"&&(0,Z.jsx)(wo,{showAllViolations:this.props.showAllViolations,element:n,handleChange:this.handleChange,showErrorMessages:Boolean(this.props.showErrorMessages)},s||String(a))),Array.from(r).map(([,s])=>s.fieldName==="grab_text_to_display"&&(0,Z.jsxs)("div",{className:o.hubspotHelperTextWrapper,children:[(0,Z.jsxs)("p",{children:["I can withdraw my consent and unsubscribe at any time by e-mailing"," ",(0,Z.jsxs)("a",{className:o.hubspotHelperTextLinks,href:"https://mail.google.com/mail/?view=cm&fs=1&to=reply@thermofisher.com",children:["reply@thermofisher.com."," "]}),"I acknowledge"," ",(0,Z.jsxs)("a",{className:o.hubspotHelperTextLinks,href:"https://www.thermofisher.com/hu/en/home/global/privacy-policy/legal-entities.html",children:["Thermo Fisher Scientific"," "]})," ","(including its affiliates) will process my Personal Information according to its"," ",(0,Z.jsx)("a",{className:o.hubspotHelperTextLinks,href:"https://www.thermofisher.com/hu/en/home/global/privacy-policy.html#tfs_corp",children:"Privacy policy"})," ",", which includes information about my rights."]}),(0,Z.jsxs)("p",{children:["By submitting this form, you agree to BioProcess International's"," ",(0,Z.jsx)("a",{className:o.hubspotHelperTextLinks,href:"https://bioprocessintl.com/privacy-policy/?__hstc=251652889.2210c1268a7583985068da06b0fab63e.1702226753936.1708619750110.1708680249237.10&__hssc=251652889.1.1708680249237&__hsfp=3475455948",children:"Privacy Policy"})]})]}))]})}};lr.contextType=T;ir=lr});var Ia,xe,Nt,pr,Ra,Oa=x(()=>{Ia=d(S()),xe=d(H());O();Nt=d(b()),pr=class extends Ia.Component{render(){let{base:r,newsletterLayout:{success:o}}=this.context;return(0,Nt.jsxs)("div",{className:o.container,children:[(0,Nt.jsx)("h1",{className:(0,xe.default)(r.h1,o.thankYouTitle),children:"Thank you for subscribing."}),(0,Nt.jsxs)("p",{className:(0,xe.default)(r.p,o.plainText),children:["Confirmation will be sent to your email",this.props.email&&(0,Nt.jsxs)("span",{className:(0,xe.default)(r.span,o.emphasisText),children:["\xA0",this.props.email]}),"."]}),(0,Nt.jsx)("button",{onClick:()=>this.props.returnFunction(),className:(0,xe.default)(r.button,o.button),children:"return to site"})]})}};pr.contextType=T;Ra=pr});var Ua,he,W,cr,ka,La=x(()=>{Ua=d(S());O();he=d(H()),W=d(b()),cr=class extends Ua.Component{render(){let{newsletters:r=[],showInvalidErrorMessage:o=!1}=this.props,{base:s,newsletterLayout:n}=this.context;return(0,W.jsxs)("div",{className:n.container,children:[r.sort((a,i)=>a.order-i.order).map((a,i)=>(0,W.jsxs)("div",{className:n.item,children:[(0,W.jsx)("div",{className:n.inputContainer,children:(0,W.jsx)("input",{className:(0,he.default)(s.input,s.checkbox,n.input),type:"checkbox",value:a.newsletter_code,name:"newsletterList",onInput:this.props.changeHandler})}),(0,W.jsxs)("div",{className:n.consentContainer,children:[(0,W.jsxs)("p",{className:s.p,children:[(0,W.jsx)("span",{className:(0,he.default)(s.span,n.itemTitle),children:a.title}),a.newsletter_description]}),(0,W.jsxs)("div",{className:n.itemFrequency,children:[(0,W.jsx)("p",{className:(0,he.default)(s.p,n.itemFrequencyP),children:a.frequency_description}),(0,W.jsx)("a",{className:(0,he.default)(s.a,n.itemFrequencyA),href:a.sample_url.href,target:"_blank",rel:"noreferrer",children:a.sample_url.title})]})]})]},i)),o&&(0,W.jsx)("div",{className:n.validationError,children:(0,W.jsx)("p",{className:s.p,children:"Please ensure at least one newsletter is selected and no errors are displayed"})})]})}};cr.contextType=T;ka=cr});var Da={};pt(Da,{CountryCategory:()=>Ft,default:()=>tt});var Ba,Xt,Ft,No,tt,_t=x(()=>{Ba=d(H()),Xt=d(b()),Ft=(s=>(s.categoryA="A",s.categoryB="B",s.categoryC="C",s.categoryD="D",s))(Ft||{}),No=class{constructor(){this.countryCodesCategoryA=["AT","BE","CY","CZ","DK","DE","GR","IT","LT","MT","NL","NO","PL","PT","RO","SK","CH","ES","CA","KR","BG"];this.countryCodesCategoryB=["HR","FR","IE","SI","JP"];this.countryCodesCategoryC=["EE","FI","HU","IL","LV","LU","UA","SE","GB","BR","MX","ZA"];this.getCategoryByCountryCode=t=>{if(t){if(this.countryCodesCategoryA.includes(t))return"A";if(this.countryCodesCategoryB.includes(t))return"B";if(this.countryCodesCategoryC.includes(t))return"C"}return"D"};this.getOptOutMessage=({base:t,consentLayout:r},o)=>(0,Xt.jsxs)(Xt.Fragment,{children:["You can opt out of receiving these messages ",o==="D"?"":"from Informa"," at any time by clicking unsubscribe or contacting us. You can find more information in our\xA0",(0,Xt.jsx)("a",{className:(0,Ba.default)(t.a,r.a),href:"https://www.informa.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:"Privacy Policy"}),"."]});this.getFirstConsentValue=(t,r)=>{if(!t)return!1;switch(this.getCategoryByCountryCode(t)){case"B":case"C":return r!=="CR_OPTOUT";case"D":return!0;default:return r==="CR_OPTIN"}};this.getThirdConsentValue=(t,r)=>{if(!t)return!1;switch(this.getCategoryByCountryCode(t)){case"C":return r!=="CR_OPTOUT";case"D":return!0;default:return r==="CR_OPTIN"}}}getValueByElement(t){switch(t.type){case"checkbox":return t.checked?t.value:"";case"radio":return t.value}return""}},tt=No});var Ma,G,U,mr,dr,Fo=x(()=>{Ma=d(S());_t();O();G=d(H()),U=d(b()),mr=class extends Ma.Component{constructor(r){super(r);this.consentHelper=new tt}render(){if(this.props&&this.props.countryCode){let{base:r,consentLayout:o}=this.context,s=this.consentHelper.getCategoryByCountryCode(this.props.countryCode),n=this.consentHelper.getOptOutMessage(this.context,s);return s==="A"?(0,U.jsxs)("div",{className:o.container,children:[(0,U.jsx)("p",{className:(0,G.default)(r.p,o.p),children:"We\u2019d like to keep in touch to send your news and promotions from Informa about products and services relevant to you. These may include information from our selected partners however, we will not share your details unless you agree to us doing so directly."}),(0,U.jsxs)("label",{className:(0,G.default)(r.label,o.label),children:[(0,U.jsx)("input",{className:(0,G.default)(r.input,r.radio),type:"radio",value:"CR_OPTIN",name:"consent",required:!0,onInput:this.props.changeHandler}),"Yes"]}),(0,U.jsxs)("label",{className:(0,G.default)(r.label,o.label),children:[(0,U.jsx)("input",{className:(0,G.default)(r.input,r.radio),type:"radio",value:"CR_OPTOUT",name:"consent",onInput:this.props.changeHandler}),"No"]}),(0,U.jsx)("p",{className:(0,G.default)(r.p,o.p),children:n})]}):s==="B"||s==="C"?(0,U.jsxs)("div",{className:o.container,children:[(0,U.jsxs)("label",{className:(0,G.default)(r.label,o.label),children:[(0,U.jsx)("input",{className:(0,G.default)(r.input,r.checkbox,o.input),type:"checkbox",value:"CR_OPTOUT",name:"consent",onInput:this.props.changeHandler}),(0,U.jsxs)("p",{className:(0,G.default)(r.p,o.p),children:["Tick here if you ",(0,U.jsx)("b",{children:"do not want"})," news and promotions from Informa about products and services relevant to you. These may include information from our selected partners however, we will not share your details unless you agree to us doing so directly."]})]}),n]}):(0,U.jsxs)("div",{className:o.container,children:[(0,U.jsx)("p",{className:(0,G.default)(r.p,o.p),children:"By continuing you agree that Informa may contact you with updates about products and services relevant to you. These may include information from our selected partners."}),(0,U.jsx)("p",{className:(0,G.default)(r.p,o.p),children:n}),(0,U.jsxs)("label",{className:(0,G.default)(r.label,o.label),children:["I agree to the"," ",(0,U.jsx)("a",{className:(0,G.default)(r.a,o.a),href:"https://www.informa.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:"Privacy Policy"})]})]})}else return null}};mr.contextType=T;dr=mr});var Ha,_o,yr,Zt,Va=x(()=>{Ha=d(S());O();_o=d(b()),yr=class extends Ha.Component{render(){let{spinnerLayout:r}=this.context;return(0,_o.jsx)("div",{className:r.container,children:(0,_o.jsx)("div",{className:r.loading})})}};yr.contextType=T;Zt=yr});var qa={};pt(qa,{Spinner:()=>Zt});var ur=x(()=>{Va()});var Wa,br,te,gr,fr,Ao=x(()=>{Wa=d(S()),br=d(H());O();te=d(b()),gr=class extends Wa.Component{render(){let{base:r,errorLayout:o}=this.context;return(0,te.jsxs)("div",{className:o.container,children:[(0,te.jsx)("h1",{className:(0,br.default)(r.h1,o.title),children:this.props.title}),(0,te.jsx)("p",{className:(0,br.default)(r.p,o.plainText),children:this.props.message}),(0,te.jsx)("button",{className:(0,br.default)(r.button,o.button),onClick:()=>this.props.returnFunction(),children:"return to site"})]})}};gr.contextType=T;fr=gr});var Zc,yt,Te=x(()=>{Zc=(e,...t)=>{console.log("component message: ",e,t)},yt=Zc});var Ga,ee,tm,xr,Po=x(()=>{Ga=d(S());O();ee=d(b()),tm=({validationErrors:e=[],otherErrors:t=[]})=>{let{base:r,formLayout:o}=(0,Ga.useContext)(T),s=[...e,...t];return s.length?(0,ee.jsx)("div",{className:o.validationHeader,"data-testid":"validation-error-box",children:s.map((n,a)=>(0,ee.jsx)("p",{className:r.p,children:n},a))}):(0,ee.jsx)(ee.Fragment,{})},xr=tm});var ja,Io,Y,hr,za,Ya=x(()=>{ja=d(S());wt();So();Oa();La();Fo();ur();Ao();_t();Te();Po();O();Io=d(H()),Y=d(b()),hr=class extends ja.Component{constructor(r){super(r);this.checkConsent=()=>{if(!this.state.values.countryCode||this.props.hideFirstPartyConsent||this.props.hideThirdPartyConsent)return!0;switch(this.consentHelper.getCategoryByCountryCode(this.state.values.countryCode)){case"A":return this.state.firstPartyConsentTouched;case"D":return!0;default:return!0}};this.handleSubmit=async r=>{if(r.preventDefault(),this.setState(m=>({...m,showAllViolations:!0})),!this.checkConsent())return;let s=this.consentHelper.getFirstConsentValue(this.state.values.countryCode,this.state.firstPartyConsentOption),{newsletterList:n,formFields:a}=this.state.values,i=n.length>0,p=a.some(({violations:m})=>m.length);if(!i||p)return;let l={isSuccessful:!1,message:"Submitting data...",status:A.DEFAULT_FORM_SUBMISSION_STATES.PENDING};this.props.subscriptionStateHandler(l);let c=this.props.iirisUserProfile?.business_email||this.state.values.emailAddress;try{(await this.props.platformApiService.putNewslettersSubscription({emailAddress:c,formFields:a,newsletterList:n,firstPartyConsent:s,formId:this.props.formId},this.props.iirisUserProfile,this.state.elements)).status===200&&(l.isSuccessful=!0,l.message="SUCCESS",l.status=A.DEFAULT_FORM_SUBMISSION_STATES.SUCCESS,this.props.subscriptionStateHandler(l))}catch(m){yt(m),l.isSuccessful=!1,l.message="A problem has occurred with processing your request, please wait a few minutes and try again.",l.status=A.DEFAULT_FORM_SUBMISSION_STATES.ERROR,this.props.subscriptionStateHandler(l)}};this.validateNewsLetterList=r=>{let o=r?.length>0;return this.setState(s=>({...s,inValidNewsletter:!o})),o};this.handleChange=r=>{let o=r.currentTarget;o.name===k.ElementNames.CONSENT?this.handleConsentChange(o):o.name===k.ElementNames.NEWSLETTER_LIST&&this.handleNewsletterListChange(o)};this.handleNewsletterListChange=r=>{let{newsletterList:o}=this.state.values,s=r.checked?[...o,r.value]:o.filter(n=>n!==r.value);this.setState(n=>({...n,values:{...n.values,newsletterList:s}})),this.validateNewsLetterList(s)};this.handleConsentChange=r=>{let o=this.consentHelper.getValueByElement(r);this.setState(s=>({...s,firstPartyConsentOption:o,firstPartyConsentTouched:!0,values:{...s.values}}))};this.getSubmitLabelFromElements=r=>{let o=r.find(s=>s.elementType==="button");return o?o.label:"Submit"};this.getErrors=()=>{let{values:r,showAllViolations:o}=this.state,s=r.newsletterList.length===0&&o,n=r.formFields.filter(p=>p.touched||o).flatMap(({violations:p})=>p),a=[];return s&&a.push("Please ensure at least one newsletter is selected and no errors are displayed"),!this.checkConsent()&&o&&a.push("Please choose consent agreement"),{errors:n,otherErrors:a}};this.state={elements:this.props.elements,firstPartyConsentOption:"",firstPartyConsentTouched:!1,values:{formId:null,countryCode:"",emailAddress:this.props.iirisUserProfile?.business_email||"",firstPartyConsent:!1,newsletterList:[],formFields:[]},showAllViolations:!1},this.consentHelper=new tt,this.handleSubmit=this.handleSubmit.bind(this),this.onFormChange=this.onFormChange.bind(this)}onFormChange(r,o){let s=r.find(p=>p.htmlName===k.ElementNames.COUNTRY||p.htmlName===k.ElementNames.MARKETO_COUNTRY)?.value||"",n=this.state.values.formFields?.find(p=>p.htmlName===k.ElementNames.STATE)?.value||"",a=r.find(p=>p.htmlName===k.ElementNames.STATE)?.value||"";n!==a&&this.props.onCountryStateChanged(a);let i=r.find(p=>p.htmlName===k.ElementNames.EMAIL_ADDRESS||p.htmlName===k.ElementNames.BUSINESS_EMAIL||p.htmlName===k.ElementNames.MARKETO_EMAIL)?.value||"";this.setState(p=>({...p,elements:o,values:{...p.values,emailAddress:i,countryCode:s,formFields:r}}))}render(){let{newsletters:r,elements:o,subscriptionState:s,returnFunction:n,inContextValidationMessage:a}=this.props,{values:i,showAllViolations:p}=this.state,l=i.newsletterList.length===0&&p,{errors:c,otherErrors:m}=this.getErrors(),y=o?this.getSubmitLabelFromElements(o):"Subscribe",f=s&&s.status,g="A problem has occurred";if(f===A.DEFAULT_FORM_SUBMISSION_STATES.ERROR)return(0,Y.jsx)(fr,{title:g,message:s.message,returnFunction:this.props.returnFunction});if(f===A.DEFAULT_FORM_SUBMISSION_STATES.PENDING)return(0,Y.jsx)(Zt,{});if(f===A.DEFAULT_FORM_SUBMISSION_STATES.SUCCESS)return(0,Y.jsx)(Ra,{email:this.props.iirisUserProfile?.business_email||this.state.values.emailAddress,returnFunction:n});if(r){let{base:_,formLayout:E}=this.context;return(0,Y.jsx)("div",{className:E.container,children:(0,Y.jsxs)("form",{noValidate:!0,className:(0,Io.default)(_.form,E.form),onSubmit:this.handleSubmit,children:[!a&&(0,Y.jsx)(xr,{validationErrors:c,otherErrors:m}),(0,Y.jsx)(ka,{showInvalidErrorMessage:a&&l,newsletters:r,changeHandler:this.handleChange}),o&&(0,Y.jsx)(ir,{elements:o,onChange:this.onFormChange,showAllViolations:this.state.showAllViolations,showErrorMessages:a,siteId:this.props.platformApiService.siteId}),!this.props.hideFirstPartyConsent&&(0,Y.jsx)(dr,{sponsorName:this.props.sponsorName,countryCode:this.state.values.countryCode,changeHandler:this.handleChange}),(0,Y.jsx)("div",{className:E.submitContainer,children:(0,Y.jsx)("button",{className:(0,Io.default)(_.button,E.submit),type:"submit",children:y})})]})})}else return null}};hr.contextType=T;za=hr});var $a,Tr,Ro,Qa,wr,re,Cr,oe=x(()=>{Ht();$a=(e,t)=>{let r="";for(let o in t){let s=t[o];r=s?`${r}&${o}=${s}`:r}return e=r?`${e}?${r}`:e,e},Tr=e=>Ro(e)&&!e.attributes.elements.some(t=>t.fieldName==="is_new_form"),Ro=e=>e.formType==="HUBSPOT",Qa=e=>e.attributes.elements.some(t=>t.fieldName==="third_party_consent"),wr=(e,t)=>{let r=["sponsor_name","sponsorname"];return e.map(o=>(r.includes(o?.fieldName?.toLowerCase())&&(o.value=t),o))},re=e=>e?Object.keys(e).length===0:!0,Cr=(e,t)=>e?.find(r=>r?.fieldName===t)?.value||""});var Oo,se,Er=x(()=>{wt();oe();Oo=class{constructor(t,r,o,s,n,a,i){this.getPlatformApiServiceHeaders=()=>{let t={Authorization:this.authorization||"Bearer anonymous","Content-Type":"application/json","x-site-id":this.siteId.toLowerCase()};return this.iirisUserProfile?.id&&(t["x-iiris-id"]=this.iirisUserProfile.id),this.subBrandId&&(t["x-sub-brand-id"]=this.subBrandId),t};this.getFormFieldValueByName=(t,r)=>{let o=r?.find(s=>s.htmlName===t);return o?o.value:""};this.mapDataAttributes=t=>t.formFields?{emailAddress:this.getFormFieldValueByName("emailAddress",t.formFields),firstName:this.getFormFieldValueByName("firstName",t.formFields),lastName:this.getFormFieldValueByName("lastName",t.formFields),country:this.getFormFieldValueByName("country",t.formFields),job:this.getFormFieldValueByName("job",t.formFields),company:this.getFormFieldValueByName("company",t.formFields),industry:this.getFormFieldValueByName("industry",t.formFields),state:this.getFormFieldValueByName("state",t.formFields),JF_JobFunction:this.getFormFieldValueByName("JF_JobFunction",t.formFields),phone:this.getFormFieldValueByName("phone",t.formFields),consent:t.firstPartyConsent}:{};this.buildNewsletterSubscriptionPayload=(t,r,o)=>{let s=this.getEmailAddress(t,r),{formFields:n}=t,a=t.newsletterList.map(c=>({data:{type:"newsletters",id:c}})),i=[];o&&n&&(i=o.filter(c=>c.elementType!=="text"&&c.elementType!=="button"&&n.some(({htmlName:m})=>m===c.fieldName)).map(c=>{let m=n.find(y=>y.htmlName===c.fieldName);return{questionCode:c.fieldName,questionText:c.label,answer:m.value}}));let p=[...Br()],l=r?{}:this.mapDataAttributes(t);return{data:{id:s,type:"newsletter-subscriptions",attributes:{dynamicFields:i,...l},relationships:{user:r?this.getUserRelationship(r):null,newsletters:a,form:this.getFormRelationship(t.formId)}},meta:{tracking:p},context:this.context}};this.putNewslettersSubscription=async(t,r,o)=>{let s=t.emailAddress||this.getEmailAddress(t,r);return zt().put(`${this.platformServiceBaseUrl}/newsletter-subscriptions/${s}`,{...this.buildNewsletterSubscriptionPayload(t,r,o)},{headers:{...this.getPlatformApiServiceHeaders()}})};this.buildGatedContentPayload=(t,r,o,s)=>{let n={data:{type:t.contentType,id:t.contentId}},a=[];o&&s&&(a=o.filter(c=>c.elementType!=="text"&&c.elementType!=="button").map(c=>{let y=s.find(g=>g.htmlName===c.fieldName).value;return{questionCode:(c.fieldNamePrefix||"")+c.fieldName,questionText:c.label,answer:y}}));let i=this.getEmailAddress(t,r),p=[...Br()],l=r?{}:this.mapDataAttributes(t);return{data:{id:i,type:"gated-content-form-data",attributes:{dynamicFields:a,thirdPartyConsent:t.thirdPartyConsent,...l,emailAddress:i},relationships:{gatedContent:n,user:r?this.getUserRelationship(r):null,form:this.getFormRelationship(t.formId)}},meta:{tracking:p}}};this.submitGatedContentFormData=async(t,r,o,s)=>zt().post(`${this.platformServiceBaseUrl}/gated-content-form-data`,{...this.buildGatedContentPayload(t,r,o,s)},{headers:{...this.getPlatformApiServiceHeaders()}});this.getFormById=async t=>zt().get(`${this.platformServiceBaseUrl}/forms/${t}`,{headers:{...this.getPlatformApiServiceHeaders()}}).then(o=>o.data.data);this.getNewsletterData=async t=>{let r=$a(this.platformServiceBaseUrl+"/newsletters",t),n=(await zt().get(r,{headers:{...this.getPlatformApiServiceHeaders()}})).data.data;return Array.isArray(n)&&n.length>0?{form_id:n[0].relationships.form.data.id,newsletters:n.map(a=>({title:a.title,newsletter_code:a.id,newsletter_description:a.description,frequency_description:a.frequency,sample_url:{title:a.sample?.title,href:a.sample?.link}}))}:{form_id:"",newsletters:[]}};this.getEntitlementData=async(t,r)=>{let s=await zt().get(this.platformServiceBaseUrl+`/${t}/${r}`,{headers:{...this.getPlatformApiServiceHeaders()}}),n=s?.data?.data?.attributes||{},a=s?.data?.config;return a.attributes=n,a};this.getUserRelationship=t=>({data:{type:"users",id:t.id}});this.getFormRelationship=t=>({data:{type:"forms",id:t}});this.platformServiceBaseUrl=`${t}/${a||"v1"}`,this.siteId=r,this.authorization=o,this.context=s,this.subBrandId=n,this.iirisUserProfile=i}getEmailAddress(t,r){return r?r.business_email:this.getFormFieldValueByName("email",t.formFields)||this.getFormFieldValueByName("Email",t.formFields)||this.getFormFieldValueByName("emailAddress",t.formFields)||this.getFormFieldValueByName("business_email",t.formFields)||this.getFormFieldValueByName("USER_PROFILE_emailAddress",t.formFields)||this.getFormFieldValueByName("USER_PROFILE_business_email",t.formFields)}},se=Oo});var Uo,Ja=x(()=>{Uo=e=>new Promise((t,r)=>{try{let o=document.createElement("script");Object.keys(e).forEach(s=>{o[s]=e[s]}),o.addEventListener("load",()=>{t({status:!0})}),o.addEventListener("error",()=>{r({status:!1,message:`Failed to load the script ${e.src}`})}),document.body.appendChild(o)}catch(o){r(o)}})});var Ka,Lo,ko,Xa,Za=x(()=>{Ka=d(S());Ja();Lo=d(b()),ko=class extends Ka.Component{componentDidMount(){let{formId:t,configs:r={},region:o="eu1"}=this.props,{portalId:s}=r;Uo({src:`//js-${o}.hs-scripts.com/${s}.js`,type:"text/javascript",id:"hs-script-loader",async:!0,defer:!0}).then(()=>{Uo({src:`//js-${o}.hsforms.net/forms/v2.js`,type:"text/javascript",charset:"utf-8"}).then(()=>{window.hbspt&&window.hbspt.forms.create({region:o,portalId:s,formId:t,target:"#hubspotForm"})})})}render(){return(0,Lo.jsx)("div",{style:{display:"none"},children:(0,Lo.jsx)("div",{id:"hubspotForm"})})}},Xa=ko});var tl,el,Bo,vr,Do=x(()=>{tl=d(S());Ht();Za();el=d(b()),Bo=class extends tl.Component{render(){let{formResponse:t}=this.props,{formId:r,formType:o,configs:s={}}=t;switch(o){case"HUBSPOT":return(0,el.jsx)(Xa,{configs:s,formId:r});default:return null}}},vr=Bo});function Sr(e){let t=e.displayName||e.name||"Component",r=o=>((0,rl.useEffect)(()=>{window.elnLibVersion={packageName:Sn,version:je}},[]),(0,ol.jsx)(e,{...o}));return r.displayName=`withVersioningInfo(${t})`,r}var rl,ol,Mo=x(()=>{rl=d(S());ao();ol=d(b())});var sl,ne,Ho,nl,al=x(()=>{sl=d(S());wt();Ya();Er();Te();O();Do();Mo();oe();ne=d(b()),Ho=class extends sl.Component{constructor(r){super(r);this.platformApiService=new se(this.props.platformServiceBaseUrl,this.props.clientId,this.props.authorization,this.props.context,this.props.subBrandId,this.props.version);this.handleSubscriptionState=r=>{this.setState(o=>({...o,subscriptionState:{isSuccessful:r.isSuccessful,message:r.message,status:r.status}})),r.isSuccessful&&this.props.onSuccessSubscribe&&this.props.onSuccessSubscribe()};this.componentDidMount=async()=>{try{let r=await this.getNewsletterData({tag:this.props.newsletterTag||"",state:this.state.countryState});r.form_id&&!this.props.iirisUserProfile&&await this.getFormData(r.form_id)}catch(r){yt(r),this.setState(o=>({...o,subscriptionState:{...o.subscriptionState,status:A.DEFAULT_FORM_SUBMISSION_STATES.ERROR,message:"We are having issues responding to your request! Please try again later."}}))}};this.getFormData=async r=>{let o=await this.platformApiService.getFormById(r);this.setState(s=>({...s,formData:o,subscriptionState:{...s.subscriptionState,status:A.DEFAULT_FORM_SUBMISSION_STATES.NEW},hideFirstPartyConsent:Tr(o)}))};this.getNewsletterData=async r=>{let o=await this.platformApiService.getNewsletterData(r);return this.setState(s=>({...s,contentStackData:{formId:o.form_id,newsletters:o.newsletters},subscriptionState:{...s.subscriptionState,status:this.props.iirisUserProfile?A.DEFAULT_FORM_SUBMISSION_STATES.NEW:s.subscriptionState.status}})),o};this.state={countryState:this.props.iirisUserProfile?.state||"",subscriptionState:{isSuccessful:!1,message:"PRE-SUB",status:A.DEFAULT_FORM_SUBMISSION_STATES.PENDING}},this.onCountryStateChanged=this.onCountryStateChanged.bind(this),this.handleSubscriptionState=this.handleSubscriptionState.bind(this)}onCountryStateChanged(r){this.setState(o=>({...o,countryState:r}),async()=>{await this.getNewsletterData({tag:this.props.newsletterTag||"",state:this.state.countryState})})}render(){let r=this.state?.formData||{},{sponsorName:o=""}=this.props,{elements:s=[]}=r?.attributes||{};return(0,ne.jsxs)("div",{children:[(0,ne.jsx)(vr,{formResponse:r}),(0,ne.jsx)(T.Provider,{value:ge(this.props.classNames,"newsletter"),children:(0,ne.jsx)(za,{newsletters:this.state&&this.state.contentStackData&&this.state.contentStackData.newsletters,elements:wr(s,o),platformApiService:this.platformApiService,subscriptionStateHandler:this.handleSubscriptionState,subscriptionState:this.state&&this.state.subscriptionState,returnFunction:this.props.returnButtonFunction,iirisUserProfile:this.props.iirisUserProfile,inContextValidationMessage:this.props.inContextValidationMessage,formId:this.state?.contentStackData?.formId,onCountryStateChanged:this.onCountryStateChanged,hideFirstPartyConsent:this.state.hideFirstPartyConsent,hideThirdPartyConsent:this.state.hideThirdPartyConsent})})]})}},nl=Sr(Ho)});var ll,ut,R,Nr,il,pl=x(()=>{ll=d(S()),ut=d(H());_t();O();R=d(b()),Nr=class extends ll.Component{constructor(r){super(r);this.consentHelper=new tt}getContentTypeMessage(){switch(this.props.contentType.toLowerCase()){case"webinar":return"attend the webinar";case"white_paper":return"download the document";case"video":return"watch the video";case"slideshow":return"play the slideshow";case"article":return"read the article";case"recipe":return"read the recipe";case"multi_section_article":return"read the multi-section article";case"publication_issue":return"read the publication issue";case"podcast":return"listen to the podcast";default:return"access this content"}}render(){let r=this.getContentTypeMessage(),o=this.consentHelper.getCategoryByCountryCode(this.props.countryCode),{base:s,consentLayout:n,formLayout:a}=this.context,{sponsorName:i}=this.props;i=i||"the Sponsors mentioned above";let p=this.consentHelper.getOptOutMessage(this.context,o),l=(0,ut.default)(n.thirdPartyContainer,{[a.validationErroredField]:this.props.error});return!this.props.countryCode||this.props.countryCode===""?null:o==="A"?(0,R.jsxs)("div",{className:l,children:[(0,R.jsxs)("p",{className:s.p,children:["I\u2019d like to hear from ",i," about their products and services which are relevant to me."," ",p]}),(0,R.jsxs)("div",{children:[(0,R.jsxs)("label",{className:s.label,children:[(0,R.jsx)("input",{className:(0,ut.default)(s.input,s.radio),type:"radio",value:"CR_OPTIN",name:"thirdPartyConsent",required:!0,onInput:this.props.changeHandler}),"Yes"]}),(0,R.jsxs)("label",{className:s.label,children:[(0,R.jsx)("input",{className:(0,ut.default)(s.input,s.radio),type:"radio",value:"CR_OPTOUT",name:"thirdPartyConsent",onInput:this.props.changeHandler}),"No"]})]})]}):o==="B"?(0,R.jsx)("div",{className:l,children:(0,R.jsxs)("label",{className:(0,ut.default)(s.label,"eln-third-party-consent-B"),children:[(0,R.jsx)("input",{className:(0,ut.default)(s.input,s.checkbox),type:"checkbox",value:"CR_OPTIN",name:"thirdPartyConsent",onInput:this.props.changeHandler}),(0,R.jsxs)("p",{className:s.p,children:["Yes, I'd like to hear from ",i," about their products and services which are relevant to me."," ",p]})]})}):o==="C"?(0,R.jsx)("div",{className:l,children:(0,R.jsxs)("label",{className:(0,ut.default)(s.label,"eln-third-party-consent-B"),children:[(0,R.jsx)("input",{className:(0,ut.default)(s.input,s.checkbox),type:"checkbox",value:"CR_OPTOUT",name:"thirdPartyConsent",onInput:this.props.changeHandler}),(0,R.jsxs)("p",{className:s.p,children:["Tick here if you do not want to hear from ",i," about their products and services relevant to you."," ",p]})]})}):(0,R.jsxs)("div",{className:l,children:[(0,R.jsxs)("p",{className:s.p,children:["By signing up to ",r," you agree to our terms and conditions and privacy policy. By continuing, you agree that Informa may contact you with updates about our related products and services including those of our carefully selected partners. Also, ",i," may follow-up and contact you about their products and services. ",p]}),(0,R.jsxs)("label",{className:s.label,children:["I agree to the"," ",(0,R.jsx)("a",{className:s.a,href:"https://www.informa.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:"Privacy Policy"})]})]})}};Nr.contextType=T;il=Nr});var cl,we,j,Fr,ml,dl=x(()=>{cl=d(S()),we=d(H());wt();pl();_t();Ao();ur();Te();Ue();So();Po();O();Fo();j=d(b()),Fr=class extends cl.default.Component{constructor(r){super(r);this.handleThirdPartyCConsentChange=r=>{let o=r.value;r.type==="checkbox"&&(r.checked?o=r.value:o=""),r.type==="radio"&&(o=r.value),this.setState(s=>({...s,thirdPartyConsentOption:o,thirdPartyConsentTouched:!0,values:{...s.values}}))};this.handleFirstPartyConsentChange=r=>{let o=this.consentHelper.getValueByElement(r);this.setState(s=>({...s,firstPartyConsentOption:o,firstPartyConsentTouched:!0,values:{...s.values}}))};this.handleChange=r=>{r.preventDefault();let o=r.currentTarget;o.name===k.ElementNames.THIRD_PARTY_CONSENT?this.handleThirdPartyCConsentChange(o):o.name===k.ElementNames.CONSENT&&this.handleFirstPartyConsentChange(o)};this.checkThirdPartyConsent=()=>{if(!this.state.values.countryCode||this.props.hideThirdPartyConsent)return!0;switch(this.consentHelper.getCategoryByCountryCode(this.state.values.countryCode)){case"A":return this.state.thirdPartyConsentTouched;case"D":return!0;default:return!0}};this.checkConsentFirstPartyConsent=()=>{if(this.props.iirisUserProfile||this.props.hideFirstPartyConsent||!this.state.values.countryCode)return!0;switch(this.consentHelper.getCategoryByCountryCode(this.state.values.countryCode)){case"A":return this.state.firstPartyConsentTouched;case"D":return!0;default:return!0}};this.handleSubmit=async r=>{if(r.preventDefault(),this.setState(m=>({...m,showAllViolations:!0})),!(this.checkConsentFirstPartyConsent()&&this.checkThirdPartyConsent()))return;let s=this.consentHelper.getThirdConsentValue(this.state.values.countryCode,this.state.thirdPartyConsentOption),n=this.props.iirisUserProfile?!0:this.consentHelper.getFirstConsentValue(this.state.values.countryCode,this.state.firstPartyConsentOption),{formFields:a}=this.state.values;if(a.some(({violations:m})=>m.length))return;let p=this.props.iirisUserProfile?.business_email||this.state.values.emailAddress,l={formFields:a,emailAddress:p,thirdPartyConsent:s,firstPartyConsent:n,contentType:this.props.contentType,contentId:this.props.contentId,formId:this.props.formId||""},c={isSuccessful:!1,message:"Submitting data...",status:A.DEFAULT_FORM_SUBMISSION_STATES.PENDING};this.props.subscriptionStateHandler(c);try{let m=await this.props.platformApiService.submitGatedContentFormData(l,this.props.iirisUserProfile,this.state.elements,a);m.status===200&&(c.isSuccessful=!0,c.message="SUCCESS",c.status=A.DEFAULT_FORM_SUBMISSION_STATES.SUCCESS,this.props.completionCallback(m))}catch(m){yt(m),c.isSuccessful=!1,c.message="A problem has occurred with processing your request, please wait a few minutes and try again.",c.status=A.DEFAULT_FORM_SUBMISSION_STATES.ERROR,this.props.subscriptionStateHandler(c)}};this.getErrors=()=>{let{iirisUserProfile:r}=this.props,{values:o,showAllViolations:s}=this.state,n=o.formFields.filter(i=>i.touched||s).flatMap(({violations:i})=>i),a=[];return!r&&s&&!this.checkConsentFirstPartyConsent()&&a.push("Please choose first party consent agreement"),s&&!this.checkThirdPartyConsent()&&a.push("Please choose third party consent agreement"),{errors:n,otherErrors:a}};this.state={elements:this.props.elements,showAllViolations:!1,thirdPartyConsentOption:"",thirdPartyConsentTouched:!1,firstPartyConsentOption:"",firstPartyConsentTouched:!1,values:{contentType:this.props.contentType,contentId:this.props.contentId,thirdPartyConsent:!1,formFields:[],formId:null,countryCode:this.props.countryCode,emailAddress:this.props.iirisUserProfile?.business_email||"",firstPartyConsent:!1}},this.consentHelper=new tt,this.handleSubmit=this.handleSubmit.bind(this),this.onFormChange=this.onFormChange.bind(this)}onFormChange(r,o){let s=r.find(a=>a.htmlName===k.ElementNames.COUNTRY)?.value||this.props.countryCode,n=r.find(a=>a.htmlName===k.ElementNames.EMAIL_ADDRESS||a.htmlName===k.ElementNames.BUSINESS_EMAIL)?.value||"";this.setState(a=>({...a,elements:o,values:{...a.values,emailAddress:n,countryCode:s,formFields:r}}))}render(){let r=this.props.subscriptionState&&this.props.subscriptionState.status,{elements:o=[],inContextValidationMessage:s,iirisUserProfile:n,hideFirstPartyConsent:a,hideThirdPartyConsent:i}=this.props,{errors:p,otherErrors:l}=this.getErrors();if(r==="PENDING")return(0,j.jsx)(Zt,{});if(r==="ERROR")return(0,j.jsx)(fr,{title:"A problem has occurred",message:"A problem has occurred with processing your request, please wait a few minutes and try again.",returnFunction:this.props.completionCallback});{let{base:c,formLayout:m}=this.context;return(0,j.jsx)("div",{className:m.container,children:(0,j.jsxs)("form",{noValidate:!0,className:(0,we.default)(c.form,m.form),onSubmit:this.handleSubmit,children:[(0,j.jsxs)("div",{children:[typeof this.props.title=="string"?(0,j.jsx)("p",{className:(0,we.default)(c.p,m.title),children:this.props.title}):this.props.title,typeof this.props.subtitle=="string"?(0,j.jsx)("p",{className:(0,we.default)(c.p,m.description),children:this.props.subtitle}):this.props.subtitle]}),!s&&(0,j.jsx)(xr,{validationErrors:p,otherErrors:l}),o&&(0,j.jsx)(ir,{onChange:this.onFormChange,elements:o,showAllViolations:this.state.showAllViolations,showErrorMessages:s,siteId:this.props.platformApiService.siteId}),!a&&!n&&(0,j.jsx)(dr,{sponsorName:this.props.sponsorName,countryCode:this.state.values.countryCode,changeHandler:this.handleChange}),!i&&(0,j.jsx)(il,{contentType:this.props.contentType,countryCode:this.props.countryCode||this.state.values.countryCode,changeHandler:this.handleChange,error:s&&this.state.showAllViolations&&!this.checkThirdPartyConsent(),sponsorName:this.props.sponsorName}),(0,j.jsx)("button",{className:(0,we.default)(c.button,m.submit),children:"Continue"})]})})}}};Fr.contextType=T;ml=Fr});var yl,ae,em,Vo,ul,bl=x(()=>{yl=d(S());wt();dl();Er();Te();O();Do();Mo();oe();ae=d(b()),em={webinar:"webinars",white_paper:"whitepapers",video:"videos",slideshow:"slideshows",article:"articles",journal:"journals",recipe:"recipes",multi_section_article:"multiSectionArticles",publication_issue:"publicationIssues",podcast:"podcasts",enhanced_list_landing_page:"enhancedListsParent",enhanced_list_child_page:"enhancedListsChild"},Vo=class extends yl.default.Component{constructor(r){super(r);this.platformApiService=new se(this.props.platformServiceBaseUrl,this.props.clientId,this.props.authorization,void 0,this.props.subBrandId,this.props.version,this.props.iirisUserProfile);this.handleSubscriptionState=r=>{this.setState(o=>({...o,subscriptionState:{isSuccessful:r.isSuccessful,message:r.message,status:r.status}}))};this.componentDidMount=async()=>{try{await this.getContentStackData()}catch(r){yt(r),this.setState(o=>({...o,subscriptionState:{...o.subscriptionState,status:A.DEFAULT_FORM_SUBMISSION_STATES.ERROR,message:"We are having issues responding to your request! Please try again later."},error:!0}))}};this.getContentStackData=async()=>{let{sponsored_form_id:r,attributes:o={}}=await this.platformApiService.getEntitlementData(em[this.props.contentType],this.props.contentId)||{},s={},n=!1,a=!1,i=!1;if(r){let p=await this.platformApiService.getFormById(r);a=Tr(p),i=i||Ro(p),a=i&&(!Qa(p)||!this.props.iirisUserProfile),n=i||!this.props.iirisUserProfile,this.props.clientId==="feedstuffs"&&this.props.iirisUserProfile&&(p.attributes.elements=p.attributes.elements.filter(l=>l.fieldName!=="business_email").filter(l=>l.fieldName!=="first_name").filter(l=>l.fieldName!=="last_name").filter(l=>l.fieldName!=="country").filter(l=>l.fieldName!=="industry").filter(l=>l.fieldName!=="job_functions").filter(l=>l.fieldName!=="state")),(this.props.clientId==="naturalproductsinsider"||this.props.clientId==="foodbeverageinsider"||this.props.clientId==="newhope")&&this.props.iirisUserProfile&&(p.attributes.elements=p.attributes.elements.filter(l=>l.fieldName!=="emailAddress").filter(l=>l.fieldName!=="firstName").filter(l=>l.fieldName!=="lastName").filter(l=>l.fieldName!=="industry").filter(l=>l.fieldName!=="country").filter(l=>l.fieldName!=="company").filter(l=>l.fieldName!=="job_title").filter(l=>l.fieldName!=="JF_JobFunction")),i&&this.props.iirisUserProfile&&(p.attributes.elements=p.attributes.elements.filter(l=>l.fieldName!=="email").filter(l=>l.fieldName!=="firstname").filter(l=>l.fieldName!=="lastname").filter(l=>l.fieldName!=="address").filter(l=>l.fieldName!=="company").filter(l=>l.fieldName!=="country").filter(l=>l.fieldName!=="jobtitle").filter(l=>l.fieldName!=="phone").filter(l=>l.fieldName!=="state").filter(l=>l.fieldName!=="zip")),this.props.clientId==="restauranthospitality"&&this.props.iirisUserProfile&&(p.attributes.elements=p.attributes.elements.filter(l=>l.fieldName!=="business_email").filter(l=>l.fieldName!=="first_name").filter(l=>l.fieldName!=="last_name").filter(l=>l.fieldName!=="country").filter(l=>l.fieldName!=="company").filter(l=>l.fieldName!=="job_title").filter(l=>l.fieldName!=="primaryBusiness").filter(l=>l.fieldName!=="typeConcept").filter(l=>l.fieldName!=="areaResponsibility").filter(l=>l.fieldName!=="state")),this.props.clientId==="supermarketnews"&&this.props.iirisUserProfile&&(p.attributes.elements=p.attributes.elements.filter(l=>l.fieldName!=="business_email").filter(l=>l.fieldName!=="first_name").filter(l=>l.fieldName!=="last_name").filter(l=>l.fieldName!=="country").filter(l=>l.fieldName!=="job_functions").filter(l=>l.fieldName!=="primaryBusiness").filter(l=>l.fieldName!=="typeConcept").filter(l=>l.fieldName!=="areaResponsibility").filter(l=>l.fieldName!=="state")),s[r]=p}this.setState(p=>({...p,formId:r,forms:{...p.forms,...s},error:null,subscriptionState:{...p.subscriptionState,status:A.DEFAULT_FORM_SUBMISSION_STATES.NEW},hideFirstPartyConsent:n,hideThirdPartyConsent:a,sponsorName:o?.sponsor_name||void 0}))};this.state={forms:{},subscriptionState:{isSuccessful:!1,message:"PRE-SUB",status:A.DEFAULT_FORM_SUBMISSION_STATES.PENDING}}}render(){let{forms:r={}}=this.state,{sponsorName:o=""}=this.state,s=[],n=Object.keys(r).map(a=>{let i=r[a];return s=[...s,...i?.attributes?.elements||[]],(0,ae.jsx)(vr,{formResponse:i},a)});return(0,ae.jsxs)("div",{children:[n,(0,ae.jsx)(T.Provider,{value:ge(this.props.classNames,"entitlement"),children:(0,ae.jsx)(ml,{platformApiService:this.platformApiService,contentType:this.props.contentType,contentId:this.props.contentId,completionCallback:this.props.completionCallback,countryCode:this.props.iirisUserProfile?.country,iirisUserProfile:this.props.iirisUserProfile,elements:wr(s,o),subscriptionStateHandler:this.handleSubscriptionState,subscriptionState:this.state&&this.state.subscriptionState,inContextValidationMessage:this.props.inContextValidationMessage,formId:this.state.formId||"",hideFirstPartyConsent:this.state.hideFirstPartyConsent,hideThirdPartyConsent:this.state.hideThirdPartyConsent,sponsorName:o,title:this.props.overrides?.title||"Gain Access",subtitle:this.props.overrides?.subtitle||"Please provide us with a few more details to continue."})})]})}},ul=Sr(Vo)});var gl={};pt(gl,{Entitlement:()=>ul,Newsletter:()=>nl});var fl=x(()=>{al();bl()});var At,xl,hl=x(()=>{At=d(S()),xl=(e,t)=>{let[r,o]=(0,At.useState)(!1),[s,n]=(0,At.useState)([]),[a,i]=(0,At.useState)(null),[p,l]=(0,At.useState)([]);(0,At.useEffect)(()=>{(async()=>{o(!0);let _=await e.getNewsletterData(t);n(_.newsletters.map(E=>({...E,selected:!1}))),i(_.form_id),o(!1)})().then()},[t]);let c=g=>{let _=g.currentTarget,E=_.value,w=s.map(v=>v.newsletter_code===E?{...v,selected:_.checked}:v);l(m(w)),n(w)},m=g=>g.some(E=>E.selected)?[]:["Please ensure at least one newsletter is selected and no errors are displayed"],y=()=>{let g=m(s);return g.length&&l(g),g.length===0},f=s.filter(g=>g.selected).map(g=>g.newsletter_code);return{loading:r,newsletters:s,selectedNewsletters:f,formId:a,handleChange:c,validate:y,errors:p}}});var _r,qo=x(()=>{Er();_r=e=>new se(e.elnUrl,e.brandId,e.authorization,e.context,e.subBrandId,e.elnVersion)});var Ce,wl,rm,Tl,Ee,Wo=x(()=>{Ce=d(S());Ht();vo();io();wl=e=>!!e.validations?.some(({type:t})=>t==="IsRequiredCondition"),rm=e=>e.filter(t=>t.inputType!=="hidden"||t.elementType==="button").reduce((t,r)=>{let o=t.set(r.fieldName,{...r,isRequired:wl(r),isHidden:!1,value:""});if(r.dependentElements?.length)for(let{element:s}of r.dependentElements)t.set(s.fieldName,{...s,isRequired:!1,isHidden:!0,validations:[]});return o},new Map),Tl=e=>({...e,isHidden:!0,isRequired:!1,value:"",validations:[]}),Ee=(e,t)=>{let[r,o]=(0,Ce.useState)(!1),[s,n]=(0,Ce.useState)(new Map);(0,Ce.useEffect)(()=>{(async()=>{if(t){o(!0);let y=await e.getFormById(t);n(rm(y.attributes.elements)),o(!1)}})().then()},[t]);let a=new ze,i=m=>{if(!t)return;m.preventDefault();let{currentTarget:y}=m,f=y.value,g=s.get(y.name);if(!g)throw new Error(`use-form: Element with name ${y.name} not found`);g.elementType==="checkbox"&&(f=""+y?.checked),g.errors=a.validateFormField(f,g),g.value=f,g.touched=!0,s.set(y.name,g);let _=g?.dependentElements||[];for(let{element:w}of _){let v=Tl(w);s.set(w.fieldName,v)}let E=_.filter(({filters:w})=>w.some(({strValues:v})=>v.includes(f)));for(let{formFieldAction:w,element:v,filters:F}of E){let h=Tl(v);w==="DISPLAY"&&(h.isHidden=!ar(f,F),h.isRequired=wl(v),h.validations=v.validations),s.set(v.fieldName,h)}n(new Map(s))},p=()=>{if(!t)return!0;let m=!1;for(let[y,f]of Array.from(s)){let g=a.validateFormField(f.value,f);g?.length&&(f.errors=g,s.set(y,f),m=!0)}return n(new Map(s)),!m},l=Array.from(s.values()).map(m=>m),c=l.filter(m=>m.errors?.length).flatMap(m=>m?.errors?.map(y=>`${m.label}: ${y.message}`));return{loading:r,fields:l,handleChange:i,validate:p,errors:c}}});var bt,ve,Go=x(()=>{bt=d(S());_t();ve=(e,t)=>{let r=new tt,[o,s]=(0,bt.useState)(!1),[n,a]=(0,bt.useState)(""),[i,p]=(0,bt.useState)(!1),[l,c]=(0,bt.useState)(""),[m,y]=(0,bt.useState)([]);(0,bt.useEffect)(()=>{t&&a(r.getCategoryByCountryCode(t))},[t]);let f=E=>{let w=E.currentTarget,v=r.getValueByElement(w),F=e==="firstParty"?r.getFirstConsentValue(t,v):r.getThirdConsentValue(t,v);s(F),c(v),p(!0)},g=()=>{if(!t)return!0;switch(n){case"A":return i;case"D":return i&&l==="CR_OPTIN";default:return!0}};return{category:n,value:o,handleChange:f,validate:()=>{let E=g();return y(E?[]:["Please choose consent agreement"]),E},errors:m}}});var Cl={};pt(Cl,{useNewsletter:()=>om});var Ar,om,El=x(()=>{Ar=d(S());hl();qo();Wo();Go();oe();om=(e,t)=>{let r=_r(e),[o,s]=(0,Ar.useState)("loading"),{loading:n,newsletters:a,selectedNewsletters:i,formId:p,handleChange:l,validate:c,errors:m=[]}=xl(r,t),{loading:y,fields:f,handleChange:g,validate:_,errors:E=[]}=Ee(r,re(e.iirisUserProfile)?p:null),w=Cr(f,"country"),{category:v,value:F,handleChange:h,validate:D,errors:it=[]}=ve("firstParty",w);(0,Ar.useEffect)(()=>{s(n||y?"loading":"filling")},[n,y]);let gt=()=>re(e.iirisUserProfile)?c()&&_()&&D():c();return{state:o,newsletter:{list:a,handleChange:l,errors:m},form:{fields:f,handleChange:g,errors:E},consent:{firstParty:{category:v,handleChange:h,errors:it}},handleSubmit:async Ir=>{if(Ir.preventDefault(),gt()){s("loading");let Rr=f.map(Ot=>({htmlName:Ot.fieldName,value:Ot.value||"",touched:Ot.touched||!1,violations:[]})),Pe={formId:p,countryCode:w,emailAddress:"",firstPartyConsent:F,newsletterList:i,formFields:Rr};try{await r.putNewslettersSubscription(Pe,e.iirisUserProfile,f),s("success")}catch{s("error")}}},allErrors:[...E,...m,...it]}}});var Pt,vl,Sl=x(()=>{Pt=d(S()),vl=(e,t,r)=>{let[o,s]=(0,Pt.useState)(!1),[n,a]=(0,Pt.useState)(null),[i,p]=(0,Pt.useState)(null),[l,c]=(0,Pt.useState)("");return(0,Pt.useEffect)(()=>{(async()=>{s(!0);let y=await e.getEntitlementData(t,r);a(y.user_profile_form_id),p(y.user_profile_form_id),y?.attributes?.sponsor_name&&c(y.attributes.sponsor_name),s(!1)})().then()},[t,r]),{loading:o,userFormId:n,sponsorFormId:i,sponsorName:l}}});var Nl={};pt(Nl,{useEntitlement:()=>am});var Pr,sm,nm,am,Fl=x(()=>{Pr=d(S());qo();Wo();oe();Sl();Go();sm={webinar:"webinars",white_paper:"whitepapers"},nm=(e,t,r,o)=>e===r?o:[...t,...o],am=(e,t,r,o)=>{let s=_r(e),[n,a]=(0,Pr.useState)("loading"),{loading:i,userFormId:p,sponsorFormId:l,sponsorName:c}=vl(s,sm[t],r),{loading:m,fields:y,handleChange:f,validate:g,errors:_=[]}=Ee(s,re(e.iirisUserProfile)?null:p),{loading:E,fields:w,handleChange:v,validate:F,errors:h=[]}=Ee(s,l),D=nm(p,y,l,w),it=Cr(D,"country"),{category:gt,value:Ae,handleChange:Ir,validate:Rr,errors:Pe=[]}=ve("firstParty",it),{category:Ot,value:Ll,handleChange:Bl,validate:Or,errors:Yo=[]}=ve("thirdParty",it);(0,Pr.useEffect)(()=>{a(i||m||E?"loading":"filling")},[i,E,m]);let Dl=()=>re(e.iirisUserProfile)?Rr()&&Or()&&F():p===l?Or()&&F():Or()&&F()&&g(),Ml=async Ie=>{if(Ie.preventDefault(),Dl()){a("loading");let $o=D.map(Ut=>({htmlName:Ut.fieldName,value:Ut.value||"",touched:Ut.touched||!1,violations:[]})),Hl={formId:"",countryCode:it,emailAddress:"",firstPartyConsent:Ae,thirdPartyConsent:Ll,formFields:$o,contentType:t,contentId:r};try{let Ut=await s.submitGatedContentFormData(Hl,e.iirisUserProfile,D,$o);a("success"),o(Ut.data)}catch{a("error")}}};return{state:n,form:{fields:D,handleChange:Ie=>{f(Ie),v(Ie)},errors:[..._,...h]},consent:{firstParty:{category:gt,handleChange:Ir,errors:Pe},thirdParty:{category:Ot,handleChange:Bl,errors:Yo,sponsorName:c,contentType:t}},handleSubmit:Ml,allErrors:[..._,...h,...Pe,...Yo]}}});var Al=C(M=>{"use strict";M.__esModule=!0;M.CountryCategory=M.useEntitlement=M.useNewsletter=M.Spinner=M.Input=M.Entitlement=M.Newsletter=void 0;var _l=(fl(),kt(gl));M.Entitlement=_l.Entitlement;M.Newsletter=_l.Newsletter;var lm=(Co(),kt(Ca));M.Input=lm.Input;var im=(ur(),kt(qa));M.Spinner=im.Spinner;var pm=(El(),kt(Cl));M.useNewsletter=pm.useNewsletter;var cm=(Fl(),kt(Nl));M.useEntitlement=cm.useEntitlement;var mm=(_t(),kt(Da));M.CountryCategory=mm.CountryCategory});var Ur={screens:{md:"744px",lg:"1024px",xl:"1200px"}};var Q=d(S()),ts=d(b()),Xo=(0,Q.createContext)({}),kr=e=>parseInt(e.replace("px",""),10),Cm=e=>{let t=(0,Q.useMemo)(()=>({md:kr(e.screens.md),lg:kr(e.screens.lg),xl:kr(e.screens.xl)}),[e.screens]);if(!t.md||!t.lg||!t.xl)throw new Error("Cant parse screen tokens");return(0,ts.jsx)(Xo.Provider,{value:t,children:e.children})},Ko=e=>{if(typeof window>"u")return null;switch(!0){case window.innerWidth>=e.xl:return"xl";case window.innerWidth>=e.lg:return"lg";case window.innerWidth>=e.md:return"md";default:return null}},Em=()=>{let e=(0,Q.useContext)(Xo),[t,r]=(0,Q.useState)(null);return(0,Q.useEffect)(()=>{let o=()=>r(Ko(e));return typeof window<"u"&&(window.addEventListener("resize",o),r(Ko(e))),()=>{typeof window<"u"&&window.removeEventListener("resize",o)}},[e]),t},Zo=()=>{let[e,t]=(0,Q.useState)(0);return(0,Q.useEffect)(()=>{let r=()=>t(window.innerWidth);return typeof window<"u"&&(window.addEventListener("resize",r),t(window.innerWidth)),()=>{typeof window<"u"&&window.removeEventListener("resize",r)}},[]),e};function es(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t{let n=ym[e];return(0,Il.jsx)(n,{"data-component":"typography","data-testid":s===void 0?"typography_element":s,className:dm({variant:(0,Pl.default)(e),font:r?"primary":"secondary"},[t]),children:o})};var at=d(b()),u=(0,$.cn)("SignupNewsletter"),Ol=({onClose:e,newsletterId:t,newsletterTag:r,subBrandId:o})=>{let{user:s,sessionType:n,accessToken:a,authFlow:i,platformServiceBaseUrl:p,clientIdForELN:l}=Lt.useAuth(),c=Bt.hooks.useSendEvent(),{newsletterSignupPromo:{elnConfig:m}}=Lt.useConfig(),[y,f]=(0,zo.useState)(m?.newsletter.subscribeForm.title||"Subscribe to Our Newsletters"),[g,_]=(0,zo.useState)(m?.newsletter.subscribeForm.subtitle),E=()=>{c({event:"newsletter",data:{status:"Submit Success",capture_tool:"ELN",...s?.id?{user_id:s.id}:{}},_clear:!0}),m?.newsletter?.subscribeConfirm?.title&&f(m?.newsletter.subscribeConfirm.title),m?.newsletter.subscribeConfirm.subtitle&&_(m?.newsletter.subscribeConfirm.subtitle)};return(0,at.jsxs)(at.Fragment,{children:[(0,at.jsxs)("div",{className:u("Header"),children:[(0,at.jsx)(jo,{variant:"h2",primary:!0,className:u("HeaderTitle"),automationId:"newsletter_headerTitle",children:y}),(0,at.jsx)(jo,{variant:"body-small",className:u("HeaderSubtitle"),primary:!1,automationId:"newsletter_headerSubTitle",children:g})]}),n!=="unauthenticated"&&(0,at.jsx)(Rl.Newsletter,{platformServiceBaseUrl:p,newsletterId:t,newsletterTag:r,authorization:a,clientId:l,context:{isUserRegistrationFlow:Boolean(i==="register")},iirisUserProfile:s,returnButtonFunction:e,subBrandId:o,onSuccessSubscribe:E,classNames:{base:{h1:u("BaseHeader"),p:u("BaseText"),span:u("BaseSpan"),a:u("BaseLink"),button:u("BaseButton"),form:u("BaseForm"),label:u("BaseLabel"),input:u("BaseInput"),checkbox:u("BaseCheckbox"),radio:u("BaseRadio"),select:u("BaseSelect"),option:u("BaseOption")},formLayout:{container:u("Content"),formContainer:u("FormContainer"),formContainerRow:u("FormContainerRow"),form:u("Form"),submitContainer:u("SubmitContainer"),submit:u("Submit"),title:u("Title"),description:u("Description"),checkbox:u("Checkbox"),select:u("Select"),selectLabelSpan:u("SelectLabelSpan"),selectState:u("SelectState"),input:u("Input"),label:u("Label"),textInput:u("TextInput"),textInputLabelSpan:u("TextInputLabelSpan"),validationErroredField:u("ValidationErroredField"),validationHeader:u("ValidationHeader"),selectElement:u("SelectElement"),selectOptionElement:u("SelectOptionElement"),inputElement:u("InputElement"),selectMultiple:u("SelectMultiple")},consentLayout:{container:u("Consent"),thirdPartyContainer:u("ConsentWrapper"),a:u("ConsentLink"),p:u("ConsentText"),input:u("ConsentInput"),label:u("ConsentLabel")},newsletterLayout:{container:u("Newsletter"),item:u("NewsletterItem"),inputContainer:u("NewsletterInputContainer"),input:u("NewsletterInput"),consentContainer:u("NewsletterConsentContainer"),itemTitle:u("NewsletterItemTitle"),itemFrequency:u("NewsletterFrequency"),itemFrequencyA:u("NewsletterFrequencyLink"),itemFrequencyP:u("NewsletterFrequencyText"),validationError:u("NewsletterError"),success:{container:u("NewsletterSuccess"),thankYouTitle:u("NewsletterSuccessTitle"),plainText:u("NewsletterSuccessText"),button:u("NewsletterSuccessButton")}},errorLayout:{container:u("Error"),title:u("ErrorTitle"),plainText:u("ErrorText"),button:u("ErrorButton")}}},a)]})};var _e=d(S());var lt=d(b()),le=(0,$.cn)("SignupNewsletterModal"),ie=({onClose:e,skipOption:t,newsletterId:r,subBrandId:o})=>{let s=i=>parseInt(i.replace("px",""),10),n=i=>{if(i>=s(Ur.screens.xl))return{width:"fit-content",maxHeight:"90%",maxWidth:"80%",transform:"translate(-50%,-50%)"}},a=Zo();return(0,lt.jsx)("div",{className:le(),"data-testid":"newsletter-modal",children:(0,lt.jsxs)("div",{style:n(a),className:le("Wrapper"),children:[(0,lt.jsx)("div",{className:le("Header"),role:"presentation",onClick:e,children:(0,lt.jsx)(Jo,{icon:"Close",className:le("Close")})}),(0,lt.jsx)(Ol,{onClose:e,newsletterId:r,subBrandId:o}),t&&(0,lt.jsx)("div",{className:le("Footer"),children:(0,lt.jsx)("button",{className:le("Button"),onClick:e,children:"No, thank you"})})]})})};var It=d(b()),Se=(0,$.cn)("SubscribeBanner"),Ul=({title:e,message:t,children:r,className:o,variant:s,mode:n,automationId:a})=>{let p=Qo.hooks.useIsAdRender("wallpaper_v")==="show";return(0,It.jsx)("div",{className:ss(Se({mode:n,variant:s,isWallPaperActive:p}),o),children:(0,It.jsxs)("div",{className:Se("Wrapper"),children:[(0,It.jsx)("div",{className:Se("Title"),"data-testid":a===void 0?"subscribeBanner_title":a,children:e}),(0,It.jsx)("div",{className:Se("Message"),"data-testid":a===void 0?"subscribeBanner_message":a,children:t}),(0,It.jsx)("div",{className:Se("Button"),children:r})]})})};var Rt=d(b()),Ne=(0,$.cn)("SubscribeBannerTopicPage"),kl=({title:e,message:t,children:r,className:o,variant:s,mode:n,automationId:a})=>(0,Rt.jsx)("div",{className:Ne({mode:n,variant:s},[o]),children:(0,Rt.jsxs)("div",{className:Ne("Content"),children:[(0,Rt.jsx)("div",{className:Ne("Title"),"data-testid":a===void 0?"subscribeBannerTopicPage_title":a,children:e}),(0,Rt.jsx)("div",{className:Ne("Message"),"data-testid":a===void 0?"subscribeBannerTopicPage_message":a,children:t}),(0,Rt.jsx)("div",{className:Ne("Button"),"data-testid":"subscribe-banner-topic-page-button",children:r})]})});var N=d(b()),Fe=(0,$.cn)("NewsletterSignupPromo"),gm="module_newsletter_promo_cta",tg=({buttonText:e="",newsletterId:t,layoutVariant:r="banner",social:o,isOpenNewsletter:s,isOnHomepage:n=!1,moduleLocation:a,title:i,...p})=>{let l=Bt.hooks.useSendEvent(),{uiBrand:c,newsletterSignupPromo:{unbounceURL:m}}=Lt.useConfig(),{elnNewsletter:y}=Lt.useFeatureToggles(),[f,g]=(0,_e.useState)(!1),[_,E]=(0,_e.useState)(!1),w=xm(c),v=Bt.utils.getCurrentUrl(),F=!y,h=F&&m?m:"";(0,_e.useEffect)(()=>{s&&y&&E(!0)},[s,y]);let D=({eventName:gt,isButtonAnchor:Ae=!1})=>{it(),l({data:{status:"Submit Attempt",name:gt},event:"newsletter",_clear:!0}),Ae||g(!0)},it=()=>{if(!v||!a)return;let gt={name:i,location:a,section:gm,referring_page:v.pathname,destination_page:Bt.utils.prepareDestinationPath(h,v)};l({data:gt,event:"navigation",_clear:!0})};return(0,N.jsxs)("div",{"data-module":"newsletter-signup-promo",children:[_&&(0,N.jsx)(ie,{onClose:()=>E(!1),newsletterId:t}),(0,N.jsx)(fm,{...p,isOpen:f,newsletterId:t,buttonText:e||w,setIsOpen:g,title:i,layoutVariant:r,isButtonAnchor:F,subscribeUrl:h,isOnHomepage:n,onHandleSubscribeButtonClick:D,moduleLocation:a}),r==="header"&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("div",{className:Fe("Button",{small:!0},["NewsletterSignupButton"]),children:(0,N.jsx)(ct,{automationId:"headerSmallNewsletterButton",leftIcon:"Email",size:"small",variant:"primary-filled",onClick:()=>D({eventName:"main_menu",isButtonAnchor:F}),url:h,buttonLikeAnchor:F,target:"_blank",dataName:"subscribe-nav",dataActionType:"sign-up",children:w})}),(0,N.jsxs)("div",{className:Fe("Button",{medium:!0},["NewsletterSignupButton"]),children:[o,(0,N.jsx)(ct,{automationId:"headerMediumNewsletterButton",leftIcon:"Email",size:"medium",variant:"primary-filled",onClick:()=>D({eventName:"main_menu",isButtonAnchor:F}),url:h,buttonLikeAnchor:F,target:"_blank",dataName:"subscribe-nav",dataActionType:"sign-up",children:w})]}),f&&(0,N.jsx)(ie,{onClose:()=>g(!1),newsletterId:t})]}),r==="megaMenu"&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("div",{className:Fe("Button",{small:!0}),children:(0,N.jsx)(ct,{automationId:"megaMenuSmallNewsletterButton",className:Fe("WrappedButton"),leftIcon:"Email",size:"large",variant:"secondary-filled",onClick:()=>D({eventName:"mega_menu",isButtonAnchor:F}),url:h,buttonLikeAnchor:F,target:"_blank",dataName:"subscribe-hamburger",dataActionType:"sign-up",children:w})}),(0,N.jsxs)("div",{className:Fe("Button",{medium:!0}),children:[o,(0,N.jsx)(ct,{automationId:"megaMenuMediumNewsletterButton",leftIcon:"Email",size:"medium",variant:"secondary-filled",onClick:()=>D({eventName:"mega_menu",isButtonAnchor:F}),url:h,buttonLikeAnchor:F,target:"_blank",dataName:"subscribe-hamburger",dataActionType:"sign-up",children:w})]})]}),r==="footer"&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(ct,{automationId:"footerNewsletterButton",size:"medium",variant:"primary-filled",onClick:()=>D({eventName:"footer_menu",isButtonAnchor:F}),url:h,buttonLikeAnchor:F,target:"_blank",dataName:"subscribe-footer",dataActionType:"sign-up",children:e||w}),f&&(0,N.jsx)(ie,{onClose:()=>g(!1),newsletterId:t})]})]})},fm=({title:e,message:t,subBrandId:r,className:o,variant:s="vertical",mode:n,layoutVariant:a,buttonText:i,isOpen:p,newsletterId:l,setIsOpen:c,isButtonAnchor:m,subscribeUrl:y,isOnHomepage:f,onHandleSubscribeButtonClick:g,moduleLocation:_})=>{let E=f?"home_page_module":"newsletter_module";return _==="sidebar"&&s==="horizontal"&&(s=`${s}_${_}`),(0,N.jsxs)(N.Fragment,{children:[a==="banner"&&(0,N.jsxs)(Ul,{title:e,message:t,variant:s,className:o,mode:n,children:[(0,N.jsx)(ct,{automationId:"bannerNewsletterbutton",size:"medium",variant:n==="dark"?"secondary-filled":"primary-filled",onClick:()=>g({eventName:E,isButtonAnchor:m}),url:y,buttonLikeAnchor:m,target:"_blank",dataName:"subscribe-banner",dataActionType:"sign-up",children:i}),p&&(0,N.jsx)(ie,{onClose:()=>c(!1),newsletterId:l,subBrandId:r})]}),a==="bannerTopicPage"&&(0,N.jsxs)(kl,{title:e,message:t,variant:s,className:o,mode:n,children:[(0,N.jsx)(ct,{automationId:"bannerTopicPageNewsletterButton",size:"medium",variant:n=="dark"?"secondary-filled":"primary-filled",onClick:()=>g({eventName:"newsletter_module",isButtonAnchor:m}),url:y,buttonLikeAnchor:m,target:"_blank",dataName:"subscribe-banner",dataActionType:"sign-up",children:i}),p&&(0,N.jsx)(ie,{onClose:()=>c(!1),newsletterId:l,subBrandId:r})]})]})},xm=e=>{switch(e){case"aibusiness":case"iot":return"STAY UPDATED";case"informationweek":case"darkreading":case"itprotoday":case"datacenterknowledge":case"wardsauto":case"networkcomputing":case"americancityandcounty":case"urgentcomm":return"Newsletter Sign-Up";case"beefmagazine":case"feedstuffs":case"nationalhogfarmer":case"naturalproductsinsider":case"foodbeverageinsider":case"newhope":case"batterytech":case"designnews":case"powderbulksolids":case"packagingdigest":case"plasticstoday":case"mddi":case"organicproducenetwork":case"supplysidesj":case"supplysidefbj":return"Subscribe Today";case"constructionext":case"insideselfstorage":return"Sign Up Today";case"gamedeveloper":case"connectingafrica":case"bioxconomy":return"Stay Updated";case"bioprocessinternational":return"Subscribe";case"supermarketnews":case"restauranthospitality":case"foodservicedirector":return"Sign Up";case"specialevents":case"catersource":return"Sign Up Now";case"theaestheticguide":return"Sign Me Up";default:return"Subscribe"}};export{Ur as a,Cm as b,Em as c,Zo as d,Al as e,Ol as f,tg as g}; /*! Bundled license information: classnames/index.js: (*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames *) */