{"version":3,"file":"js/51.main.min.js","mappings":";;;;;;;;;;;;AAEO,IAAMA,oBAAoB;EAAA,IAAAC,IAAA,GAAAC,iBAAA,cAAAC,kBAAA,CAAAC,IAAA,CAAG,SAAAC,QAAA;IAAA,IAAAC,kBAAA;MAAAC,eAAA;MAAAC,KAAA,GAAAC,SAAA;IAAA,OAAAN,kBAAA,CAAAO,IAAA,UAAAC,SAAAC,QAAA;MAAA;QAAA,QAAAA,QAAA,CAAAC,IAAA,GAAAD,QAAA,CAAAE,IAAA;UAAA;YAAOR,kBAAkB,GAAAE,KAAA,CAAAO,MAAA,QAAAP,KAAA,QAAAQ,SAAA,GAAAR,KAAA,MAAG,CAAC,CAAC;YAAAI,QAAA,CAAAE,IAAA;YAAA,OAE/B,qGAAgE;UAAA;YAAzFP,eAAe,GAAAK,QAAA,CAAAK,IAAA,CAA4EV,eAAe;YAEhHD,kBAAkB,CAAC,oBAAoB,CAAC,GAAG,mCAAmC;YAC9EA,kBAAkB,CAAC,eAAe,CAAC,GAAG,SAAS;YAACM,QAAA,CAAAE,IAAA;YAAA,OACnCP,eAAe,CAACD,kBAAkB,CAAC;UAAA;YAAA,OAAAM,QAAA,CAAAM,MAAA,WAAAN,QAAA,CAAAK,IAAA;UAAA;UAAA;YAAA,OAAAL,QAAA,CAAAO,IAAA;QAAA;MAAA;IAAA,GAAAd,OAAA;EAAA,CAyInD;EAAA,gBA/IYL,oBAAoBA,CAAA;IAAA,OAAAC,IAAA,CAAAmB,KAAA,OAAAX,SAAA;EAAA;AAAA,GA+IhC","sources":["webpack://smetio/./developement/js/functions/apps/website/updatePartsOfWebsite.js"],"sourcesContent":["\r\n\r\nexport const updatePartsOfWebsite = async (functionParameters = {}) => {\r\n\r\n const recursiveUpdate = (await import(/* webpackPrefetch: true */ \"../general/recursiveUpdate\")).recursiveUpdate;\r\n\r\n functionParameters[\"submissionFuncPath\"] = \"apps/website/updatePartsOfWebsite\";\r\n functionParameters[\"sideMenuToUse\"] = \"website\";\r\n return await recursiveUpdate(functionParameters);\r\n\r\n // const axios = (await import(/* webpackPrefetch: true */ `axios`)).default;\r\n\r\n // const displayAndStoreSmartboxWithPreloader = (await import(/* webpackPrefetch: true */ `../../display/displayAndStoreSmartboxWithPreloader.js`)).displayAndStoreSmartboxWithPreloader;\r\n\r\n // const { appClass, isCopying, token, submissionData, modelPath, smartboxStorageName, sideMenuToUse, submitText, title } = functionParameters;\r\n // let { url } = functionParameters;\r\n // const smartBoxTitle = title || \"\";\r\n\r\n // // const smartBoxTitle = treatmentName;\r\n\r\n // const { preloader, smetioSmartbox, backBtnIsClicked } = await displayAndStoreSmartboxWithPreloader({ title: smartBoxTitle, smartboxStorageName });\r\n\r\n\r\n // if (!(\"values\" in window[smartboxStorageName])) window[smartboxStorageName][\"values\"] = {};\r\n\r\n // const { formData } = submissionData;\r\n // for (const key in formData) { window[smartboxStorageName][\"values\"][key] = formData[key]; };\r\n\r\n // submissionData[\"values\"] = window[smartboxStorageName][\"values\"];\r\n\r\n // const previousPreloader = functionParameters.preloader;\r\n // previousPreloader.show();\r\n\r\n // const previousSmartbox = functionParameters.smetioSmartbox;\r\n // previousSmartbox.hide();\r\n\r\n // const apiEndPoint = window.apiEndPoint;\r\n // const language = window.userLanguage;\r\n // const sideMenuItems = window.currentSideMenuItems;\r\n\r\n // preloader.show();\r\n\r\n\r\n // // const {formData } = submissionData;\r\n // // for (const key in formData) { window[smartboxStorageName][\"values\"][nextStep][key] = formData[key]; };\r\n // for (const key in formData) { window[smartboxStorageName][\"values\"][key] = formData[key]; };\r\n // // if(treatmentName) window[smartboxStorageName][\"values\"][\"treatmentName\"] = treatmentName;\r\n // submissionData[\"values\"] = window[smartboxStorageName][\"values\"];\r\n\r\n\r\n // url = url || `${apiEndPoint}/apps/${appClass.appUserInterface}/website/update/${language}`;\r\n\r\n // const res = await axios.post(url, { modelPath, ...submissionData }).then(async (response) => {\r\n\r\n // let model = response.data;\r\n\r\n // if (model.error) { previousSmartbox.show(); return window.smetioVisitor.showNotification({ type: \"danger\", body: [{ message: model.msg }] }); };\r\n\r\n // const { nextStep, modelPath, instructionTitle, instructionSubtitle, token, updateCompleted, refreshPage, submitText } = model;\r\n // model = model.model;\r\n\r\n // // previousSmartbox.close();\r\n\r\n // // const {formData } = submissionData;\r\n // // // for (const key in formData) { window[smartboxStorageName][\"values\"][nextStep][key] = formData[key]; };\r\n // // for (const key in formData) { window[smartboxStorageName][\"values\"][key] = formData[key]; };\r\n // // if(treatmentName) window[smartboxStorageName][\"values\"][\"treatmentName\"] = treatmentName;\r\n // // submissionData[\"values\"] = window[smartboxStorageName][\"values\"];\r\n\r\n // const getCongratulationsSmartbox = (await import(/* webpackPrefetch: true */ `../../get/getCongratulationsSmartbox.js`)).getCongratulationsSmartbox;\r\n\r\n // const newVersionOfConvertModelToInputs = (await import(/* webpackPrefetch: true */ `./../../../classes/universal_methods/newVersionOfConvertModelToInputs.js`)).newVersionOfConvertModelToInputs;\r\n\r\n // if (refreshPage == true) sideMenuItems[sideMenuToUse || \"website\"].onClick();\r\n\r\n // if (nextStep == \"congratutions\" || updateCompleted == true) {\r\n\r\n // smetioSmartbox.close();\r\n // return await getCongratulationsSmartbox({ txt: instructionSubtitle });\r\n\r\n // };\r\n\r\n\r\n // const confirmationInput = await newVersionOfConvertModelToInputs({\r\n // model,\r\n // withSubmitButton: nextStep == \"congratutions\" ? false : true,\r\n // withFullContainerDiv: true,\r\n // submitText: submitText || \"txt38\",\r\n // doNotShowInstruction: instructionSubtitle ? false : true,\r\n // instructionTitle: instructionTitle || \"\",\r\n // instructionSubtitle: instructionSubtitle || \"\",\r\n // submissionFunctionDetails: {\r\n // // functionPath: \"apps/treatments/obtainModelForWhatBodyPart\",\r\n // functionPath: `apps/website/updatePartsOfWebsite`,\r\n // functionParameters: {\r\n // appClass,\r\n // preloader,\r\n // smetioSmartbox,\r\n // modelPath,\r\n // smartboxStorageName,\r\n // token,\r\n // isCopying,\r\n // url,\r\n // sideMenuToUse,\r\n // title\r\n\r\n // },\r\n // // addToSubmissionData: isCopying == true ? {} : {token, treatmentName}\r\n // addToSubmissionData: { isCopying, token }\r\n // },\r\n // showBackBtn: nextStep == \"addToSkillset\" || nextStep == \"congratutions\" ? false : true,\r\n // onBackBtnClicked: () => {\r\n\r\n // backBtnIsClicked();\r\n // // window[\"bodyPartsOptionsSmartbox\"].close();\r\n // // window[\"whatBodyPartModelSmartbox\"].show();\r\n // },\r\n // });\r\n\r\n // const newPreloaderDisplay = preloader.render();\r\n\r\n // const content = `\r\n // ${newPreloaderDisplay}\r\n // ${confirmationInput}\r\n // `;\r\n // preloader.hide();\r\n\r\n // smetioSmartbox.updateContent(content);\r\n\r\n\r\n // }).catch((error) => {\r\n\r\n // console.log(error);\r\n // // backBtnIsClicked();\r\n // previousSmartbox.show();\r\n // return window.smetioVisitor.showNotification({ type: \"danger\", body: [{ message: \"txt423\" }] });\r\n\r\n // }).finally(() => {\r\n // // preloader.hide();\r\n // previousPreloader.hide();\r\n // });\r\n\r\n\r\n\r\n\r\n};\r\n"],"names":["updatePartsOfWebsite","_ref","_asyncToGenerator","regeneratorRuntime","mark","_callee","functionParameters","recursiveUpdate","_args","arguments","wrap","_callee$","_context","prev","next","length","undefined","sent","abrupt","stop","apply"],"sourceRoot":""}