-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathformio-loader.min.js.map
1 lines (1 loc) · 19.4 KB
/
formio-loader.min.js.map
1
{"version":3,"file":"formio-loader.min.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAsB,aAAID,IAE1BD,EAAmB,aAAIC,GACxB,CATD,CASGK,MAAM,I,qBCTTH,EAAOD,QAAU,CAEfK,eAAgB,CACdC,YAAY,EACZC,cAAc,EACdC,UAAU,EACVC,YAAY,GAGdC,KAAM,CACJC,GAAI,CACFC,QAAS,4BACTC,MACE,wF,GCZJC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAajB,QAGrB,IAAIC,EAASa,EAAyBE,GAAY,CAGjDhB,QAAS,CAAC,GAOX,OAHAmB,EAAoBH,GAAUf,EAAQA,EAAOD,QAASe,GAG/Cd,EAAOD,OACf,CCrBAe,EAAoBK,EAAKnB,IACxB,IAAIoB,EAASpB,GAAUA,EAAOqB,WAC7B,IAAOrB,EAAiB,QACxB,IAAM,EAEP,OADAc,EAAoBQ,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,ECLdN,EAAoBQ,EAAI,CAACvB,EAASyB,KACjC,IAAI,IAAIC,KAAOD,EACXV,EAAoBY,EAAEF,EAAYC,KAASX,EAAoBY,EAAE3B,EAAS0B,IAC5EE,OAAOC,eAAe7B,EAAS0B,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDX,EAAoBY,EAAI,CAACK,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFlB,EAAoBsB,EAAKrC,IACH,oBAAXsC,QAA0BA,OAAOC,aAC1CX,OAAOC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pack/universalModuleDefinition","webpack://formio-qld/./src/config/createForm.options.js","webpack://formio-qld/webpack/bootstrap","webpack://formio-qld/webpack/runtime/compat get default export","webpack://formio-qld/webpack/runtime/define property getters","webpack://formio-qld/webpack/runtime/hasOwnProperty shorthand","webpack://formio-qld/webpack/runtime/make namespace object","webpack://formio-qld/./src/utils/pushDataLayer.js","webpack://formio-qld/./src/helpers/FormioLoader/FormioLoader.js","webpack://formio-qld/./src/utils/delegateSelector.js","webpack://formio-qld/./src/config/createForm.controller.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"FormioLoader\"] = factory();\n\telse\n\t\troot[\"FormioLoader\"] = factory();\n})(self, () => {\nreturn ","module.exports = {\n // Turn off default buttons\n buttonSettings: {\n showCancel: false,\n showPrevious: true,\n showNext: true,\n showSubmit: true,\n },\n // https://help.form.io/developers/translations#introduction\n i18n: {\n en: {\n pattern: \"Must use the format shown\",\n error:\n '<h2><span class=\"fa fa-exclamation-triangle\"></span> Please check your answers</h2>',\n },\n },\n};\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export const pushDataLayer = (data) => {\n window.dataLayer = window.dataLayer || [];\n window.dataLayer.push(data);\n};\n","import defaultCreateFormOptions from \"../../config/createForm.options\";\nimport defaultCreateFormController from \"../../config/createForm.controller\";\nimport { delegateSelector } from \"../../utils/delegateSelector\";\n\n// plugin function to fix the namespace/project option doesn't pass to Formio.makeRequest/Formio.makeStaticRequest\nconst requestPluginHandler = (requestArgs, opts) => {\n if (requestArgs?.formio) {\n const formioInstance = document.querySelector(\n `[data-formio-form-url=\"${requestArgs.formio.formUrl}\"]`,\n );\n if (formioInstance) {\n requestArgs.formio = JSON.parse(formioInstance.dataset.formio);\n requestArgs.opts.formio = requestArgs.formio;\n }\n if (requestArgs.formio.options) {\n requestArgs.opts.base = requestArgs.formio.options.base;\n requestArgs.opts.project = requestArgs.formio.options.project;\n requestArgs.opts.namespace = requestArgs.formio.options.namespace;\n if (requestArgs.formio.options.project)\n Formio.setProjectUrl(requestArgs.formio.options.project);\n if (requestArgs.formio.options.base)\n Formio.setBaseUrl(requestArgs.formio.options.base);\n }\n }\n\n // the request url generated by recaptcha component doesn't honor the form options\n // https://github.com/formio/formio.js/blob/master/src/components/recaptcha/ReCaptcha.js#L114\n // hence the workaround is to inject the project id to the url\n if (requestArgs?.url?.includes(`${opts.formio.base}/recaptcha`)) {\n requestArgs.url = requestArgs.url.replace(\n `${opts.formio.base}/recaptcha`,\n `${opts.formio.projectUrl}/recaptcha`,\n );\n }\n return Promise.resolve(null);\n};\n\nconst RequestPlugin = (opts) => ({\n priority: 0,\n preRequest(requestArgs) {\n return requestPluginHandler(requestArgs, opts);\n },\n preStaticRequest(requestArgs) {\n return requestPluginHandler(requestArgs, opts);\n },\n request(requestArgs) {\n return requestPluginHandler(requestArgs, opts);\n },\n staticRequest(requestArgs) {\n return requestPluginHandler(requestArgs, opts);\n },\n});\n\nconst initFormioInstance = (elem, opts) => {\n // if already initiated, reject\n if (elem.dataset.formioFormUrl) return;\n\n // if doesn't have required options, reject\n if (!opts.envUrl || !opts.projectName || !opts.formName) {\n console.warn(\n \"Require envUrl, projectName, formName to initiate the form.\",\n opts,\n );\n return;\n }\n /*\n * setup config\n */\n const baseUrl = `https://${opts.envUrl.trim()}`;\n let formName = \"\";\n // Check if value is true/exists and is numeric\n if (opts.formRevision) {\n formName = `${opts.formName}/v/${opts.formRevision}`;\n } else {\n formName = opts.formName;\n }\n const { projectName } = opts;\n const namespace = opts.namespace || `formio-${projectName}`;\n const formUrl = `${baseUrl}/${projectName}/${formName}`;\n\n /*\n * init formio instance\n */\n const formio = new Formio(formUrl, {\n base: baseUrl,\n project: `${baseUrl}/${projectName}`,\n namespace,\n });\n elem.dataset.formio = JSON.stringify(formio);\n elem.dataset.formioFormUrl = formUrl;\n\n /*\n * load formio form\n */\n const defaultOptions = {\n ...defaultCreateFormOptions,\n formio,\n namespace: formio.options.namespace,\n };\n\n const combinedOptions = {\n ...defaultOptions,\n // combine with hook options\n ...(typeof opts.createFormOptions === \"function\" &&\n opts.createFormOptions({\n ...opts,\n defaultOptions,\n elem,\n })),\n };\n\n // register plugin\n if (!Formio.getPlugin(\"requestPlugin\"))\n Formio.registerPlugin(RequestPlugin(combinedOptions), \"requestPlugin\");\n\n Formio.createForm(elem, formUrl, combinedOptions).then((form) => {\n form.formio = formio;\n form.options.formio = formio;\n const callbackProps = {\n form,\n elem,\n ...opts,\n };\n\n if (typeof opts.createFormCallback === \"function\") {\n // call custom callback hook\n opts.createFormCallback(callbackProps);\n } else {\n // Force new tab on formlinks\n delegateSelector(elem, \"click\", \"a\", (e) => {\n e.target.target = \"_blank\";\n });\n }\n\n // default controller\n defaultCreateFormController(callbackProps);\n\n // call custom hook controller\n if (typeof opts.createFormController === \"function\") {\n opts.createFormController(callbackProps);\n }\n });\n};\n\nconst overrideErrorForm = (renderMsg) => {\n // customise error message\n const newFunc = Formio.Form.prototype.errorForm.bind({});\n Formio.Form.prototype.errorForm = (err) => {\n if (\n (typeof err === \"string\" &&\n err.indexOf(\"Could not connect to API server\") !== -1) ||\n (typeof err === \"object\" && err.networkError)\n ) {\n console.warn(\"formio error: \", err);\n return newFunc(typeof renderMsg === \"function\" ? renderMsg(err) : err);\n }\n return newFunc(err);\n };\n};\n\nconst defaultInitFormioAction = () => {\n overrideErrorForm(\n () =>\n \"This form is currently unavailable due to maintenance. Please try again later.\",\n );\n};\n\nconst initFormio = (cdn = null) => {\n // Init form\n Formio.icons = \"fontawesome\";\n if (cdn) {\n Formio.cdn.setOverrideUrl(\"grid\", cdn);\n }\n if (premium) Formio.use(premium);\n\n // default callback after Formio is loaded\n if (typeof window.initFormioHook === \"function\") {\n window.initFormioHook({ overrideErrorForm });\n } else {\n defaultInitFormioAction();\n }\n\n document.querySelectorAll(\"[data-formio]\").forEach((elem) => {\n const {\n formioProjectName,\n formioFormName,\n formioEnvUrl,\n formioPdfDownload,\n formioFormConfirmation,\n formioFormRevision,\n formioNamespace,\n formioCreateformOptions,\n formioCreateformController,\n formioCreateformCallback,\n } = elem.dataset;\n initFormioInstance(elem, {\n projectName: formioProjectName,\n formName: formioFormName,\n envUrl: formioEnvUrl,\n pdfDownload: formioPdfDownload,\n formConfirmation: formioFormConfirmation,\n formRevision: formioFormRevision,\n namespace: formioNamespace,\n createFormOptions: window[formioCreateformOptions],\n createFormController: window[formioCreateformController],\n createFormCallback: window[formioCreateformCallback],\n });\n });\n};\n\nexport { initFormio, initFormioInstance };\n","export const delegateSelector = (elements, event, childSelector, handler) => {\n const is = (el, s) => {\n return (\n el.matches ||\n el.matchesSelector ||\n el.msMatchesSelector ||\n el.mozMatchesSelector ||\n el.webkitMatchesSelector ||\n el.oMatchesSelector\n ).call(el, s);\n };\n const addEvent = (el) => {\n el.addEventListener(event, (e) => {\n if (is(e.target, childSelector)) {\n handler(e);\n }\n });\n };\n if (Array.isArray(elements)) {\n [].forEach.call(elements, addEvent);\n } else {\n addEvent(elements);\n }\n};\n","/* eslint-disable no-underscore-dangle */\nimport { pushDataLayer } from \"../utils/pushDataLayer\";\n\nexport default ({ form, formConfirmation }) => {\n // Change event/GTM\n form.on(\"change\", (e) => {\n if (\n typeof e.changed !== \"undefined\" &&\n typeof e.changed.component !== \"undefined\"\n ) {\n pushDataLayer({\n event: \"formio-interaction\",\n \"formio-input-id\": e.changed.component.id,\n \"formio-input-type\": e.changed.component.type,\n \"formio-input-value\": e.changed.value,\n \"formio-input-key\": e.changed.component.key,\n \"formio-input-label-raw\": e.changed.component.label,\n \"formio-name\": form._form.title,\n \"formio-version\": form._form.modified,\n \"formio-category\": `Form: ${form._form.title}`,\n \"formio-action\": \"filled in\",\n });\n }\n });\n\n // backward compatibility, for old forms that using this event to do submission\n form.on(\"applicationSubmit\", () => {\n form.submit();\n });\n\n // in a form submission, it will either fire `submitDone` or `submitError`, after getting the response from the formio api.\n form.on(\"submitDone\", () => {\n pushDataLayer({\n event: \"formio-submission\",\n \"formio-submissionsUrl\": `form.io: ${form.formio.submissionsUrl}`,\n \"formio-name\": form._form.title,\n \"formio-version\": form._form.modified,\n });\n\n if (formConfirmation)\n setTimeout(() => {\n window.location.href = formConfirmation;\n }, 500);\n });\n\n form.on(\"submitError\", (error) => {\n const msg = Array.isArray(error)\n ? error.map((o) => o.message).join(\", \")\n : error?.message || error;\n pushDataLayer({\n event: \"ngErrorEvent\",\n ngErrorLocation: `form.io - ${form._form.title}`,\n ngErrorMsg: msg,\n ngErrorStack: \"\",\n });\n });\n};\n"],"names":["root","factory","exports","module","define","amd","self","buttonSettings","showCancel","showPrevious","showNext","showSubmit","i18n","en","pattern","error","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","pushDataLayer","data","window","dataLayer","push","requestPluginHandler","requestArgs","opts","_requestArgs$url","formio","formioInstance","document","querySelector","concat","formUrl","JSON","parse","dataset","options","base","project","namespace","Formio","setProjectUrl","setBaseUrl","url","includes","replace","projectUrl","Promise","resolve","initFormioInstance","elem","formioFormUrl","envUrl","projectName","formName","console","warn","baseUrl","trim","formRevision","stringify","defaultOptions","defaultCreateFormOptions","combinedOptions","createFormOptions","getPlugin","registerPlugin","priority","preRequest","preStaticRequest","request","staticRequest","RequestPlugin","createForm","then","form","callbackProps","createFormCallback","delegateSelector","elements","event","childSelector","handler","addEvent","el","addEventListener","e","is","s","matches","matchesSelector","msMatchesSelector","mozMatchesSelector","webkitMatchesSelector","oMatchesSelector","target","Array","isArray","forEach","_ref","formConfirmation","on","changed","component","id","type","label","_form","title","modified","submit","submissionsUrl","setTimeout","location","href","msg","map","message","join","ngErrorLocation","ngErrorMsg","ngErrorStack","defaultCreateFormController","createFormController","overrideErrorForm","renderMsg","newFunc","Form","errorForm","bind","err","indexOf","networkError","initFormio","cdn","arguments","length","icons","setOverrideUrl","premium","use","initFormioHook","querySelectorAll","formioProjectName","formioFormName","formioEnvUrl","formioPdfDownload","formioFormConfirmation","formioFormRevision","formioNamespace","formioCreateformOptions","formioCreateformController","formioCreateformCallback","pdfDownload"],"sourceRoot":""}