-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathformio-script.gitbridge.min.js.map
1 lines (1 loc) · 7.19 KB
/
formio-script.gitbridge.min.js.map
1
{"version":3,"file":"formio-script.gitbridge.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,mBCRT,IAAIC,EAAsB,CCA1BA,EAAwB,CAACL,EAASM,KACjC,IAAI,IAAIC,KAAOD,EACXD,EAAoBG,EAAEF,EAAYC,KAASF,EAAoBG,EAAER,EAASO,IAC5EE,OAAOC,eAAeV,EAASO,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDF,EAAwB,CAACQ,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFT,EAAyBL,IACH,oBAAXkB,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeV,EAASkB,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeV,EAAS,aAAc,CAAEoB,OAAO,GAAO,G,gCCLvD,MAAMC,EAAiBC,OAAOC,qBAAuB,mBAE/CC,EAAgBA,CAACC,EAASC,EAAGC,KACxC,GAAID,EAAID,EAAQG,OAAS,EAGvB,OAFAC,aAAaC,kBACbH,IAGF,MAAM,KAAEI,EAAI,MAAEC,EAAK,IAAEC,EAAG,KAAEC,EAAI,IAAEC,GAAQV,EAAQC,GAE7CU,SAASC,cAAc,GAADC,OAAIP,EAAI,UAAAO,OAASL,EAAG,QAC1CG,SAASC,cAAc,GAADC,OAAIP,EAAI,WAAAO,OAAUJ,EAAI,OAkB7CV,EAAcC,EAASC,EAAI,EAAGC,GAhBd,IAAIY,SAASC,IAC3B,MAAMC,EAAOL,SAASM,cAAcX,QACt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AA,QAAAe,IAAAa,UAAA,GAAAA,UAAA,GAAGnC,EAEV,MAAO,WAAPiB,OAHSkB,UAAA5B,OAAA,QAAAe,IAAAa,UAAA,GAAAA,UAAA,GAAG,SAGe,4BAAAlB,OAA2Ba,EACxD,CChC8CS,I","sources":["webpack://formio-qld/webpack/universalModuleDefinition","webpack://formio-qld/webpack/bootstrap","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/helpers/FormioScript/FormioScript.js","webpack://formio-qld/./src/helpers/FormioScript/index.gitbridge.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[\"FormioScript\"] = factory();\n\telse\n\t\troot[\"FormioScript\"] = factory();\n})(self, () => {\nreturn ","// The require scope\nvar __webpack_require__ = {};\n\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 defaultVersion = window.formioQldCdnVersion || \"v2/v2.x.x-latest\";\n\nexport const createScripts = (scripts, i, mainResolve) => {\n if (i > scripts.length - 1) {\n FormioLoader.initFormio();\n mainResolve();\n return;\n }\n const { type, async, src, href, rel } = scripts[i];\n if (\n !document.querySelector(`${type}[src='${src}']`) &&\n !document.querySelector(`${type}[href='${href}']`)\n ) {\n const promise = new Promise((resolve) => {\n const elem = document.createElement(type);\n if (async !== undefined) elem.setAttribute(\"async\", async);\n if (src !== undefined) elem.setAttribute(\"src\", src);\n if (href !== undefined) elem.setAttribute(\"href\", href);\n if (rel !== undefined) elem.setAttribute(\"rel\", rel);\n document.body.appendChild(elem);\n elem.onload = () => {\n console.info(\"FormioScript loaded:\", src || href);\n resolve();\n };\n });\n promise.then(() => {\n createScripts(scripts, i + 1, mainResolve);\n });\n } else {\n createScripts(scripts, i + 1, mainResolve);\n }\n};\n\nexport const getDefaultCdn = (\n subdomain = \"static\",\n version = defaultVersion,\n) => {\n return `https://${subdomain}.qgov.net.au/formio-qld/${version}`;\n};\n\nexport const getDefaultScripts = (baseUrl) => {\n return [\n {\n type: \"script\",\n src: `${baseUrl}/formio.full.js`,\n async: false,\n },\n {\n type: \"script\",\n src: `${baseUrl}/premium.min.js`,\n async: false,\n },\n {\n type: \"script\",\n src: `${baseUrl}/formio-qld.js`,\n async: false,\n },\n // note: formio-loader should always load last\n {\n type: \"script\",\n src: `${baseUrl}/formio-loader.js`,\n async: false,\n },\n {\n type: \"link\",\n href: `${baseUrl}/formio.full.min.css`,\n rel: \"stylesheet\",\n },\n {\n type: \"link\",\n href: `${baseUrl}/premium.css`,\n rel: \"stylesheet\",\n },\n {\n type: \"link\",\n href: `${baseUrl}/formio-qld.min.css`,\n rel: \"stylesheet\",\n },\n ];\n};\n\nexport const initScript = (scripts, cdn = null) =>\n new Promise((resolve) => {\n if (window.formioScriptLoaded) {\n if (typeof FormioLoader !== \"undefined\")\n setTimeout(() => {\n FormioLoader.initFormio(cdn);\n resolve();\n });\n } else {\n window.formioScriptLoaded = true;\n createScripts(scripts, 0, resolve);\n }\n });\n","import { initScript, getDefaultCdn, getDefaultScripts } from \".\";\n\nconst version = window.formIOGitBridgeID || \"248740\";\n\nconst scripts = getDefaultScripts(`/__data/assets/git_bridge/0025/${version}`);\n\nexport const init = () => initScript(scripts, getDefaultCdn());\n"],"names":["root","factory","exports","module","define","amd","self","__webpack_require__","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","defaultVersion","window","formioQldCdnVersion","createScripts","scripts","i","mainResolve","length","FormioLoader","initFormio","type","async","src","href","rel","document","querySelector","concat","Promise","resolve","elem","createElement","undefined","setAttribute","body","appendChild","onload","console","info","then","version","formIOGitBridgeID","baseUrl","init","cdn","arguments","formioScriptLoaded","setTimeout","initScript","getDefaultCdn"],"sourceRoot":""}