/*! For license information please see 24.bundle.019027.js.LICENSE.txt */ "use strict";(self.webpackChunknew_whitelabel=self.webpackChunknew_whitelabel||[]).push([[24],{87817:(t,e,r)=>{r.d(e,{Z:()=>J});var n=r(80101),o=r(55013),i=r(78113),c=r(82998),u=r(26053);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function a(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};$(W(c.prototype),"initialize",this).call(this,L(L({},t),{},{View:I,Model:D})),this.model.setRedirectPerformerId(t.redirectPerformerId)}},{key:"isOverlayIgnored",get:function(){return!0}},{key:"viewEvents",get:function(){return{closeButtonClick:"selfClose","after:render":"onRender"}}},{key:"createView",value:function(t){$(W(c.prototype),"createView",this).call(this,t),this.view.isPreRendered()&&this.createFormComponent(),this.registerViewEvents()}},{key:"onRender",value:function(){this.createFormComponent()}},{key:"createFormComponent",value:function(){this.destroyFormComponent();var t=this.view.getFormElement();this.refreshUsernameComponent=new E({$el:t}),this.refreshUsernameComponent.on("form:submitErrors",this.onRefreshUsernameError.bind(this)),this.refreshUsernameComponent.on("form:submitSuccess",this.onRefreshUsernameSuccess.bind(this))}},{key:"onRefreshUsernameSuccess",value:function(){!this.isPage&&window.history.length>1?(this.selfClose(),setTimeout((function(){return window.location.reload()}),1)):this.model.getRedirectPerformerId()?window.location.href=n.Z.resolve(n.Z.getRequiredChatPageRoute(),{performerId:this.model.getRedirectPerformerId()},{}):window.location.href="/"}},{key:"destroyFormComponent",value:function(){this.refreshUsernameComponent&&this.refreshUsernameComponent.remove()}},{key:"onRefreshUsernameError",value:function(t){this.model.clear({silent:!0}),this.model.set(t,{silent:!0})}}],r&&M(e.prototype,r),o&&M(e,o),Object.defineProperty(e,"prototype",{writable:!1}),c}(o.Z)},20776:(t,e,r)=>{r.d(e,{Z:()=>_});var n=r(55013);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var r=0;r{r.d(e,{Z:()=>Y});var n=r(36760),o=r(55013),i=r(78113),c=r(82998),u=r(26053);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function a(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};q(K(c.prototype),"initialize",this).call(this,M(M({},t),{},{View:U,Model:D}))}},{key:"createView",value:function(t){q(K(c.prototype),"createView",this).call(this,t),this.createFormComponent(),this.registerSectionButtons(),this.registerViewEvents()}},{key:"createFormComponent",value:function(){var t=this;this.destroyFormComponent();var e=this.view.getFormElements();this.forms={},Object.keys(e).forEach((function(r){var n=e[r];if(n.length){var o=new E({$el:n,isSystemErrorDisabled:!0});o.on("form:submitSuccess",t.onFormSubmitSuccess.bind(t)),o.on("form:submitErrors",t.onFormSubmitErrors.bind(t)),t.forms[r]=o}}))}},{key:"registerSectionButtons",value:function(){var t=this.view.getRowEndButtons(),e=this.view.getFormCancelButtons();t.on("click",this.onRowEndButtonClick.bind(this)),e.on("click",this.onFormCancelButtonClick.bind(this))}},{key:"onRowEndButtonClick",value:function(t){t.preventDefault(),this.view.openSection(t.target.getAttribute("data-section"))}},{key:"onFormCancelButtonClick",value:function(t){t.preventDefault(),this.view.closeSection(t.target.getAttribute("data-section"))}},{key:"onFormSubmitSuccess",value:function(t){n.Z.getInstance().showMessage({type:"notice",content:t.message}),t.data&&t.data.command&&"resetPage"===t.data.command?this.view.resetPage():this.view.closeActiveSection()}},{key:"onFormSubmitErrors",value:function(t){var e=t.errors.general;e&&n.Z.getInstance().showMessage({type:"error",content:e})}},{key:"destroyFormComponent",value:function(){this.settingAccountFormComponent&&this.settingAccountFormComponent.remove()}}],r&&$(e.prototype,r),o&&$(e,o),Object.defineProperty(e,"prototype",{writable:!1}),c}(o.Z)},53232:(t,e,r)=>{r.d(e,{Z:()=>K});var n=r(36760),o=r(55013),i=r(78113),c=r(82998),u=r(80101),f=r(26053);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function l(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};H(J(c.prototype),"initialize",this).call(this,V(V({},t),{},{View:z,Model:x}))}},{key:"createView",value:function(t){H(J(c.prototype),"createView",this).call(this,t),this.createFormComponent(),this.registerViewEvents()}},{key:"createFormComponent",value:function(){this.destroyFormComponent();var t=this.view.getFormElement();this.settingGeneralFormComponent=new _({$el:t,isSystemErrorDisabled:!0,isSaveByChangeEnabled:!0}),this.settingGeneralFormComponent.on("form:submitSuccess",this.onFormSubmitSuccess.bind(this)),this.settingGeneralFormComponent.on("form:submitErrors",this.onFormSubmitErrors.bind(this))}},{key:"onFormSubmitSuccess",value:function(t){n.Z.getInstance().showMessage({type:"notice",content:t.message}),t.data&&t.data.command&&"reload"===t.data.command&&this.view.reloadPage()}},{key:"onFormSubmitErrors",value:function(t){var e=t.errors.general;e&&n.Z.getInstance().showMessage({type:"error",content:e})}},{key:"destroyFormComponent",value:function(){this.settingGeneralFormComponent&&this.settingGeneralFormComponent.remove()}}],r&&G(e.prototype,r),o&&G(e,o),Object.defineProperty(e,"prototype",{writable:!1}),c}(o.Z)},56008:(t,e,r)=>{r.d(e,{Z:()=>Tt});var n=r(55013);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var r=0;r=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var f=n.call(c,"catchLoc"),a=n.call(c,"finallyLoc");if(f&&a){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),D(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;D(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function k(t,e,r,n,o,i,c){try{var u=t[i](c),f=u.value}catch(t){return void r(t)}u.done?e(f):Promise.resolve(f).then(n,o)}function T(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function c(t){k(i,n,o,c,u,"next",t)}function u(t){k(i,n,o,c,u,"throw",t)}c(void 0)}))}}var C=function(){var t=T(R().mark((function t(){var e;return R().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new g.Z({buildRoute:function(){return"/chat-type/invisible-chat-mode"},baseUrl:window.config.apiGatewayRouteWithUserChatApi}),t.next=3,e.sendRequest({},"GET");case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),D=(0,O.EZ)().toLowerCase(),x=function(){var t=T(R().mark((function t(e){var r;return R().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=new g.Z({contentType:"application/x-www-form-urlencoded",baseUrl:window.config.apiGatewayRouteWithUserChatApi,buildRoute:function(){return"/chat-type/invisible-chat-mode"},buildParamList:function(){return E({},D&&{siteId:D})},buildBody:function(t){return t}}),t.next=3,r.sendRequest({status:e},"POST");case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),B=window.config.messages,F=B.myBenefitsSettingsChangeSuccess,N=B.myBenefitsSettingsChangeError,Z=function(){w.Z.getInstance().showMessage({type:"success",title:F,close:!0,timeout:5e3})},A=r(52545),I=r(48127);const z=function(t){var e=t.children,r=t.isOpen,n=t.setIsOpen;return(0,l.useEffect)((function(){var t=setTimeout((function(){n(!1)}),5e3);return function(){clearTimeout(t)}}),[r]),e?l.createElement(I.J,{isOpen:r,transitionDuration:0,position:A.Ly.RIGHT,usePortal:!1,enforceFocus:!1,autoFocus:!1,target:l.createElement("span",null),content:e}):null};var U,L,V,M=r(60838);function G(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var $,H=M.default.span(U||(U=G(["\n display: flex;\n margin-right: 10px;\n"]))),q=M.default.div(L||(L=G(["\n display: flex;\n align-items: center;\n padding-left: 32px;\n"]))),W=M.default.div(V||(V=G(["\n padding: 10px 0 10px 32px;\n"])));function J(t){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},J(t)}function K(){K=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",f=i.toStringTag||"@@toStringTag";function a(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{a({},"")}catch(t){a=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof h?e:h,c=Object.create(i.prototype),u=new C(n||[]);return o(c,"_invoke",{value:_(t,r,u)}),c}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",y="suspendedYield",b="executing",v="completed",m={};function h(){}function d(){}function g(){}var w={};a(w,c,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(D([])));j&&j!==r&&n.call(j,c)&&(w=j);var P=g.prototype=h.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){a(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,c,u){var f=s(t[o],t,i);if("throw"!==f.type){var a=f.arg,l=a.value;return l&&"object"==J(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(l).then((function(t){a.value=t,c(a)}),(function(t){return r("throw",t,c,u)}))}u(f.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function _(e,r,n){var o=p;return function(i,c){if(o===b)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw c;return{value:t,done:!0}}for(n.method=i,n.arg=c;;){var u=n.delegate;if(u){var f=R(u,n);if(f){if(f===m)continue;return f}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=b;var a=s(e,r,n);if("normal"===a.type){if(o=n.done?v:y,a.arg===m)continue;return{value:a.arg,done:n.done}}"throw"===a.type&&(o=v,n.method="throw",n.arg=a.arg)}}}function R(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,R(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=s(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var c=i.arg;return c?c.done?(r[e.resultName]=c.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function D(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var f=n.call(c,"catchLoc"),a=n.call(c,"finallyLoc");if(f&&a){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:D(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Y(t,e,r,n,o,i,c){try{var u=t[i](c),f=u.value}catch(t){return void r(t)}u.done?e(f):Promise.resolve(f).then(n,o)}function X(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function c(t){Y(i,n,o,c,u,"next",t)}function u(t){Y(i,n,o,c,u,"throw",t)}c(void 0)}))}}function Q(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,c,u=[],f=!0,a=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;f=!1}else for(;!(f=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);f=!0);}catch(t){a=!0,o=t}finally{try{if(!f&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(a)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return tt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tt(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{};Et(kt(i.prototype),"initialize",this).call(this,Ot(Ot({},t),{},{View:dt,Model:a})),this.view.render()}}],r&&Pt(e.prototype,r),n&&Pt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(n.Z)},97247:(t,e,r)=>{r.d(e,{Z:()=>pe});var n=r(26745),o=r(36760),i=r(42238),c=r(55013),u=r(78113),f=r(82998),a=r(80101);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{};fe(se(f.prototype),"initialize",this).call(this,oe(oe({},t),{},{View:ee,Model:Ht})),this.registerViewEvents(),this.registerMediatorEvents(),this.createEliteRankSettingsFormComponent(),this.createConsentSettingsFormComponent(),this.createMessengerSettingsFormComponent(),this.createDataDownloadFormComponent()}},{key:"pageId",get:function(){return i.HK}},{key:"viewEvents",get:function(){return{"action-button:click":"onActionButtonClick"}}},{key:"mediatorEvents",get:function(){return{"confirm-action:confirm":"onConfirmActionConfirm"}}},{key:"createConsentSettingsFormComponent",value:function(){var t=this.view.getConsentSettingsFormElement();this.consentSettingsformComponent=new B({$el:t,isSystemErrorDisabled:!0,isSaveByChangeEnabled:!0}),this.consentSettingsformComponent.on("form:submitSuccess",this.onFormSubmitSuccess.bind(this)),this.consentSettingsformComponent.on("form:submitErrors",this.onFormSubmitError.bind(this)),this.consentSettingsformComponent.on("form:changePersonalizedContent",this.onChangePersonalizedContent.bind(this)),this.consentSettingsformComponent.on("form:disableSensitiveData",this.onDisableSensitiveData.bind(this))}},{key:"createEliteRankSettingsFormComponent",value:function(){this.eliteRankSettingsFormComponent=new gt({$el:this.view.getEliteRankSettingsFormElement(),isSystemErrorDisabled:!0,isSaveByChangeEnabled:!0}),this.eliteRankSettingsFormComponent.on("form:submitSuccess",this.onFormSubmitSuccess.bind(this)),this.eliteRankSettingsFormComponent.on("form:submitErrors",this.onFormSubmitError.bind(this))}},{key:"createMessengerSettingsFormComponent",value:function(){this.messengerSettingsFormComponent=new Ut({$el:this.view.getMessengerSettingsFormElement(),isSaveByChangeEnabled:!0,isSystemErrorDisabled:!0}),this.messengerSettingsFormComponent.on("form:submitSuccess",this.onFormSubmitSuccess.bind(this)),this.messengerSettingsFormComponent.on("form:submitErrors",this.onFormSubmitError.bind(this))}},{key:"onFormSubmitSuccess",value:function(t){var e=t.message;o.Z.getInstance().showMessage({type:"notice",content:e})}},{key:"onFormSubmitError",value:function(t){var e=t.errors.general;e&&o.Z.getInstance().showMessage({type:"error",content:e})}},{key:"onConfirmActionConfirm",value:function(t){t.type===i.Sr&&this.consentSettingsformComponent.sendDisableSensitiveData()}},{key:"onDisableSensitiveData",value:function(){n.IE.getInstance().trigger("consent-settings:request",{flow:i.Sr,modelData:window.config.consentSettings.actions[i.Sr]})}},{key:"onChangePersonalizedContent",value:function(t){n.IE.getInstance().trigger("personalized-content:request",t)}},{key:"createDataDownloadFormComponent",value:function(){this.dataDownloadFormComponent&&this.dataDownloadFormComponent.remove();var t=this.view.getDataDownloadFormElement();this.dataDownloadFormComponent=new X({$el:t}),this.dataDownloadFormComponent.on("form:submitSuccess",this.onDataDownloadFormSubmitSuccess.bind(this)),this.dataDownloadFormComponent.on("form:submitErrors",this.onDataDownloadFormSubmitError.bind(this))}},{key:"onDataDownloadFormSubmitSuccess",value:function(){this.view.showDownloadDataSuccessMessage()}},{key:"onDataDownloadFormSubmitError",value:function(t){this.model.set(t,{silent:!0})}},{key:"handleResponse",value:function(t){var e=t.success,r=t.message,n=t.errors,o=t.form_token,i=r;n&&n.general?i=n.general:this.setFormToken(o),this.triggerNotification(e?"notice":"error",i)}},{key:"triggerNotification",value:function(t,e){n.IE.getInstance().trigger("showNotification",{type:t,content:e})}},{key:"onActionButtonClick",value:function(t){var e=t.type;this.sendConfirmActionRequest(e)}},{key:"sendConfirmActionRequest",value:function(t){t===i.k0&&n.IE.getInstance().trigger("consent-settings:request",{flow:i.k0,modelData:window.config.consentSettings.actions[i.k0]})}}],r&&ce(e.prototype,r),c&&ce(e,c),Object.defineProperty(e,"prototype",{writable:!1}),f}(c.Z)},65942:(t,e,r)=>{r.d(e,{Z:()=>X});var n=r(36760),o=r(55013),i=r(78113),c=r(82998),u=r(80101),f=r(26053);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function l(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};W(Y(c.prototype),"initialize",this).call(this,G(G({},t),{},{View:L,Model:x}))}},{key:"createView",value:function(t){W(Y(c.prototype),"createView",this).call(this,t),this.createFormComponent(),this.registerViewEvents()}},{key:"createFormComponent",value:function(){this.destroyFormComponent();var t=this.view.getFormElement();this.settingSmartbuyFormComponent=new _({$el:t,isSystemErrorDisabled:!0,isSaveByChangeEnabled:!0}),this.settingSmartbuyFormComponent.on("form:submitSuccess",this.onFormSubmitSuccess.bind(this)),this.settingSmartbuyFormComponent.on("form:submitErrors",this.onFormSubmitErrors.bind(this))}},{key:"onFormSubmitSuccess",value:function(t){n.Z.getInstance().showMessage({type:"notice",content:t.message}),t.data&&t.data.command&&("enablePackages"===t.data.command?this.view.tooglePackages(!0):"disablePackages"===t.data.command&&this.view.tooglePackages(!1))}},{key:"onFormSubmitErrors",value:function(t){var e=t.errors.general;e&&n.Z.getInstance().showMessage({type:"error",content:e})}},{key:"destroyFormComponent",value:function(){this.settingSmartbuyFormComponent&&this.settingSmartbuyFormComponent.remove()}}],r&&H(e.prototype,r),o&&H(e,o),Object.defineProperty(e,"prototype",{writable:!1}),c}(o.Z)},8981:(t,e,r)=>{r.d(e,{Z:()=>K});var n=r(55013);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{};H(J(i.prototype),"initialize",this).call(this,V(V({},t),{},{View:z,Model:p})),this.view.render()}}],r&&G(e.prototype,r),n&&G(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(n.Z)},84294:(t,e,r)=>{r.d(e,{Z:()=>P});var n=r(55013),o=r(95917),i=r(80101);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){for(var r=0;r{r.d(e,{Z:()=>Et});var n=r(35921),o=r(26745),i=r(93091),c=r(27347),u=r(34630),f=r(42238),a=r(57343),l=r(98496),s=r(80101),p=r(66460),y=r(55013),b=r(78113),v=r(82998),m=r(26053),h=r(72760);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function w(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};Ot(St(v.prototype),"initialize",this).call(this,ht(ht({},t),{},{View:yt,Model:ct}))}},{key:"isOverlayIgnored",get:function(){return!0}},{key:"viewEvents",get:function(){return{closeButtonClick:"selfClose","after:render":"onRender"}}},{key:"pageId",get:function(){return f.cM}},{key:"createView",value:function(t){Ot(St(v.prototype),"createView",this).call(this,t),this.view.isPreRendered()&&this.createFormComponent(),this.registerViewEvents()}},{key:"onRender",value:function(){this.createFormComponent()}},{key:"createFormComponent",value:function(){this.destroyFormComponent();var t=this.view.getFormElement();this.signupFormComponent=new tt({$el:t,captchaAction:"signup"}),this.listenTo(this.signupFormComponent,"form:validationError",this.onFormErrors.bind(this)),this.listenTo(this.signupFormComponent,"form:submitErrors",this.onSignupError.bind(this)),this.listenTo(this.signupFormComponent,"form:submitSuccess",this.onFormSubmitSuccess.bind(this)),i.render(n.createElement(c.Z,{small:!0}),this.view.getSpinnerElement().get(0))}},{key:"errorsToString",value:function(t){return t.system?"internal error":t.captcha?"captcha error":Object.keys(t).flatMap((function(e){return t[e].map((function(t){return"".concat(e,": ").concat(t)}))}))}},{key:"onFormErrors",value:function(t){var e=this.errorsToString(t),r="".concat(a.C$," - ").concat(e);this.sendDataToWebmasterGoogleAnalytics(r)}},{key:"onFormSubmitSuccess",value:function(t){if(this.setGoogleAnalyticsUserData(t),this.sendDataToGoogleAnalytics(a.Gz),this.sendDataToWebmasterGoogleAnalytics(a.Gz),o.IE.getInstance().trigger("signup:success"),(0,l.Hh)(),t&&t.data&&t.data.isFreeRegEnabled){if(o.IE.getInstance().trigger("change:userType",t.data),!this.handlePotentialResponseActionAfterSignup(t)){var e=u.Z.getActionFromResponse(t).action;(0,p.kR)()&&"giftbox-preclaim"===e&&s.Z.resolveAndNavigate("Gift/Promo",{},{trigger:!0}),this.selfClose()}}else window.location.href=s.Z.resolve("Credit/Index");window.dispatchEvent(new CustomEvent(f.v0))}},{key:"handlePotentialResponseActionAfterSignup",value:function(t){return!!t&&u.Z.getInstance().handle(t)}},{key:"destroyFormComponent",value:function(){this.signupFormComponent&&this.signupFormComponent.remove()}},{key:"onSignupError",value:function(t){this.sendDataToGoogleAnalytics(a.C$),this.onFormErrors(t.errors)}},{key:"setGoogleAnalyticsUserData",value:function(t){window.config.googleAnalyticsUserId=t.data.googleAnalyticsUserId}},{key:"sendDataToGoogleAnalytics",value:function(t){var e=window.config.activePageId===f.Je?a.Ir:a.iq;window.config.googleAnalyticsUserId&&window.dataLayer.push({userId:window.config.googleAnalyticsUserId}),window.dataLayer.push({event:a.yt,eventCategory:e,eventAction:a.jD,eventLabel:t,eventValue:0,eventInteraction:!0})}},{key:"sendDataToWebmasterGoogleAnalytics",value:function(t){var e=window.config.activePageId===f.Je?a.Ir:a.iq;bt.Z.trackEvent(a.JC,a.Wf,e,a.jD,t)}}],r&>(e.prototype,r),y&>(e,y),Object.defineProperty(e,"prototype",{writable:!1}),v}(y.Z)},28819:(t,e,r)=>{r.d(e,{Z:()=>O});var n=r(95917),o=r(55013);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function c(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};h(w(c.prototype),"initialize",this).call(this,y(y({},t),{},{View:l,Model:n.Z})),this.isOverlayIgnored=t.isOverlayIgnored}}],r&&v(e.prototype,r),o&&v(e,o),Object.defineProperty(e,"prototype",{writable:!1}),c}(o.Z)},90688:(t,e,r)=>{r.d(e,{Z:()=>N});var n=r(83863),o=r.n(n),i=r(36760),c=r(80101),u=r(55013),f=r(86594),a=r(78223);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(t,e){for(var r=0;r").concat(r.enjoyUnlimitedPrivateSessions):"".concat(r.activationHeading,"
").concat(r.enjoyUnlimitedPrivateShows)}}),m.createElement("ul",{className:"smartbuy-activation-info-list"},m.createElement("li",{className:"icon--butterfly"},m.createElement("div",{className:"smartbuy-activation-info-list-items"},m.createElement("div",{className:"smartbuy-activation-info-list-item--preference"},e?r.interruptionFree:r.noInterruptions),m.createElement("div",{className:"smartbuy-activation-info-list-item--explanation"},e?r.privateSessionsNoPauses:r.privateChatsNoPauses))),m.createElement("li",{className:"icon--couch"},m.createElement("div",{className:"smartbuy-activation-info-list-items"},m.createElement("div",{className:"smartbuy-activation-info-list-item--preference"},e?r.easyToUse:r.comfort),m.createElement("div",{className:"smartbuy-activation-info-list-item--explanation"},e?r.autoTopUpBalance:r.autoTopUp))),m.createElement("li",{className:e?"":"icon--clock"},e&&m.createElement("svg",{width:"54",height:"40"},m.createElement("use",{xlinkHref:"#svgicon-fortuna-secure"})),m.createElement("div",{className:"smartbuy-activation-info-list-items"},m.createElement("div",{className:"smartbuy-activation-info-list-item--preference"},e?r.secure:r.saveTime),m.createElement("div",{className:"smartbuy-activation-info-list-item--explanation"},e?r.securePayment:r.noWaitForTransactions)))),m.createElement("div",{className:"btn-container"},m.createElement(g.Z,{onClick:o,onStatusChange:i})),m.createElement("p",{className:"smartbuy-activation-info-footer"},m.createElement("a",{href:"#",className:"close",onClick:n},e?r.maybeLater:r.later),m.createElement("br",null)))))))},R=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&P(t,e)}(i,t);var e,r,n,o=S(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return e=i,r=[{key:"render",value:function(){var t=this,e=function(e){return function(){for(var r=arguments.length,n=new Array(r),o=0;o{r.d(e,{Z:()=>R});var n=r(55013);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};window.config.isLoadedFromOneFrontend?console.info("This is a OneFrontend page that needs no backbone controller"):P(_(i.prototype),"initialize",this).call(this,g(g({},t),{},{View:m,Model:a}))}}],r&&O(e.prototype,r),n&&O(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(n.Z)},17125:(t,e,r)=>{r.d(e,{Z:()=>R});var n=r(55013);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};window.config.isLoadedFromOneFrontend?console.info("This is a OneFrontend page that needs no backbone controller"):P(_(i.prototype),"initialize",this).call(this,g(g({},t),{},{View:m,Model:a}))}}],r&&O(e.prototype,r),n&&O(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(n.Z)}}]);