"use strict";(self.webpackChunkapp_container=self.webpackChunkapp_container||[]).push([[3160],{3160:(e,t,i)=>{i.a(e,(async(e,o)=>{try{i.r(t),i.d(t,{SetCustomFieldValueAjax:()=>d});const{API:e}=await i.e(118).then(i.bind(i,118)).then((e=>e)),{GetLocalStorage:n,RemoveLocalStorage:l,SetLocalStorage:s}=await i.e(4326).then(i.bind(i,4326)).then((e=>e)),a="custom_fields_data",d=()=>{var t,i,o,d;if("customers/register"===(null===(t=window)||void 0===t||null===(t=t.flitsThemeAppExtensionObjects)||void 0===t||null===(t=t.request)||void 0===t?void 0:t.page_type))return;let u=n(a);if(null==u)return;let r=u.visited_path_history;return void 0!==r&&r.includes("/account/register")?"captcha"===(null===(i=window)||void 0===i||null===(i=i.flitsThemeAppExtensionObjects)||void 0===i||null===(i=i.request)||void 0===i?void 0:i.page_type)?(r.push(window.location.pathname),u.visited_path_history=r,s(a,u),!0):void(-1!==(null===(o=window)||void 0===o||null===(o=o.flitsThemeAppExtensionObjects)||void 0===o||null===(o=o.customer)||void 0===o?void 0:o.customer_id)&&"-1"!==(null===(d=window)||void 0===d||null===(d=d.flitsThemeAppExtensionObjects)||void 0===d||null===(d=d.customer)||void 0===d?void 0:d.customer_id)&&(l(a),e.myprofile.save_custom_fields_data({...u,from_page:"register"}).then((e=>{})).catch((e=>{})))):void 0};o()}catch(e){o(e)}}),1)}}]);