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ACA;EACH;EACA;EACA;;EAEA;EACA;;EAEA;;EAEA;;EAEG;EACA;EACA;EACA;EACA;EACA;;EAEA;;EAEA;;EAEA;;EAEA;;EAGA;;EAEH;;EAEA;;EAEA;;EAEA;AAAA;AAGA","sources":["webpack://smetio/./developement/js/functions/forms/showFormInputExplannation.js","webpack://smetio/./developement/js/functions/get/smetioWiki/getSmetioWikiSmartBox.js"],"sourcesContent":["\nimport {globalVar} from \n \"./../../variables/global_variables.js\"; \n\nimport {checkIfItIsEmpty} from \n \"./../checks/checkIfItIsEmpty.js\";\n\nimport {getSmetioWikiSmartBox} from \n \"./../get/smetioWiki/getSmetioWikiSmartBox.js\";\n\nexport function showFormInputExplannation(inputUniqId, formId){\n \n //globalVar[\"smetioForm_\"+formId][\"formId\"] = formId;\n //globalVar[\"smetioForm_\"+formId][\"inputs\"] = result[\"input_details\"]; \n\n const inputObj = globalVar[\"smetioForm_\"+formId][\"inputs\"][inputUniqId];\n\n console.log(inputObj);\n console.log(\"The input object is like this \"+inputObj);\n\n const explannation = inputObj[\"inputExplanation\"];\n const reasonForDataCollection = inputObj.reasonForDataCollection;\n const howIsDataStored = inputObj.howIsDataStored;\n const whoIsDataSharedWIth = inputObj.whoIsDataSharedWIth;\n const label = inputObj.label;\n const placeholder = inputObj.placeholder;\n\n if( checkIfItIsEmpty(label) ){\n\n \tlabel = placeholder;\n\n };\n\n /**** \n * \n * THE CSS TO THE smetio-input-explannation-box IS LOCATED IN THE smetioSmartBox.scss FILE \n * \n * ****/\n const content = `\n\n \t
\n\n \t\t
\n\n \t\t\t

What is ${label}?

\n \t\t\t

\n \t\t\t\t${explannation}\n \t\t\t

\n\n \t\t
\n\n \t\t
\n\n \t\t\t

Why is ${label} needed?

\n \t\t\t

\n \t\t\t\t${reasonForDataCollection}\n \t\t\t

\n\n \t\t
\n\n \t\t
\n\n \t\t\t

How is ${label} stored?

\n \t\t\t

\n \t\t\t\t${howIsDataStored}\n \t\t\t

\n\n \t\t
\t\t\n\n \t\t
\n\n \t\t\t

Who is ${label} shared with?

\n \t\t\t

\n \t\t\t\t${whoIsDataSharedWIth}\n \t\t\t

\n\n \t\t
\n\n \t
\n `;\n\n getSmetioWikiSmartBox(content);\n\n return false;\n\n\n};","// import {SmetioSmartbox} from \n// \"./../../../classes/smetioSmartbox2/SmetioSmartbox.js\";\n\n// import {IconLeftTextRight} from \n// \"./../../../classes/iconAndTextCombinations/iconLeftTextRight/IconLeftTextRight.js\";\n\n// import {globalVar} from \n// \"./../../../variables/global_variables.js\"; \n\n// import {checkIfItIsEmpty} from \n// \"./../../checks/checkIfItIsEmpty.js\";\n\nexport function getSmetioWikiSmartBox(content){\n\n\t// if( checkIfItIsEmpty(globalVar[\"smetioWikiSmartBox\"]) ){\n\n\t// \tglobalVar[\"smetioWikiSmartBox\"] = new SmetioSmartbox();\n\n\t// };\n \n // globalVar[\"smetioWikiSmartBox\"].title = \"Smetio Wiki\";\n \n // globalVar[\"smetioWikiSmartBox\"].contentType = \"wikiPage\";\n // globalVar[\"smetioWikiSmartBox\"].contentUniqueIdentifier = \"hjdj\";\n\t// const smartBoxContainer = globalVar[\"smetioWikiSmartBox\"].getContentHolder(); \n\t// const smartBoxId = globalVar[\"smetioWikiSmartBox\"].getId();\n\t// const smartBoxCurrentState = $(\"#\"+smartBoxId).attr(\"data-smetio-open-state\");\n\n\t// /**** CHECK IF THE SMARTBOX IS ALREADY VISIBLE IF NOT THEN RENDER IT****/\n\t// if( checkIfItIsEmpty(smartBoxCurrentState) ){\n\n\t// \tconst smartBox = globalVar[\"smetioWikiSmartBox\"].render();\n\n\t// };\n\n // /**** \n // * \n // * CREATE A FUNCTION THAT WILL BE CALLED TO CLEAR THE MEMORY WHERE THE FORM OBJECT IS STORED \n // * THIS FUNCTION WILL BE CALLED ONCE THE SMARTBOX CLOSE BUTTON IS CLICKED\n // * \n // * ****/\n\n // globalVar[\"smartBoxes\"][smartBoxId][\"closeFunction\"] = function(){\n\n // \t/**** REMOVE THE globalVar[\"smetioWikiSmartBox\"] FROM MEMORY WHEN THE SMARTBOX IS CLOSED ****/\n\n // globalVar[\"smetioWikiSmartBox\"] = null;\n\n // };\n\n \n // $(\"#\"+smartBoxContainer).html(content);\n\n\t// /**** CHECK IF THE SMARTBOX IS MINIMIZED IF YES THEN PUT IT IN THE NORMALIZED STATE ****/\n\n\t// if( smartBoxCurrentState === \"minimize\" ){\n\n\t// \tglobalVar[\"smetioWikiSmartBox\"].normalize();\n\n\t// };\n\n\n};"],"names":["globalVar","checkIfItIsEmpty","getSmetioWikiSmartBox","showFormInputExplannation","inputUniqId","formId","inputObj","console","log","explannation","reasonForDataCollection","howIsDataStored","whoIsDataSharedWIth","label","placeholder","_readOnlyError","content","concat"],"sourceRoot":""}